"use strict";(()=>{var e={};e.id=786,e.ids=[786],e.modules={8787:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>m,default:()=>c,getServerSideProps:()=>g,getStaticPaths:()=>x,getStaticProps:()=>p,reportWebVitals:()=>y,routeModule:()=>f,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>_,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>h});var s=r(7093),i=r(5244),n=r(1323),l=r(1070),u=r(3893),d=r(7103),o=e([u,d]);[u,d]=o.then?(await o)():o;let c=(0,n.l)(d,"default"),p=(0,n.l)(d,"getStaticProps"),x=(0,n.l)(d,"getStaticPaths"),g=(0,n.l)(d,"getServerSideProps"),m=(0,n.l)(d,"config"),y=(0,n.l)(d,"reportWebVitals"),h=(0,n.l)(d,"unstable_getStaticProps"),b=(0,n.l)(d,"unstable_getStaticPaths"),q=(0,n.l)(d,"unstable_getStaticParams"),S=(0,n.l)(d,"unstable_getServerProps"),_=(0,n.l)(d,"unstable_getServerSideProps"),f=new s.PagesRouteModule({definition:{kind:i.x.PAGES,page:"/admin/users/[deployment_user_id]",pathname:"/admin/users/[deployment_user_id]",bundlePath:"",filename:""},components:{App:u.default,Document:l.default},userland:d});a()}catch(e){a(e)}})},3523:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{Z:()=>p});var s=r(997),i=r(6689),n=r(3893),l=r(2984),u=r(2394),d=r(1764),o=r(9705),c=e([n,l,u,d,o]);function p(){let{pageProps:e}=(0,i.useContext)(n.AppContext),{deployment_user:t}=e;if(!t?.id)return null;let r=!!t.is_super_admin;return(0,s.jsxs)(i.Fragment,{children:[s.jsx(u.Z,{title:(0,s.jsxs)(o.Z,{children:[s.jsx("span",{children:t?.first_name}),s.jsx("span",{children:t?.last_name}),r?s.jsx(d.Z,{className:"inline",children:"Super Admin"}):null]})}),s.jsx(l.Z,{})]})}[n,l,u,d,o]=c.then?(await c)():c,a()}catch(e){a(e)}})},7103:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{default:()=>p,getServerSideProps:()=>x});var s=r(997),i=r(3523),n=r(8683),l=r(8688),u=r(3060),d=r(8804),o=r.n(d),c=e([i,u]);function p(){return s.jsx(u.Z,{children:s.jsx(i.Z,{})})}[i,u]=c.then?(await c)():c;let x=async e=>await (0,l.Z)({ctx:e,propsFn:async({user:e,props:t,query:r})=>e.super_admin?{deployment_user:(await o().select({table:"users",targetId:(0,n._n)(r?.deployment_user_id)})).singleRes}:"/admin"});a()}catch(e){a(e)}})},1764:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{Z:()=>l});var s=r(997);r(6689);var i=r(8097),n=e([i]);function l({color:e,variant:t,children:r,href:a,newTab:n,linkProps:l,...u}){let d=s.jsx("div",{...u,className:(0,i.twMerge)("text-xs px-2 py-0.5 rounded-full outline-0","text-center flex items-center justify-center","secondary"==e?"bg-secondary text-white outline-secbg-secondary":"success"==e?"bg-success outline-success text-white":"error"==e?"bg-orange-700 outline-orange-700":"gray"==e?(0,i.twMerge)("bg-slate-100 outline-slate-200 dark:bg-gray-dark dark:outline-gray-dark","text-slate-800 dark:text-white"):"bg-primary text-white outline-primbg-primary twui-tag-primary","outlined"==t?"!bg-transparent outline-1 "+("secondary"==e?"text-secondary":"success"==e?"text-success dark:text-success-dark":"error"==e?"text-orange-700":"gray"==e?"text-slate-700 dark:text-white/80":"text-primary dark:text-primary-dark twui-tag-primary-outlined"):"ghost"==t?"!bg-transparent outline-none border-none "+("secondary"==e?"text-secondary":"success"==e?"text-success dark:text-success-dark":"error"==e?"text-orange-700":"gray"==e?"text-slate-700 dark:text-white/80":"text-primary dark:text-primary-dark"):"","twui-tag",u.className),children:r});return a?s.jsx("a",{href:a,target:n?"_blank":void 0,...l,className:(0,i.twMerge)("hover:opacity-80",l?.className),children:d}):d}i=(n.then?(await n)():n)[0],a()}catch(e){a(e)}})},5191:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},4882:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt")},4605:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/ejson")},1521:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/numberfy")},6255:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/slugify")},8804:e=>{e.exports=require("@moduletrace/nsqlite")},1635:e=>{e.exports=require("dayjs")},6517:e=>{e.exports=require("lodash")},2423:e=>{e.exports=require("lucide-react")},2785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},968:e=>{e.exports=require("next/head")},6689:e=>{e.exports=require("react")},6405:e=>{e.exports=require("react-dom")},997:e=>{e.exports=require("react/jsx-runtime")},2048:e=>{e.exports=require("fs")},5315:e=>{e.exports=require("path")},8097:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[859,800,752,150],()=>r(8787));module.exports=a})();