1import{r,b as O,u as ia,j as e,H as sa}from"./app-DP13319Q.js";import"./model-viewer-BNdxy5m2.js";import{E as na,F as da,R as ca}from"./index-AJEeJH9Y.js";import{C as ua,E as pa}from"./EmailVerification-Dsxupsxq.js";import{c as Yt}from"./cjs-G0qneMx2.js";import{F as D,_ as ma,$ as ha,a as Ot,f as to,h as xa,az as ba,ah as fa,x as ga,b8 as wa,Y as Gt,bd as ya,Q as va,R as ka,T as ja,U as Ca}from"./index-CtyZ6W6U.js";import{j as Qt,f as Zt,d as Xt,h as Kt}from"./index-DQkUn08L.js";import{f as Na}from"./index-Bhyg_rmE.js";import{S as Ea,E as Sa,N as Ma,d as za}from"./effect-fade-CFAMJYaO.js";import{M as La}from"./MarketplaceListings-eTRB6eNh.js";import{M as U}from"./react-tooltip.min-DW3XhwOj.js";import{T as Fa}from"./TermsAndConditionsContent-kgFjQnlB.js";import{P as Ra}from"./PrivacyPolicyContent-CkZQpeat.js";import{C as $a}from"./checkbox-C4JdPzUx.js";import{L as Jt}from"./label-CjdjKtaD.js";import{b as Ta,i as _a,s as Ia,h as Pa,d as it,l as Da,q as Ba,c as Ha,a as Ua,e as Aa,f as Wa,u as Va,o as qa,g as Ya,j as Oa,M as Ga,t as Qa,k as Za,m as Xa,n as Ka,p as Ja,r as er}from"./markdown-editor-DgLOEOaX.js";import{M as pe}from"./index-WruS1vxz.js";/* empty css */import"./index-ZXty2wc9.js";import"./createLucideIcon-BZKkeQZf.js";import"./x-CeCFLUNE.js";import"./send-qufRTMrc.js";import"./clsx-B-dksMZM.js";import"./app-logo-icon-B_rIw4ab.js";import"./index-DGVtPzwd.js";import"./index-cNDDvm9q.js";import"./utils-SWYxlXfx.js";import"./check-BA5_s5ky.js";const tr=({email:l})=>{const[o,i]=r.useState("0.00"),[b,x]=r.useState(!0);return r.useEffect(()=>{l&&(async()=>{try{const n=await O.get(`/user-balance?email=${encodeURIComponent(l)}`);i(parseFloat(n.data.balance||"0").toFixed(2))}catch(n){console.error("Error fetching balance:",n),i("0.00")}finally{x(!1)}})()},[l]),b?"...":o},eo=(l=!1)=>{let o=null;return{name:l?"backgroundColor":"color",keyCommand:l?"backgroundColor":"color",buttonProps:{"aria-label":l?"Add background color":"Add text color","data-tooltip-id":"mdeditor-tooltip","data-tooltip-content":l?"Background Color":"Text Color"},icon:e.jsx("div",{className:"flex items-center justify-center w-5 h-5",children:e.jsx(D,{icon:l?ja:Ca,className:"text-current text-sm"})}),execute:(i,b)=>{const x=document.getElementById("color-picker-modal");x&&document.body.removeChild(x),o=document.createElement("div"),o.id="color-picker-modal",o.style.position="fixed",o.style.top="0",o.style.left="0",o.style.width="100%",o.style.height="100%",o.style.backgroundColor="rgba(0, 0, 0, 0.8)",o.style.display="flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.zIndex="10000",o.style.backdropFilter="blur(8px)";const g=document.createElement("div");g.style.backgroundColor="#2d3748",g.style.padding="24px",g.style.borderRadius="16px",g.style.boxShadow="0 25px 50px -12px rgba(0, 0, 0, 0.5)",g.style.width="90%",g.style.maxWidth="420px",g.style.border="1px solid #4a5568";const n=document.createElement("div");n.style.display="flex",n.style.justifyContent="space-between",n.style.alignItems="center",n.style.marginBottom="20px";const $=document.createElement("h3");$.textContent=l?"Choose Background Color":"Choose Text Color",$.style.color="white",$.style.fontSize="18px",$.style.fontWeight="bold",$.style.margin="0";const k=document.createElement("button");k.innerHTML="Ã",k.style.background="none",k.style.border="none",k.style.color="white",k.style.fontSize="24px",k.style.cursor="pointer",k.style.width="32px",k.style.height="32px",k.style.borderRadius="50%",k.style.display="flex",k.style.alignItems="center",k.style.justifyContent="center",k.style.transition="background-color 0.2s",k.onmouseenter=()=>k.style.backgroundColor="#4a5568",k.onmouseleave=()=>k.style.backgroundColor="transparent",k.onclick=()=>{o&&o.parentNode&&document.body.removeChild(o)},n.appendChild($),n.appendChild(k);const E=document.createElement("div");E.style.display="grid",E.style.gridTemplateColumns="repeat(6, 1fr)",E.style.gap="8px",E.style.marginBottom="20px",["#FF0000","#FF6B6B","#FFA500","#FFD93D","#6BCF7F","#4ECDC4","#45B7D1","#4D96FF","#5D6DFF","#9B59B6","#FF9FF3","#F368E0","#FFFFFF","#F1F2F6","#DFE4EA","#CED6E0","#A4B0BE","#747D8C","#57606F","#2F3542","#000000","#2D3436","#636E72","#B2BEC3"].forEach(z=>{const p=document.createElement("button");p.style.width="40px",p.style.height="40px",p.style.borderRadius="8px",p.style.border="2px s
1olid #4a5568",p.style.cursor="pointer",p.style.transition="all 0.2s",p.style.backgroundColor=z,p.onmouseenter=()=>{p.style.transform="scale(1.1)",p.style.borderColor="#fff"},p.onmouseleave=()=>{p.style.transform="scale(1)",p.style.borderColor="#4a5568"},p.onclick=()=>{const G=z,q=l?`<span style="background-color: ${G}">${i.selectedText}</span>`:`<span style="color: ${G}">${i.selectedText}</span>`;b.replaceSelection(q),o&&o.parentNode&&document.body.removeChild(o)},E.appendChild(p)});const N=document.createElement("div");N.style.marginBottom="20px";const m=document.createElement("label");m.textContent="Custom Color:",m.style.color="white",m.style.display="block",m.style.marginBottom="8px",m.style.fontSize="14px";const w=document.createElement("input");w.type="color",w.value="#FF0000",w.style.width="60px",w.style.height="60px",w.style.borderRadius="12px",w.style.border="2px solid #4a5568",w.style.cursor="pointer";const d=document.createElement("button");d.textContent="Apply Custom Color",d.style.marginLeft="12px",d.style.padding="12px 16px",d.style.backgroundColor="#4299e1",d.style.color="white",d.style.border="none",d.style.borderRadius="8px",d.style.cursor="pointer",d.style.fontWeight="bold",d.style.transition="background-color 0.2s",d.onmouseenter=()=>d.style.backgroundColor="#3182ce",d.onmouseleave=()=>d.style.backgroundColor="#4299e1",d.onclick=()=>{const z=w.value,p=l?`<span style="background-color: ${z}">${i.selectedText}</span>`:`<span style="color: ${z}">${i.selectedText}</span>`;b.replaceSelection(p),o&&o.parentNode&&document.body.removeChild(o)};const F=document.createElement("div");F.style.display="flex",F.style.alignItems="center",F.appendChild(w),F.appendChild(d),N.appendChild(m),N.appendChild(F),g.appendChild(n),g.appendChild(E),g.appendChild(N),o.appendChild(g),o.onclick=z=>{z.target===o&&o.parentNode&&document.body.removeChild(o)},document.body.appendChild(o)}}},or={name:"advancedTable",keyCommand:"advancedTable",buttonProps:{"aria-label":"Insert advanced table","data-tooltip-id":"mdeditor-tooltip","data-tooltip-content":"Advanced Table"},icon:e.jsx("div",{className:"flex items-center justify-center w-5 h-5",children:e.jsx(D,{icon:va,className:"text-current text-sm"})}),execute:(l,o)=>{const i=document.createElement("div");i.id="table-modal",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%",i.style.backgroundColor="rgba(0, 0, 0, 0.8)",i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.zIndex="10000",i.style.backdropFilter="blur(8px)";const b=document.createElement("div");b.style.backgroundColor="#2d3748",b.style.padding="24px",b.style.borderRadius="16px",b.style.boxShadow="0 25px 50px -12px rgba(0, 0, 0, 0.5)",b.style.width="90%",b.style.maxWidth="500px",b.style.border="1px solid #4a5568";const x=document.createElement("div");x.style.display="flex",x.style.justifyContent="space-between",x.style.alignItems="center",x.style.marginBottom="20px";const g=document.createElement("h3");g.textContent="Create Table",g.style.color="white",g.style.fontSize="18px",g.style.fontWeight="bold",g.style.margin="0";const n=document.createElement("button");n.innerHTML="Ã",n.style.background="none",n.style.border="none",n.style.color="white",n.style.fontSize="24px",n.style.cursor="pointer",n.style.width="32px",n.style.height="32px",n.style.borderRadius="50%",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.transition="background-color 0.2s",n.onmouseenter=()=>n.style.backgroundColor="#4a5568",n.onmouseleave=()=>n.style.backgroundColor="transparent",n.onclick=()=>{i.parentNode&&document.body.removeChild(i)},x.appendChild(g),x.appendChild(n);const $=document.createElement("div");$.style.marginBottom="20px";const k=document.createElement("div");k.style.marginBottom="12px";const E=document.createElement("label");E.textContent="Number of Rows:",E.style.color="white",E.style.display="block",E.style.marginBottom="4px";const M=document.createElement("input");M.type="number",M.min="1",M.max="20",M.value="3",M.style.width="100%",M.style.padding="8px",M.style.backgroundColor="#4a5568",M.style.border="1px solid #718096",M.style.borderRadius="4px",M.style.color="white",k.appendChild(E),k.appendChild(M);const N=document.createElement("div");N.style.marginBottom="12px";
1const m=document.createElement("label");m.textContent="Number of Columns:",m.style.color="white",m.style.display="block",m.style.marginBottom="4px";const w=document.createElement("input");w.type="number",w.min="1",w.max="10",w.value="3",w.style.width="100%",w.style.padding="8px",w.style.backgroundColor="#4a5568",w.style.border="1px solid #718096",w.style.borderRadius="4px",w.style.color="white",N.appendChild(m),N.appendChild(w);const d=document.createElement("div");d.style.marginBottom="12px";const F=document.createElement("input");F.type="checkbox",F.id="includeHeader",F.checked=!0,F.style.marginRight="8px";const z=document.createElement("label");z.htmlFor="includeHeader",z.textContent="Include header row",z.style.color="white",d.appendChild(F),d.appendChild(z),$.appendChild(k),$.appendChild(N),$.appendChild(d);const p=document.createElement("button");p.textContent="Generate Table",p.style.width="100%",p.style.padding="12px",p.style.backgroundColor="#4299e1",p.style.color="white",p.style.border="none",p.style.borderRadius="8px",p.style.cursor="pointer",p.style.fontWeight="bold",p.style.transition="background-color 0.2s",p.onmouseenter=()=>p.style.backgroundColor="#3182ce",p.onmouseleave=()=>p.style.backgroundColor="#4299e1",p.onclick=()=>{const G=parseInt(M.value),q=parseInt(w.value),_=F.checked;let B="";if(_){B+="|";for(let A=0;A<q;A++)B+=` Header ${A+1} |`;B+=` 2|`;for(let A=0;A<q;A++)B+="----------|";B+=` 3`}const Z=_?0:1,ae=_?G:G+1;for(let A=Z;A<ae;A++){B+="|";for(let H=0;H<q;H++)B+=` Cell ${A+1}-${H+1} |`;A<ae-1&&(B+=` 4`)}o.replaceSelection(B),i.parentNode&&document.body.removeChild(i)},b.appendChild(x),b.appendChild($),b.appendChild(p),i.appendChild(b),i.onclick=G=>{G.target===i&&i.parentNode&&document.body.removeChild(i)},document.body.appendChild(i)}},ar={name:"macros",keyCommand:"macros",buttonProps:{"aria-label":"Insert macros","data-tooltip-id":"mdeditor-tooltip","data-tooltip-content":"Insert Macros"},icon:e.jsx("div",{className:"flex items-center justify-center w-5 h-5",children:e.jsx(D,{icon:ka,className:"text-current text-sm"})}),execute:(l,o)=>{const i=document.createElement("div");i.id="macros-modal",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%",i.style.backgroundColor="rgba(0, 0, 0, 0.8)",i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.zIndex="10000",i.style.backdropFilter="blur(8px)";const b=document.createElement("div");b.style.backgroundColor="#2d3748",b.style.padding="24px",b.style.borderRadius="16px",b.style.boxShadow="0 25px 50px -12px rgba(0, 0, 0, 0.5)",b.style.width="90%",b.style.maxWidth="500px",b.style.border="1px solid #4a5568";const x=document.createElement("div");x.style.display="flex",x.style.justifyContent="space-between",x.style.alignItems="center",x.style.marginBottom="20px";const g=document.createElement("h3");g.textContent="Insert Macros",g.style.color="white",g.style.fontSize="18px",g.style.fontWeight="bold",g.style.margin="0";const n=document.createElement("button");n.innerHTML="Ã",n.style.background="none",n.style.border="none",n.style.color="white",n.style.fontSize="24px",n.style.cursor="pointer",n.style.width="32px",n.style.height="32px",n.style.borderRadius="50%",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.transition="background-color 0.2s",n.onmouseenter=()=>n.style.backgroundColor="#4a5568",n.onmouseleave=()=>n.style.backgroundColor="transparent",n.onclick=()=>{i.parentNode&&document.body.removeChild(i)},x.appendChild(g),x.appendChild(n);const $=document.createElement("div");$.style.display="grid",$.style.gridTemplateColumns="1fr",$.style.gap="12px",[{name:"Current Date",description:"Insert current date",code:"{{date:YYYY-MM-DD}}"},{name:"Current Time",description:"Insert current time",code:"{{time:HH:mm}}"},{name:"User Name",description:"Insert current user name",code:"{{user:name}}"},{name:"Random Number",description:"Generate random number",code:"{{random:1-100}}"},{name:"Page Title",description:"Insert page title",code:"{{page:title}}"},{name:"Custom Variable",description:"Insert custom variable",code:"{{var:variable_name}}"}
4].forEach(w=>{const d=document.createElement("button");d.style.padding="16px",d.style.backgroundColor="#4a5568",d.style.border="1px solid #718096",d.style.borderRadius="8px",d.style.cursor="pointer",d.style.transition="all 0.2s",d.style.textAlign="left",d.style.color="white",d.onmouseenter=()=>{d.style.backgroundColor="#5a67d8",d.style.borderColor="#5a67d8",d.style.transform="translateY(-2px)"},d.onmouseleave=()=>{d.style.backgroundColor="#4a5568",d.style.borderColor="#718096",d.style.transform="translateY(0)"},d.onclick=()=>{o.replaceSelection(w.code),i.parentNode&&document.body.removeChild(i)};const F=document.createElement("div");F.textContent=w.name,F.style.fontWeight="bold",F.style.marginBottom="4px";const z=document.createElement("div");z.textContent=w.description,z.style.fontSize="12px",z.style.color="#cbd5e0";const p=document.createElement("div");p.textContent=w.code,p.style.fontFamily="monospace",p.style.fontSize="11px",p.style.color="#90cdf4",p.style.marginTop="8px",p.style.padding="4px 8px",p.style.backgroundColor="#2d3748",p.style.borderRadius="4px",d.appendChild(F),d.appendChild(z),d.appendChild(p),$.appendChild(d)});const E=document.createElement("div");E.style.marginTop="20px",E.style.paddingTop="20px",E.style.borderTop="1px solid #4a5568";const M=document.createElement("label");M.textContent="Custom Macro:",M.style.color="white",M.style.display="block",M.style.marginBottom="8px",M.style.fontSize="14px";const N=document.createElement("input");N.type="text",N.placeholder="Enter custom macro code...",N.style.width="100%",N.style.padding="12px",N.style.backgroundColor="#4a5568",N.style.border="1px solid #718096",N.style.borderRadius="8px",N.style.color="white",N.style.marginBottom="12px";const m=document.createElement("button");m.textContent="Insert Custom Macro",m.style.width="100%",m.style.padding="12px",m.style.backgroundColor="#4299e1",m.style.color="white",m.style.border="none",m.style.borderRadius="8px",m.style.cursor="pointer",m.style.fontWeight="bold",m.style.transition="background-color 0.2s",m.onmouseenter=()=>m.style.backgroundColor="#3182ce",m.onmouseleave=()=>m.style.backgroundColor="#4299e1",m.onclick=()=>{N.value.trim()&&(o.replaceSelection(N.value.trim()),i.parentNode&&document.body.removeChild(i))},E.appendChild(M),E.appendChild(N),E.appendChild(m),b.appendChild(x),b.appendChild($),b.appendChild(E),i.appendChild(b),i.onclick=w=>{w.target===i&&i.parentNode&&document.body.removeChild(i)},document.body.appendChild(i)}},rr=({value:l,onChange:o})=>{const i=[Ta,_a,Ia,Pa,Oa([Qa,Za,Xa,Ka,Ja,er],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title","data-tooltip-id":"mdeditor-tooltip","data-tooltip-content":"Headings"}}),it,Da,Ba,Ha,Ua,Aa,Wa,it,Va,qa,Ya,or,ar,it,eo(!1),eo(!0)];return e.jsxs("div",{className:"enhanced-md-editor",children:[e.jsx(Ga,{value:l,onChange:o,commands:i}),e.jsx(U,{id:"mdeditor-tooltip"})]})},Me=({show:l,onClose:o,children:i,ariaLabelledby:b,ariaDescribedby:x})=>{if(!l)return null;const g=n=>{"target"in n&&n.target===n.currentTarget&&o()};return e.jsx("div",{className:"fixed inset-0 bg-opacity-60 z-50 flex justify-center items-center overflow-y-auto",onClick:g,onTouchEnd:g,"data-tooltip-id":"main-tooltip","data-tooltip-content":"Click outside the modal to close",children:i})},lr=({onVerificationComplete:l,onOpenBox:o,funnel:i})=>e.jsx("div",{className:"w-full h-full flex items-center justify-center touch-manipulation",children:e.jsx(pa,{onVerificationComplete:l,onOpenBox:o,funnel:i})}),oo=r.memo(({content:l,onEyeClick:o,index:i,mode:b,color:x="#ffffff",transparency:g="80",funnel:n,onResizeStart:$,onResize:k,onResizeStop:E})=>{var we;const[M,N]=r.useState(!1),[m,w]=r.useState(!1),[d,F]=r.useState(!1);if(r.useEffect(()=>{l.emoji_marker==="ð"&&w(!0)},[l.emoji_marker]),l.emoji_marker==="0ï¸â£")return null;const z=()=>{if(!b)return"";const v=b.split(","),X=i%v.length;switch(v[X]){case"L":return"self-start ml-5 mr-auto";case"C":return"self-center mx-auto";case"R":return"self-end ml-auto mr-5";default:return""}},G=((v,X)=>{const K=v.length===4?`#${v[1]}${v[1]}${v[2]}${v[2]}${v[3]}${v[3]}`:v,R=parseInt(K.slice(1,3),16),L=parseInt(K.slice(3,5),16),le=parseInt(K.slice(5,7),16);return`rgba(${R}, ${L}, ${le}, ${parseInt(X)/100})`})(x,g),q=()=>{N(!0),w(!1)},_=()=>{F(!0)},B=v=>{if(!v)return"";const X=new Date,K=new Date(v),R=Math.floor((X.getTime()-K.getTime())/1e3);let L=R/31536e3;return L>1?`${Math.floor(L)}y`:(L=R/2592e3,L>1?`${Math.floor(L)}mo`:(L=R/86400,L>1?`${Math.floor(L)}d`:(L=R/3600,L>1?`${Math.floor(L)}h`:(L=R/60,L>1?`${Math.floor(L)}m`:`${Math.floor(R)}s`))))},Z=l.image_url&&l.image_url.toLowerCase().endsWith(".pdf"),ae=l.image_url&&!Z,A=l.image_url&&/\.(mp3|wav|ogg|m4a|aac|flac)$/i.test(l.image_url),H=l.image_url&&/\.(mp4|webm|mov|avi|mkv|flv|wmv)$/i.test(l.image_url),re=l.image_url&&/\.(html|htm)$/i.test(l.image_url);return e.jsx(ca,{defaultSize:{width:l.width,height:"auto"}
4,minWidth:100,minHeight:50,maxHeight:888,bounds:"parent",enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},handleComponent:{bottomRight:e.jsx("div",{className:"w-full h-full flex items-end justify-end pr-3.5 pb-3.5 touch-manipulation","data-tooltip-id":"content-tooltip","data-tooltip-content":"Drag to resize",children:e.jsx("span",{className:"text-4xl font-bold text-white z-10 cursor-se-resize touch-manipulation",children:e.jsx("img",{src:"resize.png",alt:"resize icon"})})})},handleStyles:{bottomRight:{width:"48px",height:"48px"}},onResizeStart:$,onResize:k,onResizeStop:E,className:`relative m-5 overflow-hidden touch-manipulation resizable-content ${z()}`,children:e.jsx("div",{className:"p-4 justify-center rounded-lg shadow relative w-full h-full flex flex-col items-center justify-center overflow-hidden touch-manipulation",style:{backgroundColor:G,maxHeight:"888px"},children:e.jsxs("div",{className:"w-full h-full overflow-y-auto",style:{maxHeight:"888px"},children:[l.pinned===1&&e.jsx("div",{className:"absolute top-2 left-2 z-50","data-tooltip-id":"content-tooltip","data-tooltip-content":"Pinned Content",children:"ð"}),e.jsx("div",{className:"absolute top-2 right-2 z-50 cursor-pointer hidden touch-manipulation",onClick:()=>o(l.url||null),onTouchEnd:v=>{v.preventDefault(),o(l.url||null)},"data-tooltip-id":"content-tooltip","data-tooltip-content":"View content details",children:"ðï¸"}),m&&!M?e.jsx(lr,{onVerificationComplete:q,onOpenBox:_,funnel:n}):e.jsxs(e.Fragment,{children:[(d||!m)&&l.user&&l.created_at&&l.post_type==="visitor"&&e.jsxs("div",{className:"flex items-start space-x-3 mb-4 w-full max-w-full touch-manipulation",children:[e.jsxs("div",{className:"relative flex-shrink-0",children:[e.jsx("div",{className:"absolute -inset-0.5 bg-gradient-to-r from-teal-400 to-blue-500 rounded-full blur-sm opacity-60"}),e.jsx("img",{className:"relative w-8 h-8 rounded-full object-cover border border-gray-600 shadow-sm",src:l.user.profile_photo_url||`https://ui-avatars.com/api/?name=${encodeURIComponent(l.user.name||l.user.email)}&color=FFFFFF&background=0D9488&bold=true`,alt:l.user.email||"User Avatar"})]}),e.jsxs("div",{className:"flex flex-col flex-1 min-w-0 space-y-1",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("span",{className:"font-medium text-white text-sm truncate",children:l.user.email?e.jsxs(e.Fragment,{children:[l.user.email.substring(0,2),"*".repeat(3),"@","*".repeat(3),(we=l.user.email.split("@")[1])==null?void 0:we.substring(l.user.email.split("@")[1].length-3)]}):"Anonymous User"}),l.user.is_verified&&e.jsxs("div",{className:"flex items-center space-x-1 px-1.5 py-0.5 bg-blue-500/20 rounded-full border border-blue-500/30",children:[e.jsx(D,{icon:to,className:"w-2.5 h-2.5 text-blue-400","aria-label":"Verified account"}),e.jsx("span",{className:"text-xs text-blue-300 font-medium",children:"Verified"})]})]}),e.jsx("div",{className:"flex items-center space-x-1 text-xs",children:e.jsxs("div",{className:"flex items-center space-x-1 text-gray-400 bg-gray-800/30 px-2 py-1 rounded-full",children:[e.jsx(D,{icon:Na,className:"w-2.5 h-2.5 text-teal-400"}),e.jsx("span",{className:"text-gray-300 font-medium",children:B(l.created_at)})]})})]})]}),(d||!m)&&l.title&&e.jsx(pe,{source:l.title,"data-color-mode":"dark",className:"w-full touch-manipulation overflow-hidden text-white"}),(d||!m)&&l.reference&&e.jsx(pe,{source:l.reference,"data-color-mode":"dark",className:"w-full touch-manipulation overflow-hidden text-white"}),(d||!m)&&l.url&&e.jsx("div",{className:"w-full touch-manipulation overflow-hidden dark-markdown-container",children:(()=>{const v=l.url.trim(),X=/<[^>]+>.*<\/[^>]+>/.test(v),K=/<[^>/]+\/>/.test(v),R=X||K,L=/^#+\s/.test(v),le=/\*\*.+\*\*/.test(v),me=/\[.+\]\(.+\)/.test(v),ze=/^[-*]\s/.test(v)||/^\d+\.\s/.test(v),Ye=L||le||me||ze,Le=/^https?:\/\/[^\s]+$/.test(v);return R?e.jsx("div",{className:"w-full",dangerouslySetInnerHTML:{__html:v}}):Ye?e.jsxs("div",{className:"w-full dark-markdown-preview-wrapper",children:[e.jsx(pe,{source:v,"data-color-mode":"dark",className:"w-full dark-markdown-preview",style:{background:"transparent",color:"white",fontFamily:"inherit"}}),e.jsx("style",{children:` 5 .dark-markdown-preview-wrapper .wmde-markdown { 6 background-color: transparent !important; 7 color: white !important; 8 } 9 .dark-markdown-preview-wrapper .wmde-markdown table { 10 border: 1px solid #4a5568 !important; 11 background-color: #2d3748 !important; 12 color: white !important; 13 border-collapse: collapse !important; 14 width: 100% !important; 15 margin: 1rem 0 !important; 16 } 17 .dark-markdown-preview-wrapper .wmde-markdown th { 18 background-color: #4a5568 !important; 19 color: white !important; 20 border: 1px solid #718096 !important; 21 padding: 8px 12px !important; 22 font-weight: bold !important; 23 text-align: left !important; 24 } 25 .dark-markdown-preview-wrapper .wmde-markdown td { 26 background-color: #2d3748 !important; 27 color: white !important; 28 border: 1px solid #4a5568 !important; 29 padding: 8px 12px !important; 30 } 31 .dark-markdown-preview-wrapper .wmde-markdown tr:nth-child(even) { 32 background-color: #374151 !important; 33 } 34 .dark-markdown-preview-wrapper .wmde-markdown tr:hover { 35 background-color: #4b5563 !important; 36 } 37 .dark-markdown-preview-wrapper .wmde-markdown code { 38 background-color: #1f2937 !important; 39 color: #e5e7eb !important; 40 border: 1px solid #4b5563 !important; 41 border-radius: 4px !important; 42 padding: 2px 6px !important; 43 } 44 .dark-markdown-preview-wrapper .wmde-markdown pre { 45 background-color: #1f2937 !important; 46 color: #e5e7eb !important; 47 border: 1px solid #4b5563 !important; 48 border-radius: 6px !important; 49 padding: 1rem !important; 50 overflow: auto !important; 51 } 52 .dark-markdown-preview-wrapper .wmde-markdown pre code { 53 background-color: transparent !important; 54 border: none !important; 55 padding: 0 !important; 56 } 57 .dark-markdown-preview-wrapper .wmde-markdown blockquote { 58 border-left: 4px solid #4a5568 !important; 59 background-color: #2d3748 !important; 60 color: #cbd5e0 !important; 61 padding: 0.5rem 1rem !important; 62 margin: 1rem 0 !important; 63 } 64 .dark-markdown-preview-wrapper .wmde-markdown h1, 65 .dark-markdown-preview-wrapper .wmde-markdown h2, 66 .dark-markdown-preview-wrapper .wmde-markdown h3, 67 .dark-markdown-preview-wrapper .wmde-markdown h4, 68 .dark-markdown-preview-wrapper .wmde-markdown h5, 69 .dark-markdown-preview-wrapper .wmde-markdown h6 { 70 color: white !important; 71 border-bottom: 1px solid #4a5568 !important; 72 padding-bottom: 0.3rem !important; 73 } 74 .dark-markdown-preview-wrapper .wmde-markdown a { 75 color: #60a5fa !important; 76 text-decoration: none !important; 77 } 78 .dark-markdown-preview-wrapper .wmde-markdown a:hover { 79 text-decoration: underline !important; 80 color: #93c5fd !important; 81 } 82 .dark-markdown-preview-wrapper .wmde-markdown ul, 83 .dark-markdown-preview-wrapper .wmde-markdown ol { 84 color: white !important; 85 } 86 .dark-markdown-preview-wrapper .wmde-markdown li { 87 color: #e5e7eb !important; 88 } 89 .dark-markdown-preview-wrapper .wmde-markdown hr { 90 border-color: #4a5568 !important; 91 margin: 1.5rem 0 !important; 92 } 93 `})]}):Le?e.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"text-blue-400 hover:text-blue-300 underline break-all",children:v}):e.jsxs("div",{className:"w-full dark-markdown-preview-wrapper",children:[e.jsx(pe,{source:v,"data-color-mode":"dark",className:"w-full dark-markdown-preview",style:{background:"transparent",color:"white",fontFamily:"inherit"}}),e.jsx("style",{children:` 94 .dark-markdown-preview-wrapper .wmde-markdown { 95 background-color: transparent !important; 96 color: white !important; 97 } 98 .dark-markdown-preview-wrapper .wmde-markdown table { 99 border: 1px solid #4a5568 !important; 100 background-color: #2d3748 !important; 101 color: white !important; 102 border-collapse: collapse !important; 103 width: 100% !important; 104 margin: 1rem 0 !important; 105 } 106 .dark-markdown-preview-wrapper .wmde-markdown th { 107 background-color: #4a5568 !important; 108 color: white !important; 109 border: 1px solid #718096 !important; 110 padding: 8px 12px !important; 111 font-weight: bold !important; 112 } 113 .dark-markdown-preview-wrapper .wmde-markdown td { 114 background-color: #2d3748 !important; 115 color: white !important; 116 border: 1px solid #4a5568 !important; 117 padding: 8px 12px !important; 118 } 119 `})]})})()}),(d||!m)&&H&&e.jsx("div",{className:"w-full h-full min-h-[400px] rounded-lg overflow-hidden mb-4",children:e.jsx("video",{src:l.image_url,className:"w-full h-full object-contain",controls:!0,autoPlay:!1,loop:!1,muted:!1,playsInl
119ine:!0,children:e.jsxs("p",{children:["Your browser does not support the video tag.",e.jsx("a",{href:l.image_url,target:"_blank",rel:"noopener noreferrer",children:"Download the video"}),"."]})})}),(d||!m)&&A&&e.jsx("div",{className:"w-full p-4 bg-gray-800/50 rounded-lg mb-4",children:e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("div",{className:"w-12 h-12 flex items-center justify-center bg-purple-600 rounded-lg",children:e.jsx(D,{icon:ya,className:"text-white text-xl"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-white font-medium",children:"Audio Player"}),e.jsxs("audio",{src:l.image_url,className:"w-full mt-2",controls:!0,preload:"metadata",children:[e.jsx("source",{src:l.image_url,type:`audio/${l.image_url.split(".").pop()}`}),"Your browser does not support the audio element."]})]})]})}),(d||!m)&&Z&&e.jsx("div",{className:"w-full h-full min-h-[400px]",children:e.jsx("iframe",{src:`https://docs.google.com/viewer?url=https://ez.wiki/${encodeURIComponent(l.image_url)}&embedded=true`,className:"w-full h-full rounded-lg",frameBorder:"0",title:"PDF Viewer",allow:"autoplay; fullscreen",allowFullScreen:!0,sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-modals allow-top-navigation",children:e.jsxs("p",{children:["Your browser does not support PDFs.",e.jsx("a",{href:l.image_url,target:"_blank",rel:"noopener noreferrer",children:"Download the PDF"}),"."]})})}),(d||!m)&&re&&e.jsx("div",{className:"w-full h-full min-h-[400px] rounded-lg overflow-hidden bg-white",children:e.jsx("iframe",{src:l.image_url,className:"w-full h-full",style:{minHeight:"400px"},frameBorder:"0",title:"HTML Content",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-modals allow-top-navigation",loading:"lazy",children:e.jsxs("p",{children:["Your browser does not support iframes.",e.jsx("a",{href:l.image_url,target:"_blank",rel:"noopener noreferrer",children:"Open HTML file directly"}),"."]})})}),(d||!m)&&ae&&e.jsx(pe,{source:`<img src="${l.image_url}" style="width: 100%; border-radius: 0.5rem;" alt="Content Image" />`,"data-color-mode":"dark",className:"w-full touch-manipulation overflow-hidden"}),(d||!m)&&l.link_url&&e.jsx(pe,{source:`[${l.link_url}](${l.link_url})`,"data-color-mode":"dark",className:"w-full touch-manipulation overflow-hidden text-lime-300"})]})]})})})});oo.displayName="ResizableContent";function Gr(){var Tt,_t,It,Pt,Dt,Bt,Ht,Ut,At;const{auth:l,template:o,allTemplates:i,contents:b,funnel:x,eye_tracking:g,fly_sign:n,count:$,sidebarwidth:k,effect:E,mode:M,color:N,transparency:m,qrcodelogo:w,hashtagseo:d,ziggy:F,tooltips:z,visibility:p,designview:G,displaymode:q}=ia().props,[_,B]=r.useState(G==="A"?"design":G==="B"?"tile":"theme"),[Z,ae]=r.useState(!0),[A,H]=r.useState(!1),[re,we]=r.useState(!1),[v,X]=r.useState(!1),[K,R]=r.useState(!1),[L,le]=r.useState(!1),[me,ze]=r.useState(!1),[Ye,Le]=r.useState(!1),[ao,st]=r.useState(!1),[nt,ir]=r.useState(d||""),[he,ro]=r.useState({tumblr:[],youtube:[],pinterest:[],reddit:[],success:!1,message:"",allPosts:[]}),[dt,sr]=r.useState(!1),[Fe,ct]=r.useState(!1),[nr,dr]=r.useState("all"),[cr,ur]=r.useState(!0),[pr,mr]=r.useState(!1),[I,Oe]=r.useState(g===1),[lo,Re]=r.useState({right:k}),[Ge,ye]=r.useState({show:!1,content:null}),[io,$e]=r.useState(!1),[so,ve]=r.useState(!1),[ut,no]=r.useState(""),[Y,co]=r.useState(0),[uo,xe]=r.useState(!1),[ke,pt]=r.useState(""),[P,Qe]=r.useState(""),[C,W]=r.useState(null),[Te,ie]=r.useState(""),[mt,je]=r.useState(""),[po,ht]=r.useState([...b].filter(t=>t.emoji_marker!=="0ï¸â£").sort((t,a)=>t.pinned===1&&a.pinned!==1?-1:t.pinned!==1&&a.pinned===1?1:0)),[Q,Ze]=r.useState(null),[_e,xt]=r.useState("text"),mo=t=>{t.target.files&&t.target.files.length>0&&Ze(t.target.files[0])},[bt,Xe]=r.useState([]),[Ie,ft]=r.useState({current_page:1,last_page:1,per_page:10,total:0}),[gt,ho]=r.useState({}),[wt,Pe]=r.useState(!1),[hr,yt]=r.useState(!1),[xo,Ce]=r.useState(!1),[xr,bo]=r.useState(0),[br,fo]=r.useState(0),[fr,go]=r.useState(0),[gr,wr]=r.useState(null),se=r.useRef(null),vt=r.useRef(null),J=r.useRef(null),[Ke,kt]=r.useState(null),[wo,jt]=r.useState(!1),[yo,Je]=r.useState(!1),[vo,et]=r.useState(!1),ne=r.useRef(null),De=r.useRef(!1),Ne=r.useRef(null),Ct=r.useRef(null),Nt=r.useRef(null),Et=r.useRef(null),Be=r.useRef(null),[ko,jo]=r.useState({width:typeof window<"u"?window.innerWidth:1200,height:typeof window<"u"?window.innerHeight:800});r.useEffect(()=>{const t=()=>{jo({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const tt=ko.width<=768,u=r.useCallback((t,a=0)=>
119{if(!z||!z[t]){const s={"content-tab-tooltip":["Paste Markdown, Embed Code, URL, or Simple Text","Upload PDF or Image files","Paste a website URL"]};return s[t]&&s[t][a]?s[t][a]:(console.warn(`Tooltip reference '${t}' not found`),"")}try{const s=z[t],f=Array.isArray(s)?s:JSON.parse(s);return(f[a]||f[0]||"").replace("{funnel_id}",x||"")}catch(s){return console.error("Error parsing tooltip:",s),""}},[z,x]),He=(t,a)=>{if(a.current)return;const s=document.createElement("script");s.src=t,s.async=!0,document.body.appendChild(s),a.current=s},Ue=t=>{t.current&&document.body.contains(t.current)&&document.body.removeChild(t.current),t.current=null};r.useEffect(()=>((o!=null&&o.image.includes("twitter.com")||o!=null&&o.image.includes("x.com"))&&He("https://platform.twitter.com/widgets.js",Et),()=>{Ue(Et)}),[o==null?void 0:o.image]),r.useEffect(()=>((o!=null&&o.image.includes("facebook.com")||o!=null&&o.image.includes("fb.watch"))&&He("https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0",Nt),()=>{Ue(Nt)}),[o]),r.useEffect(()=>(o!=null&&o.image.includes("tiktok.com")&&He("https://www.tiktok.com/embed.js",Ct),()=>{Ue(Ct)}),[o==null?void 0:o.image]),r.useEffect(()=>{var a,s,f,h;return(((a=o==null?void 0:o.image)==null?void 0:a.includes("reddit.com"))||((s=o==null?void 0:o.image)==null?void 0:s.includes("redd.it"))||((f=o==null?void 0:o.image)==null?void 0:f.includes("blockquote"))&&((h=o==null?void 0:o.image)==null?void 0:h.includes("reddit-embed")))&&(He("https://embed.reddit.com/widgets.js",Be),Be.current&&(Be.current.onload=()=>{window.RedditEmbed&&typeof window.RedditEmbed.init=="function"&&window.RedditEmbed.init()})),()=>{Ue(Be)}},[o==null?void 0:o.image]);const de=r.useCallback(()=>{if(De.current||!J.current||!se.current)return;const t=J.current.getBoundingClientRect(),a=J.current.querySelectorAll(".resizable-content");let s=null,f=-1;if(a.forEach(h=>{const c=h,T=c.getBoundingClientRect();if(T.top<t.bottom&&T.bottom>t.top){const y=Math.min(T.bottom,t.bottom)-Math.max(T.top,t.top),S=Math.min(T.right,t.right)-Math.max(T.left,t.left),j=y*S;j>f&&(f=j,s=c)}}),s){let c=s.getBoundingClientRect().right+16;const T=se.current.offsetWidth,y=window.innerWidth;c+T>y&&(c=y-T-16),kt(c)}},[]),Co=r.useCallback(()=>{jt(!0)},[]),No=r.useCallback((t,a,s)=>{if(!se.current)return;let h=s.getBoundingClientRect().right+16;const c=se.current.offsetWidth,T=window.innerWidth;h+c>T&&(h=T-c-16),se.current.style.left=`${h}px`,se.current.style.right="auto"},[]),Eo=r.useCallback(()=>{jt(!1),de()},[de]);r.useEffect(()=>{if(I)kt(null);else{const t=setTimeout(de,100);return()=>clearTimeout(t)}},[I,de]),r.useEffect(()=>{const t=()=>{I||de()};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[I,de]),r.useEffect(()=>{ht([...b].filter(t=>t.emoji_marker!=="0ï¸â£").sort((t,a)=>t.pinned===1&&a.pinned!==1?-1:t.pinned!==1&&a.pinned===1?1:0))},[b]);const So=()=>{if(typeof window>"u")return"/";const t=window.location.hostname.split(".");return t.length>2?`https://${t.slice(-2).join(".")}`:"/"},Mo=()=>{var t;return(t=F==null?void 0:F.routes)!=null&&t.login?route("login"):"/login"},St=()=>{window.open(Mo(),"_blank","noopener,noreferrer"),H(!1)},Mt=t=>{try{return new URL(t),!0}catch{return!1}},zo=t=>{Lo(t)},zt=r.useCallback(async()=>{if(!(Fe||he.allPosts.length===0)){ct(!0);try{const t=await O.get("/search/load-more",{params:{hashtag:nt,count:20,tumblr_timestamp:he.tumblr_next,youtubenext:he.youtube_next,reddit_after:he.reddit_after,total:he.pinterest.length}});t.data.success&&ro(a=>{const s=(t.data.tumblr||[]).map(y=>({...y,platform:"tumblr"})),f=(t.data.youtube||[]).map(y=>({...y,platform:"youtube"})),h=(t.data.pinterest||[]).map(y=>({...y,platform:"pinterest"})),c=(t.data.reddit||[]).map(y=>({...y,platform:"reddit"})),T=[...s,...f,...h,...c];return{...a,tumblr:[...a.tumblr,...s],youtube:[...a.youtube,...f],pinterest:[...a.pinterest,...h],reddit:[...a.reddit,...c],tumblr_next:t.data.tumblr_next,youtube_next:t.data.youtube_next,reddit_after:t.data.reddit_after,success:!0,allPosts:[...a.allPosts,...T]}})}catch(t){console.error("Error loading more results:",t)}finally{ct(!1)}}},[Fe,he,nt]);r.useEffect(()=>{const t=()=>{window.innerHeight+window.scrollY>=document.documentElement.offsetHeight-200&&!Fe&&!dt&&zt()};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[Fe,dt,zt]);const Lo=async t=>{Pe(!0);try{const a=await O.get(route("marketplace.loadmore"),{params:{...t,page:1}});Xe(a.data.domains),ft(a.data.pagination),ho(t)}catch(a){console.error("Error fetching filtered domains:",a),je("Failed to apply filters. Please try again.")}finally{Pe(!1)}},Fo=async()=>
119{if(!(wt||Ie.current_page>=Ie.last_page)){Pe(!0);try{const t=await O.get(route("marketplace.loadmore"),{params:{...gt,page:Ie.current_page+1}});Xe([...bt,...t.data.domains]),ft(t.data.pagination)}catch(t){console.error("Error loading more domains:",t),je("Failed to load more domains. Please try again.")}finally{Pe(!1)}}},Ro=async(t,a,s)=>{var f,h,c,T;yt(!0),je(""),ie(""),Ce(!1),H(!1);try{const y=await O.post(route("marketplace.purchase"),{domain_id:t,type:a,price:Number(s)},{headers:{"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},validateStatus:S=>S>=200&&S<500});if(y.data.success)bo(y.data.balance),ie(`Purchase successful! ${y.data.invoice_number?`Invoice #${y.data.invoice_number}`:""}`),Xe(S=>S.filter(j=>(j.type==="CUSTOM"?j.id!==t:!0)&&(j.type==="DOMAIN"?j.id!==t:!0)));else throw new Error(y.data.message||"Purchase failed")}catch(y){let S="An error occurred during purchase";O.isAxiosError(y)?(S=((h=(f=y.response)==null?void 0:f.data)==null?void 0:h.message)||((T=(c=y.response)==null?void 0:c.data)==null?void 0:T.error)||y.message,S.toLowerCase().includes("insufficient EZ$ balance")?(Ce(!0),S=""):S.toLowerCase().includes("user not authenticated")&&(H(!0),S="")):y instanceof Error&&(S=y.message,S.toLowerCase().includes("insufficient EZ$ balance")?(Ce(!0),S=""):S.toLowerCase().includes("user not authenticated")&&(H(!0),S="")),S&&(S.toLowerCase().includes("unauthenticated.")?(H(!0),S=""):(je(S),setTimeout(()=>je(""),5e3)))}finally{yt(!1),setTimeout(()=>ie(""),5e3)}},ot=r.useCallback(t=>{var Vt;const a=V=>{if(!V)return"";const ue=new Date(V);if(isNaN(ue.getTime()))return"";const Se=Math.floor((new Date().getTime()-ue.getTime())/1e3);if(Se<5)return"just now";if(Se<60)return`${Se} seconds ago`;const fe=Math.floor(Se/60);if(fe<60)return fe===1?"1 minute ago":`${fe} minutes ago`;const qe=Math.floor(fe/60);if(qe<24)return qe===1?"1 hour ago":`${qe} hours ago`;const ge=Math.floor(qe/24);if(ge<7)return ge===1?"1 day ago":`${ge} days ago`;const rt=Math.floor(ge/7);if(rt<4)return rt===1?"1 week ago":`${rt} weeks ago`;const lt=Math.floor(ge/30.44);if(lt<12)return lt===1?"1 month ago":`${lt} months ago`;const qt=Math.floor(ge/365.25);return qt===1?"1 year ago":`${qt} years ago`},s=(t==null?void 0:t.leftwidth)||0,f=(t==null?void 0:t.rightwidth)||0,h=tt?{marginLeft:"0%",marginRight:"0%",width:"100%"}:{marginLeft:`${s}%`,marginRight:`${f}%`,width:`calc(100% - ${s}% - ${f}%)`},c=t!=null&&t.image?t.image.replace(/{timeago}/g,t.created_at?a(t.created_at):""):"";if(!c)return null;const T=()=>{if(/^<(!DOCTYPE|html|head|body|<div\s|<section|<article|<header)/i.test(c.trim()))return!1;const ue=/<\/?[a-z][\s\S]*>/i.test(c),Ve=/^#+\s|\*\*.+\*\*|\[.+\]\(.+\)|```|`[^`]+`|>\s/.test(c);return ue&&!Ve?!1:([/#+\s/,/\*\*.+\*\*/,/_{2}.+_{2}/,/\*.+\*/,/\[.+\]\(.+\)/,/^- /,/^\d+\. /,/```/,/`[^`]+`/,/>\s/,/!\[.*\]\(.*\)/].some(fe=>fe.test(c)),!0)},y=((Vt=c.split(".").pop())==null?void 0:Vt.toLowerCase())||"",j=`${t.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${c}`,te=["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"],oe=["ppt","pptx","pdf","xls","xlsx","doc","docx","pages","ai","psd","eps","ttf","dxf","xps","rar","zip","ods","odt","odp"],ce=["html","htm"],Wo=/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?\/)|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/i,Vo=/(?:https?:\/\/)?(?:www\.)?linkedin\.com\/(?:in|posts|company|feed|showcase|embed\/feed\/update\/urn:li:[^/]+:[^"&?/ ]+)/i,qo=/^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$/im,Yo=/^(https?:\/\/)?(www\.)?fb\.watch\/[a-zA-Z0-9(\.\?)?]/,Oo=/^(https?:\/\/)?(www\.)?facebook\.com\/[a-zA-Z00-9(\.\?)?]/,Go=/<iframe.*?src=["'](.*?)["'].*?>.*?<\/iframe>/is,Qo=/<blockquote/,Zo=/reddit\.com\/r\/\w+\/comments\/\w+\/\w+\//,Xo=/reddit-embed-bq/,Ee=c.match(Wo),Ko=c.match(Vo),Wt=c.match(qo),Jo=c.match(Yo),ea=c.match(Oo),ta=c.match(Go)||Qo.test(c),oa=c.match(Zo),aa=c.match(Xo),ra=new Blob([c],{type:"text/html; charset=UTF-8"}),la=URL.createObjectURL(ra);if(ce.includes(y))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 120 .html-viewer-container { 121 position: fixed; 122 top: 0; 123 left: 0; 124 width: 100%; 125 height: 100%; 126 background-color: #1f1f1f; 127 z-index: -1; 128 } 129 .blur-overlay { 130 position: absolute; 131 top: 0; 132 left: 0; 133 width: 100%; 134 height: 100%; 135 backdrop-filter: blur(20px); 136 z-index: -2; 137 } 138 .html-iframe { 139 width: 100%; 140 height: 100%; 141 border: none; 142 background: white; 143 } 144 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"html-viewer-container",children:e.jsx("iframe",{src:j,className:"html-iframe",style:h,title:"HTML Document",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-modals allow-top-navigation",loading:"lazy"})})]});if(oa||aa)return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 145 .blur-overlay { 146 position: absolute; 147 top: 0; 148 left: 0; 149 width: 100%; 150 height: 100%; 151 backdrop-filter: blur(20px); 152 z-index: -2; 153 } 154 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"inset-0 flex items-center justify-center p-4 object-cover overflow-y-auto",dangerouslySetInnerHTML:{__html:c},style:h}),e.jsx("script",{async:!0,src:"https://embed.reddit.com/widgets.js",charSet:"UTF-8"})]});if(te.includes(y))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 155 .blur-overlay { 156 position: absolute; 157 top: 0; 158 left: 0; 159 width: 100%; 160 height: 100%; 161 backdrop-filter: blur(20px); 162 z-index: -1; 163 } 164 `}),e.jsx("div",{className:"blur-overlay"}
164),e.jsx("img",{src:j,alt:"Background",className:"absolute inset-0 max-w-full max-h-full m-auto z-0 rounded-lg touch-manipulation",onError:V=>console.error("Image failed to load",V),style:h},`img-${t.id}`)]});if(oe.includes(y))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 165 .document-viewer-container { 166 position: fixed; 167 top: 0; 168 left: 0; 169 width: 100%; 170 height: 100%; 171 background-color: #1f1f1f; 172 z-index: -1; 173 } 174 `}),e.jsx("div",{className:"document-viewer-container"}),e.jsx("iframe",{src:`https://docs.google.com/viewer?url=${j}&embedded=true`,className:"fixed top-0 left-0 w-full h-full",style:h,frameBorder:"0",loading:"lazy",allow:"autoplay; fullscreen",allowFullScreen:!0,sandbox:"allow-scripts allow-same-origin",title:"Document Viewer",scrolling:"yes"})]});if(ta){if(/<(iframe|blockquote)[^>]*(facebook|linkedin|tiktok|twitter|reddit)\.com/i.test(c))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 175 .blur-overlay { 176 position: absolute; 177 top: 0; 178 left: 0; 179 width: 100%; 180 height: 100%; 181 backdrop-filter: blur(20px); 182 z-index: -3; 183 } 184 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"max-h-screen overflow-y-auto",style:h,children:e.jsx("div",{className:"inset-0 flex items-center justify-center p-4 object-cover overflow-y-auto",dangerouslySetInnerHTML:{__html:c}})})]});const ue=c.replace(/<(iframe|blockquote)([^>]*)\s(height|width|style)=["'][^"']*["']([^>]*)>/gi,'<$1$2$4 class="absolute top-0 left-0 w-full h-full" scrolling="yes">').replace(/class="([^"]*)"/g,'class="$1 absolute inset-0 m-auto"'),Ve=/<(iframe|blockquote)[^>]*class="/i.test(ue)?ue:ue.replace(/<(iframe|blockquote)/g,'<$1 scrolling="yes" class="absolute w-full h-full inset-0 m-auto"');return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 185 .blur-overlay { 186 position: absolute; 187 top: 0; 188 left: 0; 189 width: 100%; 190 height: 100%; 191 backdrop-filter: blur(20px); 192 z-index: -2; 193 } 194 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"max-h-screen overflow-y-auto",style:h,children:e.jsx("div",{className:"inset-0 flex items-center justify-center p-4 object-cover overflow-y-auto",dangerouslySetInnerHTML:{__html:Ve}})})]})}if(Ee){const V=t.option==="autoplay"?"autoplay=1":t.option==="mute"?"autoplay=1&mute=1":"mute=1";return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-full z-[-2]",style:h,children:e.jsx("iframe",{loading:"lazy",src:`https://www.youtube.com/embed/${Ee[1]}?${V}&loop=1&playlist=${Ee[1]}&controls=0&showinfo=0&modestbranding=1&iv_load_policy=3`,className:"w-full h-full object-cover touch-manipulation",frameBorder:"0",allow:"autoplay; fullscreen",allowFullScreen:!0},`yt-embed-${t.id}`)}),e.jsx("style",{children:` 195 .blur-overlay { 196 position: absolute; 197 top: 0; 198 left: 0; 199 width: 100%; 200 height: 100%; 201 backdrop-filter: blur(20px); 202 z-index: -1; 203 } 204 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{id:"bgVideo",loading:"lazy",className:"absolute top-0 left-0 w-full h-full object-cover touch-manipulation",src:`https://www.youtube.com/embed/${Ee[1]}?${t.option}=1&mute=1&loop=1&playlist=${Ee[1]}`,title:"YouTube video player",style:h,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
204 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0},`yt-main-${t.id}`)]})}if(Ko){let V=c;return V.includes("?compact=1")||(V+=(V.includes("?")?"&":"?")+"compact=1"),e.jsx("div",{className:"absolute top-0 left-0 w-full h-full flex justify-center items-center",style:h,children:e.jsx("iframe",{id:"bgVideo",src:V,className:"w-full h-full touch-manipulation",frameBorder:"0",allowFullScreen:!0,title:"Embedded LinkedIn Post",scrolling:"yes"},`linkedin-${t.id}`)})}return Wt?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 205 .blur-overlay { 206 position: absolute; 207 top: 0; 208 left: 0; 209 width: 100%; 210 height: 100%; 211 backdrop-filter: blur(20px); 212 z-index: -1; 213 } 214 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{loading:"lazy",id:"bgVideo",allow:"camera; microphone; fullscreen; display-capture; autoplay",src:`https://player.vimeo.com/video/${Wt[3]}?h=33160d1512&color=de0101`,className:"absolute top-0 left-0 w-full h-full object-cover touch-manipulation",style:h,frameBorder:"0",allowFullScreen:!0},`vimeo-${t.id}`)]}):Jo||ea&&!c.includes("groups")?e.jsx("div",{className:"absolute top-0 left-0 w-full h-screen flex justify-center items-center overflow-auto touch-manipulation",style:h,children:e.jsx("div",{className:"fb-post","data-href":c,"data-show-text":"true"},`fb-${t.id}`)}):y==="mp4"?e.jsxs(e.Fragment,{children:[e.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"absolute top-0 left-0 w-full h-full object-cover z-[-3] touch-manipulation",style:h,children:[e.jsx("source",{src:j,type:"video/mp4"}),"Your browser does not support the video tag."]},`mp4-bg-${t.id}`),e.jsx("style",{children:` 215 .blur-overlay { 216 position: absolute; 217 top: 0; 218 left: 0; 219 width: 100%; 220 height: 100%; 221 backdrop-filter: blur(20px); 222 z-index: -2; 223 } 224 `}),e.jsx("div",{className:"blur-overlay"}),e.jsxs("video",{id:"bgVideo",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"absolute inset-0 w-full h-full m-auto touch-manipulation",style:h,controls:!0,children:[e.jsx("source",{src:j,type:"video/mp4"}),"Your browser does not support the video tag."]},`mp4-main-${t.id}`)]}):y==="glb"?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 225 .blur-overlay { 226 position: absolute; 227 top: 0; 228 left: 0; 229 width: 100%; 230 height: 100%; 231 backdrop-filter: blur(20px); 232 z-index: -1; 233 } 234 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("model-viewer",{src:j,alt:"3D model",className:"absolute top-0 left-0 w-full h-full touch-manipulation",style:h,ar:!0,"auto-rotate":!0,"camera-controls":!0,"shadow-intensity":"1"},`glb-${t.id}`)]}):Mt(c)?e.jsx(e.Fragment,{children:e.jsx("iframe",{loading:"lazy",id:"bgVideo",allow:"camera; microphone; fullscreen; display-capture; autoplay",src:c,className:"absolute top-0 left-0 w-full h-full touch-manipulation",style:h,frameBorder:"0",allowFullScreen:!0,scrolling:"yes"},`generic-${t.id}`)}):/<\/?[a-z][\s\S]*>/i.test(c)&&(c.includes("<div")||c.includes("<span")||c.includes("<p>")||c.includes("<h")||c.includes("<ul>")||c.includes("<ol>")||c.includes("<li>")||c.includes("<table>"))?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 235 .blur-overlay { 236 position: absolute; 237 top: 0; 238 left: 0; 239 width: 100%; 240 height: 100%; 241 backdrop-filter: blur(20px); 242 z-index: -1; 243 } 244 .html-container { 245 position: relative; 246 width: 100%; 247 height: 100%; 248 overflow-y: auto; 249 background: ${(t==null?void 0:t.bgcolour)||(o==null?void 0:o.bgcolour)||"transparent"}; 250 color: white; 251 font-family: system-ui, -apple-system, sans-serif; 252 } 253 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"html-container",style:h,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:c}})})]}):T()?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 254 .markdown-container { 255 position: fixed; 256 top: 0; 257 left: 0; 258 width: 100%; 259 height: 100%; 260 background: ${(o==null?void 0:o.bgcolour)||"#000000"}; 261 overflow-y: auto; 262 z-index: 0; 263 } 264 .markdown-content { 265 margin: 0 auto; 266 color: white; 267 font-family: system-ui, -apple-system, sans-serif; 268 padding: 20px; 269 } 270 .blur-overlay { 271 position: fixed; 272 top: 0; 273 left: 0; 274 width: 100%; 275 height: 100%; 276 backdrop-filter: blur(20px); 277 z-index: -1; 278 } 279 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"markdown-container",style:h,children:e.jsx("div",{className:"markdown-content",children:e.jsx(pe,{source:c,style:{backgroundColor:"transparent",color:"white",fontFamily:"system-ui, -apple-system, sans-serif"},wrapperElement:{"data-color-mode":"dark"}})})})]}):e.jsx("iframe",{src:la,className:"absolute top-0 left-0 w-full h-full border-none touch-manipulation",style:h,allow:"fullscreen; microphone; camera; autoplay; display-capture",sandbox:`allow-forms allow-modals allow-pointer-lock allow-popups 280 allow-presentation allow-scripts allow-downloads 281 allow-storage-access-by-user-activation`,allowFullScreen:!0,loading:"lazy",name:"binauralMixerFrame",referrerPolicy:"str
281ict-origin-when-cross-origin",title:"Binaural Audio Mixer"})},[tt]),$o=r.useMemo(()=>i&&i.length>1?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 282 .swiper-button-next::after, 283 .swiper-button-prev::after { 284 content: none; 285 } 286 .swiper-slide { 287 overflow-y: auto !important; 288 overflow-x: hidden !important; 289 touch-action: pan-y !important; 290 -webkit-overflow-scrolling: touch !important; 291 } 292 .swiper-slide::-webkit-scrollbar { 293 width: 8px; 294 } 295 .swiper-slide::-webkit-scrollbar-track { 296 background: rgba(45, 55, 72, 0.9); 297 border-radius: 4px; 298 } 299 .swiper-slide::-webkit-scrollbar-thumb { 300 background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); 301 border-radius: 4px; 302 } 303 .swiper-wrapper { 304 overscroll-behavior: contain; 305 } 306 `}),e.jsxs(Ea,{modules:[Sa,Ma],effect:"fade",speed:1e3,loop:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},className:"h-full w-full touch-manipulation",onSlideChange:t=>co(t.realIndex),allowTouchMove:!0,touchRatio:1,touchAngle:45,simulateTouch:!0,touchMoveStopPropagation:!1,touchStartPreventDefault:!1,children:[i.map(t=>e.jsx(za,{className:"touch-manipulation !overflow-y-auto !overflow-x-hidden",style:{backgroundColor:t.bgcolour||"transparent",height:"100%",minHeight:"100vh"},children:e.jsx("div",{className:"w-full h-full overflow-y-auto overflow-x-hidden",style:{overscrollBehavior:"contain",WebkitOverflowScrolling:"touch"},children:ot(t)})},t.id)),e.jsx("div",{className:"swiper-button-prev !left-4 md:!left-20 !text-white !w-10 !h-10 p-[5px] !flex !items-center !justify-center !bg-gray-800/70 !rounded-full touch-manipulation","data-tooltip-id":"theme-tooltip","data-tooltip-content":u("theme-tooltip",0),children:e.jsx(D,{icon:ma,className:"!text-2xl touch-manipulation"})}),e.jsx("div",{className:"swiper-button-next !right-4 md:!right-20 !text-white !w-10 p-[5px] !h-10 !flex !items-center !justify-center !bg-gray-800/70 !rounded-full touch-manipulation","data-tooltip-id":"theme-tooltip","data-tooltip-content":u("theme-tooltip",1),children:e.jsx(D,{icon:ha,className:"!text-2xl touch-manipulation"})})]})]}):e.jsx("div",{className:"absolute inset-0 z-0 touch-manipulation",style:{backgroundColor:(o==null?void 0:o.bgcolour)||"transparent"},children:ot(o)}),[i,o,ot,u]),To=r.useMemo(()=>{var s;if(!(o!=null&&o.image))return null;const t=(s=o.image.split(".").pop())==null?void 0:s.toLowerCase();return["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(t||"")?e.jsx("style",{children:` 307 .blur-bg { 308 background: url('${o.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${o.image}') no-repeat center center; 309 background-size: cover; 310 } 311 `}):null},[o]);r.useEffect(()=>{const t=async()=>{try{const a=await O.get(`/reactions/${x}/counts`);fo(a.data.likes),go(a.data.dislikes)}catch(a){console.error("Error loading reaction data:",a)}};x!=null&&x.id&&t()},[x==null?void 0:x.id]);const _o=async()=>{var h,c,T,y,S;const a=ke.trim()!=="",s=Q!==null;if(!a&&!s){W({show:!0,type:"error",message:"Please provide at least one form of content (text/embed or image)."});return}if(!l.user&&!P){W({show:!0,type:"error",message:"Email is required"});return}if(!l.user&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P)){W({show:!0,type:"error",message:"Please enter a valid email address"});return}if(!me){W({show:!0,type:"error",message:"You must agree to the Terms and Conditions and Privacy Policy"});return}W({show:!0,type:"success",message:"Saving content..."});const f=new FormData;if(f.append("funnel_id",String(x)),f.append("reference",""),f.append("email",((h=l.user)==null?void 0:h.email)||P),a){const j=Mt(ke.trim());f.append("url",ke)}s&&f.append("image",Q);try{const j=await O.post("/funnel-content",f,{headers:{Accept:"application/json"}});if(j.data.success)W({show:!0,type:"success",message:j.data.message||"Content saved successfully!"}),j.data.newContent.emoji_marker!=="0ï¸â£"&&ht(te=>{const oe=[...te];let ce=0;for(;ce<oe.length&&oe[ce].pinned===1;)ce++;return oe.splice(ce,0,{...j.data.newContent}),oe}),xe(!1),pt(""),Ze(null),Qe(""),ze(!1);else throw new Error(j.data.message||"Failed to save content")}catch(j){let te="Failed to save content. Please try again.";
311if(O.isAxiosError(j)){if(((c=j.response)==null?void 0:c.status)===422&&j.response.data.errors){const oe=j.response.data.errors,ce=Object.keys(oe)[0];te=oe[ce][0]}else te=((y=(T=j.response)==null?void 0:T.data)==null?void 0:y.message)||te;((S=j.response)==null?void 0:S.status)===401&&(H(!0),te="Please login to save content")}else j instanceof Error&&(te=j.message);W({show:!0,type:"error",message:te})}finally{setTimeout(()=>W(null),3e3)}},Lt=r.useCallback(t=>{ne.current&&clearInterval(ne.current);const a=25,s=50;ne.current=setInterval(()=>{J.current&&J.current.scrollBy({top:t==="up"?-a:a,behavior:"auto"})},s)},[]);r.useEffect(()=>()=>{ne.current&&clearInterval(ne.current)},[]);const Ft=t=>{De.current=!0,t==="up"?Je(!0):et(!0),Lt(t)},be=()=>{De.current=!1,Je(!1),et(!1),ne.current&&(clearInterval(ne.current),ne.current=null),de()},Io=()=>{be()},Rt=t=>{De.current=!0,t==="up"?Je(!0):et(!0),Lt(t)},at=()=>{be()},Po=t=>{Ne.current=t.touches[0].clientY},Do=t=>{if(!Ne.current)return;const a=t.touches[0].clientY,s=Ne.current-a;J.current&&J.current.scrollBy({top:s,behavior:"auto"}),Ne.current=a},Bo=()=>{Ne.current=null},ee=()=>{Oe(!I),Re(I?{right:k}:{right:"4%"})};r.useEffect(()=>{g===1?(Oe(!1),Re({right:k})):(Oe(!0),Re({right:"4%"}))},[g]),r.useEffect(()=>{const t=a=>{const s=a.target;L&&!s.closest(".relative")&&le(!1)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[L]);const Ho=async()=>{if(!l.user)return;const t=i[Y]||o;try{const a=await O.get(`/check-theme-collection/${t.id}`);we(a.data.isInCollection)}catch(a){console.error("Error checking theme collection:",a)}},Ae=async()=>{if(!l.user){H(!0);return}const t=i[Y]||o;try{await O.post("/add-to-collection",{theme_id:t.id}),we(!0),X(!0),setTimeout(()=>X(!1),3e3)}catch(a){console.error("Error adding to collection:",a)}};r.useEffect(()=>{l.user&&Ho()},[l.user,Y]);const $t=()=>{ae(!Z)};r.useEffect(()=>{ae(n!==0)},[n]),r.useEffect(()=>{typeof window<"u"&&no(`https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=${encodeURIComponent(window.location.href)}&color=0b6623&bgcolor=ffffff&qzone=1`)},[]),r.useEffect(()=>{if(o!=null&&o.image.includes("facebook.com")||o!=null&&o.image.includes("fb.watch")){const t=document.createElement("script");return t.src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v18.0",t.async=!0,t.defer=!0,t.crossOrigin="anonymous",document.body.appendChild(t),()=>{document.body.removeChild(t)}}},[o]);const Uo=r.useCallback(t=>{ye({show:!0,content:t})},[]),Ao=async()=>{var t,a;if(!P||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P)){W({show:!0,type:"error",message:"Please enter a valid email address"});return}try{W({show:!0,type:"success",message:"Sending magic link..."}),(await O.post(route("magic-link.send"),{email:P,redirect_url:window.location.href})).status===200&&(ie("Magic link sent! Check your email."),W(null))}catch(s){let f="Failed to send magic link. Please try again.";O.isAxiosError(s)&&(f=((a=(t=s.response)==null?void 0:t.data)==null?void 0:a.message)||f),W({show:!0,type:"error",message:f})}},We={position:"absolute",top:"1rem",zIndex:10,transition:wo?"none":"left 0.3s ease, right 0.3s ease"};return!I&&Ke!==null?!I&&Ke!==null&&_==="design"?We.left=`${Ke}px`:We.right="4%":We.right=lo.right,e.jsxs(e.Fragment,{children:[e.jsxs(sa,{children:[e.jsx("title",{children:"Welcome"}),e.jsx("style",{children:` 312 /* ==================================== 313 BEAUTIFUL CUSTOM SCROLLBARS 314 ==================================== */ 315 316 html::-webkit-scrollbar, 317 body::-webkit-scrollbar {
318 width: 16px; 319 height: 16px; 320 } 321 322 div::-webkit-scrollbar { 323 width: 12px; 324 height: 12px; 325 } 326 327 iframe::-webkit-scrollbar, 328 model-viewer::-webkit-scrollbar, 329 .w-md-editor::-webkit-scrollbar, 330 .resizable-content::-webkit-scrollbar { 331 width: 10px; 332 height: 10px; 333 } 334 335 ::-webkit-scrollbar-track { 336 background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%); 337 border-radius: 10px; 338 border: 1px solid rgba(74, 85, 104, 0.5); 339 box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); 340 backdrop-filter: blur(4px); 341 } 342 343 ::-webkit-scrollbar-thumb { 344 background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); 345 border-radius: 10px; 346 border: 2px solid rgba(255, 255, 255, 0.1); 347 box-shadow: 348 0 2px 4px rgba(0, 0, 0, 0.3), 349 inset 0 1px 0 rgba(255, 255, 255, 0.1); 350 transition: all 0.3s ease; 351 } 352 353 ::-webkit-scrollbar-thumb:hover { 354 background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%); 355 box-shadow: 356 0 3px 6px rgba(0, 0, 0, 0.4), 357 inset 0 1px 0 rgba(255, 255, 255, 0.2); 358 transform: scale(1.05); 359 } 360 361 ::-webkit-scrollbar-thumb:active { 362 background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); 363 box-shadow: 364 0 1px 3px rgba(0, 0, 0, 0.3), 365 inset 0 0 2px rgba(255, 255, 255, 0.1); 366 } 367 368 ::-webkit-scrollbar-corner {
369 background: rgba(30, 41, 59, 0.8); 370 border-radius: 0 0 4px 0; 371 } 372 373 * { 374 scrollbar-width: thin; 375 scrollbar-color: #8b5cf6 rgba(30, 41, 59, 0.9); 376 } 377 378 main::-webkit-scrollbar { 379 width: 14px; 380 } 381 382 main::-webkit-scrollbar-track { 383 background: linear-gradient(180deg, 384 rgba(15, 23, 42, 0.9) 0%, 385 rgba(30, 41, 59, 0.9) 50%, 386 rgba(15, 23, 42, 0.9) 100% 387 ); 388 border-left: 1px solid rgba(74, 85, 104, 0.3); 389 } 390 391 main::-webkit-scrollbar-thumb { 392 background: linear-gradient(180deg, 393 #8b5cf6 0%, 394 #7c3aed 30%, 395 #6d28d9 70%, 396 #5b21b6 100% 397 ); 398 border: 2px solid rgba(255, 255, 255, 0.15); 399 } 400 401 [class*="sidebar"]::-webkit-scrollbar, 402 [class*="Sidebar"]::-webkit-scrollbar {
403 width: 8px; 404 } 405 406 [class*="sidebar"]::-webkit-scrollbar-track, 407 [class*="Sidebar"]::-webkit-scrollbar-track { 408 background: rgba(45, 55, 72, 0.7); 409 border-radius: 4px; 410 } 411 412 [class*="sidebar"]::-webkit-scrollbar-thumb, 413 [class*="Sidebar"]::-webkit-scrollbar-thumb { 414 background: linear-gradient(135deg, #10b981 0%, #059669 100%); 415 border-radius: 4px; 416 } 417 418 [class*="modal"]::-webkit-scrollbar, 419 [class*="Modal"]::-webkit-scrollbar { 420 width: 10px; 421 } 422 423 [class*="modal"]::-webkit-scrollbar-track, 424 [class*="Modal"]::-webkit-scrollbar-track { 425 background: rgba(31, 41, 55, 0.8); 426 border-radius: 6px; 427 } 428 429 [class*="modal"]::-webkit-scrollbar-thumb, 430 [class*="Modal"]::-webkit-scrollbar-thumb { 431 background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); 432 border: 1px solid rgba(251, 191, 36, 0.3); 433 } 434 435 .card::-webkit-scrollbar, 436 .resizable-content::-webkit-scrollbar, 437 .dark-markdown-preview-wrapper::-webkit-scrollbar {
438 width: 6px; 439 } 440 441 .card::-webkit-scrollbar-track, 442 .resizable-content::-webkit-scrollbar-track, 443 .dark-markdown-preview-wrapper::-webkit-scrollbar-track { 444 background: rgba(55, 65, 81, 0.6); 445 border-radius: 3px; 446 } 447 448 .card::-webkit-scrollbar-thumb, 449 .resizable-content::-webkit-scrollbar-thumb, 450 .dark-markdown-preview-wrapper::-webkit-scrollbar-thumb { 451 background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); 452 border-radius: 3px; 453 } 454 455 .markdown-container::-webkit-scrollbar, 456 .wmde-markdown::-webkit-scrollbar, 457 .w-md-editor-preview::-webkit-scrollbar, 458 .enhanced-md-editor::-webkit-scrollbar { 459 width: 8px; 460 } 461 462 .markdown-container::-webkit-scrollbar-track, 463 .wmde-markdown::-webkit-scrollbar-track, 464 .w-md-editor-preview::-webkit-scrollbar-track, 465 .enhanced-md-editor::-webkit-scrollbar-track { 466 background: rgba(26, 32, 44, 0.8); 467 } 468 469 .markdown-container::-webkit-scrollbar-thumb, 470 .wmde-markdown::-webkit-scrollbar-thumb, 471 .w-md-editor-preview::-webkit-scrollbar-thumb, 472 .enhanced-md-editor::-webkit-scrollbar-thumb { 473 background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); 474 } 475 476 html { 477 scroll-behavior: smooth; 478 } 479 480 @keyframes scrollbarPulse { 481 0%, 100% { 482 opacity: 1; 483 } 484 50% { 485 opacity: 0.7; 486 } 487 } 488 489 ::-webkit-scrollbar-thumb { 490 animation: scrollbarPulse 2s ease-in-out; 491 } 492 493 ::-webkit-scrollbar {
494 opacity: 0.5; 495 transition: opacity 0.3s ease; 496 } 497 498 :hover::-webkit-scrollbar, 499 :focus::-webkit-scrollbar, 500 :active::-webkit-scrollbar { 501 opacity: 1; 502 } 503 504 .overflow-auto::-webkit-scrollbar, 505 .overflow-y-auto::-webkit-scrollbar, 506 .overflow-x-auto::-webkit-scrollbar { 507 width: 8px; 508 height: 8px; 509 } 510 511 .overflow-auto::-webkit-scrollbar-track, 512 .overflow-y-auto::-webkit-scrollbar-track, 513 .overflow-x-auto::-webkit-scrollbar-track { 514 background: rgba(75, 85, 99, 0.3); 515 border-radius: 4px; 516 } 517 518 .overflow-auto::-webkit-scrollbar-thumb, 519 .overflow-y-auto::-webkit-scrollbar-thumb, 520 .overflow-x-auto::-webkit-scrollbar-thumb { 521 background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); 522 border-radius: 4px; 523 } 524 525 .dark-markdown-preview-wrapper .wmde-markdown::-webkit-scrollbar {
526 width: 8px; 527 } 528 529 .dark-markdown-preview-wrapper .wmde-markdown::-webkit-scrollbar-track { 530 background: rgba(31, 41, 55, 0.9); 531 } 532 533 .dark-markdown-preview-wrapper .wmde-markdown::-webkit-scrollbar-thumb { 534 background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%); 535 border: 1px solid rgba(96, 165, 250, 0.3); 536 } 537 538 .blur-overlay + *::-webkit-scrollbar-track { 539 background: rgba(255, 255, 255, 0.05); 540 backdrop-filter: blur(10px); 541 } 542 543 .blur-overlay + *::-webkit-scrollbar-thumb { 544 background: linear-gradient(135deg, 545 rgba(139, 92, 246, 0.8) 0%, 546 rgba(124, 58, 237, 0.8) 100% 547 ); 548 backdrop-filter: blur(5px); 549 } 550 551 @media (max-width: 768px) { 552 ::-webkit-scrollbar {
553 width: 6px; 554 height: 6px; 555 } 556 557 div::-webkit-scrollbar, 558 iframe::-webkit-scrollbar { 559 width: 4px; 560 height: 4px; 561 } 562 563 main::-webkit-scrollbar { 564 width: 8px; 565 } 566 } 567 568 @media print { 569 ::-webkit-scrollbar { 570 display: none; 571 } 572 573 * { 574 scrollbar-width: none; 575 } 576 } 577 578 .react-tooltip { 579 z-index: 99999 !important; 580 opacity: 1 !important; 581 font-size: 12px; 582 padding: 4px 8px; 583 } 584 @media (max-width: 768px) { 585 .template-content-container { 586 margin-left: 0 !important; 587 margin-right: 0 !important; 588 width: 100% !important; 589 } 590 .template-content-container iframe, 591 .template-content-container model-viewer, 592 .template-content-container video, 593 .template-content-container img { 594 margin-left: 0 !important; 595 margin-right: 0 !important; 596 width: 100% !important; 597 } 598 } 599 600 .enhanced-md-editor .w-md-editor { 601 border: 1px solid #4a5568 !important; 602 border-radius: 0.75rem !important; 603 overflow: hidden; 604 } 605 606 .enhanced-md-editor .w-md-editor-toolbar { 607 background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important; 608 border-bottom: 1px solid #4a5568 !important; 609 padding: 12px !important; 610 border-radius: 0.75rem 0.75rem 0 0 !important; 611 } 612 613 .enhanced-md-editor .w-md-editor-toolbar button { 614 color: #cbd5e0 !important; 615 border-radius: 0.5rem !important; 616 margin: 0 2px !important; 617 padding: 6px 8px !important; 618 transition: all 0.2s ease !important; 619 } 620 621 .enhanced-md-editor .w-md-editor-toolbar button:hover { 622 background: linear-gradient(135deg, #4a5568 0%, #5a67d8 100%) !important; 623 color: white !important; 624 transform: translateY(-1px); 625 box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); 626 } 627 628 .enhanced-md-editor .w-md-editor-content { 629 background-color: #1a202c !important; 630 } 631 632 .enhanced-md-editor .w-md-editor-text { 633 background-color: #1a202c !important; 634 color: white !important; 635 font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important; 636 } 637 638 .enhanced-md-editor .w-md-editor-text-pre { 639 color: white !important; 640 } 641 642 .enhanced-md-editor .w-md-editor-preview { 643 background-color: #1a202c !important; 644 color: white !important; 645 border-left: 1px solid #4a5568 !important; 646 } 647 648 .enhanced-md-editor ::-webkit-scrollbar {
649 width: 8px; 650 } 651 652 .enhanced-md-editor ::-webkit-scrollbar-track { 653 background: #2d3748; 654 } 655 656 .enhanced-md-editor ::-webkit-scrollbar-thumb { 657 background: #4a5568; 658 border-radius: 4px; 659 } 660 661 .enhanced-md-editor ::-webkit-scrollbar-thumb:hover { 662 background: #5a67d8; 663 } 664 `})]}),e.jsx(U,{id:"main-tooltip"}),e.jsx(U,{id:"view-mode-tooltip"}),e.jsx(U,{id:"scroll-tooltip"}),e.jsx(U,{id:"action-tooltip"}),e.jsx(U,{id:"reaction-tooltip"}),e.jsx(U,{id:"flysign-tooltip"}),e.jsx(U,{id:"theme-tooltip"}),e.jsx(U,{id:"content-tooltip"}),e.jsx(U,{id:"login-tooltip"}),e.jsx(U,{id:"add-content-tooltip"}),e.jsx(U,{id:"search-tooltip"}),e.jsx(U,{id:"social-card-tooltip"}),e.jsx(U,{id:"moderation-tooltip"}),e.jsx(U,{id:"content-tab-tooltip"}),e.jsx(U,{id:"mdeditor-tooltip"}),Ye&&e.jsx("div",{className:"fixed inset-0 z-5000 flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm",children:e.jsx("div",{className:"relative max-w-4xl max-h-[90vh] overflow-y-auto",children:e.jsx(Fa,{onClose:()=>Le(!1)})})}),ao&&e.jsx("div",{className:"fixed inset-0 z-5000 flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm",children:e.jsx("div",{className:"relative max-w-4xl max-h-[90vh] overflow-y-auto",children:e.jsx(Ra,{onClose:()=>st(!1)})})}),v&&e.jsx("div",{className:"fixed top-4 right-4 z-[10000] bg-green-500 text-white px-4 py-2 rounded-md shadow-lg touch-manipulation",children:"Theme added to your collection!"}),K&&e.jsx("div",{className:"fixed top-4 right-4 z-[10000] bg-green-500 text-white px-4 py-2 rounded-md shadow-lg touch-manipulation",children:"Great! The theme URL has been copied to your clipboard."}),C&&e.jsx("div",{className:`fixed top-4 right-4 z-[10000] ${C.type==="success"?"bg-green-500":"bg-red-500"} text-white px-4 py-2 rounded-md shadow-lg touch-manipulation`,children:C.message}),mt&&e.jsxs("div",{className:"fixed top-20 right-4 bg-red-600 text-white px-4 py-2 rounded-md shadow-lg z-100 flex items-center",children:[e.jsx(D,{icon:Ot,className:"mr-2"}),mt]}),Te&&e.jsxs("div",{className:"fixed top-20 right-4 bg-green-600 text-white px-4 py-2 rounded-md shadow-lg z-100 flex items-center",children:[e.jsx(D,{icon:to,className:"mr-2"}),Te]}),xo&&e.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-100 p-4",children:e.jsxs("div",{className:"backdrop-blur-sm rounded-xl p-6 max-w-md w-full border border-yellow-500",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsxs("h3",{className:"text-xl font-bold text-yellow-400 flex items-center",children:[e.jsx(D,{icon:Ot,className:"mr-2"}),"Insufficient Balance"]}),e.jsx("button",{onClick:()=>Ce(!1),className:"text-gray-400 hover:text-white","data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",0),children:e.jsx(D,{icon:xa})})]}),e.jsx("p",{className:"text-gray-300 mb-6",children:"You don't have enough EZ$ to complete this purchase. Please purchase more EZ$ to continue."}),e.jsxs("div",{className:"flex justify-end space-x-3",children:[e.jsx("button",{onClick:()=>Ce(!1),className:"px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg text-white","data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",1),children:"Cancel"}),e.jsxs("a",{href:route("purchase"),target:"_blank",className:"px-4 py-2 bg-yellow-600 hover:bg-yellow-500 rounded-lg text-white font-semibold flex items-center","data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",2),children:[e.jsx(D,{icon:ba,className:"mr-2"}),"Purchase EZ$"]})]})]})}),e.jsx(Me,{show:A,onClose:()=>H(!1),"aria-labelledby":"login-modal-title","aria-describedby":"login-modal-description",children:e.jsx("div",{className:"inline-block mt-25 rounded-lg text-left overflow-hidden transform transition-all sm:my-8 sm:align-middle sm:max-w-lg w-full max-w-[95vw] touch-manipulation",role:"dialog","aria-modal":"true",children:e.jsxs("div",{className:"relative p-6 rounded-2xl bg-gray-800/80 backdrop-blur-sm border-1 border-gray-600 shadow-2xl text-white touch-manipulation",children:[e.jsx("button",{className:"absolute top-3 right-3 p-1 text-gray-400 hover:text-white transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-lime-400 rounded-full",onClick:()=>H(!1),onTouchEnd:t=>{t.preventDefault(),H(!1)},"aria-label":"Close login modal","data-tooltip-id":"login-tooltip","data-tooltip-content":u("login-tooltip",0),children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"p-2 rounded-full bg-lime-500/20",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-lime-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),e.jsx("h3",{id:"login-modal-title",className:"text-2xl font-bold text-lime-400",children:"Login Required"})]}),e.jsx("p",{id:"login-modal-description",className:"text-gray-300 text-sm leading-relaxed",children:"You need to log in to add this theme to your collection. Please sign in or cancel to go back."}),e.jsx("div",{className:"flex flex-col sm:flex-row justify-end space-y-3 sm:space-y-0 sm:space-x-3 pt-2",children:e.jsxs("button",{className:"relative overflow-hidden group bg-gradient-to-r from-lime-500 to-lime-600 text-gray-900 font-bold py-2 px-6 rounded-lg border-2 border-lime-400 hover:border-white transition-all duration-300 flex items-center justify-center gap-2",onClick:St,onTouchEnd:t=>{t.preventDefault(),St()},"data-tooltip-id":"login-tooltip","data-tooltip-content":u("login-tooltip",1),children:[e.jsxs("span",{className:"relative z-10 flex items-center gap-2",children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3 3V7a3 3 0 013-3H6a3 3 0 013 3v1"})}),"SIGN IN"]}),e.jsx("span",{className:"absolute inset-0 bg-white opacity-0 group-hover:opacity-10 transition-opacity duration-300"})]})})]})]})})}),e.jsx(Me,{show:uo,onClose:()=>xe(!1),"aria-labelledby":"add-content-modal-title","aria-describedby":"add-content-modal-description",children:e.jsx("div",{className:"inline-block w-full max-w-lg rounded-lg text-left transform transition-all sm:my-8 max-h-full sm:align-middle max-w-[95vw] touch-manipulation",children:e.jsxs("div",{className:"relative p-6 rounded-2xl bg-gray-800/80 backdrop-blur-sm border border-gray-600 shadow-2xl text-white touch-manipulation",children:[e.jsx("button",{className:"absolute top-3 right-3 p-1 text-gray-400 hover:text-white transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-lime-400 rounded-full",onClick:()=>xe(!1),onTouchEnd:t=>{t.preventDefault(),xe(!1)},"aria-label":"Close add content modal","data-tooltip-id":"add-content-tooltip","data-tooltip-content":u("add-content-tooltip",0),children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"p-2 rounded-full bg-lime-500/20",children:e.jsx(D,{icon:fa,className:"h-5 w-5 text-lime-400"})}),e.jsx("h3",{id:"add-content-modal-title",className:"text-2xl font-bold text-lime-400",children:"Agree to community rules and Co-WiKi"})]}),e.jsxs("div",{id:"add-content-modal-description",className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"user-email",className:"block text-sm font-medium text-gray-300 mb-1",children:"Your Email *"}),e.jsx("input",{type:"email",id:"user-email",className:"w-full px-3 py-2 bg-gray-700/50 border border-gray-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-lime-500 focus:border-transparent",placeholder:"Enter your email",value:((Tt=l.user)==null?void 0:Tt.email)||P,readOnly:!!l.user,onCh
664ange:t=>{l.user||Qe(t.target.value)},disabled:(C==null?void 0:C.show)&&C.type==="success",required:!0,"data-tooltip-id":"add-content-tooltip","data-tooltip-content":u("add-content-tooltip",1)}),!l.user&&!P&&e.jsx("p",{className:"mt-1 text-sm text-red-400",children:"Email is required"}),!l.user&&P&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P)&&e.jsx("p",{className:"mt-1 text-sm text-red-400",children:"Please enter a valid email address"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex space-x-2 p-1 bg-gray-700/50 rounded-lg",children:[e.jsx("button",{onClick:()=>xt("text"),className:`w-full px-4 py-2 text-sm font-semibold rounded-md transition-colors duration-200 focus:outline-none ${_e==="text"?"bg-lime-500 text-gray-900":"text-gray-300 hover:bg-gray-600"}`,"data-tooltip-id":"content-tab-tooltip","data-tooltip-content":"Paste",children:"Markdown/EmbedCode/URL/SimpleText"}),e.jsx("button",{onClick:()=>xt("image"),className:`w-full px-4 py-2 text-sm font-semibold rounded-md transition-colors duration-200 focus:outline-none ${_e==="image"?"bg-lime-500 text-gray-900":"text-gray-300 hover:bg-gray-600"}`,"data-tooltip-id":"content-tab-tooltip","data-tooltip-content":"PDF/Image",children:"Upload"})]}),e.jsxs("div",{className:"pt-2 min-h-[150px]",children:[_e==="text"&&e.jsx("div",{"data-color-mode":"dark",children:e.jsx(rr,{value:ke,onChange:t=>pt(t||"")})}),_e==="image"&&e.jsx("div",{className:"space-y-2",children:Q?e.jsx("div",{className:"relative group bg-gray-800/40 rounded-lg p-3 border border-gray-600",children:e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:`w-10 h-10 rounded flex items-center justify-center ${Q.type==="application/pdf"?"bg-red-500":Q.name.match(/\.(html|htm)$/i)?"bg-blue-500":"bg-gradient-to-br from-lime-500 to-emerald-500"}`,children:Q.type==="application/pdf"?e.jsx(D,{icon:ga,className:"text-white text-sm"}):Q.name.match(/\.(html|htm)$/i)?e.jsx("span",{className:"text-white text-sm font-bold",children:"</>"}):e.jsx(D,{icon:wa,className:"text-white text-sm"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-white truncate",children:Q.name}),e.jsxs("p",{className:"text-xs text-gray-400",children:[(Q.size/1024/1024).toFixed(2)," MB â¢",Q.type==="application/pdf"?" PDF Document":Q.name.match(/\.(html|htm)$/i)?" HTML File":" Image"]})]}),e.jsx("button",{onClick:()=>Ze(null),className:"w-6 h-6 flex items-center justify-center rounded-full bg-red-500/20 hover:bg-red-500/40 text-red-400 hover:text-red-300 transition-colors",children:"Ã"})]})}):e.jsxs("label",{htmlFor:"dropzone-file",className:"flex flex-col items-center justify-center w-full h-32 border-2 border-dashed border-gray-600 rounded-xl cursor-pointer bg-gray-800/30 hover:bg-gray-800/50 transition-all duration-200 group",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[e.jsx("svg",{className:"w-10 h-10 mb-2 text-gray-500 group-hover:text-lime-400 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.5861.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),e.jsxs("p",{className:"text-sm text-gray-400 group-hover:text-lime-300",children:[e.jsx("span",{className:"font-semibold",children:"Click to upload"})," or drag & drop"]}),e.jsx("p",{className:"text-xs text-gray-500",children:"SVG, PNG, JPG, GIF, PDF, HTML (Max 100MB)"})]}),e.jsx("input",{id:"dropzone-file",type:"file",className:"hidden",accept:"image/*,.pdf,.html,.htm",onChange:mo})]})})]})]}),e.jsxs("div",{className:"flex items-start space-x-3 py-2",children:[e.jsx($a,{id:"agree_to_terms",name:"agree_to_terms",checked:me,onClick:()=>ze(!me),tabIndex:1,className:"border-2 border-gray-400 data-[state=checked]:border-lime-400","data-tooltip-id":"add-content-tooltip","data-tooltip-content":u("add-content-tooltip",2)}),e.jsxs(Jt,{htmlFor:"agree_to_terms",className:"text-sm leading-normal",children:["I agree to the"," ",e.jsx("button",{type:"button",onClick:()=>Le(!0),className:"text-lime-400 hover:underline focus:outline-none focus:underline",tabIndex:2,"data-tooltip-id":"add-content-tooltip","data-tooltip-content":u("add-content-tooltip",3),children:"Terms and Conditions"})," ","and"," ",e.jsx("button",{type:"button",onClick:()=>st(!0),className:"text-lime-400 hover:underline focus:outline-none focus:underline",tabIndex:3,"data-tooltip-id":"add-content-tooltip","data-tooltip-content":u("add-content-tooltip",4),children:"Privacy Policy"})]})]}),e.jsx("div",{className:"flex items-start space-x-3 py-2",children:e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxs(Jt,{className:"text-sm leading-normal text-gray-300 font-medium",children:["Moderation :"," ",e.jsx("span",{className:`font-semibold ${p===1?"text-green-400":"text-red-400"}`,children:p===1?"On":"Off"})]}),e.jsx("div",{className:"flex items-center justify-center w-4 h-4 rounded-full bg-gray-600 hover:bg-gray-500 cursor-help transition-colors","data-tooltip-id":"moderation-tooltip","data-tooltip-content":p===1?"Content is moderated before appearing publicly":"Content appears immediately without moderation",children:e.jsx("span",{className:"text-xs text-white",children:"?"})})]})}),!me&&e.jsx("p",{className:"mt-1 text-sm text-red-400",children:"You must agree to the Terms and Conditions and Privacy Policy"}),e.jsx("div",{className:"flex justify-end pt-2",children:e.jsxs("button",{className:"relative overflow-hidden group bg-gradient-to-r from-lime-500 to-lime-600 text-gray-900 font-bold py-2 px-6 rounded-lg border-2 border-lime-400 hover:border-white transition-all duration-300 flex items-center justify-center gap-2",onClick:()=>{_o()},disabled:(C==null?void 0:C.show)&&C.type==="success","data-tooltip-id":"add-content-tooltip","data-tooltip-content":u("add-content-tooltip",5),children:[e.jsx("span",{className:"relative z-10 flex items-center gap-2",children:C!=null&&C.show&&C.type==="success"&&C.message==="Saving content..."?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{className:"animate-spin h-4 w-4 text-black",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"SAVING..."]}):e.jsxs(e.Fragment,{children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"SAVE CONTENT"]})}),e.jsx("span",{className:"absolute inset-0 bg-white opacity-0 group-hover:opacity-10 transition-opacity duration-300"})]})})]})]})]})})}),e.jsx(Me,{show:so,onClose:()=>{ve(!1),ie("")},"aria-labelledby":"marketplace-modal-title","aria-describedby":"marketplace-modal-description",children:e.jsx("div",{className:"inline-block w-full h-full max-w-6xl max-h-[90vh] p-1.5 my-8 overflow-hidden text-left align-middle transition-all transform bg-gray-800/80 backdrop-blur-sm border-1 border-white border-opacity-30 rounded-lg shadow-xl touch-manipulation",children:e.jsxs("div",{className:"relative w-full h-full touch-manipulation overflow-y-auto",children:[e.jsx("button",{className:"absolute top-2 right-2 p-1 text-gray-400 hover:text-white transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-lime-400 rounded-full z-10",onClick:()=>{ve(!1),ie("")},onTouchEnd:t=>{t.preventDefault(),ve(!1),ie("")},"aria-label":"Close marketplace modal","data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",3),children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),l.user?e.jsx(La,{auth:l,initialDomains:bt,initialPagination:Ie,initialFilters:gt,onFilterChange:zo,onLoadMore:Fo,isLoading:wt,onPurchase:Ro}):e.jsx("div",{className:"w-full h-full flex items-center justify-center rounded-lg p-6",children:e.jsxs("div",{className:"max-w-md w-full bg-gray-700/80 p-8 rounded-xl shadow-lg border border-gray-600",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx("div",{className:"p-2 rounded-full bg-lime-500/20",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-lime-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"})})}),e.jsx("h3",{id:"marketplace-modal-title",className:"text-2xl font-bold text-lime-400",children:"Marketplace Access"})]}),e.jsxs("div",{id:"marketplace-modal-description",className:"space-y-4",children:[Te&&e.jsxs("div",{className:"p-3 bg-green-900/50 border border-green-600 text-green-100 rounded-lg flex justify-between items-center",children:[e.jsx("span",{children:Te}),e.jsx("button",{onClick:()=>ie(""),className:"text-green-300 hover:text-white",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsx("p",{className:"text-gray-300",children:"Please enter your email to receive a magic link for accessing the marketplace."}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"magic-link-email",className:"block text-sm font-medium text-gray-300 mb-1",children:"Email Address *"}),e.jsx("input",{type:"email",id:"magic-link-email",className:"w-full px-3 py-2 bg-gray-600/50 border border-gray-500 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-lime-500 focus:border-transparent",placeholder:"[email protected]",value:P,onChange:t=>Qe(t.target.value),disabled:(C==null?void 0:C.show)&&C.type==="success",required:!0,"data-tooltip-id":"main-tooltip","data-tooltip-content":u("main-tooltip",3)}),!P&&e.jsx("p",{className:"mt-1 text-sm text-red-400",children:"Email is required"}),P&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P)&&e.jsx("p",{className:"mt-1 text-sm text-red-400",children:"Please enter a valid email address"})]}),e.jsx("div",{className:"pt-2",children:e.jsx("button",{className:"w-full bg-gradient-to-r from-lime-500 to-lime-600 text-gray-900 font-bold py-2 px-4 roun
664ded-lg border-2 border-lime-400 hover:border-white transition-all duration-300 flex items-center justify-center gap-2",onClick:()=>{if(!P){W({show:!0,type:"error",message:"Email is required"});return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P)){W({show:!0,type:"error",message:"Please enter a valid email address"});return}Ao()},disabled:(C==null?void 0:C.show)&&C.type==="success","data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",4),children:e.jsx("span",{className:"flex items-center justify-center gap-2",children:C!=null&&C.show&&C.type==="success"&&C.message==="Sending magic link..."?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{className:"animate-spin h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"SENDING..."]}):e.jsxs(e.Fragment,{children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}),"SEND MAGIC LINK"]})})})})]})]})})]})})}),e.jsx(Me,{show:Ge.show,onClose:()=>ye({show:!1,content:null}),"aria-labelledby":"content-details-title","aria-describedby":"content-details-description",children:e.jsx("div",{className:"inline-block w-full max-w-4xl rounded-lg text-left overflow-hidden transform transition-all max-w-[95vw] touch-manipulation",children:e.jsxs("div",{className:"relative p-6 rounded-2xl bg-gray-800/90 backdrop-blur-sm border border-gray-600 shadow-2xl text-white touch-manipulation",children:[e.jsx("button",{className:"absolute top-3 right-3 p-1 text-gray-400 hover:text-white transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-lime-400 rounded-full",onClick:()=>ye({show:!1,content:null}),onTouchEnd:t=>{t.preventDefault(),ye({show:!1,content:null})},"aria-label":"Close content details modal","data-tooltip-id":"content-tooltip","data-tooltip-content":u("content-tooltip",4),children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{id:"content-details-title",className:"text-xl font-bold text-lime-400",children:"Content Details"}),e.jsx("div",{id:"content-details-description",className:"bg-gray-700/50 p-4 rounded-lg max-h-[70vh] overflow-auto",children:Ge.content?e.jsx("div",{dangerouslySetInnerHTML:{__html:Ge.content}}):e.jsx("p",{className:"text-gray-400",children:"No content available"})}),e.jsx("div",{className:"flex justify-end pt-2",children:e.jsx("button",{className:"px-4 py-2 bg-gray-700 hover:bg-gray-600 text-white rounded-lg border border-gray-600 transition-colors duration-200",onClick:()=>ye({show:!1,content:null}),"data-tooltip-id":"content-tooltip","data-tooltip-content":u("content-tooltip",5),children:"Close"})})]})]})})}),e.jsx(Me,{show:io,onClose:()=>$e(!1),"aria-labelledby":"qr-code-modal-title",children:e.jsx("div",{className:"inline-block w-full max-w-2xl p-1.5 my-8 overflow-hidden text-left align-middle transition-all transform bg-gray-800/80 backdrop-blur-md border-1 border-white border-opacity-30 rounded-lg shadow-xl touch-manipulation",children:e.jsxs("div",{className:"relative touch-manipulation",children:[e.jsx("button",{className:"absolute top-2 right-2 p-1 text-gray-400 hover:text-white transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-lime-400 rounded-full",onClick:()=>$e(!1),onTouchEnd:t=>{t.preventDefault(),$e(!1)},"aria-label":"Close QR code modal","data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",13),children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-2 touch-manipulation",children:[e.jsx("div",{className:"flex items-center justify-center flex-1 p-4 rounded-md min-h-[250px] md:min-
664h-[300px] touch-manipulation",children:ut?e.jsx("img",{src:ut,alt:"QR Code",className:"w-full rounded-lg max-w-[220px] touch-manipulation"}):e.jsx("p",{className:"text-gray-500 touch-manipulation",children:"Generating QR Code..."})}),e.jsx("div",{className:"flex items-center justify-center flex-1 p-4 rounded-md min-h-[250px] md:min-h-[300px] touch-manipulation",children:w?e.jsx("img",{src:w,alt:"QR Code",className:"w-full rounded-lg max-w-[220px] touch-manipulation"}):e.jsx("p",{className:"text-gray-500 touch-manipulation",children:"Generating QR Code..."})})]})]})})}),e.jsxs("main",{className:`relative flex min-h-screen overflow-y-auto touch-manipulation ${(_t=o==null?void 0:o.image.split(".").pop())!=null&&_t.toLowerCase()&&["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(((It=o.image.split(".").pop())==null?void 0:It.toLowerCase())||"")?"blur-bg":""}`,children:[To,e.jsx("div",{className:"absolute inset-0 z-0 touch-manipulation overflow-y-auto template-content-container",children:$o}),e.jsx(ua,{}),Z&&(E?e.jsx(na,{effects:E}):e.jsx(da,{})),e.jsxs("div",{className:`fixed top-[-6px] left-[-71px] w-[176px] ${Z?"bg-red-600":"bg-green-600"} text-white text-[12px] font-bold text-center py-[10px] pb-[5px] shadow-md z-[9999] transform -rotate-45 cursor-pointer touch-manipulation`,onClick:$t,onTouchEnd:t=>{t.preventDefault(),$t()},"data-tooltip-id":"flysign-tooltip","data-tooltip-content":Z?u("flysign-tooltip",0):u("flysign-tooltip",1),"data-tooltip-place":"right",children:[Z?"OFF":"ON"," ",e.jsx("br",{})," Fly-Sign"]}),q==="dressed"&&e.jsx(Yt,{nodeRef:vt,cancel:".non-draggable",children:e.jsx("div",{ref:vt,style:{display:I?"block":"none"},className:"absolute top-[50px] p-5 left-[100px] z-[1001] touch-manipulation","data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",5),children:e.jsxs("div",{className:"flex flex-col items-center touch-manipulation",onClick:ee,onTouchStart:t=>{t.currentTarget.dataset.touchX=String(t.touches[0].clientX),t.currentTarget.dataset.touchY=String(t.touches[0].clientY)},onTouchEnd:t=>{const a=t.changedTouches[0].clientX,s=t.changedTouches[0].clientY,f=parseFloat(t.currentTarget.dataset.touchX||"0"),h=parseFloat(t.currentTarget.dataset.touchY||"0");Math.abs(a-f)<10&&Math.abs(s-h)<10&&(t.preventDefault(),ee())},children:[e.jsx("div",{className:"cursor-pointer touch-manipulation","data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",6),children:e.jsxs("picture",{children:[e.jsx("source",{srcSet:"https://fonts.gstatic.com/s/e/notoemoji/latest/1f440/512.webp",type:"image/webp"}),e.jsx("img",{src:"https://fonts.gstatic.com/s/e/notoemoji/latest/1f440/512.gif",alt:"ð",width:"100",height:"100",className:"emoji-eye cursor-pointer touch-manipulation"})]})}),e.jsx("div",{className:"cursor-pointer mt-2 px-6 py-2 bg-[#3A6A7E] text-[#9EE493] font-bold rounded-full text-lg shadow-lg non-draggable touch-manipulation","data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",6),children:"See More"})]})})}),e.jsx("div",{className:"fixed top-[29px] left-[-38px] w-[163px] bg-black text-white text-[12px] font-bold text-center py-1 shadow-md z-[9999] transform -rotate-45 cursor-pointer touch-manipulation",onClick:()=>{B(t=>{const a=t==="design"?"tile":t==="tile"?"theme":"design";return(a==="design"||a==="tile")&&I&&ee(),a})},onTouchEnd:t=>{t.preventDefault(),B(a=>{const s=a==="design"?"tile":a==="tile"?"theme":"design";return(s==="design"||s==="tile")&&I&&ee(),s})},"data-tooltip-id":"view-mode-tooltip","data-tooltip-content":_==="design"?u("view-mode-tooltip",0):_==="tile"?u("view-mode-tooltip",1):u("view-mode-tooltip",2),"data-tooltip-place":"right",children:_==="design"?"Design View":_==="tile"?"Tile View":"Theme Only"}),q==="dressed"&&_!=="theme"&&e.jsxs("div",{className:"fixed flex items-center justify-center top-[48px] left-[-39px] w-[230px] h-[22px] bg-gray-500/50 text-white text-[12px] font-bold shadow-md z-[9999] transform -rotate-45 cursor-pointer touch-manipulation","data-tooltip-id":"main-tooltip","data-tooltip-content":u("main-tooltip",4),"data-tooltip-place":"right",children:[e.jsx("a",{href:`https://ez.wiki/${x}`,target:"_blank",className:"mr-1",children:x}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"w-3 h-3 text-white hover:text-blue-300 cursor-pointer transition-colors inline-block",onClick:t=>{t.preventDefault(),t.stopPropagation();const a=`https://ez.wiki/${x}`;navigator.clipboard.writeText(a).then(()=>{console.log("URL copied to clipboard")}
664).catch(s=>{console.error("Failed to copy URL: ",s)})},onTouchEnd:t=>{t.preventDefault(),t.stopPropagation();const a=`https://ez.wiki/${x}`;navigator.clipboard.writeText(a).then(()=>{console.log("URL copied to clipboard")}).catch(s=>{console.error("Failed to copy URL: ",s)})},"data-tooltip-id":"main-tooltip","data-tooltip-content":"Copy URL to clipboard","data-tooltip-place":"right",children:e.jsx("path",{fillRule:"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"})})]}),q==="naked"&&_!=="theme"&&e.jsx("div",{className:"fixed top-[48px] left-[-39px] w-[200px] h-[22px] bg-gray-500/50 text-white text-[12px] font-bold shadow-md z-[9999] transform -rotate-45 cursor-pointer touch-manipulation","data-tooltip-id":"theme-tooltip","data-tooltip-content":re?u("theme-tooltip",2):u("theme-tooltip",3),"data-tooltip-place":"right",children:e.jsxs("span",{className:"flex items-center justify-center w-full gap-1 touch-manipulation",children:[e.jsx("a",{href:`https://ez.wiki/${((Pt=i[Y])==null?void 0:Pt.unique_id)||o.unique_id}`,target:"_blank",children:((Dt=i[Y])==null?void 0:Dt.unique_id)||o.unique_id})," EZ$ ",((Bt=i[Y])==null?void 0:Bt.price)||o.price,e.jsx("span",{onClick:Ae,onTouchEnd:t=>{t.preventDefault(),Ae()},className:"cursor-pointer touch-manipulation","data-tooltip-id":"theme-tooltip","data-tooltip-content":re?u("theme-tooltip",4):u("theme-tooltip",5),children:re?"â¤ï¸":"ð¤"}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"w-4 h-4 text-white hover:text-blue-500 cursor-pointer transition-colors touch-manipulation",onClick:()=>{const a=`https://ez.wiki/${(i[Y]||o).unique_id}`;navigator.clipboard.writeText(a).then(()=>{R(!0),setTimeout(()=>R(!1),3e3)}).catch(s=>{console.error("Failed to copy URL: ",s),R(!1)})},onTouchEnd:t=>{t.preventDefault();const s=`https://ez.wiki/${(i[Y]||o).unique_id}`;navigator.clipboard.writeText(s).then(()=>{R(!0),setTimeout(()=>R(!1),3e3)}).catch(f=>{console.error("Failed to copy URL: ",f),R(!1)})},"data-tooltip-id":"theme-tooltip","data-tooltip-content":u("theme-tooltip",6),"data-tooltip-place":"right",children:e.jsx("path",{fillRule:"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"})})]})}),q==="dressed"&&_==="theme"&&e.jsx("div",{className:"fixed top-[48px] left-[-39px] w-[200px] h-[22px] bg-gray-500/50 text-white text-[12px] font-bold shadow-md z-[9999] transform -rotate-45 cursor-pointer touch-manipulation","data-tooltip-id":"theme-tooltip","data-tooltip-content":re?u("theme-tooltip",2):u("theme-tooltip",3),"data-tooltip-place":"right",children:e.jsxs("span",{className:"flex items-center justify-center w-full gap-1 touch-manipulation",children:[e.jsx("a",{href:`https://ez.wiki/${((Ht=i[Y])==null?void 0:Ht.unique_id)||o.unique_id}`,target:"_blank",children:((Ut=i[Y])==null?void 0:Ut.unique_id)||o.unique_id})," EZ$ ",((At=i[Y])==null?void 0:At.price)||o.price,e.jsx("span",{onClick:Ae,onTouchEnd:t=>{t.preventDefault(),Ae()},className:"cursor-pointer touch-manipulation","data-tooltip-id":"theme-tooltip","data-tooltip-content":re?u("theme-tooltip",4):u("theme-tooltip",5),children:re?"â¤ï¸":"ð¤"}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"w-4 h-4 text-white hover:text-blue-500 cursor-pointer transition-colors touch-manipulation",onClick:()=>{const a=`https://ez.wiki/${(i[Y]||o).unique_id}`;navigator.clipboard.writeText(a).then(()=>{R(!0),setTimeout(()=>R(!1),3e3)}).catch(s=>{console.error("Failed to copy URL: ",s),R(!1)})},onTouchEnd:t=>{t.preventDefault();const s=`https://ez.wiki/${(i[Y]||o).unique_id}`;navigator.clipboard.writeText(s).then(()=>{R(!0),setTimeout(()=>R(!1),3e3)}).catch(f=>{console.error("Failed to copy URL: ",f),R(!1)})},"data-tooltip-id":"theme-tooltip","data-tooltip-content":u("theme-tooltip",6),"data-tooltip-place":"right",children:e.jsx("path",{fillRule:"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"})})]})}),!I&&e.jsx(e.Fragment,{children:_!=="theme"&&e.jsx("div",{ref:J,className:`w-full h-screen overflow-y-auto touch-manipulation ${_==="design"?"flex flex-col space-y-8":"flex flex-wrap"}`,onScroll:de,onTouchStart:Po,onTouchMove:Do,onTouchEnd:Bo,children:po.map((t,a)=>e.jsx(oo,{content:t,onEyeClick:Uo,index:a,mode:M,color:N,transparency:m,funnel:x,onResizeStart:Co,onResize:No,onResizeStop:Eo},t.id))})}),q==="dressed"&&e.jsx(Yt,{nodeRef:se,children:e.jsx("div",{ref:se,className:"space-x-4 z-1000 touch-manipulation",style:We,"data-tooltip-id":"main-tooltip","data-tooltip-content":u("main-tooltip",5),children:e.jsxs("div",{className:"flex w-16 flex-col items-center space-y-3 from-sky-300 via-teal-500 to-green-700 py-4 touch-manipulation",children:[e.jsxs("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-slate-800/80 hover:bg-slate-700/90 transition-all duration-300 cursor-pointer touch-manipulation group shadow-xl border border-slate-600/60 backdrop-blur-lg","data-tooltip-id":"view-mode-tooltip","data-tooltip-content":_==="design"?u("view-mode-tooltip",0):_==="tile"?u("view-mode-tooltip",1):u("view-mode-tooltip",2),"data-tooltip-place":"left",children:[e.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-xl bg-gradient-to-br from-blue-500 via-blue-600 to-blue-700 text-white font-bold shadow-lg touch-manipulation transition-all duration-300 group-hover:scale-110 group-hover:shadow-2xl group-hover:from-blue-400 group-hover:to-blue-600",onClick:()=>{B(t=>{const a=t==="design"?"tile":t==="tile"?"theme":"design";return(a==="design"||a==="tile")&&I&&ee(),a})},onTouchEnd:t=>{t.preventDefault(),B(a=>{const s=a==="design"?"tile":a==="tile"?"theme":"design";return(s==="design"||s==="tile")&&I&&ee(),s})},children:e.jsx("span",{className:"text-sm font-bold touch-manipulation drop-shadow-md transition-transform duration-300 group-hover:scale-125",children:_==="design"?"A":_==="tile"?"B":"C"})}),e.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-white/20 via-trans
664parent to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),e.jsx("div",{className:"absolute -inset-1 rounded-2xl bg-gradient-to-br from-blue-500/20 to-purple-500/20 opacity-0 group-hover:opacity-100 blur-sm transition-all duration-500 pointer-events-none"})]}),e.jsxs("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-pink-100/80 hover:bg-pink-200/90 transition-all duration-300 cursor-pointer touch-manipulation group shadow-xl border border-pink-300/60 backdrop-blur-lg",onClick:()=>{xe(!0),ee()},onTouchEnd:t=>{t.preventDefault(),xe(!0),ee()},"data-tooltip-id":"content-tooltip","data-tooltip-content":u("content-tooltip",3),"data-tooltip-place":"left",children:[e.jsx("div",{className:"relative touch-manipulation transition-transform duration-500 ease-out group-hover:scale-110 group-hover:rotate-12 active:scale-95",children:e.jsx("div",{className:"w-7 h-7 touch-manipulation flex items-center justify-center",children:e.jsx("span",{className:"text-xs font-bold bg-gradient-to-r from-pink-500 to-red-600 bg-clip-text text-transparent drop-shadow-lg transition-all duration-300 ease-out group-hover:brightness-125 group-hover:drop-shadow-xl select-none pointer-events-none",children:"Co-WiKi"})})}),e.jsx("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-red-500 rounded-full border-2 border-pink-200 shadow-lg animate-ping"}),e.jsx("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-red-600 rounded-full border-2 border-pink-200"}),e.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-white/40 via-transparent to-white/30 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),e.jsx("div",{className:"absolute -inset-1 rounded-2xl bg-gradient-to-br from-pink-400/50 to-red-500/50 opacity-0 group-hover:opacity-100 blur-sm transition-all duration-500 pointer-events-none"})]}),e.jsxs("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-slate-800/80 hover:bg-slate-700/90 transition-all duration-300 cursor-pointer touch-manipulation group shadow-xl border border-slate-600/60 backdrop-blur-lg",onClick:()=>window.open(So(),"_blank","noopener,noreferrer"),"data-tooltip-id":"main-tooltip","data-tooltip-content":u("main-tooltip",1),"data-tooltip-place":"left",children:[e.jsx("div",{className:"relative touch-manipulation transition-all duration-500 group-hover:scale-110 group-hover:-translate-y-0.5",children:e.jsx("span",{className:"text-2xl touch-manipulation drop-shadow-lg transition-transform duration-300 group-hover:scale-125",children:"ð "})}),e.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-white/20 via-transparent to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),e.jsx("div",{className:"absolute -inset-1 rounded-2xl bg-gradient-to-br from-amber-500/20 to-orange-500/20 opacity-0 group-hover:opacity-100 blur-sm transition-all duration-500 pointer-events-none"})]}),e.jsxs("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-slate-800/80 hover:bg-slate-700/90 transition-all duration-300 cursor-pointer touch-manipulation group shadow-xl border border-slate-600/60 backdrop-blur-lg",onClick:()=>ve(!0),onTouchEnd:t=>{t.preventDefault(),ve(!0)},"data-tooltip-id":"main-tooltip","data-tooltip-content":u("main-tooltip",2),"data-tooltip-place":"left",children:[e.jsx("div",{className:"relative touch-manipulation transition-all duration-500 group-hover:scale-110 group-hover:rotate-6",children:e.jsx("span",{className:"text-2xl touch-manipulation drop-shadow-lg transition-transform duration-300 group-hover:scale-125",children:"ð"})}),e.jsx("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-yellow-400 rounded-full border-2 border-slate-800 shadow-lg animate-pulse"}),e.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-white/20 via-transparent to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),e.jsx("div",{className:"absolute -inset-1 rounded-2xl bg-gradient-to-br from-yellow-500/20 to-amber-500/20 opacity-0 group-hover:opacity-100 blur-sm transition-all duration-500 pointer-events-none"})]}),e.jsxs("div",{className:"relative touch-manipulation",children:[e.jsxs("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-slate-800/80 hover:bg-slate-700/90 transition-all duration-300 cursor-pointer touch-manipulation group shadow-xl border border-slate-600/60 backdrop-blur-lg",onClick:()=>le(!L),onTouchEnd:t=>{t.preventDefault(),le(!L)},"data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",7),"data-tooltip-place":"left",children:[e.jsx("div",{className:"relative touch-manipulation transition-all duration-500 group-hover:scale-110 group-hover:-rotate-45",children:e.jsx("span",{className:"text-xl text-white touch-manipulation drop-shadow-lg transition-all duration-300 group-hover:text-blue-300",children:"ð"})}),e.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-white/20 via-trans
664parent to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),e.jsx("div",{className:"absolute -inset-1 rounded-2xl bg-gradient-to-br from-cyan-500/20 to-blue-500/20 opacity-0 group-hover:opacity-100 blur-sm transition-all duration-500 pointer-events-none"})]}),L&&e.jsx("div",{className:"absolute right-full top-1/2 -translate-y-1/2 mr-3 flex flex-col gap-3 rounded-2xl bg-slate-800/95 backdrop-blur-xl p-3 z-50 touch-manipulation shadow-2xl border border-slate-600/50 animate-in slide-in-from-right-8 duration-300",children:[{icon:Qt,color:"bg-blue-500 hover:bg-blue-400",tooltip:8},{icon:Zt,color:"bg-blue-600 hover:bg-blue-500",tooltip:9},{icon:Xt,color:"bg-blue-700 hover:bg-blue-600",tooltip:10},{icon:Kt,color:"bg-red-600 hover:bg-red-500",tooltip:11},{icon:Gt,color:"bg-purple-600 hover:bg-purple-500",tooltip:12}].map((t,a)=>e.jsx("button",{className:`flex items-center justify-center w-11 h-11 rounded-xl ${t.color} text-white hover:scale-110 transition-all duration-300 shadow-lg touch-manipulation transform hover:rotate-6 hover:shadow-xl`,onClick:()=>{if(t.icon===Gt)$e(!0);else{const s={[Qt]:`https://twitter.com/intent/tweet?url=${encodeURIComponent(window.location.href)}`,[Zt]:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(window.location.href)}`,[Xt]:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(window.location.href)}`,[Kt]:`https://pinterest.com/pin/create/button/?url=${encodeURIComponent(window.location.href)}`};window.open(s[t.icon],"_blank")}le(!1)},onTouchEnd:s=>{s.preventDefault()},"data-tooltip-id":"action-tooltip","data-tooltip-content":u("action-tooltip",t.tooltip),"data-tooltip-place":"left",children:e.jsx(D,{icon:t.icon,className:"text-lg touch-manipulation transition-transform duration-300 hover:scale-125"})},a))})]}),!I&&_!=="theme"&&!tt&&e.jsxs("div",{className:"flex h-20 w-12 flex-col items-center justify-between rounded-2xl bg-slate-800/80 hover:bg-slate-700/90 transition-all duration-300 cursor-pointer touch-manipulation group shadow-xl border border-slate-600/60 backdrop-blur-lg py-2",onMouseLeave:Io,onTouchEnd:at,"data-tooltip-id":"scroll-tooltip","data-tooltip-content":u("scroll-tooltip",0),"data-tooltip-place":"left",children:[e.jsx("span",{className:`text-xl ${yo?"text-blue-400 scale-125":"text-slate-300"} hover:text-blue-300 touch-manipulation transition-all duration-200 drop-shadow-lg transform hover:scale-125`,onMouseDown:()=>Ft("up"),onMouseUp:be,onMouseLeave:be,onClick:t=>{var a;t.preventDefault(),(a=J.current)==null||a.scrollBy({top:-100,behavior:"smooth"})},onTouchStart:()=>Rt("up"),onTouchEnd:at,"data-tooltip-id":"scroll-tooltip","data-tooltip-content":u("scroll-tooltip",1),"data-tooltip-place":"left",children:"â²"}),e.jsx("div",{className:"w-4 h-px bg-gradient-to-r from-transparent via-slate-500 to-transparent rounded-full"}),e.jsx("span",{className:`text-xl ${vo?"text-blue-400 scale-125":"text-slate-300"} hover:text-blue-300 touch-manipulation transition-all duration-200 drop-shadow-lg transform hover:scale-125`,onMouseDown:()=>Ft("down"),onMouseUp:be,onMouseLeave:be,onClick:t=>{var a;t.preventDefault(),(a=J.current)==null||a.scrollBy({top:100,behavior:"smooth"})},onTouchStart:()=>Rt("down"),onTouchEnd:at,"data-tooltip-id":"scroll-tooltip","data-tooltip-content":u("scroll-tooltip",2),"data-tooltip-place":"left",children:"â¼"}),e.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-white/20 via-transparent to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),e.jsx("div",{className:"absolute -inset-1 rounded-2xl bg-gradient-to-br from-cyan-500/20 to-blue-500/20 opacity-0 group-hover:opacity-100 blur-sm transition-all duration-500 pointer-events-none"})]}),e.jsxs("div",{className:"flex h-24 w-12 flex-col items-center justify-center gap-2 rounded-2xl bg-slate-800/80 hover:bg-slate-700/90 transition-all duration-300 cursor-pointer touch-manipulation group shadow-2xl border border-slate-600/60 backdrop-blur-lg",onClick:ee,onTouchEnd:t=>{t.preventDefault(),ee()},"data-tooltip-id":"action-tooltip","data-tooltip-content":I?u("action-tooltip",14):u("action-tooltip",15),"data-tooltip-place":"left",children:[e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-full shadow-lg touch-manipulation transition-all duration-300 group-hover:scale-110 group-hover:shadow-xl bg-gradient-to-br from-green-500 to-emerald-600 animate-pulse",children:e.jsx("span",{className:"text-xs font-bold text-white drop-shadow-md",children:$})}),e.jsxs("div",{className:"relative touch-manipulation transition-all duration-500 group-hover:scale-110 my-1",children:[e.jsxs("picture",{children:[e.jsx("source",{srcSet:"https://fonts.gstatic.
664com/s/e/notoemoji/latest/1f440/512.webp",type:"image/webp"}),e.jsx("img",{src:"https://fonts.gstatic.com/s/e/notoemoji/latest/1f440/512.gif",alt:"ð",width:"32",height:"32",className:"emoji-eye cursor-pointer touch-manipulation drop-shadow-lg filter brightness-110 transition-all duration-300 group-hover:brightness-125",draggable:"false"})]}),e.jsx("div",{className:"absolute inset-0 -m-1 rounded-full border-2 border-green-400/80 animate-ping"}),e.jsx("div",{className:"absolute inset-0 -m-1 rounded-full transition-all duration-500 bg-gradient-to-br from-green-400/30 to-emerald-400/20 animate-pulse"})]}),e.jsx("div",{className:"flex flex-col items-center justify-center mt-0.5 z-10",children:I?e.jsxs("div",{className:"flex flex-col items-center space-y-1",children:[e.jsx("span",{className:"text-[11px] font-black leading-none tracking-tight transition-all duration-300 text-center text-white drop-shadow-md",children:"See More"}),e.jsx("div",{className:"flex items-center space-x-1.5 text-green-400/90 animate-bounce duration-1000",children:e.jsx("span",{className:"text-[10px] transition-transform duration-300 group-hover:translate-x-0.5",children:"â¡ï¸"})})]}):e.jsxs("div",{className:"flex flex-col items-center space-y-1",children:[e.jsx("span",{className:"text-[11px] font-black leading-none tracking-tight transition-all duration-300 text-center text-white drop-shadow-md",children:"See Less"}),e.jsx("div",{className:"flex items-center space-x-1.5 text-slate-400/80 group-hover:text-slate-300/90 transition-colors duration-300",children:e.jsx("span",{className:"text-[10px] transition-transform duration-300 group-hover:-translate-x-0.5",children:"â¬
ï¸"})})]})}),e.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-white/20 via-transparent to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),e.jsx("div",{className:`absolute -inset-1 rounded-2xl pointer-events-none transition-all duration-500 ${I?"bg-gradient-to-br from-green-500/30 to-emerald-500/20 blur-sm opacity-100":"bg-gradient-to-br from-slate-500/10 to-slate-600/5 opacity-0 group-hover:opacity-100 blur-sm"}`})]}),e.jsxs("div",{className:"relative h-20 w-12 rounded-2xl bg-slate-800/80 hover:bg-slate-700/90 transition-all duration-300 cursor-pointer touch-manipulation group shadow-xl border border-slate-600/60 backdrop-blur-lg",onClick:()=>{},onTouchEnd:t=>{t.preventDefault()},"data-tooltip-id":"main-tooltip","data-tooltip-content":u("main-tooltip",6),"data-tooltip-place":"left",children:[e.jsxs("div",{className:"absolute left-1/2 top-2 -translate-x-1/2 flex h-12 w-14 flex-col items-center justify-center rounded-2xl bg-gradient-to-br from-orange-400 via-orange-500 to-orange-600 shadow-xl touch-manipulation transition-all duration-300 group-hover:scale-105 group-hover:shadow-2xl group-hover:from-orange-300 group-hover:to-orange-500",children:[e.jsx("span",{className:"text-xs font-bold leading-tight text-white text-shadow touch-manipulation drop-shadow-md transition-all duration-300 group-hover:scale-105",children:l.user?parseFloat(l.user.bee_points_balance||"0").toFixed(2):P?e.jsx(tr,{email:P}):"0.00"}),e.jsx("span",{className:"text-[10px] font-semibold leading-tight text-white text-shadow touch-manipulation drop-shadow-md mt-0.5 transition-all duration-300 group-hover:scale-105",children:"EZ$"})]}),e.jsx("span",{className:"absolute bottom-2 left-1/2 -translate-x-1/2 text-2xl touch-manipulation drop-shadow-lg transition-all duration-500 group-hover:scale-110 group-hover:rotate-12 group-hover:brightness-125",children:"ð¡"}),e.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-white/20 via-transparent to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),e.jsx("div",{className:"absolute -inset-1 rounded-2xl bg-gradient-to-br from-orange-500/20 to-amber-500/20 opacity-0 group-hover:opacity-100 blur-sm transition-all duration-500 pointer-events-none"})]})]})})})]})]})}export{Gr as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.