PageSourceSearch

https://bbcc.ai/build/assets/oki-DFwb25-J.js

js bbcc.ai collected 2026-10-05 12:13:42 UTC 54,777 bytes, 204 lines download raw bytes

1import{u as ze,r as j,j as e,H as Ie,b as xe}from"./app-DP13319Q.js";import"./model-viewer-BNdxy5m2.js";import{M as O}from"./react-tooltip.min-DW3XhwOj.js";import{F as f,ah as Me,h as oe,f as G,a as K,S as Te,ai as ye,b8 as se,R as fe,m as he,x as Re,Z as Le,Q as Be,T as Pe,U as $e}from"./index-CtyZ6W6U.js";import{f as De}from"./index-Bhyg_rmE.js";import{b as Ue,i as Ae,s as _e,h as He,d as le,l as Ve,q as We,c as Ye,a as qe,e as Ge,f as Oe,u as Xe,o as Ze,g as Ke,j as Je,M as Qe,t as et,k as tt,m as ot,n as st,p as lt,r as rt}from"./markdown-editor-DgLOEOaX.js";/* empty css            */import"./index-WruS1vxz.js";const at=s=>e.jsx("input",{type:"checkbox",...s,"data-state":s.checked?"checked":"unchecked"}),be=s=>e.jsx("label",{...s,children:s.children}),nt=({value:s,onChange:E})=>{let m=null;const $=(R=!1)=>({name:R?"backgroundColor":"color",keyCommand:R?"backgroundColor":"color",buttonProps:{"aria-label":R?"Add background color":"Add text color","data-tooltip-id":"mdeditor-tooltip","data-tooltip-content":R?"Background Color":"Text Color"},icon:e.jsx("div",{className:"flex items-center justify-center w-5 h-5",children:e.jsx(f,{icon:R?Pe:$e,className:"text-current text-sm"})}),execute:(k,t)=>{const r=document.getElementById("color-picker-modal");r&&document.body.removeChild(r),m=document.createElement("div"),m.id="color-picker-modal",m.style.position="fixed",m.style.top="0",m.style.left="0",m.style.width="100%",m.style.height="100%",m.style.backgroundColor="rgba(0, 0, 0, 0.8)",m.style.display="flex",m.style.alignItems="center",m.style.justifyContent="center",m.style.zIndex="10000",m.style.backdropFilter="blur(8px)";const i=document.createElement("div");i.style.backgroundColor="#2d3748",i.style.padding="24px",i.style.borderRadius="16px",i.style.boxShadow="0 25px 50px -12px rgba(0, 0, 0, 0.5)",i.style.width="90%",i.style.maxWidth="420px",i.style.border="1px solid #4a5568";const p=document.createElement("div");p.style.display="flex",p.style.justifyContent="space-between",p.style.alignItems="center",p.style.marginBottom="20px";const o=document.createElement("h3");o.textContent=R?"Choose Background Color":"Choose Text Color",o.style.color="white",o.style.fontSize="18px",o.style.fontWeight="bold",o.style.margin="0";const a=document.createElement("button");a.innerHTML="×",a.style.background="none",a.style.border="none",a.style.color="white",a.style.fontSize="24px",a.style.cursor="pointer",a.style.width="32px",a.style.height="32px",a.style.borderRadius="50%",a.style.display="flex",a.style.alignItems="center",a.style.justifyContent="center",a.style.transition="background-color 0.2s",a.onmouseenter=()=>a.style.backgroundColor="#4a5568",a.onmouseleave=()=>a.style.backgroundColor="transparent",a.onclick=()=>{m&&m.parentNode&&document.body.removeChild(m)},p.appendChild(o),p.appendChild(a);const F=document.createElement("div");F.style.display="grid",F.style.gridTemplateColumns="repeat(6, 1fr)",F.style.gap="8px",F.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(N=>{const g=document.createElement("button");g.style.width="40px",g.style.height="40px",g.style.borderRadius="8px",g.style.border="2px solid #4a5568",g.style.cursor="pointer",g.style.transition="all 0.2s",g.style.backgroundColor=N,g.onmouseenter=()=>{g.style.transform="scale(1.1)",g.style.borderColor="#fff"},g.onmouseleave=()=>{g.style.transform="scale(1)",g.style.borderColor="#4a5568"},g.onclick=()=>{const c=N,H=R?`<span style="background-color: ${c}">${k.selectedText}</span>`:`<span style="color: ${c}">${k.selectedText}</span>`;t.replaceSelection(H),m&&m.parentNode&&document.body.removeChild(m)},F.appendChild(g)});const b=document.createElement("div");b.style.marginBottom="20px";const y=document.createElement("label");y.textContent="Custom Color:",y.style.color="white",y.style.display="block",y.style.marginBottom="8px",y.style.fontSize="14px";const d=document.createElement("input");d.type="color",d.value="#FF0000",d.style.width="60px",d.style.height="60px",d.style.borderRadius="12px",d.style.border="2px s
1olid #4a5568",d.style.cursor="pointer";const n=document.createElement("button");n.textContent="Apply Custom Color",n.style.marginLeft="12px",n.style.padding="12px 16px",n.style.backgroundColor="#4299e1",n.style.color="white",n.style.border="none",n.style.borderRadius="8px",n.style.cursor="pointer",n.style.fontWeight="bold",n.style.transition="background-color 0.2s",n.onmouseenter=()=>n.style.backgroundColor="#3182ce",n.onmouseleave=()=>n.style.backgroundColor="#4299e1",n.onclick=()=>{const N=d.value,g=R?`<span style="background-color: ${N}">${k.selectedText}</span>`:`<span style="color: ${N}">${k.selectedText}</span>`;t.replaceSelection(g),m&&m.parentNode&&document.body.removeChild(m)};const u=document.createElement("div");u.style.display="flex",u.style.alignItems="center",u.appendChild(d),u.appendChild(n),b.appendChild(y),b.appendChild(u),i.appendChild(p),i.appendChild(F),i.appendChild(b),m.appendChild(i),m.onclick=N=>{N.target===m&&m.parentNode&&document.body.removeChild(m)},document.body.appendChild(m)}}),J={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(f,{icon:Be,className:"text-current text-sm"})}),execute:(R,k)=>{const t=document.createElement("div");t.id="table-modal",t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.backgroundColor="rgba(0, 0, 0, 0.8)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.zIndex="10000",t.style.backdropFilter="blur(8px)";const r=document.createElement("div");r.style.backgroundColor="#2d3748",r.style.padding="24px",r.style.borderRadius="16px",r.style.boxShadow="0 25px 50px -12px rgba(0, 0, 0, 0.5)",r.style.width="90%",r.style.maxWidth="500px",r.style.border="1px solid #4a5568";const i=document.createElement("div");i.style.display="flex",i.style.justifyContent="space-between",i.style.alignItems="center",i.style.marginBottom="20px";const p=document.createElement("h3");p.textContent="Create Table",p.style.color="white",p.style.fontSize="18px",p.style.fontWeight="bold",p.style.margin="0";const o=document.createElement("button");o.innerHTML="×",o.style.background="none",o.style.border="none",o.style.color="white",o.style.fontSize="24px",o.style.cursor="pointer",o.style.width="32px",o.style.height="32px",o.style.borderRadius="50%",o.style.display="flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.transition="background-color 0.2s",o.onmouseenter=()=>o.style.backgroundColor="#4a5568",o.onmouseleave=()=>o.style.backgroundColor="transparent",o.onclick=()=>{t.parentNode&&document.body.removeChild(t)},i.appendChild(p),i.appendChild(o);const a=document.createElement("div");a.style.marginBottom="20px";const F=document.createElement("div");F.style.marginBottom="12px";const w=document.createElement("label");w.textContent="Number of Rows:",w.style.color="white",w.style.display="block",w.style.marginBottom="4px";const b=document.createElement("input");b.type="number",b.min="1",b.max="20",b.value="3",b.style.width="100%",b.style.padding="8px",b.style.backgroundColor="#4a5568",b.style.border="1px solid #718096",b.style.borderRadius="4px",b.style.color="white",F.appendChild(w),F.appendChild(b);const y=document.createElement("div");y.style.marginBottom="12px";const d=document.createElement("label");d.textContent="Number of Columns:",d.style.color="white",d.style.display="block",d.style.marginBottom="4px";const n=document.createElement("input");n.type="number",n.min="1",n.max="10",n.value="3",n.style.width="100%",n.style.padding="8px",n.style.backgroundColor="#4a5568",n.style.border="1px solid #718096",n.style.borderRadius="4px",n.style.color="white",y.appendChild(d),y.appendChild(n);const u=document.createElement("div");u.style.marginBottom="12px";const N=document.createElement("input");N.type="checkbox",N.id="includeHeader",N.checked=!0,N.style.marginRight="8px";const g=document.createElement("label");g.htmlFor="includeHeader",g.textContent="Include header row",g.style.color="white",u.appendChild(N),u.appendChild(g),a.appendChild(F),a.appendChild(y),a.appendChild(u);const c=document.createElement("button");c.textContent="Generate Table",c.style.width="100%",c.style.padding="12px",c.style.backgroundColor="#4299e1",c.style.color="white",c.style.border="none",c.style.borderRadius="8px",c.style.cursor="pointer",c.style.fontWeight="bold",c.style.transition="background-color 0.2s",c.onmouseenter=()=>c.style.backgroundColor="#3182ce",c.onmouseleave=()=>c.style.backgroundColor="#4299e1",c.onclick=()=>{const H=parseInt(b.value),W=parseInt(n.value),D=N.checked;let U="";if(D){U+="|";for(let z=0;z<W;z++)U+=` Header ${z+1} |`;U+=`
2|`;for(let z=0;z<W;z++)U+="----------|";U+=`
3`}const ae=D?0:1,Q=D?H:H+1;for(let z=ae;z<Q;z++){U+="|";for(let X=0;X<W;X++)U+=` Cell ${z+1}
3-${X+1} |`;z<Q-1&&(U+=`
4`)}k.replaceSelection(U),t.parentNode&&document.body.removeChild(t)},r.appendChild(i),r.appendChild(a),r.appendChild(c),t.appendChild(r),t.onclick=H=>{H.target===t&&t.parentNode&&document.body.removeChild(t)},document.body.appendChild(t)}},Z={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(f,{icon:fe,className:"text-current text-sm"})}),execute:(R,k)=>{const t=document.createElement("div");t.id="macros-modal",t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.backgroundColor="rgba(0, 0, 0, 0.8)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.zIndex="10000",t.style.backdropFilter="blur(8px)";const r=document.createElement("div");r.style.backgroundColor="#2d3748",r.style.padding="24px",r.style.borderRadius="16px",r.style.boxShadow="0 25px 50px -12px rgba(0, 0, 0, 0.5)",r.style.width="90%",r.style.maxWidth="500px",r.style.border="1px solid #4a5568";const i=document.createElement("div");i.style.display="flex",i.style.justifyContent="space-between",i.style.alignItems="center",i.style.marginBottom="20px";const p=document.createElement("h3");p.textContent="Insert Macros",p.style.color="white",p.style.fontSize="18px",p.style.fontWeight="bold",p.style.margin="0";const o=document.createElement("button");o.innerHTML="×",o.style.background="none",o.style.border="none",o.style.color="white",o.style.fontSize="24px",o.style.cursor="pointer",o.style.width="32px",o.style.height="32px",o.style.borderRadius="50%",o.style.display="flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.transition="background-color 0.2s",o.onmouseenter=()=>o.style.backgroundColor="#4a5568",o.onmouseleave=()=>o.style.backgroundColor="transparent",o.onclick=()=>{t.parentNode&&document.body.removeChild(t)},i.appendChild(p),i.appendChild(o);const a=document.createElement("div");a.style.display="grid",a.style.gridTemplateColumns="1fr",a.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}}"}].forEach(n=>{const u=document.createElement("button");u.style.padding="16px",u.style.backgroundColor="#4a5568",u.style.border="1px solid #718096",u.style.borderRadius="8px",u.style.cursor="pointer",u.style.transition="all 0.2s",u.style.textAlign="left",u.style.color="white",u.onmouseenter=()=>{u.style.backgroundColor="#5a67d8",u.style.borderColor="#5a67d8",u.style.transform="translateY(-2px)"},u.onmouseleave=()=>{u.style.backgroundColor="#4a5568",u.style.borderColor="#718096",u.style.transform="translateY(0)"},u.onclick=()=>{k.replaceSelection(n.code),t.parentNode&&document.body.removeChild(t)};const N=document.createElement("div");N.textContent=n.name,N.style.fontWeight="bold",N.style.marginBottom="4px";const g=document.createElement("div");g.textContent=n.description,g.style.fontSize="12px",g.style.color="#cbd5e0";const c=document.createElement("div");c.textContent=n.code,c.style.fontFamily="monospace",c.style.fontSize="11px",c.style.color="#90cdf4",c.style.marginTop="8px",c.style.padding="4px 8px",c.style.backgroundColor="#2d3748",c.style.borderRadius="4px",u.appendChild(N),u.appendChild(g),u.appendChild(c),a.appendChild(u)});const w=document.createElement("div");w.style.marginTop="20px",w.style.paddingTop="20px",w.style.borderTop="1px solid #4a5568";const b=document.createElement("label");b.textContent="Custom Macro:",b.style.color="white",b.style.display="block",b.style.marginBottom="8px",b.style.fontSize="14px";const y=document.createElement("input");y.type="text",y.placeholder="Enter custom macro code...",y.style.width="100%",y.style.padding="12px",y.style.backgroundColor="#4a5568",y.style.border="1px solid #718096",y.style.borderRadius="8px",y.style.color="white",y.style.marginBottom="12px";const d=document.createElement("button");d.textContent="Insert Custom Macro",d.style.width="100%",d.style.padding="12px",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=()=>{y.value.trim()&&(k.replaceSelection(y.value.trim()),t.parentNode&&document.body.removeChild(t))},w.appendChild(b),w.appendChild(y),w.appendChild(d),r.appendChild(i),r.appendChild(a),r.appendChild(w),t.appendChild(r),t.onclick=n=>{n.target===t&&t.parentNode&&document.body.removeChild(t)},document.body.appendChild(t)}},re=[Ue,Ae,_e,He,Je([et,tt,ot,st,lt,rt],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title","data-tooltip-id":"mdeditor-tooltip","data-tooltip-content":"Headings"}}),le,Ve,We,Ye,qe,Ge,Oe,le,Xe,Ze,Ke,J,Z,le,$(!1),$(!0)];return e.jsxs("div",{className:"enhanced-md-editor",children:[e.jsx(Qe,{value:s,onChange:E,commands:re,height:300}),e.jsx(O,{id:"mdeditor-tooltip"})]})},ge=s=>{try{return new URL(s),!0}catch{return!1}},it=s=>{var m;return(m=s.split("?")[0].split(".").pop())==null?void 0:m.toLowerCase()},dt=s=>s?["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(s):!1;function gt(){var ie,de,ce,me;const{template:s,auth:E}=ze().props,m=j.useRef(null),$=j.useRef(null),[J,Z]=j.useState(!0),[re,R]=j.useState(!0),[k,t]=j.useState(((ie=E.user)==null?void 0:ie.email)||""),[r,i]=j.useState(null),[p,o]=j.useState("text"),[a,F]=j.useState(""),[w,b]=j.useState(null),[y,d]=j.useState(!1),[n,u]=j.useState(!1),[N,g]=j.useState(!1),[c,H]=j.useState(1),[W,D]=j.useState(!1),[U,ae]=j.useState([]),[Q,z]=j.useState(!1),[X,ee]=j.useState(!1),[ne,we]=j.useState({url:"",message:""}),[I,Y]=j.useState("");j.useEffect(()=>{o("link")},[]);const ve=s!=null&&s.image&&dt(it(s.image))?e.jsx("style",{children:`
5            .blur-bg {
6                background: url('${s.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${s.image}') no-repeat center center;
7                background-size: cover;
8            }
9        `}):null,je=j.useCallback(l=>{const x=l.target.files?l.target.files[0]:null;
9x&&(b(x),console.log("File selected:",x.name))},[]),Ce=async()=>{var M,B,P,S,V;D(!0);const l="",x=a.trim()!=="",v=w!==null,L=I.trim()!=="";if(!x&&!v&&!L){i({show:!0,type:"error",message:"Please provide at least one form of content (text/embed, link, or image)."}),D(!1);return}if(!E.user&&!k){i({show:!0,type:"error",message:"Email is required"}),D(!1);return}if(!E.user&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k)){i({show:!0,type:"error",message:"Please enter a valid email address"}),D(!1);return}if(!y){i({show:!0,type:"error",message:"You must agree to the Terms and Conditions and Privacy Policy"}),D(!1);return}i({show:!0,type:"success",message:"Saving content..."});const h=new FormData;if(h.append("reference",l),h.append("email",((M=E.user)==null?void 0:M.email)||k),p==="link"&&L)h.append("url",I),h.append("link",I);else if(x){const C=ge(a.trim());h.append("url",a)}v&&h.append("image",w);try{const C=await xe.post("/funnel-content-oki",h,{headers:{Accept:"application/json"}});if(C.data.success)we({url:C.data.url,message:C.data.message||"Content saved successfully!"}),ee(!0),F(""),b(null),t(""),d(!1),Y(""),i(null);else throw new Error(C.data.message||"Failed to save content")}catch(C){let A="Failed to save content. Please try again.";if(xe.isAxiosError(C)){if(((B=C.response)==null?void 0:B.status)===422&&C.response.data.errors){const _=C.response.data.errors,te=Object.keys(_)[0];A=_[te][0]}else A=((S=(P=C.response)==null?void 0:P.data)==null?void 0:S.message)||A;((V=C.response)==null?void 0:V.status)===401&&(z(!0),A="Please login to save content")}else C instanceof Error&&(A=C.message);i({show:!0,type:"error",message:A})}finally{D(!1),setTimeout(()=>i(null),5e3)}},q=j.useCallback((l,x)=>({0:"Close the Add Content panel",1:"Your email address",2:"I agree to the Terms and Conditions and Privacy Policy",3:"View Terms and Conditions",4:"View Privacy Policy",5:"Save the content"})[x]||`Tooltip for ${l}-${x}`,[]),ke=j.useMemo(()=>{var ue;if(!s)return null;$.current&&(URL.revokeObjectURL($.current),$.current=null);const l=((ue=s.image.split(".").pop())==null?void 0:ue.toLowerCase())||"",v=`${s.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${s.image}`,L=["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"],h=["ppt","pptx","pdf","xls","xlsx","doc","docx","pages","ai","psd","eps","ttf","dxf","xps","rar","zip","ods","odt","odp"],M=/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/i,B=/(?:https?:\/\/)?(?:www\.)?linkedin\.com\/(?:in|posts|company|feed|showcase|embed\/feed\/update\/urn:li:[^/]+:[^"&?/ ]+)/i,P=/^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$/im,S=/^(https?:\/\/)?(www\.)?fb\.watch\/[a-zA-Z0-9(\.\?)?]/,V=/^(https?:\/\/)?(www\.)?facebook\.com\/[a-zA-Z0-9(\.\?)?]/,C=/<iframe.*?src=["'](.*?)["'].*?>.*?<\/iframe>/is,A=/<blockquote/,_=s.image.match(M),te=s.image.match(B),pe=s.image.match(P),Ne=s.image.match(S),Ee=s.image.match(V),Fe=s.image.match(C)||A.test(s.image);if(L.includes(l))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
10                        .blur-overlay {
11                            position: fixed;
12                            top: 0;
13                            left: 0;
14                            width: 100%;
15                            height: 100%;
16                            backdrop-filter: blur(20px);
17                            z-index: -1;
18                        }
19                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("img",{src:v,alt:"Background",className:"absolute inset-0 max-w-full max-h-full m-auto z-0 rounded-lg",onError:T=>console.error("Image failed to load",T)})]});if(h.includes(l))return e.jsx("iframe",{src:`https://docs.google.com/viewer?url=${v}&embedded=true`,className:"fixed top-0 left-0 w-full h-full",frameBorder:"0",loading:"lazy",allow:"autoplay; fullscreen",allowFullScreen:!0,sandbox:"allow-scripts allow-same-origin",title:"Document Viewer",scrolling:"yes"});if(Fe){const T=s.image.replace(/<(iframe|blockquote)([^>]*)\s(height|width|style)=["'][^"']*["']([^>]*)>/gi,'<$1$2$4 class="fixed top-0 left-0 w-full h-full" scrolling="yes">').replace(/class="([^"]*)"/g,'class="$1 absolute inset-0 m-auto"'),Se=/<(iframe|blockquote)[^>
19]*class="/i.test(T)?T:T.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:`
20                        .blur-overlay {
21                            position: fixed;
22                            top: 0;
23                            left: 0;
24                            width: 100%;
25                            height: 100%;
26                            backdrop-filter: blur(20px);
27                            z-index: -2;
28                        }
29                        .twitter-tweet {
30                            position: fixed;
31                            top: 0;
32                            left: 0;
33                            width: 100vw;
34                            height: 100vh;
35                            object-fit: cover;
36                            z-index: 0;
37                            border: none;
38                        }
39                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"fixed top-0 left-0 w-full h-full object-cover",dangerouslySetInnerHTML:{__html:Se}})]})}if(_){const T=s.option==="autoplay"?"autoplay=1":s.option==="mute"?"autoplay=1&mute=1":"mute=1";return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed top-0 left-0 w-full h-full z-[-2]",children:e.jsx("iframe",{loading:"lazy",src:`https://www.youtube.com/embed/${_[1]}?${T}&loop=1&playlist=${_[1]}&controls=0&showinfo=0&modestbranding=1&iv_load_policy=3`,className:"w-full h-full object-cover",frameBorder:"0",allow:"autoplay; fullscreen",allowFullScreen:!0})}),e.jsx("style",{children:`
40                        .blur-overlay {
41                            position: fixed;
42                            top: 0;
43                            left: 0;
44                            width: 100%;
45                            height: 100%;
46                            backdrop-filter: blur(20px);
47                            z-index: -1;
48                        }
49                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{id:"bgVideo",loading:"lazy",className:"fixed top-0 left-0 w-full h-full object-cover",src:`https://www.youtube.com/embed/${_[1]}?${s.option}=1&mute=1&loop=1&playlist=${_[1]}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})]})}if(te){let T=s.image;return T.includes("?compact=1")||(T+=(T.includes("?")?"&":"?")+"compact=1"),e.jsx("div",{className:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black",children:e.jsx("iframe",{id:"bgVideo",src:T,className:"w-full h-full",frameBorder:"0",allowFullScreen:!0,title:"Embedded LinkedIn Post",scrolling:"yes"})})}return pe?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
50                        .blur-overlay {
51                            position: fixed;
52                            top: 0;
53                            left: 0;
54                            width: 100%;
55                            height: 100%;
56                            backdrop-filter: blur(20px);
57                            z-index: -1;
58                        }
59                    `}),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/${pe[3]}?h=33160d1512&color=de0101`,className:"fixed top-0 left-0 w-full h-full object-cover",frameBorder:"0",allowFullScreen:!0})]}):Ne||Ee&&!s.image.includes("groups")?e.jsx("div",{className:"fixed top-0 left-0 w-full h-full",children:e.jsx("div",{className:"fb-post","data-href":s.image,"data-width":"1400","data-show-text":"true"})}):l==="mp4"?e.jsxs(e.Fragment,{children:[e.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"fixed top-0 left-0 w-full h-full object-cover z-[-3]",children:[e.jsx("source",{src:v,type:"video/mp4"}),"Your browser does not support the video tag."]}),e.jsx("style",{children:`
60                        .blur-overlay {
61                            position: fixed;
62                            top: 0;
63                            left: 0;
64                            width: 100%;
65                            height: 100%;
66                            backdrop-filter: blur(20px);
67                            z-index: -2;
68                        }
69                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsxs("video",{id:"bgVideo",autoPlay:!0,loop:!0,muted:!0,playsInl
69ine:!0,className:"absolute inset-0 max-w-full max-h-full m-auto",controls:!0,children:[e.jsx("source",{src:v,type:"video/mp4"}),"Your browser does not support the video tag."]})]}):l==="glb"?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
70                        .blur-overlay {
71                            position: fixed;
72                            top: 0;
73                            left: 0;
74                            width: 100%;
75                            height: 100%;
76                            backdrop-filter: blur(20px);
77                            z-index: -1;
78                        }
79                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("model-viewer",{src:v,alt:"3D model",className:"fixed top-0 left-0 w-full h-full",ar:!0,"auto-rotate":!0,"camera-controls":!0,"shadow-intensity":"1"})]}):ge(s.image)?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
80                        .blur-overlay {
81                            position: fixed;
82                            top: 0;
83                            left: 0;
84                            width: 100%;
85                            height: '100%';
86                            backdrop-filter: blur(20px);
87                            z-index: -1;
88                        }
89                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{loading:"lazy",id:"bgVideo",allow:"camera; microphone; fullscreen; display-capture; autoplay",src:s.image,className:"fixed top-0 left-0 w-full h-full",frameBorder:"0",allowFullScreen:!0,scrolling:"yes"})]}):(m.current=new Blob([s.image],{type:"text/html"}),$.current=URL.createObjectURL(m.current),e.jsx("iframe",{src:$.current,className:"fixed top-0 left-0 w-full h-full border-none",allow:"microphone *; camera *; autoplay *; fullscreen *; display-capture *;",sandbox:`allow-forms allow-modals allow-orientation-lock allow-pointer-lock 
90                        allow-popups allow-popups-to-escape-sandbox allow-presentation 
91                        allow-same-origin allow-scripts allow-top-navigation 
92                        allow-top-navigation-by-user-activation allow-downloads allow-storage-access-by-user-activation`,allowFullScreen:!0,loading:"lazy",name:"binauralMixerFrame",allowTransparency:"true",scrolling:"yes"}))},[s]);return j.useEffect(()=>()=>{$.current&&URL.revokeObjectURL($.current)},[]),e.jsxs(e.Fragment,{children:[e.jsxs(Ie,{children:[e.jsx("title",{children:"EZ.wiki - Template"}),ve,e.jsx("meta",{name:"description",content:"Template background only"}),e.jsx("style",{children:`
93                    /* Minimal styles to keep the template rendering clean */
94                    .react-tooltip {
95                        z-index: 99999 !important;
96                        opacity: 1 !important;
97                        font-size: 12px;
98                        padding: 4px 8px;
99                    }
100                    .input-no-spinner::-webkit-outer-spin-button,
101                    .input-no-spinner::-webkit-inner-spin-button {
102                        -webkit-appearance: none;
103                        margin: 0;
104                    }
105                    .input-no-spinner {
106                        -moz-appearance: textfield;
107                    }
108
109                    /* Template background styles are sufficient */
110
111                    /* ADDED: MDEditor custom styles */
112                    .enhanced-md-editor .w-md-editor {
113                      border: 1px solid #4a5568 !important;
114                      border-radius: 0.75rem !important;
115                      overflow: hidden;
116                    }
117
118                    .enhanced-md-editor .w-md-editor-toolbar {
119                      background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
120                      border-bottom: 1px solid #4a5568 !important;
121                      padding: 12px !important;
122                      border-radius: 0.75rem 0.75rem 0 0 !important;
123                    }
124
125                    .enhanced-md-editor .w-md-editor-toolbar button {
126                      color: #cbd5e0 !important;
127                      border-radius: 0.5rem !important;
128                      margin: 0 2px !important;
129                      padding: 6px 8px !important;
130                      transition: all 0.2s ease !important;
131                    }
132
133                    .enhanced-md-editor .w-md-editor-toolbar button:hover {
134                      background: linear-gradient(135deg, #4a5568 0%, #5a67d8 100%) !important;
135                      color: white !important;
136                      transform: translateY(-1px);
137                      box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
138                    }
139
140                    .enhanced-md-editor .w-md-editor-content {
141                      background-color: #1a202c !important;
142                    }
143
144                    .enhanced-md-editor .w-md-editor-text {
145                      background-color: #1a202c !important;
146                      color: white !important;
147                      font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
148                    }
149
150                    .enhanced-md-editor .w-md-editor-text-pre {
151                      color: white !important;
152                    }
153
154                    .enhanced-md-editor .w-md-editor-preview {
155                      background-color: #1a202c !important;
156                      color: white !important;
157                      border-left: 1px solid #4a5568 !important;
158                    }
159
160                    /* Custom scrollbar for MDEditor */
161                    .enhanced-md-editor ::-webkit-scrollbar {
162                      width: 8px;
163                    }
164
165                    .enhanced-md-editor ::-webkit-scrollbar-track {
166                      background: #2d3748;
167                    }
168
169                    .enhanced-md-editor ::-webkit-scrollbar-thumb {
170                      background: #4a5568;
171                      border-radius: 4px;
172                    }
173
174                    .enhanced-md-editor ::-webkit-scrollbar-thumb:hover {
175                      background: #5a67d8;
176                    }
177
178                    /* Shine animation for buttons */
179                    @keyframes shine {
180                      0% {
181                        transform: translateX(-100%) skewX(-12deg);
182                      }
183                      100% {
184                        transform: translateX(200%) skewX(-12deg);
185                      }
186                    }
187                    .animate-shine {
188                      animation: shine 2s infinite;
189                    }
190
191                    /* Pulse glow animation for active tabs */
192                    @keyframes pulse-glow {
193                      0%, 100% {
194                        box-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
195                      }
196                      50% {
197                        box-shadow: 0 0 20px rgba(34, 197, 94, 0.8), 0 0 30px rgba(34, 197, 94, 0.6);
198                      }
199                    }
200
201                    .animate-pulse {
202                      animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
203                    }
204                `})]}),e.jsxs("main",{className:`relative flex justify-end p-4 min-h-screen overflow-hidden ${(de=s==null?void 0:s.image.split(".").pop())!=null&&de.toLowerCase()&&["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(((ce=s.image.split(".").pop())==null?void 0:ce.toLowerCase())||"")?"blur-bg":""}`,children:[e.jsx("div",{className:"absolute inset-0 z-0",children:ke}),J&&e.jsxs("div",{className:"relative mt-16 mx-auto bg-gradient-to-br from-gray-900/95 to-gray-800/95 bottom-4 z-50 backdrop-blur-xl p-4 rounded-2xl border border-gray-600/50 shadow-2xl w-full max-w-2xl m-2",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("div",{className:"p-2 rounded-xl bg-gradient-to-br from-lime-500/20 to-emerald-500/20 shadow-lg",children:e.jsx(f,{icon:Me,className:"h-5 w-5 text-lime-400"})}),e.jsx("div",{children:e.jsx("h3",{id:"add-content-modal-title",className:"text-xl font-bold bg-gradient-to-r from-lime-400 to-emerald-400 bg-clip-text text-transparent",children:"Agree to community rules and start Oki-WiKi"})})]}),e.jsx("button",{onClick:()=>Z(!1),className:"w-8 h-8 bg-gray-800/80 hover:bg-gray-700/80 rounded-lg flex items-center justify-center transition-all duration-200 hover:scale-110 focus:outline-none focus:ring-2 focus:ring-lime-500 focus:ring-opacity-50","aria-label":"Close panel","data-tooltip-id":"action-tooltip","data-tooltip-content":q("action-tooltip",0),children:e.jsx(f,{icon:oe,className:"text-gray-300 hover:text-white text-base transition-colors"})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"group",children:[e.jsx("label",{htmlFor:"user-email",className:"block text-sm font-semibold text-gray-300 mb-1 group-hover:text-lime-300 transition-colors",children:"Your Email Address *"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"email",id:"user-email",className:"w-full px-3 py-2 bg-gray-800/60 border-2 border-gray-600/50 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:border-lime-500 focus:bg-gray-800/80 transition-all duration-300 focus:ring-2 focus:ring-lime-500/20 text-sm",placeholder:"[email protected]",value:((me=E.user)==null?void 0:me.email)||k,readOnly:!!E.user,onChange:l=>{E.user||t(l.target.value)},disabled:(r==null?void 0:r.show)&&r.type==="success",required:!0,"data-tooltip-id":"add-content-tooltip","data-tooltip-content":q("add-content-tooltip",1)}),e.jsx("div",{className:"absolute right-2 top-1/2 transform -translate-y-1/2",children:!E.user&&k&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k)?e.jsx(f,{icon:G,className:"text-lime-500 text-base"}):!E.user&&k?e.jsx(f,{icon:K,className:"text-amber-500 text-base"}):null})]}),!E.user&&!k&&e.jsxs("p",{className:"mt-1 text-xs text-amber-400 flex items-center gap-1",children:[e.jsx(f,{icon:K,className:"text-xs"}
204),"Email is required to submit content"]}),!E.user&&k&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k)&&e.jsxs("p",{className:"mt-1 text-xs text-red-400 flex items-center gap-1",children:[e.jsx(f,{icon:oe,className:"text-xs"}),"Please enter a valid email address"]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-300",children:"Content Type"}),e.jsx("span",{className:"text-xs text-gray-400 bg-gray-700/50 px-2 py-1 rounded-full",children:p==="link"?"Single Link":p==="text"?"Text & Media":"File Upload"})]}),e.jsxs("div",{className:"flex space-x-1 p-1 bg-gray-800/50 rounded-lg border border-gray-600/30",children:[e.jsxs("button",{onClick:()=>o("text"),className:`flex-1 px-3 py-2 text-xs font-semibold rounded-md transition-all duration-300 focus:outline-none flex items-center justify-center gap-1 relative overflow-hidden ${p==="text"?"bg-gradient-to-r from-lime-500 to-emerald-500 text-gray-900 shadow-lg shadow-lime-500/25":"text-gray-300 hover:bg-gray-700/50 hover:text-white animate-pulse"}`,"data-tooltip-id":"content-tab-tooltip","data-tooltip-content":"Markdown, URLs, Embed Codes, or Plain Text",children:[e.jsx(f,{icon:Te,className:"text-xs"}),"Embed Code or Markdown",p!=="text"&&e.jsx("span",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -skew-x-12 animate-shine"})]}),e.jsxs("button",{onClick:()=>o("link"),className:`flex-1 px-3 py-2 text-xs font-semibold rounded-md transition-all duration-300 focus:outline-none flex items-center justify-center gap-1 relative overflow-hidden ${p==="link"?"bg-gradient-to-r from-lime-500 to-emerald-500 text-gray-900 shadow-lg shadow-lime-500/25":"text-gray-300 hover:bg-gray-700/50 hover:text-white animate-pulse"}`,"data-tooltip-id":"content-tab-tooltip","data-tooltip-content":"Add a single URL or web link",children:[e.jsx(f,{icon:ye,className:"text-xs"}),"Link-in-Bio Embed",p!=="link"&&e.jsx("span",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -skew-x-12 animate-shine"})]}),e.jsxs("button",{onClick:()=>o("image"),className:`flex-1 px-3 py-2 text-xs font-semibold rounded-md transition-all duration-300 focus:outline-none flex items-center justify-center gap-1 relative overflow-hidden ${p==="image"?"bg-gradient-to-r from-lime-500 to-emerald-500 text-gray-900 shadow-lg shadow-lime-500/25":"text-gray-300 hover:bg-gray-700/50 hover:text-white animate-pulse"}`,"data-tooltip-id":"content-tab-tooltip","data-tooltip-content":"Upload Images, PDFs, or Documents",children:[e.jsx(f,{icon:se,className:"text-xs"}),"File Upload",p!=="image"&&e.jsx("span",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -skew-x-12 animate-shine"})]})]}),e.jsxs("div",{className:"pt-1 min-h-[150px] transition-all duration-300",children:[p==="text"&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-400",children:[e.jsx("span",{children:"Supports Markdown, HTML, URLs, and embed codes"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(f,{icon:fe,className:"text-amber-400"}),"Rich Editor"]})]}),e.jsx("div",{"data-color-mode":"dark",className:"rounded-lg overflow-hidden border border-gray-600/50 shadow-lg",children:e.jsx(nt,{value:a||"https://beacons.ai/neal",onChange:l=>F(l||"")})}),a&&e.jsxs("div",{className:"text-xs text-gray-400 flex items-center gap-2",children:[e.jsx(f,{icon:G,className:"text-lime-400"}),a.length," characters • ",a.split(/\s+/).filter(l=>l.length>0).length," words"]})]}),p==="link"&&e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-400",children:[e.jsx("span",{children:"Add a Link-in-Bio URL or create one from popular services"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(f,{icon:ye,className:"text-blue-400"}),I.trim()?"Link added":"No link added"]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("select",{value:I.split("/").slice(0,-1).join("/")+"/",onChange:l=>{const x=l.target.value;if(x){const v=I.split("/").pop()||"";Y(x+v)}else Y("")},className:"w-full px-3 py-2 bg-gray-800/60 border-2 border-gray-600/50 rounded-lg text-white focus:outline-none focus:border-blue-500 focus:bg-gray-800/80 transition-all duration-300 focus:ring-2 focus:ring-blue-500/20 text-sm",children:[e.jsx("option",{value:"",children:"Select a Link-in-Bio Service"}),e.jsx("option",{value:"https://lnk.bio/",children:"lnk.bio"}),e.jsx("option",{value:"https://campsite.bio/",children:"campsite.bio"}),e.jsx("option",{value:"https://bio.site/",children:"bio.site"}),e.jsx("option",{value:"https://hoo.be/",children:"hoo.be"}),e.jsx("option",{value:"https://linktr.ee/",children:"linktr.ee"}),e.jsx("option",{value:"https://portaly.cc/",children:"portaly.cc"}),e.jsx("option",{value:"https://link3.cc/",children:"link3.cc"})]}),e.jsx("input",{type:"text",value:I.split("/").pop()||"",onChange:l=>{const x=l.target.value,v=I.split("/").slice(0,-1).join("/")+"/";Y(v==="/"?"https://linktr.ee/"+x:v+x)},placeholder:"yourhandle",className:"w-full px-3 py-2 bg-gray-800/60 border-2 border-gray-600/50 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:border-blue-500 focus:bg-gray-800/80 transition-all duration-300 focus:ring-2 focus:ring-blue-500/20 text-sm"})]}),I.trim()&&e.jsxs("button",{onClick:()=>{const l=document.createElement("div");l.id="link-preview-modal",l.style.position="fixed",l.style.top="0",l.style.left="0",l.style.width="100%",l.style.height="100%",l.style.backgroundColor="rgba(0, 0, 0, 0.9)",l.style.display="flex",l.style.alignItems="center",l.style.justifyContent="center",l.style.zIndex="10000",l.style.backdropFilter="blur(8px)";const x=document.createElement("div");x.style.backgroundColor="#1a202c",x.style.borderRadius="16px",x.style.boxShadow="0 25px 50px -12px rgba(0, 0, 0, 0.5)",x.style.width="35%",x.style.height="80%",x.style.maxWidth="500px",x.style.minWidth="400px",x.style.border="1px solid #4a5568",x.style.overflow="hidden",x.style.display="flex",x.style.flexDirection="column";const v=document.createElement("div");v.style.display="flex",v.style.justifyContent="space-between",v.style.alignItems="center",v.style.padding="16px 20px",v.style.backgroundColor="#2d3748",v.style.borderBottom="1px solid #4a5568";const L=document.createElement("h3");L.textContent="Link Preview",L.style.color="white",L.style.fontSize="18px",L.style.fontWeight="bold",L.style.margin="0";const h=document.createElement("button");h.innerHTML="×",h.style.background="none",h.style.border="none",h.style.color="white",h.style.fontSize="24px",h.style.cursor="pointer",h.style.width="32px",h.style.height="32px",h.style.borderRadius="50%",h.style.display="flex",h.style.alignItems="center",h.style.justifyContent="center",h.style.transition="background-color 0.2s",h.onmouseenter=()=>h.style.backgroundColor="#4a5568",h.onmouseleave=()=>h.style.backgroundColor="transparent",h.onclick=()=>{l.parentNode&&document.body.removeChild(l)},v.appendChild(L),v.appendChild(h);const M=document.createElement("div");M.style.padding="12px 20px",M.style.backgroundColor="#2d3748",M.style.borderBottom="1px solid #4a5568",M.style.fontSize="14px",M.style.color="#cbd5e0";const B=document.createElement("div");B.textContent=`Previewing: ${I.trim()}`,B.style.fontFamily="monospace",B.style.fontSize="12px",B.style.color="#90cdf4",B.style.wordBreak="break-all",M.appendChild(B);const P=document.createElement("div");P.style.flex="1",P.style.padding="0",P.style.position="relative",P.style.overflow="hidden";const S=document.createElement("iframe");S.src=`/previewlink?url=${encodeURIComponent(I.trim())}`,S.style.width="100%",S.style.height="100%",S.style.border="none",S.style.borderRadius="0 0 16px 16px",S.style.background="white",S.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",S.allowFullscreen=!0,P.appendChild(S),x.appendChild(v),x.appendChild(M),x.appendChild(P),l.appendChild(x),l.onclick=C=>{C.target===l&&l.parentNode&&document.body.removeChild(l)};const V=C=>{C.key==="Escape"&&l.parentNode&&(document.body.removeChild(l),document.removeEventListener("keydown",V)
204)};document.addEventListener("keydown",V),document.body.appendChild(l)},className:"w-full bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white font-semibold py-2 px-4 rounded-lg transition-all duration-300 flex items-center justify-center gap-2 text-sm",children:[e.jsx(f,{icon:he,className:"text-sm"}),"Preview Link"]})]}),I.trim()&&e.jsxs("div",{className:"text-xs text-gray-400 flex items-center gap-2 p-2 bg-gray-800/30 rounded-md",children:[e.jsx(f,{icon:G,className:"text-lime-400"}),"Valid link ready for submission"]})]}),p==="image"&&e.jsx("div",{className:"space-y-3",children:w?e.jsx("div",{className:"relative group bg-gradient-to-br from-gray-800/40 to-gray-700/40 rounded-xl p-3 border-2 border-gray-600/50 hover:border-lime-500/30 transition-all duration-300",children:e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center shadow-lg ${w.type==="application/pdf"?"bg-gradient-to-br from-red-500 to-red-600":"bg-gradient-to-br from-lime-500 to-emerald-500"}`,children:w.type==="application/pdf"?e.jsx(f,{icon:Re,className:"text-white text-base"}):e.jsx(f,{icon:se,className:"text-white text-base"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-white truncate",children:w.name}),e.jsxs("p",{className:"text-xs text-gray-400 flex items-center gap-1 mt-1",children:[e.jsxs("span",{children:[(w.size/1024/1024).toFixed(2)," MB"]}),e.jsx("span",{children:"•"}),e.jsx("span",{className:"capitalize",children:w.type==="application/pdf"?"PDF Document":w.type.split("/")[1]+" Image"})]})]}),e.jsx("button",{onClick:()=>b(null),className:"w-6 h-6 flex items-center justify-center rounded-lg bg-red-500/20 hover:bg-red-500/40 text-red-400 hover:text-red-300 transition-all duration-200 hover:scale-110",children:e.jsx(f,{icon:oe,className:"text-xs"})})]})}):e.jsxs("label",{htmlFor:"dropzone-file",className:"flex flex-col items-center justify-center w-full h-28 border-2 border-dashed border-gray-500/50 rounded-xl cursor-pointer bg-gradient-to-br from-gray-800/30 to-gray-700/30 hover:from-gray-800/50 hover:to-gray-700/50 transition-all duration-300 group hover:border-lime-400/50",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center pt-3 pb-4",children:[e.jsx("div",{className:"p-2 rounded-xl bg-gradient-to-br from-gray-700 to-gray-600 group-hover:from-lime-500/20 group-hover:to-emerald-500/20 transition-all duration-300 mb-2",children:e.jsx(f,{icon:se,className:"h-6 w-6 text-gray-400 group-hover:text-lime-400 transition-colors"})}),e.jsxs("p",{className:"text-xs text-gray-400 group-hover:text-lime-300 transition-colors mb-1",children:[e.jsx("span",{className:"font-semibold",children:"Click to upload"})," or drag and drop"]}),e.jsx("p",{className:"text-xs text-gray-500 group-hover:text-gray-400 transition-colors",children:"SVG, PNG, JPG, GIF, PDF (Max 100MB)"})]}),e.jsx("input",{id:"dropzone-file",type:"file",className:"hidden",accept:"image/*,.pdf",onChange:je})]})})]})]}),e.jsxs("div",{className:"bg-gray-800/30 rounded-xl p-3 border border-gray-600/30",children:[e.jsxs("div",{className:"flex items-start space-x-2",children:[e.jsx("div",{className:"flex-shrink-0 mt-0.5",children:e.jsx(at,{id:"agree_to_terms",name:"agree_to_terms",checked:y,onClick:()=>d(!y),className:"w-4 h-4 border-2 border-gray-500 data-[state=checked]:border-lime-500 data-[state=checked]:bg-lime-500 rounded-md transition-all duration-200 focus:ring-2 focus:ring-lime-500 focus:ring-opacity-50","data-tooltip-id":"add-content-tooltip","data-tooltip-content":q("add-content-tooltip",2)})}),e.jsxs(be,{htmlFor:"agree_to_terms",className:"text-xs leading-relaxed text-gray-300",children:["I agree to the"," ",e.jsx("button",{type:"button",onClick:()=>u(!0),className:"text-lime-400 hover:text-lime-300 underline transition-colors focus:outline-none focus:ring-2 focus:ring-lime-500 focus:ring-opacity-50 rounded px-1",tabIndex:2,"data-tooltip-id":"add-content-tooltip","data-tooltip-content":q("add-content-tooltip",3),children:"Terms and Conditions"})," ","and"," ",e.jsx("button",{type:"button",onClick:()=>g(!0),className:"text-lime-400 hover:text-lime-300 underline transition-colors focus:outline-none focus:ring-2 focus:ring-lime-500 focus:ring-opacity-50 rounded px-1",tabIndex:3,"data-tooltip-id":"add-content-tooltip","data-tooltip-content":q("add-content-tooltip",4),children:"Privacy Policy"}),e.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"By 
204submitting content, you acknowledge that your contribution will be publicly accessible and subject to community moderation."})]})]}),!y&&e.jsxs("p",{className:"mt-2 text-xs text-amber-400 flex items-center gap-1 bg-amber-500/10 border border-amber-500/20 rounded-md px-2 py-1",children:[e.jsx(f,{icon:K,className:"text-xs"}),"You must agree to the Terms and Conditions and Privacy Policy to continue"]})]}),e.jsxs("div",{className:"flex items-center justify-between bg-gray-800/30 rounded-xl p-3 border border-gray-600/30",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("div",{className:"p-1.5 rounded-lg bg-gray-700/50",children:e.jsx(f,{icon:c===0?he:De,className:`text-base ${c===0?"text-green-400":"text-amber-400"}`})}),e.jsxs("div",{children:[e.jsx(be,{className:"text-sm font-semibold text-gray-300",children:"Content Moderation"}),e.jsx("p",{className:"text-xs text-gray-400",children:c===0?"Content reviewed before publishing":"Immediate publishing with post-review"})]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("span",{className:`px-2 py-0.5 rounded-full text-xs font-semibold ${c===1?"bg-green-500/20 text-green-400 border border-green-500/30":"bg-amber-500/20 text-amber-400 border border-amber-500/30"}`,children:c===0?"ON":"OFF"}),e.jsx("div",{className:"w-5 h-5 flex items-center justify-center rounded-full bg-gray-600 hover:bg-gray-500 cursor-help transition-colors text-xs text-white","data-tooltip-id":"moderation-tooltip","data-tooltip-content":c===0?"Your content will be reviewed by moderators before appearing publicly":"Your content will appear immediately and be reviewed afterwards",children:"?"})]})]}),e.jsxs("div",{className:"pt-2",children:[e.jsxs("button",{className:"relative overflow-hidden group w-full bg-gradient-to-r from-lime-500 to-emerald-500 hover:from-lime-600 hover:to-emerald-600 text-gray-900 font-bold py-3 px-6 rounded-xl border-2 border-lime-400 hover:border-white transition-all duration-300 flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:from-lime-500 disabled:hover:to-emerald-500 shadow-lg hover:shadow-xl hover:shadow-lime-500/25 text-sm",onClick:Ce,disabled:W||(r==null?void 0:r.show)&&r.type==="success"||!y,"data-tooltip-id":"add-content-tooltip","data-tooltip-content":q("add-content-tooltip",5),children:[e.jsx("span",{className:"relative z-10 flex items-center gap-2 text-base",children:W?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{className:"animate-spin h-4 w-4 text-gray-900",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(f,{icon:G,className:"text-base"}),"SAVE CONTENT"]})}),e.jsx("span",{className:"absolute inset-0 bg-white opacity-0 group-hover:opacity-10 transition-opacity duration-300"}),e.jsx("span",{className:"absolute inset-0 rounded-xl opacity-0 group-hover:opacity-100 transition-opacity duration-300 bg-gradient-to-r from-transparent via-white/10 to-transparent -skew-x-12 transform group-hover:animate-shine"})]}),(r==null?void 0:r.show)&&e.jsx("div",{className:`mt-3 p-3 rounded-xl border-2 transition-all duration-300 ${r.type==="success"?"bg-green-500/10 border-green-500/30 text-green-400":"bg-red-500/10 border-red-500/30 text-red-400"}`,children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(f,{icon:r.type==="success"?G:K,className:"text-base"}),e.jsx("span",{className:"font-semibold text-sm",children:r.message})]})})]})]})]}),X&&e.jsx("div",{className:"fixed inset-0 bg-black/80 flex items-center justify-center z-50 p-4 backdrop-blur-md",children:e.jsxs("div",{className:"bg-gradient-to-br from-gray-900 to-gray-800 rounded-xl p-6 max-w-sm w-full border border-gray-500/30 shadow-2xl relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-5 bg-[radial-gradient(circle_at_1px_1px,white_1px,transparent_0)] bg-[length:20px_20px]"}),e.jsxs("div",{className:"relative text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-green-500/10 rounded-full flex items-center justify-center mx-auto mb-4 ring-2 ring-green-500/20",children:e.jsx(f,{icon:G,className:"text-green-400 text-2xl"})}),e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:"Success!"}),e.jsxs("div",{className:"bg-gradient-to-r from-lime-500/20 to-emerald-500/20 border border-lime-400/30 rounded-md p-3 mb-4",children:[e.jsxs("p",{className:"text-gray-100 mb-1 text-xs font-medium",children:["Login to our main site at"," ",e.jsx("a",{href:"https://ez.wiki",target:"_blank",rel:"noopener noreferrer",className:"text-lime-300 hover:text-lime-200 font-semibold underline transition-colors duration-200",children:"ez.wiki"})," ","with password"]}),e.jsx("p",{className:"text-lime-300 font-semibold text-xs my-1",children:"- OR -"}),e.jsx("p",{className:"text-gray-100 text-xs font-medium",children:"check email for your magic link"})]}),e.jsxs("div",{className:"bg-gray-800/60 rounded-lg p-3 mb-4 border border-gray-600/40 backdrop-blur-sm",children:[e.jsx("p",{className:"text-xs text-gray-400 mb-2 font-medium",children:"Your funnel is live at:"}),e.jsxs("a",{href:`https://${ne.url}`,target:"_blank",rel:"noopener noreferrer",className:"text-lime-400 hover:text-lime-300 font-semibold break-all text-sm flex items-center justify-center gap-1 transition-colors duration-200 group",children:[ne.url,e.jsx(f,{icon:Le,className:"text-xs transform group-hover:translate-x-0.5 transition-transform duration-200"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("button",{onClick:()=>{var l;ee(!1),F(""),b(null),t(((l=E.user)==null?void 0:l.email)||""),d(!1),Y(""),o("link")},className:"w-full bg-gradient-to-r from-lime-500 to-emerald-500 hover:from-lime-600 hover:to-emerald-600 text-gray-900 font-bold py-2.5 px-4 roun
204ded-lg transition-all duration-300 transform hover:scale-[1.02] active:scale-[0.98] shadow-lg hover:shadow-lime-500/20 text-sm",children:"Add More Content"}),e.jsx("button",{onClick:()=>{ee(!1),Z(!1)},className:"w-full bg-gray-700/80 hover:bg-gray-600/80 text-white font-medium py-2.5 px-4 rounded-lg transition-all duration-300 border border-gray-600/50 hover:border-gray-500/50 text-sm",children:"Close Panel"})]}),e.jsx("p",{className:"text-xs text-gray-500 mt-3",children:"Need help? Contact [email protected]"})]})]})}),e.jsx(O,{id:"action-tooltip"}),e.jsx(O,{id:"add-content-tooltip"}),e.jsx(O,{id:"content-tab-tooltip"}),e.jsx(O,{id:"moderation-tooltip"}),e.jsx(O,{id:"mdeditor-tooltip"})]})]})}export{gt 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.