import{jsxs as a,jsx as e}from"react/jsx-runtime";import{a as h,c as f,B as u}from"./ui-components-B24mpb8o.js";import{g,a as l,S as x}from"./section-DjkqMKZX.js";import{usePage as b,Link as N}from"@inertiajs/react";import{Pencil as v}from"lucide-react";import{DynamicIcon as c}from"lucide-react/dynamic";import y from"./instructor-socials-BXNMa78k.js";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";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"./table-header-DXTJ1r7-.js";import"@tanstack/react-table";import"./table-page-size-B94DPeOD.js";import"./route-D0xh7FtZ.js";const xe=()=>{const{props:d}=b(),{page:n,instructor:o,customize:s}=d,t=g(n,"instructor"),m=l(t).filter((r,i)=>i%2===0),p=l(t).filter((r,i)=>i%2!==0);return a(x,{customize:s,pageSection:t,containerClass:"py-20",contentClass:"relative",children:[a("div",{className:"relative z-10 mx-auto mb-10 w-full text-center md:max-w-lg",children:[e("p",{className:"text-secondary-foreground mb-1 font-medium",children:t==null?void 0:t.title}),e("h2",{className:"mb-4 text-2xl font-bold sm:text-3xl",children:t==null?void 0:t.sub_title}),e("p",{className:"text-muted-foreground",children:t==null?void 0:t.description})]}),a("div",{className:"relative z-10 mx-auto grid w-full max-w-[964px] grid-cols-1 gap-8 md:grid-cols-3",children:[e("div",{className:"space-y-12",children:m==null?void 0:m.map((r,i)=>a("div",{children:[e("div",{className:"bg-background shadow-card-md h-10 w-10 rounded p-2",children:e(c,{name:r.icon,className:"text-secondary-foreground h-6 w-6"})}),e("h3",{className:"pt-4 pb-2 font-semibold",children:r.title}),e("p",{className:"text-muted-foreground text-sm",children:r.description})]},i))}),a(h,{className:"!shadow-card-hover space-y-6 p-5",children:[e("img",{className:"h-[190px] w-full rounded-lg object-cover object-top",src:(t==null?void 0:t.thumbnail)||"/assets/images/blank-image.jpg",alt:o?o.user.name:""}),o&&a("div",{className:f("space-y-6",s&&"section-edit"),children:[s&&e(u,{asChild:!0,size:"icon",variant:"secondary",className:"absolute top-3 right-3 z-20",children:e(N,{href:route("settings.account",{tab:"profile-update"}),children:e(v,{className:"h-7 w-7"})})}),a("div",{className:"space-y-2",children:[e("h3",{className:"font-semibold",children:o.user.name}),e("p",{className:"text-muted-foreground text-sm",children:o.designation}),e("p",{className:"text-muted-foreground text-sm",children:o.biography})]}),e(y,{instructor:o,className:"py-0",buttonClass:"w-8 h-8"})]})]}),e("div",{className:"space-y-12",children:p==null?void 0:p.map((r,i)=>a("div",{children:[e("div",{className:"bg-background shadow-card-md h-10 w-10 rounded p-2",children:e(c,{name:r.icon,className:"text-secondary-foreground h-6 w-6"})}),e("h3",{className:"pt-4 pb-2 font-semibold",children:r.title}),e("p",{className:"text-muted-foreground text-sm",children:r.description})]},i))})]}),e("div",{className:"after:pointer-events-none after:absolute after:top-1/2 after:left-1/2 after:h-[290px] after:w-[290px] after:-translate-x-1/2 after:-translate-y-1/2 after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[290px] after:content-['']"})]})};export{xe as default};
