1import{bL as s,fa as j,cE as g,r as k,j as e,c8 as E,fb as w}from"./vendor-ct_YKIP6_bundle.js";import{m as C,F as h,a8 as v,aw as b,A as T,H as r,a4 as p,L as $}from"./registration-BfOA5mCx_bundle.js";import{R as y}from"./slackIntegration-mZcBTumD_bundle.js";import"./moment-DyvZl3Ud_bundle.js";import{S as P,a as R}from"./form-radio-selected-Dy1sPCj7_bundle.js";import"./sentry-DLDmuXKN_bundle.js";import"./datadog-DxmyjtSX_bundle.js";const S=s(h)` 2 width: 100vw; 3`,I=s(h)` 4 box-shadow: 0 2px 2px rgba(237, 237, 237, 0.5); 5 border-radius: 3px; 6 min-width: 500px; 7 border: 1px solid ${({theme:i})=>i.delimiter.neutral100}; 8 background-color: white; 9 padding: 30px 50px 40px; 10 ${C.phone` 11 min-width: unset; 12 `} 13`,M=s.div` 14 color: ${({theme:i})=>i.text.neutral900}; 15 font-size: 20px; 16`,m=s.div` 17 color: ${({theme:i})=>i.text.neutral600}; 18 font-size: 14px; 19 line-height: 21px; 20 text-align: center; 21`,_=s(v)` 22 width: 200px; 23`,d=s.div``;let u=!1;class B extends k.Component{componentDidMount(){if(!u){const{dispatch:t,location:n}=this.props,o=b(n.search);o.token&&(t({type:T.CONFIRM_EMAIL_REQUEST,payload:o.token}),u=!0)}}renderErrorMessages(t){const{t:n}=this.props,o=[];let a=Math.round(Math.random()*100);if(t){const x=["email","confirmationToken"];t.email&&o.push(e.jsx(d,{children:`Email ${t.email}`},a++)),t.confirmationToken&&o.push(e.jsx(d,{children:`${n("validations.email_verification_failed")} : Confirmation token ${t.confirmationToken}`},a++));const f=E((l,c)=>!x.includes(c),t);w((l,c)=>o.push(e.jsx(d,{children:`${c} : ${l}`},a++)),f)}return o}render(){const{t}=this.props,{emailConfirmed:n,errorMessage:o}=this.props;return e.jsxs("div",{children:[e.jsx(y,{simple:!0}),e.jsx(S,{column:!0,alignItems:"center",children:e.jsx(r,{outside:!0,top:30,children:e.jsxs(I,{center:!0,column:!0,children:[e.jsxs(p,{when:n,children:[e.jsx(r,{outside:!0,children:e.jsx(P,{"aria-label":"check-mark"})}),e.jsx(r,{outside:!0,top:20,children:e.jsx(M,{children:t("congratulation.thank_you")})}),e.jsx(r,{outside:!0,top:20,children:e.jsx(m,{children:t("congratulation.email_confirmed")})})]}),e.jsx(p,{when:!n,children:e.jsx(r,{outside:!0,top:20,children:e.jsx(m,{children:this.renderErrorMessages(o)})})}),e.jsx(r,{outside:!0,top:20,children:e.jsx($,{to:"/items",children:e.jsx(_,{icon:R,children:t("common.next")})})})]})})})]})}}function L(i){return{emailConfirmed:i.pages.emailConfirmationPage.emailConfirmed,errorMessage:i.pages.emailConfirmationPage.errorMessage}}const Q=j()(g(L)(B));export{Q as default}; 24//# sourceMappingURL=email_confirmation-FUHPDQ8s_bundle.js.map
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.