(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[846],{204324:(e,t,n)=>{n.d(t,{Z:()=>r});var s=n(78714),i=n(276775),o=n(50286);function r(){const e=(0,i.useHistory)(),t=(0,o.HG)();return n=>{t?(0,s.Z)(n,{disableOriginCheck:!0}):e.push(n)}}},989392:(e,t,n)=>{n.d(t,{Z:()=>s});const s=e=>{const t=new Date;return new Date(1e3*e)<=new Date(t.getFullYear()-18,t.getMonth(),t.getDate())}},472644:(e,t,n)=>{n.d(t,{Z:()=>i});var s=n(785893);function i({size:e}){return(0,s.jsx)("svg",{height:e,viewBox:"0 0 512 512",width:e,xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,s.jsx)("path",{d:"M482.56 261.36c0-16.73-1.5-32.83-4.29-48.27H256v91.29h127.01c-5.47 29.5-22.1 54.49-47.09 71.23v59.21h76.27c44.63-41.09 70.37-101.59 70.37-173.46z",fill:"#4285f4"}),(0,s.jsx)("path",{d:"M256 492c63.72 0 117.14-21.13 156.19-57.18l-76.27-59.21c-21.13 14.16-48.17 22.53-79.92 22.53-61.47 0-113.49-41.51-132.05-97.3H45.1v61.15c38.83 77.13 118.64 130.01 210.9 130.01z",fill:"#34a853"}),(0,s.jsx)("path",{d:"M123.95 300.84c-4.72-14.16-7.4-29.29-7.4-44.84s2.68-30.68 7.4-44.84V150.01H45.1C29.12 181.87 20 217.92 20 256c0 38.08 9.12 74.13 25.1 105.99l78.85-61.15z",fill:"#fbbc05"}),(0,s.jsx)("path",{d:"M256 113.86c34.65 0 65.76 11.91 90.22 35.29l67.69-67.69C373.03 43.39 319.61 20 256 20c-92.25 0-172.07 52.89-210.9 130.01l78.85 61.15c18.56-55.78 70.59-97.3 132.05-97.3z",fill:"#ea4335"}),(0,s.jsx)("path",{d:"M20 20h472v472H20V20z"})]})})}},711781:(e,t,n)=>{n.d(t,{Z:()=>s});const s=e=>{return JSON.parse(decodeURIComponent(atob((t=e.split(".")[1],(t||"").replace(/-/g,"+").replace(/_/g,"/"))).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join("")));var t}},962482:(e,t,n)=>{n.d(t,{Z:()=>r});var s=n(898781),i=n(883119),o=n(785893);const r=({isInModal:e})=>{const t=(0,s.ZP)();return(0,o.jsx)(i.xu,{alignItems:"center",display:"flex",height:"100%",justifyContent:"center",left:!0,position:e?"absolute":"fixed",top:!0,width:"100%",zIndex:new i.Ry(1),dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(255, 255, 255, .5)"}},children:(0,o.jsx)(i.$j,{accessibilityLabel:t.bt("Loading", "Loading", "Full page loading state", undefined, true),show:!0})})}},160561:(e,t,n)=>{n.d(t,{Z:()=>f});var s=n(667294),i=n(711781),o=n(472644),r=n(107287),l=n(898781),a=n(348584),c=n(883119),d=n(785893);function u(){const e=(0,l.ZP)(),[t,n]=(0,s.useState)();return(0,a.Z)()?null:(0,d.jsxs)(c.xu,{position:"relative",children:[(0,d.jsx)(c.iP,{onTap:()=>n(!0),children:(0,d.jsxs)(c.xu,{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:40,rounding:"pill",color:"secondary",children:[(0,d.jsx)(c.xu,{height:24,width:24,marginTop:1,children:(0,d.jsx)(o.Z,{size:20})}),(0,d.jsx)(c.xu,{marginStart:2,children:(0,d.jsx)(c.xv,{weight:"bold",children:e.bt("Connect with Google", "Connect with Google", "googleConnectButtonWithDisabledSDK.buttonText", undefined, true)})})]})}),t&&(0,d.jsx)(r.Z,{type:"google",onDismiss:()=>n(!1)})]})}var h=n(83969),_=n(773285),g=n(524172),p=n(867820);function b({onGoogleConnectSuccess:e}){const t=(0,s.useRef)(null),n=(0,g.M)(),o=(0,s.useRef)(e);return(0,s.useEffect)((()=>{o.current=e}),[e]),(0,s.useEffect)((()=>{const e=({credential:e,select_by:t})=>{(0,p.My)(`unauth_mweb.gsi_button.select_by.${t}`),(0,p.NC)("press_google_connect_button");const n=(0,i.Z)(e);o.current({google_open_id_token:e,autologin:!1},{type:"google",google_open_id_token:e,first_name:n.given_name,last_name:n.family_name,image_url:n.picture})};return(async()=>{await(null==n?void 0:n.ensureInit("button",e)),(0,h.ru)({buttonRef:t,isDesktop:!1})})(),()=>{null==n||n.removeButtonCallback(e)}}),[n]),(0,d.jsx)(c.xu,{position:"relative",children:(0,d.jsx)(c.iP,{onTap:()=>(0,p.My)("gsi_personalized_button.tap"),children:(0,d.jsx)(c.xu,{"aria-label":"GOOGLE_SIGNIN_BUTTON",height:44,children:(0,d.jsx)(c.xu,{ref:t,position:"absolute",width:"100%"})})})})}function f(e){const{checkExperiment:t}=(0,_.F)(),{anyEnabled:n}=t("mweb_google_disabled");return n?(0,d.jsx)(u,{}):(0,d.jsx)(b,{onGoogleConnectSuccess:e.onGoogleConnectSuccess})}},783188:(e,t,n)=>{n.d(t,{Z:()=>j,R:()=>v});var s=n(667294),i=n(157796),o=n(391254),r=n(883119),l=n(100183);const a={yellow:"#FAB904",orange:"#FF6400",green:"#0FA573",blue:"#0074e8",successBase:"#B469EB"},c="DelightfulBubbles__",d=[`${c}fadeIn {\n  to {\n    opacity: 1;\n  }\n}\n`,`${c}growShrink {\n  0% {\n    transform: scale(0);\n  }\n  50% {\n    transform: scale(1);\n  }\n  100% {\n    transform: scale(0);\n  }\n}\n`,`${c}swirl {\n  0% {\n    transform: rotate(0deg) translateX(-50%);\n  }\n  100% {\n    transform: rotate(-360deg) translateX(-50%);\n  }\n}\n`,...Object.keys(a).map((e=>{const t=((e,t)=>{const n=e.length,s=e.indexOf(t)+1>=n?0:e.indexOf(t)+1;return e[s]})(Object.keys(a),e);return`${c}colorChange_${e} {\n      0% {\n        background-color: ${a[e]};\n      }\n      50% {\n        background-color: ${a[t]};\n      }\n    }\n    `}))],u=(0,l.Ll)(d);var h=n(785893);function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=e=>{const{delay:t,diameter:n,height:s,initialColor:i,width:o,xOffset:l,yOffset:d}=e,u=((e,t,n,s,i,o,r,l)=>({bubblePositionStyles:{position:"absolute",marginLeft:o/2-i+"px",marginTop:n/2-i+"px",left:`${r}px`,top:`${l}px`},bubbleSwirlStyles:{animation:`${c}swirl 6s ease-in-out ${e}s infinite forwards`,WebkitAnimation:`${c}swirl 6s ease-in-out ${e}s infinite forwards`},bubbleGrowShrinkStyles:{transform:"scale(0)",WebkitTransform:"scale(0)",animation:`${c}growShrink 6s ease-in-out ${e}s infinite alternate`,WebkitAnimation:`${c}growShrink 6s ease-in-out ${e}s infinite alternate`},bubbleShapeStyles:{height:`${t}px`,width:`${t}px`,borderRadius:"50%",backgroundColor:a[s],opacity:0,animation:`${c}colorChange_${s} 12s steps(1, start) ${e}s infinite forwards,\n      ${c}fadeIn 3s linear ${e}s 1 forwards`,WebkitAnimation:`${c}colorChange_${s} 12s steps(1, start) ${e}s infinite forwards,\n      ${c}fadeIn 3s linear ${e}s 1 forwards`}}))(t,n,s,i,Math.floor(n/2),o,l,d);return(0,h.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:u.bubblePositionStyles},children:(0,h.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:u.bubbleSwirlStyles},children:(0,h.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:u.bubbleGrowShrinkStyles},children:(0,h.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:u.bubbleShapeStyles}})})})})};class p extends s.Component{constructor(...e){super(...e),_(this,"state",{isInitialized:!1})}componentDidMount(){window.requestAnimationFrame((()=>{this.setState({isInitialized:!0})}))}shouldComponentUpdate(e,t){return!e.numBubbles===this.props.numBubbles||!t.isInitialized===this.state.isInitialized}getSize(){const{width:e,height:t}=this.props;return void 0!==e&&void 0!==t?{width:e,height:t}:this.containerElement?{height:this.containerElement.offsetHeight,width:this.containerElement.offsetWidth}:{height:void 0,width:void 0}}createBubbles(e,t){const{bubbleSize:n,delayFactor:s,delayOffset:i,numBubbles:o,xRadiusAdjustment:r,yRadiusAdjustment:c}=this.props,d=e+2*c,u=t+2*r,_=[],p=Object.keys(a);for(let a=0;a<o;a+=1){const o=n+(0,l.XF)(-4,4),r=p[a%p.length],{x:c,y:b}=(0,l.CC)(d,u);_.push((0,h.jsx)(g,{delay:a*s+i,diameter:o,initialColor:r,xOffset:c,yOffset:b,height:e,width:t},a))}return _}render(){const{height:e,width:t}=this.getSize();return(0,h.jsxs)(r.xu,{height:e,width:t,position:"relative",children:[(0,h.jsx)(o.Z,{unsafeCSS:u}),(0,h.jsxs)(r.xu,{position:"absolute",ref:e=>this.containerElement=e,children:[this.state.isInitialized&&this.createBubbles(e||0,t||0),(0,h.jsx)(r.xu,{position:"relative",children:this.props.children})]})]})}}_(p,"defaultProps",{bubbleSize:16,numBubbles:10,xRadiusAdjustment:0,yRadiusAdjustment:0,delayFactor:1,delayOffset:0});const b=p;var f=n(962482),x=n(898781),m=n(81636),y=n(780280),w=n(116485);const v=e=>new Set([...w.EU,...w.rT,...w.IO]).has(e);function j({isReducedHeader:e,progressBarAnimationDuration:t}){const n=(0,x.ZP)(),{country:o}=(0,y.B)(),l=v(o);return(0,h.jsx)(s.Fragment,{children:l?(0,h.jsx)(m.Z,{log:{view_type:10,view_parameter:259},children:(0,h.jsxs)(r.xu,{position:"fixed",top:!0,left:!0,right:!0,bottom:!0,width:"100%",color:"default",children:[(0,h.jsx)(i.Z,{color:"dark",duration:t||3e3,finalProgress:95}),(0,h.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",height:"100%",children:[(0,h.jsxs)(r.xu,{margin:10,children:[(0,h.jsx)(r.X6,{overflow:"normal",size:e?"500":"600",children:n.bt("Your account is being created.", "Your account is being created!", "account created heading", undefined, true)}),(0,h.jsx)(r.xv,{overflow:"normal",children:n.bt("You can now save ideas, get personalised recommendations and more", "You can now save ideas, get personalized recommendations, and more", "loading state description while waiting for any sign up registration to complete", undefined, true)})]}),(0,h.jsx)(r.kC,{alignItems:"center",flex:"grow",justifyContent:"center",children:(0,h.jsx)(b,{delayOffset:-5,xRadiusAdjustment:40,yRadiusAdjustment:40,children:(0,h.jsx)(r.xu,{alignItems:"center",color:"lightWash",direction:"column",display:"flex",height:120,justifyContent:"end",overflow:"hidden",rounding:"circle",width:120,children:(0,h.jsx)(r.JO,{accessibilityLabel:n.bt("Loading", "Loading", "Loading state for any sign up registration", undefined, true),color:"subtle",icon:"person",size:"90"})})})})]})]})}):(0,h.jsx)(f.Z,{})})}},122485:(e,t,n)=>{n.d(t,{m:()=>z});var s=n(702664),i=n(231486),o=n(957161),r=n(116485);function l(){return function(e){const t={};return e.forEach((e=>{const n=JSON.parse((0,o.qn)(e));n&&(t[e]=n)})),JSON.stringify(t)}([r.E9])}var a=n(441143),c=n.n(a),d=n(172071),u=n(6637),h=n(594881),_=n(421322),g=n(383690),p=n(112690),b=n(69642),f=n(330102),x=n(957191),m=n(226198),y=n(622096),w=n(783188),v=n(867820),j=n(962832),C=n(773285),S=n(584595),k=n(45169),A=n(529195);const z=()=>{const e=(0,C.F)(),t=(0,s.useDispatch)(),{country:n,country_from_hostname:o,country_from_ip:r,region_from_ip:a,isAuthenticated:z}=(0,s.useSelector)((({session:e})=>e)),P=(0,g.Z)(),E=(0,p.Z)(),D=(0,b.Z)();return(s,{signupAttemptContextEvent:g})=>{const p=(0,k.yV)(s);E({...g,event_type:7537}),D({action:"signup",event:"attempt",type:p}),P();let b=0;const C=(0,w.R)(n),I=new Promise(((e,t)=>{C?setTimeout((()=>{e()}),3e3):e()}));return new Promise(((w,C)=>{const P=()=>{var O;const Z=z,$=(0,A.t_)(),R=(0,A.OJ)(),B={...s,user_behavior_data:l(),visited_pages:$};R&&(B.referrer=R),d.Z.increment("webapp.debug_signup_type.redux_registration",1,{CHECK_TYPE:null!==(O=(0,k.Eh)(B,"CHECK_TYPE"))&&void 0!==O?O:"none",CHECK_EXISTS:(0,k.Eh)(B,"DEPRECATED_CHECK_EXISTS"),CHECK_TRUTHY:(0,k.Eh)(B,"DEPRECATED_CHECK_TRUTHY")}),u.Z.create("UserRegisterResource",{...B,get_user:!0}).callCreate().then((i=>I.then((()=>{(0,y.L_)("d_pif_invite");const l=i.client_context;c()(i.resource_response,"Register response is invalid"),t({type:"REGISTER_USER",payload:{user:i.resource_response.data.user}}),l&&(l.placed_experiences&&t((0,x.OD)(l.placed_experiences)),e.active=l.active_experiments,e.triggerable=l.triggerable_experiments),Z&&(0,_.Z)("registration.signup_success");const d=s.email||s.username||null,u=s.password||null,b=navigator.credentials;if(b&&d&&u)try{const e=new window.PasswordCredential({id:d,password:u});(0,v.My)("unauth_mweb.navigatorCredentials.store.attempt"),b.store(e).then((()=>{(0,v.My)("unauth_mweb.navigatorCredentials.store.success")}))}catch(m){(0,v.My)("unauth_mweb.navigatorCredentials.store.error")}E({...g,event_type:7487}),D({action:"signup",event:"success",type:p}),(0,h.Z)(),Z&&(0,j.Dm)(),(0,f.ko)({country:n,countryFromHostName:o,countryFromIp:r,regionFromIp:a,deviceType:"Mobile",eventCategory:"NewUsers"}),w()})))).catch((e=>{(null==e?void 0:e.api_error_code)===S.tz&&((0,v.My)("multi_step_set_age_restrict_cookie"),i.t8(m.It,"1",(0,i.kZ)(m.It))),b<3&&[S.dO,S.cZ].includes(null==e?void 0:e.api_error_code)?(b+=1,P()):(E({...g,event_type:7488}),D({action:"signup",event:"fail",type:p}),Z&&(0,_.Z)("registration.signup_error"),C(e))}))};P()}))}}},107287:(e,t,n)=>{n.d(t,{Z:()=>l});var s=n(121151),i=n(898781),o=n(883119),r=n(785893);function l({type:e,onDismiss:t}){const n=(0,i.ZP)(),l="facebook"===e?n.bt("Facebook isn't available", "Oops! Facebook isn't available", "socialAuthDisabled.facebook.title", undefined, true):n.bt("Google isn't available", "Oops! Google isn't available", "socialAuthDisabled.google.title", undefined, true),a="facebook"===e?n.bt("It looks as though Facebook isn't available at the moment. Give another option a try or refresh the page and try again later.", "Looks like Facebook isn't available right now. Give another option a try or refresh the page and try again later.", "socialAuthDisabled.facebook.description", undefined, true):n.bt("It looks as though Google isn't available at the moment. Give another option a try or refresh the page and try again later.", "Looks like Google isn't available right now. Give another option a try or refresh the page and try again later.", "socialAuthDisabled.google.description", undefined, true);return(0,r.jsx)(s.ZP,{accessibilityModalLabel:"",mobileHideCloseIcon:!0,isOpen:!0,onDismiss:t,type:"social_auth_disabled_modal",children:(0,r.jsxs)(o.xu,{padding:5,children:[(0,r.jsx)(o.xu,{marginBottom:3,children:(0,r.jsx)(o.X6,{size:"500",accessibilityLevel:1,children:l})}),(0,r.jsx)(o.xu,{marginBottom:3,children:(0,r.jsx)(o.xv,{children:a})}),(0,r.jsx)(o.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:(0,r.jsx)(o.xu,{paddingY:1,children:(0,r.jsx)(o.zx,{accessibilityLabel:n.bt("OK", "OK", "socialAuthDisabled.okButton", undefined, true),size:"lg",color:"red",text:n.bt("OK", "OK", "socialAuthDisabled.okButton", undefined, true),onClick:t})})})]})})}}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/846.en_AU-e6666f0b3372c277.mjs.map