"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[73489,65479,92690],{223241:function(e){var t,n,o,r,i,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"pinId"}],kind:"Fragment",metadata:null,name:"FullPageSignupIconPinQuery",selections:[{alias:null,args:n=[{kind:"Variable",name:"pin",variableName:"pinId"}],concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},r={alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},i={alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"236x")'}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"FullPageSignupIconPinQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[o,r,i,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}]},params:{id:"352a5e60aedea45f1bf7be68da02cb782e8556623ba25c0de3716842fb3a3b99",metadata:{},name:"FullPageSignupIconPinQuery",operationKind:"query",text:null}};a.hash="3e1016dfcba0fbbb6d9d96227b9486bd",e.exports=a,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(a)},434005:function(e,t,n){n.d(t,{Z:function(){return a}});var o=n(658379),r=n(391670),i=n(389282);function a(e){var t=e.page,n=e.children,a=(0,o.useMemo)(function(){return{logging:{viewType:"login"===t&&9||"businessLogin"===t&&267||void 0},pageType:t}},[t]);return(0,i.jsx)(o.Fragment,{children:(0,i.jsx)(r.Mi,{value:a,children:n})})}},40762:function(e,t,n){n.d(t,{Z:function(){return F}});var o=n(658379),r=n(261783),i=n(388011),a=n(457628),l=n(791045),c=n(327875),s=n(793148),u=n(45818),d=n(759495),p=n(391670),b=n(536042),f=n(315219),m=n(539636),A=n(684113),h=n(324159),_=n(675689),I=n(950861),g=n(822123),B=n(562066),J=n(245410),y=n(688807),j=n(282802),k=n(98736),x=n(549201),w=n(219097),v=n(802071),R=n(389282);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);n120')):J&&y(null),x(e),l((0,u.IA)(t))};return(0,m.jsxs)(c.xu,{"data-test-id":"business-birthdate",paddingY:1,position:"relative",zIndex:new c.Ry(2),children:[(0,m.jsxs)(c.kC,{children:[(0,m.jsx)(c.xu,{marginEnd:2,marginBottom:1,marginStart:2,children:(0,m.jsx)(c.__,{htmlFor:"birthdate",children:(0,m.jsx)(c.xv,{size:"200",children:s._('Birthdate', 'businessAccountCreate.birthdate.label', 'Label for Birthdate field')})})}),(0,m.jsx)(c.u,{zIndex:new c.Ry(1e4),idealDirection:"right",text:h?g:I,children:(0,m.jsx)(c.JO,{accessibilityLabel:s._('Tooltip', 'businessAccountCreate.birthdate.label.tooltip.icon', 'accessibility tooltip for birthdate'),icon:"info-circle"})})]}),(0,m.jsx)(c.xu,{"data-test-id":"signup-birthdate-field",children:void 0!==r&&r?(0,m.jsx)(f.Z,{handleChangeBirthday:_,birthday:n,setBirthday:l,setValidState:void 0===i?function(){}:i}):(0,m.jsx)(d.Mt,{id:"birthdate",idealDirection:"down",name:"birthdate",maxDate:new Date,errorMessage:t||J||"",onChange:function(e){return w(e.value||new Date)},placeholder:s._('MM/DD/YYYY', 'businessAccountCreate.birthdate.placeholder', 'Placeholder for the birthdate field'),selectLists:["year","month"],value:k})})]})}var g=n(965533),B=n(297009),J=n(216624),y=n(544952),j=n(905867),k=n(178413),x=n(980124),w=n(519677),v=n(388011),R=n(788241),Q=n(457628),V=n(791045),S=n(560544),E=n(891643),P=n(361927),q=n(654194),C=n(970588),W=n(630089),O=n(36521),U=n(315219),X=n(282802),F=n(837792),Z=n(739425),H=n(488203),G=n(565479),K=n(392881);function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n0&&(e.setState(function(e){return{errors:T(T({},e.errors),{},ee({},t,n))}}),!0)}),ee(z(e),"validateForm",function(){var t=e.hasValidationErrors("birthdayString");return!(e.hasValidationErrors("email")||e.hasValidationErrors("password")||t)}),ee(z(e),"handleFormSubmission",function(t){t&&t.preventDefault&&t.preventDefault(),ei("submit_clicked");var n=e.state,o=n.email,r=n.password,i=n.birthdayString,a=e.props,l=a.i18n,c=a.unifiedSignup,u=a.location.search,d=a.requestContext,p=a.logContextEvent,b=a.pixelBlocked,f=a.register,m=a.setIsSumittingForm,A=a.setIsUnderageConfirmationModalVisible;m(!0);var h=(0,Z.mB)(u)||{},_=o.split("@")[0],I=e.validateForm();if(e.setState({clickedSubmit:!0}),p({event_type:101,component:13097,element:10283,aux_data:{successful_frontend_validation:I,in_unified_modal:c}}),"1"===Q.U2(V.It)){e.setUnderageError(),m(!1);return}var B=i?(0,S.Z)(i):void 0;if(!I||void 0===B){m(!1);return}(0,C.Z)({url:"/v3/register/exists/",data:{email:o}}).then(function(t){if(t.resource_response.data)e.setState(function(e){return{errors:T(T({},e.errors),{},{email:[l._('Deja vu! That email\'s taken.', 'businessAccountCreate.email.error.taken', 'User entered an email that is already taken')]})}}),m(!1);else{var n="utm_source"in h&&"shopify"===h.utm_source;(0,j.Z)("client.partner.account.create_attempt",{source:{utmPartner:h.utm_partner,utmSource:h.utm_source,utmMedium:h.utm_medium},isAuth:!1,unifiedSignup:c,country:d.country}),f({type:"email",birthday:B,business_name:_,email:o,password:r,has_ads_credits:e.inAdCreditsCampaign(),third_party_apps:n?[0]:null,utm_campaign:h.utm_campaign},{signupContext:void 0,signupAttemptContextEvent:{event_type:7537,view_type:156,view_parameter:3129}}).then(function(){ei("signup_success"),(0,j.Z)("client.partner.account.create",{source:{utmPartner:h.utm_partner,utmSource:h.utm_source,utmMedium:h.utm_medium},isAuth:!1,unifiedSignup:c,country:d.country}),ec.indexOf(h.utm_campaign)>=0&&s.Z.increment("catalogs.carousel.merchant.create.success",1,{email:o});var e=h&&"next"in h?h.next:null;x.Z.reportFacebookConversion(w.Z.FACEBOOK_ADVERTISER_ID,"CompleteRegistration",{content_name:"/business/create"}),x.Z.reportPinterestConversion("track","lead",{lead_type:"Self-serve"}),x.Z.reportLinkedInConversion(w.Z.LINKEDIN_PARTNER_ID,w.Z.LINKEDIN_CONVERSION_ID_SUBMISSION_EVENT),x.Z.reportGoogleConversion(w.Z.GOOGLE_ADWORDS_ID,w.Z.GOOGLE_ADWORDS_LABEL_BUSINESS_CREATE,e?void 0:"/",b),e&&(0,g.Z)((0,H.Z)("/",{next:e}))},function(t){var n={errors:e.state.errors};[U.dj,U.tL].includes(t.api_error_code)?n.errors.birthdayString=[t.message]:t.api_error_code===U.tz?(Q.t8(V.It,"1",(0,Q.kZ)(V.It)),e.setState({shouldShowUnderageConfirmationModal:!0}),A(!0)):el.includes(t.api_error_code)&&(n.errors.email=[t.message]),e.setState(n),m(!1)})}},function(){e.setState(function(e){return{errors:T(T({},e.errors),{},{email:[l._('Add a valid email', 'businessAccountCreate.email.error.invalid', 'Prompt user to input a valid email')]})}}),m(!1)})}),ee(z(e),"inAdCreditsCampaign",function(){var t=e.props.location;return(0,y.Z)(t)}),ee(z(e),"setBirthday",function(t){e.handleFieldChange("birthdayString",t)}),ee(z(e),"setValidState",function(t){e.setState(function(e){return{errors:T(T({},e.errors),{},{birthdayString:[t]})}})}),e}return n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.location,n=e.logContextEvent,o=e.viewType,r=e.pixelBlocked;ei("loaded"),x.Z.insertGoogleAdWordsTag(w.Z.GOOGLE_ADWORDS_ID,r),x.Z.insertFacebookPixelTag(w.Z.FACEBOOK_ADVERTISER_ID),x.Z.insertPinterestTag(w.Z.SMB_PAID_PINTEREST_ID),"1"===Q.U2(V.It)&&this.setUnderageError(),o||n({event_type:13,view_type:156,view_parameter:3129}),n({event_type:120,component:13097,aux_data:{in_unified_modal:this.props.unifiedSignup}}),(0,k.kh)(t.search),s.Z.increment("partner.business_account_create.visit",1,{platform:"web"})}},{key:"render",value:function(){var e=this,t=this.state,n=t.email,r=t.errors,i=t.password,a=t.birthdayString,l=t.shouldShowUnderageConfirmationModal,s=this.props,u=s.unifiedSignup,d=s.secondaryAccountFlow,p=s.isSubmittingForm,b=s.i18n,f=s.setIsUnderageConfirmationModalVisible,A=s.newBirthdayFormat,h=this.inAdCreditsCampaign();return(0,m.jsxs)(o.Fragment,{children:[l&&(0,m.jsx)(c.mh,{children:(0,m.jsx)(c.xu,{color:"transparent",position:"fixed",zIndex:new c.Ry(1e4),top:!0,left:!0,right:!0,bottom:!0,display:"flex",alignItems:"center",justifyContent:"center",children:(0,m.jsx)(c.xu,{rounding:8,color:"light",borderStyle:"shadow",children:(0,m.jsx)(q.Z,{birthday:a,onEditBirthday:function(){e.setState({shouldShowUnderageConfirmationModal:!1}),f(!1)}})})})}),(0,m.jsx)("form",{method:"POST",noValidate:!0,onSubmit:this.handleFormSubmission,children:(0,m.jsxs)(c.xu,{children:[(0,m.jsxs)(c.xu,{"data-test-id":"business-email",paddingY:1,position:"relative",zIndex:new c.Ry(2),children:[(0,m.jsx)(c.xu,{marginBottom:1,marginStart:2,children:(0,m.jsx)(c.__,{htmlFor:"email",children:(0,m.jsx)(c.xv,{size:"200",children:b._('Email', 'businessAccountCreate.email.label', 'Label for email field')})})}),(0,m.jsx)(P.Z,{hasError:r.email.length>0,id:"email",name:"email",onChange:function(t){e.handleFieldChange("email",t)},onFocus:function(){return ea("email")},placeholder:this.props.i18n._('Email', 'businessAccountCreate.email.placeholder', 'Placeholder text for email field'),tooltip:r.email.length>0?r.email[0]:null,type:"email",useExperimentalTextfield:u,value:n})]}),(0,m.jsxs)(c.xu,{"data-test-id":"business-password",paddingY:1,position:"relative",zIndex:new c.Ry(2),children:[(0,m.jsx)(c.xu,{marginBottom:1,marginStart:2,children:(0,m.jsx)(c.__,{htmlFor:"password",children:(0,m.jsx)(c.xv,{size:"200",children:b._('Password', 'businessAccountCreate.password.label', 'Label for password field')})})}),(0,m.jsx)(P.Z,{hasError:r.password.length>0,id:"password",name:"password",onChange:function(t){e.handleFieldChange("password",t)},onFocus:function(){return ea("password")},placeholder:u?this.props.i18n._('Create a password', 'businessAccountCreate.password.placeholder', 'Placeholder text for password field'):this.props.i18n._('Password', 'businessAccountCreate.password.placeholder', 'Placeholder text for password field'),tooltip:r.password.length>0?r.password[0]:null,type:"password",useExperimentalTextfield:u,value:i})]}),(0,m.jsx)(I,{errorMessage:r.birthdayString[0]||null,setBirthday:this.setBirthday,value:a,useNewFormat:A,setValidState:this.setValidState}),(0,m.jsx)(c.xu,{"data-test-id":"business-create-account",paddingY:1,children:(0,m.jsx)(c.zx,{fullWidth:!0,color:"red",disabled:p,onClick:this.handleFormSubmission,type:"submit",text:this.props.i18n._('Create account', 'businessAccountCreate.createAccount.business', 'Button text for creating a business account'),size:"md"})}),!d&&(0,m.jsx)(c.xu,{"data-test-id":"business-existing-account",paddingY:1,children:(0,m.jsx)(c.ZP,{fullWidth:!0,size:"md",onClick:function(e){return(0,e.dangerouslyDisableOnNavigation)()},href:this.getLoginUrl(),target:"self",text:this.props.i18n._('Log into existing account', 'businessAccountCreate.logInto.button', 'Text for button where user can click to log into an exisiting account')})}),(0,m.jsxs)(c.xu,{paddingY:1,children:[(0,m.jsx)(c.xv,{size:"100",align:h?"start":"center",overflow:"normal",children:(0,W.nk)(this.props.i18n._('By continuing, you agree to Pinterest\'s {{ termsLink }} and acknowledge you\'ve read our {{ privacyLink }}. {{ noticeAtCollection }}.', 'businessAccountCreate.birthday.agreement.text', 'Notice that proceeding indicates acceptance of term and policy (termsLink: link element for terms of use, privacyLink: link element for privacy policy)'),{termsLink:(0,m.jsx)("span",{"data-test-id":"business-tos",children:(0,m.jsx)(c.xv,{inline:!0,weight:"bold",size:"100",children:(0,m.jsx)(c.rU,{href:eo,target:"blank",display:"inlineBlock",onClick:function(e){return(0,e.dangerouslyDisableOnNavigation)()},underline:"hover",children:this.props.i18n._('Business Terms of Service', 'businessAccountCreate.termsOfService.link.text', 'Link to Terms of Service')},0)})},"business-tos"),privacyLink:(0,m.jsx)("span",{"data-test-id":"privacy",children:(0,m.jsx)(c.xv,{inline:!0,weight:"bold",size:"100",children:(0,m.jsx)(c.rU,{href:en,target:"blank",display:"inlineBlock",onClick:function(e){return(0,e.dangerouslyDisableOnNavigation)()},underline:"hover",children:this.props.i18n._('Privacy Policy', 'businessAccountCreate.privacyPolicy.link.text', 'Link to Pinterest Privacy Policy')},1)})},"privacy"),noticeAtCollection:(0,m.jsx)("span",{"data-test-id":"noticeAtCollection",children:(0,m.jsx)(c.xv,{inline:!0,weight:"bold",size:"100",children:(0,m.jsx)(c.rU,{href:er,target:"blank",display:"inlineBlock",onClick:function(e){return(0,e.dangerouslyDisableOnNavigation)()},underline:"hover",children:b._('Notice at collection', 'termOfService.link.noticeAtCollection', 'Link to notice at collection')},"noticeAtCollectionLink")})},"noticeAtCollection")})}),h&&(0,m.jsx)(c.xv,{size:"100",align:"start",overflow:"normal",children:B.Z})]})]})})]})}}],D(a.prototype,n),r&&D(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(o.Component);function eu(e){var t=(0,p.ZP)(),n=(0,i.useLocation)(),o=(0,X.B)(),a=(0,v.v)().logContextEvent,l=(0,E.B$)().register,c=(0,R.SU)().viewType,s=(0,r.useDispatch)(),u=(0,b.F)().checkExperiment,d=u("ppm_p_gate").anyEnabled,f=u("adv_growth_biz_signup_birthday_format").anyEnabled;return(0,m.jsx)(es,T(T({},e),{},{setIsUnderageConfirmationModalVisible:function(e){s({type:"SET_IS_UNDERAGE_CONFIRMATION_MODAL_VISIBLE",payload:{isUnderageConfirmationModalVisible:e}})},unifiedSignup:!!e.unifiedSignup,location:n,pixelBlocked:d,newBirthdayFormat:f,requestContext:o,register:l,i18n:t,logContextEvent:a,viewType:c}))}function ed(e){var t,n=e.secondaryAccountFlow,r=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(!1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=r[0],a=r[1];return(0,m.jsxs)(c.kC,{alignItems:"center",justifyContent:"center",children:[i&&(0,m.jsx)(O.Z,{}),(0,m.jsx)(c.xu,{width:268,color:"default",children:(0,m.jsx)(eu,{isSubmittingForm:i,secondaryAccountFlow:n,setIsSumittingForm:a,unifiedSignup:!0})})]})}},767874:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(536042),r=n(389282);function i(e){var t=e.fillColor,n=e.size,i=e.noCircle,a=(0,o.ZP)();return(0,r.jsxs)("svg",{height:n,style:{display:"block"},viewBox:i?"3 3 70 70":"-3 -3 82 82",width:n,children:[(0,r.jsx)("title",{children:a._('Pinterest logo', 'Accessibility label for Pinterest icon', 'Accessibility label for Pinterest icon')}),i?null:(0,r.jsx)("circle",{cx:"38",cy:"38",fill:t?"transparent":"white",r:"40"}),(0,r.jsx)("path",{d:"M27.5 71c3.3 1 6.7 1.6 10.3 1.6C57 72.6 72.6 57 72.6 37.8 72.6 18.6 57 3 37.8 3 18.6 3 3 18.6 3 37.8c0 14.8 9.3 27.5 22.4 32.5-.3-2.7-.6-7.2 0-10.3l4-17.2s-1-2-1-5.2c0-4.8 3-8.4 6.4-8.4 3 0 4.4 2.2 4.4 5 0 3-2 7.3-3 11.4C35.6 49 38 52 41.5 52c6.2 0 11-6.6 11-16 0-8.3-6-14-14.6-14-9.8 0-15.6 7.3-15.6 15 0 3 1 6 2.6 8 .3.2.3.5.2 1l-1 3.8c0 .6-.4.8-1 .4-4.4-2-7-8.3-7-13.4 0-11 7.8-21 22.8-21 12 0 21.3 8.6 21.3 20 0 12-7.4 21.6-18 21.6-3.4 0-6.7-1.8-7.8-4L32 61.7c-.8 3-3 7-4.5 9.4z",fill:null!=t?t:"#e60023",fillRule:"evenodd"})]})}},882973:function(e,t,n){n.d(t,{Pw:function(){return o},SB:function(){return r},ZP:function(){return a},x9:function(){return i}});var o=80,r=56,i=function(e){return"phone"===e?r:o};function a(e,t){return t?0:i(e)}},387977:function(e,t,n){n.d(t,{Z:function(){return o}});function o(e){return("undefined"==typeof window||!Object.prototype.hasOwnProperty.call(window,"requestAnimationFrame"))&&e&&e(),window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){e&&e()})})}},798198:function(e,t,n){n.d(t,{CC:function(){return o},Ll:function(){return i},XF:function(){return r}});var o=function(e,t){var n;return{x:Math.floor(t/2*Math.cos(n=2*Math.random()*Math.PI)),y:Math.floor(e/2*Math.sin(n))}},r=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},i=function(e){return["@-webkit-keyframes","@keyframes"].map(function(t){return e.map(function(e){return t+" "+e}).join("\n")}).join("\n")}},865173:function(e,t,n){function o(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(o,r)}n.d(t,{Z:function(){return i},v:function(){return r}});var r=function(){return"undefined"!=typeof navigator&&"getInstalledRelatedApps"in navigator};function i(){return a.apply(this,arguments)}function a(){var e;return e=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r()){e.next=13;break}return e.prev=1,e.next=4,navigator.getInstalledRelatedApps();case 4:return t=e.sent,e.abrupt("return",t);case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",[]);case 11:e.next=14;break;case 13:return e.abrupt("return",[]);case 14:case"end":return e.stop()}},e,null,[[1,8]])}),(a=function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function l(e){o(a,r,i,l,c,"next",e)}function c(e){o(a,r,i,l,c,"throw",e)}l(void 0)})}).apply(this,arguments)}},14100:function(e,t,n){n.d(t,{$K:function(){return i},dh:function(){return o},ry:function(){return r}});var o=function(e){return/instagram/i.test(e||"")},r=function(e){return o(e)||/facebook/i.test(e||"")||/line/i.test(e||"")||/wechat/i.test(e||"")},i=function(e){return(e||"").includes("[Pinterest/iOS]")||(e||"").includes("[Pinterest/Android]")}},297009:function(e,t){t.Z="*Spend $30 in your first 7 days to receive a $20 refund on your bill. There’s a 1 offer limit per account. New accounts only. You must be a legal resident of the 50 United States or DC, and at least 18 years old to be eligible for this offer."},216624:function(e,t,n){n.d(t,{$:function(){return i},w:function(){return r}});var o=n(40660),r=300,i=function(e){return function(t){return o.Z.increment(e+t,1)}}},544952:function(e,t,n){var o=n(739425);t.Z=function(e){return!!(e&&e.search)&&"adcredits"===(0,o.mB)(e.search).utm_medium}},905867:function(e,t,n){var o=n(40660);t.Z=function(e,t){var n,r=!!(t&&t.isAuth),i=!!(t&&t.unifiedSignup),a=t&&t.country;t&&(n=t).source&&n.source.utmPartner&&"partneracquisition"===n.source.utmPartner?o.Z.increment(e,1,{app_type:"web",is_paid:!0,paid_source:t.source.utmSource,is_auth:r,unified_signup:i}):o.Z.increment(e,1,{app_type:"web",is_auth:r,unified_signup:i,country:a})}},178413:function(e,t,n){n.d(t,{DM:function(){return s},Q2:function(){return c},kh:function(){return l},wK:function(){return u}});var o=n(173085),r=n(286354),i="AMEX_MERCHANT_HUB_OFFER",a="business.marketing.offer",l=function(e){(0,r.Z)({url:e}).offerCode===i&&(0,o.Nh)(a,i)},c=function(){return(0,o.qn)(a)===i},s=function(){return(0,o.qn)(a)},u=function(){(0,o.L_)(a)}},950073:function(e,t){t.Z=function(e){var t=new Date(e);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}},784964:function(e,t,n){var o=n(658379);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);n=0&&window.fbConnectButtonContainerStack.splice(e,1)}0===window.fbButtonMounted&&(delete window.statusChangeCallback,delete window.checkLoginState,delete window.nextUrlParam)}}},{key:"initializeFB",value:function(){var e=this.props.requestContext.locale;null!==this.profilePicButton&&(void 0!==window.FB&&null!==window.FB?window.FB.XFBML.parse():(window.fbAsyncInit=function(){return(0,j.sl)()},function(t,n,o){var r=t.getElementsByTagName(n)[0];if(!t.getElementById(o)){var i=t.createElement(n);i.id=o,i.src=(0,x.Z)(e),r&&r.parentNode&&r.parentNode.insertBefore(i,r)}}(document,"script","facebook-jssdk")))}},{key:"checkLoginState",value:function(){window.FB.getLoginStatus(function(e){this.statusChangeCallback&&this.statusChangeCallback(e)})}},{key:"signupLoginContextEvent",value:function(e){var t=this.props.desktopCoreLoginContext.viewer;return{event_type:e,aux_data:C(C({},(0,I.Z)(t.type)),{},{signup_login_method:R.Z.FACEBOOK})}}},{key:"renderProfilePicButtonWithFallback",value:function(){var e=this,t=this.props,n=t.i18n,o=t.isRerequest,i=t.showFallback,c=t.checkExperiment;return(0,b.jsxs)(r.xu,{"data-test-id":"facebook-connect-button",ref:function(t){e._fallbackButton=t},children:[(0,b.jsx)(l.Z,{onClick:function(){var t,n=e.props,o=n.connectErrorMessage,r=n.desktopCoreLoginContext.getDeviceAppTypeString,i=n.i18n,a=n.webFacebookDisabled,l=n.viewer;if(a){e.setState({showModal:!0});return}(0,S.My)("fallback_facebook_button.click"),(0,S.NC)("press_facebook_login_fallback"),(0,S.My)("unauth_web.facebook_connect.manual.attempt"),(0,S.My)("unauth_web.social_connect.facebook.".concat(r())),(0,S.EX)({event:"start",provider:"facebook"}),null===(t=e.unsubscribeThisButton)||void 0===t||t.call(e);var c=d({onSuccess:function(t){(0,S.My)("unauth_web.facebook_connect.manual.success"),e.loginWithFacebook({facebookConnectData:t,isFromStatusChange:!1})},onError:function(e){(0,S.My)("unauth_web.facebook_connect.manual.failure"),(0,s.x)("POPUP_DISABLED"===e?i._('You must enable popups!', ' - ', ' -- '):o)},onEventReceived:function(){var t;null===(t=e.unsubscribeThisButton)||void 0===t||t.call(e)},rerequestFacebookEmail:e.rerequestFacebookEmail,viewer:l}).unsubscribe;e.unsubscribeThisButton=function(){c(),e.unsubscribeThisButton=null}},styleOverrides:{backgroundClip:"padding-box",backgroundColor:"#1877F2",display:"block",fontWeight:"normal",height:"40px",marginTop:"0px",padding:"0px 0px 0px 8px",position:i?"relative":"absolute",textAlign:"left",transition:"opacity .2s linear",width:"100%",borderRadius:"20px"},tabIndex:-1,children:(0,b.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,b.jsx)(r.xu,{color:"default",rounding:"circle",marginStart:1,dangerouslySetInlineStyle:{__style:{paddingTop:4,paddingBottom:3,paddingRight:3,paddingLeft:3}},height:24,width:24,children:(0,b.jsx)(r.JO,{accessibilityLabel:n._('facebook', 'accessible label for facebook icon', 'accessible label for facebook icon'),color:"shopping",icon:"facebook",inline:!0,size:19})}),(0,b.jsx)("span",{style:{color:"#fff",display:"inline-block",fontFamily:a.Z,fontSize:"16px",fontWeight:"bold",letterSpacing:"0.1px",lineHeight:"15px",marginRight:"24px",marginLeft:"15px",paddingTop:"4px",textAlign:"center",verticalAlign:"text-bottom",WebkitFontSmoothing:"auto",whiteSpace:"normal",width:"88%"},children:n._('Continue with Facebook', ' - ', ' -- ')})]})}),!i&&(0,b.jsx)(r.xu,{height:40,dangerouslySetInlineStyle:{__style:{textAlign:"left"}},ref:function(t){e.profilePicButton=t},children:(0,b.jsx)("div",{className:"fb-login-button","data-auth-type":o?"rerequest":void 0,"data-button-type":"continue_with","data-layout":"rounded","data-onlogin":"checkLoginState","data-scope":(0,j._V)(c("web_unauth_identity_meta_birthdate_removal").anyEnabled).join(","),"data-size":"large","data-use-continue-as":"true","data-width":"268px"})})]})}},{key:"render",value:function(){var e=this,t=this.props.tooltip;return(0,b.jsxs)("div",{style:{position:"relative"},children:[this.renderProfilePicButtonWithFallback(),!!t&&(0,b.jsx)(m,{anchor:this._fallbackButton,message:t}),this.state.showModal&&(0,b.jsx)(A.Z,{type:"facebook",onDismiss:function(){return e.setState({showModal:!1})}})]})}}],O(u.prototype,n),o&&O(u,o),Object.defineProperty(u,"prototype",{writable:!1}),u}(o.Component);function K(e){var t=(0,B.ZP)(),n=(0,V.B)(),o=(0,c.B$)(),r=(0,g.lO)(),i=(0,Q.F)().checkExperiment,a=(0,E.Z)(),l=i("web_facebook_disabled").anyEnabled;return(0,b.jsx)(G,C(C({},e),{},{connectErrorMessage:t._('Couldn\'t connect. You must authorize Pinterest.', ' - ', ' -- '),desktopCoreLoginContext:o,i18n:t,login:(0,_.Z)(),requestContext:n,pageContext:r,webFacebookDisabled:l,viewer:a,checkExperiment:i}))}},596250:function(e,t,n){n.d(t,{Z:function(){return Q}});var o=n(658379),r=n(249444),i=n(40660),a=n(690108),l=n(293926),c=n(870243),s=n(536042),u=n(950861),d=n(389282);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);n0,P=(0,y.Z)({imageSizeToImageMap:null!==(p=m.images)&&void 0!==p?p:Object.freeze({}),preferredSize:"orig"});return(0,d.jsx)(R,{children:(0,d.jsxs)(r.xu,{direction:"row",alignItems:"start",justifyContent:"between",display:"flex",flex:"grow",padding:8,children:[(0,d.jsxs)(r.xu,{width:"55%",children:[(0,d.jsxs)(r.xu,{alignItems:"center",justifyContent:"between",direction:"row",display:"flex",flex:"grow",marginBottom:3,children:[(0,d.jsx)(r.xu,{marginBottom:2,children:(0,d.jsx)(r.X6,{children:Q._('So, what do you think?', 'asking reciever what they think of the pin sent to them', 'asking reciever what they think of the pin sent to them')})}),(0,d.jsx)(r.xu,{children:(0,d.jsx)(c.qE,{name:S,size:"lg",src:A.image_medium_url})})]}),(0,d.jsxs)(r.xu,{marginTop:6,children:[(0,d.jsx)(r.xu,{marginBottom:6,children:(0,d.jsx)(r.Kx,{id:"unauth_response",onChange:function(e){return B(e.value)},value:I,placeholder:S?(Q._('Reply to {{ name }}', 'placholder text prompting users to reply back to sender(name)', 'placholder text prompting users to reply back to sender(name)')).replace("{{ name }}",S):"",rows:6})}),(0,d.jsx)(r.xu,{marginBottom:1,children:(0,d.jsx)(r.zx,{fullWidth:!0,text:Q._('Send message', 'button text to send a message', 'button text to send a message'),color:E?"red":"gray",disabled:!E,accessibilityLabel:Q._('Send message', ' accessibilty label for sending a message', ' accessibilty label for sending a message'),onClick:function(){V()}})}),(0,d.jsx)(r.xu,{children:(0,d.jsx)(r.zx,{fullWidth:!0,text:Q._('Skip for now', 'button text to continue signup flow without sending a message', 'button text to continue signup flow without sending a message'),color:"white",accessibilityLabel:Q._('Skip for now', ' accessibilty label for continuing signup flow without a response message', ' accessibilty label for continuing signup flow without a response message'),onClick:function(){i.Z.increment("web.social.unauth.response.".concat(h,".notsimilar.skip"),1),"signup"===h?u.ZP.handleSignupRedirect("/",!0):u.ZP.handleRedirect("/notifications/?tab=inbox")}})})]})]}),(0,d.jsx)(r.xu,{children:(0,d.jsxs)(r.xu,{rounding:2,minWidth:262,children:[(0,d.jsx)(r.xu,{display:"inlineBlock",overflow:"hidden",position:"relative",rounding:2,children:(0,d.jsx)(r.GH,{contentAspectRatio:"number"==typeof(null==P?void 0:P.height)&&"number"==typeof P.width?P.width/P.height:1,height:362,width:262,children:(0,d.jsx)(J,{alt:null!==(b=m.description)&&void 0!==b?b:"",src:null!==(f=null==P?void 0:P.url)&&void 0!==f?f:"",style:{width:"262px",height:"362px",objectFit:"cover"}})})}),(0,d.jsx)(r.xu,{marginTop:2,children:(0,d.jsx)(r.xv,{lineClamp:1,weight:"bold",children:m.title||m.description})})]})})]})})}},992690:function(e,t,n){n.r(t),n.d(t,{default:function(){return tM}});var o,r=n(658379),i=n(867221),a=n(249444),l=n(965533),c=n(563962),s=n(746613),u=n(682126),d=n(457628),p=n(791045),b=n(560544),f=n(891643),m=n(38730),A=n(389282),h=function(e){var t=e.margin,n=e.wideLight;return(0,A.jsx)("div",{style:{borderBottom:"".concat(n?"#efefef":"#dedede"," 1px solid"),margin:null!=t?t:"10px auto",width:n?404:110}})},_=n(95983),I=n(536042),g=n(282802),B=n(837792),J=n(98736),y=n(618569),j=n(706874),k=n(3060);function x(e){var t=e.type,n=(0,f.B$)().viewer,o=(0,I.ZP)(),r=(0,c.Z)(),i="".concat(k.C0).concat(B.Hm),l=(0,j.Z)().trackConversionUpsell;return(0,A.jsxs)(a.xu,{display:"flex",alignItems:"center",justifyContent:"center",fit:!0,marginTop:2,marginEnd:"auto",marginBottom:1,marginStart:"auto",children:[(0,A.jsx)(a.xv,{size:"100",weight:"normal",children:o._('Are you a business?', 'Prompt for business signup', 'Prompt for business signup')}),(0,A.jsx)(a.xu,{"data-test-id":"business-start",marginStart:1,children:(0,A.jsx)(a.rU,{href:i,underline:"none",target:"blank",onClick:function(){(0,J.My)("unauth.business_link.click"),r({event_type:101,component:"signupToLogin"===t?13096:13867,element:10281,aux_data:(0,_.Z)(n.type)}),l({element:10281,eventType:14689})},children:(0,A.jsx)(a.xv,{size:"100",weight:"bold",children:o._('Get started here!', 'Prompt for signing up', 'Prompt for signing up')})})})]})}var w=function(e){var t=e.children,n=e.layout,o=(0,g.B)().isRTL;switch(n){case"SIGNUP_LARGE":return(0,A.jsx)(a.xu,{children:(0,A.jsx)(a.xu,{marginTop:4,children:t})});case"SIGNUP_SMALL":return(0,A.jsx)(a.xu,{marginTop:3,children:t});case"SIGNUP_WITH_AGE":return(0,A.jsx)(a.xu,{margin:-4,children:(0,A.jsx)(a.xu,{padding:3,"data-test-id":"login-button",children:t})});case"LOGIN_INLINE":return(0,A.jsxs)(a.xu,{children:[(0,A.jsx)(h,{}),(0,A.jsx)(a.xu,{display:"inlineBlock",marginEnd:1,children:t})]});case"LOGIN_SMALL":return(0,A.jsxs)(a.xu,{children:[(0,A.jsx)(h,{}),t]});case"SIGNUP_DEFAULT":case"LOGIN_DEFAULT":return(0,A.jsxs)(a.xu,{children:[(0,A.jsx)(h,{margin:"SIGNUP_DEFAULT"===n?o&&"20px -68px 15px 0px"||"20px 0px 15px -68px":o&&"20px 30px 15px -10px"||"20px -10px 15px -68px",wideLight:!0}),(0,A.jsx)(a.xu,{children:t})]});default:return t}};function v(e){var t=e.layout,n=e.onClick,o=e.shouldHideBusinessCreateFooterLink,r=e.type,i=(0,I.ZP)(),l=(0,y.Z)();return(0,A.jsxs)(w,{layout:t,children:[(0,A.jsx)(a.xu,{display:"flex",fit:!0,marginEnd:"auto",marginBottom:1,alignItems:"center",justifyContent:"center",children:(0,A.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"center",children:["signupToLogin"===r&&(0,A.jsx)(a.xv,{size:"100",children:i._('Already a member?', 'modernized.nux.footer.text', 'Header text to switch from the sign up modal to the login modal ')}),(0,A.jsx)(m.Z,{noButtonStyles:!0,onClick:function(e){l({action:"click",item:"email-signup-button"}),n(e)},styleOverrides:{color:"#333",marginLeft:"5px",fontWeight:"bold"},type:"button",dataTestId:"login-signup-toggle",children:"signupToLogin"===r&&i._('Log in', 'modernize.nux.switch.to.login.modal', 'Toggle to switch from the sign up modal to the login modal')||i._('Not on Pinterest yet? Sign up', 'nux.unauth.user.sign.up.message', 'Toggle to switch from the login modal to the sign up modal')})]})}),!o&&(0,A.jsx)(x,{type:r})]})}var R=n(435983),Q=n(654194),V=n(315219),S=n(950861),E=n(804484),P=n(822123),q=n(61833),C=n(813586);function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);n'),{creatorName:null==em?void 0:em.full_name})||"homePage"===P&&F._('Find new ideas to try', 'Value prop on desktop signup modal on home page', 'Value prop on desktop signup modal on home page')||"saveButtonExp"===P&&F._('Unlimited free access to the world\'s best ideas', 'FullPageSignup.signupSubTitle.saDDve', 'Value prop on desktop signup modal')||F._('Discovery starts here', 'Pinterest value proposition on desktop login modal', 'Pinterest value proposition on desktop login modal'))})})})]}),(0,A.jsx)(a.xu,{"data-test-id":"signup-options",position:"relative",dangerouslySetInlineStyle:{__style:{textAlign:"center",margin:"0 auto"}},children:(0,A.jsx)(ev,{additionalChildren:(0,A.jsx)(v,{layout:"NOT_NOW_BUTTON"===W&&"SIGNUP_LARGE"||"home_page"===t&&"SIGNUP_SMALL"||"SIGNUP_DEFAULT",onClick:function(){return eE({email:ea.email})},type:"signupToLogin",shouldHideBusinessCreateFooterLink:!!w}),container:t,disablePostSignupNextUrl:!x,email:null!==(eO=ea.email)&&void 0!==eO?eO:"",loadingIndicatorCallback:ee,nextUrlParam:ej(),onBirthdayUnderage:function(e){el({type:"UnderageConfirmation",birthday:e.birthday,email:e.email})},onFBPhoneOnlyConnectVerified:ex,onFBMissingEmail:ex,onLoginWithMfa:eR,setEmail:function(e){return el((ea.type,tU(tU({},ea),{},{email:e})))},showResponseMessageModal:"respondMessage"===O.type?V:void 0,showSignupWelcomeLoadingFn:function(e){eo(e),d&&d(e)},signupSource:P,suppressFocus:q,switchToSocialSignupWithAgeFlow:ew,component:eI,attributionLabel:U})})]}),w&&w()]});case"login":if(!eu&&!B&&G&&"AUTH"!==K&&"bottom.right.upsell.email"!==t){var eZ,eH=G.hasPassword||G.connectedToFacebook||G.connectedToGoogle;return(0,A.jsx)(tx,{email:null!==(eZ=ea.email)&&void 0!==eZ?eZ:"",handleNotYouClick:function(){ed(!0),eV()},noBoxShadow:"pinBookmarklet"===t,header:(0,A.jsxs)(r.Fragment,{children:[$&&(0,A.jsx)(tb.Z,{}),eC]}),viewerInfo:G,title:(0,A.jsx)(e5,{container:t,modalType:"personalizedLogin",titleText:(0,tp.nk)(F._('Welcome back, {{name}}!', 'Short title (large font) on the login modal welcoming back a user who previously logged in to Pinterest', 'Short title (large font) on the login modal welcoming back a user who previously logged in to Pinterest'),{name:G?G.firstName:""}).join("")}),footer:eq({email:ea.email}),children:(0,A.jsx)(tc.ZP,{container:t,disablePostSignupNextUrl:!x,email:G.email,hideEmailField:!0,hideFacebookButton:eH&&!G.connectedToFacebook,hideGoogleButton:eH&&!G.connectedToGoogle,hideLineButton:eH,hidePasswordField:eH&&!G.hasPassword,hideTermsOfService:!0,loadingIndicatorCallback:ee,loginButtonTextOverride:F._('Continue', ' - ', ' -- '),nextUrlParam:ej(),onEmailChange:function(){},onLoginWithMfa:eR,requestContext:X,showResponseMessageModal:"respondMessage"===O.type?V:void 0,socialSignupCallbacks:{type:"ACCOUNT_RECOVERY",switchToAccountRecoverySignupFlow:eQ},component:eI,attributionLabel:U})})}var eG="enabled_login_comment"===eA?F._('Log in to comment', 'dweb.unauth.comment_compose.upsell_tagline', 'Value prop for comment upsell tagline'):o||tK(F,P);return(0,A.jsxs)(a.xu,{"data-test-id":"login-modal-default",width:484,dangerouslySetInlineStyle:{__style:ey},children:[$&&(0,A.jsx)(tb.Z,{}),(0,A.jsxs)(a.xu,{dangerouslySetInlineStyle:{__style:tZ},children:[eC,(0,A.jsx)(e2,{large:"homePage"!==P}),(0,A.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:tH},width:"login_page"!==t?400:void 0,children:(0,A.jsx)(e5,{container:t,modalType:"login",titleText:eG})}),B&&!p&&(0,A.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:tH},children:(0,A.jsx)(a.xu,{marginTop:-4,marginBottom:8,children:(0,A.jsx)(a.xv,{align:"center",size:"300",children:F._('Have another Pinterest account? Log in to easily switch between them', 'Subtitle on the login modal that explains to a user why they would add an additional account to their profile', 'Subtitle on the login modal that explains to a user why they would add an additional account to their profile')})})}),(0,A.jsx)(tc.ZP,{container:t,disablePostSignupNextUrl:!x,email:ea.email,isAccountSwitch:B,loadingIndicatorCallback:ee,nextUrlParam:ej(),onEmailChange:function(e){return el(tU(tU({},ea),{},{email:e.target.value}))},onFBPhoneOnlyConnectVerified:ex,onLoginWithMfa:eR,socialSignupCallbacks:{type:"SOCIAL_SIGNUP_WITH_AGE",switchToSocialSignupWithAgeFlow:ew},requestContext:X,showResponseMessageModal:"respondMessage"===O.type?V:void 0,component:eI,attributionLabel:U}),k?(0,A.jsxs)(a.kC,{direction:"column",alignItems:"center",children:[(0,A.jsx)(h,{}),(0,A.jsx)(a.xv,{weight:"bold",size:"100",children:(0,A.jsx)(a.rU,{href:ek("/business/create"),children:F._('Create new account', 'Link to the page to create a new business account instead of logging in', 'Link to the page to create a new business account instead of logging in')})})]}):!B&&(0,A.jsx)(v,{layout:"NOT_NOW_BUTTON"===W&&"LOGIN_INLINE"||"SMALL_TOGGLE"===W&&"LOGIN_SMALL"||"LOGIN_DEFAULT",type:"loginToSignup",onClick:function(){eP({email:ea.email})}})]})]});case"loginMfa":return(0,A.jsx)(a.xu,{"data-test-id":"login-modal-mfa",width:489,dangerouslySetInlineStyle:{__style:ey},children:(0,A.jsxs)(a.xu,{dangerouslySetInlineStyle:{__style:tZ},children:[eC,(0,A.jsx)(e2,{}),(0,A.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:tU(tU({},tH),{},{padding:"0 10px"})},width:"100%",children:(0,A.jsx)(e5,{container:t,modalType:"loginMfa",titleText:F._('Two-factor authentication required', 'desktopLoginModal.2fa.title', 'Title for the two-factor authentication modal')})}),(0,A.jsx)(tI,{container:t,creds:ea.creds,isAccountSwitch:B,nextUrlParam:ej(),phoneNumberEnd:ea.phoneNumberEnd})]})});case"socialSignupWithAge":return(0,A.jsx)(a.xu,{"data-test-id":"birthday-collection-modal",dangerouslySetInlineStyle:{__style:ey},minHeight:"0",children:(0,A.jsx)(H,{disablePostSignupNextUrl:!x,handleLoginToggleButtonClick:eE,loadingIndicatorCallback:ee,nextUrlParam:ej(),registrationCredentials:ea.registrationCredentials,showResponseMessageModal:"respondMessage"===O.type?V:void 0})});case"EmailCollection":var eN=function(){el({type:"signup",email:ea.registrationCredentials.signupOptions.email}),ee(!1)},eT=function(e){return el({type:"EmailAlreadyExist",email:e.email})};return(0,A.jsxs)(a.xu,{"data-test-id":"line"===ea.registrationCredentials.type?"signup-modal-line-phone-only":"signup-modal-facebook-phone-only",minHeight:400,dangerouslySetInlineStyle:{__style:tX},children:[$&&(0,A.jsx)(tb.Z,{}),(0,A.jsxs)(a.xu,{dangerouslySetInlineStyle:{__style:tZ},children:[eC,(0,A.jsx)(e2,{}),(0,A.jsx)(a.xu,{width:310,dangerouslySetInlineStyle:{__style:tH},children:(0,A.jsx)(a.X6,{size:"600",children:F._('What\'s your email address?', 'Prompt for email address in after sign in with line', 'Prompt for email address in after sign in with line')})}),"line"===ea.registrationCredentials.type?(0,A.jsx)(tl,{loadingIndicatorCallback:ee,nextUrlParam:x,onNotNowClick:eN,registrationCredentials:ea.registrationCredentials,showEmailAlreadyExistModal:eT,showSocialSignupWithAgeStep:ew}):(0,A.jsx)(eK,{loadingIndicatorCallback:ee,nextUrlParam:x,onNotNowClick:eN,registrationCredentials:ea.registrationCredentials,showEmailAlreadyExistModal:eT,showSocialSignupWithAgeStep:ew})]})]});case"EmailAlreadyExist":return(0,A.jsxs)(a.xu,{"data-test-id":"login-modal-existing-email",dangerouslySetInlineStyle:{__style:tj},children:[$&&(0,A.jsx)(tb.Z,{}),(0,A.jsx)(e2,{}),(0,A.jsx)(a.xu,{overflow:"hidden",maxHeight:120,width:350,dangerouslySetInlineStyle:{__style:tH},children:(0,A.jsx)(e5,{container:t,modalType:"personalizedLogin",titleText:(0,tp.nk)(F._('Looks like you\'re already on Pinterest', 'Short title (large font) on the login modal welcoming back a user who previously logged in to Pinterest', 'Short title (large font) on the login modal welcoming back a user who previously logged in to Pinterest'),{name:G?G.firstName:""}).join("")})}),(0,A.jsx)(a.xu,{marginBottom:3,children:(0,A.jsx)(a.xv,{align:"center",children:ea.email})}),(0,A.jsx)(tc.ZP,{container:t,disablePostSignupNextUrl:!x,email:ea.email,hideEmailField:!0,hideFacebookButton:!0,hideLineButton:!0,hideTermsOfService:!0,loadingIndicatorCallback:ee,loginButtonTextOverride:F._('Continue', ' - ', ' -- '),nextUrlParam:ej(),onEmailChange:function(){},onLoginWithMfa:eR,requestContext:X,showResponseMessageModal:"respondMessage"===O.type?V:void 0,socialSignupCallbacks:{type:"ACCOUNT_RECOVERY",switchToAccountRecoverySignupFlow:eQ},component:eI,attributionLabel:U}),(0,A.jsx)(a.xu,{paddingY:5,children:(0,A.jsx)(a.iz,{})}),(0,A.jsx)(a.xu,{"data-test-id":"login-switch-account",children:(0,A.jsx)(a.iP,{fullWidth:!1,onTap:function(e){e.event.preventDefault(),el({type:"login"}),ed(!0),eV()},children:(0,A.jsx)(a.xv,{align:"center",size:"200",weight:"bold",children:(0,A.jsx)(a.rU,{href:"#",onClick:function(e){var t=e.event,n=e.dangerouslyDisableOnNavigation;t.preventDefault(),n()},children:F._('Not you? Log in with a different account', 'Short message (in small fonts) on the bottom of the login modal that prompts a user to log in to a different account', 'Short message (in small fonts) on the bottom of the login modal that prompts a user to log in to a different account')})})})}),(0,A.jsx)(a.xu,{marginBottom:4,marginTop:1,children:eq({email:ea.email})}),eC]});case"UnderageConfirmation":return(0,A.jsx)(a.xu,{"data-test-id":"underage-confirmation-modal",dangerouslySetInlineStyle:{__style:ey},children:(0,A.jsx)(Q.Z,{birthday:ea.birthday,onEditBirthday:function(){el({type:"signup",email:ea.email}),ee(!1)}})});default:return null}}},751222:function(e,t,n){n.d(t,{Z:function(){return q}});var o=n(658379),r=n(249444),i=n(891643),a=n(45818),l=n(38730),c=n(152448),s=n(975601),u=n(536042),d=n(353226),p=n(389282);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};w.ZP.storeLoginCredentialsToBrowser(A);var t=o.props.nextUrlParam||w.ZP.defaultLoginRedirectUrl();if(m.experimentsClient.checkExperiment("m10n_measurement_pinterest_tag_us").anyEnabled&&"undefined"!=typeof window&&window.pintrk)try{window.pintrk("track","custom",{lead_type:"Pinterest Login",em:l})}catch(e){}if(s&&e.resource_response&&e.resource_response.data&&e.resource_response.data.user){var n=e.resource_response.data.user;(0,j.Z)(n,"email",a),t="/"+n.username}else w.ZP.storeLoginCredentialsToBrowser(A);b?b(!1):w.ZP.handleRedirect(t)},function(t){return o.handleLoginFailure(e,t,A)})}},{key:"render",value:function(){var e=this.props.email;return(0,U.jsxs)(r.xu,{width:268,dangerouslySetInlineStyle:{__style:{margin:"0 auto"}},children:[(0,U.jsx)(l.Z,{email:e||"",modalType:this.state.accountRecoveryModalType,onLoginWithMfa:this.props.onLoginWithMfa,updateAccountRecoveryModal:this.updateAccountRecoveryModal}),this.renderButtons(),!this.props.hideTermsOfService&&(0,U.jsx)(f.Z,{dark:!0})]})}}],G(s.prototype,n),i&&G(s,i),Object.defineProperty(s,"prototype",{writable:!1}),s}(o.Component);function et(e){var t,n=(0,B.ZP)(),r=(0,i.v)(),l=r.flushContextEvents,c=r.logContextEvent,u=(0,_.lO)(),d=(0,R.D)(),p=d.recaptchaV3Token,b=d.refreshToken,f=(0,s.B$)(),h=(0,Q.B)().country,I=(0,A.Z)(),g=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(""))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),J=g[0],y=g[1],j=(0,a.SU)(),k=j.viewType,x=j.viewParameter,w=(0,m.g)(),v=(0,q.Z)().trackConversionUpsell;return(0,U.jsx)(ee,H(H({},e),{},{desktopCoreLoginContext:f,flushContextEvents:l,i18n:n,logContextEvent:c,login:I,pageContext:u,password:J,recaptchaV3Token:p,refreshRecaptchaV3Token:b,isLineAuthenticationEnabled:"JP"===h,setPassword:y,viewType:k,viewParameter:x,unauthDesktopSignupModalPageContext:w,trackConversionUpsell:v}))}},794121:function(e,t,n){n.d(t,{Z:function(){return R}});var o=n(658379),r=n(249444),i=n(38730),a=["gmail.com","hotmail.com","hotmail.com.ar","yahoo.com.ar","live.com.ar","outlook.com","live.com","bigpond.com","yahoo.com","icloud.com","yahoo.com.au","yahoo.com.br","bol.com.br","yahoo.ca","hotmail.ca","web.de","gmx.de","t-online.de","hotmail.de","hotmail.es","yahoo.es","hotmail.fr","orange.fr","yahoo.fr","live.fr","free.fr","laposte.net","wanadoo.fr","outlook.fr","hotmail.co.uk","rediffmail.com","yahoo.co.in","yahoo.in","libero.it","hotmail.it","alice.it","yahoo.co.jp","ezweb.ne.jp","docomo.ne.jp","i.softbank.jp","softbank.ne.jp","live.com.mx","outlook.es","aol.com","outlook.com","comcast.net"],l=n(682126),c=n(591057),s=n(53234),u=n(536042),d=n(245410),p=n(282802),b=n(98736),f=n(780365),m=n(272939),A=n(389282);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);ne.length)&&(t=e.length);for(var n=0,o=Array(t);n=2&&"gmail"===i[0]&&("com"!==i.slice(1).join(".")?n(o[0]+"@gmail.com"):M(null))}var l=o[1]&&a.includes(o[1])?null:o[1]&&a.map(function(e){var t=(0,J.Z)(e,o[1]);return 2===t||1===t?e:null}).filter(function(e){return"string"==typeof e});l&&l.length&&n(l[0]?"".concat(o[0],"@").concat(l[0]):"")}},onChange:V,placeholder:p,tooltip:L,type:"email",value:c})}),!v&&(0,A.jsx)(r.xu,{marginBottom:1,marginStart:2,children:(0,A.jsx)(r.__,{htmlFor:"password",children:(0,A.jsx)(r.xv,{size:"200",children:X._('Password', 'registerForm.label.password', 'Label for password field')})})}),!v&&(0,A.jsxs)(o.Fragment,{children:[(0,A.jsx)(r.xu,{"data-test-id":"passwordInputField",children:(0,A.jsx)(g.Z,{autoComplete:"new-password",disabled:!!l||!!(null!=W&&W.registerRestricted),hasError:!!C,id:"password",name:"password",onChange:S,onFocus:function(){(0,b.NC)("focus_password")},placeholder:q,tooltip:C,type:"password",value:E,focused:!!m&&!O})}),(0,A.jsx)(r.xu,{"data-test-id":"password-reset-button",children:null!=P?P:null})]}),window.recaptchaCount>0?(0,A.jsx)("div",{className:"g-recaptcha",id:"recaptcha_placeholder_".concat(window.recaptchaCount),style:{marginTop:"16px",transform:"scale(0.88)",transformOrigin:"0 0"}}):null,W&&(0,A.jsx)(I,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);n