1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[61],{4057:function(e,t,a){Promise.resolve().then(a.bind(a,730)),Promise.resolve().then(a.bind(a,4229)),Promise.resolve().then(a.bind(a,6382))},730:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return d}});var r=a(4297),s=a(4744),i=a(5917),n=a(656),o=a(3812),l=a(8950);let c=[{key:"general",defaultOpen:!0},{key:"search"},{key:"extension"},{key:"seo"},{key:"speed"},{key:"free"},{key:"data"},{key:"accuracy"},{key:"available"},{key:"feedback"}];function d(){let e=(0,s.useTranslations)("faq"),[t,a]=(0,o.useState)(c.filter(e=>e.defaultOpen).map(e=>e.key));return(0,r.jsx)("section",{id:"faq",className:"py-24 bg-gray-50",children:(0,r.jsxs)("div",{className:"container px-4 mx-auto",children:[(0,r.jsxs)("div",{className:"max-w-4xl mx-auto text-center mb-16",children:[(0,r.jsx)("span",{className:(0,i.cn)("inline-block px-4 py-1.5 mb-4","text-sm font-semibold","bg-blue-50","text-blue-600","rounded-full","border border-blue-100"),children:e("badge")}),(0,r.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-gray-800",children:e("title")}),(0,r.jsx)("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto",children:e("description")})]}),(0,r.jsx)("div",{className:"max-w-3xl mx-auto",children:(0,r.jsx)(l.UQ,{type:"single",collapsible:!0,className:"space-y-4",children:c.map((t,a)=>{let{key:s}=t;return(0,r.jsx)(n.E.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:.1*a},viewport:{once:!0},children:(0,r.jsxs)(l.Qd,{value:s,className:(0,i.cn)("border border-gray-100 rounded-xl overflow-hidden","bg-white","shadow-sm hover:shadow","transition-all duration-200"),children:[(0,r.jsx)(l.o4,{className:(0,i.cn)("px-6 py-4","text-left font-semibold text-gray-700","hover:text-blue-600 hover:bg-gray-50","transition-colors duration-200","group"),children:(0,r.jsx)("h3",{className:"text-lg font-medium",children:e("items.".concat(s,".q"))})}),(0,r.jsx)(l.vF,{className:(0,i.cn)("px-6 py-4 pb-6","text-gray-600","leading-relaxed","border-t border-gray-100","bg-white"),children:e("items.".concat(s,".a"))})]})},"faq-".concat(a))})})})]})})}},4229:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return I}});var r=a(4297),s=a(3812),i=a(3091),n=a(4744),o=a(380),l=a(2657),c=a(1016),d=a(483),m=a(2293),u=a(1028),x=a(8753),p=a(871),g=a(7021),h=a(5917),f=a(5218),y=a(3025),b=a(8169),v=a(748);let j=b.fC;b.xz;let N=b.h_;b.x8;let w=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(b.aV,{ref:t,className:(0,h.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s})});w.displayName=b.aV.displayName;let k=s.forwardRef((e,t)=>{let{className:a,children:s,...i}=e;return(0,r.jsxs)(N,{children:[(0,r.jsx)(w,{}),(0,r.jsxs)(b.VY,{ref:t,className:(0,h.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...i,children:[s,(0,r.jsxs)(b.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(v.Z,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});k.displayName=b.VY.displayName;let S=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,h.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};S.displayName="DialogHeader";let R=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(b.Dx,{ref:t,className:(0,h.cn)("text-lg font-semibold leading-none tracking-tight",a),...s})});R.displayName=b.Dx.displayName;let z=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(b.dk,{ref:t,className:(0,h.cn)("text-sm text-muted-foreground",a),...s})});function C(e){let{domain:t,open:a,onOpenChange:i}=e,l=(0,n.useTranslations)("domainPrices"),{loading:c,error:d,platformPrices:m,fetchPlatformPrices:u}=function(){let[e,t]=(0,s.useState)(!1),[a,r]=(0,s.useState)(null),[i,n]=(0,s.useState)(null);return{loading:e,error:a,platformPrices:i,fetchPlatformPrices:(0,s.useCallback)(async e=>{t(!0),r(null);try{let t=await fetch("/api/domain-prices",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})});if(!t.ok){let e=await t.json();throw Error(e.message||"Failed to fetch platform prices")}let a=await t.json();return n(a),a}catch(e){return console.error("Error fetching platform prices:",e),r(e instanceof Error?e.message:"Unknown error occurred"),null}finally{t(!1)}},[])}}(),p=s.useRef(!1);s.useEffect(()=>{a&&t&&!p.current&&(u(t),p.current=!0),a||(p.current=!1)},[a,t]);let h=(0,s.useCallback)(()=>{t&&u(t)},[t,u]);return(0,r.jsx)(j,{open:a,onOpenChange:i,children:(0,r.jsxs)(k,{className:"sm:max-w-[625px]",children:[(0,r.jsxs)(S,{children:[(0,r.jsx)(R,{children:l("dialogTitle")}),(0,r.jsxs)(z,{children:[l("platformPricesTitle")," ",(0,r.jsx)("strong",{children:t})]})]}),(0,r.jsx)("div",{className:"mt-4",children:c?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-10",children:[(0,r.jsx)(o.Z,{className:"h-8 w-8 text-blue-500 animate-spin mb-4"}),(0,r.jsx)("p",{className:"text-gray-500",children:l("loading")})]}):d?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-10",children:[(0,r.jsx)("p",{className:"text-red-500 mb-4",children:l("error")}),(0,r.jsx)(g.z,{variant:"outline",onClick:h,children:l("tryAgain")})]}):m&&m.prices.length>0?(0,r.jsxs)("div",{className:"overflow-x-auto",children:[(0,r.jsxs)("table",{className:"w-full border-collapse",children:[(0,r.jsx)("thead",{className:"bg-gray-50",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:l("platformColumn")}),(0,r.jsx)("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:l("priceColumn")}),(0,r.jsx)("th",{className:"px-4 py-3 text-center text-xs font-medium text-gray-500 uppercase tracking-wider",children:l("actionColumn")})]})}),(0,r.jsx)("tbody",{children:m.prices.map((e,t)=>(0,r.jsxs)("tr",{className:"hover:bg-gray-50 border-b border-gray-100 last:border-b-0",children:[(0,r.jsx)("td",{className:"px-4 py-4 text-sm font-medium text-gray-900",children:e.platform}),(0,r.jsxs)("td",{className:"px-4 py-4 text-sm text-green-600",children:[e.currency," ",e.price]}),(0,r.jsx)("td",{className:"px-4 py-4 text-sm text-center",children:(0,r.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center px-3 py-1.5 text-sm font-medium text-gray-600 bg-gray-50 border border-gray-200 rounded-md hover:bg-gray-100 hover:text-gray-800 hover:border-gray-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500",children:[(0,r.jsx)(x.Z,{className:"h-3.5 w-3.5 mr-1"}),l("visitButton")]})})]},"".concat(e.platform,"-").concat(t)))})]}),(0,r.jsx)("div",{className:"mt-4 text-xs text-gray-500 italic",children:l("pricingDisclaimer")})]}):(0,r.jsxs)("div",{className:"text-center py-10",children:[(0,r.jsx)("p",{className:"text-gray-500 mb-4",children:l("noPricesAvailable")}),(0,r.jsx)("p",{className:"text-xs text-gray-500 italic",children:l("pricingDisclaimer")})]})})]})})}function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";if(!e)return"-";try{return("string"==typeof e?new Date(e):e).toLocaleDateString(t,{year:"numeric",month:"short",day:"numeric"})}catch(t){return console.error("æ¥ææ ¼å¼åé误:",t),"string"==typeof e?e:e.toString()}}z.displayName=b.dk.displayName;var T=a(1268);function E(e){var t;let{domains:a}=e,l=(0,n.useTranslations)("hero.results");(0,n.useTranslations)("domainPrices");
1let[c,b]=(0,s.useState)(null),[v,N]=(0,s.useState)(null),[w,E]=(0,s.useState)(!1),I=(null===(t=(0,y.useParams)())||void 0===t?void 0:t.locale)||"zh",[Z,_]=(0,s.useState)(""),[O,P]=(0,s.useState)(null),F={zh:"zh-CN",en:"en-US"}[I]||I;(0,s.useCallback)(e=>{b(e),E(!0),setTimeout(()=>E(!1),500)},[]),(0,s.useCallback)(e=>{N(e)},[]);let L=(0,s.useCallback)(e=>{navigator.clipboard.writeText(e).then(()=>{P(e),setTimeout(()=>{P(null)},3e3)}).catch(e=>{console.error("å¤å¶å¤±è´¥ï¼",e),i.toast.error("å¤å¶å¤±è´¥ï¼è¯·æå¨å¤å¶")})},[]),V=(0,s.useCallback)(()=>{b(null)},[]),q=(0,s.useCallback)(()=>{N(null)},[]),A=e=>{if("registered"!==e.status||!e.registrationDate)return(0,r.jsx)("div",{className:"text-gray-400",children:"-"});{let t=new Date(e.registrationDate),a=new Date,s=Math.floor(Math.abs(a.getTime()-t.getTime())/864e5);if(0===s)return(0,r.jsx)("div",{className:"font-bold text-blue-600",children:l("timeAgo.today")});if(1===s)return(0,r.jsx)("div",{className:"font-bold text-blue-600",children:l("timeAgo.yesterday")});{let e=t.getFullYear(),s=t.getMonth()+1,i=t.getDate(),n=s.toString().padStart(2,"0"),o=i.toString().padStart(2,"0");return a.getMonth()===t.getMonth()&&a.getFullYear()===t.getFullYear()?(0,r.jsxs)("div",{className:"text-gray-600",children:[e,"/",n,"/",(0,r.jsx)("span",{className:"font-bold text-blue-600",children:o})]}):a.getFullYear()===t.getFullYear()?(0,r.jsxs)("div",{className:"text-gray-600",children:[e,"/",(0,r.jsx)("span",{className:"font-bold text-blue-600",children:n}),"/",o]}):(0,r.jsxs)("div",{className:"text-gray-600",children:[(0,r.jsx)("span",{className:"font-bold text-blue-600",children:e}),"/",n,"/",o]})}}},M=e=>"error"===e.status?l("status.unknown"):l("status.".concat(e.status)),Y=e=>{switch(e){case"available":return"text-green-700 bg-green-50";case"registered":return"text-gray-700 bg-gray-50";case"checking":case"pending":return"text-blue-700 bg-blue-50";default:return"text-slate-600 bg-slate-50"}},H=e=>{if(!Z||""===Z.trim())return e;let t=RegExp("(".concat(Z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),")"),"gi");return e.replace(t,'<span class="bg-yellow-200">$1</span>')},U=[...a].filter(e=>!Z||e.domain.toLowerCase().includes(Z.toLowerCase())).sort((e,t)=>e.domain.localeCompare(t.domain));if(a.length,a.filter(e=>"available"===e.status).length,a.filter(e=>"registered"===e.status).length,a.filter(e=>["pending","checking"].includes(e.status)).length,a.filter(e=>"error"===e.status||"unknown"===e.status).length,0===a.length)return null;let J=e=>{switch(e){case"available":return"text-green-600 hover:text-green-800";case"registered":return"text-gray-600 hover:text-gray-800";case"checking":case"pending":return"text-blue-600 hover:text-blue-800";default:return"text-slate-600 hover:text-slate-800"}},W=e=>(0,r.jsxs)("div",{className:"bg-white rounded-md border border-gray-200 p-3 mb-3",children:[(0,r.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,r.jsxs)("button",{className:"font-medium transition-colors cursor-pointer flex items-center text-left ".concat(J(e.status)),onClick:()=>L(e.domain),children:[(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:H(e.domain)}}),O===e.domain?(0,r.jsx)(d.Z,{className:"h-4 w-4 ml-1 text-green-500"}):(0,r.jsx)(m.Z,{className:"h-4 w-4 ml-1 text-gray-400 opacity-70 hover:opacity-100"})]}),(0,r.jsx)("span",{className:(0,h.cn)("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",Y(e.status)),children:"checking"===e.status||"pending"===e.status?(0,r.jsx)(o.Z,{className:"h-3 w-3 animate-spin"}):M(e)})]}),(0,r.jsx)("div",{className:"text-sm mb-3",children:A(e)}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:"available"===e.status?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(f.default,{href:{pathname:"/".concat(I,"/seo"),query:{domain:e.domain}},passHref:!0,children:(0,r.jsxs)(g.z,{variant:"outline",size:"sm",className:"inline-flex items-center px-2 py-1 text-xs font-medium rounded border border-gray-200 bg-gray-50 text-gray-600 hover:bg-gray-100 hover:text-gray-800 hover:border-gray-300",children:[(0,r.jsx)(u.Z,{className:"h-3 w-3 mr-1"}),l("actions.aiWebsite")]})})}):"registered"===e.status?(0,r.jsxs)(g.z,{variant:"outline",size:"sm",className:"inline-flex items-center px-2 py-1 text-xs font-medium rounded border border-gray-200 bg-gray-50 text-gray-600 hover:bg-gray-100 hover:text-gray-800 hover:border-gray-300",onClick:()=>window.open("https://".concat(e.domain),"_blank","noopener,noreferrer"),children:[(0,r.jsx)(x.Z,{className:"h-3 w-3 mr-1"}),(0,r.jsx)("span",{children:l("actions.visit")})]}):(0,r.jsx)("span",{className:"text-gray-400",children:"-"})})]},e.domain);return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"bg-white rounded-lg p-4 shadow-sm border border-gray-200",children:[(0,r.jsxs)("div",{className:"mb-4 relative",children:[(0,r.jsx)(p.Z,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 h-5 w-5"}),(0,r.jsx)(T.I,{type:"text",placeholder:l("searchPlaceholder"),value:Z,onChange:e=>_(e.target.value),className:"pl-10"})]}),Z&&(0,r.jsx)("div",{className:"mb-4 text-sm text-gray-600",children:l("filteredResults",{count:U.length})}),(0,r.jsx)("div",{className:"md:hidden",children:U.map(e=>W(e))}),(0,r.jsx)("div",{className:"hidden md:block overflow-x-auto",children:(0,r.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,r.jsx)("thead",{className:"bg-gray-50",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"col",className:"px-3 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/4",children:l("table.domain")}),(0,r.jsx)("th",{scope:"col",className:"px-3 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/6",children:l("table.status")}),(0,r.jsx)("th",{scope:"col",className:"px-3 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/3",children:l("registrationInfo.registrationDate")}),(0,r.jsx)("th",{scope:"col",className:"px-3 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/4",children:l("table.actions")})]})}),(0,r.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:U.map(e=>(0,r.jsxs)("tr",{className:"hover:bg-gray-50",style:{height:"64px"},children:[(0,r.jsx)("td",{className:"px-3 py-4 whitespace-nowrap",children:(0,r.jsxs)("button",{className:"transition-colors cursor-pointer flex items-center group ".concat(J(e.status)),onClick:()=>L(e.domain),children:[(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:H(e.domain)}}),O===e.domain?(0,r.jsx)(d.Z,{className:"h-4 w-4 ml-1 text-green-500"}):(0,r.jsx)(m.Z,{className:"h-4 w-4 ml-1 text-gray-400 opacity-0 group-hover:opacity-70 hover:opacity-100 transition-opacity"})]})}),(0,r.jsx)("td",{className:"px-3 py-4 whitespace-nowrap",children:(0,r.jsx)("span",{className:(0,h.cn)("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",Y(e.status)),children:"checking"===e.status||"pending"===e.status?(0,r.jsx)(o.Z,{className:"h-3 w-3 animate-spin"}):M(e)})}),(0,r.jsx)("td",{className:"px-3 py-4",children:(0,r.jsx)("div",{children:A(e)})}),(0,r.jsx)("td",{className:"px-3 py-4 whitespace-nowrap",children:(0,r.jsx)("div",{className:"flex space-x-2",children:"available"===e.status?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(f.default,{href:{pathname:"/".concat(I,"/seo"),query:{domain:e.domain}},passHref:!0,children:(0,r.jsxs)(g.z,{variant:"outline",size:"sm",className:"inline-flex items-center px-2 py-1 text-xs font-medium rounded border border-gray-200 bg-gray-50 text-gray-600 hover:bg-gray-100 hover:text-gray-800 hover:border-gray-300",children:[(0,r.jsx)(u.Z,{className:"h-3 w-3 mr-1"}),l("actions.aiWebsite")]})})}):"registered"===e.status?(0,r.jsxs)(g.z,{variant:"outline",size:"sm",className:"inline-flex items-center px-2 py-1 text-xs font-medium rounded border border-gray-200 bg-gray-50 text-gray-600 hover:bg-gray-100 hover:text-gray-800 hover:border-gray-300",onClick:()=>window.open("https://".concat(e.domain),"_blank","noopener,noreferrer"),children:[(0,r.jsx)(x.Z,{className:"h-3 w-3 mr-1"}),(0,r.jsx)("span",{children:l("actions.visit")})]}):(0,r.jsx)("span",{className:"text-gray-400",children:"-"})})})]},e.domain))})]})})]}),c&&(0,r.jsx)(C,{domain:c,open:!!c,onOpenChange:e=>{e||V()}}),v&&(0,r.jsx)(j,{open:!!v,onOpenChange:e=>{e||q()},children:(0,r.jsxs)(k,{className:"sm:max-w-[625px] max-h-[80vh] overflow-y-auto",children:[(0,r.jsxs)(S,{children:[(0,r.jsx)(R,{children:l("whois.dialogTitle")}),(0,r.jsxs)(z,{children:[l("whois.domainDetailDescription")," ",(0,r.jsx)("strong",{className:J(v.status),children:v.domain})]})]}),(0,r.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-500",children:l("whois.status")}),(0,r.jsx)("div",{className:"text-sm text-gray-900",children:(0,r.jsx)("span",{className:(0,h.cn)("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",Y(v.status)),children:M(v)})})]}),v.registrar&&(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-500",children:l("whois.registrar")}),(0,r.jsx)("div",{className:"text-sm text-gray-900",children:v.registrar})]}),v.registrationDate&&(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-500",children:l("registrationInfo.registrationDate")}),(0,r.jsx)("div",{className:"text-sm text-gray-900",children:D(v.registrationDate,F)})]}),(v.expiryDate||v.expirationDate)&&(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-500",children:l("registrationInfo.expiryDate")}),(0,r.jsx)("div",{className:"text-sm text-gray-900",children:D(v.expiryDate||v.expirationDate||"",F)})]}),v.whoisData&&(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-500 mb-2",children:l("whois.rawData")}),(0,r.jsx)("pre",{className:"bg-gray-50 p-3 rounded text-xs text-gray-800 overflow-x-auto max-h-[300px] overflow-y-auto whitespace-pre-wrap",children:v.whoisData})]}),!v.whoisData&&"registered"===v.status&&(0,r.jsx)("div",{className:"text-center py-4",children:(0,r.jsx)("p",{className:"text-sm text-gray-500",children:l("whois.dataUnavailable")})}),"available"===v.status&&(0,r.jsx)("div",{className:"text-center py-4",children:(0,r.jsx)("p",{className:"text-sm text-green-600 font-medium",children:l("whois.domainAvailable")})})]})]})})]})}function I(){var e;let t=(0,n.useTranslations)("hero"),a=(0,n.useTranslations)("extension"),d=(null===(e=(0,y.useParams)())||void 0===e?void 0:e.locale)||"zh",[m,u]=(0,s.use
1State)(""),[x,p]=(0,s.useState)(null),[h,b]=(0,s.useState)(!1),[v,j]=(0,s.useState)(""),N=[t("form.keyword.suggestions.domain1"),t("form.keyword.suggestions.domain2"),t("form.keyword.suggestions.domain3"),t("form.keyword.suggestions.domain4"),t("form.keyword.suggestions.domain5")],[w,k]=(0,s.useState)(0),[S,R]=(0,s.useState)(!0),[z,C]=(0,s.useState)(0),[D,T]=(0,s.useState)([]);(0,s.useEffect)(()=>{let e="domain-extension-preferences";try{let t=localStorage.getItem("domainExtConfigVersion");if(!t||2>parseInt(t)){let t=c.Df.filter(e=>"popular"===e.category).sort((e,t)=>{let a={veryHigh:0,high:1,medium:2,low:3};return a[e.popularity||"low"]-a[t.popularity||"low"]}).slice(0,15).map(e=>e.extension);localStorage.setItem(e,JSON.stringify(t)),localStorage.setItem("domainExtConfigVersion","2"),T(t);return}let a=localStorage.getItem(e);if(a){let t=JSON.parse(a);if(Array.isArray(t)&&t.length>0){let a=t.slice(0,15);a.length<t.length&&localStorage.setItem(e,JSON.stringify(a)),T(a);return}}let r=c.Df.filter(e=>"popular"===e.category).slice(0,15).map(e=>e.extension);T(r)}catch(e){console.error("ä»localStorageå è½½åååç¼é
置失败:",e),T(c.Df.filter(e=>"popular"===e.category).slice(0,15).map(e=>e.extension))}},[]);
1let[I,Z]=(0,s.useState)([]),[_,O]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e;let t=N[w];if(t)return S?e=z<t.length?setTimeout(()=>{j(t.slice(0,z+1)),C(e=>e+1)},100):setTimeout(()=>{R(!1)},2e3):z>0?e=setTimeout(()=>{j(t.slice(0,z-1)),C(e=>e-1)},50):(k(e=>(e+1)%N.length),R(!0)),()=>clearTimeout(e)},[z,w,S]);let P=async e=>{if(_)return;O(!0),Z([]);let t=e.replace(/\s+/g,""),a=c.Df.filter(e=>D.includes(e.extension)),r=(0,c.Mo)(t,a);await L(r)},F=async e=>{if(e.preventDefault(),p(null),b(!0),!m.trim()){p(t("validation.keywordRequired"));return}if(m.length>50){p(t("validation.keywordTooLong"));return}let a=m.replace(/\s+/g,"");if(!(0,c.zx)(a)){p(t("validation.invalidKeyword"));return}if(0===D.length){p(t("validation.extensionRequired"));return}await P(m)},L=async e=>{try{let a=e.map(e=>({domain:e,status:"pending"}));Z(a),Z(e=>e.map(e=>({...e,status:"checking"})));let r=new EventSource("/api/domain-info/stream?domains=".concat(encodeURIComponent(e.join(",")))),s=0;if(r.addEventListener("domain-update",e=>{try{let t=JSON.parse(e.data);Z(e=>{let a=[...e],r=a.findIndex(e=>e.domain===t.domain);return -1!==r&&(a[r]=t),a}),"checking"!==t.status&&"pending"!==t.status&&s++}catch(e){console.error(t("logs.parseDomainUpdateError"),e)}}),r.addEventListener("complete",e=>{r.close(),O(!1)}),r.addEventListener("error",e=>{console.error(t("logs.streamError"),e),r.close(),Z(e=>e.map(e=>"checking"===e.status||"pending"===e.status?{...e,status:"error",error:t("results.toast.error")}:e)),i.toast.error(t("results.toast.error")),O(!1)}),!window.EventSource){r.close();let t=await fetch("/api/domain-info",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domains:e})});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let a=await t.json();Z(e=>{let t=[...e];return a.forEach(e=>{let a=t.findIndex(t=>t.domain===e.domain);-1!==a&&(t[a]=e)}),t}),O(!1)}}catch(e){console.error("Error in domain batch check:",e),Z(t=>t.map(t=>"checking"===t.status||"pending"===t.status?{...t,status:"error",error:e instanceof Error?e.message:String(e)}:t)),i.toast.error(t("results.toast.error")),O(!1)}};return(0,r.jsx)("div",{className:"bg-gray-50",children:(0,r.jsxs)("div",{className:"container mx-auto px-4 py-12 md:py-20",children:[(0,r.jsxs)("div",{className:"text-center mb-12",children:[(0,r.jsx)("h1",{className:"text-4xl md:text-5xl font-bold mb-4 text-gray-800",children:t("title")}),(0,r.jsx)("p",{className:"text-lg md:text-xl text-gray-600 max-w-3xl mx-auto",children:t("subtitle")})]}),(0,r.jsx)("div",{className:"max-w-4xl mx-auto mb-8 bg-white rounded-lg shadow-sm border border-gray-100 overflow-hidden relative",children:(0,r.jsxs)("form",{onSubmit:F,className:"p-6",children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{htmlFor:"domain-keyword",className:"block text-lg font-medium mb-2",children:t("form.keyword.label")}),(0,r.jsxs)("div",{className:"mt-5 flex rounded-md shadow-sm",children:[(0,r.jsx)("input",{type:"text",id:"domain-keyword",value:m,onChange:e=>{let a=e.target.value;u(a),h?a.trim()?a.length>50?p(t("validation.keywordTooLong")):(0,c.zx)(a)?0===D.length?p(t("validation.extensionRequired")):p(null):p(t("validation.invalidKeyword")):p(t("validation.keywordRequired")):p(null)},placeholder:v||t("form.keyword.placeholder"),className:"flex-1 border border-gray-300 rounded-l-md py-3 px-4 text-lg focus:ring-blue-500 focus:border-blue-500",disabled:_}),(0,r.jsx)("button",{type:"submit",className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-r-md font-medium transition-colors duration-200 flex items-center justify-center",disabled:_,children:_?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{className:"animate-spin mr-2 h-5 w-5"}),t("form.submit.searching")]}):t("form.submit.button")})]}),(0,r.jsx)("div",{className:"h-6 mt-2",children:h&&x&&(0,r.jsx)("p",{className:"text-sm text-red-600",children:x})})]}),(0,r.jsx)("div",{className:"absolute top-4 right-4",children:(0,r.jsx)(f.default,{href:"/".concat(d,"/domain-config"),"aria-label":a("title"),children:(0,r.jsx)(g.z,{variant:"ghost",size:"icon",className:"h-10 w-10 rounded-full hover:bg-gray-100",title:a("title"),children:(0,r.jsx)(l.Z,{className:"h-8 w-8 text-gray-600"})})})})]})}),I.length>0&&(0,r.jsxs)("div",{className:"max-w-4xl mx-auto mt-8",children:[(0,r.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold",children:t("results.title")}),(0,r.jsx)("button",{onClick:()=>{Z([])},className:"text-sm text-gray-600 hover:text-red-500 flex items-center",children:t("results.clearResults")})]}),(0,r.jsx)(E,{domains:I})]})]})})}},6382:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return l}});var r=a(4297),s=a(4744),i=a(5917),n=a(656);let o=[{delay:.1},{delay:.2},{delay:.3},{delay:.4},{delay:.5},{delay:.6}];function l(){let e=(0,s.useTranslations)("whatsThis");return(0,r.jsx)("section",{id:"what-is-domain-lookup",className:"py-24 bg-white",children:(0,r.jsxs)("div",{className:"container px-4 mx-auto",children:[(0,r.jsxs)("div",{className:"max-w-4xl mx-auto text-center mb-16",children:[(0,r.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-gray-800",children:e("title")}),(0,r.jsx)("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto",children:e("description")}),(0,r.jsx)("div",{className:"mt-8 flex flex-wrap justify-center gap-2 text-xs text-gray-500",children:e.rich("keywords",{keyword:e=>(0,r.jsx)("span",{className:"px-2 py-1 bg-gray-50 rounded-md border border-gray-100",children:e})})})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:o.map((t,a)=>(0,r.jsxs)(n.E.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:t.delay},viewport:{once:!0},className:"relative group",children:[(0,r.jsx)("div",{className:(0,i.cn)("absolute inset-0 rounded-xl opacity-0 group-hover:opacity-100","transition-opacity duration-300 -z-10","bg-gray-50")}),(0,r.jsx)("div",{className:(0,i.cn)("relative p-6 bg-white shadow-sm hover:shadow-md border border-gray-100 hover:border-gray-200 transition-all duration-300 hover:translate-y-[-5px] flex flex-col items-start text-left gap-4 roun
1ded-xl h-full"),children:(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-xl font-semibold text-gray-800 mb-2",children:e("features.".concat(a,".title"))}),(0,r.jsx)("p",{className:"text-gray-600 text-sm",children:e("features.".concat(a,".description"))})]})})]},a))}),(0,r.jsx)("div",{className:"mt-16 text-center",children:(0,r.jsx)("p",{className:"text-gray-500 text-sm max-w-4xl mx-auto",children:e.rich("seoText",{strong:e=>(0,r.jsx)("strong",{className:"text-gray-700",children:e})})})})]})})}},8950:function(e,t,a){"use strict";a.d(t,{Qd:function(){return c},UQ:function(){return l},o4:function(){return d},vF:function(){return m}});var r=a(4297),s=a(3812),i=a(5801),n=a(1618),o=a(5917);let l=i.fC,c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(i.ck,{ref:t,className:(0,o.cn)("border-b",a),...s})});c.displayName="AccordionItem";let d=s.forwardRef((e,t)=>{let{className:a,children:s,...l}=e;return(0,r.jsx)(i.h4,{className:"flex",children:(0,r.jsxs)(i.xz,{ref:t,className:(0,o.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",a),...l,children:[s,(0,r.jsx)(n.Z,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})});d.displayName=i.xz.displayName;let m=s.forwardRef((e,t)=>{let{className:a,children:s,...n}=e;return(0,r.jsx)(i.VY,{ref:t,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:(0,r.jsx)("div",{className:(0,o.cn)("pb-4 pt-0",a),children:s})})});m.displayName=i.VY.displayName},7021:function(e,t,a){"use strict";a.d(t,{z:function(){return c}});var r=a(4297),s=a(3812),i=a(5668),n=a(8355),o=a(5917);let l=(0,n.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:a,variant:s,size:n,asChild:c=!1,...d}=e,m=c?i.g7:"button";return(0,r.jsx)(m,{className:(0,o.cn)(l({variant:s,size:n,className:a})),ref:t,...d})});c.displayName="Button"},1268:function(e,t,a){"use strict";a.d(t,{I:function(){return n}});var r=a(4297),s=a(3812),i=a(5917);let n=s.forwardRef((e,t)=>{let{className:a,type:s,...n}=e;return(0,r.jsx)("input",{type:s,className:(0,i.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2","text-sm ring-offset-background file:border-0 file:bg-transparent","file:text-sm file:font-medium placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2","focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...n})});n.displayName="Input"},1016:function(e,t,a){"use strict";function r(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function s(e){let t=r(e);return t.length>0&&!t.startsWith("-")&&!t.endsWith("-")}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o(),a=[],s=r(e);if(!s)return a;for(let e of t)a.push("".concat(s).concat(e.extension));return a}a.d(t,{Df:function(){return l},Mo:function(){return i},O:function(){return n},o9:function(){return o},zx:function(){return s}});let n={popular:"popular",professional:"professional",tech:"tech",business:"business",country:"country"};function o(){return[{id:"com",extension:".com",purpose:"com",category:"popular",popularity:"veryHigh",priceRange:"medium"},{id:"org",extension:".org",purpose:"org",category:"popular",popularity:"high",priceRange:"medium"},{id:"net",extension:".net",purpose:"net",category:"popular",popularity:"high",priceRange:"medium"},{id:"pro",extension:".pro",purpose:"pro",category:"popular",popularity:"medium",priceRange:"medium"},{id:"io",extension:".io",purpose:"io",category:"popular",popularity:"high",priceRange:"high"},{id:"me",extension:".me",purpose:"me",category:"popular",popularity:"medium",priceRange:"medium"},{id:"ai",extension:".ai",purpose:"ai",category:"popular",popularity:"high",priceRange:"high"},{id:"co",extension:".co",purpose:"co",category:"professional",popularity:"high",priceRange:"medium"},{id:"cc",extension:".cc",purpose:"cc",category:"professional",popularity:"medium",priceRange:"medium"},{id:"top",extension:".top",purpose:"top",category:"professional",popularity:"medium",priceRange:"low"},{id:"info",extension:".info",purpose:"info",category:"professional",popularity:"medium",priceRange:"low"},{id:"xyz",extension:".xyz",purpose:"xyz",category:"professional",popularity:"medium",priceRange:"low"},{id:"site",extension:".site",purpose:"site",category:"professional",popularity:"medium",priceRange:"low"},{id:"online",extension:".online",purpose:"online",category:"professional",popularity:"medium",priceRange:"medium"},{id:"app",extension:".app",purpose:"app",category:"tech",popularity:"high",priceRange:"medium"},{id:"dev",extension:".dev",purpose:"Developer resources",category:"tech",popularity:"high",priceRange:"medium"}
1,{id:"tech",extension:".tech",purpose:"tech",category:"tech",popularity:"medium",priceRange:"medium"},{id:"biz",extension:".biz",purpose:"biz",category:"business",popularity:"medium",priceRange:"medium"},{id:"store",extension:".store",purpose:"store",category:"business",popularity:"medium",priceRange:"medium"},{id:"shop",extension:".shop",purpose:"shop",category:"business",popularity:"medium",priceRange:"medium"},{id:"inc",extension:".inc",purpose:"inc",category:"business",popularity:"low",priceRange:"high"},{id:"us",extension:".us",purpose:"us",category:"country",popularity:"medium",priceRange:"medium"},{id:"uk",extension:".uk",purpose:"uk",category:"country",popularity:"high",priceRange:"medium"},{id:"cn",extension:".cn",purpose:"cn",category:"country",popularity:"high",priceRange:"medium"},{id:"jp",extension:".jp",purpose:"jp",category:"country",popularity:"medium",priceRange:"medium"},{id:"de",extension:".de",purpose:"de",category:"country",popularity:"medium",priceRange:"medium"}]}let l=o()},5917:function(e,t,a){"use strict";a.d(t,{cn:function(){return i}});var r=a(8243),s=a(6038);function i(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.m6)((0,r.W)(t))}}},function(e){e.O(0,[841,211,218,91,933,455,131,681,452,744],function(){return e(e.s=4057)}),_N_E=e.O()}]);
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.