1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2683],{32170:function(e,t,a){a.d(t,{MainNav:function(){return c}});var s=a(57437),r=a(2265),n=a(27648),l=a(99376),d=a(94143),i=a(10895);function o(e){let{items:t,menuRef:a,children:l}=e;return r.useLayoutEffect(()=>{let e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[]),(0,s.jsx)("div",{className:(0,d.cn)("fixed inset-0 top-16 z-50 grid h-[calc(100vh-4rem)] grid-flow-row auto-rows-max overflow-auto p-6 pb-32 shadow-md animate-in slide-in-from-top-80 lg:hidden"),children:(0,s.jsxs)("div",{className:"relative z-20 grid gap-6 rounded-md bg-popover p-4 text-popover-foreground shadow-md border",ref:a,children:[(0,s.jsx)(n.default,{href:"/",className:"flex items-center space-x-2",children:(0,s.jsx)(i.P.logoWide,{className:"h-10",width:250})}),(0,s.jsx)("nav",{className:"grid grid-flow-row auto-rows-max text-sm",children:t.map((e,t)=>(0,s.jsx)(n.default,{href:e.disabled?"#":e.href,className:(0,d.cn)("flex my-1 w-full md:w-[30%] items-center rounded-md p-2 text-sm font-medium hover:underline border",e.disabled&&"cursor-not-allowed opacity-60"),children:e.title},t))}),l]})})}function c(e){let{items:t,home:a,children:c}=e,f=(0,l.useSelectedLayoutSegment)(),[u,m]=r.useState(!1),x=r.useRef(null);return r.useEffect(()=>{let e=e=>{x.current&&!x.current.contains(e.target)&&m(!1)};return u&&document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[u]),(0,s.jsxs)("div",{className:"flex gap-6 lg:gap-10",children:[(0,s.jsx)(n.default,{href:a||"/",className:"hidden items-center space-x-2 lg:flex",children:(0,s.jsx)(i.P.logoWide,{className:"h-10",width:250})}),(null==t?void 0:t.length)?(0,s.jsx)("nav",{className:"hidden gap-6 lg:flex",children:null==t?void 0:t.map((e,t)=>(0,s.jsx)(n.default,{href:e.disabled?"#":e.href,target:e.href.startsWith("http")?"_blank":void 0,className:(0,d.cn)("flex items-center text-lg font-medium transition-colors text-log-cabin-950 hover:text-amber-800 sm:text-sm",e.href.startsWith("/".concat(f))?"text-amber-400":"",e.disabled&&"cursor-not-allowed opacity-80"),children:e.title},t))}):null,(0,s.jsxs)("button",{className:"flex items-center space-x-2 lg:hidden",onClick:()=>m(!u),children:[u?(0,s.jsx)(i.P.close,{}):(0,s.jsx)(i.P.menu,{}),(0,s.jsx)("span",{className:"font-bold",children:"Menu"})]}),u&&t&&(0,s.jsx)(o,{items:t,menuRef:x,children:c})]})}},80642:function(e,t,a){a.d(t,{UserAccountNav:function(){return j}});var s=a(57437),r=a(27648),n=a(80605),l=a(84190),d=a(2265),i=a(61146),o=a(94143);let c=d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.fC,{ref:t,className:(0,o.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...r})});c.displayName=i.fC.displayName;let f=d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.Ee,{ref:t,className:(0,o.cn)("aspect-square h-full w-full",a),...r})});f.displayName=i.Ee.displayName;let u=d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.NY,{ref:t,className:(0,o.cn)("flex h-full w-full items-center justify-center rounded-full bg-amber-50 xdark:bg-slate-800",a),...r})});u.displayName=i.NY.displayName;var m=a(10895);function x(e){let{user:t,...a}=e;return(0,s.jsx)(c,{...a,children:t.image?(0,s.jsx)(f,{alt:"Picture",src:t.image}):(0,s.jsxs)(u,{children:[(0,s.jsx)("span",{className:"sr-only",children:t.name}),(0,s.jsx)(m.P.user,{className:"h-4 w-4"})]})})}var h=a(93340),p=a(99376),b=a(62727),g=a(77992);function j(e){let{user:t}=e,a=(0,p.useRouter)();async function d(e){if((0,g.Am)({title:"Updating region..."}),!await (0,b.tU)({userId:t.id,region:e}))return(0,g.Am)({title:"Something went wrong.",description:"Please try again.",variant:"destructive"});(0,g.Am)({title:"Region updated successfully."}),a.refresh()}return(0,s.jsxs)(l.h_,{children:[(0,s.jsx)(l.$F,{children:(0,s.jsx)(x,{user:{name:t.name||null,image:t.image||null},className:"h-8 w-8"})}),(0,s.jsxs)(l.AW,{align:"end",className:"shadow-lg border-black border-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-start gap-2 p-2",children:(0,s.jsxs)("div",{className:"flex flex-col space-y-1 leading-none",children:[t.name&&(0,s.jsx)("p",{className:"font-medium",children:t.name}),t.email&&(0,s.jsx)("p",{className:"w-[200px] truncate text-sm text-muted-foreground",children:t.email})]})}),(0,s.jsx)(l.VD,{}),(0,s.jsx)(l.Xi,{asChild:!0,children:(0,s.jsx)(r.default,{href:"/dashboard",children:"Dashboard"})}),(0,s.jsxs)(l.Ph,{children:[(0,s.jsxs)(l.kt,{children:[(0,s.jsx)("span",{children:"Region"}),"IN"===t.region?(0,s.jsx)(m.P.flagIndia,{className:"ml-2 h-4 w-4"}):(0,s.jsx)(m.P.flagUSA,{className:"ml-2 h-4 w-4"})]}),(0,s.jsx)(l.cq,{children:(0,s.jsxs)(l.TG,{children:[(0,s.jsxs)(l.Xi,{className:"cursor-pointer",onSelect:e=>{e.preventDefault(),d(h.Region.US)},children:[(0,s.jsx)(m.P.flagUSA,{className:"mr-2 h-4 w-4"}),(0,s.jsx)("span",{children:"US Law"})]}),(0,s.jsxs)(l.Xi,{className:"cursor-pointer",onSelect:e=>{e.preventDefault(),d(h.Region.IN)},children:[(0,s.jsx)(m.P.flagIndia,{className:"mr-2 h-4 w-4"}),(0,s.jsx)("span",{children:"Indian Law"})]})]})})]}),(0,s.jsx)(l.Xi,{asChild:!0,children:(0,s.jsx)(r.default,{href:"/dashboard/settings",children:"Settings"})}),(0,s.jsx)(l.Xi,{asChild:!0,children:(0,s.jsx)(r.default,{href:"/support",children:"Support"})}),(0,s.jsx)(l.VD,{}),"super"===t.userType&&(0,s.jsx)(l.Xi,{asChild:!0,children:(0,s.jsx)(r.default,{href:"/admin",children:"Admin View"})}),(0,s.jsx)(l.Xi,{className:"cursor-pointer",onSelect:e=>{e.preventDefault(),(0,n.signOut)({callbackUrl:"".concat(window.location.origin,"/login")})},children:"Sign out"})]})]})}},84190:function(e,t,a){a.d(t,{$F:function(){return f},AW:function(){return p},Ju:function(){return j},Ph:function(){return m},TG:function(){return h},VD:function(){return N},Xi:function(){return b},bO:function(){return g},cq:function(){return u},h_:function(){return c},kt:function(){return x}});var s=a(57437),r=a(2265),n=a(70085),l=a(10407),d=a(30401),i=a(40519),o=a(94143);let c=n.fC,f=n.xz;n.ZA;let u=n.Uv,m=n.Tr;n.Ee;let x=r.forwardRef((e,t)=>
1{let{className:a,inset:r,children:d,...i}=e;return(0,s.jsxs)(n.fF,{ref:t,className:(0,o.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-amber-100 data-[state=open]:bg-amber-100 xdark:focus:bg-slate-800 xdark:data-[state=open]:bg-slate-800",r&&"pl-8",a),...i,children:[d,(0,s.jsx)(l.Z,{className:"ml-auto h-4 w-4"})]})});x.displayName=n.fF.displayName;let h=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(n.tu,{ref:t,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border border-amber-900 bg-background p-1 text-slate-950 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 xdark:border-slate-800 xdark:bg-slate-950 xdark:text-slate-50",a),...r})});h.displayName=n.tu.displayName;let p=r.forwardRef((e,t)=>{let{className:a,sideOffset:r=4,...l}=e;return(0,s.jsx)(n.Uv,{children:(0,s.jsx)(n.VY,{ref:t,sideOffset:r,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border border-amber-900 bg-background p-1 text-slate-950 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 xdark:border-slate-800 xdark:bg-slate-950 xdark:text-slate-50",a),...l})})});p.displayName=n.VY.displayName;let b=r.forwardRef((e,t)=>{let{className:a,inset:r,...l}=e;return(0,s.jsx)(n.ck,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-ring/40 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 xdark:focus:bg-slate-800 xdark:focus:text-slate-50",r&&"pl-8",a),...l})});b.displayName=n.ck.displayName;let g=r.forwardRef((e,t)=>{let{className:a,children:r,checked:l,...i}=e;return(0,s.jsxs)(n.oC,{ref:t,className:(0,o.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-amber-50 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 xdark:focus:bg-slate-800 xdark:focus:text-slate-50",a),checked:l,...i,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(n.wU,{children:(0,s.jsx)(d.Z,{className:"h-4 w-4"})})}),r]})});g.displayName=n.oC.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,...l}=e;return(0,s.jsxs)(n.Rk,{ref:t,className:(0,o.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-amber-50 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 xdark:focus:bg-slate-800 xdark:focus:text-slate-50",a),...l,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(n.wU,{children:(0,s.jsx)(i.Z,{className:"h-2 w-2 fill-current"})})}),r]})}).displayName=n.Rk.displayName;let j=r.forwardRef((e,t)=>{let{className:a,inset:r,...l}=e;return(0,s.jsx)(n.__,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...l})});j.displayName=n.__.displayName;let N=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(n.Z0,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-amber-100 xdark:bg-slate-800",a),...r})});N.displayName=n.Z0.displayName},62727:function(e,t,a){a.d(t,{Tj:function(){return r},Xq:function(){return n},gQ:function(){return l},tU:function(){return d}}),a(83079);var s=a(12119),r=(0,s.$)("cbeeb5c0fdd6e9bfc8b36bb6094948426560e4fa"),n=(0,s.$)("01e94819f911ef595bce5917bf818eab6e455302"),l=(0,s.$)("72106fb57514b03d67c4430f6246edd8e886101c"),d=(0,s.$)("28f6f86c8375ab27df98285c246df1c86cca6e24")}}]);
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.