import{j as r,q as i}from"./app-Bup04Qnx.js";import{A as m}from"./AuthenticatedLayout-BdDF4YYO.js";import d from"./UpdatePasswordForm-BhykTQMt.js";import l from"./UpdateProfileInformationForm-DXcQIHNE.js";import{u as n}from"./format-CisCU4Rs.js";import"./index-DdNKWgRS.js";import"./clsx-B-dksMZM.js";import"./index-CtjruoRR.js";import"./floating-ui.dom-CwWDmSD9.js";import"./Input-Bs1ncZB7.js";import"./BaseForm-wkPKZ5Eg.js";function N({title:s,auth:a}){return r.jsx(m,{title:s,auth:a,children:r.jsx(p,{})})}const p=()=>{const{location:s}=i().props,{params:a}=n(s),o=a.get("tab")||"detail",t=[{id:"detail",label:"Detail Profil"},{id:"password",label:"Ganti Password"}];return r.jsx("div",{children:r.jsxs("div",{className:"mx-auto max-w-7xl sm:px-6 lg:px-8",children:[r.jsx("div",{className:"flex border-b border-gray-200 mb-6 bg-white rounded-t-lg px-4",children:t.map(e=>r.jsx("a",{href:`?tab=${e.id}`,className:`px-6 py-3 font-medium text-sm border-b-2 transition-colors ${o===e.id?"border-blue-600 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:e.label},e.id))}),r.jsxs("div",{className:"bg-white shadow sm:p-8 sm:rounded-b-lg border border-t-0 rounded-t-none",children:[o==="detail"&&r.jsx("div",{className:"space-y-8",children:r.jsx(l,{className:"max-w-xl w-full sm:min-w-[24rem]"})}),o==="password"&&r.jsx(d,{className:"max-w-xl w-full sm:min-w-[24rem]"})]})]})})};export{N as default};
