1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a784b216-00a0-414a-a980-2d5c7bdbbe70",e._sentryDebugIdIdentifier="sentry-dbid-a784b216-00a0-414a-a980-2d5c7bdbbe70")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"c46eba33f0d4335b070b7af2cfa0c5c11f5534ce"},(self.webpackChunkcurrencybird_front_public=self.webpackChunkcurrencybird_front_public||[]).push([[5416],{1576:function(e){const t={v4:{httpsUrl:"https://api.ipify.org/"},v6:{httpsUrl:"https://api6.ipify.org/"}},o=async e=>{const o=t[e];try{const e=await fetch(o.httpsUrl);return e.text()}catch(n){return null}};e.exports.v4=()=>o("v4"),e.exports.v6=()=>o("v6")},2627:function(e,t,o){var n=o(58168),i=o(98587),r=o(64810),a=o(4232),s=o(78373),l=o(21760),c=o(62061),d=o(17437);const u=["node"],p=["node"],g=["children","node"];t.A=e=>{let{isModal:t}=e;const o=(0,r.useStaticQuery)("3808235689"),{markdownRemark:m}=o,{rawMarkdownBody:x}=m;return(0,d.jsx)(l.PZ,{id:"termsPage",sx:e=>Object.assign({},c.A.root(e),t&&{paddingTop:0,paddingBottom:0})},(0,d.jsx)(s.A,{id:"container",sx:c.A.container,maxWidth:"lg",disableGutters:!0},(0,d.jsx)("div",{id:"content"},(0,d.jsx)(a.oz,{components:{h1(e){const t=(0,i.A)(e,u);return(0,d.jsx)(l.oY,(0,n.A)({},t,{sx:c.A.title}))},h2(e){const t=(0,i.A)(e,p);return(0,d.jsx)(l.rd,(0,n.A)({},t,{sx:c.A.h1}))},p(e){const{children:t}=e,o=(0,i.A)(e,g);return"string"==typeof t&&/^\d.\d.\d/.test(t)?(0,d.jsx)(l.jO,(0,n.A)({},o,{sx:c.A.subpoint}),t):(0,d.jsx)("p",o,t)}}},x))))}},3188:function(e,t,o){o.d(t,{E:function(){return l}});var n=o(71083),i=o(96540),r=o(64251),a=o(75256);const s=e=>Boolean(null==e?void 0:e.includes("signup/social"));function l(){const{logoutSessionExpired:e}=(0,a.A)(),t=(0,i.useRef)(null);t.current||(t.current=n.A.create({baseURL:"https://services.prod.currencybird.cl/apigateway-signup/api/CB/",headers:{"Content-type":"application/json"},withCredentials:!0}),t.current.interceptors.request.use(e=>{if(s(e.url))return e;const t="undefined"!=typeof window?localStorage.getItem("bearer"):null;if(t)try{const o=JSON.parse(t);null!=o&&o.accessToken&&(e.headers.Authorization="Bearer "+o.accessToken)}catch(o){localStorage.removeItem("bearer"),r.Cp(o,{tags:{registration_stage:"token_parse",endpoint:String(e.url)}})}return e}),t.current.interceptors.response.use(e=>e,t=>{var o,n,i;if(s(null===(o=t.config)||void 0===o?void 0:o.url))return Promise.reject(t);401===(null===(n=t.response)||void 0===n?void 0:n.status)&&(r.wd("Sesión inválida o expirada durante el registro",{level:"error",tags:{endpoint:String(null===(i=t.config)||void 0===i?void 0:i.url)}}),e());return Promise.reject(t)}));const o=(0,i.useCallback)(async e=>{var o,n;const i=await(null===(o=t.current)||void 0===o?void 0:o.get("locations/statesByCountry",{params:e}));return null!==(n=null==i?void 0:i.data)&&void 0!==n?n:[]},[]),l=(0,i.useCallback)(async e=>{var o,n;const i=await(null===(o=t.current)||void 0===o?void 0:o.get("locations/citiesByStateAndCountry",{params:e}));return null!==(n=null==i?void 0:i.data)&&void 0!==n?n:[]},[]),c=(0,i.useCallback)(async e=>{var o,n;const i=await(null===(o=t.current)||void 0===o?void 0:o.get("locations/chileCommunes",{params:e}));return null!==(n=null==i?void 0:i.data)&&void 0!==n?n:[]},[]),d=(0,i.useCallback)(async e=>{var o,n;const i=await(null===(o=t.current)||void 0===o?void 0:o.post("locations/mapChileAddressComponents",e));return null!==(n=null==i?void 0:i.data)&&void 0!==n?n:null},[]);return{APIProspect:t.current,getProspect:async()=>{var e;const o=null===(e=t.current)||void 0===e?void 0:e.get("signup/prospect");if(o)return o;throw new Error("Error getting prospect")},validatePinCode:async e=>{var o;e.createHsContact=e.createHsContact||!1;const n=null===(o=t.current)||void 0===o?void 0:o.post("signup/confirmation",e);if(n)return n;throw new Error("Error validating pin code")},ensureHsContact:async e=>{var o;const n=null===(o=t.current)||void 0===o?void 0:o.post("signup/ensure-hubspot-contact",{email:e});if(n)return n;throw new Error("Error ensuring HubSpot contact")},createProspect:async e=>{var o;const n=null===(o=t.current)||void 0===o?void 0:o.post("signup",e);if(n)return n;throw new Error("Error signing up")},socialSignIn:async e=>{var o;const n=null===(o=t.current)||void 0===o?void 0:o.post("signup/social",Object.assign({platform:"web"},e));if(n)return n;throw new Error("Error signing in with provider")},socialContactOtpRequest:async(e,o)=>{var n;const i=await(null===(n=t.current)||void 0===n?void 0:n.post("signup/social-contact-otp/request",{ticket:e,contactEmail:o}
1));if(i)return i.data;throw new Error("Error requesting contact code")},validateRegistrationCode:async e=>{var o,n;const i=await(null===(o=t.current)||void 0===o?void 0:o.post("registration/validate-code",{code:e}));return null!==(n=null==i?void 0:i.data)&&void 0!==n?n:null},applyRegistrationCode:async e=>{var o,n;const i=await(null===(o=t.current)||void 0===o?void 0:o.post("signup/registration-code",{code:e}));return null!==(n=null==i?void 0:i.data)&&void 0!==n?n:null},resendPinCode:async e=>{var o;const n=null===(o=t.current)||void 0===o?void 0:o.post("signup/refresh-code",e);if(n)return n;throw new Error("Error resending pin code")},getNationalities:async()=>{var e;const o=null===(e=t.current)||void 0===e?void 0:e.get("signup/nationalities");if(o)return o;throw new Error("Error getting nationalities")},getSiiCategories:async()=>{var e;const o=null===(e=t.current)||void 0===e?void 0:e.get("signup/sii/categories");if(o)return o;throw new Error("Error getting sii codes")},getStatesByCountry:o,getCitiesByStateAndCountry:l,getChileCommunes:c,mapChileAddressComponents:d}}},5012:function(e,t,o){var n=o(24994);t.A=void 0;var i=n(o(42032)),r=o(74848);t.A=(0,i.default)((0,r.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined")},5673:function(e,t,o){var n=o(24994);t.A=void 0;var i=n(o(42032)),r=o(74848);t.A=(0,i.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},15336:function(e,t,o){var n=o(96540);t.A=e=>{(0,n.useEffect)(()=>{if(e)return document.body.classList.add(e),()=>{document.body.classList.remove(e)}},[e])}},29153:function(e,t,o){var n,i=o(98587),r=o(58168),a=o(96540),s=o(54533),l=o(75659),c=o(28466),d=o(33551),u=o(33800),p=o(79716),g=o(11848),m=o(80977),x=o(25669),f=o(74848);const h=["children","className","component","disablePointerEvents","disableTypography","position","variant"],v=(0,g.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${(0,c.A)(o.position)}`],!0===o.disablePointerEvents&&t.disablePointerEvents,t[o.variant]]}})(({theme:e,ownerState:t})=>(0,r.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${m.A.positionStart}&:not(.${m.A.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),A=a.forwardRef(function(e,t){const o=(0,x.b)({props:e,name:"MuiInputAdornment"}),{children:g,className:A,component:b="div",disablePointerEvents:y=!1,disableTypography:w=!1,position:j,variant:C}=o,k=(0,i.A)(o,h),S=(0,p.A)()||{};let L=C;C&&S.variant,S&&!L&&(L=S.variant);const T=(0,r.A)({},o,{hiddenLabel:S.hiddenLabel,size:S.size,disablePointerEvents:y,position:j,variant:L}),M=(e=>{const{classes:t,disablePointerEvents:o,hiddenLabel:n,position:i,size:r,variant:a}=e,s={root:["root",o&&"disablePointerEvents",i&&`position${(0,c.A)(i)}`,a,n&&"hiddenLabel",r&&`size${(0,c.A)(r)}`]};return(0,l.A)(s,m.P,t)})(T);return(0,f.jsx)(u.A.Provider,{value:null,children:(0,f.jsx)(v,(0,r.A)({as:b,ownerState:T,className:(0,s.A)(M.root,A),ref:t},k,{children:"string"!=typeof g||w?(0,f.jsxs)(a.Fragment,{children:["start"===j?n||(n=(0,f.jsx)("span",{className:"notranslate",children:"â"})):null,g]}):(0,f.jsx)(d.A,{color:"text.secondary",children:g})}))})});t.A=A},37303:function(e,t,o){var n=o(98587),i=o(58168),r=o(96540),a=o(54533),s=o(75659),l=o(11848),c=o(39770),d=o(25669),u=o(33551),p=o(66691),g=o(74848);const m=["children","className"],x=(0,l.Ay)(u.A,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),f=r.forwardRef(function(e,t){const o=(0,d.b)({props:e,name:"MuiDialogContentText"}),{className:r}=o,l=(0,n.A)(o,m),c=(e=>{const{classes:t}=e,o=(0,s.A)({root:["root"]},p.D,t);return(0,i.A)({},t,o)})(l);return(0,g.jsx)(x,(0,i.A)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:l,className:(0,a.A)(c.root,r)},o,{classes:c}))});t.A=f},52073:function(e,t,o){o.d(t,{A:function(){return c}});var n=o(96540),i=o(24755),r=o(21760);var a={button:{display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",width:"100%",maxWidth:"400px",height:"40px",margin:"0 auto",padding:"0 12px",backgroundColor:"#fff",border:"1px solid #dadce0",borderRadius:"999px",fontFamily:"inherit",fontSize:14,fontWeight:500,color:"#3c4043",cursor:"pointer",transition:"background 0.15s ease, box-shadow 0.15s ease","&:hover":{backgroundColor:"#F7F8F8",boxShadow:"0 1px 4px rgba(0,0,0,0.12)"},"&:focus-visible":{outline:"3px solid #074F71",outlineOffset:"2px"},"&:disabled":{cursor:"default"},"& svg":{flex:"0 0 auto"}},busy:{opacity:.5}},s=o(17437);const l="https://accounts.google.com/gsi/client";var c=e=>{let{onCredential:t,disabled:o=!1}=e;const{t:c}=(0,i.useTranslation)(),{0:d,1:u}
1=(0,n.useState)(null),p=(0,n.useRef)(t),g="722885139050-r3ip6ifol10ran9amv6evckqfrvh1g86.apps.googleusercontent.com";return(0,n.useEffect)(()=>{p.current=t},[t]),(0,n.useEffect)(()=>{let e,t=!1;const o=()=>{var n,i;if(!t){if(null!==(n=window.google)&&void 0!==n&&null!==(i=n.accounts)&&void 0!==i&&i.oauth2){const e=window.google.accounts.oauth2.initCodeClient({client_id:g,scope:"openid email profile",ux_mode:"popup",callback:e=>{null!=e&&e.code&&p.current(e.code)}});return void u(e)}e=setTimeout(o,100)}};if(!document.querySelector('script[src="'+l+'"]')){const e=document.createElement("script");e.src=l,e.async=!0,e.defer=!0,document.body.appendChild(e)}return o(),()=>{t=!0,e&&clearTimeout(e)}},[g]),(0,s.jsx)(r.OV,{type:"button",sx:[a.button,o&&a.busy],onClick:()=>null==d?void 0:d.requestCode(),disabled:o||!d},(0,s.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 48 48","aria-hidden":"true"},(0,s.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),(0,s.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),(0,s.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),(0,s.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})),c("registration.social.googleButton"))}},52182:function(e,t,o){var n=o(81919);const i=e=>({display:"flex",color:e.palette.primary.main,paddingLeft:0,paddingRight:0,minHeight:"850px",[e.breakpoints.down("sm")]:{minHeight:"auto",marginBottom:"20px"},"& h1":{textAlign:"center",fontSize:32,[e.breakpoints.down("sm")]:{fontSize:30,fontWeight:"600"}},"& p":{[e.breakpoints.down("sm")]:{fontSize:15}},"& h2":{[e.breakpoints.down("sm")]:{fontSize:18}},[e.breakpoints.up("xl")]:{margin:"auto"}}),r={"& button":{borderRadius:"30px",backgroundColor:"#F8B133",marginTop:"24px",height:"48px",fontSize:18,fontWeight:"600",textTransform:"capitalize","&:hover":{background:"#074F71",color:"#FFF"}}},a={root:e=>({backgroundColor:"#FFF",position:"relative","& .MuiInputLabel-outlined":{color:"#AAAAAA",fontSize:16},"& .MuiSvgIcon-root":{width:"20px",height:"20px"},[e.breakpoints.down(501)]:{"& label":{fontSize:"14px"},"& input":{fontSize:"15px"},"& .MuiInputLabel-outlined":{fontSize:14}}}),formTerms:e=>({marginLeft:"15px",[e.breakpoints.down(501)]:{marginLeft:"-10px"},"& svg":{width:"18px",height:"18px"},"& span":{fontSize:14,[e.breakpoints.down(501)]:{fontSize:10,lineHeight:"13px"}}}),dialog:e=>({display:"flex",flexDirection:"column",position:"fixed",top:0,color:e.palette.primary.main,right:0,height:"100%",width:"50%",paddingBottom:"80px",backgroundColor:e.palette.common.white,[e.breakpoints.down("md")]:{width:"100%"}}),backdrop:e=>({zIndex:e.zIndex.drawer+1,color:e.palette.common.white,backgroundColor:"rgba(0, 0, 0, 0.5)"}),alertHolder:{paddingBottom:"16px"},socialBackdrop:e=>({zIndex:e.zIndex.drawer+1,color:e.palette.primary.main,backgroundColor:"rgba(255, 255, 255, 0.92)",backdropFilter:"blur(3px)",flexDirection:"column",gap:2.5,paddingLeft:3,paddingRight:3,[e.breakpoints.down(501)]:{gap:2}}),socialBackdropBird:{width:96,height:"auto"},socialBackdropText:e=>({color:e.palette.primary.main,fontSize:18,fontWeight:400,textAlign:"center",maxWidth:320,[e.breakpoints.down(501)]:{fontSize:16}}),formGroup:{paddingTop:"24px",paddingBottom:"40px"},registerFormGroup:e=>({display:"flex",flexDirection:"column",justifyContent:"center",paddingTop:"45px",paddingBottom:"80px",[e.breakpoints.down("md")]:{paddingTop:"20px",paddingBottom:"45px"},[e.breakpoints.down(501)]:{paddingTop:"30px",paddingBottom:"45px"}}),dialogActions:{justifyContent:"flex-start !important",padding:"5% 0% 0% 7%","& span":{textTransform:"capitalize"}},formControl:{width:"100%"},subtitle:e=>({"& b":{color:"#F8B133",textDecoration:"underline",marginLeft:"2px"},"& p":{float:"left",textAlign:"center",marginTop:"12px",marginBottom:"24px",[e.breakpoints.down(501)]:{marginTop:"8px",marginBottom:"18px"}},margin:"auto"}),registerSubtitle:e=>({"& b":{color:"#F8B133",textDecoration:"underline",marginLeft:"2px"},"& p":{float:"left",textAlign:"center",marginTop:"12px",marginBottom:"25px",[e.breakpoints.down(501)]:{marginTop:"2x",marginBottom:"16
1px"}},margin:"auto"}),container:i,registerContainer:e=>Object.assign({},i(e),{minHeight:"auto",[e.breakpoints.up("md")]:{minHeight:"780px"}}),"@global":e=>({body:{backgroundColor:e.palette.common.white},header:{display:"none"}}),paper:e=>({marginTop:e.spacing(8),display:"flex",flexDirection:"column",alignItems:"center"}),avatar:e=>({margin:e.spacing(1),backgroundColor:e.palette.secondary.main}),form:e=>({width:"100%",marginTop:e.spacing(3)}),submit:e=>({margin:e.spacing(3,0,2)}),feather:{float:"right",width:"100%",alignSelf:"stretch",backgroundImage:"url("+n.A+")",backgroundRepeat:"no-repeat",backgroundPosition:"right",backgroundSize:"cover"},submitGroup:r,registerSubmitGroup:{"& button":Object.assign({},r["& button"],{marginTop:"8px"})},socialSubmitGroup:{"& button":Object.assign({},r["& button"],{textTransform:"none"})},helperText:{color:"#f44336"},passwordHint:e=>({fontSize:10,lineHeight:"13px",color:"#AAAAAA",marginTop:"2px",[e.breakpoints.down(501)]:{fontSize:9,lineHeight:"12px"}}),termsControl:e=>({alignItems:"flex-start",marginLeft:0,marginRight:0,"& .MuiCheckbox-root":{padding:0,marginRight:"10px"},"& .MuiSvgIcon-root":{width:"20px",height:"20px"},[e.breakpoints.down(501)]:{"& .MuiCheckbox-root":{marginRight:"8px"}}}),termsLabel:e=>({display:"block",fontSize:13,lineHeight:"20px",color:e.palette.primary.main,[e.breakpoints.down(501)]:{fontSize:12,lineHeight:"18px"}}),termsLink:{textDecoration:"underline",cursor:"pointer",color:"inherit"},socialGroup:{"& > div":{marginTop:"10px",marginBottom:"30px"},"& button":{maxWidth:"none",height:"48px",borderRadius:"30px",fontSize:16,fontWeight:"500",gap:"12px"},"& button svg":{width:"auto",height:"20px"}},socialDivider:{display:"flex",alignItems:"center",width:"100%",marginTop:2.5,marginBottom:2.5,color:"#8A9BA5",fontSize:13,textTransform:"uppercase",letterSpacing:"0.04em","&::before, &::after":{content:'""',flex:1,borderBottom:"1px solid #D9E1E6"},"&::before":{marginRight:2},"&::after":{marginLeft:2}},socialAccountHolder:{width:"100%",marginBottom:"32px"},socialAccount:e=>({display:"flex",alignItems:"center",gap:"14px",width:"100%",padding:"14px 18px",borderRadius:"8px",border:"1px solid "+e.palette.primary.main,backgroundColor:e.palette.lightBlueBackgroun
1d,[e.breakpoints.down(501)]:{padding:"12px 14px",gap:"12px"}}),socialAccountBadge:e=>({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 auto",width:"34px",height:"34px",borderRadius:"50%",backgroundColor:e.palette.common.white,color:e.palette.primary.main}),socialAccountText:{display:"flex",flexDirection:"column",gap:"2px",minWidth:0,flex:"1 1 auto"},socialAccountGreeting:e=>({fontSize:15,fontWeight:600,lineHeight:"20px",color:e.palette.primary.main,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",[e.breakpoints.down(501)]:{fontSize:14}}),socialAccountEmail:e=>({fontSize:13,lineHeight:"17px",color:"#5A6B75",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",[e.breakpoints.down(501)]:{fontSize:12}}),socialAccountChange:e=>({display:"block",width:"100%",marginTop:"10px",textAlign:"center",fontSize:13,color:e.palette.primary.main,textDecoration:"underline",cursor:"pointer","&:hover":{color:e.palette.secondary.main}})};t.A=a},57873:function(e,t,o){var n=o(98587),i=o(58168),r=o(96540),a=o(54533),s=o(75659),l=o(11848),c=o(25669),d=o(66721),u=o(32850),p=o(74848);const g=["className"],m=(0,l.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"flex-start"===o.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>(0,i.A)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),x=r.forwardRef(function(e,t){const o=(0,c.b)({props:e,name:"MuiListItemIcon"}),{className:l}=o,x=(0,n.A)(o,g),f=r.useContext(u.A),h=(0,i.A)({},o,{alignItems:f.alignItems}),v=(e=>{const{alignItems:t,classes:o}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.A)(n,d.f,o)})(h);return(0,p.jsx)(m,(0,i.A)({className:(0,a.A)(v.root,l),ownerState:h,ref:t},x))});t.A=x},58264:function(e,t,o){o.d(t,{A:function(){return c}});var n=o(96540),i=o(24755),r=o(21760);var a={button:{display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",width:"100%",maxWidth:"400px",height:"40px",margin:"10px auto 0",padding:"0 12px",backgroundColor:"#fff",border:"1px solid #dadce0",borderRadius:"999px",fontFamily:"inherit",fontSize:14,fontWeight:500,color:"#3c4043",cursor:"pointer",transition:"background 0.15s ease, box-shadow 0.15s ease","&:hover":{backgroundColor:"#F7F8F8",boxShadow:"0 1px 4px rgba(0,0,0,0.12)"},"&:focus-visible":{outline:"3px solid #074F71",outlineOffset:"2px"},"&:disabled":{cursor:"default"},"& svg":{flex:"0 0 auto"}},busy:{opacity:.5}},s=o(17437);const l="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js";var c=e=>{let{onCredential:t,disabled:o=!1}=e;const{t:c}=(0,i.useTranslation)(),{0:d,1:u}=(0,n.useState)(!1),p="cl.currencybird.web";(0,n.useEffect)(()=>{let e,t=!1;const o=()=>{var n;t||(null!==(n=window.AppleID)&&void 0!==n&&n.auth?u(!0):e=setTimeout(o,100))};if(!document.querySelector('script[src="'+l+'"]')){const e=document.createElement("script");e.src=l,e.async=!0,e.defer=!0,document.body.appendChild(e)}return o(),()=>{t=!0,e&&clearTimeout(e)}},[p]);return(0,s.jsx)(r.OV,{type:"button",sx:[a.button,o&&a.busy],onClick:async()=>{var e;if(null!==(e=window.AppleID)&&void 0!==e&&e.auth){window.AppleID.auth.init({clientId:p,scope:"name email",redirectURI:{}
1.GATSBY_APPLE_REDIRECT_URI||window.location.origin+"/register/",usePopup:!0});try{var o;const e=await window.AppleID.auth.signIn(),n=null==e||null===(o=e.authorization)||void 0===o?void 0:o.id_token;n&&t(n)}catch(n){return}}},disabled:o||!d},(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 384 512","aria-hidden":"true"},(0,s.jsx)("path",{fill:"#000",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})),c("registration.social.appleButton"))}},62061:function(e,t){t.A={root:e=>({paddingTop:"150px",paddingBottom:"100px",backgroundColor:"#FFF",[e.breakpoints.down("md")]:{paddingTop:"97px",paddingBottom:"80px"}}),subpoint:{paddingLeft:"40px"},container:e=>({display:"flex",color:e.palette.primary.main,paddingLeft:"6%",paddingRight:"6%","& p":{textIndent:"25px",[e.breakpoints.down("sm")]:{fontSize:15}},"& h1":{fontSize:"20px",[e.breakpoints.down("sm")]:{fontSize:18}},"& h2":{marginBlockStart:"1.33em",marginBlockEnd:"1.33em",fontSize:"0.875rem"},"& li":{marginBottom:"5px"},[e.breakpoints.up("xl")]:{paddingLeft:"0%",paddingRight:"0%"},[e.breakpoints.down("md")]:{paddingLeft:"10%",paddingRight:"10%"}}),h1:e=>({[e.breakpoints.down("sm")]:{fontSize:28,textAlign:"left",fontWeight:600,marginBottom:"30px"}}),title:{textAlign:"center",fontSize:"20px",fontWeight:"bold",display:"block",marginBlockStart:"0.83em",marginBlockEnd:"0.83em"}}},66691:function(e,t,o){o.d(t,{D:function(){return r}});var n=o(38413),i=o(31609);function r(e){return(0,i.Ay)("MuiDialogContentText",e)}const a=(0,n.A)("MuiDialogContentText",["root"]);t.A=a},72789:function(e,t,o){o.d(t,{A:function(){return a}});var n={root:{display:"flex",flexDirection:"column",paddingTop:"72px"}},i=o(21760),r=o(17437);var a=e=>{const{children:t}=e;return(0,r.jsx)(i.jx,{sx:n.root},t)}},76768:function(e,t,o){var n=o(24994);t.A=void 0;var i=n(o(42032)),r=o(74848);t.A=(0,i.default)((0,r.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},80842:function(e,t){t.A="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAuMjg0IiBoZWlnaHQ9Ijk1LjY5MSIgdmlld0JveD0iMCAwIDE2MC4yODQgOTUuNjkxIj48ZGVmcz48c3R5bGU+LmF7ZmlsbDojZjhiMTMzO308L3N0eWxlPjwvZGVmcz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg4MC4xNDIgNDcuODQ1KSI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTgwLjE0MiAtNDcuODQ1KSI+PHBhdGggY2xhc3M9ImEiIGQ9Ik0xMTUuOTc4LDY2LjI5NWMzLjg0OS0uOTEyLDEwLjA3OC0uNDU2LDE0LjAyOSwzLjE0Ljg2MS44MSwxLjgyMy43MDksMi45MzcuODYxLDUuMDE0LjY1OCwxMC41ODUsMi42MzQsMTEuMDkxLDQuMDUyLjEuMzU1LTEzLjkyNy4xNTItMTUuNDQ3LDEuNDY5QzEyMC44NCw4Mi40NSw5OS41NjksOTAuMTQ5LDgyLjgsODguNDc3Yy04LjMwNi0uODEtOS44MjUtMS41Ny0xNi42MTItLjNTMzkuNSw5Ni40NzksNDAuNjE3LDk1LjYxOCw3Ni45ODEsNz
1kuNjY1LDczLjk5Myw3My4yODRDNzIuNjI1LDcwLjQsNjQuMjE4LDYzLjM1Nyw1MC4wMzgsNjEuOTlhMjQ5LjU2NSwyNDkuNTY1LDAsMCwxLTM3Ljc4MS02LjE3OUMxLjc3Myw1My4xNzgsMCw0OS42MzIsMCw0OS42MzJzMi45MzcsMi43ODUsMjEuMDE4LDYuMTc5YzIwLjEwNiwzLjgsNDguNzIxLDEuNTcsNTguMjQyLDMuNmEyOC4xNDgsMjguMTQ4LDAsMCwxLDE0LjY4Nyw4LjJjMTMuNjc0LTE1LjksNDQuMzY1LTMzLjYyOCw1NC45LTQ3Ljk2MUMxNTcuNDU2LDcuOCwxNTUuODM1LjYwOCwxNTUuOTM3LDBhMjcuMDUzLDI3LjA1MywwLDAsMS0xLjA2NCwzMC45NDRDMTQwLjU0MSw1MC45NDksMTI4Ljg0Miw0NC43MiwxMTUuOTc4LDY2LjI5NVoiLz48L2c+PC9nPjwvc3ZnPg=="},80977:function(e,t,o){o.d(t,{P:function(){return r}});var n=o(38413),i=o(31609);function r(e){return(0,i.Ay)("MuiInputAdornment",e)}const a=(0,n.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);t.A=a},81919:function(e,t,o){t.A=o.p+"static/pluma-11a4aa87bd1f2e842149a690a3c3d3d7.png"},89827:function(e,t,o){o.r(t),o.d(t,{Head:function(){return Ce},default:function(){return je}});var n=o(93569),i=o(96540),r=o(72789),a=o(92659),s=o(94017),l=o(5012),c=o(5673),d=o(76768),u=o(11848),p=o(33551),g=o(99020),m=o(78373),x=o(63813),f=o(52835),h=o(51629),v=o(71238),A=o(78717),b=o(77037),y=o(37071),w=o(30799),j=o(37303),C=o(20973),k=o(45359),S=o(1775),L=o(80607),T=o(19455),M=o(29153),E=o(13945),I=o(57873),D=o(82241),z=o(17681),N=o(70057),B=o(1043),O=o(7425),P=o(24755),R=o(12664),_=o(3188),F=o(75256),U=o(38436),H=o(15336),W=o(80842);const Y={google:!1,apple:!1,loaded:!1},G="cb_auth_config",q=["www.currencybird.cl","currencybird.cl"],Q=()=>{const{0:e,1:t}=(0,i.useState)(Y);return(0,i.useEffect)(()=>{if("undefined"==typeof window)return;const e=(()=>{try{const e=window.sessionStorage.getItem(G);if(!e)return null;const t=JSON.parse(e);return{google:!!t.google,apple:!!t.apple,loaded:!0}}catch(e){return null}})();e&&t(e);const o=q.includes(window.location.hostname);let n=!1;return fetch((o?"https://prod.cb-front-api.currencybird.cl":"https://dev.cb-front-api.currencybird.cl")+"/authconfig").then(e=>e.ok?e.json():null).then(e=>{if(n)return;if(!e)return void t(e=>Object.assign({},e,{loaded:!0}));const o={google:!!e.google,apple:!!e.apple,loaded:!0};t(o),(e=>{try{window.sessionStorage.setItem(G,JSON.stringify({google:e.google,apple:e.apple}))}catch(t){return}})(o)}).catch(()=>{n||t(e=>Object.assign({},e,{loaded:!0}))}),()=>{n=!0}},[]),e};var V=o(58264),Z=o(52073),J=o(59604),$=o(98160),K=o(21760),X=o(2627),ee=o(34339),te=o(12709),oe=o(90656),ne=o(79627),ie=o(42681);var re={container:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"90%",maxWidth:"500px",padding:"60px 30px 40px"},closeButton:{position:"absolute",top:"10px",right:"10px"}},ae=o(39781),se=o(44646),le=o(58547),ce=o(17437);var de=()=>{const{t:e}=(0,P.useTranslation)(),{language:t}=(0,P.useI18next)(),{0:o,1:n}=(0,i.useState)({open:!1,isIOS:!1,isAndroid:!1});(0,i.useEffect)(()=>{navigator.userAgent.match(/Android/i)?n({open:!0,isAndroid:!0}):navigator.userAgent.match(/iPhone|iPad|iPod/i)?n({open:!0,isIOS:!0}):window.innerWidth<768&&n({open:!0,isIOS:!0,isAndroid:!0})},[]);const r=()=>{n({open:!1})};return(0,ce.jsx)(ne.A,{open:o.open,onClose:r},(0,ce.jsx)(ee.A,{sx:re.container},(0,ce.jsx)(T.A,{onClick:r,sx:re.closeButton},(0,ce.jsx)(ae.A,null)),(0,ce.jsx)(te.A,{spacing:3,alignItems:"center"},(0,ce.jsx)(p.A,{variant:"h5",textAlign:"center",sx:{textWrap:"balance"}},e("registration.appSuggestion.title")),(0,ce.jsx)(te.A,{direction:"row",spacing:2,flexWrap:"wrap",justifyContent:"center",useFlexGap:!0},o.isAndroid&&(0,ce.jsx)(K.v$,{href:"https://play.google.com/store/apps/details?id=cl.currencybird.cbmobileapp",target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,le.Bh)("public_playstore_click",{location:se.aZ.Registration})}},(0,ce.jsx)(K.r9,{src:(0,ie.Ds)(t),alt:e("registration.appSuggestion.googlePlayAlt")})),o.isIOS&&(0,ce.jsx)(K.v$,{href:"https://apps.apple.com/us/app/currencybird-env%C3%ADos-de-dinero/id6503993314",target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,le.Bh)("public_appstore_click",{location:se.aZ.Registration})}},(0,ce.jsx)(K.r9,{src:(0,ie.ye)(t),alt:e("registration.appSuggestion.appStoreAlt")}))),(0,ce.jsx)(oe.A,{onClick:r,sx:{color:"grey.600"}},e("registration.appSuggestion.continueBrowser")))))},ue=o(52182),pe=o(64251);const ge=o(1576),me=function(e,t,o){return void 0===o&&(o=0),R.Ik(Object.assign({},o>=1?{contactEmail:R.Yj().email(e("registration.relay.emailInvalid")).required(e("registration.relay.emailRequired"))}:{},2===o?{contactCode:R.Yj().min(6,e("registration.relay.codeRequired")).required(e("registration.relay.codeRequired"))}:{},t?{}:{email:R.Yj().email(e("registration.validation.emailInvalid")).required(e("registration.validation.emailRequired")),password:R.Yj().required(e("registration.validation.passwordRequired")).matches(/^(?=.*[0-9])(?=.*[a-zA-Z]).{8,}$/,e("registration.validation.passwordFormat"))},{reason:R.YO().min(1).required(e("registration.validation.reasonRequired")),terms:R.zM().oneOf([!0],e("registration.validation.termsRequired"))}))},xe={PaperProps:{style:{height:"auto",width:"400px"}}},fe=e=>{const t=null==e?void 0:e.response;return!(null==t||!t.data)&&JSON.stringify(t.data).includes("INVALID_REGISTRATION_CODE")},he=e=>{const t=null==e?void 0:e.response;if(null==t||!t.data)return null;const o=JSON.stringify(t.data);return o.includes("CONTACT_EMAIL_IN_USE")?"registration.relay.emailInUse":o.includes("INVALID_OTP_CODE")?"registration.relay.invalidCode":o.includes("EXPIRED_OTP_CODE")?"registration.relay.expiredCode":o.includes("TOO_MANY_ATTEMPTS")?"registration.relay.tooMany":o.includes("CONTACT_EMAIL_INVALID")?"registration.relay.emailInvalid":null},ve=(0,u.Ay)(v.A)({padding:"3px","&$checked":{color:"#074F71"},checked:{}}),Ae=[{value:"Pago proveedor o servicio",key:"supplier"},{value:"Pago estudios en el extranjero",key:"studies"},{value:"Ayuda familiar",key:"family"},{value:"Inversiones y ahorros",key:"investments"},{value:"Pago de remuneraciones o sueldos",key:"payroll"}];var be=e=>{let{code:t}=e;const{t:o}=(0,P.useTranslation)(),{navigate:n,language:r}=(0,P.useI18next)(),{callbackUrl:u,clearFlags:R}=(0,U.a)(),[Y,G]=i.useState(!1),{0:q,1:ee}=(0,i.useState)(!1),{0:te,1:oe}=(0,i.useState)(""),{0:ne,1:ie}=(0,i.useState)(""),{0:re,1:ae}=(0,i.useState)("error"),{0:se,1:be}=(0,i.useState)(t),{0:ye,1:we}=(0,i.useState)(!1),{0:je,1:Ce}=(0,i.useState)(!1),{createProspect:ke,socialSignIn:Se,socialContactOtpRequest:Le,validateRegistrationCode:Te}
1=(0,_.E)(),{handleSessionToken:Me}=(0,F.A)(),{0:Ee,1:Ie}=(0,i.useState)("google"),{0:De,1:ze}=(0,i.useState)(null),{0:Ne,1:Be}=(0,i.useState)(null),{0:Oe,1:Pe}=(0,i.useState)(""),{0:Re,1:_e}=(0,i.useState)(!1),{0:Fe,1:Ue}=(0,i.useState)(!1),{0:He,1:We}=(0,i.useState)(null),{0:Ye,1:Ge}=(0,i.useState)(!1),qe=Q(),Qe=qe.google||!qe.loaded,Ve=qe.apple||!qe.loaded,Ze=Boolean(De||Ne),Je=Ze&&Oe.toLowerCase().endsWith("@privaterelay.appleid.com"),$e=Je?Re?2:1:0;(0,H.A)("registerPage");const Ke=function(e,t,o){void 0===o&&(o="error"),oe(e),ie(t),ae(o),ee(!0)},Xe=()=>{if(be(""),"undefined"==typeof window)return;const e=new URL(window.location.href);e.searchParams.delete("code"),e.searchParams.delete("recommender_code"),window.history.replaceState({},"",""+e.pathname+e.search)},et=()=>{if(Ie("google"),ze(null),Be(null),Pe(""),We(null),_e(!1),Ue(!1),"undefined"==typeof window)return;const e=new URL(window.location.href);e.searchParams.delete("social_ticket"),e.searchParams.delete("from"),window.history.replaceState({},"",""+e.pathname+e.search)};(0,i.useEffect)(()=>{if("undefined"==typeof window)return;const e=new URLSearchParams(window.location.search),t=e.get("social_ticket");t?nt({ticket:t}):"google"===e.get("from")&&Ke(o("registration.social.fromPrivateTitle"),o("registration.social.fromPrivateDescription"),"info")},[]),(0,i.useEffect)(()=>{if(!t)return;let e=!1;return Te(t).then(t=>{e||null===t||t.valid||(Xe(),Ke(o("registration.alerts.invalidCodeTitle"),o("registration.alerts.invalidCodeDescription"),"warning"))}).catch(()=>{}),()=>{e=!0}},[t]);const tt=()=>{Ce(!1)},ot=async e=>{if(Ne){Ue(!0);try{await Le(Ne,e),_e(!0)}catch(t){const e=he(t);"registration.relay.emailInUse"===e?Ke(o("registration.relay.emailInUse"),o("registration.signIn")):e?Ke(o(e),o("registration.alerts.tryAgain"),"warning"):(Ke(o("registration.alerts.emailError"),o("registration.alerts.tryAgain")),pe.Cp(t))}finally{Ue(!1)}}else Ke(o("registration.alerts.emailError"),o("registration.alerts.tryAgain"))},nt=async(e,t)=>{e.provider&&Ie(e.provider),e.provider&&!t&&(0,le.Bh)("social_login_click",{provider:e.provider}),Ge(!0);try{var i,a;const g=await ge.v4()||void 0,m=await Se(Object.assign({provider:null!==(i=e.provider)&&void 0!==i?i:"google",idToken:e.idToken,authCode:e.authCode,ticket:e.ticket,recommender_code:se||void 0,userIp:g},t)),x=null==m?void 0:m.data;var s,l,c,d;if("NEEDS_PROFILE_DATA"===(null==x?void 0:x.status))return ze(null!==(s=e.idToken)&&void 0!==s?s:null),Be(null!==(l=null!==(c=x.ticket)&&void 0!==c?c:e.ticket)&&void 0!==l?l:null),Pe(x.email||""),We(x.name||null),Ge(!1),void(0,le.Bh)("social_signup_profile_step",{provider:null!==(d=e.provider)&&void 0!==d?d:Ee});if("NEEDS_PASSWORD_LOGIN"===(null==x?void 0:x.status))return et(),Ge(!1),void Ke(o("registration.alerts.passwordLoginTitle"),o("registration.alerts.passwordLoginDescription"));if("AUTHENTICATED"===(null==x?void 0:x.status)&&null!==(a=x.token)&&void 0!==a&&a.accessToken){var p;const t=null!==(p=e.provider)&&void 0!==p?p:Ee;x.isNewUser?((0,le.l6)(le.mB.RegistrationStarted),(0,le.Bh)("social_signup_completed",{provider:t})):(0,le.Bh)("social_login_completed",{provider:t,method:"social"});const o=Me(x.token.accessToken,!1);if(!o)return;return x.isNewUser||!o.completedProfile?void n("/signup-form"):void("undefined"!=typeof window&&(R(),window.location.href=(0,U.U)(u,r,x.token.accessToken)))}Ge(!1),Ke(o("registration.alerts.emailError"),o("registration.alerts.tryAgain"))}catch(g){if(Ge(!1),fe(g))return Xe(),void Ke(o("registration.alerts.invalidCodeTitle"),o("registration.alerts.invalidCodeDescription"),"warning");const e=he(g);if(e)return void Ke(o(e),o("registration.alerts.tryAgain"),"warning");if(et(),(e=>{const t=null==e?void 0:e.response;return!(null==t||!t.data)&&JSON.stringify(t.data).includes("SOCIAL_TICKET_EXPIRED")})(g))return void Ke(o("registration.social.fromPrivateTitle"),o("registration.social.fromPrivateDescription"),"info");Ke(o("registration.alerts.emailError"),o("registration.alerts.tryAgain")),pe.Cp(g)}},it=(0,O.Wx)({initialValues:{email:"",password:"",reason:[],recommender_co
1de:t,terms:!1,contactEmail:"",contactCode:""},validationSchema:me(o,Ze,$e),onSubmit:async e=>{if(Ze)return Je&&!Re?void await ot(e.contactEmail):void await nt(Ne?{ticket:Ne}:{provider:Ee,idToken:null!=De?De:void 0},Object.assign({reason:e.reason,terms:!0},Je?{contact_email:e.contactEmail,contact_code:e.contactCode}:{}));G(!0);const t=await ge.v4()||null;await ke(Object.assign({},e,{recommender_code:se,userIp:t,terms:!0})).then(t=>{t?((0,le.l6)(le.mB.RegistrationStarted),"undefined"!=typeof window&&n("/signup/confirmation",{state:{values:e}})):(G(!1),Ke(o("registration.alerts.emailError"),o("registration.alerts.tryAgain")))}).catch(e=>{if(G(!1),fe(e))return Xe(),void Ke(o("registration.alerts.invalidCodeTitle"),o("registration.alerts.invalidCodeDescription"),"warning");Ke(o("registration.alerts.emailError"),o("registration.alerts.tryAgain")),pe.Cp(e)})}});return(0,ce.jsx)(K.PZ,{sx:ue.A.root},(0,ce.jsx)(de,null),(0,ce.jsx)(x.A,{open:Ye,sx:ue.A.socialBackdrop},(0,ce.jsx)(f.A,{component:"img",src:W.A,alt:"CurrencyBird",sx:ue.A.socialBackdropBird}),(0,ce.jsx)(A.A,{color:"primary"}),(0,ce.jsx)(p.A,{sx:ue.A.socialBackdropText},o(Ze?"registration.social.creating":"apple"===Ee?"registration.social.connectingApple":"registration.social.connecting"))),(0,ce.jsx)(b.A,{open:je,onClose:tt,"aria-labelledby":"terms-dialog-title",TransitionComponent:C.A},(0,ce.jsx)(K.jx,{sx:ue.A.dialog},(0,ce.jsx)(y.A,{sx:ue.A.dialogActions},(0,ce.jsx)(f.A,{display:"flex",alignItems:"center",onClick:tt},(0,ce.jsx)(T.A,{edge:"start",color:"primary","aria-label":"Volver",sx:{borderRadius:2}},(0,ce.jsx)(a.A,null),(0,ce.jsx)(p.A,{variant:"button",color:"primary",marginLeft:1},o("registration.stepper.back"))))),(0,ce.jsx)(w.A,null,(0,ce.jsx)(j.A,null,(0,ce.jsx)(X.A,{isModal:!0}))))),(0,ce.jsx)(g.Ay,{container:!0,sx:ue.A.registerContainer},(0,ce.jsx)($.A,{size:"md",direction:"down"},(0,ce.jsx)(g.Ay,{item:!0,md:6,sx:ue.A.feather})),(0,ce.jsx)(g.Ay,{sx:ue.A.registerFormGroup,item:!0,xs:12,md:6,lg:5},q&&(0,ce.jsx)(m.A,{sx:ue.A.alertHolder},(0,ce.jsx)(J.A,{setAlertOpen:ee,open:q,title:te,description:ne,severity:re})),(0,ce.jsx)("form",{onSubmit:it.handleSubmit},(0,ce.jsx)(g.Ay,{container:!0,direction:"column"},(0,ce.jsx)(p.A,{component:"h1",variant:"h5"},o("registration.startRegistration")),(0,ce.jsx)(g.Ay,{sx:ue.A.registerSubtitle},Ze?(0,ce.jsx)("p",null,o("registration.socialConnected.hint")):(0,ce.jsx)(i.Fragment,null,(0,ce.jsx)("p",null,o("registration.alreadyRegistered")," ")," ",(0,ce.jsx)(K.v$,{href:"https://private.currencybird.cl/login"}," ",(0,ce.jsx)("p",null,(0,ce.jsx)("b",null," ",o("registration.signIn"))))))),Ze&&(0,ce.jsx)(m.A,null,(0,ce.jsx)(g.Ay,{container:!0,justifyContent:"center"},(0,ce.jsx)(g.Ay,{item:!0,xs:10,md:9,lg:9},(0,ce.jsx)(K.jx,{sx:ue.A.socialAccountHolder},(0,ce.jsx)(K.jx,{sx:ue.A.socialAccount},(0,ce.jsx)(K.jx,{sx:ue.A.socialAccountBadge},(0,ce.jsx)(s.A,null)),(0,ce.jsx)(K.jx,{sx:ue.A.socialAccountText},(0,ce.jsx)(K.oY,{sx:ue.A.socialAccountGreeting},He?o("registration.socialConnected.greetingWithName",{name:He}):o("registration.socialConnected.greeting")),(0,ce.jsx)(K.oY,{sx:ue.A.socialAccountEmail},Je?o("registration.relay.hiddenEmail"):Oe))),(0,ce.jsx)(K.oY,{sx:ue.A.socialAccountChange,onClick:et},o("registration.socialConnected.change")))))),(0,ce.jsx)(m.A,null,(0,ce.jsx)(g.Ay,{container:!0,justifyContent:"center",spacing:2},Je&&(0,ce.jsx)(i.Fragment,null,(0,ce.jsx)(g.Ay,{item:!0,xs:10,md:9,lg:9},(0,ce.jsx)(p.A,{variant:"body2",sx:{color:"text.secondary"}},o("registration.relay.hint"))),(0,ce.jsx)(g.Ay,{item:!0,xs:10,md:9,lg:9},(0,ce.jsx)(B.A,{fullWidth:!0,id:"contactEmail",name:"contactEmail",label:o("registration.relay.emailLabel"),value:it.values.contactEmail,onChange:it.handleChange,onBlur:it.handleBlur,variant:"outlined",autoComplete:"email",disabled:Re,error:it.touched.contactEmail&&Boolean(it.errors.contactEmail),helperText:it.touched.contactEmail&&it.errors.contactEmail})),Re&&(0,ce.jsx)(g.Ay,{item:!0,xs:10,md:9,lg:9},(0,ce.jsx)(B.A,{fullWidth:!0,id:"contactCode",name:"contactCode",label:o("registration.relay.codeLabel"),value:it.values.contactCode,onChange:it.handleChange,onBlur:it.handleBlur,variant:"outlined",autoComplete:"one-time-code",inputProps:{inputMode:"numeric",maxLength:6},error:it.touched.contactCode&&Boolean(it.errors.contactCode),helperText:it.touched.contactCode&&it.errors.contactCode||o("registration.relay.codeSentTo",{email:it.values.contactEmail})}),(0,ce.jsx)(K.oY,{sx:ue.A.socialAccountChange,onClick:()=>{Fe||ot(it.values.contactEmail)}},o("registration.relay.resend")))),!Ze&&(0,ce.jsx)(i.Fragment,null,(0,ce.jsx)(g.Ay,{item:!0,xs:10,md:9,lg:9},(0,ce.jsx)(B.A,{fullWidth:!0,id:"email",name:"email",label:o("registration.email"),value:it.values.email,onChange:it.handleChange,onBlur:it.handleBlur,variant:"outlined",autoComplete:"email",error:it.touched.email&&Boolean(it.errors.email),helperText:it.touched.email&&it.errors.email})),(0,ce.jsx)(g.Ay,{item:!0,xs:10,md:9,lg:9},(0,ce.jsx)(B.A,{fullWidth:!0,id:"password",name:"password",label:o("registration.createPassword"),type:ye?"text":"password",value:it.values.password,variant:"outlined",autoComplete:"new-password",onChange:it.handleChange,onBlur:it.handleBlur,InputProps:{endAdornment:(0,ce.jsx)(M.A,{position:"end"},(0,ce.jsx)(T.A,{tabIndex:-1,"aria-label":"toggle password visibility",onClick:()=>we(!ye),onMouseDown:()=>we(!ye)},ye?(0,ce.jsx)(c.A,null):(0,ce.jsx)(d.A,null)))},error:it.touched.password&&Boolean(it.errors.password),helperText:it.touched.password&&it.errors.password}),(0,ce.jsx)(L.A,{sx:ue.A.passwordHint},o("registration.passwordHint")))),(0,ce.jsx)(g.Ay,{item:!0,xs:10,md:9,lg:9},(0,ce.jsx)(k.A,{variant:"outlined",sx:ue.A.formControl},(0,ce.jsx)(E.A,{htmlFor:"outlined-age-native-simple"},o("registration.reasonLabel")),(0,ce.jsx)(N.A,{labelId:"selectReasonLabel",multiple:!0,name:"reason",value:it.values.reason,label:o("registration.reasonLabel"),onChange:it.handleChange,onBlur:it.handleBlur,renderValue:e=>e.map(e=>{const t=Ae.find(t=>t.value===e);return t?o("registration.reasons."+t.key):e}).join(", "),MenuProps:xe,inputProps:{name:"reason",id:"input-checkbox"}},Ae.map(e=>(0,ce.jsx)(z.A,{id:"menuItem",key:e.key,value:e.value},(0,ce.jsx)(I.A,null,(0,ce.jsx)(ve,{checked:it.values.reason.indexOf(e.value)>-1,color:"default"})),(0,ce.jsx)(D.A,{primary:o("registration.reasons."+e.key)})))),it.touched.reason&&it.errors.reason&&(0,ce.jsx)(L.A,{sx:ue.A.helperText},o("registration.reasonRequired")))),(0,ce.jsx)(g.Ay,{item:!0,xs:10,md:9,lg:9}
1,(0,ce.jsx)(S.A,{sx:ue.A.termsControl,control:(0,ce.jsx)(v.A,{checked:it.values.terms,onChange:it.handleChange,name:"terms",color:"primary"}),label:(0,ce.jsx)(K.oY,{sx:ue.A.termsLabel},o("registration.acceptTerms")," ",(0,ce.jsx)(K.oY,{sx:ue.A.termsLink,onClick:e=>{e.preventDefault(),e.stopPropagation(),Ce(!0)}},o("registration.termsAndConditions"))," ",o("registration.andThe")," ",(0,ce.jsx)(K.v$,{sx:ue.A.termsLink,href:"https://cbfrontpublic.s3.amazonaws.com/Poli%CC%81tica+de+Privacidad+y+Proteccio%CC%81n+de+Datos+CurrencyBird.pdf",target:"_blank",rel:"noreferrer",onClick:e=>e.stopPropagation()},o("registration.privacyPolicy")))}),it.touched.terms&&it.errors.terms&&(0,ce.jsx)(L.A,{sx:ue.A.helperText},it.errors.terms)),(0,ce.jsx)(g.Ay,{sx:Ze?ue.A.socialSubmitGroup:ue.A.registerSubmitGroup,item:!0,xs:10,md:9,lg:9},(0,ce.jsx)(h.A,{fullWidth:!0,startIcon:Y||Ye||Fe?(0,ce.jsx)(A.A,{size:"1rem"}):null,disabled:Y||Ye||Fe,color:"primary",variant:"contained",type:"submit",endIcon:(0,ce.jsx)(l.A,null)},o(Je&&!Re?"registration.relay.sendCode":Ze?"registration.socialConnected.submit":"registration.continue"))),!Ze&&(Qe||Ve)&&(0,ce.jsx)(g.Ay,{item:!0,xs:10,md:9,lg:9,sx:ue.A.socialGroup},(0,ce.jsx)(K.jx,{sx:ue.A.socialDivider},o("registration.social.or")),Qe&&(0,ce.jsx)(Z.A,{onCredential:e=>nt({provider:"google",authCode:e}),disabled:Ye}),Ve&&(0,ce.jsx)(V.A,{onCredential:e=>nt({provider:"apple",idToken:e}),disabled:Ye}))))))))};var ye=e=>{let{recommenderCode:t}=e;return(0,ce.jsx)(be,{code:t})},we=o(87746);var je=e=>{let{params:t,location:o}=e;const{setIsCompany:n}=(0,U.a)(),a=new URLSearchParams(o.search),s=t.recommender_code||a.get("recommender_code")||a.get("code")||"";return(0,i.useEffect)(()=>{n(!1)},[]),(0,ce.jsx)(r.A,null,(0,ce.jsx)(ye,{recommenderCode:s}))};const Ce=e=>{const{t:t,language:o,originalPath:i}=(0,n.mq)(e);return(0,ce.jsx)(we.A,{language:o,originalPath:i,title:t("pages.registerTitle","Registrate"),description:t("pages.registerDescription","")})}},92659:function(e,t,o){var n=o(24994);t.A=void 0;var i=n(o(42032)),r=o(74848);t.A=(0,i.default)((0,r.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},94017:function(e,t,o){var n=o(24994);t.A=void 0;var i=n(o(42032)),r=o(74848);t.A=(0,i.default)((0,r.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")}}]); 2//# sourceMappingURL=component---src-pages-register-tsx-905e8febe1f7ff0eba57.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.