dsql-admin/dsql-app/.local_dist/static/chunks/8319-0fac4a0bd5bb0c06.js

1 line
6.3 KiB
JavaScript
Raw Normal View History

2025-01-14 15:27:08 +00:00
"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(573