(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([["www/pin/[id]-unauthdesktop",16,39,55,62,95,103,111,302,"BackgroundPinImages"],{"+6dQ":function(e,t,n){var i=n("28DW"),o=n("D2p8");t.a=e=>{o.c.resume(o.b),Object(i.a)("web.dismiss_account_switcher."+e)}},"+80P":function(e,t,n){function i(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function r(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var c={"http:":{validate:function(e,t,n){var i=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var i=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var i=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function d(e){var t=e.re=n("sRdV")(e.__opts__),i=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||i.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),i.push(t.src_xn),t.src_tlds=i.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var i={validate:null,link:null};if(e.__compiled__[t]=i,"[object Object]"===o(n))return!function(e){return"[object RegExp]"===o(e)}(n.validate)?r(n.validate)?i.validate=n.validate:l(t,n):i.validate=function(e){return function(t,n){var i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}(n.validate),void(r(n.normalize)?i.normalize=n.normalize:n.normalize?l(t,n):i.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(n)?l(t,n):c.push(t)}})),c.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var d=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+d+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+d+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function u(e,t){var n=e.__index__,i=e.__last_index__,o=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=o,this.text=o,this.url=o}function p(e,t){var n=new u(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=i({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=i({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},d(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},h.prototype.set=function(e){return this.__opts__=i(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,i,o,r,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(r=n.index+n[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(i=e.match(this.re.email_fuzzy))&&(r=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||r<this.__index__||r===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=r,this.__last_index__=a)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var i=t?e.slice(t):e;this.test(i);)n.push(p(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),d(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},"+8U0":function(e,t,n){function i(e){const t=e.split("@")[0];let n="";return n=t.includes(".")?t.replace("."," "):t.includes("_")?t.replace("_"," "):t,n=n.replace(/[0-9]/g,""),n=n.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),n}n.d(t,"a",(function(){return i}))},"+Der":function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l}));var i=n("QLqj"),o=n("kmwA");function r(e,t){return e.some(e=>e.id===t.id)}function a(e){const t=[];if(e){const n=72e5,i=Date.now()-n;for(const o of e)o.ts>=i&&("string"==typeof o.image_signature&&t.push(o.image_signature),"string"==typeof o.first_pin_image_signature&&t.push(o.first_pin_image_signature))}return t}function s(){return{plpImages:a(i.b.localStorage.getItem("visitedPinLandingPagesBeforeLogin")||[]),blpImages:a(i.b.localStorage.getItem("visitedBoardLandingPagesBeforeLogin")||[])}}function c(e){return e.url.split("/").pop().replace(/(--.*|\.jpg)$/g,"")}function l(e,t){const n=o.a.settings.EU_COUNTRIES_2020_COOKIE_POLICY;return!n.includes(e)&&n.includes(t)?{allow_analytic_cookies:!1,allow_marketing_cookies:!1,allow_personalization_cookies:!1}:{}}},"+JjG":function(e,t,n){n.d(t,"a",(function(){return u}));var i=n("q1tI"),o=n("Ye/N"),r=n("kIwf"),a=n("q8wg"),s=n("OSge"),c=n("n6mq"),l=n("nKUr");const d=[s.a.HEADING,s.a.IMAGE,s.a.PARAGRAPH,s.a.VIDEO,s.a.MENTION_STICKER,s.a.PRODUCT_STICKER];function u({activePageIndex:e,fontsLoaded:t,hideMute:n,isActive:u,isPreview:p,muteVideos:h,onChangeMuteVideo:g,onEnded:m,onFlyoutOpen:f,videoPinProgress:b,onUpdateVideoInfo:_,ownerId:j,pageIndex:y,page:v,pageWidth:O,pinId:x,productPins:w,stillLoading:S=!1}){var C;const[k,T]=Object(i.useState)(!1),{background_color:E}=v.style||{},I=[],P=[],D=[];(null!==(C=v.blocks)&&void 0!==C?C:[]).forEach(e=>{d.includes(e.type)?e.type===s.a.PARAGRAPH||e.type===s.a.HEADING?P.push(e):D.push(e):I.push(e)}),D.push(...P);const A=!!D.find(e=>e.type===s.a.VIDEO),L=I.find(e=>e.type===s.a.MUSIC),R="story_pin_music_block"===(null==L?void 0:L.type)?L.provider_recording_id:void 0;return Object(l.jsx)(a.a,{view:3,viewParameter:157,component:0===y?227:228,auxData:{story_pin_page_id:y},children:Object(l.jsx)(c.bb,{fullHeight:!0,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),children:Object(l.jsxs)(c.f,{dangerouslySetInlineStyle:{__style:{background:E||"#fff"}},height:"100%",children:[!p&&D.map((n,i)=>{var o,a;return Object(l.jsx)(r.g,{activePageIndex:e,block:n,fontsLoaded:t,isActive:u,isSplitLayout:3===v.layout,musicRecordingId:R,muteVideos:h,ownerId:j,onEnded:m,onFlyoutOpen:f,videoPinProgress:b,onUpdateVideoInfo:_,pageIndex:y,pageWidth:O,pinId:x,productPins:w,stillLoading:S},`${null!==(o=v.id)&&void 0!==o?o:""}-${null!==(a=n.type)&&void 0!==a?a:""}-${i}`)}),n||p||!A||!k&&!h?null:Object(l.jsx)(c.f,{bottom:!0,left:!0,padding:4,position:"absolute",children:h?Object(l.jsx)(c.w,{accessibilityLabel:o.a._("Click to unmute","closeup.storyPin.storyPinVideo.volume","Button to unmute the video"),bgColor:"white",icon:"mute",iconColor:"darkGray",onClick:()=>g(!1)}):Object(l.jsx)(c.w,{accessibilityLabel:o.a._("Click to mute","closeup.storyPin.storyPinVideo.volume","Button to mute the video"),bgColor:"white",icon:"sound",iconColor:"darkGray",onClick:()=>g(!0)})})]})})})}},"+d+Q":function(e,t,n){n.d(t,"a",(function(){return m}));var i=n("q1tI"),o=n("LQE/"),r=n("JW66"),a=n("Ye/N"),s=n("28DW"),c=n("3a2J"),l=n("seY9"),d=n("n6mq"),u=n("XZ+i"),p=n("XPo3"),h=n("AsgO"),g=n("nKUr");function m({children:e,fullImgHeight:t,page:n,pin:m,renderAttribution:f,scaledSize:b,viewportSize:_}){const[j,y]=Object(i.useState)(!1),v=e=>{e.keyCode===r.a.KeyCode.ESCAPE&&y(!1)};Object(i.useEffect)(()=>(document.body&&document.addEventListener("keydown",v),()=>{document.body&&document.removeEventListener("keydown",v)}),[]);const O=e=>{Object(s.a)("unauth.topic_page.best_pin.more_info_click");const t=!j;y(t),document.body&&(document.body.style.overflow=t?"hidden":"")},x="wide"===_,[w,S]=b?[b.width,b.height]:[p.i,p.b];let[C,k]=x?[w,p.f]:[p.a,S];"closeup"===n&&(k=b?b.height:p.g,C=p.c);const{showSignupModal:T}=Object(u.c)();return Object(g.jsx)(o.a,{largeMainPin:!0,fullImgHeight:t,renderAttribution:f,renderVaseTags:e=>e.length>0?Object(g.jsxs)(i.Fragment,{children:[Object(g.jsx)(d.f,{marginTop:3,"data-test-id":"UnauthBestPinCardVaseTags",children:Object(g.jsx)(c.a,{openInCurrentTab:!0,tagClickHandler:()=>{},annotationsWithLinks:e,pillStyleOverride:{borderRadius:"12.5px",backgroundColor:"#efefef",color:"#333",padding:"5px 8px",marginRight:"4px",marginBottom:"4px",fontWeight:"700",fontSize:"12px"}})}),Object(g.jsx)(d.f,{marginTop:1,children:Object(g.jsxs)("button",{"data-test-id":"more-information-button",onMouseOver:h.a,onMouseLeave:h.b,onFocus:h.a,onBlur:h.b,onClick:O,style:{backgroundColor:"transparent",border:0,fontSize:"12px",fontWeight:"bold",height:"13px",letterSpacing:"-0.3px",MozOsxFontSmoothing:"grayscale",outline:"none",padding:0,marginTop:"16px",WebkitFontSmoothing:"antialiased"},children:[a.a._("More information","bestpincard.vasetags.moreinformation","Link to show more information modal"),"..."]})})]}):null,contentHeight:k,contentWidth:C,modal:Object(g.jsx)("div",{style:{visibility:j?"":"hidden"},children:Object(g.jsx)(l.a,{pin:m,closeButtonClickHandler:O})}),pageType:{isAuth:!1,page:n},pin:m,showCardShadow:"closeup"===n,showSignupModal:T,viewportSize:_,children:e({width:C,height:k,showModal:j})})}},"+jF9":function(e,t,n){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n("pYMm"),r=n("fOPN"),a=n("LTlA"),s={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};t.default=function(e,t){void 0===e&&(e=s);var n=t.payload;switch(t.type){case o.BEGIN_DRAG:return i({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case o.PUBLISH_DRAG_SOURCE:return i({},e,{isSourcePublic:!0});case o.HOVER:return i({},e,{targetIds:n.targetIds});case r.REMOVE_TARGET:return-1===e.targetIds.indexOf(n.targetId)?e:i({},e,{targetIds:a.without(e.targetIds,n.targetId)});case o.DROP:return i({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case o.END_DRAG:return i({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}},"+k3R":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i]}},"/Ecc":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("bVT4");t.isFirefox=i.memoize((function(){return/firefox/i.test(navigator.userAgent)})),t.isSafari=i.memoize((function(){return Boolean(window.safari)}))},"/MAO":function(e,t,n){var i=n("q1tI"),o=n("/MKj"),r=n("FDmi"),a=n("TSYQ"),s=n.n(a),c=n("pSwN"),l=n("qD10"),d=n("n6mq"),u=n("ZVOf"),p=n("U4JR"),h=n("nKUr");t.a=Object(o.connect)(null,(function(e){return{follow:t=>e(Object(u.a)(t)),unfollow:t=>e(Object(u.c)(t))}}))((function({className:e,follow:t,isSelf:n,logData:o,showName:a=!1,showFollow:u=!1,size:g="small",subtitle:m="",title:f,unfollow:b,user:_={}}){const[j,y]=Object(i.useState)(_.explicitly_followed_by_me||!1),{full_name:v,username:O}=_,x=_.image_key||_.image_medium_url||_.image_small_url;return Object(h.jsx)("div",{className:s()("Module","User","hasText","thumb",g,e),children:Object(h.jsxs)(d.f,{alignItems:"center",direction:"row",display:"flex",marginStart:-1,marginEnd:-1,paddingY:1,children:[Object(h.jsx)(d.f,{flex:"grow",paddingX:1,children:Object(h.jsx)(l.a,{className:"profileSource",to:`/${O}/`,children:Object(h.jsxs)(d.f,{display:"flex",children:[Object(h.jsx)("div",{className:"thumbImageWrapper",children:Object(h.jsx)(r.a,{name:v,src:x,size:"fit"})}),f&&Object(h.jsx)("h3",{className:"title",children:f}),a&&Object(h.jsx)("h4",{className:"fullname",children:v}),m&&Object(h.jsx)("div",{className:"subtitle",children:m})]})})}),u&&Object(h.jsx)(d.f,{paddingX:1,children:Object(h.jsx)(c.a,{handleFollowClick:()=>{j?(b(_.id),y(!1)):(t(_.id),y(!0)),o&&Object(p.b)(101,o)},isFollowing:j,isSelf:Boolean(n)})})]})})}))},"/X16":function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));const i={USER_FOLLOW:"USER_FOLLOW"},o={USER_BLOCK:"USER_BLOCK"}},"/ZYE":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("q1tI"),o=n("493B");t.useMonitorOutput=function(e,t,n){var r=o.useCollector(e,t,n),a=r[0],s=r[1];return i.useEffect((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(s,{handlerIds:[t]})}),[e,s]),a}},"/acK":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("q1tI"),o=n("SFi7"),r=n("2S0S");t.useDragDropManager=function(){var e=i.useContext(o.context).dragDropManager;return r(null!=e,"Expected drag drop context"),e}},"/vD9":function(e,t,n){n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h}));var i=n("Ye/N"),o=n("n6mq"),r=n("nKUr");const a=e=>Math.floor((e-64)/236),s=e=>Math.floor(e/350),c=[],l=(e,t)=>{const n=t%2==0&&e%2==0||t%2!=0&&e%2!=0;return{pinGridHeight:n?300:400,pinGridMarginTop:n?10:-90}},d=(e,t,n)=>{const i=[];for(let o=0;o<s(n);o+=1)for(let n=0;n<a(t);n+=1){const{pinGridHeight:t,pinGridMarginTop:r}=l(n,o);i.push({name:`${e}__${o}_${n}`,width:236,height:t}),c.push(r)}return i},u=(e,t,n)=>{let i=0;return e>0&&(i=c[e*a(n)+t]),i+"px"},p=(e,t,n)=>Array(s(n)).fill(null).map((n,i)=>Object(r.jsx)(o.f,{display:"flex",direction:"row",wrap:!0,justifyContent:"center",children:Array(a(t)).fill(null).map((n,a)=>Object(r.jsx)(o.f,{marginEnd:3,dangerouslySetInlineStyle:{__style:{marginTop:u(i,a,t)}},children:Object(r.jsx)("div",{className:`${e}__${i}_${a}`})},`pin_${i}_${a}`))},"pin_grid_row_"+i)),h=(e,t=!0,n="lightGray",a,s)=>Object(r.jsx)(o.f,{display:"flex",direction:"column",marginTop:4,height:800,children:Object(r.jsxs)("div",{style:{color:n},children:[t&&Object(r.jsx)(o.f,{marginBottom:6,marginStart:2,children:Object(r.jsx)("h2",{className:"gridCentered",style:{textAlign:"center",color:"#555555"},children:i.a._("People also love these ideas","Heading for Related Pins beneath pin closeup","Heading for Related Pins beneath pin closeup")})}),Object(r.jsx)("div",{className:"gridCentered",children:p(e,a,s)})]})}),g=e=>Object(r.jsx)(o.f,{rounding:2,color:e?"red":"lightGray",width:140,height:40});t.a=()=>Object(r.jsxs)(o.f,{display:"flex",direction:"column",color:"white",height:64,width:"100%",children:[Object(r.jsxs)(o.f,{display:"flex",direction:"row",alignItems:"center",marginTop:3,marginBottom:3,marginStart:4,marginEnd:4,color:"white",children:[Object(r.jsx)(o.f,{children:Object(r.jsx)(o.v,{icon:"pinterest",color:"red",inline:!0,size:30,accessibilityLabel:i.a._("Pinterest logo","Company logo in pin page loader","Company logo in pin page loader")})}),Object(r.jsx)(o.f,{marginStart:4,marginEnd:4,children:Object(r.jsx)(o.cb,{color:"darkGray",inline:!0,weight:"bold",children:i.a._("Pinterest","Company label in pin page loader","Company label in pin page loader")})}),Object(r.jsx)(o.f,{flex:"grow",color:"lightGray",rounding:2,height:40}),Object(r.jsx)(o.f,{marginStart:3,children:g(!0)}),Object(r.jsx)(o.f,{marginStart:2,marginEnd:3,children:g(!1)})]}),Object(r.jsx)(o.p,{})]})},"0/lC":function(e,t,n){function i(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const n=[];let i,o;for(i=0;i<=t.length;i+=1)n[i]=[i];for(o=0;o<=e.length;o+=1)n[0][o]=o;for(i=1;i<=t.length;i+=1)for(o=1;o<=e.length;o+=1)t.charAt(i-1)===e.charAt(o-1)?n[i][o]=n[i-1][o-1]:n[i][o]=Math.min(n[i-1][o-1]+1,Math.min(n[i][o-1]+1,n[i-1][o]+1));return n[t.length][e.length]}n.d(t,"a",(function(){return i}))},"0K1N":function(e,t,n){t.a=e=>`//connect.facebook.net/${(e=>{const t=e.replace(/-/g,"_");if(t.startsWith("es"))return"es_LA";if(t.startsWith("ar"))return"ar_AR";switch(t){case"de":return"de_DE";case"fr":return"fr_FR";case"it":return"it_IT";case"ja":return"ja_JP";case"nl":return"nl_NL";case"tr":return"tr_TR";case"en_AU":return"en_US";default:return t}})(e)}/sdk.js`},"0LLM":function(e,t,n){n.d(t,"a",(function(){return r}));var i=n("n6mq"),o=n("nKUr");function r({color:e="gray",handleClick:t,size:n="sm",text:r}){return Object(o.jsx)(i.f,{display:"inlineBlock",children:Object(o.jsx)(i.bb,{onTap:t,rounding:"pill",children:Object(o.jsx)(i.cb,{color:e,size:n,weight:"bold",children:r})})})}},"0XI0":function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("P6Mj");function o(){return Object(i.a)()+"\n.PinCredit__image:after {\n  border-radius: 50%;\n  -webkit-box-shadow: 0 0 2px rgba(0,0,0,0.33) inset;\n  box-shadow: 0 0 2px rgba(0,0,0,0.33) inset;\n  content: ' ';\n  height: 30px;\n  left: 0;\n  position: absolute;\n  top: 0;\n  width: 30px;}\n"}},"0iut":function(e,t,n){n.d(t,"a",(function(){return i}));function i(e,t){const n=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>|<!--[\s\S]*/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,(e,t)=>n.indexOf("<"+t.toLowerCase()+">")>-1?e:"")}t.b=e=>e.replace(/(<([^>]+)>)/gi,"")},"0rqB":function(e,t,n){n.d(t,"a",(function(){return d}));var i=n("q1tI"),o=n("clxp"),r=n("n6mq"),a=n("nKUr");function s({children:e,group:t,isEligible:n,name:i,performsActivate:o}){let s=o?"#0f0":"#00f";return n||(s="#999"),Object(a.jsxs)(r.f,{position:"relative",children:[e,Object(a.jsx)(r.f,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,dangerouslySetInlineStyle:{__style:{boxShadow:"0 0 2px 2px "+s,borderRadius:5}}}),Object(a.jsxs)(r.f,{position:"absolute",top:!0,left:!0,color:"lightGray",children:[i,": ",t]})]})}var c=n("NVsV");const l=Object(i.memo)(({activate:e=!0,activateExperiment:t,isEligible:n=!0,name:r,group:c,overrideGroup:l=null,highlighted:d=!1,children:u})=>{Object(i.useEffect)(()=>{e&&n&&t&&t(r)},[]);const p=()=>"string"==typeof l?l:c,h=p(),g=`Experiment(${r}:${h})`,m=n&&h&&(h.startsWith("enabled")||h.startsWith("employee"))||!1,f={group:n?h:"",anyEnabled:m,customActivate:n&&!e?()=>n?t(r):"":null};return(t=>{const i=p();return d?Object(a.jsx)(s,{group:i,isEligible:n,name:r,performsActivate:e,children:t}):t})(Object(a.jsx)(o.a,{name:g,children:u(f)}))});function d(e){const{name:t}=e,{debuggingEnabled:n,overriddenExperiments:o,highlightedExperiment:r,setExperimentVisible:s}=Object(i.useContext)(c.c),d=n&&o&&"string"==typeof o[t]?o[t]:null,u=n&&(r===t||r===c.a);return Object(i.useEffect)(()=>{if(n)return s(t,!0),()=>s(t,!1)},[t,n]),Object(a.jsx)(l,{...e,overrideGroup:d,highlighted:u})}},"0x0l":function(e,t,n){var i=n("eOdZ");t.a=({usernameOrEmail:e,logPasswordResetContextEvent:t,callBack:n,ErrorCallback:o})=>{t&&t(6936),i.a.create("UserResetPasswordResource",{username_or_email:e}).callCreate({showError:!1}).then(e=>{t&&t(51),n&&n()},e=>{o&&o(e)})}},"1CXt":function(e,t,n){t.a=e=>"UNAUTH"===e?Object.freeze({}):{login_state:"LIMITED_LOGIN"===e?2:1}},"1IOU":function(e,t,n){String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e})},"1L7e":function(e,t,n){n.d(t,"a",(function(){return m}));var i=n("wig9"),o=n.n(i),r=n("yaUg"),a=n("TYy9"),s=n.n(a),c=n("Ye/N"),l=n("n6mq"),d=n("nKUr");function u({category:e,ingredients:t,textSize:n="lg"}){return Object(d.jsxs)(l.f,{children:[e&&Object(d.jsx)(l.f,{children:Object(d.jsx)(l.cb,{weight:"bold",size:n,children:e})}),Object(d.jsx)("ul",{children:t.map((e,t)=>Object(d.jsx)("li",{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",children:Object(d.jsx)(l.f,{marginTop:1,children:Object(d.jsxs)(l.cb,{size:n,children:[e.amt||null," ",e.name]})})},t))})]})}var p=n("IG/j"),h=n("QqZJ"),g=n("/zJj");function m({recipeProps:e,marginOverrides:t}){const{image:n,name:i,categorizedIngredients:a,fromAggregatedData:m}=e.recipe;let f;if(a&&a.length){const e=[];a.forEach(t=>e.push(t.ingredients));const t=s()(o()(e)).length;f=a&&a.length&&t?Object(r.a)(c.a.ngettext("{{ count }} ingredient","{{ count }} ingredients",t,"Ingredients title and count in closeup recipe description","Ingredients title and count in closeup recipe description"),{count:t.toString()}):c.a._("Ingredients","Ingredients title and count in closeup recipe description","Ingredients title and count in closeup recipe description")}return Object(d.jsx)(l.f,{dangerouslySetInlineStyle:{__style:{marginTop:(null==t?void 0:t.outerMarginTop)||80}},children:Object(d.jsxs)(h.a,{itemScope:!0,itemType:g.g.RECIPE,children:[Object(d.jsx)("meta",{content:i,itemProp:"name"}),Object(d.jsx)("meta",{content:n,itemProp:"image"}),Object(d.jsx)(l.f,{"data-test-id":"ingredients-heading",marginBottom:4,children:Object(d.jsx)(l.u,{size:"sm",children:m?i:f})}),Array.isArray(a)&&a.length>0&&(1===a.length?Object(d.jsx)(l.f,{column:12,"data-test-id":"single-column-ingredients",children:a.map(({category:e,ingredients:n},i)=>Object(d.jsx)(l.f,{marginBottom:(null==t?void 0:t.ingredientMarginBottom)||2,children:Object(d.jsx)(u,{category:e,ingredients:n,textSize:"sm"})},i))}):Object(d.jsxs)(l.f,{display:"flex","data-test-id":"dual-column-ingredients",children:[Object(d.jsx)(l.f,{column:6,children:a.slice(0,Math.ceil(a.length/2)).map(({category:e,ingredients:n},i)=>Object(d.jsx)(l.f,{marginBottom:(null==t?void 0:t.ingredientMarginBottom)||2,children:Object(d.jsx)(u,{category:e,ingredients:n,textSize:"sm"})},i))}),Object(d.jsx)(p.a,{}),Object(d.jsx)(l.f,{column:6,children:a.slice(Math.ceil(a.length/2)).map(({category:e,ingredients:n},i)=>Object(d.jsx)(l.f,{marginBottom:(null==t?void 0:t.ingredientMarginBottom)||2,children:Object(d.jsx)(u,{category:e,ingredients:n,textSize:"sm"})},i))})]}))]})})}},"1WeU":function(e,t,n){n.d(t,"a",(function(){return O}));var i=n("q1tI"),o=n("yaUg"),r=n("Ye/N"),a=n("28DW"),s=n("n6mq"),c=n("nKUr");const l={container:{backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:"16px",height:"32px",maxWidth:"240px",position:"relative"},containerRectangle:{height:"32px",position:"relative"},text:{color:"#333333"}};function d({pin:e,handleLinkClickthrough:t,containerStyleOverride:n=null,inFocusedPinExperiment:i=!1}){const{domain:d,link:u}=e;return u&&d?Object(c.jsx)("div",{className:"imageDomainLinkHover",style:i?l.containerRectangle:l.container,"data-test-id":"clickthrough-link",children:Object(c.jsx)("a",{href:u,rel:"nofollow noopener noreferrer",target:"_blank",type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),window.open(u),Object(a.h)("click_topic_best_pin_link"),Object(a.i)({action:"click",page:"pin",item:"clickthrough-link",within:"closeup-image"}),t&&t(e)},children:Object(c.jsxs)(s.f,{alignItems:i?"center":"baseline",dangerouslySetInlineStyle:{__style:n||l.text},display:"flex",justifyContent:"between",direction:i?"column":"row",children:[!i&&Object(c.jsx)(s.f,{display:"flex",flex:"none",marginTop:3,marginBottom:3,marginStart:3,children:Object(c.jsx)(s.v,{accessibilityLabel:r.a._("link","Website url link","Website url link"),color:"darkGray",icon:"arrow-up-right",size:9})}),Object(c.jsx)(s.f,{alignItems:"center",display:"flex",height:i?32:18,marginStart:2,marginEnd:3,overflow:"hidden",maxWidth:"90%",children:Object(c.jsx)(s.cb,{color:i?"white":"darkGray",size:i?"sm":"md",weight:"bold",truncate:!0,children:i?Object(o.a)(r.a._("Learn more at {{ domain }}"),{domain:d}):d})})]})})}):null}var u=n("3wQ7"),p=n("XZ+i");var h=({washOnly:e=!1})=>{const{showSignupModal:t}=Object(p.c)();return Object(c.jsx)(s.bb,{onTap:({event:e})=>{Object(a.a)("web.unauth.hover_conversion.click"),t&&(e.preventDefault(),t("signup",{source:"defaultSource",container:"pinWash"}))},disabled:e,children:Object(c.jsx)(s.f,{top:!0,bottom:!0,left:!0,right:!0,width:"100%",height:"100%",display:"flex",alignItems:"center",direction:"column",color:"lightWash",position:"absolute",rounding:8,dangerouslySetInlineStyle:{__style:{background:"rgba(0, 0, 0, 0.3)"}},children:!e&&Object(c.jsx)(s.f,{paddingY:10,display:"flex",alignItems:"center",maxWidth:240,direction:"column",children:Object(c.jsx)(s.f,{marginTop:8,children:Object(c.jsx)(s.u,{size:"sm",align:"center",color:"white",children:r.a._("Click to make the most out of this idea with a free account","web.unauth.plp.clickable_wash.header","Copy shown on hover to sign up for an account")})})})})})},g=n("2WXK"),m=n("wzxk"),f=n("fNKF"),b=n("6AVr"),_=n("QAzJ");const j={cursor:"pointer",bottom:"0px",left:"0px",right:"0px",top:"0px",position:"absolute",pointerEvents:"none",opacity:.55,backgroundColor:"#000",WebkitTransition:"opacity .04s linear",transition:"opacity .04s linear"};const y=Object(i.memo)((function({children:e,isHovering:t,link:n}){if(!n)return Object(c.jsx)("div",{children:e});const{href:o,title:r,onClick:a}=n;return Object(c.jsx)("a",{href:o,onClick:a,title:r,rel:"noopener noreferrer",target:"_blank",children:Object(c.jsxs)("div",{children:[e,t&&Object(c.jsxs)(i.Fragment,{children:[Object(c.jsx)("div",{style:j}),Object(c.jsx)(u.a,{handleImageClick:()=>{}})]})]})})}),(e,t)=>e.link===t.link&&e.isHovering===t.isHovering&&e.children===t.children),v=16;function O({clickthroughHandler:e,fullImgHeight:t,imageLink:n,isCloseupMainImage:o=!1,letterBoxHeight:l,letterBoxWidth:u,onImageLoad:j,pageType:O,pin:x,srcSet:w}){const{isHovering:S,hoverHandlers:{onMouseOver:C,onMouseLeave:k}}=Object(g.a)(),T=Object(i.useRef)(),[E,I]=Object(i.useState)(v),{relatedPinsStickyDismissed:P,setPinImageViewerOpen:D,setRelatedPinsStickyDismissed:A}=Object(p.c)(),{anyEnabled:L,group:R}=Object(_.a)("dweb_lop_pin_image_viewer"),M=x&&x.images&&(x.images[o?"orig":"474x"]||x.images.orig).url,F=S&&o&&(!P||L),N=()=>{if(!S)return;const e=document.getElementById(b.a);if(e&&T.current){var t;const n=e.getBoundingClientRect(),i=null===(t=T.current)||void 0===t?void 0:t.getBoundingClientRect(),o=((null==i?void 0:i.bottom)||0)-n.top;I(o>0?Math.abs(Math.round(o))+v:v)}};if(Object(i.useEffect)(()=>(S&&(Object(a.j)("web.unauth.main_pin_image_hover"),Object(a.i)({action:"hover",page:"pin",item:"closeup-image"})),window.addEventListener("scroll",N),N(),()=>{window.removeEventListener("scroll",N)}),[S]),Object(i.useEffect)(()=>{P&&E!==v&&I(v)},[P]),!x||!x.images)return null;return Object(c.jsxs)("div",{onMouseOver:C,onMouseLeave:k,onFocus:C,onBlur:k,onClick:e=>{Object(a.j)("web.unauth.main_pin_image_click"),Object(a.i)({action:"click",page:"pin",item:"closeup-image"})},style:{position:"relative"},role:"button",tabIndex:"0","data-test-id":"closeup-image",children:[Object(c.jsx)(y,{link:n,isHovering:S,children:Object(c.jsx)(s.f,{width:u,height:t||l,ref:T,children:Object(c.jsx)("img",{alt:Object(m.a)(x.description,x.description_html,x.pin_join),style:{objectFit:"cover",height:t||l,width:u,borderRadius:"closeup"===(null==O?void 0:O.page)?32:""},src:M,srcSet:w&&!t?Object(f.a)(x,w):void 0,onLoad:j})})}),S&&Object(c.jsxs)(i.Fragment,{children:[o&&Object(c.jsx)(h,{washOnly:(t||0)<250}),Object(c.jsx)(s.f,{alignItems:"center",display:"flex",position:"absolute",margin:o?0:5,width:"100%",dangerouslySetInlineStyle:{__style:{bottom:E+"px",paddingLeft:v,transition:"bottom 0.25s"}},children:Object(c.jsxs)(s.f,{flex:o?"grow":"shrink",display:"flex",alignItems:"center",justifyContent:"between",children:[o&&Object(c.jsx)(d,{pin:x,handleLinkClickthrough:e}),F&&Object(c.jsx)(s.f,{paddingX:4,display:"flex",children:Object(c.jsx)(s.f,{paddingX:1,display:"flex","data-test-id":"main-pin-expand-button",children:Object(c.jsx)(s.w,{iconColor:"darkGray",accessibilityLabel:r.a._("Maximize","unauth.wash.main_pin.maximize","maximize button for unauth pin"),bgColor:"lightGray",size:"sm",onClick:()=>{Object(a.j)("web.unauth.main_pin_image.maximize"),Object(a.i)({action:"click",page:"pin",item:"main-pin-expand-button"}),L&&(D(!0,x),R.includes("no_expand"))||(A(!0),I(v))},icon:"maximize"})})})]})})]})]})}},"1tpI":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.isDisposed=!1}return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}},e}();t.SerialDisposable=i},"2K7C":function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("yweb"),o=n("n6mq"),r=n("nKUr");function a(){const e=Object(i.c)();return Object(r.jsx)(o.f,{display:"flex",justifyContent:"center",alignItems:"center",children:Object(r.jsx)(o.U,{accessibilityLabel:e._("Loading editor","EditorWithMentionsFallback.loading","Message shown while waiting for the editor to load"),show:!0})})}},"2MPc":function(e,t,n){var i=n("JW66"),o=n("QLqj"),r=n("28DW");const a={logUrlAndFirstPinImageSig(e){if(o.b.localStorage.getItem("lastVisitedPage")===window.location.pathname)return;const t={path:window.location.pathname,ts:Date.now(),first_pin_image_signature:e||""};o.b.localStorage.prependItem("visitedPages",t,i.a.MAX_STORED_VISITED_PAGES),o.b.sessionStorage.prependItem("sessionVisitedPages",t,i.a.MAX_STORED_VISITED_PAGES),Object(r.a)("unauth.web.session.visited_pins."+(o.b.sessionStorage.getItem("sessionVisitedPages")||[]).length),o.b.localStorage.prependItem("visitedPagesBeforeLogin",t,i.a.MAX_STORED_VISITED_PAGES);try{o.b.localStorage.setItem("lastVisitedPage",window.location.pathname)}catch(n){console.error(n)}},logLastVisitedPinLandingPage(e,t){if(!e)return;const n=o.b.localStorage.getItem("visitedPinLandingPagesBeforeLogin");if(n)for(const i of n)if(i&&i.id===e.id)return;const r={ts:Date.now(),path:window.location.pathname,id:e.id,image_signature:e.image_signature,is_shared_pin:t};o.b.localStorage.prependItem("visitedPinLandingPagesBeforeLogin",r,i.a.MAX_STORED_VISITED_PIN_PAGES)},logLastVisitedBoardLandingPage(e){if(!e||!e.board)return;const t=o.b.localStorage.getItem("visitedBoardLandingPagesBeforeLogin");if(t)for(const i of t)if(i&&i.board_id===e.board.id)return;const n={ts:Date.now(),board_id:e.board.id,first_pin_id:e.id,first_pin_image_signature:e.image_signature};o.b.localStorage.prependItem("visitedBoardLandingPagesBeforeLogin",n,i.a.MAX_STORED_VISITED_PIN_PAGES)},logPinCTAClick(e){o.b.localStorage.prependItem("visitedPages",{path:e,ts:Date.now(),actions:[1]},i.a.MAX_STORED_VISITED_PAGES)},logUnauthPins(e,t=!0){if(e.length)try{o.b.localStorage.setItem("unauthPins",e),t&&o.b.sessionStorage.prependItem("sessionUnauthPins",e[0])}catch(n){console.error(n)}},getUnauthPins:()=>o.b.localStorage.getItem("unauthPins")||[],getUnauthSessionsPins:()=>o.b.sessionStorage.getItem("sessionUnauthPins")||[]};t.a=a},"2S0S":function(e,t,n){e.exports=function(e,t,n,i,o,r,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,r,a,s],d=0;(c=new Error(t.replace(/%s/g,(function(){return l[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},"2WXK":function(e,t,n){var i=n("q1tI");let o=null,r=!1,a=0;const s=()=>{o&&clearTimeout(o),r=!0,o=setTimeout(()=>{r=!1},100)};t.a=()=>{const[e,t]=Object(i.useState)(!1),n=Object(i.useRef)(null);Object(i.useEffect)(()=>(0===a&&window.addEventListener("scroll",s),a+=1,()=>{n.current&&clearTimeout(n.current),a-=1,a||window.removeEventListener("scroll",s)}),[]);const o=e=>{n.current&&clearTimeout(n.current),n.current=e&&r?setTimeout(()=>o(!0),100):setTimeout(()=>{t(e)},32)};return{isHovering:e,hoverHandlers:Object(i.useRef)({onMouseOver:()=>o(!0),onMouseLeave:()=>o(!1)}).current}}},"2hay":function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return u})),n.d(t,"i",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"c",(function(){return g}));var i=n("0K1N"),o=n("37no");const r="274266067164",a=["picture.type(large)","id","first_name","last_name","email","gender","birthday"],s=["public_profile","email","user_likes","user_birthday","user_friends"],c=()=>{"undefined"!=typeof window&&window.FB&&window.FB.init({appId:r,status:!0,xfbml:!0,version:"v2.7"})},l=e=>Object(o.c)(Object(i.a)(e),o.a.FACEBOOK).then(c),d=()=>new Promise(e=>{"undefined"!=typeof window&&window.FB&&window.FB.getLoginStatus(e)}),u=(e,t={},n)=>new Promise((i,o)=>{if("connected"===e.status){n&&n("success");const{authResponse:{userID:o,accessToken:r}}=e,s={facebook_id:o,facebook_token:r,facebook_autologin:t.autologin||!1},c="/me?fields="+a.join(",");window.FB.api(c,e=>{i({creds:s,data:{...e,...s,...e.picture&&!e.picture.data.is_silhouette?{image_url:e.picture.data.url}:{}}})})}else{const t=e.status||"unknown";n&&n("failure."+t),o({status:t})}}),p=(e,t)=>{const n=e.data;e.isTrusted&&"string"==typeof n&&0===n.indexOf("_FB_")&&-1!==n.indexOf("type=login_button_dialog_open")&&t&&t("facebook_connect.login_button_dialog_open")},h=()=>new Promise(e=>{window.FB.login(e,{scope:s.join(",")})}).then(u),g=e=>new Promise((t,n)=>{window.FB.api("/me/permissions",i=>{const o=i.data;if(o){const n=o.find(t=>t.permission===e&&"granted"===t.status);return t({hasPerm:!!n})}return n(Error("Failed to call facebook to get permission"))})})},"2i+x":function(e,t,n){n.d(t,"a",(function(){return i}));const i=e=>{const{thumbnail:t,url:n,width:i,height:o,duration:r}=e||{};return t&&n&&i&&o&&{thumbnail:t,url:n,width:i,height:o,duration:r}||void 0}},"2qKt":function(e,t,n){var i=n("q1tI"),o=n("/MKj"),r=n("Y+p1"),a=n.n(r),s=n("Vzit"),c=n("vh5K"),l=n("pLLR"),d=n("ANjH"),u=n("nKUr");function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h={shouldUsePlacedExperience:!0,dispatchMountActionDuringSSR:!1,isAdvertiserPlacement:!1};t.a=(e,t={},n)=>r=>{const g=function(e){return t=>({experience:t.experiences.eligibleExperiences[e],experiencesMulti:t.experiences.experiencesMulti?t.experiences.experiencesMulti[e]:void 0})}(e);n={...h,...n};const m=function(e,t,n=!0,o=!0,r=!1,l){var d,h;return h=d=class extends i.Component{constructor(e){super(e),p(this,"state",{extraContext:void 0}),p(this,"setExtraContextState",e=>{a()(this.state.extraContext,e)||this.setState({extraContext:e})})}componentDidMount(){this.dispatchPlacementMount()}componentDidUpdate(n,i){const{dispatch:o,experience:r}=this.props;let c=i.extraContext,l=this.state.extraContext||t||{};"function"==typeof t&&(c=t(n,i.extraContext||{}),l=t(this.props,this.state.extraContext||{})),l&&Object.keys(l).length>0&&!a()(c,l)&&o(Object(s.c)(e,l)),!r||n.experience&&r.id===n.experience.id||o(Object(s.k)(e,l))}componentWillUnmount(){const{dispatch:t}=this.props;t(Object(s.m)(e))}dispatchPlacementMount(){const{dispatch:n}=this.props,i="function"==typeof t?t(this.props,this.state.extraContext||{}):{...t},o=r&&null!=i&&i.advertiser_id?{advertiserId:i.advertiser_id}:void 0;n(Object(s.l)(e,i,o))}render(){const{experience:e,experiencesMulti:t}=this.props,n={[r?"advertiserExperience":"experience"]:Object(c.e)(e)?e:null};return Object(u.jsx)(l,{...this.props,setPlacementExtraContext:this.setExtraContextState,...n,experiencesMulti:t})}},p(d,"displayName",`withPlacement(${l.displayName||l.name||"Component"})`),h}(e,t,n.shouldUsePlacedExperience,n.dispatchMountActionDuringSSR,n.isAdvertiserPlacement,r);return Object(d.compose)(l.e,Object(o.connect)(g))(m)}},"2y2F":function(e,t,n){function i(e){return"US"===e||"GB"===e||"UK"===e}function o(e){return"US"===e}function r(e){return"JP"===e}function a(e){return"GB"===e||"UK"===e}function s(e){return 1===e||2===e||"US"===e||"GB"===e}function c(e){return 1===e||"US"===e}n.d(t,"f",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c}))},"37no":function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var i=n("7w6Q");const o=.01,r=Object.freeze({OTHER:0,FACEBOOK:1,GPLUS_ONE:2,GSI:3});function a(e){return new Promise((t,n)=>{if(document.querySelector(`script[src="${e}"]`))return void t();const i=document.createElement("script");i.src=e,i.async=!0,i.addEventListener("load",t),i.addEventListener("error",n),document.getElementsByTagName("head")[0].appendChild(i)})}function s(e,t=r.OTHER,n=!1){const a=n?"web":"mweb";return new Promise((n,s)=>{if(document.querySelector(`script[src="${e}"]`)){let e=0;if(t===r.GPLUS_ONE)if(window.gapi)n();else{const t=setInterval(()=>{window.gapi||20===e?(clearInterval(t),n()):(e+=1,i.a.increment(`${a}.loadScript.gplus_one.tries_${e}`,o))},100)}else if(t===r.FACEBOOK)if(window.FB)n();else{const t=setInterval(()=>{window.FB||20===e?(clearInterval(t),n()):(e+=1,i.a.increment(`${a}.loadScript.facebook.tries_${e}`,o))},100)}else if(t===r.GSI)if(window.google)n();else{const t=setInterval(()=>{window.google||20===e?(clearInterval(t),n()):(e+=1,i.a.increment(`${a}.loadScript.gsi.tries_${e}`,o))},100)}else n()}else{const t=document.createElement("script");t.src=e,t.async=!0,t.addEventListener("load",n),t.addEventListener("error",s),document.getElementsByTagName("head")[0].appendChild(t)}})}},"3UD+":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"3a2J":function(e,t,n){n.d(t,"a",(function(){return w}));var i=n("q1tI"),o=n("Ctgr"),r=n("Ye/N"),a=n("CxY0"),s=n.n(a),c=n("zwad"),l=n("YxyV"),d=n("n6mq"),u=n("U4JR"),p=n("28DW"),h=n("szi8"),g=n("pLLR"),m=n("iMWs"),f=n("nKUr");function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _="RIGHT",j="LEFT",y=Object(l.f)(),v=e=>{e.preventDefault(),e.stopPropagation()},O={gradientLeft:{display:"block",background:"-webkit-linear-gradient(left, rgba(255,255,255,1) 25%,rgba(255,255,255,0) 100%)",height:"30px",left:"0px",top:"0px",position:"absolute",width:"45px",lineHeight:"25px",paddingLeft:"4px",paddingTop:"2px"},gradientRight:{background:"-webkit-linear-gradient(right, rgba(255,255,255,1) 25%,rgba(255,255,255,0) 100%)",height:"30px",right:"0px",top:"0px",position:"absolute",width:"45px",textAlign:"right",lineHeight:"25px",paddingRight:"4px",paddingTop:"2px"},carouselWrapper:{overflow:"scroll",whiteSpace:"nowrap",padding:"3px 0 22px 0"},carouselContainer:{height:y.vaseCarouselHeight+"px"},carouselTag:{backgroundColor:"#ebebe8",borderRadius:"5px",color:"#333",display:"inline-block",fontSize:"9px",fontWeight:"bold",margin:"0 5px 0 0",padding:"7px 7px",whiteSpace:"nowrap",wordWrap:"break-word"},carouselTagUnclickable:{cursor:"default"}};class x extends i.Component{constructor(...e){super(...e),b(this,"state",{scrollTo:0,scrollMin:!0,scrollMax:!1}),b(this,"tags",[])}componentDidMount(){this.handleScroll(),this.wrapper.addEventListener("scroll",this.handleScroll.bind(this))}componentDidUpdate(){this.wrapper.scrollLeft=this.state.scrollTo}componentWillUnmount(){this.wrapper.removeEventListener("scroll",this.handleScroll.bind(this))}handleTagClick(e,t){const{unauthContext:n,pageContext:i}=this.props,{currentUrl:o}=n;Object(u.b)(101,{element:1116,component:165,unauth_vase_tag:e,unauth_vase_tag_image_sig:this.props.image_signature,unauth_page_type:null==i?void 0:i.pageType,unauth_page_id:c.a.getUnauthPageId((null==i?void 0:i.pageType)||"",o)}),Object(p.h)("click_vase_tag",!0),Object(p.i)({action:"click",page:"pin",item:"vase-tag"}),t.stopPropagation()}handleScroll(){const e=Math.round(this.wrapper.scrollLeft),t=0===e,n=e+this.wrapper.clientWidth>=this.wrapper.scrollWidth;this.setState({scrollTo:e,scrollMin:t,scrollMax:n})}handleArrowClick(e,t){t.preventDefault(),t.stopPropagation();const n=Math.round(this.wrapper.scrollLeft),i=this.tags.map(e=>e.offsetLeft-12);let o;e===_?o=i.find(e=>e>n+4):e===j&&(o=i.reverse().find(e=>e<n-4)),this.setState({scrollTo:o})}renderPlainTag(e,t,n){const i=this.props.carouselTagColor?{backgroundColor:this.props.carouselTagColor}:null;return Object(f.jsx)("a",{href:"",onClick:v,ref:n.bind(this,t),className:"vaseCarousel_vaseTag vaseCarousel_vaseTagLabel",style:{...this.props.pillStyleOverride||i,...O.carouselTagUnclickable},"data-test-id":"vase-tag",children:Object(o.a)(e)},t)}renderTagWithLink(e,t,n){const{unauthContext:i}=this.props,{currentUrl:r}=i,a=r&&s.a.parse(r).pathname||"",c=this.props.carouselTagColor?{backgroundColor:this.props.carouselTagColor}:null,{styleOverrides:l}=this.props,d=l&&l.hoverSetFalseBackgroundColor?l.hoverSetFalseBackgroundColor:"#ebebe8",u=e=>e.target.style["background-color"]="#E2E2E2",p=e=>e.target.style["background-color"]=d;return e.name?a!==e.url&&e.url?Object(f.jsx)("a",{onMouseOver:u,onMouseLeave:p,onFocus:u,onBlur:p,style:this.props.pillStyleOverride||c,href:e.url,onClick:t=>this.handleTagClick(e.name,t),ref:n.bind(this,t),className:"vaseCarousel_vaseTag vaseCarousel_vaseTagLink",target:this.props.openInCurrentTab?"_self":"_blank","data-test-id":"vase-tag",children:Object(o.a)(e.name)},t):this.renderPlainTag(e.name,t,n):null}renderTags(){const{annotationsWithLinks:e}=this.props,t=(e,t)=>{this.tags[e]=t};return e&&e.length>0?e.map((e,n)=>this.renderTagWithLink(e,n,t)):null}render(){const{styleOverrides:e}=this.props,t=e&&e.gradientLeft?{...e.gradientLeft}:null,n=e&&e.gradientRight?{...e.gradientRight}:null;return Object(f.jsx)("div",{className:"vaseCarousel_vasetags_container",style:O.carouselContainer,"data-test-id":"vasetags",children:Object(f.jsxs)("div",{ref:e=>{this.wrapper=e},className:"vaseCarousel_vasetags_wrapper",children:[this.renderTags(),this.state.scrollMin?null:Object(f.jsx)("a",{"data-test-id":"vase-carousel-left-button",href:"",onClick:this.handleArrowClick.bind(this,j),style:t,className:"VaseCarousel__button VaseCarousel__buttonLeft",children:Object(f.jsx)(d.v,{accessibilityLabel:r.a._("Back","Accessible label for the carousel back icon","Accessible label for the carousel back icon"),icon:"arrow-back",inline:!0,size:8})}),this.state.scrollMax?null:Object(f.jsx)("a",{"data-test-id":"vase-carousel-right-button",href:"",onClick:this.handleArrowClick.bind(this,_),style:n,className:"VaseCarousel__button VaseCarousel__buttonRight",children:Object(f.jsx)(d.v,{accessibilityLabel:r.a._("Forward","Accessible label for the carousel forward icon","Accessible label for the carousel forward icon"),icon:"arrow-forward",inline:!0,size:8})})]})})}}function w(e){const t=Object(g.d)(),n=Object(h.b)(),i=Object(m.b)();return Object(f.jsx)(x,{...e,requestContext:t,unauthContext:n,pageContext:i})}},"3eT9":function(e,t,n){var i=n("q1tI"),o=n("Ye/N"),r=n("VbOu"),a=n("0LLM"),s=n("GsvW"),c=n("n6mq"),l=n("nKUr");function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends i.PureComponent{constructor(...e){super(...e),d(this,"state",{truncate:!!this.props.text&&this.props.text.length>(this.props.maxCharLength||s.c)+this.revealText.length}),d(this,"showFullText",()=>this.setState({truncate:!1}))}get revealText(){return this.props.inUnifiedComments?o.a._("... More","click to see more of a long post","click to see more of a long post"):o.a._("... See more","click to see more of a long post","click to see more of a long post")}render(){const{allowLink:e,allowReveal:t,maxCharLength:n,size:o,tags:d,taggedUsers:u,text:p}=this.props,{truncate:h}=this.state,g=h?p.substring(0,n||s.c).trim():p;return Object(l.jsxs)(i.Fragment,{children:[Object(l.jsx)(r.a,{allowLink:e,size:o,taggedUsers:u,tags:d,text:g}),h&&!t&&Object(l.jsx)(c.cb,{inline:!0,weight:"bold",overflow:"normal",children:this.revealText}),h&&t&&Object(l.jsx)(a.a,{color:"darkGray",handleClick:this.showFullText,text:this.revealText,size:o})]})}}d(u,"defaultProps",{allowLink:!0,allowReveal:!1,size:"md",tags:[],taggedUsers:[],text:""}),t.a=u},"3gMK":function(e,t,n){function i(){return"\n  summary::-webkit-details-marker {\n    display: none\n  }\n\n  .PinDescriptionSeeMore_details {\n    margin-top: -15px;\n  }\n\n  .ImmersiveVaseCarouselContainer {\n    overflow-x: scroll;\n    overflow-y: hidden;\n    padding-top: 8px;\n    white-space: nowrap;\n    scrollbar-width: none;\n    position: relative;\n  }\n  .ImmersiveVaseCarouselContainer::-webkit-scrollbar {\n    display: none;\n  }\n\n  .vaseCarousel_vasetags_container {\n    overflow: hidden;\n    position: relative;\n  }\n\n  .vaseCarousel_vasetags_wrapper {\n    overflow: scroll;\n    white-space: nowrap;\n    padding: 3px 0 22px 0;\n  }\n\n  .vaseCarousel_vaseTag {\n    background-color: #ebebe8;\n    border-radius: 5px;\n    color: #333;\n    display: inline-block;\n    font-size: 9px;\n    font-weight: bold;\n    margin: 0 5px 0 0;\n    padding: 7px 7px;\n    white-space: nowrap;\n    word-wrap: break-word;\n  }\n\n  .ImmersiveVaseCarousel__vaseTagLink {\n    background-color: #efefef;\n    border-radius: 32px;\n    color: #333;\n    display: inline-block;\n    font-size: 12px;\n    font-weight: bold;\n    margin: 0 5px 0 0;\n    padding: 8px 8px;\n    white-space: nowrap;\n    word-wrap: break-word;\n  }\n\n  .ImmersiveVaseCarousel__vaseTagLinkLeft {\n    position: absolute;\n    left: 0;\n    width: 30px;\n    top: 0;\n    height: 100%;\n    background: linear-gradient(90deg, white, transparent);\n    z-index: 1;\n  }\n\n  .ImmersiveVaseCarousel__vaseTagLinkRight {\n    position: absolute;\n    right: 0;\n    width: 30px;\n    top: 0;\n    height: 100%;\n    background: linear-gradient(-90deg, white, transparent);\n    z-index: 1;\n  }\n\n  .VaseCarousel__button {\n    display: block;\n    height: 30px;\n    top: 0px;\n    position: absolute;\n    width: 45px;\n    line-height: 25px;\n    padding-left: 4px;\n    padding-top: 2px;\n  }\n\n  .VaseCarousel__buttonLeft {\n    left: 0px;\n    background: -webkit-linear-gradient(left, rgba(255,255,255,1) 25%,rgba(255,255,255,0) 100%);\n  }\n\n  .VaseCarousel__buttonRight {\n    right: 0px;\n    text-align: right;\n    background: -webkit-linear-gradient(right, rgba(255,255,255,1) 25%,rgba(255,255,255,0) 100%);\n  }\n\n  .HiddenDescriptions_vasetags_title {\n    font-size: 14px;\n    margin-top: 20px;\n    font-weight: bold;\n  }\n\n  .HiddenDescriptions_vasetags {\n    font-family: HelveticaNeue;\n    font-size: 12px;\n    font-weight: normal;\n    font-style: normal;\n    font-stretch: normal;\n    line-height: 1.17;\n    letter-spacing: -0.1px;\n    color: #333333;\n    margin: 8px 0;\n    display: flex;\n  }\n\n  .pinDescription_text_board {\n    font-weight: 400;\n  }\n"}n.d(t,"a",(function(){return i}))},"3wQ7":function(e,t,n){var i=n("jfLK"),o=n("Ye/N"),r=n("n6mq"),a=n("28DW"),s=n("nKUr");t.a=({numServerRenderedPins:e,clientJsActive:t,disableHoverText:n,handleImageClick:c,textOverride:l})=>Object(s.jsx)(r.f,{position:"absolute",top:!0,right:!0,bottom:!0,left:!0,display:"flex",alignContent:"center",alignItems:"center",children:(()=>{if(!e||e>0&&t){const e=!n;return Object(s.jsx)(i.b,{className:"noButtonStyles",onClick:e=>{e.stopPropagation(),Object(a.a)("unauth.pin_image_hover_view_click"),Object(a.h)("click_pin_image",!0),c&&c(e)},styleOverrides:{cursor:"pointer",display:"flex",margin:"auto",background:"transparent",border:"none",color:"#ffF",fontSize:"32px",fontWeight:"700",outline:"none",paddingLeft:"8px",paddingRight:"8px",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},children:e?Object(s.jsx)(r.f,{display:"flex",direction:"column",alignItems:"center",children:l||o.a._("Open","Text on hover of a pin leading to opening this pin in the same tab. This is for users who don't have an account on Pinterest.","Text on hover of a pin leading to opening this pin in the same tab. This is for users who don't have an account on Pinterest.")}):null})}return null})()})},"493B":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("Gytx"),o=n("q1tI");t.useCollector=function(e,t,n){var r=o.useState((function(){return t(e)})),a=r[0],s=r[1],c=o.useCallback((function(){var o=t(e);i(a,o)||(s(o),n&&n())}),[a,e,n]);return[a,c]}},"4JlD":function(e,t,n){var i=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(a(e),(function(a){var s=encodeURIComponent(i(a))+n;return o(e[a])?r(e[a],(function(e){return s+encodeURIComponent(i(e))})).join(t):s+encodeURIComponent(i(e[a]))})).join(t):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],i=0;i<e.length;i++)n.push(t(e[i],i));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},"4KlH":function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r}));const i=5,o=5,r=1},"4NNh":function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r}));n("kmwA");const i="https://accounts.google.com/gsi/client",o=e=>{e&&e.cancelLastOperation&&e.cancelLastOperation().then(()=>{})},r=e=>{return JSON.parse(decodeURIComponent(atob((t=e.split(".")[1],(t||"").replace(/-/g,"+").replace(/_/g,"/"))).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join("")));var t}},"4NbJ":function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return h}));var i=n("kmwA"),o=n("bKKl"),r=n("37no");const a="postmessage",s="profile email",c=e=>Object(r.c)("https://accounts.google.com/gsi/client",r.a.GSI).then(()=>{const t=window.google,n=t&&t.accounts&&t.accounts.id;return n?new Promise((t,o)=>{n.initialize({client_id:i.a.settings.GPLUS_CLIENT_ID,auto_select:!0,callback:n=>e({resolve:t,reject:o,response:n}),cancel_on_tap_outside:!1,context:"use"}),n.prompt()}):Promise.reject(new Error("no_account_found"))});function l(e){const t={scope:s,client_id:"694505692171-31closf3bcmlt59aeulg2j81ej68j6hk.apps.googleusercontent.com",app_package_name:"com.pinterest",access_type:"offline",cookie_policy:"single_host_origin"},n=function(t){e&&e(t)};return new Promise((e,i)=>{Object(r.c)("https://apis.google.com/js/client:platform.js",r.a.GPLUS_ONE).then(()=>{n("google_script_load"),"undefined"!=typeof window&&window.gapi?window&&window.gapi&&window.gapi.auth2?(n("google_script_init_onuse"),window.gapi.auth2.init(t).then(t=>{n("google_init_success"),e(t)},({error:e})=>{n("google_init_error"),i("init_onuse_"+e)})):(n("google_script_init_exists"),window.gapi.load("auth2",{callback:()=>{n("google_auth2_load_complete"),window.gapi.auth2.init(t).then(t=>{n("google_init_success"),e(t)},({error:e})=>{n("google_init_error"),i("init_exists_"+e)})},onerror:({error:e})=>{n("google_auth2_script_load_error"),i(e)},timeout:15e3,ontimeout:()=>{n("google_auth2_script_load_timeout"),i("timeout")}})):n("google_init_error")})})}function d(e,t,n,i=!1){return function(e,t,n,i=!1){return new Promise((r,c)=>{if(i&&Object(o.a)())return void c();const d=function(e){n&&n(e)};d("google_button_init"),l(n).then(()=>{d("google_sdk_load"),"undefined"!=typeof window&&window.gapi?t.signin2.render(e,{scope:s,onsuccess:e=>{d("google_button_success");const t=e.getAuthResponse(!0),n={data:{gplus_id_token:t.id_token,gplus_access_token:t.access_token,gplus_expires_at:t.expires_at,gplus_autologin:i||!1},signupOptions:{gplus_code:"",gplus_id_token:t.id_token,gplus_redirect_uri:a}};r(n)},onfailure:()=>{d("google_button_failure"),c("gapi_signin2_render_error")}}):d("google_init_error")},e=>{d("google_auth2_sdk_init_error"),c(e)})})}(e,t,n,i)}function u(){if("undefined"==typeof window)return null;const e=window.google;return e&&e.accounts&&e.accounts.id}function p(e,t){if("undefined"==typeof window)return;const n=u();if(n&&e.current){const t=e.current.offsetWidth;n.renderButton(e.current,{size:"large",shape:"pill",text:"continue_with",theme:"outline",width:t+"px"})}else t("not_initialized")}function h(e,t,n){Object(r.b)("https://accounts.google.com/gsi/client").then(()=>{if("undefined"==typeof window)return;const o=u();o&&(o.initialize({client_id:i.a.settings.GPLUS_CLIENT_ID,callback:n,cancel_on_tap_outside:!1,context:"use"}),p(e,t))})}},"4dcN":function(e,t,n){(function(e){var i=n("T0g9"),o=n("Jr++");let r;void 0===r&&(r=e),r._gaq=r._gaq||[];let a=[];const s=function(e){if(a.length)for(let t=0;t<a.length;t+=1){const n=a[t];r._gaq.push(["_setAccount",n]),r._gaq.push(e)}},c=function(e){if(a=e,!e.length)return;const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"===document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(t)},l=2,d=3,u={};u.init=function(e,t){c(e),s(["_setCustomVar",1,"is_logged_in",t?"logged in":"logged out",l])},u.initSterling=function(e,{isLoggedIn:t,advertiser:n,adminUser:i,viewingUser:o}){c(e),t?(i?s(["_setCustomVar",1,"adminUser",i.toString(),d]):o&&o.id?s(["_setCustomVar",1,"viewingUser",o.id.toString(),d]):s(["_setCustomVar",1,"is_logged_in","logged in",d]),n&&n.id&&s(["_setCustomVar",3,"advertiserId",n.id,d])):s(["_setCustomVar",1,"is_logged_in","logged out",d])};const p=function(e,t){let n=e;const r=Object(o.a)(t).q;return r&&(n+="?"+Object(i.a)({q:r})),n};u.trackPageview=function(e){s(["_setCustomVar",2,"page_name",e,d]),s(["_trackPageview",p(r.location.pathname,r.location.search)]),s(["_setPageGroup",1,e])},u.trackEvent=function(e,t,n,i,o){s(["_trackEvent",e,t,n,i,o])},u.trackCategoryEvent=function(e,t,n){u.trackEvent(e+"_"+t,n)},t.a=u}).call(this,n("yLpj"))},"4gAt":function(e,t,n){n.d(t,"a",(function(){return d}));var i=n("q1tI"),o=n("Ye/N"),r=n("7GHV"),a=n("wvsB");const s=e=>{var t;let n="";for(const o of null!==(i=e.blocks)&&void 0!==i?i:[]){var i;[1,0].includes(o.block_type)&&(n=o.text?o.text:"")}return null!==(t=n)&&void 0!==t?t:""};var c=n("n6mq"),l=n("nKUr");function d(e){var t,n,d;const{activePageIndex:u,hideText:p,isActive:h,isCoverPage:g,muteVideos:m,onClickThrough:f,page:{image_adjusted:b,image:_,blocks:j,video:y,id:v},pageIndex:O,pageWidth:x,pinId:w}=e,S=b||_||{},{images:C={}}=S,k=C["750x"],{video_list:T={}}=y||{},E=T.V_HLSV3_MOBILE||T.V_720P;if(!k&&!E)return null;const I=x/375;return Object(l.jsxs)(i.Fragment,{children:[!!y&&!!E&&Object(l.jsx)(a.a,{activePageIndex:u,blockHeight:210.9375*I,blockPosition:{left:0,top:0},blockWidth:375*I,isPlaying:h,muted:m,pageIndex:O,pinId:w,video:y}),k&&!E&&Object(l.jsx)(c.x,{alt:s(e.page)||o.a._("Story pin image","Alt text for story pin image","Alt text for story pin image"),fit:g?"cover":"contain",naturalHeight:null!==(t=k.height)&&void 0!==t?t:1,naturalWidth:null!==(n=k.width)&&void 0!==n?n:1,src:null!==(d=k.url)&&void 0!==d?d:""}),j&&j.length>0&&!p&&Object(l.jsx)("div",{className:"StoryPinTextDrawer",children:Object(l.jsx)(r.a,{blocks:j,onClickThrough:f,pageId:v,pinId:w})})]})}},"4jWr":function(e,t,n){n.d(t,"a",(function(){return i}));const i=200;t.b=(e,t)=>({marginTop:10,opacity:0,position:"relative",transform:"translateY(200px)",transition:"opacity 0.1s ease-in-out",visibility:"hidden",...e?{opacity:1,transform:"translateY(0)",transition:"all 0.7s cubic-bezier(.19, 1.15, .48, 1)",visibility:"visible"}:{},...e&&t?{opacity:0,transform:"scale(1.1)",transition:"opacity transform 0.2s"}:{}})},"4lrw":function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("yweb"),o=n("n6mq"),r=n("nKUr");function a({color:e,onClick:t,overrideText:n}){const a=Object(i.c)(),s=n||a._("Got it","Acknowledge protected account modal message","Acknowledge protected account modal message");return Object(r.jsx)(o.g,{accessibilityLabel:s,color:e||"gray",onClick:t,text:s})}},"4vzw":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=n.getRegistry(),o=i.addSource(e,t);return[o,function(){return i.removeSource(o)}]}},"54t5":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("fOPN"),o=n("HNpt"),r=n("U4W0"),a=n("uCRx"),s=n("QLaP"),c=n("IEa/");function l(e){switch(e[0]){case"S":return r.HandlerRole.SOURCE;case"T":return r.HandlerRole.TARGET;default:s(!1,"Cannot parse handler ID: "+e)}}function d(e,t){var n=e.entries(),i=!1;do{var o=n.next(),r=o.done;if(o.value[1]===t)return!0;i=r}while(!i);return!1}var u=function(){function e(e){this.store=e,this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null}return e.prototype.addSource=function(e,t){a.validateType(e),a.validateSourceContract(t);var n=this.addHandler(r.HandlerRole.SOURCE,e,t);return this.store.dispatch(i.addSource(n)),n},e.prototype.addTarget=function(e,t){a.validateType(e,!0),a.validateTargetContract(t);var n=this.addHandler(r.HandlerRole.TARGET,e,t);return this.store.dispatch(i.addTarget(n)),n},e.prototype.containsHandler=function(e){return d(this.dragSources,e)||d(this.dropTargets,e)},e.prototype.getSource=function(e,t){return void 0===t&&(t=!1),s(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)},e.prototype.getTarget=function(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)},e.prototype.getSourceType=function(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)},e.prototype.getTargetType=function(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)},e.prototype.isSourceId=function(e){return l(e)===r.HandlerRole.SOURCE},e.prototype.isTargetId=function(e){return l(e)===r.HandlerRole.TARGET},e.prototype.removeSource=function(e){var t=this;s(this.getSource(e),"Expected an existing source."),this.store.dispatch(i.removeSource(e)),c((function(){t.dragSources.delete(e),t.types.delete(e)}))},e.prototype.removeTarget=function(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(i.removeTarget(e)),this.dropTargets.delete(e),this.types.delete(e)},e.prototype.pinSource=function(e){var t=this.getSource(e);s(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t},e.prototype.unpinSource=function(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null},e.prototype.addHandler=function(e,t,n){var i=function(e){var t=o.default().toString();switch(e){case r.HandlerRole.SOURCE:return"S"+t;case r.HandlerRole.TARGET:return"T"+t;default:throw new Error("Unknown Handler Role: "+e)}}(e);return this.types.set(i,t),e===r.HandlerRole.SOURCE?this.dragSources.set(i,n):e===r.HandlerRole.TARGET&&this.dropTargets.set(i,n),i},e}();t.default=u},"5ARb":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("MCs0"),o=(n("QWfI"),n("2S0S")),r=["canDrag","beginDrag","isDragging","endDrag"],a=["beginDrag"],s=function(){function e(e,t,n){var i=this;this.spec=e,this.monitor=t,this.ref=n,this.props=null,this.beginDrag=function(){if(i.props)return i.spec.beginDrag(i.props,i.monitor,i.ref.current)}}return e.prototype.receiveProps=function(e){this.props=e},e.prototype.canDrag=function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))},e.prototype.isDragging=function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())},e.prototype.endDrag=function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,i.getDecoratedComponent(this.ref))},e}();t.default=function(e){return Object.keys(e).forEach((function(t){o(r.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r.join(", "),t),o("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),a.forEach((function(t){o("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new s(e,t,n)}}},"5f3z":function(e,t,n){function i({appliedProductFilters:e,autoCorrectionDisabled:t,filters:n,query:i,scope:o,selectedPinImgSig:r,user:a}){const s=[o,n,e,a,r,i].map(e=>null!=e?e:"").join(":");return t?"auto-correction-disabled:"+s:s}function o({autoCorrectionDisabled:e=!1,appliedProductFilters:t=null,bubbleId:n=null,filters:i=null,query:o=null,rs:r="direct_navigation",scope:a="pins",selectedPinImgSig:s=null,sourceId:c=null,user:l}){return{article:n,appliedProductFilters:t,auto_correction_disabled:e,corpus:s?"personalize":null,customized_rerank_type:s?"manas_graph_sage_only_wand_rewrite":null,filters:i,query:o,query_pin_sigs:s,redux_normalize_feed:!0,rs:r,scope:a,source_id:c,user:l}}n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));function r(e){const{autoCorrectionDisabled:t,appliedProductFilters:n,filters:i,selectedPinImgSig:r,query:a,rs:s,scope:c,bubbleId:l,user:d}=e;return{name:"BaseSearchResource",options:o({autoCorrectionDisabled:!!t,appliedProductFilters:n,filters:i,query:a,rs:s,scope:c,selectedPinImgSig:r,bubbleId:l,user:d})}}},"62uD":function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("yjg8");function o(e){let t="";const n=i.j,o=Object(i.o)(e),r=i.c,a=i.e+r;let s=0,c=n*a+a-1;for(let i=n;i<o+1;i+=1)t+=`\n@media (min-width: ${s}px) and (max-width: ${c}px) {\n  .static:nth-child(-n+${i}) {\n    float: left;\n    position: static;\n    display: block;\n    visibility: visible;\n    margin: 0 ${r/2}px;\n  }\n  .gridCentered {\n    width: ${i*a}px;\n  }\n}\n`,s=c+1,c+=a;return t+="\n.static {\n  position: absolute;\n  visibility: hidden;\n}\n.gridCentered {\n  margin: 0 auto;\n}\n.Grid__Container {\n    height: 100%;\n    margin: 0 auto;\n    position: relative;\n}\n\n.Grid__Item {\n    position: absolute;\n}\n",t}},"63p3":function(e,t,n){function i(e){return!!(e&&e.carousel_data&&e.carousel_data.id)}n.d(t,"a",(function(){return i}))},"6AVr":function(e,t,n){n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var i=n("q1tI"),o=n("Ye/N"),r=n("QHRY"),a=n("eOdZ"),s=n("n6mq"),c=n("yjg8"),l=n("zRck"),d=n("pTLB"),u=n("nKUr");const p="related-pins-section",h={textAlign:"center",color:"#555555"},g={color:"#333",fontSize:"20px",fontWeight:"600",textAlign:"center"};function m({closeupPin:e,relatedPins:t,nextBookmark:n,hideMeta:m,isStoryPin:f,includeHeader:b=!0}){const _=Object(d.b)(),j=null==_?void 0:_.showSignupModal,[y,v]=Object(i.useState)(0);return Object(u.jsxs)("section",{style:{backgroundColor:"#fff",paddingTop:"35px"},id:p,children:[b&&Object(u.jsx)(s.f,{marginTop:-3,marginStart:2,children:Object(u.jsx)("h2",{className:"gridCentered",style:f?g:h,children:Array.isArray(t)&&t.length?o.a._("More like this","Heading for Related Pins beneath pin closeup","Heading for Related Pins beneath pin closeup"):""})}),Object(u.jsx)(r.a,{bookmarks:n?[n]:[],carouselTagColor:"#ffffff",hideMeta:m,isRelatedPin:!0,items:t,loadPins:(O=e.id,(e,t,n)=>{a.a.create("RelatedPinFeedResource",{add_vase:!0,bookmarks:t,field_set_key:"unauth_react",offset:e.length,page_size:0,pin:O,pins_only:!0}).callGet().then(e=>{var t,i;const o=(null==e||null===(t=e.resource_response)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.map(e=>e.data?e.data:e))||[];n(o,e.bookmarks)})}),openInCurrentTab:!0,pinImageWidthMax:c.e,pinLinkClickHandler:e=>{j&&(v(y+1),y>2&&(e&&e.preventDefault(),j("signup",{source:"saveButton",container:l.e}),v(1)))},pinWrapperBackgroundColor:"#efefef",showRelatedPinsHeader:!0,viewParameter:3063,viewType:3})]});var O}},"6lKZ":function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o=new class{constructor(){i(this,"onResumeListeners",[]),i(this,"onPauseListeners",[]),i(this,"inExp",!1)}setExperiment(e=!1){this.inExp=e}onSessionResume(e){return this.onResumeListeners.push(e),this}onSessionPause(e){return this.onPauseListeners.push(e),this}removeResumeListener(e){this.onResumeListeners.filter(t=>t!==e)}removePauseListener(e){this.onPauseListeners=this.onPauseListeners.filter(t=>t!==e)}},r=e=>{if(e.isHidden){const{reason:t}=e;o.onPauseListeners.forEach(e=>e(t))}else o.onResumeListeners.forEach(e=>e())};setTimeout(()=>{window.addEventListener("beforeunload",()=>r({isHidden:!0,reason:"beforeunload"})),window.addEventListener("focus",()=>r({isHidden:!1})),window.addEventListener("blur",()=>r({isHidden:!0,reason:"blur"})),window.addEventListener("pageshow",()=>r({isHidden:!1})),window.addEventListener("pagehide",()=>r({isHidden:!0,reason:"pagehide"})),void 0!==document.hidden?document.addEventListener("visibilitychange",()=>r(document.hidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1}),!1):void 0!==document.webkitHidden&&document.addEventListener("webkitvisibilitychange",()=>r(document.webkitHidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1}),!1)},0),t.a=o},"6uti":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,r=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,u=i?Symbol.for("react.async_mode"):60111,p=i?Symbol.for("react.concurrent_mode"):60111,h=i?Symbol.for("react.forward_ref"):60112,g=i?Symbol.for("react.suspense"):60113,m=i?Symbol.for("react.memo"):60115,f=i?Symbol.for("react.lazy"):60116;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case u:case p:case a:case c:case s:case g:return e;default:switch(e=e&&e.$$typeof){case d:case h:case l:return e;default:return t}}case f:case m:case r:return t}}}function _(e){return b(e)===p}t.typeOf=b,t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=d,t.ContextProvider=l,t.Element=o,t.ForwardRef=h,t.Fragment=a,t.Lazy=f,t.Memo=m,t.Portal=r,t.Profiler=c,t.StrictMode=s,t.Suspense=g,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===s||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===l||e.$$typeof===d||e.$$typeof===h)},t.isAsyncMode=function(e){return _(e)||b(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return b(e)===d},t.isContextProvider=function(e){return b(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return b(e)===h},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===f},t.isMemo=function(e){return b(e)===m},t.isPortal=function(e){return b(e)===r},t.isProfiler=function(e){return b(e)===c},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===g}},"75Er":function(e,t,n){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var i=n("q1tI"),o=n("+NLT"),r=n("m2Wt"),a=n("h4v/");function s(e,t){Object(i.useEffect)(()=>{if(e){const t=r.a.fromPlainObject(e);t.setEventType(13),t.setRequestIdentifier(o.a.initialPageContext.PAGE_LOAD_REQUEST_IDENTIFIER),a.a.getInstance().addEvent(t)}},[t])}function c(e){const{children:t,log:n}=e;return s(n),t||null}},"7GHV":function(e,t,n){var i=n("7l+q"),o=n("/MKj"),r=n("jmst"),a=n("Ye/N"),s=n("gqRH"),c=n("d90F"),l=n("U4JR"),d=n("n6mq"),u=n("nKUr");const p=Object(r.a)(e=>{const{sourceUrl:t,linkText:n,displayUrl:i,image:r,pageId:p,canonicalUrl:h,pinId:g,storyPinDataId:m,onTouch:f,onClickThrough:b,isLoading:_}=e,j={story_pin_page_id:p,story_pin_data_id:m,src_url:t,canonical_url:h},y=()=>{b&&b(!1,j)},v=()=>{Object(l.b)(101,{objectId:g,view:3,viewParameter:157,component:228,element:11157,...j})},O=Object(u.jsxs)(d.f,{display:"flex",rounding:2,overflow:"hidden",alignItems:"center",borderStyle:"sm",children:[Object(u.jsx)(d.f,{minWidth:80,width:80,height:80,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",color:_||r&&r.url?void 0:"lightGray",dangerouslySetInlineStyle:{__style:{borderRight:"1px solid lightGray"}},children:_?Object(u.jsx)(d.U,{accessibilityLabel:a.a._("Loading website","a11y for loading spinner","a11y for loading spinner"),show:!0}):(e=>{var t,n;return r&&r.url?Object(u.jsx)(d.x,{fit:"cover",src:r.url,alt:e,naturalHeight:null!==(t=r.height)&&void 0!==t?t:1,naturalWidth:null!==(n=r.width)&&void 0!==n?n:1}):Object(u.jsx)(d.v,{dangerouslySetSvgPath:{__path:"M21.001,7.241 L16.948,11.293 L15.888,10.233 L16.56,9.561 C17.146,8.976 17.146,8.026 16.56,7.44 C15.974,6.855 15.024,6.855 14.439,7.44 L13.768,8.112 L12.707,7.052 L16.759,3 L21.001,7.241 Z M11.293,16.949 L7.241,21.001 L2.999,16.76 L7.052,12.707 L8.111,13.767 L7.44,14.439 C6.855,15.025 6.855,15.974 7.44,16.56 C8.025,17.146 8.976,17.145 9.561,16.56 L10.232,15.888 L11.293,16.949 Z M14.639,0.879 L10.586,4.931 C9.415,6.102 9.415,8.001 10.586,9.173 L11.647,10.233 L10.232,11.647 L9.172,10.586 C8.001,9.415 6.102,9.415 4.931,10.586 L0.879,14.638 C-0.293,15.81 -0.293,17.709 0.879,18.88 L5.12,23.122 C6.291,24.293 8.19,24.293 9.361,23.122 L13.414,19.07 C14.585,17.898 14.585,15.999 13.414,14.828 L12.354,13.767 L13.768,12.354 L14.828,13.414 C15.999,14.585 17.898,14.585 19.069,13.414 L23.121,9.362 C24.293,8.191 24.293,6.292 23.121,5.12 L18.88,0.879 C17.709,-0.293 15.81,-0.293 14.639,0.879 Z"},accessibilityLabel:a.a._("Default link block icon","Icon for default link blocks without an image","Icon for default link blocks without an image"),color:"gray",size:35})})(n)}),Object(u.jsxs)(d.f,{paddingX:5,flex:"grow",overflow:"hidden",dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[Object(u.jsx)(d.cb,{truncate:!0,weight:"bold",children:n}),Object(u.jsx)(d.cb,{size:"md",color:"blue",children:i})]})]}),x=Object(o.useSelector)(({pins:e})=>g&&e?e[g]:void 0),w=Object(s.b)({href:t,target:"blank",externalData:{pin:x}});return f?Object(u.jsx)(d.bb,{onTap:f,rounding:2,children:O}):Object(u.jsx)(c.a,{name:"web_story_pin_link_block_click_through_logging",children:({anyEnabled:e})=>{const n=e?y:v;return Object(u.jsx)(d.bb,{href:t,onTap:({event:e,disableOnNavigation:t})=>{t(),n(),w({event:e})},rel:"nofollow",rounding:2,role:"link",target:"blank",children:O})}})});var h=Object(o.connect)(({pins:e},{pinId:t})=>({storyPinDataId:t&&e&&e[t]&&e[t].story_pin_data_id}))(p),g=n("OSge");var m=({block:e,pageId:t,pinId:n,onClickThrough:o})=>{var r;switch(e.type){case g.a.LINK:const{canonical_url:a,image:s,normalized_url:c,src_url:p,text:m=""}=e,f=null==s||null===(r=s.images)||void 0===r?void 0:r["345x"],b=e=>{e&&Object(l.b)(120,{view:3,viewParameter:157,component:228,element:11157,story_pin_page_id:t,objectId:n,srcUrl:p,canonicalUrl:a})};return s&&p&&c&&a?Object(u.jsx)(d.f,{marginTop:5,children:Object(u.jsx)(h,{canonicalUrl:a,displayUrl:c,image:f,linkText:m,onClickThrough:o,onVisibilityChanged:b,pageId:t,pinId:n,sourceUrl:p})}):null;case g.a.HEADING:{const{text:t=""}=e;return Object(u.jsx)(d.f,{marginBottom:4,paddingX:2,children:Object(u.jsx)(d.u,{size:"md",overflow:"normal",accessibilityLevel:2,children:t})})}case g.a.PARAGRAPH:{const{text:t=""}=e;return Object(u.jsx)(d.f,{paddingX:2,dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-line"}},children:Object(u.jsx)(d.cb,{children:Object(u.jsxs)(i.a,{children:[" ",t," "]})})})}default:return null}};t.a=e=>{const{blocks:t,pageId:n,pinId:i,onClickThrough:o}=e;return Object(u.jsx)("div",{className:"StoryPinText",children:t.filter(e=>e).map((e,t)=>Object(u.jsx)(m,{block:e,pageId:n,pinId:i,onClickThrough:o},t))})}},"7Gov":function(e,t,n){n.d(t,"a",(function(){return k}));var i=n("q1tI"),o=n("h5nQ"),r=n("Z1P6"),a=n("4lrw"),s=n("TgLd"),c=n("0x0l"),l=n("yweb"),d=n("n6mq"),u=n("nKUr");function p(e){const t=Object(l.c)()._("Reset password","Request a password reset email","Request a password reset email");return Object(u.jsx)(d.g,{accessibilityLabel:e.overrideText||t,color:e.color||"red",inline:e.inline,onClick:()=>{Object(c.a)({usernameOrEmail:e.email,callBack:e.callBack})},text:e.overrideText||t})}var h=n("qpbZ");function g({email:e,onClose:t,onPasswordResetSent:n,socialButtons:i}){const o=Object(l.c)();return Object(u.jsx)(s.b,{accessibilityModalLabel:o._("Login with Facebook or Google?","Modal accessibility label for when a user has failed login three times","Modal accessibility label for when a user has failed login three times"),heading:o._("Looks like you’re 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,role:"alertdialog",size:"md",children:Object(u.jsxs)(d.f,{paddingX:6,marginBottom:4,children:[Object(u.jsxs)(d.f,{children:[Object(u.jsx)(d.cb,{children:Object(h.b)(o._("We sent an email to {{ email }} to help you get back in.","",""),{email:Object(u.jsx)(d.cb,{inline:!0,weight:"bold",children:e},"emailAddress")})}),Object(u.jsx)(d.f,{paddingY:3,children:Object(u.jsx)(p,{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")})})]}),Object(u.jsx)(d.f,{marginBottom:4,children:Object(u.jsx)(d.cb,{children:o._("Or log in with Facebook or Google.","Upsell to use Facebook or Google for login","Upsell to use Facebook or Google for login")})}),i,Object(u.jsx)(d.f,{marginTop:4,children:Object(u.jsx)(a.a,{onClick:t})})]})})}function m({email:e,onClose:t,onPasswordResetSent:n,socialButtons:i}){const o=Object(l.c)();return Object(u.jsx)(s.b,{accessibilityModalLabel:o._("Login limit reached","Modal accessibility label for users who have been login rate limited","Modal accessibility label for users who have been login rate limited"),heading:o._("Oops! Too fast","Modal heading for user who have been login rate limited","Modal heading for user who have been login rate limited"),onDismiss:t,role:"alertdialog",size:"sm",children:Object(u.jsxs)(d.f,{paddingX:12,marginBottom:6,children:[Object(u.jsx)(d.f,{marginBottom:4,width:"100%",overflow:"hidden",children:Object(u.jsx)(d.cb,{align:"center",children:o._("It looks like you’re logging in a lot. Log in with Facebook or Google if you’re connected, or reset your password. Or you can wait 30 minutes and try again.","Statement that the users is login limited","Statement that the users is login limited")})}),Object(u.jsx)(d.f,{marginBottom:8,children:Object(u.jsx)(d.cb,{align:"center",children:o._("Or log in with Facebook or Google.","Upsell to use Facebook or Google for login","Upsell to use Facebook or Google for login")})}),Object(u.jsxs)(d.f,{paddingX:6,children:[Object(u.jsx)(d.f,{marginBottom:2,children:Object(u.jsx)(p,{email:e,callBack:n})}),i,Object(u.jsx)(d.f,{marginTop:6,children:Object(u.jsx)(a.a,{onClick:t,overrideText:o._("I’ll wait","Button text acknowledging login rate limiting","Button text acknowledging login rate limiting")})})]})]})})}function f({email:e,loginWith:t,onClose:n,onPasswordResetSent:i}){const o=Object(l.c)();return Object(u.jsx)(s.b,{accessibilityModalLabel:o._("No matching account","Modal accessibility label for account recovery","Modal accessibility label for account recovery"),heading:o._("Oops! Something went wrong","Modal heading","Modal heading"),onDismiss:n,role:"alertdialog",size:"md",children:Object(u.jsxs)(d.f,{paddingX:6,marginBottom:4,children:[Object(u.jsx)(d.f,{marginBottom:6,children:"facebook"===t?Object(u.jsx)(d.cb,{children:o._("We couldn’t 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")}):Object(u.jsx)(d.cb,{children:o._("We couldn’t 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")})}),Object(u.jsx)(p,{email:e,callBack:i}),Object(u.jsx)(d.f,{marginTop:2,children:Object(u.jsx)(a.a,{onClick:n})})]})})}var b=n("kmwA");function _({email:e,onClose:t,onPasswordResetSent:n}){const i=Object(l.c)(),o=i._("Password reset email sent","Modal label for confirmation of password reset send","Modal label for confirmation of password reset send");return Object(u.jsx)(s.b,{accessibilityModalLabel:o,heading:o,onDismiss:t,role:"alertdialog",size:"md",children:Object(u.jsxs)(d.f,{paddingX:6,marginBottom:4,children:[Object(u.jsx)(d.cb,{overflow:"normal",children:Object(h.b)(i._("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:Object(u.jsx)(d.cb,{inline:!0,overflow:"normal",weight:"bold",children:e},"emailAddress")})}),Object(u.jsx)(d.f,{paddingY:4,children:Object(u.jsx)(p,{inline:!0,color:"gray",email:e,callBack:n,overrideText:i._("Resend email","Button to allow the user to request a password reset email","Button to allow the user to request a password reset email")})}),Object(u.jsxs)(d.f,{children:[Object(u.jsx)(d.f,{marginBottom:4,children:Object(u.jsx)(d.cb,{children:Object(h.b)(i._("Didn’t 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:Object(u.jsx)(d.cb,{inline:!0,weight:"bold",children:Object(u.jsx)(d.B,{inline:!0,target:"blank",href:b.a.settings.HELP_PASSWORD_RESET_URL+"?source=account_recovery",onClick:({disableOnNavigation:e})=>e(),children:i._("tips from our Help Center","Link text to go to help center","Link text to go to help center")},"helpCenterLink")},"helpCenter")})})}),Object(u.jsx)(d.f,{marginBottom:4,children:Object(u.jsx)(d.cb,{children:Object(h.b)(i._("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:Object(u.jsx)(d.cb,{inline:!0,weight:"bold",children:Object(u.jsx)(d.B,{inline:!0,href:b.a.settings.PASSWORD_RESET_URL,onClick:({disableOnNavigation:e})=>e(),children:i._("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")})})})]}),Object(u.jsx)(d.f,{children:Object(u.jsx)(a.a,{color:"red",onClick:t})})]})})}function j({email:e,onClose:t,onPasswordResetSent:n,socialButtons:i}){const o=Object(l.c)();return Object(u.jsx)(s.b,{accessibilityModalLabel:o._("Recover your account","Modal accessibility label for account recovery","Modal accessibility label for account recovery"),heading:o._("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,role:"alertdialog",size:480,children:Object(u.jsxs)(d.f,{paddingX:12,marginBottom:8,children:[Object(u.jsx)(d.f,{paddingX:4,marginBottom:4,children:Object(u.jsx)(d.cb,{align:"center",children:o._("We noticed some strange activity on your Pinterest account so we reset your password and logged everyone out (including you).","Statement that we detected suspicious activity","Statement that we detected suspicious activity")})}),Object(u.jsx)(d.f,{paddingX:4,marginBottom:4,children:Object(u.jsx)(d.cb,{align:"center",children:o._("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")})}),Object(u.jsxs)(d.f,{paddingX:12,children:[Object(u.jsx)(d.f,{paddingY:2,children:Object(u.jsx)(p,{email:e,callBack:n})}),i,Object(u.jsx)(d.f,{marginTop:4,children:Object(u.jsx)(a.a,{onClick:t})})]})]})})}var y=n("s8BS"),v=n("M1Uz"),O=n("zRck"),x=n("AXUD"),w=n("J8m7"),S=n("sv3x");function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k={[w.e]:S.a.RATE_LIMITED,[w.d]:S.a.RATE_LIMITED,[w.C]:S.a.SOFT_BANNED,[w.x]:S.a.SUSPENDED,[w.q]:S.a.LOGIN_ASSISTANCE,[w.s]:S.a.SOFT_BANNED,[x.b]:S.a.RATE_LIMITED};class T extends i.Component{constructor(...e){super(...e),C(this,"state",{showToast:!1}),C(this,"dismissModal",()=>{this.props.updateAccountRecoveryModal(null)}),C(this,"showPasswordResetSent",()=>this.props.updateAccountRecoveryModal(S.a.PASSWORD_RESET_SENT)),C(this,"showLoginWithFailed",e=>{"facebook"===e?this.props.updateAccountRecoveryModal(S.a.PREVENT_FACEBOOK_REGISTER):"google"===e&&this.props.updateAccountRecoveryModal(S.a.PREVENT_GOOGLE_REGISTER)}),C(this,"toggleToast",()=>this.setState(e=>({showToast:!e.showToast}))),C(this,"renderSocialButtons",()=>{const{i18n:e}=this.props;return Object(u.jsxs)(d.f,{children:[Object(u.jsx)(o.a,{buttonText:e._("Continue with Facebook","Facebook login button text","Facebook login button text"),container:O.a,disablePostSignupNextUrl:!0,onLoginWithMfa:this.props.onLoginWithMfa,onLoginWithSuspended:this.props.onLoginWithSuspended,showFallback:!0,preventRegister:this.showLoginWithFailed}),Object(u.jsx)(d.f,{marginTop:2,children:Object(u.jsx)(r.a,{container:O.a,disablePostSignupNextUrl:!0,onLoginWithMfa:this.props.onLoginWithMfa,onLoginWithSuspended:this.props.onLoginWithSuspended,preventRegister:this.showLoginWithFailed,onLoginWithVoluntarilyDeactivated:e=>{this.dismissModal(),this.props.onLoginWithVoluntarilyDeactivated&&this.props.onLoginWithVoluntarilyDeactivated(e)}})})]})})}render(){const{email:e,modalType:t,i18n:n}=this.props,o={email:e,onClose:this.dismissModal,onPasswordResetSent:this.showPasswordResetSent},r={...o,socialButtons:this.renderSocialButtons()};switch(t){case S.a.SUSPENDED:return Object(u.jsx)(y.a,{onClose:this.dismissModal});case S.a.LOGIN_ASSISTANCE:return Object(u.jsx)(g,{...r});case S.a.RATE_LIMITED:return Object(u.jsx)(m,{...r});case S.a.SOFT_BANNED:return Object(u.jsx)(j,{...r});case S.a.PREVENT_FACEBOOK_REGISTER:return Object(u.jsx)(f,{...o,loginWith:"facebook"});case S.a.PREVENT_GOOGLE_REGISTER:return Object(u.jsx)(f,{...o,loginWith:"google"});case S.a.PASSWORD_RESET_SENT:return Object(u.jsxs)(i.Fragment,{children:[Object(u.jsx)(_,{...o,onPasswordResetSent:this.toggleToast}),this.state.showToast&&Object(u.jsx)(d.f,{fit:!0,dangerouslySetInlineStyle:{__style:{bottom:"50%",left:"50%",transform:"translateX(-50%)"}},paddingX:1,position:"fixed",children:Object(u.jsx)(v.a,{onHide:this.toggleToast,text:n._("Email sent!"),duration:3500})})]});default:return null}}}t.b=e=>{const t=Object(l.c)();return Object(u.jsx)(T,{...e,i18n:t})}},"7M1j":function(e,t,n){function i(e){return e.replace(/([A-Z])/g,e=>"_"+e.toLowerCase())}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c}));var o=n("28DW"),r=n("gC5q");const a=300,s=e=>t=>Object(o.a)(e+t),c=e=>Object(r.a)(i)(e)},"7Ve8":function(e,t,n){n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return d}));var i=n("h4v/"),o=n("XhR6"),r=n("U4JR");const a=["search_articles_story","style_pivot","structured_search_bubble"];function s({query:e,scope:t}){return`${e}-${t}`}function c({category:e,domains:t,minPrice:n,maxPrice:i}){return[e,t,i,n].map(e=>null!=e?e:"").join("-")}function l({query:e,rs:t,scope:n}){const a=i.a.getInstance().getPreviousViewFromContext();if(!(!a.view_type&&!a.view_parameter)){const{view_type:i,view_parameter:s}=a;Object(r.b)(Object(o.b)(n),{view:i,viewParameter:s,query:e,rs:t||"Unknown"})}"hashtag_closeup"===t?Object(r.b)(101,{component:13065,element:10273,view:142}):"hashtag_pinrep"===t&&Object(r.b)(101,{component:0,element:10349,view:142})}const d=(e=[])=>{let t=!0;return e.reduce((e,n)=>{var i;return t&&n.story_type&&a.includes(n.story_type)&&0===(null===(i=n.display_options)||void 0===i?void 0:i.num_columns_requested)?e.searchCarouselStories.push(n):(t=!1,e.filteredResults.push(n)),e},{searchCarouselStories:[],filteredResults:[]})}},"7l+q":function(e,t,n){n.d(t,"a",(function(){return h}));var i=n("q1tI"),o=n("+80P"),r=n.n(o),a=n("johb"),s=n("zwad"),c=n("gqRH"),l=n("n6mq"),d=n("nKUr");const u=new r.a;u.tlds(a),u.add("#",{validate(e,t,n){const i=e.slice(t);return n.re.hashtag||(n.re.hashtag=new RegExp("^([a-zA-Z0-9_]){1,15}(?!_)(?=$|"+n.re.src_ZPCc+")")),n.re.hashtag.test(i)?!(t>=2&&"#"===i[t-2])&&i.match(n.re.hashtag)[0].length:0},normalize(e){e.url=`https://pinterest.com/search/pins/?q=${encodeURIComponent(e.text)}&rs=hashtag_pinrep`}});const p=({decoratedHref:e,decoratedText:t,index:n,isTrusted:i})=>{const o=Object(c.b)({href:e,target:i?null:"blank"});return Object(d.jsx)(l.B,{href:e,onClick:({event:e,disableOnNavigation:t})=>{t(),e.stopPropagation(),o({event:e})},children:t},n)};class h extends i.PureComponent{parseString(e){if(""===e)return e;const t=(n=e,u.match(n));var n;if(!t)return e;const i=[];let o=0;return t.forEach((t,n)=>{t.index>o&&i.push(e.substring(o,t.index));let r=t.url;const a=s.a.isTrustedOrigin(t.url)&&!t.url.match(/help.pinterest/g);if(a){const e=s.a.parse(t.url);r=r.replace(e.origin,"")}const c=t.text,l=Object(d.jsx)(p,{decoratedHref:r,decoratedText:c,index:n,isTrusted:a});i.push(l),o=t.lastIndex}),e.length>o&&i.push(e.substring(o)),1===i.length?i[0]:i}parse(e,t=0){return"string"==typeof e?this.parseString(e):Object(i.isValidElement)(e)&&"a"!==e.type&&"button"!==e.type?Object(i.cloneElement)(e,{key:t},this.parse(e.props.children)):Array.isArray(e)?e.map((e,t)=>this.parse(e,t)):e}render(){return Object(d.jsx)("span",{children:this.parse(this.props.children)})}}},"7nh8":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.INIT_COORDS="dnd-core/INIT_COORDS",t.BEGIN_DRAG="dnd-core/BEGIN_DRAG",t.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",t.HOVER="dnd-core/HOVER",t.DROP="dnd-core/DROP",t.END_DRAG="dnd-core/END_DRAG"},"7wXf":function(e,t,n){n.d(t,"a",(function(){return g}));var i=n("ynlw"),o=n("rsy7"),r=n("Ye/N"),a=n("EDqd"),s=n("US8k"),c=n("QAzJ"),l=n("n6mq"),d=n("nKUr");const u={borderRadius:"18px",fontSize:"10px",fontWeight:"600",height:"24px",lineHeight:"24px",padding:"0 6px"},p={borderRadius:"18px",fontSize:"10px",fontWeight:"600",lineHeight:"24px",padding:"4px 8px"};function h({backgroundColor:e,identifier:t,size:n="sm"}){const i="pine"===e?"#0FA573":"#fff",o="sm"===n?u:p;return Object(d.jsx)(l.f,{display:"inlineBlock",dangerouslySetInlineStyle:{__style:{...o,backgroundColor:e?i:"rgba(255, 255, 255, 0.8)",color:"pine"===e?"#fff":"#111"}},"data-test-id":"PinTypeIdentifier",children:t})}function g({pin:e,size:t="sm",allowProductCarousel:n,allowShoppingPriceIndicator:u,shoppingLabelColor:p}){const g=Object(i.a)(e),m=Object(c.b)("web_sp2s");if(g.isGif)return h({identifier:"GIF",size:t});if(g.isStoryPin){const{page_count:n=0}=e.story_pin_data||{};return h({identifier:Object(d.jsxs)(l.f,{display:"flex",alignItems:"center",justifyContent:"between",children:[Object(d.jsx)(l.f,{marginEnd:1,display:"flex",alignItems:"center",children:Object(d.jsx)(l.v,{accessibilityLabel:m().anyEnabled?r.a._("Idea Pin","pin.pinTypeIdentifier.ideaPinIconAccessibilityLabel","identifier that shows the pin type"):r.a._("Story Pin","pin.pinTypeIdentifier.iconAccessibilityLabel","identifier that shows the pin type"),inline:!0,icon:"story-pin",color:"darkGray",size:"sm"===t?12:16})}),Object(d.jsx)(l.cb,{inline:!0,size:"sm",weight:"bold",children:n.toString()})]}),size:t})}if(g.isVideo){const n=e.videos,{duration:i=0}=n&&n.video_list&&n.video_list[Object.keys(n.video_list)[0]]||{};return h({identifier:Object(s.a)(i),size:t})}if(g.isProduct){if(u){const n=e.rich_summary&&e.rich_summary.products&&e.rich_summary.products[0]&&e.rich_summary.products[0].offer_summary,i=n&&(n.price||n.max_price);return i?h({identifier:i,size:t}):null}if(p){const n=Object(o.a)(e)[0];return n?h({identifier:n,backgroundColor:p,size:t}):null}return null}if(n){const n=e.product_pin_data&&e.product_pin_data.items&&e.product_pin_data.items[0],i=n&&Object(a.a)(e.images,n,e.carousel_data&&e.carousel_data.index)||{},{carousel_slots:o=[],index:r=0}=i;return h({identifier:`${r+1}/${o.length}`,size:t})}if(g.isCarousel){const n=e.carousel_data||{},{carousel_slots:i=[],index:o=0}=n;return h({identifier:`${o+1}/${i.length}`,size:t})}return null}},"7zMe":function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("q1tI"),o=n("Ye/N"),r=n("n6mq"),a=n("nKUr");function s({bold:e=!0,color:t="darkGray",iconSize:n=16,textSize:s="md",timeString:c}){return Object(a.jsxs)(i.Fragment,{children:[Object(a.jsx)(r.f,{marginEnd:1,children:Object(a.jsx)(r.v,{accessibilityLabel:o.a._("clock","accessible label for clock icon on recipe rich pin","accessible label for clock icon on recipe rich pin"),color:t,icon:"clock",size:n})}),Object(a.jsx)(r.cb,{color:t,size:s,weight:e?"bold":"normal",children:c})]})}},"8Wa5":function(e,t,n){n.d(t,"a",(function(){return S}));var i=n("q1tI"),o=n("Ye/N"),r=n("eBDd"),a=n("vvax"),s=n("U4JR"),c=n("QAzJ"),l=n("n6mq"),d=n("nKUr");const u=({minutes:e})=>{const t=e%60,n=Math.floor(e/60),r=Object(a.b)(o.a.ngettext("{{ mins }} minute","{{ mins }} minutes",t,"closeup.storyPin.basicsLayout.cookTimeUnit","Minutes label indicating the cooking time of this Story Pin"),{mins:t}).join(""),s=Object(a.b)(o.a.ngettext("{{ hours }} hour","{{ hours }} hours",n,"closeup.storyPin.basicsLayout.cookTimeUnit","Hours label indicating the cooking time of this Story Pin"),{hours:n}).join(""),c=Object(d.jsx)(l.cb,{weight:"bold",inline:!0,size:"md",children:o.a._("Cook time:","closeup.storyPin.basicsLayout.cookTimeLabel","Label indicating the cooking time of this Story Pin")});return Object(d.jsx)(i.Fragment,{children:Object(d.jsx)(l.cb,{inline:!0,size:"md",children:Object(a.b)(o.a._("{{ label }} {{ hoursText }} {{ minsText }}","closeup.storyPin.basicsLayout.cookTime",'Combined label for story pin cooktime (ex: "Cook time: 1 hour 13 minutes")'),{label:c,hoursText:s,minsText:r})})})},p=({servingSize:e})=>{const t=Object(r.a)(o.a.ngettext("{{servingSize}} serving","{{servingSize}} servings",e,"number of servings for a recipe","number of servings for a recipe"),{servingSize:e}),n=Object(d.jsx)(l.cb,{weight:"bold",inline:!0,size:"md",children:o.a._("Servings:","closeup.storyPin.basicsLayout.servingsLabel","Label indicating the servings count of this Story Pin")});return Object(d.jsx)(l.cb,{inline:!0,size:"md",children:Object(a.b)(o.a._("{{ label }} {{ servingText }}","closeup.storyPin.basicsLayout.servings",'Combined label for story pin servings (ex: "Servings: 10 servings")'),{label:n,servingText:t})})},h=({difficulty:e})=>{const t={1:o.a._("Easy","closeup.storyPin.basicsLayout.difficulty","Easy difficulty level"),2:o.a._("Intermediate","closeup.storyPin.basicsLayout.difficulty","Intermediate difficulty level"),3:o.a._("Expert","closeup.storyPin.basicsLayout.difficulty","Expert difficulty level")},n=e?t[e]:null;if(!n)return null;const i=Object(d.jsx)(l.cb,{weight:"bold",inline:!0,size:"md",children:o.a._("Difficulty:","closeup.storyPin.basicsLayout.difficultyLevelLabel","Label indicating the difficulty level of this Story Pin")});return Object(d.jsx)(l.cb,{inline:!0,size:"md",children:Object(a.b)(o.a._("{{ label }} {{ difficultyLevel }}","closeup.storyPin.basicsLayout.difficulty",'Combined label for story pin difficulty (ex: "Difficulty: Intermediate")'),{label:i,difficultyLevel:n})})};function g({keyValueBlocks:e,listBlocks:t}){const[n,r]=Object(i.useState)(!1),{anyEnabled:a}=Object(c.b)("hfp_spark_closeup_web")({dangerouslySkipActivation:!0}),g=Object(i.useRef)(),m=!!g&&!!g.current&&g.current.offsetHeight>=300,f=e.map(e=>((e,t)=>{switch(e){case 0:{const e=parseInt(t,10);return e?Object(d.jsx)(u,{minutes:e}):null}case 1:{const e=parseInt(t,10);return Object(d.jsx)(p,{servingSize:e})}case 2:return Object(d.jsx)(h,{difficulty:t});default:return null}})(e.category_type,e.value)).filter(e=>null!=e);return Object(d.jsxs)(i.Fragment,{children:[Object(d.jsxs)(l.f,{ref:g,maxHeight:a&&!n?300:void 0,overflow:"hidden",children:[f.length>0&&Object(d.jsx)(l.f,{marginTop:4,children:f.map((e,t)=>Object(d.jsx)(l.f,{display:"flex",children:e},`$keyValue-${t}-information`))}),t.map((e,t)=>{var n;return Object(d.jsxs)(l.f,{children:[Object(d.jsx)(l.f,{paddingY:2,marginTop:2,children:Object(d.jsx)(l.cb,{size:"md",weight:"bold",children:e.heading})}),(null!==(n=e.blocks)&&void 0!==n?n:[]).map((t,n)=>Object(d.jsxs)(l.f,{display:"flex",children:[Object(d.jsx)(l.f,{marginEnd:3,flex:"none",children:Object(d.jsx)(l.cb,{size:"md",children:"•"})}),Object(d.jsx)(l.f,{overflow:"hidden",flex:"grow",children:Object(d.jsx)(l.cb,{size:"md",children:t.text?t.text:""})})]},`item-${n}-${e.heading||"empty"}`))]},`${e.heading||"empty"}-${t}-listHeading`)})]}),!n&&a&&m&&Object(d.jsx)(l.f,{marginTop:4,children:Object(d.jsx)(l.g,{inline:!0,text:o.a._("See all","storyPinBasicsLayout.seeAllButton","label for button to exand story pin details"),onClick:()=>{r(!n),Object(s.b)(101,{component:13801,view:1,element:11769})}})})]})}var m=n("bZS0"),f=n("7zMe"),b=n("Pezf"),_=n("OSge");const j=e=>e.type===_.a.INGREDIENT;var y=({block:e})=>{if(e.type!==_.a.INGREDIENT)return null;const{amt:t,name:n,unit:i}=e;return Object(d.jsxs)("li",{style:{display:"table-row"},children:[Object(d.jsx)("div",{style:{display:"table-cell",paddingRight:12},children:!!t&&Object(d.jsxs)(l.cb,{size:"md",align:"end",children:[t," ",i]})}),Object(d.jsx)("div",{style:{display:"table-cell"},children:Object(d.jsx)(l.cb,{size:"md",children:n})})]})};var v=({blocks:e,recipeData:t})=>{const{serving_size:n,cooking_time:a,prep_time:s}=t,c="number"==typeof a&&"number"==typeof s?a+s:null,u=n?Object(r.a)(o.a.ngettext("{{servingSize}} serving","{{servingSize}} servings",n,"number of servings for a recipe","number of servings for a recipe"),{servingSize:n}):null;return Object(d.jsxs)(i.Fragment,{children:[Object(d.jsxs)(l.f,{marginBottom:4,marginTop:5,children:[Object(d.jsx)(l.u,{overflow:"normal",size:"md",children:o.a._("Ingredients","Heading for list of ingredients","Heading for list of ingredients")}),Object(d.jsxs)(l.f,{marginTop:2,display:"flex",alignItems:"center",children:[!!c&&Object(d.jsx)(f.a,{bold:!1,color:"gray",iconSize:14,textSize:"md",timeString:Object(m.a)(Object(b.a)({m:c}))||""}),!!c&&u&&Object(d.jsx)(l.f,{paddingX:1,children:Object(d.jsx)(l.cb,{color:"gray",size:"md",children:"•"})}),u&&Object(d.jsx)(l.cb,{color:"gray",size:"md",children:u})]})]}),Object(d.jsx)("ul",{children:e&&e.filter(j).map((e,t)=>Object(d.jsx)(y,{block:e},e.name||t))})]})};const O=e=>e.type===_.a.SUPPLY;var x=({block:e})=>{if(e.type!==_.a.SUPPLY)return null;const{name:t,amt:n}=e;return Object(d.jsxs)("li",{style:{display:"table-row"},children:[Object(d.jsx)("div",{style:{display:"table-cell",paddingRight:12},children:!!n&&Object(d.jsx)(l.cb,{size:"md",align:"end",children:n})}),Object(d.jsx)("div",{style:{display:"table-cell"},children:Object(d.jsx)(l.cb,{size:"md",children:t})})]})};var w=({blocks:e,diyData:t})=>{const{difficulty:n}=t,r={1:o.a._("Easy","difficulty level of easy DIY tutorial","difficulty level of easy DIY tutorial"),2:o.a._("Intermediate","difficulty level of medium DIY tutorial","difficulty level of medium DIY tutorial"),3:o.a._("Expert","difficulty level of hard DIY tutorial","difficulty level of hard DIY tutorial")};return Object(d.jsxs)(i.Fragment,{children:[Object(d.jsxs)(l.f,{marginBottom:4,marginTop:5,children:[Object(d.jsx)(l.u,{overflow:"normal",size:"md",children:o.a._("Supplies","Heading for list of supplies","Heading for list of supplies")}),!!n&&Object(d.jsx)(l.f,{marginTop:2,display:"flex",alignItems:"center",children:Object(d.jsx)(l.cb,{color:"gray",size:"md",children:Object(a.b)(o.a._("Difficulty: {{difficultyLevel}}","Label indicating the difficulty level of a tutorial","Label indicating the difficulty level of a tutorial"),{difficultyLevel:r[n]})})})]}),Object(d.jsx)("ul",{children:e&&e.filter(O).map((e,t)=>Object(d.jsx)(x,{block:e},e.name||t))})]})};function S({detailsPage:e,metadata:t}){if(!t)return null;if(t.basics&&Object.keys(t.basics).length>0&&((n=t.basics).key_value_blocks&&n.key_value_blocks.length>0||n.list_blocks&&n.list_blocks.length>0))return Object(d.jsx)(g,{keyValueBlocks:t.basics.key_value_blocks||[],listBlocks:t.basics.list_blocks||[]});var n;switch(t.template_type){case 1:return!!t.recipe_data&&Object(d.jsx)(v,{blocks:null==e?void 0:e.blocks,recipeData:t.recipe_data});case 2:return!!t.diy_data&&Object(d.jsx)(w,{blocks:null==e?void 0:e.blocks,diyData:t.diy_data});default:return null}}},"8mvW":function(e,t){e.exports="https://s.pinimg.com/webapp/goodIdea-3a74afad.svg"},"8nxc":function(e,t,n){var i=n("RNo4");const o={asset_picker:{authOnly:!0,partnerOnly:!0,experiment:"web_pin_builder_asset_picker",groups:/^(enabled|employees)/,scenarios:["default"]},asset_picker_dropbox:{experiment:"web_pin_builder_dropbox",groups:/^(employees|enabled)/,authOnly:!0,partnerOnly:!0},carousel:{authOnly:!0,partnerOnly:!0},editing:{authOnly:!0,partnerOnly:!0},education:{authOnly:!0,partnerOnly:!0},offsitePinCreation:{authOnly:!0,scenarios:["offsite_pin_creation"]},layouts:{authOnly:!0,partnerOnly:!0,scenarios:["default","ad_creation","story_pin"]},linkStatusValidation:{authOnly:!0,partnerOnly:!0},rename:{experiment:"web_sp2s",groups:/^(employees|enabled)/,authOnly:!0,partnerOnly:!1,scenarios:["story_pin_v2"]},requireLink:{scenarios:["ad_creation"]},multi_pin:{authOnly:!0,partnerOnly:!0,scenarios:["default","ad_creation"]},multi_pin_pinner:{authOnly:!0,partnerOnly:!1,scenarios:["default"]},offsite_pin_creation_multi_select:{authOnly:!0,partnerOnly:!1,experiment:"web_offsite_pin_creation_multi_select",groups:/^(enabled|employees|enabled_redirect_to_hf)/,scenarios:["offsite_pin_creation"]},imageSignals:{authOnly:!0,partnerOnly:!0,experiment:"pin_quality_signal_image",groups:/^(employees|enabled)/},scheduling:{authOnly:!0,partnerOnly:!0,scenarios:["default"]},shop_the_pin:{authOnly:!0,partnerOnly:!0},storyPinCommentsPermissions:{authOnly:!0,partnerOnly:!1,experiment:"web_story_pin_publish_comments_permissions",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]},storyPinExpressive:{authOnly:!0,partnerOnly:!1,experiment:"web_story_pin_creator",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]},storyPinLimitedEdits:{authOnly:!0,partnerOnly:!1,experiment:"web_story_pin_limit_edits",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]},storyPinMetadataLists:{authOnly:!0,partnerOnly:!1,experiment:"web_story_pin_metadata_lists",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]},storyPinMetadataListsExpanded:{authOnly:!0,partnerOnly:!1,experiment:"web_story_pin_metadata_lists_expanded",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]},storyPinMetadataModule:{authOnly:!0,partnerOnly:!1,experiment:"web_sp_create_metadata",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]},storyPinMultiSelect:{authOnly:!0,partnerOnly:!1,experiment:"web_story_pin_multi_select",groups:/^(employees|enabled)/,scenarios:["story_pin_v2"]},systemFonts:{authOnly:!0,partnerOnly:!0},tagging:{authOnly:!0,partnerOnly:!0,experiment:"web_pin_builder_tagging",groups:/^(employees|enabled|rollout)/},suppressSuccessModal:{scenarios:["ad_creation","business_nux"]},suppressFirstAdCreate:{scenarios:["first_pin_page"]},useVIP:{authOnly:!0,partnerOnly:!1,experiment:"web_pin_builder_image_preview_endpoint_deprecation",groups:/^(employees|enabled)/},video:{customEnabledCheck:({user:e})=>!(null==e||!e.video_upload_allowed),authOnly:!0},videoEditing:{authOnly:!0,partnerOnly:!0,experiment:"video_edit",groups:/^(employees|enabled)/},videoTagging:{authOnly:!0,partnerOnly:!0,languages:["en"]},videoCollectionsTagging:{authOnly:!0,partnerOnly:!0,experiment:"video_hero_collections",groups:/^(employees|enabled)/},pinQuality:{partnerOnly:!0}};t.a={_experiments:null,_viewer:null,_advertiser:null,_scenario:null,_language:null,_context:null,initialize(e){const{requestContext:t,viewer:n,location:o,advertiser:r,scenario:a}=e;this._context=e,this._experiments=t.experiments,this._language=t.language,this._viewer=n,this._advertiser=r;const{adCreate:s}=Object(i.k)(o.search);this._scenario=a||(s?"ad_creation":"default")},scenario(){return this._scenario},enabled(e){if(!this._viewer||!this._experiments)return!1;const{advertisers:t,authOnly:n,experiment:i,groups:r=/.*/,languages:a,partnerOnly:s,scenarios:c,customEnabledCheck:l}=o[e];return l?l(this._context):!(!t||!this._advertiser||null===this._advertiser.billing_type)||!(n&&!this._viewer.isAuth)&&(!(s&&!this._viewer.isPartner)&&(!(c&&!c.includes(this._scenario))&&(!(a&&!a.includes(this._language))&&(!i||r.test(this._experiments.v2ActivateExperiment(i)||"")))))}}},"9/1D":function(e,t,n){var i=n("q1tI"),o=n("Jr++"),r=n("EC67"),a=n("pTLB");t.a=e=>{const t=Object(r.i)(),n=Object(a.b)();Object(i.useEffect)(()=>{if(n){const{showSignupModal:i,pinLinkClickHandler:r}=n,{mt:a,d:s,l:c,showsignup:l}=Object(o.a)(t.search);s&&a?i(a,{container:e,forceOpen:"t"!==s,skipTrackHistory:!0}):l?i("signup",{source:"defaultSource"}):c&&r&&r()}},[e,t,!!n])}},"9EBm":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("+k3R"),o=n("slCJ"),r=n("4vzw"),a=n("5ARb"),s=n("nrB0"),c=n("nwWm"),l=n("E3gc"),d=n("QWfI"),u=n("2S0S");t.default=function(e,t,n,p){void 0===p&&(p={}),i.default("DragSource","type, spec, collect[, options]",e,t,n,p);var h=e;"function"!=typeof e&&(u(l.default(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),h=function(){return e}),u(d.isPlainObject(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var g=a.default(t);return u("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),u(d.isPlainObject(p),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return o.default({containerDisplayName:"DragSource",createHandler:g,registerHandler:r.default,createConnector:function(e){return new c.default(e)},createMonitor:function(e){return new s.default(e)},DecoratedComponent:e,getType:h,collect:n,options:p})}}},"9b+k":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getDataFromDataTransfer=function(e,t,n){var i=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=i?i:n}},A0Lk:function(e,t,n){!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(e)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function i(e,t){e.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function o(e){var t=e.a.offsetWidth,n=t+100;return e.f.style.width=n+"px",e.c.scrollLeft=n,e.b.scrollLeft=e.b.scrollWidth+100,e.g!==t&&(e.g=t,!0)}function r(e,n){function i(){var e=r;o(e)&&e.a.parentNode&&n(e.g)}var r=e;t(e.b,i),t(e.c,i),o(e)}function a(e,t){var n=t||{};this.family=e,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var s=null,c=null,l=null,d=null;function u(){return null===d&&(d=!!document.fonts),d}function p(){if(null===l){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(t){}l=""!==e.style.font}return l}function h(e,t){return[e.style,e.weight,p()?e.stretch:"","100px",t].join(" ")}a.prototype.load=function(e,t){var o=this,a=e||"BESbswy",l=0,d=t||3e3,p=(new Date).getTime();return new Promise((function(e,t){if(u()&&!function(){if(null===c)if(u()&&/Apple/.test(window.navigator.vendor)){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);c=!!e&&603>parseInt(e[1],10)}else c=!1;return c}()){var g=new Promise((function(e,t){!function n(){(new Date).getTime()-p>=d?t(Error(d+"ms timeout exceeded")):document.fonts.load(h(o,'"'+o.family+'"'),a).then((function(t){1<=t.length?e():setTimeout(n,25)}),t)}()})),m=new Promise((function(e,t){l=setTimeout((function(){t(Error(d+"ms timeout exceeded"))}),d)}));Promise.race([m,g]).then((function(){clearTimeout(l),e(o)}),t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()})):document.attachEvent("onreadystatechange",(function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())}))}((function(){function c(){var t;(t=-1!=f&&-1!=b||-1!=f&&-1!=_||-1!=b&&-1!=_)&&((t=f!=b&&f!=_&&b!=_)||(null===s&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),s=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=s&&(f==j&&b==j&&_==j||f==y&&b==y&&_==y||f==v&&b==v&&_==v)),t=!t),t&&(O.parentNode&&O.parentNode.removeChild(O),clearTimeout(l),e(o))}var u=new n(a),g=new n(a),m=new n(a),f=-1,b=-1,_=-1,j=-1,y=-1,v=-1,O=document.createElement("div");O.dir="ltr",i(u,h(o,"sans-serif")),i(g,h(o,"serif")),i(m,h(o,"monospace")),O.appendChild(u.a),O.appendChild(g.a),O.appendChild(m.a),document.body.appendChild(O),j=u.a.offsetWidth,y=g.a.offsetWidth,v=m.a.offsetWidth,function e(){if((new Date).getTime()-p>=d)O.parentNode&&O.parentNode.removeChild(O),t(Error(d+"ms timeout exceeded"));else{var n=document.hidden;!0!==n&&void 0!==n||(f=u.a.offsetWidth,b=g.a.offsetWidth,_=m.a.offsetWidth,c()),l=setTimeout(e,50)}}(),r(u,(function(e){f=e,c()})),i(u,h(o,'"'+o.family+'",sans-serif')),r(g,(function(e){b=e,c()})),i(g,h(o,'"'+o.family+'",serif')),r(m,(function(e){_=e,c()})),i(m,h(o,'"'+o.family+'",monospace'))}))}))},e.exports=a}()},A9EP:function(e,t,n){n.r(t),n.d(t,"getPinResourceOptions",(function(){return N})),n.d(t,"default",(function(){return B}));var i=n("lnDX"),o=n("WX9e"),r=n("EG5v"),a=n("ovLG"),s=n("q1tI"),c=n("o0wi"),l=n("ihsa"),d=n("K7un"),u=n("0XI0"),p=n("3gMK"),h=n("lEeg"),g=n("62uD"),m=n("tAJF"),f=n("GfrH"),b=n("DzJC"),_=n.n(b),j=n("2MPc"),y=n("9/1D"),v=n("2qKt"),O=n("n6mq"),x=n("Vzit"),w=n("zRck"),S=n("U4JR"),C=n("pLLR"),k=n("XZ+i"),T=n("28DW"),E=n("yjg8"),I=n("nKUr");const P=Object(v.a)(1000150)((function({dispatch:e,pin:t}){var n;const{id:i,category:r}=t,a=Object(C.d)(),{hybridTier:b,modalOpened:v}=Object(k.c)(),P=o.a.PIN,{experiments:D,isBot:A,locale:L}=a,R=!!t.story_pin_data,M=(null===(n=t.pin_join)||void 0===n?void 0:n.seo_breadcrumbs)||[],F=A?E.a:E.k;Object(s.useEffect)(()=>{Object(T.i)({action:"visit",page:"pin"}),Object(T.a)(`unauth.pin_page.pin_category.${r}.${b}`),Object(T.h)("view_pin_page"),j.a.logUrlAndFirstPinImageSig(t.image_signature||""),j.a.logUnauthPins([t]),Object(T.a)("unauth.desktop.open_pin_page.viewed"),(e=>{const t=""!==document.referrer?document.referrer:void 0;let n;if(t)try{n=new URL(t).origin}catch(i){}Object(S.b)(6938,{view:3,viewParameter:3105,pin_id:e,first_pin_id:e,objectId:e,referrer:n})})(i),e(Object(x.c)(1000150))},[]),Object(y.a)(w.e),(e=>{Object(s.useEffect)(()=>{const t=_()(()=>{Object(S.b)(110,{view:3,viewParameter:3105,unauth_page_pin_id:e})},300);return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[])})(i);const N=(({experiments:e,hideMeta:t,hideAllMeta:n,isBot:i,locale:o,numServerRenderedPins:r,pageType:a,pins:s})=>{const c=r?Object(h.a)({experiments:e,hideMeta:t,hideAllMeta:n,isBot:i,locale:o,numServerRenderedPins:r,pageType:a,pins:s}):Object(g.a)();return Object(u.a)()+c+Object(p.a)()+Object(f.a)()})({experiments:D,hideMeta:!1,hideAllMeta:!1,isBot:A,locale:L,numServerRenderedPins:F,pageType:P,pins:[]});return Object(I.jsxs)("main",{"data-test-id":"unauthPinPage",children:[Object(I.jsx)(l.a,{unsafeCSS:N}),Object(I.jsxs)(O.f,{id:"desktopWrapper",children:[Object(I.jsx)("div",{children:Object(I.jsxs)(O.f,{height:450,width:"100%",dangerouslySetInlineStyle:{__style:{padding:"64px 0 0"}},children:[!!M.length&&Object(I.jsx)(O.f,{display:"flex",justifyContent:"center",marginTop:9,"data-test-id":"UnauthPinPageBreadCrumbsContainer",children:Object(I.jsx)(c.a,{breadcrumbs:M})}),Object(I.jsx)(m.a,{closeupPin:t,modalOpened:v,isStoryPin:R})]})}),Object(I.jsx)(d.a,{pin:t,pinner:t.pinner})]})]})}));var D=Object(s.memo)(P),A=n("mG99"),L=n("w70y"),R=n("x83E"),M=n("EC67"),F=n("75Er");const N=e=>({id:e,field_set_key:"unauth_react_main_pin",get_page_metadata:"seo"});function B(e){const t=Object(M.j)(),n=Object(L.a)({name:"PinResource",options:N(t.id||"")}),s=t.id;Object(F.b)({view_type:3,object_id_str:s,view_data:{pin_id:s}});const c=n.data;if(n.error)return Object(I.jsx)(r.a,{error:n.error});if(!n.isLoaded||!c){const e=window&&window.innerWidth||1366,t=window&&window.innerHeight||768;return Object(I.jsx)(A.a,{windowWidth:e,windowHeight:t})}return Object(I.jsx)(i.a,{surface:"pin_closeup",constraints:[R.a],children:Object(I.jsx)(a.a,{pageType:o.a.PIN,isStoryPin:!!c.story_pin_data,children:Object(I.jsx)(D,{pin:c})})})}},ARZW:function(e,t,n){n.d(t,"d",(function(){return u})),n.d(t,"h",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"f",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"g",(function(){return f})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return _})),n.d(t,"i",(function(){return O})),n.d(t,"j",(function(){return S}));var i=n("7w6Q"),o=n("kmwA"),r=n("ZNVR"),a=n("0G5S");const{ADMO_TV_WEB_PIXEL_URL:s,ADMO_TV_LOGIN_EVENT_PIXEL_URL:c,ADMO_TV_REGISTRATION_EVENT_PIXEL_URL:l,ADMO_TV_BILLING_ACCOUNT_CONVERSION_EVENT_PIXEL_URL:d}=o.a.settings,u="admo-tv-d-ses",p="admo-tv-m-ses",h="admo-tv-d-login",g="admo-tv-m-login",m="admo-tv-d-reg",f="admo-tv-m-reg",b="admo-tv-d-billing",_="admo-tv-m-billing",j={"admo-tv-d-login":c,"admo-tv-m-login":c,"admo-tv-d-reg":l,"admo-tv-m-reg":l,"admo-tv-d-billing":d,"admo-tv-m-billing":d};function y(e,t){i.a.increment("admo_tracking_pixel",1,{event_category:e,event_name:"All"}),"All"!==t&&i.a.increment("admo_tracking_pixel",1,{event_category:e,event_name:t})}function v(){for(const t of Object.keys(j)){let n=Object(a.a)(t);if(n){var e;const i=Object(r.a)({src:j[t],id:t,height:1,width:1,sandbox:"allow-scripts",style:"display:none;"});null===(e=document.body)||void 0===e||e.appendChild(i),n=n.split("#");const[o,s]=n;y(o,s),Object(a.b)(t)}}}function O(e,t){function n(e,t){var n;const i=Object(r.a)({src:s,id:e,height:1,width:1,sandbox:"allow-scripts",style:"display:none;"});null===(n=document.body)||void 0===n||n.appendChild(i),t(),v()}document.getElementById(e)?v():("complete"===document.readyState&&n(e,t),window.addEventListener("load",function e(t,i){return o=>{n(t,i),window.removeEventListener(o,e)}}(e,t)))}function x(e,t,n){j[e]&&Object(a.c)(e,`${t}#${n}`)}function w(e,t,n){return i=>{x(e,t,n),window.removeEventListener(i,w)}}function S(e,t,n){"complete"===document.readyState?x(e,t,n):window.addEventListener("load",w(e,t,n))}},AYc3:function(e,t,n){n.d(t,"d",(function(){return D})),n.d(t,"f",(function(){return A})),n.d(t,"b",(function(){return L})),n.d(t,"l",(function(){return R})),n.d(t,"h",(function(){return M})),n.d(t,"e",(function(){return F})),n.d(t,"k",(function(){return N})),n.d(t,"c",(function(){return B})),n.d(t,"m",(function(){return U})),n.d(t,"i",(function(){return z})),n.d(t,"j",(function(){return W})),n.d(t,"a",(function(){return V})),n.d(t,"g",(function(){return G}));var i=n("7w6Q"),o=n("0G5S");var r=n("aldu"),a=n("kmwA"),s=n("ZNVR");const{FLASHTALKING_DWEB_SESSION_PIXEL_START:c,FLASHTALKING_DWEB_SESSION_PIXEL_END:l,FLASHTALKING_MWEB_SESSION_PIXEL_START:d,FLASHTALKING_MWEB_SESSION_PIXEL_END:u,FLASHTALKING_DWEB_LOGIN_PIXEL_START:p,FLASHTALKING_DWEB_LOGIN_PIXEL_END:h,FLASHTALKING_MWEB_LOGIN_PIXEL_START:g,FLASHTALKING_MWEB_LOGIN_PIXEL_END:m,FLASHTALKING_DWEB_REGISTER_PIXEL_START:f,FLASHTALKING_DWEB_REGISTER_PIXEL_END:b,FLASHTALKING_MWEB_REGISTER_PIXEL_START:_,FLASHTALKING_MWEB_REGISTER_PIXEL_END:j,FLASHTALKING_DWEB_BUSINESS_PIXEL_START:y,FLASHTALKING_DWEB_BUSINESS_PIXEL_END:v}=a.a.settings,O={"flashtalking-d-ses":[c,l],"flashtalking-m-ses":[d,u],"flashtalking-d-login":[p,h],"flashtalking-m-login":[g,m],"flashtalking-d-reg":[f,b],"flashtalking-m-reg":[_,j],"flashtalking-bus":[y,v]},x=["flashtalking-d-login","flashtalking-m-login","flashtalking-d-reg","flashtalking-m-reg"];function w(e,t){i.a.increment("flashtalking_tracking_pixel",1,{event_category:e,event_name:"All"}),"All"!==t&&i.a.increment("flashtalking_tracking_pixel",1,{event_category:e,event_name:t})}function S(){for(const t of x){let n=Object(o.a)(t);if(n){var e;const i=Object(s.a)({src:O[t][0]+Object(s.d)()+O[t][1],id:t,height:1,width:1,style:"display:none;"});null===(e=document.body)||void 0===e||e.appendChild(i),n=n.split("#");const[r,a]=n;w(r,a),Object(o.b)(t)}}}function C(e,t){function n(e,t){var n;const i=Object(s.a)({src:O[e][0]+Object(s.d)()+O[e][1],id:e,height:1,width:1,style:"display:none;"});null===(n=document.body)||void 0===n||n.appendChild(i),t(),S()}document.getElementById(e)?S():("complete"===document.readyState&&n(e,t),window.addEventListener("load",function e(t,i){return o=>{n(t,i),window.removeEventListener(o,e)}}(e,t)))}function k(e,t,n,i){x.find(t=>t===e)?Object(o.c)(e,`${t}#${n}`):C(e,i)}function T(e,t,n,i){return o=>{k(e,t,n,i),window.removeEventListener(o,T)}}var E=n("looy"),I=n("ARZW"),P=n("sYwW");function D(){Object(P.a)(),Object(P.b)("PageView",()=>{i.a.increment("fb_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"})}),Object(P.b)("ViewContent",()=>{i.a.increment("fb_tracking_pixel",1,{event_category:"ViewContent",event_name:"AuthViews"})})}function A(){!function(){function e(){const e=document.createElement("script");function t(){dataLayer.push(arguments)}e.src="https://www.googletagmanager.com/gtag/js?id=AW-819016158",e.async=!0,document.body.insertBefore(e,document.body.firstChild),window.dataLayer=window.dataLayer||[],t("js",new Date),t("config","AW-819016158"),t("event","page_view",{send_to:"AW-819016158"})}"complete"===document.readyState&&e(),window.addEventListener("load",e)}()}function L(e){if(e){const t=e.unauthId,n=e.userId;t&&n&&(Object(o.a)("dpm_pixel_login_event")?Object(E.b)(t,n,()=>{i.a.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.a.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"AuthViews"})}):Object(E.b)(t,n,()=>{i.a.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.a.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"AuthViews"}),i.a.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"UniqueViews"})}))}}function R(e){if(e){const t=e.unauthId;t&&Object(E.c)(t,()=>{i.a.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.a.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"UnAuthViews"}),i.a.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"UniqueViews"})})}}function M(e){if(e){const t=e.pixelId,n=e.userId?e.userId:"",o=e.eventCategory,r=e.eventName;t&&o&&r&&Object(E.d)(t,n,o,r,()=>{i.a.increment("dpm_tracking_pixel",1,{event_category:o,event_name:"All"}),"All"!==r&&i.a.increment("dpm_tracking_pixel",1,{event_category:o,event_name:r})})}}function F(e){if(e){const t=e.id,n=e.eventName;t&&n&&C(t,()=>{i.a.increment("flashtalking_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.a.increment("flashtalking_tracking_pixel",1,{event_category:"PageView",event_name:n})})}}function N(e){if(e){const t=e.id,n=e.eventCategory,o=e.eventName;t&&n&&o&&function(e,t,n,i){"complete"===document.readyState?k(e,t,n,i):window.addEventListener("load",T(e,t,n,i))}(t,n,o,()=>{i.a.increment("flashtalking_tracking_pixel",1,{event_category:n,event_name:"All"}),"All"!==o&&i.a.increment("flashtalking_tracking_pixel",1,{event_category:n,event_name:o})})}}function B(e){if(e){const t=e.unauthId,n=e.userId;t&&n&&Object(r.b)(t,n,()=>{i.a.increment("dentsu_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.a.increment("dentsu_tracking_pixel",1,{event_category:"PageView",event_name:"AuthViews"})})}}function U(e){if(e){const t=e.unauthId;t&&Object(r.d)(t,()=>{i.a.increment("dentsu_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.a.increment("dentsu_tracking_pixel",1,{event_category:"PageView",event_name:"UnAuthViews"})})}}function z(e){if(e){const t=e.pixelId,n=e.eventCategory,i=e.eventName;t&&n&&i&&Object(r.e)(t,n,i)}}function W(){Object(r.c)(()=>{i.a.increment("dentsu_tracking_pixel",1,{event_category:"PageViews (Facebook)",event_name:"AllViews"})})}function V(e){if(e){const t=e.id,n=e.eventName;t&&n&&Object(I.i)(t,()=>{i.a.increment("admo_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.a.increment("admo_tracking_pixel",1,{event_category:"PageView",event_name:n})})}}function G(e){if(e){const t=e.id,n=e.eventCategory,i=e.eventName;t&&n&&i&&Object(I.j)(t,n,i)}}},Ak65:function(e,t,n){var i=n("q1tI"),o=n("ou9u"),r=n("nhss"),a=n("hFNL"),s=n("/MKj"),c=n("ajUs"),l=n("EC67");var d=n("gYog"),u=n("0nTG"),p=n("nKUr");t.a=function(e){const{borderRadius:t,carouselTagColor:n,clientJsActive:h,componentType:g,contextLogData:m,desktopUnauthRankingLoggingData:f,disableDeeplinks:b,gutterWidth:_,hideAllMeta:j,hideMeta:y,hideVaseTags:v,isPaidTraffic:O,isPositionRelative:x,isRelatedPin:w,maxPinImageHeight:S,numServerRenderedPins:C,openInCurrentTab:k,pin:T,pinHeight:E,pinImageClickHandler:I,pinImageSize:P,pinImageWidthMax:D,pinLinkClickHandler:A,pinNumber:L,pinWrapperBackgroundColor:R,resizeHandler:M,secondaryFeed:F,showSeeMore:N,slotIndex:B,srcSet:U,viewData:z,viewParameter:W,viewType:V}=e,[G]=Object(i.useState)(!0),[H,q]=Object(i.useState)(!1),[Y,K]=Object(i.useState)(""),$=function(e){const t=Object(l.i)(),n=Object(s.useSelector)(e=>{var t;return null===(t=e.history)||void 0===t?void 0:t.previous});return Object(c.a)(e,t,n)}(T),X={pwa_type:Object(a.b)("undefined"!=typeof window?window:null)},J=O||!1,Z=y||!1,Q=j||!1,ee=C||0,te=h||!1,ne=S||0;Object(i.useEffect)(()=>{const e=Object(o.a)(T),t=!!(e&&e.url&&e.height&&e.width)||void 0,n=e&&T.videos?T.videos.id:void 0;q(t),K(n)},[T]);const ie={...X,...m,unauth_data:"true",...Object(u.f)(T,m)},oe={isNativeVideoAndWatchable:H,videoIdStr:Y,clientTrackingParams:$||(T.tracking_params||"")+"-0",imageURL:T.images&&T.images["236x"].url,richTypes:Object(u.e)(T)};return Object(p.jsx)(d.a,{componentType:g,contextLogData:ie,impressionAuxFields:oe,impressionType:"Pin",isPaused:!G,loggingId:T.id,slotIndex:B,viewData:z,viewParameter:W,viewType:V,children:({impressionTrackerRef:e})=>Object(p.jsx)(r.b,{borderRadius:t,carouselTagColor:n,clientJsActive:te,desktopUnauthRankingLoggingData:f,disableDeeplinks:b,gutterWidth:_,hideAllMeta:Q,hideMeta:Z,hideVaseTags:v,isPaidTraffic:J,isPositionRelative:x,isRelatedPin:w,maxPinImageHeight:ne,numServerRenderedPins:ee,openInCurrentTab:!!k,pin:T,pinHeight:E,pinImageClickHandler:I,pinImageSize:P,pinImageWidthMax:D,pinLinkClickHandler:A,pinNumber:L,pinWrapperBackgroundColor:R,ref:e,resizeHandler:M,secondaryFeed:F,showSeeMore:N,slotIndex:B,srcSet:U,viewParameter:W})})}},AnoD:function(e,t,n){var i=n("q1tI"),o=n("/MKj"),r=n("zFhk"),a=n("a8hX"),s=n("JKZO"),c=n("Ye/N"),l=n("4cpq"),d=n("aUfZ"),u=n("i9se"),p=n("xmd6"),h=n("ANjH"),g=n("4KlH"),m=n("U4JR"),f=n("eIuQ"),b=n("n6mq"),_=n("nKUr");function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={isTextChanged:!1,showConfirmDiscardModal:!1,submissionInProgress:!1,textValue:"",userMentionOverLimitError:!1};class v extends i.Component{constructor(...e){super(...e),j(this,"state",{...y,tags:this.props.tags||[],textValue:this.props.text||""}),j(this,"countTags",()=>this._textAreaRef&&this._textAreaRef.innerHTML?this._textAreaRef.querySelectorAll(".communityEditorMention").length:0),j(this,"setRef",e=>this._textAreaRef=e),j(this,"handleFocus",()=>{this.props.onEnter()}),j(this,"handleChange",({text:e,mentions:t})=>{t.length<this.state.tags.length&&Object(m.b)(8906,{tag_type:1}),this.setState({isTextChanged:!0,textValue:e,tags:t,userMentionOverLimitError:t.length>g.b})}),j(this,"handleOnClickEdit",()=>{const{onEditItem:e}=this.props;let t={};const{textValue:n,tags:i}=this.state;t={contentMarkdown:n,imageSignatures:"",objectIds:[],tags:JSON.stringify(i)},e&&e(t),this.setState({submissionInProgress:!1})}),j(this,"handleOnClickPost",()=>{this.state.userMentionOverLimitError||(this.setState({submissionInProgress:!0}),this.handleOnClickPostFinal())}),j(this,"handleOnClickPostFinal",()=>{const{onAddItem:e}=this.props;let t={};const{textValue:n,tags:i}=this.state;t={contentMarkdown:n,imageSignatures:"",objectIds:[],tags:JSON.stringify(i)},e&&e(t),this.setState(y)}),j(this,"handleOnFinalDiscardItem",()=>{const{onCancelItem:e}=this.props;this.setState(y),e()}),j(this,"handleTextChange",e=>{this.setState({isTextChanged:!(!this._textAreaRef||!this._textAreaRef.textContent.trim())&&e,userMentionOverLimitError:this.countTags()>g.b})}),j(this,"isSubmitEditDisabled",()=>{const{isTextChanged:e}=this.state;return!e}),j(this,"toggleShowConfirmDiscardModal",()=>{const{showConfirmDiscardModal:e}=this.state;this.setState({showConfirmDiscardModal:!e})}),j(this,"renderConfirmDiscardModal",()=>{const{statusType:e}=this.props;let t,n;return"textInFlightEdit"===e?(t=c.a._("Your changes will be discarded","Confirmation dialog before discarding changes","Confirmation dialog before discarding changes"),n=c.a._("Discard changes","Clear edits","Clear edits")):(t=c.a._("Once you delete a draft, you can’t undo it","Confirmation before discarding changes","Confirmation before discarding changes"),n=c.a._("Delete","delete draft of a post or comment","delete draft of a post or comment")),Object(_.jsx)(a.a,{accessibilityModalLabel:c.a._("Confirm discard composer","Confirm discarding a post or comment","Confirm discarding a post or comment"),heading:c.a._("Are you sure?","Confirm discarding a post or comment","Confirm discarding a post or comment"),cancelButtonText:c.a._("Cancel","Cancel discarding a post or comment","Cancel discarding a post or comment"),confirmButtonText:n,detail:t,onConfirm:this.handleOnFinalDiscardItem,onDismiss:this.toggleShowConfirmDiscardModal})}),j(this,"getReplyToEntity",e=>[e?`@${e.user.username} `:"",e?[{offset:0,object_id:e.user.id,length:e.user.username.length+1,tag_type:1}]:[]])}componentDidUpdate(e){const{statusType:t,objectType:n,parentObjectId:i}=this.props;"textInflightCreation"!==e.statusType&&"textInflightCreation"===t&&Object(m.b)(101,{element:this.composeContextLogElementMap[n],component:this.composeContextLogComponentMap[n],objectId:i})}get isPost(){const{objectType:e}=this.props;return e===u.a.BOARD_ACTIVITY}get isBoardActivityComment(){return this.props.objectType===u.a.BOARD_ACTIVITY_COMMENT}get isAggregatedComment(){const{objectType:e}=this.props;return e===p.a.pin||e===p.a.didIt||e===p.a.aggregatedComment}get composeContextLogComponentMap(){return{[u.a.BOARD_ACTIVITY_COMMENT]:13191,[u.a.BOARD_ACTIVITY]:13190}}get composeContextLogElementMap(){return{[u.a.BOARD_ACTIVITY_COMMENT]:10624,[u.a.BOARD_ACTIVITY]:10624}}render(){const{avatarSize:e,replyToObject:t,privatePin:n,statusType:i,viewingUser:o}=this.props,{isTextChanged:a,showConfirmDiscardModal:d,submissionInProgress:u,tags:p,textValue:h,userMentionOverLimitError:g}=this.state,j={background:"transparent",border:"0",display:a?"inline-block":"block",minHeight:"textStaticDisplay"===i?"":"50px",fontSize:"16px",outline:"0",overflowX:"hidden",resize:"none",whiteSpace:"pre-wrap",width:"100%"},[y,v]=this.getReplyToEntity(t),O=Object(_.jsx)(b.f,{children:Object(_.jsx)(b.cb,{color:"red",size:"sm",align:"end",children:Object(f.d)(!1)})});let x,w;x=this.isPost?c.a._("Start a discussion","Writing a post","Writing a post"):this.isAggregatedComment&&n?c.a._("Add a public comment","Add a comment","Add a comment"):this.isAggregatedComment?c.a._("Add a comment","Prompt to add a comment","Prompt to add a comment"):this.isBoardActivityComment?c.a._("Add comment","Prompt to add a comment","Prompt to add a comment"):c.a._("Reply","Adding text to a community comment","Adding text to a community comment"),w=this.isPost?c.a._("Post","Create a post","Create a post"):this.isAggregatedComment?c.a._("Done","Post a top level comment on a pin or tried it","Post a top level comment on a pin or tried it"):c.a._("Reply","Posting a reply to a post or comment","Posting a reply to a post or comment");const S=a;return"textInflightCreation"===i?Object(_.jsxs)(b.f,{column:12,display:"flex",justifyContent:"center",children:[Object(_.jsxs)(b.f,{width:"100%",children:[Object(_.jsxs)(b.f,{display:"flex",children:[Object(_.jsx)(b.f,{marginEnd:2,children:Object(_.jsx)(r.a,{user:o,size:e})}),Object(_.jsx)(b.f,{borderStyle:"sm",padding:3,rounding:4,flex:"grow",children:Object(_.jsx)(s.a,{focusOnMount:!0,initialMentions:v,initialText:y,onAddMention:()=>{Object(m.b)(8905,{tag_type:1})},onChange:this.handleChange,onSearchMentionCancel:()=>{Object(m.b)(8908,{tag_type:1})},onSuggestionsPopoverOpen:()=>{Object(m.b)(8907,{tag_type:1})},placeholder:x,privatePin:n})})]}),g&&O,Object(_.jsxs)(b.f,{display:"flex",justifyContent:"end",marginTop:4,children:[Object(_.jsx)(l.a,{id:"activity-item-create-cancel",children:Object(_.jsx)(b.g,{color:"gray",inline:!0,onClick:S?this.toggleShowConfirmDiscardModal:this.handleOnFinalDiscardItem,text:c.a._("Cancel","Cancel making post or comment","Cancel making post or comment")})}),Object(_.jsx)(b.f,{marginStart:2,children:Object(_.jsx)(l.a,{id:"activity-item-create-submit",children:Object(_.jsx)(b.g,{color:"red",disabled:!a||u||!h.length,inline:!0,onClick:this.handleOnClickPost,text:w})})})]})]}),d&&this.renderConfirmDiscardModal()]}):"textInFlightEdit"===i?Object(_.jsxs)(b.f,{column:12,display:"flex",justifyContent:"center",children:[Object(_.jsxs)(b.f,{width:"100%",children:[Object(_.jsx)(b.f,{display:"flex",children:Object(_.jsx)(b.f,{width:"100%",padding:4,rounding:4,children:Object(_.jsx)(s.a,{focusOnMount:!0,initialMentions:p,initialText:h,onAddMention:()=>{Object(m.b)(8905,{tag_type:1})},onChange:this.handleChange,onSearchMentionCancel:()=>{Object(m.b)(8908,{tag_type:1})},onSuggestionsPopoverOpen:()=>{Object(m.b)(8907,{tag_type:1})},placeholder:x})})}),g&&O,Object(_.jsxs)(b.f,{display:"flex",justifyContent:"end",marginTop:4,children:[Object(_.jsx)(b.g,{color:"gray",inline:!0,onClick:S?this.toggleShowConfirmDiscardModal:this.handleOnFinalDiscardItem,text:c.a._("Cancel","Cancel making post or comment","Cancel making post or comment")}),Object(_.jsx)(b.f,{marginStart:2,children:Object(_.jsx)(b.g,{color:"red",disabled:this.isSubmitEditDisabled()||u,inline:!0,onClick:this.handleOnClickEdit,text:c.a._("Save","comment save button","comment save button")})})]})]}),d&&this.renderConfirmDiscardModal()]}):Object(_.jsx)(b.f,{alignItems:"center",display:"flex",justifyContent:"between",rounding:2,children:Object(_.jsx)("div",{"aria-label":c.a._("Add comment field","ActivityItemCreate.textbox.accessibilityLabel","Textbox for comment field."),onKeyDown:this.handleFocus,onClick:this.handleFocus,role:"textbox",tabIndex:"0",style:{cursor:"text",width:"100%"},children:Object(_.jsxs)(b.f,{column:12,display:"flex",children:[Object(_.jsx)(b.f,{width:48,children:Object(_.jsx)(r.a,{user:o,size:e})}),Object(_.jsx)(b.f,{dangerouslySetInlineStyle:{__style:{borderRadius:"26px"}},width:"100%",height:48,alignItems:"center",display:"flex",marginStart:4,padding:4,borderStyle:"sm",children:Object(_.jsx)("textarea",{"data-test-id":"communityItemTextBox",maxLength:2e3,name:"communityItemTextBox",onFocus:this.handleFocus,placeholder:x,ref:e=>{this._textAreaRef=e},rows:1,style:j})})]})})})}}j(v,"defaultProps",{imageSignature:"",onEnter:()=>{},showWelcomeEducation:!1,text:"",widthAuto:!1});t.a=Object(h.compose)(Object(o.connect)(e=>{const{viewer:t}=e;return{viewingUser:{image_medium_url:t.imageMediumUrl,type:"user",username:t.username,full_name:t.fullName,first_name:"",id:""}}},()=>({})),d.a)(v)},AqTp:function(e,t,n){n.d(t,"a",(function(){return u}));var i=n("Ye/N"),o=n("TgLd"),r=n("qD10"),a=n("kmwA"),s=n("vvax"),c=n("n6mq"),l=n("nKUr");const d=a.a.settings.HELP_BLOCKING+"?source=block_dialogue";function u({firstName:e,onBlockUser:t,onClearModal:n}){const a=Object(s.b)(i.a._("Block {{ firstName }}?","blockUser.modal.header","header text asking if we should block the user"),{firstName:e}).join("");return Object(l.jsxs)(o.b,{accessibilityModalLabel:a,onDismiss:n,heading:a,footer:Object(l.jsxs)(c.f,{marginStart:-1,marginEnd:-1,display:"flex",alignItems:"center",justifyContent:"end",children:[Object(l.jsx)(c.f,{padding:1,children:Object(l.jsx)(c.g,{size:"md",text:i.a._("Cancel","blockUser.modal.cancel","Cancel blocking a user"),onClick:n})}),Object(l.jsx)(c.f,{padding:1,children:Object(l.jsx)(c.g,{size:"md",color:"red",text:i.a._("Block","Button to confirm blocking a user","Button to confirm blocking a user"),onClick:t})})]}),role:"alertdialog",size:"md",children:[Object(l.jsx)(c.f,{padding:4,"data-test-id":"block-text",children:Object(l.jsx)(c.cb,{children:Object(s.b)(i.a._("Blocking {{ firstName }}, stops messages, follows, and comments. You can still view each other’s profiles.","blockUser.modal.description","explanation of what blocking another user means"),{firstName:e})})}),Object(l.jsx)(c.f,{padding:4,children:Object(l.jsx)(r.a,{external:!0,to:d,children:Object(l.jsx)(c.cb,{color:"darkGray",weight:"bold",children:i.a._("Learn more","link to help center to learn more about blocking","link to help center to learn more about blocking")})})})]})}},AsgO:function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));const i=e=>{e.target&&e.target.style&&(e.target.style["text-decoration"]="underline")},o=e=>{e.target&&e.target.style&&(e.target.style["text-decoration"]="none")}},"B/xd":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("q1tI"),o=n("2S0S");function r(e,t){"function"==typeof e?e(t):e.current=t}t.default=function(e,t){var n=e.ref;return o("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?i.cloneElement(e,{ref:function(e){r(t,e),n&&r(n,e)}}):i.cloneElement(e,{ref:t})}},BEzM:function(e,t,n){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n("7nh8"),r=n("LTlA"),a=n("QLaP");t.default=function(e){return function(t){void 0===t&&(t={});var n=e.getMonitor(),s=e.getRegistry();!function(e){a(e.isDragging(),"Cannot call drop while not dragging."),a(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n),function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n).forEach((function(c,l){var d=function(e,t,n,i){var o=n.getTarget(e),s=o?o.drop(i,e):void 0;(function(e){a(void 0===e||r.isObject(e),"Drop result must either be an object or undefined.")})(s),void 0===s&&(s=0===t?{}:i.getDropResult());return s}(c,l,s,n),u={type:o.DROP,payload:{dropResult:i({},t,d)}};e.dispatch(u)}))}}},BJm1:function(e,t,n){n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return h}));var i=n("uVIr"),o=n("MhBu"),r=n("eOdZ");var a={USER_DID_IT_DATA_CREATE:"USER_DID_IT_DATA_CREATE",USER_DID_IT_DATA_DELETE:"USER_DID_IT_DATA_DELETE",USER_DID_IT_DATA_UPDATE:"USER_DID_IT_DATA_UPDATE",USER_DID_IT_DATA_UPDATE_COMMENT_COUNT:"USER_DID_IT_DATA_UPDATE_COMMENT_COUNT",USER_DID_IT_DATA_FETCH:"USER_DID_IT_DATA_FETCH"},s=n("KFEb");n("Wer7");function c(e){return{type:a.USER_DID_IT_DATA_DELETE,payload:{id:e}}}function l(e,t){return{type:a.USER_DID_IT_DATA_UPDATE_COMMENT_COUNT,payload:{id:e,increment:t}}}function d({aggregatedPinDataId:e,details:t,fromUnifiedComment:n,image_signatures:o,pin_id:c,username:d,updateParentDidItCount:u}){const p={aggregatedPinDataId:e,details:t,image_signatures:o,pin_id:c};return t=>r.a.create("DidItActivityResource",p).callCreate().then(o=>{const r=o.resource_response.data;t({type:"PIN_DID_IT",payload:{id:c,value:!0}}),t({type:a.USER_DID_IT_DATA_CREATE,payload:{user_did_it_data:r}}),t(Object(i.a)({feedId:e,feedType:n?s.a.UNIFIED_COMMENTS:s.a.USER_DID_IT_DATA,itemIds:[r.id],itemType:r.type})),t(Object(i.a)({feedId:d,feedType:s.a.USER_DID_IT_DATA,itemIds:[r.id],itemType:r.type})),u&&t(l(e,1))},e=>{})}function u({aggregatedPinDataId:e,feedType:t,id:n,isOwnedByMe:i,pinId:a,username:d,updateParentDidItCount:u}){return p=>{r.a.create("DidItActivityResource",{user_did_it_data_id:n,pinId:a}).callDelete().then(r=>{i&&p(function(e){return{type:"PIN_DID_IT",payload:{id:e,value:!1}}}(a)),p(c(n)),p(Object(o.a)({feedId:e,feedType:t||s.a.USER_DID_IT_DATA,itemIds:[n],itemType:"userdiditdata"})),p(Object(o.a)({feedId:d,feedType:s.a.USER_DID_IT_DATA,itemIds:[n],itemType:"userdiditdata"})),p(Object(o.a)({feedId:d,feedType:s.a.UNIFIED_COMMENTS,itemIds:[e],itemType:"userdiditdata"})),u&&p(l(n,-1))},e=>{})}}function p({id:e,details:t,image_signatures:n,pinId:i}){const o={details:t,image_signatures:n,user_did_it_data_id:e,pin_id:i};return e=>{r.a.create("DidItActivityResource",o).callUpdate().then(t=>{const n=t.resource_response.data;e(function(e){return{type:a.USER_DID_IT_DATA_UPDATE,payload:{user_did_it_data:e}}}(n))},e=>{})}}function h(e,t,n,i,a){const l={reason:i,detailed_reasons:t,user_did_it_data_id:n};return t=>{r.a.create("DidItActivityFlagResource",l).callCreate().then(()=>{t(c(n)),t(Object(o.a)({feedId:e,feedType:s.a.USER_DID_IT_DATA,itemIds:[n],itemType:"userdiditdata"})),t(Object(o.a)({feedId:a,feedType:s.a.USER_DID_IT_DATA,itemIds:[n],itemType:"userdiditdata"}))},e=>{})}}},Bfq7:function(e,t,n){var i;Object.defineProperty(t,"__esModule",{value:!0});var o=n("QSJg"),r=n("9b+k");t.nativeTypesConfig=((i={})[o.FILE]={exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]},i[o.URL]={exposeProperties:{urls:function(e,t){return r.getDataFromDataTransfer(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]},i[o.TEXT]={exposeProperties:{text:function(e,t){return r.getDataFromDataTransfer(e,t,"")}},matchesTypes:["Text","text/plain"]},i)},Bnd0:function(e,t){e.exports="https://s.pinimg.com/webapp/heartOutline-1f1b1ac2.svg"},"C+VH":function(e,t,n){var i=n("l/EB"),o=n("cPMF"),r=n("HGDa");var a=e=>{if(!Object(o.a)(e)&&!Object(i.a)(e))return-1;const t=new Date(e);if(Number.isNaN(t.getTime()))return-1;const n=t.toISOString().substr(0,10);return new Date(n).getTime()/r.e};t.a=e=>({first_name:e.first_name,last_name:e.last_name,email:e.email,gender:e.gender,image_url:e.image_url,facebook_id:e.id,facebook_token:e.access_token||"",birthday:String(a(e.birthday||""))})},CONZ:function(e,t,n){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var i=n("eOdZ");function o(e,t){return async n=>{const{resource_response:o}=await i.a.create("ApiResource",{url:`/v3/storypins/${e}/mentions/`}).callDelete();return n(function(e,t){return{type:"DELETE_PIN_MENTION",payload:{pinId:e,userId:t}}}(e,t)),o}}function r(e){return async t=>{const{resource_response:n}=await i.a.create("MentionsResource",{aggregatedCommentId:e,field_set_key:"comment"}).callDelete(),{data:o}=n;return t(function(e,t){return{type:"DELETE_COMMENT_MENTION",payload:{aggregatedCommentId:e,tagged_users:t}}}(o.id,o.tagged_users)),n}}},CRJj:function(e,t,n){n.r(t);var i=n("q1tI"),o=n("/MKj"),r=n("FDmi"),a=n("ovj4"),s=n("jfLK"),c=n("TPPM"),l=n("kmwA"),d=n("28DW"),u=n("yweb"),p=n("Zswh"),h=n("1CXt"),g=n("aOj9"),m=n("nKUr");var f=function({component:e}){const{viewer:t}=Object(g.d)(),n=Object(u.c)(),i=Object(p.a)(),o=function(e){return"signup"===e?13096:13867}(e);return Object(m.jsxs)("div",{style:{margin:"10px auto 5px",display:"flex",alignItems:"baseline",width:"fit-content",justifyContent:"center"},children:[Object(m.jsx)("h5",{style:{float:"left",color:"#333",fontSize:"12px",fontWeight:"bold",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},children:n._("Are you a business?","Prompt for business signup","Prompt for business signup")}),Object(m.jsx)("a",{href:l.a.settings.PARTNER_SITE_SIGNUP,onClick:()=>{Object(d.a)("unauth.business_link.click"),i({event_type:101,component:o,element:10281,aux_data:Object(h.a)(t.type)})},style:{cursor:"pointer",marginLeft:"5px",float:"left",color:"#333",fontSize:"12px"},target:"_blank",children:n._("Get started here!","Prompt for signing up","Prompt for signing up")})]})};var b=({css:e={}})=>Object(m.jsx)("div",{style:{borderBottom:"#dedede 1px solid",margin:"5px auto",width:"110px",...e}}),_=n("n6mq");function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class y extends i.Component{constructor(...e){super(...e),j(this,"state",{hover:!1}),j(this,"toggleHover",()=>{this.setState({hover:!this.state.hover})})}render(){const{buttonText:e,fullWidth:t,link:n,onClick:i,title:o,titleStylesOverride:r,useSmallButton:a}=this.props;let c={color:"#5a5a5a",fontWeight:500,fontSize:"12px",...r||{}},l=Object(m.jsx)(s.b,{className:"lightGray",href:n,onClick:i,styleOverrides:{width:t?"100%":"160px",fontSize:"14px",padding:"10px 20px",...t?{marginTop:0}:{}},type:"button",children:e}),d={};if(a){c={...c,float:"left"},d={margin:"0 auto 5px",width:"fit-content",alignItems:"baseline"};const t={color:"#333",marginLeft:"5px",fontWeight:"bold"};l=Object(m.jsx)(_.f,{onMouseEnter:this.toggleHover,onMouseLeave:this.toggleHover,display:"flex",justifyContent:"center",children:Object(m.jsx)(s.b,{className:"noButtonStyles",onClick:i,styleOverrides:t,type:"button",dataTestId:"login-signup-toggle",children:e})})}return Object(m.jsxs)("div",{style:d,children:[o&&Object(m.jsx)("h5",{style:c,children:o}),l]})}}var v=n("QAzJ"),O=n("pLLR"),x=n("Nvmo");const w=({link:e,onClick:t})=>{const n=Object(u.c)(),{anyEnabled:o}=Object(v.a)("advertiser_growth_add_biz_create_unauth");return Object(m.jsxs)(i.Fragment,{children:[Object(m.jsx)(y,{buttonText:n._("Not on Pinterest yet? Sign up","Toggle to switch from the login modal to the sign up modal","Toggle to switch from the login modal to the sign up modal"),link:e,onClick:t,titleStylesOverride:x.e,useSmallButton:!0}),o&&Object(m.jsx)(f,{component:"login"})]})};var S=({handleSignupToggleButtonClick:e,isAccountSwitch:t,toggleType:n})=>{const{isRTL:i}=Object(O.d)();return"NOT_NOW_BUTTON"===n?Object(m.jsxs)("div",{children:[Object(m.jsx)(b,{css:{margin:"10px auto"}}),Object(m.jsx)("div",{style:{display:"inline-block",marginRight:"4px"},children:Object(m.jsx)(w,{onClick:e})}),Object(m.jsx)("div",{})]}):"NO_TOGGLE"===n||t?null:"SMALL_TOGGLE"===n?Object(m.jsxs)("div",{children:[Object(m.jsx)(b,{css:{margin:"10px auto"}}),Object(m.jsx)(w,{onClick:e}),Object(m.jsx)("div",{})]}):Object(m.jsxs)("div",{children:[Object(m.jsx)(b,{css:{...x.d,...i?{margin:"20px 30px 15px -10px"}:{marginLeft:"-10px"}}}),Object(m.jsx)("div",{children:Object(m.jsx)(w,{link:"/signup/",onClick:e})})]})};var C=({onLoginClick:e})=>{const t=Object(u.c)(),{anyEnabled:n}=Object(v.a)("advertiser_growth_add_biz_create_unauth");return Object(m.jsxs)(i.Fragment,{children:[Object(m.jsx)(y,{buttonText:t._("Already a member? Log in","Toggle to switch from the sign up modal to the login modal ","Toggle to switch from the sign up modal to the login modal "),link:"/login/",onClick:e,titleStylesOverride:x.e,useSmallButton:!0}),n&&Object(m.jsx)(f,{component:"signup"})]})};var k=({container:e,handleLoginToggleButtonClick:t,toggleType:n})=>{const{isRTL:i}=Object(O.d)();return"NOT_NOW_BUTTON"===n?Object(m.jsx)("div",{children:Object(m.jsx)("div",{style:{marginTop:"32px"},children:Object(m.jsx)(C,{onLoginClick:t})})}):"home_page"===e?Object(m.jsx)(_.f,{marginTop:3,children:Object(m.jsx)(C,{onLoginClick:t})}):Object(m.jsxs)("div",{children:[Object(m.jsx)(b,{css:{...x.d,...i?{margin:"20px -68px 15px 0px"}:{}}}),Object(m.jsx)("div",{children:Object(m.jsx)(C,{onLoginClick:t})})]})},T=n("Ye/N");var E=function(e){const{container:t}=e;return Object(m.jsxs)(_.f,{rounding:"pill",display:"flex",alignItems:"center",position:"absolute",dangerouslySetInlineStyle:{__style:{width:"484px",backgroundColor:"#EBF4FE",marginTop:"home_page"===t?"68px":"16px",padding:"0px 32px 0px 24px"}},children:[Object(m.jsx)(_.f,{padding:2,color:"blue",rounding:"circle",children:Object(m.jsx)(_.v,{accessibilityLabel:T.a._("Want to learn more before signing up? Visit our blog","web.jp.signup.modal.prod.education.accessibility","web prod education link JP"),color:"white",icon:"question-mark",size:16})}),Object(m.jsx)(_.f,{marginStart:4,paddingY:6,display:"flex",dangerouslySetInlineStyle:{__style:{lineHeight:"20px"}},children:Object(m.jsxs)(_.cb,{children:[T.a._("Want to learn more before signing up?","web.jp.signup.modal.prod.education","web prod education link JP"),Object(m.jsx)(_.B,{inline:!0,target:"blank",href:"https://pinterestjapanblog.com/pinterest-beginners-guide-2020/",onClick:({disableOnNavigation:e})=>{e(),Object(d.a)("web_unauth_jp_learn_more_click")},children:Object(m.jsx)(_.cb,{align:"center",weight:"bold",children:T.a._("Visit our blog","web.jp.signup.visit.prod.education","Upsell prod education link JP")})})]})})]})},I=n("h5nQ"),P=n("G3wy");var D=({email:e,emailError:t,onNotNowClick:n,handleEmailChange:o,handleSubmit:r})=>{const a=Object(u.c)();Object(i.useEffect)(()=>{Object(d.a)("unauth.fb_phone_only_signup.email_step")},[]),a._("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");const s=a._("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 Object(m.jsx)(_.f,{marginTop:3,children:Object(m.jsxs)("form",{method:"post",noValidate:!0,onSubmit:e=>{e.preventDefault(),r()},children:[Object(m.jsx)(_.cb,{align:"start",overflow:"normal",children:s}),Object(m.jsx)(_.f,{marginTop:3}),Object(m.jsx)(_.f,{children:Object(m.jsx)(_.eb,{ref:P.a,errorMessage:Array.isArray(t)?t.join(""):t,id:"email",onChange:o,placeholder:a._("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"})}),Object(m.jsx)(_.f,{marginTop:5}),Object(m.jsx)(_.g,{color:"red",disabled:!e,text:a._("Continue","word on the button which to submit user email information","word on the button which to submit user email information"),type:"submit"}),Object(m.jsx)(_.f,{marginTop:2}),Object(m.jsx)(_.g,{onClick:()=>{Object(d.a)("unauth.fb_phone_only_signup.email_step.not_now_click"),n&&n()},text:a._("Not now","word on not now button to dismiss the collection form","word on not now button to dismiss the collection form"),type:"submit"})]})})},A=n("C+VH"),L=n("j3zy"),R=n("sv3x"),M=n("eOdZ"),F=n("StuW"),N=n("J8m7"),B=n("c50B"),U=n("VL22");function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const W="email";class V extends i.Component{constructor(e){super(e),z(this,"mounted",!1),z(this,"handleEmailChange",({value:e})=>{this.setState({email:e})}),z(this,"showError",(e,t)=>{this.mounted&&t===W&&this.setState({emailError:e})}),z(this,"handleSubmit",()=>{const{i18n:e}=this.props;if(Object(d.a)("unauth.fb_phone_only_signup.submit_email"),this.state.email)Object(d.a)("unauth.fb_phone_only_signup.submit_email"),this.attemptEmailSignupOrLogin();else{const t=e._("Email is required","email error message","email error message");this.setState({emailError:t})}}),z(this,"handleSignupSuccess",()=>{R.b.handleSignupRedirect(this.props.nextUrlParam||window.location.pathname,!0),Object(d.a)("unauth.fb_phone_only_signup.signup_success")}),z(this,"handleSignupFailure",e=>t=>{const{i18n:n}=this.props,i=t.message||n._("Oops! Something went wrong… 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),Object(d.a)("unauth.fb_phone_only_signup.signup_failure")}),z(this,"attemptEmailSignupOrLogin",()=>{const{desktopCoreLoginContext:{facebookAccessTokenRefreshIsEnabled:e,register:t},i18n:n}=this.props,{country:i}=this.props.requestContext,{email:o}=this.state,r=[Object(B.e)({message:n._("Hmm... that doesn't look like an email address.","email error message","email error message")})],a=Object(F.a)(o,r);if(a)return Object(d.a)("unauth.fb_phone_only_signup.email_validation_failure"),void this.setState({emailError:a});const{registrationCredentials:{type:s,credentialsAndLoggingData:c},showSocialSignupWithAgeStep:l,showEmailAlreadyExistModal:u}=this.props,p={email:o,facebook_token:c.facebook_token?c.facebook_token:"",facebook_id:c.facebook_id?c.facebook_id:""};M.a.create("EmailExistsResource",{email:o}).callGet().then(n=>{!1===n.resource_response.data?Object(U.d)(i)?l(s,p,c):Object(L.a)(e,!0).then(A.a).then(e=>t({...e,...p})).then(this.handleSignupSuccess,this.handleSignupFailure(W)):(u(s,p,c),Object(d.a)("unauth.fb_phone_only_signup.email_existed"))},e=>{let t=n._("Hmm... that doesn't look like an email address.","email error message","email error message");e.api_error_code===N.d&&(t=e.message),this.showError(t,W),Object(d.a)("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 Object(m.jsx)("div",{style:{margin:"0 auto",width:"268px"},children:Object(m.jsx)(D,{email:this.state.email,emailError:this.state.emailError,handleEmailChange:this.handleEmailChange,handleSubmit:this.handleSubmit,onNotNowClick:this.props.onNotNowClick})})}}var G=e=>{const t=Object(g.d)(),n=Object(O.d)(),i=Object(u.c)();return Object(m.jsx)(V,{...e,desktopCoreLoginContext:t,i18n:i,requestContext:n})};var H=({onClick:e})=>{const t=Object(O.d)(),n=Object(u.c)();return Object(m.jsx)(_.f,{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:Object(m.jsx)(_.w,{accessibilityLabel:n._("close","accessible label for close button","accessible label for close button"),onClick:e,icon:"cancel",iconColor:"darkGray"})})};function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Y extends i.Component{constructor(...e){super(...e),q(this,"componentDidMount",()=>{const{container:e,hybridTier:t,modalType:n}=this.props;Object(d.a)("web.unauth.modal_title.view"),Object(d.a)(`unauth_web_modal.${e||"unknown"}.${t||"undefined_tier"}.${n}.shown`)}),q(this,"getSignupTitleStyles",()=>{const{darkSignupTitle:e}=this.props;let t={color:"#333",fontSize:"36px",fontWeight:"600",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",letterSpacing:"-1.2px",wordBreak:"break-word"};return e&&(t={...t,color:"#000"}),t})}render(){const{titleText:e}=this.props,t=this.getSignupTitleStyles();return Object(m.jsx)("h3",{style:t,children:e})}}var K=n("Jr++"),$=n("+6dQ");var X=({email:e,emailError:t,onNotNowClick:n,handleEmailChange:o,handleSubmit:r})=>{const a=Object(u.c)();Object(i.useEffect)(()=>{Object(d.a)("unauth.line_missing_email.email_step")},[]),a._("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");const s=a._("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 Object(m.jsx)(_.f,{marginTop:3,children:Object(m.jsxs)("form",{method:"post",noValidate:!0,onSubmit:e=>{e.preventDefault(),r()},children:[Object(m.jsx)(_.cb,{align:"start",overflow:"normal",children:s}),Object(m.jsx)(_.f,{marginTop:3,marginBottom:5,children:Object(m.jsx)(_.eb,{ref:P.a,errorMessage:Array.isArray(t)?t.join(""):t,id:"email",onChange:o,placeholder:a._("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"})}),Object(m.jsx)(_.g,{color:"red",disabled:!e,text:a._("Continue","word on the button which to submit user email information","word on the button which to submit user email information"),type:"submit"}),Object(m.jsx)(_.f,{marginTop:2}),Object(m.jsx)(_.g,{onClick:()=>{Object(d.a)("unauth.line_missing_email.email_step.not_now_click"),n&&n()},text:a._("Not now","word on not now button to dismiss the collection form","word on not now button to dismiss the collection form"),type:"submit"})]})})},J=n("hZxF");const Z=({nextUrlParam:e,loadingIndicatorCallback:t,showEmailAlreadyExistModal:n,onNotNowClick:o,registrationCredentials:r,desktopCoreLoginContext:a,i18n:s})=>{const[c,l]=Object(i.useState)(""),[u,p]=Object(i.useState)("");Object(J.a)(()=>{t(!1)});const h=e=>{p(e)},g=()=>{t(!1),R.b.handleSignupRedirect(e||R.b.defaultSocialLoginRedirectUrl(),!0),Object(d.a)("unauth.line_missing_email.signup_success")},f=e=>{t(!1);const n=e.message||s._("Oops! Something went wrong… Click Continue to try again.","unauth.lineEmailCollect.error","Error during signup during Line email collection step");h(n),Object(d.a)("unauth.line_missing_email.signup_failure")};return Object(m.jsx)(_.f,{marginTop:0,marginBottom:0,marginStart:"auto",marginEnd:"auto",width:268,children:Object(m.jsx)(X,{email:c,emailError:u,handleEmailChange:({value:e})=>{l(e)},handleSubmit:()=>{if(Object(d.a)("unauth.line_missing_email.submit_email"),c)Object(d.a)("unauth.line_missing_email.submit_email"),(()=>{const{register:e}=a,i=[Object(B.e)({message:s._("Hmm... that doesn't look like an email address.","email error message","email error message")})],o=Object(F.a)(c,i);if(o)return Object(d.a)("unauth.line_missing_email.email_validation_failure"),void p(o);const{type:l,credentialsAndLoggingData:u}=r,m=u.line_access_token||"",b=u.line_id_token||"",_={email:c,line_access_token:m,line_id_token:b};M.a.create("EmailExistsResource",{email:c}).callGet().then(i=>{!1===i.resource_response.data?(t(!0),e(_).then(g,f)):(n(l,_,u),Object(d.a)("unauth.line_missing_email.email_existed"))},e=>{let t=s._("Hmm... that doesn't look like an email address.","email error message","email error message");e.api_error_code===N.d&&(t=e.message),h(t),Object(d.a)("unauth.line_missing_email.email_exist_api_call_failure")})})();else{const e=s._("Email is required","email error message","email error message");p(e)}},onNotNowClick:o})})};var Q=e=>{const t=Object(g.d)(),n=Object(u.c)();return Object(m.jsx)(Z,{...e,desktopCoreLoginContext:t,i18n:n})},ee=n("b7nI"),te=n("FkkB"),ne=n("YtZM"),ie=n("Gz3U"),oe=n("+8U0"),re=n("QvPg");const ae=({children:e,noBoxShadow:t,scaleModal:n})=>{const i={...x.b,...t?{boxShadow:"none"}:{}},{viewer:o}=Object(g.d)(),r=Object(g.c)();return"LIMITED_LOGIN"===o.type&&r?Object(m.jsxs)("div",{"data-test-id":"login-modal-default",style:{...i,display:"flex",width:"auto",padding:""},children:[Object(m.jsx)("div",{style:{borderRadius:"8px 0 0 8px",overflow:"hidden"},children:Object(m.jsx)("div",{style:{height:"100%",width:600*(r.width/r.height||0),maxWidth:400,backgroundSize:"cover",backgroundPosition:"center",backgroundImage:`url(${r.url})`}})}),Object(m.jsx)("div",{style:{width:400,padding:"32px 0"},children:e})]}):Object(m.jsx)("div",{className:n?"unauth-homepage-conversion-modal":"","data-test-id":"login-modal-default",style:n?{...i,...x.c}:{...i,padding:"32px 0"},children:e})};var se=({children:e,email:t,footer:n,handleNotYouClick:o,header:a,noBoxShadow:s,scaleModal:c,title:l,viewerInfo:d})=>{var p;const{viewer:h}=Object(g.d)(),f=Object(u.c)();return Object(m.jsx)(ae,{scaleModal:c,noBoxShadow:s,children:Object(m.jsxs)(i.Fragment,{children:[a,Object(m.jsx)("div",{style:{...x.a,margin:"0 auto 16px",width:40,height:40},children:Object(m.jsx)(ie.a,{size:40})}),Object(m.jsx)("div",{style:{...x.f,width:"auto",overflow:"hidden",maxHeight:"150px",margin:"0 48px 16px"},children:l}),"LIMITED_LOGIN"===h.type&&Object(m.jsx)(_.f,{marginBottom:4,paddingX:12,children:Object(m.jsx)(re.a,{})}),Object(m.jsx)("div",{style:{margin:"0 auto 16px",width:"120px"},children:Object(m.jsx)(r.a,{name:d.firstName,src:null!==(p=d.imageUrl)&&void 0!==p?p:void 0})}),Object(m.jsx)(_.f,{marginBottom:3,children:Object(m.jsx)(_.cb,{align:"center",children:t})}),e,Object(m.jsx)(_.f,{paddingY:5,children:Object(m.jsx)(_.p,{})}),Object(m.jsx)(_.f,{"data-test-id":"login-switch-account",children:Object(m.jsx)(_.bb,{fullWidth:!1,onTap:o,children:Object(m.jsx)(_.cb,{align:"center",size:"md",weight:"bold",children:Object(m.jsx)(_.B,{href:"#",onClick:({disableOnNavigation:e})=>e(),children:f._("Not you? Log in with a different account","Short message (in small fonts) on the bottom of the login modal that prompts a user to log in to a different account","Short message (in small fonts) on the bottom of the login modal that prompts a user to log in to a different account")})})})}),Object(m.jsx)(_.f,{marginBottom:0,marginTop:1,children:n})]})})},ce=n("aI4i"),le=n("hcCH"),de=n("K9eD"),ue=n("bBqG"),pe=n("qpbZ"),he=n("EC67");const ge="pinBookmarklet",me={backgroundColor:"#fff",borderRadius:"8px",position:"relative",textAlign:"center",width:"404px",margin:"auto",minHeight:"450px",boxShadow:"0 2px 10px rgba(0,0,0,0.45)"},fe={minHeight:"400px",padding:"20px 10px 24px"},be={color:"#333",fontSize:"36px",fontWeight:"600",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",letterSpacing:"-1.2px"},_e={backgroundColor:"#f0f0f0",border:"0px",outline:"none"},je={textAlign:"center",color:"#333",fontSize:"16px",fontWeight:"normal",margin:"-15px 0 32px"},ye=(e,t,n)=>{switch(t){case"loginMfa":return e._("Two-Factor Authentication Required");case"signup":case"signupOrPersonalizedLogin":return((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"userProfilePage":return e._("Sign up to see more of this profile","signup copy profile page","signup copy profile page");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");default:return e._("Sign up to see more","sigup copy default includes pin click and scrolling","sigup copy default includes pin click and scrolling")}})(e,n);default:return((e,t)=>{switch(t){case"boardInvite":return e._("Log in to accept your board invite","Login copy board invite","Login copy board invite");case"invite":return e._("Log in to invite friends");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")}})(e,n)}};t.default=({AMPClientId:e,container:t,customLoginTagline:n,customSignupTagline:l,darkSignupTitle:f,delayedTitleRender:j,email:y,emailValidationError:w,handleCloseButtonClick:T,handleModalTypeSwitch:P,handleShowingSignupWelcomeLoading:D,hideAccountSwitchValueProp:A,hybridTier:L,inviter:R,isAccountSwitch:M=!1,isBusiness:F,mfaCreds:N,modal:B,nextUrlParam:U,pageContext:z,passwordValidationError:W,postSignupUrlParam:V,renderBusinessCreateButton:q,scaleModal:X,showCloseIcon:J,showResponseMessageModal:Z,signupRedirectUrl:re,signupSource:ae="defaultSource",socialRegistrationCredentials:ve,toggleType:Oe="DEFAULT_TOGGLE",type:xe="signup"})=>{const we=Object(O.d)(),Se=Object(u.c)(),{viewer:{info:Ce,type:ke}}=Object(g.d)(),Te=Object(p.a)(),[Ee,Ie]=Object(i.useState)(),[Pe,De]=Object(i.useState)(y||""),[Ae,Le]=Object(i.useState)(""),[Re,Me]=Object(i.useState)(!1),[Fe,Ne]=Object(i.useState)(!1),[Be,Ue]=Object(i.useState)(""),[ze,We]=Object(i.useState)(N||null),[Ve,Ge]=Object(i.useState)(""),[He,qe]=Object(i.useState)(""),[Ye,Ke]=Object(i.useState)(""),[$e,Xe]=Object(i.useState)(!1),[Je,Ze]=Object(i.useState)(ve),[Qe,et]=Object(i.useState)("signup"===Object(K.a)().type?"signup":xe),[tt,nt]=Object(i.useState)(!1),it=Object(h.a)(ke),ot=Object(v.b)("web_unauth_jp_learn_more"),rt=Object(he.i)(),{path:at}=Object(he.k)(),st="save"===t&&"/pin/:id"===at&&rt.pathname.split("/")[2],ct=Object(o.useSelector)(({pins:e})=>st?e[st]:null),lt=(null==ct?void 0:ct.images)&&ct.images["236x"]&&ct.images["236x"].url;Object(i.useEffect)(()=>{const{logging:n}=z||{};return Object(d.a)(`unauth.authentication_modal.shown.${Oe}.${Qe}`),n&&Te({aux_data:it,event_type:1771,view_parameter:n.viewParameter,view_type:n.viewType}),e&&Object(d.k)("signup_page_from_amp",{amp_client_id:e}),()=>{M&&(Object(ue.a)("add_account_dismiss",null,t),Object($.a)(t))}},[]);const dt=Object(i.useRef)(Qe);Object(i.useEffect)(()=>{dt.current!==Qe&&(dt.current=Qe,Object(d.a)(`unauth.authentication_modal.shown.${Oe}.${Qe}`))});const ut=Object(i.useRef)(xe);Object(i.useEffect)(()=>{ut.current!==xe&&(ut.current=xe,Ie(void 0),De(y||""),Le(""),Ue(""),We(N||null),Ge(""),qe(""),Ke(""),Ze(ve),et(xe))});const pt=()=>"home_page"===t?{...me,minHeight:"initial"}:t===ge?{...me,boxShadow:"none"}:me,ht=()=>B?{textAlign:"center"}:pt(),gt=()=>U?decodeURIComponent(U):U,mt=e=>gt()?Object(a.a)(e,{next:gt()}):e,ft=e=>(t,n,i)=>{et(e),Ze({type:t,userData:n,credentialsAndLoggingData:i})},bt=Object(i.useCallback)(()=>Ke(""),[]),_t=Object(i.useCallback)((e,t)=>{We(e),Ge(t&&t.phone_number_end||void 0),et("loginMfa")},[]),jt=Object(i.useCallback)(e=>{Object(d.a)("unauth.personalized_login.prevent_register."+e),nt(!0),Ne(!1),et("signup")},[]),yt=e=>{e.event.preventDefault(),nt(!0),Ke(""),"EmailAlreadyExist"===Qe&&et("login"),Object(d.a)("unauth.personalized_login.not_you.click"),Object(d.h)("click_change_signin_account"),Te({aux_data:it,element:10879,event_type:101})},vt=e=>{Object(d.a)(`unauth.authentication_modal.${e}.${Oe}.${Qe}`)},Ot=()=>{vt("login_toggle_click"),Object(d.h)("click_toggle_login"),P&&P(),et("login"),Me(!1)},xt=()=>{vt("signup_toggle_click"),Object(d.h)("click_toggle_signup"),re?Object(c.a)(re,!1):(P&&P(),et("signup"))},wt=Object(i.useCallback)(()=>{et("signup"),Ne(!1)},[]),St=e=>{e.event.preventDefault(),Object(d.a)("unauth.personalized_login.signup_instead.click"),Ke(""),Te({aux_data:it,event_type:101,element:10880}),xt()},Ct=Object(i.useCallback)(()=>{Object(d.a)("unauth.fb_email_reauth.post_connect.click")},[]),kt=Object(i.useCallback)(()=>{Object(d.a)("unauth.fb_email_reauth.post_success.connect")},[]),Tt=Object(i.useCallback)(e=>{Xe(e),D&&D(e)},[D]),Et=J&&Object(m.jsx)(H,{onClick:T});if($e&&["signup","login","socialSignupWithAge"].includes(Qe))return Object(m.jsx)(le.a,{});if(!tt&&!M&&Ce&&("signupOrPersonalizedLogin"===Qe||"login"===Qe&&"AUTH"!==ke)){const e=Ce.hasPassword||Ce.connectedToFacebook||Ce.connectedToGoogle;return((e,n)=>Object(m.jsx)(se,{email:Pe,handleNotYouClick:yt,noBoxShadow:t===ge,scaleModal:X,header:Object(m.jsxs)(i.Fragment,{children:[Fe&&Object(m.jsx)(ee.a,{}),Et]}),viewerInfo:e,title:!j&&Object(m.jsx)(Y,{container:t,darkSignupTitle:f,hybridTier:L,modalType:"personalizedLogin",titleText:Object(pe.b)(Se._("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:e?e.firstName:""}).join("")}),footer:Object(m.jsx)(_.bb,{fullWidth:!1,onTap:F?()=>{Te({event_type:101,element:10880})}:St,children:Object(m.jsx)(_.cb,{align:"center",size:"md",weight:"bold",children:Object(m.jsx)(_.B,{href:F?mt("/business/create"):"#",onClick:({disableOnNavigation:e})=>e(),children:Se._("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")})})}),children:Object(m.jsx)(te.b,{container:t,disablePostSignupNextUrl:!U,email:e.email,hideEmailField:!0,hideFacebookButton:n&&!e.connectedToFacebook,hideGoogleButton:n&&!e.connectedToGoogle,hideLineButton:n,hidePasswordField:n&&!e.hasPassword,hidePasswordReset:!0,hideTermsOfService:!0,inputStyleOverrides:_e,loadingIndicatorCallback:Ne,loginButtonTextOverride:Se._("Continue"),nextUrlParam:gt(),onEmailChange:()=>{},onFBPhoneOnlyConnectVerified:ft("FBEmailCollection"),onLineEmailMissingError:ft("LineEmailCollection"),onLoginWithMfa:_t,onPasswordChange:e=>Ke(e.target.value),onSocialConnectVerified:ft("socialSignupWithAge"),password:Ye,passwordValidationError:W,requestContext:we,shouldPreventRegister:!0,showResponseMessageModal:"respondMessage"===xe?Z:void 0,triggerAccountRecoveryMode:jt})}))(Ce,e)}return"signupOrPersonalizedLogin"===Qe||"signup"===Qe||"respondMessage"===Qe?(()=>{const e=Re?Se._("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"):l||ye(Se,Qe,ae||"defaultSource"),n=R&&!R.is_default_image?R:null,o=Object(m.jsx)("div",{style:{...x.f,..."login_page"!==t?{width:"400px"}:{}},children:!j&&Object(m.jsx)(Y,{container:t,darkSignupTitle:f,hybridTier:L,modalType:"signup",titleText:n&&("respondMessage"===xe?Se._("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 }}",n.first_name):Se._("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 }}",n.first_name))||(["login_page","home_page","save"].includes(t)?e:Se._("Unlimited free access to the world's best ideas","FullPageSignup.signupTitle.save","Save value prop on desktop signup modal"))})});return Object(m.jsxs)("div",{className:X?"unauth-homepage-conversion-modal":"","data-test-id":"signup-default-modal",style:{...ht(),width:"484px",..."home_page"===t&&q?{paddingBottom:55}:{},...X?x.c:{}},children:[Fe&&Object(m.jsx)(ee.a,{}),Object(m.jsxs)("div",{style:n?{minHeight:"400px",padding:"30px 10px 20px"}:fe,children:[Et,n?Object(m.jsxs)(i.Fragment,{children:[Object(m.jsx)("div",{style:{margin:"0 auto 16px",width:"108px"},children:Object(m.jsx)(r.a,{name:n.first_name,src:n.image_medium_url,verified:"respondMessage"===xe})}),o]}):Object(m.jsxs)(i.Fragment,{children:["save"===t&&ct&&lt?Object(m.jsx)(_.f,{width:56,height:72,margin:"auto",marginBottom:6,marginTop:4,children:Object(m.jsx)(_.C,{width:56,height:72,rounding:2,children:Object(m.jsx)(_.x,{alt:Se._("Save pin image","FullPageSignup.signupImage.savePinImage","Unauth save modal pin image alt text"),color:ct.dominant_color||"",fit:"cover",naturalHeight:1,naturalWidth:1,src:lt})})}):Object(m.jsx)("div",{style:x.a,children:Object(m.jsx)(ie.a,{size:"homePage"===ae?40:50})}),o,Object(m.jsx)("div",{style:x.f,children:!Re&&Object(m.jsx)("h3",{style:je,children:"login_page"!==t&&"home_page"!==t&&"save"!==t?e:"homePage"===ae&&Se._("Find new ideas to try","Value prop on desktop signup modal on home page","Value prop on desktop signup modal on home page")||"saveButtonExp"===ae&&Se._("Unlimited free access to the world's best ideas","FullPageSignup.signupSubTitle.save","Value prop on desktop signup modal")||Se._("Discovery starts here","Pinterest value proposition on desktop login modal","Pinterest value proposition on desktop login modal")})})]}),Object(m.jsx)(ce.a,{additionalEmailPasswordChildren:Object(m.jsx)(k,{container:t,handleLoginToggleButtonClick:Ot,toggleType:Oe}),age:Ee,clearPassword:bt,container:t,disablePostSignupNextUrl:!U,email:Pe,emailValidationError:w,gender:Ae,loadingIndicatorCallback:Ne,name:He,nextUrlParam:V||gt(),onAgeChange:e=>Ie(e.target.value),onEmailChange:e=>De(e.target.value),onFBEmailDeniedPerm:()=>et("FBEmailRerequest"),onFBPhoneOnlyConnectVerified:ft("FBEmailCollection"),onGenderChange:e=>Le(e.target.value),onLoginWithMfa:_t,onNameChange:e=>qe(e.target.value),onPasswordChange:e=>Ke(e.target.value),onSocialConnectVerified:ft("socialSignupWithAge"),password:Ye,passwordValidationError:W,setNameFromEmail:()=>qe(Object(oe.a)(Pe)),setWelcomeBackMessageForExistingEmail:Me,showResponseMessageModal:"respondMessage"===xe?Z:void 0,showSignupWelcomeLoadingFn:Tt,signupSource:ae,onLineEmailMissingError:ft("LineEmailCollection")})]}),ot().anyEnabled?Object(m.jsx)(E,{container:t}):null,q&&q()]})})():"login"===Qe?Object(m.jsxs)("div",{className:X?"unauth-homepage-conversion-modal":"","data-test-id":"login-modal-default",style:{...ht(),...X?x.c:{},width:"484px"},children:[Fe&&Object(m.jsx)(ee.a,{}),Object(m.jsxs)("div",{style:fe,children:[Et,Object(m.jsx)("div",{style:x.a,children:Object(m.jsx)(ie.a,{size:"homePage"===ae?40:50})}),Object(m.jsx)("div",{style:{...x.f,..."login_page"!==t?{width:"400px"}:{}},children:!j&&Object(m.jsx)(Y,{container:t,darkSignupTitle:f,hybridTier:L,modalType:"login",titleText:n||ye(Se,Qe,ae||"login")})}),M&&!A&&Object(m.jsx)("div",{style:x.f,children:Object(m.jsx)("h3",{style:je,children:Se._("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")})}),Object(m.jsx)(te.b,{clearPassword:bt,container:t,disablePostSignupNextUrl:!U,email:Pe,emailValidationError:w,inputStyleOverrides:_e,isAccountSwitch:M,loadingIndicatorCallback:Ne,nextUrlParam:gt(),onEmailChange:e=>De(e.target.value),onFBPhoneOnlyConnectVerified:ft("FBEmailCollection"),onLineEmailMissingError:ft("LineEmailCollection"),onLoginWithMfa:_t,onPasswordChange:e=>Ke(e.target.value),onSocialConnectVerified:ft("socialSignupWithAge"),password:Ye,passwordValidationError:W,requestContext:we,showResponseMessageModal:"respondMessage"===xe?Z:void 0}),F?Object(m.jsxs)("div",{children:[Object(m.jsx)(b,{css:{margin:"10px auto"}}),Object(m.jsx)("a",{href:mt("/business/create"),children:Se._("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")}),Object(m.jsx)("div",{})]}):Object(m.jsx)(S,{handleSignupToggleButtonClick:xt,isAccountSwitch:M,toggleType:Oe})]})]}):"loginMfa"===Qe?Object(m.jsx)("div",{"data-test-id":"login-modal-mfa",style:ht(),children:Object(m.jsxs)("div",{style:fe,children:[Et,Object(m.jsx)("div",{style:x.a,children:Object(m.jsx)(ie.a,{size:40})}),Object(m.jsx)("div",{style:{...x.f,padding:"0 10px"},children:!j&&Object(m.jsx)(Y,{container:t,darkSignupTitle:f,hybridTier:L,modalType:"loginMfa",titleText:ye(Se,Qe,"loginMfa")})}),Object(m.jsx)(ne.a,{code:Be,container:t,creds:ze,email:Pe,inputStyleOverrides:_e,isAccountSwitch:M,nextUrlParam:gt(),onCodeChange:e=>Ue(e.target.value),password:Ye,phoneNumberEnd:Ve})]})}):"socialSignupWithAge"===Qe?Object(m.jsxs)("div",{"data-test-id":"login-modal-with-age",style:pt(),children:[Fe&&Object(m.jsx)(ee.a,{}),Object(m.jsxs)("div",{style:fe,children:[Et,Object(m.jsx)("div",{style:x.a,children:Object(m.jsx)(ie.a,{size:40})}),Object(m.jsx)("div",{style:x.f,children:Object(m.jsx)("h3",{style:be,children:Se._("Sign up to see more","Age collection signup step for Facebook/G+ authentication","Age collection signup step for Facebook/G+ authentication")})}),Object(m.jsx)(de.a,{container:t,loadingIndicatorCallback:Ne,nextUrlParam:gt(),registrationCredentials:Je,showResponseMessageModal:"respondMessage"===xe?Z:void 0,showSignupWelcomeLoadingFn:Tt})]}),Object(m.jsxs)(_.f,{margin:4,children:[Object(m.jsx)(_.p,{}),Object(m.jsx)(_.f,{padding:3,children:Object(m.jsx)(C,{onLoginClick:Ot})})]})]}):"FBEmailRerequest"===Qe?Object(m.jsxs)("div",{"data-test-id":"login-modal-facebook",style:{...pt(),minHeight:"400px"},children:[Fe&&Object(m.jsx)(ee.a,{}),Object(m.jsxs)("div",{style:fe,children:[Et,Object(m.jsx)("div",{style:x.a,children:Object(m.jsx)(ie.a,{size:40})}),Object(m.jsxs)("div",{style:{...x.f,width:"320px"},children:[Object(m.jsx)("h3",{style:be,children:Se._("Add your email to finish","Tagline on facebook rerequest form","Tagline on facebook rerequest form")}),Object(m.jsx)("h3",{style:{...je,marginTop:"24px"},children:Se._("We need your email address to complete this signup. Click the button below, and we can use the email associated with your Facebook account.","message to explain reauth step beneath the tagline","message to explain reauth step beneath the tagline")}),Object(m.jsx)("div",{style:{width:"260px",margin:"auto"},children:Object(m.jsx)(I.a,{buttonText:Se._("Continue with Facebook","Button text on facebook connect button on FB email reauth form","Button text on facebook connect button on FB email reauth form"),container:"FBEmailRerequest",handlePostConnectClick:Ct,handlePostSuccessConnect:kt,isRerequest:!0,loadingIndicatorCallback:Ne,showResponseMessageModal:"respondMessage"===xe?Z:void 0,useGestaltTooltip:!0})})]}),Object(m.jsx)(s.b,{className:"lightGrey",onClick:wt,styleOverrides:{border:"none",color:"#717171",fontWeight:"bold",textDecoration:"none",backgroundColor:"#eee",height:"36px",borderRadius:"5px",fontSize:"16px",width:"268px",marginTop:"90px"},children:Se._("Not now","word on not now button to dismiss the FB email reauth form","word on not now button to dismiss the FB email reauth form")})]})]}):"FBEmailCollection"===Qe?!!Je&&Object(m.jsxs)("div",{"data-test-id":"signup-modal-facebook-phone-only",style:{...me,minHeight:"400px"},children:[Fe&&Object(m.jsx)(ee.a,{}),Object(m.jsxs)("div",{style:fe,children:[Et,Object(m.jsx)("div",{style:x.a,children:Object(m.jsx)(ie.a,{size:40})}),Object(m.jsx)("div",{style:{...x.f,width:"310px"},children:Object(m.jsx)("h3",{style:be,children:Se._("What's your email address?","Prompt for email address in after sign in with apple","Prompt for email address in after sign in with apple")})}),Object(m.jsx)(G,{loadingIndicatorCallback:Ne,nextUrlParam:U,onNotNowClick:wt,registrationCredentials:Je,showEmailAlreadyExistModal:ft("EmailAlreadyExist"),showSocialSignupWithAgeStep:ft("socialSignupWithAge")})]})]}):"LineEmailCollection"===Qe?!!Je&&Object(m.jsxs)(_.f,{minHeight:400,dangerouslySetInlineStyle:{__style:me},children:[Fe&&Object(m.jsx)(ee.a,{}),Object(m.jsxs)(_.f,{dangerouslySetInlineStyle:{__style:fe},children:[Et,Object(m.jsx)(_.f,{dangerouslySetInlineStyle:{__style:x.a},children:Object(m.jsx)(ie.a,{size:40})}),Object(m.jsx)(_.f,{width:310,dangerouslySetInlineStyle:{__style:x.f},children:Object(m.jsx)("h3",{style:be,children:Se._("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")})}),Object(m.jsx)(Q,{loadingIndicatorCallback:Ne,nextUrlParam:U,onNotNowClick:wt,registrationCredentials:Je,showEmailAlreadyExistModal:ft("EmailAlreadyExist")})]})]}):"EmailAlreadyExist"===Qe?!!Je&&Object(m.jsxs)("div",{"data-test-id":"login-modal-existing-email",style:x.b,children:[Fe&&Object(m.jsx)(ee.a,{}),Object(m.jsx)("div",{style:x.a,children:Object(m.jsx)(ie.a,{size:40})}),Object(m.jsx)("div",{style:{...x.f,width:"350px",overflow:"hidden",maxHeight:"120px"},children:!j&&Object(m.jsx)(Y,{container:t,darkSignupTitle:f,hybridTier:L,modalType:"personalizedLogin",titleText:Object(pe.b)(Se._("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:Ce?Ce.firstName:""}).join("")})}),Object(m.jsx)(_.f,{marginBottom:3,children:Object(m.jsx)(_.cb,{align:"center",children:Je.userData?Je.userData.email:null})}),Object(m.jsx)(te.b,{container:t,disablePostSignupNextUrl:!U,email:Je.userData?Je.userData.email:null,hideEmailField:!0,hideFacebookButton:!0,hideLineButton:!0,hidePasswordReset:!0,hideTermsOfService:!0,inputStyleOverrides:_e,loadingIndicatorCallback:Ne,loginButtonTextOverride:Se._("Continue"),nextUrlParam:gt(),onEmailChange:()=>{},onFBPhoneOnlyConnectVerified:ft("FBEmailCollection"),onLoginWithMfa:_t,onPasswordChange:e=>Ke(e.target.value),onSocialConnectVerified:ft("socialSignupWithAge"),password:Ye,passwordValidationError:W,requestContext:we,shouldPreventRegister:!0,showResponseMessageModal:"respondMessage"===xe?Z:void 0,triggerAccountRecoveryMode:jt,onLineEmailMissingError:ft("LineEmailCollection")}),Object(m.jsx)(_.f,{paddingY:5,children:Object(m.jsx)(_.p,{})}),Object(m.jsx)(_.f,{"data-test-id":"login-switch-account",children:Object(m.jsx)(_.bb,{fullWidth:!1,onTap:yt,children:Object(m.jsx)(_.cb,{align:"center",size:"md",weight:"bold",children:Object(m.jsx)(_.B,{href:"#",onClick:({disableOnNavigation:e})=>e(),children:Se._("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")})})})}),Object(m.jsx)(_.f,{marginBottom:4,marginTop:1,children:Object(m.jsx)(_.bb,{fullWidth:!1,onTap:F?()=>{Te({event_type:101,element:10880})}:St,children:Object(m.jsx)(_.cb,{align:"center",size:"md",weight:"bold",children:Object(m.jsx)(_.B,{href:F?mt("/business/create"):"#",onClick:({disableOnNavigation:e})=>e(),children:Se._("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")})})})}),Et]}):null}},CkrQ:function(e,t,n){n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return r})),n.d(t,"applyMiddleware",(function(){return f})),n.d(t,"bindActionCreators",(function(){return u})),n.d(t,"combineReducers",(function(){return l})),n.d(t,"compose",(function(){return m})),n.d(t,"createStore",(function(){return s}));var i=n("bCCX"),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},r={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,l=t,d=[],u=d,p=!1;function h(){u===d&&(u=d.slice())}function g(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return h(),u.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,h();var n=u.indexOf(e);u.splice(n,1),d=null}}}function f(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,l=c(l,e)}finally{p=!1}for(var t=d=u,n=0;n<t.length;n++){(0,t[n])()}return e}function b(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,f({type:r.REPLACE})}function _(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[i.a]=function(){return this},e}return f({type:r.INIT}),(o={dispatch:f,subscribe:m,getState:g,replaceReducer:b})[i.a]=_,o}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var o=t[i];0,"function"==typeof e[o]&&(n[o]=e[o])}var a,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:r.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:r.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+r.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(l){a=l}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var i=!1,o={},r=0;r<s.length;r++){var l=s[r],d=n[l],u=e[l],p=d(u,t);if(void 0===p){var h=c(l,t);throw new Error(h)}o[l]=p,i=i||p!==u}return(i=i||s.length!==Object.keys(e).length)?o:e}}function d(e,t){return function(){return t(e.apply(this,arguments))}}function u(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var i in e){var o=e[i];"function"==typeof o&&(n[i]=d(o,t))}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},r=t.map((function(e){return e(o)}));return g({},n,{dispatch:i=m.apply(void 0,r)(n.dispatch)})}}}},Ctgr:function(e,t,n){t.a=e=>Array.from(e)[0].toUpperCase()+Array.from(e).slice(1).join("")},CxY0:function(e,t,n){var i=n("GYWy"),o=n("Nehr");function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=j,t.resolve=function(e,t){return j(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?j(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=j(e));return e instanceof r?e.format():r.prototype.format.call(e)},t.Url=r;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(l),u=["%","/","?",";","#"].concat(d),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=n("s4NR");function j(e,t,n){if(e&&o.isObject(e)&&e instanceof r)return e;var i=new r;return i.parse(e,t,n),i}r.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),s=-1!==r&&r<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var j=e=l.join(s);if(j=j.trim(),!n&&1===e.split("#").length){var y=c.exec(j);if(y)return this.path=j,this.href=j,this.pathname=y[1],y[2]?(this.search=y[2],this.query=t?_.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var v=a.exec(j);if(v){var O=(v=v[0]).toLowerCase();this.protocol=O,j=j.substr(v.length)}if(n||v||j.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===j.substr(0,2);!x||v&&f[v]||(j=j.substr(2),this.slashes=!0)}if(!f[v]&&(x||v&&!b[v])){for(var w,S,C=-1,k=0;k<p.length;k++){-1!==(T=j.indexOf(p[k]))&&(-1===C||T<C)&&(C=T)}-1!==(S=-1===C?j.lastIndexOf("@"):j.lastIndexOf("@",C))&&(w=j.slice(0,S),j=j.slice(S+1),this.auth=decodeURIComponent(w)),C=-1;for(k=0;k<u.length;k++){var T;-1!==(T=j.indexOf(u[k]))&&(-1===C||T<C)&&(C=T)}-1===C&&(C=j.length),this.host=j.slice(0,C),j=j.slice(C),this.parseHost(),this.hostname=this.hostname||"";var E="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!E)for(var I=this.hostname.split(/\./),P=(k=0,I.length);k<P;k++){var D=I[k];if(D&&!D.match(h)){for(var A="",L=0,R=D.length;L<R;L++)D.charCodeAt(L)>127?A+="x":A+=D[L];if(!A.match(h)){var M=I.slice(0,k),F=I.slice(k+1),N=D.match(g);N&&(M.push(N[1]),F.unshift(N[2])),F.length&&(j="/"+F.join(".")+j),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=i.toASCII(this.hostname));var B=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+B,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==j[0]&&(j="/"+j))}if(!m[O])for(k=0,P=d.length;k<P;k++){var z=d[k];if(-1!==j.indexOf(z)){var W=encodeURIComponent(z);W===z&&(W=escape(z)),j=j.split(z).join(W)}}var V=j.indexOf("#");-1!==V&&(this.hash=j.substr(V),j=j.slice(0,V));var G=j.indexOf("?");if(-1!==G?(this.search=j.substr(G),this.query=j.substr(G+1),t&&(this.query=_.parse(this.query)),j=j.slice(0,G)):t&&(this.search="",this.query={}),j&&(this.pathname=j),b[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var H=this.search||"";this.path=B+H}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",i=this.hash||"",r=!1,a="";this.host?r=e+this.host:this.hostname&&(r=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=_.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==r?(r="//"+(r||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):r||(r=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),t+r+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+i},r.prototype.resolve=function(e){return this.resolveObject(j(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(o.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,i=Object.keys(this),a=0;a<i.length;a++){var s=i[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var d=c[l];"protocol"!==d&&(n[d]=e[d])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var h=u[p];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||f[e.protocol])n.pathname=e.pathname;else{for(var g=(e.pathname||"").split("/");g.length&&!(e.host=g.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==g[0]&&g.unshift(""),g.length<2&&g.unshift(""),n.pathname=g.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",_=n.search||"";n.path=m+_}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var j=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=y||j||n.host&&e.pathname,O=v,x=n.pathname&&n.pathname.split("/")||[],w=(g=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(w&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===g[0]?g[0]=e.host:g.unshift(e.host)),e.host=null),v=v&&(""===g[0]||""===x[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=g;else if(g.length)x||(x=[]),x.pop(),x=x.concat(g),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(w)n.hostname=n.host=x.shift(),(E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=E.shift(),n.host=n.hostname=E.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=x.slice(-1)[0],C=(n.host||e.host||x.length>1)&&("."===S||".."===S)||""===S,k=0,T=x.length;T>=0;T--)"."===(S=x[T])?x.splice(T,1):".."===S?(x.splice(T,1),k++):k&&(x.splice(T,1),k--);if(!v&&!O)for(;k--;k)x.unshift("..");!v||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),C&&"/"!==x.join("/").substr(-1)&&x.push("");var E,I=""===x[0]||x[0]&&"/"===x[0].charAt(0);w&&(n.hostname=n.host=I?"":x.length?x.shift():"",(E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=E.shift(),n.host=n.hostname=E.shift()));return(v=v||n.host&&x.length)&&!I&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},DR2l:function(e,t,n){n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return b}));var i=n("q1tI"),o=n("/MKj"),r=n("Ye/N"),a=n("DzJC"),s=n.n(a),c=n("/MAO"),l=n("v/Q4"),d=n("w70y"),u=n("n6mq"),p=n("N84b"),h=n("nKUr");function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends i.Component{constructor(...e){super(...e),g(this,"setRef",e=>{e&&!this.list&&(this.list=e.parentElement,this.list&&this.list.addEventListener("scroll",this.handleScroll))}),g(this,"fetchMore",()=>{const{feedResource:e}=this.props;e.isFetching||(e.isAtEnd?window.removeEventListener("scroll",this.handleScroll):e.fetchMore())}),g(this,"handleScroll",s()(()=>{const{feedResource:e}=this.props;if(e.isFetching||e.isAtEnd)return;const t=Object(p.a)(this.list);Object(p.c)(this.list)-Object(p.d)(this.list)-50<t&&this.fetchMore()},10))}componentWillUnmount(){this.list.removeEventListener("scroll",this.handleScroll)}render(){const{feedResource:{data:e,isLoaded:t},users:n,viewer:i}=this.props;if(!t)return Object(h.jsx)("div",{className:"loadingSpinner",children:Object(h.jsx)(u.U,{accessibilityLabel:r.a._("Loading spinner for like list","Accessibility label for loading spinner for like list","Accessibility label for loading spinner for like list"),show:!0})});const o=e&&e.map(e=>e.id?{...e,...n[e.id]}:e);return Object(h.jsx)("div",{style:{maxHeight:"400px"},ref:this.setRef,"data-test-id":"liked-by-list",children:o&&o.map(e=>Object(h.jsx)(u.f,{paddingX:4,paddingY:3,children:Object(h.jsx)(c.a,{isSelf:Boolean(i.isAuth&&i.id&&e.id===i.id),className:"communityItem",showFollow:!0,showName:!0,size:"medium",user:e,viewType:"thumb"})},e.id))})}}function f(e){const t=Object(l.a)(),n=Object(o.useSelector)(({users:e})=>e),i=Object(d.a)({name:"AggregatedCommentLikedByResource",options:{aggregatedCommentId:e.id},allowStale:!1});return Object(h.jsx)(m,{...e,feedResource:i,users:n,viewer:t})}function b(e){const t=Object(l.a)(),n=Object(o.useSelector)(({users:e})=>e),i=Object(d.a)({name:"DidItLikedByResource",options:{didItDataId:e.id},allowStale:!1});return Object(h.jsx)(m,{...e,feedResource:i,users:n,viewer:t})}},DfJT:function(e,t,n){n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return W})),n.d(t,"a",(function(){return H})),n.d(t,"e",(function(){return q})),n.d(t,"b",(function(){return Y}));var i=n("q1tI"),o=n("/MKj"),r=n("AnoD"),a=n("a8hX"),s=n("EXPn"),c=n("AqTp"),l=n("Klk4"),d=n("Ye/N"),u=n("TgLd"),p=n("HTqQ"),h=n("eBDd"),g=n("M1Uz"),m=n("w70y"),f=n("DR2l"),b=n("J/zr"),_=n("he3k"),j=n("WgbR"),y=n("Q7+p"),v=n("CONZ"),O=n("gYog"),x=n("vvax"),w=n("Y8Sn"),S=n("prCw"),C=n("Wer7"),k=n("U4JR"),T=n("tiNQ"),E=n("BJm1"),I=n("nGHF"),P=n("xmd6"),D=n("OI9p"),A=n("n6mq"),L=n("nKUr");var R=({aggregatedCommentId:e,creatorId:t,depth:n,didItOwnerId:R,isManagedView:M,objectType:F,onUpdate:N,parentObjectId:B,pinDomainOwnerId:U,pinId:z,slotIndex:V,viewerId:G,showHighlightEducator:H,numHighlights:Y,isInWebCommentsHighlightExp:K})=>{const{isLoaded:$}=Object(m.a)({name:"PinResource",options:{id:z,field_set_key:"detailed"}}),{showToast:X}=Object(I.b)(),[J,Z]=Object(i.useState)(!1),[Q,ee]=Object(i.useState)(!1),[te,ne]=Object(i.useState)(!1),[ie,oe]=Object(i.useState)(!1),[re,ae]=Object(i.useState)(!1),[se,ce]=Object(i.useState)(!1),le=Object(o.useDispatch)();Object(i.useEffect)(()=>{le(Object(C.a)("AggregatedCommentResource",{commentId:e}))},[le,e]),Object(i.useEffect)(()=>{N&&N()},[N]);const de=Object(o.useSelector)(({pins:e})=>{if(!z)return"";const t=e[z];let n="pin";if(t){const e=Object(w.i)(t.videos);t.story_pin_data_id?n="story":e&&(n="video")}return n}),ue=Object(o.useSelector)(({aggregatedComments:t})=>t[e]);if(!ue||!ue.user)return null;const{comment_count:pe,created_at:he,helpful_count:ge,marked_helpful_by_me:me,reaction_by_me:fe,reaction_counts:be,tagged_users:_e,tags:je,text:ye,user:{id:ve,username:Oe},highlighted_by_pin_owner:xe}=ue,we=n===W,Se=be[1],Ce=()=>{le(Object(D.c)({aggregatedCommentId:e,isLikedByMe:!!fe}))},ke=()=>{le(Object(D.a)({aggregatedCommentId:e,isMarkedHelpfulByMe:!!me}))},Te=t=>Object(L.jsx)(A.g,{inline:!0,text:d.a._("Undo","closeup.pinActionDropDown.commentHighlightToast.UndoButton","Undo comment highlight or comment highlight removal"),size:"lg",onClick:()=>{le(Object(D.b)({aggregatedCommentId:e,pinId:z,isHighlighted:t}))}},"button-key"),Ee=()=>{Y&&Y>=3?X(({onHide:e})=>Object(L.jsx)(g.a,{onHide:e,text:d.a._("Only 3 comments can be highlighted","closeup.pinActionDropDown.commentHighlightMaxNumberToast","Toast that tells user that at most 3 comments can be highlighted.")})):(le(Object(D.b)({aggregatedCommentId:e,pinId:z,isHighlighted:!1})),X(({onHide:e})=>Object(L.jsx)(g.a,{onHide:e,text:d.a._("Comment highlighted","closeup.pinActionDropDown.commentHighlightToast","Toast that tells user that they have successfully highlighted a comment."),button:Te(!0)})))},Ie=()=>{le(Object(D.b)({aggregatedCommentId:e,pinId:z,isHighlighted:!0})),X(({onHide:e})=>Object(L.jsx)(g.a,{onHide:e,text:d.a._("Highlight removed","closeup.pinActionDropDown.commentHighlightRemovalToast","Toast that tells user that they have successfully removed a comment highlight."),button:Te(!1)}))},Pe=()=>{ne(!te)},De=(e,t,n)=>{const i={[P.a.aggregatedComment]:T.a,[P.a.didIt]:E.e,[P.a.pin]:S.a};le(i[e](t,n))},Ae=()=>{Z(!0)},Le=()=>{Z(!1)},Re=t=>{le(Object(D.d)({commentId:e,tags:t.tags,text:t.contentMarkdown})),Z(!1)},Me=()=>{le(Object(v.a)(e)),Object(k.b)(8909,{component:13464,tag_id:G,tag_type:1,view:3,viewParameter:140}),X(({onHide:e})=>Object(L.jsx)(g.a,{onHide:e,text:d.a._("@mention removed!","closeup.pinActionDropDown.mentionRemovalToast","Toast that tells user that they have successfully removed the @mention of them in another user's Pin description")}))},Fe=()=>{oe(!0)},Ne=()=>{ae(!0)},Be=()=>{ce(!0)},Ue=()=>{oe(!1),ae(!1),ce(!1)},ze=()=>{le(Object(p.a)({id:e,viewType:null,viewParameter:null}))},We=()=>{const e=[ve,t,R,U].includes(G),n=G===ve,i=G!==ve,o=G!==ve,r=_e.filter(({id:e})=>e===G).length>0;return Object(L.jsx)(s.a,{handleBlockUser:o?Be:null,handleClickReport:i?ze:null,handleDelete:e?Fe:null,handleOnEdit:n?Ae:null,handleRemoveMention:r?Me:null,handleHighlight:K&&!xe?Ee:null,handleRemoveHighlight:K&&xe?Ie:null,showHighlightEducator:H,small:!0})};return Object(L.jsxs)(i.Fragment,{children:[Object(L.jsx)(O.a,{contextLogData:{objectId:ue.id},impressionAuxFields:{commentId:ue.id,pinId:z,pinType:de,parentId:B,parentType:F,commentType:P.a.aggregatedComment},componentType:F===P.a.pin?13696:13697,impressionType:"Comment",isPaused:!$,loggingId:ue.id,slotIndex:V,viewType:3,children:({impressionTrackerRef:t})=>Object(L.jsx)(A.f,{ref:t,"data-test-id":"aggregatedCommentContainer-comment",children:Object(L.jsx)(l.a,{avatarSize:we?"sm":"md",commentAuthor:ue.user,commentCount:pe,commentId:e,contentText:ye,createdAt:he,flyout:We(),handleHelpfulClick:ke,handleLikeClick:Ce,handleLikeCountClick:Ne,handleOnEditCancel:Le,handleOnEdited:Re,handleReplyClick:Pe,helpfulCount:ge,hideAddObjects:!0,hideReplyCount:!0,inEditMode:J,isLikedByMe:!!fe,isMarkedHelpfulByMe:me,parentObject:{id:B},reactionCounts:be,taggedUsers:_e,tags:je,truncateText:!0,type:P.a.aggregatedComment,isHighlighted:!!K&&xe})})}),te&&Object(L.jsx)(A.f,{dangerouslySetInlineStyle:{__style:{paddingLeft:we?0:48}},"data-test-id":"aggregatedCommentContainer-replyComposer",children:Object(L.jsx)(A.f,{display:"flex",marginTop:2,children:Object(L.jsx)(A.f,{flex:"grow",children:Object(L.jsx)(r.a,{avatarSize:"sm",hideAddObjects:!0,onAddItem:async({contentMarkdown:t,tags:n})=>{let i,o=e;Pe(),ee(!0),we&&(o=B,i=e),await le(Object(j.a)({objectType:P.a.aggregatedComment,objectId:o,tags:n,text:t,replyToCommentId:i}));const r=F===P.a.didIt?P.a.aggregatedComment:F;De(r,o,1),ee(!1)},onCancelItem:Pe,onEnter:()=>{},objectType:P.a.aggregatedComment,parentObjectId:B,replyToObject:we?ue:null,statusType:"textInflightCreation"})})})}),pe>0&&Object(L.jsxs)(A.f,{dangerouslySetInlineStyle:{__style:{paddingLeft:48}},"data-test-id":"aggregatedCommentContainer-replyList",children:[Object(L.jsx)(q,{baseIndex:V+1,commentCount:pe,creatorId:t,didItOwnerId:R,depth:n,isManagedView:M,objectId:e,objectType:P.a.aggregatedComment,onUpdate:N,parentObjectId:B,pinDomainOwnerId:U,pinId:z,variant:"legacy"}),Object(L.jsx)(A.U,{accessibilityLabel:d.a._("Comments loading"),show:Q})]}),ie&&Object(L.jsx)(a.a,{accessibilityModalLabel:d.a._("Deleting a comment","closeup.deleteCommentModal.label","Label for deleting a comment"),heading:d.a._("Are you sure?","closeup.deleteCommentModal.heading","Are you sure to remove post or comment"),cancelButtonText:d.a._("Cancel","closeup.deleteCommentModal.cancelButton","Cancel deleting comment"),confirmButtonText:d.a._("Delete","closeup.deleteCommentModal.confirmButton","Delete comment"),detail:d.a._("This comment will be deleted","closeup.deleteCommentModal.detailText","confirmation before deleting comment"),onConfirm:()=>{le(Object(y.a)({aggregatedCommentId:e,feedType:"aggregatedComments",type:we?_.c.REPLY_TO_AGGREGATED:_.c.TOP,parentId:B})),De(F,B,-1)},onDismiss:Ue}),re&&Object(L.jsx)(u.b,{accessibilityModalLabel:d.a._("Users who have liked this.","closeup.comment.showLikeListModal.label","Label for a modal showing a list of users who have liked a Tried Item Comment"),heading:Object(h.a)(d.a.ngettext("{{count}} Like","{{count}} Likes",Se,"closeup.comment.showLikeListModal.heading","Number of likes a comment has"),{count:Se.toString()}),onDismiss:Ue,size:"md",children:Object(L.jsx)(f.a,{id:e})}),se&&Object(L.jsx)(c.a,{firstName:Oe,onBlockUser:()=>{le(Object(b.a)(ve)),Ue(),X(({onHide:e})=>Object(L.jsx)(g.a,{onHide:e,text:Object(x.b)(d.a._("You've blocked {{ username }}","comment.blockAuthor.toast","confirmation toast that shows after user blocks comment author"),{username:Oe}).join("")}))},onClearModal:Ue})]})},M=n("0LLM"),F=n("v/Q4"),N=n("QAzJ"),B=n("gI5O"),U=n("KFEb");const z=2,W=2,V=({baseIndex:e=0,commentCount:t,creatorId:n,depth:a=0,didItOwnerId:s,feedItems:c,feedResourceName:l,initialLoadCount:u,isManagedView:p,objectId:h,objectType:g,onUpdate:f,parentObjectId:b,pinDomainOwnerId:_,pinId:y,privatePin:v,shouldFeatureComment:O=!1,variant:w})=>{const[C,T]=Object(i.useState)(!1),[I,D]=Object(i.useState)(!1),U=Object(F.a)(),W=Object(B.b)(),V=Object(o.useDispatch)(),{fetchMore:G,isAtEnd:H,isLoaded:q}=Object(m.a)({name:l,options:{objectId:h,page_size:u||z,redux_normalize_feed:!0,featured_ids:O&&W?[W]:null}});Object(i.useEffect)(()=>{q&&f&&f()},[q,f]);const Y=()=>{T(!C)},K=!!c&&q&&t>c.length&&!H,$=c?t-c.length:0,X=Object(x.b)(d.a.ngettext("{{commentCount}} comment","{{commentCount}} comments",$,"Show comments link with count","Show comments link with count"),{commentCount:String($)}).join(""),J=g===P.a.aggregatedComment,Z=g===P.a.pin&&(c&&0===c.length||0===t)&&q&&!I,Q="default"===w,ee=Object(o.useSelector)(({pins:e})=>y?e[y]:""),te=ee&&ee.pinner?ee.pinner.id:"",ne=U.isAuth&&U.isPartner&&U.id===te,{anyEnabled:ie}=Object(N.a)("web_comments_highlight_v1",ne),oe=ee&&ee.highlighted_aggregated_comments&&ie?ee.highlighted_aggregated_comments:[];let re=ie;return Object(L.jsxs)(A.f,{"data-test-id":"aggregated-comment-list",marginTop:J&&!Q?2:0,paddingY:J||Q?0:2,children:[!!y&&oe.map((t,i)=>Object(L.jsx)(A.f,{marginBottom:2,children:Object(L.jsx)(R,{aggregatedCommentId:t,creatorId:n,depth:a+1,didItOwnerId:s,isManagedView:p,objectType:g,onUpdate:f,parentObjectId:g===P.a.pin?y:h,pinDomainOwnerId:_,pinId:y,slotIndex:e+i,variant:w,viewerId:U.isAuth?U.id:"",isInWebCommentsHighlightExp:ie})},t)),!!y&&(null==c?void 0:c.filter(e=>!oe.includes(e.id)).map(({id:t},i)=>{const o=re;return re=!1,Object(L.jsx)(A.f,{marginBottom:2,children:Object(L.jsx)(R,{aggregatedCommentId:t,creatorId:n,depth:a+1,didItOwnerId:s,isManagedView:p,objectType:g,onUpdate:f,parentObjectId:g===P.a.pin?y:h,pinDomainOwnerId:_,pinId:y,slotIndex:e+oe.length+i,variant:w,viewerId:U.isAuth?U.id:"",showHighlightEducator:o,numHighlights:oe.length,isInWebCommentsHighlightExp:ie})},t)})),Object(L.jsx)(A.U,{accessibilityLabel:d.a._("Comments loading"),show:!q||I}),K&&Object(L.jsx)(A.f,{marginTop:3,children:Object(L.jsx)(M.a,{handleClick:G,text:X})}),Z&&Object(L.jsx)(A.f,{paddingY:Q?0:2,children:Object(L.jsx)(A.cb,{size:Q?"sm":"md",children:d.a._("Share feedback, ask a question or give a high five")})}),g!==P.a.aggregatedComment&&!p&&Object(L.jsx)(A.f,{display:"flex",marginTop:6,children:Object(L.jsx)(A.f,{"data-test-id":"add-comment",flex:"grow",children:Object(L.jsx)(r.a,{hideAddObjects:!0,objectType:g,onAddItem:async({contentMarkdown:e,tags:t})=>{Y(),D(!0);try{await V(Object(j.a)({objectType:g,objectId:h,pinId:y,tags:t,text:e})),n=1,g===P.a.pin&&y?V(Object(S.a)(y,n)):g===P.a.didIt&&V(Object(E.e)(h,n)),g===P.a.pin&&Object(k.b)(7,{objectId:y,num_user_mention_tags:(t?JSON.parse(t):[]).length})}catch(i){}var n;D(!1)},onCancelItem:Y,onEnter:Y,parentObjectId:b||"",privatePin:v,replyToObject:null,statusType:C?"textInflightCreation":"textStaticDisplay"})})})]})},G=e=>Object(o.useSelector)(({feeds:{[U.a.AGGREGATED_COMMENTS]:t={}}})=>t[e]),H=e=>{var t;const n=G(e.objectId);return Object(L.jsx)(V,{...e,feedItems:null!==(i=n,o="id",t=i?i.filter((e,t,n)=>n.map(e=>e[o]).indexOf(e[o])===t):i)&&void 0!==t?t:[],feedResourceName:"AggregatedCommentFeedResource",shouldFeatureComment:!0});var i,o},q=e=>{var t;return Object(L.jsx)(V,{...e,feedItems:null!==(t=G(e.objectId))&&void 0!==t?t:[],feedResourceName:"AggregatedCommentReplyFeedResource"})},Y=e=>{var t;return Object(L.jsx)(V,{...e,feedItems:null!==(t=G(e.objectId))&&void 0!==t?t:[],feedResourceName:"DidItCommentsResource"})}},E3gc:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){return"string"==typeof t||"symbol"==typeof t||!!n&&Array.isArray(t)&&t.every((function(t){return e(t,!1)}))}},EC51:function(e,t,n){var i=n("q1tI"),o=n("zwad"),r=n("n6mq"),a=n("gqRH"),s=n("nKUr");const c=Object(i.forwardRef)((e,t)=>{const{accessibilityLabel:n,children:i,forceTarget:c,hoverStyle:l,href:d,id:u,inline:p,onBlur:h,onClick:g,onFocus:m,rel:f,target:b}=e,_=o.a.isOffsiteUrl(d);return Object(s.jsx)(a.a,{href:d,target:!c&&_?null:b,children:({handleClick:e})=>Object(s.jsx)(r.B,{accessibilityLabel:n,hoverStyle:l,href:d,id:u,inline:p,onBlur:h,onClick:({event:t,disableOnNavigation:n})=>{n(),null==g||g({event:t}),e({event:t})},onFocus:m,ref:t,rel:_?"nofollow":f,target:c?b:null,children:i})})});c.displayName="Link",t.a=c},EDqd:function(e,t,n){n.d(t,"a",(function(){return a}));const i=["236x","474x","564x","736x"];function o(e){function t(e,{imageKey:t,height:n,width:i}){return e.images&&e.images[t]&&(e={...e,images:{...e.images,[t]:{...e.images[t],height:n,width:i}}}),e}const n=i.map((function(t){const n=Math.min(...e.map(e=>e.images&&e.images[t]&&e.images[t].height||1/0)),i=Math.min(...e.map(e=>e.images&&e.images[t]&&e.images[t].width||1/0));return{imageKey:t,height:n,width:i}}));return e.map(e=>n.reduce(t,e))}function r(e,t){return e.concat([{images:t&&t.canonical_images,image_signature:t&&t.image_signature}])}function a(e,t,n){const i=[{images:e}],a=t&&t.additional_images;return{carousel_slots:o((null!=a?a:[]).reduce(r,i)),index:n||0,id:t.id}}},EG5v:function(e,t,n){var i=n("fHpQ"),o=n("adNa"),r=n("Ye/N"),a=n("ihsa"),s=n("ejSI"),c=n("LsLk"),l=n("Cwoa");var d=()=>"\n@keyframes scrollBgGridLinks {\n  from {\n    transform: translateY(0px);\n  }\n  to {\n    transform: translateY(-300px);\n  }\n}\n\n@keyframes easeInScrollBanner {\n  from {\n    opacity: 0;\n    transform: translateY(56px);\n  }\n  to {\n    opacity: 100%;\n    transform: translateY(0px);\n  }\n}\n\n.featuredScrollBannerAnimated {\n  -webkit-animation-delay: 250ms;\n  -webkit-animation-duration: 0.25s;\n  -webkit-animation-fill-mode: both;\n  -webkit-animation-name: easeInScrollBanner;\n  -webkit-animation-timing-function: ease-in-out;\n}\n",u=n("n6mq"),p=n("nKUr");t.a=e=>{return Object(p.jsx)(c.b,{page:"home",children:Object(p.jsxs)(u.f,{height:"100%",width:"100%",position:"absolute",top:!0,overflow:"scrollY","data-test-id":"errorPage",children:[Object(p.jsx)(i.default,{}),Object(p.jsx)(u.f,{bottom:!0,left:!0,right:!0,top:!0,position:"absolute",overflow:"auto",display:"flex",direction:"column",dangerouslySetInlineStyle:{__style:{background:"rgba(0,0,0,.5)"}}}),Object(p.jsx)(a.a,{unsafeCSS:o.a+d()+Object(l.a)()}),Object(p.jsx)(u.f,{display:"flex",direction:"column",position:"absolute",bottom:!0,left:!0,right:!0,top:!0,overflow:"auto",children:Object(p.jsx)("div",{style:{flex:1},children:Object(p.jsx)(s.a,{loginSignupModalType:!0,onLoginClick:()=>{},container:"home_page",shouldRenderErrorToast:!0,errorMessage:(t=e.error,404===(t&&(t.http_status||t.statusCode||0))?r.a._("Sorry, we can't find that page.","Error message to indicate page not found","Error message to indicate page not found"):"")})})})]})});var t}},EUPR:function(e,t,n){n.d(t,"h",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return m}));var i=n("7w6Q");const o="onloadRecaptchaJsCallback",r="6Ldx7ZkUAAAAAF3SZ05DRL2Kdh911tCa3qFP0-0r",a="recaptcha-enterprise-src",s=(e,t)=>{try{i.a.increment("recaptcha_v3.request_token.attempt",.1,{action:t}),window.grecaptcha.enterprise.ready(()=>{try{window.grecaptcha.enterprise.execute(r,{action:t}).then(e)}catch(n){i.a.increment("recaptcha_v3.request_token.exec_error",.1,{action:t})}})}catch(n){i.a.increment("recaptcha_v3.request_token.error",.1,{action:t})}},c=(e,t)=>{if(window[o]=function(){return s(e,t)},document.getElementById(a))s(e,t);else{const e=document.createElement("script");e.id=a,e.src=`https://www.google.com/recaptcha/enterprise.js?onload=${o}&render=${r}`;const t=document.getElementsByTagName("script")[0];t.parentNode&&t.parentNode.insertBefore(e,t)}},l=105e3,d=8e3,u="mweb_auth",p="mweb_login",h="mweb_signup",g="web_auth",m="web_unauth"},EVO9:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n("0/lC");function o(e){const t=e&&-1!==e.indexOf("@")?e.split("@"):[];if(2===t.length){const e=t[1],n=e&&-1!==e.indexOf(".")?e.split("."):[];if(n.length>=2&&"gmail"===n[0]&&"com"!==n.slice(1).join("."))return!0;const o=Object(i.a)(e,"gmail.com");if("g"===e.charAt(0)&&(1===o||2===o))return!0}return!1}function r(e,t){const n=e&&-1!==e.indexOf("@")?e.split("@"):[];if(2!==n.length)return!1;const o=n[1],r=o&&-1!==o.indexOf(".")?o.split("."):[],a=r[0];if(a===t&&r.length>3)return!0;if(r.length>=2){const e=Object(i.a)(a,t);return a.charAt(0)===t.charAt(0)&&(1===e||2===e)}return(2!==r.length||a!==t||2!==r[1].length&&"com"!==r[1])&&(r.length,!1)}},EXPn:function(e,t,n){var i=n("q1tI"),o=n("iYS+"),r=n("YGxj"),a=n("Ye/N"),s=n("LT60"),c=n("4cpq"),l=n("eUcp"),d=n("QAzJ"),u=n("n6mq"),p=n("nKUr");const h=({action:e,label:t,testId:n})=>Object(p.jsx)(c.a,{id:"flyout-item-"+n,children:Object(p.jsx)(u.bb,{onTap:e,children:Object(p.jsx)(o.a,{text:t})})}),g=({handleBlockUser:e,handleClickReport:t,handleDelete:n,handleOnEdit:o,handleRemoveMention:g,handleHighlight:m,handleRemoveHighlight:f,showHighlightEducator:b,iconColor:_,small:j})=>{const y=Object(d.b)("web_block_users_in_comments"),v=y({dangerouslySkipActivation:!0}).anyEnabled,O=Object(d.b)("web_engagement_comment_moderation")().anyEnabled,[x,w]=Object(i.useState)(!1),S=Object(i.useRef)(),C=t=>{const n=(t||{}).event||{};n.preventDefault&&(n.preventDefault(),n.stopPropagation()),!x&&e&&y(),w(!x)};return e||t||n||o||g||m?Object(p.jsx)(u.f,{display:"flex",direction:"column",alignItems:"end",children:Object(p.jsxs)(u.f,{children:[Object(p.jsx)(u.f,{ref:S,children:Object(p.jsx)(c.a,{id:"flyout-toggle",children:Object(p.jsx)(u.w,{accessibilityExpanded:x,accessibilityHaspopup:!0,accessibilityLabel:a.a._("more options","accessible label for button to see more options on report content","accessible label for button to see more options on report content"),icon:"ellipsis",iconColor:_||void 0,onClick:C,size:j?"sm":"md"})})}),b&&Object(p.jsx)(u.z,{zIndex:l.a,children:Object(p.jsx)(s.a,{children:Object(p.jsx)(r.a,{anchor:S.current,experienceIds:[503461],idealDirection:"down",placementId:12,positionRelativeToAnchor:!1,showCaret:!0,textAlign:"center"})})}),x&&Object(p.jsx)(u.z,{children:Object(p.jsx)(s.a,{children:Object(p.jsx)(c.a,{id:"flyout",children:Object(p.jsx)(u.L,{anchor:S.current,idealDirection:"down",onDismiss:C,positionRelativeToAnchor:!1,size:"sm",children:Object(p.jsxs)(u.f,{width:"100%",children:[m&&Object(p.jsx)(h,{action:()=>{m(),C()},label:a.a._("Highlight","Highlight a community post or comment","Highlight a community post or comment"),testId:"highlight"}),f&&Object(p.jsx)(h,{action:()=>{f(),C()},label:a.a._("Remove highlight","Remove highlight for a community post or comment","Remove highlight for a community post or comment"),testId:"removeHighlight"}),o&&Object(p.jsx)(h,{action:o,label:a.a._("Edit","Edit a community post or comment","Edit a community post or comment"),testId:"edit"}),n&&Object(p.jsx)(h,{action:n,label:a.a._("Delete","Delete a community post or comment","Delete a community post or comment"),testId:"delete"}),t&&Object(p.jsx)(h,{action:t,label:a.a._("Report this content","Report a community post or comment","Report a community post or comment"),testId:"report"}),g&&Object(p.jsx)(h,{action:()=>{g(),C()},label:a.a._("Remove @mention","closeup.activityItem.removeMention","Button that allows user to remove their @mention in a comment on a pin"),testId:"removeMention"}),e&&(v||O)&&Object(p.jsx)(h,{action:e,label:a.a._("Block user","closeup.activityItem.blockUser","Block comment author"),testId:"blockUser"})]})})})})})]})}):null};g.defaultProps={handleBlockUser:null,handleClickReport:null,handleDelete:null,handleOnEdit:null,handleRemoveMention:null},t.a=g},F2s1:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("q1tI"),o=n("Ye/N"),r=n("nKUr");function a(){return Object(r.jsx)(i.Fragment,{children:o.a._("400 million","[m10n] number of monthly active users on pinterest","[m10n] number of monthly active users on pinterest")})}},FMFh:function(e,t,n){var i=n("q1tI"),o=n("wbGN"),r=n("3wQ7"),a=n("28DW"),s=n("ANjH"),c=n("gdcG"),l=n("n6mq"),d=n("iMWs"),u=n("nKUr");const p={brioContainer:{position:"relative",borderRadius:"8px",overflow:"hidden"},titleLarge:{fontSize:"25px",color:"white",marginTop:"10px",fontWeight:"normal"},title:{fontSize:"18px",fontWeight:"500",color:"white",letterSpacing:"0.5px"},btn:{color:"white"},dimOverlayDark:{cursor:"pointer",opacity:.35,bottom:"0px",left:"0px",right:"0px",top:"0px",backgroundColor:"#000",borderRadius:"6px 6px 0 0",position:"absolute",WebkitTransition:"opacity .04s linear",transition:"opacity .04s linear",pointerEvents:"none"}};var h=Object(s.compose)(c.a,d.c)((function({anchorTitle:e,buttonText:t,hoverHandlers:n,image:s,imageDescription:c,imageWidthMax:d,isHovering:h,link:g,overlayText:m,openInNewTab:f,pageContext:b,title:_}){const j=s.height*d/s.width,y=Object(u.jsxs)(i.Fragment,{children:[Object(u.jsxs)(l.f,{direction:"column",display:"flex",height:j,width:d,position:"absolute",children:[Object(u.jsx)(l.f,{padding:4,flex:"grow",children:Object(u.jsx)("span",{style:p.title,dangerouslySetInnerHTML:{__html:_}})}),h&&Object(u.jsxs)(i.Fragment,{children:[Object(u.jsx)("div",{style:p.dimOverlayDark}),Object(u.jsx)(r.a,{handleImageClick:()=>{},textOverride:m,disableHoverText:!0})]}),Object(u.jsx)(l.f,{padding:2,position:"relative",children:Object(u.jsx)(l.g,{text:t})})]}),Object(u.jsx)(o.a,{alt:c,src:s.url,style:{height:j}})]});return Object(u.jsx)("div",{...n,onClick:e=>{(e=>{e.preventDefault();const t=e.metaKey;Object(a.a)("unauth.holiday_upsell.click."+String(null==b?void 0:b.pageType));const n=f||t?"_blank":"_self";window.open(g,n).focus()})(e)},onContextMenu:e=>{e.stopPropagation()},role:"button",tabIndex:"0",style:p.brioContainer,children:Object(u.jsx)("a",{href:g,target:"_self",title:e,children:y})})})),g=n("ihsa"),m=n("nhss");var f=n("Ak65"),b=n("GfrH"),_=n("rXev"),j=n("pTLB"),y=n("pLLR"),v=n("yjg8");function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class x extends i.Component{constructor(...e){super(...e),O(this,"state",{clientJsActive:!1,secondaryFeed:this.props.secondaryFeed,expandedVase:{}}),O(this,"getPinImageSize",e=>{const{pinImageSize:t}=this.props;return t&&t in e.images?t:"236x"}),O(this,"calculateContainerStyle",(e,t,n,i)=>{const o={};if(void 0!==e&&Number.isInteger(e)&&e>t){const t=e*(n+i);o.margin="auto",o.maxWidth=t,o.overflow="hidden"}return o}),O(this,"reflowGrid",()=>{this.gridRef&&this.gridRef.reflow()}),O(this,"vaseExpandHandler",e=>{const{id:t}=e||{};if(t){const{expandedVase:e}=this.state;e[t]=!e[t],this.setState({expandedVase:e})}}),O(this,"markResourcesFetchingTime",()=>{const e=[];this.props.items.forEach(t=>{"pin"===t.type&&t.images&&e.push(t.images[this.getPinImageSize(t)].url)})}),O(this,"renderGridItem",({itemIdx:e,data:t})=>{const{pageContext:n,isRelatedPin:i,viewType:o,viewParameter:r,showSeeMore:a,maxPinImageHeight:s,pinImageClickHandler:c,isPaidTraffic:l,carouselTagColor:d,hideAllMeta:p,srcSet:g,hideMeta:m,viewData:b,hideVaseTags:_,desktopUnauthRankingLoggingData:j,disableDeeplinks:y,pinImageWidthMax:v,openInCurrentTab:O,pinLinkClickHandler:x}=this.props,{secondaryFeed:w,clientJsActive:S}=this.state,{image:C,openInNewTab:k,id:T,link:E,buttonText:I,anchorTitle:P,title:D,description:A,height:L,type:R}=t;switch(R){case"pin":const R={clientJsActive:S,carouselTagColor:d,desktopUnauthRankingLoggingData:j,disableDeeplinks:y,maxPinImageHeight:s,isPaidTraffic:l,pin:t,pinImageClickHandler:c,pinImageSize:this.getPinImageSize(t),pinImageWidthMax:v,pinLinkClickHandler:x,pinNumber:e,hideMeta:m,hideAllMeta:p,hideVaseTags:_,showSeeMore:a,srcSet:g,openInCurrentTab:O,resizeHandler:this.vaseExpandHandler,secondaryFeed:w,fromRelatedPinSection:!0};return Object(u.jsx)(f.a,{impressionType:"Pin",isRelatedPin:i,loggingId:T,slotIndex:e,viewParameter:void 0!==r?r:((null==n?void 0:n.logging)||{}).viewParameter,viewType:o||((null==n?void 0:n.logging)||{}).viewType,viewData:b||((null==n?void 0:n.logging)||{}).viewData,...R});case"placeholder":return Object(u.jsx)("div",{className:"PinGrid__placeholder",style:{height:L+"px",width:v+"px"}});case"holidayCard":return Object(u.jsx)(h,{anchorTitle:P,buttonText:I,image:C,imageWidthMax:v,imageDescription:A,link:E,title:D,openInNewTab:k});default:return Object(u.jsx)("div",{style:{height:1}})}}),O(this,"getItems",()=>{const{items:e}=this.props,{expandedVase:t}=this.state;return(e||[]).filter(e=>["pin","holidayCard","placeholder","module"].includes(e.type||"")).map(e=>void 0!==t[e.id]?{...e,expandedVASE:t[e.id]}:(e.expandedVASE=t[e.id],e))})}componentDidMount(){this.setState({clientJsActive:!0},this.markResourcesFetchingTime)}componentDidUpdate(e){const{items:t}=this.props;if(!(t&&t.length&&e&&e.items&&e.items.length))return;const n=t[0],i=e.items[0];"placeholder"===n.type&&"placeholder"===i.type&&i.height!==n.height&&this.gridRef&&this.gridRef.reflow()}renderServerRenderedGridItem(e,t){if("pin"!==e.type)return null;const{pageContext:n,numServerRenderedPins:i,showSeeMore:o,maxPinImageHeight:r,pinImageClickHandler:a,viewParameter:s,carouselTagColor:c,isPaidTraffic:d,hideAllMeta:p,srcSet:h,hideMeta:g,disableDeeplinks:f,hideVaseTags:b,desktopUnauthRankingLoggingData:_,pinWrapperBackgroundColor:j,pinImageWidthMax:y,openInCurrentTab:v}=this.props,O=null==n?void 0:n.logging;return Object(u.jsx)(l.f,{children:Object(u.jsx)(m.b,{carouselTagColor:c,clientJsActive:this.state.clientJsActive,desktopUnauthRankingLoggingData:_,disableDeeplinks:f,maxPinImageHeight:r,pin:e,slotIndex:t,pinImageClickHandler:a,pinImageSize:this.getPinImageSize(e),pinImageWidthMax:y,pinWrapperBackgroundColor:j,pinNumber:t,hideMeta:!!g,hideAllMeta:!!p,hideVaseTags:b,showSeeMore:o,srcSet:h,openInCurrentTab:!!v,numServerRenderedPins:i||0,resizeHandler:this.reflowGrid,viewParameter:void 0!==s?s:(O||{}).viewParameter,isPaidTraffic:!!d,isRelatedPin:!0},t)},t)}render(){const e=v.j,t=v.c,{scrollContainer:n,numServerRenderedPins:i,maxColumns:o,loadPins:r,virtualize:a=!1,showRelatedPinsHeader:s,responsive:c,pinImageWidthMax:l}=this.props,{clientJsActive:d}=this.state,p=this.getItems(),h=Object(v.o)(p.length),m=p.slice(0,h),f=s?"16px":"-20px",j=()=>"undefined"==typeof window?null:window;if(!d&&i){const n={...this.calculateContainerStyle(o,e,l,t),marginTop:f};return c&&(n.width="100%"),Object(u.jsx)("section",{className:"gridCentered pinGrid","data-test-id":"pinGrid",style:{...n,position:"relative"},children:m.map((e,t)=>this.renderServerRenderedGridItem(e,t))})}{const i="\n.PinGrid__placeholder {\n  display: inline-block;\n  padding-bottom: 36px;\n  visibility: hidden;\n}\n\n.PinGridInner__brioPin {\n  background: white;\n  border-radius: 6px;\n  display: inline-block;\n  font-size: 11px;\n  position: relative;\n  pointer-events: auto;\n}\n.PinGridInner__brioPin.relatedPin {\n  background-color: transparent;\n}\n"+Object(b.a)();return Object(u.jsxs)("section",{className:"gridCentered","data-test-id":"pinGrid",style:{marginTop:f},children:[Object(u.jsx)(g.a,{unsafeCSS:i}),Object(u.jsx)(_.a,{columnWidth:l,comp:this.renderGridItem,gutterWidth:t,items:p,loadItems:r,minCols:c?1:e,ref:e=>{this.gridRef=e},scrollContainer:n||j,fetchBoundsOffset:300,virtualize:a})]})}}}t.a=({pinLinkClickHandler:e,...t})=>{const n=Object(y.d)(),i=Object(d.b)(),o=Object(j.b)();return Object(u.jsx)(x,{...t,requestContext:n,pageContext:i,pinImageClickHandler:null==o?void 0:o.pinImageClickHandler,pinLinkClickHandler:e||(null==o?void 0:o.pinLinkClickHandler)})}},FeGr:function(e,t,n){(function(t){function n(e){o.length||(i(),!0),o[o.length]=e}e.exports=n;var i,o=[],r=0;function a(){for(;r<o.length;){var e=r;if(r+=1,o[e].call(),r>1024){for(var t=0,n=o.length-r;t<n;t++)o[t]=o[t+r];o.length-=r,r=0}}o.length=0,r=0,!1}var s,c,l,d=void 0!==t?t:self,u=d.MutationObserver||d.WebKitMutationObserver;function p(e){return function(){var t=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof u?(s=1,c=new u(a),l=document.createTextNode(""),c.observe(l,{characterData:!0}),i=function(){s=-s,l.data=s}):i=p(a),n.requestFlush=i,n.makeRequestCallFromTimer=p}).call(this,n("yLpj"))},FkkB:function(e,t,n){n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return F}));var i=n("q1tI"),o=n("NwVv"),r=n("BtEz"),a=n("h5nQ"),s=n("Z1P6"),c=n("kJuv"),l=n("hNZC"),d=n("StuW"),u=n("rYoy"),p=n("kmwA"),h=n("WR05"),g=n("PVS1"),m=n("1CXt"),f=n("pGrQ"),b=n("RQXw"),_=n("HU+g"),j=n("1n73"),y=n("7Gov"),v=n("D2p8"),O=n("sv3x"),x=n("28DW"),w=n("yweb"),S=n("J8m7"),C=n("AXUD"),k=n("aOj9"),T=n("c50B"),E=n("iMWs"),I=n("QAzJ"),P=n("nKUr");function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const A=Object(i.lazy)(()=>n.e(656).then(n.bind(null,"pmSe"))),L=p.a.settings.PASSWORD_RESET_URL,R="6LeZIo0UAAAAAKFpimHio-ff_ddIT8f_QzpXG0_1";class M extends i.Component{constructor(e){super(e),D(this,"onLoginWithVoluntarilyDeactivated",e=>{this.setState({googleValidationError:e.message})}),D(this,"onLoginWithSuspended",()=>{const{loadingIndicatorCallback:e}=this.props;e&&e(!1),this.setState({accountRecoveryModalType:y.a[S.x],loading:!1})}),D(this,"onloadCallback",()=>{try{window.recaptchaIdOne=window.grecaptcha.render("recaptcha_placeholder_1",{sitekey:R,callback:"verifyCaptcha"})}catch(e){}try{window.recaptchaIdTwo=window.grecaptcha.render("recaptcha_placeholder_2",{sitekey:R,callback:"verifyCaptcha"})}catch(e){}}),D(this,"handleButtonClick",(e,t)=>{Object(x.a)("unauth.login.button.clicked");const{logContextEvent:n,desktopCoreLoginContext:{viewer:i}}=this.props;n({event_type:101,element:30,aux_data:{...Object(m.a)(i.type),signup_login_method:1}}),this.setState({googleValidationError:null,hideFBGoogleToolTip:!1});let o=Object(d.a)(this.props.email,this.emailValidators);if(o)this.setState({emailValidationError:o}),Object(x.a)("unauth.login.error.CLIENT_ERROR.malformemail.loginmodal");else{this.setState({emailValidationError:null}),o=Object(d.a)(this.props.password,this.passwordValidators);const e=Object(d.a)(this.props.password,this.asciiValidators);o?(this.setState({passwordValidationError:o}),Object(x.a)("unauth.login.error.CLIENT_ERROR.malformpwd.loginmodal")):e?(this.setState({passwordValidationError:e}),Object(x.a)("unauth.login.error.CLIENT_ERROR.malformpwd.loginmodal")):(this.setState({passwordValidationError:null}),this.loginUser("email",void 0,t))}}),D(this,"preventRegister",e=>{"facebook"===e?this.updateAccountRecoveryModal(O.a.PREVENT_FACEBOOK_REGISTER):"google"===e&&this.updateAccountRecoveryModal(O.a.PREVENT_GOOGLE_REGISTER),this.props.triggerAccountRecoveryMode&&this.props.triggerAccountRecoveryMode(e)}),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{const e=document.createElement("script");e.id="recaptcha-jssdk",e.src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit",document.head&&document.head.appendChild(e)}}),D(this,"handleLoginFailure",(e,t,n)=>{const{clearPassword:i,i18n:o,loadingIndicatorCallback:r,logContextEvent:a,desktopCoreLoginContext:{viewer:s}}=this.props,c=this.getAuxDataLoginMethod(e);Object(x.a)("unauth.login.error.LOGIN_FAILURE."+e),a({event_type:7535,aux_data:{...Object(m.a)(s.type),signup_login_method:c}}),r(!1),this.props.refreshRecaptchaV3Token&&this.props.refreshRecaptchaV3Token();const l=t.http_status||t.httpStatus;let d=t.api_error_code||t.apiErrorCode;if(l===C.b&&(d=C.b),d===S.t)return void O.b.handleLoginMfa(n,t.data,this.props.onLoginWithMfa);if(l===C.b&&d===S.d&&t.message&&"!"!==t.message[t.message.length-1]&&!O.b.isExceedRecaptchaLocalLimit())return this.loadRecaptchaView(),void this.setState({passwordValidationError:o._("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});if(d===S.h&&l===C.a&&!O.b.isExceedRecaptchaLocalLimit())return this.loadRecaptchaView(),void this.setState({passwordValidationError:o._("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});const u=O.b.getLoginErrorState(t,"login",this.props.email,g.a,this.updateAccountRecoveryModal);u?(this.setState({...u,accountRecoveryModalType:y.a[d],loading:!1}),i&&u.passwordValidationError&&i()):(o._("Sorry! Something went wrong on our end.","Error message shown when user tried to login but error occured, and we don't have any other information about the error. May or may not be recoverable by the user.","Error message shown when user tried to login but error occured, and we don't have any other information about the error. May or may not be recoverable by the user."),Object(_.a)(o._("Sorry! Something went wrong on our end.")),this.setState({loading:!1}))}),D(this,"verifyCaptcha",()=>{const e=window.grecaptcha.getResponse(window.recaptchaIdOne)||window.grecaptcha.getResponse(window.recaptchaIdTwo);O.b.updateRecaptchaTimeStamp(),this.handleButtonClick(void 0,e),O.b.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.onPasswordChange&&this.props.onPasswordChange(e)}),D(this,"handleBlur",()=>{this.setState({googleValidationError:null});let e=Object(d.a)(this.props.email,this.asciiValidators);e&&Object(x.a)("unauth.login.error.CLIENT_ERROR.nonasciiemail.loginmodal"),e=Object(d.a)(this.props.password,this.asciiValidators),e&&Object(x.a)("unauth.login.error.CLIENT_ERROR.nonasciipwd.loginmodal")}),D(this,"handleExistingEmail",e=>{this.setState({isExistingEmail:e})}),D(this,"renderSocialButtons",()=>{const{disablePostSignupNextUrl:e,hideFacebookButton:t,hideLineButton:n,hideGoogleButton:o,i18n:r,isAccountSwitch:c,isPersonalizedLoginFlyout:l,loadingIndicatorCallback:d,nextUrlParam:p,onLoginWithMfa:h,onSocialConnectVerified:g,shouldPreventRegister:m,onFBPhoneOnlyConnectVerified:f,container:b="unknown",showResponseMessageModal:_,isLineAuthenticationEnabled:j,onLineEmailMissingError:y}=this.props,{hideFBGoogleToolTip:v}=this.state,O=!t&&Object(P.jsx)(a.a,{buttonText:r._("Continue with Facebook"),container:b,disablePostSignupNextUrl:e,isAccountSwitch:c,loadingIndicatorCallback:d,nextUrlParam:p,onFBPhoneOnlyConnectVerified:f,onLoginWithMfa:h,onLoginWithSuspended:this.onLoginWithSuspended,onSocialConnectVerified:g,preventRegister:m?this.preventRegister:void 0,showResponseMessageModal:_,tooltip:null,useGestaltTooltip:!0}),x=!o&&Object(P.jsx)(s.a,{container:b,disablePostSignupNextUrl:e,isAccountSwitch:c,nextUrlParam:p,onLoginWithMfa:h,onLoginWithSuspended:this.onLoginWithSuspended,onLoginWithVoluntarilyDeactivated:this.onLoginWithVoluntarilyDeactivated,onSocialConnectVerified:g,preventRegister:m?this.preventRegister:void 0,showResponseMessageModal:_,tooltip:!v&&this.state.googleValidationError||null}),w=!n&&j&&Object(P.jsx)(u.a,{children:Object(P.jsx)(A,{container:b,disablePostSignupNextUrl:e,loadingIndicatorCallback:d,isAccountSwitch:c,nextUrlParam:p,onLoginWithMfa:h,onLoginWithSuspended:this.onLoginWithSuspended,onLineEmailMissingError:y,preventRegister:m?this.preventRegister:void 0,showResponseMessageModal:_})}),S=!t&&!o?"8px":"0px";return Object(P.jsxs)("div",{style:{marginTop:l?"9px":"10px"},"data-test-id":"login-options",children:[O,Object(P.jsx)("div",{style:{height:l?S:"10px"}}),x,!n&&j&&Object(P.jsxs)(i.Fragment,{children:[Object(P.jsx)("div",{style:{height:l?S:"10px"}}),w]})]})}),D(this,"renderPasswordResetLink",()=>{const{email:e,i18n:t,logContextEvent:n,requestContext:{isRTL:o},desktopCoreLoginContext:{viewer:r}}=this.props,{isExistingEmail:a,passwordValidationError:s}=this.state;return s&&Object(i.isValidElement)(s)?null:Object(P.jsx)("div",{style:{float:o?"right":"left",marginBottom:"12px",marginTop:"8px"},children:Object(P.jsx)("a",{href:L+(e?"?q="+e:""),onClick:()=>{a&&Object(x.a)("unauth_web.login_modal.forgot_password_with_existing_email"),Object(x.a)("login_modal_forget_account"),Object(x.h)("click_forget_password"),n({event_type:101,element:10881,aux_data:{...Object(m.a)(r.type)}})},style:{color:"#333333",fontSize:"14px",fontWeight:"bold"},children:t._("Forgot your password?","Desktop login modal link for users to recover their account","Desktop login modal link for users to recover their account")})})}),D(this,"renderRegisterForm",()=>{const{email:e,hideEmailField:t,i18n:n,inputStyleOverrides:i,isAccountSwitch:o,loginButtonTextOverride:r,password:a,requestContext:s}=this.props,c=r||n._("Log in","Copy on the button to log in","Copy on the button to log in");return Object(P.jsx)(l.a,{buttonText:c,disableEmailLogin:this.props.disableEmailLogin,email:e,emailText:n._("Email","Placeholder text for email field","Placeholder text for email field"),emailValidationError:this.state.emailValidationError,handleExistingEmail:this.handleExistingEmail,hideEmailField:t,hideFacebookButton:this.props.hideFacebookButton,hideGoogleButton:this.props.hideGoogleButton,hidePasswordField:this.props.hidePasswordField,inputStyleOverrides:i,isRTL:!!s.isRTL,loading:this.state.loading&&!o,onButtonClick:this.handleButtonClick,onEmailBlur:this.handleBlur.bind(this),onEmailChange:this.handleEmailChange.bind(this),onPasswordChange:this.handlePasswordChange,password:a,passwordText:n._("Password"),passwordValidationError:this.state.passwordValidationError,renderPasswordResetLink:this.renderPasswordResetLink})}),D(this,"renderOriginalForm",()=>{const{hideFacebookButton:e,hideGoogleButton:t,hidePasswordField:n}=this.props,o=!(n||t&&e);return Object(P.jsxs)(i.Fragment,{children:[this.renderRegisterForm(),o&&Object(P.jsx)(r.b,{}),this.renderSocialButtons()]})}),D(this,"renderButtons",()=>this.renderOriginalForm()),this.state={accountRecoveryModalType:null,emailValidationError:e.emailValidationError||null,passwordValidationError:e.passwordValidationError||null,googleValidationError:null,loading:!1,isExistingEmail:!1,hideFBGoogleToolTip:!1};const{i18n:t}=e,n=t._("You missed a spot! Don't forget to add your email."),o=t._("Hmm...that doesn't look like an email address."),c=t._("Use only a mix of letters, numbers and special characters (for example: ?, !, $).","Login.password.onlyASCII","Only ASCII characters are allowed for password");this.emailValidators=[Object(T.o)({message:n}),Object(T.e)({message:o})];const p=t._("The password you entered is incorrect.");this.passwordValidators=[Object(f.b)({shortPassStr:p,samePasswordStr:p,blackPassStr:p})],this.asciiValidators=[Object(T.b)({message:c})]}componentDidMount(){const{isAccountSwitch:e,nextUrlParam:t,requestContext:n,showResponseMessageModal:i}=this.props;O.b.isFullyLoggedIn(n.isAuthenticated,n.loginState)&&!e&&(i?i(!1):O.b.handleRedirect(t)),window.onloadCallback=this.onloadCallback,window.verifyCaptcha=this.verifyCaptcha,void 0===window.recaptchaCount?window.recaptchaCount=1:window.recaptchaCount+=1}static getDerivedStateFromProps(e,t){const n=e.emailValidationError,i=e.passwordValidationError;return n&&n!==t.emailValidationError?{emailValidationError:n}:i&&i!==t.passwordValidationError?{passwordValidationError:i}:null}componentWillUnmount(){void 0!==window.recaptchaCount&&(window.recaptchaCount-=1)}getAuxDataLoginMethod(e){return"facebook"===e?2:"google"===e?3:1}loginUser(e,t,n){const{container:i="unknown",email:r,flushContextEvents:a,isAccountSwitch:s,loadingIndicatorCallback:l,logContextEvent:d,pageContext:u,showResponseMessageModal:p,desktopCoreLoginContext:{viewer:h,getLoginContext:g}}=this.props;this.setState({loading:!0}),l(!0);const f=t||{username_or_email:r||"",password:this.props.password},b={container:i,hybridTier:u?u.hybridTier:void 0,page:u?u.pageType:void 0},_=this.getAuxDataLoginMethod(e);d({event_type:7534,aux_data:{...Object(m.a)(h.type),signup_login_method:_}}),v.c.pause(v.b),a(),Object(c.a)(f,g(),b,s,n,this.props.recaptchaV3Token||"default").then((e={})=>{d({event_type:7536,aux_data:{...Object(m.a)(h.type),signup_login_method:_}}),O.b.storeLoginCredentialsToBrowser(f);let t=this.props.nextUrlParam||O.b.defaultLoginRedirectUrl();if(this.props.isPinterestTagEnabled&&window.pintrk("track","custom",{lead_type:"Pinterest Login",em:r}),s&&e.resource_response&&e.resource_response.data&&e.resource_response.data.user){const n=e.resource_response.data.user;Object(o.a)(n,"email",i),t="/"+n.username}else O.b.storeLoginCredentialsToBrowser(f);p?p(!1):O.b.handleRedirect(t)},t=>this.handleLoginFailure(e,t,f))}render(){const{email:e,requestContext:t,useWiderSocialButtons:n}=this.props,{country:i}=t;return Object(P.jsxs)("div",{style:{margin:"0 auto",width:n?"280px":"268px"},children:[Object(P.jsx)(y.b,{email:e||"",modalType:this.state.accountRecoveryModalType,onLoginWithMfa:this.props.onLoginWithMfa,updateAccountRecoveryModal:this.updateAccountRecoveryModal}),this.renderButtons(),!this.props.hideTermsOfService&&Object(P.jsx)(h.a,{country:i,dark:!0})]})}}function F(e){const{anyEnabled:t}=Object(I.a)("wider_fb_button_for_translations"),n=Object(w.c)(),{flushContextEvents:i,logContextEvent:o}=Object(j.b)(),r=Object(E.b)(),a=Object(k.d)(),s=Object(I.b)("desktop_web_line_oauth_jp")().anyEnabled,c=Object(I.b)("m10n_measurement_pinterest_tag_us")().anyEnabled;return Object(P.jsx)(b.a,{children:({recaptchaV3Token:l,refreshToken:d})=>Object(P.jsx)(M,{...e,desktopCoreLoginContext:a,flushContextEvents:i,i18n:n,logContextEvent:o,pageContext:r,recaptchaV3Token:l,refreshRecaptchaV3Token:d,useWiderSocialButtons:t,isLineAuthenticationEnabled:s,isPinterestTagEnabled:c})})}},G3wy:function(e,t,n){function i(e){e&&e.focus()}n.d(t,"a",(function(){return i}))},G6B4:function(e,t,n){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n("JQRy"),r=n("+jF9"),a=n("jaOL"),s=n("pWuj"),c=n("lihF"),l=n("LTlA");t.default=function(e,t){return void 0===e&&(e={}),{dirtyHandlerIds:s.default(e.dirtyHandlerIds,{type:t.type,payload:i({},t.payload,{prevTargetIds:l.get(e,"dragOperation.targetIds",[])})}),dragOffset:o.default(e.dragOffset,t),refCount:a.default(e.refCount,t),dragOperation:r.default(e.dragOperation,t),stateId:c.default(e.stateId)}}},GYWy:function(e,t,n){(function(e,i){var o;!function(r){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof i&&i;a.global!==a&&a.window!==a&&a.self;var s,c=2147483647,l=36,d=/^xn--/,u=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=Math.floor,m=String.fromCharCode;function f(e){throw new RangeError(h[e])}function b(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function _(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+b((e=e.replace(p,".")).split("."),t).join(".")}function j(e){for(var t,n,i=[],o=0,r=e.length;o<r;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<r?56320==(64512&(n=e.charCodeAt(o++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),o--):i.push(t);return i}function y(e){return b(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,n){var i=0;for(e=n?g(e/700):e>>1,e+=g(e/t);e>455;i+=l)e=g(e/35);return g(i+36*e/(e+38))}function x(e){var t,n,i,o,r,a,s,d,u,p,h,m=[],b=e.length,_=0,j=128,v=72;for((n=e.lastIndexOf("-"))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&f("not-basic"),m.push(e.charCodeAt(i));for(o=n>0?n+1:0;o<b;){for(r=_,a=1,s=l;o>=b&&f("invalid-input"),((d=(h=e.charCodeAt(o++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:l)>=l||d>g((c-_)/a))&&f("overflow"),_+=d*a,!(d<(u=s<=v?1:s>=v+26?26:s-v));s+=l)a>g(c/(p=l-u))&&f("overflow"),a*=p;v=O(_-r,t=m.length+1,0==r),g(_/t)>c-j&&f("overflow"),j+=g(_/t),_%=t,m.splice(_++,0,j)}return y(m)}function w(e){var t,n,i,o,r,a,s,d,u,p,h,b,_,y,x,w=[];for(b=(e=j(e)).length,t=128,n=0,r=72,a=0;a<b;++a)(h=e[a])<128&&w.push(m(h));for(i=o=w.length,o&&w.push("-");i<b;){for(s=c,a=0;a<b;++a)(h=e[a])>=t&&h<s&&(s=h);for(s-t>g((c-n)/(_=i+1))&&f("overflow"),n+=(s-t)*_,t=s,a=0;a<b;++a)if((h=e[a])<t&&++n>c&&f("overflow"),h==t){for(d=n,u=l;!(d<(p=u<=r?1:u>=r+26?26:u-r));u+=l)x=d-p,y=l-p,w.push(m(v(p+x%y,0))),d=g(x/y);w.push(m(v(d,0))),r=O(n,_,i==o),n=0,++i}++n,++t}return w.join("")}s={version:"1.4.1",ucs2:{decode:j,encode:y},decode:x,encode:w,toASCII:function(e){return _(e,(function(e){return u.test(e)?"xn--"+w(e):e}))},toUnicode:function(e){return _(e,(function(e){return d.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n("YuTi")(e),n("yLpj"))},GaY9:function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));n("MhBu"),n("KFEb");function i(e){return{type:"AGGREGATED_COMMENT_HIDDEN",payload:{aggregatedCommentId:e}}}function o(e){return{type:"AGGREGATED_COMMENT_HIDDEN_FOR_USER",payload:{userId:e}}}},GfrH:function(e,t,n){function i(){return"\n.PinLandingCloseup__similarPin__button {\n  background-color: transparent;\n  border: 0;\n  color: #767676;\n  font-size: 12px;\n  font-weight: bold;\n  height: 13px;\n  letter-spacing: -0.3px;\n  -moz-osx-font-smoothing: grayscale;\n  outline: none;\n  padding: 0;\n  -webkit-font-smoothing: antialiased;\n}\n"}n.d(t,"a",(function(){return i}))},GsvW:function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return d}));var i=n("pWkb"),o=n("Ye/N");const r=656,a=464,s=60,c=170,l=e=>{const t=new Date(e),n=(new Date).getTime()-t.getTime();return Math.floor(n/1e3)<60?o.a._("now","timestamp for a comment or post that was created within the last minute","timestamp for a comment or post that was created within the last minute"):Object(i.a)(e,{isAbbreviated:!0})},d=e=>{const t=e.first_name||e.full_name||e.username;return t&&t.length>s?t.substring(0,s).trim().concat("..."):t}},Gytx:function(e,t){e.exports=function(e,t,n,i){var o=n?n.call(i,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<r.length;c++){var l=r[c];if(!s(l))return!1;var d=e[l],u=t[l];if(!1===(o=n?n.call(i,d,u,l):void 0)||void 0===o&&d!==u)return!1}return!0}},Gz3U:function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("nKUr");function o({size:e,noCircle:t}){return Object(i.jsxs)("svg",{height:e,style:{display:"block"},viewBox:t?"3 3 70 70":"-3 -3 82 82",width:e,children:[t?null:Object(i.jsx)("circle",{cx:"38",cy:"38",fill:"white",r:"40"}),Object(i.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:"#e60023",fillRule:"evenodd"})]})}},H3Jb:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("q1tI"),o=n("4vzw"),r=n("/acK"),a=n("nrB0"),s=n("nwWm"),c=n("2S0S");t.useDragSourceMonitor=function(){var e=r.useDragDropManager();return[i.useMemo((function(){return new a.default(e)}),[e]),i.useMemo((function(){return new s.default(e.getBackend())}),[e])]},t.useDragHandler=function(e,t,n){var a=r.useDragDropManager(),s=i.useMemo((function(){return{beginDrag:function(){var n=e.current,i=n.begin,o=n.item;if(i){var r=i(t);return c(null==r||"object"==typeof r,"dragSpec.begin() must either return an object, undefined, or null"),r||o||{}}return o||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(n,i){var o=e.current.isDragging;return o?o(t):i===n.getSourceId()},endDrag:function(){var i=e.current.end;i&&i(t.getItem(),t),n.reconnect()}}}),[]);i.useEffect((function(){var i=o.default(e.current.item.type,s,a),r=i[0],c=i[1];return t.receiveHandlerId(r),n.receiveHandlerId(r),c}),[])}},HCyo:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("mc7v"),o=n("QIuh"),r=n("YuQ1"),a=n("QLaP"),s=function(){function e(e,t){this.store=e,this.registry=t}return e.prototype.subscribeToStateChange=function(e,t){var n=this;void 0===t&&(t={handlerIds:void 0});var i=t.handlerIds;a("function"==typeof e,"listener must be a function."),a(void 0===i||Array.isArray(i),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId;return this.store.subscribe((function(){var t=n.store.getState(),a=t.stateId;try{a===o||a===o+1&&!r.areDirty(t.dirtyHandlerIds,i)||e()}finally{o=a}}))},e.prototype.subscribeToOffsetChange=function(e){var t=this;a("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var i=t.store.getState().dragOffset;i!==n&&(n=i,e())}))},e.prototype.canDragSource=function(e){if(!e)return!1;var t=this.registry.getSource(e);return a(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)},e.prototype.canDropOnTarget=function(e){if(!e)return!1;var t=this.registry.getTarget(e);if(a(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),o=this.getItemType();return i.default(n,o)&&t.canDrop(this,e)},e.prototype.isDragging=function(){return Boolean(this.getItemType())},e.prototype.isDraggingSource=function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return a(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))},e.prototype.isOverTarget=function(e,t){if(void 0===t&&(t={shallow:!1}),!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(e),r=this.getItemType();if(r&&!i.default(o,r))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(e);return n?s===a.length-1:s>-1},e.prototype.getItemType=function(){return this.store.getState().dragOperation.itemType},e.prototype.getItem=function(){return this.store.getState().dragOperation.item},e.prototype.getSourceId=function(){return this.store.getState().dragOperation.sourceId},e.prototype.getTargetIds=function(){return this.store.getState().dragOperation.targetIds},e.prototype.getDropResult=function(){return this.store.getState().dragOperation.dropResult},e.prototype.didDrop=function(){return this.store.getState().dragOperation.didDrop},e.prototype.isSourcePublic=function(){return this.store.getState().dragOperation.isSourcePublic},e.prototype.getInitialClientOffset=function(){return this.store.getState().dragOffset.initialClientOffset},e.prototype.getInitialSourceClientOffset=function(){return this.store.getState().dragOffset.initialSourceClientOffset},e.prototype.getClientOffset=function(){return this.store.getState().dragOffset.clientOffset},e.prototype.getSourceClientOffset=function(){return o.getSourceClientOffset(this.store.getState().dragOffset)},e.prototype.getDifferenceFromInitialOffset=function(){return o.getDifferenceFromInitialOffset(this.store.getState().dragOffset)},e}();t.default=s},HNpt:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=0;t.default=function(){return i++}},HTqQ:function(e,t,n){var i=n("xjqW");t.a=({id:e,viewParameter:t,viewType:n})=>Object(i.b)({id:e,isProduct:!1,isPromoted:!1,videoDuration:null,viewParameter:t,viewType:n,type:"aggregatedComment"})},Hrat:function(e,t,n){var i=n("yaUg"),o=n("Ye/N");t.a=e=>{const t=e.link_domain||{},n=e.tracked_link||e.link||e.images&&e.images.orig&&e.images.orig.url,r=e.rich_metadata,a=e.domain,s=e.closeup_attribution||e.native_creator||t.official_user||e.pinner||e.origin_pinner,c=!(!(r&&r.recipe&&r.recipe.name&&r.recipe.categorized_ingredients)||r.recipe.from_aggregated_data);let l,d;r&&r.products&&r.products[0]&&(l=!!(r&&r.name&&r.offer_summary));const u=l,p=!(!r||!r.article),h=!(!r||!r.tutorial),g=!(!s||!s.username);let m=o.a._("Saved from ","Closeup pin annotation","Closeup pin annotation"),f=g?o.a._("Saved by"):o.a._("Saved from"),b=o.a._("Visit");r&&r.products&&r.products[0]&&r&&r.products[0].name&&r.products[0].offer_summary&&(m=o.a._("Product sold by ","pin annotation","pin annotation"),d=r.products[0].offer_summary),u?(f=o.a._("Sold by"),b=o.a._("Visit")):h?(m=o.a._("Saved from ","pin annotation","pin annotation"),f=g?o.a._("Saved by"):o.a._("Saved from"),b=o.a._("Visit")):c?(m=o.a._("Recipe from ","pin annotation","pin annotation"),f=g?o.a._("Recipe by"):o.a._("Recipe from"),b=o.a._("Make it")):p&&(m=o.a._("Article from ","pin annotation","pin annotation"),f=g?o.a._("Article by"):o.a._("Article from"),b=o.a._("Read it"));const _=e.rich_summary;if(!d&&_){let e;_&&_.products&&_.products[0]&&(e=!!(_&&_.products[0].name&&_.products[0].offer_summary),e&&(m=o.a._("Product sold by ","pin annotation","pin annotation")))}let j,y;g?(j="/"+s.username+"/",y=s.full_name):(j="/source/"+a,y=r&&r.site_name||a);return{actionButtonText:b,image:s&&(s.image_medium_url||s.image_small_url)||e.board&&e.board.image_thumbnail_url,link:j,pinLink:n,pin:e,pinCreditPrefix:m,prefixText:f,subtitle:y,title:Object(i.a)(o.a._("More from {{ subtitle }}"),{subtitle:y}),pinTitle:e.closeup_unified_title,pinDescription:e.closeup_unified_description,pinCategory:e.category}}},HtlI:function(e,t){e.exports="https://s.pinimg.com/webapp/heartOutlineWhite-2b63164b.svg"},I1Lu:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n("Ye/N");const o=()=>i.a._("Sign up to get your ideas","unauth.homepage.signup_upsell","Invite users to signup after seeing education about Pinterest on homepage."),r=["BR","CO","AR","MX"],a=["US","CA","GB","IE","AU","NZ"],s=e=>"IN"===e?{chai:i.a._("chai time snacks idea","unauth.homepage.title","An example of what india users could find on Pinterest."),homeDecor:i.a._("home decor idea","unauth.homepage.title","An example of what india users could find on Pinterest."),fashion:i.a._("outfit idea","unauth.homepage.title","An example of what india users could find on Pinterest."),DIY:i.a._("DIY idea","unauth.homepage.title","An example of what india users could find on Pinterest.")}:r.includes(e)?{fashion:i.a._("summer outfit idea","unauth.homepage.title","An example of what LATAM users could find on Pinterest."),parenting:i.a._("activity for kids","unauth.homepage.title","An example of what LATAM users could find on Pinterest."),food:i.a._("idea for special dinner","unauth.homepage.title","An example of what LATAM users could find on Pinterest."),DIY:i.a._("DIY project","unauth.homepage.title","An example of what LATAM users could find on Pinterest.")}:a.includes(e)?{valentines:i.a._("Valentine's Day idea","unauth.homepage.title","An example of what users could find on Pinterest."),food:i.a._("weeknight dinner idea","unauth.homepage.title","An example of what users could find on Pinterest."),homeDecor:i.a._("home decor idea","unauth.homepage.title","An example of what users could find on Pinterest."),fashion:i.a._("new look outfit","unauth.homepage.title","An example of what users could find on Pinterest.")}:{food:i.a._("weeknight dinner idea","unauth.homepage.title","An example of what users could find on Pinterest."),homeDecor:i.a._("home decor idea","unauth.homepage.title","An example of what users could find on Pinterest."),gardening:i.a._("green thumb idea","unauth.homepage.title","An example of what users could find on Pinterest."),fashion:i.a._("new look outfit","unauth.homepage.title","An example of what users could find on Pinterest.")}},IDoE:function(e,t,n){var i=n("xGpI");t.a=()=>Object.keys(Object(i.a)()).length},"IEa/":function(e,t,n){var i=n("FeGr"),o=[],r=[],a=i.makeRequestCallFromTimer((function(){if(r.length)throw r.shift()}));function s(e){var t;(t=o.length?o.pop():new c).task=e,i(t)}function c(){this.task=null}e.exports=s,c.prototype.call=function(){try{this.task.call()}catch(e){s.onerror?s.onerror(e):(r.push(e),a())}finally{this.task=null,o[o.length]=this}}},"IG/j":function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("n6mq"),o=n("4cTg"),r=n("nKUr");function a(){return Object(r.jsx)(o.b.Consumer,{children:({showCloseupContentRight:e,viewportSize:t})=>e&&"lg"===t?Object(r.jsx)(i.f,{width:16}):null})}},IIK6:function(e,t,n){n.d(t,"cb",(function(){return i})),n.d(t,"U",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"T",(function(){return a})),n.d(t,"P",(function(){return s})),n.d(t,"Q",(function(){return c})),n.d(t,"R",(function(){return l})),n.d(t,"Y",(function(){return d})),n.d(t,"X",(function(){return u})),n.d(t,"V",(function(){return p})),n.d(t,"W",(function(){return h})),n.d(t,"ab",(function(){return g})),n.d(t,"Z",(function(){return m})),n.d(t,"bb",(function(){return f})),n.d(t,"G",(function(){return b})),n.d(t,"db",(function(){return _})),n.d(t,"C",(function(){return j})),n.d(t,"F",(function(){return y})),n.d(t,"J",(function(){return v})),n.d(t,"D",(function(){return O})),n.d(t,"E",(function(){return x})),n.d(t,"I",(function(){return w})),n.d(t,"B",(function(){return S})),n.d(t,"i",(function(){return C})),n.d(t,"j",(function(){return k})),n.d(t,"lb",(function(){return T})),n.d(t,"f",(function(){return E})),n.d(t,"b",(function(){return I})),n.d(t,"mb",(function(){return P})),n.d(t,"g",(function(){return D})),n.d(t,"h",(function(){return A})),n.d(t,"nb",(function(){return L})),n.d(t,"c",(function(){return R})),n.d(t,"z",(function(){return M})),n.d(t,"ib",(function(){return F})),n.d(t,"jb",(function(){return N})),n.d(t,"kb",(function(){return B})),n.d(t,"A",(function(){return U})),n.d(t,"K",(function(){return z})),n.d(t,"eb",(function(){return W})),n.d(t,"fb",(function(){return V})),n.d(t,"O",(function(){return G})),n.d(t,"ob",(function(){return H})),n.d(t,"w",(function(){return q})),n.d(t,"k",(function(){return Y})),n.d(t,"n",(function(){return K})),n.d(t,"m",(function(){return $})),n.d(t,"o",(function(){return X})),n.d(t,"p",(function(){return J})),n.d(t,"q",(function(){return Z})),n.d(t,"r",(function(){return Q})),n.d(t,"v",(function(){return ee})),n.d(t,"s",(function(){return te})),n.d(t,"u",(function(){return ne})),n.d(t,"t",(function(){return ie})),n.d(t,"x",(function(){return oe})),n.d(t,"y",(function(){return re})),n.d(t,"qb",(function(){return ae})),n.d(t,"pb",(function(){return se})),n.d(t,"tb",(function(){return ce})),n.d(t,"vb",(function(){return le})),n.d(t,"wb",(function(){return de})),n.d(t,"xb",(function(){return ue})),n.d(t,"sb",(function(){return pe})),n.d(t,"ub",(function(){return he})),n.d(t,"rb",(function(){return ge})),n.d(t,"hb",(function(){return me})),n.d(t,"S",(function(){return fe})),n.d(t,"l",(function(){return be})),n.d(t,"H",(function(){return _e})),n.d(t,"gb",(function(){return je})),n.d(t,"L",(function(){return ye})),n.d(t,"M",(function(){return ve})),n.d(t,"N",(function(){return Oe})),n.d(t,"a",(function(){return xe})),n.d(t,"d",(function(){return we}));const i=880,o=340,r=380,a=510,s=40,c=20,l=4,d=474,u=186,p=40,h=10,g=88,m=183,f=130,b=24,_=400,j=50,y=8,v=8,O=5,x=20,w=13,S=5,C=20,k=C**2,T=100,E=500,I=500,P=40,D=100,A=5,L=["attempted","publishing","succeeded","uploading"],R={carousel:[{w:2,h:3},{w:3,h:4},{w:1,h:1}],single:[{w:2,h:3},{w:3,h:4},{w:1,h:1}],story:[{w:9,h:16}]},M=["tl","tc","tr","bl","bc","br"],F=["left","center"],N=["top","center","bottom"],B=["none","uppercase"],U=["sm","md","lg"],z=[1,.75],W=198,V=132,G=(Math.floor(16*V/9),1),H=56,q=240,Y="cubic-bezier(0.66, 0.025, 0.33, 0.975)",K=["image/bmp","image/gif","image/jpeg","image/png","image/tiff","image/webp"],$=["bmp","gif","jpg","jpeg","png","tiff","webp"],X=89478485,J=20971520,Z=100,Q=100,ee=1e3,te=1500,ne=2,ie=3,oe=20,re=20,ae=["video/mp4","video/x-m4v","video/quicktime"],se=["mp4","m4v","mov"],ce=2147483648,le=4,de=Z,ue=Q,pe=900,he=.5,ge=1.91,me=2,fe=["processing","publishing","saving"],be=2500,_e=3,je=5e3,ye="pin-builder-default-education-id",ve="pin-builder-default-tour-id",Oe="pin-builder-editing-tour-id",xe={CAROUSEL:"CAROUSEL",STATIC:"STATIC",VIDEO:"VIDEO",COLLECTIONS:"COLLECTIONS"},we={TRAFFIC:"TRAFFIC",AWARENESS:"AWARENESS",APP_INSTALL:"APP_INSTALL",WEB_CONVERSION:"WEB_CONVERSION",CATALOG_SALES:"CATALOG_SALES",VIDEO_VIEW:"VIDEO_VIEW",WEB_SESSIONS:"WEB_SESSIONS"}},IRZy:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("QWk2"),o=n("TT16"),r=n("Gytx"),a=function(){function e(e){var t=this;this.backend=e,this.hooks=i.default({dropTarget:function(e,n){t.dropTargetOptions=n,o.isRef(e)?t.dropTargetRef=e:t.dropTargetNode=e,t.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null}return Object.defineProperty(e.prototype,"connectTarget",{get:function(){return this.dropTarget},enumerable:!0,configurable:!0}),e.prototype.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},e.prototype.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},Object.defineProperty(e.prototype,"dropTargetOptions",{get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e},enumerable:!0,configurable:!0}),e.prototype.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},e.prototype.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},e.prototype.didOptionsChange=function(){return!r(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},e.prototype.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},Object.defineProperty(e.prototype,"dropTarget",{get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current},enumerable:!0,configurable:!0}),e}();t.default=a},"J/zr":function(e,t,n){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var i=n("eOdZ"),o=n("GaY9"),r=n("/X16");const a=(e,t)=>({type:r.b.USER_BLOCK,payload:{id:e,isUserBlocked:t}}),s=e=>t=>{i.a.create("UserBlockResource",{blocked_user_id:e}).callCreate(),t(a(e,!0)),t(Object(o.b)(e))},c=e=>t=>{const n=i.a.create("UserBlockResource",{blocked_user_id:e});return t(a(e,!1)),n.callDelete()}},JK01:function(e,t,n){t.a=(e,t,n,i=!1,o="")=>`\n.${e} {\n  -webkit-animation-duration: 1s;\n  -webkit-animation-fill-mode: forwards;\n  -webkit-animation-iteration-count: infinite;\n  -webkit-animation-name: ${e}_placeHolderShimmer;\n  -webkit-animation-timing-function: linear;\n  border-radius: ${i?"50%":o||"8px"};\n  background: #f6f7f9;\n  background-image: linear-gradient(to right, #f6f7f9 0%, #e9ebee 20%, #f6f7f9 40%, #f6f7f9 100%);\n  background-repeat: no-repeat;\n  background-size: ${t}px ${n}px;\n  width: ${t}px;\n  height: ${n}px;\n}\n\n@keyframes ${e}_placeHolderShimmer{\n  0% {\n      background-position: -${t}px 0;\n  }\n  100% {\n      background-position: ${t}px 0;\n  }\n}\n`},JKZO:function(e,t,n){n.d(t,"a",(function(){return c}));var i=n("2K7C"),o=n("MKeS"),r=n("nKUr"),a=n.n(r);const s=Object(o.a)({resolved:{},chunkName:()=>"EditorWithMentionsInternal",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e("EditorWithMentionsInternal").then(n.bind(null,"AO8i")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return"AO8i"}});function c(e){return Object(r.jsx)(s,{...e,fallback:Object(r.jsx)(i.a,{})})}},JQRy:function(e,t,n){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n("pYMm"),r=n("N4T/"),a={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};t.default=function(e,t){void 0===e&&(e=a);var n=t.payload;switch(t.type){case o.INIT_COORDS:case o.BEGIN_DRAG:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case o.HOVER:return r.areCoordsEqual(e.clientOffset,n.clientOffset)?e:i({},e,{clientOffset:n.clientOffset});case o.END_DRAG:case o.DROP:return a;default:return e}}},Jld5:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("CkrQ"),o=n("G6B4"),r=n("pYMm"),a=n("HCyo"),s=n("54t5");var c=function(){function e(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=!1),this.context=t,this.isSetUp=!1,this.handleRefCountChange=function(){var e=r.store.getState().refCount>0;e&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!e&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1)};var c=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return i.createStore(o.default,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n);this.store=c,this.monitor=new a.default(c,new s.default(c)),this.backend=e(this),c.subscribe(this.handleRefCountChange)}return e.prototype.getContext=function(){return this.context},e.prototype.getMonitor=function(){return this.monitor},e.prototype.getBackend=function(){return this.backend},e.prototype.getRegistry=function(){return this.monitor.registry},e.prototype.getActions=function(){var e=this,t=this.store.dispatch;var n=r.default(this);return Object.keys(n).reduce((function(i,o){var r,a=n[o];return i[o]=(r=a,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=r.apply(e,n);void 0!==o&&t(o)}),i}),{})},e.prototype.dispatch=function(e){this.store.dispatch(e)},e}();t.default=c},JqDr:function(e,t,n){var i=n("gxu6"),o=n("mwIZ"),r=n.n(o),a=n("eOdZ"),s=n("QLqj"),c=n("VL22"),l=n("RNo4"),d=n("OX7c"),u=n("J8m7"),p=n("yM2L"),h=n("28DW");let g=0;const m=(e,t)=>{const n={...e},{onCorsHandshakeHost:o,registerUserContext:f,sendActiveUserPing:b,successWithoutTokenErrorMessage:_}=t,j=s.b.localStorage.getItem("visitedPages"),y=r()(window,["location","search"],null),v=Object(l.k)(y).utm_campaign;j&&(n.visited_pages=JSON.stringify(j)),v&&(n.utm_campaign=v);const O=s.b.localStorage.getItem("visitedPinLandingPagesBeforeLogin");if(O){const e=[];for(const t of O)t.is_shared_pin&&e.push({ts:t.ts,path:t.path,first_pin_image_signature:t.image_signature,is_shared:!0});e&&(n.visited_pages=JSON.stringify(e.concat(j||[])))}n.user_behavior_data=(()=>{const e={};return["signupTriedSkipInputName","signupTriedSkipGender","unauthTopicsFollowed"].forEach(t=>{const n=s.b.localStorage.getItem(t);n&&(e[t]=n)}),JSON.stringify(e)})();const x=e=>(Object(d.a)("signup"),i.c("galae"),i.c("fbalae"),b(),i.b("ujr","1"),((e,{logContextEventType:t,trackRegisterSuccess:n})=>{let i;switch(e.container){case"home_page":i=1750,Object(h.j)("signup_home_page");break;case"mweb_homepage":i=1750,Object(h.j)("signup_mweb_home_page");break;case"plain_signup_modal":i=1751,Object(h.j)("signup_plain_modal");break;case"closeup_signup_modal":i=1752,Object(h.j)("signup_closeup_modal");break;case"widescreen_signup_modal":i=1753,Object(h.j)("signup_widescreen_modal");break;case"pinit_button_landing":i=1755,Object(h.j)("signup_pinit_button_landing");break;case"inspired_banner":Object(h.j)("signup_inspired_banner");break;case"category_jump_banner":Object(h.j)("signup_category_jump_banner");break;case"send_pin_banner":i=1756,Object(h.j)("send_pin_banner");break;default:i=1754,Object(h.j)("signup_unknown_placement")}const o=e.container||"container_unknown";Object(h.j)("signup.container."+o);const r=e.signupSource||"signupSource_unknown";Object(h.j)("signup.source."+r),i&&t(i);const a=document.referrer;let s;s=a?a.indexOf("/t.co/")>-1?"twitter":a.indexOf("google.")>-1?"google":a.indexOf("bing.")>-1?"bing":a.indexOf("facebook.")>-1?"facebook":"other":"direct",Object(h.j)("signup_referrer."+s),n(),Object(h.j)(`web_signup.${Object(c.b)(e)}.success.${e.page||"page_unknown"}.${o}.${s}.${e.hybridTier||"tier_unknown"}`),Object(h.g)({action:"signup",event:"success",type:Object(c.b)(e)})})(n,t),e),w=e=>{e.api_error_code===u.c&&(Object(h.j)("multi_step_set_age_restrict_cookie"),i.b("r_r","1",4320),i.b("_pinterest_pfob","disabled"));if((!e.api_error_code||[u.g,u.f].includes(e.api_error_code))&&g<3)return Object(h.j)(`unauth_web.signup_retry_error.${String(e.api_error_code)}.${String(n.container)}`),g+=1,m(n,t);throw Object(h.g)({action:"signup",event:"fail",type:Object(c.b)(n)}),e};if(!n.facebook_id&&!n.gplus_code&&!n.gplus_id_token&&!n.google_open_id_token&&!n.line_id_token&&Boolean(n.email)&&o){Object(h.j)("unauth_cross_domain_register_debugging_counter");const e=e=>{Object(h.j)(`web_cross_domain_register.${e}.${Object(c.b)(n)}`)};return e("attempt"),Object(p.registerUser)(n,f).then(t=>{x(t);const n=t.data||"";if(n)return e("success_with_token"),Object(p.exchangeTokenAndSetSession)(n,!0).then(t=>{e("success_token_exchanged")},t=>{throw e("success_token_not_exchanged"),t});throw e("success_without_token"),new Error(_)},t=>{e("failure"),w(t)})}return a.a.create("UserRegisterResource",n).callCreate().then(e=>x(e),e=>w(e))};t.a=m},K060:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("yweb"),o=n("n6mq"),r=n("nKUr");const a=()=>{const e=Object(i.c)();return Object(r.jsx)(o.B,{inline:!0,href:"https://help.pinterest.com/login-request?what_do_you_need_help_with=Getting+into+my+account&tell_more_account_access=Appeal+account+suspension",onClick:({disableOnNavigation:e})=>e(),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")})}},K7un:function(e,t,n){var i=n("Lfjc"),o=n("yweb"),r=n("0iut");const a=(e,t)=>({"@type":"Person",name:t.full_name,url:e+"/"+t.username}),s=e=>e.images&&e.images.orig?e.images.orig.url:void 0,c=e=>e.description?Object(r.a)(e.description):e.pinjoin?e.pinjoin.visual_descriptions?Object(r.a)(e.pinjoin.visual_descriptions[0]):Object(r.a)(e.pinjoin.seo_description):void 0,l=e=>{let t=e.created_at;if(e.rich_metadata&&e.rich_metadata.article&&e.rich_metadata.article.date_published&&(t=e.rich_metadata.article.date_published),t){const e=new Date(Date.parse(t));if(e)return e.toISOString()}},d=e=>{const{rich_metadata:t}=e,{url:n,title:i}=t||{};return n&&i?{sharedContent:{"@type":"WebPage",headline:i,url:n}}:void 0};var u=n("2i+x");const p=e=>{if(!e)return;const t=e=>{const t=e.h||0,n=e.m||0;let i="PT";return t>0&&(i+=t.toString()+"H"),n>0&&(i+=n.toString()+"M"),i},n={};return e.total&&(n.totalTime=t(e.total)),e.cook&&(n.cookTime=t(e.cook)),e.prep&&(n.prepTime=t(e.prep)),n},h=e=>{if(!e.categorized_ingredients)return;const t=[];return e.categorized_ingredients.forEach(e=>{e.ingredients.forEach(e=>{let n="";e.amt&&(n+=e.amt,n+=" "),e.name&&(n+=e.name,t.push(n))})}),t.length>0?{recipeIngredient:t}:void 0},g=e=>{if(e.rich_metadata&&e.rich_metadata.recipe&&e.rich_metadata.recipe.aggregate_rating&&e.rich_metadata.recipe.aggregate_rating.rating_value&&e.rich_metadata.recipe.aggregate_rating.review_count){return{aggregateRating:{"@type":"AggregateRating",ratingValue:e.rich_metadata.recipe.aggregate_rating.rating_value,reviewCount:e.rich_metadata.recipe.aggregate_rating.review_count,bestRating:e.rich_metadata.recipe.aggregate_rating.best_rating||5,worstRating:e.rich_metadata.recipe.aggregate_rating.worst_rating||1}}}},m=(e,t)=>{const n=e.rich_metadata,i=n.recipe,o=n.description,r=i.servings_summary&&i.servings_summary.summary,a=t?t.username:void 0,c=e&&e.id&&e.aggregated_pin_data&&e.videos||{},{id:l,video_list:d={}}=c||{},{V_720P:m,V_HLSV4:f}=d,b=Object(u.a)(f),_=Object(u.a)(m),j=l&&(_||b),y={...r?{recipeYield:r}:Object.freeze({}),...o?{description:o}:Object.freeze({}),...p(i.cook_times),...h(i),...g(e)};return{"@type":"Recipe",name:i.name,author:a,video:j?(_||b||{}).url:void 0,image:s(e),...y}};var f=n("wzxk");const b=e=>{var t,n;const i=e.pages,o=null==i?void 0:i[0];return!(null==o||!o.image_adjusted)&&(null===(t=o.image_adjusted.images)||void 0===t?void 0:t.originals.url)||!(null==o||!o.image)&&(null===(n=o.image.images)||void 0===n?void 0:n.originals.url)},_=e=>{var t;const n=null===(t=e.pages)||void 0===t?void 0:t[1],i=null==n?void 0:n.blocks;return{supply:(null!=i?i:[]).map(e=>{const t=[];return e.amt&&t.push(e.amt),e.name&&t.push(e.name),{"@type":"HowToSupply",name:t.join(" ")}})}},j=e=>{var t;const n=null===(t=e.pages)||void 0===t?void 0:t.slice(2);return{step:(null!=n?n:[]).map(e=>{var t;const n=null!==(t=e.blocks)&&void 0!==t?t:[],i=[];for(const d of n)0===d.block_type&&i.push(d.text);const o={"@type":"HowToStep",text:i.join(" ")},r=e.image||{},{images:a={}}=r,s=a.originals,{video_list:c={}}=e.video||{},l=c.V_HLSV3_MOBILE||c.V_720P;return l?o.video={"@type":"VideoObject",caption:i.join(" "),thumbnailUrl:l.thumbnail,contentUrl:l.url,duration:`PT${(l.duration||0)/1e3}S`}:s&&(o.image=s.url),o})}},y=e=>{var t,n,i;const o=null!==(t=e.story_pin_data)&&void 0!==t?t:{};return o.pages=null===(n=e.story_pin_data)||void 0===n||null===(i=n.pages)||void 0===i?void 0:i.filter(e=>2!==e.layout),{"@type":"HowTo",name:Object(f.e)(e),image:b(o),..._(o),...j(o)}};var v=n("eBDd");const O=e=>{var t,n;const i=e.pages,o=null==i?void 0:i[0];return!(null==o||!o.image_adjusted)&&(null===(t=o.image_adjusted.images)||void 0===t?void 0:t.originals.url)||!(null==o||!o.image)&&(null===(n=o.image.images)||void 0===n?void 0:n.originals.url)},x=(e,t)=>{var n;const{serving_size:i=0}=(null===(n=e.metadata)||void 0===n?void 0:n.recipe_data)||{},o=t.ngettext("{{ count }} serving","{{ count }} servings",i,"number of servings","number of servings");return Object(v.a)(o,{count:i.toString()})},w=e=>{const t=e.created_at;return new Date(Date.parse(t)).toISOString()},S=e=>{var t,n;const i=null===(t=e.pages)||void 0===t?void 0:t[1];return(null!==(n=null==i?void 0:i.blocks)&&void 0!==n?n:[]).map(e=>{const t=[];return e.amt&&t.push(e.amt),e.unit&&t.push(e.unit),e.name&&t.push(e.name),t.join(" ")})},C=e=>{var t;const{cooking_time:n=0,prep_time:i=0}=(null===(t=e.metadata)||void 0===t?void 0:t.recipe_data)||{};return{cookTime:`PT${n}M`,prepTime:`PT${i}M`}},k=e=>{var t;const n=null===(t=e.pages)||void 0===t?void 0:t.slice(2);return{recipeInstructions:(null!=n?n:[]).map(e=>{var t;const n=null!==(t=e.blocks)&&void 0!==t?t:[],i=[];for(const d of n)0===d.block_type&&i.push(d.text);const o={"@type":"HowToStep",text:i.join(" ")},r=e.image||{},{images:a={}}=r,s=a.originals,{video_list:c={}}=e.video||{},l=c.V_HLSV3_MOBILE||c.V_720P;return l?o.video={"@type":"VideoObject",caption:i.join(" "),thumbnailUrl:l.thumbnail,contentUrl:l.url,duration:`PT${(l.duration||0)/1e3}S`}:s&&(o.image=s.url),o})}},T=(e,t)=>{var n,i,o;const r=null!==(n=e.story_pin_data)&&void 0!==n?n:{};return r.pages=null===(i=e.story_pin_data)||void 0===i||null===(o=i.pages)||void 0===o?void 0:o.filter(e=>2!==e.layout),{"@type":"Recipe",image:O(r),name:Object(f.e)(e),author:(a=e.native_creator,{"@type":"Person",name:(null==a?void 0:a.full_name)||(null==a?void 0:a.username)}),...C(r),datePublished:w(e),recipeYield:x(r,t),recipeIngredient:S(r),...k(r)};var a};var E=n("QCxT"),I=n("EC67"),P=n("pLLR");var D=n("nKUr");t.a=function(e){const{pin:t,pinner:n}=e,r=Object(o.c)(),{isAuthenticated:u,origin:p}=Object(P.d)(),{pathname:h}=Object(I.i)();if(u)return null;let g;g=Object(E.a)(t)?m(t,n):function(e){var t,n;const i=!(!e||!e.story_pin_data),o=i&&null!==(t=e.story_pin_data)&&void 0!==t&&t.pages?e.story_pin_data.pages.filter(e=>2!==e.layout):[],r=!!Object(f.e)(e),a=!!(i&&null!==(n=e.story_pin_data)&&void 0!==n&&n.metadata&&e.story_pin_data.metadata.recipe_data),s=!!(i&&o&&o.length>1&&5===o[1].layout&&o[1].blocks&&o[1].blocks.length>0),c=!!(i&&o&&o.length>2),l=!!e.native_creator;return r&&a&&s&&c&&l}(t)?T(t,r):function(e){var t,n;const i=!(!e||!e.story_pin_data),o=i&&null!==(t=e.story_pin_data)&&void 0!==t&&t.pages?e.story_pin_data.pages.filter(e=>2!==e.layout):[],r=!!Object(f.e)(e),a=!!(i&&null!==(n=e.story_pin_data)&&void 0!==n&&n.metadata&&e.story_pin_data.metadata.diy_data),s=!!(i&&o&&o.length>1&&6===o[1].layout&&o[1].blocks&&o[1].blocks.length>0),c=!!(i&&o&&o.length>2);return r&&a&&s&&c}(t)?y(t):((e,t,n)=>({"@type":"SocialMediaPosting",author:n?a(e,n):void 0,headline:c(t),image:s(t),datePublished:l(t),articleBody:c(t),...d(t)}))(p,t,n);const b={...g,"@context":"http://schema.org/",mainEntityOfPage:{"@type":"WebPage","@id":`${p}${h}`}};return Object(D.jsx)(i.a,{type:"application/ld+json",value:b})}},K9eD:function(e,t,n){var i=n("q1tI"),o=n("gxu6"),r=n("C+VH"),a=n("sv3x"),s=n("StuW"),c=n("yweb"),l=n("n6mq"),d=n("nKUr");var u=({age:e,error:t,handleAgeChange:n,handleSubmit:i,inputRef:o})=>{const r=Object(c.c)();let a="";return t&&(a=Array.isArray(t)?t.join(""):t),Object(d.jsx)(l.f,{children:Object(d.jsxs)("form",{method:"post",noValidate:!0,onSubmit:e=>{e.preventDefault(),i()},children:[Object(d.jsx)(l.f,{children:Object(d.jsx)(l.cb,{align:"start",children:r._("How old are you?","Title for the age collection input field after connecting with Facebook or Google","Title for the age collection input field after connecting with Facebook or Google")})}),Object(d.jsx)(l.f,{marginTop:2}),Object(d.jsx)(l.f,{children:Object(d.jsx)(l.eb,{ref:e=>{o&&o(e)},errorMessage:a,id:"age",onChange:n,placeholder:r._("Age","text field for user to enter their age","text field for user to enter their age"),size:"lg",type:"number"})}),Object(d.jsx)(l.f,{marginTop:3}),Object(d.jsx)(l.f,{children:Object(d.jsx)(l.g,{color:"red",disabled:!e,text:r._("Continue"),type:"submit"})})]})})},p=n("28DW"),h=n("c50B"),g=n("Zswh"),m=n("VL22"),f=n("aOj9");function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class _ extends i.Component{constructor(...e){super(...e),b(this,"state",{age:"",error:""}),b(this,"getViewParameter",e=>{switch(null==e?void 0:e.type){case m.a.FACEBOOK:return 3205;case m.a.GOOGLE:return 3204;case m.a.GOOGLE_ONE_TAP:return 3201;default:return}}),b(this,"handleAgeChange",({value:e})=>{this.setState({age:e})}),b(this,"handleSignupSuccess",()=>{const{logContextEvent:e}=this.props;this.track("signup_success"),e({event_type:7487,view_parameter:this.getViewParameter(this.props.registrationCredentials)});const{showResponseMessageModal:t}=this.props;t?t(!0):a.b.handleSignupRedirect(this.props.nextUrlParam||window.location.pathname,!0)}),b(this,"handleSignupFailure",e=>{const{i18n:t,logContextEvent:n}=this.props;this.track("signup_failure"),this.props.loadingIndicatorCallback&&this.props.loadingIndicatorCallback(!1),this.props.showSignupWelcomeLoadingFn&&this.props.showSignupWelcomeLoadingFn(!1),n({event_type:7488,view_parameter:this.getViewParameter(this.props.registrationCredentials)});const i=e.message||t._("Oops! Something went wrong… Click Continue to try again.","Error during signup during age collection step","Error during signup during age collection step");this.setState({error:i})}),b(this,"handleSubmit",()=>{const{desktopCoreLoginContext:{register:e},logContextEvent:t,i18n:n}=this.props,{age:i}=this.state;this.track("submit_button_click."+(i||"undefined"));const{loadingIndicatorCallback:a,registrationCredentials:s,showSignupWelcomeLoadingFn:c,showResponseMessageModal:l}=this.props;if("1"===o.a("r_r"))return this.setState({error:n._("Sorry, you’re not eligible to sign up for Pinterest right now.","Signup.AgeStep.underageError","Error message shown when underage user tries to register")}),void this.track("signup_failure");const d=this.validateAge(i||"");if(d)return void this.setState({error:d});this.setState({error:""});const u=s&&s.type;if(a&&![m.a.GOOGLE_ONE_TAP,m.a.GOOGLE,m.a.FACEBOOK].includes(u)&&a(!0),t({event_type:7537,view_parameter:this.getViewParameter(s)}),s){if(s.type===m.a.FACEBOOK){this.track("attempt_signup");e({...Object(r.a)(s.userData),...s.credentialsAndLoggingData,recapToken:null,age:i}).then(this.handleSignupSuccess,this.handleSignupFailure)}else s.type!==m.a.GOOGLE&&s.type!==m.a.GOOGLE_ONE_TAP||(this.track("attempt_signup"),e({...s.credentialsAndLoggingData,age:i}).then(this.handleSignupSuccess,this.handleSignupFailure));!l&&c&&s.type===m.a.FACEBOOK&&c(!0)}})}componentDidMount(){this.track("shown"),this.focusInputField()}track(e){const{container:t,registrationCredentials:n}=this.props,i=n?n.type:"undefined";Object(p.a)(`unauth_web.age_collection_form.${e}.${i}.${t||"undefined"}`)}focusInputField(){this.inputRef&&this.inputRef.focus()}validateAge(e){const{i18n:t}=this.props;return Object(s.a)(e,[Object(h.a)({invalidAgeString:t._("Please enter a valid number."),ageTooShortString:t._("Please enter at least two digits.","Error message when age is less than two digits long","Error message when age is less than two digits long"),checkUnderAgeWithString:t._("Sorry, you’re not eligible to sign up for Pinterest right now.","Signup.AgeStep.underageError","Error message shown when underage user tries to register")})])}render(){const{age:e,error:t}=this.state;return Object(d.jsx)("div",{style:{margin:"0 auto",width:"268px"},children:Object(d.jsx)(u,{age:e,error:t,handleAgeChange:this.handleAgeChange,handleSubmit:this.handleSubmit,inputRef:e=>{this.inputRef=e}})})}}t.a=e=>{const t=Object(c.c)(),n=Object(f.d)(),i=Object(g.a)();return Object(d.jsx)(_,{...e,desktopCoreLoginContext:n,i18n:t,logContextEvent:i})}},KFEb:function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return l}));var i=n("7Ve8"),o=n("5f3z"),r=n("qtKf");const a={AGGREGATED_COMMENTS:"aggregatedComments",BOARD_ACTIVITYITEMS:"boardActivityItems",BOARD_ACTIVITYCOMMENTS:"boardActivityComments",BOARD_PINS:"boardPins",BOARDLESS_PINS:"boardlessPins",BOARD_SECTIONS:"boardSections",CREATED_TAB_STORY_PINS_FEED:"createdTabStoryPinsFeed",CREATED_TAB_ACTIVITY_PINS_FEED:"createdTabActivityPinsFeed",HOMEFEED_MORE_IDEAS_TABS:"homefeedMoreIdeasTabs",PROFILE_BOARDS:"profileBoards",SEARCH_PINS:"searchPins",SECTION_PINS:"sectionPins",STORY_PIN_DATA:"storyPinData",TODAY_ARTICLE_INTEREST_FEED:"todayArticleInterestFeed",TODAY_TAB:"todayTabFeed",UNIFIED_COMMENTS:"unifiedComments",USER_DID_IT_DATA:"userDidItData"},s={AggregatedActivityFeedResource:({options:{aggregated_pin_data_id:e}})=>({type:a.USER_DID_IT_DATA,id:e}),AggregatedCommentFeedResource:({options:{objectId:e}})=>({type:a.AGGREGATED_COMMENTS,id:e}),AggregatedCommentReplyFeedResource:({options:{objectId:e}})=>({type:a.AGGREGATED_COMMENTS,id:e,reversed:!0}),BoardActivityFeedResource:({options:{board_id:e}})=>({type:a.BOARD_ACTIVITYITEMS,id:e}),BoardActivityCommentFeedResource:({options:{activityId:e,parentType:t}})=>({type:a.BOARD_ACTIVITYCOMMENTS,id:e,reversed:"boardactivitycomment"===t}),BoardFeedResource:({options:{board_id:e}})=>({type:a.BOARD_PINS,id:e}),BoardlessPinsResource:({options:{userId:e}})=>({type:a.BOARDLESS_PINS,id:e}),BoardSectionPinsResource:({options:{section_id:e}})=>({type:a.SECTION_PINS,id:e}),BoardSectionsResource:({options:{board_id:e}})=>({type:a.BOARD_SECTIONS,id:e}),BoardsResource:({options:{username:e,sort:t}})=>({type:a.PROFILE_BOARDS,id:Object(r.c)(e,t)}),BaseSearchResource:({options:{auto_correction_disabled:e,appliedProductFilters:t,scope:n,filters:r,query_pin_sigs:s,query:c,user:l},data:d})=>({type:a.SEARCH_PINS,id:Object(o.b)({appliedProductFilters:t,autoCorrectionDisabled:e,filters:r,query:c,selectedPinImgSig:s,scope:n,user:l}),items:null!=d&&d.results?Object(i.a)(d.results).filteredResults:[]}),DidItCommentsResource:({options:{objectId:e}})=>({type:a.AGGREGATED_COMMENTS,id:e,reversed:!0}),DidItUserFeedResource:({options:{username:e}})=>({type:a.USER_DID_IT_DATA,id:e}),IdeasHubTodayArticlesResource:({options:{interest_id:e}})=>({type:a.TODAY_TAB,id:e}),MoreIdeasTabsResource:({data:e})=>({type:a.HOMEFEED_MORE_IDEAS_TABS,id:"hf",items:e&&e.tabs||[]}),RelatedArticlesResource:({options:{article_id:e}})=>({type:a.TODAY_TAB,id:e}),StoryPinDraftsResource:({options:{userId:e}})=>({type:a.STORY_PIN_DATA,id:e}),TodayTabInterestFeedResource:({options:{interest_id:e}})=>({type:a.TODAY_ARTICLE_INTEREST_FEED,id:e}),TodayTabResource:()=>({type:a.TODAY_TAB,id:"todayTab"}),UnifiedCommentsPreviewResource:({options:{aggregated_pin_id:e}})=>({type:a.UNIFIED_COMMENTS,id:e}),UnifiedCommentsResource:({options:{aggregated_pin_id:e}})=>({type:a.UNIFIED_COMMENTS,id:e,reversed:!0}),UserActivityPinsResource:({options:{user_id:e}})=>({type:a.CREATED_TAB_ACTIVITY_PINS_FEED,id:e}),UserStoryPinsFeedResource:({data:e,options:{user_id:t}})=>({type:a.CREATED_TAB_STORY_PINS_FEED,id:t,items:e||[]})},c={aggregatedComments:{},boardActivityItems:{},boardActivityComments:{},boardlessPins:{},boardPins:{},boardSections:{},createdTabStoryPinsFeed:{},createdTabActivityPinsFeed:{},homefeedMoreIdeasTabs:{},profileBoards:{},searchPins:{},sectionPins:{},storyPinData:{},todayArticleInterestFeed:{},todayTabFeed:{},unifiedComments:{},userDidItData:{}};function l(e,t,n){const i=[...e],o=i.splice(t,1)[0];return i.splice(n,0,o),i}t.b=(e=c,t)=>{switch(t.type){case"RESOURCE_FETCH_COMPLETE":case"RESOURCE_FETCH_MORE_COMPLETE":{const{payload:n}=t;if(!n.options.redux_normalize_feed)return e;const{type:i,id:o,items:r,reversed:c}=s[n.name](n);let l=(r||n.data||[]).map(e=>((e,t)=>{switch(e.type){case"story":return{id:e.id,type:"story",story_type:e.story_type};case"module":return{id:e.id,type:"module",name:e.name};case"user":return{id:e.id,type:"user"};case"board":return t===a.PROFILE_BOARDS?{id:e.id,type:"board",onProfile:!0,profileGroup:e.archived_by_me_at?"archived":e.privacy||"public"}:{id:e.id,type:"board",onProfile:!1};case"boardactivity":return{id:e.id,type:"boardactivity"};case"boardactivitycomment":return{id:e.id,type:"boardactivitycomment"};case"board_section":return{type:"board_section",id:e.id};case"userdiditdata":return{type:"userdiditdata",id:e.id};case"aggregatedcomment":return{type:"aggregatedcomment",id:e.id};case"home_feed_tab":return{type:"home_feed_tab",id:e.id,name:e.name};case"storypindata":return{id:e.id,type:"storypindata"};case"todayarticle":return{type:"todayarticle",id:e.id};case"unifiedcommentspreview":return"userdiditdata"===e.unified_comment.type?{type:"userdiditdata",id:e.unified_comment.id}:{type:"aggregatedcomment",id:e.unified_comment.id};default:return{type:"pin",id:e.id}}})(e,i));c&&(l=l.reverse());const d=e[i][o];if(d||"RESOURCE_FETCH_MORE_COMPLETE"!==t.type){const n=d||[];let r=l;return"RESOURCE_FETCH_MORE_COMPLETE"===t.type&&(r=c?l.concat(n):n.concat(l)),{...e,[i]:{...e[i],[o]:r}}}break}case"FEED_ITEM_REORDERED":{const{payload:{feedType:n,feedId:i,itemType:o,targetItemId:r,sourceItemId:s}}=t,c=e[n]||{},d=c[i]||[];let u=-1,p=-1;if([a.BOARD_PINS,a.SECTION_PINS,a.BOARD_SECTIONS,"profileBoards"].includes(n)&&(u=d.findIndex(e=>e.type===o&&e.id===s),p=d.findIndex(e=>e.type===o&&e.id===r)),-1!==u&&-1!==p)return{...e,[n]:{...c,[i]:l(d,u,p)}};break}case"FEED_ITEMS_REMOVED":{const{payload:{feedType:n,feedId:i,inverseSelection:o,itemType:r,itemIds:s=[]}}=t,c=e[n]||{},l=c[i];if(l&&l.length>0&&(n===a.SECTION_PINS||n===a.BOARD_PINS)){const t=l.filter(e=>{const t=s.includes(e.id);return!(e.type===r&&(o&&!t||!o&&t))}),a=!!t.find(e=>"pin"===e.type);return{...e,[n]:{...c,[i]:a?t:[]}}}if(l&&l.length>0&&n===a.BOARD_SECTIONS){const t=l.filter(e=>{const t=s.includes(e.id);return!(e.type===r&&t)});return{...e,[n]:{...c,[i]:t}}}if(l&&l.length>0&&(n===a.BOARD_ACTIVITYITEMS||n===a.AGGREGATED_COMMENTS||n===a.BOARD_ACTIVITYCOMMENTS||n===a.BOARDLESS_PINS||n===a.UNIFIED_COMMENTS||n===a.USER_DID_IT_DATA||n===a.STORY_PIN_DATA)){const t=l.filter(e=>{const t=s.includes(e.id);return!(e.type===r&&t)});return{...e,[n]:{...c,[i]:t}}}break}case"FEED_ITEMS_ADDED":{const{payload:{feedType:n,feedId:i,itemType:o,itemIds:r=[],prepend:s}}=t,c=e[n]||{},l=c[i];if(l&&(n===a.SECTION_PINS||n===a.BOARD_PINS||n===a.BOARDLESS_PINS)){const t=r.map(e=>({id:e,type:o}));let a=0;"story"===(l[0]||{}).type&&(a=1),"story"===(l[1]||{}).type&&(a=2);const s=[...l.slice(0,a),...t,...l.slice(a)];return{...e,[n]:{...c,[i]:s}}}if(l&&n===a.BOARD_SECTIONS){const t=[...r].reverse().map(e=>({id:e,type:"board_section"})),o=l?[...t,...l]:[...t];return{...e,[n]:{...c,[i]:o}}}if(n===a.BOARD_ACTIVITYITEMS||n===a.AGGREGATED_COMMENTS||n===a.BOARD_ACTIVITYCOMMENTS||n===a.UNIFIED_COMMENTS){const t=r.map(e=>({id:e,type:o})),a=l?[...s?t:l,...s?l:t]:t;return{...e,[n]:{...c,[i]:a}}}if(n===a.USER_DID_IT_DATA){const t=r.map(e=>({id:e,type:o})),a=l?[...t,...l]:t;return{...e,[n]:{...e[n],[i]:a}}}break}case"FEED_INVALIDATE":{const{payload:{feedType:n,feedId:i}}=t,o=e[n]||{};if(o[i])return{...e,[n]:{...o,[i]:null}};break}}return e}},Klk4:function(e,t,n){n.d(t,"a",(function(){return _}));var i=n("q1tI"),o=n("zFhk"),r=n("Ye/N"),a=n("qD10"),s=n("n6mq"),c=n("GsvW"),l=n("nKUr");function d({createdAt:e,user:t,isHighlighted:n}){const i=Object(l.jsx)(s.cb,{color:"gray",size:"md",children:Object(c.f)(e)}),o=Object(l.jsxs)(s.cb,{color:"gray",size:"md",children:["· ",r.a._("Highlighted","pin.comments.highlight","Identifier for highlighted comments")]});return Object(l.jsxs)(s.f,{display:"flex",alignItems:"start",marginStart:-1,marginEnd:-1,children:[Object(l.jsx)(s.f,{paddingX:1,children:Object(l.jsx)(a.a,{to:`/${t.username}/`,children:Object(l.jsx)(s.cb,{size:"md",weight:"bold",children:Object(c.e)(t)})})}),Object(l.jsx)(s.f,{paddingX:1,children:i}),n&&Object(l.jsx)(s.f,{paddingX:1,children:o})]})}var u=n("xNI5"),p=n("VbOu"),h=n("4cpq"),g=n("dwea"),m=n("3eT9"),f=n("gI5O"),b=n("AnoD");function _({allowLink:e=!1,avatarSize:t="sm",commentCount:n,contentImage:r,contentImageSignature:a,contentText:c,flyout:_,handleOnEditCancel:j,handleOnEdited:y,handleHelpfulClick:v,handleLikeClick:O,handleLikeCountClick:x,handleReplyClick:w,handleReplyCountClick:S,helpfulCount:C,hideAddObjects:k,hideReplyCount:T,inEditMode:E,isLikedByMe:I,isMarkedHelpfulByMe:P,isPlainComment:D,parentObject:A,pins:L,reactionCounts:R,taggedUsers:M,tags:F,truncateText:N,commentId:B,createdAt:U,commentAuthor:z,type:W,isHighlighted:V}){const G=Object(f.b)(),[H,q]=Object(i.useState)(B===G);return Object(i.useEffect)(()=>{B===G&&g.a.setTimeout(()=>{q(!1)},1500)},[]),Object(l.jsx)(h.a,{id:"canonical-comment",children:Object(l.jsxs)(s.f,{display:"flex",marginBottom:D?4:0,children:[Object(l.jsx)(s.f,{marginEnd:2,children:Object(l.jsx)(o.a,{user:z,size:t})}),Object(l.jsxs)(s.f,{flex:"grow",marginStart:2,children:[Object(l.jsx)(s.f,{dangerouslySetInlineStyle:{__style:{borderColor:E?"transparent":void 0,transition:"1000ms",backgroundColor:H?"lightGray":null}},borderStyle:"sm",padding:E?0:3,rounding:4,children:E?Object(l.jsx)(b.a,{addedObjects:L,addedImage:r,hideAddObjects:k,imageSignature:a,objectType:W,onAddItem:()=>{},onCancelItem:j,onEditItem:y,onEnter:()=>{},parentObjectId:A.id,statusType:"textInFlightEdit",tags:F,text:c,widthAuto:!0}):Object(l.jsxs)(i.Fragment,{children:[Object(l.jsx)(d,{createdAt:U,user:z,isHighlighted:V}),N?Object(l.jsx)(m.a,{allowLink:e,allowReveal:!0,size:"sm",taggedUsers:M,tags:F,text:c}):Object(l.jsx)(p.a,{allowLink:e,size:"sm",tags:F,taggedUsers:M,text:c})]})}),!E&&!D&&Object(l.jsx)(s.f,{padding:1,children:Object(l.jsx)(u.default,{commentCount:n,flyout:E?null:_,hideReplyCount:T,isLikedByMe:I,onLikeClick:O,onLikeCountClick:x,onReplyClick:w,onReplyCountClick:S,reactionCounts:R,isMarkedHelpfulByMe:P,onHelpfulClick:v,helpfulCount:C,small:!0})})]})]})})}},LOQM:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("q1tI"),o=n("n6mq"),r=n("nKUr");const a=(e,t,n)=>{const o=Object(i.useRef)(null),r=Object(i.useRef)(null);Object(i.useEffect)(()=>{if(e!==o.current||n&&n!==r.current){o.current=e;const n=(i=e,document.querySelector(`img[src="${i}"]`)||null);null!=n&&n.complete&&t()}var i;r.current=n},[e,t,n])};function s({alt:e,children:t,color:n,elementTiming:i,isActive:s=!1,naturalHeight:c,naturalWidth:l,onLoad:d,src:u}){return a(u,d,s),Object(r.jsx)(o.x,{alt:e,color:n,elementTiming:i,naturalHeight:c,naturalWidth:l,onLoad:d,src:u,children:t})}},"LQE/":function(e,t,n){n.d(t,"a",(function(){return l}));var i=n("ihsa"),o=n("n6mq"),r=n("Vbul"),a=n("XPo3"),s=n("nKUr");const c={borderRadius:"24px"};function l({fullImgHeight:e,children:t,contentWidth:n,largeMainPin:l,renderAttribution:d,renderVaseTags:u,modal:p,pageType:h,pin:g,showCardShadow:m,showSignupModal:f,viewportSize:b}){const _="wide"===b;let j=_?a.g+(n-a.i):a.a;return l&&e&&(j=_?2*n:a.a),Object(s.jsxs)(o.f,{rounding:6,dangerouslySetInlineStyle:{__style:{margin:10,boxShadow:m?"":"0 1px 20px 0 rgba(0, 0, 0, 0.1)"}},"data-test-id":"UnauthBestPinCardLayoutContainer",children:[p,Object(s.jsxs)(o.f,{dangerouslySetInlineStyle:{__style:c},display:"flex",direction:_?"row":"column",width:j,overflow:"hidden","data-test-id":"best-pin-card",children:[Object(s.jsx)(i.a,{unsafeCSS:"\n.imageDomainLinkHover:hover {\n  background-color: #FFF !important;\n}\n"}),Object(s.jsx)(o.f,{justifyContent:"center",direction:"column",width:n,display:"flex","data-test-id":"pin-closeup-image",children:t}),Object(s.jsx)(r.a,{pin:g,viewportSize:b,pageType:h,renderAttribution:d,renderVaseTags:u,showSignupModal:f})]})]})}},LT60:function(e,t,n){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var i=n("d2Eh"),o=n("nKUr");const r=()=>{},a=e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()};function s({allowClickAndDrag:e,allowEsc:t,allowMediaPlay:n,allowScroll:s,children:c}){const l=e=>function(e,t){t&&e.keyCode===i.a.ESCAPE||a(e)}(e,t);return Object(o.jsx)("div",{onAbort:a,onAnimationEnd:a,onAnimationIteration:a,onAnimationStart:a,onBlur:r,onCanPlay:n?r:a,onCanPlayThrough:a,onChange:a,onClick:e?r:a,onCompositionEnd:a,onCompositionStart:a,onCompositionUpdate:a,onContextMenu:a,onCopy:a,onCut:a,onDoubleClick:a,onDurationChange:a,onEmptied:a,onEncrypted:a,onEnded:a,onError:a,onFocus:r,onInput:a,onInvalid:a,onKeyDown:l,onKeyPress:l,onKeyUp:l,onLoad:a,onLoadedData:a,onLoadedMetadata:a,onLoadStart:a,onMouseDown:a,onMouseEnter:a,onMouseLeave:a,onMouseMove:e?r:a,onMouseOut:a,onMouseOver:a,onMouseUp:e?r:a,onPaste:a,onPause:a,onPlay:a,onPlaying:a,onProgress:a,onRateChange:a,onScroll:s?r:a,onSeeked:a,onSeeking:a,onSelect:a,onStalled:a,onSubmit:a,onSuspend:a,onTimeUpdate:a,onTouchCancel:a,onTouchEnd:e?r:a,onTouchMove:e?r:a,onTouchStart:e?r:a,onTransitionEnd:a,onVolumeChange:a,onWaiting:a,onWheel:a,children:c})}},LTlA:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.get=function(e,t,n){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:n||null}),e)},t.without=function(e,t){return e.filter((function(e){return e!==t}))},t.isString=function(e){return"string"==typeof e},t.isObject=function(e){return"object"==typeof e},t.xor=function(e,t){var n=new Map,i=function(e){return n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(i),t.forEach(i);var o=[];return n.forEach((function(e,t){1===e&&o.push(t)})),o},t.intersection=function(e,t){return e.filter((function(e){return t.indexOf(e)>-1}))}},Lfjc:function(e,t,n){n.d(t,"a",(function(){return a}));const i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g;var r=n("nKUr");function a({id:e,type:t="application/json",value:n}){const a=JSON.stringify(n).replace(o,e=>i[e]);return Object(r.jsx)("script",{id:e,type:t,dangerouslySetInnerHTML:{__html:a}})}},M1Uz:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("q1tI"),o=n("4jWr"),r=n("n6mq"),a=n("nKUr");function s({color:e="white",duration:t=2e3,href:n,iconThumbnail:s,imageUrl:c,onClick:l,onHide:d,openNewPage:u,text:p,button:h,thumbnailShape:g="square",dataTestId:m}){const[f,b]=Object(i.useState)(!1),[_,j]=Object(i.useState)(!1),y=Object(i.useRef)(),v=()=>{b(!0),y.current=setTimeout(d,o.a)},O=()=>{y.current&&clearTimeout(y.current)},x=()=>{y.current=setTimeout(v,t)};Object(i.useEffect)(()=>(setTimeout(()=>j(!0),100),x(),O),[]);const w="string"==typeof p?p:`${p[0]} ${p[1]}`,S=c?Object(a.jsx)(r.f,{height:48,overflow:"hidden",width:48,children:Object(a.jsx)(r.x,{alt:w,fit:"cover",naturalHeight:1,naturalWidth:1,src:c})}):void 0,C=Object(a.jsx)(r.fb,{color:e,text:p,thumbnail:null!=s?s:S,button:h,thumbnailShape:g});return Object(a.jsx)("div",{style:Object(o.b)(_,f),onMouseEnter:O,onMouseLeave:x,"data-test-id":null!=m?m:"toast",children:n?Object(a.jsx)("a",{href:n,onClick:l,target:u?"_blank":null,rel:u?"noopener noreferrer":null,children:C}):C})}},MCs0:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getDecoratedComponent=function(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}},MNxV:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("XRfM"),o=n("pLLR"),r=n("nKUr");const a=i.c.DateFormatType;t.b=({dateFormatType:e,useUTC:t=!0,value:n})=>Object(r.jsx)(o.b,{children:o=>i.c.formatDate(o.locale,n,e,t)})},MldM:function(e,t,n){n.d(t,"a",(function(){return X}));var i=n("q1tI"),o=n("gxu6"),r=n("iE4i"),a=n("XnPw"),s=n.n(a),c=n("ovj4"),l=n("TPPM"),d=n("Ye/N"),u=n("TgLd"),p=n("kmwA"),h=n("mBfy"),g=n("vvax"),m=n("U4JR"),f=n("n6mq"),b=n("nKUr");function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j=p.a.settings.PARTNER_CONVERT_ACCOUNT,y=p.a.settings.PARTNER_SITE_SIGNUP;class v extends i.Component{constructor(...e){super(...e),_(this,"handleLogoutAndCreateClick",e=>{Object(m.b)(101,{component:13101,element:10289}),this.logout(e)}),_(this,"logout",e=>{e.preventDefault(),e.stopPropagation(),h.default.logoutWithOptions(y,"business_logout")})}componentDidMount(){Object(m.b)(120,{component:13101})}render(){return Object(b.jsx)(u.b,{heading:d.a._("Get a business account","Heading for warning modal","Heading for warning modal"),onDismiss:()=>{},size:"md",footer:Object(b.jsxs)(f.f,{display:"flex",justifyContent:"end",children:[Object(b.jsx)(f.f,{paddingX:1,children:Object(b.jsx)(f.g,{onClick:()=>{Object(m.b)(101,{component:13101,element:10287}),Object(l.a)("/")},text:d.a._("Not now","Cancel button text","Cancel button text"),inline:!0,size:"md"})}),Object(b.jsx)(f.f,{children:Object(b.jsx)(f.g,{color:"red",onClick:()=>{Object(m.b)(101,{component:13101,element:10288}),Object(l.a)(j)},text:d.a._("Switch to a business","link text to go to the url to convert to a business account","link text to go to the url to convert to a business account"),inline:!0,size:"md"})})]}),accessibilityModalLabel:d.a._("Create a new business account","Label for a modal to create a business account","Label for a modal to create a business account"),role:"alertdialog",children:Object(b.jsx)(f.f,{padding:3,children:Object(b.jsx)(f.cb,{children:Object(g.b)(d.a._("You can switch to a business account or log out and {{ convertAccountLink }}"),{convertAccountLink:Object(b.jsx)("a",{href:"",role:"button",onClick:this.handleLogoutAndCreateClick,children:d.a._("create a new business account","link text to logout and create a business account","link text to logout and create a business account")},"logout")})})})})}}var O=n("noU3"),x=n("t5Ir"),w=n("+NLT"),S=n("h4v/"),C=n("sEfC"),k=n.n(C),T=n("b7nI"),E=n("7w6Q"),I=n("F2s1"),P=n("vjiL"),D=n("eOdZ"),A=n("tvGs"),L=n("UDft"),R=n("znyv"),M=n("pGrQ"),F=n("J8m7"),N=n("7M1j"),B=n("pLLR"),U=n("RNo4"),z=n("c50B"),W=n("EC67");function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const G=p.a.settings.POLICY_PRIVACY_URL,H=p.a.settings.PARTNER_SITE_TOS_URL,q=p.a.settings.EU_COUNTRIES,Y=Object(N.b)("create_business_account_singlestep."),K=e=>Y(e+"FieldFocused");class $ extends i.Component{constructor(...e){super(...e),V(this,"state",{age:"",businessName:"",businessImages:{background:s.a},clickedSubmit:!1,email:"",password:"",errors:{age:[],businessName:[],email:[],password:[]},showWarningModal:this.props.isAuth,isSubmittingForm:!1}),V(this,"validators",{email:[Object(z.o)({message:d.a._("You missed a spot! Don't forget to add your email.","Prompt user to input email on error","Prompt user to input email on error")}),Object(z.e)({message:d.a._("Hmm... that doesn't look like an email address.","Prompt user to input a valid email","Prompt user to input a valid email")})],password:[Object(z.o)({message:d.a._("Your password is too short! You need 6+ characters.","Prompt user to input password on error","Prompt user to input password on error")}),Object(z.b)({message:d.a._("Use only a mix of letters, numbers and special characters (for example: ?, !, $).","BusinessAccountCreate.password.onlyASCII","Only ASCII characters are allowed for password")}),Object(M.a)({shortPassStr:d.a._("Your password is too short! You need 6+ characters.","Password must be at least 6 characters","Password must be at least 6 characters"),samePasswordStr:d.a._("Please make your username and password different.","Password and username cannot be the same, user must choose a new password","Password and username cannot be the same, user must choose a new password"),blackPassStr:d.a._("Please make a stronger password.","Password is too simple","Password is too simple")})],businessName:[Object(z.o)({message:d.a._("You missed a spot! Don't forget to add your business name.","Prompt user to input business name on error","Prompt user to input business name on error")})],age:[Object(z.o)({message:d.a._("You missed a spot! Don't forget to add your age.","Prompt user to input age on error","Prompt user to input age on error")})]}),V(this,"title",d.a._("Welcome to Pinterest, the world's catalog of ideas.","invisible alt text for business account creation page audienceHalfImage","invisible alt text for business account creation page audienceHalfImage")),V(this,"getLoginUrl",()=>{const{location:{search:e}}=this.props;if(e&&"next"in Object(U.k)(e))return Object(c.a)("/business/login",{next:Object(U.k)(e).next});const t=this.inAdCreditsCampaign()?Object(U.b)("/business/create/",{utm_medium:"adcredits"}):"/business/create/";return Object(c.a)("/business/login",{next:t})}),V(this,"handleFieldChange",(e,t)=>{let n;n=t.nativeEvent?t.nativeEvent.target.value:t.value?t.value:t,this.setState({[e]:n}),this.state.clickedSubmit&&this.validateField(e,n)}),V(this,"validateField",k()((e,t)=>{const n=this.validators[e],i=Object(z.r)(n,t);this.setState({errors:{...this.state.errors,[e]:i}})},N.a)),V(this,"hasValidationErrors",e=>{const t=Object(z.r)(this.validators[e],this.state[e]);return t.length>0&&(this.setState({errors:{...this.state.errors,[e]:t}}),!0)}),V(this,"validateForm",()=>!(this.hasValidationErrors("email")||this.hasValidationErrors("password")||this.hasValidationErrors("age"))),V(this,"handleFormSubmission",e=>{e&&e.preventDefault&&e.preventDefault(),Y("submit_clicked"),this.setState({isSubmittingForm:!0});const{age:t,email:n,password:i}=this.state,{isAuth:r,unifiedSignup:a,location:{search:s}}=this.props,u=Object(U.k)(s)||{},p=n.split("@")[0],h=this.validateForm();if(this.setState({clickedSubmit:!0}),Object(m.b)(101,{component:13097,element:10283,successful_frontend_validation:h,in_unified_modal:a}),"1"===o.a("r_r"))return this.setState({errors:{...this.state.errors,age:[d.a._("Sorry, you’re not eligible to sign up for Pinterest right now.","Signup.AgeStep.underageError","Error message shown when underage user tries to register")]},isSubmittingForm:!1}),void Object(m.b)(7488,{component:13097,in_unified_modal:a});if(h){D.a.create("EmailExistsResource",{email:n}).callGet({showError:!1}).then(e=>{if(e.resource_response.data)this.setState({errors:{...this.state.errors,email:[d.a._("Deja vu! That email's taken.","User entered an email that is already taken","User entered an email that is already taken")]},isSubmittingForm:!1}),Object(m.b)(7488);else{const e="utm_source"in u&&"shopify"===u.utm_source,o=Object(N.c)({age:t,businessName:p,email:n,password:i,hasAdsCredits:this.inAdCreditsCampaign(),third_party_apps:e?[0]:null}),{country:s}=w.a.instance;Object(R.c)("client.partner.account.create_attempt",{source:{utmPartner:u.utm_partner,utmSource:u.utm_source,utmMedium:u.utm_medium},isAuth:r,unifiedSignup:a,country:s}),Object(P.a)(o).then(()=>{Y("signup_success"),Object(R.c)("client.partner.account.create",{source:{utmPartner:u.utm_partner,utmSource:u.utm_source,utmMedium:u.utm_medium},isAuth:r,unifiedSignup:a,country:s});const e=u&&"next"in u?u.next:null;O.a.reportFacebookConversion(x.a.FACEBOOK_ADVERTISER_ID,"CompleteRegistration",{content_name:"/business/create"}),O.a.reportPinterestConversion("track","lead",{lead_type:"Self-serve"}),O.a.reportLinkedInConversion(x.a.LINKEDIN_PARTNER_ID,x.a.LINKEDIN_CONVERSION_ID_SUBMISSION_EVENT),O.a.reportGoogleConversion(x.a.GOOGLE_ADWORDS_ID,x.a.GOOGLE_ADWORDS_LABEL_BUSINESS_CREATE,e?void 0:"/"),e&&Object(l.a)(Object(c.a)("/",{next:e}))},e=>{const t={errors:this.state.errors,isSubmittingForm:!1};e.api_error_code===F.c?t.errors.age=[e.message]:e.api_error_code===F.d&&(t.errors.email=[e.message]),this.setState(t)})}},()=>{this.setState({errors:{...this.state.errors,email:[d.a._("Add a valid email","Prompt user to input a valid email","Prompt user to input a valid email")]},isSubmittingForm:!1})})}else this.setState({isSubmittingForm:!1})}),V(this,"inAdCreditsCampaign",()=>{const{location:e}=this.props;return Object(L.b)(e)}),V(this,"getTitleText",()=>this.props.title?this.props.title:d.a._("Grow your business","Desktop business signup heading","Desktop business signup heading")),V(this,"getSubtitleText",()=>this.props.subtitle?this.props.subtitle:this.inAdCreditsCampaign()?Object(g.b)(d.a._("Reach more of the {{ mauText }} people looking for inspiration on Pinterest each month","Desktop business signup subheading for ad credits. MAU_TEXT is a string of xxx million","Desktop business signup subheading for ad credits. MAU_TEXT is a string of xxx million"),{mauText:Object(b.jsx)(I.a,{})}):Object(g.b)(d.a._("Get in front of {{ mauText }} people looking to buy, make, and do.","Desktop business signup subheading. MAU_TEXT is a string of xxx million","Desktop business signup subheading. MAU_TEXT is a string of xxx million"),{mauText:Object(b.jsx)(I.a,{})}))}componentDidMount(){Y("loaded"),O.a.insertGoogleAdWordsTag(x.a.GOOGLE_ADWORDS_ID),O.a.insertFacebookPixelTag(x.a.FACEBOOK_ADVERTISER_ID),O.a.insertTwitterUniversalTag(x.a.TWITTER_UNIVERSAL_TAG_ID),O.a.insertLinkedInInsightTag(x.a.LINKEDIN_PARTNER_ID),O.a.insertPinterestTag(x.a.SMB_PAID_PINTEREST_ID);const e=S.a.getInstance();if(!e.getViewFromContext().view_type){const t={view_type:156,view_parameter:3129};e.addViewToContext(t)}Object(m.b)(120,{component:13097,in_unified_modal:this.props.unifiedSignup}),E.a.increment("partner.business_account_create.visit",1,{platform:"web"})}renderForm(){const{age:e,email:t,errors:n,password:i,isSubmittingForm:o}=this.state,{unifiedSignup:a,requestContext:s,secondaryAccountFlow:c}=this.props,u=this.inAdCreditsCampaign(),p=Boolean(s.isRTL);return Object(b.jsx)("form",{method:"POST",noValidate:!0,onSubmit:this.handleFormSubmission,children:Object(b.jsxs)(f.f,{children:[Object(b.jsx)(f.f,{paddingY:1,position:"relative",dangerouslySetInlineStyle:{__style:{zIndex:3}},children:Object(b.jsx)(A.b,{hasError:n.email.length>0,id:"email",isRTL:p,name:"email",onChange:e=>{this.handleFieldChange("email",e)},onFocus:()=>K("email"),placeholder:d.a._("Email","Placeholder text for email field","Placeholder text for email field"),tooltip:n.email.length>0?n.email[0]:null,type:"email",useExperimentalTextfield:a,useGestalt:!0,value:t})}),Object(b.jsx)(f.f,{paddingY:1,position:"relative",dangerouslySetInlineStyle:{__style:{zIndex:2}},children:Object(b.jsx)(A.b,{hasError:n.password.length>0,id:"password",isRTL:p,name:"password",onChange:e=>{this.handleFieldChange("password",e)},onFocus:()=>K("password"),placeholder:a?d.a._("Create a password","Placeholder text for password field","Placeholder text for password field"):d.a._("Password","Placeholder text for password field","Placeholder text for password field"),tooltip:n.password.length>0?n.password[0]:null,type:"password",useExperimentalTextfield:a,useGestalt:!0,value:i})}),Object(b.jsx)(f.f,{paddingY:1,position:"relative",dangerouslySetInlineStyle:{__style:{zIndex:2}},children:Object(b.jsx)(A.b,{accessibilityLabel:"age",autoComplete:"off",hasError:n.age.length>0,helperText:q.includes(s.country)?d.a._("Your jurisdiction requires a minimum age of consent","business.signup.age.helper_text","Business signup page helper text for age input field"):void 0,id:"age",isRTL:p,name:"age",onChange:e=>{this.handleFieldChange("age",e)},placeholder:d.a._("Age"),tooltip:n.age.length>0?n.age[0]:null,type:"text",useGestalt:!0,value:e})}),Object(b.jsx)(f.f,{paddingY:1,children:Object(b.jsx)(f.g,{color:"red",disabled:o,onClick:this.handleFormSubmission,type:"submit",text:d.a._("Create account","Button text for creating a business account","Button text for creating a business account"),size:"md"})}),!c&&Object(b.jsx)(f.f,{paddingY:1,children:Object(b.jsx)(f.g,{size:"md",onClick:()=>Object(l.a)(this.getLoginUrl()),text:d.a._("Log into existing account","business.signup.loginCopyExp","Copy for business sign up page")})}),Object(b.jsxs)(f.f,{paddingY:1,children:[Object(b.jsx)(f.cb,{size:"sm",align:u?"start":"center",overflow:"normal",children:Object(g.b)(d.a._("By continuing, you agree to Pinterest's {{ termsLink }} and acknowledge you've read our {{ privacyLink }}","Notice that proceeding indicates acceptance of term and policy","Notice that proceeding indicates acceptance of term and policy"),{termsLink:Object(b.jsx)("span",{"data-test-id":"business-tos",children:Object(b.jsx)(f.B,{href:H,target:"blank",inline:!0,onClick:({disableOnNavigation:e})=>e(),children:d.a._("Business Terms of Service","Link to Terms of Service","Link to Terms of Service")},0)}),privacyLink:Object(b.jsx)("span",{"data-test-id":"privacy",children:Object(b.jsx)(f.B,{href:G,target:"blank",inline:!0,onClick:({disableOnNavigation:e})=>e(),children:d.a._("Privacy Policy","Link to Pinterest Privacy Policy","Link to Pinterest Privacy Policy")},1)})})}),this.inAdCreditsCampaign()&&Object(b.jsx)(f.cb,{size:"sm",align:"start",overflow:"normal",children:r.a})]})]})})}renderLoadingMask(){const{isSubmittingForm:e}=this.state;return e?Object(b.jsx)(T.a,{}):null}render(){const{unifiedSignup:e}=this.props,{businessImages:t,showWarningModal:n}=this.state,i=t.background;return n?Object(b.jsxs)(f.f,{children:[Object(b.jsx)(f.f,{position:"fixed",top:!0,left:!0,bottom:!0,right:!0,children:Object(b.jsx)(f.x,{alt:this.title,color:"white",naturalHeight:763,naturalWidth:1354,src:i,fit:"cover"})}),Object(b.jsx)(f.f,{children:Object(b.jsx)(v,{})})]}):e?Object(b.jsxs)(f.f,{display:"flex",alignItems:"center",justifyContent:"center",children:[this.renderLoadingMask(),Object(b.jsx)(f.f,{width:268,color:"white",children:this.renderForm()})]}):Object(b.jsxs)(f.f,{children:[Object(b.jsx)(f.f,{position:"fixed",top:!0,left:!0,bottom:!0,right:!0,children:Object(b.jsx)(f.x,{alt:this.title,color:"white",naturalHeight:763,naturalWidth:1354,src:i,fit:"cover"})}),Object(b.jsx)(f.f,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"center",overflow:"scroll",minHeight:600,children:Object(b.jsx)(f.f,{"data-test-id":"businessAccountCreateContainer",width:"100%",children:Object(b.jsx)(f.o,{children:Object(b.jsxs)(f.f,{mdDisplay:"flex",children:[Object(b.jsx)(f.m,{span:0,mdSpan:3}),Object(b.jsx)(f.m,{span:12,mdSpan:6,children:Object(b.jsx)(f.C,{rounding:2,children:Object(b.jsxs)(f.f,{display:"flex",alignItems:this.inAdCreditsCampaign()?"start":"center",minHeight:500,color:"white",position:"relative",children:[this.renderLoadingMask(),Object(b.jsxs)(f.f,{paddingX:10,color:"white",paddingY:8,children:[Object(b.jsx)(f.f,{justifyContent:"center",alignItems:"center",marginBottom:5,display:"flex",children:Object(b.jsx)(f.v,{accessibilityLabel:"Pinterest Logo",color:"red",icon:"pinterest",size:40})}),Object(b.jsx)(f.f,{marginBottom:2,"data-test-id":"businessAccountCreateTitle",children:Object(b.jsx)(f.u,{size:"md",align:"center",children:this.getTitleText()})}),Object(b.jsx)(f.f,{marginBottom:3,children:Object(b.jsx)(f.cb,{align:"center",size:"md",children:this.getSubtitleText()})}),this.renderForm()]})]})})}),Object(b.jsx)(f.m,{span:0,mdSpan:3})]})})})})]})}}function X(e){return Object(b.jsx)($,{...e,location:Object(W.i)(),requestContext:Object(B.d)()})}V($,"defaultProps",{isAuth:!1,unifiedSignup:!1})},"N/FO":function(e,t,n){const i="undefined"!=typeof window&&window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now();t.a=({window:e,duration:t,run:n})=>{const o=i();let r=0,a=null;const s=()=>{const c=i()-o,l=c-r;if(t===1/0)n(0,c,l);else{const e=c/t;if(e>=1)return void n(1,c,l);n(e,c,l)}r=c,a=e.requestAnimationFrame(s)};return{start:()=>{a=e.requestAnimationFrame(s)},cancel:()=>{a&&(e.cancelAnimationFrame(a),a=null)}}}},"N4T/":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.strictEquality=function(e,t){return e===t},t.areCoordsEqual=function(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)},t.areArraysEqual=function(e,n,i){if(void 0===i&&(i=t.strictEquality),e.length!==n.length)return!1;for(var o=0;o<e.length;++o)if(!i(e[o],n[o]))return!1;return!0}},N84b:function(e,t,n){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return p}));var i=n("N/FO");const o={easingFunction:"ease-in-out",extendToEdgeDistanceX:0,extendToEdgeDistanceY:0,scrollSpeedPxPerMs:1.2,minScrollDuration:200},r={linear:e=>e,"ease-in":e=>e*e,"ease-out":e=>e*(2-e),"ease-in-out":e=>e<.5?2*e*e:(4-2*e)*e-1},a=({scrollPosition:e,containerSize:t,contentSize:n,intendedDistance:i,extendToEdgeDistance:o=0})=>{const r=n-t,a=r-e,s=-e;let c=i;return c=Math.min(c,a),c=Math.max(c,s),i>0&&r-(e+c)<=o?c=r-e:i<0&&e+c<=o&&(c=-e),c},s=(e,t,n,s={})=>{const c={...o,...s},{scrollLeft:l,scrollTop:d,scrollWidth:u,scrollHeight:p,clientWidth:h,clientHeight:g}=e,m=a({scrollPosition:l,containerSize:h,contentSize:u,intendedDistance:t,extendToEdgeDistance:c.extendToEdgeDistanceX}),f=a({scrollPosition:d,containerSize:g,contentSize:p,intendedDistance:n,extendToEdgeDistance:c.extendToEdgeDistanceY}),b=Math.abs(Math.floor(m/c.scrollSpeedPxPerMs)),_=Math.abs(Math.floor(f/c.scrollSpeedPxPerMs));let j=Math.max(b,_);c.minScrollDuration&&(j=Math.max(j,c.minScrollDuration));const y=r[c.easingFunction]||r["ease-in-out"];return Object(i.a)({window,duration:j,run:t=>{e.scrollLeft=l+m*y(t),e.scrollTop=d+f*y(t),1===t&&c.onAnimationComplete&&setTimeout(c.onAnimationComplete,0)}})};function c(e){return e===window?window.innerHeight:e.clientHeight}function l(){return void 0!==window.scrollY?window.scrollY:document.documentElement&&void 0!==document.documentElement.scrollTop?document.documentElement.scrollTop:0}function d(e){return e===window&&document.documentElement?document.documentElement.scrollHeight:e.scrollHeight}function u(e){return e===window?l():e.scrollTop}function p(){window&&window.scroll(0,0)}},NBXZ:function(e,t,n){t.a=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")},NFjV:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){var t=this;this.config=e,this.item={},Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \""+e+'" until the drop event.'),null}})}))}return e.prototype.mutateItemByReadingDataTransfer=function(e){var t=this,n={};e&&Object.keys(this.config.exposeProperties).forEach((function(i){n[i]={value:t.config.exposeProperties[i](e,t.config.matchesTypes)}})),Object.defineProperties(this.item,n)},e.prototype.canDrag=function(){return!0},e.prototype.beginDrag=function(){return this.item},e.prototype.isDragging=function(e,t){return t===e.getSourceId()},e.prototype.endDrag=function(){},e}();t.NativeDragSource=i},NVsV:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n("q1tI");const o="__ALL__",r="__NONE__",a={canEnableDebugger:!1,setDebuggerVisible:()=>{},debuggerVisible:!1,setDebuggingEnabled:()=>{},debuggingEnabled:!1,highlightExperiment:e=>{},highlightedExperiment:r,overrideExperiment:(e,t)=>{},overriddenExperiments:{},visibleExperimentCounts:{},setExperimentVisible:(e,t)=>{}},s=Object(i.createContext)(a);t.c=s},Naaj:function(e,t,n){n.d(t,"a",(function(){return r}));var i=n("q1tI"),o=n("y2Ga");function r({constraint:e}){const t=Object(o.c)();return Object(i.useEffect)(()=>{t&&t.markConstraintComplete(e)},[null==t?void 0:t.id,e]),null}},Nehr:function(e,t,n){e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},Nvmo:function(e,t,n){n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c}));const i={margin:"0 auto 18px",width:"270px"},o={display:"block",height:"45px",margin:"5px auto 8px",width:"45px"},r={borderBottom:"#efefef 1px solid",margin:"20px 0px 15px -68px",width:"404px"},a={color:"#333",fontSize:"14px",fontWeight:"normal",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},s={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)"},c={marginRight:0,marginLeft:"4%",borderRadius:32}},NwVv:function(e,t,n){var i=n("ipvL"),o=n("bBqG");t.a=(e,t,n)=>{const r=i.a.getAccountsJSON();r[e.id]=(e=>{const t={id:e.id,username:e.username,email:e.email,fullName:e.fullName||e.full_name,imageMediumUrl:e.imageMediumUrl||e.image_medium_url,imageLargeUrl:e.imageLargeUrl||e.image_large_url};return t.fullName&&t.imageMediumUrl&&t.imageLargeUrl||Object(o.a)("utils.incomplete_user_values"),e.partner&&e.partner.is_create?{...t,partner:{is_create:e.partner.is_create}}:t})(e),i.a.setAccounts(JSON.stringify(r)),t&&n&&Object(o.a)("new_account_add_success",{method:t,user_added:e.id},n)}},OCob:function(e,t,n){var i=n("+NLT");t.a=()=>({referrer:i.a.instance.referrer,facebookToken:i.a.instance.facebook_token,unauthId:i.a.instance.unauth_id,origin:i.a.instance.origin,appType:i.a.instance.app_type})},OI9p:function(e,t,n){n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return c}));var i=n("eOdZ");function o({commentId:e,tags:t,text:n}){return o=>i.a.create("AggregatedCommentResource",{commentId:e,tags:t,text:n}).callUpdate({showError:!1}).then(i=>{const{tagged_users:r}=i.resource_response.data,a=r.map(e=>Object.assign({},e));o({type:"AGGREGATED_COMMENT_UPDATED",payload:{data:{id:e,tagged_users:a,tags:JSON.parse(t),text:n}}})})}function r({aggregatedCommentId:e,isLikedByMe:t}){return n=>{const o=i.a.create("AggregatedCommentLikeResource",{aggregatedCommentId:e});return t?o.callDelete({showError:!1}):o.callCreate({showError:!1}),n({type:"AGGREGATED_COMMENT_LIKE_TOGGLED",payload:{data:{id:e,reaction_by_me:t?0:1}}})}}function a({aggregatedCommentId:e,isMarkedHelpfulByMe:t}){return n=>{const o=i.a.create("HelpfulResource",{helpfulModelType:1,objectId:e});return t?o.callDelete({showError:!1}):o.callCreate({showError:!1}),n({type:"AGGREGATED_COMMENT_HELPFUL_TOGGLED",payload:{data:{id:e,marked_helpful_by_me:!t}}})}}function s({aggregatedCommentId:e,pinId:t,isHighlighted:n}){return o=>{const r=i.a.create("AggregatedCommentHighlightResource",{aggregatedCommentId:e,pinId:t});return n?r.callDelete({showError:!1}):r.callCreate({showError:!1}),o({type:"AGGREGATED_COMMENT_HIGHLIGHT_TOGGLED",payload:{data:{aggregated_comment_id:e,pin_id:t,is_highlighted:!n}}})}}function c({userId:e,featureMap:t}){return n=>{i.a.create("AggregatedCommentFeaturesResource",{userId:e,featureMap:t}).callUpdate({showError:!1}).then(({resource_response:{data:e}})=>{n(function(e){return{type:"AGGREGATED_COMMENT_FEATURES_UPDATED",payload:{data:e}}}({featureMap:e}))})}}},OSge:function(e,t,n){n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));const i="0.8.0",o=9/16,r=6;function a(e,t=1){return{x:(null!=e?e:24)/5,y:(null!=e?e:24)*(t-1)}}const s={HEADING:"story_pin_heading_block",IMAGE:"story_pin_image_block",INGREDIENT:"story_pin_ingredient_block",LINK:"story_pin_link_block",MUSIC:"story_pin_music_block",PARAGRAPH:"story_pin_paragraph_block",SUPPLY:"story_pin_supply_block",VIDEO:"story_pin_video_block",MENTION_STICKER:"story_pin_mention_sticker_block",PRODUCT_STICKER:"story_pin_product_sticker_block"},c={alignment:1,hex_color:"#111111",highlight_color:"#FFFFFF",vertical_alignment:1},l={...c,font:{default_size:28,id:"1",key:"Graphik-Regular.otf",letter_spacing:-.4,line_height:1.25,name:"Teaspoon",url:"https://s.pinimg.com/story_pins/fonts/Graphik-Regular.otf"},font_size:28}},P0Nc:function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c}));var i=n("OSge");const o=(e,t)=>{const n=Object(i.f)(e,t);return`${n.y}px ${n.x}px`},r=({alignment:e,verticalAlignment:t})=>{const n={alignItems:"flex-start",display:"flex",height:"100%",justifyContent:"start",textAlign:"left",width:"100%"};return 1===t?n.alignItems="center":2===t&&(n.alignItems="flex-end"),1===e&&(n.justifyContent="center",n.textAlign="center"),n},a=({fontSize:e,hexColor:t,highlightColor:n,letterSpacing:i,lineHeight:r,name:a})=>({fontSize:e,letterSpacing:i,color:t,fontFamily:a,margin:0,maxHeight:"100%",textShadow:!n&&t&&"#ffffff"===t.toLowerCase()?"0px 1px 4px rgba(0, 0, 0, 0.2)":void 0,wordBreak:"break-word",...n?{backgroundColor:n,borderRadius:e/5,padding:o(e,r)}:{}}),s=({fontSize:e,hasText:t,highlightColor:n,lineHeight:i})=>({...n?{backgroundColor:t?n:void 0,borderRadius:e/5,padding:o(e,i)}:{}}),c=({letterSpacing:e,lineHeight:t,name:n,url:i})=>({fontFamily:n,fontGroup:"",fontOverrides:{letterSpacing:e,lineHeight:t,textTransform:!1},format:"truetype",defaultStyle:0,styles:[{name:"Regular",fontStyle:"",fontWeight:"normal",fontUrl:i}]})},P6Mj:function(e,t,n){t.a=()=>"\n  .GrowthUnauthPinImage:hover, .GrowthUnauthPinImage:hover .GrowthUnauthPinImage__imageDim,\n  .GrowthUnauthPinImage:hover .PinSaveButton__hoverState, .GrowthUnauthPinImage:hover .GrowthUnauthPinImage__like,\n  .GrowthUnauthPinImage:hover .GrowthUnauthPinImage__contentLink {\n    opacity: 1;\n  }\n\n  .GrowthUnauthPinImage__Image {\n    -webkit-transition: opacity 0.04s linear;\n    transition: opacity 0.04s linear;\n    border-radius: inherit;\n    opacity: 1;\n    display: block;\n    margin: 0 auto;\n    border: 0;\n    width: 100%;\n    max-width: 100%;\n    vertical-align: middle;\n    position: relative;\n  }\n\n   .GrowthUnauthPinImage__imageDim {\n     cursor: pointer;\n     bottom: 0;\n     left: 0;\n     right: 0;\n     top: 0;\n     position: absolute;\n     pointer-events: none;\n   }\n\n  .GrowthUnauthPinImage {\n    position: relative;\n    border-radius: 16px;\n    overflow: hidden;\n    cursor: pointer;\n    display: block;\n    padding: 0;\n    font-weight: bold;\n    text-decoration: none;\n    color: #717171;\n    overflow: hidden;\n  }\n\n  .GrowthUnauthPinImage__placeholder {\n    -webkit-font-smoothing: antialiased;\n    -moz-osx-font-smoothing: grayscale;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    bottom: 0;\n    color: #f7f7f7;\n    font-size: 12px;\n    height: 56px;\n    left: 0;\n    line-height: 150%;\n    margin-top: -6px;\n    opacity: 0.5;\n    padding: 0 14px;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    text-shadow: 0 -1px rgba(0,0,0,0.17);\n    top: 45%;\n    word-wrap: break-word;\n  }\n\n  .GrowthUnauthPinImage__imageDim, .PinSaveButton__hoverState, .GrowthUnauthPinImage__like,\n  .GrowthUnauthPinImage__contentLink {\n    opacity: 0;\n  }\n  .GrowthUnauthPinImage__expandButton {\n    background: rgba(255,255,255,0.85);\n  }\n  .GrowthUnauthPinImage__expandButton:hover {\n    background: rgba(255,255,255,0.95);\n  }\n  .GrowthUnauthPinImage__expandButton:after {\n    background: rgba(0,0,0,0.1);\n    bottom: 0;\n    content: '';\n    height: 1px;\n    left: 0;\n    position: absolute;\n    width: 100%;\n  }\n  .GrowthUnauthPinImage__dimGradient {\n    background-color: rgba(0,0,0,0.15);\n    background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0,0,0,0.3)));\n    background: -webkit-linear-gradient(transparent, rgba(0,0,0,0.3));\n    background: linear-gradient(transparent, rgba(0,0,0,0.3));\n  }\n  .GrowthUnauthPinImage__dimGradientDark {\n    background-color: rgba(0,0,0,0.60);\n    background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0,0,0,0.3)));\n    background: -webkit-linear-gradient(transparent, rgba(0,0,0,0.3));\n    background: linear-gradient(transparent, rgba(0,0,0,0.3));\n    bottom: 0;\n    height: 100px;\n    left: 0;\n    position: absolute;\n    right: 0;\n  }\n\n  .GrowthUnauthPinImage__dimOverlayDark {\n    opacity: 0.4;\n    bottom: 0;\n    left: 0;\n    right: 0;\n    top: 0;\n    background-color: #000;\n    border-radius: 16px 16px 0 0;\n    position: absolute;\n    -webkit-transition: opacity .04s linear;\n    transition: opacity .04s linear;\n  }\n\n  .GrowthUnauthPin_brioPin_toggledLego::before {\n    background: white;\n    border-radius: 16px;\n    content: \" \" !important;\n    height: 100%;\n    left: 0;\n    opacity: 0;\n    pointer-events: none;\n    position: absolute;\n    top: 0;\n    -webkit-transform: scale(0.96);\n    -ms-transform: scale(0.96);\n    transform: scale(0.96);\n    width: 100%;\n  }\n  .GrowthUnauthPin_brioPin_toggledLego {\n    margin: -8px;\n    padding: 8px;\n    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16);\n    background-color: #ffffff;\n  }\n\n  .GrowthUnauthPin_brioPinLego {\n    cursor: -webkit-pointer;\n    cursor: pointer;\n  }\n  "},P9b8:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("SFi7");t.DragDropContext=i.DragDropContext,t.DragDropContextProvider=i.DragDropContextProvider,t.DragDropContextConsumer=i.Consumer;var o=n("QNmZ");t.DragLayer=o.default;var r=n("9EBm");t.DragSource=r.default;var a=n("tvWU");t.DropTarget=a.default;var s=n("fpRd");t.DragPreviewImage=s.default;var c=n("sGxw");t.useDrag=c.useDrag,t.useDragLayer=c.useDragLayer,t.useDrop=c.useDrop},PEgZ:function(e,t){e.exports="https://s.pinimg.com/webapp/love-596776c1.svg"},PRGv:function(e,t,n){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return i||((i=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),i}},PVS1:function(e,t,n){n.d(t,"a",(function(){return u}));var i=n("0x0l"),o=n("28DW"),r=n("yweb"),a=n("AXUD"),s=n("J8m7"),c=n("qpbZ"),l=n("n6mq"),d=n("nKUr");function u({api_error_code:e,errorMessage:t,handleTouch:n,userSearch:u}){const p=Object(r.c)(),h=e=>((e,t,n)=>Object(d.jsx)("button",{onClick:()=>{Object(o.a)("unauth_password_reset_link_tapped"),Object(i.a)({usernameOrEmail:t,callBack:n})},style:{background:"transparent",border:"none",verticalAlign:"inherit",padding:0},type:"button",children:Object(d.jsx)(l.cb,{color:"red",inline:!0,size:"md",weight:"bold",children:e},"err_text")}))(e,u,n),g=(e=>{switch(e){case s.d:case s.e:case a.b:return Object(c.b)(p._("You’ve entered a lot of incorrect passwords. To get back into your account, {{ resetPasswordLink }}. Or you can wait 30 minutes and try again.","Error message when login limited","Error message when login limited"),{resetPasswordLink:h(p._("reset your password","Link text for password reset","Link text for password reset"))});case s.s:case s.C:return Object(c.b)(p._("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:h(p._("Reset your password","Link text for password reset","Link text for password reset"))});case s.n:return Object(c.b)(p._("Your account is already linked to Google. To log in with email, {{ resetPasswordLink }}"),{resetPasswordLink:h(p._("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 s.m:return Object(c.b)(p._("Your account is already linked to Facebook. To log in with email, {{ resetPasswordLink }}"),{resetPasswordLink:h(p._("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 s.o:return Object(c.b)(p._("Your account is connected to Apple. This option works only on the Pinterest iOS app. To log into Pinterest here, you’ll need to {{ resetPasswordLink }}","unauth.web.emailLogin","Error message displayed to users who are connected to Apple, but do not have a password"),{resetPasswordLink:h(p._("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 s.l:return Object(c.b)(p._("The password you entered is incorrect. Try again or {{ resetPasswordLink }}"),{resetPasswordLink:h(p._("Reset your password","Link text for password reset","Link text for password reset"))});default:return[t]}})(e);return Object(d.jsx)(l.f,{"data-test-id":"touchableErrorMessage",children:g.map((e,t)=>Object(d.jsx)(l.cb,{color:"red",inline:!0,size:"md",children:e},"err_message_"+t))})}},Pezf:function(e,t,n){function i({m:e=0,h:t=0}){let n;return n=t<=0?t:e>45?t+1:e>15?t+.5:t,{m:e,h:t,rm:t>0?0:e,rh:n}}function o(e){const t=Math.floor(e/3600);return i({m:Math.floor(e%3600/60),h:t})}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}))},PnD8:function(e,t,n){e.exports=n("6uti")},"Q7+p":function(e,t,n){n.d(t,"a",(function(){return d}));var i=n("MhBu"),o=n("eOdZ"),r=n("he3k"),a=n("KFEb"),s=n("prCw"),c=n("tiNQ"),l=n("BJm1");function d({aggregatedCommentId:e,aggregatedPinId:t,feedType:n,parentId:d,type:u,updateParentCommentCount:p}){return async h=>{const g=await o.a.create("AggregatedCommentResource",{commentId:e,pinId:r.c.TOP===u?d:null}).callDelete({showError:!1});return h(Object(i.a)({feedId:n===a.a.UNIFIED_COMMENTS&&t||d,feedType:n||a.a.AGGREGATED_COMMENTS,itemIds:[e],itemType:"aggregatedcomment"})),h(function(e,t){return{type:"AGGREGATED_COMMENT_DELETED",payload:{parentId:e,aggregatedCommentId:t}}}(d,e)),p&&(u||0===u)&&(u===r.c.TOP?h(Object(s.a)(d,-1)):u===r.c.REPLY_TO_AGGREGATED?h(Object(c.a)(d,-1)):h(Object(l.e)(d,-1))),g}}},QCxT:function(e,t,n){function i(e){return!(!(e&&e.rich_metadata&&e.rich_metadata.recipe&&e.rich_metadata.recipe.name&&e.rich_metadata.recipe.name.trim().length>0&&e.rich_metadata.recipe.categorized_ingredients)||e.rich_metadata.recipe.from_aggregated_data)}n.d(t,"a",(function(){return i}))},QHRY:function(e,t,n){var i=n("q1tI"),o=n("FMFh"),r=n("yjg8"),a=n("pLLR"),s=n("nKUr");t.a=e=>{const{bookmarks:t,items:n,loadPins:c,pinLinkClickHandler:l,...d}=e,{numServerRenderedPins:u=0}=e,{isBot:p}=Object(a.d)(),h=u>0?u:Object(r.o)(),[g,m]=Object(i.useState)(p?n:n.slice(0,h)),[f,b]=Object(i.useState)(t);return Object(s.jsx)(o.a,{items:g,loadPins:()=>{c(g,f,(e,t)=>{m((g||[]).concat(e)),b(t)})},pinLinkClickHandler:l,...d})}},QIuh:function(e,t,n){function i(e,t){return{x:e.x+t.x,y:e.y+t.y}}function o(e,t){return{x:e.x-t.x,y:e.y-t.y}}Object.defineProperty(t,"__esModule",{value:!0}),t.add=i,t.subtract=o,t.getSourceClientOffset=function(e){var t=e.clientOffset,n=e.initialClientOffset,r=e.initialSourceClientOffset;return t&&n&&r?o(i(t,r),n):null},t.getDifferenceFromInitialOffset=function(e){var t=e.clientOffset,n=e.initialClientOffset;return t&&n?o(t,n):null}},QNmZ:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n("q1tI"),s=n("+k3R"),c=n("SFi7"),l=n("dJ9d"),d=n("QWfI"),u=n("qFZT"),p=n("2S0S"),h=n("Gytx");t.default=function(e,t){return void 0===t&&(t={}),s.default("DragLayer","collect[, options]",e,t),p("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),p(d.isPlainObject(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var i=n,s=t.arePropsEqual,d=void 0===s?h:s,g=i.displayName||i.name||"Component",m=function(t){function s(){var e=null!==t&&t.apply(this,arguments)||this;return e.isCurrentlyMounted=!1,e.ref=a.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();h(t,e.state)||e.setState(t)}},e}return o(s,t),s.prototype.getDecoratedComponentInstance=function(){return p(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current},s.prototype.shouldComponentUpdate=function(e,t){return!d(e,this.props)||!h(t,this.state)},s.prototype.componentDidMount=function(){this.isCurrentlyMounted=!0,this.handleChange()},s.prototype.componentWillUnmount=function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)},s.prototype.render=function(){var e=this;return a.createElement(c.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?a.createElement(i,r({},e.props,e.state,{ref:l.isRefable(i)?e.ref:null})):null)}))},s.prototype.receiveDragDropManager=function(e){if(void 0===this.manager){this.manager=e,p("object"==typeof e,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",g,g);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}},s.prototype.getCurrentState=function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)},s.displayName="DragLayer("+g+")",s.DecoratedComponent=n,s}(a.Component);return u(m,n)}}},QSJg:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FILE="__NATIVE_FILE__",t.URL="__NATIVE_URL__",t.TEXT="__NATIVE_TEXT__"},QWfI:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e},t.noop=function(){},t.isPlainObject=function(e){if(!function(e){return"object"==typeof e&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},QWk2:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("q1tI"),o=n("B/xd");function r(e){return function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!i.isValidElement(t)){var r=t;return e(r,n),r}var a=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+t+" into a <div>, or turn it into a drag source or a drop target itself.")}}(a);var s=n?function(t){return e(t,n)}:e;return o.default(a,s)}}n("1IOU"),t.default=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=r(i);t[n]=function(){return o}}})),t}},QqZJ:function(e,t,n){var i=n("nKUr");t.a=e=>{const t=e.itemType?{itemScope:!0,itemType:e.itemType}:{};return Object(i.jsx)("div",{...t,children:e.children||null})}},QvPg:function(e,t,n){var i=n("yweb"),o=n("n6mq"),r=n("nKUr");t.a=()=>{const e=Object(i.c)();return Object(r.jsx)(o.cb,{align:"center",overflow:"normal",children:e._("You're almost there! Log in to access all of Pinterest","loginModal.limitedLogin.subheader","Subheader text on personalized login modal/flyout to remind users to log in")})}},RQXw:function(e,t,n){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var i=n("q1tI"),o=n("EUPR"),r=n("nKUr");function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=Object(i.createContext)({recaptchaV3Token:"",refreshToken:()=>{}});s.displayName="RecaptchaV3Token";class c extends i.Component{constructor(...e){super(...e),a(this,"state",{recaptchaV3Token:"",refreshToken:this.refreshToken}),a(this,"refreshToken",()=>{Object(o.h)(e=>{this.setState({recaptchaV3Token:e,refreshToken:this.refreshToken})},o.e)})}componentDidMount(){this.refreshToken(),setInterval(this.refreshToken,o.f)}render(){return Object(r.jsx)(s.Provider,{value:this.state,children:this.props.children})}}const l=s.Consumer},"S8b/":function(e,t,n){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n("hUD8"),r=n("/Ecc"),a=n("yBr6"),s=n("lh2y"),c=n("QSJg"),l=function(){function e(e){var t=this;this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){return a.getNodeClientOffset(t.sourceNodes.get(e))},this.endDragNativeItem=function(){t.isDraggingNativeItem()&&(t.actions.endDrag(),t.registry.removeSource(t.currentNativeHandle),t.currentNativeHandle=null,t.currentNativeSource=null)},this.isNodeInDocument=function(e){return!!document&&document.body.contains(e)||!!t.window&&t.window.document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=t.currentDragSourceNode;t.isNodeInDocument(e)||t.clearCurrentDragSourceNode()&&t.actions.endDrag()},this.handleTopDragStartCapture=function(){t.clearCurrentDragSourceNode(),t.dragStartSourceIds=[]},this.handleTopDragStart=function(e){var n=t.dragStartSourceIds;t.dragStartSourceIds=null;var i=a.getEventClientOffset(e);t.monitor.isDragging()&&t.actions.endDrag(),t.actions.beginDrag(n||[],{publishSource:!1,getSourceClientOffset:t.getSourceClientOffset,clientOffset:i});var o=e.dataTransfer,r=s.matchNativeItemType(o);if(t.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var c=t.monitor.getSourceId(),l=t.sourceNodes.get(c),d=t.sourcePreviewNodes.get(c)||l;if(d){var u=t.getCurrentSourcePreviewNodeOptions(),p={anchorX:u.anchorX,anchorY:u.anchorY},h={offsetX:u.offsetX,offsetY:u.offsetY},g=a.getDragPreviewOffset(l,d,i,p,h);o.setDragImage(d,g.x,g.y)}}try{o.setData("application/json",{})}catch(m){}t.setCurrentDragSourceNode(e.target),t.getCurrentSourcePreviewNodeOptions().captureDraggingState?t.actions.publishDragSource():setTimeout((function(){return t.actions.publishDragSource()}),0)}else if(r)t.beginDragNativeItem(r);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=function(){t.clearCurrentDragSourceNode()&&t.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(t.dragEnterTargetIds=[],t.enterLeaveCounter.enter(e.target)&&!t.monitor.isDragging()){var n=e.dataTransfer,i=s.matchNativeItemType(n);i&&t.beginDragNativeItem(i)}},this.handleTopDragEnter=function(e){var n=t.dragEnterTargetIds;(t.dragEnterTargetIds=[],t.monitor.isDragging())&&(t.altKeyPressed=e.altKey,r.isFirefox()||t.actions.hover(n,{clientOffset:a.getEventClientOffset(e)}),n.some((function(e){return t.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=t.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){t.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var n=t.dragOverTargetIds;if(t.dragOverTargetIds=[],!t.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));t.altKeyPressed=e.altKey,t.actions.hover(n||[],{clientOffset:a.getEventClientOffset(e)}),(n||[]).some((function(e){return t.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=t.getCurrentDropEffect())):t.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){t.isDraggingNativeItem()&&e.preventDefault(),t.enterLeaveCounter.leave(e.target)&&t.isDraggingNativeItem()&&t.endDragNativeItem()},this.handleTopDropCapture=function(e){t.dropTargetIds=[],e.preventDefault(),t.isDraggingNativeItem()&&t.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),t.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var n=t.dropTargetIds;t.dropTargetIds=[],t.actions.hover(n,{clientOffset:a.getEventClientOffset(e)}),t.actions.drop({dropEffect:t.getCurrentDropEffect()}),t.isDraggingNativeItem()?t.endDragNativeItem():t.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.context=e.getContext(),this.enterLeaveCounter=new o.default(this.isNodeInDocument)}return Object.defineProperty(e.prototype,"window",{get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0},enumerable:!0,configurable:!0}),e.prototype.setup=function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}},e.prototype.teardown=function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))},e.prototype.connectDragPreview=function(e,t,n){var i=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){i.sourcePreviewNodes.delete(e),i.sourcePreviewNodeOptions.delete(e)}},e.prototype.connectDragSource=function(e,t,n){var i=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return i.handleDragStart(t,e)},r=function(e){return i.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",r),function(){i.sourceNodes.delete(e),i.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",r),t.setAttribute("draggable","false")}},e.prototype.connectDropTarget=function(e,t){var n=this,i=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},r=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",i),t.addEventListener("dragover",o),t.addEventListener("drop",r),function(){t.removeEventListener("dragenter",i),t.removeEventListener("dragover",o),t.removeEventListener("drop",r)}},e.prototype.addEventListeners=function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))},e.prototype.removeEventListeners=function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))},e.prototype.getCurrentSourceNodeOptions=function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return i({dropEffect:this.altKeyPressed?"copy":"move"},t||{})},e.prototype.getCurrentDropEffect=function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect},e.prototype.getCurrentSourcePreviewNodeOptions=function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return i({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})},e.prototype.isDraggingNativeItem=function(){var e=this.monitor.getItemType();return Object.keys(c).some((function(t){return c[t]===e}))},e.prototype.beginDragNativeItem=function(e){this.clearCurrentDragSourceNode(),this.currentNativeSource=s.createNativeDragSource(e),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])},e.prototype.setCurrentDragSourceNode=function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)},e.prototype.clearCurrentDragSourceNode=function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)},e.prototype.handleDragStart=function(e,t){this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t)},e.prototype.handleDragEnter=function(e,t){this.dragEnterTargetIds.unshift(t)},e.prototype.handleDragOver=function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)},e.prototype.handleDrop=function(e,t){this.dropTargetIds.unshift(t)},e}();t.default=l},SDxC:function(e,t){e.exports="https://s.pinimg.com/webapp/wow-0a7ea725.svg"},SFi7:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n("q1tI"),c=n("yCO0"),l=n("+k3R"),d=n("dJ9d"),u=n("2S0S"),p=n("qFZT");function h(e,t,n){return{dragDropManager:c.createDragDropManager(e,t,n)}}t.context=s.createContext({dragDropManager:void 0}),t.Consumer=t.context.Consumer,t.Provider=t.context.Provider,t.createChildContext=h,t.DragDropContextProvider=function(e){var n=e.children,i=a(e,["children"]),o="manager"in i?{dragDropManager:i.manager}:h(i.backend,i.context,i.debugMode);return s.createElement(t.Provider,{value:o},n)},t.DragDropContext=function(e,n,i){l.default("DragDropContext","backend",e);var a=h(e,n,i);return function(e){var n=e,i=n.displayName||n.name||"Component",c=function(c){function l(){var e=null!==c&&c.apply(this,arguments)||this;return e.ref=s.createRef(),e.getManager=function(){return a.dragDropManager},e}return o(l,c),l.prototype.getDecoratedComponentInstance=function(){return u(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current},l.prototype.render=function(){return s.createElement(t.Provider,{value:a},s.createElement(n,r({},this.props,{ref:d.isRefable(n)?this.ref:null})))},l.DecoratedComponent=e,l.displayName="DragDropContext("+i+")",l}(s.Component);return p(c,e)}}},SLVX:function(e,t,n){function i(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return i}))},SguC:function(e,t){e.exports="https://s.pinimg.com/webapp/thanks-20ad07d3.svg"},StuW:function(e,t,n){t.a=(e,t)=>{let n;return t.some(t=>{const i=t(e);return i.errors.length>0&&(n=i.errors[0],!0)}),n}},Sxd8:function(e,t,n){var i=n("ZCgT");e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},"T+9/":function(e,t,n){var i=n("q1tI"),o=n("i8i4"),r=n("/MKj"),a=n("ZbwW"),s=n("D2p8"),c=n("U4JR");function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={Article:{impressionType:"articleImpressions",idType:"articleIdStr",eventType:3829},Pin:{impressionType:"pinImpressions",idType:"pinIdStr",eventType:18},Board:{impressionType:"boardImpressions",idType:"boardIdStr",eventType:3700},Interest:{impressionType:"topicImpressions",idType:"topicIdStr",eventType:3703},Search:{impressionType:"searchImpressions",idType:"term",eventType:3803},Story:{impressionType:"storyImpressions",idType:"storyIdStr",eventType:170},ActivationCard:{impressionType:"activationCardImpressions",idType:"experienceIdStr",eventType:8547},User:{impressionType:"userImpressions",idType:"userIdStr",eventType:3704},News:{impressionType:"newsHubData",idType:"newsIdStr",eventType:4110},Guide:{impressionType:"guideImpressions",idType:"term",eventType:7573},TodayArticle:{impressionType:"todayArticleImpressions",idType:"todayArticleIdStr",eventType:8569},Banner:{impressionType:"bannerImpressions",idType:"userIdStr",eventType:9061},Comment:{impressionType:"commentImpressions",idType:"commentIdStr",eventType:9127}};class u extends i.Component{constructor(e){super(e),l(this,"trackImpression",()=>{try{this.node=Object(o.findDOMNode)(this),this.node instanceof HTMLElement&&this.impressionsFramework.start(this.node).onExitViewport(this.logImpression).setDebugId(this.props.loggingId||"unknown")}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}}),l(this,"logImpression",e=>{const{carousel_data:t,closeupImpressionType:n,closeupNavigationType:i,componentType:o,contextLogData:r,elementType:a,impressionAuxFields:s,impressionType:l,loggingId:u,objectIdStr:p,slotIndex:h,trackCarousel:g,viewData:m,viewParameter:f,viewType:b}=this.props,_=d[l],j=_.idType,y=e.forcedExit&&"removed"===e.forcedExit?0:void 0,v={endTime:e.endTime,[j]:u,slotIndex:h,time:e.startTime,renderDuration:e.endTime-e.startTime,type:n,...s,forcedExit:y};if(g||Object(c.b)(_.eventType,{closeup_navigation_type:i,component:o,element:a,eventData:{[_.impressionType]:[v]},objectIdStr:p,view:b,viewData:m||{},viewParameter:f,...r}),t&&g){const{carousel_slots:e,index:n=0,id:i}=t;Object(c.b)(7352,{component:o,eventData:{pinCarouselSlotImpressions:[{...v,carouselDataId:Number(i),carouselSlotId:(null==e?void 0:e[n])&&Number(e[n].id),slotIndex:n}]},objectIdStr:p,view:b,viewData:m||{},viewParameter:f,...r})}}),this.impressionsFramework=e.impressionsFramework||s.c}componentDidMount(){this.props.inImpressionExp&&!this.impressionsFramework.inExperiment&&this.impressionsFramework.setExperimentStatus(!0),this.props.isPaused||this.trackImpression()}componentDidUpdate(e){e.isPaused&&!this.props.isPaused&&this.trackImpression()}componentWillUnmount(){this.node instanceof HTMLElement&&this.impressionsFramework.stop(this.node)}render(){return i.Children.only(this.props.children)}}t.a=Object(r.connect)((function({pins:e},{loggingId:t}){const n=e[t||""]||{};return{carousel_data:Object(a.a)(n)}}),()=>({}))(u)},T8I8:function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},TKJ6:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("7nh8");t.setClientOffset=function(e,t){return{type:i.INIT_COORDS,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}},TPjH:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=n.getRegistry(),o=i.addTarget(e,t);return[o,function(){return i.removeTarget(o)}]}},TT16:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isRef=function(e){return null!==e&&"object"==typeof e&&e.hasOwnProperty("current")}},TbPR:function(e,t,n){n.r(t);var i=n("q1tI"),o=n("/MKj"),r=n("gxu6"),a=n("PioT"),s=n("OCob"),c=n("Ye/N"),l=n("37no"),d=n("kJuv"),u=n("sv3x"),p=n("vjiL"),h=n("s8BS"),g=n("kmwA"),m=n("v/Q4"),f=n("zRck"),b=n("HU+g"),_=n("U4JR"),j=n("EC51"),y=n("28DW"),v=n("n6mq"),O=n("nKUr");function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class w extends i.Component{constructor(...e){super(...e),x(this,"state",{animationMinHeight:-1,showRegisterRequestLoading:!1}),x(this,"mountStyle",()=>this.setState({showRegisterRequestLoading:!0})),x(this,"requestAnimationFrameId",null),x(this,"handleLoginButtonClick",({event:e})=>{Object(y.a)(`unauth.google_one_tap.confirmation_dialog.${this.props.loggingId}.login_click`),this.clearDelayedSignupTimeout(),e&&(e.preventDefault(),e.stopPropagation()),this.props.handleLogin()})}componentDidMount(){const e=1e3*this.props.signupDelay;this.delayedSignupTimeoutId=window.setTimeout(()=>{Object(y.a)(`unauth.google_one_tap.confirmation_dialog.${this.props.loggingId}.signup_delay_timer_reached`),this.requestAnimationFrameId=window.requestAnimationFrame(this.mountStyle),this.props.handleSignup()},e)}componentWillUnmount(){this.clearDelayedSignupTimeout(),this.cancelAnimationFrame()}clearDelayedSignupTimeout(){this.delayedSignupTimeoutId&&window.clearTimeout(this.delayedSignupTimeoutId)}cancelAnimationFrame(){this.requestAnimationFrameId&&window.cancelAnimationFrame(this.requestAnimationFrameId)}render(){const{animationMinHeight:e,showRegisterRequestLoading:t}=this.state,n={transitionProperty:"min-height",transitionDuration:"500ms",transitionTimingFunction:"ease-in-out"};if(e>=0){let o=e;t&&(o=0),Object.assign({},n,{minHeight:(i=o,i+"px")})}var i;return Object(O.jsx)("div",{style:n,ref:e=>{!e||this.state.showRegisterRequestLoading||this.state.animationMinHeight>0||this.setState({animationMinHeight:e.clientHeight})},children:Object(O.jsxs)(v.f,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",alignItems:"center",children:[Object(O.jsx)(v.f,{children:Object(O.jsx)(v.cb,{align:"center",weight:"bold",children:Object(O.jsx)("span",{className:"deprecatedTextSizeXL",children:t?c.a._("Finishing up...","Title of a dialog telling the user that an account is almost done being created.","Title of a dialog telling the user that an account is almost done being created."):c.a._("Creating your account...","Title of a dialog telling the user that an account is being created.","Title of a dialog telling the user that an account is being created.")})})}),Object(O.jsx)(v.f,{paddingY:4,children:Object(O.jsx)(v.U,{accessibilityLabel:c.a._("Account is being created","Accessibility label for account creation loading dialog","Accessibility label for account creation loading dialog"),show:!0})}),t?null:Object(O.jsx)(v.f,{marginTop:2,children:Object(O.jsx)(v.cb,{inline:!0,align:"center",children:c.a._("Didn’t mean to create a new account?","Description text telling the user that they can log in if they did not intend to create a new account","Description text telling the user that they can log in if they did not intend to create a new account")})}),t?null:Object(O.jsx)(v.f,{children:Object(O.jsx)(v.cb,{inline:!0,align:"center",children:Object(O.jsx)(j.a,{inline:!0,href:"/login",onClick:this.handleLoginButtonClick,children:c.a._("Click here to log in.","Login button which will show the login modal and enable the user to log in","Login button which will show the login modal and enable the user to log in")})})})]})})}}var S=w,C=n("b7nI"),k=n("WR05"),T=n("pLLR");function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const I={modalOverlay:{backgroundColor:"rgba(0, 0, 0, 0.6)",opacity:1,position:"fixed",top:"0px",bottom:"0px",left:"0px",right:"0px",zIndex:1e3},staticContinueButtonLoginLink:{cursor:"pointer",fontWeight:"normal"}},P="delayedSignupLoadingSpinner",D="staticSignupLogin",A="staticSignupLoginWithTOS";class L extends i.Component{constructor(...e){super(...e),E(this,"handleCancelClick",()=>{this.trackScopedAction("cancel.click"),Object(_.b)(101,{element:73,view:10,viewParameter:3202}),this.props.handleCancelClick()}),E(this,"handleConfirmSignup",()=>{this.trackScopedAction("confirm.click"),Object(_.b)(101,{element:31,view:10,viewParameter:3202}),this.props.handleConfirmSignup(!1)}),E(this,"handleConfirmSignupWithSpinner",()=>{this.trackScopedAction("confirm.click"),Object(_.b)(101,{element:31,view:10,viewParameter:3202}),this.props.handleConfirmSignup(!0)}),E(this,"handleShowLogin",()=>{this.trackScopedAction("login.click"),Object(_.b)(101,{element:30,view:10,viewParameter:3202}),this.props.handleShowLogin()})}componentDidMount(){Object(_.b)(120,{viewParameter:3202}),this.disableBackgroundScrolling(),this.trackScopedAction("shown")}componentWillUnmount(){this.enableBackgroundScrolling()}trackScopedAction(e){Object(y.a)(`unauth.google_one_tap.confirmation_dialog.${this.props.step}.${e}`)}disableBackgroundScrolling(){document.body&&(document.body.style.overflow="hidden")}enableBackgroundScrolling(){document.body&&(document.body.style.overflow="")}renderDelayedSignupConfirmation(e){return Object(O.jsx)(S,{signupDelay:e,handleLogin:this.handleShowLogin,handleSignup:()=>{this.handleConfirmSignup()},loggingId:P})}renderContentInModalContainer(e){const{layoutStyle:t,loading:n}=this.props;return"top"===t?Object(O.jsx)("div",{style:I.modalOverlay,children:Object(O.jsxs)(v.f,{color:"white",direction:"column",display:"flex",margin:6,padding:7,position:"fixed",right:!0,rounding:2,top:!0,width:376,children:[n?Object(O.jsx)(C.a,{}):null,e]})}):Object(O.jsx)("div",{style:I.modalOverlay,children:Object(O.jsxs)(v.f,{bottom:!0,color:"white",direction:"column",display:"flex",height:168,padding:7,position:"fixed",width:"100%",children:[n?Object(O.jsx)(C.a,{}):null,e]})})}renderStaticSignupLoginConfirmation(e){const{country:t}=this.props;return Object(O.jsxs)(v.f,{children:[Object(O.jsx)(v.f,{display:"inlineBlock",position:"absolute",top:!0,right:!0,marginTop:2,marginEnd:2,children:Object(O.jsx)(v.w,{accessibilityLabel:c.a._("Cancel","Button to close the signup/login modal","Button to close the signup/login modal"),icon:"cancel",onClick:this.handleCancelClick,size:"sm"})}),Object(O.jsx)(v.cb,{align:"start",weight:"bold",children:Object(O.jsx)("span",{className:"deprecatedTextSizeXL",children:c.a._("Continue to Pinterest","Title of a dialog telling enabling the user to continue with sign up or log in","Title of a dialog telling enabling the user to continue with sign up or log in")})}),Object(O.jsx)(v.f,{marginTop:2,children:Object(O.jsx)(v.cb,{align:"start",children:c.a._("Hmm, it looks like you don't have an account yet. Let's get started!","Description text of a dialog asking the user to sign up for a Pinterest account","Description text of a dialog asking the user to sign up for a Pinterest account")})}),Object(O.jsx)(v.f,{marginTop:5,children:Object(O.jsx)(v.g,{color:"red",onClick:this.handleConfirmSignupWithSpinner,text:c.a._("Sign up","Text on a button which will create an account when clicked","Text on a button which will create an account when clicked")})}),Object(O.jsx)(v.f,{marginTop:2,children:Object(O.jsx)(v.g,{color:"gray",onClick:this.handleShowLogin,text:c.a._("Log in using a different method","Text on a button which will take the user to login when clicked.","Text on a button which will take the user to login when clicked.")})}),e?Object(O.jsx)(v.f,{marginTop:4,marginStart:4,marginEnd:4,children:Object(O.jsx)(k.a,{country:t,dark:!0})}):null]})}render(){if(this.props.shouldHide)return null;let e=null;return this.props.step===P?e=this.renderDelayedSignupConfirmation(this.props.delayedSignupLoadingSpinnerDuration):this.props.step===D?e=this.renderStaticSignupLoginConfirmation(!1):this.props.step===A&&(e=this.renderStaticSignupLoginConfirmation(!0)),this.renderContentInModalContainer(e)}}function R(e){const t=Object(T.d)(),{country:n}=t;return Object(O.jsx)(L,{...e,country:n})}const M="disableUnauthGoogleOneTap";var F=n("J8m7"),N=n("VL22"),B=n("h7e3"),U=n("QAzJ"),z=n("4NNh"),W=n("iMWs");function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class G extends i.Component{constructor(e){super(e),V(this,"annotateOneTapStopwatch",e=>Object(B.b)("google_autologin",e)),V(this,"abortOneTapStopwatch",e=>Object(B.a)("google_autologin",e)),V(this,"stopOneTapStopwatch",()=>Object(B.d)("google_autologin")),V(this,"onRetrieveCredentialsSuccess",e=>{const t=e.credential,n=e.select_by;r.b(M,"1",168),this.showLoading(),this.trackGoogleOneTapAction("success");const i={google_open_id_token:t,autologin:"auto"===n},o=i.autologin?"autologin":"login",a=n.includes("btn")?"gsi_btn":n.includes("user")?"onetap_btn":"other",s="onetap_btn"===a?4:3;Object(y.g)({action:o,event:"attempt",type:"google_one_tap",trigger:a}),this.login(i).then(e=>{this.onLoginSuccess(e),this.trackSignupLoginEvent(7536,s)},e=>{this.onLoginFailure(i,n,e),this.trackSignupLoginEvent(7535,s)}),this.trackSignupLoginEvent(7534,s)}),V(this,"onLoginSuccess",(e={})=>{const{nextUrl:t}=this.props;this.trackGoogleOneTapAction("login.success"),t?u.b.handleRedirect(t):u.b.handleRedirectWithFallbackWindowLocation()}),V(this,"onLoginFailure",(e,t,n)=>{const{handleLoginError:i,handle2FALogin:o}=this.props;this.hideLoading();const r=n&&n.api_error_code||0;if(this.trackGoogleOneTapAction("login.error."+r),r===F.v)"btn"===t?(this.setState({googleOpenId:e.google_open_id_token}),this.attemptSignup(!1,!0)):this.showConfirmationDialog(e);else if(r===F.t)o({gplus_id_token:e.google_open_id_token});else if(r===F.x)this.setState({showAccountSuspended:!0});else{const e=c.a._("We couldn’t log you in with that account. Try the Google button!");Object(b.a)(e),i(n)}}),V(this,"onSignupSuccess",(e,t,n)=>{this.trackGoogleOneTapAction("signup.success"),this.trackSignupLoginEvent(7487,t),Object(y.g)({action:"signup",event:"success",type:"google_one_tap",trigger:e}),u.b.handleSignupRedirect("/")}),V(this,"onSignupFailure",(e,t,n)=>{const i=n&&n.api_error_code||0;this.trackGoogleOneTapAction("signup.error."+i),Object(y.g)({action:"signup",event:"fail",type:"google_one_tap",trigger:e}),this.trackSignupLoginEvent(7488,t),this.hideLoading(),this.hideConfirmationDialog();const o=c.a._("We couldn’t sign you up with that account. Try the Google button!");Object(b.a)(o),this.props.handleSignupError()}),V(this,"trackGoogleOneTapAction",e=>{Object(y.j)("unauth.google_one_tap."+e)}),V(this,"handleCancelOneTap",()=>{this.hideConfirmationDialog()}),V(this,"attemptSignup",(e,t)=>{const{handleSignupConfirmed:n,pageContext:i,requestContext:o}=this.props;e&&this.showLoading();const{googleOpenId:r}=this.state,a=Object(z.b)(r),s={google_open_id_token:r,first_name:a.given_name,last_name:a.family_name,image_url:a.picture,container:f.g,hybridTier:null==i?void 0:i.hybridTier,page:null==i?void 0:i.pageType};if(n&&Object(N.d)(o.country))return void n(N.a.GOOGLE_ONE_TAP,{},s);const c=t?"onetap_btn":"gsi_btn",l=t?4:3;Object(y.g)({action:"signup",event:"attempt",type:"google_one_tap",trigger:c}),Object(p.a)(s).then(e=>{this.onSignupSuccess(c,l,e)},e=>{this.onSignupFailure(c,l,e)}),this.trackSignupLoginEvent(7537,l)}),V(this,"renderGoogleConfirmationDialog",(e,t)=>Object(O.jsx)(R,{delayedSignupLoadingSpinnerDuration:2,handleCancelClick:this.handleCancelOneTap,handleConfirmSignup:this.attemptSignup,handleShowLogin:this.props.handleShowLogin,layoutStyle:e,loading:this.state.loading,shouldHide:this.props.shouldHide,step:t})),this.state={confirmationDialogStep:void 0,googleOpenId:"",loading:!1,showAccountSuspended:!1}}componentDidMount(){const{pageContext:e,requestContext:t}=this.props;"1"!==r.a(M)&&!r.a("fba")||!t.isBot&&r.a("fba")?(this.setupGoogleOneTap(),t.isBot||Object(y.j)(`unauth_web_container.${f.g}.${String(null==e?void 0:e.hybridTier)}.other.shown`)):this.abortOneTapStopwatch("disabled")}componentDidUpdate(e){this.props.shouldHide&&!e.shouldHide&&this.hide()}initializeGoogleOneTap(){const{activateSafariOneTapExp:e}=this.props;this.trackGoogleOneTapAction("sdk_exists");const t=window.google.accounts.id,n=a.b.isSafari();t.initialize({activity_listener:this.handleActivity.bind(this),auto_select:!r.a("fba"),callback:this.handleOneTapResponse.bind(this),cancel_on_tap_outside:!1,client_id:g.a.settings.GPLUS_CLIENT_ID,context:"use",itp_support:n&&e().anyEnabled}),this.props.dispatch({type:"GOOGLE_ONE_TAP_INITIALIZED",payload:{}}),this.trackGoogleOneTapAction("initialize"),t.prompt(this.handleMomentNotification.bind(this),void 0,this.logNotification.bind(this))}logNotification(e){"auto_select_started"===e.type?Object(y.j)("web_unauth.cancellable_autologin.auto_select_started"):"auto_select_canceled"===e.type&&Object(y.j)("web_unauth.cancellable_autologin.auto_select_canceled")}getGoogleId(){if("undefined"==typeof window)return null;const e=window.google;return e&&e.accounts&&e.accounts.id}setupGoogleOneTap(){const{requestContext:{experiments:e}}=this.props,t=(e.v2ActivateExperiment("web_cancelable_google_autologin")||"").startsWith("enabled");this.annotateOneTapStopwatch("beforeLoadOneTapScript"),Object(y.j)("web_unauth.gsi_script.start_dynamic_loading"),e.flush(),Object(l.b)(`${z.a}${t?"?feature=cancelableAutoSelect":""}`).then(()=>{this.annotateOneTapStopwatch("afterLoadOneTapScript"),this.trackGoogleOneTapAction("gsi_script_loaded");const e=window.google;e&&e.accounts&&e.accounts.id?this.initializeGoogleOneTap():this.abortOneTapStopwatch("noAccountFound")})}handleMomentNotification(e){const t=e.getMomentType();if("display"===t){e.isDisplayed()?this.trackGoogleOneTapAction("display_moment.displayed"):this.trackGoogleOneTapAction("display_moment.not_displayed."+e.getNotDisplayedReason())}else"skipped"===t?this.trackGoogleOneTapAction("skipped_moment."+e.getSkippedReason()):"dismissed"===t&&this.trackGoogleOneTapAction("dismissed_moment."+e.getDismissedReason())}handleOneTapResponse(e){if(e){this.stopOneTapStopwatch();const t=e.select_by;this.trackGoogleOneTapAction("select_by."+t),this.onRetrieveCredentialsSuccess(e)}else this.abortOneTapStopwatch("noResponse")}handleActivity(e){if(e){if("error"===e.type)return this.trackGoogleOneTapAction("error."+e.errorType),this.handleEmptyCredentials(),void this.props.dispatch({type:"GOOGLE_ONE_TAP_FAILED",payload:{}});const t="ui_change"===e.type?e.uiActivityType:e.userActivityType;this.trackGoogleOneTapAction(`activity.${e.type}.${t}`),"close_prompt"===t&&this.handleEmptyCredentials()}}handleEmptyCredentials(){this.props.handleEmptyCredentials&&this.props.handleEmptyCredentials()}hide(){this.hideConfirmationDialog()}trackSignupLoginEvent(e,t){const{viewer:n}=this.props;n.isAuth?Object(_.b)(e,{login_state:n.isLimitedLogin?2:1,signup_login_method:t}):Object(_.b)(e,{signup_login_method:t})}login(e){const{pageContext:t}=this.props,n={container:f.g,hybridTier:null==t?void 0:t.hybridTier,page:null==t?void 0:t.pageType};return Object(d.a)(e,Object(s.a)(),n)}showConfirmationDialog(e){const{container:t}=this.props;let n;n="InspiredWallSignup"===t?D:"login_page"===t?A:e.autologin?D:P,this.setState({googleOpenId:e.google_open_id_token,confirmationDialogStep:n})}hideConfirmationDialog(){this.setState({confirmationDialogStep:void 0})}showLoading(){this.setState({loading:!0})}hideLoading(){this.setState({loading:!1})}render(){const{requestContext:e}=this.props,{showAccountSuspended:t}=this.state;if(e.isBot)return null;if(t)return Object(O.jsx)(h.a,{onClose:()=>this.setState({showAccountSuspended:!1})});const{confirmationDialogStep:n}=this.state;if(n){const e="top";return this.renderGoogleConfirmationDialog(e,n)}return null}}var H=Object(W.c)((function(e){const t=Object(U.b)("web_unauth_safari_one_tap");return Object(O.jsx)(G,{...e,activateSafariOneTapExp:t,dispatch:Object(o.useDispatch)(),requestContext:Object(T.d)(),viewer:Object(m.a)()})}));function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Y extends i.Component{constructor(...e){super(...e),q(this,"state",{showGoogleOneTap:!0}),q(this,"hide",()=>{this.setState({showGoogleOneTap:!1})}),q(this,"reportFailureToShow",()=>{this.props.handleFailureToShow&&this.props.handleFailureToShow()})}render(){const{showGoogleOneTap:e}=this.state,{container:t,handleSignupConfirmed:n,handleLoginError:i,handleLoginWithMfa:o,handleSignupError:r,handleShowLogin:a,nextUrl:s,shouldHide:c}=this.props;return e?Object(O.jsx)(H,{container:t,handleEmptyCredentials:this.hide,handle2FALogin:e=>{this.hide(),o(e)},handleLoginError:e=>{this.hide(),i(e)},handleSignupConfirmed:(e,t,i)=>{this.hide(),n&&n(e,t,i)},handleSignupError:()=>{this.hide(),r()},handleShowLogin:()=>{this.hide(),a()},nextUrl:s,reportFailureToShow:this.reportFailureToShow,shouldHide:c}):null}}q(Y,"defaultProps",{container:"unknown",shouldHide:!1});t.default=Y},TqAR:function(e,t,n){n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"k",(function(){return u})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return h})),n.d(t,"j",(function(){return g})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return b}));var i=n("F2ZA");n("n6mq");const o=408,r=16,a=2*(o+r),s=766,c=1.532,l=45,d=e=>{const{article_creator_user:t,display_type:n,feed_source:o,header_pin_id:r,id:a,title:s,video_pin:c}=e;switch(n){case 0:case 1:return s?Object(i.e)(o,s,a):"";case 8:return null!=t&&t.username?`/${encodeURIComponent(t.username)}/`:"";case 3:case 6:return r?`/pin/${r}/`:"";case 2:return null!=c&&c.id?`/pin/${c.id}/`:"";default:return""}},u=e=>"todayarticle"===e.type,p=e=>"story"===(null==e?void 0:e.type)&&"today_tab_footer"===(null==e?void 0:e.story_type),h=e=>"story"===(null==e?void 0:e.type)&&("today_tab_header"===(null==e?void 0:e.story_type)||"today_tab_date_header"===(null==e?void 0:e.story_type)),g=e=>Array.isArray(e)&&e.length>0&&e.every(e=>"story"===e.type),m=e=>e.height/e.width,f=["736x","236x","170x"],b=e=>{for(const n of f){var t;if(null!==(t=e.images)&&void 0!==t&&t[n])return e.images[n]}return null}},Tr1f:function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("vcX7");function o(e){var t;return{defaultStyle:0,fontFamily:null!==(t=e.name)&&void 0!==t?t:"",fontGroup:i.c,fontOverrides:{letterSpacing:e.letter_spacing,lineHeight:e.line_height},format:"truetype",id:e.id,styles:[{fontStyle:"",fontUrl:e.url,fontWeight:"normal",name:"normal"}]}}},U4W0:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(t.HandlerRole||(t.HandlerRole={}))},UDft:function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var i=n("RNo4");const o="adcredits",r=e=>e&&e.search&&Object(i.k)(e.search).utm_medium===o,a=e=>e&&e.search&&Object(i.k)(e.search).utm_medium?"utm_medium="+Object(i.k)(e.search).utm_medium:""},UJTY:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("q1tI"),o=n("/acK"),r=n("493B");t.useDragLayer=function(e){var t=o.useDragDropManager().getMonitor(),n=r.useCollector(t,e),a=n[0],s=n[1];return i.useEffect((function(){return t.subscribeToOffsetChange(s)})),i.useEffect((function(){return t.subscribeToStateChange(s)})),a}},US8k:function(e,t,n){function i(e){const t=Math.round(e/1e3),n=t%60;return Math.floor(t/60)+":"+(n<10?"0":"")+n}n.d(t,"a",(function(){return i}))},"Up+5":function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("A0Lk"),o=n.n(i),r=n("7w6Q");function a(e){if("undefined"==typeof window||!document.head)return r.a.increment("load_fonts.failure",1,{failure_reason:"window undefined"}),Promise.reject(new Error("Window is undefined or no head on the document. Unable to load fonts"));const t=document.head,n=[];return e.forEach(e=>{e.styles.forEach(i=>{var r;let a=document.querySelector(`#${null!==(r=e.fontFamily)&&void 0!==r?r:""}-${i.name}`);if(!a){var s;if(a=document.createElement("style"),a.setAttribute("id",`${null!==(s=e.fontFamily)&&void 0!==s?s:""}-${i.name}`),t.appendChild(a),e.format&&i.fontUrl&&a&&a.sheet){var c;a.sheet.insertRule(`\n            @font-face {\n              font-family: "${null!==(c=e.fontFamily)&&void 0!==c?c:""}";\n              font-style: "${i.fontStyle}";\n              font-weight: "${i.fontWeight}";\n              src: url("${i.fontUrl}") format("${e.format}");\n            }\n          `,0)}n.push(new o.a(e.fontFamily,{style:i.fontStyle,weight:i.fontWeight}).load())}})}),Promise.all(n).then(()=>{Promise.resolve()}).catch(e=>{r.a.increment("load_fonts.failure",1,{failure_reason:"unsuccessful load"}),Promise.reject(e)})}},VCRF:function(e,t,n){var i=n("q1tI"),o=n("XUe8"),r=n("Ye/N"),a=n("oRao"),s=n("vvax"),c=n("U4JR"),l=n("T5j3"),d=n("eo+c"),u=n("n6mq"),p=n("nKUr");function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends i.PureComponent{constructor(...e){super(...e),h(this,"state",{displayAggregationModal:!1}),h(this,"showAggregationModal",()=>{this.props.disableModal||(this.setState({displayAggregationModal:!0}),Object(c.b)(101,{view:3,viewParameter:139,component:13458,element:11435,objectId:this.props.pinId}))}),h(this,"hideAggregationModal",()=>{this.setState({displayAggregationModal:!1})})}render(){const{displayAggregationModal:e}=this.state,{isStoryPin:t,pinId:n,reactionByMe:i,reactionCounts:c}=this.props,h=c?Object(l.a)(c):null,g=c?Object(l.b)(c):0,m=i&&g>=2?Object(s.b)(r.a.ngettext("You and {{ count }} other","You and {{ count }} others",g-1,"specifies the amount of people who have reacted to a pin","specifies the amount of people who have reacted to a pin"),{count:Object(p.jsx)(a.a,{value:g-1,shortform:!0,shortformMaximumFractionDigits:1})}):Object(p.jsx)(a.a,{value:g,shortform:!0,shortformMaximumFractionDigits:1}),f=!!h&&h.length>0&&h.map((e,t)=>{const n=d.b[e],{gridAsset:i}=Object(d.a)(n);return Object(p.jsx)(u.f,{dangerouslySetInlineStyle:{__style:{marginRight:2}},children:Object(p.jsx)(u.f,{dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${i})`,backgroundPosiiton:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}},height:19,width:19})},t)}),b=!!f&&Object(p.jsx)(u.f,{display:"inlineBlock",children:Object(p.jsxs)(u.f,{alignItems:"center",direction:"row",display:"flex",height:t?"auto":19,paddingY:t?0:6,dangerouslySetInlineStyle:{__style:{cursor:"pointer"}},children:[Object(p.jsx)(u.f,{direction:"row",display:"flex",children:f}),Object(p.jsx)(u.f,{paddingX:1,children:Object(p.jsx)(u.cb,{children:m})})]})});return Object(p.jsxs)(u.f,{children:[Object(p.jsx)("div",{onClick:this.showAggregationModal,onKeyDown:this.showAggregationModal,role:"presentation",children:b}),e&&g&&Object(p.jsx)(o.a,{aggregatedReactions:f,onDismiss:this.hideAggregationModal,pinId:n,totalReactionCount:g})]})}}t.a=g},VbOu:function(e,t,n){n.d(t,"a",(function(){return l}));var i=n("q1tI"),o=n("EC51"),r=n("7l+q"),a=n("n6mq"),s=n("nKUr");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends i.PureComponent{constructor(...e){super(...e),c(this,"parseText",()=>{const{tags:e,taggedUsers:t,text:n,size:i}=this.props;if(!e.length||!t||e.length!==t.length)return this.renderRegularText(n,"1");let o=0,r=[];return e.forEach((e,t)=>{const i=n.substring(o,e.offset);o=e.offset+e.length;const a=n.substring(e.offset,o);r=r.concat(this.renderRegularText(i,t+"a")).concat(this.renderTaggedText(a,t,t+"b"))}),r=r.concat(this.renderRegularText(n.substring(o),"2")),Object(s.jsx)(a.cb,{inline:!0,size:i,overflow:"normal",children:r})}),c(this,"renderRegularText",(e,t)=>Object(s.jsx)(a.cb,{inline:!0,size:this.props.size,overflow:"normal",children:this.props.allowLink?Object(s.jsx)(r.a,{children:e}):e},t)),c(this,"renderTaggedText",(e,t,n)=>Object(s.jsx)(a.cb,{color:"blue",inline:!0,size:this.props.size,weight:"bold",overflow:"normal",children:Object(s.jsx)(o.a,{inline:!0,href:"/"+this.props.taggedUsers[t].username,children:e})},n))}render(){return Object(s.jsx)("span",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:this.parseText()})}}c(l,"defaultProps",{allowLink:!0,size:"md"})},Vbul:function(e,t,n){n.d(t,"a",(function(){return R}));var i=n("q1tI"),o=n("FDmi"),r=n("Ye/N"),a=n("EC51"),s=n("vvax"),c=n("28DW"),l=n("n6mq"),d=n("nKUr");const u={demiBold:{fontWeight:"600"}},p=()=>{Object(c.h)("click_best_pin_board",!0)},h=()=>{Object(c.h)("click_best_pin_profile",!0)},g=e=>{const{pinner:t}=e,{username:n,full_name:i}=t,r=t.image_medium_url||t.image_small_url,a=`/${n}/`;return Object(d.jsx)("a",{href:a,onClick:h,children:Object(d.jsx)(o.a,{size:"sm",src:null!=r?r:"",name:null!=i?i:"",outline:!0})})},m=e=>{const{board:t,pinner:n}=e,{name:i,privacy:o,url:c}=t,{username:g,full_name:m}=n,f=`/${g}/`,b=Object(d.jsx)("a",{href:f,onClick:h,children:Object(d.jsx)(l.cb,{inline:!0,size:"md",children:Object(d.jsx)("span",{style:u.demiBold,children:m})})},"pinner");return"protected"===o?Object(s.b)(r.a._("{{ pinnerName }} saved this Pin","Showing who saved this pin, but not which board (private board), on closeup","Showing who saved this pin, but not which board (private board), on closeup"),{pinnerName:b}):Object(s.b)(r.a._("{{ pinnerName }} saved to {{ boardName }}","Showing who saved this pin to which board on closeup","Showing who saved this pin to which board on closeup"),{pinnerName:b,boardName:Object(d.jsx)(a.a,{href:null!=c?c:"",onClick:p,children:Object(d.jsx)(l.cb,{inline:!0,size:"md",children:Object(d.jsx)("span",{style:u.demiBold,children:i})})},"board")})};var f=e=>{const{pin:t}=e,{pinner:n={},board:i={}}=t;return Object(d.jsxs)(l.f,{display:"flex",direction:"row",alignItems:"center",marginTop:3,"data-test-id":"pin-attribution",children:[Object(d.jsx)(g,{pinner:n}),Object(d.jsx)(l.f,{marginEnd:2}),Object(d.jsx)(l.cb,{size:"md",children:Object(d.jsx)(m,{board:i,pinner:n})})]})},b=n("U4JR"),_=n("7jH2"),j=n("AsgO");function y({pageType:e,pinCreditPrefix:t,pin:n,pinLink:i}){if(!n.domain||"Uploaded by user"===n.domain)return null;const o="topic"!==e.page||e.isAuth?"sm":"md";return Object(d.jsx)(l.f,{display:"flex",flex:"none",justifyContent:"start",marginBottom:2,children:Object(d.jsx)("a",{href:i,rel:"nofollow noopener noreferrer",target:"_blank",onClick:()=>{"topic"===e.page?Object(c.h)("click_topic_best_pin_link"):Object(b.b)(12,{objectId:n.id,view:3,component:85,viewParameter:Object(_.d)(Object(_.q)({pin:n}))})},children:Object(d.jsx)(l.cb,{size:o,children:Object(s.b)(r.a._("{{ pinCreditPrefix }} {{ pinCredit }}",'Tells the user where the pin is from in the form of "Saved from <website>"','Tells the user where the pin is from in the form of "Saved from <website>"'),{pinCreditPrefix:t,pinCredit:Object(d.jsx)(l.cb,{inline:!0,size:o,weight:"bold",children:"topic"===!e.page?Object(d.jsxs)("span",{onMouseOver:j.a,onMouseLeave:j.b,onFocus:j.a,onBlur:j.b,children:[" ",n.domain]}):n.domain},"pinLinkDomain")})})})})}var v=n("Hrat"),O=n("oRao"),x=n("nj6m"),w=n("1L7e"),S=n("QCxT"),C=n("QLqj"),k=n("QAzJ"),T=n("MNxV"),E=n("YxyV"),I=n("wzxk");const P={fontWeight:"normal",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical"},D={fontWeight:"600",fontSize:"28px",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},A=e=>{let t="";if(e.rich_metadata&&e.rich_metadata.article&&e.rich_metadata.article.date_published)return t;const n=(e=>{let t=null;e.last_repin_date&&(t=new Date(e.last_repin_date));let n=null;return e.created_at&&(n=new Date(e.created_at)),t?n?t>n?t:n:t:n})(e);if(n&&n.getFullYear()===(new Date).getFullYear()){const i=new Set(["film_music_books","art","home_decor","food_drink","womens_fashion","travel","weddings","hair_beauty","holidays_events","mens_fashion","products","celebrities","technology"]),o=e.category;i.has(o)&&(t=n?Object(d.jsx)(T.b,{value:n,dateFormatType:T.a.LONG_MONTH_YEAR,useUTC:!1}):"")}return t},L=e=>{var t;if(null!==(t=e.aggregate_rating)&&void 0!==t&&t.rating_value&&e.aggregate_rating.review_count){var n,o,r;const t="number"==typeof(null===(n=e.cook_times)||void 0===n||null===(o=n.cook)||void 0===o?void 0:o.m)&&"number"==typeof(null===(r=e.cook_times.prep)||void 0===r?void 0:r.m)?e.cook_times.cook.m+e.cook_times.prep.m+" minutes · ":"";return Object(d.jsxs)(i.Fragment,{children:[Object(d.jsx)(x.a,{rating:e.aggregate_rating.rating_value,max_rating:e.aggregate_rating.best_rating,width:12},e.aggregate_rating.rating_value),Object(d.jsx)(l.cb,{inline:!0,size:"md",children:` ${e.aggregate_rating.review_count} · ${t}`})]})}return null};function R(e){var t;const{pin:n,renderAttribution:o,renderVaseTags:a,viewportSize:s,pageType:c,showSignupModal:u}=e,{image:p,link:h,prefixText:g,subtitle:m,title:b,pinCreditPrefix:_,pinLink:j}=Object(v.a)(n),{description:x,vaseAnnotations:R,annotationsWithLinks:M}=Object(E.c)(n),F="wide"===s,N=Object(k.b)("mweb_trim_grid_title_ff")().anyEnabled;let B=Object(I.d)(n,R,M,N);(n.grid_title||"").trim()&&B!==n.grid_title&&(B=N?Object(I.f)(n.grid_title,200):n.grid_title);const U=Object(S.a)(n)&&(null===(t=n.rich_metadata)||void 0===t?void 0:t.recipe),z=!!((W=n).rich_metadata&&W.rich_metadata.article&&W.rich_metadata.article.date_published)&&((e,t)=>{var n,i,o;const r=new Date(null!==(n=null===(i=(null!==(o=e.rich_metadata)&&void 0!==o?o:{}).article)||void 0===i?void 0:i.date_published)&&void 0!==n?n:Date.now()),a=r.getTime(),s=(new Date).getTime();return null==t||s-a<=31536e6*t?Object(d.jsx)(T.b,{value:r,dateFormatType:T.a.LONG_MONTH_YEAR,useUTC:!1}):""})(n,2);var W;const V=A(n)||z,G="closeup"===c.page,H=!c.isAuth&&"topic"===c.page,q=H?"12px":"14px",Y=G?Object(d.jsx)("h1",{style:D,"data-test-id":"UnauthBestPinCardTitle",children:B}):Object(d.jsx)("h2",{style:D,"data-test-id":"UnauthBestPinCardTitle",children:B}),K=Object(k.b)("web_unauth_save_plp");let $=null,X=!1;if(u){const{anyEnabled:e,group:t}=K();$=t,X=e&&!(t||"").startsWith("enabled_above_full")}const J=Object(d.jsxs)(l.f,{display:"flex",alignItems:"center",direction:"row",justifyContent:"between",marginTop:2,children:[o?o({image:p,link:h,prefixText:g,subtitle:m,title:b}):Object(d.jsx)(f,{pin:n}),Object(d.jsx)(l.f,{display:"flex",justifyContent:"end",children:!H&&(!n.repin_count||n.repin_count<1?null:Object(d.jsxs)(l.f,{alignItems:"center",display:"flex",children:[Object(d.jsx)(l.v,{icon:"pin",accessibilityLabel:"Pin",color:"gray",size:12}),Object(d.jsx)(l.cb,{color:"darkGray",inline:!0,size:"sm",children:Object(d.jsx)(O.a,{value:n.repin_count,shortform:!0,shortformMaximumFractionDigits:1})})]}))})]}),Z=Object(d.jsx)(y,{pageType:c,pin:n,pinCreditPrefix:($||"").startsWith("enabled_full")?"":_,pinLink:j}),Q=Object(d.jsxs)(i.Fragment,{children:[Object(d.jsxs)(l.f,{alignItems:"center",color:"lightGray",display:"flex",height:44,paddingX:4,dangerouslySetInlineStyle:{__style:{borderRadius:"12px 0px 0px 12px"}},children:[Object(d.jsx)(l.cb,{size:"md",children:r.a._("Choose board","unauthChooseBoard","Choose board button next to save button")}),Object(d.jsx)(l.f,{flex:"none",marginStart:5,children:Object(d.jsx)(l.v,{accessibilityLabel:"",color:"darkGray",icon:"arrow-down",size:12})})]}),Object(d.jsx)(l.f,{alignItems:"center",color:"red",display:"flex",height:44,paddingX:4,dangerouslySetInlineStyle:{__style:{borderRadius:"0px 12px 12px 0px"}},children:Object(d.jsx)(l.cb,{color:"white",size:"md",weight:"bold",children:r.a._("Save","unauthSaveButton","Saved state text on save button")})})]});return Object(d.jsx)(l.f,{alignContent:"between","data-test-id":"UnauthBestPinCardBodyContainer",direction:"column",display:"flex",padding:8,position:"relative",width:"100%",flex:"grow",children:Object(d.jsxs)(l.f,{position:"relative",direction:"column",display:"flex",flex:"grow",children:[u&&($||"").startsWith("enabled_button_only")&&Object(d.jsxs)(l.f,{display:"flex",alignItems:"center",marginBottom:2,children:[Z,Object(d.jsx)(l.f,{position:"absolute",right:!0,minWidth:48,children:Object(d.jsx)(l.g,{accessibilityLabel:r.a._("Save button","saveButton.saved.label","Save state label on save button"),text:r.a._("Save","unauthSaveButton","Saved state text on save button"),size:"lg",color:"red",onClick:()=>{u("signup",{source:"saveButtonExp",container:"save"}),C.c.setItem("unauthDesktopSavePinId",n.id)}})})]}),u&&($||"").startsWith("enabled_full")&&Object(d.jsxs)(l.f,{display:"flex",alignItems:"center",marginBottom:2,children:[Z,Object(d.jsx)(l.bb,{onTap:()=>{u("signup",{source:"saveButtonExp",container:"save"}),C.c.setItem("unauthDesktopSavePinId",n.id)},rounding:2,children:Object(d.jsx)(l.f,{alignItems:"center",display:"flex",justifyContent:"end",children:Q})})]}),u&&($||"").startsWith("enabled_above_full")&&Object(d.jsx)(l.f,{height:44,marginBottom:3,children:Object(d.jsx)(l.bb,{onTap:()=>{u("signup",{source:"saveButtonExp",container:"save"}),C.c.setItem("unauthDesktopSavePinId",n.id)},rounding:2,children:Object(d.jsx)(l.f,{alignItems:"center",display:"flex",right:!0,position:"absolute",children:Q})})}),!X&&Z,Object(d.jsx)(l.f,{display:"flex",direction:"row",justifyContent:"between",children:Object(d.jsx)(l.f,{display:"flex",overflow:"hidden",marginEnd:F?0:3,marginTop:F?3:0,children:B&&Y})}),V?Object(d.jsx)(l.f,{marginTop:1,children:Object(d.jsx)(l.cb,{color:"gray",children:V})}):null,x&&Object(d.jsx)(l.f,{display:"flex",overflow:"hidden",marginTop:3,children:G?Object(d.jsxs)("h2",{style:{...P,fontSize:q},children:[U&&L(U),x]}):Object(d.jsxs)("h3",{style:{...P,fontSize:q},children:[U&&L(U),x]})}),"closeup"===c.page&&J,U&&Object(d.jsx)(w.a,{marginOverrides:U?{outerMarginTop:32,ingredientMarginBottom:4}:null,recipeProps:{recipe:{categorizedIngredients:U.categorized_ingredients,name:U.name,image:Object(E.d)(n)}}}),a&&a(M||[]),"closeup"!==c.page&&J]})})}},WR05:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("kmwA"),o=n("yweb"),r=n("qpbZ"),a=n("nKUr");function s({dark:e,large:t,noContainer:n,dynamicTopMargin:s,disableWordBreak:c}){const l=Object(o.c)();let d={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",fontSize:"11px",fontWeight:"normal",textAlign:"center",WebkitTransition:"opacity .2s linear",transition:"opacity .2s linear",...e?{color:"#767676",width:"224px"}:{color:"rgba(255,255,255,0.9)",lineHeight:"150%",margin:"10px auto",textShadow:"0 1px rgba(0,0,0,0.18)",width:"272px"}};t&&(d={...d,color:"#333",fontSize:"12px",lineHeight:"12px"});let u=n?{}:{marginTop:"16px"};return s&&(u={...u,marginTop:"3%"}),c&&(u={...u,hyphens:"none"}),Object(a.jsx)("div",{style:u,children:Object(a.jsx)("span",{className:e?"":"TermsOfService__light",style:d,children:Object(a.jsx)("span",{children:Object(r.b)(l._("By continuing, you agree to Pinterest's {{ tos }} and acknowledge you've read our {{ privacyPolicy }}","Agreement to legal texts for new users","Agreement to legal texts for new users"),{tos:Object(a.jsx)("a",{target:"_blank",rel:"noopener noreferrer","data-test-id":"tos",href:i.a.settings.POLICY_TERMS_PLAIN_URL,children:l._("Terms of Service","Link to TOS","Link to TOS")},"tos"),privacyPolicy:Object(a.jsx)("a",{target:"_blank",rel:"noopener noreferrer","data-test-id":"privacy",href:i.a.settings.POLICY_PRIVACY_PLAIN_URL,children:l._("Privacy Policy","Link to privacy policy","Link to privacy policy")},"privacy")})})})})}},WgbR:function(e,t,n){n.d(t,"a",(function(){return u}));var i=n("uVIr"),o=n("eOdZ"),r=n("KFEb"),a=n("prCw"),s=n("tiNQ"),c=n("BJm1"),l=n("xmd6");const d={[l.a.aggregatedComment]:"AggregatedCommentReplyResource",[l.a.pin]:"AggregatedCommentResource",[l.a.didIt]:"DidItCommentsResource"};function u({fromUnifiedComment:e,objectId:t,objectType:n,pinId:l,replyToCommentId:u,tags:p,text:h,updateParentCommentCount:g}){return async m=>{const f=d[n],b={objectId:t,pinId:l,tags:p,text:h,replyToCommentId:u},_="pin"===n&&e?r.a.UNIFIED_COMMENTS:r.a.AGGREGATED_COMMENTS,j=await o.a.create(f,b).callCreate({showError:!1}),y=j.resource_response.data;return m(function(e,t){return{type:"AGGREGATED_COMMENT_CREATED",payload:{parentId:e,aggregatedComment:t}}}(t,y)),m(Object(i.a)({feedType:_,feedId:t,itemIds:[y.id],itemType:y.type})),g&&m("pin"===n&&l?Object(a.a)(l,1):"aggregatedComment"===n?Object(s.a)(t,1):Object(c.e)(t,1)),y.id||j}}},X6C7:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("QWfI"),o=function(){function e(e){this.isDisposed=!1,this.action=i.isFunction(e)?e:i.noop}return e.isDisposable=function(e){return e&&i.isFunction(e.dispose)},e._fixup=function(t){return e.isDisposable(t)?t:e.empty},e.create=function(t){return new e(t)},e.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)},e.empty={dispose:i.noop},e}();t.Disposable=o},XUe8:function(e,t,n){n.d(t,"a",(function(){return v}));var i=n("Ye/N"),o=n("TgLd"),r=n("q1tI"),a=n("DzJC"),s=n.n(a),c=n("FDmi"),l=n("qD10"),d=n("eo+c"),u=n("n6mq"),p=n("nKUr");var h=function({user:e,viewer:t}){const{full_name:n,image_medium_url:o,domain_url:r,domain_verified:a,reactionType:s,username:h}=e,g=t&&!!t.id&&t.id===e.id,m=d.b[s],{staticAsset:f}=Object(d.a)(m);return Object(p.jsxs)(u.f,{display:"flex",justifyContent:"between",paddingX:6,marginTop:6,children:[Object(p.jsx)(l.a,{to:`/${h}/`,children:Object(p.jsxs)(u.f,{display:"flex",alignItems:"center",direction:"row",children:[Object(p.jsx)(u.f,{width:40,children:Object(p.jsx)(c.a,{accessibilityLabel:"",name:n,src:o})}),Object(p.jsxs)(u.f,{display:"flex",direction:"column",paddingX:2,children:[Object(p.jsx)(u.cb,{weight:"bold",children:n}),g&&Object(p.jsx)(u.cb,{size:"md",children:i.a._("That's you","Indicates that the viewer is the person in the list","Indicates that the viewer is the person in the list")}),!g&&r&&a&&Object(p.jsx)(u.cb,{size:"md",children:r})]})]})}),Object(p.jsx)(u.f,{padding:2,display:"flex",alignItems:"center",children:Object(p.jsx)(u.f,{width:26,height:26,dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${f})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"}}})})]})},g=n("v/Q4"),m=n("U4JR"),f=n("w70y"),b=n("N84b");function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class j extends r.Component{constructor(...e){super(...e),_(this,"setRef",e=>{e&&!this.list&&(this.list=e.parentElement,this.list&&this.list.addEventListener("scroll",this.handleScroll))}),_(this,"fetchMore",()=>{const{feedResource:e}=this.props;e.isFetching||(e.isAtEnd?window.removeEventListener("scroll",this.handleScroll):e.fetchMore())}),_(this,"handleScroll",s()(()=>{const{feedResource:e}=this.props;if(e.isFetching||e.isAtEnd)return;const t=Object(b.a)(this.list);Object(b.c)(this.list)-Object(b.d)(this.list)-50<t&&this.fetchMore()},10))}componentDidMount(){const{logView:e=!0}=this.props;e&&Object(m.b)(13,{view:266,viewParameter:3312})}componentWillUnmount(){this.list&&this.list.removeEventListener("scroll",this.handleScroll)}render(){const{feedResource:{data:e,isFetching:t},viewer:n}=this.props;if(e&&e.length>0){const o=e.map(e=>{const{user:t,reaction_type:n}=e;return{...t,reactionType:n}});return Object(p.jsxs)(u.f,{marginBottom:6,maxHeight:400,ref:this.setRef,children:[o.map(e=>Object(p.jsx)(h,{user:e,viewer:n},e.id)),t&&Object(p.jsx)("div",{className:"loadingSpinner",children:Object(p.jsx)(u.U,{accessibilityLabel:i.a._("Loading user list","Accessibility lable for user list spinner","Accessibility lable for user list spinner"),show:!0})})]})}return Object(p.jsx)("div",{className:"loadingSpinner",children:Object(p.jsx)(u.U,{accessibilityLabel:i.a._("Loading user list","Accessibility lable for user list spinner","Accessibility lable for user list spinner"),show:!0})})}}function y(e){const t=Object(g.a)(),n=Object(f.a)({name:"ReactionsResource",options:{pin_id:e.pinId},allowStale:!1});return Object(p.jsx)(j,{...e,feedResource:n,viewer:t})}function v({pinId:e,aggregatedReactions:t,totalReactionCount:n,onDismiss:r,logView:a}){const s=Object(p.jsx)(u.f,{display:"flex",justifyContent:"center",children:Object(p.jsxs)(u.f,{display:"flex",direction:"row",alignItems:"center",height:19,paddingY:6,children:[Object(p.jsx)(u.f,{display:"flex",direction:"row",children:t}),Object(p.jsx)(u.f,{paddingX:1,children:Object(p.jsx)(u.cb,{weight:"bold",children:n})})]})});return Object(p.jsx)(o.b,{accessibilityModalLabel:i.a._("Users who have reacted to this.","Label for a modal showing a list of users who have reacted to a pin","Label for a modal showing a list of users who have reacted to a pin"),heading:s,onDismiss:r,size:"sm",allowScroll:!0,children:Object(p.jsx)(y,{pinId:e,logView:a})})}},XhR6:function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r}));const i={PINS:"pins",PINS_BUYABLE:"buyable_pins",PINS_MINE:"my_pins",PINS_VIDEO:"videos",BOARDS:"boards",USERS:"users",IDEA_PINS:"idea_pins"},o=e=>{switch(e){case i.PINS:return 43;case i.PINS_MINE:return 107;case i.PINS_BUYABLE:return 254;case i.PINS_VIDEO:return 3306;case i.BOARDS:return 44;case i.USERS:return 45;default:return null}},r=e=>{switch(e){case i.PINS:return 60;case i.PINS_MINE:return 63;case i.PINS_BUYABLE:return 3800;case i.PINS_VIDEO:return 64;case i.BOARDS:return 61;case i.USERS:return 62;default:return null}}},XnPw:function(e,t){e.exports="https://s.pinimg.com/webapp/bg_business_account_convert-e8e67ee3.jpg"},YWD0:function(e,t,n){var i=n("juJw"),o=n("yweb"),r=n("iMWs"),a=n("Zswh"),s=n("n6mq"),c=n("nKUr");const l=(e,t)=>{let n={};if(e){const{pinData:i,viewData:o}=e;n={unauth_click_pin_id:i.id,unauth_click_pin_image_signature:i.imageSignature},3===t?n={...n,unauth_page_pin_id:o.id,unauth_page_pin_image_signature:o.imageSignature}:5===t&&(n={...n,unauth_page_board_id:o.id})}return n};t.a=({clickLoggingOptions:e,domain:t,link:n,onClick:d})=>{var u;const p=null===(u=Object(r.b)())||void 0===u?void 0:u.logging,h=Object(o.c)(),g=Object(a.a)(),m=()=>[{event_type:8948},{event_type:12},{event_type:101,element:0,aux_data:l(e.unauthRankingLoggingData,null==p?void 0:p.viewType)}].map(t=>({component:0,element:162,view_type:null==p?void 0:p.viewType,view_parameter:null==p?void 0:p.viewParameter,aux_data:e.auxData,object_id_str:e.auxData.objectId,...t}));return Object(c.jsx)(s.bb,{onTap:({event:e})=>{e.stopPropagation(),m().forEach(e=>g(e)),d(e)},children:Object(c.jsxs)(s.f,{marginBottom:4,marginStart:4,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",left:!0,bottom:!0,children:[Object(c.jsx)(s.f,{marginEnd:1,children:Object(c.jsx)(s.v,{size:9,icon:"arrow-up-right",color:"white",accessibilityLabel:h._("Link","unauth.pin.domain.link","Link to take them to the source of the iamge")})}),Object(c.jsx)("a",{href:n,onClick:e=>{e.stopPropagation(),m().forEach(e=>g(e)),d(e)},rel:"nofollow noopener noreferrer",target:"_blank",type:"button",children:Object(c.jsx)(s.cb,{size:"md",color:"white",inline:!0,weight:"bold",truncate:!0,children:Object(i.a)(t,27)})})]})})}},YtZM:function(e,t,n){var i=n("q1tI"),o=n("jfLK"),r=n("kJuv"),a=n("sv3x"),s=n("StuW"),c=n("kmwA"),l=n("tvGs"),d=n("28DW"),u=n("yweb"),p=n("HU+g"),h=n("aOj9"),g=n("iMWs"),m=n("pLLR"),f=n("qpbZ"),b=n("c50B"),_=n("nKUr");t.a=function({container:e="unknown",code:t,creds:n,isAccountSwitch:j,nextUrlParam:y,email:v,onCodeChange:O,inputStyleOverrides:x,phoneNumberEnd:w,password:S}){const[C,k]=Object(i.useState)(null),[T,E]=Object(i.useState)(!1),{isAuthenticated:I,loginState:P,isRTL:D}=Object(m.d)(),A=Object(u.c)(),L=Object(g.b)(),{getLoginContext:R}=Object(h.d)(),M={container:e,hybridTier:null==L?void 0:L.hybridTier,page:null==L?void 0:L.pageType};Object(i.useEffect)(()=>{!j&&a.b.isFullyLoggedIn(I,P)&&a.b.handleRedirect(y)},[]);const F=A._("Continue");return Object(_.jsxs)("div",{style:{margin:"0 auto",marginTop:"45px",width:"268px"},children:[Object(_.jsx)("p",{style:{fontSize:"14px",margin:"24px 0",textAlign:D?"right":"left"},children:w?Object(f.b)(A._("Please check your phone with the number ending in {{ phoneNumberEnd }} for a code and enter it in the field below to log in."),{phoneNumberEnd:Object(_.jsx)("strong",{children:w},"phone")}):A._("Please check your phone for a code and enter it in the field below to log in.")}),Object(_.jsxs)("form",{method:"POST",noValidate:!0,onSubmit:e=>{e.preventDefault();const i=Object(s.a)(t,[Object(b.o)({message:A._("You missed a spot! Don't forget to add your verification code.")}),Object(b.l)({message:A._("Hmm...that doesn't look like a verification code.")})]);i?(k(i),Object(d.a)("unauth.login.error.CLIENT_ERROR.wrongcode.loginmfa")):(k(null),E(!0),Object(r.a)({...n||{username_or_email:v,password:S},mfa_token:t},R(),M).then(()=>{const e=window.location.pathname!==c.a.settings.PASSWORD_RESET_URL?window.location.pathname:"/";a.b.handleRedirect(y||e)},e=>{e.message?(k(e.message),E(!1)):(Object(p.a)(A._("Sorry! Something went wrong on our end.")),E(!1))}))},children:[Object(_.jsx)(l.b,{autoComplete:"off",focused:!0,hasError:!!C,id:"mfaCode",inputStyleOverrides:x,isRTL:!!D,name:"code",onChange:O,placeholder:A._("Verification code"),tooltip:C,type:"text",value:t}),Object(_.jsx)(o.b,{accessibilityLabel:F,className:"red SignupButton",loading:T,styleOverrides:{width:"100%"},type:"submit",children:Object(_.jsx)("div",{children:F})})]}),Object(_.jsx)("div",{style:{marginTop:"15px",color:"#333"},children:Object(f.b)(A._("If you didn't get it, we can {{ resendCode }}."),{resendCode:Object(_.jsx)("a",{href:"",onClick:e=>{e.preventDefault(),E(!0),Object(r.a)({...n||{username_or_email:v,password:S},mfa_resend:!0},R(),M).then(()=>{E(!1)},e=>{E(!1),e.message?k(e.message):Object(p.a)(A._("Sorry! Something went wrong on our end."))})},children:A._("resend the code")},"code")})})]})}},YuQ1:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("LTlA");t.NONE=[],t.ALL=[],t.NONE.__IS_NONE__=!0,t.ALL.__IS_ALL__=!0,t.areDirty=function(e,n){return e!==t.NONE&&(e===t.ALL||void 0===n||i.intersection(n,e).length>0)}},Z1P6:function(e,t,n){var i=n("q1tI"),o=n("NwVv"),r=n("kJuv"),a=n("sv3x"),s=n("aa0I"),c=n("1CXt"),l=n("n6mq"),d=n("4NNh"),u=n("HU+g"),p=n("28DW"),h=n("yweb"),g=n("Zswh"),m=n("J8m7"),f=n("VL22"),b=n("4NbJ"),_=n("aOj9"),j=n("QAzJ"),y=n("pLLR"),v=n("iMWs"),O=n("nKUr");function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class w extends i.Component{constructor(...e){super(...e),x(this,"buttonRef",Object(i.createRef)()),x(this,"onSignInCallback",(e,t)=>{const n={gplus_id_token:e.id_token,gplus_access_token:e.access_token,gplus_expires_at:e.expires_at};if(e.status.signed_in)Object(p.j)("unauth_web.google_connect.manual.success"),this.login(n).then((e={})=>{this.onLoginSuccess(e)},t=>{this.onLoginFailure(n,t,this.registerGplusUser.bind(this,e))});else{const t=e?e.error:"unknown";Object(p.j)("unauth_web.google_connect.failure."+String(t))}}),x(this,"onLoginFailure",(e,t,n)=>{const{i18n:i}=this.props;if(t.api_error_code===m.w)this.props.onLoginWithVoluntarilyDeactivated&&this.props.onLoginWithVoluntarilyDeactivated(t);else if(t.api_error_code===m.t)this.props.onLoginWithMfa&&this.props.onLoginWithMfa(e,t.data);else if(t.api_error_code===m.v){if(this.props.preventRegister)return void this.props.preventRegister("google");n()}else t&&t.api_error_code&&this.logGSIButton("failed_login."+t.api_error_code),t.api_error_code===m.x&&this.props.onLoginWithSuspended?this.props.onLoginWithSuspended():Object(u.a)(i._("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."))}),x(this,"onLoginSuccess",e=>{const{isAccountSwitch:t,showResponseMessageModal:n}=this.props;if(t&&e.resource_response&&e.resource_response.data&&e.resource_response.data.user){const t=e.resource_response.data.user;Object(o.a)(t,"google",this.props.container)}n?n(!1):a.b.handleRedirect(this.props.nextUrlParam||a.b.defaultSocialLoginRedirectUrl())}),x(this,"shouldRequireAge",()=>{const{requestContext:{country:e}}=this.props;return Object(f.d)(e)||Object(f.c)(e)}),x(this,"handleSignupSuccess",()=>{const{disablePostSignupNextUrl:e,nextUrlParam:t,showResponseMessageModal:n}=this.props;this.contextLogSignupLoginEvent(7487),n?n(!0):a.b.handleSignupRedirect(t,e)}),x(this,"handleSignupFailure",()=>{this.contextLogSignupLoginEvent(7488)})}componentDidMount(){const{activateWebInitializeGSIScriptExp:e,desktopCoreLoginContext:{viewer:t},googleOneTapInitialized:n}=this.props;"undefined"!=typeof window&&(window.googleOnSignInCallbacks?window.googleOnSignInCallbacks.push(this.onSignInCallback):window.googleOnSignInCallbacks=[this.onSignInCallback]),this.readyForConnect=!1,this.autoLogin=!1,window.googleConnectButtonContainer=this.props.container?this.props.container:"","UNAUTH"!==t.type||"UNAUTH"===t.type&&!n&&e().anyEnabled?(Object(b.d)(this.buttonRef,this.logGSIButton.bind(this),this.handleCredentialResponse.bind(this)),"UNAUTH"!==t.type||n||Object(p.j)("web.gsi_button_fix.load_and_initialize_gsi_script")):Object(b.e)(this.buttonRef,this.logGSIButton.bind(this))}componentDidUpdate(){const{googleOneTapInitialized:e}=this.props;e&&Object(b.e)(this.buttonRef,this.logGSIButton.bind(this))}shouldComponentUpdate(e){const{googleOneTapInitialized:t,tooltip:n}=this.props;return n!==e.tooltip||!t&&!!e.googleOneTapInitialized}logGSIButton(e){Object(p.j)("unauth_web.gsi_button."+e)}handleCredentialResponse(e){if(e){this.logGSIButton("btn_credential_received"),Object(p.j)("unauth.google_one_tap.success");const t={google_open_id_token:e.credential};this.login(t).then(e=>{this.onLoginSuccess(e)},n=>{this.onLoginFailure(t,n,this.registerUserByOpenId.bind(this,e.credential))})}else this.logGSIButton("empty_response");this.contextLogSignupLoginEvent(7534)}registerUserByOpenId(e){if(e){const t=Object(d.b)(e),n={google_open_id_token:e,first_name:t.given_name,last_name:t.family_name,image_url:t.picture};this.registerUser(n)}}componentWillUnmount(){if("undefined"!=typeof window&&window.googleOnSignInCallbacks){const e=window.googleOnSignInCallbacks.indexOf(this.onSignInCallback);e>=0&&window.googleOnSignInCallbacks.splice(e,1)}delete window.googleConnectButtonContainer}registerGplusUser(e){if(e){const t={gplus_code:e.code,gplus_id_token:e.id_token,gplus_redirect_uri:b.a,...void 0!==e.first_name?{gplus_first_name:e.first_name}:{}};this.registerUser(t)}}registerUser(e){const{desktopCoreLoginContext:{register:t},onSocialConnectVerified:n,pageContext:i}=this.props,o={container:window.googleConnectButtonContainer,hybridTier:null==i?void 0:i.hybridTier,page:null==i?void 0:i.pageType};n&&this.shouldRequireAge()?n(f.a.GOOGLE,{},{...e,...o}):t({...e,...o,recapToken:null}).then(this.handleSignupSuccess,this.handleSignupFailure)}contextLogSignupLoginEvent(e){const{desktopCoreLoginContext:{viewer:t},logContextEvent:n}=this.props;n({event_type:e,aux_data:{...Object(c.a)(t.type),signup_login_method:3}})}login(e){const{desktopCoreLoginContext:{getLoginContext:t},isAccountSwitch:n,pageContext:i}=this.props,o={container:window.googleConnectButtonContainer,hybridTier:null==i?void 0:i.hybridTier,page:null==i?void 0:i.pageType};return Object(r.a)(e,t(),o,n)}render(){const{tooltip:e}=this.props;return Object(O.jsxs)("div",{style:{position:"relative"},"data-test-id":"google-connect-button",children:[Object(O.jsx)(l.f,{height:44,children:Object(O.jsx)(l.f,{ref:this.buttonRef,position:"absolute",width:"100%"})}),!!e&&Object(O.jsx)("div",{style:{top:"12px",left:"100%",position:"absolute"},children:Object(O.jsx)(s.b,{message:e})})]})}}t.a=e=>{const t=Object(_.d)(),n=Object(g.a)(),i=Object(y.d)(),o=Object(v.b)(),r=Object(h.c)(),a=Object(j.b)("unauth_web_gsi_initialization_fix");return Object(O.jsx)(w,{...e,activateWebInitializeGSIScriptExp:a,desktopCoreLoginContext:t,googleOneTapInitialized:!!t.googleOneTapInitialized,i18n:r,logContextEvent:n,pageContext:o,requestContext:i})}},ZCgT:function(e,t,n){var i=n("tLB3"),o=1/0;e.exports=function(e){return e?(e=i(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},ZNVR:function(e,t,n){n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return _}));var i=n("7w6Q"),o=n("kmwA"),r=n("aldu"),a=n("looy"),s=n("0G5S");const c={dpm:["dpm_pixel_login_event","dpm_pixel_new_user_event"],dentsu:["dentsu_pixel_login_event","dentsu_pixel_new_user_event"]},l=o.a.settings.DATA_PLUS_MATH_EVENT_PIXEL;function d(e,t,n){i.a.increment(e+"_tracking_pixel",1,{event_category:t,event_name:"All"}),"All"!==n&&i.a.increment(e+"_tracking_pixel",1,{event_category:t,event_name:n})}const u=()=>(1e6*Math.random()).toString();function p(e){const t=document.createElement("iframe");for(const n in e)t.setAttribute(n,e[n]);return t}function h(e,t,n){const i=document.createElement("img"),{dpmUserIdString:o,dentsuUserIdString:s}=n;let c="";return o?c=Object(a.a)({origin:l,pixelEvent:t,userIdString:o}):s&&(c=Object(r.a)(s,t)),i.height=1,i.width=1,i.style.display="none",i.id=e,i.src=c,i}function g(e,t,n,i,o,r="",a,l){const u=document.getElementById(t),p=document.getElementById(n);async function g(e,t,n,i,o,r,a){const u=document.getElementById(i)?document.getElementById(i):document.createElement("div"),p=document.createElement("img");p.height=1,p.width=1,p.style.display="none",p.id=t,p.src=o,u&&(u.id=i,u.appendChild(p));for(const l of c[a]){let e=Object(s.a)(l);if(e){const t={dentsuUserIdString:"",dpmUserIdString:""};t["dentsu"===a?"dentsuUserIdString":"dpmUserIdString"]=r,e=e.split("#");const[n,i,o]=e,c=h(l,n,t);u&&(u.appendChild(c),d(a,i,o)),Object(s.b)(l)}}var g;u&&(null===(g=document.body)||void 0===g||g.insertBefore(u,document.body.firstChild),l())}u||(p&&p.remove(),"complete"===document.readyState&&g(0,t,0,i,o,r,a),window.addEventListener("load",function e(t,n,i,o,r,a,s){return t=>{g(0,n,0,o,r,a,s),window.removeEventListener(t,e)}}(0,t,0,i,o,r,a)))}function m(e,t,n,i,o){function r(e,t,n,i){const r=document.getElementById(n)?document.getElementById(n):document.createElement("div"),a=document.createElement("img");var s;(a.height=1,a.width=1,a.style.display="none",a.id=t,a.src=i,r)&&(r.id=n,r.appendChild(a),null===(s=document.body)||void 0===s||s.insertBefore(r,document.body.firstChild),o())}document.getElementById(t)||("complete"===document.readyState&&r(0,t,n,i),window.addEventListener("load",function e(t,n,i,o){return t=>{r(0,n,i,o),window.removeEventListener(t,e)}}(0,t,n,i)))}function f(e){const{pixelId:t,divId:n,url:i,eventCategory:o,eventName:r,onSendPixelSuccess:a}=e;let c;if(-1!==t.indexOf("login")?c="web_login":-1!==t.indexOf("new_user")&&(c="web_new_user"),c)Object(s.c)(t,`${c}#${o}#${r}`);else if("web_billing_complete"===t&&i){const e=document.getElementById(n)?document.getElementById(n):document.createElement("div"),t=document.createElement("img");var l;if(t.height=1,t.width=1,t.style.display="none",t.id="web_billing_complete",t.src=i,!document.getElementById(n))if(e)e.id=n,e.appendChild(t),null===(l=document.body)||void 0===l||l.insertBefore(e,document.body.firstChild),a&&a()}}function b(e,t,n,i,o,r){return a=>{f({pixelId:e,divId:t,url:n,eventCategory:i,eventName:o,onSendPixelSuccess:r}),window.removeEventListener(a,b)}}function _(e){const{pixelId:t,divId:n,url:i,eventCategory:o,eventName:r,onSendPixelSuccess:a}=e;"complete"===document.readyState?f({pixelId:t,divId:n,url:i,eventCategory:o,eventName:r,onSendPixelSuccess:a}):window.addEventListener("load",b(t,n,i,o,r,a))}},ZVWG:function(e,t,n){function i(e){const t=[];let n="";for(const i of e)if(n){const e=!!i.match(/\s/),o=!!n.match(/\s/);if(e===o)n+=i;else if(!o&&n.includes("-")){let e=0;for(let i=0;i<n.length;i+=1)"-"===n[i]&&(t.push(n.substring(e,i+1)),e=i+1);t.push(n.substring(e)),n=i}else t.push(n),n=i}else n=i;return n.length&&t.push(n),t}function o({font:e,fontSize:t,textList:n,width:o}){var r,a;if("undefined"==typeof document||!document.body||o<=0||t<=0)return[];const s=document.body,c=document.createElement("div");s.appendChild(c);const l=null!=(null===(r=e.fontOverrides)||void 0===r?void 0:r.letterSpacing)?e.fontOverrides.letterSpacing+"px":void 0,d=(null===(a=e.fontOverrides)||void 0===a?void 0:a.lineHeight)||1.1,u={letterSpacing:l,lineHeight:String(d),fontFamily:e.fontFamily,fontSize:t+"px",visibility:"hidden"};Object.assign(c.style,u);const p=document.createElement("div");p.style.display="inline",c.appendChild(p);const h=document.createTextNode("");p.appendChild(h);const g=[];let m="";const f=e=>{const t=e.trim();return h.textContent=t,{text:t,width:p.offsetWidth}},b=e=>{const t=!!e.match(/\s/),n=0===m.length;if(h.textContent=`${m}${e}`,p.offsetWidth>o)if(t)g.push(f(m)),m="";else if(n)for(const i of e)b(i);else g.push(f(m)),m="",b(e);else m+=e};for(const _ of null!=n?n:[]){0===_.length&&g.push(f(m));i(_).forEach(e=>b(e)),m.length&&(g.push(f(m)),m="")}return p.remove(),c.remove(),g}function r({boxHeight:e,boxWidth:t,font:n,startFontSize:i,text:r}){var a,s;if("undefined"==typeof document||!document.body)return{fontSize:i,lines:[]};const c=document.body,l=document.createElement("div");c.appendChild(l);const d=null==r?void 0:r.split(/\r?\n/g);let u=i;const p=null!=(null===(a=n.fontOverrides)||void 0===a?void 0:a.letterSpacing)?n.fontOverrides.letterSpacing+"px":void 0,h=(null===(s=n.fontOverrides)||void 0===s?void 0:s.lineHeight)||1.1,g={letterSpacing:p,lineHeight:String(h),fontFamily:n.fontFamily,fontSize:u+"px",position:"absolute",visibility:"hidden",width:t+"px"};Object.assign(l.style,g);const m=document.createElement("div");for(m.style.display="inline",l.appendChild(m),(null!=d?d:[]).forEach((e,t)=>{const n=document.createElement("span");n.style.wordBreak="break-word",m.appendChild(n),n.appendChild(document.createTextNode(e)),t!==(null!=r?r:"").length-1&&n.appendChild(document.createElement("br"))});(m.offsetHeight>e||m.offsetWidth>t)&&u>0;)u-=1,l.style.fontSize=u+"px";return m.remove(),l.remove(),{fontSize:u,lines:u>0?o({font:n,fontSize:u,textList:d,width:t}):[]}}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))},ZbwW:function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("EDqd");function o(e){const t=(((e||{}).rich_metadata||{}).products||[])[0]||{};return t&&t.additional_images&&t.additional_images.length>0?Object(i.a)(e.images,t,e.carousel_data&&e.carousel_data.index):e&&e.carousel_data}},a8hX:function(e,t,n){var i=n("TgLd"),o=n("4cpq"),r=n("n6mq"),a=n("nKUr");t.a=({accessibilityModalLabel:e,cancelButtonText:t,confirmButtonText:n,detail:s,heading:c,onConfirm:l,onDismiss:d})=>Object(a.jsx)(i.b,{accessibilityModalLabel:e,heading:c,onDismiss:d,size:"md",children:Object(a.jsxs)(r.f,{children:[Object(a.jsx)(r.f,{padding:4,children:Object(a.jsx)(r.cb,{children:s})}),Object(a.jsxs)(r.f,{display:"flex",justifyContent:"end",children:[Object(a.jsx)(r.f,{margin:2,children:Object(a.jsx)(o.a,{id:"confirm-modal-cancel",children:Object(a.jsx)(r.g,{onClick:d,text:t})})}),Object(a.jsx)(r.f,{margin:2,children:Object(a.jsx)(o.a,{id:"confirm-modal-confirm",children:Object(a.jsx)(r.g,{color:"red",onClick:()=>{l(),d()},text:n})})})]})]})})},aI4i:function(e,t,n){var i=n("q1tI"),o=n("gxu6"),r=n("BtEz"),a=n("h5nQ"),s=n("Z1P6"),c=n("EVO9"),l=n("kJuv"),d=n("hNZC"),u=n("eOdZ"),p=n("StuW"),h=n("rYoy"),g=n("WR05"),m=n("PVS1"),f=n("1CXt"),b=n("pGrQ"),_=n("AXUD"),j=n("HU+g"),y=n("QAzJ"),v=n("7Gov"),O=n("sv3x"),x=n("28DW"),w=n("yweb"),S=n("Zswh"),C=n("c50B"),k=n("J8m7"),T=n("VL22"),E=n("aOj9"),I=n("pLLR"),P=n("n6mq"),D=n("iMWs"),A=n("nKUr");function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const R=Object(i.lazy)(()=>n.e(660).then(n.bind(null,"pmSe"))),M="emailpwdstep";class F extends i.Component{constructor(e){super(e),L(this,"onLoginWithSuspended",()=>{const{loadingIndicatorCallback:e}=this.props;e(!1),this.setState({accountRecoveryModalType:v.a[k.x]})}),L(this,"onLoginWithVoluntarilyDeactivated",e=>{this.setState({googleValidationError:e.message})}),L(this,"setLoadingState",e=>{const{loadingIndicatorCallback:t,showSignupWelcomeLoadingFn:n}=this.props;return n&&!1===e&&n(!1),t(e)}),L(this,"handleButtonClick",e=>{"1"!==o.a("r_r")?(this.setState({facebookValidationError:null,googleValidationError:null,hideFBGoogleToolTip:!1}),this.handleEmailSignUp(e)):this.showUnderAgeError()}),L(this,"handleEmailChange",e=>{this.props.onEmailChange&&this.props.onEmailChange(e),this.setState({hideFBGoogleToolTip:!0})}),L(this,"handlePasswordChange",e=>{this.state.passwordValidationError&&this.setState({passwordValidationError:null}),this.props.onPasswordChange&&this.props.onPasswordChange(e)}),L(this,"handleEmailSignUp",e=>{Object(x.a)("unauth_email_validation_attempt");let t=Object(p.a)(this.props.email,this.emailValidators);if(t)this.setState({emailValidationError:t}),Object(x.a)("unauth.login.error.CLIENT_ERROR.malformemail."+M);else{const n=Object(p.a)(this.props.password,this.asciiValidators);n&&(this.setState({passwordValidationError:n}),Object(x.a)("unauth.login.error.CLIENT_ERROR.nonasciipwd."+M)),t=Object(p.a)(this.props.password,this.loginPasswordValidators),t?(this.setState({passwordValidationError:t}),Object(x.a)("unauth.login.error.CLIENT_ERROR.malformpwd."+M)):(this.setState({passwordValidationError:null}),this.validateEmailAvailable(e)),this.setState({emailValidationError:null}),this.props.setNameFromEmail&&this.props.setNameFromEmail()}}),L(this,"register",()=>{this.setLoadingState(!0);const{age:e,container:t,email:n,name:i,pageContext:r,password:a,requestContext:s,signupSource:c,register:l,i18n:d}=this.props,u={container:t,email:n,password:null!=a?a:"",age:null!=e?e:"",country:s.country,signupSource:c,first_name:null!=i?i:"",last_name:"",hybridTier:null==r?void 0:r.hybridTier,page:null==r?void 0:r.pageType,recaptchaV3Token:this.props.recaptchaV3Token||"default"};Object(x.a)("one_step_age_signup_complete"),l(u).then(this.handleSignupSuccess,e=>{this.contextLogSignupLoginEvent(7488),this.setLoadingState(!1),this.props.refreshRecaptchaV3Token&&this.props.refreshRecaptchaV3Token(),e.api_error_code===k.c?(o.b("r_r","1"),this.showUnderAgeError(e.message)):e.api_error_code===k.B?(Object(x.a)("unauth_show_invalid_email_inline_error"),this.setState({emailValidationError:d._("Your email is invalid.")})):Object(j.a)(d._("Sorry! Something went wrong on our end."))}),this.contextLogSignupLoginEvent(7537)}),L(this,"handleSignupSuccess",()=>{const{showResponseMessageModal:e}=this.props;this.contextLogSignupLoginEvent(7487),Object(x.a)("unauth.signup_one_step.completed"),e?e(!0):O.b.handleSignupRedirect(this.props.nextUrlParam,this.props.disablePostSignupNextUrl)}),L(this,"shouldRequireAge",()=>{const{requestContext:{country:e}}=this.props;return Object(T.d)(e)||Object(T.c)(e)}),L(this,"validateAgeRequirement",()=>{let e=!1;return this.shouldRequireAge()&&(e=Object(p.a)(this.props.age||"",this.ageValidators),e&&(this.setState({ageValidationError:e}),this.setLoadingState(!1),Object(x.a)("unauth.login.error.CLIENT_ERROR.invalidage."+M))),e}),L(this,"validatePasswordRequirement",()=>{const e=Object(p.a)(this.props.password,this.passwordValidators);return e&&(this.setState({passwordValidationError:e}),this.setLoadingState(!1),Object(x.a)("unauth.login.error.CLIENT_ERROR.malformpwd."+M)),e}),L(this,"completeRegistration",e=>{this.setState({emailValidationError:null}),this.setLoadingState(!1),Object(x.a)("unauth.signup_step_1.completed"),this.register()}),L(this,"checkEmailExistsWithCompletion",(e,t,n)=>{const{i18n:i}=this.props;u.a.create("EmailExistsResource",{email:e}).callGet({emailValidationError:!1}).then(e=>{var i;this.setState({emailValidationError:null}),!1===(null===(i=e.resource_response)||void 0===i?void 0:i.data)?n():t()},e=>{let t=i._("Hmm...that doesn't look like an email address");if(e.api_error_code===k.d)t=e.message;else{Object(p.a)(this.props.email,this.asciiValidators)&&Object(x.a)("unauth.login.error.CLIENT_ERROR.nonasciiemail."+M)}this.setState({emailValidationError:t})})}),L(this,"updateAccountRecoveryModal",e=>this.setState({accountRecoveryModalType:e})),L(this,"handleSignupWithEmailClick",()=>{Object(x.a)("unauth_signup_email_btn_click"),Object(x.h)("signup_email_button"),this.setState({showRegisterForm:!0}),this.props.onShowRegisterForm&&this.props.onShowRegisterForm()}),L(this,"renderSocialButtons",()=>{const{sm:e,i18n:t,showLineConnectButton:n,container:o,disablePostSignupNextUrl:r,loadingIndicatorCallback:c,nextUrlParam:l,onLoginWithMfa:d,showResponseMessageModal:u,onLineEmailMissingError:p}=this.props,{hideFBGoogleToolTip:g}=this.state,m=Object(A.jsx)(a.a,{buttonText:t._("Continue with Facebook"),container:this.props.container,disablePostSignupNextUrl:this.props.disablePostSignupNextUrl,loadingIndicatorCallback:this.props.loadingIndicatorCallback,onFBEmailDeniedPerm:this.props.onFBEmailDeniedPerm,onFBPhoneOnlyConnectVerified:this.props.onFBPhoneOnlyConnectVerified,onLoginWithMfa:this.props.onLoginWithMfa,onLoginWithSuspended:this.onLoginWithSuspended,onSocialConnectVerified:this.props.onSocialConnectVerified,showResponseMessageModal:this.props.showResponseMessageModal,showSignupWelcomeLoadingFn:this.props.showSignupWelcomeLoadingFn,tooltip:!g&&this.state.facebookValidationError||null,useGestaltTooltip:!0}),f=Object(A.jsx)(P.f,{ref:e=>{this.googleButton=e},children:"1"!==e&&Object(A.jsx)(s.a,{container:this.props.container,disablePostSignupNextUrl:this.props.disablePostSignupNextUrl,nextUrlParam:"/",onLoginWithMfa:this.props.onLoginWithMfa,onLoginWithSuspended:this.onLoginWithSuspended,onLoginWithVoluntarilyDeactivated:this.onLoginWithVoluntarilyDeactivated,onSocialConnectVerified:this.props.onSocialConnectVerified,showResponseMessageModal:this.props.showResponseMessageModal,tooltip:!g&&this.state.googleValidationError||null})}),b=n&&Object(A.jsx)(h.a,{children:Object(A.jsx)(R,{container:o,disablePostSignupNextUrl:r,loadingIndicatorCallback:c,nextUrlParam:l,onLoginWithMfa:d,onLoginWithSuspended:this.onLoginWithSuspended,showResponseMessageModal:u,onLineEmailMissingError:p})});return Object(A.jsxs)(P.f,{dangerouslySetInlineStyle:{__style:{marginTop:"10px"}},children:[m,Object(A.jsx)(P.f,{height:10}),f,n&&Object(A.jsxs)(i.Fragment,{children:[Object(A.jsx)(P.f,{height:10}),b]})]})}),L(this,"renderSignupForm",()=>{const{age:e,email:t,inputStyleOverrides:n,newEmail:i,onAgeChange:o,password:r,suppressFocus:a,updateEmail:s,requestContext:c,i18n:l}=this.props,{isRTL:u}=c;return this.state.showRegisterForm?Object(A.jsx)(d.a,{age:e,ageValidationError:this.state.ageValidationError,buttonText:this.getButtonText(),buttonTextLabel:l._("Continue creating your Pinterest account","Accessiblity button text to continue creating an account","Accessiblity button text to continue creating an account"),checkEmailExistsWithCompletion:this.checkEmailExistsWithCompletion,email:t,emailFieldHasError:this.state.emailFieldHasError,emailLabel:l._("Continue with email","Sign up button","Sign up button"),emailText:l._("Email","Text on button asking for email","Text on button asking for email"),emailValidationError:this.state.emailValidationError,inputStyleOverrides:n,isSignupForm:!0,isRTL:!!u,newEmail:i,onAgeChange:o,onButtonClick:this.handleButtonClick.bind(this),onEmailChange:this.handleEmailChange,onPasswordChange:this.handlePasswordChange,password:null!=r?r:"",passwordText:l._("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,showAgeInput:!0,suppressFocus:a,updateEmail:s}):Object(A.jsx)("div",{"data-test-id":"emailSignUpButton",children:Object(A.jsx)(P.g,{text:l._("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:this.handleSignupWithEmailClick})})}),L(this,"renderReorderedButtons",()=>{const{signupSeparatorContinuous:e}=this.props;return Object(A.jsxs)("div",{children:[this.renderSocialButtons(),this.state.showRegisterForm?Object(A.jsx)("div",{style:{marginBottom:"10px"},children:Object(A.jsx)(r.b,{signupSeparatorContinuous:e})}):null,this.renderSignupForm()]})}),L(this,"renderSocialButtonsOnly",()=>{this.renderSocialButtons()}),L(this,"renderOriginalForm",()=>{const{signupSeparatorContinuous:e}=this.props;return Object(A.jsxs)("div",{children:[this.renderSignupForm(),this.state.showRegisterForm?Object(A.jsx)(r.b,{signupSeparatorContinuous:e}):null,this.renderSocialButtons()]})}),L(this,"renderButtons",()=>{const{sm:e}=this.props;return"2"===e?this.renderReorderedButtons():"1"===e?this.renderSocialButtonsOnly():this.renderOriginalForm()}),L(this,"showUnderAgeError",e=>{const{i18n:t}=this.props;this.setState({ageValidationError:e||t._("Sorry, you’re 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")})}),this.state={ageValidationError:e.ageValidationError||null,accountRecoveryModalType:null,emailFieldHasError:!1,emailValidationError:e.emailValidationError||null,facebookValidationError:null,googleValidationError:null,passwordValidationError:e.passwordValidationError||null,showRegisterForm:"home_page"===this.props.container,hideFBGoogleToolTip:!1};const{i18n:t}=e;this.emailValidators=[Object(C.o)({message:t._("You missed a spot! Don't forget to add your email.")}),Object(C.e)({message:t._("Hmm...that doesn't look like an email address.")})];const n=t._("Your password is too short! You need 6+ characters."),c=t._("Use only a mix of letters, numbers and special characters (for example: ?, !, $).","EmailPasswordStep.password.onlyASCII","Only ASCII characters are allowed for password"),l=t._("Help us protect you by providing your age","Error message shown when user did not fill the age field in the sign up model","Error message shown when user did not fill the age field in the sign up model");this.passwordValidators=[Object(C.o)({message:n}),Object(b.b)({shortPassStr:n,samePasswordStr:t._("Please make your username and password different."),blackPassStr:t._("Please make a stronger password.")})],this.asciiValidators=[Object(C.b)({message:c})],this.loginPasswordValidators=[Object(C.o)({message:n}),Object(C.b)({message:c}),Object(C.j)({min:6,minErrorString:n})];const g=t._("Please enter a valid number.","Signup.EmailPasswordStep.ageError","Error message when value entered for age is invalid"),m=Object(C.a)({invalidAgeString:g,ageTooShortString:g});this.shouldRequireAge()?this.ageValidators=[Object(C.o)({message:l}),m]:this.ageValidators=[m]}static getDerivedStateFromProps(e,t){const{ageValidationError:n,emailValidationError:i,passwordValidationError:o}=e;return i&&i!==t.emailValidationError?{emailValidationError:i}:o&&o!==t.passwordValidationError?{passwordValidationError:o}:n&&n!==t.ageValidationError?{ageValidationError:n}:null}getButtonText(){const{i18n:e}=this.props;return e._("Continue","Continue button on web","Continue button on web")}handleBlur(e){"id"===e?this.setState({emailValidationError:null}):"age"===e&&this.setState({ageValidationError:null}),this.setState({facebookValidationError:null,googleValidationError:null})}handleLoginFailure(e,t){const{clearPassword:n,email:i,onLoginWithMfa:o,i18n:r}=this.props;this.contextLogSignupLoginEvent(7535);const a=e.http_status===_.b?_.b:e.api_error_code;if(a===k.t)return void O.b.handleLoginMfa(t,e.data,o);const s=O.b.getLoginErrorState(e,"emailPasswordStep",i,m.a,this.updateAccountRecoveryModal);s?(this.setState({...s,accountRecoveryModalType:v.a[a]}),n&&s.passwordValidationError&&n(),this.setLoadingState(!1)):(r._("Sorry! Something went wrong on our end.","Error message shown when user tried to login but error occured, and we don't have any other information about the error. May or may not be recoverable by the user.","Error message shown when user tried to login but error occured, and we don't have any other information about the error. May or may not be recoverable by the user."),Object(j.a)(r._("Sorry! Something went wrong on our end.")),this.setLoadingState(!1))}handleLoginSuccess(e){this.contextLogSignupLoginEvent(7536),O.b.storeLoginCredentialsToBrowser(e);const{showResponseMessageModal:t}=this.props;t?t(!1):this.props.nextUrlParam?O.b.handleSignupRedirect(this.props.nextUrlParam,this.props.disablePostSignupNextUrl):window.location.reload()}login(e){var t,n;this.setLoadingState(!0);const i=e||{username_or_email:this.props.email,password:this.props.password},o={container:this.props.container,hybridTier:null===(t=this.props.pageContext)||void 0===t?void 0:t.hybridTier,page:null===(n=this.props.pageContext)||void 0===n?void 0:n.pageType};Object(l.a)(i,this.props.getLoginContext(),o).then(()=>{this.handleLoginSuccess(i)},e=>{e.api_error_code===k.l?(this.setState({passwordValidationError:e.message}),this.setLoadingState(!1)):e.api_error_code===k.m?(this.setState({facebookValidationError:e.message}),this.setLoadingState(!1)):e.api_error_code===k.n?(this.setState({googleValidationError:e.message}),this.setLoadingState(!1)):e.api_error_code===k.t?(O.b.storeLoginCredentialsToBrowser(i),this.props.onLoginWithMfa(i,e.data)):(this.setState({emailValidationError:e.message}),this.setLoadingState(!1))})}contextLogSignupLoginEvent(e){const{viewer:t,logContextEvent:n}=this.props;n({event_type:e,aux_data:{...Object(f.a)(t.type),signup_login_method:1}})}validateEmailAvailable(e){this.setLoadingState(!0);const{container:t,email:n,pageContext:i,password:o}=this.props;this.checkEmailExistsWithCompletion(n,()=>{const e={username_or_email:n,password:null!=o?o:""},r={container:t,hybridTier:null==i?void 0:i.hybridTier,page:null==i?void 0:i.pageType};Object(l.a)(e,this.props.getLoginContext(),r).then(()=>{this.handleLoginSuccess(e)},t=>{this.handleLoginFailure(t,e)}),this.contextLogSignupLoginEvent(7534)},()=>{if(!this.validateAgeRequirement()&&!this.validatePasswordRequirement()){if(Object(c.a)(n))return this.setLoadingState(!1),void this.setState({emailFieldHasError:!0});this.completeRegistration(e)}})}render(){const{additionalChildren:e,requestContext:t}=this.props,{country:n,experiments:i}=t,{anyEnabled:o}=i.getWithActivation("wider_fb_button_for_translations"),r=Object(A.jsx)(v.b,{email:this.props.email,modalType:this.state.accountRecoveryModalType,onLoginWithMfa:this.props.onLoginWithMfa,onLoginWithSuspended:this.onLoginWithSuspended,onLoginWithVoluntarilyDeactivated:this.onLoginWithVoluntarilyDeactivated,updateAccountRecoveryModal:this.updateAccountRecoveryModal});return Object(A.jsxs)("div",{style:{margin:"0 auto",width:o?"280px":"268px"},children:[r,this.renderButtons(),Object(A.jsx)(g.a,{country:n,dark:!0}),e]})}}function N(e){const t=Object(D.b)(),n=Object(I.d)(),{getLoginContext:i,register:o,viewer:r}=Object(E.d)(),a=Object(S.a)(),s=Object(w.c)(),c=Object(y.b)("desktop_web_line_oauth_jp")().anyEnabled;return Object(A.jsx)(F,{...e,pageContext:t,requestContext:n,viewer:r,register:o,getLoginContext:i,logContextEvent:a,i18n:s,showLineConnectButton:c})}var B=n("RQXw");t.a=e=>Object(A.jsx)("div",{"data-test-id":"signup-options",style:{margin:"0 auto",position:"relative",textAlign:"center"},children:Object(A.jsx)(B.a,{children:({recaptchaV3Token:t,refreshToken:n})=>{var i,o;return Object(A.jsx)(N,{additionalChildren:e.additionalEmailPasswordChildren,age:null!==(i=e.age)&&void 0!==i?i:"",clearPassword:e.clearPassword,container:e.container,disablePostSignupNextUrl:e.disablePostSignupNextUrl,email:null!==(o=e.email)&&void 0!==o?o:"",emailValidationError:e.emailValidationError,inputStyleOverrides:{backgroundColor:"#f0f0f0",border:"0px",outline:"none"},loadingIndicatorCallback:e.loadingIndicatorCallback,name:e.name,nextUrlParam:e.nextUrlParam,onAgeChange:e.onAgeChange,onFBPhoneOnlyConnectVerified:e.onFBPhoneOnlyConnectVerified,onEmailChange:e.onEmailChange,onFBEmailDeniedPerm:e.onFBEmailDeniedPerm,onLoginWithMfa:e.onLoginWithMfa,onPasswordChange:e.onPasswordChange,onShowRegisterForm:e.onShowRegisterForm,onSocialConnectVerified:e.onSocialConnectVerified,password:e.password,passwordValidationError:e.passwordValidationError,recaptchaV3Token:t,refreshRecaptchaV3Token:n,setNameFromEmail:e.setNameFromEmail,showResponseMessageModal:e.showResponseMessageModal,showSignupWelcomeLoadingFn:e.showSignupWelcomeLoadingFn,signupSeparatorContinuous:e.signupSeparatorContinuous,signupSource:e.signupSource,sm:e.sm,suppressFocus:e.suppressFocus,onLineEmailMissingError:e.onLineEmailMissingError})}})})},aS9Y:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("Jld5");t.createDragDropManager=function(e,t,n){return new i.default(e,t,n)}},aUfZ:function(e,t,n){var i=n("P9b8"),o=n("sZWH"),r=n.n(o);t.a=Object(i.DragDropContext)(r.a)},aldu:function(e,t,n){n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return g}));var i=n("i2ZS"),o=n("kmwA"),r=n("ZNVR");const a=o.a.settings.DENTSU_STADIA_PIXEL,s="dentsu_images",c="ds_pixel_unauth",l="PageView";function d(e,t){const n=new URL(a+document.URL);return n.searchParams.set("c3",t),n.searchParams.set("c4",e),n.searchParams.set("c7",Object(r.d)()),n.toString()}async function u(e,t,n){const o=e+"*"+("undefined"!=typeof window&&window.crypto&&window.crypto.subtle?await Object(i.a)(t):""),a=d(o,l);Object(r.b)(e,"ds_pixel_auth",c,s,a,o,"dentsu",n)}async function p(e,t){const n=d(e,l);Object(r.c)(e,c,s,n,t)}function h(e,t,n){Object(r.e)({pixelId:e,divId:s,eventCategory:t,eventName:n})}function g(e){function t(){const t=Object(r.a)({src:"https://"+location.hostname+"/_/_/pixel/fb-dentsu-jp.html",id:"dentsuFBPixel",sandbox:"allow-scripts allow-same-origin",style:"display: none;"});if(!document.body)throw new Error("missing <body>");document.body.appendChild(t),t.contentWindow.addEventListener("load",()=>window._sendFacebookPixel=t.contentWindow.fbq),e()}document.getElementById("dentsuFBPixel")||("complete"===document.readyState&&t(),window.addEventListener("load",t))}},"at+a":function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var i=n("n6mq"),o=n("nKUr");function r({data:e}){return Object(o.jsx)(i.f,{overflow:"auto",dangerouslySetInlineStyle:{__style:{border:"2px solid red"}},children:Object(o.jsx)("pre",{children:JSON.stringify(e,null,2).replace(/\\n/g,"\n")})})}const a=e=>Object(o.jsx)(i.f,{dangerouslySetInlineStyle:{__style:{width:236,marginTop:10}},children:Object(o.jsx)(r,{...e})})},b7nI:function(e,t,n){var i=n("yweb"),o=n("n6mq"),r=n("nKUr");const a=()=>{const e=Object(i.c)();return Object(r.jsx)(o.U,{accessibilityLabel:e._("Loading","Label for loading spinner","Label for loading spinner"),show:!0})};t.a=()=>Object(r.jsxs)(o.f,{children:[Object(r.jsx)(o.f,{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",top:!0,left:!0,bottom:!0,right:!0,opacity:1,dangerouslySetInlineStyle:{__style:{zIndex:101}},children:Object(r.jsx)(a,{})}),Object(r.jsx)(o.f,{color:"white",position:"absolute",top:!0,left:!0,bottom:!0,right:!0,opacity:.7,dangerouslySetInlineStyle:{__style:{zIndex:100}}})]})},b8rM:function(e,t,n){var i=n("Lfjc"),o=n("pLLR"),r=n("nKUr");function a(e,t){const n=e.page_metadata,i=n?n.metatags.title:e.title,o=i&&i.trim()||"Pinterest Video",r=n?n.metatags.description:e.description,a=r&&r.trim()||"Pinterest Video",s=(e=>{if(e)return"PT"+Math.floor(e/1e3)+"S"})(t.duration);return{name:o,description:a,thumbnailUrl:t.thumbnail||"",uploadDate:e.created_at?new Date(Date.parse(e.created_at)).toISOString():(new Date).toISOString(),duration:s||void 0,contentUrl:t.url||void 0}}t.a=function(e){const t=Object(o.d)(),{pin:n,video:s}=e,{fullPath:c,isAuthenticated:l,origin:d}=t;if(l)return null;if(!s)return null;const u={"@type":"VideoObject","@context":"http://schema.org/","@id":`${d}${c}`,...a(n,s)};return Object(r.jsx)(i.a,{type:"application/ld+json",value:u})}},bBqG:function(e,t,n){var i=n("IDoE"),o=n("ipvL"),r=n("zRck"),a=n("28DW"),s=n("7Cbv");t.a=(e,t,n)=>{let c=o.a.getGroupId();c||(c=(()=>{const e=Object(s.a)();return Object(a.k)("web_account_switcher.utils.group_created",{group_id:e,group_count:Object(i.a)()}),e})(),o.a.setGroupId(c));const l={group_id:c,group_count:Object(i.a)()};let d="";n&&(d=n===r.c?"modal.":"flyout."),Object(a.k)(`web_account_switcher.${d}${e}`,Object.assign({},t,l))}},bCCX:function(e,t,n){(function(e,i){var o,r=n("SLVX");o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:i;var a=Object(r.a)(o);t.a=a}).call(this,n("yLpj"),n("3UD+")(e))},bKKl:function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("gxu6");const o=()=>!!i.a("logged_out")||!!i.a("fba")},bVL4:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("TKJ6"),o=n("LTlA"),r=n("QLaP"),a=n("7nh8"),s={type:a.INIT_COORDS,payload:{clientOffset:null,sourceClientOffset:null}};t.default=function(e){return function(t,n){void 0===t&&(t=[]),void 0===n&&(n={publishSource:!0});var c=n.publishSource,l=void 0===c||c,d=n.clientOffset,u=n.getSourceClientOffset,p=e.getMonitor(),h=e.getRegistry();e.dispatch(i.setClientOffset(d)),function(e,t,n){r(!t.isDragging(),"Cannot call beginDrag while dragging.");for(var i=0,o=e;i<o.length;i++){var a=o[i];r(n.getSource(a),"Expected sourceIds to be registered.")}}(t,p,h);var g=function(e,t){for(var n=null,i=e.length-1;i>=0;i--)if(t.canDragSource(e[i])){n=e[i];break}return n}(t,p);if(null!==g){var m=null;d&&(!function(e){r("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(u),m=u(g)),e.dispatch(i.setClientOffset(d,m));var f=h.getSource(g).beginDrag(p,g);!function(e){r(o.isObject(e),"Item must be an object.")}(f),h.pinSource(g);var b=h.getSourceType(g);return{type:a.BEGIN_DRAG,payload:{itemType:b,item:f,sourceId:g,clientOffset:d||null,sourceClientOffset:m||null,isSourcePublic:!!l}}}e.dispatch(s)}}},bVT4:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){var t=null;return function(){return null==t&&(t=e()),t}},t.without=function(e,t){return e.filter((function(e){return e!==t}))},t.union=function(e,t){var n=new Set,i=function(e){return n.add(e)};e.forEach(i),t.forEach(i);var o=[];return n.forEach((function(e){return o.push(e)})),o}},"bY+3":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("2S0S"),o=!1,r=function(){function e(e){this.targetId=null,this.internalMonitor=e.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.targetId=e},e.prototype.getHandlerId=function(){return this.targetId},e.prototype.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},e.prototype.canDrop=function(){if(!this.targetId)return!1;i(!o,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return o=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{o=!1}},e.prototype.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();t.default=r},bZS0:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("Ye/N"),o=n("oRao"),r=n("vvax"),a=n("nKUr");function s({m:e,h:t,rm:n,rh:s}){return e&&(!t||s<=0)?Object(r.b)(i.a.ngettext("{{mins}} minute","{{mins}} minutes",n),{mins:Object(a.jsx)(o.a,{maximumFractionDigits:2,value:n},"recipe-minutes")}):t?Object(r.b)(i.a.ngettext("{{hrs}} hour","{{hrs}} hours",s),{hrs:Object(a.jsx)(o.a,{maximumFractionDigits:2,value:s},"recipe-hours")}):null}},bn9T:function(e,t){e.exports="https://s.pinimg.com/webapp/wow-d0a865e5.svg"},c50B:function(e,t,n){n.d(t,"o",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"m",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"n",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"l",(function(){return u})),n.d(t,"q",(function(){return p})),n.d(t,"j",(function(){return h})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return _})),n.d(t,"s",(function(){return j})),n.d(t,"p",(function(){return y})),n.d(t,"k",(function(){return v})),n.d(t,"r",(function(){return O})),n.d(t,"t",(function(){return x}));const i=e=>{const t={"０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","　":" "},n=String(e).split("");return n.forEach((e,i)=>{const o=t[e];o&&(n[i]=o)}),n.join("")};function o(e){return function(t,n){const i=[];t&&/\S/.test(t)||i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}const r=new RegExp(["(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*",'|^"([\\001-\\010\\013\\014\\016-\\037!#-\\[\\]-\\177]|\\\\[\\001-\\011\\013\\014\\016-\\177])*"',")@((?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\.)+[A-Z]{2,20}$)","|\\[(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}\\]$"].join(""),"i");function a(e){return function(t,n){const i=[];(t=t&&t.trim())&&!t.match(r)&&i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function s(e){return function(t,n){const i=[];(t=t&&t.trim())&&!t.match(/^[^0-9].*$/)&&i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function c(e){return function(t,n){const o=i(t.trim()),r=[];if(o)if(o.length<2&&r.push(e.ageTooShortString),/^\d+$/.test(o)){const t=parseInt(o,10);t<=0||t>=300?r.push(e.invalidAgeString):e.checkUnderAgeWithString&&t<12&&r.push(e.checkUnderAgeWithString)}else r.push(e.invalidAgeString);const a={errors:r,warnings:[]};return n&&n(a),a}}function l(e){return function(t,n){const i=(t=t&&t.trim()).replace(/[\(\)\+\-\. ]/g,""),o=[],r=!1!==e.checkLength&&i.length<7;!t||t.match(/^(\(?\+?[0-9]*\)?)?[0-9_\- \.\(\)]*$/g)&&!r||o.push(e.message);const a={errors:o,warnings:[]};return n&&n(a),a}}function d(e){return function(t,n){const o=/^\d+$/,r=[];"number"==typeof t||"string"==typeof t&&(t=t&&t.trim(),(t=i(t))&&!t.match(o)&&r.push(e.message));const a={errors:r,warnings:[]};return n&&n(a),a}}function u(e){return function(t,n){const o=/^[\d\ -]+$/,r=[];"number"==typeof t||"string"==typeof t&&(t=t&&t.trim(),(t=i(t))&&!t.match(o)&&r.push(e.message));const a={errors:r,warnings:[]};return n&&n(a),a}}function p(e){return function(t,n){const i=[];t&&!t.match(/^(https?:\/\/){0,1}[a-z0-9_\-]+\..+/gi)&&i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function h(e){return function(t,n){const i=[];(e.should_trim||!1)&&(t=t&&t.trim());const o=t.length;e.min&&o<e.min?i.push(e.minErrorString):e.max&&o>e.max&&i.push(e.maxErrorString);const r={errors:i,warnings:[]};return n&&n(r),r}}function g(e){return function(t,n){const i=[];t!==(e&&e.targetValue)&&i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function m(e){return function(t,n){t&&(t=parseFloat(t));const i=[];t<=e.value&&i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function f(e){return function(t,n){t&&(t=parseFloat(t));const i=[];t<e.value&&i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function b(e){return function(t,n){const i=[];/^[\040-\176]*$/.test(t)||i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function _(e){return function(t,n){const i=e.hasFractionalCents?/^\d*(\.\d\d?\d?)?$/:/^\d*(\.\d\d?)?$/,o=[];"number"==typeof t&&(t=t.toString()),t&&!t.match(i)&&(t=t&&t.trim(),o.push(e.message));const r={errors:o,warnings:[]};return n&&n(r),r}}function j(e){return function(t,n){t=t&&t.trim();const i=[],o=new Date(t);t&&!o.getTime()&&i.push(e.message);const r={errors:i,warnings:[]};return n&&n(r),r}}function y(e){return function(t,n){const i=[];(t=t&&t.trim())&&!t.match(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/)&&i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function v(e){return function(t,n){const i=[];e.pattern.test(t)||i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function O(e,t){const n=e.map(e=>e(t).errors);return[].concat(...n)}function x(e,t){let n="";return t.some(t=>{const i=t(e);return i.errors.length>0&&(n=i.errors[0],!0)}),n}},cPMF:function(e,t,n){t.a=e=>/^\d{4}$/.test(e)},d2Eh:function(e,t,n){t.a={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}},dJ9d:function(e,t,n){function i(e){return e&&e.$$typeof&&"Symbol(react.forward_ref)"===e.$$typeof.toString()}Object.defineProperty(t,"__esModule",{value:!0}),t.isRefForwardingComponent=i,t.isRefable=function(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||i(e);var t}},dKiF:function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s}));const i=(e,t)=>e.length===t.length&&e.every((e,n)=>function(e,t){if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&n.every(n=>e[n]===t[n])}return e===t}(e,t[n])),o=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),r=(e,t=o)=>n=>{const i=[];return function(...o){const r=this,a=i.find(e=>e.context===r&&t(e.args,o));if(a)return a.result;const s={context:r,args:o,result:n.apply(this,o)};return i.push(s),e&&i.length>e&&i.shift(),s.result}},a=r(1),s=r()},eBDd:function(e,t,n){var i=n("yaUg"),o=n("NBXZ");t.a=(e,t)=>{const n={};return Object.keys(t).forEach(e=>{n[e]=t[e]?Object(o.a)(t[e].toString()):""}),Object(i.a)(e,n)}},eIuQ:function(e,t,n){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s}));var i=n("Ye/N");function o(e){return e?i.a._("Title too long. Make sure all cards' titles have less than 100 characters","Title entered is too long while editing a carousel pin and/or one of its pins","Title entered is too long while editing a carousel pin and/or one of its pins"):i.a._("Title too long. Make sure title has less than 100 characters","Title entered is too long while editing a pin","Title entered is too long while editing a pin")}function r(e){return e?i.a._("Description too long. Make sure all cards' descriptions have less than 500 characters","Description entered is too long while editing a carousel pin and/or one of its pins","Description entered is too long while editing a carousel pin and/or one of its pins"):i.a._("Description too long. Make sure description has less than 500 characters","Description entered is too long while editing a pin","Description entered is too long while editing a pin")}function a(e){return i.a._("Too many mentions. Make sure you have at most 5.","editPinModal.errorMessages.userMentionOverLimit","Too many mentions used in the description")}function s(e){return e?i.a._("Need to provide a valid URL. Make sure all cards' links are valid","Invalid URL/link provided while editing a carousel pin and/or one of its pins","Invalid URL/link provided while editing a carousel pin and/or one of its pins"):i.a._("Need to provide a valid URL. Make sure the link is valid","Invalid URL/link provided while editing a pin","Invalid URL/link provided while editing a pin")}},eRoX:function(e,t,n){t.a=[{url:"https://i.pinimg.com/236x/b3/41/6e/b3416e2688aa4d20f846aeb8127e6b3b.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/23/ad/5f/23ad5fc40270120b22bea471fe3656aa.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/83/39/1e/83391e3103e17a46e2733b09bf154a06.jpg",width:236,height:156},{url:"https://i.pinimg.com/236x/87/f7/b5/87f7b55bc3de78ef95fd36fa3a237172.jpg",width:236,height:157},{url:"https://i.pinimg.com/236x/d3/49/07/d34907c96950574c15719219e0f0dd69.jpg",width:236,height:295},{url:"https://i.pinimg.com/236x/49/ad/71/49ad71817c829e8d86ca16fa6508b0c4.jpg",width:236,height:314},{url:"https://i.pinimg.com/236x/a8/7f/53/a87f53ea636966bf24cf279ed2fdc4dc.jpg",width:236,height:314},{url:"https://i.pinimg.com/236x/36/67/b4/3667b449f3cacaaeef3f68fc9cf609be.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/9d/4f/43/9d4f43222d4fc694a61f7635f2d42892.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/48/d9/f0/48d9f0a63ac5c08b1cf2608ceb4a884f.jpg",width:236,height:419},{url:"https://i.pinimg.com/236x/3e/08/94/3e0894b99543507463864c64c6b3af49.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/4b/a4/97/4ba49798105ddfc0bfd11a980f18590f.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/b9/e9/8f/b9e98fe7ff81c026b488997900eb25fa.jpg",width:236,height:314},{url:"https://i.pinimg.com/236x/96/e0/4a/96e04ac53becd9f522988fc27343ac6e.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/5a/f5/9e/5af59e46be8a92abd880031be67ce4cc.jpg",width:236,height:353},{url:"https://i.pinimg.com/236x/71/f2/e6/71f2e6a1a13223864dd833bc128f8e2f.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/db/b2/09/dbb2099909d25dd45d3df4950429312d.jpg",width:236,height:309},{url:"https://i.pinimg.com/236x/d7/f9/b0/d7f9b0f7dc0536e923026e6af91c61d5.jpg",width:236,height:353},{url:"https://i.pinimg.com/236x/4b/6e/36/4b6e36884909d421e250050db82d013b.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/0b/85/ca/0b85ca13cbf16fa3017164b9c4b65923.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/28/d9/35/28d935a8f25905a6989709b21241e4d2.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/94/e5/fb/94e5fb084bb73b1237a73fc83eb07b45.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/ec/c7/66/ecc766782029713523ae6a5bd8544045.jpg",width:236,height:353},{url:"https://i.pinimg.com/236x/1a/c5/72/1ac572b1643cf518ef06139eca46dd1d.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/d1/8f/f9/d18ff9eaec83c75b878eebb899604b8e.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/b3/41/6e/b3416e2688aa4d20f846aeb8127e6b3b.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/23/ad/5f/23ad5fc40270120b22bea471fe3656aa.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/8f/e5/32/8fe532eea42b7c8b14947a2ced8b127d.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/29/6d/a2/296da26a335fd7079e6355225c051cf3.jpg",width:236,height:353},{url:"https://i.pinimg.com/236x/cd/53/e3/cd53e3b9ad897d5c5588094f446cbc2a.jpg",width:236,height:157},{url:"https://i.pinimg.com/236x/18/54/21/1854212e113994080084b4666b23fcc5.jpg",width:236,height:353},{url:"https://i.pinimg.com/236x/cf/0c/45/cf0c451732bb352b3c96d1951ea632dd.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/d0/e9/ee/d0e9ee92a6398e6b31b1515c2ec6ab5e.jpg",width:236,height:157},{url:"https://i.pinimg.com/236x/8d/8c/86/8d8c86e41d810497a7b60c5a0e58a95f.jpg",width:236,height:157},{url:"https://i.pinimg.com/236x/57/0c/d6/570cd6ac36a208808edabf74682cca8d.jpg",width:236,height:314},{url:"https://i.pinimg.com/236x/bd/57/32/bd5732c8291d05e8982662a1ee043411.jpg",width:236,height:188},{url:"https://i.pinimg.com/236x/1b/10/5e/1b105ea0da81722178e23c5438fb68d7.jpg",width:236,height:157},{url:"https://i.pinimg.com/236x/ee/2d/d3/ee2dd31a93246fb72490c012b16eefca.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/81/8a/ca/818aca5d5303c60bff125a5acc322fc0.jpg",width:236,height:295},{url:"https://i.pinimg.com/236x/c6/bc/64/c6bc64acbaab2cca4f9166539ff36621.jpg",width:236,height:353},{url:"https://i.pinimg.com/236x/d7/38/27/d73827a583f46fbeaf282acc001eb733.jpg",width:236,height:353},{url:"https://i.pinimg.com/236x/2a/02/05/2a0205019cb0cb1ea0baa9b95eb78ab8.jpg",width:236,height:256},{url:"https://i.pinimg.com/236x/60/81/65/60816514dcfcbcab0df772dc78ca8ed1.jpg",width:236,height:157},{url:"https://i.pinimg.com/236x/0d/2f/fb/0d2ffbcdcc414765ef441752b423a6ad.jpg",width:236,height:353},{url:"https://i.pinimg.com/236x/d0/97/0b/d0970b1c57a50afa4d6951d8b0657715.jpg",width:236,height:157},{url:"https://i.pinimg.com/236x/7d/c5/99/7dc599bce4115d38ee5b91dcd8769543.jpg",width:236,height:157},{url:"https://i.pinimg.com/236x/70/0e/56/700e56a3bccb989ab88819ade445e86e.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/ff/73/ab/ff73ab3256bbcf8abce0febb98939e4f.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/e7/1b/ba/e71bbaca118e1ae09f01bcc45b58229f.jpg",width:236,height:185},{url:"https://i.pinimg.com/236x/37/af/bf/37afbf3c16baf0f70dc083b6c6ffecec.jpg",width:236,height:298},{url:"https://i.pinimg.com/236x/64/9d/1b/649d1b77d8b28995b2902b89001f912c.jpg",width:236,height:157},{url:"https://i.pinimg.com/236x/8f/e5/32/8fe532eea42b7c8b14947a2ced8b127d.jpg",width:236,height:354},{url:"https://i.pinimg.com/236x/fc/5f/44/fc5f44cd50535f378b1e09d11433c1a8.jpg",width:236,height:330},{url:"https://i.pinimg.com/236x/21/af/78/21af78021ad083377aa3e36ae6f09fc2.jpg",width:236,height:314},{url:"https://i.pinimg.com/236x/06/41/9c/06419c4e4165596f77d721d88665e4e7.jpg",width:236,height:157},{url:"https://i.pinimg.com/236x/2a/9e/80/2a9e80b4714ac32943ddec01399b5387.jpg",width:236,height:156},{url:"https://i.pinimg.com/236x/fc/5f/44/fc5f44cd50535f378b1e09d11433c1a8.jpg",width:236,height:330}]},eUcp:function(e,t,n){n.d(t,"j",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"l",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"k",(function(){return u})),n.d(t,"h",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"g",(function(){return m})),n.d(t,"m",(function(){return f}));var i=n("n6mq");const o=new i.s(0),r=new i.s(1),a=2,s=new i.s(a),c=2,l=new i.s(c),d=new i.s(3),u=new i.s(1),p=new i.s(3),h=3,g=4,m=(new i.s(g),new i.s(5)),f=new i.s(100)},eiom:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isDisposed=!1,this.disposables=e}return e.prototype.add=function(e){this.isDisposed?e.dispose():this.disposables.push(e)},e.prototype.remove=function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t},e.prototype.clear=function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(n=0;n<e;n++)t[n].dispose()}},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(n=0;n<e;n++)t[n].dispose()}},e}();t.CompositeDisposable=i},ejSI:function(e,t,n){n.d(t,"a",(function(){return G}));var i=n("q1tI"),o=n("ovj4"),r=n("MldM"),a=n("TPPM"),s=n("Ye/N"),c=n("ihsa"),l=n("28DW"),d=n("n6mq"),u=n("nKUr");const p=({question:e,answer:t,isOpen:n})=>Object(u.jsxs)(d.f,{color:"white",rounding:n?8:"pill",padding:4,children:[Object(u.jsx)(d.bb,{onTap:()=>Object(l.a)("web_unauth_jp_faq_comp.tap"),children:Object(u.jsxs)(d.f,{display:"flex",alignItems:"center",justifyContent:"between",paddingX:2,children:[Object(u.jsx)(d.cb,{weight:"bold",size:"lg",children:e}),Object(u.jsx)(d.v,{icon:n?"arrow-up":"arrow-down",accessibilityLabel:s.a._("Arrow to open or close the question ","web.faq.open.close.question","text to indicate open or closed question"),color:"darkGray"})]})}),Object(u.jsxs)(d.f,{marginTop:4,display:n?"inlineBlock":"visuallyHidden",dangerouslySetInlineStyle:{__style:n?{animation:"1s faqFadeIn",lineHeight:"24px"}:{}},maxWidth:"95%",maxHeight:"75%",paddingX:2,children:[Object(u.jsx)(d.cb,{size:"lg",children:t}),Object(u.jsx)(d.f,{marginTop:4,children:Object(u.jsxs)(d.t,{alignItems:"center",children:[Object(u.jsx)(d.cb,{size:"lg",children:s.a._("Want to learn more?","web.faq.visit.text","web faq visit text")}),Object(u.jsx)(d.B,{href:"https://pinterestjapanblog.com/pinterest-beginners-guide-2020/",target:"blank",onClick:({disableOnNavigation:e})=>{e(),Object(l.a)("web_unauth_jp_faq.link.tap")},children:Object(u.jsx)(d.f,{marginStart:1,children:Object(u.jsx)(d.cb,{size:"lg",weight:"bold",children:s.a._("Visit our blog","web.faq.visit.link","web faq visit link")})})})]})})]})]});function h(){const e=[{question:s.a._("What is Pinterest?","web.jp.faq.q1","web jp faq q1"),answer:s.a._("Pinterest is a visual discovery tool that makes it easy to discover, save and organize recipes, home and style inspiration, dream travel destinations, and more. With billions of ideas on Pinterest, you’ll always find something to spark inspiration.","web.jp.faq.ans1","web jp faq ans1")},{question:s.a._("Why should I create an account?","web.jp.faq.q2","web jp faq q2"),answer:s.a._("With a free account, you can save your favorite ideas, organize the things you’d like to try, and collaborate on projects with friends. The more you use your account, the easier Pinterest’s unique machine learning makes it to find what you like.","web.jp.faq.ans2","web jp faq ans2")},{question:s.a._("What do our users say about us?","web.jp.faq.q3","web jp faq q3"),answer:s.a._("Over 450 million users are using Pinterest all over the world: “There are so many lovely things beyond my imagination.” “I can search based on the image of the kind of room I wanna live in.” “Pinterest understands my taste better than anyone.” “It’s so convenient to think about recipe or dish presentation with it.” “I feel revived by emptying my head.”","web.jp.faq.ans3","web jp faq ans3")}],[t,n]=Object(i.useState)(null);return Object(u.jsx)(d.f,{maxWidth:"500px",marginStart:7,children:Object(u.jsxs)(d.f,{marginBottom:8,children:[Object(u.jsx)(c.a,{unsafeCSS:"\n    @keyframes faqFadeIn {\n        from {\n          opacity: 0;\n        }\n        to {\n          opacity: 1;\n        }\n      },\n    "}),e.map((e,i)=>Object(u.jsx)(d.f,{marginTop:2,children:Object(u.jsx)(d.bb,{onTap:e=>((e,i)=>{n(t===i?null:i)})(0,i),children:Object(u.jsx)(p,{question:e.question,answer:e.answer,isOpen:t===i})})},i))]})})}function g(e){const{color:t="darkGray",text:n}=e,i=Object(u.jsx)(d.f,{display:"flex",justifyContent:"center",alignItems:"center",children:Object(u.jsx)(d.cb,{align:"center",color:"white",weight:"bold",children:n})});return Object(u.jsx)(d.f,{marginBottom:3,paddingX:4,maxWidth:376,width:"100vw",children:Object(u.jsx)(d.f,{color:t,fit:!0,paddingX:8,paddingY:5,rounding:"pill",children:i})})}var m=n("h5nQ"),f=n("CRJj"),b=n("TbPR"),_=n("FDmi");const j=()=>Object(u.jsxs)(d.f,{display:"flex",justifyContent:"center",alignItems:"center",zIndex:new d.s(2),position:"relative",children:[Object(u.jsx)(d.f,{zIndex:new d.s(3),width:80,height:106,rounding:4,dangerouslySetInlineStyle:{__style:{backgroundColor:"#FADBD6",transform:"rotate(-25deg)"}},position:"absolute"}),Object(u.jsx)(d.f,{zIndex:new d.s(3),width:80,height:106,rounding:4,dangerouslySetInlineStyle:{__style:{backgroundColor:"#F19385",transform:"rotate(25deg)"}},position:"absolute"}),Object(u.jsx)(d.f,{zIndex:new d.s(3),width:96,height:96,rounding:"circle",position:"absolute",children:Object(u.jsx)(_.a,{size:"fit",outline:!0,src:"https://i.pinimg.com/280x280_RS/17/f8/37/17f8377153de30fa85efb7326db77562.jpg",name:"Ayami"})})]});function y({cardType:e,showSmallScreenTreatment:t}){return Object(u.jsx)(d.bb,{onTap:()=>{"education"===e&&window?(window.open("/pin/407294360059963694","_blank"),Object(l.a)("dweb_unauth_jp.education_video.clicked")):"creator"===e&&window&&(window.open("/nakajoayami","_blank"),Object(l.a)("dweb_unauth_jp.creator.clicked"))},children:Object(u.jsxs)(d.f,{width:"100%",minHeight:t?140:186,display:"flex",direction:"row",rounding:6,justifyContent:"start",padding:t?4:8,marginBottom:3,alignItems:"center",flex:"grow",dangerouslySetInlineStyle:{__style:{backgroundColor:"#FFFFFF"}},children:["creator"===e&&Object(u.jsxs)(d.f,{display:"flex",direction:"column",justifyContent:"center",alignItems:"center",marginEnd:3,children:[Object(u.jsx)(d.f,{width:100,height:100,display:"flex",justifyContent:"center",alignItems:"center",children:Object(u.jsx)(j,{})}),Object(u.jsx)(d.f,{marginTop:4,padding:2,rounding:"pill",dangerouslySetInlineStyle:{__style:{backgroundColor:"#EFEFEF"}},children:Object(u.jsx)(d.cb,{inline:!0,weight:"normal",children:"@nakajoayami"})})]}),Object(u.jsxs)(d.t,{direction:"column",gap:2,children:[Object(u.jsx)(d.u,{size:"sm",children:"creator"===e?"中条あやみさんはどう使ってる？":"Pinterest どんな時に使うの？"}),Object(u.jsx)(d.cb,{size:t?"md":"lg",children:"creator"===e?"「インテリアやレシピの参考に当然のように使っていた Pinterest のイメージキャラクターに起用されて嬉しいです。 Pinterest は使えば使うほど、自分の好みを理解してくれます。フィードが自分だけの好きで溢れるので幸せいっぱいになるし、ワクワクします！」":"Pinterest はアイデアに困った時に使うアプリ。Pinterest を使うメリットや毎日の生活の中でどんな風に使えるのか、動画をみてみましょう。"})]}),"education"===e&&Object(u.jsx)(d.f,{width:160,minWidth:160,height:106,marginStart:5,children:Object(u.jsx)(d.C,{width:"100%",height:"100%",rounding:4,wash:!0,children:Object(u.jsx)(d.x,{alt:"=sa",color:"rgb(231, 186, 176)",naturalHeight:1,naturalWidth:1,src:"https://i.pinimg.com/videos/thumbnails/originals/af/02/1c/af021ce4c3ec7dd5a350579a4e7ffba2.0000001.jpg",fit:"cover",children:Object(u.jsx)(d.f,{padding:2,display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",children:Object(u.jsx)(d.v,{accessibilityLabel:"Play",icon:"play",color:"white",size:24})})})})})]})})}var v=n("b7nI"),O=n("YtZM"),x=n("Gz3U"),w=n("+8U0"),S=n("aI4i"),C=n("hcCH"),k=n("K9eD"),T=n("I1Lu");const E=({heading:e,subtitle:t})=>Object(u.jsxs)(d.f,{marginBottom:2,paddingY:3,width:275,children:[Object(u.jsx)(d.u,{color:"darkGray",children:e}),Object(u.jsx)(d.cb,{color:"gray",overflow:"normal",weight:"bold",children:t})]});var I=({title:e,sections:t})=>Object(u.jsxs)(d.f,{marginStart:7,marginTop:7,children:[Object(u.jsx)(d.f,{children:Object(u.jsx)(d.cb,{color:"red",weight:"bold",children:e})}),Object(u.jsx)(d.f,{display:"flex",direction:"column",children:t.map((e,t)=>Object(u.jsx)(E,{heading:e.heading,subtitle:e.subtitle},t))})]}),P=()=>Object(u.jsx)(I,{title:s.a._("Reach people making decisions","Value prop features title","Value prop features title"),sections:[{heading:s.a._("Analytics","Value prop monthly features heading","Value prop monthly features heading"),subtitle:s.a._("Track which Pins are performing the best","Value prop monthly statistic subtitle","Value prop monthly statistic subtitle")},{heading:s.a._("Insights","Value prop search features heading","Value prop search features heading"),subtitle:s.a._("Learn more about your audience on Pinterest","Value prop search statistic subtitle","Value prop search statistic subtitle")},{heading:s.a._("Ads","Value prop user action features heading","Value prop user action features heading"),subtitle:s.a._("Reach new audiences with Pinterest Ads","Value prop user action statistic subtitle","Value prop user action statistic subtitle")}]}),D=()=>Object(u.jsx)(I,{title:s.a._("Reach people making decisions","Value prop statistics title","Value prop statistics title"),sections:[{heading:s.a._("250m","Value prop monthly statistic heading","Value prop monthly statistic heading"),subtitle:s.a._("people use Pinterest every month","Value prop monthly statistic subtitle","Value prop monthly statistic subtitle")},{heading:s.a._("2b","Value prop search statistic heading","Value prop search statistic heading"),subtitle:s.a._("searches for new ideas happen on Pinterest every month","Value prop search statistic subtitle","Value prop search statistic subtitle")},{heading:s.a._("70%","Value prop user action statistic heading","Value prop user action statistic heading"),subtitle:s.a._("of people are searching, clicking and saving, not just browsing","Value prop user action statistic subtitle","Value prop user action statistic subtitle")}]});var A=n("U4JR"),L=n("QAzJ"),R=n("pLLR");function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const F={giftWrap:{background:"none",bottom:"0px",left:"0px",position:"fixed",right:"0px",top:"0px",minWidth:"800px"},spacingWrapper:{paddingBottom:"67px",paddingTop:"48px",minHeight:"533px",left:"50%",top:"50%",position:"absolute",transform:"translate(-50%, -50%)"},contentWrapper:{position:"absolute",top:"0px",bottom:"0px",left:"0",right:"0",overflow:"auto"},spacingWrapperScrolling:{paddingBottom:"67px",paddingTop:"48px",minHeight:"533px",left:"50%",position:"absolute",transform:"translateX(-50%)"},contentWrapperScrolling:{position:"absolute",top:"0px",bottom:"0px",left:"0",right:"0",overflow:"auto"},brioModal:{backgroundColor:"#fff",borderRadius:"8px",minHeight:"533px",paddingTop:"10px",boxShadow:"0 2px 10px rgba(0,0,0,0.45)"},brioLogo:{margin:"14px auto 0",position:"relative",height:"55px",width:"55px"},brioTitle:{margin:"5px 26px 26px",textAlign:"center",fontWeight:"bold",fontSize:"28px",color:"#333"},brioTitleMfa:{padding:"0 10px"},brioInputFields:{backgroundColor:"#f0f0f0",border:"0px",outline:"none"},brioModalWrapper:{position:"static",height:"100%",width:"100%"},subtitle:{textAlign:"center",fontWeight:"bold",color:"#ccc",fontSize:"18px",margin:"-25px 26px 20px"},confirmationMessage:{textAlign:"center",color:"rgb(85, 85, 85)",fontSize:"16px",margin:"32px 0px"},confirmationButton:{width:"270px",margin:"auto"},signupForm:{margin:"16px 0",position:"relative"}},N=()=>Object(L.b)("advertiser_growth_biz_signup_copy_free")().anyEnabled?s.a._("Create a free business account","signupModal.switchToBusinessAccountSignup.free","Button on signup modal to switch from personal to business signup."):s.a._("Create a business account","signupModal.switchToBusinessAccountSignup","Button on signup modal to switch from personal to business signup."),B="mfa",U="signup",z="socialConnectAgeCollection",W="FBEmailRerequest";class V extends i.Component{constructor(e){super(e),M(this,"setLoadingIndicator",e=>{this.setState({showLoadingIndicator:e})}),M(this,"getLoginUrl",()=>this.state.personalAccountType?"/login":Object(o.a)("/login",{next:"/business/create/"})),M(this,"toggleModalType",()=>this.setState(({fullPageModalType:e})=>"login"===e?{fullPageModalType:"signup"}:{fullPageModalType:"login"})),M(this,"CONTAINER_ID","InspiredWallSignup"),M(this,"showAdditionalStep",e=>(t,n,i)=>{this.setState({step:e,registrationCredentials:{type:t,userData:n,credentialsAndLoggingData:i}})}),M(this,"handlePostConnectClick",()=>{Object(l.a)("unauth.fb_email_reauth.post_connect.click")}),M(this,"handlePostSuccessConnect",()=>{Object(l.a)("unauth.fb_email_reauth.post_success.connect")}),M(this,"clearPassword",()=>{this.setState({password:""})}),M(this,"showSignupWelcomeLoadingFn",e=>{this.setState({showSignupWelcomeLoading:e}),this.props.handleShowingSignupWelcomeLoading&&this.props.handleShowingSignupWelcomeLoading(e)}),M(this,"getBusinessModalStyles",()=>this.props.activateAdsGrowthModalNormalization().anyEnabled?{modal:{width:"484px",margin:"15px 0px"},businessCreateDiv:{minHeight:"400px",padding:"21px 10px 24px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},spacingWrapper:{paddingTop:null,paddingBottom:null},title:{color:"#333",fontSize:"36px",fontWeight:"600",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",letterSpacing:"-1.2px",margin:"4px 26px 26px",textAlign:"center"},subtitle:{textAlign:"center",color:"#333",fontSize:"16px",fontWeight:"normal",margin:"-23px 26px 18px"},logoContainer:{display:"block",height:"45px",margin:"15px auto 8px",width:"45px"},logoSize:40,modalBoxWidth:484,businessModalClassName:null}:{modal:{},businessCreateDiv:{},spacingWrapper:{},title:F.brioTitle,subtitle:F.subtitle,logoContainer:F.brioLogo,logoSize:50,modalBoxWidth:400,businessModalClassName:"unauth-homepage-conversion-modal"}),M(this,"renderBusinessCreateButton",()=>{const{personalAccountType:e,step:t}=this.state,{scaleModal:n}=this.props;return t===W?null:Object(u.jsx)(d.f,{height:62,color:"lightGray",position:"absolute",bottom:!0,left:!0,width:"100%",dangerouslySetInlineStyle:{__style:{borderRadius:n?"0 0 32px 32px":"0 0 8px 8px"}},"data-test-id":"create-business-account-button",children:Object(u.jsx)(d.bb,{fullHeight:!0,onTap:({event:t})=>{this.setState(({personalAccountType:e})=>({personalAccountType:!e})),Object(l.a)(e?"unauth.home.pinner_business_toggle.pinner.click":"unauth.home.pinner_business_toggle.business.click"),Object(A.b)(101,{component:13096,element:10773,is_business_signup:!e}),Object(l.h)("press_business_signup")},children:Object(u.jsx)(d.f,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",children:Object(u.jsx)(d.cb,{weight:"bold",children:e?Object(u.jsx)(N,{}):s.a._("Create a personal account","signupModal.switchToPersonalAccountSignup","Button on signup modal to switch from business to personal signup.")})})})})}),this.state={email:e.email||"",emailValidationError:null,showLoadingIndicator:!1,password:"",age:void 0,gender:"",mfaCode:"",mfaPhoneNumberEnd:"",name:"",passwordValidationError:null,registrationCredentials:null,step:U,scrolling:"undefined"!=typeof window&&window.innerHeight<800,personalAccountType:!1!==e.simplifiedModalIsPersonalAccount,showSignupWelcomeLoading:!1,fullPageModalType:e.loginSignupModalType?"login":"signup"}}componentDidMount(){this.isScrolling(),window.addEventListener("resize",this.isScrolling.bind(this))}componentWillUnmount(){window.removeEventListener("resize",this.isScrolling.bind(this))}setNameFromEmail(){this.setState({name:Object(w.a)(this.state.email)})}isScrolling(){this.setState({scrolling:window.innerHeight<800})}handleDataChange(e,t){const n={};n[e]=t.target&&t.target.value||t.value,this.setState(n)}handleLoginWithMfa(e,t){const n={};n.step=B,n.mfaCreds=t,e&&e.phone_number_end&&(n.mfaPhoneNumberEnd=e.phone_number_end),this.setState(n)}changeStep(e){this.setState({step:e})}renderLoadingIndicator(){return this.state.showLoadingIndicator?Object(u.jsx)(v.a,{}):null}renderBrioTitle(){return this.state.step===W?Object(u.jsx)("div",{children:Object(u.jsx)("div",{style:F.brioTitle,children:s.a._("Add your email to finish","Tagline on facebook rerequest form on home page","Tagline on facebook rerequest form on home page")})}):this.state.step===z?Object(u.jsx)("div",{children:Object(u.jsx)("div",{style:F.brioTitle,children:s.a._("Sign up to see more")})}):this.state.step===B?Object(u.jsx)("div",{children:Object(u.jsx)("div",{style:{...F.brioTitle,...F.brioTitleMfa},children:s.a._("Two-Factor Authentication Required")})}):Object(u.jsxs)("div",{children:[Object(u.jsx)("div",{style:F.brioTitle,children:s.a._("Welcome to Pinterest","Title on desktop signup modal on home page","Title on desktop signup modal on home page")}),Object(u.jsx)("div",{style:F.subtitle,children:s.a._("Find new ideas to try","Value prop on desktop signup modal on home page","Value prop on desktop signup modal on home page")})]})}renderMainComponent(){const{step:e,registrationCredentials:t}=this.state;if(e===W){const e={width:"320px",margin:"auto"},t={width:"260px",margin:"auto"},n={width:"268px",margin:"auto",marginTop:"96px"},i=s.a._("We need your email address to complete this signup. Click the button below, and we can use the email associated with your Facebook account.","message to explain reauth step beneath the tagline on homepage","message to explain reauth step beneath the tagline on homepage");return Object(u.jsxs)("div",{style:e,children:[Object(u.jsx)("div",{style:F.confirmationMessage,children:i}),Object(u.jsx)("div",{style:t,children:Object(u.jsx)(m.a,{isRerequest:!0,container:"FBEmailRerequest",buttonText:s.a._("Continue with Facebook","Button text on facebook connect button on FB email reauth form","Button text on facebook connect button on FB email reauth form"),loadingIndicatorCallback:this.setLoadingIndicator,useGestaltTooltip:!0,handlePostConnectClick:this.handlePostConnectClick,handlePostSuccessConnect:this.handlePostSuccessConnect})}),Object(u.jsx)("div",{style:n,children:Object(u.jsx)(d.g,{text:s.a._("Not now","word on not now button to dismiss the FB email reauth form on homepage","word on not now button to dismiss the FB email reauth form on homepage"),onClick:()=>{this.changeStep(U)},color:"gray",size:"md"})})]})}return e===z&&t?Object(u.jsx)(d.f,{children:Object(u.jsx)(k.a,{container:this.props.container,loadingIndicatorCallback:this.setLoadingIndicator,registrationCredentials:t,showSignupWelcomeLoadingFn:this.showSignupWelcomeLoadingFn})}):e===B?Object(u.jsx)(O.a,{container:this.props.container||"inspired_banner_mfa",code:this.state.mfaCode,creds:this.state.mfaCreds,email:this.state.email,inputStyleOverrides:F.brioInputFields,onCodeChange:this.handleDataChange.bind(this,"mfaCode"),password:this.state.password,phoneNumberEnd:this.state.mfaPhoneNumberEnd}):Object(u.jsx)(d.f,{children:Object(u.jsx)(S.a,{age:this.state.age,container:this.props.container,email:this.state.email,emailValidationError:this.state.emailValidationError,gender:this.state.gender,loadingIndicatorCallback:this.setLoadingIndicator,name:this.state.name,passwordValidationError:this.state.passwordValidationError,onAgeChange:this.handleDataChange.bind(this,"age"),onEmailChange:this.handleDataChange.bind(this,"email"),onSocialConnectVerified:this.showAdditionalStep(z),onFBEmailDeniedPerm:()=>this.setState({step:W}),onGenderChange:this.handleDataChange.bind(this,"gender"),onLoginWithMfa:this.handleLoginWithMfa.bind(this),onNameChange:this.handleDataChange.bind(this,"name"),onPasswordChange:this.handleDataChange.bind(this,"password"),password:this.state.password,showSignupWelcomeLoadingFn:this.showSignupWelcomeLoadingFn,setNameFromEmail:this.setNameFromEmail.bind(this),sm:this.props.sm,clearPassword:this.clearPassword})})}renderPartnerTitle(){const e=this.getBusinessModalStyles();return Object(u.jsxs)("div",{children:[Object(u.jsx)("div",{style:e.title,children:s.a._("Welcome to Pinterest","businessSignupModal.title","Title on business signup modal.")}),Object(u.jsx)("div",{style:e.subtitle,children:s.a._("Grow your business","businessSignupModal.subtitle","Subtitle on business signup modal.")})]})}renderUnifiedSignup(){const{personalAccountType:e}=this.state,t={...F.brioModal,width:"400px"},n=this.getBusinessModalStyles();return Object(u.jsxs)("div",{className:n.businessModalClassName,style:{...t,...n.modal},children:[this.renderLoadingIndicator(),Object(u.jsx)(d.f,{display:"flex",direction:"row",justifyContent:"between",alignItems:"center",children:Object(u.jsx)(d.f,{width:Number(n.modalBoxWidth),children:Object(u.jsxs)("div",{style:F.brioModalWrapper,children:[Object(u.jsx)("div",{style:n.logoContainer,children:Object(u.jsx)(x.a,{size:Number(n.logoSize)})}),e?this.renderBrioTitle():this.renderPartnerTitle(),e?this.renderMainComponent():Object(u.jsx)("div",{style:n.businessCreateDiv,children:Object(u.jsx)(r.a,{isAuth:!1,unifiedSignup:!0})}),Object(u.jsx)(d.f,{height:62,marginTop:3,dangerouslySetInlineStyle:{__style:{borderRadius:"0 0 8px 8px"}}}),this.renderBusinessCreateButton()]})})})]})}renderWithValueProp(e){const t={...F.brioModal,width:"800px"};return Object(u.jsxs)("div",{style:t,children:[this.renderLoadingIndicator(),Object(u.jsx)("div",{style:F.brioModalWrapper,children:Object(u.jsxs)(d.f,{display:"flex",children:[Object(u.jsx)(d.m,{span:0,mdSpan:6,children:Object(u.jsx)(d.f,{dangerouslySetInlineStyle:{__style:{borderRight:"solid 1px #D8D8D8"}},children:(n=e,"enabled_features_variation"===n?Object(u.jsx)(P,{}):"enabled_stats_variation"===n?Object(u.jsx)(D,{}):null)})}),Object(u.jsx)(d.m,{span:6,mdSpan:6,children:Object(u.jsx)(d.f,{display:"flex",direction:"column",alignItems:"center",marginTop:7,children:Object(u.jsxs)(d.f,{children:[Object(u.jsx)("div",{style:F.brioLogo,children:Object(u.jsx)(x.a,{size:50})}),this.renderPartnerTitle(),Object(u.jsx)(r.a,{unifiedSignup:!0}),Object(u.jsx)(d.f,{height:62,children:Object(u.jsx)(d.bb,{fullHeight:!0,onTap:()=>{this.setState(()=>({personalAccountType:!0})),Object(l.a)("unauth.home.pinner_business_toggle.business.click"),Object(A.b)(101,{component:13096,element:10773,is_business_signup:!0})},children:Object(u.jsx)(d.f,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",children:Object(u.jsx)(d.cb,{weight:"bold",children:s.a._("Create a personal account")})})})})]})})})]})})]});var n}renderErrorToast(){const e=this.props.errorMessage||s.a._("Something went wrong.","Default error message","Default error message");return Object(u.jsx)(d.f,{display:"flex",alignItems:"center",justifyContent:"center",minHeight:73,marginTop:8,children:Object(u.jsx)(g,{color:"red",text:e})})}getToggleText(e,t){return"login"===e?s.a._("Sign up","sign up for account toggle on homepage","sign up for account toggle on homepage"):t?s.a._("Log into existing account","business.signup.loginCopyExp","Copy for business sign up page"):s.a._("Log in","Label for log in button","Label for log in button")}render(){const{email:e,hideToggle:t,scaleModal:n,onClose:i,shouldRenderErrorToast:o,showHPSignupCopy:r,showDismiss:s,nextUrlParam:c,activateJpDesktopFaqModal:p,inJPBrandCampaign:g,showSmallScreenTreatment:m}=this.props,{fullPageModalType:_,mfaCreds:j,personalAccountType:v}=this.state,O=!v;return Object(u.jsx)("div",{"data-test-id":"signup-modal-inspired",style:n?{height:"100%",width:"100%"}:{height:"100vh",overflowY:"scroll"},children:this.state.showSignupWelcomeLoading?Object(u.jsx)(C.a,{}):Object(u.jsxs)(d.f,{position:"relative",height:"100%",display:"flex",justifyContent:"center",children:[v?Object(u.jsxs)(d.f,{display:"flex",direction:"column",justifyContent:"center",height:n?"100%":"",children:[o&&this.renderErrorToast(),Object(u.jsxs)("div",{style:r?{...F.signupForm,display:"flex",justifyContent:"center"}:F.signupForm,children:[r&&Object(u.jsxs)(d.f,{maxWidth:900,children:[Object(u.jsx)("p",{className:"unauth-homepage-signup-title",style:{color:"white",alignSelf:"center",marginLeft:"4%",marginBottom:"2%",minWidth:"30%",maxWidth:"80%",fontSize:m?50:70,fontWeight:600},children:g?"Pinterest に登録してアイデアを見つけよう":Object(T.a)()}),p().anyEnabled&&Object(u.jsx)(h,{}),g&&Object(u.jsxs)(d.f,{display:"flex",alignItems:"start",justifyContent:"center",direction:"column",maxWidth:700,alignSelf:"center",dangerouslySetInlineStyle:{__style:{marginLeft:"4%"}},children:[Object(u.jsx)(y,{cardType:"education",showSmallScreenTreatment:m}),Object(u.jsx)(y,{cardType:"creator",showSmallScreenTreatment:m})]})]}),Object(u.jsx)(f.default,{container:"home_page",email:e,signupSource:"homePage",type:_,handleModalTypeSwitch:this.toggleModalType,toggleType:"SMALL_TOGGLE",renderBusinessCreateButton:this.renderBusinessCreateButton,handleShowingSignupWelcomeLoading:this.showSignupWelcomeLoadingFn,mfaCreds:j,toggleModalType:this.toggleModalType,scaleModal:n,nextUrlParam:c,showCloseIcon:s,handleCloseButtonClick:i})]})]}):Object(u.jsx)("div",{style:this.state.scrolling?F.contentWrapperScrolling:F.contentWrapper,children:Object(u.jsx)("div",{style:{...this.state.scrolling?F.spacingWrapperScrolling:F.spacingWrapper,...this.getBusinessModalStyles().spacingWrapper},children:Object(u.jsx)(d.f,{position:"relative",children:this.renderUnifiedSignup()})})}),!t&&Object(u.jsx)(d.f,{alignItems:"stretch","data-test-id":"login"===_?"signup-button":"login-button",height:9,left:!0,top:!0,marginStart:6,marginTop:12,minWidth:130,position:"absolute",children:Object(u.jsx)(d.g,{onClick:()=>{v?(Object(l.a)("unauth.home.toggle.click"),this.toggleModalType()):Object(a.a)(this.getLoginUrl())},text:this.getToggleText(_,O)})}),Object(u.jsx)(b.default,{container:this.CONTAINER_ID,handleSignupError:()=>{},handleLoginWithMfa:e=>{this.setState({step:B,mfaCreds:e,fullPageModalType:"loginMfa"})},handleLoginError:e=>{"email"===e.type?this.setState({emailValidationError:e.message}):"password"===e.type?this.setState({passwordValidationError:e.message}):"login"===e.type&&("invalidEmail"===e.formattedError?this.setState({emailValidationError:e.message}):this.setState({passwordValidationError:e.message}))},handleSignupConfirmed:this.showAdditionalStep(z),handleShowLogin:()=>{Object(a.a)(this.getLoginUrl())}})]})})}}function G(e){const t=Object(L.b)("web_unauth_jp_faq"),n=Object(L.b)("advertiser_growth_normalize_modal");return Object(u.jsx)(V,{...e,requestContext:Object(R.d)(),activateJpDesktopFaqModal:t,activateAdsGrowthModalNormalization:n})}},"eo+c":function(e,t,n){n.d(t,"c",(function(){return N})),n.d(t,"b",(function(){return B})),n.d(t,"a",(function(){return U}));var i=n("Bnd0"),o=n.n(i),r=n("HtlI"),a=n.n(r),s=n("8mvW"),c=n.n(s),l=n("obIb"),d=n.n(l),u=n("oJn+"),p=n.n(u),h=n("kuQG"),g=n.n(h),m=n("X/CP"),f=n.n(m),b=n("qYP9"),_=n.n(b),j=n("Ye/N"),y=n("yKe9"),v=n.n(y),O=n("x/xQ"),x=n.n(O),w=n("PEgZ"),S=n.n(w),C=n("k8ya"),k=n.n(C),T=n("jOPH"),E=n.n(T),I=n("SguC"),P=n.n(I),D=n("SDxC"),A=n.n(D),L=n("U5D8"),R=n.n(L),M=n("bn9T"),F=n.n(M);const N=["goodIdea","love","thanks","wow","haha"],B={7:"goodIdea",1:"love",13:"thanks",11:"wow",5:"haha"},U=(e,t="darkGray")=>({default:{staticAsset:"white"===t?a.a:o.a},goodIdea:{staticAsset:p.a,animatedAsset:c.a,gridAsset:d.a,label:j.a._("Good idea","Reaction label to tell a creator that their pin is a good idea","Reaction label to tell a creator that their pin is a good idea"),htmlStyle:"\n    @keyframes play90 {\n        0% {\n        background-position: 0px 0px;\n        }\n        100% {\n        background-position: -3600px 0px;\n        }\n    }\n    ",animationStyle:"play90 3000ms steps(90) infinite forwards",type:7},haha:{staticAsset:_.a,animatedAsset:g.a,gridAsset:f.a,label:j.a._("Haha","Reaction label to tell a creator that the pinner laughed because of their pin","Reaction label to tell a creator that the pinner laughed because of their pin"),htmlStyle:"\n    @keyframes play60 {\n        0% {\n        background-position: 0px 0px;\n        }\n        100% {\n        background-position: -2400px 0px;\n        }\n    }\n    ",animationStyle:"play60 2000ms steps(60) infinite forwards",type:5},love:{staticAsset:S.a,animatedAsset:v.a,gridAsset:x.a,label:j.a._("Love","Reaction label to tell a creator that the pinner loved their pin","Reaction label to tell a creator that the pinner loved their pin"),htmlStyle:"\n    @keyframes play90 {\n        0% {\n        background-position: 0px 0px;\n        }\n        100% {\n        background-position: -3600px 0px;\n        }\n    }\n    ",animationStyle:"play90 3000ms steps(90) infinite forwards",type:1},thanks:{staticAsset:P.a,animatedAsset:k.a,gridAsset:E.a,label:j.a._("Thanks","Reaction label to tell a creator thank you","Reaction label to tell a creator thank you"),htmlStyle:"\n    @keyframes play60 {\n        0% {\n        background-position: 0px 0px;\n        }\n        100% {\n        background-position: -2400px 0px;\n        }\n    }\n    ",animationStyle:"play60 2000ms steps(60) infinite forwards",type:13},wow:{staticAsset:F.a,animatedAsset:A.a,gridAsset:R.a,label:j.a._("Wow","Reaction label to tell a creator that the pinner was wowed by their pin","Reaction label to tell a creator that the pinner was wowed by their pin"),htmlStyle:"\n    @keyframes play90 {\n        0% {\n        background-position: 0px 0px;\n        }\n        100% {\n        background-position: -3600px 0px;\n        }\n    }\n    ",animationStyle:"play90 3000ms steps(90) infinite forwards",type:11}}[e]||null)},fHpQ:function(e,t,n){n.r(t);var i=n("q1tI"),o=n("/MKj"),r=n("eRoX"),a=n("2MPc"),s=n("+Der"),c=n("n6mq"),l=n("yjg8"),d=n("nKUr");function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p extends i.PureComponent{constructor(...e){super(...e),u(this,"state",{insertedBestPinsImages:[],insertedTopicImages:[],loading:!0,pinImages:[],seoPinImage:void 0}),u(this,"insertExtraImages",e=>this.setState({...e})),u(this,"getSEOPinImageToInsert",()=>{const{inNux:e,inRenux:t}=this.props;return e||t?this.getUnauthPinImages()[0]:void 0}),u(this,"getUnauthPinImages",(e=!1)=>{const t=e?a.a.getUnauthSessionsPins():a.a.getUnauthPins(),n=new Set;return t.filter(e=>e.images&&e.images["236x"]).map(e=>e.images["236x"]).filter(e=>{const t=n.has(e.url);return n.add(e.url),!t})}),u(this,"renderPinImage",e=>{const{data:t}=e,{height:n,url:i,width:o}=t;return Object(d.jsx)(c.C,{rounding:4,wash:!0,children:Object(d.jsx)(c.x,{alt:"pin-image",src:i,naturalWidth:o,naturalHeight:n})})}),u(this,"getBackgroundImages",()=>{const{insertedBestPinsImages:e,insertedTopicImages:t,pinImages:n,seoPinImage:i}=this.state,o=t.length+(i?1:0);let r=[];return r=r.concat(i||[]),r=r.concat(e),r=r.concat(t),r=r.concat(n.slice(o)),r})}componentDidMount(){const{defaultPinImages:e}=this.props,t=e?[...e]:r.a,n=this.getSEOPinImageToInsert();n&&t.unshift(n),this.setState({loading:!1,pinImages:t,seoPinImage:n})}componentDidUpdate(e){const{inNux:t,inRenux:n,nuxSelectedInterestImages:i,nuxStep:o}=this.props,r=e.nuxSelectedInterestImages,{seoPinImage:a}=this.state;if(r&&i&&r!==i){let e=[];if(t){i.length>r.length&&t&&(e=i[i.length-1].bestPinsImages||[])}const c=(t||n)&&"topic"===o&&0===e.length?i.filter(e=>!a||Object(s.d)(e)!==Object(s.d)(a)):[];this.insertExtraImages({insertedTopicImages:c,insertedBestPinsImages:e})}}render(){const{isFlexible:e}=this.props,{loading:t}=this.state,n=this.getBackgroundImages();return!t&&n&&Object(d.jsx)(c.f,{bottom:!0,left:!0,maxHeight:2500,overflow:"hidden",paddingY:6,paddingX:5,position:"absolute",right:!0,top:!0,dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},children:Object(d.jsx)(c.D,{comp:e=>this.renderPinImage(e),flexible:!!e,gutterWidth:Object(l.n)(!0,!0),items:n,minCols:l.j})})}}t.default=Object(o.connect)(e=>({nuxSelectedInterestImages:e.ui.nuxSelectedInterestImages&&e.ui.nuxSelectedInterestImages.images,nuxStep:e.ui.nuxProgress&&e.ui.nuxProgress.step}),()=>({}))(p)},fKCf:function(e,t){e.exports=/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E49\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},fNKF:function(e,t,n){n.d(t,"a",(function(){return o}));const i=(e,t)=>{if(t)for(const n of t)if(n in e.images)return e.images[n].url;return null},o=(e,t)=>{const{oneXSizes:n,twoXSizes:o,threeXSizes:r}=t,a=[],s=i(e,n);s&&a.push(s+" 1x");const c=i(e,o);c&&a.push(c+" 2x");const l=i(e,r);return l&&a.push(l+" 3x"),a.join(", ")}},fOPN:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ADD_SOURCE="dnd-core/ADD_SOURCE",t.ADD_TARGET="dnd-core/ADD_TARGET",t.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",t.REMOVE_TARGET="dnd-core/REMOVE_TARGET",t.addSource=function(e){return{type:t.ADD_SOURCE,payload:{sourceId:e}}},t.addTarget=function(e){return{type:t.ADD_TARGET,payload:{targetId:e}}},t.removeSource=function(e){return{type:t.REMOVE_SOURCE,payload:{sourceId:e}}},t.removeTarget=function(e){return{type:t.REMOVE_TARGET,payload:{targetId:e}}}},fpRd:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("q1tI").memo((function(e){var t=e.connect,n=e.src;if("undefined"!=typeof Image){var i=new Image;i.src=n,i.onload=function(){return t(i)}}return null}));i.displayName="DragPreviewImage",t.default=i},gC5q:function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n("YO3V"),o=n.n(i);function r(e,t=!1){return n=>{if(!o()(n))return t&&Array.isArray(n)?n.map(r(e,t)):n;const i={};return Object.keys(n).forEach(a=>{const s=e(n[a],a);o()(n[a])||t&&Array.isArray(n[a])?i[s]=r(e,t)(n[a]):i[s]=n[a]}),i}}function a(e,t=!1){const n=(t,n)=>e(n);return e=>r(n,t)(e)}function s(e={},t=[]){return Object.keys(e).reduce((n,i)=>t.includes(i)?n:{...n,[i]:e[i]},{})}},gI5O:function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=n("q1tI");const o=Object(i.createContext)(null),r=o.Provider;o.Provider;function a(){const e=Object(i.useContext)(o);return null==e?void 0:e.featuredCommentId}},gYog:function(e,t,n){n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var i=n("q1tI"),o=n("/MKj"),r=(n("T+9/"),n("ZbwW")),a=n("D2p8"),s=n("U4JR");n("QAzJ"),n("nKUr");const c={Article:{impressionType:"articleImpressions",idType:"articleIdStr",eventType:3829},Pin:{impressionType:"pinImpressions",idType:"pinIdStr",eventType:18},Board:{impressionType:"boardImpressions",idType:"boardIdStr",eventType:3700},Interest:{impressionType:"topicImpressions",idType:"topicIdStr",eventType:3703},Search:{impressionType:"searchImpressions",idType:"term",eventType:3803},Story:{impressionType:"storyImpressions",idType:"storyIdStr",eventType:170},ActivationCard:{impressionType:"activationCardImpressions",idType:"experienceIdStr",eventType:8547},User:{impressionType:"userImpressions",idType:"userIdStr",eventType:3704},News:{impressionType:"newsHubData",idType:"newsIdStr",eventType:4110},Guide:{impressionType:"guideImpressions",idType:"term",eventType:7573},TodayArticle:{impressionType:"todayArticleImpressions",idType:"todayArticleIdStr",eventType:8569},Banner:{impressionType:"bannerImpressions",idType:"userIdStr",eventType:9061},Comment:{impressionType:"commentImpressions",idType:"commentIdStr",eventType:9127}};function l({closeupImpressionType:e,closeupNavigationType:t,componentType:n,contextLogData:l,elementType:d,impressionAuxFields:u,inImpressionExp:p,impressionType:h,impressionsFramework:g,isPaused:m,loggingId:f,objectIdStr:b,slotIndex:_,trackCarousel:j,viewData:y,viewParameter:v,viewType:O}){const x=Object(o.useSelector)(({pins:e})=>e),w=Object(r.a)(x[f||""]||{}),S=g||a.c,C=Object(i.useRef)(null),k=i=>{const o=c[h],r=o.idType,a={endTime:i.endTime,[r]:f,slotIndex:_,time:i.startTime,renderDuration:i.endTime-i.startTime,type:e,...u,forcedExit:"removed"===i.forcedExit?0:void 0},p={component:n,objectIdStr:b,view:O,viewData:y||{},viewParameter:v,...l};if(j){if(w){var g,m,x;Object(s.b)(7352,{eventData:{pinCarouselSlotImpressions:[{...a,carouselDataId:Number(w.id),carouselSlotId:(null===(g=w.carousel_slots)||void 0===g?void 0:g[null!==(m=w.index)&&void 0!==m?m:0])&&Number(w.carousel_slots[null!==(x=w.index)&&void 0!==x?x:0].id),slotIndex:w.index}]},...p})}}else Object(s.b)(o.eventType,{closeup_navigation_type:t,element:d,eventData:{[o.impressionType]:[a]},...p})},T=Object(i.useCallback)(()=>{try{C.current instanceof HTMLElement&&S.start(C.current).onExitViewport(k).setDebugId(f||"unknown")}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}},[C.current]);Object(i.useEffect)(()=>(p&&!S.inExperiment&&S.setExperimentStatus(!0),m||T(),()=>{C.current instanceof HTMLElement&&S.stop(C.current)}),[T]);const E=Object(i.useRef)(m);return Object(i.useEffect)(()=>{E.current&&!m&&T(),E.current=m},[m,T]),C}const d=({children:e,...t})=>e({impressionTrackerRef:l(t)})},gdcG:function(e,t,n){n.d(t,"a",(function(){return r}));var i=n("2WXK"),o=n("nKUr");function r(e){return function(t){const{isHovering:n,hoverHandlers:r}=Object(i.a)();return Object(o.jsx)(e,{...t,hoverHandlers:r,isHovering:n})}}},h5nQ:function(e,t,n){n.d(t,"a",(function(){return L}));var i=n("q1tI"),o=n("NwVv"),r=n("jfLK"),a=n("HU+g");var s=({facebookAccessTokenRefreshIsEnabled:e,i18n:t,onError:i,onSuccess:o,rerequestFacebookEmail:r})=>{let s=null;const c=e=>{if("facebook"===e.network){const t=e.id;t&&"string"!=typeof t&&(e.error_message="Facebook id must be of string type")}clearInterval(s),e.error_message?i(e):o(e)};if(window.addEventListener("message",e=>{const t=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");e.origin===t&&"social-connect-complete"===e.data.type&&c(e.data)}),r)n.e("facebookEnsureInitForDesktop").then(n.bind(null,"TvzZ")).then(({default:t})=>{t(e=>{e.login(e=>{const t=e.authResponse,n=t&&t.grantedScopes&&t.grantedScopes.split(","),r=t&&t.userId,a=(n||[]).includes("email"),s={id:r};"connected"===e.status&&a?o(s):i(s)},{scope:"email",auth_type:"rerequest",return_scopes:!0})},e)});else{const e=(()=>{const e=screen.width,t=screen.height;return"scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=580,height=400,left="+Math.round((e-580)/2)+",top="+(t>400?Math.round((t-400)/2):0)})(),n=window.open("/connect/facebook/","",e);if(!n)return Object(a.a)(t._("You must enable popups!")),void i({network:"facebook",alertedUpstream:!0});s=setInterval(()=>{n.closed&&(clearInterval(s),c({network:"facebook",error_message:"Window closed."}))},1e3)}},c=n("0K1N"),l=n("C+VH"),d=n("n6mq"),u=n("nKUr");function p({anchor:e,message:t,children:n}){const[o,r]=Object(i.useState)(!!t);return Object(i.useEffect)(()=>{r(!!t)},[t]),o&&t?Object(u.jsx)(d.L,{anchor:e,color:"darkGray",idealDirection:"right",onDismiss:()=>r(!0),shouldFocus:!1,size:"md",children:Object(u.jsx)(d.f,{column:12,padding:3,children:n?Object(u.jsx)("span",{children:n}):Object(u.jsx)("span",{dangerouslySetInnerHTML:{__html:t},style:{overflowWrap:"break-word",wordWrap:"break-word",color:"white",fontWeight:"bold"}})})}):null}var h=n("j3zy"),g=n("l/EB"),m=n("cPMF");var f=(e,t)=>{if(!Object(m.a)(e)&&!Object(g.a)(e))return!1;const n=new Date;if(Number.isNaN(n.getTime()))return!1;if(!Object(m.a)(e)){const i=new Date(n.getFullYear()-t,n.getMonth(),n.getDate());return new Date(e)<=i}const i=n.getFullYear()-t-1;return new Date(e).getFullYear()<=i},b=n("kJuv"),_=n("sv3x"),j=n("aa0I"),y=n("1CXt"),v=n("J6c4"),O=n("QAzJ"),x=n("28DW"),w=n("yweb"),S=n("Zswh"),C=n("J8m7"),k=n("2hay"),T=n("VL22"),E=n("aOj9"),I=n("pLLR"),P=n("iMWs");function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class A extends i.Component{constructor(...e){super(...e),D(this,"getContainerName",()=>{let e;return window.fbConnectButtonContainerStack&&window.fbConnectButtonContainerStack[window.fbConnectButtonContainerStack.length-1]&&(e=window.fbConnectButtonContainerStack[window.fbConnectButtonContainerStack.length-1]),e}),D(this,"profilePicButtonConnectSuccess",e=>{const{handlePostSuccessConnect:t,isAccountSwitch:n,loadingIndicatorCallback:i,pageContext:o,isBusiness:r=!1}=this.props;i&&i(!0);const a={facebook_id:e.userID,facebook_token:e.accessToken},s={container:this.getContainerName(),hybridTier:null==o?void 0:o.hybridTier,page:null==o?void 0:o.pageType,is_business:r};this.loginWithFacebook(a,s,this.profilePicButtonRegisterWithFacebook,n,t,i),this.contextLogSignupLoginEvent(7534)}),D(this,"statusChangeCallback",e=>{const{connectErrorMessage:t}=this.props;let n;"connected"===e.status?(Object(x.a)("web.facebook_connect_button.login_status.connected"),this.profilePicButtonConnectSuccess(e.authResponse),n="success"):"not_authorized"===e.status?(Object(x.a)("web.facebook_connect_button.cancel.not_authorized"),Object(a.a)(t),n="not_authorized"):(Object(x.a)("web.facebook_connect_button.cancel.unknown"),Object(a.a)(t),n="other_error");const{handlePostConnectClick:i}=this.props;i&&i(n)}),D(this,"handleConnectClick",()=>{const{connectErrorMessage:e,desktopCoreLoginContext:{facebookAccessTokenRefreshIsEnabled:t,getDeviceAppTypeString:n},i18n:i}=this.props;Object(x.a)("fallback_facebook_button.click"),Object(x.h)("press_facebook_login_fallback"),Object(x.a)("unauth_web.facebook_connect.manual.attempt"),Object(x.a)("unauth_web.social_connect.facebook."+n()),s({facebookAccessTokenRefreshIsEnabled:t,i18n:i,onSuccess:e=>{this.onFacebookConnectSuccess(e)},onError:t=>{Object(x.a)("unauth_web.facebook_connect.manual.failure"),t.alertedUpstream||Object(a.a)(e)},rerequestFacebookEmail:this.rerequestFacebookEmail})}),D(this,"profilePicButtonRegisterWithFacebook",(e,t,n)=>{const{disablePostSignupNextUrl:i,desktopCoreLoginContext:{facebookAccessTokenRefreshIsEnabled:o,register:r},i18n:s,loadingIndicatorCallback:c,nextUrlParam:d,onFBPhoneOnlyConnectVerified:u,onFBEmailDeniedPerm:p,onSocialConnectVerified:g,requestContext:{country:m},showSignupWelcomeLoadingFn:b,showResponseMessageModal:j}=this.props,y=()=>{c&&c(!1),e?(this.contextLogSignupLoginEvent(7488),Object(a.a)(s._("Email required for registration."))):this.navigate("/join/register/facebook/")},v=e=>{if(u&&e.socialConnectData&&!e.socialConnectData.email){const i=Object.assign({},t,n);u(T.a.FACEBOOK,e.socialConnectData,i)}else e.socialConnectData&&!e.socialConnectData.email?Object(k.c)("email").then(({hasPerm:e})=>{!e&&p?p():y()},y):y()},O=e=>{this.contextLogSignupLoginEvent(7487);const{showResponseMessageModal:t}=this.props;t?t(!0):_.b.handleSignupRedirect(d,i)},x=Object(T.d)(m)||Object(T.c)(m),w=()=>{Object(h.a)(o).then(l.a).then(e=>r({...e,...t,...n})).then(O,v)};g&&x?Object(h.a)(o).then(e=>{if(e.email)if(e.birthday&&f(e.birthday,18))!j&&b&&b(!0),w(),this.contextLogSignupLoginEvent(7537);else{c&&c(!1);const i=Object.assign({},t,n);g(T.a.FACEBOOK,e,i)}else w()},v):w()}),D(this,"registerWithFacebook",(e,t,n)=>{const{disablePostSignupNextUrl:i,desktopCoreLoginContext:{facebookAccessTokenRefreshIsEnabled:o,register:r},nextUrlParam:s,onSocialConnectVerified:c,onFBPhoneOnlyConnectVerified:d,requestContext:{country:u},i18n:p}=this.props,g=i=>{if(this.props.loadingIndicatorCallback&&this.props.loadingIndicatorCallback(!1),d&&i.socialConnectData&&!i.socialConnectData.email){const e=Object.assign({},t,n);d(T.a.FACEBOOK,i.socialConnectData,e)}else e?(this.contextLogSignupLoginEvent(7488),this.rerequestFacebookEmail=!0,Object(a.a)(p._("Email required for registration."))):this.navigate("/join/register/facebook/")};c&&Object(T.d)(u)?Object(h.a)(o).then(e=>{c(T.a.FACEBOOK,e,n)},g):(Object(h.a)(o).then(l.a).then(e=>r({...e,...n})).then(()=>{this.contextLogSignupLoginEvent(7487);const{showResponseMessageModal:e}=this.props;e?e(!0):_.b.handleSignupRedirect(s||window.location.pathname,i)},g),this.contextLogSignupLoginEvent(7537))}),D(this,"navigateAfterLogin",()=>{const{showResponseMessageModal:e}=this.props;e?e(!0):_.b.handleRedirect(this.props.nextUrlParam||_.b.defaultSocialLoginRedirectUrl())})}handleMessageEvent(e){Object(k.i)(e,e=>Object(x.a)("unauth_web."+e))}componentDidMount(){"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,window.addEventListener("message",this.handleMessageEvent,!1));const{requestContext:{userAgent:{platform:e}}}=this.props;if(["ios","ipad"].includes(e))if(1!==window.fb_init&&2!==window.fb_init)this.initializeFB();else if(2===window.fb_init&&window.FB.XFBML)window.FB.XFBML.parse();else{const e=setInterval(()=>{2===window.fb_init&&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);this.props.isRerequest&&(this.props.loadingIndicatorCallback&&this.props.loadingIndicatorCallback(!1),this.props.showSignupWelcomeLoadingFn&&this.props.showSignupWelcomeLoadingFn(!1))}componentDidUpdate(){window.nextUrlParam=this.props.nextUrlParam}componentWillUnmount(){if("undefined"!=typeof window){if(window.fbButtonMounted-=1,window.fbConnectButtonContainerStack){const 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),window.removeEventListener("message",this.handleMessageEvent)}}loginWithFacebook(e,t,n,i,r,s){const{container:c,i18n:l,onLoginWithMfa:d,onLoginWithSuspended:u,preventRegister:p,desktopCoreLoginContext:{getDeviceAppTypeString:h,getLoginContext:g}}=this.props;Object(b.a)(e,g(),t,i).then((e={})=>{var t,n;const a=null===(t=e.resource_response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.user;i&&a&&Object(o.a)(a,"facebook",c),Object(x.a)("login.facebook."+h()),this.contextLogSignupLoginEvent(7536),this.navigateAfterLogin(),null==r||r()},i=>{if(this.contextLogSignupLoginEvent(7535),i.api_error_code===C.t)null==s||s(!1),Object(x.a)("login.facebook."+h()),null==d||d(e,i.data);else if(i.api_error_code===C.v||i.api_error_code===C.j){if(p)return void p("facebook");n(i,e,t)}else i&&i.api_error_code&&Object(x.a)("facebook_button.failed_login_"+i.api_error_code),i&&i.api_error_code===C.x&&u?u():Object(a.a)(l._("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."))})}onFacebookConnectSuccess(e){const{container:t,isBusiness:n=!1,pageContext:i}=this.props;Object(x.a)("unauth_web.facebook_connect.manual.success");const o={facebook_id:e.id,facebook_token:e.access_token},r={container:t,hybridTier:null==i?void 0:i.hybridTier,page:null==i?void 0:i.pageType,is_business:n};this.loginWithFacebook(o,r,this.registerWithFacebook),this.contextLogSignupLoginEvent(7534)}initializeFB(){const{requestContext:{locale:e}}=this.props;null!==this.profilePicButton&&(void 0!==window.FB&&null!==window.FB?window.FB.XFBML.parse():(window.fbAsyncInit=()=>Object(k.g)(),((t,n,i)=>{const o=t.getElementsByTagName(n)[0];if(t.getElementById(i))return;const r=t.createElement(n);r.id=i,r.src=Object(c.a)(e),o.parentNode&&o.parentNode.insertBefore(r,o)})(document,"script","facebook-jssdk")))}checkLoginState(){window.FB.getLoginStatus((function(e){this.statusChangeCallback&&this.statusChangeCallback(e)}))}contextLogSignupLoginEvent(e){const{logContextEvent:t,desktopCoreLoginContext:{viewer:n}}=this.props;t({event_type:e,aux_data:{...Object(y.a)(n.type),signup_login_method:2}}),"UNAUTH"===n.type&&(Object(x.h)("press_facebook_login"),Object(x.a)("unauth_web.facebook_connect.manual.attempt"))}renderProfilePicButtonWithFallback(){const{type:e,i18n:t,isRerequest:n,showFallback:i,styleOverrides:o,shouldUseWiderSocialButtons:a}=this.props,{buttonText:s,inline:c}=this.props;let l={backgroundClip:"padding-box",backgroundColor:"#1877F2",display:"block",fontWeight:"normal",height:"40px",marginTop:"0px",padding:"0px 0px 0px 8px",position:"absolute",textAlign:"left",transition:"opacity .2s linear",width:"100%",borderRadius:"20px"};return c&&(l={...l,width:"48%",display:"inline-block"}),i&&(l={...l,position:"relative"}),o&&o.button&&(l={...l,...o.button}),Object(u.jsxs)(d.f,{"data-test-id":"facebook-connect-button",ref:e=>{this._fallbackButton=e},children:[Object(u.jsx)(r.b,{className:"FacebookConnectButton",onClick:this.handleConnectClick,styleOverrides:l,tabIndex:-1,children:Object(u.jsxs)(d.f,{display:"flex",children:[Object(u.jsx)(d.f,{color:"white",rounding:"circle",marginStart:1,dangerouslySetInlineStyle:{__style:{paddingTop:4,paddingBottom:3,paddingRight:3,paddingLeft:3}},height:24,width:24,children:Object(u.jsx)(d.v,{accessibilityLabel:t._("facebook","accessible label for facebook icon","accessible label for facebook icon"),color:"blue",icon:"facebook",inline:!0,size:19})}),Object(u.jsx)("span",{style:{color:"#fff",display:"inline-block",fontFamily:v.b,fontSize:"16px",fontWeight:"bold",letterSpacing:"0.1px",lineHeight:"15px",marginRight:"24px",marginLeft:"15px",paddingTop:"4px",textAlign:"center",verticalAlign:"text-bottom",WebkitFontSmoothing:"auto",whiteSpace:"normal",width:"88%",...(null==o?void 0:o.text)||{}},children:s})]})}),!i&&Object(u.jsx)("div",{ref:e=>{this.profilePicButton=e},style:{height:40,textAlign:"left"},children:Object(u.jsx)("div",{className:"fb-login-button","data-auth-type":n?"rerequest":void 0,"data-button-type":"login"===e?"login_with":"continue_with","data-layout":"rounded","data-onlogin":"checkLoginState","data-scope":k.b.join(","),"data-size":"large","data-use-continue-as":"login"===e?"false":"true","data-width":a?"280px":"268px"})})]})}render(){const{styleOverrides:e,tooltip:t,useGestaltTooltip:n}=this.props,i={position:"relative",...e&&e.container||{}};return Object(u.jsxs)("div",{style:i,children:[this.renderProfilePicButtonWithFallback(),!!t&&(n?Object(u.jsx)(p,{anchor:this._fallbackButton,message:t}):Object(u.jsx)("div",{style:{top:12,left:"100%",position:"absolute"},children:Object(u.jsx)(j.b,{message:t})}))]})}}function L(e){const t=Object(w.c)(),n=Object(S.a)(),i=Object(I.d)(),o=Object(E.d)(),r=Object(P.b)(),{anyEnabled:a}=Object(O.b)("wider_fb_button_for_translations")({dangerouslySkipActivation:!0});return Object(u.jsx)(A,{...e,connectErrorMessage:t._("Couldn't connect. You must authorize Pinterest."),desktopCoreLoginContext:o,i18n:t,logContextEvent:n,requestContext:i,pageContext:r,shouldUseWiderSocialButtons:a})}},h7e3:function(e,t,n){n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return f}));var i=n("3R0Q"),o=n("EHyI"),r=n("SyXB"),a=n("FylZ"),s=n("mRg4"),c=n("XtwW"),l=n("fZG9"),d=n("3/Bf");const u={},p=(e,t)=>{t.forEach(t=>{u[t]=(({name:e,pwtStaticContext:t})=>{if(!c.a||!Object(o.a)())return null;const n={type:"stopwatch",name:e},r=[];let d=!0;return{abort:e=>{d&&(d=!1,Object(s.a)({metricId:n,pwtStaticContext:t,result:{type:"ABORT",reason:e}}))},annotate:e=>{d&&r.push({label:e,timestamp:c.a.now()})},stop:()=>{if(!d)return;d=!1;const e={type:"COMPLETE",traceId:Object(a.a)(),startTime:0,endTime:c.a.now(),spans:[],annotationMap:Object(i.a)(r),binaryAnnotationMap:Object(l.a)({metricId:n,pwtStaticContext:t})};Object(s.a)({metricId:n,pwtStaticContext:t,result:e})}}})({name:t,pwtStaticContext:e})})},h=e=>u[e],g=(e,t)=>{const n=h(e);if(n)try{n.abort(t)}catch(i){Object(d.b)("app_load_stopwatch_error",{name:e,result:"abort"})}},m=(e,t)=>{const n=h(e);n&&(n.annotate(t),Object(r.c)(`stopwatch_${e}_${t}`))},f=e=>{const t=h(e);if(t)try{t.stop()}catch(n){Object(d.b)("app_load_stopwatch_error",{name:e,result:"complete"})}}},hNZC:function(e,t,n){n.d(t,"a",(function(){return b}));var i=n("q1tI"),o=n("jfLK"),r=["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"],a=n("d2Eh"),s=n("0/lC"),c=n("tvGs"),l=n("qpbZ"),d=n("QAzJ"),u=n("28DW"),p=n("yweb"),h=n("n6mq"),g=n("nKUr");function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends i.Component{constructor(...e){super(...e),m(this,"state",{domainError:"",newEmail:"",showAgeInput:this.props.showAgeInput}),m(this,"emailDomainRef",Object(i.createRef)()),m(this,"handleEmailChange",e=>{const{onEmailChange:t}=this.props;t&&t(e)}),m(this,"handleEmailBlur",()=>{const{checkEmailExistsWithCompletion:e,email:t,handleExistingEmail:n,isSignupForm:i,onEmailBlur:o}=this.props,{showAgeInput:a}=this.state;o&&o(),t&&t.length>0&&e&&e(t,()=>{i&&Object(u.a)("web.unauth.signup.email_entered"),i&&a&&this.setState({showAgeInput:!1}),n&&n(!0)},()=>{i&&!a&&this.setState({showAgeInput:!0}),n&&n(!1)});const c=t&&-1!==t.indexOf("@")?t.split("@"):[];if(t&&t!==this.state.newEmail||this.setState({domainError:""}),t&&c&&t.length<60){if(2===c.length){const e=c[1],t=e&&-1!==e.indexOf(".")?e.split("."):[];if(t.length>=2&&"gmail"===t[0])if("com"!==t.slice(1).join(".")){const e=c[0]+"@gmail.com";this.setEmailTypoSuggestion(e)}else this.setState({domainError:""})}const e=c[1]&&r.includes(c[1])?null:c[1]&&r.map(e=>{const t=Object(s.a)(e,c[1]);return 2===t||1===t?e:null}).filter(e=>"string"==typeof e);if(e&&e.length){const t=e[0]?`${c[0]}@${e[0]}`:"";this.setEmailTypoSuggestion(t)}}}),m(this,"handleSignUp",()=>{this.state.showAgeInput?Object(u.h)("press_signup_continue"):Object(u.h)("press_login_continue")}),m(this,"renderLoginButtons",()=>{const{disableEmailLogin:e,buttonText:t,buttonTextLabel:n}=this.props;return Object(g.jsx)("div",{"data-test-id":"registerFormSubmitButton",children:Object(g.jsx)(o.b,{accessibilityLabel:n,className:"red SignupButton",disabled:e||!1,onClick:this.handleSignUp,styleOverrides:{width:"100%",borderRadius:"20px"},type:"submit",children:Object(g.jsx)("div",{children:t})})})}),m(this,"handleFocusPassword",()=>{Object(u.h)("focus_password")}),m(this,"handleEmailKeyDown",({event:e})=>{switch(e.keyCode){case a.a.UP:e.preventDefault(),this.emailDomainRef.current&&this.emailDomainRef.current.handleUp();break;case a.a.DOWN:e.preventDefault(),this.emailDomainRef.current&&this.emailDomainRef.current.handleDown();break;case a.a.ENTER:e.preventDefault(),this.emailDomainRef.current&&this.emailDomainRef.current.handleEnter()}})}static getDerivedStateFromProps(e,t){return e.email===t.newEmail?{domainError:"",newEmail:""}:null}setEmailTypoSuggestion(e){const{i18n:t}=this.props,n=Object(l.b)(t._("Did you mean {{ newEmail }}?"),{newEmail:Object(g.jsx)(h.cb,{color:"red",inline:!0,size:"md",weight:"bold",children:e},"err_text")});this.setState({domainError:n,newEmail:e}),this.props.email===e?this.setState({domainError:""}):Object(u.a)("unauth.email_domain_typo_suggestion.shown")}render(){const{age:e,ageValidationError:t,disableEmailLogin:n,email:o,emailFieldHasError:r,emailLabel:a,emailText:s,emailValidationError:l,hideEmailField:d,hideFacebookButton:u,hideGoogleButton:p,hidePasswordField:m,inputStyleOverrides:f,onAgeBlur:b,onAgeChange:_,onButtonClick:j,onPasswordChange:y,password:v,passwordFieldVisible:O,passwordText:x,passwordValidationError:w,renderPasswordResetLink:S,suppressFocus:C,i18n:k,isRTL:T,isFixEmailAutoCompleteEnabled:E}=this.props;let I={WebkitTransition:"opacity 0.5s linear",transition:"opacity 0.5s linear",display:"flex",opacity:1,alignItems:"center",justifyContent:"space-between",height:"100%"};!1===O&&(I={WebkitTransition:"opacity 0.5s linear",transition:"opacity 0.5s linear",pointerEvents:"none",display:"none",opacity:0});let P=l;return P||!m&&!n||(u||p?!u&&p?P=k._("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"):u&&!p&&(P=k._("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")):P=k._("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")),Object(g.jsxs)("form",{"data-test-id":"registerForm",method:"POST",noValidate:!0,onSubmit:e=>{e.preventDefault(),j(e)},children:[!d&&Object(g.jsx)(h.f,{"data-test-id":"emailInputField",children:Object(g.jsx)(c.b,{accessibilityLabel:a,autoComplete:E?"email":"username",domainError:this.state.domainError,fieldsetStyleOverrides:{marginBottom:"7px"},focused:!C,hasError:!!l||!!r,id:"email",inputStyleOverrides:f,name:"id",onBlur:this.handleEmailBlur,onChange:this.handleEmailChange,placeholder:s,tooltip:P,type:"email",useGestalt:!0,value:o,onKeyDown:this.handleEmailKeyDown,isRTL:T})}),!m&&Object(g.jsxs)(i.Fragment,{children:[Object(g.jsx)(h.f,{"data-test-id":"passwordInputField",children:Object(g.jsx)(c.b,{autoComplete:"new-password",disabled:!!n,hasError:!!w,id:"password",inputStyleOverrides:{...f,...I},name:"password",onChange:y,onFocus:this.handleFocusPassword,placeholder:x,tooltip:w,type:"password",useGestalt:!0,value:v,isRTL:T,focused:!!d&&!C})}),Object(g.jsx)(h.f,{"data-test-id":"password-reset-button",children:S?S():null})]}),!m&&this.state.showAgeInput?Object(g.jsx)(h.f,{"data-test-id":"ageInputField",children:Object(g.jsx)(c.b,{accessibilityLabel:"age",autoComplete:"off",fieldsetStyleOverrides:{marginTop:"4px"},hasError:!!t,id:"age",inputStyleOverrides:{...f},name:"age",onBlur:b,onChange:_,placeholder:k._("Age"),tooltip:t,type:"text",useGestalt:!0,value:e,isRTL:T})}):null,window.recaptchaCount>0?Object(g.jsx)("div",{className:"g-recaptcha",id:"recaptcha_placeholder_"+window.recaptchaCount,style:{marginTop:"16px",transform:"scale(0.88)",transformOrigin:"0 0"}}):null,!m&&this.renderLoginButtons()]})}}function b(e){const t=Object(p.c)(),{hideEmailField:n}=e,i=Object(d.b)("web_fix_email_autocomplete_login_modal"),o=!n&&i().anyEnabled;return Object(g.jsx)(f,{...e,i18n:t,isFixEmailAutoCompleteEnabled:o})}},hUD8:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("bVT4"),o=function(){function e(e){this.entered=[],this.isNodeInDocument=e}return e.prototype.enter=function(e){var t=this,n=this.entered.length;return this.entered=i.union(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0},e.prototype.leave=function(e){var t=this.entered.length;return this.entered=i.without(this.entered.filter(this.isNodeInDocument),e),t>0&&0===this.entered.length},e.prototype.reset=function(){this.entered=[]},e}();t.default=o},he3k:function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s}));const i=48,o=i+8,r=Object.freeze({TOP:0,REPLY_TO_TRIED:1,REPLY_TO_AGGREGATED:2}),a="comment_featured_ids",s="did_it_featured_ids"},i2ZS:function(e,t,n){async function i(e){if("undefined"==typeof TextEncoder)return"";const t=(new TextEncoder).encode(e),n=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,"0")).join("")}n.d(t,"a",(function(){return i}))},i9se:function(e,t,n){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var i=n("Y+p1"),o=n.n(i),r=n("QkVN"),a=n.n(r),s=n("KFEb");const c={boardactivity:"BoardActivityResource",boardactivitycomment:"BoardActivityCommentResource"},l={BOARD:"board",BOARD_ACTIVITY:"boardactivity",BOARD_ACTIVITY_COMMENT:"boardactivitycomment"},d={[l.BOARD]:s.a.BOARD_ACTIVITYITEMS,[l.BOARD_ACTIVITY]:s.a.BOARD_ACTIVITYCOMMENTS,[l.BOARD_ACTIVITY_COMMENT]:s.a.BOARD_ACTIVITYCOMMENTS},u={},p=(e,t)=>{const n={...a()({},e,t),...t.content?{content:t.content}:Object.freeze({}),...t.reaction_counts?{reaction_counts:t.reaction_counts}:Object.freeze({})};return o()(e,n)?e:n},h=e=>e.reduce((e,t)=>{if(11===t.activity_type&&t.comment&&t.ref_board_activity){const n=t.comment,i=t.ref_board_activity;n&&i&&(e.push({...n,user:t.user}),e.push(i),e.push({...t,comment:{id:n.id},ref_board_activity:{id:i.id}}))}else e.push(t);return e},[]);t.d=(e=u,t)=>{if("RESOURCE_FETCH_COMPLETE"===t.type||"RESOURCE_FETCH_MORE_COMPLETE"===t.type){const{payload:{data:n,name:i,options:o}}=t;if("BoardActivityCommentFeedResource"===i){const t=(n||[]).reduce((t,n)=>(t[n.id]=p(e[n.id],n),t),{});return{...e,...t}}if("BoardActivityFeedResource"===i){const t=h(n||[]).reduce((t,n)=>(t[n.id]=p(e[n.id],n),t),{});return{...e,...t}}if("BoardActivityResource"===i&&n){const t=n;return{...e,[t.id]:p(e[t.id],t)}}if("BoardActivityCommentResource"===i&&n){const t=n,i={[t.id]:p(e[t.id],t)};if(t.root_board_activity){const n=t.root_board_activity.id;i[n]=p(e[n],t.root_board_activity)}return{...e,...i}}if("NewsHubDetailsResource"===i&&n&&n.length>0&&n[0].content_items){const t={};return n.forEach(e=>{e.content_items.forEach(e=>{const n=e.content_object&&e.content_object.type;if(n===l.BOARD_ACTIVITY_COMMENT||n===l.BOARD_ACTIVITY){const n=e.content_object;h([n]).forEach(e=>t[e.id]=e)}})}),{...e,...t}}if(["PinResource","PinPageResource"].includes(i)&&n&&n.board_activity){const t=n.board_activity;return t.board=n.board,{...e,[t.id]:p(e[t.id],t)}}if(("BoardFeedResource"===i||"BoardSectionPinsResource"===i)&&("react_grid_pin_with_board_activity"===o.field_set_key||"partner_react_grid_pin_with_board_activity"===o.field_set_key)||"BoardActivityPinsFeedResource"===i){const t=(n||[]).reduce((t,n)=>{const i=n.board_activity;return i&&i.id&&(t[i.id]=p(e[i.id],i)),t},{});return{...e,...t}}}else{if("ACTIVITY_ITEM_CREATED"===t.type){const{payload:{activityItem:n}}=t;return{...e,[n.id]:n}}if("ACTIVITY_ITEM_DELETED"===t.type){const{payload:{activityId:n,activityType:i}}=t;if(i===l.BOARD_ACTIVITY_COMMENT||i===l.BOARD_ACTIVITY){const t={...e};return delete t[n],t}}else{if("ACTIVITY_ITEM_UPDATED"===t.type){const{payload:{data:n}}=t;return{...e,[n.id]:p(e[n.id],n)}}if("UPDATE_ACTIVITY_ITEM_COMMENT_COUNT"===t.type){const{payload:{increment:n,id:i}}=t,o=e[i];if(o&&[l.BOARD_ACTIVITY_COMMENT,l.BOARD_ACTIVITY].includes(o.type)){const t={...o,comment_count:n?o.comment_count+1:o.comment_count-1};return{...e,[i]:t}}}else if("ACTIVITY_ITEM_UPDATE_REACTION_COUNT"===t.type){const{payload:{increment:n,id:i,reactionType:o}}=t,r=e[i]||{},{reaction_counts:a={}}=r,s=a[o]||0,c=n?s+1:Math.max(s-1,0),l=n?o:0,d={...r,reaction_counts:{...a,[o]:c},reaction_by_me:l};return{...e,[i]:d}}}}return e}},iE4i:function(e,t,n){t.a="*Spend $30 in your first 7 days to receive a $20 refund on your bill. There’s a 1 offer limit per account. New accounts only. You must be a legal resident of the 50 United States or DC, and at least 18 years old to be eligible for this offer."},ipvL:function(e,t,n){var i=n("0G5S"),o=n("zRck");const r=e=>"undefined"!=typeof window?Object(i.a)(e):null,a=(e,t)=>{"undefined"!=typeof window&&Object(i.c)(e,t)},s={getAccounts:()=>r(o.o),getAccountsJSON:()=>s.getAccounts()?JSON.parse(s.getAccounts()):{},getGroupId:()=>{const e=r(o.p);return e?JSON.parse(e):null},setAccounts:e=>a(o.o,e),setGroupId:e=>a(o.p,JSON.stringify(e))};t.a=s},j3zy:function(e,t,n){t.a=(e,t)=>n.e("facebookEnsureInitForDesktop").then(n.bind(null,"TvzZ")).then(({default:t})=>new Promise((n,i)=>{t(e=>{e.getLoginStatus(t=>{if(!t.authResponse)return i(new Error("not authed"));const o="/me?fields="+["picture.type(large)","id","first_name","last_name","email","gender","birthday"].join(",");e.api(o,e=>!e||e.error?i(new Error("FB.api errored: "+e.error)):(e.picture&&e.picture.data&&e.picture.data.url&&!e.picture.data.is_silhouette&&(e.image_url=e.picture.data.url),n(e)))},!0)},e)})).then(e=>e.email||t?Promise.resolve(e):Promise.reject({error:new Error("Email required to sign up."),socialConnectData:e}))},jaOL:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("fOPN");t.default=function(e,t){switch(void 0===e&&(e=0),t.type){case i.ADD_SOURCE:case i.ADD_TARGET:return e+1;case i.REMOVE_SOURCE:case i.REMOVE_TARGET:return e-1;default:return e}}},jirY:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("/ZYE"),o=n("H3Jb"),r=n("q1tI"),a=n("2S0S");t.useDrag=function(e){var t=r.useRef(e);t.current=e,a(null!=e.item,"item must be defined"),a(null!=e.item.type,"item type must be defined");var n=o.useDragSourceMonitor(),s=n[0],c=n[1];o.useDragHandler(t,s,c);var l=i.useMonitorOutput(s,t.current.collect||function(){return{}},(function(){return c.reconnect()})),d=r.useMemo((function(){return c.hooks.dragSource()}),[c]),u=r.useMemo((function(){return c.hooks.dragPreview()}),[c]);return r.useEffect((function(){c.dragSourceOptions=t.current.options||null,c.reconnect()}),[c]),r.useEffect((function(){c.dragPreviewOptions=t.current.previewOptions||null,c.reconnect()}),[c]),[l,d,u]}},johb:function(e){e.exports=JSON.parse('["aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","adac","ads","adult","ae","aeg","aero","aetna","af","afamilycompany","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","budapest","bugatti","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","caseih","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","csc","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","duck","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fujixerox","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glade","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","iveco","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lixil","lk","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","lupin","luxe","luxury","lv","ly","ma","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","mutual","mv","mw","mx","my","mz","na","nab","nagoya","name","nationwide","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","newholland","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","off","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","onyourside","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","qvc","racing","radio","raid","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","rmit","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scjohnson","scot","sd","se","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","spreadbetting","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiftcover","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","कॉम","セール","佛山","ಭಾರತ","慈善","集团","在线","한국","ଭାରତ","大众汽车","点看","คอม","ভাৰত","ভারত","八卦","موقع","বাংলা","公益","公司","香格里拉","网站","移动","我爱你","москва","қаз","католик","онлайн","сайт","联通","срб","бг","бел","קום","时尚","微博","淡马锡","ファッション","орг","नेट","ストア","アマゾン","삼성","சிங்கப்பூர்","商标","商店","商城","дети","мкд","ею","ポイント","新闻","家電","كوم","中文网","中信","中国","中國","娱乐","谷歌","భారత్","ලංකා","電訊盈科","购物","クラウド","ભારત","通販","भारतम्","भारत","भारोत","网店","संगठन","餐厅","网络","ком","укр","香港","亚马逊","诺基亚","食品","飞利浦","台湾","台灣","手机","мон","الجزائر","عمان","ارامكو","ایران","العليان","اتصالات","امارات","بازار","موريتانيا","پاکستان","الاردن","بارت","بھارت","المغرب","ابوظبي","البحرين","السعودية","ڀارت","كاثوليك","سودان","همراه","عراق","مليسيا","澳門","닷컴","政府","شبكة","بيتك","عرب","გე","机构","组织机构","健康","ไทย","سورية","招聘","рус","рф","تونس","大拿","ລາວ","みんな","グーグル","ευ","ελ","世界","書籍","ഭാരതം","ਭਾਰਤ","网址","닷넷","コム","天主教","游戏","vermögensberater","vermögensberatung","企业","信息","嘉里大酒店","嘉里","مصر","قطر","广东","இலங்கை","இந்தியா","հայ","新加坡","فلسطين","政务","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw"]')},jxrL:function(e,t,n){function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("X6C7")),i(n("1tpI")),i(n("eiom"))},k8ya:function(e,t){e.exports="https://s.pinimg.com/webapp/thanks-7994286c.svg"},kIwf:function(e,t,n){n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return I})),n.d(t,"f",(function(){return P})),n.d(t,"d",(function(){return D})),n.d(t,"e",(function(){return A})),n.d(t,"g",(function(){return M}));var i=n("Ye/N"),o=n("LOQM"),r=n("q1tI"),a=n("FDmi"),s=n("EC51"),c=n("yweb"),l=n("U4JR"),d=n("QAzJ"),u=n("EC67"),p=n("n6mq"),h=n("nKUr");function g({block:e,pageIndex:t,scaleFactor:n,onFlyoutOpen:i,videoPinProgress:o}){var g;const[m,f]=Object(r.useState)(!1),b=Object(r.useRef)(),_=Object(u.h)(),j=Object(c.c)(),{block_style:{height:y=0,width:v=0,x_coord:O=0,y_coord:x=0,rotation:w=0}={},is_removed:S,start_time:C,end_time:k}=e,{image_small_url:L,full_name:R,username:M=""}=null!==(g=e.user)&&void 0!==g?g:{},F=`/${M}/`,N=I/(E/T),B=v*I*n/100,U=y*N*n/100,z=O*I*n/100,W=x*N*n/100,{anyEnabled:V}=Object(d.a)("web_story_pin_tag_duration"),{currentTime:G,duration:H}=o||{};let q=!1;if((C||0===C)&&k){const e=C<k&&k<=H,t=C<=G&&G<=k;q=!!V&&(!e||!t)}const Y=()=>{Object(l.b)(123,{view:3,viewParameter:157,component:228,element:12121,story_pin_page_id:t}),f(!1)},K=Object(h.jsx)(p.L,{anchor:b.current,onDismiss:Y,positionRelativeToAnchor:!1,idealDirection:"up",showCaret:!0,size:S?"flexible":"sm",children:Object(h.jsx)(p.f,{display:"flex",justifyContent:"center",alignItems:"center",padding:3,width:"100%","data-test-id":"story-pin-mention-sticker-block-flyout",children:S?Object(h.jsx)(p.cb,{color:"gray",weight:"bold",size:"md",children:j._("Tag removed!","closeup.storyPin.mentionSticker","Caption when @mention tag was removed")}):Object(h.jsxs)(r.Fragment,{children:[Object(h.jsx)(p.f,{flex:"none",children:Object(h.jsx)(a.a,{size:"sm",name:null!=R?R:"",src:null!=L?L:void 0})}),Object(h.jsx)(p.f,{flex:"grow",paddingX:2,children:Object(h.jsx)(p.cb,{weight:"bold",size:"md",truncate:!0,children:R})}),Object(h.jsx)(p.f,{flex:"none",children:Object(h.jsx)(p.K,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]})})});return Object(h.jsxs)(p.f,{ref:b,display:"flex",dangerouslySetInlineStyle:{__style:{left:z,top:W,transform:`rotate(${w}deg)`}},height:U+2*D,position:"absolute",width:B+2*D,rounding:2,zIndex:P,padding:1,margin:-1,"data-test-id":"story-pin-mention-sticker-block",children:[Object(h.jsx)(p.bb,{onTap:m?Y:({event:e})=>{q||(Object(l.b)(101,{view:3,viewParameter:157,component:228,element:12120,story_pin_page_id:t}),Object(l.b)(120,{view:3,viewParameter:157,component:228,element:12121,story_pin_page_id:t}),f(!0),i&&(e.stopPropagation(),i()))},rounding:"pill",disabled:q}),m&&Object(h.jsx)(p.z,{zIndex:A,children:S?K:Object(h.jsx)(s.a,{href:F,onClick:({event:e})=>{e.preventDefault(),S||(Object(l.b)(101,{view:3,viewParameter:157,component:228,element:12121,story_pin_page_id:t}),_.push(F))},children:K})})]})}function m({block:e,pageIndex:t,scaleFactor:n,productPins:i,onFlyoutOpen:o,videoPinProgress:a}){const[s,g]=Object(r.useState)(!1),m=Object(r.useRef)(),f=Object(u.h)(),b=Object(c.c)(),{block_style:{height:_=0,width:j=0,x_coord:y=0,y_coord:v=0,rotation:O=0}={},pin_id:x,is_removed:w,start_time:S,end_time:C}=e,k=(i||[]).find(e=>e.id===x)||{},L=x?`/pin/${x}/`:"/",R=I/(E/T),M=j*I*n/100,F=_*R*n/100,N=y*I*n/100,B=v*R*n/100,{anyEnabled:U}=Object(d.a)("web_story_pin_tag_duration"),{currentTime:z,duration:W}=a||{};let V=!1;if((S||0===S)&&C){const e=S<C&&C<=W,t=S<=z&&z<=C;V=!!U&&(!e||!t)}const G=()=>{Object(l.b)(123,{view:3,viewParameter:157,component:228,element:12224,story_pin_page_id:t}),g(!1)},{grid_title:H,images:q,rich_summary:Y,description:K}=k||{},$=(q||{})["236x"]||{},{display_name:X,products:J}=Y||{},Z=((J||[])[0]||{}).offer_summary||{},{price:Q,max_price:ee}=Z||{},te=!(!Z||!Q&&!ee),ne=X||H||K,ie=Object(h.jsx)(p.f,{display:"flex",justifyContent:"center",alignItems:"center",paddingX:w?3:1,paddingY:w?2:1,width:"100%","data-test-id":"story-pin-product-sticker-block-flyout",children:w?Object(h.jsx)(p.cb,{color:"gray",weight:"bold",size:"sm",children:b._("Tag removed","closeup.storyPin.productSticker","Caption when product tag sticker was removed")}):Object(h.jsxs)(r.Fragment,{children:[Object(h.jsx)(p.f,{flex:"none",children:Object(h.jsx)(p.C,{wash:!0,height:40,width:40,rounding:3,children:Object(h.jsx)(p.x,{alt:"",color:"lightGray",fit:"cover",naturalHeight:1,naturalWidth:1,src:$.url||""})})}),Object(h.jsx)(p.f,{flex:"grow",paddingX:2,children:te?Object(h.jsxs)(p.f,{display:"flex",direction:"column",flex:"grow",alignContent:"center",justifyContent:"center",children:[Object(h.jsx)(p.cb,{size:"sm",truncate:!0,weight:"bold",color:"blue",children:Q}),Object(h.jsx)(p.cb,{size:"sm",truncate:!0,children:ne})]}):Object(h.jsx)(p.cb,{size:"sm",truncate:!0,children:ne})}),Object(h.jsx)(p.f,{flex:"none",children:Object(h.jsx)(p.K,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]})});return Object(h.jsxs)(p.f,{ref:m,display:"flex",dangerouslySetInlineStyle:{__style:{left:N,top:B,transform:`rotate(${O}deg)`}},height:F+2*D,position:"absolute",width:M+2*D,rounding:2,zIndex:P,padding:1,margin:-1,"data-test-id":"story-pin-product-sticker-block",children:[Object(h.jsx)(p.bb,{onTap:s?G:({event:e})=>{V||(Object(l.b)(101,{view:3,viewParameter:157,component:228,element:12223,story_pin_page_id:t}),Object(l.b)(120,{view:3,viewParameter:157,component:228,element:12224,story_pin_page_id:t}),g(!0),o&&(e.stopPropagation(),o()))},rounding:"pill",disabled:V}),s&&Object(h.jsx)(p.z,{zIndex:A,children:Object(h.jsx)(p.L,{anchor:m.current,onDismiss:G,positionRelativeToAnchor:!1,idealDirection:"up",showCaret:!0,size:w?"flexible":"xs",children:w?ie:Object(h.jsx)(p.bb,{onTap:({event:e})=>{e.preventDefault(),w||(Object(l.b)(101,{view:3,viewParameter:157,component:228,element:12224,story_pin_page_id:t}),f.push(L))},fullWidth:!0,children:ie})})})]})}var f=n("Tr1f"),b=n("ZVWG"),_=n("wtY2"),j=n("OSge"),y=n("P0Nc");function v({block:e,fontsLoaded:t,scaleFactor:n}){const{block_style:i,style:o=j.b,text:a}=e,{alignment:s,font:c,font_size:l,highlight_color:d,vertical_alignment:u=j.b.vertical_alignment}=o,{hex_color:g=j.b.hex_color}=null!=o?o:{},[m,v]=Object(r.useState)(0),[O,x]=Object(r.useState)([]),w=c||j.b.font,{name:S,default_size:C,letter_spacing:k,line_height:T}=w,E=Object(f.a)(w),I=Math.round(100*((null==i?void 0:i.width)||100))/1e4,P=Math.round(100*((null==i?void 0:i.height)||100))/1e4,D=Math.round(100*((null==i?void 0:i.x_coord)||0))/1e4,A=Math.round(100*((null==i?void 0:i.y_coord)||0))/1e4;Object(r.useEffect)(()=>{if(t){const e=Object(b.a)({text:a,boxHeight:_.f*P,boxWidth:_.i*I,font:E,startFontSize:Math.floor(l||C||24)});x(e.lines),v(e.fontSize)}},[t]);const L=m*n,R=d?Object(j.f)(L,T):{x:0,y:0},M=I*_.i*n+2*R.x,F=P*_.f*n+2*R.y,N=D*_.i*n-R.x,B=A*_.f*n-R.y;return Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{left:N,top:B}},display:"flex",height:F,position:"absolute",width:M,children:Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:Object(y.a)({alignment:s,verticalAlignment:u})},children:Object(h.jsx)(p.f,{display:"inlineBlock",maxWidth:"100%",children:Object(h.jsx)("p",{style:Object(y.d)({fontSize:L,hexColor:g,letterSpacing:k,lineHeight:T,name:S}),children:O.map((e,t)=>Object(h.jsx)("span",{style:Object(y.c)({fontSize:L,hasText:e.text.length>0,highlightColor:d||null,lineHeight:T}),children:t===O.length-1?e.text:Object(h.jsxs)(r.Fragment,{children:[e.text," ",Object(h.jsx)("br",{})]})},`paragraphLine-${t}-${(null!=a?a:"").substr(0,9)}`))})})})})}var O=n("wvsB"),x=n("v/Q4");function w({ownerId:e}){const t=Object(x.a)(),n=t.isAuth&&t.id===e;return Object(h.jsxs)(p.f,{alignItems:"center",color:"gray",direction:"column",display:"flex",height:"100%",justifyContent:"center",width:"100%",children:[Object(h.jsx)(p.cb,{color:"white",children:n?i.a._("Your video is processing!","closeup.storyPin.videoPlaceholder","Let user know that their video is still processing"):i.a._("This video is still processing!","closeup.storyPin.videoPlaceholder","Let user know that this video is still processing")}),Object(h.jsx)(p.cb,{color:"white",children:i.a._("Check back in a few minutes.","closeup.storyPin.videoPlaceholder","Let user know to come back in a couple of minutes to view the video")})]})}var S=n("y2Ga"),C=n("pf20"),k=n("WnLB");const T=16,E=9,I=375,P=new p.s(1),D=4,A=new p.s(3);function L({block:e,isActive:t,pwtTrackImageLoad:n}){var r,a,s,c,l;if(!e.image)return null;const d=(null===(r=e.image.images)||void 0===r?void 0:r["750x"])||(null===(a=e.image.images)||void 0===a?void 0:a["474x"]);return Object(h.jsx)(o.a,{alt:i.a._("Story pin image","closeup.storypin.renderer","Alt text for story pin image"),isActive:t,naturalHeight:null!==(s=null==d?void 0:d.height)&&void 0!==s?s:1,naturalWidth:null!==(c=null==d?void 0:d.width)&&void 0!==c?c:1,src:null!==(l=null==d?void 0:d.url)&&void 0!==l?l:"",onLoad:n})}function R({activePageIndex:e,block:t,isActive:n,isSplitLayout:i=!1,musicRecordingId:o,muted:r,onEnded:a,onUpdateVideoInfo:s,ownerId:c,pageIndex:l,pinId:d,scaleFactor:u,stillLoading:g}){var m,f;const{block_style:{height:b=100,width:_=100,x_coord:j=0,y_coord:y=0}={},video:v}=t,x=I/(E/T),S=_*I*u/100,C=b*x*u/100,k=j*I*u/100,P=y*x*u/100,D=_<100?Math.min(Math.max(100,_)-Math.abs(j),_):Math.min(Math.max(_-Math.abs(j),0),100),A=(b<100?Math.min(Math.max(100,b)-Math.abs(y),b):Math.min(Math.max(b-Math.abs(y),0),100))*x*u/100,L=D*I*u/100,R=Math.max(y,0)*x*u/100,M=Math.max(j,0)*I*u/100;if(g)return null;if(!v)return Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{left:M,top:R}},height:A,position:"absolute",width:L,children:Object(h.jsx)(w,{ownerId:c})});return!!((null===(m=v.video_list)||void 0===m?void 0:m.V_HLSV3_MOBILE)||(null===(f=v.video_list)||void 0===f?void 0:f.V_720P))&&Object(h.jsx)(p.f,{height:i?"50%":"100%",overflow:"hidden",position:"relative",children:Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{left:M,top:R}},height:A,overflow:"hidden",position:"absolute",width:L,children:Object(h.jsx)(O.a,{activePageIndex:e,blockHeight:C,blockPosition:{left:k,top:P},blockWidth:S,isPlaying:n,musicRecordingId:o,muted:r,onEnded:a,onUpdateVideoInfo:s,pageIndex:l,pinId:d,video:v})})})}function M({activePageIndex:e,block:t,fontsLoaded:n,isActive:i,isSplitLayout:o=!1,musicRecordingId:r,muteVideos:a,ownerId:s,onEnded:c,onFlyoutOpen:l,videoPinProgress:u,onUpdateVideoInfo:p,pageIndex:f,pageWidth:b,previewOnly:_,productPins:y,pinId:O,stillLoading:x=!1}){const{block_style:{height:w=100,width:T=100,x_coord:E=0,y_coord:P=0}={}}=t,{anyEnabled:D}=Object(d.a)("web_story_pin_at_mentions"),{anyEnabled:A}=Object(d.a)("web_story_pin_product_tags"),M=Object(C.b)(),F=Object(S.c)(),N=()=>{M&&i&&(M.addBinaryAnnotation("pin.id",O,"STRING"),M.addBinaryAnnotation("video",!1,"BOOL"),M.stop()),F&&i&&(F.addBinaryAnnotation("pin.id",O,"STRING"),F.addBinaryAnnotation("video",!1,"BOOL"),F.removeConstraint(k.e),F.markConstraintComplete(k.c))};if(0===w||0===T)return null;const B=b/I,U={height:w+"%",left:E+"%",overflow:"hidden",position:"absolute",top:P+"%",width:T+"%"};switch(t.type){case j.a.PARAGRAPH:case j.a.HEADING:return Object(h.jsx)(v,{block:t,fontsLoaded:n,scaleFactor:B});case j.a.VIDEO:return Object(h.jsx)(R,{activePageIndex:e,block:t,isActive:i,isSplitLayout:o,musicRecordingId:r,muted:a,ownerId:s,onEnded:c,onUpdateVideoInfo:p,pageIndex:f,pinId:O,scaleFactor:B,stillLoading:x});case j.a.IMAGE:return Object(h.jsx)("div",{style:U,children:Object(h.jsx)(L,{block:t,isActive:i,pwtTrackImageLoad:N})});case j.a.MENTION_STICKER:return D&&!_&&Object(h.jsx)(g,{block:t,scaleFactor:B,pageIndex:f,onFlyoutOpen:l,videoPinProgress:u});case j.a.PRODUCT_STICKER:return A&&!_&&Object(h.jsx)(m,{block:t,scaleFactor:B,onFlyoutOpen:l,pageIndex:f,productPins:y,videoPinProgress:u});default:return null}}},kJuv:function(e,t,n){var i=n("gxu6"),o=n("eOdZ"),r=n("QLqj"),a=n("kmwA"),s=n("ARZW"),c=n("J8m7"),l=n("sv3x"),d=n("AXUD"),u=n("dish"),p=n("OX7c"),h=n("28DW"),g=n("AYc3"),m=n("2y2F"),f=n("yM2L");const b=function(e,t,n="",i=!1){let o="referrer_unknown";try{const e=document.referrer;o=e?e.indexOf("/t.co/")>-1?"twitter":e.indexOf("google.")>-1?"google":e.indexOf("bing.")>-1?"bing":e.indexOf("facebook.")>-1?"facebook":"other":"direct"}catch(f){}const r=Object(l.c)(e),a=t===Object(t)?t.hybridTier:"tier_unknown",c=t===Object(t)?t.container:"container_unknown";Object(h.a)("login.referrer."+o+"."+r),Object(h.a)("login.container."+c+"."+r),Object(h.a)("login.type."+r);const d=Object(l.c)(e)||"method_unknown",u=t.page||"page_unknown";e.gplus_autologin?i?(Object(h.a)("mweb_autologin.google_success"),Object(h.l)("new_mweb_autologin_google",{page:u,referrer:o,container:c,hybridTier:a})):(Object(h.a)("web_autologin_google"),Object(h.l)("new_web_autologin_google",{page:u,referrer:o,container:c,hybridTier:a})):e.facebook_autologin?(Object(h.a)("web_autologin_facebook"),Object(h.l)("new_web_autologin_facebook",{page:u,referrer:o,container:c,hybridTier:a})):(Object(h.a)(`web_login.${d}.success.${u}.${c}.${o}.${a}`),Object(h.l)(`new_web_login.${d}.success`,{page:u,referrer:o,container:c,hybridTier:a})),Object(m.a)(n)&&Object(g.g)({id:s.b,eventCategory:"Logins",eventName:"Desktop"}),Object(m.f)(n)&&Object(g.k)({id:"flashtalking-d-login",eventCategory:"Logins",eventName:"Desktop"}),Object(m.c)(n)&&Object(g.h)({pixelId:"dpm_pixel_login_event",eventCategory:"Logins",eventName:"Desktop"}),Object(m.d)(n)&&Object(g.i)({pixelId:"dentsu_pixel_login_event",eventCategory:"Logins",eventName:"Desktop"});const p=e.facebook_autologin||e.gplus_autologin||e.autologin?"autologin":"login";Object(h.g)({action:p,event:"success",type:r})},_=(e,t)=>{Object(h.a)(`web_cross_domain_login.${e}.${Object(l.c)(t)}`)},j=(e,t,n="other",i=!1)=>{if(e){const o=e.http_status===d.b?d.b:e.api_error_code;let r=o;c.b.has(o)&&(r=c.b.get(o));const{container:a}=t;i?Object(h.a)(`unauth_web_client_cctld_login_api_error.${String(r)}.${a||"unknow_container"}.${n}`):Object(h.a)(`unauth_web_client_login_api_error.${String(r)}.${a||"unknow_container"}.${n}`),Object(h.g)({action:"login",event:"fail",type:n})}};t.a=function(e,t,n={},s=!1,c,d,h=!1){if(function(e){return!e.mfa_resend&&!!e.username_or_email}(e)){if(-1!==a.a.settings.CORS_HANDSHAKE_DOMAINS.indexOf(t.origin))return function(e,t,n,i){_("attempt",e);const{referrer:o,facebookToken:r,unauthId:a}=i;return Object(f.loginUser)(e,{recaptchaV3Token:t,referrer:o,facebookToken:r,unauthId:a}).then(t=>{if(t&&t.data){_("success_with_token",e);const i=t.data;return Object(f.exchangeTokenAndSetSession)(i).then(t=>(_("success_token_exchanged",e),b(e,n),Promise.resolve()),t=>{throw _("success_token_not_exchanged",e),t})}throw _("success_without_token",e),new Error},t=>{throw _("failure",e),j(t,n,Object(l.c)(e),!0),t})}(e,d,n,t)}const g=s?null:r.b.localStorage.getItem("visitedPagesBeforeLogin"),m={...e,get_user:e.get_user||e.switch_account&&s,app_type_from_client:7===t.appType?7:5,visited_pages_before_login:g?JSON.stringify(g):null,recaptchaV2Token:c,recaptchaV3Token:d};return o.a.create("UserSessionResource",m).callCreate({showError:!1,async:!0}).then(t=>{const{client_context:o}=t||{},{country:r,active_experiments:a}=o||{};b(e,n,r,h),Object(u.b)(!1);return a&&a.web_cctld_cookies_cleanup&&"enabled"===a.web_cctld_cookies_cleanup&&(i.c("fba"),i.c("logged_out")),Object(p.a)("login").then(()=>t)},t=>(j(t,n,Object(l.c)(e)),Promise.reject(t)))}},kMiw:function(e,t,n){var i=n("q1tI"),o=n("n6mq"),r=n("nKUr");function a(e){return(null!=e?e:[]).map(e=>e.text||"").join()}t.a=e=>{var t;const{page:{image_adjusted:n,blocks:s}}=e,c=n||{},{images:l={}}=c,d=l["750x"];if(!d)return null;const{width:u,height:p}=d;return Object(r.jsx)(i.Fragment,{children:d&&Object(r.jsx)(o.x,{src:null!==(t=d.url)&&void 0!==t?t:"",alt:a(s),naturalWidth:null!=u?u:1,naturalHeight:null!=p?p:1,fit:"contain"})})}},kd2E:function(e,t,n){function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,r){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;r&&"number"==typeof r.maxKeys&&(c=r.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var d=0;d<l;++d){var u,p,h,g,m=e[d].replace(s,"%20"),f=m.indexOf(n);f>=0?(u=m.substr(0,f),p=m.substr(f+1)):(u=m,p=""),h=decodeURIComponent(u),g=decodeURIComponent(p),i(a,h)?o(a[h])?a[h].push(g):a[h]=[a[h],g]:a[h]=g}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},kuQG:function(e,t){e.exports="https://s.pinimg.com/webapp/haha-403b10ff.svg"},"l/EB":function(e,t,n){t.a=e=>/^\d{2}\/\d{2}\/\d{4}$/.test(e)},lEeg:function(e,t,n){var i=n("nhss"),o=n("yjg8");t.a=({hideMeta:e=!1,hideAllMeta:t,isPaidTraffic:n=!1,isBot:r,locale:a,numServerRenderedPins:s,pageType:c,pins:l,experiments:d})=>{let u="";const p=o.c,h=o.e,g=o.j,m=s||l.length,f=("pin"===c||"board"===c||"topic"===c)&&r?Math.min(l.length,5):l.length,b=Object(o.o)(f),_=h+p;let j=0,y=g*_+_-1;const v=l.map(r=>Object(i.a)(r,o.i,c,d,e,t,n,a));let O,x=[],w=[];const S=(e,t)=>{if(!r&&t>m)return;u+=`\n      .Pin__${t} {\n        left: ${x[O]}px;\n        top: ${w[O]}px;\n      }`,w[O]=w[O]+e+p;let n=w[O];for(let i=0;i<w.length;i+=1)w[i]<n&&(O=i,n=w[i])};for(let i=g;i<b+1;i+=1){u+=`@media (min-width: ${j}px) `,u+=i<b?`and (max-width: ${y}px) {`:"{",x=[],w=[];for(let t=0;t<i;t+=1)x.push(t*_),w.push(0);O=0,v.map(S);let e=w[O];for(let t=0;t<w.length;t+=1)w[t]>e&&(e=w[t]);u+=`\n    .pinGrid {\n      width: ${i*_-p}px;\n      height: ${e}px;\n    }\n    .gridCentered {\n      width: ${i*_}px;\n    }\n    `,u+="}",j=y+1,y+=_}return u+="\n.gridCentered {\n  margin: 0 auto;\n}\n.itemCentered {\n  margin: 0 auto;\n}\n.Grid__Container {\n  height: 100%;\n  margin: 0 auto;\n  position: relative;\n}\n\n.Grid__Item {\n  position: absolute;\n}\n\n.gridCentered .Masonry-Premount .Collection-Item {\n  position: static !important;\n  visibility: visible !important;\n  float: left;\n  display: block;\n}",u}},lh2y:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("Bfq7"),o=n("NFjV");t.createNativeDragSource=function(e){return new o.NativeDragSource(i.nativeTypesConfig[e])},t.matchNativeItemType=function(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(i.nativeTypesConfig).filter((function(e){return i.nativeTypesConfig[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}},lihF:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return void 0===e&&(e=0),e+1}},lnDX:function(e,t,n){n.d(t,"a",(function(){return q}));var i=n("q1tI"),o=n("o9su"),r=n("B/lV"),a=n("SyXB"),s=n("gz6+");var c=({constraintMap:e,initialNavTiming:t,annotations:n})=>({...n,...Object(s.a)("constraint_",e),...Object(s.a)("mark_",Object(a.d)()),...Object(s.a)("browser_",{...t?Object(s.b)(t):{},...Object(s.c)()})}),l=n("FylZ"),d=n("LvPn"),u=n("+lzj");var p=(e,t)=>{const{firstInputDelay:n}=Object(u.e)();return[...e.map(e=>Object(d.a)(e,t)).filter(Boolean),...n?[{name:"fid",id:Object(l.a)(),parentId:t,startTime:n.startTime,endTime:n.endTime,annotationMap:{},binaryAnnotationMap:{}}]:[]]},h=n("HMdf"),g=n("fZG9");var m=({annotateExperiments:e,annotations:t,binaryAnnotations:n,constraintMap:i,endTime:a,imageTimings:s,metricId:l,pwtStaticContext:d,startTime:u,traceId:m,spans:f})=>{const b=Object(h.c)();let _;"initial_app_load"===l.navigationType&&(_=Object(o.a)());const j=s.map(({name:e})=>e),y=b.map(e=>Object(r.a)(e,j)).filter(({timing:e})=>!(({startTime:e,responseEnd:t},n)=>e>n.endTime||!!t&&t<n.startTime||e<n.startTime-100)(e,{startTime:u,endTime:a}));return{type:"COMPLETE",traceId:m,startTime:u,endTime:a,spans:p(y,m).concat(f),annotationMap:c({constraintMap:i,initialNavTiming:_,annotations:t}),binaryAnnotationMap:Object(g.b)({annotateExperiments:e,binaryAnnotations:n,entries:b,metricId:l,performanceResources:y,pwtEndTime:a,pwtStaticContext:d})}},f=n("3/Bf");let b=!1;var _=(e,t)=>e&&t?b?(Object(f.b)("duplicated_initial_app_load_surface_pwt"),Object(l.a)()):(b=!0,t):Object(l.a)(),j=n("n6mq"),y=n("bNC6"),v=n("nKUr");function O({children:e,heading:t}){return Object(v.jsxs)("table",{style:{width:"100%"},cellPadding:4,children:[Object(v.jsx)("thead",{children:Object(v.jsx)("tr",{children:Object(v.jsx)("th",{colSpan:2,style:{background:"#efefef"},children:Object(v.jsx)(j.cb,{weight:"bold",align:"center",children:t})})})}),Object(v.jsx)("tbody",{children:e})]})}function x({name:e,children:t}){return Object(v.jsxs)("tr",{children:[Object(v.jsx)("td",{children:Object(v.jsx)(j.cb,{weight:"bold",children:e})}),Object(v.jsx)("td",{children:"string"==typeof t?Object(v.jsx)(j.cb,{children:t}):t})]})}function w({result:e}){return"ABORT"===e.type?Object(v.jsx)(x,{name:"Abort Reason",children:e.reason}):Object(v.jsxs)(i.Fragment,{children:[Object(v.jsx)(x,{name:"PWT (ms)",children:Object(v.jsx)(j.cb,{align:"end",children:Math.round(e.endTime-e.startTime)})}),Object(v.jsx)(x,{name:"PinTrace",children:Object(v.jsx)(j.cb,{italic:!0,children:Object(v.jsx)(j.B,{href:"https://pintrace.pinadmin.com/zipkin/traces/"+e.traceId,target:"blank",inline:!0,onClick:({disableOnNavigation:e})=>e(),children:"Open in a new tab"})})})]})}function S({data:e}){const{metricId:t,constraints:n,constraintMap:i,startTime:o,result:r}=e;return Object(v.jsxs)(j.f,{children:[Object(v.jsxs)(O,{heading:Object(y.b)(t),children:[Object(v.jsx)(x,{name:"Thrift Id",children:String(Object(y.a)(t))}),Object(v.jsx)(x,{name:"Surface",children:t.surface}),Object(v.jsx)(x,{name:"Navigation Type",children:t.navigationType}),Object(v.jsx)(x,{name:"Viewer Authed",children:String(t.isAuthenticated)})]}),Object(v.jsx)(O,{heading:"Constraints",children:n.map(e=>Object(v.jsx)(x,{name:e,children:Object(v.jsx)(j.cb,{align:"end",children:i[e]?Math.round(i[e]-o):"pending..."})},"constraint_"+e))}),Object(v.jsx)(O,{heading:"Result",children:r?Object(v.jsx)(w,{result:r}):Object(v.jsx)(x,{name:"result",children:Object(v.jsx)(j.U,{accessibilityLabel:"profiling PWT",show:!0})})})]})}var C=n("LT60");const k=e=>e.result?"COMPLETE"===e.result.type?"darkGray":"red":"gray";function T({data:e}){const[t,n]=Object(i.useState)(!1);return Object(v.jsx)(C.a,{children:Object(v.jsxs)(j.z,{children:[Object(v.jsx)(j.f,{position:"fixed",margin:3,marginBottom:12,bottom:!0,left:!0,width:50,height:50,dangerouslySetInlineStyle:{__style:{zIndex:2e3}},children:Object(v.jsx)(j.w,{accessibilityLabel:"PwtDebugger",bgColor:"lightGray",iconColor:k(e),icon:"flash",size:"lg",onClick:()=>n(!0)})}),t&&Object(v.jsx)("div",{style:{position:"absolute",zIndex:2e3},children:Object(v.jsx)(j.G,{accessibilityModalLabel:"Pinner Wait Time Debugger Details",heading:"Pinner Wait Time",onDismiss:()=>n(!1),footer:null,size:"sm",children:Object(v.jsx)(j.f,{padding:6,children:Object(v.jsx)(S,{data:e})})})})]})})}var E=n("mRg4");var I=(e,t)=>{const n=Object(i.useRef)(e);Object(i.useEffect)(()=>{n.current=e},[e]);const o=Object(i.useRef)(t);Object(i.useEffect)(()=>{o.current=t},[t]),Object(i.useEffect)(()=>()=>o.current(n.current),[])};var P=(e,t)=>{const[n,o]=Object(i.useState)(t);return{state:n,dispatch:t=>o(n=>e(n,t))}},D=n("XtwW"),A=n("FZ8N"),L=n("LrH5"),R=n("6lKZ"),M=n("y2Ga"),F=n("xfna");const N=["initial_app_load","client_route_push"],B=Object(L.a)("PwtSurface"),U="NavigationComplete",z="VisuallyComplete",W=(e,t)=>{e.isSampled&&Object(E.a)({metricId:e.metricConfig.metricId,pwtStaticContext:e.metricConfig.pwtStaticContext,result:{type:"ABORT",reason:t}})},V=e=>{if(e.metricConfig.constraints.every(t=>e.constraintMap[t])){const t=Math.max(...e.metricConfig.constraints.map(t=>e.constraintMap[t]));return((e,t)=>{var n;const{metricConfig:{metricId:i,pwtStaticContext:o,annotateExperiments:r},annotations:a,binaryAnnotations:s,constraintMap:c,startTime:l,imageTimings:d,isSampled:u,spans:p}=e,h=_("initial_app_load"===i.navigationType,null===(n=o.serverData)||void 0===n?void 0:n.trace_id),g=m({annotateExperiments:r,annotations:a,binaryAnnotations:s,constraintMap:c,endTime:t,imageTimings:d,metricId:i,pwtStaticContext:o,startTime:l,traceId:h,spans:p});return u&&Object(E.a)({metricId:i,pwtStaticContext:o,result:g}),{...e,result:g,status:"DONE"}})(e,t)}return e},G=(e,t)=>{const{constraint:n,time:i}=t,o=Object(y.b)(e.metricConfig.metricId);return D.a?e.metricConfig.constraints.find(e=>e===n)?e.constraintMap[n]?(B(`constraint "${n}" is already complete.`),Object(f.b)("duplicated_constraint_complete",{constraint:n,action:o}),e):(B(`marking constraint "${n}" as complete`),V({...e,constraintMap:{...e.constraintMap,[n]:i||D.a.now()}})):(B(`marked constraint "${n}" is not a required constraint.`),e):(Object(f.b)("missing_window_performance",{action:o}),e)},H=(e,t)=>{if(B("dispatch action",t),"INIT_ROUTE"===t.type)return((e,t)=>{const{metricConfig:n,startTime:i,isSampled:o}=t;if("TIMING"===e.status&&i!==e.startTime&&W(e,"routeUpdatedOnSameSurface"),!n)return{status:"DISABLED",metricConfig:null};const r=Object(y.b)(n.metricId);return"TIMING"===e.status&&e.startTime===i&&e.constraintMap.NavigationComplete?(Object(f.b)("duplicated_init_route_action",{action:r}),e):(Object(f.c)("TIMING."+r),G({status:"TIMING",metricConfig:n,startTime:i,constraintMap:{},annotations:{},binaryAnnotations:{},imageTimings:[],isSampled:o,spans:[]},{constraint:U}))})(e,t.payload);if("TIMING"!==e.status)return B("ignoring action due to invalid state "+e.status,t),e;switch(t.type){case"ABORT":W(e,t.reason);const n={type:"ABORT",reason:t.reason};return{...e,status:"DONE",result:n};case"ANNOTATE":const{name:i}=t.payload;if(!D.a)return e;const o=D.a.now();return B(`adding annotation {${i}: ${o}}`),{...e,annotations:{...e.annotations,[i]:o}};case"BINARY_ANNOTATE":const{name:r,value:a,annotationType:s}=t.payload;return B(`adding binary annotation {${r}: ${a}}`),{...e,binaryAnnotations:{...e.binaryAnnotations,[r]:{value:a,type:s}}};case"MARK_CONSTRAINT_COMPLETE":return G(e,t.payload);case"REMOVE_CONSTRAINT":return((e,t)=>{if(!D.a){const t=Object(y.b)(e.metricConfig.metricId);Object(f.b)("missing_window_performance",{action:t})}B(`removing constraint "${t}"`);const n=e.metricConfig.constraints.filter(e=>e!==t),{[t]:i,...o}=e.constraintMap;return V({...e,constraintMap:o,metricConfig:{...e.metricConfig,constraints:n}})})(e,t.payload);case"SET_SEGMENT":return((e,t)=>{if(!D.a){const t=Object(y.b)(e.metricConfig.metricId);Object(f.b)("missing_window_performance",{action:t})}B(`updating pwt segment to "${t}"`);const n={...e.metricConfig.metricId,segment:t};return{...e,metricConfig:{...e.metricConfig,metricId:n}}})(e,t.payload);case"SET_VISUALLY_COMPLETE_RESULT":{const{payload:{imageTimings:n}}=t;if(0===n.length){W(e,"visuallyComplete_noImages");const t={type:"ABORT",reason:"visuallyComplete_noImages"};return{...e,status:"DONE",result:t}}const i=Math.max(...n.map(e=>e.responseEnd||0));return G({...e,imageTimings:n},{constraint:z,time:i})}case"ADD_SUBSPAN":const{startTime:c}=e,{payload:{name:d,startTime:u,endTime:p,annotations:h,binaryAnnotations:g,parentId:m}}=t;return{...e,spans:[...e.spans,{name:d,id:Object(l.a)(),startTime:u||c,endTime:p,annotationMap:{...h},binaryAnnotationMap:{...g},parentId:m}]};case"START_SUBSPAN":return{...e,spans:[...e.spans,{name:t.payload.name,id:Object(l.a)(),startTime:D.a?D.a.now():0,endTime:1/0,annotationMap:{...t.payload.annotations},binaryAnnotationMap:{...t.payload.binaryAnnotations},parentId:t.payload.parentId}]};case"STOP_SUBSPAN":const b=e.spans.findIndex(e=>e.name===t.payload.name);return b>-1?(e.spans[b].endTime=D.a?D.a.now():0,t.payload.annotations&&(e.spans[b].annotationMap={...e.spans[b].annotationMap,...t.payload.annotations}),t.payload.binaryAnnotations&&(e.spans[b].binaryAnnotationMap={...e.spans[b].binaryAnnotationMap,...t.payload.binaryAnnotations})):Object(f.b)("invalid_subspan_stop_name",{name:t.payload.name}),e;default:const _=Object(y.b)(e.metricConfig.metricId);return Object(f.b)("invalid_pwt_surface_action",{action:_}),e}};function q({children:e,...t}){const n=Object(F.b)(),o={...t,navigationInfo:{navigationType:(e=>{if(!e)return"initial_app_load";switch(e.action){case"PUSH":return"client_route_push";case"REPLACE":return"client_route_replace";default:return null}})(n),clientNavigation:n}},{state:r,context:a}=(({surface:e,constraints:t,segment:n,measureGridVisuallyComplete:o,annotateExperiments:r,customEnabledNavigationTypes:a,navigationInfo:{clientNavigation:s,navigationType:c},sampleRate:l})=>{const d=Object(i.useRef)("NOT_SET"),u=Object(F.c)(),{state:p,dispatch:h}=P(H,{status:"DISABLED",metricConfig:null});if(d.current!==s&&(d.current=s,u)){const{isAuthenticated:i}=u,d=a||N,p=e&&c&&d.includes(c)?{metricId:{type:"surface",surface:e,navigationType:c,isAuthenticated:i,segment:n},annotateExperiments:r,constraints:[U,...t||[],...o?[z]:[]],pwtStaticContext:u}:null;h({type:"INIT_ROUTE",payload:{metricConfig:p,startTime:s?s.time:0,isSampled:!l||Math.random()<l}})}if(Object(i.useEffect)(()=>{const e=e=>{h({type:"ABORT",reason:e})};R.a.onSessionPause(e);const t=()=>{window.removeEventListener("resize",t),h({type:"ABORT",reason:"windowResized"})};return window.addEventListener("resize",t),()=>{R.a.removePauseListener(e),window.removeEventListener("resize",t)}},[]),I(p,e=>{B("handling unmount",e),"TIMING"===e.status&&W(e,"unmount")}),"TIMING"!==p.status||!p.constraintMap.NavigationComplete)return{state:p,context:null};const{startTime:g,metricConfig:m}=p;return{state:p,context:{id:g,metricId:m.metricId,abort:e=>h({type:"ABORT",reason:e}),addAnnotation:e=>h({type:"ANNOTATE",payload:{name:e}}),addBinaryAnnotation:(e,t,n)=>h({type:"BINARY_ANNOTATE",payload:{name:e,value:t,annotationType:n}}),setVisuallyCompleteResult:m.constraints.includes(z)?e=>h({type:"SET_VISUALLY_COMPLETE_RESULT",payload:e}):null,markConstraintComplete:e=>h({type:"MARK_CONSTRAINT_COMPLETE",payload:{constraint:e,time:D.a?D.a.now():0}}),removeConstraint:e=>h({type:"REMOVE_CONSTRAINT",payload:e}),setSegment:e=>h({type:"SET_SEGMENT",payload:e}),addSubspan:(e,t,n,i={},o={},r=null)=>h({type:"ADD_SUBSPAN",payload:{name:e,startTime:t,endTime:n,annotations:i,binaryAnnotations:o,parentId:r}}),startSubspan:(e,t={},n={},i=null)=>h({type:"START_SUBSPAN",payload:{name:e,annotations:t,binaryAnnotations:n,parentId:i}}),stopSubspan:(e,t={},n={},i=null)=>h({type:"STOP_SUBSPAN",payload:{name:e,annotations:t,binaryAnnotations:n,parentId:i}})}}})(o);return(()=>{const e=Object(M.c)(),t=!!e;Object(i.useEffect)(()=>{if(t){const t=null!=e&&e.metricId?Object(y.b)(e.metricId):null;Object(f.b)("nested_pwt_surface",{action:t})}},[t])})(),Object(v.jsxs)(i.Fragment,{children:[Object(v.jsx)(M.b,{value:a,children:e}),A.b&&"DISABLED"!==r.status&&Object(v.jsx)(T,{data:{metricId:r.metricConfig.metricId,constraints:r.metricConfig.constraints,constraintMap:r.constraintMap,startTime:r.startTime,result:"DONE"===r.status?r.result:null}})]})}},looy:function(e,t,n){n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return h}));var i=n("i2ZS"),o=n("kmwA"),r=n("ZNVR");const a=o.a.settings.DATA_PLUS_MATH_WEB_PIXEL,s=o.a.settings.DATA_PLUS_MATH_EVENT_PIXEL,c="dpm_images",l="dpm_pixel_unauth";function d(e){const{origin:t,pixelEvent:n,userIdString:i}=e,o=n?new URL(t+n):new URL(t);return o.searchParams.set("url",document.URL),o.searchParams.set("refr",document.referrer),o.searchParams.set("uid",i),o.toString()}async function u(e,t,n){const o=e+"*"+("undefined"!=typeof window&&window.crypto&&window.crypto.subtle?await Object(i.a)(t):""),s=d({origin:a,userIdString:o});Object(r.b)(e,"dpm_pixel_auth",l,c,s,o,"dpm",n)}async function p(e,t){const n=d({origin:a,userIdString:e});Object(r.c)(e,l,c,n,t)}async function h(e,t="",n,o,a){let l;if(t){const n="undefined"!=typeof window&&window.crypto&&window.crypto.subtle?await Object(i.a)(t):"";l=d({origin:s,pixelEvent:e,userIdString:n})}Object(r.e)({pixelId:e,divId:c,url:l,eventCategory:n,eventName:o,onSendPixelSuccess:a})}},mG99:function(e,t,n){n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h}));var i=n("q1tI"),o=n("JK01"),r=n("/vD9");var a=(e,t)=>{let n="";return[{name:"UnauthPinPageSkeletonLoader__closeup",width:806,height:403,borderRadius:"24px"},{name:"UnauthPinPageSkeletonLoader__action_bar",width:350,height:40},{name:"UnauthPinPageSkeletonLoader__detail",width:350,height:300},{name:"UnauthPinPageSkeletonLoader__visit_button",width:350,height:40},...Object(r.b)("UnauthPinPageSkeletonLoader__pin_grid_pin",e,t)].forEach(e=>{n+=Object(o.a)(e.name,e.width,e.height,!1,e.borderRadius||"")}),n},s=n("Ye/N"),c=n("ihsa"),l=n("n6mq"),d=n("nKUr");const u=()=>Object(d.jsx)(l.f,{display:"flex",direction:"row","data-test-id":"UnauthPinPageSkeletonHeader",children:Object(d.jsx)(l.f,{marginTop:4,marginEnd:3,children:Object(d.jsx)("div",{className:"UnauthPinPageSkeletonLoader__closeup"})})});function p(e){const{windowWidth:t=1920,windowHeight:n=1080,hasTitle:i=!0}=e;return Object(d.jsxs)(l.f,{children:[Object(d.jsx)(c.a,{unsafeCSS:a(t,n)}),Object(r.a)(),Object(d.jsx)(l.f,{alignContent:"center",justifyContent:"center",display:"flex",color:"white",direction:"row",position:"relative",children:Object(d.jsx)(l.f,{children:Object(d.jsx)(u,{})})}),Object(d.jsx)(l.f,{marginTop:3,marginStart:5,alignItems:"start",justifyContent:"between",children:Object(r.c)("UnauthPinPageSkeletonLoader__pin_grid_pin",i,"white",t,n)})]})}const h=()=>Object(d.jsxs)(i.Fragment,{children:[Object(d.jsx)(c.a,{unsafeCSS:a(window.innerWidth,window.innerHeight)}),Object(d.jsxs)("section",{style:{marginTop:"23px"},children:[Object(d.jsx)(l.f,{marginBottom:2,marginStart:2,children:Object(d.jsx)("h2",{className:"gridCentered",style:{textAlign:"center",color:"#555555"},children:s.a._("People also love these ideas","Heading for Related Pins beneath pin closeup","Heading for Related Pins beneath pin closeup")})}),Object(r.c)("UnauthPinPageSkeletonLoader__pin_grid_pin",!1,"white",window.innerWidth,window.innerHeight)]})]})},mc7v:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}},nGHF:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var i=n("1dBE");const{Provider:o,Consumer:r,useHook:a,HOC:s}=Object(i.a)("toastManagerContext")},nhss:function(e,t,n){n.d(t,"a",(function(){return se}));var i=n("q1tI"),o=n("TSYQ"),r=n.n(o),a=n("at+a"),s=n("n6mq"),c=n("YxyV"),l=n("nKUr");const d={display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"},u={display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"},p={fontSize:"16px",margin:"0px",transitionProperty:"-webkit-line-clamp"};var h=({pin:e,isExpanded:t,shouldTakeTitlesPlace:n})=>{const{description:i}=Object(c.c)(e),o={...p,...t?{}:u};return Object(l.jsx)(s.f,{marginTop:n?-3:1,dangerouslySetInlineStyle:{__style:t?{}:d},width:n?210:"auto",children:Object(l.jsx)("p",{"data-test-id":"desc",style:o,children:i})})},g=n("PsyL");const m=e=>{const{h:t,m:n}=e||{},i={hours:t||0,minutes:n||0};return void 0!==t||void 0!==n?{h:t,m:n,time:i,isoDuration:Object(g.a)(i)}:null};var f=e=>{if(!e)return null;const t=e&&e.rich_metadata&&e.rich_metadata.recipe,{name:n,categorized_ingredients:i,diets:o,from_aggregated_data:r,cook_times:a,servings_summary:s,aggregate_rating:c}=t||{},{total:l,cook:d,prep:u}=a||{},{summary:p}=s||{},h=m(u),g=m(d),f=m(l),{rating_value:b,best_rating:_,review_count:j}=c||{};return{recipe:{bestRating:_,categorizedIngredients:i,cookTime:g,diets:o,fromAggregatedData:r,name:n,prepTime:h,rating:b,reviewCount:j,servingSummary:p,totalTime:f}}},b=n("Ye/N"),_=n("bZS0"),j=n("nj6m"),y=n("vvax"),v=n("Pezf");const O=()=>Object(l.jsx)(s.f,{marginStart:1,marginEnd:1,children:Object(l.jsx)(s.cb,{color:"darkGray",children:"·"})}),x=e=>Object(l.jsx)(j.a,{rating:e.rating,max_rating:e.bestRating,width:10,color:"gray"});var w=({pin:e,showReviewText:t=!0})=>{if(!(e=>!(!e||!e.rich_metadata||!e.rich_metadata.recipe))(e))return null;const{recipe:n}=f(e)||{};if(!n||!n.reviewCount)return null;const o=(r=n.reviewCount,a=t,Object(l.jsx)(s.cb,{size:"sm",children:a?Object(y.b)(b.a.ngettext("{{reviewCount}} review","{{reviewCount}} reviews",r),{reviewCount:r}):Object(y.b)(b.a.ngettext("{{reviewCount}}","{{reviewCount}}",r),{reviewCount:r})}));var r,a;const c=(e=>{const t=(e=>{const{prepTime:t,cookTime:n,totalTime:i}=e;if(n&&t){const e=n.h||0,i=n.m||0;return{h:e+(t.h||0),m:i+(t.m||0)}}return i||n||t})(e);if(!t)return null;const n=Object(_.a)(Object(v.a)(t));return Object(l.jsx)(s.cb,{size:"sm",children:n})})(n);return Object(l.jsxs)(s.f,{display:"flex",alignItems:"center",children:[x(n),(o||c)&&Object(l.jsx)(O,{}),o&&Object(l.jsxs)(i.Fragment,{children:[o,Object(l.jsx)(O,{})]}),c&&Object(l.jsxs)(i.Fragment,{children:[c,Object(l.jsx)(O,{})]})]})};const S={titleDangerousStyle:{marginTop:"8px",display:"flex",justifyContent:"space-between"},h3Title:{fontSize:"16px",fontWeight:"700",WebkitLineClamp:"2",width:"210px",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",display:"-webkit-box"},h3TitleExpanded:{fontSize:"16px",fontWeight:"700",width:"210px",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",display:"-webkit-box"}};var C=Object(i.memo)(({expandToggleHandler:e,isExpanded:t,title:n,hideMeta:i})=>{let o=S.h3Title;return t&&(o=S.h3TitleExpanded),i&&(o={...o,width:void 0}),Object(l.jsxs)("figcaption",{style:S.titleDangerousStyle,children:[n&&Object(l.jsx)("h3",{style:o,children:n}),!i&&Object(l.jsx)(s.f,{width:"auto",paddingX:1,children:Object(l.jsx)(s.bb,{onTap:({event:t})=>{t.stopPropagation(),e&&e()},children:Object(l.jsx)(s.v,{icon:t?"arrow-up":"arrow-down",accessibilityLabel:b.a._("Expand","Text on button that expands the description","Text on button that expands the description"),color:"darkGray",size:12})})})]})},(e,t)=>t.isExpanded===e.isExpanded&&t.title===e.title&&t.hideMeta===e.hideMeta),k=n("EC51"),T=n("TNox"),E=n("WX9e"),I=n("28DW"),P=n("iMWs");const D=()=>{Object(I.h)("click_board_pin_attribution_profile")},A=(e,t)=>{const n=e.image_small_url||e.image_large_url,i=e.full_name||e.username,o=t.url?t.url.split("/")[1]:"";return Object(l.jsx)(T.a,{rounding:"circle",href:`/${o}/`,onTap:({event:e})=>{e.stopPropagation(),D()},children:Object(l.jsx)(s.f,{rounding:"circle",width:32,height:32,overflow:"hidden",children:Object(l.jsx)(s.x,{naturalHeight:32,naturalWidth:32,alt:i,fit:"cover",color:"rgb(231, 186, 176)",src:n})})})},L=(e,t)=>{const n=Object(c.g)(t,e),i=t.url?t.url.split("/")[1]:"";return t&&i?Object(l.jsx)(k.a,{href:`/${i}/`,onClick:({event:e})=>{e.stopPropagation(),D()},children:Object(l.jsx)(s.cb,{size:"md",weight:"bold",children:n})}):null},R=e=>e&&e.name&&e.url?Object(l.jsx)(k.a,{href:e.url,onClick:({event:e})=>{e.stopPropagation(),Object(I.h)("click_board_pin_attribution_board")},children:Object(l.jsx)(s.cb,{size:"md",children:e.name})}):null;var M=Object(i.memo)(e=>{const{pinner:t,board:n,showBoard:i}=e,o=Object(P.b)(),r=(null==o?void 0:o.pageType)||"";return t&&n?r&&r===E.a.BOARD&&!n.is_collaborative?null:Object(l.jsxs)(s.f,{marginTop:2,display:"flex",children:[Object(l.jsx)(s.f,{marginEnd:2,children:A(t,n)}),Object(l.jsxs)(s.f,{display:"flex",direction:"column",justifyContent:"center",children:[L(t,n),i?R(n):null]})]}):null},(e,t)=>{const n=e.board&&e.board.url,i=e.pinner&&e.pinner.username,o=e.pinner&&e.pinner.image_small_url,r=t.board&&t.board.url,a=t.pinner&&t.pinner.username,s=t.pinner&&t.pinner.image_small_url;return n===r&&i===a&&o===s}),F=n("Ctgr"),N=n("DzJC"),B=n.n(N),U=n("zwad"),z=n("U4JR"),W=n("pLLR");const V={borderRadius:"16px"};var G=Object(i.memo)(({image_signature:e,isPaidTraffic:t,openInCurrentTab:n,pin:o})=>{const{fullPath:r,origin:a}=Object(W.d)(),d=Object(P.b)(),u=(null==d?void 0:d.pageType)||"",{vaseAnnotations:p,annotationsWithLinks:h}=Object(c.c)(o),g=a+r,[m,f]=Object(i.useState)(!1),[b,_]=Object(i.useState)(!0),j=(t,i)=>Object(l.jsx)("a",{style:V,href:t.url,onClick:n=>((t,n)=>{Object(z.b)(101,{element:1116,component:165,unauth_vase_tag:t,unauth_vase_tag_image_sig:e,unauth_page_type:u,unauth_page_id:U.a.getUnauthPageId(u,g)}),Object(I.h)("click_vase_tag",!0),n.stopPropagation()})(t.name,n),className:"ImmersiveVaseCarousel__vaseTagLink",target:n?"_self":"_blank",children:Object(F.a)(t.name)},i);if(!Object(c.h)(p,t))return null;const y=B()((e,t)=>{e>=t?(b&&_(!1),m||f(!0)):0===e?(b||_(!0),m&&f(!1)):(b||_(!0),m||f(!0))},250);return Object(l.jsxs)(s.f,{position:"relative",children:[m&&Object(l.jsx)("div",{className:"ImmersiveVaseCarousel__vaseTagLinkLeft"}),Object(l.jsx)("div",{className:"ImmersiveVaseCarouselContainer",onScroll:e=>{const{scrollLeft:t=0,scrollWidth:n=0,clientWidth:i=0}=e.currentTarget;y(t,n-i)},"data-test-id":"vasetags",children:h&&h.length>0?h.map((e,t)=>j(e,t)):null}),b&&Object(l.jsx)("div",{className:"ImmersiveVaseCarousel__vaseTagLinkRight"})]})},(e,t)=>{const n=e.pin&&e.pin.id,i=t.pin&&t.pin.id;return e.openInCurrentTab===t.openInCurrentTab&&e.isPaidTraffic===t.isPaidTraffic&&n===i}),H=n("E+oP"),q=n.n(H),Y=n("VCRF"),K=n("wzxk"),$=n("QAzJ");const X=()=>Object(l.jsx)("div",{onClick:e=>e.stopPropagation(),role:"presentation",style:{cursor:"default",height:"8px"}});var J=Object(i.memo)(e=>{const{hideVaseTags:t,pin:n,resizeHandler:o,openInCurrentTab:r,hideMeta:a,handleClick:c,showBoardInUserRep:d}=e,[u,p]=Object(i.useState)(n.expandedVASE||!1),g=Object($.b)("mweb_trim_grid_title_ff")().anyEnabled,m=Object(K.b)(n,g)||"",f=Object(l.jsx)(C,{expandToggleHandler:e=>{p(!u),o&&o(n)},hideMeta:a,isExpanded:u,title:m}),b=({event:e})=>{c&&c(e)};if(a)return Object(l.jsx)(s.f,{children:Object(l.jsxs)(s.bb,{onTap:b,children:[f,X()]})});const _=!t&&Object(l.jsx)(G,{pin:n,openInCurrentTab:r}),j=Object(l.jsx)(h,{isExpanded:u,pin:n,shouldTakeTitlesPlace:a&&!m}),y=n.native_creator||n.pinner||{},v=Object(l.jsx)(M,{board:n.board,pinner:y,showBoard:d}),O=Object(l.jsx)(w,{pin:n}),x=Object(l.jsx)(s.f,{children:!!n.story_pin_data&&!!n.reaction_counts&&!q()(n.reaction_counts)&&Object(l.jsx)(s.f,{marginTop:-1,marginBottom:-3,children:Object(l.jsx)(Y.a,{disableModal:!0,pinId:n.id,reactionCounts:n.reaction_counts})})});return Object(l.jsxs)(i.Fragment,{children:[Object(l.jsxs)(s.bb,{onTap:b,children:[_,x,f,O,j,v]}),X()]})},(e,t)=>{const n=e.pin&&e.pin.id,i=t.pin&&t.pin.id;return e.hideMeta===t.hideMeta&&e.isPaidTraffic===t.isPaidTraffic&&n===i}),Z=n("wbGN"),Q=n("YWD0"),ee=n("3wQ7"),te=n("7wXf"),ne=n("2MPc"),ie=n("2WXK"),oe=n("fNKF"),re=n("9Hsp");function ae({clientJsActive:e,desktopUnauthRankingLoggingData:t,openInCurrentTab:n=!0,imageClickHandler:o,imageSize:r="236x",maxPinImageHeight:a,pinHeight:d,borderRadius:u,numServerRenderedPins:p,pin:h,pinImageWidthMax:g,pinLinkClickHandler:m,slotIndex:f,srcSet:b,viewParameter:_}){const{logging:j}=Object(P.b)()||{},{isHovering:y,hoverHandlers:{onMouseOver:v,onMouseLeave:O}}=Object(ie.a)(),x=e=>{var t;Object(I.a)(`unauth_pin_image.${e}.${null!==(t=null!=_?_:j.viewParameter)&&void 0!==t?t:"unknown"}`)};Object(i.useEffect)(()=>{y&&x("hover")},[y]);const w=h.embed&&h.embed.src&&"gif"===h.embed.type,S=Object(c.e)(h,r);let C=S.height*g/S.width;d&&(C=d);const k=!w&&b?Object(oe.a)(h,b):void 0;let T={background:h.dominant_color};const E=a||600;C>E&&!h.fullImage&&(T={...T,maxHeight:E-100+"px"});let D=3475===_&&h.title||h.description;D&&(D=Object(re.b)(D,496));const A=Object(K.a)(D,h.description_html||"",h.pin_join),L={};L.height=C,u&&(L.borderRadius=u);const R=w?h.embed.src:S.url;return Object(l.jsx)(s.C,{wash:!0,rounding:4,children:Object(l.jsxs)("div",{className:"GrowthUnauthPinImage",style:T,onContextMenu:()=>{Object(I.a)("unauth.context_menu_open.pin_image")},onClick:e=>{ne.a.logPinCTAClick(`/pin/${h.id}/`),o(e)},onMouseOver:v,onMouseLeave:O,onFocus:()=>{},onKeyDown:()=>{},role:"button",tabIndex:"0",children:[Object(l.jsx)("a",{href:h.seo_url||`/pin/${h.id}/`,style:T,target:n?"_self":"_blank","data-test-id":"PinImageLink",title:D,onClick:e=>e.preventDefault(),children:Object(l.jsxs)(i.Fragment,{children:[d?Object(l.jsx)(s.f,{rounding:16===u?4:0,overflow:"hidden",height:g?d:void 0,width:g||void 0,children:Object(l.jsx)(s.x,{alt:Object(K.a)(D,h.description_html||"",h.pin_join),fit:"cover",naturalHeight:S.height,naturalWidth:S.width,src:R,srcSet:k})}):Object(l.jsx)(Z.a,{alt:A,className:"GrowthUnauthPinImage__Image",errorFallback:()=>Object(l.jsx)("div",{className:"GrowthUnauthPinImage__Image",style:L,children:Object(l.jsx)("h4",{className:"GrowthUnauthPinImage__placeholder",children:D})}),src:R,srcSet:k,style:L}),y&&Object(l.jsxs)(i.Fragment,{children:[Object(l.jsxs)("div",{className:"GrowthUnauthPinImage__imageDim",children:[Object(l.jsx)("div",{className:"GrowthUnauthPinImage__dimOverlayDark"}),Object(l.jsx)("div",{className:"GrowthUnauthPinImage__dimGradientDark",style:{bottom:0,height:100,left:0,position:"absolute",right:0}})]}),Object(l.jsx)(ee.a,{numServerRenderedPins:p,clientJsActive:e,repinCount:h.repin_count})]})]})}),y&&!!h.domain&&!!h.link&&Object(l.jsx)(Q.a,{clickLoggingOptions:{auxData:{grid_index:f,objectId:h.id,sanitized_url:h.link},unauthRankingLoggingData:t&&t.id&&t.id.length?{pinData:{id:h.id,imageSignature:h.image_signature},viewData:{id:t.id,imageSignature:t.image_signature}}:null},domain:h.domain,link:h.link,onClick:e=>{x("clickthrough"),m&&m(e)}}),(()=>{try{return Object(l.jsx)(s.f,{marginStart:2,marginTop:2,position:"absolute",left:!0,top:!0,children:Object(l.jsx)(te.a,{pin:h,allowShoppingPriceIndicator:!0})})}catch(e){return null}})()]})})}const se=(e,t,n,i,o,r,a,s)=>{if("placeholder"===e.type)return e.height;return Object(c.a)(e,t)+(r?0:Object(c.b)(e,s,i,o,a,n))},ce=Object(i.forwardRef)((e,t)=>{const{clientJsActive:n,desktopUnauthRankingLoggingData:o,hideAllMeta:s=!1,hideVaseTags:c=!1,hideMeta:d,isPaidTraffic:u,isPositionRelative:p,isRelatedPin:h,numServerRenderedPins:g,maxPinImageHeight:m,pinHeight:f,borderRadius:b,gutterWidth:_,openInCurrentTab:j,pin:y,pinImageClickHandler:v,pinImageWidthMax:O,pinImageSize:x,pinLinkClickHandler:w,pinNumber:S,pinWrapperBackgroundColor:C,slotIndex:k,srcSet:T,resizeHandler:E,viewParameter:D}=e,A=Object(P.b)(),L=(null==A?void 0:A.pageType)||"",R=Object(i.useCallback)(e=>{Object(I.a)(`unauth_pin_rep.${e}.${String(D)}`)},[D]),M=Object(i.useCallback)(e=>{R("click");const t=e.metaKey;if(v&&!t&&v({event:e,pin:y,linkTarget:j?"fullPageLoad":"newTab"}),!v||t){t&&R("click.cmd_button_pressed"),e.preventDefault();const n=j&&!t?"_self":"_blank",i=y.seo_url||`/pin/${y.id}/`;window.open(i,n).focus()}},[j,y,v,R]);let F={width:O};const N=["PinGridInner__brioPin","GrowthUnauthPin_brioPinLego"];return C&&(F={...F,background:C}),n||(F={...F,position:"absolute"},N.push("Pin__"+S)),p&&(F={...F,position:"relative"}),_&&(F={...F,marginBottom:_+"px"}),h&&N.push("relatedPin"),Object(l.jsxs)("div",{className:r()(N),"data-test-id":"pin","data-test-pin-id":y.id,onClick:e=>{switch(Object(I.a)("unauth.pin_image_hover_image_click"),L){case"board":Object(I.h)("click_board_pin_image",!0);break;case"pin":Object(I.h)("click_pin_image",!0);break;case"topic":Object(I.h)("click_topic_pin_image",!0)}Object(I.i)({action:"click",item:"pin",page:Object(I.c)(L)})},onContextMenu:e=>{e.stopPropagation(),Object(I.a)("unauth.context_menu_open.pin_image_hover_image")},ref:t,role:"button",style:F,tabIndex:"0",children:[Object(l.jsx)(ae,{borderRadius:b,clientJsActive:n,desktopUnauthRankingLoggingData:o,imageClickHandler:M,imageSize:x,maxPinImageHeight:m,numServerRenderedPins:g,openInCurrentTab:j,pin:y,pinHeight:f,pinImageWidthMax:O,pinLinkClickHandler:w,slotIndex:k,srcSet:T,viewParameter:D}),!s&&Object(l.jsx)(J,{handleClick:M,hideMeta:d,hideVaseTags:c,isPaidTraffic:u,openInCurrentTab:j,pin:y,resizeHandler:E,showBoardInUserRep:"board"!==L}),y.debug&&0!==Object.keys(y.debug).length?Object(l.jsx)(a.b,{data:y.debug}):null]})});ce.displayName="Pin";t.b=ce},noU3:function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o{static reportGoogleConversion(e,t,n){void 0!==window.gtag_report_conversion?window.gtag_report_conversion(e,t,n):o.queuedGoogleConversions.push({id:e,label:t,url:n})}static reportFacebookConversion(e,t,n){void 0!==window.fbq?n?window.fbq("track",t,n):window.fbq("track",t):o.queuedFacebookConversions.push({id:e,event:t,data:n})}static reportCustomFacebookConversion(e,t,n){void 0!==window.fbq?n?window.fbq("trackCustom",t,n):window.fbq("trackCustom",t):o.queuedFacebookConversions.push({id:e,isCustomEvent:!0,event:t,data:n})}static reportPinterestConversion(e,t,n){void 0!==window.pintrk?n?window.pintrk("track",t,n):window.pintrk("track",t):o.queuedPinterestConversions.push({id:e,event:t,data:n})}static reportTwitterConversion(e,t){void 0!==window.twttr?t?window.twttr.conversion.trackPid(e,t):window.twttr.conversion.trackPid(e):o.queuedTwitterConversions.push({id:e,data:t})}static reportTheTradeDeskConversion(e,t){const n=document.createElement("img");n.setAttribute("height","1"),n.setAttribute("width","1"),n.style.borderStyle="none",n.style.position="absolute",n.setAttribute("src",`//insight.adsrvr.org/track/conv/?adv=${e}&ct=0:${t}&fmt=3`),document.body.insertBefore(n,document.body.lastChild)}static reportLinkedInConversion(e,t){const n=document.createElement("img");n.setAttribute("width","1"),n.setAttribute("height","1"),n.setAttribute("src","https://dc.ads.linkedin.com/collect/?pid="+e+`&conversionId=${t}&fmt=gif`),n.style.display="none",document.body.insertBefore(n,document.body.lastChild)}static reportDoubleClickConversion(e,t,n){const i=1e13*Math.random(),o=document.createElement("iframe");o.setAttribute("width","1"),o.setAttribute("height","1"),o.setAttribute("frameborder","0"),o.setAttribute("src",`https://${e}.fls.doubleclick.net/activityi;src=${e};\n    type=${t};cat=${n};dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=${i}?`),o.style.display="none",document.body.insertBefore(o,document.body.lastChild)}static insertGoogleAdWordsTag(e){const t=document.createElement("script");t.setAttribute("async",""),t.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=AW-"+e),t.onload=()=>{window.dataLayer=window.dataLayer||[],window.gtag=function(e,t,n){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config","AW-"+e),window.gtag_report_conversion=function(e,t,n){return window.gtag("event","conversion",{send_to:"AW-"+e+"/"+t,event_callback:function(){void 0!==n&&window.location.assign(n)}}),!1};const t=o.queuedGoogleConversions;for(let n=0;n<t.length;n+=1){const i=t[n];i.id===e&&o.reportGoogleConversion(i.id,i.label,i.url)}},document.body.insertBefore(t,document.body.firstChild)}static insertFacebookPixelTag(e){var t,n,i,r,a,s;t=window,n=document,i="script",t.fbq||(r=t.fbq=function(){r.callMethod?r.callMethod.apply(r,arguments):r.queue.push(arguments)},t._fbq||(t._fbq=r),r.push=r,r.loaded=!0,r.version="2.0",r.queue=[],(a=n.createElement(i)).async=!0,a.src="//connect.facebook.net/en_US/fbevents.js",(s=n.getElementsByTagName(i)[0]).parentNode.insertBefore(a,s)),window.fbq("init",e),window.fbq("track","PageView");const c=o.queuedFacebookConversions;for(let l=0;l<c.length;l+=1){const t=c[l];t.id===e&&(t.isCustomEvent?o.reportCustomFacebookConversion(e,t.event,t.data):o.reportFacebookConversion(e,t.event,t.data))}}static insertTwitterUniversalTag(e){var t,n,i,o,r,a;t=window,n=document,i="script",t.twq||((o=t.twq=function(){o.exe?o.exe.apply(o,arguments):o.queue.push(arguments)}).version="1.1",o.queue=[],(r=n.createElement(i)).async=!0,r.src="//static.ads-twitter.com/uwt.js",(a=n.getElementsByTagName(i)[0]).parentNode.insertBefore(r,a)),window.twq("init",e),window.twq("track","PageView")}static insertLinkedInInsightTag(e){window._linkedin_data_partner_id=e;const t=document.createElement("script");t.setAttribute("src","//snap.licdn.com/li.lms-analytics/insight.min.js"),document.body.insertBefore(t,document.body.firstChild)}static insertPinterestTag(e){!function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};const e=window.pintrk;e.queue=[],e.version="3.0";const t=document.createElement("script");t.async=!0,t.src="https://s.pinimg.com/ct/core.js";const n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}}(),window.pintrk("load",e),window.pintrk("page");const t=o.queuedPinterestConversions;for(let n=0;n<t.length;n+=1){const i=t[n];i.id===e&&o.reportPinterestConversion(e,i.event,i.data)}}}i(o,"queuedGoogleConversions",[]),i(o,"queuedFacebookConversions",[]),i(o,"queuedPinterestConversions",[]),i(o,"queuedTwitterConversions",[]),t.a=o},nrB0:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("2S0S"),o=!1,r=!1,a=function(){function e(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.sourceId=e},e.prototype.getHandlerId=function(){return this.sourceId},e.prototype.canDrag=function(){i(!o,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return o=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{o=!1}},e.prototype.isDragging=function(){if(!this.sourceId)return!1;i(!r,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return r=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{r=!1}},e.prototype.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},e.prototype.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},e.prototype.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},e.prototype.getTargetIds=function(){return this.internalMonitor.getTargetIds()},e.prototype.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},e.prototype.getSourceId=function(){return this.internalMonitor.getSourceId()},e.prototype.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},e.prototype.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},e.prototype.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();t.default=a},nwWm:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("QWk2"),o=n("TT16"),r=n("Gytx"),a=function(){function e(e){var t=this;this.backend=e,this.hooks=i.default({dragSource:function(e,n){t.dragSourceOptions=n||null,o.isRef(e)?t.dragSourceRef=e:t.dragSourceNode=e,t.reconnectDragSource()},dragPreview:function(e,n){t.dragPreviewOptions=n||null,o.isRef(e)?t.dragPreviewRef=e:t.dragPreviewNode=e,t.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null}return e.prototype.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},Object.defineProperty(e.prototype,"connectTarget",{get:function(){return this.dragSource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragSourceOptions",{get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragPreviewOptions",{get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e},enumerable:!0,configurable:!0}),e.prototype.reconnect=function(){this.reconnectDragSource(),this.reconnectDragPreview()},e.prototype.reconnectDragSource=function(){var e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource();var t=this.dragSource;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)},e.prototype.reconnectDragPreview=function(){var e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview();var t=this.dragPreview;this.handlerId&&t&&e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))},e.prototype.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},e.prototype.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},e.prototype.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},e.prototype.didDragSourceOptionsChange=function(){return!r(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},e.prototype.didDragPreviewOptionsChange=function(){return!r(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},e.prototype.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)},e.prototype.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)},Object.defineProperty(e.prototype,"dragSource",{get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragPreview",{get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current},enumerable:!0,configurable:!0}),e}();t.default=a},o0wi:function(e,t,n){n.d(t,"a",(function(){return g}));var i=n("q1tI"),o=n("v/Q4"),r=n("U4JR"),a=n("28DW"),s=n("QAzJ"),c=n("n6mq"),l=n("nKUr");function d({breadcrumb:e,isLastBreadcrumb:t,textSize:n="lg"}){const{anyEnabled:d}=Object(s.b)("web_unauth_breadcrumbs_refresh")(),[u,p]=Object(i.useState)(!1),h={textDecoration:u?"underline #171717":"none"},g=Object(o.a)(),m=t&&!d?"bold":"normal",f=t&&d?"lightGray":void 0;return Object(i.useEffect)(()=>{u&&Object(a.i)({action:"hover",item:"breadcrumb"})},[u]),Object(l.jsx)(c.f,{display:"inlineBlock",color:f,paddingX:t&&d?2:void 0,paddingY:t&&d?1:void 0,rounding:"pill",children:Object(l.jsxs)(c.f,{display:"flex",alignItems:"center","data-test-id":"breadcrumb",children:[Object(l.jsx)(c.bb,{onBlur:()=>p(!1),onFocus:()=>p(!0),onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onTap:()=>(Object(r.b)(101,{component:176,element:1155,is_auth:g.isAuth,view:442,viewParameter:3475,sanitized_url:e.url}),void Object(a.i)({action:"click",item:"breadcrumb"})),children:Object(l.jsx)("a",{href:e.url,style:h,children:Object(l.jsx)(c.cb,{size:n,color:"darkGray",inline:!0,weight:m,children:e.name})})}),!t&&Object(l.jsx)(c.f,{paddingX:d?3:2,display:"inlineBlock",children:Object(l.jsx)(c.cb,{size:n,color:"darkGray",inline:!0,weight:"bold",children:d?Object(l.jsx)(c.v,{accessibilityLabel:"breadcrumb arrow",color:"darkGray",icon:"arrow-forward",size:8}):"•"})})]})})}var u=n("Ye/N"),p=n("Lfjc"),h=n("pLLR");function g({breadcrumbs:e,isIdeasPage:t}){const{origin:n}=Object(h.d)();if(!e||0===e.length)return null;const o=t?e.slice(0,e.length-1):e;let r=e.length>=2;const a={url:"/ideas/",name:u.a._("Explore","Breadcrumb name for page for all ideas","Breadcrumb name for page for all ideas")};let s=!1;return t&&(0===o.length&&(s=!0),e.length>=1&&(r=!0)),Object(l.jsxs)(c.f,{"data-test-id":"breadcrumbs",children:[r&&Object(l.jsxs)(i.Fragment,{children:[Object(l.jsx)(d,{breadcrumb:a,isLastBreadcrumb:s,textSize:"sm"}),o.map((e,t)=>Object(l.jsx)(d,{breadcrumb:e,isLastBreadcrumb:t===o.length-1,textSize:"sm"},t))]}),Object(l.jsx)(p.a,{type:"application/ld+json",value:{"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:e.map((e,t)=>{var i;return{"@type":"ListItem",position:t+1,name:e.name,item:`${n}${null!==(i=e.url)&&void 0!==i?i:""}`}})}})]})}},"oJn+":function(e,t){e.exports="https://s.pinimg.com/webapp/goodIdea-90cc9e5e.svg"},oRao:function(e,t,n){var i=n("XRfM"),o=n("pLLR"),r=n("nKUr");t.a=({currency:e,maximumFractionDigits:t,minimumFractionDigits:n,shortform:a,shortformMaximumFractionDigits:s,formatStyle:c,uplimit:l,value:d})=>Object(r.jsx)(o.b,{children:o=>Object(i.g)(o.locale||"en-US",d,{currency:e,maximum_fraction_digits:t,minimum_fraction_digits:n,shortform:a,shortform_maximum_fraction_digits:s,style:c,uplimit:l})})},ovj4:function(e,t,n){var i=n("T0g9");t.a=(e,t)=>e+"?"+Object(i.a)(t)},p7ys:function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},pSwN:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("Ye/N"),o=n("n6mq"),r=n("nKUr");function a({handleFollowClick:e,isFollowing:t,isSelf:n,disabled:a}){const s=t?i.a._("Unfollow"):i.a._("Follow");return n?Object(r.jsx)(o.g,{inline:!0,disabled:!0,text:i.a._("That's you!","Text describing that the person's avatar is you","Text describing that the person's avatar is you")}):Object(r.jsx)(o.g,{color:t?"gray":"red",inline:!0,onClick:e,text:s,disabled:a})}},pWkb:function(e,t,n){n.d(t,"a",(function(){return r}));var i=n("yaUg"),o=n("Ye/N");function r(e,t){const{isAbbreviated:n,skipSeconds:r}=t||{},a=36e5,s=864e5,c=new Date(e),l=(new Date).getTime()-c.getTime(),d=Math.floor(l/1e3),u=Math.floor(l/6e4),p=Math.floor(l/a),h=Math.floor(l/s),g=Math.floor(l/6048e5),m=Math.floor(l/31536e6);return m>0?n?Object(i.a)(o.a._("{{ years }}y","Abbreviation for years","Abbreviation for years"),{years:""+m}):Object(i.a)(o.a.ngettext("{{ years }} year ago","{{ years }} years ago",m,"describing amount of time that has passed - e.g. in notifications, messages","describing amount of time that has passed - e.g. in notifications, messages"),{years:""+m}):g>1?n?Object(i.a)(o.a._("{{ weeks }}w","Abbreviation for weeks","Abbreviation for weeks"),{weeks:""+g}):Object(i.a)(o.a.ngettext("{{ weeks }} week ago","{{ weeks }} weeks ago",g,"describing amount of time that has passed - e.g. in notifications, messages","describing amount of time that has passed - e.g. in notifications, messages"),{weeks:""+g}):h>0?n?Object(i.a)(o.a._("{{ days }}d","Abbreviation for days","Abbreviation for days"),{days:""+h}):Object(i.a)(o.a.ngettext("{{ days }} day ago","{{ days }} days ago",h,"describing amount of time that has passed - e.g. in notifications, messages","describing amount of time that has passed - e.g. in notifications, messages"),{days:""+h}):p>0?n?Object(i.a)(o.a._("{{ hours }}h","Abbreviation for hours","Abbreviation for hours"),{hours:""+p}):Object(i.a)(o.a.ngettext("{{ hours }} hour ago","{{ hours }} hours ago",p,"describing amount of time that has passed - e.g. in notifications, messages","describing amount of time that has passed - e.g. in notifications, messages"),{hours:""+p}):u>0?n?Object(i.a)(o.a._("{{ minutes }}m","Abbreviation for minutes","Abbreviation for minutes"),{minutes:""+u}):Object(i.a)(o.a.ngettext("{{ minutes }} minute ago","{{ minutes }} minutes ago",u,"describing amount of time that has passed - e.g. in notifications, messages","describing amount of time that has passed - e.g. in notifications, messages"),{minutes:""+u}):d>=0&&!r?n?Object(i.a)(o.a._("{{ numSecondsBetween }}s","Abbreviation for seconds","Abbreviation for seconds"),{numSecondsBetween:""+d}):Object(i.a)(o.a.ngettext("{{ numSecondsBetween }} second ago","{{ numSecondsBetween }} seconds ago",d,"describing amount of time that has passed - e.g. in notifications, messages","describing amount of time that has passed - e.g. in notifications, messages"),{numSecondsBetween:""+d}):o.a._("just now","describing amount of time that has passed - e.g. in notifications, messages","describing amount of time that has passed - e.g. in notifications, messages")}},pWuj:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("pYMm"),o=n("fOPN"),r=n("N4T/"),a=n("YuQ1"),s=n("LTlA");t.default=function(e,t){switch(void 0===e&&(e=a.NONE),t.type){case i.HOVER:break;case o.ADD_SOURCE:case o.ADD_TARGET:case o.REMOVE_TARGET:case o.REMOVE_SOURCE:return a.NONE;case i.BEGIN_DRAG:case i.PUBLISH_DRAG_SOURCE:case i.END_DRAG:case i.DROP:default:return a.ALL}var n=t.payload,c=n.targetIds,l=void 0===c?[]:c,d=n.prevTargetIds,u=void 0===d?[]:d,p=s.xor(l,u);if(!(p.length>0||!r.areArraysEqual(l,u)))return a.NONE;var h=u[u.length-1],g=l[l.length-1];return h!==g&&(h&&p.push(h),g&&p.push(g)),p}},pYMm:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("bVL4"),o=n("rV1A"),r=n("sAMb"),a=n("BEzM"),s=n("vmVG");!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n("7nh8")),t.default=function(e){return{beginDrag:i.default(e),publishDragSource:o.default(e),hover:r.default(e),drop:a.default(e),endDrag:s.default(e)}}},peh1:function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){return e===t}function r(e){var t=arguments.length<=1||void 0===arguments[1]?o:arguments[1],n=null,i=null;return function(){for(var o=arguments.length,r=Array(o),a=0;a<o;a++)r[a]=arguments[a];return null!==n&&n.length===r.length&&r.every((function(e,i){return t(e,n[i])}))||(i=e.apply(void 0,r)),n=r,i}}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),r=0;r<t;r++)o[r]=arguments[r];var s=0,c=o.pop(),l=a(o),d=e.apply(void 0,[function(){return s++,c.apply(void 0,arguments)}].concat(n)),u=function(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var a=l.map((function(n){return n.apply(void 0,[e,t].concat(o))}));return d.apply(void 0,i(a))};return u.resultFunc=c,u.recomputations=function(){return s},u.resetRecomputations=function(){return s=0},u}}t.__esModule=!0,t.defaultMemoize=r,t.createSelectorCreator=s,t.createStructuredSelector=function(e){var t=arguments.length<=1||void 0===arguments[1]?c:arguments[1];if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.reduce((function(e,t,i){return e[n[i]]=t,e}),{})}))};var c=t.createSelector=s(r)},prCw:function(e,t,n){function i(e,t){return{type:"PIN_UPDATE_COMMENT_COUNT",payload:{id:e,increment:t}}}n.d(t,"a",(function(){return i}))},q8wg:function(e,t,n){var i=n("8wun"),o=n("1u47"),r=n("nKUr");t.a=e=>Object(r.jsx)(o.a,{...e,timeSpentManager:i.a})},qFZT:function(e,t,n){var i=n("PnD8"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return i.isMemo(e)?a:s[e.$$typeof]||o}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(g){var o=h(n);o&&o!==g&&e(t,o,i)}var a=d(n);u&&(a=a.concat(u(n)));for(var s=c(t),m=c(n),f=0;f<a.length;++f){var b=a[f];if(!(r[b]||i&&i[b]||m&&m[b]||s&&s[b])){var _=p(n,b);try{l(t,b,_)}catch(j){}}}return t}return t}},qYP9:function(e,t){e.exports="https://s.pinimg.com/webapp/haha-33f54d88.svg"},qpbZ:function(e,t,n){function i(e,t,n){return e.split(n).map(e=>{if(e.match(n)){const n=e.replace(/[\{\}]/g,"").trim();if(Object.prototype.hasOwnProperty.call(t,n))return t[n]}return e})}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return c}));const o=/(\{\{\s*\w+\s*\}\})/g;function r(e,t){return i(e,t,o)}function a(e,t){return i(e,t,o).join("")}const s=/(\{\s*\w+\s*\})/g;function c(e,t){return i(e,t,s)}},qtKf:function(e,t,n){n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));const i=(e,t)=>`${e}:${t||""}`,o=(e,t)=>e.feeds.profileBoards[i(t.username,t.boardOrder)],r=(e,t)=>t.isOverview||t.inActivityView?"xxWide":t.isOwnProfile&&e.ui.views&&e.ui.views.profileBoardView||"wide"},rV1A:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("7nh8");t.default=function(e){return function(){if(e.getMonitor().isDragging())return{type:i.PUBLISH_DRAG_SOURCE}}}},rki0:function(e,t,n){n.d(t,"a",(function(){return i}));const i=e=>null!==(e||"undefined"!=typeof document&&document.referrer||"").toLowerCase().match(/pinterest\.|pinterdev/)},rsy7:function(e,t,n){function i(e){var t;return((((null===(t=e.rich_summary)||void 0===t?void 0:t.products)||[])[0]||{}).label_info||{}).labels||[]}n.d(t,"a",(function(){return i}))},s4NR:function(e,t,n){t.decode=t.parse=n("kd2E"),t.encode=t.stringify=n("4JlD")},s8BS:function(e,t,n){n.d(t,"a",(function(){return u}));var i=n("q1tI"),o=n("4lrw"),r=n("TgLd"),a=n("yweb"),s=n("qpbZ"),c=n("K060"),l=n("n6mq"),d=n("nKUr");function u({onClose:e}){const t=Object(a.c)(),n=t._("Common reasons for account deactivation include:"),u=t._("{{ help_link }} if you have questions or would like to reactivate your account."),p=[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 Object(d.jsx)(r.b,{accessibilityModalLabel:t._("Login disabled for deactivated account","Modal accessibility label for when a user tries to login with a deactivated account","Modal accessibility label for when a user tries to login with a deactivated account"),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,role:"alertdialog",size:"md",children:Object(d.jsxs)(l.f,{paddingX:6,marginBottom:4,children:[Object(d.jsxs)(l.f,{marginBottom:4,children:[Object(d.jsxs)(l.cb,{children:[" ",n," "]}),Object(d.jsx)(l.f,{paddingY:2,children:Object(d.jsx)(i.Fragment,{children:p.map((e,t)=>Object(d.jsx)(l.cb,{children:"• "+e},"reasons-"+t))})}),Object(d.jsx)(l.cb,{inline:!0,children:Object(s.b)(u,{help_link:Object(d.jsx)(c.a,{},"suspended user help_link")})})]}),Object(d.jsx)(l.f,{marginTop:4,children:Object(d.jsx)(o.a,{color:"red",onClick:e,overrideText:t._("Got it","Acknowledge suspended account modal message","Acknowledge suspended account modal message")})})]})})}},sAMb:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("mc7v"),o=n("7nh8"),r=n("QLaP");t.default=function(e){return function(t,n){var a=(void 0===n?{}:n).clientOffset;!function(e){r(Array.isArray(e),"Expected targetIds to be an array.")}(t);var s=t.slice(0),c=e.getMonitor(),l=e.getRegistry();return function(e,t,n){r(t.isDragging(),"Cannot call hover while not dragging."),r(!t.didDrop(),"Cannot call hover after drop.");for(var i=0;i<e.length;i++){var o=e[i];r(e.lastIndexOf(o)===i,"Expected targetIds to be unique in the passed array.");var a=n.getTarget(o);r(a,"Expected targetIds to be registered.")}}(s,c,l),function(e,t,n){for(var o=e.length-1;o>=0;o--){var r=e[o],a=t.getTargetType(r);i.default(a,n)||e.splice(o,1)}}(s,l,c.getItemType()),function(e,t,n){for(var i=0,o=e;i<o.length;i++){var r=o[i];n.getTarget(r).hover(t,r)}}(s,c,l),{type:o.HOVER,payload:{targetIds:s,clientOffset:a||null}}}}},sGxw:function(e,t,n){function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("jirY")),i(n("z3qU")),i(n("UJTY"))},"sH+O":function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));const o=(e,t)=>{const n=/^\d{1,3}\.\d{1,3}(?:\.\d{1,6})?$/;if(null==e||!e.match(n)||null==t||!t.match(n))return null;const i=null==e?void 0:e.split("."),o=null==t?void 0:t.split("."),r=Math.max((null!=i?i:"").length,(null!=o?o:"").length);for(let c=0;c<r;c+=1){var a,s;const e=c<(null!==(a=null==i?void 0:i.length)&&void 0!==a?a:0)?parseInt(null==i?void 0:i[c],10):0,t=c<(null!==(s=null==o?void 0:o.length)&&void 0!==s?s:0)?parseInt(null==o?void 0:o[c],10):0;if(e<t)return-1;if(e>t)return 1}return 0};class r{constructor(e,t,n){i(this,"start",Date.now()),i(this,"paused",!1),this.onProgress=e,this.onComplete=t,this.duration=n,this.remaining=n,"undefined"!=typeof window&&(this.intervalId=window.setInterval(()=>{const e=this.paused?this.duration-this.remaining:this.duration-this.remaining+(Date.now()-this.start);this.onProgress(e/this.duration)},500),this.resume())}currentTime(){return this.duration-this.remaining}pause(){this.paused=!0,window.clearTimeout(this.timerId),this.remaining-=Date.now()-this.start;const e=this.duration-this.remaining;this.onProgress(e/this.duration)}resume(){this.paused=!1,this.start=Date.now(),window.clearTimeout(this.timerId),this.timerId=window.setTimeout(this.onComplete,this.remaining)}clear(){window.clearTimeout(this.timerId),window.clearInterval(this.intervalId)}}},sRdV:function(e,t,n){e.exports=function(e){var t={};t.src_Any=n("y8fO").source,t.src_Cc=n("p7ys").source,t.src_Z=n("T8I8").source,t.src_P=n("fKCf").source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+"[><｜]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-(?!-)|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|[><｜]|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},sYwW:function(e,t,n){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var i=n("ZNVR");function o(e,t,n=3){if(window._sendFacebookPixel)"NewOrRezUsers"===e||"MAU"===e?window._sendFacebookPixel("trackCustom",e):window._sendFacebookPixel("track",e),t();else if(n>0){const i=Math.floor(3e3/n);setTimeout(()=>{o(e,t,n-1)},i)}}function r(e,t){return n=>{o(e,t),window.removeEventListener(n,r)}}function a(e,t){"complete"===document.readyState?o(e,t):window.addEventListener("load",r(e,t))}function s(){document.getElementById("facebookPixel")||("complete"===document.readyState&&function(){const e=Object(i.a)({src:"https://"+location.hostname+"/fb.html",id:"facebookPixel",sandbox:"allow-scripts allow-same-origin",style:"display: none;"});if(!document.body)throw new Error("missing <body>");document.body.appendChild(e),e.contentWindow.addEventListener("load",()=>window._sendFacebookPixel=e.contentWindow.fbq)}(),window.addEventListener("load",s))}},sZWH:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("S8b/"),o=n("PRGv");t.getEmptyImage=o.default;var r=n("QSJg");t.NativeTypes=r,t.default=function(e){return new i.default(e)}},seY9:function(e,t,n){var i=n("q1tI"),o=n("Ye/N"),r=n("n6mq"),a=n("vvax"),s=n("28DW"),c=n("nKUr");const l={modalContainer:{backgroundColor:"rgba(85, 85, 85, 0.9)",color:"#333",height:"100vh",left:0,position:"fixed",top:0,WebkitFontSmoothing:"antialiased",width:"100vw",zIndex:2},vaseCard:{backgroundColor:"white",borderRadius:"8px",left:"50%",position:"absolute",top:"50%",transform:"translate(-50%, calc(-50% - 32px))",paddingBottom:"10px",width:"414px"},header:{borderBottom:"solid 1px #efefef",display:"flex",height:"60px",justifyContent:"flex-end",padding:"0 24px"},icon:{cursor:"pointer",fill:"#767676",marginTop:"20px"},moreInfoTitle:{fontSize:"21px",fontWeight:"bold",left:"50%",marginTop:"20px",position:"absolute",transform:"translateX(-50%)"},informationSection:{maxHeight:"calc(60vh - 60px)",overflowY:"auto",padding:"0 24px 24px 24px"},pinDescription:{fontSize:"16px",marginTop:"15px"},pinAttribution:{fontSize:"16px",marginTop:"12px"},link:{fontWeight:"bold",textDecoration:"none"},subtitle:{fontSize:"18px",fontWeight:"bold",marginTop:"16px"},annotationsWrapper:{display:"flex",flexWrap:"wrap"}};t.a=e=>{const{closeButtonClickHandler:t,pin:n}=e,d=e=>{Object(s.h)("click_vase_modal_board",!0)},u=e=>{Object(s.h)("click_vase_modal_profile",!0)},p=Object(c.jsxs)(i.Fragment,{children:[Object(c.jsxs)("div",{style:l.header,children:[Object(c.jsx)("div",{onClick:t,onKeyUp:t,role:"button",style:l.icon,tabIndex:"0",children:Object(c.jsx)(r.v,{accessibilityLabel:o.a._("Cancel","close modal icon","close modal icon"),icon:"cancel",inline:!0,size:18})}),Object(c.jsx)("div",{style:l.moreInfoTitle,children:o.a._("More information","more information label","more information label")})]}),Object(c.jsxs)("div",{style:l.informationSection,children:[(e=>e.description?Object(c.jsx)("h2",{style:l.pinDescription,children:e.description}):null)(n),(e=>{const{board:t}=e;if(t&&t.url&&t.name){const n=e.board.url.split("/")[1];let i=n;e.pinner&&e.pinner.full_name&&(i=e.pinner.full_name);const r=Object(a.b)(o.a._("Find this Pin and more on {{ board_link }} by {{ profile_link }}.","Link to pin's board and board's owner","Link to pin's board and board's owner"),{board_link:Object(c.jsx)("a",{href:t.url,onClick:d,style:l.link,children:t.name},"board-link"),profile_link:Object(c.jsx)("a",{href:`/${n}/`,onClick:u,style:l.link,children:i},"profile-link")});return Object(c.jsx)("div",{style:l.pinAttribution,children:r})}return null})(n)]})]});return Object(c.jsx)("div",{"data-test-id":"more-information-modal",style:l.modalContainer,onClick:e=>t(e),children:Object(c.jsx)("section",{onClick:e=>e.stopPropagation(),style:l.vaseCard,children:p})})}},slCJ:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n("q1tI"),s=n("SFi7"),c=n("jxrL"),l=n("dJ9d"),d=(n("QWfI"),n("2S0S")),u=n("qFZT"),p=n("Gytx");t.default=function(e){var t=e.DecoratedComponent,n=e.createHandler,i=e.createMonitor,h=e.createConnector,g=e.registerHandler,m=e.containerDisplayName,f=e.getType,b=e.collect,_=e.options.arePropsEqual,j=void 0===_?p:_,y=t,v=t.displayName||t.name||"Component",O=function(e){function u(t){var n=e.call(this,t)||this;return n.decoratedRef=a.createRef(),n.handleChange=function(){var e=n.getCurrentState();p(e,n.state)||n.setState(e)},n.disposable=new c.SerialDisposable,n.receiveProps(t),n.dispose(),n}return o(u,e),u.prototype.getHandlerId=function(){return this.handlerId},u.prototype.getDecoratedComponentInstance=function(){return d(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current},u.prototype.shouldComponentUpdate=function(e,t){return!j(e,this.props)||!p(t,this.state)},u.prototype.componentDidMount=function(){this.disposable=new c.SerialDisposable,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()},u.prototype.componentDidUpdate=function(e){j(this.props,e)||(this.receiveProps(this.props),this.handleChange())},u.prototype.componentWillUnmount=function(){this.dispose()},u.prototype.receiveProps=function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(f(e)))},u.prototype.receiveType=function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=g(e,this.handler,this.manager),n=t[0],i=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new c.CompositeDisposable(new c.Disposable(o),new c.Disposable(i)))}},u.prototype.dispose=function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)},u.prototype.getCurrentState=function(){return this.handlerConnector?b(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}},u.prototype.render=function(){var e=this;return a.createElement(s.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),a.createElement(y,r({},e.props,e.getCurrentState(),{ref:l.isRefable(y)?e.decoratedRef:null}))}))},u.prototype.receiveDragDropManager=function(e){void 0===this.manager&&(d(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",v,v),void 0!==e&&(this.manager=e,this.handlerMonitor=i(e),this.handlerConnector=h(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))},u.DecoratedComponent=t,u.displayName=m+"("+v+")",u}(a.Component);return u(O,t)}},t5Ir:function(e,t,n){t.a={GOOGLE_ADWORDS_ID:852082959,GOOGLE_ADWORDS_LABEL_PROPEL_QUALIFIED:"Mah3CPrv13YQj4KnlgM",GOOGLE_ADWORDS_LABEL_PROPEL_UNQUALIFIED:"_DJfCKzy13YQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_CREATE:"GGbCCM7p-nYQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_CONVERT:"SwBsCIz9k3cQj4KnlgM",GOOGLE_ADWORDS_LABEL_BUSINESS_ADVERTISER_INTENT:"kDf0COWL4okBEI-Cp5YD",DOUBLECLICK_TAG_ID:"8032161",DOUBLECLICK_EVENT_ID_PROPEL:"prope001",DOUBLECLICK_CATEGORY_ID_PROPEL_QUALIFIED:"pinte0",DOUBLECLICK_CATEGORY_ID_PROPEL_UNQUALIFIED:"pinte00",TRADEDESK_ADVERTISER_ID:"fc1uc9n",TRADEDESK_EVENT_ID_GENERAL_PAGEVIEW:"ogalyt3",TRADEDESK_CONVERSION_ID_PROPEL_QUALIFIED:"judrn76",TRADEDESK_CONVERSION_ID_PROPEL_UNQUALIFIED:"f0v4s5d",FACEBOOK_ADVERTISER_ID:"956400731086791",TWITTER_UNIVERSAL_TAG_ID:"nuzh8",TWITTER_CONVERSION_ID_PROPEL_QUALIFIED:"ny8zl",TWITTER_CONVERSION_ID_PROPEL_UNQUALIFIED:"nya0d",LINKEDIN_PARTNER_ID:"44352",LINKEDIN_CONVERSION_ID_PROPEL_QUALIFIED:"166217",LINKEDIN_CONVERSION_ID_PROPEL_UNQUALIFIED:"171754",LINKEDIN_CONVERSION_ID_SUBMISSION_EVENT:"529092",PINTEREST_TAG_ID:"2614461171935",SMB_PAID_PINTEREST_ID:"2613736141997"}},tAJF:function(e,t,n){var i=n("q1tI"),o=n("/MKj"),r=n("7w6Q"),a=n("FDmi"),s=n("nKUr");const c={container:{width:"12%",height:"28%",right:"1%",position:"relative",backgroundColor:"#fff",border:"1px solid #e0e0e0",boxShadow:"0px 5px 6px rgba(0, 0, 0, 0.1)",paddingTop:20,paddingRight:20,paddingLeft:20,borderRadius:5},caret:{position:"absolute",fill:"#fff",stroke:"#e0e0e0",left:"100%",top:"25%"}},l=()=>Object(s.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",children:Object(s.jsx)("path",{d:"M0 0 L12 12 L0 24"})});function d(e){return Object(s.jsxs)("div",{style:c.container,children:[Object(s.jsx)("div",{style:c.caret,children:Object(s.jsx)(l,{})}),e.children]})}var u=n("Ye/N"),p=n("n6mq");function h(e){const t=e.inviteCodeResource?e.inviteCodeResource.sender:null,n=t?t.first_name:"",o=t?t.image_medium_url:"",r=n?u.a._("{{ name }} sent you an idea from Pinterest","flyout indicating to reciver got a share link from sender(name) ","flyout indicating to reciver got a share link from sender(name) ").replace("{{ name }}",n):"",c=n?u.a._("Reply to {{ name }}","placeholder for reply text for sender(name)","placeholder for reply text for sender(name)").replace("{{ name }}",n):u.a._("Add a Message","reply back to a message","reply back to a message");return t?Object(s.jsx)(i.Fragment,{children:Object(s.jsx)(d,{children:Object(s.jsxs)(p.f,{children:[Object(s.jsxs)(p.f,{alignItems:"start",direction:"row",display:"flex",flex:"grow",children:[Object(s.jsx)(p.f,{marginEnd:1,children:Object(s.jsx)(p.cb,{weight:"bold",children:r})}),Object(s.jsx)(p.f,{width:90,display:"flex",flex:"grow",children:Object(s.jsx)(a.a,{name:n,src:o})})]}),Object(s.jsx)(p.bb,{onTap:e.onReplyFocus,children:Object(s.jsx)(p.f,{marginTop:4,display:"flex",flex:"grow",rounding:2,alignContent:"center",height:35,dangerouslySetInlineStyle:{__style:{border:"#767676",borderWidth:"thin",borderStyle:"solid"}},children:Object(s.jsx)(p.f,{left:!0,width:"82%",alignSelf:"center",marginStart:2,dangerouslySetInlineStyle:{__style:{cursor:"default",paddingBottom:"1%"}},children:Object(s.jsx)(p.cb,{size:"md",truncate:!0,color:"gray",align:"start",children:c})})})})]})})}):null}var g=n("x83E"),m=n("6AVr"),f=n("qrav"),b=n("D2p8"),_=n("vCxS"),j=n.n(_),y=n("LT60");function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O={filter:"blur(24px)",WebkitFilter:"blur(24px)"},x={width:"100vw",height:"100vh",backgroundColor:"rgba(51, 51, 51, 0.9)",position:"fixed",left:"0px",bottom:"0px",right:"0px",top:"0x",zIndex:1e3,display:"flex"},w={width:"100vw",height:"100vh",backgroundImage:`url(${j.a})`,backgroundSize:"100% 100%",backgroundColor:"rgba(51, 51, 51, 1)",position:"fixed",left:"0px",bottom:"0px",right:"0px",top:"0px",zIndex:1e3,display:"flex"},S={height:"251px",width:"804px",margin:"auto",position:"relative",display:"flex"};class C extends i.Component{constructor(e){super(e),v(this,"pauseImpressionsTracking",()=>{b.c.pause()}),v(this,"resumeImpressionsTracking",()=>{b.c.resume()}),v(this,"handleContinue",()=>{this.resumeImpressionsTracking(),this.props.onDismiss()}),v(this,"handleRedirect",()=>{window.location.assign("/")}),v(this,"onContinue",()=>{this.handleContinue()}),v(this,"onCancel",()=>{this.handleRedirect()}),this.prevOverflow=null}componentDidMount(){"undefined"!=typeof window&&(this.prevOverflow=window.document.body.style.overflow,window.document.body.style.overflow="hidden"),this.pauseImpressionsTracking()}componentWillUnmount(){"undefined"!=typeof window&&(window.document.body.style.overflow=this.prevOverflow),this.resumeImpressionsTracking()}render(){const{browserSupportsBlur:e}=this.props;return Object(s.jsx)(y.a,{allowClickAndDrag:!1,children:Object(s.jsx)("div",{style:e?x:w,children:Object(s.jsx)("div",{style:S,children:Object(s.jsxs)(p.f,{position:"relative",display:"flex",width:"100%",rounding:2,color:"white",justifyContent:"around",alignItems:"center",paddingY:12,wrap:!0,children:[Object(s.jsx)(p.f,{display:"flex",justifyContent:"center",padding:4,children:Object(s.jsx)(p.u,{children:u.a._("Heads up: This might be sensitive content","Warning modal for sensitive content","Warning modal for sensitive content")})}),Object(s.jsxs)(p.f,{marginStart:-1,marginEnd:-1,display:"flex",alignItems:"center",justifyContent:"end",children:[Object(s.jsx)(p.f,{padding:2,children:Object(s.jsx)(p.g,{size:"md",text:u.a._("Continue","Continue to view potentially sensitive content","Continue to view potentially sensitive content"),accessibilityLabel:u.a._("Continue to view content","Accessible label for content safety modal continue button","Accessible label for content safety modal continue button"),onClick:this.onContinue})}),Object(s.jsx)(p.f,{padding:2,children:Object(s.jsx)(p.g,{color:"red",size:"md",text:u.a._("Cancel","Cancel and go back to the homefeed","Cancel and go back to the homefeed"),accessibilityLabel:u.a._("Cancel and return to homefeed","Accessible label for content safety modal cancel button","Accessible label for content safety modal cancel button"),onClick:this.onCancel})})]})]})})})})}}var k=C,T=n("QAzJ"),E=n("XZ+i");const I=/^(enabled_)(\d{1,2})$/;function P({shouldShowContentSafetyModal:e,browserSupportsBlur:t,children:n,isStoryPin:o}){const{relatedPinsStickyDismissed:r,setRelatedPinsStickyDismissed:a}=Object(E.c)(),c=o||r,l=Object(T.b)("web_unauth_jp_related_pins_tray");let d="40vh",u=!1;if(!c){const e=l().group;"enabled_completely_hide_tray"===e&&(u=!0),d=(e=>{const t=e.match(I);return t&&3===t.length?t[2]:"40"})(e)+"vh"}return Object(s.jsxs)(i.Fragment,{children:[Object(s.jsx)(p.W,{bottom:c||u?"":0,children:Object(s.jsx)("div",{style:{...e&&t?O:{},maxHeight:d,boxShadow:c?void 0:"0px 0px 8px rgba(0, 0, 0, 0.1)"},children:n})}),Object(s.jsx)(f.a,{onVisibilityChange:(...e)=>((e,t)=>{if(e.length>0&&e[0].length>0){const{isIntersecting:n}=e[0][0];n&&t(!0)}})(e,a),children:Object(s.jsx)(p.f,{height:"1"})})]})}var D=n("eOdZ"),A=n("DzJC"),L=n.n(A),R=n("28DW"),M=(n("zLEO"),n("TSYQ")),F=n.n(M),N=n("sEfC"),B=n.n(N),U=n("Up+5"),z=n("4gAt"),W=n("+JjG"),V=n("kMiw"),G=n("7GHV"),H=n("q8wg"),q=n("sH+O");const Y=({pageCount:e,pageNumber:t})=>Object(s.jsx)(p.f,{left:!0,top:!0,color:"lightGray",marginTop:4,marginStart:4,paddingX:2,paddingY:1,position:"absolute",rounding:4,children:Object(s.jsxs)(p.cb,{size:"md",children:[t," / ",e]})});var K=({activePageIndex:e,fontsLoaded:t,index:n,isActive:i,muteVideos:o,onChangeMuteVideo:r,onClickThrough:a,ownerId:c,page:l,pageCount:d,pageWidth:u,pinId:p,showPreview:h,stillLoading:g,templateType:m,version:f})=>{const b=0===l.layout,_={StoryPinSlide:!0,StoryPinSlide__isActive:i},j=b?227:228,y=Object(q.b)(f,"0.8.0"),v=null!=y&&y>=0;return Object(s.jsx)(H.a,{viewParameter:157,component:j,auxData:{story_pin_page_id:n,story_pin_template_type:m},children:Object(s.jsx)("div",{className:F()(_),children:Object(s.jsxs)("div",{className:"StoryPinSlide__pageContainer",children:[!h&&(v?Object(s.jsx)(W.a,{activePageIndex:e,fontsLoaded:t,isActive:i,muteVideos:o,onChangeMuteVideo:r,ownerId:c,page:l,pageIndex:n,pageWidth:u,pinId:p,stillLoading:g}):(t=>{switch(t.layout){case 0:case 1:return Object(s.jsx)(z.a,{activePageIndex:e,hideText:b,isActive:i,isCoverPage:b,muteVideos:o,onClickThrough:a,page:t,pageIndex:n,pageWidth:u,pinId:p});case 4:return t.blocks.length>0&&Object(s.jsx)(G.a,{blocks:t.blocks,pageId:"text-"+n,pinId:p,onClickThrough:a});case 3:return Object(s.jsx)(V.a,{page:t});default:return null}})(l)),h&&Object(s.jsx)(W.a,{activePageIndex:e,isPreview:!0,fontsLoaded:!1,isActive:i,muteVideos:o,onChangeMuteVideo:r,ownerId:c,page:l,pageIndex:n,pageWidth:u,pinId:p}),Object(s.jsx)(Y,{pageNumber:n+1,pageCount:d})]})})})},$=n("OSge"),X=n("P0Nc"),J=n("U4JR"),Z=n("YGxj");const Q=1,ee=-1;function te({disableBackward:e,disableForward:t,paginate:n}){const o=Object(i.useRef)(null);return Object(s.jsxs)("div",{className:"StoryPinSlideshowControls",children:[!e&&Object(s.jsx)("div",{className:"StoryPinSlideshowControls__backward",children:Object(s.jsx)(p.w,{accessibilityLabel:u.a._("Go to previous page","a11y label for Story Pin pagination (previous page)","a11y label for Story Pin pagination (previous page)"),bgColor:"white",icon:"arrow-back",iconColor:"darkGray",onClick:e=>{e.event.stopPropagation(),e.event.preventDefault(),n(ee)},size:"md"})}),!t&&Object(s.jsxs)("div",{className:"StoryPinSlideshowControls__forward",ref:o,children:[Object(s.jsx)(p.w,{accessibilityLabel:u.a._("Go to next page","a11y label for Story Pin pagination (next page)","a11y label for Story Pin pagination (next page)"),bgColor:"white",icon:"arrow-forward",iconColor:"darkGray",onClick:e=>{e.event.stopPropagation(),e.event.preventDefault(),n(Q)},size:"md"}),o&&o.current&&Object(s.jsx)(Z.a,{anchor:o.current,experienceIds:[501980],placementId:12})]})]})}var ne=n("y2Ga"),ie=n("pf20");function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const re=[5,6,2];class ae extends i.Component{constructor(e){var t;super(e),t=this,oe(this,"slideshowContainerRef",Object(i.createRef)()),oe(this,"getRenderablePages",e=>e.filter(e=>!re.includes(e.layout))),oe(this,"getFontsUsedAndLoad",(async function(){var e;const{pin:n}=t.props,i=((null===(e=n.story_pin_data)||void 0===e?void 0:e.pages)||[]).reduce((e,t)=>{var n;const i=null===(n=t.blocks)||void 0===n?void 0:n.find(e=>["story_pin_paragraph_block","story_pin_heading_block"].includes(e.type));if("story_pin_paragraph_block"===(null==i?void 0:i.type)||"story_pin_heading_block"===(null==i?void 0:i.type)){var o;const t=(null===(o=i.style)||void 0===o?void 0:o.font)||$.b.font,{name:n=""}=t;e[n]||(e[n]=t)}return e},{});if(Object.keys(i).length>0){const e=Object.keys(i).map(e=>{const t=i[e];return Object(X.b)({letterSpacing:t.letter_spacing,lineHeight:t.line_height,name:t.name,url:t.url})});await Object(U.a)(e),t.setState({fontsLoaded:!0})}})),oe(this,"handleChangeMuteVideos",e=>{this.setState({muteVideos:e})}),oe(this,"handleResize",B()(()=>{const e=this.getPageWidth();e&&this.setState({pageWidth:e}),this.scrollToSlide(this.state.activePageIndex)},200)),oe(this,"handleScrollEnd",B()(()=>{this.setState({isScrolling:!1})},200)),oe(this,"handleScroll",L()(()=>{this.logScrollEngagement();const{activePageIndex:e,pageWidth:t,prevScrollLeft:n}=this.state,i=this.slideshowContainerRef.current&&this.slideshowContainerRef.current.scrollLeft||0,o=i>n?"forward":"backward",r=Math.floor((i+.5*t)/t);e!==r&&this.startStoryPinStepPwtTiming(r),this.setState({activePageIndex:r,scrollDirection:o,isScrolling:!0,prevScrollLeft:i})},16)),oe(this,"logScrollEngagement",()=>{const{pin:{id:e}}=this.props;Object(J.b)(7588,{view:3,viewParameter:157,objectId:e}),this.logScrollEngagement=()=>{}}),oe(this,"setGradientHeight",()=>{const e=document.getElementsByClassName("closeupLegoContainer")[0],t=e&&e.offsetHeight,{current:n}=this.slideshowContainerRef;if(n){if(t>n.offsetHeight-20){document.querySelectorAll('[data-test-id="gradient"]')[0].style.height=t+52+"px"}}}),oe(this,"scrollToSlide",e=>{const t=Math.ceil(e*this.state.pageWidth);this.slideshowContainerRef.current&&this.slideshowContainerRef.current.scrollTo({left:t,behavior:"smooth"})}),oe(this,"startStoryPinStepPwtTiming",e=>{const{pin:t,pwtSurfaceContext:n,storyPinStepStopwatch:i}=this.props,{pages:o=[]}=t.story_pin_data||{};if(n&&n.abort("startNewPwt"),i){const t=this.getRenderablePages(o);i.abort("startNewPwt"),i.start(),i.addBinaryAnnotation("page.current.index",e,"I16"),i.addBinaryAnnotation("page.count",t.length,"I16")}}),oe(this,"handlePaginate",e=>{this.slideshowContainerRef.current&&(this.slideshowContainerRef.current.scrollLeft+=e*this.state.pageWidth)}),this.state={activePageIndex:0,fontsLoaded:!1,isScrolling:!1,mediaDataReceived:!!e.pin&&this.checkMediaDataReceived(e.pin),muteVideos:e.isLandingPage,pageWidth:0,prevScrollLeft:0,scrollDirection:"forward"}}componentDidMount(){const e=this.getPageWidth();e&&this.setState({pageWidth:e}),this.slideshowContainerRef.current&&this.slideshowContainerRef.current.addEventListener("scroll",this.handleScroll),this.slideshowContainerRef.current&&this.slideshowContainerRef.current.addEventListener("scroll",this.handleScrollEnd),window.addEventListener("resize",this.handleResize),this.setGradientHeight(),this.getFontsUsedAndLoad(),setTimeout(()=>this.setState({mediaDataReceived:!0}),2e3)}componentDidUpdate(e){const{activePageIndex:t,mediaDataReceived:n}=this.state,{pin:i,pwtSurfaceContext:o}=this.props,{pages:r=[]}=i.story_pin_data||{},a=this.getPageWidth();if(a&&!this.state.pageWidth&&this.setState({pageWidth:a}),i!==e.pin&&!n){if(this.setState({mediaDataReceived:this.checkMediaDataReceived(i)}),o){const e=this.getRenderablePages(r);o.addBinaryAnnotation("page.current.index",t,"I16"),o.addBinaryAnnotation("page.count",e.length,"I16")}this.getFontsUsedAndLoad()}}componentWillUnmount(){this.slideshowContainerRef.current&&this.slideshowContainerRef.current.removeEventListener("scroll",this.handleScroll),this.slideshowContainerRef.current&&this.slideshowContainerRef.current.removeEventListener("scroll",this.handleScrollEnd),window.removeEventListener("resize",this.handleResize)}checkMediaDataReceived(e){var t;const{story_pin_data:n}=e;if(!n)return!1;return(null!==(t=n.pages)&&void 0!==t?t:[]).map(e=>{var t;return!!(null===(t=e.blocks)||void 0===t?void 0:t.find(e=>!!("story_pin_image_block"===e.type&&e.image||"story_pin_video_block"===e.type&&e.video)))}).filter(e=>!!e).length>0}getPageWidth(){const{current:e}=this.slideshowContainerRef;if(e){const t=(e?Array.from(e.getElementsByClassName("StoryPinSlide")):[]).find(e=>e.classList.contains("StoryPinSlide__isActive"));if(t)return t.getBoundingClientRect().width}return null}render(){var e;const{pin:t,onClickThrough:n}=this.props,{activePageIndex:i,fontsLoaded:o,isScrolling:r,mediaDataReceived:a,muteVideos:c,pageWidth:l}=this.state,{metadata:d,pages:u=[]}=t.story_pin_data||{},{template_type:h=null,version:g}=(null===(e=t.story_pin_data)||void 0===e||e)&&null!=d?d:{},m=F()("StoryPinSlideshow",{StoryPinSlideshow__is_scrolling:r}),f=this.getRenderablePages(u),b=f.slice(0,Math.min(i+4,f.length));return Object(s.jsx)(H.a,{view:3,viewParameter:140,component:85,children:Object(s.jsxs)("div",{className:"StoryPinSlideshow_container","data-test-id":"story-pin-slideshow",children:[Object(s.jsx)("div",{className:m,ref:this.slideshowContainerRef,children:f.map((e,r)=>{var d,u,m;return Object(s.jsx)(p.bb,{disabled:r===i,fullWidth:!1,onTap:r!==i?()=>{this.scrollToSlide(r)}:void 0,children:Object(s.jsx)(K,{fontsLoaded:o,activePageIndex:i,index:r,isActive:r===i,muteVideos:c,onChangeMuteVideo:this.handleChangeMuteVideos,onClickThrough:n,ownerId:null!==(u=null===(m=t.native_creator)||void 0===m?void 0:m.id)&&void 0!==u?u:"",page:e,pageCount:f.length,pageWidth:l,pinId:t.id,showPreview:r>=b.length,stillLoading:!a,templateType:h,version:g})},`${t.id}${null!==(d=e.id)&&void 0!==d?d:""}`)})}),Object(s.jsx)(te,{paginate:this.handlePaginate,disableBackward:0===i,disableForward:i>=f.length-1})]})})}}var se=Object(o.connect)(e=>({isLandingPage:0===e.history.previous.length}),()=>({}))((function(e){const t=Object(ie.b)(),n=Object(ne.c)();return Object(s.jsx)(ae,{...e,pwtSurfaceContext:n,storyPinStepStopwatch:t})})),ce=n("VCRF"),le=n("Zxas");function de(e){return{type:"STORY_PIN_EXPANDED",payload:e}}var ue=n("8Wa5"),pe=n("oRao"),he=n("vvax");function ge({boldNumber:e=!0,count:t,showAllDigits:n=!0,textColor:i="gray",textSize:o="md"}){return Object(s.jsx)(p.cb,{color:i,inline:!0,size:o,children:Object(he.b)(u.a.ngettext("{{ followerCount }} Follower","{{ followerCount }} Followers",t,"Label for the number of people following a user","Label for the number of people following a user"),{followerCount:Object(s.jsx)(p.cb,{inline:!0,size:o,weight:e?"bold":"normal",children:Object(s.jsx)(pe.a,{value:t,shortform:!n,shortformMaximumFractionDigits:n?void 0:1})},"follower_count")})})}var me=n("EC51"),fe=n("TNox");var be=e=>{const{color:t,creator:n}=e,i=n.full_name||n.username,o=n.follower_count||0,r=`/${n.username}/`,c=n.image_medium_url||n.image_small_url;return Object(s.jsx)(p.f,{alignItems:"center",display:"flex",children:Object(s.jsxs)(p.f,{alignItems:"center",display:"flex",children:[Object(s.jsx)(fe.a,{href:r,children:Object(s.jsx)(p.f,{marginEnd:1,padding:1,children:Object(s.jsx)(a.a,{accessibilityLabel:"",name:i,size:"sm",src:null!=c?c:""})})}),Object(s.jsxs)(p.f,{direction:"column",children:[Object(s.jsx)(me.a,{href:r,children:Object(s.jsx)(p.cb,{color:t,size:"sm",weight:"bold",children:i})}),o>0&&Object(s.jsx)(ge,{boldNumber:!1,count:n.follower_count||0,showAllDigits:!1,textColor:t,textSize:"sm"})]})]})})},_e=n("Klk4"),je=n("eBDd"),ye=n("w70y"),ve=n("xmd6"),Oe=n("DfJT");function xe(e){const{commentCount:t,handleRender:n,objectId:o,pinId:r}=e;Object(i.useEffect)(()=>{n()});const{data:a,isAtEnd:c,fetchMore:l}=Object(ye.a)({name:"AggregatedCommentFeedResource",options:{featured_ids:null,objectId:o,page_size:Oe.c,redux_normalize_feed:!0}}),d=a&&a.length;if(!d)return null;const h={id:r||o},g=t||0,m=g-d,f=Object(je.a)(u.a.ngettext("{{ count }} Comment","{{ count }} Comments",g,"unauthStory.pinCommentList.commentHeading","comments on a Pin"),{count:g.toString()});return Object(s.jsxs)(p.f,{marginTop:6,children:[Object(s.jsx)(p.u,{size:"sm",children:f}),Object(s.jsx)(p.f,{marginBottom:4,marginTop:4,children:a&&a.map(e=>Object(s.jsx)(_e.a,{avatarSize:"md",commentAuthor:e.user,commentCount:t,commentId:e.id,contentText:e.text,createdAt:e.created_at,flyout:null,handleLikeClick:()=>{},handleLikeCountClick:()=>{},handleOnEditCancel:()=>{},handleOnEdited:()=>{},handleReplyClick:()=>{},hideAddObjects:!0,hideReplyCount:!0,inEditMode:!1,isLikedByMe:!1,isPlainComment:!0,parentObject:h,reactionCounts:e.reaction_counts,taggedUsers:e.tagged_users,tags:e.tags,truncateText:!0,type:ve.a.aggregatedComment,isHighlighted:!1},e.id))}),m>0&&!c&&Object(s.jsx)(p.bb,{onTap:l,children:Object(s.jsx)(p.cb,{color:"gray",weight:"bold",children:u.a._("See more","unauthStory.pinCommentList.seeMore","button to load more comments")})})]})}var we=n("3a2J"),Se=n("YxyV"),Ce=n("VpfY"),ke=n("MNxV");const Te=(e,t)=>e&&e.current&&t>0?e.current.scrollHeight-t:0,Ee=(e,t,n,i,o)=>{const r=Te(e,t);r>0&&!n?i(!0):r>0&&n&&o(de(r))};var Ie=Object(o.connect)()(e=>{const[t,n]=Object(i.useState)(!1),[o,r]=Object(i.useState)(!1),[a,c]=Object(i.useState)(0),[l,d]=Object(i.useState)(!1),h=Object(i.createRef)(),g=Object(i.createRef)(),{dispatch:m,pin:f}=e,{aggregated_pin_data:b={},native_creator:_}=f;Object(i.useEffect)(()=>{g&&g.current&&c(g.current.offsetHeight)},[]),Object(i.useEffect)(()=>{Ee(h,a,t,r,m)});const{annotationsWithLinks:j}=Object(Se.c)(f),y=f.description,v=Object(le.a)(y,150," "),O=v.length<y.length,x=f.title,w=Object(Ce.i)(f),S=t?"UnauthStoryPinCloseupBody__container_expanded":"UnauthStoryPinCloseupBody__container";return Object(s.jsx)("div",{ref:g,className:S,"data-test-id":"unauth-story-pin-side-card",children:Object(s.jsxs)(p.f,{ref:h,padding:10,children:[Object(s.jsx)("h1",{style:{fontSize:28},children:x}),Object(s.jsx)(p.f,{marginTop:2,children:Object(s.jsx)(p.cb,{color:"gray",size:"sm",children:Object(he.b)(u.a._("Published on {{ publishDate }}","unauth.storypin.closeup.body.publishDate","Text indicating when a Story Pin was published"),{publishDate:Object(s.jsx)(ke.b,{dateFormatType:ke.a.LONG,useUTC:!1,value:new Date(f.created_at)})})})}),f.description&&Object(s.jsxs)(p.f,{marginTop:6,children:[Object(s.jsx)(p.cb,{color:"darkGray",inline:!0,children:O&&!l?v:y}),O&&!l&&Object(s.jsx)(p.f,{display:"inlineBlock",children:Object(s.jsx)(p.bb,{onTap:()=>d(!0),children:Object(s.jsx)(p.cb,{color:"darkGray",weight:"bold",children:u.a._("More...","unauth.storypin.closeup.body.description.expand_button","Button to expand truncated description.")})})})]}),Object(s.jsx)(p.f,{marginBottom:6,marginTop:6,children:Object(s.jsx)(be,{color:"darkGray",creator:_})}),j&&j.length>0?Object(s.jsx)(we.a,{annotationsWithLinks:j,openInCurrentTab:!0,pillStyleOverride:{borderRadius:"32px",backgroundColor:"#efefef",color:"#111111",padding:"5px 8px",marginRight:"4px",marginBottom:"4px",fontSize:"12px",fontWeight:"600"},tagClickHandler:()=>{}}):null,!!f.reaction_counts&&Object(s.jsx)(p.f,{marginTop:3,children:Object(s.jsx)(ce.a,{disableModal:!0,pinId:f.id,reactionCounts:f.reaction_counts})}),Object(s.jsx)(p.f,{marginTop:1,children:Object(s.jsx)(ue.a,{detailsPage:w?w.detailsPage:void 0,metadata:w?w.metadata:void 0})}),Object(s.jsx)(xe,{commentCount:b.comment_count,handleRender:()=>{Ee(h,a,t,r,m)},objectId:b.id,pinId:f.id}),o&&!t&&Object(s.jsx)(p.f,{bottom:!0,dangerouslySetInlineStyle:{__style:{background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 29.87%, rgba(255, 255, 255, 0.81) 89.06%)"}},display:"flex",height:80,justifyContent:"center",marginEnd:-10,marginStart:-10,position:"absolute",width:"100%",children:Object(s.jsx)(p.w,{accessibilityExpanded:t,accessibilityLabel:"see more",bgColor:"lightGray",dangerouslySetSvgPath:{__path:"M20.0002 8.48216C20.0002 8.86089 19.8535 9.24028 19.5608 9.53009L12.0002 17L4.4395 9.53009C3.8535 8.95179 3.8535 8.01253 4.4395 7.43422C5.0255 6.85526 5.97483 6.85526 6.56083 7.43422L12.0002 12.8076L17.4395 7.43422C18.0255 6.85526 18.9748 6.85526 19.5608 7.43422C19.8535 7.72338 20.0002 8.10277 20.0002 8.48216Z"},iconColor:"darkGray",onClick:()=>((e,t,n)=>{e(de(t)),n(!0)})(m,Te(h,a),n),size:"lg"})})]})})});var Pe=Object(o.connect)(e=>({closeupExpandedOffset:e.storyCloseupExpand.offset}))(e=>{const{closeupExpandedOffset:t,pin:n,pinLinkClickHandler:i}=e,o=t||0;return Object(s.jsxs)(p.f,{dangerouslySetInlineStyle:{__style:{paddingBottom:o}},position:"relative",children:[Object(s.jsx)(se,{onClickThrough:i,onNavigateBack:()=>{},onUpdate:()=>{},pin:n}),Object(s.jsx)(Ie,{pin:n})]})}),De=n("2MPc"),Ae=n("seY9"),Le=n("rki0"),Re=n("RNo4"),Me=n("mG99"),Fe=n("XPo3"),Ne=n("EC67"),Be=n("szi8"),Ue=n("pTLB");const ze=Fe.d+30,We={alignContent:"center",justifyContent:"center",backgroundColor:"white",flexDirection:"row",display:"flex",flex:"1 1 auto",padding:"24px 12px 12px 12px",boxSizing:"inherit"},Ve={display:"flex",flexDirection:"column"};t.a=({closeupPin:e,disableSimilarPins:t,inviteCodeResource:n,isStoryPin:a,modalOpened:c,showResponseModalSignup:l})=>{const d=Object(o.useDispatch)(),u=Object(o.useSelector)(e=>e.ui.contentSafetyModal.contentSafetyModalViewed),p=Object(Ue.b)(),f=null==p?void 0:p.pinLinkClickHandler,b=((e,t)=>{const{content_sensitivity:n}=e;if(t||!n)return!1;const{is_self_harm_content:i,is_porn_content:o}=n;return i&&r.a.increment("web_unauth_pin_closeup_hide_self_harm_content"),o&&r.a.increment("web_unauth_pin_closeup_hide_porn_content"),!(!i&&!o)})(e,u);b&&d({type:"CONTENT_SAFETY_MODAL_VIEWED",payload:{content_safety_modal_viewed:!0}});const[_,j]=Object(i.useState)(!1),[y,v]=Object(i.useState)(b),[x,w]=Object(i.useState)("wide"),S=Object(ye.a)({name:"UnauthPinFeedResource",options:(C=(e||{}).id,{pin:C,field_set_key:"unauth_react",add_vase:!0,source:"seo_unauth"})});var C;const{httpReferrer:T,isBot:E}=Object(Be.b)(),I=Object(Ne.i)(),A=Boolean("undefined"!=typeof document&&document&&document.documentElement&&("filter"in document.documentElement.style||"WebkitFilter"in document.documentElement.style)),M=L()(()=>{"wide"===x&&window.innerWidth<ze?w("narrow"):"narrow"===x&&window.innerWidth>=ze&&w("wide")},200);Object(i.useEffect)(()=>(n||De.a.logLastVisitedPinLandingPage(e,!1),e&&e.rich_metadata&&e.rich_metadata.products&&Object(R.a)("unauth.pin_page.main_pin.is_product_pin"),window.addEventListener("resize",M),M(),()=>{window.removeEventListener("resize",M)}),[]);const F=()=>{r.a.increment("web.social.unauth.response.flyout.notsimilar.click",1),l&&l("notsimilar",e)},N=t=>{Object(R.a)("unauth.pin_page.main_pin.image_click_through");const n="link"===t?135:0;Object(J.b)(12,{component:n,element:35,objectId:e.id,view:3,viewParameter:3105}),Object(J.b)(8948,{click_type:"clickthrough",closeup_navigation_type:"click",view:3,viewParameter:3105,component:n,element:35,objectId:e.id})},B=()=>{var t;N("link"),f&&f(),(async t=>{const n={check_only:!0,url:t,pin_id:e.id},i=await D.a.create("OffsiteLinkResource",n).callGet();if(i&&i.resource_response&&!i.resource_response.error){const{redirect_status:e}=i.resource_response.data;Object(R.a)("web.unauth.clickthrough_quality."+e)}else Object(R.a)("web.unauth.clickthrough_quality.error")})(null!==(t=e.link)&&void 0!==t?t:"")},U=()=>{B()},z=()=>{N("link"),f&&f()},W=S.data,V=Object(Re.k)(I.search),G=V&&V.rpo&&"true"===V.rpo;return Object(s.jsxs)("div",{"data-test-id":"UnauthPinLandingCloseup",children:[y&&Object(s.jsx)(k,{browserSupportsBlur:A,onDismiss:()=>{v(!1)}}),Object(s.jsx)("div",{style:{visibility:_?"":"hidden"},"data-test-id":"UnauthVaseFullBleedModalContainer",children:Object(s.jsx)(Ae.a,{closeButtonClickHandler:e=>{Object(R.a)("unauth.pin_page.main_pin.more_info_click"),j(!_),document.body&&(document.body.style.overflow=_?"":"hidden")},pin:e})}),Object(s.jsxs)("div",{"data-test-id":"pin",style:Ve,children:[!G&&(a?Object(s.jsx)(Pe,{pin:e,pinLinkClickHandler:U}):Object(s.jsx)("div",{"data-test-id":"pinHeader",style:{height:"",...We,...y?O:{}},children:Object(s.jsxs)(i.Fragment,{children:[!y&&t&&n&&Object(s.jsx)(h,{inviteCodeResource:n,onReplyFocus:F}),Object(s.jsx)(g.b,{clickthroughHandler:z,modalOpened:c,pin:e,viewportSize:x})]})})),W?Object(s.jsx)(P,{shouldShowContentSafetyModal:y,browserSupportsBlur:A,isStoryPin:a,children:Object(s.jsx)(m.b,{nextBookmark:S.nextBookmark,closeupPin:e,hideMeta:!E&&Object(Le.a)(T),isStoryPin:a,relatedPins:W,includeHeader:!G})}):!E&&Object(Me.b)()]})]})}},tEMl:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("MCs0"),o=(n("QWfI"),n("2S0S")),r=["canDrop","hover","drop"],a=function(){function e(e,t,n){this.spec=e,this.monitor=t,this.ref=n,this.props=null}return e.prototype.receiveProps=function(e){this.props=e},e.prototype.receiveMonitor=function(e){this.monitor=e},e.prototype.canDrop=function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)},e.prototype.hover=function(){this.spec.hover&&this.spec.hover(this.props,this.monitor,i.getDecoratedComponent(this.ref))},e.prototype.drop=function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)},e}();t.default=function(e){return Object.keys(e).forEach((function(t){o(r.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r.join(", "),t),o("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new a(e,t,n)}}},tiNQ:function(e,t,n){function i(e,t){return{type:"UPDATE_AGGREGATED_COMMENT_COMMENT_COUNT",payload:{increment:t,id:e}}}n.d(t,"a",(function(){return i}))},tvWU:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("+k3R"),o=n("slCJ"),r=n("TPjH"),a=n("tEMl"),s=n("E3gc"),c=n("bY+3"),l=n("IRZy"),d=n("QWfI"),u=n("2S0S");t.default=function(e,t,n,p){void 0===p&&(p={}),i.default("DropTarget","type, spec, collect[, options]",e,t,n,p);var h=e;"function"!=typeof e&&(u(s.default(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),h=function(){return e}),u(d.isPlainObject(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var g=a.default(t);return u("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),u(d.isPlainObject(p),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return o.default({containerDisplayName:"DropTarget",createHandler:g,registerHandler:r.default,createMonitor:function(e){return new c.default(e)},createConnector:function(e){return new l.default(e)},DecoratedComponent:e,getType:h,collect:n,options:p})}}},uCRx:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("QLaP");t.validateSourceContract=function(e){i("function"==typeof e.canDrag,"Expected canDrag to be a function."),i("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),i("function"==typeof e.endDrag,"Expected endDrag to be a function.")},t.validateTargetContract=function(e){i("function"==typeof e.canDrop,"Expected canDrop to be a function."),i("function"==typeof e.hover,"Expected hover to be a function."),i("function"==typeof e.drop,"Expected beginDrag to be a function.")},t.validateType=function e(t,n){n&&Array.isArray(t)?t.forEach((function(t){return e(t,!1)})):i("string"==typeof t||"symbol"==typeof t,n?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}},uVIr:function(e,t,n){function i(e){return{type:"FEED_ITEMS_ADDED",payload:e}}n.d(t,"a",(function(){return i}))},utGV:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("q1tI"),o=n("TPjH"),r=n("/acK"),a=n("IRZy"),s=n("bY+3");t.useDropTargetMonitor=function(){var e=r.useDragDropManager();return[i.useMemo((function(){return new s.default(e)}),[e]),i.useMemo((function(){return new a.default(e.getBackend())}),[e])]},t.useDropHandler=function(e,t,n){var a=r.useDragDropManager(),s=i.useMemo((function(){return{canDrop:function(){var n=e.current.canDrop;return!n||n(t.getItem(),t)},hover:function(){var n=e.current.hover;n&&n(t.getItem(),t)},drop:function(){var n=e.current.drop;if(n)return n(t.getItem(),t)}}}),[t]);i.useEffect((function(){var i=o.default(e.current.accept,s,a),r=i[0],c=i[1];return t.receiveHandlerId(r),n.receiveHandlerId(r),c}),[t,n])}},"v/Q4":function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("/MKj");function o(){return Object(i.useSelector)(({viewer:e})=>e)}},vCxS:function(e,t){e.exports="https://s.pinimg.com/webapp/Sensitive-content-desktop@2x-92b61148.jpg"},vcX7:function(e,t,n){n.d(t,"e",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));const i="pin-builder-font-faces",o="system-font-faces",r="pin-builder-education-font-faces",a="licensed",s="system",c="brand",l=4},vjiL:function(e,t,n){var i=n("+NLT"),o=n("m2Wt"),r=n("h4v/");var a=n("zpPL");var s=n("Jr++"),c=n("Ye/N"),l=n("eqAH"),d=n("kmwA"),u=n("28DW"),p=n("ARZW"),h=n("JqDr"),g=n("AYc3"),m=n("2y2F");t.a=e=>{const{facebook_token:t,invite_code:n,locale:f,country:b,origin:_,referrer:j,unauth_id:y,user_agent_platform:v}=i.a.instance,O={logContextEventType:e=>{r.a.getInstance().addEvent(o.a.fromEventType(e))},sendActiveUserPing:l.a,registerUserContext:{facebookToken:t,inviteCode:n,locale:f,referrer:j,unauthId:y},onCorsHandshakeHost:d.a.settings.CORS_HANDSHAKE_DOMAINS.includes(_),successWithoutTokenErrorMessage:c.a._("We were able to create your account, but there was a problem logging you in. Try refreshing the page to continue."),trackRegisterSuccess:()=>{Object(u.a)("signup_referrer_module."+String(Object(s.a)().referrer||function(){const e=a.a.instance.getState().ui.mainComponent.initial;return e?e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase():null}())),"ios"===v?Object(u.a)("signup_mweb.iphone_web"):"ipad"===v?Object(u.a)("signup_mweb.ipad_web"):"android"===v&&Object(u.a)("signup_mweb.android_web")}};return Object(m.a)(b)&&Object(g.g)({id:p.c,eventCategory:"NewUsers",eventName:"Desktop"}),Object(m.f)(b)&&Object(g.k)({id:"flashtalking-d-reg",eventCategory:"NewUsers",eventName:"Desktop"}),Object(m.c)(b)&&Object(g.h)({pixelId:"dpm_pixel_new_user_event",eventCategory:"NewUsers",eventName:"Desktop"}),Object(m.d)(b)&&Object(g.i)({pixelId:"dentsu_pixel_new_user_event",eventCategory:"NewUsers",eventName:"Desktop"}),Object(h.a)(e,O)}},vmVG:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("7nh8"),o=n("QLaP");t.default=function(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){o(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return n.getSource(r,!0).endDrag(t,r),n.unpinSource(),{type:i.END_DRAG}}}},vvax:function(e,t,n){var i=n("qpbZ");n.d(t,"b",(function(){return i.b})),n.d(t,"a",(function(){return i.a}))},wig9:function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,i=0,o=[];++t<n;){var r=e[t];r&&(o[i++]=r)}return o}},wtY2:function(e,t,n){n.d(t,"r",(function(){return r})),n.d(t,"B",(function(){return a})),n.d(t,"x",(function(){return s})),n.d(t,"z",(function(){return c})),n.d(t,"A",(function(){return l})),n.d(t,"w",(function(){return d})),n.d(t,"v",(function(){return u})),n.d(t,"c",(function(){return p})),n.d(t,"D",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"p",(function(){return m})),n.d(t,"o",(function(){return f})),n.d(t,"k",(function(){return b})),n.d(t,"a",(function(){return _})),n.d(t,"m",(function(){return j})),n.d(t,"d",(function(){return y})),n.d(t,"i",(function(){return v})),n.d(t,"f",(function(){return O})),n.d(t,"e",(function(){return x})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return S})),n.d(t,"y",(function(){return C})),n.d(t,"j",(function(){return k})),n.d(t,"C",(function(){return T})),n.d(t,"I",(function(){return I})),n.d(t,"F",(function(){return P})),n.d(t,"H",(function(){return D})),n.d(t,"G",(function(){return A})),n.d(t,"E",(function(){return L})),n.d(t,"s",(function(){return R})),n.d(t,"t",(function(){return M})),n.d(t,"l",(function(){return F})),n.d(t,"n",(function(){return N})),n.d(t,"q",(function(){return B})),n.d(t,"J",(function(){return U})),n.d(t,"u",(function(){return z}));var i=n("8nxc"),o=n("IIK6");const r=320,a=10,s=100,c=250,l=100,d=5,u=4,p=3,h=2,g=1,m=1,f={border:"2px dashed #DADADA",borderRadius:"32px",pointerEvents:"none"},b={left:0,scale:1,top:0,transform:{rotate:0,scaleX:1,scaleY:1}},_="#E60023",j="#FFFFFF",y=9/16,v=375,O=v/y,x="#66CCFF",w="rgba(0,0,0,0.4)",S=70,C=1200,k=7,T=20,E=["image/bmp","image/jpeg","image/png","image/tiff","image/webp"],I=()=>[...E,...i.a.enabled("video")?o.qb:[]].join(","),P=60.5,D=1,A=104857600,L=1,R=["#FFFFFF","#FCE2CF","#F7F2BB","#D8F0A8","#BEF4EE","#DCD4F7","#F9B8F2","#F65E55","#F69855","#F6E955","#79DD3C","#25E4F4","#AA6AFB","#F655C9","#C20000","#B85C00","#807500","#02882A","#0045CC","#8000BD","#97026D","#5E031A","#573700","#363F03","#01564C","#00205C","#370052","#111111"],M={"#FFFFFF":"#000000","#FCE2CF":"#573700","#F7F2BB":"#363F03","#D8F0A8":"#01564C","#BEF4EE":"#00205C","#DCD4F7":"#370052","#F9B8F2":"#111111","#F65E55":"#000000","#F69855":"#000000","#F6E955":"#000000","#79DD3C":"#000000","#25E4F4":"#000000","#AA6AFB":"#000000","#F655C9":"#000000","#C20000":"#FFFFFF","#B85C00":"#FFFFFF","#807500":"#FFFFFF","#02882A":"#FFFFFF","#0045CC":"#FFFFFF","#8000BD":"#FFFFFF","#97026D":"#FFFFFF","#5E031A":"#FFFFFF","#573700":"#FFFFFF","#363F03":"#FFFFFF","#01564C":"#FFFFFF","#00205C":"#FFFFFF","#370052":"#FFFFFF","#111111":"#FFFFFF"},F=6,N={blockStyle:{x_coord:4.27,y_coord:46.82,width:91.46,height:26.35,corner_radius:0},style:{font_id:6,hex_color:"#FFFFFF",font_size:36,alignment:1},text:"",type:"story_pin_paragraph_block"},B={upload:228,design:226,details:437,target:432},U=()=>i.a.enabled("storyPinMetadataModule")?["upload","design","details"]:["upload","design","details","target"],z="jiggity+storyboard+feedback@pinterest.com"},wvsB:function(e,t,n){n.d(t,"a",(function(){return u}));var i=n("q1tI"),o=n("Vt0H"),r=n("JRj3"),a=n("Ye/N"),s=n("U4JR"),c=n("n6mq"),l=n("nKUr");class d extends i.PureComponent{constructor(...e){var t,n,i;super(...e),t=this,n="startAudiblePlayTime",i=this.props.muted?null:new Date,n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}componentDidUpdate(e){e.muted!==this.props.muted&&(this.startAudiblePlayTime=this.props.muted?null:new Date)}componentWillUnmount(){const{musicRecordingId:e,muted:t,pinId:n,video:i}=this.props;if(e&&!t&&this.startAudiblePlayTime){if(new Date-this.startAudiblePlayTime>=2e3){const{hlsv3:t,mp4:o}=Object(r.a)(i)||{},a=o||t,c=(null==a?void 0:a.duration)||0;Object(s.b)(8999,{objectId:e,pin_id:n,story_pin_music_duration:c})}}}render(){const{activePageIndex:e,blockHeight:t,blockPosition:n,blockWidth:i,isPlaying:s,muted:d,onEnded:u,onUpdateVideoInfo:p,pageIndex:h,pinId:g,video:m}=this.props,{hlsv3:f,mp4:b}=Object(r.a)(m)||{},_=b||f;if(!_)return null;const{height:j,thumbnail:y,width:v}=_,O=(null!=v?v:1)/(null!=j?j:1),x={height:"100%",left:"0",top:"0",width:"100%"},w=i/t;if(Math.abs(w-O)>.01)if(w<O){const e=100*O/w;x.width=e+"%",x.left=`-${(e-100)/2}%`}else if(w>O){const e=100*w/O;x.height=e+"%",x.top=`-${(e-100)/2}%`}const S="number"==typeof e&&h<=e+3;return Object(l.jsx)(c.f,{height:t,overflow:"hidden",position:"relative",width:i,children:Object(l.jsx)(c.f,{dangerouslySetInlineStyle:{__style:{left:n.left<0?n.left:0,top:n.top<0?n.top:0}},height:"100%",position:"absolute",width:"100%",children:S||s?Object(l.jsx)(c.f,{dangerouslySetInlineStyle:{__style:x},position:"absolute",children:Object(l.jsx)(o.a,{loop:!0,autoplay:s,contextLogData:{component:0===h?227:228,element:10957,objectId:g,story_pin_page_id:h,view:3,viewParameter:157},customThumbnail:y,isPromoted:!1,muted:d,pinId:g,showControls:!1,variant:"legacy",preferMp4:!!b,objectFit:b?"cover":void 0,video:{id:m.id,hlsv3:f,mp4:b},onTimeChange:({time:e})=>{if(p&&"number"==typeof _.duration&&_.duration>0){const t=_.duration/1e3;p(e,t)}},onEnded:()=>{u&&u(h)}})}):Object(l.jsx)(c.x,{alt:a.a._("Video cover image","closeup.storyPin.videoCover","cover image displayed for a video"),fit:"cover",naturalHeight:null!=j?j:1,naturalWidth:null!=v?v:1,src:null!=y?y:""})})})}}function u(e){return Object(l.jsx)(d,{...e})}},x83E:function(e,t,n){n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return I}));var i=n("q1tI"),o=n("Naaj"),r=n("1WeU"),a=n("+d+Q"),s=n("28DW"),c=n("n6mq"),l=n("AsgO"),d=n("nKUr");var u=({link:e,image:t,prefixText:n,subtitle:i})=>Object(d.jsx)(c.f,{display:"flex",alignItems:"center",flex:"grow",direction:"row",justifyContent:"between",children:Object(d.jsx)("a",{href:e,"data-test-id":"pin-attribution",onClick:()=>Object(s.i)({action:"click",page:"pin",item:"pin-attribution"}),children:Object(d.jsxs)(c.f,{display:"flex",flex:"grow",direction:"row",children:[t&&Object(d.jsx)(c.f,{minWidth:50,marginEnd:2,children:Object(d.jsx)(c.f,{display:"block",height:44,rounding:"circle",width:44,dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${t})`,backgroundSize:"cover",border:"0",cursor:"pointer",perspective:"1px",textAlign:"center"}}})}),Object(d.jsx)(c.f,{direction:"column",display:"flex",justifyContent:"center",minWidth:0,maxWidth:230,children:Object(d.jsxs)(c.cb,{inline:!0,size:"sm",children:[n," ",Object(d.jsx)("span",{onMouseOver:l.a,onMouseLeave:l.b,onFocus:l.a,onBlur:l.b,style:{fontWeight:"bold"},children:i})]})})]})})}),p=n("PioT"),h=n("ptXI"),g=n("TqFJ"),m=n("aFfM"),f=n("Ye/N"),b=n("9pre"),_=n("BEAQ"),j=n("U4JR");function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class v extends i.Component{constructor(...e){super(...e),y(this,"state",{controls:!1,duration:0,fullscreen:!1,playing:!!this.props.autoplay,ready:!1,showEndCard:!1,volume:this.props.muted?0:1,isSafari:!1}),y(this,"getVideoInfo",()=>{const{video:e}=this.props,t=e.hlsv3||e.hls||{},n=[e.hls&&{type:"video/m3u8",src:t.url},e.mp4&&{type:"video/mp4",src:e.mp4.url}].filter(Boolean),{height:i,thumbnail:o,width:r,duration:a}=e.hls||e.mp4||{};return{height:i,thumbnail:o,width:r,duration:a,src:n}}),y(this,"handleTouch",({event:e})=>{e.stopPropagation(),this.setState(e=>({playing:!e.playing})),Object(j.b)(3613,{component:this.props.componentLogging}),Object(s.a)("unauth_web.video.touch_play")}),y(this,"handleShowControls",()=>{this.setState({controls:!0})}),y(this,"handleHideControls",()=>this.setState({controls:!1})),y(this,"handleReady",()=>{this.setState({ready:!0}),this.props.playWhenReady&&this.setState({playing:!0}),Object(j.b)(921,{component:this.props.componentLogging})}),y(this,"handleSeek",()=>{Object(j.b)(101,{component:this.props.componentLogging,element:10716}),Object(s.a)("unauth_web.video.seeked")}),y(this,"handleEnded",({event:e})=>{e.stopPropagation(),Object(j.b)(7670,{component:this.props.componentLogging}),this.setState({playing:!1,showEndCard:!0})}),y(this,"handlePause",({event:e})=>{e.stopPropagation(),this.setState({playing:!1}),Object(j.b)(101,{component:this.props.componentLogging,element:10715})}),y(this,"handlePlay",({event:e})=>{e.stopPropagation(),this.setState({playing:!0}),Object(j.b)(101,{component:this.props.componentLogging,element:10714}),Object(s.a)("unauth_web.video.click_play_icon")}),y(this,"handleRestartVideo",({event:e})=>{e.stopPropagation(),this.setState({playing:!0,showEndCard:!1})}),y(this,"handleDurationChange",({duration:e})=>{this.setState({duration:e})}),y(this,"handleTimeChange",({time:e})=>{const{duration:t}=this.getVideoInfo();t&&(e>=Math.floor(t/4)&&"default"===this.videoPlayStatus?(Object(j.b)(7672,{component:this.props.componentLogging}),this.videoPlayStatus="quarter"):e>=Math.floor(t/2)&&"quarter"===this.videoPlayStatus?(Object(j.b)(7673,{component:this.props.componentLogging}),this.videoPlayStatus="half"):e>=Math.floor(3*t/4)&&"half"===this.videoPlayStatus&&(Object(j.b)(7674,{component:this.props.componentLogging}),this.videoPlayStatus="threeQuarter"))}),y(this,"handleFullscreenChange",({event:e,fullscreen:t})=>{e.stopPropagation(),this.setState({fullscreen:t}),Object(j.b)(101,{component:this.props.componentLogging,element:10719}),Object(s.a)("unauth_web.video.fullscreen")}),y(this,"handleVolumeChange",({event:e,volume:t})=>{e.stopPropagation(),this.setState({volume:t}),Object(j.b)(101,{component:this.props.componentLogging,element:10720})}),y(this,"renderVideo",(e,t,n)=>{const{duration:i}=this.getVideoInfo(),{isInViewPort:o=!0,plp:r}=this.props,{controls:a,playing:s,volume:c,isSafari:l}=this.state,u=!!i&&i<1e4,p=f.a._("Maximize","Maximize button on video","Maximize button on video"),h=f.a._("Minimize","Minimize button on video","Minimize button on video"),j=f.a._("Mute","Mute button on video","Mute button on video"),y=f.a._("Pause","Pause button on video","Pause button on video"),v=f.a._("Play","Play button on video","Play button on video"),O=f.a._("Unmute","Unmute button on video","Unmute button on video"),x=Object(_.getPlaylistSourceSrc)(t);return!l&&x&&r?Object(d.jsx)(m.a,{accessibilityMaximizeLabel:p,accessibilityMinimizeLabel:h,accessibilityMuteLabel:j,accessibilityPauseLabel:y,accessibilityPlayLabel:v,accessibilityUnmuteLabel:O,aspectRatio:e,captions:"",controls:a,loop:u,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onPause:this.handlePause,onPlay:this.handlePlay,onReady:this.handleReady,onSeek:this.handleSeek,onVolumeChange:this.handleVolumeChange,onTimeChange:this.handleTimeChange,playing:o&&s,poster:n,volume:c,hlsConfig:{startLevel:b.a},src:x}):Object(d.jsx)(g.a,{accessibilityMaximizeLabel:p,accessibilityMinimizeLabel:h,accessibilityMuteLabel:j,accessibilityPauseLabel:y,accessibilityPlayLabel:v,accessibilityUnmuteLabel:O,aspectRatio:e,captions:"",controls:a,loop:u,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onPause:this.handlePause,onPlay:this.handlePlay,onReady:this.handleReady,onSeek:this.handleSeek,onVolumeChange:this.handleVolumeChange,onTimeChange:this.handleTimeChange,playing:o&&s,poster:n,volume:c,src:t})})}componentDidMount(){Object(j.b)(13,{component:this.props.componentLogging,view:this.props.view,viewParameter:this.props.viewParameter}),this.videoPlayStatus="default",this.setState({isSafari:p.b.isSafari()})}componentDidUpdate(){this.props.modalOpened&&this.state.playing&&this.setState({playing:!1})}render(){const{customThumbnail:e,plp:t,scaledHeight:n,scaledWidth:i}=this.props,{showEndCard:o,fullscreen:r,isSafari:a}=this.state,{height:s,thumbnail:l,width:u,src:p}=this.getVideoInfo(),g=u/s,m=e||l;if(t){let e=392;const t=g*e;let s=Math.min(t,740);const l=(t-740)/g/2,u=!!n&&!!i;return u&&(s=i||s,e=n||e),Object(d.jsx)(c.C,{width:s,rounding:6,willChangeTransform:!(a&&r),wash:!0,children:o?Object(d.jsx)(h.b,{backgroundImage:m,naturalHeight:e,naturalWidth:s,onRestartVideo:this.handleRestartVideo}):Object(d.jsx)(c.bb,{onMouseEnter:this.handleShowControls,onMouseLeave:this.handleHideControls,onTap:this.handleTouch,children:t>740&&!u?Object(d.jsx)("div",{style:{borderTop:l+"px solid black",borderBottom:l+"px solid black"},children:this.renderVideo(g,p,m)}):this.renderVideo(g,p,m)})})}return Object(d.jsx)(c.f,{display:"flex",justifyContent:"center",alignSelf:"center",width:u,children:Object(d.jsx)(c.bb,{onMouseEnter:this.handleShowControls,onMouseLeave:this.handleHideControls,onTap:this.handleTouch,children:this.renderVideo(g,p,m)})})}}var O=v,x=n("b8rM"),w=n("YxyV"),S=n("y2Ga"),C=n("XPo3"),k=n("7jH2");const T="pinCloseupHeroImage",E=(e,t,n)=>{const{height:i=1,width:o=1}=e.hls||e.mp4||{};return{width:o*(n/i),height:i*(t/o)}};function I({clickthroughHandler:e,modalOpened:t,pin:n,viewportSize:s}){const c=(Object(k.y)(Object(k.q)({pin:n}))||{}).video,l=Object(S.c)(),p=null==l?void 0:l.markConstraintComplete,h=(e=>{const t=Object(w.e)(e);return t.height>0&&t.width>0?Math.round(C.e*t.height/t.width):0})(n);return Object(d.jsx)(a.a,{fullImgHeight:h,page:"closeup",pin:n,renderAttribution:({image:e,link:t,prefixText:n,subtitle:i,title:o})=>Object(d.jsx)(u,{image:e,link:t,prefixText:n,subtitle:i,title:o}),scaledSize:c?E(c,C.c,C.h):void 0,viewportSize:s,children:({width:a,height:s,showModal:l})=>c?Object(d.jsxs)(i.Fragment,{children:[Object(d.jsx)(x.a,{pin:n,video:c.hls||c.mp4}),Object(d.jsx)(O,{thumbnail:Object(w.e)(n,"orig").url,muted:!0,video:c,view:3,viewParameter:156,componentLogging:13326,plp:!0,autoplay:!0,scaledWidth:a,scaledHeight:s,modalOpened:t||l}),p&&Object(d.jsx)(o.a,{constraint:T})]}):Object(d.jsx)(r.a,{clickthroughHandler:e,isCloseupMainImage:!0,fullImgHeight:h,letterBoxHeight:s,letterBoxWidth:a,onImageLoad:()=>{p&&p(T)},pageType:{isAuth:!1,page:"closeup"},pin:n,srcSet:{oneXSizes:["236x"],twoXSizes:["474x"],threeXSizes:["736x","564x"]}})})}},xGpI:function(e,t,n){var i=n("ipvL");t.a=()=>i.a.getAccountsJSON()},xNI5:function(e,t,n){n.r(t),n.d(t,"HelpfulButton",(function(){return d})),n.d(t,"default",(function(){return p}));var i=n("Ye/N"),o=n("eBDd"),r=n("4cpq"),a=n("vvax"),s=n("n6mq"),c=n("nKUr");const l={__path:"M21 14.09a2.1 2.1 0 01-2.11 2.08 2.1 2.1 0 012.11 2.1 2.1 2.1 0 01-2.11 2.08H16.5c1.02 0 1.85.82 1.85 1.82 0 1.01-.83 1.83-1.85 1.83H9.9A7.87 7.87 0 012 16.17c0-2.2.93-4.2 2.41-5.61 2.19-2.3 3.4-5.3 3.4-8.47A2.1 2.1 0 019.9 0a2.1 2.1 0 012.12 2.09c0 1.99-.37 3.92-1.05 5.74h7.9A2.1 2.1 0 0121 9.9a2.1 2.1 0 01-2.11 2.1A2.1 2.1 0 0121 14.09z"};function d(e){const{helpfulCount:t,isMarkedHelpfulByMe:n,onHelpfulClick:o}=e,r=i.a._("Helpful","Comments marked helpful text.","Comments marked helpful text."),d=Object(a.b)(i.a._("Helpful {{helpfulCount}}","Comments marked helpful count text.","Comments marked helpful count text."),{helpfulCount:t||0});return Object(c.jsx)(s.f,{display:"flex",justifyContent:"center",alignItems:"center",children:Object(c.jsx)(s.bb,{onTap:o,rounding:2,children:Object(c.jsxs)(s.t,{alignItems:"center",justifyContent:"start",children:[Object(c.jsx)(s.v,{accessibilityLabel:"helpful icon",dangerouslySetSvgPath:l,color:n?"red":"gray",size:16}),Object(c.jsx)(s.f,{paddingX:1,children:Object(c.jsx)(s.cb,{size:"sm",color:"gray",weight:"bold",children:void 0!==t&&t>0?d:r})})]})})})}function u(e){const{likeCount:t,isLikedByMe:n,onLikeClick:i}=e;return Object(c.jsx)(s.f,{display:"flex",justifyContent:"center",alignItems:"center",children:Object(c.jsx)(s.bb,{onTap:i,rounding:2,children:Object(c.jsxs)(s.f,{display:"flex","data-test-id":"reactions-likeWithCountButton",children:[Object(c.jsx)(s.v,{accessibilityLabel:"helpful icon",icon:"heart",color:n?"red":"gray",size:16}),t>0&&Object(c.jsx)(s.f,{paddingX:1,"data-test-id":"reactions-likeCount",children:Object(c.jsx)(s.cb,{size:"sm",color:"gray",weight:"bold",children:t})})]})})})}function p(e){const{commentCount:t=0,reactionCounts:n={},hideReplyCount:a,isLikedByMe:l=!1,onLikeClick:p,onReplyClick:h,onReplyCountClick:g,isMarkedHelpfulByMe:m,onHelpfulClick:f,helpfulCount:b,flyout:_,small:j}=e,y=n[1]||0,v=!!t&&Object(o.a)(i.a.ngettext("{{commentCount}} reply","{{commentCount}} replies",t),{commentCount:t}),O=j?1:2;return Object(c.jsxs)(s.f,{display:"flex",alignItems:"center",children:[Object(c.jsxs)(s.f,{display:"flex",marginStart:-O,marginEnd:-O,children:[Object(c.jsx)(u,{likeCount:y,isLikedByMe:l,onLikeClick:p}),Object(c.jsx)(s.f,{paddingX:O,children:Object(c.jsx)(r.a,{id:"reactions-reply",children:Object(c.jsx)(s.w,{accessibilityLabel:"Reply",bgColor:"transparent",icon:"speech",iconColor:"gray",onClick:h,size:j?"sm":"md"})})}),!!_&&Object(c.jsx)(s.f,{paddingX:O,children:_})]}),Object(c.jsxs)(s.f,{display:"flex",flex:"grow",justifyContent:"end",marginStart:-3,marginEnd:-3,children:[!!v&&!a&&Object(c.jsx)(r.a,{id:"reactions-reply-count",children:Object(c.jsx)(s.f,{paddingX:3,children:g?Object(c.jsx)(s.bb,{onTap:g,rounding:2,children:Object(c.jsx)(s.cb,{size:"md",color:"gray",weight:"bold",children:v})}):Object(c.jsx)(s.cb,{size:"md",color:"gray",weight:"bold",children:v})})}),Object(c.jsx)(d,{helpfulCount:b,isMarkedHelpfulByMe:m,onHelpfulClick:f})]})]})}},xjqW:function(e,t,n){function i({id:e,isProduct:t,isPromoted:n,videoDuration:i,viewParameter:o,viewType:r,type:a}){return{type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:t,isPromoted:n,videoDuration:i,viewParameter:o,viewType:r,type:a}}}function o(){return{type:"REPORT_CONTENT_DISMISS"}}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},xmd6:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("Y+p1"),o=n.n(i),r=n("QkVN"),a=n.n(r);const s={aggregatedComment:"aggregatedComment",didIt:"didIt",pin:"pin"},c={feature_map:{}},l=(e,t)=>{const n={...a()({},e,t),...t.content?{content:t.content}:Object.freeze({}),...t.reaction_counts?{reaction_counts:t.reaction_counts}:Object.freeze({}),...t.tags?{tags:t.tags}:Object.freeze({}),...t.tagged_users?{tagged_users:t.tagged_users}:Object.freeze({})};return o()(e,n)?e:n};t.b=(e=c,t)=>{if("RESOURCE_FETCH_COMPLETE"===t.type||"RESOURCE_FETCH_MORE_COMPLETE"===t.type){const{payload:{data:n,name:i}}=t;if("AggregatedCommentResource"===i)return n?{...e,[n.id]:l(e[n.id],n)}:e;if("AggregatedCommentFeedResource"===i||"AggregatedCommentReplyFeedResource"===i||"DidItCommentsResource"===i){const t=(n||[]).reduce((t,n)=>(t[n.id]=l(e[n.id],n),t),{});return{...e,...t}}if("UnifiedCommentsResource"===i&&n&&n.length>0){const t=n.filter(e=>"aggregatedcomment"===e.type).reduce((t,n)=>(t[n.id]=l(e[n.id],n),t),{});return{...e,...t}}if("UnifiedCommentsPreviewResource"===i&&n&&n.length>0){const t=n[0].aggregated_comment,i=t?{[t.id]:l(e[t.id],t)}:{},o=n[0].creator_reply,r=o?{[o.id]:l(e[o.id],o)}:{};return{...e,...i,...r}}if("AggregatedCommentFeaturesResource"===i&&n&&Object.keys(n).length>0)return{...e,feature_map:n}}else{if("AGGREGATED_COMMENT_CREATED"===t.type){const{payload:{aggregatedComment:n}}=t;return{...e,[n.id]:n}}if("AGGREGATED_COMMENT_DELETED"===t.type||"AGGREGATED_COMMENT_HIDDEN"===t.type){const{payload:{aggregatedCommentId:n}}=t,i={...e};return delete i[n],i}if("AGGREGATED_COMMENT_HIDDEN_FOR_USER"===t.type){const{payload:{userId:n}}=t;return Object.fromEntries(Object.entries(e).filter(e=>{var t;return(null===(t=e[1].user)||void 0===t?void 0:t.id)!==n}))}if("AGGREGATED_COMMENT_UPDATED"===t.type){const{payload:{data:n}}=t;return{...e,[n.id]:l(e[n.id],n)}}if("AGGREGATED_COMMENT_LIKE_TOGGLED"===t.type){const{payload:{data:n}}=t,i=e[n.id],o=i.reaction_counts[1]||0,r={1:n.reaction_by_me?o+1:o-1},a={...i,reaction_by_me:n.reaction_by_me,reaction_counts:r};return{...e,[n.id]:a}}if("AGGREGATED_COMMENT_HELPFUL_TOGGLED"===t.type){const{payload:{data:n}}=t,i=e[n.id],o=i.helpful_count||0,r=n.marked_helpful_by_me?o+1:o-1,a={...i,marked_helpful_by_me:n.marked_helpful_by_me,helpful_count:r};return{...e,[n.id]:a}}if("AGGREGATED_COMMENT_HIGHLIGHT_TOGGLED"===t.type){const{payload:{data:n}}=t,i={...e[n.aggregated_comment_id],highlighted_by_pin_owner:n.is_highlighted};return{...e,[n.aggregated_comment_id]:i}}if("AGGREGATED_COMMENT_FEATURES_UPDATED"===t.type){const{payload:{data:{featureMap:n}}}=t;return{...e,feature_map:{...e.feature_map,...n}}}if("UPDATE_AGGREGATED_COMMENT_COMMENT_COUNT"===t.type){const{payload:{increment:n,id:i}}=t,o=e[i],r={...o,comment_count:o.comment_count+n};return{...e,[i]:r}}if("DELETE_COMMENT_MENTION"===t.type){const{payload:{aggregatedCommentId:n,tagged_users:i}}=t,o={...e[n],tagged_users:i};return{...e,[n]:o}}}return e}},y8fO:function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},yBr6:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("/Ecc"),o=n("zpn9");function r(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),i=n.top;return{x:n.left,y:i}}t.getNodeClientOffset=r,t.getEventClientOffset=function(e){return{x:e.clientX,y:e.clientY}},t.getDragPreviewOffset=function(e,t,n,a,s){var c,l,d="IMG"===(c=t).nodeName&&(i.isFirefox()||!document.documentElement.contains(c)),u=r(d?e:t),p={x:n.x-u.x,y:n.y-u.y},h=e.offsetWidth,g=e.offsetHeight,m=a.anchorX,f=a.anchorY,b=function(e,t,n,o){var r=e?t.width:n,a=e?t.height:o;return i.isSafari()&&e&&(a/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:a}}(d,t,h,g),_=b.dragPreviewWidth,j=b.dragPreviewHeight,y=s.offsetX,v=s.offsetY,O=0===v||v;return{x:0===y||y?y:new o.default([0,.5,1],[p.x,p.x/h*_,p.x+_-h]).interpolate(m),y:O?v:(l=new o.default([0,.5,1],[p.y,p.y/g*j,p.y+j-g]).interpolate(f),i.isSafari()&&d&&(l+=(window.devicePixelRatio-1)*j),l)}}},yCO0:function(e,t,n){function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("U4W0")),i(n("aS9Y"))},yKe9:function(e,t){e.exports="https://s.pinimg.com/webapp/love-a7ffb465.svg"},yM2L:function(e,t,n){n.r(t),n.d(t,"exchangeTokenAndSetSession",(function(){return d})),n.d(t,"verifyLoggedInStatus",(function(){return u})),n.d(t,"registerUser",(function(){return p})),n.d(t,"loginUser",(function(){return h}));var i=n("T0g9"),o=n("eOdZ"),r=n("kmwA"),a=n("28DW"),s=n("J8m7");const c=r.a.settings.ACCOUNTS_PINTEREST_URL,l=(e,t,n,i)=>{const o=e=>{const t=new Error(e.statusText);throw t.response=e,!t.api_error_code&&t.response&&(t.api_error_code=t.response.code,t.message=t.response.message),t},r={credentials:"include",mode:"cors"};return"POST"===n&&(r.method="POST",r.body=t,r.headers={"Content-type":"application/x-www-form-urlencoded; charset=UTF-8","X-Pinterest-InstallId":i},i||Object(a.a)("unauth.auth_handshake.cross_domain.no_unauth_id."+n)),fetch(e,r).then(e=>200===e.status||401===e.status||409===e.status?e:(o(e),{})).then(e=>e.json()).then(e=>"success"===e.status?Promise.resolve(e):e.code===s.t?(e.api_error_code=e.code,Promise.reject(e)):(o(e),{})).catch(e=>{throw e})},d=(e,t=!1)=>o.a.create("HandshakeSessionResource",{token:e,isRegistration:t}).callCreate(),u=e=>{l(c+"/v3/handshake/verify/","","GET",e).then(e=>{if(e&&e.data){const t=e.data;d(t).then(e=>{window.location.reload()},e=>{})}},e=>{})},p=(e,{facebookToken:t,inviteCode:n,locale:o,referrer:a,unauthId:s})=>{const c=(e.business_name?"partner/handshake":(e.gplus_code||e.gplus_id_token)&&"gplus/handshake")||e.facebook_id&&"facebook/handshake"||"email/handshake",d={};if(d.email=e.email||"",d.username=e.username||"",d.password=e.password||"",d.first_name=e.first_name||"",d.last_name=e.last_name||"",d.country=e.country||"",d.locale=o,d.referrer=a,e.age){const t=new Date;t.setFullYear(t.getFullYear()-e.age);const n=parseInt(t/1e3,10);d.birthday=n.toString()}if(e.custom_gender&&(d.custom_gender=e.custom_gender),e.gender&&(d.gender=e.gender),e.business_name&&(d.account_type=e.account_type,d.business_name=e.business_name,d.first_name=e.business_name),n&&(d.invite_code=n),e.facebook_id){const n=t||e.facebook_token||"";d.facebook_id=e.facebook_id,d.facebook_token=n,d.social_username=e.social_username||""}else(e.gplus_code||e.gplus_id_token)&&(d.password=e.password||"",d.one_time_code=e.gplus_code,d.id_token=e.gplus_id_token,d.redirect_uri=e.gplus_redirect_uri);return e.recaptchaV3Token&&(d.recaptcha_v3_token=e.recaptchaV3Token),l(`${r.a.settings.ACCOUNTS_PINTEREST_URL}/v3/register/${c}/`,Object(i.a)(d),"POST",s)},h=(e,{facebookToken:t,recaptchaV3Token:n,referrer:o,unauthId:a})=>{const s=(e.mfa_token?"mfa/handshake":e.gplus_id_token&&"gplus/handshake")||e.facebook_id&&"facebook/handshake"||"handshake",c={};if(e.username_or_email&&(c.username_or_email=e.username_or_email.trim(),c.password=e.password,c.referrer=o),e.facebook_id){const n=t||e.facebook_token||"";c.facebook_id=e.facebook_id,c.facebook_token=n,c.facebook_autologin=e.facebook_autologin||!1}return e.gplus_id_token&&(c.gplus_id_token=e.gplus_id_token,c.gplus_access_token=e.gplus_access_token,c.gplus_expires_at=e.gplus_expires_at,c.gplus_autologin=e.gplus_autologin||!1),e.mfa_token&&(c.mfa_token=e.mfa_token),n&&(c.token=n),l(`${r.a.settings.ACCOUNTS_PINTEREST_URL}/v3/login/${s}/`,Object(i.a)(c),"POST",a)}},yjg8:function(e,t,n){n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"j",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"k",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"l",(function(){return d})),n.d(t,"o",(function(){return u})),n.d(t,"i",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"n",(function(){return f})),n.d(t,"m",(function(){return b}));const i=236,o=2*i/3,r=24,a=2,s=125,c=16,l=14,d=16,u=e=>e||d,p=900,h=12,g=16,m=24,f=(e=!1,t=!1)=>e?t?g:h:m,b=(e,t,n,i,o=l)=>{const r=e+o;return`\n@media (min-width: ${t*r}px) and (max-width: ${(n+1)*r-1}px) {\n  ${i}\n}\n`}},ynlw:function(e,t,n){n.d(t,"a",(function(){return r}));var i=n("63p3"),o=n("Y8Sn");function r(e){const{access:t,attribution:n,embed:r,is_eligible_for_web_closeup:a,rich_summary:s,sponsorship:c,story_pin_data_id:l,videos:d}=e,u={isCarousel:!1,isGif:!1,isOneTap:!1,isOwnPin:!1,isProduct:!1,isPromoted:!1,isRecipe:!1,isSponsored:!1,isStoryPin:!1,isVideo:!1};Object(i.a)(e)&&(u.isCarousel=!0),a&&(u.isOneTap=!0),Object(o.i)(d)&&(u.isVideo=!0);const p=r||n&&n.embed||null;return p&&"gif"===p.type&&(u.isGif=!0),s&&"product"===s.type_name&&(u.isProduct=!0),s&&"recipe"===s.type_name&&(u.isRecipe=!0),e.promoter&&!e.is_downstream_promotion&&(u.isPromoted=!0),(t||[]).includes("write")&&(u.isOwnPin=!0),l&&(u.isStoryPin=!0),c&&(u.isSponsored=!0),u}},z3qU:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n("/ZYE"),o=n("utGV"),r=n("q1tI"),a=n("2S0S");t.useDrop=function(e){var t=r.useRef(e);t.current=e,a(null!=e.accept,"accept must be defined");var n=o.useDropTargetMonitor(),s=n[0],c=n[1];o.useDropHandler(t,s,c);var l=i.useMonitorOutput(s,t.current.collect||function(){return{}},(function(){return c.reconnect()})),d=r.useMemo((function(){return c.hooks.dropTarget()}),[c]);return r.useEffect((function(){c.dropTargetOptions=e.options||null,c.reconnect()}),[e.options]),[l,d]}},zFhk:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("FDmi"),o=n("TNox"),r=n("nKUr");function a({user:e,size:t="md",hasOutline:n}){const{first_name:a,image_medium_url:s,username:c}=e;return Object(r.jsx)(o.a,{rounding:"circle",href:`/${c}/`,children:Object(r.jsx)(i.a,{size:t,src:null!=s?s:"",name:a||c||"",outline:n})})}},zLEO:function(e,t,n){},znyv:function(e,t,n){n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return u}));var i=n("7w6Q"),o=n("U4JR");const r=(e,t)=>{const n=Boolean(t&&t.isAuth),o=Boolean(t&&t.unifiedSignup),r=t&&t.country;var a;t&&((a=t).source&&a.source.utmPartner&&"partneracquisition"===a.source.utmPartner)?i.a.increment(e,1,{app_type:"web",is_paid:!0,paid_source:t.source.utmSource,is_auth:n,unified_signup:o}):i.a.increment(e,1,{app_type:"web",is_auth:n,unified_signup:o,country:r})},a=e=>{e&&e.utm_campaign&&i.a.increment("client.partner.account.convert_attempt.utm_campaign.exists",1,e)},s=(e,t,n,r,a,s={})=>{((e,t)=>{const n="client.partner.quick_promote_button."+e;i.a.increment(n,1,{app_type:"web",location:t})})(e,t),((e,t,n,i={})=>{const r={component:t,element:10148,view:n,...i};Object(o.b)(e,r)})(n,r,a,s)},c=()=>{Object(o.b)(8217)},l=()=>{i.a.increment("client.partner.biz_nux_v2.nux_start",1,{app_type:"web"})},d=()=>{i.a.increment("client.partner.biz_nux_v2.nux_end",1,{app_type:"web"})},u=e=>{const t="client.partner.biz_nux_v2.render."+e;i.a.increment(t,1,{app_type:"web"})}},zpn9:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=e.length,i=[],o=0;o<n;o++)i.push(o);i.sort((function(t,n){return e[t]<e[n]?-1:1}));var r,a,s=[],c=[],l=[];for(o=0;o<n-1;o++)r=e[o+1]-e[o],a=t[o+1]-t[o],c.push(r),s.push(a),l.push(a/r);var d=[l[0]];for(o=0;o<c.length-1;o++){var u=l[o],p=l[o+1];if(u*p<=0)d.push(0);else{r=c[o];var h=c[o+1],g=r+h;d.push(3*g/((g+h)/u+(g+r)/p))}}d.push(l[l.length-1]);var m,f=[],b=[];for(o=0;o<d.length-1;o++){m=l[o];var _=d[o],j=1/c[o];g=_+d[o+1]-m-m;f.push((m-_-g)*j),b.push(g*j*j)}this.xs=e,this.ys=t,this.c1s=d,this.c2s=f,this.c3s=b}return e.prototype.interpolate=function(e){var t=this,n=t.xs,i=t.ys,o=t.c1s,r=t.c2s,a=t.c3s,s=n.length-1;if(e===n[s])return i[s];for(var c,l=0,d=a.length-1;l<=d;){var u=n[c=Math.floor(.5*(l+d))];if(u<e)l=c+1;else{if(!(u>e))return i[c];d=c-1}}var p=e-n[s=Math.max(0,d)],h=p*p;return i[s]+o[s]*p+r[s]*h+a[s]*p*h},e}();t.default=i}},[["A9EP","runtime","vendor-react",0,4,38,43,45,47,51,61,59,58,63,68,72,78]]]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/www/pin/[id]-unauthdesktop-db338d744cccc7dea84c.mjs.map