function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["assets/Personal-CbhLiVGd.js","assets/index-B-YXshIJ.js","assets/index-7Rg3YT-G.css","assets/General-BmjMfbxo.js","assets/InfoBox-XHysCRaX.js","assets/Tokens-CQOoFOF4.js","assets/Collaborators-BNKAiF-x.js","assets/default-profile-pic-B1WNOWFq.js","assets/BillingsAndPlans-D6awCPB1.js"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{r as g,R as l,X as c,_ as p,Z as v,t as h,Y as x,A as b,j as s,$ as j}from"./index-B-YXshIJ.js";import{O as _}from"./organization-icon-Ab84U38q.js";import{U as O}from"./user-DEWqbyPD.js";import{U as w}from"./users-CDgG5m3x.js";function m(){return m=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},m.apply(this,arguments)}function k(e,o){if(e==null)return{};var r=P(e,o),t,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function P(e,o){if(e==null)return{};var r={},t=Object.keys(e),n,i;for(i=0;i<t.length;i++)n=t[i],!(o.indexOf(n)>=0)&&(r[n]=e[n]);return r}var f=g.forwardRef(function(e,o){var r=e.color,t=r===void 0?"currentColor":r,n=e.size,i=n===void 0?24:n,a=k(e,["color","size"]);return l.createElement("svg",m({ref:o,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),l.createElement("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),l.createElement("line",{x1:"1",y1:"10",x2:"23",y2:"10"}))});f.propTypes={color:c.string,size:c.oneOfType([c.string,c.number])};f.displayName="CreditCard";const E=f;function u(){return u=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},u.apply(this,arguments)}function z(e,o){if(e==null)return{};var r=C(e,o),t,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function C(e,o){if(e==null)return{};var r={},t=Object.keys(e),n,i;for(i=0;i<t.length;i++)n=t[i],!(o.indexOf(n)>=0)&&(r[n]=e[n]);return r}var y=g.forwardRef(function(e,o){var r=e.color,t=r===void 0?"currentColor":r,n=e.size,i=n===void 0?24:n,a=z(e,["color","size"]);return l.createElement("svg",u({ref:o,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),l.createElement("path",{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"}))});y.propTypes={color:c.string,size:c.oneOfType([c.string,c.number])};y.displayName="Key";const L=y,T=l.lazy(()=>p(()=>import("./Personal-CbhLiVGd.js"),__vite__mapDeps([0,1,2]))),N=l.lazy(()=>p(()=>import("./General-BmjMfbxo.js"),__vite__mapDeps([3,1,2,4]))),$=l.lazy(()=>p(()=>import("./Tokens-CQOoFOF4.js"),__vite__mapDeps([5,1,2]))),I=l.lazy(()=>p(()=>import("./Collaborators-BNKAiF-x.js"),__vite__mapDeps([6,1,2,7,4]))),R=l.lazy(()=>p(()=>import("./BillingsAndPlans-D6awCPB1.js"),__vite__mapDeps([8,1,2]))),d=[{title:"Personal",key:"personal",icon:s.jsx(O,{className:"inline-block w-4 mr-2"}),BodyComponent:()=>s.jsx(T,{})},{title:"General",key:"general",icon:s.jsx("img",{src:_,alt:"Organization Icon",className:"inline-block w-4 mr-2"}),BodyComponent:()=>s.jsx(N,{})},{title:"Tokens",key:"tokens",icon:s.jsx(L,{className:"inline-block w-4 mr-2"}),BodyComponent:()=>s.jsx($,{})},{title:"Collaborators",key:"collaborators",icon:s.jsx(w,{className:"inline-block w-4 mr-2"}),BodyComponent:()=>s.jsx(I,{})},{title:"Billings and Plans",key:"billings-and-plans",icon:s.jsx(E,{className:"inline-block w-4 mr-2"}),BodyComponent:()=>s.jsx(R,{})}],D=()=>{const e=v("auth"),o=h.auth.verifySession.useQuery().data,r=x(),t=b(),[n,i]=l.useState(t.pathname.split("/")[2]||d[0].key);if((!e||!o)&&(window.location.href="/"),e&&o)return s.jsxs("div",{className:"flex mx-64 border-t-2",children:[s.jsxs("aside",{className:"mr-4 flex flex-col border-r-2 w-1/4",children:[s.jsx("h3",{className:" text-gray-900 text-2xl font-semibold my-7",children:"Settings"}),d.map(a=>s.jsxs("button",{type:"button",title:a.title,onClick:()=>{r("/settings/".concat(a.key,"?auth=true")),i(a.key)},className:"px-4 py-2 mb-2 text-left ".concat(a.key===n?"bg-purple-100":"bg-transparent hover:bg-purple-50"),children:[a.icon&&s.jsx("span",{children:a.icon}),a.title]},a.key))]}),s.jsx("div",{className:"my-7 w-3/4",children:s.jsx(j,{})})]})};export{D as default};
