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