"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[7847],{57847:function(e,r,o){o.r(r),o.d(r,{default:function(){return I}});var a=o(29439),t=o(72791),n=o(32291),u=o(1413),i=o(11135),p=o(25787),s=o(23814),l=o(23508),c=o(9505),m=o(38734),g=o(21435),d=o(87995),h=o(25469),f=["europe/amsterdam","europe/andorra","europe/astrakhan","europe/athens","europe/belgrade","europe/berlin","europe/bratislava","europe/brussels","europe/bucharest","europe/budapest","europe/busingen","europe/chisinau","europe/copenhagen","europe/dublin","europe/gibraltar","europe/guernsey","europe/helsinki","europe/isle_of_man","europe/istanbul","europe/jersey","europe/kaliningrad","europe/kiev","europe/kirov","europe/lisbon","europe/ljubljana","europe/london","europe/luxembourg","europe/madrid","europe/malta","europe/mariehamn","europe/minsk","europe/monaco","europe/moscow","europe/oslo","europe/paris","europe/podgorica","europe/prague","europe/riga","europe/rome","europe/samara","europe/san_marino","europe/sarajevo","europe/saratov","europe/simferopol","europe/skopje","europe/sofia","europe/stockholm","europe/tallinn","europe/tirane","europe/ulyanovsk","europe/uzhgorod","europe/vaduz","europe/vatican","europe/vienna","europe/vilnius","europe/volgograd","europe/warsaw","europe/zagreb","europe/zaporozhye","europe/zurich"],v=o(80184),b=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,j=(0,p.Z)((function(e){return(0,i.Z)((0,u.Z)({pageTitle:{fontSize:18,marginBottom:20,textAlign:"center"},pageSubTitle:{textAlign:"center"}},(0,s.Bz)(e.spacing(4))))}))((function(e){var r=e.open,o=e.closeModal,n=(0,h.TL)(),u=(0,c.Z)((function(e){var r="Email ".concat(k," has been saved");n((0,d.y1)(r)),o()}),(function(e){n((0,d.Ih)(e)),o()})),i=(0,a.Z)(u,2),p=i[0],s=i[1],j=(0,t.useState)(""),x=(0,a.Z)(j,2),k=x[0],Z=x[1],S=(0,t.useState)(!1),z=(0,a.Z)(S,2),I=z[0],T=z[1],w=function(){var e=Intl.DateTimeFormat().resolvedOptions().timeZone;return f.includes(e.toLocaleLowerCase())};return r?(0,v.jsx)(l.Z,{title:"Register Email",confirmText:"Register",isOpen:r,titleIcon:(0,v.jsx)(m.szr,{}),isLoading:p,cancelText:"Later",onConfirm:function(){var e=w();s("POST","/api/v1/mp-integration",{email:k,isInEU:e})},onClose:o,confirmButtonProps:{color:"info",disabled:!I||p},confirmationContent:(0,v.jsxs)(t.Fragment,{children:[(0,v.jsxs)("p",{children:["Your Marketplace subscription includes support access from the",(0,v.jsx)("a",{href:"https://min.io/product/subnet",target:"_blank",rel:"noreferrer",children:"MinIO Subscription Network (SUBNET)"}),".",(0,v.jsx)("br",{}),"Enter your email to register now."]}),(0,v.jsxs)("p",{children:["To register later, contact"," ",(0,v.jsx)("a",{href:"mailto: support@min.io",children:"support@min.io"}),"."]}),(0,v.jsx)(g.Z,{id:"set-mp-email",name:"set-mp-email",onChange:function(e){var r=e.target.value;T(b.test(r)),Z(r)},label:"",placeholder:"Enter email",type:"email",value:k})]})}):null})),x=o(74794),k=o(46078),Z=o(60364),S=o(16871),z=o(45884),I=function(){var e=(0,h.TL)(),r=(0,S.s0)(),o=(0,Z.v9)(k.$4),u=(0,Z.v9)(d.Qw),i=(0,t.useState)(!0),p=(0,a.Z)(i,2),s=p[0],l=p[1];(0,t.useEffect)((function(){var e=!1;o&&0!==o.length&&o.forEach((function(r){r in z.I8&&(e=!0)})),l(e)}),[o,u]);var c=function(){var e="/";return localStorage.getItem("redirect-path")&&""!==localStorage.getItem("redirect-path")&&(e="".concat(localStorage.getItem("redirect-path")),localStorage.setItem("redirect-path","")),e};return u&&s?o?(0,v.jsxs)(t.Fragment,{children:[(0,v.jsx)(n.Z,{label:"Operator Marketplace"}),(0,v.jsx)(x.Z,{children:(0,v.jsx)(j,{open:!0,closeModal:function(){e((0,d.VZ)(!1)),r(c())}})})]}):null:(0,v.jsx)(S.Fg,{to:{pathname:c()}})}}}]);
//# sourceMappingURL=7847.4176f3e5.chunk.js.map