import{u as p,j as e,D as l,L as x,cX as h}from"./vendor-rThclpOQ.js";import{B as u}from"./button-ZcsoqUQn.js";import{C as f}from"./card-HXna_7vU.js";import{g,a as m,S as j}from"./section-BOqnWLvv.js";import{c as N}from"./utils-8KAaAB9H.js";import b from"./instructor-socials-ByOJVLmZ.js";import"./index-DquVdLUg.js";import"./dialog-CDEDwQhm.js";import"./use-lang-BK6P2WMc.js";import"./chunked-uploader-input-rUbaF7V3.js";import"./input-BeqyurrI.js";import"./index-CWNIUFqh.js";import"./input-error-Br4ngfdE.js";import"./loading-button-DKhpmf6V.js";import"./label-CtY1vfZY.js";import"./textarea-DM_GyfeP.js";import"./inertia-SZXqLvQm.js";import"./icon-picker-dialog-Bko_3r6q.js";import"./icon-picker-B7sCh2g1.js";import"./debounce-CWHP_ANh.js";import"./tooltip-WOIaUmuC.js";import"./scroll-area-BCwyUKIK.js";import"./table-header-Cuecslh2.js";import"./table-DoQbaWlF.js";import"./table-page-size-FBmivxVb.js";import"./dropdown-menu-Cm0H42C1.js";import"./route-B4ZMN77y.js";import"./avatar-BsP_s7dr.js";const W=()=>{const{props:d}=p(),{page:n,instructor:t,customize:o}=d,s=g(n,"instructor"),i=m(s).filter((a,r)=>r%2===0),c=m(s).filter((a,r)=>r%2!==0);return e.jsxs(j,{customize:o,pageSection:s,containerClass:"py-20 overflow-y-hidden",contentClass:"relative",children:[e.jsxs("div",{className:"relative z-10 mx-auto mb-10 w-full text-center md:max-w-lg",children:[e.jsx("h2",{className:"mb-2 text-3xl font-bold sm:text-4xl",children:s==null?void 0:s.title}),e.jsx("p",{className:"text-muted-foreground",children:s==null?void 0:s.description})]}),e.jsxs("div",{className:"relative z-10 mx-auto grid w-full max-w-[964px] grid-cols-1 gap-8 md:grid-cols-3",children:[e.jsx("div",{className:"space-y-12",children:i==null?void 0:i.map((a,r)=>e.jsxs("div",{children:[e.jsx("div",{className:"bg-background shadow-card-md h-10 w-10 rounded p-2",children:e.jsx(l,{name:a.icon,className:"text-secondary-foreground h-6 w-6"})}),e.jsx("h3",{className:"pt-4 pb-2 font-semibold",children:a.title}),e.jsx("p",{className:"text-muted-foreground text-sm",children:a.description})]},r))}),e.jsxs(f,{className:"!shadow-card-hover space-y-6 p-5",children:[e.jsx("img",{className:"h-[190px] w-full rounded-lg object-cover object-top",src:(s==null?void 0:s.thumbnail)||"/assets/images/blank-image.jpg",alt:t?t.user.name:""}),t&&e.jsxs("div",{className:N("space-y-6",o&&"section-edit"),children:[o&&e.jsx(u,{asChild:!0,size:"icon",variant:"secondary",className:"absolute top-3 right-3 z-20",children:e.jsx(x,{href:route("settings.account",{tab:"profile-update"}),children:e.jsx(h,{className:"h-7 w-7"})})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"font-semibold",children:t.user.name}),e.jsx("p",{className:"text-muted-foreground text-sm",children:t.designation}),e.jsx("p",{className:"text-muted-foreground text-sm",children:t.biography})]}),e.jsx(b,{instructor:t,className:"py-0",buttonClass:"w-8 h-8"})]})]}),e.jsx("div",{className:"space-y-12",children:c==null?void 0:c.map((a,r)=>e.jsxs("div",{children:[e.jsx("div",{className:"bg-background shadow-card-md h-10 w-10 rounded p-2",children:e.jsx(l,{name:a.icon,className:"text-secondary-foreground h-6 w-6"})}),e.jsx("h3",{className:"pt-4 pb-2 font-semibold",children:a.title}),e.jsx("p",{className:"text-muted-foreground text-sm",children:a.description})]},r))})]}),e.jsx("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{W as default};
