(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1830],{33196:function(){},38087:function(){},30488:function(){},74854:function(){},66602:function(){},24817:function(e,t,a){"use strict";a.d(t,{D3:function(){return tc},qE:function(){return tx},xG:function(){return te},zx:function(){return d},vo:function(){return C},sT:function(){return tt},W6:function(){return tJ},qw:function(){return ta},x_:function(){return e3},pj:function(){return e8},Qd:function(){return x},LQ:function(){return tl},xi:function(){return tn},Ey:function(){return tr},$_:function(){return ax},or:function(){return e9},X6:function(){return ey},Wp:function(){return e7},Zv:function(){return e5},kw:function(){return ts},u$:function(){return tP},$Y:function(){return t8},b8:function(){return to},NZ:function(){return tW},cn:function(){return tA},Cl:function(){return eJ},tg:function(){return t6},ln:function(){return ao},oJ:function(){return tj},bK:function(){return tb},lV:function(){return I},v$:function(){return ti},xv:function(){return u},fD:function(){return ap},Zm:function(){return td},hW:function(){return V},T1:function(){return n},lF:function(){return k},aC:function(){return w},ay:function(){return R},p$:function(){return eK},ub:function(){return tv},Rp:function(){return B},OR:function(){return eR}});let n=a(59952);a(17700),a(96750),a(32924),a(32647),a(69272),a(31893),a(3387),a(97468),a(65831),a(10502);var r,s,i=a(27573),l=a(7653),o=a(67754),c=a(87386);a(91070),a(64910);let d=e=>{let{variant:t="fill",size:a="lg",disabled:n=!1,children:r,className:s="bg-primary text-primary-contrast",type:l="button",...o}=e;return(0,i.jsx)("button",{type:l,className:"\n        icp-button icp-button--".concat(t,"\n        icp-button--").concat(a,"\n        ").concat(s||""),disabled:n,...o,children:r})};a(67915);let u=e=>{let{children:t,className:a,as:n="p",variant:r="body1",...s}=e;return(0,i.jsx)(n,{className:"text text--".concat(r," ").concat(a||""),...s,children:t})};var m=a(81684),h=a.n(m),f=a(9783),p=a(68392);let x="0x0000000000000000000000000000000000000000",C={eth_mainnet:1,opt_mainnet:10,opt_sepolia:11155420},g=(0,l.createContext)({authToken:null,login:()=>{},logout:()=>{},address:void 0,isConnecting:!1,isConnected:!1,isDisconnected:!0}),v=e=>{let{children:t}=e,[a,n]=(0,l.useState)(null),{isConnected:r,isConnecting:s,isDisconnected:o,address:d}=(0,f.m)();(0,l.useEffect)(()=>{localStorage.getItem("token3DNS")&&n({token3DNS:localStorage.getItem("token3DNS")||""})},[]),(0,l.useEffect)(()=>{a&&""===a.token3DNS&&u()},[a]),(0,l.useEffect)(()=>{r&&d&&((0,p.A1)(d),(0,c.eJ)({flowType:"user-authentication",stepName:"wallet-success",stepNumber:2}))},[r,d]);let u=()=>{n(null),localStorage.removeItem("token3DNS"),localStorage.removeItem("name"),localStorage.removeItem("address"),localStorage.removeItem("hideReferralBanner"),c.b4.gaRemoveUserId(),h().set("auth","",{path:"/",expires:new Date(0)})};return(0,i.jsx)(g.Provider,{value:{authToken:r?a:null,login:e=>{d&&(0,p.A1)(d),n({token3DNS:e}),localStorage.setItem("token3DNS",e),localStorage.setItem("address",d||""),c.b4.gaAddUserId(d),h().set("auth",e,{path:"/",httpOnly:!0,secure:!0})},logout:u,address:d,isConnecting:s,isConnected:r,isDisconnected:o},children:t})};function w(){return(0,l.useContext)(g)}var j=a(41668),b=a(6e3),y=a(41450),N=a(68571);N.env.NEXT_PUBLIC_3DNS_USDC,N.env.NEXT_PUBLIC_3DNS_USDC,N.env.NEXT_PUBLIC_3DNS_USDC;let S={address:"0xF97aAc6C8dbaEBCB54ff166d79706E3AF7a813c8",abi:[{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],stateMutability:"view",type:"function",name:"addr",outputs:[{internalType:"address payable",name:"",type:"address"}]}]},k={address:"0xa58E81fe9b61B5c3fE2AFD33CF304c454AbFc7Cb",abi:[{inputs:[{internalType:"string",name:"name",type:"string"}],name:"setName",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"}]};class L{constructor(e){var t,a,n;this.domain=null!==(t=e.domain)&&void 0!==t?t:null,this.domainAttributes=null!==(a=e.domainAttributes)&&void 0!==a?a:null,this.domainInfo=null!==(n=e.domainInfo)&&void 0!==n?n:null}}class _{constructor(e){this.toJson=()=>({content:this.content,name:this.name,order:this.order,theme:this.theme,visible:this.visible}),this.content=e.content,this.name=e.name,this.order=e.order,this.theme=e.theme,this.visible=e.visible}}let A=[{name:"nft_showcase",theme:0,visible:!0,content:{networks:["eth","opt"]},order:0},{name:"holdings",theme:0,visible:!0,content:{tokens:["usdt","eth"]},order:1},{name:"recent_activity",theme:0,visible:!0,content:null,order:2},{name:"domain_records",theme:0,visible:!1,content:null,order:3},{name:"domain_holdings",theme:0,visible:!1,content:null,order:4}];class I{constructor(e){this.clone=()=>{let e=e=>new _({content:e.content,name:e.name,order:e.order,theme:e.theme,visible:e.visible,toJson:()=>e});return new I({color_theme:this.colorTheme,custom_background:this.customBackground,domain_name:this.domainName,forward_domain:this.forwardDomain,template:this.template,theme:this.theme,token_id:this.tokenId,lander_widgets:this.landerWidgets.map(e),profile_widgets:this.profileWidgets.map(e)})},this.getLanderWidgetValue=e=>{let t=this.landerWidgets.find(t=>t.name===e);return null==t?void 0:t.content},this.setLanderWidgetValue=(e,t)=>{let a=this.landerWidgets.find(t=>t.name===e);a&&(a.content=t)},this.prepareWidgetsForSave=()=>{let e=this.getLanderWidgetValue("opensea"),t=this.getLanderWidgetValue("email"),a=this.getLanderWidgetValue("x"),n=this.getLanderWidgetValue("telegram");this.landerWidgets=[{name:"opensea",order:0,visible:!!e,content:e,theme:0},{name:"email",order:1,visible:!!t,content:t,theme:0},{name:"x",order:2,visible:!!a,content:a,theme:0},{name:"telegram",order:3,visible:!!n,content:n,theme:0}],this.profileWidgets=A},this.toJson=()=>({color_theme:this.colorTheme,custom_background:this.customBackground,domain_name:this.domainName,forward_domain:this.forwardDomain,template:this.template,theme:this.theme,token_id:this.tokenId,lander_widgets:this.landerWidgets.map(e=>e instanceof _?e.toJson():e),profile_widgets:this.profileWidgets.map(e=>e instanceof _?e.toJson():e)}),this.colorTheme=e.color_theme,this.customBackground=e.custom_background,this.domainName=e.domain_name,this.forwardDomain=e.forward_domain,this.template=e.template,this.theme=e.theme,this.tokenId=e.token_id,this.landerWidgets=e.lander_widgets.map(e=>new _(e)),this.profileWidgets=e.profile_widgets.map(e=>new _(e))}}var M=a(68571);class E{getVersion(e){return["getNFTs"].includes(e)?"nft/v2":"v2"}async getData(e,t,a){let n=a?"".concat((null==a?void 0:a.startsWith("?"))?"":"?").concat(a):"",r="https://".concat(e,"-").concat(this.network,".g.alchemy.com/").concat(this.getVersion(t),"/").concat(this.apiKeys[e],"/").concat(t).concat(n);try{return(await b.default.get(r)).data}catch(e){throw(0,c.H)({msg:e.message,data:e}),e}}async post(e,t){let a="https://".concat(e,"-").concat(this.network,".g.alchemy.com/v2/").concat(this.apiKeys[e]);try{return(await b.default.post(a,t)).data.result}catch(e){throw(0,c.H)({msg:e.message,data:e}),e}}constructor(){if(this.apiKeys={eth:"",opt:""},this.network="",E.instance)return E.instance;this.apiKeys={eth:M.env.ALCHEMY_KEY_ETH||"",opt:M.env.ALCHEMY_KEY_OPT||""},this.network="mainnet",E.instance=this}}new E;var T=a(24587);let H=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;try{if(!e)return!!t;let n=new Date(1e3*JSON.parse(atob(e.split(".")[1])).exp),r=new Date;if(n.getTime()-r.getTime()<6e4*a)return!0}catch(e){return!0}return!1};function P(){localStorage.removeItem("token3DNS"),(0,T.z)(eR).then(()=>{let e=document.getElementById("wallet_connect_btn");e?e.click():((0,c.sH)({type:"error",msg:"wallet_connect_btn not found in the DOM",data:null}),setTimeout(()=>{window.location.href="/"},1e3))})}function B(e){if(null===e)return!1;let t=H(e,!0);return t&&P(),!t}var D=a(68571);let Z=b.default.create({baseURL:"".concat(D.env.NEXT_PUBLIC_3DNS_API),headers:{}});Z.interceptors.request.use(e=>{let t=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{var t;if(!window.localStorage)return{token3DNS:""};let a=null!==(t=localStorage.getItem("token3DNS"))&&void 0!==t?t:"";if(""===a||!H(a,e))return{token3DNS:a};P()}catch(e){}return{token3DNS:""}}();return t.token3DNS&&(e.headers.authorization="Bearer ".concat(t.token3DNS)),e},e=>Promise.reject(e)),Z.interceptors.response.use(e=>e,async e=>{var t;switch((null===(t=e.response)||void 0===t?void 0:t.status)||500){case 401:case 403:return P(),Promise.reject(e);default:return Promise.reject(e)}});let V=[{name:"Afghanistan",code:"AF"},{name:"\xc5land Islands",code:"AX"},{name:"Albania",code:"AL"},{name:"Algeria",code:"DZ"},{name:"American Samoa",code:"AS"},{name:"Andorra",code:"AD"},{name:"Angola",code:"AO"},{name:"Anguilla",code:"AI"},{name:"Antarctica",code:"AQ"},{name:"Antigua and Barbuda",code:"AG"},{name:"Argentina",code:"AR"},{name:"Armenia",code:"AM"},{name:"Aruba",code:"AW"},{name:"Australia",code:"AU"},{name:"Austria",code:"AT"},{name:"Azerbaijan",code:"AZ"},{name:"Bahamas",code:"BS"},{name:"Bahrain",code:"BH"},{name:"Bangladesh",code:"BD"},{name:"Barbados",code:"BB"},{name:"Belarus",code:"BY"},{name:"Belgium",code:"BE"},{name:"Belize",code:"BZ"},{name:"Benin",code:"BJ"},{name:"Bermuda",code:"BM"},{name:"Bhutan",code:"BT"},{name:"Bolivia (Plurinational State of)",code:"BO"},{name:"Bonaire, Sint Eustatius and Saba",code:"BQ"},{name:"Bosnia and Herzegovina",code:"BA"},{name:"Botswana",code:"BW"},{name:"Bouvet Island",code:"BV"},{name:"Brazil",code:"BR"},{name:"British Indian Ocean Territory",code:"IO"},{name:"Brunei Darussalam",code:"BN"},{name:"Bulgaria",code:"BG"},{name:"Burkina Faso",code:"BF"},{name:"Burundi",code:"BI"},{name:"Cabo Verde",code:"CV"},{name:"Cambodia",code:"KH"},{name:"Cameroon",code:"CM"},{name:"Canada",code:"CA"},{name:"Cayman Islands",code:"KY"},{name:"Central African Republic",code:"CF"},{name:"Chad",code:"TD"},{name:"Chile",code:"CL"},{name:"China",code:"CN"},{name:"Christmas Island",code:"CX"},{name:"Cocos (Keeling) Islands",code:"CC"},{name:"Colombia",code:"CO"},{name:"Comoros",code:"KM"},{name:"Congo (the Democratic Republic of the)",code:"CD"},{name:"Congo (the)",code:"CG"},{name:"Cook Islands",code:"CK"},{name:"Costa Rica",code:"CR"},{name:"C\xf4te d'Ivoire",code:"CI"},{name:"Croatia",code:"HR"},{name:"Cuba",code:"CU"},{name:"Cura\xe7ao",code:"CW"},{name:"Cyprus",code:"CY"},{name:"Czechia",code:"CZ"},{name:"Denmark",code:"DK"},{name:"Djibouti",code:"DJ"},{name:"Dominica",code:"DM"},{name:"Dominican Republic",code:"DO"},{name:"Ecuador",code:"EC"},{name:"Egypt",code:"EG"},{name:"El Salvador",code:"SV"},{name:"Equatorial Guinea",code:"GQ"},{name:"Eritrea",code:"ER"},{name:"Estonia",code:"EE"},{name:"Eswatini",code:"SZ"},{name:"Ethiopia",code:"ET"},{name:"Falkland Islands (the) [Malvinas]",code:"FK"},{name:"Faroe Islands",code:"FO"},{name:"Fiji",code:"FJ"},{name:"Finland",code:"FI"},{name:"France",code:"FR"},{name:"French Guiana",code:"GF"},{name:"French Polynesia",code:"PF"},{name:"French Southern Territories",code:"TF"},{name:"Gabon",code:"GA"},{name:"Gambia (the)",code:"GM"},{name:"Georgia",code:"GE"},{name:"Germany",code:"DE"},{name:"Ghana",code:"GH"},{name:"Gibraltar",code:"GI"},{name:"Greece",code:"GR"},{name:"Greenland",code:"GL"},{name:"Grenada",code:"GD"},{name:"Guadeloupe",code:"GP"},{name:"Guam",code:"GU"},{name:"Guatemala",code:"GT"},{name:"Guernsey",code:"GG"},{name:"Guinea",code:"GN"},{name:"Guinea-Bissau",code:"GW"},{name:"Guyana",code:"GY"},{name:"Haiti",code:"HT"},{name:"Heard Island and McDonald Islands",code:"HM"},{name:"Holy See (the)",code:"VA"},{name:"Honduras",code:"HN"},{name:"Hong Kong",code:"HK"},{name:"Hungary",code:"HU"},{name:"Iceland",code:"IS"},{name:"India",code:"IN"},{name:"Indonesia",code:"ID"},{name:"Iran (Islamic Republic of)",code:"IR"},{name:"Iraq",code:"IQ"},{name:"Ireland",code:"IE"},{name:"Isle of Man",code:"IM"},{name:"Israel",code:"IL"},{name:"Italy",code:"IT"},{name:"Jamaica",code:"JM"},{name:"Japan",code:"JP"},{name:"Jersey",code:"JE"},{name:"Jordan",code:"JO"},{name:"Kazakhstan",code:"KZ"},{name:"Kenya",code:"KE"},{name:"Kiribati",code:"KI"},{name:"Korea (the Democratic People's Republic of)",code:"KP"},{name:"Korea (the Republic of)",code:"KR"},{name:"Kuwait",code:"KW"},{name:"Kyrgyzstan",code:"KG"},{name:"Lao People's Democratic Republic (the)",code:"LA"},{name:"Latvia",code:"LV"},{name:"Lebanon",code:"LB"},{name:"Lesotho",code:"LS"},{name:"Liberia",code:"LR"},{name:"Libya",code:"LY"},{name:"Liechtenstein",code:"LI"},{name:"Lithuania",code:"LT"},{name:"Luxembourg",code:"LU"},{name:"Macao",code:"MO"},{name:"Macedonia (the former Yugoslav Republic of)",code:"MK"},{name:"Madagascar",code:"MG"},{name:"Malawi",code:"MW"},{name:"Malaysia",code:"MY"},{name:"Maldives",code:"MV"},{name:"Mali",code:"ML"},{name:"Malta",code:"MT"},{name:"Marshall Islands (the)",code:"MH"},{name:"Martinique",code:"MQ"},{name:"Mauritania",code:"MR"},{name:"Mauritius",code:"MU"},{name:"Mayotte",code:"YT"},{name:"Mexico",code:"MX"},{name:"Micronesia (Federated States of)",code:"FM"},{name:"Moldova (the Republic of)",code:"MD"},{name:"Monaco",code:"MC"},{name:"Mongolia",code:"MN"},{name:"Montenegro",code:"ME"},{name:"Montserrat",code:"MS"},{name:"Morocco",code:"MA"},{name:"Mozambique",code:"MZ"},{name:"Myanmar",code:"MM"},{name:"Namibia",code:"NA"},{name:"Nauru",code:"NR"},{name:"Nepal",code:"NP"},{name:"Netherlands (the)",code:"NL"},{name:"New Caledonia",code:"NC"},{name:"New Zealand",code:"NZ"},{name:"Nicaragua",code:"NI"},{name:"Niger (the)",code:"NE"},{name:"Nigeria",code:"NG"},{name:"Niue",code:"NU"},{name:"Norfolk Island",code:"NF"},{name:"Northern Mariana Islands (the)",code:"MP"},{name:"Norway",code:"NO"},{name:"Oman",code:"OM"},{name:"Pakistan",code:"PK"},{name:"Palau",code:"PW"},{name:"Palestine, State of",code:"PS"},{name:"Panama",code:"PA"},{name:"Papua New Guinea",code:"PG"},{name:"Paraguay",code:"PY"},{name:"Peru",code:"PE"},{name:"Philippines (the)",code:"PH"},{name:"Pitcairn",code:"PN"},{name:"Poland",code:"PL"},{name:"Portugal",code:"PT"},{name:"Puerto Rico",code:"PR"},{name:"Qatar",code:"QA"},{name:"R\xe9union",code:"RE"},{name:"Romania",code:"RO"},{name:"Russian Federation (the)",code:"RU"},{name:"Rwanda",code:"RW"},{name:"Saint Barth\xe9lemy",code:"BL"},{name:"Saint Helena, Ascension and Tristan da Cunha",code:"SH"},{name:"Saint Kitts and Nevis",code:"KN"},{name:"Saint Lucia",code:"LC"},{name:"Saint Martin (French part)",code:"MF"},{name:"Saint Pierre and Miquelon",code:"PM"},{name:"Saint Vincent and the Grenadines",code:"VC"},{name:"Samoa",code:"WS"},{name:"San Marino",code:"SM"},{name:"Sao Tome and Principe",code:"ST"},{name:"Saudi Arabia",code:"SA"},{name:"Senegal",code:"SN"},{name:"Serbia",code:"RS"},{name:"Seychelles",code:"SC"},{name:"Sierra Leone",code:"SL"},{name:"Singapore",code:"SG"},{name:"Sint Maarten (Dutch part)",code:"SX"},{name:"Slovakia",code:"SK"},{name:"Slovenia",code:"SI"},{name:"Solomon Islands",code:"SB"},{name:"Somalia",code:"SO"},{name:"South Africa",code:"ZA"},{name:"South Georgia and the South Sandwich Islands",code:"GS"},{name:"South Sudan",code:"SS"},{name:"Spain",code:"ES"},{name:"Sri Lanka",code:"LK"},{name:"Sudan (the)",code:"SD"},{name:"Suriname",code:"SR"},{name:"Svalbard and Jan Mayen",code:"SJ"},{name:"Sweden",code:"SE"},{name:"Switzerland",code:"CH"},{name:"Syrian Arab Republic",code:"SY"},{name:"Taiwan (Province of China)",code:"TW"},{name:"Tajikistan",code:"TJ"},{name:"Tanzania, United Republic of",code:"TZ"},{name:"Thailand",code:"TH"},{name:"Timor-Leste",code:"TL"},{name:"Togo",code:"TG"},{name:"Tokelau",code:"TK"},{name:"Tonga",code:"TO"},{name:"Trinidad and Tobago",code:"TT"},{name:"Tunisia",code:"TN"},{name:"Turkey",code:"TR"},{name:"Turkmenistan",code:"TM"},{name:"Turks and Caicos Islands (the)",code:"TC"},{name:"Tuvalu",code:"TV"},{name:"Uganda",code:"UG"},{name:"Ukraine",code:"UA"},{name:"United Arab Emirates (the)",code:"AE"},{name:"United Kingdom of Great Britain and Northern Ireland (the)",code:"GB"},{name:"United States Minor Outlying Islands (the)",code:"UM"},{name:"United States of America (the)",code:"US"},{name:"Uruguay",code:"UY"},{name:"Uzbekistan",code:"UZ"},{name:"Vanuatu",code:"VU"},{name:"Venezuela (Bolivarian Republic of)",code:"VE"},{name:"Viet Nam",code:"VN"},{name:"Virgin Islands (British)",code:"VG"},{name:"Virgin Islands (U.S.)",code:"VI"},{name:"Wallis and Futuna",code:"WF"},{name:"Western Sahara",code:"EH"},{name:"Yemen",code:"YE"},{name:"Zambia",code:"ZM"},{name:"Zimbabwe",code:"ZW"}];var U=a(68571);let z="domainContext | ",O=(0,l.createContext)({isCurrentOwner:!1,isForwardRes:!1,isPrimary:!1,domainLoading:!1,domain:void 0,primaryDomain:null,resolvedAddress:x,walletAddress:x,showReverseAddressModal:!1,onAddressModalOpen:()=>{},onAddressModalClose:()=>{},reload:()=>{}}),F=e=>{let{domainName:t,fetchDomain:a=!1,siteMode:n=!1,children:r}=e,[s,o]=(0,l.useState)(!1),[d,u]=(0,l.useState)(!1),[m,h]=(0,l.useState)(!1),[p,C]=(0,l.useState)(!1),[g,v]=(0,l.useState)(),[w,N]=(0,l.useState)(null),[k,_]=(0,l.useState)(x),[A,I]=(0,l.useState)(x),[M,E]=(0,l.useState)(!1),{address:T}=(0,f.m)(),H=()=>{window.location.hash="",E(!1)},P=async()=>{await V(),await F()};(0,l.useEffect)(()=>{t&&(V(),D(),n||F(),a&&B())},[t]);let B=async()=>{var e,a;C(!0);try{let a=(await Z.get("".concat(U.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/domain/user/get_user_domain/").concat(t))).data;if(null===(e=a.domain)||void 0===e?void 0:e.domainName){let e=new L(a);v(e)}}catch(t){let e=null==t?void 0:t.response;(0,c.sH)({type:"error",msg:null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.message,data:e})}finally{C(!1)}},D=async()=>{try{let{data:e}=await b.default.get("/api/wallet?domain=".concat(t));if(e.success){let{owners:t}=e.data;if(t.length&&null!==t[0]&&!t[0].startsWith("0x00000")){let e=t[0];I(e)}}}catch(e){(0,c.H)({msg:z+(e.message||"Unable to get wallet address."),data:e})}},V=async()=>{try{let e=(0,y.V)(t),a=await (0,j.L)(eR,{...S,functionName:"addr",args:[e]}),n=!a||a.startsWith("0x00000");_(a),u(!n)}catch(e){(0,c.H)({msg:z+(e.message||"Unable to get resolved address."),data:e})}},F=async()=>{let e=await (0,c.OU)(T);N(e),e===t&&h(!0)};return(0,l.useEffect)(()=>{A&&o(A.toLowerCase()===(null==T?void 0:T.toLowerCase()))},[T,A]),(0,i.jsxs)(O.Provider,{value:{isCurrentOwner:s,isForwardRes:d,isPrimary:m,domainLoading:p,domain:g,primaryDomain:w,resolvedAddress:k,walletAddress:A,showReverseAddressModal:M,onAddressModalOpen:()=>{window.location.hash="#mainnet",E(!0)},onAddressModalClose:H,reload:P},children:[r,!n&&M?(0,i.jsx)(an,{domain:t,handleCancel:H,handleComplete:H,isOpen:M}):null]})},R=()=>(0,l.useContext)(O),W=(0,l.createContext)({flags:{},flagsLoading:!1}),G=e=>{let{children:t}=e,[a,n]=(0,l.useState)({}),[r,s]=(0,l.useState)(!0),{address:o}=w(),d=(0,l.useCallback)(async()=>{s(!0);try{let e="/api/feature-flags?wallet_address=".concat(o||""),t=await b.default.get(e);n(t.data)}catch(e){(0,c.H)({msg:"featureFlagsContext | "+(e.message||"Unable to fetch flags."),data:e})}finally{s(!1)}},[o]);return(0,l.useEffect)(()=>{d()},[d]),(0,i.jsx)(W.Provider,{value:{flags:a,flagsLoading:r},children:t})};var K=a(18667),q=a(20358),J=a(6688),X=a(59163),Y=a(26989),Q=a(35132),$=a(94089),ee=a(71804),et=a(76916),ea=a(42291),en=a(99176);a(83559);var er=a(68571);function es(e){let{formSave:t,formCancel:a,formChangeEmail:n,jwt3DNS:r,address:s}=e,o=(0,l.useRef)([]),[d,m]=(0,l.useState)(""),[h,f]=(0,l.useState)(Array(6).fill("")),p=(0,l.useCallback)(async()=>{let e=h.slice(0,6).join("");try{if(!B(r))return!1;let t=(await b.default.put("".concat(er.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/management/verify_user"),{jwt:r,verificationCode:e})).data;return(null==t?void 0:t.verified)===!0}catch(e){return!1}},[h,r]),x=(0,l.useCallback)(async()=>{await p()?(et.Am.success("Email is verified"),t()):et.Am.error("Invalid code. Please try again.")},[t,p]),C=(0,l.useCallback)(e=>{var t,a;let n=null==e?void 0:null===(a=e.clipboardData)||void 0===a?void 0:null===(t=a.getData("text"))||void 0===t?void 0:t.slice(0,6),r=[...h];for(let e=0;e<6;e++)(null==n?void 0:n[e])&&(r[e]=n[e]);f(e=>r)},[h]);(0,l.useEffect)(()=>(window.addEventListener("paste",C),()=>{window.removeEventListener("paste",C)}),[C]);let g=e=>{if("Enter"===e.key){x();return}if(("Backspace"===e.key||8===e.keyCode)&&""===e.target.value){let t=Number(e.target.name.split("-")[1]),a=o.current[t-1];null==a||a.focus()}},v=e=>{let t=e.target.value.toUpperCase(),a=Number(e.target.name.split("-")[1]),n=[...h];if(n[a]=t,f(e=>n),a<5&&""!==t){let e=o.current[a+1];null==e||e.focus()}},w=async()=>{try{if(!B(r))return;await b.default.post("".concat(er.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/management/send_verification_code"),{jwt:r}),et.Am.success("Verification code sent")}catch(e){et.Am.error("Verification code sending error")}},j=async()=>{try{n()}catch(e){et.Am.error("Email update error")}};return(0,l.useEffect)(()=>{(async()=>{o.current[0]&&o.current[0].focus();try{var e,t;if(!B(r))return;let a=await b.default.get("".concat(er.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/management/get_user/").concat(s),{headers:{Authorization:"Bearer ".concat(r)}});m(null==a?void 0:null===(t=a.data)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.email)}catch(e){(0,c.sH)({type:"error",msg:"Error fetching email",data:e})}})()},[s,r]),(0,l.useEffect)(()=>{6===h.join("").length&&x()},[h,x]),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"flex items-start justify-between p-5 rounded-t",children:[(0,i.jsx)(ey,{level:"h4",children:"Check your email"}),(0,i.jsx)(en.UI9,{size:"32",className:"cursor-pointer text-secondary-tint",onClick:()=>{a()}})]}),(0,i.jsxs)("div",{className:"relative flex-auto p-6",children:[(0,i.jsxs)("p",{className:"mb-6 text-lg leading-relaxed text-slate-500",children:["Please enter the verification code sent to"," ",d||"your email"]}),(0,i.jsx)(u,{variant:"body1",className:"mb-4 font-bold",children:"Verification code"}),(0,i.jsx)("div",{className:"confirmationDigits",children:Array.from(Array(6).keys()).map(e=>(0,i.jsx)("input",{onChange:v,onKeyDown:g,ref:t=>{o.current[e]=t},value:h[e]||"",className:"appearance-none inline-block border-[2px] border-gray-60 py-3 px-2 leading-tight focus:outline-none focus:border-gray-60 text-primary-text text-center",required:!0,type:"text",maxLength:1,name:"code-".concat(e)},e))})]}),(0,i.jsx)("div",{className:"p-6 border-t border-solid rounded-b bg-primary border-slate-200",children:(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,i.jsxs)("div",{className:"text-left text-white",children:["Didn't receive a code?",(0,i.jsx)(u,{className:"block text-white underline cursor-pointer hover:text-primary-dark",onClick:()=>{w()},children:"Resend code"})]}),(0,i.jsxs)("div",{className:"ml-5 text-left text-white",children:["Wrong email address?",(0,i.jsx)(u,{onClick:()=>{j()},className:"underline cursor-pointer",children:"Change email"})]})]})})]})}function ei(e){let{formSave:t,formCancel:a}=e,n=(0,l.useRef)(null),[r,s]=(0,l.useState)(!1),[o,m]=(0,l.useState)(""),[h,f]=(0,l.useState)(""),p=e=>{if("Enter"===e.key){x();return}};(0,l.useEffect)(()=>{var e;(0,c.eJ)({flowType:"account-sign-up",stepName:"create-account",stepNumber:1}),null===(e=n.current)||void 0===e||e.focus()},[]);let x=()=>{/^[a-zA-Z0-9._%+-]+@((?!-)(?!.*--)(?!.*\.-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9](\.[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])*)\.[a-zA-Z]{2,63}$/.test(o)?h?/^[A-Za-z][A-Za-z0-9._]*$/.test(h)?t(r,o,h):et.Am.error('Username starts with characters and can have numbers, "." and "_".'):et.Am.error("Please provide a username."):et.Am.error("Please provide a valid email address.")},C=()=>{a()};return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"flex items-start justify-between p-5 rounded-t",children:[(0,i.jsx)(ey,{level:"h4",children:"Create a .box account to continue"}),(0,i.jsx)(en.UI9,{size:"32",className:"cursor-pointer text-secondary-tint",onClick:e=>{C()}})]}),(0,i.jsxs)("div",{className:"relative flex-auto p-6",children:[(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold",children:"Username"}),(0,i.jsx)("input",{ref:n,onChange:e=>{f(e.target.value)},onKeyUp:p,value:h,className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60",required:!0,type:"text",id:"contact-username",name:"contact-username"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold",children:"Email"}),(0,i.jsx)("input",{onChange:e=>{m(e.target.value)},onKeyUp:p,value:o,className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60",required:!0,type:"text",id:"contact-email",name:"contact-email"})]}),(0,i.jsx)("div",{className:"mt-4",children:(0,i.jsxs)("label",{className:"inline-flex items-center",children:[(0,i.jsx)("input",{type:"checkbox",checked:r,onChange:e=>s(e.target.checked),className:"w-5 h-5 cursor-pointer form-checkbox accent-black"}),(0,i.jsx)("span",{className:"ml-2 cursor-pointer",children:"Opt in to receive news and updates"})]})})]}),(0,i.jsxs)("div",{className:"flex items-center justify-end p-6 border-t border-solid rounded-b bg-primary border-slate-200",children:[(0,i.jsx)(d,{variant:"stroke",className:"!text-white !border-white mr-6",onClick:e=>{C()},children:"Cancel"}),(0,i.jsxs)(d,{className:"!text-primary !bg-white",onClick:e=>{x()},children:["Continue",(0,i.jsx)(en.hlg,{className:"ml-[10px]"})]})]})]})}var el=a(68571);function eo(e){let{formEmailChanged:t,formCancel:a,jwt3DNS:n,address:r}=e,s=(0,l.useRef)(null),[o,c]=(0,l.useState)("");(0,l.useEffect)(()=>{s.current&&s.current.focus()},[]);let m=async()=>{if(/^[a-zA-Z0-9._%+-]+@((?!-)(?!.*--)(?!.*\.-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9](\.[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])*)\.[a-zA-Z]{2,63}$/.test(o)){var e;if(!B(n))return;let a=await b.default.put("".concat(el.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/management/update_email"),{email:o,jwt:n});if((null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.success)!==!0)throw Error("Email update error");et.Am.success("Email was updated"),t(o)}else{et.Am.error("Please provide a valid email address.");return}},h=()=>{a()};return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"flex items-start justify-between p-5 rounded-t",children:[(0,i.jsx)(ey,{level:"h4",className:"mr-4",children:"Enter your email address"}),(0,i.jsx)(en.UI9,{size:"32",className:"cursor-pointer text-secondary-tint",onClick:e=>{h()}})]}),(0,i.jsx)("div",{className:"relative flex-auto p-6",children:(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold",children:"Email"}),(0,i.jsx)("input",{ref:s,onChange:e=>{c(e.target.value)},onKeyUp:e=>{if("Enter"===e.key){m();return}},value:o,className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60",required:!0,type:"text",id:"contact-email",name:"contact-email"}),(0,i.jsx)("div",{className:"mt-5",children:"You must verify your valid email address to use .box"})]})}),(0,i.jsxs)("div",{className:"flex items-center justify-end p-6 border-t border-solid rounded-b bg-primary border-slate-200",children:[(0,i.jsx)(d,{variant:"stroke",className:"!text-white !border-white mr-6",onClick:h,children:"Cancel"}),(0,i.jsxs)(d,{className:"!text-primary !bg-white",onClick:m,children:["Verify email",(0,i.jsx)(en.hlg,{className:"ml-[10px]"})]})]})]})}var ec=a(32761),ed=a(48388);a(54800);var eu=a(75249),em=a.n(eu);let eh={firstName:{required:"First Name is required.",validate:e=>em().isAlpha(e.replace(/-/g,""))&&em().isLength(e,{min:2})||"First Name must be at least two characters long and can only contain uppercase letters (A-Z), lowercase letters (a-z), and hyphens (-)."},lastName:{required:"Last Name is required.",validate:e=>em().isAlpha(e.replace(/-/g,""))&&em().isLength(e,{min:2})||"Last Name must be at least two characters long and can only contain uppercase letters (A-Z), lowercase letters (a-z), and hyphens (-)."},email:{required:"Email is required.",validate:e=>em().isEmail(e)||"A valid email is required."},address1:{required:"Address is required.",validate:e=>em().isLength(e,{min:1,max:128})&&em().isAlphanumeric(e.replace(/[-.\s]/g,""))||"Address must be 1 to 128 characters long and can only contain letters (A-Z, a-z), digits (0-9), hyphens (-), and periods (.)"},address2:{validate:e=>em().isEmpty(e)||em().isLength(e,{max:128})&&em().isAlphanumeric(e.replace(/[-.\s]/g,""))||"Address line 2 is optional and should be 1 to 128 characters long, containing only letters (A-Z, a-z), digits (0-9), hyphens (-), and periods (.)"},city:{required:"City is required.",validate:e=>em().isLength(e,{min:1,max:128})&&em().isAlphanumeric(e.replace(/[-.\s]/g,""))||"City must be 1 to 128 characters long and can only contain letters (A-Z, a-z), digits (0-9), hyphens (-), and periods (.)"},state:{required:"State is required.",validate:e=>em().isLength(e,{min:1,max:128})&&em().isAlphanumeric(e.replace(/[-.\s]/g,""))||"State must be 1 to 128 characters long and can only contain letters (A-Z, a-z), digits (0-9), hyphens (-), and periods (.)"},postalCode:{required:"Postal Code is required.",validate:e=>em().isLength(e,{min:1,max:16})&&em().isAlphanumeric(e.replace(/\s/g,""))||"The postal code must be 1 to 16 characters long and can only contain letters (A-Z, a-z) and digits (0-9)."},countryCode:{required:"Country is required."}};var ef=e=>{let t;let{errors:a,fieldName:n}=e,r=Object.keys(a).includes(n);return r&&(t=a[n]),t&&"object"==typeof t&&Object.keys(t).includes("message")&&t?(0,i.jsx)("div",{className:"w-full",children:(0,i.jsx)(u,{className:"".concat(r?"visible":"invisible"," text-danger text-sm mt-1"),children:(0,i.jsx)(i.Fragment,{children:t.message})})}):null},ep=a(68571);function ex(e){let{formSave:t,formCancel:a,formClose:n,jwt3DNS:r,contactInfo:s,isFirstContact:o=!1}=e,{register:c,setValue:m,handleSubmit:h,formState:{errors:f,isDirty:p},watch:x}=(0,ed.cI)({mode:"onBlur",defaultValues:s||{}});(0,l.useEffect)(()=>{(async()=>{var e,t;if(!B(r))return;let a=await b.default.get("".concat(ep.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/management/get_user"),{headers:{Authorization:"Bearer ".concat(r)}});m("email",null==a?void 0:null===(t=a.data)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.email)})()},[r,m]);let C=x("countryCode"),g={...eh,phone:{required:"Phone is required",pattern:{value:["US","CA"].includes(C)?/^\d{10}$/:/^\d{1,15}$/,message:["US","CA"].includes(C)?"Please enter a valid 10-digit phone number.":"Please enter a valid numeric phone number. Max length 15 digits."}}},v=async e=>{var a,n,i,l;let o=null==s?void 0:s.whoisContactId;try{if(!B(r))return;let s="".concat(ep.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/whois/add_whois_contact"),i={whoisContact:{firstName:e.firstName,lastName:e.lastName,email:e.email,address1:e.address1,address2:e.address2,city:e.city,state:e.state,postalCode:e.postalCode,countryCode:e.countryCode,phone:e.phone,isDefault:e.isDefault},jwt:r};if(o){s="".concat(ep.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/whois/update_whois_contact"),i={...i,whoisContactId:o};let e=await b.default.put(s,i);if(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.code)throw Error("WHOIS post error");et.Am.success("Thank you!"),t(null==e?void 0:e.data)}else{let e=await b.default.post(s,i);if(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.code)throw Error("WHOIS post error");et.Am.success("Thank you!"),t(null==e?void 0:e.data)}}catch(e){if(e instanceof ec.d7){let t=null==e?void 0:null===(l=e.response)||void 0===l?void 0:null===(i=l.data)||void 0===i?void 0:i.message;if(t){let e=t.split("|"),a=e[e.length-1];et.Am.error("Form error: ".concat(a))}}else et.Am.error("Form error");return}},w=()=>{a()},j=()=>{n?n():a()},y=(0,l.useCallback)(e=>Object.keys(f).includes(e)?" !border-danger ":"",[f]),N=(0,l.useCallback)(e=>Object.keys(f).includes(e)?" !text-danger ":"",[f]),S=(null==s?void 0:s.isDefault)||!1;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{"data-testid":"whois-modal",className:" px-0 pt-4 md:pt-8 pb-0 flex flex-col gap-6 lg:gap-8 lg:min-w-[960px] max-w-[1000px] max-h-[100dvh] lg:max-h-[100vh] overflow-hidden",children:[(0,i.jsxs)("header",{className:"flex items-center justify-between px-8 rounded-t",children:[(0,i.jsx)(ey,{"data-testid":"whois-title",level:"h4",className:"mr-4",children:"WHOIS contact"}),(0,i.jsx)(en.UI9,{size:"32",className:"cursor-pointer text-secondary-tint",onClick:e=>{e.preventDefault(),j()}})]}),(0,i.jsxs)("form",{onSubmit:h(v),children:[(0,i.jsxs)("div",{className:"flex flex-col gap-6 lg:gap-8 max-h-[calc(100dvh_-_170px)] lg:max-h-[calc(100vh_-_236px)] !overflow-y-auto",children:[(0,i.jsx)(u,{"data-testid":"whois-description",variant:"body1",className:"px-8",children:"We’re required by ICANN to ensure our domain customers maintain accurate WHOIS contact information. Please complete the fields below. By default, your personal information will be Privacy Protected and not published to the public WHOIS directory."}),(0,i.jsx)("div",{className:"max-h-[calc(100dvh_-_386px)] lg:max-h-[calc(100vh_-_366px)]",children:(0,i.jsxs)("div",{className:"relative w-full flex flex-col gap-[1rem] lg:gap-[1.5rem] px-8 pb-8 min-h-fit ",children:[(0,i.jsxs)("label",{className:"inline-flex items-center",children:[S?(0,i.jsx)("div",{className:"flex items-center justify-center w-5 h-5 opacity-50 cursor-not-allowed bg-primary",children:(0,i.jsx)(en.KBY,{size:16,className:"text-white"})}):(0,i.jsx)("input",{type:"checkbox","data-testid":"whois-registrant-checkbox",className:"w-5 h-5 form-checkbox accent-black",...o&&{disabled:!0},...c("isDefault",{value:!!o})}),(0,i.jsx)("span",{className:"ml-2 text-[16px] text-disabled-label ".concat(S?"cursor-not-allowed":""),"data-testid":"whois-useForRegistrantLabel",children:"Use for Registrant, Admin, Tech, and Billing records (you can change these later)"})]}),(0,i.jsxs)("div",{className:"whois-form-row",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold "+N("firstName"),children:"First Name"}),(0,i.jsx)("input",{className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60 ".concat(y("firstName")," "),type:"text",autoFocus:!0,...c("firstName",g.firstName)}),(0,i.jsx)(ef,{errors:f,fieldName:"firstName"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold "+N("lastName"),children:"Last Name"}),(0,i.jsx)("input",{className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60 ".concat(y("lastName")," "),type:"text",...c("lastName",g.lastName)}),(0,i.jsx)(ef,{errors:f,fieldName:"lastName"})]})]}),(0,i.jsxs)("div",{className:"whois-form-row",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold "+N("email"),children:"Email"}),(0,i.jsx)("input",{className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60 ".concat(y("email")," "),type:"text",disabled:!0,...c("email",g.email)}),(0,i.jsx)(ef,{errors:f,fieldName:"email"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold "+N("phone"),children:"Phone*"}),(0,i.jsx)("input",{className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60 ".concat(y("phone")," "),type:"text",...c("phone",g.phone)}),(0,i.jsx)(ef,{errors:f,fieldName:"phone"})]})]}),(0,i.jsxs)("div",{className:"whois-form-row",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold "+N("address1"),children:"Mailing Address"}),(0,i.jsx)("input",{className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60 ".concat(y("address1")," "),type:"text",...c("address1",g.address1)}),(0,i.jsx)(ef,{errors:f,fieldName:"address1"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold "+N("address2"),children:"Address line 2"}),(0,i.jsx)("input",{className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60 ".concat(y("address2"),"  "),type:"text",...c("address2",g.address2)}),(0,i.jsx)(ef,{errors:f,fieldName:"address2"})]})]}),(0,i.jsxs)("div",{className:"whois-form-row",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold "+N("city"),children:"City"}),(0,i.jsx)("input",{className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60 ".concat(y("city")," "),type:"text",...c("city",g.city)}),(0,i.jsx)(ef,{errors:f,fieldName:"city"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold",children:"State/Province"}),(0,i.jsx)("input",{className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60 ".concat(y("state")," "),type:"text",...c("state",g.state)}),(0,i.jsx)(ef,{errors:f,fieldName:"state"})]})]}),(0,i.jsxs)("div",{className:"whois-form-row",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold "+N("postalCode"),children:"ZIP/Postal Code"}),(0,i.jsx)("input",{className:"appearance-none block w-full border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60 ".concat(y("postalCode")," "),type:"text",...c("postalCode",g.postalCode)}),(0,i.jsx)(ef,{errors:f,fieldName:"postalCode"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"body1",className:"font-bold "+N("countryCode"),children:"Country"}),(0,i.jsxs)("div",{className:"relative select-wrapper-screen-whois ",children:[(0,i.jsxs)("select",{className:"block w-full relative border-[2px] border-gray-60 rounded  py-3 px-4 leading-tight focus:outline-none focus:border-gray-60 ".concat(y("countryCode")),...c("countryCode",g.countryCode),children:[(0,i.jsx)("option",{value:"",children:"Select Country"}),V.map(e=>(0,i.jsx)("option",{value:e.code,children:e.name},e.code))]}),(0,i.jsx)(ef,{errors:f,fieldName:"countryCode"})]})]})]})]})})]}),(0,i.jsxs)("div",{className:"flex items-center justify-end p-6 border-t border-solid rounded-b bg-primary border-slate-200",children:[(0,i.jsx)(d,{variant:"stroke",className:"!text-white !border-white mr-6",onClick:e=>{w()},children:"Cancel"}),(0,i.jsxs)(d,{disabled:(null==s?void 0:s.whoisContactId)&&!p,className:"!text-primary ".concat((null==s?void 0:s.whoisContactId)&&!p?"!bg-disabled":"!bg-white"),type:"submit",children:[(null==s?void 0:s.whoisContactId)?"Update":"Continue",(0,i.jsx)(en.hlg,{className:"ml-[10px]"})]})]})]})]})})}var eC=a(68571);function eg(e){let{jwt3DNS:t,verify:a,address:n,signature:r,nonce:s,issuedAt:o,expiresAt:d,resolve:u,reject:m}=e,[h,f]=(0,l.useState)(!1),[p,x]=(0,l.useState)(""),[C,g]=(0,l.useState)(""),[v,w]=(0,l.useState)(t||""),[j,y]=(0,l.useState)(),N=async()=>{ej(),u({marketingConsent:h,contactEmail:p,contactUsername:C,token:v})};(0,l.useEffect)(()=>{y(a?1:0)},[]),(0,l.useEffect)(()=>{1===j&&(0,c.eJ)({flowType:"account-sign-up",stepName:"verification-code",stepNumber:2})},[j]);let S=async(e,t,a)=>{try{var i;let l=(await b.default.post("".concat(eC.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/register_user"),{signature:r,nonce:s,issuedAt:o,expiresAt:d,user:{username:a,email:t,primaryWallet:n,marketingEmailOptIn:e}})).data;if(!(null==l?void 0:l.jwt))throw Error("Auth error");w(null==l?void 0:l.jwt),f(e),x(t),g(a),(null==l?void 0:null===(i=l.user)||void 0===i?void 0:i.verified)!==!0?y(1):(ej(),u(null==l?void 0:l.jwt))}catch(e){et.Am.error(e.message),ej(),(0,c.Mc)("account-sign-up"),m()}},k=()=>{ej(),(0,c.Mc)("account-sign-up"),m()};return(0,i.jsxs)("div",{className:"getUserDetails",children:[(0,i.jsx)("div",{className:"justify-center items-center flex overflow-x-hidden max-h-[100dvh] lg:max-h-[100vh] overflow-y-auto fixed inset-0 z-[2147483648] outline-none focus:outline-none",children:(0,i.jsx)("div",{className:"modal relative w-auto my-0 lg:my-6 mx-auto max-w-[600px] ",children:(0,i.jsxs)("div",{className:"relative flex flex-col w-full bg-white border-0 rounded-lg shadow-lg outline-none focus:outline-none",children:[0===j&&(0,i.jsx)(ei,{formSave:S,formCancel:k}),1===j&&(0,i.jsx)(es,{jwt3DNS:v,address:n,formSave:N,formCancel:k,formChangeEmail:()=>{y(2)}}),2===j&&(0,i.jsx)(eo,{jwt3DNS:v,address:n,formCancel:k,formEmailChanged:e=>{y(1)}})]})})}),(0,i.jsx)("div",{className:"fixed inset-0 z-40 bg-black opacity-25"})]})}(r=s||(s={}))[r.inputPending=0]="inputPending",r[r.validationPending=1]="validationPending",r[r.emailChangePending=2]="emailChangePending";let ev=(e,t,a,n,r,s)=>((0,c.eJ)({flowType:"account-sign-up",stepName:"wallet-success",stepNumber:2}),new Promise((l,o)=>{(function(e,t,a,n,r,s,l,o){let c=document.getElementsByTagName("body")[0],d=document.createElement("div");d.setAttribute("id","getUserDetails-container"),c.appendChild(d),(0,ea.createRoot)(d).render((0,i.jsx)(eg,{jwt3DNS:a,signature:r,nonce:s,issuedAt:l,expiresAt:o,address:n,verify:!1,resolve:e,reject:t}))})(l,o,e,t,a,n,r,s)})),ew=(e,t)=>new Promise((a,n)=>{!function(e,t,a,n){let r=document.getElementsByTagName("body")[0],s=document.createElement("div");s.setAttribute("id","getUserDetails-container"),r.appendChild(s),(0,ea.createRoot)(s).render((0,i.jsx)(eg,{jwt3DNS:a,signature:null,nonce:"",issuedAt:"",expiresAt:"",address:n,verify:!0,resolve:e,reject:t}))}(a,n,e,t)});function ej(){let e=document.getElementById("getUserDetails-container"),t=document.getElementsByTagName("body")[0];e&&t&&t.removeChild(e)}let eb=e=>{let{children:t,large:a,className:n}=e;return(0,i.jsxs)("div",{"data-testid":"DialogueComponent",className:"dialogue "+(n||""),children:[(0,i.jsx)("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto fixed inset-0 z-[102] outline-none focus:outline-none",children:(0,i.jsx)("div",{className:"modal relative w-auto my-0 mx-auto max-h-[100dvh] md:max-h-[100vh] overflow-y-auto ".concat(a?"w-fit":"max-w-[600px]"),children:(0,i.jsx)("div",{className:"max-h-[100dvh] md:max-h-[100vh] overflow-y-auto border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none",children:t})})}),(0,i.jsx)("div",{className:"opacity-25 fixed inset-0 z-40 bg-black"})]})};a(46704);let ey=e=>{let{level:t="h2",as:a,children:n,className:r,...s}=e;return(0,i.jsx)(a?a===t?t:a:t,{className:"".concat(t," ").concat(r||""),...s,children:n})};var eN=e=>{let{onCancel:t,onCreateWhois:a,location:n}=e;return(0,i.jsxs)("div",{className:"px-0 pt-4 md:pt-8 pb-0 flex flex-col gap-6 lg:gap-8 max-w-[600px] border border-black rounded",children:[(0,i.jsxs)("header",{className:"flex items-start justify-between px-8 rounded-t",children:[(0,i.jsx)(ey,{level:"h4",className:"mr-4",children:"Are you sure you want to leave the page?"}),(0,i.jsx)(en.UI9,{size:"40",className:"cursor-pointer text-secondary-tint",onClick:e=>{e.preventDefault(),a()}})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-6 px-8",children:["signup"===n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u,{variant:"body1",children:"A default WHOIS contact is required for domain purchases. If you choose to cancel now, you'll need to create one during domain purchase."}),(0,i.jsx)(u,{variant:"body1",className:"!text-danger !font-bold",children:"If you leave now, you'll have to fill out the information later."})]}):null,"buyflow"===n?(0,i.jsx)(u,{variant:"body1",className:"!text-danger !font-bold",children:"A default WHOIS contact is required for domain purchases."}):null]}),(0,i.jsxs)("div",{className:"flex flex-row items-center justify-between px-8 py-6 border-t border-solid rounded-b bg-primary border-slate-200",children:[(0,i.jsx)(d,{variant:"stroke",className:"!text-danger !border-danger",onClick:e=>{e.preventDefault(),t()},children:"Leave page"}),(0,i.jsx)(d,{variant:"fill",className:"!text-primary !bg-white",onClick:e=>{e.preventDefault(),a()},children:"signup"===n?"Stay on page":"Create WHOIS Contact"})]})]})},eS=e=>{var t;let a;let{token3DNS:n,onCancel:r}=e;(t=a||(a={}))[t.whoisPending=0]="whoisPending",t[t.whoisPendingCancelled=1]="whoisPendingCancelled";let[s,o]=(0,l.useState)(0);return(0,l.useEffect)(()=>{(0,c.eJ)({flowType:"WHOIS-form-sign-up",stepName:"whois-contact",stepNumber:1,status:"start"})},[]),(0,i.jsxs)(eb,{large:!0,className:"register-whois",children:[0===s&&(0,i.jsx)(ex,{jwt3DNS:n,formCancel:()=>o(1),formSave:()=>{(0,c.W8)("WHOIS-form-sign-up"),r()},contactInfo:{isDefault:!0}}),1===s&&(0,i.jsx)(eN,{onCancel:()=>{(0,c.Mc)("account-sign-up"),(0,c.Mc)("WHOIS-form-sign-up"),r()},onCreateWhois:()=>o(0),location:"signup"})]})},ek=a(68571),eL=a(46385).Buffer;let e_=ek.env.NEXT_PUBLIC_RECAPTCHA_KEY||"",eA=e=>{try{let t=K.fromRpcSig(e),a=t.v,n=eL.from(t.r).toString("base64"),r=eL.from(t.s).toString("base64");return{v:a,r:n,s:r}}catch(e){(0,c.sH)({type:"error",msg:"Error getting VRS auth signature",data:e})}return null};function eI(e){let{children:t}=e,a=(0,l.useRef)(null),{authToken:n,login:r,logout:s}=w(),[d,u]=(0,l.useState)(""),[m,h]=(0,l.useState)(""),[p,x]=(0,l.useState)(""),[C,g]=(0,l.useState)(!1),{address:v}=(0,f.m)(),j=v||"",y=(0,o.usePathname)().includes("/buy/"),N=async()=>{var e,t;let n;null===(e=a.current)||void 0===e||e.reset(),u(n=localStorage.getItem("e2e")||String(await (null===(t=a.current)||void 0===t?void 0:t.executeAsync())));let r=new Date().toISOString().split(".")[0]+"Z",s=new Date(Date.now()+3e5).toISOString().split(".")[0]+"Z";return h(r),x(s),n},S=async(e,t)=>{try{var a,n,s,i,l,o,u;let h=eA(t),f=(null===(n=await b.default.get("".concat(ek.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/user_exists/")+e))||void 0===n?void 0:null===(a=n.data)||void 0===a?void 0:a.success)===!0,x="";if(f){let t=(await b.default.post("".concat(ek.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/login_user"),{primaryWallet:e,signature:h,nonce:d,issuedAt:m,expiresAt:p})).data;if(x=null==t?void 0:t.jwt,(null==t?void 0:null===(s=t.user)||void 0===s?void 0:s.verified)!==!0&&!await ew(x,e))throw Error("Auth error");let a=null===(l=(await b.default.get("".concat(ek.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/user/whois/get_whois_contacts?pageOptions.pageSize=1&pageOptions.pageNumber=0"),{headers:{Authorization:"Bearer ".concat(x)}})).data)||void 0===l?void 0:null===(i=l.whoisContacts)||void 0===i?void 0:i.length;(null===(u=(await b.default.get("".concat(ek.env.NEXT_PUBLIC_3DNS_API,"/api/v1/core_backend_service/domain/user/get_user_domains?pageOptions.pageSize=1&pageOptions.pageNumber=0"),{headers:{Authorization:"Bearer ".concat(x)}})).data)||void 0===u?void 0:null===(o=u.domains)||void 0===o?void 0:o.length)&&c.b4.gaSetPurchaseHistory(!0),a||y||g(!0),r(x)}else{let t=await ev("",e,h,d,m,p);if(!t||!t.token)throw Error("Auth error");x=t.token,y||g(!0),setTimeout(()=>{(0,c.W8)("account-sign-up"),(0,c.AY)(e)},2e3)}return r(x),new Promise(e=>{e(!0)})}catch(e){return(0,c.H)({msg:"Error verifying user",data:e}),et.Am.error("Auth error"),!1}},k=(0,Y.Z)();(0,l.useEffect)(()=>{let e=(0,$.u)(k,{onChange:(e,t)=>{t.address&&t.address!==e.address&&s()}});return()=>e()},[]),(0,Q.E)({onDisconnect(){(null==n?void 0:n.token3DNS)||(0,c.Mc)("user-authentication"),s()}});let L=(0,J.vJ)({getNonce:async()=>(s(),String(await N())),createMessage:e=>{let{nonce:t,address:a}=e,n=(0,ee.w)(t);return"".concat("Sign this to start minting and managing Onchain Domains - Powered by 3DNS.","\n\nClick to sign in and accept the 3DNS Terms of Service (https://3dns.box/tos) and Privacy Policy (https://3dns.box/privacy).\n\nThis request will not trigger a blockchain transaction or cost any gas fees.\n\nYour authentication status will reset after 24 hours.\n\nWallet address:\n").concat(a,"\n\nSignature Issued Timestamp:\n").concat(m,"\n\nSignature Expiration Timestamp:\n").concat(p,"\n\nNonce:\n").concat(n)},getMessageBody:e=>{let{message:t}=e;return t},verify:async e=>{let{signature:t,message:a}=e;return!!await S(String(j),t)||(s(),!1)},signOut:async()=>{}});return(0,i.jsx)(J.zF,{adapter:L,status:n&&n.token3DNS?"authenticated":"unauthenticated",children:(0,i.jsxs)(J.pj,{theme:(0,X.$)({borderRadius:"none"}),children:[t,C&&n&&n.token3DNS?(0,i.jsx)(eS,{token3DNS:n.token3DNS,onCancel:()=>g(!1)}):null,(0,i.jsx)(q.Z,{ref:a,size:"invisible",sitekey:e_})]})})}var eM=a(55437),eE=a(84825),eT=a(26821),eH=a(57702),eP=a(4562),eB=a(61901),eD=a(61234),eZ=a(46711),eV=a(89985),eU=a(99532),ez=a(1352),eO=a(60352);let{wallets:eF}=(0,J.wo)(),eR=(0,J.vX)({appName:".BOX",projectId:"e4d6eac6619def911497a7572a674e0d",chains:[eH.v,eP.R],transports:{[eH.v.id]:(0,eZ.t)([(0,eV.d)("https://opt-mainnet.g.alchemy.com/v2/".concat("QiaoPvB3-TaAr3x1w_dgQu1FvdGuDriN")),(0,eV.d)("")]),[eB.O.id]:(0,eZ.t)([(0,eV.d)("https://opt-sepolia.g.alchemy.com/v2/".concat("QiaoPvB3-TaAr3x1w_dgQu1FvdGuDriN")),(0,eV.d)("")]),[eP.R.id]:(0,eZ.t)([(0,eV.d)("https://eth-mainnet.g.alchemy.com/v2/".concat("ejDKplGGHZLr0pWgXm5flw_0l-QzyGAB")),(0,eV.d)("")]),[eD.F.id]:(0,eZ.t)([(0,eV.d)("https://eth-sepolia.g.alchemy.com/v2/".concat("ejDKplGGHZLr0pWgXm5flw_0l-QzyGAB")),(0,eV.d)("")])},wallets:[...eF,{groupName:"Other",wallets:[eU.Z,ez.p,eO.P]}],ssr:!0}),eW=(0,l.createContext)({referralCode:null,createReferralCode:()=>{},updateReferralCode:()=>{},referralBannerClosed:!0,showReferralBanner:()=>{},hideReferralBanner:()=>{},onSessionClose:()=>{}}),eG=e=>{let{walletAddress:t,children:a}=e,[n,r]=(0,l.useState)(!1),[s,o]=(0,l.useState)(),[d,u]=(0,l.useState)(!0),[m,h]=(0,l.useState)(null),{address:p}=(0,f.m)();(0,l.useEffect)(()=>{o(t||p)},[t,p]),(0,l.useEffect)(()=>{(0,c.aS)("hideReferralBanner")||u(!1),C()},[]),(0,l.useEffect)(()=>{n&&s&&s!==x&&(0,c.py)(s).then(e=>{e?g(e):v(s)})},[s,n]),(0,l.useEffect)(()=>{n&&(d?(0,c.ic)("hideReferralBanner","true",1440):localStorage.removeItem("hideReferralBanner"))},[d,n]);let C=async()=>{await (0,c.A2)(),r(!0)},g=e=>h(e),v=e=>{m||(0,c.lJ)(e).then(e=>{e&&g(e)})};return(0,i.jsx)(eW.Provider,{value:{referralCode:m,createReferralCode:v,updateReferralCode:g,referralBannerClosed:d,showReferralBanner:()=>u(!1),hideReferralBanner:()=>u(!0),onSessionClose:()=>{u(!1)}},children:a})},eK=()=>(0,l.useContext)(eW),eq=new eE.S;function eJ(e){let{children:t,domainName:a="",walletAddress:n,siteMode:r=!1}=e,[s,o]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{o(!0)},[]),(0,i.jsx)(eM.F,{config:eR,children:(0,i.jsx)(eT.aH,{client:eq,children:r?(0,i.jsx)(F,{domainName:a,siteMode:!0,children:(0,i.jsx)(eG,{walletAddress:n,children:s&&t})}):(0,i.jsx)(v,{children:(0,i.jsx)(eG,{children:(0,i.jsx)(G,{children:(0,i.jsx)(eI,{children:s&&t})})})})})})}let eX=()=>(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("g",{id:"Icon",children:(0,i.jsx)("path",{id:"Vector",d:"M13.332 2.66675H2.66536C1.93203 2.66675 1.3387 3.26675 1.3387 4.00008L1.33203 12.0001C1.33203 12.7334 1.93203 13.3334 2.66536 13.3334H13.332C14.0654 13.3334 14.6654 12.7334 14.6654 12.0001V4.00008C14.6654 3.26675 14.0654 2.66675 13.332 2.66675ZM13.332 5.33341L7.9987 8.66675L2.66536 5.33341V4.00008L7.9987 7.33342L13.332 4.00008V5.33341Z",fill:"currentColor"})})}),eY=()=>(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("g",{id:"Icon",children:(0,i.jsx)("path",{id:"Twitter",d:"M1.08855 1.5L6.45113 8.67027L1.05469 14.5H2.26921L6.99378 9.39598L10.8111 14.5H14.9442L9.27987 6.92642L14.3028 1.5H13.0883L8.73722 6.2007L5.22162 1.5H1.08855ZM2.8746 2.39462H4.77333L13.1578 13.6052H11.2591L2.8746 2.39462Z",fill:"currentColor"})})}),eQ=()=>(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("g",{id:"Icon",children:(0,i.jsx)("path",{id:"Vector",d:"M14.8054 1.63676C14.7279 1.56987 14.6337 1.52538 14.5328 1.50808C14.4319 1.49079 14.3282 1.50136 14.2329 1.53864L1.56665 6.49551C1.38714 6.56531 1.23517 6.69154 1.1336 6.85519C1.03204 7.01884 0.986392 7.21105 1.00352 7.40289C1.02066 7.59473 1.09964 7.77582 1.2286 7.91888C1.35755 8.06194 1.52949 8.15925 1.71853 8.19614L5.0004 8.84051V12.4999C4.99976 12.6992 5.05899 12.8941 5.17043 13.0594C5.28187 13.2247 5.44037 13.3526 5.6254 13.4268C5.81015 13.5022 6.01332 13.5203 6.20849 13.4787C6.40367 13.4372 6.58182 13.3378 6.71978 13.1936L8.30228 11.5524L10.8129 13.7499C10.994 13.9106 11.2277 13.9995 11.4698 13.9999C11.5759 13.9998 11.6813 13.9831 11.7823 13.9505C11.9472 13.8982 12.0956 13.8035 12.2126 13.676C12.3296 13.5485 12.4112 13.3925 12.4492 13.2236L14.986 2.18739C15.0087 2.08785 15.0039 1.98402 14.9721 1.88702C14.9403 1.79002 14.8826 1.70351 14.8054 1.63676ZM11.471 12.9999L6.30353 8.46864L13.741 3.13801L11.471 12.9999Z",fill:"currentColor"})})}),e$=e=>{let{size:t=24}=e;return(0,i.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("g",{id:"Icon",children:(0,i.jsx)("path",{id:"Vector",d:"M12.7835 18.0809C12.8884 18.1854 12.9716 18.3096 13.0284 18.4463C13.0852 18.5831 13.1144 18.7297 13.1144 18.8777C13.1144 19.0258 13.0852 19.1724 13.0284 19.3092C12.9716 19.4459 12.8884 19.5701 12.7835 19.6746L12.2266 20.2315C11.1714 21.2867 9.74022 21.8795 8.2479 21.8795C6.75558 21.8795 5.32438 21.2867 4.26915 20.2315C3.21392 19.1762 2.62109 17.7451 2.62109 16.2527C2.62109 14.7604 3.21392 13.3292 4.26915 12.274L6.5304 10.0137C7.54429 8.99727 8.90844 8.407 10.3434 8.36378C11.7784 8.32055 13.1756 8.82764 14.2488 9.78117C14.3596 9.87966 14.45 9.99901 14.5146 10.1324C14.5793 10.2658 14.6171 10.4106 14.6258 10.5586C14.6345 10.7066 14.614 10.8549 14.5654 10.9949C14.5168 11.135 14.4411 11.2641 14.3426 11.3749C14.2441 11.4857 14.1247 11.576 13.9913 11.6407C13.8579 11.7054 13.7131 11.7432 13.5651 11.7519C13.4171 11.7606 13.2689 11.74 13.1288 11.6915C12.9888 11.6429 12.8596 11.5672 12.7488 11.4687C12.1053 10.8971 11.2676 10.593 10.4073 10.6186C9.54689 10.6443 8.72883 10.9976 8.1204 11.6065L5.86102 13.864C5.22798 14.497 4.87235 15.3556 4.87234 16.2509C4.87235 17.1461 5.22798 18.0047 5.86102 18.6377C6.49406 19.2708 7.35264 19.6264 8.2479 19.6264C9.14315 19.6264 10.0017 19.2708 10.6348 18.6377L11.1916 18.0809C11.2961 17.9763 11.4202 17.8933 11.5568 17.8367C11.6933 17.78 11.8397 17.7509 11.9876 17.7509C12.1354 17.7509 12.2818 17.78 12.4184 17.8367C12.555 17.8933 12.679 17.9763 12.7835 18.0809ZM19.7285 4.76836C18.6724 3.71475 17.2416 3.12305 15.7498 3.12305C14.258 3.12305 12.8271 3.71475 11.771 4.76836L11.2141 5.32523C11.0028 5.53658 10.8841 5.82322 10.8841 6.12211C10.8841 6.42099 11.0028 6.70764 11.2141 6.91898C11.4255 7.13033 11.7121 7.24906 12.011 7.24906C12.3099 7.24906 12.5966 7.13033 12.8079 6.91898L13.3648 6.36211C13.9978 5.72907 14.8564 5.37343 15.7516 5.37343C16.6469 5.37343 17.5055 5.72907 18.1385 6.36211C18.7716 6.99514 19.1272 7.85373 19.1272 8.74898C19.1272 9.64423 18.7716 10.5028 18.1385 11.1359L15.8782 13.3971C15.2692 14.0057 14.4507 14.3586 13.5901 14.3835C12.7296 14.4084 11.892 14.1035 11.2488 13.5312C11.138 13.4327 11.0089 13.357 10.8689 13.3084C10.7288 13.2598 10.5805 13.2393 10.4325 13.248C10.2845 13.2567 10.1397 13.2944 10.0063 13.3591C9.87293 13.4238 9.75357 13.5141 9.65508 13.6249C9.55659 13.7357 9.48089 13.8648 9.4323 14.0049C9.38371 14.145 9.36318 14.2932 9.37188 14.4412C9.38059 14.5892 9.41836 14.734 9.48303 14.8674C9.54771 15.0008 9.63803 15.1202 9.74883 15.2187C10.8213 16.172 12.2176 16.6794 13.6519 16.637C15.0862 16.5947 16.4501 16.0058 17.4645 14.9909L19.7257 12.7305C20.7805 11.6747 21.3733 10.2434 21.3738 8.75097C21.3744 7.2585 20.7826 5.82681 19.7285 4.77023V4.76836Z",fill:"currentColor"})})})},e1=e=>{let{onClose:t,className:a,dataTestId:n}=e;return t?(0,i.jsx)("button",{className:"bg-transparent "+(a||""),...n?{"data-testid":n}:{},type:"button",onClick:t,children:(0,i.jsx)(en.$$v,{size:"24",color:"white"})}):null};a(21665),a(6683);var e0=a(65880);a(86034),a(27979);var e2=a(87659);let e3=e=>{let{url:t="/",isMobile:a=!1,...n}=e;return a?(0,i.jsx)(e2.default,{className:"pointer-events-auto z-10",href:t,...n,children:(0,i.jsxs)("svg",{width:"75",height:"28",viewBox:"0 0 75 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M11.298 9.90398C11.378 9.85828 11.4337 9.82758 11.4882 9.79431C13.3292 8.69765 15.1701 7.60098 17.0106 6.50432C17.491 6.21736 17.9605 6.21663 18.4412 6.50432C20.9797 8.02283 23.5198 9.53855 26.0615 11.0515C26.5355 11.3326 26.7433 11.723 26.7426 12.253C26.7376 15.3161 26.7359 18.3791 26.7377 21.442C26.7395 21.6152 26.7191 21.788 26.6768 21.9563C26.5858 22.2967 26.3731 22.5562 26.0622 22.7419C23.5062 24.2668 20.9502 25.7917 18.3942 27.3168C17.9349 27.5899 17.4639 27.603 16.9866 27.3168C14.4729 25.8112 11.957 24.3092 9.43886 22.8106C8.90811 22.4948 8.64763 22.0492 8.64951 21.4405C8.65277 14.639 8.65427 7.8375 8.65402 1.03598C8.65164 0.894869 8.67012 0.754154 8.7089 0.618153C8.76265 0.43928 8.87494 0.282347 9.02873 0.171179C9.18252 0.0600109 9.36941 0.000679936 9.56102 0.00219333C9.83817 -0.00073111 10.1153 -0.00073111 10.3925 0.00219333C10.625 0.00488081 10.8478 0.0936744 11.0154 0.250493C11.183 0.407311 11.2828 0.620361 11.2946 0.846259C11.2983 0.909866 11.2968 0.973838 11.2968 1.03781C11.2968 3.92277 11.2968 6.80773 11.2968 9.69269L11.298 9.90398ZM24.1531 16.8799C24.1531 15.6245 24.1538 14.3695 24.155 13.1146C24.155 13.0236 24.1317 12.9684 24.0468 12.9172C21.9739 11.6712 19.9039 10.4226 17.8368 9.17141C17.7515 9.1195 17.6932 9.12498 17.6113 9.17433C15.551 10.4199 13.4897 11.6631 11.4277 12.9041C11.3851 12.9249 11.3499 12.9577 11.3266 12.9981C11.3034 13.0386 11.2931 13.0849 11.2972 13.1311C11.3005 15.6278 11.3005 18.1247 11.2972 20.6217C11.2972 20.7335 11.3378 20.7909 11.431 20.8472C13.4906 22.0862 15.5484 23.3276 17.6045 24.5715C17.6989 24.6289 17.7624 24.626 17.8552 24.5715C19.9136 23.3245 21.9745 22.0804 24.0381 20.8392C24.0767 20.82 24.1084 20.7899 24.1291 20.753C24.1499 20.716 24.1588 20.6738 24.1546 20.6319C24.1511 19.3815 24.1504 18.1308 24.1524 16.8799H24.1531Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M32.6868 16.8886C32.6868 15.2955 32.6924 13.7025 32.6841 12.1097C32.6808 11.4996 32.9428 11.0558 33.4735 10.7404C36.1252 9.16653 38.7751 7.59002 41.423 6.01082C41.9087 5.7213 42.38 5.72167 42.8653 6.01301C45.5325 7.61463 48.2013 9.21332 50.8716 10.8091C51.367 11.1048 51.6026 11.5263 51.6026 12.0809C51.6026 15.2977 51.6026 18.5156 51.6026 21.7344C51.6026 22.2904 51.3531 22.7178 50.8659 23.008C48.1611 24.6199 45.4547 26.2295 42.7469 27.837C42.3082 28.0962 41.85 28.0253 41.4256 27.7719C39.9221 26.8753 38.4195 25.9758 36.9177 25.0734C35.7525 24.3745 34.5872 23.6715 33.4167 22.9784C32.9164 22.6823 32.683 22.2586 32.6841 21.6953C32.6887 20.093 32.6895 18.4907 32.6868 16.8886ZM48.9865 16.8634C48.9865 15.5306 48.9873 14.1977 48.9888 12.8646C48.9888 12.7626 48.9628 12.7019 48.8685 12.6453C46.6613 11.3349 44.4561 10.0216 42.253 8.70532C42.1755 8.6589 42.1214 8.65341 42.0398 8.7024C39.8329 10.0308 37.6245 11.3568 35.4146 12.6804C35.3777 12.6985 35.3473 12.7269 35.3272 12.7619C35.3071 12.797 35.2983 12.8371 35.3018 12.877C35.304 15.5522 35.304 18.2273 35.3018 20.9024C35.2975 20.9422 35.3056 20.9824 35.325 21.0176C35.3444 21.0529 35.3743 21.0817 35.4108 21.1002C37.621 22.424 39.8294 23.7501 42.0361 25.0785C42.0665 25.1018 42.104 25.1145 42.1426 25.1145C42.1813 25.1145 42.2188 25.1018 42.2492 25.0785C44.4544 23.7399 46.6618 22.4036 48.8715 21.0699C48.9099 21.0506 48.9416 21.0207 48.9623 20.9838C48.983 20.9469 48.9918 20.9048 48.9876 20.8629C48.9851 19.5294 48.9848 18.196 48.9865 16.8634Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M64.96 21.6949L58.0599 26.6906C57.56 27.0525 57.0225 26.9535 56.6902 26.4369C56.5658 26.2435 56.4399 26.0513 56.3181 25.8561C56.0335 25.4006 56.1399 24.8585 56.5782 24.5401C58.9064 22.848 61.2354 21.1572 63.5651 19.4676C63.6052 19.4423 63.6376 19.407 63.6589 19.3653C63.6801 19.3236 63.6894 19.2771 63.6857 19.2307C63.6825 17.6603 63.6825 16.0899 63.6857 14.5195C63.6888 14.473 63.679 14.4266 63.6575 14.385C63.636 14.3435 63.6034 14.3082 63.5632 14.283C61.1799 12.5563 58.7977 10.8282 56.4166 9.09866C56.2294 8.96459 56.1009 8.76701 56.0566 8.54512C56.0122 8.32323 56.0553 8.09322 56.1771 7.90074C56.3553 7.62182 56.5436 7.34838 56.741 7.0808C57.0127 6.71049 57.5209 6.64981 57.913 6.93458C58.877 7.63279 59.8406 8.33148 60.8039 9.03067C62.1703 10.0211 63.536 11.0122 64.901 12.0041C64.9953 12.0728 65.0543 12.0772 65.1513 12.0063C67.4664 10.3277 69.7897 8.66036 72.0969 6.97186C72.6359 6.57743 73.2365 6.76934 73.4959 7.21569C73.6015 7.39846 73.7323 7.56662 73.8496 7.74282C74.1503 8.1983 74.0496 8.75577 73.6019 9.08148C71.1992 10.8288 68.7956 12.575 66.391 14.3199C66.3506 14.3447 66.3178 14.3796 66.2961 14.4209C66.2743 14.4623 66.2644 14.5086 66.2673 14.5549C66.2711 16.1027 66.2711 17.6502 66.2673 19.1975C66.2642 19.244 66.274 19.2904 66.2957 19.332C66.3174 19.3735 66.3502 19.4086 66.3906 19.4336C68.7095 21.1152 71.0275 22.7967 73.3444 24.4783C73.7075 24.7411 73.8812 25.0705 73.7925 25.5066C73.7628 25.6306 73.7097 25.7481 73.6357 25.8531C73.4854 26.0783 73.3181 26.294 73.1553 26.5111C72.8283 26.9476 72.3352 27.0196 71.8909 26.6987C69.619 25.0571 67.3467 23.4153 65.0739 21.7732C65.04 21.7505 65.0051 21.726 64.96 21.6949Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M4.84183 23.8645C4.84183 24.1204 4.84183 24.3763 4.84183 24.6322C4.84496 24.7606 4.81243 24.8874 4.74767 24.9994C4.68291 25.1113 4.58831 25.2042 4.47384 25.2682C4.06713 25.5135 3.65629 25.7522 3.25034 25.9994C3.03722 26.1291 2.82071 26.1353 2.61134 26.0147C2.15502 25.752 1.70284 25.4827 1.25479 25.2068C1.06083 25.0869 0.98603 24.8892 0.983398 24.675C0.977008 24.1365 0.975505 23.598 0.983398 23.0596C0.983384 22.942 1.01485 22.8265 1.0747 22.7244C1.13454 22.6223 1.22071 22.5371 1.3247 22.4772C1.74982 22.2173 2.1787 21.9633 2.60834 21.7096C2.69817 21.6539 2.8025 21.6243 2.90904 21.6243C3.01558 21.6243 3.11991 21.6539 3.20975 21.7096C3.6499 21.9629 4.08781 22.2213 4.51819 22.4886C4.72793 22.6191 4.83468 22.8227 4.83882 23.0672C4.84521 23.3348 4.84183 23.5999 4.84183 23.8645Z",fill:"currentColor"})]})}):(0,i.jsx)(e2.default,{href:t,...n,children:(0,i.jsxs)("svg",{className:"text-black dark:text-white",width:"120",height:"46",viewBox:"0 0 120 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("title",{children:"Web3 Domain, Secure .BOX Domain"}),(0,i.jsx)("path",{d:"M16.9542 16.2708C17.0857 16.1958 17.1771 16.1453 17.2667 16.0907C20.2913 14.289 23.3155 12.4873 26.3393 10.6857C27.1285 10.2142 27.8997 10.213 28.6895 10.6857C32.8599 13.1804 37.0329 15.6705 41.2085 18.156C41.9872 18.6178 42.3287 19.2592 42.3275 20.13C42.3192 25.1622 42.3166 30.1943 42.3195 35.2261C42.3225 35.5107 42.2889 35.7946 42.2194 36.0711C42.07 36.6302 41.7205 37.0566 41.2098 37.3617C37.0106 39.8668 32.8115 42.3721 28.6124 44.8776C27.8577 45.3262 27.084 45.3479 26.2997 44.8776C22.1702 42.4041 18.0369 39.9365 13.8999 37.4746C13.028 36.9557 12.6001 36.2236 12.6031 35.2237C12.6085 24.0498 12.611 12.8759 12.6106 1.70197C12.6066 1.47014 12.637 1.23897 12.7007 1.01554C12.789 0.721674 12.9735 0.463855 13.2262 0.281222C13.4788 0.0985893 13.7858 0.00111704 14.1006 0.00360333C14.556 -0.00120111 15.0113 -0.00120111 15.4666 0.00360333C15.8487 0.00801848 16.2146 0.153894 16.49 0.411524C16.7653 0.669154 16.9293 1.01916 16.9486 1.39028C16.9548 1.49478 16.9523 1.59988 16.9523 1.70497C16.9523 6.44455 16.9523 11.1841 16.9523 15.9237L16.9542 16.2708ZM38.0734 27.7312C38.0734 25.6689 38.0744 23.607 38.0765 21.5455C38.0765 21.396 38.0382 21.3053 37.8986 21.2212C34.4932 19.1741 31.0925 17.1228 27.6966 15.0673C27.5564 14.982 27.4607 14.991 27.3261 15.0721C23.9412 17.1184 20.555 19.1609 17.1672 21.1996C17.0973 21.2338 17.0394 21.2876 17.0012 21.3541C16.963 21.4205 16.9462 21.4966 16.953 21.5725C16.9583 25.6743 16.9583 29.7763 16.953 33.8785C16.953 34.0622 17.0197 34.1565 17.1728 34.249C20.5564 36.2845 23.9371 38.324 27.3149 40.3675C27.4699 40.4618 27.5743 40.4569 27.7268 40.3675C31.1084 38.3188 34.4942 36.2749 37.8844 34.2358C37.9477 34.2042 37.9998 34.1549 38.034 34.0942C38.0681 34.0335 38.0827 33.9642 38.0759 33.8953C38.0701 31.841 38.0689 29.7863 38.0721 27.7312H38.0734Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M52.0929 27.7456C52.0929 25.1284 52.1022 22.5112 52.0886 19.8946C52.0831 18.8922 52.5135 18.1632 53.3854 17.6449C57.7418 15.0593 62.0951 12.4693 66.4454 9.87492C67.2432 9.39928 68.0176 9.39988 68.8148 9.87852C73.1967 12.5097 77.5811 15.1362 81.9679 17.7578C82.7818 18.2436 83.169 18.9361 83.169 19.8471C83.169 25.132 83.169 30.4185 83.169 35.7066C83.169 36.62 82.759 37.3221 81.9587 37.7989C77.515 40.4469 73.0689 43.0914 68.6203 45.7322C67.8996 46.158 67.1468 46.0415 66.4497 45.6253C63.9796 44.1524 61.511 42.6746 59.0438 41.192C57.1294 40.0438 55.2151 38.8889 53.2922 37.7503C52.4702 37.2638 52.0868 36.5678 52.0886 35.6423C52.096 33.0099 52.0975 30.3776 52.0929 27.7456ZM78.8711 27.7042C78.8711 25.5146 78.8723 23.3247 78.8748 21.1347C78.8748 20.9672 78.8322 20.8675 78.6772 20.7744C75.0511 18.6216 71.4283 16.464 67.8088 14.3016C67.6816 14.2253 67.5927 14.2163 67.4587 14.2968C63.833 16.4792 60.2049 18.6576 56.5743 20.832C56.5138 20.8618 56.4638 20.9084 56.4308 20.966C56.3978 21.0236 56.3832 21.0894 56.389 21.1551C56.3927 25.55 56.3927 29.9448 56.389 34.3397C56.382 34.4051 56.3952 34.471 56.4272 34.5289C56.4591 34.5869 56.5082 34.6341 56.5681 34.6646C60.1991 36.8394 63.8273 39.018 67.4525 41.2004C67.5024 41.2387 67.5641 41.2595 67.6276 41.2595C67.6911 41.2595 67.7528 41.2387 67.8027 41.2004C71.4254 39.0012 75.0519 36.806 78.6821 34.6148C78.7453 34.5832 78.7972 34.5339 78.8313 34.4733C78.8653 34.4127 78.8798 34.3436 78.8729 34.2748C78.8688 32.084 78.8682 29.8934 78.8711 27.7042Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M105.113 35.6417L93.7774 43.8489C92.9561 44.4434 92.0731 44.2807 91.5272 43.4321C91.3228 43.1144 91.1159 42.7985 90.9158 42.4778C90.4483 41.7295 90.6231 40.8389 91.3431 40.3158C95.1681 37.5361 98.9942 34.7583 102.822 31.9825C102.888 31.941 102.941 31.8829 102.976 31.8144C103.011 31.7459 103.026 31.6696 103.02 31.5934C103.014 29.0134 103.014 26.4334 103.02 23.8534C103.025 23.7771 103.009 23.7009 102.973 23.6326C102.938 23.5643 102.885 23.5064 102.819 23.4649C98.903 20.6282 94.9894 17.7892 91.0776 14.9478C90.7702 14.7275 90.5591 14.4029 90.4862 14.0384C90.4134 13.6739 90.484 13.296 90.6842 12.9798C90.977 12.5216 91.2863 12.0723 91.6105 11.6327C92.057 11.0244 92.8919 10.9247 93.5359 11.3925C95.1197 12.5396 96.7028 13.6874 98.2853 14.8361C100.53 16.4632 102.774 18.0915 105.016 19.721C105.171 19.8339 105.268 19.8411 105.428 19.7246C109.231 16.9669 113.048 14.2277 116.838 11.4538C117.724 10.8058 118.71 11.1211 119.136 11.8543C119.31 12.1546 119.525 12.4309 119.718 12.7203C120.212 13.4686 120.046 14.3845 119.311 14.9196C115.363 17.7902 111.415 20.6589 107.464 23.5255C107.398 23.5663 107.344 23.6236 107.308 23.6916C107.272 23.7595 107.256 23.8355 107.261 23.9117C107.267 26.4544 107.267 28.9968 107.261 31.5387C107.256 31.6151 107.272 31.6914 107.308 31.7597C107.343 31.8279 107.397 31.8856 107.464 31.9267C111.273 34.6892 115.081 37.4518 118.888 40.2143C119.484 40.6461 119.769 41.1872 119.624 41.9037C119.575 42.1074 119.488 42.3005 119.366 42.473C119.119 42.843 118.844 43.1973 118.577 43.554C118.04 44.2711 117.23 44.3894 116.5 43.8621C112.767 41.1652 109.034 38.4679 105.3 35.7702C105.245 35.733 105.187 35.6927 105.113 35.6417Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M6.34767 39.206C6.34767 39.6264 6.34767 40.0468 6.34767 40.4672C6.35281 40.6781 6.29937 40.8865 6.19298 41.0704C6.08659 41.2543 5.93118 41.4069 5.74312 41.5121C5.07496 41.9151 4.40001 42.3073 3.73309 42.7132C3.38295 42.9264 3.02726 42.9366 2.6833 42.7385C1.93363 42.3069 1.19076 41.8644 0.454673 41.4112C0.136033 41.2142 0.0131465 40.8894 0.0088239 40.5374C-0.00167394 39.6528 -0.00414402 38.7682 0.0088239 37.8836C0.00880044 37.6905 0.0604937 37.5007 0.158813 37.333C0.257132 37.1652 0.398685 37.0253 0.569532 36.9269C1.26795 36.4999 1.97254 36.0825 2.67836 35.6657C2.82595 35.5742 2.99734 35.5256 3.17238 35.5256C3.34741 35.5256 3.51881 35.5742 3.6664 35.6657C4.38951 36.0819 5.10892 36.5065 5.81598 36.9455C6.16056 37.1599 6.33594 37.4944 6.34273 37.8962C6.35323 38.3358 6.34767 38.7712 6.34767 39.206Z",fill:"currentColor"})]})})};var e4=a(52449),e6=a.n(e4);a(68571),a(70204);let e5=e=>{let{size:t=tm,className:a=""}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 55 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[(0,i.jsx)("mask",{id:"mask0_13790_230250",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"5",width:"56",height:"44",children:(0,i.jsx)("path",{d:"M0.232422 5.6244V48.8398H55.208V5.6244H0.232422Z",fill:"white"})}),(0,i.jsxs)("g",{mask:"url(#mask0_13790_230250)",children:[(0,i.jsx)("mask",{id:"mask1_13790_230250",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"5",width:"55",height:"44",children:(0,i.jsx)("path",{d:"M0.232422 5.62491H54.1932V48.9023H0.232422V5.62491Z",fill:"white"})}),(0,i.jsxs)("g",{mask:"url(#mask1_13790_230250)",children:[(0,i.jsx)("path",{d:"M9.8298 41.6557H6.07812V42.7876H7.1274V46.9205H6.07812V48.0547H9.8298V46.9205H8.77823V42.7876H9.8298V41.6557Z",fill:"white"}),(0,i.jsx)("path",{d:"M15.9902 41.5304C15.5035 41.5304 15.0534 41.6085 14.6425 41.7623C14.2315 41.9162 13.8871 42.1366 13.6093 42.4213C13.32 42.7152 13.0995 43.0688 12.948 43.4821C12.7965 43.8953 12.7207 44.3545 12.7207 44.862C12.7207 45.4061 12.8011 45.886 12.9595 46.3016C13.1179 46.7171 13.3429 47.0638 13.6322 47.3416C13.9215 47.6195 14.2659 47.8307 14.6677 47.9707C15.0718 48.1108 15.5104 48.1797 15.9856 48.1797C16.3048 48.1797 16.5573 48.1659 16.741 48.1338C16.9247 48.1016 17.1198 48.0557 17.3288 47.996C17.4895 47.9501 17.6433 47.895 17.788 47.833C17.9349 47.7687 18.0888 47.7021 18.2472 47.6309V46.1018H18.0773C17.9992 46.1707 17.9005 46.251 17.7811 46.3452C17.6594 46.4393 17.5285 46.5266 17.3885 46.6092C17.2232 46.7125 17.0418 46.7929 16.8466 46.8526C16.6492 46.9123 16.4517 46.9421 16.252 46.9421C16.043 46.9421 15.8295 46.91 15.616 46.8411C15.4001 46.7745 15.2073 46.662 15.0305 46.5059C14.8606 46.3498 14.7182 46.1385 14.6034 45.8699C14.4909 45.6013 14.4335 45.266 14.4335 44.8665C14.4335 44.4831 14.4863 44.1571 14.5919 43.8885C14.6953 43.6198 14.833 43.404 15.0006 43.241C15.1797 43.0711 15.3726 42.9517 15.5815 42.8782C15.7905 42.8047 16.0109 42.768 16.2428 42.768C16.4517 42.768 16.6469 42.8001 16.8306 42.8621C17.0142 42.9241 17.1841 43.0022 17.3426 43.094C17.4964 43.1836 17.6342 43.2777 17.7558 43.3718C17.8775 43.466 17.9786 43.5463 18.0589 43.6152H18.2472V42.0631C18.1301 42.0057 17.9946 41.9437 17.8385 41.8771C17.6824 41.8083 17.5079 41.7486 17.3173 41.6935C17.1336 41.6452 16.9339 41.6062 16.7181 41.5764C16.4999 41.5465 16.2588 41.5304 15.9902 41.5304Z",fill:"white"}),(0,i.jsx)("path",{d:"M24.9303 41.6557H23.0315L20.6689 48.0547H22.3336L22.779 46.7643H25.1462L25.5893 48.0547H27.2929L24.9303 41.6557ZM23.1762 45.5888L23.9614 43.2997L24.7467 45.5888H23.1762Z",fill:"white"}),(0,i.jsx)("path",{d:"M35.9578 41.6557H34.4424V45.3201L32.1074 41.6557H30.1328V48.0547H31.6482V43.6624L34.3643 48.0547H35.9578V41.6557Z",fill:"white"}),(0,i.jsx)("mask",{id:"mask2_13790_230250",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"5",width:"55",height:"44",children:(0,i.jsx)("path",{d:"M0.232422 48.8398H54.1381V5.6244H0.232422V48.8398Z",fill:"white"})}),(0,i.jsxs)("g",{mask:"url(#mask2_13790_230250)",children:[(0,i.jsx)("path",{d:"M45.3338 41.6557H43.8184V45.3201L41.4834 41.6557H39.5088V48.0547H41.0242V43.6624L43.7403 48.0547H45.3338V41.6557Z",fill:"white"}),(0,i.jsx)("path",{d:"M27.5989 6.28129C26.6179 6.28132 25.6181 6.38078 24.6119 6.58152C22.9404 6.95348 21.464 7.75478 19.9854 8.56987C15.111 10.9577 12.0045 15.9699 12.4339 21.3954L14.8079 20.7066C14.5186 16.8814 15.5541 13.4833 17.942 10.7097C19.393 18.4128 22.5271 25.4134 27.1926 31.794C27.6186 31.8214 28.0309 31.8488 28.4398 31.8488C28.853 31.8488 29.2626 31.8208 29.6792 31.7366C28.0352 30.0812 26.7242 28.2994 25.3971 26.5177C27.4268 25.5925 29.484 24.6396 31.3208 23.3424C31.0728 22.7225 30.8937 22.0451 30.5769 21.4918C28.6437 22.9566 26.6415 24.2263 24.5017 25.1792C23.5075 23.6891 22.6511 22.1553 21.8222 20.6078V20.4563C24.0999 19.531 26.2948 18.3853 28.3383 16.8814C27.9801 16.2179 27.5944 15.5268 27.1926 14.9344C25.2731 16.4245 23.2986 17.8067 21.2276 18.9111H21.0209C19.765 16.2454 18.7708 13.4558 18.0384 10.5582C18.7157 9.79823 19.4895 9.0658 20.2747 8.47344L22.5684 7.82367C28.3383 14.2984 32.0946 21.6456 34.1518 29.5967C34.6913 29.0594 35.1735 28.4785 35.2975 27.7622C34.898 26.6417 34.6087 25.496 34.0967 24.433C33.8349 23.6454 33.3229 22.9153 33.1576 22.1416C34.6638 21.0372 36.1126 19.8364 37.5338 18.5093C37.5062 17.5151 37.2583 16.6059 36.7899 15.777H36.6797C35.2837 17.3498 33.6972 18.8835 32.1083 20.2083C31.2519 18.8147 30.4644 17.3911 29.5276 16.025C31.1279 14.8104 32.6754 13.3456 34.0967 11.8004C33.587 11.1368 32.9234 10.4319 32.1634 10.1702C30.9488 11.5248 29.5827 12.9461 28.1868 14.0918C26.5038 11.9519 24.6808 9.82578 22.6649 7.87877C23.4857 7.6928 24.4207 7.59981 25.3543 7.59981C26.288 7.59981 27.2201 7.6928 28.0352 7.87877C32.7857 8.73518 37.4098 13.4007 38.1698 18.1649C39.1777 23.4939 37.2721 28.3959 32.9096 31.6401C31.3638 32.2008 29.7157 32.485 28.0736 32.485C24.5378 32.485 21.0316 31.1665 18.6468 28.451C20.3023 28.1755 21.8773 27.6772 23.4662 27.1675C23.2297 26.768 22.9404 26.3938 22.7613 25.9667C18.3733 27.7293 13.591 28.7435 8.54825 28.7435C7.94173 28.7435 7.33058 28.7288 6.7168 28.699C8.43403 28.9198 10.1874 29.0156 11.9516 29.0156C13.0676 29.0156 14.1879 28.9773 15.3062 28.9079C16.4794 30.3705 17.9695 31.5437 19.4895 32.3863C21.2229 33.3511 23.3767 33.832 25.5455 33.832C28.1252 33.832 30.7258 33.1511 32.6617 31.794C34.8429 30.8687 36.9414 29.2385 38.4178 27.1675C41.2074 23.6041 41.6345 17.724 39.5635 13.6923L38.668 12.1585C36.0567 8.29596 32.0147 6.28112 27.5989 6.28129Z",fill:"white"})]}),(0,i.jsx)("path",{d:"M19.6818 19.6583C15.8429 21.4515 11.7009 22.5421 7.25586 22.8888C7.55903 22.8934 7.86256 22.8957 8.1659 22.8957C9.65678 22.8957 11.1409 22.8403 12.5298 22.7372C12.8191 24.4891 13.4138 26.133 14.3666 27.6094C15.3608 27.4165 16.3549 27.2512 17.2917 26.9619C16.4514 25.8437 15.8567 24.5993 15.4159 23.2883C15.347 22.9714 15.1105 22.5972 15.3057 22.2941C17.0162 21.9773 18.6877 21.5892 20.2742 20.9969L19.6818 19.6583Z",fill:"white"}),(0,i.jsx)("path",{d:"M27.2276 37.6074C18.1813 37.6076 9.12574 38.4951 0.888672 40.2438C9.14919 39.3452 17.78 38.9219 26.4205 38.9219C35.5736 38.922 44.7375 39.397 53.481 40.2852C45.2798 38.4912 36.2583 37.6072 27.2276 37.6074Z",fill:"white"})]})]})]})},e8=e=>{let{size:t=tm,className:a=""}=e;return(0,i.jsx)("svg",{width:t,height:t,viewBox:"0 0 55 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:(0,i.jsx)("g",{id:"Daynamic",children:(0,i.jsxs)("g",{id:"Vector",children:[(0,i.jsx)("path",{d:"M26.8864 24.9797C26.7385 24.8946 26.6474 24.737 26.6474 24.5665V15.9454C26.6474 15.5788 27.0441 15.3494 27.3619 15.5322L34.8548 19.8441C35.0026 19.9292 35.0937 20.0867 35.0937 20.2573V24.8421V28.8783C35.0937 29.245 34.6971 29.4744 34.3793 29.2915L26.8864 24.9797Z",fill:"white"}),(0,i.jsx)("path",{d:"M17.6394 32.3265C17.3209 32.1431 17.3209 31.6834 17.6394 31.5001L25.13 27.1895C25.2772 27.1048 25.4584 27.1048 25.6055 27.1895L33.0961 31.5001C33.4147 31.6834 33.4147 32.1431 33.0961 32.3265L25.6055 36.637C25.4584 36.7217 25.2772 36.7217 25.13 36.637L17.6394 32.3265Z",fill:"white"}),(0,i.jsx)("path",{d:"M24.0876 24.5665C24.0876 24.737 23.9965 24.8946 23.8486 24.9797L16.3557 29.2915C16.0379 29.4744 15.6412 29.245 15.6412 28.8783V20.2573C15.6412 20.0867 15.7324 19.9291 15.8802 19.8441L23.3731 15.5322C23.6909 15.3494 24.0876 15.5788 24.0876 15.9454V24.5665Z",fill:"white"}),(0,i.jsx)("path",{d:"M44.4853 34.9077C44.4853 33.1537 43.0588 31.7319 41.299 31.7319C39.5393 31.7319 38.1127 33.1537 38.1127 34.9077C38.1127 36.6617 39.5393 38.0835 41.299 38.0835C43.0588 38.0835 44.4853 36.6617 44.4853 34.9077Z",fill:"white"}),(0,i.jsx)("path",{d:"M37.7124 38.39C37.95 38.6331 37.9218 39.0504 37.6271 39.22L25.6486 46.1132C25.5014 46.1979 25.3203 46.1979 25.1731 46.1132L13.1388 39.1879C12.8458 39.0193 12.8159 38.6053 13.0504 38.3617C13.3624 38.0374 13.631 37.6712 13.8467 37.2723C13.9842 37.0181 14.3031 36.9066 14.5537 37.0508L25.1731 43.1618C25.3203 43.2466 25.5014 43.2466 25.6486 43.1618L36.2024 37.0886C36.4515 36.9452 36.7685 37.0545 36.9072 37.3063C37.126 37.7035 37.3975 38.0679 37.7124 38.39Z",fill:"white"}),(0,i.jsx)("path",{d:"M41.3167 29.9173C41.0346 29.9161 40.7905 29.6976 40.7905 29.4155V17.0232C40.7905 16.8526 40.6994 16.695 40.5515 16.61L29.9754 10.5238C29.7073 10.3696 29.6558 10.0047 29.841 9.75695C30.1081 9.39943 30.3284 9.00504 30.4927 8.58283C30.6076 8.28753 30.9573 8.13773 31.232 8.29578L43.1159 15.1345C43.2637 15.2196 43.3548 15.3771 43.3548 15.5477V29.6189C43.3548 29.9648 42.9956 30.1984 42.6626 30.1051C42.2251 29.9823 41.7712 29.9193 41.3167 29.9173Z",fill:"white"}),(0,i.jsx)("path",{d:"M20.2748 7.90144C20.5647 7.73462 20.9337 7.91113 21.0311 8.23106C21.1638 8.66652 21.3546 9.07677 21.5945 9.45285C21.7521 9.6999 21.6905 10.038 21.4365 10.1842L10.2702 16.61C10.1223 16.695 10.0312 16.8526 10.0312 17.0232V29.4157C10.0312 29.7011 9.78169 29.9207 9.49629 29.9176C9.04228 29.9125 8.58796 29.9685 8.14902 30.0841C7.81837 30.1713 7.4668 29.9381 7.4668 29.5962V15.5476C7.4668 15.377 7.55792 15.2195 7.70574 15.1344L20.2748 7.90144Z",fill:"white"}),(0,i.jsx)("path",{d:"M29.0091 6.77879C29.0091 5.02482 27.5826 3.60294 25.8228 3.60294C24.0631 3.60294 22.6366 5.02482 22.6366 6.77879C22.6366 8.53276 24.0631 9.95464 25.8228 9.95464C27.5826 9.95464 29.0091 8.53276 29.0091 6.77879Z",fill:"white"}),(0,i.jsx)("path",{d:"M12.6225 34.9077C12.6225 33.1537 11.196 31.7319 9.43627 31.7319C7.67654 31.7319 6.25 33.1537 6.25 34.9077C6.25 36.6617 7.67654 38.0835 9.43627 38.0835C11.196 38.0835 12.6225 36.6617 12.6225 34.9077Z",fill:"white"})]})})})},e7=e=>{let{size:t=tm,className:a=""}=e;return(0,i.jsx)("svg",{width:t,height:t,viewBox:"0 0 55 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:(0,i.jsx)("path",{d:"M31.2496 7.03125C28.006 7.03283 24.8231 7.91152 22.0381 9.57428C19.2531 11.237 16.9695 13.622 15.4293 16.4766C13.6373 16.2914 11.8263 16.4728 10.1066 17.0097C8.38689 17.5466 6.79439 18.4277 5.42598 19.5995C4.05757 20.7712 2.94187 22.2092 2.14674 23.8258C1.35162 25.4424 0.893704 27.2038 0.800855 29.003C0.708005 30.8022 0.982163 32.6014 1.60665 34.2913C2.23114 35.9811 3.19289 37.5263 4.43341 38.8327C5.67393 40.1391 7.16726 41.1795 8.82256 41.8905C10.4779 42.6016 12.2605 42.9684 14.0621 42.9688H31.2496C36.0152 42.9688 40.5856 41.0756 43.9554 37.7058C47.3252 34.336 49.2183 29.7656 49.2183 25C49.2183 20.2344 47.3252 15.664 43.9554 12.2942C40.5856 8.92438 36.0152 7.03125 31.2496 7.03125ZM31.2496 38.2812H14.0621C11.7829 38.3284 9.5783 37.4682 7.93333 35.8899C6.28836 34.3116 5.33774 32.1444 5.2906 29.8652C5.24346 27.586 6.10366 25.3815 7.68197 23.7365C9.26028 22.0915 11.4274 21.1409 13.7066 21.0938C13.4221 22.3763 13.2793 23.6863 13.2808 25C13.2808 25.6216 13.5278 26.2177 13.9673 26.6573C14.4068 27.0968 15.003 27.3438 15.6246 27.3438C16.2462 27.3438 16.8423 27.0968 17.2819 26.6573C17.7214 26.2177 17.9683 25.6216 17.9683 25C17.9683 22.3732 18.7473 19.8054 20.2066 17.6213C21.666 15.4372 23.7402 13.735 26.1671 12.7297C28.5939 11.7245 31.2643 11.4615 33.8406 11.9739C36.4169 12.4864 38.7834 13.7513 40.6408 15.6087C42.4983 17.4662 43.7632 19.8326 44.2756 22.409C44.7881 24.9853 44.5251 27.6557 43.5199 30.0825C42.5146 32.5093 40.8123 34.5836 38.6283 36.043C36.4442 37.5023 33.8764 38.2812 31.2496 38.2812Z",fill:"white"})})},e9=e=>{let{size:t=tm,className:a=""}=e;return(0,i.jsx)("svg",{width:t,height:t,viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:(0,i.jsx)("g",{id:"free_email",children:(0,i.jsx)("g",{id:"icon",children:(0,i.jsx)("path",{id:"Vector",d:"M44.5535 7.80078H8.51408C7.21068 7.80078 5.96066 8.38933 5.03902 9.43694C4.11738 10.4846 3.59961 11.9054 3.59961 13.387V39.456C3.59961 40.9375 4.11738 42.3584 5.03902 43.406C5.96066 44.4536 7.21068 45.0422 8.51408 45.0422H44.5535C45.8569 45.0422 47.1069 44.4536 48.0286 43.406C48.9502 42.3584 49.468 40.9375 49.468 39.456V13.387C49.468 11.9054 48.9502 10.4846 48.0286 9.43694C47.1069 8.38933 45.8569 7.80078 44.5535 7.80078ZM43.243 11.5249L26.5338 24.187L9.8246 11.5249H43.243ZM44.5535 41.318H8.51408C8.07961 41.318 7.66294 41.1218 7.35573 40.7726C7.04851 40.4234 6.87592 39.9498 6.87592 39.456V13.7594L25.6328 27.967C25.9003 28.1672 26.2135 28.2739 26.5338 28.2739C26.8541 28.2739 27.1673 28.1672 27.4348 27.967L46.1917 13.7594V39.456C46.1917 39.9498 46.0191 40.4234 45.7119 40.7726C45.4046 41.1218 44.988 41.318 44.5535 41.318Z",fill:"#FAFAFA"})})})})},te=e=>{let{size:t=tu,className:a=""}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:a,xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"black"}),(0,i.jsx)("path",{d:"M15.9053 7.90055C15.3233 6.42155 13.8638 6.28805 12.1643 6.61805L11.559 4.5083L10.275 4.87655L10.8645 6.93155C10.527 7.02755 10.1835 7.13405 9.84229 7.23905L9.24979 5.17055L7.96654 5.53805L8.57029 7.6478C8.29429 7.7333 8.02279 7.8173 7.75654 7.8938L7.75429 7.8863L5.98279 8.39405L6.37654 9.76655C6.37654 9.76655 7.32004 9.47555 7.30879 9.49805C7.82929 9.3488 8.08504 9.6023 8.20879 9.84905L8.89879 12.2521C8.93404 12.2423 8.98129 12.2303 9.03679 12.2221L8.90104 12.2611L9.86629 15.6286C9.89029 15.7988 9.86929 16.0876 9.50629 16.1926C9.52654 16.2023 8.57179 16.4596 8.57179 16.4596L8.75704 18.0668L10.428 17.5868C10.7393 17.4991 11.0468 17.4166 11.3475 17.3318L11.9603 19.4656L13.2428 19.0981L12.6375 16.9868C12.9816 16.8955 13.3246 16.8005 13.6665 16.7018L14.268 18.8041L15.5528 18.4358L14.9423 16.3058C17.0655 15.5626 18.4208 14.5853 18.027 12.5033C17.7105 10.8278 16.734 10.3193 15.4238 10.3763C16.0598 9.7838 16.3335 8.98205 15.9053 7.90055ZM15.4178 12.9781C15.8753 14.5733 13.0928 15.1748 12.2228 15.4253L11.412 12.5978C12.282 12.3481 14.94 11.3153 15.417 12.9788L15.4178 12.9781ZM13.6763 9.16055C14.0918 10.6118 11.766 11.0956 11.0408 11.3033L10.3058 8.73905C11.0303 8.5313 13.242 7.6478 13.6763 9.1613V9.16055Z",fill:"white"})]})},tt=e=>{let{size:t=tu,className:a=""}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:a,xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#2E3148"}),(0,i.jsx)("path",{d:"M12.0151 4.14795C11.0438 4.14795 10.2563 7.6707 10.2563 12.0154C10.2563 16.3602 11.0438 19.8829 12.0151 19.8829C12.9856 19.8829 13.7731 16.3602 13.7731 12.0154C13.7731 7.6707 12.9856 4.14795 12.0151 4.14795ZM12.1366 19.4382C12.0256 19.5867 11.9138 19.4757 11.9138 19.4757C11.4668 18.9567 11.2433 17.9944 11.2433 17.9944C10.4611 15.4767 10.6471 10.0714 10.6471 10.0714C11.0146 5.7807 11.6836 4.7667 11.9108 4.5417C11.9341 4.51862 11.9648 4.50453 11.9975 4.50192C12.0302 4.49932 12.0627 4.50836 12.0893 4.52745C12.4193 4.7622 12.6968 5.7402 12.6968 5.7402C13.5143 8.7762 13.4401 11.6262 13.4401 11.6262C13.5143 14.1072 13.0306 16.8837 13.0306 16.8837C12.6578 18.9942 12.1366 19.4382 12.1366 19.4382Z",fill:"white"}),(0,i.jsx)("path",{d:"M18.8385 8.10055C18.3547 7.25755 14.9085 8.3278 11.1382 10.49C7.368 12.6523 4.7085 15.0875 5.19075 15.9305C5.6745 16.7735 9.1215 15.7033 12.8917 13.541C16.662 11.3788 19.3215 8.9428 18.8385 8.10055ZM5.63625 15.8143C5.45175 15.7918 5.49375 15.6388 5.49375 15.6388C5.72025 14.9938 6.44325 14.3203 6.44325 14.3203C8.238 12.389 13.02 9.8608 13.02 9.8608C16.9245 8.0443 18.1372 8.1208 18.4447 8.2048C18.4765 8.21351 18.5041 8.23323 18.5227 8.26044C18.5412 8.28764 18.5495 8.32056 18.546 8.3533C18.5085 8.75605 17.796 9.48355 17.796 9.48355C15.5715 11.7043 13.062 13.0595 13.062 13.0595C10.947 14.3585 8.29725 15.3193 8.29725 15.3193C6.28125 16.0453 5.63625 15.8143 5.63625 15.8143Z",fill:"white"}),(0,i.jsx)("path",{d:"M18.8211 15.9579C19.3086 15.1179 16.6559 12.6707 12.8976 10.4919C9.14013 8.31392 5.69463 7.23092 5.20788 8.07242C4.72038 8.91467 7.37388 11.3597 11.1329 13.5384C14.8926 15.7164 18.3344 16.7994 18.8211 15.9579ZM5.53113 8.39717C5.45838 8.22617 5.61063 8.18492 5.61063 8.18492C6.28338 8.05742 7.22838 8.34767 7.22838 8.34767C9.79863 8.93267 14.3819 11.8037 14.3819 11.8037C17.9106 14.2727 18.4521 15.3609 18.5331 15.6692C18.5413 15.7008 18.5381 15.7344 18.5239 15.7639C18.5098 15.7934 18.4857 15.817 18.4559 15.8304C18.0884 15.9992 17.1021 15.7479 17.1021 15.7479C14.0646 14.9334 11.6354 13.4417 11.6354 13.4417C9.45288 12.2642 7.29438 10.4529 7.29438 10.4529C5.65413 9.07142 5.53188 8.39792 5.53188 8.39792L5.53038 8.39717H5.53113Z",fill:"white"}),(0,i.jsx)("path",{d:"M11.9963 12.9223C12.5074 12.9223 12.9218 12.5079 12.9218 11.9968C12.9218 11.4856 12.5074 11.0713 11.9963 11.0713C11.4852 11.0713 11.0708 11.4856 11.0708 11.9968C11.0708 12.5079 11.4852 12.9223 11.9963 12.9223Z",fill:"white"}),(0,i.jsx)("path",{d:"M15.7913 9.19238C16.2055 9.19238 16.5413 8.8566 16.5413 8.44238C16.5413 8.02817 16.2055 7.69238 15.7913 7.69238C15.377 7.69238 15.0413 8.02817 15.0413 8.44238C15.0413 8.8566 15.377 9.19238 15.7913 9.19238Z",fill:"white"}),(0,i.jsx)("path",{d:"M6.97949 11.0811C7.39371 11.0811 7.72949 10.7453 7.72949 10.3311C7.72949 9.91684 7.39371 9.58105 6.97949 9.58105C6.56528 9.58105 6.22949 9.91684 6.22949 10.3311C6.22949 10.7453 6.56528 11.0811 6.97949 11.0811Z",fill:"white"}),(0,i.jsx)("path",{d:"M10.9043 17.8926C11.3185 17.8926 11.6543 17.5568 11.6543 17.1426C11.6543 16.7284 11.3185 16.3926 10.9043 16.3926C10.4901 16.3926 10.1543 16.7284 10.1543 17.1426C10.1543 17.5568 10.4901 17.8926 10.9043 17.8926Z",fill:"white"})]})},ta=e=>{let{size:t=tu,className:a=""}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:a,xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#C3A634"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.936 10.9575H13.1715V12.672H9.936V16.2855H11.9767C12.7845 16.2855 13.4453 16.1768 13.9598 15.9578C14.4743 15.7395 14.8778 15.4372 15.171 15.0502C15.4709 14.6478 15.6751 14.1822 15.768 13.689C15.8764 13.1326 15.9291 12.5668 15.9255 12C15.9291 11.4332 15.8764 10.8674 15.768 10.311C15.6752 9.81772 15.471 9.35214 15.171 8.94975C14.8778 8.56275 14.4735 8.2605 13.9598 8.04225C13.4453 7.82325 12.7845 7.7145 11.9767 7.7145H9.936V10.9583V10.9575ZM7.8615 12.672H6.75V10.9583H7.8615V6H12.7733C13.6807 6 14.466 6.1575 15.1298 6.47025C15.7935 6.7845 16.335 7.21275 16.7557 7.7565C17.1757 8.2995 17.4885 8.9355 17.6932 9.66375C17.898 10.392 18 11.1712 18 12C18.0051 12.7892 17.9017 13.5753 17.6925 14.3363C17.4885 15.0638 17.1757 15.7005 16.755 16.2435C16.335 16.7873 15.7935 17.2155 15.1298 17.5297C14.466 17.8432 13.68 18 12.7733 18H7.8615V12.672Z",fill:"white"})]})},tn=e=>{let{size:t=tu,className:a=""}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 40 40",fill:"none",className:a,xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{width:40,height:40,rx:20,fill:"white"}),(0,i.jsx)("path",{d:"M19.9979 6L19.8232 6.61511V24.4641L19.9979 24.6448L27.9956 19.7473L19.9979 6Z",fill:"#343434"}),(0,i.jsx)("path",{d:"M19.9976 6L12 19.7473L19.9976 24.6448V15.9815V6Z",fill:"#8C8C8C"}),(0,i.jsx)("path",{d:"M19.9979 26.2133L19.8994 26.3376V32.6958L19.9979 32.9938L28.0002 21.3184L19.9979 26.2133Z",fill:"#3C3C3B"}),(0,i.jsx)("path",{d:"M19.9976 32.9938V26.2133L12 21.3184L19.9976 32.9938Z",fill:"#8C8C8C"}),(0,i.jsx)("path",{d:"M19.998 24.6457L27.9955 19.7483L19.998 15.9824V24.6457Z",fill:"#141414"}),(0,i.jsx)("path",{d:"M12 19.7483L19.9975 24.6457V15.9824L12 19.7483Z",fill:"#393939"})]})},tr=e=>{let{size:t=tu,className:a=""}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",className:a,xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{width:"16",height:"16",rx:"8",fill:"white"}),(0,i.jsx)("path",{d:"M3.3253 7.60492C3.32531 7.51545 3.34297 7.42688 3.37725 7.34426C3.41152 7.26165 3.46175 7.18665 3.52505 7.12354C3.58836 7.06043 3.66347 7.01047 3.74609 6.97652C3.82872 6.94257 3.91722 6.92532 4.00653 6.92574L5.136 6.92943C5.31607 6.92943 5.48877 7.0011 5.61611 7.12866C5.74345 7.25623 5.81499 7.42925 5.81499 7.60966V11.8881C5.94214 11.8503 6.10545 11.81 6.28414 11.7679C6.40826 11.7387 6.51888 11.6683 6.59806 11.5682C6.67723 11.468 6.7203 11.3441 6.72028 11.2163V5.90908C6.72028 5.72865 6.79181 5.55561 6.91914 5.42802C7.04647 5.30044 7.21918 5.22875 7.39927 5.22871H8.53098C8.71106 5.22875 8.88377 5.30044 9.0111 5.42802C9.13843 5.55561 9.20998 5.72865 9.20998 5.90908V10.8347C9.20998 10.8347 9.49333 10.7198 9.76932 10.6031C9.87184 10.5597 9.95933 10.487 10.0209 10.3941C10.0824 10.3011 10.1153 10.1921 10.1154 10.0806V4.20849C10.1154 4.0281 10.1869 3.8551 10.3142 3.72753C10.4415 3.59997 10.6142 3.5283 10.7942 3.52826H11.926C12.106 3.52826 12.2787 3.59992 12.4061 3.72749C12.5334 3.85506 12.605 4.02808 12.605 4.20849V9.04403C13.5861 8.33165 14.5804 7.47491 15.3695 6.44467C15.484 6.29514 15.5597 6.11953 15.59 5.93355C15.6202 5.74757 15.604 5.55696 15.5429 5.37875C15.1776 4.32596 14.5971 3.36115 13.8383 2.54605C13.0795 1.73097 12.1592 1.08354 11.1363 0.64522C10.1134 0.206898 9.01047 -0.0126709 7.89802 0.000564682C6.78556 0.0138001 5.68812 0.259549 4.67592 0.722084C3.66372 1.18462 2.75904 1.85375 2.01978 2.68667C1.28052 3.51958 0.722968 4.49793 0.382798 5.55912C0.0426289 6.62029 -0.0726658 7.74093 0.0442914 8.84931C0.161249 9.95769 0.507884 11.0294 1.06201 11.9959C1.15854 12.1626 1.30056 12.2983 1.47137 12.3869C1.64219 12.4756 1.83471 12.5136 2.02634 12.4964C2.2404 12.4776 2.50692 12.4509 2.82381 12.4136C2.96175 12.3979 3.08911 12.3319 3.18161 12.2282C3.27412 12.1245 3.32531 11.9903 3.32543 11.8512L3.3253 7.60492Z",fill:"#21325B"}),(0,i.jsx)("path",{d:"M3.30065 14.4672C4.49353 15.3366 5.90326 15.8585 7.37385 15.9751C8.84445 16.0915 10.3186 15.7983 11.6331 15.1276C12.9476 14.4568 14.0512 13.4349 14.822 12.1748C15.5927 10.9146 16.0004 9.46544 16 7.98756C16 7.80314 15.9915 7.6207 15.9792 7.43932C13.0577 11.8045 7.6635 13.8452 3.3009 14.4666",fill:"#979695"})]})},ts=e=>{let{size:t=tu,className:a=""}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:a,xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_9953_95503)",children:[(0,i.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#4364BC"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.82025 14.4105L6.75 14.826L7.266 12.7568L8.349 12.3218L9.90975 6H13.7565L12.6172 10.647L13.6747 10.2188L13.1647 12.2812L12.0945 12.7095L11.4585 15.3218H17.25L16.5953 18H6.939L7.82025 14.4105Z",fill:"white"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_9953_95503",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})},ti=e=>{let{size:t=tu,className:a=""}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:a,xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_10100_160862)",children:[(0,i.jsx)("path",{d:"M11.9902 0H12.0098C18.6307 0 24 5.2282 24 11.675V12.325C24 18.7718 18.6307 24 12.0098 24H11.9902C5.36933 24 0 18.7718 0 12.325V11.675C0 5.2282 5.36933 0 11.9902 0Z",fill:"#232323"}),(0,i.jsx)("path",{d:"M16.1507 9.32913C16.1139 9.36684 16.0678 9.39616 16.0171 9.41292C15.9664 9.43386 15.9111 9.44224 15.8558 9.44224H5.41869C5.05005 9.44224 4.86113 9.02333 5.11917 8.77199L6.83335 7.11729C6.87021 7.07959 6.91629 7.05027 6.97159 7.02932C7.02228 7.00838 7.07757 7 7.13287 7H17.6115C17.9847 7 18.169 7.4231 17.9064 7.67444L16.1507 9.32913ZM16.1507 16.7271C16.0724 16.7983 15.9664 16.8402 15.8558 16.8402H5.41869C5.05005 16.8402 4.86113 16.4296 5.11917 16.1867L6.83335 14.5697C6.87021 14.532 6.9209 14.5027 6.97159 14.4859C7.02228 14.465 7.07757 14.4566 7.13287 14.4566H17.6115C17.9847 14.4566 18.169 14.8713 17.9064 15.1143L16.1507 16.7271ZM16.1507 10.8414C16.0724 10.7702 15.9664 10.7283 15.8558 10.7283H5.41869C5.05005 10.7283 4.86113 11.1388 5.11917 11.3818L6.83335 12.9988C6.87021 13.0365 6.9209 13.0658 6.97159 13.0826C7.02228 13.1035 7.07757 13.1119 7.13287 13.1119H17.6115C17.9847 13.1119 18.169 12.6972 17.9064 12.4542L16.1507 10.8414Z",fill:"url(#paint0_linear_10100_160862)"})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"paint0_linear_10100_160862",x1:"5.79674",y1:"16.963",x2:"16.1414",y2:"5.88445",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#CF41E8"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#10F2B0"})]}),(0,i.jsx)("clipPath",{id:"clip0_10100_160862",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white"})})]})]})},tl=e=>{let{size:t=tu,className:a=""}=e;return(0,i.jsx)("svg",{width:t,height:t,viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:(0,i.jsx)("path",{d:"M27.167 5.33203H5.83366C4.36699 5.33203 3.18033 6.53203 3.18033 7.9987L3.16699 23.9987C3.16699 25.4654 4.36699 26.6654 5.83366 26.6654H27.167C28.6337 26.6654 29.8337 25.4654 29.8337 23.9987V7.9987C29.8337 6.53203 28.6337 5.33203 27.167 5.33203ZM27.167 10.6654L16.5003 17.332L5.83366 10.6654V7.9987L16.5003 14.6654L27.167 7.9987V10.6654Z",fill:"#999999"})})},to=e=>{let{size:t=tu,className:a=""}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 32 32",fill:"none",className:a,xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{id:"Blockchain icon","clip-path":"url(#clip0_13790_230309)",children:[(0,i.jsx)("path",{id:"Vector",d:"M32 16C32 24.8361 24.8361 32 16 32C7.16395 32 0 24.8361 0 16C0 7.16395 7.16395 0 16 0C24.8379 0 32 7.16395 32 16Z",fill:"#333232"}),(0,i.jsx)("path",{id:"Vector_2",d:"M7.89394 16.5373L7.96299 16.4288L12.1252 9.91749C12.186 9.82213 12.3291 9.83201 12.3751 9.93555C13.0704 11.4939 13.6704 13.432 13.3893 14.6386C13.2693 15.135 12.9406 15.8074 12.5707 16.4288C12.523 16.5192 12.4704 16.608 12.4145 16.6935C12.3882 16.7329 12.3439 16.7559 12.2962 16.7559H8.01557C7.90052 16.7559 7.83314 16.631 7.89394 16.5373Z",fill:"white"}),(0,i.jsx)("path",{id:"Vector_3",d:"M26.4459 17.746V18.7766C26.4459 18.8358 26.4098 18.8884 26.3572 18.9114C26.035 19.0495 24.932 19.5558 24.4733 20.1936C23.3029 21.8227 22.4087 24.152 20.4097 24.152H12.0705C9.11482 24.152 6.71973 21.7487 6.71973 18.7832V18.6879C6.71973 18.609 6.78383 18.5449 6.86277 18.5449H11.5115C11.6036 18.5449 11.671 18.6303 11.6628 18.7207C11.6299 19.0232 11.6858 19.3323 11.8288 19.6134C12.105 20.1739 12.6771 20.5241 13.2952 20.5241H15.5965V18.7273H13.3214C13.2047 18.7273 13.1357 18.5925 13.2031 18.4972C13.2277 18.4594 13.2557 18.4199 13.2853 18.3755C13.5006 18.0698 13.808 17.5947 14.1138 17.0539C14.3225 16.689 14.5247 16.2993 14.6875 15.9081C14.7204 15.8374 14.7467 15.7651 14.773 15.6944C14.8174 15.5695 14.8634 15.4528 14.8963 15.3361C14.9291 15.2374 14.9554 15.1339 14.9817 15.0369C15.059 14.7048 15.0919 14.353 15.0919 13.9881C15.0919 13.8451 15.0853 13.6955 15.0722 13.5525C15.0656 13.3963 15.0458 13.2401 15.0261 13.084C15.013 12.9459 14.9883 12.8095 14.962 12.6665C14.9291 12.4577 14.8831 12.2506 14.8305 12.0418L14.8124 11.9629C14.773 11.8199 14.7401 11.6834 14.6941 11.5404C14.5642 11.0916 14.4146 10.6544 14.2568 10.2451C14.1993 10.0823 14.1335 9.92615 14.0677 9.76999C13.9707 9.5349 13.8721 9.32121 13.7817 9.11901C13.7357 9.02695 13.6962 8.94311 13.6568 8.85764C13.6124 8.76064 13.5664 8.66368 13.5204 8.57159C13.4875 8.50091 13.4496 8.43517 13.4234 8.36942L13.1423 7.84996C13.1028 7.77927 13.1686 7.69543 13.2458 7.7168L15.0047 8.19353H15.0097C15.013 8.19353 15.0146 8.19517 15.0163 8.19517L15.248 8.25927L15.5028 8.33159L15.5965 8.3579V7.31243C15.5965 6.80775 16.0009 6.39844 16.5007 6.39844C16.7505 6.39844 16.9774 6.50034 17.1401 6.66638C17.3028 6.83243 17.4048 7.05927 17.4048 7.31243V8.86421L17.5922 8.9168C17.607 8.92174 17.6218 8.92832 17.6349 8.93817C17.6809 8.9727 17.7467 9.02368 17.8305 9.08612C17.8963 9.13874 17.967 9.20285 18.0525 9.26859C18.2218 9.40505 18.4239 9.58094 18.6459 9.78311C18.705 9.8341 18.7626 9.88669 18.8152 9.93931C19.1012 10.2056 19.4218 10.5179 19.7276 10.8631C19.813 10.9601 19.8969 11.0587 19.9823 11.1623C20.0678 11.2675 20.1582 11.3711 20.2371 11.4747C20.3407 11.6127 20.4525 11.7557 20.5495 11.9054C20.5955 11.976 20.6481 12.0484 20.6925 12.119C20.8174 12.3081 20.9275 12.5037 21.0328 12.6993C21.0771 12.7897 21.1232 12.8884 21.1626 12.9854C21.2793 13.2467 21.3714 13.513 21.4306 13.7793C21.4487 13.8369 21.4618 13.8993 21.4684 13.9552V13.9684C21.4881 14.0473 21.4947 14.1311 21.5012 14.2166C21.5275 14.4895 21.5144 14.7623 21.4552 15.0369C21.4306 15.1536 21.3977 15.2637 21.3582 15.3804C21.3188 15.4922 21.2793 15.6089 21.2284 15.7191C21.1298 15.9476 21.013 16.1761 20.8749 16.3898C20.8306 16.4687 20.778 16.5525 20.7253 16.6314C20.6678 16.7152 20.6087 16.7942 20.556 16.8714C20.4837 16.9701 20.4064 17.0736 20.3275 17.1657C20.2569 17.2626 20.1845 17.3596 20.1056 17.4451C19.9955 17.575 19.8903 17.6983 19.7801 17.8166C19.7144 17.8939 19.6437 17.9728 19.5714 18.0435C19.5007 18.1224 19.4283 18.1931 19.3626 18.2588C19.2525 18.369 19.1604 18.4544 19.0831 18.5251L18.9023 18.6912C18.876 18.7142 18.8415 18.7273 18.8053 18.7273H17.4048V20.5241H19.167C19.5615 20.5241 19.9363 20.3843 20.2388 20.1279C20.3423 20.0375 20.7944 19.6462 21.3287 19.0561C21.3467 19.0364 21.3698 19.0216 21.396 19.015L26.2635 17.6079C26.3539 17.5815 26.4459 17.6506 26.4459 17.746Z",fill:"#BFBFBF"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_13790_230309",children:(0,i.jsx)("rect",{width:"32",height:"32",fill:"white"})})})]})},tc=e=>{let{size:t=tu,className:a=""}=e;return(0,i.jsx)("svg",{width:t,height:t,viewBox:"0 0 32 32",fill:"none",className:a,xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("g",{id:"Icon",children:(0,i.jsx)("path",{id:"Vector",d:"M29.6108 3.27352C29.4559 3.13973 29.2674 3.05075 29.0656 3.01617C28.8638 2.98159 28.6565 3.00271 28.4658 3.07727L3.1333 12.991C2.77428 13.1306 2.47033 13.3831 2.26721 13.7104C2.06409 14.0377 1.97278 14.4221 2.00705 14.8058C2.04131 15.1895 2.19929 15.5516 2.4572 15.8378C2.7151 16.1239 3.05898 16.3185 3.43705 16.3923L10.0008 17.681V24.9998C9.99951 25.3984 10.118 25.7883 10.3409 26.1188C10.5637 26.4493 10.8807 26.7053 11.2508 26.8535C11.6203 27.0044 12.0266 27.0406 12.417 26.9575C12.8073 26.8743 13.1636 26.6756 13.4396 26.3873L16.6046 23.1048L21.6258 27.4998C21.9881 27.8211 22.4553 27.9989 22.9396 27.9998C23.1518 27.9996 23.3626 27.9663 23.5646 27.901C23.8945 27.7963 24.1912 27.607 24.4252 27.352C24.6593 27.0969 24.8224 26.785 24.8983 26.4473L29.9721 4.37477C30.0174 4.17571 30.0078 3.96805 29.9442 3.77405C29.8805 3.58005 29.7653 3.40702 29.6108 3.27352ZM22.9421 25.9998L12.6071 16.9373L27.4821 6.27602L22.9421 25.9998Z",fill:"#999999"})})})},td=e=>{let{size:t=tu,className:a="",fill:n="#1A1A1A"}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:a,children:[(0,i.jsx)("path",{d:"M18.3263 1.90381H21.6998L14.3297 10.3273L23 21.7898H16.2112L10.894 14.8378L4.80995 21.7898H1.43443L9.31743 12.7799L1 1.90381H7.96111L12.7674 8.25814L18.3263 1.90381ZM17.1423 19.7706H19.0116L6.94539 3.81694H4.93946L17.1423 19.7706Z",fill:n}),(0,i.jsx)("path",{d:"M18.3263 1.90381H21.6998L14.3297 10.3273L23 21.7898H16.2112L10.894 14.8378L4.80995 21.7898H1.43443L9.31743 12.7799L1 1.90381H7.96111L12.7674 8.25814L18.3263 1.90381ZM17.1423 19.7706H19.0116L6.94539 3.81694H4.93946L17.1423 19.7706Z",fill:n,fillOpacity:"0.2"}),(0,i.jsx)("path",{d:"M18.3263 1.90381H21.6998L14.3297 10.3273L23 21.7898H16.2112L10.894 14.8378L4.80995 21.7898H1.43443L9.31743 12.7799L1 1.90381H7.96111L12.7674 8.25814L18.3263 1.90381ZM17.1423 19.7706H19.0116L6.94539 3.81694H4.93946L17.1423 19.7706Z",fill:n,fillOpacity:"0.2"}),(0,i.jsx)("path",{d:"M18.3263 1.90381H21.6998L14.3297 10.3273L23 21.7898H16.2112L10.894 14.8378L4.80995 21.7898H1.43443L9.31743 12.7799L1 1.90381H7.96111L12.7674 8.25814L18.3263 1.90381ZM17.1423 19.7706H19.0116L6.94539 3.81694H4.93946L17.1423 19.7706Z",fill:n,fillOpacity:"0.2"})]})},tu=24,tm=50;a(7186),a(46719),a(68571),a(75755),a(68571);var th=a(62053),tf=a(40033),tp=a(8862);a(87177);let tx=e=>{var t;let{children:a,size:n=156,avatarUrl:r,walletAddress:s,alt:l,...o}=e,{address:c,authToken:d,isConnected:u}=w(),{data:m}=(0,th.F)({address:s||c,chainId:eP.R.id}),{data:h}=(0,tf.c)({name:m||"",chainId:eP.R.id}),f=null==window?void 0:null===(t=window.ethereum)||void 0===t?void 0:t.isMetaMask;return h||r?(0,i.jsx)("div",{className:"Avatar",style:{width:n,height:n+1},children:(0,i.jsx)(e0.default,{alt:l||"Avatar Image",src:h||r,width:n,height:n+1})}):d&&(u&&f||s)?(0,i.jsx)("div",{className:"MetaMask",style:{width:n,height:n+1},children:(0,i.jsx)(tp.N,{address:s||c,size:n})}):(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 260 260",fill:"none",overflow:"hidden",children:[(0,i.jsx)("path",{d:"M125.001 2.22025C128.095 0.433919 131.907 0.43392 135.001 2.22025L238.335 61.8798C241.429 63.6661 243.335 66.9674 243.335 70.54V189.859C243.335 193.432 241.429 196.733 238.335 198.519L135.001 258.179C131.907 259.965 128.095 259.965 125.001 258.179L21.668 198.519C18.574 196.733 16.668 193.432 16.668 189.859V70.54C16.668 66.9674 18.574 63.6661 21.668 61.8798L125.001 2.22025Z",className:"avatar-background"}),(0,i.jsx)("path",{d:"M130 260L45 205C60 175 75 167 87 167H172C186 167 199 175 206 187L218 205L80 290",fill:"white",className:"avatar-body"}),(0,i.jsx)("path",{d:"M96.7398 85.4437C92.3445 92.0217 89.9986 99.7553 89.9986 107.667C89.9986 118.275 94.2128 128.449 101.714 135.951C109.216 143.452 119.39 147.666 129.999 147.666C137.91 147.666 145.643 145.321 152.221 140.925C158.799 136.53 163.926 130.283 166.954 122.974C169.981 115.665 170.773 107.622 169.23 99.8629C167.687 92.1037 163.877 84.9763 158.283 79.3822C152.689 73.7881 145.561 69.9785 137.802 68.4351C130.043 66.8917 122 67.6838 114.691 70.7113C107.382 73.7388 101.135 78.8657 96.7398 85.4437Z",className:"avatar-head",fill:"white"}),(0,i.jsx)("path",{d:"M126.501 4.81832C128.667 3.56789 131.335 3.56789 133.501 4.81832L236.835 64.4779C239 65.7283 240.335 68.0392 240.335 70.54V189.859C240.335 192.36 239 194.671 236.835 195.921L133.501 255.581C131.335 256.831 128.667 256.831 126.501 255.581L23.168 195.921C21.0022 194.671 19.668 192.36 19.668 189.859V70.54C19.668 68.0392 21.0022 65.7283 23.168 64.4779L126.501 4.81832Z",stroke:"white",strokeWidth:"6",strokeLinejoin:"round"})]})};a(40381);var tC=a(49665);function tg(e){return e.replace(/^-+|-+$/g,"").replace(/-{2,}/g,"-")}function tv(e){return/^(?!.*--)[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$/.test(null==e?void 0:e.toLowerCase())}a(74870),a(99093);let tw=e=>{let{domainName:t,onClick:a,showStatus:n=!1}=e,[r,s]=(0,l.useState)(null);return(0,o.useRouter)(),(0,i.jsxs)("div",{className:"searchDomainItem","data-testid":"search-domain-item",onClick:()=>{a(tg(t))},title:t,children:[(0,i.jsxs)("div",{className:"lookupTooltipTextWrap clickable",children:[(0,i.jsx)(u,{variant:"body1","data-testid":"search-domain-item-text",className:"font-bold dark:text-black",children:t}),(0,i.jsx)("span",{className:"flex items-center text-[12px] font-normal ml-2 px-2 bg-black text-primary-contrast rounded h-fit",children:".box"})]}),(0,i.jsx)("div",{className:"text-black chevron",children:(0,i.jsx)(en.xZ0,{size:"24"})})]})},tj=e=>{let{onSearch:t,variant:a="content"}=e,n=(0,o.useSearchParams)(),r=(null==n?void 0:n.get("domain"))||"";r=tg(r);let[s,d]=(0,l.useState)("content"===a?r:""),[u,m]=(0,l.useState)([]),[h,f]=(0,l.useState)(!1),p=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(p.current&&!s&&p.current.focus(),localStorage){var e;m(JSON.parse((null===(e=localStorage)||void 0===e?void 0:e.names)||"[]").filter(e=>""!==e))}},[r,m,s]),(0,l.useEffect)(()=>{let e=n.get("domain")||"";s!==e&&"content"===a&&d(tg(e))},[n]);let x=async()=>{var e;d(""),f(!1),null===(e=p.current)||void 0===e||e.focus()},C=e=>{e.preventDefault(),g(tg(s))},g=e=>{if("table"!==a&&!u.includes(e)){let t=[...u];t.unshift(e),t.splice(5),localStorage&&(localStorage.names=JSON.stringify(t),m(t))}("header"===a||"siteHeader"===a||"mobile"===a)&&d(""),f(!1),t(e),"table"!==a&&(0,c.AQ)(a,tg(s))};return(0,i.jsx)("form",{onSubmit:C,className:"flex w-fit max-w-[698px] search-result-page search-input-box search-place-".concat(a," "),children:(0,i.jsxs)("div",{className:"relative w-fit input-wrapper",children:[(0,i.jsx)("span",{className:"searchIcon searchIcon--".concat(a),children:(0,i.jsx)(en._RF,{size:"24",className:"text-black"})}),(0,i.jsx)("input",{ref:p,autoComplete:"off",onChange:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.target.value=e.target.value.replace("table"===a?/[^a-zA-Z0-9-.]/g:/[^a-zA-Z0-9-]/g,"").toLocaleLowerCase().trim().substring(0,63),t||(d(e.target.value),f(!0))},onKeyUp:e=>{"enter"===e.key&&(e.preventDefault(),C(e))},value:s,required:!0,type:"text",id:"domain-name","data-testid":"site-search-bar",name:"domain-name",className:"searchInput searchInput--".concat(a),placeholder:"".concat(a.toLowerCase().includes("header")?" Search and buy domains":a.toLowerCase().includes("table")?"Search":"Search for yourname.box")}),(0,i.jsx)("span",{className:"closeSearch closeSearch--".concat(a),children:(0,i.jsx)("div",{onClick:x,style:{display:s?"block":"none"},children:(0,i.jsx)(en.UI9,{size:"32",className:"text-secondary-tint hover:text-secondary-shade hover:cursor-pointer"})})}),h&&"siteHeader"!==a&&"table"!==a&&s.length>0&&(0,i.jsxs)("div",{className:"lookupTooltip lookupTooltip--".concat(a),children:[(0,i.jsx)("div",{className:"arrow-up"}),""!==tg(s)&&(0,i.jsx)(tw,{domainName:tg(s),onClick:e=>g(e)},s),null==u?void 0:u.filter(e=>e.toLowerCase()!==s.toLowerCase()).slice(0,4).map((e,t)=>(0,i.jsx)(tw,{domainName:e,onClick:e=>g(e)},e))]})]})})};a(56410);let tb=e=>{let{onSearch:t,className:a="",onLoad:n=()=>void 0,onAbort:r=()=>void 0,...s}=e,[o,c]=(0,l.useState)(!1);return(0,i.jsx)("div",{...s,className:"search-domain-input-mobile-wrapper "+(o?"":"w-fit ")+a,children:o?(0,i.jsxs)("div",{className:"search-input-content-wrapper blurred-search-view",children:[(0,i.jsxs)("div",{className:"search-input-wrapper",children:[(0,i.jsx)("div",{className:"w-[2rem]"}),(0,i.jsx)("div",{className:"flex justify-center flex-grow",children:(0,i.jsx)(e3,{isMobile:!0})}),(0,i.jsx)("div",{className:"search-input-controller-minus w-[2rem] flex justify-end",children:(0,i.jsx)("button",{onClick:()=>{c(!1),r()},children:(0,i.jsx)(en.$$v,{size:"28"})})}),(0,i.jsx)("div",{})]}),(0,i.jsx)("div",{className:"mobile-view-search",children:(0,i.jsx)(tj,{onSearch:e=>{c(!1),t(e)},variant:"mobile"})})]}):(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)("button",{onClick:()=>{c(!0),n()},children:(0,i.jsx)(en._RF,{size:"28"})})})})};a(90233),a(64557);var ty=a(44552),tN=a.n(ty),tS=a(20688),tk=a(49772),tL=a(39596);a(71945);let t_=(0,tL.v)({chain:(0,tS.I)(eP.R),transport:(0,eV.d)()}),tA=e=>{let{domainName:t,walletAddress:a}=e,[n,r]=(0,l.useState)(!0),[s,o]=(0,l.useState)(),[d,u]=(0,l.useState)([]);return(0,l.useEffect)(()=>{(async()=>{try{var e;r(!0);let n=[{title:"domain",text:t}],s=await (0,tk.Z)(t_,{name:t,coins:["ATOM","BTC","DOGE","ETH","LTC","SOL"],texts:["avatar","email"]}),i=tN()(null==s?void 0:s.texts,["key","email"]),l=null===(e=tN()(null==s?void 0:s.texts,["key","avatar"]))||void 0===e?void 0:e.value;i&&n.push({title:i.key,text:i.value}),n.push({title:"wallet",text:a}),null==s||s.coins.map(e=>{n.push({title:e.name,text:e.value})}),u(n),o(l)}catch(e){(0,c.sH)({type:"error",msg:"Error fetching profile data",data:e})}finally{r(!1)}})()},[t]),(0,i.jsxs)("div",{className:"relative w-full h-full text-sm bg-primary",children:[(0,i.jsx)("div",{className:"absolute top-0 w-full h-[10rem] avatar-wrapper"}),(0,i.jsx)("div",{className:"relative flex justify-center w-full pt-[3rem]",children:(0,i.jsx)(tx,{size:187,walletAddress:a,avatarUrl:s})}),(0,i.jsx)("div",{className:"px-2 py-6",children:(0,i.jsx)(tI,{rows:d})})]})},tI=e=>{let{rows:t}=e,[a,n]=(0,l.useState)(""),r=(0,l.useRef)();(0,l.useEffect)(()=>()=>clearTimeout(r.current),[]);let s=e=>e.length>20?e.substring(0,5)+"..."+e.slice(-5):e,o=(e,t)=>{navigator.clipboard.writeText(t),window.self!==window.top&&window.parent.postMessage({action:"copyText",text:t},"*"),n(e),clearTimeout(r.current),r.current=setTimeout(()=>n(""),2e3)},c=e=>{switch(e){case"wallet":return(0,i.jsx)(tr,{size:24});case"eth":return(0,i.jsx)(tn,{size:24});case"atom":return(0,i.jsx)(tt,{size:24});case"btc":return(0,i.jsx)(te,{size:24});case"doge":return(0,i.jsx)(ta,{size:24});case"ltc":return(0,i.jsx)(ts,{size:24});case"sol":return(0,i.jsx)(ti,{size:24});default:return null}};return t?t.map(e=>(0,i.jsxs)("div",{className:"flex items-center justify-between mt-3 p-3 font-bold rounded "+(a===e.title?"":"hover:bg-sky-600 cursor-pointer"),onClick:()=>o(e.title,e.text),children:[(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)("div",{children:c(e.title)}),(0,i.jsx)("div",{className:["domain","email"].includes(e.title)?"":"ms-3",children:s(e.text)})]}),(0,i.jsx)("div",{children:a===e.title?(0,i.jsx)(en.muM,{className:"text-alert-success"}):(0,i.jsx)(en.o$V,{})})]},"row-".concat(e.title))):null};var tM=a(27975);a(98293);let tE=e=>{var t;let{nft:a,size:r,domain:s}=e;return a.video?(0,i.jsxs)("video",{width:r,height:r,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:a.video,type:"video/mp4"}),"Your browser does not support the video tag."]}):(0,i.jsx)(e0.default,{alt:"".concat(s," ").concat(a.title),width:r,height:r,src:a.img||(null===(t=n.default)||void 0===t?void 0:t.src),unoptimized:!0})};function tT(e){let{nfts:t,domain:a,ind:n,scrollAction:r,resolve:s,reject:o}=e,c=()=>{(function(){let e=document.getElementById("nftGalleryPopup-container"),t=document.getElementsByTagName("body")[0];e&&t&&t.removeChild(e)})(),o()},[d,m]=(0,l.useState)(n),[h,f]=(0,l.useState)(t),p=async()=>{let e=await r();e&&await f(t=>[...t,...e])},x=h[d],{title:C,description:g,contractAddress:v,tokenId:w,network:j}=x,b=x.network.replace("Eth","ethereum").toLowerCase(),y=BigInt(w).toString(),N=y.length>10?y.slice(0,5)+"..."+y.slice(-4):y,S="https://opensea.io/assets/".concat(b,"/").concat(v,"/").concat(y),k="https://opensea.io/assets/".concat(b,"/").concat(v),L=v.slice(0,5)+"..."+v.slice(-4);return(0,i.jsxs)("div",{className:"nftGalleryPopup",children:[(0,i.jsx)("div",{className:"blur-background"}),(0,i.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-x-hidden overflow-y-auto outline-none nftWrap focus:outline-none",children:(0,i.jsx)("div",{className:"modal relative w-auto my-6 mx-auto max-w-[1200px]",children:(0,i.jsx)("div",{className:"relative flex flex-col w-full border-0 rounded-lg shadow-lg outline-none nftModal focus:outline-none",children:(0,i.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 sm:grid-cols-1",children:[(0,i.jsx)("div",{className:"imgContainerPopup",children:(0,i.jsx)(tE,{nft:x,domain:a,size:600})}),(0,i.jsxs)("div",{className:"nftBody",children:[(0,i.jsxs)("div",{className:"flex items-start justify-between p-5 rounded-t nftHeader",children:[(0,i.jsxs)("div",{className:"nftTitle",children:[(0,i.jsx)("div",{className:"labelIcon label".concat(j)}),(0,i.jsx)(ey,{level:"h4",children:C})]}),(0,i.jsx)(en.UI9,{size:"32",className:"cursor-pointer nftModalClose",onClick:e=>{c()}})]}),(0,i.jsx)(u,{variant:"body1",className:"ml-4 mr-4 font-bold nftPopupScrollBar",children:g}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"nftPopupTable",children:[(0,i.jsx)("div",{children:"Collection ID"}),(0,i.jsx)("div",{children:k?(0,i.jsxs)("a",{target:"_blank",href:k,children:[" ",L," ",(0,i.jsx)(en.w9C,{size:"16"})," "]}):L})]}),(0,i.jsxs)("div",{className:"nftPopupTable",children:[(0,i.jsx)("div",{children:"Token ID"}),(0,i.jsx)("div",{children:S?(0,i.jsxs)("a",{target:"_blank",href:S,children:[N,(0,i.jsx)(en.w9C,{size:"16"})]}):N})]}),(0,i.jsxs)("div",{className:"mb-4 nftPopupTable",children:[(0,i.jsx)("div",{children:d>0&&(0,i.jsx)(en.KWH,{size:"32",className:"cursor-pointer",onClick:async e=>{m(d-1)}})}),S&&(0,i.jsx)("div",{children:(0,i.jsxs)("a",{href:S,target:"_blank",className:"viewInMarketplace",children:["View in Marketplace ",(0,i.jsx)(en.w9C,{size:"16"})]})}),(0,i.jsx)("div",{children:d<h.length-1&&(0,i.jsx)(en.Ldl,{size:"32",className:"cursor-pointer",onClick:async e=>{m(d+1),p()}})})]})]})]})]})})})}),(0,i.jsx)("div",{className:"fixed inset-0 z-40 bg-black opacity-25"})]})}a(38494);let tH=(e,t,a,n)=>new Promise((r,s)=>{!function(e,t,a,n,r,s){let l=document.getElementsByTagName("body")[0],o=document.createElement("div");o.setAttribute("id","nftGalleryPopup-container"),l.appendChild(o),(0,ea.createRoot)(o).render((0,i.jsx)(tT,{nfts:n,domain:r,ind:a,scrollAction:s,resolve:e,reject:t}))}(r,s,e,t,a,n)}),tP=e=>{let{domain:t}=e,[a,n]=(0,l.useState)([]),[r,s]=(0,l.useState)(1),[o,c]=(0,l.useState)(1e3),[d,u]=(0,l.useState)(!0),m=(0,l.useRef)(!1),h=(0,l.useRef)(null),f=(0,l.useRef)(null),[p,x]=(0,l.useState)(!0),[C,g]=(0,l.useState)(!0),[v,w]=(0,l.useState)(!0),j=async()=>{if(!v)return null;let e=await N(100);return null==e?void 0:e.nftsLoaded},y=e=>{tH(e,a,t||"",j)},N=(0,l.useCallback)(async function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(m.current)return;m.current=!0;let r=!1,s=[],i=localStorage.getItem("pageKeyEth"),l=localStorage.getItem("pageKeyOptimism");try{let o=(await b.default.get("/api/nfts?domain=".concat(t,"&pageSize=").concat(e,"&firstLoad=").concat(a,"&pageKeyEth=").concat(i,"&pageKeyOptimism=").concat(l))).data;return s=[...o.nfts],await n(e=>[...e,...o.nfts]),w(o.moreNFTsAvailable),o.pageKeyEth&&localStorage.setItem("pageKeyEth",o.pageKeyEth),o.pageKeyOptimism&&localStorage.setItem("pageKeyOptimism",o.pageKeyOptimism),!0===o.moreNFTsAvailable&&(r=!0),{moreAvailable:r,nftsLoaded:s}}catch(e){n([])}finally{u(!1),m.current=!1}},[t]),S=async()=>{var e,t,n;let r=null===(e=h.current)||void 0===e?void 0:e.splide.length;if(!r&&a.length){setTimeout(S,100);return}if(!r)return;let s=null===(t=h.current)||void 0===t?void 0:t.splide.Components.Elements.slides[r-1];_(null===(n=h.current)||void 0===n?void 0:n.splide.Components.Elements.slides[0],"left")?x(!0):x(!1),_(s,"right")?g(!0):g(!1)},k=()=>{c(window.innerWidth),S()};(0,l.useEffect)(()=>{let e=async()=>{if(m.current){setTimeout(e,1e3);return}await u(!0),await w(!0),await n([]),await s(1);let t=await N(10,!0);(null==t?void 0:t.moreAvailable)&&await N(100)};return e(),c(window.innerWidth),window.addEventListener("resize",k),()=>{window.removeEventListener("resize",k)}},[t,N]);let L=a.slice(0,5*r);if(d)return(0,i.jsx)(l.Fragment,{children:(0,i.jsxs)("div",{className:"nftsContainer",children:[(0,i.jsx)("h3",{children:" NFT gallery "}),(0,i.jsx)("div",{className:"cards",children:(0,i.jsx)("div",{className:"card cardLoading",children:(0,i.jsx)("div",{className:"spinner-wrapper",children:(0,i.jsx)("div",{className:"spinner",children:(0,i.jsx)("div",{})})})},-1)})]})});function _(e,t){if(!e||!(null==f?void 0:f.current))return!1;let a=e.getBoundingClientRect();window.innerHeight||document.documentElement.clientHeight;let n=window.innerWidth||document.documentElement.clientWidth;if("right"===t)return a.right>=0&&a.right<=n;if("left"===t){var r;let e=null==f?void 0:null===(r=f.current)||void 0===r?void 0:r.getBoundingClientRect(),t=null==e?void 0:e.left;return a.left>=t&&a.left<=n-t}return!1}return(0,i.jsxs)(l.Fragment,{children:[o<1915&&(0,i.jsx)(l.Fragment,{children:(0,i.jsxs)("div",{className:"nftsContainer".concat(L.length?"":" emptyGallery"),children:[(0,i.jsx)("h3",{ref:f,children:"NFT gallery"}),(0,i.jsxs)(tM.tv,{onVisible:()=>{S()},onHidden:()=>{S()},onActive:()=>{S()},onMoved:(e,t,a)=>{j()},ref:h,hasTrack:!1,options:{fixedWidth:265,pagination:!1},"aria-label":"NFT gallery",children:[(0,i.jsxs)(tM.Gj,{children:[a.map((e,a)=>{var n;return(0,i.jsxs)(tM.jw,{onClick:()=>{y(a)},children:[(0,i.jsx)("div",{className:"img-container",children:(0,i.jsx)(tE,{size:265,domain:t,nft:e})}),(0,i.jsxs)("div",{className:"label-container",children:[(0,i.jsx)("div",{className:"labelIcon label".concat(e.network)}),(0,i.jsx)("div",{className:"labelText",children:null===(n=e.title)||void 0===n?void 0:n.slice(0,95)})]})]},a)}),!(null==a?void 0:a.length)&&(0,i.jsxs)(tM.jw,{children:[(0,i.jsx)("div",{className:"img-container"}),(0,i.jsxs)("div",{className:"label-container",children:[(0,i.jsx)("div",{className:"labelIcon"}),(0,i.jsx)("div",{className:"labelText"})]})]})]}),(0,i.jsxs)("div",{className:"splide__arrows",children:[(0,i.jsx)("button",{className:"splide__arrow splide__arrow--prev ".concat(p?"hidden":""),children:(0,i.jsx)("div",{})}),(0,i.jsx)("button",{className:"splide__arrow splide__arrow--next ".concat(C?"hidden":""),children:(0,i.jsx)("div",{})})]})]})]})}),o>=1915&&(0,i.jsx)(l.Fragment,{children:(0,i.jsxs)("div",{className:"nftsContainerCards".concat(L.length?"":" emptyGallery"),children:[(0,i.jsx)("h3",{children:"NFT gallery"}),(0,i.jsxs)("div",{className:"cards",children:[L.map((e,a)=>{var n;return(0,i.jsxs)("div",{onClick:()=>{y(a)},className:"card",children:[(0,i.jsx)("div",{className:"img-container",children:(0,i.jsx)(tE,{size:265,domain:t,nft:e})}),(0,i.jsxs)("div",{className:"label-container",children:[(0,i.jsx)("div",{className:"labelIcon label".concat(e.network)}),(0,i.jsx)("div",{className:"labelText",children:null===(n=e.title)||void 0===n?void 0:n.slice(0,95)})]})]},a)}),0===L.length&&(0,i.jsxs)("div",{className:"card",children:[(0,i.jsx)("div",{className:"img-container"}),(0,i.jsxs)("div",{className:"label-container",children:[(0,i.jsx)("div",{className:"labelIcon"}),(0,i.jsx)("div",{className:"labelText"})]})]})]}),a.length>5&&L.length<a.length&&(0,i.jsx)("button",{className:"showMore",onClick:()=>{s(r+1),j()},children:"Show more"})]})})]})};var tB=a(71861),tD=a(45922);a(83480);var tZ=a(19665),tV=a(70476),tU=a(3982);let tz=e=>{let{icon:t,name:a,action:n}=e;return(0,i.jsxs)("div",{onClick:()=>{n()},className:"profilePopupItem",children:[(0,i.jsxs)("div",{className:"profilePopupName",children:[t,a]}),(0,i.jsx)("div",{className:"profilePopupLink",children:(0,i.jsx)(en.w9C,{className:"profilePopupArrow",size:"24"})})]})};function tO(e){let{url:t,isOwner:a,resolve:n,reject:r}=e,[s,o]=(0,l.useState)(!1),[c,u]=(0,tU.m9)(),m=(0,l.useRef)(null);(0,l.useEffect)(()=>{m.current&&clearTimeout(m.current)},[]);let h=()=>{(function(){let e=document.getElementById("ProfilePopup-container"),t=document.getElementsByTagName("body")[0];e&&t&&t.removeChild(e)})(),r()};return(0,i.jsxs)("div",{className:"profilePopup",children:[(0,i.jsx)("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto fixed inset-0 z-[2147483648] outline-none focus:outline-none",children:(0,i.jsx)("div",{className:"max-h-[95vh] mx-auto modal relative w-auto my-6 max-w-[700px]",children:(0,i.jsx)("div",{className:"relative flex flex-col w-full bg-white border-0 rounded-lg shadow-lg outline-none focus:outline-none",children:(0,i.jsxs)("div",{className:"rounded bg-gray-90",children:[(0,i.jsxs)("div",{className:"flex items-start justify-between p-5 rounded-t",children:[(0,i.jsx)(ey,{level:"h4",className:"mr-4",children:"Share this profile via..."}),(0,i.jsx)(en.UI9,{size:"32",className:"cursor-pointer text-secondary-tint",onClick:e=>{h()}})]}),(0,i.jsxs)("div",{className:"relative flex-auto px-6 pb-6",children:[(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,i.jsx)("div",{className:"col-span-2 p-4 bg-white md:col-span-1",children:(0,i.jsx)(tV.ZP,{value:t})}),(0,i.jsxs)("div",{className:"col-span-2 md:col-span-1",children:[(0,i.jsx)(tz,{action:()=>{let e="Check out ".concat(a?"my":"this"," Web3 profile"),n="".concat(e,": ").concat(t);window.location.href="mailto:?subject=".concat(encodeURIComponent(e),"&body=").concat(encodeURIComponent(n))},icon:(0,i.jsx)(tZ.ixJ,{className:"profilePopupIcon",size:"24 "}),name:"Email"}),(0,i.jsx)(tz,{action:()=>{window.open("https://twitter.com/intent/tweet?text=".concat(encodeURIComponent("Check out ".concat(a?"my":"this"," Web3 profile, and get your own @boxdomains!")),"&url=").concat(encodeURIComponent(t)))},icon:(0,i.jsx)(e0.default,{src:"/assets/svg/x.svg",alt:"Twitter",className:"profilePopupIcon",width:"24",height:"24"}),name:"Twitter"}),(0,i.jsx)(tz,{action:()=>{window.open("https://t.me/share/url?url=".concat(encodeURIComponent(t),"&text=").concat(encodeURIComponent("Check out ".concat(a?"my":"this"," Web3 profile"))))},icon:(0,i.jsx)(e0.default,{src:"/assets/svg/telegram.svg",alt:"Telegram",className:"profilePopupIcon",width:"24",height:"24"}),name:"Telegram"})]})]}),(0,i.jsx)("div",{onClick:()=>{u(t),o(!0),m.current=setTimeout(()=>{o(!1)},1e3)},className:"grid grid-cols-2 gap-4 mt-4 cursor-pointer",children:(0,i.jsx)("div",{className:"col-span-2 md:col-span-2",children:(0,i.jsxs)("div",{className:"profilePopupUrl",children:[(0,i.jsxs)("div",{className:"profilePopupUrlName",children:[(0,i.jsx)(en.bdW,{className:"profilePopupCopyIcon",size:"24"}),t]}),(0,i.jsxs)("div",{className:"profilePopupUrlRight",children:[!s&&(0,i.jsxs)(i.Fragment,{children:["Copy link",(0,i.jsx)(en.nWu,{className:"profilePopupCards",size:"24"})]}),s&&(0,i.jsxs)("div",{className:"profilePopupCopied",children:["Copied",(0,i.jsx)(en.KBY,{className:"profilePopupCheck",size:"24"})]})]})]})})})]}),(0,i.jsx)("div",{className:"flex items-center justify-end p-6 border-t border-solid rounded-b bg-primary border-slate-200",children:(0,i.jsx)(d,{variant:"stroke",className:"!text-white !border-white mr-6",onClick:e=>{h()},children:"Done"})})]})})})}),(0,i.jsx)("div",{className:"fixed inset-0 z-40 bg-black opacity-25"})]})}let tF=(e,t)=>new Promise((a,n)=>{!function(e,t,a,n){let r=document.getElementsByTagName("body")[0],s=document.createElement("div");s.setAttribute("id","ProfilePopup-container"),r.appendChild(s),(0,ea.createRoot)(s).render((0,i.jsx)(tO,{url:a,isOwner:n,resolve:e,reject:t}))}(a,n,e,t)}),tR=(0,tL.v)({chain:(0,tS.I)(eP.R),transport:(0,eV.d)()}),tW=e=>{var t,a,n;let{domain:r,walletId:s}=e,{address:o}=(0,f.m)(),d=(null==s?void 0:s.toLowerCase())===(null==o?void 0:o.toLowerCase()),[m,h]=(0,l.useState)(!0),[p,x]=(0,l.useState)(),{referralCode:C}=eK();(0,l.useEffect)(()=>{(async()=>{try{h(!0);let e=await (0,tk.Z)(tR,{name:r,texts:["bio","notice","description","com.discord","com.github","com.twitter","com.reddit","io.keybase","org.telegram"]});x(e)}catch(e){(0,c.sH)({type:"error",msg:"Error fetching profile data",data:e})}finally{h(!1)}})()},[r]);let g=null===(n=window)||void 0===n?void 0:null===(a=n.location)||void 0===a?void 0:null===(t=a.href)||void 0===t?void 0:t.replace(/\/+$/,"");C&&!g.includes("ref=")&&(g.includes("?")?g+="&ref=".concat(C):g+="?ref=".concat(C));let v={};return null==p||p.texts.map(e=>v[e.key]=e.value),(0,i.jsx)("div",{className:"profileContainer",children:(0,i.jsx)("div",{className:"grid grid-cols-2 gap-4",children:(0,i.jsxs)("div",{className:"col-span-2",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{variant:"site1",className:"profileSubtitle",children:v.notice}),(0,i.jsx)(u,{variant:"site2",children:v.bio})]}),(0,i.jsxs)("div",{className:"profileIcons",children:[(0,i.jsxs)("div",{onClick:async e=>{tF(g,d)},className:"profileIconWrapper",children:[(0,i.jsx)("div",{className:"profileIcon",children:(0,i.jsx)(en.w9C,{size:"16"})}),"Share"]}),v["com.discord"]&&(0,i.jsx)(e2.default,{target:"_blank",href:"https://discordapp.com/users/".concat(v["com.discord"]),children:(0,i.jsxs)("div",{className:"profileIconWrapper",children:[(0,i.jsx)("div",{className:"profileIcon",children:(0,i.jsx)(tD.c63,{size:"16"})}),"Discord"]})}),v["com.github"]&&(0,i.jsx)(e2.default,{target:"_blank",href:"https://github.com/".concat(v["com.github"]),children:(0,i.jsxs)("div",{className:"profileIconWrapper",children:[(0,i.jsx)("div",{className:"profileIcon",children:(0,i.jsx)(en.PIb,{size:"16"})}),"Github"]})}),v["io.keybase"]&&(0,i.jsx)(e2.default,{target:"_blank",href:"https://keybase.io/".concat(v["io.keybase"]),children:(0,i.jsxs)("div",{className:"profileIconWrapper",children:[(0,i.jsx)("div",{className:"profileIcon",children:(0,i.jsx)(tB.AXz,{size:"16"})}),"Keybase"]})}),v["com.reddit"]&&(0,i.jsx)(e2.default,{target:"_blank",href:"https://www.reddit.com/user/".concat(v["com.reddit"]),children:(0,i.jsxs)("div",{className:"profileIconWrapper",children:[(0,i.jsx)("div",{className:"profileIcon",children:(0,i.jsx)(en.X5q,{size:"16"})}),"Reddit"]})}),v["org.telegram"]&&(0,i.jsx)(e2.default,{target:"_blank",href:"https://t.me/".concat(v["org.telegram"]),children:(0,i.jsxs)("div",{className:"profileIconWrapper",children:[(0,i.jsx)("div",{className:"profileIcon",children:(0,i.jsx)(en.Cyx,{size:"16"})}),"Telegram"]})}),v["com.twitter"]&&(0,i.jsx)(e2.default,{target:"_blank",href:"https://twitter.com/".concat(v["com.twitter"]),children:(0,i.jsxs)("div",{className:"profileIconWrapper",children:[(0,i.jsx)("div",{className:"profileIcon",children:(0,i.jsx)(tD.cy8,{size:"16"})}),"Twitter"]})})]})]})})})};var tG=(e,t)=>{let a=parseFloat(e);return a<Math.pow(10,-t)&&a>0?a.toFixed(1-Math.floor(Math.log(a)/Math.log(10))):parseFloat(a.toFixed(t)).toLocaleString(void 0,{minimumFractionDigits:1,maximumFractionDigits:20})};let tK=e=>"eth"===e?"Ethereum":"opt"===e?"Optimism":e,tq=e=>{let{name:t,balance:a,network:n,symbol:r,logo:s,balanceUSD:l}=e,o=tK(n);return(0,i.jsxs)("div",{className:"cryptoHoldingsItem",children:[(0,i.jsxs)("div",{className:"holdingTitle",children:[s?(0,i.jsxs)("div",{className:"holdingsIcon",children:[!("ETH"===t&&"eth"===n)&&(0,i.jsx)("div",{title:o,className:"network-".concat(n)}),(0,i.jsx)(e0.default,{src:s,className:"holdingImg",width:"24",height:"24",alt:t})]}):(0,i.jsx)("div",{className:"holdingsIcon holdingsEth"}),(0,i.jsx)("div",{className:"holdingName",children:t})]}),(0,i.jsxs)("div",{className:"holdingValues",children:[(0,i.jsx)("div",{className:"holdingAmountTitle",children:null!==l&&(0,i.jsxs)(i.Fragment,{children:[tG(l,2)," USD"]})}),(0,i.jsxs)("div",{className:"holdingAmountSubtitle",children:[tG(a,4)," ",r,o.length>0&&"Ethereum"!==o?" (".concat(o,")"):""]})]})]})};a(49368);let tJ=e=>{let{domain:t}=e,[a,n]=(0,l.useState)([]),[r,s]=(0,l.useState)(1),[o,c]=(0,l.useState)(1e3),[d,u]=(0,l.useState)(!0),m=(0,l.useRef)(!1),[h,f]=(0,l.useState)(!0),p=(0,l.useCallback)(async function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1],m.current)return;m.current=!0;let a=!1,r=[];try{let e=(await b.default.get("/api/holdings?domain=".concat(t))).data;return r=[...e],await n(t=>[...t,...e]),f(e.moreNFTsAvailable),!0===e.moreNFTsAvailable&&(a=!0),{moreAvailable:a,tokensLoaded:r}}catch(e){n([])}finally{u(!1),m.current=!1}},[t]);return((0,l.useEffect)(()=>{let e=async()=>{if(m.current){setTimeout(e,1e3);return}await u(!0),await f(!0),await n([]),await s(1),await p(10,!0)};e(),c(window.innerWidth);let t=()=>{c(window.innerWidth)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[t,p]),a.slice(0,4*r),d)?(0,i.jsx)(l.Fragment,{children:(0,i.jsxs)("div",{className:"holdingsContainer",children:[(0,i.jsx)("h4",{children:"Holdings"}),(0,i.jsx)("div",{className:"mt-4 spinner-wrapper",children:(0,i.jsx)("div",{className:"spinner",children:(0,i.jsx)("div",{})})})]})}):(0,i.jsx)(l.Fragment,{children:(0,i.jsx)("div",{className:"holdingsContainer",children:(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,i.jsxs)("div",{className:"col-span-2 md:col-span-1",children:[(0,i.jsx)("h4",{children:"Holdings"}),a[0]&&(0,i.jsxs)("h4",{className:"holdingsTotal",children:[(0,i.jsx)("span",{className:"holdingsSymbol",children:"$"}),(0,i.jsx)("span",{className:"holdingsValue",children:tG(a.reduce((e,t)=>e+t.balanceUSD,0),2)}),(0,i.jsx)("span",{className:"holdingsCurrency",children:"USD"})]})]}),(0,i.jsx)("div",{className:"col-span-2 md:col-span-1",children:a.map((e,t)=>(0,i.jsx)(tq,{name:e.name,logo:e.logo,symbol:e.symbol,balance:e.balance,network:e.network,balanceUSD:e.balanceUSD},t))})]})})})},tX=e=>"opt"===e?"optimistic.":"",tY=[{name:"Minted a token",icon:en.Kvs,className:"text-success"},{name:"Burned a token",icon:en.tJi,className:"text-danger"},{name:"Sent",icon:en.TB7,className:"text-warning"},{name:"Received",icon:en.XhT,className:"text-success"},{name:"Executed smart contract",icon:en.$_b,className:"text-info"}],tQ=e=>{let t=tY[e-1];return t?t.icon:null},t$=e=>{let t=tY[e-1];return t?t.name:null},t1=e=>"eth"===e?"Ethereum":"opt"===e?"Optimism":e,t0=e=>3===e?"linkTo":4===e?"linkFrom":"linkHash",t2=(e,t,a,n)=>3===e?"address/".concat(t):4===e?"address/".concat(a):"tx/".concat(n),t3=e=>{var t;let{name:a,value:n,network:r,category:s,logo:l,from:o,to:c,hash:d,walletId:u,valueUSD:m,symbol:h,description:f}=e,p="bg";(null==o?void 0:o.toLowerCase())===(null==u?void 0:u.toLowerCase())&&(null==c?void 0:c.toLowerCase())===(null==u?void 0:u.toLowerCase())?p="gt":o&&(null==o?void 0:o.toLowerCase())===(null==u?void 0:u.toLowerCase())?p="-":c&&(null==c?void 0:c.toLowerCase())===(null==u?void 0:u.toLowerCase())&&(p="+");let x=t1(r),C=tQ(s),g=t$(s),v=t0(s),w=tX(r),j=t2(s,c,o,d),b="https://".concat(w,"etherscan.io/").concat(j);return(0,i.jsxs)("div",{className:"recentActivityItem",children:[(0,i.jsxs)("div",{className:"activityTitle",children:[(0,i.jsx)("div",{className:"activitiesIcon",children:C&&(0,i.jsx)(C,{size:"32",className:null===(t=tY[s-1])||void 0===t?void 0:t.className})}),(0,i.jsx)("div",{className:"activityName",children:(0,i.jsx)(e2.default,{target:"_blank",href:"https://".concat(w,"etherscan.io/tx/").concat(d),children:g})}),(0,i.jsxs)("div",{className:"activitydetails",children:[3===s&&"to ",4===s&&"from ",(0,i.jsx)(e2.default,{target:"_blank",className:v,href:b,children:f})]})]}),(0,i.jsxs)("div",{className:"activityValues",children:[n&&(0,i.jsxs)("div",{className:"activityAmount",children:[(0,i.jsx)("div",{className:"activityAmountTitle",children:null!==m&&(0,i.jsxs)(i.Fragment,{children:[p," ",tG(m,2)," USD"]})}),(0,i.jsxs)("div",{className:"activityAmountSubtitle",children:[tG(n,4)," ",h]})]}),l&&n?(0,i.jsxs)("div",{className:"activitiesIcon",children:[(0,i.jsx)("div",{title:x,className:"network-".concat(r)}),(0,i.jsx)(e0.default,{src:l,className:"activityImg",width:"24",height:"24",alt:h||"token"})]}):(0,i.jsx)("div",{className:"activityImage",children:(0,i.jsx)(e0.default,{src:"/assets/svg/".concat(r.replace("opt","optimism"),".svg"),className:"activityImg",width:"24",height:"24",alt:r.replace("opt","optimism")})})]})]})};a(59032);let t4=e=>{let{options:t,value:a,onChange:n,disabled:r,uniqueId:s="toggle1"}=e,[o,c]=(0,l.useState)(a||t[0].name),d=e=>{let t=e.target.value;c(t),n&&n(t)};return(0,l.useEffect)(()=>{let e=new AbortController;return function(){e.abort()}},[]),(0,i.jsx)("div",{className:"custom-toggle",children:t.map(e=>(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)("input",{type:"radio",id:"".concat(s,"-").concat(e.name),name:"custom-toggle-".concat(s,"-pricing"),value:e.name,onChange:d,checked:o===e.name,disabled:r}),(0,i.jsx)("label",{className:"icp-button--small text-white",htmlFor:"".concat(s,"-").concat(e.name),style:e.image?{paddingLeft:30,backgroundImage:"url(".concat(e.image,")")}:{},children:e.name})]},e.name))})};a(4896);let t6=e=>{let{walletId:t,domain:a}=e,[n,r]=(0,l.useState)({eth:[],opt:[]}),[s,o]=(0,l.useState)({eth:1,opt:1}),[c,d]=(0,l.useState)("opt"),[u,m]=(0,l.useState)(1e3),[h,f]=(0,l.useState)(!0),p=(0,l.useRef)(!1),x=(0,l.useCallback)(async()=>{if(!p.current){p.current=!0;try{let e=(await b.default.get("/api/activities?domain=".concat(a))).data;r(e)}catch(e){r({eth:[],opt:[]})}finally{f(!1),p.current=!1}}},[a]);(0,l.useEffect)(()=>{let e=async()=>{if(p.current){setTimeout(e,1e3);return}f(!0),r({eth:[],opt:[]}),o({eth:1,opt:1}),await x()};e(),m(window.innerWidth);let t=()=>{m(window.innerWidth)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[a,x]);let C=n[c].slice(0,20*s[c]);return h?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"activityContainer",children:[(0,i.jsx)("h4",{children:"Recent Activity"}),(0,i.jsx)("div",{className:"mt-4 spinner-wrapper",children:(0,i.jsx)("div",{className:"spinner",children:(0,i.jsx)("div",{})})})]})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"activityContainer",children:[(0,i.jsxs)("div",{className:"grid grid-cols-1",children:[(0,i.jsx)("h4",{children:"Recent Activity"}),(0,i.jsx)("div",{className:"my-4",children:(0,i.jsx)(t4,{options:[{name:"Optimism",image:"/assets/svg/optimism.svg"},{name:"Ethereum",image:"/assets/svg/ether.svg"}],value:"eth"===c?"Ethereum":"Optimism",onChange:e=>{d("Ethereum"===e?"eth":"opt")}})}),0===n[c].length&&(0,i.jsxs)("div",{className:"mt-5 text-left",children:["No recent activity on ","eth"===c?"Ethereum":"Optimism"]}),C.map((e,a)=>(0,i.jsx)(t3,{name:e.name,category:e.category,logo:e.logo,symbol:e.symbol,value:e.value,network:e.network,from:e.from,to:e.to,hash:e.hash,description:e.description,walletId:t,valueUSD:e.valueUSD},a))]}),n[c].length>20&&C.length<n[c].length&&(0,i.jsx)("button",{className:"showMore",onClick:()=>{o(e=>({...e,[c]:e[c]+1}))},children:"Show more"}),"eth"===c&&n[c].length>0&&C.length===n[c].length&&(0,i.jsxs)("div",{className:"mt-5 text-right",children:["To view more transactions visit"," ",(0,i.jsx)("a",{href:"https://".concat(tX(c),"etherscan.io/address/").concat(t),target:"_blank",rel:"noreferrer",className:"underline",children:"Etherscan"})]}),"opt"===c&&n[c].length>0&&C.length===n[c].length&&(0,i.jsxs)("div",{className:"mt-5 text-right",children:["To view more transactions visit"," ",(0,i.jsx)("a",{href:"https://".concat(tX(c),"etherscan.io/address/").concat(t),target:"_blank",className:"underline",rel:"noreferrer",children:"Optimistic Etherscan"})]}),n[c].length>0&&(0,i.jsx)("div",{className:"mt-5 text-left",children:"Disclaimer: The USD equivalent value is reflective of today’s conversion rate and actual value of each transaction may be different depending on the conversion rate at the time of transaction"})]})})};a(68719),a(68571),a(85709),a(92876),a(13341);var t5={src:"/_next/static/media/avatar.8e1cd1a5.png",height:259,width:228,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAA6klEQVR42mMAAzUGppNih9v2C+z6dkHyVNv/vP9MDCCwlmdO0DaJBVdnM8z8X8VQ838Nw6r/0wUnX2UQZwhi2Cnf+b+XofQ/gyrDnwA/8X9O3gx/GBgY/veypv5nOKoR+EvDTvzvkdXr/99Ysvb/haVr/2+fMuvvQ+f0XwzHNY1+T8pM/Pt837r/9+ZM+n9nxeL/1xfM/vs5Nuk3w6Vso//drgz/l06s+7NuQu2/qTUFf+5Oyf//ukjlP8PuKlG/bBf+SwwMDP9bwpz/l/q7/J8YynDpfKeSHwMMhDuaNurISX4yV5dthIkBAAVwaSk6Tt2ZAAAAAElFTkSuQmCC",blurWidth:7,blurHeight:8};let t8=e=>{let{theme:t="light",redirect:a,embeddedMode:n=!1,buyDomainSuggestion:r}=e;return(0,i.jsx)("div",{className:"notFoundWrapper theme-".concat(t),children:(0,i.jsxs)("div",{className:"notFound",children:[(0,i.jsx)(e0.default,{width:228,height:261,alt:"page not found",className:"mx-auto mb-5",src:t5}),(0,i.jsx)(ey,{level:"h4",children:r?"Exciting news! ".concat(r," could be yours!"):"404 Error: Page not found. Check the link and try again!"}),(0,i.jsxs)("div",{className:"flex flex-col justify-center md:flex-row",children:[!r&&(0,i.jsx)(e2.default,{className:"mx-3","data-testid":"go-to-home-page",target:n?"_blank":"",href:"".concat(a||"/"),children:(0,i.jsxs)(d,{variant:"stroke",className:"mx-auto text-white mt-5 flex justify-between max-w-[260px]",children:[(0,i.jsx)(en.OTJ,{className:"mr-[10px]"}),(0,i.jsx)("span",{children:"Go to Home Page"})]})}),r&&(0,i.jsx)(e2.default,{className:"mx-3",target:"_blank",href:"".concat(a,"/search?domain=").concat(null==r?void 0:r.split(".")[0]),children:(0,i.jsxs)(d,{variant:"stroke",className:"mx-auto text-white mt-5 flex justify-between max-w-[260px]",children:[(0,i.jsx)(en.OTJ,{className:"mr-[10px]"}),(0,i.jsx)("span",{children:"Buy Domain"})]})}),(0,i.jsx)(e2.default,{className:"mx-3",target:"_blank","data-testid":"follow-on-x",href:"https://twitter.com/boxdomains",children:(0,i.jsxs)(d,{className:"mx-auto mt-5 flex justify-between max-w-[260px]",children:[(0,i.jsx)("span",{children:"Follow on X"}),(0,i.jsx)(en.Qwf,{className:"ml-[10px]"})]})})]})]})})};a(18694),a(10350);var t7=a(58432),t9=a(39043),ae=a(52531),at=a(38016);let aa={init:{label:"ready",value:"init"},start:{label:"waiting for wallet",value:"start"},processing:{label:"processing",value:"processing"},complete:{label:"transaction success",value:"complete"}},an=e=>{let{isOpen:t,domain:a,handleCancel:n,handleComplete:r}=e,[s,o]=(0,l.useState)("Set Primary ENS Name"),[m,h]=(0,l.useState)(aa.init.label),[p,x]=(0,l.useState)(aa.init.value),[g,v]=(0,l.useState)(null),[w,j]=(0,l.useState)(!1),[b,y]=(0,l.useState)(null),{reload:N,isPrimary:S}=R(),{chain:L}=(0,f.m)(),{switchChain:_}=(0,at.o)();(0,l.useEffect)(()=>{o(S?"Congrats":"Set ENS Primary Name")},[S]);let A=()=>{x(aa.init.value),h(aa.init.label),j(!1),v(null),y(null)},I=(0,l.useCallback)(async()=>{j(!0);try{y(null),x(aa.start.value),h(aa.start.label);let{request:e}=await (0,t7.a)(eR,{chainId:1,...k,functionName:"setName",args:[a]}),t=await (0,t9.n)(eR,e);v(t),x(aa.processing.value),h(aa.processing.label),await (0,ae.e)(eR,{hash:t}),x(aa.complete.value),h(aa.complete.label),setTimeout(()=>{N(),r(),A()},1e3)}catch(e){(0,c.H)({msg:e.message}),j(!1),v(null),y(S?"Failed to Update Primary ENS Name":"Failed to Set Primary ENS Name")}},[a,r,N,S]),M=(0,l.useMemo)(()=>(null==L?void 0:L.id)!==1?(0,i.jsx)(d,{onClick:()=>_({chainId:C.eth_mainnet}),disabled:w,className:"!text-primary !bg-white",children:w?(0,i.jsxs)(i.Fragment,{children:["Waiting for wallet ",(0,i.jsx)(en.j_j,{className:"ml-[10px]"})]}):(0,i.jsxs)(i.Fragment,{children:["Switch Network ",(0,i.jsx)(en.hlg,{className:"ml-[10px]"})]})}):(0,i.jsx)(d,{onClick:I,disabled:w,className:"!text-primary !bg-white",children:w?(0,i.jsxs)(i.Fragment,{children:["Waiting for wallet ",(0,i.jsx)(en.j_j,{className:"ml-[10px]"})]}):(0,i.jsxs)(i.Fragment,{children:["Open wallet ",(0,i.jsx)(en.hlg,{className:"ml-[10px]"})]})}),[I,w,L]);return(0,i.jsxs)(e6(),{ariaHideApp:!1,isOpen:!0,contentLabel:"Make Domain Primary",className:"Modal ModalSetPrimary",overlayClassName:"Overlay",children:[(0,i.jsxs)("div",{className:"reversePopupWrapper max-h-[calc(100vh-96px)] overflow-y-scroll",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between p-8",children:[(0,i.jsx)(ey,{level:"h4",children:"Process Transaction"}),!g&&!w&&(0,i.jsx)(en.UI9,{size:"32",className:"cursor-pointer text-secondary-tint","data-testid":"transaction-modal-x-button",onClick:n})]}),(0,i.jsx)("div",{className:"px-8 mb-2",children:(0,i.jsx)(u,{className:"font-bold",children:"This transaction will switch the network to Ethereum Mainnet."})}),g?(0,i.jsx)("div",{className:"h-8"}):(0,i.jsx)(u,{className:"px-8 mb-8",children:"Confirm these details before signing with your wallet"}),(0,i.jsxs)("div",{className:"flex justify-between mx-8 pb-5 border-b-[1px] border-b-gray-90",children:[(0,i.jsx)(u,{children:"Domain name"}),(0,i.jsx)(u,{className:"font-bold",children:a})]}),(0,i.jsxs)("div",{className:"flex justify-between mx-8 py-5 border-b-[1px] border-b-gray-90",children:[(0,i.jsx)(u,{children:"Action"}),(0,i.jsx)(u,{className:"font-bold",children:s})]}),(0,i.jsxs)("div",{className:"flex justify-between mx-8 py-5 border-b-[1px] border-b-gray-90",children:[(0,i.jsx)(u,{children:"Operation"}),(0,i.jsx)(u,{className:"font-bold",children:"SET"})]}),!b&&(0,i.jsxs)("div",{className:"mx-8 transactionStatus",children:[(0,i.jsx)(ap,{className:"my-8",label:m,status:p}),g&&(0,i.jsx)("div",{className:"p-4 rounded bg-gray-90",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{width:"16",height:"16",rx:"8",fill:"white"}),(0,i.jsx)("path",{d:"M3.3253 7.60492C3.32531 7.51545 3.34297 7.42688 3.37725 7.34426C3.41152 7.26165 3.46175 7.18665 3.52505 7.12354C3.58836 7.06043 3.66347 7.01047 3.74609 6.97652C3.82872 6.94257 3.91722 6.92532 4.00653 6.92574L5.136 6.92943C5.31607 6.92943 5.48877 7.0011 5.61611 7.12866C5.74345 7.25623 5.81499 7.42925 5.81499 7.60966V11.8881C5.94214 11.8503 6.10545 11.81 6.28414 11.7679C6.40826 11.7387 6.51888 11.6683 6.59806 11.5682C6.67723 11.468 6.7203 11.3441 6.72028 11.2163V5.90908C6.72028 5.72865 6.79181 5.55561 6.91914 5.42802C7.04647 5.30044 7.21918 5.22875 7.39927 5.22871H8.53098C8.71106 5.22875 8.88377 5.30044 9.0111 5.42802C9.13843 5.55561 9.20998 5.72865 9.20998 5.90908V10.8347C9.20998 10.8347 9.49333 10.7198 9.76932 10.6031C9.87184 10.5597 9.95933 10.487 10.0209 10.3941C10.0824 10.3011 10.1153 10.1921 10.1154 10.0806V4.20849C10.1154 4.0281 10.1869 3.8551 10.3142 3.72753C10.4415 3.59997 10.6142 3.5283 10.7942 3.52826H11.926C12.106 3.52826 12.2787 3.59992 12.4061 3.72749C12.5334 3.85506 12.605 4.02808 12.605 4.20849V9.04403C13.5861 8.33165 14.5804 7.47491 15.3695 6.44467C15.484 6.29514 15.5597 6.11953 15.59 5.93355C15.6202 5.74757 15.604 5.55696 15.5429 5.37875C15.1776 4.32596 14.5971 3.36115 13.8383 2.54605C13.0795 1.73097 12.1592 1.08354 11.1363 0.64522C10.1134 0.206898 9.01047 -0.0126709 7.89802 0.000564682C6.78556 0.0138001 5.68812 0.259549 4.67592 0.722084C3.66372 1.18462 2.75904 1.85375 2.01978 2.68667C1.28052 3.51958 0.722968 4.49793 0.382798 5.55912C0.0426289 6.62029 -0.0726658 7.74093 0.0442914 8.84931C0.161249 9.95769 0.507884 11.0294 1.06201 11.9959C1.15854 12.1626 1.30056 12.2983 1.47137 12.3869C1.64219 12.4756 1.83471 12.5136 2.02634 12.4964C2.2404 12.4776 2.50692 12.4509 2.82381 12.4136C2.96175 12.3979 3.08911 12.3319 3.18161 12.2282C3.27412 12.1245 3.32531 11.9903 3.32543 11.8512L3.3253 7.60492Z",fill:"#21325B"}),(0,i.jsx)("path",{d:"M3.30065 14.4672C4.49353 15.3366 5.90326 15.8585 7.37385 15.9751C8.84445 16.0915 10.3186 15.7983 11.6331 15.1276C12.9476 14.4568 14.0512 13.4349 14.822 12.1748C15.5927 10.9146 16.0004 9.46544 16 7.98756C16 7.80314 15.9915 7.6207 15.9792 7.43932C13.0577 11.8045 7.6635 13.8452 3.3009 14.4666",fill:"#979695"})]}),(0,i.jsx)(u,{variant:"body2",className:"ml-4 text-secondary",children:"Transaction Details"})]}),(0,i.jsx)("div",{children:(0,i.jsx)("a",{target:"_blank",href:"https://etherscan.io/tx/".concat(g),rel:"noreferrer",className:"inline-block",children:(0,i.jsxs)(u,{variant:"body2",className:"font-bold text-info text-ellipsis",children:["https://etherscan.io/",g.substring(0,4),"...",g.substring(g.length-4,g.length)]})})})]})})]}),b&&(0,i.jsxs)("div",{"data-testid":"transaction-modal-error",className:"flex items-center p-5 mx-8 mt-6 rounded-lg bg-danger-fill text-danger-shade",children:[(0,i.jsx)(en.ON4,{className:"text-danger-shade me-3"}),(0,i.jsx)(u,{className:"!font-normal text-sm",children:b})]})]}),(0,i.jsx)("div",{className:"flex justify-end mt-6 items-center bg-primary rounded-bl rounded-br h-[96px]",children:(0,i.jsxs)("div",{className:"flex mr-2 md:mr-6",children:[!g&&!w&&(0,i.jsx)(d,{onClick:n,variant:"stroke",className:"!text-white !border-white mr-1 md:mr-6",children:"Back"}),M]})})]})};a(75473),a(68571);var ar=a(50357),as=a(32133);a(94256);let ai=e=>{let{className:t,earnAlternativeDesign:a=!1,positionBottom:n,shareLink:r,onClose:s}=e,[o,c]=(0,l.useState)(!1),{isForwardRes:d}=R(),[m,h]=(0,tU.m9)(),f=(0,l.useRef)(null),p="Get your .box domain here: "+r;(0,l.useEffect)(()=>{f.current&&clearTimeout(f.current)},[]);let x=()=>{h(r),c(!0),f.current=setTimeout(()=>c(!1),3e3)};return(0,i.jsxs)("div",{"data-testid":"ReferralBoxOwnerComponent",className:"referral-box-owner-wrapper relative"+(a?" earn":"")+(t?" ".concat(t):"")+(n?" at-bottom-position":""),children:[d||a?(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(ey,{level:"h5",className:a?"text-black":"text-white",children:a?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("strong",{children:"Earn every time someone buys a .box domain from your link or profile"})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"font-bold",children:"Get paid $18"})," ",(0,i.jsx)("span",{className:"font-normal",children:"in USDC when your friends buy a"})," ",(0,i.jsx)("span",{className:"font-bold",children:".box"})]})}),(0,i.jsx)("a",{href:"".concat("https://my.box","/referral-agreement"),target:"_blank",title:"Learn more about the referral program",className:"hidden sm:inline",children:(0,i.jsx)(en.OUE,{color:a?"#525252":"#d4d4d4",size:"1.25rem"})})]}):null,(0,i.jsxs)("div",{className:"referral-box-owner",children:[(0,i.jsxs)("div",{className:"share-btns-container",children:[(0,i.jsx)(u,{variant:"body1",className:"info-text ".concat(a?"text-black":"text-white"),children:"Share your link to start earning —>"}),(0,i.jsxs)("div",{className:"btn-wrapper-parent",children:[(0,i.jsxs)("div",{className:"btn-wrapper","data-testid":"referral-email",children:[(0,i.jsx)("a",{target:"_blank",href:"mailto:?subject=Check out my Web3 profile&body=".concat(p),className:"share-btn",children:(0,i.jsx)(eX,{})}),(0,i.jsx)(u,{variant:"body2",className:"share-info-text ".concat(a?"text-neutral-700":"text-stone-50"),children:"Email"})]}),(0,i.jsxs)("div",{className:"btn-wrapper","data-testid":"referral-twitter",children:[(0,i.jsx)(ar.Z,{url:p,children:(0,i.jsx)(u,{className:"share-btn",children:(0,i.jsx)(eY,{})})}),(0,i.jsx)(u,{variant:"body2",className:"share-info-text ".concat(a?"text-black":"text-stone-50"),children:"Twitter"})]}),(0,i.jsxs)("div",{className:"btn-wrapper","data-testid":"referral-telegram",children:[(0,i.jsx)(as.Z,{url:p,children:(0,i.jsx)(u,{className:"share-btn",children:(0,i.jsx)(eQ,{})})}),(0,i.jsx)(u,{variant:"body2",className:"share-info-text ".concat(a?"text-black":"text-stone-50"),children:"Telegram"})]}),(0,i.jsxs)("div",{className:"btn-wrapper copy-btn",children:[(0,i.jsx)("button",{type:"button",onClick:x,className:"share-btn ".concat(o?"cursor-not-allowed":""),disabled:o,children:(0,i.jsx)(en.bdW,{size:16})}),(0,i.jsx)(u,{variant:"body2",className:"share-info-text ".concat(a?"text-black":"text-stone-50"," ").concat(o?"!text-stone-300 clicked":""),children:o?"Copied":"Copy"})]})]})]}),(0,i.jsxs)("div",{role:"button",className:"copy-btns-container ",onClick:x,children:[(0,i.jsx)("div",{className:"share-icon",children:(0,i.jsx)(e$,{})}),(0,i.jsx)(u,{variant:"body1",className:"text-black share-link",children:r}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(u,{variant:"body1","data-testid":"referral-copy",className:"copy-btn-link copy-icon"+(o?" !text-gray-65 clicked":" text-primary "),children:o?"Copied":"Copy link"}),(0,i.jsx)(u,{className:"copy-btn-link copy-icon",children:o?(0,i.jsx)(en.KBY,{className:"text-success",size:"24"}):(0,i.jsx)(en.nWu,{className:"text-gray-65",size:"24"})})]})]}),a?"":(0,i.jsx)(e1,{onClose:s,dataTestId:"referral-close",className:"btn-close-item !hidden !lg:flex"})]}),a?"":(0,i.jsx)(e1,{onClose:s,dataTestId:"referral-close",className:"btn-close-item !flex !lg:hidden !absolute top-6 right-5"})]})};a(39382);let al=e=>{let{onClose:t,className:a,positionBottom:n,onClaimYourBoxProfile:r}=e,{isMobile:s}=(0,tC.c)();return(0,i.jsx)("div",{className:"claim-your-box-profile-wrapper relative"+(n?" at-bottom-position":"")+(a?" ".concat(a):""),children:(0,i.jsxs)("div",{className:"claim-your-box-profile",children:[(0,i.jsxs)("div",{className:"flex justify-between w-full",children:[(0,i.jsx)(ey,{level:"h5",className:"w-full text-white lg:w-fit",children:"Get your decentralized identity on the blockchain"}),(0,i.jsx)(e1,{onClose:t})]}),(0,i.jsx)("div",{className:"referral-btn-wrapper",children:(0,i.jsxs)("button",{className:"claim-your-box-btn",type:"button",onClick:r,children:[(0,i.jsx)(en.TLB,{}),s?(0,i.jsx)("span",{children:"Get your own .box"}):(0,i.jsx)("span",{children:"Get your own .box profile"})]})})]})})},ao=e=>{let t,a,{domainName:n,referralCode:r,authenticated:s=!1,earnAlternativeDesign:l=!1,className:o="",positionBottom:c=!1,siteMode:d=!1,onClaimYourBoxProfile:u,onCloseBanner:m}=e;return d&&!s&&u?a={className:o,positionBottom:c,onClaimYourBoxProfile:u,onClose:m}:n&&r&&(t={className:o,earnAlternativeDesign:l,positionBottom:c,shareLink:"https://my.box"+(r?"?ref="+r:""),onClose:m}),(0,i.jsx)("div",{"data-testid":"ReferralComponentWrapperComponent",children:(0,i.jsxs)("div",{"data-testid":"ReferralComponentComponent",children:[a?(0,i.jsx)(al,{...a}):null,t?(0,i.jsx)(ai,{...t}):null]})})};a(74357),a(51880),a(52597);var ac=a(96554),ad=a.n(ac),au=a(71041),am=a.n(au);let{theme:ah}=ad()(am());a(33269);let af=e=>{let{isInitial:t=!1,isComplete:a=!1,className:n=""}=e,r="w-[".concat(30,"px] h-[").concat(30,"px] bg-white z-10");return a?t?(0,i.jsx)("div",{className:r,children:(0,i.jsx)(en.Ldl,{className:n,size:30})}):(0,i.jsx)("div",{className:r,children:(0,i.jsx)(en.gwl,{className:n,size:30})}):(0,i.jsx)("div",{className:r,children:(0,i.jsx)("svg",{width:30,height:30,viewBox:"0 0 ".concat(30," ").concat(30),fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:(0,i.jsx)("circle",{cx:15,cy:15,r:"12",fill:"white",stroke:"currentColor",strokeWidth:"2"})})})},ap=e=>{var t,a;let{className:n="",label:r="waiting for wallet",status:s="init",...l}=e,o=null==ah?void 0:null===(t=ah.colors)||void 0===t?void 0:t["gray-75"],c=null==ah?void 0:null===(a=ah.colors)||void 0===a?void 0:a.info;return(0,i.jsxs)("div",{className:n,...l,children:[(0,i.jsxs)("div",{className:"relative h-6",children:[(0,i.jsx)("div",{className:"progressSegment",style:{"--segment-color":o}}),(0,i.jsx)("div",{className:"progressSegment progressSegmentComplete",style:{"--segment-color":c,"--percentage":"complete"===s?"100%":"processing"===s?"50%":"0%"}}),(0,i.jsxs)("div",{className:"flex justify-between",children:[(0,i.jsx)(af,{className:"init"===s?"text-gray-75":"text-info",isInitial:!0,isComplete:"init"!==s}),(0,i.jsx)(af,{className:["processing","complete"].includes(s)?"text-info":"text-gray-75",isComplete:["processing","complete"].includes(s)}),(0,i.jsx)(af,{className:"complete"===s?"text-info":"text-gray-75",isComplete:"complete"===s})]})]}),(0,i.jsx)("div",{className:"mt-4 text-center",children:(0,i.jsx)(u,{className:"!text-xs uppercase "+("complete"===s?"text-info":"text-gray-75"),children:r})})]})};a(46019);let ax=e=>{let{className:t,buildNumber:a,googleCaptchaDisclaimer:n}=e;return(0,i.jsx)("footer",{className:"footer"+(t?" ".concat(t):""),children:(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{children:["\xa9 ",new Date().getFullYear()," My.box"]}),a&&(0,i.jsxs)("span",{children:["Build: ",a]}),n&&(0,i.jsxs)("span",{children:["This site is protected by reCAPTCHA and the"," ",(0,i.jsx)(e2.default,{href:"https://www.google.com/intl/en/policies/privacy/",target:"_blank",rel:"noopener noreferrer",children:"Google Privacy Policy"})," ","and"," ",(0,i.jsx)(e2.default,{href:"https://www.google.com/intl/en/policies/terms/",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","apply."]})]})})}},49665:function(e,t,a){"use strict";a.d(t,{c:function(){return c}});var n=a(7653),r=a(96554),s=a.n(r);let i=a(71041),l=s()(i),o=e=>+l.theme.screens[e].slice(0,l.theme.screens[e].indexOf("px")),c=()=>{let[e,t]=(0,n.useState)(""),[a,r]=(0,n.useState)(!0);return(0,n.useLayoutEffect)(()=>{function e(){let e=0;for(let a of Object.keys(l.theme.screens)){let n=o(a);if(n>e&&window.innerWidth>=n){switch(e=n,a){case"sm":case"md":default:r(!0);break;case"lg":case"xl":case"2xl":r(!1)}t(a)}}}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),{currentBreakpoint:e,isMobile:a}}},71041:function(e){"use strict";e.exports={darkMode:"class",content:["./src/components/**/*.{ts,tsx,mdx}","./src/components/**/*.stories.{tsx,mdx}"],safelist:["dark","!dark",{pattern:/^border-/},{pattern:/^bg-/},{pattern:/^text-/},{pattern:/^font-/}],theme:{extend:{screens:{"2xl":"1680px"},colors:{background:"var(--color-background, #404040)","background-gradient":"var(--color-background-gradient, linear-gradient(#1a1a1a, #404040))","foreground-primary":"var(--color-foreground-primary, #1a1a1a)","foreground-secondary":"var(--color-foreground-secondary, #212121)","foreground-tertiary":"var(--color-foreground-tertiary, #2c2c2c)",border:"var(--color-border, #404040)","body-primary":"var(--color-body-primary, #f8fafc)","body-secondary":"var(--color-body-secondary, #e1e8f0)","body-tertiary":"var(--color-body-tertiary, #b4b8bd)",highlight:"var(--color-highlight, #426bf0)","highlight-hover":"var(--color-highlight-hover, #2650D9)","highlight-press":"var(--color-highlight-press, #0c4a6e)","brand-focus-ring":"var(--color-brand-focus-ring, #0369a1)","alert-info":"var(--color-alert-info, #426bf0)","alert-success":"var(--color-alert-success, #62d59d)","alert-warning":"var(--color-alert-warning, #f7bf66)","alert-danger":"var(--color-alert-danger, #f76262)",primary:"var(--color-primary, #1A1A1A)","primary-tint":"var(--color-primary-tint, #404040)","primary-shade":"var(--color-primary-shade, #000000)","primary-contrast":"var(--color-primary-contrast, #ffffff)",secondary:"var(--color-secondary, #404040)","secondary-tint":"var(--color-secondary-tint, #676767)","secondary-shade":"var(--color-secondary-shade, #2b2b2b)","secondary-contrast":"var(--color-secondary-contrast, #ffffff)",tertiary:"var(--color-tertiary, #808080)",success:"var(--color-success, #62d59d)","success-tint":"var(--color-success-tint, #8ae0b6 )","success-shade":"var(--color-success-shade, #3aca84)","success-contrast":"var(--color-success-contrast, #1a1a1a)","success-fill":"var(--color-success-fill, #c3efd9)",info:"var(--color-info, #426bf0)","info-tint":"var(--color-info-tint, #7190f4 )","info-shade":"var(--color-info-shade, #2650d9)","info-contrast":"var(--color-info-contrast, #1a1a1a)","info-fill":"var(--color-info-fill, #d5e4fb)",warning:"var(--color-warning, #f7bf66)","warning-tint":"var(--color-warning-tint, #ffd38f)","warning-shade":"var(--color-warning-shade, #f4a934)","warning-contrast":"var(--color-warning-contrast, #1a1a1a)","warning-fill":"var(--color-warning-fill, #fbe2bb)",danger:"var(--color-danger, #f76262)","danger-tint":"var(--color-danger-tint, #ff8a8a)","danger-shade":"var(--color-danger-shade, #e93a3a)","danger-contrast":"var(--color-danger-contrast, #1a1a1a)","danger-fill":"var(--color-danger-fill, #fcbbbb)",white:"var(--color-white, #ffffff)",black:"var(--color-black, #1a1a1a)","background-fill":"var(--color-background-fill, #fafafa)",disabled:"#cccccc","disabled-menu":"#b3b3b3","disabled-contrast":"#676767","disabled-label":"#757575","gray-60":"#999999","gray-65":"#a6a6a6","gray-70":"#b3b3b3","gray-75":"#bfbfbf","gray-80":"#cccccc","gray-85":"#d9d9d9","gray-90":"#e6e6e6","gray-95":"#f2f2f2","gray-98":"#fafafa"},fontFamily:{primary:["var(--font-primary, 'Inter')"],inter:["'Inter'","sans-serif"]}}},plugins:[]}},87386:function(e,t,a){"use strict";a.d(t,{A2:function(){return J},AY:function(){return M},Mc:function(){return E},W8:function(){return D},eJ:function(){return Z},b4:function(){return n},AQ:function(){return U},lJ:function(){return X},aS:function(){return G},py:function(){return Y},sH:function(){return R},H:function(){return F},PN:function(){return O},OU:function(){return et},ic:function(){return W},tx:function(){return Q}});var n={};a.r(n),a.d(n,{gaAbandonFlow:function(){return N},gaAddUserId:function(){return d},gaGetCurrentOrderId:function(){return p},gaGetCurrentTime:function(){return s},gaGetFlowByType:function(){return b},gaGetPageCountLoad:function(){return j},gaGetPurchaseHistory:function(){return g},gaGetPurchaseHistorySet:function(){return m},gaGetSessionId:function(){return x},gaGetUserId:function(){return C},gaGetUserStatus:function(){return v},gaRegisterFlow:function(){return y},gaRemoveUserId:function(){return u},gaSetOrderId:function(){return f},gaSetPurchaseHistory:function(){return h}}),new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}),a(46385).Buffer;var r=a(80535);let s=()=>new Date().getTime(),i=e=>{localStorage.setItem("analytics-storage",JSON.stringify({...e,storageLastAccessed:s()}))},l=e=>s()-e<=36e5,o=()=>{let e={sessionId:"session-"+s(),storageLastAccessed:s(),purchaseHistorySet:!1,pageCount:{pageLoad:0,pageSearch:0,countClickElementContent:0,countClickElementHeader:0,countClickElementSiteHeader:0,countClickElementMobile:0,accountSignup:0,purchase:0,domClick:0,userAuthentication:0,flowStart:0,flowComplete:0,flowAbandon:0,siteError:0,siteWarning:0}};return i(e),e},c=()=>{let e=localStorage.getItem("analytics-storage");if(null===e)return o();try{let t=JSON.parse(e);if(!Object.hasOwnProperty.call(t,"sessionId"))return o();{let{storageLastAccessed:e}=t;if(l(Number(e)))return i(t),t;return o()}}catch(e){return console.error("Problem accessing analytics storage, re-initiating again."),o()}},d=e=>{i({...c(),userId:e})},u=()=>{i({...c(),userId:void 0,purchaseHistory:void 0,purchaseHistorySet:!1})},m=()=>c().purchaseHistorySet,h=e=>{i({...c(),purchaseHistory:String(e),purchaseHistorySet:!0})},f=e=>{let t=c(),a=t.sessionId,n="order-"+e+"-"+s()+"-"+a;return i({...t,currentOrderId:n}),n},p=e=>{let t=c();return(t.sessionId,t.currentOrderId)?t.currentOrderId:f(e)},x=()=>c().sessionId,C=()=>c().userId,g=()=>c().purchaseHistory,v=()=>C()?"authenticated":"unauthenticated",w=(e,t)=>{let a=c();i({...a,pageCount:{...a.pageCount,[e]:t}})},j=e=>{let t=c();if(Object.hasOwnProperty.call(t,"pageCount")||(t={...t,pageCount:{pageLoad:0,pageSearch:0,countClickElementContent:0,countClickElementHeader:0,countClickElementSiteHeader:0,countClickElementMobile:0,accountSignup:0,purchase:0,domClick:0,userAuthentication:0,flowStart:0,flowComplete:0,flowAbandon:0,siteError:0,siteWarning:0}}),Object.hasOwnProperty.call(t.pageCount,e)){let a=Number(t.pageCount[e])+1;return w(e,a),a}return w(e,1),1},b=e=>{let t=c();if(Object.hasOwnProperty.call(t,"currentFlows")&&t.currentFlows)return t.currentFlows[e]},y=(e,t)=>{let a=c();if(Object.hasOwnProperty.call(a,"currentFlows")&&a.currentFlows)i({...a,currentFlows:{...a.currentFlows,[e]:t}});else{let n={...a};n.currentFlows=void 0,n.currentFlows={[e]:t},i(n)}},N=e=>{let t=c();if(b(e)&&Object.hasOwnProperty.call(t,"currentFlows")&&t.currentFlows){let a={};Object.keys(t.currentFlows).forEach(n=>{if(n!==e){let e=(t.currentFlows||{})[n];e&&(a[n]=e)}}),i({...t,currentFlows:Object.keys(a).length>0?a:void 0})}},S=(e,t)=>"my-domain"===e&&"dns"===t?"records":"null",k=e=>{let t=window.location.pathname;if("my-domain"===e&&-1!==t.indexOf("/dns"))return"dns";if("my-domain"===e&&-1!==t.indexOf("/whois"))return"whois";if("account-settings"===e){var a,n;let e=null===(n=document.querySelector(".account-settings-nav button.tab-active"))||void 0===n?void 0:null===(a=n.textContent)||void 0===a?void 0:a.toLowerCase();if(e&&e.indexOf("overview"))return"overview";if(e&&e.indexOf("whois"))return"whois-information"}return"null"},L=()=>{let e=window.location.pathname;if("/"===e)return"home";if("/search"===e)return"search-result-page";if("/terms-of-use"===e)return"terms-of-service";if("/privacy-policy"===e)return"privacy-policy";if("/domains"===e)return"domains-list-page";if(-1!==e.indexOf("/manage"))return"my-domain";if(-1!==e.indexOf("/buy/complete"))return"purchase-success";else if(-1!==e.indexOf("/buy/configure"))return"purchase-configure";else if("/account-settings"===e)return"account-settings";return"null"},_=()=>{let e=L(),t=k(e),a=S(e,t);return{pageName:e,siteSection:t,pageCategory:a,pageTitle:document.title,pageURL:window.location.href,language:"en"}},A=()=>({sessionId:x(),authenticationBlock:{status:v(),location:L(),userId:C()||"NA"}}),I=()=>{let e=C();return e?{userId:e,purchaseHistory:g()||"false"}:null},M=e=>{let t=s(),a=_(),n=I(),i=A(),{pageName:l}=a,o=j("accountSignup"),c={event:"custom_account_signup",eventModel:{eventDetail:{type:"account_signup",event_id:t,page:l,language:"en",url:window.location.href,count_account_signup:o},authenticationBlock:{userId:e,detailInfo:{accountId:e,accountType:"WalletAddress",signupStatus:e?"authenticated":"unauthenticated",attemptLocation:l},count_click_element:1}},userModel:n,sessionModel:i};(0,r.gtmSendEvent)(c)},E=e=>{let t=s(),a=_(),n=I(),i=A(),{pageName:l}=a,o=j("flowAbandon"),c=b(e);if(c){N(c.flowType);let e={event:"custom_flow_abandon",eventModel:{eventDetail:{type:"flow_abandon",event_id:t,page:l,language:"en",url:window.location.href,count_flow_abandon:o},stepDetail:c},userModel:n,sessionModel:i};(0,r.gtmSendEvent)(e)}},T=e=>{let{pageName:t}=e;if("purchase-success"===t||"purchase-configure"===t){var a,n,r,s,i,l,o,c,d,u,m,h,f;let e=null===(r=document)||void 0===r?void 0:null===(n=r.querySelector('[data-testid="order-domain"]'))||void 0===n?void 0:null===(a=n.textContent)||void 0===a?void 0:a.toLowerCase(),x=null===(l=document)||void 0===l?void 0:null===(i=l.querySelector('[data-testid="payment-method"]'))||void 0===i?void 0:null===(s=i.querySelector(".bg-primary"))||void 0===s?void 0:s.textContent;null===(c=document)||void 0===c||null===(o=c.querySelector('[data-testid="txHash"]'))||void 0===o||o.textContent;let C=x&&-1!==x.indexOf("USDC")?"USDC":null;C=x&&-1!==x.indexOf("Ether")?"ETH":C;let g=((null===(m=document)||void 0===m?void 0:null===(u=m.querySelector('[data-testid="order-yearRegistration"]'))||void 0===u?void 0:null===(d=u.textContent)||void 0===d?void 0:d.toLowerCase())||"1").replace("year","").replace("registration","").replace(" ",""),v=((null===(f=document)||void 0===f?void 0:null===(h=f.querySelector('[data-testid="order-estimatedPrice"]'))||void 0===h?void 0:h.textContent)||"1").replace("$","").replace("USD","");if(e){let a=p(e),n=new URLSearchParams(window.location.search).get("error")?"success-with-issue":"success";return{orderId:a,status:"purchase-success"===t?n:t,domainName:e,paymentMethod:"purchase-success"===t?null:C||"USDC",duration:Number(g||1),subTotal:1===Number(v)?null:Number(v),taxes:0,currency:"purchase-success"===t?null:C||"USDC",total:1===Number(v)?null:Number(v)}}}return null},H=e=>{let{flowType:t,stepName:a,stepNumber:n,status:r}=e,s=b(t);if(n>1&&"purchase-flow"!==t&&!s)return;let i=0,l=null,o=null,c=null,d=null,u=L(),m=u;if("purchase-flow"===t&&("purchase-configure"===u||"purchase-success"===u)){let e=T({pageName:u});e&&(i=e.duration,l=e.subTotal,o=e.total,c=e.paymentMethod,m=e.status,d=e.domainName)}return{stepName:a,stepNumber:n.toString(),flowType:t,domainName:d,paymentMethod:c,duration:i,status:r||m,subTotal:l,taxes:0,currency:"USD",total:o}},P={"account-sign-up":"account-registered","purchase-flow":"domain-purchased","WHOIS-form-sign-up":"whois-complete"},B=e=>{let t=P[e],a=0,n=null,r=null,s=null,i=null,l=L(),o=l;if("purchase-flow"===e&&("purchase-configure"===l||"purchase-success"===l)){let e=T({pageName:l});e&&(a=e.duration,n=e.subTotal,r=e.total,s=e.paymentMethod,o=e.status,i=e.domainName)}return{stepName:t,stepNumber:"",flowType:e,domainName:i,paymentMethod:s,duration:a,status:o,subTotal:n,taxes:0,currency:"USD",total:r}},D=e=>{let t=s(),a=_(),n=I(),i=A(),{pageName:l}=a,o=j("flowComplete"),c=B(e);N(e);let d={event:"custom_flow_complete",eventModel:{eventDetail:{type:"flow_complete",event_id:t,page:l,language:"en",url:window.location.href,count_flow_complete:o},stepDetail:c},userModel:n,sessionModel:i};(0,r.gtmSendEvent)(d)},Z=e=>{let t=s(),a=_(),n=I(),i=A(),{pageName:l}=a,o=j("flowStart"),c=H(e);if(c){y(c.flowType,c);let e={event:"custom_flow_start",eventModel:{eventDetail:{type:"flow_start",event_id:t,page:l,language:"en",url:window.location.href,count_flow_start:o},stepDetail:c},userModel:n,sessionModel:i};(0,r.gtmSendEvent)(e)}},V=e=>{let{pageName:t}=e;if("search-result-page"===t){var a;let e=new URLSearchParams(window.location.search).get("domain"),n=null===(a=document.querySelectorAll('[data-testid="search-result-item"]'))||void 0===a?void 0:a.length,r=0;if(document.querySelectorAll('[data-testid="search-result-item"]').forEach(e=>{var t,a;(null==e?void 0:null===(a=e.querySelector('[data-testid="search-result-status"]'))||void 0===a?void 0:null===(t=a.textContent)||void 0===t?void 0:t.toLowerCase())==="available"&&r++}),e)return{userString:e,location:t,totalResults:String(n),type:0===r?"null search":"successful search",token:localStorage.getItem("token3DNS")||"NA"}}return null},U=(e,t)=>{let a=s(),n=_(),i=V(n),l=I(),o=A(),{pageName:c}=n,d=j("pageSearch"),u={elementType:"input",elementLocation:e,elementValue:t,elementUrl:window.location.href,slotLocation:e,count_click_element:1},m={event:"custom_site_search",eventModel:{eventDetail:{type:"site_search",event_id:a,page:c,language:"en",url:window.location.href,count_search_performed:d},elementClickBlock:u,search:i||{location:c,token:localStorage.getItem("token3DNS")||"NA",totalResults:"NA",type:"null search",userString:t}},userModel:l,sessionModel:o};(0,r.gtmSendEvent)(m)};var z=a(8232);let O=e=>{let{msg:t="",data:a}=e;console.info(JSON.stringify({type:"info",message:t,data:a}))},F=e=>{let{msg:t="",data:a}=e;console.error(JSON.stringify({type:"error",message:t,data:a}))},R=e=>{let{type:t="info",msg:a="",data:n,prefix:r,methodName:s}=e;r&&s?a="".concat(r,".").concat(s,": ").concat(a):r?a="".concat(r,": ").concat(a):s&&(a="".concat(s,": ").concat(a));try{"debug"===t?z.log.debug(a,n):"error"===t?z.log.error(a,n):"warning"===t?z.log.warn(a,n):z.log.info(a,n)}catch(e){console.error("Error logging to axiom")}};function W(e,t,a){let n=new Date().getTime();localStorage.setItem(e,JSON.stringify({data:t,expiryTime:n+6e4*a}))}function G(e){let t=localStorage.getItem(e);if(t){let{data:a,expiryTime:n}=JSON.parse(t);if(new Date().getTime()<n)return a;localStorage.removeItem(e)}return null}var K=a(68392);let q="SPINDL SDK: ",J=async()=>{let e="e982ba08-2477-41cf-afbb-5f2322770146";e?(K.ZP.configure({sdkKey:e,debugMode:!1}),K.ZP.enableAutoPageViews()):F({msg:q+"NEXT_PUBLIC_SPINDL_SDK_KEY empty"})},X=async(e,t)=>{try{return(0,K.kf)(e)}catch(e){F({msg:q+"generateReferralCode",data:e})}},Y=async e=>{try{return(0,K.RZ)(e)}catch(e){F({msg:q+"getReferralCode",data:e})}},Q=e=>{try{return(0,K.ir)(e)}catch(e){return F({msg:q+"validateReferralCode",data:e}),!1}};a(91070),a(98443),a(89639);var $=a(80492);let ee="https://eth-mainnet.g.alchemy.com/v2/".concat("ejDKplGGHZLr0pWgXm5flw_0l-QzyGAB"),et=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return null;let t=new $.r6(ee);return await t.lookupAddress(e)};a(46385).Buffer},80535:function(e,t,a){"use strict";a.r(t),a.d(t,{gtmSendEvent:function(){return s}});var n=a(23067),r=a(68571);let s=e=>{if(r.env.NEXT_PUBLIC_GTM_ID)try{(0,n.sendGTMEvent)(e)}catch(e){console.error("Error sending GTM event")}}},87177:function(){},64910:function(){},6683:function(){},59032:function(){},46704:function(){},18694:function(){},13341:function(){},74870:function(){},99093:function(){},68719:function(){},67915:function(){},10350:function(){},33269:function(){},83559:function(){},74357:function(){},46719:function(){},21665:function(){},49368:function(){},46019:function(){},90233:function(){},70204:function(){},64557:function(){},51880:function(){},38494:function(){},75473:function(){},83480:function(){},71945:function(){},4896:function(){},39382:function(){},94256:function(){},56410:function(){},40381:function(){},75755:function(){},85709:function(){},27979:function(){},54800:function(){},52597:function(){},86034:function(e){e.exports={"currency-block":"CurrencyBlock_currency-block__nwjF8","currency-text":"CurrencyBlock_currency-text__vYaTg","currency-image-number":"CurrencyBlock_currency-image-number__sHp3k","currency-number":"CurrencyBlock_currency-number__W8ZXA",month:"CurrencyBlock_month__oGu4R",claimable:"CurrencyBlock_claimable__BN1qT",lifetime:"CurrencyBlock_lifetime__w4rkU"}},92876:function(e){e.exports={tooltip:"Tooltip_tooltip__SGxwV",tooltipContainer:"Tooltip_tooltipContainer__eDnYd",infoIcon:"Tooltip_infoIcon__xRtEY","tooltip-top":"Tooltip_tooltip-top__iIAFH","tooltip-bottom":"Tooltip_tooltip-bottom__Rgppf","tooltip-left":"Tooltip_tooltip-left__cbw1D","tooltip-right":"Tooltip_tooltip-right__SE5b2"}},97468:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/Ens_icon.1f195b68.svg",height:34,width:32,blurWidth:0,blurHeight:0}},65831:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/Ens_icon_blue.3e76608a.svg",height:24,width:24,blurWidth:0,blurHeight:0}},10502:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/Ens_icon_white.8e71406d.svg",height:14,width:14,blurWidth:0,blurHeight:0}},32924:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/dollar_black.20732091.svg",height:35,width:36,blurWidth:0,blurHeight:0}},32647:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/dollar_white.9c8b8032.svg",height:35,width:35,blurWidth:0,blurHeight:0}},69272:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/earn.470124fb.svg",height:35,width:35,blurWidth:0,blurHeight:0}},96750:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/error.7cdb66bf.svg",height:206,width:360,blurWidth:0,blurHeight:0}},17700:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/logoWhite.64802029.svg",height:20,width:50,blurWidth:0,blurHeight:0}},59952:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/no-image.c6c7d765.svg",height:800,width:800,blurWidth:0,blurHeight:0}},31893:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/purchase.5391c565.svg",height:35,width:35,blurWidth:0,blurHeight:0}},3387:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/referral.427563b6.svg",height:35,width:35,blurWidth:0,blurHeight:0}}}]);