(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[69],{"0K1N":function(e,t,o){t.a=e=>`//connect.facebook.net/${(e=>{const t=e.replace(/-/g,"_");if(t.startsWith("es"))return"es_LA";if(t.startsWith("ar"))return"ar_AR";switch(t){case"de":return"de_DE";case"fr":return"fr_FR";case"it":return"it_IT";case"ja":return"ja_JP";case"nl":return"nl_NL";case"tr":return"tr_TR";case"en_AU":return"en_US";default:return t}})(e)}/sdk.js`},"2hay":function(e,t,o){o.d(t,"a",(function(){return s})),o.d(t,"b",(function(){return a})),o.d(t,"g",(function(){return c})),o.d(t,"f",(function(){return l})),o.d(t,"d",(function(){return u})),o.d(t,"e",(function(){return d})),o.d(t,"i",(function(){return h})),o.d(t,"h",(function(){return b})),o.d(t,"c",(function(){return g}));var n=o("0K1N"),i=o("37no");const s="274266067164",r=["picture.type(large)","id","first_name","last_name","email","gender","birthday"],a=["public_profile","email","user_birthday","user_friends"],c=()=>{"undefined"!=typeof window&&window.FB&&window.FB.init({appId:s,status:!0,xfbml:!0,version:"v2.7"})},l=e=>Object(i.c)(Object(n.a)(e),i.a.FACEBOOK).then(c),u=()=>new Promise(e=>{"undefined"!=typeof window&&window.FB&&window.FB.getLoginStatus(e)}),d=(e,t={},o)=>new Promise((n,i)=>{if("connected"===e.status){o&&o("success");const{authResponse:{userID:i,accessToken:s}}=e,a={facebook_id:i,facebook_token:s,facebook_autologin:t.autologin||!1},c="/me?fields="+r.join(",");window.FB.api(c,e=>{n({creds:a,data:{...e,...a,...e.picture&&!e.picture.data.is_silhouette?{image_url:e.picture.data.url}:{}}})})}else{const t=e.status||"unknown";o&&o("failure."+t),i({status:t})}}),h=(e,t)=>{const o=e.data;e.isTrusted&&"string"==typeof o&&0===o.indexOf("_FB_")&&-1!==o.indexOf("type=login_button_dialog_open")&&t&&t("facebook_connect.login_button_dialog_open")},b=()=>new Promise(e=>{window.FB.login(e,{scope:a.join(",")})}).then(d),g=e=>new Promise((t,o)=>{window.FB.api("/me/permissions",n=>{const i=n.data;if(i){const o=i.find(t=>t.permission===e&&"granted"===t.status);return t({hasPerm:!!o})}return o(Error("Failed to call facebook to get permission"))})})},Wm3C:function(e,t,o){function n(e=5){const t="abcdefghijklmnopqrstuvwxyz1234567890";return new Array(e).fill("").map(()=>t[Math.floor(Math.random()*t.length)]).join("")}o.d(t,"a",(function(){return n}))},fs0a:function(e,t,o){var n=o("q1tI"),i=o("/MKj"),s=o("Hgxh"),r=o("28DW"),a=o("QAzJ"),c=o("yweb"),l=o("2hay"),u=o("n6mq"),d=o("nKUr");function h(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const b={defaultButton:{display:"flex",alignItems:"center",backgroundColor:"#1877F2",border:"none",height:"40px",transition:"opacity .2s linear",width:"100%",minWidth:"240px",borderRadius:"20px",padding:"0px 0px 0px 8px"},roundedButton:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#FFF",border:"none",height:"48px",transition:"opacity .2s linear",width:"48px",marginBottom:"8px",borderRadius:"50%"},buttonText:{fontFamily:"Helvetica, Arial, sans-serif",fontWeight:"bold",color:"#fff",fontSize:"16px",paddingRight:"8px",letterSpacing:"0.25px"}};class g extends n.Component{constructor(...e){super(...e),h(this,"state",{fbReady:!1,showSocialAuthDisabledModal:!1}),h(this,"connectCallback",({creds:e,data:t})=>{this.props.onFacebookConnectSuccess(e,t)}),h(this,"handleConnectClick",()=>{Object(r.a)("unauth_mweb.facebook_connect.button_click");const{onTouch:e,mwebFacebookDisabled:t}=this.props;e&&e(),t?this.setState({showSocialAuthDisabledModal:!0}):this.state.fbReady&&Object(l.h)().then(this.connectCallback,this.props.onFacebookConnectError)}),h(this,"renderRoundButton",()=>Object(d.jsxs)(u.u,{alignItems:"center",direction:"column",justifyContent:"start",children:[Object(d.jsx)("button",{onClick:this.handleConnectClick,style:b.roundedButton,type:"button",children:Object(d.jsx)(u.w,{accessibilityLabel:this.props.i18n._("facebook","accessible label for facebook icon","accessible label for facebook icon"),color:"blue",icon:"facebook",inline:!0,size:20})}),Object(d.jsx)(u.cb,{color:"white",size:"md",children:this.props.i18n._("Facebook","Facebook company name","Facebook company name")})]}))}componentDidMount(){this.props.mwebFacebookDisabled||(Object(l.f)(this.props.locale).then(()=>{this.setState({fbReady:!0})}),window.addEventListener("message",this.handleMessageEvent,!1))}handleMessageEvent(e){Object(l.i)(e,e=>Object(r.a)("unauth_mweb."+e))}componentWillUnmount(){window.removeEventListener("message",this.handleMessageEvent)}renderPersonalizedButton(){const{isRerequest:e}=this.props,t=(this.props.type||"continue")+"_with",o="rounded",n=this.props.fbUseContinueAs?"true":"false";return Object(d.jsxs)(u.f,{bottom:!0,left:!0,right:!0,top:!0,dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},position:"absolute",rounding:5,children:[e?Object(d.jsx)("div",{className:"fb-login-button","data-width":"100%","data-max-rows":"1","data-size":"large","data-button-type":t,"data-layout":o,"data-show-faces":"false","data-auth-type":"rerequest","data-scope":l.b.join(","),"data-auto-logout-link":"false","data-use-continue-as":n}):Object(d.jsx)("div",{className:"fb-login-button","data-width":"100%","data-max-rows":"1","data-size":"large","data-button-type":t,"data-layout":o,"data-show-faces":"false","data-scope":l.b.join(","),"data-auto-logout-link":"false","data-use-continue-as":n}),this.state.showSocialAuthDisabledModal&&Object(d.jsx)(s.a,{type:"facebook",onDismiss:()=>this.setState({showSocialAuthDisabledModal:!1})})]})}render(){const{isRounded:e}=this.props;return e?this.renderRoundButton():Object(d.jsxs)(u.f,{position:"relative","data-test-id":"FacebookConnectContainer",children:[this.renderPersonalizedButton(),Object(d.jsxs)("button",{onClick:this.handleConnectClick,style:b.defaultButton,type:"button","data-test-id":"FacebookConnectButton",children:[Object(d.jsx)(u.f,{color:"white",rounding:3,dangerouslySetInlineStyle:{__style:{paddingTop:"5px",paddingLeft:"3px",paddingRight:"2px",marginLeft:"4px",marginRight:"4.4px"}},children:Object(d.jsx)(u.w,{accessibilityLabel:this.props.i18n._("facebook","accessible label for facebook icon","accessible label for facebook icon"),color:"blue",icon:"facebook",inline:!0,size:19})}),Object(d.jsx)(u.f,{alignItems:"center",display:"flex",justifyContent:"center",flex:"grow",marginEnd:1,children:Object(d.jsx)("span",{style:b.buttonText,children:this.props.buttonText})})]}),this.state.showSocialAuthDisabledModal&&Object(d.jsx)(s.a,{type:"facebook",onDismiss:()=>this.setState({showSocialAuthDisabledModal:!1})})]})}}var p=Object(i.connect)(e=>({locale:e.session.locale}))((function(e){const t=Object(c.c)(),{anyEnabled:o}=Object(a.b)("mweb_facebook_disabled");return Object(d.jsx)(g,{...e,i18n:t,mwebFacebookDisabled:o})})),m=o("k1Bv"),f=o("yep/"),j=o("bcHz"),w=o("u0Kf"),x=o("Wm3C"),_=o("jv6g"),O=o.n(_),y=o("kmwA"),k=o("hZxF"),L=o("RNo4"),T=o("pLLR"),C=o("0G5S");const S={defaultButton:{display:"flex",alignItems:"center",backgroundColor:"#00C300",border:"none",height:"40px",transition:"opacity .2s linear",width:"100%",borderRadius:"20px",padding:"0px 0px 0px 8px"},lineLogo:{borderRadius:"12px",backgroundColor:"#00C300",width:"32px",height:"32px"},buttonText:{fontWeight:"bold",color:"#fff",fontSize:"16px",paddingRight:"33px"}};var E=({buttonText:e,onLineConnectSuccess:t,onLineConnectError:o,onTouch:n})=>{const i=Object(c.c)(),{anyEnabled:s}=Object(a.a)("mweb_line_oauth_jp")(),{anyEnabled:l}=Object(a.a)("mweb_line_oauth_jp_android")(),h=s||l,b=Object(x.a)(10),{locale:g}=Object(T.d)();let p;const m=e=>{const n=Object(L.l)(e);if(n.state&&n.code&&n.state===b){p&&!p.closed&&p.close();const e=window.location.origin+"/oauth/line/redirect";Object(w.b)({url:"/oauth/line/verify",type:"POST",data:{code:n.code,redirect_uri:e}}).then(({ok:e,responseText:n})=>{if(e&&n){const e=JSON.parse(n),{id_token:o,access_token:i}=e;o&&i&&t({line_id_token:o,line_access_token:i},{line_id_token:o,line_access_token:i})}else o()})}},f=e=>{e.isTrusted&&e.origin===window.location.origin&&e.data&&m(String(e.data))},j=e=>{if(e.isTrusted&&e.url.startsWith(window.location.origin)&&"lineOAuthOneTimeCode"===e.key){const e=Object(C.a)("lineOAuthOneTimeCode");e&&m(e)}};Object(k.a)(()=>()=>{window.removeEventListener("message",f),window.removeEventListener("storage",j),Object(C.b)("lineOAuthOneTimeCode"),p&&!p.closed&&p.close()});const _=S.defaultButton;return h?Object(d.jsx)(u.f,{position:"relative","data-test-id":"LineConnectContainer",children:Object(d.jsxs)("button",{onClick:()=>{Object(r.a)("unauth_mweb.line_connect.button_click"),n&&n();const e=window.location.origin+"/oauth/line/redirect";window.addEventListener("message",f,!1),window.addEventListener("storage",j),p=window.open("https://access.line.me/oauth2/v2.1/authorize?response_type=code&client_id="+y.a.settings.LINE_CLIENT_ID+"&redirect_uri="+encodeURIComponent(e)+"&state="+b+"&ui_locales="+g+"&scope=profile%20openid%20email","_blank")},style:_,type:"button","data-test-id":"LineConnectButton",children:[Object(d.jsx)("img",{style:S.lineLogo,src:O.a,alt:i._("line","accessible label for line icon","accessible label for line icon")}),Object(d.jsx)(u.u,{alignItems:"center",justifyContent:"center",flex:"grow",children:Object(d.jsx)("span",{style:S.buttonText,children:e})})]})}):null},v=o("B/oJ"),B=o("6adH"),A=o("QtD7"),R=o("ANjH"),F=o("TXO6"),P=o("Q5BC"),I=o("vKjI"),D=o("VL22"),U=o("ulr2"),z=o("YWST"),M=o("EC67"),N=o("PmFr"),G=o("J8m7"),W=o("IAo4"),q=o("AGnR");function H(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class K extends n.PureComponent{constructor(...e){super(...e),H(this,"state",{isLoading:!1,showRegisterLoading:!1,signupPlatform:"default"}),H(this,"onRegisterSuccess",e=>{const{isRedirectToNextParamAfterSignup:t,next:o}=this.props;this.trackSignupLoginEvent(7487,e),["facebook","google"].includes(e)&&(t&&o&&this.props.history.push(o),this.props.history.push("/")),this.setState({showRegisterLoading:!1})}),H(this,"onRegisterFailure",(e,t)=>{this.trackSignupLoginEvent(7488,t),this.props.showToast({text:e.message||this.props.i18n._("Sorry! Something went wrong on our end.","Error logging on","Error logging on")}),this.setState({isLoading:!1,showRegisterLoading:!1})}),H(this,"handlePostLoginRegistration",(e,t)=>{const{beforeRegister:o,isSignupConfirmationExpEnabled:n}=this.props;o&&n()?o(e,t):t()}),H(this,"onLoginError",(e,t,o,n)=>{this.setState({isLoading:!1}),!t||t.apiErrorCode!==G.y&&t.apiErrorCode!==G.m&&t.apiErrorCode!==G.s?t?(Object(r.j)("mweb_login_button_skip_register.api_error_code."+t.apiErrorCode),this.props.showToast({text:t.apiErrorCode&&t.message?t.message:this.props.i18n._("Sorry, we can't log you in.","Error message when user having trouble login in.","Error message when user having trouble login in.")})):(Object(r.j)("unauth_mweb.login.unexpected_error"),this.props.showToast({text:this.props.i18n._("Sorry, we can't log you in.","Error message when user having trouble login in.","Error message when user having trouble login in.")})):"line"===n||o.email||o.gplus_id_token?"line"===n?t.apiErrorCode===G.s?this.redirectToLineEmailCollect(o):this.registerAfterLoginError(e,t,o,n):this.handlePostLoginRegistration(o.email||"",()=>this.registerAfterLoginError(e,t,o,n)):Object(l.c)("email").then(({hasPerm:i})=>{this.handlePostLoginRegistration("",()=>this.redirectToEmailCollect(o,e,t,n)),Object(r.j)("unauth_mweb.reg_via_fb.has_email_perm."+String(!!i))}).catch(i=>{this.handlePostLoginRegistration("",()=>this.registerAfterLoginError(e,t,o,n))})}),H(this,"getAuxDataSignupLoginMethod",e=>{switch(e){case"facebook":return 2;case"google":return 3;case"line":return 8;default:return}}),H(this,"getViewParameterType",e=>{switch(e){case"facebook":return 3205;case"google":return 3204;case"line":return 3556;default:return}}),H(this,"trackSignupLoginEvent",(e,t)=>{const{isAuthenticated:o,isLimitedLoginUser:n}=this.props;Object(q.e)({event_type:e,view_type:10,view_parameter:this.getViewParameterType(t),aux_data:{...o?{login_state:n?2:1}:{},signup_login_method:this.getAuxDataSignupLoginMethod(t)}})}),H(this,"trackButtonTap",e=>{const{isAuthenticated:t,isLimitedLoginUser:o,viewParameter:n}=this.props;Object(q.h)({view_type:10,view_parameter:n,element:e,aux_data:{...t?{login_state:o?2:1}:{}}})}),H(this,"registerAfterLoginError",(e,t,o,n)=>{"line"!==n&&this.includeAgeStep(n,o)?this.props.history.push({pathname:"/signup/thirdpartyage/",state:{signupOptions:o,signupPlatform:n}}):("facebook"===n&&o.birthday&&(o.birthday=String(Object(W.a)(o.birthday||""))),this.setState({isLoading:!0,showRegisterLoading:!0,signupPlatform:n}),this.trackSignupLoginEvent(7537,n),this.props.register(o).then(e=>this.onRegisterSuccess(n),e=>this.onRegisterFailure(e,n)))}),H(this,"redirectToEmailCollect",(e,t,o,n)=>{const{country:i}=this.props;this.props.history.push({pathname:"/signup/fbemailcollect/",state:{signupOptions:e,isGDPREUCountry:Object(D.d)(i),country:i,includeAgeStep:this.includeAgeStep("facebook",e)}})}),H(this,"redirectToLineEmailCollect",e=>{this.props.history.push({pathname:"/signup/line-email-collect/",state:{signupOptions:e}})}),H(this,"includeAgeStep",(e,t)=>{const{country:o}=this.props,n="facebook"!==e||!t.birthday,i=Object(D.d)(o),s=N.b.includes(o),r=N.k.has(o);return!!(i||s||r)&&(!!n||!Object(W.b)(t.birthday||"",18))}),H(this,"handleFacebookError",()=>{const{fbConnectHandler:e}=this.props;e&&e("error"),this.props.showToast({text:this.props.i18n._("Unable to connect to Facebook","Error logging on with Facebook","Error logging on with Facebook")})}),H(this,"handleLineError",()=>{this.props.showToast({text:this.props.i18n._("Unable to connect to Line","Error logging on with Line","Error logging on with Line")})}),H(this,"handleSignupTouch",({event:e})=>{const{from:t,history:o,isBusiness:n,next:i,onSignupTouch:s,setLoginSignupFrom:a,location:c,isRedirectToNextParamAfterSignup:l}=this.props;e&&(e.stopPropagation(),e.preventDefault()),Object(r.h)("press_email_signup"),Object(r.i)({action:"click",page_location:c,item:"continue-email-button"}),s&&s(),t&&a(t),this.trackButtonTap(31),o.push({pathname:n?"/business/signup/step1/":"/signup/step1/",search:c.search,state:{next:i,isRedirectToNextParamAfterSignup:l}})}),H(this,"handleLoginTouch",({event:e})=>{const{isBusiness:t,footerCTA:o,from:n,history:i,next:s,onLoginTouch:a,location:c,isRedirectToNextParamAfterSignup:l}=this.props;e.stopPropagation(),e.preventDefault(),a&&a(),n&&this.props.setLoginSignupFrom(n),Object(r.i)({action:"click",page_location:c,item:"login-button"}),this.trackButtonTap(30);const u=o||"button";Object(r.j)("unauth_mweb.login_buttons.footer."+u),Object(r.h)("press_login"),i.push({pathname:t?"/business/login/":"/login/",search:c.search,state:{next:s,isRedirectToNextParamAfterSignup:l}})}),H(this,"handleGoogleTouch",()=>{const{onGoogleTouch:e,location:t}=this.props;e&&e(),Object(r.i)({action:"click",page_location:t,item:"continue-google-button"}),this.trackButtonTap(208)}),H(this,"handleFacebookTouch",()=>{const{onFacebookTouch:e,location:t}=this.props;e&&e(),Object(r.i)({action:"click",page_location:t,item:"continue-facebook-button"}),this.trackButtonTap(68)}),H(this,"handleLineTouch",()=>{this.trackButtonTap(12277),Object(r.i)({action:"click",page_location:this.props.location,item:"continue-line-button"})}),H(this,"login",e=>(t,o)=>{const{fbConnectHandler:n,history:i,login:s,next:a,location:c,noImmediateLoginRedirect:l}=this.props,u="google"===e?"gsi_btn":"other",d=c.state&&c.state.switch_account?{switchAccount:!0,trigger:u}:{noImmediateRedirect:l,trigger:u};"facebook"===e&&n&&n("success"),Object(r.h)(e+"_login_success"),this.trackSignupLoginEvent(7534,e),s(t,i,a,d).then(()=>{this.trackSignupLoginEvent(7536,e)}).catch(n=>{this.trackSignupLoginEvent(7535,e),this.onLoginError(t,n,o,e)}),this.setState({isLoading:!0,showRegisterLoading:!1,signupPlatform:e})}),H(this,"renderRegularButtons",()=>{const{isBusiness:e,locale:t,googleText:o,facebookText:i,lineText:s,showEmailButton:r,fbButtonType:a,isRerequest:c,isAuthenticated:l,showSecondGoogleButton:h}=this.props;let b=this.props.i18n._("Continue with email","Sign up button","Sign up button"),g=2;return e&&(b=this.props.i18n._("Create account","Button text for creating a business account","Button text for creating a business account"),g=-2),Object(d.jsxs)(n.Fragment,{children:[r&&Object(d.jsx)(u.f,{"data-test-id":"continue-email-button",marginBottom:g,children:Object(d.jsx)(u.g,{fullWidth:!0,color:"red",text:b,onClick:this.handleSignupTouch})}),i&&Object(d.jsx)(u.f,{marginBottom:2,"data-test-id":"continue-facebook-button",children:Object(d.jsx)(p,{buttonText:i,locale:t,onFacebookConnectError:this.handleFacebookError,onFacebookConnectSuccess:this.login("facebook"),type:a,fbUseContinueAs:this.props.fbUseContinueAs,onTouch:this.handleFacebookTouch,isRerequest:c})}),o&&Object(d.jsx)(u.f,{marginBottom:2,"data-test-id":"continue-google-button",children:Object(d.jsx)(f.a,{buttonText:o,isAuthenticated:l,showSecondGoogleButton:h,onGoogleConnectSuccess:this.login("google"),onTouch:this.handleGoogleTouch})}),s&&Object(d.jsx)(u.f,{marginBottom:2,"data-test-id":"continue-line-button",children:Object(d.jsx)(E,{buttonText:s,onLineConnectError:this.handleLineError,onLineConnectSuccess:this.login("line"),onTouch:this.handleLineTouch})})]})})}renderFooterCTA(){const{footerCTA:e,increasedSpaceBelow:t,isMobileHomepage:o}=this.props;return"member_link"===e?Object(d.jsx)(u.f,{marginTop:-4,"data-test-id":"login-member",children:Object(d.jsx)(j.a,{pressState:"none",onTouch:e=>this.handleLoginTouch({event:e}),children:Object(d.jsx)(u.f,{paddingY:4,marginBottom:t?-1:-2,children:Object(d.jsx)(u.cb,{align:"center",size:"md",weight:"bold",color:o?"white":"darkGray",children:this.props.i18n._("Already a member? Log in","Link on mobile web sign up modal to direct unauth users to the login page","Link on mobile web sign up modal to direct unauth users to the login page")})})})}):"not_you_link"===e?Object(d.jsx)(u.f,{marginTop:-3,"data-test-id":"LoginButtonsNotYoucontainer",children:Object(d.jsx)(j.a,{pressState:"none",onTouch:e=>this.handleLoginTouch({event:e}),children:Object(d.jsxs)(u.cb,{size:"md",inline:!0,color:"darkGray",children:[this.props.i18n._("Not you? ","Text for if the user is shown the wrong Facebook profile image for their account","Text for if the user is shown the wrong Facebook profile image for their account"),Object(d.jsx)(u.cb,{color:"darkGray",inline:!0,size:"md",weight:"bold",children:this.props.i18n._("Log in as a different user.","Clickable text that takes the user to the login page","Clickable text that takes the user to the login page")})]})})}):Object(d.jsx)(u.f,{marginBottom:5,"data-test-id":"login-button",children:Object(d.jsx)(u.g,{fullWidth:!0,color:"transparent",onClick:this.handleLoginTouch,text:this.props.i18n._("Log in","Login page button","Login page button")})})}renderRoundedButtons(){const{locale:e,fbButtonType:t,isRerequest:o}=this.props;return Object(d.jsxs)(u.u,{alignItems:"center",direction:"column",justifyContent:"start",children:[Object(d.jsx)(u.f,{marginBottom:4,children:Object(d.jsx)(u.cb,{align:"center",color:"white",size:"md",children:this.props.i18n._("Sign up to get started","Sign up CTA","Sign up CTA")})}),Object(d.jsxs)(u.u,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[Object(d.jsxs)(u.f,{"data-test-id":"signup-button",rounding:"circle",display:"flex",direction:"column",alignItems:"center",marginBottom:4,marginEnd:4,children:[Object(d.jsx)("button",{onClick:this.handleSignupTouch,style:{border:"none",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#FFF",height:"48px",width:"48px",marginBottom:"8px",borderRadius:"50%",cursor:"pointer"},type:"button",children:Object(d.jsx)(u.w,{accessibilityLabel:this.props.i18n._("Continue with email","Sign up with email button","Sign up with email button"),icon:"gmail",color:"darkGray",inline:!0,size:16})}),Object(d.jsx)(u.cb,{color:"white",size:"md",children:this.props.i18n._("Email","Icon text for continuing with email","Icon text for continuing with email")})]}),Object(d.jsx)(u.f,{marginEnd:4,children:Object(d.jsx)(p,{locale:e,onFacebookConnectError:this.handleFacebookError,onFacebookConnectSuccess:this.login("facebook"),type:t,fbUseContinueAs:this.props.fbUseContinueAs,onTouch:this.handleFacebookTouch,isRerequest:o,isRounded:!0})}),Object(d.jsx)(f.a,{onGoogleConnectSuccess:this.login("google"),onTouch:this.handleGoogleTouch,isRounded:!0})]})]})}render(){const{isBusiness:e,showTextDivider:t,inSocialBeforeEmailExp:o,roundButtons:n,showLoginButtons:i,secondaryAccountFlowEnabled:s}=this.props,{showRegisterLoading:r,isLoading:a,signupPlatform:c}=this.state,l=e?s?6:-5:0;return Object(d.jsxs)(u.f,{marginTop:l,maxWidth:400,marginStart:"auto",marginEnd:"auto","data-test-id":"LoginButtonsContainer",children:[t&&Object(d.jsx)(u.f,{marginBottom:3,marginTop:3,children:Object(d.jsx)(u.cb,{align:"center",size:"sm",weight:"bold",children:this.props.i18n._("OR","Separator for email login button and social login button","Separator for email login button and social login button")})}),Object(d.jsx)(u.f,{marginBottom:o?3:6,children:n?this.renderRoundedButtons():this.renderRegularButtons()}),i&&this.renderFooterCTA(),a&&(r?Object(d.jsx)(v.a,{platform:"line"===c?"default":c}):Object(d.jsx)(m.a,{}))]})}}H(K,"defaultProps",{next:"/",fbUseContinueAs:!0,footerCTA:"button"});t.a=Object(R.compose)(M.l,B.a,Object(i.connect)(({session:e,users:t={}},o)=>({country:e.country,locale:e.locale,isAuthenticated:e.isAuthenticated,isLimitedLoginUser:Object(F.b)(t[e.userId]),isTablet:e.isTablet}),e=>({setLoginSignupFrom:t=>e(Object(U.u)(t)),register:t=>e(Object(I.a)(t)),login:(t,o,n,i)=>e(Object(P.b)(t,o,n,i)),isSignupConfirmationExpEnabled:()=>["enabled","employees"].includes(e(Object(A.a)("mweb_unauth_signup_confirmation")))})))((function(e){const t=Object(c.c)(),{showEmailButton:o,showLoginButtons:i}=e,s=Object(z.b)();return Object(n.useEffect)(()=>{s&&(i&&s.load(new URL("login.js","file://")),o&&s.load(new URL("signup.js","file://")))},[]),Object(d.jsx)(K,{...e,i18n:t})}))},jv6g:function(e,t){e.exports="https://s.pinimg.com/webapp/btn_base-3772d107.png"},tCfZ:function(e,t,o){o.d(t,"a",(function(){return l}));var n=o("Lr1Z"),i=o("kmwA"),s=o("yweb"),r=o("qpbZ"),a=o("n6mq"),c=o("nKUr");function l({isMobileHomepage:e,isBusiness:t=!1,size:o="sm",alignText:l="center"}){const u=Object(s.c)(),d=i.a.settings.POLICY_PRIVACY_URL,h=t?i.a.settings.PARTNER_SITE_TOS_URL:i.a.settings.POLICY_TERMS_PLAIN_URL;return Object(c.jsx)(a.u,{alignItems:"left"===l?"start":"center",direction:"column",justifyContent:"start",children:Object(c.jsx)(a.cb,{color:e?"white":"gray",align:"left"===l?"start":"center",size:"sm",overflow:"left"===l?"normal":"breakWord",children:Object(r.b)(u._("By continuing, you agree to Pinterest's {{ termsOfService }} and acknowledge you've read our {{ privacyPolicy }}"),{termsOfService:Object(c.jsx)("span",{"data-test-id":"business-tos",children:Object(c.jsx)(n.a,{to:h,inline:!0,pressState:"background",newTab:!0,children:Object(c.jsx)(a.cb,{color:e?"white":"gray",inline:!0,size:"sm",weight:"bold",children:t?u._("Business Terms of Service","Mobile web business terms of service link for partners","Mobile web business terms of service link for partners"):u._("Terms of Service","Mobile web terms of service link","Mobile web terms of service link")})})},"termsOfService"),privacyPolicy:Object(c.jsx)("span",{"data-test-id":"privacy",children:Object(c.jsx)(n.a,{to:d,inline:!0,pressState:"background",newTab:!0,children:Object(c.jsx)(a.cb,{color:e?"white":"gray",inline:!0,size:"sm",weight:"bold",children:u._("Privacy Policy","Mobile web privacy policy link","Mobile web privacy policy link")})})},"privacyPolicy")})})})}}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/69-95a3af199ccb3d03b3e2.mjs.map