dsql-admin/dsql-app/.local_dist/server/pages/su/users/[single].js

1 line
18 KiB
JavaScript
Raw Normal View History

2024-12-09 09:39:09 +00:00
"use strict";(()=>{var e={};e.id=3632,e.ids=[3632],e.modules={3443:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.r(t),s.d(t,{config:()=>p,default:()=>u,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>h,reportWebVitals:()=>f,routeModule:()=>b,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>j});var r=s(63865),l=s(9455),n=s(30671),i=s(49407),c=s(89600),o=s(29657),d=e([o]);o=(d.then?(await d)():d)[0];let u=(0,n.M)(o,"default"),h=(0,n.M)(o,"getStaticProps"),m=(0,n.M)(o,"getStaticPaths"),x=(0,n.M)(o,"getServerSideProps"),p=(0,n.M)(o,"config"),f=(0,n.M)(o,"reportWebVitals"),j=(0,n.M)(o,"unstable_getStaticProps"),g=(0,n.M)(o,"unstable_getStaticPaths"),v=(0,n.M)(o,"unstable_getStaticParams"),y=(0,n.M)(o,"unstable_getServerProps"),w=(0,n.M)(o,"unstable_getServerSideProps"),b=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/su/users/[single]",pathname:"/su/users/[single]",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:o});a()}catch(e){a(e)}})},84759:(e,t,s)=>{s.d(t,{A:()=>a});function a({editorHTMLElementRef:e,fieldObject:t,setRefresh:s,language:a="javascript",entry:r,jsonTextEditors:l,editorRef:n,readOnly:i,initialContent:c,options:o}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{s?.(e=>e+1)},1e3);return}let d=ace.edit(e.current);d.setOptions({mode:"ace/mode/"+a,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&r?.[t.fieldName]?(()=>{if("json"!==a)return r[t.fieldName];try{return JSON.stringify(JSON.parse(r[t.fieldName]),null,4)}catch(e){return r[t.fieldName]}})():""),placeholder:"json"==a?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...o}),n&&t?.fieldName&&(l?.current.push({fieldName:t.fieldName,ref:n}),n.current=d);try{ace.require("ace/ext/beautify").beautify(d.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},51548:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(8732),r=s(58526);function l({selectOptions:e,name:t,onChangeHandler:s,required:l,setAlert:n,title:i,defaultValue:c,info:o,id:d}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.classList.add("hidden")}}return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[i&&(0,a.jsxs)("label",{htmlFor:t,children:[i,l?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:l,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),s&&s(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:s,title:r}=e;return(0,a.jsx)("option",{value:s,selected:!!e.default,children:r},t+1)})}),(0,a.jsx)(r.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(0,a.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,a.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,a.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,a.jsx)("span",{children:o})}),(0,a.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,a.jsx)("div",{children:"Form Select Error"})}}s(82015)},89788:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>o});v