import{jsx as e,jsxs as r}from"react/jsx-runtime";import{B as p}from"./button-gradient-primary-BCGlXQYd.js";import{C as c}from"./checkout-item-C6mQbTml.js";import{a as m}from"./ui-components-B24mpb8o.js";import{g as f,S as x}from"./section-DjkqMKZX.js";import{usePage as h}from"@inertiajs/react";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"lucide-react";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./use-lang-Cw_jKJYs.js";import"./chunked-uploader-input-WemAY1Qi.js";import"axios";import"./input-error-BbsDx4-P.js";import"./loading-button-B_LaGOAp.js";import"./inertia-FIn3q7f1.js";import"./icon-picker-dialog-C9VejAFv.js";import"./icon-picker-DlQKexqz.js";import"./debounce-CWHP_ANh.js";import"./icon-picker-tooltip-BfucLgKc.js";import"lucide-react/dynamic";import"./table-header-DXTJ1r7-.js";import"@tanstack/react-table";import"./table-page-size-B94DPeOD.js";import"./route-D0xh7FtZ.js";const ct=()=>{var i,l,o;const{props:s}=h(),{page:n,topCourse:t,customize:d}=s,a=f(n,"top_course");return e(x,{customize:d,pageSection:a,containerClass:"py-20",children:r("div",{className:"grid grid-cols-1 items-end gap-20 md:grid-cols-2 md:gap-28",children:[r("div",{className:"relative",children:[r("div",{className:"relative z-10 mb-10",children:[e("p",{className:"text-secondary-foreground mb-1 font-medium",children:a==null?void 0:a.title}),e("h2",{className:"mb-4 text-2xl font-bold sm:text-3xl",children:t==null?void 0:t.title})]}),e("img",{alt:t==null?void 0:t.title,src:(t==null?void 0:t.thumbnail)||"/assets/images/blank-image.jpg",className:"relative z-10 h-[348px] w-full rounded-xl object-cover object-center"}),e("div",{className:"after:pointer-events-none after:absolute after:top-1/2 after:left-1/2 after:h-[260px] after:w-[260px] after:-translate-x-1/2 after:-translate-y-1/2 after:rounded-full after:bg-[rgba(0,167,111,1)] after:blur-[290px] after:content-['']"})]}),r("div",{className:"relative",children:[r("div",{className:"relative z-10 grid grid-cols-1 gap-7 pt-12 pb-7 sm:grid-cols-2",children:[r(m,{className:"px-6 py-7",children:[e("h2",{className:"mb-2 font-bold sm:text-3xl",children:t==null?void 0:t.formatted_duration}),e("p",{className:"text-muted-foreground",children:"Course Duration"})]}),r(m,{className:"px-6 py-7",children:[e("h2",{className:"mb-2 font-bold sm:text-3xl",children:t==null?void 0:t.total_lessons}),r("p",{className:"text-muted-foreground",children:["Course Lesson",(t==null?void 0:t.total_lessons)>1?"s":""]})]}),r(m,{className:"px-6 py-7",children:[e("h2",{className:"mb-2 font-bold sm:text-3xl",children:t==null?void 0:t.total_quizzes}),r("p",{className:"text-muted-foreground",children:["Total Quiz",(t==null?void 0:t.total_quizzes)>1?"zes":""]})]}),r(m,{className:"px-6 py-7",children:[e("h2",{className:"mb-2 font-bold sm:text-3xl",children:t==null?void 0:t.enrollments_count}),r("p",{className:"text-muted-foreground",children:["Enrolled Student",((i=t==null?void 0:t.enrollments_count)!=null?i:0)>1?"s":""]})]})]}),((l=a==null?void 0:a.properties)==null?void 0:l.button_text)&&e(c,{item:"course",item_id:t.id,children:e(p,{shadow:!1,className:"relative z-10 mt-10 md:mt-14",children:(o=a==null?void 0:a.properties)==null?void 0:o.button_text})}),e("div",{className:"after:pointer-events-none after:absolute after:right-[120px] after:bottom-10 after:h-[200px] after:w-[200px] after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[290px] after:content-['']"})]})]})})};export{ct as default};
