dsql-admin/dsql-app/.local_dist/server/pages/su/users/new.js

1 line
8.0 KiB
JavaScript
Raw Normal View History

2024-12-05 07:03:33 +00:00
"use strict";(()=>{var e={};e.id=5682,e.ids=[636,5682],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},45158:(e,t,r)=>{r.r(t),r.d(t,{config:()=>v,default:()=>f,getServerSideProps:()=>P,getStaticPaths:()=>k,getStaticProps:()=>q,reportWebVitals:()=>j,routeModule:()=>_,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>A,unstable_getStaticProps:()=>b});var s={};r.r(s),r.d(s,{default:()=>y,getServerSideProps:()=>g});var i=r(63865),a=r(9455),u=r(30671),l=r(49407),n=r(68268),o=r(8732),p=r(82015),c=r.n(p),d=r(93615),m=r.n(d),x=r(64987);function h({data:e}){return(0,o.jsx)(c().Fragment,{children:(0,o.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,o.jsx)("div",{className:"flex flex-row items-center w-full gap-20 mb-6 justify-between",children:(0,o.jsx)("h2",{className:"text-xl m-0",children:"New User"})}),(0,o.jsx)("section",{className:"paper",children:(0,o.jsx)("h2",{className:"text-base m-0",children:"Info"})})]})})}function y({user:e,data:t}){let r=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,o.jsx)(x.A,{head:r,user:e,children:(0,o.jsx)(h,{data:t})})}async function g({req:e,res:t,query:r}){let s=await m()(e);return s?.logged_in_status?{props:{user:s}}:{redirect:{destination:"/su/login",permanent:!1}}}r(21498);let f=(0,u.M)(s,"default"),q=(0,u.M)(s,"getStaticProps"),k=(0,u.M)(s,"getStaticPaths"),P=(0,u.M)(s,"getServerSideProps"),v=(0,u.M)(s,"config"),j=(0,u.M)(s,"reportWebVitals"),b=(0,u.M)(s,"unstable_getStaticProps"),A=(0,u.M)(s,"unstable_getStaticPaths"),S=(0,u.M)(s,"unstable_getStaticParams"),M=(0,u.M)(s,"unstable_getServerProps"),w=(0,u.M)(s,"unstable_getServerSideProps"),_=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/users/new",pathname:"/su/users/new",bundlePath:"",filename:""},components:{App:n.default,Document:l.default},userland:s})},21498:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(8732),i=r(82015),a=r.n(i);function u({userObject:e,userPage:t}){let r=Object.keys(e),[i,u]=a().useState(!1),[l,n]=a().useState(0),[o,p]=a().useState(!t);return(0,s.jsxs)("div",{className:"card col green w-full overflow-hidden"+(o?t?" h-[100px]":" h-[85px]":" "),children:[(0,s.jsxs)("div",{className:"items-center w-full",children:[(0,s.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,s.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,s.jsxs)("div",{className:"ml-auto",children:[(0,s.jsx)("button",{className:"outlined gray small-text",onClick:e=>{o?p(!1):p(!0)},children:o?"More Details":"Collapse"}),!t&&(0,s.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,s.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:r.map((t,i)=>(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,s.jsx)("b",{children:e[t]})]})}),i<r.length-1&&(0,s.jsx)("hr",{})]},i+1))}),(0,s.jsx)("button",{className:"outlined gray small-text w-full",onClick:e=>{p(!0)},children:"Collapse"})]})}},67105:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-