dsql-admin/dsql-app/.local_dist/static/chunks/9719-14cc8b76a1deed3c.js

1 line
6.5 KiB
JavaScript
Raw Normal View History

2024-11-05 11:12:42 +00:00
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9719],{5467:function(e,a,s){var t=s(64836);a.Z=void 0;var l=t(s(64938)),n=s(85893),r=(0,l.default)([(0,n.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3l4-4zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2v1zM7 3h10v1H7V3zm10 18H7v-1h10v1z"},"1")],"SendToMobileTwoTone");a.Z=r},57632:function(e,a,s){var t=s(64836);a.Z=void 0;var l=t(s(64938)),n=s(85893),r=(0,l.default)([(0,n.jsx)("path",{d:"M14 5H5v14h14v-9h-5V5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z",opacity:".3"},"0"),(0,n.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,n.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9l-6-6zm4 16H5V5h9v5h5v9z"},"2"),(0,n.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,n.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone");a.Z=r},85541:function(e,a,s){var t=s(64836);a.Z=void 0;var l=t(s(64938)),n=s(85893),r=(0,l.default)([(0,n.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2zm-2-1h8v-2H5v2zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5zm-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5zm6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6l-.63 1.37zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94L19 6z"},"1")],"TipsAndUpdatesTwoTone");a.Z=r},76915:function(e,a,s){s.d(a,{Z:function(){return t}});const t=(0,s(45711).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},58261:function(e,a,s){s.d(a,{Z:function(){return t}});const t=(0,s(45711).Z)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},81926:function(e,a,s){s.d(a,{Z:function(){return u}});var t,l=s(828),n=s(85893),r=s(67294),i=s(86729),c=s(97037),o=s(95264),m=s(27901),d=s(72733);function u(e){var a=e.targetDb,s=(e.database,e.user,e.userImage),u=e.setUserImage,p=(0,l.Z)(r.useState(null),2),h=p[0],x=p[1],v=(0,l.Z)(r.useState(!1),2),f=v[0];v[1];return(0,n.jsxs)(r.Fragment,{children:[f&&(0,n.jsx)(o.Z,{}),h&&(0,n.jsx)(c.Z,{message:h}),(0,n.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,n.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,n.jsx)(m.Z,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:function(e){var a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,n.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,n.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:function(e){var a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})]}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,n.jsx)("label",{htmlFor:"username",children:"Username"}),(0,n.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:function(e){var s=e.target;s.value.match(/./)?(s.classList.remove("warning"),x(null)):s.classList.add("warning"),window.clearTimeout(t),t=setTimeout((function(){(0,i.Z)("/api/checkDuplicateData?type=username&value=".concat(s.value,"&tableName=users&dbFullName=").concat(a)).then((function(e){(null===e||void 0===e?void 0:e.result)?(x("Username Already Exists")