1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9663],{947:function(e,r,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/start-an-exchange/platform-info",function(){return a(35511)}])},35511:function(e,r,a){"use strict";a.r(r),a.d(r,{__N_SSP:function(){return v}});var t=a(47568),o=a(70655),l=a(85893),n=a(9669),s=a.n(n),i=a(28681),c=a(85137),d=a(23869),m=a(43367),u=a(93996),f=a(82580),b=a(9008),p=a.n(b),h=a(11163),x=a(67294),_=a(46402),g=["Asia","Africa","Europe","North America","South America","Australia/Oceania"],v=!0;r.default=(0,c.Q)((function(e){var r=e.data,a=(0,h.useRouter)(),n=(0,u.VY)().addAlert,c=(0,x.useState)(!1),b=c[0],v=c[1],w=(0,x.useState)(!1),k=w[0],j=w[1],y=(0,x.useState)(!1),N=y[0],S=y[1],C=(0,x.useState)(!1),E=C[0],P=C[1],A=(0,x.useState)((null===r||void 0===r?void 0:r.region)||"Select your region"),T=A[0],O=A[1],R=/\s/,V=(0,f.TA)({initialValues:{platform_name:(null===r||void 0===r?void 0:r.platform_name)||"",blockchain_network:(null===r||void 0===r?void 0:r.blockchain_network)||"Ethereum",platform_domain:(null===r||void 0===r?void 0:r.platform_domain)||""},onSubmit:(0,t.Z)((function(){return(0,o.__generator)(this,(function(e){return[2]}))})),validationSchema:_.sY}),Z=V.values,L=V.handleChange,X=V.isValid,Y=(0,x.useCallback)((0,t.Z)((function(){var e,r,t;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return e=Z.platform_name,r=Z.blockchain_network,t=Z.platform_domain,v(!0),[4,s().put("/api/v1/web-funnel/platform",{platform_name:e.trim(),blockchain_network:r,region:T,step:"project-details",platform_domain:t}).then((function(){a.push("/start-an-exchange/project-details")})).catch((function(e){n({messageText:e.response.data.message,type:"error"}),v(!1)}))];case 1:return o.sent(),[2]}}))})),[Z,T]),B=(0,x.useCallback)((function(e){O(e)}),[]),D=(0,x.useCallback)((function(){j(!Z.platform_name.trim()),P("Select your region"!==T),S(R.test(Z.platform_domain)||Z.platform_domain.trim())}),[Z]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p(),{children:(0,l.jsx)("title",{children:"Platform info"})}),(0,l.jsx)(i.Z,{textIndex:3,step:2,children:(0,l.jsxs)("div",{className:"flex flex-col gap-6 md:gap-9",children:[(0,l.jsxs)("div",{className:"min-h-32",children:[(0,l.jsx)("h1",{className:"text-3xl md:text-4xl text-dark font-playfair",children:"Platform information"}),(0,l.jsx)("p",{className:"mt-3 md:mt-4 text-base text-dark-gray",children:"Please name your platform to be easily identifiable, make sure to specify the planned website domain."})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:" text-base text-dark mb-2",children:"Platform name *"}),(0,l.jsxs)("div",{className:"relative w-full flex items-center justify-center",children:[(0,l.jsx)("input",{className:"w-full focus:outline-0 p-2.5 \n ".concat(k&&!Z.platform_name.trim()?"border-2 border-solid border-brick-red":"border border-blue-gray focus:border-solid focus:border-cyan hover:border-cyan focus:ring-1 hover:ring-1 focus:ring-cyan hover:ring-cyan","\n "),placeholder:"Enter platform name",type:"text",value:Z.platform_name,name:"platform_name",onChange:L}),k&&!Z.platform_name.trim()&&(0,l.jsx)("span",{"aria-label":"error-label",className:"cr-block-with-arrow absolute px-6 py-3 bg-red text-white top-[50px]",children:"Please enter Platform name."})]})]}),(0,l.jsxs)("div",{className:"xl:mt-2",children:[(0,l.jsx)("p",{className:"mb-2 text-base",children:"Platform domain name *"}),(0,l.jsxs)("div",{className:"flex w-full",children:[(0,l.jsx)("div",{className:"w-20 h-12 flex justify-center items-center border border-solid border-blue-gray bg-whitesmoke",children:(0,l.jsx)("p",{className:"p-3",children:"http://"})}),(0,l.jsxs)("div",{className:"w-full flex items-center justif-center relative",children:[(0,l.jsx)("input",{type:"text",placeholder:"Enter a link",className:"py-2 px-3.5 bg-white focus:outline-0 w-full h-12 flex focus:border-cyan items-center border-b border-t border-r border-solid border-blue-gray ".concat(N&&R.test(Z.platform_domain.trim()||" ")?"border-2 border-solid border-brick-red":""),name:"platform_domain",value:Z.platform_domain,onChange:L}),N&&R.test(Z.platform_domain.trim()||" ")&&(0,l.jsx)("span",{"aria-label":"error-label",className:"cr-block-with-arrow absolute px-6 py-3 bg-red text-white top-[50px]",children:"Please provide the correct Domain name"})]})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:" text-base text-dark mb-2",children:"Blockchain network"}),(0,l.jsx)("div",{className:"w-full p-2.5 border border-blue-gray",children:"Ethereum"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:" text-base text-dark mb-2",children:"Region *"}),(0,l.jsxs)("div",{className:"w-full relative flex items-center justify-center",children:[(0,l.jsx)(d.L,{list:g,selected:T,onSelect:B,buttonClassNames:"w-full pl-4 focus:outline-0 invali
1d:text-gray-400 focus:border-solid bg-white\n ".concat(E&&"Select your region"===T?"border-2 border-solid border-brick-red focus:border-red":"border border-blue-gray focus:border-solid focus:border-cyan hover:border-cyan focus:ring-1 hover:ring-1 focus:ring-cyan hover:ring-cyan"),optionColorSelectedClass:"bg-whitesmoke",optionColorActiveClass:"bg-whitesmoke text-dark-gray"}),E&&"Select your region"===T&&(0,l.jsx)("span",{"aria-label":"error-label",className:"cr-block-with-arrow absolute px-6 py-3 bg-red text-white top-[50px]",children:"Please select Region"})]})]}),(0,l.jsx)("div",{className:"xs:mt-2 md:mt-3",children:(0,l.jsx)(m.L,{disabled:!X||!Z.platform_name||R.test(Z.platform_domain)||"Select your region"===T,alwaysActive:!0,nextExist:!0,backExist:!1,loading:b,clickNext:X&&Z.blockchain_network&&Z.platform_name&&!R.test(Z.platform_domain)?Y:D})})]})})]})}))}},function(e){e.O(0,[959,9669,2580,6818,8585,9774,2888,179],(function(){return r=947,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.