1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[55790],{7443:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(12115).createContext)({userSession:void 0,setUserSession:e=>e})},8543:(e,a,s)=>{s.d(a,{cn:()=>r});var t=s(49592),n=s(56825);function r(...e){return(0,n.Q)((0,t.$)(e))}},20992:(e,a,s)=>{s.d(a,{Q:()=>l,W:()=>i});var t=s(95234),n=s(87358);let r=new Set(["circlehash","oneminers"]);function l(){return n.env.NEXT_PUBLIC_TAX_CONSULTATION_URL??"https://oneminers.com/pages/tax-consultation"}function i(e){return r.has((0,t.QJ)(e??""))}},22542:(e,a,s)=>{s.d(a,{xN:()=>o});var t=s(86342),n=s(95234),r=s(51147);let l={[t.eq.Developer]:"profile_settings_adminRole_developer",[t.eq.SuperAdmin]:"profile_settings_adminRole_superAdmin",[t.eq.GlobalAdmin]:"profile_settings_adminRole_globalAdmin",[t.eq.SeniorSalesAdmin]:"profile_settings_adminRole_seniorSalesAdmin",[t.eq.SalesAdmin]:"profile_settings_adminRole_salesAdmin",[t.eq.WhitelabelAdmin]:"profile_settings_adminRole_whitelabelAdmin",[t.eq.SupportAdmin]:"profile_settings_adminRole_supportAdmin",[t.eq.None]:null},i={leedminers:"LeedMiners"};function o(e,a,s){let o=function(e,a){let s=(0,t.D0)(e);if(s===t.eq.None)return null;let l=a?(0,n.QJ)(a):"";return{role:s,brandLabel:l&&l!==r.rQ?function(e){let a=i[e];if(a)return a;let s=(0,n.fB)(e);return s!==e?s:e.split(/[\s_-]+/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}(l):void 0}}(e,a);if(!o)return null;let d=l[o.role];if(!d)return null;let c=s(d);return o.brandLabel?s("profile_settings_adminRoleValue",{brand:o.brandLabel,role:c}):c}},25086:(e,a,s)=>{s.r(a),s.d(a,{default:()=>f});var t=s(95155),n=s(12115),r=s(98500),l=s.n(r),i=s(96425),o=s(1974),d=s(59028),c=s(43275),m=s(73533);let h="[&>*]:py-2.5 [&>*]:px-6 h-14 text-lg",u="[&>*]:py-2 [&>*]:px-3 text-xs",p=(0,o.F)(`inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors 2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 3 disabled:pointer-events-none disabled:opacity-50 active:[&>*]:translate-y-0.5`,{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",dashboardCardAction:"rounded-lg text-base font-bold tracking-wide transition duration-200 hover:brightness-95 disabled:cursor-not-allowed disabled:hover:brightness-100",white:"bg-white text-primary hover:bg-white/90",black:"bg-black text-white hover:bg-black/90",green:"bg-green-500 text-white hover:bg-green-500/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",outlinePrimary:"border-primary bg-background border-2 hover:border-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/90",ghost:"hover:bg-accent/50 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",transparent:"bg-transparent hover:bg-accent hover:text-accent-foreground",flat:"bg-primary/5 text-primary hover:bg-primary/10",custom:""},size:{default:"text-sm h-10 [&>*]:py-2 [&>*]:px-4",small:u,sm:u,large:h,lg:h,icon:"h-10 w-10",custom:""}},defaultVariants:{variant:"default",size:"default"}});function x(){return(0,t.jsx)("span",{className:"mx-2",children:(0,t.jsx)(m.A,{className:"mx-auto !h-4 !w-4 fill-white dark:fill-white"})})}let f=(0,n.forwardRef)(function({asChild:e,className:a,children:s,size:n,variant:r,block:o,loading:m,href:h,textClassName:u,round:f,type:b,...j},g){let v=m||j.disabled,y=(0,d.cn)(p({variant:r??"default",size:n??"default"}),o?"w-full":"",m?"opacity-80":"",f?"rounded-full":"",v?"pointer-events-none":"",a);if(e)return(0,t.jsx)(i.DX,{...j,ref:g,className:(0,d.cn)(y,u),"aria-disabled":v||void 0,"data-disabled":v?"":void 0,tabIndex:v?-1:j.tabIndex,onClickCapture:e=>{v&&(e.preventDefault(),e.stopPropagation())},onKeyDownCapture:e=>{v&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.stopPropagation())},children:s});let w=(0,t.jsx)("span",{className:"flex h-full w-full items-center transition-transform duration-500 ease-out",children:(0,t.jsxs)("span",{className:(0,d.cn)("flex w-full flex-1 items-center justify-center",u),children:[(0,t.jsx)(c.A,{condition:m,children:(0,t.jsx)(x,{})}),s]})});if(h&&!v){var N;return(N=h,/^(?:[a-z][a-z\d+.-]*:|\/\/)/i.test(N))?(0,t.jsx)("a",{...j,ref:g,href:h,className:y,children:w}):(0,t.jsx)(l(),{...j,ref:g,href:h,className:y,children:w})}return(0,t.jsx)("button",{...j,type:b,ref:g,className:y,disabled:v,children:w})})},26538:(e,a,s)=>{s.d(a,{A:()=>o});var t=s(95155),n=s(12115),r=s(92680),l=s(46751),i=s(8543);function o(e){return(0,t.jsx)(r.e,{appear:!0,show:e.isOpen,as:n.Fragment,afterLeave:e.afterLeave,children:(0,t.jsxs)(l.lG,{as:"div",className:"relative z-10",onClose:e.onClose,children:[(0,t.jsx)(r.e.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-25 dark:bg-black/60"})}),(0,t.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-center max-sm:items-end justify-center p-4 max-sm:p-0 text-center",children:(0,t.jsx)(r.e.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,t.jsx)(l.lG.Panel,{className:(0,i.cn)("w-full max-w-md flex flex-col gap-4 transform overflow-hidden rounded-2xl border border-transparent bg-white p-6 text-left align-middle shadow-xl transition-all dark:border-dark-700 dark:bg-dark-900 dark:text-gray-100 max-sm:rounded-b-none",e.dialogPanelStyle),children:e.children})})})})]})})}},31411:(e,a,s)=>{s.d(a,{A:()=>x});var t=s(95155),n=s(49592),r=s(75799),l=s(84195),i=s(31863),o=s(56711),d=s(41897),c=s(92967),m=s(30527),h=s(20992),u=s(44662),p=s(87358);let x=()=>({items:[{label:"dashboard:navigation_tabs_dashboardLabel",path:f(""),Icon:({className:e})=>(0,t.jsx)(o._ht,{className:(0,n.$)(e,{"w-6":!0})}),end:!0},{label:"dashboard:navigation_tabs_buyMinerLabel",path:f("marketplace"),Icon:({className:e})=>(0,t.jsx)(r.Ca6,{className:(0,n.$)(e,{"w-6":!0})})},{label:"dashboard:mining_workers_tab_heading",path:f("mining"),Icon:({className:e})=>(0,t.jsx)(r.GKV,{className:(0,n.$)(e,{"w-6":!0})})},{label:"dashboard:navigation_tabs_walletLabel",path:f("wallet"),Icon:({className:e})=>(0,t.jsx)(d.eFC,{className:(0,n.$)(e,{"w-6":!0})})},...(0,h.W)((0,u.T)())?[{label:"dashboard:navigation_tabs_taxConsultationLabel",path:(0,h.Q)(),external:!0,Icon:({className:e})=>(0,t.jsx)(o.hwy,{className:(0,n.$)(e,{"w-6":!0})})}]:[],{label:"dashboard:navigation_tabs_buyPrepaidEnergyLabel",path:f("prepaid-energy"),Icon:({className:e})=>(0,t.jsx)(o.qg7,{className:(0,n.$)(e,{"w-6":!0})})},{label:"dashboard:navigation_tabs_ordersLabel",path:f("orders/all"),Icon:({className:e})=>(0,t.jsx)(i.wTh,{className:(0,n.$)(e,{"w-6":!0})})},{label:"dashboard:navigation_tabs_repairLogsLabel",path:f("repairs"),Icon:({className:e})=>(0,t.jsx)(d.vYr,{className:(0,n.$)(e,{"w-6":!0})})},{label:"dashboard:navigation_tabs_referralsLabel",path:f("referrals/invite"),Icon:({className:e})=>(0,t.jsx)(l.YXz,{className:(0,n.$)(e,{"w-6":!0})})},{label:"dashboard:settings_sidebar_settings_tabLabel",path:f("settings"),Icon:({className:e})=>(0,t.jsx)(c.yZH,{className:(0,n.$)(e,{"w-6":!0})})},{label:"dashboard:navigation_tabs_payLaterLabel",path:f("pay-later"),Icon:({className:e})=>(0,t.jsx)(o.IAS,{className:(0,n.$)(e,{"w-6":!0})})},{label:"dashboard:navigation_tabs_newsUpdatesLabel",path:f("news-updates"),Icon:({className:e})=>(0,t.jsx)(o.x6K,{className:(0,n.$)(e,{"w-6":!0})})},{label:"dashboard:navigation_tabs_premiumSupportLabel",path:p.env.CALENDLY_MEET??"https://oneminers.com/pages/support-request",Icon:({className:e})=>(0,t.jsx)(o.fTe,{className:(0,n.$)(e,{"w-6":!0})})}]});
3function f(e){return[m.A.paths.appPrefix,e].filter(Boolean).join("/")}},37957:(e,a,s)=>{s.d(a,{M5:()=>p,SQ:()=>x,_2:()=>f,lp:()=>b,lv:()=>h,mB:()=>j,nV:()=>u,rI:()=>c,ty:()=>m});var t=s(95155),n=s(12115),r=s(55494),l=s(53821),i=s(10053),o=s(40445),d=s(59028);let c=o.bL,m=o.l9;o.YJ,o.ZL;let h=o.Pb;o.z6;let u=n.forwardRef(({className:e,inset:a,children:s,...n},l)=>(0,t.jsxs)(o.ZP,{ref:l,className:(0,d.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",a&&"pl-8",e),...n,children:[s,(0,t.jsx)(r.A,{className:"ml-auto h-4 w-4"})]}));u.displayName=o.ZP.displayName;let p=n.forwardRef(({className:e,...a},s)=>(0,t.jsx)(o.G5,{ref:s,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));p.displayName=o.G5.displayName;let x=n.forwardRef(({className:e,sideOffset:a=4,alignOffset:s=4,...n},r)=>(0,t.jsx)(o.ZL,{children:(0,t.jsx)(o.UC,{ref:r,sideOffset:a,alignOffset:s,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:shadow-2xl dark:shadow-primary/40",e),...n})}));x.displayName=o.UC.displayName;let f=n.forwardRef(({className:e,inset:a,...s},n)=>(0,t.jsx)(o.q7,{ref:n,className:(0,d.cn)("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",e),...s}));f.displayName=o.q7.displayName,n.forwardRef(({className:e,children:a,checked:s,...n},r)=>(0,t.jsxs)(o.H_,{ref:r,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:s,...n,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(o.VF,{children:(0,t.jsx)(l.A,{className:"h-4 w-4"})})}),a]})).displayName=o.H_.displayName,n.forwardRef(({className:e,children:a,...s},n)=>(0,t.jsxs)(o.hN,{ref:n,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...s,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(o.VF,{children:(0,t.jsx)(i.A,{className:"h-2 w-2 fill-current"})})}),a]})).displayName=o.hN.displayName;let b=n.forwardRef(({className:e,inset:a,...s},n)=>(0,t.jsx)(o.JU,{ref:n,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",e),...s}));b.displayName=o.JU.displayName;let j=n.forwardRef(({className:e,...a},s)=>(0,t.jsx)(o.wv,{ref:s,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",e),...a}));j.displayName=o.wv.displayName},44876:(e,a,s)=>{s.d(a,{A:()=>r});var t=s(12115),n=s(7443);function r(){let{userSession:e}=(0,t.useContext)(n.A);return e}},45241:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(12115).createContext)({wallet:{currentBalance:0},reloadBalance:()=>{}})},51147:(e,a,s)=>{s.d(a,{B4:()=>d,XF:()=>c,eQ:()=>o,rQ:()=>r,sv:()=>i,tv:()=>n});let t=["internal","circlehash","oneminers","iceriver","pcpraha","ibelink","chash"],n="internal",r="all";function l(e){return e?.trim().toLowerCase()??""}function i(e){return!!e&&t.includes(e.toLowerCase())}let o=["circlehash","oneminers","iceriver","pcpraha","ibelink","chash"];function d(e){let a=l(e);return a===r||a===n}function c(e,a=[]){let s=l(e),t=Array.from(new Set(a.map(e=>
3l(e)).filter(Boolean)));return s?s===r?Array.from(new Set([...t,...o])):s===n?[...o]:[s]:[]}},51590:(e,a,s)=>{s.d(a,{default:()=>E});var t=s(95155),n=s(12115),r=s(98500),l=s.n(r),i=s(73321),o=s(54982),d=s(25265),c=s(87639),m=s(10053),h=s(93848),u=s(44286),p=s(75799),x=s(84195),f=s(85418),b=s(30527),j=s(61322),g=s(64974),v=s(30277),y=s(44876),w=s(86342),N=s(23209),_=s(37957),A=s(43275),C=s(23848),k=s(22542),L=s(45241),I=s(59858),R=s(31411),S=s(87358);function B(){let e=(0,I.bc)(),a=(0,n.useMemo)(()=>(0,I.lV)(e),[e]);return(0,t.jsx)(t.Fragment,{children:a.map(e=>(0,t.jsx)(_._2,{asChild:!0,children:(0,t.jsxs)(l(),{className:"flex h-full w-full items-center space-x-2",href:e.path,children:[e.icon&&(0,t.jsx)(e.icon,{className:"h-5 w-5"}),(0,t.jsx)("span",{children:e.title})]})},e.path))})}function U(){let e=(0,n.useMemo)(()=>(0,N.$b)(),[]),a=({children:e})=>(0,t.jsx)("span",{className:"flex items-center space-x-2.5",children:e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.mB,{className:"hidden lg:flex"}),(0,t.jsxs)(_.lv,{children:[(0,t.jsx)(_.nV,{className:"hidden lg:flex",children:(0,t.jsxs)(a,{children:[(0,t.jsx)(d.A,{className:"h-5"}),(0,t.jsx)("span",{children:(0,t.jsx)(C.A,{i18nKey:"theme_selector_menuLabel"})})]})}),(0,t.jsxs)(_.M5,{children:[(0,t.jsxs)(_._2,{className:"flex cursor-pointer items-center justify-between",onClick:()=>(0,N.Yl)(N.r5),children:[(0,t.jsxs)(a,{children:[(0,t.jsx)(c.A,{className:"h-4"}),(0,t.jsx)("span",{children:(0,t.jsx)(C.A,{i18nKey:"theme_selector_lightOption"})})]})," ",(0,t.jsx)(A.A,{condition:e===N.r5,children:(0,t.jsx)(m.A,{className:"h-5"})})]}),(0,t.jsxs)(_._2,{className:"flex cursor-pointer items-center justify-between",onClick:()=>(0,N.Yl)(N.zG),children:[(0,t.jsxs)(a,{children:[(0,t.jsx)(h.A,{className:"h-4"}),(0,t.jsx)("span",{children:(0,t.jsx)(C.A,{i18nKey:"theme_selector_darkOption"})})]})," ",(0,t.jsx)(A.A,{condition:e===N.zG,children:(0,t.jsx)(m.A,{className:"h-5"})})]}),(0,t.jsxs)(_._2,{className:"flex cursor-pointer items-center justify-between",onClick:()=>(0,N.Yl)(N.Kn),children:[(0,t.jsxs)(a,{children:[(0,t.jsx)(u.A,{className:"h-4"}),(0,t.jsx)("span",{children:(0,t.jsx)(C.A,{i18nKey:"theme_selector_systemOption"})})]})," ",(0,t.jsx)(A.A,{condition:e===N.Kn,children:(0,t.jsx)(m.A,{className:"h-5"})})]})]})]})]})}let E=({organizationUid:e,adminContext:a,adminUser:s})=>{let r=(0,y.A)(),d=(0,j.A)(),{wallet:c}=(0,n.useContext)(L.A),{currentBalance:m}=c,h=(0,g.A)(),u=(0,i.usePathname)(),N=(0,v.S)(),[I,E]=(0,n.useState)(w.eq.None);(0,n.useEffect)(()=>{let e=!0;return h.auth.getUser().then(({data:a})=>{if(!e)return;let s=a?.user?.app_metadata?.admin_role;E((0,w.D0)(s))}),()=>{e=!1}},[h]);let T=(0,n.useMemo)(()=>{let e=r?.data,a=e?.display_name||s?.display_name,t=r?.auth?.user.email??s?.email,n=r?.auth?.user.phone??s?.phone;return a??t??n??" "},[r,s]),P=(0,n.useMemo)(()=>{let e=r?.data,a=r?.auth?.user;return(0,k.xN)(a?.adminRole??s?.admin_role,e?.admin_brand??s?.admin_brand,N)},[s,N,r]),$=I!==w.eq.None,q=r?{user:r}:{text:T,photoUrl:s?.photo_url??null};return(0,t.jsxs)(_.rI,{children:[(0,t.jsxs)(_.ty,{"data-cy":"profile-dropdown-trigger",className:"flex cursor-pointer items-center space-x-2 focus:outline-none",children:[(0,t.jsx)(f.A,{...q}),(0,t.jsx)(o.A,{className:"hidden h-3 sm:block"})]}),(0,t.jsxs)(_.SQ,{"data-cy":"profile-dropdown-content",className:"max-h-[600px] !min-w-[15rem] overflow-y-auto",collisionPadding:{right:20},children:[(0,t.jsx)(_._2,{className:"!h-10 rounded-none",children:(0,t.jsxs)("div",{"data-cy":"profile-dropdown-signed-in-summary",className:"flex flex-col justify-start truncate text-left text-xs",children:[(0,t.jsxs)("div",{className:"","data-cy":"profile-dropdown-signed-in-label",children:[(0,t.jsx)(C.A,{i18nKey:"dashboard:navigation_profileDropdown_signedInLabel"}),":"]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block truncate","data-cy":"profile-dropdown-signed-in-identity",children:T}),P&&(0,t.jsx)("span",{className:"block truncate text-xs text-gray-500","data-cy":"profile-dropdown-signed-in-role",children:P})]})]})}),(0,t.jsx)(_.mB,{}),(0,t.jsx)("div",{className:"sm:hidden",children:(0,t.jsxs)(A.A,{condition:!u.startsWith("/admin"),children:[(0,t.jsx)(_._2,{className:"!h-10 rounded-none",children:(0,t.jsxs)("div",{className:"flex flex-col justify-start truncate text-left text-xs",children:[(0,t.jsx)("div",{className:"text-gray-500",children:(0,t.jsx)(C.A,{i18nKey:"dashboard:wallet_overview_balanceLabel"})}),(0,t.jsx)("div",{children:(0,t.jsxs)("span",{className:"block truncate",children:["â ",m.toFixed(2)," USD"]})})]})}),(0,t.jsx)(_.mB,{})]})}),!a&&!!e&&(0,R.A)().items.map(a=>null===a.path||a.path.includes("orders")&&"true"===S.env.NEXT_PUBLIC_HIDE_ORDER_SECTION||a.path.includes("marketplace")&&"true"===S.env.NEXT_PUBLIC_HIDE_MARKETPLACE_NEW||a.path.includes("calendly")&&"true"===S.env.NEXT_PUBLIC_HIDE_PREMIUM_SUPPORT?null:(0,t.jsx)(_._2,{asChild:!0,children:(0,t.jsxs)(l(),{className:"flex h-full w-full items-center space-x-2",href:a.path,target:a.external?"_blank":void 0,rel:a.external?"noopener noreferrer":void 0,children:[a.Icon&&(0,t.jsx)(a.Icon,{className:"h-5 w-5"}),(0,t.jsx)("span",{children:(0,t.jsx)(C.A,{i18nKey:a.label})})]})},`${e}-${a.label}`)),!e&&!a&&(0,t.jsx)(_._2,{asChild:!0,children:(0,t.jsxs)(l(),{className:"flex h-full w-full items-center space-x-2",href:b.A.paths.appHome,children:[(0,t.jsx)(p.BUA,{className:"h-5 w-5"}),(0,t.jsx)("span",{children:(0,t.jsx)(C.A,{i18nKey:"dashboard:navigation_tabs_dashboardLabel"})})]})}),a&&(0,t.jsx)(B,{}),(0,t.jsx)(A.A,{condition:b.A.enableProfileThemeSwitcher,children:(0,t.jsx)(U,{})}),(0,t.jsxs)(A.A,{condition:a,children:[(0,t.jsx)(_.mB,{}),(0,t.jsx)(_._2,{asChild:!0,children:(0,t.jsxs)(l(),{className:"flex h-full w-full items-center space-x-2",href:"/dashboard",children:[(0,t.jsx)(p.BUA,{className:"h-5 w-5"}),(0,t.jsx)("span",{children:(0,t.jsx)(C.A,{i18nKey:"dashboard:navigation_tabs_dashboardLabel"})})]})})]}),(0,t.jsxs)(A.A,{condition:$&&!a,children:[(0,t.jsx)(_.mB,{}),(0,t.jsx)(_._2,{asChild:!0,children:(0,t.jsxs)(l(),{className:"flex h-full w-full items-center space-x-2",href:"/admin",children:[(0,t.jsx)(x.MdY,{className:"h-5 w-6"}),(0,t.jsx)("span",{children:"Admin"})]})})]}),(0,t.jsx)(_.mB,{}),(0,t.jsx)(_._2,{"data-cy":"profile-dropdown-sign-out-button",role:"button",className:"cursor-pointer",onClick:()=>d(),children:(0,t.jsxs)("span",{className:"flex w-full items-center space-x-2",children:[(0,t.jsx)(p.AMx,{className:"h-5 w-6"}),(0,t.jsx)("span",{children:(0,t.jsx)(C.A,{i18nKey:"auth_signOut"})})]})})]})]})}},59028:(e,a,s)=>{s.d(a,{cn:()=>r});var t=s(49592),n=s(56825);function r(...e){return(0,n.Q)((0,t.$)(e))}},61322:(e,a,s)=>{s.d(a,{A:()=>r});var t=s(12115),n=s(64974);let r=function(){let e=(0,n.A)();return(0,t.useCallback)(async(a="/")=>{await e.auth.signOut({scope:"local"}),await fetch("/api/user/force-logout",{method:"GET",headers:{"Content-Type":"application/json"}}),window.location.href=a},[e.auth])}},64974:(e,a,s)=>{let t;s.d(a,{A:()=>o});var n=s(12115),r=s(15935),l=s(82727);let i=function(){let e,a,s;if(t)return t;let n="https://kymbdfexkdtgxiuopzwe.supabase.co",i="sb_publishable_SniOaXjW2_ZQWrIHgoIT0Q_-qdAlN7f";return(0,l.A)(n,"Supabase URL was not provided"),(0,l.A)(i,"Supabase Anon key was not provided"),t=(0,r.createBrowserClient)(n,i,{cookieOptions:{name:(a=(e=new URL(n)).hostname.split(".")[0],s=("localhost"===e.hostname||"127.0.0.1"===e.hostname)&&e.port?`-${e.port.slice(0,3)}`:"",`sb-${a}${s}-auth-token`)}})},o=function(){return(0,n.useMemo)(i,[])}},73533:(e,a,s)=>{s.d(a,{A:()=>r});var t=s(95155),n=s(49592);let r=function(e){return(0,t.jsx)("div",{role:"status",children:(0,t.jsxs)("svg",{"aria-hidden":"true",className:(0,n.A)("h-8 w-8 animate-spin fill-white text-primary dark:fill-primary dark:text-primary/30",e.className),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
31071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})}},80873:(e,a,s)=>{s.d(a,{BK:()=>o,eu:()=>i,q5:()=>d});var t=s(95155),n=s(12115),r=s(36165),l=s(49592);let i=n.forwardRef(({className:e,...a},s)=>(0,t.jsx)(r.bL,{ref:s,className:(0,l.A)("relative flex h-8 w-8 shrink-0 overflow-hidden rounded-full",e),...a}));i.displayName=r.bL.displayName;let o=n.forwardRef(({className:e,...a},s)=>(0,t.jsx)(r._V,{ref:s,className:(0,l.A)("aspect-square h-full w-full",e),...a}));o.displayName=r._V.displayName;let d=n.forwardRef(({className:e,...a},s)=>(0,t.jsx)(r.H4,{ref:s,className:(0,l.A)("flex h-full w-full items-center justify-center rounded-full bg-primary font-semibold uppercase text-primary-foreground",e),...a}));d.displayName=r.H4.displayName},85418:(e,a,s)=>{s.d(a,{A:()=>r});var t=s(95155),n=s(80873);let r=e=>{if("user"in e&&e.user){var a;let s=e.user.data?.photo_url;return(0,t.jsxs)(n.eu,{children:[s?(0,t.jsx)(n.BK,{src:s}):null,(0,t.jsx)(n.q5,{children:((a=e.user)?a.data?.display_name??a.auth?.user.email??a.auth?.user.phone??"":"")[0]??""})]})}return"text"in e&&(e.text||e.photoUrl)?(0,t.jsxs)(n.eu,{children:[e.photoUrl?(0,t.jsx)(n.BK,{src:e.photoUrl}):null,(0,t.jsx)(n.q5,{children:e.text?e.text[0]:""})]}):null}}}]);
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.