import{u as c,j as t,H as g,e as u}from"./vendor-BKmmeuxg.js";import{C as h,a as f,F as x}from"./forget-password-DLTHIx2t.js";import{T as j}from"./tabs-D0Mbb5M5.js";import{T as b,a as C,b as w}from"./tabs-Ifouhv9A.js";import{D as T}from"./layout-DkwBWm5d.js";import{g as _}from"./route-B4ZMN77y.js";import{n as s}from"./index.browser-OxPLOBIU.js";import v from"./update-profile-DfTFmgS8.js";import"./input-error-LaPr_4wd.js";import"./utils-DxSsnXxD.js";import"./card-D9_SJYq6.js";import"./input-DM0goJrn.js";import"./label-HmIcv5Yx.js";import"./index-WW_1X1qx.js";import"./loading-button-BnTVAMJ7.js";import"./button-BpNwv2aE.js";import"./sidebar-BYcYxQeZ.js";import"./separator-_3LZ_wAA.js";import"./sheet-DSvHVmaW.js";import"./tooltip-BsX7Z6vz.js";import"./main-_V386djS.js";import"./index-D9-QKOod.js";import"./appearance-D2z3xcjR.js";import"./dropdown-menu-DO-po5c1.js";import"./app-BytVvUs_.js";/* empty css            */import"./language-BFZ7KItL.js";import"./notification-CYMPYbAP.js";import"./popover-B4kBsMuI.js";import"./scroll-area-C8HGru-R.js";import"./app-logo-CmnEIwal.js";import"./accordion-CNBvFN43.js";import"./avatar-j28afJTV.js";import"./use-lang-YfV87_zl.js";import"./tag-input-BqUWHOBp.js";import"./textarea-CyndvowL.js";import"./inertia-SZXqLvQm.js";const N=({instructor:a,translate:p})=>{const n=c(),l=_(n.url),{button:o,settings:d}=p,i=[{id:s(),slug:"profile-update",title:o.profile_update,Component:()=>t.jsx(v,{instructor:a})},{id:s(),slug:"change-email",title:o.change_email,Component:h},{id:s(),slug:"change-password",title:o.change_password,Component:f},{id:s(),slug:"forget-password",title:o.forget_password,Component:x}];return t.jsxs(t.Fragment,{children:[t.jsx(g,{title:d.account_settings}),t.jsxs(j,{value:l.tab??i[0].slug,className:"grid grid-rows-1 gap-5 md:grid-cols-4 md:px-3",children:[t.jsx("div",{children:t.jsx(b,{className:"horizontal-tabs-list",children:i.map(({id:m,slug:r,title:e})=>t.jsx(C,{value:r,className:"horizontal-tabs-trigger",onClick:()=>u.get(route("settings.account",{tab:r})),children:e},m))})}),t.jsx("div",{className:"md:col-span-3",children:i.map(({id:m,slug:r,Component:e})=>t.jsx(w,{value:r,className:"m-0",children:t.jsx(e,{})},m))})]})]})};N.layout=a=>t.jsx(T,{children:a});export{N as default};
