PageSourceSearch

https://bbcc.ai/build/assets/previewtheme-78QDcSQn.js

js bbcc.ai collected 2026-10-05 12:13:48 UTC 73,202 bytes, 227 lines download raw bytes

1import{u as Qt,r as s,b as $,j as e,H as eo,L as Me}from"./app-DP13319Q.js";import{A as to}from"./app-logo-icon-B_rIw4ab.js";import"./model-viewer-BNdxy5m2.js";import{F as x,a8 as oo,i as so,a as W,f as ue,a2 as io,k as O,h as ao,j as ro,bh as no,bi as lo,bj as co}from"./index-CtyZ6W6U.js";import{c as mo}from"./cjs-G0qneMx2.js";import{l as uo}from"./index.module-D1uRunsO.js";import{E as po,l as ho,u as xo,a as fo,P as go}from"./react-stripe.esm-D6Ettci4.js";import{M as Re}from"./react-tooltip.min-DW3XhwOj.js";import{M as bo}from"./index-WruS1vxz.js";/* empty css            */import"./clsx-B-dksMZM.js";const yo=ho("pk_live_51IyCo8Dpr0bpQPac24tix9UpShzoMw1uWsW3JvzcMrKVFnvUsXAnvBknJSPYucZCYSLT4Z0UVBeKx49jlYakdjIw00coa3YVdn"),V=(i,t,P=0)=>{if(!i||!i[t])return"";try{const y=i[t],A=Array.isArray(y)?y:JSON.parse(y);return A[P]||A[0]||""}catch{return""}},wo=i=>{if(!i)return"";const t=new Date(i);if(isNaN(t.getTime()))return"";const y=Math.floor((new Date().getTime()-t.getTime())/1e3);if(y<5)return"just now";const A=[{label:"year",seconds:31536e3},{label:"month",seconds:2592e3},{label:"day",seconds:86400},{label:"hour",seconds:3600},{label:"minute",seconds:60},{label:"second",seconds:1}];for(const Z of A){const S=Math.floor(y/Z.seconds);if(S>=1)return`${S} ${Z.label}${S!==1?"s":""} ago`}return"just now"},jo=i=>i?[/^#+\s/,/\*\*.+\*\*/,/\*.+\*/,/\[.+\]\(.+\)/,/^- .+/m,/^\d+\. .+/m,/```[\s\S]*```/,/`[^`]+`/,/^> .+/m,/\|.+\|/,/!\[.*\]\(.*\)/,/---|\*\*\*|___/].some(P=>P.test(i)):!1,vo=i=>{if(!i)return!1;const t=i.trim();return t.startsWith("<!DOCTYPE")||t.startsWith("<html")||t.includes("<body")&&t.includes("</html>")||t.includes("<div")&&t.includes("</div>")&&t.length>100},No=i=>{var y;const P=(y=i.split("?")[0].split(".").pop())==null?void 0:y.toLowerCase();return P==="html"||P==="htm"},ko=({price:i,email:t,clientSecret:P,onSuccess:y,onBack:A,onError:Z,tooltips:S})=>{const Y=xo(),E=fo(),[Q,ee]=s.useState(!1),[Ie,T]=s.useState(""),[pe,Oe]=s.useState(!1),Ye=async qe=>{if(qe.preventDefault(),T(""),!Y||!E){T("Payment system not ready. Please try again.");return}ee(!0);try{const{error:K}=await E.submit();if(K){T(K.message||"Payment form validation failed");return}const{error:te,paymentIntent:he}=await Y.confirmPayment({elements:E,confirmParams:{return_url:`${window.location.origin}/payment-success`,receipt_email:t,payment_method_data:{billing_details:{email:t}}},clientSecret:P,redirect:"if_required"});if(te){T(te.message||"Payment failed");return}if(!he){T("Payment processing failed. No payment intent received.");return}switch(he.status){case"succeeded":y();break;case"requires_action":T("Payment requires additional authentication. Please complete the verification.");break;case"processing":T("Payment is processing. Please wait for confirmation.");break;case"requires_payment_method":case"canceled":case"requires_confirmation":default:T(`Payment failed. Status: ${he.status}`)}}catch(K){const te=K instanceof Error?K.message:"Payment processing failed. Please try again.";T(te)}finally{ee(!1)}};return e.jsxs("form",{onSubmit:Ye,children:[Ie&&e.jsxs("div",{className:"mb-4 p-3 bg-red-500/90 text-white rounded-lg flex items-center gap-2","data-tooltip-id":"modal-tooltip","data-tooltip-content":V(S,"modal-tooltip",0),children:[e.jsx(x,{icon:W}),Ie]}),e.jsxs("div",{className:"mt-4 text-sm text-gray-300",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{"data-tooltip-id":"modal-tooltip","data-tooltip-content":V(S,"modal-tooltip",1),children:"Email:"}),e.jsx("span",{className:"text-yellow-400",children:t})]}),e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{"data-tooltip-id":"modal-tooltip","data-tooltip-content":V(S,"modal-tooltip",2),children:"Amount:"}),e.jsxs("span",{className:"text-yellow-400",children:["US$",i.toFixed(2)]})]})]}),e.jsx("div",{className:"mt-6 space-y-4",children:e.jsx(go,{options:{layout:"tabs",fields:{billingDetails:{email:"auto"}}},onReady:()=>Oe(!0)})}),e.jsx("div",{className:"mt-6",children:e.jsx("button",{type:"submit",disabled:Q||!Y||!pe,className:`w-full bg-yellow-400 text-black font-bold py-3 px-4 roun
1ded-full hover:bg-yellow-500 transition-colors ${Q||!Y||!pe?"opacity-70 cursor-not-allowed":""}`,"data-tooltip-id":"modal-tooltip","data-tooltip-content":V(S,"modal-tooltip",3),children:Q?e.jsxs(e.Fragment,{children:[e.jsx(x,{icon:O,className:"animate-spin mr-2"}),"Processing..."]}):`Pay US$${i.toFixed(2)}`})}),e.jsxs("div",{className:"mt-4 text-center",children:[e.jsx("button",{type:"button",onClick:A,className:"text-sm text-yellow-400 hover:underline","data-tooltip-id":"modal-tooltip","data-tooltip-content":V(S,"modal-tooltip",4),children:"Back to email"}),e.jsx("p",{className:"mt-2 text-xs text-gray-500","data-tooltip-id":"modal-tooltip","data-tooltip-content":V(S,"modal-tooltip",5),children:"Payment secured by STRIPE. You'll be redirected after payment."})]})]})},gt=i=>{const t=document.createElement("div");return t.innerHTML=i,t.textContent||t.innerText||""};function Uo(){var mt,ut,pt;const{auth:i,template:t,initialFunnels:P,domains:y,checkDomainUrl:A,checkStandardDomainUrl:Z,tooltips:S}=Qt().props,Y=s.useRef(null);s.useRef(null);const E=s.useRef(null),[Q,ee]=s.useState(!1),[Ie,T]=s.useState([]),[pe,Oe]=s.useState(""),[Ye,qe]=s.useState("fuzzy"),[K,te]=s.useState(1),[he,bt]=s.useState(!0),[D,xe]=s.useState(!1),[fe,d]=s.useState(""),[We,Ve]=s.useState(""),[h,X]=s.useState(!1),[m,ge]=s.useState(!1),[yt,be]=s.useState(!1),[wt,Ue]=s.useState(!1),Ze=s.useRef(null),Ke=s.useRef(null),Xe=s.useRef(null),Ge=s.useRef(null),[j,jt]=s.useState("domain"),[u,oe]=s.useState(""),[w,Le]=s.useState(""),[l,B]=s.useState({checking:!1,available:null,message:""}),[Po,vt]=s.useState({show:!1,price:0,promoPrice:0,couponCode:"",buyingPrice:0}),[Je,G]=s.useState(!1),[Nt,ye]=s.useState(1),[Ae,Qe]=s.useState(""),[kt,et]=s.useState(""),[v,Pt]=s.useState(((mt=i.user)==null?void 0:mt.email)||""),[I,we]=s.useState(""),[q,je]=s.useState(""),[z,De]=s.useState(null),[se,H]=s.useState(!1),[St,tt]=s.useState(!1),[Ct,$t]=s.useState(""),[ie,ae]=s.useState(null),[F,ve]=s.useState(""),[g,M]=s.useState({valid:null,message:"",discount:0}),[re,Be]=s.useState({success:!1,message:"",url:""}),[Ne,ne]=s.useState(!1),[Et,ke]=s.useState(!1),[Pe,ot]=s.useState(!1),[st,U]=s.useState("");uo(pe,500);const[Tt,it]=s.useState(0),[Ft,_t]=s.useState({width:typeof window<"u"?window.innerWidth:1200,height:typeof window<"u"?window.innerHeight:800}),a=s.useCallback((o,r=0)=>V(S,o,r),[S]),c=s.useMemo(()=>{if(!(t!=null&&t.image))return"";const o=wo(t.created_at);return t.image.replace(/{timeago}/g,o)},[t]),le=s.useMemo(()=>(t==null?void 0:t.leftwidth)||0,[t]),ce=s.useMemo(()=>(t==null?void 0:t.rightwidth)||0,[t]);s.useEffect(()=>{const o=()=>{_t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]);const at=Ft.width<=768,He=s.useMemo(()=>at?{marginLeft:"0%",marginRight:"0%",width:"100%"}:{marginLeft:`${le}%`,marginRight:`${ce}%`,width:`calc(100% - ${le}% - ${ce}%)`},[le,ce,at]),rt=async o=>{if(!o||!(t!=null&&t.id))return{isInCollection:!1,isThemeOwner:!1};try{const r=await $.post("/theme/check-collection-by-email",{email:o,theme_id:t.id});return{isInCollection:r.data.isInCollection||!1,isThemeOwner:r.data.is_theme_owner||!1}}catch(r){return console.error("Error checking theme collection by email:",r),{isInCollection:!1,isThemeOwner:!1}}},f=s.useMemo(()=>{const o=m||h||(t==null?void 0:t.price)===0?0:(t==null?void 0:t.price)||0;let n=l.promoPrice>0?Number(l.promoPrice)||0:Number(l.price)||0,p=Number(o);g.valid&&g.domain_discount!==void 0&&g.theme_discount!==void 0&&(n=Number(g.domain_discount),p=m||h||(t==null?void 0:t.price)===0?0:Number(g.theme_discount)),n>0&&n<1&&(n=1);const b=Number(n)+Number(p);return{domainPrice:Number(n),themePrice:Number(p),totalPrice:Number(b)}},[l,g,t==null?void 0:t.price,Tt,h,m]),nt=s.useMemo(()=>m||h||(t==null?void 0:t.price)===0?`Purchase successful! Your new URL: (Theme included for free${m?" - You own this theme":""})`:"Purchase successful! Your new URL: ",[h,m,t==null?void 0:t.price]);s.useEffect(()=>{const o=async()=>{var n;if(v&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v))try{const p=await $.post("/check-user-exists",{email:v},{headers:{"X-CSRF-TOKEN":((n=document.querySelector('meta[name="csrf-token"]'))==null?void 0:n.getAttribute("content"))||""}});De(p.data.exists)}catch(p){console.error("Error checking user existence:",p),De(null)}else De(null)},r=setTimeout(()=>{o()},500);return()=>clearTimeout(r)},[v]),s.useEffect(()=>{it(o=>o+1)},[l.price,l.promoPrice,g.valid,t==null?void 0:t.price,h,m]),s.useEffect(()=>{if(!(i!=null&&i.user)&&v&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)&&(t!=null&&t.id)){const r=setTimeout(async()=>{try{const{isInCollection:n,isThemeOwner:p}=await rt(v);X(n),ge(p),it(b=>b+1)}catch(n){console.error("Error checking theme collection by email:",n)}},1e3);return()=>clearTimeout(r)}},[v,i==null?void 0:i.user,t==null?void 0:t.id]),s.useEffect(()=>{if(i!=null&&i.user&&(t!=null&&t.id)){const o=i.user.id===t.user_id;ge(o),o?X(!0):lt()}},[i==null?void 0:i.user,t==null?void 0:t.id,t==null?void 0:t.user_id]);const Se=(o,r)=>{if(r.current)return;const n=document.createElement("script");n.src=o,n.async=!0,document.body.appendChild(n),r.current=n},Ce=o=>{o.current&&document.body.contains(o.current)&&document.body.removeChild(o.current),o.current=null};s.useEffect(()=>((c.includes("twitter.com")||c.includes("x.com"))&&Se("https://platform.twitter.com/widgets.js",Xe),()=>{Ce(Xe)}),[c]),s.useEffect(()=>(c.includes("reddit.com")&&Se("https://embed.reddit.com/widgets.js",Ge),()=>{Ce(Ge)}),[c]),s.useEffect(()=>((c.includes("facebook.com")||c.includes("fb.watch"))&&Se("https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0",Ke),()=>{Ce(Ke)}),[c]),s.useEffect(()=>(c.includes("tiktok.com")&&Se("https://www.tiktok.com/embed.js",Ze),()=>{Ce(Ze)}),[c]);const lt=async()=>
1{if(!(!(i!=null&&i.user)||!(t!=null&&t.id)))try{const o=await $.get(`/check-theme-collection/${t.id}`);X(o.data.isInCollection);const r=i.user.id===t.user_id;ge(r)}catch(o){console.error("Error checking theme collection:",o)}},zt=async()=>{var o,r,n;if(!(i!=null&&i.user)){U("You must be logged in to purchase themes."),setTimeout(()=>U(""),3e3);return}if(!(t!=null&&t.id)||!(t!=null&&t.price)){U("Theme information is missing."),setTimeout(()=>U(""),3e3);return}if(m){U("You already own this theme!"),setTimeout(()=>U(""),3e3);return}ot(!0),U("");try{const p=await $.post("/theme/purchase",{theme_id:t.id,price:t.price},{headers:{"X-CSRF-TOKEN":((o=document.querySelector('meta[name="csrf-token"]'))==null?void 0:o.getAttribute("content"))||""}});p.data.success?(X(!0),ke(!1),be(!0),setTimeout(()=>be(!1),3e3)):U(p.data.error||"Purchase failed")}catch(p){U(((n=(r=p.response)==null?void 0:r.data)==null?void 0:n.error)||"Failed to purchase theme")}finally{ot(!1)}},ct=async()=>{if(!(i!=null&&i.user)){d("You must be logged in to add themes to your collection."),setTimeout(()=>d(""),3e3);return}if(t!=null&&t.id&&!(m||h))if(t.price>0)ke(!0);else try{await $.post("/add-to-collection",{theme_id:t.id}),X(!0),be(!0),setTimeout(()=>be(!1),3e3)}catch{d("Failed to add to collection."),setTimeout(()=>d(""),3e3)}},dt=()=>{if(!(t!=null&&t.unique_id))return;const o=`https://ez.wiki/${t.unique_id}`;navigator.clipboard.writeText(o).then(()=>{Ue(!0),setTimeout(()=>Ue(!1),3e3)}).catch(r=>{Ue(!1),d("Failed to copy URL."),setTimeout(()=>d(""),3e3)})};s.useEffect(()=>{P&&(T(P.data),bt(P.next_page_url!==null)),y&&y.length>0&&Le(y[0].domain)},[P,y]),s.useEffect(()=>{i!=null&&i.user&&(t!=null&&t.id)&&lt()},[i==null?void 0:i.user,t==null?void 0:t.id]);const Mt=async()=>{if(!F.trim()||!u.trim()){M({valid:!1,message:"Please enter a coupon code and brand name",discount:0,domain_discount:0,theme_discount:0});return}try{M({valid:null,message:"Validating coupon...",discount:0,domain_discount:0,theme_discount:0});const o=m||h||(t==null?void 0:t.price)===0?0:(t==null?void 0:t.price)||0,r=await $.post("/theme/couponcodecustomdomain",{couponcode:F.trim(),domainurl:u.trim(),theme_price:o,theme_id:t==null?void 0:t.id,email:v,type:j});if(r.data.valid){const n=r.data.domain_discount!==void 0?r.data.domain_discount:r.data.original_price,p=r.data.theme_discount!==void 0?r.data.theme_discount:o,b=r.data.offprice,R=gt(r.data.title||"Coupon applied successfully!");M({valid:!0,message:R,discount:Number(b),domain_discount:Number(n),theme_discount:Number(p)})}else{const n=gt(r.data.title||"Invalid coupon code");M({valid:!1,message:n,discount:0,domain_discount:0,theme_discount:0})}}catch{M({valid:!1,message:"Error validating coupon. Please try again.",discount:0,domain_discount:0,theme_discount:0})}};s.useEffect(()=>{if(F.trim()&&u.trim()){const o=setTimeout(()=>{Mt()},800);return()=>clearTimeout(o)}else M({valid:null,message:"",discount:0,domain_discount:0,theme_discount:0})},[F,u,t==null?void 0:t.price,h,m,v]),s.useEffect(()=>{u.trim()||M({valid:null,message:"",discount:0,domain_discount:0,theme_discount:0})},[u]);const Rt=o=>{jt(o),B({checking:!1,available:null,message:""}),ne(!1)},de=async()=>{var r,n;if(!u.trim()||!w){B({checking:!1,available:!1,message:"Please enter a brand name and select a domain"});return}const o=`${u.trim()}-${w}-${j}`;$t(o),xe(!0),B({checking:!0,available:null,message:"Checking availability..."});try{const p=j==="handle"?A:Z,b=await $.post(p,{handle:u.trim(),domain:w});Be({success:!1,message:"",url:""});const R=b.data.price||0,me=b.data.promoPrice||0,_=b.data.charCount||0;B({checking:!1,available:b.data.available,message:b.data.message,price:Number(R),promoPrice:Number(me),charCount:Number(_)})}catch(p){B({checking:!1,available:!1,message:((n=(r=p.response)==null?void 0:r.data)==null?void 0:n.message)||"Error checking availability",price:0,promoPrice:0,charCount:0})}finally{xe(!1)}};s.useEffect(()=>{if(u.trim()&&w){const o=setTimeout(()=>{de()},800);return()=>clearTimeout(o)}},[u,w,j]);const It=async()=>{var $e,Ee,Te,Fe,_e,ze;if(!v){d("Please enter your email address");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)){d("Please enter a valid email address");return}if(z===null){d("Checking user account...");return}if(!i.user&&!z){if(!I){d("Please enter a password");return}if(I.length<8){d("Password must be at least 8 characters long");return}if(!q){d("Please confirm your password");return}if(I!==q){d("Passwords do not match");return}}let o=h,r=m;if(!(i!=null&&i.user)){H(!0);try{const{isInCollection:N,isThemeOwner:C}=await rt(v);o=N,r=C,X(N),ge(C)}catch(N){console.error("Error checking theme collection:",N)}finally{H(!1)}}const n=r||o||(t==null?void 0:t.price)===0?0:(t==null?void 0:t.price)||0;let b=l.promoPrice>0?Number(l.promoPrice)||0:Number(l.price)||0,R=Number(n);g.valid&&g.domain_discount!==void 0&&g.theme_discount!==void 0&&(b=Number(g.domain_discount),R=r||o||(t==null?void 0:t.price)===0?0:Number(g.theme_discount)),b>0&&b<1&&(b=1);const me=Number(b)+Number(R);let _=Number(me);if(_>0&&_<1&&(_=1),_===0){d(""),H(!0);try{const N=await $.post("/theme/free-purchase",{email:v,password:!i.user&&!z?I:void 0,custom_handle:u.trim(),domain:w,type:j,coupon_code:F,template_id:t==null?void 0:t.id},{headers:{"X-CSRF-TOKEN":(($e=document.querySelector('meta[name="csrf-token"]'))==null?void 0:$e.getAttribute("content"))||""}});if(N.data.success){const C=j==="handle"?`https://${w}/${u.trim()}`:`https://${u.trim()}.${w}`;Be({success:!0,message:nt,url:C}),G(!1),ae(null),d(""),setTimeout(()=>{oe(""),B({checking:!1,available:null,message:""}),ve(""),M({valid:null,message:"",discount:0,domain_discount:0,theme_discount:0}),ne(!1),we(""),je("")},5e3)}else d(N.data.error||"Free purchase failed")}catch(N){$.isAxiosError(N)?d(((Te=(Ee=N.response)==null?void 0:Ee.data)==null?void 0:Te.error)||"Failed to process free purchase"):d("Failed to connect to purchase service")}finally{H(!1)}return}if(_<1&&_!==0){d("Minimum payment amount is $1");return}d(""),H(!0);try{const N=j==="handle"?"/theme/initiate-handle-homepayment":"/theme/initiate-domain-homepayment",C=await $.post(N,{price:Number(b),email:v,password:!i.user&&!z?I:void 0,custom_handle:u.trim(),domain:w,promo_price:Number(_),coupon_code:F,selling_price:0,payment_method:"usd",funnelId:0,theme_price:Number(R),template_id:t==null?void 0:t.id},{headers:{"X-CSRF-TOKEN":((Fe=document.querySelector('meta[name="csrf-token"]'))==null?void 0:Fe.getAttribute("content"))||""}});Qe(C.data.clientSecret),et(C.data.payment_intent_id),ye(2)}catch(N){$.isAxiosError(N)?d(((ze=(_e=N.response)==null?void 0:_e.data)==null?void 0:ze.error)||"Failed to initialize payment"):d("Failed to connect to payment service")}finally{H(!1)}},Ut=async()=>{var o,r,n;H(!0),d("");try{const p=j==="handle"?"/theme/home-handle-success":"/theme/home-domain-handle-success",b=await $.post(p,{payment_intent_id:kt,template_id:t==null?void 0:t.id},{headers:{"X-CSRF-TOKEN":((o=document.querySelector('meta[name="csrf-token"]'))==null?void 0:o.getAttribute("content"))||""}});if(b.data.success){const R=j==="handle"?`https://${w}/${u.trim()}`:`https://${u.trim()}.${w}`;Be({success:!0,message:nt,url:R}),G(!1),ae(null),ye(1),Qe(""),et(""),d(""),setTimeout(()=>{oe(""),B({checking:!1,available:null,message:""}),ve(""),M({valid:null,message:"",discount:0,domain_discount:0,theme_discount:0}),ne(!1),we(""),je("")},5e3)}else d(b.data.error||"Payment verification failed")}catch(p){d(((n=(r=p.response)==null?void 0:r.data)==null?void 0:n.error)||"Payment verification failed")}finally{H(!1)}},Lt=()=>{const o=`${u.trim()}-${w}-${j}`;if(!u.trim()||!w||l.available===!1||Ct!==o){d("Please check availability first"),setTimeout(()=>d(""),3e3);return}if(!Ne){d("Please agree to the terms and conditions"),setTimeout(()=>d(""),3e3);return}ae(j),vt({show:!0,price:Number(f.domainPrice),promoPrice:Number(f.totalPrice),couponCode:F,buyingPrice:Number(f.totalPrice)}),G(!0)},At=async()=>{var o,r;xe(!0),tt(!1);try{const n=await $.post("/api/purchase",{brand:u.trim(),domain:w,type:j});Ve(`Success! Your ${j==="handle"?"brand handle":"domain"} has been reserved.`),setTimeout(()=>Ve(""),5e3),oe(""),B({checking:!1,available:null,message:""}),ve(""),M({valid:null,message:"",discount:0,domain_discount:0,theme_discount:0}),ne(!1),we(""),je("")}catch(n){d(((r=(o=n.response)==null?void 0:o.data)==null?void 0:r.message)||"Purchase failed. Please try again."),setTimeout(()=>d(""),5e3)}finally{xe(!1)}},Dt=o=>{try{return new URL(o),!0}catch{return!1}},Bt=o=>{var n;return(n=o.split("?")[0].split(".").pop())==null?void 0:n.toLowerCase()},Ht=o=>o?["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(o):!1,Ot=t!=null&&t.image&&Ht(Bt(c))?e.jsx("style",{children:`
2            .blur-bg {
3                background: url('${t.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${c}') no-repeat center center;
4                background-size: cover;
5            }
6        `}):null,Yt=s.useMemo(()=>{var ft;if(!t)return null;if(jo(c))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
7                        .markdown-container {
8                            position: fixed;
9                            top: 0;
10                            left: 0;
11                            width: 100%;
12                            height: 100%;
13                            background: ${(t==null?void 0:t.bgcolour)||"#000000"};
14                            overflow-y: auto;
15                            z-index: 0;
16                        }
17                        .markdown-content {
18                            margin: 0 auto;
19                            color: white;
20                            font-family: system-ui, -apple-system, sans-serif;
21                        }
22                        .blur-overlay {
23                            position: fixed;
24                            top: 0;
25                            left: 0;
26                            width: 100%;
27                            height: 100%;
28                            backdrop-filter: blur(20px);
29                            z-index: -1;
30                        }
31                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"markdown-container",style:He,children:e.jsx("div",{className:"markdown-content",children:e.jsx(bo,{source:c,style:{backgroundColor:"transparent",color:"white",fontFamily:"system-ui, -apple-system, sans-serif"},wrapperElement:{"data-color-mode":"dark"}})})})]});const o=((ft=c.split(".").pop())==null?void 0:ft.toLowerCase())||"",n=`${t.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${c}`,p=["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"],b=["ppt","pptx","pdf","xls","xlsx","doc","docx","pages","ai","psd","eps","ttf","dxf","xps","rar","zip","ods","odt","odp"];if(["html","htm"].includes(o)||No(c))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
32                        .html-container {
33                            position: fixed;
34                            top: 0;
35                            left: 0;
36                            width: 100%;
37                            height: 100%;
38                            background: ${(t==null?void 0:t.bgcolour)||"#000000"};
39                            z-index: 0;
40                            overflow-y: auto;
41                        }
42                        .html-container iframe {
43                            width: 100%;
44                            height: 100%;
45                            border: none;
46                        }
47                        .blur-overlay {
48                            position: fixed;
49                            top: 0;
50                            left: 0;
51                            width: 100%;
52                            height: 100%;
53                            backdrop-filter: blur(20px);
54                            z-index: -1;
55                        }
56                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"html-container",children:e.jsx("iframe",{src:n,title:"HTML Content",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-modals allow-downloads allow-popups-to-escape-sandbox",loading:"lazy",referrerPolicy:"no-referrer",allow:"accelerometer; autoplay; camera; clipboard-write; encrypted-media; fullscreen; geolocation; gyroscope; microphone; picture-in-picture"})})]});if(vo(c)&&!p.includes(o)&&!b.includes(o)){E.current&&URL.revokeObjectURL(E.current);
56const L=new Blob([c],{type:"text/html; charset=UTF-8"}),J=URL.createObjectURL(L);return E.current=J,e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
57                        .html-container {
58                            position: fixed;
59                            top: 0;
60                            left: 0;
61                            width: 100%;
62                            height: 100%;
63                            background: ${(t==null?void 0:t.bgcolour)||"#000000"};
64                            z-index: 0;
65                        }
66                        .blur-overlay {
67                            position: fixed;
68                            top: 0;
69                            left: 0;
70                            width: 100%;
71                            height: 100%;
72                            backdrop-filter: blur(20px);
73                            z-index: -1;
74                        }
75                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{src:J,className:"fixed top-0 left-0 w-full h-full border-none",style:He,allow:"microphone *; camera *; autoplay *; fullscreen *; display-capture *;",sandbox:`allow-forms allow-modals allow-orientation-lock allow-pointer-lock 
76                                allow-popups allow-popups-to-escape-sandbox allow-presentation 
77                                allow-same-origin allow-scripts allow-top-navigation 
78                                allow-top-navigation-by-user-activation allow-downloads allow-storage-access-by-user-activation`,allowFullScreen:!0,loading:"lazy",title:"HTML Content"})]})}const me=/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/i,_=/(?:https?:\/\/)?(?:www\.)?linkedin\.com\/(?:in|posts|company|feed|showcase|embed\/feed\/update\/urn:li:[^/]+:[^"&?/ ]+)/i,$e=/^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$/im,Ee=/^(https?:\/\/)?(www\.)?fb\.watch\/[a-zA-Z0-9(\.\?)?]/,Te=/^(https?:\/\/)?(www\.)?facebook\.com\/[a-zA-Z0-9(\.\?)?]/,Fe=/tiktok\.com\/@[\w-]+\/video\/\d+/i,_e=/reddit\.com\/r\/[\w-]+\/comments\/[\w-]+\/[\w-]+/i,ze=/<iframe.*?src=["'](.*?)["'].*?>.*?<\/iframe>/is,N=/<blockquote/,C=c.match(me),qt=c.match(_),ht=c.match($e),Wt=c.match(Ee),Vt=c.match(Te),Zt=c.match(Fe),Kt=c.match(_e),Xt=c.match(ze)||N.test(c),k={marginLeft:`${le}%`,marginRight:`${ce}%`};if(Zt)return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
79                        .tiktok-embed {
80                            width: 100%;
81                            max-width: 605px;
82                            height: 100%;
83                            max-height: 800px;
84                        }
85                        .blur-overlay {
86                            position: fixed;
87                            top: 0;
88                            left: 0;
89                            width: 100%;
90                            height: 100%;
91                            backdrop-filter: blur(20px);
92                            z-index: -1;
93                        }
94                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"fixed inset-0 flex items-center justify-center p-4 object-cover",style:k,dangerouslySetInnerHTML:{__html:c}})]});if(Kt)return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
95                        .reddit-embed-container {
96                            width: 100%;
97                            max-width: 800px;
98                            margin: 0 auto;
99                            display: flex;
100                            align-items: center;
101                            justify-content: center;
102                        }
103                    `}),e.jsx("div",{className:"reddit-embed-container",style:k,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:c}})})]});if(p.includes(o))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
104                        .blur-overlay {
105                            position: fixed;
106                            top: 0;
107                            left: 0;
108                            width: 100%;
109                            height: 100%;
110                            backdrop-filter: blur(20px);
111                            z-index: -1;
112                        }
113                    `}),e.jsx("div",{className:"blur-overlay"}
113),e.jsx("img",{src:n,alt:"Background",className:"absolute inset-0 max-w-full max-h-full m-auto z-0 rounded-lg",style:k,onError:()=>{}})]});if(b.includes(o))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
114                        .document-viewer-container {
115                            position: fixed;
116                            top: 0;
117                            left: 0;
118                            width: 100%;
119                            height: 100%;
120                            background-color: #1f1f1f;
121                            z-index: -1;
122                        }
123                    `}),e.jsx("div",{className:"document-viewer-container"}),e.jsx("iframe",{src:`https://docs.google.com/viewer?url=${n}&embedded=true`,className:"fixed top-0 left-0 w-full h-full",style:k,frameBorder:"0",loading:"lazy",allow:"autoplay; fullscreen",allowFullScreen:!0,sandbox:"allow-scripts allow-same-origin",title:"Document Viewer",scrolling:"yes"})]});if(Xt){if(/<(iframe|blockquote)[^>]*(facebook|linkedin|tiktok|twitter|reddit)\.com/i.test(c))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
124                            .blur-overlay {
125                                position: fixed;
126                                top: 0;
127                                left: 0;
128                                width: 100%;
129                                height: 100%;
130                                backdrop-filter: blur(20px);
131                                z-index: -1;
132                            }
133                        `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"max-h-screen overflow-y-auto",style:k,children:e.jsx("div",{className:"inset-0 flex items-center justify-center p-4 overflow-y-auto object-cover",dangerouslySetInnerHTML:{__html:c}})})]});const J=c.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"'),Jt=/<(iframe|blockquote)[^>]*class="/i.test(J)?J:J.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:`
134                        .blur-overlay {
135                            position: fixed;
136                            top: 0;
137                            left: 0;
138                            width: 100%;
139                            height: 100%;
140                            backdrop-filter: blur(20px);
141                            z-index: -2;
142                        }
143                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"max-h-screen overflow-y-auto",style:k,children:e.jsx("div",{className:"inset-0 flex items-center justify-center p-4 object-cover overflow-y-auto",dangerouslySetInnerHTML:{__html:Jt}})})]})}if(C){const L=t.option==="autoplay"?"autoplay=1":t.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]",style:k,children:e.jsx("iframe",{loading:"lazy",src:`https://www.youtube.com/embed/${C[1]}?${L}&loop=1&playlist=${C[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:`
144                        .blur-overlay {
145                            position: fixed;
146                            top: 0;
147                            left: 0;
148                            width: 100%;
149                            height: 100%;
150                            backdrop-filter: blur(20px);
151                            z-index: -1;
152                        }
153                    `}),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",style:k,src:`https://www.youtube.com/embed/${C[1]}?${t.option}=1&mute=1&loop=1&playlist=${C[1]}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
153 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})]})}if(qt){let L=c;return L.includes("?compact=1")||(L+=(L.includes("?")?"&":"?")+"compact=1"),e.jsx("div",{className:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black",style:k,children:e.jsx("iframe",{id:"bgVideo",src:L,className:"w-full h-full",frameBorder:"0",allowFullScreen:!0,title:"Embedded LinkedIn Post",scrolling:"yes"})})}if(ht)return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
154                        .blur-overlay {
155                            position: fixed;
156                            top: 0;
157                            left: 0;
158                            width: 100%;
159                            height: 100%;
160                            backdrop-filter: blur(20px);
161                            z-index: -1;
162                        }
163                    `}),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/${ht[3]}?h=33160d1512&color=de0101`,className:"fixed top-0 left-0 w-full h-full object-cover",style:k,frameBorder:"0",allowFullScreen:!0})]});if(Wt||Vt&&!c.includes("groups"))return e.jsx("div",{className:"fixed top-0 left-0 w-full h-screen flex justify-center items-center overflow-auto",style:k,children:e.jsx("div",{className:"fb-post","data-href":c,"data-show-text":"true"})});if(o==="mp4")return 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]",style:k,children:[e.jsx("source",{src:n,type:"video/mp4"}),"Your browser does not support the video tag."]}),e.jsx("style",{children:`
164                        .blur-overlay {
165                            position: fixed;
166                            top: 0;
167                            left: 0;
168                            width: 100%;
169                            height: 100%;
170                            backdrop-filter: blur(20px);
171                            z-index: -2;
172                        }
173                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsxs("video",{id:"bgVideo",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"absolute inset-0 max-w-full max-h-full m-auto",style:k,controls:!0,children:[e.jsx("source",{src:n,type:"video/mp4"}),"Your browser does not support the video tag."]})]});if(o==="glb")return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
174                        .blur-overlay {
175                            position: fixed;
176                            top: 0;
177                            left: 0;
178                            width: 100%;
179                            height: 100%;
180                            backdrop-filter: blur(20px);
181                            z-index: -1;
182                        }
183                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("model-viewer",{src:n,alt:"3D model",className:"fixed top-0 left-0 w-full h-full",style:k,ar:!0,"auto-rotate":!0,"camera-controls":!0,"shadow-intensity":"1"})]});if(Dt(c))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
184                        .blur-overlay {
185                            position: fixed;
186                            top: 0;
187                            left: 0;
188                            width: 100%;
189                            height: 100%;
190                            backdrop-filter: blur(20px);
191                            z-index: -1;
192                        }
193                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{loading:"lazy",id:"bgVideo",allow:"camera; microphone; fullscreen; display-capture; autoplay",src:c,className:"fixed top-0 left-0 w-full h-full",style:k,frameBorder:"0",allowFullScreen:!0,scrolling:"yes"})]});E.current&&URL.revokeObjectURL(E.current);const Gt=new Blob([c],{type:"text/html; charset=UTF-8"}),xt=URL.createObjectURL(Gt);return E.current=xt,e.jsx("iframe",{src:xt,className:"fixed top-0 left-0 w-full h-full border-none",style:k,allow:"microphone *; camera *; autoplay *; fullscreen *; display-capture *;
193",sandbox:`allow-forms allow-modals allow-orientation-lock allow-pointer-lock 
194                        allow-popups allow-popups-to-escape-sandbox allow-presentation 
195                        allow-same-origin allow-scripts allow-top-navigation 
196                        allow-top-navigation-by-user-activation allow-downloads allow-storage-access-by-user-activation`,allowFullScreen:!0,loading:"lazy",name:"binauralMixerFrame",allowTransparency:"true",scrolling:"yes",title:"HTML Content"})},[t,c,le,ce,He]);return s.useEffect(()=>()=>{E.current&&URL.revokeObjectURL(E.current)},[]),e.jsxs(e.Fragment,{children:[e.jsxs(eo,{children:[e.jsx("title",{children:"EZ HASHTAG - Manage Funnel SEO Tags"}),Ot,e.jsx("meta",{name:"description",content:"Manage your funnel's SEO tags for better visibility"}),e.jsx("style",{children:`
197                    .react-tooltip {
198                        z-index: 99999 !important;
199                        opacity: 1 !important;
200                        font-size: 12px;
201                        padding: 4px 8px;
202                    }
203                    .input-no-spinner::-webkit-outer-spin-button,
204                    .input-no-spinner::-webkit-inner-spin-button {
205                        -webkit-appearance: none;
206                        margin: 0;
207                    }
208                    .input-no-spinner {
209                        -moz-appearance: textfield;
210                    }
211                    /* Add responsive styles for mobile */
212                    @media (max-width: 768px) {
213                        .template-content-container {
214                            margin-left: 0 !important;
215                            margin-right: 0 !important;
216                            width: 100% !important;
217                        }
218                        .template-content-container iframe,
219                        .template-content-container model-viewer,
220                        .template-content-container video,
221                        .template-content-container img {
222                            margin-left: 0 !important;
223                            margin-right: 0 !important;
224                            width: 100% !important;
225                        }
226                    }
227                `})]}),yt&&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!"}),wt&&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."}),e.jsx(Re,{id:"nav-tooltip"}),e.jsx(Re,{id:"action-tooltip"}),e.jsx(Re,{id:"form-tooltip"}),e.jsx(Re,{id:"modal-tooltip"}),e.jsxs("main",{className:`relative flex justify-end p-4 min-h-screen overflow-hidden ${(ut=c.split(".").pop())!=null&&ut.toLowerCase()&&["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(((pt=c.split(".").pop())==null?void 0:pt.toLowerCase())||"")?"blur-bg":""}`,children:[e.jsxs("div",{className:"absolute inset-0 z-0 bg-black",children:[e.jsx(mo,{nodeRef:Y,bounds:"parent",cancel:".no-drag",defaultPosition:{x:window.innerWidth-400,y:0},children:e.jsx("div",{ref:Y,className:"space-x-4 z-10 absolute mt-5 cursor-move touch-none",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(Me,{href:route("home"),className:"flex items-center px-2 py-0 rounded-full bg-[#235A72] no-drag transition-colors duration-300 hover:bg-[#1C4A5E]","data-tooltip-id":"nav-tooltip","data-tooltip-content":a("nav-tooltip",0),children:[e.jsx(to,{className:"size-8 fill-current text-[#8EF587]"}),e.jsx("span",{className:"ml-2 text-[#8EF587]",children:"ez.wiki"})]}),e.jsx("button",{onClick:()=>ee(!0),className:"group no-drag","data-tooltip-id":"nav-tooltip","data-tooltip-content":a("nav-tooltip",1),children:e.jsxs("span",{className:"flex items-center gap-2 bg-orange-500 text-white font-medium py-2 px-4 rounded-full transition-all duration-300 hover:bg-orange-600 cursor-pointer",children:[e.jsx(x,{icon:oo,className:"text-white"}),e.jsx("span",{className:"hidden group-hover:inline",children:"EXPRESS DOMAIN"})]})}),e.jsx(Me,{href:route("marketplace"),className:"group no-drag","data-tooltip-id":"nav-tooltip","data-tooltip-content":a("nav-tooltip",4),children:e.jsxs("span",{className:"flex items-center gap-2 bg-[#235A72] text-[#8EF587] font-medium py-2 px-4 roun
227ded-full transition-all duration-300 hover:bg-[#1C4A5E] cursor-pointer",children:[e.jsx(x,{icon:so,className:"text-[#8EF587]"}),e.jsx("span",{className:"hidden group-hover:inline",children:"MARKETPLACE"})]})})]})})}),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",title:m?"You own this theme":h?"This theme is in your collection":(t==null?void 0:t.price)>0?`Purchase for EZ$ ${t.price}`:"Add this theme to your collection",children:e.jsxs("span",{className:"flex items-center justify-center w-full gap-1 touch-manipulation",children:[t==null?void 0:t.unique_id," EZ$ ",t==null?void 0:t.price,e.jsx("span",{onClick:ct,onTouchEnd:o=>{o.preventDefault(),ct()},className:"cursor-pointer touch-manipulation",title:m?"You own this theme":h?"In your collection":(t==null?void 0:t.price)>0?`Purchase for EZ$ ${t.price}`:"Add to collection","data-tooltip-id":"action-tooltip","data-tooltip-content":m?"You own this theme":h?"In your collection":(t==null?void 0:t.price)>0?`Purchase for EZ$ ${t.price}`:"Add to collection",children:m?"👑":h?"❤️":(t==null?void 0:t.price)>0?"💰":"🤍"}),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:dt,onTouchEnd:o=>{o.preventDefault(),dt()},title:"Copy theme URL",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"})})]})}),e.jsx("div",{className:"absolute inset-0 z-0 template-content-container",style:{backgroundColor:(t==null?void 0:t.bgcolour)||"#000000"},children:Yt})]}),fe&&e.jsxs("div",{className:"fixed top-20 right-4 bg-red-600 text-white px-4 py-2 rounded-md shadow-lg z-50","data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",15),children:[e.jsx(x,{icon:W,className:"mr-2"}),fe]}),We&&e.jsxs("div",{className:"fixed top-20 right-4 bg-green-600 text-white px-4 py-2 rounded-md shadow-lg z-50","data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",16),children:[e.jsx(x,{icon:ue,className:"mr-2"}),We]}),Et&&t&&e.jsx("div",{className:"fixed inset-0 bg-black/70 min-h-screen flex items-center justify-center z-[100] p-4",children:e.jsxs("div",{className:"bg-[#235A72] border border-[#3a7a94] text-white p-8 rounded-lg shadow-lg max-w-md w-full relative",children:[e.jsx("button",{onClick:()=>ke(!1),className:"absolute top-4 right-4 text-white/70 hover:text-white transition-colors",disabled:Pe,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:"text-center mb-6",children:[e.jsx("div",{className:"w-16 h-16 rounded-full backdrop-blur-md flex items-center justify-center overflow-hidden border border-white/20 bg-gradient-to-br from-white/15 to-transparent shadow-lg mx-auto",children:e.jsx(x,{icon:io,className:"text-yellow-400 text-2xl"})}),e.jsx("h2",{className:"text-xl font-bold mt-4 text-white",children:"Purchase Theme"}),e.jsx("p",{className:"text-[#a8d0e6] mt-2",children:"Add this theme to your collection"})]}),e.jsxs("div",{className:"bg-[#2a6b87] p-4 rounded-lg mb-6",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("span",{className:"text-gray-300",children:"Theme ID:"}),e.jsx("span",{className:"font-mono text-white",children:t.unique_id})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-gray-300",children:"Price:"}),e.jsxs("span",{className:"text-yellow-400 font-bold text-lg",children:["EZ$ ",t.price]})]})]}),st&&e.jsxs("div",{className:"mb-4 p-3 bg-red-500/90 text-white rounded-lg flex items-center gap-2",children:[e.jsx(x,{icon:W}),st]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx("button",{onClick:()=>
227ke(!1),className:"flex-1 bg-gray-600 text-white py-3 px-4 rounded-lg hover:bg-gray-500 transition-colors disabled:opacity-70",disabled:Pe,children:"Cancel"}),e.jsx("button",{onClick:zt,disabled:Pe,className:"flex-1 bg-[#FFD700] text-gray-900 font-bold py-3 px-4 rounded-lg hover:bg-[#FFC000] transition-colors disabled:opacity-70 flex items-center justify-center",children:Pe?e.jsxs(e.Fragment,{children:[e.jsx(x,{icon:O,className:"animate-spin mr-2"}),"Processing..."]}):`Pay EZ$ ${t.price}`})]}),e.jsx("div",{className:"mt-4 text-center text-xs text-[#a8d0e6]",children:e.jsx("p",{children:"This theme will be added to your personal collection after payment."})})]})}),Je&&ie&&(()=>{let o=Number(f.totalPrice);return o>0&&o<1&&(o=1),e.jsx("div",{className:"fixed inset-0 bg-black/70 min-h-screen flex items-center justify-center z-[100] p-4 overflow-y-auto",children:e.jsxs("div",{className:"bg-[#235A72] border border-[#3a7a94] text-white p-8 rounded-lg shadow-lg max-w-md w-full relative max-h-[90vh] overflow-y-auto",children:[e.jsx("button",{onClick:()=>{G(!1),ae(null),d("")},className:"absolute top-4 right-4 text-white/70 hover:text-white transition-colors z-10",disabled:se,"data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",6),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-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-14 h-14 rounded-full backdrop-blur-md flex items-center justify-center overflow-hidden border border-white/20 bg-gradient-to-br from-white/15 to-transparent shadow-lg mx-auto","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",7),children:e.jsx("img",{src:"https://ez.wiki/logo.gif",className:"w-10 h-10 rounded-full object-cover",alt:"ez.wiki Logo"})}),e.jsx("h2",{className:"text-xl font-bold mt-4 text-white","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",8),children:ie==="handle"?"Handle Purchase":"Domain Purchase"}),e.jsx("p",{className:"text-[#a8d0e6] mt-2","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",9),children:ie==="handle"?`${w}/${u.trim()}`:`${u.trim()}.${w}`}),e.jsxs("div",{className:"bg-[#2a6b87] p-4 rounded-lg mt-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-2",children:[e.jsx("span",{className:"text-gray-300",children:"Domain Price:"}),e.jsxs("span",{className:"text-yellow-400",children:["US$",Number(f.domainPrice).toFixed(2)]})]}),Number(f.themePrice)>0&&e.jsxs("div",{className:"flex justify-between items-center mb-2",children:[e.jsx("span",{className:"text-gray-300",children:"Theme Price:"}),e.jsxs("span",{className:"text-purple-400",children:["US$",Number(f.themePrice).toFixed(2)]})]}),Number(f.themePrice)===0&&(t==null?void 0:t.price)>0&&e.jsxs("div",{className:"flex justify-between items-center mb-2",children:[e.jsx("span",{className:"text-gray-300",children:"Theme Price:"}),e.jsx("span",{className:`font-semibold ${m?"text-yellow-400":"text-green-400"}`,children:m?"FREE (You own this theme)":"FREE (Already in collection)"})]}),e.jsxs("div",{className:"flex justify-between items-center mb-2 border-t border-gray-600 pt-2",children:[e.jsx("span",{className:"text-gray-300 font-bold",children:"Total:"}),e.jsxs("span",{className:"text-green-400 font-bold",children:["US$",Number(f.totalPrice).toFixed(2)]})]}),g.valid&&e.jsx("div",{className:"mt-2 p-2 bg-green-900/30 rounded text-center",children:e.jsxs("span",{className:"text-green-400 text-sm",children:["Coupon applied: ",g.message]})})]})]}),e.jsxs("div",{className:"bg-[#2a6b87] p-4 rounded-lg",children:[!i.user&&!z&&e.jsx("div",{className:"mb-4",children:e.jsx("h3",{className:"text-lg font-semibold text-white border-b border-gray-600 pb-2","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",31),children:"Create Account"})}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium mb-1","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",11),children:i.user?"Email Address":"Email Address *"}
227),e.jsx("input",{type:"email",value:v,onChange:r=>Pt(r.target.value),placeholder:"Enter your email address",className:"w-full bg-gray-700 text-white py-2 px-4 rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-green-400",required:!0,"data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",12)}),z!==null&&!i.user&&e.jsx("p",{className:`text-xs mt-1 ${z?"text-green-400":"text-yellow-400"}`,children:z?"✓ Account exists - no password needed":"New account - password required"})]}),!i.user&&!z&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium mb-1","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",26),children:"Password *"}),e.jsx("input",{type:"password",value:I,onChange:r=>we(r.target.value),placeholder:"Create your password",className:"w-full bg-gray-700 text-white py-2 px-4 rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-green-400",required:!0,"data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",27)})]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium mb-1","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",28),children:"Confirm Password *"}),e.jsx("input",{type:"password",value:q,onChange:r=>je(r.target.value),placeholder:"Confirm your password",className:"w-full bg-gray-700 text-white py-2 px-4 rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-green-400",required:!0,"data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",29)}),I!==q&&q&&e.jsx("p",{className:"text-red-400 text-xs mt-1","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",30),children:"Passwords do not match"})]})]})]}),e.jsx("button",{onClick:It,disabled:se||!v||!i.user&&!z&&(!I||!q||I!==q),className:"w-full bg-[#FFD700] text-gray-900 font-bold py-3 px-4 rounded-full hover:bg-[#FFC000] transition-colors disabled:opacity-70 disabled:cursor-not-allowed","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",Number(o)===0?13:14),children:se?e.jsxs(e.Fragment,{children:[e.jsx(x,{icon:O,className:"animate-spin mr-2"}),"Processing..."]}):Number(o)===0?`Claim Free ${ie==="handle"?"Handle":"Domain"}${(t==null?void 0:t.price)>0?m?" + Your Theme":" + Free Theme":""}`:`Buy ${ie==="handle"?"Handle":"Domain"}${Number(f.themePrice)>0?" + Theme":""} for US$${Number(o).toFixed(2)}`}),e.jsxs("div",{className:"text-center text-xs text-[#a8d0e6]",children:[e.jsx("p",{"data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",5),children:"Payment secured by STRIPE. You'll be taken to a thank you page after the payment."}),e.jsxs("p",{className:"mt-1",children:[e.jsx(Me,{href:"/terms",className:"hover:underline text-white","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",15),children:"Terms"})," and"," ",e.jsx(Me,{href:"/privacy",className:"hover:underline text-white","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",16),children:"Privacy"}),"."]})]})]})]})})})(),Je&&Nt===2&&(()=>{let o=Number(f.totalPrice);return o>0&&o<1&&(o=1),e.jsx("div",{className:"fixed inset-0 bg-black/70 min-h-screen flex items-center justify-center z-[100] p-4 overflow-y-auto",children:e.jsxs("div",{className:"bg-[#235A72] border border-[#3a7a94] text-white p-8 rounded-lg shadow-lg max-w-sm w-full relative max-h-[90vh] overflow-y-auto",children:[e.jsx("button",{onClick:()=>{G(!1),ye(1),d("")},className:"sticky top-0 right-0 ml-auto text-white/70 hover:text-white transition-colors z-10",disabled:se,"data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",17),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-6",children:[fe&&e.jsxs("div",{className:"bg-red-500/90 text-white p-3 rounded-lg flex items-center gap-2","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",18),children:[e.jsx(x,{icon:W}),fe]}),se&&e.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center rounded-lg","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",19),children:e.jsx(x,{icon:O,className:"animate-spin text-4xl text-white"})}),e.jsx(po,{stripe:yo,options:{clientSecret:Ae,appearance:{theme:"night",variables:{colorPrimary:"#FFD700",colorBackgroun
227d:"#235A72",colorText:"white",colorDanger:"#ff6b6b",fontFamily:"Inter, system-ui, sans-serif"}}},children:Ae?e.jsx(ko,{price:Number(o),email:v,clientSecret:Ae,onSuccess:Ut,onBack:()=>ye(1),onError:d,tooltips:S}):e.jsx("div",{className:"flex items-center justify-center py-8","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",20),children:e.jsx(x,{icon:O,className:"animate-spin text-2xl"})})})]})]})})})(),St&&e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-[1000]",children:e.jsxs("div",{className:"bg-gray-800 rounded-xl p-6 max-w-md w-full mx-4 border border-green-400",children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-4","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",21),children:"Confirm Purchase"}),e.jsxs("p",{className:"text-gray-300 mb-2",children:["You're about to purchase:",e.jsx("span",{className:"text-green-400 font-medium ml-1","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",22),children:j==="handle"?`@${u.trim()}.${w}`:`${u.trim()}.${w}`})]}),e.jsx("p",{className:"text-gray-400 text-sm mb-6","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",23),children:"This action cannot be undone. Please confirm to proceed."}),e.jsxs("div",{className:"flex justify-end gap-3",children:[e.jsx("button",{onClick:()=>tt(!1),className:"px-4 py-2 bg-gray-600 text-white rounded-lg hover:bg-gray-500 transition-colors",disabled:D,"data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",24),children:"Cancel"}),e.jsxs("button",{onClick:At,className:"px-4 py-2 bg-green-500 text-white rounded-lg hover:bg-green-600 transition-colors flex items-center",disabled:D,"data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",25),children:[D&&e.jsx(x,{icon:O,className:"animate-spin mr-2"}),"Confirm Purchase"]})]})]})}),Q&&e.jsxs("div",{className:`relative mx-auto bottom-4 z-50 backdrop-blur-sm p-4 rounded-xl border border-white-700 overflow-y-auto shadow-2xl w-full max-w-4xl ${i.user?"mt-4":"mt-17"}`,children:[e.jsx("button",{onClick:()=>ee(!1),className:"absolute top-2 right-2 w-8 h-8 bg-black rounded-full flex items-center justify-center z-50 hover:bg-gray-800 transition-colors focus:outline-none focus:ring-2 focus:ring-white","aria-label":"Close panel","data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",18),children:e.jsx(x,{icon:ao,className:"text-white text-lg",style:{textShadow:"0.7px 0.7px 0 rgb(255,0,0), -0.7px -0.7px 0 rgb(0,255,255)"}})}),e.jsxs("div",{className:"bg-gray-800/80 border border-gray-700 rounded-lg p-4 space-y-4",children:[e.jsxs("div",{className:"bg-gray-800/80 backdrop-blur-sm rounded-3xl shadow-xl p-8 md:p-10 border border-gray-700",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("h3",{className:"text-2xl font-bold text-white mb-4","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",0),children:"Get Started with Your Web3 Presence"}),e.jsx("p",{className:"text-gray-300","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",1),children:"Choose your preferred option below"})]}),e.jsx("div",{className:"flex justify-center items-center gap-4 mb-10",children:e.jsxs("button",{onClick:()=>Rt("domain"),className:`flex items-center justify-center py-3 px-8 rounded-xl shadow-md font-bold transition-all ${j==="domain"?"bg-green-500 text-white border-2 border-green-400":"bg-gray-700 text-gray-300 border-2 border-gray-600 hover:bg-gray-600"}`,"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",2),children:[e.jsx(x,{icon:ro,className:"mr-2"})," Brand Domain"]})}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-4 max-w-2xl mx-auto mb-8",children:[j==="handle"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"relative w-full md:w-2/5",children:[e.jsx("select",{className:"w-full bg-gray-700 text-white py-4 px-6 pr-10 rounded-xl border border-gray-600 focus:outline-none focus:ring-2 focus:ring-green-400 focus:border-transparent appearance-none",value:w,onChange:o=>Le(o.target.value),"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",3),children:y==null?void 0:y.map(o=>e.jsxs("option",{value:o.domain,children:["https://",o.domain]},o.id))}),e.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 text-gray-400",children:e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})})]}),e.jsxs("div",{className:"relative w-full md:w-2/5",children:[e.jsx("input",{type:"text",placeholder:"Enter your brand handle",className:"w-full bg-gray-700 border border-gray-600 text-white py-4 px-6 rounded-xl focus:outline-none focus:ring-2 focus:ring-green-400",value:u,onChange:o=>oe(o.target.value),onKeyPress:o=>{o.key==="Enter"&&de()},"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",4)}),u&&e.jsx("button",{onClick:de,disabled:D||l.checking,className:`absolute right-2 top-1/2 transform -translate-y-1/2 text-white p-2 rounded-lg transition-colors disabled:opacity-50 ${l.available===!1?"bg-red-500 hover:bg-red-600":"bg-green-500 hover:bg-green-600"}`,"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",5),children:l.checking?e.jsx(x,{icon:O,className:"animate-spin"}):l.available?e.jsx(x,{icon:ue}):l.available===!1?e.jsx(x,{icon:W}):"Check"})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"relative w-full md:w-2/5",children:e.jsx("input",{type:"text",placeholder:"Enter your brand domain",className:"w-full bg-gray-700 border border-gray-600 text-white py-4 px-6 rounded-xl focus:outline-none focus:ring-2 focus:ring-green-400",value:u,onChange:o=>oe(o.target.value),onKeyPress:o=>{o.key==="Enter"&&de()},"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",6)})}),e.jsxs("div",{className:"relative w-full md:w-2/5",children:[e.jsx("select",{className:"w-full bg-gray-700 text-white py-4 px-6 pr-10 rounded-xl border border-gray-600 focus:outline-none focus:ring-2 focus:ring-green-400 focus:border-transparent appearance-none",value:w,onChange:o=>Le(o.target.value),"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",8),children:y==null?void 0:y.map(o=>e.jsxs("option",{value:o.domain,children:[".",o.domain]},o.id))}),e.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 text-gray-400",children:e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})})]})]}),e.jsxs("button",{onClick:de,className:`w-full md:w-1/5 text-white font-bold py-4 px-6 rounded-xl shadow-md flex items-center justify-center transition-all ${l.checking?"bg-gray-600 text-gray-300":l.available!==null?l.available?"bg-green-600 text-white":"bg-red-600 text-white":"bg-green-600 text-white"}`,disabled:D||!u||l.checking,"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",9),children:[e.jsx("span",{children:l.checking?"Checking...":l.available!==null?l.available?"Available":"Unavailable":"Check"}),!l.checking&&l.available!==null&&e.jsx(x,{icon:l.available?ue:W,className:"ml-2"})]})]}),re.success&&e.jsxs("div",{className:"mb-6 p-4 bg-green-900/30 border border-green-500/50 rounded-xl backdrop-blur-sm",children:[e.jsxs("div",{className:"flex items-center justify-center gap-3 text-green-400 mb-2","data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",24),children:[e.jsx(x,{icon:ue,className:"text-2xl"}),e.jsx("span",{className:"text-lg font-semibold",children:"Purchase Successful!"})]}),e.jsxs("div",{className:"text-center text-white mb-3","data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",25),children:[re.message,e.jsx("a",{href:re.url,target:"_blank",rel:"noopener noreferrer",className:"text-yellow-400 hover:underline font-medium ml-1","data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",26),children:re.url})]})]}),!re.success&&l.message&&e.jsxs("div",{className:`text-center mb-4 transition-all duration-300 ${l.checking?"opacity-70":"opacity-100"}`,children:[e.jsx("div",{className:`flex items-center justify-center gap-2 text-sm font-medium mb-2 ${l.available?"text-green-400":l.available===!1?"text-red-400":"text-yellow-400"}`,"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",10),children:l.checking?e.jsxs(e.Fragment,{children:[e.jsx(x,{icon:O,className:"animate-spin"}),"Checking availability..."]}):e.jsxs(e.Fragment,{children:[l.available?e.jsx(x,{icon:ue,className:"text-green-400"}):e.jsx(x,{icon:W,className:"text-red-400"}),l.message]})}),l.available&&l.price!==void 0&&e.jsxs("div",{className:"mt-6 bg-gray-900/50 p-4 rounded-lg border border-gray-700",children:[(t==null?void 0:t.price)>0&&e.jsxs("div",{className:`mb-4 p-3 rounded-lg border ${m||h||(t==null?void 0:t.price)===0?"bg-green-900/30 border-green-500/50":"bg-purple-900/30 border-purple-500/50"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-gray-300",children:"Theme Price:"}),e.jsx("span",{className:`font-semibold ${m||h||(t==null?void 0:t.price)===0?"text-green-400":"text-yellow-400"}`,children:m?"FREE (You own this theme)":h||(t==null?void 0:t.price)===0?"FREE (Already in collection)":`EZ$ ${t==null?void 0:t.price} (US$${Number(f.themePrice).toFixed(2)})`})]}),e.jsxs("div",{className:"text-xs text-gray-400 mt-1",children:["This theme will be included with your domain purchase",g.valid&&!m&&!h&&(t==null?void 0:t.price)>0&&e.jsxs("span",{className:"text-green-400 ml-1",children:["• Discount applied: US$",(Number(t.price)-Number(f.themePrice)).toFixed(2)," off!"]}),m&&e.jsx("span",{className:"text-green-400 ml-1",children:"• You created this theme - no charge!"}),h&&!m&&e.jsx("span",{className:"text-green-400 ml-1",children:"• Theme already in your collection - no additional charge!"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-2 text-sm",children:[e.jsx("div",{className:"bg-[#1f2937] p-2 rounded-md border border-gray-700 flex items-center justify-center","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",11),children:e.jsxs("p",{className:"text-white font-mono",children:[e.jsx("span",{className:"text-green-400",children:u.trim()}),".",w]})}),e.jsxs("div",{className:"bg-[#1f2937] p-2 rounded-md border border-gray-700 flex items-center justify-center gap-4","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",12),children:[e.jsxs("span",{className:"text-gray-300",children:[l.charCount," letters"]}),e.jsxs("span",{className:"text-yellow-400 font-semibold",children:["US$",Number(f.domainPrice).toFixed(2),g.valid&&Number(f.domainPrice)<(Number(l.promoPrice)||Number(l.price))&&e.jsx("span",{className:"text-green-400 text-xs ml-1",children:"↓"})]})]}),e.jsx("div",{className:"bg-[#1f2937] p-2 rounded-md border border-gray-700 flex items-center justify-center","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",13),children:e.jsx("p",{className:"text-yellow-400 font-mono",children:F?`coupon: ${F}`:"no coupon"})})]}),g.valid&&e.jsxs("div",{className:"mt-4 space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-center text-sm",children:[e.jsx("span",{className:"text-gray-300",children:"Original Domain Price:"}),e.jsxs("span",{className:"text-gray-400 line-through",children:["US$",(Number(l.promoPrice)||Number(l.price)).toFixed(2)]})]}),e.jsxs("div",{className:"flex justify-between items-center text-sm",children:[e.jsx("span",{className:"text-gray-300",children:"Discounted Domain Price:"}),e.jsxs("span",{className:"text-green-400",children:["US$",Number(f.domainPrice).toFixed(2)]})]}),(t==null?void 0:t.price)>0&&!m&&!h&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex justify-between items-center text-sm",children:[e.jsx("span",{className:"text-gray-300",children:"Original Theme Price:"}),e.jsxs("span",{className:"text-gray-400 line-through",children:["US$",Number(t.price).toFixed(2)]})]}),e.jsxs("div",{className:"flex justify-between items-center text-sm",children:[e.jsx("span",{className:"text-gray-300",children:"Discounted Theme Price:"}),e.jsxs("span",{className:"text-green-400",children:["US$",Number(f.themePrice).toFixed(2)]})]})]}),e.jsxs("div",{className:"flex justify-between items-center text-sm font-semibold mt-2 pt-2 border-t border-gray-600",children:[e.jsx("span",{className:"text-yellow-300",children:"Total Savings:"}),e.jsxs("span",{className:"text-yellow-300",children:["US$",((Number(l.promoPrice)||Number(l.price))+(!m&&!h&&(t==null?void 0:t.price)>0?Number(t.price):0)-Number(f.totalPrice)).toFixed(2)]})]})]}),!g.valid&&Number(l.promoPrice)>0&&e.jsx("div",{className:"bg-blue-900/30 p-3 rounded-lg my-4","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",16),children:e.jsxs("p",{className:"text-green-400 font-semibold",children:["Pre-launch Price: US$",Number(l.promoPrice).toFixed(2)]})}),e.jsxs("div",{className:"bg-gray-800/50 p-3 mt-4 rounded-lg mb-4 border border-gray-600",children:[e.jsxs("div",{className:"flex items-center justify-between text-lg font-bold",children:[e.jsx("span",{className:"text-white",children:"Total Price:"}),e.jsxs("span",{className:"text-green-400",children:["US$",Number(f.totalPrice).toFixed(2),g.valid&&e.jsx("span",{className:"text-green-400 text-sm ml-2",children:"🎉"}),(m||h||(t==null?void 0:t.price)===0)&&(t==null?void 0:t.price)>0&&e.jsx("span",{className:"text-green-400 text-sm ml-2",children:"🎁"})]})]}),(t==null?void 0:t.price)>0&&e.jsxs("div",{className:"text-xs text-gray-300 mt-1",children:["Includes domain (US$",Number(f.domainPrice).toFixed(2),") + ",m?"FREE theme (you own this theme)":h?"FREE theme (already in collection)":`theme (EZ$ ${t==null?void 0:t.price} = US$${Number(f.themePrice).toFixed(2)})`,g.valid&&!m&&!h&&e.jsxs("div",{className:"text-green-400 mt-1",children:["Coupon applied: ",g.message]}),(m||h)&&e.jsx("div",{className:"text-green-400 mt-1",children:m?"You created this theme - no additional charge!":"Theme already in your collection - no additional charge!"})]})]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-3 mt-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("label",{className:"text-gray-300 text-sm","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",17),children:"Coupon Code"}),e.jsx("input",{type:"text",className:"w-full bg-gray-700 text-white px-3 py-2 rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400",placeholder:"Enter coupon code",value:F,onChange:o=>ve(o.target.value),"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",18)}),F&&e.jsx("div",{className:`mt-1 text-xs ${g.valid?"text-green-400":g.valid===!1?"text-red-400":"text-yellow-400"}`,"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",19),children:g.message||"Validating coupon..."})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("label",{className:"text-gray-300 text-sm","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",20),children:"NYP (optional)"}),e.jsx("input",{type:"number",className:"input-no-spinner w-full bg-gray-700 text-white px-3 py-2 rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400",min:"0",step:"1",placeholder:"Set price for marketplace",onChange:()=>{},"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",21)})]})]}),e.jsx("div",{className:"mt-4 text-xs text-gray-400",children:e.jsxs("div",{className:"flex items-start",children:[e.jsx("input",{type:"checkbox",id:"terms-checkbox",required:!0,className:"mt-1 mr-2",checked:Ne,onChange:o=>ne(o.target.checked),"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",22)}),e.jsxs("label",{htmlFor:"terms-checkbox",className:"text-sm leading-normal text-gray-300 ml-1",children:["By claiming your ",j==="handl
227e"?"handle":"domain"," you agree to the current user"," ",e.jsx("button",{type:"button",onClick:()=>window.open("/terms-and-conditions","_blank"),className:"text-yellow-400 hover:underline focus:outline-none focus:underline","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",23),children:"Terms and Conditions"})," ","and"," ",e.jsx("button",{type:"button",onClick:()=>window.open("/privacy-policy","_blank"),className:"text-yellow-400 hover:underline focus:outline-none focus:underline","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",24),children:"Privacy Policy"})]})]})}),e.jsxs("button",{onClick:()=>{Number(f.totalPrice)===0?(ae(j),G(!0)):Lt()},className:"w-full mt-4 bg-green-600 hover:bg-green-700 text-white font-bold py-2 px-4 rounded-md transition-colors disabled:opacity-50 disabled:cursor-not-allowed",disabled:D||!Ne,"data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",Number(f.totalPrice)===0?19:20),children:[D?"Processing...":Number(f.totalPrice)===0?`Claim Free ${j==="handle"?"Handle":"Domain"}${(t==null?void 0:t.price)>0?m?" + Your Theme":h?" + Free Theme":" + Theme":""}`:`Buy ${j==="handle"?"Handle":"Domain"}${(t==null?void 0:t.price)>0?m?" + Your Theme":h?" + Free Theme":" + Theme":""} for US$${Number(f.totalPrice).toFixed(2)}`,!Ne&&!D&&e.jsx("span",{className:"block text-xs mt-1 text-yellow-300","data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",21),children:"Please agree to terms & conditions"})]})]})]}),e.jsx("div",{className:"text-center text-sm text-gray-400","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",25),children:e.jsx("p",{children:"Secure your unique identity in the Web3 space today"})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mt-16",children:[e.jsxs("div",{className:"feature-card bg-gray-800/80 backdrop-blur-sm rounded-2xl p-6 shadow-lg border border-gray-700 transition-all duration-700 hover:border-green-400/30 hover:translate-y-[-5px]","data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",22),children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-green-500/10 flex items-center justify-center text-green-400 text-xl mb-4",children:e.jsx(x,{icon:no})}),e.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:"Digital Identity"}),e.jsx("p",{className:"text-gray-300",children:"Establish your unique presence in the decentralized web with a verifiable identity."})]}),e.jsxs("div",{className:"feature-card bg-gray-800/80 backdrop-blur-sm rounded-2xl p-6 shadow-lg border border-gray-700 transition-all duration-700 hover:border-green-400/30 hover:translate-y-[-5px]",style:{transitionDelay:"0.1s"},"data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",23),children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-green-500/10 flex items-center justify-center text-green-400 text-xl mb-4",children:e.jsx(x,{icon:lo})}),e.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:"Co-Branding"}),e.jsx("p",{className:"text-gray-300",children:"Leverage partnerships and collaborative opportunities through our promotional services."})]}),e.jsxs("div",{className:"feature-card bg-gray-800/80 backdrop-blur-sm rounded-2xl p-6 shadow-lg border border-gray-700 transition-all duration-700 hover:border-green-400/30 hover:translate-y-[-5px]",style:{transitionDelay:"0.2s"},"data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",24),children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-green-500/10 flex items-center justify-center text-green-400 text-xl mb-4",children:e.jsx(x,{icon:co})}),e.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:"Brand Advocacy"}),e.jsx("p",{className:"text-gray-300",children:"Turn your audience into brand advocates with integrated Web3 solutions."})]})]})]})]})]})]})}export{Uo 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.