PageSourceSearch

https://bbcc.ai/build/assets/offer-Bm8NcnIl.js

js bbcc.ai collected 2026-10-05 12:13:39 UTC 56,586 bytes, 104 lines download raw bytes

1import{u as mt,r as s,b as F,j as e,H as pt,L as U}from"./app-DP13319Q.js";import{A as ut}from"./app-logo-icon-B_rIw4ab.js";import{D as xt}from"./DraggableMenu-Bk7Spryo.js";import"./model-viewer-BNdxy5m2.js";import{F as p,a8 as ft,a9 as ht,aa as gt,i as bt,ap as yt,a as ne,f as re,k as X,h as vt,j as wt,m as jt,bh as Nt,bi as kt,bj as Pt}from"./index-CtyZ6W6U.js";import{c as Ct}from"./cjs-G0qneMx2.js";import{l as St}from"./index.module-D1uRunsO.js";import{E as Et,l as $t,u as Ft,a as zt,P as It}from"./react-stripe.esm-D6Ettci4.js";import{M as be}from"./react-tooltip.min-DW3XhwOj.js";/* empty css            */import"./index-DQkUn08L.js";import"./clsx-B-dksMZM.js";const Tt=$t("pk_live_51IyCo8Dpr0bpQPac24tix9UpShzoMw1uWsW3JvzcMrKVFnvUsXAnvBknJSPYucZCYSLT4Z0UVBeKx49jlYakdjIw00coa3YVdn"),M=(x,i,T=0)=>{if(!x||!x[i])return console.warn(`Tooltip reference '${i}' not found`),"";try{const y=x[i],Y=Array.isArray(y)?y:JSON.parse(y);return Y[T]||Y[0]||""}catch(y){return console.error("Error parsing tooltip:",y),""}},At=({price:x,email:i,clientSecret:T,onSuccess:y,onBack:Y,onError:ye,tooltips:E})=>{const A=Ft(),k=zt(),[Z,J]=s.useState(!1),[Q,j]=s.useState(""),[ce,ve]=s.useState(!1),Se=async we=>{if(we.preventDefault(),j(""),!A||!k){j("Payment system not ready. Please try again.");return}J(!0);try{const{error:z}=await k.submit();if(z){console.error("Payment form validation failed:",z),j(z.message||"Payment form validation failed");return}console.log("Payment form validated successfully");const{error:B,paymentIntent:_}=await A.confirmPayment({elements:k,confirmParams:{return_url:`${window.location.origin}/payment-success`,receipt_email:i,payment_method_data:{billing_details:{email:i}}},clientSecret:T,redirect:"if_required"});if(console.log("Payment confirmation result:",{stripeError:B,paymentIntent:_}),B){console.error("Stripe payment error:",B),j(B.message||"Payment failed");return}if(!_){console.error("No payment intent returned"),j("Payment processing failed. No payment intent received.");return}switch(console.log("Payment intent status:",_.status),_.status){case"succeeded":console.log("Payment succeeded!"),y();break;case"requires_action":console.log("Payment requires additional action"),j("Payment requires additional authentication. Please complete the verification.");break;case"processing":console.log("Payment processing"),j("Payment is processing. Please wait for confirmation.");break;case"requires_payment_method":case"canceled":case"requires_confirmation":default:console.error("Payment failed with status:",_.status),j(`Payment failed. Status: ${_.status}`)}}catch(z){console.error("Unexpected error during payment processing:",z);const B=z instanceof Error?z.message:"Payment processing failed. Please try again.";j(B)}finally{J(!1)}};return e.jsxs("form",{onSubmit:Se,children:[Q&&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":M(E,"modal-tooltip",0),children:[e.jsx(p,{icon:ne}),Q]}),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":M(E,"modal-tooltip",1),children:"Email:"}),e.jsx("span",{className:"text-yellow-400",children:i})]}),e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{"data-tooltip-id":"modal-tooltip","data-tooltip-content":M(E,"modal-tooltip",2),children:"Amount:"}),e.jsxs("span",{className:"text-yellow-400",children:["US$",x.toFixed(2)]})]})]}),e.jsx("div",{className:"mt-6 space-y-4",children:e.jsx(It,{options:{layout:"tabs",fields:{billingDetails:{email:"auto"}}},onReady:()=>ve(!0)})}),e.jsx("div",{className:"mt-6",children:e.jsx("button",{type:"submit",disabled:Z||!A||!ce,className:`w-full bg-yellow-400 text-black font-bold py-3 px-4 rounded-full hover:bg-yellow-500 transition-colors ${Z||!A||!ce?"opacity-70 cursor-not-allowed":""}`,"data-tooltip-id":"modal-tooltip","data-tooltip-content":M(E,"modal-tooltip",3),children:Z?e.jsxs(e.Fragment,{children:[e.jsx(p,{icon:X,className:"animate-spin mr-2"}),"Processing..."]}):`Pay US$${x.toFixed(2)}`})}),e.jsxs("div",{className:"mt-4 text-center",children:[e.jsx("button",{type:"button",onClick:Y,className:"text-sm text-yellow-400 hover:underline","data-tooltip-id":"modal-tooltip","data-tooltip-content":M(E,"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":M(E,"modal-tooltip",5),children:"Payment secured by STRIPE. You'll be redirected after payment."})]})]})},_e=x=>{const i=document.createElement("div");return i.innerHTML=x,i.textContent||i.innerText||""};function Zt(){var Le,Re,Ue;const{auth:x,template:i,initialFunnels:T,domains:y,checkDomainUrl:Y,checkStandardDomainUrl:ye,tooltips:E,promotionmessage:A,defaultCouponCode:k=""}=mt().props,Z=(A==null?void 0:A.message)||"Get Your Brand Domain",J=s.useRef(null),Q=s.useRef(null),j=s.useRef(null),[ce,ve]=s.useState(!0),[Se,we]=s.useState([]),[z,B]=s.useState(""),[_,Lt]=s.useState("fuzzy"),[Rt,Ut]=s.useState(1),[Mt,De]=s.useState(!0),[D,de]=s.useState(!1),[me,m]=s.useState(""),[Ee,$e]=s.useState(""),[b,qe]=s.useState("domain"),[c,q]=s.useState(""),[f,je]=s.useState(""),[d,L]=s.useState({checking:!1,available:null,message:""}),[O,Ne]=s.useState({show:!1,price:0,promoPrice:0,couponCode:"",buyingPrice:0}),[Fe,V]=s.useState(!1),[He,pe]=s.useState(1),[ke,ze]=s.useState(""),[Ye,Ie]=s.useState(""),[S,Oe]=s.useState(((Le=x.user)==null?void 0:Le.email)||""),[I,ue]=s.useState(""),[H,xe]=s.useState(""),[ee,W]=s.useState(!1),[$,Pe]=s.useState(null),[Ve,Te]=s.useState(!1),[We,Ke]=s.useState(""),[K,te]=s.useState(null),[v,oe]=s.useState(""),[w,R]=s.useState({valid:null,message:"",discount:0}),[ae,Ce]=s.useState({success:!1,message:"",url:""}),[fe,le]=s.useState(!1),[P,he]=s.useState("");St(z,500);const a=s.useCallback((t,o=0)=>M(E,t,o),[E]);s.useEffect(()=>{k&&!v&&oe(k)},[k]),s.useEffect(()=>{T&&(we(T.data),De(T.next_page_url!==null)),y&&y.length>0&&je(y[0].domain)},[T,y]),s.useEffect(()=>{const t=async()=>{var l;if(S&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S))try{const r=await F.post("/check-user-exists",{email:S},{headers:{"X-CSRF-TOKEN":((l=document.querySelector('meta[name="csrf-token"]'))==null?void 0:l.getAttribute("content"))||""}});
1Pe(r.data.exists)}catch(r){console.error("Error checking user existence:",r),Pe(null)}else Pe(null)},o=setTimeout(()=>{t()},500);return()=>clearTimeout(o)},[S]),s.useEffect(()=>{if(P.trim()){const t=P.split("/").pop();t&&t.trim()&&!c&&q(t.trim())}},[P,c]),s.useEffect(()=>{if(k&&c.trim()&&v===k){const t=setTimeout(()=>{Ae()},500);return()=>clearTimeout(t)}},[c,k,v]);const Ae=async()=>{if(!v.trim()||!c.trim()){R({valid:!1,message:"Please enter a coupon code and brand name",discount:0});return}try{R({valid:null,message:"Validating coupon...",discount:0});const t=await F.post("/couponcodecustomdomain",{couponcode:v.trim(),domainurl:c.trim(),type:b});if(t.data.valid){let o=t.data.offprice;o>0&&o<1&&(o=1);const l=_e(t.data.title||"Coupon applied successfully!");R({valid:!0,message:l,discount:o}),Ne(r=>({...r,buyingPrice:Number(o),couponCode:v.trim()}))}else{const o=_e(t.data.title||"Invalid coupon code");R({valid:!1,message:o,discount:0})}}catch(t){console.error("Coupon validation error:",t),R({valid:!1,message:"Error validating coupon. Please try again.",discount:0})}};s.useEffect(()=>{if(v.trim()&&c.trim()){const t=setTimeout(()=>{Ae()},800);return()=>clearTimeout(t)}},[v,c]);const Ge=t=>{qe(t),L({checking:!1,available:null,message:""}),le(!1)},ge=async()=>{var o,l;if(!c.trim()||!f){L({checking:!1,available:!1,message:"Please enter a brand name and select a domain"});return}const t=`${c.trim()}-${f}-${b}`;Ke(t),de(!0),L({checking:!0,available:null,message:"Checking availability..."});try{const r=b==="handle"?Y:ye,n=await F.post(r,{handle:c.trim(),domain:f});Ce({success:!1,message:"",url:""});const u=n.data.price||0,N=n.data.promoPrice||0,h=n.data.charCount||0;if(L({checking:!1,available:n.data.available,message:n.data.message,price:u,promoPrice:N,charCount:h}),n.data.available){let g=N>0?N:u;g>0&&g<1&&(g=1),Ne(G=>({...G,price:Number(u),promoPrice:Number(N),buyingPrice:Number(g)}))}}catch(r){console.error("Error checking domain availability:",r),L({checking:!1,available:!1,message:((l=(o=r.response)==null?void 0:o.data)==null?void 0:l.message)||"Error checking availability",price:0,promoPrice:0,charCount:0})}finally{de(!1)}};s.useEffect(()=>{if(c.trim()&&f){const t=setTimeout(()=>{ge()},800);return()=>clearTimeout(t)}},[c,f,b]);const Xe=async()=>{var o,l,r,n,u,N;if(!S){m("Please enter your email address");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S)){m("Please enter a valid email address");return}if($===null){m("Checking user account...");return}if(!x.user&&!$){if(!I){m("Please enter a password");return}if(I.length<8){m("Password must be at least 8 characters long");return}if(!H){m("Please confirm your password");return}if(I!==H){m("Passwords do not match");return}}let t=O.buyingPrice;if(t>0&&t<1&&(t=1),t===0){m(""),W(!0);try{const h=await F.post("/free-purchase",{email:S,password:!x.user&&!$?I:void 0,custom_handle:c.trim(),domain:f,type:b,coupon_code:v},{headers:{"X-CSRF-TOKEN":((o=document.querySelector('meta[name="csrf-token"]'))==null?void 0:o.getAttribute("content"))||""}});if(h.data.success){const g=b==="handle"?`https://${f}/${c.trim()}`:`https://${c.trim()}.${f}`;Ce({success:!0,message:"Purchase successful! Your new URL: ",url:g}),V(!1),te(null),m(""),setTimeout(()=>{q(""),L({checking:!1,available:null,message:""}),oe(""),R({valid:null,message:"",discount:0}),le(!1),ue(""),xe("")},5e3)}else m(h.data.error||"Free purchase failed")}catch(h){F.isAxiosError(h)?m(((r=(l=h.response)==null?void 0:l.data)==null?void 0:r.error)||"Failed to process free purchase"):m("Failed to connect to purchase service")}finally{W(!1)}return}if(t<1&&t!==0){m("Minimum payment amount is $1");return}m(""),W(!0);try{const h=b==="handle"?"/initiate-handle-homepayment":"/initiate-domain-homepayment",g=await F.post(h,{price:O.price,email:S,password:!x.user&&!$?I:void 0,custom_handle:c.trim(),domain:f,promo_price:O.promoPrice,coupon_code:v,selling_price:0,payment_method:"usd",funnelId:0},{headers:{"X-CSRF-TOKEN":((n=document.querySelector('meta[name="csrf-token"]'))==null?void 0:n.getAttribute("content"))||""}});ze(g.data.clientSecret),Ie(g.data.payment_intent_id),pe(2)}catch(h){F.isAxiosError(h)?m(((N=(u=h.response)==null?void 0:u.data)==null?void 0:N.error)||"Failed to initialize payment"):m("Failed to connect to payment service")}finally{W(!1)}},Ze=async()=>{var t,o,l;W(!0),m("");try{const r=b==="handle"?"/home-handle-success":"/home-domain-handle-success",n=await F.post(r,{payment_intent_id:Ye},{headers:{"X-CSRF-TOKEN":((t=document.querySelector('meta[name="csrf-token"]'))==null?void 0:t.getAttribute("content"))||""}});if(n.data.success){const u=b==="handle"?`https://${f}/${c.trim()}`:`https://${c.trim()}.${f}`;Ce({success:!0,message:"Purchase successful! Your new URL: ",url:u}),V(!1),te(null),pe(1),ze(""),Ie(""),m(""),setTimeout(()=>{q(""),L({checking:!1,available:null,message:""}),oe(""),R({valid:null,message:"",discount:0}),le(!1),ue(""),xe("")},5e3)}else m(n.data.error||"Payment verification failed")}catch(r){console.error("Payment verification error:",r),F.isAxiosError(r)?m(((l=(o=r.response)==null?void 0:o.data)==null?void 0:l.error)||"Payment verification failed"):m("Failed to verify payment. Please contact support.")}finally{W(!1)}},Je=()=>{const t=`${c.trim()}-${f}-${b}`;if(!c.trim()||!f||d.available===!1||We!==t){m("Please check availability first"),setTimeout(()=>m(""),3e3);return}if(!fe){m("Please agree to the terms and conditions"),setTimeout(()=>m(""),3e3);return}te(b);const o=d.price||0,l=d.promoPrice||0;let r=w.valid?w.discount:l>0?l:o;r>0&&r<1&&(r=1),Ne({show:!0,price:Number(o),promoPrice:Number(l),couponCode:v,buyingPrice:Number(r)}),V(!0)},Qe=async()=>{var t,o;de(!0),Te(!1);try{const l=await F.post("/api/purchase",{brand:c.trim(),domain:f,type:b});$e(`Success! Your ${b==="handle"?"brand handle":"domain"} has been reserved.`),setTimeout(()=>$e(""),5e3),q(""),L({checking:!1,available:null,message:""}),oe(""),R({valid:null,message:"",discount:0}),le(!1),ue(""),xe("")}catch(l){m(((o=(t=l.response)==null?void 0:t.data)==null?void 0:o.message)||"Purchase failed. Please try again."),setTimeout(()=>m(""),5e3)}finally{de(!1)}},et=t=>{try{return new URL(t),!0}catch{return!1}},tt=t=>{var l;return(l=t.split("?")[0].split(".").pop())==null?void 0:l.toLowerCase()},ot=t=>t?["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(t):!1,at=i!=null&&i.image&&ot(tt(i.image))?e.jsx("style",{children:`
2            .blur-bg {
3                background: url('${i.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${i.image}') no-repeat center center;
4                background-size: cover;
5            }
6        `}):null,lt=s.useMemo(()=>{var Be;if(!i)return null;
6j.current&&(URL.revokeObjectURL(j.current),j.current=null);const t=((Be=i.image.split(".").pop())==null?void 0:Be.toLowerCase())||"",l=`${i.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${i.image}`,r=["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"],n=["ppt","pptx","pdf","xls","xlsx","doc","docx","pages","ai","psd","eps","ttf","dxf","xps","rar","zip","ods","odt","odp"],u=/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/i,N=/(?:https?:\/\/)?(?:www\.)?linkedin\.com\/(?:in|posts|company|feed|showcase|embed\/feed\/update\/urn:li:[^/]+:[^"&?/ ]+)/i,h=/^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$/im,g=/^(https?:\/\/)?(www\.)?fb\.watch\/[a-zA-Z0-9(\.\?)?]/,G=/^(https?:\/\/)?(www\.)?facebook\.com\/[a-zA-Z0-9(\.\?)?]/,se=/<iframe.*?src=["'](.*?)["'].*?>.*?<\/iframe>/is,st=/<blockquote/,ie=i.image.match(u),it=i.image.match(N),Me=i.image.match(h),rt=i.image.match(g),nt=i.image.match(G),ct=i.image.match(se)||st.test(i.image);if(r.includes(t))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
7                        .blur-overlay {
8                            position: fixed;
9                            top: 0;
10                            left: 0;
11                            width: 100%;
12                            height: 100%;
13                            backdrop-filter: blur(20px);
14                            z-index: -1;
15                        }
16                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("img",{src:l,alt:"Background",className:"absolute inset-0 max-w-full max-h-full m-auto z-0 rounded-lg",onError:C=>console.error("Image failed to load",C)})]});if(n.includes(t))return e.jsx("iframe",{src:`https://docs.google.com/viewer?url=${l}&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(ct){const C=i.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"'),dt=/<(iframe|blockquote)[^>]*class="/i.test(C)?C:C.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:`
17                        .blur-overlay {
18                            position: fixed;
19                            top: 0;
20                            left: 0;
21                            width: 100%;
22                            height: 100%;
23                            backdrop-filter: blur(20px);
24                            z-index: -2;
25                        }
26                        .twitter-tweet {
27                            position: fixed;
28                            top: 0;
29                            left: 0;
30                            width: 100vw;
31                            height: 100vh;
32                            object-fit: cover;
33                            z-index: 0;
34                            border: none;
35                        }
36                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"fixed top-0 left-0 w-full h-full object-cover",dangerouslySetInnerHTML:{__html:dt}})]})}if(ie){const C=i.option==="autoplay"?"autoplay=1":i.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/${ie[1]}?${C}&loop=1&playlist=${ie[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:`
37                        .blur-overlay {
38                            position: fixed;
39                            top: 0;
40                            left: 0;
41                            width: 100%;
42                            height: 100%;
43                            backdrop-filter: blur(20px);
44                            z-index: -1;
45                        }
46                    `}),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/${ie[1]}?${i.option}=1&mute=1&loop=1&playlist=${ie[1]}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
46 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})]})}if(it){let C=i.image;return C.includes("?compact=1")||(C+=(C.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:C,className:"w-full h-full",frameBorder:"0",allowFullScreen:!0,title:"Embedded LinkedIn Post",scrolling:"yes"})})}return Me?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
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("iframe",{loading:"lazy",id:"bgVideo",allow:"camera; microphone; fullscreen; display-capture; autoplay",src:`https://player.vimeo.com/video/${Me[3]}?h=33160d1512&color=de0101`,className:"fixed top-0 left-0 w-full h-full object-cover",frameBorder:"0",allowFullScreen:!0})]}):rt||nt&&!i.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":i.image,"data-width":"1400","data-show-text":"true"})}):t==="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:l,type:"video/mp4"}),"Your browser does not support the video tag."]}),e.jsx("style",{children:`
57                        .blur-overlay {
58                            position: fixed;
59                            top: 0;
60                            left: 0;
61                            width: 100%;
62                            height: 100%;
63                            backdrop-filter: blur(20px);
64                            z-index: -2;
65                        }
66                    `}),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",controls:!0,children:[e.jsx("source",{src:l,type:"video/mp4"}),"Your browser does not support the video tag."]})]}):t==="glb"?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
67                        .blur-overlay {
68                            position: fixed;
69                            top: 0;
70                            left: 0;
71                            width: 100%;
72                            height: 100%;
73                            backdrop-filter: blur(20px);
74                            z-index: -1;
75                        }
76                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("model-viewer",{src:l,alt:"3D model",className:"fixed top-0 left-0 w-full h-full",ar:!0,"auto-rotate":!0,"camera-controls":!0,"shadow-intensity":"1"})]}):et(i.image)?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
77                        .blur-overlay {
78                            position: fixed;
79                            top: 0;
80                            left: 0;
81                            width: 100%;
82                            height: 100%;
83                            backdrop-filter: blur(20px);
84                            z-index: -1;
85                        }
86                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{loading:"lazy",id:"bgVideo",allow:"camera; microphone; fullscreen; display-capture; autoplay",src:i.image,className:"fixed top-0 left-0 w-full h-full",frameBorder:"0",allowFullScreen:!0,scrolling:"yes"})]}):(Q.current=new Blob([i.image],{type:"text/html"}),j.current=URL.createObjectURL(Q.current),e.jsx("iframe",{src:j.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 
87                        allow-popups allow-popups-to-escape-sandbox allow-presentation 
88                        allow-same-origin allow-scripts allow-top-navigation 
89                        allow-top-navigation-by-user-activation allow-downloads allow-storage-access-by-user-activation`,allowFullScreen:!0,loading:"lazy",name:"binauralMixerFrame",allowTransparency:"true",scrolling:"yes"}))},[i]);return s.useEffect(()=>()=>
89{j.current&&URL.revokeObjectURL(j.current)},[]),e.jsxs(e.Fragment,{children:[e.jsxs(pt,{children:[e.jsx("title",{children:"EZ.wiki - Get Your Brand Domain"}),at,e.jsx("meta",{name:"description",content:"Get your unique brand domain and establish your Web3 presence"}),e.jsx("style",{children:`
90                    .react-tooltip {
91                        z-index: 99999 !important;
92                        opacity: 1 !important;
93                        font-size: 12px;
94                        padding: 4px 8px;
95                    }
96                    .input-no-spinner::-webkit-outer-spin-button,
97                    .input-no-spinner::-webkit-inner-spin-button {
98                        -webkit-appearance: none;
99                        margin: 0;
100                    }
101                    .input-no-spinner {
102                        -moz-appearance: textfield;
103                    }
104                `})]}),e.jsx(be,{id:"nav-tooltip"}),e.jsx(be,{id:"action-tooltip"}),e.jsx(be,{id:"form-tooltip"}),e.jsx(be,{id:"modal-tooltip"}),e.jsxs("main",{className:`relative flex justify-end p-4 min-h-screen overflow-hidden ${(Re=i==null?void 0:i.image.split(".").pop())!=null&&Re.toLowerCase()&&["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(((Ue=i.image.split(".").pop())==null?void 0:Ue.toLowerCase())||"")?"blur-bg":""}`,children:[e.jsxs("div",{className:"absolute inset-0 z-0",children:[x.user?e.jsx(xt,{auth:x}):e.jsx(Ct,{nodeRef:J,bounds:"parent",cancel:".no-drag",defaultPosition:{x:window.innerWidth-650,y:0},children:e.jsx("div",{ref:J,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(U,{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(ut,{className:"size-8 fill-current text-[#8EF587]"}),e.jsx("span",{className:"ml-2 text-[#8EF587]",children:"ez.wiki"})]}),e.jsx(U,{href:route("demodesign"),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(p,{icon:ft,className:"text-white"}),e.jsx("span",{className:"hidden group-hover:inline",children:"EXPRESS DOMAIN"})]})}),e.jsx(U,{href:route("login"),className:"group no-drag","data-tooltip-id":"nav-tooltip","data-tooltip-content":a("nav-tooltip",2),children:e.jsxs("span",{className:"flex items-center gap-2 bg-[#235A72] text-[#8EF587] font-medium py-2 px-4 rounded-full transition-all duration-300 hover:bg-[#1C4A5E] cursor-pointer",children:[e.jsx(p,{icon:ht,className:"text-[#8EF587]"}),e.jsx("span",{className:"hidden group-hover:inline",children:"SIGN IN"})]})}),e.jsx(U,{href:route("register"),className:"group no-drag","data-tooltip-id":"nav-tooltip","data-tooltip-content":a("nav-tooltip",3),children:e.jsxs("span",{className:"flex items-center gap-2 bg-[#235A72] text-[#8EF587] font-medium py-2 px-4 rounded-full transition-all duration-300 hover:bg-[#1C4A5E] cursor-pointer",children:[e.jsx(p,{icon:gt,className:"text-[#8EF587]"}),e.jsx("span",{className:"hidden group-hover:inline",children:"SIGN UP"})]})}),e.jsx(U,{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 rounded-full transition-all duration-300 hover:bg-[#1C4A5E] cursor-pointer",children:[e.jsx(p,{icon:bt,className:"text-[#8EF587]"}),e.jsx("span",{className:"hidden group-hover:inline",children:"DOMAIN MART"})]})}),e.jsx(U,{href:route("templatemarketplace"),className:"group no-drag","data-tooltip-id":"login-tooltip","data-tooltip-content":M("login-tooltip",6),children:e.jsxs("span",{className:"flex items-center gap-2 bg-[#235A72] text-[#8EF587] font-medium py-2 px-4 roun
104ded-full transition-all duration-300 hover:bg-[#1C4A5E] cursor-pointer",children:[e.jsx(p,{icon:yt,className:"text-[#8EF587]"}),e.jsx("span",{className:"hidden group-hover:inline",children:"THEME RENTAL"})]})})]})})}),lt]}),me&&e.jsxs("div",{className:"fixed top-20 right-4 bg-red-600 text-white px-4 py-2 rounded-md shadow-lg z-500","data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",15),children:[e.jsx(p,{icon:ne,className:"mr-2"}),me]}),Ee&&e.jsxs("div",{className:"fixed top-20 right-4 bg-green-600 text-white px-4 py-2 rounded-md shadow-lg z-500","data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",16),children:[e.jsx(p,{icon:re,className:"mr-2"}),Ee]}),Fe&&K&&(()=>{let o=w.valid?w.discount:O.buyingPrice;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:()=>{V(!1),te(null),m("")},className:"absolute top-4 right-4 text-white/70 hover:text-white transition-colors z-10",disabled:ee,"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:K==="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:K==="handle"?`${f}/${c.trim()}`:`${c.trim()}.${f}`}),e.jsxs("p",{className:"text-[#a8d0e6]","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",10),children:[K==="handle"?`${c.trim().length} letters – US$${Number(o).toFixed(2)}`:`US$${Number(o).toFixed(2)}`,w.valid&&e.jsx("span",{className:"text-green-400 ml-2",children:"(Coupon applied!)"})]})]}),e.jsxs("div",{className:"bg-[#2a6b87] p-4 rounded-lg",children:[!x.user&&!$&&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:x.user?"Email Address":"Email Address *"}),e.jsx("input",{type:"email",value:S,onChange:l=>Oe(l.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)}),$!==null&&!x.user&&e.jsx("p",{className:`text-xs mt-1 ${$?"text-green-400":"text-yellow-400"}`,children:$?"✓ Account exists - no password needed":"New account - password required"})]}),!x.user&&!$&&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:l=>ue(l.target.value),placeholder:"Create your password",className:"w-full bg-gray-700 text-white py-2 px-4 roun
104ded-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:H,onChange:l=>xe(l.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!==H&&H&&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:Xe,disabled:ee||!S||!x.user&&!$&&(!I||!H||I!==H),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",o===0?13:14),children:ee?e.jsxs(e.Fragment,{children:[e.jsx(p,{icon:X,className:"animate-spin mr-2"}),"Processing..."]}):o===0?`Claim Free ${K==="handle"?"Handle":"Domain"}`:`Buy ${K==="handle"?"Handle":"Domain"} 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(U,{href:"/terms",className:"hover:underline text-white","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",15),children:"Terms"})," and"," ",e.jsx(U,{href:"/privacy",className:"hover:underline text-white","data-tooltip-id":"modal-tooltip","data-tooltip-content":a("modal-tooltip",16),children:"Privacy"}),"."]})]})]})]})})})(),Fe&&He===2&&(()=>{let t=O.buyingPrice;return t>0&&t<1&&(t=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:()=>{V(!1),pe(1),m("")},className:"sticky top-0 right-0 ml-auto text-white/70 hover:text-white transition-colors z-10",disabled:ee,"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:[me&&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(p,{icon:ne}),me]}),ee&&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(p,{icon:X,className:"animate-spin text-4xl text-white"})}),e.jsx(Et,{stripe:Tt,options:{clientSecret:ke,appearance:{theme:"night",variables:{colorPrimary:"#FFD700",colorBackground:"#235A72",colorText:"white",colorDanger:"#ff6b6b",fontFamily:"Inter, system-ui, sans-serif"}}},children:ke?e.jsx(At,{price:Number(t),email:S,clientSecret:ke,onSuccess:Ze,onBack:()=>pe(1),onError:m,tooltips:E}):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(p,{icon:X,className:"animate-spin text-2xl"})})})]})]})})})(),Ve&&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:b==="handle"?`@${c.trim()}.${f}`:`${c.trim()}.${f}`})]}),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:()=>Te(!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:Qe,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(p,{icon:X,className:"animate-spin mr-2"}),"Confirm Purchase"]})]})]})}),ce&&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 ${x.user?"mt-4":"mt-17"}`,children:[e.jsx("button",{onClick:()=>ve(!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(p,{icon:vt,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:Z}),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:()=>Ge("domain"),className:`flex items-center justify-center py-3 px-8 rounded-xl shadow-md font-bold transition-all ${b==="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(p,{icon:wt,className:"mr-2"})," Brand Domain"]})}),e.jsxs("div",{className:"flex items-center justify-between gap-4 max-w-2xl mx-auto mb-3",children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-300",children:"Link-in-Bio URL"}),e.jsx("span",{className:"text-xs text-gray-400 bg-gray-700/50 px-2 py-1 rounded-full",children:"Optional"})]}),e.jsxs("div",{className:"flex gap-4 max-w-2xl mx-auto mb-3",children:[e.jsxs("select",{value:P.split("/").slice(0,-1).join("/")+"/",onChange:t=>{const o=t.target.value;if(o){const l=P.split("/").pop()||"";he(o+l)}else he("")},className:"flex-1 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:P.split("/").pop()||"",onChange:t=>{const o=t.target.value,l=P.split("/").slice(0,-1).join("/")+"/";he(l==="/"?"https://linktr.ee/"+o:l+o),o.trim()&&!c.trim()&&q(o.trim())},placeholder:"yourhandle",className:"flex-1 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"}),e.jsxs("button",{onClick:()=>{const t=document.createElement("div");t.id="link-preview-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.9)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.zIndex="10000",t.style.backdropFilter="blur(8px)";const o=document.createElement("div");o.style.backgroundColor="#1a202c",o.style.borderRadius="16px",o.style.boxShadow="0 25px 50px -12px rgba(0, 0, 0, 0.5)",o.style.width="35%",o.style.height="80%",o.style.maxWidth="500px",o.style.minWidth="400px",o.style.border="1px solid #4a5568",o.style.overflow="hidden",o.style.display="flex",o.style.flexDirection="column";const l=document.createElement("div");l.style.display="flex",l.style.justifyContent="space-between",l.
104style.alignItems="center",l.style.padding="16px 20px",l.style.backgroundColor="#2d3748",l.style.borderBottom="1px solid #4a5568";const r=document.createElement("h3");r.textContent="Link Preview",r.style.color="white",r.style.fontSize="18px",r.style.fontWeight="bold",r.style.margin="0";const n=document.createElement("button");n.innerHTML="×",n.style.background="none",n.style.border="none",n.style.color="white",n.style.fontSize="24px",n.style.cursor="pointer",n.style.width="32px",n.style.height="32px",n.style.borderRadius="50%",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.transition="background-color 0.2s",n.onmouseenter=()=>n.style.backgroundColor="#4a5568",n.onmouseleave=()=>n.style.backgroundColor="transparent",n.onclick=()=>{t.parentNode&&document.body.removeChild(t)},l.appendChild(r),l.appendChild(n);const u=document.createElement("div");u.style.padding="12px 20px",u.style.backgroundColor="#2d3748",u.style.borderBottom="1px solid #4a5568",u.style.fontSize="14px",u.style.color="#cbd5e0";const N=document.createElement("div");N.textContent=`Previewing: ${P.trim()}`,N.style.fontFamily="monospace",N.style.fontSize="12px",N.style.color="#90cdf4",N.style.wordBreak="break-all",u.appendChild(N);const h=document.createElement("div");h.style.flex="1",h.style.padding="0",h.style.position="relative",h.style.overflow="hidden";const g=document.createElement("iframe");g.src=`/previewlink?url=${encodeURIComponent(P.trim())}`,g.style.width="100%",g.style.height="100%",g.style.border="none",g.style.borderRadius="0 0 16px 16px",g.style.background="white",g.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",g.allowFullscreen=!0,h.appendChild(g),o.appendChild(l),o.appendChild(u),o.appendChild(h),t.appendChild(o),t.onclick=se=>{se.target===t&&t.parentNode&&document.body.removeChild(t)};const G=se=>{se.key==="Escape"&&t.parentNode&&(document.body.removeChild(t),document.removeEventListener("keydown",G))};document.addEventListener("keydown",G),document.body.appendChild(t)},disabled:!P.trim(),className:`px-4 bg-gradient-to-r from-blue-500 to-blue-600 text-white font-semibold rounded-lg transition-all duration-300 flex items-center justify-center gap-2 text-sm ${P.trim()?"hover:from-blue-600 hover:to-blue-700":"opacity-50 cursor-not-allowed"}`,children:[e.jsx(p,{icon:jt,className:"text-sm"}),"Preview"]})]}),P.trim()&&e.jsxs("div",{className:"text-xs text-gray-400 flex items-center gap-2 p-2 bg-gray-800/30 max-w-2xl mx-auto rounded-md mt-2",children:[e.jsx(p,{icon:re,className:"text-lime-400"}),"Valid link ready"]}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-4 max-w-2xl mx-auto mb-8",children:[b==="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:f,onChange:t=>je(t.target.value),"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",3),children:y==null?void 0:y.map(t=>e.jsxs("option",{value:t.domain,children:["https://",t.domain]},t.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.jsx("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:c,onChange:t=>q(t.target.value),onKeyPress:t=>{t.key==="Enter"&&ge()},"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",4)})})]}):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:c,onChange:t=>q(t.target.value),onKeyPress:t=>{t.key==="Enter"&&ge()},"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:f,onChange:t=>je(t.target.value),"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",8),children:y==null?void 0:y.map(t=>e.jsxs("option",{value:t.domain,children:[".",t.domain]},t.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:ge,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 ${d.checking?"bg-gray-600 text-gray-300":d.available!==null?d.available?"bg-green-600 text-white":"bg-red-600 text-white":"bg-green-600 text-white"}`,disabled:D||!c||d.checking,"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",9),children:[e.jsx("span",{children:d.checking?"Checking...":d.available!==null?d.available?"Available":"Unavailable":"Check"}),!d.checking&&d.available!==null&&e.jsx(p,{icon:d.available?re:ne,className:"ml-2"})]})]}),ae.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(p,{icon:re,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:[ae.message,e.jsx("a",{href:ae.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:ae.url})]})]}),!ae.success&&d.message&&e.jsxs("div",{className:`text-center mb-4 transition-all duration-300 ${d.checking?"opacity-70":"opacity-100"}`,children:[e.jsx("div",{className:`flex items-center justify-center gap-2 text-sm font-medium mb-2 ${d.available?"text-green-400":d.available===!1?"text-red-400":"text-yellow-400"}`,"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",10),children:d.checking?e.jsxs(e.Fragment,{children:[e.jsx(p,{icon:X,className:"animate-spin"}),"Checking availability..."]}):e.jsxs(e.Fragment,{children:[d.available?e.jsx(p,{icon:re,className:"text-green-400"}):e.jsx(p,{icon:ne,className:"text-red-400"}),d.message]})}),d.available&&d.price!==void 0&&(()=>{let o=w.valid?w.discount:O.buyingPrice;o>0&&o<1&&(o=1);const l=d.promoPrice>0?d.promoPrice??0:d.price??0;let r=w.valid?w.discount:l;r>0&&r<1&&(r=1);let n=d.promoPrice??0;return n>0&&n<1&&(n=1),e.jsxs("div",{className:"mt-6 bg-gray-900/50 p-4 rounded-lg border border-gray-700",children:[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:c.trim()}),".",f]})}),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:[d.charCount," letters"]}),e.jsxs("span",{className:"text-yellow-400 font-semibold",children:["US$",Number(r).toFixed(2)]})]}),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.jsxs("p",{className:"text-yellow-400 font-mono",children:["coupon code ",v,v===k&&e.jsx("span",{className:"ml-2 text-xs text-yellow-300 bg-yellow-400/20 px-2 py-0.5 rounded-full",children:"Default"})]})})]}),w.valid&&e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 mt-4 items-stretch mb-4",children:[w.discount<(d.promoPrice||d.price)&&e.jsx("div",{className:"flex-1 bg-blue-900/50 p-3 rounded-lg text-center flex flex-col justify-center","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",14),children:e.jsxs("p",{className:"text-yellow-300 text-sm font-semibold",children:["You save US$",((d.promoPrice||d.price)-w.discount).toFixed(2),"!"]})}),e.jsxs("div",{className:"flex-1 bg-green-900/50 p-3 rounded-lg text-center flex flex-col justify-center","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",15),children:[e.jsxs("p",{className:"text-yellow-300 font-semibold",children:["You pay : US$",Number(r).toFixed(2)]}),v===k&&w.valid&&e.jsx("p",{className:"text-green-300 text-sm mt-1",children:"✓ Default promotion coupon applied"})]})]}),!w.valid&&d.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(n).toFixed(2)]})}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-3 mt-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("label",{className:"text-gray-300 text-sm","data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",17),children:["Coupon Code",v===k&&e.jsx("span",{className:"ml-2 text-xs text-yellow-400 bg-yellow-400/20 px-2 py-0.5 rounded-full",children:"Default"})]}),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:v,onCh
104ange:u=>oe(u.target.value),"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",18)}),v&&e.jsxs("div",{className:`mt-1 text-xs ${w.valid?"text-green-400":w.valid===!1?"text-red-400":"text-yellow-400"}`,"data-tooltip-id":"form-tooltip","data-tooltip-content":a("form-tooltip",19),children:[w.message||"Validating coupon...",v===k&&w.valid&&e.jsx("span",{className:"ml-2 text-green-300",children:"✓ Default promotion 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:u=>{console.log("NYP value:",u.target.value)},"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:fe,onChange:u=>le(u.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 ",b==="handle"?"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:()=>{o===0?(te(b),V(!0)):Je()},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||!fe,"data-tooltip-id":"action-tooltip","data-tooltip-content":a("action-tooltip",o===0?19:20),children:[D?"Processing...":o===0?`Claim Free ${b==="handle"?"Handle":"Domain"}`:`Buy ${b==="handle"?"Handle":"Domain"} for US$${Number(o).toFixed(2)}`,!fe&&!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(p,{icon:Nt})}),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(p,{icon:kt})}),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(p,{icon:Pt})}),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{Zt 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.