PageSourceSearch

https://founden.ai/_next/static/chunks/63267-2685d8de6d8ed34a.js

js founden.ai collected 2026-10-05 13:50:45 UTC 50,894 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63267],{944:(e,s,t)=>{"use strict";t.d(s,{T:()=>n});let a={pending_payment:"Awaiting payment",configuring:"Payment Confirmed",registering:"Registering",dns_setup:"Configuring DNS",registered_pending_attach:"Registered",active:"Active",failed:"Failed",needs_registrant_info:"Needs info",external:"Owned elsewhere",dry_run:"Test purchase",queued:"Setting up",waiting_for_provider:"Waiting for provider",verifying:"Verifying",waiting_for_capacity:"Waiting for capacity"},n=e=>a[e]||e},16097:e=>{e.exports={wrap:"KeywordInsight_wrap__hWdnH",chip:"KeywordInsight_chip__0vNs9",tip:"KeywordInsight_tip__2Bjiw"}},21041:e=>{e.exports={wrap:"TldSelector_wrap__3UYS8",controls:"TldSelector_controls__HIbsz",search:"TldSelector_search__CxfgY",themes:"TldSelector_themes__atotA",actions:"TldSelector_actions__BX40f",list:"TldSelector_list__ULHXL",row:"TldSelector_row__ztPUx",rowInner:"TldSelector_rowInner__u7V_y",price:"TldSelector_price__2Iepn"}},32339:(e,s,t)=>{"use strict";t.d(s,{Ay:()=>h,j7:()=>p});var a=t(54568),n=t(72902),i=t(8986),l=t(32800),r=t(97587),o=t(11526),d=t(31762),c=t(80534),u=t.n(c);function m(e){let{label:s,state:t}=e;return(0,a.jsxs)("div",{className:u().step,children:[(0,a.jsx)("span",{className:u().marker,children:"done"===t||"active"===t?(0,a.jsx)(o.A,{active:"active"===t,done:"done"===t}):(0,a.jsx)("span",{className:u().ring})}),(0,a.jsx)(d.A,{className:u().label,muted:"pending"===t,weight:"active"===t||"waiting"===t?"semibold":"regular",children:s})]})}function h(e){let{steps:s}=e;return(0,a.jsx)("div",{className:u().steps,children:s.map(e=>(0,a.jsx)(m,{...e},e.label))})}function p(e){let{stateKey:s,words:t,steps:n,children:r}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(i.A,{children:(0,a.jsx)(g,{children:t},s)}),(0,a.jsx)(l.A,{open:null!==n,keepMounted:!1,children:(0,a.jsxs)("div",{className:u().ladder,children:[n&&(0,a.jsx)(h,{steps:n}),r]})})]})}function g(e){let{children:s}=e,{props:t}=(0,i.c)();return(0,a.jsx)("div",{...t,className:(0,n.A)(r.YT.presence,u().words),children:s})}},34340:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});var a=t(54568),n=t(46136),i=t(31762);t(7620);let l=e=>{let{children:s,...t}=e;return(0,a.jsx)(i.A,{size:"xs",muted:!0,weight:"semibold",as:"span",inline:!0,style:{whiteSpace:"nowrap",...t.style},...t,children:s})},r=e=>
1{let{text:s,size:t=16,preset:i="★ Thinking",className:r,gap:o="var(--spacing-sm)"}=e;return(0,a.jsxs)("div",{className:r,style:{display:"inline-flex",alignItems:"center",gap:o,flexShrink:0,minWidth:"max-content"},children:[(0,a.jsx)("div",{style:{display:"flex",flexShrink:0},children:(0,a.jsx)(n.A,{size:t,preset:i})}),(0,a.jsx)(l,{children:s})]})}},53562:e=>{e.exports={wrap:"SignalBars_wrap__4KlYt",sm:"SignalBars_sm__tsgYS",md:"SignalBars_md__ZM0tV",bar:"SignalBars_bar__gFLBX",on:"SignalBars_on__aB9v5",strong:"SignalBars_strong__QgQ_V"}},63267:(e,s,t)=>{"use strict";t.d(s,{WG:()=>eI,Ay:()=>eP});var a=t(54568),n=t(1233),i=t(72223),l=t(1467),r=t(95964),o=t(68646),d=t(81995),c=t.n(d),u=t(81345),m=t.n(u),h=t(32202),p=t(52055),g=t(17998),x=t(13887),_=t(45856),f=t(87021),v=t(94203),j=t(44617),y=t(2699),w=t(282),b=t(22228),A=t(28073),S=t(21279),k=t(73657),N=t(415),C=t(69561),E=t(84672),R=t(28788),z=t(25081),D=t(4578),T=t(83829),L=t(52213),M=t(69091),I=t(84554),P=t(32339),O=t(11526),F=t(64345),B=t(31762),W=t(7620),H=t(93796),U=t(13930),Y=t(10980),q=t(21041),K=t.n(q);let G=[{value:"alpha",label:"Alphabetical"},{value:"short",label:"Shortest first"},{value:"popular",label:"Most popular"}];function V(e){let{tlds:s,themes:t,selected:n,onChange:i}=e,[l,r]=(0,W.useState)(""),[o,d]=(0,W.useState)("alpha"),[c,u]=(0,W.useState)(new Set),m=(0,W.useMemo)(()=>{let e=s,t=l.trim().toLowerCase();t&&(e=e.filter(e=>e.tld.includes(t))),c.size&&(e=e.filter(e=>e.themes.some(e=>c.has(e))));let a={alpha:(e,s)=>e.tld.localeCompare(s.tld),short:(e,s)=>e.length-s.length||e.tld.localeCompare(s.tld),popular:(e,s)=>e.popularity-s.popularity||e.tld.localeCompare(s.tld)};return[...e].sort(a[o]||a.alpha)},[s,l,c,o]),h=e=>{let s=new Set(n);m.forEach(t=>e?s.add(t.tld):s.delete(t.tld)),i(s)};return(0,a.jsxs)("div",{className:K().wrap,children:[(0,a.jsxs)("div",{className:K().controls,children:[(0,a.jsx)(U.A,{value:l,onChange:e=>r(e.target.value),onClear:()=>r(""),placeholder:"Search extensions...",wrapperClassName:K().search}),(0,a.jsx)(Y.A,{value:o,options:G,onChange:e=>{var s;return d(Array.isArray(e)?null!=(s=e[0])?s:"alpha":e)},size:"sm",variant:"minimal"})]}),(0,a.jsx)("div",{className:K().themes,children:t.map(e=>(0,a.jsx)(v.default,{variant:c.has(e)?"secondary":"text",onClick:()=>(e=>{let s=new Set(c);s.has(e)?s.delete(e):s.add(e),u(s)})(e),children:e},e))}),(0,a.jsxs)("div",{className:K().actions,children:[(0,a.jsxs)(B.A,{size:"small",muted:!0,children:[n.size," of ",s.length," extensions selected"]}),(0,a.jsxs)("div",{className:K().controls,children:[(0,a.jsx)(v.default,{variant:"text",onClick:()=>h(!0),children:"Select shown"}),(0,a.jsx)(v.default,{variant:"text",onClick:()=>h(!1),children:"Clear shown"})]})]}),(0,a.jsx)("div",{className:K().list,children:m.map(e=>(0,a.jsx)(z.A,{onClick:()=>(e=>{let s=new Set(n);s.has(e)?s.delete(e):s.add(e),i(s)})(e.tld),className:K().row,children:(0,a.jsxs)("div",{className:K().rowInner,children:[(0,a.jsx)(H.A,{checked:n.has(e.tld),readOnly:!0,ariaLabel:e.tld}),(0,a.jsxs)(B.A,{weight:"medium",children:[".",e.tld]}),null!=e.price&&(0,a.jsxs)(B.A,{size:"small",muted:!0,className:K().price,children:["$",e.price,"/yr"]})]})},e.tld))})]})}var $=t(13535);let J=JSON.parse('{"lC":{"total_length":{"label":"Shortest domain","description":"Shortest complete domain first","modes":["suggest-names","search-extensions","suggest-extensions"]},"annual_price":{"label":"Cheapest first year","description":"Lowest first-year price first, at the cheaper registrar","modes":["suggest-names","search-extensions","suggest-extensions"]},"renewal_price":{"label":"Cheapest to keep","description":"Lowest yearly renewal price first","modes":["suggest-names","search-extensions","suggest-extensions"]},"registration_total":{"label":"Lowest upfront","description":"Lowest amount charged at purchase first","modes":["suggest-names","search-extensions","suggest-extensions"]},"semantic_fit":{"label":"Best fit","description":"Closest meaning first","modes":["suggest-names"]},"brandability":{"label":"Brandable","description":"Strongest brand fit first","modes":["suggest-names"]},"label_length":{"label":"Shortest name","description":"Shortest name before the dot first","modes":["suggest-names"]}},"Fy":{"max_total_length":{"label":"Max length","description":"Longest complete domain, dots and extension included","unit":"characters","min":1,"max":253,"modes":["suggest-names","search-extensions"]},"max_label_length":{"label":"Max name length","description":"Longest name before the dot","unit":"characters","min":1,"max":63,"modes":["suggest-names"]},"max_annual_price":{"label":"Max first-year price","description":"Highest first-year price per year, in USD, at the cheaper registrar","unit":"usd_per_year","min":0,"max":1000000,"modes":["suggest-names","search-extensions","suggest-extensions"]},"max_renewal_price":{"label":"Max renewal price","description":"Highest yearly renewal price, in USD","unit":"usd_per_year","min":0,"max":1000000,"modes":["suggest-names","search-extensions","suggest-extensions"]},"max_registration_total":{"label":"Max upfront","description":"Highest amount charged at purchase, in USD","unit":"usd","min":0,"max":1000000,"modes":["suggest-names","search-extensions","suggest-extensions"]}},"ti":{"include":{"label":"Allowed","description":"Domain hacks may appear among the results"},"exclude":{"label":"No hacks","description":"No domain hacks"},"only":{"label":"Only hacks","description":"Only domain hacks, where the name reads across the dot"}},"E7":{"label":"Premium names","description":"Include registry premium names, which cost more than the standard price"},"NT":{"hacks":"include","allow_premium":true,"suggest_names_priorities":["semantic_fit"]}}');var Q=t(72902);let{lC:X,Fy:Z,ti:ee,E7:es,NT:et}=J,ea=Object.keys(X),en=Object.keys(Z),ei=Object.keys(ee),el=(e,s)=>e.modes.includes(s);function er(e,s,t){let a={};e&&"search-extensions"!==t&&(a.purpose=e);let n=function(e,s){let t={};for(let a of(void 0!==e.priorities&&(t.priorities=e.priorities&&e.priorities.filter(e=>el(X[e],s))),en))void 0!==e[a]&&el(Z[a],s)&&(t[a]=e[a]);return void 0!==e.hacks&&(t.hacks=e.hacks),void 0!==e.allow_premium&&(t.allow_premium=e.allow_premium),t}(s,t);return Object.keys(n).length>0&&(a.search_options=n),a}let eo=e=>Number.isInteger(e)?String(e):e.toFixed(2),ed={characters:{suffix:"characters",integer:!0,format:e=>String(e)},usd_per_year:{suffix:"USD/yr",integer:!1,format:e=>"$".concat(eo(e),"/yr")},usd:{suffix:"USD",integer:!1,format:e=>"$".concat(eo(e))}},ec=e=>{var s;return null!=(s=ed[Z[e].unit])?s:{suffix:"",integer:!1,format:String}};function eu(e){let{limit:s,value:t,onCommit:n}=e,i=Z[s],l=ec(s),r=(0,W.useId)(),o=null==t?"":String(t),d=e=>{let s=e.value.trim(),a=Number(s),r=e.validity.badInput||""!==s&&!Number.isFinite(a)?t:""===s?
1null:Math.min(i.max,Math.max(i.min,l.integer?Math.trunc(a):a));e.value=null==r?"":String(r),r!==t&&n(r)};return(0,a.jsxs)(F.default,{gap:"label","data-tooltip":i.description,children:[(0,a.jsx)(A.A,{htmlFor:r,noMargin:!0,children:i.label}),(0,a.jsx)(w.A,{id:r,type:"number",inputMode:l.integer?"numeric":"decimal",min:i.min,max:i.max,step:l.integer?1:"any",placeholder:"No limit",defaultValue:o,suffix:l.suffix?(0,a.jsx)(B.A,{muted:!0,children:l.suffix}):void 0,onBlur:e=>d(e.currentTarget),onKeyDown:e=>{"Enter"===e.key&&d(e.currentTarget)}},o)]})}function em(e){let{mode:s,overrides:t,onChange:n}=e,i=function(e){var s,t,a,n;let i=s=>e[s],l={};for(let e of en)l[e]=null!=(s=i(e))?s:null;return{priorities:(null!=(t=i("priorities"))?t:[]).filter(e=>Object.hasOwn(X,e)),hacks:null!=(a=i("hacks"))?a:et.hacks,allow_premium:null!=(n=i("allow_premium"))?n:et.allow_premium,...l}}(t),l=ea.filter(e=>el(X[e],s)),r=i.priorities.filter(e=>l.includes(e)),o=en.filter(e=>el(Z[e],s)),d=0===r.length,u=o.flatMap(e=>{let s=i[e];return null==s?[]:["".concat(Z[e].label," ").concat(ec(e).format(s))]});return i.allow_premium||u.push("No ".concat(es.label.toLowerCase())),(0,a.jsxs)("div",{className:(0,Q.A)(c().flexColumn,c().gapMd),children:[(0,a.jsxs)("div",{className:c().chipRow,children:[(0,a.jsx)(B.A,{muted:!0,children:"Prioritize"}),(0,a.jsx)(R.default,{shape:"pill",size:"sm",selected:d,onClick:()=>{d||n({priorities:null})},children:"Automatic"}),l.map(e=>{let s=r.indexOf(e)+1;return(0,a.jsx)("span",{"data-tooltip":X[e].description,children:(0,a.jsx)(R.default,{shape:"pill",size:"sm",selected:s>0,onClick:()=>n({priorities:i.priorities.includes(e)?i.priorities.filter(s=>s!==e):[...i.priorities,e]}),children:r.length>1&&s>0?"".concat(s," ").concat(X[e].label):X[e].label})},e)})]}),(0,a.jsxs)("div",{className:c().chipRow,children:[(0,a.jsx)(B.A,{muted:!0,children:"Domain hacks"}),ei.map(e=>(0,a.jsx)("span",{"data-tooltip":ee[e].description,children:(0,a.jsx)(R.default,{shape:"pill",size:"sm",selected:i.hacks===e,onClick:()=>n({hacks:e}),children:ee[e].label})},e))]}),(0,a.jsx)(b.A,{title:"Limits",subtitle:u.length>0?(0,a.jsx)("div",{className:c().recExtRow,children:u.map(e=>(0,a.jsx)(R.default,{tone:"outline",shape:"pill",size:"2xs",children:e},e))}):void 0,defaultOpen:!1,children:(0,a.jsxs)("div",{className:(0,Q.A)(c().flexColumn,c().gapMd),children:[(0,a.jsx)($.A,{minColWidth:"10rem",gap:"md",children:o.map(e=>(0,a.jsx)(eu,{limit:e,value:i[e],onCommit:s=>((e,s)=>{let t={};t[e]=s,n(t)})(e,s)},e))}),(0,a.jsx)("div",{className:c().chipRow,children:(0,a.jsx)("span",{"data-tooltip":es.description,children:(0,a.jsx)(R.default,{shape:"pill",size:"sm",selected:i.allow_premium,onClick:()=>n({allow_premium:!i.allow_premium}),children:es.label})})})]})})]})}var eh=t(53562),ep=t.n(eh);function eg(e){let{value:s,bars:t=4,size:n="sm",tone:i="muted",label:l,className:r}=e,o=Math.max(0,Math.min(100,s)),d=o<=0?0:Math.max(1,Math.min(t,Math.round(o/100*t)));return(0,a.jsx)("span",{className:(0,Q.A)(ep().wrap,ep()[n],r),role:"img","aria-label":null!=l?l:"".concat(Math.round(o),"%"),children:Array.from({length:t}).map((e,s)=>(0,a.jsx)("span",{className:(0,Q.A)(ep().bar,s<d&&ep().on,s<d&&"strong"===i&&ep().strong),style:{height:"".concat(Math.round((s+1)/t*100),"%")}},s))})}var ex=t(16097),e_=t.n(ex);function ef(e){let{volume:s,score:t,source:n}=e;if(null!=s){let e="".concat(s.toLocaleString()," searches / month");return(0,a.jsxs)("span",{className:e_().tip,"data-tooltip":e,children:[(0,a.jsx)(eg,{value:Math.max(0,Math.min(100,Math.round(Math.log10(s+1)/7*100))),label:e}),(0,a.jsx)(B.A,{size:"xs",muted:!0,children:s>=1e6?"".concat((s/1e6).toFixed(1),"M/mo"):s>=1e3?"".concat((s/1e3).toFixed(1),"K/mo"):"".concat(s,"/mo")})]})}if("trends"===n){let e="Trending ".concat(t,"%");return(0,a.jsx)("span",{className:e_().tip,"data-tooltip":e,children:(0,a.jsx)(eg,{value:t,label:e})})}return null}function ev(e){let{keywords:s,phrase:t,phraseScore:n,phraseSource:i,phraseVolume:l}=e;return s&&0!==s.length?(0,a.jsxs)("div",{className:e_().wrap,children:[t&&s.length>=2&&(null!=l||"trends"===i)&&(0,a.jsxs)("span",{className:e_().chip,children:[(0,a.jsxs)(B.A,{size:"small",weight:"medium",children:["“",t,"”"]}),(0,a.jsx)(ef,{volume:l,score:null!=n?n:0,source:i})]}),s.map(e=>(0,a.jsxs)("span",{className:e_().chip,children:[(0,a.jsx)(B.A,{size:"small",children:e.word}),(0,a.jsx)(ef,{volume:e.volume,score:e.score,source:e.source})]}
1,e.word))]}):null}var ej=t(34340),ey=t(90007),ew=t(62253),eb=t(66926),eA=t(944);function eS(e){let s=e.namecheap_price,t=parseFloat(String(e.price||"").replace(/[^\d.]/g,""));return"number"==typeof s&&!isNaN(t)&&s<t-.005}function ek(e){return e.price||(e.namecom_unsupported?e.namecheap_price_display:void 0)}let eN=(0,_.$)("Buy");function eC(e){let{opt:s,domain:t,isPurchasing:n,onBuy:i,upgradeAction:l}=e;return(0,a.jsxs)(L.A,{align:"center",gap:"sm",children:[(0,a.jsxs)("div",{className:m().optionDetails,children:[s.descriptor&&(0,a.jsx)(B.A,{size:"xs",muted:!0,children:s.descriptor}),s.price&&(0,a.jsx)(B.A,{size:"small",weight:"bold",className:m().priceText,children:s.price}),s.subLine&&(0,a.jsx)(B.A,{size:"xs",muted:!0,children:s.subLine})]}),null!=l?l:(0,a.jsx)(v.default,{size:"xs",variant:s.primary?"primary":"secondary","data-tooltip":s.tooltip,onClick:()=>i(t,s.registrar),isLoading:n===t,disabled:!!n,children:(0,a.jsxs)("span",{className:m().buyLabel,children:[(0,a.jsx)("span",{className:m().buyLabelShown,children:"Buy"}),(0,a.jsx)("span",{className:m().buyLabelReserve,"aria-hidden":"true",children:eN})]})})]})}function eE(e){let{suggestion:s,isPurchasing:t,onBuy:n,upgradeAction:i}=e,[l,r]=function(e){let s={key:"namecom",registrar:"namecom",registrarLabel:"name.com",descriptor:"name.com",price:e.price,subLine:function(e){let s=[],t=e=>(e||"").replace(/[^0-9.]/g,"");return e.renewal_price&&t(e.renewal_price)!==t(e.price)&&s.push("then ".concat(e.renewal_price)),e.min_years&&e.min_years>1&&s.push("".concat(e.min_years,"-yr min").concat(null!=e.price_total?" ($".concat(e.price_total.toFixed(2),")"):"")),s.length?s.join(" \xb7 "):void 0}(e),primary:!0},t=(s,t,a)=>({key:"namecheap",registrar:"namecheap",registrarLabel:"Namecheap",descriptor:s,price:e.namecheap_price_display,tooltip:a,primary:t}),a="You own it, but it stays with us: transferring it to another registrar later is not supported.";return e.namecom_unsupported?[t("Namecheap",!0,"Available through Namecheap. ".concat(a))]:eS(e)?[t("Cheapest \xb7 Namecheap",!0,"Cheapest price, registered through Namecheap. ".concat(a)),{...s,descriptor:"Transferable \xb7 name.com",tooltip:"A little more than Namecheap, but name.com gives you the EPP code so you can transfer the domain to any registrar anytime.",primary:!1}]:[s]}(s),[d,c]=(0,W.useState)(!1);return l?(0,a.jsxs)(F.default,{align:"end",gap:"xs",children:[(0,a.jsx)(eC,{opt:l,domain:s.domain,isPurchasing:t,onBuy:n,upgradeAction:i}),r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v.default,{variant:"text",size:"xs",icon:(0,a.jsx)(o.default,{name:d?"chevron-up":"chevron-down"}),onClick:()=>c(e=>!e),children:d?"Hide":"Other option"}),d&&(0,a.jsx)(eC,{opt:r,domain:s.domain,isPurchasing:t,onBuy:n,upgradeAction:i})]}):null]}):null}let eR=e=>{let s=null==e?void 0:e.trim().toLowerCase();return s&&Object.hasOwn(eb,s)?s:void 0},ez=[{id:"configuring",label:"Payment received"},{id:"registering",label:"Domain registered"},{id:"dns_setup",label:"Connected to your site"},{id:"active",label:"Live"}],eD=new Set(["configuring","registering","dns_setup"]),eT=e=>{let{domainName:s}=e,{data:t,isPending:n}=r.Ay.useQuery("get","/domain/{domain_name}/emails",{params:{path:{domain_name:s}}}),i=(null==t?void 0:t.emails)||[];return n?(0,a.jsx)(h.E,{className:m().emailSkeleton}):0===i.length?(0,a.jsxs)("div",{className:m().iconLine,children:[(0,a.jsx)("div",{className:m().stepIconWrapper,children:(0,a.jsx)(o.default,{name:"mail-open",className:m().emailIconEmpty})}),(0,a.jsx)(B.A,{size:"xs",muted:!0,children:"No email addresses configured for this domain"})]}):(0,a.jsx)(F.default,{gap:"sm",children:i.map(e=>(0,a.jsxs)("div",{className:m().emailItem,children:[(0,a.jsx)("div",{className:m().stepIconWrapper,children:(0,a.jsx)(o.default,{name:"mail",className:m().emailIcon})}),(0,a.jsxs)("div",{className:m().emailInfo,children:[(0,a.jsx)(B.A,{size:"base",weight:"medium",children:e.email}),(0,a.jsx)(B.A,{size:"small",muted:!0,children:function(e){return[e.sends&&e.receives?"Sends and receives":e.sends?"Sends":e.receives?"Receives":"",e.agent_name].filter(
1Boolean).join(", ")}(e)})]}),(0,a.jsx)(R.default,{size:"sm",tone:"active"===e.status?"brand":"neutral",transform:"capitalize",children:e.status})]},e.id))})},eL=e=>{let{domainName:s}=e,{data:t,isPending:n,refetch:i,isFetching:l}=r.Ay.useQuery("get","/domain/{domain_name}/health",{params:{path:{domain_name:s}}}),d=null==t?void 0:t.health;return n?(0,a.jsx)(h.E,{className:m().healthSkeleton}):d?(0,a.jsxs)(F.default,{gap:"field",children:[(0,a.jsxs)(F.default,{gap:"group",children:[(0,a.jsx)(A.A,{noMargin:!0,children:"Domain Health"}),(0,a.jsxs)(B.A,{size:"base",weight:"semibold",children:[d.status_label," (",d.warmup_score,"%)"]}),(0,a.jsxs)(L.A,{align:"center",gap:"md",children:[(0,a.jsx)(T.A,{value:d.warmup_score,size:"lg",className:m().healthProgressBar}),(0,a.jsx)(k.A,{variant:"ghost",size:"sm",onClick:()=>void i(),disabled:l,icon:l?(0,a.jsx)(I.A,{}):(0,a.jsx)(o.default,{name:"refresh",size:"small"}),"aria-label":"Refresh domain health","data-tooltip":"Refresh"})]})]}),(0,a.jsxs)(F.default,{gap:"md",children:[(0,a.jsx)(z.A,{surface:!0,className:m().tile,isStatic:!0,action:(0,a.jsxs)(B.A,{size:"base",weight:"bold",color:"tertiary",children:[d.age_days," days"]}),subContent:(0,a.jsxs)(F.default,{gap:"sm",children:[(0,a.jsx)(T.A,{value:Math.max(4,d.age_days/90*100),size:"md",stages:[15.5,33.3]}),(0,a.jsxs)(L.A,{justify:"between",children:[(0,a.jsx)(B.A,{size:"xxs",muted:!0,weight:"bold",children:"NEW"}),(0,a.jsxs)(L.A,{gap:"xl",children:[(0,a.jsx)(B.A,{size:"xxs",muted:!0,weight:"bold",children:"14D"}),(0,a.jsx)(B.A,{size:"xxs",muted:!0,weight:"bold",children:"30D"})]}),(0,a.jsx)(B.A,{size:"xxs",muted:!0,weight:"bold",children:"MATURE (90D)"})]})]}),children:(0,a.jsxs)("div",{className:m().healthRowTitle,children:[(0,a.jsx)(o.default,{name:"calendar-clock"}),(0,a.jsx)(B.A,{size:"base",weight:"medium",children:"Domain Age"})]})}),(0,a.jsx)(z.A,{surface:!0,className:m().tile,isStatic:!0,action:(0,a.jsxs)("div",{className:m().authActions,children:[(0,a.jsxs)("div",{className:m().authItem,children:[(0,a.jsx)(B.A,{size:"small",muted:!0,className:m().centeredText,children:"SPF"}),(0,a.jsx)(f.A,{isAvailable:d.auth_status.spf,size:16})]}),(0,a.jsxs)("div",{className:m().authItem,children:[(0,a.jsx)(B.A,{size:"small",muted:!0,className:m().centeredText,children:"DMARC"}),(0,a.jsx)(f.A,{isAvailable:d.auth_status.dmarc,size:16})]})]}),children:(0,a.jsxs)("div",{className:m().healthRowTitle,children:[(0,a.jsx)(o.default,{name:"shield-check"}),(0,a.jsx)(B.A,{size:"base",weight:"medium",children:"Authentication"})]})}),(0,a.jsx)(z.A,{surface:!0,className:m().tile,isStatic:!0,action:(0,a.jsxs)("div",{className:m().blacklistActions,children:[d.is_blacklisted?(0,a.jsx)(R.default,{tone:"neutral",size:"xs",transform:"capitalize",children:"".concat(d.blacklists_detected.length," lists")}):(0,a.jsx)(B.A,{size:"small",muted:!0,className:m().centeredText,children:"Clean"}),(0,a.jsx)(f.A,{isAvailable:!d.is_blacklisted,size:16})]}),children:(0,a.jsxs)("div",{className:m().healthRowTitle,children:[(0,a.jsx)(o.default,{name:"checklist"}),(0,a.jsx)(B.A,{size:"base",weight:"medium",children:"Blacklist Status"})]})})]})]}):(0,a.jsx)(B.A,{size:"small",muted:!0,children:"Health data unavailable"})},eM=e=>{let{domain:s,onBack:t,onClose:n,onSelectDomain:i}=e,l="registered_pending_attach"===s.status?ez.findIndex(e=>"dns_setup"===e.id):ez.findIndex(e=>e.id===s.status),{showNotification:d}=(0,N.Ay)(),[u,h]=(0,W.useState)(!1),[p,g]=(0,W.useState)(null),x=async()=>{h(!0);try{let{data:e,error:t}=await r.Sn.POST("/domain/release",{body:{domain:s.domain}});if(t||!(null==e?void 0:e.success))return void d({type:"error",message:(null==t?void 0:t.detail)||"Could not get the transfer code. The domain may still be within its 60-day transfer lock."});g(e.auth_code)}catch(e){d({type:"error",message:(null==e?void 0:e.message)||"Failed to retrieve transfer code"})}finally{h(!1)}};return(0,a.jsxs)(D.$m,{className:c().settingsPopupContent,onClose:n,children:[(0,a.jsxs)(F.default,{gap:"group",className:c().settingsHeader,children:[(0,a.jsx)(L.A,{children:(0,a.jsx)(v.default,{variant:"text",flush:!0,onClick:t,icon:(0,a.jsx)(o.default,{name:"arrow-left"}),children:"Back to all domains"})}),(0,a.jsxs)(L.A,{align:"center",justify:"between",gap:"md",children:[(0,a.jsxs)(F.default,{gap:"group",children:[(0,a.jsx)(S.A,{level:4,visual:5,weight:"semibold",children:s.domain}),(0,a.jsxs)(B.A,{muted:!0,children:["Purchased: ",new Date(s.created_at).toLocaleDateString()]})]}),(0,a.jsx)(R.default,{tone:"active"===s.status?"brand":"failed"===s.status?"warning":"neutral",size:"sm",children:(0,eA.T)(s.status)})]})]}),(0,a.jsxs)("div",{className:(0,Q.A)(c().settingsContent,m().body),children:[(0,a.jsx)("div",{className:m().section,children:(0,a.jsxs)(F.default,{gap:"group",children:[(0,a.jsx)(A.A,{noMargin:!0,children:"Registration Status"}),(0,a.jsx)(P.Ay,{steps:ez.map((e,t)=>({label:e.label,state:t<l||"active"===s.status?"done":t===l?eD.has(s.status)?"active":"waiting":"pending"}))})]})}),(0,a.jsx)("div",{className:m().section,children:(0,a.jsx)(eL,{domainName:s.domain})}),(0,a.jsx)("div",{className:m().section,children:(0,a.jsxs)(F.default,{gap:"group",children:[(0,a.jsx)(A.A,{noMargin:!0,children:"Linked To"}),s.linked_to&&s.linked_to.length>0?(0,a.jsx)(F.default,{gap:"sm",children:s.linked_to.map(e=>(0,a.jsx)(z.A,{surface:!0,className:m().tile,isStatic:!0,children:(0,a.jsxs)("div",{className:m().linkedToItem,children:[(0,a.jsx)(o.default,{name:"website"===e.type?"globe":"building"}),(0,a.jsx)(B.A,{size:"base",weight:"medium",children:e.name}),(0,a.jsx)(R.default,{size:"sm",tone:"neutral",transform:"capitalize",children:"website"===e.type?"Website":"Company"})]})},e.id))}):(0,a.jsx)(B.A,{size:"base",muted:!0,children:"Not linked to any projects or companies"})]})}),(0,a.jsx)("div",{className:m().section,children:(0,a.jsxs)(F.default,{gap:"group",children:[(0,a.jsx)(A.A,{noMargin:!0,children:"Email Addresses"}),(0,a.jsx)(eT,{domainName:s.domain})]})}),"active"===s.status&&i&&(0,a.jsx)("div",{className:(0,Q.A)(m().section,m().undivided),children:(0,a.jsx)(v.default,{fullWidth:!0,variant:"secondary",onClick:()=>{i(s.domain),n()},children:"Use this domain"})}),"active"===s.status&&(0,a.jsxs)("div",{className:(0,Q.A)(m().section,m().undivided),children:[(0,a.jsxs)(F.default,{gap:"group",children:[(0,a.jsx)(A.A,{noMargin:!0,children:"Transfer domain out"}),(0,a.jsx)(B.A,{size:"base",muted:!0,children:"You own this domain. Move it to any registrar you control using its authorization (EPP) code."})]}),p?(0,a.jsxs)(F.default,{gap:"label",children:[(0,a.jsx)(B.A,{size:"base",weight:"semibold",className:m().authCode,children:p}),(0,a.jsx)(B.A,{size:"small",muted:!0,children:"At your chosen registrar, start an inbou
1nd transfer and enter this code. The domain must be past its 60-day registration lock."})]}):(0,a.jsx)(L.A,{children:(0,a.jsx)(v.default,{variant:"secondary",onClick:x,disabled:u,children:u?(0,a.jsx)(I.A,{size:16}):"Get transfer code"})})]}),"failed"===s.status&&s.error&&(0,a.jsx)("div",{className:(0,Q.A)(m().section,m().undivided),children:(0,a.jsx)(j.A,{variant:"error",children:s.error})})]})]})},eI=e=>{var s,t,d,u,_,f,A,k;let{initialCompanyName:T="",description:P="",onClose:H,onSelectDomain:U,isAnonymous:Y=!1,onSignupRequired:q,onGenerationStart:K,disabled:G=!1,inline:$=!1,purpose:J,purposes:Z,companyId:ee,productId:es}=e,{isAtLeast:et,isLoading:ea}=(0,l.R)(),en=(0,i.H)("custom_domains"),ei=(0,n.vf)(),[el,eo]=(0,ey.fp)((0,ew.$$)("domainRecommendation")),{companies:ed}=(0,E.W)(),[ec,eu]=(0,W.useState)(null),{data:eh,isPending:ep}=r.Ay.useQuery("get","/enterprise/companies/{company_id}/domain",{params:{path:{company_id:ee||""}}},{enabled:!!ee}),eg=(null==eh?void 0:eh.domain)||null,ex=null!=(f=null==Z?void 0:Z.join(","))?f:"",e_=(0,W.useMemo)(()=>ex?ex.split(","):Object.keys(eb),[ex]),ef=eR(null==el?void 0:el.purpose),eN=null!=(A=null!=J?J:ec)?A:ef&&e_.includes(ef)?ef:void 0,eC=ee&&!ep?eg?"extra":"website":void 0,ez=null!=eN?eN:eC&&e_.includes(eC)?eC:ee?e_[0]:void 0,eT=!!ee&&"website"===ez&&!et(en.requiredPlan),eL=!!ee&&"cold"!==J&&!et(en.requiredPlan),[eI,eP]=(0,W.useState)({}),[eO,eF]=(0,W.useState)(0),eB=JSON.stringify([null!=ez?ez:null,eI]),eW=(0,W.useRef)(null),[eH,eU]=(0,W.useState)(!1),eY=()=>{eW.current=eB,eU(!1)},{showNotification:eq}=(0,N.Ay)(),[eK,eG]=(0,W.useState)(T),[eV,e$]=(0,W.useState)(!1),[eJ,eQ]=(0,W.useState)(!1),eX=(0,W.useRef)(null),[eZ,e0]=(0,W.useState)([]),[e1,e2]=(0,W.useState)(0),[e6,e4]=(0,W.useState)(null),[e3,e5]=(0,W.useState)("suggestion"),[e9,e8]=(0,W.useState)(null),[e7,se]=(0,W.useState)(null),[ss,st]=(0,W.useState)(new Set),[sa,sn]=(0,W.useState)(0),[si]=(0,W.useState)(()=>{var e;let s=new URLSearchParams(window.location.search);return"success"===s.get("status")&&(null==(e=s.get("domain_purchased"))?void 0:e.trim().toLowerCase())||null}),{data:sl,refetch:sr,isFetching:so}=r.Ay.useQuery("get","/domain/list"),{data:sd}=r.Ay.useQuery("get","/get_files",{params:{query:{limit:200,include_all_user_files:!0}}}),sc=(0,W.useMemo)(()=>{let e=[...(null==sl?void 0:sl.domains)||[]].sort((e,s)=>(new Date(s.created_at).getTime()||0)-(new Date(e.created_at).getTime()||0)),s=(null==sd?void 0:sd.files)||[];return e.map(e=>{let t=[],a=e=>{var s;return(null==(s=(e||"").toLowerCase().replace(/^https?:\/\//,"").replace(/^www\./,"").split("/")[0])?void 0:s.trim())||""},n=a(e.domain),i=n.replace(/\./g,"");return ed.forEach(e=>{e.domain&&"string"==typeof e.domain&&a(e.domain)===n&&t.push({type:"agent_company",id:e.id,name:e.name})}),s.forEach(e=>{let s=e.project_metadata||{},l=[s.custom_domain,s.vercel_url,s.published_url,s.vercel_project_name,e.source_url].some(e=>{if(!e||"string"!=typeof e)return!1;let s=a(e);return s===n||s.includes(n)||s.replace(/\./g,"").includes(i)});("code_project"===e.file_category||"website"===e.file_category||"project"===e.file_format||e.mime_type&&e.mime_type.includes("x-omega-project"))&&l&&t.push({type:"website",id:e.id||e._id,name:e.file_name})}),{...e,linked_to:t}})},[sl,ed,sd]);(0,C.A)(sr),(0,W.useEffect)(()=>{if(sc.some(e=>"active"!==e.status&&"failed"!==e.status)){let e=setInterval(()=>{sr()},3e3);return()=>clearInterval(e)}},[sc,sr]);let{ref:su,trigger:sm}=(0,p.V)(),sh=(0,W.useRef)(!1);(0,W.useEffect)(()=>{!sh.current&&si&&sc.some(e=>e.domain.toLowerCase()===si)&&(sh.current=!0,sm())},[sc,si,sm]);let{mutate:sp,data:sg,isPending:sx,error:s_}=r.Ay.useMutation("post","/domain/suggest"),{mutate:sf,data:sv}=r.Ay.useMutation("post","/domain/pricing"),{mutate:sj,data:sy}=r.Ay.useMutation("post","/domain/keyword-volume"),[sw,sb]=(0,W.useState)({}),[sA,sS]=(0,W.useState)({}),[sk,sN]=(0,W.useState)(!1),[sC,sE]=(0,W.useState)([]),[sR,sz]=(0,W.useState)(!1),sD=(0,W.useRef)(""),sT=(0,W.useCallback)(async e=>{let s=e.trim(),t=er(ez,eI,"suggest-extensions"),a=JSON.stringify([s.toLowerCase(),t]);if(s&&sD.current!==a){sD.current=a,sz(!0);try{let{data:e}=await r.Sn.POST("/domain/relevant-extensions",{body:{company_name:s,description:P,company_id:ee,...t}});sD.current===a&&sE((null==e?void 0:e.extensions)||[])}catch(e){sD.current===a&&sE([])}finally{sD.current===a&&sz(!1)}}},[P,ee,ez,eI]),[sL,sM]=(0,W.useState)([]),[sI,sP]=(0,W.useState)(null),[sO,sF]=(0,W.useState)(0),[sB,sW]=(0,W.useState)(null),sH=(0,W.useRef)(null),sU=e=>JSON.stringify({...e,offset:void 0}),sY=e=>sU(null==e?void 0:e.body)===sU(sH.current),{mutate:sq,isPending:sK}=r.Ay.useMutation("post","/domain/search",{onSuccess:(e,s)=>{var t,a;let n=null==e?void 0:e.results;if(!n||!sY(s))return;let i=null!=(t=e.offset)?t:0,l=n.map((e,s)=>({domain:e.domain,available:e.available,is_premium:e.is_premium,is_hack:e.is_hack,price:e.price,renewal_price:e.renewal_price,price_total:e.price_total,min_years:e.min_years,namecheap_price:e.namecheap_price,namecheap_price_display:e.namecheap_price_display,keywords:0===i&&0===s?e.keywords:void 0,keyword_phrase:0===i&&0===s?e.keyword_phrase:void 0,phrase_score:0===i&&0===s?e.phrase_score:void 0,phrase_source:0===i&&0===s?e.phrase_source:void 0,phrase_volume:0===i&&0===s?e.phrase_volume:void 0,tld:e.tld,unsupported:e.unsupported,namecom_unsupported:e.namecom_unsupported,relevancy_score:100,reasoning:"Exact-name check"}));sM(e=>{if(0===i)return l;let s=new Set(e.map(e=>e.domain));return[...e,...l.filter(e=>!s.has(e.domain))]}),0===i&&sW({search_options:e.search_options,message:e.message}),sP(null!=(a=e.next_offset)?a:null),sF(e=>e+1)},onError:(e,s)=>{var t,a;sY(s)&&((null!=(a=null==s||null==(t=s.body)?void 0:t.offset)?a:0)===0&&sP(0),eq({message:"Could not load more extensions. Scroll again to retry.",type:"warning"}))}}),sG=(0,W.useRef)(null),sV=(0,W.useRef)(!1);(0,W.useEffect)(()=>{sK||(sV.current=!1)},[sK]);let s$=(0,W.useRef)(null),sJ=()=>{s$.current&&clearTimeout(s$.current),s$.current=null},sQ=e=>{sJ(),sH.current=e,sP(null),eY(),sq({body:{...e,offset:0}})};(0,W.useEffect)(()=>
1{if(0!==eO){if("manual"===e3&&eV&&sH.current){let e=er(ez,eI,"search-extensions"),s=sH.current;return sU({query:s.query,exact_extension:s.exact_extension,...e})===sU(s)?void eY():(sJ(),s$.current=setTimeout(()=>{s$.current=null;let s=sH.current;s&&sQ({query:s.query,exact_extension:s.exact_extension,...e})},400),sJ)}eU(eB!==eW.current)}},[eO]),(0,W.useEffect)(()=>{T.trim()&&(tn(),sT(T))},[]),(0,W.useEffect)(()=>{var e;let s=null==el||null==(e=el.q)?void 0:e.trim();if(!s)return;let t=eR(null==el?void 0:el.purpose);t&&e_.includes(t)&&eu(t),eG(s),e$(!0),eQ(!0),e5("manual"),sM([]),sn(e=>e+1),sP(null),sW(null),sQ({query:s,exact_extension:!0,...er(null!=t?t:ez,eI,"search-extensions")}),eo(null)},[el,e_]),(0,W.useEffect)(()=>{if(s_&&Y&&q){var e,s,t,a;((null==s_?void 0:s_.status)===429||(null==s_||null==(e=s_.response)?void 0:e.status)===429||(null==s_||null==(s=s_.message)?void 0:s.includes("429"))||(null==s_||null==(t=s_.message)?void 0:t.includes("rate limit"))||(null==s_||null==(a=s_.detail)?void 0:a.type)==="rate_limit_exceeded")&&q()}},[s_,Y,q]);let sX=async(e,s)=>{if(ea)return;if(eT)return void ei.open();let t=[...sL,...eZ].find(s=>s.domain===e);if(!t||!ek(t))return void eq({type:"error",message:"Could not determine the price for this domain."});let a=s1(t),n=s?"namecheap"===s:eS(a),i=n?a.namecheap_price:"number"==typeof t.price_total?t.price_total:parseFloat(String(t.price||"").replace(/[^\d.]/g,""));if(isNaN(i))return void eq({type:"error",message:"Could not determine the price for this domain."});e4(e);try{let s={domain:e,price:i};n&&(s.registrar="namecheap"),eN&&(s.purpose=eN),es&&(s.product_id=es),ee&&(s.company_id=ee);let t=(await r.Sn.POST("/domain/purchase",{body:s})).data;if((null==t?void 0:t.success)&&t.checkout_url){window.location.href=t.checkout_url;return}eq({type:"error",message:"Could not start the purchase. Please try again."})}catch(a){console.error("Purchase error:",a);let{status:e,response:s,message:t}=a;if((null==s?void 0:s.headers.get("X-Required-Feature"))==="custom_domains")return void ei.open();eq({type:"error",message:void 0===e?"Could not reach the purchase service. Check your connection and try again.":e>=500?"The purchase service is unavailable right now. Please try again in a moment.":t||"Could not start the purchase. Please try again."})}finally{e4(null)}},sZ=(0,W.useMemo)(()=>{let e=eK.trim().toLowerCase().match(/\.([a-z0-9-]{2,})$/);return e?e[1]:null},[eK]);(0,W.useEffect)(()=>{!sZ&&eJ&&eQ(!1)},[sZ,eJ]);let s0=()=>{let e=eK.trim();if(!e)return;sT(e),sb({}),sS({});let s=sZ?e.slice(0,-(sZ.length+1)):e;eV?(e5("manual"),sM([]),sn(e=>e+1),sP(null),sW(null),sQ({query:e,exact_extension:eJ&&!!sZ,...er(ez,eI,"search-extensions")})):eJ&&sZ?(e5("suggestion"),tn(s,[sZ])):(e5("suggestion"),tn(e))};(0,W.useEffect)(()=>{if(sg&&sg.suggestions){let e=sg.suggestions;e1>0?e0(s=>{let t=new Set(s.map(e=>e.domain));return[...s,...e.filter(e=>!t.has(e.domain))]}):e0(e)}},[sg]),(0,W.useEffect)(()=>{sv&&sv.pricing&&sb(e=>({...e,...sv.pricing}))},[sv]),(0,W.useEffect)(()=>{sy&&sy.volume&&(sS(e=>({...e,...sy.volume})),sN(!1))},[sy]),(0,W.useEffect)(()=>{let e=("suggestion"===e3?eZ:sL).filter(e=>!0===e.available&&!e.is_premium);if(0===e.length)return;let s=Array.from(new Set(e.map(e=>e.tld).filter(e=>!!e&&!(e in sw)))),t=Array.from(new Set(e.map(e=>e.domain).filter(e=>!(e in sA))));s.length&&sf({body:{tlds:s}}),t.length&&(sN(!0),sj({body:{domains:t}}))},[eZ,sL,e3]);let s1=e=>{var s,t,a,n,i,l,r;let o=e.tld?sw[e.tld]:void 0,d=sA[e.domain];return{...e,namecheap_price:null!=(s=null==o?void 0:o.namecheap_price)?s:e.namecheap_price,namecheap_price_display:null!=(t=null==o?void 0:o.namecheap_price_display)?t:e.namecheap_price_display,keywords:null!=(a=null==d?void 0:d.keywords)?a:e.keywords,keyword_phrase:null!=(n=null==d?void 0:d.keyword_phrase)?n:e.keyword_phrase,phrase_score:null!=(i=null==d?void 0:d.phrase_score)?i:e.phrase_score,phrase_source:null!=(l=null==d?void 0:d.phrase_source)?l:e.phrase_source,phrase_volume:null!=(r=null==d?void 0:d.phrase_volume)?r:e.phrase_volume}},[s2,s6]=(0,W.useState)(null),s4=(0,W.useMemo)(()=>(null==s2?void 0:s2.tlds)||[],[s2]),s3=(0,W.useMemo)(()=>(null==s2?void 0:s2.themes)||[],[s2]),s5=ss.size>0&&s4.length>0&&ss.size<s4.length;(0,W.useEffect)(()=>{(async()=>{try{var e;let{data:s}=await r.Sn.GET("/domain/tlds");(null==s||null==(e=s.tlds)?void 0:e.length)&&(s6(s),st(new Set(s.tlds.map(e=>e.tld))))}catch(e){}})()},[]);let s9=(0,W.useMemo)(()=>s5?eZ.filter(e=>ss.has((e.tld||e.domain.split(".").pop()||"").toLowerCase())):eZ,[eZ,s5,ss]),s8="suggestion"===e3,s7=s8?s9:sL,te=s7.map(s1),ts=(0,g.u)("".concat(e3,":").concat(sa),te.map(e=>e.domain)),tt=function(e){let s=(null!=e?e:[]).filter(e=>Object.hasOwn(X,e)).map(e=>X[e].label);return s.length>0?"Ordered by ".concat(s.join(", then ")):void 0}(s8?null!=(k=null==sg||null==(t=sg.search_plan)||null==(s=t.search_options)?void 0:s.priorities)?k:null==sg||null==(d=sg.search_plan)?void 0:d.priorities:null==sB||null==(u=sB.search_options)?void 0:u.priorities),ta=s8?sx||null==sg?void 0:sg.message:sK||null==sB?void 0:sB.message,tn=(e,s)=>{var t;let a=(null!=e?e:eK).trim();if(!a)return;sJ(),null==(t=eX.current)||t.abort();let n=new AbortController;eX.current=n,null==K||K(),e0([]),sn(e=>e+1),e2(0),eY();let i={company_name:a,is_more:!1,...er(ez,eI,"suggest-names")};s&&s.length?i.tlds=s:s5&&(i.tlds=Array.from(ss)),P&&(i.description=P),ee&&(i.company_id=ee),sp({body:i,signal:n.signal})},ti="manual"===e3&&null!==sI;!function(e,s,t,a){let n=(0,W.useRef)(a);n.current=a,(0,W.useEffect)(()=>{let t=e.current;if(!t||!s)return;let a=new IntersectionObserver(e=>{var s;(null==(s=e[0])?void 0:s.isIntersecting)&&n.current()},{root:function(e){var s;let t=null!=(s=null==e?void 0:e.parentElement)?s:null;for(;t;){let e=getComputedStyle(t).overflowY;if(("auto"===e||"scroll"===e||"overlay"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null}(t),rootMargin:"1000px",threshold:0});return a.observe(t),()=>a.disconnect()},[e,s,t])}(sG,ti,sO,()=>{let e=sH.current;sV.current||sK||null===sI||!e||(sV.current=!0,sq({body:{...e,offset:sI}}))});let tl=async e=>{e8(e);try{var s;if(null==(s=(await r.Sn.DELETE("/domain/{domain_id}",{params:{path:{domain_id:e}}})).data)?void 0:s.success)eq({type:"success",message:"Domain attempt removed."}),sr();else throw Error("Failed to remove domain")}catch(e){console.error("Remove domain error:",e),eq({type:"error",message:"Failed to remove domain attempt."})}finally{e8(null)}},tr=(null==(_=eZ.find(e=>e.error))?void 0:_.error)||(!s_||Y&&(e=>{var s,t,a;return(null==e?void 0:e.status)===429||(null==e||null==(s=e.response)?void 0:s.status)===429||(null==e||null==(t=e.message)?void 0:t.includes("429"))||(null==e||null==(a=e.message)?void 0:a.includes("rate limit"))})(s_)||(e=>(null==e?void 0:e.name)==="AbortError"||(null==e?void 0:e.code)===20||/\babort/i.test((null==e?void 0:e.message)||""))(s_)?null:null==s_?void 0:s_.message);if(e7)return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.vw,{...en,isOpen:ei.isOpen,onClose:ei.close}),(0,a.jsx)(eM,{domain:e7,onBack:()=>se(null),onClose:H,onSelectDomain:U&&("cold"!==eR(e7.purpose)||"cold"===J)?e=>{if(eL)return void ei.open();U(e)}:void 0})]});
1let to=0,td=$?"div":D.$m,tc=$?{className:m().inlineRoot}:{className:c().settingsPopupContent,onClose:H};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.vw,{...en,isOpen:ei.isOpen,onClose:ei.close}),(0,a.jsxs)(td,{...tc,children:[G&&(0,a.jsx)("div",{onClick:()=>{G&&q&&q()},className:m().disabledShield}),!$&&(0,a.jsxs)(F.default,{gap:"group",className:c().settingsHeader,children:[(0,a.jsx)(S.A,{level:4,visual:5,weight:"semibold",children:"Custom Domains"}),(0,a.jsx)(B.A,{muted:!0,children:"Find, buy and manage your domains"})]}),(0,a.jsxs)("div",{className:$?m().bodyInline:(0,Q.A)(c().settingsContent,m().body),children:[!Y&&(0,a.jsx)(b.A,{title:"Owned domains (".concat(sc.length,")"),defaultOpen:null!==si,children:(0,a.jsxs)(F.default,{gap:"group",children:[(0,a.jsxs)(L.A,{align:"center",justify:"between",gap:"md",children:[(0,a.jsx)(B.A,{children:"Your custom domains and their current status."}),(0,a.jsx)(v.default,{variant:"text",flush:!0,onClick:()=>void sr(),isLoading:so,icon:so?(0,a.jsx)(I.A,{}):(0,a.jsx)(o.default,{name:"refresh",size:"small"}),children:"Refresh"})]}),(0,a.jsx)(F.default,{gap:"sm",children:sc.length>0?(0,a.jsx)(M.A,{items:sc,initialCount:5,moreLabel:()=>"Show more",children:e=>e.map(e=>{let s=eR(e.purpose),t=(0,a.jsx)(z.A,{surface:!0,className:m().tile,onClick:()=>se(e),action:(0,a.jsxs)(L.A,{align:"center",gap:"md",children:[s&&"website"!==s&&(0,a.jsx)(R.default,{tone:"neutral",size:"sm",children:eb[s].label}),(0,a.jsx)(R.default,{tone:"active"===e.status?"brand":"failed"===e.status?"warning":"neutral",size:"sm",children:(0,eA.T)(e.status)}),"failed"===e.status&&(0,a.jsx)(v.default,{size:"xs",variant:"minimal",onClick:s=>{s.stopPropagation(),tl(e.id)},isLoading:e9===e.id,disabled:!!e9,children:(0,a.jsx)(o.default,{name:"delete"})}),"active"===e.status&&U&&("cold"!==s||"cold"===J)&&(0,a.jsx)(v.default,{size:"xs",variant:"secondary",onClick:s=>{if(s.stopPropagation(),eL)return void ei.open();U(e.domain)},children:"Use"})]}),children:(0,a.jsxs)(L.A,{align:"center",gap:"sm",children:[(0,a.jsx)("span",{className:(0,Q.A)(m().statusIcon,"failed"===e.status&&m().statusError),children:"failed"===e.status?(0,a.jsx)(o.default,{name:"close"}):(0,a.jsx)(O.A,{active:eD.has(e.status),done:"active"===e.status})}),(0,a.jsxs)(F.default,{children:[(0,a.jsx)(B.A,{weight:"semibold",size:"base",children:e.domain}),(0,a.jsxs)(B.A,{size:"small",muted:!0,children:["Purchased: ",new Date(e.created_at).toLocaleDateString()]})]})]})},e.id);return e.domain.toLowerCase()===si?(0,a.jsx)("div",{className:m().washSlot,ref:e=>{var s;return su(null!=(s=null==e?void 0:e.firstElementChild)?s:null)},children:t},e.id):t})}):(0,a.jsx)("div",{className:m().emptyState,children:(0,a.jsx)(B.A,{size:"small",muted:!0,children:"No owned domains yet"})})})]})}),(0,a.jsxs)("div",{className:m().section,children:[(0,a.jsxs)(L.A,{align:"center",gap:"md",children:[(0,a.jsx)("div",{className:m().grow,children:(0,a.jsx)(w.A,{value:eK,onChange:e=>eG(e.target.value),onKeyDown:e=>{"Enter"===e.key&&!sx&&eK.trim()&&s0()},placeholder:"Your company name, or a domain you have in mind",hideGenerate:!0})}),sx?(0,a.jsx)(v.default,{onClick:()=>{var e;null==(e=eX.current)||e.abort()},variant:"secondary",children:"Stop"}):(0,a.jsx)(v.default,{onClick:s0,isLoading:sK,disabled:!eK.trim(),highlight:!0,children:"Search"})]}),(0,a.jsxs)(y.A,{align:"center",gap:"sm",children:[(0,a.jsx)(B.A,{muted:!0,children:"Have one in mind?"}),(0,a.jsx)(R.default,{shape:"pill",size:"sm",selected:eV,onClick:()=>e$(e=>!e),children:"Keep my exact name"}),(0,a.jsx)("span",{"data-tooltip":sZ?void 0:"Type an extension like .co to keep it",children:(0,a.jsx)(R.default,{shape:"pill",size:"sm",selected:eJ,disabled:!sZ,onClick:()=>eQ(e=>!e),children:"Keep my exact extension"})})]}),ee&&!J&&(0,a.jsxs)(F.default,{gap:"sm",children:[(0,a.jsxs)(y.A,{align:"center",gap:"sm",children:[(0,a.jsx)(B.A,{muted:!0,children:"What's it for?"}),e_.map(e=>(0,a.jsx)(R.default,{shape:"pill",size:"sm",selected:ez===e,onClick:()=>(e=>{eu(e),e!==ez&&eF(e=>e+1)})(e),children:eb[e].label},e))]}),ez&&(0,a.jsx)(B.A,{muted:!0,children:"website"===ez&&eg?"Replaces ".concat(eg," as this company's site address (its email moves with it)."):eb[ez].description})]}),(0,a.jsx)(em,{mode:eV?"search-extensions":"suggest-names",overrides:eI,onChange:e=>{eP(s=>({...s,...e})),eF(e=>e+1)}})]}),tr&&(0,a.jsx)("div",{className:m().section,children:(0,a.jsx)(j.A,{variant:"warning",children:tr})}),(s8?eZ.length>0||!!ta:sL.length>0||sK||!!ta||null!==sI)&&(0,a.jsxs)("div",{className:m().section,children:[(0,a.jsxs)(F.default,{gap:"group",children:[(0,a.jsxs)(S.A,{level:5,children:["Suggestions (",(0,a.jsx)(x.A,{value:s7.length},"".concat(e3,":").concat(sa)),")"]}),tt&&(0,a.jsx)(B.A,{muted:!0,children:tt}),eH&&(0,a.jsx)(B.A,{muted:!0,children:"Options changed. Search again to apply them."}),0===s7.length&&ta&&(0,a.jsx)(B.A,{muted:!0,children:ta})]}),s8&&(s4.length>0||sC.length>0||sR)&&(0,a.jsx)(b.A,{title:"Extensions (".concat(s5?"".concat(ss.size," of ").concat(s4.length):"all ".concat(s4.length),")"),subtitle:sR&&0===sC.length?(0,a.jsx)(B.A,{size:"small",muted:!0,children:"Finding extensions that fit ".concat(eK.trim()||"your business","...")}):sC.length>0?(0,a.jsx)("div",{className:c().recExtRow,children:sC.map(e=>(0,a.jsx)("span",{"data-tooltip":e.reason||void 0,children:(0,a.jsx)(R.default,{tone:"outline",shape:"pill",size:"2xs",children:".".concat(e.tld).concat(e.price?" ".concat(e.price):"")})},e.tld))}):void 0,defaultOpen:!1,children:(0,a.jsxs)(F.default,{gap:"sm",children:[(0,a.jsx)(V,{tlds:s4,themes:s3,selected:ss,onChange:st}),s5&&(0,a.jsx)(v.default,{variant:"secondary",fullWidth:!0,onClick:()=>
1{if(!eK.trim())return;e0([]),sn(e=>e+1),e2(0),eY();let e={company_name:eK,is_more:!1,tlds:Array.from(ss),...er(ez,eI,"suggest-names")};P&&(e.description=P),ee&&(e.company_id=ee),sp({body:e})},children:"Generate more in these extensions"})]})}),(0,a.jsx)(F.default,{gap:"sm",children:te.map((e,s)=>{var t;let i=ts(e.domain),l=i?Math.min(to++,7):0;return(0,a.jsx)("div",{className:(0,Q.A)(m().resultRow,!1===e.available&&m().suggestRowTaken),"data-enter":i?"":void 0,style:i?{"--arrival":l}:void 0,children:(0,a.jsx)(z.A,{action:(0,a.jsxs)("div",{className:m().suggestActions,children:[e.is_hack&&(0,a.jsx)(R.default,{tone:"neutral",size:"xs",shape:"pill",children:"Domain hack"}),e.is_premium&&(0,a.jsx)(R.default,{tone:"neutral",size:"xs",shape:"pill",children:"Premium"}),(e=>e.unsupported?(0,a.jsx)(R.default,{tone:"neutral",size:"xs",shape:"pill",children:"Unsupported extension"}):!1===e.available?(0,a.jsx)(R.default,{tone:"neutral",size:"xs",shape:"pill",children:"Taken"}):null!==e.available||e.error?(e=>!0===e.available&&!e.is_premium&&!ek(e))(e)?(0,a.jsx)(ej.A,{text:"Getting Pricing...",size:14}):!0===e.available&&e.is_premium&&!ek(e)?(0,a.jsx)(R.default,{tone:"neutral",size:"xs",shape:"pill",children:"Premium"}):!0===e.available&&ek(e)?Y?(0,a.jsx)(v.default,{size:"xs",variant:"secondary",onClick:()=>null==q?void 0:q(),children:"Sign up to buy"}):(0,a.jsx)(eE,{upgradeAction:eT?(0,a.jsx)(n.Ay,{appearance:"icon",...en,onClick:ei.open,disabled:ea}):void 0,suggestion:e,isPurchasing:e6,onBuy:sX}):null:(0,a.jsx)(I.A,{size:16}))(e)]}),children:(0,a.jsxs)("div",{className:m().suggestItem,children:[(0,a.jsx)("div",{className:m().nameRow,children:(0,a.jsx)(B.A,{weight:"semibold",muted:!1===e.available,children:e.domain})}),(s8||0===s)&&(0,a.jsx)("div",{className:m().keywordSlot,children:!0===e.available&&((null==(t=e.keywords)?void 0:t.length)?(0,a.jsx)(ev,{keywords:e.keywords,phrase:e.keyword_phrase,phraseScore:e.phrase_score,phraseSource:e.phrase_source,phraseVolume:e.phrase_volume}):sk?(0,a.jsx)("div",{className:(0,Q.A)("skeleton-loader",m().keywordSkeleton)}):null)})]})})},e.domain)})}),s8&&sx&&eZ.length>0&&(0,a.jsx)(h.E,{className:m().rowSkeleton}),"manual"===e3&&sK&&0===sL.length&&(0,a.jsx)(h.E,{className:m().rowSkeleton}),ti&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:sG,"aria-hidden":"true",className:m().autoLoadSentinel}),sK&&(0,a.jsx)(h.E,{className:m().rowSkeleton})]}),s8&&e1<4&&!sx&&eZ.length>0&&(0,a.jsx)(v.default,{onClick:()=>{if(e1>=4)return;e2(e=>e+1);let e={company_name:eK,is_more:!0,...er(ez,eI,"suggest-names")};s5&&(e.tlds=Array.from(ss)),P&&(e.description=P),ee&&(e.company_id=ee),sp({body:e})},fullWidth:!0,variant:"minimal",size:"sm",children:"Show More Suggestions"})]}),s8&&sx&&0===eZ.length&&(0,a.jsx)("div",{className:m().section,children:(0,a.jsx)(h.E,{className:m().rowSkeleton})})]})]})]})},eP=eI},66926:e=>{"use strict";e.exports=JSON.parse('{"website":{"label":"Site address","description":"Becomes this company\'s site address."},"cold":{"label":"Cold email","description":"For cold outreach, kept apart from the site\'s email; its visitors land on the site."},"extra":{"label":"Extra domain","description":"Owned by this company, not its site address or cold email."}}')},69561:(e,s,t)=>{"use strict";t.d(s,{A:()=>d,f:()=>o});var a=t(7620),n=t(95964),i=t(415),l=t(62253);let r=new Set;function o(e){let{showNotification:s}=(0,i.Ay)(),{close:t}=(0,l.hS)("domainRecommendation");(0,a.useEffect)(()=>{let a=new URLSearchParams(window.location.search),i=a.get("session_id"),l=a.get("domain_purchased");"success"===a.get("status")&&l&&i&&(r.has(i)||(r.add(i),t(),null==e||e(),(async()=>{try{await n.Sn.POST("/domain/confirm",{body:{session_id:i}}),s({type:"success",message:"Payment confirmed. Registering ".concat(l,", it will be live shortly.")}),["domain_purchased","status","session_id"].forEach(e=>a.delete(e));let e=window.location.pathname+(a.toString()?"?".concat(a):"");window.history.replaceState({},"",e)}catch(e){r.delete(i),s({type:"error",message:(null==e?void 0:e.message)||"Could not confirm the domain purchase."})}})()))},[])}let d=o},80534:e=>{e.exports={steps:"StatusChecklist_steps__F7yQE",step:"StatusChecklist_step__GTXvU",label:"StatusChecklist_label__qdrez",marker:"StatusChecklist_marker__ue5gf",ring:"StatusChecklist_ring__PjWwF",words:"StatusChecklist_words__pab2Y",ladder:"StatusChecklist_ladder__jbUxX"}},81345:e=>{e.exports={body:"DomainRecommendationEngine_body__b3ICK",inlineRoot:"DomainRecommendationEngine_inlineRoot__ZZhMh",bodyInline:"DomainRecommendationEngine_bodyInline___xMKv",section:"DomainRecommendationEngine_section__1lilK",undivided:"DomainRecommendationEngine_undivided__lGLLa",disabledShield:"DomainRecommendationEngine_disabledShield__O9LDI",grow:"DomainRecommendationEngine_grow__Nf_vc",autoLoadSentinel:"DomainRecommendationEngine_autoLoadSentinel__fwoGT",tile:"DomainRecommendationEngine_tile__2taTU",authCode:"DomainRecommendationEngine_authCode__y4Ot6",optionDetail
1s:"DomainRecommendationEngine_optionDetails__cj3Ja",priceText:"DomainRecommendationEngine_priceText__kPikU",suggestItem:"DomainRecommendationEngine_suggestItem__Bn4Oa",nameRow:"DomainRecommendationEngine_nameRow__LlshJ",suggestActions:"DomainRecommendationEngine_suggestActions___GNyH",suggestRowTaken:"DomainRecommendationEngine_suggestRowTaken__cE889",keywordSlot:"DomainRecommendationEngine_keywordSlot__Nwog_",keywordSkeleton:"DomainRecommendationEngine_keywordSkeleton__e_kPS",statusIcon:"DomainRecommendationEngine_statusIcon__cNQz_",statusError:"DomainRecommendationEngine_statusError__FeWe4",emptyState:"DomainRecommendationEngine_emptyState__EuIHM",healthProgressBar:"DomainRecommendationEngine_healthProgressBar__VKMdf",healthRowTitle:"DomainRecommendationEngine_healthRowTitle__Va0mW",authActions:"DomainRecommendationEngine_authActions__dHkRh",authItem:"DomainRecommendationEngine_authItem__9rcw_",blacklistActions:"DomainRecommendationEngine_blacklistActions__SXY8H",centeredText:"DomainRecommendationEngine_centeredText__6nIqz",linkedToItem:"DomainRecommendationEngine_linkedToItem__hvFzj",iconLine:"DomainRecommendationEngine_iconLine___0rYt",emailItem:"DomainRecommendationEngine_emailItem__eE817",emailInfo:"DomainRecommendationEngine_emailInfo__RtY_a",stepIconWrapper:"DomainRecommendationEngine_stepIconWrapper__Y8Gci",emailIcon:"DomainRecommendationEngine_emailIcon__L98xu",emailIconEmpty:"DomainRecommendationEngine_emailIconEmpty__TiKr8",resultRow:"DomainRecommendationEngine_resultRow__MGMeC motion-presence",buyLabel:"DomainRecommendationEngine_buyLabel__WC7hp",buyLabelShown:"DomainRecommendationEngine_buyLabelShown__xJBoU",buyLabelReserve:"DomainRecommendationEngine_buyLabelReserve__I3oFw",washSlot:"DomainRecommendationEngine_washSlot__1eVcJ",rowSkeleton:"DomainRecommendationEngine_rowSkeleton__23hSO",emailSkeleton:"DomainRecommendationEngine_emailSkeleton___WRDF",healthSkeleton:"DomainRecommendationEngine_healthSkeleton__r8YBd"}},87021:(e,s,t)=>{"use strict";t.d(s,{A:()=>l});var a=t(54568),n=t(84554),i=t(68646);function l(e){let{isLoading:s,isAvailable:t,size:l=12,className:r}=e;return s?(0,a.jsx)(n.A,{size:l,className:r}):!0===t?(0,a.jsx)(i.default,{name:"check",className:r,style:{color:"var(--color-secondary)",fontSize:"".concat(l,"px")}}):!1===t?(0,a.jsx)(i.default,{name:"close",className:r,style:{color:"var(--color-text-tertiary)",fontSize:"".concat(l,"px")}}):null}}}]);

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.