1import{v as x,b as o,j as t,w as a,bO as d,bf as u,L as g,O as h}from"./index-Csf1K8Hn.js";import{u as C}from"./useLocation-BnpXo5_e.js";import{u as f}from"./index-BlWfpiq7.js";import{u as b}from"./useAdministrationTier-iQuLokHg.js";import"./index-BL8FQxpt.js";import"./index-Chjiymov.js";import"./administrationsApiSlice-QOJlgS2T.js";const j=()=>{const e=x(),{t:s}=o("translation");return s("adminstratorSetting",{returnObjects:!0}),t.jsx("section",{className:a("bg-white dark:bg-neutral-950 rounded-xl p-4 w-full mb-2 shadow-[0px_4px_32px_0px_rgba(31,36,113,0.04)] dark:shadow-[0px_4px_32px_0px_rgba(0,0,0,0.3)]"),children:t.jsx("header",{className:"flex items-center justify-between",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("button",{onClick:()=>e.navigate({to:"/administrations/"}),children:t.jsx("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M7.22405 8.00065L9.16801 6.05669C9.28329 5.94266 9.34093 5.81287 9.34093 5.66732C9.34093 5.52162 9.28329 5.39607 9.16801 5.29065C9.06259 5.17537 8.93606 5.11905 8.78842 5.12169C8.64079 5.12433 8.51238 5.18023 8.40322 5.2894L6.15551 7.53711C6.01954 7.67308 5.95155 7.82884 5.95155 8.0044C5.95155 8.18009 6.01995 8.33378 6.15676 8.46544L8.39697 10.7057C8.50502 10.8136 8.62954 10.8702 8.77051 10.8757C8.91148 10.8809 9.0403 10.8259 9.15697 10.7107C9.26572 10.6005 9.31745 10.4715 9.31217 10.3236C9.30676 10.1757 9.25072 10.0475 9.14405 9.93919L7.22405 8.00065ZM7.99259 0.417317C9.03579 0.417317 10.0183 0.614678 10.9401 1.0094C11.8619 1.40412 12.6687 1.94725 13.3605 2.63878C14.0523 3.3303 14.5957 4.13648 14.9907 5.05732C15.3856 5.97801 15.583 6.96183 15.583 8.00878C15.583 9.05572 15.3856 10.0366 14.9909 10.9515C14.5962 11.8663 14.0531 12.6697 13.3615 13.3615C12.67 14.0533 11.8638 14.5967 10.943 14.9917C10.0223 15.3866 9.03849 15.584 7.99155 15.584C6.9446 15.584 5.9637 15.3866 5.04884 14.9919C4.13398 14.5972 3.33065 14.0541 2.63884 13.3625C1.94704 12.671 1.40363 11.8665 1.00863 10.949C0.613772 10.0313 0.416341 9.05093 0.416341 8.00773C0.416342 6.96454 0.613703 5.98204 1.00842 5.06023C1.40315 4.13843 1.94627 3.33162 2.6378 2.63982C3.32933 1.94801 4.13384 1.40461 5.05134 1.00961C5.96898 0.614747 6.9494 0.417317 7.99259 0.417317ZM7.99968 1.50065C6.19412 1.50065 4.6594 2.13259 3.39551 3.39648C2.13162 4.66037 1.49967 6.19509 1.49967 8.00065C1.49967 9.80621 2.13162 11.3409 3.39551 12.6048C4.6594 13.8687 6.19412 14.5007 7.99967 14.5007C9.80523 14.5007 11.34 13.8687 12.6038 12.6048C13.8677 11.3409 14.4997 9.80621 14.4997 8.00065C14.4997 6.19509 13.8677 4.66037 12.6038 3.39648C11.34 2.13259 9.80523 1.50065 7.99968 1.50065Z",fill:"#009BC9"})})}),t.jsx("h1",{className:"text-xl text-gray-900 dark:text-gray-100 font-medium flex items-center gap-2 w-max",children:"MaxCredible"})]})})})};function v(){const{t:e}=o(),s=f({query:"(max-width: 1224px)"}),i=d({strict:!1}),{isEssential:c,isLoading:r}=b(),l=[{name:e("accountSettings.overview"),path:"overview"},{name:e("accountSettings.brandStyle"),path:"style"},{name:e("accountSettings.users"),path:"users"},{name:e("accountSettings.rolesPermissions"),path:"permissions",proOnly:!0},{name:e("accountSettings.departments"),path:"departments"},{name:e("accountSettings.issueSettings"),path:"issues-settings"},{name:e("accountSettings.mySubscription"),path:"subscription"},{name:e("accountSettings.contentSettings"),path:"content-settings",proOnly:!0}].filter(n=>!n.proOnly||r||!c),m=i.administrationId||window.location.pathname.split("/")[2];return t.jsx("nav",{className:a("relative bg-white dark:bg-neutral-950 px-2 py-1 rounded-xl"),children:t.jsx("ul",{className:a("flex items-center",s?"flex-col":"flex-row"),children:l.map((n,p)=>t.jsx("li",{children:n.proOnly&&r?t.jsx("div",{className:"px-2 py-2 flex items-center",children:t.jsx(u,{width:"6rem",height:"1.25rem",className:"rounded-full"})}):t.jsx(g,{to:`/administrations/${m}/settings/${n.path}`,className:a("px-2 py-2 text-sm text-gray-300 dark:text-gray-500 font-semibold flex items-center gap-1 hover:text-cyan-600 dark:hover:text-blue-300","data-[status=active]:text-cyan-600 dark:data-[status=active]:text-blue-300","py-2"),children:n.name})},p))})})}const M=function(){const i=C().pathname.endsWith("/subscription/upgrade");return t.jsxs("div",{className:"flex flex-col gap-4",children:[!i&&t.jsxs(t.Fragment,{children:[t.jsx(j,{}),t.jsx(v,{})]}),t.jsx(h,{})]})};export{M as component}; 2//# sourceMappingURL=settings-CCEz4H41.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.