import{ak as r,j as e,e as h,u as p,T as o,ac as n}from"./main-D6SjkSWq.js";import{u as x}from"./use-all-social-logins-disabled-59RZr6oN.js";import{L as m,a as j}from"./list--2y4kqxI.js";import{G as y}from"./globe-Bnh5BiEZ.js";/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],k=r("code",g);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],v=r("fingerprint-pattern",u);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],b=r("lock",M);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],f=r("log-in",w);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],N=r("monitor-smartphone",L);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],D=r("trash-2",_);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],S=r("user",z);function V({id:s,title:a,titleSuffix:d,children:c,actions:i}){return e.jsxs("section",{id:s,className:"mb-24 w-full rounded-panel border border-divider-lighter bg-elevated px-24 py-20 shadow",children:[e.jsxs("div",{className:"flex items-center gap-14 border-b pb-10",children:[e.jsx("div",{className:"text-lg font-light",children:a}),d&&e.jsx("div",{className:"ml-auto",children:d})]}),e.jsx("div",{className:"pt-24",children:c}),i&&e.jsx("div",{className:"mt-36 flex justify-end border-t pt-10",children:i})]})}var l=(s=>(s.AccountDetails="account-details",s.SocialLogin="social-login",s.Password="password",s.TwoFactor="two-factor",s.LocationAndLanguage="location-and-language",s.Developers="developers",s.DeleteAccount="delete-account",s.Sessions="sessions",s))(l||{});function H({items:s}){const a=l,{hasPermission:d}=h(),{api:c}=p(),i=x();return e.jsx("aside",{className:"sticky top-[74px] hidden flex-shrink-0 lg:block",children:e.jsxs(m,{padding:"p-0",children:[s,e.jsx(t,{icon:e.jsx(n,{icon:S,size:"xs"}),panel:a.AccountDetails,children:e.jsx(o,{message:"Account details"})}),!i&&e.jsx(t,{icon:e.jsx(n,{icon:f,size:"xs"}),panel:a.SocialLogin,children:e.jsx(o,{message:"Social login"})}),e.jsx(t,{icon:e.jsx(n,{icon:b,size:"xs"}),panel:a.Password,children:e.jsx(o,{message:"Password"})}),e.jsx(t,{icon:e.jsx(n,{icon:v,size:"xs"}),panel:a.TwoFactor,children:e.jsx(o,{message:"Two factor authentication"})}),e.jsx(t,{icon:e.jsx(n,{icon:N,size:"xs"}),panel:a.Sessions,children:e.jsx(o,{message:"Active sessions"})}),e.jsx(t,{icon:e.jsx(n,{icon:y,size:"xs"}),panel:a.LocationAndLanguage,children:e.jsx(o,{message:"Location and language"})}),c!=null&&c.integrated&&d("api.access")?e.jsx(t,{icon:e.jsx(n,{icon:k,size:"xs"}),panel:a.Developers,children:e.jsx(o,{message:"Developers"})}):null,e.jsx(t,{icon:e.jsx(n,{icon:D,size:"xs"}),panel:a.DeleteAccount,children:e.jsx(o,{message:"Delete account"})})]})})}function t({children:s,icon:a,isLast:d,panel:c}){return e.jsx(j,{startIcon:a,className:d?void 0:"mb-10",onSelected:()=>{const i=document.querySelector(`#${c}`);i&&i.scrollIntoView({behavior:"smooth",block:"start"})},children:s})}export{V as A,l as a,H as b};
