banko-ai-assistant 1.0.0__py3-none-any.whl → 1.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- banko_ai/static/creditcard_files/0dbda187ceb472a466dff54b7015b1d4.jpg +0 -0
- banko_ai/static/creditcard_files/10903-7f8736e237ced107.mjs +2 -0
- banko_ai/static/creditcard_files/10966-809952783184ae4b.mjs +4 -0
- banko_ai/static/creditcard_files/13351-8a7dda060266efff.mjs +2 -0
- banko_ai/static/creditcard_files/1342-c79d3d17da82f23c.mjs +11 -0
- banko_ai/static/creditcard_files/16142-bdecf7bfdd6d70ae.mjs +2 -0
- banko_ai/static/creditcard_files/16550-e89f65017860221d.mjs +2 -0
- banko_ai/static/creditcard_files/17492-942c70b114fdcce1.mjs +10 -0
- banko_ai/static/creditcard_files/18352-481d67e871cc6985.mjs +2 -0
- banko_ai/static/creditcard_files/18555-0d9763eb744f7a77.mjs +2 -0
- banko_ai/static/creditcard_files/19437-575ba467ea85e866.mjs +2 -0
- banko_ai/static/creditcard_files/1aca1669c3b4a07f0966c4733c939d6d.jpg +0 -0
- banko_ai/static/creditcard_files/20126-602c15db592cf3c4.mjs +26 -0
- banko_ai/static/creditcard_files/20224-b6de2c08cc8ad497.mjs +66 -0
- banko_ai/static/creditcard_files/2029a63f9af76541f860b6a6a4ec0c90.jpg +0 -0
- banko_ai/static/creditcard_files/21662-1214728138c72aa2.css +1 -0
- banko_ai/static/creditcard_files/22517-5f7ab2631d424b77.mjs +9 -0
- banko_ai/static/creditcard_files/23019-be3b8956cee94725.mjs +2 -0
- banko_ai/static/creditcard_files/26067-cb77f2673c5f757c.mjs +2 -0
- banko_ai/static/creditcard_files/27405-880a12623820964d.mjs +9 -0
- banko_ai/static/creditcard_files/27503-82078c18034012ed.mjs +38 -0
- banko_ai/static/creditcard_files/28090-8e4b5fd6c88f8eb2.mjs +6 -0
- banko_ai/static/creditcard_files/2c66dacf04db64cc1099835f2e2328d5.jpg +0 -0
- banko_ai/static/creditcard_files/30090868cb2b559a7093999fec5fbcc8.jpg +0 -0
- banko_ai/static/creditcard_files/30102-608e861dccc907f1.mjs +2 -0
- banko_ai/static/creditcard_files/31600-ca2e152d871d51d5.mjs +2 -0
- banko_ai/static/creditcard_files/31d5156a9cc5fe5fd780c2d9e59db98f.jpg +0 -0
- banko_ai/static/creditcard_files/34713-54729fd9c7517d50.mjs +2 -0
- banko_ai/static/creditcard_files/35074-d765c14dc3e8eafc.mjs +77 -0
- banko_ai/static/creditcard_files/38230-4d6eb1a608eecdeb.mjs +7 -0
- banko_ai/static/creditcard_files/40566-e2dbb4226dd2ab42.mjs +6 -0
- banko_ai/static/creditcard_files/42298-668aa166e1146c6c.mjs +2 -0
- banko_ai/static/creditcard_files/43203-3a1e46e5259313c8.mjs +14 -0
- banko_ai/static/creditcard_files/44429-6534f772a6bd895b.mjs +13 -0
- banko_ai/static/creditcard_files/48327-48fb70091d7ac731.mjs +2 -0
- banko_ai/static/creditcard_files/49923-dc71193d54a0b99c.mjs +2 -0
- banko_ai/static/creditcard_files/49c3cac3c5a09ca104a2efea48536d14.jpg +0 -0
- banko_ai/static/creditcard_files/50040-3c27b1fe14ca588b.mjs +2 -0
- banko_ai/static/creditcard_files/5047473e06297bbccfae9c43ca36bd93.jpg +0 -0
- banko_ai/static/creditcard_files/51531-253e8d8f8f527d9c.mjs +26 -0
- banko_ai/static/creditcard_files/58103-d6be57f2d624e7b4.mjs +2 -0
- banko_ai/static/creditcard_files/58822-d1779ebe9d4fab59.mjs +51 -0
- banko_ai/static/creditcard_files/61b440e4366b35d7213172be53d3864e.jpg +0 -0
- banko_ai/static/creditcard_files/61d121a699367070f3988f633ed6ac7d.jpg +0 -0
- banko_ai/static/creditcard_files/65610-15f55d146aa3cc6f.mjs +2 -0
- banko_ai/static/creditcard_files/65662-2b7065d2ddcf6a0c.mjs +2 -0
- banko_ai/static/creditcard_files/67631-9d4d7f4aab06e79c.mjs +2 -0
- banko_ai/static/creditcard_files/68445-8aae26e83c03d9bc.mjs +7 -0
- banko_ai/static/creditcard_files/6863-da15e99ca946f07a.mjs +2 -0
- banko_ai/static/creditcard_files/71526-518cf6126a32651b.mjs +2 -0
- banko_ai/static/creditcard_files/72268-8f69a6e8585b9af2.mjs +2 -0
- banko_ai/static/creditcard_files/76f1a52015cf2a243ed085586f3d44e8.jpg +0 -0
- banko_ai/static/creditcard_files/80538-65bd348271403336.mjs +2 -0
- banko_ai/static/creditcard_files/81505-387f6ddb644ae967.mjs +38 -0
- banko_ai/static/creditcard_files/8151-1a0cf04ea45ad513.mjs +2 -0
- banko_ai/static/creditcard_files/83119-1cf7ca2f5ba0e1ab.mjs +9 -0
- banko_ai/static/creditcard_files/83485-27ce97f9e7369ed7.mjs +5 -0
- banko_ai/static/creditcard_files/8575-e1977ceb3b34da9c.mjs +2 -0
- banko_ai/static/creditcard_files/8962-664b3c9b21ec2e0f.mjs +2 -0
- banko_ai/static/creditcard_files/90123-40fd5c2d5dc1c0a1.mjs +2 -0
- banko_ai/static/creditcard_files/91846-55cc5635c18159a0.mjs +47 -0
- banko_ai/static/creditcard_files/91936-56d11562a38b3f77.mjs +2 -0
- banko_ai/static/creditcard_files/96833-fbcb1ab8436924d4.mjs +36 -0
- banko_ai/static/creditcard_files/99246-889e96fc0a42e07a.mjs +2 -0
- banko_ai/static/creditcard_files/99961-ee8d9a1207a9db7a.mjs +2 -0
- banko_ai/static/creditcard_files/DefaultPinRep-78e567622e9cb382.mjs +27 -0
- banko_ai/static/creditcard_files/DesktopUnauthPageWrapper-26b3c2c050f09d27.css +1 -0
- banko_ai/static/creditcard_files/DesktopUnauthPageWrapper-a120f0b0faa773a2.mjs +252 -0
- banko_ai/static/creditcard_files/KkWFeSURekXGycdprVC-UY6ED-ZF5ll2JCMiHhJE2Rk.js +1 -0
- banko_ai/static/creditcard_files/MobileAndUnauthPinPage-0083f61f79e906d2.mjs +400 -0
- banko_ai/static/creditcard_files/UnauthCloseupRelatedPins-d98c713ac2e141a7.mjs +2 -0
- banko_ai/static/creditcard_files/[id]-87f8f6f1f81e3a8a.mjs +2 -0
- banko_ai/static/creditcard_files/_client-49638f60bdf5658e.mjs +43 -0
- banko_ai/static/creditcard_files/a7ee24644496b7a3131cd4e13b8c6edb.jpg +0 -0
- banko_ai/static/creditcard_files/a8ada9395c00dffc8fb81a7b76bd34b5.jpg +0 -0
- banko_ai/static/creditcard_files/abbf5a82906bef8c6be49ab38eaeea7c.jpg +0 -0
- banko_ai/static/creditcard_files/ad910641231bb413f6a985e4e9961efb.jpg +0 -0
- banko_ai/static/creditcard_files/anchor.html +186 -0
- banko_ai/static/creditcard_files/b6083df3cfa26856caef114c51a8d21e.jpg +0 -0
- banko_ai/static/creditcard_files/b957829ac112a8c28b313307e5ff0df6.jpg +0 -0
- banko_ai/static/creditcard_files/bb2d3d28e3421d901d8d431c33f0c6ed.jpg +0 -0
- banko_ai/static/creditcard_files/bb2d3d28e3421d901d8d431c33f0c6ed.png +0 -0
- banko_ai/static/creditcard_files/c3031b4a938377789e00d3d2f3b2438c.jpg +0 -0
- banko_ai/static/creditcard_files/client +300 -0
- banko_ai/static/creditcard_files/ct.html +3 -0
- banko_ai/static/creditcard_files/d03e6db9649ea3479b799d5a21008ac2.jpg +0 -0
- banko_ai/static/creditcard_files/d3d38fd9aa0c808a28ff5bd9ae5b5576.jpg +0 -0
- banko_ai/static/creditcard_files/de7cb9e198b4ebc9430824132ccfce2e.jpg +0 -0
- banko_ai/static/creditcard_files/e4330b4a4e71a3f77dd0682b99037cad.jpg +0 -0
- banko_ai/static/creditcard_files/ecdf72d4d54e70608e9416020f8ad67d.jpg +0 -0
- banko_ai/static/creditcard_files/eef64355b9f10e89c355b138adbae1e9.jpg +0 -0
- banko_ai/static/creditcard_files/enterprise.js +1 -0
- banko_ai/static/creditcard_files/f1354f6bb993409ea12235a01a978936.jpg +0 -0
- banko_ai/static/creditcard_files/f7c30e2615fe0e57d9ab6e41aac5e738.jpg +0 -0
- banko_ai/static/creditcard_files/fa72fa1ae9bb3ec93f41595333d22d16.jpg +0 -0
- banko_ai/static/creditcard_files/fb09ce3b0feb4931402867cf109cd618.jpg +0 -0
- banko_ai/static/creditcard_files/i +0 -0
- banko_ai/static/creditcard_files/locale-en_US-lite-js-d0d346142714beb1.mjs +2 -0
- banko_ai/static/creditcard_files/login-3c695aa28fdc27a5.mjs +161 -0
- banko_ai/static/creditcard_files/login-e161a84cea9cd0a3.css +1 -0
- banko_ai/static/creditcard_files/packages-rich-snippet-LeafSnippet-b7f61038a4431021.mjs +2 -0
- banko_ai/static/creditcard_files/polyfills-c5ca6e711f8975ec.mjs +2 -0
- banko_ai/static/creditcard_files/recaptcha__en.js +1011 -0
- banko_ai/static/creditcard_files/repin-62bbd4d7c8e22f17.css +1 -0
- banko_ai/static/creditcard_files/repin-d49f19d89ddd3cbe.mjs +292 -0
- banko_ai/static/creditcard_files/runtime-505e4380476a458b.mjs +2 -0
- banko_ai/static/creditcard_files/saved_resource(1).html +7 -0
- banko_ai/static/creditcard_files/saved_resource(2).html +3 -0
- banko_ai/static/creditcard_files/saved_resource.html +3 -0
- banko_ai/static/creditcard_files/sdk(1).js +22 -0
- banko_ai/static/creditcard_files/sdk.js +228 -0
- banko_ai/static/creditcard_files/select.html +387 -0
- banko_ai/static/creditcard_files/style +1 -0
- banko_ai/static/creditcard_files/styles__ltr.css +1 -0
- banko_ai/static/creditcard_files/unnamed.jpg +0 -0
- banko_ai/static/creditcard_files/vendor-react-76e71fd67c83934b.mjs +54 -0
- banko_ai/static/creditcard_files/visual-search-fe95849c7568d600.mjs +123 -0
- banko_ai/static/css/style.css +1274 -0
- banko_ai/templates/dashboard.html +5 -5
- banko_ai/templates/index.html +6 -6
- banko_ai/web/app.py +18 -4
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/METADATA +2 -2
- banko_ai_assistant-1.0.3.dist-info/RECORD +164 -0
- banko_ai_assistant-1.0.0.dist-info/RECORD +0 -46
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/WHEEL +0 -0
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/entry_points.txt +0 -0
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,66 @@
|
|
1
|
+
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[20224],{849474:(e,t,o)=>{o.d(t,{Z:()=>a});var i=o(619013),l=o(13882);function a(e,t){(0,l.Z)(2,arguments);var o=(0,i.Z)(e),a=(0,i.Z)(t),n=o.getTime()-a.getTime();return n<0?-1:n>0?1:n}},31397:(e,t,o)=>{o.d(t,{Z:()=>n});var i=o(619013),l=o(13882),a=o(849474);function n(e,t){(0,l.Z)(2,arguments);var o=(0,i.Z)(e),n=(0,i.Z)(t),s=(0,a.Z)(o,n),r=Math.abs(function(e,t){(0,l.Z)(2,arguments);var o=(0,i.Z)(e),a=(0,i.Z)(t);return o.getFullYear()-a.getFullYear()}(o,n));o.setFullYear("1584"),n.setFullYear("1584");var c=(0,a.Z)(o,n)===-s,d=s*(r-c);return 0===d?0:d}},174566:e=>{var t,o,i,l,a,n={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"pinId"}],kind:"Fragment",metadata:null,name:"FullPageSignupIconPinQuery",selections:[{alias:null,args:o=[{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:[i={alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},l={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},a={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:o,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:[i,l,a,{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}};n.hash="3e1016dfcba0fbbb6d9d96227b9486bd",e.exports=n,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}}}(n)},583375:(e,t,o)=>{o.d(t,{Z:()=>n});var i=o(858472),l=o(898781),a=o(785893);function n({fillColor:e,size:t,noCircle:o}){let n=(0,l.ZP)();return(0,a.jsxs)("svg",{height:t,style:{display:"block"},viewBox:o?"3 3 70 70":"-3 -3 82 82",width:t,children:[(0,a.jsx)("title",{children:n._('Pinterest logo', 'Accessibility label for Pinterest icon', 'Accessibility label for Pinterest icon')}),o?null:(0,a.jsx)("circle",{cx:"38",cy:"38",fill:e?"transparent":"white",r:"40"}),(0,a.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!=e?e:i.x7,fillRule:"evenodd"})]})}},856241:(e,t,o)=>{o.d(t,{Z:()=>i});let i=e=>{let t=new Date(e);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}},85651:(e,t,o)=>{o.d(t,{w:()=>S,Z:()=>z});var i=o(883119),l=o(45993),a=o(593559),n=o(186656),s=o(898781),r=o(785893);function c({callBack:e,color:t,email:o,inline:l,overrideText:a}){let c=(0,s.ZP)(),d=a||c._('Reset password', 'Request a password reset email', 'Request a password reset email');return(0,r.jsx)(i.zx,{accessibilityLabel:d,color:t||"red",fullWidth:l,onClick:()=>{(0,n.Z)({url:"/v3/users/forgot_password/",method:"POST",data:{username_or_email:o}}).then(()=>e())},text:d})}var d=o(349700);function _({email:e,onClose:t,onPasswordResetSent:o,socialButtons:n}){let _=(0,s.ZP)();return(0,r.jsx)(a.Z,{heading:_._('Looks like you\u2019re having trouble logging in', 'Modal heading for user who have attempted to login three times', 'Modal heading for user who have attempted to login three times'),onDismiss:t,size:"sm",children:(0,r.jsx)(i.xu,{alignItems:"center",justifyContent:"center",display:"flex",marginBottom:9,"data-test-id":"touchableErrorMessage",children:(0,r.jsxs)(i.kC,{alignItems:"center",direction:"column",width:290,children:[(0,r.jsx)(i.xu,{marginBottom:6,children:(0,r.jsx)(i.xv,{align:"center",children:(0,d.nk)(_._('We sent an email to {{ email }} to help you get back in.', ' - ', ' -- '),{email:(0,r.jsx)(i.xv,{inline:!0,weight:"bold",children:e},"emailAddress")})})}),(0,r.jsx)(i.xu,{width:"100%",marginBottom:8,children:(0,r.jsx)(c,{inline:!0,color:"red",email:e,callBack:o,overrideText:_._('Resend email', 'Button to allow the user to request a password reset email', 'Button to allow the user to request a password reset email')})}),(0,r.jsx)(i.xv,{children:_._('Or log in with Facebook or Google', 'Upsell to use Facebook or Google for login', 'Upsell to use Facebook or Google for login')}),(0,r.jsx)(i.xu,{marginTop:4,marginBottom:12,width:"100%",children:n}),(0,r.jsx)(i.xu,{marginBottom:12,width:"100%",children:(0,r.jsx)(l.Z,{onClick:t})})]})})})}var u=o(743678);function h({email:e,loginWith:t,onClose:o,onPasswordResetSent:n}){let d=(0,s.ZP)();return(0,r.jsx)(a.Z,{heading:d._('Oops! Something went wrong', 'Modal heading', 'Modal heading'),onDismiss:o,size:"md",children:(0,r.jsxs)(i.xu,{paddingX:6,marginBottom:4,children:[(0,r.jsx)(i.xu,{marginBottom:6,children:"facebook"===t?(0,r.jsx)(i.xv,{children:d._('We couldn\u2019t match your Facebook account to any Pinterest account. Try resetting your password instead.', 'Notice that no Pinterest account exists for the Facebook account used to attempt login', 'Notice that no Pinterest account exists for the Facebook account used to attempt login')}):(0,r.jsx)(i.xv,{children:d._('We couldn\u2019t match your Google account to any Pinterest account. Try resetting your password instead.', 'Notice that no Pinterest account exists for the Facebook account used to attempt login', 'Notice that no Pinterest account exists for the Facebook account used to attempt login')})}),(0,r.jsx)(c,{inline:!0,email:e,callBack:n}),(0,r.jsx)(i.xu,{marginTop:2,children:(0,r.jsx)(l.Z,{onClick:o})})]})})}var p=o(667294),g=o(499128),m=o(966113);function x({email:e,onClose:t}){let o=(0,s.ZP)(),[n,_]=(0,p.useState)(!1);return(0,r.jsxs)(p.Fragment,{children:[(0,r.jsx)(a.Z,{heading:o._('Password reset email sent', 'Modal label for confirmation of password reset send', 'Modal label for confirmation of password reset send'),onDismiss:t,children:(0,r.jsxs)(i.xu,{paddingX:6,marginBottom:4,children:[(0,r.jsx)(i.xv,{overflow:"normal",children:(0,d.nk)(o._('We sent instructions to pick a new password to {{ email }}.', 'Statement that a password reset email has been sent to the user', 'Statement that a password reset email has been sent to the user'),{email:(0,r.jsx)(i.xv,{inline:!0,overflow:"normal",weight:"bold",children:e},"emailAddress")})}),(0,r.jsx)(i.xu,{paddingY:4,children:(0,r.jsx)(c,{inline:!0,color:"gray",email:e,callBack:()=>_(!n),overrideText:o._('Resend email', 'Button to allow the user to request a password reset email', 'Button to allow the user to request a password reset email')})}),(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(i.xu,{marginBottom:4,children:(0,r.jsx)(i.xv,{children:(0,d.nk)(o._('Didn\u2019t get the email? Try these {{ tips }}', 'Direction to help center if the password reset email failed', 'Direction to help center if the password reset email failed'),{tips:(0,r.jsx)(i.xv,{inline:!0,weight:"bold",children:(0,r.jsx)(i.rU,{display:"inlineBlock",target:"blank",href:"https://www.pinterest.com/_/_/help/articles/trouble-pinterest-emails?source=account_recovery",onClick:({dangerouslyDisableOnNavigation:e})=>e(),underline:"hover",children:o._('tips from our Help Center', 'Link text to go to help center', 'Link text to go to help center')},"helpCenterLink")},"helpCenter")})})}),(0,r.jsx)(i.xu,{marginBottom:4,children:(0,r.jsx)(i.xv,{children:(0,d.nk)(o._('Not your email address? {{ tryAgain }}', 'Link to password reset flow for users who make an incorrect password reset request', 'Link to password reset flow for users who make an incorrect password reset request'),{tryAgain:(0,r.jsx)(i.xv,{inline:!0,weight:"bold",children:(0,r.jsx)(i.rU,{display:"inlineBlock",href:m.lfe,onClick:({dangerouslyDisableOnNavigation:e})=>e(),underline:"hover",children:o._('Try another', 'Link text to enter the password reset flow for a different email address/username', 'Link text to enter the password reset flow for a different email address/username')},"passwordResetLink")},"tryAgain")})})})]}),(0,r.jsx)(i.xu,{children:(0,r.jsx)(l.Z,{color:"red",onClick:t})})]})}),n&&(0,r.jsx)(i.xu,{fit:!0,dangerouslySetInlineStyle:{__style:{bottom:"50%",left:"50%",transform:"translateX(-50%)"}},paddingX:1,position:"fixed",children:(0,r.jsx)(g.ZP,{onHide:()=>_(!n),text:o._('Email sent!', ' - ', ' -- '),duration:3500})})]})}function y({email:e,onClose:t,onPasswordResetSent:o,socialButtons:n}){let d=(0,s.ZP)();return(0,r.jsx)(a.Z,{heading:d._('We protected your account', 'Modal heading for user who need to recover their accounts', 'Modal heading for user who need to recover their accounts'),onDismiss:t,size:480,children:(0,r.jsxs)(i.xu,{paddingX:12,marginBottom:8,children:[(0,r.jsx)(i.xu,{paddingX:4,marginBottom:4,children:(0,r.jsx)(i.xv,{align:"center",children:d._('For security purposes we\'ve reset your Pinterest account password and logged you out on all devices and browsers.', 'softBannedAccountModal.modal.description', 'Statement that we reset the password and logged user out')})}),(0,r.jsx)(i.xu,{paddingX:4,marginBottom:4,children:(0,r.jsx)(i.xv,{align:"center",children:d._('Reset your password or log in with Facebook or Google to get back into your account.', 'Prompt to take action to reset password or upsell login with Facebook/Google', 'Prompt to take action to reset password or upsell login with Facebook/Google')})}),(0,r.jsxs)(i.xu,{paddingX:12,children:[(0,r.jsx)(i.xu,{paddingY:2,children:(0,r.jsx)(c,{inline:!0,email:e,callBack:o})}),n,(0,r.jsx)(i.xu,{marginTop:4,children:(0,r.jsx)(l.Z,{onClick:t})})]})]})})}var f=o(576494),w=o(996438),b=o(611683),v=o(584595),P=o(290148),k=o(773285),A=o(817656);let S={[v.OW]:P.Ny.RATE_LIMITED,[v.bd]:P.Ny.RATE_LIMITED,[v.$j]:P.Ny.SOFT_BANNED,[v.an]:P.Ny.SUSPENDED,[v.RL]:P.Ny.LOGIN_ASSISTANCE,[v.yV]:P.Ny.SOFT_BANNED,[A.Ej]:P.Ny.RATE_LIMITED},j=({onLoginWithMfa:e,onLoginWithSuspended:t,onLoginWithVoluntarilyDeactivated:o,updateAccountRecoveryModal:l,checkExperiment:a})=>(0,r.jsxs)(i.xu,{children:[!a("dweb_unauth_remove_fb_signup_iteration").anyEnabled&&(0,r.jsx)(w.Z,{container:"account_recovery",disablePostSignupNextUrl:!0,onLoginWithMfa:e,onLoginWithSuspended:t,showFallback:!0,socialSignupCallbacks:{type:"ACCOUNT_RECOVERY",switchToAccountRecoverySignupFlow:()=>l(P.Ny.PREVENT_FACEBOOK_REGISTER)},showLoginRateLimited:()=>l(P.Ny.RATE_LIMITED)}),(0,r.jsx)(i.xu,{marginTop:2,children:(0,r.jsx)(b.Z,{container:"account_recovery",onLoginWithMfa:e,onLoginWithSuspended:t,socialSignupCallbacks:{type:"ACCOUNT_RECOVERY",switchToAccountRecoverySignupFlow:()=>l(P.Ny.PREVENT_GOOGLE_REGISTER)},onLoginWithVoluntarilyDeactivated:e=>{l(null),null==o||o(e)},showLoginRateLimited:()=>l(P.Ny.RATE_LIMITED)})})]});function z({email:e,modalType:t,onLoginWithMfa:o,onLoginWithSuspended:i,onLoginWithVoluntarilyDeactivated:l,updateAccountRecoveryModal:a}){let n=()=>a(null),s=()=>a(P.Ny.PASSWORD_RESET_SENT),{checkExperiment:c}=(0,k.F)(),d=(0,r.jsx)(j,{onLoginWithMfa:o,onLoginWithSuspended:i,onLoginWithVoluntarilyDeactivated:l,updateAccountRecoveryModal:a,checkExperiment:c});switch(t){case P.Ny.SUSPENDED:return(0,r.jsx)(f.Z,{onClose:n});case P.Ny.LOGIN_ASSISTANCE:return(0,r.jsx)(_,{email:e,onClose:n,onPasswordResetSent:s,socialButtons:d});case P.Ny.RATE_LIMITED:return(0,r.jsx)(u.Z,{onClose:n});case P.Ny.SOFT_BANNED:return(0,r.jsx)(y,{email:e,onClose:n,onPasswordResetSent:s,socialButtons:d});case P.Ny.PREVENT_FACEBOOK_REGISTER:case P.Ny.PREVENT_GOOGLE_REGISTER:return(0,r.jsx)(h,{email:e,onClose:n,onPasswordResetSent:s,loginWith:t===P.Ny.PREVENT_FACEBOOK_REGISTER?"facebook":"google"});case P.Ny.PASSWORD_RESET_SENT:return(0,r.jsx)(x,{email:e,onClose:n});default:return null}}},45993:(e,t,o)=>{o.d(t,{Z:()=>n});var i=o(883119),l=o(898781),a=o(785893);function n({color:e,onClick:t,overrideText:o}){let n=(0,l.ZP)(),s=o||n._('Got it', 'Acknowledge protected account modal message', 'Acknowledge protected account modal message');return(0,a.jsx)(i.zx,{fullWidth:!0,accessibilityLabel:s,color:e||"gray",onClick:t,text:s})}},593559:(e,t,o)=>{o.d(t,{Z:()=>c});var i=o(667294),l=o(883119),a=o(662730),n=o(124580),s=o(223815),r=o(785893);function c({children:e,headingNode:t,heading:o,onDismiss:c,size:d}){return(0,i.useEffect)(()=>(n.Z.pause(),function(){n.Z.resume()}),[]),(0,r.jsx)(l.mh,{zIndex:a.C,children:(0,r.jsx)(s.Z,{allowEsc:!0,children:(0,r.jsx)(l.u_,{accessibilityModalLabel:o,heading:t||o,onDismiss:()=>{n.Z.resume(),c()},role:"alertdialog",size:d||"md",padding:"none",children:e})})})}},743678:(e,t,o)=>{o.d(t,{Z:()=>s});var i=o(883119),l=o(593559),a=o(898781),n=o(785893);function s({onClose:e}){let t=(0,a.ZP)();return(0,n.jsxs)(l.Z,{heading:t._('Oops! Too many login attempts', 'LoginRateLimitedModal.Modal.Heading', 'Modal heading for user who have tried to login too many times'),onDismiss:e,size:"sm",headingNode:(0,n.jsxs)(i.xu,{children:[(0,n.jsx)(i.xu,{padding:6,justifyContent:"center",display:"flex",children:(0,n.jsx)(i.JO,{icon:"pinterest",accessibilityLabel:t._('Pinterest logo', 'Accessibility label for Pinterest icon', 'Accessibility label for Pinterest icon'),color:"brandPrimary",size:40})}),(0,n.jsx)(i.X6,{align:"center",size:"500",accessibilityLevel:1,children:t._('Oops! Too many login attempts', 'LoginRateLimitedModal.Modal.Heading', 'Modal heading for user who have tried to login too many times')})]}),children:[(0,n.jsx)(i.xu,{paddingX:12,marginTop:4,marginBottom:12,children:(0,n.jsx)(i.xv,{align:"center",children:t._('You have reached the maximum number of login attempts. Try again in 30 minutes.', 'LoginRateLimitedModal.Modal.Heading', 'Modal heading for user who have tried to login too many times')})}),(0,n.jsx)(i.xu,{paddingX:12,marginBottom:8,justifyContent:"center",display:"flex",children:(0,n.jsx)(i.zx,{fullWidth:!0,color:"red",text:t._('Okay', 'LoginRateLimitedModal.Modal.OkButton', 'Okay button used to close modal'),onClick:e})})]})}},576494:(e,t,o)=>{o.d(t,{Z:()=>_});var i=o(667294),l=o(883119),a=o(45993),n=o(593559),s=o(333071),r=o(898781),c=o(349700),d=o(785893);function _({onClose:e}){let t=(0,r.ZP)(),o=t._('Common reasons for account deactivation include:', ' - ', ' -- '),_=t._('{{ help_link }} if you have questions or would like to reactivate your account.', ' - ', ' -- '),u=[t._('Violating Pinterest Community Guidelines.', 'One example reason for account deactivation', 'One example reason for account deactivation'),t._('We noticed unusual activity on your account.', 'One example reason for account deactivation', 'One example reason for account deactivation'),t._('You requested an account closure.', 'One example reason for account deactivation', 'One example reason for account deactivation')];return(0,d.jsx)(n.Z,{heading:t._('Your account has been deactivated', 'Modal heading for user who have attempted to login with a deactivated account', 'Modal heading for user who have attempted to login with a deactivated account'),onDismiss:e,size:"md",children:(0,d.jsxs)(l.xu,{paddingX:6,marginBottom:4,children:[(0,d.jsxs)(l.xu,{marginBottom:4,children:[(0,d.jsxs)(l.xv,{children:[" ",o," "]}),(0,d.jsx)(l.xu,{paddingY:2,children:(0,d.jsx)(i.Fragment,{children:u.map(e=>(0,d.jsx)(l.xv,{children:"• "+e},`reasons-${e}`))})}),(0,d.jsx)(l.xv,{inline:!0,children:(0,c.nk)(_,{help_link:(0,d.jsx)(s.q,{},"suspended user help_link")})})]}),(0,d.jsx)(l.xu,{marginTop:4,children:(0,d.jsx)(a.Z,{color:"red",onClick:e,overrideText:t._('Got it', 'Acknowledge suspended account modal message', 'Acknowledge suspended account modal message')})})]})})}},333071:(e,t,o)=>{o.d(t,{q:()=>n});var i=o(883119),l=o(898781),a=o(785893);let n=()=>{let e=(0,l.ZP)();return(0,a.jsx)(i.rU,{display:"inlineBlock",href:"https://help.pinterest.com/en/contact?current_page=about_you_page&appeals=account_suspension",onClick:({dangerouslyDisableOnNavigation:e})=>e(),underline:"auto",children:e._('Contact us', 'link text shown to redirect to help.pinterest.com for appealing a suspension', 'link text shown to redirect to help.pinterest.com for appealing a suspension')})}},777024:(e,t,o)=>{o.d(t,{Z:()=>a});var i=o(898781),l=o(785893);function a(){let e=(0,i.ZP)();return(0,l.jsx)("p",{style:{marginBottom:"8px",marginTop:"8px",overflow:"hidden",textAlign:"center",fontSize:"14px",color:"#333",fontWeight:"bold"},children:e._('OR', ' - ', ' -- ')})}},803491:(e,t,o)=>{o.d(t,{Z:()=>n,m:()=>a});var i=o(858472),l=o(785893);let a=`
|
2
|
+
.red.active:focus,
|
3
|
+
.red.active:hover {
|
4
|
+
background-color: #d50c22 !important;
|
5
|
+
}
|
6
|
+
.lightGrey.active:focus,
|
7
|
+
.lightGrey.active:hover {
|
8
|
+
background-color: #f5f3f3 !important;
|
9
|
+
}
|
10
|
+
.SignupButton:focus {
|
11
|
+
box-shadow: 0 0 0 4px rgba(0, 132, 255, 0.5);
|
12
|
+
outline: 0;
|
13
|
+
}
|
14
|
+
`;function n({accessibilityLabel:e,children:t,className:o,dataTestId:a,disabled:n,href:s,id:r,noButtonStyles:c,onClick:d,styleOverrides:_,tabIndex:u,type:h}){let p=(o?o.split(" "):[]).concat(n?[]:["active"]),g=c?{background:"none",border:"none",padding:"0",textAlign:"left",display:"block"}:{border:"0px",height:"40px",display:"inline-block",borderRadius:"4px",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",padding:"0 18px",fontSize:"15px",fontWeight:"bold",cursor:"pointer",marginTop:"10px",verticalAlign:"middle",textAlign:"center",...n&&{backgroundColor:"#efefef",color:"#767676"}||p.includes("red")&&{backgroundColor:i.x7,color:"#fff"}||p.includes("lightGrey")&&{backgroundColor:"#ebebeb",color:"#444"}};return g={...g,..._},n&&(g={...g,cursor:"not-allowed"}),(0,l.jsx)("button",{"aria-label":e||"",className:p.join(" "),"data-test-id":a,disabled:n,href:s,id:r,onClick:d,...u?{tabIndex:u}:{},style:g,type:h||"button",children:t})}},996438:(e,t,o)=>{o.d(t,{Z:()=>B});var i=o(667294),l=o(883119),a=o(989392),n=o(199324),s=o(803491),r=o(233211),c=o(905171),d=o(402201);let _=()=>o.e(51798).then(o.bind(o,107193)),u=({onError:e,onEventReceived:t,onSuccess:o,rerequestFacebookEmail:i,viewer:l})=>{let a=null,n=i=>{let l=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");if(i.origin!==l||"social-connect-complete"!==i.data.type&&"social-connect-error"!==i.data.type)return;let n=i.data;"facebook"===n.network&&(t(),clearInterval(a),"social-connect-error"===n.type?e("OTHER_ERROR"):o({type:"PROFILE",profile:n.profile}))};if(window.addEventListener("message",n),i)_().then(({default:t})=>{t(t=>{t.login(t=>{var i;"connected"===t.status&&((null===(i=t.authResponse.grantedScopes)||void 0===i?void 0:i.split(","))||[]).includes("email")?o({type:"ACCESS_TOKEN",id:t.authResponse.userID,access_token:t.authResponse.accessToken}):e("OTHER_ERROR")},{scope:"email",auth_type:"rerequest",return_scopes:!0})},l)});else{let t=(0,d.Z)(),o=window.open("/connect/facebook/","",t);o?a=setInterval(()=>{o.closed&&(clearInterval(a),e("OTHER_ERROR"))},1e3):e("POPUP_DISABLED")}return{unsubscribe:()=>{window.removeEventListener("message",n)}}};var h=o(910702),p=o(785893);function g({anchor:e,message:t,children:o}){let[a,n]=(0,i.useState)(!!t);return((0,i.useEffect)(()=>{n(!!t)},[t]),a&&t)?(0,p.jsx)(l.J2,{anchor:e,color:"darkGray",idealDirection:"right",onDismiss:()=>n(!0),shouldFocus:!1,size:"md",children:(0,p.jsx)(l.xu,{column:12,padding:3,children:o?(0,p.jsx)("span",{children:o}):(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:t},style:{overflowWrap:"break-word",wordWrap:"break-word",color:"white",fontWeight:"bold"}})})}):null}var m=o(174382),x=o(70212),y=o(85334),f=o(901656),w=o(903095),b=o(898781),v=o(379913),P=o(584595),k=o(467570),A=o(336882),S=o(935879),j=o(290148),z=o(45169),E=o(830269),C=o(773285),T=o(780280),L=o(867820),R=o(19121);function Z(e,t,o){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}let I=e=>"PROFILE"===e.type?{facebook_id:e.profile.id}:{facebook_id:e.id,facebook_token:e.access_token};class M extends i.Component{constructor(...e){var t;super(...e),t=this,Z(this,"state",{showModal:!1}),Z(this,"unsubscribeThisButton",null),Z(this,"loginWithFacebook",({facebookConnectData:e,isFromStatusChange:t,isAccountSwitch:o,handlePostSuccessConnect:i,loadingIndicatorCallback:l})=>{let{checkExperiment:a,container:n,desktopCoreLoginContext:{getDeviceAppTypeString:s},i18n:r,login:d,disableFBSignup:_,onLoginWithMfa:u,onLoginWithSuspended:h,pageContext:p,showResponseMessageModal:g,showLoginRateLimited:m,socialSignupCallbacks:y}=this.props,f={container:n,page:null==p?void 0:p.pageType},w=I(e);d({creds:w,loggingOptions:{loggingData:f,loginAttemptContextEvent:this.signupLoginContextEvent(7534)},isAccountSwitch:o}).then(e=>{var t;let l=null==e?void 0:null===(t=e.resource_response.data)||void 0===t?void 0:t.user;o&&l&&(0,v.Z)(l,"facebook",n),(0,L.My)("login.facebook."+s()),g?g(!0):j.ZP.handleRedirect(this.props.nextUrlParam||j.ZP.defaultSocialLoginRedirectUrl()),null==i||i(),a("m10n_measurement_pinterest_tag_us").anyEnabled&&(0,x.Z)()},o=>{if(o.api_error_code===P.Zn){var i;null==l||l(!1),(0,L.My)("login.facebook."+s()),null==u||u(w,{phoneNumberEnd:null===(i=o.data)||void 0===i?void 0:i.phone_number_end})}else o.api_error_code===P.xN||o.api_error_code===P.lg?a("dweb_unauth_remove_fb_signup_iteration").anyEnabled?null==_||_():"ACCOUNT_RECOVERY"===y.type?y.switchToAccountRecoverySignupFlow("facebook"):this.registerWithFacebook({facebookConnectData:e,loggingData:f,isFromStatusChange:t,switchToSocialSignupWithAgeFlow:y.switchToSocialSignupWithAgeFlow}):[P.ik].includes(o.api_error_code)?null==m||m():(o.api_error_code&&(0,L.My)(`facebook_button.failed_login_${o.api_error_code}`),o.api_error_code===P.an&&h?h():(0,c.x)(r._('Sorry, we can\'t log you in.', 'error message when user failed to login caused by suspend/deactivated etc.', 'error message when user failed to login caused by suspend/deactivated etc.')))})}),Z(this,"statusChangeCallback",e=>{var t,o;let i;null===(t=(o=this.props).onClick)||void 0===t||t.call(o);let{connectErrorMessage:l,handlePostSuccessConnect:a,isAccountSwitch:n,loadingIndicatorCallback:s}=this.props;if((0,L.EX)({event:"start",provider:"facebook"}),"connected"===e.status){let{authResponse:t}=e;(0,L.My)("web.facebook_connect_button.login_status.connected"),null==s||s(!0),this.loginWithFacebook({facebookConnectData:{type:"ACCESS_TOKEN",id:t.userID,access_token:t.accessToken},isFromStatusChange:!0,isAccountSwitch:n,handlePostSuccessConnect:a,loadingIndicatorCallback:s}),i="success"}else"not_authorized"===e.status?((0,L.My)("web.facebook_connect_button.cancel.not_authorized"),(0,c.x)(l),i="not_authorized"):((0,L.My)("web.facebook_connect_button.cancel.unknown"),(0,c.x)(l),i="other_error");let{handlePostConnectClick:r}=this.props;null==r||r(i)}),Z(this,"showDefaultError",()=>{let{i18n:e,loadingIndicatorCallback:t}=this.props;null==t||t(!1),(0,c.x)(e._('Something went wrong. Please try again later.', 'facebookConnectButton.defaultError', 'Generic error for facebook default error handling'))}),Z(this,"registerWithFacebook",async function({facebookConnectData:e,loggingData:o,isFromStatusChange:i,switchToSocialSignupWithAgeFlow:l}){(0,L.Rp)({event:"start",provider:"facebook"});let{desktopCoreLoginContext:{register:n},disablePostSignupNextUrl:s,loadingIndicatorCallback:r,nextUrlParam:c,onFBMissingEmail:d,onFBPhoneOnlyConnectVerified:_,showResponseMessageModal:u,showSignupWelcomeLoadingFn:p}=t.props,g=()=>{t.showDefaultError(),i||(t.rerequestFacebookEmail=!0)},m=null;if("PROFILE"===e.type)m={...e.profile};else try{m=await (0,k.MI)(e.access_token)}catch(e){g()}if(!m)return;let x=(0,h.Z)(m),y={type:"facebook",context:o,signupOptions:x};if(!m.email){_?(i||null==r||r(!1),_(y)):i&&d?d(y):g();return}let f={birthday_source_site:z.E_.FACEBOOK,email_source_site:z.E_.FACEBOOK};if(!i){l(y);return}let{birthday:w}=x;if(void 0===w||!(0,a.Z)(w)){null==r||r(!1),l({...y,signupOptions:{...y.signupOptions,email_source_site:z.E_.FACEBOOK}});return}u||null==p||p(!0),(0,L.Rp)({event:"signup_api_call_start",provider:"facebook"});try{await n({...x,...f,birthday:w},{signupContext:o,signupAttemptContextEvent:t.signupLoginContextEvent(7537)}),(0,L.Rp)({event:"signup_api_call_success",provider:"facebook"})}catch(e){(0,L.Rp)({event:"signup_api_call_failure",provider:"facebook"}),g()}u?u(!0):j.ZP.handleSignupRedirect(i?c:c||window.location.pathname,s)})}componentDidMount(){if(this.props.webFacebookDisabled)return;"undefined"!=typeof window&&(window.statusChangeCallback=this.statusChangeCallback,window.checkLoginState=()=>this.checkLoginState(),window.fbConnectButtonContainerStack?window.fbConnectButtonContainerStack.push(this.props.container):window.fbConnectButtonContainerStack=[this.props.container],window.nextUrlParam=this.props.nextUrlParam,window.fbButtonMounted=window.fbButtonMounted?window.fbButtonMounted+1:1);let{requestContext:{userAgent:{platform:e}}}=this.props;if(["ios","ipad"].includes(e)){if(window.fb_init!==A.Z.STARTED&&window.fb_init!==A.Z.FINISHED)this.initializeFB();else if(window.fb_init===A.Z.FINISHED&&window.FB.XFBML)window.FB.XFBML.parse();else{let e=setInterval(()=>{window.fb_init===A.Z.FINISHED&&window.FB.XFBML&&(window.FB.XFBML.parse(),clearInterval(e))},100)}}else setTimeout(()=>{window.__branchRedirectToStore||!window.__branchPinterestStarted?this.initializeFB():window.onbeforeunload=()=>{window.__branchRedirectToStore&&this.initializeFB()}},50);if(this.props.isRerequest){var t,o,i,l;null===(t=(o=this.props).loadingIndicatorCallback)||void 0===t||t.call(o,!1),null===(i=(l=this.props).showSignupWelcomeLoadingFn)||void 0===i||i.call(l,!1)}}componentDidUpdate(){window.nextUrlParam=this.props.nextUrlParam}componentWillUnmount(){if("undefined"!=typeof window){if(window.fbButtonMounted-=1,window.fbConnectButtonContainerStack){let e=window.fbConnectButtonContainerStack.indexOf(this.props.container);e>=0&&window.fbConnectButtonContainerStack.splice(e,1)}0===window.fbButtonMounted&&(delete window.statusChangeCallback,delete window.checkLoginState,delete window.nextUrlParam)}}initializeFB(){let{requestContext:{locale:e}}=this.props;null!==this.profilePicButton&&(void 0!==window.FB&&null!==window.FB?window.FB.XFBML.parse():(window.fbAsyncInit=()=>(0,k.sl)(),((t,o,i)=>{let l=t.getElementsByTagName(o)[0];if(t.getElementById(i))return;let a=t.createElement(o);a.id=i,a.src=(0,S.Z)(e),l&&l.parentNode&&l.parentNode.insertBefore(a,l)})(document,"script","facebook-jssdk")))}checkLoginState(){window.FB.getLoginStatus(function(e){this.statusChangeCallback&&this.statusChangeCallback(e)})}signupLoginContextEvent(e){let{desktopCoreLoginContext:{viewer:t}}=this.props;return{event_type:e,aux_data:{...(0,f.Z)(t.type),signup_login_method:E.Z.FACEBOOK}}}renderProfilePicButtonWithFallback(){let{i18n:e,isRerequest:t,showFallback:o,container:i}=this.props;return(0,p.jsxs)(l.xu,{"data-test-id":"facebook-connect-button",ref:e=>{this._fallbackButton=e},children:[(0,p.jsx)(s.Z,{onClick:()=>{var e;let{connectErrorMessage:t,desktopCoreLoginContext:{getDeviceAppTypeString:o},i18n:i,webFacebookDisabled:l,viewer:a}=this.props;if(l){this.setState({showModal:!0});return}(0,L.My)("fallback_facebook_button.click"),(0,L.NC)("press_facebook_login_fallback"),(0,L.My)("unauth_web.facebook_connect.manual.attempt"),(0,L.My)(`unauth_web.social_connect.facebook.${o()}`),(0,L.EX)({event:"start",provider:"facebook"}),null===(e=this.unsubscribeThisButton)||void 0===e||e.call(this);let{unsubscribe:n}=u({onSuccess:e=>{(0,L.My)("unauth_web.facebook_connect.manual.success"),this.loginWithFacebook({facebookConnectData:e,isFromStatusChange:!1})},onError:e=>{(0,L.My)("unauth_web.facebook_connect.manual.failure"),(0,c.x)("POPUP_DISABLED"===e?i._('You must enable popups!', ' - ', ' -- '):t)},onEventReceived:()=>{var e;null===(e=this.unsubscribeThisButton)||void 0===e||e.call(this)},rerequestFacebookEmail:this.rerequestFacebookEmail,viewer:a});this.unsubscribeThisButton=()=>{n(),this.unsubscribeThisButton=null}},styleOverrides:{backgroundClip:"padding-box",backgroundColor:"#1877F2",display:"block",fontWeight:"normal",height:"40px",marginTop:"0px",padding:"0px 0px 0px 8px",position:o?"relative":"absolute",textAlign:"revamped_business_login_page"===i?"center":"left",transition:"opacity .2s linear",width:"100%",borderRadius:"20px"},tabIndex:-1,children:(0,p.jsxs)(l.kC,{alignItems:"stretch",justifyContent:"revamped_business_login_page"===i?"center":"start",children:[(0,p.jsx)(l.xu,{color:"default",rounding:"circle",marginStart:1,dangerouslySetInlineStyle:{__style:{paddingTop:4,paddingBottom:3,paddingRight:3,paddingLeft:3}},height:24,width:24,children:(0,p.jsx)(l.JO,{accessibilityLabel:e._('facebook', 'accessible label for facebook icon', 'accessible label for facebook icon'),color:"shopping",icon:"facebook",inline:!0,size:19})}),(0,p.jsx)("span",{style:{color:"#fff",display:"inline-block",fontFamily:n.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:"revamped_business_login_page"===i?void 0:"88%"},children:e._('Continue with Facebook', ' - ', ' -- ')})]})}),!o&&(0,p.jsx)(l.xu,{height:40,dangerouslySetInlineStyle:{__style:{textAlign:"revamped_business_login_page"===i?"center":"left"}},ref:e=>{this.profilePicButton=e},children:(0,p.jsx)("div",{className:"fb-login-button","data-auth-type":t?"rerequest":void 0,"data-button-type":"continue_with","data-layout":"rounded","data-onlogin":"checkLoginState","data-scope":(0,k._V)().join(","),"data-size":"large","data-use-continue-as":"true","data-width":"268px"})})]})}render(){let{tooltip:e}=this.props;return(0,p.jsxs)(l.xu,{position:"relative",children:[this.renderProfilePicButtonWithFallback(),!!e&&(0,p.jsx)(g,{anchor:this._fallbackButton,message:e}),this.state.showModal&&(0,p.jsx)(m.Z,{type:"facebook",onDismiss:()=>this.setState({showModal:!1})})]})}}function B(e){let t=(0,b.ZP)(),o=(0,T.B)(),i=(0,r.B$)(),l=(0,w.lO)(),{checkExperiment:a}=(0,C.F)(),n=(0,R.Z)(),{anyEnabled:s}=a("web_facebook_disabled");return(0,p.jsx)(M,{...e,connectErrorMessage:t._('Couldn\'t connect. You must authorize Pinterest.', ' - ', ' -- '),desktopCoreLoginContext:i,i18n:t,login:(0,y.Z)(),requestContext:o,pageContext:l,webFacebookDisabled:s,viewer:n,checkExperiment:a})}},105555:(e,t,o)=>{o.d(t,{Z:()=>r});var i=o(883119),l=o(898781),a=o(773285),n=o(50286),s=o(785893);function r(){let e=(0,l.ZP)(),t=(0,n.HG)(),{checkExperiment:o}=(0,a.F)(),r=o(t?"dweb_unauth_remove_fb_signup_iteration":"mweb_unauth_remove_fb_signup_iteration").group;return(0,s.jsx)(i.xu,{marginTop:t?4:void 0,padding:t?4:void 0,children:(0,s.jsxs)(i.xu,{display:"flex",direction:"row",alignItems:"center",paddingX:4,paddingY:4,color:"errorWeak",rounding:t?4:void 0,children:[(0,s.jsx)(i.xu,{marginEnd:4,children:(0,s.jsx)(i.JO,{accessibilityLabel:e._('error in Facebook signup', 'facebook_signup_error_banner.icon', 'error icon on the facebook signup error banner'),icon:"workflow-status-problem",color:"default",size:20})}),(0,s.jsx)(i.xu,{children:(0,s.jsx)(i.xv,{children:r.startsWith("enabled_old_copy")?e._('We can\'t connect to your Facebook account. Try another method', 'facebook_signup_error_banner.copy_1', 'copy variant 1 for the facebook signup error banner'):e._('Facebook login isn\'t available for new users. Continue with email or Google:', 'facebook_signup_error_banner.copy_2', 'copy variant 2 for the facebook signup error banner')})})]})})}},720224:(e,t,o)=>{o.r(t),o.d(t,{default:()=>e5});var i,l=o(667294),a=o(616550),n=o(883119),s=o(56641),r=o(112690),c=o(746613),d=o(469134),_=o(231486),u=o(226198),h=o(816068),p=o(233211),g=o(803491),m=o(785893);let x=({margin:e,wideLight:t})=>(0,m.jsx)(n.xu,{width:t?404:110,dangerouslySetInlineStyle:{__style:{borderBottom:`${t?"#efefef":"#dedede"} 1px solid`,margin:null!=e?e:"10px auto"}}});var y=o(901656),f=o(898781),w=o(780280),b=o(966113),v=o(867820),P=o(52022),k=o(101331),A=o(170168);function S({type:e}){let{viewer:t}=(0,p.B$)(),o=(0,f.ZP)(),i=(0,r.Z)(),l=`${A.C0}${b.Hm8}`,{trackConversionUpsell:a}=(0,k.Z)();return(0,m.jsxs)(n.xu,{display:"flex",alignItems:"center",justifyContent:"center",fit:!0,marginTop:2,marginEnd:"auto",marginBottom:1,marginStart:"auto",children:[(0,m.jsx)(n.xv,{size:"100",weight:"normal",children:o._('Are you a business?', 'Prompt for business signup', 'Prompt for business signup')}),(0,m.jsx)(n.xu,{"data-test-id":"business-start",marginStart:1,children:(0,m.jsx)(n.rU,{href:l,underline:"none",target:"blank",onClick:()=>{(0,v.My)("unauth.business_link.click"),i({event_type:101,component:"signupToLogin"===e?13096:13867,element:10281,aux_data:(0,y.Z)(t.type)}),a({element:10281,eventType:14689})},children:(0,m.jsx)(n.xv,{size:"100",weight:"bold",children:o._('Get started here!', 'Prompt for signing up', 'Prompt for signing up')})})})]})}let j=({children:e,layout:t})=>{let{isRTL:o}=(0,w.B)();switch(t){case"SIGNUP_LARGE":return(0,m.jsx)(n.xu,{children:(0,m.jsx)(n.xu,{marginTop:4,children:e})});case"SIGNUP_SMALL":return(0,m.jsx)(n.xu,{marginTop:3,children:e});case"SIGNUP_WITH_AGE":return(0,m.jsx)(n.xu,{margin:-4,children:(0,m.jsx)(n.xu,{padding:3,"data-test-id":"login-button",children:e})});case"LOGIN_INLINE":return(0,m.jsxs)(n.xu,{children:[(0,m.jsx)(x,{}),(0,m.jsx)(n.xu,{display:"inlineBlock",marginEnd:1,children:e})]});case"LOGIN_SMALL":return(0,m.jsxs)(n.xu,{children:[(0,m.jsx)(x,{}),e]});case"SIGNUP_DEFAULT":case"LOGIN_DEFAULT":return(0,m.jsxs)(n.xu,{children:[(0,m.jsx)(x,{margin:"SIGNUP_DEFAULT"===t?o&&"20px -68px 15px 0px"||"20px 0px 15px -68px":o&&"20px 30px 15px -10px"||"20px -10px 15px -68px",wideLight:!0}),(0,m.jsx)(n.xu,{children:e})]});default:return e}};function z({layout:e,onClick:t,shouldHideBusinessCreateFooterLink:o,type:i}){let l=(0,f.ZP)(),a=(0,P.Z)();return(0,m.jsxs)(j,{layout:e,children:[(0,m.jsx)(n.xu,{display:"flex",fit:!0,marginEnd:"auto",marginBottom:1,alignItems:"center",justifyContent:"center",children:(0,m.jsxs)(n.kC,{alignItems:"stretch",justifyContent:"center",children:["signupToLogin"===i&&(0,m.jsx)(n.xv,{size:"100",children:l._('Already a member?', 'modernized.nux.footer.text', 'Header text to switch from the sign up modal to the login modal ')}),(0,m.jsx)(g.Z,{noButtonStyles:!0,onClick:e=>{a({action:"click",item:"email-signup-button"}),t(e)},styleOverrides:{color:"#333",marginLeft:"5px",fontWeight:"bold"},type:"button",dataTestId:"login-signup-toggle",children:"signupToLogin"===i&&l._('Log in', 'modernize.nux.switch.to.login.modal', 'Toggle to switch from the sign up modal to the login modal')||l._('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,m.jsx)(S,{type:i})]})}var E=o(563387),C=o(754124),T=o(584595),L=o(290148),R=o(45169),Z=o(830269),I=o(143461),M=o(109322);let B=({disablePostSignupNextUrl:e,handleLoginToggleButtonClick:t,loadingIndicatorCallback:o,nextUrlParam:i,registrationCredentials:a,showResponseMessageModal:s})=>{let r=(0,f.ZP)(),{register:g,viewer:x}=(0,p.B$)(),{refreshToken:w}=(0,I.D)(),[b,P]=(0,l.useState)(!1),[k,A]=(0,l.useState)(!0),[S,j]=(0,l.useState)(!1),[B,F]=(0,l.useState)(""),[O,N]=(0,l.useState)(void 0),W="other";switch(null==a?void 0:a.type){case"google":W="google";break;case"facebook":W="facebook";break;case"line":W="line"}(0,l.useEffect)(()=>{"1"===_.U2(u.It)&&(j(!0),F(r._('Sorry, you\u2019re not eligible to sign up for Pinterest right now.', 'signup.birthdaycollection.ineligible.msg', 'Error message shown when underage user tries to register')))},[r,F]),(0,l.useEffect)(()=>{(0,v.My)("dweb.signup_age_step",{type:null==a?void 0:a.type,format:"birthday"})},[null==a?void 0:a.type]);let V=()=>{(0,v.My)("dweb.birthdaycollection.signup_success"),(0,v.Rp)({event:"signup_api_call_success",provider:W}),s?s(!0):L.ZP.handleSignupRedirect(i,e)},U=async()=>{if(!a||!O){o(!1);return}let e={...a.signupOptions,birthday:(0,h.Z)(O),birthday_source_site:R.E_.PINTEREST};try{let t;let o={facebook:Z.Z.FACEBOOK,google:Z.Z.GPLUS,google_one_tap:Z.Z.GOOGLE_ONE_TAP,line:Z.Z.LINE,socialSignupWithAge:void 0}[a.type];"google"===a.type?t=12981:"google_one_tap"===a.type&&(t=12982),(0,v.Rp)({event:"signup_api_call_start",provider:W}),await g(e,{signupContext:void 0,signupAttemptContextEvent:{event_type:7537,element:t,aux_data:{...(0,y.Z)(x.type),...o?{signup_login_method:o}:Object.freeze({})}}}),V()}catch(e){switch((0,v.Rp)({event:"signup_api_call_failure",provider:W}),w&&w(),e.api_error_code){case T.tz:(0,v.My)("dweb.birthdaycollection.signup_error.underage"),_.t8(u.It,"1",(0,_.kZ)(u.It)),P(!0);break;case T.NF:(0,v.My)("dweb.birthdaycollection.signup_error.eu_missing_age"),F(e.message||r._('We need to know your age to provide you this service.', 'signup.birthdaycollection.error.missingAge', 'Error message shown when age is required and it is missing'));break;case T.tL:(0,v.My)("dweb.birthdaycollection.signup_error.overage"),F(e.message||r._('Oops! Please use a valid age to sign up.', 'signup.birthdaycollection.error.overage', 'Error message shown when overage (age over 120) user tries to register'));break;case T.iZ:(0,v.My)("dweb.birthdaycollection.signup_error.invalid_email"),F(r._('Your email is invalid.', 'signup.birthdaycollection.error.invalidEmail', 'Error message shown when user inputs invalid email'));break;case T.Jt:(0,v.My)("dweb.birthdaycollection.signup_error.email_contain_pinterest"),F(r._('Please stick to your name, or the name of your brand', 'signup.birthdaycollection.error.emailContainsPinterest', 'Error message shown when email contains pinterest'));break;default:(0,v.My)("dweb.birthdaycollection.signup_error.other"),F(r._('Sorry! Something went wrong on our end.', 'signup.birthdaycollection.error.other', 'Error message shown when there is an unknown error'))}}};return b?(0,m.jsx)(C.Z,{birthday:O,onEditBirthday:()=>P(!1)}):(0,m.jsx)(n.xu,{paddingX:5,paddingY:5,children:(0,m.jsx)(n.xu,{paddingX:12,children:(0,m.jsxs)(n.kC,{direction:"column",justifyContent:"center",alignItems:"center",children:[(0,m.jsx)(n.xu,{width:48,height:48,marginTop:5,marginBottom:1,children:(0,m.jsx)(n.Ee,{alt:r._('Birthday Image', 'signup.birthdaycollection.image.alt', 'Alt text for birthday cake image'),src:c,naturalHeight:48,naturalWidth:48})}),(0,m.jsx)(n.xu,{marginBottom:2,children:(0,m.jsx)(n.X6,{align:"center",size:"600",children:r._('Enter your birthdate', 'signup.birthdaycollection.title', 'label for birthday collection')})}),(0,m.jsx)(n.xu,{width:310,marginBottom:4,children:(0,m.jsx)(n.xu,{marginBottom:4,children:(0,m.jsx)(n.xv,{align:"center",children:r._('To help keep Pinterest safe, we now require your birthdate. Your birthdate also helps us provide more personalized recommendations and relevant ads. We don\'t share this information and it won\'t be visible on your profile.', 'signup.birthdaycollection.subheader1', 'Sign up birthday step subheader')})})}),(0,m.jsx)(n.xu,{width:280,marginBottom:4,children:(0,m.jsx)(n.nv,{autoComplete:"bday",disabled:S,errorMessage:B,id:"birthday",onChange:({value:e})=>{F(""),A(!e),N(e)},size:"lg",type:"date",value:O||""})}),(0,m.jsx)(n.xu,{width:280,marginBottom:10,children:(0,m.jsx)(n.xv,{color:"subtle",align:"center",children:(0,d.ML)(r)})}),(0,m.jsx)(n.xu,{width:280,marginBottom:3,children:(0,m.jsx)(n.zx,{color:"red",disabled:k,fullWidth:!0,onClick:()=>{if((0,v.Rp)({event:"submit_birthday",provider:W}),O&&!(0,d.Cd)(O,M.kx)){F((0,d.Uy)(r));return}U()},text:r._('Create account', 'signup.birthdaycollection.submit_label', 'Text on the sign up button for signing up on birthday collection screen')})}),(0,m.jsx)(n.xu,{marginTop:2,marginBottom:9,width:340,children:(0,m.jsx)(E.Z,{dark:!0})}),(0,m.jsx)(n.xu,{marginBottom:2,children:(0,m.jsx)(z,{layout:"SIGNUP_LARGE",onClick:()=>t(),type:"signupToLogin"})})]})})})};var F=o(385740),O=o(85651),N=o(777024),W=o(905171),V=o(996438),U=o(611683),D=o(979661),G=o(85334),H=o(903095),$=o(743847),Y=o(319915),q=o(186656),K=o(499128),X=o(65189),J=o(738192),Q=o(773285),ee=o(817656),et=o(947599),eo=o(343341),ei=o(26717),el=o(216895),ea=o(134906);function en(e,t,o){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}let es=(0,l.lazy)(()=>o.e(97500).then(o.bind(o,97500))),er="emailpwdstep";class ec extends l.Component{constructor(e){var t;super(e),t=this,en(this,"onLoginWithSuspended",()=>{let{loadingIndicatorCallback:e}=this.props;e(!1),this.setState({accountRecoveryModalType:O.w[T.an]})}),en(this,"onLoginWithVoluntarilyDeactivated",e=>this.setState({googleValidationError:e})),en(this,"setLoadingState",e=>{let{loadingIndicatorCallback:t,showSignupWelcomeLoadingFn:o}=this.props;return o&&!1===e&&o(!1),t(e)}),en(this,"handleEmailChange",e=>{this.props.setEmail(e.target.value),this.setState({hideFBGoogleToolTip:!0})}),en(this,"handlePasswordChange",e=>{this.state.passwordValidationError&&this.setState({passwordValidationError:null}),this.props.setPassword(e.target.value)}),en(this,"handleEmailSignUp",()=>{var e,t,o;(0,v.My)("unauth_email_validation_attempt"),this.props.trackInteraction({action:"click",item:"email-signup-button"});let i=(0,el.Z)(null!==(e=this.props.email)&&void 0!==e?e:"",this.emailValidators);if(i)this.setState({emailValidationError:i}),(0,v.My)(`unauth.login.error.CLIENT_ERROR.malformemail.${er}`);else{let e=(0,el.Z)(null!==(t=this.props.password)&&void 0!==t?t:"",this.asciiValidators);e&&(this.setState({passwordValidationError:e}),(0,v.My)(`unauth.login.error.CLIENT_ERROR.nonasciipwd.${er}`)),(i=(0,el.Z)(null!==(o=this.props.password)&&void 0!==o?o:"",this.loginPasswordValidators))?(this.setState({passwordValidationError:i}),(0,v.My)(`unauth.login.error.CLIENT_ERROR.malformpwd.${er}`)):(this.setState({passwordValidationError:null}),this.validateEmailAvailable()),this.setState({emailValidationError:null}),this.props.setNameFromEmail()}}),en(this,"register",({birthday:e})=>{let{container:t,email:o,name:i,pageContext:l,password:a,onBirthdayUnderage:n,requestContext:s,signupSource:r,register:c,i18n:d}=this.props,h={type:"email",birthday:e,email:o,password:a,country:s.country,first_name:i,last_name:"",recaptchaV3Token:this.props.recaptchaV3Token||"default"},p={container:t,page:null==l?void 0:l.pageType,signupSource:r};(0,v.My)("one_step_age_signup_complete"),(0,v.Rp)({event:"signup_api_call_start",provider:"email"}),c(h,{signupContext:p,signupAttemptContextEvent:this.signupLoginContextEvent(7537)}).then(()=>{let{showResponseMessageModal:e}=this.props;(0,v.My)("unauth.signup_one_step.completed"),(0,v.Rp)({event:"signup_api_call_success",provider:"email"}),e?e(!0):L.ZP.handleSignupRedirect(this.props.nextUrlParam,this.props.disablePostSignupNextUrl)},e=>{switch(this.setLoadingState(!1),(0,v.Rp)({event:"signup_api_call_failure",provider:"email"}),this.props.refreshRecaptchaV3Token&&this.props.refreshRecaptchaV3Token(),e.api_error_code){case T.tz:_.t8(u.It,"1"),n?n({birthday:this.props.birthday,email:o}):this.showUnderAgeError(e.message);break;case T.NF:this.setState({birthdayValidationError:e.message||d._('We need to know your age to provide you this service.', 'userRegistration.missingAgeError', 'Error message shown when age is required and it is missing')});break;case T.tL:this.setState({birthdayValidationError:e.message||d._('Oops! Please use a valid age to sign up.', 'userRegistration.overageError', 'Error message shown when overage (age over 120) user tries to register')});break;case T.iZ:(0,v.My)("unauth_show_invalid_email_inline_error"),this.setState({emailValidationError:d._('Your email is invalid.', ' - ', ' -- ')});break;case T.Jt:(0,v.My)("unauth_show_invalid_email_contains_pinterest"),this.setState({emailValidationError:d._('Please stick to your name, or the name of your brand', ' - ', ' -- ')});break;default:(0,W.x)(d._('Sorry! Something went wrong on our end.', ' - ', ' -- '))}})}),en(this,"checkEmailExistsWithCompletion",({email:e,handleEmailExists:t,handleEmailNotExist:o,handleError:i})=>{let{i18n:l}=this.props;(0,q.Z)({url:"/v3/register/exists/",data:{email:e}}).then(e=>{this.setState({emailValidationError:null}),!1===e.resource_response.data?o():t()},e=>{let t=l._('Hmm...that doesn\'t look like an email address', ' - ', ' -- ');if(e.api_error_code===T.bd)t=e.message;else{let e=(0,el.Z)(this.props.email,this.asciiValidators);e&&(0,v.My)(`unauth.login.error.CLIENT_ERROR.nonasciiemail.${er}`)}this.setState({emailValidationError:t}),null==i||i()})}),en(this,"checkEmailValidation",async function(e){let{i18n:o,showToast:i}=t.props;if((0,$.Z)(e)||(0,$.z)(e,"yahoo")||(0,$.z)(e,"hotmail")){t.setState({emailValidationError:o._('Sorry, this doesn\'t look like a valid email', 'register.email.error.message', 'Email error by backend validation')});return}try{let i=await (0,q.Z)({url:"/v3/email/validation/",data:{email:e}}),{data:l}=i.resource_response||{},a=l&&l.is_valid;a?t.setState({emailValidationError:null}):t.setState({emailValidationError:o._('Sorry, this doesn\'t look like a valid email', 'register.email.error.message', 'Email error by backend validation')})}catch(e){null!=e&&e.message?i(({hideToast:t})=>(0,m.jsx)(K.ZP,{duration:3e3,type:"error",text:e.message,onHide:t})):(0,v.My)(`unauth.login.error.${er}.ERROR${e.api_error_code}`)}}),en(this,"updateAccountRecoveryModal",e=>this.setState({accountRecoveryModalType:e})),en(this,"renderSignupForm",()=>{let{birthday:e,email:t,i18n:o,onBirthdayChange:i,password:l,suppressFocus:a,viewType:s,viewParameter:r,component:c,attributionLabel:h,trackConversionUpsell:p}=this.props,{birthdayValidationError:g}=this.state,x=(0,d.Uy)(o),y=e=>{p({element:e,eventType:14689})};return this.state.showRegisterForm?(0,m.jsx)(D.Z,{buttonText:o._('Continue', 'Continue button on web', 'Continue button on web'),buttonTextLabel:o._('Continue creating your Pinterest account', 'Accessiblity button text to continue creating an account', 'Accessiblity button text to continue creating an account'),email:t,emailFieldHasError:this.state.emailFieldHasError,emailLabel:o._('Continue with email', 'Sign up button', 'Sign up button'),emailText:o._('Email', 'Text on button asking for email', 'Text on button asking for email'),emailValidationError:this.state.emailValidationError,signupForm:{birthdayProps:{birthday:e,birthdayValidationError:g,setBirthdayValidationError:e=>this.setState({birthdayValidationError:e}),onBirthdayChange:i},checkEmailExistsWithCompletion:this.checkEmailExistsWithCompletion,checkEmailValidation:this.checkEmailValidation,registerRestricted:"1"===_.U2(u.It)},onButtonClick:()=>{if("1"===_.U2(u.It)){this.showUnderAgeError();return}if(e&&!(0,d.Cd)(e,M.kx)){this.setState({birthdayValidationError:x});return}this.setState({facebookValidationError:null,googleValidationError:null,hideFBGoogleToolTip:!1}),this.handleEmailSignUp()},onEmailChange:this.handleEmailChange,onPasswordChange:this.handlePasswordChange,password:null!=l?l:"",passwordText:o._('Create a password', 'Text asking the user to create a password while registering', 'Text asking the user to create a password while registering'),passwordValidationError:this.state.passwordValidationError,suppressFocus:a,component:c,viewType:s,viewParameter:r,attributionLabel:h}):(0,m.jsx)(n.xu,{"data-test-id":"emailSignUpButton",children:(0,m.jsx)(n.zx,{fullWidth:!0,text:o._('Continue with email', 'Text on the sign up button for signing up with email', 'Text on the sign up button for signing up with email'),color:"red",onClick:()=>{y(13506),(0,v.NC)("signup_email_button"),this.props.trackInteraction({action:"click",item:"email-signup-button",within:"bottom-right-upsell"}),this.setState({showRegisterForm:!0})}})})}),en(this,"showUnderAgeError",e=>{let{i18n:t}=this.props;this.setState({birthdayValidationError:e||t._('Sorry, you\u2019re not eligible to sign up for Pinterest right now.', 'Error message shown when underage user tries to register', 'Error message shown when underage user tries to register')})});let o=new URLSearchParams(e.location.search),i=+o.get("aec");o.delete("aec"),e.history.replace({pathname:e.location.pathname,search:o.toString()}),this.state={accountRecoveryModalType:i===T.yV||i===T.$j?L.Ny.SOFT_BANNED:null,birthdayValidationError:null,emailFieldHasError:!1,emailValidationError:null,facebookValidationError:null,googleValidationError:null,passwordValidationError:null,showRegisterForm:"home_page"===this.props.container,hideFBGoogleToolTip:!1};let{i18n:l}=e;this.emailValidators=[(0,ea.aH)({message:l._('You missed a spot! Don\'t forget to add your email.', ' - ', ' -- ')}),(0,ea.GT)({message:l._('Hmm...that doesn\'t look like an email address.', ' - ', ' -- ')})];let a=l._('Your password is too short! You need 6+ characters.', ' - ', ' -- '),s=l._('Use only a mix of letters, numbers and special characters (for example: ?, !, $).', 'EmailPasswordStep.password.onlyASCII', 'Only ASCII characters are allowed for password');this.requireBirthdayValidatorMessage=l._('You missed a spot. Don\u2019t forget to add your birthday.', 'signup.emailpasswordstep.birthday.require.validator_message', 'Error message shown when user did not fill the birthday field in the sign up model');let r=l._('Invalid date', 'signup.emailpasswordstep.birthday.validator_message', 'Error message shown when user input a birthday date later than allowed');this.passwordValidators=[(0,ea.aH)({message:a}),(0,ei.Z)({shortPassStr:a,samePasswordStr:l._('Please make your username and password different.', ' - ', ' -- '),blackPassStr:l._('Please make a stronger password.', ' - ', ' -- ')})],this.asciiValidators=[(0,ea.oR)({message:s})],this.loginPasswordValidators=[(0,ea.aH)({message:a}),(0,ea.oR)({message:s}),(0,ea.Gy)({min:6,minErrorString:a})],this.birthdayValidators=[(0,ea.aH)({message:this.requireBirthdayValidatorMessage}),(0,ea.C9)({date:new Date(new Date().getFullYear(),0,1),message:r})]}handleLoginFailure(e,t){let{setPassword:o,email:i,onLoginWithMfa:l,i18n:a}=this.props,n=e.http_status===ee.Ej?ee.Ej:e.api_error_code;if(n===T.Zn){var s;L.ZP.handleLoginMfa(t,{phoneNumberEnd:null===(s=e.data)||void 0===s?void 0:s.phone_number_end},l);return}let r=(0,J.Z)({error:e,source:"emailPasswordStep",onClickPasswordReset:()=>{(0,v.My)("unauth_password_reset_link_tapped"),(0,q.Z)({url:"/v3/users/forgot_password/",method:"POST",data:{username_or_email:i}}).then(()=>this.updateAccountRecoveryModal(L.Ny.PASSWORD_RESET_SENT))}});r?(this.setState({...r,accountRecoveryModalType:n?O.w[n]:void 0}),r.passwordValidationError&&o("")):(0,W.x)(a._('Sorry! Something went wrong on our end.', ' - ', ' -- ')),this.setLoadingState(!1)}handleLoginSuccess(e){L.ZP.storeLoginCredentialsToBrowser(e);let{showResponseMessageModal:t}=this.props;t?t(!1):this.props.nextUrlParam?L.ZP.handleSignupRedirect(this.props.nextUrlParam,this.props.disablePostSignupNextUrl):window.location.reload()}signupLoginContextEvent(e){let{viewer:t}=this.props;return{event_type:e,aux_data:{...(0,y.Z)(t.type),signup_login_method:Z.Z.EMAIL}}}validateEmailAvailable(){var e=this;let{container:t,email:o,login:i,pageContext:l,password:a}=this.props;this.props.refreshRecaptchaV3Token&&this.props.refreshRecaptchaV3Token(),this.setLoadingState(!0),this.checkEmailExistsWithCompletion({email:o,handleEmailExists:()=>{let e={username_or_email:o,password:null!=a?a:""};i({creds:e,loggingOptions:{loggingData:{container:t,page:null==l?void 0:l.pageType},loginAttemptContextEvent:this.signupLoginContextEvent(7534)},recaptchaV3Token:this.props.recaptchaV3Token||"default"}).then(()=>this.handleLoginSuccess(e),t=>this.handleLoginFailure(t,e))},handleEmailNotExist:async function(){await e.checkEmailValidation(o);let{birthday:t,password:i}=e.props;if(e.setLoadingState(!1),e.state.emailValidationError)return;let l=await (0,el.U)(null!=i?i:"",e.passwordValidators);if(l){e.setState({passwordValidationError:l}),(0,v.My)(`unauth.login.error.CLIENT_ERROR.malformpwd.${er}`);return}let a=(0,el.Z)(t||"",e.birthdayValidators);if(a){(0,v.My)(`unauth.login.error.CLIENT_ERROR.invalidbirthday.${er}`),e.setState({birthdayValidationError:a});return}let n=t?(0,h.Z)(t):void 0;if(void 0===n){e.setState({birthdayValidationError:e.requireBirthdayValidatorMessage});return}if((0,$.Z)(o)){e.setState({emailFieldHasError:!0});return}e.setState({emailValidationError:null}),(0,v.My)("unauth.signup_step_1.completed"),e.register({birthday:n})}})}render(){let{additionalChildren:e,container:t,disablePostSignupNextUrl:o,email:i,loadingIndicatorCallback:a,nextUrlParam:s,disableFBSignup:r,onFBMissingEmail:c,onFBPhoneOnlyConnectVerified:d,onLoginWithMfa:_,switchToSocialSignupWithAgeFlow:u,showLineConnectButton:h,showResponseMessageModal:p,showSignupWelcomeLoadingFn:g,trackConversionUpsell:x,requestContext:y}=this.props,{accountRecoveryModalType:f,facebookValidationError:w,googleValidationError:b,hideFBGoogleToolTip:v,showRegisterForm:P}=this.state,k=e=>{x({element:e,eventType:14689})},A=y.experimentsClient.checkExperiment("dweb_unauth_remove_fb_signup_iteration").anyEnabled;return(0,m.jsxs)(n.xu,{width:268,dangerouslySetInlineStyle:{__style:{margin:"0 auto"}},children:[(0,m.jsx)(O.Z,{email:i,modalType:f,onLoginWithMfa:_,onLoginWithSuspended:this.onLoginWithSuspended,onLoginWithVoluntarilyDeactivated:this.onLoginWithVoluntarilyDeactivated,updateAccountRecoveryModal:this.updateAccountRecoveryModal}),(0,m.jsxs)(n.xu,{children:[this.renderSignupForm(),!!P&&(0,m.jsx)(N.Z,{}),(0,m.jsxs)(n.xu,{dangerouslySetInlineStyle:{__style:{marginTop:"10px"}},children:[!A&&(0,m.jsx)(V.Z,{container:t,disablePostSignupNextUrl:o,loadingIndicatorCallback:a,onFBPhoneOnlyConnectVerified:d,onFBMissingEmail:c,disableFBSignup:r,onLoginWithMfa:_,onLoginWithSuspended:this.onLoginWithSuspended,socialSignupCallbacks:{type:"SOCIAL_SIGNUP_WITH_AGE",switchToSocialSignupWithAgeFlow:u},showResponseMessageModal:p,showSignupWelcomeLoadingFn:g,tooltip:!v&&w||null,showLoginRateLimited:()=>this.updateAccountRecoveryModal(L.Ny.RATE_LIMITED),onClick:()=>{k(13505)}}),(0,m.jsx)(n.xu,{height:10}),(0,m.jsx)(n.xu,{children:(0,m.jsx)(U.Z,{container:t,nextUrlParam:s,onLoginWithMfa:_,onLoginWithSuspended:this.onLoginWithSuspended,onLoginWithVoluntarilyDeactivated:this.onLoginWithVoluntarilyDeactivated,socialSignupCallbacks:{type:"SOCIAL_SIGNUP_WITH_AGE",switchToSocialSignupWithAgeFlow:u},showResponseMessageModal:p,tooltip:!v&&b||null,showLoginRateLimited:()=>this.updateAccountRecoveryModal(L.Ny.RATE_LIMITED),onClick:()=>{k(13504)}})}),h&&(0,m.jsxs)(l.Fragment,{children:[(0,m.jsx)(n.xu,{height:10}),(0,m.jsx)(Y.Z,{name:"SafeSuspense_EmailPasswordStep_LineConnectButton",children:(0,m.jsx)(et.Z,{children:(0,m.jsx)(es,{container:t,loadingIndicatorCallback:a,nextUrlParam:s,onLoginWithMfa:_,onLoginWithSuspended:this.onLoginWithSuspended,socialSignupCallbacks:{type:"SOCIAL_SIGNUP_WITH_AGE",switchToSocialSignupWithAgeFlow:u},showResponseMessageModal:p,showLoginRateLimited:()=>this.updateAccountRecoveryModal(L.Ny.RATE_LIMITED),onClick:()=>{k(13507)}})})})]})]})]}),(0,m.jsx)(E.Z,{dark:!0}),e]})}}function ed(e){let t=(0,H.lO)(),o=(0,w.B)(),{showToast:i}=(0,eo.F9)(),{register:n,viewer:s}=(0,p.B$)(),c=(0,G.Z)(),d=(0,r.Z)(),{viewType:_,viewParameter:u}=(0,F.SU)(),h=(0,P.Z)(),g=(0,f.ZP)(),{country:x}=o,y=(0,a.useLocation)(),b=(0,a.useHistory)(),{recaptchaV3Token:v,refreshToken:A}=(0,I.D)(),S="JP"===x,[j,z]=(0,l.useState)(),[E,C]=(0,l.useState)(""),[T,L]=(0,l.useState)(""),{trackConversionUpsell:R}=(0,k.Z)(),{checkExperiment:Z}=(0,Q.F)();return(0,m.jsx)(ec,{...e,birthday:j,onBirthdayChange:e=>z(e.value),name:E,setNameFromEmail:()=>C((0,X.Z)(e.email,x)),password:T,setPassword:L,recaptchaV3Token:v,refreshRecaptchaV3Token:A,pageContext:t,requestContext:o,viewer:s,register:n,login:c,logContextEvent:d,viewType:_,viewParameter:u,i18n:g,location:y,history:b,showLineConnectButton:S,showToast:i,trackInteraction:h,attributionLabel:e.attributionLabel,trackConversionUpsell:R,checkExperiment:Z})}var e_=o(989392),eu=o(894738);let eh=({email:e,emailError:t,onNotNowClick:o,handleEmailChange:i,handleSubmit:a})=>{let s=(0,f.ZP)();(0,l.useEffect)(()=>{(0,v.My)("unauth.fb_phone_only_signup.email_step")},[]),s._('We use your email address for account creation and for important security and legal notices.', 'subtitle to explain the step on email collection form', 'subtitle to explain the step on email collection form');let r=s._('Oops. We\'re unable to create your account without your email. To continue, make sure you provide email to create your account.', 'subtitle to explain the step on email collection form', 'subtitle to explain the step on email collection form');return(0,m.jsx)(n.xu,{marginTop:3,children:(0,m.jsxs)("form",{method:"post",noValidate:!0,onSubmit:e=>{e.preventDefault(),a()},children:[(0,m.jsx)(n.xv,{align:"start",overflow:"normal",children:r}),(0,m.jsx)(n.xu,{marginTop:3}),(0,m.jsx)(n.xu,{children:(0,m.jsx)(n.nv,{ref:eu.Z,errorMessage:Array.isArray(t)?t.join(""):t,id:"email",onChange:i,placeholder:s._('Email address', 'email placeholder in the email inputfield on email collection form', 'email placeholder in the email inputfield on email collection form'),size:"lg",type:"email"})}),(0,m.jsx)(n.xu,{marginTop:5}),(0,m.jsx)(n.zx,{fullWidth:!0,color:"red",disabled:!e,text:s._('Continue', 'word on the button which to submit user email information', 'word on the button which to submit user email information'),type:"submit"}),(0,m.jsx)(n.xu,{marginTop:2}),(0,m.jsx)(n.zx,{fullWidth:!0,onClick:()=>{(0,v.My)("unauth.fb_phone_only_signup.email_step.not_now_click"),o&&o()},text:s._('Not now', 'word on not now button to dismiss the collection form', 'word on not now button to dismiss the collection form'),type:"submit"})]})})};var ep=o(910702),eg=o(467570);function em(e,t,o){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}let ex={EMAIL:"email"};class ey extends l.Component{constructor(e){super(e),em(this,"mounted",!1),em(this,"handleEmailChange",({value:e})=>{this.setState({email:e})}),em(this,"showError",(e,t)=>{this.mounted&&t===ex.EMAIL&&this.setState({emailError:e})}),em(this,"handleSubmit",()=>{let{i18n:e}=this.props;if((0,v.My)("unauth.fb_phone_only_signup.submit_email"),(0,v.Rp)({event:"submit_email",provider:"facebook"}),this.state.email)(0,v.My)("unauth.fb_phone_only_signup.submit_email"),this.attemptEmailSignupOrLogin();else{let t=e._('Email is required', 'email error message', 'email error message');this.setState({emailError:t})}}),em(this,"handleSignupSuccess",()=>{L.ZP.handleSignupRedirect(this.props.nextUrlParam||window.location.pathname,!0),(0,v.My)("unauth.fb_phone_only_signup.signup_success"),(0,v.Rp)({event:"signup_api_call_success",provider:"facebook"})}),em(this,"handleSignupFailure",e=>t=>{let{i18n:o}=this.props,i=t.message||o._('Oops! Something went wrong\u2026 Click Continue to try again.', 'Error during signup during FB email collection step', 'Error during signup during FB email collection step');this.showError(i,e),(0,v.My)("unauth.fb_phone_only_signup.signup_failure"),(0,v.Rp)({event:"signup_api_call_failure",provider:"facebook"})}),em(this,"attemptEmailSignupOrLogin",()=>{let{desktopCoreLoginContext:{register:e},i18n:t}=this.props,{email:o}=this.state,i=[(0,ea.GT)({message:t._('Hmm... that doesn\'t look like an email address.', 'email error message', 'email error message')})],l=(0,el.Z)(o,i);if(l){(0,v.My)("unauth.fb_phone_only_signup.email_validation_failure"),this.setState({emailError:l});return}let{registrationCredentials:{type:a,signupOptions:n},showSocialSignupWithAgeStep:s,showEmailAlreadyExistModal:r}=this.props;(0,q.Z)({url:"/v3/register/exists/",data:{email:o}}).then(t=>{if(!1===t.resource_response.data){let t={...n,email:o,email_source_site:R.E_.PINTEREST},{birthday:i}=t;if(void 0!==i&&(0,e_.Z)(i)){(0,v.Rp)({event:"signup_api_call_start",provider:"facebook"});let o=t.facebook_token?(0,eg.MI)(t.facebook_token).then(ep.Z):Promise.resolve(Object.freeze({}));o.then(o=>e({...o,...t,birthday:i,birthday_source_site:R.E_.FACEBOOK},{signupContext:void 0,signupAttemptContextEvent:{event_type:7537,view_type:10}})).then(this.handleSignupSuccess,this.handleSignupFailure(ex.EMAIL))}else s({type:a,signupOptions:t})}else r({email:o}),(0,v.My)("unauth.fb_phone_only_signup.email_existed")},e=>{let o=t._('Hmm... that doesn\'t look like an email address.', 'email error message', 'email error message');e.api_error_code===T.bd&&(o=e.message),this.showError(o,ex.EMAIL),(0,v.My)("unauth.fb_phone_only_signup.email_exist_api_call_failure")})}),this.state={email:"",emailError:""}}componentDidMount(){this.mounted=!0,this.props.loadingIndicatorCallback&&this.props.loadingIndicatorCallback(!1)}componentWillUnmount(){this.mounted=!1}render(){return(0,m.jsx)(n.xu,{width:268,dangerouslySetInlineStyle:{__style:{margin:"0 auto"}},children:(0,m.jsx)(eh,{email:this.state.email,emailError:this.state.emailError,handleEmailChange:this.handleEmailChange,handleSubmit:this.handleSubmit,onNotNowClick:this.props.onNotNowClick})})}}let ef=e=>{let t=(0,p.B$)(),o=(0,w.B)(),{checkExperiment:i}=(0,Q.F)(),l=(0,f.ZP)();return(0,m.jsx)(ey,{...e,checkExperiment:i,desktopCoreLoginContext:t,i18n:l,requestContext:o})};var ew=o(105555);let eb=({onClick:e})=>{let t=(0,w.B)(),o=(0,f.ZP)();return(0,m.jsx)(n.xu,{position:"absolute",display:"block",marginTop:4,marginEnd:4,marginStart:4,height:40,width:40,right:!t.isRTL,left:t.isRTL,top:!0,"data-test-id":"full-page-signup-close-button",children:(0,m.jsx)(n.hU,{accessibilityLabel:o._('close', 'accessible label for close button', 'accessible label for close button'),onClick:e,icon:"cancel",iconColor:"darkGray",size:"md"})})};var ev=o(167912),eP=o(356997),ek=o(53987),eA=o(248975),eS=o(995228);let ej=void 0!==i?i:i=o(174566),ez=({fallback:e,pinId:t,iconButton:o})=>{var i,l,a;let s=(0,f.ZP)(),r=(0,ev.useLazyLoadQuery)(ej,{pinId:t});if(!t)return e;let{dominantColor:c,embed:d,imageSpec_236x:_}=null!==(i=null===(l=r.v3GetPinQuery)||void 0===l?void 0:l.data)&&void 0!==i?i:{},u={"236x":null!==(a=null==_?void 0:_.url)&&void 0!==a?a:""},h=(0,eA.Z)({imagesUrls:u,embedSrc:null==d?void 0:d.src,embedType:null==d?void 0:d.type,preferredResolution:"236x",excludeOriginals:!0});return h?(0,m.jsxs)(n.xu,{width:82,height:80,position:"relative",margin:"auto","data-test-id":"signup-image-wrapper",children:[(0,m.jsx)(n.xu,{width:56,height:72,margin:"auto",marginBottom:6,marginTop:4,children:(0,m.jsx)(n.zd,{width:56,height:72,rounding:2,children:(0,m.jsx)(n.Ee,{alt:s._('Save pin image', 'FullPageSignup.signupImage.savePinImage', 'Unauth save modal pin image alt text'),color:c||"",fit:"cover",naturalHeight:1,naturalWidth:1,src:h})})}),!!o&&(0,m.jsx)(n.xu,{position:"absolute",bottom:!0,right:!0,children:o})]}):e};function eE({container:e,fallback:t,savePinId:o,user:i,signupSource:l}){var s,r;let c=(0,f.ZP)(),{path:d}=(0,a.useRouteMatch)(),_=(0,a.useLocation)(),u=(0,ek.L6)(_),h=o||("/pin/:id"===d?_.pathname.split("/")[2]:null),{colorGray0:p}=(0,n.tv)();switch(e){case"follow":return(0,m.jsx)(n.xu,{display:"flex",justifyContent:"center",marginTop:8,marginBottom:4,children:(0,m.jsx)(eP.qE,{accessibilityLabel:c._('User Avatar', 'profile.ProfileHeader.Avatar', 'Avatar in user profile page'),name:null!==(s=null==i?void 0:i.full_name)&&void 0!==s?s:"",outline:!0,size:"md",src:null!==(r=null==i?void 0:i.image_large_url)&&void 0!==r?r:""})});case"save":case"download":return u&&h?(0,m.jsx)(eS.Z,{fallback:t,children:(0,m.jsx)(ez,{fallback:t,pinId:h,iconButton:"downloadImageBtnUnauth"===l?(0,m.jsx)(n.zd,{rounding:"circle",children:(0,m.jsx)("div",{onClick:()=>{(0,v.My)("dweb.unauth.signup_modal.download_icon.click")},"aria-hidden":"true",children:(0,m.jsx)(n.xu,{display:"flex",rounding:"circle",color:"lightWash",direction:"column",alignItems:"center",justifyContent:"center",width:32,height:32,dangerouslySetInlineStyle:{__style:{boxSizing:"border-box",border:`solid 3px ${p}`}},children:(0,m.jsx)(n.JO,{accessibilityLabel:c._('Sign Up to download', 'web.unauth.download_modal.download_value_prop_unauth', 'Highlighting the download value prop in signup modal for unauth users after download attempt'),icon:"download",color:"default"})})})}):null})}):t;default:return t}}var eC=o(583375);function eT({large:e}){return(0,m.jsx)(n.xu,{display:"block",height:45,width:45,dangerouslySetInlineStyle:{__style:{margin:"8px auto 6px"}},children:(0,m.jsx)(eC.Z,{size:e?50:40})})}class eL extends l.Component{constructor(...e){var t,o,i;super(...e),t="componentDidMount",o=()=>{let{container:e,modalType:t}=this.props;(0,v.My)("web.unauth.modal_title.view"),(0,v.My)(`unauth_web_modal.${e||"unknown"}.tier1.${t}.shown`)},(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in this?Object.defineProperty(this,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):this[t]=o}render(){let{container:e,titleText:t}=this.props;return(0,m.jsx)("h1",{style:{color:"#333",fontSize:"revamped_business_login_page"===e?"28px":"32px",fontWeight:"revamped_business_login_page"===e?"500":"600",letterSpacing:"-1.2px",MozOsxFontSmoothing:"grayscale",padding:"revamped_business_login_page"===e?"0px 0px":"0px 16px",WebkitFontSmoothing:"antialiased",wordBreak:"keep-all"},children:t})}}let eR=({email:e,emailError:t,onNotNowClick:o,handleEmailChange:i,handleSubmit:a})=>{let s=(0,f.ZP)();(0,l.useEffect)(()=>{(0,v.My)("unauth.line_missing_email.email_step")},[]),s._('We use your email address for account creation and for important security and legal notices.', 'subtitle to explain the step on email collection form', 'subtitle to explain the step on email collection form');let r=s._('Oops. We\'re unable to create your account without your email. To continue, make sure you provide email to create your account.', 'subtitle to explain the step on email collection form', 'subtitle to explain the step on email collection form');return(0,m.jsx)(n.xu,{marginTop:3,children:(0,m.jsxs)("form",{method:"post",noValidate:!0,onSubmit:e=>{e.preventDefault(),a()},children:[(0,m.jsx)(n.xv,{align:"start",overflow:"normal",children:r}),(0,m.jsx)(n.xu,{marginTop:3,marginBottom:5,children:(0,m.jsx)(n.nv,{ref:eu.Z,errorMessage:Array.isArray(t)?t.join(""):t,id:"email",onChange:i,placeholder:s._('Email address', 'email placeholder in the email inputfield on email collection form', 'email placeholder in the email inputfield on email collection form'),size:"lg",type:"email"})}),(0,m.jsx)(n.zx,{fullWidth:!0,color:"red",disabled:!e,text:s._('Continue', 'word on the button which to submit user email information', 'word on the button which to submit user email information'),type:"submit"}),(0,m.jsx)(n.xu,{marginTop:2}),(0,m.jsx)(n.zx,{fullWidth:!0,onClick:()=>{(0,v.My)("unauth.line_missing_email.email_step.not_now_click"),o&&o()},text:s._('Not now', 'word on not now button to dismiss the collection form', 'word on not now button to dismiss the collection form'),type:"submit"})]})})};var eZ=o(829407);let eI=({nextUrlParam:e,loadingIndicatorCallback:t,showEmailAlreadyExistModal:o,onNotNowClick:i,registrationCredentials:a,showSocialSignupWithAgeStep:s})=>{let r=(0,p.B$)(),c=(0,f.ZP)(),[d,_]=(0,l.useState)(""),[u,h]=(0,l.useState)("");return(0,eZ.Z)(()=>{t(!1)}),(0,m.jsx)(n.xu,{marginTop:0,marginBottom:0,marginStart:"auto",marginEnd:"auto",width:268,children:(0,m.jsx)(eR,{email:d,emailError:u,handleEmailChange:({value:e})=>_(e),handleSubmit:()=>{if((0,v.My)("unauth.line_missing_email.submit_email"),!d){h(c._('Email is required', 'email error message', 'email error message'));return}(0,v.My)("unauth.line_missing_email.submit_email");let{register:i}=r,l=[(0,ea.GT)({message:c._('Hmm... that doesn\'t look like an email address.', 'email error message', 'email error message')})],n=(0,el.Z)(d,l);if(n){(0,v.My)("unauth.line_missing_email.email_validation_failure"),h(n);return}let{type:_,signupOptions:u}=a;(0,q.Z)({url:"/v3/register/exists/",data:{email:d}}).then(l=>{if(!1!==l.resource_response.data){o({email:d}),(0,v.My)("unauth.line_missing_email.email_existed");return}t(!0);let{birthday:a}=u;void 0===a?(s({type:_,signupOptions:{...u,email:d}}),t(!1)):i({...u,email:d,birthday:a},{signupContext:void 0,signupAttemptContextEvent:{event_type:7537,view_type:10}}).then(()=>{t(!1),L.ZP.handleSignupRedirect(e||L.ZP.defaultSocialLoginRedirectUrl(),!0),(0,v.My)("unauth.line_missing_email.signup_success")},e=>{t(!1);let o=e.message||c._('Oops! Something went wrong\u2026 Click Continue to try again.', 'unauth.lineEmailCollect.error', 'Error during signup during Line email collection step');h(o),(0,v.My)("unauth.line_missing_email.signup_failure")})},e=>{h(e.api_error_code===T.bd?e.message:c._('Hmm... that doesn\'t look like an email address.', 'email error message', 'email error message')),(0,v.My)("unauth.line_missing_email.email_exist_api_call_failure")})},onNotNowClick:i})})};var eM=o(710893),eB=o(407043),eF=o(81636),eO=o(597922),eN=o(349700),eW=o(966224);let eV=function({container:e="unknown",creds:t,isAccountSwitch:o,nextUrlParam:i,phoneNumberEnd:a}){let[s,r]=(0,l.useState)(null),[c,d]=(0,l.useState)(""),[_,u]=(0,l.useState)(!1),[h,p]=(0,l.useState)(!1),{isAuthenticated:x,loginState:y}=(0,w.B)(),P=(0,f.ZP)(),k=(0,H.lO)(),A=(0,G.Z)(),S={container:e,page:null==k?void 0:k.pageType},{logContextEvent:j}=(0,eB.v)();(0,eF.Q)({view_type:565,view_parameter:3731}),(0,l.useEffect)(()=>{!o&&L.ZP.isFullyLoggedIn(x,y)&&L.ZP.handleRedirect(i)},[]);let z=P._('Continue', ' - ', ' -- ');return(0,m.jsxs)(n.xu,{width:268,dangerouslySetInlineStyle:{__style:{margin:"18px auto"}},children:[_&&(0,m.jsx)(eW.Z,{rounding:8}),(0,m.jsx)("p",{style:{fontSize:"14px",margin:"24px 0",textAlign:"center"},children:a?(0,eN.nk)(P._('Please check your phone with the number ending in {{ phoneNumberEnd }} for a code and enter it in the field below to log in.', ' - ', ' -- '),{phoneNumberEnd:(0,m.jsx)("strong",{children:a},"phone")}):P._('Please check your phone for a code and enter it in the field below to log in.', ' - ', ' -- ')}),(0,m.jsxs)("form",{method:"POST",noValidate:!0,onSubmit:e=>{e.preventDefault(),j({view_type:565,view_parameter:3731,event_type:101,element:12019});let o=(0,el.Z)(null!=c?c:"",[(0,ea.aH)({message:P._('You missed a spot! Don\'t forget to add your verification code.', ' - ', ' -- ')}),(0,ea.VC)({message:P._('Hmm...that doesn\'t look like a verification code.', ' - ', ' -- ')})]);o?(r(o),(0,v.My)("unauth.login.error.CLIENT_ERROR.wrongcode.loginmfa")):(r(null),u(!0),A({creds:{...t,mfa_token:c},loggingOptions:{loggingData:S,loginAttemptContextEvent:{event_type:7534,view_type:565,view_parameter:3731}}}).then(()=>{j({view_type:565,view_parameter:3731,event_type:9992});let e=window.location.pathname===b.lfe||window.location.pathname.startsWith(b.rOJ)?"/":window.location.pathname;L.ZP.handleRedirect(i||e)},e=>{e.message?r(e.message):(0,W.x)(P._('Sorry! Something went wrong on our end.', ' - ', ' -- ')),u(!1)}))},children:[(0,m.jsx)(eO.Z,{autoComplete:"off",focused:!0,hasError:!!s,id:"mfaCode",name:"code",onChange:e=>d(e.target.value),placeholder:P._('Verification code', ' - ', ' -- '),tooltip:s,type:"text",value:c}),(0,m.jsx)(g.Z,{accessibilityLabel:z,className:"red SignupButton",styleOverrides:{width:"100%",borderRadius:"20px"},type:"submit",children:(0,m.jsx)(n.xu,{children:z})})]}),(0,m.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{marginTop:"15px",color:"#333"}},children:(0,eN.nk)(P._('If you didn\'t get it, we can {{ resendCode }}.', ' - ', ' -- '),{resendCode:(0,m.jsx)(n.rU,{display:"inlineBlock",href:"",onClick:({event:e,dangerouslyDisableOnNavigation:o})=>{o(),e.preventDefault(),j({view_type:565,view_parameter:3731,event_type:101,element:12920}),u(!0),A({creds:{...t,mfa_resend:!0},loggingOptions:{loggingData:S,loginAttemptContextEvent:{event_type:7534,view_type:565,view_parameter:3731}}}).then(()=>{u(!1),p(!0)},e=>{u(!1),e.message?r(e.message):(0,W.x)(P._('Sorry! Something went wrong on our end.', ' - ', ' -- '))})},underline:"hover",children:(0,m.jsx)(n.xv,{size:"100",weight:"bold",children:P._('resend the code', ' - ', ' -- ')})},"code")})}),h&&(0,m.jsx)(n.xu,{fit:!0,dangerouslySetInlineStyle:{__style:{bottom:50,left:"50%",transform:"translateX(-50%)"}},paddingX:1,position:"fixed",children:(0,m.jsx)(K.ZP,{onHide:()=>p(!1),text:P._('We sent you a new code!', 'login2fa.resendCode.success', 'Code was succesfully sent again to the user\'s phone number'),duration:5e3})})]})};var eU=o(708196);let eD={backgroundColor:"#fff",borderRadius:"8px",padding:"22px 0",position:"relative",textAlign:"center",width:"400px",margin:"auto",boxShadow:"0 2px 10px rgba(0,0,0,0.45)"},eG=({children:e,noBoxShadow:t})=>{let o={...eD,...t?{boxShadow:"none"}:{}},{viewer:i}=(0,p.B$)(),l=(0,p.Cw)();return"LIMITED_LOGIN"===i.type&&l?(0,m.jsxs)("div",{"data-test-id":"login-modal-default",style:{...o,display:"flex",width:"auto",padding:""},children:[(0,m.jsx)(n.xu,{overflow:"hidden",dangerouslySetInlineStyle:{__style:{borderRadius:"8px 0 0 8px"}},children:(0,m.jsx)(n.xu,{maxWidth:400,height:"100%",dangerouslySetInlineStyle:{__style:{width:"number"==typeof l.height&&"number"==typeof l.width?600*(l.width/l.height||0):0,backgroundSize:"cover",backgroundPosition:"center",backgroundImage:l.url?`url(${l.url})`:""}}})}),(0,m.jsx)(n.xu,{width:400,dangerouslySetInlineStyle:{__style:{padding:"32px 0"}},children:e})]}):(0,m.jsx)("div",{"data-test-id":"login-modal-default",style:{...o,padding:"32px 0"},children:e})},eH=({children:e,email:t,footer:o,handleNotYouClick:i,header:a,noBoxShadow:s,title:r,viewerInfo:c})=>{var d;let{viewer:_}=(0,p.B$)(),u=(0,f.ZP)();return(0,m.jsx)(eG,{noBoxShadow:s,children:(0,m.jsxs)(l.Fragment,{children:[a,(0,m.jsx)(n.xu,{display:"block",height:40,width:40,dangerouslySetInlineStyle:{__style:{margin:"0 auto 16px"}},children:(0,m.jsx)(eC.Z,{size:40})}),(0,m.jsx)(n.xu,{width:"auto",overflow:"hidden",maxHeight:150,dangerouslySetInlineStyle:{__style:{margin:"0 48px 16px"}},children:r}),"LIMITED_LOGIN"===_.type&&(0,m.jsx)(n.xu,{marginBottom:4,paddingX:12,children:(0,m.jsx)(eU.Z,{})}),(0,m.jsx)(n.xu,{width:120,dangerouslySetInlineStyle:{__style:{margin:"0 auto 16px"}},children:(0,m.jsx)(eP.qE,{name:c.firstName,src:null!==(d=c.imageUrl)&&void 0!==d?d:void 0})}),(0,m.jsx)(n.xu,{marginBottom:3,children:(0,m.jsx)(n.xv,{align:"center",children:t})}),e,(0,m.jsx)(n.xu,{paddingY:5,children:(0,m.jsx)(n.iz,{})}),(0,m.jsx)(n.xu,{"data-test-id":"login-switch-account",children:(0,m.jsx)(n.iP,{fullWidth:!1,onTap:({event:e})=>{e.preventDefault(),i()},children:(0,m.jsx)(n.xv,{align:"center",size:"200",weight:"bold",children:(0,m.jsx)(n.rU,{href:"#",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{e.preventDefault(),t()},children:u._('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,m.jsx)(n.xu,{marginBottom:0,marginTop:1,children:o})]})})};var e$=o(796592),eY=o(124580),eq=o(12610);let eK=e=>{eY.Z.resume(eq.LU),(0,v.My)(`web.dismiss_account_switcher.${e}`)};var eX=o(407159),eJ=o(957161),eQ=o(123906),e0=o(704115),e1=o(698330),e8=o(709113);let e3={backgroundColor:"#fff",borderRadius:"32px",position:"relative",textAlign:"center",margin:"auto",minHeight:"450px",boxShadow:"0 2px 10px rgba(0,0,0,0.45)"},e2={home_page:{...e3,minHeight:"initial"},pinBookmarklet:{...e3,boxShadow:"none"},revamped_business_login_page:{...e3,margin:void 0,textAlign:void 0}},e6={minHeight:"400px",padding:"20px 10px 24px"},e9={margin:"0 auto 22px",width:"270px"},e4=(e,t)=>{switch(t){case"boardInvite":return e._('Sign up to accept your board invite', 'Sign up copy board invite', 'Sign up copy board invite');case"saveButton":return e._('Sign up to see more', 'signup copy save button', 'signup copy save button');case"saveButtonExp":return e._('Join Pinterest to save this idea', 'FullPageSignup.signupTagline.save', 'signup copy save exp button');case"homePage":return e._('Welcome to Pinterest', 'Title on desktop signup modal on home page', 'Title on desktop signup modal on home page');case"pinBookmarklet":return e._('Sign up to save this Pin!', 'signup copy save button from third party website', 'signup copy save button from third party website');case"downloadImageBtnDweb":return e._('Never lose track of your ideas again! Sign up for an account', 'mweb.unauth.download_modal.download_value_prop', 'Highlighting the download value prop in download modal');case"downloadImageBtnUnauth":return e._('Sign Up to download', 'web.unauth.download_modal.download_value_prop_unauth', 'Highlighting the download value prop in signup modal for unauth users after download attempt');case"followButton":return e._('Join Pinterest to follow', 'mweb.unauth.follow_modal.follow_value_prop', 'Highlighting the follow value prop in follow modal');default:return e._('Sign up to see more', 'sigup copy default includes pin click and scrolling', 'sigup copy default includes pin click and scrolling')}},e7=(e,t)=>{switch(t){case"boardInvite":return e._('Log in to accept your board invite', 'Login copy board invite', 'Login copy board invite');case"homePage":return e._('Welcome to Pinterest', 'Title on desktop signup modal on home page', 'Title on desktop signup modal on home page');case"pinBookmarklet":return e._('Sign in to save this Pin!', 'Login copy save button from third party website', 'Login copy save button from third party website');default:return e._('Log in to see more', 'Title on desktop login modal', 'Title on desktop login modal')}};function e5({container:e,savePinId:t,customLoginTagline:o,customSignupTagline:i,handleCloseButtonClick:c,handleShowingSignupWelcomeLoading:d,hideAccountSwitchValueProp:_,inviter:u,isAccountSwitch:h=!1,isBusiness:g,nextUrlParam:b,renderBusinessCreateButton:A,showCloseIcon:S,showResponseMessageModal:j,signupRedirectUrl:E,signupSource:T="defaultSource",suppressFocus:L,toggleType:R="DEFAULT_TOGGLE",signupFlow:Z,attributionLabel:I,onRedirectToSignup:M}){var F,O,N;let W=(0,w.B)(),V=(0,f.ZP)(),{viewer:{info:U,type:D}}=(0,p.B$)(),G=(0,r.Z)(),H=(0,P.Z)(),{checkExperiment:$}=(0,Q.F)(),[Y,q]=(0,l.useState)(!1),[K,X]=(0,l.useState)(!1),[J,ee]=(0,l.useState)(!1),[et,eo]=(0,l.useState)("signup"===(0,e0.Z)().type?{type:"signup"}:Z),{trackConversionUpsell:ei}=(0,k.Z)(),[el,ea]=(0,l.useState)(!1),en=(0,y.Z)(D),{username:es}=(0,a.useParams)(),er=(0,e1.cm)(),ec=es?er(es):null,e_="commentComposer"===T,eu="login"===et.type?14212:14214,[eh,ep]=(0,l.useState)(eu),eg=$("dweb_unauth_remove_fb_signup_iteration").anyEnabled,[em,ex]=(0,l.useState)(!1),ey="revamped_business_login_page"===e,ev=eJ.Z.getItem(e8.V6),ek=ev&&ev.charAt(0).toUpperCase()+ev.slice(1),eA=!!ev&&$("pcons_last_logged_in").anyEnabled,[eS,ej]=(0,l.useState)(eA);(0,l.useEffect)(()=>((0,v.My)(`unauth.authentication_modal.shown.${R}.${et.type}`),()=>{h&&((0,eX.Z)("add_account_dismiss",null,e),eK(e))}),[]);let ez=(0,l.useRef)(et.type);(0,l.useEffect)(()=>{ez.current!==et.type&&(ez.current=et.type,(0,v.My)(`unauth.authentication_modal.shown.${R}.${et.type}`))});let eC=(0,l.useRef)(Z);(0,l.useEffect)(()=>{eC.current.type!==Z.type&&(eC.current=Z,eo(Z))});let eR=null!==(F=e2[e])&&void 0!==F?F:e3,eZ=()=>b?decodeURIComponent(b):b,eB=e=>eZ()?(0,eQ.Z)(e,{next:eZ()}):e,eF=e=>eo({type:"EmailCollection",registrationCredentials:e}),eO=e=>eo({type:"socialSignupWithAge",registrationCredentials:e}),eU=(e,t)=>eo({type:"loginMfa",creds:e,phoneNumberEnd:(null==t?void 0:t.phoneNumberEnd)||void 0}),eG=e=>{(0,v.My)(`unauth.personalized_login.prevent_register.${e}`),ea(!0),X(!1),eo({type:"signup"})},eY=()=>{(0,v.My)("unauth.personalized_login.not_you.click"),(0,v.NC)("click_change_signin_account"),G({aux_data:en,element:10879,event_type:101}),ei({eventType:14689,element:10879})},eq=e=>{(0,v.My)(`unauth.authentication_modal.${e}.${R}.${et.type}`)},e5=e=>{eq("login_toggle_click"),(0,v.NC)("click_toggle_login"),H({action:"click",item:"login-button"}),ei({eventType:14689,element:13914}),eo({type:"login",email:null==e?void 0:e.email}),ep(14212),ei({eventType:14688,component:14212,element:13914,upsellReason:I,incrementUpsellReasonCounter:!1}),q(!1)},te=({email:e})=>{if(eq("signup_toggle_click"),(0,v.NC)("click_toggle_signup"),ei({eventType:14689,element:13913}),E){(0,s.Z)(E,!1);return}ep(14214),ei({eventType:14688,component:14214,element:13913,upsellReason:I,incrementUpsellReasonCounter:!1}),eo({type:"signup",email:e})},tt=({email:e})=>(0,m.jsx)(n.iP,{fullWidth:!1,onTap:t=>{let o={event_type:101,element:10880};g?G(o):(t.event.preventDefault(),(0,v.My)("unauth.personalized_login.signup_instead.click"),G({...o,aux_data:en}),te({email:e}))},children:(0,m.jsx)(n.xv,{align:"center",size:"200",weight:"bold",children:(0,m.jsx)(n.xu,{"data-test-id":"need-account-link",children:(0,m.jsx)(n.rU,{href:g?eB("/business/create"):"#",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:V._('Need an account? Sign up now', 'Short message (in small fonts) on the bottom of the login modal that prompts a users to create an account', 'Short message (in small fonts) on the bottom of the login modal that prompts a users to create an account')})})})}),to=eg?em:void 0,ti=eg?()=>{(0,v.My)("remove_fb_signup.dweb_login_form"),X(!1),ex(!0)}:void 0,tl=S&&(0,m.jsx)(eb,{onClick:c});if(J&&["signup","login","socialSignupWithAge"].includes(et.type))return(0,m.jsx)(e$.Z,{});switch(et.type){case"signup":case"respondMessage":{let o=Y?V._('Welcome back to Pinterest!', 'welcoming user back to pinterest in signup modal when we recognize their email', 'welcoming user back to pinterest in signup modal when we recognize their email'):i||e4(V,T),a=u&&!u.is_default_image?u:null,s=(0,m.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:e9},width:"login_page"!==e?400:void 0,children:(0,m.jsx)(eL,{container:e,modalType:"signup",titleText:a&&("respondMessage"===Z.type?(V._('Sign up and let {{ name }} know what you think', 'Prompt user to signup to access all Pinterest features', 'Prompt user to signup to access all Pinterest features')).replace("{{ name }}",a.first_name||a.full_name):(V._('Join {{ name }} on Pinterest for more ideas', 'Prompt user to signup to access all Pinterest features', 'Prompt user to signup to access all Pinterest features')).replace("{{ name }}",a.first_name||a.full_name))||(["login_page","home_page","save","download","follow"].includes(e)?o:V._('Unlimited free access to the world\'s best ideas', 'FullPageSignup.signupTitle.save', 'Save value prop on desktop signup modal'))})});return(0,m.jsxs)(n.xu,{"data-test-id":"signup-default-modal",width:484,dangerouslySetInlineStyle:{__style:eR},children:[K&&(0,m.jsx)(eW.Z,{}),(0,m.jsxs)(n.xu,{dangerouslySetInlineStyle:{__style:a?{minHeight:"400px",padding:"30px 10px 20px"}:e6},children:[tl,a?(0,m.jsxs)(l.Fragment,{children:[(0,m.jsx)(n.xu,{width:108,dangerouslySetInlineStyle:{__style:{margin:"0 auto 16px"}},children:(0,m.jsx)(eP.qE,{name:a.first_name||a.full_name,src:a.image_medium_url,verified:"respondMessage"===Z.type})}),s]}):(0,m.jsxs)(l.Fragment,{children:[(0,m.jsx)(eE,{container:e,fallback:(0,m.jsx)(eT,{large:"homePage"!==T}),savePinId:t,user:ec,signupSource:T}),s,(0,m.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:e9},children:!Y&&(0,m.jsx)(n.xu,{marginTop:-4,marginBottom:4,children:(0,m.jsx)(n.xv,{size:"300",align:"center",children:"login_page"!==e&&"home_page"!==e&&"save"!==e&&"download"!==e&&"follow"!==e?o:"downloadImageBtnDweb"===T&&V._('Discover a better way to keep your ideas organized', 'mweb.unauth.signup_modal.download_value_prop_subheader', 'Highlighting the download value prop in signup modal but as a subheader')||"downloadImageBtnUnauth"===T&&V._('Download this image and more with a Pinterest Account', 'web.unauth.signup_modal.download_value_prop_subheader', 'Highlighting the download value prop in signup modal but as a subheader for unauth')||"followButton"===T&&(0,eN.nk)(V._('Create an account to follow {{ creatorName }}', 'mweb.unauth.signup_modal.follow_value_prop_subheader', 'Highlighting the follow value prop in signup modal but as a subheader creatorName:<the name of the creator who the user attempted to follow>'),{creatorName:null==ec?void 0:ec.full_name})||"homePage"===T&&V._('Find new ideas to try', 'Value prop on desktop signup modal on home page', 'Value prop on desktop signup modal on home page')||"saveButtonExp"===T&&V._('Unlimited free access to the world\'s best ideas', 'FullPageSignup.signupSubTitle.saDDve', 'Value prop on desktop signup modal')||V._('Discovery starts here', 'Pinterest value proposition on desktop login modal', 'Pinterest value proposition on desktop login modal')})})})]}),(0,m.jsx)(n.xu,{"data-test-id":"signup-options",position:"relative",dangerouslySetInlineStyle:{__style:{textAlign:"center",margin:"0 auto"}},children:(0,m.jsx)(ed,{additionalChildren:(eA&&eS&&"login"!==et.type||!eA)&&(0,m.jsx)(z,{layout:"NOT_NOW_BUTTON"===R&&"SIGNUP_LARGE"||"home_page"===e&&"SIGNUP_SMALL"||"SIGNUP_DEFAULT",onClick:()=>e5({email:et.email}),type:"signupToLogin",shouldHideBusinessCreateFooterLink:!!A}),container:e,disablePostSignupNextUrl:!b,email:null!==(O=et.email)&&void 0!==O?O:"",loadingIndicatorCallback:X,nextUrlParam:eZ(),onBirthdayUnderage:({birthday:e,email:t})=>{eo({type:"UnderageConfirmation",birthday:e,email:t})},onFBPhoneOnlyConnectVerified:eF,onFBMissingEmail:eF,onLoginWithMfa:eU,setEmail:e=>eo((et.type,{...et,email:e})),showResponseMessageModal:"respondMessage"===Z.type?j:void 0,showSignupWelcomeLoadingFn:e=>{ee(e),d&&d(e)},signupSource:T,suppressFocus:L,switchToSocialSignupWithAgeFlow:eO,component:eh,attributionLabel:I})})]}),A&&A()]})}case"login":{if(!el&&!h&&U&&"AUTH"!==D&&"bottom.right.upsell.email"!==e){let t=U.hasPassword||U.connectedToFacebook||U.connectedToGoogle;return(0,m.jsx)(eH,{email:null!==(N=et.email)&&void 0!==N?N:"",handleNotYouClick:()=>{ea(!0),eY()},noBoxShadow:"pinBookmarklet"===e,header:(0,m.jsxs)(l.Fragment,{children:[K&&(0,m.jsx)(eW.Z,{}),tl]}),viewerInfo:U,title:(0,m.jsx)(eL,{container:e,modalType:"personalizedLogin",titleText:(0,eN.nk)(V._('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:U?U.firstName:""}).join("")}),footer:tt({email:et.email}),children:(0,m.jsx)(eM.ZP,{container:e,setShowLastLoggedInSection:ej,disablePostSignupNextUrl:!b,email:U.email,hideEmailField:!0,hideFacebookButton:t&&!U.connectedToFacebook,hideGoogleButton:t&&!U.connectedToGoogle,hideLineButton:t,hidePasswordField:t&&!U.hasPassword,hideTermsOfService:!0,loadingIndicatorCallback:X,loginButtonTextOverride:V._('Continue', ' - ', ' -- '),nextUrlParam:eZ(),onEmailChange:()=>{},onLoginWithMfa:eU,requestContext:W,showResponseMessageModal:"respondMessage"===Z.type?j:void 0,socialSignupCallbacks:{type:"ACCOUNT_RECOVERY",switchToAccountRecoverySignupFlow:eG},shouldHideFBButtonForSignup:to,disableFBSignup:ti,component:eh,attributionLabel:I})})}let t=e_?V._('Log in to comment', 'dweb.unauth.comment_compose.upsell_tagline', 'Value prop for comment upsell tagline'):o||e7(V,T),i=(0,m.jsx)(n.xu,{height:62,color:"secondary",bottom:!0,left:!0,width:"100%",dangerouslySetInlineStyle:{__style:{borderRadius:"0 0 32px 32px"}},children:(0,m.jsx)(n.iP,{fullHeight:!0,onTap:()=>{(0,s.Z)((0,eQ.Z)("/login"),!0),(0,v.My)("unauth.business.login_personal_account.click"),G({event_type:101,component:13096,element:10773,aux_data:{is_revamped_business_login:!0}})},children:(0,m.jsx)(n.kC,{alignItems:"center",height:"100%",justifyContent:"center",children:(0,m.jsx)(n.xv,{weight:"bold",children:V._('Log in to a personal account', 'bizsite.revampSignup.redirectToPersonalAccountLogin', 'Button on signup modal to redirect from business to personal login.')})})})});return(0,m.jsxs)(n.xu,{"data-test-id":"login-modal-default",width:ey?480:484,dangerouslySetInlineStyle:{__style:eR},children:[K&&(0,m.jsx)(eW.Z,{}),(0,m.jsxs)(n.xu,{dangerouslySetInlineStyle:{__style:{...e6,...ey?{padding:"40px"}:{}}},children:[tl,em&&eg&&(0,m.jsx)(ew.Z,{}),!ey&&(0,m.jsx)(eT,{large:"homePage"!==T}),(0,m.jsxs)(n.xu,{dangerouslySetInlineStyle:{__style:ey?{...e9,width:void 0,marginBottom:"40px"}:e9},width:["login_page","revamped_business_login_page"].includes(e)?void 0:400,children:[(0,m.jsx)(eL,{container:e,modalType:"login",titleText:t}),eA&&(0,m.jsx)(n.xu,{marginTop:2,children:(0,m.jsx)(n.kC,{direction:"column",alignItems:"center",children:(0,m.jsx)(n.xv,{align:"center",children:(0,eN.nk)(V._('Last time you logged in using {{ lastLoggedInMethod }}', 'lastLoggedInSection.subHeading', 'lastLoggedInMethod: method user last used to log in, Subheading what was the last logged in method for the user'),{lastLoggedInMethod:"email"===ev?ev:ek})})})})]}),h&&!_&&(0,m.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:e9},children:(0,m.jsx)(n.xu,{marginTop:-4,marginBottom:8,children:(0,m.jsx)(n.xv,{align:"center",size:"300",children:V._('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,m.jsx)(eM.ZP,{container:e,showLastLoggedInSection:eS,setShowLastLoggedInSection:ej,disablePostSignupNextUrl:!b,email:et.email,isAccountSwitch:h,loadingIndicatorCallback:X,nextUrlParam:eZ(),onEmailChange:e=>eo({...et,email:e.target.value}),onRedirectToSignup:M,onFBPhoneOnlyConnectVerified:eF,onLoginWithMfa:eU,socialSignupCallbacks:{type:"SOCIAL_SIGNUP_WITH_AGE",switchToSocialSignupWithAgeFlow:eO},requestContext:W,showResponseMessageModal:"respondMessage"===Z.type?j:void 0,shouldHideFBButtonForSignup:to,disableFBSignup:ti,component:eh,attributionLabel:I}),g?!ey&&(0,m.jsxs)(n.kC,{direction:"column",alignItems:"center",children:[(0,m.jsx)(x,{}),(0,m.jsx)(n.xv,{weight:"bold",size:"100",children:(0,m.jsx)(n.rU,{href:eB("/business/create"),children:V._('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')})})]}):!h&&(eA&&eS&&"login"!==et.type||!eA&&(0,m.jsx)(z,{layout:"NOT_NOW_BUTTON"===R&&"LOGIN_INLINE"||"SMALL_TOGGLE"===R&&"LOGIN_SMALL"||"LOGIN_DEFAULT",type:"loginToSignup",onClick:()=>{te({email:et.email})}}))]}),ey&&i]})}case"loginMfa":return(0,m.jsx)(n.xu,{"data-test-id":"login-modal-mfa",width:489,dangerouslySetInlineStyle:{__style:eR},children:(0,m.jsxs)(n.xu,{dangerouslySetInlineStyle:{__style:e6},children:[tl,(0,m.jsx)(eT,{}),(0,m.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{...e9,padding:"0 10px"}},width:"100%",children:(0,m.jsx)(eL,{container:e,modalType:"loginMfa",titleText:V._('Two-factor authentication required', 'desktopLoginModal.2fa.title', 'Title for the two-factor authentication modal')})}),(0,m.jsx)(eV,{container:e,creds:et.creds,isAccountSwitch:h,nextUrlParam:eZ(),phoneNumberEnd:et.phoneNumberEnd})]})});case"socialSignupWithAge":return(0,m.jsx)(n.xu,{"data-test-id":"birthday-collection-modal",dangerouslySetInlineStyle:{__style:eR},minHeight:"0",children:(0,m.jsx)(B,{disablePostSignupNextUrl:!b,handleLoginToggleButtonClick:e5,loadingIndicatorCallback:X,nextUrlParam:eZ(),registrationCredentials:et.registrationCredentials,showResponseMessageModal:"respondMessage"===Z.type?j:void 0})});case"EmailCollection":{let e=()=>{eo({type:"signup",email:et.registrationCredentials.signupOptions.email}),X(!1)},t=({email:e})=>eo({type:"EmailAlreadyExist",email:e});return(0,m.jsxs)(n.xu,{"data-test-id":"line"===et.registrationCredentials.type?"signup-modal-line-phone-only":"signup-modal-facebook-phone-only",minHeight:400,dangerouslySetInlineStyle:{__style:e3},children:[K&&(0,m.jsx)(eW.Z,{}),(0,m.jsxs)(n.xu,{dangerouslySetInlineStyle:{__style:e6},children:[tl,(0,m.jsx)(eT,{}),(0,m.jsx)(n.xu,{width:310,dangerouslySetInlineStyle:{__style:e9},children:(0,m.jsx)(n.X6,{size:"600",children:V._('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"===et.registrationCredentials.type?(0,m.jsx)(eI,{loadingIndicatorCallback:X,nextUrlParam:b,onNotNowClick:e,registrationCredentials:et.registrationCredentials,showEmailAlreadyExistModal:t,showSocialSignupWithAgeStep:eO}):(0,m.jsx)(ef,{loadingIndicatorCallback:X,nextUrlParam:b,onNotNowClick:e,registrationCredentials:et.registrationCredentials,showEmailAlreadyExistModal:t,showSocialSignupWithAgeStep:eO})]})]})}case"EmailAlreadyExist":return(0,m.jsxs)(n.xu,{"data-test-id":"login-modal-existing-email",dangerouslySetInlineStyle:{__style:eD},children:[K&&(0,m.jsx)(eW.Z,{}),(0,m.jsx)(eT,{}),(0,m.jsx)(n.xu,{overflow:"hidden",maxHeight:120,width:350,dangerouslySetInlineStyle:{__style:e9},children:(0,m.jsx)(eL,{container:e,modalType:"personalizedLogin",titleText:(0,eN.nk)(V._('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:U?U.firstName:""}).join("")})}),(0,m.jsx)(n.xu,{marginBottom:3,children:(0,m.jsx)(n.xv,{align:"center",children:et.email})}),(0,m.jsx)(eM.ZP,{container:e,setShowLastLoggedInSection:ej,disablePostSignupNextUrl:!b,email:et.email,hideEmailField:!0,hideFacebookButton:!0,hideLineButton:!0,hideTermsOfService:!0,loadingIndicatorCallback:X,loginButtonTextOverride:V._('Continue', ' - ', ' -- '),nextUrlParam:eZ(),onEmailChange:()=>{},onLoginWithMfa:eU,requestContext:W,showResponseMessageModal:"respondMessage"===Z.type?j:void 0,socialSignupCallbacks:{type:"ACCOUNT_RECOVERY",switchToAccountRecoverySignupFlow:eG},shouldHideFBButtonForSignup:to,disableFBSignup:ti,component:eh,attributionLabel:I}),(0,m.jsx)(n.xu,{paddingY:5,children:(0,m.jsx)(n.iz,{})}),(0,m.jsx)(n.xu,{"data-test-id":"login-switch-account",children:(0,m.jsx)(n.iP,{fullWidth:!1,onTap:({event:e})=>{e.preventDefault(),eo({type:"login"}),ea(!0),eY()},children:(0,m.jsx)(n.xv,{align:"center",size:"200",weight:"bold",children:(0,m.jsx)(n.rU,{href:"#",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{e.preventDefault(),t()},children:V._('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,m.jsx)(n.xu,{marginBottom:4,marginTop:1,children:tt({email:et.email})}),tl]});case"UnderageConfirmation":return(0,m.jsx)(n.xu,{"data-test-id":"underage-confirmation-modal",dangerouslySetInlineStyle:{__style:eR},children:(0,m.jsx)(C.Z,{birthday:et.birthday,onEditBirthday:()=>{eo({type:"signup",email:et.email}),X(!1)}})});default:return null}}},611683:(e,t,o)=>{o.d(t,{Z:()=>C});var i=o(667294),l=o(883119),a=o(233211),n=o(905171),s=o(803491),r=o(174382),c=o(640672),d=o(898781),_=o(472644),u=o(785893);function h(e){let t=(0,d.ZP)(),{tooltip:o}=e,[a,n]=(0,i.useState)();return(0,u.jsxs)(l.xu,{"data-test-id":"google-connect-button",position:"relative",children:[(0,u.jsx)(s.Z,{onClick:()=>n(!0),type:"button",styleOverrides:{width:"100%",borderRadius:"20px",border:"0px solid"},children:(0,u.jsxs)(l.kC,{alignItems:"center",justifyContent:"center",children:[(0,u.jsx)(l.xu,{height:24,width:24,marginTop:1,children:(0,u.jsx)(_.Z,{size:20})}),(0,u.jsx)(l.xu,{marginStart:2,children:(0,u.jsx)(l.xv,{weight:"bold",children:t._('Connect with Google', 'googleConnectButtonWithDisabledSDK.buttonText', 'Connect with Google button text')})})]})}),!!o&&(0,u.jsx)(l.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:{top:"12px",left:"100%"}},children:(0,u.jsx)(c.Z,{message:o})}),a&&(0,u.jsx)(r.Z,{type:"google",onDismiss:()=>n(!1)})]})}var p=o(70212),g=o(85334),m=o(901656),x=o(903095),y=o(379913),f=o(584595),w=o(711781),b=o(83969),v=o(524172),P=o(290148),k=o(830269),A=o(773285),S=o(780280),j=o(867820),z=o(829407);let E=({container:e,isAccountSwitch:t,nextUrlParam:o,onLoginWithMfa:s,onLoginWithSuspended:r,onLoginWithVoluntarilyDeactivated:_,showResponseMessageModal:h,socialSignupCallbacks:E,tooltip:C,showLoginRateLimited:T,onClick:L,logo_centered:R=!1})=>{let{viewer:{type:Z}}=(0,a.B$)(),I=(0,g.Z)(),M=(0,x.lO)(),B=(0,d.ZP)(),{checkExperiment:F}=(0,A.F)(),O=(0,v.M)(),N=(0,i.useRef)(null),{locale:W}=(0,S.B)();return(0,z.Z)(()=>(window.googleConnectButtonContainer=e||"",()=>{delete window.googleConnectButtonContainer})),(0,z.Z)(()=>{let i=({credential:i,select_by:l})=>{let a=(0,b.mK)((0,b.PL)(l));I({creds:{google_open_id_token:i},loggingOptions:{loggingData:{container:window.googleConnectButtonContainer,page:null==M?void 0:M.pageType,trigger:a},loginAttemptContextEvent:{event_type:7534,element:12981,aux_data:{...(0,m.Z)(Z),signup_login_method:k.Z.GPLUS}}},isAccountSwitch:t}).then(i=>{var l;let a=null==i?void 0:null===(l=i.resource_response.data)||void 0===l?void 0:l.user;t&&a&&(0,y.Z)(a,"google",e),h?h(!1):P.ZP.handleRedirect(o||P.ZP.defaultSocialLoginRedirectUrl()),F("m10n_measurement_pinterest_tag_us").anyEnabled&&(0,p.Z)()},e=>{switch(f.ik.includes(e.api_error_code)&&(null==T||T()),e.api_error_code){case f.E6:null==_||_(e.message);break;case f.Zn:var t;null==s||s({google_open_id_token:i},{phoneNumberEnd:null===(t=e.data)||void 0===t?void 0:t.phone_number_end});break;case f.xN:if("ACCOUNT_RECOVERY"===E.type)E.switchToAccountRecoverySignupFlow("google");else{(0,j.Rp)({event:"start",provider:"google"});let e=(0,w.Z)(i),t={container:window.googleConnectButtonContainer,page:null==M?void 0:M.pageType,trigger:a},o={type:"google",google_open_id_token:i,first_name:e.given_name,last_name:e.family_name,image_url:e.picture};E.switchToSocialSignupWithAgeFlow({type:"google",context:t,signupOptions:{...o}})}break;default:e.api_error_code===f.an&&r?r():(0,n.x)(B._('Sorry, we can\'t log you in.', 'error message when user failed to login caused by suspend/deactivated etc.', 'error message when user failed to login caused by suspend/deactivated etc.'))}})},l=async()=>{await (null==O?void 0:O.ensureInit("button",i)),(0,b.ru)({buttonRef:N,locale:W,isDesktop:!0,logo_alignment:R?"center":"left"})};return l(),()=>{null==O||O.removeButtonCallback(i)}}),(0,u.jsxs)(l.xu,{"data-test-id":"google-connect-button",position:"relative",children:[(0,u.jsx)(l.xu,{height:44,children:(0,u.jsx)("div",{ref:N,style:{position:"absolute",width:"100%"},onClick:()=>{null==L||L()}})}),!!C&&(0,u.jsx)(l.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:{top:"12px",left:"100%"}},children:(0,u.jsx)(c.Z,{message:C})})]})};function C(e){let{checkExperiment:t}=(0,A.F)(),{anyEnabled:o}=t("web_google_disabled");return o?(0,u.jsx)(h,{tooltip:e.tooltip}):(0,u.jsx)(E,{...e})}},708196:(e,t,o)=>{o.d(t,{Z:()=>r});var i=o(883119),l=o(11363),a=o(898781),n=o(987318),s=o(785893);let r=({useDefaultText:e})=>{let{limitedLoginModalSubheader:t}=(0,n.H)(),o=(0,a.ZP)();return(0,s.jsx)(i.xv,{align:"center",overflow:"normal",children:e||!t?(0,l.lt)(o):t.text})}},710893:(e,t,o)=>{o.d(t,{OL:()=>Y,ZP:()=>K});var i=o(667294),l=o(883119),a=o(407043),n=o(385740),s=o(85651),r=o(777024),c=o(233211),d=o(905171),_=o(996438),u=o(611683),h=o(979661),p=o(563387),g=o(780679),m=o(85334),x=o(901656),y=o(903095),f=o(319915),w=o(186656),b=o(898781),v=o(124580),P=o(12610),k=o(379913),A=o(584595),S=o(738192),j=o(290148),z=o(830269),E=o(143461),C=o(780280),T=o(817656),L=o(947599),R=o(957161),Z=o(966113),I=o(867820),M=o(101331),B=o(26717),F=o(216895),O=o(134906),N=o(823983),W=o(783690),V=o(709113),U=o(785893);function D(e,t,o){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}let G=(0,i.lazy)(()=>o.e(97500).then(o.bind(o,97500))),H=Z.lfe,$="loginmodal",Y="6LeZIo0UAAAAAKFpimHio-ff_ddIT8f_QzpXG0_1";class q extends i.Component{constructor(e){var t;super(e),t=this,D(this,"onLoginWithVoluntarilyDeactivated",e=>this.setState({googleValidationError:e})),D(this,"onLoginWithSuspended",()=>{let{loadingIndicatorCallback:e}=this.props;e&&e(!1),this.setState({accountRecoveryModalType:s.w[A.an],loading:!1})}),D(this,"onloadCallback",()=>{try{window.recaptchaIdOne=window.grecaptcha.render("recaptcha_placeholder_1",{sitekey:Y,callback:"verifyCaptcha"})}catch(e){}try{window.recaptchaIdTwo=window.grecaptcha.render("recaptcha_placeholder_2",{sitekey:Y,callback:"verifyCaptcha"})}catch(e){}}),D(this,"handleButtonClick",async function(e,o){var i;(0,I.My)("unauth.login.button.clicked");let{logContextEvent:l,desktopCoreLoginContext:{viewer:a}}=t.props;l({event_type:101,element:30,aux_data:{...(0,x.Z)(a.type),signup_login_method:z.Z.EMAIL}}),t.setState({googleValidationError:null,hideFBGoogleToolTip:!1});let n=(0,F.Z)(null!==(i=t.props.email)&&void 0!==i?i:"",t.emailValidators);if(n)t.setState({emailValidationError:n}),(0,I.My)(`unauth.login.error.CLIENT_ERROR.malformemail.${$}`);else{t.setState({emailValidationError:null}),n=await (0,F.U)(t.props.password,t.passwordValidators);let e=(0,F.Z)(t.props.password,t.asciiValidators);n?(t.setState({passwordValidationError:n}),(0,I.My)(`unauth.login.error.CLIENT_ERROR.malformpwd.${$}`)):e?(t.setState({passwordValidationError:e}),(0,I.My)(`unauth.login.error.CLIENT_ERROR.malformpwd.${$}`)):(t.setState({passwordValidationError:null}),t.loginUser("email",void 0,o))}}),D(this,"updateAccountRecoveryModal",e=>this.setState({accountRecoveryModalType:e})),D(this,"loadRecaptchaView",()=>{if("undefined"!=typeof document&&document.head){if(document.getElementById("recaptcha-jssdk"))this.onloadCallback();else{let e=document.createElement("script");e.id="recaptcha-jssdk",e.src="https://www.recaptcha.net/recaptcha/api.js?onload=onloadCallback&render=explicit",document.head&&document.head.appendChild(e)}}}),D(this,"handleLoginFailure",(e,t,o)=>{let{email:i,i18n:l,loadingIndicatorCallback:a,setPassword:n}=this.props;(0,I.My)(`unauth.login.error.LOGIN_FAILURE.${e}`),a(!1),this.props.refreshRecaptchaV3Token&&this.props.refreshRecaptchaV3Token();let r=t.http_status||t.httpStatus,c=r===T.Ej?T.Ej:t.api_error_code;if(c===A.Zn){var _;j.ZP.handleLoginMfa(o,{phoneNumberEnd:null===(_=t.data)||void 0===_?void 0:_.phone_number_end},this.props.onLoginWithMfa);return}if(r===T.Ej&&c===A.bd&&t.message&&"!"!==t.message[t.message.length-1]&&!j.ZP.isExceedRecaptchaLocalLimit()||c===A._K&&r===T.AB&&!j.ZP.isExceedRecaptchaLocalLimit()){this.loadRecaptchaView(),this.setState({passwordValidationError:l._('Oops! You logged in too quickly. Please try again with the reCAPTCHA.', 'Error message showing to user when his/her login attempt exceeds ip based rules, ask they to retry using recaptcha', 'Error message showing to user when his/her login attempt exceeds ip based rules, ask they to retry using recaptcha'),loading:!1});return}let u=(0,S.Z)({error:t,source:"login",onClickPasswordReset:()=>{(0,I.My)("unauth_password_reset_link_tapped"),(0,w.Z)({url:"/v3/users/forgot_password/",method:"POST",data:{username_or_email:i}}).then(()=>this.updateAccountRecoveryModal(j.Ny.PASSWORD_RESET_SENT))}});u?(this.setState({...u,accountRecoveryModalType:c?s.w[c]:void 0,loading:!1}),u.passwordValidationError&&n("")):((0,d.x)(l._('Sorry! Something went wrong on our end.', ' - ', ' -- ')),this.setState({loading:!1}))}),D(this,"verifyCaptcha",()=>{let e=window.grecaptcha.getResponse(window.recaptchaIdOne)||window.grecaptcha.getResponse(window.recaptchaIdTwo);j.ZP.updateRecaptchaTimeStamp(),this.handleButtonClick(void 0,e),j.ZP.isExceedRecaptchaLocalLimit()||(void 0!==window.recaptchaIdOne&&window.grecaptcha.reset(window.recaptchaIdOne),void 0!==window.recaptchaIdTwo&&window.grecaptcha.reset(window.recaptchaIdTwo))}),D(this,"handleEmailChange",e=>{this.props.onEmailChange&&this.props.onEmailChange(e),this.setState({hideFBGoogleToolTip:!0})}),D(this,"handlePasswordChange",e=>{this.state.passwordValidationError&&this.setState({passwordValidationError:null}),this.props.setPassword(e.target.value)}),D(this,"handleBlur",()=>{var e;this.setState({googleValidationError:null});let t=(0,F.Z)(null!==(e=this.props.email)&&void 0!==e?e:"",this.asciiValidators);t&&(0,I.My)(`unauth.login.error.CLIENT_ERROR.nonasciiemail.${$}`),(t=(0,F.Z)(this.props.password,this.asciiValidators))&&(0,I.My)(`unauth.login.error.CLIENT_ERROR.nonasciipwd.${$}`)}),D(this,"renderSocialButtons",()=>{let{disablePostSignupNextUrl:e,hideFacebookButton:t,hideLineButton:o,hideGoogleButton:a,isAccountSwitch:n,isPersonalizedLoginFlyout:s,loadingIndicatorCallback:r,nextUrlParam:c,onLoginWithMfa:d,onFBPhoneOnlyConnectVerified:h,onFBMissingEmail:p,shouldHideFBButtonForSignup:g,disableFBSignup:m,container:x="unknown",socialSignupCallbacks:y,showResponseMessageModal:w,isLineAuthenticationEnabled:b,trackConversionUpsell:v,requestContext:P,showLastLoggedInSection:k,setShowLastLoggedInSection:A,attributionLabel:S}=this.props,{hideFBGoogleToolTip:z}=this.state,E=R.Z.getItem(V.V6),C=!!E&&P.experimentsClient.checkExperiment("pcons_last_logged_in").anyEnabled,T="ACCOUNT_RECOVERY"===y.type?{...y,type:"ACCOUNT_RECOVERY",switchToAccountRecoverySignupFlow:e=>{"facebook"===e?this.updateAccountRecoveryModal(j.Ny.PREVENT_FACEBOOK_REGISTER):"google"===e&&this.updateAccountRecoveryModal(j.Ny.PREVENT_GOOGLE_REGISTER),y.switchToAccountRecoverySignupFlow(e)}}:y,Z=e=>{v({element:e,eventType:14689})},I=P.experimentsClient.checkExperiment("dweb_unauth_remove_fb_signup_iteration").anyEnabled&&g,M=!(I||t)&&(0,U.jsx)(_.Z,{container:x,disablePostSignupNextUrl:e,isAccountSwitch:n,loadingIndicatorCallback:r,nextUrlParam:c,onFBPhoneOnlyConnectVerified:h,onFBMissingEmail:p,disableFBSignup:m,onLoginWithMfa:d,onLoginWithSuspended:this.onLoginWithSuspended,socialSignupCallbacks:T,showResponseMessageModal:w,tooltip:null,showLoginRateLimited:()=>this.updateAccountRecoveryModal(j.Ny.RATE_LIMITED),onClick:()=>{Z(13505)}}),B=!a&&(0,U.jsx)(u.Z,{container:x,isAccountSwitch:n,nextUrlParam:c,onLoginWithMfa:d,onLoginWithSuspended:this.onLoginWithSuspended,onLoginWithVoluntarilyDeactivated:this.onLoginWithVoluntarilyDeactivated,showResponseMessageModal:w,tooltip:!z&&this.state.googleValidationError||null,showLoginRateLimited:()=>this.updateAccountRecoveryModal(j.Ny.RATE_LIMITED),socialSignupCallbacks:T,onClick:()=>{Z(13504)},logo_centered:"revamped_business_login_page"===x}),F=!o&&b&&(0,U.jsx)(f.Z,{name:"SafeSuspense_LineConnectButton",children:(0,U.jsx)(L.Z,{children:(0,U.jsx)(G,{container:x,loadingIndicatorCallback:r,isAccountSwitch:n,nextUrlParam:c,onLoginWithMfa:d,onLoginWithSuspended:this.onLoginWithSuspended,showResponseMessageModal:w,socialSignupCallbacks:T,showLoginRateLimited:()=>this.updateAccountRecoveryModal(j.Ny.RATE_LIMITED),onClick:()=>{Z(13507)}})})}),O=t||a?"0px":"8px";return(0,U.jsxs)(l.xu,{"data-test-id":"login-options",dangerouslySetInlineStyle:{__style:{marginTop:s?"9px":"10px"}},children:[!(C&&k)&&M,!(C&&k)&&(0,U.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{height:s?O:"10px"}}}),!(C&&k)&&B,k&&(0,U.jsx)(W.Z,{setShowLastLoggedInSection:A,attributionLabel:S}),!o&&b&&(0,U.jsxs)(i.Fragment,{children:[(0,U.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{height:s?O:"10px"}}}),F]})]})}),D(this,"renderRegisterForm",()=>{let{container:e,disableEmailLogin:t,email:o,hideEmailField:a,hideFacebookButton:n,hideGoogleButton:s,hidePasswordField:r,i18n:c,isAccountSwitch:d,loginButtonTextOverride:_,password:u,suppressFocus:p,logContextEvent:g,requestContext:{isRTL:m},desktopCoreLoginContext:{viewer:y},viewType:f,viewParameter:w,component:b,attributionLabel:v}=this.props,{emailValidationError:P,loading:k,passwordValidationError:A}=this.state,S=_||c._('Log in', 'Copy on the button to log in', 'Copy on the button to log in'),j=A&&(0,i.isValidElement)(A)?null:(0,U.jsx)(l.xu,{marginBottom:3,marginTop:2,dangerouslySetInlineStyle:{__style:{float:m?"right":"left"}},children:(0,U.jsx)(l.xv,{size:"200",weight:"bold",children:(0,U.jsx)(l.rU,{href:H+(o?`?ue=${o}`:""),onClick:({dangerouslyDisableOnNavigation:e})=>{e(),(0,I.My)("login_modal_forget_account"),(0,I.NC)("click_forget_password"),g({event_type:101,element:10881,aux_data:{...(0,x.Z)(y.type)}})},children:c._('Forgot your password?', 'Desktop login modal link for users to recover their account', 'Desktop login modal link for users to recover their account')})})});return(0,U.jsx)(h.Z,{buttonText:S,container:e,disableEmailLogin:t,email:o,emailText:c._('Email', 'Placeholder text for email field', 'Placeholder text for email field'),emailValidationError:P,hideEmailField:a,hideFacebookButton:n,hideGoogleButton:s,hidePasswordField:r,loading:k&&!d,onButtonClick:()=>{this.handleButtonClick()},onEmailBlur:this.handleBlur,onEmailChange:this.handleEmailChange,onPasswordChange:this.handlePasswordChange,password:u,passwordResetLink:j,passwordText:c._('Password', ' - ', ' -- '),passwordValidationError:A,suppressFocus:p,component:b,attributionLabel:v,viewType:f,viewParameter:w})}),D(this,"renderOriginalForm",()=>{let{hideFacebookButton:e,hideGoogleButton:t,hidePasswordField:o,requestContext:l,showLastLoggedInSection:a,setShowLastLoggedInSection:n,attributionLabel:s}=this.props,c=R.Z.getItem(V.V6),d=!!c&&l.experimentsClient.checkExperiment("pcons_last_logged_in").anyEnabled;return(0,U.jsx)(i.Fragment,{children:a&&d?(0,U.jsx)(i.Fragment,{children:"email"===c?(0,U.jsxs)(i.Fragment,{children:[this.renderRegisterForm(),(0,U.jsx)(W.Z,{setShowLastLoggedInSection:n,attributionLabel:s}),(0,U.jsx)(N.Z,{setShowLastLoggedInSection:n})]}):this.renderSocialButtons()}):(0,U.jsxs)(i.Fragment,{children:[this.renderRegisterForm(),!o&&(!t||!e)&&(0,U.jsx)(r.Z,{}),this.renderSocialButtons()]})})}),D(this,"renderButtons",()=>this.renderOriginalForm()),D(this,"renderTextAndLinkToSignup",()=>{let{onRedirectToSignup:e=()=>{}}=this.props;return(0,U.jsxs)(l.xu,{paddingY:6,display:"flex",children:[(0,U.jsx)(l.xv,{weight:"normal",size:"300",children:this.props.i18n._('Don\u2019t have a business account?', 'businessAccountCreate.signupLink.text', 'The text to let user signup')}),(0,U.jsx)(l.xu,{marginStart:1,children:(0,U.jsx)(l.rU,{href:"#",display:"inlineBlock",onClick:({event:t,dangerouslyDisableOnNavigation:o})=>{t.preventDefault(),o(),e()},children:(0,U.jsx)(l.xv,{weight:"normal",size:"300",children:this.props.i18n._('Create one for free', 'businessAccountCreate.signupLink.CTA', 'The actual CTA to redirect user to signup page')})},0)})]})}),this.state={accountRecoveryModalType:null,emailValidationError:null,passwordValidationError:null,googleValidationError:null,loading:!1,hideFBGoogleToolTip:!1};let{i18n:o}=e,a=o._('You missed a spot! Don\'t forget to add your email.', ' - ', ' -- '),n=o._('Hmm...that doesn\'t look like an email address.', ' - ', ' -- '),c=o._('Use only a mix of letters, numbers and special characters (for example: ?, !, $).', 'Login.password.onlyASCII', 'Only ASCII characters are allowed for password');this.emailValidators=[(0,O.aH)({message:a}),(0,O.GT)({message:n})];let p=o._('The password you entered is incorrect.', ' - ', ' -- ');this.passwordValidators=[(0,B.Z)({shortPassStr:p,samePasswordStr:p,blackPassStr:p})],this.asciiValidators=[(0,O.oR)({message:c})]}componentDidMount(){let{isAccountSwitch:e,nextUrlParam:t,requestContext:o,showResponseMessageModal:i}=this.props;j.ZP.isFullyLoggedIn(o.isAuthenticated,o.loginState)&&!e&&(i?i(!1):j.ZP.handleRedirect(t)),window.onloadCallback=this.onloadCallback,window.verifyCaptcha=this.verifyCaptcha,void 0===window.recaptchaCount?window.recaptchaCount=1:window.recaptchaCount+=1}componentWillUnmount(){void 0!==window.recaptchaCount&&(window.recaptchaCount-=1)}loginUser(e,t,o){let{container:i="unknown",email:l,flushContextEvents:a,isAccountSwitch:n,loadingIndicatorCallback:s,login:r,pageContext:c,showResponseMessageModal:d,desktopCoreLoginContext:{viewer:_},requestContext:u}=this.props;this.setState({loading:!0}),s(!0);let h=t||{username_or_email:l||"",password:this.props.password},p={container:i,page:c?c.pageType:void 0},g=z.Z.EMAIL;"facebook"===e?g=z.Z.FACEBOOK:"google"===e&&(g=z.Z.GPLUS),v.Z.pause(P.LU),a(),r({creds:h,loggingOptions:{loggingData:p,loginAttemptContextEvent:{event_type:7534,element:"google"===e?12981:void 0,aux_data:{...(0,x.Z)(_.type),signup_login_method:g}}},isAccountSwitch:n,recaptchaV2Token:o,recaptchaV3Token:this.props.recaptchaV3Token||"default"}).then((e={})=>{j.ZP.storeLoginCredentialsToBrowser(h);let t=this.props.nextUrlParam||j.ZP.defaultLoginRedirectUrl(),{anyEnabled:o}=u.experimentsClient.checkExperiment("m10n_measurement_pinterest_tag_us");if(o&&"undefined"!=typeof window&&window.pintrk)try{window.pintrk("track","custom",{lead_type:"Pinterest Login",em:l})}catch(e){}if(n&&e.resource_response&&e.resource_response.data&&e.resource_response.data.user){let{user:o}=e.resource_response.data;(0,k.Z)(o,"email",i),t="/"+o.username}else j.ZP.storeLoginCredentialsToBrowser(h);d?d(!1):j.ZP.handleRedirect(t)},t=>this.handleLoginFailure(e,t,h))}render(){let{email:e,container:t,requestContext:o,showLastLoggedInSection:i}=this.props,a=R.Z.getItem(V.V6),n=!!a&&o.experimentsClient.checkExperiment("pcons_last_logged_in").anyEnabled;return(0,U.jsxs)(l.xu,{width:i&&n?330:"revamped_business_login_page"===t?"100%":268,dangerouslySetInlineStyle:{__style:{margin:"0 auto"}},children:[(0,U.jsx)(s.Z,{email:e||"",modalType:this.state.accountRecoveryModalType,onLoginWithMfa:this.props.onLoginWithMfa,updateAccountRecoveryModal:this.updateAccountRecoveryModal}),this.renderButtons(),"revamped_business_login_page"===t&&this.renderTextAndLinkToSignup(),!this.props.hideTermsOfService&&(0,U.jsx)(p.Z,{dark:!0,container:t})]})}}function K(e){let t=(0,b.ZP)(),{flushContextEvents:o,logContextEvent:l}=(0,a.v)(),s=(0,y.lO)(),{recaptchaV3Token:r,refreshToken:d}=(0,E.D)(),_=(0,c.B$)(),{country:u}=(0,C.B)(),h=(0,m.Z)(),[p,x]=(0,i.useState)(""),{viewType:f,viewParameter:w}=(0,n.SU)(),v=(0,g.g)(),{trackConversionUpsell:P}=(0,M.Z)();return(0,U.jsx)(q,{...e,desktopCoreLoginContext:_,flushContextEvents:o,i18n:t,logContextEvent:l,login:h,pageContext:s,password:p,recaptchaV3Token:r,refreshRecaptchaV3Token:d,isLineAuthenticationEnabled:"JP"===u,setPassword:x,viewType:f,viewParameter:w,unauthDesktopSignupModalPageContext:v,trackConversionUpsell:P})}},979661:(e,t,o)=>{o.d(t,{Z:()=>m});var i=o(667294),l=o(883119),a=o(803491);let n=["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"];var s=o(662730),r=o(898781),c=o(867820),d=o(785893);function _({birthday:e,birthdayValidationError:t,setBirthdayValidationError:o,onBirthdayChange:a}){let n=(0,r.ZP)();return(0,i.useEffect)(()=>{(0,c.My)("dweb.signup_age_step",{type:"email",format:"birthday"})},[]),(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)(l.xu,{marginBottom:1,marginStart:2,marginTop:2,children:(0,d.jsxs)(l.kC,{children:[(0,d.jsx)(l.xu,{marginEnd:2,children:(0,d.jsx)(l.__,{htmlFor:"birthdate",children:(0,d.jsx)(l.xv,{size:"200",children:n._('Birthdate', 'registerForm.label.birthdate', 'Label for birthdate field')})})}),(0,d.jsx)(l.u,{idealDirection:"right",text:n._('To help keep Pinterest safe, we now require your birthdate. Your birthdate also helps us provide more personalized recommendations and relevant ads. We don\'t share this information and it won\'t be visible on your profile.', 'registerForm.label.birthdate.tooltipDescription', 'Tooltip explaining why we require birthdate'),zIndex:s.C,children:(0,d.jsx)(l.JO,{accessibilityLabel:n._('Tooltip', 'registerForm.label.birthdate.tooltip.access', 'accessibility tooltip for birthdate'),icon:"info-circle"})})]})}),(0,d.jsx)(l.xu,{"data-test-id":"signup-birthdate-field",children:(0,d.jsx)(l.nv,{autoComplete:"bday",errorMessage:t,id:"birthdate",onChange:e=>{a(e),o("")},size:"lg",type:"date",value:e||""})})]})}var u=o(597922),h=o(349700),p=o(326216),g=o(101331);function m({buttonText:e,buttonTextLabel:t,container:o="",disableEmailLogin:s,email:m,emailFieldHasError:x,emailLabel:y,emailText:f,emailValidationError:w,hideEmailField:b,hideFacebookButton:v,hideGoogleButton:P,hidePasswordField:k,onButtonClick:A,onEmailBlur:S,onEmailChange:j,onPasswordChange:z,password:E,passwordResetLink:C,passwordText:T,passwordValidationError:L,signupForm:R,suppressFocus:Z,component:I}){let M=(0,r.ZP)(),[B,F]=(0,i.useState)(!!R),[O,N]=(0,i.useState)(null),[W,V]=(0,i.useState)(""),{trackConversionUpsell:U}=(0,g.Z)(),D=w;!D&&(k||s)&&(v||P?!v&&P?D=M._('Your account is connected to Facebook - use the Facebook button to log in', 'Customized desktop login for users with Facebook', 'Customized desktop login for users with Facebook'):v&&!P&&(D=M._('Your account is connected to Google - use the Google button to log in', 'Customized desktop login for users with Google', 'Customized desktop login for users with Google')):D=M._('Your account is connected to Facebook and Google - use the buttons to log in', 'Customized desktop login for users with FB and Google', 'Customized desktop login for users with FB and Google'));let G=e=>{U({element:e,eventType:14689})},H="revamped_business_login_page"===o;return(0,d.jsxs)("form",{"data-test-id":"registerForm",method:"POST",noValidate:!0,onSubmit:e=>{e.preventDefault(),A(e)},children:[!b&&(0,d.jsx)(l.xu,{marginBottom:H?4:1,marginStart:2,children:(0,d.jsx)(l.__,{htmlFor:"email",children:(0,d.jsx)(l.xv,{size:H?"300":"200",children:M._('Email', 'registerForm.label.email', 'Label for email field')})})}),!b&&(0,d.jsx)(l.xu,{"data-test-id":"emailInputField",dangerouslySetInlineStyle:{__style:{marginBottom:H?36:7}},children:(0,d.jsx)(u.Z,{accessibilityLabel:y,autoComplete:"email",disabled:!!(null!=R&&R.registerRestricted),domainError:O?(0,h.nk)(M._('Did you mean {{ newEmail }}?', ' - ', ' -- '),{newEmail:(0,d.jsx)(l.xv,{color:"error",inline:!0,size:"200",weight:"bold",children:O},"err_text")}):void 0,focused:!Z,hasError:!!w||!!x,id:"email",name:"id",onBlur:()=>{null==S||S(),R&&(m?R.checkEmailExistsWithCompletion({email:m,handleEmailExists:()=>{(0,c.My)("web.unauth.signup.email_entered"),B&&F(!1)},handleEmailNotExist:async()=>{B||F(!0),await R.checkEmailValidation(m)},handleError:()=>{F(!0)}}):F(!0));let e=e=>{V(e),m===e?N(null):(N(e),(0,c.My)("unauth.email_domain_typo_suggestion.shown"))},t=m&&-1!==m.indexOf("@")?m.split("@"):[];if(m&&m!==W||N(null),m&&t&&m.length<60){if(2===t.length){let o=t[1],i=o&&-1!==o.indexOf(".")?o.split("."):[];if(i.length>=2&&"gmail"===i[0]){if("com"!==i.slice(1).join(".")){let o=t[0]+"@gmail.com";e(o)}else N(null)}}let o=t[1]&&n.includes(t[1])?null:t[1]&&n.map(e=>{let o=(0,p.Z)(e,t[1]);return 2===o||1===o?e:null}).filter(e=>"string"==typeof e);if(o&&o.length){let i=o[0]?`${t[0]}@${o[0]}`:"";e(i)}}},onChange:j,placeholder:f,tooltip:D,type:"email",value:m})}),!k&&(0,d.jsx)(l.xu,{marginBottom:H?4:1,marginStart:2,marginTop:H?4:0,children:(0,d.jsx)(l.__,{htmlFor:"password",children:(0,d.jsx)(l.xv,{size:H?"300":"200",children:M._('Password', 'registerForm.label.password', 'Label for password field')})})}),!k&&(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)(l.xu,{"data-test-id":"passwordInputField",children:(0,d.jsx)(u.Z,{autoComplete:"new-password",disabled:!!s||!!(null!=R&&R.registerRestricted),hasError:!!L,id:"password",name:"password",onChange:z,onFocus:()=>{(0,c.NC)("focus_password")},placeholder:T,tooltip:L,type:"password",value:E,focused:!!b&&!Z})}),(0,d.jsx)(l.xu,{"data-test-id":"password-reset-button",children:null!=C?C:null})]}),window.recaptchaCount>0?(0,d.jsx)("div",{className:"g-recaptcha",id:`recaptcha_placeholder_${window.recaptchaCount}`,style:{marginTop:"16px",transform:"scale(0.88)",transformOrigin:"0 0"}}):null,R&&(0,d.jsx)(_,{...R.birthdayProps}),(null==R?void 0:R.registerRestricted)&&(0,d.jsx)(l.xu,{marginTop:2,children:(0,d.jsx)(l.xv,{size:"100",color:"error",children:M._('Sorry, you\u2019re not eligible to sign up for Pinterest right now.', 'Signup.AgeStep.underageError', 'Error message shown when underage user tries to register')})}),!k&&(0,d.jsx)(l.xu,{"data-test-id":"registerFormSubmitButton",children:(0,d.jsx)(a.Z,{accessibilityLabel:t,className:"red SignupButton",disabled:s||!!(null!=R&&R.registerRestricted),onClick:()=>{G(14214===I?12019:30),B?((0,c.NC)("press_signup_continue"),(0,c.Rp)({event:"start",provider:"email"})):((0,c.EX)({event:"start",provider:"email"}),(0,c.NC)("press_login_continue"))},styleOverrides:{width:"100%",borderRadius:"20px",marginTop:H?"28px":"8px"},type:"submit",children:(0,d.jsx)(l.xu,{children:e})})})]})}},796592:(e,t,o)=>{o.d(t,{Z:()=>s});var i=o(883119),l=o(157796),a=o(898781),n=o(785893);let s=()=>{let e=(0,a.ZP)();return(0,n.jsx)(i.xu,{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",width:"100%",height:"100%",children:(0,n.jsxs)(i.xu,{color:"default",height:600,minWidth:"500px",rounding:2,width:"30%",children:[(0,n.jsxs)(i.xu,{alignItems:"center",direction:"column",display:"flex",height:"99%",justifyContent:"center",padding:12,children:[(0,n.jsx)(i.xu,{alignItems:"center",color:"primary",display:"flex",height:60,justifyContent:"center",marginBottom:4,rounding:"circle",width:60,children:(0,n.jsx)(i.JO,{accessibilityLabel:e._('Loading state for google one tap registration', ' - ', ' -- '),color:"inverse",icon:"pin",size:"28"})}),(0,n.jsx)(i.xu,{paddingY:5,dangerouslySetInlineStyle:{__style:{"text-align":"center"}},children:(0,n.jsx)(i.X6,{children:e._('Welcome to Pinterest!', 'Welcome to Pinterest!', 'Welcome to Pinterest!')})}),(0,n.jsx)(i.xv,{align:"center",overflow:"normal",children:(0,n.jsx)("span",{className:"deprecatedTextSizeXL",children:e._('Your answers to the next questions will help us find the right ideas for you', 'loading state description while waiting for google one tap registration to complete', 'loading state description while waiting for google one tap registration to complete')})})]}),(0,n.jsx)(i.xu,{width:"100%",children:(0,n.jsx)(l.Z,{duration:6e3,finalProgress:95,shape:"rounded"})})]})})}},174382:(e,t,o)=>{o.d(t,{Z:()=>s});var i=o(883119),l=o(121151),a=o(898781),n=o(785893);function s({type:e,onDismiss:t}){let o=(0,a.ZP)(),s="facebook"===e?o._('Oops! Facebook isn\'t available', 'socialAuthDisabled.facebook.title', 'Title for the modal shown when Facebook services are not working'):o._('Oops! Google isn\'t available', 'socialAuthDisabled.google.title', 'Title for the modal shown when Google services are not working'),r="facebook"===e?o._('Looks like Facebook isn\'t available right now.\n\nGive another option a try or refresh the page and try again later.', 'socialAuthDisabled.facebook.description', 'Description for the modal shown when Facebook services are not working'):o._('Looks like Google isn\'t available right now.\n\nGive another option a try or refresh the page and try again later.', 'socialAuthDisabled.google.description', 'Description for the modal shown when Google services are not working');return(0,n.jsx)(l.ZP,{accessibilityModalLabel:s,footer:(0,n.jsx)(i.kC,{alignItems:"center",justifyContent:"center",children:(0,n.jsx)(i.xu,{paddingX:1,children:(0,n.jsx)(i.zx,{color:"red",onClick:t,text:o._('OK', 'socialAuthDisabled.okButton', 'Button that closes modal shown when Facebook or Google services are not working'),size:"md"})})}),heading:s,onDismiss:t,children:(0,n.jsx)(i.xu,{paddingX:5,children:(0,n.jsx)(i.xv,{align:"center",children:r})})})}},563387:(e,t,o)=>{o.d(t,{E:()=>r,Z:()=>d});var i=o(883119),l=o(898781),a=o(349700),n=o(966113),s=o(785893);let r=`
|
15
|
+
.TermsOfService__light a {
|
16
|
+
color: rgba(255,255,255,0.9);
|
17
|
+
}
|
18
|
+
`,c={dark:{color:"#767676",width:"224px"},light:{color:"rgba(255,255,255,0.9)",lineHeight:"150%",margin:"10px auto",textShadow:"0 1px rgba(0,0,0,0.18)",width:"272px"},revampedBizSignup:{color:"#5f5f5f",fontSize:"12px",fontWeight:"400"}};function d({dark:e,container:t=""}){let o;let r=(0,l.ZP)();return o="revamped_business_login_page"===t?"revampedBizSignup":e?"dark":"light",(0,s.jsx)(i.xu,{marginTop:3,children:(0,s.jsx)("span",{"data-test-id":"terms-of-service",className:e?"":"TermsOfService__light",color:"revampedBizSignup"===o?"subtle":void 0,style:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",fontSize:"11px",fontWeight:"normal",textAlign:"center",WebkitTransition:"opacity .2s linear",transition:"opacity .2s linear",...c[o]},children:(0,s.jsx)("span",{children:(0,a.nk)(r._('By continuing, you agree to Pinterest\'s {{ tos }} and acknowledge you\'ve read our {{ privacyPolicy }}. {{ noticeAtCollection }}.', 'termOfService.text', 'Agreement to legal texts for new users tos:Link to Terms of service privacyPolicy:Link to the Privacy Policy noticeAtCollection:Link to the Notice at collection article'),{tos:(0,s.jsx)(i.xu,{"data-test-id":"tos",display:"inlineBlock",dangerouslySetInlineStyle:{__style:{fontWeight:"bold",..."revampedBizSignup"!==o&&{color:"#111"}}},children:(0,s.jsx)(i.rU,{display:"inlineBlock",target:"blank",href:n.U5h,underline:"hover",children:r._('Terms of Service', 'termOfService.link.tos', 'Link to TOS')},"tos")},"tos"),privacyPolicy:(0,s.jsx)(i.xu,{"data-test-id":"privacy",display:"inlineBlock",dangerouslySetInlineStyle:{__style:{fontWeight:"bold",..."revampedBizSignup"!==o&&{color:"#111"}}},children:(0,s.jsx)(i.rU,{display:"inlineBlock",target:"blank",href:"/_/_/policy/privacy-policy/",underline:"hover",children:r._('Privacy Policy', 'termOfService.link.privacyPolicy', 'Link to privacy policy')},"privacy")},"privacy"),noticeAtCollection:(0,s.jsx)(i.xu,{"data-test-id":"noticeAtCollection",display:"inlineBlock",dangerouslySetInlineStyle:{__style:{fontWeight:"bold",..."revampedBizSignup"!==o&&{color:"#111"}}},children:(0,s.jsx)(i.rU,{display:"inlineBlock",target:"blank",href:n.cvl,underline:"hover",children:r._('Notice at collection', 'termOfService.link.noticeAtCollection', 'Link to notice at collection')},"noticeAtCollection")},"noticeAtCollection")})})})})}},597922:(e,t,o)=>{o.d(t,{Z:()=>n});var i=o(667294),l=o(883119),a=o(785893);function n({accessibilityLabel:e,autoComplete:t="on",disabled:o,domainError:n,focused:s,hasError:r,helperText:c,id:d,name:_,onBlur:u,onChange:h,onFocus:p,placeholder:g,tooltip:m,type:x,useExperimentalTextfield:y,value:f}){var w;let b=(0,i.useRef)(s),v=(0,i.useRef)(null),P=(0,i.useRef)(r);return(0,i.useEffect)(()=>{if(b.current){var e;null===(e=v.current)||void 0===e||e.focus()}},[]),(0,i.useEffect)(()=>{if(!1===P.current&&r){var e;null===(e=v.current)||void 0===e||e.focus()}P.current=r},[r]),(0,a.jsxs)("fieldset",{style:{position:"relative"},children:[(0,a.jsx)(l.xu,{display:"visuallyHidden",children:(0,a.jsx)(l.__,{htmlFor:d,children:null!==(w=null!=e?e:g)&&void 0!==w?w:""})}),(0,a.jsx)(l.nv,{autoComplete:y?void 0:t,disabled:o,errorMessage:m?y&&n||m:"",helperText:y?void 0:c,id:d,name:_,onBlur:u,onChange:({event:e})=>{h(e)},onFocus:p,placeholder:g,ref:v,size:y?void 0:"lg",type:x,value:f||""})]})}},640672:(e,t,o)=>{o.d(t,{Z:()=>a,g:()=>l});var i=o(785893);let l=`
|
19
|
+
.Tooltip_message:before, .Tooltip_message:after {
|
20
|
+
border-style: solid;
|
21
|
+
content: '';
|
22
|
+
display: block;
|
23
|
+
margin-top: -8px;
|
24
|
+
position: absolute;
|
25
|
+
right: 100%;
|
26
|
+
top: 17px;
|
27
|
+
width: 0;
|
28
|
+
}
|
29
|
+
.Tooltip_message:before {
|
30
|
+
border-color: transparent rgba(0,0,0,0.48);
|
31
|
+
border-width: 8px 10px 8px 0;
|
32
|
+
}
|
33
|
+
.Tooltip_message:after {
|
34
|
+
border-color: transparent #fff;
|
35
|
+
border-width: 8px 10px 8px 0;
|
36
|
+
margin-right: -1px;
|
37
|
+
}
|
38
|
+
.Tooltip_mobileMessage:before, .Tooltip_message:after {
|
39
|
+
border-style: solid;
|
40
|
+
display: block;
|
41
|
+
margin-top: -8px;
|
42
|
+
position: absolute;
|
43
|
+
right: 100%;
|
44
|
+
top: 17px;
|
45
|
+
width: 0;
|
46
|
+
}
|
47
|
+
.Tooltip_mobileMessage:before {
|
48
|
+
border-color: transparent rgba(0,0,0,0.48);
|
49
|
+
border-width: 8px 10px 8px 0;
|
50
|
+
}
|
51
|
+
.Tooltip_mobileMessage:after {
|
52
|
+
border-color: transparent #fff;
|
53
|
+
border-width: 8px 10px 8px 0;
|
54
|
+
margin-right: -1px;
|
55
|
+
}
|
56
|
+
.Tooltip_wrapper {
|
57
|
+
position: absolute;
|
58
|
+
left: calc(100% + 12px);
|
59
|
+
z-index: 1;
|
60
|
+
}
|
61
|
+
.Tooltip_mobileWrapper {
|
62
|
+
margin-top: 7px;
|
63
|
+
z-index: 1;
|
64
|
+
}
|
65
|
+
`;function a({message:e,color:t}){return(0,i.jsx)("div",{className:"Tooltip_wrapper","data-test-id":"tooltip",style:{top:"0px",width:"215px"},children:(0,i.jsx)("div",{className:"Tooltip_message",style:{background:t||"#fff",borderRadius:"6px",WebkitBoxShadow:"0 0 2px rgba(0,0,0,0.38),0 1px 3px rgba(0,0,0,0.32)",boxShadow:"0 0 2px rgba(0,0,0,0.38),0 1px 3px rgba(0,0,0,0.32)",color:t?"#fff":"#000",fontStyle:"normal",fontWeight:"normal",fontSize:t?"14px":"",lineHeight:"150%",padding:"8px 14px",textAlign:"left",maxWidth:"215px",display:"inline-block",float:"left"},children:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e},style:{overflowWrap:"break-word",wordWrap:"break-word"}})})})}},754124:(e,t,o)=>{o.d(t,{Z:()=>g});var i=o(667294),l=o(31397),a=o(883119),n=o(469134),s=o(231486),r=o(226198),c=o(856241),d=o(499128),_=o(898781),u=o(290148),h=o(867820),p=o(785893);let g=({birthday:e,onEditBirthday:t,onConfirmBirthday:o=()=>{}})=>{let g=(0,_.ZP)(),[m,x]=(0,i.useState)(!1),y=e?(0,l.Z)(new Date,(0,c.Z)(e)):0;return(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(a.xu,{padding:8,"data-test-id":"underageconfirmation-modal",children:(0,p.jsxs)(a.kC,{direction:"column",justifyContent:"center",alignItems:"center",children:[(0,p.jsx)(a.xu,{width:420,marginBottom:5,"data-test-id":"underageconfirmation-title",children:(0,p.jsx)(a.X6,{align:"center",size:"600",children:(0,n.ew)(y,g)})}),(0,p.jsx)(a.xu,{marginBottom:10,maxWidth:540,children:(0,p.jsx)(a.xv,{align:"center",children:(0,n.Pe)(g)})}),(0,p.jsx)(a.xu,{children:(0,p.jsxs)(a.kC,{children:[(0,p.jsx)(a.xu,{marginEnd:2,children:(0,p.jsx)(a.zx,{text:g._('Edit', 'signup.underageconfirmation.edit', 'Text on the edit button for birthday collection underage screen'),onClick:()=>{(0,h.My)("dweb.underageconfirmation.edit"),s.t8(r.It,"0",(0,s.kZ)(r.It)),t()}})}),(0,p.jsx)(a.zx,{text:g._('Confirm', 'signup.underageconfirmation.confirm', 'Text on the confirm button for birthday collection underage screen'),type:"submit",color:"red",onClick:()=>{x(!0),(0,h.My)("dweb.underageconfirmation.confirm"),o(),setTimeout(()=>{u.ZP.handleRedirect("/")},4e3)}})]})})]})}),m&&(0,p.jsx)(a.xu,{fit:!0,dangerouslySetInlineStyle:{__style:{bottom:"50%",left:"50%",transform:"translateX(-50%)"}},paddingX:1,position:"fixed",children:(0,p.jsx)(d.ZP,{onHide:()=>x(!m),text:g._('Sorry, you\u2019re not eligible to sign up for Pinterest right now.', 'signup.underageconfirmation.error', 'Error message shown when underage user tries to register'),duration:3500})})]})}},905171:(e,t,o)=>{o.d(t,{o:()=>s,x:()=>n});var i=o(667294),l=o(898781);let a=new Set,n=e=>{a.forEach(t=>t(e))},s=e=>{let t=(0,l.ZP)();(0,i.useEffect)(()=>{let o=o=>{e(o||t._('Unknown Error', 'unauth.error.modal.unknown', 'Text saying an unknown error occurredr'))};return a.add(o),()=>{a.delete(o)}},[])}},910702:(e,t,o)=>{o.d(t,{Z:()=>l});var i=o(816068);let l=e=>({type:"facebook",first_name:e.first_name,last_name:e.last_name,email:e.email,gender:e.gender,image_url:e.picture&&!e.picture.data.is_silhouette?e.picture.data.url:void 0,facebook_id:e.id,facebook_token:e.access_token,birthday:e.birthday?(0,i.Z)(e.birthday):void 0})},70212:(e,t,o)=>{o.d(t,{Z:()=>a});var i=o(186656);let l=async()=>{try{var e,t;let o=await (0,i.Z)({url:"/v3/users/me/"}),l=(null===(e=o.resource_response.data)||void 0===e?void 0:e.email)||(null===(t=(o.resource_response.client_context||Object.freeze({})).user)||void 0===t?void 0:t.email);"undefined"!=typeof window&&window.pintrk&&window.pintrk("track","custom",{lead_type:"Pinterest Login",em:l})}catch(e){}},a=l},901656:(e,t,o)=>{o.d(t,{Z:()=>l});var i=o(432300);let l=e=>"UNAUTH"===e?Object.freeze({}):{login_state:"LIMITED_LOGIN"===e?i.Z.LIMITED:i.Z.DEFAULT}},662730:(e,t,o)=>{o.d(t,{C:()=>a,P:()=>l});var i=o(883119);let l=new i.Ry(1e4),a=new i.H3([l])},903095:(e,t,o)=>{o.d(t,{Mi:()=>l,lO:()=>a});var i=o(425288);let{Provider:l,useMaybeHook:a}=(0,i.Z)("pageContext")},743847:(e,t,o)=>{o.d(t,{Z:()=>l,z:()=>a});var i=o(326216);function l(e){let t=e&&-1!==e.indexOf("@")?e.split("@"):[];if(2===t.length){let e=t[1],o=e&&-1!==e.indexOf(".")?e.split("."):[];if(o.length>=2&&"gmail"===o[0]&&"com"!==o.slice(1).join("."))return!0;let l=(0,i.Z)(e,"gmail.com");if("g"===e.charAt(0)&&(1===l||2===l))return!0}return!1}function a(e,t){let o=e&&-1!==e.indexOf("@")?e.split("@"):[];if(2!==o.length)return!1;let l=o[1],a=l&&-1!==l.indexOf(".")?l.split("."):[],n=a[0];if(n===t&&a.length>3)return!0;if(a.length>=2){let e=(0,i.Z)(n,t);return n.charAt(0)===t.charAt(0)&&(1===e||2===e)}return(2!==a.length||n!==t||2!==a[1].length&&"com"!==a[1])&&(a.length,!1)}},402201:(e,t,o)=>{o.d(t,{Z:()=>i});let i=e=>{let[t,o]=[(null==e?void 0:e.width)||580,(null==e?void 0:e.height)||400],[i,l]=[window.screen.width,window.screen.height];return`scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=${t},height=${o},left=${Math.round((i-t)/2)},top=${l>o?Math.round((l-o)/2):0}`}},894738:(e,t,o)=>{o.d(t,{Z:()=>i});function i(e){e&&e.focus()}},65189:(e,t,o)=>{o.d(t,{Z:()=>l});let i=e=>e.split("").sort(()=>.5-Math.random()).join("");function l(e,t){let o=e.split("@")[0],l="";return(l=(l=o.includes(".")?o.replace("."," "):o.includes("_")?o.replace("_"," "):o).replace(/[0-9]/g,""),"GB"===t)?"User_"+i(l):l=l.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())}},326216:(e,t,o)=>{o.d(t,{Z:()=>i});function i(e,t){let o,i;if(0===e.length)return t.length;if(0===t.length)return e.length;let l=[];for(o=0;o<=t.length;o+=1)l[o]=[o];for(i=0;i<=e.length;i+=1)l[0][i]=i;for(o=1;o<=t.length;o+=1)for(i=1;i<=e.length;i+=1)t.charAt(o-1)===e.charAt(i-1)?l[o][i]=l[o-1][i-1]:l[o][i]=Math.min(l[o-1][i-1]+1,Math.min(l[o][i-1]+1,l[o-1][i]+1));return l[t.length][e.length]}},248975:(e,t,o)=>{o.d(t,{Z:()=>i});function i({embedSrc:e,embedType:t,imagesUrls:o,preferredResolution:i,excludeOriginals:l}){if(!e&&!t&&!o)return"";if("gif"===t)return e||"";if(!o)return"";if(i){let e="474x"===i&&o["474x"]||"236x"===i&&o["236x"]||o["736x"];if(e)return e}let a=Object.keys(o).reduce((e,t)=>{try{let i=t.split("x")[0];if(Number.isNaN(Number(i)))return{...e,[t]:o[t]};return{...e,[i]:o[t]}}catch(t){return e}},{}),n=Object.keys(a);l&&"orig"===n[n.length-1]&&n.pop();let s=n.pop();return a[s]||""}},336882:(e,t,o)=>{o.d(t,{Z:()=>i});let i={STARTED:1,FINISHED:2}},738192:(e,t,o)=>{o.d(t,{Z:()=>h});var i=o(883119),l=o(898781),a=o(349700),n=o(584595),s=o(785893);let r=({children:e,onClick:t})=>(0,s.jsx)("button",{onClick:t,style:{background:"transparent",border:"none",verticalAlign:"inherit",padding:0},type:"button",children:(0,s.jsx)(i.xv,{color:"error",inline:!0,size:"200",weight:"bold",children:e},"err_text")});function c({apiErrorCode:e,errorMessage:t,onClickPasswordReset:o}){let c=(0,l.ZP)(),d=(e=>{switch(e){case n.yV:case n.$j:return(0,a.nk)(c._('We noticed some strange activity on your account. {{ resetPasswordLink }} or log in with Facebook or Google to get back into your account.', 'Error message when user is soft banned', 'Error message when user is soft banned'),{resetPasswordLink:(0,s.jsx)(r,{onClick:o,children:c._('Reset your password', 'Link text for password reset', 'Link text for password reset')})});case n.iK:return(0,a.nk)(c._('Your account is already linked to Google. To log in with email, {{ resetPasswordLink }}', ' - ', ' -- '),{resetPasswordLink:(0,s.jsx)(r,{onClick:o,children:c._('set a password.', 'Link text to set password for user with account with only google auth', 'Link text to set password for user with account with only google auth')})});case n.nY:return(0,a.nk)(c._('Your account is already linked to Facebook. To log in with email, {{ resetPasswordLink }}', ' - ', ' -- '),{resetPasswordLink:(0,s.jsx)(r,{onClick:o,children:c._('set a password.', 'Link text to set password for user with account with only facebook auth', 'Link text to set password for user with account with only facebook auth')})});case n.nf:return(0,a.nk)(c._('Your account is connected to Apple. This option works only on the Pinterest iOS app. To log into Pinterest here, you\u2019ll need to {{ resetPasswordLink }}', 'unauth.web.emailLogin', 'Error message displayed to users who are connected to Apple, but do not have a password'),{resetPasswordLink:(0,s.jsx)(r,{onClick:o,children:c._('set a password.', 'Link text to set password for user with account with only apple auth', 'Link text to set password for user with account with only apple auth')})});case n.oP:return(0,a.nk)(c._('The password you entered is incorrect. Try again or {{ resetPasswordLink }}', ' - ', ' -- '),{resetPasswordLink:(0,s.jsx)(r,{onClick:o,children:c._('Reset your password', 'Link text for password reset', 'Link text for password reset')})});default:return[t]}})(e);return(0,s.jsx)(i.xu,{"data-test-id":"touchableErrorMessage",children:d.map((e,t)=>(0,s.jsx)(i.xv,{color:"error",inline:!0,size:"200",children:e},`err_message_${t}`))})}var d=o(817656),_=o(867820);let u=[...n.ZP,d.Ej,n.oP,n.nf].filter(e=>e!==n.RL&&e!==n.an);function h({error:e,onClickPasswordReset:t,source:o}){var i;let l=e.api_error_code;(e.http_status||e.httpStatus)===d.Ej&&(l=d.Ej);let a=l&&u.includes(l)?(0,s.jsx)(c,{apiErrorCode:l,errorMessage:null!==(i=e.message)&&void 0!==i?i:"",onClickPasswordReset:t}):e.message;if(a)switch(l){case n.oP:case n.RL:return{passwordValidationError:a};case n.nY:return{facebookValidationError:a};case n.iK:return{googleValidationError:a};case n.hU:return{emailValidationError:a};case n._K:return{passwordValidationError:a};default:return{emailValidationError:a}}else(0,_.My)(`unauth.login.error.SERVER_ERROR.unknown.${String(l)}.${o}`);return null}},143461:(e,t,o)=>{o.d(t,{D:()=>r,T:()=>s});var i=o(667294),l=o(874103),a=o(785893);let n=(0,i.createContext)({recaptchaV3Token:"",refreshToken:()=>{}});function s({children:e}){let[t,o]=(0,i.useState)(""),s=(0,i.useCallback)(()=>{(0,l.rY)(e=>o(e),e=>{},l.sk)},[]);(0,i.useEffect)(()=>{s();let e=setInterval(s,l.yc);return()=>{clearInterval(e)}},[s]);let r=(0,i.useMemo)(()=>({recaptchaV3Token:t,refreshToken:s}),[t,s]);return(0,a.jsx)(n.Provider,{value:r,children:e})}let r=()=>(0,i.useContext)(n)},123906:(e,t,o)=>{o.d(t,{Z:()=>i});let i=(e,t)=>{let o=new URL(e,"https://pinterest.com");return o.search=new URLSearchParams(t).toString(),o.toString().substring(o.origin.length)}},26717:(e,t,o)=>{o.d(t,{Z:()=>i});let i=e=>async()=>{let{Password:t}=await o.e(23468).then(o.bind(o,323468));return t(e)}},216895:(e,t,o)=>{async function i(e,t){let o;for(let i of t){let t=i(e);if(t instanceof Promise){let i=await t,l=i(e);if(l.errors.length>0){o=l.errors[0];break}}else if(t.errors.length>0){o=t.errors[0];break}}return o}o.d(t,{U:()=>i,Z:()=>l});let l=(e,t)=>{let o;return t.some(t=>{let i=t(e);return i.errors.length>0&&(o=i.errors[0],!0)}),o}},823983:(e,t,o)=>{o.d(t,{Z:()=>_});var i=o(883119),l=o(898781),a=o(957161),n=o(867820),s=o(50286),r=o(63552),c=o(709113),d=o(785893);function _({setShowLastLoggedInSection:e}){let t=(0,l.ZP)(),o=(0,s.HG)(),_=o?"desktop":"mobile",u=a.Z.getItem(c.V6);return(0,d.jsx)(i.xu,{marginTop:o?7:6,marginBottom:"email"===u?4:void 0,children:(0,d.jsxs)(i.kC,{alignItems:"center",justifyContent:"center",children:[(0,d.jsx)(i.xu,{display:"flex",marginEnd:1,"data-test-id":"signup-link",alignItems:"center",children:(0,d.jsx)(i.xv,{size:"300",children:t._('Not you?', 'toggle.loginText', 'Text before tap area asking user if its them')})}),(0,d.jsx)(i.xu,{children:(0,d.jsx)(r.Z,{pressState:"none",onTouch:()=>{(0,n.My)(`${_}.toggle.continue_another_way.last_logged_in_section.link_button`),e&&e(!1)},children:(0,d.jsx)(i.xu,{children:(0,d.jsx)(i.xv,{align:"center",size:"300",weight:"bold",children:t._('Use another account', 'toggle.changeAccount.tapAreaText', 'Tap area that allows user to switch accounts')})})})})]})})}},783690:(e,t,o)=>{o.d(t,{Z:()=>g});var i=o(616550),l=o(883119),a=o(898781),n=o(349700),s=o(773285),r=o(957161),c=o(867820),d=o(50286),_=o(823983),u=o(172351),h=o(709113),p=o(785893);function g({setShowLastLoggedInSection:e,attributionLabel:t}){let o=(0,i.useLocation)(),g=(0,a.ZP)(),{checkExperiment:m}=(0,s.F)(),x=(0,d.HG)(),y=r.Z.getItem(h.V6),f=y&&y.charAt(0).toUpperCase()+y.slice(1),w=!!y&&(m("pcons_mweb_last_logged_in").anyEnabled||m("pcons_last_logged_in").anyEnabled);return(0,p.jsxs)(l.xu,{paddingY:x?void 0:4,children:[!x&&(0,p.jsxs)(l.xu,{children:[(0,p.jsx)(l.X6,{align:"center",size:"400",children:g._('Welcome back', 'lastLoggedInSection.Heading.welcomeBack', 'Heading welcoming user back')}),(0,p.jsx)(l.xv,{align:"center",children:(0,n.nk)(g._('Last time you logged in using {{ lastLoggedInMethod }}', 'lastLoggedInSection.subHeading', 'lastLoggedInMethod: method user last used to log in, Subheading what was the last logged in method for the user'),{lastLoggedInMethod:"email"===y?y:f})})]}),"email"!==y&&(0,p.jsxs)(l.xu,{marginTop:x?void 0:3,paddingX:10,children:[(0,p.jsx)(u.Z,{facebook:"facebook"===y,google:"google"===y,from:`${o.pathname}${o.search}`,next:`${o.pathname}${o.search}`,attributionLabel:t}),(0,p.jsx)(l.xu,{children:(0,p.jsx)(l.xu,{paddingY:1,children:(0,p.jsx)(l.zx,{accessibilityLabel:"Other login methods",size:"md",text:g._('Continue another way', 'toggle.button', 'Button lllowing users to log in another way'),fullWidth:!0,onClick:()=>{(0,c.My)("toggle.continue_another_way.last_logged_in_section.button"),e&&e(!1)}})})})]}),!(w&&"email"===y)&&(0,p.jsx)(_.Z,{setShowLastLoggedInSection:e})]})}},746613:e=>{e.exports="https://s.pinimg.com/webapp/birthday-08b9de02.png"}}]);
|
66
|
+
//# sourceMappingURL=https://sm.pinimg.com/webapp/20224-b6de2c08cc8ad497.mjs.map
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
.DraftEditor-editorContainer,.DraftEditor-root,.public-DraftEditor-content{height:inherit;text-align:left;text-align:initial}.public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.DraftEditor-root{position:relative}.DraftEditor-editorContainer{background-color:hsla(0,0%,100%,0);border-left:.1px solid transparent;position:relative;z-index:1}.public-DraftEditor-block{position:relative}.DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left}.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left}.DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center}.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%}.DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right}.DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right}.public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;width:100%;z-index:1}.public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9}.DraftEditorPlaceholder-hidden{display:none}.public-DraftStyleDefault-block{position:relative;white-space:pre-wrap}.public-DraftStyleDefault-ltr{direction:ltr;text-align:left}.public-DraftStyleDefault-rtl{direction:rtl;text-align:right}.public-DraftStyleDefault-listLTR{direction:ltr}.public-DraftStyleDefault-listRTL{direction:rtl}.public-DraftStyleDefault-ol,.public-DraftStyleDefault-ul{margin:16px 0;padding:0}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em}.public-DraftStyleDefault-unorderedListItem{list-style-type:square;position:relative}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0{list-style-type:disc}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1{list-style-type:circle}.public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px}.public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1,lower-alpha) ". ";counter-increment:ol1}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2,lower-roman) ". ";counter-increment:ol2}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4,lower-alpha) ". ";counter-increment:ol4}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4}
|