(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[19,9,50,57,66,70],{"+Cth":function(e,t){e.exports="https://s.pinimg.com/webapp/HU@2x-1705acdc.png"},"+SB1":function(e,t){e.exports="https://s.pinimg.com/webapp/NN@2x-f061e9b4.png"},"+lzj":function(e,t,n){n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return h}));var i=n("fyR6"),o=n("vzKb");const r={cumulativeLayoutShiftScore:0,firstInputDelay:null,longTaskDurations:[],largestContentfulPaint:null,elementTimings:[]},a=()=>{r.longTaskDurations=[]},s=Object(i.a)(()=>r.elementTimings),c=()=>s.get(),l=e=>{e&&s.save(),r.elementTimings=[]},d=()=>r;let u=0;const p=()=>u,h=()=>{Object(o.a)({type:"element",buffered:!0},e=>{r.elementTimings=r.elementTimings.concat(e.getEntries().reduce((e,{identifier:t,loadTime:n,renderTime:i})=>e.concat("string"==typeof t&&"number"==typeof n&&"number"==typeof i?[{identifier:t,loadTime:n,renderTime:i}]:[]),[]))}),Object(o.a)({entryTypes:["longtask"]},e=>{e.getEntries().map(e=>r.longTaskDurations.push(e.duration))},()=>a()),Object(o.a)({type:"first-input",buffered:!0},(e,t)=>{const n=e.getEntries()[0];n&&n.startTime&&n.processingStart&&(r.firstInputDelay={startTime:n.startTime,endTime:n.processingStart}),t.disconnect()},()=>{r.firstInputDelay=null}),Object(o.a)({type:"largest-contentful-paint",buffered:!0},e=>{const t=e.getEntries(),n=t.length,i=t[n-1];i&&(u=n,r.largestContentfulPaint=i.renderTime||i.loadTime||null)}),Object(o.a)({type:"layout-shift",buffered:!0},e=>{e.getEntries().forEach(e=>{e.hadRecentInput||(r.cumulativeLayoutShiftScore+=e.value)})})}},"/9aa":function(e,t,n){var i=n("NykK"),o=n("ExA7");e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==i(e)}},"/A17":function(e,t,n){var i=n("q1tI"),o=n("fgPB"),r=n("n6mq"),a=n("nKUr");function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends i.PureComponent{constructor(...e){super(...e),s(this,"onScroll",Object(o.a)(e=>{if(this.anchorElement){const e=this.anchorElement.offsetTop+this.anchorElement.offsetHeight;window.scrollY>e&&!this.hasExited?(this.hasExited=!0,this.props.onExit()):window.scrollY<=e&&this.hasExited&&(this.hasExited=!1,this.props.onEnter())}},this.props.throttleTime||100)),s(this,"hasExited",!1)}componentDidMount(){window.addEventListener("scroll",this.onScroll)}componentWillUnmount(){window.removeEventListener("scroll",this.onScroll)}render(){const{children:e}=this.props;return Object(a.jsx)(r.f,{ref:e=>{this.anchorElement=e},children:e})}}t.a=c},"/wSi":function(e,t,n){n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return x}));const i=e=>["feed_card_default","feed_card_video"].includes(e),o=2/3;const{LEFT:r,CENTER:a,RIGHT:s}={LEFT:0,CENTER:1,RIGHT:2},c={[r]:"start",[a]:"center",[s]:"end"},{SMALL:l,MEDIUM:d,LARGE:u}={SMALL:0,MEDIUM:1,LARGE:2,EXTRA_LARGE:3},p={web:{[l]:"16",[d]:"20",[u]:"24"},mweb:{[l]:"12",[d]:"16",[u]:"18"}},{ITALICS:h,NORMAL:m}={NORMAL:0,ITALICS:1},b={[h]:"italics",[m]:"normal"},{BOLD:f,NORMAL:g}={NORMAL:0,BOLD:1},j={[f]:"bold",[g]:"normal"},x=({color:e,font_style:t,font_weight:n,horizontal_alignment:i,size:o},r)=>({color:e,fontStyle:b[null!=t?t:0],fontWeight:j[null!=n?n:1],horizontalAlignment:c[null!=i?i:0],fontSize:p[r][null!=o?o:0]+"px"})},"078/":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}));const i=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],o=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","STLProductsFeed","RelatedProductsFeed","ShoppingSquareGridRelatedProducts","UserProfilePinGrid"],r=[...o,"ShoppingSquareGridRelatedProductsBoth","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ShoppingSquareGridRelatedProductsMetadata","ProductPinsFeed","ShoppingSquareGridCrop","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],a=["BaseBoardPinGrid"]},"0BYx":function(e,t){e.exports="https://s.pinimg.com/webapp/arSA@2x-1bf8e802.png"},"0DNT":function(e,t){e.exports="https://s.pinimg.com/webapp/ML@2x-8998d852.png"},"0HhX":function(e,t,n){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u}));var i=n("q1tI"),o=n("/MKj"),r=n("B9iM"),a=n("EC67"),s=n("zmYE");const c={};function l(e){let t;if(e.error){const{httpStatus:n,apiErrorCode:i,redirectUrl:o}=e.error;(404===n||401===n&&7===i)&&(t={pathname:"/",state:{showError:!0}}),301===n&&o&&(t={pathname:o})}return t}function d({dangerouslyDisableFetch:e,headers:t,name:n,noCache:a,options:l,schema:d}){const{dispatch:u,lastOptionsKey:p,optionsKey:h}=Object(r.a)({dangerouslyDisableFetch:e,options:l}),m=Object(o.useSelector)(({session:e})=>e.isSeoBot),b=Object(o.useSelector)(({resources:e})=>(e=>(e[n]||c)[h])(e)),f=e=>u(Object(s.e)(n,{options:l,schema:d,bookmark:e,headers:t})),g=()=>u(Object(s.g)(n,{options:l,schema:d,headers:t}));Object(i.useEffect)(()=>{if(!e&&p.current!==h){const e=void 0===p.current;p.current=h,!b||e&&b.error&&(({httpStatus:e})=>!e||e>=500)(b.error)?f():!m&&a&&g()}});const j=null==b?void 0:b.auxData,x=null==b?void 0:b.data,y=null==b?void 0:b.error,O=Boolean(x||y),_=null==b?void 0:b.nextBookmark,v=null==b?void 0:b.fetching;return{auxData:j,data:x,fetchMore:Object(i.useCallback)(()=>{!_||v||e||f(_)},[_,v]),error:y,isAtEnd:null===_,isFetching:!b||b.fetching,isLoaded:O,isRefreshing:!1,nextBookmark:_,refresh:g}}function u(e){const t=Object(a.h)(),n=d(e),i=l(n);return i&&t.replace(i.pathname,i.state),n}},"0YPa":function(e,t,n){var i=n("q1tI");t.a=(e,t)=>{const n=Object(i.useRef)(()=>{});Object(i.useEffect)(()=>{n.current=e},[e]),Object(i.useEffect)(()=>{if(null===t)return()=>{};const e=setInterval(()=>n.current(),t);return()=>clearInterval(e)},[t])}},"0rqB":function(e,t,n){var i=n("q1tI"),o=n("clxp"),r=n("nKUr");const a=Object(i.memo)(({activate:e=!0,activateExperiment:t,isEligible:n=!0,name:a,group:s,children:c})=>{Object(i.useEffect)(()=>{e&&n&&t&&t(a)},[]);const l=s,d=`Experiment(${a}:${l})`,u=n&&l&&(l.startsWith("enabled")||l.startsWith("employee"))||!1,p={group:n?l:"",anyEnabled:u,customActivate:n&&!e?()=>n?t(a):"":null};return Object(r.jsx)(o.a,{name:d,children:c(p)})});t.a=a},"1Fta":function(e,t,n){n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d}));var i=n("kmwA"),o=n("eqXv"),r=n("pSsd");const a=e=>e.length>32?e.substring(0,32).trim()+"...":e;function s(e){return null!=e&&e.reason_id?e.reason_id:null!=e&&e.board?e.board.id:null!=e&&e.pin?e.pin.id:null!=e&&e.interest?e.interest.id:""}function c(e){return null==e?void 0:e.through_properties}function l(e){switch(e){case"promoted":return 60;case"followed":case"topic":return 100;case"pfyBoard":case"pfy":return 58}}t.a=({i18n:e,interpolateNamedTemplate:t})=>({getLearnMoreUrl:e=>{switch(e){case 1:return i.a.settings.HELP_PROMOTED_PINS_RETARGETED_PIN_URL;case 2:case 3:return i.a.settings.HELP_PROMOTED_PINS_LOOKALIKE_TARGETING_URL;default:return i.a.settings.HELP_PROMOTED_PINS_URL}},getRecommendationDescription:({ad_match_reason:n,board:i,feedbackType:o,makeNavigateLink:r,pinner:s,promoter:c,recommendationReason:l,sourceInterest:d})=>{switch(o){case"pfy":return e._("This Pin was inspired by your recent activity","Pin feedback reason","Pin feedback reason");case"pfyBoard":const{name:o,url:u}=l.board,p=r("navigation",u,o);return t(e._("This Pin was inspired by your board {{ boardLink }}","Pin feedback - inspired by your board","Pin feedback - inspired by your board"),{boardLink:p});case"topic":const{name:h,url_name:m}=d,b=r("topicUrl","/topics/"+m,h);return t(e._("This Pin was inspired by {{ formattedTopic }}","Pin feedback","Pin feedback"),{formattedTopic:b});case"followed":const f="/"+s.username,g=r("boardUrl",i.url,a(i.name)),j=r("pinnerUrl",f,a(s.full_name));return s.explicitly_followed_by_me?t(e._("This Pin is from {{ formattedPinner }}, a profile you follow","Pin feedback","Pin feedback"),{formattedPinner:j}):t(e._("This Pin is from {{ formattedBoard }}, a board you follow","Pin feedback","Pin feedback"),{formattedBoard:g});case"promoted":switch(n){case 1:case 2:case 3:return e._("This ad was personalized for you using info from one of our partners","Pin feedback","Pin feedback");default:const{full_name:n,username:i}=c,o=r("promotedLink",i?"/"+i+"/":"/",n);return t(e._("{{ promoterLink }} paid to have this Pin show up where\n          you’d be more likely to notice it","Pin feedback","Pin feedback"),{promoterLink:o})}default:return null}},getFeedbackType({board:e,feedback:t,viewParameter:n,pin:{promoter:i,is_downstream_promotion:o,recommendation_reason:r},pinner:a}){const s=t&&t.type;return i&&!o?"promoted":s||((e=>!!e&&"FOLLOWED_INTEREST"!==e.reason&&"FOLLOWING_FEED"!==e.reason&&"RECENT_FOLLOWED_BOARD"!==e.reason&&!0)(r)?r.board?"pfyBoard":"pfy":r&&"FOLLOWED_INTEREST"===r.reason?"topic":e&&e.followed_by_me||a&&a.explicitly_followed_by_me?"followed":140===n||144===n||141===n||145===n||139===n||3173===n?"related":92===n?"default":3082===n?"newsHub":null)},getHidePinAction:({feedbackData:e,feedbackType:t,pinId:n,recommendationReasonId:i,pinFeedbackType:o,complaintReason:r,throughId:a,throughProperties:s,clientTrackingParams:c})=>{const l="promoted"===t;let d,u;switch(t){case"promoted":d="promotedComplaint";break;case"search":d="unrelatedSearchPin";break;case"related":d="relatedPinHide";break;case"newsHub":d="newsHubPinHide";break;default:d="complaint"}switch(t){case"search":u={query:e.query,pin_id:n};break;case"related":u={pin:n};break;case"newsHub":u={pinId:n,newsId:e.newsId};break;default:u={complaint_reason:r||0,pin_id:n,...i?{recommendation_reason_id:i}:{},feedback_type:o||1,promoted:l,...a?{through_id:a}:{},...s?{through_properties:s}:{},...c?{client_tracking_params:c}:{}}}return{action:d,actionOptions:u}},getUnfollowAction:({board:n,feedbackType:i,makeNavigateLink:o,pinner:a,sourceInterest:s})=>{if("topic"===i){if(s){const{id:n,name:i,url_name:a}=s,c=o("topicUrl","/topics/"+a,i,!0),l=t(e._("We’ll show you less Pins from {{ formattedTopic }} in the future.","pin.contextualMenu.feedback.unfollowTopic.subtitle","Confirmation text after unfollowing a topic"),{formattedTopic:c});return{action:"unfollowTopic",actionOptions:{interest_id:n,interest_list:r.a},title:"",subTitle:l}}}else if("followed"===i&&n&&a){const{id:i,name:r,url:s}=n||{},{explicitly_followed_by_me:c,full_name:l,username:d}=a,u="/"+d,p=o("boardUrl",s,r,!0),h=o("pinnerUrl",u,l,!0);let m=c?t(e._("You’ve unfollowed {{ formattedPinner }}’s Board {{ formattedBoard }}. You can follow it again by searching for it.","Confirmation text after unfollowing a board","Confirmation text after unfollowing a board"),{formattedPinner:h,formattedBoard:p}):t(e._("You’ve unfollowed {{ formattedBoard }}. You can follow it again by searching for it.","Confirmation text after unfollowing a board","Confirmation text after unfollowing a board"),{formattedBoard:p});return m=c?t(e._("You unfollowed {{ formattedPinner }} and won’t see Pins they save anymore.","Confirmation text after unfollowing a user","Confirmation text after unfollowing a user"),{formattedPinner:h}):t(e._("You unfollowed the board {{ formattedBoard }} and won’t see Pins saved to it anymore.","Confirmation text after unfollowing a board","Confirmation text after unfollowing a board"),{formattedBoard:p}),{action:"unfollowBoard",actionOptions:{board_id:i},title:"",subTitle:m}}return null}});const d=(e,t,n,i,r,a,s)=>()=>{const c={...e,undo:!0};let l=t;"unfollowPinner"===t?l="followPinner":"unfollowBoard"===t?l="followBoard":"unfollowTopic"===t&&(l="followTopic"),Object(o.a)(l,c),a(n),s(101,{component:0,element:11181,view:i,viewParameter:r})}},"1eJw":function(e,t){e.exports="https://s.pinimg.com/webapp/KO@2x-c909bac5.png"},"1lhQ":function(e,t){e.exports="https://s.pinimg.com/webapp/FR@2x-62177ec4.png"},"1n73":function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n("1dBE");const{Provider:o,useHook:r}=Object(i.c)("ContextLogger")},"1qjX":function(e,t){e.exports="https://s.pinimg.com/webapp/CS@2x-ecc1d35a.png"},"1vus":function(e,t){e.exports="https://s.pinimg.com/webapp/zhTW@2x-af9e1419.png"},"2A+z":function(e,t,n){var i=n("/MKj"),o=n("FDmi"),r=n("NwG/"),a=n("Lr1Z"),s=n("yweb"),c=n("S1na"),l=n("qpbZ"),d=n("n6mq"),u=n("pLLR"),p=n("nKUr");var h=({followerCount:e})=>{const t=Object(s.c)(),n=Object(c.a)(),{locale:i}=Object(u.d)();return Object(p.jsx)(d.cb,{children:Object(l.b)(t.ngettext("{{followers}} follower","{{followers}} followers",e,"pinPage.attribution.followersCount","Count of a user's followers"),{followers:n(i,e,{shortform:!0,shortform_maximum_fraction_digits:0})})})},m=n("XBgn"),b=n("AGnR"),f=n("pTLB"),g=n("28DW"),j=n("5SBu");t.a=Object(i.connect)((e,t)=>({user:e.users[t.userId]||t.userBlob,viewingUserId:e.session.userId,isAuthenticated:e.session.isAuthenticated}),e=>({followUser:(t,n)=>e(Object(j.g)(t,n)),unfollowUser:(t,n)=>e(Object(j.k)(t,n)),unblockUser:t=>e(Object(j.j)(t))}))(e=>{const t=Object(s.c)(),{showSignupModal:n}=Object(f.b)()||{},{avatarSize:i,detailText:c,followUser:l,hideButtons:u,isAuthenticated:j,isCurrentUser:x,isOnCloseup:y,isImagePinForUnauthOnTablet:O,pinId:_,shouldNavigateToProfile:v=!0,textColor:w,type:S,unblockUser:T,unfollowUser:I,user:k,userBlob:C,viewParameter:E,viewType:P,viewingUserId:A,unauthFollow:L}=e;if(!k)return null;const{blocked_by_me:D,explicitly_followed_by_me:R,follower_count:B,full_name:N,id:F,image_large_url:M,image_medium_url:U,image_small_url:H,is_verified_merchant:z,verified_identity:W,username:G}=k,q=(_&&_.length,()=>Object(p.jsx)(r.a,{disableLog:!0,followEventType:45,id:F,isFollowed:R||!1,isSecondaryButton:!0,isUserFollowButton:!0,isUserMe:A===F,onFollow:()=>y?void(j?(l(F,k),Object(b.e)({event_type:45,view_type:3,view_parameter:156,view_data:{isCurrentUser:x,viewObjectId:_,viewObjectIdStr:_},object_id_str:F})):n("login")):l(F,k),onUnfollow:()=>y?(I(F,k),void Object(b.e)({event_type:46,view_type:3,view_parameter:156,object_id_str:F})):I(F,k),size:"md",unfollowEventType:46,viewParameter:E,viewType:P})),V=()=>D?Object(p.jsx)(d.g,{fullWidth:!0,color:"gray",onClick:()=>T(F),size:"md",text:t._("Unblock")}):j||L?q():null,Y=z||(null==C?void 0:C.is_verified_merchant),K=B||(null==C?void 0:C.follower_count),$=e=>Object(p.jsx)(o.a,{name:null!=N?N:"",size:(e||{}).size,src:M||U||H||void 0}),X=O?"calc(100% - 48px)":void 0,Z=Y||(null==W?void 0:W.verified),Q=Object(p.jsxs)(d.u,{alignItems:"center",flex:"shrink",justifyContent:"start",children:[Object(p.jsx)(d.f,{flex:"none",marginEnd:2,children:$({size:i||"md"})}),Object(p.jsxs)(d.u,{alignItems:"stretch",justifyContent:"start",direction:"column",maxWidth:X,children:[Object(p.jsxs)(d.u,{alignItems:"stretch",justifyContent:"start",children:[Object(p.jsx)(d.cb,{color:w||"darkGray",lineClamp:O?1:void 0,weight:"bold",children:N}),Z&&Object(p.jsx)(d.f,{marginStart:1,paddingY:1,children:Object(p.jsx)(m.a,{showVerifiedIdentity:!Y,size:"sm"})})]}),Object(p.jsx)(d.cb,{color:w||"darkGray",lineClamp:O?1:void 0,children:c}),!!K&&Object(p.jsx)(h,{followerCount:K})]})]}),J="row"===S?Object(p.jsxs)(d.u,{alignItems:"center",justifyContent:"between",children:[Q,!u&&Object(p.jsx)(d.f,{flex:"none",marginStart:2,children:V()})]}):Object(p.jsxs)(d.f,{maxWidth:X,padding:2,children:[$(),Object(p.jsxs)(d.f,{display:"flex",paddingY:2,children:[Object(p.jsx)(d.cb,{align:"center",size:"md",lineClamp:1,weight:"bold",children:N}),Z&&Object(p.jsx)(d.f,{marginStart:1,paddingY:1,children:Object(p.jsx)(m.a,{showVerifiedIdentity:!Y,size:"sm"})})]}),!u&&V()]}),ee=Object(p.jsxs)(d.f,{alignItems:"center",display:"flex",justifyContent:"between",overflow:"hidden",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:[Object(p.jsx)(a.a,{onTouch:e=>{j||(Object(g.h)("click_pin_closeup_profile"),Object(g.i)({action:"click",item:"user-rep"}))},pressState:["compress","background"],rounding:2,to:`/${encodeURIComponent(G)}/`,children:Q}),!u&&Object(p.jsx)(d.f,{flex:"none",marginStart:2,children:V()})]});return Object(p.jsx)(d.f,{"data-test-id":"user-rep",width:"100%",children:v?ee:J})})},"2COb":function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n("q1tI"),o=n("0G5S");const r="_loggingInNotHome",a=e=>{e?Object(o.c)(r,1):Object(o.b)(r)},s=()=>{const[e,t]=Object(i.useState)(!1);return Object(i.useEffect)(()=>{t(!0)},[]),e&&Object(o.a)(r)}},"2xqg":function(e,t,n){var i=n("UNi/"),o=n("EwQA"),r=n("Sxd8"),a=4294967295,s=Math.min;e.exports=function(e,t){if((e=r(e))<1||e>9007199254740991)return[];var n=a,c=s(e,a);t=o(t),e-=a;for(var l=i(c,t);++n<e;)t(n);return l}},"3/Bf":function(e,t,n){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return h}));var i=n("7w6Q"),o=n("FZ8N"),r=n("LrH5");const a=Object(r.a)("logPwtStats");let s=null,c=!0;const l=e=>{s=e},d=e=>{s&&(s.historyAction=e)},u=(e,t,n=!0)=>{if(!s)return a("pwt.metrics_quality.no_context"),void i.a.increment("pwt.metrics_quality.no_context",1,{eventName:e});const{browserName:r,browserVersion:c,deviceType:l,isBot:d,isSocialBot:u}=s,p=`pwt.${(u?"socialBot":d&&"bot")||"nonbot"}.metrics_quality.${l}.${e}`,h={...(null==t?void 0:t.tags)||{},browserName:r,browserVersion:(null==c?void 0:c.split(".")[0])||"0"},m=null==t?void 0:t.count;n&&(a(`${p}: ${"number"==typeof m?m:1}`),null!=t&&t.tags&&a(Object.entries(t.tags))),o.c||i.a.count(p,"number"==typeof m?m:1,1,h)},p=(e,t)=>u(`ERROR.${null!=t&&t.action?t.action+".":""}${e}`,{tags:t}),h=({appLoadName:e,clientNavName:t},n)=>{if(s){const i="APP_VOLUME.";c?(u(i.concat(e),{tags:{browserSupportsPwtProfiler:!!n}}),c=!1):"PUSH"===s.historyAction&&u(i.concat(t),{tags:{browserSupportsPwtProfiler:!!n}})}else i.a.increment("pwt.metrics_quality.no_context",1,{eventName:e.concat("."+t)})}},"36IV":function(e,t){e.exports="https://s.pinimg.com/webapp/PL@2x-7b44a0ea.png"},"3frB":function(e,t){e.exports="https://s.pinimg.com/webapp/FI@2x-47fa27f7.png"},"3oiX":function(e,t){e.exports="https://s.pinimg.com/webapp/SV@2x-61ea661d.png"},"44UH":function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var i=n("/MKj"),o=n("QAzJ");const r=e=>{const t=Object(i.useSelector)(({feeds:e})=>e.homefeed),n=Array.isArray(t)&&t.length>0&&"story"===t[0].type,r=Object(o.a)("mweb_save_on_grid");return!n&&[503040].includes(e)&&r().anyEnabled},a="mweb_curation_save_behavior"},"49eA":function(e,t){e.exports="https://s.pinimg.com/webapp/TR@2x-ec2d7ab5.png"},"58qM":function(e,t){e.exports="https://s.pinimg.com/webapp/MS@2x-58f3c917.png"},"5iIm":function(e,t){e.exports="https://s.pinimg.com/webapp/ML@2x-e7a6773b.png"},"5yc8":function(e,t){e.exports="https://s.pinimg.com/webapp/RU@2x-7e4486d9.png"},"6CnQ":function(e,t,n){function i(e){return{type:"SET_APP_FOCUS_STATE",payload:{appInFocus:e}}}function o(e){return{type:"SET_AUTOPLAY_ELIGIBILITY",payload:{isAutoplayEligible:e}}}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}))},"6adH":function(e,t,n){n.d(t,"a",(function(){return r}));var i=n("YWAn"),o=n("nKUr");function r(e){return t=>Object(o.jsx)(i.a,{children:n=>Object(o.jsx)(e,{...t,showToast:n.showToast,showOneToast:n.showOneToast})})}},"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},"8W6c":function(e,t,n){t.a=e=>{switch(e.action){case"PUSH":case"REPLACE":return"click";case"POP":return e.location.key?"click":"deeplink";default:return null}}},"8sPw":function(e,t){e.exports="https://s.pinimg.com/webapp/HI@2x-e55c64e4.png"},"8zEK":function(e,t,n){function i(e){const t=e.videos&&e.videos.video_list&&Object.keys(e.videos.video_list).length>0?e.videos.video_list:null;return t?t.V_720P:null}n.d(t,"a",(function(){return i}))},"9+B8":function(e,t,n){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var i=n("jUT+");const o=e=>({type:i.ab,payload:e}),r=e=>({type:i.bb,payload:e})},"9Hil":function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("q1tI"),o=n("n6mq"),r=n("nKUr");function a({color:e="red",duration:t,finalProgress:n,shape:a="pill"}){const[s,c]=Object(i.useState)(!1);Object(i.useEffect)(()=>{const e=setTimeout(()=>{c(!0)},0);return()=>{clearTimeout(e)}},[]);const l="pill"===a;return Object(r.jsx)(o.f,{color:e,height:l?8:6,rounding:l?"pill":2,width:n+"%",dangerouslySetInlineStyle:{__style:{transform:l?`translateX(${s?"-5px":"-100%"})`:`scaleX(${s?1:0})`,transformOrigin:"left",transitionDuration:t+"ms",transitionTimingFunction:"ease-in"}}})}},"9Hsp":function(e,t,n){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));const i=/[\- _,.<>:;+=*&@~\/\|!]*$/,o=(e,t=80,n="…")=>{let o;if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t])o=e.substring(0,t);else{const n=e.lastIndexOf(" ",t);o=e.substring(0,n)}return o=o.replace(i,""),o+n},r=/\s\s+/g,a=e=>e.replace(r," ")},"9S0N":function(e,t){e.exports="https://s.pinimg.com/webapp/CS@2x-488e8cc6.png"},"9hhy":function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("vtuW");const o="business.referral.referral_code",r="business.referral.offer_status";const a="claimed",s={setData:({referralCode:e})=>{Object(i.c)(o,e)},getData:()=>Object(i.a)(o),setSenderOfferClaimed:()=>{Object(i.c)(r,a)},resetStatus:()=>{Object(i.b)(o)},shouldClaimReferral:()=>null!==Object(i.a)(o)&&Object(i.a)(r)!==a}},AMDu:function(e,t,n){n.d(t,"a",(function(){return m}));var i=n("q1tI"),o=n("/MKj"),r=n("FDmi"),a=n("kEen"),s=n("eyT9"),c=n("t84P"),l=n("AGnR"),d=n("n6mq"),u=n("nKUr");const p={content:{marginBottom:"1px"},visualOverlay:{backgroundColor:"rgba(0, 0, 0, .1)"},priceIndentifier:{backgroundColor:Object(s.e)()?"rgba(0, 0, 0, 0.7)":"rgba(255, 255, 255, 0.8)",borderRadius:"18px",color:Object(s.e)()?"#fff":"#111",fontSize:"10px",fontWeight:"600",height:"24px",lineHeight:"24px",padding:"0 6px"}};function h({productPin:e,showPricePill:t}){const[n,o]=Object(i.useState)(void 0),r=e=>{if(e){const t=e.offsetWidth;o(t)}};if(!n)return Object(u.jsx)(d.f,{ref:r,dangerouslySetInlineStyle:{__style:{paddingBottom:"100%",width:"100%"}}});const{grid_title:a,images:{"236x":s}={},rich_summary:c}=e,{height:l,width:h,url:m}=null!=s?s:{},b=c&&c.products&&c.products[0],f=b&&b.offer_summary&&b.offer_summary.price;return Object(u.jsxs)(d.D,{wash:!0,height:n,width:"100%",children:[Object(u.jsx)(d.y,{alt:null!=a?a:"",fit:"cover",naturalHeight:null!=l?l:1,naturalWidth:null!=h?h:1,src:null!=m?m:""}),t&&f&&Object(u.jsx)(d.f,{margin:1,paddingY:1,paddingX:1,top:!0,left:!0,position:"absolute",children:Object(u.jsx)(d.cb,{children:Object(u.jsx)(d.f,{display:"inlineBlock",dangerouslySetInlineStyle:{__style:p.priceIndentifier},children:f})})})]})}function m({dangerouslySetActionUrl:e,slotIndex:t,story:n,viewType:s,viewParameter:m}){const{action:b,objects:f,story_type:g,subtitle:j,title:x}=n,{url:y}=b,O=b.text||x.format,_=Object(o.useSelector)(({pins:e})=>f.reduce((t,n)=>("pin"===n.schema&&t.push(e[n.id]),t),[])),v=j?3:1;let w,S;if(["related_domain_collage","shop_brand_story"].includes(g)){const e=b.user;w=e&&(e.image_medium_url||e.image_large_url),S=e&&e.full_name}const T=Object(u.jsxs)(d.f,{overflow:"hidden",children:[Object(u.jsx)(d.f,{dangerouslySetInlineStyle:{__style:p.content},children:Object(u.jsx)(h,{productPin:_[0],showPricePill:!0})}),Object(u.jsxs)(d.f,{display:"flex",justifyContent:"between",dangerouslySetInlineStyle:{__style:p.content},children:[Object(u.jsx)(d.f,{width:"calc(50% - 0.5px)",children:Object(u.jsx)(h,{productPin:_[1],showPricePill:"product_category"!==g})}),Object(u.jsx)(d.f,{width:"calc(50% - 0.5px)",children:Object(u.jsx)(h,{productPin:_[2],showPricePill:"product_category"!==g})})]})]}),I=Object(u.jsxs)(i.Fragment,{children:[Object(u.jsx)(d.f,{color:"product_category"!==g?"lightGray":void 0,display:"flex",paddingX:1,alignItems:"center",justifyContent:"center",paddingY:v,children:Object(u.jsxs)(d.f,{justifyContent:"center",alignContent:"start",display:"flex",direction:"column",margin:2,children:[j?Object(u.jsx)(d.f,{marginBottom:1,children:Object(u.jsx)(d.cb,{align:"center",color:"gray",size:"md",children:j.format})}):null,Object(u.jsx)(d.cb,{align:"center",weight:"bold",children:O})]})}),S&&w&&Object(u.jsx)(d.f,{position:"absolute",left:!0,top:!0,margin:3,children:Object(u.jsx)(r.a,{name:S,size:"lg",src:w,outline:!0})})]});return Object(u.jsx)(c.e,{auxData:{story_type:g,story_id:n.id},component:200,loggingId:n.id,objectIdStr:n.id,slotIndex:t,viewParameter:m,viewType:s,children:Object(u.jsx)(d.f,{padding:2,width:"100%",children:Object(u.jsx)(a.a,{to:e||y,onTouch:()=>Object(l.h)({element:372,component:200,object_id_str:n.id,view_type:s,view_parameter:m,aux_data:{story_type:g,story_id:n.id}}),children:"product_category"===g?Object(u.jsxs)(i.Fragment,{children:[Object(u.jsx)(d.D,{rounding:2,children:T}),I]}):Object(u.jsxs)(d.D,{rounding:2,children:[T,I]})})})})}},AQTh:function(e,t){e.exports="https://s.pinimg.com/webapp/NN@2x-c4b8da55.png"},Aa0Q:function(e,t,n){n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return f}));var i=n("q1tI"),o=n("U1vm"),r=n("mp1x"),a=n("kmwA"),s=n("yweb"),c=n("W2YJ"),l=n("eyT9"),d=n("n6mq"),u=n("AGnR"),p=n("nKUr");const h="#66CCFF",m={color:h},b=e=>{const t=Object(l.e)();return{iconColor:e?t?h:"blue":"red",dangerousInlineStyle:{__style:t?m:{}}}};function f({inspirationalBadges:e=[],inspirationalBadgesColor:t,showModal:n,setShowModal:l}){const h=Object(s.c)(),[m,f]=Object(i.useState)(!0),{dangerousInlineStyle:g,iconColor:j}=b(!0);return Object(i.useEffect)(()=>{n&&m&&(f(!1),Object(u.e)({event_type:13,component:13534}))},[n]),Object(p.jsx)(r.a,{"data-test-id":"modal",isOpen:n,hideCloseIcon:!0,onDismiss:()=>{Object(u.h)({component:13534,element:11716}),l(!1)},type:"verified_merchant_modal",children:Object(p.jsxs)(d.f,{display:"flex",direction:"column",paddingY:4,paddingX:10,children:[Object(p.jsx)(d.f,{display:"flex",dangerouslySetInlineStyle:g,justifyContent:"center",children:Object(p.jsx)(d.w,{accessibilityLabel:h._("Merchant verification badge icon","creator.verifiedMerchant.modalIcon","Badge indicating that a merchant or user is verified"),color:j,icon:"workflow-status-ok",size:24})}),Object(p.jsx)(d.f,{marginTop:4,children:Object(p.jsx)(d.cb,{color:"blue",weight:"bold",align:"center",children:Object(p.jsx)(d.f,{dangerouslySetInlineStyle:g,children:h._("Verified merchant","creator.verifiedMerchant.modalHeader","this merchant is a verified merchant")})})}),Object(p.jsx)(d.f,{marginTop:4,children:Object(p.jsx)(d.cb,{align:"center",overflow:"normal",children:h._("This retailer meets Pinterest's Merchant Guidelines","creator.verifiedMerchant.modalText.","this merchant is a verified merchant")})}),e.map(e=>Object(p.jsxs)(d.f,{display:"flex",direction:"column",marginTop:4,children:[Object(p.jsx)(d.u,{alignItems:"stretch",justifyContent:"center",children:Object(p.jsx)(d.cb,{overflow:"noWrap",children:Object(p.jsx)(d.f,{display:"inlineBlock",rounding:1,paddingX:2,paddingY:1,dangerouslySetInlineStyle:{__style:Object(c.l)(t)},children:e.label})})}),Object(p.jsx)(d.f,{marginTop:2,children:Object(p.jsx)(d.cb,{align:"center",overflow:"normal",children:e.description})})]},e.id)),Object(p.jsxs)(d.f,{display:"flex",marginTop:8,justifyContent:"between",children:[Object(p.jsx)(d.f,{width:"100%",children:Object(p.jsx)(d.g,{fullWidth:!0,onClick:()=>{l(!1)},size:"md",text:h._("Got it","creator.verifiedMerchant.modalButton.","explanation text to close the modal")})}),Object(p.jsx)(d.f,{marginStart:2,width:"100%",children:Object(p.jsx)(o.a,{accessibilityLabel:h._("Learn more","creator.verifiedMerchant.buttonText","learn more about the verified merchant program by visiting help.pinterest.com"),color:"red",external:!0,shape:"pill",size:"lg",to:a.a.settings.HELP_SHOPPING_WITH_PINTEREST,text:h._("Learn more","creator.verifiedMerchant.buttonText","learn more about the verified merchant program by visiting help.pinterest.com")})})]})]})})}},"Aad/":function(e,t){e.exports="https://s.pinimg.com/webapp/arSA@2x-024c511e.png"},"B/lV":function(e,t,n){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));const i=({name:e,initiatorType:t})=>{switch(t){case"xmlhttprequest":return"xmlhttprequest";case"img":return"image";case"video":return"video";default:{const t=e.split("."),n=(t.length>1&&t.pop()||"").toLowerCase();return["js","mjs"].includes(n)?"script":"css"===n?"css":["mp4","m4v","mov","ts","m3u8"].includes(n)?"video":["bmp","gif","jpg","jpeg","png","tiff","webp","svg"].includes(n)?"image":"other"}}},o=e=>{const t=e.replace(new RegExp("^"+(window.location.origin||"")),""),n=document&&document.querySelector(`head > script[src='${t}']`);return!!n&&n.hasAttribute("defer")},r=e=>["pinimg","pinterest","pinterdev"].every(t=>!e.includes(t+".com/")),a=(e,t)=>{const n=i(e),{name:a}=e;return{category:n,isDeferred:"script"===n&&o(a),isExternal:r(a),isVisuallyCompleteRequired:"image"===n&&t.includes(a),timing:e}}},B9iM:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("q1tI"),o=n("/MKj"),r=n("aK+E"),a=n("EC67");function s({dangerouslyDisableFetch:e,options:t}){const n=Object(o.useDispatch)(),s=Object(r.a)(t),c=Object(i.useRef)(),l=Object(i.useRef)(!!e),d=Object(a.h)();return{dispatch:n,isNotFirstOrRevisit:d&&"POP"!==d.action,lastDangerouslyDisableFetch:l,lastOptionsKey:c,optionsKey:s}}},BVk3:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("/MKj"),o=n("EC67"),r=n("0HhX"),a=n("nKUr");function s({children:e,name:t,noCache:n,options:s,selector:c,schema:l}){const d=Object(r.b)({name:t,options:s,schema:l,noCache:n}),{error:u,...p}=d,h=Object(r.a)(d),m=Object(i.useSelector)(c||(()=>{}));return h?Object(a.jsx)(o.b,{to:h}):e({...p,selected:m})}},CXMf:function(e,t){e.exports="https://s.pinimg.com/webapp/TL@2x-3af02ef3.png"},CYge:function(e,t,n){n.d(t,"a",(function(){return ee})),n.d(t,"c",(function(){return te})),n.d(t,"b",(function(){return ne})),n.d(t,"d",(function(){return ie}));var i=n("q1tI"),o=n("/MKj"),r=n("ffDT"),a=n("kerF");var s=e=>{const t=e.split("/");return 4===t.length?"pin"===t[1]&&""===t[3]:3===t.length&&("pin"===t[1]&&""!==t[2])},c=n("MSUY"),l=n("yweb"),d=n("n6mq"),u=n("nKUr");var p=({showLabel:e=!1,color:t="gray",viewType:n})=>{const i=Object(l.c)();return Object(u.jsx)(d.f,{rounding:3,flex:"grow",children:Object(u.jsxs)(d.f,{display:"flex",justifyContent:"center",position:"relative",direction:"column",children:[Object(u.jsx)(d.f,{display:"flex",justifyContent:"center",padding:1,children:Object(u.jsx)(c.b,{elementType:249,iconButtonColor:"gray",iconButtonSize:"xl",viewType:n})}),e&&Object(u.jsx)(d.f,{bottom:!0,dangerouslySetInlineStyle:{__style:{WebkitUserSelect:"none"}},children:Object(u.jsx)(d.cb,{align:"center",size:"sm",lineClamp:1,color:t,children:i._("Create","nav.navFooterAdd.createPinButton","Create pin button on the Nav bar")})})]})})},h=n("FDmi"),m=n("Lr1Z"),b=n("U1vm");var f=Object(i.memo)(({height:e=18,width:t=18,text:n})=>Object(u.jsx)(d.f,{alignItems:"center",color:"red",display:"flex",height:e,justifyContent:"center",rounding:"pill",width:t,children:n&&Object(u.jsx)(d.cb,{align:"center",color:"white",size:"sm",weight:"bold",children:n})}));const g={zIndex:1,position:"relative"};function j({accessibilityLabel:e,avatarSrc:t,badge:n,badgeMargins:o,color:r,flyoutText:a,icon:s,onTouch:c,showFlyout:p,showFlyoutButton:j,showLabel:x,svgPath:y,title:O,to:_}){const v=Object(l.c)(),[w,S]=Object(i.useState)(!1),T=Object(i.useRef)(),I="nav-bar-"+String(s);return Object(u.jsx)(d.f,{dangerouslySetInlineStyle:{__style:w?g:{}},flex:"grow",children:Object(u.jsx)(m.a,{onBlur:()=>S(!1),onFocus:()=>S(!0),onTouch:c,pressState:"compress",rounding:x?4:6,to:_,children:Object(u.jsxs)(d.f,{display:"flex",justifyContent:"center",position:"relative",color:"transparent",direction:"column",rounding:3,"data-test-id":I,children:[Object(u.jsxs)(d.f,{position:"relative",display:"flex",justifyContent:"center",children:[Object(u.jsx)(d.f,{padding:2,ref:T,children:t?Object(u.jsx)(d.f,{rounding:"circle",dangerouslySetInlineStyle:{__style:{boxShadow:"darkGray"===r?"0 0 0 2px black":"0 0 0 2px transparent"}},children:Object(u.jsx)(h.a,{name:e,src:t,size:"xs"})}):Object(u.jsx)(d.w,{accessibilityLabel:e,icon:s,color:r,size:24,inline:!0,dangerouslySetSvgPath:y?{__path:y}:void 0})}),n&&Object(u.jsx)(d.f,{marginStart:null==o?void 0:o.marginLeft,marginEnd:null==o?void 0:o.marginRight,marginTop:null==o?void 0:o.marginTop,marginBottom:null==o?void 0:o.marginBottom,position:"absolute",children:Object(u.jsx)(f,{...n})}),p&&Object(u.jsx)(d.L,{anchor:T.current,color:"blue",onDismiss:()=>{},showCaret:!0,size:"flexible",children:Object(u.jsxs)(d.f,{alignItems:"center",direction:"column",display:"flex",justifyContent:"center",minHeight:70,paddingX:j?4:0,paddingY:j?4:1,width:j?200:132,children:[Object(u.jsx)(d.cb,{align:"center",color:"white",children:a||v._("Explore something new","Flyout message prompting user to click on the explore icon.","unauthNavBar.explore.flyout")}),j?Object(u.jsx)(d.f,{marginTop:4,children:Object(u.jsx)(b.a,{accessibilityLabel:v._("Explore","navFooter.flyout.button","Button on flyout to upsell home icon"),color:"white",to:_,onTouch:c,shape:"pill",text:v._("Explore","navFooter.flyout.button","Button on flyout to upsell home icon")})}):null]})})]}),x&&Object(u.jsx)(d.f,{bottom:!0,dangerouslySetInlineStyle:{__style:{WebkitUserSelect:"none"}},children:Object(u.jsx)(d.cb,{align:"center",color:r,size:"sm",lineClamp:1,children:O})})]})})})}var x=n("i2lo"),y=n("4kAQ"),O=n("pivO");const _=[501227],v={badge:{width:8,height:8,text:" "},badgeMargins:{marginLeft:6,marginTop:1}},w=Object(i.memo)(({avatarSrc:e,completeExperience:t,experience:n,isActive:r,locationPath:a,onTouch:s,showLabel:c,username:d})=>{const p=Object(l.c)(),{isAuthenticated:h}=Object(o.useSelector)(({session:e})=>e),m=a.startsWith("/"+d),b=n&&_.includes(n.experience_id);Object(i.useEffect)(()=>{if(b&&m){const{experience_id:e,placement_id:i}=n||{};t(i,e)}});const f=t=>Object(u.jsx)(j,{accessibilityLabel:p._("My profile","Nav bar icon","Nav bar icon"),avatarSrc:e,color:r?"darkGray":"gray",icon:"person",onTouch:s,showLabel:c,title:p._("Saved","Saved button on the Nav bar","Saved button on the Nav bar"),to:d?`/${d}/`:h?"/":"/unauth-profile",...t});return b&&!m?Object(u.jsx)(x.a,{eligibleIds:_,experience:n,children:f(v)}):f({})});var S=Object(o.connect)(null,e=>({completeExperience:(t,n)=>e(Object(y.a)(t,n))}))(e=>{const t=Object(O.b)({id:1000181});return Object(u.jsx)(w,{experience:t,...e})}),T=n("eOdZ"),I=n("OadL");function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class C extends i.PureComponent{constructor(...e){super(...e),k(this,"state",{newsBadgeCount:0,unreadMessageCount:0,showBadge:!1}),k(this,"clearNotificationBadge",()=>{const{isAuthenticated:e,onTouch:t}=this.props;e&&(T.d.create("NewsHubBadgeResource",{}).callDelete({showError:!1}),this.setState({newsBadgeCount:0,showBadge:!1})),t&&t()}),k(this,"getBadging",()=>{T.d.create("NewsHubBadgeResource",{}).callGet().then(({resource_response:{data:e}})=>{const t=e.news_hub_count+e.conversations_unseen_count;this.setState({newsBadgeCount:e.news_hub_count,unreadMessageCount:e.conversations_unseen_count,showBadge:t>0})})})}componentDidMount(){this.props.isAuthenticated&&this.getBadging()}render(){const{isActive:e,showLabel:t,icon:n="speech-ellipsis",onTouch:i}=this.props,{newsBadgeCount:o,unreadMessageCount:r,showBadge:a}=this.state,s=o+r,c=s>0&&s<100?s:"99+",l=c.toString().length,d={width:1===l?16:2===l?24:30,height:16,text:c},p=r>0?"/inbox/":"/notifications/";return Object(u.jsx)(j,{accessibilityLabel:this.props.i18n._("News notifications and messages","mweb.navbar.notifs_button.a11y","accessibility label for notifs icon button"),badge:a&&d||void 0,badgeMargins:{marginLeft:4},icon:n,to:p,color:e?"darkGray":"gray",onTouch:"/notifications/"===p?this.clearNotificationBadge:i,title:this.props.i18n._("Notifications","Notifications button on the Nav bar","Notifications button on the Nav bar"),showLabel:t})}}var E=Object(o.connect)((function(e){return{browserName:e.session.browser,browserVersion:e.session.browserVersion,currentUser:Object(I.i)(e),isAuthenticated:e.session.isAuthenticated}}),()=>({}))((function(e){const t=Object(l.c)();return Object(u.jsx)(C,{...e,i18n:t})})),P=n("ANjH"),A=n("SvRC"),L=n("EC67");class D extends i.PureComponent{constructor(...e){var t,n,i;super(...e),i=null,(n="leftHomeTimeOut")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}componentDidUpdate(e){const{location:t}=this.props;this.shouldRefreshHomefeed(t.pathname)?this.refreshHomefeed():this.shouldSetLeftHomeTimeout(t.pathname,e)?this.setLeftHomeTimeout():this.shouldClearLeftHomeTimeout(t.pathname)&&this.clearLeftHomeTimeout()}componentWillUnmount(){this.clearLeftHomeTimeout()}setLeftHomeTimeout(){this.leftHomeTimeOut=setTimeout(()=>{this.leftHomeTimeOut&&(this.clearLeftHomeTimeout(),this.leftHomeTimeOut=void 0)},5e3)}clearLeftHomeTimeout(){this.leftHomeTimeOut&&(clearTimeout(this.leftHomeTimeOut),this.leftHomeTimeOut=null)}refreshHomefeed(){Object(A.e)("homefeed"),this.leftHomeTimeOut=null}shouldClearLeftHomeTimeout(e){return this.leftHomeTimeOut&&"/"===e}shouldRefreshHomefeed(e){return"/"===e&&92===this.props.viewParameter&&void 0===this.leftHomeTimeOut}shouldSetLeftHomeTimeout(e,t){return null===this.leftHomeTimeOut&&"/"!==e&&"/"===t.location.pathname&&!e.startsWith("/pin/")}render(){return null}}var R=Object(P.compose)(L.l,Object(o.connect)(({currentPage:e})=>({viewParameter:e.viewParameter})))(D),B=n("SW+8"),N=n("qcoM"),F=n("O/nw"),M=n("aK+E"),U=n("zmYE"),H=(n("jUT+"),n("XiPH"));const z="VideosFeedResource",W=(e,t)=>n=>{const i={field_set_key:"mobile_grid_item"},o=Object(M.a)(i),{nextBookmark:r,fetching:a}=e[o];if(a)return Promise.resolve();const s=t||r||null,c=s?{...i,bookmarks:[s]}:i;return n(Object(U.d)(z,i,!0)),T.d.create(z,c).callGet().then(t=>{const r=t.resource_response.data;if("number"==typeof r||r){const[a]=((t.resource||{}).options||{}).bookmarks||[];if(Array.isArray(r)&&0===r.length&&a&&"-end-"!==a)return n(W(e,a));const c=((e,{bookmark:t,options:n})=>{const i=F.a[e];return"function"==typeof i?i({resource:e,options:n,bookmark:t}):i})(z,{bookmark:s,options:i}),l=c?Object(H.b)(r,c):null;e[o].fetching=!1,n(Object(U.b)(z,i,t,l,!0,c))}return Promise.resolve()},e=>{n(Object(U.c)(z,i,e))})};var G=n("r8+8"),q=n("pE5B"),V=n("NpKs"),Y=n("BGsa"),K=n("TXO6"),$=n("VuCO"),X=n("AGnR"),Z=n("snfI"),Q=n("2COb");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 ee=52,te=160,ne=60,ie=new d.o([N.a]),oe={},re=e=>{const t=e>100?e-100:5,n=Math.max(e-t,0);window.scrollTo(0,n),n>0&&window.requestAnimationFrame(()=>re(n))},ae=e=>"/"===e||s(e)||e.startsWith("/search/")||"/inbox/"===e||"/inbox/compose/"===e||"/notifications/"===e||e.includes("/report/"),se=e=>{switch(e){case"home":return 146;case"notifications":return 139;case"profile":return 40;case"today":return 11674;case"videos":return 11924;case"search":return 43;default:return}},ce=(e,t)=>{const n=oe[e.key];if(n)return n;const i=e.pathname;return"/"===i?"home":i.startsWith("/inbox")?"inbox":i.startsWith("/notifications")?"notifications":i.startsWith("/videos")?"videos":i.startsWith("/today")?"today":i.startsWith("/search")?"search":Object(L.g)(i,{path:`/${t}/(|pins|boards|tried)?`,exact:!0})?"profile":null};class le extends i.PureComponent{constructor(...e){super(...e),J(this,"state",{bottom:0,hasScrolled:!1,isNavFooterHidden:!1,prevLocation:this.props.location,selectedItem:ce(this.props.location,this.props.username),showUnauthNavExplorePrompt:!1}),J(this,"getProfileButtonRef",e=>{this.profileButton=e}),J(this,"handleScrollForIphoneX",()=>{window.innerHeight!==this.currInnerHeight&&(this.currInnerHeight=window.innerHeight,this.forceUpdate())}),J(this,"handleScrollForMobileSafari",()=>this.setState({bottom:0===window.pageYOffset?40:0})),J(this,"selectItem",e=>{const{viewData:t,viewParameter:n,viewType:i}=this.props;this.setState({selectedItem:e}),Object(X.h)({component:8,element:se(e),view_data:t,view_type:i,view_parameter:n})}),J(this,"handleHomeTouch",()=>{const{activeHomefeedTabIndex:e,location:t,setHomeFlyoutText:n,setHomefeedAsActiveHomefeedTab:i,setShowHomeBadge:o,setShowHomeFlyoutWithButton:r}=this.props;this.selectItem("home"),Object(Q.a)(!1),n(),o(!1),r(!1),V.HOMEFEED_PATHS.has(t.pathname)&&e!==q.a&&0===window.scrollY?i():0===window.scrollY&&"/"===t.pathname?Object(A.e)("homefeed"):"/"===window.location.pathname&&window.scrollY>0&&re(window.scrollY)}),J(this,"handleInboxTouch",()=>this.selectItem("inbox")),J(this,"handleProfileTouch",()=>{this.selectItem("profile")}),J(this,"handleTodayTouch",()=>this.selectItem("today")),J(this,"handleSearchTouch",()=>this.selectItem("search")),J(this,"handleVideoTouch",()=>{const{customRefreshVideosPage:e,completeExperience:t,experience:n,videosFeedResource:i}=this.props;n&&502511===n.experience_id&&t&&t(1000151,502511),i&&e(i),this.selectItem("videos")}),J(this,"handleNavFooterScroll",e=>{const{experience:t,dismissExperience:n,setIsNavFooterHiddenAfterScroll:i}=this.props,{hasScrolled:o}=this.state;t&&502511===t.experience_id&&n&&!o&&n(1000151,502511),this.setState({isNavFooterHidden:e,hasScrolled:!0}),i(e)}),J(this,"currInnerHeight",0)}componentDidMount(){const{devicePlatform:e,isMobileSafari:t}=this.props;this.currInnerHeight=window.innerHeight,Object(Y.d)(e)&&window.addEventListener("scroll",this.handleScrollForIphoneX),t&&window.addEventListener("scroll",this.handleScrollForMobileSafari)}static getDerivedStateFromProps(e,t){return e.location===t.prevLocation?null:{...t,prevLocation:e.location,selectedItem:ce(e.location,e.username)}}componentDidUpdate({location:e},{selectedItem:t}){const{location:n,history:{action:i}}=this.props,{selectedItem:o}=this.state;e!==n&&("REPLACE"===i||"PUSH"===i&&t!==o)&&(oe[e.key]=t,oe[n.key]=o)}componentWillUnmount(){const{devicePlatform:e,isMobileSafari:t,location:n}=this.props;oe[n.key]=this.state.selectedItem,Object(Y.d)(e)&&window.removeEventListener("scroll",this.handleScrollForIphoneX),t&&window.removeEventListener("scroll",this.handleScrollForMobileSafari)}render(){var e;const{experience:t,isAuthenticated:n,homeFlyoutText:o,location:s,shouldUpsellHomePage:c,showBusinessAppUpsell:l,showHomeBadge:h,showHomeFlyoutWithButton:m,username:b,viewingUser:f,viewType:g}=this.props,{bottom:x,hasScrolled:y,isNavFooterHidden:O,selectedItem:_}=this.state,v=l,w=Object(K.d)(f),T=n&&w,I=((e,t)=>t?e?320:264:200)(T,n),k=!y&&!O&&"videos"!==_;return Object(u.jsxs)(G.c,{bottom:x,height:ne,isModal:(C=s.pathname,C.includes("/report/")),footerWidth:I,noPadding:!0,hideOnScroll:l||!n||n&&ae(s.pathname),onScroll:this.handleNavFooterScroll,showBusinessAppUpsell:v,footerInLego:!0,zIndex:ie,children:[Object(u.jsx)(R,{}),Object(u.jsxs)(d.f,{display:"flex",alignItems:"center",justifyContent:"around",width:I,maxWidth:I,paddingX:2,marginStart:"auto",marginEnd:"auto",children:[Object(u.jsxs)(d.f,{alignItems:"center",display:"flex",justifyContent:"center",position:"relative",flex:"grow",children:[Object(u.jsx)(j,{accessibilityLabel:this.props.i18n._("Home","Nav bar icon","Nav bar icon"),badge:h?{height:8,width:8}:void 0,badgeMargins:h?{marginLeft:8,marginTop:1}:void 0,color:"home"===_?"darkGray":"gray",flyoutText:o,onTouch:this.handleHomeTouch,showFlyout:m,showFlyoutButton:m,showLabel:T,svgPath:"M12 0L1 10v14h8v-7a3 3 0 116 0v7h8V10z",title:this.props.i18n._("Home","Home button on the Nav bar","Home button on the Nav bar"),to:n?"/":"/ideas"}),c&&!O&&Object(u.jsx)(d.f,{position:"absolute",dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},children:Object(u.jsx)(d.M,{size:90})})]}),!n&&Object(u.jsx)(j,{accessibilityLabel:this.props.i18n._("Search","bottomNavBar.searchButton","Search button on the nav bar"),color:"videos"===_?"darkGray":"gray",icon:"search",onTouch:()=>{},showLabel:T,title:this.props.i18n._("Search","bottomNavBar.searchButton","Search button on the nav bar"),to:"/search"}),n&&Object(u.jsxs)(i.Fragment,{children:[Object(u.jsx)(a.a,{name:"mweb_video_feed",children:({anyEnabled:e})=>e&&Object(u.jsx)(r.a,{experience:t,eligibleIds:k?[502511]:[],color:"blue",showCaret:!0,children:({experience:e})=>Object(u.jsx)(j,{to:"/videos/",color:"videos"===_?"darkGray":"gray",accessibilityLabel:this.props.i18n._("Videos","Nav bar icon","Nav bar icon"),onTouch:this.handleVideoTouch,title:this.props.i18n._("Videos","Videos button on the Nav bar","Videos button on the Nav bar"),showLabel:T,svgPath:"M3.4 12c0-4.7 3.8-8.6 8.6-8.6 4.7 0 8.6 3.8 8.6 8.6 0 4.7-3.8 8.6-8.6 8.6-4.7 0-8.6-3.9-8.6-8.6zM12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.6 0 12 0zm-1.4 7.7l5.3 3.3c.7.4.7 1.4 0 1.9l-5.3 3.3c-.8.5-1.8-.1-1.8-.9V8.7c.1-.9 1.1-1.4 1.8-1z"})})}),Object(u.jsx)(j,{icon:"search",to:"/search/",color:"search"===_?"darkGray":"gray",accessibilityLabel:this.props.i18n._("Search","Nav bar icon","Nav bar icon"),onTouch:this.handleSearchTouch,title:this.props.i18n._("Search","Nav bar icon","Nav bar icon"),showLabel:T}),(null==f?void 0:f.is_partner)&&Object(u.jsx)(p,{showLabel:T,viewType:g}),Object(u.jsx)(E,{isActive:"inbox"===_||"notifications"===_,onTouch:this.handleInboxTouch,showLabel:T,icon:"speech-ellipsis"})]}),Object(u.jsx)(B.b,{children:Object(u.jsx)(d.f,{ref:this.getProfileButtonRef,flex:"grow",children:Object(u.jsx)(S,{avatarSrc:!f||null!==(e=f.image_small_url)&&void 0!==e&&e.includes("default")||"string"!=typeof f.image_small_url?"":f.image_small_url,isActive:"profile"===_,locationPath:s.pathname,onTouch:this.handleProfileTouch,showLabel:T,username:b})})})]})]});var C}}t.e=Object(P.compose)(Object(o.connect)((function({currentPage:e,homefeedTabUI:t,resources:n,session:i,users:o}){return{activeHomefeedTabIndex:t.activeTabIndex,country:i.isAuthenticated&&o[i.userId]&&"string"==typeof o[i.userId].country?o[i.userId].country:i.country,devicePlatform:i.userAgentPlatform,isAuthenticated:i.isAuthenticated,isMobileSafari:(i.isMobile||i.isTablet)&&(i.browser||"").includes("Safari"),isToastShown:i.isToastShown||!1,locale:i.locale,showBusinessAppUpsell:i.showBusinessAppUpsell||!1,username:i.isAuthenticated&&o[i.userId]?o[i.userId].username:"",videosFeedResource:n.VideosFeedResource,viewingUser:i.isAuthenticated?o[i.userId]:void 0,viewData:e.viewData,viewParameter:e.viewParameter,viewType:e.viewType}}),(function(e){return{completeExperience:(t,n)=>e(Object(y.a)(t,n)),dismissExperience:(t,n)=>e(Object(y.d)(t,n)),setHomefeedAsActiveHomefeedTab:()=>e(Object($.a)(null,q.a)),customRefreshVideosPage:t=>e(W(t))}})),L.l)(e=>{const t=Object(Q.b)(),n=Object(l.c)(),{homeFlyoutText:i,setHomeFlyoutText:o,setIsNavFooterHiddenAfterScroll:r,setShowHomeBadge:a,setShowHomeFlyoutWithButton:s,showHomeBadge:c,showHomeFlyoutWithButton:d}=Object(Z.b)(),p=Object(O.b)({id:1000151});return Object(u.jsx)(le,{...e,experience:p,homeFlyoutText:i,setHomeFlyoutText:o,setIsNavFooterHiddenAfterScroll:r,setShowHomeBadge:a,setShowHomeFlyoutWithButton:s,showHomeBadge:c,showHomeFlyoutWithButton:d,shouldUpsellHomePage:t,i18n:n})})},DCSe:function(e,t){e.exports="https://s.pinimg.com/webapp/NO@2x-d7864990.png"},Dgpg:function(e,t,n){n.d(t,"a",(function(){return d}));var i=n("q1tI"),o=n("Lr1Z"),r=n("yweb"),a=n("n6mq"),s=n("nKUr");function c({direction:e,handleClick:t,testId:n}){const i=Object(r.c)();return Object(s.jsx)("div",{style:{alignItems:"center",background:`linear-gradient(to ${"left"===e?"right":"left"}, rgba(255,255,255,1) 25%,rgba(255,255,255,0) 100%)`,border:"none",cursor:"pointer",display:"flex",height:30,lineHeight:25,outline:"none",paddingBottom:4,paddingTop:4,position:"absolute",top:0,width:45,..."right"===e?{right:0,justifyContent:"flex-end",textAlign:"right"}:{left:0}},onClick:e=>t(e),role:"button",tabIndex:0,"aria-hidden":"true","data-test-id":n,children:Object(s.jsx)(a.w,{accessibilityLabel:i._("Scroll","annotations.scrollArrow","Accessibility label for scroll arrow button"),icon:"right"===e?"arrow-forward":"arrow-back",size:8,color:"gray"})})}function l({name:e,url:t}){return Object(s.jsx)(a.f,{"data-test-id":"vase-tag",display:"inlineBlock",marginTop:1,marginEnd:1,paddingX:2,paddingY:1,height:26,color:"lightGray",rounding:8,dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap"}},children:Object(s.jsx)(a.cb,{color:"darkGray",inline:!0,overflow:"breakWord",size:"sm",weight:"bold",children:t?Object(s.jsx)(o.a,{inline:!0,pressState:"compress",to:t,rounding:8,children:e}):e})})}function d({annotations:e,mode:t}){const[n,o]=Object(i.useState)(!1),[r,d]=Object(i.useState)(!1),u=Object(i.useRef)(null);Object(i.useEffect)(()=>{const e=u.current,n=()=>{if("inlineWithScrollArrows"===t&&u.current){const e=u.current,t=Math.max(0,e.scrollLeft),n=t+e.clientWidth;o(0!==t),d(n<e.scrollWidth)}else o(!1),d(!1)};return n(),null==e||e.addEventListener("scroll",n),()=>{null==e||e.removeEventListener("scroll",n)}},[t]);const p=e=>t=>{t.preventDefault(),t.stopPropagation();const n=u.current;if(!n)return;const i=("left"===e?-1:1)*n.clientWidth*.5;n.scrollLeft=Math.min(Math.max(n.scrollLeft+i,0),n.scrollWidth)};return Object(s.jsx)(a.u,{alignItems:"center",justifyContent:"end",children:Object(s.jsxs)(a.f,{display:"flex",overflow:"hidden",width:"100%",position:"relative","data-test-id":"vase-carousel",children:[n&&Object(s.jsx)(c,{direction:"left",handleClick:p("left"),testId:"left-scroll-arrow"}),Object(s.jsx)(a.f,{overflow:"hidden",dangerouslySetInlineStyle:{__style:{scrollBehavior:"smooth",padding:"4px 0",whiteSpace:"nowrap"}},ref:u,display:"expanded"===t?"flex":void 0,wrap:"expanded"===t,children:e.map(({name:e,url:t})=>Object(s.jsx)(l,{name:e,url:t},t||e))}),r&&Object(s.jsx)(c,{direction:"right",handleClick:p("right"),testId:"right-scroll-arrow"})]})})}},DzJC:function(e,t,n){var i=n("sEfC"),o=n("GoyQ");e.exports=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),i(e,t,{leading:r,maxWait:t,trailing:a})}},EHyI:function(e,t,n){n.d(t,"a",(function(){return a}));var i=()=>{var e;return!(null===(e=window.performance)||void 0===e||!e.timing)},o=n("XtwW"),r=n("gg0E");function a(e){return!("desktop"===e&&!i())&&(!!o.a&&Object(r.a)())}},EJp8:function(e,t){e.exports="https://s.pinimg.com/webapp/SK@2x-2a81803e.png"},EfoL:function(e,t,n){n.d(t,"m",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"i",(function(){return a})),n.d(t,"j",(function(){return s})),n.d(t,"l",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"k",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"g",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"n",(function(){return m})),n.d(t,"e",(function(){return b})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return g}));var i=n("ke5A");const o=({i18n:e,isLego:t,pin:n,useGridTitleOrRichSummary:i})=>{const o=n.link_domain,r=n.native_creator,a=n.rich_metadata,s=n.rich_summary,c=n.attribution;let l,d,u,p,h,m,b,f,g=t?e._("From ","Closeup pin annotation","Closeup pin annotation"):e._("Saved from ","Closeup pin annotation","Closeup pin annotation"),j=e._("Visit","pin outbound link text","pin outbound link text"),x="",y="";if(r?f=r:o?(f=o.official_user,y=n.domain):f=n.origin_pinner||n.pinner,f&&"string"!=typeof f&&f.username?(m=`/${f.username}/`,b=f.full_name):b=y,!o||a&&a.recipe&&a.recipe.from_aggregated_data)g=e._("Saved by ","Closeup pin annotation","Closeup pin annotation");else{const i=!!(a&&a.recipe&&a.recipe.name&&a.recipe.categorized_ingredients);let o;a&&a.products&&a.products[0]&&(o=!!(a&&a.products[0].name&&a.products[0].offer_summary));const r=!(!a||!a.article),s=!(!a||!a.tutorial);var O,_,v;if(o)g=e._("Product sold by ","pin annotation","pin annotation"),p=null==a||null===(O=a.products)||void 0===O?void 0:O[0].offer_summary,h=null==a||null===(_=a.products)||void 0===_?void 0:_[0].shipping_info,x=null==a||null===(v=a.products)||void 0===v?void 0:v[0].name;else if(s)t&&(g=e._("From ","pin annotation","pin annotation")),g=e._("Saved from ","pin annotation","pin annotation");else if(i){var w,S,T,I;g=e._("Recipe from ","pin annotation","pin annotation"),j=e._("Make it ","pin outbound link text","pin outbound link text"),x=null==a||null===(w=a.recipe)||void 0===w?void 0:w.name,d=null==a?void 0:a.closeup_description,u=null!==(S=null==a?void 0:a.recipe)&&void 0!==S?S:null,null!==(T=u)&&void 0!==T&&null!==(I=T.aggregate_rating)&&void 0!==I&&I.rating_value&&"number"==typeof u.aggregate_rating.review_count&&(null!=a&&a.site_name||n.domain)?u.aggregate_rating.review_source=(null==a?void 0:a.site_name)||n.domain:u&&(u.aggregate_rating=null)}else if(r){var k;l=(null==a||null===(k=a.article)||void 0===k?void 0:k.date_published)&&new Date(a.article.date_published),x=null==a?void 0:a.title,g=e._("Article from ","pin annotation","pin annotation"),j=e._("Read it ","pin outbound link text","pin outbound link text")}}if(!p&&s){let t;var C,E,P;if(s&&s.products&&s.products[0])if(t=!!(s&&s.products[0].name&&s.products[0].offer_summary),t)g=e._("Product sold by ","pin annotation","pin annotation"),p=null===(C=s.products)||void 0===C?void 0:C[0].offer_summary,h=null===(E=s.products)||void 0===E?void 0:E[0].shipping_info,x=null===(P=s.products)||void 0===P?void 0:P[0].name}const A=(n.unified_user_note||"").trim();x=n.grid_title||n.title;let L=x;if(!L&&i){const e=n.grid_title;L="string"==typeof e?e:(n.rich_summary||{}).display_name}d=n.closeup_unified_description&&n.closeup_unified_description.trim();return{actionButtonText:j,avatar:f&&"string"!=typeof f&&(f.image_medium_url||f.image_small_url)||"",pinArticleDate:l,pinAttribution:c,pinCreditLink:m,pinCreditPrefix:g,pinCredit:b,pinDescription:d,pinDownloadTitle:L,pinProduct:p,pinShippingInfo:h,pinTitle:x,pinCategory:n.category,pinRecipe:u,sourceUser:f,trimmedUserNote:A}};function r(e,t){if(!e)return"";if(e.embed&&"gif"===e.embed.type)return e.embed&&e.embed.src||"";const n=e.images;if(!n)return"";if(t){const e="474x"===t&&n["474x"]||"236x"===t&&n["236x"]||n["736x"];if(e&&e.url)return e.url}const i=Object.keys(n).map(e=>{try{const t=e.split("x")[0];return Number.isNaN(Number(t))?(n[t]=n[e],t):e}catch(t){return""}});i.sort();const o=i.pop();return n[o]&&n[o].url||""}const a=e=>e.embed&&"gif"===e.embed.type,s=e=>e.embed&&e.embed.src&&!a(e)&&!(e=>e.embed&&"pinstory"===e.embed.subtype)(e),c=e=>!(!e.videos||!e.videos.video_list||!e.videos.video_list.V_HLSV4&&!e.videos.video_list.V_720P),l=e=>{const t=e.rich_metadata;return t?t.products?144:t.article?141:t.recipe?145:139:140},d=({mobile_link:e,tracked_link:t,link:n})=>!e&&!t&&!n,u=e=>{var t,n,i;return e?e.mobile_link||e.tracked_link||e.link||(null!==(t=null===(n=(null!==(i=e.images)&&void 0!==i?i:{}).orig)||void 0===n?void 0:n.url)&&void 0!==t?t:""):null},p=()=>{let e=800,t=400;return"undefined"!=typeof window&&(e=window.innerHeight,t=window.innerWidth),{windowHeight:e,windowWidth:t}},h="amp",m=e=>Boolean(e.mobile_link&&Object(i.c)(e.mobile_link)),b=e=>{var t;return null===(t=e.rich_metadata)||void 0===t?void 0:t.aggregate_rating},f=e=>!!e.link&&!e.link.startsWith("https://i.pinimg.com"),g=({i18n:e,pinCategory:t})=>{switch(t){case"animals":return e._("Animals and pets","display name for a pin category","display name for a pin category");case"apparel":return e._("Apparel and accessories","display name for a pin category","display name for a pin category");case"architecture":return e._("Architecture","display name for a pin category","display name for a pin category");case"art":return e._("Art","display name for a pin category","display name for a pin category");case"art_arch":return e._("Art and architecture","display name for a pin category","display name for a pin category");case"cars_motorcycles":return e._("Cars and motorcycles","display name for a pin category","display name for a pin category");case"celebrities":return e._("Celebrities","display name for a pin category","display name for a pin category");case"celebrities_public_figures":return e._("Celebrities and public figures","display name for a pin category","display name for a pin category");case"commerce":return e._("Shopping","display name for a pin category","display name for a pin category");case"corgis":return e._("Corgis","display name for a pin category","display name for a pin category");case"culture":return e._("Culture","display name for a pin category","display name for a pin category");case"design":return e._("Design","display name for a pin category","display name for a pin category");case"diy_crafts":return e._("DIY and crafts","display name for a pin category","display name for a pin category");case"education":return e._("Education","display name for a pin category","display name for a pin category");case"fashion":return e._("Fashion","display name for a pin category","display name for a pin category");case"film_music_books":return e._("Film, music and books","display name for a pin category","display name for a pin category");case"fitness":return e._("Fitness","display name for a pin category","display name for a pin category");case"food_drink":return e._("Food and drink","display name for a pin category","display name for a pin category");case"for_dad":return e._("For dad","display name for a pin category","display name for a pin category");case"gardening":return e._("Gardening","display name for a pin category","display name for a pin category");case"geek":return e._("Geek");case"gift_guides":return e._("Gift guides","display name for a pin category","display name for a pin category");case"gifts":return e._("Gifts","display name for a pin category","display name for a pin category");case"hair_beauty":return e._("Hair and beauty","display name for a pin category","display name for a pin category");case"health_fitness":return e._("Health and fitness","display name for a pin category","display name for a pin category");case"history":return e._("History","display name for a pin category","display name for a pin category");case"holidays":return e._("Holidays","display name for a pin category","display name for a pin category");case"holidays_events":return e._("Holidays and events","display name for a pin category","display name for a pin category");case"home":case"home_decor":return e._("Home decor","display name for a pin category","display name for a pin category");case"home_improvement":return e._("Home improvement","display name for a pin category","display name for a pin category");case"humor":return e._("Humor","display name for a pin category","display name for a pin category");case"illustrations_posters":return e._("Illustrations and posters","display name for a pin category","display name for a pin category");case"kids":return e._("Kids and parenting","display name for a pin category","display name for a pin category");case"men_apparel":return e._("Men's apparel","display name for a pin category","display name for a pin category");case"mens_fashion":return e._("Men's fashion","display name for a pin category","display name for a pin category");case"outdoors":return e._("Outdoors","display name for a pin category","display name for a pin category");case"people":return e._("People","display name for a pin category","display name for a pin category");case"pets":return e._("Pets","display name for a pin category","display name for a pin category");case"photography":return e._("Photography","display name for a pin category","display name for a pin category");case"prints_posters":return e._("Print and posters","display name for a pin category","display name for a pin category");case"products":return e._("Products","display name for a pin category","display name for a pin category");case"quotes":return e._("Quotes","display name for a pin category","display name for a pin category");case"science":case"science_nature":return e._("Science and nature","display name for a pin category","display name for a pin category");case"sports":return e._("Sports","display name for a pin category","display name for a pin category");case"tattoos":return e._("Tattoos","display name for a pin category","display name for a pin category");case"technology":return e._("Technology","display name for a pin category","display name for a pin category");case"travel":return e._("Travel","display name for a pin category","display name for a pin category");case"travel_places":return e._("Travel and places","display name for a pin category","display name for a pin category");case"videos":return e._("Videos","display name for a pin category","display name for a pin category");case"wedding_events":return e._("Wedding and events","display name for a pin category","display name for a pin category");case"weddings":return e._("Weddings","display name for a pin category","display name for a pin category");case"women_apparel":return e._("Women's apparel","display name for a pin category","display name for a pin category");case"womens_fashion":return e._("Women's fashion","display name for a pin category","display name for a pin category");default:return null}}},EwQA:function(e,t,n){var i=n("zZ0H");e.exports=function(e){return"function"==typeof e?e:i}},F2ZA:function(e,t,n){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return p}));n("n6mq");const i="/today/",o=3,r=(e,t,n=0)=>({num_days:t,referrer:n,...e?{}:{redux_normalize_feed:!0}});function a(e,t,n){const i=function(e){return 0===e||2===e?"trending":1===e?"best":"article"}(e),o=function(e){return e.toLowerCase().replace(/[.,\/#!?$%\^&\*+;:{}=\-_`~()\’'"]/g,"").trim().replace(/\s+/g,"-")}(t);return`/today/${i}/${encodeURIComponent(o)}/${n}/`}const s={"www.pinterest.com":"US","www.pinterest.co.uk":"GB","www.pinterest.ca":"CA","www.pinterest.com.au":"AU","br.pinterest.com":"BR","www.pinterest.com.mx":"MX","ar.pinterest.com":"AR","www.pinterest.cl":"CL","co.pinterest.com":"CO","www.pinterest.de":"DE","www.pinterest.at":"AT","www.pinterest.ch":"CH","www.pinterest.fr":"FR","in.pinterest.com":"IN","id.pinterest.com":"ID","www.pinterest.jp":"JP"},c={US:"en",GB:"en",CA:"en",AU:"en",BR:"pt",MX:"es",AR:"es",CL:"es",CO:"es",PE:"es",DE:"de",AT:"de",CH:"de",FR:"fr",IN:"en",ID:"id",JP:"ja",IT:"it"},l=(e,t)=>{const n=c[e];return!(null===n||n!==t&&!t.startsWith(n))},d=e=>s[e],u=(e,t)=>e||((null==t?void 0:t.origin_pinner)||(null==t?void 0:t.pinner)||""),p=(e,t)=>e||((null==t?void 0:t.origin_pinner)||(null==t?void 0:t.pinner))},FylZ:function(e,t,n){function i(){let e="";for(let t=0;t<15;t+=1){e+="0123456789"[Math.floor(10*Math.random())]}return Number(e)}n.d(t,"a",(function(){return i}))},"G/mG":function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n("jUT+");const o=e=>({type:i.gb,payload:e}),r=e=>({type:i.rc,payload:e})},GuVr:function(e,t,n){n.d(t,"a",(function(){return ye}));var i=n("Aad/"),o=n.n(i),r=n("1qjX"),a=n.n(r),s=n("mqJ/"),c=n.n(s),l=n("kH38"),d=n.n(l),u=n("lbiE"),p=n.n(u),h=n("y7vW"),m=n.n(h),b=n("YPSp"),f=n.n(b),g=n("3frB"),j=n.n(g),x=n("t73z"),y=n.n(x),O=n("UL3w"),_=n.n(O),v=n("+Cth"),w=n.n(v),S=n("qqi5"),T=n.n(S),I=n("q5ep"),k=n.n(I),C=n("mUuv"),E=n.n(C),P=n("ZCiT"),A=n.n(P),L=n("5iIm"),D=n.n(L),R=n("58qM"),B=n.n(R),N=n("wWTz"),F=n.n(N),M=n("+SB1"),U=n.n(M),H=n("DCSe"),z=n.n(H),W=n("36IV"),G=n.n(W),q=n("S1kg"),V=n.n(q),Y=n("Ryq3"),K=n.n(Y),$=n("5yc8"),X=n.n($),Z=n("EJp8"),Q=n.n(Z),J=n("3oiX"),ee=n.n(J),te=n("vZdC"),ne=n.n(te),ie=n("CXMf"),oe=n.n(ie),re=n("49eA"),ae=n.n(re),se=n("afEI"),ce=n.n(se),le=n("WvRU"),de=n.n(le),ue=n("rc+o"),pe=n.n(ue),he=n("1vus"),me=n.n(he),be=n("yweb"),fe=n("eQwl"),ge=n("n6mq"),je=n("nKUr");const xe={"AR-SA":o.a,"ZH-CN":pe.a,"ZH-TW":me.a,CS:a.a,DA:c.a,DE:d.a,EL:p.a,EN:m.a,ES:f.a,FI:j.a,FR:y.a,HI:_.a,HU:w.a,ID:T.a,IT:k.a,JA:E.a,KO:A.a,ML:D.a,MS:B.a,NB:z.a,NL:F.a,NN:U.a,NO:z.a,PL:G.a,PT:V.a,RO:K.a,RU:X.a,SK:Q.a,SV:ee.a,TH:ne.a,TL:oe.a,TR:ae.a,UK:ce.a,VI:de.a};function ye({locale:e}){const t=Object(be.c)(),n=Object(fe.c)(e),i=xe[n]||xe.EN,o=t._("Install the Pinterest app on Android");return Object(je.jsx)(ge.y,{naturalHeight:80,naturalWidth:270,src:i,alt:o})}},HAEv:function(e,t){e.exports="https://s.pinimg.com/webapp/TL@2x-1e888ea6.png"},HMdf:function(e,t,n){n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"e",(function(){return j})),n.d(t,"b",(function(){return x})),n.d(t,"g",(function(){return y}));var i=n("fyR6"),o=n("vzKb"),r=n("SyXB"),a=n("K8G+"),s=n("FZ8N"),c=n("B/lV"),l=n("3/Bf");let d;function u(){window.performance&&window.performance.clearResourceTimings&&(Object(r.c)("resourceBufferCleared"),s.b&&console.info("Warning: Clearing resource timings in default buffer."),Object(l.c)("resourceBufferSize",{count:Object(a.a)("resource").length}),window.performance.clearResourceTimings())}const p=({size:e})=>{if(window.performance){window.PerformanceObserver?(d=Object(a.a)("resource"),Object(o.a)({entryTypes:["resource"]},t=>{d=(d||[]).concat(t.getEntries()),d.length>e&&(d=d.slice(-e))})):(window.addEventListener("popstate",()=>{Object(a.a)("resource").length>e&&u()}),window.performance.setResourceTimingBufferSize&&window.performance.setResourceTimingBufferSize(e));try{window.performance.onresourcetimingbufferfull=()=>{d||u()}}catch(t){}}},h=()=>d||Object(a.a)("resource"),m=Object(i.a)(h),b=h,f=()=>m.get(),g=e=>{e&&m.save(),d&&(Object(l.c)("customBufferSize",{count:d.length}),d=[]),u()},j=()=>({customBufferSize:d?d.length:0,defaultBufferSize:Object(a.a)("resource").length}),x=(e,t=!0)=>{let n=0,i=0;const o=(r=e.filter(e=>t?!("image"!==Object(c.b)(e)||(e.responseEnd||(n+=1),e.transferSize||(i+=1),!e.responseEnd||!e.transferSize)):!!e.responseEnd&&!!e.transferSize).map(e=>8*(e.transferSize||0)/((e.responseEnd-e.responseStart)/1e3)/1e3)).length?r.reduce((e,t)=>e+t,0)/r.length:null;var r;return t&&(n>0&&Object(l.c)("images.downloadSpeed.noResponseEnd",{tags:{count:n}},!1),i>0&&Object(l.c)("images.downloadSpeed.transferSize",{tags:{count:i}},!1)),o},y=e=>{if(!e)return"unknown";const t=Math.floor(e/1e3);return t<1?"0-1":t<5?"1-5":t<10?"5-10":t<20?"10-20":t<40?"20-40":t<80?"40-80":"80_or_above"}},HP5p:function(e,t,n){var i=n("/MKj"),o=n("SW+8"),r=n("YWAn"),a=n("ANjH"),s=n("ulr2"),c=n("nKUr");const l=Object(a.compose)(Object(i.connect)(null,(function(e){return{hideRepinAnimation:()=>e(Object(s.i)()),showRepinAnimation:()=>e(Object(s.K)())}})),(function(e){return t=>{const{hideRepinAnimation:n,showRepinAnimation:i}=t,{showToast:a,showOneToast:s}=Object(r.c)();return Object(c.jsx)(e,{...t,showToast:a,showOneToast:s,showRepinConfirmation:(e,t)=>{t||i(),setTimeout(()=>{t||n(),(e=>{e.forEach(e=>a(e))})(e)},o.a)}})}}));t.a=l},I1Y6:function(e,t,n){n.d(t,"a",(function(){return i}));function i(e,t=80,n="…"){let i;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t])i=e.substring(0,t);else{const n=e.lastIndexOf(" ",t);i=e.substring(0,n)}return i=i.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""),i+n}},I6XH:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("/MKj"),o=n("NwG/"),r=n("5SBu"),a=n("nKUr");function s({user:e,invertColors:t,isSecondaryButton:n,onTap:s,size:c,viewParameter:l,viewType:d}){const u=Object(i.useDispatch)(),{id:p}=e,h=Object(i.useSelector)(({users:t})=>t[p]?t[p].explicitly_followed_by_me:e.explicitly_followed_by_me);return Object(a.jsx)(o.a,{id:p,onFollow:()=>{u(Object(r.g)(p,e)),s&&s()},onUnfollow:()=>{u(Object(r.k)(p,e)),s&&s()},size:c,invertColors:t,isSecondaryButton:n,isFollowed:h,isUserFollowButton:!0,followEventType:45,unfollowEventType:46,viewParameter:l,viewType:d})}},IZg8:function(e,t,n){n.d(t,"a",(function(){return i}));const i="https://schema.org/Recipe"},IaND:function(e,t,n){var i=n("q1tI"),o=n("ihsa"),r=n("n+mC"),a=n("g6r8"),s=n("qDpr"),c=n("n6mq"),l=n("nKUr");const d="PinGridSkeletonLoader__tall",u="PinGridSkeletonLoader__short",p=({size:e})=>Object(l.jsx)(c.f,{padding:1,children:Object(l.jsx)("div",{className:"tall"===e?d:u})}),h=({children:e})=>Object(l.jsx)(c.u,{direction:"column",gap:2,children:e});t.a=()=>{const e="desktop"===Object(a.a)(),t=e?s.b:175;return Object(l.jsxs)(i.Fragment,{children:[Object(l.jsx)(o.a,{unsafeCSS:[{name:d,height:250},{name:u,height:150}].map(({name:e,height:n})=>Object(r.a)({name:e,width:t,height:n})).join("")}),Object(l.jsx)(c.f,{marginStart:s.c,marginEnd:s.c,children:e?Object(l.jsxs)(c.u,{direction:"row",gap:s.a,children:[Object(l.jsx)(h,{children:Object(l.jsx)(p,{size:"tall"})}),Object(l.jsx)(h,{children:Object(l.jsx)(p,{size:"short"})}),Object(l.jsx)(h,{children:Object(l.jsx)(p,{size:"tall"})}),Object(l.jsx)(h,{children:Object(l.jsx)(p,{size:"short"})})]}):Object(l.jsxs)(c.u,{direction:"row",overflow:"hidden",justifyContent:"center",children:[Object(l.jsxs)(h,{children:[Object(l.jsx)(p,{size:"tall"}),Object(l.jsx)(p,{size:"short"}),Object(l.jsx)(p,{size:"tall"})]}),Object(l.jsxs)(h,{children:[Object(l.jsx)(p,{size:"short"}),Object(l.jsx)(p,{size:"tall"}),Object(l.jsx)(p,{size:"short"}),Object(l.jsx)(p,{size:"tall"})]})]})})]})}},IayW:function(e,t,n){n.d(t,"a",(function(){return de}));var i=n("/MKj"),o=n("q1tI"),r=n("kerF"),a=n("GuVr"),s=n("wdUa"),c=n("yweb"),l=n("QtD7"),d=n("0G5S"),u=n("2NiC"),p=n("n6mq"),h=n("nKUr");function m(){const e=Object(c.c)(),t=Object(i.useDispatch)(),{locale:n,userAgentPlatform:m}=Object(i.useSelector)(({session:e})=>e);Object(o.useEffect)(()=>{"enabled_no_double"===t(Object(l.a)("mweb_hf_story_app_upsell2"))&&Object(d.c)("appUpsell",Date.now())},[]);const b=e._("Pinterest works best if you switch to our iPhone app","app upsell","app upsell"),f=e._("Pinterest works best if you switch to our Android app","app upsell","app upsell"),g="ios"===m;return Object(h.jsxs)(p.f,{color:"blue",marginBottom:5,marginStart:2,marginEnd:2,marginTop:3,padding:3,rounding:2,children:[Object(h.jsx)(r.a,{name:"mweb_hf_story_app_upsell2",children:({group:t})=>"enabled_icon"===t?Object(h.jsx)(p.f,{marginBottom:2,children:Object(h.jsx)(p.w,{accessibilityLabel:e._("Pinterest icon"),color:"white",icon:"pinterest",size:32})}):null}),Object(h.jsx)(p.cb,{color:"white",weight:"bold",children:g?b:f}),Object(h.jsx)(p.f,{marginTop:3,children:Object(h.jsx)(u.a,{children:e=>Object(h.jsx)(p.bb,{onTap:()=>(e=>{e("/")})(e),children:g?Object(h.jsx)(s.a,{locale:n}):Object(h.jsx)(a.a,{locale:n})})})})]})}var b=n("kEen");const f={defaultOverlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"}};function g({buttonAction:e,buttonText:t,imageUrl:n,brands:o}){const r=Object(i.useSelector)(({users:e})=>e),a=o.slice(0,3).map(e=>{var t,n;return{name:null!==(t=r[e.id].username)&&void 0!==t?t:"",src:null!==(n=r[e.id].image_medium_url)&&void 0!==n?n:""}});return Object(h.jsx)(p.f,{position:"relative",padding:1,marginBottom:2,children:Object(h.jsxs)(b.a,{to:e,children:[Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},position:"relative",children:Object(h.jsxs)(p.f,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},top:!0,right:!0,bottom:!0,left:!0,overflow:"hidden",position:"absolute",rounding:4,children:[Object(h.jsx)(p.f,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:n&&Object(h.jsx)(p.y,{alt:t,color:"rgb(111, 91, 77)",naturalHeight:1,naturalWidth:1,src:n,fit:"cover"})}),Object(h.jsx)(p.f,{height:"100%",width:"100%",dangerouslySetInlineStyle:{__style:f.defaultOverlay},position:"absolute",top:!0,left:!0}),Object(h.jsx)(p.f,{width:"100%",position:"absolute",bottom:!0,paddingY:6,display:"flex",justifyContent:"center",children:Object(h.jsx)(p.f,{width:24*(2*a.length+1),height:64,children:Object(h.jsx)(p.c,{accessibilityLabel:"",collaborators:a})})})]})}),Object(h.jsx)(p.f,{"aria-hidden":"true",width:"100%",display:"flex",rounding:"pill",color:"lightGray",justifyContent:"center",alignItems:"center",paddingX:2,height:48,marginTop:2,children:Object(h.jsx)(p.cb,{weight:"bold",children:Object(h.jsx)(p.f,{children:t})})})]})})}var j=n("L1dC"),x=n("ie/H");const y="49.5%";function O({buttonAction:e,buttonText:t,colors:n}){const o=Object(i.useSelector)(({pins:e})=>n.slice(0,4).map(t=>{var n;return{...null===(n=e[t.id].images)||void 0===n?void 0:n["736x"],title:e[t.id].description}}));if(n.length<4)return null;const r=e=>{var t,n,i,o;return Object(h.jsx)(p.f,{width:y,height:"100%",children:Object(h.jsx)(p.y,{alt:null!==(t=e.title)&&void 0!==t?t:"",color:"rgb(111, 91, 77)",naturalHeight:null!==(n=e.height)&&void 0!==n?n:1,naturalWidth:null!==(i=e.width)&&void 0!==i?i:1,src:null!==(o=e.url)&&void 0!==o?o:"",fit:"cover"})})};return Object(h.jsx)(p.f,{position:"relative",padding:1,marginBottom:2,children:Object(h.jsxs)(b.a,{to:e,children:[Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},position:"relative",children:Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},top:!0,right:!0,bottom:!0,left:!0,overflow:"hidden",position:"absolute",rounding:4,children:Object(h.jsx)(p.f,{height:"100%",width:"100%",rounding:4,direction:"column",display:"flex",justifyContent:"between",children:[o.slice(0,2),o.slice(2,4)].map(e=>Object(h.jsx)(p.u,{width:"100%",height:y,justifyContent:"between",children:e.map(r)}))})})}),Object(h.jsx)(p.f,{width:"100%",display:"flex",rounding:"pill",color:"lightGray",justifyContent:"center",alignItems:"center",paddingX:2,height:48,marginTop:2,children:Object(h.jsx)(p.cb,{weight:"bold",children:Object(h.jsx)(p.f,{children:t})})})]})})}var _=n("FDmi");var v=Object(i.connect)(({pins:e,users:t},n)=>({pin:e[n.id],user:e[n.id]&&t[e[n.id].pinner]}),()=>({}))(({isFirstChild:e,pin:t,user:n})=>{var i;if(!t)return null;const o=null===(i=t.images)||void 0===i?void 0:i["170x"];if(!o)return null;const{full_name:r,image_medium_url:a}=n||{},{dominant_color:s}=t,{height:c,width:l,url:d}=o;return Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{paddingRight:8,paddingLeft:e?8:void 0}},children:Object(h.jsxs)(p.f,{position:"relative",children:[Object(h.jsx)(p.f,{height:144,overflow:"hidden",rounding:4,width:108,children:Object(h.jsx)(p.y,{alt:t.title||"",color:null!=s?s:"",fit:"cover",naturalHeight:null!=c?c:1,naturalWidth:null!=l?l:1,src:null!=d?d:""})}),a&&Object(h.jsx)(p.f,{alignItems:"center",bottom:!0,display:"flex",height:0,justifyContent:"center",left:!0,position:"absolute",right:!0,children:Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{border:"1px solid white"}},height:60,rounding:"circle",width:60,children:Object(h.jsx)(_.a,{name:null!=r?r:"",src:a})})})]})})});function w({pinIds:e}){const t=e.concat(e).concat(e).concat(e);return Object(h.jsx)(p.f,{height:174,overflow:"hidden",width:"100%",children:Object(h.jsx)(p.f,{overflow:"scroll",children:Object(h.jsx)(p.u,{alignItems:"stretch",justifyContent:"start",direction:"row",height:184,children:t.map((e,t)=>Object(h.jsx)(v,{id:e,isFirstChild:0===t},e))})})})}var S=n("bcHz"),T=n("Lr1Z"),I=n("t84P"),k=n("AGnR");const C="creator_spotlight_";class E extends o.PureComponent{render(){const{id:e,story:t}=this.props;if(!t||"social_seasonal_pin"===t.story_type)return null;const{button_text:n,objects:i,story_type:o,subtitle:r,title:a,background_colour:s,display_options:c}=t,{title_text_color:l,subtitle_text_color:d}=c;if(!o.startsWith(C)||!i||i.length<3)return null;const u="/creator-spotlight/"+o.slice(C.length);return Object(h.jsx)(p.f,{marginBottom:3,children:Object(h.jsx)(I.e,{loggingId:e,objectIdStr:e,viewParameter:43,viewType:2,slotIndex:0,component:13484,auxData:{story_type:o},children:Object(h.jsx)(T.a,{onTouch:()=>{Object(k.h)({view_type:2,view_parameter:43,component:13484,object_id_str:e,aux_data:{story_type:o}})},pressState:"none",to:u,children:Object(h.jsx)(p.f,{rounding:2,overflow:"hidden",display:"flex",dangerouslySetInlineStyle:{__style:{backgroundColor:s}},children:Object(h.jsx)(p.f,{width:"100%",height:"100%",children:Object(h.jsxs)(p.f,{alignItems:"center",direction:"column",display:"flex",height:"100%",justifyContent:"between",paddingY:4,children:[(!!r||!!a)&&Object(h.jsxs)(p.u,{alignItems:"center",direction:"column",justifyContent:"center",children:[a&&a.format&&Object(h.jsx)(p.v,{size:"sm",children:Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{color:l}},children:a.format})}),r&&r.format&&Object(h.jsx)(p.cb,{align:"center",children:Object(h.jsx)(p.f,{marginTop:1,dangerouslySetInlineStyle:{__style:{color:d}},children:r.format})})]}),Object(h.jsx)(p.f,{paddingY:2,marginTop:2,width:"100%",children:Object(h.jsx)(w,{pinIds:i.map(e=>e.id)})}),n&&n.format&&Object(h.jsx)(p.f,{display:"inlineBlock",children:Object(h.jsx)(S.a,{pressState:"compress",children:Object(h.jsx)(p.f,{color:"red",rounding:"pill",position:"relative",children:Object(h.jsx)(p.f,{paddingX:5,paddingY:5,children:Object(h.jsx)(p.cb,{color:"white",weight:"bold",children:n.format})})})})})]})})})})})})}}var P=Object(i.connect)(({stories:e},{id:t})=>({story:e[t]}),()=>({}))(E),A=n("i2lo"),L=n("EC67");function D({pin:e,width:t,height:n,showDivider:i}){var o,r,a,s,c,l,d;const u=null===(o=e.images)||void 0===o?void 0:o["236x"];return Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:i?{borderRight:"2px solid #fff"}:{}},children:Object(h.jsx)(p.B,{contentAspectRatio:(null!==(r=null==u?void 0:u.width)&&void 0!==r?r:1)/(null!==(a=null==u?void 0:u.height)&&void 0!==a?a:1),height:n,width:t,children:Object(h.jsx)(p.y,{alt:null!==(s=e.description)&&void 0!==s?s:"",naturalWidth:null!==(c=null==u?void 0:u.width)&&void 0!==c?c:1,naturalHeight:null!==(l=null==u?void 0:u.height)&&void 0!==l?l:1,src:null!==(d=null==u?void 0:u.url)&&void 0!==d?d:""})})})}var R=Object(L.l)((function({storyId:e,slotIndex:t,history:n,location:r}){const[a,s]=Object(o.useState)(0),c=Object(o.useRef)();Object(o.useLayoutEffect)(()=>{const e=c.current;e&&s(e.offsetWidth)},[]);const l=Object(i.useSelector)(({stories:t})=>t[e]),d=Object(i.useSelector)(({pins:e})=>l.objects.map(t=>e[t.id])).slice(0,2),{story_type:u,action:m}=l,b=`${r.pathname}products/${r.search}`;return Object(h.jsx)(I.e,{auxData:{story_type:u,content_ids:d.map(e=>e.id),story_id:e},component:200,loggingId:e,objectIdStr:e,slotIndex:t,viewParameter:3050,viewType:72,children:a?Object(h.jsx)(p.f,{padding:2,children:Object(h.jsx)(p.D,{rounding:2,children:Object(h.jsxs)(p.bb,{onTap:()=>{Object(k.h)({component:200,view_parameter:3050,view_type:72}),n.push(b)},children:[Object(h.jsx)(p.f,{display:"flex",justifyContent:"center",alignItems:"center",color:"lightGray",children:d.map((e,t)=>Object(h.jsx)(D,{pin:e,width:(a-16)/2-1,height:a-16,showDivider:!t},e.id))}),Object(h.jsx)(p.f,{position:"absolute",top:!0,left:!0,width:"100%",height:"100%",children:Object(h.jsx)(p.u,{alignItems:"center",height:"100%",justifyContent:"center",width:"100%",children:Object(h.jsx)(p.f,{rounding:"pill",paddingX:4,paddingY:2,display:"flex",justifyContent:"center",alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(255,255,255,0.97)"}},children:Object(h.jsx)(p.cb,{weight:"bold",children:m.text})})})})]})})}):Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}},position:"relative",ref:c})})})),B=n("hlxQ");function N({slotIndex:e,storyId:t}){const{action:n,aux_fields:r,objects:a,story_type:s,title:c}=Object(i.useSelector)(({stories:e})=>e[t]),l=a[0].id,d=Object(i.useSelector)(({pins:e})=>a.slice(1,3).map(({id:t})=>e[t]));return d.length<2?null:Object(h.jsx)(I.e,{loggingId:t,objectIdStr:t,viewParameter:43,viewType:2,slotIndex:e,component:200,auxData:{story_type:s,content_ids:d.map(({id:e})=>e),story_id:t,...r},children:Object(h.jsxs)(o.Fragment,{children:[c&&Object(h.jsx)(p.f,{paddingY:1,marginTop:2,children:Object(h.jsx)(p.cb,{align:"center",children:c.format})}),Object(h.jsx)(B.a,{action:n,auxData:r,userId:l,userPins:d,viewParameter:43,viewType:2})]})})}class F extends o.PureComponent{render(){const{seasonalBlob:e,size:t}=this.props,{story_title:n,pin_image:i,pin_image_gif:o,user_name:r,board_name:a,header_background_color:s,textIconColor:c}=e,l=s||"orchid",d=this.props.i18n._("Take a look","Button text asking users to take a look at Seasonal pages","Button text asking users to take a look at Seasonal pages"),u=r&&a?`/${r}/${a}`:"/pinterestindonesia/happy-halloween/",m=n||"unknown",f=o||i||"",g=c||"white";return Object(h.jsx)(p.D,{rounding:2,children:Object(h.jsx)(p.f,{padding:3,children:Object(h.jsx)(b.a,{to:u,isAppUpsellDisabled:!0,onTouch:()=>{},children:Object(h.jsx)(p.f,{children:Object(h.jsx)(p.f,{display:"flex",margin:-1,height:t,children:Object(h.jsx)(p.f,{width:"100%",children:Object(h.jsxs)(p.D,{rounding:2,height:"100%",children:[Object(h.jsx)(p.f,{height:t,children:Object(h.jsx)(p.y,{alt:m,color:l,fit:"cover",naturalHeight:1,naturalWidth:1,src:f})}),Object(h.jsx)(p.f,{height:t,position:"absolute",top:!0,left:!0}),Object(h.jsx)(p.f,{position:"absolute",top:!0,left:!0,right:!0,overflow:"hidden",paddingX:2,paddingY:4,dangerouslySetInlineStyle:{__style:{lineHeight:"19px"}},children:Object(h.jsx)(p.cb,{color:g,weight:"bold",children:m})}),Object(h.jsx)(p.f,{position:"absolute",bottom:!0,left:!0,right:!0,padding:2,marginStart:"auto",marginEnd:"auto",children:Object(h.jsx)(p.g,{fullWidth:!0,size:"sm",text:d})})]})})})})})})})}}var M=Object(i.connect)(({stories:e},t)=>({seasonalBlob:e[t.storyId].custom_properties,storyType:e[t.storyId].story_type,referringSource:e[t.storyId].referring_source}),()=>({}))((function(e){const t=Object(c.c)();return Object(h.jsx)(F,{...e,i18n:t})})),U=n("AMDu"),H=n("gCPk");function z({storyId:e,viewParameter:t,viewType:n}){const r=Object(i.useSelector)(({stories:t})=>t[e]),a=Object(i.useSelector)(({session:e})=>e.isTablet),s=r.objects,c={viewParameter:t,viewType:n};return Object(o.useEffect)(()=>{Object(k.e)({event_type:9024,view_type:n,view_parameter:t})},[]),r?Object(h.jsxs)(o.Fragment,{children:[Object(h.jsx)(p.q,{}),Object(h.jsxs)(p.f,{paddingY:1,children:[Object(h.jsx)(p.f,{paddingY:2,marginTop:3,children:Object(h.jsx)(p.v,{align:"center",size:"sm",children:r.title.format})}),1===s.length?Object(h.jsx)(p.f,{width:a?400:"auto",paddingY:2,margin:"auto",children:Object(h.jsx)(H.a,{id:s[0].id,gridIndex:0,...c})}):Object(h.jsx)(p.f,{overflow:"auto",children:Object(h.jsx)(p.u,{alignItems:"stretch",justifyContent:"start",width:"fit-content",children:s.map((e,t)=>Object(h.jsx)(p.f,{width:a?400:"80vw",marginStart:0===t?0:2,paddingY:2,children:Object(h.jsx)(H.a,{id:e.id,gridIndex:t,...c})},e.id))})})]})]}):null}var W=n("WSmg");var G=Object(i.connect)(({pins:e},t)=>({pin:e[t.id]}),()=>({}))(({pin:e})=>{var t;if(!e)return null;const n=e.images&&(e.images.orig||e.images["736x"]||e.images["290x"]||e.images["236x"]);return Object(h.jsx)(p.D,{wash:!0,height:Q,width:Q,children:Object(h.jsx)(p.f,{height:Q,position:"relative",width:Q,children:Object(h.jsx)(p.y,{alt:e.description||"",src:null!==(t=null==n?void 0:n.url)&&void 0!==t?t:"",fit:"cover",naturalHeight:1,naturalWidth:1,color:e.dominant_color||"#767676"})})})}),q=n("QwGr"),V=n("7MwI"),Y=n("qpbZ"),K=n("eyT9"),$=n("EfoL");var X=Object(i.connect)((e,t)=>({pin:e.pins[t.pinId]}),()=>({}))(({pin:e,shouldRoundPrice:t,showSalePrice:n})=>{const i=Object(c.c)();if(!e)return null;const{pinProduct:o}=Object($.m)({i18n:i,pin:e,useGridTitleOrRichSummary:!1});if(!o||!o.price)return null;const r=o.price||o.max_price,a=o.standard_price,s=/^(\$\d+)(\.?\d\d)*$/g,l=a&&s.exec(a),d=s.exec(r),u=Object(K.e)()?"rgba(0, 0, 0, 0.7)":"rgba(255, 255, 255, 0.8)",m=Object(K.e)()?"white":"darkGray";return Object(h.jsxs)(p.f,{rounding:"pill",paddingX:2,paddingY:0,dangerouslySetInlineStyle:{__style:{backgroundColor:u,paddingTop:"3px",paddingBottom:"3px"}},"data-test-id":"MwebPricePill",display:"inlineBlock",children:[n&&l&&Object(h.jsxs)(p.cb,{align:"center",size:"sm",weight:"bold",color:"gray",inline:!0,children:[Object(h.jsx)("s",{children:Object(Y.b)("{{ priceRounded }}",{priceRounded:l[1]})})," "]}),Object(h.jsx)(p.cb,{align:"center",size:"sm",weight:"bold",color:m,inline:!0,children:(n&&a||t)&&d&&d[1]?Object(Y.b)("{{ priceRounded }}",{priceRounded:d[1]}):r})]})}),Z=n("XBgn");const Q=114;function J({handleClick:e,isVerifiedMerchant:t,pins:n,showVerifiedBadge:i,showVerifiedIdentityBadge:o,storyAction:r,storyType:a,title:s,viewParameter:c,trackingParams:l}){const d=Object(L.h)(),{text:u}=r||{};return Object(h.jsxs)(p.f,{marginTop:12,"data-test-id":"lego-closeup-related-module-contents",width:"100%",children:[s&&Object(h.jsxs)(p.f,{alignItems:"center",display:"flex",justifyContent:"center",marginTop:4,children:[Object(h.jsx)(p.cb,{weight:"bold",children:s}),i&&Object(h.jsx)(p.f,{marginStart:1,children:Object(h.jsx)(Z.a,{size:"sm",isVerifiedMerchant:t,showVerifiedIdentity:o})})]}),Object(h.jsx)(p.f,{display:"flex",marginTop:4,justifyContent:"center",children:n.map((e,t)=>Object(h.jsx)(I.d,{viewType:3,loggingId:e.id,viewParameter:c,component:ae[a],auxData:{commerce_data:Object(q.a)(e)},slotIndex:t,children:Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{willChange:"transform"}},display:"flex",marginEnd:2!==t?2:0,overflow:"hidden",position:"relative",rounding:4,width:Q,children:Object(h.jsxs)(p.bb,{onTap:()=>(e=>{const t=Object(V.a)(l,e);Object(k.e)({component:ae[a],event_type:8948,view_type:3,view_parameter:c,object_id_str:e.id,clientTrackingParams:t,aux_data:{image_signature:e.image_signature,closeup_navigation_type:"click",cosmic_ray_count:"5"}}),d.push(`/pin/${e.id}/`,{trackingParams:l})})(e),children:[Object(h.jsx)(G,{id:e.id}),Object(h.jsx)(p.f,{position:"absolute",marginTop:2,marginStart:2,top:!0,children:Object(h.jsx)(X,{pinId:e.id,shouldRoundPrice:!0})})]})})},e.id))}),u&&Object(h.jsx)(p.f,{display:"flex",marginTop:4,marginBottom:4,justifyContent:"center",children:Object(h.jsx)(p.g,{onClick:e,size:"lg",text:u})})]})}var ee=n("qrav");function te({componentType:e,handleClick:t,isVerifiedMerchant:n,objects:i,showVerifiedBadge:r,showVerifiedIdentityBadge:a,storyAction:s,storyType:c,title:l,viewParameter:d,trackingParams:u}){const[p,m]=Object(o.useState)(!1);if(!i||!Array.isArray(i))return null;const b=i.filter(e=>"pin"===e.schema);if(b.length<3)return null;const f=Array.from(new Array(3)).map((e,t)=>b[t]);return Object(h.jsx)(ee.a,{options:{threshold:0},onVisibilityChange:t=>{const{intersectionRatio:n}=t[0];n>0&&!p&&(Object(k.e)({event_type:3400,view_type:3,view_parameter:d,component:e}),m(!0))},children:Object(h.jsx)(J,{handleClick:t,isVerifiedMerchant:n,pins:f,showVerifiedBadge:r,showVerifiedIdentityBadge:a,storyAction:s,storyType:c,title:l,viewParameter:d,trackingParams:u})})}var ne=n("/A17");const ie=()=>{};function oe({onRelatedPinsTitleEnter:e,onRelatedPinsTitleExit:t,relatedPinsTitleRef:n,title:i}){return i?Object(h.jsx)(o.Fragment,{children:Object(h.jsx)(p.f,{marginTop:12,marginBottom:2,ref:n,children:Object(h.jsx)(ne.a,{onEnter:e||ie,onExit:t||ie,children:Object(h.jsx)(p.cb,{size:"lg",align:"center",weight:"bold",children:i})})})}):null}const re=["related_domain_collage","related_modules_header","related_products_collage","related_products_feed_header"],ae={related_domain_collage:13327,related_products_collage:13176,related_products_feed_header:13176};var se=function(e){var t,n;const{onRelatedPinsTitleEnter:o,onRelatedPinsTitleExit:r,pin:a,relatedPinsTitleRef:s,searchQuery:c,slotIndex:l,storyId:d,trafficSource:u,viewType:p,viewParameter:m}=e,b=Object(L.h)(),f=Object(i.useSelector)(({stories:e})=>e[d]);if(!f)return null;const{action:g,content_ids:j,objects:x,story_type:y,title:{format:O},tracking_params:_}=f,v=ae[y];if("related_modules_header"===y||"related_products_feed_header"===y)return Object(h.jsx)(I.e,{auxData:{story_id:d,story_type:y},loggingId:d,objectIdStr:d,slotIndex:l,viewParameter:m,viewType:p,component:v,children:Object(h.jsx)(oe,{onRelatedPinsTitleEnter:o,onRelatedPinsTitleExit:r,relatedPinsTitleRef:s,title:O})});const{id:w}=a||{},{url:S}=g||{};if(!a||!w||!S)return null;const T=function(e,t){const n=e?"q="+e:null,i=t&&"unknown"!==t?"rs="+t:null;let o="";return n&&i?o=`?${n}&${i}`:!n&&i&&(o="?"+i),o}(c,u);let C=`${S}${T}`;"related_products_collage"===y&&(C=T?`/pin/${w}/visual-search/${T}source=shopping&tab=1`:`/pin/${w}/visual-search/?source=shopping&tab=1`);const E=(j||[]).map(e=>"pin:"+e).join("|");let P,A;if("related_domain_collage"===y){var D;const e=(null===(D=a.link_domain)||void 0===D?void 0:D.official_user)||{};P=e.is_verified_merchant,A=e.verified_identity}return Object(h.jsx)(I.e,{auxData:{content_ids:E,story_id:d,story_type:y},component:v,loggingId:d,objectIdStr:d,slotIndex:l,viewParameter:m,viewType:p,children:Object(h.jsx)(te,{componentType:v,handleClick:()=>{Object(k.h)({view_type:3,view_parameter:m,component:v,aux_data:{contentIds:E,story_id:d,story_type:y}}),b.push(C)},isVerifiedMerchant:P,objects:x,showVerifiedBadge:P||(null===(t=A)||void 0===t?void 0:t.verified),showVerifiedIdentityBadge:!P&&(null===(n=A)||void 0===n?void 0:n.verified),storyAction:g,title:O,viewParameter:m,trackingParams:_,storyType:y})})},ce=n("TR77");const le=["style_pivot","structured_search_bubble"];function de({auxData:e,fullWidth:t,onRelatedPinsTitleEnter:n,onRelatedPinsTitleExit:o,pin:a,relatedPinsTitleRef:s,slotIndex:c,storyId:l,viewType:d,viewParameter:u}){const b=Object(i.useSelector)(({stories:e})=>e[l]);if(!b||!b.story_type)return null;const{action:f,container_type:y,custom_properties:_,display_options:v,experience:w,story_type:S,title:T,objects:I}=b;if(t)return le.includes(S)&&0===v.num_columns_requested?Object(h.jsx)(p.f,{marginBottom:5,children:Object(h.jsx)(j.a,{auxData:e,pattern:[W.a.extra_small],slotIndex:c,storyId:l,viewType:d,viewParameter:u})}):S.startsWith("creator_spotlight_")?Object(h.jsx)(p.f,{marginBottom:5,children:Object(h.jsx)(P,{id:l})}):re.includes(S)?Object(h.jsx)(se,{onRelatedPinsTitleEnter:n,onRelatedPinsTitleExit:o,pin:a,relatedPinsTitleRef:s,storyId:l,slotIndex:c,viewParameter:u,viewType:d}):S.startsWith("related_articles")?Object(h.jsx)(z,{storyId:l,viewType:d,viewParameter:u}):S.startsWith("SKIN_TONE_FILTER_QUERIES")?Object(h.jsx)(x.a,{title:T}):null;if(0===c&&le.includes(S)&&0===v.num_columns_requested)return null;switch(y){case 56:return Object(h.jsx)(p.f,{padding:2,children:Object(h.jsx)(j.a,{slotIndex:c,storyId:l,viewType:d,viewParameter:u})})}switch(S){case"app_upsell":return Object(h.jsx)(A.a,{experience:w,eligibleIds:[w.experience_id],children:Object(h.jsx)(m,{})});case"feed_card_default":case"feed_card_video":return Object(h.jsx)(A.a,{experience:w,eligibleIds:[w.experience_id],isBackendExperience:!0,children:Object(h.jsx)(ce.b,{buttonAction:f.url,buttonCustomization:_.button_customization,buttonText:f.text,experienceId:w.experience_id,hideCompleteButton:_.hide_complete_button,imageAlt:_.image_alt,imageUrl:_.image,placementId:w.placement_id,storyType:S,titleText:T.format,titleTextColor:ce.a[v.title_text_color],titleTextCustomization:_.title_text_customization,videoPin:_.video_pin,videoPlaceholderImage:_.video_placeholder_image})});case"user_brand_story":case"user_color_story":case"general_shopping_upsell":return Object(h.jsx)(ce.b,{buttonAction:f.url,buttonText:f.text,imageAlt:_.image_alt,imageUrl:_.image,storyType:S,titleText:T.format,titleTextColor:ce.a[v.title_text_color]});case"user_brand_story_v1":return Object(h.jsx)(g,{buttonAction:f.url,buttonText:f.text,imageUrl:_.image,brands:I});case"user_color_story_v1":return Object(h.jsx)(O,{buttonAction:f.url,buttonText:f.text,colors:I});case"BUBBLE_ONE_COL":return Object(h.jsx)(p.f,{padding:2,children:Object(h.jsx)(j.a,{slotIndex:c,storyId:l,viewType:d,viewParameter:u})});case"social_seasonal_pin":return Object(h.jsx)(M,{slotIndex:c,storyId:l,viewType:d,viewParameter:u,size:290});case"search_product_collage_story":return Object(h.jsx)(r.a,{name:"mweb_search_product_collage_story",children:({anyEnabled:e})=>e&&Object(h.jsx)(U.a,{slotIndex:c,story:b,viewType:d,viewParameter:u})});case"pinner_authority":case"pinner_authority_unified":return Object(h.jsx)(N,{storyId:l,slotIndex:c});case"stela_in_flashlight_onecol":return Object(h.jsx)(R,{storyId:l,slotIndex:c});default:return null}}},Ido7:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("yweb"),o=n("eyT9"),r=n("n6mq"),a=n("nKUr");function s({text:e,icon:t}){const n=Object(i.c)();return Object(a.jsxs)(r.f,{alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:Object(o.e)()?"rgba(0, 0, 0, 0.7)":"rgba(255, 255, 255, 0.8)",zIndex:1}},display:"flex",margin:2,overflow:"hidden",position:"absolute",rounding:"pill",padding:2,height:24,top:!0,children:[t&&Object(a.jsx)(r.f,{marginEnd:1,children:Object(a.jsx)(r.w,{accessibilityLabel:n._("identifier that shows the pin type","pin.pincard.iconAccessibilityLabel","shows an icon with the pin type"),color:"darkGray",icon:t,inline:!0,size:12})}),Object(a.jsx)(r.cb,{inline:!0,size:"sm",weight:"bold",children:e})]})}},Iv9x:function(e,t){e.exports="https://s.pinimg.com/webapp/JA@2x-a57c5839.png"},"J/m7":function(e,t){e.exports="https://s.pinimg.com/webapp/MS@2x-fa38b8b6.png"},"K/ae":function(e,t,n){n.d(t,"a",(function(){return p}));var i=n("q1tI"),o=n("clxp"),r=n("ihsa"),a=n("g6r8"),s=n("n6mq"),c=n("nKUr");const l={},d=e=>{if(e)return l[e]&&l[e].screenWidth===window.innerWidth||(l[e]={screenWidth:window.innerWidth,cache:s.E.createMeasurementStore()}),l[e].cache};function u({flexible:e,gutterWidth:t,id:n,itemWidth:i,maxColumns:o,minColumns:r}){const a=n.replace(/\:/g,"\\:"),s=i+t;return`\n    .mobileGrid {\n      margin-left: auto;\n      margin-right: auto;\n    }\n\n    .mobileGrid .static {\n      position: absolute !important;\n      visibility: hidden !important;\n    }\n\n    ${Array.from({length:o+1-r},(e,t)=>t+r).map(n=>{const c=n===o?null:(n+1)*s-1;return`\n      @media (min-width: ${n===r?0:n*s}px) ${c?`and (max-width: ${c}px)`:""} {\n        #${a} .static:nth-child(-n+${n}) {\n          position: static !important;\n          visibility: visible !important;\n          float: left;\n          display: block;\n        }\n\n        ${e?`\n      #${a} .static {\n        width: calc(100% / ${n}) !important;\n      }\n    `:`\n      #${a} {\n        width: ${n*s}px;\n      }\n\n      #${a} .static {\n        padding: 0 ${t/2}px;\n        width: ${i}px !important;\n      }\n    `}\n      }\n    `}).join("")}\n  `}function p({cacheKey:e,columnWidth:t,comp:n,disableVirtualize:l,gutterWidth:p,id:h,layout:m,items:b,loadItems:f,minCols:g,scrollContainerRef:j,serverRender:x}){const y="desktop"!==Object(a.a)(),O=Object(i.useCallback)(()=>j&&j.current||window,[j]),_=Object(i.useCallback)(e=>Object(c.jsx)(o.a,{name:"MobileGridItem",children:Object(c.jsx)(n,{...e})}),[n]);return Object(c.jsxs)("div",{id:h,className:"mobileGrid",children:[x&&h&&Object(c.jsx)(r.a,{unsafeCSS:u({flexible:y,gutterWidth:p||0,id:h,itemWidth:t||236,maxColumns:b.length||16,minColumns:g||2})}),Object(c.jsx)(s.E,{columnWidth:t,comp:_,flexible:y,gutterWidth:p,layout:m,items:b,loadItems:f,measurementStore:d(e),minCols:g,scrollContainer:O,virtualize:!l})]})}},"K8G+":function(e,t,n){function i(e){var t,n;return(null===(t=window)||void 0===t||null===(n=t.performance)||void 0===n?void 0:n.getEntriesByType)&&window.performance.getEntriesByType(e)||[]}n.d(t,"a",(function(){return i}))},"L9+L":function(e,t){e.exports="https://s.pinimg.com/webapp/ES@2x-55483593.png"},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})}},LrH5:function(e,t,n){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var i=n("FZ8N");const o=(e,t)=>{i.b&&(e.style.outline="10px solid "+t,e.style.outlineOffset="-30px")},r=e=>(t,...n)=>{i.b&&console.log("string"==typeof t?`[PWT:${e}] ${t}`:t,...n)}},LvPn:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("FylZ"),o=n("pody"),r=n("nEAA");const a=({category:e,isDeferred:t,isExternal:n})=>[e].concat(t?["deferred"]:[]).concat(n?["external"]:[]).join("_");function s(e,t){const{category:n,timing:s,isDeferred:c,isExternal:l,isVisuallyCompleteRequired:d}=e;return s.responseEnd&&("image"!==n||d)?{name:a(e),id:Object(i.a)(),parentId:t,startTime:s.startTime,endTime:s.responseEnd,annotationMap:Object(o.a)(s),binaryAnnotationMap:{category:Object(r.d)(n),decodedBodySize:Object(r.b)(s.decodedBodySize||0),initiatorType:Object(r.d)(s.initiatorType),isDeferred:Object(r.a)(c),isExternal:Object(r.a)(l),name:Object(r.d)(s.name),nextHopProtocol:Object(r.d)(s.nextHopProtocol),transferSize:Object(r.b)(s.transferSize||0)}}:null}},MSUY:function(e,t,n){n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return I}));var i=n("q1tI"),o=n("/MKj"),r=n("Lr1Z"),a=n("yweb"),s=n("QAzJ"),c=n("n6mq"),l=n("nKUr");function d(e){const t=Object(a.c)(),{viewType:n,boardId:i,handleTouch:o}=e,d=Object(s.a)("mweb_board_modals")().anyEnabled,u=t._("Board","createMenuLinkButton.Create.Board.Label","label for creating a new board option"),p=t._("Section","createMenuLinkButton.Create.Section.Label","label for creating a new section option");return w.has(n)?Object(l.jsx)(r.a,{pressState:"background",onTouch:o,to:{pathname:"/board/create"},children:Object(l.jsx)(c.f,{paddingY:2,"data-test-id":"createMenuCreateBoardButton",children:d?Object(l.jsx)(c.v,{size:"sm",children:u}):Object(l.jsx)(c.cb,{weight:"bold",children:u})})}):5===n&&i?Object(l.jsx)(r.a,{to:`/board/${i}/create_section/`,pressState:"background",rounding:2,onTouch:o,children:Object(l.jsx)(c.f,{paddingY:2,"data-test-id":"addSectionButton",children:d?Object(l.jsx)(c.v,{size:"sm",children:p}):Object(l.jsx)(c.cb,{weight:"bold",children:p})})}):null}var u=n("EC67"),p=n("PLBO");function h({handleTouch:e}){const t=Object(a.c)(),n=Object(u.h)(),i=e=>({base64Image:e,method:p.b}),{anyEnabled:o}=Object(s.a)("mweb_board_modals")(),r=t._("Photo","createPinButton.Photo.Upload.Label","label to upload pin from camera roll photos");return Object(l.jsx)(c.bb,{tapStyle:"none",onTap:e,children:Object(l.jsxs)(c.f,{position:"relative",paddingY:2,children:[o?Object(l.jsx)(c.v,{size:"sm",children:r}):Object(l.jsx)(c.cb,{weight:"bold",children:r}),Object(l.jsx)("input",{id:"upload-pin",type:"file",accept:"image/*",onChange:e=>{const t=new FileReader;t.readAsDataURL(e.target.files[0]),t.onload=()=>{const e=t.result;n.push({pathname:`/pin/create/${p.b}/`,state:i(String(e))})}},style:{opacity:0,position:"absolute",top:"0px",height:"100%",width:"100%"}})]})})}var m=n("hLPq"),b=n("bcHz"),f=n("mp1x"),g=n("fv8A"),j=n("ykUP"),x=n("AGnR"),y=n("eTKx"),O=n("G/mG"),_=n("c50B");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 w=new Set([1,4]),S=e=>{const t=window&&window.innerWidth||0,n=e._("Enter a link to create a Pin, https://...","placeholder in text field where a user inputs a URL to create a Pin","placeholder in text field where a user inputs a URL to create a Pin"),i=e._("Enter a link, https://...","placeholder in text field where a user inputs a URL to create a Pin - short version, 30 char limit","placeholder in text field where a user inputs a URL to create a Pin - short version, 30 char limit");return t<380?i:n};class T extends i.PureComponent{constructor(...e){super(...e),v(this,"state",{createPinFromLinkUrl:"",showCreateModal:!1,showInlineTextEditCreatePin:!1,urlValidationError:null}),v(this,"createPinFromLinkInput",Object(i.createRef)()),v(this,"closeCreateModal",()=>{this.setState({showCreateModal:!1,showInlineTextEditCreatePin:!1}),this.props.updatePinBuilderInput({isInputOpen:!1,submittedLink:""})}),v(this,"clearValidationError",()=>{this.setState({urlValidationError:null})}),v(this,"openCreateModal",e=>{this.handleTouch(),this.props.requireAuthForLimitedLogin({fn:()=>this.setState({showCreateModal:!0}),modalHeader:Object(j.b)(this.props.i18n)})()}),v(this,"handleCreatePinFromLinkTouch",()=>{this.setState({showInlineTextEditCreatePin:!0}),this.props.updatePinBuilderInput({isInputOpen:!0})}),v(this,"handleLinkFieldChange",({value:e})=>{this.setState({createPinFromLinkUrl:e})}),v(this,"handlePinFromLinkFormSubmit",(e,t)=>{const{createPinFromLinkUrl:n}=this.state;e.preventDefault(),Object(_.r)({message:this.props.i18n._("Oops! Please enter a valid URL.","URL validation error message on Pin builder form","URL validation error message on Pin builder form")})(n,e=>this.handleUrlValidation(e,t))}),v(this,"handleTouch",()=>{const{viewType:e,elementType:t}=this.props;Object(x.h)({view_type:e,view_parameter:3106,element:t})}),v(this,"handleUrlValidation",(e,t)=>{const{errors:n}=e;if(n&&n.length>0)this.setState({urlValidationError:n[0]});else{this.setState({showInlineTextEditCreatePin:!1});const e=this.state.createPinFromLinkUrl;this.props.updatePinBuilderInput({submittedLink:e}),t.push({pathname:"/pin-builder/",state:{createPinFromLinkUrl:e}})}}),v(this,"renderCreatePinFromLinkOption",e=>{const{legoBoardModalsEnabled:t}=this.props,{createPinFromLinkUrl:n,showInlineTextEditCreatePin:i}=this.state,o=this.props.i18n._("Website","editPin.CreatePinFromUrl.Label","label for option to create a pin from a url"),r=t?46:60;return Object(l.jsx)(c.u,{alignItems:"center",height:r,justifyContent:"start",children:i?Object(l.jsx)("form",{onSubmit:t=>this.handlePinFromLinkFormSubmit(t,e),style:{width:"100%"},children:Object(l.jsxs)(c.f,{display:"flex",justifyContent:"between",position:"relative",children:[Object(l.jsxs)(c.f,{ref:this.createPinFromLinkInput,width:"100%",children:[this.renderErrorFlyout(),Object(l.jsx)(c.eb,{id:"create-pin-from-link",onChange:this.handleLinkFieldChange,onFocus:()=>this.setState({urlValidationError:null}),placeholder:S(this.props.i18n),size:"lg",value:n})]}),Object(l.jsx)(m.a,{accessibilityLabel:this.props.i18n._("Create Pin from entered link","navigation button to confirm user will create a Pin from a link they entered","navigation button to confirm user will create a Pin from a link they entered"),color:t?"darkGray":void 0,icon:"arrow-forward",onTouch:t=>this.handlePinFromLinkFormSubmit(t,e),size:"lg"})]})}):Object(l.jsx)(b.a,{onTouch:()=>this.handleCreatePinFromLinkTouch(),pressState:"none",children:Object(l.jsx)(c.f,{position:"relative",width:t?void 0:"100vw",children:t?Object(l.jsx)(c.v,{size:"sm",children:o}):Object(l.jsx)(c.cb,{weight:"bold",children:o})})})})}),v(this,"renderErrorFlyout",()=>{const{urlValidationError:e}=this.state;return e&&Object(l.jsx)(c.L,{anchor:this.createPinFromLinkInput.current,color:"red",idealDirection:"up",onDismiss:this.clearValidationError,size:"sm",children:Object(l.jsx)(c.f,{padding:3,width:"100%",children:Object(l.jsx)(c.cb,{align:"center",color:"white",weight:"bold",children:e})})})})}componentDidMount(){const{isInputOpen:e,submittedLink:t}=this.props;(e||t)&&this.setState({showCreateModal:!!e,showInlineTextEditCreatePin:!!e,createPinFromLinkUrl:t||""})}render(){const{bgColor:e,boardId:t,buttonPadding:n,i18n:o,iconButtonColor:r="gray",iconButtonSize:a="xl",legoBoardModalsEnabled:s,viewType:u}=this.props,{showCreateModal:p}=this.state;let b=this.props.i18n._("Add to section","heading in section create modal","heading in section create modal");w.has(u)?b=this.props.i18n._("Add a Pin or board","heading in profile create modal","heading in profile create modal"):5===u&&(b=this.props.i18n._("Add a Pin or section","heading in profile create modal","heading in profile create modal")||o._("Add to board","heading in board create modal"));const j=4===u?this.props.i18n._("Add to profile","editPin.AddToProfile.Modal.Header","heading in profile create modal"):b;return Object(l.jsxs)(i.Fragment,{children:[Object(l.jsx)(c.u,{alignItems:"center",justifyContent:"start",children:Object(l.jsx)(m.a,{accessibilityLabel:this.props.i18n._("Create a Pin or board","icon that opens model prompting user to create a new pin or board","icon that opens model prompting user to create a new pin or board"),bgColor:e,color:r,icon:"add",size:a,padding:n||1,onTouch:this.openCreateModal,testId:"createMenuCreateButton"})}),p&&Object(l.jsx)(f.a,{accessibilityCloseIconLabel:this.props.i18n._("close board and pin create modal","close modal that prompts user to create a new pin or board","close modal that prompts user to create a new pin or board"),heading:j,isOpen:this.state.showCreateModal,legoBoardModalsEnabled:s,onDismiss:this.closeCreateModal,type:"create_menu",children:Object(l.jsxs)(c.f,{direction:"column",display:"flex",padding:s?void 0:2,children:[s?Object(l.jsxs)(i.Fragment,{children:[Object(l.jsxs)(c.f,{paddingX:2,children:[Object(l.jsx)(c.cb,{children:this.props.i18n._("Create","editPin.Create.Section.Text","Section title to Create new things on Edit Pin add modal")}),Object(l.jsx)(g.a,{children:({history:e})=>Object(l.jsx)(i.Fragment,{children:this.renderCreatePinFromLinkOption(e)})}),Object(l.jsx)(h,{handleTouch:this.handleTouch})]}),164!==u&&Object(l.jsxs)(c.f,{marginTop:6,paddingX:2,children:[Object(l.jsx)(c.cb,{children:this.props.i18n._("Add","editPin.Section.Add.Text","Section Add title on Edit Pin add modal")}),Object(l.jsx)(d,{boardId:t,handleTouch:()=>{this.handleTouch(),this.closeCreateModal()},viewType:u})]})]}):Object(l.jsxs)(i.Fragment,{children:[Object(l.jsx)(d,{boardId:t,handleTouch:()=>{this.handleTouch(),this.closeCreateModal()},viewType:u}),Object(l.jsxs)(c.f,{direction:"column",display:"flex",height:"80%",marginTop:5,children:[Object(l.jsx)(c.cb,{children:this.props.i18n._("Pin","label above uploading a new pin option","label above uploading a new pin option")}),Object(l.jsxs)(c.f,{paddingX:2,children:[Object(l.jsx)(g.a,{children:({history:e})=>Object(l.jsx)(i.Fragment,{children:this.renderCreatePinFromLinkOption(e)})}),Object(l.jsx)(h,{handleTouch:this.handleTouch})]})]})]}),Object(l.jsx)(c.f,{display:"flex",justifyContent:"center",marginBottom:s?2:void 0,marginTop:7,children:Object(l.jsx)(c.g,{onClick:()=>this.closeCreateModal(),size:"lg",text:this.props.i18n._("Close","editPin.Modal.Close.Button","Button text to close modal on EditPin")})})]})})]})}}function I(e){const t=Object(a.c)(),n=Object(o.useDispatch)(),i=Object(s.a)("mweb_board_modals")().anyEnabled,{pinBuilder:r}=Object(o.useSelector)(e=>e.session),c=r&&r.isInputOpen,d=r&&r.submittedLink,u=Object(y.a)();return Object(l.jsx)(T,{...e,isInputOpen:c,legoBoardModalsEnabled:i,submittedLink:d,updatePinBuilderInput:e=>n(Object(O.b)(e)),i18n:t,requireAuthForLimitedLogin:u})}},Mstc:function(e,t,n){n.d(t,"a",(function(){return O}));var i=n("q1tI"),o=n("/MKj"),r=n("VGkx"),a=n("rYoy"),s=n("yweb"),c=n("HP5p"),l=n("4kAQ"),d=n("ulr2"),u=n("kEen"),p=n("OadL"),h=n("58KG"),m=n("Yjl2"),b=n("QAzJ"),f=n("n6mq"),g=n("EC67"),j=n("nKUr");const x=Object(i.lazy)(()=>Promise.all([n.e(364),n.e(717)]).then(n.bind(null,"cZ9y"))),y=Object(i.lazy)(()=>Promise.all([n.e(364),n.e(718)]).then(n.bind(null,"UWZR"))),O=new f.t(1);t.b=Object(c.a)(({activateSoundHapticExp:e,buttonText:t,clientTrackingParams:n,color:c="red",deeplinkUri:_,experience:v,fromSaveButtonContainer:w,inline:S=!0,isBounceAnimation:T,minWidth:I,onTouch:k,onUnsave:C,pinId:E,pinnedToBoardId:P,shape:A,shouldShowSavedButton:L,showRepinConfirmation:D,showToast:R,viewType:B,viewParameter:N,showSaveHandoffExperience:F})=>{var M;const U=Object(s.c)(),H=Object(o.useDispatch)(),z=Object(g.h)(),W=Object(g.i)().pathname.startsWith("/pin"),G=Object(o.useSelector)(({session:e})=>e.hasSavedUnauthPin),q=Object(o.useSelector)(({session:e})=>e.unauthSavePinId),V=null===(M=Object(o.useSelector)(e=>Object(p.i)(e)))||void 0===M?void 0:M.pin_count,Y=Object(o.useSelector)(({pins:e})=>e[E]),[K,$]=Object(i.useState)(!1),[X,Z]=Object(i.useState)(!1),Q=Object(b.a)("mweb_post_first_save_celebration"),J=()=>{H(Object(h.f)({history:z,i18n:U,onSuccess:()=>{v&&(H(Object(l.a)(v.placement_id,v.experience_id)),0===V&&w&&e&&e().anyEnabled&&setTimeout(()=>Object(m.d)(),3e3))},pinId:E,trackingParams:{clientTrackingParams:n,pinnedToBoardId:P},showRepinConfirmation:F&&!W?()=>{}:D,disableRepinAnimation:q===E,fromSaveButtonContainer:w,setShowPostSaveConfetti:$,setShowPostSaveConfettiHalfScreen:Z,activatePostFirstSaveCelebration:Q,pinCount:V})).catch(e=>R({isError:!0,text:e.message||U._("Sorry! Something went wrong on our end.","quickSave.toast.error.message","error during repin")}))},ee=Object(i.useRef)(null),te=F&&!G,ne=t=>{t.stopPropagation(),t.preventDefault(),k&&k(t),L?L&&C&&C():(J(),w&&e&&e().anyEnabled&&(Object(m.b)(),Object(m.e)()))};Object(i.useEffect)(()=>{te&&!ee.current&&(J(),H(Object(d.a)())),ee.current=te});const ie=()=>U._("Pin","quickSave.quickSaveButton.icon.accessibilityLabel","Pin accessibility label"),oe=()=>t||U._("Save","quickSave.quickSaveButton.buttonText","Auth mobile web save button for pin closeup");return G&&!W?null:Object(j.jsxs)(f.f,{"data-test-id":"save-button-mobile",zIndex:O,children:[K&&Object(j.jsx)(a.a,{children:Object(j.jsx)(x,{pinImages:Y.images})}),X&&Object(j.jsx)(a.a,{children:Object(j.jsx)(y,{pinImages:Y.images})}),_?Object(j.jsx)(u.b,{accessibilityLabel:ie(),color:c,customStyles:{padding:"14px 16px"},deeplinkUri:_,inline:S,isBounceAnimation:T,minHeight:48,minWidth:I,onTouch:ne,pressState:["compress","background"],shape:A,size:"lg",text:oe(),to:z.location.pathname,upsellType:"save",viewType:B,viewParameter:N}):Object(j.jsx)(r.a,{accessibilityLabel:ie(),color:c,customStyles:{padding:"14px 16px"},inline:S,isBounceAnimation:T,minHeight:48,minWidth:I,onTouch:ne,pressState:"compress",shape:A,size:"lg",text:oe()})]})})},NOhL:function(e,t){e.exports="https://s.pinimg.com/webapp/RO@2x-188b728d.png"},NQrK: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}));const i=e=>{const t=e.toString(16);return 1===t.length?"0"+t:t},o=(e,t,n)=>"#"+i(e)+i(t)+i(n),r=e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t&&[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]},a=.18,s=(e,t,n)=>.2126*(e/255)**2.2+.7151*(t/255)**2.2+.0721*(n/255)**2.2},NpKs:function(e,t,n){n.r(t),n.d(t,"HOMEFEED_FEED_KEY",(function(){return ve})),n.d(t,"HOMEFEED_PATHS",(function(){return we})),n.d(t,"PAGES_DELAY_NUX",(function(){return Se})),n.d(t,"DELAYED_NUX_TIME",(function(){return Te})),n.d(t,"HomePage",(function(){return De}));var i=n("q1tI"),o=n("/MKj"),r=n("eqwQ"),a=n("clxp"),s=n("i2lo"),c=n("hqnJ"),l=n("n6mq"),d=n("4kAQ"),u=n("wMN6"),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}const m=[];class b extends i.PureComponent{constructor(...e){super(...e),h(this,"dismissExperience",()=>{const{experience:e,dismissExperience:t}=this.props;e&&t&&t(e.placement_id,e.experience_id)}),h(this,"completeExperience",()=>{const{experience:e,completeExperience:t}=this.props;e&&t&&t(e.placement_id,e.experience_id)})}getHeroClass(e){return null}render(){const{experience:e}=this.props;if(!e||!m.includes(e.experience_id))return null;const t={...Object(u.c)(u.j)(e.display_data),experienceId:e.experience_id,handleComplete:this.completeExperience,handleDismiss:this.dismissExperience},n=this.getHeroClass(e.experience_id);return Object(p.jsx)(s.a,{experience:e,eligibleIds:m,children:Object(p.jsx)(a.a,{name:"ExperienceTopBar",children:Object(p.jsx)(i.Fragment,{children:Object(p.jsx)(l.f,{children:n&&Object(p.jsx)(n,{...t})})})})})}}var f=Object(o.connect)(null,e=>({completeExperience:(t,n)=>e(Object(d.a)(t,n)),dismissExperience:(t,n)=>e(Object(d.d)(t,n))}))(b),g=n("K/ae"),j=n("zAWC"),x=n("BVk3"),y=n("hFTz"),O=n("6adH"),_=n("ANjH"),v=n("RNo4"),w=n("EC67"),S=n("g6r8"),T=n("yweb"),I=n("SvRC");class k extends i.PureComponent{constructor(...e){var t,n,i;super(...e),i=({data:e,itemIdx:t})=>{const{board:n,history:i,location:o}=this.props;return Object(p.jsx)(j.a,{componentType:0,history:i,oneTapSave:this.viewerRole&&n&&{boardId:n.id}||void 0,location:o,pinId:e.id,trackingParams:e.trackingParams,slotIndex:t,viewParameter:3173,viewType:1})},(n="renderPin")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}get isOwner(){const{board:e,viewerId:t}=this.props;return!!e&&e.owner===t}get viewerRole(){const{board:e}=this.props;return this.isOwner?"owner":e&&e.collaborated_by_me?"collaborator":void 0}render(){const{board:e,deviceType:t,location:n}=this.props,i=Object(v.l)(n.search),o=i.from_news_id,r=i.ideas_referrer;return e?Boolean(e.should_show_more_ideas)&&Object(p.jsx)(y.a,{component:3173,children:Object(p.jsx)(x.a,{name:"BoardContentRecommendationResource",options:{type:e.type,id:e.id,__track__from_news_id:o,__track__referrer:r},selector:t=>({recommendationFeed:t.feeds["recommendation-feed:"+e.id]?t.feeds["recommendation-feed:"+e.id].reduce((e,n)=>("story"===n.type&&(e=e.concat([t.stories[n.id]])),"pin"===n.type&&(e=e.concat([n])),e),[]):[]}),children:({selected:e,fetchMore:n,isFetching:i})=>{const{pins:o}=(e.recommendationFeed||[]).reduce(({pins:e},t)=>("pin"===t.type&&(e=e.concat([t])),{pins:e}),{pins:[]});return o.length?Object(p.jsx)(l.f,{marginStart:I.b,marginEnd:I.b,marginTop:Object(I.d)({isDesktop:"desktop"===t}),children:Object(p.jsx)(g.a,{comp:this.renderPin,items:o,loadItems:n,minCols:2})}):Object(p.jsx)(l.f,{paddingY:2,children:Object(p.jsx)(l.U,{accessibilityLabel:this.props.i18n._("Loading recommendations","accessibility label for the loading spinner on more ideas tab","accessibility label for the loading spinner on more ideas tab"),show:i})})}})}):null}}var C=Object(_.compose)(w.l,O.a,Object(o.connect)((e,{boardId:t})=>({board:e.boards[t],viewerId:e.session.userId})))((function(e){const t=Object(S.a)(),n=Object(T.c)();return Object(p.jsx)(k,{...e,i18n:n,deviceType:t})})),E=n("/0j8");function P({history:e,paddingBottomPercentage:t="50%",pinIds:n}){const i=Math.min(n.length,3),o=n.slice(0,i);return Object(p.jsx)(l.f,{column:12,position:"relative",children:Object(p.jsx)(l.D,{rounding:2,children:Object(p.jsx)(l.f,{dangerouslySetInlineStyle:{__style:{paddingBottom:t}},position:"relative",children:Object(p.jsx)(l.f,{display:"flex",position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:o.map((t,n)=>Object(p.jsx)(l.f,{color:"darkWash",column:4,dangerouslySetInlineStyle:{__style:{marginRight:n!==i-1?1:0}},position:"relative",children:Object(p.jsx)(l.bb,{fullHeight:!0,fullWidth:!0,onTap:()=>{(t=>{const n="/pin/"+t;e&&e.push({pathname:n})})(t)},children:Object(p.jsx)(E.a,{id:t})})},n))})})})})}var A=n("9SMi");function L({history:e,storyId:t}){const n=Object(o.useDispatch)(),{copy:r,custom_properties:a,experience:s,id:c,objects:u,story_type:h}=Object(o.useSelector)(({stories:e})=>e[t]);if(Object(i.useEffect)(()=>{"landing_page"===h&&(e=>{n(Object(d.o)(e))})(s)},[]),"landing_page"!==h)return null;const{button_text:m,subtitle_text:b,title_text:f}=r,g=()=>{(e=>{n(Object(A.a)(e))})(c),(e=>{n(Object(d.b)(e))})(s)};return Object(p.jsxs)(l.f,{paddingX:2,paddingY:5,children:[Object(p.jsx)(l.v,{align:"center",overflow:"normal",size:"sm",children:f}),Object(p.jsx)(l.f,{marginTop:1,children:Object(p.jsx)(l.cb,{align:"center",overflow:"normal",size:"md",children:b})}),Object(p.jsx)(l.f,{paddingY:4,children:Object(p.jsx)(l.bb,{onTap:g,children:Object(p.jsx)(P,{history:e,paddingBottomPercentage:"45%",pinIds:u.map(({id:e})=>e)})})}),Object(p.jsx)(l.u,{alignItems:"stretch",justifyContent:"center",children:Object(p.jsx)(l.g,{onClick:()=>{g(),e.push(a.path)},size:"lg",text:m})})]})}var D=n("Wjv+"),R=n("mp1x"),B=n("ihsa"),N=n("U1vm");function F(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),F(this,"onButton1Click",e=>{if(!e){const{dismissExperience:e,experience:t}=this.props;t&&t.placement_id&&t.experience_id&&e(t.placement_id,t.experience_id)}}),F(this,"onButton2Click",e=>{if(1===e||2===e){const{completeExperience:e,experience:t}=this.props;t&&t.placement_id&&t.experience_id&&e(t.placement_id,t.experience_id)}}),F(this,"isExternalLink",e=>e.startsWith("https://")||e.startsWith("http://"))}render(){const{experience:e}=this.props;if(!e||2!==e.type||!e.display_data)return null;const{background_color_mweb:t,button1_color_mweb:n,button1_text:i,button1_uri:o,button2_color_mweb:r,button2_text:a,button2_uri:s,complete_action:c,detailed_text:d,detailed_text_with_links:u,detailed_text_align:h,primary_color_mweb:m,title_text:b,title_text_align:f}=e.display_data;return Object(p.jsxs)(l.f,{dangerouslySetInlineStyle:t?{__style:{backgroundColor:t||"darkGray"}}:null,color:t?null:"darkGray",paddingX:6,paddingY:6,marginBottom:3,rounding:4,children:[b&&Object(p.jsx)(l.cb,{color:m||"white",overflow:"normal",weight:"bold",align:f||"left",children:Object(p.jsx)(l.f,{dangerouslySetInlineStyle:{__style:{fontSize:"20px"}},children:b})}),(u||d)&&Object(p.jsxs)(l.cb,{color:m||"white",overflow:"normal",align:h||"left",children:[Object(p.jsx)(B.a,{unsafeCSS:"\n                  .nag-text a {\n                    color: white;\n                    text-decoration: underline;\n                  }"}),Object(p.jsx)("div",{className:"nag-text",style:{marginTop:"8px"},dangerouslySetInnerHTML:{__html:u||d}})]}),Object(p.jsxs)(l.f,{display:"flex",justifyContent:"between",marginTop:4,marginStart:-2,marginEnd:-2,children:[i&&Object(p.jsx)(l.f,{paddingX:1,column:6,flex:"grow",children:o?Object(p.jsx)(N.a,{accessibilityLabel:i,color:n||"transparent",text:i,to:o,external:this.isExternalLink(o),shape:"pill"}):Object(p.jsx)(l.g,{fullWidth:!0,color:n||"transparent",onClick:()=>this.onButton1Click(o),text:i})}),a&&Object(p.jsx)(l.f,{paddingX:1,column:6,flex:"grow",children:s?Object(p.jsx)(N.a,{accessibilityLabel:a,color:r||"white",text:a,onTouch:()=>this.onButton2Click(c),to:s,external:this.isExternalLink(s),shape:"pill"}):Object(p.jsx)(l.g,{fullWidth:!0,color:r||"white",onClick:()=>this.onButton2Click(c),text:a})})]})]})}}var U=Object(_.compose)(Object(o.connect)(null,e=>({completeExperience:(t,n)=>e(Object(d.a)(t,n)),dismissExperience:(t,n)=>e(Object(d.d)(t,n))})),w.l)(M),H=n("Bb4+"),z=n("o+5w"),W=n("lnDX"),G=n("eOdZ"),q=n("rYoy"),V=n("OadL"),Y=n("qpbZ"),K=n("TXO6");function $(){const e=Object(T.c)(),t=Object(o.useSelector)(e=>e),n=Object(V.i)(t);return n?Object(p.jsxs)(l.f,{color:"white",paddingX:5,paddingY:8,width:"100%",children:[Object(p.jsx)(l.f,{marginBottom:2,children:Object(p.jsx)(l.cb,{align:"center",children:Object(K.d)(n)?Object(Y.b)(e._("Welcome {{firstName}}!","SaveEducationExperience.WelcomeNewUserText","Welcome new user message"),{firstName:n.first_name}):Object(Y.b)(e._("Welcome back {{firstName}}!","SaveEducationExperience.WelcomeText","Welcome back user message"),{firstName:n.first_name})})}),Object(p.jsx)(l.v,{align:"center",size:"sm",children:Object(K.d)(n)?e._("Your feed gets better the more you save. So when you see something you like, save it!","SaveEducationExperience.Education.NewUser","Educating new users on the benefits of saving pins"):e._("Get back in by savings ideas that inspire you. The more you save the better it gets","SaveEducationExperience.Education","Educating users on the benefits of saving pins")})]}):null}var X=n("fM3H"),Z=n("UuYX");const Q=new l.t(5);function J({experience:e}){const t=Object(T.c)(),n=Object(o.useDispatch)(),[r,a]=Object(i.useState)(0);Object(i.useEffect)(()=>{let t;a(1);const i=setTimeout(()=>{a(0),t=setTimeout(()=>{n(Object(d.a)(e.placement_id,e.experience_id))},500)},6e3);return()=>{clearTimeout(i),clearTimeout(t),Object(I.e)("homefeed")}},[n,e,a]);const s={animationData:X,loop:!0,autoplay:!0},{animationContainerRef:c}=Object(Z.a)(s);return Object(p.jsxs)(l.f,{color:"white",opacity:r,position:"relative",zIndex:Q,dangerouslySetInlineStyle:{__style:{transition:"opacity 0.3s ease",height:"100vh",width:"100vw"}},children:[Object(p.jsx)(B.a,{unsafeCSS:"@keyframes slideUp {\n  0% {\n    transform: translateY(60px);\n    opacity: 0;\n  }\n  33% {\n    transform: translateY(40px);\n    opacity: 0;\n  }\n  90% {\n    transform: translateY(-2px);\n    opacity: 1;\n  }\n  100% {\n    transform: translateY(0);\n    opacity: 1;\n  }\n}"}),Object(p.jsx)(l.f,{ref:c}),Object(p.jsx)(l.f,{display:"flex",justifyContent:"center",position:"absolute",width:"100%",dangerouslySetInlineStyle:{__style:{animationName:"slideUp",animationDuration:"1s",animationTimingFunction:"ease-in-out",top:"33%"}},children:Object(p.jsx)(l.v,{align:"center",size:"md",children:t._("Nice! Keep saving to get better and better ideas in your feed.","SaveImproveHFEducation.Message","Education for users letting them know saving Pins improves their homefeed.")})}),Object(p.jsxs)(l.f,{display:"flex",direction:"column",alignItems:"center",position:"absolute",width:"100%",dangerouslySetInlineStyle:{__style:{bottom:"48px"}},children:[Object(p.jsx)(l.f,{paddingY:4,children:Object(p.jsx)(l.U,{accessibilityLabel:t._("Updating feed","SaveImproveHFEducation.Spinner.AccessibilityLabel","Accessibility label on a spinner"),show:!0})}),Object(p.jsx)(l.cb,{size:"lg",children:t._("We’re updating your home feed...","SaveImproveHFEducation.LoadingMessage","Loading message on homefeed takeover experience")})]})]})}var ee=n("Ptwp"),te=n("l+Ya"),ne=n("28DW"),ie=n("jpTf"),oe=n("fgXV"),re=n("QtD7"),ae=n("r8+8"),se=n("vtuW"),ce=n("3/Bf"),le=n("9hhy"),de=n("5SBu"),ue=n("2COb"),pe=n("ulr2"),he=n("nwTc"),me=n("QAzJ"),be=n("pivO"),fe=n("44UH"),ge=n("xfna"),je=n("pE5B"),xe=n("kUgr"),ye=n("F2ZA"),Oe=n("0G5S");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 ve="homefeed",we=new Set(["/","/today"]),Se=1.5,Te="DELAYED_NUX_TIME",Ie=Object(r.a)({feedKey:ve,trafficSource:"feed_home",resourceName:"UserHomefeedResource",resourceOptions:()=>({field_set_key:"mobile_grid_item",prepend:!1,in_nux:Object(o.useSelector)(({session:e})=>e.firstHomeFeedRequestAfterNux)}),feedItemProps:e=>({viewParameter:92,viewType:1,onFeedItemClick:()=>{e.onFeedItemClick&&e.onFeedItemClick()}}),pullToRefresh:!0}),ke=Object(i.lazy)(()=>n.e(612).then(n.bind(null,"VEJH"))),Ce=Object(i.lazy)(()=>n.e(593).then(n.bind(null,"vWH5"))),Ee=Object(i.lazy)(()=>Promise.all([n.e("routes-NuxContainerPage"),n.e(608)]).then(n.bind(null,"DTta"))),Pe=Object(i.lazy)(()=>n.e(611).then(n.bind(null,"Igo8"))),Ae={911373384406:!1,924581335376:!1,895298746787:!1,944938374183:!1,922773544354:!1},Le=e=>{var t;return Object(xe.f)(null===(t=e.experience)||void 0===t?void 0:t.experience_id)&&!Object(Oe.a)(Te,0)&&e.isIndiaDelayNuxEnabledAndActivate()};class De extends i.PureComponent{constructor(e){var t;if(super(e),_e(this,"state",{...Object(xe.a)(),currentTabIndex:"number"==typeof this.props.selectedTabIndex?this.props.selectedTabIndex:502530===(null===(t=this.props.experience)||void 0===t?void 0:t.experience_id)?je.a+1:je.a,delayNux:Le(this.props),preparingGenderAndTopics:Le(this.props),showNuxWelcome:!1,showUnlinkTokenExpiredModal:!1}),_e(this,"shouldShowTodayTab",!1),_e(this,"updatingGenderAndTopics",!1),_e(this,"currInnerHeight",0),_e(this,"claimReferral",e=>{Object(ne.a)("mweb.partner.referral.claim.attempt");const t=le.a.getData();G.d.create("ReferralClaimResource",{referralCode:t,receiverUserId:e}).callUpdate().then(()=>{le.a.setSenderOfferClaimed(),Object(ne.a)("mweb.partner.referral.claim.success"),this.props.showToast({duration:5e3,text:this.props.i18n._("You’ve claimed an offer. Launch ads to get started.","business_hub.offer_toast.success","Toast indicating a referral offer was successfully claimed"),href:"/business/install_app"})}).catch(()=>{le.a.resetStatus(),Object(ne.a)("mweb.partner.referral.claim.error"),this.props.showToast({isError:!0,duration:5e3,text:this.props.i18n._("Sorry, you don’t qualify for this offer","business_hub.offer_toast.error","Toast indicating a referral offer could not be claimed")})}),Le(this.props)&&window.removeEventListener("scroll",this.onScroll)}),_e(this,"onScroll",()=>{!this.updatingGenderAndTopics&&window.pageYOffset>window.innerHeight*Se&&this.cancelDelayedNux()}),_e(this,"cancelDelayedNux",()=>{this.updatingGenderAndTopics=!0,Object(Oe.c)(Te,(new Date).getTime()),this.props.updateTopics(Ae).then(()=>{this.props.saveGender("unspecified",()=>{this.setState({delayNux:!1},()=>{this.updatingGenderAndTopics=!0}),setTimeout(()=>{this.setState({showNuxWelcome:!1})},1e3)})})}),_e(this,"onFeedItemClick",()=>{this.cancelDelayedNux()}),_e(this,"renderRenux",()=>{const{experience:e,viewedImages:t}=this.props,{extraPlpImages:n}=this.state,i=t,o=i.concat(n.filter(e=>!i.includes(e)));return e?Object(p.jsx)(a.a,{name:"SafeSuspense_LoadingSpinner",children:Object(p.jsx)(q.a,{fallback:Object(p.jsx)(D.a,{accessibilityLabel:this.props.i18n._("Loading experience","loading experience spinner","loading experience spinner")}),children:Object(p.jsx)(ke,{experience:e,extraImageInfo:o})})}):null}),e.inIndiaDelayNuxGroup&&this.state.delayNux){const t=[new Promise(t=>e.saveGender("male",()=>t())),e.submitTopics(Object.keys(Ae))];Promise.all([t]).then(()=>{this.setState({preparingGenderAndTopics:!1})}),setTimeout(()=>{this.setState({showNuxWelcome:!0})},2e3)}}static getDerivedStateFromProps(e){const{selectedTabIndex:t,location:{pathname:n}}=e;return!t&&n.startsWith("/today")?{currentTabIndex:je.a+1}:"number"==typeof t?{currentTabIndex:t}:null}componentDidMount(){var e,t;const{currentUserId:n,dispatchViewedSharedPins:i,isPartner:o,locale:r,pwtStaticContext:a,i18n:s,isAuthenticated:c,showToast:l,userCountry:d}=this.props,{sharedPinData:u}=this.state;Object(ue.a)(!1),Object(ee.a)(),u&&Object.keys(u).length>0&&i(u),o&&n&&le.a.shouldClaimReferral()&&this.claimReferral(n),c&&Object(ce.d)({appLoadName:"home_feed_pinteractive",clientNavName:"home_feed_render"},a);const{isTodayTabEnabledAndActivate:p,showQuickSave:h,location:m}=this.props;this.shouldShowTodayTab=!h&&Object(ye.h)(d,r)&&p(),Le(this.props)&&window.addEventListener("scroll",this.onScroll),null!==(e=m.state)&&void 0!==e&&e.unlinkTokenInvalid&&this.setState({showUnlinkTokenExpiredModal:!0}),null!==(t=m.state)&&void 0!==t&&t.showError&&l({duration:5e3,isError:!0,text:s._("We can’t find that idea! Try searching for one just like it.")})}render(){const{experience:e,history:t,homefeed:n,inIndiaDelayNuxGroup:o,isAuthenticated:r,isPartner:d,location:u,unauthSavePinId:h,selectedTabBoardId:m,showQuickSave:b,tabBoards:g}=this.props,{currentTabIndex:j,delayNux:x,preparingGenderAndTopics:O,showNuxWelcome:_,showUnlinkTokenExpiredModal:w}=this.state,S=this.shouldShowTodayTab&&j===je.a+1,T=Object(v.l)(u.search),I=T&&T.boardId||m;let k=null;if(e&&!x)switch(e.experience_id){case 40002:case 10105:if(k=Object(p.jsx)(a.a,{name:"SafeSuspense_HomePage_Nux",children:Object(p.jsx)(q.a,{fallback:Object(p.jsx)(D.a,{accessibilityLabel:this.props.i18n._("Loading new user education","Loading spinner","Loading spinner")}),children:d?Object(p.jsx)(Pe,{experience:e}):Object(p.jsx)(i.Fragment,{children:o?Object(p.jsx)(R.a,{isOpen:!0,hideCloseIcon:!0,type:"nux-modal-on-hf",isLegoModal:!0,isSlideUp:!0,children:Object(p.jsx)(Ee,{experience:e,refreshFeedOnComplete:!0,inMobileModal:!0})}):Object(p.jsx)(Ee,{experience:e})})})}),o)break;return k;case 500450:return this.renderRenux();case 500681:return Object(p.jsx)(a.a,{name:"SafeSuspense_HomePage_ContactUpdate",children:Object(p.jsx)(q.a,{fallback:Object(p.jsx)(D.a,{accessibilityLabel:this.props.i18n._("Loading experience","loading experience spinner","loading experience spinner")}),children:Object(p.jsx)(Ce,{})})});case 503117:return Object(p.jsx)(J,{experience:e})}return Object(p.jsx)(z.a,{viewType:1,viewParameter:92,children:Object(p.jsx)(y.a,{view:1,viewParameter:92,children:Object(p.jsxs)(H.b,{dataLayoutShiftBoundaryId:"AuthHomePageContainer",hasFixedHeader:!0,children:[(!b&&!(null==g||!g.length)||this.shouldShowTodayTab)&&Object(p.jsx)(ae.d,{noPadding:!0,hideOnScroll:r,overrideTop:0,children:Object(p.jsx)(l.f,{paddingY:1,children:Object(p.jsx)(je.b,{tabBoards:g||[],currentTabIndex:j,currentBoardId:I,shouldShowTodayTab:this.shouldShowTodayTab})})}),g&&g.length&&I&&j!==je.a?Object(p.jsx)(C,{boardId:I}):S?Object(p.jsx)(te.a,{numDaysToFetch:ye.a}):Object(p.jsxs)(i.Fragment,{children:[Object(p.jsx)(c.a,{experience:e}),Object(p.jsx)(s.a,{experience:e,eligibleIds:[500684,500683,500726,500866,500735,500833,501182,501275,501385,501358,501908,501909,110002,110001,503291],children:Object(p.jsx)(U,{experience:e})}),Object(p.jsx)(f,{experience:e}),b&&!h&&Object(p.jsx)($,{}),Array.isArray(n)&&n.length>0&&"story"===n[0].type&&Object(p.jsx)(l.f,{marginStart:-2,marginEnd:-2,marginTop:-1,marginBottom:1,children:Object(p.jsx)(L,{history:t,storyId:n[0].id})}),o?!O&&Object(p.jsxs)(i.Fragment,{children:[k,Object(p.jsx)(Ie,{onFeedItemClick:this.onFeedItemClick})]}):Object(p.jsx)(Ie,{})]}),_&&Object(p.jsx)(R.a,{isLegoModal:!0,allowScrolling:!0,disableMask:!0,isOpen:!0,isSlideUp:!0,onDismiss:()=>{},hideCloseIcon:!0,type:"nux_intro_peak_out",children:Object(p.jsxs)(l.f,{paddingY:7,paddingX:3,display:"flex",direction:"column",alignItems:"center",children:[Object(p.jsx)(l.v,{size:"sm",children:this.props.i18n._("Welcome to Pinterest","nux hf first welcome title","nux hf first welcome title")}),Object(p.jsx)(l.f,{maxWidth:"330px",marginTop:2,children:Object(p.jsx)(l.cb,{size:"md",align:"center",children:this.props.i18n._("Explore ideas and images from all over the web, save ideas and discover new interests.","nux hf first welcome message","nux hf first welcome message")})}),Object(p.jsx)(l.f,{marginTop:4,children:Object(p.jsx)(l.g,{fullWidth:!0,color:"red",onClick:this.cancelDelayedNux,type:"button",text:this.props.i18n._("Get started","nux hf first welcome message cta","nux hf first welcome message cta")})})]})}),w&&Object(p.jsx)(ie.a,{onDismiss:()=>{t.replace("/"),this.setState({showUnlinkTokenExpiredModal:!1})}})]})})})}}const Re=e=>{const t=Object(T.c)(),{experience:n,history:i,location:o,pwtStaticContext:r}=e,a=Object(fe.b)(null==n?void 0:n.experience_id);return Object(p.jsx)(De,{...e,experience:n,history:i,i18n:t,location:o,pwtStaticContext:r,showQuickSave:a})},Be=Object(V.a)("homefeed-more-ideas-tabs"),Ne=[],Fe=Object(_.compose)(w.l,Object(o.connect)(e=>{const{feeds:{homefeed:t},pins:n,homefeedTabUI:{activeTabBoardId:i,activeTabIndex:o},session:{isAuthenticated:r,locale:a,twaType:s,viewedImages:c,unauthSavePinId:l}}=e,d=Object(V.i)(e);return{currentUserId:d?d.id:null,homefeed:t,isAuthenticated:r,isNewUser:Object(K.d)(d),isPartner:!!(d||{}).is_partner,locale:a,pins:n,selectedTabBoardId:i,selectedTabIndex:o,viewedImages:c||[],unauthSavePinId:l,userCountry:d&&d.country||"",twaType:s}},e=>({dispatchViewedSharedPins:t=>e(Object(pe.C)(t)),isTodayTabEnabledAndActivate:()=>["enabled","employees"].includes(e(Object(re.a)("mweb_today_tab_v1"))),isIndiaDelayNuxEnabledAndActivate:()=>(e(Object(re.a)("mweb_india_delay_nux"))||"").startsWith("enabled"),saveGender:(t,n)=>e(Object(de.h)("gender",t.toLowerCase(),n,()=>{})),submitTopics:t=>e(Object(d.j)(t,[],!1)),updateTopics:t=>e(Object(he.f)(t))})),Object(oe.a)({name:"MoreIdeasTabsBoardsResource",key:"moreIdeasTabsBoardsResource",options:()=>({redux_normalize_feed:!0}),mapState:e=>{const t=(Be(e)||Ne).map(t=>e.boards[t.id]),n=Object(V.i)(e),i=!!(n||{}).is_partner;return{isNewUser:Object(K.d)(n),isPartner:i,tabBoards:t}}}),O.a)(e=>{const t=Object(ge.c)(),n=Object(w.h)(),i=Object(w.i)(),o="true"===Object(se.a)("completedMiniRenux"),r=Object(me.a)("mweb_india_delay_nux")({dangerouslySkipActivation:!0}).anyEnabled,a=Object(be.b)({id:40001,extraContext:o?{completed_mini_renux:o}:void 0,shouldUsePlacedExperience:!1});return Object(p.jsx)(W.a,{surface:"homefeed",measureGridVisuallyComplete:!0,children:Object(p.jsx)(Re,{...e,experience:a,history:n,location:i,pwtStaticContext:t,inIndiaDelayNuxGroup:r})})});t.default=Fe},O0mV:function(e,t){e.exports="https://s.pinimg.com/webapp/NL@2x-d31d4a18.png"},ONNR:function(e,t,n){n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return T})),n.d(t,"d",(function(){return k}));var i,o,r,a,s=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},l=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},d=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},u=function(e,t,n){var i;return function(o){t.value>=0&&(o||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},p=-1,h=function(){return"hidden"===document.visibilityState?0:1/0},m=function(){l((function(e){var t=e.timeStamp;p=t}),!0)},b=function(){return p<0&&(p=h(),m(),d((function(){setTimeout((function(){p=h(),m()}),0)}))),{get firstHiddenTime(){return p}}},f=function(e,t){var n,i=b(),o=s("FCP"),r=function(e){"first-contentful-paint"===e.name&&(l&&l.disconnect(),e.startTime<i.firstHiddenTime&&(o.value=e.startTime,o.entries.push(e),n(!0)))},a=performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],l=a?null:c("paint",r);(a||l)&&(n=u(e,o,t),a&&r(a),d((function(i){o=s("FCP"),n=u(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-i.timeStamp,n(!0)}))}))})))},g=!1,j=-1,x=function(e,t){g||(f((function(e){j=e.value})),g=!0);var n,i=function(t){j>-1&&e(t)},o=s("CLS",0),r=0,a=[],p=function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1];r&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,a.push(e)):(r=e.value,a=[e]),r>o.value&&(o.value=r,o.entries=a,n())}},h=c("layout-shift",p);h&&(n=u(i,o,t),l((function(){h.takeRecords().map(p),n(!0)})),d((function(){r=0,j=-1,o=s("CLS",0),n=u(i,o,t)})))},y={passive:!0,capture:!0},O=new Date,_=function(e,t){i||(i=t,o=e,r=new Date,S(removeEventListener),v())},v=function(){if(o>=0&&o<r-O){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+o};a.forEach((function(t){t(e)})),a=[]}},w=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){_(e,t),o()},i=function(){o()},o=function(){removeEventListener("pointerup",n,y),removeEventListener("pointercancel",i,y)};addEventListener("pointerup",n,y),addEventListener("pointercancel",i,y)}(t,e):_(t,e)}},S=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,w,y)}))},T=function(e,t){var n,r=b(),p=s("FID"),h=function(e){e.startTime<r.firstHiddenTime&&(p.value=e.processingStart-e.startTime,p.entries.push(e),n(!0))},m=c("first-input",h);n=u(e,p,t),m&&l((function(){m.takeRecords().map(h),m.disconnect()}),!0),m&&d((function(){var r;p=s("FID"),n=u(e,p,t),a=[],o=-1,i=null,S(addEventListener),r=h,a.push(r),v()}))},I=new Set,k=function(e,t){var n,i=b(),o=s("LCP"),r=function(e){var t=e.startTime;t<i.firstHiddenTime&&(o.value=t,o.entries.push(e)),n()},a=c("largest-contentful-paint",r);if(a){n=u(e,o,t);var p=function(){I.has(o.id)||(a.takeRecords().map(r),a.disconnect(),I.add(o.id),n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,p,{once:!0,capture:!0})})),l(p,!0),d((function(i){o=s("LCP"),n=u(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-i.timeStamp,I.add(o.id),n(!0)}))}))}))}}},Og0o:function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));const i="closeupImage",o=()=>{if(!document.querySelector)return null;const e=document.querySelector('head>link[rel="preload"][as="image"][href^="https://i.pinimg.com/"]');return e instanceof HTMLLinkElement?e.href:null}},PLBO:function(e,t,n){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));const i="uploaded",o="pinbuilder"},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}))},QIyF:function(e,t,n){var i=n("Kz5y");e.exports=function(){return i.Date.now()}},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})}},QwGr:function(e,t,n){t.a=function(e){if(e){const t=e.shopping_flags||[],n={pin_is_shop_the_look:t.includes(2),is_available:t.includes(1),is_product_pin_v2:t.includes(5),is_rich_product_pin:t.includes(6)};return JSON.stringify(n)}}},Ryq3:function(e,t){e.exports="https://s.pinimg.com/webapp/RO@2x-112e3f0c.png"},S1kg:function(e,t){e.exports="https://s.pinimg.com/webapp/PT@2x-1cf70049.png"},SBn3:function(e,t,n){var i=n("g6r8"),o=n("n6mq"),r=n("lIsI"),a=n("nKUr");t.a=({children:e,roundedForLargeDevice:t})=>{const n="phone"!==Object(i.a)()&&t;return Object(r.c)()?Object(a.jsx)(o.f,{marginStart:-r.a,marginEnd:-r.a,rounding:n?6:void 0,overflow:n?"hidden":void 0,children:Object(a.jsx)(r.b,{value:!1,children:e})}):e}},"SW+8":function(e,t,n){n.d(t,"a",(function(){return c}));var i=n("q1tI"),o=n("/MKj"),r=n("ihsa"),a=n("n6mq"),s=n("nKUr");const c=2500,l={__style:{right:"-105px"}},d={__style:{animationName:"SavePin_AnimateIn, SavePin_CircleAnimateOut",animationDuration:"0.3s, 0.25s",animationDelay:"0.5s, 1.3s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out",backgroundColor:"rgba(255, 255, 255, 0.6)"}},u={__style:{animationName:"SavePin_AnimateIn, SavePin_AnimateOut",animationDuration:"0.3s, 0.35s",animationDelay:"0.5s, 1.55s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out",border:"4px solid white"}},p={__style:{animationName:"SavePin_NavButtonAnimation",animationDuration:"0.8s",animationDelay:"1.65s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out"}};t.b=Object(i.memo)(({children:e})=>{const t=Object(o.useSelector)(({pins:e,session:t,users:n})=>{const i=n[t.userId].last_repin_id;return i?e[i]:null}),n=Object(o.useSelector)(({session:e})=>e.isShowingRepinAnimation);if(!t||!n)return e;const{images:i}=t,{height:c,width:h,url:m}=(null==i?void 0:i["136x136"])||(null==i?void 0:i["236x"])||{};return Object(s.jsxs)(a.u,{alignItems:"stretch",flex:"grow",justifyContent:"center",children:[Object(s.jsx)(r.a,{unsafeCSS:"\n@keyframes SavePin_AnimateIn {\n  from {\n    transform: scale(0.0);\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n    transform: scale(1.0);\n  }\n}\n@keyframes SavePin_CircleAnimateOut {\n  from {\n    transform: scale(1.0);\n    opacity: 1;\n  }\n  to {\n    transform: scale(0.8);\n    opacity: 0;\n  }\n}\n@keyframes SavePin_AnimateOut {\n  from {\n    transform: translateY(0);\n    opacity: 1;\n  }\n  to {\n    transform: translateY(100px);\n    width: 0px;\n    height: 0px;\n    opacity: 0;\n  }\n}\n@keyframes SavePin_NavButtonAnimation {\n  0% {\n    transform: scale(1.0);\n  }\n  50% {\n    transform: scale(1.3);\n  }\n  100% {\n    transform: scale(1.0);\n  }\n}\n"}),Object(s.jsxs)(a.f,{position:"relative",children:[Object(s.jsxs)(a.f,{width:250,height:250,position:"absolute",right:!0,bottom:!0,dangerouslySetInlineStyle:l,children:[Object(s.jsx)(a.f,{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",opacity:0,rounding:"circle",dangerouslySetInlineStyle:d}),Object(s.jsx)(a.f,{width:100,height:100,position:"absolute",margin:"auto",left:!0,right:!0,top:!0,bottom:!0,opacity:0,rounding:3,dangerouslySetInlineStyle:u,children:Object(s.jsx)(a.D,{rounding:2,height:"100%",width:"100%",wash:!0,children:Object(s.jsx)(a.y,{alt:"pin-image",fit:"cover",naturalWidth:null!=h?h:1,naturalHeight:null!=c?c:1,src:null!=m?m:""})})})]}),Object(s.jsx)(a.f,{dangerouslySetInlineStyle:p,children:e})]})]})})},SsqI:function(e,t){e.exports="https://s.pinimg.com/webapp/success-0acd4a8d.mp3"},SvRC:function(e,t,n){n.d(t,"d",(function(){return K})),n.d(t,"b",(function(){return $})),n.d(t,"e",(function(){return Z})),n.d(t,"a",(function(){return te})),n.d(t,"c",(function(){return ne}));var i=n("q1tI"),o=n("/MKj"),r=n("9Hil"),a=n("ihsa"),s=n("o+5w"),c=n("r8+8"),l=n("4lNu"),d=n("ulr2"),u=n("wMN6"),p=n("yweb"),h=n("n6mq"),m=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 f=["#E2780D","#0074e8","#0FA573","#FAB904","#133A5E","#FF8A8A"],g=[140,220,265],j="BizNuxHomefeedLoader",x=[j+"_FadeOut {\n    from { opacity: 1 }\n    to { opacity: 0 }\n  }",j+"_SlideUp {\n    from {\n      -webkit-transform: translateY(100vh);\n      transform: translateY(100vh);\n    }\n    to {\n      -webkit-transform: translateY(0);\n      transform: translateY(0);\n    }\n  }"];class y extends i.PureComponent{constructor(...e){super(...e),b(this,"state",{enterAnimationFinished:!1,startExitAnimation:!1}),b(this,"enterAnimationDidFinished",()=>{this.setState({enterAnimationFinished:!0})}),b(this,"startExitAnimation",()=>{const{dismissLoader:e}=this.props;this.setState({startExitAnimation:!0},()=>{this.exitAnimationTimeout=setTimeout(()=>{e()},1700)})})}componentDidMount(){window.scrollTo(0,0),this.enterAnimationTimeout=setTimeout(()=>{this.enterAnimationDidFinished()},2e3)}componentDidUpdate(e){const{homefeedLoading:t}=this.props,{enterAnimationFinished:n,startExitAnimation:i}=this.state;!n||t||i||Object(u.i)(this.startExitAnimation)}componentWillUnmount(){clearTimeout(this.enterAnimationTimeout),clearTimeout(this.exitAnimationTimeout)}get gridCellDimensionsByColumn(){const{gridContainerRef:e}=this.props;if(!e.current)return null;const t=e.current.querySelectorAll(".PinCard__imageWrapper"),n=Array.from({length:this.numberOfColumns},e=>[]);for(let i=0;i<t.length;i+=1){const e=t[i].getBoundingClientRect();n[Math.round(e.left/(window.innerWidth/this.numberOfColumns))].push(e)}return n}get numberOfColumns(){return Math.max(Math.floor(window.innerWidth/200),2)}computeGridCellLayout(e,t,n){const i=this.numberOfColumns+1,o=(window&&window.innerWidth-16*i)/this.numberOfColumns;return{left:e*o+16*(e+1),top:n,width:o,height:g[(e+t)%g.length]}}renderGrid(){const{selectedTopics:e}=this.props,{startExitAnimation:t}=this.state,n=Array(this.numberOfColumns).fill(c.a),i=this.gridCellDimensionsByColumn,o=e.map((e,o)=>{const r=o%this.numberOfColumns,a=Math.floor(o/this.numberOfColumns),s=f[o%f.length],c=n[r],l=this.computeGridCellLayout(r,a,c),d=(({color:e,startAnimation:t,originDimension:n,destinationDimension:i={}})=>{const o=i&&i.height>0?{top:i.top,left:i.left,width:i.width,height:i.height}:{opacity:0};return{position:"absolute",WebkitTransitionDuration:".5s",WebkitTransitionDelay:".6s",WebkitTransitionProperty:"all",WebkitTransitionTimingFunction:"ease-in-out",transitionDuration:".5s",transitionDelay:".6s",transitionProperty:"all",transitionTimingFunction:"ease-in-out",height:n.height,width:n.width,left:n.left,top:n.top,backgroundColor:e,borderRadius:"8px",...t?o:{}}})({color:s,startAnimation:t,originDimension:l,destinationDimension:i&&i[r][a]});return n[r]+=16+l.height,Object(m.jsx)(h.f,{dangerouslySetInlineStyle:{__style:d},children:Object(m.jsx)(h.f,{margin:5,display:"flex",justifyContent:"start",alignItems:"start",dangerouslySetInlineStyle:{__style:(u=t,u?{WebkitAnimationDuration:".4s",WebkitAnimationDelay:".5s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:j+"_FadeOut",animationDuration:".4s",animationDelay:".5s",animationFillMode:"forwards",animationName:j+"_FadeOut"}:{})},children:Object(m.jsx)(h.v,{color:"white",size:"md",children:e.name})})},o);var u});return Object(m.jsx)(h.f,{dangerouslySetInlineStyle:{__style:{position:"absolute",height:"100%",width:"100%",left:0,top:0,WebkitTransform:"translateY(100vh)",WebkitAnimationDuration:".8s",WebkitAnimationDelay:"1.2s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:j+"_SlideUp",transform:"translateY(100vh)",animationDuration:".8s",animationDelay:"1.2s",animationFillMode:"forwards",animationName:j+"_SlideUp"}},children:o})}render(){const{startExitAnimation:e}=this.state;return Object(m.jsx)(s.a,{viewType:24,viewParameter:261,children:Object(m.jsxs)(i.Fragment,{children:[Object(m.jsx)(a.a,{unsafeCSS:Object(l.a)(x)}),Object(m.jsx)(h.f,{color:"white",dangerouslySetInlineStyle:{__style:(t=e,{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",zIndex:"1",pointerEvents:"none",...t?{WebkitAnimationDuration:".4s",WebkitAnimationDelay:"1.15s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:j+"_FadeOut",animationDuration:".5s",animationDelay:"1.2s",animationFillMode:"forwards",animationName:j+"_FadeOut"}:{}})},children:Object(m.jsxs)(h.u,{alignItems:"center",direction:"column",justifyContent:"start",children:[Object(m.jsxs)(i.Fragment,{children:[Object(m.jsx)(r.a,{duration:3700,finalProgress:100}),Object(m.jsx)(h.f,{margin:10,dangerouslySetInlineStyle:{__style:{WebkitAnimationDuration:".5s",WebkitAnimationDelay:"1.4s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:j+"_FadeOut",animationDuration:".5s",animationDelay:"1.25s",animationFillMode:"forwards",animationName:j+"_FadeOut"}},children:Object(m.jsx)(h.v,{children:this.props.i18n._("Personalizing your feed with...","Loading homefeed details","Loading homefeed details")})})]}),this.renderGrid()]})})]})});var t}}var O=Object(o.connect)(({topics:e})=>({selectedTopics:Object.keys(e).filter(t=>e[t].is_followed).map(t=>e[t])}),e=>({dismissLoader:()=>e(Object(d.E)(!1))}))((function(e){const t=Object(p.c)();return Object(m.jsx)(y,{...e,i18n:t})})),_=n("8ifP"),v=n("hlxQ"),w=n("bcHz"),S=n("7w6Q"),T=n("yqcB"),I=n("K/ae"),k=n("AGnR");const C=["#E2780D","#0074e8","#0FA573","#FAB904","#133A5E","#FF8A8A"],E=[140,220,265],P=["NuxHomefeedLoader_FadeOut {\n    from { opacity: 1 }\n    to { opacity: 0 }\n  }","NuxHomefeedLoader_SlideUp {\n    from {\n      -webkit-transform: translateY(100vh);\n      transform: translateY(100vh);\n    }\n    to {\n      -webkit-transform: translateY(0);\n      transform: translateY(0);\n    }\n  }"];function A({gridContainerRef:e,homefeedLoading:t}){const n=Object(p.c)(),[b,f]=Object(i.useState)(!1),[g,j]=Object(i.useState)(!1),x=Object(o.useDispatch)(),y=Object(o.useSelector)(({topics:e})=>Object.keys(e).filter(t=>e[t].is_followed).map(t=>e[t]));let O,_;Object(i.useEffect)(()=>(window.scrollTo(0,0),O=setTimeout(()=>{f(!0)},3e3),()=>{clearTimeout(O),clearTimeout(_)}),[]),Object(i.useEffect)(()=>{t||!b||g||Object(u.i)(()=>{j(!0),_=setTimeout(()=>{Object(k.e)({event_type:8900,view_type:24,view_parameter:261}),x(Object(d.J)(!1))},2550)})},[t,b,g]);const v=()=>Math.max(Math.floor(window.innerWidth/200),2),w=n._("Personalizing your feed with...","Loading homefeed details","Loading homefeed details");return Object(m.jsx)(s.a,{viewType:24,viewParameter:261,children:Object(m.jsxs)(i.Fragment,{children:[Object(m.jsx)(a.a,{unsafeCSS:Object(l.a)(P)}),Object(m.jsx)(h.f,{color:"white",dangerouslySetInlineStyle:{__style:(S=g,{position:"absolute",width:"100%",height:"100vh",top:"0px",left:"0px",zIndex:"1",pointerEvents:"none",...S?{WebkitAnimationDuration:".4s",WebkitAnimationDelay:"1.15s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:"NuxHomefeedLoader_FadeOut",animationDuration:".5s",animationDelay:"1.2s",animationFillMode:"forwards",animationName:"NuxHomefeedLoader_FadeOut"}:{}})},children:Object(m.jsxs)(h.u,{alignItems:"center",direction:"column",justifyContent:"start",children:[Object(m.jsx)(r.a,{color:"darkGray",duration:5550,finalProgress:100}),Object(m.jsx)(h.f,{dangerouslySetInlineStyle:{__style:{WebkitAnimationDuration:".5s",WebkitAnimationDelay:"2.8s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:"NuxHomefeedLoader_FadeOut",animationDuration:".5s",animationDelay:"2.5s",animationFillMode:"forwards",animationName:"NuxHomefeedLoader_FadeOut"}},paddingX:4,paddingY:6,children:Object(m.jsx)(h.v,{size:"md",children:w})}),(()=>{const t=v(),n=Array(t).fill(c.a),i=(()=>{const t=v();if(!e.current)return null;const n=e.current.querySelectorAll(".PinCard__imageWrapper"),i=Array.from({length:t},e=>[]);for(let e=0;e<n.length;e+=1){const o=n[e].getBoundingClientRect();i[Math.round(o.left/(window.innerWidth/t))].push(o)}return i})(),o=y.map((e,o)=>{const r=o%t,a=Math.floor(o/t),s=C[o%C.length],c=((e,t,n)=>{const i=v(),o=i+1,r=(window&&window.innerWidth-8*o)/i;return{left:e*r+8*(e+1),top:n,width:r,height:E[(e+t)%E.length]}})(r,a,n[r]),l=(({color:e,startAnimation:t,originDimension:n,destinationDimension:i={}})=>{const o=i&&i.height>0?{top:i.top,left:i.left,width:i.width,height:i.height}:{opacity:0};return{position:"absolute",WebkitTransitionDuration:".5s",WebkitTransitionDelay:".6s",WebkitTransitionProperty:"all",WebkitTransitionTimingFunction:"ease-in-out",transitionDuration:".5s",transitionDelay:".6s",transitionProperty:"all",transitionTimingFunction:"ease-in-out",height:n.height,width:n.width,left:n.left,top:n.top,backgroundColor:e,borderRadius:"8px",...t?o:{}}})({color:s,startAnimation:g,originDimension:c,destinationDimension:i&&i[r][a]});return n[r]+=8+c.height,Object(m.jsx)(h.f,{dangerouslySetInlineStyle:{__style:l},children:Object(m.jsx)(h.f,{margin:4,dangerouslySetInlineStyle:{__style:(d=g,d?{WebkitAnimationDuration:".4s",WebkitAnimationDelay:".5s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:"NuxHomefeedLoader_FadeOut",animationDuration:".4s",animationDelay:".5s",animationFillMode:"forwards",animationName:"NuxHomefeedLoader_FadeOut"}:{})},children:Object(m.jsx)(h.v,{color:"white",size:"sm",children:e.name})})},o);var d});return Object(m.jsx)(h.f,{dangerouslySetInlineStyle:{__style:{position:"absolute",height:"100vh",width:"100%",left:0,top:0,WebkitTransform:"translateY(100vh)",WebkitAnimationDuration:".8s",WebkitAnimationDelay:"2.4s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:"NuxHomefeedLoader_SlideUp",transform:"translateY(100vh)",animationDuration:".8s",animationDelay:"2.4s",animationFillMode:"forwards",animationName:"NuxHomefeedLoader_SlideUp"}},children:o})})()]})})]})});var S}var L=n("IaND"),D=n("IayW");const R=120;function B({enabled:e,onPull:t,refreshing:n}){const o=Object(p.c)(),[r,a]=Object(i.useState)(0),s=Object(i.useRef)(null);Object(i.useEffect)(()=>{if(e){const e=e=>{window.scrollY<=0&&!n&&(s.current=e.touches[0].clientY)},i=e=>{if(s.current){const t=.5*(e.touches[0].clientY-s.current);t>0&&(a(t),e.preventDefault())}},o=e=>{s.current&&(r>=R&&t(),s.current=null,a(0))};return window.addEventListener("touchstart",e),window.addEventListener("touchmove",i,{passive:!1}),window.addEventListener("touchend",o),()=>{window.removeEventListener("touchstart",e),window.removeEventListener("touchmove",i,{passive:!1}),window.removeEventListener("touchend",o)}}},[e,t,r,n]);const c=n?0:r/R,l=Math.min(c,1),d=o._("Pull to refresh","Pull down on grid to refresh items","Pull down on grid to refresh items");return Object(m.jsx)(h.f,{children:e&&Object(m.jsx)(h.f,{display:"flex",alignItems:"center",justifyContent:"center",height:c*R,dangerouslySetInlineStyle:{__style:{opacity:l,transition:null===s.current?"all .3s ease-out":void 0}},children:Object(m.jsx)(h.w,{size:40,icon:s.current&&r<R?"arrow-circle-down":"arrow-circle-up",accessibilityLabel:d})})})}var N=n("t12/"),F=n("h8Qw"),M=n("kUgr"),U=n("PmFr"),H=n("0G5S"),z=n("zAWC"),W=n("g6r8"),G=n("qDpr"),q=n("0HhX"),V=n("EC67");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}const K=({isDesktop:e})=>{const t=Object(z.b)({isDesktop:e});return t?-t:0},$=-2,X={},Z=e=>{X[e]&&X[e].handlePullToRefresh()},Q=(e,t)=>e.slice(0,t).map(e=>e.id),J=()=>{const e="desktop"===Object(W.a)(),t=Object(z.b)({isDesktop:e}),n=t?-t:0;return Object(m.jsx)(h.f,{marginTop:n,marginBottom:n,paddingY:t})};class ee extends i.PureComponent{constructor(...e){super(...e),Y(this,"state",{refreshing:!1,plpIds:Object(M.a)().extraPlpIds,plpFeed:[]}),Y(this,"backonlineAutoFetchResource",()=>{this.props.feedResource.fetchMore()}),Y(this,"onPinTouch",e=>{if(e.target instanceof HTMLElement&&"IMG"===e.target.tagName){const t=e.target.getBoundingClientRect().top+window.scrollY-70;window.scrollTo(window.scrollX,t)}}),Y(this,"handlePullToRefresh",()=>{this.props.feedResource.refresh(),this.setState({refreshing:!0})}),Y(this,"gridContainerRef",Object(i.createRef)()),Y(this,"renderFeedPin",(e,t)=>{const{feedItemProps:n,history:i,isOneTapExploreLocalTab:o,location:r,renderSquarePins:a,showSeoMetadata:s,topLevelTrafficSource:c,topLevelTrafficSourceDepth:l,trafficSource:d,squarePins:u}=this.props,{auxData:p,componentType:h,feedback:b,imageOnly:f,impressionData:g,objectIdStr:j,oneTapSave:x,onFeedItemClick:y,onPinLinkClick:O,showSeoMetadata:_,viewData:v,viewParameter:w,viewType:S}=n||{},T=(r.search||"").includes("force_seo");return Object(m.jsx)(z.a,{auxData:p,componentType:h||0,feedback:b,history:i,imageOnly:f,impressionData:g,isOneTapExploreLocalTab:o,isSquarePin:a||u,location:r,objectIdStr:j,oneTapSave:x,onPinClick:y,onPinLinkClick:O,pinId:e.id,showSeoMetadata:s||T||_,slotIndex:t,topLevelTrafficSource:c,topLevelTrafficSourceDepth:l,trackingParams:e.trackingParams,trafficSource:d,viewData:v,viewParameter:w,viewType:S||1})}),Y(this,"renderFeedItem",({data:e,itemIdx:t})=>{const{breakIn:n,feedItemProps:i,renderFeedItem:o,trafficSource:r}=this.props;if(o)return o(e,t);const{viewParameter:a,viewType:s}=i||{};switch(e.type){case"pin":return Object(m.jsx)(w.a,{onTouch:this.onPinTouch,pressState:"none",children:this.renderFeedPin(e,t)});case"user":return Object(m.jsx)(v.a,{truncateName:!0,userId:e.id,userSearchRepStyle:"user_search"===r,viewParameter:a,viewType:s});case"board":return Object(m.jsx)(_.a,{boardId:e.id,type:"grid",viewParameter:a,viewType:s});case"topic":return Object(m.jsx)(F.a,{id:e.id,showFollowerCount:!0,showFollowButton:!0,shouldClickthrough:!0,viewType:s,viewParameter:a});case"story":return"number"==typeof a?Object(m.jsx)(D.a,{slotIndex:t,storyId:e.id,viewType:s||1,viewParameter:a}):null;case"randomCuratedLinks":case"interestLinks":return(null==n?void 0:n.content)||null;default:return null}})}componentDidMount(){window.addEventListener("online",this.backonlineAutoFetchResource);const{logFeed:e,feedKey:t,feedItemProps:n}=this.props;if(e){const{viewParameter:e,viewType:t,auxData:i,componentType:o}=n||{},r={event_type:13};e&&(r.view_parameter=e),t&&(r.view_type=t),i&&(r.aux_data=i),o&&(r.component=o),Object(k.e)(r)}((e,t)=>{X[e]=t})(t,this)}setPlpFeedData(e){const{feedItems:t,pins:n}=this.props,{plpIds:i}=this.state;if(e)return Object(H.b)(U.h),void this.setState({plpIds:[],plpFeed:[]});if(i.length>0&&t&&t.length>0){const e=i[0],o=n[e],r=t.slice(0,5).map(e=>e.id).includes(e);o&&!r&&this.setState({plpFeed:[{id:i[0],type:"pin",trackingParams:t[0].trackingParams}].concat(t)})}}logHomefeedRefreshStats(e,t,n,i){const{locale:o}=this.props,{refreshing:r}=this.state;if(r&&t.isFetching&&!e.isFetching&&n&&n.length>0&&i&&i.length>0){const e=Q(i,5),t=Q(n,5),r={appType:"mweb",language:(o?o.slice(0,2):void 0)||"unknown",locale:o||"unknown"};S.a.increment("home_product.homefeed.refresh",1,r),a=e,s=t,JSON.stringify(a)===JSON.stringify(s)&&S.a.increment("home_product.homefeed.refresh.no_change",1,r)}var a,s}componentDidUpdate(e){const{feedItems:t}=e,{feedKey:n,feedItems:i}=this.props,{plpFeed:o,plpIds:r,refreshing:a}=this.state,s="homefeed"===n;a&&e.feedResource.isFetching&&!this.props.feedResource.isFetching&&this.setState({refreshing:!1}),s&&this.logHomefeedRefreshStats(this.props.feedResource,e.feedResource,i,t);const c=r.length>0;if(s&&c){const e=!!t&&t.length>0,n=!!i&&i.length>0,r=!e&&n,a=!!i&&i.length>0&&!!t&&t.length>0&&t[0]!==i[0],s=!!i&&i.length>0&&!!t&&t.length>0&&t[0]===i[0]&&t.length!==i.length,c=n&&!a&&0===o.length;(r||a||s||c)&&this.setPlpFeedData(a)}}componentWillUnmount(){var e;window.removeEventListener("online",this.backonlineAutoFetchResource),e=this.props.feedKey,delete X[e]}renderFeedItems(e){const{breakIn:t,deviceType:n,emptyState:o,feedKey:r,feedResource:a,gridConfig:s,pullToRefresh:c,serverRender:l,showBizNuxHomefeedLoader:d,showNuxHomefeedLoader:u,trafficSource:p}=this.props,{key:b}=s||{},f=r+(b?"|"+b:""),g="user_search"===p,j=g?window.innerWidth-16:200,x={columnWidth:"desktop"===n?G.b:j,comp:this.renderFeedItem,gutterWidth:"desktop"===n?4*G.a:void 0,loadItems:a.fetchMore,minCols:g?1:2,...s},y=!u&&!d&&a.isFetching&&!this.state.refreshing,_="row"===(null==t?void 0:t.item.type),v=_&&null!=t&&t.position?e.slice(0,t.position):e,w=_&&null!=t&&t.showItemsAfterBreak?e.slice(t.position):[];let S,k,C;return(r.includes("homefeed")||r.includes("search"))&&(S=!0,k=!0,C=Object.values(this.props.pins).length?Object.values(this.props.pins):void 0),Object(m.jsxs)(h.f,{"data-test-id":"MobileFeed",children:[Object(m.jsx)(B,{enabled:!!c,onPull:this.handlePullToRefresh,refreshing:this.state.refreshing}),Object(m.jsxs)(h.f,{marginStart:G.c,marginEnd:G.c,"data-test-id":"grid",ref:this.gridContainerRef,opacity:this.state.refreshing?.5:1,children:[Object(m.jsx)(T.a,{isAtEndOfFeed:a.isAtEnd,pinData:C,includeVideos:k,includeBackgroundImages:S,itemCount:e.length,children:e.length?Object(m.jsx)(h.f,{"data-test-id":"feed",marginTop:K({isDesktop:"desktop"===n}),children:Object(m.jsx)(N.a.Consumer,{children:e=>Object(m.jsxs)(i.Fragment,{children:[Object(m.jsx)(I.a,{cacheKey:f,id:l?r:void 0,items:v,scrollContainerRef:e,serverRender:l,...x}),_&&(null==t?void 0:t.content),w.length>0&&Object(m.jsx)(I.a,{cacheKey:f+"_afterBreak",items:w,scrollContainerRef:e,...x})]})})}):a.isFetching?Object(m.jsx)(J,{}):null!=o?o:null}),y&&Object(m.jsx)(h.f,{column:12,paddingY:2,children:Object(m.jsx)(L.a,{})}),u&&Object(m.jsx)(A,{homefeedLoading:a.isFetching,gridContainerRef:this.gridContainerRef}),d&&Object(m.jsx)(O,{homefeedLoading:a.isFetching,gridContainerRef:this.gridContainerRef})]})]})}render(){const{feedItems:e,feedKey:t,isAuthenticated:n}=this.props,{plpFeed:i}=this.state,o=e||[];return"homefeed"!==t?this.renderFeedItems(o):n&&i.length>0?this.renderFeedItems(i):this.renderFeedItems(o)}}function te({resource:{error:e,...t},itemShouldBeExcluded:n,feedOffset:i,...r}){const{breakIn:a,feedKey:s}=r,c=Object(V.i)(),l=Object(V.h)(),u=Object(W.a)(),p=Object(o.useDispatch)(),{isAuthenticated:h,isBizNuxHomefeedLoadShown:b,isNuxHomefeedLoadShown:f,isSeoBot:g,locale:j}=Object(o.useSelector)(({session:e})=>e),x=Object(o.useSelector)(({feeds:e})=>e[s]),y=Object(o.useSelector)(({pins:e})=>e),O=Object(o.useSelector)(({session:e})=>e.firstHomeFeedRequestAfterNux);"homefeed"===s&&x&&x.length>0&&O&&p(Object(d.T)(!1));let _=x;return _&&(a&&a.item&&("randomCuratedLinks"===a.item.type||"interestLinks"===a.item.type)&&x.length>=a.position&&(_=[...x.slice(0,a.position),a.item,...x.slice(a.position)]),n&&(_=_.filter(e=>!n(e))),i&&(_=_.slice(i))),Object(m.jsx)(ee,{...r,deviceType:u,feedItems:_,feedResource:t,history:l,isAuthenticated:h,showBizNuxHomefeedLoader:!!b,showNuxHomefeedLoader:!!f,locale:j,location:c,pins:y,showSeoMetadata:g})}function ne({resourceConfig:e,...t}){const n=Object(q.b)(e);return Object(m.jsx)(te,{...t,resource: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}},SyXB:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return d}));var i=n("XtwW");const o="masonryPagination";let r={};const a=e=>"📌 "+e,s=()=>{const e={};return Object.keys(r).forEach(t=>{(r[t]||[]).slice(0,3).forEach((n,i)=>{e[i?`${t}_${i+1}`:t]=n})}),e},c=(e,t)=>(r[e]||[]).filter(e=>e<t).length,l=(e,t)=>c(e,t)>0,d=()=>{i.a&&Object.keys(r).forEach(e=>((e,t)=>{const n=a(t);e.clearMarks(n),e.clearMeasures(n)})(i.a,e)),r={}};t.c=e=>{i.a&&(r[e]=(r[e]||[]).concat([i.a.now()]),((e,t)=>{const n=a(t);e.mark(n),e.measure(n)})(i.a,e))}},TO8r:function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},TR77:function(e,t,n){n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return b}));var i=n("/MKj"),o=n("MKeS"),r=n("4kAQ"),a=n("qALL"),s=n("/wSi"),c=n("n6mq"),l=n("nKUr"),d=n.n(l);const u=Object(o.a)({resolved:{},chunkName:()=>"storyPins-HlsVideoContainer",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(4),n.e("storyPins-HlsVideoContainer")]).then(n.bind(null,"TedQ")),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"TedQ"}}),p=Object.freeze({white:"white",black:"darkGray"}),h={defaultOverlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"}};function m({titleText:e,videoPin:t,videoPlaceholderImage:n}){return Object(l.jsx)(u,{fallback:Object(l.jsx)(c.y,{alt:e||"",color:"rgb(111, 91, 77)",fit:"cover",naturalHeight:3,naturalWidth:2,src:n||t.metadata.thumbnail}),aspectRatio:s.a,controls:!1,poster:n||t.metadata.thumbnail,src:t.url})}function b({buttonAction:e,buttonCustomization:t,buttonText:n,experienceId:o,hideCompleteButton:d,imageAlt:u,imageUrl:p,placementId:b,storyType:f,titleText:g,titleTextColor:j,titleTextCustomization:x,videoPin:y,videoPlaceholderImage:O}){const _=Object(i.useDispatch)(),v=Object(s.c)(f),w=v?a.d:a.c,S=v?a.a:a.b,T=!v,{color:I,fontStyle:k,fontWeight:C,horizontalAlignment:E,fontSize:P}=Object(s.b)(x||{},"mweb"),{button_background_color:A,button_text_color:L}=t||{};return Object(l.jsx)(c.f,{position:"relative",padding:1,marginBottom:2,children:Object(l.jsxs)(c.C,{accessibilityLabel:g,href:e,onClick:({disableOnNavigation:e})=>{e(),"number"==typeof o&&"number"==typeof b&&_(Object(r.a)(b,o,!1,!0))},children:[Object(l.jsx)(c.f,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(150%)"}},position:"relative",children:Object(l.jsxs)(c.f,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},top:!0,right:!0,bottom:!0,left:!0,overflow:"hidden",position:"absolute",rounding:4,children:[Object(l.jsx)(c.f,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:"feed_card_video"===f&&y?Object(l.jsx)(m,{titleText:g,videoPin:y,videoPlaceholderImage:O}):p&&Object(l.jsx)(c.y,{alt:u||"",color:"rgb(111, 91, 77)",naturalHeight:4,naturalWidth:3,src:p,fit:"cover"})}),T&&Object(l.jsx)(c.f,{height:"100%",width:"100%",dangerouslySetInlineStyle:{__style:h.defaultOverlay},position:"absolute",top:!0,left:!0}),Object(l.jsx)(w,{children:Object(l.jsx)(c.cb,{align:E,color:j,italic:"italics"===k,weight:C,children:Object(l.jsx)(c.f,{dangerouslySetInlineStyle:{__style:{color:null!=I?I:void 0,fontSize:P}},children:g})})})]})}),!d&&Object(l.jsx)(S,{children:Object(l.jsx)(c.f,{display:"flex",rounding:"pill",color:v?"white":"lightGray",dangerouslySetInlineStyle:{__style:{backgroundColor:A}},justifyContent:"center",alignItems:"center",paddingX:2,height:48,children:Object(l.jsx)(c.cb,{weight:"bold",children:Object(l.jsx)(c.f,{dangerouslySetInlineStyle:{__style:{color:L}},children:n})})})})]})})}},TZCD:function(e,t){e.exports="https://s.pinimg.com/webapp/EN@2x-ca0773fb.png"},Tn9N:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("SBn3"),o=n("EC67"),r=n("n6mq"),a=n("nKUr");function s({hideOverflow:e,items:t,onChange:n,replace:s=!1,selectedTabIndex:c}){const l=Object(o.h)();if(t.length<=0)return null;return Object(a.jsx)(i.a,{children:Object(a.jsx)(r.f,{overflow:e?"hidden":"scrollX",paddingX:2,paddingY:1,"data-test-id":"page-tabs",children:Object(a.jsx)(r.Z,{activeTabIndex:c,onChange:({event:e,activeTabIndex:i})=>{e.preventDefault(),n(i);const{pathname:o,state:r}=(e=>({pathname:(t[e]||t[0]).href,state:(t[e]||t[0]).locationState||void 0}))(i);s?l.replace(o,r):l.push(o,r)},tabs:t.map(({href:e,text:t,indicator:n})=>({href:e,text:t,indicator:n}))})})})}},Tv6X:function(e,t,n){var i=n("wzxk");const o=e=>(e||"").trim().replace(/\s+/g," ");t.a=e=>{const t=e||{};return!!t.story_pin_data_id?o(t.description):o(Object(i.c)(t).description)||o(t.closeup_unified_description||"")||o(t.closeup_description)||o(t.description)||o(t.rich_metadata&&t.rich_metadata.description)||""}},TyUm:function(e,t){e.exports="https://s.pinimg.com/webapp/UK@2x-fb5c6e06.png"},UL3w:function(e,t){e.exports="https://s.pinimg.com/webapp/HI@2x-58486090.png"},UbOS:function(e,t){e.exports="https://s.pinimg.com/webapp/PT@2x-2939b38c.png"},UuYX:function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("q1tI");function o(e){const{animationData:t,autoplay:o,initialSegment:r,loop:a,onComplete:s,onConfigReady:c,onDataFailed:l,onDataReady:d,onDestroy:u,onDOMLoaded:p,onEnterFrame:h,onLoadedImages:m,onLoopComplete:b,onSegmentStart:f}=e,[g,j]=Object(i.useState)(null),[x,y]=Object(i.useState)(!1),O=Object(i.useRef)(null),_=Object(i.useRef)(null),v=async()=>{const e=await n.e(680).then(n.t.bind(null,"qFE6",7));j(e)};Object(i.useEffect)(()=>{v()},[]);return Object(i.useEffect)(()=>{var t;if(!_.current||!g)return;null===(t=O.current)||void 0===t||t.destroy();const n={...e,container:_.current};O.current=g.loadAnimation(n),y(!!O.current)},[_,O,t,g,e]),Object(i.useEffect)(()=>{O.current&&(O.current.loop=!!a,a&&O.current.isPaused&&O.current.play())},[a]),Object(i.useEffect)(()=>{O.current&&(O.current.autoplay=!!o)},[o]),Object(i.useEffect)(()=>{O.current&&(r?Array.isArray(r)&&r.length&&((O.current.currentRawFrame<r[0]||O.current.currentRawFrame>r[1])&&(O.current.currentRawFrame=r[0]),O.current.setSegment(r[0],r[1])):O.current.resetSegments(!1))},[r]),Object(i.useEffect)(()=>{const e=[{name:"complete",handler:s},{name:"loopComplete",handler:b},{name:"enterFrame",handler:h},{name:"segmentStart",handler:f},{name:"config_ready",handler:c},{name:"data_ready",handler:d},{name:"data_failed",handler:l},{name:"loaded_images",handler:m},{name:"DOMLoaded",handler:p},{name:"destroy",handler:u}].filter(e=>null!=e.handler);return()=>{if(!e.length)return;e.map(e=>{var t;return null===(t=O.current)||void 0===t||t.addEventListener(e.name,e.handler),()=>{var t;null===(t=O.current)||void 0===t||t.removeEventListener(e.name,e.handler)}}).forEach(e=>e())}},[s,b,h,f,c,d,l,m,p,u]),{animationContainerRef:_,play:()=>{var e;null===(e=O.current)||void 0===e||e.play()},stop:()=>{var e;null===(e=O.current)||void 0===e||e.stop()},pause:()=>{var e;null===(e=O.current)||void 0===e||e.pause()},setSpeed:e=>{var t;null===(t=O.current)||void 0===t||t.setSpeed(e)},goToAndStop:(e,t)=>{var n;null===(n=O.current)||void 0===n||n.goToAndStop(e,t)},goToAndPlay:(e,t)=>{var n;null===(n=O.current)||void 0===n||n.goToAndPlay(e,t)},setDirection:e=>{var t;null===(t=O.current)||void 0===t||t.setDirection(e)},playSegments:(e,t)=>{var n;null===(n=O.current)||void 0===n||n.playSegments(e,t)},setSubframe:e=>{var t;null===(t=O.current)||void 0===t||t.setSubframe(e)},getDuration:e=>{var t;return null===(t=O.current)||void 0===t?void 0:t.getDuration(e)},destroy:()=>{var e;null===(e=O.current)||void 0===e||e.destroy()},animationLoaded:x,animationItem:O.current}}},VjTW:function(e,t,n){function i(e){const t=Object.keys(e);if(t.length>0){return t.sort((t,n)=>e[n]-e[t]).slice(0,3)}return null}function o(e){const t=Object.values(e);if(t.length>0){return t.reduce((e,t)=>e+t,0)}return 0}function r(e){const{videos:t,is_downstream_promotion:n,is_promoted:i,story_pin_data_id:o,board:r}=e;return!(i||n||(!t||!t.id)&&!o||r&&r.is_collaborative)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r}))},VuCO:function(e,t,n){n.d(t,"a",(function(){return i}));const i=(e,t)=>({type:"SET_ACTIVE_HOMEFEED_TAB",payload:{boardId:e,index:t}})},W2YJ:function(e,t,n){n.d(t,"a",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return b})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return x})),n.d(t,"p",(function(){return y})),n.d(t,"m",(function(){return O})),n.d(t,"o",(function(){return _})),n.d(t,"n",(function(){return v})),n.d(t,"l",(function(){return S}));var i=n("NQrK");const o=Object.freeze({AFRICAN_AMERICAN_OR_BLACK:"african_american_or_black",BLACK_AFRICAN_DIASPORA:"black_african_diaspora",HISPANIC_OR_LATINX:"hispanic_or_latinx",NATIVE_OR_INDIGENOUS:"native_or_indigenous",ABORIGINAL_OR_INDIGENOUS:"aboriginal_or_indigenous",NATIVE_AMERICAN_OR_ALASKA_NATIVE_OR_INDIGENOUS_PEOPLES:"native_american_or_alaska_native_or_indigenous_peoples",ASIAN_OR_PACIFIC_ISLANDERS:"asian_or_pacific_islanders",ASIAN:"asian",LGBTQ:"lgbtq",MIDDLE_EASTERN:"middle_eastern",MIDDLE_EASTERN_TURKISH_ROMA:"middle_eastern_turkish_roma",NORTH_AFRICAN:"north_african",MIDDLE_EASTERN_OR_NORTH_AFRICAN:"middle_eastern_or_north_african",NONE:"none"}),r=Object.freeze({PERSON_OF_COLOR:"person_of_color",LGBTQ:"lgbtq",DISABILITY:"disability",WOMAN:"woman",NONE:"none"}),a=Object.freeze({B_CORP:"b_corp",SUSTAINABILITY:"sustainability",PHILANTHROPY:"philanthropy",BUSINESS_PRACTICES:"business_practices",FAIR_TRADE:"fair_trade",INGREDIENTS:"ingredients",RECYCLED_MATERIALS:"recycled_materials",ARTISANS:"artisans",BODY_POSITIVE:"body_positive",DIVERSE_MODELS:"diverse_models",PRODUCTS:"products",HANDMADE:"handmade",SHOPPING_EXPERIENCE:"shopping_experience",COMMUNITY_BUILDING:"community_building",EDITORIAL_BLOGS:"editorial_blogs",BTS:"bts"}),s=Object.freeze({INVESTED_IN_GOOD:"invested_in_good",ECO_FRIENDLY:"eco_friendly",RESPONSIBLY_SOURCED:"responsibly_sourced",INCLUSIVE:"inclusive",PERSONAL_TOUCH:"personal_touch"}),c=[...Object.keys(o).map(e=>o[e]),...Object.keys(r).map(e=>r[e])],l=[...Object.keys(s).map(e=>s[e])],d=3,u=1,p=["#EFEFEF","#F8E3D1","#F6F1C1","#DDEEAF","#C9F2EE","#DBD5F4","#EFBCEE"],h={business_diversity_labels:[],created_at:"",disapproval_reasons:[],is_inspirational:!1,review_criteria:[],review_labels:[],updated_at:"",inspirational_badge_selection:{badgeColor:p[0],badgeOptOut:[]},is_eligible_for_storefront_badges:!1},m="storefront_inspirational_badges_web",b="storefront_inspirational_badges_colors",f="https://help.pinterest.com/article/shopping-with-pinterest",g="https://help.pinterest.com/business/article/add-merchant-details-to-your-profile",j=["US"],x=!1;function y({areBadgesEnabled:e,country:t,verifiedMerchant:n}){var i,o;const r=null==n?void 0:n.isVerifiedMerchant,a=null==n||null===(i=n.inspirational_signal)||void 0===i?void 0:i.is_inspirational,s=null==n||null===(o=n.inspirational_signal)||void 0===o?void 0:o.is_eligible_for_storefront_badges;return Boolean(e&&r&&a&&s&&!!t&&j.includes(t.toUpperCase()))}function O(e){const{business_diversity_labels:t,review_labels:n}=e||{};return[...t||[],...n||[]].map(e=>e.trim())}function _(e){var t;const n=O(e),i=(null===(t=e.inspirational_badge_selection)||void 0===t?void 0:t.badgeOptOut)||[];return n.filter(e=>!i.includes(e))}function v(e,t,n=1,i=d){const c={[s.ECO_FRIENDLY]:{id:s.ECO_FRIENDLY,label:e._("Eco-friendly","InspirationalBadges.label.eco_friendly","Badge label describing a merchant"),description:e._("This retailer's website indicates that they are environmentally sustainable and/or using upcycled or recycled materials","InspirationalBadges.desc.eco_friendly","Tooltip description of a profile badge"),controlsTooltip:e._("Your website indicates that your business is environmentally sustainable and/or uses upcycled or recycled materials","InspirationalBadges.controlsTooltip.eco_friendly","Tooltip description of a profile badge, 2nd person perspective")},[s.INCLUSIVE]:{id:s.INCLUSIVE,label:e._("Inclusive","InspirationalBadges.label.inclusive","Badge label describing a merchant"),description:e._("This retailer's website indicates that they make and market products for a broader range of body types, sizes, ages and/or ethnicities","InspirationalBadges.desc.inclusive","Tooltip description of a profile badge"),controlsTooltip:e._("Your website indicates that your business makes and markets products for a broader range of body types, sizes, ages and/or ethnicities","InspirationalBadges.controlsTooltip.inclusive","Tooltip description of a profile badge, 2nd person perspective")},[s.INVESTED_IN_GOOD]:{id:s.INVESTED_IN_GOOD,label:e._("Invested in good","InspirationalBadges.label.invested_in_good","Badge label describing a merchant"),description:e._("This retailer's website indicates that they are a philanthropic company and/or a registered B corp","InspirationalBadges.desc.invested_in_good","Tooltip description of a profile badge"),controlsTooltip:e._("Your website indicates that your business is a philanthropic company and/or a registered B corp ","InspirationalBadges.controlsTooltip.invested_in_good","Tooltip description of a profile badge, 2nd person perspective")},[s.PERSONAL_TOUCH]:{id:s.PERSONAL_TOUCH,label:e._("Personal touch","InspirationalBadges.label.personal_touch","Badge label describing a merchant"),description:e._("This retailer's website indicates that they are a provider of artisanal/handmade products and/or innovative shopping/delivery options","InspirationalBadges.desc.personal_touch","Tooltip description of a profile badge"),controlsTooltip:e._("Your website indicates that your business is a provider of artisanal/handmade products and/or innovative shopping/ delivery options","InspirationalBadges.controlsTooltip.personal_touch","Tooltip description of a profile badge, 2nd person perspective")},[s.RESPONSIBLY_SOURCED]:{id:s.RESPONSIBLY_SOURCED,label:e._("Responsibly sourced","InspirationalBadges.label.responsibly_sourced","Badge label describing a merchant"),description:e._("This retailer's website indicates that they use ethical business/labor practices, transparent manufacturing processes/ingredient lists and/or are fair trade certified","InspirationalBadges.desc.responsibly_sourced","Tooltip description of a profile badge"),controlsTooltip:e._("Your website indicates that your business uses ethical business/labor practices, transparent manufacturing processes/ingredient lists and/or are fair trade certified","InspirationalBadges.controlsTooltip.responsibly_sourced","Tooltip description of a profile badge, 2nd person perspective")}},l=e._("Placeholder tooltip text","InspirationalBadges.desc.placeholder","placeholder text"),u={[o.AFRICAN_AMERICAN_OR_BLACK]:{id:o.AFRICAN_AMERICAN_OR_BLACK,label:e._("Black-owned","InspirationalBadges.label.african_american_black","Option for communities"),description:e._("This retailer's owner identified as a member of the Black community","InspirationalBadges.desc.african_american_black","Tooltip description of a profile badge")},[o.BLACK_AFRICAN_DIASPORA]:{id:o.BLACK_AFRICAN_DIASPORA,label:e._("Black (African diaspora)-owned","InspirationalBadges.label.black","Option for communities"),description:l},[o.HISPANIC_OR_LATINX]:{id:o.HISPANIC_OR_LATINX,label:e._("Latinx-owned","InspirationalBadges.label.hispanic_latinx","Option for communities"),description:e._("This retailer's owner identified as a member of the Latinx community","InspirationalBadges.desc.hispanic_latinx","Tooltip description of a profile badge")},[o.NATIVE_OR_INDIGENOUS]:{id:o.NATIVE_OR_INDIGENOUS,label:e._("Indigenous-owned","InspirationalBadges.label.native_or_indigenous","Option for communities"),description:e._("This retailer's owner identified as a member of a Native or Indigenous community","InspirationalBadges.desc.native_or_indigenous","Tooltip description of a profile badge")},[o.ABORIGINAL_OR_INDIGENOUS]:{id:o.ABORIGINAL_OR_INDIGENOUS,label:e._("Indigenous-owned","InspirationalBadges.label.aboriginal_or_indigenous","Option for communities"),description:e._("This retailer's owner identified as a member of a Native or Indigenous community","InspirationalBadges.desc.aboriginal_or_indigenous","Tooltip description of a profile badge")},[o.NATIVE_AMERICAN_OR_ALASKA_NATIVE_OR_INDIGENOUS_PEOPLES]:{id:o.NATIVE_AMERICAN_OR_ALASKA_NATIVE_OR_INDIGENOUS_PEOPLES,label:e._("Indigenous-owned","InspirationalBadges.label.native_american_alaska_native","Option for communities"),description:e._("This retailer's owner identified as a member of a Native or Indigenous community","InspirationalBadges.desc.native_or_indigenous","Tooltip description of a profile badge")},[o.ASIAN_OR_PACIFIC_ISLANDERS]:{id:o.ASIAN_OR_PACIFIC_ISLANDERS,label:e._("API-owned","InspirationalBadges.label.asian_or_pacific_islanders","Option for communities"),description:e._("This retailer's owner identified as a member of the Asian/Pacific Islander community","InspirationalBadges.desc.asian_or_pacific_islanders","Tooltip description of a profile badge")},[o.ASIAN]:{id:o.ASIAN,label:e._("Asian-owned","InspirationalBadges.label.asian","Option for communities"),description:e._("This retailer's owner identified as a member of the Asian community","InspirationalBadges.desc.asian","Tooltip description of a profile badge")},[o.MIDDLE_EASTERN]:{id:o.MIDDLE_EASTERN,label:e._("Middle Eastern-owned","InspirationalBadges.label.middle_eastern","Option for communities"),description:l},[o.MIDDLE_EASTERN_TURKISH_ROMA]:{id:o.MIDDLE_EASTERN_TURKISH_ROMA,label:e._("Middle Eastern, esp. Turkish and Roma-owned","InspirationalBadges.label.middle_eastern_or_north_african","Option for communities"),description:l},[o.NORTH_AFRICAN]:{id:o.NORTH_AFRICAN,label:e._("North African-owned","InspirationalBadges.label.north_african","Option for communities"),description:l},[o.MIDDLE_EASTERN_OR_NORTH_AFRICAN]:{id:o.MIDDLE_EASTERN_OR_NORTH_AFRICAN,label:e._("Middle Eastern or North African-owned","InspirationalBadges.label.middle_eastern_or_north_african","Option for communities"),description:l},[r.PERSON_OF_COLOR]:{id:r.PERSON_OF_COLOR,label:e._("Person of color-owned","CommunityInfoChecklist.category.person_of_color_owned","Option for category of underrepresented group"),description:l},[r.LGBTQ]:{id:r.LGBTQ,label:e._("LGBTQ+ owned","CommunityInfoChecklist.category.lgbtq_owned","Option for category of underrepresented group"),description:e._("This retailer's owner identified as a member of the LGBTQ+ community","InspirationalBadges.desc.lgbtq_owned","Tooltip description of a profile badge")},[r.DISABILITY]:{id:r.DISABILITY,label:e._("Disability-owned","CommunityInfoChecklist.category.disability_owned","Option for category of underrepresented group"),description:e._("This retailer's owner identified as a member of the disabled community","InspirationalBadges.desc.disability_owned","Tooltip description of a profile badge")},[r.WOMAN]:{id:r.WOMAN,label:e._("Woman-owned","CommunityInfoChecklist.category.woman_owned","Option for category of underrepresented group"),description:e._("This retailer's owner identified as a woman","InspirationalBadges.desc.woman_owned","Tooltip description of a profile badge")},[a.B_CORP]:c[s.INVESTED_IN_GOOD],[a.SUSTAINABILITY]:c[s.ECO_FRIENDLY],[a.PHILANTHROPY]:c[s.INVESTED_IN_GOOD],[a.BUSINESS_PRACTICES]:c[s.RESPONSIBLY_SOURCED],[a.FAIR_TRADE]:c[s.RESPONSIBLY_SOURCED],[a.INGREDIENTS]:c[s.RESPONSIBLY_SOURCED],[a.RECYCLED_MATERIALS]:c[s.ECO_FRIENDLY],[a.ARTISANS]:c[s.PERSONAL_TOUCH],[a.BODY_POSITIVE]:c[s.INCLUSIVE],[a.DIVERSE_MODELS]:c[s.INCLUSIVE],[a.PRODUCTS]:c[s.INCLUSIVE],[a.HANDMADE]:c[s.RESPONSIBLY_SOURCED],[a.SHOPPING_EXPERIENCE]:c[s.RESPONSIBLY_SOURCED],[s.ECO_FRIENDLY]:c[s.ECO_FRIENDLY],[s.INCLUSIVE]:c[s.INCLUSIVE],[s.INVESTED_IN_GOOD]:c[s.INVESTED_IN_GOOD],[s.PERSONAL_TOUCH]:c[s.PERSONAL_TOUCH],[s.RESPONSIBLY_SOURCED]:c[s.RESPONSIBLY_SOURCED]},p=t.map(e=>u[e]).filter(e=>e),h=Array.from(new Set(p)).sort((e,t)=>e.label.localeCompare(t.label)),m=h.filter(e=>r[e.id.toUpperCase()]||o[e.id.toUpperCase()]),b=h.filter(e=>c[e.id]);return(m.length?[...m.slice(0,n),...b]:b).slice(0,i)}function w(e){const t=Object(i.c)(e);if(!t)return"white";const[n,o,r]=t;return Object(i.b)(n,o,r)<=i.a?"white":"black"}function S(e){const t=e||p[0];return{backgroundColor:t,color:w(t)}}},"Wjv+":function(e,t,n){n.d(t,"a",(function(){return r}));var i=n("n6mq"),o=n("nKUr");function r({accessibilityLabel:e}){return Object(o.jsx)(i.u,{alignItems:"center",justifyContent:"center",children:Object(o.jsx)(i.U,{accessibilityLabel:e,show:!0})})}},WvRU:function(e,t){e.exports="https://s.pinimg.com/webapp/VI@2x-09999946.png"},WwS9:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return a}));var i=n("/MKj");function o(e){return Object(i.useSelector)(({pins:t})=>e?t[e]:null,i.shallowEqual)}function r(e){const t=null==e?void 0:e.story_pin_data;return Object(i.useSelector)(({storyPins:e})=>t?e[t]:null,i.shallowEqual)}function a(e){const t=null==e?void 0:e.pinner;return Object(i.useSelector)(({users:e})=>t?e[t]:null,i.shallowEqual)}},XBgn:function(e,t,n){n.d(t,"a",(function(){return d}));var i=n("q1tI"),o=n("yweb"),r=n("AGnR"),a=n("Aa0Q"),s=n("n6mq"),c=n("nKUr");const l={sm:12,md:16,lg:20,xl:24};function d({isVerifiedMerchant:e,size:t,showText:n,showVerifiedIdentity:d,inspirationalBadges:u,inspirationalBadgesColor:p}){const h=Object(o.c)(),[m,b]=Object(i.useState)(!1),{dangerousInlineStyle:f,iconColor:g}=Object(a.b)(!!e);return Object(c.jsxs)(i.Fragment,{children:[Object(c.jsx)(s.bb,{onTap:()=>{Object(r.h)({component:13534,element:11717}),b(!0)},rounding:"circle",children:Object(c.jsxs)(s.f,{alignItems:"center",dangerouslySetInlineStyle:f,display:"flex","data-test-id":"verified-badge-icon-"+g,children:[Object(c.jsx)(s.w,{accessibilityLabel:e?h._("Merchant verification badge icon","merchantVerification.badge.icon","Badge indicating that a merchant or user is verified"):h._("Badge icon","merchantVerification.badge.icon","Badge indicating that a merchant or user is verified"),icon:"workflow-status-ok",color:g,inline:!0,size:l[t]}),n&&!d&&Object(c.jsx)(s.f,{marginStart:2,children:Object(c.jsx)(s.cb,{color:"blue",inline:!0,weight:"bold",children:Object(c.jsx)(s.f,{dangerouslySetInlineStyle:f,children:h._("Verified merchant","creator.header.verifiedMerchant","this merchant is a verified merchant")})})})]})}),(e||n&&!d)&&Object(c.jsx)(a.a,{showModal:m,setShowModal:b,inspirationalBadges:u,inspirationalBadgesColor:p})]})}},XQZ6:function(e,t,n){n.d(t,"a",(function(){return d}));var i=n("Lr1Z"),o=n("n6mq"),r=n("nKUr");function a({skinToneOvalHeight:e,skinToneOvalWidth:t,swatchColors:n}){return Object(r.jsx)(o.f,{alignItems:"center","data-test-id":"skinToneFilterSwatch",display:"flex",overflow:"hidden",rounding:"pill",width:t,wrap:!0,children:n.map((n,i)=>Object(r.jsx)(o.f,{dangerouslySetInlineStyle:{__style:{backgroundColor:n}},height:e/2,width:t/2},`${n}-${i}`))})}var s=n("yweb"),c=n("AGnR");const l={filter_name:"Skin tone range",filter_term:"skin_face_color_l",multi_select:!1,options:[{display:"Range 1",swatch_hex_colors:["#F0E3DC","#F8D7D8","#F2D7BE","#F7C3AF"],term:"skin_color_bucket_id:1"},{display:"Range 2",swatch_hex_colors:["#DEBAB0","#E0999A","#DDA67C","#D98A64"],term:"skin_color_bucket_id:2"},{display:"Range 3",swatch_hex_colors:["#9A6B52","#A25847","#B37143","#BF6951"],term:"skin_color_bucket_id:3"},{display:"Range 4",swatch_hex_colors:["#683929","#34261F","#64281B","#4F2221"],term:"skin_color_bucket_id:4"}],vertical:"skin_tone"};function d({navigateReplace:e=!0,onClickApplyFilter:t,query:n,selectedSkinToneTerm:d,showHeaderText:u=!0,skinToneFilters:p=l}){const h=Object(s.c)(),m=p.options,b="/search/pins/?rs=rs&q="+n,f=d?h._("Some ideas in this skin tone range","SkinToneFilters.copy.termSelected","Skin tone filters text"):h._("Pick a skin tone range","SkinToneFilters.copy.noTermSelected","Skin tone filters text"),{filtersContainerHeight:g,filtersContainerWidth:j,skinToneOvalHeight:x,skinToneOvalWidth:y}=function(){const e="undefined"!=typeof window?Math.min((window.innerWidth-40)/4-4,96):0;return{filtersContainerHeight:52,filtersContainerWidth:e,skinToneOvalHeight:44,skinToneOvalWidth:e-8}}();return Object(r.jsxs)(o.u,{alignItems:"center",direction:"column",height:u?88:52,children:[u&&Object(r.jsx)(o.f,{marginBottom:2,children:Object(r.jsx)(o.cb,{color:"darkGray",overflow:"normal",weight:"bold",children:f})}),Object(r.jsx)(o.u,{alignItems:"stretch",flex:"none",justifyContent:"around",children:m.map(({swatch_hex_colors:s,term:l},u)=>Object(r.jsx)(i.a,{onTouch:()=>{!function(e){const{index:t,query:n,onClickApplyFilter:i}=e;Object(c.h)({aux_data:{entered_query:n,filter_type:"skin_tone",filter_value:t},element:1341,view_parameter:43,view_type:2}),null==i||i()}({index:u,query:n,onClickApplyFilter:t})},pressState:"none",replace:e,to:`${b}${d!==l?"&filters="+encodeURIComponent(l):""}`,children:Object(r.jsx)(o.f,{alignItems:"center",color:d===l?"darkGray":"white",display:"flex",height:g,justifyContent:"around",rounding:"pill",width:j,children:Object(r.jsx)(o.f,{alignItems:"center",color:"white",display:"flex",height:g-4,justifyContent:"around",rounding:"pill",width:j-4,children:Object(r.jsx)(a,{skinToneOvalHeight:x,skinToneOvalWidth:y,swatchColors:s})})})},l))})]})}},XtwW:function(e,t,n){var i;t.a=(i=window.performance)&&i.clearMarks&&i.clearMeasures&&i.clearResourceTimings&&i.getEntries&&i.getEntriesByName&&i.getEntriesByType&&i.mark&&i.measure&&i.now&&i.setResourceTimingBufferSize?i:null},Y8Sn:function(e,t,n){n.d(t,"i",(function(){return i})),n.d(t,"h",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"k",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return h}));const i=e=>!!e&&!!e.video_list,o=({story_pin_data_id:e})=>!!e,r=e=>{var t;return e.rich_summary&&e.rich_summary.products&&e.rich_summary.products.length>0||(null===(t=e.rich_metadata)||void 0===t?void 0:t.products)&&e.rich_metadata.products.length>0||!1},a=e=>!!e.promoter&&!e.is_downstream_promotion,s=e=>!!e.video_status&&5!==e.video_status,c=e=>!!e.creator_class,l=(e,t)=>{const{organicVideosAutoplaying:n,promotedVideosAutoplaying:i}=t,o={...n,...i};return!!o[e]&&!o[e].paused},d=e=>["email","messages","deep_linking"].includes(e),u=(e,t)=>{const{organicVideosAutoplaying:n,promotedVideosAutoplaying:i}=t,o={...n,...i};for(const r in o){const{paused:t}=o[r];if(r!==e&&!t)return!1}return!0},p=(e,t)=>{const{organicVideosAutoplaying:n,promotedVideosAutoplaying:i}=t,o={...n,...i};return o[e]&&o[e].currentTime},h=()=>{let e=800,t=400;return"undefined"!=typeof window&&(e=window.innerHeight,t=window.innerWidth),{windowHeight:e,windowWidth:t}}},YPSp:function(e,t){e.exports="https://s.pinimg.com/webapp/ES@2x-d867d9a4.png"},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)(),m=Object(a.a)(),b=()=>[{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(),b().forEach(e=>m(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.w,{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(),b().forEach(e=>m(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",lineClamp:1,children:Object(i.a)(t,27)})})]})})}},YaGO:function(e,t){e.exports="https://s.pinimg.com/webapp/zhTW@2x-0ef5b95c.png"},Yjl2:function(e,t,n){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return m}));var i=n("fV3A"),o=n.n(i),r=n("brMv"),a=n.n(r),s=n("SsqI"),c=n.n(s);const l="mweb_every_closeup_save_sound_haptics",d=e=>{const t=new(window.AudioContext||window.webkitAudioContext),n=new Audio(e);t.createMediaElementSource(n).connect(t.destination),n.muted=!1,n.crossOrigin="anonymous",n.play().catch(()=>{})},u=()=>{d(a.a)},p=()=>{d(o.a)},h=()=>{d(c.a)},m=()=>{window.navigator.vibrate&&window.navigator.vibrate(50)}},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}},ZCiT:function(e,t){e.exports="https://s.pinimg.com/webapp/KO@2x-1099f44a.png"},ZFin:function(e,t){e.exports="https://s.pinimg.com/webapp/NO@2x-fd9bd702.png"},Zswh:function(e,t,n){var i=n("1n73");t.a=()=>Object(i.b)().logContextEvent},a9a9:function(e,t,n){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var i=n("zpPL");const o=e=>i.a.instance.dispatch(function(e){return{type:"SPAMMY_CLICKTHROUGH_WARNING_SHOW",payload:e}}(e)),r=()=>i.a.instance.dispatch({type:"SPAMMY_CLICKTHROUGH_WARNING_DISMISS"})},afEI:function(e,t){e.exports="https://s.pinimg.com/webapp/UK@2x-5787bbf9.png"},bNC6:function(e,t,n){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));const i={id:14,name:"own_profile"},o={id:15,name:"other_profile"},r={initial_app_load:{unauth:{board:{id:114,name:"board_page_interactive"},pin_closeup:{id:113,name:"pin_page_interactive"},other_profile:{id:115,name:"user_page_interactive"},topic:{id:119,name:"topic_page_interactive"},sterling_signup:{id:201,name:"sterling_signup_main_pageload"},sterling_login:{id:202,name:"sterling_login_main_pageload"}},auth:{bizhub:{id:607,name:"bizhub_pinteractive"},homefeed:{id:19,name:"home_feed_pinteractive"},sterling_reporting_details:{id:218,name:"sterling_reporting_details_pageload"},sterling_reporting_overview:{id:219,name:"sterling_reporting_overview_pageload"},sterling_ads_create:{id:221,name:"sterling_adscreate_main_pageload"},sterling_ads_duplicate:{id:206,name:"sterling_adsduplication_main_pageload"},sterling_ads_edit:{id:204,name:"sterling_adsedit_main_pageload"},sterling_billing_profile:{id:203,name:"sterling_billingprofile_main_pageload"},sterling_bulk_editor:{id:205,name:"sterling_bulkeditor_main_pageload"},sterling_pin_builder:{id:222,name:"sterling_adscreate_pinbuilder_pageload"}}},client_route_push:{unauth:{},auth:{bizhub:{id:608,name:"bizhub_page_render"},homefeed:{id:2,name:"home_feed_render"},search:{id:3,name:"search_feed_render"},pin_closeup:{id:13,name:"pin_closeup_details"},own_profile:i,other_profile:o}},client_route_replace:{unauth:{},auth:{own_profile:i,other_profile:o}}},a={client_route_push:{auth:{pin_closeup:{story_pin:{id:700,name:"story_pin_closeup"}}}}},s={board_picker:16,grid_bottom_spinner:12,facebook_autologin:500,google_autologin:501,story_pin_step:701},c=e=>{var t,n;const{navigationType:i,isAuthenticated:o,segment:s,surface:c}=e,l=o?"auth":"unauth",d=null===(t=a[i])||void 0===t||null===(n=t[l])||void 0===n?void 0:n[c];return s&&d&&d[s]||r[i][l][c]},l=e=>{if("stopwatch"===e.type)return s[e.name]||null;const t=c(e);return t?t.id:null},d=e=>{if("stopwatch"===e.type)return e.name;const{navigationType:t,isAuthenticated:n,segment:i,surface:o}=e,r=n?"auth":"unauth",a=c(e);return a?a.name:`${t}_${r}_${o}${i?"_"+i:""}`}},bRfI:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("g6r8"),o=n("n6mq"),r=n("nKUr");function a({imageUrls:e,rounding:t,subtitle:n,subtitleSize:a,title:s,titleSize:c}){const l=Object(i.b)();if(!e||e.length<=0)return null;const d=e.slice(0,3);return Object(r.jsx)(o.f,{color:"white",overflow:"hidden",position:"relative",rounding:null!=t?t:8,dangerouslySetInlineStyle:{__style:{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",paddingTop:"75%"}},children:Object(r.jsxs)(o.f,{display:"flex",direction:"column",position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:[Object(r.jsx)(o.u,{alignItems:"stretch",justifyContent:"start",height:"100%",width:"100%",children:d.map((e,t)=>Object(r.jsx)(o.f,{width:100/d.length+"%",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:Object(r.jsx)(o.y,{alt:"",color:"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,role:"presentation",src:e})},t))}),Object(r.jsxs)(o.f,{flex:"none",paddingX:5,paddingY:6,width:"100%",children:[n&&Object(r.jsx)(o.f,{marginBottom:1,children:Object(r.jsx)(o.cb,{size:a,align:"center",weight:l?"bold":"normal",children:n})}),Object(r.jsx)(o.v,{size:c,align:"center",children:s})]})]})})}},bUAJ:function(e,t,n){n.d(t,"b",(function(){return u})),n.d(t,"g",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return x})),n.d(t,"i",(function(){return O}));var i=n("gxu6"),o=n("eOdZ"),r=n("28DW"),a=n("RNo4"),s=n("TXO6"),c=n("vtuW"),l=n("PmFr"),d=n("0G5S");const u=(e,t,n,i,o,r,a=l.g)=>{const s=Object(d.a)(a)?JSON.parse(Object(d.a)(a)):[];if(!s[0]||s[0].path!==e){const c=[{path:e,ts:Date.now(),pin_id:n||0,first_pin_image_signature:t||"",first_pin_id:n||"",image_info:i||"",pin_description:o||"",is_shared:!!r,pin_invite_code:r}];Object(d.c)(a,JSON.stringify(c.concat(s)))}},p=()=>{const e=Object(c.a)(l.j);if(!e)return[];let t;try{t=JSON.parse(e)}catch(n){t=[]}return t},h=({path:e,image:t,dominant_color:n,pin_description:i})=>{const o=p();if(!o[0]||o[0].path!==e){const r=[{path:e,image:t,pin_description:i||"",dominant_color:n||""}];Object(c.c)(l.j,JSON.stringify(r.concat(o)))}};function m(e,t,n,i,o,r){u(e,t,n,i,o,r,l.h)}const b=(e,t)=>{var n,i;u(e,t.image_signature,t.id,null===(n=t.images)||void 0===n?void 0:n["236x"],null!==(i=t.description)&&void 0!==i?i:"","",l.f)};function f(e,t,n,i,o){u(e,t,n,i,o,"",l.i)}function g(){const e=o.d.create("UnauthUserDataResource");return new Promise((t,n)=>{e.callGet().then(e=>{const o=e.resource_response.data,a=!!i.a("logged_out");return o?(Object(s.a)(o.medium_image_url)&&(o.medium_image_url=""),Object(r.a)("mweb.unauth.personalized_login.fetch_user_info.info.user_info_found.logged_out_cookie_"+(a?"true":"false")),t(o)):(Object(r.a)("mweb.unauth.personalized_login.fetch_user_info.info.no_user_info.logged_out_cookie_"+(a?"true":"false")),n({}))}).catch(e=>{if(e&&e.message){const t=e.message.replace(/\s/g,"_").toLowerCase();Object(r.a)("mweb.unauth.personalized_login.fetch_user_info.error."+t)}else Object(r.a)("mweb.unauth.personalized_login.fetch_user_info.error.unknown");return n(e)})})}function j({i18n:e,location:t}){const n=t.pathname.startsWith("/signup"),i=t.pathname.startsWith("/login");if(!n&&!i)return{showPLPBanner:!1,pinForBanner:null};let o;try{o=JSON.parse(Object(c.a)(l.j))}catch(r){o=[]}if(o&&o.length>0){const t=o[0];if(t)return t.bannerCopy=e._("More ideas like this await","page banner with pin image that was signed up from","page banner with pin image that was signed up from"),{showPLPBanner:Boolean(t.image),pinForBanner:t}}return{showPLPBanner:!1,pinForBanner:null}}const x=e=>e.search&&e.search.startsWith("?next=")?e.search.split("?next=")[1]:null;function y({i18n:e,location:t}){var n;const i=(null===(n=t.state)||void 0===n?void 0:n.next)||x(t);if(i){const t=i.indexOf("?"),n=Object(a.l)(i.substring(t));if(n.url&&n.media)return{showPLPBanner:!0,pinForBanner:{image:{url:Object(a.e)(n.media),height:1,width:1},pinDescription:n.description,bannerCopy:e._("Save this idea and discover more inspiration like it.","page banner with pin image that was signed up from","page banner with pin image that was signed up from")}}}return{showPLPBanner:!1,pinForBanner:null}}function O({i18n:e,location:t}){return y({i18n:e,location:t}).showPLPBanner?y({i18n:e,location:t}):j({i18n:e,location:t}).showPLPBanner?j({i18n:e,location:t}):{showPLPBanner:!1,pinForBanner:null}}},bZU8:function(e,t,n){n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return c}));const i="pwt-grid-item",o=['div[data-grid-item="true"]',"div.Masonry div.Collection-Item","div.Grid__Item",`div[data-test-id="${i}"]`],r=o.join(","),a=o.map(e=>e+" img").join(","),s=o.map(e=>e+" div[style*=background-image]").join(","),c=o.map(e=>e+" video").join(",")},brMv:function(e,t){e.exports="https://s.pinimg.com/webapp/saveButtonClick-fb5393ea.mp3"},c50B:function(e,t,n){n.d(t,"p",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"m",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"o",(function(){return d})),n.d(t,"i",(function(){return u})),n.d(t,"l",(function(){return p})),n.d(t,"r",(function(){return h})),n.d(t,"n",(function(){return m})),n.d(t,"j",(function(){return b})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return j})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return y})),n.d(t,"t",(function(){return O})),n.d(t,"q",(function(){return _})),n.d(t,"k",(function(){return v})),n.d(t,"s",(function(){return w})),n.d(t,"u",(function(){return S}));var i=n("jZDM");const o=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 r(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 a=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 s(e){return function(t,n){const i=[];(t=t&&t.trim())&&!t.match(a)&&i.push(e.message);const o={errors:i,warnings:[]};return n&&n(o),o}}function c(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 l(e){return function(t,n){const i=o(t.trim()),r=[];if(i)if(i.length<2&&r.push(e.ageTooShortString),/^\d+$/.test(i)){const t=parseInt(i,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 d(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 u(e){return function(t,n){const i=/^\d+$/,r=[];"number"==typeof t||"string"==typeof t&&(t=t&&t.trim(),(t=o(t))&&!t.match(i)&&r.push(e.message));const a={errors:r,warnings:[]};return n&&n(a),a}}function p(e){return function(t,n){const i=/^[\d\ -]+$/,r=[];"number"==typeof t||"string"==typeof t&&(t=t&&t.trim(),(t=o(t))&&!t.match(i)&&r.push(e.message));const a={errors:r,warnings:[]};return n&&n(a),a}}function h(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 m(e){return function(t,n){const o=[];if(t)try{const n=Object(i.a)(t);n&&n.protocol&&("http"!==n.protocol||"localhost"===n.hostname)||o.push(e.message)}catch(a){o.push(e.message)}const r={errors:o,warnings:[]};return n&&n(r),r}}function b(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 f(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 g(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 j(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 x(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 y(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 O(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 _(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 w(e,t){const n=e.map(e=>e(t).errors);return[].concat(...n)}function S(e,t){let n="";return t.some(t=>{const i=t(e);return i.errors.length>0&&(n=i.errors[0],!0)}),n}},cGzF:function(e,t){e.exports="https://s.pinimg.com/webapp/RU@2x-888d9aa1.png"},cXYV:function(e,t){e.exports="https://s.pinimg.com/webapp/zhCN@2x-0b2349f4.png"},d2Eh:function(e,t,n){t.a={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,F5:116,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}},dRc8:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("q1tI"),o=n("sEfC"),r=n.n(o);function a(){const[e,t]=Object(i.useState)(null);return Object(i.useEffect)(()=>{const e=()=>t({width:window.innerWidth,height:window.innerHeight});e();const n=r()(e,50);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}},dw4l:function(e,t,n){var i=n("q1tI"),o=n("/MKj"),r=n("qrav"),a=n("8zEK"),s=n("/0j8"),c=n("n6mq"),l=n("wMN6"),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",{isPlaying:!1,isVideoReady:!1,isVisibleForPlaying:!1,startLoading:!1}),u(this,"handleVisibilityChanged",e=>{const{intersectionRatio:t}=e[0],{isPlaying:n,isVideoReady:i,startLoading:o}=this.state;t>=.8?(this.setState({isVisibleForPlaying:!0}),this.videoRef&&(o?i&&!n&&this.videoRef.play():(this.videoRef.load(),this.setState({startLoading:!0})))):(this.setState({isVisibleForPlaying:!1}),this.videoRef&&i&&this.videoRef.pause())}),u(this,"handleVideoPause",()=>this.setState({isPlaying:!1})),u(this,"handleVideoPlay",()=>this.setState({isPlaying:!0})),u(this,"getVideoRef",e=>this.videoRef=e),u(this,"setIsVideoReadyTrue",()=>{this.setState({isVideoReady:!0}),this.videoRef&&!this.state.isPlaying&&this.state.isVisibleForPlaying&&this.videoRef.play()})}render(){const{isFullWidth:e,pin:t}=this.props,n=Object(a.a)(t);if(!n)return Object(d.jsx)(c.f,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}},children:Object(d.jsx)(s.a,{id:t.id})});const{height:i,thumbnail:o,url:u,width:p}=n,h=Object(l.e)(!0),m=(null!=i?i:1)/(null!=p?p:1),b=m*h;return Object(d.jsx)(r.a,{options:{threshold:[0,.5,.8,1]},onVisibilityChange:this.handleVisibilityChanged,children:Object(d.jsx)(c.f,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingBottom:100*m+"%"}},children:Object(d.jsx)(c.f,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:Object(d.jsx)("video",{height:e?b:"100%",muted:!0,onCanPlay:this.setIsVideoReadyTrue,onPause:this.handleVideoPause,onPlay:this.handleVideoPlay,playsInline:!0,poster:o,preload:"none",ref:this.getVideoRef,src:u,width:e?h:"100%"})})})})}}t.a=Object(o.connect)(({pins:e},{pinId:t})=>({pin:e[t]}),()=>({}))(p)},e5ub:function(e,t){e.exports="https://s.pinimg.com/webapp/TR@2x-c216b517.png"},eFhR:function(e,t,n){n.d(t,"a",(function(){return j}));var i=n("q1tI"),o=n("/MKj"),r=n("Lr1Z"),a=n("mp1x"),s=n("28DW"),c=n("yweb"),l=n("Dgpg"),d=n("eyT9"),u=n("QAzJ"),p=n("g6r8"),h=n("wzxk"),m=n("n6mq"),b=n("nKUr");function f({board:e,pinner:t}){var n,i;if(!e.url||!e.name)return null;const o=e.url.split("/")[1],a=t&&t.full_name?t.full_name:o,s=t&&(t.image_small_url||t.image_large_url);return Object(b.jsxs)(m.u,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[s?Object(b.jsx)(r.a,{to:`/${o}/`,inline:!0,pressState:"compress",children:Object(b.jsx)(m.f,{rounding:"circle",width:32,height:32,overflow:"hidden",marginEnd:2,children:Object(b.jsx)(m.y,{naturalHeight:32,naturalWidth:32,alt:a,fit:"cover",color:"rgb(231, 186, 176)",src:s})})},"profile-link"):null,Object(b.jsxs)(m.u,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[Object(b.jsx)(m.cb,{color:"darkGray",inline:!0,size:"md",weight:"bold",children:Object(b.jsx)(r.a,{to:`/${o}/`,inline:!0,pressState:"compress",children:a},"profile-link")},"profileLink"),Object(b.jsx)(m.cb,{color:"darkGray",inline:!0,size:"md",children:Object(b.jsx)(r.a,{to:null!==(n=e.url)&&void 0!==n?n:"",inline:!0,pressState:"compress",children:null!==(i=e.name)&&void 0!==i?i:""},"board-link")},"boardLink")]})]})}function g({annotations:e,board:t,description:n,pinner:i,title:o}){return Object(b.jsxs)(m.f,{children:[Object(b.jsx)(m.f,{marginBottom:2,children:e.length>0&&Object(b.jsx)(l.a,{annotations:e,mode:"expanded"})}),Object(b.jsx)(m.f,{marginBottom:3,children:Object(b.jsxs)(m.f,{as:"figcaption",children:[Object(b.jsx)(m.v,{color:"darkGray",size:"sm",accessibilityLevel:3,children:o}),Object(b.jsx)(m.f,{height:4}),Object(b.jsx)(m.cb,{color:"darkGray",children:n})]})}),!!t&&Object(b.jsx)(f,{board:t,pinner:i})]})}function j({pin:e,board:t,iconColor:n,pinner:r,size:l}){const f=Object(c.c)(),{unauthInterstitialDismissed:j,isSeoBot:x}=Object(o.useSelector)(({session:e})=>e),[y,O]=Object(i.useState)(!1),_=Object(p.b)(),{annotationsWithLinks:v,description:w}=Object(h.c)(e),S=Object(u.a)("mweb_trim_grid_title_ff")().anyEnabled,T=Object(h.b)(e,S)||e.description,I=!_,k=Object(b.jsx)(m.f,{color:Object(d.e)()?"darkGray":"white",dangerouslySetInlineStyle:{__style:{border:Object(d.e)()?void 0:"1px solid #efefef",transition:"transform 0.3s ease-out",WebkitOverflowScrolling:"touch"}},height:"100%",left:!0,maxHeight:"100%",overflow:"auto",position:"fixed",top:!0,width:I?"100%":"100vw",zIndex:new m.t(1),children:Object(b.jsxs)(m.f,{bottom:!0,left:!0,right:!0,top:!0,position:"fixed",padding:5,overflow:"scroll",marginTop:j?0:12,children:[Object(b.jsx)(m.f,{left:!0,position:"absolute",top:!0,color:"white",padding:4,children:Object(b.jsx)(m.x,{accessibilityLabel:f._("Cancel","close modal icon","close modal icon"),icon:"cancel",size:"sm",onClick:()=>{Object(s.a)("mweb.unauth.see_more.dismissed"),O(!1)}})}),Object(b.jsx)(m.f,{marginBottom:8,children:Object(b.jsx)(m.cb,{align:"center",weight:"bold",children:Object(b.jsx)("span",{className:"deprecatedTextSizeXL",children:f._("More information","more information label","more information label")})})}),Object(b.jsx)(g,{annotations:v,board:t,description:w,pinner:r,title:T})]})});return Object(b.jsxs)(m.f,{right:!0,"data-test-id":"SeoVaseSeeMoreButton",dangerouslySetInlineStyle:{__style:{float:"right"}},children:[Object(b.jsx)(m.x,{accessibilityLabel:f._("See more","more information icon","more information icon"),icon:"ellipsis",iconColor:n,size:l||"md",onClick:({event:e})=>{e.stopPropagation(),Object(s.a)("mweb.unauth.see_more.shown"),O(!0)}}),x&&I?Object(b.jsx)(m.f,{display:y?"flex":"none",children:k}):Object(b.jsx)(a.a,{childPaddingX:0,childPaddingY:0,hideCloseIcon:!0,isOpen:y,children:k})]})}},eqXv:function(e,t,n){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var i=n("eOdZ");const o=()=>{};const r={complaint:function(e,t){i.d.create("PinFeedbackResource",e).callUpdate().then(()=>t())},followBoard:function(e,t){i.d.create("BoardFollowResource",e).callCreate().then(()=>t())},followPinner:function(e,t){i.d.create("UserFollowResource",e).callCreate().then(()=>t())},followTopic:function(e,t){i.d.create("InterestFollowResource",e).callCreate().then(()=>t())},newsHubPinHide:function(e,t){i.d.create("NewsHubPinFeedbackResource",e).callUpdate().then(()=>t())},promotedComplaint:function(e,t){i.d.create("PinFeedbackResource",e).callUpdate().then(()=>t())},relatedPinHide:function(e,t){i.d.create("RelatedPinFeedbackResource",e).callUpdate().then(()=>t())},reportPin:function(e,t){t()},showAdReasons:function(e,t){t()},unfollowBoard:function(e,t){i.d.create("BoardFollowResource",e).callDelete().then(()=>t())},unfollowPinner:function(e,t){i.d.create("UserFollowResource",e).callDelete().then(()=>t())},unfollowTopic:function(e,t){i.d.create("InterestFollowResource",e).callDelete().then(()=>t())},unrelatedSearchPin:function(e,t){i.d.create("SearchPinFeedbackResource",e).callUpdate().then(()=>t())}},a=["complaint","relatedPinHide","unrelatedSearchPin","promotedComplaint","newsHubPinHide","unfollowBoard","unfollowPinner","unfollowTopic"];function s(e,t,n=o){const i=r[e];return i?i(t,n):n()}},eqwQ:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("SvRC"),o=(n("n6mq"),n("EC67")),r=n("nKUr");function a({emptyState:e,feedItemProps:t=(()=>({})),feedKey:n,feedOffset:a=(()=>0),gridConfig:s=(()=>({})),noCache:c,pullToRefresh:l=!1,renderFeedItem:d,resourceName:u,resourceOptions:p,resourceSchema:h,trafficSource:m,serverRender:b}){return function(f){const g=Object(o.i)(),j=Object(o.h)(),x=Object(o.k)(),y={...f,location:g,history:j,match:x};return Object(r.jsx)(i.c,{resourceConfig:{name:u,options:"function"==typeof p?p(y):p,schema:h,noCache:"function"==typeof c?c(y):c},feedItemProps:t&&t(y),feedKey:"function"==typeof n?n(y):n,feedOffset:a(y),gridConfig:s&&s(y),pullToRefresh:l,renderFeedItem:d&&((e,t)=>d(e,t,f)),trafficSource:"function"==typeof m?m(y):m,emptyState:e&&e(y),serverRender:b})}}},fEUV:function(e,t){e.exports="https://s.pinimg.com/webapp/EL@2x-e764ccf8.png"},fJfT:function(e,t,n){n.d(t,"e",(function(){return b})),n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"a",(function(){return j})),n.d(t,"d",(function(){return x})),n.d(t,"c",(function(){return y}));var i=n("TPPM"),o=n("ajUs"),r=n("SXoC"),a=n("tVBo"),s=n("gxu6"),c=n("T0g9");var l={open(e,t,n,o,r){const a=Math.round(1e3*Math.random())+"",l=Math.round(1e3*Math.random())+"";s.b("offsite_"+a,l);const d={token:a+"-"+l,url:e,csr:void 0,pin:void 0,client_tracking_params:o,aux_data:r?JSON.stringify(r):void 0};t?d.pin=t:n&&(d.csr=n),Object(i.a)("/offsite/?"+Object(c.a)(d),!0)}};var d=n("nXhh"),u=n("zwad"),p=n("a9a9"),h=n("Y8Sn"),m=n("078/");const b=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},f=({isExternalLink:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),g=({location:e,pin:t,surface:n})=>!Object(h.f)(t)&&(({location:e,pinId:t,surface:n})=>{const i=Boolean(n),o=m.a.includes(n),r=e.pathname.includes(t);return i&&!o||r})({location:e,pinId:t.id,surface:n}),j=async({isMounted:e,pin:t,location:n,spamCheckCallback:i,href:r})=>{const s=await Object(a.a)({check_only:!0,client_tracking_params:Object(o.a)(t,n),pin_id:null==t?void 0:t.id,url:r}).callGet({showError:!1});if(!s.resource_response.error&&e){const e=s.resource_response.data||{},{message:t,redirect_status:n,url:o}=e;i({blocked:["blocked","suspicious","porn"].includes(n),message:t,redirectStatus:n,sanitized_url:o})}},x=({event:e,onHistoryChange:t,href:n,history:o,target:a})=>{const s=Object(r.a)(n);s===d.a.TRUSTED_DIFFERENT_ORIGIN||"blank"===a?Object(i.a)(n,"blank"===a):o&&s===d.a.SAME_ORIGIN&&(o.push(u.a.normalizeUrl(n)),t&&t({event:e}))},y=({href:e,pinId:t,pin:n,location:i,auxData:r,spamCheck:s})=>{"undefined"!=typeof window&&window.Windows?function({url:e,pinId:t,pin:n,location:i,auxData:r}){const s={check_only:!0,client_tracking_params:n?Object(o.a)(n,i):void 0,pin_id:n?n.id:t,url:e,aux_data:JSON.stringify(r)};Object(a.a)(s).callGet().then(a=>{if(a&&a.resource_response&&!a.resource_response.error){const{resource_response:e}=a,{redirect_status:t,url:n}=e.data;if(!["blocked","suspicious","porn"].includes(t)){if(window.Windows.Foundation&&window.Windows.System&&window.Windows.System.Launcher&&window.Windows.System.Launcher.launchUriAsync){const e=new window.Windows.Foundation.Uri(n);window.Windows.System.Launcher.launchUriAsync(e)}return}}if(n){const a=Object(o.a)(n,i);l.open(e,t,null,a,r)}else l.open(e,t)})}({url:e,pinId:t,pin:n,location:i,auxData:r}):n?(({spamCheck:e,auxData:t,location:n,pin:i,pinId:r,href:a})=>{null!=e&&e.blocked?Object(p.b)(e):l.open(a,r,null,Object(o.a)(i,n),t)})({spamCheck:s,auxData:r,location:i,pin:n,pinId:t,href:e}):l.open(e,t)}},fM3H:function(e){e.exports=JSON.parse('{"v":"5.6.5","fr":29.9700012207031,"ip":0,"op":224.000009123707,"w":750,"h":1334,"nm":"bgonly","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 5","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":106,"s":[100]},{"t":115.000004684046,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[251.504,811.504,0],"ix":2},"a":{"a":0,"k":[3.504,385.504,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.473,0.473,26.039]},"t":47,"s":[-15,-15,100]},{"t":90.0000036657751,"s":[40,40,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[317.008,317.008],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.992156862745,0.360784313725,0.298039215686,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[4.387,385.645],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":46.0000018736184,"op":6410.00026108465,"st":-63.0000025660426,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":72,"s":[100]},{"t":81.0000032991976,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[622.504,883.504,0],"ix":2},"a":{"a":0,"k":[3.504,385.504,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"rc","d":1,"s":{"a":0,"k":[566,552],"ix":2},"p":{"a":0,"k":[0,352],"ix":3},"r":{"a":0,"k":67,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0.167,0.167],"y":[0,0]},"t":21,"s":[10,10]},{"t":86.0000035028518,"s":[317.008,317.008]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.454901960784,0.909803921569,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.41],"y":[1]},"o":{"x":[0.167],"y":[1.509]},"t":21,"s":[43]},{"t":86.0000035028518,"s":[4]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[4.387,385.645],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":20.0000008146167,"op":6384.00026002565,"st":-89.0000036250443,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[128.504,249.504,0],"ix":2},"a":{"a":0,"k":[3.504,385.504,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.12,0.12,0.12],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.7,0.7,31.489]},"t":40,"s":[15,15,100]},{"t":92.0000037472368,"s":[60,60,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"rc","d":1,"s":{"a":0,"k":[1121,959],"ix":2},"p":{"a":0,"k":[0,364],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[317.008,317.008],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.105882352941,0.705882352941,0.443137254902,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.12],"y":[1]},"o":{"x":[0.167],"y":[0.197]},"t":40,"s":[326]},{"t":111.000004521123,"s":[0]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[4.387,385.645],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":40.0000016292334,"op":6437.00026218439,"st":-36.0000014663101,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":120,"s":[100]},{"t":141.000005743048,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[372.504,576.504,0],"ix":2},"a":{"a":0,"k":[3.504,385.504,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.085,0.085,26.096]},"t":12,"s":[-10,-10,100]},{"t":142.000005783779,"s":[297,297,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"rc","d":1,"s":{"a":0,"k":[500,500],"ix":2},"p":{"a":0,"k":[0,417],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[317.008,317.008],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.862745098039,0.596078431373,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":12,"s":[10]},{"t":127.000005172816,"s":[3]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[4.387,385.645],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":11.0000004480392,"op":6437.00026218439,"st":-36.0000014663101,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Shape Layer 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[63.609,848.609,0],"ix":2},"a":{"a":0,"k":[-254.719,-5.039,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":85,"s":[0,0,100]},{"t":227.0000092459,"s":[12,12,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[431.219,431.219],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.086274509804,0.501960784314,0.98431372549,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-254.719,-5.039],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":75.0000030548126,"op":6548.00026670551,"st":75.0000030548126,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Shape Layer 7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[676.609,387.609,0],"ix":2},"a":{"a":0,"k":[-254.719,-5.039,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":58,"s":[0,0,100]},{"t":200.000008146167,"s":[8,8,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[431.219,431.219],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.988235294118,0.78431372549,0.180392156863,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-254.719,-5.039],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":48.0000019550801,"op":6521.00026560577,"st":48.0000019550801,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Shape Layer 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[629.609,321.609,0],"ix":2},"a":{"a":0,"k":[-254.719,-5.039,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":30,"s":[0,0,100]},{"t":172.000007005704,"s":[19,19,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[431.219,431.219],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.105882352941,0.705882352941,0.443137254902,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-254.719,-5.039],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":20.0000008146167,"op":6493.00026446531,"st":20.0000008146167,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Shape Layer 8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[641.609,1042.609,0],"ix":2},"a":{"a":0,"k":[-254.719,-5.039,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.24,0.24,0.24],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":60,"s":[0,0,100]},{"t":225.000009164438,"s":[106,106,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[431.219,431.219],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.894117647059,0.764705882353,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-254.719,-5.039],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":50.0000020365418,"op":6523.00026568724,"st":50.0000020365418,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Shape Layer 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[175.609,467.609,0],"ix":2},"a":{"a":0,"k":[-254.719,-5.039,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[1.117,1.117,173.148]},"t":10,"s":[0,0,100]},{"t":197.000008023974,"s":[155,155,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[431.219,431.219],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.898039215686,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-254.719,-5.039],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":6473.0002636507,"st":0,"bm":0},{"ddd":0,"ind":10,"ty":1,"nm":"White Solid 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[375,667,0],"ix":2},"a":{"a":0,"k":[375,667,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"sw":750,"sh":1334,"sc":"#ffffff","ip":0,"op":6473.0002636507,"st":0,"bm":0}],"markers":[]}')},fV3A:function(e,t){e.exports="https://s.pinimg.com/webapp/complete-d417088f.mp3"},fZG9:function(e,t,n){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return x}));var i=n("K8G+"),o=n("bNC6"),r=n("HMdf"),a=n("+lzj"),s=n("SyXB"),c=n("nEAA");const l=(e,t)=>(e||[]).reduce((e,n)=>({...e,["experiment."+n]:Object(c.d)(t(n))}),{}),d=(e,t)=>"number"==typeof t?e(t):null,u=e=>e.reduce((e,t)=>e+t,0),p=(e,t)=>Object.keys(t).reduce((n,i)=>({...n,[`${e}${i}`]:t[i]}),{}),h=e=>{if(!e.length)return{};const t=e.map(({startTime:e,requestStart:t,responseStart:n,responseEnd:i})=>{const o=t||e;return{startTime:e,requestStart:o,responseStart:n||o,responseEnd:i}}),n=u(t.map(e=>e.requestStart-e.startTime)),i=u(t.map(e=>e.responseStart-e.requestStart)),o=u(t.map(e=>e.responseEnd-e.responseStart)),r=n+i+o,a=u(e.map(e=>e.decodedBodySize||0));return{decodedBodySize:Object(c.b)((s=a,Number(Number(s/1024).toFixed(3)))),"duration.all":Object(c.b)(r),"duration.requestStartToResponseStart":Object(c.b)(i),"duration.responseStartToResponseEnd":Object(c.b)(o),"duration.startToRequestStart":Object(c.b)(n)};var s},m=e=>{const t=e.filter(e=>!!e.responseEnd);return{...e.length?{...h(t),"count.completed":Object(c.b)(t.length)}:{},"count.all":Object(c.b)(e.length)}},b=e=>{const t=e.reduce((e,t)=>(e[t.category]=(e[t.category]||[]).concat([t]),e),{}),n={script:t.script,script_deferred:e.filter(e=>e.isDeferred),external:e.filter(e=>e.isExternal),css:t.css,image:t.image,video:t.video,xmlhttprequest:t.xmlhttprequest,visually_complete:e.filter(e=>e.isVisuallyCompleteRequired)};return Object.keys(n).reduce((e,t)=>({...e,...p(`resource.${t}.`,m((n[t]||[]).map(e=>e.timing)))}),{})},f=(e,t)=>{const{devicePixelRatio:n,navigator:r,innerWidth:a,innerHeight:s,performance:l}=window,{deviceMemory:d,hardwareConcurrency:u,platform:p,userAgent:h}=r,{memory:m}=l,{appType:b,appVersion:f,browserName:g,browserVersion:j,deviceType:x,isAppShell:y,isAuthenticated:O,isBot:_,isSocialBot:v,locale:w,osName:S,stageName:T}=t,I="desktop"===x?b||5:b||6;let k;const{navigationType:C}=e;let E=null;if("initial_app_load"===C){var P;k=1;const e=null===(P=Object(i.a)("navigation")[0])||void 0===P?void 0:P.transferSize;E=e?parseFloat((.001*e).toFixed(1)):null}else k=4;return{"app.type":Object(c.c)(I),"app.version":Object(c.d)(f),"browser.name":Object(c.d)(g),"browser.version":Object(c.d)(j),"cpu.speed":Object(c.c)(u),"device.memory":Object(c.c)(d),"device.type":Object(c.c)(0),"device.typeName":Object(c.d)(x),"device.version":Object(c.d)("unknown"),"pwt.cause":Object(c.c)(k),"pwt.result":Object(c.c)(1),"view.type":Object(c.b)(0),"viewport.height":Object(c.b)(s||0),"viewport.width":Object(c.b)(a||0),devicePixelRatio:Object(c.b)(n||0),isAppShell:Object(c.a)(y),isAuthenticated:Object(c.a)(O),isBot:Object(c.a)(_),isSocialBot:Object(c.a)(v),locale:Object(c.d)(w),osName:Object(c.d)(S),...null!==E&&{htmlResponseSize:Object(c.b)(E)},platform:Object(c.d)(p||null),profilerVersion:Object(c.d)("3"),pwtActionName:Object(c.c)(Object(o.a)(e)),stageName:Object(c.d)(T),userAgent:Object(c.d)(h),usedJSHeapSize:Object(c.b)((null==m?void 0:m.usedJSHeapSize)||0),totalJSHeapSize:Object(c.b)((null==m?void 0:m.totalJSHeapSize)||0),jsHeapSizeLimit:Object(c.b)((null==m?void 0:m.jsHeapSizeLimit)||0)}},g=({annotateExperiments:e,metricId:t,pwtStaticContext:n,binaryAnnotations:i={},performanceResourceTimings:o=[]})=>{let a={};{const{connection:e,hardwareConcurrency:t,deviceMemory:n}=window.navigator;a={"net.effectiveType":Object(c.d)((null==e?void 0:e.effectiveType)||null),"net.rtt":Object(c.b)(d(e=>10*Math.round(e/10),null==e?void 0:e.rtt)),"net.speed":Object(c.b)(Object(r.b)(o,!1)),"cpu.threads":Object(c.c)(t),"memory.size":Object(c.b)(n)}}return{...l(e,n.getExperimentGroup),...f(t,n),...i,...a,stopwatchVersion:Object(c.c)(1)}},j=(e,t,n)=>{var i;const{navigator:o}=window,{connection:l,serviceWorker:p}=o,{surface:h,navigationType:m,isAuthenticated:b}=e,{cumulativeLayoutShiftScore:f,longTaskDurations:g}=Object(a.e)();return{...g.length?{"longTask.count":Object(c.b)(g.length),"longTask.maxDuration":Object(c.b)(Math.max(...g)),"longTask.totalDuration":Object(c.b)(u(g))}:{},cumulativeLayoutShiftScore:Object(c.b)(100*f),"masonry.paginationMarkCount":Object(c.b)(Object(s.e)(s.a,t)),"metricId.isAuthenticated":Object(c.a)(b),"metricId.navigationType":Object(c.d)(m),"metricId.surface":Object(c.d)(h),"net.effectiveType":Object(c.d)((null==l?void 0:l.effectiveType)||null),"net.rtt":Object(c.b)(d(e=>10*Math.round(e/10),null==l?void 0:l.rtt)),"net.speed":Object(c.b)(Object(r.b)(n)),resourceBufferClearedCount:Object(c.c)(Object(s.e)("resourceBufferCleared",t)),scrollDuringLayout:Object(c.a)(Object(s.f)("scrollDuringLayout",t)),serviceWorker:Object(c.a)(p?!!p.controller:null),serviceWorkerState:Object(c.d)((null==p||null===(i=p.controller)||void 0===i?void 0:i.state)||null)}},x=({annotateExperiments:e,binaryAnnotations:t={},entries:n,metricId:i,performanceResources:o,pwtEndTime:r,pwtStaticContext:a})=>({...t,...b(o),...l(e,a.getExperimentGroup),...f(i,a),...j(i,r,n)})},ffDT:function(e,t,n){var i=n("q1tI"),o=n("/MKj"),r=n("i2lo"),a=n("bcHz"),s=n("n6mq"),c=n("4kAQ"),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",{paused:!1,showPulsar:!1,hasMounted:!1}),d(this,"handleDismiss",e=>{const{onClickDismiss:t,dismissExperience:n,experience:i}=this.props;if(!i)return;const{experience_id:o,placement_id:r}=i;n(r,o),t&&t()}),d(this,"wrapperRef",Object(i.createRef)())}componentDidMount(){this.props.experience&&(this.mountPulsar(),this.setState({hasMounted:!0}))}mountPulsar(){const{experience:e}=this.props;if(!e)return;const{display_data:t}=e;t.has_pulsar&&this.setState({showPulsar:!0})}renderPulsar(){const e=this.wrapperRef,{paused:t}=this.state;if(!e||!e.current)return null;const n=e.current.getBoundingClientRect(),{height:i,width:o}=n,r=-(68+i/2),c=-(68-o/2);return Object(l.jsx)(a.a,{pressState:"none",children:Object(l.jsx)(s.f,{position:"absolute",dangerouslySetInlineStyle:{__style:{zIndex:1,marginTop:r,marginLeft:c,pointerEvents:"none"}},children:Object(l.jsx)(s.M,{paused:t,size:136})})})}render(){const{idealDirection:e,eligibleIds:t,showCaret:n,size:i,color:o,children:a,experience:c}=this.props,{showPulsar:d,hasMounted:u}=this.state;if(!c||!t.includes(c.experience_id)||!u)return a({experience:c});const{display_data:p}=c;return Object(l.jsx)(r.a,{eligibleIds:t,experience:c,children:Object(l.jsxs)(s.f,{ref:this.wrapperRef,children:[a({experience:c}),d?this.renderPulsar():p.has_tooltip&&Object(l.jsx)(s.L,{anchor:this.wrapperRef.current,color:o,idealDirection:e||"down",onDismiss:this.handleDismiss,showCaret:n,size:i,children:Object(l.jsx)(s.f,{column:12,padding:3,children:Object(l.jsx)(s.cb,{color:"white",weight:"bold",children:p.text})})})]})})}}t.a=Object(o.connect)(null,e=>({dismissExperience:(t,n)=>e(Object(c.d)(t,n)),completeExperience:(t,n)=>e(Object(c.a)(t,n))}))(u)},fyR6:function(e,t,n){t.a=e=>{let t=null;return{get:()=>t||e(),save:()=>{t=e()}}}},gCPk:function(e,t,n){var i=n("/MKj"),o=n("8W6c"),r=n("n6mq"),a=n("nKUr");var s=({imageUrls:e,subtitle:t,subtitleSize:n,title:i,titleSize:o})=>!e||e.length<=0?null:Object(a.jsx)(r.f,{color:"white",overflow:"hidden",position:"relative",rounding:8,dangerouslySetInlineStyle:{__style:{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",paddingTop:"75%"}},children:Object(a.jsx)(r.f,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:Object(a.jsx)(r.y,{alt:i,color:"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:e[0],children:Object(a.jsx)(r.f,{height:"100%",width:"100%",dangerouslySetInlineStyle:{__style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%)"}},display:"flex",alignItems:"end",paddingY:6,paddingX:5,children:Object(a.jsxs)(r.u,{alignItems:"stretch",direction:"column",justifyContent:"center",width:"100%",children:[t&&Object(a.jsx)(r.f,{marginBottom:1,children:Object(a.jsx)(r.cb,{color:"white",size:n,align:"center",children:t})}),Object(a.jsx)(r.v,{color:"white",size:o,align:"center",children:i})]})})})})}),c=n("FDmi"),l=n("I6XH"),d=n("AGnR");const u=Math.floor(24);var p=({articleId:e,imageUrls:t,subtitle:n,title:o,viewParameter:s,viewType:p,user:h})=>{const{isAuthenticated:m}=Object(i.useSelector)(({session:e})=>e);if(!h||!t||t.length<=0)return null;const{full_name:b,image_medium_url:f,image_small_url:g}=h,j=f||g||"",x=Math.min(t.length,3),y={aux_data:{today_article_id:e},component:13525,object_id_str:e,view_parameter:s,view_type:p};return Object(a.jsxs)(r.f,{color:"white",overflow:"hidden",rounding:8,dangerouslySetInlineStyle:{__style:{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"}},children:[Object(a.jsx)(r.f,{display:"flex",position:"relative",width:"100%",dangerouslySetInlineStyle:{__style:{paddingTop:"45%"}},children:Object(a.jsx)(r.f,{display:"flex",height:"100%",direction:"row",left:!0,position:"absolute",top:!0,width:"100%",children:t.slice(0,x).map((e,t)=>Object(a.jsx)(r.f,{width:100/x+"%",children:Object(a.jsx)(r.y,{alt:"",color:"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:e},t)}))})}),Object(a.jsxs)(r.f,{flex:"none",paddingX:5,paddingY:6,position:"relative",width:"100%",children:[Object(a.jsx)(r.f,{height:48,position:"absolute",width:48,dangerouslySetInlineStyle:{__style:{left:`calc(50% - ${u}px)`,top:`-${u}px`}},children:Object(a.jsx)(c.a,{name:null!=b?b:"",outline:!0,size:"fit",src:j})}),o&&Object(a.jsx)(r.f,{marginTop:2,children:Object(a.jsx)(r.v,{size:"sm",align:"center",children:o})}),n&&Object(a.jsx)(r.f,{marginTop:2,children:Object(a.jsx)(r.cb,{align:"center",size:"sm",children:n})}),m&&Object(a.jsx)(r.f,{display:"flex",justifyContent:"center",marginTop:3,children:Object(a.jsx)(l.a,{isSecondaryButton:!0,onTap:()=>{Object(d.h)({...y,element:62})},size:"lg",user:h,viewParameter:s,viewType:p})})]})]})},h=n("7MwI"),m=n("2A+z");var b=function({userId:e}){return Object(a.jsx)(m.a,{avatarSize:"xs",hideButtons:!0,shouldNavigateToProfile:!1,type:"row",userId:e,viewParameter:3372,viewType:1})},f=n("F2ZA"),g=n("t84P"),j=n("EC67"),x=n("WwS9");var y=function({articleId:e,gridIndex:t,pinId:n,pinOfficialUserId:i,showCreator:o,title:s,viewParameter:c,viewType:l}){var d;const u=Object(j.i)(),p=Object(x.a)(n);if(!p)return null;const{images:m}=p,y=(null==m?void 0:m["736x"])||(null==m?void 0:m["236x"])||(null==m?void 0:m["170x"]);if(!y)return null;const O=Object(f.d)(i,p);return Object(a.jsxs)(r.f,{color:"white",overflow:"hidden",rounding:8,dangerouslySetInlineStyle:{__style:{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"}},children:[Object(a.jsx)(g.d,{auxData:{grid_index:t,today_article_id:e},loggingId:p.id,objectIdStr:p.id,slotIndex:t,impressionData:{imageURL:y.url},component:13525,trackingParams:Object(h.a)((u.state||{}).trackingParams,p),viewParameter:c,viewType:l,children:Object(a.jsx)(r.f,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingTop:"number"==typeof y.height&&"number"==typeof y.width?y.height/y.width*100+"%":"100%"}},children:Object(a.jsx)(r.f,{position:"absolute",top:!0,left:!0,right:!0,bottom:!0,children:Object(a.jsx)(r.y,{alt:s,color:"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(d=y.url)&&void 0!==d?d:""})})})}),Object(a.jsxs)(r.f,{paddingX:6,paddingY:4,display:"flex",justifyContent:"center",direction:"column",children:[Object(a.jsx)(r.v,{align:"center",size:"sm",children:s}),o&&O&&Object(a.jsx)(r.f,{display:"flex",marginTop:3,justifyContent:"center",children:Object(a.jsx)(b,{userId:O})})]})]})},O=n("Ido7");var _=({articleId:e,gridIndex:t,pinId:n,title:i,viewParameter:o,viewType:s})=>{var l;const d=Object(j.i)(),u=Object(x.a)(n),p=Object(x.b)(u),m=Object(x.c)(u);if(!u)return null;const b=(null==m?void 0:m.page_count)||"",{images:f}=u,y=(null==f?void 0:f["736x"])||(null==f?void 0:f["236x"])||(null==f?void 0:f["170x"]);if(!y)return null;const _=(null==p?void 0:p.image_medium_url)||(null==p?void 0:p.image_small_url)||"",v=(null==p?void 0:p.full_name)||"",w=Boolean(_||v);return Object(a.jsxs)(r.f,{color:"white",overflow:"hidden",paddingY:6,rounding:8,dangerouslySetInlineStyle:{__style:{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"}},children:[Object(a.jsx)(r.f,{paddingX:6,display:"flex",justifyContent:"center",children:Object(a.jsx)(r.v,{align:"center",size:"sm",children:i})}),Object(a.jsx)(g.d,{auxData:{grid_index:t,today_article_id:e},loggingId:u.id,objectIdStr:u.id,slotIndex:t,impressionData:{imageURL:y.url},component:13525,trackingParams:Object(h.a)((d.state||{}).trackingParams,u),viewParameter:o,viewType:s,children:Object(a.jsxs)(r.f,{marginTop:4,paddingX:12,children:[Object(a.jsx)(r.D,{rounding:8,children:Object(a.jsx)(r.f,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingTop:"number"==typeof y.height&&"number"==typeof y.width?y.height/y.width*100+"%":"100%"}},children:Object(a.jsx)(r.f,{position:"absolute",top:!0,left:!0,right:!0,bottom:!0,children:Object(a.jsx)(r.y,{alt:"",color:"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(l=y.url)&&void 0!==l?l:"",children:Object(a.jsx)(r.f,{position:"relative",marginStart:1,marginTop:1,children:Object(a.jsx)(O.a,{icon:"story-pin",text:b.toString()})})})})})}),w&&Object(a.jsxs)(r.f,{alignItems:"center",display:"flex",marginTop:2,maxWidth:"100%",children:[Object(a.jsx)(r.f,{flex:"none",height:44,width:44,marginEnd:2,children:Object(a.jsx)(c.a,{name:"",outline:!0,size:"fit",src:_})}),Object(a.jsx)(r.cb,{lineClamp:1,children:v})]})]})})]})},v=n("dw4l");var w=function({articleId:e,gridIndex:t,pinOfficialUserId:n,showCreator:i,title:o,videoPinId:s,viewParameter:c,viewType:l}){const d=Object(j.i)(),u=Object(x.a)(s);if(!u)return null;const{images:p}=u,m=(null==p?void 0:p["736x"])||(null==p?void 0:p["236x"])||(null==p?void 0:p["170x"])||{},y=Object(f.d)(n,u);return Object(a.jsxs)(r.f,{color:"white",direction:"column",display:"flex",flex:"none",overflow:"hidden",rounding:8,dangerouslySetInlineStyle:{__style:{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",transform:"translate3d(0, 0, 0)"}},children:[Object(a.jsx)(g.d,{auxData:{grid_index:t,today_article_id:e},loggingId:s,objectIdStr:s,slotIndex:t,impressionData:{imageURL:m.url},component:13525,trackingParams:Object(h.a)((d.state||{}).trackingParams,u),viewParameter:c,viewType:l,children:Object(a.jsx)(v.a,{pinId:s})}),Object(a.jsxs)(r.f,{paddingX:6,paddingY:4,display:"flex",justifyContent:"center",direction:"column",children:[Object(a.jsx)(r.v,{align:"center",size:"sm",children:o}),i&&y&&Object(a.jsx)(r.f,{display:"flex",marginTop:3,justifyContent:"center",children:Object(a.jsx)(b,{userId:y})})]})]})},S=n("bRfI"),T=n("g6r8");const I=new Set([3,2,6]),k=({children:e,href:t,isAuthenticated:n,isTodayArticlePage:i,onTap:o})=>{const s=Object(T.b)();return n?Object(a.jsx)(r.bb,{onTap:({event:e,disableOnNavigation:t})=>{t(),o({event:e})},tapStyle:"compress",children:e}):Object(a.jsx)(r.bb,{href:t,onTap:({event:e,disableOnNavigation:t})=>{t(),o({event:e})},role:"link",children:s?Object(a.jsx)(r.f,{width:i?void 0:408,minHeight:i?void 0:306,children:e}):e})};t.a=({gridIndex:e,id:t,isTodayArticlePage:n=!1,article:c,subtitleSize:l,titleSize:u,viewParameter:h,viewType:m})=>{const b=Object(j.h)(),x=Object(i.useSelector)(({users:e})=>e),O=Object(i.useSelector)(({pins:e})=>e),{isAuthenticated:v}=Object(i.useSelector)(({session:e})=>e),T=Object(i.useSelector)(({todayArticles:e})=>c||e[t]);if(!T)return null;const{article_creator_user:C,content_pin:E,content_pin_official_user:P,display_type:A,feed_source:L,header_pin_id:D,image_urls:R,show_creator:B,subtitle:N,title:F,video_pin:M}=T;let U=null,H=Object(f.e)(L,F,t);switch(A){case 0:U=Object(a.jsx)(s,{imageUrls:R,subtitle:N,subtitleSize:l||"lg",title:F,titleSize:u||"md"});break;case 1:U=Object(a.jsx)(S.a,{imageUrls:R,subtitle:N,subtitleSize:l||"lg",title:F,titleSize:u||"md"});break;case 8:const n=x[C||""];n?(U=Object(a.jsx)(p,{articleId:t,imageUrls:R,subtitle:N,title:F,user:n,viewParameter:h,viewType:m}),H=`/${encodeURIComponent(n.username)}/`):U=null;break;case 2:M&&(U=Object(a.jsx)(w,{articleId:t,gridIndex:e,pinOfficialUserId:P,showCreator:B,title:F,videoPinId:M,viewParameter:h,viewType:m}),H="/pin/"+M);break;case 3:U=Object(a.jsx)(y,{articleId:t,gridIndex:e,pinId:E,pinOfficialUserId:P,showCreator:B,title:F,viewParameter:h,viewType:m}),H="/pin/"+D;break;case 6:U=Object(a.jsx)(_,{articleId:t,gridIndex:e,pinId:E,title:F,viewParameter:h,viewType:m}),H="/pin/"+D;break;default:U=null}return U?Object(a.jsx)(g.f,{auxData:{grid_index:e.toString(),today_article_id:t},loggingId:t,objectIdStr:t,slotIndex:e,viewParameter:h||3372,viewType:m||1,children:({impressionTrackerRef:i})=>Object(a.jsx)(r.f,{ref:i,children:Object(a.jsx)(k,{href:H,isAuthenticated:v,isTodayArticlePage:n,onTap:()=>{if(Object(d.h)({view_type:m||1,view_parameter:h||3372,component:13525,aux_data:{today_article_id:t,grid_index:e.toString()}}),I.has(A)){const t=E||M;Object(d.e)({event_type:8948,view_type:m||1,view_parameter:h||3372,object_id_str:t,clientTrackingParams:t?O[t].tracking_params:void 0,aux_data:{today_article_id:t,grid_index:e.toString(),cosmic_ray_count:"4",closeup_navigation_type:Object(o.a)(b)}})}b.push(H)},children:U})})}):null}},gJeo:function(e,t,n){n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return b}));var i=n("q1tI"),o=n("n6mq"),r=n("nKUr");function a({category:e,ingredients:t,textSize:n="lg"}){return Object(r.jsxs)(o.f,{marginBottom:4,children:[e&&Object(r.jsx)(o.f,{children:Object(r.jsx)(o.cb,{weight:"bold",size:n,children:e})}),(null!=t?t:[]).map(e=>{var t,i;return Object(r.jsx)(o.f,{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",marginTop:1,children:Object(r.jsxs)(o.cb,{size:n,children:[e.amt||null," ",e.name]})},`${null!==(t=e.name)&&void 0!==t?t:""}-${null!==(i=e.name)&&void 0!==i?i:""}`)})]})}var s=n("QqZJ"),c=n("g6r8"),l=n("yweb"),d=n("qpbZ"),u=n("IZg8"),p=n("Pezf");const h=({m:e,h:t,rm:n,rh:i},o)=>e&&(!t||i<=0)?Object(d.b)(o.ngettext("{{mins}} minute","{{mins}} minutes",n,"number showing the minutes to complete a recipe","number showing the minutes to complete a recipe"),{mins:n.toString()}):t?Object(d.b)(o.ngettext("{{hrs}} hour","{{hrs}} hours",i,"number showing the hours to complete a recipe","number showing the hours to complete a recipe"),{hrs:i.toString()}):null,m=({m:e,h:t,rm:n,rh:i,i18n:o})=>e&&(!t||i<=0)?Object(d.b)(o._("{{mins}}m","number showing minutes to complete a recipe","number showing mnutes to complete a recipe"),{mins:n.toString()}):t?Object(d.b)(o._("{{hrs}}h {{mins}}m","number showing hours to complete a recipe","number showing hours to complete a recipe"),{hrs:t.toString(),mins:e.toString()}):null,b=(e,t)=>{let n;return n=e.cook_times&&e.cook_times.total?Object(p.a)({m:e.cook_times.total.m||0,h:e.cook_times.total.h||0}):Object(p.a)({m:e.cook_times&&e.cook_times.cook&&e.cook_times.cook.m||0,h:e.cook_times&&e.cook_times.cook&&e.cook_times.cook.h||0}),h(n,t)};t.a=({recipe:e,pinLink:t,image:n})=>{const d=Object(l.c)(),p=Object(c.a)(),{name:h,categorized_ingredients:m}=e,f=m&&(e=>{const t=e.diets&&e.diets.length>0&&e.diets.join(", "),n=e.servings_summary&&e.servings_summary.summary;return t&&n?`${t} • ${n}`:t||n})(e),g=(e=>e.categorized_ingredients?e.categorized_ingredients.reduce((e,t)=>{var n,i;return e+(null!==(n=null===(i=t.ingredients)||void 0===i?void 0:i.length)&&void 0!==n?n:0)},0):0)(e),j=b(e,d),[x,y]=Object(i.useState)(!1);if(!j&&!g&&!f)return null;const O="phone"!==p?106:109;return Object(r.jsxs)(o.f,{"data-test-id":"pin-recipe-container",display:"flex",direction:"column",marginTop:8,children:[Object(r.jsxs)(o.f,{direction:"column",display:"flex",marginTop:4,marginBottom:4,marginEnd:6,maxHeight:x?void 0:O,overflow:"hidden",children:[Object(r.jsx)(o.f,{marginBottom:4,children:Object(r.jsx)(o.cb,{weight:"bold",align:"desktop"===p?"start":"center",children:d._("Ingredients","Ingredients category heading for recipes","Ingredients category heading for recipes")})}),Object(r.jsxs)(s.a,{itemScope:!0,itemType:u.a,children:[Object(r.jsx)("meta",{content:h,itemProp:"name"}),n&&Object(r.jsx)("meta",{content:n,itemProp:"image"}),Array.isArray(m)&&m.length>0&&Object(r.jsx)(o.f,{column:12,"data-test-id":"single-column-ingredients",children:m.map(({category:e,ingredients:t},n)=>Object(r.jsx)(o.f,{marginBottom:2,children:Object(r.jsx)(a,{category:e,ingredients:t,textSize:"lg"})},n))})]})]}),Object(r.jsx)(o.f,{marginBottom:4,display:"flex",justifyContent:"phone"===p?"center":void 0,children:x?t&&Object(r.jsx)(o.C,{href:t,onClick:({disableOnNavigation:e})=>e(),children:Object(r.jsx)(o.g,{text:d._("Make it","closeup.recipe.make_it_button","label for button go to recipe link")})}):Object(r.jsx)(o.g,{text:d._("See all","closeup.recipe.see_all_ingredients_button","label for button to exand recipe ingredients"),onClick:()=>{y(!x)}})})]})}},gLeT:function(e,t,n){var i=n("q1tI"),o=n("zwad"),r=n("gqRH"),a=n("n6mq"),s=n("nKUr");const c=Object(i.forwardRef)(({accessibilityLabel:e,color:t,disabled:n,fullWidth:i,href:c,iconEnd:l,onClick:d,size:u,tabIndex:p,target:h,text:m},b)=>{const f=o.a.isOffsiteUrl(c);return Object(s.jsx)(r.a,{href:c,target:f?null:h,children:({handleClick:o})=>Object(s.jsx)(a.g,{accessibilityLabel:e,color:t,disabled:n,href:c,iconEnd:l,fullWidth:i,onClick:({event:e,disableOnNavigation:t})=>{t(),null==d||d({event:e}),o({event:e})},ref:b,rel:f?"nofollow":void 0,role:"link",size:u,tabIndex:p,text:m})})});c.displayName="ButtonLink",t.a=c},geJr:function(e,t){e.exports="https://s.pinimg.com/webapp/TH@2x-988a46e6.png"},gg0E:function(e,t,n){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return x}));var i=n("q1tI"),o=n("SyXB"),r=n("0YPa"),a=n("bNC6"),s=n("HMdf"),c=n("3/Bf"),l=n("y2Ga"),d=n("bZU8");const u=e=>{if(e instanceof HTMLImageElement)return e.src;if(e instanceof HTMLVideoElement)return e.attributes.poster.value;const t=((e.style||{}).backgroundImage||"").match(/^url\(["'](.*)["']\)$/);return t&&t[1]||null},p=(e,t)=>{const n=(e=>e instanceof HTMLDivElement||e instanceof HTMLVideoElement?e.getBoundingClientRect():e.parentElement instanceof HTMLElement?e.parentElement.getBoundingClientRect():null)(e);if(!n)return Object(c.b)("missing_client_rect"),!1;if(n.width<100&&n.height<100){if(e instanceof HTMLImageElement)return!1;const t=u(e);if(null!=t&&t.endsWith("svg"))return!1}return(({top:e,height:t},{foldY:n,pageYOffset:i})=>{const o=e+i;if(o>=n)return!1;const r=Math.min(t,n-o);return r>.5*t||r>.2*n})(n,t)},h=()=>{const e=(()=>{if(!document.querySelector)return Object(c.b)("missing_document_query_selector"),null;const e=document.querySelectorAll(d.d);return e[e.length-1]||null})();if(!e)return!1;const t=window.innerHeight||0,n=window.pageYOffset||0;return e.getBoundingClientRect().top+n>=t},m=(e,t)=>{if(!document.querySelector)return Object(c.b)("missing_document_query_selector"),[];const n={foldY:window.innerHeight||0,pageYOffset:window.pageYOffset||0},i=[d.b,...e?[d.a]:[],...t?[d.e]:[]].join(",");return[...document.querySelectorAll(i)].reduce((e,i)=>{if((i instanceof HTMLImageElement||i instanceof HTMLDivElement||i instanceof HTMLVideoElement&&t)&&p(i,n)){const t=u(i);if(t){const n=(t||"").replace(/.*\//,"");return e.concat([{element:i,fileName:n}])}}return e},[])};var b=n("LrH5");const f=Object(b.a)("GridProfiler"),g=()=>!!(window.addEventListener&&window.removeEventListener&&"number"==typeof window.innerHeight&&"number"==typeof window.pageYOffset&&document.querySelector&&document.querySelectorAll),j=(e,t)=>{if(!t){const t=document.querySelector?document.querySelectorAll(d.d).length:(Object(c.b)("missing_document_query_selector"),0);if(t===e)return f("No new items, so skip the viewport-fill check."),{complete:!1,numOfItemsChecked:e};if(!h())return f("Viewport may not be filled yet."),{complete:!1,numOfItemsChecked:t}}return{complete:!0}};function x({isAtEndOfFeed:e,pinData:t,includeBackgroundImages:n,includeVideos:d=!1}){const u=Object(l.c)(),p=null==u?void 0:u.id,h=null==u?void 0:u.setVisuallyCompleteResult,[g,x]=Object(i.useState)({status:"DISABLED"});Object(i.useEffect)(()=>{x(h?{status:"LAYOUT",failedCount:0,numOfItemsChecked:0}:{status:"DISABLED"})},[p,h]),Object(i.useEffect)(()=>{if("DISABLED"!==g.status&&Object(o.c)("GridVisuallyCompleteProfiler_"+g.status),f("new status",g),"LAYOUT"===g.status){const e=((e,t)=>{const n=()=>{window.removeEventListener(e,n),t()};return window.addEventListener(e,n),()=>window.removeEventListener(e,n)})("scroll",()=>{Object(o.c)("scrollDuringLayout")});return()=>{e()}}return()=>{}},[g.status]),Object(r.a)(()=>{if(!u||!h)return;const{abort:i,metricId:o}=u;switch(g.status){case"LAYOUT":{const t=j(g.numOfItemsChecked,e);t.complete?x({status:"TIMING",failedCount:0,pinElements:m(n,d)}):500*g.failedCount>6e4?(Object(c.c)(`images.${Object(a.b)(o)}.visuallyComplete.maxLayoutAttempt`),i("visuallyComplete_layoutTimeout"),x({status:"DISABLED"})):x({...g,failedCount:g.failedCount+1,numOfItemsChecked:t.numOfItemsChecked});break}case"TIMING":{const e=Object(s.c)(),n=g.pinElements.length,r=[];let l=0,d=0,p=0;if(g.pinElements.forEach(({element:t,fileName:n})=>{const i=e.find(e=>e.name.endsWith(n));i?i.responseEnd?(r.push(i),Object(b.b)(t,"green")):(p+=1,Object(b.b)(t,"blue")):t instanceof HTMLImageElement&&t.complete?(d+=1,Object(b.b)(t,"red")):(l+=1,Object(b.b)(t,"greenyellow"))}),l||p)100*g.failedCount>6e4?(Object(c.c)(`images.${Object(a.b)(o)}.visuallyComplete.maxAttempt`,{tags:{totalImageCount:n,incompleteCount:l,noTimingCount:d,noTimingResponseEndCount:p}}),i("visuallyComplete_timingTimeout"),x({status:"DISABLED"})):x({...g,failedCount:g.failedCount+1});else{if(f(`All ${r.length} images are fetched`),t&&t.length){const e=((e,t)=>{let n=0,i=0,o=0,r=0,a=0;return e=e.filter(e=>"pin"===e.type),t.forEach((t,s)=>{var c,l,d,u,p,h;const m=t.fileName.split(".")[0];let b;b=e[s],m!==(null===(c=b)||void 0===c?void 0:c.image_signature)&&(b=e.find(e=>m===(null==e?void 0:e.image_signature))),void 0===b?a+=1:b.is_promoted||"PROMOTED_PIN"===(null===(l=b.recommendation_reason)||void 0===l?void 0:l.reason)||null!==(d=b)&&void 0!==d&&null!==(u=d.promoter)&&void 0!==u&&u.length?o+=1:null!==b.story_pin_data_id&&void 0!==b.story_pin_data_id?n+=1:null!==(p=b)&&void 0!==p&&null!==(h=p.videos)&&void 0!==h&&h.video_list?i+=1:r+=1}),{storyPinCount:n,videoCount:i,adCount:o,imageCount:r,unknownCount:a}})(t,g.pinElements);Object.entries(e).forEach(([e,t])=>{u.addBinaryAnnotation(e,t,"I16")}),Object(c.c)(Object(a.b)(o)+".pinTypes",{tags:e})}h({imageTimings:r}),x({status:"DISABLED"}),Object(c.c)(`images.${Object(a.b)(o)}.visuallyComplete.complete`,{tags:{totalImageCount:n,noTimingCount:d}})}break}}},(e=>("LAYOUT"===e.status?500:"TIMING"===e.status&&100)||null)(g))}},gqRH:function(e,t,n){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var i=n("q1tI"),o=n("zwad"),r=n("fJfT"),a=n("EC67");function s(e){const{externalData:t,href:n,onHistoryChange:s,target:c}=e,[l,d]=Object(i.useState)(null),[u,p]=Object(i.useState)(!1),h=Object(a.h)(),m=Object(a.i)(),b=o.a.isOffsiteUrl(n);return Object(i.useEffect)(()=>(p(!0),()=>{p(!1)}),[]),Object(i.useEffect)(()=>{b&&null!=t&&t.pin&&null===l&&Object(r.f)({location:m,pin:t.pin,surface:t.surface})&&Object(r.a)({isMounted:u,pin:t.pin,location:m,spamCheckCallback:e=>d(e),href:n})},[t,n,b,u,m,l]),({event:e})=>{var i;Object(r.b)({isExternalLink:b,event:e})||(e.nativeEvent.preventDefault(),n&&(b?Object(r.c)({auxData:null==t?void 0:t.auxData,href:n,pinId:null==t||null===(i=t.pin)||void 0===i?void 0:i.id,pin:null==t?void 0:t.pin,location:m,spamCheck:l}):Object(r.d)({event:e,href:n,history:h,onHistoryChange:s,target:"blank"===c?"blank":null})))}}const c=({children:e,...t})=>e({handleClick:s(t)})},"gz6+":function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c}));var i=n("pody"),o=n("+lzj");const r=e=>({...Object(i.a)(e),domComplete:e.domComplete||0,domContentLoadedEventEnd:e.domContentLoadedEventEnd||0,domContentLoadedEventStart:e.domContentLoadedEventStart||0,domInteractive:e.domInteractive||0,loadEventEnd:e.loadEventEnd||0,loadEventStart:e.loadEventStart||0}),a=()=>{const{firstInputDelay:e,largestContentfulPaint:t}=Object(o.e)();return{firstInputDelayStart:(null==e?void 0:e.startTime)||0,firstInputDelayEnd:(null==e?void 0:e.endTime)||0,largestContentfulPaint:t||0}},s=(e,t)=>Object.keys(t).reduce((n,i)=>({...n,[`${e}${i}`]:t[i]}),{}),c=(e,t)=>Object.keys(e).reduce((n,i)=>t.includes(i)?{...n,[i]:e[i]}:n,Object.freeze({}))},h8Qw:function(e,t,n){var i=n("/MKj"),o=n("NwG/"),r=n("Lr1Z"),a=n("jnLG"),s=n("yweb"),c=n("S1na"),l=n("n6mq"),d=n("nwTc"),u=n("nKUr");const p=({decreaseNamePadding:e,isHomefeedTuner:t,isLego:n,isSelected:i,locale:o,nameTextSize:r,renderAsPill:d,showFollowerCount:p,topic:h,topicBlob:m,topicInfoForContextualExp:b})=>{var f;const g=Object(s.c)(),j=Object(c.a)(),x=b||h||m||{},y=x.images["236x"]||x.images["400x"]||x.images["474x"]||x.images.orig||{height:1,url:"",width:1},O=x.follower_count||-1,_=Object(u.jsx)(l.w,{accessibilityLabel:g._("Selected"),color:"white",icon:n?"check":"check-circle",size:n?12:24});return d?Object(u.jsx)(a.a,{color:x.background_color||"#767676",image:y,isSelected:i,title:x.name}):Object(u.jsxs)(l.f,{position:"relative","aria-selected":i,children:[Object(u.jsx)(l.D,{rounding:n||t?4:2,children:Object(u.jsxs)(l.f,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}},children:[Object(u.jsx)(l.f,{bottom:!0,left:!0,padding:n&&i?1:0,position:"absolute",right:!0,rounding:n&&i?4:0,top:!0,children:Object(u.jsx)(l.y,{alt:x.name,color:x.background_color||"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(f=y.url)&&void 0!==f?f:""})}),Object(u.jsx)(l.f,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:i?"rgba(0,0,0,0.6)":"rgba(0,0,0,0.3)",border:n&&i?"4px solid #767676":"none"}},rounding:n?4:void 0,position:"absolute",left:!0,right:!0,top:!0}),n&&i&&Object(u.jsx)(l.f,{bottom:!0,dangerouslySetInlineStyle:{__style:{border:"2px solid #111"}},left:!0,position:"absolute",right:!0,rounding:4,top:!0})]})}),t?Object(u.jsx)(l.f,{top:!0,bottom:!0,left:!0,right:!0,padding:2,position:"absolute",display:"flex",alignContent:"center",justifyContent:"center",alignItems:"center",children:Object(u.jsx)(l.cb,{align:"center",color:"white",size:r,weight:"bold",children:x.name})}):Object(u.jsxs)(l.f,{bottom:!0,left:!0,padding:e?1:2,position:"absolute",right:!0,children:[Object(u.jsx)(l.cb,{color:"white",size:r,weight:"bold",children:x.name}),p&&O>=0&&Object(u.jsx)(l.f,{paddingY:1,children:Object(u.jsxs)(l.cb,{color:"white",size:"sm",children:[Object(u.jsx)(l.cb,{color:"white",inline:!0,size:"sm",weight:"bold",children:j(o,O,{shortform:!0,shortform_maximum_fraction_digits:1})}),g._("followers")]})})]}),i&&Object(u.jsx)(l.f,{margin:2,position:"absolute",right:!0,top:!0,children:n?Object(u.jsx)(l.f,{alignItems:"center",color:"darkGray",display:"flex",height:24,justifyContent:"center",rounding:2,width:24,children:_}):_})]})};t.a=({decreaseNamePadding:e=!1,id:t,isHomefeedTuner:n,isLego:a,isSelected:s=!1,linkDestination:c="topics",nameTextSize:h="lg",onTouch:m,padding:b=2,renderAsPill:f,showFollowButton:g=!1,showFollowerCount:j=!1,shouldClickthrough:x=!1,topicBlob:y,topicInfoForContextualExp:O,viewParameter:_,viewType:v})=>{const w=Object(i.useDispatch)(),S=Object(i.useSelector)(({topics:e})=>e[t]),T=Object(i.useSelector)(({session:e})=>e.locale),I=Object(u.jsxs)(l.f,{"data-test-id":"nux-picker-topic",children:[Object(u.jsx)(p,{decreaseNamePadding:e,isHomefeedTuner:n,isLego:a,isSelected:s,locale:T,nameTextSize:h,renderAsPill:f,showFollowerCount:j,topic:S,topicBlob:y,topicInfoForContextualExp:O}),!!S&&g&&Object(u.jsx)(l.f,{paddingY:2,children:Object(u.jsx)(o.a,{shouldShowAddRemoveText:n,followEventType:601,id:S.id,invertColors:n,isFollowed:S.is_followed||!1,onFollow:e=>w(Object(d.b)(e)),onUnfollow:e=>w(Object(d.d)(e)),size:"md",unfollowEventType:602,viewParameter:_||void 0,viewType:v||void 0})})]});let k="/";return S&&("explore"===c?k="/explore/"+encodeURIComponent(S.slug):["topic","topics"].includes(c)?k="/topics/"+S.id:"ideas"===c?k=`/ideas/${encodeURIComponent(S.slug)}/${S.id}`:"search"===c&&(k="/search/pins/?rs=ac&q="+encodeURIComponent(S.slug))),x&&null!=S&&S.slug?Object(u.jsx)(r.a,{inline:!1,onTouch:m,pressState:["compress","background"],rounding:2,to:k,children:Object(u.jsx)(l.f,{padding:b,children:I})}):I}},hCZv:function(e,t){e.exports="https://s.pinimg.com/webapp/VI@2x-abdc2e13.png"},hlxQ:function(e,t,n){n.d(t,"a",(function(){return O}));var i=n("q1tI"),o=n("/MKj"),r=n("FDmi"),a=n("NwG/"),s=n("U1vm"),c=n("yweb"),l=n("n6mq"),d=n("nKUr");const u={__style:{backgroundColor:"rgba(0, 0, 0, 0.04)"}};var p=({height:e,image:t,width:n})=>{var i,o,r;const a=Object(c.c)();return Object(d.jsx)(l.f,{dangerouslySetInlineStyle:{__style:{borderRight:"1px solid white"}},children:t?Object(d.jsxs)(l.f,{position:"relative",children:[Object(d.jsx)(l.B,{width:n,height:e,contentAspectRatio:"number"==typeof t.height&&"number"==typeof t.width?t.width/t.height:1,children:Object(d.jsx)(l.y,{alt:a._("pin image","alt text for pin image","alt text for pin image"),color:t.dominant_color||void 0,naturalWidth:null!==(i=t.width)&&void 0!==i?i:1,naturalHeight:null!==(o=t.height)&&void 0!==o?o:1,src:null!==(r=t.url)&&void 0!==r?r:""})}),Object(d.jsx)(l.f,{dangerouslySetInlineStyle:u,height:e,width:n,position:"absolute",top:!0,left:!0})]}):Object(d.jsx)(l.f,{color:"lightGray",width:n,height:e})})},h=n("S1na"),m=n("XBgn");var b=function({badgeSize:e,badgeSpacing:t,fullName:n,verifiedType:o,truncate:r=!1}){const a=n.split(" "),s=a.slice(0,a.length-1).join(" "),c=" ".concat(a[a.length-1]);return r?Object(d.jsxs)(l.u,{alignItems:"stretch",justifyContent:"start",children:[Object(d.jsx)(l.cb,{lineClamp:1,weight:"bold",children:n}),Object(d.jsx)(l.f,{flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},paddingX:1,children:Object(d.jsx)(m.a,{isVerifiedMerchant:"verifiedMerchant"===o,size:e,showVerifiedIdentity:"verifiedIdentity"===o})})]}):Object(d.jsxs)(i.Fragment,{children:[Object(d.jsx)("span",{children:s}),Object(d.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[c," ",Object(d.jsx)(l.f,{display:"inlineBlock",flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},children:Object(d.jsx)(m.a,{isVerifiedMerchant:"verifiedMerchant"===o,size:e,showVerifiedIdentity:"verifiedIdentity"===o})})]})]})},f=n("kEen"),g=n("qpbZ"),j=n("AGnR"),x=n("t84P"),y=n("5SBu");function O({action:e,auxData:t,userSearchRepStyle:n=!1,onFollowUser:u,onUnfollowUser:m,userId:O,userPins:_,viewParameter:v,viewType:w,truncateName:S=!1}){const T=Object(c.c)(),I=Object(h.a)(),k=Object(o.useDispatch)(),{locale:C}=Object(o.useSelector)(({session:e})=>e),[E,P]=Object(i.useState)(n?window.innerWidth-16:null),A=Object(o.useSelector)(({users:e})=>e[O]),{contextual_pin_image_urls:L,explicitly_followed_by_me:D,follower_count:R=0,full_name:B,image_medium_url:N,is_verified_merchant:F,recent_pin_images:M,username:U,verified_identity:H}=A,z=e=>E?(E-(e-1))/e:0,W=n?1.6*z(4):117,G=(null==_?void 0:_.map(e=>{var t;return null===(t=e.images)||void 0===t?void 0:t["236x"]}))||[],q=(null==M?void 0:M["222x"])||(null==M?void 0:M["192x"])||[],V=(null==L?void 0:L["222x"])||(null==L?void 0:L["192x"])||[],Y=n&&V.length<=0,K=n?V.concat(q).slice(0,4):G.concat(q).slice(0,2),$=!Y&&(E?Object(d.jsx)(l.D,{rounding:4,children:Object(d.jsx)(l.u,{children:K.map((e,t)=>Object(d.jsx)(p,{height:W,image:e,width:z(K.length)},"pinImage-"+t))})}):Object(d.jsx)(l.f,{height:W,ref:e=>{e&&P(e.offsetWidth)},width:"100%"})),X=e=>Object(d.jsx)(l.u,{justifyContent:"center",children:Object(d.jsx)(l.f,{marginTop:e,height:60,width:60,children:Object(d.jsx)(r.a,{outline:!0,name:null!=B?B:"",src:null!=N?N:""})})}),Z=e=>Object(d.jsxs)(l.u,{direction:"column",gap:1,alignItems:e,children:[Object(d.jsx)(l.u,{alignItems:"stretch",maxWidth:(n?(E||0)/2:E)||void 0,children:Object(d.jsx)(l.cb,{align:e,weight:"bold",lineClamp:S?1:void 0,children:F||null!=H&&H.verified?Object(d.jsx)(b,{badgeSize:"md",badgeSpacing:2,fullName:null!=B?B:"",verifiedType:F?"verifiedMerchant":"verifiedIdentity",truncate:S}):B})}),Object(d.jsx)(l.cb,{inline:!0,size:"sm",align:e,children:Object(g.b)(T.ngettext("{{followers}} follower","{{followers}} followers",R,"PinnerAuthority.followersCount","Count of a user's followers"),{followers:I(C,R,{shortform:!0})})})]}),Q=Object(d.jsx)(l.u,{justifyContent:"center",children:e&&e.url?Object(d.jsx)(s.a,{accessibilityLabel:e.text,color:"lightGray",shape:"pill",size:"lg",text:e.text,to:e.url,onTouch:()=>{Object(j.e)({event_type:9029,object_id_str:O,view_type:w,view_parameter:v,aux_data:t})}}):Object(d.jsx)(a.a,{id:O,isSecondaryButton:!0,isFollowed:D,onFollow:e=>{u&&u(),k(Object(y.g)(e))},onUnfollow:e=>{m&&m(),k(Object(y.k)(e))},size:"lg",followEventType:45,unfollowEventType:46,viewParameter:v,viewType:w})});return Object(d.jsx)(x.h,{loggingId:O,objectIdStr:O,slotIndex:0,viewParameter:v,viewType:w,children:({impressionTrackerRef:e})=>Object(d.jsx)(l.f,{ref:e,padding:1,marginBottom:4,"data-test-id":"user-rep",children:Object(d.jsx)(f.a,{to:`/${U}/`,onTouch:()=>{return e=O,void Object(j.e)({event_type:43,object_id_str:e,view_parameter:v,view_type:w});var e},children:Object(d.jsxs)(l.u,{direction:"column",gap:2,width:"100%",children:[$,n?Object(d.jsx)(l.f,{width:"100%",children:Object(d.jsxs)(l.u,{justifyContent:"between",alignItems:"center",children:[Object(d.jsxs)(l.u,{alignItems:"center",gap:2,children:[X(),Z("start")]}),Q]})}):Object(d.jsxs)(l.u,{direction:"column",gap:2,children:[X(-10),Z("center"),Q]})]})})})})}},hqnJ:function(e,t,n){var i=n("i2lo"),o=n("q1tI"),r=n("bcHz"),a=n("fv8A"),s=n("eyT9"),c=n("n6mq"),l=n("nKUr");const d={lightMode:{backgroundColor:"#E60023",color:"#FFFFFF"},darkMode:{backgroundColor:"#E60023",color:"#FFFFFF"}},u={lightMode:{backgroundColor:"#EFEFEF",color:"#111111"},darkMode:{backgroundColor:"#292929",color:"#EFEFEF"}},p=({color:e,isPrimary:t,shape:n,text:i,textColor:o})=>{const r=(t?d:u)[Object(s.e)()?"darkMode":"lightMode"];return Object(l.jsx)(c.cb,{align:"center",weight:"bold",children:Object(l.jsx)("div",{className:t?"banner-button-primary":"banner-button-secondary",style:{backgroundColor:e||r.backgroundColor,borderRadius:"pill"===n?"24px":"4px",color:o||r.color,padding:"10px 14px"},children:i})})};var h=({external:e,externalQueryParams:t,newTab:n,onTouch:i,pressState:o,refresh:s,to:d,accessibilityLabel:u,color:h,isPrimary:m,textColor:b,minHeight:f=40,shape:g,text:j})=>Object(l.jsx)(c.f,{"aria-label":u,minHeight:f,children:d?Object(l.jsx)(a.a,{external:e,externalQueryParams:t,newTab:n,onTouch:i,refresh:s,to:d,children:({navigate:e})=>Object(l.jsx)(r.a,{onTouch:e,pressState:o||"none",rounding:"pill"===g?"pill":2,children:Object(l.jsx)(p,{color:h,isPrimary:m,shape:g,text:j,textColor:b})})}):Object(l.jsx)(r.a,{onTouch:i,pressState:o||"none",rounding:"pill"===g?"pill":2,children:Object(l.jsx)(p,{color:h,isPrimary:m,shape:g,text:j,textColor:b})})}),m=n("ihsa"),b=n("EfoL");function f(e){return e.startsWith("https://")||e.startsWith("http://")}var g=n("wMN6");var j=function({experience:e,onComplete:t,onDismiss:n}){const{display_data:i={},experience_id:r,placement_id:a}=e||{},s=Object(o.useMemo)(()=>Object(g.c)(g.j)(i),[i]),{backgroundColorNarrowMweb:d,backgroundColorWideMweb:u,backgroundImageNarrow:p,backgroundImageWide:j,button1ColorNarrowMweb:x,button1ColorWideMweb:y,button1TextColorNarrowMweb:O,button1TextColorWideMweb:_,button1Text:v,button1Uri:w,button2ColorNarrowMweb:S,button2ColorWideMweb:T,button2TextColorNarrowMweb:I,button2TextColorWideMweb:k,button2Text:C,button2Uri:E,completeButtonAction:P,coverImage:A,detailedTextWithLinks:L,iconImage:D,layoutNarrow:R,layoutWide:B,links:N,linkTitles:F,primaryColorNarrowMweb:M,primaryColorWideMweb:U,titleText:H}=s,{windowWidth:z}=Object(b.g)(),W=z<=480,G=W?R:B,q=W?{STACKED_TEXT:1,CENTERED_ICON_IMAGE_AND_TEXT:2,COVER_IMAGE_AND_TEXT:3}:{INLINE_TEXT:1,INLINE_ICON_IMAGE_AND_TEXT:2,STACKED_TEXT:3},V=!W&&G!==q.STACKED_TEXT,Y=W?d:u,K=W?x:y,$=W?O:_,X=W?S:T,Z=W?I:k,Q=W?M:U,{altText:J,uri:ee}=(W?p:j)||{},{altText:te,uri:ne}=A||{},{altText:ie,uri:oe}=D||{},re=W&&G===q.CENTERED_ICON_IMAGE_AND_TEXT||!W&&G===q.INLINE_ICON_IMAGE_AND_TEXT,ae=W?"96px":"48px",se=W&&G===q.COVER_IMAGE_AND_TEXT,ce=v&&Object(l.jsx)(c.f,{marginEnd:2,children:Object(l.jsx)(h,{accessibilityLabel:v,color:K,external:w?f(w):void 0,onTouch:()=>{!w&&a&&r&&n&&n()},shape:"pill",text:v,textColor:$,to:w})}),le=C&&Object(l.jsx)(h,{accessibilityLabel:C,color:X,external:E?f(E):void 0,isPrimary:!0,onTouch:()=>{return e=P,void(t&&t(e));var e},shape:"pill",text:C,textColor:Z,to:E}),de=N.reduce((e,t,n)=>{const i=`<a href="${t}" ${f(t)?'rel="noreferrer noopener" target="_blank"':""}>${F[n]}</a>`;return e.replace(`{${n}}`,i)},L),ue={backgroundColor:Y,boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"},pe={backgroundImage:!ee||re||se?void 0:`url(${ee})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"};return Object(l.jsx)(c.f,{dangerouslySetInlineStyle:{__style:ue},marginBottom:1,rounding:4,children:Object(l.jsxs)(c.D,{rounding:4,children:[se&&ne&&Object(l.jsx)(c.u,{alignItems:"start",height:128,justifyContent:"center",width:"100%",children:Object(l.jsx)(c.y,{alt:te||"cover image",fit:"cover",naturalHeight:1,naturalWidth:3,src:ne})}),Object(l.jsxs)(c.f,{"aria-label":J,alignItems:"center",dangerouslySetInlineStyle:{__style:pe},direction:V?"row":"column",display:"flex",justifyContent:"between",marginTop:se?-2:0,padding:6,children:[Object(l.jsxs)(c.u,{alignItems:"center",direction:V?"row":"column",justifyContent:"between",maxWidth:V?void 0:"560px",children:[re&&oe&&Object(l.jsx)(c.f,{alignItems:"center",direction:"column",display:"flex",justifyContent:"center",marginEnd:V?4:0,marginBottom:V?0:6,children:Object(l.jsx)(c.f,{height:ae,width:ae,children:Object(l.jsx)(c.D,{rounding:V?4:6,children:Object(l.jsx)(c.y,{alt:ie||"icon",naturalHeight:1,naturalWidth:1,src:oe})})})}),!V&&H&&Object(l.jsx)(c.cb,{align:"center",weight:"bold",children:Object(l.jsx)(c.f,{marginBottom:2,dangerouslySetInlineStyle:{__style:{color:Q,fontSize:"20px"}},children:H})}),L&&Object(l.jsxs)(c.cb,{align:V?"start":"center",overflow:"normal",children:[Object(l.jsx)(m.a,{unsafeCSS:`\n                      .nag-text a {\n                        color: ${Q||""};\n                        font-weight: bold;\n                      }`}),Object(l.jsx)("div",{className:"nag-text",dangerouslySetInnerHTML:{__html:de},style:{color:Q}})]})]}),(ce||le)&&Object(l.jsxs)(c.f,{alignItems:"center",display:"flex",justifyContent:"center",marginBottom:V?0:-1,marginStart:V?4:0,marginTop:V?0:4,wrap:!V,children:[ce,le]})]})]})})};t.a=({experience:e={}})=>Object(l.jsx)(i.a,{experience:e,predicate:e=>e&&e.display_data&&1===e.display_data.component_type,children:({complete:e,dismiss:t,experience:n})=>Object(l.jsx)(j,{experience:n,onComplete:e,onDismiss:t})})},i2lo:function(e,t,n){var i=n("q1tI"),o=n("/MKj"),r=n("4kAQ");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}class s extends i.Component{constructor(...e){super(...e),a(this,"view",()=>{const{experience:e,isBackendExperience:t,viewExperience:n,viewExperienceObject:i}=this.props;e&&(t?i(e):n(e.placement_id,e.experience_id))}),a(this,"complete",e=>{const{completeExperience:t,completeExperienceObject:n,experience:i,isBackendExperience:o,preventRemoval:r}=this.props;if(i){const{placement_id:a,experience_id:s}=i||{},c=r||2===e;(1===e||c)&&a&&s&&(o?n(i,c):t(a,s,c))}}),a(this,"dismiss",()=>{const{dismissExperience:e,dismissExperienceObject:t,experience:n,isBackendExperience:i}=this.props,{placement_id:o,experience_id:r}=n||{};n&&(i?t(n):e(o,r))}),a(this,"shouldRenderExperience",()=>{const{experience:e}=this.props;if(e){const{eligibleIds:t,eligibleTypes:n,predicate:i}=this.props,{experience_id:o,type:r}=e;if(i&&i(e))return!0;if(t&&t.includes(o))return!0;if(n&&n.includes(r))return!0}return!1})}componentDidMount(){const{experience:e}=this.props;e&&this.shouldRenderExperience()&&this.view()}render(){const{children:e,experience:t}=this.props;return t&&e&&this.shouldRenderExperience()?"function"==typeof e?e({experience:t,complete:this.complete,dismiss:this.dismiss,view:this.view}):i.Children.only(e):null}}a(s,"defaultProps",{eligibleIds:[],eligibleTypes:[]});t.a=Object(o.connect)(({experiences:e},t)=>({experience:t.experience||(t.placementId?e[t.placementId]:void 0)}),e=>({completeExperience:(t,n,i)=>e(Object(r.a)(t,n,i)),completeExperienceObject:(t,n)=>e(Object(r.b)(t,n)),dismissExperience:(t,n)=>e(Object(r.d)(t,n)),dismissExperienceObject:t=>e(Object(r.e)(t)),viewExperience:(t,n)=>e(Object(r.n)(t,n)),viewExperienceObject:t=>e(Object(r.o)(t))}))(s)},i4MZ:function(e,t){e.exports="https://s.pinimg.com/webapp/FI@2x-695433d6.png"},iMUD:function(e,t,n){n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return S}));var i=n("o9su"),o=n("+lzj");var r=()=>Object(o.c)().reduce((e,{identifier:t,loadTime:n,renderTime:i})=>e[t+"_loadTime"]?e[t+"_dupe_loadTime"]?{...e,[t+"_dupe_loadTime"]:n,[t+"_dupe_renderTime"]:i}:e:{...e,[t+"_loadTime"]:n,[t+"_renderTime"]:i},Object.freeze({})),a=n("pody"),s=n("gz6+"),c=n("HMdf"),l=n("Og0o");var d=e=>{switch(e){case"pin_closeup":{const e=Object(l.b)();return(e=>{const t=Object(c.d)();return e.reduce((e,{name:n,match:i})=>t.filter(e=>i(e)).slice(0,2).reduce((e,t,i)=>({...e,...Object(s.a)(`${n}${i?"_dupe1":""}_`,Object(a.a)(t))}),e),Object.freeze({}))})([{name:"mainImage",match:({name:t})=>t===e},{name:"PinResource",match:({name:e})=>e.includes("PinResource")}])}default:return{}}},u=n("vzKb"),p=n("FylZ"),h=n("mRg4"),m=n("LvPn"),b=n("LrH5"),f=n("SyXB"),g=n("B/lV"),j=n("fZG9"),x=n("3/Bf");const y=Object(b.a)("Vitals"),O={},_=({annotateExperiments:e,annotateMarks:t,annotateResourceTimingForSurface:n,name:o,pwtStaticContext:a})=>{const c=(()=>{let e=[],t=null;if(window.PerformanceObserver){const n=1e3;t=Object(u.a)({entryTypes:["resource"]},t=>{e=e.concat(t.getEntries()),e.length>n&&(e=e.slice(-n))})}return{get:()=>e,disconnect:()=>{t&&t.disconnect()}}})();let l=!0,b={};Object(x.c)("TIMING."+o,{tags:{isAuth:a.isAuthenticated}});const _={type:"stopwatch",name:o,navigationType:"initial_app_load"},v={abort:e=>{l?(l=!1,Object(h.a)({metricId:_,pwtStaticContext:a,result:{type:"ABORT",reason:e}})):Object(x.b)("duplicate_abort_action",{action:o})},stop:u=>{if(!l)return void Object(x.b)("duplicate_stop_action",{action:o});l=!1,c.disconnect();const y=Object(p.a)(),O=Object(i.a)(),v=c.get(),w={type:"COMPLETE",traceId:Object(p.a)(),startTime:0,endTime:u,spans:[{name:"network_resources",id:y,startTime:0,endTime:u,annotationMap:{},binaryAnnotationMap:{},parentId:null},...v.map(e=>Object(m.a)(Object(g.a)(e,[]),y)).filter(Boolean)],annotationMap:{...Object(s.a)("resource_",n?d(n):{}),...Object(s.a)("element_",r()),...Object(s.a)("mark_",t&&t.length?Object(s.d)(Object(f.d)(),t):{}),...Object(s.a)("browser_",O?Object(s.b)(O):{})},binaryAnnotationMap:Object(j.a)({annotateExperiments:e,metricId:_,pwtStaticContext:a,performanceResourceTimings:v,binaryAnnotations:b})};Object(h.a)({metricId:_,pwtStaticContext:a,result:w,isAuth:a.isAuthenticated})},addBinaryAnnotation:(e,t,n)=>{y(`adding binary annotation {${e}: ${String(t)}}`),b={...b,[e]:{value:t,type:n}}}};return O[o]=v,v},v=e=>O[e],w=e=>!!v(e),S=({stopwatchName:e,binaryAnnotationName:t,value:n,annotationType:i})=>{const o=v(e);o&&o.addBinaryAnnotation(t,n,i)}},iMWs: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.b)("pageContext")},iaut:function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n("/MKj"),o=n("n6mq"),r=n("nKUr");const a=new o.t(1);function s({children:e,isImagePinForUnauthOnTablet:t}){const n=Object(i.useSelector)(({session:e})=>e.isAuthenticated);return Object(r.jsxs)(o.f,{alignItems:"center",bottom:!0,dangerouslySetInlineStyle:{__style:{cursor:"pointer",width:t?"40vw":void 0}},zIndex:n?void 0:a,display:"flex",justifyContent:"center",left:!0,position:"absolute",right:!t||void 0,top:!0,children:[Object(r.jsx)(o.f,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"#000",borderRadius:"6px 6px 0 0",WebkitTransition:"opacity .04s linear",transition:"opacity .04s linear"}},left:!0,opacity:.4,position:"absolute",right:!0,top:!0}),e]})}},"ie/H":function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("XQZ6"),o=n("n6mq"),r=n("nKUr");function a({title:{format:e,args:{query:t}}}){return Object(r.jsxs)(o.f,{alignItems:"center",direction:"column",display:"flex",marginTop:12,children:[Object(r.jsx)(o.f,{marginBottom:2,paddingX:4,children:Object(r.jsx)(o.cb,{align:"center",color:"darkGray",overflow:"normal",weight:"bold",children:e})}),Object(r.jsx)(i.a,{navigateReplace:!1,query:t,showHeaderText:!1})]})}},jXQH:function(e,t,n){var i=n("TO8r"),o=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(o,""):e}},jnLG:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("eyT9"),o=n("n6mq"),r=n("nKUr");function a({color:e,image:t,isSelected:n,title:a}){var s,c,l;return Object(r.jsxs)(o.f,{alignItems:"center","aria-selected":n,dangerouslySetInlineStyle:{__style:{backgroundColor:n?"#111":"#efefef"}},display:"flex",padding:1,rounding:"pill",children:[Object(r.jsx)(o.D,{height:48,rounding:"circle",width:48,children:Object(r.jsx)(o.y,{alt:a,color:e,fit:"cover",naturalHeight:null!==(s=t.height)&&void 0!==s?s:1,naturalWidth:null!==(c=t.width)&&void 0!==c?c:1,src:null!==(l=t.url)&&void 0!==l?l:""})}),Object(r.jsx)(o.f,{marginStart:2,marginEnd:3,children:Object(r.jsx)(o.cb,{color:n?"white":Object(i.e)()?"lightGray":"darkGray",children:Object(r.jsx)("span",{style:{fontWeight:600},children:a})})})]})}},jpTf:function(e,t,n){n.d(t,"a",(function(){return d}));var i=n("Lr1Z"),o=n("mp1x"),r=n("kmwA"),a=n("yweb"),s=n("qpbZ"),c=n("n6mq"),l=n("nKUr");function d({onDismiss:e}){const t=Object(a.c)();return Object(l.jsx)(o.a,{isOpen:!0,onDismiss:e,type:"unlink_expired_token",isLegoModal:!0,children:Object(l.jsxs)(c.f,{margin:3,display:"flex",direction:"column",children:[Object(l.jsx)(c.f,{marginTop:2,children:Object(l.jsx)(c.v,{align:"center",size:"md",children:t._("This link is invalid","unlinkExpiredToken.modal.title","Unlink Account expired link modal title")})}),Object(l.jsx)(c.f,{marginTop:3,marginBottom:3,children:Object(l.jsx)(c.cb,{align:"center",inline:!0,children:Object(s.b)(t._("Go into your {{accountSettings}} to send a new link to your inbox and finish unlinking your accounts.","unlinkExpiredToken.modal.description","Unlink Account expired link modal description"),{accountSettings:Object(l.jsx)(c.cb,{inline:!0,weight:"bold",children:Object(l.jsx)(i.a,{pressState:"none",to:r.a.settings.MANAGE_ACCOUNT,inline:!0,children:t._("Account settings","addSecondaryAccount.convertAccountUpsell.accountSettingsLink","Link to Account Settings")},"link")},"link-text")})})}),Object(l.jsx)(c.f,{marginBottom:4,display:"flex",justifyContent:"center",children:Object(l.jsx)(c.g,{text:t._("Close","unlinkExpiredToken.modal.button","Close button on unlink account expired link modal"),color:"red",size:"lg",onClick:e})})]})})}},juJw:function(e,t,n){t.a=(e,t)=>e.length>t?e.substr(0,t-3).trim()+"…":e},jxkU:function(e,t){e.exports="https://s.pinimg.com/webapp/DE@2x-22831293.png"},kBCb:function(e,t){e.exports="https://s.pinimg.com/webapp/ID@2x-34da9a4a.png"},kH38:function(e,t){e.exports="https://s.pinimg.com/webapp/DE@2x-e398675a.png"},kerF:function(e,t,n){var i=n("/MKj"),o=n("0rqB"),r=n("QtD7");t.a=Object(i.connect)((e,t)=>({group:e.experiments.active[t.name]||e.experiments.triggerable[t.name]||""}),e=>({activateExperiment:t=>e(Object(r.a)(t))}),null,{pure:!1})(o.a)},"l+Ya":function(e,t,n){n.d(t,"a",(function(){return k}));var i=n("/MKj"),o=n("K/ae"),r=n("o+5w"),a=n("DzJC"),s=n.n(a),c=n("hFTz"),l=n("gCPk"),d=n("q1tI"),u=n("g6r8"),p=n("n6mq"),h=n("nKUr");var m=({marginTop:e,subtitle:t,title:n})=>{const i=Math.trunc((e||0)/4),o=Object(u.b)();return Object(h.jsxs)(p.f,{paddingX:9,marginTop:i,"data-test-id":"today-tab-header",children:[t?o?Object(h.jsx)(p.v,{accessibilityLevel:2,size:"sm",align:"center",children:n}):Object(h.jsx)(p.cb,{align:"center",children:n}):Object(h.jsx)(p.v,{accessibilityLevel:1,align:"center",size:o?"md":"sm",children:n}),t&&Object(h.jsx)(p.f,{marginTop:1,children:Object(h.jsx)(p.v,{accessibilityLevel:1,align:"center",size:o?"lg":"md",children:t})})]})},b=n("gLeT"),f=n("yweb"),g=n("pE5B"),j=n("VuCO"),x=n("AGnR"),y=n("EC67");var O=({fromSearchPage:e=!1,hasGoToHomefeedButton:t,marginBottom:n,marginTop:o,subtitle:r,title:a})=>{const s=Object(f.c)(),c=Object(i.useDispatch)(),l=Object(d.useCallback)(()=>c(Object(j.a)(null,g.a)),[c]),u=Object(y.h)();return Object(h.jsxs)(p.f,{"data-test-id":"today-tab-footer",alignItems:"center",display:"flex",direction:"column",paddingX:12,dangerouslySetInlineStyle:{__style:{marginBottom:n,marginTop:o}},children:[Object(h.jsx)(p.w,{accessibilityLabel:s._("End of feed","today_tab.end_of_feed","icon marking end of today tab"),color:"darkGray",icon:"check-circle",size:30}),Object(h.jsx)(p.f,{marginTop:4,children:Object(h.jsx)(p.cb,{align:"center",children:a})}),Object(h.jsx)(p.f,{marginTop:1,children:Object(h.jsx)(p.cb,{align:"center",weight:"bold",children:r})}),t&&!e&&Object(h.jsx)(p.f,{marginTop:10,children:Object(h.jsx)(p.g,{onClick:()=>{Object(x.h)({view_type:1,view_parameter:3372,component:8,element:11689}),l(),u.push("/")},text:s._("Go to home feed","today_tab.end_of_feed.go_back_to_homefeed_button","Button label at the end of today tab that takes user back to homefeed")})}),e&&Object(h.jsx)(p.f,{marginTop:10,children:Object(h.jsx)(b.a,{href:"/search",text:s._("Go back","today_tab.end_of_feed.go_back_to_search_button","Button label at the end of today tab that takes user back to search page")})})]})};var _=({fromSearchPage:e=!1,id:t,itemIndex:n})=>{var o;const r=Object(u.b)(),a=Object(i.useSelector)(e=>e.stories[t]),s=Object(i.useSelector)(({session:e})=>e.isAuthenticated);switch(null==a?void 0:a.story_type){case"today_tab_date_header":case"today_tab_header":return Object(h.jsx)(m,{marginTop:r||0===n?0:24,subtitle:(null===(o=a.subtitle)||void 0===o?void 0:o.format)||"",title:a.title.format});case"today_tab_footer":const t=28;return Object(h.jsx)(O,{hasGoToHomefeedButton:s,marginTop:t,marginBottom:t,subtitle:a.subtitle.format,title:a.title.format,fromSearchPage:e});default:return null}};function v({dayData:e,isFirstDayInFeed:t,fromSearchPage:n=!1}){const{headerStoryKey:i,articleKeys:o}=e;return Object(h.jsxs)(d.Fragment,{children:[i&&Object(h.jsx)(p.f,{paddingY:t?0:8,marginBottom:t?8:0,children:Object(h.jsx)(_,{id:i.id,itemIndex:i.index,fromSearchPage:n})}),Object(h.jsx)(p.u,{wrap:!0,gap:4,children:o.map((e,t)=>Object(h.jsx)(p.f,{paddingY:2,children:Object(h.jsx)(l.a,{id:e.id,gridIndex:t,viewType:1,viewParameter:3372},e.id)},t))})]})}var w=n("F2ZA");const S=e=>{if(e.length<1)return[];let t=[],n={headerStoryKey:null,articleKeys:[]},i=0;return e.forEach(e=>{"story"===e.type?(n.articleKeys.length>0&&(t=[...t,n],n={headerStoryKey:null,articleKeys:[]}),n={...n,headerStoryKey:e}):"todayArticle"===e.type&&(n={...n,articleKeys:[...n.articleKeys,{...e,slot_index:i}]},i+=1)}),t=[...t,n],t};var T=n("0HhX");function I({fromSearchPage:e=!1,numDaysToFetch:t,paddingY:n=3}){var r;const a=Object(f.c)(),c=Object(u.b)(),d=Object(y.i)(),{isAtEnd:m,isFetching:b,fetchMore:g}=Object(T.b)({name:"TodayTabResource",options:Object(w.g)(!0,t,null===(r=d.state)||void 0===r?void 0:r.referrer)}),{isTablet:j}=Object(i.useSelector)(({session:e})=>e),x=Object(i.useSelector)(({feeds:e})=>e["today-tab"])||[];return Object(h.jsxs)(p.f,{paddingY:n,"data-test-id":"today-tab-feed",children:[x.length>0&&(c?Object(h.jsxs)(p.f,{margin:"auto",width:848,children:[S(x).map((t,n)=>Object(h.jsx)(v,{dayData:t,isFirstDayInFeed:0===n,fromSearchPage:e},n)),Object(h.jsx)(p.P,{fetchMore:s()(g,100),isAtEnd:m,isFetching:b})]}):Object(h.jsx)(o.a,{cacheKey:"todayTab",comp:({data:t,itemIdx:n})=>{const i=(()=>{switch(t.type){case"todayArticle":return Object(h.jsx)(p.f,{"data-test-id":"today-tab-article",children:Object(h.jsx)(l.a,{id:t.id,gridIndex:n,viewType:1,viewParameter:3372})});case"story":return Object(h.jsx)(_,{id:t.id,itemIndex:n,fromSearchPage:e});default:return null}})();return Object(h.jsx)(p.f,{paddingY:2,children:i})},items:x,loadItems:g,minCols:j?2:1,gutterWidth:j?24:12})),b&&Object(h.jsx)(p.f,{column:12,paddingY:2,children:Object(h.jsx)(p.U,{accessibilityLabel:a._("Loading feed","today_tab.loading","spinner label when loading today tab"),show:!0})})]})}function k({fromSearchPage:e,numDaysToFetch:t,paddingY:n}){return Object(h.jsx)(r.a,{viewType:1,viewParameter:3372,children:Object(h.jsx)(c.a,{view:1,viewParameter:3372,children:Object(h.jsx)(I,{fromSearchPage:e,numDaysToFetch:t,paddingY:n})})})}},lbiE:function(e,t){e.exports="https://s.pinimg.com/webapp/EL@2x-5895bc67.png"},lnDX:function(e,t,n){n.d(t,"a",(function(){return V}));var i=n("q1tI"),o=n("o9su"),r=n("SyXB"),a=n("gz6+");var s=({constraintMap:e,initialNavTiming:t,annotations:n})=>({...n,...Object(a.a)("constraint_",e),...Object(a.a)("mark_",Object(r.d)()),...Object(a.a)("browser_",{...t?Object(a.b)(t):{},...Object(a.c)()})}),c=n("FylZ"),l=n("LvPn"),d=n("+lzj");var u=(e,t)=>{const{firstInputDelay:n}=Object(d.e)();return[...e.map(e=>Object(l.a)(e,t)).filter(Boolean),...n?[{name:"fid",id:Object(c.a)(),parentId:t,startTime:n.startTime,endTime:n.endTime,annotationMap:{},binaryAnnotationMap:{}}]:[]]},p=n("HMdf"),h=n("B/lV"),m=n("fZG9");var b=({annotateExperiments:e,annotations:t,binaryAnnotations:n,constraintMap:i,endTime:r,imageTimings:a,metricId:c,pwtStaticContext:l,startTime:d,traceId:b,spans:f})=>{const g=Object(p.c)();let j;"initial_app_load"===c.navigationType&&(j=Object(o.a)());const x=a.map(({name:e})=>e),y=g.map(e=>Object(h.a)(e,x)).filter(({timing:e})=>!(({startTime:e,responseEnd:t},n)=>e>n.endTime||!!t&&t<n.startTime||e<n.startTime-100)(e,{startTime:d,endTime:r}));return{type:"COMPLETE",traceId:b,startTime:d,endTime:r,spans:u(y,b).concat(f),annotationMap:s({constraintMap:i,initialNavTiming:j,annotations:t}),binaryAnnotationMap:Object(m.b)({annotateExperiments:e,binaryAnnotations:n,entries:g,metricId:c,performanceResources:y,pwtEndTime:r,pwtStaticContext:l})}},f=n("3/Bf");let g=!1;var j=(e,t)=>e&&t?g?(Object(f.b)("duplicated_initial_app_load_surface_pwt"),Object(c.a)()):(g=!0,t):Object(c.a)(),x=n("n6mq"),y=n("bNC6"),O=n("nKUr");function _({children:e,heading:t}){return Object(O.jsxs)("table",{style:{width:"100%"},cellPadding:4,children:[Object(O.jsx)("thead",{children:Object(O.jsx)("tr",{children:Object(O.jsx)("th",{colSpan:2,style:{background:"#efefef"},children:Object(O.jsx)(x.cb,{weight:"bold",align:"center",children:t})})})}),Object(O.jsx)("tbody",{children:e})]})}function v({name:e,children:t}){return Object(O.jsxs)("tr",{children:[Object(O.jsx)("td",{children:Object(O.jsx)(x.cb,{weight:"bold",children:e})}),Object(O.jsx)("td",{children:"string"==typeof t?Object(O.jsx)(x.cb,{children:t}):t})]})}function w({result:e}){return"ABORT"===e.type?Object(O.jsx)(v,{name:"Abort Reason",children:e.reason}):Object(O.jsxs)(i.Fragment,{children:[Object(O.jsx)(v,{name:"PWT (ms)",children:Object(O.jsx)(x.cb,{align:"end",children:Math.round(e.endTime-e.startTime)})}),Object(O.jsx)(v,{name:"PinTrace",children:Object(O.jsx)(x.cb,{italic:!0,children:Object(O.jsx)(x.C,{href:"https://pintrace.pinadmin.com/zipkin/traces/"+e.traceId.toString(16),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(O.jsxs)(x.f,{children:[Object(O.jsxs)(_,{heading:Object(y.b)(t),children:[Object(O.jsx)(v,{name:"Thrift Id",children:String(Object(y.a)(t))}),Object(O.jsx)(v,{name:"Surface",children:t.surface}),Object(O.jsx)(v,{name:"Navigation Type",children:t.navigationType}),Object(O.jsx)(v,{name:"Viewer Authed",children:String(t.isAuthenticated)})]}),Object(O.jsx)(_,{heading:"Constraints",children:n.map(e=>Object(O.jsx)(v,{name:e,children:Object(O.jsx)(x.cb,{align:"end",children:i[e]?Math.round(i[e]-o):"pending..."})},"constraint_"+e))}),Object(O.jsx)(_,{heading:"Result",children:r?Object(O.jsx)(w,{result:r}):Object(O.jsx)(v,{name:"result",children:Object(O.jsx)(x.U,{accessibilityLabel:"profiling PWT",show:!0})})})]})}var T=n("LT60");const I=e=>e.result?"COMPLETE"===e.result.type?"darkGray":"red":"gray";function k({data:e}){const[t,n]=Object(i.useState)(!1);return Object(O.jsx)(T.a,{children:Object(O.jsxs)(x.A,{children:[Object(O.jsx)(x.f,{position:"fixed",margin:3,marginBottom:12,bottom:!0,left:!0,width:50,height:50,dangerouslySetInlineStyle:{__style:{zIndex:2e3}},children:Object(O.jsx)(x.x,{accessibilityLabel:"PwtDebugger",bgColor:"lightGray",iconColor:I(e),icon:"flash",size:"lg",onClick:()=>n(!0)})}),t&&Object(O.jsx)(x.f,{position:"absolute",dangerouslySetInlineStyle:{__style:{zIndex:2e3}},children:Object(O.jsx)(x.H,{accessibilityModalLabel:"Pinner Wait Time Debugger Details",heading:"Pinner Wait Time",onDismiss:()=>n(!1),footer:null,size:"sm",children:Object(O.jsx)(x.f,{padding:6,children:Object(O.jsx)(S,{data:e})})})})]})})}var C=n("mRg4");var E=(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))}},A=n("XtwW"),L=n("FZ8N"),D=n("LrH5"),R=n("6lKZ"),B=n("y2Ga"),N=n("xfna");const F=["initial_app_load","client_route_push"],M=Object(D.a)("PwtSurface"),U="NavigationComplete",H="VisuallyComplete",z=(e,t)=>{e.isSampled&&Object(C.a)({metricId:e.metricConfig.metricId,pwtStaticContext:e.metricConfig.pwtStaticContext,result:{type:"ABORT",reason:t}})},W=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=j("initial_app_load"===i.navigationType,null===(n=o.serverData)||void 0===n?void 0:n.trace_id),m=b({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(C.a)({metricId:i,pwtStaticContext:o,result:m}),{...e,result:m,status:"DONE"}})(e,t)}return e},G=(e,t)=>{const{constraint:n,time:i}=t,o=Object(y.b)(e.metricConfig.metricId);return A.a?e.metricConfig.constraints.find(e=>e===n)?e.constraintMap[n]?(M(`constraint "${n}" is already complete.`),Object(f.b)("duplicated_constraint_complete",{constraint:n,action:o}),e):(M(`marking constraint "${n}" as complete`),W({...e,constraintMap:{...e.constraintMap,[n]:i||A.a.now()}})):(M(`marked constraint "${n}" is not a required constraint.`),e):(Object(f.b)("missing_window_performance",{action:o}),e)},q=(e,t)=>{if(M("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&&z(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 M("ignoring action due to invalid state "+e.status,t),e;switch(t.type){case"ABORT":z(e,t.reason);const n={type:"ABORT",reason:t.reason};return{...e,status:"DONE",result:n};case"ANNOTATE":const{name:i}=t.payload;if(!A.a)return e;const o=A.a.now();return M(`adding annotation {${i}: ${o}}`),{...e,annotations:{...e.annotations,[i]:o}};case"BINARY_ANNOTATE":const{name:r,value:a,annotationType:s}=t.payload;return M(`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(!A.a){const t=Object(y.b)(e.metricConfig.metricId);Object(f.b)("missing_window_performance",{action:t})}M(`removing constraint "${t}"`);const n=e.metricConfig.constraints.filter(e=>e!==t),{[t]:i,...o}=e.constraintMap;return W({...e,constraintMap:o,metricConfig:{...e.metricConfig,constraints:n}})})(e,t.payload);case"SET_SEGMENT":return((e,t)=>{if(!A.a){const t=Object(y.b)(e.metricConfig.metricId);Object(f.b)("missing_window_performance",{action:t})}M(`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){z(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:H,time:i})}case"ADD_SUBSPAN":const{startTime:l}=e,{payload:{name:d,startTime:u,endTime:p,annotations:h,binaryAnnotations:m,parentId:b}}=t;return{...e,spans:[...e.spans,{name:d,id:Object(c.a)(),startTime:u||l,endTime:p,annotationMap:{...h},binaryAnnotationMap:{...m},parentId:b}]};case"START_SUBSPAN":return{...e,spans:[...e.spans,{name:t.payload.name,id:Object(c.a)(),startTime:A.a?A.a.now():0,endTime:1/0,annotationMap:{...t.payload.annotations},binaryAnnotationMap:{...t.payload.binaryAnnotations},parentId:t.payload.parentId}]};case"STOP_SUBSPAN":const g=e.spans.findIndex(e=>e.name===t.payload.name);return g>-1?(e.spans[g].endTime=A.a?A.a.now():0,t.payload.annotations&&(e.spans[g].annotationMap={...e.spans[g].annotationMap,...t.payload.annotations}),t.payload.binaryAnnotations&&(e.spans[g].binaryAnnotationMap={...e.spans[g].binaryAnnotationMap,...t.payload.binaryAnnotations})):Object(f.b)("invalid_subspan_stop_name",{name:t.payload.name}),e;default:const j=Object(y.b)(e.metricConfig.metricId);return Object(f.b)("invalid_pwt_surface_action",{action:j}),e}};function V({children:e,...t}){const n=Object(N.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(N.c)(),{state:p,dispatch:h}=P(q,{status:"DISABLED",metricConfig:null});if(d.current!==s&&(d.current=s,u)){const{isAuthenticated:i}=u,d=a||F,p=e&&c&&d.includes(c)?{metricId:{type:"surface",surface:e,navigationType:c,isAuthenticated:i,segment:n},annotateExperiments:r,constraints:[U,...t||[],...o?[H]:[]],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)}},[]),E(p,e=>{M("handling unmount",e),"TIMING"===e.status&&z(e,"unmount")}),"TIMING"!==p.status||!p.constraintMap.NavigationComplete)return{state:p,context:null};const{startTime:m,metricConfig:b}=p;return{state:p,context:{id:m,metricId:b.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:b.constraints.includes(H)?e=>h({type:"SET_VISUALLY_COMPLETE_RESULT",payload:e}):null,markConstraintComplete:e=>h({type:"MARK_CONSTRAINT_COMPLETE",payload:{constraint:e,time:A.a?A.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(B.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(O.jsxs)(i.Fragment,{children:[Object(O.jsx)(B.b,{value:a,children:e}),L.b&&"DISABLED"!==r.status&&Object(O.jsx)(k,{data:{metricId:r.metricConfig.metricId,constraints:r.metricConfig.constraints,constraintMap:r.constraintMap,startTime:r.startTime,result:"DONE"===r.status?r.result:null}})]})}},mRg4:function(e,t,n){n.d(t,"a",(function(){return j}));let i=null;var o=(e,t)=>(i=i||{results:[],context:t},i.results.push(e),i),r=n("FZ8N"),a=n("LrH5"),s=n("bNC6"),c=n("3/Bf"),l=n("o9su"),d=n("FylZ");const u=(e,t)=>Object.keys(e).reduce((n,i)=>{const o=e[i];return o&&(n[i]={timestamp:t+o}),n},{}),p=({span:e,timeOrigin:t})=>{return{id:e.id,parent_id:e.parentId||null,result:1,name:e.name,timestamp:t+e.startTime,duration:e.endTime-e.startTime,annotations:u(e.annotationMap,t),binary_annotations:(n=e.binaryAnnotationMap,Object.keys(n).reduce((e,t)=>{const i=n[t];if(!i)return e;const{value:o,type:r}=i;return null==o?e:e.concat({name:t,value:o,annotation_type:r})},[]))};var n},h=(e,{startTime:t,endTime:n,annotationMap:i,binaryAnnotationMap:o,parentId:r,traceId:a})=>({name:"pwt/"+e,startTime:t,endTime:n,annotationMap:i,binaryAnnotationMap:o,parentId:r,id:a}),m=({annotations:e})=>e.reduce((e,{key:t,timestamp:n})=>({...e,["server_"+t]:{timestamp:n}}),{}),b=(e,t)=>({...e,annotations:{...m(t),...e.annotations},binary_annotations:[...t.binary_annotations,...e.binary_annotations]}),f=({traceId:e,actionName:t,result:n,timeOrigin:i,serverDataToJoin:o})=>{let r=p({span:h(t,n),timeOrigin:i}),a=null;return o&&(r=b(r,o),a=((e,t,n)=>{const i=Object(l.a)();return(null==i?void 0:i.responseEnd)?b(p({span:{name:"html",startTime:0,endTime:(null==i?void 0:i.responseEnd)||1,annotationMap:{},binaryAnnotationMap:{},id:e.server_span_id||Object(d.a)(),parentId:t},timeOrigin:n}),e):null})(o,e,i)),{trace_id:e,spans:[r,...a?[a]:[],...n.spans.map(e=>p({span:e,timeOrigin:i}))]}},g=Object(a.a)("reportResult");function j({metricId:e,pwtStaticContext:t,result:n,isAuth:i}){const{ajax:a,serverData:l}=t,d=Object(s.b)(e),u=`${n.type}.${d}`,p=void 0!==i&&{tags:{isAuth:i}}||void 0;if(Object(c.c)(n.reason?u.concat("."+n.reason):u,p),"COMPLETE"!==n.type)return void g("Abort metric "+d,n);const h=null!==(m=window.performance)&&void 0!==m&&m.now?Date.now()-window.performance.now():"unknown";var m,b;if("unknown"===h)return g(`Unable to convert to absolute times for ${d} due to missing time origin`),void Object(c.c)("missingTimeOrigin."+d,p);if(r.c&&(window.PWT_LAB_DATA=o(n,t)),n.spans.length&&(n.spans=n.spans.map(e=>(e.parentId||e.id===n.traceId||"network_resources"===e.name||(e.parentId=n.traceId),e))),!r.c){const i=e.navigationType&&"initial_app_load"===e.navigationType,o=n.traceId,s=f({traceId:o,actionName:d,result:n,timeOrigin:h,serverDataToJoin:i&&l||null});a({type:"POST",url:"/_/_/trace/trace/",data:{report_data:JSON.stringify(s),report_context:JSON.stringify((b=t,{debugTrace:r.a,locale:b.locale,stageName:b.stageName,userId:b.isAuthenticated?b.userId:null}))}}),g(`PinTrace ${d} will be available shortly: https://pintrace.pinadmin.com/zipkin/traces/${o.toString(16)}`,{duration:n.endTime-n.startTime,result:n,pwtStaticContext:t})}}},mUuv:function(e,t){e.exports="https://s.pinimg.com/webapp/JA@2x-15535147.png"},mp1x:function(e,t,n){var i=n("q1tI"),o=n("/MKj"),r=n("hLPq"),a=n("D2p8"),s=n("bcHz"),c=n("Lr1Z"),l=n("LT60"),d=n("eyT9"),u=n("CYge"),p=n("6CnQ"),h=n("wMN6"),m=n("28DW"),b=n("yweb"),f=n("n6mq"),g=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 x={headingOffset:{__style:{marginLeft:-10,marginRight:50}},RTLheadingOffset:{__style:{marginRight:-10,marginLeft:50}},clearIcon:{__style:{marginRight:15}},clearIconRTL:{__style:{marginLeft:15}},mask:{baseStyles:{backgroundColor:"rgba(0,0,0, .5)",height:"100%",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out",width:"100%",zIndex:1}},modal:{baseStyles:{border:Object(d.e)()?void 0:"1px solid #efefef",touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100vw",zIndex:1,left:"0px",bottom:0,borderRadius:"16px 16px 0px 0px",overflow:"hidden"},tabletStyles:{border:void 0,borderRadius:"32px",top:"50%",left:"50%",minWidth:"350px",touchAction:"none",transform:"translate(-50%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1},nonTabletSignUpStyles:{border:void 0,borderRadius:"32px",top:"50%",touchAction:"none",transform:"translate(0%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1,left:"8px",right:"8px",background:"#FFFFFF"},legoModal:{borderRadius:"32px 32px 0px 0px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"},baseStylesSliding:{border:Object(d.e)()?void 0:"1px solid #efefef",touchAction:"none",width:"100vw",height:"",zIndex:1,left:0,bottom:0},fullscreenStyles:{touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"90vw",height:"70vh",borderRadius:"8px",zIndex:1,left:"5vw",bottom:"13vh",overflowY:"hidden"},tabletNarrowStyle:{width:425,left:"50%",transform:"translateX(-50%)"}}};class y extends i.Component{constructor(...e){super(...e),j(this,"state",{isShowing:!1}),j(this,"getMaskStyles",()=>{const{isMaskTransparent:e,maskFadeInDuration:t}=this.props,{isShowing:n}=this.state,i=x.mask.baseStyles;return{__style:e?{...i,...t?{opacity:n?1:0,transitionDuration:t}:null,backgroundColor:"transparent"}:{...i,...t?{opacity:n?1:0,transitionDuration:t}:null}}}),j(this,"getModalStyles",()=>{const{fullScreenHeight:e,isCard:t,isFullscreen:n,isTablet:i,modalFadeInDuration:o,modalStyle:r,overrideBorder:a,isLegoModal:s,slideUpDuration:c,type:l,thinnerModal:d}=this.props,{isShowing:u}=this.state,p=e?{...x.modal.fullscreenStyles,height:e,marginTop:`calc(-${e} / 2)`,top:"50%"}:x.modal.fullscreenStyles;let h;n?h=p:i?h=x.modal.tabletStyles:t?h={...x.modal.baseStyles,width:"400px",left:"30vw"}:"signup"===l?(h=x.modal.nonTabletSignUpStyles,d&&("undefined"!=typeof window&&window.screen&&window.screen.width>=375?(h.left="36px",h.right="36px"):"undefined"!=typeof window&&window.screen&&window.screen.width>=345&&(h.left="21px",h.right="21px"))):h={...x.modal.baseStyles,borderRadius:"32px 32px 0 0"},s&&(h={...h,...x.modal.legoModal});return{__style:{...r||h,...a?{border:a}:Object.freeze({}),...c?{transform:u?"translateY(0)":"translateY(100vh)",transitionDuration:c}:Object.freeze({}),...o?{opacity:u?1:0,transitionDuration:o}:Object.freeze({})}}}),j(this,"getModalStylesSlideUp",()=>{const{overrideBorder:e,isLegoModal:t,isFullscreen:n,isTablet:i,type:o}=this.props,{isShowing:r}=this.state;let a=x.modal.baseStylesSliding,s=r?"translateY(0)":"translateY(100vh)";return a.border=e||a.border,a.height=n?"100vh":a.height,t&&(a={...a,...x.modal.legoModal}),i&&"related_interests_modal"===o&&(a={...a,...x.modal.tabletNarrowStyle},s=r?"translate(-50%, 0)":"translate(-50%, 100vh)"),{__style:{...a,transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:s}}}),j(this,"onMaskTouch",e=>{const t=e,{onDismiss:n,type:i}=this.props,o=n?"with":"without",r=i||"unknown_type";Object(m.k)(`mweb_unauth.mobile_modal.wash_tap.${r}.${o}_dismissal`,{x:t.clientX,y:t.clientY}),n&&n()}),j(this,"preventModalScroll",e=>{e.preventDefault()}),j(this,"preventBodyScroll",()=>{if(document.body){const{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}}),j(this,"resetBodyScroll",()=>{if(document.body){const{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}}),j(this,"requestAnimationFrameId",null)}componentDidMount(){const{allowScrolling:e,isOpen:t,setAppFocusState:n,type:i}=this.props;Object(m.a)(`mweb_unauth.mobile_modal.${i||"unknown_type"}.did_mount.is_open.${String(!!t)}`),t&&!e&&(a.c.pause(),n(!1),this.preventBodyScroll()),this.requestAnimationFrameId=Object(h.i)(()=>{this.requestAnimationFrameId&&this.setState({isShowing:!0})})}componentDidUpdate(e){const{isOpen:t,allowScrolling:n,setAppFocusState:i}=this.props;t&&!e.isOpen?(a.c.pause(),i(!1),n||this.preventBodyScroll()):!t&&e.isOpen&&(a.c.resume(),i(!0),this.resetBodyScroll())}componentWillUnmount(){const{isOpen:e,setAppFocusState:t}=this.props;e&&(a.c.resume(),t(!0),this.resetBodyScroll()),"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&this.requestAnimationFrameId&&(window.cancelAnimationFrame(this.requestAnimationFrameId),this.requestAnimationFrameId=null)}render(){const{accessibilityCloseIconLabel:e,allowScrolling:t,childPaddingX:n,childPaddingY:i,children:o,disableMask:a,enableCloseIconBackground:d,heading:p,clearIcon:h,hasCustomHeight:m,hideCloseIcon:b,isFullscreen:j,isOpen:y,isRTL:O,isSlideUp:_,legoBoardModalsEnabled:v=!1,onCloseIconDismiss:w,onDismiss:S,overrideZDepth:T,overrideBackgroundColor:I,clearIconLink:k,renderHiddenWhenClosed:C=!1,i18n:E}=this.props,P=this.getMaskStyles(),A=I||"white";if(!(y||C))return null;const L=Object(g.jsxs)(f.f,{display:y?"inlineBlock":"visuallyHidden",zIndex:T?new f.t(T):new f.o([u.d]),position:C&&!y?"static":"relative",children:[!a&&Object(g.jsx)(s.a,{accessibilityLabel:E._("Mobile Signup Modal Mask","mweb.signup_modal.mask","The acessibility label for the mask of mobile signup modal"),onTouch:this.onMaskTouch,pressState:"none",children:Object(g.jsx)(f.f,{position:"fixed",top:!0,left:!0,onTouchMove:t?()=>{}:this.preventModalScroll,dangerouslySetInlineStyle:P})}),d&&Object(g.jsx)(f.f,{top:!0,left:!0,position:"fixed",zIndex:new f.t(x.modal.baseStyles.zIndex),children:Object(g.jsx)(f.x,{accessibilityLabel:this.props.i18n._("close icon background","accesibility label for close icon on a overlay","accesibility label for close icon on a overlay"),icon:"cancel",iconColor:v?"darkGray":"white",onClick:w,size:"lg"})}),Object(g.jsxs)(f.f,{position:"fixed",color:A,onTouchMove:this.preventModalScroll,dangerouslySetInlineStyle:_?this.getModalStylesSlideUp():this.getModalStyles(),children:[e&&!b&&Object(g.jsx)(f.f,{children:Object(g.jsxs)(f.u,{alignItems:"center",flex:"grow",justifyContent:"start",children:[Object(g.jsx)(f.f,{display:"flex",alignItems:"center",padding:2,children:Object(g.jsx)(r.a,{accessibilityLabel:e,color:"darkGray",icon:"cancel",onTouch:S,padding:4,size:v?"lg":"sm"})}),Object(g.jsx)(f.f,{display:"flex",flex:"grow",alignItems:"center",justifyContent:"center",dangerouslySetInlineStyle:O?h?void 0:x.RTLheadingOffset:h?void 0:x.headingOffset,children:j?p:Object(g.jsx)(f.cb,{align:"center",weight:"bold",children:Object(g.jsx)("span",{className:"deprecatedTextSizeXL",children:p})})}),h&&Object(g.jsx)(f.f,{display:"flex",alignItems:"center",dangerouslySetInlineStyle:O?x.clearIconRTL:x.clearIcon,children:Object(g.jsx)(c.a,{to:k||"",pressState:"none",onTouch:S,children:Object(g.jsx)(f.cb,{align:"center",weight:"bold",color:"gray",children:Object(g.jsx)("span",{className:"deprecatedTextSizeXL",children:h})})})})]})}),Object(g.jsx)(f.f,{paddingX:n,paddingY:i,height:m?window.innerHeight-12+"px":"auto",overflow:m?"scrollY":"auto",children:o})]})]});return Object(g.jsx)(l.a,{children:Object(g.jsx)(f.A,{children:L})})}}j(y,"defaultProps",{allowScrolling:!1,childPaddingX:3,childPaddingY:3,hasCustomHeight:!1}),t.a=Object(o.connect)(e=>({isRTL:e.session.isRTL}),e=>({setAppFocusState:t=>e(Object(p.a)(t))}))((function(e){const t=Object(b.c)();return Object(g.jsx)(y,{...e,i18n:t})}))},"mqJ/":function(e,t){e.exports="https://s.pinimg.com/webapp/DA@2x-0a8213db.png"},"n+mC":function(e,t,n){t.a=({name:e,width:t,height:n})=>{const i=`${n}${"number"==typeof n?"px":""}`,o="number"==typeof t?t:236;return`\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: 16px;\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: ${o} ${i};\n  width: ${`${t}${"number"==typeof t?"px":""}`};\n  height: ${i};\n}\n\n@keyframes ${e}_placeHolderShimmer{\n  0% {\n      background-position: -${o}px 0;\n  }\n  100% {\n      background-position: ${o}px 0;\n  }\n}\n`}},nEAA:function(e,t,n){n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s}));const i=e=>"number"==typeof e?Math.round(e):e,o=e=>({type:"I16",value:i(e)}),r=e=>({type:"I32",value:i(e)}),a=e=>({type:"STRING",value:e}),s=e=>({type:"BOOL",value:e})},nSKK:function(e,t){e.exports="https://s.pinimg.com/webapp/SK@2x-bfa2f8d5.png"},nj6m:function(e,t,n){n.d(t,"a",(function(){return l}));var i=n("q1tI"),o=n("2xqg"),r=n.n(o),a=n("n6mq"),s=n("nKUr");const c=({fill:e,width:t,color:n})=>{const o="half"===e?Object(s.jsxs)(i.Fragment,{children:[Object(s.jsx)(a.f,{position:"absolute",children:Object(s.jsx)(a.w,{accessibilityLabel:"",color:"darkGray",icon:"star-half",size:12})}),Object(s.jsx)(a.w,{accessibilityLabel:"",color:"gray",icon:"star",size:12})]}):Object(s.jsx)(a.w,{accessibilityLabel:"",color:"full"===e?"darkGray":"gray",icon:"star",size:12});return Object(s.jsx)(a.f,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock",children:o})};function l({max_rating:e,rating:t,width:n,color:o}){const a=[],l=function(e,t){return 5*(t=t<=e?t:e)/e}(parseFloat(e)||5,parseFloat(t)||0);if(Number.isNaN(l))return null;const d=Math.floor(l),u=l-d;return r()(d,e=>a.push(Object(s.jsx)(c,{color:o,fill:"full",width:n},e))),u>=.75?a.push(Object(s.jsx)(c,{color:o,fill:"full",width:n},a.length)):u>=.25&&a.push(Object(s.jsx)(c,{color:o,fill:"half",width:n},a.length)),r()(5-a.length,()=>a.push(Object(s.jsx)(c,{color:o,fill:"empty",width:n},a.length))),Object(s.jsx)(i.Fragment,{children:a})}},o9su:function(e,t,n){var i=n("XtwW");t.a=()=>{const[e]=i.a?i.a.getEntriesByType("navigation"):[];return e}},pE5B:function(e,t,n){n.d(t,"a",(function(){return v}));var i=n("q1tI"),o=n("/MKj"),r=n("i2lo"),a=n("Tn9N"),s=n("fgPB"),c=n("ANjH"),l=n("T0FN"),d=n("VuCO"),u=n("AGnR"),p=n("pivO"),h=n("yweb"),m=n("4kAQ"),b=n("n6mq"),f=n("EC67"),g=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 x={__style:{textOverflow:"ellipsis",whiteSpace:"nowrap"}},y=1,O=2,_=3,v=0;class w extends i.PureComponent{constructor(...e){super(...e),j(this,"state",{tooltipHidden:!1}),j(this,"tooltipAnchor",Object(i.createRef)()),j(this,"getElementType",e=>{switch(e){case O:return 11081;case y:return 11674;default:return 11082}}),j(this,"handleChangeTab",e=>{var t;const n=null===(t=this.tabs)||void 0===t?void 0:t[e];n&&(this.props.setActiveTab(n.boardId,e),Object(u.e)({event_type:n.tabType===y?102:101,view_type:1,view_parameter:92,component:13184,element:this.getElementType(n.tabType),aux_data:{index:e.toString()}}))}),j(this,"handleCompleteExperience",({event:e})=>{e.stopPropagation(),e.preventDefault();const{completeExperience:t,experience:n,setActiveTab:i}=this.props;if(t(n),this.tabs){const e=this.tabs.findIndex(e=>e.tabType===_);this.tabs&&this.tabs[e]&&i(this.tabs[e].boardId,e)}}),j(this,"handleDismissExperience",({event:e})=>{e.stopPropagation(),e.preventDefault();const{dismissExperience:t,experience:n}=this.props;t(n)}),j(this,"handleDismissFlyout",()=>{const{dismissExperience:e,experience:t}=this.props;e(t)}),j(this,"updateHiddenState",e=>{this.reqAnimationId=window.requestAnimationFrame(()=>{this.setState({tooltipHidden:e})})}),j(this,"handleScroll",Object(s.a)(e=>{const{tooltipHidden:t}=this.state,n=window.scrollY;this.lastScrollPos>n+l.a&&t?this.updateHiddenState(!1):n>this.lastScrollPos+l.a&&!t&&this.updateHiddenState(!0),this.lastScrollPos=n},20))}get tabs(){const{currentTabIndex:e,shouldShowTodayTab:t,tabBoards:n}=this.props,{tooltipHidden:i}=this.state;if(n.length||t){const o=[{href:"/",text:this.props.i18n._("For you","homefeed.moreIdeasTab.homefeedTab","Homefeed tab"),tabType:O}];return t&&o.push({href:"/today/",text:this.props.i18n._("Today","Today tab","Today tab"),tabType:y,locationState:{referrer:1}}),o.push(...n.filter(e=>e).map(({id:t,name:n},o)=>({href:"/?boardId="+t,text:0!==o||e!==v||i?Object(g.jsx)(b.f,{maxWidth:100,overflow:"hidden",dangerouslySetInlineStyle:x,children:n}):Object(g.jsxs)(b.f,{ref:this.tooltipAnchor,children:[Object(g.jsx)(b.f,{maxWidth:100,overflow:"hidden",dangerouslySetInlineStyle:x,children:n}),this.renderTooltip([501228])]}),boardId:t,tabType:_}))),o}return null}componentDidMount(){window.addEventListener("scroll",this.handleScroll),this.props.shouldShowTodayTab&&Object(u.e)({event_type:13,view_type:1,view_parameter:92,component:13184,element:11674})}componentWillUnmount(){window.removeEventListener("scroll",this.handleScroll),this.reqAnimationId&&(window.cancelAnimationFrame(this.reqAnimationId),this.reqAnimationId=null)}renderTooltip(e){const{experience:t}=this.props,n=t&&t.display_data||{};return Object(g.jsx)(r.a,{eligibleIds:e,experience:t,children:Object(g.jsx)(b.L,{onDismiss:this.handleDismissFlyout,anchor:this.tooltipAnchor.current,color:"blue",idealDirection:"down",size:"sm",children:Object(g.jsxs)(b.f,{padding:2,column:12,children:[Object(g.jsx)(b.f,{padding:2,dangerouslySetInlineStyle:{__style:{whiteSpace:"normal"}},children:Object(g.jsx)(b.cb,{color:"white",weight:"bold",children:n.text})}),Object(g.jsxs)(b.f,{display:"flex",paddingY:2,column:12,children:[Object(g.jsx)(b.f,{paddingX:2,column:6,children:Object(g.jsx)(b.g,{fullWidth:!0,color:"transparent",onClick:this.handleDismissExperience,text:n.dismiss_button_text||"",size:"sm"})}),Object(g.jsx)(b.f,{paddingX:2,column:6,children:Object(g.jsx)(b.g,{fullWidth:!0,color:"white",onClick:this.handleCompleteExperience,text:n.complete_button_text||"",size:"sm"})})]})]})})})}render(){if(this.tabs){const e=this.tabs.map(e=>({href:e.href,text:e.text,locationState:e.locationState}));return Object(g.jsx)(a.a,{items:e,selectedTabIndex:this.props.currentTabIndex,onChange:this.handleChangeTab})}return null}}const S=Object(c.compose)(Object(o.connect)(null,e=>({completeExperience:t=>e(Object(m.b)(t)),dismissExperience:t=>e(Object(m.e)(t)),setActiveTab:(t,n)=>e(Object(d.a)(t,n))})),f.l)(w);t.b=function(e){const t=Object(h.c)(),n=Object(p.b)({id:1000049});return Object(g.jsx)(S,{...e,experience:n,i18n:t})}},pLLR:function(e,t,n){n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return d}));var i=n("q1tI"),o=n("nKUr");const r=Object(i.createContext)(),a=r.Provider;function s(e){function t(t){const n=Object(i.useContext)(r);if(!n)throw new Error("withRequestContext must be used within a RequestContextProvider");return Object(o.jsx)(e,{...t,requestContext:n})}return t.displayName=`withRequestContext(${String(e.displayName||e.name)})`,t}const c=({children:e})=>{const t=Object(i.useContext)(r);if(!t)throw new Error("RequestContextConsumer must be used within a RequestContextProvider");return e(t)},l=({children:e})=>{const t=Object(i.useContext)(r);if(!t)throw new Error("RequestContextConsumer must be used within a RequestContextProvider");return e(t)};function d(){const e=Object(i.useContext)(r);if(!e)throw new Error("useRequestContext must be used within a RequestContextProvider");return e}},pSsd:function(e,t,n){n.d(t,"a",(function(){return i}));const i="favorited"},pVvX:function(e,t){e.exports="https://s.pinimg.com/webapp/PL@2x-5685a97f.png"},pZP8:function(e,t){e.exports="https://s.pinimg.com/webapp/HU@2x-2916bbea.png"},pivO:function(e,t,n){n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return d}));var i=n("q1tI"),o=n("/MKj"),r=n("Y+p1"),a=n.n(r),s=n("4kAQ");const c=({extraContext:e,id:t,shouldUsePlacedExperience:n=!0})=>{const r=Object(i.useRef)(),c=Object(o.useDispatch)(),l=Object(o.useSelector)(e=>e.experiences[t]);return Object(i.useEffect)(()=>{c(Object(s.l)(t))},[c,l,t]),Object(i.useEffect)(()=>{n||a()(r.current,e)||(c(Object(s.h)([t],e)),r.current=e)},[c,e,t,n]),l},l=e=>(c(e),Object(o.useSelector)(t=>t.experiencesMulti[e.id])),d=({children:e,id:t})=>e(c({id:t}))},pody:function(e,t,n){t.a=e=>({connectEnd:e.connectEnd||0,connectStart:e.connectStart||0,domainLookupEnd:e.domainLookupEnd||0,domainLookupStart:e.domainLookupStart||0,fetchStart:e.fetchStart||0,requestStart:e.requestStart||0,redirectEnd:e.redirectEnd||0,redirectStart:e.redirectStart||0,responseEnd:e.responseEnd||0,responseStart:e.responseStart||0,secureConnectionStart:e.secureConnectionStart||0,startTime:e.startTime||0,workerStart:e.workerStart||0,unloadEventStart:e.unloadEventStart||0,unloadEventEnd:e.unloadEventEnd||0})},puiS:function(e,t){e.exports="https://s.pinimg.com/webapp/SV@2x-0e099997.png"},q5ep:function(e,t){e.exports="https://s.pinimg.com/webapp/IT@2x-60e3683e.png"},qALL: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})),n.d(t,"d",(function(){return c}));var i=n("n6mq"),o=n("nKUr");const r=({children:e})=>Object(o.jsx)(i.f,{padding:4,position:"absolute",bottom:!0,left:!0,right:!0,children:e}),a=({children:e})=>Object(o.jsx)(i.f,{padding:2,children:e}),s=({children:e})=>Object(o.jsx)(i.f,{display:"flex",position:"absolute",top:!0,height:"100%",width:"100%",alignItems:"center",justifyContent:"center",children:e}),c=({children:e})=>Object(o.jsx)(i.f,{padding:4,position:"absolute",top:!0,left:!0,right:!0,children:e})},qDpr:function(e,t,n){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return r}));const i=236,o=4,r=-1},qcoM:function(e,t,n){n.d(t,"a",(function(){return m}));var i=n("q1tI"),o=n("DzJC"),r=n.n(o),a=n("dRc8"),s=n("iaut"),c=n("lIsI"),l=n("QAzJ"),d=n("g6r8"),u=n("n6mq"),p=n("nKUr");const h=.3,m=new u.o([s.a]);t.b=({children:e,hideDrawer:t})=>{var n;const o=Object(i.useRef)(null),s=Object(i.useRef)(null),[b,f]=Object(i.useState)(null),[g,j]=Object(i.useState)(0),[x,y]=Object(i.useState)(!1),O=(null===(n=Object(a.a)())||void 0===n?void 0:n.height)||0,[_,v]=Object(i.useState)(!1),w=Object(l.a)("seo_mweb_unauth_drawer_height"),S=Object(d.c)(),T=(()=>{switch(S&&w().group){case"enabled_38":return.38;case"enabled_20":return.2;case"enabled_10":return.1;case"enabled_no_drawer":return 0;default:return.25}})(),I=1-T,k=(I+h)/2,C=null!=b?b:O*(1-T),E=()=>{var e;const t=(null===(e=o.current)||void 0===e?void 0:e.offsetTop)||0;return t>0&&O>0?t-O*h+60:0};return Object(i.useEffect)(()=>{const e=()=>{var e;const n=(null===(e=o.current)||void 0===e?void 0:e.offsetTop)||0;window.scrollY+C>n&&t()};e();const n=r()(e,10);return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[t,C]),Object(p.jsxs)(i.Fragment,{children:[Object(p.jsx)(u.f,{position:"fixed",bottom:!0,left:!0,right:!0,color:"white",zIndex:m,height:null===b?100*T+"vh":`calc(100vh - ${b}px)`,dangerouslySetInlineStyle:{__style:{...x?{transitionDuration:"500ms",transitionProperty:"maxHeight, borderRadius"}:{},borderRadius:0===b&&x?0:"32px 32px 0 0",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)",overscrollBehavior:"none",touchAction:"none"}},"data-test-id":"related-pins-drawer","data-layout-shift-boundary-id":"Drawer",ref:s,onTouchStart:e=>{const{clientY:t}=e.touches[0];j(t),y(!1)},onTouchMove:e=>{e.preventDefault();const{clientY:t}=e.touches[0],n=null!=b?b:window.innerHeight*(1-T),i=t-g;if(null!==n&&i){const e=O*h,t=O*I,r=Math.floor(Math.min(t,Math.max(e,n+i)));f(r);const a=E();if(O>0&&a>0){const e=a*(o=r/O,1-(Math.max(h,Math.min(I,o))-h)/(I-h));window.pageYOffset<e&&window.scrollTo({top:e})}r<O*k&&v(!0)}var o;j(t)},onTouchEnd:()=>{if(_){y(!0);f(O*h);const e=E();e&&window.scrollTo({top:e,behavior:"smooth"}),v(!1)}},children:Object(p.jsx)(u.f,{paddingX:c.a,children:e})}),Object(p.jsx)(u.f,{ref:o,height:"100vh"})]})}},qqi5:function(e,t){e.exports="https://s.pinimg.com/webapp/ID@2x-1dc864b9.png"},r5Pl:function(e,t,n){n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var i=n("yweb"),o=n("n6mq"),r=n("QAzJ"),a=n("qpbZ"),s=n("nKUr");const c=[0,2,3];function l({hasAffiliatedProducts:e,isPromoted:t,sponsorName:n,sponsorshipStatus:l,textColor:d}){const u=Object(i.c)(),p=Object(r.a)("mweb_web_android_ios_clbc_eu_ad_string")().anyEnabled;let h;t?h=Object(a.b)(u._("Promoted by {{ name }}","sponsorship.sponsorshipText.promotedByBrand","indicating the username of the person who promoted the pin"),{name:n}):l||0===l?h=n&&!c.includes(l)?Object(a.b)(u._("Paid partnership with {{ name }}","closeup.creator.sponsoredPinTitle","Subtext of closeup creator card when sponsored by a brand"),{name:n}):u._("Paid partnership","closeup.creator.sponsoredPinTitle","Subtext of closeup creator card when the pin is sponsored but the sponsorship status is rejected/requested/unaffiliated"):e&&(h=u._("Includes sponsored products","sponsorship.sponsorshipText.affiliatedProducts","Subtext of pincard attribution for a pin with affiliated products"));const m=p&&!t?"Ad • ":"";return Object(s.jsxs)(o.cb,{color:d,size:"sm",children:[m,h]})}},"rc+o":function(e,t){e.exports="https://s.pinimg.com/webapp/zhCN@2x-d3d7eda9.png"},sEfC:function(e,t,n){var i=n("GoyQ"),o=n("QIyF"),r=n("tLB3"),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,d,u,p,h,m=0,b=!1,f=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function j(t){var n=c,i=l;return c=l=void 0,m=t,u=e.apply(i,n)}function x(e){return m=e,p=setTimeout(O,t),b?j(e):u}function y(e){var n=e-h;return void 0===h||n>=t||n<0||f&&e-m>=d}function O(){var e=o();if(y(e))return _(e);p=setTimeout(O,function(e){var n=t-(e-h);return f?s(n,d-(e-m)):n}(e))}function _(e){return p=void 0,g&&c?j(e):(c=l=void 0,u)}function v(){var e=o(),n=y(e);if(c=arguments,l=this,h=e,n){if(void 0===p)return x(h);if(f)return clearTimeout(p),p=setTimeout(O,t),j(h)}return void 0===p&&(p=setTimeout(O,t)),u}return t=r(t)||0,i(n)&&(b=!!n.leading,d=(f="maxWait"in n)?a(r(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),v.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=l=p=void 0},v.flush=function(){return void 0===p?u:_(o())},v}},snfI:function(e,t,n){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var i=n("q1tI"),o=n("1dBE"),r=n("nKUr");const{Provider:a,Consumer:s,useHook:c}=Object(o.c)("NavFooterContext");function l({children:e}){const[t,n]=Object(i.useState)(),[o,s]=Object(i.useState)(!1),[c,l]=Object(i.useState)(!1),[d,u]=Object(i.useState)(!1);return Object(r.jsx)(a,{value:{homeFlyoutText:t,isNavFooterHiddenAfterScroll:o,setHomeFlyoutText:n,setIsNavFooterHiddenAfterScroll:s,setShowHomeBadge:l,setShowHomeFlyoutWithButton:u,showHomeBadge:c,showHomeFlyoutWithButton:d},children:e})}},"t12/":function(e,t,n){var i=n("q1tI");t.a=Object(i.createContext)("undefined"!=typeof window?window:null)},t73z:function(e,t){e.exports="https://s.pinimg.com/webapp/FR@2x-bf910b39.png"},tLB3:function(e,t,n){var i=n("jXQH"),o=n("GoyQ"),r=n("/9aa"),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},tVBo:function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("eOdZ");function o(e){return i.d.create("ApiResource",{url:"/v3/offsite/",data:e})}},vZdC:function(e,t){e.exports="https://s.pinimg.com/webapp/TH@2x-0a53c197.png"},vzKb:function(e,t,n){t.a=(e,t,n)=>{if(!window.PerformanceObserver)return null;try{const i=new window.PerformanceObserver(t);return i.observe(e),window.addEventListener("beforeunload",()=>{i.disconnect()}),n&&window.addEventListener("popstate",()=>{n()}),i}catch(i){return null}}},wWTz:function(e,t){e.exports="https://s.pinimg.com/webapp/NL@2x-5f1515db.png"},wWUS:function(e,t){e.exports="https://s.pinimg.com/webapp/DA@2x-e5d12354.png"},wdUa:function(e,t,n){n.d(t,"a",(function(){return ye}));var i=n("0BYx"),o=n.n(i),r=n("9S0N"),a=n.n(r),s=n("wWUS"),c=n.n(s),l=n("jxkU"),d=n.n(l),u=n("fEUV"),p=n.n(u),h=n("TZCD"),m=n.n(h),b=n("L9+L"),f=n.n(b),g=n("i4MZ"),j=n.n(g),x=n("1lhQ"),y=n.n(x),O=n("8sPw"),_=n.n(O),v=n("pZP8"),w=n.n(v),S=n("kBCb"),T=n.n(S),I=n("x20t"),k=n.n(I),C=n("Iv9x"),E=n.n(C),P=n("1eJw"),A=n.n(P),L=n("0DNT"),D=n.n(L),R=n("J/m7"),B=n.n(R),N=n("O0mV"),F=n.n(N),M=n("AQTh"),U=n.n(M),H=n("ZFin"),z=n.n(H),W=n("pVvX"),G=n.n(W),q=n("UbOS"),V=n.n(q),Y=n("NOhL"),K=n.n(Y),$=n("cGzF"),X=n.n($),Z=n("nSKK"),Q=n.n(Z),J=n("puiS"),ee=n.n(J),te=n("geJr"),ne=n.n(te),ie=n("HAEv"),oe=n.n(ie),re=n("e5ub"),ae=n.n(re),se=n("TyUm"),ce=n.n(se),le=n("hCZv"),de=n.n(le),ue=n("cXYV"),pe=n.n(ue),he=n("YaGO"),me=n.n(he),be=n("yweb"),fe=n("eQwl"),ge=n("n6mq"),je=n("nKUr");const xe={"AR-SA":o.a,"ZH-CN":pe.a,"ZH-TW":me.a,CS:a.a,DA:c.a,DE:d.a,EL:p.a,EN:m.a,ES:f.a,FI:j.a,FR:y.a,HI:_.a,HU:w.a,ID:T.a,IT:k.a,JA:E.a,KO:A.a,ML:D.a,MS:B.a,NB:z.a,NL:F.a,NN:U.a,NO:z.a,PL:G.a,PT:V.a,RO:K.a,RU:X.a,SK:Q.a,SV:ee.a,TH:ne.a,TL:oe.a,TR:ae.a,UK:ce.a,VI:de.a};function ye({locale:e}){const t=Object(be.c)(),n=Object(fe.c)(e),i=xe[n]||xe.EN,o=t._("Install the Pinterest app on iOS");return Object(je.jsx)(ge.y,{naturalHeight:80,naturalWidth:270,src:i,alt:o})}},wzxk:function(e,t,n){n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return d}));var i=n("9Hsp");const o=e=>"string"==typeof e?e:"",r=e=>e.story_pin_data&&e.story_pin_data.metadata&&e.story_pin_data.metadata.pin_title||e.title,a=(e,t)=>e?e.trim().length>t?Object(i.b)(e.trim(),t).trim():e.trim():"",s=(e,t)=>{const{grid_title:n}=e||{},{hasRichAttributionTitle:i,hasPlaceInfo:o}=(e=>{const{place_summary:t,rich_summary:n}=e||{},i=n&&"mobile application"!==n.type_name;return{hasRichSummary:i,hasRichAttributionTitle:i&&n.display_name,hasPlaceInfo:!!t}})(e),s=r(e),c=t?a(n,200):n;return c||(i?(e=>{const{rich_summary:t}=e;let{apple_touch_icon_images:n,favicon_images:i}=t;return n=n||{},i=i||{},{faviconLink:n["50x"]||i["50x"]||n.orig||i.orig,siteName:t.site_name||e.domain,title:t.display_name}})(e).title:o?(e=>{const{place_summary:t}=e;return{faviconLink:t.source_icon,siteName:t.source_name||e.domain,title:t.name}})(e).title:e.rich_metadata&&e.rich_metadata.title?e.rich_metadata.title:e.story_pin_data_id&&s?s:null)},c=e=>{const t=e.pin_join||{},n=t.visual_annotation||[],o=n.map(e=>(t.annotations_with_links||{})[e]||{name:e,url:""});let r="";const a=(e.rich_metadata||{}).description||"",s=e.closeup_unified_description||"",c=(e=>e.rich_summary&&e.rich_summary.display_name||e.place_summary&&e.place_summary.name||"")(e).toLocaleLowerCase().trim(),l=a.toLocaleLowerCase().trim(),d=s.toLocaleLowerCase().trim();return s&&s.length>3&&d!==c?r=s:a&&a.length>3&&l!==c&&(r=a),r&&(r=Object(i.a)(Object(i.b)(r,496)).trim()),{description:r,vaseAnnotations:n,annotationsWithLinks:o}},l=(e,t,n,i)=>{const o=(n||[]).map(e=>e.name),r=e=>(e||[])[0]||null;return s(e,i)||r(t)||r(o)||e.title},d=(e,t,n)=>{const i=o(e);let r=i;if(n){const e=n.seo_description;if(e){const n=e.toLowerCase(),a=o(t);n!==i.toLowerCase()&&n!==a.trim().toLowerCase()&&(r=e)}let a=n.visual_annotation;a&&(a=a.join(", "),r&&(r+=" "),r+=a)}return r}},x20t:function(e,t){e.exports="https://s.pinimg.com/webapp/IT@2x-5749beff.png"},xfna:function(e,t,n){n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return P}));var i=n("q1tI"),o=n("EHyI");var r=e=>{const{deviceType:t,isBot:n,isSocialBot:i}=e;return`coreWebVitalsLite.v1.${(i?"socialBot":n&&"bot")||"nonbot"}.${t}`},a=n("7w6Q"),s=n("iMUD"),c=n("LrH5"),l=n("ONNR");const d=Object(c.a)("LayoutShiftDebugger"),u=e=>e instanceof HTMLElement&&e.dataset&&(e.dataset.layoutShiftBoundaryId||e.dataset.testId)||e.parentNode&&u(e.parentNode)||null,p=e=>Math.round(1e3*e);let h=[];var m=({staticContext:e,getCurrentRoute:t,getLastNavigationTime:n})=>{const i=Object(s.c)({annotateMarks:["initialAppLoad","RenderReactContainer"],name:"cumulative_layout_shift",pwtStaticContext:e});let o=0;const c=e=>{o=e.timeStamp};window.addEventListener("scroll",c),window.addEventListener("beforeunload",()=>{window.removeEventListener("scroll",c)});const m=r(e)+".CLS",b=()=>(e=>{let t=Object.freeze({}),n=0;h.forEach(({value:e,shift:{sources:i},route:o,hadRecentNavigation:r,hadRecentScroll:a})=>{if(n+=e,!i||!i.length)return;const s=e/i.length;i.forEach(({node:e})=>{const n=e?u(e)||"ROOT":"NODE_REMOVED",i={route:o,boundaryId:n,hadRecentNavigation:r,hadRecentScroll:a},c=JSON.stringify(i);t={...t,[c]:{score:((t[c]||{}).score||0)+s,tags:i}}})}),Object.keys(t).forEach(n=>{const{score:i,tags:o}=t[n];a.a.count(e+".shifts",p(i),1,{...o})}),d("Debug CLS boundaries",n,t,h),h=[]})(m);let f,g,j=0,x=0,y=0;Object(l.a)(({entries:e,value:i})=>{if(y=i||0,e.length){f=t(),g=n();const r=e[0].startTime,a=j!==r,s=a?e:e.slice(x);a&&(j=r),h=h.concat(s.map(e=>({value:i,shift:e,route:f,hadRecentNavigation:g>0&&g+500>e.startTime,hadRecentScroll:o>0&&o+500>e.startTime}))),x=e.length}},!0);const O=setInterval(()=>{if(h.length){b();const t=(e=y)<=.1?"good":e<=.25?"adequate":"poor";a.a.count(`${m}.${t}`,1,1),i.stop(p(y))}var e},1e3);window.addEventListener("beforeunload",()=>{clearInterval(O),0===y&&i.abort("no_shifts_detected")})},b=n("+lzj");const f={pin_closeup:{LCP:"pin_closeup_lcp",FID:"pin_closeup_fid"},board:{LCP:"board_lcp",FID:"board_fid"}},g=({surface:e,isAuthenticated:t})=>{if(t)return[];switch(e){case"pin_closeup":return["mweb_pin_page_ssr_lite"];default:return[]}};var j=({pwtStaticContext:e,surface:t})=>{const n="pin_closeup"===t||"board"===t?(({pwtStaticContext:e,surface:t})=>{const n=Object(s.c)({annotateExperiments:g({surface:t,isAuthenticated:e.isAuthenticated}),annotateResourceTimingForSurface:t,annotateMarks:["initialAppLoad","RenderReactContainer",...e.isAuthenticated?[]:["firstClientRenderUnauthPageWrapper","mountUnauthPageWrapper"],..."pin_closeup"===t?["firstClientRenderCloseupPage","firstClientRenderCloseupImage"]:[]],name:f[t].LCP,pwtStaticContext:e}),i=Object(s.c)({name:f[t].FID,pwtStaticContext:e});return(e,t)=>{"LCP"===e?n.stop(t):"FID"===e&&i.stop(t)}})({pwtStaticContext:e,surface:t}):null,i={},o=(o,s)=>{if(!i[o]){i[o]=!0;const c=r(e);if("LCPCount"===o){const e=`${c}.${t}.${o}`;a.a.count(e+".sum",s,1),a.a.increment(e+".size",1)}else a.a.timing(`${c}.${t}.${o}`,s,1),n&&n(o,s)}};Object(l.c)(({value:e})=>o("FID",(e=>Number(e.toFixed(2)))(e))),Object(l.d)(({value:e})=>{o("LCPCount",Object(b.d)()),o("LCP",(e=>10*Math.round(e/10))(e))}),Object(l.b)(({value:e})=>o("FCP",e))};var x=e=>{switch(e){case"/":return"homefeed";case"/pin/:id":return"pin_closeup";case"/pin/:id/visual-search":return"flashlight";case"/:username/:slug":return"board";case"/:username":return"other_profile";case"/search/:scope":return"search";case"/topics/:interest":return"topic";default:return null}},y=n("gg0E"),O=n("SyXB"),_=n("FZ8N"),v=n("3/Bf"),w=n("HMdf"),S=n("EC67"),T=n("nKUr");const I=Object(i.createContext)(null),k=Object(i.createContext)(null);function C({children:e,immutableLocation:t,resourceTimingCacheSize:n,routerHistoryAction:r,staticContext:s}){const c=Object(i.useRef)(null),l=Object(i.useRef)(null),d=Object(i.useRef)(t),u=Object(i.useRef)(!0),{path:p}=Object(S.k)(),h=Object(i.useRef)(p),f=Object(o.a)(s.deviceType);if(Object(i.useEffect)(()=>{h.current=p},[p]),Object(i.useEffect)(()=>{if(Object(w.f)({size:n||1e3}),Object(b.f)(),Object(v.c)("totalSessionVolume"),window.performance?["clearMarks","clearMeasures","clearResourceTimings","getEntries","getEntriesByName","getEntriesByType","mark","measure","now","setResourceTimingBufferSize"].forEach(e=>{window.performance[e]||Object(v.c)("not_supported.window.performance."+e)}):Object(v.c)("not_supported.window.performance"),window.PerformanceObserver||Object(v.c)("not_supported.window.PerformanceObserer"),Object(y.a)()||Object(v.c)("not_supported.grid_profiler"),u.current=!1,f&&!_.c&&((()=>{let e=0,t=0;const n={less25:0,less50:0,less100:0,less250:0,less500:0,less1K:0},i=i=>{const{timeStamp:o}=i,r=o-e;!e||r>=1e3?t+=1:r<25?n.less25+=1:r<50?n.less50+=1:r<100?n.less100+=1:r<250?n.less250+=1:r<500?n.less500+=1:n.less1K+=1,e=o};window.addEventListener("scroll",i),window.addEventListener("pagehide",()=>{a.a.count("pwtLogger.scrollSession.scrollSessionCount",t),Object.keys(n).forEach(e=>{const t=n[e];t&&a.a.count("pwtLogger.scrollSession.timeBetweenScrollCb."+e,t,1)}),window.removeEventListener("scroll",i)})})(),"Chrome"===s.browserName)){m({staticContext:s,getCurrentRoute:()=>h.current,getLastNavigationTime:()=>l.current||0});const e=x(p);e&&j({pwtStaticContext:s,surface:e})}},[]),d.current!==t){d.current=t,l.current=null!==(g=window.performance)&&void 0!==g&&g.now?window.performance.now():null;const{current:e}=l;if(!u.current){const t=!c.current;Object(v.c)("routeStart",{tags:{action:r}}),Object(w.a)(t),Object(b.a)(t),Object(b.b)(),Object(O.b)();const{customBufferSize:n,defaultBufferSize:i}=Object(w.e)();e&&(Object(v.c)("routeStart.customBufferSize",{count:n}),Object(v.c)("routeStart.defaultBufferSize",{count:i}),c.current={time:e,action:r})}}var g;return Object(T.jsx)(I.Provider,{value:f?s:null,children:Object(T.jsx)(k.Provider,{value:c.current,children:e})})}const E=()=>Object(i.useContext)(k),P=()=>Object(i.useContext)(I)},y2Ga:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a}));var i=n("1dBE");const{Consumer:o,Provider:r,useHook:a}=Object(i.b)("pwtSurfaceContext")},y7vW:function(e,t){e.exports="https://s.pinimg.com/webapp/EN@2x-c3eda626.png"},yqcB:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("gg0E"),o=n("q1tI"),r=n("y2Ga"),a=n("SyXB");function s({children:e,isAtEndOfFeed:t,pinData:n,itemCount:s,includeBackgroundImages:c=!1,includeVideos:l=!1}){return Object(i.b)({pinData:n,isAtEndOfFeed:t,includeBackgroundImages:c,includeVideos:l}),function(e){const t=Object(r.c)(),n=Object(o.useRef)(null);Object(o.useEffect)(()=>{e!==n.current&&(n.current=e,t&&Object(a.c)(a.a))},[!!t,e])}(s),e}},zAWC:function(e,t,n){n.d(t,"b",(function(){return Le}));var i=n("q1tI"),o=n("/MKj"),r=n("clxp"),a=n("1Fta"),s=n("FDmi"),c=n("SBn3"),l=n("8zEK"),d=n("bcHz"),u=n("rYoy"),p=n("yweb"),h=n("EfoL"),m=n("n6mq"),b=n("nKUr");var f=Object(o.connect)(({pins:e},{pinId:t})=>({pin:e[t]}),()=>({}))((function({pin:e}){var t,n,i,o,r,a;const s=Object(p.c)(),{images:c,dominant_color:l}=e,{pinTitle:d}=Object(h.m)({i18n:s,pin:e});let u=null;c&&(u=c["236x"]||c["170x"]);const f=l||"#efefef";return Boolean(u)&&Object(b.jsx)(m.f,{display:"flex",justifyContent:"center",position:"relative",children:Object(b.jsx)(m.f,{height:437,width:247,rounding:4,marginTop:4,marginBottom:4,overflow:"hidden",dangerouslySetInlineStyle:{__style:{border:"1px solid white"}},children:Object(b.jsx)(m.y,{alt:d||"",color:f,naturalHeight:null!==(t=null===(n=u)||void 0===n?void 0:n.height)&&void 0!==t?t:1,naturalWidth:null!==(i=null===(o=u)||void 0===o?void 0:o.width)&&void 0!==i?i:1,src:null!==(r=null===(a=u)||void 0===a?void 0:a.url)&&void 0!==r?r:"",fit:"cover"})})})})),g=n("dw4l"),j=n("qpbZ"),x=n("t84P"),y=n("AGnR"),O=n("5SBu");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 v=Object(i.lazy)(()=>Promise.all([n.e(178),n.e(279)]).then(n.bind(null,"6wlI")));class w extends i.PureComponent{constructor(...e){super(...e),_(this,"stopPropagation",e=>{e.stopPropagation(),e.preventDefault()}),_(this,"onUserTouch",e=>{e.stopPropagation(),e.preventDefault();const{history:t,pinner:n}=this.props;t.push(`/${n.username}/`)}),_(this,"onCommentIconTouch",e=>{e.stopPropagation(),e.preventDefault();const{history:t,pin:n}=this.props;t.push(`/pin/${n.id}/comments/`)}),_(this,"onFollow",(e,t,n)=>{e.stopPropagation(),e.preventDefault();const{followUser:i,unfollowUser:o}=this.props;n?(i(t),Object(y.e)({event_type:45,view_type:1,view_parameter:3349,object_id_str:t})):(o(t),Object(y.e)({event_type:46,view_type:1,view_parameter:3349,object_id_str:t}))}),_(this,"onSave",e=>{e.stopPropagation(),e.preventDefault();const{history:t,pinId:n}=this.props;Object(y.e)({event_type:5,view_type:1,view_parameter:3349,object_id_str:n}),t.push(`/pin/${n}/repin/`)})}render(){var e,t,n,o;const{i18n:a,pin:p,pinId:y,pinner:O,type:_,feedback:w,feedbackType:S,getRecommendationDescription:T,slotIndex:I}=this.props;if(!p||!O)return null;const{pinTitle:k}=Object(h.m)({i18n:a,pin:p}),{full_name:C,image_large_url:E,image_medium_url:P,explicitly_followed_by_me:A}=O,L=E||P,D=Object(l.a)(p),{aggregated_pin_data:R,category:B,description:N,dominant_color:F,image_signature:M,images:U,is_downstream_promotion:H,promoter:z,story_pin_data_id:W}=p;let G=null;U&&(G=U["736x"]||U["236x"]||U["170x"]);const q=Boolean(z&&!H),V=R&&R.comment_count||0,Y={imageURL:null==U||null===(e=U["236x"])||void 0===e?void 0:e.url};return Object(b.jsxs)(i.Fragment,{children:[Object(b.jsxs)(m.f,{alignItems:"center",display:"flex",paddingY:2,children:[L&&Object(b.jsx)(d.a,{onTouch:this.onUserTouch,pressState:"none",children:Object(b.jsx)(s.a,{name:null!=C?C:"",size:"sm",src:L})}),Object(b.jsx)(m.f,{dangerouslySetInlineStyle:{__style:{flex:"1 1 0%"}},marginStart:L?2:void 0,overflow:"hidden",marginEnd:2,children:Object(b.jsx)(d.a,{onTouch:this.onUserTouch,pressState:"none",children:Object(b.jsx)(m.cb,{size:"md",lineClamp:1,weight:"bold",children:q?Object(j.b)(this.props.i18n._("Promoted by {{ user }}","Label for who promoted pin","Label for who promoted pin"),{user:C}):C})})}),Object(b.jsx)(m.f,{display:"inlineBlock",children:Object(b.jsx)(d.a,{pressState:"compress",onTouch:e=>this.onFollow(e,O.id,!A),children:Object(b.jsx)(m.f,{color:"lightGray",rounding:"pill",position:"relative",children:Object(b.jsx)(m.f,{padding:3,children:Object(b.jsx)(m.cb,{color:"darkGray",weight:"bold",size:"md",children:A?this.props.i18n._("Unfollow","Unfollow creator button text","Unfollow creator button text"):this.props.i18n._("Follow","Follow creator button text","Follow creator button text")})})})})})]}),Object(b.jsx)(m.f,{children:Object(b.jsx)(x.d,{loggingId:y,objectIdStr:y,slotIndex:I,impressionData:Y,viewParameter:3349,component:13484,children:Object(b.jsx)(c.a,{children:"video"===_&&D?Object(b.jsx)(g.a,{pinId:y,isFullWidth:!0}):"storyPin"===_&&W?Object(b.jsx)(f,{pinId:y}):G?Object(b.jsx)(m.y,{alt:k||"",color:F||"#efefef",naturalHeight:null!==(t=G.height)&&void 0!==t?t:1,naturalWidth:null!==(n=G.width)&&void 0!==n?n:1,src:null!==(o=G.url)&&void 0!==o?o:""}):null})})}),k&&"storyPin"!==_&&Object(b.jsx)(m.f,{marginTop:3,children:Object(b.jsx)(m.cb,{weight:"bold",align:"center",children:k})}),Object(b.jsxs)(m.f,{alignItems:"center",display:"flex",justifyContent:"between",marginBottom:5,marginTop:3,children:[Object(b.jsx)(m.u,{alignItems:"stretch",flex:"grow",justifyContent:"start",width:"50%",children:Object(b.jsx)(d.a,{pressState:"none",onTouch:this.onCommentIconTouch,children:Object(b.jsxs)(m.u,{alignItems:"center",justifyContent:"start",children:[Object(b.jsx)(m.f,{padding:3,children:Object(b.jsx)(m.w,{icon:"speech",accessibilityLabel:this.props.i18n._("Tap to see or add comments on pin","tap to see or add comments on pin","tap to see or add comments on pin"),size:"20"})}),V>0&&Object(b.jsx)(m.f,{marginStart:-1,children:Object(b.jsx)(m.cb,{inline:!0,color:"gray",children:V})})]})})}),Object(b.jsx)(m.f,{flex:"none",display:"inlineBlock",children:Object(b.jsx)(d.a,{pressState:"compress",onTouch:this.onSave,children:Object(b.jsx)(m.f,{color:"red",rounding:"pill",position:"relative",children:Object(b.jsx)(m.f,{paddingX:6,paddingY:5,children:Object(b.jsx)(m.cb,{color:"white",weight:"bold",children:this.props.i18n._("Save","Save the Pin to a board","Save the Pin to a board")})})})})}),Object(b.jsx)(m.u,{flex:"grow",justifyContent:"end",width:"50%",children:Object(b.jsx)(r.a,{name:"SafeSuspense_FullWidthPinCard_ContextualMenu",children:Object(b.jsx)(u.a,{children:Object(b.jsx)(v,{feedback:w,feedbackType:S,getRecommendationDescription:T,pinId:y,sourceType:void 0,viewType:1,viewParameter:3349,pinImgSrc:G?G.url:"",bestPinImgSrc:G?G.url:"",pinDescription:N,pinTitle:k,pinCategory:B,imageSignature:M})})})})]})]})}}var S=Object(o.connect)(({pins:e,users:t},{pinId:n,pinnerId:i})=>({pin:e[n],pinner:t[i]}),e=>({followUser:(t,n)=>e(Object(O.g)(t,n)),unfollowUser:(t,n)=>e(Object(O.k)(t,n))}))((function(e){const t=Object(p.c)();return Object(b.jsx)(w,{...e,i18n:t})})),T=n("QwGr"),I=n("7MwI"),k=n("Tv6X"),C=n("Wjv+"),E=n("kerF"),P=n("EC67");class A extends i.Component{constructor(...e){var t,n,i;super(...e),i=e=>t=>{const{history:n}=this.props;t.preventDefault(),t.stopPropagation();const i=`/pin/${e}/`;n.push(i)},(n="handlePinChipClick")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}render(){const{chips:e}=this.props;return Object(b.jsx)(m.f,{marginTop:1,marginStart:-1,marginEnd:-1,position:"relative",dangerouslySetInlineStyle:{__style:{paddingBottom:"33.3%"}},children:Object(b.jsx)(m.f,{display:"flex",justifyContent:"between",position:"absolute",top:!0,bottom:!0,left:!0,right:!0,children:e.map(e=>{var t,n,i;const o=e.images["750x"]||{};return Object(b.jsx)(d.a,{onTouch:this.handlePinChipClick(e.id),pressState:"none",fullWidth:!0,children:Object(b.jsx)(m.f,{flex:"grow",height:"100%",paddingX:1,children:Object(b.jsx)(m.D,{rounding:2,width:"100%",height:"100%",wash:!0,children:Object(b.jsx)(m.y,{alt:"",fit:"cover",naturalHeight:null!==(t=o.height)&&void 0!==t?t:1,naturalWidth:null!==(n=o.width)&&void 0!==n?n:1,src:null!==(i=o.url)&&void 0!==i?i:""})})})},e.id)})})})}}var L=Object(P.l)(A),D=n("nj6m");const R=(e,t)=>{switch(e){case"arrow-up-right":return t._("Promoted Pin","Icon indicating this Pin is promoted","Icon indicating this Pin is promoted");case"play":return t._("Video Pin","Icon indicating this Pin is a video","Icon indicating this Pin is a video");case"gif":return t._("GIF Pin","Icon indicating this Pin is a GIF","Icon indicating this Pin is a GIF");case"star":return t._("Recipe Pin","Icon indicating this Pin is a recipe","Icon indicating this Pin is a recipe");case"tag":return t._("Product Pin","Icon indicating this Pin is a product","Icon indicating this Pin is a product");default:return""}};function B({icon:e,maxRating:t,rating:n,text:o}){const r=Object(p.c)();let a;if(e)switch(e){case"star":a=Object(b.jsx)(D.a,{max_rating:t||"",rating:n||"",width:10});break;case"story-pin":a=Object(b.jsx)(m.cb,{color:"white",children:Object(b.jsx)(m.f,{color:"darkGray",dangerouslySetInlineStyle:{__style:{padding:"1px 3px",borderRadius:"3px",textTransform:"uppercase",fontSize:"11px"}},children:r._("Story","Text indicating this Pin is a story","Text indicating this Pin is a story")})});break;default:a=Object(b.jsx)(m.f,{alignItems:"center",display:"flex",marginEnd:1,children:Object(b.jsx)(m.w,{accessibilityLabel:R(e,r),color:"darkGray",icon:e,inline:!0,size:10})})}return Object(b.jsxs)(m.f,{alignItems:"center",display:"flex",marginBottom:0,children:[a,o&&Object(b.jsx)(i.Fragment,{children:Object(b.jsx)(m.f,{marginStart:1,overflow:"hidden",children:Object(b.jsx)(m.cb,{size:"sm",lineClamp:1,children:o})})})]})}var N=n("eyT9");var F=({pinId:e})=>{var t;const n=Object(p.c)(),r=Object(o.useSelector)(({pins:e})=>e)[e];if(!r)return null;const{pinProduct:a}=Object(h.m)({i18n:n,pin:r,useGridTitleOrRichSummary:!1});if(!a||!a.price)return null;const s=a.standard_price||a.price,c=a.min_price||"",l=a.max_price||"",d=a.in_stock||!1,u=null===(t=r.rich_summary)||void 0===t?void 0:t.site_name,f=Object(N.e)()?"white":"darkGray",g=d?f:"gray";return Object(b.jsxs)(i.Fragment,{children:[u&&Object(b.jsx)(m.cb,{color:f,size:"sm",children:u}),Object(b.jsxs)(m.f,{display:"flex",alignItems:"center","data-test-id":"priceLego_price",children:[c&&l?Object(b.jsxs)(m.cb,{size:"sm",color:g,children:[c," - ",l]}):Object(b.jsx)(m.cb,{size:"sm",color:g,children:s}),!d&&Object(b.jsxs)(i.Fragment,{children:[Object(b.jsx)(m.f,{paddingX:1,children:Object(b.jsx)(m.cb,{size:"sm",color:g,children:"·"})}),Object(b.jsx)(m.cb,{size:"sm",color:g,children:n._("Out of stock","pinCard.priceLego.outOfStock","display if a product is out of stock")})]})]})]})},M=n("r5Pl"),U=n("g6r8"),H=n("gJeo"),z=n("Pezf"),W=n("28DW"),G=n("isp9");const q=Object(i.lazy)(()=>n.e(475).then(n.bind(null,"B6I5"))),V=({title:e})=>"desktop"===Object(U.a)()?Object(b.jsx)(m.v,{size:"sm",children:e}):Object(b.jsx)(m.cb,{size:"sm",weight:"bold",children:e});var Y=({allowPriceIndicator:e,contextMenu:t,credits:n,description:a,hasAffiliatedProducts:c,isHubFeed:l,isPromotedPin:h,isSponsoredPin:f,isSquarePin:g,marginTop:j,marginStart:x,marginEnd:y,onCreditsClick:O,pinDescription:_,pinId:v,pinnedToBoardId:w,pinReactionCounts:S,pinTagsChips:T,recipeCookTime:I,recipeMaxRating:k,recipeRating:C,recipeReviewCount:A,shouldShowReactions:D,title:R,type:N})=>{var Y,K;const $=Object(p.c)(),X=Object(P.i)(),Z=Object(o.useSelector)(({session:e})=>e.isAuthenticated),Q=Object(U.a)(),J=R||a||"oneTap"===N,ee=Object(o.useSelector)(({pins:e})=>e[v]),te=Object(o.useSelector)(({boards:e})=>e[w||ee&&ee.board]),ne=Object(o.useSelector)(({users:e})=>ee&&ee.pinner&&e[ee.pinner]),ie=h&&ee.promoter===ee.native_creator,oe=ee.sponsorship?Object(b.jsx)(m.cb,{inline:!0,color:"darkGray",size:"sm",weight:"bold",children:null==n?void 0:n.subtitle}):void 0;return Object(b.jsxs)(i.Fragment,{children:[T&&T.length>0&&Object(b.jsx)(E.a,{name:"mweb_stl_grid_chips",children:({anyEnabled:e})=>e&&Object(b.jsx)(L,{chips:T})}),Object(b.jsxs)(m.f,{display:"flex",height:g?e?104:72:void 0,marginEnd:y||1,marginStart:x||1,children:[Object(b.jsxs)(m.f,{flex:"grow",children:[Object(b.jsx)(m.f,{display:"flex",marginTop:j||1,children:Object(b.jsx)(m.f,{flex:"grow",children:Object(b.jsxs)(i.Fragment,{children:[Object(b.jsxs)(i.Fragment,{children:[(f||c)&&!ie&&Object(b.jsx)(m.f,{marginBottom:1,children:Object(b.jsx)(m.f,{flex:"grow",overflow:"hidden",children:Object(b.jsx)(M.b,{hasAffiliatedProducts:c,isPromoted:h,sponsorName:oe,sponsorshipStatus:null===(Y=ee.sponsorship)||void 0===Y?void 0:Y.status})})}),R&&!l&&Object(b.jsx)(m.f,{marginTop:1,overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},children:Object(b.jsx)(V,{title:R})}),"desktop"===Q&&!Z&&_&&!Object(G.Y)(X)&&Object(b.jsx)(m.f,{marginTop:1,overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},"data-test-id":"desc",children:Object(b.jsx)(m.cb,{size:"sm",inline:!0,children:_})})]}),e&&Object(b.jsx)(F,{credits:n,pinId:v}),"recipe"===N&&!!A&&Object(b.jsx)(i.Fragment,{children:Object(b.jsxs)(m.f,{alignItems:"center",display:"flex",marginTop:1,children:[!!A&&Object(b.jsx)(B,{icon:"star",maxRating:k||"",rating:C||"",text:""}),!!I&&Object(b.jsxs)(i.Fragment,{children:[Object(b.jsx)(m.f,{paddingX:1,children:Object(b.jsx)(m.cb,{size:"sm",children:"·"})}),Object(b.jsx)(m.cb,{size:"sm",children:Object(H.d)({...Object(z.b)(I),i18n:$})})]})]})})]})})}),D&&S&&Object.keys(S).length>0&&Object(b.jsx)(m.f,{height:18,children:Object(b.jsx)(r.a,{name:"SafeSuspense_PinCardDetails_GridAggregation",children:Object(b.jsx)(u.a,{children:Object(b.jsx)(q,{pinReactionCounts:S})})})}),n&&"desktop"!==Q&&Object(b.jsx)(d.a,{onTouch:e=>O&&O(e),pressState:"none",children:Object(b.jsxs)(m.f,{display:"flex",marginTop:j||(J?1:0),children:[Object(b.jsx)(m.f,{flex:"none",children:Object(b.jsx)(s.a,{name:n.title||"",size:"sm",src:n.mediumAvatar||n.avatar||void 0})}),n&&Object(b.jsxs)(m.f,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",marginStart:1,children:[n.title&&Object(b.jsx)(m.cb,{lineClamp:1,size:"sm",weight:f&&!ie||c?"normal":"bold",children:n.title}),(n.subtitle&&!f||ie)&&Object(b.jsx)(m.cb,{lineClamp:f||c?void 0:1,size:"desktop"===Q?"md":"sm",weight:l||"desktop"===Q?"bold":"normal",children:n.subtitle})]})]})}),"desktop"===Q&&!!ne&&(Object(G.r)(X)||Object(G.O)(X)||Object(G.Y)(X))&&Object(b.jsxs)(m.f,{display:"flex",marginTop:J?2:0,children:[Object(b.jsx)(m.f,{flex:"none",children:Object(b.jsx)(s.a,{name:ne.username||"",size:"sm",src:null!==(K=ne.image_small_url)&&void 0!==K?K:void 0})}),Object(b.jsxs)(m.f,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",marginStart:1,children:[Object(b.jsx)(m.C,{hoverStyle:"underline",href:`/${ne.username}/`,onClick:({event:e,disableOnNavigation:t})=>{t(),e.stopPropagation(),Object(W.h)("click_board_pin_attribution_board")},children:Object(b.jsx)(m.cb,{size:"md",weight:"bold",children:ne.full_name||ne.username})}),Object(b.jsx)(m.C,{hoverStyle:"underline",href:te.url,onClick:({event:e,disableOnNavigation:t})=>{t(),e.stopPropagation(),Object(W.h)("click_board_pin_attribution_profile")},children:Object(b.jsx)(m.cb,{size:"md",children:te.name})})]})]})]}),t]})]})};const K=Object(i.lazy)(()=>n.e(720).then(n.bind(null,"75Yz")));var $=({inviteCode:e})=>{const t=Object(p.c)();return Object(b.jsx)(m.f,{minHeight:82,children:Object(b.jsx)(r.a,{name:"SafeSuspense_PinCardSharedHeader_LoadingSpinner",children:Object(b.jsx)(u.a,{fallback:Object(b.jsx)(C.a,{accessibilityLabel:t._("Loading Invitation component","Loading InviteFetch component","loading InviteFetch component")}),children:Object(b.jsx)(K,{invite_code:e,children:e=>{const n=e?e.sender:null,i=n&&n.first_name?n.first_name.substring(0,30):"";if(!i)return null;const o=n&&!n.is_default_image?n.image_medium_url:"",r=Object(j.b)(t._("{{ name }} shared this idea with you","homefeed.pinSenderAvatar.heading","header notifying users that a sender ({{ name }}) shared a Pin to them"),{name:i});return Object(b.jsxs)(m.u,{alignItems:"center",direction:"column",justifyContent:"start",children:[Object(b.jsx)(m.D,{height:32,width:32,children:Object(b.jsx)(s.a,{name:i,src:o})}),Object(b.jsx)(m.f,{width:"80%",paddingY:2,children:Object(b.jsx)(m.cb,{align:"center",size:"md",weight:"bold",children:r})})]})}})})})})},X=n("Mstc"),Z=n("6adH"),Q=n("44UH"),J=n("ANjH"),ee=n("58KG"),te=n("9+B8");function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ie extends i.PureComponent{constructor(...e){var t;super(...e),t=this,ne(this,"state",{saveState:void 0}),ne(this,"legoFixedZIndex",new m.t(2)),ne(this,"onAddPin",(async function(){const{clientTrackingParams:e,dispatch:n,i18n:i,oneTapSave:o,pinId:r,pinnedToBoardId:a,showToast:s,viewType:c}=t.props;try{const i=await n(Object(ee.g)({i18n:t.props.i18n,pinId:r,boardId:null==o?void 0:o.boardId,isOneTapSave:!0,onUndo:()=>{t.onDeletePin()},section:null==o?void 0:o.section,showToast:s,trackingParams:{clientTrackingParams:e,pinnedToBoardId:a},viewType:c}));t.setState({saveState:"saved"}),n(Object(te.b)({boardId:null==o?void 0:o.boardId,localPinId:i.id,pinId:r}))}catch(l){s({isError:!0,text:l.message||i._("Sorry! Something went wrong on our end.","error during repin","error during repin")}),t.setState({saveState:void 0})}})),ne(this,"onDeletePin",(async function(){const{dispatch:e,i18n:n,pinId:i,savedInfo:o,showToast:r}=t.props;if(o){e(Object(te.a)({boardId:o.boardId,localPinId:o.localPinId,pinId:i}));try{await e(Object(ee.c)(o.localPinId,o.boardId)),r({text:n._("Pin deleted!","User deleted their pin","User deleted their pin")}),t.setState({saveState:void 0})}catch(a){r({isError:!0,text:n._("Sorry! There was an error deleting your Pin.","Error when user tried to delete pin","Error when user tried to delete pin")}),t.setState({saveState:"saved"})}}})),ne(this,"handlePinAction",({event:e})=>{e.stopPropagation(),e.preventDefault();const{saveState:t}=this.state,{history:n,pinId:i,isOneTapExploreLocalTab:o,pinnedToBoard:r}=this.props;["saving","deleting"].includes(t)||o&&r||(t||this.props.savedInfo?this.props.isOneTapExploreLocalTab||(this.setState({saveState:"deleting"}),this.onDeletePin()):(this.setState({saveState:"saving"}),o?n.push({pathname:`/pin/${i}/repin`,state:{isOneTapSave:!0}}):this.onAddPin()))}),ne(this,"shouldDisplayAsSaved",({isOneTapExploreLocalTab:e,pinnedToBoard:t,savedInfo:n})=>e?!!t:!!n)}render(){const{children:e,clientTrackingParams:t,homepageExperience:n,i18n:o,isInQuickSaveExperience:r,isOneTapExploreLocalTab:a,isRTL:s,location:c,oneTapSave:l,pinId:d,pinnedToBoard:u,pinnedToBoardId:p,savedInfo:h,shouldShowSaveHandoffExp:f}=this.props;if(!(l||a||r||f))return e;const g=this.shouldDisplayAsSaved({isOneTapExploreLocalTab:a,pinnedToBoard:u,savedInfo:h}),j="#000",x="rgba(255, 255, 255, 0.8)",y="white",O="darkGray";return Object(b.jsxs)(i.Fragment,{children:[e,Object(b.jsx)(m.f,{bottom:!0,left:s,padding:2,position:"absolute",right:!s,zIndex:this.legoFixedZIndex,children:r||f?Object(b.jsx)(X.b,{buttonText:!!u&&o._("Saved","OneTapSave.QuickSaveButton.Saved","Message on saved pin"),clientTrackingParams:t,color:u?"white":"red",deeplinkUri:"deeplinkUri",experience:n,inline:!0,pinnedToBoardId:p,minWidth:54,pinId:d,shape:"pill",shouldShowSavedButton:!!u,to:{pathname:`/pin/${d}/repin/`,state:{trackingParams:c.state?c.state.trackingParams:""}},showSaveHandoffExperience:f}):Object(b.jsx)(m.bb,{onTap:this.handlePinAction,rounding:"circle",children:Object(b.jsx)(m.f,{dangerouslySetInlineStyle:{__style:{backgroundColor:g?j:x}},padding:2,rounding:"circle",children:Object(b.jsx)(m.f,{dangerouslySetInlineStyle:{__style:{opacity:100}},children:Object(b.jsx)(m.w,{accessibilityLabel:g?o._("saved","checkmark icon to show pin has been saved","checkmark icon to show pin has been saved"):o._("save","button for saving quickly with one click","button for saving quickly with one click"),icon:g?"check":"add",color:g?y:O,size:"24"})})})})})]})}}const oe=Object(J.compose)(Object(o.connect)((e,{pinId:t})=>({savedInfo:e.pins[t]&&e.pins[t].savedInfo,pinnedToBoard:e.pins[t]&&e.pins[t].pinned_to_board,homepageExperience:e.experiences[40001]})),Z.a,P.l)((function(e){var t;const n=Object(p.c)(),i=Object(Q.b)(null===(t=e.homepageExperience)||void 0===t?void 0:t.experience_id),{isRTL:r}=Object(o.useSelector)(({session:e})=>e),a=Object(o.useSelector)(({session:e})=>e.unauthSavePinId),s=Object(o.useSelector)(({session:e})=>e.isAuthenticated)&&!!a&&a===e.pinId;return Object(b.jsx)(ie,{...e,i18n:n,isInQuickSaveExperience:i,shouldShowSaveHandoffExp:s,isRTL:r})}));oe.displayName="OneTapSave";var re=oe,ae=n("I1Y6"),se=n("QAzJ");function ce({boardUrl:e,boardName:t,isQuicksave:n,sectionName:i,sectionSlug:o}){const r=Object(p.c)(),a=Object(P.h)(),s=Object(se.a)("mweb_curation_save_behavior"),c=Object(se.a)("mweb_boardless_pins"),l=n&&(s({dangerouslySkipActivation:!0}).anyEnabled||c({dangerouslySkipActivation:!0}).anyEnabled),d=new m.t(1),u=!!o&&`${e}${o}/`;return Object(b.jsx)(m.f,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,zIndex:d,dangerouslySetInlineStyle:{__style:{background:"rgb(0 0 0 / .4)"}},children:Object(b.jsx)(m.f,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"start",padding:4,children:Object(b.jsx)(m.bb,{onTap:t=>{t.event.preventDefault(),a.push(l?"/me/":u||e)},children:Object(b.jsx)(m.cb,{color:"white",children:i?Object(j.b)(r._("Saved to {{sectionName}}","PinCard.SavedToSection.Overlay","Saved to section overlay"),{sectionName:Object(b.jsx)(m.cb,{color:"white",weight:"bold",inline:!0,children:Object(ae.a)(i,22)},"pincard-"+i)}):Object(j.b)(r._("Saved to {{boardName}}","PinCard.SavedToBoard.Overlay","Saved to board overlay"),{boardName:Object(b.jsx)(m.cb,{color:"white",weight:"bold",inline:!0,children:l?r._("Profile","PinCard.SavedToProfile.Overlay",'Part of string saying "Saved to Profile" after saving a Pin'):Object(ae.a)(t,22)},"pincard-"+t)})})})})})}var le=n("Ido7"),de=n("pTLB"),ue=n("YWD0");var pe=({domainLinkData:e})=>{const t=Object(p.c)(),n=Object(U.b)(),i=Object(se.a)("dweb_unauth_open_overlay"),{anyEnabled:o,group:r}=n?i():{anyEnabled:!1,group:null},a=Object(de.b)();return Object(b.jsxs)(m.f,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,color:"transparentDarkGray",children:[Object(b.jsx)(m.f,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"center",paddingX:2,children:Object(b.jsx)(m.v,{size:"sm",align:"center",color:"white",children:((e,n)=>{if(e&&n)switch(n){case"enabled_copy1":return t._("Take a closer look","PinImageHover.OverlayText","Text encouraging user to click into pin");case"enabled_copy2":return t._("See more about this idea","PinImageHover.OverlayText","Text encouraging user to click into pin");case"enabled_copy3":return t._("See details","PinImageHover.OverlayText","Text encouraging user to click into pin");case"enabled_copy4":return t._("Do more with this idea","PinImageHover.OverlayText","Text encouraging user to click into pin");case"enabled_copy5":return t._("Get more info","PinImageHover.OverlayText","Text encouraging user to click into pin");case"enabled_copy6":return t._("See","PinImageHover.OverlayText","Text encouraging user to click into pin");case"enabled_copy7":return t._("See more","PinImageHover.OverlayText","Text encouraging user to click into pin");case"enabled_copy8":return t._("Explore","PinImageHover.OverlayText","Text encouraging user to click into pin");case"enabled_copy9":return t._("Unlock","PinImageHover.OverlayText","Text encouraging user to click into pin");case"enabled_copy10":return t._("Unlock idea","PinImageHover.OverlayText","Text encouraging user to click into pin");default:return t._("Try","PinImageHover.OverlayText","Text encouraging user to click into pin")}return t._("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.")})(o,r)})}),!!e&&Object(b.jsx)(m.f,{position:"absolute",bottom:!0,left:!0,width:"100%",children:Object(b.jsx)(ue.a,{clickLoggingOptions:e.clickLoggingOptions,domain:e.domain,link:e.link,onClick:e.onClick||(null==a?void 0:a.pinLinkClickHandler)||(()=>{})})})]})};const he=({width:e,height:t,minY:n,maxY:i})=>{const o=t=>e<=0||!t?"0%":Math.round(t/e*100)+"%";return{top:n<=0?"0%":o(-1*n*t),bottom:i>=1?"0%":o(-1*(1-i)*t)}},me=({children:e,margin:t,disableRounding:n})=>Object(b.jsx)(m.f,{dangerouslySetInlineStyle:{__style:t?{marginTop:t.top,marginBottom:t.bottom}:{}},position:"relative",children:Object(b.jsx)(m.D,{wash:!0,rounding:n?0:4,children:e})});var be=({clientTrackingParams:e,color:t,description:n,domainLinkData:r,hideBottomCardText:a,image:s,imageAltText:c,imageCrop:l,isMessenger:d,isOneTapExploreLocalTab:u,isSquarePin:h,onError:f,oneTapSave:g,onLoad:j,pinId:x,pinnedToBoardId:y,pinVideo:O,disableRounding:_,slotIndex:v,storyData:w,title:S,type:T,videoDuration:I,viewType:k})=>{var C,E,P,A,L,D,R,B,N;const F=Object(p.c)(),{isRTL:M}=Object(o.useSelector)(({session:e})=>e),{group:H}=Object(se.b)("mweb_image_lazy_loading"),[z,W]=Object(i.useState)(!1),G=Object(o.useSelector)(({session:e})=>e.isAuthenticated),q=Object(o.useSelector)(({experiences:e})=>e[40001]),V=Object(Q.b)(null==q?void 0:q.experience_id),Y=V&&0===(null===(C=q.display_data)||void 0===C?void 0:C.pin_count),K=0===v&&V&&Y,$=Object(U.a)(),X=Object(o.useSelector)(({pins:e})=>e[x]),Z=Object(o.useSelector)(({boards:e})=>e[y||X&&X.board]),J=y&&X.savedThisSession,ee=r&&r.link?"with-link":"without-link",te=!G&&"desktop"!==$,ne=Object(b.jsx)(m.y,{alt:c||S||n||"",color:t,naturalHeight:null!==(E=s.height)&&void 0!==E?E:1,naturalWidth:null!==(P=s.width)&&void 0!==P?P:1,onError:f,onLoad:j,src:null!==(A=s.url)&&void 0!==A?A:"",loading:(H.includes("eager")?"eager":H.includes("lazy")&&"lazy")||"auto",fit:h?"cover":void 0}),ie=h?Object(b.jsx)(m.f,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:Object(b.jsx)(m.f,{top:!0,right:!0,bottom:!0,left:!0,position:"absolute",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:ne})}):ne;return Object(b.jsxs)("div",{className:"PinCard__imageWrapper",style:{position:"relative"},children:[Object(b.jsxs)(m.f,{"data-test-id":`pincard-${T}-${ee}`,dangerouslySetInlineStyle:{__style:{willChange:"transform",textDecoration:"none"}},overflow:"hidden",onMouseOver:te?void 0:()=>W(!0),onMouseLeave:te?void 0:()=>W(!1),position:"relative",rounding:_?0:4,children:[Object(b.jsxs)(re,{clientTrackingParams:e||"",oneTapSave:g,isOneTapExploreLocalTab:u,pinId:x,pinnedToBoardId:y,viewType:k,children:["gif"===T&&!a&&!J&&Object(b.jsx)(le.a,{text:F._("GIF","pin.pinCard.gifIconIdentifier","pin type identifier for gifs")}),"video"===T&&I&&!a&&!J&&Object(b.jsx)(le.a,{text:I}),"storyPin"===T&&w&&"number"==typeof w.page_count&&w.page_count>0&&!J&&Object(b.jsx)(le.a,{icon:"story-pin",text:w.page_count.toString()}),Object(b.jsx)(me,{disableRounding:_,margin:l?he({width:null!==(L=s.width)&&void 0!==L?L:1,height:null!==(D=s.height)&&void 0!==D?D:1,minY:l.min_y,maxY:l.max_y}):void 0,children:"video"===T&&d&&O?Object(b.jsx)(m.jb,{accessibilityMaximizeLabel:"",accessibilityMinimizeLabel:"",accessibilityMuteLabel:"",accessibilityPauseLabel:"",accessibilityPlayLabel:"",accessibilityUnmuteLabel:"",aspectRatio:O.width/O.height,captions:"",loop:!0,playing:!0,playsInline:!0,poster:null!==(R=s.url)&&void 0!==R?R:"",src:O.url,volume:0}):ie})]}),z&&!G&&Object(b.jsx)(pe,{domainLinkData:r}),G&&J&&Object(b.jsx)(ce,{boardName:Z.name,boardUrl:Z.url,sectionName:null==g||null===(B=g.section)||void 0===B?void 0:B.title,sectionSlug:null==g||null===(N=g.section)||void 0===N?void 0:N.slug,isQuicksave:"quick_saves"===Z.layout})]}),K&&Object(b.jsx)(m.f,{position:"absolute",dangerouslySetInlineStyle:{__style:{bottom:-30,left:M?-18:void 0,right:M?void 0:-18,pointerEvents:"none"}},children:Object(b.jsx)(m.M,{size:120})})]})},fe=n("JJAz"),ge=n("eFhR"),je=n("wzxk");function xe({pin:e,board:t,pinner:n}){const{anyEnabled:i}=Object(se.b)("mweb_trim_grid_title_ff");return Object(b.jsxs)(m.f,{paddingX:2,marginBottom:3,display:"flex",children:[Object(b.jsx)(m.f,{dangerouslySetInlineStyle:{__style:{textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"3"}},flex:"grow",maxHeight:48,minHeight:12,overflow:"hidden",width:142,children:Object(b.jsx)(m.cb,{size:"sm",weight:"bold",children:Object(je.b)(e,i)||e.description})}),Object(b.jsx)(m.f,{children:Object(b.jsx)(ge.a,{pin:e,board:t,pinner:n})})]})}var ye=n("Dgpg"),Oe=n("bUAJ"),_e=n("kEen"),ve=n("TXO6"),we=n("VjTW"),Se=n("NymR"),Te=n("ulr2"),Ie=n("Lr1Z"),ke=n("eqXv");const Ce={initial:{opacity:0,transition:"opacity 0.25s ease-in"},fadeIn:{opacity:1,transition:"opacity 1s ease"}},Ee=(e,t,n)=>Object(b.jsx)(Ie.a,{inline:!0,to:t,pressState:"background",children:Object(b.jsx)(m.cb,{color:"white",inline:!0,size:"md",weight:"bold",children:n})},e);function Pe({color:e,getFeedbackText:t,onUnfollow:n,pinId:r,showing:a,unfollowed:s,undoAction:c,undoActionOptions:l,viewParameter:d,viewType:u}){const h=Object(p.c)(),[f,g]=Object(i.useState)(a?"fadeIn":"initial"),j=Object(i.useRef)(null);Object(i.useEffect)(()=>("initial"===f&&a&&(j.current=window.requestAnimationFrame(()=>g("fadeIn"))),()=>{j.current&&window.cancelAnimationFrame(j.current)}),[f,g,a]);const x=Object(o.useDispatch)(),{subTitle:O,title:_,unfollow:v}=t(Ee);let w=_,S=O;v&&s&&(w=v.title,S=v.subTitle);const T=()=>{let e=c,t=l;s&&v&&v.actionOptions&&v.action&&(t={...v.actionOptions,undo:!0},"unfollowPinner"===v.action?e="followPinner":"unfollowBoard"===v.action?e="followBoard":"unfollowTopic"===v.action&&(e="followTopic")),Object(ke.a)(e,t),x(Object(ee.l)(r,"")),Object(y.e)({event_type:101,view_type:u,view_parameter:d,component:0,element:11181})};return a&&Object(b.jsx)(m.f,{dangerouslySetInlineStyle:{__style:{backgroundColor:e,...Ce[f]}},margin:1,rounding:4,position:"absolute",top:!0,bottom:!0,left:!0,right:!0,children:Object(b.jsx)(m.f,{width:"100%",height:"100%",color:"darkGray",rounding:4,overflow:"auto",children:Object(b.jsxs)(m.f,{padding:3,rounding:2,display:"flex",direction:"column",height:"100%",justifyContent:"between",children:[Object(b.jsxs)(m.f,{children:[Object(b.jsx)(m.v,{size:"sm",color:"white",children:w}),S&&Object(b.jsxs)(m.f,{marginTop:1,children:[Object(b.jsx)(m.cb,{color:"white",size:"md",inline:!0,children:S}),Object(b.jsx)(Ie.a,{to:"/edit",inline:!0,rounding:2,pressState:"background",children:Object(b.jsx)(m.cb,{color:"white",inline:!0,size:"md",weight:"bold",children:h._("Tune your home feed","Text on the button to navigate to homefeed control","Text on the button to navigate to homefeed control")})})]})]}),!s&&v&&Object(b.jsx)(m.f,{paddingY:1,children:Object(b.jsx)(m.g,{fullWidth:!0,color:"white",text:h._("Unfollow","Text on the button to unfollow a specific board / user","Text on the button to unfollow a specific board / user"),onClick:()=>v?Object(ke.a)(v.action,v.actionOptions,n):void 0})}),Object(b.jsx)(E.a,{name:"mweb_undo_hiding_a_pin",activate:!0,children:({anyEnabled:e})=>e&&(s?Object(b.jsx)(m.f,{paddingY:1,children:Object(b.jsx)(m.g,{fullWidth:!0,color:"white",text:h._("Follow again","Text on the button to follow a specific board / user again","Text on the button to follow a specific board / user again"),onClick:T})}):!v&&!!c&&Object(b.jsx)(m.f,{paddingY:1,children:Object(b.jsx)(m.g,{fullWidth:!0,color:"white",text:h._("Undo","Text on the button to undo hiding a pin","Text on the button to undo hiding a pin"),onClick:T})}))})]})})})}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Le=({isDesktop:e})=>e?0:1,De=Object(i.lazy)(()=>Promise.all([n.e(4),n.e(168),n.e(477)]).then(n.bind(null,"fdOw"))),Re=e=>Boolean(e.is_eligible_for_web_closeup),Be=e=>Boolean(e.promoter&&!e.is_downstream_promotion),Ne={width:1,height:1,url:""},Fe=e=>{const{attribution:t,embed:n,is_eligible_for_web_closeup:i,rich_summary:o,videos:r,story_pin_data_id:a}=e,s=n||t&&t.embed;return i?"oneTap":r||s&&"video"===s.type?"video":s&&"gif"===s.type?"gif":o&&"product"===o.type_name?"product":o&&"recipe"===o.type_name?"recipe":a?"storyPin":"image"},Me=e=>{if("video"===Fe(e)&&e.videos&&e.videos.video_list){const{duration:t=0}=e.videos.video_list[Object.keys(e.videos.video_list)[0]]||{};return Object(Se.g)(t)}return""},Ue=Object(i.lazy)(()=>Promise.all([n.e(178),n.e(279)]).then(n.bind(null,"6wlI")));class He extends i.Component{constructor(...e){super(...e),Ae(this,"state",{startImpressionTimer:!1}),Ae(this,"getPinImage",()=>{const{pin:e,isSquarePin:t,shouldLimitResolution:n}=this.props;if(!e||!e.images)return Ne;if(n&&e.images["170x"])return e.images["170x"];var i;if(t)return{height:136,url:null===(i=e.images["236x"])||void 0===i?void 0:i.url,width:136};const o=["236x","170x","136x136","736x","474x","orig"];for(const r of o)if(e.images[r]&&e.images[r].url)return e.images[r];return Ne}),Ae(this,"getImpressionData",()=>{const{pin:e}=this.props,t=Object(l.a)(e),n=t?{isNativeVideoAndWatchable:!!(t&&t.url&&t.height&&t.width)||void 0,videoIdStr:t&&e.videos?e.videos.id:void 0}:{},i=this.getPinImage();return{richTypes:e.shopping_flags||[],imageURL:i.url||"",...n,...this.props.impressionData}}),Ae(this,"getAuxData",()=>{const{auxData:e={},pin:t}=this.props;return{commerce_data:Object(T.a)(t),pwa_type:"undefined"!=typeof window?Object(fe.b)(window):"unknown",...e}}),Ae(this,"getFeedbackType",()=>{const{board:e,feedback:t,viewParameter:n,pin:i,pinner:o}=this.props;return this.feedbackHelpers.getFeedbackType({board:e,feedback:t,viewParameter:n,pin:i,pinner:o})}),Ae(this,"getRecommendationDescription",e=>{const{board:t,pinner:n,promoter:i,pin:o}=this.props;return this.feedbackHelpers.getRecommendationDescription({ad_match_reason:o.ad_match_reason,board:t,feedbackType:this.getFeedbackType(),makeNavigateLink:e,pinner:n,promoter:i,recommendationReason:o.recommendation_reason,sourceInterest:o.source_interest})}),Ae(this,"getPinHiddenFeedbackText",e=>{const{board:t,pin:n,pinner:i}=this.props,o=this.feedbackHelpers.getUnfollowAction({board:t,feedbackType:this.getFeedbackType(),makeNavigateLink:e,pinner:i,sourceInterest:n.source_interest});return o?{title:this.props.i18n._("Pin hidden","message displayed after hiding a pin","message displayed after hiding a pin"),subTitle:this.getRecommendationDescription(e),unfollow:o}:{title:this.props.i18n._("Pin hidden","message displayed after hiding a pin","message displayed after hiding a pin"),subTitle:this.props.i18n._("Got it! We'll try to show you more relevant Pins in the future.","message displayed after hiding a pin","message displayed after hiding a pin")}}),Ae(this,"feedbackHelpers",Object(a.a)({i18n:this.props.i18n,interpolateNamedTemplate:j.b})),Ae(this,"logOneTap",()=>{const{pin:e,trackingParams:t,viewType:n,viewParameter:i,auxData:o}=this.props,r=Object(I.a)(t,e),a={view_type:this.props.viewType,view_parameter:this.props.viewParameter,element:35,component:this.props.componentType,object_id_str:e.id,aux_data:{commerce_data:Object(T.a)(e),grid_index:this.props.slotIndex,image_signature:e.image_signature,...this.props.auxData},clientTrackingParams:r};Object(y.e)({event_type:8948,view_type:n,view_parameter:i,object_id_str:e.id,clientTrackingParams:r,aux_data:{image_signature:e.image_signature,closeup_navigation_type:"click",click_type:"clickthrough",cosmic_ray_count:"2",...o}}),Object(y.g)(a),Object(y.e)({component:this.props.componentType,event_type:13,view_type:3,clientTrackingParams:r,aux_data:{closeup_navigation_type:"web_closeup",image_signature:e.image_signature},object_id_str:e.id})}),Ae(this,"markPinAsSeen",()=>this.props.markPinAsSeen(this.props.pinId)),Ae(this,"handleLoad",()=>{this.setState({startImpressionTimer:!0})}),Ae(this,"handleError",()=>{this.setState({startImpressionTimer:!1})}),Ae(this,"handleClick",e=>{const{auxData:t,componentType:n,deviceType:i,pin:o,slotIndex:r,trackingParams:a,viewParameter:s,viewType:c,onPinClick:l,isAuth:d,unauthDesktopSignupModalPageContext:u}=this.props,p=e=>Object(W.a)(`unauth_pin_rep.${e}.${String(s)}`);if(p("click"),Object(y.f)({view_type:c,view_parameter:s,element:35,component:n,object_id_str:o.id,clientTrackingParams:Object(I.a)(a,o),aux_data:{commerce_data:Object(T.a)(o),grid_index:r,image_signature:o.image_signature,...t}}),Re(o)||Object(y.e)({event_type:8948,view_type:c,view_parameter:s,object_id_str:o.id,clientTrackingParams:Object(I.a)(a,o),aux_data:{image_signature:o.image_signature,commerce_data:Object(T.a)(o),closeup_navigation_type:"click",grid_index:r,cosmic_ray_count:"3",...t}}),!d)switch(c){case 3:Object(W.h)("click_pin_related_image"),Object(W.i)({action:"click",item:"pin",page:"pin"});break;case 5:Object(W.h)("click_board_pin_image"),Object(W.i)({action:"click",item:"pin",page:"board"});break;case 210:Object(W.h)("click_topic_pin_image"),Object(W.i)({action:"click",item:"pin",page:"topic"})}if(Re(o)&&this.logOneTap(),l&&l(),"desktop"===i){if(e.metaKey){p("click.cmd_button_pressed"),e.preventDefault();window.open(`/pin/${o.id}/`,"_blank").focus()}else if(!d&&u){const{pinImageClickHandler:t}=u;t({event:e,pin:o,linkTarget:"duploClientNav"})}}}),Ae(this,"handleCreditsClick",e=>{var t;const{history:n,pin:i}=this.props,{id:o,sponsorship:r,story_pin_data_id:a}=i,{creator:s,sponsor:c}=r||{},{id:l}=s||{},{id:d}=c||{},u=!!a;e.stopPropagation(),e.preventDefault();const p=null===(t=this.getCredits())||void 0===t?void 0:t.link;p&&n.push(p),Object(y.h)({view_type:3,element:27,object_id_str:o,component:u?230:void 0,aux_data:{pin_id:o,...l&&d?{creator_id:l,sponsor_id:d}:{}}})}),Ae(this,"handleUnfollowPin",()=>this.props.markPinUnfollowed(this.props.pin.id)),Ae(this,"handlePinSend",e=>{e&&e.stopPropagation&&e.stopPropagation();const{pin:t,board:n,setSharingOnBoardPage:i}=this.props;n&&t&&i&&n.isSocialSeasonalBoard&&i(!0,"pin",t.id)}),Ae(this,"isOverrideImageOnly",()=>{const{pin:{rich_summary:e},viewer:t,viewParameter:n}=this.props,i=3375===n;return e&&43===n&&!Object(ve.d)(t)||i}),Ae(this,"convertToGif",e=>{const t=Math.max(e.embed&&e.embed.width||0,236),n=Math.max(e.embed&&e.embed.height||0,236);return{url:e.embed?e.embed.src:"",width:t,height:n}})}componentDidMount(){const{isAuth:e,slotIndex:t,pin:n,viewParameter:i,location:o}=this.props;if(!e&&0===t&&3070===i){const e=o.pathname;Object(Oe.a)(e,n)}}getIsClaimedContent(){var e,t;const{pin:n,viewParameter:i}=this.props;return 3375===i&&!(null===(e=n.link_domain)||void 0===e||null===(t=e.official_user)||void 0===t||!t.is_primary_website_verified)}getCredits(){const{board:e,nativeCreator:t,pin:n,pinner:i,promoter:o,storyPin:r,viewParameter:a}=this.props,s=null==r?void 0:r.has_product_pins,c=0===a,l=3475===a,d=3173===a,u=3375===a,p=this.getIsClaimedContent(),h=!!n.native_creator,m=Be(n),{sponsorship:b}=n,{creator:f,sponsor:g}=b||{},j=m&&!!b&&o.id!==t.id,x=!!b&&f;if(!(m||x||c||d||h||p))return;switch(j?"PROMOTED_SPONSORED":m?"PROMOTED":x?"SPONSORED":h?"AFFILIATED_PRODUCTS":s?"NATIVE_CONTENT":p?"CLAIMED_CONTENT":e&&"protected"===e.privacy?"SAVED_BY":"DEFAULT"){case"PROMOTED_SPONSORED":return{title:t.full_name,subtitle:o.full_name,avatar:this.getPinnerImage(t.image_small_url),mediumAvatar:this.getPinnerImage(t.image_medium_url),link:`/${t.username}/`};case"PROMOTED":return{title:this.props.i18n._("Promoted by","Grid pin annotation","Grid pin annotation"),subtitle:o.full_name,avatar:this.getPinnerImage(o.image_small_url),mediumAvatar:this.getPinnerImage(o.image_medium_url),link:`/${o.username}/`};case"SPONSORED":if(!b)throw new Error("sponsorship doesn't exist when expected");return{title:t.full_name,subtitle:null==g?void 0:g.full_name,avatar:this.getPinnerImage(t.image_small_url),mediumAvatar:this.getPinnerImage(t.image_medium_url),link:`/${t.username}/`};case"AFFILIATED_PRODUCTS":return{title:t.full_name,subtitle:"",avatar:this.getPinnerImage(t.image_small_url),mediumAvatar:this.getPinnerImage(t.image_medium_url),link:`/${t.username}/`};case"NATIVE_CONTENT":let r=(null==e?void 0:e.url)||`/pin/${n.id}/`;return(u||l)&&(r=`/${t.username}/`),{title:l?this.props.i18n._("Created by","created by label for story pins","created by label for story pins"):"",subtitle:t.full_name,avatar:this.getPinnerImage(t.image_small_url),mediumAvatar:this.getPinnerImage(t.image_medium_url),link:r};case"CLAIMED_CONTENT":const{link_domain:a}=n,{official_user:s}=a||{};return s?{subtitle:s.full_name,avatar:this.getPinnerImage(s.image_small_url),mediumAvatar:this.getPinnerImage(s.image_medium_url),link:s.username?`/${s.username}/`:""}:void 0;case"SAVED_BY":return{title:this.props.i18n._("Saved by","Grid pin annotation","Grid pin annotation"),subtitle:"",avatar:this.getPinnerImage(null==i?void 0:i.image_small_url),mediumAvatar:this.getPinnerImage(null==i?void 0:i.image_medium_url),link:(null==e?void 0:e.url)||`/pin/${n.id}/`};default:return{title:(null==i?void 0:i.full_name)||"",subtitle:"",avatar:this.getPinnerImage(null==i?void 0:i.image_small_url),mediumAvatar:this.getPinnerImage(null==i?void 0:i.image_medium_url),link:(null==e?void 0:e.url)||`/pin/${n.id}/`}}}getSharedHeaderInviteCode(){var e;const{viewParameter:t,viewedSharedPins:n,pinId:i}=this.props;return 92===t?null===(e=n&&n[i])||void 0===e?void 0:e.inviteCode:void 0}getPinnerImage(e){return e&&e.includes("/user/default")?void 0:e}getPinText(){const{grid_title:e,rich_summary:t,description:n}=this.props.pin;return"string"==typeof e?{title:e,description:""}:{title:null==t?void 0:t.display_name,description:n}}renderPinCard(){var e;const{board:t,country:n,componentType:i,disableAppUpsell:o,disablePinCardPadding:a,disableRounding:s,disableReaction:c,deviceType:p,feedback:f,history:g,imageOnly:j,i18n:x,isAuth:y,isFocusPin:O,isFullWidth:_,isOneTapExploreLocalTab:v,isSquarePin:w,isImageOnlyExp:T,location:E,marginBottom:P,marginStart:A,marginEnd:L,onPinLinkClick:D,onVolumeChange:R,oneTapSave:B,pin:N,storyPin:F,pinner:M,promoter:U,pinCardDetailsMarginTop:H,slotIndex:z,trafficSource:W,viewParameter:G,viewType:q,showSeoMetadata:V,topLevelTrafficSource:K,topLevelTrafficSourceDepth:X,undoAction:Z,undoActionOptions:Q,trackingParams:J,vaseDisplayMode:ee}=this.props,{aggregated_pin_data:te,category:ne,image_signature:ie,rich_summary:oe,title:re,sponsorship:ae}=N,{description:se,title:ce}=this.getPinText(),le="desktop"===p,de=Fe(N),ue=0===G,pe=3475===G,he=Be(N),me=!!ae,fe=null==F?void 0:F.has_product_pins,ge=Object(I.a)((E&&E.state||{}).trackingParams,N),Oe=T&&!this.isOverrideImageOnly(),ve=t&&t.isSocialSeasonalBoard,Se=this.getPinImage(),Te=ve&&"gif"===de?this.convertToGif(N):Se,Ie=Object(l.a)(N),ke=Object(je.a)(null!==(e=N.description)&&void 0!==e?e:"",N.description_html||"",N.pin_join),{annotationsWithLinks:Ce}=Object(je.c)(N),Ee=y?se:Object(k.a)(N),Ae=!c&&Object(we.c)(N)&&!pe,Ne=!y&&!!N.story_pin_data_id&&!!N.seo_url;let He;if(He=Re(N)?N.tracked_link||N.link:Ne?N.seo_url:`/pin/${N.id}/`,3474===G)return Object(b.jsx)(r.a,{name:"SafeSuspense_Pin_VideoFeedPinCard",children:Object(b.jsx)(u.a,{fallback:Object(b.jsx)(C.a,{accessibilityLabel:this.props.i18n._("Loading Videos Feed Pin","Loading Videos Feed Pin component","Loading Videos Feed Pin component")}),children:Object(b.jsx)(De,{bestPinImgSrc:Object(h.c)(N),color:N.dominant_color,componentType:i,feedback:f,feedbackType:this.getFeedbackType(),image:Te,imageAltText:ke,imageSignature:ie,isFocusPin:O,onReady:this.handleLoad,onVideoClick:this.handleClick,onVolumeChange:R,pinId:N.id,pinReactionCounts:N.reaction_counts,mp4Video:Ie,hlsVideo:N.videos&&N.videos.video_list&&N.videos.video_list.V_HLSV4,title:ce,trackingParams:J,type:de,viewParameter:G,viewType:q})})});{var ze,We,Ge,qe,Ve,Ye,Ke,$e;const e=!se||Oe&&!ue?void 0:se.trim(),i=this.getSharedHeaderInviteCode(),c={country:n,deeplinkUri:Ne?N.seo_url:"pin/"+N.id,external:Re(N),externalQueryParams:{pin:N.id,client_tracking_params:J},isAppUpsellDisabled:o,onTouch:this.handleClick,pinCategory:N.category,pressState:_||"none",rounding:4,title:this.props.i18n._("See this Pin","App Upsell Text after clicking on Pin in feed","App Upsell Text after clicking on Pin in feed"),to:{pathname:He,state:{trackingParams:J,trafficSource:W,topLevelTrafficSource:K,topLevelTrafficSourceDepth:X}},upsellType:"direct",viewParameter:G,viewType:q,clientTrackingParams:ge},l=Le({isDesktop:le});return Object(b.jsxs)(m.f,{"data-test-id":"pin","data-test-pin-id":N.id,marginBottom:P||(le?0:2),children:[_?Object(b.jsx)(_e.a,{...c,children:Object(b.jsx)(m.f,{padding:l,marginBottom:0,children:Object(b.jsx)(S,{feedback:f,feedbackType:this.getFeedbackType(),getRecommendationDescription:this.getRecommendationDescription,history:g,pinId:N.id,pinnerId:M?M.id:"",slotIndex:z,type:de})})}):Object(b.jsxs)(m.f,{padding:a?0:l,marginBottom:0,children:[Object(b.jsxs)(_e.a,{...c,children:[!!i&&Object(b.jsx)($,{inviteCode:i}),Object(b.jsx)(be,{clientTrackingParams:ge,color:null!==(ze=N.dominant_color)&&void 0!==ze?ze:"",description:e,domainLinkData:N.domain&&N.link?{clickLoggingOptions:{auxData:{objectId:N.id,grid_index:z,sanitized_url:N.link}},domain:N.domain,link:N.link,onClick:D}:void 0,disableRounding:s,hideBottomCardText:ve,image:Te,imageAltText:ke,imageCrop:N.image_crop,isMessenger:ve,isOneTapExploreLocalTab:v,isSquarePin:w,onError:this.handleError,oneTapSave:B,onLoad:this.handleLoad,pinId:N.id,pinnedToBoardId:(null===(We=N.pinned_to_board)||void 0===We?void 0:We.id)||"",pinVideo:ve&&Ie||void 0,slotIndex:z,storyData:F,title:!Oe||ue?ce:void 0,type:de,videoDuration:Me(N),viewType:q})]}),(pe||!j&&(y||"desktop"===p)||"shop_feed_auth_and_unauth_mweb_override"===W)&&Object(b.jsxs)(m.f,{children:["desktopParity"===ee&&Ce&&Object(b.jsx)(ye.a,{annotations:Ce,mode:"inlineWithScrollArrows"}),Object(b.jsx)(_e.a,{...c,children:Object(b.jsx)(Y,{allowPriceIndicator:["shop_feed","shop_feed_auth_and_unauth_mweb_override"].includes(W),marginTop:H,contextMenu:y?Object(b.jsx)(m.f,{marginStart:1,marginTop:H,children:Object(b.jsx)(m.f,{height:26,width:24,children:Object(b.jsx)(r.a,{name:"SafeSuspense_Pin_ContextualMenu",children:Object(b.jsx)(u.a,{children:Object(b.jsx)(Ue,{adMatchReason:N.ad_match_reason,bestPinImgSrc:Object(h.c)(N),feedback:f,feedbackType:this.getFeedbackType(),getRecommendationDescription:this.getRecommendationDescription,imageSignature:ie,pinCategory:ne,pinDescription:Ee,pinId:N.id,pinImgSrc:Te.url,pinTitle:re,sourceType:he?"ad":ue?"following":void 0,viewParameter:G,viewType:q})})})})}):null,credits:this.getCredits(),description:e,hasAffiliatedProducts:fe,isHubFeed:pe,isPromotedPin:he,isSponsoredPin:me,isSquarePin:w,marginStart:A,marginEnd:L,onCreditsClick:this.handleCreditsClick,pinDescription:Ee,pinId:N.id,pinnedToBoardId:(null===(Ge=N.pinned_to_board)||void 0===Ge?void 0:Ge.id)||"",pinReactionCounts:N.reaction_counts,pinTagsChips:(te||{}).pin_tags_chips,promoterName:U.full_name,recipeCookTime:Oe?void 0:N.rich_summary&&N.rich_summary.display_cook_time,recipeMaxRating:Oe||null==oe||null===(qe=oe.aggregate_rating)||void 0===qe?void 0:qe.best_rating,recipeRating:Oe||null==oe||null===(Ve=oe.aggregate_rating)||void 0===Ve?void 0:Ve.rating_value,recipeReviewCount:Oe||null==oe||null===(Ye=oe.aggregate_rating)||void 0===Ye?void 0:Ye.review_count,shouldShowReactions:Ae,title:ce,type:de})})]})]}),(null==t?void 0:t.isSocialSeasonalBoard)&&y&&Object(b.jsx)(m.f,{color:"lightGray",marginBottom:6,marginEnd:"auto",marginStart:"auto",marginTop:-2,position:"relative",rounding:2,width:"90%",children:Object(b.jsx)(d.a,{onTouch:this.handlePinSend,pressState:"none",rounding:2,children:Object(b.jsx)(m.f,{padding:3,children:Object(b.jsx)(m.cb,{align:"center",weight:"bold",children:x._("Send")})})})}),"reported"===N.feedback_status?Object(b.jsx)(Pe,{color:null!==(Ke=N.dominant_color)&&void 0!==Ke?Ke:"",getFeedbackText:()=>({title:this.props.i18n._("Reported","message displayed after reporting a pin","message displayed after reporting a pin"),subTitle:this.props.i18n._("Thanks! Your feedback helps us keep the Pinterest community safe.","message displayed after reporting a pin","message displayed after reporting a pin")}),pinId:N.id,showing:!!N.feedback_status}):Object(b.jsx)(Pe,{color:null!==($e=N.dominant_color)&&void 0!==$e?$e:"",getFeedbackText:this.getPinHiddenFeedbackText,onUnfollow:this.handleUnfollowPin,pinId:N.id,showing:!!N.feedback_status,undoAction:Z,undoActionOptions:Q,unfollowed:"unfollowed"===N.feedback_status,viewParameter:G,viewType:q}),V&&"inlineHidden"===ee&&Object(b.jsx)(xe,{pin:N,board:t,pinner:M})]})}}render(){const{componentType:e,pin:t,trackingParams:n,viewParameter:i,viewType:o,slotIndex:r,objectIdStr:a,viewData:s}=this.props,{startImpressionTimer:c}=this.state;return t?Object(b.jsx)(x.d,{auxData:this.getAuxData(),component:e,impressionData:this.getImpressionData(),isPaused:!c,loggingId:t.id,objectIdStr:a,onTracked:this.markPinAsSeen,slotIndex:r,trackingParams:n,viewData:s,viewParameter:i,viewType:o,children:this.renderPinCard()}):null}}t.a=Object(o.connect)(({boards:e,experiences:t,pins:n,session:i,users:o,storyPins:r},a)=>{const s=n[a.pinId]||null,c=s&&s.story_pin_data_id?r[s.story_pin_data_id]:void 0,l=t[1000107];return{board:s&&e[s.board],country:i.country,hasPoorConnection:i.hasPoorConnection,isAuth:i.isAuthenticated,isImageOnlyExp:l&&500678===l.experience_id,pin:s,storyPin:c,pinner:s&&o[s.pinner],promoter:null!=s&&s.promoter&&o[s.promoter]||{},undoAction:s&&s.undoAction,undoActionOptions:s&&s.undoActionOptions,viewer:o[i.userId],viewedSharedPins:i.viewedSharedPins,nativeCreator:null!=s&&s.native_creator&&o[s.native_creator]||{}}},(e,{viewParameter:t,viewType:n})=>({markPinAsSeen:i=>e(Object(ee.a)({pinId:i,viewParameter:t,viewType:n})),markPinUnfollowed:t=>e(Object(ee.l)(t,"unfollowed")),setSharingOnBoardPage:(t,n,i)=>e(Object(Te.y)(t,n,i))}))((function(e){const t=Object(p.c)(),n=Object(de.b)(),i=Object(se.a)("mweb_web_android_ios_backend_clbc_display_controls"),o=Object(se.a)("mweb_web_android_ios_clbc_eu_ad_string"),r=Object(U.a)();return Object(b.jsx)(He,{...e,deviceType:r,activateEUSponsorshipDisclosureExp:o,activateSponsorshipDisclosureExp:i,unauthDesktopSignupModalPageContext:n,vaseDisplayMode:"desktop"===r?"desktopParity":"inlineHidden",i18n:t})}))},zwad:function(e,t,n){var i=n("d7ng");var o=(e,t)=>0===e.lastIndexOf(t,0),r=n("T0g9"),a=n("Jr++"),s=n("XdLN");t.a={getQueryStringParamsFromUrl(e){if(e){const t=e.split("?");if(t[1])return Object(a.a)(t[1])}return Object(a.a)()},getLoginUrl:e=>function(e,t){(t=t||{}).next;const n=Object.assign({},t,{next:window.location.href});return n.prev||(n.prev=window.location.href),`${e}?${Object(r.a)(n)}`}("/login/",e),normalizeUrl(e){const t=Object(i.a)("/");return o(e,t)?e.substr(t.length-1):e},getCurrentUrl:()=>window.location.pathname+("?"===window.location.search?"":window.location.search),getCurrentPath:()=>window.location.pathname,isOffsiteUrl:e=>!(!e||!e.match(/^https{0,1}:\/\//)||Object(s.a)(e)),isAppUrl(e){if(!e||0===e.length)return!1;const t=new RegExp("itunes\\.apple\\.com\\/(?:.*\\/)?app\\/(?:.*\\/)?id([0-9]+)"),n=new RegExp("play.google.com/store/apps/details");return t.test(e)||n.test(e)},prependHttpSchemeIfNeeded:e=>new RegExp(/http(s?):/).test(e)?e:"http://"+e,validateUrl:e=>""===e||/^(https?:\/\/)?[a-z0-9_\-]+\..+/i.test(e)}}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/19-a0e1e16189df33fc8a78.mjs.map