dsql-admin/dsql-app/.local_dist/static/chunks/8319-0fac4a0bd5bb0c06.js
Benjamin Toby 81cf010cb5 Updates
2025-01-14 16:27:08 +01:00

1 line
6.3 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8319],{2592:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(4848),r=a(6540),d=a(9020),s=a(5655),i=a(1710);function n(e){let{setDbImage:t}=e,[a,n]=r.useState(!0);r.useState(null);let[o,c]=r.useState(null);return r.useEffect(()=>{(0,d.A)("/api/getUserMedia").then(e=>{n(!1),c(e.media)})},[]),(0,l.jsxs)(s.Ay,{title:"user-media-popup",children:[a&&(0,l.jsx)(i.A,{width:"20px"}),(0,l.jsx)("h4",{className:"m-0 text-lg",children:"Your Uploaded Images"}),(0,l.jsx)("div",{className:"grid grid-cols-2",children:(null==o?void 0:o[0])&&o.filter(e=>"image"==e.media_type).map((e,a)=>(0,l.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:a=>{t(e.media_thumbnail_url||null),(0,s.fs)()},children:(0,l.jsx)("img",{src:e.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},a+1))})]})}},6234:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(4848);function r(e){let{message:t}=e;return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:t})]})}a(6540)},5655:(e,t,a)=>{a.d(t,{Ay:()=>s,PB:()=>i,fs:()=>n});var l=a(4848),r=a(6897),d=a(6540);function s(e){let{children:t,title:a,data:s,fullPage:i,wrapperClasses:o,closePopupDispatch:c,wrapperStyle:p,noContainer:u}=e;return i?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(o||""),"data-popupid":a||null,style:p,children:[u?(0,l.jsx)(d.Fragment,{children:t}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":s?JSON.stringify(s):"",children:t}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{n(),c&&c()},children:(0,l.jsx)(r.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{n(),c&&c()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[u?(0,l.jsx)(d.Fragment,{children:t}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":s?JSON.stringify(s):"",children:[t,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{n(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{n(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{n(),c&&c()}})]})}function i(e,t){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",null==t||t(a))}function n(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},900:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(4848),r=a(6540);function d(e){let{children:t,column:a,className:d}=e,s=r.useRef();return r.useEffect(()=>{try{let e=s.current;if(!e)throw Error("No Button Group Wrapper!");let t=e.childNodes,l=Array.from(t);if((null==l?void 0:l.length)===1)return;l.forEach((e,t)=>{let r=e;if(r.classList.contains("dropdown-wrapper")){let t=Array.from(e.childNodes).filter(e=>{var t;return(null==e?void 0:null===(t=e.nodeName)||void 0===t?void 0:t.match(/button/i))||e.classList.contains("button")});t&&t[0]&&(r=t[0])}t<l.length-1&&(r.style[a?"borderBottomRightRadius":"borderTopRightRadius"]=0,r.style[a?"borderBottomLeftRadius":"borderBottomRightRadius"]=0),t>0&&(r.style[a?"borderTop":"borderLeft"]="none",r.style[a?"borderTopRightRadius":"borderTopLeftRadius"]=0,r.style[a?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,l.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(d?" "+d:""),ref:s,children:t})}},2659:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(1335);let r=a.n(l)().media.imageInputFileToBase64},7216:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},9140:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6897:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]);