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

1 line
3.7 KiB
JavaScript
Raw Normal View History

2024-12-09 09:39:09 +00:00
"use strict";(()=>{var e={};e.id=5682,e.ids=[5682],e.modules={45158:(e,t,s)=>{s.r(t),s.d(t,{config:()=>P,default:()=>f,getServerSideProps:()=>v,getStaticPaths:()=>S,getStaticProps:()=>b,reportWebVitals:()=>w,routeModule:()=>k,unstable_getServerProps:()=>q,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>N});var r={};s.r(r),s.d(r,{default:()=>g,getServerSideProps:()=>j});var a=s(63865),l=s(9455),i=s(30671),n=s(49407),c=s(89600),o=s(8732),u=s(82015),d=s.n(u),m=s(93615),p=s.n(m),x=s(49888);function h({data:e}){return(0,o.jsx)(d().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 g({user:e,data:t}){let s=(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:s,user:e,children:(0,o.jsx)(h,{data:t})})}async function j({req:e,res:t,query:s}){let r=await p()(e);return r?.logged_in_status?{props:{user:r}}:{redirect:{destination:"/su/login",permanent:!1}}}s(21498);let f=(0,i.M)(r,"default"),b=(0,i.M)(r,"getStaticProps"),S=(0,i.M)(r,"getStaticPaths"),v=(0,i.M)(r,"getServerSideProps"),P=(0,i.M)(r,"config"),w=(0,i.M)(r,"reportWebVitals"),N=(0,i.M)(r,"unstable_getStaticProps"),_=(0,i.M)(r,"unstable_getStaticPaths"),M=(0,i.M)(r,"unstable_getStaticParams"),q=(0,i.M)(r,"unstable_getServerProps"),y=(0,i.M)(r,"unstable_getServerSideProps"),k=new a.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/su/users/new",pathname:"/su/users/new",bundlePath:"",filename:""},components:{App:c.default,Document:n.default},userland:r})},21498:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732),a=s(82015),l=s.n(a);function i({userObject:e,userPage:t}){let s=Object.keys(e),[a,i]=l().useState(!1),[n,c]=l().useState(0),[o,u]=l().useState(!t);return(0,r.jsxs)("div",{className:"card col green w-full overflow-hidden"+(o?t?" h-[100px]":" h-[85px]":" "),children:[(0,r.jsxs)("div",{className:"items-center w-full",children:[(0,r.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,r.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,r.jsxs)("div",{className:"ml-auto",children:[(0,r.jsx)("button",{className:"outlined gray small-text",onClick:e=>{o?u(!1):u(!0)},children:o?"More Details":"Collapse"}),!t&&(0,r.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,r.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:s.map((t,a)=>(0,r.jsxs)(l().Fragment,{children:[(0,r.jsx)("div",{children:(0,r.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,r.jsx)("b",{children:e[t]})]})}),a<s.length-1&&(0,r.jsx)("hr",{})]},a+1))}),(0,r.jsx)("button",{className:"outlined gray small-text w-full",onClick:e=>{u(!0)},children:"Collapse"})]})}},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600,3932],()=>s(45158));module.exports=r})();