1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
|
"use strict";exports.id=1579,exports.ids=[1579],exports.modules={30671:(e,a)=>{Object.defineProperty(a,"M",{enumerable:!0,get:function(){return function e(a,t){return t in a?a[t]:"then"in a&&"function"==typeof a.then?a.then(a=>e(a,t)):"function"==typeof a&&"default"===t?a:void 0}}})},37195:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732),n=t(82015),r=t.n(n);t(46169);var d=t(91140),i=t(16757);function s({setDbImage:e}){let[a,t]=r().useState(!0);r().useState(null);let[n,s]=r().useState(null);return(0,l.jsxs)(d.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:n?.[0]&&n.filter(e=>"image"==e.media_type).map((a,t)=>(0,l.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:t=>{e(a.media_thumbnail_url||null),(0,d.fs)()},children:(0,l.jsx)("img",{src:a.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},t+1))})]})}},10621:(e,a,t)=>{t.d(a,{A:()=>n});var l=t(8732);function n({message: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:e})]})}t(82015)},91140:(e,a,t)=>{t.d(a,{Ay:()=>i,PB:()=>s,fs:()=>c});var l=t(8732),n=t(58150),r=t(82015),d=t.n(r);function i({children:e,title:a,data:t,fullPage:r,wrapperClasses:i,closePopupDispatch:s,wrapperStyle:p,noContainer:o}){return r?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(i||""),"data-popupid":a||null,style:p,children:[o?(0,l.jsx)(d().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),s&&s()},children:(0,l.jsx)(n.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),s&&s()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[o?(0,l.jsx)(d().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),s&&s()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),o&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),s&&s()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),s&&s()}})]})}function s(e,a){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",a?.(t))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},55904:(e,a,t)=>{t.d(a,{A:()=>d});var l=t(8732),n=t(82015),r=t.n(n);function d({children:e,column:a,className:t}){let n=r().useRef();return(0,l.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(t?" "+t:""),ref:n,children:e})}},65842:(e,a,t)=>{t.d(a,{A:()=>n});var l=t(76102);let n=t.n(l)().media.imageInputFileToBase64},23293:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).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"}]])},34637:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).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"}]])},29743:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).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:
|