(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[40267,76030,42816,23019,75926,44722,93204,13748,28153],{361600:e=>{var t,n,i,a,r,o,s,l,d={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"inviteCode"},n={defaultValue:null,kind:"LocalArgument",name:"inviteType"},i={defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"AllShareOptionsUtilityMutation",selections:[{alias:null,args:a=[{fields:[{kind:"Variable",name:"inviteCode",variableName:"inviteCode"},{kind:"Variable",name:"inviteType",variableName:"inviteType"},{kind:"Variable",name:"objectId",variableName:"objectId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteSentExternalMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"fromUserId",storageKey:null}],storageKey:null}],type:"V3InviteSentExternal",abstractKey:null},{kind:"InlineFragment",selections:[r,l={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null}],type:"InvalidParameters",abstractKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,t,i],kind:"Operation",name:"AllShareOptionsUtilityMutation",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"v3InviteSentExternalMutation",plural:!1,selections:[r,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[o,s,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"V3InviteSentExternal",abstractKey:null},{kind:"InlineFragment",selections:[l],type:"InvalidParameters",abstractKey:null}],storageKey:null}]},params:{id:"1705ed8db84c79dc12b83cafd1757686fa888571bbecd699295d011693ddd4cf",metadata:{},name:"AllShareOptionsUtilityMutation",operationKind:"mutation",text:null}};d.hash="7e73aab163ac599c2451f08566f2eb15",e.exports=d},865107:e=>{var t,n,i,a,r={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"inviteType"},{defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",selections:[{alias:null,args:n=[{kind:"Variable",name:"inviteType",variableName:"inviteType"},{kind:"Variable",name:"objectId",variableName:"objectId"}],concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,concreteType:"InviteUserExternal",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"inviteCode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"inviteUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null}],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[i,{kind:"InlineFragment",selections:[a],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}]},params:{id:"6312848b4bb08588587683a04a42e4d0333e2e986fcab0cef4ed200786d3f5d9",metadata:{},name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",operationKind:"query",text:null}};r.hash="bc8b32c56a4a58de585c9a05ae69bd9c",e.exports=r},16143:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BubbleStory_story",selections:[{alias:null,args:null,kind:"ScalarField",name:"storyType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"referringSource",storageKey:null},{alias:"storyTitle",args:null,concreteType:"StoryText",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"format",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryAction",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"objects",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],type:"ExploreArticle",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryDisplayOptions",kind:"LinkedField",name:"displayOptions",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"identifierIconName",storageKey:null}],storageKey:null}],type:"Story",abstractKey:null,hash:"4243a93c1533a91b49143abf50a2c432"};e.exports=t},833045:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupRelatedModuleConfiguration_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isVerifiedMerchant",storageKey:null},{alias:null,args:null,concreteType:"VerifiedIdentity",kind:"LinkedField",name:"verifiedIdentity",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null,hash:"02bde8dfbac8f0ee5b08d5f677e73dfe"};e.exports=t},562373:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupRelatedModuleConfiguration_story",selections:[{alias:null,args:null,kind:"ScalarField",name:"storyType",storageKey:null},{alias:null,args:null,concreteType:"StoryAction",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"contentIds",storageKey:null},{alias:null,args:null,concreteType:"StoryText",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"format",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null}],type:"Story",abstractKey:null,hash:"65fff1e507ff8dfe64ebf4a815eb7417"};e.exports=t},7745:e=>{var t,n,i,a,r,o,s,l={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"invite_code"}],kind:"Fragment",metadata:null,name:"PinCardSharedHeaderQuery",selections:[{alias:null,args:n=[{kind:"Variable",name:"inviteCode",variableName:"invite_code"}],concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sender",plural:!1,selections:[a={alias:"first_name",args:null,kind:"ScalarField",name:"firstName",storageKey:null},r={alias:"is_default_image",args:null,kind:"ScalarField",name:"isDefaultImage",storageKey:null},o={alias:"image_medium_url",args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"PinCardSharedHeaderQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[i,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sender",plural:!1,selections:[a,r,o,s={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},s],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}]},params:{id:"6ecc0f5ef5b300806765351890d4c30338f4cba0f2ed6262aebb971f8d13cedd",metadata:{},name:"PinCardSharedHeaderQuery",operationKind:"query",text:null}};l.hash="6113bb3593481961950c5053449014f3",e.exports=l},741316:e=>{var t,n,i,a,r,o,s,l,d,c,u,_,p,h,m,g,v,f,y={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRep_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"adMatchReason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"altText",storageKey:null},{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[n={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isCollaborative",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"descriptionHtml",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[s={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},t,l={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,concreteType:"ImageCrop",kind:"LinkedField",name:"imageCrop",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"maxY",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minY",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d=[o,s,a,l],storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"474x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"736x")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForWebCloseup",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:[n,c={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null},_={alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPrimaryWebsiteVerified",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:m=[n,c,u,_,p,h],storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[n],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null},c,u,_,p,h],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:m,storageKey:null},{alias:null,args:null,concreteType:"ReactionCountModel",kind:"LinkedField",name:"reactionCountsData",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"reactionType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reactionCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[r,g={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},v={alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[i,{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"standardPrice",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"bestRating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayCookTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},v,{alias:null,args:null,kind:"ScalarField",name:"siteName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null},{alias:null,args:null,concreteType:"Interest",kind:"LinkedField",name:"sourceInterest",plural:!1,selections:[n,i,{alias:null,args:null,kind:"ScalarField",name:"urlName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Sponsorship",kind:"LinkedField",name:"sponsorship",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"creator",plural:!1,selections:m,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sponsor",plural:!1,selections:m,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasProductPins",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDeleted",storageKey:null},{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},g,{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[n,{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV4",plural:!1,selections:f=[{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null},s,l,a],storageKey:null},{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"v720P",plural:!1,selections:f,storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};y.hash="e58a531593f32e7b3bf5c150367900af",e.exports=y},922275:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinStory_pin",selections:[{args:null,kind:"FragmentSpread",name:"CloseupRelatedModuleConfiguration_pin"}],type:"Pin",abstractKey:null,hash:"ae543539bb18673977d412b8bef960ed"};e.exports=t},276667:e=>{var t,n,i,a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SeeMoreButton_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[n={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},i,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null}],storageKey:null},t,{args:null,kind:"FragmentSpread",name:"VaseSection_pin"}],type:"Pin",abstractKey:null};a.hash="64effb4f1e63deaf1d53b77187d996de",e.exports=a},584818:e=>{var t,n,i,a,r,o,s,l,d,c,u={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"TodayArticleModule",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"contentPin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:"images170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r=[n={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"170x")'},{alias:"images236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r,storageKey:'images(spec:"236x")'},{alias:"images736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r,storageKey:'images(spec:"736x")'},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:c=[t,o={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},d={alias:null,args:null,concreteType:"VerifiedIdentity",kind:"LinkedField",name:"verifiedIdentity",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[t,l,s,o,d],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pageCount",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"contentPinOfficialUser",plural:!1,selections:c,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"feedSource",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"headerPinId",storageKey:null},t,{alias:null,args:null,kind:"ScalarField",name:"imageUrls",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isProductPinFeed",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"showCreator",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"videoPin",plural:!1,selections:[t,{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"v720P",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"thumbnail",storageKey:null},i,a],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"TodayArticle",abstractKey:null};u.hash="a75e5ee6e059cb1a1863523f0e8f0ae6",e.exports=u},133132:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"TopicImageWithText_topic",selections:[{alias:"background_color",args:null,kind:"ScalarField",name:"backgroundColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:"follower_count",args:null,kind:"ScalarField",name:"followerCount",storageKey:null},{alias:null,args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null}],storageKey:'images(spec:"236x")'}],type:"Interest",abstractKey:null,hash:"b5b71fb4390c1d3835e468a25f687669"};e.exports=t},964820:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"TopicRepFragment_topic",selections:[{alias:"is_followed",args:null,kind:"ScalarField",name:"isFollowed",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{args:null,kind:"FragmentSpread",name:"TopicImageWithText_topic"}],type:"Interest",abstractKey:null,hash:"e5a0b7dce2aa2313e4cf2c9871cbedf7"};e.exports=t},12617:e=>{var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UnauthDesktopContextMenu_pin",selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImagesFragment_pin"}],type:"Pin",abstractKey:null};n.hash="6cc486603fe4bb19b18741c21346a49b",e.exports=n},167074:e=>{var t,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UnauthMobileContextMenu_pin",selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImagesFragment_pin"}],type:"Pin",abstractKey:null};n.hash="74f28c48f3a5ddb4a53f101389981c63",e.exports=n},85934:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseAnnotations_pin",selections:[{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useAnnotationsWithLinksFragment_pin"}],type:"Pin",abstractKey:null,hash:"594237c2ea6ccfb8bbc0e3e8c62cac9f"};e.exports=t},877821:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseSection_pin",selections:[{args:null,kind:"FragmentSpread",name:"VaseAnnotations_pin"}],type:"Pin",abstractKey:null,hash:"5645b1c5850647c98e4d2fefbb484bf4"};e.exports=t},569772:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useAnnotationsWithLinksFragment_pin",selections:[{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,concreteType:"AnnotationsWithLinks",kind:"LinkedField",name:"annotationsWithLinksArray",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null,hash:"35075da6e1f4b526ac4314727015c44d"};e.exports=t},110767:e=>{var t,n,i,a,r,o,s={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"pinId"}],kind:"Fragment",metadata:null,name:"useUnauthContextMenuQuery",selections:[{alias:null,args:n=[{kind:"Variable",name:"pin",variableName:"pinId"}],concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"UnauthDesktopContextMenu_pin"},{args:null,kind:"FragmentSpread",name:"UnauthMobileContextMenu_pin"}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"useUnauthContextMenuQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:a=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:a,storageKey:null},i],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null},{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},r,{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"60x60")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},i],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}]},params:{id:"a3c7af73694bf4bca337151ae03a4ab0cd268d45aad7d6a29c9cab3ffedebaa3",metadata:{},name:"useUnauthContextMenuQuery",operationKind:"query",text:null}};s.hash="28d48aeed76d97d5b2fc59af2e75669f",e.exports=s},353576:(e,t,n)=>{var i={"./af_ZA/inlined.js":[580927,58394],"./ar_SA/inlined.js":[987405,12799],"./bg_BG/inlined.js":[115470,273],"./bn_IN/inlined.js":[355527,72829],"./cs_CZ/inlined.js":[63315,49347],"./da_DK/inlined.js":[559793,59651],"./de/inlined.js":[364887,64291],"./el_GR/inlined.js":[611887,46625],"./en_AU/inlined.js":[70549,29365],"./en_GB/inlined.js":[694732,27715],"./en_IN/inlined.js":[806476,62658],"./en_US/inlined.js":[238210,17762],"./es_419/inlined.js":[204261,69595],"./es_AR/inlined.js":[565145,92243],"./es_ES/inlined.js":[96528,60146],"./es_MX/inlined.js":[131266,78353],"./es_US/inlined.js":[5905,60465],"./fi_FI/inlined.js":[882931,46740],"./fr/inlined.js":[966196,386],"./he_IL/inlined.js":[923381,63230],"./hi_IN/inlined.js":[252382,89454],"./hr_HR/inlined.js":[178235,15446],"./hu_HU/inlined.js":[271045,2177],"./id_ID/inlined.js":[934307,94966],"./it/inlined.js":[160660,51949],"./ja/inlined.js":[946595,74719],"./ko_KR/inlined.js":[779375,2832],"./ms_MY/inlined.js":[739381,76461],"./nb_NO/inlined.js":[391181,43029],"./nl/inlined.js":[639102,54230],"./pl_PL/inlined.js":[278070,84783],"./pt_BR/inlined.js":[921168,76639],"./pt_PT/inlined.js":[682626,55038],"./ro_RO/inlined.js":[602543,4414],"./ru_RU/inlined.js":[707033,43304],"./sk_SK/inlined.js":[37562,41319],"./sv_SE/inlined.js":[481880,12393],"./te_IN/inlined.js":[688506,1481],"./th_TH/inlined.js":[316108,82077],"./tl_PH/inlined.js":[790805,93897],"./tr/inlined.js":[39191,58892],"./uk_UA/inlined.js":[498447,86620],"./vi_VN/inlined.js":[715418,93545],"./zh_CN/inlined.js":[252819,96397],"./zh_TW/inlined.js":[545609,44009]};function a(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],a=t[0];return n.e(t[1]).then((()=>n.t(a,23)))}a.keys=()=>Object.keys(i),a.id=353576,e.exports=a},727345:(e,t,n)=>{var i={"./af_ZA/lite.js":[168454,70776],"./ar_SA/lite.js":[91744,84967],"./bg_BG/lite.js":[192463,95872],"./bn_IN/lite.js":[554521,35759],"./cs_CZ/lite.js":[865170,92002],"./da_DK/lite.js":[305866,52601],"./de/lite.js":[398590,75847],"./el_GR/lite.js":[731913,105],"./en_AU/lite.js":[745587,87328],"./en_GB/lite.js":[104201,94019],"./en_IN/lite.js":[928956,60137],"./en_US/lite.js":[600812,11890],"./es_419/lite.js":[919301,60],"./es_AR/lite.js":[300065,11661],"./es_ES/lite.js":[750943,66195],"./es_MX/lite.js":[593664,78238],"./es_US/lite.js":[247479,42003],"./fi_FI/lite.js":[734195,38074],"./fr/lite.js":[722103,99825],"./he_IL/lite.js":[99938,75686],"./hi_IN/lite.js":[408687,33515],"./hr_HR/lite.js":[703267,31058],"./hu_HU/lite.js":[333186,25360],"./id_ID/lite.js":[35949,88902],"./it/lite.js":[633627,48097],"./ja/lite.js":[63983,20998],"./ko_KR/lite.js":[488958,1293],"./ms_MY/lite.js":[811763,45767],"./nb_NO/lite.js":[875656,95593],"./nl/lite.js":[532934,67245],"./pl_PL/lite.js":[930624,46156],"./pt_BR/lite.js":[321275,74764],"./pt_PT/lite.js":[998959,16342],"./ro_RO/lite.js":[240993,13352],"./ru_RU/lite.js":[443174,70730],"./sk_SK/lite.js":[945756,24109],"./sv_SE/lite.js":[24784,62919],"./te_IN/lite.js":[583953,57914],"./th_TH/lite.js":[172914,94529],"./tl_PH/lite.js":[899292,14504],"./tr/lite.js":[179287,41009],"./uk_UA/lite.js":[511979,11860],"./vi_VN/lite.js":[821395,7106],"./zh_CN/lite.js":[191336,48563],"./zh_TW/lite.js":[729667,63838]};function a(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],a=t[0];return n.e(t[1]).then((()=>n.t(a,23)))}a.keys=()=>Object.keys(i),a.id=727345,e.exports=a},500016:(e,t,n)=>{var i={"./af_ZA/inlined.js":580927,"./ar_SA/inlined.js":987405,"./bg_BG/inlined.js":115470,"./bn_IN/inlined.js":355527,"./cs_CZ/inlined.js":63315,"./da_DK/inlined.js":559793,"./de/inlined.js":364887,"./el_GR/inlined.js":611887,"./en_AU/inlined.js":70549,"./en_GB/inlined.js":694732,"./en_IN/inlined.js":806476,"./en_US/inlined.js":238210,"./es_419/inlined.js":204261,"./es_AR/inlined.js":565145,"./es_ES/inlined.js":96528,"./es_MX/inlined.js":131266,"./es_US/inlined.js":5905,"./fi_FI/inlined.js":882931,"./fr/inlined.js":966196,"./he_IL/inlined.js":923381,"./hi_IN/inlined.js":252382,"./hr_HR/inlined.js":178235,"./hu_HU/inlined.js":271045,"./id_ID/inlined.js":934307,"./it/inlined.js":160660,"./ja/inlined.js":946595,"./ko_KR/inlined.js":779375,"./ms_MY/inlined.js":739381,"./nb_NO/inlined.js":391181,"./nl/inlined.js":639102,"./pl_PL/inlined.js":278070,"./pt_BR/inlined.js":921168,"./pt_PT/inlined.js":682626,"./ro_RO/inlined.js":602543,"./ru_RU/inlined.js":707033,"./sk_SK/inlined.js":37562,"./sv_SE/inlined.js":481880,"./te_IN/inlined.js":688506,"./th_TH/inlined.js":316108,"./tl_PH/inlined.js":790805,"./tr/inlined.js":39191,"./uk_UA/inlined.js":498447,"./vi_VN/inlined.js":715418,"./zh_CN/inlined.js":252819,"./zh_TW/inlined.js":545609};function a(e){var t=r(e);if(!n.m[t]){var i=new Error("Module '"+e+"' ('"+t+"') is not available (weak dependency)");throw i.code="MODULE_NOT_FOUND",i}return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,a.id=500016,e.exports=a},734521:(e,t,n)=>{var i={"./af_ZA/lite.js":168454,"./ar_SA/lite.js":91744,"./bg_BG/lite.js":192463,"./bn_IN/lite.js":554521,"./cs_CZ/lite.js":865170,"./da_DK/lite.js":305866,"./de/lite.js":398590,"./el_GR/lite.js":731913,"./en_AU/lite.js":745587,"./en_GB/lite.js":104201,"./en_IN/lite.js":928956,"./en_US/lite.js":600812,"./es_419/lite.js":919301,"./es_AR/lite.js":300065,"./es_ES/lite.js":750943,"./es_MX/lite.js":593664,"./es_US/lite.js":247479,"./fi_FI/lite.js":734195,"./fr/lite.js":722103,"./he_IL/lite.js":99938,"./hi_IN/lite.js":408687,"./hr_HR/lite.js":703267,"./hu_HU/lite.js":333186,"./id_ID/lite.js":35949,"./it/lite.js":633627,"./ja/lite.js":63983,"./ko_KR/lite.js":488958,"./ms_MY/lite.js":811763,"./nb_NO/lite.js":875656,"./nl/lite.js":532934,"./pl_PL/lite.js":930624,"./pt_BR/lite.js":321275,"./pt_PT/lite.js":998959,"./ro_RO/lite.js":240993,"./ru_RU/lite.js":443174,"./sk_SK/lite.js":945756,"./sv_SE/lite.js":24784,"./te_IN/lite.js":583953,"./th_TH/lite.js":172914,"./tl_PH/lite.js":899292,"./tr/lite.js":179287,"./uk_UA/lite.js":511979,"./vi_VN/lite.js":821395,"./zh_CN/lite.js":191336,"./zh_TW/lite.js":729667};function a(e){var t=r(e);if(!n.m[t]){var i=new Error("Module '"+e+"' ('"+t+"') is not available (weak dependency)");throw i.code="MODULE_NOT_FOUND",i}return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,a.id=734521,e.exports=a},565936:(e,t,n)=>{n.d(t,{ZP:()=>Ce});var i=n(570655);function a(e,t){return new Promise((function(n){return setTimeout(n,e,t)}))}function r(e,t){try{var n=e();(i=n)&&"function"==typeof i.then?n.then((function(e){return t(!0,e)}),(function(e){return t(!1,e)})):t(!0,n)}catch(a){t(!1,a)}var i}function o(e,t,n){return void 0===n&&(n=16),(0,i.mG)(this,void 0,void 0,(function(){var r,o,s;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:r=Date.now(),o=0,i.label=1;case 1:return o=r+n?(r=s,[4,a(0)]):[3,3]):[3,4];case 2:i.sent(),i.label=3;case 3:return++o,[3,1];case 4:return[2]}}))}))}function s(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function l(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function d(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function c(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=u(e=l(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=u(e=l(e,[3301882366,444984403]),[0,e[0]>>>1])}function p(e,t){t=t||0;var n,i=(e=e||"").length%16,a=e.length-i,r=[0,t],o=[0,t],p=[0,0],h=[0,0],m=[2277735313,289559509],g=[1291169091,658871167];for(n=0;n>>0).toString(16)).slice(-8)+("00000000"+(r[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function h(e){return parseInt(e)}function m(e){return parseFloat(e)}function g(e,t){return"number"==typeof e&&isNaN(e)?t:e}function v(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function f(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function y(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function E(e,t,n){var s=Object.keys(e).filter((function(e){return!function(e,t){for(var n=0,i=e.length;n=4}function T(){var e=window,t=navigator;return v(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function I(){var e=window,t=navigator;return v(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function x(){var e=window;return v(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function P(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function b(){var e=T(),t=function(){var e,t,n=window;return v(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"MediaRecorderErrorEvent"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}();if(!e&&!t)return!1;var n=window;return v(["onorientationchange"in n,"orientation"in n,e&&"SharedWorker"in n,t&&/android/i.test(navigator.appVersion)])>=2}function A(e){var t=new Error(e);return t.name=e,t}function w(e,t,n){var r,o,s;return void 0===n&&(n=50),(0,i.mG)(this,void 0,void 0,(function(){var l,d;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:l=document,i.label=1;case 1:return l.body?[3,3]:[4,a(n)];case 2:return i.sent(),[3,1];case 3:d=l.createElement("iframe"),i.label=4;case 4:return i.trys.push([4,,10,11]),[4,new Promise((function(e,n){d.onload=e,d.onerror=n;var i=d.style;i.setProperty("display","block","important"),i.position="absolute",i.top="0",i.left="0",i.visibility="hidden",t&&"srcdoc"in d?d.srcdoc=t:d.src="about:blank",l.body.appendChild(d);var a=function(){var t,n;"complete"===(null===(n=null===(t=d.contentWindow)||void 0===t?void 0:t.document)||void 0===n?void 0:n.readyState)?e():setTimeout(a,10)};a()}))];case 5:i.sent(),i.label=6;case 6:return(null===(o=null===(r=d.contentWindow)||void 0===r?void 0:r.document)||void 0===o?void 0:o.body)?[3,8]:[4,a(n)];case 7:return i.sent(),[3,6];case 8:return[4,e(d,d.contentWindow)];case 9:return[2,i.sent()];case 10:return null===(s=d.parentNode)||void 0===s||s.removeChild(d),[7];case 11:return[2]}}))}))}function R(e){for(var t=function(e){for(var t,n,i="Unexpected syntax '"+e+"'",a=/^\s*([a-z-]*)(.*)$/i.exec(e),r=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,l=function(e,t){o[e]=o[e]||[],o[e].push(t)};;){var d=s.exec(a[2]);if(!d)break;var c=d[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":var u=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(!u)throw new Error(i);l(u[1],null!==(n=null!==(t=u[4])&&void 0!==t?t:u[5])&&void 0!==n?n:"");break;default:throw new Error(i)}}return[r,o]}(e),n=t[0],i=t[1],a=document.createElement(null!=n?n:"div"),r=0,o=Object.keys(i);r.6*n.length}))).sort(),[2,n]}}))}))},fontPreferences:function(){return function(e,t){void 0===t&&(t=4e3);return w((function(n,a){var r=a.document,o=r.body,s=o.style;s.width=t+"px",s.webkitTextSizeAdjust=s.textSizeAdjust="none",T()?o.style.zoom=""+1/a.devicePixelRatio:I()&&(o.style.zoom="reset");var l=r.createElement("div");return l.textContent=(0,i.pr)(Array(t/20<<0)).map((function(){return"word"})).join(" "),o.appendChild(l),e(r,o)}),' ')}((function(e,t){for(var n={},i={},a=0,r=Object.keys(Se);a=3}())return-1;var n=new t(1,5e3,44100),i=n.createOscillator();i.type="triangle",i.frequency.value=1e4;var a=n.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,i.connect(a),a.connect(n.destination),i.start(0);var r=function(e){var t=3,n=500,i=500,a=5e3,r=function(){};return[new Promise((function(o,s){var l=!1,d=0,c=0;e.oncomplete=function(e){return o(e.renderedBuffer)};var u=function(){setTimeout((function(){return s(A("timeout"))}),Math.min(i,c+a-Date.now()))},_=function(){try{switch(e.startRendering(),e.state){case"running":c=Date.now(),l&&u();break;case"suspended":document.hidden||d++,l&&d>=t?s(A("suspended")):setTimeout(_,n)}}catch(i){s(i)}};_(),r=function(){l||(l=!0,c>0&&u())}})),r]}(n),o=r[0],s=r[1],l=o.then((function(e){return function(e){for(var t=0,n=0;n=3||n.push(t.languages);else if("string"==typeof t.languages){var a=t.languages;a&&n.push(a.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return g(m(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return g(h(e),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return g(h(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var i,a=(i=(new Date).getFullYear(),-Math.max(m(new Date(i,0,1).getTimezoneOffset()),m(new Date(i,6,1).getTimezoneOffset())));return"UTC"+(a>=0?"+":"")+Math.abs(a)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(S()||(e=window,t=navigator,v(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!S())))try{return!!window.indexedDB}catch(n){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&I()&&!x()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return v(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>2/3&&t<1.5])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n{n.d(t,{Z:()=>se});var i={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},a={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},r=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],o={CSS:{},springs:{}};function s(e,t,n){return Math.min(Math.max(e,t),n)}function l(e,t){return e.indexOf(t)>-1}function d(e,t){return e.apply(null,t)}var c={arr:function(e){return Array.isArray(e)},obj:function(e){return l(Object.prototype.toString.call(e),"Object")},pth:function(e){return c.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||c.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return c.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return c.hex(e)||c.rgb(e)||c.hsl(e)},key:function(e){return!i.hasOwnProperty(e)&&!a.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function u(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function _(e,t){var n=u(e),i=s(c.und(n[0])?1:n[0],.1,100),a=s(c.und(n[1])?100:n[1],.1,100),r=s(c.und(n[2])?10:n[2],.1,100),l=s(c.und(n[3])?0:n[3],.1,100),d=Math.sqrt(a/i),_=r/(2*Math.sqrt(a*i)),p=_<1?d*Math.sqrt(1-_*_):0,h=_<1?(_*d-l)/p:-l+d;function m(e){var n=t?t*e/1e3:e;return n=_<1?Math.exp(-n*_*d)*(1*Math.cos(p*n)+h*Math.sin(p*n)):(1+h*n)*Math.exp(-n*d),0===e||1===e?e:1-n}return t?m:function(){var t=o.springs[e];if(t)return t;for(var n=1/6,i=0,a=0;;)if(1===m(i+=n)){if(++a>=16)break}else a=0;var r=i*n*1e3;return o.springs[e]=r,r}}function p(e){return void 0===e&&(e=10),function(t){return Math.ceil(s(t,1e-6,1)*e)*(1/e)}}var h,m,g=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function i(e){return 3*e}function a(e,a,r){return((t(a,r)*e+n(a,r))*e+i(a))*e}function r(e,a,r){return 3*t(a,r)*e*e+2*n(a,r)*e+i(a)}return function(t,n,i,o){if(0<=t&&t<=1&&0<=i&&i<=1){var s=new Float32Array(11);if(t!==n||i!==o)for(var l=0;l<11;++l)s[l]=a(l*e,t,i);return function(e){return t===n&&i===o||0===e||1===e?e:a(d(e),n,o)}}function d(n){for(var o=0,l=1;10!==l&&s[l]<=n;++l)o+=e;--l;var d=o+(n-s[l])/(s[l+1]-s[l])*e,c=r(d,t,i);return c>=.001?function(e,t,n,i){for(var o=0;o<4;++o){var s=r(t,n,i);if(0===s)return t;t-=(a(t,n,i)-e)/s}return t}(n,d,t,i):0===c?d:function(e,t,n,i,r){var o,s,l=0;do{(o=a(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s}while(Math.abs(o)>1e-7&&++l<10);return s}(n,o,o+e,t,i)}}}(),v=(h={linear:function(){return function(e){return e}}},m={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=s(e,1,10),i=s(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-i/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/i)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){m[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(m).forEach((function(e){var t=m[e];h["easeIn"+e]=t,h["easeOut"+e]=function(e,n){return function(i){return 1-t(e,n)(1-i)}},h["easeInOut"+e]=function(e,n){return function(i){return i<.5?t(e,n)(2*i)/2:1-t(e,n)(-2*i+2)/2}},h["easeOutIn"+e]=function(e,n){return function(i){return i<.5?(1-t(e,n)(1-2*i))/2:(t(e,n)(2*i-1)+1)/2}}})),h);function f(e,t){if(c.fnc(e))return e;var n=e.split("(")[0],i=v[n],a=u(e);switch(n){case"spring":return _(e,t);case"cubicBezier":return d(g,a);case"steps":return d(p,a);default:return d(i,a)}}function y(e){try{return document.querySelectorAll(e)}catch(t){return}}function E(e,t){for(var n=e.length,i=arguments.length>=2?arguments[1]:void 0,a=[],r=0;r1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==o)t=n=i=s;else{var c=s<.5?s*(1+o):s+o-s*o,u=2*s-c;t=d(u,c,r+1/3),n=d(u,c,r),i=d(u,c,r-1/3)}return"rgba("+255*t+","+255*n+","+255*i+","+l+")"}(e):void 0;var t,n}function w(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function R(e,t){return c.fnc(e)?e(t.target,t.id,t.total):e}function C(e,t){return e.getAttribute(t)}function O(e,t,n){if(I([n,"deg","rad","turn"],w(t)))return t;var i=o.CSS[t+n];if(!c.und(i))return i;var a=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(a),a.style.position="absolute",a.style.width=100+n;var s=100/a.offsetWidth;r.removeChild(a);var l=s*parseFloat(t);return o.CSS[t+n]=l,l}function N(e,t,n){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=e.style[t]||getComputedStyle(e).getPropertyValue(i)||"0";return n?O(e,a,n):a}}function D(e,t){return c.dom(e)&&!c.inp(e)&&(!c.nil(C(e,t))||c.svg(e)&&e[t])?"attribute":c.dom(e)&&I(r,t)?"transform":c.dom(e)&&"transform"!==t&&N(e,t)?"css":null!=e[t]?"object":void 0}function k(e){if(c.dom(e)){for(var t,n=e.style.transform||"",i=/(\w+)\(([^)]*)\)/g,a=new Map;t=i.exec(n);)a.set(t[1],t[2]);return a}}function L(e,t,n,i){var a=l(t,"scale")?1:0+function(e){return l(e,"translate")||"perspective"===e?"px":l(e,"rotate")||l(e,"skew")?"deg":void 0}(t),r=k(e).get(t)||a;return n&&(n.transforms.list.set(t,r),n.transforms.last=t),i?O(e,r,i):r}function j(e,t,n,i){switch(D(e,t)){case"transform":return L(e,t,i,n);case"css":return N(e,t,n);case"attribute":return C(e,t);default:return e[t]||0}}function U(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var i=w(e)||0,a=parseFloat(t),r=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return a+r+i;case"-":return a-r+i;case"*":return a*r+i}}function M(e,t){if(c.col(e))return A(e);if(/\s/g.test(e))return e;var n=w(e),i=n?e.substr(0,e.length-n.length):e;return t?i+t:i}function F(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function B(e){for(var t,n=e.points,i=0,a=0;a0&&(i+=F(t,r)),t=r}return i}function G(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*C(e,"r")}(e);case"rect":return function(e){return 2*C(e,"width")+2*C(e,"height")}(e);case"line":return function(e){return F({x:C(e,"x1"),y:C(e,"y1")},{x:C(e,"x2"),y:C(e,"y2")})}(e);case"polyline":return B(e);case"polygon":return function(e){var t=e.points;return B(e)+F(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function z(e,t){var n=t||{},i=n.el||function(e){for(var t=e.parentNode;c.svg(t)&&c.svg(t.parentNode);)t=t.parentNode;return t}(e),a=i.getBoundingClientRect(),r=C(i,"viewBox"),o=a.width,s=a.height,l=n.viewBox||(r?r.split(" "):[0,0,o,s]);return{el:i,viewBox:l,x:l[0]/1,y:l[1]/1,w:o,h:s,vW:l[2],vH:l[3]}}function H(e,t,n){function i(n){void 0===n&&(n=0);var i=t+n>=1?t+n:0;return e.el.getPointAtLength(i)}var a=z(e.el,e.svg),r=i(),o=i(-1),s=i(1),l=n?1:a.w/a.vW,d=n?1:a.h/a.vH;switch(e.property){case"x":return(r.x-a.x)*l;case"y":return(r.y-a.y)*d;case"angle":return 180*Math.atan2(s.y-o.y,s.x-o.x)/Math.PI}}function Z(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=M(c.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(n)?i.match(n).map(Number):[0],strings:c.str(e)||t?i.split(n):[]}}function V(e){return E(e?S(c.arr(e)?e.map(T):T(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function W(e){var t=V(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:k(e)}}}))}function K(e,t){var n=x(t);if(/^spring/.test(n.easing)&&(n.duration=_(n.easing)),c.arr(e)){var i=e.length;2===i&&!c.obj(e[0])?e={value:e}:c.fnc(t.duration)||(n.duration=t.duration/i)}var a=c.arr(e)?e:[e];return a.map((function(e,n){var i=c.obj(e)&&!c.pth(e)?e:{value:e};return c.und(i.delay)&&(i.delay=n?0:t.delay),c.und(i.endDelay)&&(i.endDelay=n===a.length-1?t.endDelay:0),i})).map((function(e){return b(e,n)}))}function Y(e,t){var n=[],i=t.keyframes;for(var a in i&&(t=b(function(e){for(var t=E(S(e.map((function(e){return Object.keys(e)}))),(function(e){return c.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},i=function(i){var a=t[i];n[a]=e.map((function(e){var t={};for(var n in e)c.key(n)?n==a&&(t.value=e[n]):t[n]=e[n];return t}))},a=0;a0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){ae.suspendWhenDocumentHidden&&(ie()?e=cancelAnimationFrame(e):(te.forEach((function(e){return e._onDocumentVisibility()})),ne()))})),function(){e||ie()&&ae.suspendWhenDocumentHidden||!(te.length>0)||(e=requestAnimationFrame(t))}}();function ie(){return!!document&&document.hidden}function ae(e){void 0===e&&(e={});var t,n=0,r=0,o=0,l=0,d=null;function c(e){var t=window.Promise&&new Promise((function(e){return d=e}));return e.finished=t,t}var u=function(e){var t=P(i,e),n=P(a,e),r=Y(n,e),o=W(e.targets),s=J(o,r),l=Q(s,n),d=ee;return ee++,b(t,{id:d,children:[],animatables:o,animations:s,duration:l.duration,delay:l.delay,endDelay:l.endDelay})}(e);c(u);function _(){var e=u.direction;"alternate"!==e&&(u.direction="normal"!==e?"normal":"reverse"),u.reversed=!u.reversed,t.forEach((function(e){return e.reversed=u.reversed}))}function p(e){return u.reversed?u.duration-e:e}function h(){n=0,r=p(u.currentTime)*(1/ae.speed)}function m(e,t){t&&t.seek(e-t.timelineOffset)}function g(e){for(var t=0,n=u.animations,i=n.length;t2||(y=Math.round(y*h)/h)),m.push(y)}var I=p.length;if(I){v=p[0];for(var x=0;x0&&(u.began=!0,v("begin")),!u.loopBegan&&u.currentTime>0&&(u.loopBegan=!0,v("loopBegin")),f<=a&&0!==u.currentTime&&g(0),(f>=h&&u.currentTime!==i||!i)&&g(i),f>a&&f=i&&(r=0,u.remaining&&!0!==u.remaining&&u.remaining--,u.remaining?(n=o,v("loopComplete"),u.loopBegan=!1,"alternate"===u.direction&&_()):(u.paused=!0,u.completed||(u.completed=!0,v("loopComplete"),v("complete"),!u.passThrough&&"Promise"in window&&(d(),c(u)))))}return u.reset=function(){var e=u.direction;u.passThrough=!1,u.currentTime=0,u.progress=0,u.paused=!0,u.began=!1,u.loopBegan=!1,u.changeBegan=!1,u.completed=!1,u.changeCompleted=!1,u.reversePlayback=!1,u.reversed="reverse"===e,u.remaining=u.loop,t=u.children;for(var n=l=t.length;n--;)u.children[n].reset();(u.reversed&&!0!==u.loop||"alternate"===e&&1===u.loop)&&u.remaining++,g(u.reversed?u.duration:0)},u._onDocumentVisibility=h,u.set=function(e,t){return X(e,t),u},u.tick=function(e){o=e,n||(n=o),f((o+(r-n))*ae.speed)},u.seek=function(e){f(p(e))},u.pause=function(){u.paused=!0,h()},u.play=function(){u.paused&&(u.completed&&u.reset(),u.paused=!1,te.push(u),h(),ne())},u.reverse=function(){_(),u.completed=!u.reversed,h()},u.restart=function(){u.reset(),u.play()},u.remove=function(e){oe(V(e),u)},u.reset(),u.autoplay&&u.play(),u}function re(e,t){for(var n=t.length;n--;)I(e,t[n].animatable.target)&&t.splice(n,1)}function oe(e,t){var n=t.animations,i=t.children;re(e,n);for(var a=i.length;a--;){var r=i[a],o=r.animations;re(e,o),o.length||r.children.length||i.splice(a,1)}n.length||i.length||t.pause()}ae.version="3.2.1",ae.speed=1,ae.suspendWhenDocumentHidden=!0,ae.running=te,ae.remove=function(e){for(var t=V(e),n=te.length;n--;){oe(t,te[n])}},ae.get=j,ae.set=X,ae.convertPx=O,ae.path=function(e,t){var n=c.str(e)?y(e)[0]:e,i=t||100;return function(e){return{property:e,el:n,svg:z(n),totalLength:G(n)*(i/100)}}},ae.setDashoffset=function(e){var t=G(e);return e.setAttribute("stroke-dasharray",t),t},ae.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",i=t.easing?f(t.easing):null,a=t.grid,r=t.axis,o=t.from||0,s="first"===o,l="center"===o,d="last"===o,u=c.arr(e),_=u?parseFloat(e[0]):parseFloat(e),p=u?parseFloat(e[1]):0,h=w(u?e[1]:e)||0,m=t.start||0+(u?_:0),g=[],v=0;return function(e,t,c){if(s&&(o=0),l&&(o=(c-1)/2),d&&(o=c-1),!g.length){for(var f=0;f-1&&te.splice(r,1);for(var l=0;l{function i(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:()=>i})},983946:(e,t,n)=>{function i(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:()=>i})},777349:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(983946),a=n(619013),r=n(13882);function o(e,t){(0,r.Z)(2,arguments);var n=(0,a.Z)(e),o=(0,i.Z)(t);return isNaN(o)?new Date(NaN):o?(n.setDate(n.getDate()+o),n):n}},707069:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(983946),a=n(777349),r=n(13882);function o(e,t){(0,r.Z)(2,arguments);var n=(0,i.Z)(t);return(0,a.Z)(e,-n)}},619013:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(13882);function a(e){(0,i.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},422908:e=>{e.exports="https://s.pinimg.com/webapp/CS@2x-ecc1d35a.png"},832637:e=>{e.exports="https://s.pinimg.com/webapp/DA@2x-0a8213db.png"},986021:e=>{e.exports="https://s.pinimg.com/webapp/DE@2x-e398675a.png"},252881:e=>{e.exports="https://s.pinimg.com/webapp/EL@2x-5895bc67.png"},216462:e=>{e.exports="https://s.pinimg.com/webapp/EN@2x-c3eda626.png"},435574:e=>{e.exports="https://s.pinimg.com/webapp/ES@2x-d867d9a4.png"},890398:e=>{e.exports="https://s.pinimg.com/webapp/FI@2x-47fa27f7.png"},597437:e=>{e.exports="https://s.pinimg.com/webapp/FR@2x-bf910b39.png"},358787:e=>{e.exports="https://s.pinimg.com/webapp/HI@2x-58486090.png"},403529:e=>{e.exports="https://s.pinimg.com/webapp/HU@2x-1705acdc.png"},687096:e=>{e.exports="https://s.pinimg.com/webapp/ID@2x-1dc864b9.png"},720069:e=>{e.exports="https://s.pinimg.com/webapp/IT@2x-60e3683e.png"},154047:e=>{e.exports="https://s.pinimg.com/webapp/JA@2x-15535147.png"},899338:e=>{e.exports="https://s.pinimg.com/webapp/KO@2x-1099f44a.png"},532492:e=>{e.exports="https://s.pinimg.com/webapp/ML@2x-e7a6773b.png"},361316:e=>{e.exports="https://s.pinimg.com/webapp/MS@2x-58f3c917.png"},671307:e=>{e.exports="https://s.pinimg.com/webapp/NL@2x-5f1515db.png"},450914:e=>{e.exports="https://s.pinimg.com/webapp/NN@2x-f061e9b4.png"},888784:e=>{e.exports="https://s.pinimg.com/webapp/NO@2x-d7864990.png"},979730:e=>{e.exports="https://s.pinimg.com/webapp/PL@2x-7b44a0ea.png"},267569:e=>{e.exports="https://s.pinimg.com/webapp/PT@2x-1cf70049.png"},554154:e=>{e.exports="https://s.pinimg.com/webapp/RO@2x-112e3f0c.png"},234540:e=>{e.exports="https://s.pinimg.com/webapp/RU@2x-7e4486d9.png"},209153:e=>{e.exports="https://s.pinimg.com/webapp/SK@2x-2a81803e.png"},271648:e=>{e.exports="https://s.pinimg.com/webapp/SV@2x-61ea661d.png"},108806:e=>{e.exports="https://s.pinimg.com/webapp/TH@2x-0a53c197.png"},505944:e=>{e.exports="https://s.pinimg.com/webapp/TL@2x-3af02ef3.png"},373750:e=>{e.exports="https://s.pinimg.com/webapp/TR@2x-ec2d7ab5.png"},354593:e=>{e.exports="https://s.pinimg.com/webapp/UK@2x-5787bbf9.png"},523673:e=>{e.exports="https://s.pinimg.com/webapp/VI@2x-09999946.png"},934348:e=>{e.exports="https://s.pinimg.com/webapp/arSA@2x-024c511e.png"},70098:e=>{e.exports="https://s.pinimg.com/webapp/zhCN@2x-d3d7eda9.png"},692169:e=>{e.exports="https://s.pinimg.com/webapp/zhTW@2x-af9e1419.png"},908601:e=>{e.exports="https://s.pinimg.com/webapp/CS@2x-488e8cc6.png"},198667:e=>{e.exports="https://s.pinimg.com/webapp/DA@2x-e5d12354.png"},324637:e=>{e.exports="https://s.pinimg.com/webapp/DE@2x-22831293.png"},669639:e=>{e.exports="https://s.pinimg.com/webapp/EL@2x-e764ccf8.png"},882786:e=>{e.exports="https://s.pinimg.com/webapp/EN@2x-ca0773fb.png"},598188:e=>{e.exports="https://s.pinimg.com/webapp/ES@2x-55483593.png"},143832:e=>{e.exports="https://s.pinimg.com/webapp/FI@2x-695433d6.png"},484974:e=>{e.exports="https://s.pinimg.com/webapp/FR@2x-62177ec4.png"},629958:e=>{e.exports="https://s.pinimg.com/webapp/HI@2x-e55c64e4.png"},7747:e=>{e.exports="https://s.pinimg.com/webapp/HU@2x-2916bbea.png"},939492:e=>{e.exports="https://s.pinimg.com/webapp/ID@2x-34da9a4a.png"},800202:e=>{e.exports="https://s.pinimg.com/webapp/IT@2x-5749beff.png"},799486:e=>{e.exports="https://s.pinimg.com/webapp/JA@2x-a57c5839.png"},511036:e=>{e.exports="https://s.pinimg.com/webapp/KO@2x-c909bac5.png"},83365:e=>{e.exports="https://s.pinimg.com/webapp/ML@2x-8998d852.png"},309285:e=>{e.exports="https://s.pinimg.com/webapp/MS@2x-fa38b8b6.png"},186665:e=>{e.exports="https://s.pinimg.com/webapp/NL@2x-d31d4a18.png"},452833:e=>{e.exports="https://s.pinimg.com/webapp/NN@2x-c4b8da55.png"},759050:e=>{e.exports="https://s.pinimg.com/webapp/NO@2x-fd9bd702.png"},9046:e=>{e.exports="https://s.pinimg.com/webapp/PL@2x-5685a97f.png"},27322:e=>{e.exports="https://s.pinimg.com/webapp/PT@2x-2939b38c.png"},501796:e=>{e.exports="https://s.pinimg.com/webapp/RO@2x-188b728d.png"},791841:e=>{e.exports="https://s.pinimg.com/webapp/RU@2x-888d9aa1.png"},50486:e=>{e.exports="https://s.pinimg.com/webapp/SK@2x-bfa2f8d5.png"},417658:e=>{e.exports="https://s.pinimg.com/webapp/SV@2x-0e099997.png"},461619:e=>{e.exports="https://s.pinimg.com/webapp/TH@2x-988a46e6.png"},350421:e=>{e.exports="https://s.pinimg.com/webapp/TL@2x-1e888ea6.png"},97776:e=>{e.exports="https://s.pinimg.com/webapp/TR@2x-c216b517.png"},394445:e=>{e.exports="https://s.pinimg.com/webapp/UK@2x-fb5c6e06.png"},948992:e=>{e.exports="https://s.pinimg.com/webapp/VI@2x-abdc2e13.png"},993235:e=>{e.exports="https://s.pinimg.com/webapp/arSA@2x-1bf8e802.png"},137404:e=>{e.exports="https://s.pinimg.com/webapp/zhCN@2x-0b2349f4.png"},697072:e=>{e.exports="https://s.pinimg.com/webapp/zhTW@2x-0ef5b95c.png"},428368:(e,t,n)=>{var i=n(690939);e.exports=function(e,t,n){var a=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===a?i(e,t,void 0,n):!!a}},414293:e=>{e.exports=function(e){return null==e}},730236:(e,t,n)=>{var i=n(642980),a=n(321463)((function(e,t,n,a){i(e,t,n,a)}));e.exports=a},30084:(e,t,n)=>{var i=n(829932),a=n(200278),r=n(701469),o=n(733448),s=n(555514),l=n(240327),d=n(479833);e.exports=function(e){return r(e)?i(e,l):o(e)?[e]:a(s(d(e)))}},742816:(e,t,n)=>{n.d(t,{tn:()=>w});var i,a=n(667294);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));function r(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}const o=(0,a.createContext)(null);const s=(0,a.createContext)(null);const l=(0,a.createContext)({outlet:null,matches:[]});function d(e,t){if(!e)throw new Error(t)}function c(e,t,n){void 0===n&&(n="/");let i=v(("string"==typeof t?r(t):t).pathname||"/",n);if(null==i)return null;let a=u(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let r=0;null==o&&r{let r={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};r.relativePath.startsWith("/")&&(r.relativePath.startsWith(i)||d(!1),r.relativePath=r.relativePath.slice(i.length));let o=f([i,r.relativePath]),s=n.concat(r);e.children&&e.children.length>0&&(!0===e.index&&d(!1),u(e.children,t,s,o)),(null!=e.path||e.index)&&t.push({path:o,score:h(o,e.index),routesMeta:s})})),t}const _=/^:\w+$/,p=e=>"*"===e;function h(e,t){let n=e.split("/"),i=n.length;return n.some(p)&&(i+=-2),t&&(i+=2),n.filter((e=>!p(e))).reduce(((e,t)=>e+(_.test(t)?3:""===t?1:10)),i)}function m(e,t){let{routesMeta:n}=e,i={},a="/",r=[];for(let o=0;o(i.push(t),"([^\\/]+)")));e.endsWith("*")?(i.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):a+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(a,t?void 0:"i"),i]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let r=a[0],o=r.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:i.reduce(((e,t,n)=>{if("*"===t){let e=s[n]||"";o=r.slice(0,r.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return e}}(s[n]||""),e}),{}),pathname:r,pathnameBase:o,pattern:e}}function v(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}const f=e=>e.join("/").replace(/\/\/+/g,"/"),y=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function E(){return null!=(0,a.useContext)(s)}function S(){return E()||d(!1),(0,a.useContext)(s).location}function T(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight(((n,i,r)=>(0,a.createElement)(l.Provider,{children:void 0!==i.route.element?i.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,r+1))}})),null)}function I(e){d(!1)}function x(e){let{basename:t="/",children:n=null,location:l,navigationType:c=i.Pop,navigator:u,static:_=!1}=e;E()&&d(!1);let p=y(t),h=(0,a.useMemo)((()=>({basename:p,navigator:u,static:_})),[p,u,_]);"string"==typeof l&&(l=r(l));let{pathname:m="/",search:g="",hash:f="",state:S=null,key:T="default"}=l,I=(0,a.useMemo)((()=>{let e=v(m,p);return null==e?null:{pathname:e,search:g,hash:f,state:S,key:T}}),[p,m,g,f,S,T]);return null==I?null:(0,a.createElement)(o.Provider,{value:h},(0,a.createElement)(s.Provider,{children:n,value:{location:I,navigationType:c}}))}function P(e){let{children:t,location:n}=e;return function(e,t){E()||d(!1);let{matches:n}=(0,a.useContext)(l),i=n[n.length-1],o=i?i.params:{},s=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;let u,_=S();if(t){var p;let e="string"==typeof t?r(t):t;"/"===s||(null==(p=e.pathname)?void 0:p.startsWith(s))||d(!1),u=e}else u=_;let h=u.pathname||"/",m=c(e,{pathname:"/"===s?h:h.slice(s.length)||"/"});return T(m&&m.map((e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:f([s,e.pathname]),pathnameBase:"/"===e.pathnameBase?s:f([s,e.pathnameBase])}))),n)}(b(t),n)}function b(e){let t=[];return a.Children.forEach(e,(e=>{if(!(0,a.isValidElement)(e))return;if(e.type===a.Fragment)return void t.push.apply(t,b(e.props.children));e.type!==I&&d(!1);let n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=b(e.props.children)),t.push(n)})),t}var A=n(276775);function w(e){let{children:t}=e,n=(0,A.useHistory)(),[i,r]=(0,a.useState)((()=>({location:n.location,action:n.action})));return(0,a.useLayoutEffect)((()=>{n.listen(((e,t)=>r({location:e,action:t})))}),[n]),(0,a.createElement)(x,{navigationType:i.action,location:i.location,navigator:n},(0,a.createElement)(P,null,(0,a.createElement)(I,{path:"*",element:t})))}},11754:(e,t)=>{t.__esModule=!0,t.default=t.UPDATE_SYNC_WARNINGS=t.UPDATE_SYNC_ERRORS=t.UNTOUCH=t.UNREGISTER_FIELD=t.TOUCH=t.SUBMIT=t.STOP_SUBMIT=t.STOP_ASYNC_VALIDATION=t.START_SUBMIT=t.START_ASYNC_VALIDATION=t.SET_SUBMIT_SUCCEEDED=t.SET_SUBMIT_FAILED=t.RESET_SECTION=t.RESET=t.REGISTER_FIELD=t.INITIALIZE=t.FOCUS=t.DESTROY=t.CLEAR_ASYNC_ERROR=t.CLEAR_SUBMIT_ERRORS=t.CLEAR_SUBMIT=t.CLEAR_FIELDS=t.CHANGE=t.BLUR=t.AUTOFILL=t.ARRAY_SWAP=t.ARRAY_UNSHIFT=t.ARRAY_SPLICE=t.ARRAY_SHIFT=t.ARRAY_REMOVE_ALL=t.ARRAY_REMOVE=t.ARRAY_PUSH=t.ARRAY_POP=t.ARRAY_MOVE=t.ARRAY_INSERT=t.prefix=void 0;var n="@@redux-form/";t.prefix=n;var i=n+"ARRAY_INSERT";t.ARRAY_INSERT=i;var a=n+"ARRAY_MOVE";t.ARRAY_MOVE=a;var r=n+"ARRAY_POP";t.ARRAY_POP=r;var o=n+"ARRAY_PUSH";t.ARRAY_PUSH=o;var s=n+"ARRAY_REMOVE";t.ARRAY_REMOVE=s;var l=n+"ARRAY_REMOVE_ALL";t.ARRAY_REMOVE_ALL=l;var d=n+"ARRAY_SHIFT";t.ARRAY_SHIFT=d;var c=n+"ARRAY_SPLICE";t.ARRAY_SPLICE=c;var u=n+"ARRAY_UNSHIFT";t.ARRAY_UNSHIFT=u;var _=n+"ARRAY_SWAP";t.ARRAY_SWAP=_;var p=n+"AUTOFILL";t.AUTOFILL=p;var h=n+"BLUR";t.BLUR=h;var m=n+"CHANGE";t.CHANGE=m;var g=n+"CLEAR_FIELDS";t.CLEAR_FIELDS=g;var v=n+"CLEAR_SUBMIT";t.CLEAR_SUBMIT=v;var f=n+"CLEAR_SUBMIT_ERRORS";t.CLEAR_SUBMIT_ERRORS=f;var y=n+"CLEAR_ASYNC_ERROR";t.CLEAR_ASYNC_ERROR=y;var E=n+"DESTROY";t.DESTROY=E;var S=n+"FOCUS";t.FOCUS=S;var T=n+"INITIALIZE";t.INITIALIZE=T;var I=n+"REGISTER_FIELD";t.REGISTER_FIELD=I;var x=n+"RESET";t.RESET=x;var P=n+"RESET_SECTION";t.RESET_SECTION=P;var b=n+"SET_SUBMIT_FAILED";t.SET_SUBMIT_FAILED=b;var A=n+"SET_SUBMIT_SUCCEEDED";t.SET_SUBMIT_SUCCEEDED=A;var w=n+"START_ASYNC_VALIDATION";t.START_ASYNC_VALIDATION=w;var R=n+"START_SUBMIT";t.START_SUBMIT=R;var C=n+"STOP_ASYNC_VALIDATION";t.STOP_ASYNC_VALIDATION=C;var O=n+"STOP_SUBMIT";t.STOP_SUBMIT=O;var N=n+"SUBMIT";t.SUBMIT=N;var D=n+"TOUCH";t.TOUCH=D;var k=n+"UNREGISTER_FIELD";t.UNREGISTER_FIELD=k;var L=n+"UNTOUCH";t.UNTOUCH=L;var j=n+"UPDATE_SYNC_ERRORS";t.UPDATE_SYNC_ERRORS=j;var U=n+"UPDATE_SYNC_WARNINGS";t.UPDATE_SYNC_WARNINGS=U;var M={ARRAY_INSERT:i,ARRAY_MOVE:a,ARRAY_POP:r,ARRAY_PUSH:o,ARRAY_REMOVE:s,ARRAY_REMOVE_ALL:l,ARRAY_SHIFT:d,ARRAY_SPLICE:c,ARRAY_UNSHIFT:u,ARRAY_SWAP:_,AUTOFILL:p,BLUR:h,CHANGE:m,CLEAR_FIELDS:g,CLEAR_SUBMIT:v,CLEAR_SUBMIT_ERRORS:f,CLEAR_ASYNC_ERROR:y,DESTROY:E,FOCUS:S,INITIALIZE:T,REGISTER_FIELD:I,RESET:x,RESET_SECTION:P,SET_SUBMIT_FAILED:b,SET_SUBMIT_SUCCEEDED:A,START_ASYNC_VALIDATION:w,START_SUBMIT:R,STOP_ASYNC_VALIDATION:C,STOP_SUBMIT:O,SUBMIT:N,TOUCH:D,UNREGISTER_FIELD:k,UNTOUCH:L,UPDATE_SYNC_ERRORS:j,UPDATE_SYNC_WARNINGS:U};t.default=M},151107:(e,t,n)=>{var i=n(564836);t.__esModule=!0,t.default=void 0;var a=i(n(7071)),r=i(n(623560)),o=n(11754),s=i(n(730932)),l=i(n(80020)),d=function(e){var t=e.getIn;return function(e,n){var i=null;/^values/.test(n)&&(i=n.replace("values","initial"));var a=!i||void 0===t(e,i);return void 0!==t(e,n)&&a}};var c=function(e){var t,n=e.deepEqual,i=e.empty,c=e.forEach,u=e.getIn,_=e.setIn,p=e.deleteIn,h=e.fromJS,m=e.keys,g=e.size,v=e.some,f=e.splice,y=(0,s.default)(e)(d),E=(0,s.default)(l.default)(d),S=function(e,t,n,i,a,r,o){var s=u(e,t+"."+n);return s||o?_(e,t+"."+n,f(s,i,a,r)):e},T=function(e,t,n,i,a,r,o){var s=u(e,t),d=l.default.getIn(s,n);return d||o?_(e,t,l.default.setIn(s,n,l.default.splice(d,i,a,r))):e},I=["values","fields","submitErrors","asyncErrors"],x=function(e,t,n,a,r){var o=e,s=null!=r?i:void 0;return o=S(o,"values",t,n,a,r,!0),o=S(o,"fields",t,n,a,s),o=T(o,"syncErrors",t,n,a,void 0),o=T(o,"syncWarnings",t,n,a,void 0),o=S(o,"submitErrors",t,n,a,void 0),o=S(o,"asyncErrors",t,n,a,void 0)},P=((t={})[o.ARRAY_INSERT]=function(e,t){var n=t.meta,i=n.field,a=n.index,r=t.payload;return x(e,i,a,0,r)},t[o.ARRAY_MOVE]=function(e,t){var n=t.meta,i=n.field,a=n.from,r=n.to,o=u(e,"values."+i),s=o?g(o):0,l=e;return s&&I.forEach((function(e){var t=e+"."+i;if(u(l,t)){var n=u(l,t+"["+a+"]");l=_(l,t,f(u(l,t),a,1)),l=_(l,t,f(u(l,t),r,0,n))}})),l},t[o.ARRAY_POP]=function(e,t){var n=t.meta.field,i=u(e,"values."+n),a=i?g(i):0;return a?x(e,n,a-1,1):e},t[o.ARRAY_PUSH]=function(e,t){var n=t.meta.field,i=t.payload,a=u(e,"values."+n),r=a?g(a):0;return x(e,n,r,0,i)},t[o.ARRAY_REMOVE]=function(e,t){var n=t.meta,i=n.field,a=n.index;return x(e,i,a,1)},t[o.ARRAY_REMOVE_ALL]=function(e,t){var n=t.meta.field,i=u(e,"values."+n),a=i?g(i):0;return a?x(e,n,0,a):e},t[o.ARRAY_SHIFT]=function(e,t){var n=t.meta.field;return x(e,n,0,1)},t[o.ARRAY_SPLICE]=function(e,t){var n=t.meta,i=n.field,a=n.index,r=n.removeNum,o=t.payload;return x(e,i,a,r,o)},t[o.ARRAY_SWAP]=function(e,t){var n=t.meta,i=n.field,a=n.indexA,r=n.indexB,o=e;return I.forEach((function(e){var t=u(o,e+"."+i+"["+a+"]"),n=u(o,e+"."+i+"["+r+"]");void 0===t&&void 0===n||(o=_(o,e+"."+i+"["+a+"]",n),o=_(o,e+"."+i+"["+r+"]",t))})),o},t[o.ARRAY_UNSHIFT]=function(e,t){var n=t.meta.field,i=t.payload;return x(e,n,0,0,i)},t[o.AUTOFILL]=function(e,t){var n=t.meta.field,i=t.payload,a=e;return a=y(a,"asyncErrors."+n),a=y(a,"submitErrors."+n),a=_(a,"fields."+n+".autofilled",!0),a=_(a,"values."+n,i)},t[o.BLUR]=function(e,t){var n=t.meta,i=n.field,a=n.touch,r=t.payload,o=e;return void 0===u(o,"initial."+i)&&""===r?o=y(o,"values."+i):void 0!==r&&(o=_(o,"values."+i,r)),i===u(o,"active")&&(o=p(o,"active")),o=p(o,"fields."+i+".active"),a&&(o=_(o,"fields."+i+".touched",!0),o=_(o,"anyTouched",!0)),o},t[o.CHANGE]=function(e,t){var n=t.meta,i=n.field,a=n.touch,o=n.persistentSubmitErrors,s=t.payload,l=e;if(void 0===u(l,"initial."+i)&&""===s||void 0===s)l=y(l,"values."+i);else if((0,r.default)(s)){var d=u(e,"values."+i);l=_(l,"values."+i,s(d,e.values))}else l=_(l,"values."+i,s);return l=y(l,"asyncErrors."+i),o||(l=y(l,"submitErrors."+i)),l=y(l,"fields."+i+".autofilled"),a&&(l=_(l,"fields."+i+".touched",!0),l=_(l,"anyTouched",!0)),l},t[o.CLEAR_SUBMIT]=function(e){return p(e,"triggerSubmit")},t[o.CLEAR_SUBMIT_ERRORS]=function(e){var t=e;return t=y(t,"submitErrors"),t=p(t,"error")},t[o.CLEAR_ASYNC_ERROR]=function(e,t){var n=t.meta.field;return p(e,"asyncErrors."+n)},t[o.CLEAR_FIELDS]=function(e,t){var n=t.meta,i=n.keepTouched,a=n.persistentSubmitErrors,r=n.fields,o=e;r.forEach((function(t){o=y(o,"asyncErrors."+t),a||(o=y(o,"submitErrors."+t)),o=y(o,"fields."+t+".autofilled"),i||(o=p(o,"fields."+t+".touched"));var n=u(e,"initial."+t);o=n?_(o,"values."+t,n):y(o,"values."+t)}));var s=v(m(u(o,"registeredFields")),(function(e){return u(o,"fields."+e+".touched")}));return o=s?_(o,"anyTouched",!0):p(o,"anyTouched")},t[o.FOCUS]=function(e,t){var n=t.meta.field,i=e,a=u(e,"active");return i=p(i,"fields."+a+".active"),i=_(i,"fields."+n+".visited",!0),i=_(i,"fields."+n+".active",!0),i=_(i,"active",n)},t[o.INITIALIZE]=function(e,t){var a=t.payload,r=t.meta,o=r.keepDirty,s=r.keepSubmitSucceeded,l=r.updateUnregisteredFields,d=r.keepValues,p=h(a),g=i,v=u(e,"warning");v&&(g=_(g,"warning",v));var f=u(e,"syncWarnings");f&&(g=_(g,"syncWarnings",f));var y=u(e,"error");y&&(g=_(g,"error",y));var E=u(e,"syncErrors");E&&(g=_(g,"syncErrors",E));var S=u(e,"registeredFields");S&&(g=_(g,"registeredFields",S));var T=u(e,"values"),I=u(e,"initial"),x=p,P=T;if(o&&S){if(!n(x,I)){var b=function(e){var t=u(I,e),i=u(T,e);if(n(i,t)){var a=u(x,e);u(P,e)!==a&&(P=_(P,e,a))}};l||c(m(S),(function(e){return b(e)})),c(m(x),(function(e){if(void 0===u(I,e)){var t=u(x,e);P=_(P,e,t)}l&&b(e)}))}}else P=x;return d&&(c(m(T),(function(e){var t=u(T,e);P=_(P,e,t)})),c(m(I),(function(e){var t=u(I,e);x=_(x,e,t)}))),s&&u(e,"submitSucceeded")&&(g=_(g,"submitSucceeded",!0)),g=_(g,"values",P),g=_(g,"initial",x)},t[o.REGISTER_FIELD]=function(e,t){var n=t.payload,i=n.name,a=n.type,r="registeredFields['"+i+"']",o=u(e,r);if(o){var s=u(o,"count")+1;o=_(o,"count",s)}else o=h({name:i,type:a,count:1});return _(e,r,o)},t[o.RESET]=function(e){var t=i,n=u(e,"registeredFields");n&&(t=_(t,"registeredFields",n));var a=u(e,"initial");return a&&(t=_(t,"values",a),t=_(t,"initial",a)),t},t[o.RESET_SECTION]=function(e,t){var n=t.meta.sections,i=e;n.forEach((function(t){i=y(i,"asyncErrors."+t),i=y(i,"submitErrors."+t),i=y(i,"fields."+t);var n=u(e,"initial."+t);i=n?_(i,"values."+t,n):y(i,"values."+t)}));var a=v(m(u(i,"registeredFields")),(function(e){return u(i,"fields."+e+".touched")}));return i=a?_(i,"anyTouched",!0):p(i,"anyTouched")},t[o.SUBMIT]=function(e){return _(e,"triggerSubmit",!0)},t[o.START_ASYNC_VALIDATION]=function(e,t){var n=t.meta.field;return _(e,"asyncValidating",n||!0)},t[o.START_SUBMIT]=function(e){return _(e,"submitting",!0)},t[o.STOP_ASYNC_VALIDATION]=function(e,t){var n=t.payload,i=e;if(i=p(i,"asyncValidating"),n&&Object.keys(n).length){var r=n._error,o=(0,a.default)(n,["_error"]);r&&(i=_(i,"error",r)),Object.keys(o).length&&(i=_(i,"asyncErrors",h(o)))}else i=p(i,"error"),i=p(i,"asyncErrors");return i},t[o.STOP_SUBMIT]=function(e,t){var n=t.payload,i=e;if(i=p(i,"submitting"),i=p(i,"submitFailed"),i=p(i,"submitSucceeded"),n&&Object.keys(n).length){var r=n._error,o=(0,a.default)(n,["_error"]);i=r?_(i,"error",r):p(i,"error"),i=Object.keys(o).length?_(i,"submitErrors",h(o)):p(i,"submitErrors"),i=_(i,"submitFailed",!0)}else i=p(i,"error"),i=p(i,"submitErrors");return i},t[o.SET_SUBMIT_FAILED]=function(e,t){var n=t.meta.fields,i=e;return i=_(i,"submitFailed",!0),i=p(i,"submitSucceeded"),i=p(i,"submitting"),n.forEach((function(e){return i=_(i,"fields."+e+".touched",!0)})),n.length&&(i=_(i,"anyTouched",!0)),i},t[o.SET_SUBMIT_SUCCEEDED]=function(e){var t=e;return t=p(t,"submitFailed"),t=_(t,"submitSucceeded",!0)},t[o.TOUCH]=function(e,t){var n=t.meta.fields,i=e;return n.forEach((function(e){return i=_(i,"fields."+e+".touched",!0)})),i=_(i,"anyTouched",!0)},t[o.UNREGISTER_FIELD]=function(e,t){var a=t.payload,r=a.name,o=a.destroyOnUnmount,s=e,d="registeredFields['"+r+"']",c=u(s,d);if(!c)return s;var h=u(c,"count")-1;if(h<=0&&o){s=p(s,d),n(u(s,"registeredFields"),i)&&(s=p(s,"registeredFields"));var m=u(s,"syncErrors");m&&(m=E(m,r),s=l.default.deepEqual(m,l.default.empty)?p(s,"syncErrors"):_(s,"syncErrors",m));var g=u(s,"syncWarnings");g&&(g=E(g,r),s=l.default.deepEqual(g,l.default.empty)?p(s,"syncWarnings"):_(s,"syncWarnings",g)),s=y(s,"submitErrors."+r),s=y(s,"asyncErrors."+r)}else c=_(c,"count",h),s=_(s,d,c);return s},t[o.UNTOUCH]=function(e,t){var n=t.meta.fields,i=e;n.forEach((function(e){return i=p(i,"fields."+e+".touched")}));var a=v(m(u(i,"registeredFields")),(function(e){return u(i,"fields."+e+".touched")}));return i=a?_(i,"anyTouched",!0):p(i,"anyTouched")},t[o.UPDATE_SYNC_ERRORS]=function(e,t){var n=t.payload,i=n.syncErrors,a=n.error,r=e;return a?(r=_(r,"error",a),r=_(r,"syncError",!0)):(r=p(r,"error"),r=p(r,"syncError")),r=Object.keys(i).length?_(r,"syncErrors",i):p(r,"syncErrors")},t[o.UPDATE_SYNC_WARNINGS]=function(e,t){var n=t.payload,i=n.syncWarnings,a=n.warning,r=e;return r=a?_(r,"warning",a):p(r,"warning"),r=Object.keys(i).length?_(r,"syncWarnings",i):p(r,"syncWarnings")},t);return function e(t){return t.plugin=function(t,n){var a=this;return void 0===n&&(n={}),e((function(e,r){void 0===e&&(e=i),void 0===r&&(r={type:"NONE"});var o=function(n,i){var a=u(n,i),o=t[i](a,r,u(e,i));return o!==a?_(n,i,o):n},s=a(e,r),l=r&&r.meta&&r.meta.form;return l&&!n.receiveAllFormActions?t[l]?o(s,l):s:Object.keys(t).reduce(o,s)}))},t}(function(e){return function(t,n){void 0===t&&(t=i),void 0===n&&(n={type:"NONE"});var a=n&&n.meta&&n.meta.form;if(!a||!function(e){return e&&e.type&&e.type.length>o.prefix.length&&e.type.substring(0,o.prefix.length)===o.prefix}(n))return t;if(n.type===o.DESTROY&&n.meta&&n.meta.form)return n.meta.form.reduce((function(e,t){return y(e,t)}),t);var r=u(t,a),s=e(r,n);return s===r?t:_(t,a,s)}}((function(e,t){void 0===e&&(e=i);var n=P[t.type];return n?n(e,t):e})))};t.default=c},730932:(e,t,n)=>{var i=n(564836);t.__esModule=!0,t.default=void 0;var a=i(n(30084));var r=function(e){var t=function(e){return function(t,n){return void 0!==e.getIn(t,n)}},n=e.deepEqual,i=e.empty,r=e.getIn,o=e.deleteIn,s=e.setIn;return function(l){void 0===l&&(l=t);return function t(d,c){if("]"===c[c.length-1]){var u=(0,a.default)(c);return u.pop(),r(d,u.join("."))?s(d,c):d}var _=d;l(e)(d,c)&&(_=o(d,c));var p=c.lastIndexOf(".");if(p>0){var h=c.substring(0,p);if("]"!==h[h.length-1]){var m=r(_,h);if(n(m,i))return t(_,h)}}return _}}};t.default=r},853824:(e,t,n)=>{var i=n(564836);t.Z=void 0;var a=i(n(151107)),r=i(n(80020)),o=(0,a.default)(r.default);t.Z=o},525706:(e,t,n)=>{var i=n(564836);t.__esModule=!0,t.default=void 0;var a=i(n(414293)),r=i(n(428368)),o=i(n(667294)),s=function(e){return(0,a.default)(e)||""===e||isNaN(e)},l=function(e,t){return e===t||(e||t?(!e||!t||e._error===t._error)&&((!e||!t||e._warning===t._warning)&&(!o.default.isValidElement(e)&&!o.default.isValidElement(t)&&void 0)):s(e)===s(t))},d=function(e,t){return(0,r.default)(e,t,l)};t.default=d},954826:(e,t,n)=>{var i=n(564836);t.__esModule=!0,t.default=void 0;var a=i(n(310434)),r=i(n(30084));function o(e,t){if(null==e||null==t)return e;for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r{var i=n(564836);t.__esModule=!0,t.default=void 0;var a=i(n(30084)),r=function(e,t){if(!e)return e;var n=(0,a.default)(t),i=n.length;if(i){for(var r=e,o=0;o{var i=n(564836);t.__esModule=!0,t.default=void 0;var a=i(n(968554)),r=i(n(179298)),o=i(n(759572)),s=i(n(525706)),l=i(n(954826)),d=i(n(792234)),c={allowsArrayErrors:!0,empty:{},emptyList:[],getIn:r.default,setIn:o.default,deepEqual:s.default,deleteIn:l.default,forEach:function(e,t){return e.forEach(t)},fromJS:function(e){return e},keys:d.default,size:function(e){return e?e.length:0},some:function(e,t){return e.some(t)},splice:a.default,equals:function(e,t){return t.every((function(t){return~e.indexOf(t)}))},orderChanged:function(e,t){return t.some((function(t,n){return t!==e[n]}))},toJS:function(e){return e}};t.default=c},792234:(e,t)=>{t.__esModule=!0,t.default=void 0;var n=function(e){return e?Array.isArray(e)?e.map((function(e){return e.name})):Object.keys(e):[]};t.default=n},759572:(e,t,n)=>{var i=n(564836);t.__esModule=!0,t.default=void 0;var a=i(n(310434)),r=i(n(30084)),o=function e(t,n,i,r){var o;if(r>=i.length)return n;var s=i[r],l=e(t&&(Array.isArray(t)?t[Number(s)]:t[s]),n,i,r+1);if(!t){var d;if(isNaN(s))return(d={})[s]=l,d;var c=[];return c[parseInt(s,10)]=l,c}if(Array.isArray(t)){var u=[].concat(t);return u[parseInt(s,10)]=l,u}return(0,a.default)({},t,((o={})[s]=l,o))},s=function(e,t,n){return o(e,n,(0,r.default)(t),0)};t.default=s},968554:(e,t)=>{t.__esModule=!0,t.default=void 0;var n=function(e,t,n,i){if(t<(e=e||[]).length){if(void 0===i&&!n){var a=[].concat(e);return a.splice(t,0,!0),a[t]=void 0,a}if(null!=i){var r=[].concat(e);return r.splice(t,n,i),r}var o=[].concat(e);return o.splice(t,n),o}if(n)return e;var s=[].concat(e);return s[t]=i,s};t.default=n},753894:(e,t,n)=>{function i(e){return function(t){var n=t.dispatch,i=t.getState;return function(t){return function(a){return"function"==typeof a?a(n,i,e):t(a)}}}}n.d(t,{Z:()=>r});var a=i();a.withExtraArgument=i;const r=a},570655:(e,t,n)=>{n.d(t,{Jh:()=>r,fl:()=>s,mG:()=>a,pi:()=>i,pr:()=>l});var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&a[a.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function s(){for(var e=[],t=0;t{e.exports={LinkClusterLevel:{RAW:0,NORMALIZED:1,PATH:2,L2:3,L1:4,DOMAIN:5,SITE_CHUNK:6,LANDING_DOMAIN:7},SearchVertical:{UNIVERSAL:0,PIN:1,BOARD:2,USER:3,PERSONAL:4,AUTOCOMPLETE:5,PIN_REALTIME:6,PERSONAL_REALTIME:7,PLACE:8,PIN_EXP:9,BOARD_EXP:10,USER_EXP:11,INTERESTS:12,PIN_FRONTIER:13,PERSONAL_TOPIC:14,PERSONAL_TOPIC_BOARD:15,GENERIC:16},SearchIndexType:{UNKNOWN:22,PIN:1,BOARD:2,USER:3,PERSONAL:4,ADQUERY:6,VISUAL:7,AUTOCOMPLETE:8,GENERIC:9,AUTOCOMPLETE_METATRON:10,AUTOCOMPLETE_CONTACTS:11,PEACH:15,QUERY:16,BESTPINDOC:17,HBASE:18,HBASE_SHOPPING_ADS:20,HBASE_SHOPPING_CATALOG:21,AD:5,SHOPPING_ADS:12,SOV_ADS:13,KEYWORD_ADS_DEPRECATED:14,ADS_KEYWORD:19,P2P:23,SHOPPING_ADS_PRODUCT_GROUP:24,ADS_MANAGER:25,ADS_CONVERSION_USER:35,ITEM:26,APIARY:27,INTEREST:28,CREATOR:29,STICKER:30,MUSIC:31,HF_INTEREST_PINS:32,SHUFFLE:33,KNOWLEDGE_GRAPH_NODE:34,ACQUIVATION_UNIFIED:36,PINJOIN_EMBEDDINGS:200,PINJOIN_ADS_EMBEDDINGS:201,PINJOIN_SHOPPINGADS_EMBEDDINGS:202,GRAPHSAGE_EMBEDDINGS:203,PINJOIN_EMBEDDINGS_V5:204,HF_TWO_TOWER_EMBEDDINGS:205,RECSEQ_EMBEDDINGS:206,P2P_TWO_TOWER_EMBEDDINGS:207,HF_WEB_PINS:208,SEARCHSAGE_EMBEDDINGS:209,MOMENT_EMBEDDINGS:210,NOTIFSAGE_EMBEDDINGS:211},SearchServerType:{METATRON:1,MANAS_LEAF:2,MANAS_ROOT:3,MANAS_LEAF_AND_ROOT:4},SearchCorpusType:{UNKNOWN:32,BASE:0,BASE_I18N:49,BASE_REFRESH:51,REALTIME:1,COHOST:112,FRONTIER:2,FRESH:3,BASEPRIME:4,CSR:7,CURATED:16,BEST_TOPIC_PIN:21,GOLDEN:30,EXT_FALLBACK:58,COMMERCE:8,COMMERCE_HYBRID:59,COMMERCE_ITEM_HYBRID:93,COMMERCE_BASE:5,COMMERCE_FRONTIER:6,COMMERCE_ITEM:88,COMMERCE_ITEM_BASE:90,COMMERCE_ITEM_EXP:97,COMMERCE_ITEM_EXP_2:103,COMMERCE_ITEM_EXP_3:104,COMMERCE_ITEM_EXP_4:105,ADS:9,BASEEXP:10,BASEEXP2:28,BASEEXP3:44,BASEEXP4:45,BASEEXP5:46,BASEEXP6:47,BASEEXP7:55,BASEEXP8:56,BASEEXP9:57,BASEEXP_I18N:50,BASEPRIMEEXP:11,BASEPRIMEEXP3:76,BASEPRIMESTAGING:135,COMMERCE_EXP:37,COMMERCE_HYBRID_EXP:60,DARK_READ:48,REALTIMEEXP:99,INTERLEAVING:12,ECLECTIC:13,VIDEO:14,PARTNER_VIDEO:15,STL:23,P2P_REC:17,PRODUCT:18,SHOPPING_ADS:19,SIFTER:20,ADSPIN:22,PERSONALIZE:24,PERSONALIZE_GOLDEN:31,PERSONALIZE_GOLDEN_EXP:38,PERSONALIZE_GEMINI:26,PERSONALIZE_VISUAL:27,BASESTAGING:25,REALTIMESTAGING:75,MODELSTAGING:29,INDEXSTAGING:140,INDEXPRIMESTAGING:146,PLAYGROUND:35,DYNAMIC_INSERTION:33,POLARIS:34,POLARIS_REALTIME:36,POLARIS_EXP:148,VIDEO_REALTIME:39,PINNER_AUTHORITY:40,PINNER_AUTHORITY_EXP:98,PINNER_AUTHORITY_CREATOR:119,CREATORS:41,HF_REALTIME:42,MEDIA_PLANNER:43,RECIPES:52,DIY:53,VIDEO_GRAPHSAGE:54,PIXIE_REALTIME:61,BASEPRIME_INFLUENCER_CONTENT:62,INTEREST_REALTIME:63,HF_BOARDS:64,BASEPRIME_GS:65,BASEPRIME_USER_GS:66,BASEPRIME_SYOP_GS:67,COMMERCE_USER_GS:68,COMMERCE_SYOP_GS:69,BASEPRIME_CONTEXT_GS:85,COMMERCE_CONTEXT_GS:86,COMMERCE_ITEM_USER_GS:91,COMMERCE_ITEM_CONTEXT_GS:94,BASE_FOLLOWING:133,COMMERCE_ITEM_FOLLOWING:134,USER_P2P:136,USER_P2P_REPEATED_QUERY:137,BASEEXP_V2:70,BASEPRIMEEXP_V2:71,GOLDEN_EXP_V2:72,COMMERCE_EXP_V2:73,PERSONALIZE_GOLDEN_EXP_V2:74,NAVBOOST:77,NAVBOOST_EXP:130,STORY_NAVBOOST:102,STORY_NAVBOOST_EXP:107,ENGAGEMENT_IDEA_PINS:118,P2P_ENGAGEMENT_IDEA_PINS:117,BASE_AUTOML:78,BASEPRIME_AUTOML:79,COMMERCE_AUTOML:80,COMMERCE_ITEM_AUTOML:95,COMMERCE_ITEM_AUTOML_EXP:126,COMMERCE_ITEM_AUTOML_EXP_2:127,COMMERCE_ITEM_AUTOML_EXP_3:128,COMMERCE_ITEM_AUTOML_EXP_4:129,FRESH_AUTOML:81,PERSONALIZE_GOLDEN_AUTOML:82,BASE_AUTOML_SMS:120,BASEPRIME_AUTOML_SMS:121,COMMERCE_AUTOML_SMS:122,COMMERCE_ITEM_AUTOML_SMS:123,FRESH_AUTOML_SMS:124,PERSONALIZE_GOLDEN_AUTOML_SMS:125,QUERY:83,REALTIME_BOOTSTRAP:84,ACTIVATION:87,ACTIVATION_ITEM:92,MERCHANT_ACTIVATION_GS:100,MERCHANT_ACTIVATION_GS_ITEM:101,SHOPIFY_GS:109,SHOPIFY_GS_ITEM:110,STORY_PINS_GS:89,FRESH_STORY_PINS_GS:96,NOTIFICATION:106,P2P_IDEA_PINS:108,P2P_IDEA_PINS_EXP:139,FQS:111,BASE_STYLE:113,BASE_STYLE_REWRITE:114,COMMERCE_STYLE:115,COMMERCE_STYLE_REWRITE:116,STORY_BEST_PIN:131,IDEA_PIN_TOKEN:132,HQM_GS_ITEM:138,BASE_GPU:141,BASEPRIME_GPU:142,FRESH_GPU:143,COMMERCE_ITEM_GPU:144,PERSONALIZE_GOLDEN_GPU:145,MOMENT_BASED_PINS:147,NOTIFICATION_CONTENT:149,AUDIENCE_SIZE:150},LocalReason:{NOT_LOCAL:0,LOCAL_LINK:1,LOCAL_DESC:2,LOCAL_LINK_AND_DESC:3,LOCAL_LINK_OR_DESC:4},Country:{AD:5,AE:6,AF:7,AG:8,AI:9,AL:10,AM:11,AO:12,AQ:13,AR:14,AS:15,AT:16,AU:17,AW:18,AX:19,AZ:20,BA:21,BB:22,BD:23,BE:24,BF:25,BG:26,BH:27,BI:28,BJ:29,BL:30,BM:31,BN:32,BO:33,BQ:34,BR:35,BS:36,BT:37,BV:38,BW:39,BY:40,BZ:41,CA:4,CC:42,CD:43,CF:44,CG:45,CH:46,CI:47,CK:48,CL:49,CM:50,CN:51,CO:52,CR:53,CU:54,CV:55,CW:56,CX:57,CY:58,CZ:59,DE:60,DJ:61,DK:62,DM:63,DO:64,DZ:65,EC:66,EE:67,EG:68,EH:69,ER:70,ES:71,ET:72,FI:73,FJ:74,FK:75,FM:76,FO:77,FR:1,GA:78,GB:2,GD:79,GE:80,GF:81,GG:82,GH:83,GI:84,GL:85,GM:86,GN:87,GP:88,GQ:89,GR:90,GS:91,GT:92,GU:93,GW:94,GY:95,HK:96,HM:97,HN:98,HR:99,HT:100,HU:101,ID:102,IE:103,IL:104,IM:105,IN:106,IO:107,IQ:108,IR:109,IS:110,IT:111,JE:112,JM:113,JO:114,JP:3,KE:115,KG:116,KH:117,KI:118,KM:119,KN:120,KP:121,KR:122,KW:123,KY:124,KZ:125,LA:126,LB:127,LC:128,LI:129,LK:130,LR:131,LS:132,LT:133,LU:134,LV:135,LY:136,MA:137,MC:138,MD:139,ME:140,MF:141,MG:142,MH:143,MK:144,ML:145,MM:146,MN:147,MO:148,MP:149,MQ:150,MR:151,MS:152,MT:153,MU:154,MV:155,MW:156,MX:157,MY:158,MZ:159,NA:160,NC:161,NE:162,NF:163,NG:164,NI:165,NL:166,NO:167,NP:168,NR:169,NU:170,NZ:171,OM:172,PA:173,PE:174,PF:175,PG:176,PH:177,PK:178,PL:179,PM:180,PN:181,PR:182,PS:183,PT:184,PW:185,PY:186,QA:187,RE:188,RO:189,RS:190,RU:191,RW:192,SA:193,SB:194,SC:195,SD:196,SE:197,SG:198,SH:199,SI:200,SJ:201,SK:202,SL:203,SM:204,SN:205,SO:206,SR:207,SS:208,ST:209,SV:210,SX:211,SY:212,SZ:213,TC:214,TD:215,TF:216,TG:217,TH:218,TJ:219,TK:220,TL:221,TM:222,TN:223,TO:224,TR:225,TT:226,TV:227,TW:228,TZ:229,UA:230,UG:231,UM:232,US:0,UY:233,UZ:234,VA:235,VC:236,VE:237,VG:238,VI:239,VN:240,VU:241,WF:242,WS:243,YE:244,YT:245,ZA:246,ZM:247,ZW:248},Locale:{en_US:0,en_GB:1,fr_FR:2,ja_JP:3},CategoryDim:{ANIMALS:0,ARCHITECTURE:1,ART:2,CARS_MOTORCYCLES:3,CELEBRITIES:4,DESIGN:5,DIY_CRAFTS:6,EDUCATION:7,FILM_MUSIC_BOOKS:8,FOOD_DRINK:9,GARDENING:10,GEEK:11,HAIR_BEAUTY:12,HEALTH_FITNESS:13,HISTORY:14,HOLIDAYS_EVENTS:15,HOME_DECOR:16,HUMOR:17,ILLUSTRATIONS_POSTERS:18,KIDS:19,MENS_FASHION:20,OUTDOORS:21,PHOTOGRAPHY:22,PRODUCTS:23,QUOTES:24,SCIENCE_NATURE:25,SPORTS:26,TATTOOS:27,TECHNOLOGY:28,TRAVEL:29,WEDDINGS:30,WOMENS_FASHION:31,FOR_DAD:32},PinnerIntentSource:{VERIFIED:0,LOW_HIT:1,CONTACT:2,USERNAME:3,NAME_DETECTION:4,ACTIVE_CREATOR:5},CategoryVectorVersion:{CAT_VEC_V0:0,CAT_VEC_V1:1,CAT_VEC_FAR_DUP:-1,CAT_VEC_SVM_CLASSIFIER:-2},WordEmbeddingVersion:{NET_0:0,WORD2VEC_0:1,WORD2VEC_1:2,WORD2VEC_2:3,WORD2VEC_3:7,WORD2VEC_4:8,WORD2VEC_5:9,WORD2VEC_PT:11,WORD2VEC_ES:12,WORD2VEC_FR:13,WORD2VEC_JA:14,WORD2VEC_DE:15,RNN_0:10,LDA_100:4,LDA_400:5,LDA_800:6,ANNOTATION2VEC_EN:16,ANNOTATION2VEC_EN_LEMM:17,QUERY_GEMINI_NAVBOOST:18,ANNOT_INTEREST_FASTTEXT_L1:19,ANNOT_INTEREST_FASTTEXT_L2:20,ANNOT_INTEREST_FASTTEXT_L3:21,QUERY_GRAPHSAGE:22,CONCEPTNET_LSH_512_BITS:23,CONCEPTNET_HALF:24},GraphSageEmbeddingVersion:{V3:0,V4:1,V5:17,V1_MULTI_BIPARTITE_GS:22,V4_REALTIME_1:2,V4_ITEM_AVG:8,V4_ITEM_TOP:9,V5_ALPHA_ITEM_AVG:12,V5_ALPHA_ITEM_TOP:13,V5_ALPHA_ITEMSAGE:14,V1_ALPHA_ITEMSAGE:15,V1_BETA_ITEMSAGE:16,V1_ITEMSAGE:18,V2_ALPHA_ITEMSAGE:23,V1_MEDIASAGE:19,V2_ALPHA_MEDIASAGE:20,V0_SEARCHSAGE:21,V4_REALTIME_EXP1:3,V4_REALTIME_EXP2:4,V4_REALTIME_EXP3:5,V4_REALTIME_EXP4:6,V4_REALTIME_EXP5:7,V5_ALPHA:10,V5_BETA:11},SearchSageEmbeddingVersion:{V0_GRAPHSAGE_V4_2048:0,V0_GRAPHSAGE_V4_FP16:1,SEARCHSAGE_V3_BETA:2},MediaSageEmbeddingVersion:{V1_ALPHA:0,V1:1,V2_ALPHA:6,V1_EXP1:2,V1_EXP2:3,V1_EXP3:4,V1_EXP4:5},QueryCoverPinEmbeddingVersion:{GRAPHSAGE_V3_4096_AVG:0,GRAPHSAGE_V3_2048_AVG:1,GRAPHSAGE_V4_2048_AVG:2},SmartNavboostQueryEmbeddingVersion:{V1_GRAPHSAGE_V4_2048:0,V1_GRAPHSAGE_V4_FLOAT:1},ProductCfEmbeddingVersion:{V1_CUCT_QUERY:0,V1_CUCT_CANDIDATE:1,V1_CUCV_QUERY:2,V1_CUCV_CANDIDATE:3},ProductLearnedRetrievalEmbeddingVersion:{V1_PDP_QUERY:0,V1_P2P_QUERY:3,V1_PDP_CANDIDATE:1,V1_EXP_PDP_CANDIDATE:2,V1_P2P_CANDIDATE:4,V1_HF_CANDIDATE:5},SkinToneBucket:{UNKNOWN:0,LIGHTEST:1,SECOND_LIGHTEST:2,SECOND_DARKEST:3,DARKEST:4},HairPattern:{UNKNOWN:0,STRAIGHT:1,WAVY:2,CURLY:3,KINKY_COILY:4,PROTECTIVE_STYLES:5,BALD_SHAVED:6},BodySize:{UNKNOWN:0,LOWER_RANGE:1,LOWER_MIDDLE_RANGE:2,UPPER_MIDDLE_RANGE:3,UPPER_RANGE:4},ShoppingStyleSignalCategories:{PRODUCT_SHOT:0,STOCK_PHOTO:1,HOME_DECOR_SCENE:2,FULL_OUTFIT:3,CROPPED_OUTFIT:4},TrendingFestival:{UNKNOWN:0,HALLOWEEN:1,THANKSGIVING:2,CHRISTMAS:3,NEWYEAR:4},EmbeddingValueType:{DOUBLE:0,FLOAT:1,SHORT:2,BINARY:3,FLOAT16:4},Gender:{UNSPECIFIED:0,FEMALE:1,MALE:2,ALL:3},GenderPreference:{MALE_ONLY:5,MALE_PERFERRED:4,NEUTRAL:3,FEMALE_PERFERRED:2,FEMALE_ONLY:1},UserSeqGenderProbVersion:{V1:0},UserSeqInterestPredVersion:{V1:0},SpamReason:{NONE:0,HIDDEN_FROM_PUBLIC:1,DEPRECATED_ROBOTS:2,TOO_MANY_REPINS_FROM_SPAM:3,DEPRECATED_TOO_MANY_MODIFIED_LINKS:4,DEPRECATED_TOO_MANY_BAD_LINKS:5},LinkBlockType:{SAFE:0,SUSPICIOUS:1,BLOCKED:2,PORN:3},HomefeedActionType:{REQUEST_PIN:0,REQUEST_PAGE:1,PIN_REPIN:2,PIN_CLOSEUP:3,PIN_HIDE:4,PIN_UPVOTE:5,PIN_CLICK_THROUGH:6,PIN_GRID_CLICK:12,PFY_PIN_THROUGH_BOARD_HIDE:7,PFY_PIN_THROUGH_PIN_HIDE:11},HomefeedSourceType:{PFY:0,INTEREST:1,FOLLOWING:2,DEPRECATED_RECOMMENDED_INTEREST:3,OTHER:4,EVERYTHING_FEED:5,PROMOTED_PIN:6,UNKNOWN:7,POPULAR_FEED:8},PinClusterLinksStatus:{EMPTY:0,NO_SERVABLE_LINKS:1,HAS_SERVABLE_LINKS:2},TextType:{TITLE:0,DESCRIPTION:1,COMMENT:2,MEDIA_OVERLAY:3,OCR:4},NavboostType:{NAVBOOST_7D:0,NAVBOOST_LONG:1,NAVBOOST_MEN:2,NAVBOOST_SEGMENTED:3,NAVBOOST_RELATED_PIN:4,NAVBOOST_CANONICAL:5,NAVBOOST_YEARLY:6,NAVBOOST_FRESH:7,NAVBOOST_REPIN:8,DYNAMIC_NAVBOOST_LONG:9,DYNAMIC_NAVBOOST_7d:10,NAVBOOST_SEGMENTED_REPIN_90D:11,NAVBOOST_GENDER_REPIN_90D:12,NAVBOOST_CANONICAL_COUNTRY_SEGMENTED:13,NAVBOOST_CANONICAL_GENDER_SEGMENTED:14,NAVBOOST_2_YEAR:15,NAVBOOST_2_YEAR_SEASONAL:16,NAVBOOST_2_YEAR_COUNTRY_SEGMENTED:17,NAVBOOST_2_YEAR_GENDER_SEGMENTED:18,NAVBOOST_2_YEAR_ADS:19,NAVBOOST_2_YEAR_ADS_COUNTRY_SEGMENTED:20,NAVBOOST_2_YEAR_ADS_GENDER_SEGMENTED:21,NAVBOOST_2_YEAR_HIGH_COVERAGE:22,NAVBOOST_2_YEAR_HIGH_COVERAGE_COUNTRY_SEGMENTED:23,NAVBOOST_2_YEAR_HIGH_COVERAGE_GENDER_SEGMENTED:24,NAVBOOST_FRESH_HIGH_COVERAGE:25,NAVBOOST_FRESH_HIGH_COVERAGE_GENDER_SEGMENTED:27,NAVBOOST_FRESH_HIGH_COVERAGE_COUNTRY_SEGMENTED:28,NAVBOOST_VIDEO:26,NAVBOOST_PRODUCT:29,NAVBOOST_PRODUCT_GENDER_SEGMENTED:30,NAVBOOST_PRODUCT_COUNTRY_SEGMENTED:31,NAVBOOST_LONGCLICK_90_DAY:32,NAVBOOST_LONGCLICK_90_DAY_GENDER_SEGMENTED:33,NAVBOOST_LONGCLICK_90_DAY_COUNTRY_SEGMENTED:34,NAVBOOST_PRODUCT_ITEM:35,NAVBOOST_PRODUCT_ITEM_GENDER_SEGMENTED:36,NAVBOOST_PRODUCT_ITEM_COUNTRY_SEGMENTED:37,NAVBOOST_PRODUCT_ITEM_HC:38,NAVBOOST_PRODUCT_ITEM_HC_GENDER_SEGMENTED:39,NAVBOOST_PRODUCT_ITEM_HC_COUNTRY_SEGMENTED:40,NAVBOOST_2YHC_REMOVE_STOP_WORDS:41,NAVBOOST_2YHC_REMOVE_STOP_WORDS_GENDER_SEGMENTED:42,NAVBOOST_2YHC_REMOVE_STOP_WORDS_COUNTRY_SEGMENTED:43,NAVBOOST_2YHC_SORTED_QUERY:44,NAVBOOST_2YHC_SORTED_QUERY_GENDER_SEGMENTED:45,NAVBOOST_2YHC_SORTED_QUERY_COUNTRY_SEGMENTED:46,NAVBOOST_2YHC_STEMMED_QUERY:47,NAVBOOST_2YHC_STEMMED_QUERY_GENDER_SEGMENTED:48,NAVBOOST_2YHC_STEMMED_QUERY_COUNTRY_SEGMENTED:49,NAVBOOST_2YHC_COMBINED_RELAXATION:59,NAVBOOST_2YHC_COMBINED_RELAXATION_GENDER_SEGMENTED:60,NAVBOOST_2YHC_COMBINED_RELAXATION_COUNTRY_SEGMENTED:61,NAVBOOST_FRESH_HC_REMOVE_STOP_WORDS:50,NAVBOOST_FRESH_HC_REMOVE_STOP_WORDS_GENDER_SEGMENTED:51,NAVBOOST_FRESH_HC_REMOVE_STOP_WORDS_COUNTRY_SEGMENTED:52,NAVBOOST_FRESH_HC_SORTED_QUERY:53,NAVBOOST_FRESH_HC_SORTED_QUERY_GENDER_SEGMENTED:54,NAVBOOST_FRESH_HC_SORTED_QUERY_COUNTRY_SEGMENTED:55,NAVBOOST_FRESH_HC_STEMMED_QUERY:56,NAVBOOST_FRESH_HC_STEMMED_QUERY_GENDER_SEGMENTED:57,NAVBOOST_FRESH_HC_STEMMED_QUERY_COUNTRY_SEGMENTED:58,NAVBOOST_FRESH_HC_COMBINED_RELAXATION:62,NAVBOOST_FRESH_HC_COMBINED_RELAXATION_GENDER_SEGMENTED:63,NAVBOOST_FRESH_HC_COMBINED_RELAXATION_COUNTRY_SEGMENTED:64},NavboostScoreType:{NAVBOOST_SCORE_WEIGHTED_RCTR:0,NAVBOOST_SCORE_COEC:1,NAVBOOST_SCORE_CLOSEUP:2,NAVBOOST_SCORE_RELATED_PINS:3,NAVBOOST_SCORE_CANONICAL_SEG:4,NAVBOOST_SCORE_2YEAR_SEG:5},CoOccurType:{FRESH:1,HIGH_COVERAGE_2YEAR_UNSEGMENTED:2,HIGH_COVERAGE_2YEAR_GENDER:3,HIGH_COVERAGE_2YEAR_COUNTRY:4},CoOccurObjectType:{PIN:1,PIN_JOIN:2,QUERY:3},AgeGroup:{AGE_UNDER_18:0,AGE_18_24:1,AGE_25_34:2,AGE_35_44:3,AGE_45_54:4,AGE_55_64:5,AGE_65_PLUS:6,AGE_UNDER_21:7,AGE_21_PLUS:8,AGE_MILLENNIAL:9,AGE_NOT_MILLENNIAL:10,AGE_UNSPECIFIED:11},ImageAestheticsVertical:{TRAVEL:0,FASHION:1},LinkScoreModelEpoch:{V0:0,V1:1,V2:2,V3:3},TrustworthyStatus:{UNKNOWN:0,TRUSTWORTHY:1,UNTRUSTWORTHY:2},ImageSourceCheckStatus:{NOT_CHECKED:0,CHECKED_EXISTED:1,CHECKED_NOT_EXISTED:2},ErrorPageType:{HARD_404:1,SOFT_404:2},CreatorMetaDataVersion:{V1:0},FunctionalType:{FUNCTIONAL:0,LINK_UNFUNCTIONAL:1,DOMAIN_UNFUNCTIONAL:2,IMAGE_UNFUNCTIONAL:3,VIDEO_UNFUNCTIONAL:4,SIG_LINK_UNFUNCTIONAL:5},UserState:{CORE:0,CASUAL:1,MARGINAL:2,DORMANT:3,RESURRECTED:4,NEW:5},NeardupSignalSource:{IMAGE_NEARDUP:0,VIDEO_NEARDUP:1},BodyImageAnalysisMethod:{DETECTED_REGION:1,HEURISTIC:2,EMBEDDING_BASED:3},RacyLabel:{NONE:0,SOFTCORE:1,HARDCORE:2},PornLabel:{NONE:0,HARDCORE:1,SOFTCORE:2},BoardLayout:{DEFAULT:0,PLACES:1},PinImpressionType:{UNKNOWN:0,HOME_FEED:1,CAT_FEED:2,SEARCH:3,CLOSEUP:4},PinQualityScoreVersion:{V0:0,V1:1},LinkQualityType:{PROMOTED:1,SUSPICIOUS:2,NO_IMAGE:5,NO_HTML:6,REPLACE_LISTED:7,GOOD:3,BAD:4,BLACKLISTED:8,DEAD:9},ObjectType:{PIN:1,BOARD:2,USER:3,CSR:4,TOPIC:5,ARTICLE:6,SEARCH_QUERY:7,USER_DID_IT_DATA:8,HASHTAG:9,STORY:10},ItemJoinDataVersion:{V1:1},ColorPaletteDim:{RED:0,ORANGE:1,YELLOW:2,LIME:3,GREEN:4,LIGHT_GREEN:5,TEAL:6,SKY:7,BLUE:8,VIOLET:9,PURPLE:10,PINK:11,MAGENTA:12,BLACK:13,WHITE:14,GRAY:15,GRAYSCALE:1e3,BLACKWHITE:1001},LinkJoinVersion:{LINK_JOIN_V1:0,LINK_JOIN_V2:1},PinJoinIndexSelectionStatus:{ACCEPTED:0,REJECTED_TOO_MANY_FLAGS:1,REJECTED_NO_ELIGIBLE_CANDIDATE:2},VaseLinkType:{BOARD_LINK:1,TOPIC_LINK:2,PROFILE_LINK:3},StlContentSourceType:{CANDIDATE_GENERATION:1,CURALATE:2,CURALATE_SPOTLIGHT:3,CURALATE_SPOTLIGHT_BOX:4,CURATION_BULK_UPLOAD:5,CURATION_BULK_UPLOAD_UNVERIFIED:6,OLAPIC:7,OLAPIC_SPOTLIGHT:8,PINTEREST_CLIENT:9,SHOPSTYLE:10,SHOPSTYLE_SPOTLIGHT:11},StlLiveState:{LIVE:1,DEAD:2},EmbeddingType:{PINJOIN_ANNOTATION_V3:0,PINJOIN_ANNOTATION_V3_EXP:1,PINJOIN_ANNOTATION_V5:2,PLACEHOLDER_3:3,PLACEHOLDER_4:4,PLACEHOLDER_5:5},NoIndexReason:{ZERO_TRAFFIC:0},UserLanguageVecVersion:{REPINED_PIN_LINK_LANG:1,CLICKED_PIN_LINK_LANG:2},UserCountryVecVersion:{REPINED_PIN_LINK_COUNTRY:1,CLICKED_PIN_LINK_COUNTRY:2},UserToIntentVersion:{UNKNOWN:0,PROTOTYPE:1,LIFESTYLE_GRAPH_V1:2},UserEmbeddingVersions:{TIME_DECAYED_GRAPHSAGE_V3_EMBEDDING:0,TIME_DECAYED_GRAPHSAGE_V4_EMBEDDING:1,CLUSTERED_GRAPHSAGE_V4_EMBEDDING:2,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID:5,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_TD_MEDOID:6,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_LOW_TD_MEDOID:7,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_RNN_CENTROID:8,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_RNN_MEDOID:9,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID_WITH_CLOSEUPS:10,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_LOW_TD_MEDOID_WITH_CLOSEUPS:11,GRU_V1_GRAPHSAGE_V4_EMBEDDING:3,SHOPPING_CLUSTERED_GRAPHSAGE_V4_EMBEDDING:4,MATCHED_TOPICS_GRAPHSAGE_V4_EMBEDDING:12,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING:13,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_HIGH_DIM:14,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID_LT1:15,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID_LT2:16,CLUSTERED_GRAPHSAGE_V4_WARD_COSINE_75:17,CLUSTERED_GRAPHSAGE_V4_WARD_COSINE_85:18,CLUSTERED_GRAPHSAGE_V4_WARD_COSINE_90:19,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_CONDITION_ON_1:20,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_CONDITION_ON_2:21,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_CONDITION_ON_WEIGHTED_SUM:22,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_HIGH_DIM_CONDITION_ON_1:23,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_HIGH_DIM_CONDITION_ON_2:24,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_HIGH_DIM_CONDITION_ON_WEIGHTED_SUM:25,SYOP_CLUSTERED_GRAPHSAGE_V4_EMBEDDING:26,CONTEXT_GRAPHSAGE_V4_EMBEDDING:27,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_NATIVE_PIN_FOCUSED:28,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID_LT1_WITH_PC:29,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID_LT_STORYPIN_FSV10S:30,PS_V3_USER_REPR:31,PS_V3_ALPHA_USER_REPR:32,PS_V3_BIGGER_USER_REPR:33,CLUSTERED_GRAPHSAGE_V5_EMBEDDING:34},ProductCategoryVersion:{UNKNOWN:0,P2PC_V2_HIGH_PRECISION:1,P2PC_V2_HIGH_RECALL:2,P2PC_V2_HIGH_PRECISION_ORGANIC:3,P2PC_V2_HIGH_RECALL_ORGANIC:4},InterestRecommendationReason:{DEFAULT:0,ACTIVITY:1,BOARD:2,FOLLOW:3,SEARCH:4,SEASONAL:5,P2P:6,P2P_DELTA:7,POPULAR:8,RANDOM_POPULAR:9,PINNERSAGE:10},InterestRelatedSources:{DEFAULT:0,RELATED_SEARCH:1,RELATED_BOARD:2,REALTED_FOLLOW:3,RELATED_ACTIVITY:4,RELATED_P2P:5,RELATED_P2P_DELTA:6,RELATED_HISTORY:7,RELATED_EMAIL_CLICK:8,RELATED_PUSH_OPEN:9,RELATED_PINNERSAGE:10},NotifInterestModelVersion:{UNKNOWN:0,DNN_V1:1,DNN_V2:2,PINNERSAGE_V3:3,DNN_V3:4},ScoringDetailsKeys:{RAW_STRING:0,BOARD_QUALITY:1,CAT_MATCH_SCORE:2,RAW_SCORE:3,FINAL_SCORE:4,FLOW_PENALTY:5,ANNOTATION_MATCH:6,ANNOTATION_SCORE:7,CO_OCCURRENCE_SCORE:8,TOPIC_MATCH:9,COMBINED_BOARD_PERF_SCORE:51,AGG_BOARD_PERF_SCORE:52,AVG_BOARD_PERF_SCORE:53,GENDER_PROB:54,PIN_QUALITY:10,P2P_CAT_MATCH:11,P2P_TEXT_MATCH:12,P2P_HASHTAG_MATCH:13,P2P_URL_MATCH:14,P2P_ANNOTATION_MATCH:15,P2P_TEXT_CONFIDENCE:16,P2P_RELEVANCE_SCORE:59,INTBRD_RELEVANCE:20,INTBRD_BOARD_QUALITY:21,INTBRD_BOARD_INDYRANK:22,INTBRD_BOARD_CATVEC_ENT:23,INTBRD_NUM_PINS_MATCHED:24,INTBRD_RAW_RELEVANCE:25,BOARD_RELEVANCE:30,BOARD_WEIGHT:31,PIN_IMPRESSIONS:40,PIN_REPINS:41,PIN_CLICKTHROUGHS:42,PIN_LONG_CLICKS:43,PIN_POPULARITY_SCORE:44,CO_OCCURRENCE_NUM_SAMPLES:45,CO_OCCURRENCE_COSINE_SIM:46,P2P_CLICK_COUNT:47,P2P_EXPECTED_CLICKS:48,P2P_COEC:49,PIN_ZSCORE:50,PIXIE_VISIT_COUNT:55,SOURCE_ACTION_TYPE:56,SOURCE_RECENCY:57,SOURCE_THROUGH_REWARD:58},ThroughObjectSource:{PIN_REPIN:0,PIN_CLICKTHROUGH:1,PIN_CLOSEUP:2,PIN_REPIN_EXPANSION:3,PIN_CLICKTHROUGH_EXPANSION:4,PIN_CLOSEUP_EXPANSION:5,PIN_CREATE:6,PIN_REACT:7,PIN_LIKE:8,PIN_SCREENSHOT:9,PIN_SAVE_TO_DEVICE:10},RecommendationSource:{B2B:0,USER_ACTIVITY:1,COOKIE:2,REALTIME_P2B:3,REALTIME_P2B_CLOSEUP:9,FALLBACK:4,U2RELATED_INTEREST:5,FBLIKE_TO_INTERESTS:6,CLICKTHROUGH:7,BOARD_FOLLOW:12,USER_FOLLOW:13,TOPIC_FOLLOW:14,LOCAL_B2B:8,LOCAL_CLICKTHROUGH:10,LOCAL_USER_ACTIVITY:11,SEARCH:15,RECBOOST_P2B:16,RECBOOST_CLICKTHROUGH:17,RECBOOST_USER_ACTIVITY:18,RECBOOST_CREATOR_BOARDS:22,RECOMMENDED_BOARDS:19,RECOMMENDED_CREATOR_BOARDS:20,ANNOTATION_REC_CREATOR_BOARDS:21,RECOMMENDED_ANNOTATION_BOARDS:23,RECOMMENDED_GRAPHSAGE_BOARDS:24,INTENTIONAL_DISTRIBUTION_RECOMMENDED_GRAPHSAGE_BOARDS:25,P2P_BOARD_OLDP2P:101,P2P_BOARD_CAND:102,P2P_NAVBOOST_CAND:103,P2P_PINPIN_REALTIME:104,P2P_VISUAL_LIVE:105,P2P_PROMOTED_INSERTION:106,P2P_COMMERCE_INSERTION:107,P2P_BOARD_LOCAL:108,P2P_SEARCH_CAND:109,P2P_SEARCHSAGE_CAND:164,P2P_RANDOMWALK_CAND:110,P2P_PIN2VEC_CAND:116,PIN_TO_PINS_NEARDUP_REC:111,P2P_FROM_SEARCH:112,P2P_VIDEO_INSERTION:113,P2P_FRESH_INSERTION:114,P2P_COMMERCE_SEARCH:115,P2P_P2B2P_FRESH:117,P2P_GEMINI_MUSE_CAND:118,P2P_GRAPHSAGE_CAND:119,P2P_RANDOMWALK_PRODUCT_CAND:120,P2P_GRAPHSAGE_PRODUCT_CAND:121,P2P_ITEMSAGE_PRODUCT_CAND:154,P2P_ITEMSAGE_HQM_PRODUCT_CAND:163,P2P_COLLABORATIVE_FILTERING_PRODUCT_CAND:157,P2P_LEARNED_RETRIEVAL_PRODUCT_CAND:160,P2P_NAVBOOST_PRODUCT_CAND:122,P2P_STL_SCENE_TO_STL_SCENE_INSERTION:123,P2P_ANNS_BASED_CAND:124,P2P_GRAPHSAGE_CREATORS_CAND:125,P2P_GRAPHSAGE_RECIPES_CAND:126,P2P_VISUAL_PRODUCT_CAND:127,P2P_GRAPHSAGE_STORY_PINS_CAND:128,P2P_MEDIASAGE_STORY_PINS_CAND:150,P2P_GRAPHSAGE_VIDEO_CAND:129,P2P_MEDIASAGE_VIDEO_CAND:151,P2P_SEARCH_NAVBOOST_CAND:130,P2P_COUNTRY_NAVBOOST_CAND:131,P2P_GEMINI_V5_VIDEO_CAND:132,P2P_GRAPHSAGE_DIY_CAND:133,P2P_VIDEO_NAVBOOST_CAND:134,P2P_SEARCH_PRODUCT_CAND:135,P2P_SMARTFEED_CAND:136,P2P_GRAPHSAGE_SHOPPABLE_INSPIRATION_CAND:137,P2P_GRAPHSAGE_FRESH_PRODUCT_CAND:138,P2P_GRAPHSAGE_VMP_PRODUCT_CAND:139,P2P_REVERSE_STELA:140,P2P_SEARCH_INTEREST_CAND:141,P2P_GRAPHSERVICE_VIDEO_CAND:142,P2P_GRAPHSAGE_MERCHANT_ACTIVATION_CAND:143,P2P_INTEREST_BASED_SPARK_CAND:144,P2P_STORY_NAVBOOST_CAND:145,P2P_EXPANDED_STORY_NAVBOOST_SEARCH_COENGAGEMENT_CAND:156,P2P_EXPANDED_STORY_NAVBOOST_CF_CAND:161,P2P_CREATOR_VIDEO:146,P2P_GRAPHSAGE_SHOPIFY_PRODUCT_CAND:147,P2P_TWO_TOWER_EMBEDDING_CAND:148,P2P_TWO_TOWER_EMBEDDING_WITH_USER_FEATURE_CAND:149,P2P_TWO_TOWER_PRODUCT_EMBEDDING_CAND:165,P2P_INTEREST_TRANSITION_CAND:152,P2P_CREATOR_CONTENT_UNIFIED_STORY_PIN_MANAS_CAND:153,P2P_NATIVE_CHECKOUT_PRODUCT_CAND:155,P2P_PRODUCT_XPIXIE:158,P2P_FOLLOWING_IDEA_PINS_CAND:159,P2P_UNKNOWN:162},RecommendationAlgo:{P2P_NAVBOOST_NO_MATCH:10,P2P_NAVBOOST_MATCH:11,P2P_NAVBOOST_FEATURE:12,P2P_RERANK_NONE:20,P2P_RERANK_OLDP2P:21,P2P_RERANK_OFFLINE:22,P2P_RERANK_REALPIN:23,P2P_RERANK_SHUFFLED:24,P2P_RERANK_RANDOM:25,P2P_RERANK_SHUFFLED_LOCAL:26,P2P_RERANK_SCORPION:27,P2P_HIGH_QUALITY_PIN_SWAP:30,P2P_LOCAL_BOOST:31,P2P_PRODUCT_FLOOR_BLENDER:32,P2P_RANDOM_PIN_SELECTION:33,P2P_RERANK_PROD_LOGGING:34,P2P_DEMOTE:35,P2P_SLOT_BLEND:36,P2P_DEMOTE_HARD_404:37,P2P_DEMOTE_SOFT_404:38,P2P_DEMOTE_OOS:39,P2P_DEMOTE_GIRAFFE:40,P2P_DEMOTE_IAB_404:41,P2P_DEMOTE_REPIN:42,P2P_DEMOTE_IMPRESSION:43,P2P_DEMOTE_INACCESSIBLE_LINK:44,P2P_DEMOTE_FLAGGED:45,P2P_DEMOTE_HIDDEN:46,P2P_DEMOTE_LOW_PIN_COHESION:47,P2P_DEMOTE_SLOW_LOADING_DOMAIN:48,P2P_DEMOTE_NON_FUNCTIONAL_META_DATA:49,P2P_DEMOTE_LOW_RELEVANCE:50,P2P_DEMOTE_TRANSITORY_NONTRUSTWORTHY_PRODUCT:51,P2P_DEMOTE_PERMANENT_NONTRUSTWORTHY_PRODUCT:52,P2P_DEMOTE_DOMAIN_QUALITY:53,P2P_DEMOTE_BING_BOOSTED:54,P2P_FLOOR_BLENDER:55,P2P_ROUND_ROBIN:56,P2P_SPACING_RULE:57,P2P_NO_RELEVANCE_SCORE_FROM_RELEVANCE_MODEL:58,P2P_NO_RELEVANCE_SCORE_FROM_RANKING_MODEL:59},RelatedModule:{RELATED_PINS:1,PRODUCTS:2,DOMAIN:3,RECIPES:4,DIY:5,CREATOR_CONTENT:6,REVERSE_STELA:7,HOMEFEED:8,VIRTUAL_TRY_ON:9,USE_CASES:10,PRICE_LIMIT:11,BROAD_INTEREST:12,PERSONALIZED_PRODUCTS_BOARD:13,MOST_CONSIDERED:14,STORIES:15,PRODUCT_COLLABORATIVE_FILTERING_CLICK:16,PRODUCT_COLLABORATIVE_FILTERING_PURCHASE:18,PRODUCT_COLLABORATIVE_FILTERING_FREQUENTLY_BOUGHT_TOGETHER:21,SIMILAR_MERCHANT:17,PERSONAL_BOUTIQUE:19,COMPLEMENTARY:20,PIVOT_STORIES:22,INTERESTS:23,CREATOR_CONTENT_PORTAL:24,SHUFFLE_PIN_CUTOUT_MATCH:25,SHUFFLE_COLLAGE:26,NONE:100},STORY_TYPE:{RELATED_DOMAIN_CAROUSEL:0,RELATED_MOST_CONSIDERED_CAROUSEL:1,RELATED_PRODUCTS_FEED_HEADER:3,RELATED_CF_CLICK_CAROUSEL:4,RELATED_PRICE_CAROUSEL:6,RELATED_SIMILAR_MERCHANT_CAROUSEL:13,RELATED_CF_PURCHASE_CAROUSEL:14,RELATED_PRICE_UPSELL:15,RELATED_MOST_CONSIDERED_UPSELL:16,RELATED_DOMAIN_UPSELL:17,RELATED_CF_CLICK_GRID_SECTION:18,RELATED_CF_CLICK_UPSELL:19,RELATED_CF_PURCHASE_UPSELL:20,RELATED_SIMILAR_MERCHANT_UPSELL:21,RELATED_PRODUCTS_GRID_SECTION:22,RELATED_PRODUCTS_UPSELL:23,RELATED_CF_PURCHASE_GRID_SECTION:24,RELATED_CF_FREQUENTLY_BOUGHT_TOGETHER_CAROUSEL:25,RELATED_CF_FREQUENTLY_BOUGHT_TOGETHER_GRID_SECTION:26,RELATED_CF_FREQUENTLY_BOUGHT_TOGETHER_UPSELL:27,RELATED_PRICE_GRID_SECTION:28,RELATED_MOST_CONSIDERED_GRID_SECTION:29,RELATED_DOMAIN_GRID_SECTION:30},GramType:{UNIGRAM:0,BIGRAM:1,TRIGRAM:2},LinkLocaleSource:{ATLAS:0,TLD:1,PATH:2,L2:3,L1:4,DOMAIN:5,COOKIE:6,CLUSTER_COOKIE:7,DERIVED_FROM_LANGUAGE:8,IP_GEO:9,PIN_CREATE:10,DOMAIN_WHITELIST:11,CLICK_THROUGH:12,WHOIS:13,DIALECT:14},LinkJoinSource:{COOKIE_LINK_PERF:0,LINK_PERF:1,RICH_PIN_DATA:2,RICH_PIN_URL:3,PIN_JOIN:4,CSR_ONLY_PIN_JOIN:5,CSR_DATA:6,ANCHOR_ANNOTATION:7,TEXT_CATEGORY:8,CSR_STATS:9,INSTARANK:10,IN_APP_BROWSER_DATA:11,CONTENT_KEYWORDS:12},ClickThroughAction:{ALLOW:0,BLOCK:1},PinQualityState:{UNKNOWN:0,AUTHORIZED:1,NORMAL:2,QUESTIONABLE:3,BLOCK:4},LinkType:{ORGANIC:0,PRODUCT:1,WHITELISTED:2,RECIPE:3,DIY:4,TRAVEL:5},LinkPriority:{HIGH:0,ORGANIC:1,LOW:2,SKIP:3},CrawlFilterReason:{NOT_FILTERED:0,FILTERED_FEED_INGESTION_DOMAIN:1,FILTERED_BLACKLISTED_DOMAIN:2,FILTERED_MEDIA_EXTENSIONS_URL:3,FILTERED_INVALID_URL:4},SapphireSearch:{NONE:0,DEBUG:1,V1_WHITELISTED:2,V2_WHITELISTED:3,V3_WHITELISTED:4},SensitiveTermCateogry:{CONDITIONAL:0,EATING_DISORDER:1,PORN:2,CHILD_SAFETY:3,EMOTIONAL_DISDRESS_OR_SUICIDE:4,BUY_OR_SELL_WEAPON_ILLEGALLY:5,REPORTED_PINS:6,HATE_SPEECH:7,EATING_DISORDER_FUNDING:8},SensitiveTermCategory:{CONDITIONAL:0,EATING_DISORDER:1,PORN:2,CHILD_SAFETY:3,EMOTIONAL_DISTRESS_OR_SUICIDE:4,BUY_OR_SELL_WEAPON_ILLEGALLY:5,REPORTED_PINS:6,HATE_SPEECH:7,EATING_DISORDER_FUNDING:8,BLOCKED_COMMUNITY_GUIDELINES:9,DRUGS:10,MEDICAL_MISINFORMATION:11,SELF_HARM:12,DEPRESSION:13,SUICIDE:14,BODY_IMAGE:15,WILDLIFE_EXPLOITATION:16,US_CENSUS_2020:17,VOTING_US_ELECTION_2020:18,COVID_VACCINE:19,FR_2022_ELECTION:20,PH_2022_ELECTION:21,AU_2022_ELECTION:22,BR_2022_ELECTION:23,SMOKING_CESSATION:24,US_ELECTION:25},SeverityLevels:{ABUSIVE:0,SENSITIVE:1,BRAND_UNSAFE:2,CUSTOM_ENFORCEMENT:3},AdvisoryLevels:{CONDITIONAL:0,EATING_DISORDER:1,PORN:2,CHILD_SAFETY:3,EMOTIONAL_DISDRESS_OR_SUICIDE:4,BUY_OR_SELL_WEAPON_ILLEGALLY:5},FreshPinAge:{LESS_THAN_ONE_WEEK:0,LESS_THAN_ONE_MONTH:1,LESS_THAN_SIX_MONTHS:2,LESS_THAN_ONE_YEAR:3},IndexEventType:{PIN_JOINER:1},IndexDataEventType:{INSTANT_PIN_JOIN:1},TermVectorSource:{QUERY_TOKENS:1,IMAGE_TOKENS:2},CoterieReleaseVersion:{UNKNOWN:0,COTERIES_RC13:14,COTERIES_RC14:15,COTERIES_RC15:16,COTERIES_RC16:17,COTERIES_RC17:18,COTERIES_RC18:19,COTERIES_RC18B:20,COTERIES_RC19:21,COTERIES_RC19B:22,COTERIES_RC15_SURVEY:23,COTERIES_RC20:24,COTERIES_RC21:25,COTERIES_RC22:26,COTERIES_RC23:27,COTERIES_RC2:1,COTERIES_RC4:3,COTERIES_RC3:2,COTERIES_RC5:4,COTERIES_RC5A:5,COTERIES_RC5B:6,COTERIES_RC6:7,COTERIES_RC8:9,COTERIES_RC7:8,COTERIES_RC9:10,COTERIES_RC10:11,COTERIES_RC11:12,COTERIES_RC12:13},UniversalBlendingFeature:{MAIN_PINS_RELEVANCE_AVG:0,MAIN_PINS_RELEVANCE_MIN:1,MAIN_PINS_RELEVANCE_MAX:2,VIDEO_RELEVANCE_AVG:100,VIDEO_RELEVANCE_MIN:101,VIDEO_RELEVANCE_MAX:102,VIDEO_NUM:103,PRODUCT_RELEVANCE_AVG:200,PRODUCT_RELEVANCE_MIN:201,PRODUCT_RELEVANCE_MAX:202,PRODUCT_NUM:203,CONTEXTUAL_PINS_RELEVANCE_AVG:300,CONTEXTUAL_PINS_RELEVANCE_MIN:301,CONTEXTUAL_PINS_RELEVANCE_MAX:302,CONTEXTUAL_PINS_UNCAPPED_SIZE:303,PINNER_AUTHORITY_NUM_FOLLOWERS:304,PINNER_AUTHORITY_IS_PRIMARY_COUNTRY_MATCH:305,PINNER_AUTHORITY_IS_PRIMARY_LANGUAGE_MATCH:306,VIDEO_INTENT:400,PRODUCT_INTENT:401,PINNER_AUTHORITY_INTENT:402},UniversalBlenderFeature:{MAIN_PINS_RELEVANCE_AVG:0,MAIN_PINS_RELEVANCE_MIN:1,MAIN_PINS_RELEVANCE_MAX:2,VIDEO_RELEVANCE_AVG:3,VIDEO_RELEVANCE_MIN:4,VIDEO_RELEVANCE_MAX:5,VIDEO_NUM:6,PRODUCT_RELEVANCE_AVG:7,PRODUCT_RELEVANCE_MIN:8,PRODUCT_RELEVANCE_MAX:9,PRODUCT_NUM:10,CONTEXTUAL_PINS_RELEVANCE_AVG:11,CONTEXTUAL_PINS_RELEVANCE_MIN:12,CONTEXTUAL_PINS_RELEVANCE_MAX:13,CONTEXTUAL_PINS_UNCAPPED_SIZE:14,PINNER_AUTHORITY_NUM_FOLLOWERS:15,PINNER_AUTHORITY_IS_PRIMARY_COUNTRY_MATCH:16,PINNER_AUTHORITY_IS_PRIMARY_LANGUAGE_MATCH:17,VIDEO_INTENT:18,VIDEO_INTENT_V2:21,PRODUCT_INTENT:19,PRODUCT_INTENT_QUERY:24,PRODUCT_INTENT_USER:25,PINNER_AUTHORITY_INTENT:20,QUERY_INTEREST:22,HAS_HIGH_VIDEO_INTENT_INTEREST:23},CommerceRankingOption:{DEFAULT:0,PRODUCT:1,PRICE_HIGH_TO_LOW:2,PRICE_LOW_TO_HIGH:3,ARRIVAL_MOST_RECENT:4,ARRIVAL_LEAST_RECENT:5},MerchantType:{DEFAULT:0,VERIFIED:1,QUEEN_MAKER:2,SUPPLEMENTARY:3},PinSearchRetrievalSource:{TEXT_RETRIEVAL:0,GRAPHSAGE_EMBEDDING_RETRIEVAL:1,UNKNOWN:2},SearchOneBarModuleAnimation:{NONE:0,MODE:1,QUERY:2,RESULTS:3},SearchOneBarModuleType:{FILTER:0,SHOP_MODE:1,PROFILE_MODE:2,GUIDE:3,PERSONALIZATION:4,SKIN_TONE:5,HAIR_TYPE:6},SearchOneBarModuleIcon:{NONE:0,SHOP_BAG:1,SHOP_TAB:2,FILTER:3,EYES:4,LIPS:5,PROFILE:6},UserToKeywordVersion:{UNKNOWN:0,PROTOTYPE:1,LOGISTIC_V1:2}}},365804:(e,t,n)=>{n.d(t,{C:()=>o,Z:()=>l});var i=n(844974),a=n(773285),r=n(276775);const o="lastOnHomefeed",s=["/","/homefeed/"];function l(){const{pathname:e}=(0,r.useLocation)(),t=(0,r.useHistory)(),{checkExperiment:n}=(0,a.F)(),l=s.includes(e),d=t&&"POP"!==t.action;if(l&&d){const e=JSON.parse((0,i.qn)(o)),t=null!=e&&e.time?Date.now()-e.time:0,a=d&&t>0?n("hfp_hf_refresh_logic_web"):{};return{shouldMaintainHomefeed:"enabled_2_5_min"===a.group&&t/6e4<2.5||"enabled_1_min"===a.group&&t/6e4<1,lastHFScrollPosition:null==e?void 0:e.scrollPosition}}return{shouldMaintainHomefeed:!1}}},373232:(e,t,n)=>{n.d(t,{E:()=>a,u:()=>r});var i=n(425288);const{Provider:a,useHook:r}=(0,i.Z)("legacyServerContext")},927955:(e,t,n)=>{n.d(t,{Z:()=>i});const i=new class{get instance(){return this.__storeInstance__}set instance(e){return this.__storeInstance__=e,e}set(e){return this.instance=e,e}}},157796:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294),a=n(883119),r=n(785893);function o({color:e="red",duration:t,finalProgress:n,shape:o="pill"}){const[s,l]=(0,i.useState)(!1);(0,i.useEffect)((()=>{const e=setTimeout((()=>{l(!0)}),0);return()=>{clearTimeout(e)}}),[]);const d="pill"===o;return(0,r.jsx)(a.xu,{color:e,height:d?8:6,rounding:d?"pill":2,width:`${n}%`,dangerouslySetInlineStyle:{__style:{transform:d?`translateX(${s?"-5px":"-100%"})`:`scaleX(${s?1:0})`,transformOrigin:"left",transitionDuration:`${t}ms`,transitionTimingFunction:"ease-in"}}})}},630409:(e,t,n)=>{n.d(t,{Z:()=>P});var i=n(421781),a=n(883119),r=n(50286),o=n(785893);function s({children:e}){const t=(0,r.ml)();return(0,o.jsx)(a.Q_,{deviceType:t?"mobile":"desktop",children:e})}var l=n(780280);const d=["web_gestalt_redesigned_badge","mweb_gestalt_redesigned_badge","unauth_web_show_password_button","unauth_mweb_show_password_button","web_gestalt_redesigned_toast","mweb_gestalt_redesigned_toast"];function c({children:e}){const t=(0,l.B)(),n=d.reduce(((e,n)=>({...e,[n]:t.experimentsClient.checkExperiment(n)})),{});return(0,o.jsx)(a.II,{value:n,children:e})}var u=n(538128),_=n(287072);function p({children:e}){return(0,o.jsx)(a.Pz,{onNavigation:function({href:e,target:t}){const n={href:e,target:t};return(0,_.Z)(n)},children:e})}var h=n(129291),m=n(773285),g=n(558068),v=n(348584),f=n(411465),y=n(198462),E=n(505920),S=n(790348),T=n(385740),I=n(276775);function x({children:e,traceLoggerData:t}){const n=(0,l.B)(),a=(0,I.useHistory)(),r=(0,I.useLocation)(),s=(0,i.Z)({requestContext:n,traceLoggerData:t});(0,S.iF)(a.action);const d=r;return(0,o.jsx)(y.cA,{immutableLocation:d,resourceTimingCacheSize:400,routerHistoryAction:a.action,staticContext:s,children:(0,o.jsx)(h.MH,{children:e})})}function P({children:e,copytuneExperiments:t,inContextTranslation:n,locale:i,requestContext:a,traceLoggerData:r}){return(0,o.jsx)(l.P2,{value:a,children:(0,o.jsx)(m.a,{value:a.experimentsClient,children:(0,o.jsx)(x,{traceLoggerData:r,children:(0,o.jsx)(s,{children:(0,o.jsx)(c,{children:(0,o.jsx)(u.Z,{copytuneExperiments:t,enableInContextTranslation:n,locale:i,children:(0,o.jsx)(g.nK,{children:(0,o.jsx)(f.G,{children:(0,o.jsx)(p,{children:(0,o.jsx)(T.Ih,{children:(0,o.jsx)(v.D,{children:(0,o.jsx)(E.UZ,{children:e})})})})})})})})})})})})}},675149:(e,t,n)=>{n.d(t,{me:()=>v,pK:()=>E,bJ:()=>m,Y7:()=>f,Nv:()=>p,Ph:()=>u,Bf:()=>S,gC:()=>g,J3:()=>y,ay:()=>h,Un:()=>_,lv:()=>P,BG:()=>w});var i=n(247756),a=n(172071);const r="https://pinterest-uk-web.admo.tv/server/pixel.php",o="https://pinterest-uk-web.admo.tv/server/pixel.php?act=tag&a=page_load&l=resurrection_login&v=1",s="https://pinterest-uk-web.admo.tv/server/pixel.php?act=tag&a=page_load&l=login_customer&v=1",l="https://pinterest-uk-web.admo.tv/server/pixel.php?act=tag&a=page_load&l=customer_registration&v=1",d="https://pinterest-uk-web.admo.tv/server/pixel.php?act=tag&a=page_load&l=business_registration&v=1";var c=n(844974);const u="admo-tv-d-ses",_="admo-tv-m-ses",p="admo-tv-d-rez-login",h="admo-tv-m-rez-login",m="admo-tv-d-login",g="admo-tv-m-login",v="admo-tv-def-login",f="admo-tv-d-reg",y="admo-tv-m-reg",E="admo-tv-d-billing",S="admo-tv-m-billing",T={"admo-tv-d-ses":r,"admo-tv-m-ses":r,"admo-tv-d-rez-login":o,"admo-tv-m-rez-login":o,"admo-tv-d-login":s,"admo-tv-m-login":s,"admo-tv-d-reg":l,"admo-tv-m-reg":l,"admo-tv-d-billing":d,"admo-tv-m-billing":d,"admo-tv-def-login":"https://pinterest-uk-web.admo.tv/server/pixel.php?act=tag&a=page_load&l=logged_users&v=1"};function I(e,t){a.Z.increment("admo_tracking_pixel",1,{event_category:e,event_name:"All"}),"All"!==t&&a.Z.increment("admo_tracking_pixel",1,{event_category:e,event_name:t})}function x(){for(const t of Object.keys(T)){let n=(0,c.qn)(t);if(n){const a=(0,i.Z)({src:T[t],id:t,height:1,width:1,sandbox:"allow-scripts",style:"display:none;"});if(!document.getElementById(t)){var e;null===(e=document.body)||void 0===e||e.appendChild(a),n=n.split("#");const[i,r]=n;I(i,r),(0,c.L_)(t)}}}}function P(e,t){function n(e,t){const n=(0,i.Z)({src:T[e],id:e,height:1,width:1,sandbox:"allow-scripts",style:"display:none;"});var a;document.getElementById(e)||(null===(a=document.body)||void 0===a||a.appendChild(n),t(),x())}document.getElementById(e)?x():("complete"===document.readyState&&n(e,t),window.addEventListener("load",function e(t,i){return a=>{n(t,i),window.removeEventListener(a,e)}}(e,t)))}function b(e,t,n){T[e]&&(0,c.Nh)(e,`${t}#${n}`)}function A(e,t,n){return i=>{b(e,t,n),window.removeEventListener(i,A)}}function w(e,t,n){"complete"===document.readyState?b(e,t,n):window.addEventListener("load",A(e,t,n))}},422586:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(89254),a=n(966113);function r(e,t){let n="";if(e&&(n=e,t)){const r=(0,i.Z)(e,!0),o="/advertiser/",{hostname:s}=r;null!==s&&s!==a.KU||(e.startsWith(a.au)&&(e=e.replace(a.au,"")),n=e.startsWith(o)?e:o+t+e)}return n}},283698:(e,t,n)=>{function i(e){return"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"requestAnimationFrame")||e&&e(),window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{e&&e()}))}))}n.d(t,{Z:()=>i})},436851:(e,t,n)=>{n.d(t,{$:()=>a,d:()=>i});const i=e=>/instagram/i.test(e||""),a=e=>(e||"").includes("[Pinterest/iOS]")||(e||"").includes("[Pinterest/Android]")},363046:(e,t,n)=>{n.d(t,{Z:()=>v});var i=n(27255),a=n(768559),r=n(124580),o=n(172071),s=n(567450),l=n(412067),d=n(433780),c=n(12610),u=n(745760);const _=[9,3];function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let h=null;const m=(0,u.ZP)();class g{constructor(){p(this,"_logTimeoutLong",null),p(this,"_logTimeoutShort",null),p(this,"_clickthroughStartEvent",null),p(this,"_utcDate",new Date);const e=(e,t)=>{const{activeElement:n}=document;n&&n.id===i.Z.VIDEO_IFRAME_ID&&n?setTimeout((()=>n.blur()),0):(r.Z.pause(c.LU),this.flushEvents(e))},t=(e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}})((t=>e(!0))),n=()=>{r.Z.resume(c.LU)};window.addEventListener("beforeunload",t),window.addEventListener("pagehide",t),window.addEventListener("focus",n),window.addEventListener("blur",(t=>e(!1)))}setTimeoutToFlushEvents(e){const t=e.event_type;if(_.includes(e.view_type)&&!this._logTimeoutShort&&13===t)this._logTimeoutShort=setTimeout(this.flushEvents.bind(this,!1,!0),300);else if(!this._logTimeoutLong){const e=1e4;this._logTimeoutLong=setTimeout(this.flushEvents.bind(this),e)}}addEvent(e,t){const n=e.event_type;if(null==n)return;if(!(0,u.cA)(e))return;this.setTimeoutToFlushEvents(e);const i=(0,u.li)(e,t);i.appState=s.Z.getAppState();const a=u.Ch[n];var r,l;if(a)return a.startsWith("storyImpression")?(null!==(r=i.event_data)&&void 0!==r&&r.storyImpressions&&(i.event_data.storyImpression=i.event_data.storyImpressions,delete i.event_data.storyImpressions),void m.logImpression((0,u.a)(i,"storyImpression"))):void(0,u.nc)(i,a).forEach(m.logImpression);(o.Z.increment("webapp.contextLogger.impressionType",.01,{event_type:n}),m.logContextEvent(i),12===n)&&(m.logContextEvent({...i,event_type:7946}),this._clickthroughStartEvent={...i,time:1e6*Date.now()},null===(l=h)||void 0===l||l.storeClickthroughProperties({view_type:i.view_type,view_parameter:i.view_parameter,component:i.component,element:i.element,object_id_str:i.object_id_str,view_data:i.view_data,aux_data:i.aux_data,clientTrackingParams:i.clientTrackingParams}))}flushEvents(e){var t;const n=null===(t=m.getContextEvents)||void 0===t?void 0:t.call(m);n&&!n.length||(m.flushContextEvents(e),this._reset())}_reset(){this._resetShortTimerEvents(),this._resetLongTimerEvents()}_resetShortTimerEvents(){var e;null===(e=m.resetEventsBuffer)||void 0===e||e.call(m),clearTimeout(this._logTimeoutShort),this._logTimeoutShort=null}_resetLongTimerEvents(){var e;null===(e=m.resetEventsBuffer)||void 0===e||e.call(m),clearTimeout(this._logTimeoutLong),this._logTimeoutLong=null}}function v({location:e,reduxPins:t,shouldExtractTrackingParams:n=!0}){const i=new g;window.addEventListener&&window.addEventListener("focus",(()=>{if(i._clickthroughStartEvent){const e=i._clickthroughStartEvent;i._clickthroughStartEvent=null;const t={...e,event_type:4100,duration_ns:(0,u.h1)()-e.time};i.addEvent(t)}}));const r={flushContextEvents:e=>i.flushEvents(e),logContextEvent:n=>{if(null===n.event_type||void 0===n.event_type)return;const o=n.clientTrackingParams||(n=>{try{var i,r;const o=t&&n?t[n]:void 0;return o?(0,a.Z)({boardUrl:null===(i=o.board)||void 0===i?void 0:i.url,callToCreateSourcePinId:o.call_to_create_source_pin_id,location:e,pinId:o.id,pinnerUserName:null===(r=o.pinner)||void 0===r?void 0:r.username,storyPinDataId:o.story_pin_data_id,trackingParams:o.tracking_params,trackingParamsMap:o.tracking_params_map})||`${o.tracking_params}~0`:void 0}catch(o){return}})(n.object_id_str);i.addEvent({...n,clientTrackingParams:o},r.injectSetViewContextDataFromHook)},logImpression:({auxData:e,component:t,eventData:n,eventType:a,impressionType:o,objectIdStr:s,viewData:l,viewParameter:d,viewType:c})=>{null!=a&&i.addEvent({event_type:a,event_data:{[o]:[n]},component:t,object_id_str:s,aux_data:e,view_type:c,view_parameter:d,view_data:l},r.injectSetViewContextDataFromHook)}};return h=(0,d.Z)(r,n),l.Z.contextLogger=r,r}},517490:(e,t,n)=>{n.d(t,{g:()=>a,z:()=>i});const i="https://p.tvpixel.com/i?aid=pinterest-aac27acd-90e7-48ad-9f38-60b7bf197c22&e=pv&p=web&tv=1x1",a="https://p.tvpixel.com/i?aid=pinterest-aac27acd-90e7-48ad-9f38-60b7bf197c22&e=se&p=web&tv=1x1&se_ca=conversion&se_ac="},887432:(e,t,n)=>{n.d(t,{C:()=>c,FB:()=>u,ZY:()=>_,l8:()=>p});var i=n(811859),a=n(517490),r=n(330102);const o=a.z,s=a.g,l="dpm_images",d="dpm_pixel_unauth";function c(e){const{origin:t,pixelEvent:n,userIdString:i}=e,a=n?new URL(t+n):new URL(t);return a.searchParams.set("url",document.URL),a.searchParams.set("refr",document.referrer),a.searchParams.set("uid",i),a.toString()}async function u(e,t,n){const a=e+"*"+("undefined"!=typeof window&&window.crypto&&window.crypto.subtle?await(0,i.Z)(i.H.sha256,t):""),s=c({origin:o,userIdString:a});(0,r.VL)(e,"dpm_pixel_auth",d,l,s,a,"dpm",n)}async function _(e,t,n,a){let o="";t&&(o="undefined"!=typeof window&&window.crypto&&window.crypto.subtle?await(0,i.Z)(i.H.sha256,t):"");const s=e+"*"+o;(0,r.YJ)(n,e,l,s,"dpm",a)}async function p(e,t="",n,a,o){let d;if(t){const n="undefined"!=typeof window&&window.crypto&&window.crypto.subtle?await(0,i.Z)(i.H.sha256,t):"";d=c({origin:s,pixelEvent:e,userIdString:n})}(0,r.dO)({pixelId:e,divId:l,url:d,eventCategory:n,eventName:a,onSendPixelSuccess:o})}},151725:(e,t,n)=>{function i(){return new Date(Date.now())}n.d(t,{Z:()=>i})},816068:(e,t,n)=>{n.d(t,{Z:()=>i});const i=e=>Math.floor(new Date(e).getTime()/1e3)},22359:(e,t,n)=>{function i(e){const t=new Date(e);return t.setUTCMilliseconds(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCHours(0),t}n.d(t,{Z:()=>i})},549872:(e,t,n)=>{n.d(t,{IV:()=>c,Ii:()=>p,Ob:()=>u,sX:()=>_,vF:()=>d});var i=n(247756),a=n(811859),r=n(330102);const o="dentsu_images",s="ds_pixel_unauth",l="PageView";function d(e,t){const n=new URL("https://pp.d2-apps.net/v1/impressions/log?client_id=644&c_1=pintrest&c_2="+document.URL);return n.searchParams.set("c_3",t),n.searchParams.set("c_4",e),n.searchParams.set("c_7",(0,r.OJ)()),n.toString()}async function c(e,t,n){const i=e+"*"+("undefined"!=typeof window&&window.crypto&&window.crypto.subtle?await(0,a.Z)(a.H.sha256,t):""),c=d(i,l);(0,r.VL)(e,"ds_pixel_auth",s,o,c,i,"dentsu",n)}async function u(e,t){const n=d(e,l);(0,r.PN)(e,s,o,n,t)}function _(e,t,n){(0,r.dO)({pixelId:e,divId:o,eventCategory:t,eventName:n})}function p(e){function t(){const t=(0,i.Z)({src:"https://"+location.hostname+"/_/_/pixel/fb-dentsu-jp.html",id:"dentsuFBPixel",sandbox:"allow-scripts allow-same-origin",style:"display: none;"});if(!document.body)throw new Error("missing ");document.body.appendChild(t),t.contentWindow.addEventListener("load",(()=>window._sendFacebookPixel=t.contentWindow.fbq)),e()}document.getElementById("dentsuFBPixel")||("complete"===document.readyState&&t(),window.addEventListener("load",t))}},995146:(e,t,n)=>{n.d(t,{a$:()=>_,kv:()=>u,pH:()=>p});var i=n(643913),a=n(966113),r=n(584595),o=n(412067);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 l extends Error{constructor(e){super(e.statusText),s(this,"name","CrossDomainHandshakeHttpError"),this.response=e}}class d extends Error{constructor(e){super(e.message),s(this,"name","CrossDomainHandshakeApiError"),this.api_error_code=e.code,this.response=e}}const c=({path:e,data:t,unauthId:n})=>fetch(`${a.cD}/v3/${e}/handshake/`,{credentials:"include",mode:"cors",method:"POST",body:(0,i.Z)(t),headers:{"Content-type":"application/x-www-form-urlencoded; charset=UTF-8","X-Pinterest-InstallId":n}}).then((e=>{if(200===e.status||401===e.status||409===e.status)return e;throw new l(e)})).then((e=>e.json())).then((e=>{if("success"===e.status)return Promise.resolve(e);if(e.code===r.Zn)return e.api_error_code=e.code,Promise.reject(e);throw new d(e)})).catch((e=>{throw e})),u=(e,t=!1)=>o.Z.create("HandshakeSessionResource",{token:e,isRegistration:t}).callCreate(),_=(e,{facebookToken:t,inviteCode:n,locale:i,referrer:a,unauthId:r})=>{const o=(e.business_name?"partner":e.facebook_id&&"facebook")||"email";let s={email:e.email||"",username:e.username||"",password:e.password||"",first_name:e.first_name||"",last_name:e.last_name||"",country:e.country||"",locale:i,referrer:a};return e.birthday&&(s={...s,birthday:e.birthday}),e.custom_gender&&(s={...s,custom_gender:e.custom_gender}),e.gender&&(s={...s,gender:e.gender}),e.business_name&&(s={...s,business_name:e.business_name,first_name:e.business_name}),n&&(s={...s,invite_code:n}),e.facebook_id&&(s={...s,facebook_id:e.facebook_id,facebook_token:t||e.facebook_token||""}),e.recaptchaV3Token&&(s={...s,recaptcha_v3_token:e.recaptchaV3Token}),c({path:`register/${o}`,data:s,unauthId:r})},p=(e,{recaptchaV3Token:t,referrer:n,unauthId:i})=>{const a=e.mfa_token?"login/mfa":"login";let r={username_or_email:e.username_or_email.trim(),password:e.password,referrer:n};return e.mfa_token&&(r={...r,mfa_token:e.mfa_token}),t&&(r={...r,token:t}),c({path:a,data:r,unauthId:i})}},233211:(e,t,n)=>{n.d(t,{B$:()=>d,Cw:()=>o,I7:()=>l,c4:()=>s});var i=n(667294),a=n(425288);const r=(0,i.createContext)(null),o=()=>(0,i.useContext)(r),s=r.Provider,{Provider:l,useHook:d}=(0,a.Z)("DesktopCoreLogin")},172903:(e,t,n)=>{n.d(t,{Z:()=>R});var i=n(667294),a=n(231486),r=n(807998),o=n(704115),s=n(957161),l=n(172071),d=n(412067),c=n(594881),u=n(383690),_=n(898781),p=n(112690),h=n(69642),m=n(330102),g=n(826067),v=n(844974),f=n(867820),y=n(762752),E=n(780280),S=n(584595),T=n(45169),I=n(696157),x=n(995146),P=n(226198),b=n(529195);let A=0;const w=()=>{const e=document.referrer;return e?e.indexOf("/t.co/")>-1?"twitter":e.indexOf("google.")>-1?"google":e.indexOf("bing.")>-1?"bing":e.indexOf("facebook.")>-1?"facebook":"other":"direct"};function R(){const e=(0,_.ZP)(),t=(0,u.Z)(),n=(0,p.Z)(),R=(0,E.B)(),C=(0,h.Z)();return(0,i.useCallback)(((i,{inviteCode:u,loggingOptions:{signupContext:_,signupAttemptContextEvent:p}})=>{const h=({isRetrying:t})=>{var E,O,N,D;const k={...i},L=r.Z.includes(R.origin),j=(0,b.t_)(),U=(0,b.OJ)(),M=null!==(E=null===(O=window)||void 0===O||null===(N=O.location)||void 0===N?void 0:N.search)&&void 0!==E?E:null,F=(0,g.mB)(M).utm_campaign;j&&(k.visited_pages=j),U&&(k.referrer=U),F&&(k.utm_campaign=F);const B=s.Z.getItem(I.e9);if(j)k.visited_pages=j;else if(B){const e=[];for(const t of B)t.is_shared_pin&&e.push({ts:t.ts,path:t.path,first_pin_image_signature:t.image_signature,is_shared:!0});e&&(k.visited_pages=JSON.stringify(e.concat(j||[])))}k.user_behavior_data=(()=>{const e={};return[I.qo,I.Y9,I.E9].forEach((t=>{const n=s.Z.getItem(t);n&&(e[t]=n)})),JSON.stringify(e)})();const G=(0,T.yV)(k);t||(n({...p,event_type:7537}),C({action:"signup",event:"attempt",trigger:null==_?void 0:_.trigger,type:G}));const z=()=>{const{country:e,countryFromHostName:t,countryFromIp:i,regionFromIp:r}=R;(0,y.D)("signup"),a.zN(P.Mq.name),a.zN(P.x2.name),(0,c.Z)(),a.t8(P.Xh,"1"),(0,v.L_)(I._b);const s=(null==_?void 0:_.container)||"container_unknown";(0,f.My)(`signup.container.${s}`);const l=(null==_?void 0:_.signupSource)||"signupSource_unknown";(0,f.My)(`signup.source.${l}`),n({event_type:"home_page"===s?1750:1754}),(0,f.My)(`signup_referrer_module.${String((0,o.Z)().referrer||"unknown")}`),(0,m.ko)({country:e,countryFromHostName:t,countryFromIp:i,regionFromIp:r,deviceType:"Desktop",eventCategory:"NewUsers"}),n({...p,event_type:7487}),C({action:"signup",event:"success",referrer:w(),trigger:null==_?void 0:_.trigger,type:G})},H=e=>{e.api_error_code===S.tz&&((0,f.My)("multi_step_set_age_restrict_cookie"),a.t8(P.It,"1",(0,a.kZ)(P.It)));if((!e.api_error_code||[S.dO,S.cZ].includes(e.api_error_code))&&A<3)return(0,f.My)(`unauth_web.signup_retry_error.${String(e.api_error_code)}.${String(null==_?void 0:_.container)}`),A+=1,h({isRetrying:!0});throw n({...p,event_type:7488}),C({action:"signup",event:"fail",trigger:null==_?void 0:_.trigger,type:G}),e};if(!k.facebook_id&&!k.google_open_id_token&&!k.line_id_token&&Boolean(k.email)&&L){(0,f.My)("unauth_cross_domain_register_debugging_counter");const t=e=>{(0,f.My)(`web_cross_domain_register.${e}.${G}`)};t("attempt");const n={facebookToken:R.facebookToken,inviteCode:u,locale:R.locale,referrer:R.referrerFromCookie,unauthId:R.unauthId};return(0,x.a$)(k,n).then((n=>{z();const i=n.data||"";if(i)return t("success_with_token"),(0,x.kv)(i,!0).then((e=>{t("success_token_exchanged")}),(e=>{throw t("success_token_not_exchanged"),e}));throw t("success_without_token"),new Error(e._('We were able to create your account, but there was a problem logging you in. Try refreshing the page to continue.', ' - ', ' -- '))}),(e=>{t("failure"),H(e)}))}return l.Z.increment("webapp.debug_signup_type.core_register",1,{CHECK_TYPE:null!==(D=(0,T.Eh)(k,"CHECK_TYPE"))&&void 0!==D?D:"none",CHECK_EXISTS:(0,T.Eh)(k,"DEPRECATED_CHECK_EXISTS"),CHECK_TRUTHY:(0,T.Eh)(k,"DEPRECATED_CHECK_TRUTHY")}),d.Z.create("UserRegisterResource",k).callCreate().then((()=>z()),(e=>H(e)))};return t(),h({isRetrying:!1})}),[e,t,n,R,C])}},903095:(e,t,n)=>{n.d(t,{Mi:()=>a,lO:()=>r});var i=n(425288);const{Provider:a,useMaybeHook:r}=(0,i.Z)("pageContext")},541741:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(829407),a=n(497529);function r(){const e=(0,a.Z)();return(0,i.Z)((()=>{e.fetchAllExperiences(),e.fetchAllExperiencesMulti()})),null}},131108:(e,t,n)=>{n.d(t,{HI:()=>o,f8:()=>l,hm:()=>s,sH:()=>r});var i=n(883119),a=n(785893);const r=({children:e})=>(0,a.jsx)(i.xu,{padding:4,position:"absolute",bottom:!0,left:!0,right:!0,children:e}),o=({children:e})=>(0,a.jsx)(i.xu,{padding:2,children:e}),s=({children:e})=>(0,a.jsx)(i.xu,{display:"flex",position:"absolute",top:!0,height:"100%",width:"100%",alignItems:"center",justifyContent:"center",children:e}),l=({children:e})=>(0,a.jsx)(i.xu,{padding:4,position:"absolute",top:!0,left:!0,right:!0,children:e})},599997:(e,t,n)=>{n.d(t,{Ec:()=>d,IA:()=>g,LX:()=>c,Mf:()=>m,SF:()=>s,_e:()=>l,l0:()=>o,ml:()=>r,q4:()=>a,zn:()=>i});const i=e=>["feed_card_default","feed_card_video"].includes(e),a=2/3,r=2/3,o=1/3,s="36px",l="28px",d=.4,c=.65,u={0:"start",1:"center",2:"end"},_={web:{0:"16",1:"20",2:"24"},mweb:{0:"12",1:"16",2:"18",3:"20"}},p={1:"italics",0:"normal"},h={1:"bold",0:"normal"},m=({color:e,font_style:t,font_weight:n,horizontal_alignment:i,size:a},r)=>({color:e,fontStyle:p[null!=t?t:0],fontWeight:h[null!=n?n:1],horizontalAlignment:u[null!=i?i:0],fontSize:_[r][null!=a?a:0]+"px"}),g=e=>e<=280?1.25:e>280&&e<=540?.75:e>540&&e<1024?c:d},494990:(e,t,n)=>{n.d(t,{D:()=>r,G:()=>a});var i=n(207737);function a(e={},t){switch(t.type){case i.V$:const{experienceId:n,placementId:a,status:r}=t.payload,o={...e},s=o[a]||[],l=s.findIndex((e=>e.experience_id===n));return l>=0&&(["completed","dismissed"].includes(r)?s.splice(l,1):s[l].status=r),o;case i.$S:const{experiencesMulti:d}=t.payload;return{...d};default:return e}}function r(e={},t){switch(t.type){case i.iY:const{placementId:n,status:a}=t.payload,r={...e};return r[n]&&(["completed","dismissed"].includes(a)?delete r[n]:r[n].status=a),r;case i.mR:return{...e,...t.payload.experiences};case i._4:const{experiences:o}=t.payload;return{...o};default:return e}}},180630:(e,t,n)=>{n.d(t,{W:()=>s,Z:()=>o});var i=n(247756);function a(e,t,n=3){if(window._sendFacebookPixel)"NewOrRezUsers"===e||"MAU"===e?window._sendFacebookPixel("trackCustom",e):window._sendFacebookPixel("track",e),t();else if(n>0){const i=Math.floor(3e3/n);setTimeout((()=>{a(e,t,n-1)}),i)}}function r(e,t){return n=>{a(e,t),window.removeEventListener(n,r)}}function o(e,t){"complete"===document.readyState?a(e,t):window.addEventListener("load",r(e,t))}function s(){document.getElementById("facebookPixel")||("complete"===document.readyState&&function(){const e=(0,i.Z)({src:"https://"+location.hostname+"/fb.html",id:"facebookPixel",sandbox:"allow-scripts allow-same-origin",style:"display: none;"});if(!document.body)throw new Error("missing ");document.body.appendChild(e),e.contentWindow.addEventListener("load",(()=>window._sendFacebookPixel=e.contentWindow.fbq))}(),window.addEventListener("load",s))}},683090:(e,t,n)=>{n.d(t,{F8:()=>R,el:()=>D,M7:()=>w,tr:()=>O,lV:()=>N,x9:()=>L,sl:()=>C,eP:()=>k,VC:()=>x,Rs:()=>A});var i=n(247756),a=n(172071),r=n(330102);var o=n(844974);const s={"flashtalking-d-ses":["https://servedby.flashtalking.com/container/19112;123474;13378;iframe/?spotName=Desktop_Web_Session&ftXCurrency=A&ftXName=A&ftXNumItems=A&ftXRef=A&ftXType=A&ftXValue=A&U1=A&U2=A&U3=A&U4=A&U5=A&cachebuster=","__;WyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV0rKw!!N96JrnIq8IfO5w!3OqZ065GjRFlcxmjnVAQoMbP5zuw_9E57X2k7VKfgLzeMs11kSYtkrw8mpha-Zx62--R$"],"flashtalking-m-ses":["https://servedby.flashtalking.com/container/19112;123473;13378;iframe/?spotName=Mobile_Web_Session&ftXCurrency=A&ftXName=A&ftXNumItems=A&ftXRef=A&ftXType=A&ftXValue=A&U1=A&U2=A&U3=A&U4=A&U5=A&cachebuster=","__;WyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV0rKw!!N96JrnIq8IfO5w!3OqZ065GjRFlcxmjnVAQoMbP5zuw_9E57X2k7VKfgLzeMs11kSYtkrw8mpha-aC5fNCn$"],"flashtalking-d-login":["https://servedby.flashtalking.com/container/19112;123477;13378;iframe/?spotName=Desktop_Web_Login&ftXCurrency=A&ftXName=A&ftXNumItems=A&ftXRef=A&ftXType=A&ftXValue=A&U1=A&U2=A&U3=A&U4=A&U5=A&cachebuster=","__;WyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV0rKw!!N96JrnIq8IfO5w!3OqZ065GjRFlcxmjnVAQoMbP5zuw_9E57X2k7VKfgLzeMs11kSYtkrw8mpha-UP9cLAD$"],"flashtalking-m-login":["https://servedby.flashtalking.com/container/19112;123460;13378;iframe/?spotName=Mobile_Web_Login&ftXCurrency=A&ftXName=A&ftXNumItems=A&ftXRef=A&ftXType=A&ftXValue=A&U1=A&U2=A&U3=A&U4=A&U5=A&cachebuster=","__;WyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV0rKw!!N96JrnIq8IfO5w!3OqZ065GjRFlcxmjnVAQoMbP5zuw_9E57X2k7VKfgLzeMs11kSYtkrw8mpha-dZEP4zq$"],"flashtalking-d-reg":["https://servedby.flashtalking.com/container/19112;123459;13378;iframe/?spotName=Desktop_Web_Registration&ftXCurrency=A&ftXName=A&ftXNumItems=A&ftXRef=A&ftXType=A&ftXValue=A&U1=A&U2=A&U3=A&U4=A&U5=A&cachebuster=","__;WyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV0rKw!!N96JrnIq8IfO5w!3OqZ065GjRFlcxmjnVAQoMbP5zuw_9E57X2k7VKfgLzeMs11kSYtkrw8mpha-bBBO_93$"],"flashtalking-m-reg":["https://servedby.flashtalking.com/container/19112;123472;13378;iframe/?spotName=Mobile_Web_Registration&ftXCurrency=A&ftXName=A&ftXNumItems=A&ftXRef=A&ftXType=A&ftXValue=A&U1=A&U2=A&U3=A&U4=A&U5=A&cachebuster=","__;WyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV0rKw!!N96JrnIq8IfO5w!3OqZ065GjRFlcxmjnVAQoMbP5zuw_9E57X2k7VKfgLzeMs11kSYtkrw8mpha-QIr-gzV$"],"flashtalking-bus":["https://servedby.flashtalking.com/container/19112;123475;13379;iframe/?spotName=Desktop_Business_Billing&ftXCurrency=A&ftXName=A&ftXNumItems=A&ftXRef=A&ftXType=A&ftXValue=A&U1=A&U2=A&U3=A&U4=A&U5=A&cachebuster=","__;WyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV1bJSVdWyUlXVslJV0rKw!!N96JrnIq8IfO5w!3OqZ065GjRFlcxmjnVAQoMbP5zuw_9E57X2k7VKfgLzeMs11kSYtkrw8mpha-UtxgWP6$"],"flashtalking-first-spend-event":["https://servedby.flashtalking.com/container/19112;130299;13379;iframe/?spotName=First_Time_Spenders&U7="],"flashtalking-all-spend-event":["https://servedby.flashtalking.com/container/19112;130301;13379;iframe/?spotName=All_Spenders&U7="],"flashtalking-advertiser-rez-event":["https://servedby.flashtalking.com/container/19112;130300;13379;iframe/?spotName=Resurrected_Spenders&U7="],"flashtalking-shop-event":["https://servedby.flashtalking.com/container/19112;126331;13379;iframe/?spotName=Shopping_Advertisers&U6=&U7="],"flashtalking-catalog-feed-event":["https://servedby.flashtalking.com/container/19112;126604;13379;iframe/?spotName=Catalog_Uploads&U7="],"flashtalking-billing-complete-event":["https://servedby.flashtalking.com/container/19112;126329;13379;iframe/?spotName=Billing_Completion&U7="],"flashtalking-no-micro-catalog-feed-realtime-event":["https://servedby.flashtalking.com/container/19112;130191;13379;iframe/?spotName=No_micro_catalog_feed&U7="],"flashtalking-catalog-feed-realtime-event":["https://servedby.flashtalking.com/container/19112;130294;13379;iframe/?spotName=Catalog_Feeds&U7="],"flashtalking-catalog-feed-page-view-event":["https://servedby.flashtalking.com/container/19112;130295;13379;iframe/?spotName=Catalog_Feeds_Starting_Page_Unique_Visitors&U7="],"flashtalking-business-site-catalog-upload-click-event":["https://servedby.flashtalking.com/container/19112;130298;13379;iframe/?spotName=Catalog_Upload_Button_Click_on_Biz_Site&U7="],"flashtalking-business-site-no-micro-catalog-upload-click-event":["https://servedby.flashtalking.com/container/19112;130297;13379;iframe/?spotName=No_Micro_Catalog_Upload_Button_Click_on_Biz_Site&U7="],"flashtalking-business-site-page-view-event":["https://servedby.flashtalking.com/container/19112;130446;13379;iframe/?spotName=Biz_site_shopping_page_unique_visitors&U7="]},l=["flashtalking-d-login","flashtalking-m-login","flashtalking-d-reg","flashtalking-m-reg"],d="flashtalking-first-spend-event",c="flashtalking-all-spend-event",u="flashtalking-advertiser-rez-event",_="flashtalking-catalog-feed-event",p="flashtalking-billing-complete-event",h="flashtalking-no-micro-catalog-feed-realtime-event",m="flashtalking-catalog-feed-realtime-event",g="flashtalking-catalog-feed-page-view-event",v="flashtalking-business-site-catalog-upload-click-event",f="flashtalking-business-site-no-micro-catalog-upload-click-event",y="flashtalking-business-site-page-view-event",E=new Set([d,u,"flashtalking-shop-event",_,p,h,m,g,v,f,y,c]);function S(e,t=""){let n="";return n=E.has(e)?s[e][0]+t+"&cachebuster="+(0,r.OJ)():s[e][0]+(0,r.OJ)()+s[e][1],n}function T(e,t){a.Z.increment("flashtalking_tracking_pixel",1,{event_category:e,event_name:"All"}),"All"!==t&&a.Z.increment("flashtalking_tracking_pixel",1,{event_category:e,event_name:t})}function I(){for(const t of l){let n=(0,o.qn)(t);if(n){const a=(0,i.Z)({src:S(t),id:t,height:1,width:1,style:"display:none;"});if(!document.getElementById(t)){var e;null===(e=document.body)||void 0===e||e.appendChild(a),n=n.split("#");const[i,r]=n;T(i,r),(0,o.L_)(t)}}}}function x(e,t,n,a){function r(e,t,n,a){const r=(0,i.Z)({src:S(e,n),id:e,height:1,width:1,style:"display:none;"});var o;document.getElementById(e)||(r.setAttribute("data-test-id",a),null===(o=document.body)||void 0===o||o.appendChild(r),t(),I())}document.getElementById(e)?I():("complete"===document.readyState&&r(e,t,n,a),window.addEventListener("load",function e(t,n,i,a){return o=>{r(t,n,i,a),window.removeEventListener(o,e)}}(e,t,n,a)))}function P(e,t,n,i){l.find((t=>t===e))?(0,o.Nh)(e,`${t}#${n}`):x(e,i)}function b(e,t,n,i){return a=>{P(e,t,n,i),window.removeEventListener(a,b)}}function A(e,t,n,i){"complete"===document.readyState?P(e,t,n,i):window.addEventListener("load",b(e,t,n,i))}function w(e,t){if(!e||!t||0===Object.keys(e).length)return;const n=e[t].resurrected;if(n){const e=new Date(n),i=new Date;if((0,r.LG)(e,i)<=90){const e=i.toISOString().slice(0,10),n=(0,r.TF)(r.qs,t);x(u,(()=>{a.Z.increment("flashtalking_tracking_pixel",1,{event_category:"AdvertiserRez",event_name:"All"})}),e+"&U8="+n)}}}function R(e,t){if(!e||!t||0===Object.keys(e).length)return;const n=e[t].replaceAll("'",'"');let i="";try{const e=JSON.parse(n);if(e&&Object.keys(e).length>0){const{dt:t,merchant_id:n,feed_profile_ids:a}=e;if(t&&n&&a){i=t+"&U8="+a+"&U9="+(0,r.TF)(r.qs,n)}}}catch(o){a.Z.increment("flashtalking_tracking_pixel",1,{event_category:"CatalogFeed",event_name:"ParseErrors"})}x(_,(()=>{a.Z.increment("flashtalking_tracking_pixel",1,{event_category:"CatalogFeed",event_name:"All"})}),i)}function C(e,t){const n=(new Date).toISOString().slice(0,10),i=(0,r.TF)(r.qs,e),o=(0,r.TF)(r.qs,t);x(p,(()=>{a.Z.increment("flashtalking_tracking_pixel",1,{event_category:"Billing",event_name:"All"})}),n+"&U8="+o+"&U9="+i)}function O(e,t){const n=(new Date).toISOString().slice(0,10),i=(0,r.TF)(r.qs,e);x(m,(()=>{a.Z.increment("flashtalking_tracking_pixel",1,{event_category:"CatalogFeedRealtime",event_name:"All"})}),n+"&U8="+t+"&U9="+i,"data-source-catalog-upload-realtime-pixel")}function N(e,t){const n=(new Date).toISOString().slice(0,10),i=(0,r.TF)(r.qs,e);x(h,(()=>{a.Z.increment("flashtalking_tracking_pixel",1,{event_category:"NoMicroCatalogFeedRealtime",event_name:"All"})}),n+"&U8="+t+"&U9="+i,"data-source-no-micro-catalog-upload-realtime-pixel")}function D(e,t){if(!e)return;const n=(new Date).toISOString().slice(0,10),i=(0,r.TF)(r.qs,e),o=t?(0,r.TF)(r.qs,t):"";x(g,(()=>{a.Z.increment("flashtalking_tracking_pixel",1,{event_category:"CatalogFeedPageView",event_name:"All"})}),n+"&U8="+i+"&U9="+o,"data-source-catalog-page-view-pixel")}function k(e){const t=(new Date).toISOString().slice(0,10),n=e?(0,r.TF)(r.qs,e):"";x(d,(()=>{a.Z.increment("flashtalking_tracking_pixel",1,{event_category:"FirstSpender",event_name:"All"})}),t+"&U8="+n)}function L(e){const t=(new Date).toISOString().slice(0,10),n=e?(0,r.TF)(r.qs,e):"";x(c,(()=>{a.Z.increment("flashtalking_tracking_pixel",1,{event_category:"AllSpender",event_name:"All"})}),t+"&U8="+n)}},128315:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),a=n(898781),r=n(883119),o=n(785893);function s({children:e}){const t=(0,a.ZP)(),n=(0,i.useMemo)((()=>({ComboBox:{accessibilityClearButtonLabel:t._('Clear input', 'gestalt.comboBox.accessibilityClearButtonLabel', 'ARIA label for button to clear the current input of a combobox')},Link:{accessibilityNewTabLabel:t._('Opens a new tab', 'gestalt.linkRoleComponent.accessibilityNewTabLabel', 'Additional label text for ARIA label only active when link-type components open the url in a new tab')},Modal:{accessibilityDismissButtonLabel:t._('Close modal', 'gestalt.modal.accessibilityDismissButtonLabel', 'ARIA label for button to close the current modal')},Popover:{accessibilityDismissButtonLabel:t._('Close popover', 'gestalt.popover.accessibilityDismissButtonLabel', 'ARIA label for button to close the current popover')},OverlayPanel:{accessibilityDismissButtonLabel:t._('Close overlay panel', 'gestalt.overlaypanel.accessibilityDismissButtonLabel', 'ARIA label for button to close the current overlay panel'),dismissConfirmationMessage:t._('Are you sure you want to dismiss?', 'gestalt.sheet.dismissConfirmationMessage', 'Confirmation popover message preventing the user from unvoluntarily Sheet dismiss'),dismissConfirmationSubtext:t._('You will lose all of your changes. This cannot be undone.', 'gestalt.sheet.dismissConfirmationSubtext', 'Confirmation popover subtext preventing the user from unvoluntarily Sheet dismiss'),dismissConfirmationPrimaryActionText:t._('Yes, dismiss', 'gestalt.sheet.dismissConfirmationPrimaryActionText', 'Confirmation popover button confirming Sheet dismiss'),dismissConfirmationPrimaryActionTextLabel:t._('Yes, dismiss the overlay panel.', 'gestalt.overlaypanel.dismissConfirmationPrimaryActionTextLabel', 'Confirmation popover button accessibility label preventing OverlayPanel dismiss'),dismissConfirmationSecondaryActionText:t._('No, go back', 'gestalt.sheet.dismissConfirmationSecondaryActionText', 'Confirmation popover button preventing Sheet dismiss'),dismissConfirmationSecondaryActionTextLabel:t._('No, go back to the sheet.', 'gestalt.sheet.dismissConfirmationSecondaryActionTextLabel', 'Confirmation popover button accessibility label preventing Sheet dismiss')},Tag:{accessibilityErrorIconLabel:t._('Error', 'gestalt.tag.accessibilityErrorIconLabel', 'ARIA label for icon indicating an error state'),accessibilityRemoveIconLabel:t._('Remove tag', 'gestalt.tag.accessibilityRemoveIconLabel', 'ARIA label for icon button to remove the tag'),accessibilityWarningIconLabel:t._('Warning', 'gestalt.tag.accessibilityWarningIconLabel', 'ARIA label for icon indicating a warning state')},TextField:{accessibilityHidePasswordLabel:t._('Hide password', 'gestalt.textField.accessibilityHidePasswordLabel', 'ARIA label / tooltip text for button to hide (obfuscate) password in input field'),accessibilityShowPasswordLabel:t._('Show password', 'gestalt.textField.accessibilityShowPasswordLabel', 'ARIA label / tooltip text for button to show (de-obfuscate) password in input field')}})),[t]);return(0,o.jsx)(r.J6,{labels:n,children:e})}},373420:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var i=n(667294),a=n(124580),r=n(223815),o=n(968121),s=n(883119),l=n(785893);function d({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n,allowClickAndDrag:d,allowMediaPlay:c,allowScroll:u,children:_,closeOnOutsideClick:p,footer:h,heading:m,onDismiss:g,role:v,size:f,subHeading:y}){(0,i.useEffect)((()=>(a.Z.pause(),function(){a.Z.resume()})),[]);return(0,l.jsx)(s.mh,{zIndex:o.b7,children:(0,l.jsx)(r.Z,{allowClickAndDrag:d,allowEsc:!0,allowMediaPlay:c,allowScroll:u,children:(0,l.jsx)(s.u_,{_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n,closeOnOutsideClick:p,heading:m,footer:h,onDismiss:()=>{a.Z.resume(),g()},role:v,size:f,subHeading:y,padding:"none",children:_})})})}},430322:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var i=n(667294),a=n(124580),r=n(283698),o=n(223815),s=n(50286),l=n(898781),d=n(965900),c=n(780280),u=n(883119),_=n(968121),p=n(867820),h=n(785893);function m({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n="center",allowScroll:m=!1,children:g,closeOnOutsideClick:v=!0,footer:f,heading:y,mobileAccessibilityCloseIconLabel:E,mobileHideCloseIcon:S,mobileIsFullscreen:T,isOpen:I,mobileIsSlideUp:x,modalStyle:P,onDismiss:b,overrideZDepth:A,subHeading:w,type:R}){const C=(0,l.ZP)(),{isRTL:O}=(0,c.B)(),N=(0,i.useRef)(!1),[D,k]=(0,i.useState)(!1),{setAppFocusState:L}=(0,d.I)(),j=(0,s.ZP)();(0,i.useEffect)((()=>{(0,p.My)(`mweb_unauth.mobile_modal.${R||"unknown_type"}.did_mount.is_open.${String(!!I)}`)}),[I,R]),(0,i.useEffect)((()=>(N.current=(0,r.Z)((()=>{N.current&&k(!0)})),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&N.current&&(window.cancelAnimationFrame(N.current),N.current=null)})),[]),(0,i.useEffect)((()=>(I?(a.Z.pause(),L(!1)):(a.Z.resume(),L(!0)),()=>{I&&(a.Z.resume(),L(!0))})),[L,I]);const U=I&&!m;(0,i.useEffect)((()=>(U&&(()=>{if(document.body){const{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}})(),()=>{U&&(()=>{if(document.body){const{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}})()})),[U]);const M=(0,_.bf)();if(!I)return null;const F=x?(0,_.Vf)({isFullscreen:T,isTablet:"tablet"===j,isShowing:D,type:R}):(0,_.JN)({isFullscreen:T,isTablet:"tablet"===j,modalStyle:P,type:R});return(0,h.jsx)(o.Z,{children:(0,h.jsx)(u.mh,{children:(0,h.jsxs)(u.xu,{"aria-label":t,display:"inlineBlock",zIndex:A?new u.Ry(A):_.ZM,position:"relative",role:"dialog",children:[(0,h.jsx)(u.iP,{accessibilityLabel:C._('Mobile Signup Modal Mask', 'mweb.signup_modal.mask', 'The acessibility label for the mask of mobile signup modal'),onTap:({event:e})=>{const t=e,n=b?"with":"without",i=R||"unknown_type";(0,p.tj)(`mweb_unauth.mobile_modal.wash_tap.${i}.${n}_dismissal`,{x:t.clientX,y:t.clientY}),v&&b&&b()},tapStyle:"none",children:(0,h.jsx)(u.xu,{position:"fixed",top:!0,left:!0,dangerouslySetInlineStyle:M})}),(0,h.jsxs)(u.xu,{position:"fixed",color:"default",dangerouslySetInlineStyle:F,children:[(0,h.jsxs)(u.kC,{alignItems:"center",justifyContent:"start",width:"100%",gap:{row:2,column:0},children:[E&&!S?(0,h.jsx)(u.xu,{padding:2,"data-test-id":"mobile-modal-cancel-button",children:(0,h.jsx)(u.hU,{accessibilityLabel:E,iconColor:"darkGray",icon:"cancel",onClick:b,padding:4,size:"sm"})}):null,y?(0,h.jsx)(u.kC.Item,{flex:"grow",children:(0,h.jsx)(u.kC,{direction:"column",alignItems:"center",justifyContent:"center",children:(0,h.jsxs)(u.xu,{dangerouslySetInlineStyle:E&&!S?(0,_.ju)(O):{__style:{}},children:[T?y:(0,h.jsx)(u.xv,{align:n,weight:"bold",size:"400",children:y}),w?(0,h.jsx)(u.xv,{align:n,children:w}):null]})})}):null]}),(0,h.jsxs)(u.xu,{overflow:e?"visible":"auto",children:[g,f]})]})]})})})}},560352:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294),a=n(50286),r=n(121151);function o(){const e=(0,a.ZP)();(0,i.useEffect)((()=>{"desktop"===e?r.bN.preload():r.p4.preload()}),[e])}},934494:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(995228),a=n(785893);function r({useGraphQLAdapter:e,useLegacyAdapter:t}){const n=({children:t,data:n})=>t({enabled:!0,data:e(n)}),r=({children:e,data:n})=>e({enabled:!1,data:t(n)});return function({children:e,input:t}){const o=t.enabled?(0,a.jsx)(n,{data:t.data,children:e}):(0,a.jsx)(r,{data:t.data,children:e});return t.suspense?(0,a.jsx)(i.Z,{fallback:t.suspense.fallback,children:o}):o}}},959698:(e,t,n)=>{n.d(t,{Nq:()=>o,aK:()=>l,as:()=>r,pl:()=>a});var i=n(412067);const a="GUIDANCE_FETCH_RECOMMENDATION_DATA_START",r="GUIDANCE_FETCH_RECOMMENDATION_DATA_SUCCESS",o="GUIDANCE_FETCH_RECOMMENDATION_DATA_FAILURE";function s(e){return{type:r,payload:{data:e,error:null,isLoading:!1,isLoaded:!0}}}function l(e){const{advertiser_id:t}=e;return async n=>{try{if(n(function(e){return{type:a,payload:{error:null,isLoading:!0,lastCallParams:e}}}(e)),t){const a="/ads/v4/notification_messages/RECOMMENDATIONS/",r=i.Z.create("ApiResource",{url:a,data:{...e,recipient_id:t,recipient_type:"ADVERTISER"}}),o=await r.callGet();n(s(o.resource_response.data))}else n(s([]))}catch(r){n({type:o,payload:{data:[],error:r,isLoading:!1}})}}}},811859:(e,t,n)=>{n.d(t,{H:()=>i,Z:()=>a});const i=Object.freeze({sha1:"SHA-1",sha256:"SHA-256",sha384:"SHA-384",sha512:"SHA-512"});async function a(e,t){try{if("undefined"==typeof TextEncoder)return"";if(!Object.values(i).includes(e))return"";const n=(new TextEncoder).encode(t),a=await window.crypto.subtle.digest(e,n),r=Array.from(new Uint8Array(a));return r.map((e=>e.toString(16).padStart(2,"0"))).join("")}catch(n){return""}}},538128:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(667294),a=n(854750),r=n(128315),o=n(240684),s=n(100925),l=n(898781),d=n(773285),c=n(785893);const u=o.ZP.lib({resolved:{},chunkName:e=>`locale-${e.locale}-lite-js`.replace(/[^a-zA-Z0-9_!§$()=\-^°]+/g,"-"),isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:e=>n(727345)(`./${e.locale}/lite.js`),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(e){return n(734521).resolve(`./${e.locale}/lite.js`)}}),_=o.ZP.lib({resolved:{},chunkName:e=>`locale-${e.locale}-inlined-js`.replace(/[^a-zA-Z0-9_!§$()=\-^°]+/g,"-"),isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:e=>n(353576)(`./${e.locale}/inlined.js`),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(e){return n(500016).resolve(`./${e.locale}/inlined.js`)}});function p({children:e,locale:t}){const n=(0,a.Z)(t),i=t.split("-").join("_");let r=u;return n&&(r=_),(0,c.jsx)(r,{locale:i,children:e})}function h({children:e,copytuneExperiments:t,enableInContextTranslation:a,locale:o}){const[u,_]=(0,i.useState)(),h=(0,d.F)();return(0,i.useEffect)((()=>{a&&(async()=>{const e=(await n.e(98022).then(n.bind(n,398022))).default;_(new e("webapp"))})()}),[a]),(0,c.jsx)(p,{locale:o,children:n=>{const i=(0,s.Z)(o,{...n,copytuneExperiments:t,experimentsClient:h,inContextTranslationWebapp:u});return(0,c.jsx)(l.q6,{value:i,children:(0,c.jsx)(r.Z,{children:e})})}})}},100925:(e,t,n)=>{n.d(t,{Z:()=>T});var i=n(460200);const a="string_usage_logger.exceptions";let r=[],o=null;function s(e){try{n(172071).Z.increment(e)}catch(t){}}function l(){r=[],clearTimeout(o),o=null}function d(){if(!r.length)return;const e=[...r];l();try{const t=3,i=1e3;(()=>{const{default:a}=n(422722);a.logToServer(a.SERVER_LOG_TYPE.STRING_USAGE,a.HTTP_METHOD.POST,e,t,i)})()}catch(t){s(a)}}function c(e){r.push(e),o||(o=setTimeout(d.bind(this),1e4))}function u(e,t,n,r,o,l,d,u=1e-4){setTimeout((()=>{try{if(!function(e){return Math.random(){const t=a.translations[e];if(t){const t=a.triggerable[e];t&&(null==r||r.checkExperiment(t))}return t}:null,getDeltaTranslation:a?e=>a.deltas?a.deltas[e]:null:null},l={_:(e,t="",n="",i)=>S(s,e,t,n,i),bt:(e,t,n,i,a)=>E(s,e,t,n,i,a),nbt:(e,t,n,i)=>function(e,t,n,i,a){var r;const{localeCode:o,pluralFunction:s}=e,l=+(s||(e=>1!==e))(n),d="en-US"===o&&1===l?t[1]:t[0];return E(e,null!==(r=t[l])&&void 0!==r?r:t[0],d,i,l,a)}(s,e,t,n,i),ngettext:(e,t,n,i,a)=>function(e,t,n,i,a,r){const{localeCode:o,pluralFunction:s}=e,l=+(s||(e=>1!==e))(i);return S(e,"en-US"===o&&1===l?n:t,a,r,l)}(s,e,t,n,i,a),getLocaleData:()=>o,getPluralFunction:(t=e)=>o[t]&&o[t].plural?o[t].plural:function(e){return 1!==e}},d={defaultErrorMessage:l._('Sorry! Something went wrong on our end!', ' - ', ' -- '),asciiPasswordError:l._('Oops! Your password can only have letters, numbers and basic symbols.', ' - ', ' -- ')};return{...l,commonStrings:d}}},166300:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(50286),a=n(883119),r=n(444445),o=n(134879),s=n(785893);const l=({children:e,roundedForLargeDevice:t})=>{const n="phone"!==(0,i.ZP)()&&t;return(0,o.V)()?(0,s.jsx)(a.xu,{marginStart:-r.D6,marginEnd:-r.D6,rounding:n?6:void 0,overflow:n?"hidden":void 0,children:(0,s.jsx)(o.C,{value:!1,children:e})}):e}},539278:(e,t,n)=>{n.d(t,{Di:()=>_,Jl:()=>d,R:()=>c,ZP:()=>v,aU:()=>p,j2:()=>u,pN:()=>h,rL:()=>f,vW:()=>g});var i=n(116303),a=n(499128),r=n(349700),o=n(826067),s=n(883119),l=n(785893);const d=7e3,c="permanent_account_closure",u="account_deletion_email_sent",_="account_deactivated",p="unlink_successful",h="account_switch_to_settings";function m(e,t,n){return(0,l.jsx)(s.xv,{align:n||"center",children:(0,r.nk)(e,{username:(0,l.jsx)(s.xv,{inline:!0,weight:"bold",children:t})})})}function g({i18n:e,message:t,multipleAccounts:n,username:i=""}){switch(t){case c:return e._('Your account has been deleted. We\'re sad to see you go', 'unauthLoginPage.accountDeletedToast.message', 'Confirmation message after a user has successfully deleted their account');case u:return m(n?e._('An email has been sent with final steps to delete your account, {{username}} and its linked accounts', 'accountDeletedEmailToast.message.multipleAccounts', 'Confirmation message after a user has successfully requested multiple accounts deletion'):e._('An email has been sent with final steps to delete your account, {{username}}', 'accountDeletedEmailToast.message.singleAccount', 'Confirmation message after a user has successfully requested a single account deletion'),i);case _:return m(n?e._('The account, {{username}}, and its associated linked accounts have been deactivated', 'unauthLoginPage.deactivatedToast.message.multipleAccounts', 'Confirmation message after a user has successfully deactivated multiple accounts'):e._('The account, {{username}}, has been deactivated', 'unauthLoginPage.deactivatedToast.message.singleAccount', 'Confirmation message after a user has successfully deactivated a single account'),i);case p:return m(e._('Success! You\'ve unlinked this business account. You are currently in {{username}}.', 'authHomeFeedPage.unlinkAccountToast.message', 'Confirmation message after a user has successfully unlinked business account'),i,"start");case h:return m(e._('You\'ve switched into and are currently in the account {{username}}', 'accountSettings.switchAccountToAccountChanges', 'Confirmation message after a user has successfully switched accounts and got redirected to Account Changes'),i,"start");default:return""}}function v(e,t,n=""){if(!t||!t.search)return"";const i=(0,o.mB)(t.search).message,a=(0,o.mB)(t.search).username||n;return g({i18n:e,message:i,multipleAccounts:"true"===(0,o.mB)(t.search).multiple_accounts,username:a})}function f({showOneToast:e,i18n:t,location:n,history:r,username:s,fullName:c,avatarUrl:u}){if(!n||!n.search)return;const _=v(t,n,s||""),m=(0,o.mB)(n.search).message,g=m===h||m===p;_&&(e((({hideToast:e})=>(0,l.jsx)(a.ZP,{duration:d,onHide:e,text:_,iconThumbnail:g?(0,l.jsx)(i.Z,{name:c||"",src:u||"",size:"md"}):null}))),r.replace(n.hash?`${n.pathname}${n.hash}`:n.pathname))}},627995:(e,t,n)=>{n.d(t,{Z:()=>c});var i=n(927104),a=n(898781),r=n(903095),o=n(112690),s=n(883119),l=n(785893);const d=(e,t)=>{let n={};if(e){const{pinData:i,viewData:a}=e;n={unauth_click_pin_id:i.id,unauth_click_pin_image_signature:i.imageSignature},3===t?n={...n,unauth_page_pin_id:a.id,unauth_page_pin_image_signature:a.imageSignature}:5===t&&(n={...n,unauth_page_board_id:a.id})}return n},c=({clickLoggingOptions:e,domain:t,link:n,onClick:c})=>{var u;const _=null===(u=(0,r.lO)())||void 0===u?void 0:u.logging,p=(0,a.ZP)(),h=(0,o.Z)(),m=()=>[{event_type:8948},{event_type:12},{event_type:101,element:0,aux_data:d(e.unauthRankingLoggingData,null==_?void 0:_.viewType)}].map((t=>({component:0,element:162,view_type:null==_?void 0:_.viewType,view_parameter:null==_?void 0:_.viewParameter,aux_data:e.auxData,object_id_str:e.auxData.objectId,...t})));return(0,l.jsx)(s.iP,{onTap:({event:e})=>{e.stopPropagation(),m().forEach((e=>h(e))),c(e)},children:(0,l.jsxs)(s.xu,{marginBottom:4,marginStart:4,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",left:!0,bottom:!0,children:[(0,l.jsx)(s.xu,{marginEnd:1,children:(0,l.jsx)(s.JO,{size:9,icon:"arrow-up-right",color:"light",accessibilityLabel:p._('Link', 'unauth.pin.domain.link', 'Link to take them to the source of the iamge')})}),(0,l.jsx)("a",{href:n,onClick:e=>{e.stopPropagation(),m().forEach((e=>h(e))),c(e)},rel:"nofollow noopener noreferrer",target:"_blank",type:"button",children:(0,l.jsx)(s.xv,{size:"200",inline:!0,weight:"bold",lineClamp:1,color:"inverse",children:(0,i.Z)(t,27)})})]})})}},958007:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(992750);const a=e=>(e||"").trim().replace(/\s+/g," "),r=({storyPinDataId:e,pinDescription:t,richMetadataDescription:n,richSummaryDisplayName:r,placeSummaryName:o,closeupDescription:s,closeupUnifiedDescription:l})=>!!e?a(t):a((0,i.eK)({richMetadataDescription:n,richSummaryDisplayName:r,placeSummaryName:o,closeupUnifiedDescription:l}).description)||a(l||"")||a(s)||a(t)||a(n)||""},992750:(e,t,n)=>{n.d(t,{hP:()=>u,fs:()=>l,eK:()=>d,Ly:()=>c,BY:()=>_,bN:()=>p,RC:()=>o,EU:()=>s});const i=/\s\s+/g,a=e=>e.replace(i," ");var r=n(883561);const o=({storyPinDataMetadataPinTitle:e,pinTitle:t})=>e||t,s=(e,t)=>e?e.trim().length>t?(0,r.ZP)(e.trim(),t).trim():e.trim():"",l=({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:a,storyPinDataMetadataPinTitle:r,placeSummaryName:o})=>{const l=r||e,d=s(t,200);return d||(n||(o||(i||(a&&l?l:null))))},d=e=>{const{richSummaryDisplayName:t,placeSummaryName:n}=e,i=e.pinJoinVisualAnnotation||[],o=e.pinJoinAnnotationsWithLinks||{},s=e.richMetadataDescription||"",l=e.closeupUnifiedDescription||"",d=i.map((e=>(o||{})[e]||{name:e,url:""}));let c="";const u=(({richSummaryDisplayName:e,placeSummaryName:t})=>e||t||"")({richSummaryDisplayName:t,placeSummaryName:n}).toLocaleLowerCase().trim(),_=s.toLocaleLowerCase().trim(),p=l.toLocaleLowerCase().trim();return l&&l.length>3&&p!==u?c=l:s&&s.length>3&&_!==u&&(c=s),c&&(c=a((0,r.ZP)(c,496)).trim()),{description:c,annotationsWithLinks:d}},c=({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:a,storyPinDataMetadataPinTitle:r,placeSummaryName:o,pinJoinVisualAnnotation:s,pinJoinAnnotationsWithLinks:c})=>{const{annotationsWithLinks:u}=d({pinJoinVisualAnnotation:s,pinJoinAnnotationsWithLinks:c}),_=(u||[]).map((e=>e.name)),p=e=>(e||[])[0]||null;return l({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:a,storyPinDataMetadataPinTitle:r,placeSummaryName:o})||p(s)||p(_)||e},u=(e,t,n,i)=>{var a;let r=(a=e,"string"==typeof a?a:"").trim();return n?(i&&i.trim().length&&(r=i),n.length>0&&(r&&(r+=" "),r+=n.join(", ")),r):i&&i.trim().length?i:r},_=e=>`/pin/${e}/`,p=({pinId:e,seoUrl:t})=>t&&"string"==typeof t?t:_(e)},299295:(e,t,n)=>{n.d(t,{$4:()=>O,$K:()=>w,AQ:()=>V,Bj:()=>v,DB:()=>W,FH:()=>se,FM:()=>J,G9:()=>j,GX:()=>g,Hy:()=>ce,JO:()=>D,Ke:()=>N,LM:()=>a,Lc:()=>pe,Lr:()=>de,MN:()=>y,Mn:()=>Q,NB:()=>te,P0:()=>ne,P9:()=>oe,Pn:()=>E,TK:()=>T,TZ:()=>A,UU:()=>u,Uw:()=>$,VP:()=>_e,W_:()=>le,XB:()=>l,Xy:()=>R,YM:()=>I,aD:()=>he,aj:()=>G,bA:()=>L,bo:()=>d,dS:()=>P,eZ:()=>h,fk:()=>ae,g1:()=>ue,gU:()=>c,hH:()=>F,i2:()=>_,iR:()=>U,jh:()=>me,km:()=>p,lx:()=>k,mr:()=>K,mt:()=>Z,n_:()=>B,np:()=>H,of:()=>i,q:()=>ve,qY:()=>x,qm:()=>re,rc:()=>X,ro:()=>ge,sD:()=>o,sG:()=>m,u1:()=>q,uR:()=>s,v5:()=>r,v9:()=>Y,vk:()=>ee,wj:()=>S,x1:()=>M,yC:()=>f,yI:()=>C,yX:()=>b,yb:()=>z,zr:()=>ie});const i=880,a=340,r=380,o=510,s=40,l=20,d=4,c=474,u=134,_=96,p=800,h=186,m=40,g=10,v=88,f=183,y=130,E=24,S=400,T=50,I=8,x=8,P=5,b=20,A=13,w=29,R=5,C=20,O=C**2,N=100,D=500,k=500,L=40,j=100,U=5,M=["attempted","publishing","succeeded","uploading"],F={carousel:[{w:2,h:3},{w:3,h:4},{w:1,h:1}],single:[{w:2,h:3},{w:3,h:4},{w:1,h:1}],story:[{w:9,h:16}],storyFARPortrait:[{w:1,h:2},{w:9,h:16},{w:2,h:3},{w:3,h:4},{w:4,h:5},{w:1,h:1}],storyFARLandscape:[{w:2,h:1},{w:16,h:9},{w:3,h:2},{w:4,h:3},{w:5,h:4},{w:1,h:1}]},B=["tl","tc","tr","bl","bc","br"],G=["left","center"],z=["top","center","bottom"],H=["none","uppercase"],Z=["sm","md","lg"],V=[1,.75],W=198,K=132,Y=1,q=56,$=240,X="cubic-bezier(0.66, 0.025, 0.33, 0.975)",J=1e3,Q=1500,ee=2,te=3,ne=20,ie=20,ae=2,re=["processing","publishing","saving"],oe=60.5,se=120.5,le=1,de=104857600,ce=2500,ue=3,_e=5e3,pe="pin-builder-default-education-id",he="pin-builder-default-tour-id",me="pin-builder-editing-tour-id",ge="save_from_url",ve=["processing","edited","saving","saved"]},283943:(e,t,n)=>{n.d(t,{aU:()=>s,hq:()=>o,o_:()=>a});var i=n(425288);const{Provider:a,useHook:r}=(0,i.Z)("AuthenticationContext");function o(){return r().loginContext}function s(){return r().logout}},524172:(e,t,n)=>{n.d(t,{M:()=>p,Z:()=>h});var i=n(667294),a=n(914772),r=n(366284),o=n(773285),s=n(50286),l=n(780280),d=n(425288),c=n(83969),u=n(785893);const{Provider:_,useMaybeHook:p}=(0,d.Z)("GoogleSignInApi");function h({children:e}){const t=(()=>{const e=(0,s.HG)(),{checkExperiment:t}=(0,o.F)();return t(e?"web_google_disabled":"mweb_google_disabled").anyEnabled})(),n=(()=>{const{userAgent:e}=(0,l.B)(),{browserName:t,platform:n}=e,i=null!=t?t:"";return(0,r.G6)(i)||"ios"===n})(),d=(0,i.useRef)(null),p=(0,i.useRef)(new Set),h=(0,i.useRef)(new Set),m=(0,i.useRef)(null),g=(0,i.useRef)(!1),v=(0,i.useCallback)((()=>{if(g.current)return;g.current=!0;let e=!1;const t=()=>{const t=(0,c.Fm)();t&&(e||(e=!0,(0,a.Z)({type:"loadScript",status:"success"}),(0,a.Z)({type:"apiClient",valid:!!t}),m.current=t,(0,c.OY)({autoSelect:!0,itpSupport:n},(e=>{if((0,a.Z)({type:"response",valid:!!e}),!e)return;if("SIGN_IN_WITH_GOOGLE_BUTTON"===(0,c.PL)(e.select_by)){const t=Array.from(p.current),n=t[t.length-1],i=d.current;n?n(e):i&&i(e)}else{var t;null===(t=d.current)||void 0===t||t.call(d,e)}})),h.current.forEach((e=>{e()})),h.current.clear()))};window.onGoogleLibraryLoad=()=>t(),(0,a.Z)({type:"loadScript",status:"start"}),(0,c.Px)().then((()=>{t()})).catch((()=>{}))}),[n]);(0,i.useEffect)((()=>{t?(p.current.clear(),h.current.clear()):v()}),[t,v]);const f=(0,i.useRef)({ensureInit:(e,t)=>(v(),"button"===e?p.current.add(t):d.current=t,new Promise((e=>{!!m.current?e():h.current.add(e)}))),removeButtonCallback:e=>{p.current.delete(e)}});return(0,u.jsx)(_,{value:f.current,children:e})}},7893:(e,t,n)=>{n.d(t,{Kw:()=>s,RD:()=>l,dD:()=>c});var i=n(412067),a=n(189734),r=n.n(a),o=n(884732);const s=async()=>{var e,t;return(null===(e=(await i.Z.create("UserSessionResource",{session_accounts:!0}).callCreate()).resource_response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.session_accounts)||{}},l=(e,t)=>{let n=Object.freeze({});try{n=(0,o.rl)()}catch(r){e(`${t}.removeAccountDataFromLocalStorage.jsonParseFailed`)}const i=Object.keys(n);if(e(`${t}.removeAccountDataFromLocalStorage.start`),0===i.length||n[i[0]].logged_in)return void e(`${t}.removeAccountDataFromLocalStorage.early_return`);const a=i.reduce(((e,t)=>({...e,[t]:{logged_in:!0}})),Object.freeze({}));(0,o.r8)(a),e(`${t}.removeAccountDataFromLocalStorage.updated`)};const d=e=>{var t,n,i,a;return{id:e.id,username:e.username,email:e.email,fullName:e.full_name,imageMediumUrl:e.image_medium_url,imageLargeUrl:e.image_large_url||"",owners:e.owners||null,partner:e.partner?{bizContactEmail:(null===(t=e.partner)||void 0===t?void 0:t.contact_email)||"",bizOwnershipEmail:(null===(n=e.partner)||void 0===n?void 0:n.biz_ownership_email)||e.email||"",businessName:null===(i=e.partner)||void 0===i?void 0:i.business_name,isLinkedBusiness:null===(a=e.partner)||void 0===a?void 0:a.is_linked_business}:null,businesses:((null==e?void 0:e.businesses)||[]).map((t=>{var n,i,a,r;return{...d(t),partner:{bizContactEmail:(null===(n=t.partner)||void 0===n?void 0:n.contact_email)||"",bizOwnershipEmail:(null===(i=t.partner)||void 0===i?void 0:i.biz_ownership_email)||e.email||"",businessName:null===(a=t.partner)||void 0===a?void 0:a.business_name,isLinkedBusiness:null===(r=t.partner)||void 0===r?void 0:r.is_linked_business}}}))}},c=async e=>{var t;const n=await s(),a=e.id;n[a]||(n[a]={logged_in:!0});const o=Object.keys(n||{}),l=i.Z.create("MultiUserResource",{ids:o,fieldSetKey:"linked_partner"}),c=null===(t=(await l.callGet()).resource_response)||void 0===t?void 0:t.data;if(c&&Object.keys(c).length>0){return function(e){const t=e.every((e=>Boolean(e.fullName)));return r()(e,[t?"fullName":"username"])}(Object.keys(c).filter((e=>"success"===c[e].status)).map((e=>d(c[e].data))))}return[]}},807998:(e,t,n)=>{n.d(t,{Z:()=>i});const i=["https://www.pinterest.info","https://www.pinterest.at","https://www.pinterest.com.au","https://www.pinterest.ca","https://www.pinterest.ch","https://www.pinterest.cl","https://www.pinterest.de","https://www.pinterest.dk","https://www.pinterest.es","https://www.pinterest.fr","https://www.pinterest.co.uk","https://www.pinterest.ie","https://www.pinterest.it","https://www.pinterest.jp","https://www.pinterest.co.kr","https://www.pinterest.com.mx","https://www.pinterest.nz","https://www.pinterest.se","https://www.pinterest.ph","https://www.pinterest.pt","https://www.pinterest.ru"]},467570:(e,t,n)=>{n.d(t,{$:()=>d,GH:()=>l,JF:()=>g,Jb:()=>p,MI:()=>m,sl:()=>u,we:()=>_});var i=n(935879),a=n(713930),r=n(816068),o=n(412067),s=n(867820);const l="274266067164",d=["public_profile","email","user_birthday","user_friends"],c=["picture.type(large)","id","first_name","last_name","email","gender","birthday"],u=e=>{e&&(0,s.dy)({event:"load_script_success",provider:"facebook"}),"undefined"!=typeof window&&window.FB?(e&&(0,s.dy)({event:"initialize_library",provider:"facebook"}),window.FB.init({appId:l,status:!0,xfbml:!0,version:"v2.7"})):e&&(0,s.dy)({event:"global_object_not_found",provider:"facebook"})},_=(e,t)=>{t&&(0,s.dy)({event:"load_script_start",provider:"facebook"});return(0,a.Z)((0,i.Z)(e),"FACEBOOK").then((()=>u(t)))},p=()=>new Promise((e=>{"undefined"!=typeof window&&window.FB&&window.FB.getLoginStatus(e)})),h=({userID:e,accessToken:t,data:{birthday:n,email:i,first_name:a,gender:o,last_name:s,picture:l}})=>({type:"facebook",facebook_id:e,facebook_token:t,birthday:n?(0,r.Z)(n):void 0,email:i,first_name:a,gender:o,image_url:l&&!l.data.is_silhouette?l.data.url:void 0,last_name:s});async function m(e){var t;const n=(null===(t=(await o.Z.create("ApiResource",{url:"/v3/facebook/profile_data/",data:{access_token:e,pii_safe_birthday:!0,fields:c.join(",")}}).callCreate()).resource_response)||void 0===t?void 0:t.data)||{};return{access_token:e,birthday:n.birthday,email:n.email,first_name:n.first_name,gender:n.gender,id:n.id,last_name:n.last_name,picture:n.picture}}const g=()=>new Promise((e=>{window.FB.login(e,{scope:d.join(",")})})).then((e=>((e,t)=>new Promise(((n,i)=>{if("connected"!==e.status)return void i({status:e.status||"unknown"});const{userID:a,accessToken:r}=e.authResponse;m(r).then((e=>{n({creds:{facebook_id:a,facebook_token:r,facebook_autologin:(null==t?void 0:t.autologin)||!1},signupOptions:h({userID:a,accessToken:r,data:e})})}),i)})))(e)))},290148:(e,t,n)=>{n.d(t,{Ny:()=>u,ZP:()=>p,eD:()=>m,lp:()=>h});var i=n(794230),a=n(704115),r=n(78714),o=n(957161),s=n(432300),l=n(966113),d=n(696157),c=n(867820);const u=Object.freeze({SOFT_BANNED:0,RATE_LIMITED:1,LOGIN_ASSISTANCE:2,PASSWORD_RESET_SENT:3,PREVENT_FACEBOOK_REGISTER:4,PREVENT_GOOGLE_REGISTER:5,SUSPENDED:6});class _{static defaultLoginRedirectUrl(){return window.location.pathname===l.lf||window.location.pathname===l.ZE||window.location.pathname.startsWith(l.rO)?"/":window.location.pathname+window.location.search}static defaultSocialLoginRedirectUrl(){return window.location.pathname.startsWith(l.rO)?"/":window.location.pathname}static isExceedRecaptchaLocalLimit(){const e=o.Z.getItem(d.kl);if(e&&e.indexOf("|")>-1){const t=e.split("|");return 3===t.length&&(new Date).getTime()/1e3-parseInt(t[0],10)<=3600}return!1}static updateRecaptchaTimeStamp(){const e=o.Z.getItem(d.kl);let t=[];e&&(t=e.split("|"),3===t.length&&t.shift());const n=((new Date).getTime()/1e3).toString();t.push(n);const i=t.join("|");o.Z.setItem(d.kl,i)}static isFullyLoggedIn(e,t){return e&&t===s.Z.DEFAULT}static handleRedirect(e){if(!e){e="/";const t=(0,a.Z)();if(t){const n=t.next;n&&(e=n,delete t.next),e=(0,i.Z)(e,t)}}(0,r.Z)(e)}static handleRedirectWithFallbackWindowLocation(){this.handleRedirect(this.defaultLoginRedirectUrl())}static handleSignupRedirect(e,t){o.Z.setItem(d.F6,Date.now()),!t&&e&&"/"!==e?_.handleRedirect(e):_.handleRedirect("/")}static storeLoginCredentialsToBrowser(e){const t=window.navigator.credentials;if(t&&e.username_or_email)try{const n=new window.PasswordCredential({id:e.username_or_email,password:e.password});t.store(n).then((()=>{(0,c.My)("navigatorCredentials.store.success")}))}catch(n){(0,c.My)("navigatorCredentials.store.error")}}static handleLoginMfa(e,t,n){(0,c.My)("multi_step_login"),_.storeLoginCredentialsToBrowser(e),n?n(e,t):(0,c.My)("unauth.login.error.CLIENT_ERROR.null_mfa_handler")}}const p=_;function h(e){return e.facebook_id?"facebook":e.google_open_id_token?"google_one_tap":e.line_id_token?"line":e.username_or_email?"email":"other"}function m(e){return e.mfa_token?"mfa_token":e.mfa_resend?"mfa_resend":h(e)}},884732:(e,t,n)=>{n.d(t,{M3:()=>d,PE:()=>o,Q:()=>c,lv:()=>s,r8:()=>r,rl:()=>a,yW:()=>l});var i=n(844974);const a=()=>{try{const e=(0,i.qn)("MULTIPLE_ACCOUNTS");return e?JSON.parse(e):Object.freeze({})}catch(e){return Object.freeze({})}},r=e=>(0,i.Nh)("MULTIPLE_ACCOUNTS",JSON.stringify(e)),o=()=>!!(0,i.qn)("MULTIPLE_ACCOUNTS"),s=()=>Object.keys(a()).length,l=()=>{try{const e=(0,i.qn)("MULTIPLE_ACCOUNTS_GROUP");return e?JSON.parse(e):null}catch(e){return null}},d=e=>(0,i.Nh)("MULTIPLE_ACCOUNTS_GROUP",JSON.stringify(e)),c=()=>({multipleAccountMap:a(),multipleAccountGroupId:l()})},45169:(e,t,n)=>{n.d(t,{E_:()=>l,Eh:()=>r,du:()=>s,yV:()=>o});var i=n(109322),a=n(116485);const r=(e,t)=>"DEPRECATED_CHECK_EXISTS"===t?("facebook_id"in e?"facebook":"google_open_id_token"in e&&"google")||"line_id_token"in e&&"line"||"email":"DEPRECATED_CHECK_TRUTHY"===t?e.facebook_id?"facebook":e.google_open_id_token?"google":e.line_id_token?"line":"email":e.type,o=e=>{const t=r(e,"DEPRECATED_CHECK_TRUTHY");return"google"===t?"google_one_tap":t},s=e=>a.rT.includes(e)||a.ZR.has(e)||((e="")=>e in i.i5)(e),l={GOOGLE:"g",FACEBOOK:"fb",PINTEREST:"p",APPLE:"apl",LINE:"ln",UNKNOWN:"unk"}},914772:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(701563),a=n(867820);const r=e=>(0,a.dy)({event:e,provider:"google"}),o=e=>(0,i.RP)("google_autologin",e),s=e=>(0,i.M3)("google_autologin",e),l=e=>{switch(e.type){case"loadScript":"start"===e.status?(r("start"),r("load_script_start"),s("autoLoginGoogleStart")):"success"===e.status?r("load_script_success"):r("load_script_failure");break;case"apiClient":e.valid?(r("initialize_library"),s("autoLoginGoogleInitEnd")):(o("noAccountFound"),r("global_object_not_found"));break;case"response":e.valid?r("receive_credential_response_from_provider"):o("noResponse");break;case"autologin":"start"===e.status?(r("pinterest_login_start"),(0,a.NC)("press_google_one_tap_other"),(0,i.M3)("google_autologin","autoLoginGoogleEnd"),(0,i.PA)("google_autologin")):"success"===e.status?(r("pinterest_login_success"),r("end")):(r("pinterest_login_failure"),r("end"));break;case"manualLoginAttempt":(0,a.NC)(e.fromConnectButton?"press_google_one_tap_button":"press_google_one_tap"),(0,i.PA)("google_autologin")}}},231308:(e,t,n)=>{n.d(t,{Z:()=>l});const i=e=>e.startsWith("enabled")||e.startsWith("employee");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}var r=n(479218),o=n(412067);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 l extends class{constructor(e={},t={},n=!1){a(this,"useBatching",!1),a(this,"flush",(()=>{})),a(this,"_markExperimentAsActivated",(e=>{})),a(this,"checkExperiment",((e,t)=>{var n;null!=t&&t.dangerouslySkipActivation||this._markExperimentAsActivated(e);const a=(null!==(n=this.active[e])&&void 0!==n?n:this.triggerable[e])||"";return{anyEnabled:i(a),group:a}})),this.active=e,this.triggerable=t,this.useBatching=n}}{constructor(...e){super(...e),s(this,"_markExperimentAsActivated",(e=>{let t=this.active[e];if(void 0===t&&(t=this.triggerable[e],void 0!==t)){this.active[e]=t;const n={experiment_name:e,...t?{experiment_group:t}:Object.freeze({})};this.useBatching?(this._queuedResource||(this._queuedResource=new r.Z("ActivateExperimentResource",(e=>({experiments:e})))),this._queuedResource.enqueue(n)):o.Z.create("ActivateExperimentResource",n).callCreate({showError:!1})}})),s(this,"flush",(()=>{this._queuedResource&&this._queuedResource.flush()}))}}},125203:(e,t,n)=>{n.d(t,{Z:()=>i});const i=n(231308).Z},383690:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(667294),a=n(773285);const r=()=>{const e=(0,a.F)();return(0,i.useCallback)((()=>{e.flush()}),[e])}},460200:(e,t,n)=>{n.d(t,{Z:()=>i});const i=new class{getTextUnitName(e,t,n,i,a=!1){let r=e;return t&&(a&&(t=t.replace(/"/g,'\\"')),r=r+" --- "+t),null!==n&&n>=0&&(r=r+" _"+this.poPluralFormToCLDRForm(n,i)),r}poPluralFormToCLDRForm(e,t){return({"cs-CZ":{0:"one",1:"few",2:"other"},"ja-JP":{0:"other"},"ko-KR":{0:"other"},"pl-PL":{0:"one",1:"few",2:"many"},"ro-RO":{0:"one",1:"few",2:"other"},"ru-RU":{0:"one",1:"few",2:"many"},"sk-SK":{0:"one",1:"few",2:"other"},"uk-UA":{0:"one",1:"few",2:"many"},"vi-VN":{0:"other"},"id-ID":{0:"other"},"th-TH":{0:"other"},"ms-MY":{0:"other"},"zh-CN":{0:"other"},"zh-TW":{0:"other"},"he-IL":{0:"one",1:"two",2:"many",3:"other"},"ar-SA":{0:"zero",1:"one",2:"two",3:"few",4:"many",5:"other"},"hr-HR":{0:"one",1:"few",2:"other"}}[t]||{0:"one",1:"other"})[e]||"other"}}},247756:(e,t,n)=>{function i(e){const t=document.createElement("iframe");for(const n in e)t.setAttribute(n,e[n]);return t}n.d(t,{Z:()=>i})},330102:(e,t,n)=>{n.d(t,{Dq:()=>h,JB:()=>U,LG:()=>w,OJ:()=>P,PN:()=>O,TF:()=>A,VL:()=>C,YJ:()=>N,dO:()=>L,ko:()=>j,qs:()=>b,xA:()=>m});var i=n(411938),a=n(172071),r=n(549872),o=n(887432),s=n(517490),l=n(675149),d=n(161164),c=n(844974),u=n(3223);const _="dpm_pixel_login_event",p="dpm_pixel_new_user_event",h="dpm_pixel_rez_user_event",m="dpm_engaged_session_event",g="dentsu_pixel_login_event",v="dentsu_pixel_new_user_event",f="web_login",y="web_new_user",E={dpm_pixel_login_event:f,dentsu_pixel_login_event:f,dpm_pixel_new_user_event:y,dentsu_pixel_new_user_event:y,dpm_pixel_rez_user_event:"web_resurrections",dpm_engaged_session_event:"engaged_session"},S={NewUsers:{Admo:{Mobile:l.J3,Desktop:l.Y7},Flashtalking:{Mobile:"flashtalking-m-reg",Desktop:"flashtalking-d-reg"},Dentsu:{Mobile:v,Desktop:v},DPM:{Mobile:p,Desktop:p}},Logins:{Admo:{Mobile:l.gC,Desktop:l.bJ},Flashtalking:{Mobile:"flashtalking-m-login",Desktop:"flashtalking-d-login"},Dentsu:{Mobile:g,Desktop:g},DPM:{Mobile:_,Desktop:_}}},T={dpm:[_,p,h],dentsu:[g,v]},I=s.g;function x(e,t,n){a.Z.increment(`${e}_tracking_pixel`,1,{event_category:t,event_name:"All"}),"All"!==n&&a.Z.increment(`${e}_tracking_pixel`,1,{event_category:t,event_name:n})}const P=()=>(1e6*Math.random()).toString(),b="pbm_shopping_bespoke",A=(e,t)=>{const n=e=>e.split("").map((e=>e.charCodeAt(0)));return t.split("").map(n).map((t=>n(e).reduce(((e,t)=>e^t),t))).map((e=>("0"+Number(e).toString(16)).substr(-2))).join("")},w=(e,t)=>{const n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),i=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());return Math.floor((i-n)/864e5)};function R(e,t,n){const i=document.createElement("img"),{dpmUserIdString:a,dentsuUserIdString:s}=n;let l="";return a?l=(0,o.C)({origin:I,pixelEvent:t,userIdString:a}):s&&(l=(0,r.vF)(s,t)),i.height=1,i.width=1,i.style.display="none",i.id=e,i.src=l,i}function C(e,t,n,i,a,r="",o,s){const l=document.getElementById(t),d=document.getElementById(n);async function u(e,t,n,i,a,r,o){const l=document.getElementById(i)?document.getElementById(i):document.createElement("div"),d=document.createElement("img");d.height=1,d.width=1,d.style.display="none",d.id=t,d.src=a,l&&(l.id=i,l.appendChild(d));for(const s of T[o]){let e=(0,c.qn)(s);if(e){const t={dentsuUserIdString:"",dpmUserIdString:""};t["dentsu"===o?"dentsuUserIdString":"dpmUserIdString"]=r,e=e.split("#");const[n,i,a]=e,d=R(s,n,t);l&&(l.appendChild(d),x(o,i,a)),(0,c.L_)(s)}}var u;l&&(null===(u=document.body)||void 0===u||u.insertBefore(l,document.body.firstChild),s())}l||(d&&d.remove(),"complete"===document.readyState&&u(0,t,0,i,a,r,o),window.addEventListener("load",function e(t,n,i,a,r,o,s){return t=>{u(0,n,0,a,r,o,s),window.removeEventListener(t,e)}}(0,t,0,i,a,r,o)))}function O(e,t,n,i,a){function r(e,t,n,i){const r=document.getElementById(n)?document.getElementById(n):document.createElement("div"),o=document.createElement("img");var s;(o.height=1,o.width=1,o.style.display="none",o.id=t,o.src=i,r)&&(r.id=n,r.appendChild(o),null===(s=document.body)||void 0===s||s.insertBefore(r,document.body.firstChild),a())}document.getElementById(t)||("complete"===document.readyState&&r(0,t,n,i),window.addEventListener("load",function e(t,n,i,a){return t=>{r(0,n,i,a),window.removeEventListener(t,e)}}(0,t,n,i)))}function N(e,t,n,i="",a,r){if(document.getElementById(e))return;const s=E[e],l=(0,o.C)({origin:I,pixelEvent:s,userIdString:i});async function d(e,t,n){const i=document.getElementById(t)?document.getElementById(t):document.createElement("div"),a=document.createElement("img");if(a.height=1,a.width=1,a.style.display="none",a.id=e,a.src=n,i&&(i.id=t,i.appendChild(a)),i){var o;if(!document.getElementById(t))null===(o=document.body)||void 0===o||o.insertBefore(i,document.body.firstChild);r()}}"complete"===document.readyState&&d(e,n,l),window.addEventListener("load",function e(t,n,i){return a=>{d(t,n,i),window.removeEventListener(a,e)}}(e,n,l))}function D(e){const{pixelId:t,divId:n,url:i,eventCategory:a,eventName:r,onSendPixelSuccess:o}=e,s=E[t];if(s)(0,c.Nh)(t,`${s}#${a}#${r}`);else if("web_billing_complete"===t&&i){const e=document.getElementById(n)?document.getElementById(n):document.createElement("div"),t=document.createElement("img");var l;if(t.height=1,t.width=1,t.style.display="none",t.id="web_billing_complete",t.src=i,!document.getElementById(n))if(e)e.id=n,e.appendChild(t),null===(l=document.body)||void 0===l||l.insertBefore(e,document.body.firstChild),o&&o()}}function k(e,t,n,i,a,r){return o=>{D({pixelId:e,divId:t,url:n,eventCategory:i,eventName:a,onSendPixelSuccess:r}),window.removeEventListener(o,k)}}function L(e){const{pixelId:t,divId:n,url:i,eventCategory:a,eventName:r,onSendPixelSuccess:o}=e;"complete"===document.readyState?D({pixelId:t,divId:n,url:i,eventCategory:a,eventName:r,onSendPixelSuccess:o}):window.addEventListener("load",k(t,n,i,a,r,o))}const j=({eventCategory:e,deviceType:t,country:n,countryFromHostName:i,countryFromIp:a,regionFromIp:r})=>{!("undefined"==typeof window||!window.navigator||!window.navigator.globalPrivacyControl)&&window.navigator.globalPrivacyControl||((0,u.c_)({country:n,countryFromHostName:i,countryFromIp:a})&&(0,d.yP)({id:S[e].Admo[t],eventCategory:e,eventName:t}),(0,u.$r)({country:n,countryFromHostName:i,countryFromIp:a,regionFromIp:r})&&(0,d.jw)({id:S[e].Flashtalking[t],eventCategory:e,eventName:t}),(0,u.NR)(n,r)&&(0,d.EN)({pixelId:S[e].DPM[t],eventCategory:e,eventName:t}),(0,u.Fc)({country:n,countryFromHostName:i,countryFromIp:a})&&(0,d.Be)({pixelId:S[e].Dentsu[t],eventCategory:e,eventName:t}))};function U(e,t,n,a,r,o){(0,u.c_)({country:e,countryFromHostName:t,countryFromIp:n})&&((0,i.Z)(r,null,28)&&(0,d.X)({id:l.ay,eventName:"Mobile",eventCategory:"RezLogins"}),(0,d.yP)({id:l.me,eventCategory:"Logins",eventName:"LoggedInViews"}),(0,d.X)({id:l.Un,eventName:"Mobile"})),(0,u.$r)({country:e,countryFromHostName:t,countryFromIp:n,regionFromIp:a})&&(0,d.Kv)({id:"flashtalking-m-ses",eventName:"Mobile"}),(0,u.NR)(e,a)&&o&&r&&r.id&&((0,i.Z)(r,null,28)&&(0,d.EN)({pixelId:h,eventCategory:"RezLogins",eventName:"Mobile"}),(0,d.fh)({unauthId:o,userId:r.id}),(0,d.zW)({id:m,unauthId:o,userId:r.id,eventCategory:"EngagedSessions",eventName:"Mobile"})),(0,u.Fc)({country:e,countryFromHostName:t,countryFromIp:n})&&o&&r&&r.id&&(0,d.Xn)({unauthId:o,userId:r.id})}},3223:(e,t,n)=>{n.d(t,{$r:()=>i,Fc:()=>r,HX:()=>s,NR:()=>a,c_:()=>o,ew:()=>l});function i(e){return!1}function a(e,t,n){return!1}function r(e){return!1}function o(e){return!1}function s(e){return!1}function l(e){return!1}},421781:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(635240),a=n(50286);function r({requestContext:e,traceLoggerData:t}){return{appVersion:(0,i.Z)(),browserName:e.userAgent.browserName,browserVersion:e.userAgent.browserVersion,country:e.country,deviceType:(0,a.Mq)(e),getExperimentGroup:t=>e.experimentsClient.checkExperiment(t,{dangerouslySkipActivation:!0}).group||null,isAppShell:!1,isAuthenticated:e.isAuthenticated,isCachedRender:!1,isBot:e.isBot,isSocialBot:e.isSocialBot,locale:e.locale,osName:e.userAgent.osName||"",serverData:t,stageName:e.stage}}},701563:(e,t,n)=>{n.d(t,{M3:()=>m,PA:()=>g,RP:()=>h,gq:()=>_});var i=n(729524),a=n(991067),r=n(543059),o=n(358864),s=n(558775),l=n(985271),d=n(638089),c=n(790348);const u={},_=(e,t)=>{t.forEach((t=>{u[t]=(({name:e,pwtStaticContext:t})=>{if(!l.Z||!(0,a.Z)())return null;const n={type:"stopwatch",name:e},r=[];let c=!0;return{abort:e=>{c&&(c=!1,(0,s.Z)({metricId:n,pwtStaticContext:t,result:{type:"ABORT",reason:e}}))},annotate:e=>{c&&r.push({label:e,timestamp:l.Z.now()})},stop:()=>{if(!c)return;c=!1;const e={type:"COMPLETE",traceId:(0,o.Z)(),startTime:0,endTime:l.Z.now(),spans:[],annotationMap:(0,i.Z)(r),binaryAnnotationMap:(0,d.ng)({metricId:n,pwtStaticContext:t})};(0,s.Z)({metricId:n,pwtStaticContext:t,result:e})}}})({name:t,pwtStaticContext:e})}))},p=e=>u[e],h=(e,t)=>{const n=p(e);if(n)try{n.abort(t)}catch(i){(0,c.H)("app_load_stopwatch_error",{name:e,result:"abort"})}},m=(e,t)=>{const n=p(e);n&&(n.annotate(t),(0,r.ZP)(`stopwatch_${e}_${t}`))},g=e=>{const t=p(e);if(t)try{t.stop()}catch(n){(0,c.H)("app_load_stopwatch_error",{name:e,result:"complete"})}}},129291:(e,t,n)=>{n.d(t,{MH:()=>l,ad:()=>s,iN:()=>d});var i=n(7789),a=n(584992);const{Provider:r,useHook:o}=(0,a.Z)({name:"board_picker",sampleRate:i.DQ?1:.1}),s=(e,t)=>{let n="unknown";null!=t&&t.includes("pin/")?n="PinCloseup":"/"===t?n="HomeFeed":"PinBookMarklet"===t&&(n="PinBookmarklet"),null==e||e.addBinaryAnnotation("source",n,"STRING")},l=r,d=o},874103:(e,t,n)=>{n.d(t,{OA:()=>c,f$:()=>h,rY:()=>l,sk:()=>m,wQ:()=>u,xW:()=>_,yc:()=>d,ys:()=>p});var i=n(172071);const a="onloadRecaptchaJsCallback",r="6Ldx7ZkUAAAAAF3SZ05DRL2Kdh911tCa3qFP0-0r",o="recaptcha-enterprise-src",s=(e,t,n)=>{i.Z.increment("recaptcha_v3.request_token.attempt",.1,{action:n}),void 0===window.grecaptcha||void 0===window.grecaptcha.enterprise?(t(new Error("Error loading reCAPTCHA Enterprise")),i.Z.increment("recaptcha_v3.request_token.js_loading_error",.1,{action:n})):window.grecaptcha.enterprise.ready((()=>{try{window.grecaptcha.enterprise.execute(r,{action:n}).then(e).catch(t)}catch(a){i.Z.increment("recaptcha_v3.request_token.exec_error",.1,{action:n}),t(a)}}))},l=(e,t,n)=>{if(window[a]=function(){return s(e,t,n)},document.getElementById(o))s(e,t,n);else{const e=document.createElement("script");e.id=o,e.src=`https://www.recaptcha.net/recaptcha/enterprise.js?onload=${a}&render=${r}`;const t=document.getElementsByTagName("script")[0];t.parentNode&&t.parentNode.insertBefore(e,t)}},d=105e3,c=8e3,u="mweb_auth",_="mweb_login",p="mweb_signup",h="web_auth",m="web_unauth"},952712:(e,t,n)=>{n.d(t,{H:()=>s});var i=n(844753);var a=n(395164);const r=new class{constructor(e){this.table={},this.interval=e,this.lastCallTime=Date.now()}_garbageCollectEntries(){Date.now()-this.lastCallTime>this.interval&&(this.table={})}_generateHash(e){const t=Object.keys(e).sort(),n=[];return t.forEach((t=>{if(e[t]){let a=(0,i.Z)(e[t])?JSON.stringify(e[t]):e[t]+"";a=t+":"+a,n.push(a)}})),n.join("")}getTableKey(e){return e.auxData?this._generateHash({message:e.errorObj.message,...e.auxData}):e.errorObj.message?e.errorObj.message:""}isWithinRateLimit(e){this._garbageCollectEntries();const t=Date.now();this.lastCallTime=t;const n=this.getTableKey(e);return this.table[n]&&t-this.table[n]{if(console&&console.error){const{name:n="",message:i="No message available",stack:a="No stack trace available"}=e,r=`Name: ${n}\nMessage: ${i}\n----------\nStack: \n${a}\n`;console.error(r,t)}},o._reportToServer=(e,t)=>{const n={errorObj:e};t&&(n.auxData=t),r.isWithinRateLimit(n)||(0,a.T)({...e,message_detail:t?JSON.stringify(t):""})};const s=(e,t)=>{const{columnNumber:n="",fileName:i="",lineNumber:a="",message:r="",original_message:s="",name:l="",stack:d="",stack_trace:c="",moduleName:u="",location:_=""}=e,p={columnNumber:n,fileName:i,lineNumber:a,message:s||r,name:l,stack:d||c,moduleName:u,location:_};o._reportToConsole(p,t),function(e){const t=e.http_status||e.httpStatus||e.status;if(404===t||500===t)return!1;const n=e.stack||e.stack_trace;return!(n&&-1!==n.indexOf("global code")||e.message&&("Connectivity error or cancelled by navigation"===e.message||e.message.includes("count mfss fcw")||e.message.includes("evaluating 'elem.classList'")))}(e)&&o._reportToServer(p,t)};o.report=s},813171:(e,t,n)=>{n.d(t,{Z:()=>i});class i extends Error{constructor(...e){var t,n,i;super(...e),i="ServerResourceError",(n="name")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}static fromPlainObject(e,t){const n=new i;return e.message&&(n.message=e.message),e.message_detail&&(n.message_detail=e.message_detail),e.original_message&&(n.original_message=e.original_message),e.code&&(n.code=e.code),e.http_status&&(n.http_status=e.http_status),e.api_error_code&&(n.api_error_code=e.api_error_code),e.stack_trace&&(n.stack_trace=e.stack_trace),e.extra_data&&(n.extra_data=e.extra_data),e.request_identifier&&(n.request_identifier=e.request_identifier),t&&(n.data=t),n}toString(){return"["+this.name+"] "+JSON.stringify({name:this.name,code:this.code,http_status:this.http_status,api_error_code:this.api_error_code,stack_trace:this.stack_trace,extra_data:this.extra_data,request_identifier:this.request_identifier})}}},387246:(e,t,n)=>{n.d(t,{Z:()=>a});const i=["bookmark","code","data","endpoint_name","error","http_status","message","status"];function a(e){const t={};return Object.keys(e).filter((e=>!i.includes(e))).forEach((n=>{t[n]=e[n]})),t}},314919:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(387246),a=n(813171),r=n(718368);function o(e){var t;const n=e.resource,o=e.resource_response.error;return{auxData:(0,i.Z)(e.resource_response),bookmarks:(null==n||null===(t=n.options)||void 0===t?void 0:t.bookmarks)||[r.q],client_context:e.client_context,request_identifier:e.request_identifier,resource_response:{data:e.resource_response.data,error:o?a.Z.fromPlainObject(o,e.resource_response.data):null}}}},396675:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(886858),a=n(718368),r=n(338739);const o=e=>{if(!e)return;const t={api_error_code:e.api_error_code,code:e.code,message:e.message,message_detail:e.message_detail};return e.extra_data&&(t.extraData=e.extra_data),e.http_status&&(t.httpStatus=e.http_status),t};function s(e,t){switch(e.type){case r.KK:return{...t||{},fetching:e.payload.isFetching,error:null};case r.cR:return{...t||{},fetching:!1,error:o(e.payload.error),data:null};default:const{options:i,resource:s,response:l}=e.payload,d=e.type===r.zP&&e.payload.isRefresh,c=(n=(null==i?void 0:i.bookmarks)||l.bookmarks)&&n[0]!==a.q?n[0]:a.q,u=o(l.resource_response.error),_=null==t?void 0:t.auxData,p=d||null==t?void 0:t.data;let h=l.resource_response.data;return"BaseSearchResource"!==s&&"VisualLiveSearchResource"!==s&&"StoreFrontSearchResource"!==s&&"VisualSearchFlashlightUnifiedResource"!==s&&"NativeInteractionsResource"!==s||!p?Array.isArray(p)&&(h=[...p||[],...h||[]]):Array.isArray(p.results)&&(h=h?{...p,results:[...p.results||[],...h.results||[]]}:p),{...t||{},auxData:_?{..._,...l.auxData}:l.auxData,data:h,fetching:!1,nextBookmark:c,error:u}}var n}function l(e={},t){if(t.type===r.se){const n={...e||{},[t.payload.resource]:{...(e||{})[t.payload.resource]||Object.freeze({})}},a="string"==typeof t.payload.optionsOrOptionsKey?t.payload.optionsOrOptionsKey:(0,i.Z)(t.payload.optionsOrOptionsKey);return delete n[t.payload.resource][a],0===Object.keys(n[t.payload.resource]).length&&delete n[t.payload.resource],n}if(t.type===r.zP||t.type===r.aW||t.type===r.cR||t.type===r.KK){const{options:n,resource:a}=t.payload,r=(0,i.Z)(n),o=e[a]||{},l=s(t,o[r]);return{...e,[a]:{...o,[r]:l}}}return e}},857079:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),a=n(785893);function r({accessibilityLabel:e}){return(0,a.jsx)(i.kC,{alignItems:"center",justifyContent:"center",children:(0,a.jsx)(i.$j,{accessibilityLabel:e,show:!0})})}},740990:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(0,n(667294).createContext)("undefined"!=typeof window?window:null)},763585:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294),a=n(365804),r=n(276775);function o({children:e,scrollOn:t="animationFrame",disableForHashLinks:n}){const o=(0,r.useHistory)(),{action:s}=o,{hash:l,key:d,pathname:c}=(0,r.useLocation)(),u=(0,i.useRef)(d),_=(0,i.useRef)(c),p=(0,i.useRef)(!0),h=(0,i.useRef)({}),{shouldMaintainHomefeed:m,lastHFScrollPosition:g}=(0,a.Z)();return d!==u.current&&"PUSH"===s&&(h.current[u.current]=[window.scrollX,window.scrollY]),u.current=d,(0,i.useEffect)((()=>{window.history.scrollRestoration="manual"}),[]),(0,i.useEffect)((()=>{const e=!p.current;p.current=!1;const i=n&&c===_.current&&!!l;if(_.current=c,!e||i)return;const a=()=>{m?window.scrollTo(...g):"PUSH"===s||"REPLACE"===s?window.scrollTo(0,0):Object.hasOwnProperty.call(h.current,d)?window.scrollTo(...h.current[d]):window.scrollTo(0,0)};"timeout"===t?setTimeout(a,0):requestAnimationFrame(a)}),[s,d]),i.Children.only(e)}},90771:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{fill:"none",height:e,width:e,viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{fill:"#1a73e8",height:"56",rx:"28",width:"56"}),(0,i.jsx)("path",{d:"m37.086 39.782h-18.454c-2.624 0-4.914-1.983-4.914-4.607v-.028 1.536c0 2.624 2.29 4.913 4.914 4.913h18.454c2.653 0 4.914-2.317 4.914-4.913v-1.536c0 2.624-2.29 4.635-4.914 4.635zm-23.395-13.234v-2.094l-3.434-5.667c-.196-.307-.28-.586-.252-.866v2.401c0 .224.084.447.223.698z",fill:"#185abc"}),(0,i.jsx)("path",{d:"m37.086 17h-25.853c-1.033 0-1.619.893-.92 1.843l3.377 5.863v10.469c0 2.68 1.955 4.914 4.607 4.914h18.761c2.653 0 4.914-2.262 4.914-4.914v-13.233c.028-2.68-2.234-4.942-4.886-4.942z",fill:"#fff"}),(0,i.jsx)("path",{d:"m36.78 24.39h-17.842c-.782 0-1.535-.474-1.535-1.228 0-.753.753-1.228 1.535-1.228h17.84c.782 0 1.536.475 1.536 1.228 0 .754-.754 1.229-1.536 1.229zm0 4.915h-17.842c-.782 0-1.535-.475-1.535-1.229s.753-1.228 1.535-1.228h17.84c.782 0 1.536.474 1.536 1.228s-.754 1.229-1.536 1.229zm-4.942 4.941h-12.928c-.782 0-1.535-.474-1.535-1.228s.753-1.229 1.535-1.229h12.927c.781 0 1.535.475 1.535 1.229s-.754 1.228-1.535 1.228z",fill:"#8ab4f8"})]})}},214680:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"url(#paint0_linear_4144_9512)"}),(0,i.jsx)("path",{d:"M27.7512 13C23.3085 13 19.0478 14.47 15.9063 17.0867C12.7649 19.7033 11 23.2522 11 26.9526C11.004 29.3596 11.7556 31.7247 13.1816 33.8182C14.6076 35.9117 16.6595 37.6624 19.138 38.9C18.4779 40.3778 17.4878 41.7636 16.2089 43C18.6891 42.5646 21.0173 41.65 23.0123 40.3273C24.5505 40.708 26.1465 40.9027 27.7512 40.9053C32.1939 40.9052 36.4546 39.4352 39.5961 36.8186C42.7375 34.202 44.5024 30.6531 44.5024 26.9526C44.5024 23.2522 42.7375 19.7033 39.5961 17.0867C36.4546 14.47 32.1939 13 27.7512 13Z",fill:"white"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_4144_9512",x1:"28.4444",y1:"52.2827",x2:"28.4444",y2:"6.94986",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#0CBD2A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#5BF675"})]})})]})}},862960:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"url(#paint0_linear_4401_2673)"}),(0,i.jsx)("path",{d:"M22.452 39.991c-.907 0-.753-.342-1.066-1.206l-2.667-8.779 20.533-12.181",fill:"#C8DAEA"}),(0,i.jsx)("path",{d:"M22.452 39.991c.7 0 1.01-.32 1.4-.7l3.734-3.63-4.657-2.808",fill:"#A9C9DD"}),(0,i.jsx)("path",{d:"m22.928 32.854 11.284 8.336c1.288.71 2.217.343 2.538-1.195l4.593-21.645c.47-1.885-.719-2.74-1.95-2.181l-26.971 10.4c-1.841.738-1.83 1.765-.336 2.223l6.921 2.16 16.024-10.109c.757-.458 1.45-.212.881.294",fill:"url(#paint1_linear_4401_2673)"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"paint0_linear_4401_2673",x1:"37.352",y1:"9.352",x2:"23.352",y2:"42",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#37AEE2"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#1E96C8"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_4401_2673",x1:"31.096",y1:"27.16",x2:"35.466",y2:"37.116",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#EFF7FC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#fff"})]})]})]})}},89396:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e=56}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,i.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#7360F2"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.362 31.327s.57.05.875-.33l.597-.75c.288-.374.984-.61 1.665-.232.902.509 2.067 1.309 2.866 2.054.44.371.542.918.242 1.495l-.002.012a6.278 6.278 0 0 1-1.243 1.53l-.012.009c-.587.489-1.261.773-1.983.538l-.013-.018c-1.296-.367-4.405-1.952-6.386-3.532-3.242-2.558-5.546-6.776-6.183-9.038l-.02-.013c-.235-.724.052-1.398.539-1.984l.01-.01a6.224 6.224 0 0 1 1.53-1.243l.012-.003c.576-.3 1.122-.198 1.494.243.49.505 1.408 1.721 2.054 2.865.378.68.141 1.377-.231 1.664l-.752.598c-.379.306-.33.876-.33.876s1.113 4.207 5.271 5.269Zm6.543-3.488a.405.405 0 0 1-.406-.403c-.018-2.44-.752-4.384-2.178-5.776-1.43-1.393-3.236-2.108-5.37-2.122a.403.403 0 0 1-.4-.408.403.403 0 0 1 .403-.402h.003c2.35.016 4.344.808 5.93 2.352 1.586 1.55 2.402 3.687 2.422 6.35a.406.406 0 0 1-.401.409h-.003Zm-2.127-.832h-.01a.405.405 0 0 1-.395-.414c.032-1.384-.364-2.503-1.208-3.425-.84-.918-1.993-1.42-3.527-1.532a.406.406 0 0 1-.374-.433.406.406 0 0 1 .433-.375c1.725.127 3.093.73 4.065 1.794.977 1.066 1.456 2.409 1.42 3.989a.406.406 0 0 1-.404.396Zm-2.077-.696a.404.404 0 0 1-.404-.386c-.068-1.373-.716-2.045-2.036-2.117a.404.404 0 1 1 .043-.808c1.744.093 2.712 1.092 2.8 2.886a.403.403 0 0 1-.383.423l-.02.002Zm9.09 4.625c-.808 6.503-5.563 6.913-6.44 7.195-.374.12-3.843.982-8.203.698 0 0-3.251 3.92-4.266 4.94-.158.159-.344.223-.469.194-.175-.043-.223-.251-.22-.553l.027-5.354v-.001c-6.35-1.764-5.98-8.394-5.908-11.864.072-3.47.724-6.315 2.661-8.227 3.48-3.152 10.65-2.681 10.65-2.681 6.054.027 8.955 1.85 9.628 2.46 2.234 1.912 3.371 6.49 2.54 13.193Zm-.87-14.817c-.796-.73-4.01-3.064-11.167-3.096 0 0-8.44-.51-12.554 3.267-2.29 2.29-3.096 5.64-3.181 9.797-.085 4.157-.195 11.944 7.311 14.056l.008.002-.005 3.221s-.047 1.306.812 1.572c1.039.322 1.648-.669 2.641-1.738a88.708 88.708 0 0 0 1.863-2.107c5.135.43 9.082-.556 9.532-.701 1.036-.337 6.902-1.088 7.857-8.876.984-8.03-.477-13.106-3.117-15.397Z",fill:"#fff"})]})}},619277:(e,t,n)=>{n.d(t,{o$:()=>a,ty:()=>r,vE:()=>o});var i=n(425288);const{Provider:a,MaybeConsumer:r,useMaybeHook:o}=(0,i.Z)("inviteContext")},296011:(e,t,n)=>{n.d(t,{Z:()=>l,t:()=>d});var i=n(667294),a=n(412067),r=n(167912);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s={};class l extends i.Component{constructor(...e){super(...e),o(this,"state",{invite:s[this.props.invite_code]||null,loaded:this.props.invite_code in s})}componentDidMount(){const{invite_code:e}=this.props;a.Z.create("InviteCodeMetadataResource",{invite_code:e}).callGet().then((t=>{if(t&&t.resource_response){const n=t.resource_response.data;s[e]=n,this.setState({invite:n,loaded:!0})}})).catch((()=>{this.setState({invite:null,loaded:!0})}))}render(){const{invite:e,loaded:t}=this.state;return t?this.props.children(e):null}}class d extends i.Component{constructor(...e){super(...e),o(this,"state",{invite:s[this.props.invite_code]||null,loaded:this.props.invite_code in s})}componentDidMount(){const{invite_code:e,relayEnvironment:t,inviteQuery:n}=this.props;(0,r.fetchQuery)(t,n,{invite_code:e}).subscribe({next:e=>{var t;if(null!==(t=e.v3GetInviteCodeQuery)&&void 0!==t&&t.data){const t=e.v3GetInviteCodeQuery;this.setState({invite:t,loaded:!0})}},error:()=>{this.setState({invite:null,loaded:!0})}})}render(){const{invite:e,loaded:t}=this.state;return t?this.props.children(e):null}}},161164:(e,t,n)=>{n.d(t,{X:()=>T,fh:()=>_,Xn:()=>f,c:()=>p,Um:()=>c,Kv:()=>g,jO:()=>u,zW:()=>h,yP:()=>I,EN:()=>m,Be:()=>E,KT:()=>S,jw:()=>v,o4:()=>y});var i=n(172071),a=n(844974),r=n(549872),o=n(683090),s=n(887432),l=n(675149),d=n(180630);function c(){(0,d.W)(),(0,d.Z)("PageView",(()=>{i.Z.increment("fb_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"})})),(0,d.Z)("ViewContent",(()=>{i.Z.increment("fb_tracking_pixel",1,{event_category:"ViewContent",event_name:"AuthViews"})}))}function u(){!function(){function e(){const e=document.createElement("script");e.src="https://www.googletagmanager.com/gtag/js?id=AW-819016158";const t="gtag-id-1";function n(){window.dataLayer.push(arguments)}e.id=t,e.async=!0,document.getElementById(t)||document.body.insertBefore(e,document.body.firstChild),window.dataLayer=window.dataLayer||[],n("js",new Date),n("config","AW-819016158"),n("event","page_view",{send_to:"AW-819016158"})}"complete"===document.readyState&&e(),window.addEventListener("load",e)}()}function _(e){if(e){const t=e.unauthId,n=e.userId;t&&n&&((0,a.qn)("dpm_pixel_login_event")?(0,s.FB)(t,n,(()=>{i.Z.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.Z.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"AuthViews"})})):(0,s.FB)(t,n,(()=>{i.Z.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.Z.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"AuthViews"}),i.Z.increment("dpm_tracking_pixel",1,{event_category:"PageView",event_name:"UniqueViews"})})))}}function p(e){if(e){const t=e.id,n=e.unauthId,a=e.userId,r=e.eventCategory,o=e.eventName;t&&r&&o&&n&&a&&(0,s.ZY)(n,a,t,(()=>{i.Z.increment("dpm_tracking_pixel",1,{event_category:r,event_name:o}),i.Z.increment("dpm_tracking_pixel",1,{event_category:r,event_name:"All"})}))}}function h(e){if(e){const t=e.id,n=e.unauthId,a=e.userId,r=e.eventCategory,o=e.eventName;t&&r&&o&&n&&a&&setTimeout((()=>{(0,s.ZY)(n,a,t,(()=>{i.Z.increment("dpm_tracking_pixel",1,{event_category:r,event_name:o}),i.Z.increment("dpm_tracking_pixel",1,{event_category:r,event_name:"All"})}))}),6e4)}}function m(e){if(e){const t=e.pixelId,n=e.userId?e.userId:"",a=e.eventCategory,r=e.eventName;t&&a&&r&&(0,s.l8)(t,n,a,r,(()=>{i.Z.increment("dpm_tracking_pixel",1,{event_category:a,event_name:"All"}),"All"!==r&&i.Z.increment("dpm_tracking_pixel",1,{event_category:a,event_name:r})}))}}function g(e){if(e){const t=e.id,n=e.eventName;t&&n&&(0,o.VC)(t,(()=>{i.Z.increment("flashtalking_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.Z.increment("flashtalking_tracking_pixel",1,{event_category:"PageView",event_name:n})}))}}function v(e){if(e){const t=e.id,n=e.eventCategory,a=e.eventName;t&&n&&a&&(0,o.Rs)(t,n,a,(()=>{i.Z.increment("flashtalking_tracking_pixel",1,{event_category:n,event_name:"All"}),"All"!==a&&i.Z.increment("flashtalking_tracking_pixel",1,{event_category:n,event_name:a})}))}}function f(e){if(e){const t=e.unauthId,n=e.userId;t&&n&&(0,r.IV)(t,n,(()=>{i.Z.increment("dentsu_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.Z.increment("dentsu_tracking_pixel",1,{event_category:"PageView",event_name:"AuthViews"})}))}}function y(e){if(e){const t=e.unauthId;t&&(0,r.Ob)(t,(()=>{i.Z.increment("dentsu_tracking_pixel",1,{event_category:"PageView",event_name:"AllViews"}),i.Z.increment("dentsu_tracking_pixel",1,{event_category:"PageView",event_name:"UnAuthViews"})}))}}function E(e){if(e){const t=e.pixelId,n=e.eventCategory,i=e.eventName;t&&n&&i&&(0,r.sX)(t,n,i)}}function S(){(0,r.Ii)((()=>{i.Z.increment("dentsu_tracking_pixel",1,{event_category:"PageViews (Facebook)",event_name:"AllViews"})}))}function T(e){if(e){const t=e.id,n=e.eventName,a=e.eventCategory?e.eventCategory:"PageView";t&&n&&(0,l.lv)(t,(()=>{i.Z.increment("admo_tracking_pixel",1,{event_category:a,event_name:"AllViews"}),i.Z.increment("admo_tracking_pixel",1,{event_category:a,event_name:n})}))}}function I(e){if(e){const t=e.id,n=e.eventCategory,i=e.eventName;t&&n&&i&&(0,l.BG)(t,n,i)}}},433780:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(768559),a=n(704115),r=n(172071),o=n(245474);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}let l=null;const d="ACTIVE",c="PAUSED",u=()=>window&&window.performance&&window.performance.now?`(Time: ${(window.performance.now()/1e3).toFixed(3)}s)`:"",_=({flushEvents:e,track:t})=>{if(l)return l;const n=new Map,i=(0,a.Z)()&&(0,a.Z)().debug_timespent,_=i?console:{error:(...e)=>{},log:(...e)=>{},group:(...e)=>{},groupEnd:(...e)=>{}};console.group||(_.group=(...e)=>console.log(...e),_.groupEnd=(...e)=>{});return l=new class{constructor(){s(this,"appTimedPair",null),s(this,"clickthroughProperties",null),s(this,"historyStackContext",null),s(this,"offsiteTimedPair",null),s(this,"offsiteTimedPairForegroundId",null),s(this,"pins",Object.freeze({})),s(this,"addEventListeners",(()=>{let e,t;"undefined"!==document.hidden?(e="hidden",t="visibilitychange"):"undefined"!==document.msHidden?(e="msHidden",t="msvisibilitychange"):"undefined"!==document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange");const n=t=>{document[e]?this.unregisterApp(!1,void 0,t):document.hasFocus()&&this.registerApp()};t&&document.addEventListener(t,n,!1),window.addEventListener("focus",this.registerApp),window.addEventListener("blur",(e=>this.unregisterApp(!1,void 0,e)));const i=(e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}})((e=>this.unregisterApp(!0,void 0,e)));window.addEventListener("beforeunload",i),window.addEventListener("pagehide",i);const a=navigator&&navigator.userAgent.toLowerCase();a&&a.includes("macintosh")&&a.includes("chrome")&&window.addEventListener("popstate",(t=>{document.hasFocus()||document[e]||r.Z.increment("chrome_mac_back_forward_button",1)}))})),s(this,"storeClickthroughProperties",(e=>{this.clickthroughProperties&&r.Z.increment("webapp.metrics.clickthroughs.overwritten",1,{previousView:this.clickthroughProperties.view_type,previousViewParameter:this.clickthroughProperties.view_parameter,nextView:e.view_type,nextViewParameter:e.view_parameter}),this.clickthroughProperties=e})),s(this,"clearClickthroughProperties",(()=>{this.clickthroughProperties=null,this.offsiteTimedPair=null,this.offsiteTimedPairForegroundId=null})),s(this,"registerApp",(()=>{_.group("App Foreground",u()),null==this.appTimedPair?(this.appTimedPair=new o.Z,this.appTimedPair.start(),this._unpauseAllComponents(),this._endOffsiteTimedPair(),null!==this.appTimedPair&&void 0!==this.appTimedPair&&t({event_type:4700,pair_id:this.appTimedPair.uuid},this.historyStackContext,this.pins)):_.error("TimedPair already exists for app."),_.groupEnd()})),s(this,"unregisterApp",((n=!1,i=!1,a)=>{_.group("App Background",u());const r=this.appTimedPair;if(null!=r){this._pauseAllComponents();const e=r.end();this._startOffsiteTimedPair(),t({event_type:4701,duration_ns:e,pair_id:r.uuid},this.historyStackContext,this.pins),this.appTimedPair=null}else _.error("No TimedPair found for app.");const o=["beforeunload","pagehide"],s=o.includes(null==a?void 0:a.type),l=o.includes(null==a?void 0:a.pauseReason);(s||l)&&this._endOffsiteTimedPair(),i||e(null!=n&&n),_.groupEnd()})),s(this,"_activateComponent",(e=>{_.group("Activating component",u()),i&&_.log(e.getContext());const n=e.getTimedPair();if(n){n.start();const{view:i,viewParameter:a,component:r,element:o,objectId:s,clientTrackingParams:l}=e.getLoggerContext();t({event_type:4702,view_type:i,view_parameter:a,component:r,element:o,object_id_str:s,view_data:e.props.viewData,pair_id:n.uuid,clientTrackingParams:l,aux_data:{time_spent_foreground_pairid:this.appTimedPair&&this.appTimedPair.uuid,time_spent_parent_pairid:e.getParentId(),...e.props.auxData}},this.historyStackContext,this.pins)}_.groupEnd()})),s(this,"_deactivateComponent",(e=>{_.group("Deactivating component",u()),i&&_.log(e.getContext());const n=e.getTimedPair();if(n){const{view:i,viewParameter:a,component:r,element:o,objectId:s,clientTrackingParams:l}=n,d=n.end();t({event_type:4703,view_type:i,view_parameter:a,component:r,element:o,object_id_str:s,view_data:e.props.viewData,duration_ns:d,pair_id:n.uuid,clientTrackingParams:l,aux_data:{time_spent_foreground_pairid:this.appTimedPair&&this.appTimedPair.uuid,time_spent_parent_pairid:e.getParentId(),...e.props.auxData}},this.historyStackContext,this.pins)}_.groupEnd()})),s(this,"_startOffsiteTimedPair",(()=>{const{clickthroughProperties:e}=this;e&&(this.offsiteTimedPair=new o.Z({...e,view:186,viewParameter:e.view_parameter,objectId:e.object_id_str}),this.offsiteTimedPair.start(),this.offsiteTimedPairForegroundId=this.appTimedPair?this.appTimedPair.uuid:null,t({...e,event_type:4702,view_type:186,pair_id:this.offsiteTimedPair?this.offsiteTimedPair.uuid:null,aux_data:{...e.aux_data,time_spent_foreground_pairid:this.offsiteTimedPairForegroundId}},this.historyStackContext,this.pins))})),s(this,"_endOffsiteTimedPair",(()=>{const{offsiteTimedPair:e,clickthroughProperties:n}=this;if(e&&n){const i=e.end();t({...n,event_type:4703,view_type:186,pair_id:this.offsiteTimedPair?this.offsiteTimedPair.uuid:null,aux_data:{...n.aux_data,time_spent_foreground_pairid:this.offsiteTimedPairForegroundId},duration_ns:i},this.historyStackContext,this.pins),this.clearClickthroughProperties()}})),s(this,"_pauseAllComponents",(()=>{_.group("Pause all components"),n.forEach(((e,t,n)=>{e===d&&this._deactivateComponent(t),n.set(t,c)})),_.groupEnd()})),s(this,"_unpauseAllComponents",(()=>{_.group("Unpause all components"),n.forEach(((e,t)=>{t.setTimedPair(new o.Z(t.getLoggerContext()))})),n.forEach(((e,t)=>{n.set(t,d),this._activateComponent(t)})),_.groupEnd()}))}setHistoryStackContext(e){this.historyStackContext=e}setPins(e){this.pins=e}registerComponent(e){null===this.appTimedPair?n.set(e,c):(n.set(e,d),this._activateComponent(e))}unregisterComponent(e){n.get(e)===d&&(this._deactivateComponent(e),e.setTimedPair(new o.Z(e.getLoggerContext()))),n.delete(e)}size(){return n.size}},l},p={},h=(e,t=!0)=>_({flushEvents:e.flushContextEvents,track:(n,a,r)=>{if(t&&r&&n){let e;const{pair_id:t,event_type:d}=n;if(4703===d&&t&&p[t])n.clientTrackingParams=p[t];else{var o;const c=n.object_id_str,u=c?r[c]:null,_=null==a||null===(o=a.current)||void 0===o?void 0:o.location,h=null==a?void 0:a.previous;var s,l;if(u&&_)e=(0,i.Z)({boardUrl:null===(s=u.board)||void 0===s?void 0:s.url,callToCreateSourcePinId:u.call_to_create_source_pin_id,location:_,pinId:u.id,pinnerUserName:null===(l=u.pinner)||void 0===l?void 0:l.username,previousHistory:h,storyPinDataId:u.story_pin_data_id,trackingParams:u.tracking_params,trackingParamsMap:u.tracking_params_map})||`${u.tracking_params||""}~0`,n.clientTrackingParams=e,4702===d&&t&&(p[t]=e)}}e.logContextEvent(n)}})},932046:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(826067);function a(){const e=(0,i.mB)(window.location.search);if("31"===e.utm_source)return"email";if(e.utm_pai)return"paid";const t=document.referrer;return t?t.includes("/t.co/")?"twitter":t.includes("cdn.ampproject.org")?"amp":t.includes("google.")?"google":t.includes("bing.")?"bing":t.includes("facebook.")?"facebook":"other":"direct"}},69642:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294),a=n(867820),r=n(932046);function o(){return(0,i.useCallback)((e=>{e.action&&e.event?(0,a.My)("pinner_conversion",{...e,type:e.type||"none",trigger:e.trigger||"other",referrer:(0,r.Z)()}):(0,a.My)("pinner_conversion.missing_tags")}),[])}},758127:(e,t,n)=>{n.d(t,{U:()=>r,Z:()=>o});var i=n(883119),a=n(785893);const r=", ";function o(){return(0,a.jsx)(i.xu,{display:"visuallyHidden",children:r})}},439890:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(667294),a=n(223815),r=n(50286),o=n(343341),s=n(883119),l=n(785893);function d({children:e}){const[t,n]=(0,i.useState)([]),d=(0,i.useRef)(0),c=(0,r.ZP)(),u=()=>{const e=d.current;return d.current+=1,`toast${e}`},_=(0,i.useMemo)((()=>({showOneToast:e=>{n([{name:u(),component:e}])},showToast:e=>{n([...t,{name:u(),component:e}])}})),[n,t]);return(0,l.jsxs)(o.Zo,{value:_,children:[e,(0,l.jsx)(a.Z,{children:(0,l.jsx)(s.mh,{children:(0,l.jsx)(s.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{pointerEvents:"none",..."desktop"===c?{bottom:"14px"}:{top:"phone"===c?56:80}}},display:"flex",direction:"column",justifyContent:"center",position:"fixed",width:"100%",zIndex:new s.Ry(1500),children:t.map((({name:e,component:i})=>{if(i)return(0,l.jsx)(i,{hideToast:()=>(e=>{const i=[...t],a=i.findIndex((t=>t.name===e));-1!==a&&(i.splice(a,1),n(i))})(e)},e)}))})})})]})}},753311:(e,t,n)=>{n.d(t,{M:()=>o,Q:()=>r});var i=n(667294);const a=(0,i.createContext)(null),r=()=>(0,i.useContext)(a),o=a.Provider},690035:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(753311);const a=()=>{const e=(0,i.Q)();return t=>{if(e){const{pinId:n,location:i,seoPlacementConfig:a}=t;e.showUnauthContextMenu({pinId:n,location:i,seoPlacementConfig:a})}}}},934723:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(422586),a=n(966113);function r({advertiser:e,isAdsSite:t,isAnalyticsSite:n,isTrendsSite:r,baseUrl:o,adsUrl:s,isQuickPromote:l,isShoppingCatalogs:d}){if(t&&!e&&!l)return"/";let c=o;return(t||n||r)&&!d?(s||(s=o),e?(c=(0,i.Z)(s,e.id),t||(c=a.au+c)):c=t?s:a.au+c):d?c=a.au+(0,i.Z)(o,e?e.id:""):s||(c=a.au+o),c}},198125:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(667294);function a(){const[e,t]=(0,i.useState)(!1);return{isHovering:e,handleMouseEnter:(0,i.useCallback)((()=>t(!0)),[t]),handleMouseLeave:(0,i.useCallback)((()=>t(!1)),[t])}}},348584:(e,t,n)=>{n.d(t,{D:()=>l,Z:()=>d});var i=n(667294),a=n(826067),r=n(276775),o=n(785893);const s=(0,i.createContext)(!1);function l({children:e}){const t=(()=>{var e,t;const n=(0,r.useLocation)();return(null===(e=(0,r.useHistory)().location.state)||void 0===e?void 0:e.isAppFactoryOAuth)||(null!==(t=(0,a.mB)(n.search).next)&&void 0!==t?t:"").startsWith("/app-factory-oauth/")})(),[n,l]=(0,i.useState)(t);return(0,i.useEffect)((()=>{t&&l(!0)}),[t]),(0,o.jsx)(s.Provider,{value:n,children:e})}function d(){return(0,i.useContext)(s)}},644035:(e,t,n)=>{n.d(t,{GW:()=>a,RL:()=>i,s4:()=>r});const i="ios",a="android",r="ipad"},127412:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(432300);function a(e){var t,n,a,r,o,s,l,d,c,u,_,p,h,m,g,v,f,y,E,S,T,I,x,P,b,A,w,R,C;return e&&e.id?{allow_personalization_cookies:null!==(t=e.allow_personalization_cookies)&&void 0!==t&&t,allow_analytic_cookies:null!==(n=e.allow_analytic_cookies)&&void 0!==n&&n,allow_marketing_cookies:null!==(a=e.allow_marketing_cookies)&&void 0!==a&&a,boardCount:e.board_count,groupBoardCount:e.group_board_count,pinCount:e.pin_count,eligibleForStlTool:e.eligible_for_stl_tool,isAuth:!0,id:e.id,epik:e.epik,username:e.username,fullName:null!==(r=e.full_name)&&void 0!==r?r:"",firstName:null!==(o=e.first_name)&&void 0!==o?o:"",lastName:null!==(s=e.last_name)&&void 0!==s?s:"",email:null!==(l=e.email)&&void 0!==l?l:"",facebookId:e.facebook_id,hasPassword:null!==(d=e.has_password)&&void 0!==d&&d,isEmployee:null!==(c=e.is_employee)&&void 0!==c&&c,isLimitedLogin:e.login_state===i.Z.LIMITED,isPartner:null!==(u=e.is_partner)&&void 0!==u&&u,isWriteBanned:null!==(_=e.is_write_banned)&&void 0!==_&&_,imageSmallUrl:null!==(p=e.image_small_url)&&void 0!==p?p:"",imageMediumUrl:null!==(h=e.image_medium_url)&&void 0!==h?h:"",imageLargeUrl:null!==(m=e.image_large_url)&&void 0!==m?m:"",imageXLargeUrl:null!==(g=e.image_xlarge_url)&&void 0!==g?g:"",nags:null!==(v=e.nags)&&void 0!==v?v:[],profileDiscoveredPublic:null!==(f=e.profile_discovered_public)&&void 0!==f&&f,showDiscoveredFeed:null!==(y=e.show_discovered_feed)&&void 0!==y&&y,createdAt:null!==(E=e.created_at)&&void 0!==E?E:"",resurrectionInfo:e.resurrection_info&&e.resurrection_info.resurrection_dt?{resurrectionDate:e.resurrection_info.resurrection_dt}:void 0,country:null!==(S=e.country)&&void 0!==S?S:"",domainUrl:e.domain_url,domainVerified:e.domain_verified,isAnyWebsiteVerified:e.is_any_website_verified,verifiedWebsites:e.verified_user_websites,listedWebsiteUrl:null!==(T=e.listed_website_url)&&void 0!==T?T:"",gender:e.gender,customGender:e.custom_gender,firstHomeFeedRequestAfterNux:null!==(I=e.firstHomeFeedRequestAfterNux)&&void 0!==I&&I,partner:e.partner,socialNetwork:{facebook:{connected:!!e.connected_to_facebook},google:{connected:!!e.connected_to_google},youtube:{connected:!!e.connected_to_youtube},gplus:{connected:!!e.gplus_url,url:e.gplus_url},microsoft:{connected:!!e.connected_to_microsoft},twitter:{connected:!!e.twitter_url,url:e.twitter_url},etsy:{connected:!!e.connected_to_etsy},instagram:{connected:!!e.connected_to_instagram},dropbox:{connected:!!e.connected_to_dropbox}},can_enable_mfa:null!==(x=e.can_enable_mfa)&&void 0!==x&&x,has_mfa_enabled:null!==(P=e.has_mfa_enabled)&&void 0!==P&&P,has_quicksave_board:e.has_quicksave_board,phone_country:null!==(b=e.phone_country)&&void 0!==b?b:"",phone_number:null!==(A=e.phone_number)&&void 0!==A?A:"",phone_number_end:null!==(w=e.phone_number_end)&&void 0!==w?w:"",push_package_user_id:null!==(R=e.push_package_user_id)&&void 0!==R?R:"",third_party_marketing_tracking_enabled:void 0===e.third_party_marketing_tracking_enabled||null===e.third_party_marketing_tracking_enabled||e.third_party_marketing_tracking_enabled,age_in_years:e.age_in_years,save_behavior:e.save_behavior,shopping_rec_disabled:e.shopping_rec_disabled,show_personal_boutique:null!==(C=e.show_personal_boutique)&&void 0!==C&&C}:{isAuth:!1,isLimitedLogin:!1}}},109322:(e,t,n)=>{n.d(t,{Ur:()=>a,i5:()=>i,kx:()=>r});const i={AT:14,BE:13,BG:16,HR:16,CY:14,CZ:15,DK:13,EE:14,FI:13,FR:15,DE:16,GR:15,HU:16,IE:16,IT:14,LV:13,LT:14,LU:16,MT:13,NL:16,PL:16,PT:13,RO:16,SK:16,SI:15,ES:14,SE:13,GB:13},a=13,r=5},8320:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(63552),a=n(883119),r=n(785893);const o={__style:{borderRadius:"4px",padding:"10px 14px"}},s={borderWidth:"1px",borderStyle:"solid",borderColor:"white"},l={__style:{borderRadius:"4px",padding:"10px 14px 9px 8px",whiteSpace:"nowrap"}},d=({accessibilityLabel:e,color:t,customStyles:n,forwardedRef:d,icon:c,inline:u=!1,minHeight:_=40,minWidth:p=70,onTouch:h,pressState:m,shape:g,text:v})=>{const f=(e=>"primary"===e||"transparent"===e||"dark"===e?"inverse":"default")(t),y=(({color:e,icon:t})=>t?l:"transparent"===e?{__style:{...o.__style,...s}}:o)({color:t,icon:c}),E=(0,r.jsx)(a.xu,{position:"relative",children:(0,r.jsx)(a.xu,{color:t,display:u?"inlineBlock":"flex",justifyContent:"center",minHeight:_,minWidth:p,dangerouslySetInlineStyle:"pill"===g?(S=n,{__style:{borderRadius:"24px",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"14px",paddingRight:"14px",...S}}):y,children:(0,r.jsxs)(a.kC,{alignItems:"center",justifyContent:"center",children:[c&&(0,r.jsx)(a.xu,{paddingX:"check"===c?2:0,children:(0,r.jsx)(a.JO,{accessibilityLabel:e,color:f,icon:c,inline:!0,size:"check"===c?16:20})}),(0,r.jsx)(a.xv,{color:f,inline:!0,size:"300",lineClamp:1,weight:"bold",children:v})]})})});var S;return h?(0,r.jsx)(i.Z,{onTouch:h,rounding:"pill"===g?"pill":2,pressState:m||"none",children:(0,r.jsx)(a.xu,{ref:d,children:E})}):E}},375574:(e,t,n)=>{n.d(t,{Z:()=>x});var i=n(667294),a=n(702664),r=n(898781),o=n(883119),s=n(785893);function l(e){const t=(0,r.ZP)(),{viewType:n,boardId:i,handleTouch:a}=e,l=t._('Board', 'createMenuLinkButton.Create.Board.Label', 'label for creating a new board option'),d=t._('Section', 'createMenuLinkButton.Create.Section.Label', 'label for creating a new section option');return 5===n&&i?(0,s.jsx)(o.iP,{role:"link",href:`/board/${i}/create_section/`,rounding:2,onTap:a,children:(0,s.jsx)(o.xu,{paddingY:2,"data-test-id":"addSectionButton",children:(0,s.jsx)(o.X6,{size:"400",children:d})})}):(0,s.jsx)(o.iP,{role:"link",onTap:a,href:"/board/create/",children:(0,s.jsx)(o.xu,{paddingY:2,"data-test-id":"createMenuCreateBoardButton",children:(0,s.jsx)(o.X6,{size:"400",children:l})})})}var d=n(276775),c=n(805410);function u({disabledPinCreation:e,handleDisablePublish:t,handleTouch:n}){const i=(0,r.ZP)(),a=(0,d.useHistory)(),l=e=>({base64Image:e,method:c.I}),u=i._('Photo', 'createPinButton.Photo.Upload.Label', 'label to upload pin from camera roll photos');return(0,s.jsx)(o.iP,{tapStyle:"none",onTap:()=>{e?t():n()},children:(0,s.jsxs)(o.xu,{position:"relative",paddingY:2,children:[(0,s.jsx)(o.X6,{size:"400",children:u}),e?null:(0,s.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;a.push({pathname:`/pin/create/${c.I}/`,state:l(String(e))})}},style:{opacity:0,position:"absolute",top:"0px",height:"100%",width:"100%"}})]})})}var _=n(121151);function p({isOpen:e,onDismiss:t}){const n=(0,r.ZP)();return(0,s.jsx)(_.ZP,{accessibilityModalLabel:n._('Disabled Pin Publishing Error Message Modal', 'disabledPinCreationModal.modal.accessibilityLabel', 'Label for disabled pin creation modal'),isOpen:e,mobileAccessibilityCloseIconLabel:n._('Close disabled publishing message modal', 'disabledPinCreationModal.modal.closeIconLabel', 'Label for the close button on the disabled publishing modal'),onDismiss:t,type:"DisabledPublishingModal",children:(0,s.jsxs)(o.xu,{alignItems:"center",direction:"column",display:"flex",paddingX:6,paddingY:4,children:[(0,s.jsx)(o.X6,{children:n._('Oops...', 'disabledPinCreationModal.modal.heading', 'Exclamation used to show recognition of a mistake.')}),(0,s.jsx)(o.xu,{paddingY:3,children:(0,s.jsx)(o.xv,{children:n._('Our server is experiencing a mild case of the hiccups at the moment. Please try refreshing and publishing again later.', 'disabledPinCreationModal.modal.text', 'Message to let users know there is an error.')})}),(0,s.jsx)(o.xu,{paddingY:3,children:(0,s.jsx)(o.zx,{color:"red",onClick:()=>t(),size:"lg",text:n._('Dismiss', 'disabledPinCreationModal.button.dismiss', 'Button text for closing the disabled pin creation modal')})})]})})}var h=n(941646),m=n(881802),g=n(134906),v=n(773285),f=n(112690),y=n(927383),E=n(490543);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}const T=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 I extends i.PureComponent{constructor(...e){super(...e),S(this,"state",{createPinFromLinkUrl:"",showCreateModal:!1,showInlineTextEditCreatePin:!1,showPublishingDisabledError:!1,urlValidationError:null}),S(this,"createPinFromLinkInput",(0,i.createRef)()),S(this,"closeCreateModal",(()=>{this.setState({showCreateModal:!1,showInlineTextEditCreatePin:!1}),this.props.updatePinBuilderInput({isInputOpen:!1,submittedLink:""})})),S(this,"clearValidationError",(()=>{this.setState({urlValidationError:null})})),S(this,"openCreateModal",(e=>{this.handleTouch(),this.props.requireAuthForLimitedLogin({fn:()=>this.setState({showCreateModal:!0}),modalHeader:(0,m.is)(this.props.i18n)})()})),S(this,"handleCreatePinFromLinkTouch",(()=>{this.setState({showInlineTextEditCreatePin:!0}),this.props.updatePinBuilderInput({isInputOpen:!0})})),S(this,"handleDisablePublish",(()=>{this.setState({showCreateModal:!1,showPublishingDisabledError:!0})})),S(this,"handleLinkFieldChange",(({value:e})=>{this.setState({createPinFromLinkUrl:e})})),S(this,"handlePinFromLinkFormSubmit",((e,t)=>{const{createPinFromLinkUrl:n}=this.state;e.preventDefault();const{errors:i}=(0,g.Jx)({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),[a]=i;a?this.setState({urlValidationError:a}):this.handleUrlValidationSuccess(t)})),S(this,"handleTouch",(()=>{const{logContextEvent:e,viewType:t,elementType:n}=this.props;e({view_type:t,view_parameter:3106,element:n,event_type:102})})),S(this,"handleUrlValidationSuccess",(e=>{this.setState({showInlineTextEditCreatePin:!1});const t=this.state.createPinFromLinkUrl;this.props.updatePinBuilderInput({submittedLink:t}),e.push({pathname:"/pin-builder/",state:{createPinFromLinkUrl:t}}),this.closeCreateModal()})),S(this,"renderCreatePinFromLinkOption",(()=>{const{disabledPinCreation:e,history:t}=this.props,{createPinFromLinkUrl:n,showInlineTextEditCreatePin:i}=this.state,a=this.props.i18n._('Website', 'editPin.CreatePinFromUrl.Label', 'label for option to create a pin from a url');return(0,s.jsx)(o.kC,{alignItems:"center",height:46,justifyContent:"start",children:i?(0,s.jsx)("form",{onSubmit:e=>this.handlePinFromLinkFormSubmit(e,t),style:{width:"100%"},children:(0,s.jsxs)(o.xu,{display:"flex",justifyContent:"between",position:"relative",children:[(0,s.jsxs)(o.xu,{ref:this.createPinFromLinkInput,width:"100%",children:[this.renderErrorFlyout(),(0,s.jsx)(o.nv,{id:"create-pin-from-link",onChange:this.handleLinkFieldChange,onFocus:()=>this.setState({urlValidationError:null}),placeholder:T(this.props.i18n),size:"lg",value:n})]}),(0,s.jsx)(o.hU,{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'),iconColor:"darkGray",icon:"arrow-forward",onClick:({event:e})=>this.handlePinFromLinkFormSubmit(e,t),size:"lg"})]})}):(0,s.jsx)(o.iP,{onTap:()=>{e?this.handleDisablePublish():this.handleCreatePinFromLinkTouch()},tapStyle:"none",children:(0,s.jsx)(o.xu,{position:"relative","data-test-id":"websiteButton",children:(0,s.jsx)(o.X6,{size:"400",children:a})})})})})),S(this,"renderErrorFlyout",(()=>{const{urlValidationError:e}=this.state;return e&&(0,s.jsx)(o.J2,{anchor:this.createPinFromLinkInput.current,color:"red",idealDirection:"up",onDismiss:this.clearValidationError,size:"sm",children:(0,s.jsx)(o.xu,{padding:3,width:"100%",children:(0,s.jsx)(o.xv,{align:"center",color:"inverse",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,disabledPinCreation:a,i18n:r,iconButtonColor:d="gray",iconButtonSize:c="xl",viewType:m}=this.props,{showCreateModal:g,showPublishingDisabledError:v}=this.state;let f=this.props.i18n._('Add a Pin or board', 'heading in profile create modal', 'heading in profile create modal');164===m?f=this.props.i18n._('Add to section', 'heading in section create modal', 'heading in section create modal'):5===m&&(f=this.props.i18n._('Add a Pin or section', 'heading in profile create modal', 'heading in profile create modal')||r._('Add to board', 'heading in board create modal', 'heading in board create modal'));const y=4===m?this.props.i18n._('Add to profile', 'editPin.AddToProfile.Modal.Header', 'heading in profile create modal'):f;return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(o.kC,{alignItems:"center",justifyContent:"start",children:(0,s.jsx)(h.Z,{id:"createMenuCreateButton",children:(0,s.jsx)(o.hU,{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,iconColor:d,icon:"add",size:c,padding:"auto"!==n?n:1,onClick:({event:e})=>this.openCreateModal(e)})})}),g&&(0,s.jsx)(_.ZP,{mobileAccessibilityCloseIconLabel: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'),accessibilityModalLabel:"",heading:y,isOpen:this.state.showCreateModal,onDismiss:this.closeCreateModal,type:"create_menu",children:(0,s.jsx)(o.xu,{padding:3,children:(0,s.jsxs)(o.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,s.jsxs)(i.Fragment,{children:[(0,s.jsxs)(o.xu,{paddingX:2,children:[(0,s.jsx)(o.xv,{children:this.props.i18n._('Create', 'editPin.Create.Section.Text', 'Section title to Create new things on Edit Pin add modal')}),(0,s.jsx)(i.Fragment,{children:this.renderCreatePinFromLinkOption()}),(0,s.jsx)(u,{disabledPinCreation:a,handleDisablePublish:this.handleDisablePublish,handleTouch:this.handleTouch})]}),164!==m&&(0,s.jsxs)(o.xu,{marginTop:6,paddingX:2,children:[(0,s.jsx)(o.xv,{children:this.props.i18n._('Add', 'editPin.Section.Add.Text', 'Section Add title on Edit Pin add modal')}),(0,s.jsx)(l,{boardId:t,handleTouch:()=>{this.handleTouch(),this.closeCreateModal()},viewType:m})]})]}),(0,s.jsx)(o.xu,{display:"flex",justifyContent:"center",marginBottom:2,marginTop:7,children:(0,s.jsx)(o.zx,{onClick:()=>this.closeCreateModal(),size:"lg",text:this.props.i18n._('Close', 'editPin.Modal.Close.Button', 'Button text to close modal on EditPin')})})]})})}),v&&(0,s.jsx)(p,{isOpen:!0,onDismiss:()=>{this.setState({showPublishingDisabledError:!1})}})]})}}function x(e){const t=(0,r.ZP)(),{checkExperiment:n}=(0,v.F)(),i=["disable_all","disable_web_pins"].includes(n("disable_pin_creation").group),o=(0,a.useDispatch)(),l=(0,d.useHistory)(),{pinBuilder:c}=(0,a.useSelector)((e=>e.session)),u=(0,f.Z)(),_=c&&c.isInputOpen,p=c&&c.submittedLink,h=(0,y.Z)();return(0,s.jsx)(I,{...e,disabledPinCreation:i,history:l,i18n:t,isInputOpen:_,logContextEvent:u,requireAuthForLimitedLogin:h,submittedLink:p,updatePinBuilderInput:e=>o((0,E.p)(e))})}},57791:(e,t,n)=>{n.d(t,{MZ:()=>C,di:()=>N,Ai:()=>O});var i=n(667294),a=n(296679),r=n(8320),o=n(329900),s=n(926275),l=n(250059),d=n(149230),c=n(407043),u=n(48714),_=n(276775);const p=({children:e,external:t,externalQueryParams:n,target:i,href:a})=>{const{logContextEvent:r}=(0,c.v)(),o=(0,_.useHistory)(),s=(0,_.useLocation)();if(!a)return null;const p=(0,l.Z)(a);return e({navigate:e=>{e.preventDefault(),(0,d.Z)({url:p})||t?(0,u.lI)({href:p,queryParams:n,location:s},r,null):(0,u.G3)({event:e,href:a,history:o,target:"blank"===i?"blank":null})}})};var h=n(883119),m=n(785893);const g=({accessibilityLabel:e,children:t,external:n,externalQueryParams:i,inline:a=!1,newTab:r,nofollow:o,onTouch:s,onBlur:d,onFocus:c,pressState:u,rounding:_,to:g})=>(0,m.jsx)(p,{external:n,target:r?"blank":null,externalQueryParams:i,href:g,children:({navigate:n})=>(0,m.jsx)(h.rU,{accessibilityLabel:e,onBlur:d?({event:e})=>d(e):void 0,onFocus:c?({event:e})=>c(e):void 0,underline:"none",href:(0,l.Z)(g),display:a?"inlineBlock":"block",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),null==s||s(e),e.defaultPrevented||n(e)},rel:o?"nofollow":"none",rounding:_,tapStyle:(Array.isArray(u)?u:[u]).includes("compress")?"compress":"none",children:t})}),v=({external:e,externalQueryParams:t,newTab:n,onTouch:i,to:a,...o})=>(0,m.jsx)(p,{external:e,target:n?"blank":null,externalQueryParams:t,href:a,children:({navigate:e})=>(0,m.jsx)(r.Z,{onTouch:t=>{null==i||i(t),t.defaultPrevented||e(t)},...o})});var f=n(938917),y=n(112690),E=n(19121),S=n(30287),T=n(948376),I=n(773285),x=n(780280),P=n(698330),b=n(844974),A=n(339363),w=n(53987);const R=(e,t=!1)=>function({isAppUpsellDisabled:n,...r}){const{children:l,clientTrackingParams:d,deeplinkUri:c,external:u,onTouch:p,refresh:g,to:v,viewParameter:R,viewType:C}=r,O=(0,f.Z)(),[N,D]=(0,i.useState)(!1),[k,L]=(0,i.useState)(!1),{isAuth:j}=(0,E.Z)(),{userAgent:{platform:U},locale:M}=(0,x.B)(),F=(0,P.Tt)(),B=(0,y.Z)(),{checkExperiment:G}=(0,I.F)(),z=(0,_.useLocation)();(0,i.useEffect)((()=>{!async function(){if("getInstalledRelatedApps"in navigator){(await navigator.getInstalledRelatedApps()).length>0&&L(!0)}}()}),[]);const H=()=>{B({event_type:1701,view_type:C,view_parameter:R}),N&&D(!1)};return(0,m.jsxs)(h.xu,{"data-test-id":"deeplink-wrapper",children:[N&&(0,m.jsx)(a.Z,{clientTrackingParams:d,deepLinkUri:c,isOpen:!0,onDismiss:()=>{B({component:14157,element:10308,event_type:10220,view_type:C||202,view_parameter:R,aux_data:{app_upsell_type:"deep-link-app-upsell-modal"}})},onOpenInApp:()=>{(0,b.Nh)("deeplinkBehavior","branchfallback"),H()},shouldTrackDismiss:!0,to:v,viewParameter:R,viewType:C,within:"deep-link-app-upsell-modal"}),(0,m.jsx)(o.Z,{children:i=>(0,m.jsx)(e,{...r,onTouch:e=>{const a=O&&!n&&j&&!u&&!g&&!(0,S.FP)(window)&&!("ios"===U&&(M||"").startsWith("ar"))&&(0,T.kp)((0,s.Z)(null==F?void 0:F.created_at));if(a)if(G("mweb_auth_deep_link_app_upsell").group.startsWith("enabled_check_install")){"string"==typeof c&&(c||"").startsWith("/pin/")&&((0,w.uM)(z)||(0,w.am)(z)||(0,w.C$)(z))&&k&&(e.stopPropagation(),e.preventDefault(),D(!0))}else e.stopPropagation(),e.preventDefault(),D(!0);else"branchfallback"!==(0,b.qn)("deeplinkBehavior")||(0,A.qn)("fallbackAttempt")||(e.stopPropagation(),e.preventDefault(),(0,A.Nh)("fallbackAttempt",1),i(c,`${window.location.origin}${r=v,"string"==typeof r?r:`${r.pathname||""}${r.search?`?${r.search}`:""}`}`),H());var r;t&&a||!p||p(e)},children:l})})]})},C=R(g),O=R(v),N=R(r.Z,!0)},329900:(e,t,n)=>{n.d(t,{Z:()=>g});var i=n(172071),a=n(826067);const r="http://play.google.com/store/apps/details?id=com.pinterest",o=["access_token","new_password","new_password_confirm","password","next"],s=(e,t)=>t?(0,a.ru)(e,{invite_code:t}):e,l=(e,t,n)=>{if("ios"===t&&"string"==typeof e&&e.startsWith("discover/article/")){const t=e.split("/")[2];e=`discover_article/${t}/?is_deeplink=1`}return"string"==typeof e?s(e,n):"ios"===t||"ipad"===t?s(e.iOS,n):"android"===t?s(e.android,n):null},d=({deeplinkUri:e,fallbackUrl:t,invite_code:n,platform:s,redirectToLite:d,unauthId:c,userAgent:u})=>{if(e){const _=(({deeplinkUri:e,invite_code:t,platform:n,fallbackUrl:i,unauthId:r})=>({deeplink_path:l(e,n,t),current_page_url:(0,a.Gw)("undefined"!=typeof window?window.location.href:"",o),install_id:r,utm_source:140,utm_medium:2152,...i?{af_r:i}:null}))({deeplinkUri:e,fallbackUrl:t,invite_code:n,platform:s,unauthId:c,userAgent:u});if(i.Z.increment("mweb.deeplink",1,{platform:s}),n&&i.Z.increment("mweb.deeplink.invite_code",1),i.Z.increment("mweb.deeplink.unauthId",1,{withUnauthId:Boolean(c)}),d){i.Z.increment("mweb.deeplink.lite_link",1);const e=(({unauthId:e})=>{const t=(0,a.XP)({utm_source:"mweb",utm_medium:"upsell",utm_campaign:"twa",utm_content:e});return{referrer:encodeURI(t)}})({unauthId:c});window.location.href=(0,a.ru)("http://play.google.com/store/apps/details?id=com.pinterest.twa",e)}else if("android"===s){const t=(({deeplinkUri:e,invite_code:t,platform:n,unauthId:i})=>{const r=JSON.stringify({deeplink_path:l(e,n,t),current_page_url:(0,a.Gw)("undefined"!=typeof window?window.location.href:"",o),install_id:i});return{referrer:(0,a.XP)({utm_source:"mweb",utm_medium:"upsell",utm_content:r})}})({deeplinkUri:e,invite_code:n,platform:s,unauthId:c});"getInstalledRelatedApps"in navigator?navigator.getInstalledRelatedApps().then((e=>{if(e.length>0){const e=(0,a.ru)(window.location.href,_);window.open(e)}else window.location.href=(0,a.ru)(r,t)})).catch(i.Z.increment("mweb_android.deeplink.playStore.error",1)):window.location.href=(0,a.ru)(r,t)}else{if(i.Z.increment("mweb.deeplink.appsflyer_link",1),"ios"===s&&"undefined"!=typeof window&&window.location.href.includes("show_yip_modal"))return void(window.location.href=(0,a.ru)("https://pinterest.com/pinterest-predicts",_));window.location.href=(0,a.ru)("https://pinterest.onelink.me/TVSr/21e04bfd",_)}}};var c=n(619277),u=n(948376),_=n(780280),p=n(785893);function h({children:e,invite_code:t}){const{unauthId:n,userAgent:{platform:i,raw:a}}=(0,_.B)();return e((async(e,r)=>{d({deeplinkUri:e,fallbackUrl:r,invite_code:t,platform:i,redirectToLite:(0,u.Rp)({platform:i,userAgent:a}),unauthId:n,userAgent:a})}))}const m=e=>(0,p.jsx)(c.ty,{children:t=>(0,p.jsx)(h,{...e,invite_code:t})});m.displayName="DeepLinkNavigator";const g=m},79113:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(667294),a=n(124580),r=n(740990),o=n(223815),s=n(643010),l=n(968121),d=n(965900),c=n(883119),u=n(785893);const _={border:(0,s.Yc)()?void 0:"1px solid #efefef",width:"100vw",maxHeight:"100%",height:"100%",overflow:"auto",top:"0",left:"0",position:"fixed",backgroundColor:(0,s.Yc)()?"#000":"#fff",transition:"transform 0.3s ease-out",WebkitOverflowScrolling:"touch"},p={modalOpen:{__style:{..._}},modalClose:{__style:{..._,transform:"translate3d(0px, 100%, 0px)"}}};function h({accessibilityModalLabel:e,allowClickAndDrag:t,children:n,isOpen:s}){const{setAppFocusState:_}=(0,d.I)(),h=(0,i.useRef)(null);return(0,i.useEffect)((()=>(s&&(a.Z.pause(),_(!1),document.body&&(document.body.style.overflow="hidden")),()=>{s&&(a.Z.resume(),_(!0),document.body&&(document.body.style.overflow=""))})),[s,_]),(0,u.jsx)(o.Z,{allowClickAndDrag:t,children:(0,u.jsx)(c.mh,{zIndex:l.b7,children:(0,u.jsx)(c.xu,{display:"inlineBlock",role:"dialog","aria-label":e,children:(0,u.jsx)(c.xu,{ref:h,dangerouslySetInlineStyle:{__style:s?p.modalOpen.__style:p.modalClose.__style},children:(0,u.jsx)(r.Z.Provider,{value:h.current,children:n})})})})})}},326960:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(667294),a=n(172071),r=n(883119),o=n(813401),s=n(112690),l=n(785893);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(e,t)=>{const n=e&&e.replace(".","_");return t?n&&n.substring(0,50):n};class u extends i.Component{constructor(...e){super(...e),d(this,"state",{href:void 0}),d(this,"onEvent",(()=>new Promise(((e,t)=>{"undefined"==typeof window&&t();const{filename:n,imgSrc:i,isAndroidTwa:r,isChromeOnIOS:o,isUnauth:s,logContextEvent:l,category:d,viewParameter:u,viewType:_,pinId:p,imageSignature:h}=this.props,{href:m}=this.state;window.AndroidTwa&&window.AndroidTwa.downloadImage?(window.AndroidTwa.downloadImage(i,c(n,r)),e()):o?(this.imageDownload&&this.imageDownload.click(),e()):null==m&&fetch(i,{headers:new Headers({Origin:window.location.origin}),mode:"cors"}).then((e=>e.blob())).then((t=>{this.setState({href:window.URL.createObjectURL(t)},(()=>{this.imageDownload&&(this.imageDownload.click(),e())}))})).catch((()=>this.setState({href:this.DOWNLOAD_ERROR}))),a.Z.increment(`mweb.${s?"unauth":"auth"}.download.click.${d||"no_category"}`),l({event_type:82,object_id_str:p,view_type:_||3,view_parameter:u||139,aux_data:{image_signature:h}})})))),d(this,"DOWNLOAD_ERROR","error")}render(){const{children:e,filename:t,imgSrc:n,isAndroidTwa:a,isChromeOnIOS:o}=this.props,{href:s}=this.state,d=null!=s&&s!==this.DOWNLOAD_ERROR;return(0,l.jsxs)(i.Fragment,{children:[e(this.onEvent),o&&n?(0,l.jsx)(r.xu,{display:"none",children:(0,l.jsx)("a",{ref:e=>this.imageDownload=e,rel:"noopener noreferrer",tabIndex:-1,target:"_blank",href:n})}):d&&(0,l.jsx)(r.xu,{display:"none",children:(0,l.jsx)("a",{ref:e=>this.imageDownload=e,tabIndex:-1,download:c(t,a),href:s})})]})}}function _(e){const t=(0,o.xC)(),n=(0,s.Z)();return(0,l.jsx)(u,{...e,isAndroidTwa:t,logContextEvent:n})}},87134:(e,t,n)=>{n.d(t,{Zt:()=>q,iK:()=>$,ZP:()=>X,cV:()=>W});var i=n(667294),a=n(702664),r=n(157796),o=n(391254),s=n(283698),l=n(313047),d=n(100183),c=n(639952),u=n(81636),_=n(898781),p=n(883119),h=n(785893);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g="BizNuxHomefeedLoader",v=[140,220,265],f=["#E2780D","#0074e8","#0FA573","#FAB904","#133A5E","#FF8A8A"],y=e=>({position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",zIndex:"1",pointerEvents:"none",...e?{WebkitAnimationDuration:".4s",WebkitAnimationDelay:"1.15s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:`${g}_FadeOut`,animationDuration:".5s",animationDelay:"1.2s",animationFillMode:"forwards",animationName:`${g}_FadeOut`}:{}}),E=e=>e?{WebkitAnimationDuration:".4s",WebkitAnimationDelay:".5s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:`${g}_FadeOut`,animationDuration:".4s",animationDelay:".5s",animationFillMode:"forwards",animationName:`${g}_FadeOut`}:{},S=[`${g}_FadeOut {\n from { opacity: 1 }\n to { opacity: 0 }\n }`,`${g}_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 T extends i.PureComponent{constructor(...e){super(...e),m(this,"state",{enterAnimationFinished:!1,startExitAnimation:!1}),m(this,"enterAnimationDidFinished",(()=>{this.setState({enterAnimationFinished:!0})})),m(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||(0,s.Z)(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{const r=a%this.numberOfColumns,o=Math.floor(a/this.numberOfColumns),s=f[a%f.length],l=n[r],d=this.computeGridCellLayout(r,o,l),c=(({color:e,startAnimation:t,originDimension:n,destinationDimension:i={}})=>{const a=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?a:{}}})({color:s,startAnimation:t,originDimension:d,destinationDimension:i&&i[r][o]});return n[r]+=16+d.height,(0,h.jsx)(p.xu,{dangerouslySetInlineStyle:{__style:c},children:(0,h.jsx)(p.xu,{margin:5,display:"flex",justifyContent:"start",alignItems:"start",dangerouslySetInlineStyle:{__style:E(t)},children:(0,h.jsx)(p.X6,{color:"light",size:"500",children:e.name})})},a)}));return(0,h.jsx)(p.xu,{dangerouslySetInlineStyle:{__style:{position:"absolute",height:"100%",width:"100%",left:0,top:0,WebkitTransform:"translateY(100vh)",WebkitAnimationDuration:".8s",WebkitAnimationDelay:"1.2s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:`${g}_SlideUp`,transform:"translateY(100vh)",animationDuration:".8s",animationDelay:"1.2s",animationFillMode:"forwards",animationName:`${g}_SlideUp`}},children:a})}render(){const{startExitAnimation:e}=this.state;return(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(o.Z,{unsafeCSS:(0,d.Ll)(S)}),(0,h.jsx)(p.xu,{color:"default",dangerouslySetInlineStyle:{__style:y(e)},children:(0,h.jsxs)(p.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(r.Z,{duration:3700,finalProgress:100}),(0,h.jsx)(p.xu,{margin:10,dangerouslySetInlineStyle:{__style:{WebkitAnimationDuration:".5s",WebkitAnimationDelay:"1.4s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:`${g}_FadeOut`,animationDuration:".5s",animationDelay:"1.25s",animationFillMode:"forwards",animationName:`${g}_FadeOut`}},children:(0,h.jsx)(p.X6,{children:this.props.i18n._('Personalizing your feed with...', 'Loading homefeed details', 'Loading homefeed details')})})]}),this.renderGrid()]})})]})}}function I(e){const t=(0,_.ZP)(),n=(0,a.useSelector)((({topics:e})=>e)),i=(0,a.useDispatch)();return(0,u.Q)({view_type:24,view_parameter:261}),(0,h.jsx)(T,{...e,dismissLoader:()=>i((0,c.MI)(!1)),i18n:t,selectedTopics:Object.keys(n).filter((e=>n[e].is_followed)).map((e=>n[e]))})}var x=n(223019),P=n(491563),b=n(920231),A=n(698629),w=n(204283),R=n(635225),C=n(889884),O=n(740990),N=n(182476),D=n(784590),k=n(844887),L=n(780280),j=n(317254),U=n(50286),M=n(444445),F=n(679031);const B=e=>`BREAK_IN_${e}`,G=new Map,z=e=>{const t=G.get(e);if(t)return t;const n=Object.freeze({type:"FEED_BREAK_IN",id:B(e)});return G.set(e,n),n};var H=n(276775);function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const V={},W=e=>{V[e]&&V[e].handlePullToRefresh()},K=()=>{const{plpImageRenderData:e}=(0,k.HW)(),[t]=e;return t?t.pin_id:null};class Y extends i.PureComponent{constructor(...e){super(...e),Z(this,"state",{refreshing:!1,unauthLandingPinStateForAuthHomefeed:this.props.authHomefeedComponentDidUpdate?{pinId:K(),feedItem:null}:null}),Z(this,"backOnlineAutoFetchResource",(()=>{this.props.pagination.loadNext()})),Z(this,"handlePullToRefresh",(()=>{this.props.pagination.refetch(),this.setState({refreshing:!0})})),Z(this,"gridContainerRef",(0,i.createRef)()),Z(this,"renderFeedPin",((e,t)=>{const{feedItemProps:n,location:i,performanceOptimization:a,renderSquarePins:r,showSeoMetadata:o,squarePins:s,trafficSource:l,duploUnauthRelatedPinsAutoplayExpGroup:d,unauthRelatedProductsExpGroup:c}=this.props,{auxData:u,componentType:_,feedback:p,imageOnly:m,impressionData:g,objectIdStr:v,oneTapSave:f,onFeedItemClick:y,onPinLinkClick:E,shouldAllowProductPriceIndicator:S,showSeoMetadata:T,viewData:I,viewParameter:x,viewType:P}=n||{},b=(i.search||"").includes("force_seo"),A=!(null==a||!a.lazyLoadBelowFoldIndex)&&t>a.lazyLoadBelowFoldIndex,R=!(null==a||!a.priorityFetchAboveFoldIndex)&&t<=a.priorityFetchAboveFoldIndex;return(0,h.jsx)(w.default,{auxData:u,componentType:_||0,duploFeedItemProps:{onPinClick:y,onPinLinkClick:E,showSeoMetadata:o||b||T},duploIsSquarePin:r||s,duploLazyLoadImage:A,duploOneTapSave:f,duploPriorityFetchImage:R,duploShouldAllowProductPriceIndicator:S,feedback:p,imageOnlyOption:m?"image-only":"default",impressionData:g,objectIdStr:v,pinId:e.id,slotIndex:t,trackingParams:e.trackingParams,trafficSource:l,viewData:I,viewParameter:x,duploUnauthRelatedPinsAutoplayExpGroup:d,unauthRelatedProductsExpGroup:c,viewType:P||1})}))}componentDidMount(){var e,t;window.addEventListener("online",this.backOnlineAutoFetchResource),e=this.props.feedKey,t=this,V[e]=t}componentWillUnmount(){var e;window.removeEventListener("online",this.backOnlineAutoFetchResource),e=this.props.feedKey,delete V[e]}componentDidUpdate(e){const{refreshing:t,unauthLandingPinStateForAuthHomefeed:n}=this.state,{feedItems:i,authHomefeedComponentDidUpdate:a}=this.props,r=t&&e.pagination.isLoadingNext&&!this.props.pagination.isLoadingNext;if(r&&this.setState({refreshing:!1}),a&&n){const t=a({feedItems:i,prevFeedItems:e.feedItems,finishedRefresh:r,unauthLandingPinStateForAuthHomefeed:n});t&&this.setState({unauthLandingPinStateForAuthHomefeed:t})}}render(){const{deviceType:e,emptyState:t,feedItemProps:n,feedItems:a,feedItemsAdjustment:r,feedKey:o,gridConfig:s,pagination:l,pullToRefresh:d,renderFeedItem:c,serverRender:u,showBizNuxHomefeedLoader:_,trafficSource:m,visuallyCompleteProfilerOptions:g}=this.props,{unauthLandingPinStateForAuthHomefeed:v}=this.state,f=null!=v&&v.feedItem&&a.length?[v.feedItem,...a]:a,{viewParameter:y,viewType:E}=n||{},{key:S}=s||{},T=o+(S?`|${S}`:""),w="user_search"===m,D=w?window.innerWidth-16:200,k={columnWidth:"desktop"===e?M.yF:D,renderItem:({data:e,itemIdx:t})=>{if(c){const n=c(e,t);if("FALLBACK_TO_DEFAULT"!==n)return n}switch(e.type){case"pin":return(0,h.jsx)(F.cn,{children:this.renderFeedPin(e,t)});case"user":return(0,h.jsx)(P.Z,{truncateName:!0,userId:e.id,userSearchRepStyle:"user_search"===m,viewParameter:y,viewType:E});case"board":return(0,h.jsx)(x.Z,{boardId:e.id,type:"grid",viewParameter:y,viewType:E});case"topic":return(0,h.jsx)(N.Z,{id:e.id,shouldClickthrough:!0,showFollowButton:!0,showFollowerCount:!0,viewParameter:y,viewType:E});case"story":return"number"==typeof y?(0,h.jsx)(R.Z,{slotIndex:t,storyId:e.id,viewParameter:y,viewType:E||1,pinGraphqlRef:null}):null;case"FEED_BREAK_IN":return r&&"breakIn"===r.type&&r.value.content;default:return null}},gutterWidth:"desktop"===e?4*M.jC:void 0,loadItems:l.loadNext,minCols:w?1:2,...s},L=!_&&l.isLoadingNext&&0===f.length&&!this.state.refreshing,[U,B,G]="fullWidthBreakIn"===(null==r?void 0:r.type)?[f.slice(0,r.value.index),r.value.content,f.slice(r.value.index)]:[f,null,[]],z="desktop"===e&&"flashlight"===m,H=z?0:M.qG;return(0,h.jsxs)(p.xu,{"data-test-id":"MobileFeed",children:[(0,h.jsx)(C.Z,{enabled:!!d,onPull:this.handlePullToRefresh,refreshing:this.state.refreshing}),(0,h.jsxs)(p.xu,{marginStart:H,marginEnd:H,"data-test-id":"grid",ref:this.gridContainerRef,opacity:this.state.refreshing?.5:1,children:[(0,h.jsx)(j.Z,{includeBackgroundImages:null==g?void 0:g.includeBackgroundImages,includeVideos:null==g?void 0:g.includeVideos,isAtEndOfFeed:!l.hasNext,itemCount:f.length,pinData:null==g?void 0:g.pins,children:f.length?(0,h.jsx)(p.xu,{"data-test-id":"feed",marginTop:(0,F.kk)({isDesktop:"desktop"===e}),children:(0,h.jsx)(O.Z.Consumer,{children:e=>(0,h.jsx)(i.Fragment,{children:(0,h.jsxs)(F.c$,{feedRef:this.gridContainerRef,viewParameter:y,viewType:E||1,children:[(0,h.jsx)(b.Z,{cacheKey:T,id:u?o:void 0,items:U,scrollContainerRef:e,serverRender:u,...k}),B,G.length>0&&(0,h.jsx)(b.Z,{cacheKey:`${T}_afterBreak`,items:G,scrollContainerRef:e,...k})]})})})}):l.isLoadingNext?(0,h.jsx)(F.gG,{}):null!=t?t:null}),L&&(0,h.jsx)(p.xu,{column:12,paddingY:2,children:(0,h.jsx)(A.Z,{partialViewportWidth:z})}),_&&(0,h.jsx)(I,{homefeedLoading:l.isLoadingNext,gridContainerRef:this.gridContainerRef})]})]})}}function q({feedItems:e,pagination:t,...n}){const{feedItemsAdjustment:i}=n,r=(0,H.useLocation)(),o=(0,U.ZP)(),{isAuthenticated:s,isBot:l}=(0,L.B)(),{isBizNuxHomefeedLoadShown:d}=(0,a.useSelector)((({session:e})=>e));let c=e;return"breakIn"===(null==i?void 0:i.type)?c=(({breakIn:{index:e},items:t})=>t.length{var t;return null!==(t=e[r.feedKey])&&void 0!==t?t:[]}));return(0,h.jsx)(q,{...r,feedItems:o,pagination:{hasNext:!e,isLoadingNext:t,loadNext:()=>n(),refetch:()=>i()}})}function X({resourceConfig:e,...t}){const n=(0,D.Z)(e);return(0,h.jsx)($,{...t,resource:n})}},635974:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(702664),a=n(815613),r=n(698330),o=n(461773),s=n(785893);function l({user:e,invertColors:t,isSecondaryButton:n,onTap:l,size:d,viewParameter:c,viewType:u}){const _=(0,i.useDispatch)(),{id:p}=null!=e?e:{},h=(0,r.kW)(),m=h[p]?h[p].explicitly_followed_by_me:null==e?void 0:e.explicitly_followed_by_me;return(0,s.jsx)(a.Z,{id:p,onFollow:()=>{_((0,o.ZN)(p)),l&&l()},onUnfollow:()=>{_((0,o.fv)(p)),l&&l()},size:d,invertColors:t,isSecondaryButton:n,isFollowed:m,isUserFollowButton:!0,followEventType:45,unfollowEventType:46,viewParameter:c,viewType:u})}},999594:(e,t,n)=>{n.d(t,{C:()=>a,e:()=>i});const i=0,a=new Set(["/","/today"])},889884:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(667294),a=n(883119),r=n(785893);function o({text:e,isSelected:t,icon:n,animationType:i,position:o,hasStartPulling:s,isExecuted:l}){return(0,r.jsxs)(a.xu,{display:"flex",direction:"column",alignItems:"center",marginBottom:6,children:[(0,r.jsx)(a.xu,{color:t?"dark":"secondary","data-test-id":"action-animated-icon",rounding:"circle",padding:s?4:0,dangerouslySetInlineStyle:t&&l?{__style:{transform:"rotate(360deg)",transition:"all .9s ease-out"}}:{__style:{transition:"all .3s ease-out",marginTop:t&&"move"===i?40:0}},children:(0,r.jsx)(a.JO,{size:100*o<24?100*o:24,icon:n,accessibilityLabel:e,color:t?"light":"dark"})}),(0,r.jsx)(a.xu,{padding:1,"data-test-id":"action-animated-text",dangerouslySetInlineStyle:{__style:{opacity:t?1:0,transition:"all .3s ease-out"}},children:(0,r.jsx)(a.xv,{align:"center",size:"100",children:e})})]})}var s=n(898781);function l({enabled:e,onSelect:t,refreshing:n}){const a=(0,i.useRef)(null),[r,o]=(0,i.useState)(0),[s,l]=(0,i.useState)(!1),d=n?0:r/250,c=d>0,u=()=>{l(!1),o(0)};(0,i.useEffect)((()=>{if(e){const e=e=>{window.scrollY<=0&&!n&&(a.current=e.touches[0].clientY)},i=e=>{if(a.current){const t=.5*(e.touches[0].clientY-a.current);t>0&&(o(t),e.preventDefault())}},s=e=>{a.current&&(l(!0),t({pullDistance:r,position:d,resetState:u}),a.current=null)};return window.addEventListener("touchstart",e),window.addEventListener("touchmove",i,{passive:!1}),window.addEventListener("touchend",s),()=>{window.removeEventListener("touchstart",e),window.removeEventListener("touchmove",i,{passive:!1}),window.removeEventListener("touchend",s)}}}),[e,t,r,n,d]);const _=a.current;return{pullDistance:r,hasStartPulling:c,position:d,startYRefCurrent:_,PULL_MENU_DISTANCE:250,isExecuted:s}}var d=n(407043),c=n(276775);function u({enabled:e,onPull:t,refreshing:n}){const i=(0,s.ZP)(),u=(0,c.useHistory)(),{logContextEvent:_}=(0,d.v)(),p=e=>e>=.6,h=e=>e>.4&&e<.6,{position:m,hasStartPulling:g,PULL_MENU_DISTANCE:v,isExecuted:f}=l({enabled:e,onSelect:e=>{const{position:n,resetState:i}=e;h(n)?setTimeout((()=>{_({view_type:1,event_type:158,view_parameter:92}),t(),i()}),500):p(n)?setTimeout((()=>{_({view_type:1,event_type:10144,view_parameter:92}),u.push("edit/"),i()}),500):i()},refreshing:n}),y=i._('Refresh', 'pullMenu.refresh', 'Pull down on grid to refresh items'),E=i._('Edit Feed', 'pullMenu.goTuner', 'Pull down on grid to edit your feed');return(0,r.jsx)(a.xu,{children:e&&(0,r.jsxs)(a.xu,{display:"flex",alignItems:"center",direction:"column",height:m*v,justifyContent:"center",marginBottom:g?4:0,children:[(0,r.jsx)(o,{text:E,isSelected:p(m),icon:"edit",animationType:"move",position:m,hasStartPulling:g,isExecuted:f}),(0,r.jsx)(o,{text:y,isSelected:h(m),icon:"refresh",position:m,hasStartPulling:g,isExecuted:f})]})})}function _({enabled:e,onPull:t,refreshing:n}){const i=(0,s.ZP)(),{logContextEvent:o}=(0,d.v)(),{position:c,startYRefCurrent:u,pullDistance:_}=l({enabled:e,onSelect:e=>{const{pullDistance:n,resetState:i}=e;n>=120&&(o({view_type:1,event_type:158,view_parameter:92}),t()),i()},refreshing:n}),p=Math.min(c,1),h=i._('Pull to refresh', 'Pull down on grid to refresh items', 'Pull down on grid to refresh items');return(0,r.jsx)(a.xu,{children:e&&(0,r.jsx)(a.xu,{display:"flex",alignItems:"center",justifyContent:"center",height:120*c,dangerouslySetInlineStyle:{__style:{opacity:p,transition:null===u?"all .3s ease-out":void 0}},children:(0,r.jsx)(a.JO,{size:40,icon:u&&_<120?"arrow-circle-down":"arrow-circle-up",accessibilityLabel:h})})})}var p=n(773285);function h({enabled:e,onPull:t,refreshing:n}){const{checkExperiment:a}=(0,p.F)(),{anyEnabled:o}=a("hfp_drive_traffic_to_homefeed_tuner_mweb");return(0,r.jsx)(i.Fragment,{children:o?(0,r.jsx)(u,{enabled:e,onPull:t,refreshing:n}):(0,r.jsx)(_,{enabled:e,onPull:t,refreshing:n})})}},861411:(e,t,n)=>{n.d(t,{fv:()=>v,GR:()=>p,Hs:()=>y,Mv:()=>m,uc:()=>g,dL:()=>h,qS:()=>f,Y4:()=>T,HE:()=>S,Cy:()=>E});var i=n(667294),a=n(973935),r=n(124580),o=n(407043),s=n(785893);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends i.Component{constructor(...e){super(...e),l(this,"observe",(()=>{try{if(this.node=(0,a.findDOMNode)(this),this.node instanceof HTMLElement){const{pinIdStr:e,newsIdStr:t}=this.props.eventData;r.Z.start(this.node).onExitViewport(this.logImpression).setDebugId(e||t||"unknown")}}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}})),l(this,"logImpression",(e=>{this.props.logImpression({viewData:this.props.viewData||{},viewType:this.props.viewType,viewParameter:this.props.viewParameter,eventType:this.props.eventType,impressionType:this.props.impressionType,auxData:this.props.auxData,component:this.props.component,objectIdStr:this.props.objectIdStr,eventData:{endTime:e.endTime,time:e.startTime,...this.props.eventData}})}))}componentDidMount(){this.props.isPaused||this.observe()}componentDidUpdate(e){e.isPaused&&!this.props.isPaused&&this.observe()}componentWillUnmount(){this.node instanceof HTMLElement&&r.Z.stop(this.node)}render(){return i.Children.only(this.props.children)}}function c(e){const{logImpression:t}=(0,o.v)();return(0,s.jsx)(d,{...e,logImpression:t})}var u=n(773285);function _({auxData:e,component:t,eventData:n,eventType:a,impressionType:s,isPaused:l,objectIdStr:d,viewData:c,viewType:_,viewParameter:p}){const h=(0,i.useRef)(null),{logImpression:m}=(0,o.v)(),{checkExperiment:g}=(0,u.F)(),v=g("web_mweb_pin_impression_add_width_height").anyEnabled,f=(0,i.useCallback)((()=>{const i=i=>{var r,o,l,u;m({viewData:c||{},viewType:_,viewParameter:p,eventType:a,impressionType:s,auxData:e,component:t,objectIdStr:d,eventData:{endTime:i.endTime,time:i.startTime,pinCellWidth:v?(null===(r=h.current)||void 0===r?void 0:r.getBoundingClientRect().width)||0:void 0,pinCellHeight:v?(null===(o=h.current)||void 0===o?void 0:o.getBoundingClientRect().height)||0:void 0,windowWidth:v?null===(l=window)||void 0===l?void 0:l.innerWidth:void 0,windowHeight:v?null===(u=window)||void 0===u?void 0:u.innerHeight:void 0,...n}})};try{if(h.current instanceof HTMLElement){const{pinIdStr:e,newsIdStr:t}=n;r.Z.start(h.current).onExitViewport(i).setDebugId(e||t||"unknown")}}catch(o){window.console.error('Can only track impressions for type "HTMLElement"')}}),[h.current]);return(0,i.useEffect)((()=>{l||f();const e=h.current;return()=>{e instanceof HTMLElement&&r.Z.stop(e)}}),[l,f]),h}const p=e=>(0,s.jsx)(c,{eventData:{...e.impressionData||{},pinIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:18,impressionType:"pinImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),h=e=>{const t=_({eventData:{...e.impressionData||{},pinIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:18,impressionType:"pinImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},m=e=>{const t=_({eventData:{newsIdStr:e.notificationId,newsType:e.newsType,displayMode:e.displayMode,newsIndex:e.newsIndex||0,tapItemIdStr:e.tapItemIdStr},auxData:e.auxData||{},eventType:4111,impressionType:"notificationDetailImpressions",loggingId:e.notificationId,viewType:107,viewParameter:3082});return e.children({impressionTrackerRef:t})},g=e=>{const t=_({eventData:{newsIdStr:e.notificationId,newsType:e.newsType},auxData:e.auxData||{},eventType:4110,impressionType:"notificationFeedImpressions",loggingId:e.notificationId,viewType:107,viewParameter:3081});return e.children({impressionTrackerRef:t})},v=e=>(0,s.jsx)(c,{eventData:{...e.impressionData||{},articleIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:3829,impressionType:"articleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),f=e=>{const t=_({eventData:{...e.impressionData||{},storyIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:170,impressionType:"storyImpression",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},y=e=>(0,s.jsx)(c,{eventData:{...e.impressionData||{},storyIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:170,impressionType:"storyImpression",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),E=e=>{const t=_({eventData:{...e.impressionData||{},userIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0},auxData:e.auxData||{},component:e.component,eventType:3704,impressionType:"userImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},S=e=>{const t=_({eventData:{...e.impressionData||{},topicIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0},auxData:e.auxData||{},component:e.component,eventType:3703,impressionType:"topicImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},T=e=>{const t=_({eventData:{...e.impressionData||{},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:8569,impressionType:"todayArticleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})}},63552:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),a=n(785893);function r({children:e,onMouseEnter:t,onMouseLeave:n,onTouch:r,rounding:o,fullWidth:s=!1,pressState:l="none",accessibilityLabel:d,role:c}){const u=(Array.isArray(l)?l:[l]).includes("compress");return(0,a.jsx)(i.iP,{fullWidth:s,onMouseEnter:t&&(({event:e})=>t(e)),onMouseLeave:n&&(({event:e})=>n(e)),onTap:r&&(({event:e})=>r(e)),rounding:o,tapStyle:u?"compress":"none",accessibilityLabel:d,role:c,children:e})}},44846:(e,t,n)=>{n.d(t,{Zk:()=>J,Z7:()=>ee,wt:()=>Q,ZP:()=>se});var i=n(667294),a=n(702664),r=n(333312);const o=e=>{const t=e.split("/");return 4===t.length?"pin"===t[1]&&""===t[3]:3===t.length&&("pin"===t[1]&&""!==t[2])};var s=n(926275),l=n(375574),d=n(898781),c=n(883119),u=n(785893);const _=({color:e="subtle",showLabel:t=!1,viewType:n})=>{const i=(0,d.ZP)();return(0,u.jsx)(c.xu,{rounding:3,flex:"grow",children:(0,u.jsxs)(c.xu,{display:"flex",justifyContent:"center",position:"relative",direction:"column",children:[(0,u.jsx)(c.xu,{display:"flex",justifyContent:"center",padding:1,children:(0,u.jsx)(l.Z,{elementType:249,iconButtonColor:"gray",iconButtonSize:"xl",viewType:n})}),t&&(0,u.jsx)(c.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{WebkitUserSelect:"none"}},children:(0,u.jsx)(c.xv,{align:"center",size:"100",lineClamp:1,color:e,children:i._('Create', 'nav.navFooterAdd.createPinButton', 'Create pin button on the Nav bar')})})]})})};var p=n(116303);const h=({height:e,width:t})=>(0,u.jsx)(c.xu,{alignItems:"center",color:"primary",dangerouslySetInlineStyle:{__style:{padding:"0 3px 0 2px"}},display:"flex",height:e,justifyContent:"center",width:t,position:"absolute",rounding:"pill",children:(0,u.jsx)(c.xv,{align:"center",color:"inverse",size:"100",weight:"bold",children:(0,u.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{padding:"0 0 1px 1px"}},children:" "})})}),m={zIndex:1,position:"relative"},g=(0,i.forwardRef)((({accessibilityLabel:e,avatarSrc:t,badge:n,badgeMargins:a,color:r,flyoutText:o,icon:s,onTouch:l,showFlyout:_,showFlyoutButton:g,showLabel:v,svgPath:f,title:y,to:E},S)=>{const T=(0,d.ZP)(),[I,x]=(0,i.useState)(!1),P=(0,i.useRef)(),b="nav-bar-"+String(s);return(0,u.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:I?m:{}},flex:"grow",children:(0,u.jsx)(c.iP,{onBlur:()=>x(!1),onFocus:()=>x(!0),onTap:({event:e})=>l(e),tapStyle:"compress",rounding:v?4:6,role:"link",href:E,children:(0,u.jsxs)(c.xu,{display:"flex",justifyContent:"center",position:"relative",color:"transparent",direction:"column",rounding:3,"data-test-id":b,children:[(0,u.jsxs)(c.xu,{position:"relative",display:"flex",justifyContent:"center",ref:S,children:[(0,u.jsx)(c.xu,{padding:2,ref:P,children:t?(0,u.jsx)(c.xu,{rounding:"circle",dangerouslySetInlineStyle:{__style:{boxShadow:"default"===r?"0 0 0 2px black":"0 0 0 2px transparent"}},children:(0,u.jsx)(p.Z,{name:e,src:t,size:"xs"})}):(0,u.jsx)(c.JO,{accessibilityLabel:e,icon:s,color:r,size:24,inline:!0,dangerouslySetSvgPath:f?{__path:f}:void 0})}),n&&(0,u.jsx)(c.xu,{marginStart:null==a?void 0:a.marginLeft,marginEnd:null==a?void 0:a.marginRight,marginTop:null==a?void 0:a.marginTop,marginBottom:null==a?void 0:a.marginBottom,position:"absolute",children:n.text?(0,u.jsx)(c.Ct,{position:"middle",type:"error",text:n.text.toString()||""}):(0,u.jsx)(h,{height:n.height,width:n.width})}),_&&(0,u.jsx)(c.J2,{anchor:P.current,color:"blue",onDismiss:()=>{},showCaret:!0,size:"flexible",children:(0,u.jsxs)(c.xu,{alignItems:"center",direction:"column",display:"flex",justifyContent:"center",minHeight:70,paddingX:g?4:0,paddingY:g?4:1,width:g?200:132,children:[(0,u.jsx)(c.xv,{align:"center",color:"inverse",children:o||T._('Explore something new', 'Flyout message prompting user to click on the explore icon.', 'unauthNavBar.explore.flyout')}),g?(0,u.jsx)(c.xu,{marginTop:4,children:(0,u.jsx)(c.zx,{role:"link",accessibilityLabel:T._('Explore', 'navFooter.flyout.button', 'Button on flyout to upsell home icon'),color:"white",href:E,onClick:({event:e})=>l(e),text:T._('Explore', 'navFooter.flyout.button', 'Button on flyout to upsell home icon')})}):null]})})]}),v&&(0,u.jsx)(c.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{WebkitUserSelect:"none"}},children:(0,u.jsx)(c.xv,{align:"center",color:r,size:"100",lineClamp:1,children:y})})]})})})})),v=({accessibilityLabel:e,homeFlyoutText:t,isAuthenticated:n,onTouch:a,showHomeBadge:r,shouldUpsellHomePage:o,showHomeFlyoutWithButton:s,selectedItem:l,showLabel:d,title:_})=>{const p={badge:{width:8,height:8},badgeMargins:{marginLeft:6,marginTop:1}},h=(0,i.useRef)(null);return(0,u.jsxs)(i.Fragment,{children:[(0,u.jsx)(g,{accessibilityLabel:e,badge:r?p.badge:void 0,badgeMargins:r?p.badgeMargins:void 0,color:"home"===l?"default":"subtle",flyoutText:t,onTouch:()=>{a()},showFlyout:s,showFlyoutButton:s,showLabel:d,svgPath:"M12 0L1 10v14h8v-7a3 3 0 116 0v7h8V10z",title:_,to:n?"/":"/ideas/",ref:h}),o&&(0,u.jsx)(c.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},children:(0,u.jsx)(c.o3,{size:90})})]})};var f=n(121093),y=n(461355),E=n(332611),S=n(378518),T=n(780280);const I=[501227],x={badge:{width:8,height:8,text:" "},badgeMargins:{marginLeft:6,marginTop:1}},P=(0,i.memo)((({avatarSrc:e,completeExperience:t,experience:n,isActive:a,locationPath:r,numUnauthSavedPins:o,onTouch:s,showLabel:l,username:c})=>{const _=(0,d.ZP)(),{isAuthenticated:p}=(0,T.B)(),h=r.startsWith(`/${c}`),m=n&&I.includes(n.experience_id);(0,i.useEffect)((()=>{if(m&&h){const{experience_id:e,placement_id:i}=n||{};t(i,e)}}));const v=t=>(0,u.jsx)(g,{accessibilityLabel:_._('My profile', 'Nav bar icon', 'Nav bar icon'),avatarSrc:e,color:a?"default":"subtle",icon:"person",onTouch:s,showLabel:l,title:_._('Saved', 'Saved button on the Nav bar', 'Saved button on the Nav bar'),to:c?`/${c}/`:p?"/":"/unauth-profile/",...t}),y=!p&&o?{badge:{text:o},badgeMargins:{marginLeft:6}}:{};return m&&!h?(0,u.jsx)(f.Z,{eligibleIds:I,experience:n,children:v(x)}):v(y)})),b=(0,a.connect)(null,(e=>({completeExperience:(t,n)=>e((0,E.CK)(t,n))})))((e=>{const t=(0,S._)({id:1000181});return(0,u.jsx)(y.Z,{children:(0,u.jsx)(P,{experience:t,...e})})})),A=({accessibilityLabel:e,onTouch:t,selectedItem:n,showLabel:a,title:r})=>{const o=(0,i.useRef)(null);return(0,u.jsx)(i.Fragment,{children:(0,u.jsx)(g,{accessibilityLabel:e,color:"videos"===n?"default":"subtle",onTouch:()=>{t()},showLabel:a,svgPath:"M10.53 15.85A1 1 0 019 15V9a1 1 0 011.53-.85l4.98 3a1 1 0 010 1.7zM0 8a8 8 0 018-8h8a8 8 0 018 8v8a8 8 0 01-8 8H8a8 8 0 01-8-8zm4 0v8a4 4 0 004 4h8a4 4 0 004-4V8a4 4 0 00-4-4H8a4 4 0 00-4 4z",title:r,to:"/videos/",ref:o})})};var w=n(379764),R=n(412067);function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class O extends i.PureComponent{constructor(...e){super(...e),C(this,"state",{newsBadgeCount:0,unreadMessageCount:0,showBadge:!1}),C(this,"clearNotificationBadge",(()=>{const{isAuthenticated:e,onTouch:t}=this.props;e&&(R.Z.create("NewsHubBadgeResource",{}).callDelete({showError:!1}),this.setState({newsBadgeCount:0,showBadge:!1})),t&&t()})),C(this,"getBadging",(()=>{R.Z.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:a,unreadMessageCount:r,showBadge:o}=this.state,s=a+r,l=s>0&&s<100?s:"99+",d=l.toString().length,c={width:1===d?16:2===d?24:30,height:16,text:l},_=r>0?"/inbox/":"/notifications/";return(0,u.jsx)(g,{accessibilityLabel:this.props.i18n._('News notifications and messages', 'mweb.navbar.notifs_button.a11y', 'accessibility label for notifs icon button'),badge:o&&c||void 0,badgeMargins:{marginLeft:4},icon:n,to:_,color:e?"default":"subtle",onTouch:"/notifications/"===_?this.clearNotificationBadge:i,title:this.props.i18n._('Notifications', 'Notifications button on the Nav bar', 'Notifications button on the Nav bar'),showLabel:t})}}function N(e){const t=(0,d.ZP)(),{isAuthenticated:n}=(0,T.B)();return(0,u.jsx)(O,{...e,i18n:t,isAuthenticated:n})}var D=n(87134),k=n(385740),L=n(276775);class j 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(){(0,D.cV)("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}}function U(e){const t=(0,L.useLocation)(),{viewParameter:n,viewData:i}=(0,k.SU)();return(0,u.jsx)(j,{...e,location:t,viewParameter:n,viewData:i})}var M=n(941646),F=n(313047),B=n(995081),G=n(966113),z=n(29857),H=n(867820),Z=n(773285),V=n(50286),W=n(118405),K=n(112690),Y=n(52022),q=n(999594),$=n(534427);function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const J=52,Q=160,ee=60,te={},ne=e=>{const t=e>100?e-100:5,n=Math.max(e-t,0);window.scrollTo(0,n),n>0&&window.requestAnimationFrame((()=>ne(n)))},ie=e=>"/"===e||o(e)||e.startsWith("/search/")||"/inbox/"===e||"/inbox/compose/"===e||"/notifications/"===e||e.includes("/report/"),ae=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}},re=(e,t,n)=>{const i=te[e.key];if(i)return i;const a=e.pathname;return"/"===a||!n&&"/ideas/"===a?"home":a.startsWith("/inbox")?"inbox":a.startsWith("/notifications")?"notifications":a.startsWith("/videos")?"videos":a.startsWith("/today")?"today":a.startsWith("/search")?"search":(0,L.matchPath)(a,{path:`/${t}/(|pins|boards|tried)?`,exact:!0})||!n&&a.startsWith("/unauth-profile")?"profile":null};class oe extends i.PureComponent{constructor(...e){super(...e),X(this,"state",{bottom:0,hasScrolled:!1,isNavFooterHidden:!1,prevLocation:this.props.location,selectedItem:re(this.props.location,this.props.username,this.props.isAuthenticated),showUnauthNavExplorePrompt:!1}),X(this,"profileButtonRef",(0,i.createRef)()),X(this,"handleScrollForIphoneX",(()=>{window.innerHeight!==this.currInnerHeight&&(this.currInnerHeight=window.innerHeight,this.forceUpdate())})),X(this,"selectItem",(e=>{const{logContextEvent:t,viewData:n,viewParameter:i,viewType:a}=this.props;this.setState({selectedItem:e}),t({component:8,element:ae(e),event_type:102,view_data:n,view_type:a,view_parameter:i})})),X(this,"handleHomeTouch",(()=>{const{activeHomefeedTabIndex:e,isAuthenticated:t,location:n,setHomeFlyoutText:i,setHomefeedAsActiveHomefeedTab:a,setShowHomeBadge:r,setShowHomeFlyoutWithButton:o,trackInteraction:s}=this.props;this.selectItem("home"),(0,$.E)(!1),i(),r(!1),o(!1),s({action:"click",item:"nav-bar-home"}),t?(0,H.My)("mweb.auth.bottom-nav.home-tap"):(0,H.My)("mweb.unauth.bottom-nav.home-tap"),q.C.has(n.pathname)&&e!==q.e&&0===window.scrollY?a():0===window.scrollY&&"/"===n.pathname?(0,D.cV)("homefeed"):"/"===window.location.pathname&&window.scrollY>0&&ne(window.scrollY)})),X(this,"handleVideoIconTouch",(()=>{const{trackInteraction:e}=this.props;this.selectItem("videos"),e({action:"click",item:"nav-bar-videos"}),(0,H.My)("mweb.unauth.bottom-nav.videos-icon-tap")})),X(this,"handleInboxTouch",(()=>this.selectItem("inbox"))),X(this,"handleProfileTouch",(()=>{const{isAuthenticated:e,trackInteraction:t}=this.props;this.selectItem("profile"),t({action:"click",item:"nav-bar-profile"}),(0,H.My)(`mweb.${e?"auth":"unauth"}.bottom-nav.profile-tap`)})),X(this,"handleSearchTouch",(()=>{const{isAuthenticated:e,trackInteraction:t}=this.props;this.selectItem("search"),t({action:"click",item:"nav-bar-search"}),e?(0,H.My)("mweb.auth.bottom-nav.search-tap"):(0,H.My)("mweb.unauth.bottom-nav.search-tap")})),X(this,"handleNavFooterScroll",(e=>{const{experience:t,dismissExperience:n,setIsNavFooterHiddenAfterScroll:i}=this.props,{hasScrolled:a}=this.state;t&&502511===t.experience_id&&n&&!a&&n(1000151,502511),this.setState({isNavFooterHidden:e,hasScrolled:!0}),i(e)})),X(this,"currInnerHeight",0)}componentDidMount(){const{devicePlatform:e}=this.props;this.currInnerHeight=window.innerHeight,(0,B.Rq)(e)&&window.addEventListener("scroll",this.handleScrollForIphoneX)}static getDerivedStateFromProps(e,t){return e.location===t.prevLocation?null:{...t,prevLocation:e.location,selectedItem:re(e.location,e.username,e.isAuthenticated)}}componentDidUpdate({location:e},{selectedItem:t}){const{location:n,history:{action:i}}=this.props,{selectedItem:a}=this.state;e!==n&&("REPLACE"===i||"PUSH"===i&&t!==a)&&(te[e.key]=t,te[n.key]=a)}componentWillUnmount(){const{devicePlatform:e,location:t}=this.props;te[t.key]=this.state.selectedItem,(0,B.Rq)(e)&&window.removeEventListener("scroll",this.handleScrollForIphoneX)}render(){var e;const{forceShowNavFooter:t,isAuthenticated:n,isTablet:a,showDockedNavBar:o,dockNavBarForAuthTablet:l,inUnauthVideosNavExp:d,homeFlyoutText:p,location:h,numUnauthSavedPins:m,shouldUpsellHomePage:f,showHomeBadge:E,showHomeFlyoutWithButton:S,username:T,viewingUser:I,viewType:x,history:P}=this.props,{isNavFooterHidden:R,selectedItem:C}=this.state,O=(0,s.Z)(null==I?void 0:I.created_at),D=n&&O,k=((e,t,n,i)=>t||i&&!n?i?"100%":e?320:264:200)(D,n,a,o),L=!h.pathname.startsWith(`/${T}`)&&h.pathname.startsWith("/notifications");return(0,u.jsxs)(F.FixedFooter,{forceShow:t,height:ee,location:h,showDockedNavBar:o,dockNavBarForAuthTablet:l,isTablet:a,isModal:(j=h.pathname,j.includes("/report/")),footerWidth:k,noPadding:!0,hideOnScroll:!o&&!l&&(!n||n&&ie(h.pathname)),onScroll:this.handleNavFooterScroll,footerInLego:!0,zIndex:w.Z,children:[(0,u.jsx)(U,{}),(0,u.jsxs)(c.xu,{alignItems:"center",display:"flex",justifyContent:"around",marginEnd:"auto",marginStart:"auto",maxWidth:k,paddingX:2,width:k,children:[(0,u.jsx)(c.xu,{alignItems:"center",display:"flex",justifyContent:"center",position:"relative",flex:"grow","data-test-id":"nav-bar-home",children:(0,u.jsx)(v,{accessibilityLabel:this.props.i18n._('Home', 'Nav bar icon', 'Nav bar icon'),homeFlyoutText:p,isAuthenticated:n,onTouch:this.handleHomeTouch,selectedItem:C,shouldUpsellHomePage:f&&!R,showHomeBadge:E,showHomeFlyoutWithButton:S,showLabel:D,title:this.props.i18n._('Home', 'Home button on the Nav bar', 'Home button on the Nav bar')})}),!n&&(0,u.jsx)(c.xu,{flex:"grow","data-test-id":"nav-bar-search",children:(0,u.jsx)(M.Z,{id:"nav-bar-search",children:(0,u.jsx)(g,{accessibilityLabel:this.props.i18n._('Search', 'bottomNavBar.searchButton', 'Search button on the nav bar'),color:"search"===C?"default":"subtle",icon:"search",onTouch:this.handleSearchTouch,showLabel:D,title:this.props.i18n._('Search', 'bottomNavBar.searchButton', 'Search button on the nav bar'),to:"/search/"})})}),n&&(0,u.jsxs)(i.Fragment,{children:[(0,u.jsx)(g,{icon:"search",to:"/search/",color:"search"===C?"default":"subtle",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:D}),(null==I?void 0:I.is_partner)&&(0,u.jsx)(_,{showLabel:D,viewType:x}),(0,u.jsx)(N,{isActive:"inbox"===C||"notifications"===C,onTouch:this.handleInboxTouch,showLabel:D,icon:"speech-ellipsis"})]}),d&&(0,u.jsx)(c.xu,{alignItems:"center",display:"flex",justifyContent:"center",position:"relative",flex:"grow","data-test-id":"nav-bar-videos",children:(0,u.jsx)(A,{accessibilityLabel:this.props.i18n._('Videos', 'bottomNavBar.VideosButton', 'Videos button on the Nav bar'),onTouch:this.handleVideoIconTouch,selectedItem:C,showLabel:D,title:this.props.i18n._('Videos', 'bottomNavBar.VideosButton', 'Videos button on the Nav bar')})}),(0,u.jsx)(y.Z,{children:(0,u.jsx)(c.xu,{flex:"grow","data-test-id":"nav-bar-profile",ref:this.profileButtonRef,children:(0,u.jsx)(b,{avatarSrc:!I||null!==(e=I.image_small_url)&&void 0!==e&&e.includes("default")||"string"!=typeof I.image_small_url?"":I.image_small_url,isActive:"profile"===C,locationPath:h.pathname,numUnauthSavedPins:m,onTouch:this.handleProfileTouch,showLabel:D,username:T})})})]}),L&&(0,u.jsx)(r.default,{anchor:this.profileButtonRef.current,experienceIds:[505320],onClickComplete:()=>P.push(G.Gx),placementId:1000151,showCaret:!0,textWeight:"normal",hasFullWidthButton:!1,textAlign:"center",flyoutSize:"md"})]});var j}}const se=(0,a.connect)((function({homefeedTabUI:e,session:t,users:n}){return{activeHomefeedTabIndex:e.activeTabIndex,devicePlatform:t.userAgentPlatform,isAuthenticated:t.isAuthenticated,username:t.isAuthenticated&&n[t.userId]?n[t.userId].username:"",viewingUser:t.isAuthenticated?n[t.userId]:void 0}}),(function(e){return{dismissExperience:(t,n)=>e((0,E.Qu)(t,n)),setHomefeedAsActiveHomefeedTab:()=>e((0,z.r)(null,q.e))}}))((e=>{const t=(0,$.S)(),n=(0,L.useHistory)(),i=(0,L.useLocation)(),a=(0,d.ZP)(),{forceShowNavFooter:r,homeFlyoutText:o,numUnauthSavedPins:s,setHomeFlyoutText:l,setIsNavFooterHiddenAfterScroll:c,setShowHomeBadge:_,setShowHomeFlyoutWithButton:p,showHomeBadge:h,showHomeFlyoutWithButton:m}=(0,W.U)(),g=(0,S._)({id:1000151}),{viewParameter:v,viewType:f,viewData:y}=(0,k.SU)(),E=(0,K.Z)(),T=(0,Y.Z)(),{checkExperiment:I}=(0,Z.F)(),x=(0,V.Wb)();return I("community_engagement_holdout_2023_h1"),I("social_growth_holdout_2022_h2"),I("social_growth_holdout_2023_h1"),(0,u.jsx)(oe,{...e,experience:g,forceShowNavFooter:r,history:n,location:i,logContextEvent:E,homeFlyoutText:o,isTablet:x,numUnauthSavedPins:s,setHomeFlyoutText:l,setIsNavFooterHiddenAfterScroll:c,setShowHomeBadge:_,setShowHomeFlyoutWithButton:p,showHomeBadge:h,showHomeFlyoutWithButton:m,shouldUpsellHomePage:t,trackInteraction:T,i18n:a,viewData:y,viewParameter:v,viewType:f})}))},118405:(e,t,n)=>{n.d(t,{U:()=>s,m:()=>l});var i=n(667294),a=n(425288),r=n(785893);const{Provider:o,useHook:s}=(0,a.Z)("NavFooterContext");function l({children:e}){const[t,n]=(0,i.useState)(),[a,s]=(0,i.useState)(!1),[l,d]=(0,i.useState)(0),[c,u]=(0,i.useState)(!1),[_,p]=(0,i.useState)(!1),[h,m]=(0,i.useState)(!1);return(0,r.jsx)(o,{value:{forceShowNavFooter:h,homeFlyoutText:t,isNavFooterHiddenAfterScroll:a,numUnauthSavedPins:l,setForceShowNavFooter:m,setHomeFlyoutText:n,setIsNavFooterHiddenAfterScroll:s,setNumUnauthSavedPins:d,setShowHomeBadge:u,setShowHomeFlyoutWithButton:p,showHomeBadge:c,showHomeFlyoutWithButton:_},children:e})}},722512:(e,t,n)=>{n.d(t,{Z:()=>_,e:()=>u});var i=n(19121),a=n(883119),r=n(50286),o=n(240684),s=n(785893);const l=(0,o.ZP)({resolved:{},chunkName:()=>"MobilePageWrapper",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(77322).then(n.bind(n,346485)),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 346485}}),d=(0,o.ZP)({resolved:{},chunkName:()=>"DesktopUnauthPageWrapper",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(846),n.e(61135),n.e(55582),n.e(91290),n.e(73489)]).then(n.bind(n,493447)),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 493447}}),c=(0,o.ZP)({resolved:{},chunkName:()=>"AuthDesktopPageWrapper",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(50239),n.e(16115)]).then(n.bind(n,509423)),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 509423}});function u({isAuthenticated:e,isDesktop:t}){return e&&t?c:!e&&t?d:l}function _({children:e}){const{isAuth:t}=(0,i.Z)(),n=(0,r.HG)();return n&&t?(0,s.jsx)(a.xu,{minHeight:"100vh",children:(0,s.jsx)(c,{children:e})}):n&&!t?(0,s.jsx)(d,{children:e}):(0,s.jsx)(l,{children:e})}},948945:(e,t,n)=>{n.d(t,{Z:()=>ue});var i=n(667294),a=n(81226),r=n(702664),o=n(8320),s=n(977734),l=n(499128),d=n(898781),c=n(112690),u=n(927383),_=n(662089),p=n(52022),h=n(332611),m=n(639952),g=n(57791),v=n(881802),f=n(698330),y=n(883119),E=n(276775),S=n(785893);const T=new y.Ry(1);function I({buttonText:e,clientTrackingParams:t,color:n="primary",deeplinkUri:a,experience:I,inline:x=!0,minWidth:P,onTouch:b,onUnsave:A,pinId:w,pinnedToBoardId:R,shape:C,shouldShowSavedButton:O,viewType:N,viewParameter:D,showSaveHandoffExperience:k}){var L;const j=(0,d.ZP)(),U=(0,r.useDispatch)(),M=(0,E.useHistory)(),F=(0,E.useLocation)().pathname.startsWith("/pin"),B=(0,r.useSelector)((({session:e})=>e.hasSavedUnauthPin)),G=(0,r.useSelector)((({session:e})=>e.unauthSavePinId)),z=null===(L=(0,f.Tt)())||void 0===L?void 0:L.pin_count,H=(0,c.Z)(),Z=(0,p.Z)(),V=e=>M.push(e),{showToast:W,showRepinConfirmation:K}=(0,_.Z)(),Y=()=>{U((0,s.Z)({history:M,i18n:j,logContextEvent:H,onSuccess:()=>{I&&U((0,h.CK)(I.placement_id,I.experience_id))},originalPinId:w,pinId:w,trackingParams:{clientTrackingParams:t,pinnedToBoardId:R},showRepinConfirmation:k&&!F?()=>{}:K,disableRepinAnimation:G===w,pinCount:z,historyPush:V})).catch((e=>W((({hideToast:t})=>(0,S.jsx)(l.ZP,{variant:"error",text:e.message||j._('Sorry! Something went wrong on our end.', 'quickSave.toast.error.message', 'error during repin'),onHide:t})))))},q=(0,i.useRef)(null),$=k&&!B,X=(0,u.Z)()({fn:e=>{e.stopPropagation(),e.preventDefault(),b&&b(e),O?O&&A&&A():Y()},modalHeader:(0,v.Bx)(j)});(0,i.useEffect)((()=>{$&&!q.current&&(Z({action:"trigger",item:"unauth-save-button-quicksave"}),Y(),U((0,m.e2)())),q.current=$}));const J=()=>j._('Pin', 'quickSave.quickSaveButton.icon.accessibilityLabel', 'Pin accessibility label'),Q=()=>e||j._('Save', 'quickSave.quickSaveButton.buttonText', 'Auth mobile web save button for pin closeup');return B&&!F?null:(0,S.jsx)(y.xu,{"data-test-id":"save-button-mobile",zIndex:T,children:a?(0,S.jsx)(g.di,{accessibilityLabel:J(),color:n,customStyles:{padding:"14px 16px"},deeplinkUri:a,inline:x,minHeight:48,minWidth:P,onTouch:X,pressState:["compress","background"],shape:C,size:"lg",text:Q(),to:M.location.pathname,upsellType:"save",viewType:N,viewParameter:D}):(0,S.jsx)(o.Z,{accessibilityLabel:J(),color:n,customStyles:{padding:"14px 16px"},inline:x,minHeight:48,minWidth:P,onTouch:X,pressState:"compress",shape:C,size:"300",text:Q()})})}var x=n(364034),P=n(139574),b=n(826067),A=n(850431),w=n(867820),R=n(50286),C=n(780280),O=n(177891),N=n(343341);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 k extends i.PureComponent{constructor(...e){var t;super(...e),t=this,D(this,"state",{saveState:void 0}),D(this,"legoFixedZIndex",new y.Ry(2)),D(this,"onAddPin",(async function(){const{clientTrackingParams:e,dispatch:n,i18n:i,oneTapSave:a,pinId:r,pinnedToBoardId:o,showToast:s,viewType:d,historyPush:c}=t.props;try{const i=await n((0,A.w)({i18n:t.props.i18n,logContextEvent:t.props.logContextEvent,originalPinId:r,pinId:r,boardId:null==a?void 0:a.boardId,isOneTapSave:!0,onUndo:()=>{t.onDeletePin()},section:null==a?void 0:a.section,showToast:s,trackingParams:{clientTrackingParams:e,pinnedToBoardId:o},viewType:d,historyPush:c}));t.setState({saveState:"saved"}),n((0,O.a)({boardId:null==a?void 0:a.boardId,localPinId:i.id,pinId:r}))}catch(u){s((({hideToast:e})=>(0,S.jsx)(l.ZP,{variant:"error",text:u.message||i._('Sorry! Something went wrong on our end.', 'error during repin', 'error during repin'),onHide:e}))),t.setState({saveState:void 0})}})),D(this,"onDeletePin",(async function(){const{dispatch:e,clientTrackingParams:n,i18n:i,pinId:a,savedInfo:r,showToast:o}=t.props;if(r){e((0,O.k)({boardId:r.boardId,localPinId:r.localPinId,pinId:a}));try{await e((0,P.q)({pinId:r.localPinId,boardId:r.boardId,clientTrackingParams:n})),o((({hideToast:e})=>(0,S.jsx)(l.ZP,{text:i._('Pin deleted!', 'User deleted their pin', 'User deleted their pin'),onHide:e}))),t.setState({saveState:void 0})}catch(s){o((({hideToast:e})=>(0,S.jsx)(l.ZP,{variant:"error",text:i._('Sorry! There was an error deleting your Pin.', 'Error when user tried to delete pin', 'Error when user tried to delete pin'),onHide:e}))),t.setState({saveState:"saved"})}}})),D(this,"handlePinAction",this.props.requireAuthForLimitedLogin({fn:({event:e})=>{e.stopPropagation(),e.preventDefault();const{saveState:t}=this.state,{history:n,pinId:i,isOneTapExploreLocalTab:a,pinnedToBoard:r}=this.props;["saving","deleting"].includes(t)||a&&r||(t||this.props.savedInfo?this.props.isOneTapExploreLocalTab||(this.setState({saveState:"deleting"}),this.onDeletePin()):(this.setState({saveState:"saving"}),a?n.push({pathname:`/pin/${i}/repin`,state:{isOneTapSave:!0}}):this.onAddPin()))},modalHeader:(0,v.Bx)(this.props.i18n)})),D(this,"shouldDisplayAsSaved",(({isOneTapExploreLocalTab:e,pinnedToBoard:t,savedInfo:n})=>e?!!t:!!n))}render(){const{children:e,clientTrackingParams:t,homepageExperience:n,i18n:a,isOneTapExploreLocalTab:r,isRTL:o,oneTapSave:s,pinId:l,pinnedToBoard:d,pinnedToBoardId:c,savedInfo:u,shouldShowSaveHandoffExp:_,useSmallSaveIcon:p}=this.props;if(!s&&!r&&!_)return e;const h=this.shouldDisplayAsSaved({isOneTapExploreLocalTab:r,pinnedToBoard:d,savedInfo:u}),m="#000",g="rgba(255, 255, 255, 0.8)",v="light",f="dark";return(0,S.jsxs)(i.Fragment,{children:[e,(0,S.jsx)(y.xu,{bottom:!0,left:o,padding:2,position:"absolute",right:!o,zIndex:this.legoFixedZIndex,children:_?(0,S.jsx)(I,{buttonText:d?a._('Saved', 'OneTapSave.QuickSaveButton.Saved', 'Message on saved pin'):"",clientTrackingParams:t,color:d?"default":"primary",deeplinkUri:"deeplinkUri",experience:n,inline:!0,pinnedToBoardId:c,minWidth:54,pinId:l,shape:"pill",shouldShowSavedButton:!!d,showSaveHandoffExperience:_}):(0,S.jsx)(y.iP,{onTap:this.handlePinAction,rounding:"circle",children:(0,S.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:h?m:g}},padding:2,rounding:"circle",children:(0,S.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{opacity:100}},children:(0,S.jsx)(y.JO,{accessibilityLabel:h?a._('saved', 'checkmark icon to show pin has been saved', 'checkmark icon to show pin has been saved'):a._('save', 'button for saving quickly with one click', 'button for saving quickly with one click'),icon:h?"check":"add",color:h?v:f,size:p?16:24})})})})})]})}}const L=(0,r.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]})))((function(e){const{showToast:t}=(0,N.F9)(),n=(0,E.useLocation)(),a=(0,d.ZP)(),o=(0,c.Z)(),l=(0,u.Z)(),_=(0,r.useDispatch)(),p=(0,E.useHistory)(),{isRTL:h,isAuthenticated:m}=(0,C.B)(),g=(0,r.useSelector)((({session:e})=>e.unauthSavePinId)),v=m&&!!g&&g===e.pinId,{pins:f,clear:y}=(0,x.Z)(),T=(0,i.useRef)(!1),I=(0,b.mB)(n.search).ideas_referrer,P=!(0,R.HG)()&&I===String(25),A=e=>p.push(e);return(0,i.useEffect)((()=>{m&&!T.current&&f.length>0&&(T.current=!0,f.forEach((({id:e})=>{_((0,s.Z)({history:p,i18n:a,logContextEvent:o,onSuccess:()=>{},originalPinId:e,pinId:e,trackingParams:{clientTrackingParams:"",pinnedToBoardId:""},showRepinConfirmation:()=>{},disableRepinAnimation:!0,historyPush:A})).catch((e=>{(0,w.My)(`error.unauth_profile_pin_merge.${e}`)}))})),y())})),(0,S.jsx)(k,{...e,i18n:a,requireAuthForLimitedLogin:l,history:p,logContextEvent:o,showToast:t,shouldShowSaveHandoffExp:v,isRTL:h,historyPush:A,useSmallSaveIcon:P})}));L.displayName="OneTapSave";const j=L;var U=n(883561),M=n(349700);function F({boardUrl:e,boardName:t,isQuicksave:n,sectionName:i,sectionSlug:a}){const r=(0,d.ZP)(),o=(0,E.useHistory)(),s=new y.Ry(1),l=!!a&&`${e}${a}/`;return(0,S.jsx)(y.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,zIndex:s,dangerouslySetInlineStyle:{__style:{background:"rgb(0 0 0 / .4)"}},children:(0,S.jsx)(y.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"start",padding:4,children:(0,S.jsx)(y.iP,{onTap:t=>{t.event.preventDefault(),o.push(n?"/me/":l||e)},children:(0,S.jsx)(y.xv,{color:"light",children:i?(0,M.nk)(r._('Saved to {{sectionName}}', 'PinCard.SavedToSection.Overlay', 'Saved to section overlay'),{sectionName:(0,S.jsx)(y.xv,{color:"light",weight:"bold",inline:!0,children:(0,U.ZP)(i,22)},`pincard-${i}`)}):(0,M.nk)(r._('Saved to {{boardName}}', 'PinCard.SavedToBoard.Overlay', 'Saved to board overlay'),{boardName:(0,S.jsx)(y.xv,{color:"light",weight:"bold",inline:!0,children:n?r._('Profile', 'PinCard.SavedToProfile.Overlay', 'Part of string saying "Saved to Profile" after saving a Pin'):(0,U.ZP)(t,22)},`pincard-${t}`)})})})})})}var B=n(167525),G=n(964082),z=n(36971),H=n(463045);function Z({isSquarePin:e,color:t,description:n,imageUrl:i,imageHeight:a,imageWidth:r,onError:o,onLoad:s}){const l=(0,S.jsx)(y.Ee,{alt:n||"",color:t,naturalHeight:null!=a?a:1,naturalWidth:null!=r?r:1,onError:o,onLoad:s,src:null!=i?i:"",fit:e?"cover":void 0});return e?(0,S.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:(0,S.jsx)(y.xu,{top:!0,right:!0,bottom:!0,left:!0,position:"absolute",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:l})}):l}var V=n(350445),W=n(46584),K=n(926749),Y=n(623568),q=n(965900);function $({inAdsVideoExperiment:e,unauthRelatedPinsAutoplayExpGroup:t,isAutoplay:n,cropHeight:a,currentTime:r,onLoad:o,onError:s,onTimeChange:l,pin:c,playing:u,rootMargin:_,viewType:p,viewParameter:h,onVisibilityChanged:m,trackFullVisible:g,videoDuration:v,imageHeightModifier:f,image:E,isSquarePin:T}){var I,x,P,b;const A=(0,d.ZP)(),[w,C]=(0,i.useState)(!1),[O,N]=(0,i.useState)(!0),{is_downstream_promotion:D,promoter:k}=c,L=(0,Y.jL)(D,k),j=L&&!c.is_eligible_for_web_closeup,U=3372===h||42===p,M=L&&c.is_eligible_for_web_closeup&&!U,{setCurrentVideo:F,pauseAutoplay:G}=(0,q.I)(),z=j||!L,H=(0,W.Z)({onVisibilityChanged:m,inAdsDesktopVideoExperiment:e,trackFullVisible:g,rootMargin:_});let $=!u;(e||null!=t&&t.startsWith("enabled"))&&($=O,n&&u&&O&&N(!1));const{url:X}=(null===(I=c.images)||void 0===I?void 0:I["236x"])||{},{id:J}=c,Q=(0,R.HG)()&&c.videos?null===(x=c.videos.video_list)||void 0===x?void 0:x.V_HLSV4:null===(P=c.videos)||void 0===P||null===(b=P.video_list)||void 0===b?void 0:b.V_720P,ee=(0,R.HG)()&&c.videos?"video/m3u8":"video/mp4",te=(0,i.useCallback)((({event:e})=>{e.preventDefault(),e.stopPropagation(),F({pinId:J,isPromoted:Boolean(L),currentTime:0}),C(!1)}),[L,J,F]),ne=(0,i.useCallback)((()=>{L&&C(M),G({pinId:J,isPromoted:Boolean(L),currentTime:0})}),[M,L,J,G]);if(!c.videos||!Q)return null;const{height:ie,thumbnail:ae,width:re,url:oe}=Q||{},se=c.videos.id,le=[{type:ee,src:oe}];let de,ce=(null!=re?re:1)/(null!=ie?ie:1);return e&&T&&(ce=1,de="transparent",f&&(ce-=f-1)),w&&L?(0,S.jsx)(y.xu,{"data-test-id":"pin-video-mobile-end-card",ref:H,children:(0,S.jsx)(V.Z,{backgroundImage:null!=X?X:"",naturalHeight:null!=ie?ie:1,naturalWidth:null!=re?re:1,pin:c,onRestartVideo:te})}):$?(0,S.jsxs)(y.xu,{"data-test-id":"pin-video-mobile-image",ref:H,children:[v&&(0,S.jsx)(B.Z,{text:v}),(0,S.jsx)(Z,{imageHeight:null!==(ue=null==E?void 0:E.height)&&void 0!==ue?ue:1,imageWidth:null!==(_e=null==E?void 0:E.width)&&void 0!==_e?_e:1,onError:s,onLoad:o,imageUrl:null!==(pe=null==E?void 0:E.url)&&void 0!==pe?pe:"",isSquarePin:T})]}):(0,S.jsx)(y.xu,{"data-test-id":"pin-video-mobile-video",ref:H,children:(0,S.jsx)(K.ZP,{isAutoPlay:!!n,cropHeight:a,rootMargin:_,inAdsDesktopVideoExperiment:e,contextLogData:{viewParameter:h,component:0,objectId:c.id,video_id:se,view:p},accessibilityMaximizeLabel:A._('Maximize', 'pinLayouts.PinVideo.accessibilityMaxVideoBtn', 'Maximize button on video'),accessibilityMinimizeLabel:A._('Minimize', 'pinLayouts.PinVideo.accessibilityMinVideoBtn', 'Minimize button on video'),accessibilityMuteLabel:A._('Mute', 'pinLayouts.PinVideo.accessibilityMuteVideoBtn', 'Mute button on video'),accessibilityPauseLabel:A._('Pause', 'pinLayouts.PinVideo.accessibilityPauseVideoBtn', 'Pause button on video'),accessibilityPlayLabel:A._('Play', 'pinLayouts.PinVideo.accessibilityPlayVideoBtn', 'Play button on video'),accessibilityProgressBarLabel:A._('Progress bar', 'pinLayouts.PinVideo.accessibilityProgressBarLabel', 'Video progress bar accessibility label'),accessibilityUnmuteLabel:A._('Unmute', 'pinLayouts.PinVideo.accessibilityUnmuteVideoBtn', 'Unmute button on video'),aspectRatio:ce,backgroundColor:de,captions:"",hlsConfig:{capLevelToPlayerSize:!0,startPosition:r||-1},loop:z,onTimeChange:l,playing:u,onPlay:()=>{},onPlayError:()=>{},poster:X||ae,src:null!=le?le:[],videoStartTime:r,volume:0,onEnded:ne})});var ue,_e,pe}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class J extends i.Component{constructor(...e){super(...e),X(this,"calculateCurrentVideoTime",(()=>{const{currentTimeFromPinRep:e,pin:t,videosAutoplaying:n}=this.props,{id:i}=t,a=(0,z.Z)(i,n);return this.currentVideoCurrentTime||a||e})),X(this,"handleVisibilityChanged",(e=>{const{currentTimeFromPinRep:t,pin:n,setCurrentVideo:i,pauseAutoplay:a,videosAutoplaying:r}=this.props,{id:o,is_downstream_promotion:s,promoter:l}=n,d=(0,Y.jL)(s,l),c=(0,H.Z)(o,r),u=(0,G.Z)(o,r);e?d?i({pinId:o,isPromoted:d,currentTime:this.calculateCurrentVideoTime()}):u&&i({pinId:o,isPromoted:Boolean(d),currentTime:this.calculateCurrentVideoTime()}):!e&&c&&a({pinId:o,isPromoted:Boolean(d),currentTime:t||this.currentVideoCurrentTime})})),X(this,"handleVideoTimeChange",(e=>{const{pin:t,onTimeChange:n,videosAutoplaying:i}=this.props,{id:a}=t;(0,H.Z)(a,i)&&(this.currentVideoCurrentTime=e.time),n&&n(e)}))}componentDidUpdate(e){const{appInFocus:t}=e,{appInFocus:n,currentTimeFromPinRep:i,pauseAutoplay:a,pin:r,setCurrentVideo:o,videosAutoplaying:s}=this.props,{id:l,is_downstream_promotion:d,promoter:c}=r,u=(0,Y.jL)(d,c),_=(0,H.Z)(l,s);n!==t&&!n&&_?(this.pausedDueToBrowserOutOfFocus=!0,a({pinId:l,isPromoted:Boolean(u),currentTime:i||this.currentVideoCurrentTime})):this.pausedDueToBrowserOutOfFocus&&n&&(this.pausedDueToBrowserOutOfFocus=!1,o({pinId:l,isPromoted:Boolean(u),currentTime:this.calculateCurrentVideoTime()}))}componentWillUnmount(){const{currentTimeFromPinRep:e,pauseAutoplay:t,pin:n,videosAutoplaying:i}=this.props,{id:a,is_downstream_promotion:r,promoter:o}=n,s=(0,Y.jL)(r,o);(0,H.Z)(a,i)&&t({pinId:a,isPromoted:Boolean(s),currentTime:e||this.currentVideoCurrentTime})}render(){const{cropHeight:e,isAutoplay:t,pin:n,videosAutoplaying:i,videoDuration:a,viewParameter:r,viewType:o,onError:s,onLoad:l,inAdsVideoExperiment:d,unauthRelatedPinsAutoplayExpGroup:c,isSquarePin:u,rootMargin:_,imageHeightModifier:p,image:h,isHovering:m}=this.props,{id:g}=n,v=(0,z.Z)(g,i),f="enabled_hover"===c,y=(0,H.Z)(g,i),E=m&&f||y&&t;return(0,S.jsx)($,{cropHeight:e,rootMargin:_,currentTime:v,inAdsVideoExperiment:d,unauthRelatedPinsAutoplayExpGroup:c,isAutoplay:t,isSquarePin:u,image:h,viewParameter:r,viewType:o,onTimeChange:this.handleVideoTimeChange,onVisibilityChanged:this.handleVisibilityChanged,pin:n,playing:E,trackFullVisible:!1,onError:s,onLoad:l,imageHeightModifier:p,videoDuration:a})}}function Q(e){const{appUI:{appInFocus:t,isAutoplay:n,videosAutoplaying:i},pauseAutoplay:a,setCurrentVideo:r}=(0,q.I)();return(0,S.jsx)(J,{...e,appInFocus:t,isAutoplay:n,pauseAutoplay:a,setCurrentVideo:r,videosAutoplaying:i})}var ee=n(690035),te=n(310227),ne=n(773285),ie=n(130460),ae=n(350118),re=n(780679),oe=n(627995);const se=({domainLinkData:e})=>{const t=(0,d.ZP)(),n=(0,re.g)();return(0,S.jsxs)(y.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(51, 51, 51, 0.8)"}},children:[(0,S.jsx)(y.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"center",paddingX:2,children:(0,S.jsx)(y.X6,{size:"400",align:"center",color:"light",children: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.')})}),!!e&&(0,S.jsx)(y.xu,{position:"absolute",bottom:!0,left:!0,width:"100%",minWidth:"100%",children:(0,S.jsx)(oe.Z,{clickLoggingOptions:e.clickLoggingOptions,domain:e.domain,link:e.link,onClick:e.onClick||(null==n?void 0:n.pinLinkClickHandler)||(()=>{})})})]})};var le=n(53987);const de=({width:e,height:t,minY:n,maxY:i})=>{const a=t=>e<=0||!t?"0%":Math.round(t/e*100)+"%";return{top:n<=0?"0%":a(-1*n*t),bottom:i>=1?"0%":a(-1*(1-i)*t)}},ce=({children:e,margin:t,disableRounding:n})=>(0,S.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:t?{marginTop:t.top,marginBottom:t.bottom}:{}},position:"relative","data-test-id":"pin-visual-wrapper",children:(0,S.jsx)(y.zd,{wash:!0,rounding:n?0:te.mv,children:e})}),ue=({clientTrackingParams:e,color:t,description:n,domainLinkData:r,hideBottomCardText:o,image:s,imageAltText:l,imageCrop:c,isPromoted:u,isMessenger:_,isOneTapExploreLocalTab:h,isSquarePin:m,lazyLoadImage:g,onError:v,oneTapSave:f,onLoad:T,pinId:I,priorityFetchImage:x,disableDefaultContextMenu:P,pinnedToBoardId:b,pinVideo:A,videoUrl:O,productPrice:N,disableRounding:D,storyDataExists:k,title:L,type:U,videoDuration:M,viewType:G,viewParameter:z,unauthRelatedPinsAutoplayExpGroup:H})=>{var Z,V,W,K,Y,q,$,X,J,te,re;const oe=(0,d.ZP)(),ue=(0,ee.Z)(),{checkExperiment:_e}=(0,ne.F)(),[pe,he]=(0,i.useState)(!1),{isAuthenticated:me}=(0,C.B)(),ge=(0,R.ZP)(),ve=(0,ae.S6)()(I),fe=(0,ie.gC)()(b||(ve?String(null===(Z=ve.board)||void 0===Z?void 0:Z.id):"")),ye=b&&(null==ve?void 0:ve.savedThisSession),Ee=r&&r.link?"with-link":"without-link",Se=!me&&"desktop"!==ge,Te=(0,i.useRef)(Date.now()),Ie=(0,i.useRef)(null),xe=_e("mweb_video_ads_autoplay").anyEnabled,Pe="video"===U&&(H&&"enabled_hover"===H),be=(0,p.Z)();(0,i.useEffect)((()=>{Pe||!pe||me||be({action:"view",item:"unauth-video-autoplay-on-hover"})}),[Pe,pe,be,me]);const Ae=(0,S.jsx)(y.Ee,{alt:l||L||n||"",color:t,naturalHeight:null!==(V=s.height)&&void 0!==V?V:1,naturalWidth:null!==(W=s.width)&&void 0!==W?W:1,onError:v,onLoad:T,src:null!==(K=s.url)&&void 0!==K?K:"",fit:m?"cover":void 0,loading:g?"lazy":"auto",fetchPriority:x?"high":"auto"}),we=m?(0,S.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:(0,S.jsx)(y.xu,{top:!0,right:!0,bottom:!0,left:!0,position:"absolute",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:Ae})}):Ae,Re=(0,E.useLocation)(),Ce=()=>(0,le.C$)(Re)?"homefeed":(0,le.L6)(Re)?"related_pins":(0,le.En)(Re)?"search":"unknown";return(0,S.jsx)("div",{className:"PinCard__imageWrapper",style:{position:"relative"},children:(0,S.jsxs)(y.xu,{onContextMenu:e=>{if("desktop"!==ge){const t=Ce();(0,w.My)((me?"auth":"unauth")+".mweb_pin_feed.pin_image.long_press",{page:t}),"related_pins"!==t||me||(e.preventDefault(),e.stopPropagation())}},onTouchStart:e=>{if("desktop"!==ge){const t=Ce();if((0,w.My)("unauth.mweb.related_pin.image.touch.start"),"related_pins"===t&&!me&&(null==P||P(),Te.current=Date.now(),e.changedTouches&&e.changedTouches.length>0)){const t=e.changedTouches.item(0);t&&(Ie.current={x:t.pageX,y:t.pageY})}}},onTouchEnd:e=>{if("desktop"!==ge){const t=Ce();if((0,w.My)("unauth.mweb.related_pin.image.touch.end"),Date.now()-Te.current>500&&!me&&"related_pins"===t){const t=Ie.current;if(e.changedTouches&&e.changedTouches.length>0&&t){const n=e.changedTouches.item(0);if(n&&Math.pow(n.pageX-t.x,2)+Math.pow(n.pageY-t.y,2)>100)return;null==P||P(),ue({pinId:I,location:"related-pins-long-press"}),e.stopPropagation()}}}},"data-test-id":`pincard-${U}-${Ee}`,dangerouslySetInlineStyle:{__style:{willChange:"transform",textDecoration:"none"}},overflow:"hidden",onMouseOver:Se?void 0:()=>he(!0),onMouseLeave:Se?void 0:()=>he(!1),position:"relative",rounding:D?0:4,children:[(0,S.jsxs)(j,{clientTrackingParams:e||"",oneTapSave:f,isOneTapExploreLocalTab:h,pinId:I,pinnedToBoardId:b,viewType:G,children:[(()=>{if("gif"===U&&!o&&!ye)return(0,S.jsx)(B.Z,{text:oe._('GIF', 'pin.pinCard.gifIconIdentifier', 'pin type identifier for gifs')});if("video"===U&&M&&!o&&!ye)return(0,S.jsx)(B.Z,{text:M});if("storyPin"===U&&k&&!ye){const{page_count:e=0,total_video_duration:t=0}=(null==ve?void 0:ve.story_pin_data)||{};if(t>0)return(0,S.jsx)(B.Z,{text:(0,a.Z)(t)});if("number"==typeof e&&e>0)return(0,S.jsx)(B.Z,{icon:"idea-pin",text:e.toString()})}return"product"===U&&N?(0,S.jsx)(B.Z,{text:N}):null})(),(0,S.jsx)(ce,{disableRounding:D,margin:c?de({width:null!==(Y=s.width)&&void 0!==Y?Y:1,height:null!==(q=s.height)&&void 0!==q?q:1,minY:c.minY,maxY:c.maxY}):void 0,children:"video"===U&&_&&A?(0,S.jsx)(y.nk,{autoplay:!0,accessibilityMaximizeLabel:"",accessibilityMinimizeLabel:"",accessibilityMuteLabel:"",accessibilityPauseLabel:"",accessibilityPlayLabel:"",accessibilityProgressBarLabel:oe._('Progress bar', 'PinCardVisual.accessibilityProgressBarLabel', 'Video progress bar accessibility label'),accessibilityUnmuteLabel:"",aspectRatio:A.width/A.height,captions:"",loop:!0,onPlay:()=>{},onPlayError:()=>{},playsInline:!0,poster:null!==($=s.url)&&void 0!==$?$:"",src:A.url,volume:0}):A&&u&&xe&&ve||null!=H&&H.startsWith("enabled")&&O&&ve?(0,S.jsx)(Q,{image:s,inAdsVideoExperiment:xe,unauthRelatedPinsAutoplayExpGroup:H,isHovering:pe,isSquarePin:m,onError:v,onLoad:T,pin:ve,videoDuration:M,viewParameter:z,viewType:G}):we})]}),!Pe&&pe&&!me&&(0,S.jsx)(se,{domainLinkData:r}),me&&ye&&(0,S.jsx)(F,{boardName:null!==(X=null==fe?void 0:fe.name)&&void 0!==X?X:"",boardUrl:null!==(J=null==fe?void 0:fe.url)&&void 0!==J?J:"",sectionName:null==f||null===(te=f.section)||void 0===te?void 0:te.title,sectionSlug:null==f||null===(re=f.section)||void 0===re?void 0:re.slug,isQuicksave:"quick_saves"===(null==fe?void 0:fe.layout)})]})})}},904779:(e,t,n)=>{n.d(t,{K:()=>o,T:()=>s});var i=n(667294),a=n(785893);const r=(0,i.createContext)({getPinFeedbackStatus:()=>{},setPinFeedbackStatus:()=>{}}),o=()=>(0,i.useContext)(r);function s({children:e}){const[t,n]=(0,i.useState)(Object.freeze({})),o=(0,i.useMemo)((()=>({getPinFeedbackStatus:({pinId:e})=>t[e],setPinFeedbackStatus:({pinId:e,pinFeedbackStatus:i})=>n({...t,[e]:i})})),[t]);return(0,a.jsx)(r.Provider,{value:o,children:e})}},204283:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ge,pinRepPaddingInBoint:()=>Ce});var i=n(667294),a=n(702664),r=n(934494),o=n(319915),s=n(886076),l=n(248975),d=n(830157),c=n(958007),u=n(926275),_=n(63552),p=n(81226),h=n(116303),m=n(561195),g=n(883119),v=n(785893);function f({maxRating:e,rating:t,text:n}){return(0,v.jsxs)(g.xu,{alignItems:"center",display:"flex",marginBottom:0,children:[(0,v.jsx)(m.Z,{max_rating:e||"",rating:t||"",width:10}),n&&(0,v.jsx)(i.Fragment,{children:(0,v.jsx)(g.xu,{marginStart:1,overflow:"hidden",children:(0,v.jsx)(g.xv,{size:"100",lineClamp:1,children:n})})})]})}var y=n(898781),E=n(62409),S=n(643010),T=n(350118);const I=({pinId:e})=>{var t;const n=(0,y.ZP)(),a=(0,T.S6)()(e),r=(0,S.Yc)();if(!a)return null;const{link_domain:o,rich_metadata:s,rich_summary:l}=a||{},d=(0,E.kb)({hasLinkDomain:!!o,richMetadata:s&&{recipe:s.recipe&&{fromAggregatedData:s.recipe.from_aggregated_data},products:s.products&&s.products.map((e=>({name:e.name,offerSummary:e.offer_summary})))},richSummary:l&&{products:l.products&&l.products.map((e=>({name:e.name,offerSummary:e.offer_summary})))}});if(!d||!d.price)return null;const c=d.standard_price||d.price,u=d.min_price||"",_=d.max_price||"",p=d.in_stock||!1,h=null===(t=a.rich_summary)||void 0===t?void 0:t.site_name,{textColor:m,inStockColor:f}=(({isDarkMode:e,inStock:t})=>e?{textColor:"light",inStockColor:"light"}:{textColor:"dark",inStockColor:t?"dark":"subtle"})({isDarkMode:r,inStock:p});return(0,v.jsxs)(i.Fragment,{children:[h&&(0,v.jsx)(g.xv,{color:m,size:"100",children:h}),(0,v.jsxs)(g.xu,{display:"flex",alignItems:"center","data-test-id":"priceLego_price",children:[u&&_?(0,v.jsxs)(g.xv,{size:"100",color:f,weight:"bold",children:[u," - ",_]}):(0,v.jsx)(g.xv,{size:"100",color:f,weight:"bold",children:c}),!p&&(0,v.jsxs)(i.Fragment,{children:[(0,v.jsx)(g.xu,{paddingX:1,children:(0,v.jsx)(g.xv,{size:"100",color:f,weight:"bold",children:"·"})}),(0,v.jsx)(g.xv,{size:"100",color:f,weight:"bold",children:n._('Out of stock', 'pinCard.priceLego.outOfStock', 'display if a product is out of stock')})]})]})]})};var x=n(947599),P=n(914142),b=n(941646),A=n(50286),w=n(865673),R=n(52022),C=n(350948),O=n(923297),N=n(867820),D=n(773285),k=n(130460),L=n(276775),j=n(780280),U=n(53987);const M=(0,i.lazy)((()=>n.e(94950).then(n.bind(n,494950)))),F=({title:e})=>{const t=(0,A.ZP)(),n=(0,R.Z)();return(0,v.jsx)(b.Z,{id:"related-pins-title",children:(0,v.jsx)(g.iP,{onTap:()=>{n({action:"click",item:"related-pins-title"})},children:(0,v.jsx)(g.xv,{size:"desktop"===t?"300":"100",weight:"bold",lineClamp:2,children:e})})})},B=({allowPriceIndicator:e,contextMenu:t,credits:n,hidePinMetadata:a,hasAffiliatedProducts:r,isPromotedPin:s,isSponsoredPin:l,isSquarePin:d,marginTop:c,marginStart:u,marginEnd:p,onCreditsClick:m,pinDescription:E,pinId:S,pinnedToBoardId:B,pinReactionCounts:G,recipeCookTime:z,recipeMaxRating:H,recipeRating:Z,recipeReviewCount:V,shouldShowReactions:W,style:K="default",title:Y,type:q,duploConversationPin:$})=>{var X,J,Q,ee,te,ne,ie,ae,re;const oe=(0,y.ZP)(),{checkExperiment:se}=(0,D.F)(),le=(0,L.useLocation)(),de=(0,R.Z)(),{isAuthenticated:ce}=(0,j.B)(),ue=(0,A.ZP)(),_e=Y||E||"oneTap"===q,pe=(0,T.S6)()(S),he=(0,k.gC)()(B||(pe?String(null===(X=pe.board)||void 0===X?void 0:X.id):"")),me=null==pe?void 0:pe.pinner,ge=s&&(null==pe||null===(J=pe.promoter)||void 0===J?void 0:J.id)===(null==pe||null===(Q=pe.native_creator)||void 0===Q?void 0:Q.id),ve=null!=pe&&pe.sponsorship?(0,v.jsx)(g.xv,{inline:!0,size:"100",weight:"bold",children:null==n?void 0:n.subtitle}):void 0,fe="overlay"===K,ye=W&&G&&Object.keys(G).length>0&&(0,v.jsx)(g.xu,{height:18,display:fe?"flex":void 0,justifyContent:"center",children:(0,v.jsx)(o.Z,{name:"SafeSuspense_PinCardDetails_GridAggregation",children:(0,v.jsx)(x.Z,{children:(0,v.jsx)(M,{pinReactionCounts:G})})})}),Ee=a?0:c||1,Se=(0,v.jsx)(h.Z,{accessibilityLabel:(null==n?void 0:n.title)||"string"==typeof(null==n?void 0:n.subtitle)&&n.subtitle||oe._('Creator\'s avatar', 'pinCardDetails.tapArea.avatar', 'The avatar of the creator of this pin.'),name:(null==n?void 0:n.title)||"",outline:fe,size:fe?"lg":"sm",src:fe&&(null==n?void 0:n.largeAvatar)||(null==n?void 0:n.mediumAvatar)||(null==n?void 0:n.avatar)||void 0}),Te=(0,v.jsxs)(i.Fragment,{children:[(null==n?void 0:n.title)&&(0,v.jsx)(g.xv,{lineClamp:1,size:"100",weight:l&&!ge||r?"normal":"bold",children:n.title===(null==me?void 0:me.full_name)&&(null!=me&&me.is_verified_merchant||null!=me&&null!==(ee=me.verified_identity)&&void 0!==ee&&ee.verified)?(0,v.jsx)(w.Z,{badgeSize:"sm",badgeSpacing:2,fullName:n.title,verifiedType:me.is_verified_merchant?"verifiedMerchant":"verifiedIdentity"}):n.title}),null!=n&&n.subtitle?(!l&&!a||ge)&&(0,v.jsx)(g.xv,{lineClamp:l||r?void 0:1,size:"desktop"===ue?"200":"100",weight:"desktop"===ue?"bold":"normal",children:n.subtitle}):!ce&&he&&"protected"!==he.privacy?(0,v.jsx)(b.Z,{id:"related-pin-text-below-name",children:(0,v.jsx)(g.rU,{underline:"hover",href:null!==(te=he.url)&&void 0!==te?te:"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,N.NC)("click_board_pin_attribution_profile"),de({action:"click",item:"related-pin-text-below-name"})},children:(0,v.jsx)(g.xv,{size:"200",children:he.name})})}):null]});return(0,v.jsx)(i.Fragment,{children:(0,v.jsxs)(g.xu,{display:"flex",height:d?e?104:72:void 0,marginEnd:p||1,marginStart:u||1,position:"relative",children:[(0,v.jsxs)(g.xu,{flex:"grow",children:[(0,v.jsx)(g.xu,{display:"flex",marginTop:Ee,children:(0,v.jsx)(g.xu,{flex:"grow",children:(0,v.jsxs)(i.Fragment,{children:[(0,v.jsxs)(i.Fragment,{children:[(l||r)&&!ge&&(0,v.jsx)(g.xu,{marginBottom:1,children:(0,v.jsx)(g.xu,{flex:"grow",overflow:"hidden",children:(0,v.jsx)(P.Z,{hasAffiliatedProducts:r,isPromoted:s,sponsorName:ve,sponsorshipStatus:null==pe||null===(ne=pe.sponsorship)||void 0===ne?void 0:ne.status})})}),Y&&(0,v.jsx)(g.xu,{marginTop:1,overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},children:ce&&!a&&(0,v.jsx)(F,{title:Y})}),"desktop"===ue&&!ce&&E&&!(0,U.$Y)(le)&&!(0,U.E0)(le)&&(0,v.jsx)(g.xu,{marginTop:1,overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},"data-test-id":"desc",children:(0,v.jsx)(g.iP,{onTap:()=>{de({action:"click",item:"related-pins-description"})},children:(0,v.jsx)(g.xv,{size:"100",inline:!0,children:E})})})]}),e&&(0,v.jsx)(I,{credits:n,pinId:S}),"recipe"===q&&!!V&&(0,v.jsx)(i.Fragment,{children:(0,v.jsxs)(g.xu,{alignItems:"center",display:"flex",marginTop:1,children:[!!V&&(0,v.jsx)(f,{maxRating:H||"",rating:Z||"",text:""}),!!z&&(0,v.jsxs)(i.Fragment,{children:[(0,v.jsx)(g.xu,{paddingX:1,children:(0,v.jsx)(g.xv,{size:"100",children:"·"})}),(0,v.jsx)(g.xv,{size:"100",children:(0,C.IS)({...(0,O.u)(z),i18n:oe})})]})]})})]})})}),!fe&&ye,n&&(0,v.jsx)(_.Z,{onTouch:e=>m&&m(e),pressState:"none",children:(0,v.jsx)(g.xu,{children:(!a||l||ge)&&(0,v.jsxs)(g.xu,{display:"flex",marginTop:fe?-9:c||(_e&&!a?1:0),marginBottom:a?2:0,position:"relative",direction:fe?"column":"row",children:[(0,v.jsx)(g.xu,{flex:"none",display:fe?"flex":void 0,justifyContent:"center","data-test-id":"related-pins-avatar-image",children:se(ce?"mweb_auth_feed_a11y_fix":"mweb_unauth_feed_a11y_fix").anyEnabled?Se:(0,v.jsx)(g.iP,{onTap:()=>{de({action:"click",item:"related-pins-avatar-image"})},children:Se})}),(0,v.jsx)(g.xu,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",alignItems:fe?"center":void 0,marginStart:1,"data-test-id":"related-pins-name",children:se(ce?"mweb_auth_feed_a11y_fix":"mweb_unauth_feed_a11y_fix").anyEnabled?Te:(0,v.jsx)(g.iP,{onTap:()=>{de({action:"click",item:"related-pins-name"})},children:Te})})]})})}),!n&&"desktop"===ue&&!!me&&((0,U.L6)(le)||(0,U.cD)(le)||(0,U.$Y)(le))&&(0,v.jsxs)(g.xu,{display:"flex",marginTop:_e?2:0,children:[(0,v.jsx)(g.xu,{flex:"none","data-test-id":"related-pins-avatar-image",children:(0,v.jsx)(g.iP,{onTap:()=>{de({action:"click",item:"related-pins-avatar-image"})},children:(0,v.jsx)(h.Z,{name:me.username||"",size:"sm",src:null!==(ie=me.image_small_url)&&void 0!==ie?ie:void 0})})}),(0,v.jsxs)(g.xu,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",marginStart:1,"data-test-id":"related-pins-name",children:[(0,v.jsx)(g.rU,{underline:"hover",href:`/${me.username}/`,onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,N.NC)("click_board_pin_attribution_board"),de({action:"click",item:"related-pins-name"})},children:(0,v.jsx)(g.xv,{size:"200",weight:"bold",children:me.full_name||me.username})}),he&&"protected"!==he.privacy?(0,v.jsx)(b.Z,{id:"related-pin-text-below-name",children:(0,v.jsx)(g.rU,{underline:"hover",href:null!==(ae=he.url)&&void 0!==ae?ae:"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,N.NC)("click_board_pin_attribution_profile"),de({action:"click",item:"related-pin-text-below-name"})},children:(0,v.jsx)(g.xv,{size:"200",children:null!==(re=he.name)&&void 0!==re?re:""})})}):null]})]}),fe&&ye]}),(0,v.jsx)(g.xu,{position:fe?"absolute":void 0,right:!0,children:!$&&t})]})})};var G,z=n(857079),H=n(349700),Z=n(296011),V=n(167912);const W=void 0!==G?G:G=n(7745),K=(e,t)=>{const{checkExperiment:n}=(0,D.F)();return n("graphql_migration_sharelink_sgrowth_web").anyEnabled?((e,t)=>{const n=(0,V.useRelayEnvironment)();return(0,v.jsx)(Z.t,{invite_code:e,relayEnvironment:n,inviteQuery:W,children:e=>{const n=null!=e&&e.data?e.data.sender:null,i=n&&n.first_name?n.first_name.substring(0,30):"";if(!i)return null;const a=n&&!n.is_default_image?n.image_medium_url:"",r=(0,H.nk)(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(0,v.jsxs)(g.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,v.jsx)(g.zd,{height:32,width:32,children:(0,v.jsx)(h.Z,{name:i,src:a})}),(0,v.jsx)(g.xu,{width:"80%",paddingY:2,children:(0,v.jsx)(g.xv,{align:"center",size:"200",weight:"bold",children:r})})]})}})})(e,t):((e,t)=>(0,v.jsx)(Z.Z,{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 a=n&&!n.is_default_image?n.image_medium_url:"",r=(0,H.nk)(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(0,v.jsxs)(g.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,v.jsx)(g.zd,{height:32,width:32,children:(0,v.jsx)(h.Z,{name:i,src:a})}),(0,v.jsx)(g.xu,{width:"80%",paddingY:2,children:(0,v.jsx)(g.xv,{align:"center",size:"200",weight:"bold",children:r})})]})}}))(e,t)},Y=({inviteCode:e})=>{const t=(0,y.ZP)();return(0,v.jsx)(g.xu,{minHeight:82,children:(0,v.jsx)(o.Z,{name:"SafeSuspense_PinCardSharedHeader_LoadingSpinner",children:(0,v.jsx)(x.Z,{fallback:(0,v.jsx)(z.Z,{accessibilityLabel:t._('Loading Invitation component', 'Loading InviteFetch component', 'loading InviteFetch component')}),children:K(e,t)})})})};var q=n(948945),$=n(55275);const X={initial:{opacity:0,transition:"opacity 0.25s ease-in"},fadeIn:{opacity:.8,transition:"opacity 1s ease"}},J=(e,t,n)=>(0,v.jsx)(g.xv,{color:"inverse",inline:!0,size:"200",weight:"bold",children:(0,v.jsx)(g.rU,{display:"inlineBlock",href:t,tapStyle:"none",underline:"hover",children:n})},e);function Q({color:e,getFeedbackText:t,onUnfollow:n,showing:a,unfollowed:r}){const o=(0,y.ZP)(),[s,l]=(0,i.useState)(a?"fadeIn":"initial"),d=(0,i.useRef)(null);(0,i.useEffect)((()=>("initial"===s&&a&&(d.current=window.requestAnimationFrame((()=>l("fadeIn")))),()=>{d.current&&window.cancelAnimationFrame(d.current)})),[s,l,a]);const{subTitle:c,title:u,unfollow:_}=t(J);let p=u,h=c;_&&r&&(p=_.title,h=_.subTitle);const m=()=>_?(0,$.t)(_.action,_.actionOptions,n):void 0;return a&&(0,v.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:e,...X[s]}},margin:1,rounding:4,position:"absolute",top:!0,bottom:!0,left:!0,right:!0,children:(0,v.jsxs)(g.xu,{width:"100%",height:"100%",color:"dark",rounding:4,overflow:"auto",children:[(0,v.jsxs)(g.xu,{padding:3,rounding:2,display:"flex",direction:"column",height:"100%",justifyContent:"between",children:[(0,v.jsxs)(g.xu,{children:[(0,v.jsx)(g.X6,{size:"400",color:"light",children:p}),!!h&&(0,v.jsxs)(g.xu,{marginTop:1,children:[(0,v.jsx)(g.xv,{color:"light",size:"200",inline:!0,children:h}),(0,v.jsx)(g.xv,{color:"light",inline:!0,size:"200",weight:"bold",children:(0,v.jsx)(g.rU,{href:"/edit",display:"inlineBlock",rounding:2,tapStyle:"none",underline:"hover",children:o._('Tune your home feed', 'Text on the button to navigate to homefeed control', 'Text on the button to navigate to homefeed control')})})]})]}),!r&&_&&(0,v.jsx)(g.xu,{paddingY:1,children:(0,v.jsx)(g.zx,{fullWidth:!0,color:"white",text:o._('Unfollow', 'Text on the button to unfollow a specific board / user', 'Text on the button to unfollow a specific board / user'),onClick:m})})]}),!r&&_&&(0,v.jsx)(g.xu,{paddingY:1,children:(0,v.jsx)(g.zx,{fullWidth:!0,color:"white",text:o._('Unfollow', 'Text on the button to unfollow a specific board / user', 'Text on the button to unfollow a specific board / user'),onClick:m})})]})})}var ee=n(21384),te=n(992750);function ne({description:e,gridTitle:t,pinId:n,placeSummaryName:i,richMetadataTitle:a,richSummaryDisplayName:r,storyPinDataId:o,storyPinDataMetadataPinTitle:s,title:l}){return(0,v.jsxs)(g.xu,{paddingX:2,marginBottom:-1,display:"flex",children:[(0,v.jsx)(g.xu,{flex:"grow",maxHeight:32,minHeight:12,overflow:"hidden",width:142,children:(0,v.jsx)(g.xv,{lineClamp:2,size:"100",weight:"bold",children:(0,te.fs)({pinTitle:l,gridTitle:t,richSummaryDisplayName:r,richMetadataTitle:a,storyPinDataId:o,storyPinDataMetadataPinTitle:s,placeSummaryName:i})||e})}),(0,v.jsx)(g.xu,{children:(0,v.jsx)(ee.Z,{pinId:n,size:"sm",graphqlRef:null})})]})}var ie=n(57791);const ae=({attribute:e,deviceType:t,location:n})=>{const i=(0,R.S)(n);(0,N.My)("unuath.product_attribution.click",{item:e,page:i,device:t})};function re({description:e,domain:t,gridTitle:n,pinId:a,priceSummary:r,placeSummaryName:o,richMetadataTitle:s,richSummaryDisplayName:l,storyPinDataId:d,storyPinDataMetadataPinTitle:c,title:u,isUnauthRelatedProductsExp1LineGroup:_}){const p=(0,A.ZP)(),h=(0,L.useLocation)(),m=r&&(r.price||r.standardPrice||(({maxPrice:e,minPrice:t,price:n})=>e&&t?`${t}-${e}`:n)(r)),f=(0,i.useMemo)((()=>_?1:m?3:2),[m,_]);if(!a)return null;const y=(0,te.fs)({pinTitle:u,gridTitle:n,richSummaryDisplayName:l,richMetadataTitle:s,storyPinDataId:d,storyPinDataMetadataPinTitle:c,placeSummaryName:o})||e,E=`/pin/${a}/`;return(0,v.jsx)(g.xu,{paddingX:2,marginBottom:-1,marginTop:1,display:"flex",direction:"column",children:(0,v.jsxs)(g.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[(0,v.jsx)(g.xu,{flex:"grow",minHeight:12,overflow:"hidden",width:142,children:(0,v.jsxs)(ie.MZ,{to:E,accessibilityLabel:y,deeplinkUri:E,children:[m&&(0,v.jsx)(g.iP,{onTap:()=>ae({deviceType:p,attribute:"price",location:h}),children:(0,v.jsx)(g.xv,{size:"100",weight:"bold",children:m})}),(0,v.jsx)(g.xu,{marginTop:1,children:(0,v.jsx)(g.iP,{onTap:()=>ae({deviceType:p,attribute:"title",location:h}),children:(0,v.jsx)(g.xv,{size:"100",weight:"bold",lineClamp:f,children:y})})}),t&&m&&(0,v.jsx)(g.xu,{marginTop:1,children:(0,v.jsx)(g.iP,{onTap:()=>ae({deviceType:p,attribute:"merchant",location:h}),children:(0,v.jsx)(g.xv,{size:"100",lineClamp:1,children:t})})})]})}),(0,v.jsx)(g.xu,{children:(0,v.jsx)(ee.Z,{pinId:a,size:"sm",graphqlRef:null})})]})})}var oe=n(248299),se=n(327476),le=n(394332),de=n(529195),ce=n(477802),ue=n(255607),_e=n(262794);const pe=Object.freeze([_e.Country.BR,_e.Country.MX,_e.Country.ES,_e.Country.IT,_e.Country.CH,_e.Country.AT,_e.Country.NL]),he=Object.freeze([_e.Country.DE,_e.Country.CA,_e.Country.FR,_e.Country.AU]),me=Object.freeze([_e.Country.US,_e.Country.GB]);Object.freeze([...he,...pe,...me]);var ge,ve=n(874317),fe=n(861411),ye=n(639952),Ee=n(772486),Se=n(378518),Te=n(813401),Ie=n(112690),xe=n(680046),Pe=n(305324),be=n(904779),Ae=n(780679);function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Re=void 0!==ge?ge:ge=n(741316),Ce=({isDesktop:e})=>e?0:1,Oe=e=>Boolean(e.isEligibleForWebCloseup),Ne=e=>Boolean(e.promoter&&!e.isDownstreamPromotion),De={width:1,height:1,url:""},ke=e=>{const{attribution:t,embed:n,isEligibleForWebCloseup:i,richSummary:a,videos:r,storyPinDataId:o}=e,s=n||t&&t.embed;return i?"oneTap":r||s&&"video"===s.type?"video":s&&"gif"===s.type?"gif":a&&"product"===a.typeName?"product":a&&"recipe"===a.typeName?"recipe":o?"storyPin":"image"},Le=e=>{if(("video"===ke(e)||Ne)&&e.videos&&e.videos.videoList){const{duration:t}=e.videos.videoList[Object.keys(e.videos.videoList)[0]]||{};return(0,p.Z)(null!=t?t:0)}return""},je=e=>{var t;if("product"!==ke(e))return null;const[n]=(null===(t=e.richSummary)||void 0===t?void 0:t.products)||[];if(!n)return null;const i=n.offerSummary;return i&&(i.price||i.maxPrice)},Ue=(0,i.lazy)((()=>n.e(26332).then(n.bind(n,926332))));class Me extends i.Component{constructor(...e){super(...e),we(this,"state",{startImpressionTimer:!1,isShowingCustomContextMenu:!1}),we(this,"getPinImage",(()=>{const{pin:{imageSpec_136x136:e,imageSpec_170x:t,imageSpec_236x:n,imageSpec_474x:i,imageSpec_736x:a,imageSpec_orig:r},duploIsSquarePin:o}=this.props;return o?{height:136,url:null==n?void 0:n.url,width:136}:[n,t,e,a,i,r].find((e=>e&&e.url))||De})),we(this,"getImpressionData",(()=>{var e,t,n;const{pin:i}=this.props,a=null===(e=i.videos)||void 0===e||null===(t=e.videoList)||void 0===t?void 0:t.v720P,r=a?{isNativeVideoAndWatchable:!!(a&&a.url&&a.height&&a.width)||void 0,videoIdStr:a&&(null===(n=i.videos)||void 0===n?void 0:n.entityId)||void 0}:{},o=this.getPinImage();return{richTypes:i.shoppingFlags||[],imageURL:o.url||"",...r,...this.props.impressionData}})),we(this,"getAuxCommerceData",(()=>{var e;const{pin:t}=this.props;return(0,s.Z)({isEligibleForPdp:t.isEligibleForPdp,isOosProduct:t.isOosProduct,isStaleProduct:t.isStaleProduct,pinShoppingFlags:null!==(e=t.shoppingFlags)&&void 0!==e?e:void 0})})),we(this,"getAuxData",(()=>{const{auxData:e={},pwaType:t}=this.props;return{commerce_data:this.getAuxCommerceData(),pwa_type:t,...e}})),we(this,"getFeedbackType",(()=>{var e,t,n;const{feedback:i,viewParameter:a,pin:r}=this.props;return(0,xe.hP)({boardFollowedByMe:!(null===(e=r.board)||void 0===e||!e.followedByMe),feedbackType:null==i?void 0:i.type,viewParameter:a,promotion:r&&r.promoter&&{isDownstreamPromotion:!!r.isDownstreamPromotion},pinnerFollowedByMe:!(null===(t=r.pinner)||void 0===t||!t.explicitlyFollowedByMe),recommendationReason:(null===(n=r.legacyOnly)||void 0===n?void 0:n.recommendation_reason)&&{hasBoard:!!r.legacyOnly.recommendation_reason.board,reason:r.legacyOnly.recommendation_reason.reason}})})),we(this,"getRecommendationDescription",(e=>{var t,n;const{pin:i,i18n:a}=this.props,r={i18n:a,makeNavigateLink:e};switch(this.getFeedbackType()){case"pfy":return(0,xe.Ud)({...r,feedback:{type:"pfy"}});case"pfyBoard":return(0,xe.Ud)({...r,feedback:{type:"pfyBoard",recommendationReasonBoard:(null===(t=i.legacyOnly)||void 0===t||null===(n=t.recommendation_reason)||void 0===n?void 0:n.board)&&{name:i.legacyOnly.recommendation_reason.board.name,url:i.legacyOnly.recommendation_reason.board.url}}});case"topic":return(0,xe.Ud)({...r,feedback:{type:"topic",sourceInterest:i.sourceInterest&&i.sourceInterest.name&&i.sourceInterest.urlName?{name:i.sourceInterest.name,url_name:i.sourceInterest.urlName}:null}});case"followed":return(0,xe.Ud)({...r,feedback:{type:"followed",followed:i.pinner&&i.pinner.explicitlyFollowedByMe?{type:"pinner",pinner:i.pinner.fullName&&i.pinner.username?{full_name:i.pinner.fullName,username:i.pinner.username}:null}:{type:"board",board:i.board&&i.board.name&&i.board.url?{name:i.board.name,url:i.board.url}:null}}});case"promoted":return(0,xe.Ud)({...r,feedback:{type:"promoted",promoter:!i.adMatchReason&&i.promoter&&i.promoter.fullName?{full_name:i.promoter.fullName,username:i.promoter.username}:null}});default:return null}})),we(this,"getPinHiddenFeedbackText",(e=>{const{pin:t,i18n:n}=this.props,i=t.promoter;if(Ne(t)&&null!=i&&i.fullName)return{title:"",subTitle:(0,H.nk)(this.props.i18n._('{{ promoter }} has paid to have this pin show up where you\'d be more likely to notice it.', 'pinRep.promotedPinfeedbackText.subtitle', 'message displayed after hiding a promoted pin'),{promoter:i.fullName})};let a;switch(this.getFeedbackType()){case"followed":const{board:i,pinner:r}=t;i&&r&&(a=(0,xe.oK)({boardId:i.entityId,i18n:n,makeNavigateLink:e,display:r.explicitlyFollowedByMe?{type:"board",data:{name:i.name,url:i.url}}:{type:"pinner",data:{full_name:r.fullName,username:r.username}}}));break;case"topic":const{sourceInterest:o}=t;o&&(a=(0,xe.Iv)({i18n:n,makeNavigateLink:e,sourceInterest:{id:o.entityId,name:o.name,url_name:o.urlName}}))}return a?{title:n._('Pin hidden', 'message displayed after hiding a pin', 'message displayed after hiding a pin'),subTitle:this.getRecommendationDescription(e),unfollow:a}:{title:n._('Pin hidden', 'message displayed after hiding a pin', 'message displayed after hiding a pin'),subTitle:n._('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')}})),we(this,"logOneTap",(()=>{const{logContextEvent:e,trackingParams:t,viewType:n,viewParameter:i,auxData:a,pin:r}=this.props,{entityId:o}=r,s=(0,d.Z)(t,r.trackingParams),l={view_type:this.props.viewType,view_parameter:this.props.viewParameter,element:r.storyPinDataId?12372:35,component:this.props.componentType,object_id_str:o,aux_data:{commerce_data:this.getAuxCommerceData(),grid_index:this.props.slotIndex,image_signature:r.imageSignature,...this.props.auxData},clientTrackingParams:s};e({event_type:8948,view_type:n,view_parameter:i,object_id_str:o,clientTrackingParams:s,aux_data:{image_signature:r.imageSignature,closeup_navigation_type:"click",click_type:"clickthrough",cosmic_ray_count:"2",...a}}),(0,Ee.jC)(l),e({component:this.props.componentType,event_type:13,view_type:3,clientTrackingParams:s,aux_data:{closeup_navigation_type:"web_closeup",image_signature:r.imageSignature},object_id_str:o})})),we(this,"handleLoad",(()=>{this.setState({startImpressionTimer:!0})})),we(this,"handleError",(()=>{this.setState({startImpressionTimer:!1})})),we(this,"handleClick",(e=>{const{auxData:t,componentType:n,deviceType:i,logContextEvent:a,pin:r,slotIndex:o,trackingParams:s,viewParameter:l,viewType:c,duploFeedItemProps:u,isAuth:_,trackInteraction:p,unauthDesktopSignupModalPageContext:h}=this.props,{onPinClick:m}=null!=u?u:{},{entityId:g}=r,v=e=>(0,N.My)(`unauth_pin_rep.${e}.${String(l)}`);if(v("click"),a({view_type:c,view_parameter:l,element:r.storyPinDataId?12372:35,event_type:101,component:n,object_id_str:g,clientTrackingParams:(0,d.Z)(s,r.trackingParams),aux_data:{commerce_data:this.getAuxCommerceData(),grid_index:o,image_signature:r.imageSignature,...t}}),Oe(r)||a({event_type:8948,view_type:c,view_parameter:l,object_id_str:g,clientTrackingParams:(0,d.Z)(s,r.trackingParams),aux_data:{image_signature:r.imageSignature,commerce_data:this.getAuxCommerceData(),closeup_navigation_type:"click",grid_index:o,cosmic_ray_count:"3",...t}}),!_)switch(p({action:"click",item:"pin"}),c){case 3:(0,N.NC)("click_pin_related_image");break;case 5:(0,N.NC)("click_board_pin_image");break;case 210:(0,N.NC)("click_topic_pin_image")}if(Oe(r)&&this.logOneTap(),m&&m(),"desktop"===i){if(e.metaKey){v("click.cmd_button_pressed"),e.preventDefault();window.open(`/pin/${g}/`,"_blank").focus()}else if(!_&&h){const{pinImageClickHandler:t}=h;t({event:e,pinId:g,linkTarget:"duploClientNav",seoUrl:r.seoUrl})}}})),we(this,"handleCreditsClick",(e=>{var t;const{history:n,logContextEvent:i,pin:a}=this.props,{entityId:r,sponsorship:o,storyPinDataId:s}=a,{creator:l,sponsor:d}=o||{},{entityId:c}=l||{},{entityId:u}=d||{},_=!!s;e.stopPropagation(),e.preventDefault();const p=null===(t=this.getCredits())||void 0===t?void 0:t.link;p&&n.push(p),i({view_type:3,element:27,event_type:102,object_id_str:r,component:_?230:void 0,aux_data:{pin_id:r,...c&&u?{creator_id:c,sponsor_id:u}:{}}})})),we(this,"handleUnfollowPin",(()=>this.props.markPinUnfollowed())),we(this,"handlePinSend",(e=>{var t;e&&e.stopPropagation&&e.stopPropagation();const{pin:n,setSharingOnBoardPage:i}=this.props;n.board&&i&&null!==(t=n.legacyOnly)&&void 0!==t&&t.isSocialSeasonalBoard&&i(!0,"pin",n.entityId)})),we(this,"isOverrideImageOnly",(()=>{const{pin:{richSummary:e},viewerIsNewUser:t,viewParameter:n}=this.props;return e&&43===n&&!t||3375===n})),we(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,viewParameter:n,location:i,pin:a}=this.props;if(!e&&0===t&&3070===n){var r,o,s;const e=i.pathname,{imageSignature:t,entityId:n,imageSpec_236x:l,description:d}=a;(0,de.H$)(e,t,n,l&&{dominant_color:null!==(r=l.dominantColor)&&void 0!==r?r:void 0,height:null!==(o=l.height)&&void 0!==o?o:void 0,url:l.url,width:null!==(s=l.width)&&void 0!==s?s:void 0},d)}}getIsClaimedContent(){var e,t;const{viewParameter:n,pin:i}=this.props;return 3375===n&&!(null===(e=i.linkDomain)||void 0===e||null===(t=e.officialUser)||void 0===t||!t.isPrimaryWebsiteVerified)}getCredits(){var e,t,n,i;const{adBlockTextTransform:a,viewParameter:r,pin:o}=this.props,{entityId:s}=o,l=o.storyPinData,d=o.pinner,c=o.promoter,u=null==l?void 0:l.hasProductPins,_=0===r,p=3173===r,h=3375===r,m=this.getIsClaimedContent(),g=o.nativeCreator,v=!!o.nativeCreator,f=Ne(o),{sponsorship:y}=o,{creator:E,sponsor:S}=y||{},T=f&&!!y&&(null==c?void 0:c.entityId)!==(null==g?void 0:g.entityId),I=!!y&&E;if(!(f||I||_||p||v||m))return;switch(T?"PROMOTED_SPONSORED":f?"PROMOTED":I?"SPONSORED":v?"AFFILIATED_PRODUCTS":u?"NATIVE_CONTENT":m?"CLAIMED_CONTENT":o.board&&"protected"===o.board.privacy?"SAVED_BY":"DEFAULT"){case"PROMOTED_SPONSORED":return{title:null==g?void 0:g.fullName,subtitle:null==c?void 0:c.fullName,avatar:this.getPinnerImage(null==g?void 0:g.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==g?void 0:g.imageMediumUrl),largeAvatar:this.getPinnerImage(null==g?void 0:g.imageLargeUrl),link:null!=g&&g.username?`/${g.username}/`:""};case"PROMOTED":return{title:a(this.props.i18n._('Promoted by', 'Grid pin annotation', 'Grid pin annotation')),subtitle:null==c?void 0:c.fullName,avatar:this.getPinnerImage(null==c?void 0:c.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==c?void 0:c.imageMediumUrl),largeAvatar:this.getPinnerImage(null==c?void 0:c.imageLargeUrl),link:null!=c&&c.username?`/${c.username}/`:""};case"SPONSORED":if(!y)throw new Error("sponsorship doesn't exist when expected");return{title:null==g?void 0:g.fullName,subtitle:null==S?void 0:S.fullName,avatar:this.getPinnerImage(null==g?void 0:g.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==g?void 0:g.imageMediumUrl),largeAvatar:this.getPinnerImage(null==g?void 0:g.imageLargeUrl),link:null!=g&&g.username?`/${g.username}/`:""};case"AFFILIATED_PRODUCTS":return{title:null==g?void 0:g.fullName,subtitle:"",avatar:this.getPinnerImage(null==g?void 0:g.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==g?void 0:g.imageMediumUrl),largeAvatar:this.getPinnerImage(null==g?void 0:g.imageLargeUrl),link:null!=g&&g.username?`/${g.username}/`:""};case"NATIVE_CONTENT":let r=(null===(e=o.board)||void 0===e?void 0:e.url)||`/pin/${s}/`;return h&&(r=null!=g&&g.username?`/${g.username}/`:""),{title:"",subtitle:null==g?void 0:g.fullName,avatar:this.getPinnerImage(null==g?void 0:g.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==g?void 0:g.imageMediumUrl),largeAvatar:this.getPinnerImage(null==g?void 0:g.imageLargeUrl),link:r};case"CLAIMED_CONTENT":const l=null===(t=o.linkDomain)||void 0===t?void 0:t.officialUser;return l?{subtitle:l.fullName,avatar:this.getPinnerImage(l.imageSmallUrl),mediumAvatar:this.getPinnerImage(l.imageMediumUrl),largeAvatar:this.getPinnerImage(l.imageLargeUrl),link:l.username?`/${l.username}/`:""}:void 0;case"SAVED_BY":return{title:this.props.i18n._('Saved by', 'Grid pin annotation', 'Grid pin annotation'),subtitle:"",avatar:this.getPinnerImage(null==d?void 0:d.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==d?void 0:d.imageMediumUrl),largeAvatar:this.getPinnerImage(null==d?void 0:d.imageLargeUrl),link:(null===(n=o.board)||void 0===n?void 0:n.url)||`/pin/${s}/`};default:return{title:(null==d?void 0:d.fullName)||"",subtitle:"",avatar:this.getPinnerImage(null==d?void 0:d.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==d?void 0:d.imageMediumUrl),largeAvatar:this.getPinnerImage(null==d?void 0:d.imageLargeUrl),link:(null===(i=o.board)||void 0===i?void 0:i.url)||`/pin/${s}/`}}}getSharedHeaderInviteCode(){var e;const{viewParameter:t,viewedSharedPins:n,pin:{entityId: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{gridTitle:e,richSummary:t,description:n}=this.props.pin;return"string"==typeof e?{title:e,description:""}:{title:null==t?void 0:t.displayName,description:n}}renderPinCard(){var e,t,n,i,a,r,s,u,p,h,m,f,y,S,T,I,P,A,w,R,C,O,N,D,k,L,j,M,F,G,z,H,Z,V,W,K,$,X,J,ee,ae,se,de,_e,pe,he,me,ge,fe,ye,Ee;const{checkExperiment:Se,country:Te,disableAppUpsell:Ie,duploDisablePinCardPadding:xe,disableRounding:Pe,disableReaction:be,deviceType:Ae,experience:we,feedback:Re,feedbackStatus:De,imageOnlyOption:Me,i18n:Fe,isAuth:Be,isBot:Ge,duploIsSquarePin:ze,isImageOnlyExp:He,location:Ze,duploFeedItemProps:Ve,duploLazyLoadImage:We,duploOneTapSave:Ke,duploPinCardDetailsMargin:Ye,duploPriorityFetchImage:qe,pin:$e,slotIndex:Xe,viewParameter:Je,viewType:Qe,duploShouldAllowProductPriceIndicator:et,topLevelTrafficSource:tt,topLevelTrafficSourceDepth:nt,trafficSource:it,duploUnauthRelatedPinsAutoplayExpGroup:at,unauthRelatedProductsExpGroup:rt,trackingParams:ot,trackInteraction:st,vaseDisplayMode:lt,createUnauthContextMenuHandler:dt,duploConversationPin:ct}=this.props,{onPinLinkClick:ut,showSeoMetadata:_t}=null!=Ve?Ve:{},{category:pt,entityId:ht,imageSpec_136x136:mt,imageSpec_170x:gt,imageSpec_236x:vt,imageSpec_474x:ft,imageSpec_736x:yt,imageSpec_orig:Et,linkDomain:St,imageSignature:Tt,promoter:It,richMetadata:xt,richSummary:Pt,title:bt,sponsorship:At,storyPinData:wt}=$e,{description:Rt,title:Ct}=this.getPinText(),Ot="desktop"===Ae,Nt=ke($e),Dt=0===Je,kt=3475===Je,Lt=43===Je,jt=Ne($e),Ut=!!At,Mt=null==wt?void 0:wt.hasProductPins,Ft=null==wt?void 0:wt.isDeleted,Bt=(0,d.Z)((Ze&&Ze.state||{}).trackingParams||ot,$e.trackingParams),Gt=(e=>(0,U.f1)(e)||(0,U.OX)(e))(Ze),zt="product"===ke($e)&&!Be&&(!Ge||Gt)&&(!Se("unauth_gate_product_pins_by_country_and_trustworthiness").anyEnabled||$e.isEligibleForPdp),Ht=He&&!this.isOverrideImageOnly(),Zt=null===(e=$e.legacyOnly)||void 0===e?void 0:e.isSocialSeasonalBoard,Vt=this.getPinImage(),Wt=Zt&&"gif"===Nt?this.convertToGif($e):Vt,Kt=null===(t=$e.videos)||void 0===t||null===(n=t.videoList)||void 0===n?void 0:n.v720P,Yt=(null==Kt?void 0:Kt.url)||(null===(i=$e.videos)||void 0===i||null===(a=i.videoList)||void 0===a||null===(r=a.vHLSV4)||void 0===r?void 0:r.url),qt=(0,te.hP)(null!==(s=$e.description)&&void 0!==s?s:"",$e.descriptionHtml||"",null===(u=$e.pinJoin)||void 0===u?void 0:u.visualAnnotation,$e.altText||""),$t=Be?Rt:(0,c.Z)({storyPinDataId:$e.storyPinDataId,pinDescription:$e.description,richMetadataDescription:null!==(p=null===(h=$e.richMetadata)||void 0===h?void 0:h.description)&&void 0!==p?p:"",richSummaryDisplayName:null!==(m=null===(f=$e.richSummary)||void 0===f?void 0:f.displayName)&&void 0!==m?m:"",placeSummaryName:null!==(y=null===(S=$e.legacyOnly)||void 0===S?void 0:S.place_summary)&&void 0!==y?y:"",closeupDescription:null!==(T=$e.closeupDescription)&&void 0!==T?T:"",closeupUnifiedDescription:null!==(I=$e.closeupUnifiedDescription)&&void 0!==I?I:""}),Xt=we&&we.display_data.hideReactions||!1,Jt=we&&we.display_data.hideDesc||!1,Qt=!be&&(0,ue.J6)({boardIsCollaborative:null===(P=$e.board)||void 0===P?void 0:P.isCollaborative,isDownstreamPromotion:$e.isDownstreamPromotion,isPromoted:$e.isPromoted,storyPinDataId:$e.storyPinDataId,videosId:null===(A=$e.videos)||void 0===A?void 0:A.entityId})&&!kt&&!Xt,en=!Be;let tn;tn=Oe($e)?$e.trackedLink||$e.link:en?(0,te.bN)({pinId:ht,seoUrl:$e.seoUrl}):(0,te.BY)(ht);const nn=!Rt||Ht&&!Dt?void 0:Rt.trim(),an=this.getSharedHeaderInviteCode(),rn={accessibilityLabel:qt||Ct||Rt||"",country:Te,deeplinkUri:tn,external:Oe($e),externalQueryParams:{pin:ht,client_tracking_params:ot},isAppUpsellDisabled:Ie,onTouch:this.handleClick,pinCategory:$e.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:tn,state:{trackingParams:ot,trafficSource:it,topLevelTrafficSource:tt,topLevelTrafficSourceDepth:nt}},upsellType:"direct",viewParameter:Je,viewType:Qe,clientTrackingParams:Bt},on=Ce({isDesktop:Ot}),sn=$e.nativeCreator||$e.pinner,ln="search"===it&&"storyPin"===Nt&&Se("mweb_search_ideapin_module").anyEnabled,dn=(0,E.kb)({hasLinkDomain:!!St,richMetadata:xt&&{recipe:xt.recipe&&{fromAggregatedData:xt.recipe.fromAggregatedData},products:xt.products},richSummary:Pt&&{products:Pt.products}});return(0,v.jsxs)(g.xu,{"data-test-id":"pin","data-test-pin-id":ht,marginBottom:Ot?0:2,children:[(0,v.jsxs)(g.xu,{"data-test-id":qt||Ct||Rt?"pin-with-alt-text":"pin-missing-alt-text",padding:xe?0:on,marginBottom:0,onContextMenu:sn?dt({pinId:ht,deviceOptions:{isDesktop:!0}}):void 0,dangerouslySetInlineStyle:{__style:this.state.isShowingCustomContextMenu?ve.Yw:{}},children:[(0,v.jsxs)(ie.MZ,{...rn,children:[!!an&&(0,v.jsx)(Y,{inviteCode:an}),Ft?(0,v.jsx)(oe.Z,{isPinRep:!0}):(0,v.jsx)(q.Z,{clientTrackingParams:Bt,color:null!==(w=$e.dominantColor)&&void 0!==w?w:"",description:nn,domainLinkData:$e.domain&&$e.link?{clickLoggingOptions:{auxData:{objectId:ht,grid_index:Xe,sanitized_url:$e.link}},domain:$e.domain,link:$e.link,onClick:ut}:void 0,disableRounding:Pe,hideBottomCardText:null!=Zt?Zt:void 0,image:Wt&&{dominant_color:null!==(R=Wt.dominantColor)&&void 0!==R?R:void 0,height:null!==(C=Wt.height)&&void 0!==C?C:void 0,url:null!==(O=Wt.url)&&void 0!==O?O:void 0,width:null!==(N=Wt.width)&&void 0!==N?N:void 0},imageAltText:qt,imageCrop:$e.imageCrop&&"number"==typeof $e.imageCrop.minY&&"number"==typeof $e.imageCrop.maxY?{minY:$e.imageCrop.minY,maxY:$e.imageCrop.maxY}:void 0,isMessenger:null!=Zt?Zt:void 0,isPromoted:jt,isSquarePin:ze,lazyLoadImage:We,onError:this.handleError,oneTapSave:Ke,onLoad:this.handleLoad,priorityFetchImage:qe,disableDefaultContextMenu:()=>this.setState({isShowingCustomContextMenu:!0}),createUnauthContextMenuHandler:dt,pinId:ht,pinnedToBoardId:null!==(D=null===(k=$e.pinnedToBoard)||void 0===k?void 0:k.entityId)&&void 0!==D?D:"",pinVideo:(Zt||jt)&&Kt||void 0,videoUrl:null!=Yt?Yt:void 0,productPrice:et&&!zt?je($e):null,slotIndex:Xe,storyDataExists:!!wt,title:!Ht||Dt?Ct:void 0,type:Nt,videoDuration:Le($e),unauthRelatedPinsAutoplayExpGroup:at,viewType:Qe,viewParameter:Je})]}),!("image-only"===Me)&&(Be||"desktop"===Ae)&&(0,v.jsxs)(g.xu,{children:[!kt&&!Lt&&"desktopParity"===lt&&(0,v.jsx)(le.Z,{pinId:ht,mode:"inlineWithScrollArrows",graphqlRef:null}),!zt&&(0,v.jsx)(ie.MZ,{...rn,children:(0,v.jsx)(B,{duploConversationPin:ct,allowPriceIndicator:!et&&!zt&&["shop_feed"].includes(it),marginTop:Ye,hidePinMetadata:Jt,contextMenu:Be&&!Ft?(0,v.jsx)(g.xu,{marginStart:1,marginTop:Ye,children:(0,v.jsx)(g.xu,{height:26,width:24,children:(0,v.jsx)(o.Z,{name:"SafeSuspense_Pin_ContextualMenu",children:(0,v.jsx)(x.Z,{children:(0,v.jsx)(Ue,{adMatchReason:$e.adMatchReason,bestPinImgSrc:(0,l.Z)({embedSrc:null===(L=$e.embed)||void 0===L?void 0:L.src,embedType:null===(j=$e.embed)||void 0===j?void 0:j.type,images:{...[["136x136",mt],["170x",gt],["236x",vt],["474x",ft],["736x",yt],["orig",Et]].reduce(((e,[t,n])=>{var i,a,r,o;return n?(e[t]={dominant_color:null!==(i=n.dominantColor)&&void 0!==i?i:void 0,height:null!==(a=n.height)&&void 0!==a?a:void 0,url:null!==(r=n.url)&&void 0!==r?r:void 0,width:null!==(o=n.width)&&void 0!==o?o:void 0},e):e}),{})}}),feedback:Re,feedbackType:this.getFeedbackType(),getRecommendationDescription:this.getRecommendationDescription,graphqlRef:null,imageSignature:null!=Tt?Tt:void 0,pinCategory:pt,pinDescription:$t,pinId:ht,pinTitle:bt,sourceType:jt?"ad":Dt?"following":void 0,viewParameter:Je,viewType:Qe,trackingParams:ot})})})})}):null,credits:this.getCredits(),hasAffiliatedProducts:null!=Mt?Mt:void 0,isPromotedPin:jt,isSponsoredPin:Ut,isSquarePin:ze,marginStart:Ye,marginEnd:Ye,onCreditsClick:this.handleCreditsClick,pinDescription:$t,pinId:ht,pinnedToBoardId:null!==(M=null===(F=$e.pinnedToBoard)||void 0===F?void 0:F.entityId)&&void 0!==M?M:"",pinReactionCounts:null!==(G=null===(z=$e.reactionCountsData)||void 0===z?void 0:z.reduce(((e,{reactionCount:t,reactionType:n})=>({...e,[String(null!=n?n:0)]:null!=t?t:0})),{}))&&void 0!==G?G:void 0,promoterName:null!==(H=null==It?void 0:It.fullName)&&void 0!==H?H:void 0,recipeCookTime:Ht?void 0:$e.richSummary&&$e.richSummary.displayCookTime,recipeMaxRating:Ht||null==Pt||null===(Z=Pt.aggregateRating)||void 0===Z?void 0:Z.bestRating,recipeRating:Ht||null==Pt||null===(V=Pt.aggregateRating)||void 0===V?void 0:V.ratingValue,recipeReviewCount:Ht||null==Pt||null===(W=Pt.aggregateRating)||void 0===W?void 0:W.reviewCount,shouldShowReactions:Qt,style:ln?"overlay":"default",title:ln?void 0:Ct,type:Nt})})]}),zt&&(0,v.jsx)(re,{description:$e.description,domain:null===(K=$e.richSummary)||void 0===K?void 0:K.siteName,gridTitle:null!==($=$e.gridTitle)&&void 0!==$?$:void 0,pinId:ht,priceSummary:dn&&{maxPrice:dn.maxPrice,minPrice:dn.minPrice,price:dn.price,standardPrice:dn.standardPrice},placeSummaryName:null===(X=$e.legacyOnly)||void 0===X?void 0:X.place_summary,richMetadataTitle:null===(J=$e.richMetadata)||void 0===J?void 0:J.title,richSummaryDisplayName:null===(ee=$e.richSummary)||void 0===ee?void 0:ee.displayName,storyPinDataId:$e.storyPinDataId,storyPinDataMetadataPinTitle:null===(ae=$e.storyPinData)||void 0===ae||null===(se=ae.metadata)||void 0===se?void 0:se.pinTitle,title:$e.title,isUnauthRelatedProductsExp1LineGroup:(null==rt?void 0:rt.includes("square"))||(null==rt?void 0:rt.includes("1_line"))})]}),Zt&&Be&&(0,v.jsx)(g.xu,{color:"secondary",marginBottom:6,marginEnd:"auto",marginStart:"auto",marginTop:-2,position:"relative",rounding:2,width:"90%",children:(0,v.jsx)(_.Z,{onTouch:this.handlePinSend,pressState:"none",rounding:2,children:(0,v.jsx)(g.xu,{padding:3,children:(0,v.jsx)(g.xv,{align:"center",weight:"bold",children:Fe._('Send', ' - ', ' -- ')})})})}),"reported"===De?(0,v.jsx)(Q,{color:null!==(de=$e.dominantColor)&&void 0!==de?de:"",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:ht,showing:!0}):(0,v.jsx)(Q,{color:null!==(_e=$e.dominantColor)&&void 0!==_e?_e:"",getFeedbackText:this.getPinHiddenFeedbackText,onUnfollow:this.handleUnfollowPin,pinId:ht,showing:!!De,unfollowed:"unfollowed"===De,viewParameter:Je,viewType:Qe}),_t&&"inlineHidden"===lt&&!zt&&(0,v.jsx)(b.Z,{id:"related-pins-title",children:(0,v.jsx)(g.iP,{onTap:()=>{st({action:"click",item:"related-pins-title"})},fullWidth:!1,children:(0,v.jsx)(ne,{description:$e.description,gridTitle:null!==(pe=$e.gridTitle)&&void 0!==pe?pe:void 0,pinId:ht,placeSummaryName:null===(he=$e.legacyOnly)||void 0===he?void 0:he.place_summary,richMetadataTitle:null===(me=$e.richMetadata)||void 0===me?void 0:me.title,richSummaryDisplayName:null===(ge=$e.richSummary)||void 0===ge?void 0:ge.displayName,storyPinDataId:$e.storyPinDataId,storyPinDataMetadataPinTitle:null===(fe=$e.storyPinData)||void 0===fe||null===(ye=fe.metadata)||void 0===ye?void 0:ye.pinTitle,title:$e.title})})}),(null===(Ee=$e.legacyOnly)||void 0===Ee?void 0:Ee.debug)&&(0,v.jsx)(ce.W,{data:$e.legacyOnly.debug})]})}render(){const{componentType:e,pin:{entityId:t},trackingParams:n,viewParameter:i,viewType:a,slotIndex:r,objectIdStr:o,viewData:s}=this.props,{startImpressionTimer:l}=this.state;return(0,v.jsx)(fe.dL,{auxData:this.getAuxData(),component:e,impressionData:this.getImpressionData(),isPaused:!l,loggingId:t,objectIdStr:o,slotIndex:r,trackingParams:n,viewData:s,viewParameter:i,viewType:a,children:({impressionTrackerRef:e})=>(0,v.jsx)(g.xu,{ref:e,children:this.renderPinCard()})})}}function Fe(e){const t=(0,y.ZP)(),n=(0,Ae.g)(),{checkExperiment:i}=(0,D.F)(),r=(0,L.useHistory)(),o=(0,L.useLocation)(),s=(0,A.ZP)(),l=(0,Pe.M)(),d=(0,Te.yz)(),c=(0,Se._)({id:1000107}),_=(0,Ie.Z)(),p=(0,R.Z)(),{country:h,isAuthenticated:m,isBot:g}=(0,j.B)(),f=(0,se.Z)(),E=(0,a.useDispatch)(),{hasPoorConnection:S,viewedSharedPins:T}=(0,a.useSelector)((({session:e})=>e)),I=(0,a.useSelector)((({experiences:e})=>{const t=e[1000107];return!!t&&500678===t.experience_id})),x=(0,a.useSelector)((({session:e,users:t})=>(0,u.Z)(t[e.userId].created_at))),{getPinFeedbackStatus:P,setPinFeedbackStatus:b}=(0,be.K)(),w=e.pin.entityId;return(0,v.jsx)(Me,{...e,adBlockTextTransform:f,checkExperiment:i,country:h,createUnauthContextMenuHandler:l,deviceType:s,experience:c,feedbackStatus:P({pinId:w}),hasPoorConnection:S,history:r,i18n:t,isAuth:m,isBot:g,isImageOnlyExp:I,location:o,logContextEvent:_,markPinUnfollowed:()=>b({pinId:w,pinFeedbackStatus:"unfollowed"}),pwaType:d,setSharingOnBoardPage:(e,t,n)=>E((0,ye.Mj)(e,t,n)),trackInteraction:p,unauthDesktopSignupModalPageContext:n,vaseDisplayMode:"desktop"===s?"desktopParity":"inlineHidden",viewedSharedPins:T,viewerIsNewUser:x})}const Be=(0,r.Z)({useGraphQLAdapter:e=>(0,V.useFragment)(Re,e),useLegacyAdapter:e=>{var t,n,i,a,r,o,s,l,d,c,u,_,p;const h=(0,T.S6)()(e);if(!h)return null;const m=e=>e&&{entityId:e.id,fullName:e.full_name,imageLargeUrl:e.image_large_url,imageMediumUrl:e.image_medium_url,imageSmallUrl:e.image_small_url,username:e.username},g=e=>e&&{dominantColor:e.dominant_color,height:e.height,url:e.url,width:e.width},v=h.reaction_counts;return{adMatchReason:h.ad_match_reason,altText:h.alt_text,attribution:h.attribution&&{embed:h.attribution.embed&&{type:h.attribution.embed.type}},board:h.board&&{entityId:h.board.id,followedByMe:h.board.followed_by_me,isCollaborative:h.board.is_collaborative,name:h.board.name,privacy:h.board.privacy,url:h.board.url},category:h.category,closeupDescription:h.closeup_description,closeupUnifiedDescription:h.closeup_unified_description,descriptionHtml:h.description_html,description:h.description,domain:h.domain,dominantColor:h.dominant_color,embed:h.embed&&{height:h.embed.height,src:h.embed.src,type:h.embed.type,width:h.embed.width},entityId:h.id,gridTitle:h.grid_title,imageCrop:h.image_crop&&{minY:h.image_crop.min_y,maxY:h.image_crop.max_y},imageSignature:h.image_signature,imageSpec_136x136:g(null===(t=h.images)||void 0===t?void 0:t["136x136"]),imageSpec_170x:g(null===(n=h.images)||void 0===n?void 0:n["170x"]),imageSpec_236x:g(null===(i=h.images)||void 0===i?void 0:i["236x"]),imageSpec_474x:g(null===(a=h.images)||void 0===a?void 0:a["474x"]),imageSpec_736x:g(null===(r=h.images)||void 0===r?void 0:r["736x"]),imageSpec_orig:g(null===(o=h.images)||void 0===o?void 0:o.orig),isDownstreamPromotion:h.is_downstream_promotion,isEligibleForPdp:h.is_eligible_for_pdp,isEligibleForWebCloseup:h.is_eligible_for_web_closeup,isOosProduct:h.is_oos_product,isPromoted:h.is_promoted,isStaleProduct:h.is_stale_product,linkDomain:h.link_domain&&{officialUser:h.link_domain.official_user&&{fullName:h.link_domain.official_user.full_name,entityId:null!==(s=h.link_domain.official_user.id)&&void 0!==s?s:"",imageLargeUrl:h.link_domain.official_user.image_large_url,imageMediumUrl:h.link_domain.official_user.image_medium_url,imageSmallUrl:h.link_domain.official_user.image_small_url,username:h.link_domain.official_user.username,isPrimaryWebsiteVerified:h.link_domain.official_user.is_primary_website_verified}},link:h.link,nativeCreator:m(h.native_creator),pinnedToBoard:h.pinned_to_board&&{entityId:null!==(l=h.pinned_to_board.id)&&void 0!==l?l:""},pinJoin:h.pin_join&&{visualAnnotation:h.pin_join.visual_annotation},pinner:h.pinner&&{entityId:h.pinner.id,explicitlyFollowedByMe:h.pinner.explicitly_followed_by_me,fullName:h.pinner.full_name,imageLargeUrl:h.pinner.image_large_url,imageMediumUrl:h.pinner.image_medium_url,imageSmallUrl:h.pinner.image_small_url,username:h.pinner.username},promoter:m(h.promoter),reactionCountsData:v&&Object.keys(v).map((e=>({reactionType:Number(e),reactionCount:v[e]}))),richMetadata:h.rich_metadata&&{description:h.rich_metadata.description,title:h.rich_metadata.title,recipe:h.rich_metadata.recipe&&{fromAggregatedData:h.rich_metadata.recipe.from_aggregated_data},products:h.rich_metadata.products&&h.rich_metadata.products.map((e=>{var t,n,i,a;return{name:e.name,offerSummary:{maxPrice:null===(t=e.offer_summary)||void 0===t?void 0:t.max_price,minPrice:null===(n=e.offer_summary)||void 0===n?void 0:n.min_price,price:null===(i=e.offer_summary)||void 0===i?void 0:i.price,standardPrice:null===(a=e.offer_summary)||void 0===a?void 0:a.standard_price}}}))},richSummary:h.rich_summary&&{aggregateRating:h.rich_summary.aggregate_rating&&{bestRating:h.rich_summary.aggregate_rating.best_rating,ratingValue:h.rich_summary.aggregate_rating.rating_value,reviewCount:h.rich_summary.aggregate_rating.review_count},displayName:h.rich_summary.display_name,displayCookTime:h.rich_summary.display_cook_time,siteName:h.rich_summary.site_name,typeName:h.rich_summary.type_name,products:h.rich_summary.products&&h.rich_summary.products.map((e=>{var t,n,i,a;return{name:e.name,offerSummary:{maxPrice:null===(t=e.offer_summary)||void 0===t?void 0:t.max_price,minPrice:null===(n=e.offer_summary)||void 0===n?void 0:n.min_price,price:null===(i=e.offer_summary)||void 0===i?void 0:i.price,standardPrice:null===(a=e.offer_summary)||void 0===a?void 0:a.standard_price}}}))},seoUrl:h.seo_url,shoppingFlags:h.shopping_flags,sourceInterest:h.source_interest&&{entityId:null!==(d=h.source_interest.id)&&void 0!==d?d:"",name:h.source_interest.name,urlName:h.source_interest.url_name},sponsorship:h.sponsorship&&{creator:h.sponsorship.creator&&{entityId:null!==(c=h.sponsorship.creator.id)&&void 0!==c?c:"",fullName:h.sponsorship.creator.full_name,imageLargeUrl:h.sponsorship.creator.image_large_url,imageMediumUrl:h.sponsorship.creator.image_medium_url,imageSmallUrl:h.sponsorship.creator.image_small_url,username:h.sponsorship.creator.username},sponsor:h.sponsorship.sponsor&&{entityId:null!==(u=h.sponsorship.sponsor.id)&&void 0!==u?u:"",fullName:h.sponsorship.sponsor.full_name,imageLargeUrl:h.sponsorship.sponsor.image_large_url,imageMediumUrl:h.sponsorship.sponsor.image_medium_url,imageSmallUrl:h.sponsorship.sponsor.image_small_url,username:h.sponsorship.sponsor.username}},storyPinDataId:h.story_pin_data_id,storyPinData:h.story_pin_data&&{hasProductPins:h.story_pin_data.has_product_pins,isDeleted:h.story_pin_data.is_deleted,metadata:h.story_pin_data.metadata&&{pinTitle:h.story_pin_data.metadata.pin_title}},title:h.title,trackedLink:h.tracked_link,trackingParams:h.tracking_params,videos:h.videos&&{entityId:null!==(_=h.videos.id)&&void 0!==_?_:"",videoList:h.videos.video_list&&{vHLSV4:h.videos.video_list.V_HLSV4&&{duration:h.videos.video_list.V_HLSV4.duration,height:h.videos.video_list.V_HLSV4.height,width:h.videos.video_list.V_HLSV4.width,url:h.videos.video_list.V_HLSV4.url},v720P:h.videos.video_list.V_720P&&{duration:h.videos.video_list.V_720P.duration,height:h.videos.video_list.V_720P.height,width:h.videos.video_list.V_720P.width,url:h.videos.video_list.V_720P.url}}},legacyOnly:{debug:h.debug,isSocialSeasonalBoard:null===(p=h.board)||void 0===p?void 0:p.isSocialSeasonalBoard,place_summary:h.place_summary,recommendation_reason:h.recommendation_reason}}}});function Ge(e){const{pinId:t,duploQueryRef:n,...i}=e;return(0,v.jsx)(Be,{input:n?{enabled:!0,data:n}:{enabled:!1,data:t},children:({data:e})=>!!e&&(0,v.jsx)(Fe,{...i,pin:e})})}},8742:(e,t,n)=>{n.d(t,{CC:()=>s,ZP:()=>d,hW:()=>l});var i=n(19121),a=n(50286),r=n(240684),o=n(785893);const s=(0,r.ZP)({resolved:{},chunkName:()=>"AuthDesktopPinRep",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(67631),n.e(2984)]).then(n.bind(n,656226)),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 656226}}),l=(0,r.ZP)({resolved:{},chunkName:()=>"DefaultPinRep",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(67631),n.e(76030),n.e(23019),n.e(44722),n.e(39921)]).then(n.bind(n,204283)),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 204283}});function d(e){const t=(0,a.HG)(),n=(0,i.Z)();if(n&&n.isAuth&&t){const{disableReaction:t,disableRounding:n,disableAppUpsell:i,duploDisablePinCardPadding:a,duploFeedItemProps:r,duploIsSquarePin:l,duploLazyLoadImage:d,duploOneTapSave:c,duploPinCardDetailsMargin:u,duploPriorityFetchImage:_,duploQueryRef:p,duploShouldAllowProductPriceIndicator:h,duploUnauthRelatedPinsAutoplayExpGroup:m,unauthRelatedProductsExpGroup:g,duploConversationPin:v,topLevelTrafficSource:f,topLevelTrafficSourceDepth:y,trafficSource:E,...S}=e;return(0,o.jsx)(s,{...S})}const{attributionOption:r,blockClickEvents:d,borderStyle:c,disableHover:u,imageHeightModifier:_,imageOnlyOption:p,onError:h,onLoad:m,pin:g,pinImageCrop:v,pinImageFit:f,resolution:y,rounding:E,saveButtonOptions:S,authDesktopSelectionState:T,authDesktopSurface:I,...x}=e;return(0,o.jsx)(l,{...x})}},167525:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(898781),a=n(643010),r=n(883119),o=n(785893);function s({text:e,icon:t,largeIdentifier:n,largeMargin:s}){const l=(0,i.ZP)();return(0,o.jsxs)(r.xu,{zIndex:new r.Ry(1),alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:(0,a.Yc)()?"rgba(0, 0, 0, 0.7)":"rgba(255, 255, 255, 0.8)"}},display:"flex",margin:s?4:2,overflow:"hidden",position:"absolute",rounding:"pill",padding:2,paddingX:n?4:void 0,height:n?36:24,top:!0,children:[t&&(0,o.jsx)(r.xu,{marginEnd:n?2:1,children:(0,o.jsx)(r.JO,{accessibilityLabel:l._('identifier that shows the pin type', 'pin.pincard.iconAccessibilityLabel', 'shows an icon with the pin type'),color:"default",icon:t,inline:!0,size:n?18:12})}),(0,o.jsx)(r.xv,{inline:!0,size:n?"200":"100",weight:"bold",children:e})]})}},255607:(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 a(e){const t=Object.values(e);if(t.length>0){return t.reduce(((e,t)=>e+t),0)}return 0}function r({boardIsCollaborative:e,isDownstreamPromotion:t,isPromoted:n,storyPinDataId:i,videosId:a}){return!(n||t||!a&&!i||null!=e&&e)}n.d(t,{At:()=>i,J6:()=>r,Ud:()=>a})},349741:(e,t,n)=>{n.d(t,{Z:()=>S});var i=n(667294),a=n(327212),r=n(830157),o=n(499128),s=n(898781),l=n(349700),d=n(883119),c=n(785893);function u({hideToast:e,newPin:t,originalPinId:n}){var i,a;const r=(0,s.ZP)();return(0,c.jsx)(o.ZP,{primaryAction:{accessibilityLabel:r._('Change saved Pin button', 'RepinRequest.a11yChangeButton', 'Change saved Pin button'),href:`/pin/${t.id}/repin/?isEditingPin=true&pinBoardId=${null!==(i=null===(a=t.board)||void 0===a?void 0:a.id)&&void 0!==i?i:""}&&isFromToast=true&&originalPinId=${null!=n?n:""}`,label:r._('Change', 'RepinRequest.ChangeButton', 'Change saved Pin button'),size:"lg",onClick:e},duration:5e3,onHide:e,text:(0,c.jsx)(d.xv,{children:(0,l.nk)(r._('Saved to {{ profile }}', 'RepinRequest.ProfileSaveToastText', 'Toast for successfully saving to profile'),{profile:(0,c.jsx)(d.xv,{inline:!0,weight:"bold",children:r._('Profile', 'RepinRequest.ProfileSaveToastText.Profile', 'referring to pinner profile where pin was saved')})})}),iconThumbnail:(0,c.jsx)(d.xu,{color:"secondary",display:"flex",justifyContent:"center",alignItems:"center",height:48,width:48,children:(0,c.jsx)(d.JO,{accessibilityLabel:r._('Profile', 'RepinRequest.ProfileIcon', 'Icon signifying Pin was saved to profile without a board'),icon:"history",size:22})})})}var _=n(412067),p=n(483025),h=n(414327),m=n(332611),g=n(675752),v=n(56632),f=n(12918),y=n(782677);const E=({board:e,section:t})=>{const n=(0,s.ZP)();return t?(0,l.nk)(n._('Saved to {{sectionName}} in {{boardName}}', 'Toast for successfully saving to a section within a board', 'Toast for successfully saving to a section within a board'),{sectionName:t&&t.title,boardName:e.name}).join(""):(0,c.jsxs)(i.Fragment,{children:[(0,c.jsx)(d.xv,{color:"default",children:n._('Saved to', 'Saved to {{ boardName }}', 'Saved to {{ boardName }}')}),(0,c.jsx)(d.xv,{color:"default",weight:"bold",children:e.name})]})};class S{constructor({boardId:e,dispatch:t,history:n,isOneTapSave:i=!1,isQuickSave:a=!1,onSuccess:o,onUndo:s,originalPinId:l,pin:d,resourceName:c,section:u,showNewUserSavetoProfileAnimation:_=!1,showRepinToasts:h,trackingParams:m,userId:g,viewType:v=3,historyPush:f}){var E,S,T,I,x;x=e=>(0,y.Fv)(e.resource_response.data,p.Z[this.resourceName]),(I="_getNormalizedResponse")in(T=this)?Object.defineProperty(T,I,{value:x,enumerable:!0,configurable:!0,writable:!0}):T[I]=x,this.boardId=e,this.trackingParams=m,this.clientTrackingParams=(0,r.Z)(m.clientTrackingParams||"",d.tracking_params),this.dispatch=t,this.history=n,this.onSuccess=o,this.onUndo=s,this.originalPinId=l,this.pin=d,this.pinnedToBoardId=m.pinnedToBoardId||(null!==(E=null===(S=d.pinned_to_board)||void 0===S?void 0:S.id)&&void 0!==E?E:""),this.resourceName=c,this.showNewUserSavetoProfileAnimation=_,this.showRepinToasts=h,this.section=u,this.isOneTapSave=i,this.isQuickSave=a,this.userId=g,this.viewType=v,this.historyPush=f}get resourceOptions(){const{link:e,title:t,promoted_is_removable:n,id:i}=this.pin,a=n?{is_removable:!0}:{};return{pin_id:i,board_id:this.boardId,section:this.section&&this.section.id,clientTrackingParams:this.clientTrackingParams,link:null!=e?e:"",title:null!=t?t:"",user_id:this.userId,is_removable:a}}get trackingData(){return{event_type:5,element:this.isOneTapSave?10599:void 0,view_type:this.viewType,component:this.isOneTapSave?0:7,view_parameter:this.isOneTapSave?3173:(0,g.A)(this.pin),object_id_str:this.pin.id,clientTrackingParams:this.clientTrackingParams,aux_data:{board_id:this.pinnedToBoardId,destination_board_id:this.boardId}}}_createRepin(){return _.Z.create(this.resourceName,{...this.resourceOptions,disable_event_log_info:!0}).callCreate()}processRepin(e){return this._createRepin().then((t=>{this.onSuccess&&this.onSuccess();const n=t.resource_response.data,{board:i}=n,{isQuickSave:r,originalPinId:o,showNewUserSavetoProfileAnimation:l}=this,_=({hideToast:e})=>{var t;if(r&&!l)return(0,c.jsx)(u,{hideToast:e,newPin:n,originalPinId:o});const{thumbnail:_}=(0,v.L)(i.id);return(0,c.jsx)(a.Z,{button:(0,c.jsx)(s.oz,{children:e=>(0,c.jsx)(d.zx,{fullWidth:!0,onClick:({event:t})=>{t.preventDefault(),t.stopPropagation();const a=this.onUndo;var r;a&&!l?a(this.pin.id,n.id,i.id,null===(r=this.section)||void 0===r?void 0:r.id,e):l&&this.historyPush(`/pin/${n.id}/repin/?isEditingPin=true&pinBoardId=${i.id}&&isFromToast=true&&originalPinId=${null!=o?o:""}`)},text:l?e._('Organize', 'RepinRequest.OrganizeButton', 'Button to allow users to organize saved pins'):e._('Undo', 'RepinRequest.UndoButton', 'Undo saved pin button')})}),href:this.section?`${i.url}${null!==(t=this.section.slug)&&void 0!==t?t:""}`:i.url,isRepinToExistingBoard:!0,onHide:e,text:(0,c.jsx)(E,{board:i,section:this.section}),thumbnail:_})},p=this._getNormalizedResponse(t);if(this.dispatch((0,h.XM)(this.resourceName,this.resourceOptions,t,p)),this.originalPinId&&this.originalPinId!==this.resourceOptions.pin_id){const e={...this.resourceOptions,pin_id:this.originalPinId};this.dispatch((0,h.XM)(this.resourceName,e,t,p))}this.dispatch((0,f.M)(n.id,i.id,this.section?this.section.id:void 0,this.userId));const g=this.showRepinToasts;return g&&g(_),this.dispatch((0,m.fO)({event_type:5})),e(this.trackingData),n}))}}},21384:(e,t,n)=>{n.d(t,{Z:()=>C});var i=n(667294),a=n(702664),r=n(373420),o=n(430322),s=n(121151),l=n(898781),d=n(643010),c=n(883119),u=n(50286),_=n(785893);function p({showFullScreenInfo:e,isOpen:t,interstitialUpsellDismissed:n,children:i}){const a=(0,l.ZP)(),r=(0,u.HG)(),p=(0,u.Wb)();return p||r?(0,_.jsx)(s.ZP,{accessibilityModalLabel:"",mobileHideCloseIcon:!0,mobileIsFullscreen:!0,isOpen:e&&!p,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,_.jsx)(c.xu,{color:(0,d.Yc)()?"dark":"default",dangerouslySetInlineStyle:{__style:{border:(0,d.Yc)()?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:r?"100vw":"100%",zIndex:new c.Ry(1),children:(0,_.jsx)(c.xu,{bottom:!0,left:!0,right:!0,top:!0,position:"fixed",padding:5,overflow:"scroll",marginTop:n?0:12,children:i})})}):(0,_.jsx)(o.default,{accessibilityModalLabel:a._('Close', 'Close modal window', 'Close modal window'),isOpen:t,onDismiss:()=>{},mobileAccessibilityCloseIconLabel:a._('Close', 'Close modal window', 'Close modal window'),children:i})}var h,m=n(784590),g=n(690035),v=n(52022),f=n(385801),y=n(623568),E=n(867820),S=n(350118),T=n(780280),I=n(992750),x=n(167912);const P=void 0!==h?h:h=n(276667);function b({iconColor:e,size:t,isMainPin:n,isAuth:o,pinCreditPrefix:s,onClickTitleOrDomain:d,richMetadataDescription:h,richMetadataTitle:m,richSummaryDisplayName:S,placeSummaryName:x,closeupUnifiedDescription:P,gridTitle:b,storyPinDataId:A,storyPinDataMetadataPinTitle:w,pinDescription:R,pinDomain:C,pinTitle:O,boardId:N,boardUrl:D,boardName:k,boardPrivacy:L,pinnerFullName:j,pinnerImageSmallUrl:U,pinnerImageLargeUrl:M,pinId:F,graphqlRef:B}){const G=(0,l.ZP)(),z=(0,v.Z)(),{isBot:H}=(0,T.B)(),{unauthInterstitialDismissed:Z}=(0,a.useSelector)((({session:e})=>e)),[V,W]=(0,i.useState)(!1),K=(0,u.HG)(),Y=(0,u.Wb)(),q=(0,g.Z)(),$=(0,y._S)(C)?C:"",X=!Y&&!o,{description:J}=(0,I.eK)({richMetadataDescription:h,richSummaryDisplayName:S,placeSummaryName:x,closeupUnifiedDescription:P}),Q=(0,I.fs)({pinTitle:O,gridTitle:b,richSummaryDisplayName:S,richMetadataTitle:m,storyPinDataId:A,storyPinDataMetadataPinTitle:w,placeSummaryName:x})||R,ee=!K,te=(0,_.jsxs)(c.xu,{padding:5,dangerouslySetInlineStyle:X?{__style:{paddingTop:0,paddingBottom:30}}:void 0,children:[(0,_.jsx)(c.xu,{left:!0,position:"absolute",top:!0,color:"default",padding:4,"data-test-id":"close-seo-vase-see-more-button",children:(0,_.jsx)(c.hU,{accessibilityLabel:G._('Cancel', 'close modal icon', 'close modal icon'),icon:"cancel",size:"sm",onClick:()=>{(0,E.My)("mweb.unauth.see_more.dismissed"),z({action:"click",item:"close-seo-vase-see-more-button"}),W(!1),n&&(0,E.My)("mweb.unauth.see_more.main_pin.dismissed")},iconColor:"gray"})}),(0,_.jsx)(c.xu,{marginBottom:X?0:8,children:(0,_.jsx)(c.xv,{align:X?"start":"center",weight:X?void 0:"bold",children:(0,_.jsx)("span",{className:"deprecatedTextSizeXL",children:X?null:G._('More information', 'more information label', 'more information label')})})}),(0,_.jsx)(f.Z,{description:J,title:Q,pinCreditPrefix:s,onClickTitleOrDomain:d,pinDomain:$,boardId:N,boardUrl:D,boardName:k,boardPrivacy:L,pinnerFullName:j,pinnerImageSmallUrl:U,pinnerImageLargeUrl:M,pinId:F,graphqlRef:B})]});return(0,_.jsxs)(c.xu,{right:!0,"data-test-id":"SeoVaseSeeMoreButton",dangerouslySetInlineStyle:{__style:{float:"right"}},children:[(0,_.jsx)(c.hU,{accessibilityLabel:G._('See more', 'more information icon', 'more information icon'),icon:"ellipsis",iconColor:null!=e?e:"gray",size:t||"md",onClick:({event:e})=>{e.stopPropagation(),(0,E.My)("mweb.unauth.see_more.shown."+(n?"main_pin":"related_pins")),z({action:"click",item:"seo-vase-see-more-button"}),Y||o?(W(!0),n&&(0,E.My)("mweb.unauth.see_more.main_pin.shown")):q({pinId:F||"",location:n?"main-pin-more-information":"non-main-pin-more-information",seoPlacementConfig:{description:J,titleText:Q,pinCreditPrefix:s,onClickTitleOrDomain:d,cleanPinDomain:$,boardId:N,boardUrl:D,boardName:k,boardPrivacy:L,pinnerFullName:j,pinnerImageSmallUrl:U,pinnerImageLargeUrl:M,pinId:F,graphqlRef:B}})}}),H&&ee?(0,_.jsx)(c.xu,{display:V?"flex":"none",children:te}):(0,_.jsx)(p,{showFullScreenInfo:V,isOpen:V&&!Y,interstitialUpsellDismissed:!!Z,children:te}),Y&&V&&(0,_.jsx)(r.default,{accessibilityModalLabel:"test",onDismiss:()=>{},children:te})]})}function A(e){var t,n,i,a,r,o,s,l,d,c,u,p,h,m,g,v;const f=(0,x.useFragment)(P,e.graphqlRef);return(0,_.jsx)(b,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,richMetadataDescription:null!==(t=null==f||null===(n=f.richMetadata)||void 0===n?void 0:n.description)&&void 0!==t?t:"",richMetadataTitle:null!==(i=null==f||null===(a=f.richMetadata)||void 0===a?void 0:a.title)&&void 0!==i?i:"",richSummaryDisplayName:null!==(r=null==f||null===(o=f.richSummary)||void 0===o?void 0:o.displayName)&&void 0!==r?r:"",closeupUnifiedDescription:null!==(s=null==f?void 0:f.closeupUnifiedDescription)&&void 0!==s?s:"",gridTitle:null==f?void 0:f.gridTitle,storyPinDataId:null==f?void 0:f.storyPinDataId,storyPinDataMetadataPinTitle:null==f||null===(l=f.storyPinData)||void 0===l||null===(d=l.metadata)||void 0===d?void 0:d.pinTitle,pinDescription:null==f?void 0:f.description,pinDomain:(null==f?void 0:f.domain)||void 0,pinTitle:null==f?void 0:f.title,boardId:null==f||null===(c=f.board)||void 0===c?void 0:c.entityId,boardUrl:(null==f||null===(u=f.board)||void 0===u?void 0:u.url)||void 0,boardName:(null==f||null===(p=f.board)||void 0===p?void 0:p.name)||void 0,boardPrivacy:(null==f||null===(h=f.board)||void 0===h?void 0:h.privacy)||void 0,pinnerFullName:(null==f||null===(m=f.pinner)||void 0===m?void 0:m.fullName)||void 0,pinnerImageSmallUrl:null==f||null===(g=f.pinner)||void 0===g?void 0:g.imageSmallUrl,pinnerImageLargeUrl:null==f||null===(v=f.pinner)||void 0===v?void 0:v.imageLargeUrl,pinId:null==f?void 0:f.entityId,graphqlRef:f})}function w(e){var t,n,i,a,r,o,s,l,d,c,u;const p=(0,S.S6)()(null!==(t=e.pinId)&&void 0!==t?t:""),h=null==p?void 0:p.board,m=null==p?void 0:p.pinner;return(0,_.jsx)(b,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,richMetadataDescription:null!==(n=null==p||null===(i=p.rich_metadata)||void 0===i?void 0:i.description)&&void 0!==n?n:"",richMetadataTitle:null!==(a=null==p||null===(r=p.rich_metadata)||void 0===r?void 0:r.title)&&void 0!==a?a:"",richSummaryDisplayName:null!==(o=null==p||null===(s=p.rich_summary)||void 0===s?void 0:s.display_name)&&void 0!==o?o:"",placeSummaryName:null!==(l=null==p?void 0:p.place_summary)&&void 0!==l?l:"",closeupUnifiedDescription:null!==(d=null==p?void 0:p.closeup_unified_description)&&void 0!==d?d:"",gridTitle:null==p?void 0:p.grid_title,storyPinDataId:null==p?void 0:p.story_pin_data_id,storyPinDataMetadataPinTitle:null==p||null===(c=p.story_pin_data)||void 0===c||null===(u=c.metadata)||void 0===u?void 0:u.pin_title,pinDescription:null==p?void 0:p.description,pinDomain:null==p?void 0:p.domain,pinTitle:null==p?void 0:p.title,boardId:null==h?void 0:h.id,boardUrl:null==h?void 0:h.url,boardName:null==h?void 0:h.name,boardPrivacy:null==h?void 0:h.privacy,pinnerFullName:null==m?void 0:m.full_name,pinnerImageSmallUrl:null==m?void 0:m.image_small_url,pinnerImageLargeUrl:null==m?void 0:m.image_large_url,pinId:null==p?void 0:p.id})}function R(e){var t,n,i,a,r,o,s,l,d,c,u;const p=(0,S.S6)()(null!==(t=e.pinId)&&void 0!==t?t:""),h=null==p?void 0:p.board,g=null==p?void 0:p.pinner;return(0,m.Z)({name:"PinResource",options:{id:e.pinId,field_set_key:"unauth_ssr_lazy_load"}}),(0,_.jsx)(b,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,richMetadataDescription:null!==(n=null==p||null===(i=p.rich_metadata)||void 0===i?void 0:i.description)&&void 0!==n?n:"",richMetadataTitle:null!==(a=null==p||null===(r=p.rich_metadata)||void 0===r?void 0:r.title)&&void 0!==a?a:"",richSummaryDisplayName:null!==(o=null==p||null===(s=p.rich_summary)||void 0===s?void 0:s.display_name)&&void 0!==o?o:"",placeSummaryName:null!==(l=null==p?void 0:p.place_summary)&&void 0!==l?l:"",closeupUnifiedDescription:null!==(d=null==p?void 0:p.closeup_unified_description)&&void 0!==d?d:"",gridTitle:null==p?void 0:p.grid_title,storyPinDataId:null==p?void 0:p.story_pin_data_id,storyPinDataMetadataPinTitle:null==p||null===(c=p.story_pin_data)||void 0===c||null===(u=c.metadata)||void 0===u?void 0:u.pin_title,pinDescription:null==p?void 0:p.description,pinDomain:null==p?void 0:p.domain,pinTitle:null==p?void 0:p.title,boardId:null==h?void 0:h.id,boardUrl:null==h?void 0:h.url,boardName:null==h?void 0:h.name,boardPrivacy:null==h?void 0:h.privacy,pinnerFullName:null==g?void 0:g.full_name,pinnerImageSmallUrl:null==g?void 0:g.image_small_url,pinnerImageLargeUrl:null==g?void 0:g.image_large_url,pinId:null==p?void 0:p.id})}function C(e){return e.graphqlRef?(0,_.jsx)(A,{...e}):e.lazyLoadAnnotations?(0,_.jsx)(R,{...e}):(0,_.jsx)(w,{...e})}},914142:(e,t,n)=>{n.d(t,{Z:()=>d,j:()=>l});var i=n(898781),a=n(883119),r=n(773285),o=n(349700),s=n(785893);const l=[0,2,3];function d({hasAffiliatedProducts:e,isPromoted:t,sponsorName:n,sponsorshipStatus:d,textColor:c}){const u=(0,i.ZP)(),_=(0,r.F)().checkExperiment("mweb_web_android_ios_clbc_eu_ad_string").anyEnabled;let p;t?p=(0,o.nk)(u._('Promoted by {{ name }}', 'sponsorship.sponsorshipText.promotedByBrand', 'indicating the username of the person who promoted the pin'),{name:n}):d||0===d?n&&!l.includes(d)?p=(0,o.nk)(u._('Paid partnership with {{ name }}', 'closeup.creator.sponsoredPinTitle', 'Subtext of closeup creator card when sponsored by a brand'),{name:n}):2!==d&&(p=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&&(p=u._('Includes sponsored products', 'sponsorship.sponsorshipText.affiliatedProducts', 'Subtext of pincard attribution for a pin with affiliated products'));const h=_&&!t?"Ad • ":"";return(0,s.jsxs)(a.xv,{color:c,size:"100",children:[h,p]})}},982828:(e,t,n)=>{n.d(t,{Z:()=>c});var i=n(667294),a=n(700380),r=n(883119),o=n(313047),s=n(785893);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends i.PureComponent{constructor(...e){super(...e),l(this,"onScroll",(0,a.Z)((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());const{isOnView:i}=this;var t,n;if(i())null===(t=(n=this.props).onView)||void 0===t||t.call(n)}}),this.props.throttleTime||100)),l(this,"wasViewed",(()=>{var e;const t=null===(e=this.anchorElement)||void 0===e?void 0:e.getBoundingClientRect();return!!t&&t.top<=o.DEFAULT_HEIGHT})),l(this,"isOnView",(()=>{var e;const t=null===(e=this.anchorElement)||void 0===e?void 0:e.getBoundingClientRect();return!!t&&(t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||window.height)-150&&t.right<=(window.innerWidth||window.width))})),l(this,"hasExited",!1)}componentDidMount(){window.addEventListener("scroll",this.onScroll)}componentWillUnmount(){window.removeEventListener("scroll",this.onScroll)}render(){const{children:e}=this.props;return(0,s.jsx)(r.xu,{ref:e=>{var t,n;(this.anchorElement=e,this.anchorElement&&this.wasViewed())&&(null===(t=(n=this.props).onView)||void 0===t||t.call(n))},children:e})}}const c=d},914321:(e,t,n)=>{n.d(t,{Z:()=>z});var i=n(667294),a=n(702664),r=n(686180),o=n(541741),s=n(231486),l=n(226198);var d=n(932046),c=n(172071),u=n(867820),_=n(644035);const p=({moduleName:e,pageType:t,requestContext:n,route:i})=>{const a=(e=>{const{userAgent:t}=e;if(!t.isMobile&&!t.isTablet)return"desktop";switch(t.platform){case _.RL:return"iphone";case _.GW:return t.isTablet?"android_tablet":"android";case _.s4:return"ipad";default:return"mobile_other"}})(n),r=n.isAuthenticated?"auth":"unauth",o=(()=>{const e=navigator&&navigator.userAgent.toLowerCase();if(e){if(e.indexOf("googlebot")>-1||e.indexOf("google web preview")>-1||e.indexOf("google page speed insights")>-1)return"google_bot";if(e.indexOf("msnbot")>-1||e.indexOf("bingbot")>-1)return"ms_bot";if(e.indexOf("applebot")>-1)return"apple_bot";if(e.indexOf("yahoo")>-1||e.indexOf("slurp")>-1)return"yahoo_bot";if(e.indexOf("yandex")>-1)return"yandex"}})(),p=(0,d.Z)(),h=function(){let e=!1;return s.U2(l.VL)||(s.t8(l.VL,"1",(0,s.kZ)(l.VL)),e=!0),e}(),m=document.domain||"unknown";h&&((0,u.My)(`traffic.${a}.${p}.${e}.${r}`),(0,u.My)(`traffic_subdomain.${m}.${p}.${e}.${r}`),(0,u.My)(`traffic_subdomain.${m}.${a}.${p}.${e}.${r}`),(0,u.My)(`traffic_subdomain.${m}.${a}.${r}`),(0,u.My)(`traffic_duplo.${a}.${p}.${e}.${r}`),o&&(0,u.My)(`traffic_bot.${o}.${e}`));c.Z.increment("webapp.traffic",.1,{domain:m,isAuth:r,pageType:t,userAgentPlatform:a,botType:o,firstVisit:h,moduleName:e,referrer:p,route:i})};var h=n(763585),m=n(412067);function g(){setTimeout((async()=>{try{const e=await async function(){const e=n(565936).ZP,t=Date.now(),i=await e.load(),a=await i.get(),r=Date.now();c.Z.timing("fingerprint.time",r-t,1);const o=a.components;for(const n in o){const e=o[n].duration;c.Z.timing("fingerprint.componentDuration",e,.1,{component:n})}return a.visitorId}();m.Z.create("ApiResource",{url:"/v3/spam/fingerprints/",data:{fingerprint:e}}).callCreate()}catch(e){c.Z.increment("webapp.generateClientFingerprint.failure",1)}}),300)}var v=n(50286),f=n(780280),y=n(8742);var E=n(635240),S=n(427014),T=n(844974),I=n(276775);const x="FIRST_DELAY_REFRESH_TIME_KEY";function P({appType:e,isAuthDesktop:t,isBot:n,newVersionAvailable:a,stage:r}){const o=(0,I.useLocation)(),s=(0,i.useRef)(o),l=(0,i.useRef)(!1),d=(0,E.Z)();(0,i.useEffect)((()=>{if(a&&!l.current)if(window.Cypress)l.current=!1;else if(window.navigator.connection&&["slow-2g","2g","3g"].includes(window.navigator.connection.effectiveType)){const{maxStalenessReached:e,firstDelayTime:t}=(()=>{const e=Date.now();let t=(0,T.qn)(x);return t=t?parseInt(t,10):null,{firstDelayTime:t,maxStalenessReached:t&&e-t>864e5}})();e?((0,T.L_)(x),c.Z.increment("mweb_skip_hard_refresh_max_stale",.1,{appVersion:d,connectionType:window.navigator.connection.effectiveType}),l.current=!0):(c.Z.increment("mweb_skip_hard_refresh",.1,{appVersion:d,connectionType:window.navigator.connection.effectiveType}),t||(0,T.Nh)(x,Date.now()),l.current=!1)}else l.current=!0})),(0,i.useEffect)((()=>{s.current!==o&&l.current&&"latest.pinterest.com"!==window.location.hostname&&((0,S.Z)({deviceType:t?"desktop":"mobile",eventType:"refresh",eventName:"react_hardReloadOnRouteChange",stage:r,currVersion:d,isBot:n,appType:e}),window.location.reload(!0)),s.current=o}),[o])}var b=n(139405),A=n(965900),w=n(123159),R=n(924114),C=n(858416),O=n(332215),N=n(94089),D=n(904779),k=n(130460),L=n(350118),j=n(698330),U=n(148304),M=n(114020),F=n(640064),B=n(813401),G=n(785893);function z({children:e,pwaContext:t}){const n=(0,v.ZP)(),s=(0,f.B)(),{appTypeDetailed:l,isAuthenticated:d,isBot:c,stage:u,userAgent:{isMobile:_,isTablet:m}}=s,E=(0,a.useSelector)((({users:e})=>{const t=Object.keys(e).find((t=>void 0!==e[t].login_state));return!!t&&(0,O.xT)(e[t])})),{path:S}=(0,I.useRouteMatch)();return function(){const e=(0,v.ZP)(),{isAuthenticated:t}=(0,f.B)();(0,i.useEffect)((()=>{t&&"desktop"===e?y.CC.preload():y.hW.preload()}),[t,e])}(),(0,i.useEffect)((()=>{E||g()}),[E]),(0,i.useEffect)((()=>{!function({pageType:e,requestContext:t,route:n}){p({moduleName:{"/":"HomePage","/login":"LoginPage","/pin/:id":"Closeup","/:username":"ProfilePage","/:username/:slug":"BoardPage","/topics/:interest":"TopicPage","/today":"TodayTabPage","/today/:term/:title/:articleId":"TodayArticleFeedPage","/ideas":"IdeasRootPage","/ideas/:interest/:id":"IdeasPage","/videos":"VideosRootPage","/videos/:category/:id":"VideosCategoryPage","/shopping":"ShoppingRootPage","/shopping/:category/:id":"ShoppingCategoryPage"}[n]||"other",pageType:e,requestContext:t,route:n})}({pageType:_||m||!d?"duplo":"web",requestContext:s,route:S})}),[]),P({appType:l,isAuthDesktop:d&&!_&&!m,isBot:c,newVersionAvailable:r.Z.isNewVersionRequired(),stage:u}),(0,G.jsx)(w.F,{children:(0,G.jsx)(L._S,{children:(0,G.jsx)(k.fJ,{children:(0,G.jsx)(j.kY,{children:(0,G.jsx)(U.t7,{children:(0,G.jsx)(C.Wr,{children:(0,G.jsx)(b.pb,{children:(0,G.jsx)(B.of,{initialContext:t,children:(0,G.jsx)(R.fr,{children:(0,G.jsx)(M.p,{children:(0,G.jsx)(F.w,{children:(0,G.jsx)(N.vo,{children:(0,G.jsx)(D.T,{children:(0,G.jsx)(h.Z,{scrollOn:d&&"desktop"===n?"timeout":"animationFrame",children:(0,G.jsxs)(A.g,{children:[d&&(0,G.jsx)(o.Z,{}),e]})})})})})})})})})})})})})})})}},394332:(e,t,n)=>{n.d(t,{Z:()=>S});var i,a=n(667294),r=n(391254),o=n(941646),s=n(862193),l=n(898781),d=n(52022),c=n(992750),u=n(350118),_=n(883119),p=n(167912),h=n(785893);const m=void 0!==i?i:i=n(85934);function g({direction:e,handleClick:t,testId:n}){const i=(0,l.ZP)(),a=(0,d.Z)();return(0,h.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=>{a({action:"click",item:"board-pills-arrow"}),t(e)},role:"button","aria-label":"arrow",tabIndex:-1,"aria-hidden":"true","data-test-id":n,children:(0,h.jsx)(o.Z,{id:"board-pills-arrow",children:(0,h.jsx)(_.JO,{accessibilityLabel:i._('Scroll', 'annotations.scrollArrow', 'Accessibility label for scroll arrow button'),icon:"right"===e?"arrow-forward":"arrow-back",size:8,color:"subtle"})})})}function v({name:e,url:t}){const[n,i]=(0,a.useState)(!1),r=(0,d.Z)();return(0,h.jsx)(_.xu,{"data-test-id":"vase-tag",display:"inlineBlock",marginTop:1,marginEnd:1,paddingX:2,paddingY:1,height:26,color:"secondary",rounding:8,dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap"}},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:(0,h.jsx)(_.xv,{color:n?"subtle":"default",inline:!0,overflow:"breakWord",size:"100",weight:"bold",children:t?(0,h.jsx)(_.rU,{display:"inlineBlock",tapStyle:"compress",href:t,rounding:8,onClick:()=>{r({action:"click",item:"vase-tag"})},underline:"hover",children:e}):e})})}function f({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t,mode:n}){const[i,s]=(0,a.useState)(!1),[l,u]=(0,a.useState)(!1),p=(0,d.Z)(),m=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=m.current,t=()=>{if("inlineWithScrollArrows"===n&&m.current){const e=m.current,t=Math.max(0,e.scrollLeft),n=t+e.clientWidth;s(0!==t),u(n{null==e||e.removeEventListener("scroll",t)}}),[n]);const f=e=>t=>{t.preventDefault(),t.stopPropagation(),"right"===e&&p({action:"click",item:"board-pills-arrow-button-right"});const n=m.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)},{annotationsWithLinks:y}=(0,c.eK)({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t});return(0,h.jsx)(_.kC,{alignItems:"center",justifyContent:"end",children:(0,h.jsxs)(_.xu,{display:"flex",overflow:"auto",width:"100%",position:"relative","data-test-id":"vase-carousel",children:[(0,h.jsx)(r.Z,{unsafeCSS:"\n::-webkit-scrollbar {\n display: none;\n}\n"}),i&&(0,h.jsx)(g,{direction:"left",handleClick:f("left"),testId:"left-scroll-arrow"}),(0,h.jsx)(_.xu,{overflow:"auto",padding:0,dangerouslySetInlineStyle:{__style:{scrollBehavior:"smooth",scrollbarWidth:"none",whiteSpace:"nowrap"}},ref:m,children:y.map((({name:e,url:t})=>(0,h.jsx)(v,{name:e,url:t},t||e)))}),l&&(0,h.jsx)(o.Z,{id:"board-pills-arrow-button-right",children:(0,h.jsx)(g,{direction:"right",handleClick:f("right"),testId:"right-scroll-arrow"})})]})})}function y(e){var t;const n=(0,p.useFragment)(m,e.graphqlRef),i=(0,s.Z)(n),a=(null==n||null===(t=n.pinJoin)||void 0===t?void 0:t.visualAnnotation)||[];return a.length<1?null:(0,h.jsx)(f,{mode:e.mode,pinJoinVisualAnnotation:a,pinJoinAnnotationsWithLinks:i||void 0})}function E(e){var t,n,i;const a=(0,u.S6)()(e.pinId||"");return((null==a||null===(t=a.pin_join)||void 0===t?void 0:t.visual_annotation)||[]).length<1?null:(0,h.jsx)(f,{mode:e.mode,pinJoinVisualAnnotation:null==a||null===(n=a.pin_join)||void 0===n?void 0:n.visual_annotation,pinJoinAnnotationsWithLinks:null==a||null===(i=a.pin_join)||void 0===i?void 0:i.annotations_with_links})}function S(e){return e.graphqlRef?(0,h.jsx)(y,{...e}):(0,h.jsx)(E,{...e})}},385801:(e,t,n)=>{n.d(t,{Z:()=>E});var i=n(667294),a=n(927104),r=n(941646),o=n(52022),s=n(867820),l=n(50286),d=n(883119),c=n(785893);function u({boardUrl:e,boardName:t,boardPrivacy:n,pinnerFullName:i,pinnerImageSmallUrl:a,pinnerImageLargeUrl:u}){const _=(0,l.HG)(),p=(0,o.Z)();if(!e||!t)return null;const h=e.split("/")[1],m=i||h,g=a||u;return(0,c.jsxs)(d.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[g?(0,c.jsx)(d.iP,{role:"link",href:`/${h}/`,fullWidth:!1,tapStyle:"compress",onTap:()=>{(0,s.My)(`pcons.${_?"desktop":"mobile"}.see-more-button-creator`),p({action:"click",item:"see-more-button-creator"})},children:(0,c.jsx)(d.xu,{rounding:"circle",width:32,height:32,overflow:"hidden",marginEnd:2,"data-test-id":"see-more-button-creator",children:(0,c.jsx)(d.Ee,{naturalHeight:32,naturalWidth:32,alt:m,fit:"cover",color:"rgb(231, 186, 176)",src:g})})},"profile-link"):null,(0,c.jsxs)(d.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,c.jsx)(r.Z,{id:"see-more-button-creator-full-name",children:(0,c.jsx)(d.iP,{onTap:()=>{(0,s.My)(`pcons.${_?"desktop":"mobile"}.see-more-button-creator-full-name`),p({action:"click",item:"see-more-button-creator-full-name"})},children:(0,c.jsx)(d.xv,{color:"default",inline:!0,size:"100",weight:"bold",children:(0,c.jsx)(d.rU,{href:`/${h}/`,display:"inlineBlock",tapStyle:"compress",underline:"hover",children:m},"profile-link")},"profileLink")})}),"protected"===n?null:(0,c.jsx)(d.xv,{color:"default",inline:!0,size:"100",children:(0,c.jsx)(d.rU,{href:null!=e?e:"",display:"inlineBlock",tapStyle:"compress",underline:"hover",children:null!=t?t:""},"board-link")},"boardLink")]})]})}var _,p=n(898781),h=n(394332),m=n(349700),g=n(780280),v=n(298024),f=n(167912);const y=void 0!==_?_:_=n(877821);function E({onClickTitleOrDomain:e,title:t,description:n,pinId:r,graphqlRef:_,pinCreditPrefix:E,pinDomain:S,boardId:T,boardUrl:I,boardName:x,boardPrivacy:P,pinnerFullName:b,pinnerImageSmallUrl:A,pinnerImageLargeUrl:w}){const R=(0,p.ZP)(),C=(0,l.ml)(),O=(0,l.Wb)(),{isAuthenticated:N,isBot:D}=(0,g.B)(),k=(0,o.Z)(),L=(0,f.useFragment)(y,_),j=!N&&!D&&C,U=e||null,[M,F]=(0,i.useState)(!1),B=(0,v.si)(),G=(0,v.Re)(),z=(t||"").length>G,H=n.length>B,[Z,V]=(0,i.useState)(!H&&!z);return(0,c.jsxs)(d.xu,{children:[(0,c.jsxs)(d.xu,{children:[(0,c.jsxs)(d.xu,{as:"figcaption",paddingX:O?11:0,children:[(0,c.jsx)(d.X6,{color:"default",size:"300",accessibilityLevel:3,children:M||D?t:(0,a.Z)(t||"",G)}),!!t&&(0,c.jsx)(d.xu,{height:n?8:0}),n&&(H||z)?(0,c.jsxs)(d.iP,{onTap:()=>{M||N||((0,s.NC)("click_open_description_in_sheet"),k({action:"click",item:"more-description-in-sheet"})),V(!Z),F(!M)},fullWidth:!1,children:[(0,c.jsx)(d.xv,{color:"default",size:"200",inline:!0,children:M||D?n:(0,a.Z)(n,B)}),(0,c.jsx)(d.xu,{display:"inlineBlock",paddingX:1,children:(0,c.jsx)(d.xv,{weight:"bold",size:"200",inline:!0,children:M||D?R._('Less', 'Toggle less description button', 'Toggle less description button'):R._('More', 'Toggle more description button', 'Toggle more description button')})})]}):(0,c.jsx)(d.xv,{color:"default",size:"200",inline:!0,children:n})]}),j&&(Z||D)&&!!S&&(0,c.jsx)(d.xu,{marginTop:2,children:(0,c.jsx)(d.kC,{alignItems:"center",direction:"row",width:"100%",children:(0,m.nk)(R._('{{ pinCreditPrefix }} {{ pinCredit }}', 'tells the user where the pin is from in the form of Saved from website', 'tells the user where the pin is from in the form of Saved from website'),{pinCreditPrefix:(0,c.jsx)(d.xu,{display:"inlineBlock",children:(0,c.jsx)(d.xv,{inline:!0,size:"200",children:E})},"pinCreditsPrefix"),pinCredit:(0,c.jsx)(d.xu,{display:"inlineBlock",marginStart:1,maxWidth:"60vw","data-test-id":"pin-domain-link",children:(0,c.jsx)(d.iP,{onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),k({action:"click",item:"pin-domain-link"}),(0,s.My)("mweb_pin_page.pin_link.clickthrouh"),N||(0,s.NC)("click_pin_closeup_link_clickthrough"),U&&U()},tapStyle:"compress",children:(0,c.jsx)(d.xv,{size:"200",lineClamp:1,children:(0,c.jsx)("span",{style:{textDecoration:"underline"},children:S})},"pinLinkDomain")})},"pinCredits")})})})]}),!!T&&(Z||D)&&(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(u,{boardUrl:I,boardName:x,boardPrivacy:P,pinnerFullName:b,pinnerImageSmallUrl:A,pinnerImageLargeUrl:w})}),(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(h.Z,{pinId:r,mode:"expanded",graphqlRef:L})})]})}},999023:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),a=n(112690),r=n(867820);const o=({viewType:e,viewParameter:t,viewData:n,auxData:i,objectIdStr:a,component:o,clientTrackingParams:s,element:l},d)=>{const c=(u={event_type:13,view_type:e,view_parameter:t,view_data:n,aux_data:i,object_id_str:a,component:o,clientTrackingParams:s,element:l},Object.keys(u).reduce(((e,t)=>(void 0===u[t]&&delete e[t],e)),{...u}));var u;-1===Object.keys(c).indexOf("view_type")&&(0,r.My)("mweb.logging.null_view_type"),d(c)};function s(e){const{auxData:t,clientTrackingParams:n,children:r,component:s,element:l,objectIdStr:d,viewData:c,viewParameter:u,viewType:_}=e,p=(0,a.Z)(),h=JSON.stringify(t),m=JSON.stringify(c);return(0,i.useEffect)((()=>{o(e,p)}),[p,h,n,s,l,d,m,u,_]),i.Children.only(r)}},598615:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(667294),a=n(329900),r=n(172071),o=n(938917),s=n(53987),l=n(407043),d=n(385740),c=n(52022),u=n(867820),_=n(276775),p=n(785893);function h({children:e,componentType:t,within:n}){const h=(0,_.useLocation)(),{flushContextEvents:m,logContextEvent:g}=(0,l.v)(),{viewType:v,viewParameter:f}=(0,d.SU)(),y=(0,c.Z)();(0,i.useEffect)((()=>{y({action:"view",item:"download-button",within:n})}),[h,n,y]);const E=(0,i.useRef)(!1);(0,i.useEffect)((()=>{v&&202!==v?(g({component:t||13106,element:10308,event_type:9976,view_type:v,view_parameter:f,aux_data:{app_upsell_type:n,app_upsell_is_dupe:E.current}}),E.current=!0):r.Z.increment("webapp.track_app_upsell_viewed_invalid_parameters",1,{component:t,view_type:v,view_parameter:f,app_upsell_type:n,app_upsell_is_dupe:E.current})}),[t,g,f,v,n]);const S=(0,o.Z)();return(0,i.useEffect)((()=>{S||(0,u.My)(`mweb.app_upsell.forbidden_upsell.${n}`)}),[S,n]),(0,p.jsx)(a.Z,{children:i=>e({handleOpenApp:e=>{var a;(y({action:"click",item:"download-button",within:n}),(0,u.NC)("press_open_app",!0),g({component:t||13106,element:10308,event_type:102,view_type:v||202,view_parameter:f,aux_data:{app_upsell_type:n}}),g({component:t||13106,element:10308,event_type:9977,view_type:v||202,view_parameter:f,aux_data:{app_upsell_type:n}}),m(!0),i)&&(g({component:t||13106,element:10308,event_type:1701,view_type:v||202,view_parameter:f,aux_data:{app_upsell_type:n}}),i(null!==(a=null==e?void 0:e.deepLinkUri)&&void 0!==a?a:(e=>"/"===e.pathname?"/":(0,s.am)(e)?`board/${e.pathname.substr(1)}`:e.pathname.substr(1))(h)))}})})}},296679:(e,t,n)=>{n.d(t,{Z:()=>g});var i=n(598615),a=n(821997),r=n(430322),o=n(898781),s=n(287072),l=n(948376),d=n(773285),c=n(50286),u=n(780280),_=n(664166),p=n(883119),h=n(785893);const m=({deepLinkUri:e,isOpen:t,onDismiss:n,onOpenInApp:_,to:m,within:g})=>{var v;const f=(0,o.ZP)(),y=(0,c.Wb)(),{userAgent:{platform:E,raw:S}}=(0,u.B)(),T=(0,l.Rp)({platform:E,userAgent:S}),I=(0,s.Z)({href:null!=m?m:""}),x=y?60:40,{checkExperiment:P}=(0,d.F)(),{group:b}=P("mweb_auth_deep_link_app_upsell"),A={control:{valueProp:f._('The best experience is on the app', 'mweb.unauth.app_upsell.app_value_prop', 'Mobile Web App Upsell title on Pin click informing the value of downloading an app'),description:f._('Free, unlimited access to ideas', 'mweb.app_upsell.description', 'description on app upsell modal')},enabled_check_install_1:{valueProp:f._('Pick this up in the app', 'mweb.unauth.app_upsell.app_value_prop1', 'Mobile Web App Upsell title on Pin click informing the value of downloading an app'),description:f._('Continue in the Pinterest app for the best experience', 'mweb.app_upsell.description1', 'description on app upsell modal')},enabled_check_install_2:{valueProp:f._('Pick this up in the app', 'mweb.unauth.app_upsell.app_value_prop1', 'Mobile Web App Upsell title on Pin click informing the value of downloading an app'),description:f._('Looks like you\u2019ve already downloaded the Pinterest app', 'mweb.app_upsell.description2', 'description on app upsell modal')},enabled_check_install_3:{valueProp:f._('Pick this up in the app', 'mweb.unauth.app_upsell.app_value_prop1', 'Mobile Web App Upsell title on Pin click informing the value of downloading an app'),description:f._('Looks like you\u2019ve already downloaded Pinterest. Use the app for the best experience.', 'mweb.app_upsell.description3', 'description on app upsell modal')},enabled_check_install_4:{valueProp:f._('Pinterest is better on the app', 'mweb.unauth.app_upsell.app_value_prop2', 'Mobile Web App Upsell title on Pin click informing the value of downloading an app'),description:f._('Continue in the app for the full experience', 'mweb.app_upsell.description4', 'description on app upsell modal')},enabled_check_install_5:{valueProp:f._('Pinterest is better on the app', 'mweb.unauth.app_upsell.app_value_prop2', 'Mobile Web App Upsell title on Pin click informing the value of downloading an app'),description:f._('Continue in the app for more ways to discover ideas', 'mweb.app_upsell.description5', 'description on app upsell modal')}},{valueProp:w,description:R}=null!==(v=A[b||"control"])&&void 0!==v?v:{},C=b.startsWith("enabled_check_install")?f._('Open app', 'mweb.app_upsell.app_upsell_button_text1', 'Button to get the Pinterest Lite app'):f._('Get the app', 'mweb.app_upsell.app_upsell_button_text', 'Button to get the Pinterest Lite app');return(0,h.jsx)(r.default,{accessibilityModalLabel:"",isOpen:t,mobileHideCloseIcon:!0,type:"app_upsell_v1",overrideZDepth:101,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,h.jsx)(i.Z,{componentType:14157,within:g,children:({handleOpenApp:t})=>(0,h.jsxs)(p.xu,{padding:3,"data-test-id":"appUpsell-iframe",children:[(0,h.jsx)(p.xu,{display:"inlineBlock",position:"absolute",children:(0,h.jsx)(p.xu,{"data-test-id":"appUpsell-continue",children:(0,h.jsx)(p.hU,{accessibilityLabel:f._('close icon background', 'accesibility label for close icon on a overlay', 'accesibility label for close icon on a overlay'),icon:"cancel",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{n({event:e}),I&&!e.defaultPrevented&&(t(),I({event:e}))},size:"lg",iconColor:"gray"})})}),(0,h.jsxs)(p.xu,{paddingX:2,paddingY:6,children:[(0,h.jsx)(p.xu,{paddingY:2,justifyContent:"center",display:"flex",children:T?(0,h.jsx)(a.Z,{size:x}):(0,h.jsx)(p.JO,{color:"brandPrimary",icon:"pinterest",accessibilityLabel:"Pinterest App",size:x})}),(0,h.jsxs)(p.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,h.jsx)(p.xu,{paddingY:2,children:(0,h.jsx)(p.X6,{align:"center",size:"400",children:T?f._('Try Pinterest Lite', 'mweb.app_upsell.lite_app_upsell_title', 'Mobile Web App Upsell title informing the value of downloading the lite app'):w})}),(0,h.jsx)(p.xv,{align:"center",size:"300",children:T?f._('A space-saving way to discover new ideas', 'mweb.app_upsell.lite_app_value_prop', 'Mobile Web App Upsell subheading informing the user the value of downloading the lite app'):R}),(0,h.jsx)(p.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{display:"grid"}},justifyContent:"center",marginTop:8,children:(0,h.jsx)(p.zx,{fullWidth:!0,size:"lg",color:"red",onClick:()=>{t({deepLinkUri:e}),_()},text:C})})]})]})]})})})};function g({clientTrackingParams:e,deepLinkUri:t,isOpen:n,onDismiss:i,onOpenInApp:a,shouldTrackDismiss:r,to:o,viewParameter:s,viewType:l,within:d}){return(0,h.jsx)(_.Z,{clientTrackingParams:e,viewType:l,viewParameter:s,children:(0,h.jsx)(m,{deepLinkUri:t,isOpen:n,onDismiss:e=>{r&&(0,_.y)(),i(e)},onOpenInApp:()=>{(0,_.y)(),a()},to:o,within:d})})}},664166:(e,t,n)=>{n.d(t,{Z:()=>u,y:()=>c});var i=n(667294),a=n(807609),r=n(999023),o=n(30287),s=n(339363),l=n(844974),d=n(785893);const c=()=>{(0,l.Nh)("appUpsell",Date.now()),(0,l.qn)("firstUpsellTime")||(0,l.Nh)("firstUpsellTime",Date.now()),(0,s.Nh)("showedAppUpsellCurrentSession",!0)};function u({children:e,clientTrackingParams:t,viewParameter:n,viewType:s}){return(0,a.Z)()||(0,o.FP)(window)?null:(0,d.jsx)(r.Z,{viewType:s,viewParameter:n,component:13106,clientTrackingParams:t,children:(0,d.jsx)(i.Fragment,{children:e})})}},938917:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(702664);const a=()=>(0,i.useSelector)((({session:{canUseNativeApp:e}})=>e))},80811:(e,t,n)=>{n.d(t,{Z:()=>S});var i=n(667294),a=n(948618),r=n(815613),o=n(298361),s=n(112690),l=n(892819),d=n(19121),c=n(349700),u=n(867820),_=n(50286),p=n(758127),h=n(722556),m=n(898781),g=n(883119),v=n(526760),f=n(785893);function y(e,t){const{full_name:n,username:i}=e,a=(0,f.jsx)(g.rU,{href:`/${i}`,display:"inlineBlock",underline:"hover",children:n});return(0,c.nk)(t._('{{ linkToUser }} invited you to join this board', 'boardRep.invite.invitationText', 'Indicating that another user invited the viewer to this board'),{linkToUser:a})}const E=({children:e})=>{const t=(0,d.Z)(),n=(0,_.HG)(),i=t&&t.isAuth;return n&&i?(0,f.jsx)(g.X6,{accessibilityLevel:2,size:"400",lineClamp:1,children:e}):(0,f.jsx)(g.xv,{lineClamp:1,weight:"bold",children:e})};function S({archivedDate:e,boardUrl:t,canEdit:n,collaborators:d,collaboratorsCount:S=0,containerBackgroundColor:T,coverPhoto:I,followedByMe:x,fullSizeDrawer:P,sensitivityScreen:b,handleInviteResponse:A,hideMeta:w,id:R,invite:C,imagesLego:O=[],isBoardInviteAccepted:N,isActive:D,isAuthenticated:k,isCollaborative:L,isCollaborator:j,isOwner:U,isProtected:M,isSecret:F,lastModifiedDate:B,layout:G,locale:z,name:H,numCols:Z,onEditClick:V,onFollow:W,onUnfollow:K,owner:Y,pinCount:q=0,sectionCount:$,showFollowButton:X,viewParameter:J,viewType:Q,viewerId:ee}){const te=(0,m.ZP)(),ne=(0,o.Z)(),ie=(0,l.Z)(),ae=(0,s.Z)(),re=(0,_.HG)(),oe=re&&k,se="square"===G?v.M0:v.z9,le=O.map((e=>({url:e.url,name:H}))),de=!!Y&&!n&&X,ce=!U&&!j&&!(null==b||!b.show_warning),ue={board_id:R,reason:null==b?void 0:b.reason};(0,i.useEffect)((()=>{ce&&ae({event_type:13,component:13861,view_type:215,aux_data:ue})}),[]);const _e=Y?Y.id:void 0,pe=[...d.filter((({id:e})=>e===_e)),...d.filter((({id:e})=>e===ee&&e!==_e)),...d.filter((({id:e})=>![_e,ee].includes(e)))].map((e=>{var t,n;return{name:null!==(t=oe?e.full_name:e.username)&&void 0!==t?t:"",src:"https://s.pinimg.com/images/user/default_75.png"===e.image_medium_url?"":null!==(n=e.image_medium_url)&&void 0!==n?n:""}}));let he=S>=pe.length?S-pe.length:0;he=he>99?100:he;const me=[...pe,...Array(he).fill({name:"",src:""})],ge=oe?24:16,ve=ge/3*(2*(pe.length>2?3:pe.length)+1);return(0,f.jsxs)(g.xu,{"data-test-id":`boardCard-${H}`,position:"relative",height:de?"max(calc(25vh + 10px), 220px)":"100%",width:oe?se:"100%",children:[(0,f.jsx)(h.Z,{canEdit:n,containerBackgroundColor:T,coverPhoto:I,images:le,isProtected:M,isSecret:F,fullSize:P,showSensitivityScreen:ce,isActive:D,onEditClick:V,layout:G}),!w&&(0,f.jsx)(i.Fragment,{children:C?(0,f.jsxs)(i.Fragment,{children:[(0,f.jsxs)(g.xu,{padding:2,alignItems:"start","data-test-id":"board-card-title",display:"flex",flex:"grow",justifyContent:"between",children:[(0,f.jsxs)(g.xu,{width:"100%",children:[(0,f.jsx)(g.rU,{href:null!=t?t:"",children:(0,f.jsx)(g.xu,{marginTop:0,marginBottom:1,children:(0,f.jsx)(E,{children:H})})}),N?(0,f.jsx)(g.xv,{size:"200",lineClamp:1,children:te._('You\u2019ve joined', 'boardRep.invite.invitationAcceptedText', 'Text shown after accepting collaborator board invitations')}):(0,f.jsx)(g.xv,{size:"200",children:y(C.invited_by_user,te)})]}),(0,f.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{marginTop:-1}},marginStart:2,width:ve,minWidth:ve,height:ge,children:(0,f.jsx)(g.HE,{accessibilityLabel:p.U+(te._('Board has collaborators', 'BoardCard.AvatarGroup.Collaborators', 'Board description: title, number of pins, date, and it has collaborators or not.')),collaborators:me})})]}),N?(0,f.jsx)(g.xu,{direction:"row",display:"flex",paddingX:2,children:(0,f.jsx)(g.xu,{flex:"grow",marginBottom:3,paddingX:1,children:(0,f.jsx)(g.zx,{role:"link",href:null!=t?t:"",fullWidth:!0,size:"lg",text:te._('See board', 'boardRep.invite.seeBoardButton', 'Button text to see board after accepting collaborator invite')})})}):(0,f.jsxs)(g.kC,{direction:"row",flex:"grow",justifyContent:"start",wrap:!0,children:[(0,f.jsx)(g.xu,{marginBottom:3,paddingX:1,flex:"grow",children:(0,f.jsx)(g.zx,{fullWidth:!0,onClick:()=>{null==A||A(!1)},size:"lg",text:te._('Decline', 'boardRep.invite.declineButton', 'Button text to decline board collaborator invite or request')})}),(0,f.jsx)(g.xu,{marginBottom:3,paddingX:1,flex:"grow",children:(0,f.jsx)(g.zx,{fullWidth:!0,color:"red",onClick:()=>{null==A||A(!0)},size:"lg",text:te._('Accept', 'boardRep.invite.acceptButton', 'Button text to accept board collaborator invite or request')})})]})]}):(0,f.jsxs)(g.xu,{height:oe?void 0:v.s0,marginTop:oe?0:1,paddingX:2,paddingY:oe?2:0,children:[(0,f.jsxs)(g.xu,{alignItems:"center","data-test-id":"board-card-title",display:"flex",flex:"grow",justifyContent:"between",children:[(0,f.jsx)(E,{children:H}),L&&(0,f.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{marginTop:-1}},marginStart:2,width:ve,minWidth:ve,height:ge,children:(0,f.jsx)(g.HE,{accessibilityLabel:p.U+(te._('Board has collaborators', 'BoardCard.AvatarGroup.Collaborators', 'Board description: title, number of pins, date, and it has collaborators or not.')),collaborators:me})})]}),(0,f.jsxs)(g.xu,{alignItems:re?"center":"start",direction:re?"row":"column",display:"flex",marginTop:1,children:[(0,f.jsxs)(g.xv,{size:"100",lineClamp:1,children:[(0,f.jsx)(p.Z,{}),(0,c.nk)(te.ngettext('{{ count }} Pin', '{{ count }} Pins', q, 'profile.ProfilePage.board.BoardCard.PinsCount', 'label for n amount of pins'),{count:ie(z,q,{})}),!!$&&(0,f.jsxs)(i.Fragment,{children:[(0,f.jsx)(a.Z,{ariaHidden:!0}),(0,f.jsx)(p.Z,{}),(0,c.nk)(te.ngettext('{{ count }} section', '{{ count }} sections', $, 'profile.ProfilePage.board.BoardCard.SectionsCount', 'label for n amount of sections'),{count:$})]})]}),!e&&(0,f.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{display:oe?"inline-flex":"inline",paddingLeft:re?7:0}},children:(0,f.jsxs)(g.xv,{color:"subtle",inline:!0,size:"100",lineClamp:1,children:[(0,f.jsx)(p.Z,{}),ne(B,!0)]})})]}),de&&(0,f.jsx)(g.xu,{marginTop:2===Z?3:void 0,column:2===Z?12:void 0,flex:"none",children:(0,f.jsx)(r.Z,{disabled:null==Y?void 0:Y.blocked_by_me,followEventType:26,id:R,isFollowed:x,onFollow:e=>{k||(0,u.NC)("press_follow_board"),W&&W(e)},onUnfollow:e=>{k||(0,u.NC)("press_unfollow_board"),K&&K(e)},shouldUseLegoColors:!0,size:"md",unfollowEventType:27,viewParameter:J,viewType:Q})})]})})]})}},223019:(e,t,n)=>{n.d(t,{Z:()=>g});var i=n(702664),a=n(80811),r=n(340494),o=n(52022),s=n(19121),l=n(867820),d=n(130460),c=n(780280),u=n(883119),_=n(712055),p=n(853492),h=n(785893);const m=["thumbnail","imageOnly"];function g({boardId:e,containerBackgroundColor:t,forwardedRef:n,fullSize:g,showFollowButton:v=!0,showPinCount:f=!0,type:y,viewParameter:E,viewType:S}){var T,I,x;const P=(0,s.Z)(),b=P&&P.isAuth,A=(0,i.useDispatch)(),{locale:w}=(0,c.B)(),R=(0,o.Z)(),C=(0,d.gC)()(e),O=(0,r.Z)(),N=P.isAuth?P.id:"";if(!C)return null;const D=C.owner,k=[D,...C.collaborating_users||[]].filter(Boolean).map((({id:e,image_medium_url:t,username:n})=>({id:e,image_medium_url:t,username:n}))),L=(null==D?void 0:D.id)===N,j=k.filter((({id:e})=>e===N)).length>0;if("secret"===C.privacy&&!j)return null;const U="grid"===y||"thumbnail"===y?2:4,M=O(C,U),F={isCustom:C.has_custom_cover,url:M,position:(0,p.Bw)(C.cover_pin)},B=(0,p.Jx)(C,M).map((({url:e})=>({name:(0,p.po)(e),url:e}))),G=(0,h.jsx)(a.Z,{archivedDate:null!==(T=C.archived_by_me_at)&&void 0!==T?T:void 0,canEdit:!!C.access&&C.access.includes("write"),collaborators:k,collaboratorsCount:C.collaborator_count,containerBackgroundColor:t,coverPhoto:M?F:null,followedByMe:C.followed_by_me,fullSizeDrawer:g,hideMeta:m.includes(y),id:C.id,imagesLego:B,isAuthenticated:b,isCollaborative:C.is_collaborative,isCollaborator:j,isOwner:L,isProtected:"protected"===C.privacy,isSecret:"secret"===C.privacy,lastModifiedDate:"full"===y?C.board_order_modified_at:"",locale:w,name:null!==(I=C.name)&&void 0!==I?I:"",numCols:U,onFollow:e=>A((0,_.Z)(e)),onUnfollow:e=>A((0,_.f)(e)),owner:D,pinCount:f&&C.pin_count?C.pin_count:void 0,sectionCount:null!==(x=C.section_count)&&void 0!==x?x:0,sensitivityScreen:C.sensitivity_screen,showFollowButton:v,viewParameter:E,viewType:S,viewerId:N});return!m.includes(y)&&C.url?(0,h.jsx)(u.iP,{role:"link",href:C.url,rounding:2,tapStyle:"compress",onTap:()=>{b||((0,l.NC)("click_go_to_board"),R({action:"click",item:"board-card"}))},children:(0,h.jsx)(u.xu,{ref:n,paddingY:3,children:G})}):G}},686844:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),a=n(785893);function r({customCover:e,height:t,imgUrl:n,imgPos:r,width:o}){const s=t/o;let l="center center";if(e&&r){let e=1;e=r.height/r.width>s?o/r.width:t/r.height;l=`-${r.x*e}px -${r.y*e}px`}const d={backgroundImage:`url(${n})`,backgroundPosition:l,backgroundRepeat:"no-repeat",backgroundSize:"cover",minHeight:"100%",backgroundColor:"#EFEFEF",position:"relative"};return(0,a.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{height:t,width:o}},children:(0,a.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:d},children:(0,a.jsx)("div",{className:"imageWash",style:{position:"absolute"}})})})}},722556:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(686844),a=n(108211),r=n(898781),o=n(50286),s=n(780280),l=n(883119),d=n(526760),c=n(785893);const u="100%";function _(e){var t,n;const _=(0,r.ZP)(),{containerBackgroundColor:p="white",coverPhoto:h,fullSize:m,images:g,isProtected:v,isSecret:f,showSensitivityScreen:y,isActive:E,canEdit:S,onEditClick:T,layout:I}=e,x=(0,o.HG)(),{isRTL:P,isAuthenticated:b}=(0,s.B)(),A=x&&b,w=g[0],R=!h&&(null===(t=g[0])||void 0===t?void 0:t.name)||_._('Cover image', 'DrawerImageGroup', 'Alt text for the main image of a board'),C=Array(2).fill(),O=new l.Ry(1),N="square"===I?d.M0:d.z9,D="square"===I?d.FP:d.FC,k=null!=w&&w.url?(0,c.jsx)(l.Ee,{alt:R,color:"#efefef",fit:"cover",naturalHeight:133,naturalWidth:133,src:w.url}):(0,c.jsx)(l.xu,{color:"secondary",height:"100%",width:"100%"}),L=y?{filter:"blur(20px)"}:{};return(0,c.jsx)(l.zd,{height:m?"100%":void 0,rounding:4,width:"100%",wash:E,children:(0,c.jsxs)(l.xu,{"aria-hidden":!0,display:"flex",height:A?D:"100%",direction:"row",children:[(0,c.jsx)(l.sg,{span:8,children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:L},position:"relative",height:m?"100%":void 0,children:(0,c.jsx)(l.xu,{color:"secondary",dangerouslySetInlineStyle:{__style:{paddingBottom:u}},overflow:"hidden",width:"100%",children:(0,c.jsxs)(l.xu,{"data-test-id":"drawer-image-group-first-image-container",dangerouslySetInlineStyle:{__style:{borderColor:p,borderStyle:"solid",borderWidth:"1px 0 1px 1px"}},overflow:"hidden",position:"absolute",top:!0,bottom:!0,right:!0,left:!0,children:[(v||f)&&(0,c.jsx)(l.xu,{left:!P,right:P,margin:2,position:"absolute",top:!0,zIndex:O,children:(0,c.jsx)(a.Z,{backgroundColor:"default",iconColor:"default",privacy:f?"secret":"protected",size:A?32:24})}),A&&null!=h&&h.url?(0,c.jsx)(i.Z,{customCover:h.isCustom,imgPos:h.position||{width:0,height:0,x:0,y:0},imgUrl:null!==(n=h.url)&&void 0!==n?n:"",width:Math.floor(N/3*2),height:D}):k]})})})}),(0,c.jsx)(l.sg,{span:4,children:(0,c.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:L},height:"100%",children:[S&&E&&(0,c.jsx)(l.xu,{left:P,right:!P,margin:2,position:"absolute",bottom:!0,zIndex:O,children:(0,c.jsx)(l.hU,{accessibilityLabel:_._('Edit', 'DrawerImageGroup.edit', 'Icon indicating that a board is editable'),bgColor:"white",icon:"edit",iconColor:"darkGray",onClick:({event:e})=>null==T?void 0:T(e),size:"sm"})}),C.map(((e,t)=>{const n=g[A?t:t+1];return(0,c.jsx)(l.xu,{position:"relative",height:m?"50%":void 0,children:(0,c.jsx)(l.xu,{color:"secondary",dangerouslySetInlineStyle:{__style:{paddingBottom:u}},overflow:"hidden",width:"100%",children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{borderColor:p,borderStyle:"solid",borderWidth:0===t?1:"0 1px 1px 1px"}},overflow:"hidden",position:"absolute",top:!0,bottom:!0,right:!0,left:!0,children:null!=n&&n.url?(0,c.jsx)(l.Ee,{alt:n&&n.name||"placeholder",color:"#efefef",fit:"cover",naturalHeight:133,naturalWidth:133,src:n.url}):(0,c.jsx)(l.xu,{color:"secondary",height:"100%",width:"100%"})})})},t)}))]})}),y&&(0,c.jsx)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{background:"rgba(0,0,0,0.5)"}},display:"flex",height:"100%",justifyContent:"center",position:"absolute",top:!0,width:"100%",children:(0,c.jsx)(l.X6,{align:"center",color:"light",size:"400",children:_._('This board may contain sensitive content', 'drawerImageGroup.sensitivityScreen.heading', 'Warning text for a board that may have sensitive content')})})]})})}},526760:(e,t,n)=>{n.d(t,{FC:()=>s,FP:()=>r,M0:()=>a,Xq:()=>l,s0:()=>i,z9:()=>o});const i=40,a=236,r=157,o=320,s=213,l=7},823434:(e,t,n)=>{n.d(t,{$:()=>a,X:()=>r});var i=n(492563);const a=e=>decodeURIComponent(e),r=e=>encodeURIComponent((0,i.t)(e))},108211:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(898781),a=n(883119),r=n(785893);function o({backgroundColor:e="darkGray",iconColor:t="inverse",iconSize:n,privacy:o,size:s=20}){const l=(0,i.ZP)();return(0,r.jsx)(a.xu,{display:"flex",direction:"column",alignItems:"center",color:e,width:s,height:s,rounding:"circle",justifyContent:"center",children:(0,r.jsx)(a.JO,{accessibilityLabel:l._('Secret board icon', 'Icon indicating that a board is secret', 'Icon indicating that a board is secret'),color:t,icon:"secret"===o?"lock":"security",size:null!=n?n:s/2})})}},340494:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(19121),a=n(50286);function r(){const e=(0,a.HG)(),t=(0,i.Z)(),n=t&&t.isAuth;if(e&&n){return e=>{var t,n;const i=e.cover_images&&e.cover_images["222x"]?e.cover_images["222x"].url:void 0,a=null!==(t=null===(n=e.cover_pin)||void 0===n?void 0:n.image_url)&&void 0!==t?t:i,r=e.images&&e.images["170x"]&&e.images["170x"].length?e.images["170x"][0].url:"";return a||r}}return(e,t)=>{var n,i;const a=e.has_custom_cover?e.image_cover_hd_url||e.image_cover_url:"";if(!a)return"";const r=e.cover_images&&e.cover_images["400x300"]?e.cover_images["400x300"].url:void 0,o=e.cover_images&&e.cover_images["222x"]?e.cover_images["222x"].url:void 0,s=e.cover_images&&e.cover_images["216x146"]?e.cover_images["216x146"].url:void 0,l=null!==(n=null!==(i=null!=r?r:o)&&void 0!==i?i:s)&&void 0!==n?n:"",d=e.image_cover_url||"";return a||(t&&t>2&&l?l:"")||d}}},853492:(e,t,n)=>{n.d(t,{Bw:()=>s,Jx:()=>o,po:()=>i});const i=(e="")=>(null!=e?e:"").substring((null!=e?e:"").lastIndexOf("/")+1),a=e=>({dominant_color:"#FFFFFF",height:1,url:e,width:1}),r=e=>{if(!e)return()=>!0;const t=i(e);return e=>{var n;return"string"==typeof e?i(e)!==t:i(null!==(n=e.url)&&void 0!==n?n:"")!==t}},o=(e,t)=>e.images&&e.images["170x"]?e.images["170x"].filter(r(t)):e.pin_thumbnail_urls?e.pin_thumbnail_urls.filter(r(t)).map(a):[],s=e=>{var t;return null!==(t=e&&e.crop&&e.size&&{x:e.crop[0],y:e.crop[1],width:e.size[0],height:e.size[1]})&&void 0!==t?t:{x:0,y:0,width:0,height:0}}},136586:(e,t,n)=>{n.d(t,{QK:()=>k,sE:()=>L,w2:()=>D,Wx:()=>j});var i=n(643913),a=n(172071),r=n(412067),o=n(966113);const s=e=>e.json(),l=o.cD+"/vx/users/cctld_session/",d=(e,t)=>a.Z.increment(`${e}.${t}`,1),c=e=>r.Z.create("ApiResource",{url:"/vx/users/cctld_token/",ignore_bookmark:!0}).callCreate().then((t=>{if(t&&t.resource_response&&t.resource_response.data){d(e,"cctld.token_creation.success");const n=t.resource_response.data,a={credentials:"include",mode:"cors",method:"POST",headers:{"Content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:(0,i.Z)({token:n})};fetch(l,a).then(s).then((t=>"success"===t.status?(d(e,"cctld.session_creation.success"),Promise.resolve(t)):(d(e,"cctld.session_creation.failure"),Promise.reject(t)))).catch((t=>(d(e,"cctld.session_creation.error"),Promise.reject(t))))}else d(e,"cctld.token_creation.error")})).catch((t=>{d(e,"cctld.unknown.error")}));var u=n(421781),_=n(807998),p=n(967628),h=n(550858),m=n(735422),g=n(923095),v=n(14890);const f=window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e;var y=n(914671),E=n(550293);var S=n(811859);const T=()=>{!function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};const e=window.pintrk;e.queue=[],e.version="3.0";const t=document.createElement("script");t.async=!0,t.src="https://s.pinimg.com/ct/core.js";const n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}}();let e=Object.freeze({});try{e={timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,timezoneOffset:(new Date).getTimezoneOffset(),availWidth:window.screen.availWidth,availHeight:window.screen.availHeight,language:window.navigator.language,languages:window.navigator.languages,colorDepth:window.screen.colorDepth,pixelDepth:window.screen.pixelDepth,navigationStart:window.performance.timing.navigationStart},void 0!==window.navigator.deviceMemory&&(e={...e,deviceMemory:window.navigator.deviceMemory});const t=window.performance.getEntries().filter((e=>new RegExp("^http(.*?)/static/sterling/advertiser/(.*?).css$","g").test(e.name)));t.length>0&&(e={...e,duration:t[0].duration})}catch(t){}window.pintrk("load","2613397633248",e),(async()=>{const i=await async function(){let e=Object.freeze({});try{var i,r,o,s;const t=n(565936).ZP,a=await t.load(),l=(await a.get()).components;if(void 0!==(null===(i=l.colorGamut)||void 0===i?void 0:i.value)&&(e={...e,colorGamut:l.colorGamut.value}),void 0!==(null===(r=l.hdr)||void 0===r?void 0:r.value)&&(e={...e,hdr:l.hdr.value}),void 0!==(null===(o=l.fonts)||void 0===o?void 0:o.value)){const t=await(0,S.Z)(S.H.sha1,l.fonts.value);""!==t&&(e={...e,fonts:t})}if(void 0!==(null===(s=l.math)||void 0===s?void 0:s.value)){const t=await(0,S.Z)(S.H.sha1,l.math.value);""!==t&&(e={...e,math:t})}return e}catch(t){return a.Z.increment("pinterest_tag.get_fingerprint.error",1,{error:t.message}),e}}();e={...e,...i},window.pintrk("set",e),window.pintrk("page")})()};var I=n(543059),x=n(594881),P=n(927955),b=n(127412),A=n(701563),w=n(116485),R=n(826067),C=n(798748),O=n(844974),N=n(30287);async function D(e,t){(0,I.ZP)("AppInitMainStart");const n=e.initialReduxState||await(async()=>(await window.fetch("/_/_/state",{method:"GET",mode:"same-origin",keepalive:!0})).json())(),i="homescreen_icon"===(0,R.mB)(window.location.search).utm_source;n.session.isPWA=i;const a=(0,R.mB)(window.location.search),r=Boolean(a.utm_pai);n.session.isPaidTraffic=r,n.session.hasPoorConnection="undefined"!=typeof window&&window.navigator&&window.navigator.connection&&["slow-2g","2g","3g"].includes(window.navigator.connection.effectiveType);const o=a.ad_img;o&&(0,O.Nh)(w.u9,o),t&&(0,h.Qi)();const s=function(e,t){const n={...(0,m.go)()?(0,h.$_)():Object.freeze({}),...t};return(0,v.createStore)((0,v.combineReducers)((0,g.Z)({viewingUser:e.user})),n,(0,v.compose)((0,p.Z)(),f))}(e.context,n);return P.Z.set(s),(0,I.ZP)("ReduxStoreInitialized"),s}function k(e,t){const{isAuthenticated:n,unauthId:i,userAgent:{isMobile:a,isTablet:r}}=e;a||r||!n||y.Z.initFocus(),document.hasFocus()&&(0,x.Z)(),(0,I.ZP)("ContextInitialized"),(0,C.jD)((()=>(0,b.Z)((0,E.Z)(t.getState()))),(()=>e)),window.unauthId=i;"1"===(0,R.mB)(window.location.search).oe&&(0,O.Nh)("openUnauthType","OPEN_UNAUTH")}function L(e,t,n){const{experimentsClient:i,isAuthenticated:a,origin:r,userAgent:{isMobile:o,isTablet:s}}=e;if(_.Z.includes(r)&&a){let e=t?"partner":"non_partner";(o||s)&&(e="mweb"),c(e)}"chrome"===(0,N.FB)(window)&&window.navigator.userAgent&&window.navigator.userAgent.includes("CrOS")&&(0,N.AJ)(window);const l=(0,u.Z)({requestContext:e,traceLoggerData:n});(0,A.gq)(l,a?[]:["facebook_autologin","google_autologin_gsi","google_autologin"]),i.checkExperiment("m10n_measurement_pinterest_tag_us").anyEnabled&&T()}function j(e,t,n){const{isAuthenticated:i,userAgent:{isMobile:r,isTablet:o}}=e,s=!o&&!r;(0,m.In)(t),s||(0,m.$J)(),function({isAppShell:e,isAuthenticated:t,isDesktop:n}){"undefined"!=typeof window&&window.navigator&&"serviceWorker"in window.navigator&&"addEventListener"in window.navigator.serviceWorker&&!n&&(window.navigator.serviceWorker.addEventListener("message",(e=>{switch(e.data.message){case"replay-resource-requests-success":a.Z.increment("replay_resource_request.success",1);break;case"replay-resource-requests-failed":a.Z.increment("replay_resource_request.failed",1,{errorMessage:e.data.replayErrorMessage});break;case"log-service-worker-exp-group-got-from-headers":a.Z.increment("sw_detect_resource_requests",1,{serviceWorkerGroup:e.data.group,experimentVersion:"v8"})}})),(0,m.AP)({isAuthenticated:t,isAppShell:e}))}({isAppShell:n,isAuthenticated:i,isDesktop:s})}},995389:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(10216),a=n(883119),r=n(785893);function o({titleFormat:e,titleArgsQuery:t}){return(0,r.jsxs)(a.xu,{alignItems:"center",direction:"column",display:"flex",marginTop:12,children:[(0,r.jsx)(a.xu,{marginBottom:2,paddingX:4,children:(0,r.jsx)(a.xv,{align:"center",color:"default",overflow:"normal",weight:"bold",children:e})}),(0,r.jsx)(i.Z,{query:t,showHeaderText:!1})]})}},744856:(e,t,n)=>{n.d(t,{v:()=>i});const i="imgViewer"},114020:(e,t,n)=>{n.d(t,{C:()=>s,p:()=>l});var i=n(667294),a=n(425288),r=n(785893);const{Provider:o,useHook:s}=(0,a.Z)("Session");function l({children:e}){const[t,n]=(0,i.useState)(void 0),a=(0,i.useCallback)((()=>n(void 0)),[]),s=(0,i.useMemo)((()=>({unauthCommentPinId:t,setUnauthCommentPinId:n,removeUnauthCommentPinId:a})),[t,a]);return(0,r.jsx)(o,{value:s,children:e})}},679031:(e,t,n)=>{n.d(t,{G9:()=>u,c$:()=>p,cn:()=>h,gG:()=>_,kk:()=>c});var i=n(63552),a=n(19121),r=n(883119),o=n(204283),s=n(305324),l=n(50286),d=n(785893);const c=({isDesktop:e})=>{const t=(0,o.pinRepPaddingInBoint)({isDesktop:e});return t?-t:0},u=-2,_=()=>{const e=(0,l.HG)(),t=(0,o.pinRepPaddingInBoint)({isDesktop:e}),n=t?-t:0;return(0,d.jsx)(r.xu,{marginTop:n,marginBottom:n,paddingY:t})},p=({children:e,feedRef:t,viewParameter:n,viewType:i})=>(0,a.Z)().isAuth?e:(0,d.jsx)(s.g,{feedRef:t,viewParameter:n,viewType:i,children:e}),h=({children:e})=>(0,d.jsx)(i.Z,{onTouch:e=>{if(e.target instanceof HTMLElement&&"IMG"===e.target.tagName){const t=e.target.getBoundingClientRect().top+window.scrollY-70;window.scrollTo(window.scrollX,t)}},pressState:"none",children:e})},608625:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(702664),a=n(19121);const r=()=>{var e;const t=(0,a.Z)(),n=(0,i.useSelector)((({loggedOutUserInfo:e})=>null==e?void 0:e.userInfo));return t.isAuth&&t.isLimitedLogin?{type:"LIMITED_LOGIN",info:{connectedToFacebook:Boolean(((t.socialNetwork||{}).facebook||{}).connected),connectedToGoogle:Boolean(((t.socialNetwork||{}).gplus||{}).connected),email:t.email,firstName:t.firstName,hasPassword:!!t.hasPassword,imageUrl:t.imageMediumUrl,gplusUrl:((t.socialNetwork||{}).gplus||{}).url}}:{type:t.isAuth?"AUTH":"UNAUTH",info:n&&n.email&&n.first_name?{connectedToFacebook:!!n.connected_to_facebook,connectedToGoogle:!!n.connected_to_google,email:n.email,firstName:n.first_name,hasPassword:!!n.has_password,imageUrl:null!==(e=n.medium_image_url)&&void 0!==e?e:null}:null}}},445345:(e,t,n)=>{n.d(t,{Z:()=>Ee});var i=n(934348),a=n.n(i),r=n(422908),o=n.n(r),s=n(832637),l=n.n(s),d=n(986021),c=n.n(d),u=n(252881),_=n.n(u),p=n(216462),h=n.n(p),m=n(435574),g=n.n(m),v=n(890398),f=n.n(v),y=n(597437),E=n.n(y),S=n(358787),T=n.n(S),I=n(403529),x=n.n(I),P=n(687096),b=n.n(P),A=n(720069),w=n.n(A),R=n(154047),C=n.n(R),O=n(899338),N=n.n(O),D=n(532492),k=n.n(D),L=n(361316),j=n.n(L),U=n(671307),M=n.n(U),F=n(450914),B=n.n(F),G=n(888784),z=n.n(G),H=n(979730),Z=n.n(H),V=n(267569),W=n.n(V),K=n(554154),Y=n.n(K),q=n(234540),$=n.n(q),X=n(209153),J=n.n(X),Q=n(271648),ee=n.n(Q),te=n(108806),ne=n.n(te),ie=n(505944),ae=n.n(ie),re=n(373750),oe=n.n(re),se=n(354593),le=n.n(se),de=n(523673),ce=n.n(de),ue=n(70098),_e=n.n(ue),pe=n(692169),he=n.n(pe),me=n(898781),ge=n(948376),ve=n(883119),fe=n(785893);const ye={"AR-SA":a(),"ZH-CN":_e(),"ZH-TW":he(),CS:o(),DA:l(),DE:c(),EL:_(),EN:h(),ES:g(),FI:f(),FR:E(),HI:T(),HU:x(),ID:b(),IT:w(),JA:C(),KO:N(),ML:k(),MS:j(),NB:z(),NL:M(),NN:B(),NO:z(),PL:Z(),PT:W(),RO:Y(),RU:$(),SK:J(),SV:ee(),TH:ne(),TL:ae(),TR:oe(),UK:le(),VI:ce()};function Ee({locale:e}){const t=(0,me.ZP)(),n=(0,ge.G3)(e),i=ye[n]||ye.EN,a=t._('Install the Pinterest app on Android', ' - ', ' -- ');return(0,fe.jsx)(ve.Ee,{naturalHeight:80,naturalWidth:270,src:i,alt:a})}},819764:(e,t,n)=>{n.d(t,{Z:()=>Ee});var i=n(993235),a=n.n(i),r=n(908601),o=n.n(r),s=n(198667),l=n.n(s),d=n(324637),c=n.n(d),u=n(669639),_=n.n(u),p=n(882786),h=n.n(p),m=n(598188),g=n.n(m),v=n(143832),f=n.n(v),y=n(484974),E=n.n(y),S=n(629958),T=n.n(S),I=n(7747),x=n.n(I),P=n(939492),b=n.n(P),A=n(800202),w=n.n(A),R=n(799486),C=n.n(R),O=n(511036),N=n.n(O),D=n(83365),k=n.n(D),L=n(309285),j=n.n(L),U=n(186665),M=n.n(U),F=n(452833),B=n.n(F),G=n(759050),z=n.n(G),H=n(9046),Z=n.n(H),V=n(27322),W=n.n(V),K=n(501796),Y=n.n(K),q=n(791841),$=n.n(q),X=n(50486),J=n.n(X),Q=n(417658),ee=n.n(Q),te=n(461619),ne=n.n(te),ie=n(350421),ae=n.n(ie),re=n(97776),oe=n.n(re),se=n(394445),le=n.n(se),de=n(948992),ce=n.n(de),ue=n(137404),_e=n.n(ue),pe=n(697072),he=n.n(pe),me=n(898781),ge=n(948376),ve=n(883119),fe=n(785893);const ye={"AR-SA":a(),"ZH-CN":_e(),"ZH-TW":he(),CS:o(),DA:l(),DE:c(),EL:_(),EN:h(),ES:g(),FI:f(),FR:E(),HI:T(),HU:x(),ID:b(),IT:w(),JA:C(),KO:N(),ML:k(),MS:j(),NB:z(),NL:M(),NN:B(),NO:z(),PL:Z(),PT:W(),RO:Y(),RU:$(),SK:J(),SV:ee(),TH:ne(),TL:ae(),TR:oe(),UK:le(),VI:ce()};function Ee({locale:e}){const t=(0,me.ZP)(),n=(0,ge.G3)(e),i=ye[n]||ye.EN,a=t._('Install the Pinterest app on iOS', ' - ', ' -- ');return(0,fe.jsx)(ve.Ee,{naturalHeight:80,naturalWidth:270,src:i,alt:a})}},821997:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(785893);function a({size:e,noCircle:t}){return(0,i.jsxs)("svg",{height:e,style:{display:"block"},viewBox:t?"3 3 70 70":"-3 -3 82 82",width:e,children:[t?null:(0,i.jsx)("circle",{cx:"38",cy:"38",fill:"white",r:"40"}),(0,i.jsx)("path",{d:"M27.5 71c3.3 1 6.7 1.6 10.3 1.6C57 72.6 72.6 57 72.6 37.8 72.6 18.6 57 3 37.8 3 18.6 3 3 18.6 3 37.8c0 14.8 9.3 27.5 22.4 32.5-.3-2.7-.6-7.2 0-10.3l4-17.2s-1-2-1-5.2c0-4.8 3-8.4 6.4-8.4 3 0 4.4 2.2 4.4 5 0 3-2 7.3-3 11.4C35.6 49 38 52 41.5 52c6.2 0 11-6.6 11-16 0-8.3-6-14-14.6-14-9.8 0-15.6 7.3-15.6 15 0 3 1 6 2.6 8 .3.2.3.5.2 1l-1 3.8c0 .6-.4.8-1 .4-4.4-2-7-8.3-7-13.4 0-11 7.8-21 22.8-21 12 0 21.3 8.6 21.3 20 0 12-7.4 21.6-18 21.6-3.4 0-6.7-1.8-7.8-4L32 61.7c-.8 3-3 7-4.5 9.4z",fill:"#fb7072",fillRule:"evenodd"})]})}},10216:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(883119),a=n(785893);function r({skinToneOvalHeight:e,skinToneOvalWidth:t,swatchColors:n}){return(0,a.jsx)(i.xu,{alignItems:"center","data-test-id":"skinToneFilterSwatch",display:"flex",overflow:"hidden",rounding:"pill",width:t,wrap:!0,children:n.map(((n,r)=>(0,a.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:n}},height:e/2,width:t/2},`${n}-${r}`)))})}var o=n(898781),s=n(112690);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({onClickApplyFilter:e,query:t,selectedSkinToneTerm:n,showHeaderText:d=!0,skinToneFilters:c=l}){const u=(0,o.ZP)(),_=(0,s.Z)(),p=c.options,h=`/search/pins/?rs=rs&q=${t}`,m=n?u._('Some ideas in this skin tone range', 'SkinToneFilters.copy.termSelected', 'Skin tone filters text'):u._('Pick a skin tone range', 'SkinToneFilters.copy.noTermSelected', 'Skin tone filters text'),{filtersContainerHeight:g,filtersContainerWidth:v,skinToneOvalHeight:f,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(0,a.jsxs)(i.kC,{alignItems:"center",direction:"column",height:d?88:52,children:[d&&(0,a.jsx)(i.xu,{marginBottom:2,children:(0,a.jsx)(i.xv,{color:"default",overflow:"normal",weight:"bold",children:m})}),(0,a.jsx)(i.kC,{alignItems:"stretch",flex:"none",justifyContent:"around",children:p.map((({swatch_hex_colors:o,term:s},l)=>(0,a.jsx)(i.iP,{role:"link",onTap:()=>{!function(e,t){const{index:n,query:i,onClickApplyFilter:a}=e;t({aux_data:{entered_query:i,filter_type:"skin_tone",filter_value:n},element:1341,event_type:102,view_parameter:43,view_type:2}),null==a||a()}({index:l,query:t,onClickApplyFilter:e},_)},tapStyle:"none",href:`${h}${n!==s?`&filters=${encodeURIComponent(s)}`:""}`,children:(0,a.jsx)(i.xu,{alignItems:"center","data-test-id":"skin-tone-option",color:n===s?"selected":"default",display:"flex",height:g,justifyContent:"around",rounding:"pill",width:v,children:(0,a.jsx)(i.xu,{alignItems:"center",color:"default",display:"flex",height:g-4,justifyContent:"around",rounding:"pill",width:v-4,children:(0,a.jsx)(r,{skinToneOvalHeight:f,skinToneOvalWidth:y,swatchColors:o})})})},s)))})]})}},948376:(e,t,n)=>{n.d(t,{G3:()=>c,Rp:()=>d,kp:()=>l});var i=n(339363),a=n(202139),r=n(844974);const o=14*a.F4;function s(e,t,n){return e-t>n}const l=e=>{const t=function(){const e=Date.now(),t=Number((0,r.qn)("appUpsell"));return{currentTime:e,firstUpsellTime:Number((0,r.qn)("firstUpsellTime")),lastUpsellTime:t,showedAppUpsellCurrentSession:Boolean((0,i.qn)("showedAppUpsellCurrentSession"))}}();return e?function(e,t,n){const{currentTime:i,firstUpsellTime:a,lastUpsellTime:l,showedAppUpsellCurrentSession:d}=e;return n=n||o,!a||function(e,t,n){return e{try{return"android"===e&&parseFloat((e=>{const t=(e=e.toLowerCase()).match(/android\s([0-9\.]*)/i);return t?t[1]:void 0})(t))<7}catch(n){return!1}},c=e=>(e.startsWith("zh")||e.startsWith("ar")?e:e.slice(0,2)).toUpperCase()},116485:(e,t,n)=>{n.d(t,{AA:()=>r,E9:()=>m,EU:()=>f,IO:()=>v,Jd:()=>p,KH:()=>c,QR:()=>d,Uw:()=>a,ZR:()=>y,dy:()=>l,eA:()=>_,fo:()=>h,k7:()=>o,rT:()=>g,tz:()=>u,u9:()=>E,zR:()=>s,zu:()=>i});const i="OPEN_UNAUTH",a="openUnauthType",r="_isAfterLogin",o="_lastVisitedPages",s="_lastVisitedPagesBeforeLogin",l="_lastVisitedBoardPages",d="_lastVisitedPagesBeforeNavPage",c="_lastVisitedSessionPages",u="_unauthVisitedPages",_=20,p="_unauthInviteCode",h="_unauthReferrerString",m="unauthTopicsFollowed",g=["US","CA","NZ","AU"],v=new Set(["GB","IE"]),f=new Set(["AT","BE","CH","DE","DK","ES","FR","IT","NL","NO","PT","SE"]),y=new Set(["BR","MX","AR","CL","CO","PE"]),E="ad_img"},421322:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(7893),a=n(867820);async function r(e){const t=await(0,i.Kw)(),n=t?{user_ids:Object.keys(t)}:{};(0,a.tj)(`mweb_multiple_accounts_${e}`,n)}},993723:(e,t,n)=>{n.d(t,{eN:()=>l,_:()=>c,kB:()=>d});var i=n(172071),a=n(276775);const r=["/resource/:name/:method/","/resource/commerce/:name/:method/","/:username/pins/follow/","/email/remove/","/about/trademark/form/:claim_type/","/about/copyright/dmca-pin/web-result/:id/","/about/copyright/dmca-pin/pin/:id/","/about/copyright/dmca-pin/","/about/koplg/","/about/:lawName/","/about/radtc/","/suspension-appeal/netzdg/","/website/confirm/","/oauth/","/app-factory-oauth/","/settings/extension/uninstall/","/offsite/","/amp/(.*)"];var o=n(966113),s=n(826067);const l=e=>e&&(0,s.Qg)(e)&&o.lf!==e?(0,s.Qc)(e).relative:"/",d=e=>{const t=(0,s.Jx)(e);return(e=>{const t=new URL(e,window.location.origin);return r.some((e=>!!(0,a.matchPath)(t.pathname,{path:e,exact:!0})))})(t)||(0,s.OM)(t)===s.vx.TRUSTED_DIFFERENT_ORIGIN},c=({forceFullPageNavigation:e,history:t,next:n,noLocationReplace:a})=>{const r=(0,s.Jx)(n);d(n)||!t||e?(e&&i.Z.increment("webapp.duplo.navigateOnLogin.forceFullPageNavigation",1),window.location.assign(r)):a?t.push(l(r)):t.replace(l(r))}},805410:(e,t,n)=>{n.d(t,{I:()=>i,y:()=>a});const i="uploaded",a="pinbuilder"},492563:(e,t,n)=>{function i(e){if(!e)return e;let t=e.replace(/%26/gi,"&");return t=t.replace(/%3F/gi,"?"),t=t.replace(/%23/gi,"#"),t=t.replace(/%2B/gi,"+"),t=t.replace(/%3B/gi,";"),t=t.replace(/%2C/gi,","),t=t.replace(/%2F/gi,"/"),t=t.replace(/%3A/gi,":"),t=t.replace(/%40/gi,"@"),t=t.replace(/%3D/gi,"="),t=t.replace(/%24/gi,"$"),t}function a(e){return Object.keys(e).reduce(((t,n)=>{var a;return{...t,[n]:i(null!==(a=e[n])&&void 0!==a?a:"")}}),{})}n.d(t,{Z:()=>a,t:()=>i})},844887:(e,t,n)=>{n.d(t,{DZ:()=>u,Dv:()=>_,Es:()=>d,HW:()=>l,mv:()=>c});var i=n(844974),a=n(773285),r=n(116485);const o=e=>e>=Date.now()-72e5,s=(e,t)=>{const n=[];if(e)for(const i of e)t&&!i.is_shared||o(i.ts)&&n.push(i);return n},l=()=>{const e=(0,i.qn)(r.zR),t=e?JSON.parse(e):[],n=s(t,!1),a=s(t,!0),l=n.map((e=>e.first_pin_image_signature)),d=a.map((e=>e.first_pin_image_signature)),c=(e=>{const t={};if(e)for(const n of e)n.is_shared&&o(n.ts)&&n.pin_id&&(t[n.pin_id]={inviteCode:n.pin_invite_code});return t})(t),u=(0,i.qn)(r.dy),_=u?JSON.parse(u):[];return{extraPlpImages:l,plpImageRenderData:n,extraBlpImages:s(_,!0).map((e=>e.first_pin_image_signature)),extraSharedImages:d,sharedPinData:c}},d=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n(e.nuxTopics?e.nuxTopics.map((({id:e})=>t[e])):[]).filter((e=>e.is_followed)),u=(e,t)=>e.nuxTopics?e.nuxTopics.map((({id:e})=>t[e])):null,_=()=>{const{checkExperiment:e}=(0,a.F)(),{anyEnabled:t,group:n}=e("mweb_mini_renux");return{inMiniRenuxEnabledGroup:t,interestsLimit:t?Number(n.slice(-1)):NaN}}},529195:(e,t,n)=>{n.d(t,{CC:()=>S,Cb:()=>f,Ff:()=>C,H$:()=>I,Mt:()=>E,OJ:()=>v,Yi:()=>b,Ys:()=>g,Yy:()=>w,Z4:()=>m,ZN:()=>_,dc:()=>P,dp:()=>T,i$:()=>h,kw:()=>y,p9:()=>x,t_:()=>p});var i=n(231486),a=n(412067),r=n(826067),o=n(332215),s=n(226198),l=n(867820),d=n(339363),c=n(844974),u=n(116485);const _=["utm_pai","utm_source","invite_code"],p=()=>(0,c.qn)(u.tz,""),h=()=>{const e=p();let t;try{t=JSON.parse(e)}catch(n){t=[]}return t},m=(e,t)=>{const n=h(),i=n.length,a=i?n[0].path:"";if(i{(0,c.Nh)(u.Jd,e)},v=()=>(0,c.qn)(u.fo,""),f=e=>{(0,c.Nh)(u.fo,e)},y=()=>{p()&&(0,c.L_)(u.tz),(0,c.qn)(u.Jd,"")&&(0,c.L_)(u.Jd),v()&&(0,c.L_)(u.fo)},E=(e,t,n,i,a,r,o=u.k7)=>{const s=(0,c.qn)(o)?JSON.parse((0,c.qn)(o)):[];if(!s[0]||s[0].path!==e){const l=[{path:e,ts:Date.now(),pin_id:n||0,first_pin_image_signature:t||"",first_pin_id:n||"",image_info:i||"",pin_description:a||"",is_shared:!!r,pin_invite_code:r}];(0,c.Nh)(o,JSON.stringify(l.concat(s)))}},S=({path:e,image:t,dominant_color:n,pin_description:i,pin_id:a})=>{const r=(()=>{const e=(0,d.qn)(u.KH);if(!e)return[];let t;try{t=JSON.parse(e)}catch(n){t=[]}return t})();if(!r[0]||r[0].path!==e){const o=[{path:e,image:t,pin_description:i||"",dominant_color:n||"",pin_id:a||""}];(0,d.Nh)(u.KH,JSON.stringify(o.concat(r)))}};function T(e,t,n,i,a,r){E(e,t,n,i,a,r,u.zR)}const I=(e,t,n,i,a)=>{E(e,t,n,i,null!=a?a:"","",u.dy)};function x(e,t,n,i,a){E(e,t,n,i,a,"",u.QR)}function P(){return h().filter((e=>"closeup"===e.pageType)).length}function b(){const e=a.Z.create("UnauthUserDataResource");return new Promise(((t,n)=>{e.callGet().then((e=>{const a=e.resource_response.data,r=!!i.U2(s.x3);return a?((0,o.Wn)(a.medium_image_url)&&(a.medium_image_url=""),(0,l.My)("mweb.unauth.personalized_login.fetch_user_info.info.user_info_found.logged_out_cookie_"+(r?"true":"false")),t(a)):((0,l.My)("mweb.unauth.personalized_login.fetch_user_info.info.no_user_info.logged_out_cookie_"+(r?"true":"false")),n({}))})).catch((e=>{if(e&&e.message){const t=e.message.replace(/\s/g,"_").toLowerCase();(0,l.My)(`mweb.unauth.personalized_login.fetch_user_info.error.${t}`)}else(0,l.My)("mweb.unauth.personalized_login.fetch_user_info.error.unknown");return n(e)}))}))}function A({i18n:e,location:t}){const n=t.pathname.startsWith("/signup"),i=t.pathname.startsWith("/login");if(!n&&!i)return{showPLPBanner:!1,pinForBanner:null};let a;try{a=JSON.parse((0,d.qn)(u.KH))}catch(r){a=[]}if(a&&a.length>0){const t=a[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 w=e=>e.search&&e.search.startsWith("?next=")?e.search.split("?next=")[1]:null;function R({i18n:e,location:t}){var n;const i=(null===(n=t.state)||void 0===n?void 0:n.next)||w(t);if(i){const t=i.indexOf("?"),n=(0,r.mB)(i.substring(t));if(n.url&&n.media)return{showPLPBanner:!0,pinForBanner:{image:{url:(0,r.Jx)(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 C({i18n:e,location:t}){return R({i18n:e,location:t}).showPLPBanner?R({i18n:e,location:t}):A({i18n:e,location:t}).showPLPBanner?A({i18n:e,location:t}):{showPLPBanner:!1,pinForBanner:null}}},305324:(e,t,n)=>{n.d(t,{M:()=>v,g:()=>f});var i,a=n(667294),r=n(590674),o=(n(883119),n(867820)),s=n(447409),l=n(50286),d=n(430235),c=n(874317),u=n(167912),_=n(785893);const p=void 0!==i?i:i=n(110767);const h=({queryReference:e,...t})=>{var n;const i=(0,u.usePreloadedQuery)(p,e),a=null==i||null===(n=i.v3GetPinQuery)||void 0===n?void 0:n.data;return a?(0,_.jsx)(d.Z,{...t,graphqlRef:a}):null},m=({queryReference:e,...t})=>{var n;const i=(0,u.usePreloadedQuery)(p,e),a=null==i||null===(n=i.v3GetPinQuery)||void 0===n?void 0:n.data;return a?(0,_.jsx)(c.ZP,{...t,graphqlRef:a}):null},g=(0,a.createContext)((()=>()=>{})),v=()=>(0,a.useContext)(g),f=({children:e,feedRef:t,viewType:n,viewParameter:i,useGraphql:v})=>{const[f,y]=(0,a.useState)(null),[E,S]=(0,a.useState)(null),[T,I]=(0,a.useState)(!1),[x,P]=(0,a.useState)(null),[b,A]=(0,a.useState)(!1),w=(0,l.HG)(),[R,C]=(0,u.useQueryLoader)(p);if(v&&!R&&x){C(function({pinId:e}){return{query:p,variables:{pinId:e}}}({pinId:x}).variables)}const O=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="unset")};(0,a.useEffect)((()=>O),[]);const N=(0,a.useCallback)((e=>n=>{const{pinId:i,deviceOptions:a}=e;if(n.stopPropagation(),n.preventDefault(),P(i),a.isDesktop)A(a.isMainPinImage),(0,o.My)("dweb.unauth.context_menu.open_menu"),y({xPosition:n.clientX,yPosition:n.clientY}),document&&document.body&&document.body.style&&(document.body.style.overflow="hidden");else{(0,o.My)("mweb.unauth.related_pin.context_menu.open");const e=n.changedTouches.item(0);if(t&&t.current){const n=t.current.getBoundingClientRect(),i=Math.min(e.pageX-n.left,n.width-c.nt),r=e.pageY-s.n;S({xPosition:i,yPosition:r,context:a.context})}}}),[t]),D=!!f;(0,a.useEffect)((()=>{const e=()=>{y(null),O(),(0,o.My)("dweb.unauth.context_menu.click_away")};return D&&document.addEventListener("click",e),()=>{D&&document.removeEventListener("click",e)}}),[D]);const k=f&&x?v?R&&(0,_.jsx)(h,{desktopContextMenuState:f,pinId:x,isMainPinImage:!!b,queryReference:R}):(0,_.jsx)(d.Z,{desktopContextMenuState:f,pinId:x,isMainPinImage:!!b,graphqlRef:null}):null,L=E&&x?v?R&&(0,_.jsx)(m,{mwebContextMenuState:E,pinId:x,openShareModal:I,setMwebContextMenuState:S,queryReference:R}):(0,_.jsx)(c.ZP,{graphqlRef:null,mwebContextMenuState:E,pinId:x,openShareModal:I,setMwebContextMenuState:S}):null;return(0,_.jsx)(g.Provider,{value:N,children:(0,_.jsxs)(a.Fragment,{children:[e,w&&k,!w&&L,!w&&T&&x&&(0,_.jsx)(r.default,{objectType:1,isOpen:T,onDismiss:()=>I(!1),objectId:x,hideContactsSuggestions:!0,element:12016,viewType:n,viewParameter:i,component:18})]})})}},364034:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(667294),a=n(807609),r=n(844974);const o=e=>{const t=(0,r.qn)(e);if(!t)return null;try{return JSON.parse(t)}catch(n){return null}};var s=n(773285);const l=()=>{const[e,t]=function(e){const t=(0,a.Z)(),[n,s]=(0,i.useState)(t?null:o(e));return(0,i.useEffect)((()=>{s(o(e))}),[e]),[n,(0,i.useCallback)((t=>{s(t),null===t?(0,r.L_)(e):(0,r.Nh)(e,JSON.stringify(t))}),[e])]}("unauthSavedPins"),n=null!==(d=null==(l=e)?void 0:l.pins)&&void 0!==d?d:[];var l,d;const c=e=>t((e=>e.length?{pins:e}:null)(e)),{checkExperiment:u}=(0,s.F)(),_=()=>{const{anyEnabled:e,group:t}=u("mweb_unauth_save_shopping_cart_v0");let i=0;if(e){const e=t.split("_")[1];i=e?parseInt(e,10):0}return n.length{_()&&c(n.filter((({id:t})=>t!==e.id)).concat([e]))},unsave:e=>c(n.filter((({id:t})=>t!==e))),isSaved:e=>n.some((({id:t})=>t===e)),clear:()=>c([]),canSaveMore:_}}},332215:(e,t,n)=>{function i(e){return Boolean(null==e?void 0:e.is_matured_new_user)}n.d(t,{IR:()=>o,V0:()=>i,Wn:()=>r,xT:()=>a});const a=e=>!!e&&2===e.login_state,r=e=>!(!e||!e.match(/\/static\/images\/user\/default_\d+\.png$/));function o(e){return!e||void 0===e.third_party_marketing_tracking_enabled||null===e.third_party_marketing_tracking_enabled||e.third_party_marketing_tracking_enabled}},698629:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(667294),a=n(391254),r=n(619623),o=n(50286),s=n(444445),l=n(883119),d=n(785893);const c="PinGridSkeletonLoader__tall",u="PinGridSkeletonLoader__short",_=({size:e})=>(0,d.jsx)(l.xu,{padding:1,children:(0,d.jsx)("div",{className:"tall"===e?c:u})}),p=({children:e})=>(0,d.jsx)(l.kC,{direction:"column",gap:{row:0,column:2},children:e}),h=({partialViewportWidth:e})=>{const t="desktop"===(0,o.ZP)(),n=t?s.yF:s.tG;return(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)(a.Z,{unsafeCSS:[{name:c,height:250},{name:u,height:150}].map((({name:e,height:t})=>(0,r.Z)({name:e,width:n,height:t}))).join("")}),(0,d.jsx)(l.xu,{marginStart:s.qG,marginEnd:s.qG,children:t?(0,d.jsxs)(l.kC,{direction:"row",gap:{row:s.jC,column:0},children:[(0,d.jsx)(p,{children:(0,d.jsx)(_,{size:"tall"})}),(0,d.jsx)(p,{children:(0,d.jsx)(_,{size:"short"})}),(0,d.jsx)(p,{children:(0,d.jsx)(_,{size:"tall"})}),!e&&(0,d.jsx)(p,{children:(0,d.jsx)(_,{size:"short"})})]}):(0,d.jsxs)(l.kC,{direction:"row",overflow:"hidden",justifyContent:"center",children:[(0,d.jsxs)(p,{children:[(0,d.jsx)(_,{size:"tall"}),(0,d.jsx)(_,{size:"short"}),(0,d.jsx)(_,{size:"tall"})]}),(0,d.jsxs)(p,{children:[(0,d.jsx)(_,{size:"short"}),(0,d.jsx)(_,{size:"tall"}),(0,d.jsx)(_,{size:"short"}),(0,d.jsx)(_,{size:"tall"})]})]})})]})}},619623:(e,t,n)=>{n.d(t,{Z:()=>i});const i=({name:e,width:t,height:n})=>{const i=`${n}${"number"==typeof n?"px":""}`,a="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: ${a} ${i};\n width: ${`${t}${"number"==typeof t?"px":""}`};\n height: ${i};\n}\n\n@keyframes ${e}_placeHolderShimmer{\n 0% {\n background-position: -${a}px 0;\n }\n 100% {\n background-position: ${a}px 0;\n }\n}\n`}},881802:(e,t,n)=>{n.d(t,{Bb:()=>g,Bx:()=>l,F4:()=>s,OG:()=>r,Qj:()=>d,_6:()=>m,gv:()=>o,hg:()=>c,is:()=>p,jP:()=>h,lt:()=>a,oM:()=>u,wI:()=>_});var i=n(826067);const a=e=>e._('Log in to continue', 'limitedLogin.modalHeader.default', 'Default title on mobile web limited login modal'),r=e=>e.pathname,o=({firstName:e,i18n:t})=>e?(t._('{{ name }} invited you to join their board', 'limitedLogin.modalHeader.groupBoardCollab', 'Mobile Modal prompting users to join a friends({{ name }}) board')).replace("{{ name }}",e):t._('Your friends invited you to join their board', 'limitedLogin.modalHeader.groupBoardCollab', 'Mobile Modal prompting users to join a friends board'),s=e=>{const t=(0,i.mB)(e.search).board_url;if(t){const e=(0,i.Jx)(t),n=(0,i.XP)({accept_invite:!0,seamless:!0});return e.includes("?")?`${e}&${n}`:`${e}?${n}`}return e.pathname},l=e=>e._('Log in to save this Pin', 'limitedLogin.modalHeader.repin', 'Title on mobile web limited login modal to prompt users to login after they clicked save button.'),d=e=>{const t=e.pathname;if(t.startsWith("/pin/")){const e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/repin/`}return t},c=e=>e._('Log in to send this Pin', 'limitedLogin.modalHeader.send', 'Title on mobile web limited login modal to prompt users to login after they clicked send button.'),u=e=>e._('Log in to edit this Pin', 'limitedLogin.modalHeader.editPin', 'Title on mobile web limited login modal to prompt users to login after they clicked edit button.'),_=e=>{const t=e.pathname;if(t.startsWith("/pin/")){const e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/edit/`}return t},p=e=>e._('Log in to create a Pin or board', 'limitedLogin.modalHeader.create', 'Title on mobile web limited login modal to prompt users to login to create a Pin or board.'),h=e=>e._('Log in to hide this Pin', 'limitedLogin.modalHeader.hidePin', 'Title on mobile web limited login modal to prompt users to login after they clicked hide Pin button.'),m=e=>e._('Log in to share the profile', 'limitedLogin.modalHeader.shareProfile', 'Title on mobile web limited login modal to prompt users to login after they clicked share button on profile page.'),g=e=>e._('Log in to create a board', 'limitedLogin.modalHeader.createBoard', 'Title on mobile web limited login modal to prompt users to login to create a board.')},482662:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(608625),a=n(667294);const r=()=>{const[e,t]=(0,a.useState)("");return{route:e,setRoute:t}};var o=n(898781),s=n(112690),l=n(50286),d=n(945698),c=n(801645);const u=()=>{const e=(0,o.ZP)(),t=(0,l.HG)(),n=(0,s.Z)(),i=t?(0,d.hr)(e):(0,d.Wh)(e),[r,u]=(0,a.useState)(i);return(0,c.cZ)((e=>u(null!=e?e:i))),(0,c.NN)(n),{text:r,setText:u}},_=()=>{const[e,t]=(0,a.useState)(!1),n=(0,s.Z)();return(0,c.UE)((()=>t(!0))),(0,c.NN)(n),{visible:e,setVisible:t}};function p(){return{loginForMore:_(),limitedLoginModalSubheader:u(),limitedLoginModalNextLocation:r(),viewer:(0,i.Z)()}}},56390:(e,t,n)=>{n.d(t,{C:()=>l,P:()=>s});var i=n(172071),a=n(53987),r=n(339363);const o="msmrsfda",s=()=>!!(0,r.qn)(o),l=e=>{(0,a.LM)(e)&&!s()&&((0,r.Nh)(o,"1"),i.Z.incrementNow("mobile_signup_modal.rules.suppress_for_discover_article",1))}},633083:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(643010),a=n(883119),r=n(785893);function o({color:e,image:t,isSelected:n,title:o}){var s,l,d;return(0,r.jsxs)(a.xu,{alignItems:"center","aria-selected":n,dangerouslySetInlineStyle:{__style:{backgroundColor:(0,i.Yc)()?n?"#fff":"#767676":n?"#111":"#efefef"}},display:"flex",padding:1,rounding:"pill",children:[(0,r.jsx)(a.zd,{height:48,rounding:"circle",width:48,children:(0,r.jsx)(a.Ee,{alt:"",color:e,fit:"cover",naturalHeight:null!==(s=t.height)&&void 0!==s?s:1,naturalWidth:null!==(l=t.width)&&void 0!==l?l:1,src:null!==(d=t.url)&&void 0!==d?d:""})}),(0,r.jsx)(a.xu,{marginStart:2,marginEnd:3,children:(0,r.jsx)(a.xv,{color:n?"inverse":(0,i.Yc)()?"light":"dark",weight:"bold",children:o})})]})}},461355:(e,t,n)=>{n.d(t,{Z:()=>m,z:()=>c});var i=n(667294),a=n(702664),r=n(391254),o=n(350118),s=n(698330),l=n(883119),d=n(785893);const c=2500,u={__style:{right:"-105px"}},_={__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)"}},p={__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"}},h={__style:{animationName:"SavePin_NavButtonAnimation",animationDuration:"0.8s",animationDelay:"1.65s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out"}},m=(0,i.memo)((({children:e})=>{var t;const n=null===(t=(0,s.Tt)())||void 0===t?void 0:t.last_repin_id,i=(0,o.S6)(),c=n?i(n):null,m=(0,a.useSelector)((({session:e})=>e.isShowingRepinAnimation));if(!c||!m)return e;const{images:g}=c,{height:v,width:f,url:y}=(null==g?void 0:g["136x136"])||(null==g?void 0:g["236x"])||{};return(0,d.jsxs)(l.kC,{alignItems:"stretch",flex:"grow",justifyContent:"center",children:[(0,d.jsx)(r.Z,{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"}),(0,d.jsxs)(l.xu,{position:"relative",children:[(0,d.jsxs)(l.xu,{width:250,height:250,position:"absolute",right:!0,bottom:!0,dangerouslySetInlineStyle:u,children:[(0,d.jsx)(l.xu,{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",opacity:0,rounding:"circle",dangerouslySetInlineStyle:_}),(0,d.jsx)(l.xu,{width:100,height:100,position:"absolute",margin:"auto",left:!0,right:!0,top:!0,bottom:!0,opacity:0,rounding:3,dangerouslySetInlineStyle:p,children:(0,d.jsx)(l.zd,{rounding:2,height:"100%",width:"100%",wash:!0,children:(0,d.jsx)(l.Ee,{alt:"pin-image",fit:"cover",naturalWidth:null!=f?f:1,naturalHeight:null!=v?v:1,src:null!=y?y:""})})})]}),(0,d.jsx)(l.xu,{dangerouslySetInlineStyle:h,children:e})]})]})}))},327212:(e,t,n)=>{n.d(t,{Z:()=>C});var i=n(667294),a=n(376030),r=n(391254),o=n(883119),s=n(785893);function l({addedStyles:e,button:t,headerText:n,icon:a,iconOverride:l,minHeight:d,subHeaderText:c}){return(0,s.jsx)(o.xu,{display:"flex",justifyContent:"center",width:"100vw",paddingX:2,children:(0,s.jsxs)(o.xu,{alignContent:"center",alignItems:"center",bottom:!0,color:"default",dangerouslySetInlineStyle:{__style:{boxShadow:"0 3px 6px rgba(0,0,0,0.18)",transform:"translateY(-20px)",...e}},display:"flex",minHeight:d||75,padding:6,position:"relative",rounding:4,width:"100%",children:[(()=>{const e=l||(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(r.Z,{unsafeCSS:"\n@keyframes baseEduToastIconScale {\n 0% {\n transform: scale(0)\n }\n 30% {\n transform: scale(1.2);\n }\n 50% {\n transform: scale(1);\n }\n}\n"}),(0,s.jsx)(o.xu,{alignItems:"center",color:"education","data-test-id":"pin-save-toast",direction:"column",dangerouslySetInlineStyle:{__style:{animation:"baseEduToastIconScale 3s"}},display:"flex",height:60,justifyContent:"center",minHeight:60,minWidth:60,rounding:"circle",width:60,children:(0,s.jsx)(o.JO,{accessibilityLabel:a.accessibilityLabel,color:a.color,dangerouslySetSvgPath:a.dangerouslySetSvgPath,icon:a.icon,inline:a.inline,size:a.size})})]});return(0,s.jsx)(o.xu,{marginEnd:4,children:e})})(),(0,s.jsxs)(o.xu,{marginEnd:"auto",children:[(0,s.jsx)(o.xv,{color:"default",weight:"bold",children:n}),!!c&&(0,s.jsx)(o.xu,{paddingY:1,children:(0,s.jsx)(o.xv,{size:"300",color:"default",children:c})})]}),(0,s.jsx)(o.xu,{display:"flex",flex:"shrink",marginStart:2,children:t})]})})}var d=n(223815),c=n(829407),u=n(898781),_=n(759929);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=(e,t)=>(e-t)/2,m=68,g=h(m,68),v=h(m,66),f=h(m,60),y="cubicBezier(0.25, 0.1, 0.25, 1)",E="encourageToastIconContainer",S="encourageToastIconRadiateBg",T="encourageToastIconRadiateRing",I={targets:`#${E}`,duration:300,scale:1.4,easing:y},x={targets:`#${E}`,duration:300,scale:1,easing:y,endDelay:1e3},P={targets:`#${E}`,duration:300,scale:.42,easing:y},b={targets:`#${S}`,duration:400,opacity:0,scale:1.6,easing:y},A={targets:`#${T}`,duration:650,opacity:0,scale:2,easing:y};function w({hiding:e,visible:t}){return t?e?{opacity:0,transform:"scale(1.0)",transition:"opacity transform .2s"}:{opacity:1,transition:"all 0.7s cubic-bezier(.19, 1.15, .48, 1)"}:Object.freeze({})}class R extends i.PureComponent{constructor(...e){super(...e),p(this,"delayTimer",null),p(this,"requestAnimationFrameId",null),p(this,"playAnimation",(()=>{this.requestAnimationFrameId=window.requestAnimationFrame((()=>{(0,a.Z)(b),(0,a.Z)(A),(0,a.Z)(I).finished.then((()=>{(0,a.Z)(x).finished.then((()=>{a.Z.set(`#${E}`,{transformOrigin:"top right"}),(0,a.Z)(P)}))}))}))})),p(this,"getHeaderText",(()=>{const{text:e}=this.props;return Array.isArray(e)?e[0]:e})),p(this,"getIconProps",(()=>({accessibilityLabel:this.props.i18n._('Check icon', 'Label for check icon on toast shown after board create', 'Label for check icon on toast shown after board create'),color:"inverse",icon:"check",size:30}))),p(this,"getSubHeaderText",(()=>{const{text:e}=this.props;return e instanceof Array&&e.length>1&&e[1]?e[1]:""})),p(this,"renderAnimatedIcon",(()=>(0,s.jsxs)(o.xu,{height:m,position:"relative",width:m,children:[(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",width:60,height:60,overflow:"hidden",position:"absolute",rounding:4,dangerouslySetInlineStyle:{__style:{left:`${f}px`,top:`${f}px`}},children:this.props.thumbnail}),(0,s.jsxs)(o.xu,{id:E,height:m,width:m,dangerouslySetInlineStyle:{__style:{transform:"scale(0)"}},position:"absolute",children:[(0,s.jsx)(o.xu,{color:"infoBase",id:S,width:68,height:68,position:"absolute",rounding:"circle",dangerouslySetInlineStyle:{__style:{left:`${g}px`,top:`${g}px`,transform:"scale(0)"}}}),(0,s.jsx)(o.xu,{id:T,width:66,height:66,position:"absolute",rounding:"circle",opacity:1,dangerouslySetInlineStyle:{__style:{borderWidth:"2px",borderStyle:"solid",borderColor:"#0074e8",left:`${v}px`,top:`${v}px`,transform:"scale(0)"}}}),(0,s.jsx)(o.xu,{alignItems:"center",color:"infoBase",direction:"column",display:"flex",height:m,justifyContent:"center",minHeight:m,minWidth:m,position:"absolute",rounding:"circle",width:m,children:(0,s.jsx)(o.JO,{accessibilityLabel:this.props.i18n._('Check icon', 'Label for check icon on toast shown after board create', 'Label for check icon on toast shown after board create'),color:"inverse",icon:"check",size:30})})]})]})))}componentDidMount(){this.delayTimer=setTimeout(this.playAnimation,700)}componentWillUnmount(){this.delayTimer&&clearTimeout(this.delayTimer),this.requestAnimationFrameId&&window.cancelAnimationFrame(this.requestAnimationFrameId)}render(){const{isRepinToExistingBoard:e,button:t}=this.props,n=e;return(0,s.jsx)(l,{button:t,headerText:this.getHeaderText(),icon:this.getIconProps(),iconOverride:n?void 0:this.renderAnimatedIcon(),subHeaderText:this.getSubHeaderText()})}}function C(e){const{duration:t,onHide:n}=e,a=(0,u.ZP)(),[r,l]=(0,i.useState)(!1),[p,h]=(0,i.useState)(!1),m=(0,i.useRef)(),g=()=>{l(!0),m.current=setTimeout(n,200)},v=()=>{m.current&&clearTimeout(m.current)};(0,c.Z)((()=>(setTimeout((()=>h(!0)),100),m.current=setTimeout(g,t||_.w),v)));let f=(0,s.jsx)(R,{...e,i18n:a});return e.href&&(f=(0,s.jsx)(o.rU,{href:e.href,onClick:g,rounding:"pill",tapStyle:"none",children:f})),(0,s.jsx)(d.Z,{children:(0,s.jsx)(o.mh,{children:(0,s.jsx)(o.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{...w({hiding:r,visible:p})}},justifyContent:"center",position:"fixed",width:"100%",display:"flex",zIndex:_.k,children:f})})})}},56632:(e,t,n)=>{n.d(t,{L:()=>c,q:()=>u});var i=n(223019),a=n(258430),r=n(898781),o=n(883119),s=n(785893);const l=()=>{const e=(0,r.ZP)();return e._('Sweet save!', 'Header text on toast that appears after user creates their first board', 'Header text on toast that appears after user creates their first board')},d=()=>{const e=(0,r.ZP)();return e._('All your boards live on your profile', 'Subheader text on toast that appears after user creates their first board', 'Subheader text on toast that appears after user creates their first board')},c=e=>({duration:5e3,thumbnail:(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",width:48,height:48,children:(0,s.jsx)(a.Z,{boardId:e})})}),u=({boardId:e,isFBC:t,viewType:n})=>({duration:5e3,thumbnail:(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",children:(0,s.jsx)(i.Z,{boardId:e,viewType:n,type:"thumbnail"})}),text:t?[(0,s.jsx)(l,{},"0"),(0,s.jsx)(d,{},"1")]:void 0})},662089:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(702664),a=n(461355),r=n(343341),o=n(639952);function s(){const e=(0,i.useDispatch)(),{showToast:t,showOneToast:n}=(0,r.F9)();return{showToast:t,showOneToast:n,showRepinConfirmation:(n,i)=>{i||e((0,o.WF)()),setTimeout((()=>{i||e((0,o.a5)()),t(n)}),a.z)}}}},148304:(e,t,n)=>{n.d(t,{RG:()=>m,o6:()=>h,t7:()=>p});var i=n(667294),a=n(483730),r=n(311541),o=n(826067),s=n(276775),l=n(425288),d=n(785893);const c=()=>n.e(30656).then(n.bind(n,530656)),{Provider:u,useHook:_}=(0,l.Z)("SkinToneFilter");function p({children:e}){const[t,n]=(0,r.Z)(c,a.Z),l=(0,s.useLocation)();(0,i.useEffect)((()=>{let e;if(((0,o.mB)(l.search)||{}).q){const t=l.pathname.split("/");e=t.length>2?t[2]:"pins"}e||n({type:"RESET_SKIN_TONE_QUERY_USES"})}),[n,l]);const _=(0,i.useMemo)((()=>({dispatch:n,skinToneFilters:t})),[n,t]);return(0,d.jsx)(u,{value:_,children:e})}function h(){const{dispatch:e}=_();return(0,i.useMemo)((()=>({updateShowSkinToneFilters:t=>{e({type:"UPDATE_SHOW_SKIN_TONE_FILTERS",payload:{showSkinToneFilters:t}})},updateSkinToneFilterQueryUses:t=>{e({type:"UPDATE_SKIN_TONE_FILTER_QUERY_USES",payload:{newQuery:t}})},viewedOwnProfile:()=>e({type:"RESET_SKIN_TONE_QUERY_USES"})})),[e])}function m(){const{skinToneFilters:e}=_();return e}},483730:(e,t,n)=>{n.d(t,{Z:()=>i});const i={skinToneQueryUses:{numQueryUses:0,lastQuery:""},showSkinToneFilters:!1}},709622:(e,t,n)=>{n.d(t,{Az:()=>g,DI:()=>E,Gl:()=>T,Hl:()=>R,Kb:()=>N,NA:()=>i,NG:()=>d,OC:()=>A,Pq:()=>P,QM:()=>h,UF:()=>f,Uo:()=>b,WF:()=>s,Xm:()=>c,Zf:()=>r,_D:()=>O,_N:()=>p,ac:()=>o,e_:()=>_,gf:()=>v,hf:()=>I,i_:()=>l,jY:()=>y,ni:()=>S,qg:()=>u,rX:()=>a,vX:()=>x,wO:()=>C,yG:()=>m,yq:()=>w});const i="10",a=1,r=365,o=64,s=8,l=9,d=11,c=15,u=16,_=17,p=18,h=19,m=20,g=1e6,v=g,f="US";function y(e){let t="USD",n="$";switch(e){case"AT":t="EUR",n="€";break;case"AU":t="AUD",n="$";break;case"BE":t="EUR",n="€";break;case"CA":t="CAD",n="$";break;case"CH":t="CHF",n="CHF";break;case"DE":t="EUR",n="€";break;case"DK":t="DKK",n="kr";break;case"ES":case"FI":case"FR":t="EUR",n="€";break;case"GB":t="GBP",n="£";break;case"IE":case"IT":case"NL":t="EUR",n="€";break;case"NO":t="NOK",n="kr";break;case"NZ":t="NZD",n="$";break;case"PT":t="EUR",n="€";break;case"SE":t="SEK",n="kr"}return[t,n]}const E={AU:{budget:1,duration:"10"},CA:{budget:1,duration:"10"},FR:{budget:1,duration:"10"},GB:{budget:1,duration:"10"},IE:{budget:1,duration:"10"},NZ:{budget:1,duration:"10"},US:{budget:3,duration:"10"},AT:{budget:1,duration:"10"},DE:{budget:1,duration:"10"},IT:{budget:1,duration:"10"},ES:{budget:1,duration:"10"},NL:{budget:1,duration:"10"},PT:{budget:1,duration:"10"},BE:{budget:1,duration:"10"},CH:{budget:1,duration:"10"},SE:{budget:10,duration:"30"},NO:{budget:10,duration:"30"},DK:{budget:10,duration:"30"},FI:{budget:1,duration:"10"}},S={AU:{budget:9,duration:"10"},CA:{budget:8,duration:"10"},FR:{budget:8,duration:"10"},GB:{budget:5,duration:"10"},IE:{budget:8,duration:"10"},NZ:{budget:9,duration:"10"},US:{budget:8,duration:"10"},AT:{budget:8,duration:"10"},DE:{budget:8,duration:"10"},IT:{budget:8,duration:"10"},ES:{budget:8,duration:"10"},NL:{budget:8,duration:"10"},PT:{budget:8,duration:"10"},BE:{budget:8,duration:"10"},CH:{budget:8,duration:"10"},SE:{budget:10,duration:"30"},NO:{budget:10,duration:"30"},DK:{budget:10,duration:"30"},FI:{budget:8,duration:"10"}},T={PIN_SELECTION_MODAL:"PIN_SELECTION_MODAL",BUSINESS_FORM:"QUICK_PROMOTE_BUSINESS_FORM",BILLING_FORM:"QUICK_PROMOTE_BILLING_FORM",SUCCESS_MODAL:"SUCCESS_MODAL",ERROR_MODAL:"ERROR_MODAL",TAG_MODAL:"TAG_MODAL",GDPR_MODAL:"GDPR_MODAL"},I="QUICK_PROMOTE_PAGE",x=[T.GDPR_MODAL,T.PIN_SELECTION_MODAL,I,T.BUSINESS_FORM,T.BILLING_FORM,T.SUCCESS_MODAL,T.ERROR_MODAL],P={NARROW:"NARROW",MEDIUM:"MEDIUM",WIDE:"WIDE"},b=e=>e>=1&&e<=2,A="qp-fac-education-id",w="qp-fac-modal-education-id",R={CONSIDERATION:"CONSIDERATION",WEB_CONVERSION:"WEB_CONVERSION",CATALOG_SALES:"CATALOG_SALES"},C={PINS:0,PRODUCT_GROUPS:1,BOARDS:2,SELECTED:3,SEARCH_RESULTS:4},O={MOST_RECENT:"RECENT",PROMOTED_PINS:"PROMOTED"},N=300},655428:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(883119),a=n(785893);function r({description:e,imageUrl:t,imageHeight:n,imageWidth:r}){return(0,a.jsx)(i.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,overflow:"hidden",children:(0,a.jsx)(i.Ee,{alt:null!=e?e:"",src:null!=t?t:"",fit:"cover",naturalHeight:null!=n?n:1,naturalWidth:null!=r?r:1,color:"#767676"})})}},275926:(e,t,n)=>{n.d(t,{f0:()=>O,lq:()=>D,p3:()=>N});var i=n(667294),a=n(702664),r=n(231486),o=n(441143),s=n.n(o),l=n(626896),d=n(421322),c=n(383690),u=n(112690),_=n(69642),p=n(330102),h=n(628551),m=n(290148),g=n(116485),v=n(993723),f=n(957191),y=n(534427),E=n(844974),S=n(867820),T=n(539278),I=n(735422),x=n(773285),P=n(50286),b=n(780280),A=n(412067),w=n(226198),R=n(529195);const C=e=>({type:"AUTHENTICATE_USER",payload:{user:e}}),O=()=>{const e=(0,u.Z)(),t=(0,x.F)(),n=(0,a.useDispatch)(),{country:o,countryFromHostName:l,countryFromIp:P,regionFromIp:O,userAgent:{isTablet:N,isMobile:D}}=(0,b.B)(),k=(0,c.Z)(),L=(0,_.Z)();return(0,i.useCallback)((async(i,a,c="/",u={isAutologin:!1,isSwitchAccount:!1,noLocationReplace:!1,recaptchaV3Token:"default",noImmediateRedirect:!1,useAlternativeResourceCall:!1,trigger:"other",accountUnlinked:!1},_)=>{k();const x=!N&&!D,{isAutologin:b,isSwitchAccount:j,noLocationReplace:U,recaptchaV3Token:M,noImmediateRedirect:F,useAlternativeResourceCall:B,trigger:G,accountUnlinked:z}=u;let H={get_user:!0,...i,app_type_from_client:6,recaptchaV3Token:M};const Z=(0,R.t_)();Z&&(H={...H,visited_pages_before_login:Z});const V=(0,R.OJ)();V&&(H={...H,referrer:V});let W=A.Z.create("UserSessionResource",H).callCreate();if(B&&i.username_or_email&&i.password){const e=new FormData;e.append("username",i.username_or_email),e.append("password",i.password);const t={method:"POST",body:e,credentials:"include",headers:{Accept:"application/json, text/javascript, */*","X-CSRFToken":(0,h.getCsrfToken)()||"","X-Requested-With":"XMLHttpRequest"}};W=fetch("/resource/UserSessionResource/create/",t).then((e=>{if(200!==e.status)throw new Error(e.statusText);return e.json()})).catch((e=>Promise.reject(e)))}try{b&&(0,S.dy)({event:"login_api_call_start",provider:i.google_open_id_token?"google":"facebook"}),e({..._,event_type:7534}),L({action:b?"autologin":"login",event:"attempt",type:(0,m.lp)(i),trigger:G});const u=await W;b&&(0,S.dy)({event:"login_api_call_success",provider:i.google_open_id_token?"google":"facebook"}),s()(u.resource_response,"Login response is invalid"),n(C(u.resource_response.data.user));const h=u.client_context;h&&(h.placed_experiences&&n((0,f.OD)(h.placed_experiences)),t.active=h.active_experiments,t.triggerable=h.triggerable_experiments),(0,d.Z)("authentication.login_success"),e({..._,event_type:7536}),L({action:b?"autologin":"login",event:"success",type:(0,m.lp)(i),trigger:G}),r.zN(w.e7.name),r.zN(w.x3.name),(0,E.Nh)(g.AA,1),"/"!==c&&(0,y.E)(!0),j?(0,I.Dm)().then((()=>{var e,t;const n=`/${(null===(e=u.resource_response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.user.username)||""}`+(z?`?message=${T.aU}`:"");window.location.href=n})):b&&!x||F||(0,v._)({forceFullPageNavigation:x,history:a,next:c,noLocationReplace:U}),(0,p.ko)({country:o,countryFromHostName:l,countryFromIp:P,regionFromIp:O,deviceType:"Mobile",eventCategory:"Logins"})}catch(K){if(b&&(0,S.dy)({event:"login_api_call_failure",provider:i.google_open_id_token?"google":"facebook"}),1201!==K.api_error_code||b||x)throw e({..._,event_type:7535}),L({action:b?"autologin":"login",event:"fail",type:(0,m.lp)(i),trigger:G}),j&&(0,d.Z)("authentication.login_error"),K;if(a){const e={creds:i,next:c,phoneNumber:K.data.phone_number_end};a.push({pathname:"/login/mfa/",state:e})}}}),[n,o,l,P,k,t,D,N,e,O,L])},N=()=>{const e=(0,P.HG)();return t=>(0,l.default)(t,e)},D=()=>{const e=(0,x.F)(),t=(0,a.useDispatch)(),n=(0,c.Z)();return({client_context:i,resource_response:a})=>{const r=null==a?void 0:a.data;r&&(n(),t(C(r.user))),i&&(t((0,f.OD)(i.placed_experiences)),e.active=i.active_experiments,e.triggerable=i.triggerable_experiments)}}},626896:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var i=n(231486),a=n(957161),r=n(412067),o=n(421322),s=n(226198),l=n(696157),d=n(116485),c=n(966113),u=n(844974),_=n(534427),p=n(643010),h=n(867820),m=n(884732),g=n(735422);async function v(e={logoutOnAbort:!1},t){const{redirectUrl:n,localStorageItems:v,logoutOnAbort:f,reason:y="user_initiated",source:E}=e;if("authentication_failed"===y&&a.Z.getItem(l.co))return;const S=t?"web_desktop":"web_mobile";(0,h.tj)("logout.attempt",{tags:{app:S,reason:y,source:E}});try{a.Z.setItem(l.co,!0),await r.Z.create("UserSessionResource",{disable_auth_failure_redirect:!0}).callDelete()}catch(T){if(!f||"abort"!==(null==T?void 0:T.type))throw(0,h.tj)("logout.error",{tags:{app:S,reason:y,source:E}}),T;(0,o.Z)("logout.logout_ignored")}(0,o.Z)("logout.logout_success"),(0,h.tj)("logout",{tags:{app:S,reason:y,source:E}}),i.t8(s.e7,"True",(0,i.kZ)(s.e7)),(0,_.E)(!1),(0,u.L_)(p.Uf),(0,u.L_)(d.E9),(0,u.L_)(l.co),(0,u.L_)(g.RH),(0,u.L_)("_epik_localstore"),v&&((0,m.r8)(v.multipleAccountMap),(0,m.M3)(v.multipleAccountGroupId)),await(0,g.Dm)(),window.location.href=n||c.ZE}},712055:(e,t,n)=>{n.d(t,{Z:()=>o,f:()=>s});var i=n(412067),a=n(254176);function r(e){return i.Z.create("BoardFollowResource",{board_id:e})}function o(e){return t=>{r(e).callCreate().catch((()=>{t((0,a.md)(e,!1))})),t((0,a.md)(e,!0))}}function s(e){return t=>{r(e).callDelete().catch((()=>{t((0,a.md)(e,!0))})),t((0,a.md)(e,!1))}}},29857:(e,t,n)=>{n.d(t,{r:()=>i});const i=(e,t)=>({type:"SET_ACTIVE_HOMEFEED_TAB",payload:{boardId:e,index:t}})},177891:(e,t,n)=>{n.d(t,{a:()=>i,k:()=>a});const i=e=>({type:"ONE_TAP_SAVE",payload:e}),a=e=>({type:"ONE_TAP_UNSAVE",payload:e})},490543:(e,t,n)=>{n.d(t,{F:()=>i,p:()=>a});const i=e=>({type:"PIN_BUILDER_LOADED_IMAGES",payload:e}),a=e=>({type:"UPDATE_PIN_BUILDER_INPUT",payload:e})},12918:(e,t,n)=>{n.d(t,{M:()=>l,i:()=>d});var i=n(483025),a=n(414327),r=n(782677),o=n(90326),s=n(412067);const l=(e,t,n,i)=>({type:"PIN_ADD",payload:{pinId:e,boardId:t,boardSectionId:n,pinnerId:i}}),d=e=>t=>{const{method:n,guid:d,image_base64:c,image_url:u}=e;return((e,t)=>new Promise((n=>{e?(0,o.eR)(e).then((e=>{n(e)})):n(t)})))(c,u).then((o=>{const c={...e,method:"button"!==n||d?n:"button_external",image_url:o,image_base64:void 0},u="PinResource";return s.Z.create(u,c).callCreate().then((e=>{const n=(0,r.Fv)(e.resource_response.data,i.Z.PinResource);t((0,a.XM)(u,c,e,n));const o=e.resource_response.data,{board:{id:s},pinner:{id:d},section:_}=o,p=_&&_.id;return t(l(o.id,s,p,d)),e}))}))}},139574:(e,t,n)=>{n.d(t,{L:()=>s,q:()=>l});var i=n(422946),a=n(956800),r=n(254176),o=n(412067);function s(e){return t=>{const{inSelectAll:n,selectedPinIds:s,orbacSubjectId:l,source:{boardId:d,sectionId:c}}=e,u=n?"BulkEditSelectAllResource":"BulkEditResource",_={board_id:d,section_id:c,pin_ids:s,orbac_subject_id:l};return t((0,r.xQ)(d)),t((0,a.EX)({feedId:c||d,feedType:c?i.DV.BOARD_SECTION_PINS:i.DV.BOARDFEED,inverseSelection:n,itemIds:s,itemType:"pin"})),o.Z.create(u,_).callDelete()}}const l=({pinId:e,boardId:t,boardSectionId:n,clientTrackingParams:i})=>(a,r)=>{const s=o.Z.create("PinResource",{id:e,client_tracking_params:i}).callDelete(),{session:{userId:l}}=r();return a(((e,t,n,i)=>({type:"PIN_DELETE",payload:{pinId:e,boardId:t,boardSectionId:n,userId:i}}))(e,t,n,l)),s}},850431:(e,t,n)=>{n.d(t,{w:()=>r});var i=n(349741),a=n(956800);const r=({pinId:e,boardId:t,i18n:n,logContextEvent:r,onSuccess:o,onUndo:s,originalPinId:l,showNewUserSavetoProfileAnimation:d,showRepinConfirmation:c,showToast:u,section:_,trackingParams:p,isOneTapSave:h,viewType:m,historyPush:g})=>(v,f)=>{var y,E,S,T,I;const{pins:x,session:P,feeds:b}=f(),A=x[e];t&&((null===(y=null!==(E=null==A?void 0:A.shopping_flags)&&void 0!==E?E:[])||void 0===y?void 0:y.length)>0||null!=A&&A.rich_summary&&(null===(S=null!==(T=null==A||null===(I=A.rich_summary)||void 0===I?void 0:I.products)&&void 0!==T?T:[])||void 0===S?void 0:S.length)>0)&&(b[`board-shop-saved-preview:${t}`]&&v((0,a.Qv)(`board-shop-saved-preview:${t}`,[A],{isPrepend:!0})),b[`board-shop-saved:${t}`]&&v((0,a.Qv)(`board-shop-saved:${t}`,[A],{isPrepend:!0})));return new i.Z({boardId:t,dispatch:v,i18n:n,isLegoSaveStyle:!0,isOneTapSave:h,onSuccess:o,onUndo:s,originalPinId:l,pin:A,resourceName:"RepinResource",section:_,showNewUserSavetoProfileAnimation:d,showRepinToasts:e=>c?c(e):u?u(e):void 0,trackingParams:p,userId:P.userId,viewType:m,historyPush:g}).processRepin(r)}},639952:(e,t,n)=>{n.d(t,{Cp:()=>l,FK:()=>s,H5:()=>S,MI:()=>h,Mj:()=>y,O0:()=>p,QZ:()=>o,W:()=>v,WF:()=>c,Wz:()=>T,a5:()=>u,dz:()=>g,e0:()=>_,e2:()=>r,iW:()=>f,n1:()=>a,rm:()=>d,wb:()=>E,xu:()=>m});var i=n(53987);const a=()=>({type:"DISMISS_UNAUTH_SAVE"}),r=()=>({type:"COMPLETE_UNAUTH_SAVE_ACTION"}),o=e=>({type:"SET_UNAUTH_SAVE_PIN_ID",payload:{unauthSavePinId:e}}),s=()=>({type:"HIDE_NAV_FOOTER"}),l=()=>({type:"SHOW_NAV_FOOTER"}),d=e=>({type:"SET_LOGIN_SIGNUP_FROM",payload:{from:e}}),c=()=>({type:"SHOW_REPIN_ANIMATION"}),u=()=>({type:"HIDE_REPIN_ANIMATION"}),_=e=>({type:"SET_NUM_SIGNUP_STEPS",payload:{steps:e}}),p=()=>({type:"SET_OWN_PROFILE_PINS_REFRESH"}),h=e=>({type:"SHOW_BIZ_NUX_HOMEFEED_LOADER",payload:e}),m=e=>({type:"SET_VIEWED_IMAGE",payload:{viewedImageSignature:e}}),g=e=>({type:"SET_VIEWED_SHARED_PINS",payload:{pins:e}}),v=()=>({type:"DISMISS_UNAUTH_APP_UPSELL"}),f=e=>e?{type:"LOGGED_OUT_USER_INFO_FOUND",payload:e}:{type:"LOGGED_OUT_USER_INFO_NOT_FOUND"},y=(e,t,n)=>i=>i(((e,t,n)=>({type:"SET_SHARE_ON_BOARD_PAGE",payload:{isShareMenuOpen:e,objectType:t,objectId:n}}))(e,t,n)),E=()=>({type:"STOP_SCROLL_TO_CLOSEUP_PIN"}),S=e=>({type:"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX",payload:e}),T=(e,t)=>{let n;return n=e?(0,i.bo)(e)?"today":(0,i.dr)(e)?"ideas":t&&(0,i.dZ)(e,t)?"own_section":t&&(0,i.J)(e,t)?"own_board":(0,i.OJ)(e)?"section":(0,i.am)(e)?"board":(0,i.L6)(e)?"closeup":(0,i.C$)(e)?"home":(0,i.cD)(e)?"profile":(0,i.En)(e)?"search":(0,i.$V)(e)?"topic":"":"",{type:"SET_LANDING_PAGE_TYPE",payload:n}}},70090:(e,t,n)=>{n.d(t,{ZN:()=>o,bJ:()=>l,fv:()=>s,hr:()=>r,lD:()=>d});var i=n(412067);function a(e,t){return i.Z.create("InterestFollowResource",{interest_id:e,interest_list:"favorited",referrer:t})}const r=(e,t)=>({type:"TOPIC_FOLLOW",payload:{id:e,value:t}}),o=(e,t)=>n=>{a(e,t).callCreate().catch((()=>n(r(e,!1)))),n(r(e,!0))},s=(e,t)=>n=>{a(e,t).callDelete().catch((()=>n(r(e,!0)))),n(r(e,!1))},l=e=>t=>{const n=e.reduce(((e,t)=>({...e,[t.id]:!t.is_followed})),{});return i.Z.create("UpdateFollowedInterestsResource",{updated_interest_follows:n}).callUpdate().then((()=>{e.forEach((({id:e,is_followed:n})=>{t(r(e,!n))}))}))},d=(e,t="")=>n=>i.Z.create("UpdateFollowedInterestsResource",{referrer:t,updated_interest_follows:e}).callUpdate().then((()=>{Object.keys(e).forEach((t=>{const i=e[t];n(r(t,i))}))}))},832559:(e,t,n)=>{n.d(t,{Z:()=>r});const i=e=>null!==e&&("object"==typeof e||"function"==typeof e);function a(...e){const t=(e,n)=>Object.keys(n).reduce(((e,a)=>{const r=e[a],o=n[a];return Object.prototype.hasOwnProperty.call(e,a)&&i(r)&&i(o)?e[a]=t(r,o):e[a]=void 0===r?o:o||r,e}),e);return e.reduce(((e,n)=>n?t(e,n):e),{})}const r=function(e,t){return(n,i)=>{const r=t(n,i);if(i.payload&&!Array.isArray(i.payload)){const{normalizedResponse:t}=i.payload;if(t&&((o=t).entities&&o.entities[e]))return function(e,t){return Object.keys(t).reduce(((e,n)=>({...e,[n]:a(e[n],t[n])})),e)}(r,t.entities[e])}var o;return r}}},967628:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(952712);var a=n(550858),r=n(207737);const o=(0,a.RK)("experiences"),s=(0,a.RK)("session"),l=(0,a.RK)("users");var d=n(753894),c=n(14890);const u=[d.Z,e=>t=>n=>{if("ERROR_LOG_EVENT"===n.type){const{error:e,auxData:a}=n;return(0,i.H)(e,a),t(n)}try{return t(n)}catch(a){return(0,i.H)(a||new Error("unknown error"),{action:n}),e.getState()}},e=>t=>n=>{const i=t(n);switch(n.type){case r.mR:case r._4:case r.iY:o(e.getState().experiences);break;case"AUTHENTICATE_USER":case"REGISTER_USER":const t=e.getState();o(t.experiences),s(t.session),l({[t.session.userId]:t.users[t.session.userId]})}return i}],_=()=>(0,c.applyMiddleware)(...u)},923095:(e,t,n)=>{n.d(t,{Z:()=>qt});var i=n(853824),a=n(396675);const r=(e=null,t)=>e;var o=n(832559);const s=(0,o.Z)("articles",((e={})=>e)),l=(e={businessInformationForm:{},billingInformationForm:{},autoFillQPBillingChecked:!0},t)=>{if("STERLING_UPDATE_BUSINESS_INFORMATION_FORM"===t.type||"STERLING_UPDATE_BILLING_INFORMATION_FORM"===t.type){return{...e,[t.formName]:{...e[t.formName],...t.values}}}return"QUICK_PROMOTE_COPY_BUSINESS_INFO"===t.type?{...e,autoFillQPBillingChecked:t.isChecked}:e};var d=n(823434),c=n(338739);const u=["BoardsResource","BoardFollowingResource","SearchResource","BoardArchiveResource"],_=(e,t)=>({...e,[t.id]:e[t.id]?{...e[t.id],...t}:{...t}});function p(e={},t){switch(t.type){case c.zP:case c.aW:{const{resource:a}=t.payload,r=t.payload.response.resource_response.data;if("BoardResource"===a||"BoardPageResource"===a||"BoardActionStatusResource"===a){const n=((e,t)=>{var n;const{options:i={}}=t.payload,a=t.payload.response.resource_response.data;return t.type!==c.zP||!i.slug||null!=a&&null!==(n=a.url)&&void 0!==n&&n.includes(i.slug)?{}:{oldSlugUrl:`/${i.username}/${(0,d.X)(i.slug)}/`}})(0,t);return{...e,...n,...r||{},cover_images:{...e.cover_images,...(r||{}).cover_images},images:{...e.images,...(r||{}).images}}}var n,i;return"BoardSectionResource"===a?{...e,...(null==r?void 0:r.board)||{},cover_images:{...e.cover_images,...(null==r||null===(n=r.board)||void 0===n?void 0:n.cover_images)||{}},images:{...e.images,...(null==r||null===(i=r.board)||void 0===i?void 0:i.images)||{}}}:t.type===c.zP&&"ApiResource"===a?((e,t)=>{const{response:n}=t.payload,i=n.resource_response.data;return null!=i&&i.length?{...e,related_interest_ids:i.map((e=>e.id))}:e})(e,t):e}case"BOARD_CREATE_COMPLETE":{const{board:n}=t.payload;return{...e,...n}}case"BOARD_UPDATE_COMPLETE":{const{board:n}=t.payload;return{...e,...n,sensitivity:n.sensitivity}}case"BOARD_PIN_COUNT_CHANGED":{const{pin_count:n,sectionless_pin_count:i}=e||{},{sectionId:a}=t.payload,r="BOARD_PIN_COUNT_CHANGED"===t.type?t.payload.increment:1;return{...e,pin_count:"number"==typeof n?Math.max(0,n+r):n,sectionless_pin_count:a||"number"!=typeof i?i:Math.max(0,i+r)}}case"USER_FOLLOW":{const{id:n,value:i}=t.payload;return e.owner&&n===e.owner.id?{...e,followed_by_me:i}:e}case"BOARD_FOLLOW":{const{boardId:n,value:i}=t.payload;return{...e,id:n,followed_by_me:i}}case"BOARD_OWNERSHIP_TRANSFER_REQUEST":{const{collaboratorId:n}=t.payload;return{...e,pending_ownership_transfer:n}}case"BOARD_OWNERSHIP_TRANSFER_REQUEST_CANCEL":return{...e,pending_ownership_transfer:null};case"BOARD_DISMISS_SENSITIVITY_SCREEN":return{...e,sensitivity_screen:{reason:null,show_warning:!1}};case"BOARD_INVITE_ACCEPTED_BY_VIEWER":{const{collaborator_count:n,collaborating_users:i}=e||{},{boardId:a,collaboratingUser:r}=t.payload;return{...e,id:a,access:["write"],collaborated_by_me:!0,is_collaborative:!0,collaborator_count:"number"==typeof n?n+1:0,...r?{collaborating_users:(i||[]).concat(r)}:Object.freeze({})}}case"BOARD_REQUEST_TO_JOIN":{const{boardId:n,value:i}=t.payload;return{...e,id:n,viewer_collaborator_join_requested:i}}case"BOARD_ARCHIVE":return{...e,archived_by_me_at:(new Date).toString()};case"BOARD_UNARCHIVE":{const{boardId:n}=t.payload;return{...e,id:n,archived_by_me_at:void 0}}case"BOARD_COVER_IMAGE_UPDATED":{const{boardId:n,coverPin:i}=t.payload;return{...e,id:n,cover_pin:i}}case"BOARD_DISABLE_MORE_IDEAS_BADGING":return{...e,has_fresh_more_ideas_tab:!1};case"SECTION_ADDED":{const{section_count:t}=e||{};return{...e,section_count:(t||0)+1}}case"SECTION_DELETED":{const{section_count:t}=e||{};return{...e,section_count:(t||1)-1}}case"BOARD_INVITE_APPROVED_BY_VIEWER":return((e,{payload:{boardId:t,collaboratingUser:n}})=>{const i=e[t];return _(e,{id:t,collaborating_users:(i.collaborating_users||[]).concat(n)})})(e,t);case"BOARD_COLLABORATOR_DELETE":return((e,{payload:{userId:t,boardId:n,viewingUser:i}})=>{var a;const r=e[n],o=r.collaborating_users?r.collaborating_users.indexOf(t):-1;return _(e,{id:n,...r.collaborator_count?{collaborator_count:r.collaborator_count-1}:Object.freeze({}),...r.collaborated_by_me?{collaborated_by_me:i!==t&&r.collaborated_by_me}:Object.freeze({}),...r.access&&{access:i===t?[]:r.access},...o>-1?{collaborating_users:(null!==(a=r.collaborating_users)&&void 0!==a?a:[]).filter(((e,t)=>t!==o))}:Object.freeze({})})})(e,t);case"BOARD_COLLABORATOR_ADD":return((e,{payload:{boardId:t,viewingUser:n,status:i,collaboratingUsers:a}})=>{const r=e[t],o=a.map((e=>null==e?void 0:e.id)).filter(Boolean);var s;return"accepted"===i?_(e,{id:t,...r.collaborator_count||0===r.collaborator_count?{collaborator_count:r.collaborator_count+o.length}:{},...r.collaborated_by_me||!1===r.collaborated_by_me?{collaborated_by_me:r.collaborated_by_me||o.includes(n)}:{},...(r.access||r.access===[])&&{access:o.includes(n)?["write","delete"]:r.access},...(r.collaborating_users||r.collaborating_users===[])&&{collaborating_users:[...null!==(s=r.collaborating_users)&&void 0!==s?s:[],...a]}}):e})(e,t);case"PIN_ADD":{const{pin_count:t}=e||{};return{...e,pin_count:(null!=t?t:0)+1}}case"PIN_DELETE":{const{pin_count:t}=e||{};return{...e,pin_count:(null!=t?t:0)-1}}case"BOARD_SECTION_DELETE":{var a;const{pinCount:n}=t.payload,i=e.section_count||0;return{...e,section_count:Math.max(i-1,0),pin_count:(null!==(a=e.pin_count)&&void 0!==a?a:0)-n}}case"CREATE_COMPLETE":{const{section_count:t}=e||{};return{...e,section_count:(t||0)+1}}case"SET_SOCIAL_SEASONAL_BOARD":{const{isSocialSeasonalBoard:n,socialHeaderBgImage:i,socialHeaderBgColor:a,textIconColor:r}=t.payload;return{...e,isSocialSeasonalBoard:n,socialHeaderBgImage:i,socialHeaderBgColor:a,textIconColor:r}}default:return e}}const h=(e,t,n,i)=>{var a;return t===n?e:{...e,...t&&e[t]?{[t]:{...e[t],pin_count:Math.max(0,(null!==(a=e[t].pin_count)&&void 0!==a?a:0)-i)}}:{},...n&&e[n]?{[n]:{...e[n],pin_count:(e[n].pin_count||0)+i}}:{}}},m=(0,o.Z)("boards",((e={},t)=>{switch(t.type){case c.zP:case c.aW:{var n,i;const{options:s,resource:l}=t.payload,d=t.payload.response.resource_response.data;if(u.includes(l)&&d){const t=d||[],n={...e};return t.forEach((e=>{e.type&&"board"!==e.type||(n[e.id]={...n[e.id],...e})})),n}if("BoardResource"===l||"BoardPageResource"===l||"BoardActionStatusResource"===l){const n=(null==s?void 0:s.board_id)||(d||{}).id;return{...e,[n]:p(e[n],t)}}if("BoardSectionResource"===l){var a;const n=null==d||null===(a=d.board)||void 0===a?void 0:a.id;if(n)return{...e,[n]:p(e[n],t)}}else if("ApiResource"===l&&null!==(n=t.payload.options)&&void 0!==n&&null!==(i=n.url)&&void 0!==i&&i.match(/\/v3\/boards\/([0-9]|[a-z]|[A-Z])+\/interests\//)){var r,o;const{options:n}=t.payload,i=null==n||null===(r=n.url)||void 0===r||null===(o=r.split("/"))||void 0===o?void 0:o[3];if(i)return{...e,[i]:p(e[i],t)}}return e}case"BOARD_CREATE_COMPLETE":{const{board:n}=t.payload;return n&&n.id?{...e,[n.id]:p(e[n.id],t)}:e}case"BOARD_UPDATE_COMPLETE":{const{board:n}=t.payload;return{...e,[n.id]:p(e[n.id],t)}}case"BOARD_ARCHIVE":case"BOARD_COVER_IMAGE_UPDATED":case"BOARD_DISABLE_MORE_IDEAS_BADGING":case"BOARD_DISMISS_SENSITIVITY_SCREEN":case"BOARD_FOLLOW":case"BOARD_SECTION_DELETE":case"BOARD_INVITE_ACCEPTED_BY_VIEWER":case"BOARD_OWNERSHIP_TRANSFER_REQUEST_CANCEL":case"BOARD_OWNERSHIP_TRANSFER_REQUEST":case"BOARD_PIN_COUNT_CHANGED":case"BOARD_REQUEST_TO_JOIN":case"BOARD_UNARCHIVE":case"PIN_ADD":case"PIN_DELETE":case"SECTION_ADDED":case"SECTION_DELETED":case"SET_SOCIAL_SEASONAL_BOARD":{const{boardId:n}=t.payload;return{...e,[n]:p(e[n],t)}}case"USER_FOLLOW":{const{id:n}=t.payload,i=Object.keys(e).filter((t=>e[t].owner&&e[t].owner.id===n)).reduce(((n,i)=>(n[i]=p(e[i],t),n)),{});return{...e,...i}}case"BOARD_DELETE":return((e,t)=>{const{boardId:n}=t.payload;if(!n)return e;const{[n]:i,...a}=e;return a})(e,t);case"USER_BLOCK":return((e,{payload:{id:t,value:n}})=>{if(!n)return e;const i=Object.keys(e).filter((n=>e[n].owner&&e[n].owner.id===t));if(!i.length)return e;const a=i.reduce(((t,n)=>{const i=e[n];return t[n]={...i,followed_by_me:!1},t}),{});return{...e,...a}})(e,t);case"PIN_EDIT":return((e,t)=>{const{boardId:n,source:{boardId:i}}=t.payload;return h(e,i,n,1)})(e,t);case"PINS_MOVE":return((e,t)=>{const{pinIds:n,source:{boardId:i},target:{boardId:a}}=t.payload;return i===a?e:h(e,i,a,n.length)})(e,t);case"PINS_MOVE_ALL":return e;case"CREATE_COMPLETE":{const{resource:n,normalizedResponse:i}=t.payload;if("BoardSectionResource"===n&&i){const{result:n,entities:{boardsections:a}}=i,r=a[n].board;return{...e,[r]:p(e[r],t)}}return e}default:return e}})),g=(e,t)=>({...e,[t.id]:{...t&&e[t.id]||{},...t}}),v=(e,t,n,i)=>{var a;return t===n?e:{...e,...t&&e[t]?{[t]:{...e[t],pin_count:Math.max(0,(null!==(a=e[t].pin_count)&&void 0!==a?a:0)-i)}}:{},...n&&e[n]?{[n]:{...e[n],pin_count:(e[n].pin_count||0)+i}}:{}}},f=e=>"board_section"===(null==e?void 0:e.type)?{...e,type:"boardsection"}:e,y=(0,o.Z)("boardsections",((e={},t)=>{switch(t.type){case c.zP:case c.aW:const{resource:n,normalizedResponse:i}=t.payload;if(!i){const i=t.payload.response.resource_response.data;if("BoardSectionsResource"===n){const t=(i||[]).reduce(((t,n)=>(t[n.id]={...e[n.id],...f(n)},t)),{});return{...e,...t}}if("BoardSectionResource"===n&&i){const t=i;return{...e,[t.id]:{...e[t.id],...f(t)}}}}return e;case"SECTION_ADDED":const{payload:{section:a}}=t;return a.id?{...e,[a.id]:a}:e;case"SECTION_DELETED":const{payload:{sectionId:r}}=t,o={...e};return delete o[r],o;case"SECTION_UPDATED":return((e,t)=>{const{payload:{section:n}}=t;return n.id?{...e,[n.id]:{...e[n.id],...n}}:e})(e,t);case"BOARD_PIN_COUNT_CHANGED":return((e,t)=>{const{payload:{sectionId:n,increment:i}}=t;if(!n)return e;const a=e[n];return a?{...e,[n]:{...a,pin_count:a.pin_count?Math.max(0,a.pin_count+i):i}}:e})(e,t);case"BOARD_SECTION_EDIT":return((e,{payload:t})=>g(e,t))(e,t);case"PIN_ADD":return((e,t)=>{const{boardSectionId:n}=t.payload;var i;return n&&e[n]?g(e,{id:n,pin_count:(null!==(i=e[n].pin_count)&&void 0!==i?i:0)+1}):e})(e,t);case"PIN_DELETE":return((e,t)=>{const{boardSectionId:n}=t.payload;var i;return n&&e[n]?g(e,{id:n,pin_count:(null!==(i=e[n].pin_count)&&void 0!==i?i:0)-1}):e})(e,t);case"PIN_EDIT":return((e,t)=>{const{section:n,source:i}=t.payload,a=n&&n.id||null,r=i&&i.sectionId||null;return v(e,r,a,1)})(e,t);case"PINS_MOVE":return((e,t)=>{const{pinIds:n,source:{sectionId:i},target:{sectionId:a}}=t.payload;return v(e,i,a,n.length)})(e,t);case"PINS_MOVE_ALL":default:return e}})),E={data:null,loading:!1,error:null},S=(e=E,t)=>{switch(t.type){case"GET_ACTING_USER":return{...e,loading:!0,error:null};case"GET_ACTING_USER_SUCCESS":return{...e,data:t.payload,loading:!1};case"GET_ACTING_USER_ERROR":return{...e,loading:!1,error:t.error};default:return e}},T={data:{},loading:!1,error:void 0},I=(e=T,t)=>{var n,i,a;switch(t.type){case"CREATE_AD_ACCOUNTS":case"GET_MULTIPLE_AD_ACCOUNTS":case"GET_PERSON_ASSETS":case"GET_PARTNER_ASSETS":case"GET_AD_ACCOUNT":return{...e,loading:!0};case"CREATE_AD_ACCOUNTS_ERROR":case"GET_MULTIPLE_AD_ACCOUNTS_ERROR":case"GET_PERSON_ASSETS_ERROR":case"GET_PARTNER_ASSETS_ERROR":case"GET_AD_ACCOUNT_ERROR":return{...e,error:t.error,loading:!1};case"CREATE_AD_ACCOUNTS_SUCCESS":return{...e,loading:!1,error:void 0};case"GET_MULTIPLE_AD_ACCOUNTS_SUCCESS":case"GET_PERSON_ASSETS_SUCCESS":case"GET_PARTNER_ASSETS_SUCCESS":case"GET_AD_ACCOUNT_SUCCESS":return{...e,loading:!1,data:{...e.data,...null!==(n=null===(i=t.payload)||void 0===i?void 0:i.data)&&void 0!==n?n:{}},error:void 0};case"CLEAR_ERROR":return{...e,error:void 0};case"UPDATE_AD_ACCOUNTS_TOTAL_COUNT":return{...e,loading:!1,totalCount:null===(a=t.payload)||void 0===a?void 0:a.totalCount};default:return e}},x={requests:{},loading:!1,error:void 0},P=(e=x,t)=>{var n;switch(t.type){case"GET_AOAA_REQUESTS":return{...e,loading:!0};case"GET_AOAA_REQUESTS_ERROR":return{...e,error:t.error,loading:!1};case"GET_AOAA_REQUESTS_SUCCESS":return{...e,loading:!1,requests:{...e.requests,...null!==(n=t.payload.data)&&void 0!==n?n:{}}};case"CLEAR_AOAA_REQUESTS":return{...e,loading:!1,requests:{}};case"CLEAR_ERROR":return{...e,error:void 0};default:return e}},b={assetGroups:{},selectedAssetGroupId:void 0,loading:!1,error:void 0},A=(e=b,t)=>{var n,i,a,r,o,s,l,d,c,u,_,p,h,m,g,v,f;switch(t.type){case"GET_ASSET_GROUPS":return{...e,loading:!0};case"GET_ASSET_GROUPS_ERROR":return{...e,error:t.error,loading:!1};case"GET_ASSET_GROUPS_SUCCESS":return{...e,loading:!1,assetGroups:{...e.assetGroups,...(Array.isArray(null===(n=t.payload)||void 0===n?void 0:n.data)?t.payload.data:[]).reduce(((e,t)=>("id"in t&&(e[t.id]=t),e)),{})}};case"CREATE_ASSET_GROUP":return{...e,loading:!0};case"CREATE_ASSET_GROUP_ERROR":return{...e,error:t.error,loading:!1};case"CREATE_ASSET_GROUP_SUCCESS":const S=null===(i=t.payload)||void 0===i?void 0:i.data;return"object"!=typeof S||Array.isArray(S)||"string"!=typeof S.id?e:{...e,loading:!1,selectedAssetGroupId:S.id,assetGroups:{...e.assetGroups,[S.id]:{...S,profiles:[],adAccounts:[],employees:[]}}};case"EDIT_ASSET_GROUP":return{...e,loading:!0};case"EDIT_ASSET_GROUP_ERROR":return{...e,error:t.error,loading:!1};case"EDIT_ASSET_GROUP_SUCCESS":const T=null===(a=t.payload)||void 0===a?void 0:a.data;return"object"!=typeof T||Array.isArray(T)||"string"!=typeof T.id?e:{...e,loading:!1,assetGroups:{...e.assetGroups,[T.id]:null===(y=t.payload)||void 0===y?void 0:y.data}};var y;case"DELETE_ASSET_GROUP":return{...e,loading:!0};case"DELETE_ASSET_GROUP_ERROR":return{...e,error:t.error,loading:!1};case"DELETE_ASSET_GROUP_SUCCESS":const I={...e.assetGroups},x=null===(r=t.payload)||void 0===r?void 0:r.data,P={};if("object"!=typeof x||Array.isArray(x)||"string"!=typeof x.id)return e;{Object.keys(I).forEach((e=>{e!==x.id&&(P[e]=I[e])}));const t=Object.keys(P).length>0?Object.keys(P)[0]:void 0;return{...e,loading:!1,assetGroups:P,selectedAssetGroupId:t}}case"SELECT_ASSET_GROUP":return{...e,selectedAssetGroupId:"string"==typeof(null===(o=t.payload)||void 0===o?void 0:o.data)?t.payload.data:void 0};case"ADD_PROFILE_TO_ASSET_GROUP":return{...e,loading:!0};case"ADD_PROFILE_TO_ASSET_GROUP_ERROR":return{...e,error:t.error,loading:!1};case"ADD_PROFILE_TO_ASSET_GROUP_SUCCESS":return null!==(s=t.payload)&&void 0!==s&&null!==(l=s.data)&&void 0!==l&&l.assetGroupId&&"string"==typeof t.payload.data.assetGroupId&&Array.isArray(t.payload.data.profiles)&&e.assetGroups[t.payload.data.assetGroupId]&&t.payload.data.profiles?{...e,assetGroups:{...e.assetGroups,[t.payload.data.assetGroupId]:{...e.assetGroups[t.payload.data.assetGroupId],profiles:[...e.assetGroups[t.payload.data.assetGroupId].profiles||[],...t.payload.data.profiles]}}}:{...e,error:t.error,loading:!1};case"DELETE_PROFILE_FROM_ASSET_GROUP":return{...e,loading:!0};case"DELETE_PROFILE_FROM_ASSET_GROUP_ERROR":return{...e,error:t.error,loading:!1};case"DELETE_PROFILE_FROM_ASSET_GROUP_SUCCESS":{var E;if(null===(E=t.payload)||void 0===E||!E.data||!t.payload.data.assetGroupId||!t.payload.data.profileId||"string"!=typeof t.payload.data.assetGroupId||"string"!=typeof t.payload.data.profileId)return{...e,error:t.error,loading:!1};const n=t.payload.data.profileId;return{...e,assetGroups:{...e.assetGroups,[t.payload.data.assetGroupId]:{...e.assetGroups[t.payload.data.assetGroupId],profiles:(e.assetGroups[t.payload.data.assetGroupId].profiles||[]).filter((e=>e.profileId!==n))}}}}case"ADD_AD_ACCOUNTS_TO_ASSET_GROUP":return{...e,loading:!0};case"ADD_AD_ACCOUNTS_TO_ASSET_GROUP_ERROR":return{...e,error:t.error,loading:!1};case"ADD_AD_ACCOUNTS_TO_ASSET_GROUP_SUCCESS":return null!==(d=t.payload)&&void 0!==d&&null!==(c=d.data)&&void 0!==c&&c.assetGroupId&&"string"==typeof t.payload.data.assetGroupId&&Array.isArray(t.payload.data.adAccounts)&&e.assetGroups[t.payload.data.assetGroupId]&&t.payload.data.adAccounts?{...e,assetGroups:{...e.assetGroups,[t.payload.data.assetGroupId]:{...e.assetGroups[t.payload.data.assetGroupId],adAccounts:[...e.assetGroups[t.payload.data.assetGroupId].adAccounts||[],...t.payload.data.adAccounts]}}}:{...e,error:t.error,loading:!1};case"DELETE_AD_ACCOUNT_FROM_ASSET_GROUP":return{...e,loading:!0};case"DELETE_AD_ACCOUNT_FROM_ASSET_GROUP_ERROR":return{...e,error:t.error,loading:!1};case"DELETE_AD_ACCOUNT_FROM_ASSET_GROUP_SUCCESS":if(null===(u=t.payload)||void 0===u||null===(_=u.data)||void 0===_||!_.assetGroupId||"string"!=typeof t.payload.data.assetGroupId||!t.payload.data.adAccountId||"string"!=typeof t.payload.data.adAccountId||!e.assetGroups[t.payload.data.assetGroupId])return{...e,error:t.error,loading:!1};const b=t.payload.data.adAccountId;return{...e,assetGroups:{...e.assetGroups,[t.payload.data.assetGroupId]:{...e.assetGroups[t.payload.data.assetGroupId],adAccounts:(e.assetGroups[t.payload.data.assetGroupId].adAccounts||[]).reduce(((e,t)=>b!==t.id?e.concat([t]):e),[])}}};case"ADD_EMPLOYEES_TO_ASSET_GROUP":return{...e,loading:!0};case"ADD_EMPLOYEES_TO_ASSET_GROUP_SUCCESS":return null!==(p=t.payload)&&void 0!==p&&null!==(h=p.data)&&void 0!==h&&h.assetGroupId&&"string"==typeof t.payload.data.assetGroupId&&Array.isArray(t.payload.data.employees)&&e.assetGroups[t.payload.data.assetGroupId]&&t.payload.data.employees?{...e,assetGroups:{...e.assetGroups,[t.payload.data.assetGroupId]:{...e.assetGroups[t.payload.data.assetGroupId],employees:[...e.assetGroups[t.payload.data.assetGroupId].employees||[],...t.payload.data.employees]}}}:{...e,error:t.error,loading:!1};case"ADD_EMPLOYEES_TO_ASSET_GROUP_ERROR":return{...e,error:t.error,loading:!1};case"DELETE_EMPLOYEE_FROM_ASSET_GROUP":return{...e,loading:!0};case"DELETE_EMPLOYEE_FROM_ASSET_GROUP_ERROR":return{...e,error:t.error,loading:!1};case"DELETE_EMPLOYEE_FROM_ASSET_GROUP_SUCCESS":if(!(null!==(m=t.payload)&&void 0!==m&&null!==(g=m.data)&&void 0!==g&&g.assetGroupId&&"string"==typeof t.payload.data.assetGroupId&&e.assetGroups[t.payload.data.assetGroupId]&&t.payload.data.assetGroupEmployee&&t.payload.data.assetGroupEmployee.id&&e.assetGroups[t.payload.data.assetGroupId].employees))return{...e,error:t.error,loading:!1};const A=t.payload.data.assetGroupEmployee.id;return{...e,assetGroups:{...e.assetGroups,[t.payload.data.assetGroupId]:{...e.assetGroups[t.payload.data.assetGroupId],employees:e.assetGroups[t.payload.data.assetGroupId].employees.reduce(((e,t)=>A!==t.id?e.concat([t]):e),[])}}};case"UPDATE_EMPLOYEE_PERMISSION_TO_ASSET_GROUP":return{...e,loading:!0};case"UPDATE_EMPLOYEE_PERMISSION_TO_ASSET_GROUP_ERROR":return{...e,error:t.error,loading:!1};case"UPDATE_EMPLOYEE_PERMISSION_ASSET_GROUP_SUCCESS":if(null===(v=t.payload)||void 0===v||null===(f=v.data)||void 0===f||!f.assetGroupId||"string"!=typeof t.payload.data.assetGroupId||!e.assetGroups[t.payload.data.assetGroupId]||!t.payload.data.assetGroupId||!t.payload.data.employeeId||!t.payload.data.newPermissions||e.assetGroups[t.payload.data.assetGroupId].employees)return{...e,error:t.error,loading:!1};const w=t.payload.data.employeeId,R=t.payload.data.newPermissions;return{...e,assetGroups:{...e.assetGroups,[t.payload.data.assetGroupId]:{...e.assetGroups[t.payload.data.assetGroupId],employees:(e.assetGroups[t.payload.data.assetGroupId].employees||[]).map((e=>e.id===w?{...e,permissions:R}:e))}}};case"CLEAR_ERROR":return{...e,error:void 0};default:return e}},w={data:[],loading:!1,error:void 0},R=(e=w,t)=>{switch(t.type){case"GET_DASHBOARD_RECENTLY_ADDED":return{...e,loading:!0};case"GET_DASHBOARD_RECENTLY_ADDED_ERROR":return{...e,error:t.error,loading:!1};case"GET_DASHBOARD_RECENTLY_ADDED_SUCCESS":return{...e,loading:!1,data:[...t.payload],error:void 0};default:return e}},C={list:null,isLoading:!1,error:null},O=(e=C,t)=>{var n,i,a;switch(t.type){case"GET_EMPLOYERS":return{...e,error:null,isLoading:!0};case"GET_EMPLOYERS_SUCCESS":if(null!==(n=t.payload)&&void 0!==n&&n.showTooltip){const n=[];for(const i of t.payload.data)e&&e.list&&!e.list.some((({id:e})=>e===i.id))?n.push({...i,showInTooltip:!0}):n.push(i);return{...e,list:n,isLoading:!1}}return{...e,list:null===(i=t.payload)||void 0===i?void 0:i.data,isLoading:!1};case"GET_EMPLOYERS_ERROR":return{...e,list:[],error:t.error,isLoading:!1};case"HIDE_EMPLOYERS_TOOLTIP":return{...e,list:null===(a=e.list)||void 0===a?void 0:a.map((({showInTooltip:e,...t})=>t))};default:return e}};var N=n(151725),D=n(22359),k=n(707069);const L={data:{},loading:!1,error:null,dateRange:{startDate:(0,D.Z)((0,k.Z)((0,N.Z)(),7)).toISOString(),endDate:(0,D.Z)((0,k.Z)((0,N.Z)(),1)).toISOString()}},j=(e=L,t)=>{var n,i;switch(t.type){case"GET_HISTORY":return{...e,loading:!0,error:null};case"GET_HISTORY_SUCCESS":return{...e,data:{...e.data,...null!==(n=null===(i=t.payload)||void 0===i?void 0:i.data)&&void 0!==n?n:{}},loading:!1};case"GET_HISTORY_ERROR":return{...e,loading:!1,error:t.error};case"SET_HISTORY_DATE_RANGE":return{...e,dateRange:t.dateRange};default:return e}},U={invites:{},requests:{},loading:!1,error:void 0},M=(e=U,t)=>{var n;const{updateDataOnly:i,type:a,...r}=null!==(n=t.payload)&&void 0!==n?n:{};switch(t.type){case"GET_INVITE_DATA":return{...e,loading:!0};case"GET_INVITE_DATA_ERROR":return{...e,loading:!1,error:t.error};case"GET_INVITE_DATA_SUCCESS":return{...e,invites:{...e.invites,[a]:{...r,...e.invites[a]}},loading:!1};case"GET_REQUEST_DATA":return{...e,loading:!0};case"GET_REQUEST_DATA_ERROR":return{...e,loading:!1,error:t.error};case"GET_REQUEST_DATA_SUCCESS":return{...e,requests:{...e.requests,[a]:{...r,...e.requests[a]}},loading:!1};case"CLEAR_PARTNER_INVITE_DATA":return{...e,invites:{...e.invites,partners:{}}};case"CLEAR_PARTNER_REQUEST_DATA":return{...e,requests:{...e.requests,partners:{}}};default:return e}},F={invites:{people:{},partner:{}},requests:{partner:{}},type:"PENDING",loading:!1,error:void 0},B=(e=F,t)=>{var n;const{type:i,data:a,id:r}=null!==(n=t.payload)&&void 0!==n?n:{};switch(t.type){case"GET_PEOPLE_INVITES":case"GET_PARTNERS_INVITES":case"GET_PARTNERS_REQUESTS":case"CREATE_PARTNER_INVITE":case"CREATE_PARTNER_REQUEST":return{...e,loading:!0};case"GET_PEOPLE_INVITES_ERROR":case"GET_PARTNERS_INVITES_ERROR":case"GET_PARTNERS_REQUESTS_ERROR":case"CREATE_PARTNER_INVITE_ERROR":case"CREATE_PARTNER_REQUEST_ERROR":return{...e,error:t.error,loading:!1};case"CREATE_PARTNER_INVITE_SUCCESS":case"CREATE_PARTNER_REQUEST_SUCCESS":return{...e,loading:!1,error:void 0};case"GET_PEOPLE_INVITES_SUCCESS":case"GET_PARTNERS_INVITES_SUCCESS":return{...e,loading:!1,invites:{...e.invites,[i]:{...e.invites[i],...a}}};case"GET_PARTNERS_REQUESTS_SUCCESS":return{...e,loading:!1,requests:{...e.requests,[i]:{...e.requests[i],...a}}};case"CLEAR_ERROR":return{...e,error:void 0};case"CLEAR_INVITE":if(e.invites.partner){const{[r]:t,...n}=e.invites.partner;return{...e,invites:{...e.invites,partner:{...n}}}}return e;case"CLEAR_REQUEST":if(e.requests.partner){const{[r]:t,...n}=e.requests.partner;return{...e,requests:{...e.requests,partner:{...n}}}}return e;default:return e}},G={data:{},loading:!1,error:null,adAccountSearchString:"",dateRange:{startDate:(0,D.Z)((0,k.Z)((0,N.Z)(),7)).toISOString(),endDate:(0,D.Z)((0,k.Z)((0,N.Z)(),1)).toISOString()}},z=(e=G,t)=>{var n,i,a,r,o;switch(t.type){case"GET_BILLING_INVOICES":return{...e,loading:!0,error:null};case"GET_BILLING_INVOICES_SUCCESS":return{...e,data:{...e.data,...null!==(n=null===(i=t.payload)||void 0===i?void 0:i.data)&&void 0!==n?n:G.data},loading:!1};case"GET_BILLING_INVOICES_ERROR":return{...e,loading:!1,error:t.error};case"SET_BILLING_INVOICES_FILTERS":return{...e,dateRange:null===(a=t.payload)||void 0===a?void 0:a.dateRange,adAccountSearchString:null!==(r=null===(o=t.payload)||void 0===o?void 0:o.adAccountSearchString)&&void 0!==r?r:G.adAccountSearchString};default:return e}},H={data:{},loading:!1,error:void 0},Z=(e=H,t)=>{var n,i;switch(t.type){case"GET_MANAGED_CLIENTS":return{...e,loading:!0};case"GET_MANAGED_CLIENTS_SUCCESS":return{...e,loading:!1,data:{...e.data,...null!==(n=null===(i=t.payload)||void 0===i?void 0:i.data)&&void 0!==n?n:Object.freeze({})},error:void 0};case"GET_MANAGED_CLIENTS_ERROR":return{...e,error:t.error,loading:!1};default:return e}},V={users:{collapse:!1},accounts:{collapse:!1},isLoading:!1},W=(e=V,t)=>{switch(t.type){case"TOGGLE_USERS":return{...e,users:{collapse:!e.users.collapse},isLoading:!1};case"TOGGLE_ACCOUNTS":return{...e,accounts:{collapse:!e.accounts.collapse},isLoading:!1};default:return e}},K={data:{},loading:!1,error:void 0},Y=(e=K,t)=>{var n,i,a;switch(t.type){case"GET_PARTNER":case"UPDATE_PARTNERS":case"DELETE_PARTNERS":case"GET_PARTNERS":case"GET_AD_ACCOUNTS_PARTNERS":case"GET_PROFILE_DETAIL_PARTNERS":return{...e,loading:!0};case"GET_PARTNER_ERROR":case"UPDATE_PARTNERS_ERROR":case"DELETE_PARTNERS_ERROR":case"GET_PARTNERS_ERROR":case"GET_AD_ACCOUNTS_PARTNERS_ERROR":case"GET_PROFILE_DETAIL_PARTNERS_ERROR":return{...e,error:t.error,loading:!1};case"UPDATE_PARTNERS_SUCCESS":case"DELETE_PARTNERS_SUCCESS":return{...e,loading:!1,error:void 0};case"GET_PARTNER_SUCCESS":case"GET_PARTNERS_SUCCESS":case"GET_AD_ACCOUNTS_PARTNERS_SUCCESS":case"GET_PROFILE_DETAIL_PARTNERS_SUCCESS":return{...e,loading:!1,data:{...e.data,...null!==(n=null===(i=t.payload)||void 0===i?void 0:i.data)&&void 0!==n?n:{}}};case"CLEAR_ERROR":return{...e,error:void 0};case"UPDATE_PARTNERS_TOTAL_COUNT":return{...e,loading:!1,totalCount:null===(a=t.payload)||void 0===a?void 0:a.totalCount};default:return e}},q={people:{},partner:{},type:["PENDING","EXPIRED"],loading:!1,error:void 0},$=(e=q,t)=>{var n,i,a,r;switch(t.type){case"GET_PENDING_PEOPLE":case"GET_PENDING_PARTNERS":return{...e,loading:!0};case"GET_PENDING_PEOPLE_ERROR":case"GET_PENDING_PARTNERS_ERROR":return{...e,error:t.error,loading:!1};case"GET_PENDING_PEOPLE_SUCCESS":return{...e,loading:!1,people:{...e.people,...null!==(n=t.payload.data)&&void 0!==n?n:{}},type:null!==(i=t.payload.inviteStatus)&&void 0!==i?i:["PENDING","EXPIRED"]};case"GET_PENDING_PARTNERS_SUCCESS":return{...e,loading:!1,partner:{...e.partner,...null!==(a=t.payload.data)&&void 0!==a?a:{}},type:null!==(r=t.payload.inviteStatus)&&void 0!==r?r:["PENDING","EXPIRED"]};case"CLEAR_PENDING_DATA":return{...e,loading:!1,people:{},partner:{}};case"CLEAR_ERROR":return{...e,error:void 0};default:return e}},X={data:{},loading:!1,error:void 0},J=(e=X,t)=>{var n,i,a;switch(t.type){case"GET_PERSON":case"DELETE_PEOPLE":case"GET_PEOPLE":case"GET_AD_ACCOUNTS_PEOPLE":case"GET_PROFILE_DETAIL_PEOPLE":case"CREATE_PEOPLE_INVITE":return{...e,loading:!0};case"GET_PERSON_ERROR":case"DELETE_PEOPLE_ERROR":case"GET_PEOPLE_ERROR":case"GET_AD_ACCOUNTS_PEOPLE_ERROR":case"GET_PROFILE_DETAIL_PEOPLE_ERROR":case"CREATE_PEOPLE_INVITE_ERROR":return{...e,error:t.error,loading:!1};case"DELETE_PEOPLE_SUCCESS":case"CREATE_PEOPLE_INVITE_SUCCESS":return{...e,loading:!1,error:void 0};case"GET_PERSON_SUCCESS":case"GET_PEOPLE_SUCCESS":case"GET_AD_ACCOUNTS_PEOPLE_SUCCESS":case"GET_PROFILE_DETAIL_PEOPLE_SUCCESS":return{...e,loading:!1,data:{...e.data,...null!==(n=null===(i=t.payload)||void 0===i?void 0:i.data)&&void 0!==n?n:{}},error:void 0};case"CLEAR_ERROR":return{...e,error:void 0};case"UPDATE_PEOPLE_TOTAL_COUNT":return{...e,loading:!1,totalCount:null===(a=t.payload)||void 0===a?void 0:a.totalCount};default:return e}},Q={data:{},loading:!1,error:null},ee=(e=Q,t)=>{var n,i,a;switch(t.type){case"GET_ALL_PROFILES":case"GET_DASHBOARD_PROFILES":case"GET_PROFILE_META":case"GET_PERSON_PROFILES":return{...e,loading:!0,error:null};case"GET_ALL_PROFILES_ERROR":case"GET_DASHBOARD_PROFILES_ERROR":case"GET_PERSON_PROFILES_ERROR":case"GET_PROFILE_META_ERROR":return{...e,loading:!1,error:t.error};case"GET_ALL_PROFILES_SUCCESS":case"GET_PROFILE_META_SUCCESS":case"GET_PERSON_PROFILES_SUCCESS":return{...e,loading:!1,error:null,data:{...e.data,...null===(n=t.payload)||void 0===n?void 0:n.data}};case"GET_DASHBOARD_PROFILES_SUCCESS":return{...e,loading:!1,error:null,data:{...e.data,...null===(i=t.payload)||void 0===i?void 0:i.data},dashboardVisibleData:null===(a=t.payload)||void 0===a?void 0:a.ids};default:return e}},te={visibleData:[],page:1,totalCount:0,limit:10,sortDirection:"ASCENDING",sortBy:void 0,searchBy:void 0,searchTerm:""},ne=(e=te,t)=>{switch(t.type){case"GET_PEOPLE_SUCCESS":case"GET_PEOPLE_INVITES_SUCCESS":case"GET_PARTNERS_INVITES_SUCCESS":case"GET_PARTNERS_REQUESTS_SUCCESS":case"GET_PARTNERS_SUCCESS":case"GET_MULTIPLE_AD_ACCOUNTS_SUCCESS":case"GET_PERSON_ASSETS_SUCCESS":case"GET_PARTNER_ASSETS_SUCCESS":case"GET_PERSON_PROFILES_SUCCESS":case"GET_AD_ACCOUNTS_PARTNERS_SUCCESS":case"GET_AD_ACCOUNTS_PEOPLE_SUCCESS":case"GET_PROFILE_DETAIL_PEOPLE_SUCCESS":case"GET_PROFILE_DETAIL_PARTNERS_SUCCESS":case"GET_ALL_PROFILES_SUCCESS":case"GET_PENDING_PEOPLE_SUCCESS":case"GET_PENDING_PARTNERS_SUCCESS":case"GET_AOAA_REQUESTS_SUCCESS":case"GET_HISTORY_SUCCESS":case"GET_MANAGED_CLIENTS_SUCCESS":case"GET_BILLING_INVOICES_SUCCESS":{var n;const{updateDataOnly:i,data:a,ids:r,...o}=null!==(n=t.payload)&&void 0!==n?n:{};return i?e:{...e,visibleData:r,...o}}case"SET_ROUTER_PARAMS":return te;default:return e}},ie={loading:!1,error:void 0,data:[]},ae=(e=ie,t)=>{var n,i;switch(t.type){case"GET_VIEWER_INVITES":return{...e,loading:!0};case"GET_VIEWER_INVITES_ERROR":return{...e,loading:!1,error:t.error};case"GET_VIEWER_INVITES_SUCCESS":return{...e,loading:!1,data:null!==(n=null===(i=t.payload)||void 0===i?void 0:i.data)&&void 0!==n?n:[]};default:return e}};var re=n(14890);const oe=(0,re.combineReducers)({people:J,invitesOrRequests:B,partners:Y,employers:O,adAccounts:I,actingUser:S,table:ne,history:j,inviteOrRequestData:M,dashboardRecentlyAdded:R,pending:$,aoaaRequests:P,assetGroups:A,profiles:ee,viewerInvites:ae,navigation:W,managedClients:Z,invoiceManagement:z}),se={currentStep:{index:0,canProceed:!1},businessGoals:[],businessName:"",businessVertical:"",businessVerticalOther:"",collageVerticalFirstSet:"DEFAULT",collageVerticalSecondSet:"DEFAULT",collageImagesOnScreen:"firstSet",numberEmployees:"",hasWebsite:"",website:"",country:"",locale:"",advertisingIntent:null,accountType:"",ecommercePlatforms:[],firstName:"",lastName:"",fullName:"",email:"",countryCode:"",phoneNumber:"",worksWithAgency:null,leadId:"",stepperCount:1,whatsAppConsent:!1,calendlyUpsellEligible:!1,shouldShowCalendlyModal:!1,inAdCreditsCalendlyExp:!1};function le(e=se,t){switch(t.type){case"UPDATE_BIZ_NUX_FIELD":return{...e,[t.field]:t.value,currentStep:{...e.currentStep}};case"INCREMENT_BIZ_NUX_STEP":return{...e,currentStep:{...e.currentStep,index:e.currentStep.index+t.increment}};case"DECREMENT_BIZ_NUX_STEP":return{...e,currentStep:{...e.currentStep,index:e.currentStep.index-t.decrement}};case"UPDATE_BIZ_NUX_CAN_PROCEED":return{...e,currentStep:{...e.currentStep,canProceed:t.value}};default:return e}}const de={experience:void 0,newPin:void 0,originalPin:void 0,shouldOpenModal:!1},ce=(e=de,t)=>{if("OPEN_CHANGE_MODAL"===t.type){const{experience:n,newPin:i,originalPin:a,showChangeBoardModal:r}=t.payload;if(i)return{...e,experience:n,newPin:i,originalPin:a,shouldOpenModal:r}}else{if("CLOSE_CHANGE_MODAL"===t.type){const{showChangeBoardModal:n}=t.payload;return{...e,shouldOpenModal:n}}if("CLEAR_BOARD_EDU_EXPERIENCE"===t.type){var n;const{experience:i}=t.payload;if((null===(n=e.experience)||void 0===n?void 0:n.id)===i.id)return{...e,experience:void 0}}}return e},ue=(0,o.Z)("contactrequests",((e={},t)=>{switch(t.type){case c.zP:const{payload:{normalizedResponse:n,resource:i}}=t;return"ContactRequestsResource"===i&&n?{...n.entities.contactrequests}:e;case"UPDATE_CONTACT_REQUEST_STATUS":const{contactRequestId:a,hasDeclined:r,hasBlocked:o}=t.payload;return{...e,[a]:{...e[a],hasDeclined:r,hasBlocked:o}};case"REMOVE_CONTACT_REQUESTS":const{contactRequestIds:s}=t.payload;return Object.keys(e).reduce(((t,n)=>(s.includes(n)||(t[n]=e[n]),t)),{});default:return e}})),_e={};function pe(e=_e,t){if("SEARCH_QUERY_STARTED"===t.type){const{query:n}=t.payload;if(!e[n]||"valid"===e[n].status){const t=e[n]&&e[n].pinIds||[];return{...e,[n]:{...e[n],status:"valid",pinIds:t}}}}else if("SEARCH_PIN_CLOSEUP_VIEWED"===t.type){const{pinId:n,query:i}=t.payload;if(e[i]&&"valid"===e[i].status){const t=e[i].pinIds||[];return{...e,[i]:{...e[i],pinIds:t.concat(n)}}}}else if("SEARCH_QUERY_INVALIDATED"===t.type)return{...e,[t.payload.query]:{status:"invalid"}};return e}const he=e=>e||[],me={BaseSearchResource:e=>e?e.results:[],BoardFeedResource:he,BoardSectionPinsResource:he,BoardContentRecommendationResource:he,TodayArticleFeedResource:e=>Array.isArray(e)?e.reduce(((e,t)=>{if("story"===t.type)if(t.user){const n={...t},{user:i}=n;n.user=i.id,e.push(n)}else e.push(t);return e}),[]):e||[],TodayTabResource:he},ge=(e={},t)=>{if(t.type===c.zP||t.type===c.aW){const{resource:n}=t.payload,i=t.payload.response.resource_response.data;if(n in me){const t=me[n](i)||[],a={...e};return t.forEach((e=>{"story"===e.type&&(a[e.id]=e)})),a}}return e};var ve=n(618446),fe=n.n(ve),ye=n(682492),Ee=n.n(ye);const Se=(e,t)=>{const n={...Ee()({},e,t)};return fe()(e,n)?e:n},Te={};const Ie=function(e=Te,t){if(t.type===c.zP||t.type===c.aW){const{resource:n}=t.payload,i=t.payload.response.resource_response.data;if("AggregatedActivityFeedResource"===n||"DidItUserFeedResource"===n){const t=(i||[]).reduce(((t,n)=>(t[n.id]=Se(e[n.id],n),t)),{});return{...e,...t}}if(("DidItActivityResource"===n||"DidItUserPinActivityResource"===n)&&i){const t=i;return{...e,[t.id]:Se(e[t.id],t)}}if("NewsHubDetailsResource"===n&&i&&i.length>0&&i[0].content_items){const t={};return i.forEach((e=>{e.content_items.forEach((e=>{"userdiditdata"===(e.content_object&&e.content_object.type)&&(t[e.content_object.id]=e.content_object)}))})),{...e,...t}}if("UnifiedCommentsResource"===n&&i&&i.length>0){const t=i.filter((e=>"userdiditdata"===e.type)).reduce(((t,n)=>(t[n.id]=Se(e[n.id],n),t)),{});return{...e,...t}}if("UnifiedCommentsPreviewResource"===n&&i&&i.length>0){const t=i[0].user_did_it_data,n=t?{[t.id]:Se(e[t.id],t)}:{};return{...e,...n}}}else{if("USER_DID_IT_DATA_CREATE"===t.type){const{payload:{user_did_it_data:n}}=t;return{...e,[n.id]:n}}if("USER_DID_IT_DATA_UPDATE"===t.type){const{payload:{user_did_it_data:n}}=t;return{...e,[n.id]:n}}if("USER_DID_IT_DATA_DELETE"===t.type){const{payload:{id:n}}=t,i={...e};return delete i[n],i}if("USER_DID_IT_DATA_UPDATE_COMMENT_COUNT"===t.type){var n;const{payload:{id:i,increment:a}}=t,r={comment_count:(null!==(n=e[i].comment_count)&&void 0!==n?n:0)+a};return{...e,[i]:Se(e[i],r)}}if("USER_DID_IT_DATA_LIKE_TOGGLED"===t.type){const{payload:{id:n,liked_by_me:i}}=t;if(e[n].like_count||0===e[n].like_count){const t=e[n].like_count,a=i?t+1:t-1;return{...e,[n]:Se(e[n],{liked_by_me:i,like_count:a})}}}else if("USER_DID_IT_DATA_HELPFUL_TOGGLED"===t.type){const{payload:{id:n,marked_helpful_by_me:i}}=t,a=e[n],r=a.helpful_count||0,o=i?r+1:r-1,s={...a,marked_helpful_by_me:i,helpful_count:o};return{...e,[n]:s}}}return e},xe=(e={},t)=>{if(t.type===c.zP||t.type===c.aW){const{payload:{response:n,resource:i}}=t;if("ExploreTopicsResource"===i){const t=(n.resource_response.data||[]).filter((e=>"commerce"!==e.category_key));return{...e,sections:t}}return e}return e};var Pe=n(422946);const be=(e={},t)=>{if("SET_FLASHLIGHT_CROP_SOURCE"===t.type){const{payload:{cropSource:n}}=t;return{...e,cropSource:n}}return e};var Ae=n(959698);const we={adsNotifications:{data:[],error:null,isLoading:!1,isLoaded:!1,lastCallParams:null}};function Re(e=we,t){switch(t.type){case Ae.pl:case Ae.as:case Ae.Nq:return{...e,adsNotifications:{...e.adsNotifications,...t.payload}};default:return e}}const Ce=(e={activeTabBoardId:"",activeTabIndex:0},t)=>{if("SET_ACTIVE_HOMEFEED_TAB"===t.type){const{payload:{boardId:n,index:i}}=t;return{...e,activeTabBoardId:n,activeTabIndex:i}}return e};function Oe(e=Object.freeze({}),t){switch(t.type){case"SHOW_TOAST_CONTACT_REQUEST_UNDO":return{...e,showToastForContactRequest:t.payload.contactRequestId};case"SHOW_BLOCK_UNBLOCK_MODAL_CONTACT_REQUEST":const n={contactRequestId:t.payload.contactRequestId,modalAction:t.payload.modalAction};return{...e,blockModalContactRequest:n};default:return e}}var Ne=n(871144);function De(e={},t){if(t.type===c.zP||t.type===c.aW){const{resource:n}=t.payload,i=t.payload.response.resource_response.data;if("BaseSearchResource"===n){const t=(i||{}).results||[],n={...e};return t.forEach((e=>{"module"===e.type&&(n[e.id]=e)})),n}}return e}function ke(e=null,t){if("MOST_RECENT_BOARD"===t.type){const{id:n,name:i,url:a}=t.payload;return{...e,id:n,name:i,url:a}}return e}const Le=(0,o.Z)("notifications",((e={},t)=>{if(t.type===c.zP||t.type===c.aW){const{normalizedResponse:e}=t.payload;e&&e.entities&&e.entities.notifications&&e.entities.pins&&(({notifications:e,pins:t})=>{Object.keys(e).forEach((n=>{const i=e[n];i.content_items&&i.content_items.forEach((e=>{if(e.content_object){const{id:n,schema:i}=e.content_object;"pin"===i&&(e.trackingParams=t[n]?t[n].tracking_params:void 0)}}))}))})(e.entities)}return e})),je={dirtyFields:[],description:"",link:"",title:"",board:null,descriptionError:null,linkError:null,titleError:null},Ue=(e=je,t)=>{switch(t.type){case"BATCH_PIN_EDIT_MODE_SET_DESCRIPTION":{const{description:n}=t.payload;return{...e,description:n}}case"BATCH_PIN_EDIT_MODE_SET_LINK":{const{link:n}=t.payload;return{...e,link:n}}case"BATCH_PIN_EDIT_MODE_SET_TITLE":{const{title:n}=t.payload;return{...e,title:n}}case"BATCH_PIN_EDIT_MODE_SET_BOARD":{const{board:n}=t.payload;return{...e,board:{...n}}}case"BATCH_PIN_EDIT_MODE_ADD_DIRTY_FIELD":{const{field:n}=t.payload;return{...e,dirtyFields:[...e.dirtyFields,n]}}case"BATCH_PIN_EDIT_MODE_SET_DESCRIPTION_ERROR":{const{descriptionError:n}=t.payload;return{...e,descriptionError:n}}case"BATCH_PIN_EDIT_MODE_SET_LINK_ERROR":{const{linkError:n}=t.payload;return{...e,linkError:n}}case"BATCH_PIN_EDIT_MODE_SET_TITLE_ERROR":{const{titleError:n}=t.payload;return{...e,titleError:n}}case"BATCH_PIN_EDIT_MODE_RESET_ALL_FIELDS":return{...e,...je};default:return e}};var Me=n(299295);const Fe={altText:null,altTextError:null,apiError:null,apiErrorCode:null,boardError:null,interestTags:[],isAdIneligible:!1,isCommentsAllowed:!0,isShoppingRecAllowed:!0,lastEditedTime:null,lastSavedTime:null,mediaError:null,mode:"create",pinId:null,pinItemIds:[],pinItemIndex:-1,pinIsAdsOnly:!1,pinItemShareable:!0,publishingStatus:"notAttempted",publishOption:"publish-immediately",scheduledPin:null,scheduledDate:null,scheduledDateError:null,scheduledTime:null,scheduledTimeError:null,selectedItem:null,status:"created",storyPin:null,storyPinDraftId:null,storyPinMetadata:null,storyPinUploadManager:null,storyPinSelectedPinItemIds:[],type:"single",uploadStartTime:null,urlCreationSource:null,view:"upload",websiteLink:"",websiteLinkError:null,websiteMedia:[],websiteDefaultImageUrl:null,createMethod:null},Be=(e=Fe,t)=>{switch(t.type){case"PIN_BUILDER_ADD_PIN_DRAFT":case"PIN_DRAFT_UPDATE_DATA":{const{pinDraft:n}=t.payload;return{...e,...n}}case"PIN_BUILDER_REMOVE_UPLOAD_DRAFT_FLAG":return{...e,isUploadDraft:void 0};case"PIN_DRAFT_ADD_PIN_ITEM":{const{pinItemId:n,options:i}=t.payload,a=[...e.pinItemIds,n];return{...e,pinItemIds:[...e.pinItemIds,n],pinItemIndex:i&&i.saveIndex?e.pinItemIndex:e.pinItemIds.length,type:a.length>1&&"story"!==e.type?"carousel":e.type}}case"PIN_DRAFT_ADD_STORY_PIN_ITEM":{const{pinItemId:n,options:i}=t.payload,a=[...e.pinItemIds,n],r=i&&i.saveIndex?e.pinItemIndex:e.pinItemIds.length;return{...e,pinItemIds:a,pinItemIndex:r,storyPinSelectedPinItemIds:[a[r]]}}case"PIN_DRAFT_REMOVE_PIN_ITEM":{const{pinItemId:n}=t.payload,i=e.pinItemIds.findIndex((e=>e===n)),a=e.pinItemIds.filter((e=>e!==n)),r=e.pinItemIndex<=i?Math.min(e.pinItemIndex,a.length-1):e.pinItemIndex-1,o=r>=0?[a[r]]:[];return{...e,pinItemIds:a,pinItemIndex:r,storyPinSelectedPinItemIds:o,type:a.length<=1&&"story"!==e.type?"single":e.type}}case"PIN_DRAFT_SET_PIN_ID":{const{pinId:n}=t.payload;return{...e,pinId:n}}case"PIN_DRAFT_SET_ADS_ONLY_STATUS":{const{pinIsAdsOnly:n}=t.payload;return{...e,pinIsAdsOnly:n}}case"PIN_DRAFT_SET_SCHEDULED_PIN":{const{scheduledPin:n}=t.payload;return{...e,scheduledPin:n}}case"PIN_DRAFT_SET_STORY_PIN":{const{storyPin:n}=t.payload;return{...e,storyPin:n}}case"PIN_DRAFT_SET_STORY_PIN_DRAFT_ID":{const{storyPinDraftId:n}=t.payload;return{...e,storyPinDraftId:n}}case"PIN_DRAFT_UPDATE_STORY_PIN_METADATA":{const{storyPinMetadata:n}=t.payload;return{...e,storyPinMetadata:{...e.storyPinMetadata,...n}}}case"PIN_DRAFT_SET_STORY_PIN_SELECTED_PIN_ITEM_IDS":{const{pinItemIds:n}=t.payload;return{...e,storyPinSelectedPinItemIds:n}}case"PIN_DRAFT_RESET_STORY_PIN_SELECTED_PIN_ITEM_IDS":return{...e,storyPinSelectedPinItemIds:[e.pinItemIds[e.pinItemIndex]]};case"PIN_DRAFT_SET_IS_COMMENTS_ALLOWED":{const{isCommentsAllowed:n}=t.payload;return{...e,isCommentsAllowed:n}}case"PIN_DRAFT_SET_IS_SHOPPING_REC_ALLOWED":{const{isShoppingRecAllowed:n}=t.payload;return{...e,isShoppingRecAllowed:n}}case"PIN_DRAFT_SET_PIN_ITEM_INDEX":{const{pinItemIndex:n}=t.payload;return{...e,pinItemIndex:n}}case"PIN_DRAFT_SET_PIN_ITEM_SHAREABLE":{const{pinItemShareable:n}=t.payload;return{...e,pinItemShareable:n}}case"PIN_DRAFT_SET_URL_CREATION_SOURCE":{const{urlCreationSource:n}=t.payload;return{...e,urlCreationSource:n}}case"PIN_DRAFT_SET_VIEW":{const{view:n}=t.payload;return{...e,view:n}}case"PIN_DRAFT_SET_CREATE_METHOD":{const{createMethod:n}=t.payload;return{...e,createMethod:n}}case"PIN_DRAFT_SET_IS_AD_INELIGIBLE":{const{isAdIneligible:n}=t.payload;return{...e,isAdIneligible:n}}case"PIN_DRAFT_SET_PUBLISHING_STATUS":{const{publishingStatus:n}=t.payload;return{...e,publishingStatus:n}}case"PIN_DRAFT_SET_PUBLISH_OPTION":{const{publishOption:n}=t.payload;return{...e,publishOption:n}}case"PIN_DRAFT_SET_STATUS":{const{status:n}=t.payload;return{...e,status:n}}case"PIN_DRAFT_SET_SCHEDULED_DATE":{const{scheduledDate:n}=t.payload;return{...e,scheduledDate:n}}case"PIN_DRAFT_SET_SCHEDULED_DATE_ERROR":{const{scheduledDateError:n}=t.payload;return{...e,scheduledDateError:n}}case"PIN_DRAFT_SET_SCHEDULED_TIME":{const{scheduledTime:n}=t.payload;return{...e,scheduledTime:n}}case"PIN_DRAFT_SET_SCHEDULED_TIME_ERROR":{const{scheduledTimeError:n}=t.payload;return{...e,scheduledTimeError:n}}case"PIN_DRAFT_SET_MEDIA_ERROR":{const{mediaError:n}=t.payload;return{...e,mediaError:n}}case"PIN_DRAFT_SET_LAST_EDITED_TIME":{const{lastEditedTime:n}=t.payload;return{...e,lastEditedTime:n}}case"PIN_DRAFT_SET_LAST_SAVED_TIME":{const{lastSavedTime:n}=t.payload;return{...e,lastSavedTime:n}}case"PIN_DRAFT_SET_WEBSITE_LINK":{const{websiteLink:n,error:i,websiteDefaultImageUrl:a}=t.payload;return{...e,websiteLink:n,websiteLinkError:i,websiteDefaultImageUrl:a}}case"PIN_DRAFT_SET_SELECTED_ITEM":const{selectedItem:n}=t.payload;return{...e,selectedItem:{...n},boardError:null};case"PIN_DRAFT_SET_UPLOAD_START_TIME":const{uploadStartTime:i}=t.payload;return{...e,uploadStartTime:i};case"PIN_DRAFT_SET_BOARD_ERROR":const{boardError:a}=t.payload;return{...e,boardError:a};case"PIN_DRAFT_ADD_WEBSITE_MEDIA":{const{media:n}=t.payload;return{...e,websiteMedia:[...e.websiteMedia,n]}}case"PIN_DRAFT_REMOVE_WEBSITE_MEDIA":{const{mediaUrl:n}=t.payload;return{...e,websiteMedia:e.websiteMedia.filter((e=>e.src!==n))}}case"PIN_DRAFT_CLEAR_WEBSITE_MEDIA":return{...e,websiteMedia:[]};case"PIN_DRAFT_SET_PIN_ITEM_IDS":return{...e,pinItemIds:t.payload.pinItemIds};case"PIN_DRAFT_SET_API_ERROR":return{...e,apiError:t.payload.apiError,apiErrorCode:t.payload.apiErrorCode};case"PIN_DRAFT_ADD_INTEREST_TAG":{const{tag:n}=t.payload;return{...e,interestTags:[...e.interestTags,n]}}case"PIN_DRAFT_REMOVE_INTEREST_TAG":{const{id:n}=t.payload;return{...e,interestTags:[...e.interestTags.filter((e=>e.id!==n))]}}case"PIN_DRAFT_CLEAR_INTEREST_TAGS":return{...e,interestTags:[]};case"PIN_DRAFT_SET_STORY_PIN_UPLOAD_MANAGER":{const{uploadManager:n}=t.payload;return{...e,storyPinUploadManager:n}}case"PIN_DRAFT_SET_ALT_TEXT":{const{altText:n}=t.payload;return{...e,altText:n}}case"PIN_DRAFT_SET_ALT_TEXT_ERROR":{const{altTextError:n}=t.payload;return{...e,altTextError:n}}case"STORY_PIN_ITEM_ADD_BLOCK":case"STORY_PIN_ITEM_BLOCK_UPDATE_EDITS":case"STORY_PIN_ITEM_BLOCK_UPDATE_MEDIA":case"STORY_PIN_ITEM_REMOVE_BLOCK":case"STORY_PIN_ITEM_REORDER_BLOCKS":case"STORY_PIN_ITEM_SET_BACKGROUND_COLOR":case"STORY_PIN_ITEM_SET_LAYOUT":case"STORY_PIN_ITEM_UPDATE_BLOCK":case"STORY_PIN_ITEM_UPDATE_DATA":return{...e,lastEditedTime:new Date,status:Me.qm.includes(e.status)?e.status:"edited"};default:return e}},Ge=(e={},t)=>{switch(t.type){case"PIN_BUILDER_DELETE_PIN_DRAFT":{const{pinDraftId:n}=t.payload,i={...e};return delete i[n],i}case"PIN_BUILDER_ADD_PIN_DRAFT":case"PIN_BUILDER_REMOVE_UPLOAD_DRAFT_FLAG":case"PIN_DRAFT_ADD_PIN_ITEM":case"PIN_DRAFT_ADD_STORY_PIN_ITEM":case"PIN_DRAFT_ADD_WEBSITE_MEDIA":case"PIN_DRAFT_CLEAR_WEBSITE_MEDIA":case"PIN_DRAFT_REMOVE_PIN_ITEM":case"PIN_DRAFT_REMOVE_WEBSITE_MEDIA":case"PIN_DRAFT_RESET_STORY_PIN_SELECTED_PIN_ITEM_IDS":case"PIN_DRAFT_SET_API_ERROR":case"PIN_DRAFT_SET_BOARD_ERROR":case"PIN_DRAFT_SET_INPUT_VIEW":case"PIN_DRAFT_SET_IS_AD_INELIGIBLE":case"PIN_DRAFT_SET_IS_COMMENTS_ALLOWED":case"PIN_DRAFT_SET_IS_SHOPPING_REC_ALLOWED":case"PIN_DRAFT_SET_LAST_EDITED_TIME":case"PIN_DRAFT_SET_LAST_SAVED_TIME":case"PIN_DRAFT_SET_MEDIA_ERROR":case"PIN_DRAFT_SET_MEDIA_VIEW":case"PIN_DRAFT_SET_PIN_ID":case"PIN_DRAFT_SET_PIN_ITEM_IDS":case"PIN_DRAFT_SET_PIN_ITEM_INDEX":case"PIN_DRAFT_SET_PIN_ITEM_SHAREABLE":case"PIN_DRAFT_SET_PUBLISHING_STATUS":case"PIN_DRAFT_SET_PUBLISH_OPTION":case"PIN_DRAFT_SET_SCHEDULED_DATE_ERROR":case"PIN_DRAFT_SET_SCHEDULED_DATE":case"PIN_DRAFT_SET_SCHEDULED_PIN":case"PIN_DRAFT_SET_SCHEDULED_TIME_ERROR":case"PIN_DRAFT_SET_SCHEDULED_TIME":case"PIN_DRAFT_SET_SELECTED_ITEM":case"PIN_DRAFT_SET_STATUS":case"PIN_DRAFT_SET_STORY_PIN":case"PIN_DRAFT_SET_STORY_PIN_DRAFT_ID":case"PIN_DRAFT_SET_STORY_PIN_SELECTED_PIN_ITEM_IDS":case"PIN_DRAFT_SET_UPLOAD_START_TIME":case"PIN_DRAFT_SET_URL_CREATION_SOURCE":case"PIN_DRAFT_SET_VIEW":case"PIN_DRAFT_SET_CREATE_METHOD":case"PIN_DRAFT_SET_WEBSITE_LINK":case"PIN_DRAFT_UPDATE_DATA":case"PIN_DRAFT_UPDATE_STORY_PIN_METADATA":case"PIN_DRAFT_ADD_INTEREST_TAG":case"PIN_DRAFT_REMOVE_INTEREST_TAG":case"PIN_DRAFT_CLEAR_INTEREST_TAGS":case"PIN_DRAFT_SET_STORY_PIN_UPLOAD_MANAGER":case"PIN_DRAFT_SET_ALT_TEXT":case"PIN_DRAFT_SET_ALT_TEXT_ERROR":case"PIN_DRAFT_SET_ADS_ONLY_STATUS":case"STORY_PIN_ITEM_ADD_BLOCK":case"STORY_PIN_ITEM_BLOCK_UPDATE_EDITS":case"STORY_PIN_ITEM_BLOCK_UPDATE_MEDIA":case"STORY_PIN_ITEM_REMOVE_BLOCK":case"STORY_PIN_ITEM_REORDER_BLOCKS":case"STORY_PIN_ITEM_SET_BACKGROUND_COLOR":case"STORY_PIN_ITEM_SET_LAYOUT":case"STORY_PIN_ITEM_UPDATE_BLOCK":case"STORY_PIN_ITEM_UPDATE_DATA":{const{pinDraftId:n}=t.payload;return{...e,[n]:Be(e[n],t)}}case"PIN_DRAFT_CLEAR_STATE":return{};default:return e}};var ze=n(20064);const He=(e={},t)=>{switch(t.type){case"PIN_DRAFT_ADD_PIN_ITEM":case"PIN_ITEM_ADD_PIN_TAG":case"PIN_ITEM_REMOVE_PIN_TAG":case"PIN_ITEM_SET_DESCRIPTION":case"PIN_ITEM_SET_DESCRIPTION_ERROR":case"PIN_ITEM_SET_IS_TAGGABLE":case"PIN_ITEM_SET_LINK_ERROR":case"PIN_ITEM_SET_LINK":case"PIN_ITEM_SET_MEDIA":case"PIN_ITEM_SET_SELECTED_PIN_TAG_ID":case"PIN_ITEM_SET_TAG_ERROR":case"PIN_ITEM_SET_TITLE":case"PIN_ITEM_SET_TITLE_ERROR":case"PIN_ITEM_UPDATE_MEDIA":case"PIN_ITEM_UPDATE_DATA":case"PIN_ITEM_SET_EDITED_IMAGE":const{pinItemId:n}=t.payload;return{...e,[n]:(0,ze.Z)(e[n],t)};default:return e}},Ze={id:null,link:"",linkError:null,pinTagKey:null,status:"created",taggedObjectIds:[],x:-1,y:-1},Ve=(e=Ze,t)=>{switch(t.type){case"PIN_ITEM_ADD_PIN_TAG":{const{pinTag:n}=t.payload;return{...e,...n}}case"PIN_ITEM_REMOVE_PIN_TAG":return{...e,status:"created"!==e.status?"deleted":e.status};case"PIN_TAG_ADD_TAGGED_OBJECT":{const{taggedObjectId:n}=t.payload;return{...e,taggedObjectIds:[...e.taggedObjectIds,n],status:"saved"===e.status?"edited":e.status}}case"PIN_TAG_REMOVE_TAGGED_OBJECT":{const{taggedObjectId:n}=t.payload;return{...e,taggedObjectIds:e.taggedObjectIds.filter((e=>e!==n)),status:"saved"===e.status?"edited":e.status}}case"PIN_TAG_SET_COORDINATES":{const{x:n,y:i}=t.payload;return{...e,x:n,y:i,status:"saved"===e.status?"edited":e.status}}case"PIN_TAG_SET_LINK":{const{link:n,error:i}=t.payload;return{...e,link:n,linkError:i}}case"PIN_TAG_SET_STATUS":{const{status:n}=t.payload;return{...e,status:n}}default:return e}},We=(e={},t)=>{switch(t.type){case"PIN_ITEM_ADD_PIN_TAG":case"PIN_ITEM_REMOVE_PIN_TAG":case"PIN_TAG_ADD_TAGGED_OBJECT":case"PIN_TAG_REMOVE_TAGGED_OBJECT":case"PIN_TAG_SET_COORDINATES":case"PIN_TAG_SET_LINK":case"PIN_TAG_SET_STATUS":const{pinTagId:n}=t.payload;return{...e,[n]:Ve(e[n],t)};default:return e}},Ke={edits:{left:0,scale:1,top:0,transform:{rotate:0,scaleX:1,scaleY:1}},error:null,media:null,text:"",type:"story_pin_paragraph_block"},Ye=(e=Ke,t)=>{switch(t.type){case"STORY_PIN_ITEM_ADD_BLOCK":case"STORY_PIN_ITEM_UPDATE_BLOCK":const{storyPinItemBlock:n}=t.payload;return{...e,...n};case"STORY_PIN_ITEM_BLOCK_SET_PLAYING":const{playing:i}=t.payload;return{...e,playing:i};case"STORY_PIN_ITEM_BLOCK_UPDATE_EDITS":const{edits:a}=t.payload;return{...e,edits:{...e.edits,...a}};case"STORY_PIN_ITEM_BLOCK_UPDATE_MEDIA":{const{media:n}=t.payload;return{...e,media:e.media?Ee()({},e.media,n):null}}default:return e}},qe=(e={},t)=>{switch(t.type){case"STORY_PIN_ITEM_BLOCK_SET_PLAYING":case"STORY_PIN_ITEM_BLOCK_UPDATE_EDITS":case"STORY_PIN_ITEM_BLOCK_UPDATE_MEDIA":case"STORY_PIN_ITEM_UPDATE_BLOCK":{const{blockId:n}=t.payload;return n in e?{...e,[n]:Ye(e[n],t)}:e}case"STORY_PIN_ITEM_ADD_BLOCK":{const{blockId:n}=t.payload;return{...e,[n]:Ye(e[n],t)}}case"STORY_PIN_ITEM_REMOVE_BLOCK":{const{blockId:n}=t.payload;if(!(n in e))return e;const i={...e};return delete i[n],i}default:return e}},$e={backgroundColor:"#ffffff",blockIds:[],canvasJson:null,coverImgSignature:"",description:"",descriptionError:null,dominantColors:[],isEditable:!0,layout:null,linkBlock:{text:"",srcUrl:"",canonicalUrl:"",imageSignature:"",imageUrl:"",isFetching:!1},linkError:null,media:null,selectedBlockId:null,signals:{},title:"",titleError:null},Xe=(e=$e,t)=>{switch(t.type){case"PIN_DRAFT_ADD_STORY_PIN_ITEM":case"STORY_PIN_ITEM_UPDATE_DATA":{const{pinItem:n}=t.payload;return{...e,...n}}case"STORY_PIN_ITEM_SET_DESCRIPTION":{const{description:n}=t.payload;return{...e,description:n}}case"STORY_PIN_ITEM_SET_DESCRIPTION_ERROR":{const{descriptionError:n}=t.payload;return{...e,descriptionError:n}}case"STORY_PIN_ITEM_UPDATE_LINK_BLOCK":{const{linkBlock:n}=t.payload;return{...e,linkBlock:{...e.linkBlock,...n}}}case"STORY_PIN_ITEM_SET_LINK_ERROR":{const{linkError:n}=t.payload;return{...e,linkError:n}}case"STORY_PIN_ITEM_SET_MEDIA":{const{media:n}=t.payload;return{...e,media:n,canvasJson:null}}case"STORY_PIN_ITEM_UPDATE_MEDIA":{const{media:n}=t.payload;return{...e,media:e.media?Ee()({},e.media,n):null}}case"STORY_PIN_ITEM_SET_TITLE":{const{title:n}=t.payload;return{...e,title:n}}case"STORY_PIN_ITEM_SET_TITLE_ERROR":{const{titleError:n}=t.payload;return{...e,titleError:n}}case"STORY_PIN_ITEM_SET_BLOCK_IDS":{const{blockIds:n}=t.payload;return{...e,blockIds:n}}case"STORY_PIN_ITEM_SET_EDITED_IMAGE":{const{editedMedia:n,canvasJson:i}=t.payload;return{...e,media:n,canvasJson:i}}case"STORY_PIN_ITEM_SET_SELECTED_BLOCK_ID":{const{blockId:n}=t.payload;return{...e,selectedBlockId:n}}case"STORY_PIN_ITEM_SET_BACKGROUND_COLOR":{const{backgroundColor:n}=t.payload;return{...e,backgroundColor:n}}case"STORY_PIN_ITEM_SET_COVER_IMAGE_SIGNATURE":{const{coverImgSignature:n}=t.payload;return{...e,coverImgSignature:n}}case"STORY_PIN_ITEM_SET_LAYOUT":{const{layout:n}=t.payload;return{...e,layout:n}}case"STORY_PIN_ITEM_SET_DOMINANT_COLORS":{const{dominantColors:n}=t.payload;return{...e,dominantColors:n}}case"STORY_PIN_ITEM_ADD_BLOCK":{const{blockId:n,index:i}=t.payload,{blockIds:a}=e,r=[...a];return r.splice("number"==typeof i?i:a.length,0,n),{...e,blockIds:r}}case"STORY_PIN_ITEM_REMOVE_BLOCK":{const{blockId:n}=t.payload,{blockIds:i}=e;return{...e,blockIds:[...i.filter((e=>e!==n))]}}case"STORY_PIN_ITEM_REORDER_BLOCKS":{const{blockIds:n}=t.payload;return{...e,blockIds:n}}default:return e}},Je=(e={},t)=>{switch(t.type){case"PIN_DRAFT_ADD_STORY_PIN_ITEM":case"STORY_PIN_ITEM_ADD_BLOCK":case"STORY_PIN_ITEM_REMOVE_BLOCK":case"STORY_PIN_ITEM_REORDER_BLOCKS":case"STORY_PIN_ITEM_SET_BACKGROUND_COLOR":case"STORY_PIN_ITEM_SET_BLOCK_IDS":case"STORY_PIN_ITEM_SET_COVER_IMAGE_SIGNATURE":case"STORY_PIN_ITEM_SET_DESCRIPTION":case"STORY_PIN_ITEM_SET_DESCRIPTION_ERROR":case"STORY_PIN_ITEM_SET_DOMINANT_COLORS":case"STORY_PIN_ITEM_SET_EDITED_IMAGE":case"STORY_PIN_ITEM_SET_LAYOUT":case"STORY_PIN_ITEM_SET_LINK_ERROR":case"STORY_PIN_ITEM_SET_MEDIA":case"STORY_PIN_ITEM_SET_SELECTED_BLOCK_ID":case"STORY_PIN_ITEM_SET_TITLE":case"STORY_PIN_ITEM_SET_TITLE_ERROR":case"STORY_PIN_ITEM_UPDATE_DATA":case"STORY_PIN_ITEM_UPDATE_LINK_BLOCK":case"STORY_PIN_ITEM_UPDATE_MEDIA":const{pinItemId:n}=t.payload;return{...e,[n]:Xe(e[n],t)};default:return e}},Qe={id:null,link:"",media:null,status:"created",pin:null,type:null},et=(e=Qe,t)=>{switch(t.type){case"PIN_TAG_ADD_TAGGED_OBJECT":const{taggedObject:n}=t.payload;return{...e,...n};case"PIN_TAG_REMOVE_TAGGED_OBJECT":return{...e,status:"created"!==e.status?"deleted":e.status};case"TAGGED_OBJECT_SET_STATUS":const{status:i}=t.payload;return{...e,status:i};default:return e}},tt=(e={},t)=>{switch(t.type){case"PIN_TAG_ADD_TAGGED_OBJECT":case"PIN_TAG_REMOVE_TAGGED_OBJECT":case"TAGGED_OBJECT_SET_STATUS":const{taggedObjectId:n}=t.payload;return{...e,[n]:et(e[n],t)};default:return e}};var nt=n(829084);const it=Object.freeze({assets:[],createdPinIds:[],fonts:[],layoutMode:0,pinDraftIdUploadStatusMap:{},pinDraftIds:[],selectedPinDraftIds:[],isBatchEditMode:!1,entryPoint:null,closeupImageSignature:null,pinEditorPinDraft:null,failureErrorLogged:!1,showDisabledPinCreationBanner:!1,showFeedbackModal:!1}),at=(Object.freeze({...it,batchEditModeFields:je,pinDrafts:{},pinItems:{},pinTags:{},storyPinItemBlocks:{},storyPinItems:{},taggedObjects:{}}),(0,re.combineReducers)({assets:(e=it.assets,t)=>{switch(t.type){case"PIN_BUILDER_ADD_ASSET":return[t.payload.asset,...e];default:return e}},batchEditModeFields:Ue,closeupImageSignature:(e=it.closeupImageSignature,t)=>{switch(t.type){case"PIN_BUILDER_SET_CLOSEUP_IMAGE_SIGNATURE":{const{closeupImageSignature:e}=t.payload;return e}default:return e}},createdPinIds:(e=it.createdPinIds,t)=>{switch(t.type){case"PIN_BUILDER_ADD_CREATED_PIN_ID":{const{pinId:n}=t.payload;return e.concat(n)}case"PIN_BUILDER_REMOVE_CREATED_PIN_ID":{const{pinId:n}=t.payload;return e.filter((e=>e!==n))}case"PIN_BUILDER_CLEAR_CREATED_PIN_IDS":return[];default:return e}},entryPoint:(e=it.entryPoint,t)=>{switch(t.type){case"PIN_BUILDER_ENTRY_POINT":{const{entryPoint:e}=t.payload;return e}default:return e}},failureErrorLogged:(e=it.failureErrorLogged,t)=>{switch(t.type){case"PIN_BUILDER_SET_FAILURE_ERROR_LOGGED":{const{failureErrorLogged:e}=t.payload;return e}default:return e}},fonts:(e=it.fonts,t)=>{if(t.type===c.zP){const{resource:e}=t.payload,n=t.payload.response.resource_response.data;if("StoryPinFontsResource"===e){return((null==n?void 0:n.all)||[]).map(nt.Z)}}return e},isBatchEditMode:(e=it.isBatchEditMode,t)=>{switch(t.type){case"PIN_BUILDER_SET_BATCH_EDIT_MODE":{const{isBatchEditMode:e}=t.payload;return e}default:return e}},layoutMode:(e=it.layoutMode,t)=>(t.type,e),pinDraftIds:(e=it.pinDraftIds,t)=>{switch(t.type){case"PIN_BUILDER_ADD_PIN_DRAFT":{const{pinDraftId:n,options:i={}}=t.payload;if(i.insertBefore){const t=e.indexOf(i.insertBefore);if(t>=0){const i=[...e];return i.splice(t,0,n),i}}return[n,...e]}case"PIN_BUILDER_DELETE_PIN_DRAFT":case"PIN_BUILDER_REMOVE_PIN_DRAFT_ID":{const{pinDraftId:n}=t.payload;return[...e.filter((e=>e!==n))]}case"PIN_BUILDER_CLEAR_PIN_DRAFTS":return[];default:return e}},pinDraftIdUploadStatusMap:(e=it.pinDraftIdUploadStatusMap,t)=>{switch(t.type){case"PIN_BUILDER_ADD_PIN_DRAFT_ITEM_UPLOAD":{const{pinDraftId:n,pinItemId:i,upload:a}=t.payload;return e[n]?{...e,[n]:{...e[n]||{items:{},status:"uploading"},items:{...e[n].items,[i]:a}}}:{...e,[n]:{items:{[i]:a},status:"uploading"}}}case"PIN_BUILDER_SET_PIN_DRAFT_UPLOAD_STATUS":{const{pinDraftId:n,status:i}=t.payload;return{...e,[n]:{...e[n]||{items:{},status:"uploading"},status:i}}}case"PIN_BUILDER_SET_PIN_ITEM_UPLOAD_STATUS":{const{pinDraftId:n,pinItemId:i,status:a}=t.payload;return{...e,[n]:{...e[n],items:{...e[n].items,[i]:{...e[n].items[i],status:a}}}}}case"PIN_BUILDER_SET_PIN_ITEM_UPLOAD_XHR":{const{pinDraftId:n,pinItemId:i,xhr:a}=t.payload;return{...e,[n]:{...e[n],items:{...e[n]&&"items"in e[n]&&{...e[n].items},[i]:{...e[n].items[i],xhr:a}}}}}case"PIN_BUILDER_REMOVE_PIN_ITEM_UPLOAD":{const{pinDraftId:n,pinItemId:i}=t.payload,a={...e[n].items};return delete a[i],{...e,[n]:{...e[n],items:a}}}case"PIN_BUILDER_REMOVE_PIN_DRAFT_UPLOAD":{const{pinDraftId:n}=t.payload,i={...e};return delete i[n],i}default:return e}},pinDrafts:Ge,pinEditorPinDraft:(e=it.pinEditorPinDraft,t)=>{if("PIN_EDITOR_SET_PIN_DRAFT"===t.type){const{payload:e}=t;return e.editedPinDraftId}return e},pinItems:He,pinTags:We,selectedPinDraftIds:(e=it.selectedPinDraftIds,t)=>{switch(t.type){case"PIN_BUILDER_SELECT_PIN_DRAFT":{const{pinDraftId:n}=t.payload;return[...e,n]}case"PIN_BUILDER_DESELECT_PIN_DRAFT":{const{pinDraftId:n}=t.payload;return e.filter((e=>e!==n))}case"PIN_BUILDER_CLEAR_SELECTED_PIN_DRAFTS":return[];default:return e}},showDisabledPinCreationBanner:(e=it.showDisabledPinCreationBanner,t)=>{if("PIN_BUILDER_SHOW_DISABLE_PIN_CREATION_BANNER"===t.type){const{showDisabledPinCreationBanner:e}=t.payload;return e}return e},showFeedbackModal:(e=it.showFeedbackModal,t)=>{if("PIN_BUILDER_SHOW_FEEDBACK_MODAL"===t.type){const{payload:e}=t;return e.showFeedbackModal}return e},storyPinItemBlocks:qe,storyPinItems:Je,taggedObjects:tt})),rt=(e,t,n)=>({...e,[t]:{...e[t]||{},...n}}),ot=(e={},t)=>{switch(t.type){case c.zP:{const{payload:{resource:n,response:i,options:a}}=t;if("FindPinImagesResource"===n&&"pin_create"===(null==a?void 0:a.source)){const t={...i.resource_response.data};t.items=t.items.slice(0,50);const n=(null==a?void 0:a.url)||"";return rt(e,n,t)}return e}case"PIN_BUILDER_LOADED_IMAGES":{const{payload:{loadedImages:n,scrapedWebsite:i}}=t;return rt(e,i,{loadedImages:n})}case"UPDATE_PIN_BUILDER_INPUT":return{...e,...t.payload};default:return e}};function st(e=null,t){return"PIN_NAV_CONTEXT_CREATE"===t.type?{...e,...t.payload}:"PIN_NAV_CONTEXT_DELETE"===t.type?null:e}var lt=n(730236),dt=n.n(lt),ct=n(224496),ut=n(784641);const _t=e=>e||[],pt=e=>e?e.reduce(((e,t)=>null!=t&&t.objects?e.concat(t.objects):e.concat([t].filter(Boolean))),[]):[],ht=e=>{if(e&&Array.isArray(e)){return e.reduce(((e,t)=>t.content_pin?e.concat(t.content_pin):e),[])}return[]},mt={ApiResource:e=>{if(e&&Array.isArray(e)){const t=[];return e.forEach((e=>{e.call_to_create_source_pin_id&&t.push(e)})),t}return[]},BaseSearchResource:e=>e?pt(e.results):[],BoardContentRecommendationResource:_t,BoardFeedResource:_t,BoardlessPinsResource:_t,BoardSectionPinsResource:_t,BoardShopCategoryFeedResource:_t,BoardShopSavedProductsFeedResource:_t,BrandCatalogFeedResource:_t,BusinessProfileUserPinsResource:_t,CategoryFeedResource:_t,ConversationRelatedPinsResource:_t,DomainFeedResource:_t,ExploreArticleResource:e=>e?e.objects.reduce(((e,t)=>e.concat(t.objects||[])),[]):[],ExploreArticleBlockPinResource:_t,FollowingFeedResource:_t,IdeaPinStelaResultsResource:_t,InterestResource:e=>e?e.results:[],LiveSessionProductsResource:e=>e?Object.values(e).reduce(((e,t)=>e.concat(t)),[]):[],NewsHubDetailsResource:e=>e?e.reduce(((e,t)=>t.content_items?e.concat(t.content_items.map((e=>e.content_object)).filter(Boolean)):e),[]):[],PinCatalogResource:_t,ProfileCoverFeedResource:_t,RelatedModulesResource:pt,RelatedPinFeedResource:_t,RelatedProductFeedResource:_t,RelatedStreamResource:_t,SearchResource:_t,SectionSuggestionsPinsResource:_t,ShoppingFeedModularizedResource:pt,StoreFrontFeedResource:_t,StoreFrontSearchResource:e=>e?e.results:[],TaggedObjectsResource:pt,TodayArticleFeedResource:e=>{if((0,ut.nx)(e)){return e.reduce(((e,t)=>{if(Array.isArray(t.objects)){const n=[];return t.objects.forEach((e=>{var t;"todayarticle"===e.type&&"pin"===(null===(t=e.content_pin)||void 0===t?void 0:t.type)?n.push(e.content_pin):"pin"===e.type&&n.push(e)})),e.concat(n)}return e}),[])}return e||[]},TodayTabInterestFeedResource:ht,TodayTabResource:ht,TopicFeedResource:_t,UserDiscoveredPinsResource:_t,UserHomefeedResource:pt,UserActivityPinsResource:_t,UserRecentActivityResource:_t,UserStoryPinsFeedResource:_t,UserPinsResource:_t,VisualLiveSearchResource:e=>e?e.results:[],VisualLiveSearchProductFeedResource:_t,VisualLinkVisualSearchResource:_t,VisualSearchFlashlightUnifiedResource:e=>e?e.results:[],ShoppingListFeedResource:pt,ShoppingListRecentlyViewedFeedResource:_t,StorefrontCategoriesResource:_t,StorefrontFeaturedResource:_t,StorefrontProductPinsResource:_t,BestPinsFeedAltResource:_t,StoryFeedResource:pt},gt=(e,t)=>{let n,i=e;switch(e){case"ApiResource":null!=t&&t.url.match(/\/v3\/call_to_create_pins\/([0-9]|[a-z]|[A-Z])+\/pins\//)&&(n=t.pin_id);break;case"BaseSearchResource":case"SearchResource":const e=t.query;"blp"===t.auth_lp_type?n=null:e&&(n=encodeURIComponent(e)),i="SearchResource";break;case"BrandCatalogFeedResource":n=t.pin;break;case"CategoryFeedResource":n=t.feed;break;case"DomainFeedResource":n=t.domain;break;case"ExploreArticleBlockPinResource":i="ExploreArticleResource",n=t.story_id;break;case"ExploreArticleResource":n=t.story_id;break;case"LiveSessionProductsResource":n=t.classId;break;case"NewsHubDetailsResource":n=t.news_id;break;case"RelatedModulesResource":case"RelatedPinFeedResource":case"RelatedProductFeedResource":n=t.pin;break;case"BestPinsFeedAltResource":case"TopicFeedResource":n=t.interest;break;case"ShoppingFeedModularizedResource":case"VisualSearchFlashlightUnifiedResource":case"BoardShopCategoryFeedResource":n=t.pin;break;case"TodayArticleFeedResource":n=t.id;break;case"StoryFeedResource":n=`${t.feed_type}-${t.request_params}`}return n?`${i}_${n.toLowerCase()}`:e},vt=(e,t,n=!1)=>{const i=dt()({},e,t,n?(e,t)=>null===t?e:void 0:void 0);return fe()(e,i)?e:i},ft=(e,t)=>({...e,[t.id]:{...e[t.id]||{},...t}});function yt(e,t){switch(t.type){case"CHANGE_CAROUSEL_SLOT_INDEX":{const{id:n,index:i}=t.payload;return n===e.id&&e.carousel_data?{...e,carousel_data:{...e.carousel_data,index:i}}:e}case"SET_PIN_COMMENTS_DISABLED":{const{id:n,pinCommentsDisabled:i}=t.payload;return n===e.id?{...e,comments_disabled:i,is_eligible_for_aggregated_comments:!i}:e}case"PIN_SAVE":{const{boardId:n,localPinId:i,id:a,title:r,url:o}=t.payload;return a===e.id?{...e,savedInfo:{boardId:n,title:r,url:o,localPinId:i}}:e}case"PIN_UNSAVE":{const{id:n}=t.payload;if(n===e.id){const{savedInfo:t,...n}=e;return n}return e}case"PIN_SHOW_SUGGESTED_CREATOR_RECS":return t.payload.id===e.id?{...e,show_suggested_creator_recs:t.payload.value}:e;case"PIN_QUICK_SAVE":{const{pinId:n,boardId:i,localPinId:a,title:r,url:o}=t.payload;return n===e.id?{...e,savedInfo:{boardId:i,localPinId:a,title:r,url:o}}:e}case"PIN_SHOW_FEEDBACK":{const{id:n,value:i,text:a}=t.payload;return n===e.id?{...e,showFeedback:i,feedbackText:a}:e}case"PIN_UPDATE_COMMENT_COUNT":{const{id:n,increment:i}=t.payload;if(n===e.id&&e.aggregated_pin_data){const t={...e.aggregated_pin_data,comment_count:(e.aggregated_pin_data.comment_count||0)+i};return{...e,aggregated_pin_data:t}}return e}case"PIN_SHOW_UNDO_AND_FEEDBACK":{const{id:n,value:i,text:a,undoAction:r,undoActionOptions:o,undoText:s}=t.payload;return n===e.id?{...e,showFeedback:i,feedbackText:a,undoAction:r,undoActionOptions:o,undoText:s}:e}case"PIN_DID_IT":{const{id:n,value:i}=t.payload;if(n===e.id){const t=i?1:-1,n=(e.aggregated_pin_data||{}).did_it_data,a={...n,images_count:((null==n?void 0:n.images_count)||0)+t},r={...e.aggregated_pin_data,did_it_data:a};return{...e,aggregated_pin_data:r,done_by_me:i}}return e}case"PIN_SHOW_FEEDBACK_OVERLAY":{const{id:n,value:i}=t.payload;return n===e.id?{...e,showFeedbackOverlay:i}:e}case"PIN_SHOW_AD_REASONS_MODAL":return t.payload.id===e.id?{...e,show_ad_reasons:t.payload.value}:e;case"APPROVE_PIN_SPONSORSHIP":{const{isApproved:i,pinId:a}=t.payload;var n;return a===e.id?{...e,sponsorship:{...e.sponsorship,sponsor:i?null===(n=e.sponsorship)||void 0===n?void 0:n.sponsor:void 0,status:i?1:2}}:e}case"DELETE_PIN_SPONSORSHIP":{const{pinId:n,userId:s}=t.payload;if(n===e.id){var i,a,r,o;if(s===(null===(i=e.sponsorship)||void 0===i||null===(a=i.creator)||void 0===a?void 0:a.id))return{...e,sponsorship:void 0};if(s===(null===(r=e.sponsorship)||void 0===r||null===(o=r.sponsor)||void 0===o?void 0:o.id))return{...e,sponsorship:{...e.sponsorship,sponsor:void 0,status:3}}}return e}case"PIN_UPDATE_REACTION_COUNT":{const{id:n,increment:i,reactionType:a}=t.payload;if(n===e.id){const{reaction_counts:t={}}=e,n=t[a]||0,r=i?n+1:Math.max(n-1,0),o=i?a:0;if(0===r){const n={...e,reaction_counts:{...t},reaction_by_me:o};return delete n.reaction_counts[a],{...n}}return{...{...e,reaction_counts:{...t,[a]:r},reaction_by_me:o}}}return e}case"PIN_BETTER_SAVE":{const{pinId:n,boardId:i,localPin:a,localPinId:r,sectionId:o,title:s,type:l,url:d}=t.payload;return n===e.id?{...e,savedInfo:{boardId:i,localPinId:r||a&&a.id,sectionId:o,title:s,type:l,url:d}}:e}case"PIN_BETTER_UNSAVE":{const{pinId:n}=t.payload;if(n===e.id){const t={...e};return delete t.savedInfo,{...t}}return e}case"PIN_BETTER_SELECT_BOARD_OR_SECTION":{const{pinId:n,boardId:i,sectionId:a,title:r,type:o,url:s}=t.payload;return n===e.id?{...e,selectedItem:{boardId:i,sectionId:a,title:r,type:o,url:s}}:e}case"DELETE_PIN_MENTION":{const{pinId:n,userId:i}=t.payload;if(n===e.id){const{story_pin_data:t}=e;if(!t)return e;const{pages:n=[]}=t,a=n.map((e=>{const{blocks:t=[]}=e,n=t.map((e=>e.type===ct.h8.MENTION_STICKER&&e.user_id===i?{...e,is_removed:!0}:e));return{...e,blocks:n}}));return{...{...e,story_pin_data:{...t,pages:a}}}}return e}case"PIN_FAVORITE":{const{id:n,increment:i,value:a}=t.payload,{favorite_user_count:r=0}=e;return n===e.id?{...e,favorited_by_me:a,favorite_user_count:r+i}:e}case"PIN_NOTE_UPDATE":{const{pinId:n,pinNote:i}=t.payload;return n===e.id?{...e,pin_note:null!=i?i:void 0}:e}default:return e}}const Et=(0,o.Z)("pins",((e={},t)=>{switch(t.type){case c.zP:case c.aW:{const{options:n,resource:i,response:{resource_response:{data:a}}}=t.payload;if(i in mt){const t=mt[i](a)||[],r={...e};return t.forEach((t=>{if("pin"===t.type){const a=gt(i,n);let r={};e[t.id]&&(r=e[t.id].tracking_params_map||{}),r[a]=t.tracking_params||"",t.tracking_params_map=r}t.type&&"pin"!==t.type||(r[t.id]=vt(e[t.id],t,!0))})),r}if(("PinResource"===i||"PinPageResource"===i||"StoryPinEditResource"===i)&&a){const{preserve_component_state:t=!1}=null!=n?n:{},r=a||{},o=gt(i,n);let s={};return e[r.id]&&(s=e[r.id].tracking_params_map||{}),s[o]=r.tracking_params,r.tracking_params_map=s,{...e,[r.id]:t?vt(r,e[r.id]):vt(e[r.id],r)}}return"BoardTitleSuggestionsResource"===i?function(e,t){var n;if(t.type===c.zP&&null!==(n=t.payload.options)&&void 0!==n&&n.pin_id){const n=t.payload.options.pin_id,i=t.payload.response.resource_response.data.map((e=>e.title));return ft(e,{id:n,boardTitleSuggestions:i})}return e}(e,t):"BoardPickerBoardsResource"===i?function(e,t){var n;if(t.type===c.zP&&t.payload.normalizedResponse&&null!==(n=t.payload.options)&&void 0!==n&&n.pin_id){const n=t.payload.options.pin_id,{boards_shortlist:i}=t.payload.normalizedResponse.result;return ft(e,{id:n,boards_shortlist:i})}return e}(e,t):"PinInterestsResource"===i?function(e,t){var n;if(t.type===c.zP&&null!==(n=t.payload.options)&&void 0!==n&&n.pinId){const{options:n,response:i}=t.payload,a=i.resource_response.data;if(null!=a&&a.length)return ft(e,{id:n.pinId,related_interest_ids:a.map((e=>e.id))})}return e}(e,t):"StoryPinTaggedProductsResource"===i?function(e,t){if(t.type===c.zP){const{response:n}=t.payload,i=n.resource_response.data;if(null!=i&&i[0])return i.reduce(((e,t)=>ft(e,t)),e)}return e}(e,t):"LiveSessionProductsResource"===i?function(e,t){if(t.type===c.zP){const{options:n,response:i}=t.payload;return i.resource_response.data[null==n?void 0:n.classId].reduce(((e,t)=>ft(e,t)),e)}return e}(e,t):e}case c.AF:const{payload:r}=t;if("RepinResource"===r.resource){const{pin_id:t,board_id:n}=r.options,{id:i}=r.response.resource_response.data,{name:a,privacy:o,url:s}=r.response.resource_response.data.board;return ft(e,{id:t,pinned_to_board:{id:n,name:a,url:s,type:"board"},privacy:o,savedThisSession:i})}if("BoardResource"===r.resource&&r.options.initial_pins){const t=r.options.initial_pins[0],{name:n,id:i,url:a}=r.response.resource_response.data;return ft(e,{id:t,pinned_to_board:{id:i,name:n,url:a,type:"board"}})}return e;case"CHANGE_CAROUSEL_SLOT_INDEX":case"PIN_DID_IT":case"PIN_SAVE":case"PIN_SHOW_SUGGESTED_CREATOR_RECS":case"PIN_UNSAVE":case"PIN_UPDATE_COMMENT_COUNT":case"SET_PIN_COMMENTS_DISABLED":case"PIN_SHOW_FEEDBACK":case"PIN_SHOW_UNDO_AND_FEEDBACK":case"PIN_SHOW_FEEDBACK_OVERLAY":case"PIN_FEEDBACK":case"PIN_SHOW_AD_REASONS_MODAL":case"PIN_FAVORITE":case"PIN_UPDATE_REACTION_COUNT":{const{id:n}=t.payload;return e[n]?{...e,[n]:yt(e[n],t)}:e}case"PIN_BETTER_SAVE":{const{payload:{localPin:n,pinId:i}}=t,a={...e};return n&&"pin"===n.type&&(a[n.id]=n),e[i]&&(a[i]=yt(e[i],t)),a}case"APPROVE_PIN_SPONSORSHIP":case"DELETE_PIN_SPONSORSHIP":case"PIN_BETTER_UNSAVE":case"PIN_BETTER_SELECT_BOARD_OR_SECTION":case"PIN_QUICK_SAVE":case"DELETE_PIN_MENTION":case"PIN_NOTE_UPDATE":{const{pinId:n}=t.payload;return e[n]?{...e,[n]:yt(e[n],t)}:e}case"UPDATE_PINS_WITH_QUICKSAVE_REPIN":{const{payload:{newPin:n}}=t;return n&&"pin"===n.type?{...e,[n.id]:n}:e}case"PIN_REMOVE_USER_STORY_PIN_TAGGED_PRODUCTS":{var n,i,a;const{payload:{blocksIds:r,pinId:o}}=t,s={...e};let l=s[o];return l={...l,story_pin_data:{...l.story_pin_data,pages:null!==(n=null===(i=l.story_pin_data)||void 0===i||null===(a=i.pages)||void 0===a?void 0:a.map((e=>{var t;return e.blocks=null===(t=e.blocks)||void 0===t?void 0:t.map((e=>("story_pin_product_sticker_block"===e.type&&r.includes(e.pin_id)&&(e.is_removed=!0),e))),e})))&&void 0!==n?n:[]}},s[o]=l,s}case"NFT_FETCH_DATA":{const{payload:{data:n}}=t;return{...e,[n.id]:n}}case"UPDATE_PIN_REACTION_COUNT":return((e,t)=>{const{pinId:n,increment:i,reactionType:a}=t.payload,{reaction_counts:r={}}=e[n],o=r[a]||0,s=i?o+1:Math.max(o-1,0);var l;return 0===s?(null===(l=e[n].reaction_counts)||void 0===l||delete l[a],ft(e,{id:n,reaction_counts:{...r}})):ft(e,{id:n,reaction_counts:{...r,[a]:s}})})(e,t);case"PIN_DELETE":{const{pinId:n}=t.payload;return{...Object.keys(e).reduce(((t,i)=>(i!==n&&(t[i]=e[i]),t)),{})}}case"PIN_EDIT":{const{pinId:n,description:i,boardId:a,section:r,title:o}=t.payload;return ft(e,{id:n,closeup_user_note:i,board:a,section:r,title:o,unified_user_note:i})}case"PIN_UNDO_SAVE":{const{pinId:n}=t.payload;return ft(e,{id:n,savedThisSession:void 0})}case"ONE_TAP_SAVE":{const{boardId:n,localPinId:i,pinId:a}=t.payload;if(e[a])return ft(e,{id:a,savedInfo:{boardId:n,localPinId:i}})}return e;case"ONE_TAP_UNSAVE":{const{pinId:n}=t.payload,i=e[n];if(!i)return e;const{savedInfo:a,savedThisSession:r,...o}=i;return{...e,[n]:o}}default:return e}})),St=(e={},t)=>{if(t.type===c.zP){const{resource:n,options:i={},response:a}=t.payload;if("VisualSearchFlashlightUnifiedResource"===n){const t="related-products-unified",n=i.pin_id,{x:r,y:o,w:s,h:l}=i.crop,d=`${t}:${n}:${r}:${o}:${s}:${l}:${i.is_shopping}`,{data:c}=a.resource_response,u={[d]:{priceFilters:c.price_filters,domainFilters:c.domain_filters,categoryFilters:c.category_filters}};if(Object.values(u[d]).filter(Boolean).length)return{...e,...u}}}return e};var Tt=n(934723),It=n(709622);const xt=(e={},t)=>{if("SHOW_QUICK_PROMOTE_PIN_SELECTION"===t.type)return{...e,modal:"PIN_SELECTION_MODAL",firstStepModal:It.Gl.PIN_SELECTION_MODAL,sterlingCreateCampaignUrl:t.payload.sterlingCreateCampaignUrl};if("SELECT_QUICK_PROMOTE_PIN"===t.type)return{...e,initialDataSet:!1,selected_pin:t.payload.pin,selectedProductGroup:null,selectedProductGroupImage:null};if("SELECT_QUICK_PROMOTE_PRODUCT_GROUP"===t.type)return{...e,initialDataSet:!1,selected_pin:void 0,selectedProductGroup:t.payload.productGroup,selectedProductGroupImage:t.payload.productGroupImage};if("SET_PRODUCT_PINS_AND_GROUPS_DATA"===t.type)return{...e,productPinsAndGroupsData:t.payload.productPinsAndGroupsData};if("SET_ACTIVE_FEED_ID"===t.type)return{...e,activeFeedId:t.payload.activeFeedId};if("SET_FEEDS_AND_PRODUCT_GROUPS_DATA"===t.type)return{...e,feedsAndProductGroupsData:t.payload.feedsAndProductGroupsData};if("QUICK_PROMOTE_CHANGE_ADVERTISER"===t.type&&t.payload){const n=t.payload.advertiserId,i=(e.advertisers||[]).find((e=>e.id===n));if(i)return{...e,advertiserCountry:parseInt(i.country,10),hasValidBillingProfile:i.has_valid_billing_profile||"VALID"===i.billing_profile_status,hasBusinessAddress:!!i.business_address,advertiserId:i.id,initialDataSet:!0}}if("QUICK_PROMOTE_SET_DATA"===t.type&&t.payload){const n=e.shouldOpenQuickPromoteOnSterling?e.sterlingAdvertiser&&e.sterlingAdvertiser.id:t.payload.advertiserId,i=t.payload.advertisers.find((e=>e.id===n))||e.advertiser;return{...e,advertiserCountry:t.payload.advertiserCountry,hasValidBillingProfile:t.payload.hasValidBillingProfile,hasBusinessAddress:t.payload.hasBusinessAddress,advertiserId:n,initialDataSet:!0,advertisers:t.payload.advertisers,advertiser:i,shouldRefreshBillingInfo:!!t.payload.shouldRefreshBillingInfo}}if("QUICK_PROMOTE_PIN_SELECT_PAGE_OPEN_FROM_STERLING"===t.type){let n={};const i=t.payload.sterlingAdvertiser||null;i&&(n={advertiserCountry:i.country,hasValidBillingProfile:i.has_valid_billing_profile,hasBusinessAddress:i.has_business_address,advertiserId:i.id});const a=i&&i.id||e.sterlingAdvertiser&&e.sterlingAdvertiser.id;return{...e,modal:"PIN_SELECTION_MODAL",isFromSterling:t.payload.isFromSterling,sterlingCreateCampaignUrl:(0,Tt.Z)({advertiser:{id:null!=a?a:""},isAdsSite:!0,isAnalyticsSite:!1,isTrendsSite:!1,baseUrl:t.payload.baseUrl,adsUrl:null,isQuickPromote:!0}),initialDataSet:!0,firstStepModal:It.Gl.PIN_SELECTION_MODAL,...n}}if("QUICK_PROMOTE_SHOULD_OPEN_ON_STERLING"===t.type){let n={};const i=t.payload.sterlingAdvertiser||null;return i&&(n={advertiserCountry:i.country,hasValidBillingProfile:i.has_valid_billing_profile,hasBusinessAddress:i.has_business_address,advertiserId:i.id,sterlingAdvertiser:i}),{...e,initialDataSet:!0,sterlingAdvertiser:i,shouldOpenQuickPromoteOnSterling:t.payload.shouldOpenQuickPromoteOnSterling,isFromSterling:t.payload.isFromSterling,...n}}if("QUICK_PROMOTE_UPDATE_FORM_VALUES"===t.type)return{...e,...t.payload};if("QUICK_PROMOTE_UPDATE_FORM_URL"===t.type){const{destinationUrl:n,error:i}=t.payload,a={...e.errors,destinationUrl:i};return{...e,errors:a,destinationUrl:n}}if("QUICK_PROMOTE_UPDATE_FORM_AD_TYPE"===t.type){const{adType:n,selectedOCPMTag:i,error:a}=t.payload,r={...e.errors,adType:a};return{...e,adType:n,selectedOCPMTag:i,errors:r}}if("QUICK_PROMOTE_UPDATE_FORM_BUDGET"===t.type){const{dailyBudget:n,error:i}=t.payload,a={...e.errors,dailyBudget:i};return{...e,dailyBudget:n,errors:a}}if("QUICK_PROMOTE_UPDATE_FORM_DURATION"===t.type){const{duration:n,error:i}=t.payload,a={...e.errors,duration:i};return{...e,duration:n,errors:a}}if("QUICK_PROMOTE_UPDATE_FORM_NAME"===t.type){const{name:n,error:i}=t.payload,a={...e.errors,name:i};return{...e,name:n,errors:a}}if("QUICK_PROMOTE_UPDATE_IS_ONGOING"===t.type){const{isOngoing:n,error:i}=t.payload,a={...e.errors,duration:i};return{...e,isOngoing:n,errors:a}}if("QUICK_PROMOTE_SET_INITIAL_FORM_DATA"===t.type)return{...e,dailyBudget:t.payload.budget,duration:t.payload.duration,isOngoing:!!t.payload.isOngoing,destinationUrl:t.payload.destinationUrl,adType:t.payload.adType,name:t.payload.name,locale:t.payload.locale};const n={...{isOngoing:void 0,dailyBudget:void 0,duration:void 0,destinationUrl:void 0,adType:void 0,name:void 0,ages:[],genders:[],interests:[],errors:{}},showShortDurationModal:void 0,showConversionOpenAdsManagerModal:void 0,sterlingCreateCampaignUrl:void 0,selected_pin:void 0,selectedProductGroup:void 0,selectedProductGroupImage:void 0,advertiserId:void 0,advertiserCountry:void 0,hasBusinessAddress:void 0,hasValidBillingProfile:void 0,isFormOnSubmitting:!1,isAutoTargeting:!0};if("QUICK_PROMOTE_RESET_DATA"===t.type)return{...e,...n,modal:void 0,firstStepModal:void 0,fromPickaPin:void 0,pin:void 0,productGroup:void 0,isOnlySetupBilling:!1};if("QUICK_PROMOTE_RESET_DATA_WHEN_RESELECT_PIN"===t.type)return{...e,isOngoing:!1,ages:[],genders:[],interests:[],errors:{}};if("QUICK_PROMOTE_SELECT_AUTO_TARGETING"===t.type)return{...e,isAutoTargeting:t.payload.isAutoTargeting};if("QUICK_PROMOTE_RESET_FIRST_STEP_MODAL"===t.type)return{...e,firstStepModal:void 0};if("QUICK_PROMOTE_RESET_FORM_WHEN_MOVE_BACK"===t.type)return{...e,...n};if("SHOW_QUICK_PROMOTE_MODAL_FROM_PIN_SELECTION"===t.type)return{...e,fromPickaPin:t.payload.isFromPickaPin,pin:t.payload.pin,selectedProductGroup:null,selectedProductGroupImage:null,productGroup:null,productGroupImage:null};if("SHOW_QUICK_PROMOTE_MODAL_FROM_PRODUCT_GROUP_SELECTION"===t.type)return{...e,fromPickaPin:t.payload.isFromPickaPin,pin:null,selected_pin:null,productGroup:t.payload.productGroup,productGroupImage:t.payload.productGroupImage};if("QUICK_PROMOTE_SET_PIN"===t.type)return{...e,pin:t.payload.pin};if("QUICK_PROMOTE_INIT_PAGE"===t.type)return{...e,firstStepModal:It.hf};if("QUICK_PROMOTE_TARGETING_OPTIONS_SET"===t.type)return{...e,targetingOptions:t.payload.targeting};if("SHOW_QUICK_PROMOTE_BILLING_MODAL"===t.type)return{...e,firstStepModal:It.Gl.BILLING_FORM,isOnlySetupBilling:!0};if("RESET_SHOW_QUICK_PROMOTE_BILLING_MODAL_FLAG"===t.type)return{...e,isOnlySetupBilling:!1};if("QUICK_PROMOTE_RESET_FORM_SUBMIT_STATUS"===t.type)return{...e,isFormOnSubmitting:!1};if("QUICK_PROMOTE_BILLING_INFO_REFRESHED"===t.type)return{...e,shouldRefreshBillingInfo:!1};if("SHOW_GDPR_MODAL"===t.type)return{...e,firstStepModal:It.Gl.GDPR_MODAL};if("QUICK_PROMOTE_UPDATE_OCPM_ELIGIBLE_TAGS"===t.type)return{...e,oCPMEligibleTags:t.payload.oCPMEligibleTags};if("QUICK_PROMOTE_SET_SERVER_ERROR"===t.type)return{...e,serverError:t.payload.serverError};if("SHOW_PICK_A_PIN_SHEET"===t.type)return{...e,showPickPinSheet:t.payload.showPickPinSheet};if("SET_IN_SHOPPING_EXPERIMENT"===t.type)return{...e,inShoppingExperiment:t.payload.inShoppingExperiment};if("CLEAR_PIN_SHEET_SELECTED"===t.type)return{...e,selected_pin:null,selectedProductGroup:null,selectedProductGroupImage:null};if("QUICK_PROMOTE_PAGE_SET_DATA"===t.type){const{hasValidBillingProfile:n,hasBusinessAddress:i,advertiserId:a,advertiserCountry:r,advertisers:o,budget:s,destination_url:l,ad_type:d,duration:c,locale:u,name:_,pin:p,selectedProductGroup:h,selectedProductGroupImage:m,isFromSterling:g,isFromAnalytics:v,firstStepModal:f=It.hf,isFromWww:y}=t.payload,E=o.find((e=>e.id===a))||e.advertiser;return{...e,hasValidBillingProfile:n,hasBusinessAddress:i,advertiserId:a,advertiserCountry:r,advertisers:o,advertiser:E,duration:c,locale:u,name:_,pin:p,selectedProductGroup:h,selectedProductGroupImage:m,isFromSterling:g,isFromAnalytics:v,isFromWww:y,dailyBudget:s,destinationUrl:l,firstStepModal:f,adType:d,isAutoTargeting:!0}}return e},Pt=(0,o.Z)("reactions",((e={},t)=>{switch(t.type){case c.zP:return"ReactionsResource"===t.payload.resource&&t.payload.normalizedResponse&&t.payload.normalizedResponse.entities&&t.payload.normalizedResponse.entities.reactions?{...e,...t.payload.normalizedResponse.entities.reactions}:e;case c.AF:const{options:n}=t.payload,{reaction_type:i,reaction_pin_id:a,user_id:r}=n;return((e,t)=>({...e,[t.id]:{...e[t.id],...t}}))(e,{user:r,id:`${a}:${r}`,reaction_type:i,type:"userreaction"});default:return e}})),bt=[],At=(e,t)=>{let n=0,i=e.length-1;for(;n<=i;){const a=n+Math.floor((i-n)/2);e[a].scheduled_ts>t.scheduled_ts?i=a-1:e[a].scheduled_ts<=t.scheduled_ts&&(n=a+1)}return n},wt=(e=bt,t)=>{if(t.type===c.zP||t.type===c.aW){const{resource:e}=t.payload,n=t.payload.response.resource_response.data;if("ScheduledPinsResource"===e)return n||[]}else{if("SCHEDULED_PIN_DELETE_COMPLETE"===t.type||"SCHEDULED_PIN_PUBLISH_COMPLETE"===t.type){const{payload:{scheduledPinId:n}}=t;return e.filter((e=>e.id!==n))}if("SCHEDULED_PIN_CREATE_COMPLETE"===t.type){const{payload:{scheduledPin:n}}=t,i=At(e,n),a=[...e];return a.splice(i,0,n),a}if("SCHEDULED_PIN_UPDATE_COMPLETE"===t.type){const{payload:{title:n,scheduledPinId:i,scheduledTimestamp:a}}=t,r=e.find((e=>e.id===i)),o=e.filter((e=>e.id!==i));if(r){const e={...r,title:null!=n?n:"",scheduled_ts:a},t=At(o,e),i=[...o];return i.splice(t,0,e),i}}}return e};var Rt=n(508228);const Ct={},Ot=new Set(["BoardResource","PinResource","RepinResource"]),Nt=(e=Ct,t)=>{switch(t.type){case"REPLACE_STATE":return{...e,...t.payload.session};case"SET_SESSION_DATA":return{...e,...t.payload};case"SET_LOGIN_SIGNUP_FROM":return t.payload.from!==e.loginSignupFrom?{...e,loginSignupFrom:t.payload.from}:e;case"SET_UNAUTH_SAVE_PIN_ID":return{...e,unauthSavePinId:t.payload.unauthSavePinId};case"DISMISS_UNAUTH_SAVE":return{...e,unauthSavePinId:void 0};case"COMPLETE_UNAUTH_SAVE_ACTION":return{...e,hasSavedUnauthPin:!0};case"AUTHENTICATE_USER":case"REGISTER_USER":return{...e,isAuthenticated:!0,userId:t.payload.user.id};case"SET_VIEWED_IMAGE":const{viewedImageSignature:n}=t.payload,{viewedImages:i}=e,a=(i||[]).slice(0,10),r=[n].concat(a.filter((e=>e!==n)));return{...e,viewedImages:r};case"SET_VIEWED_SHARED_PINS":return{...e,viewedSharedPins:t.payload.pins};case"SHOW_BIZ_NUX_HOMEFEED_LOADER":return{...e,isBizNuxHomefeedLoadShown:t.payload};case"SHOW_REPIN_ANIMATION":return{...e,isShowingRepinAnimation:!0};case"HIDE_REPIN_ANIMATION":return{...e,isShowingRepinAnimation:!1};case"SET_NUM_SIGNUP_STEPS":return{...e,numSignupSteps:t.payload.steps};case"HIDE_NAV_FOOTER":return{...e,shouldHideNavBar:!0};case"SHOW_NAV_FOOTER":return{...e,shouldHideNavBar:!1};case"BOARD_DELETE":case"BOARD_SECTION_DELETE":case"PIN_DELETE":return{...e,isProfilePinsStale:!0};case"CREATE_COMPLETE":const{resource:o}=t.payload;return Ot.has(o)?{...e,isProfilePinsStale:!0}:e;case"SET_OWN_PROFILE_PINS_REFRESH":return{...e,isProfilePinsStale:!1};case"DISMISS_UNAUTH_APP_UPSELL":return{...e,unauthInterstitialDismissed:!0};case"LOGGED_OUT_USER_INFO_FOUND":return{...e,loggedOutUserInfo:t.payload};case"LOGGED_OUT_USER_INFO_NOT_FOUND":return{...e,loggedOutUserInfo:null};case"SET_SHARE_ON_BOARD_PAGE":return{...e,boardPageSharingOptions:t.payload};case"SCROLL_TO_CLOSEUP_PIN":return{...e,scrollToCloseupPin:!0};case"STOP_SCROLL_TO_CLOSEUP_PIN":return{...e,scrollToCloseupPin:!1};case"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX":return e.isAuthenticated?{...e,firstHomeFeedRequestAfterNux:t.payload}:e;case"SET_LANDING_PAGE_TYPE":return{...e,landingPageType:t.payload};default:return e}},Dt=(e={},t)=>{if(t.type===c.zP||t.type===c.aW){const{payload:{response:n,resource:i}}=t;if("CountriesResource"===i)return{...e,countryOptions:n.resource_response.data.map((e=>({value:e.key,label:e.name})))};if("LocalesResource"===i)return{...e,localeOptions:n.resource_response.data.map((e=>({value:e.key,label:e.name})))};if("NewsSettingsResource"===i)return{...e,newsSettings:n.resource_response.data};if("PushSettingsResource"===i)return{...e,pushSettings:n.resource_response.data}}if("SETTINGS_CHANGE"===t.type){var n,i;const{id:a,value:r}=t.payload,{newsSettings:o,pushSettings:s}=e,l=null!==(n=null==o?void 0:o.map((e=>(e.options=e.options.map((e=>(e.id===a&&(e.value=r),e))),e))))&&void 0!==n?n:[],d=null!==(i=null==s?void 0:s.map((e=>(e.options=e.options.map((e=>(e.id===a&&(e.value=r),e))),e))))&&void 0!==i?i:[];return{...e,newsSettings:l,pushSettings:d}}return e},kt=e=>e.trim().toLowerCase(),Lt=(0,o.Z)("stories",((e={},t)=>{switch(t.type){case c.AF:case c.aW:if("BoardSectionResource"===t.payload.resource&&t.payload.normalizedResponse){var n;const{name:i,board_id:a}=null!==(n=t.payload.options)&&void 0!==n?n:{};return(({state:e,boardId:t,name:n})=>{const i=kt(n);return Object.keys(e).reduce(((n,a)=>{const r=e[a];return{...n,[a]:"section_title_recommendations"===r.story_type&&r.objects.find((e=>"board"===e.schema&&e.id===t))?{...r,objects:r.objects.filter((e=>!("board_section_name_recommendation"===e.type&&kt(e.name)===i)))}:r}}),{})})({state:e,boardId:a,name:i})}return e;case c.zP:if("BoardsFeedResource"===t.payload.resource){const n=t.payload.response.resource_response.data.filter((e=>"story"===e.type)).reduce(((e,t)=>({...e,[t.id]:t})),{});return{...e,...n}}return e;default:return e}})),jt=(e={},t)=>{switch(t.type){case c.zP:case c.aW:{const{response:n,resource:i}=t.payload,a=n.resource_response.data;if("StoryPinDraftsResource"===i){const t=(a||[]).reduce(((e,t)=>(e[t.id]=t,e)),{});return{...e,...t}}return e}case"STORY_PIN_DATA_DELETE":{const{storyPinDataId:n}=t.payload,i={...e};return delete i[n],i}default:return e}},Ut=(0,o.Z)("todayArticles",((e={},t)=>(t.type,e))),Mt={},Ft=(e=Mt,t)=>{if(t.type===c.zP||t.type===c.aW){const{response:{resource_response:{data:n}},resource:i}=t.payload;if(["IdeasHubTodayArticlesResource","RelatedArticlesResource","TodayTabInterestFeedResource","TodayTabResource"].includes(i)&&n){const t=n.reduce(((e,t)=>((0,ut.Y_)(t)&&(e[t.id]=t),e)),{});return{...e,...t}}if("TodayArticleResource"===i&&null!=n&&n.id){const t={[n.id]:n};return{...e,...t}}if("TodayArticleFeedResource"===i&&n&&(0,ut.nx)(n)){const t=n.reduce(((e,t)=>(Array.isArray(t.objects)&&t.objects.forEach((t=>{(0,ut.Y_)(t)&&(e[t.id]=t)})),e)),{});return{...e,...t}}}return e},Bt=(e,t)=>({...e,[t.id]:{...e[t.id],...t}}),Gt=(0,o.Z)("topics",((e={},t)=>{var n;switch(t.type){case"TOPIC_FOLLOW":const{payload:{id:i,value:a}}=t;return Bt(e,{id:i,is_followed:a});case c.zP:const{payload:{options:r,resource:o,response:s}}=t,l=s.resource_response.data,d="ApiResource"===o&&(null==r||null===(n=r.url)||void 0===n?void 0:n.match(/\/v3\/boards\/([0-9]|[a-z]|[A-Z])+\/interests\//));return("PinInterestsResource"===o||d)&&null!=l&&l.length?l.reduce(((e,t)=>Bt(e,t)),e):e;default:return e}})),zt=(0,o.Z)("triedits",((e={},t)=>(t.type,e))),Ht={isUnderageConfirmationModalVisible:!1},Zt=(e=Ht,t)=>{switch(t.type){case"SET_IS_UNDERAGE_CONFIRMATION_MODAL_VISIBLE":const{isUnderageConfirmationModalVisible:n}=t.payload;return{...e,isUnderageConfirmationModalVisible:n};default:return e}};var Vt=n(401593);function Wt(e={},t){if(t.type===c.zP){const{payload:{response:n,resource:i,options:a}}=t,r=n.resource_response.data,o=(null==a?void 0:a.userId)||"";if("VerifiedMerchantResource"===i&&r)return((e,t,n)=>({...e,[t]:n}))(e,o,r)}return e}var Kt=n(494990),Yt=n(424486);function qt({viewingUser:e}){return{adminUser:r,articles:s,billing:l,boards:m,boardsections:y,businessAccess:oe,businessNux:le,underageConfirmation:Zt,changeBoardFromToast:ce,contactRequests:ue,createBoardUpsell:pe,desktopStories:ge,didItData:Ie,experiences:Kt.D,experiencesMulti:Kt.G,explore:xe,feeds:Pe.ZP,flashlight:be,form:i.Z,guidance:Re,homefeedTabUI:Ce,inbox:Oe,invites:Ne.Z,modules:De,mostRecentBoard:ke,notifications:Le,pinbuilder:at,pinbuilderMobile:ot,pinNavContext:st,pins:Et,productFilters:St,quickPromote:xt,reactions:Pt,resources:a.Z,scheduledPins:wt,search:Rt.Z,session:Nt,settings:Dt,stories:Lt,storyPinData:jt,todayarticles:Ft,todayArticles:Ut,topics:Gt,triedits:zt,ui:Yt.rh,users:(0,Vt.ZP)(e),verifiedMerchants:Wt}}},871144:(e,t,n)=>{n.d(t,{U:()=>a,Z:()=>o});var i=n(832559);const a=e=>{var t;return`${e.board}:${null!==(t=e.invited_user)&&void 0!==t?t:""}`},r=(e,t)=>({...e,[a(t)]:{...e[a(t)],...t}}),o=(0,i.Z)("collaboratorinvite",((e={},t)=>{var n,i,o;switch(t.type){case"BOARD_COLLABORATOR_DELETE":return r(e,{board:t.payload.boardId,invited_user:t.payload.userId,status:"not_invited"});case"BOARD_COLLABORATOR_ADD":const{boardId:s,viewingUser:l,status:d,collaboratingUsers:c}=t.payload;return c.map((e=>null==e?void 0:e.id)).filter(Boolean).reduce(((e,t)=>{const n={access:["delete"],board:s,invited_user:t,invited_by_user:l,status:d,type:"collaboratorinvite"},i=a(n);return e[i]&&"not_invited"!==e[i].status?e:r(e,n)}),{...e});case"BOARD_INVITE_ACCEPTED_BY_VIEWER":return r(e,{board:t.payload.boardId,invited_user:null===(n=t.payload.collaboratingUser)||void 0===n?void 0:n.id,status:"accepted"});case"BOARD_INVITE_APPROVED_BY_VIEWER":const u=t.payload.isRequestToJoin?"accepted":"new";return r(e,{board:t.payload.boardId,invited_user:null!==(i=null===(o=t.payload.collaboratingUser)||void 0===o?void 0:o.id)&&void 0!==i?i:"",status:u});case"BOARD_INVITE_DENIED_BY_VIEWER":const _={board:t.payload.boardId,invited_user:t.payload.userId},p=a(_),{[p]:h,...m}=e;return m;default:return e}}))},20064:(e,t,n)=>{n.d(t,{E:()=>r,Z:()=>o});var i=n(682492),a=n.n(i);const r={description:"",descriptionError:null,editorInstanceId:"",isTaggable:!0,link:"",linkError:null,media:null,pinTagIds:[],selectedPinTagId:null,tagError:null,title:"",titleError:null,canvasJson:null,signals:{},userMentionTags:[]},o=(e=r,t)=>{switch(t.type){case"PIN_DRAFT_ADD_PIN_ITEM":case"PIN_ITEM_UPDATE_DATA":{const n=t.payload.pinItem;return{...e,...n,signals:{...e.signals,...null==n?void 0:n.signals}}}case"PIN_ITEM_ADD_PIN_TAG":{const{pinTagId:n}=t.payload;return{...e,pinTagIds:[...e.pinTagIds,n]}}case"PIN_ITEM_REMOVE_PIN_TAG":{const{pinTagId:n}=t.payload;return{...e,pinTagIds:e.pinTagIds.filter((e=>e!==n))}}case"PIN_ITEM_SET_DESCRIPTION":{const{description:n}=t.payload;return{...e,description:n}}case"PIN_ITEM_SET_DESCRIPTION_ERROR":{const{descriptionError:n,signals:i}=t.payload;return{...e,descriptionError:n,signals:{...e.signals,...i}}}case"PIN_ITEM_SET_IS_TAGGABLE":{const{isTaggable:n}=t.payload;return{...e,isTaggable:n}}case"PIN_ITEM_SET_LINK":{const{link:n}=t.payload;return{...e,link:n}}case"PIN_ITEM_SET_LINK_ERROR":{const{linkError:n,signals:i}=t.payload;return{...e,linkError:n,signals:{...e.signals,...i}}}case"PIN_ITEM_SET_MEDIA":{const{media:n}=t.payload,i=!(!n||e.link)||e.isTaggable;return{...e,media:n,isTaggable:(!n||"localVideo"!==n.type)&&i,pinTagIds:[],selectedPinTagId:null,canvasJson:null}}case"PIN_ITEM_UPDATE_MEDIA":{const{media:n}=t.payload;return{...e,media:e.media?a()({},e.media,n):null}}case"PIN_ITEM_SET_SELECTED_PIN_TAG_ID":{const{selectedPinTagId:n}=t.payload;return{...e,selectedPinTagId:n}}case"PIN_ITEM_SET_TAG_ERROR":{const{tagError:n}=t.payload;return{...e,tagError:n}}case"PIN_ITEM_SET_TITLE":{const{title:n}=t.payload;return{...e,title:n}}case"PIN_ITEM_SET_TITLE_ERROR":{const{titleError:n,signals:i}=t.payload;return{...e,titleError:n,signals:{...e.signals,...i}}}case"PIN_ITEM_SET_EDITED_IMAGE":{const{editedMedia:n,canvasJson:i}=t.payload;return{...e,media:n,canvasJson:i}}default:return e}}},508228:(e,t,n)=>{n.d(t,{Z:()=>_,_:()=>a});var i=n(338739);const a=20,r={currentSearch:{query:"",scope:"pins"},queries:{},productFilters:{},recentSearches:[],recentPersonalSearches:[],recommendedSearches:[],typeaheadCache:{},pins:{},visualSearches:{}},o=(e,t)=>{const n=e.recentPersonalSearches.filter((e=>!t.find((t=>(t.query||"").toLowerCase()===(e.query||"").toLowerCase()))));return{recentPersonalSearches:t.concat(n).slice(0,a)}},s=(e,t)=>({...e,...o(e,t)}),l=(e,t)=>{const n=e.recentSearches.filter((e=>!t.find((t=>(t.query||"").toLowerCase()===(e.query||"").toLowerCase()))));return{recentSearches:t.concat(n).slice(0,a)}},d=(e,t)=>({...e,...l(e,t)}),c=(e,t,n)=>({...e,currentSearch:{query:n||"",scope:t||"pins"}}),u=(e,t,n)=>t?t.startsWith("my_")?s(e,[{query:n,type:"recent_personal_searches",id:n,is_verified_merchant:!1,label:n,url:""}]):d(e,[{query:n,type:"recent_query",id:n,is_verified_merchant:!1,label:n,url:""}]):e,_=(e=r,t)=>{switch(t.type){case i.zP:{const{resource:i,response:r}=t.payload;if("AdvancedTypeaheadResource"===i){var n;const{term:i,recent_queries_tags:a}=null!==(n=t.payload.options)&&void 0!==n?n:{};return((e,t,n,i)=>{if(!t.length){if((n||"").split(",").length>1){const t=[],n=[];return i.forEach((e=>{"recent_personal_searches"===e.type?t.push(e):n.push(e)})),{...e,...o(e,t),...l(e,n)}}return"recent_personal_searches"===n?s(e,i):d(e,i)}return{...e,typeaheadCache:{...e.typeaheadCache,[t]:i}}})(e,i,a,r.resource_response.data.items)}if("SearchTabResource"===i)return((e,t)=>({...e,recommendedSearches:[...e.recommendedSearches,...t]}))(e,r.resource_response.data);if("BaseSearchResource"===i){var a;const{query:n,auto_correction_disabled:i,scope:o,article:s,filters:l,appliedProductFilters:d}=null!==(a=t.payload.options)&&void 0!==a?a:{},_=`${o}:${n}:${l||""}:${d}:${s||""}${i?":auto-correction-disabled":""}`,p=r.resource_response.data.productFilters,h={guides:r.resource_response.data.guides,typo:r.resource_response.data.typo,nags:r.resource_response.data.nag,sensitivity:r.resource_response.data.sensitivity,filters:r.resource_response.data.filters,tabs:r.resource_response.data.tabs,oneBarModules:r.resource_response.data.oneBarModules};return((e,t,n,i)=>{const a=`${i}-${n}`,r=e.productFilters[a];return r?t?{...e,productFilters:{...e.productFilters,[a]:Object.entries(r).reduce(((e,n)=>{const i=n[0],a=n[1],r=t[i];return Array.isArray(a)&&Array.isArray(r)?e[i]=((e,t)=>e.concat(t.filter((t=>!e.some((e=>e.label===t.label))))))(a,r):Array.isArray(a)||Array.isArray(r)||(e[i]={...a,max_value:Math.max(a.max_value,r.max_value),min_value:Math.min(a.min_value,r.min_value),suggested_max_value:Math.max(a.suggested_max_value,r.suggested_max_value)}),e}),{})}}:e:{...e,productFilters:{...e.productFilters,[a]:t}}})(u(c(((e,t,n,i)=>({...e,queries:{...e.queries,[t]:n}}))(e,_,h),o,n),o,n),p,o,n)}if("SearchResource"===i){const{query:n,scope:i}=t.payload.options||{};return u(e,i,n)}if("VisualLiveSearchResource"===i){const{data:n}=r.resource_response;return{...e,visualSearches:{...e.visualSearches,[t.payload.options.pin_id]:n.annotations}}}return e}case"CLEAR_RECENT_SEARCH":{const{query:n}=t.payload;return((e,t)=>({...e,recentSearches:e.recentSearches.filter((e=>e.query!==t))}))(e,n)}case"CLEAR_RECENT_SEARCHES":return(e=>({...e,recentSearches:[]}))(e);case"CLEAR_RECENT_PERSONAL_SEARCH":{const{query:n}=t.payload;return((e,t)=>({...e,recentPersonalSearches:e.recentPersonalSearches.filter((e=>e.query!==t))}))(e,n)}case"CLEAR_RECENT_PERSONAL_SEARCHES":return(e=>({...e,recentPersonalSearches:[]}))(e);case"RELOAD_VISUAL_SEARCH_ANNOTATIONS":return((e,t)=>({...e,visualSearches:{...e.visualSearches,[t]:[]}}))(e,t.payload.pinId);case"UPDATE_CURRENT_SEARCH":{const{query:n,scope:i}=t.payload;return c(e,i,n)}case"UPDATE_RECENT_SEARCHES":{const{query:n,scope:i}=t.payload;return u(e,i,n)}default:return e}}},424486:(e,t,n)=>{n.d(t,{Cp:()=>m,rh:()=>g,XT:()=>h,xw:()=>v});const i={},a=(e=i,t)=>{if("BOARD_NOTE_DATA_CREATED"===t.type){const{id:n}=t.payload,i={...e};return i[n]={...t.payload},i}if("BOARD_NOTE_DATA_CLEARED"===t.type){const{id:n}=t.payload;if(e[n]){const t={...e};return delete t[n],t}return e}return e},r={current:null,locationToErrorMap:{}},o=(e=r,t)=>{if("SET_LOCATION_TO_ERROR_MAP_ENTRY"===t.type){const n={...e.locationToErrorMap};return n[t.payload.pathname]=t.payload.renderError,{...e,locationToErrorMap:n}}if("UNSET_LOCATION_TO_ERROR_MAP_ENTRY"===t.type){const n={...e.locationToErrorMap};return delete n[t.payload.pathname],{...e,locationToErrorMap:n}}return e},s={step:"welcome"},l=(e=s,t)=>{switch(t.type){case"SET_NUX_PROGRESS":return{...e,step:t.payload.step};default:return e}},d={images:[]},c=(e=d,t)=>{switch(t.type){case"SET_NUX_SELECTED_INTEREST_IMAGES":return{...e,images:t.payload.images};default:return e}},u={recentSaves:[],recentUpsell:{}},_=(e=u,t)=>{switch(t.type){case"PIN_BETTER_SAVE":{const{localPin:n,boardId:i}=t.payload;return n&&i?{...e,recentSaves:[{boardId:i},...e.recentSaves]}:e}case"POST_REPIN_MORE_IDEAS_UPSELL_SHOWN":{const{boardId:n}=t.payload;return{...e,recentUpsell:{...e.recentUpsell,[n]:Date.now()}}}default:return e}};var p=n(14890);const h={mainComponent:o},m={boardNotesComposer:a,nuxSelectedInterestImages:c,nuxProgress:l,postRepinMoreIdeasUpsell:_},g=(0,p.combineReducers)({...h,...m}),v=(0,p.combineReducers)(h)},401593:(e,t,n)=>{n.d(t,{ZP:()=>d});var i=n(832559),a=n(338739);const r=["SearchResource","UserFollowingResource","SuggestedCreatorFollowsResource"],o=(e,t)=>({...e,[t.id]:{...e[`${t.id}`],...t}}),s=(e,t)=>t.reduce(((e,t)=>{const{type:n}=t;return n&&"user"!==n?e:o(e,t)}),{...e});function l(e={},t){var n;switch(t.type){case"UPDATE_USER_PIN_COUNT":{const{payload:{increment:n}}=t;return{...e,pin_count:(e.pin_count||0)+n}}case"USER_FOLLOW":const{value:i}=t.payload,a=i?1:-1;return{...e,explicitly_followed_by_me:i,follower_count:(null!==(n=e.follower_count)&&void 0!==n?n:0)+a};case"USER_BLOCK":return{...e,blocked_by_me:t.payload.value,...t.payload.value?{explicitly_followed_by_me:!1}:{}};default:return e}}function d(e){var t;let n=null!==(t=e&&e.id)&&void 0!==t?t:"";return(0,i.Z)("users",((t=function(e){var t;const n=null!==(t=e&&e.id)&&void 0!==t?t:"";return{[n]:{...e||{},id:n}}}(e),i)=>{var d,c;const u=n?t[n]:void 0;switch(i.type){case"REPLACE_STATE":return{...t,...i.payload.users};case"BOARD_SECTION_DELETE":{var _;const{userId:e,pinCount:n}=i.payload,a=null!==(_=t[e].pin_count)&&void 0!==_?_:0;return o(t,{id:e,pin_count:a-n})}case a.AF:{const{options:e,resource:n,response:a}=i.payload,r=e.user_id;if(r){const{board_count:i=0,pin_count:s=0}=t[r]||{},{resource_response:l}=a;if("BoardResource"===n){const{initial_pins:n}=e,{owner:a={}}=l.data;return o(t,{id:r,pin_count:a.pin_count||s+n.length,board_count:i+1,last_repin_id:n[0]})}if("RepinResource"===n||"PinResource"===n&&"uploaded"===e.method){const{pin_id:n}=e,{pinner:i={}}=l.data;return o(t,{id:r,pin_count:(i.pin_count||s)+1,last_repin_id:n})}}return t}case a.zP:case a.aW:const{resource:e,normalizedResponse:h,options:m,response:{resource_response:{data:g}}}=i.payload;if(i.type===a.zP&&"BoardPickerBoardsResource"===e&&h)return o(t,{id:(null==m?void 0:m.user_id)||"",recent_boards:h.result.boards_shortlist});if("UserResource"===e&&g)return o(t,g);if(r.includes(e)&&g)return s(t,g);if("TodayArticleResource"===e&&null!=g&&g.article_creator_user)return o(t,g.article_creator_user);if("TodayArticleFeedResource"===e&&Array.isArray(g)){const e=g.reduce(((e,t)=>{var n;return"story"===t.type&&"user"===(null===(n=t.user)||void 0===n?void 0:n.type)&&e.push(t.user),e}),[]);return s(t,e)}return t;case"USER_BLOCK":const{payload:{id:v}}=i;return{...t,[v]:l(t[v],i)};case"USER_FOLLOW":const{payload:{id:f}}=i;return{...t,[f]:l(t[f],i)};case"USER_BULK_FOLLOW":const{ids:y,value:E}=i.payload,S={...t};return y.forEach((e=>{const n=t[e];S[e]={...n,explicitly_followed_by_me:E}})),S;case"USER_SETTING_CHANGE":return o(t,{id:i.payload.id,[i.payload.field]:i.payload.value});case"USER_PARTNER_SETTING_CHANGE":return((e,t)=>({...e,[t.id]:{...e[t.id],partner:{...e[t.id].partner,...t.partner}}}))(t,{id:i.payload.id,partner:{[i.payload.field]:i.payload.value}});case"UPDATE_USER_PIN_COUNT":{const{payload:{userId:e}}=i;return t[e]?{...t,[e]:l(t[e],i)}:t}case"UPDATE_USER_SCHEDULED_PIN_COUNT":{const{payload:{userId:e,increment:n}}=i,a=t[e],r=a.scheduled_pin_count||0;return{...t,[e]:{...a,scheduled_pin_count:r+n}}}case"PROFILE_COVER_SOURCE":const{payload:{coverSource:T,id:I}}=i,x=t[I]||{};return{...t,[I]:{...x,profile_cover:T}};case"BOARD_CREATE_COMPLETE":return u&&!u.has_quicksave_board?{...t,[u.id]:{...u,board_count:void 0===u.board_count?void 0:u.board_count+1}}:t;case"BOARD_DELETE":if(u){var p;const{boardPinCount:e}=i.payload,n=null!=e?e:0,a=null!==(p=u.pin_count)&&void 0!==p?p:0;return{...t,[u.id]:{...u,board_count:u.board_count?u.board_count-1:u.board_count,pin_count:a-n}}}return t;case"PIN_DELETE":return o(t,{id:i.payload.userId,pin_count:null!==(d=t[i.payload.userId].pin_count)&&void 0!==d?d:-1});case"PIN_ADD":const{pinnerId:P}=i.payload;return o(t,{id:P,pin_count:null!==(c=t[P].pin_count)&&void 0!==c?c:1});case"SET_PERSONALIZATION_COOKIES":if(u){const{payload:e}=i;return{...t,[u.id]:{...u,allow_personalization_cookies:e.value}}}return t;case"SET_ANALYTICS_COOKIES":if(u){const{payload:e}=i;return{...t,[u.id]:{...u,allow_analytic_cookies:e.value}}}return t;case"SET_MARKETING_COOKIES":if(u){const{payload:e}=i;return{...t,[u.id]:{...u,allow_marketing_cookies:e.value}}}return t;case"ALLOW_ALL_COOKIES":return u?{...t,[u.id]:{...u,allow_personalization_cookies:!0,allow_analytic_cookies:!0,allow_marketing_cookies:!0}}:t;case"REJECT_ALL_COOKIES":return u?{...t,[u.id]:{...u,allow_personalization_cookies:!1,allow_analytic_cookies:!1,allow_marketing_cookies:!1}}:t;case"AUTHENTICATE_USER":case"REGISTER_USER":const b=i.payload.user.id;return n=b,{...t,[b]:{...t[b],...i.payload.user}};case"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX":const A=i.payload;return u&&u.firstHomeFeedRequestAfterNux!==A?{...t,[u.id]:{...u,firstHomeFeedRequestAfterNux:A}}:t;case"UPDATE_USER_SET":if(u){const e=i.payload.partner?{...u.partner,...i.payload.partner}:u.partner;return{...t,[u.id]:{...u,...i.payload,partner:e}}}return t;case"UPDATE_USER_SOCIAL_NETWORK":if(u){const e=i.payload.socialNetworkName;return{...t,[u.id]:{...u,[`connected_to_${e}`]:i.payload.connected}}}return t;case"UPDATE_HAS_QUICKSAVE_BOARD":const{createdQuicksaveBoard:w}=i.payload;if(u&&u.has_quicksave_board!==w){const{createdQuicksaveBoard:e}=i.payload;return{...t,[u.id]:{...u,has_quicksave_board:e}}}return t;case"UPDATE_USER_SAVE_BEHAVIOR":const{saveBehavior:R}=i.payload;return u&&u.save_behavior!==R?{...t,[u.id]:{...u,save_behavior:R}}:t;case"USER_DOMAIN_VERIFIED":if(u&&u.verified_user_websites){const{verifiedWebsite:e}=i.payload;return{...t,[u.id]:{...u,verified_user_websites:[...u.verified_user_websites,e],is_any_website_verified:!0}}}return t;case"USER_DOMAIN_UNVERIFIED":if(u&&u.verified_user_websites){const{verifiedWebsite:e}=i.payload,n=u.verified_user_websites&&u.verified_user_websites.indexOf(e),a=u.verified_user_websites&&u.verified_user_websites.slice(0);return a&&a.splice(n,1),{...t,[u.id]:{...u,verified_user_websites:a,isAnyWebsiteVerified:a&&a.length>0}}}return t;default:return t}}))}},550293:(e,t,n)=>{function i(e){const{users:t}=e;if(!t)return;const n=Object.keys(t).find((e=>void 0!==t[e].login_state));return n?t[n]:void 0}n.d(t,{Z:()=>i})},675752:(e,t,n)=>{n.d(t,{A:()=>i});const i=e=>{const t=e.rich_metadata;return t?t.products?144:t.article?141:t.recipe?145:139:140}},977734:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(349741),a=n(412067);function r({history:e,i18n:t,logContextEvent:n,onSuccess:r,onUndo:o,originalPinId:s,pinId:l,trackingParams:d,disableRepinAnimation:c,showNewUserSavetoProfileAnimation:u,showRepinConfirmation:_,historyPush:p}){return(h,m)=>{const{pins:g,session:v}=m(),{userId:f}=v,y=g[l],E={name:t._('Quick Saves', 'quickSave.boardName', 'Name of the auto-created board in quicksave experience.'),layout:"quick_saves",protected:!1,return_existing:!0,user_id:f};return a.Z.create("BoardResource",E).callCreate().then((a=>{const l=a.resource_response.data;return new i.Z({boardId:l.id,dispatch:h,isQuickSave:!0,history:e,i18n:t,onSuccess:r,onUndo:o,originalPinId:s,pin:y,resourceName:"RepinResource",section:void 0,showNewUserSavetoProfileAnimation:u,showRepinToasts:e=>_?_(e,c):void 0,trackingParams:d,userId:v.userId,historyPush:p}).processRepin(n)}))}}},571577:(e,t,n)=>{n.d(t,{H:()=>r,I:()=>a});var i=n(425288);const{Provider:a,useHook:r}=(0,i.Z)("ScreenSize")},962551:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(643010),a=n(883119),r=n(785893);function o({guide:e,guidedQuery:t,isSlot0Style:n=!1}){const{dominant_color:o,display:s}=e,l=(0,r.jsx)(a.iP,{role:"link",tapStyle:"none",rounding:"pill",href:`/search/pins/?rs=guide&q=${encodeURIComponent(t)}`,children:(0,r.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{backgroundSize:"cover",backgroundColor:o,whiteSpace:n?void 0:"nowrap"}},"data-test-id":"search-guide",minWidth:n?void 0:84,padding:4,rounding:"pill",children:(0,r.jsx)(a.xv,{align:n?"start":"center",color:n?(0,i.Yc)()?"inverse":"default":"inverse",lineClamp:n?2:void 0,size:"200",weight:n?"normal":"bold",children:s})})});return n?l:(0,r.jsx)(a.xu,{flex:"none",marginStart:-7,paddingX:4,children:l})}const s=-1,l=0;function d({guides:e,isSlot0Style:t=!1,query:n}){const i=({position:e,term:t})=>e===s?t:e===l?`${t} ${n}`:`${n} ${t}`,d=()=>e.map((e=>(0,r.jsx)(o,{guide:e,guidedQuery:i(e),isSlot0Style:t},e.display)));return t?(0,r.jsx)(a.xu,{padding:2,children:(0,r.jsx)(a.kC,{width:"100%",gap:{row:0,column:1},direction:"column",alignItems:"start",children:d()})}):(0,r.jsx)(a.xu,{overflow:"hidden",width:"calc(100vw - 16px)",children:(0,r.jsx)(a.xu,{display:"flex",marginBottom:-2,marginStart:-4,overflow:"auto",paddingX:7,paddingY:2,position:"relative",width:"100vw",children:d()})})}},225313:(e,t,n)=>{n.d(t,{Z:()=>G});var i=n(667294),a=n(702664),r=n(90771),o=n(31149),s=n(659522),l=n(214680),d=n(331744),c=n(172071),u=n(757146),_=n(785893);function p({size:e=56}){return(0,_.jsxs)("svg",{display:"block",fill:"none",height:e,viewBox:"0 0 56 56",width:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{fill:"#e60023",height:"56",rx:"28",width:"56"}),(0,_.jsx)("path",{clipRule:"evenodd",d:"m28 31.9842 6 3.6666v-15.6508h-12v15.6508zm0 3.5158 5.9571 3.6404c1.3327.8145 3.0429-.1447 3.0429-1.7065v-17.4339c0-1.6569-1.3431-3-3-3h-12c-1.6569 0-3 1.3431-3 3v17.4339c0 1.5618 1.7102 2.521 3.0429 1.7065z",fill:"#fff",fillRule:"evenodd"})]})}var h=n(862960),m=n(941646),g=n(499128),v=n(464240),f=n(287072),y=n(89396),E=n(22641),S=n(467570),T=n(867820),I=n(773285),x=n(50286),P=n(167912),b=n(780280),A=n(898781),w=n(112690),R=n(52022),C=n(86802),O=n(642832),N=n(883119),D=n(844974),k=n(644035),L=n(343341);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 U=56,M=String(86),F=({text:e})=>(0,_.jsx)(N.xv,{align:"center",size:"100",children:e});class B extends i.PureComponent{constructor(...e){super(...e),j(this,"state",{invitePath:"",inviteCode:null,inviteMessage:"",inviteTitle:"",Clipboard:null,fbLoaded:!1}),j(this,"setClipboard",(e=>{const{Clipboard:t,invitePath:n}=this.state;(0,O.sF)(n,t,e,this.showCopyToast)})),j(this,"showCopyToast",(()=>{var e,t,n,i;this.logShareClick(12),this.setNewAppOrder(12),null===(e=(t=this.props).onShare)||void 0===e||e.call(t),this.props.showToast((({hideToast:e})=>(0,_.jsx)(g.ZP,{text:this.props.i18n._('Copied link to your clipboard to share', 'url link was copied to user clipboard', 'url link was copied to user clipboard'),onHide:e}))),null===(n=(i=this.props).setShareSent)||void 0===n||n.call(i,!0),this.props.trackInteraction({action:"click",item:"copy-link-share-icon"})})),j(this,"getDefaultAppOrder",(()=>{const{country:e,isDesktop:t}=this.props;return(0,O.pW)({country:e,isDesktop:t,shouldShowNativeShare:Boolean(navigator.share)})})),j(this,"getAppOrder",(()=>{const{isDesktop:e}=this.props;let t=JSON.parse((0,D.qn)(C.B));return!t||e?this.getDefaultAppOrder():(t=[...t.filter((e=>11!==e&&12!==e)),12],Boolean(navigator.share)&&t.push(11),t)})),j(this,"setNewAppOrder",(e=>{const{isDesktop:t}=this.props;t||C.F6.has(e)||(0,D.Nh)(C.B,JSON.stringify([e,...this.getAppOrder().filter((t=>t!==e))]))})),j(this,"handleMessagingAppClick",(e=>{var t,n,i,a;null===(t=(n=this.props).onShare)||void 0===t||t.call(n),null===(i=(a=this.props).setShareSent)||void 0===i||i.call(a,!0),this.logShareClick(e),this.setFreshInviteCode(e),C.rO.has(e)||(0,D.Nh)(C.Cq,e),this.setNewAppOrder(e)})),j(this,"handleMessengerClick",(()=>{this.props.trackInteraction({action:"click",item:"fbmessenger-share-icon"}),this.handleMessagingAppClick(6)})),j(this,"handleTwitterClick",(()=>{this.props.trackInteraction({action:"click",item:"twitter-share-icon"}),this.handleMessagingAppClick(9)})),j(this,"handleWhatsappClick",(()=>{this.props.trackInteraction({action:"click",item:"whatsapp-share-icon"}),this.handleMessagingAppClick(10)})),j(this,"handleLineClick",(()=>{this.handleMessagingAppClick(8)})),j(this,"handleTelegramClick",(()=>{this.handleMessagingAppClick(20)})),j(this,"handleViberClick",(()=>{this.handleMessagingAppClick(22)})),j(this,"handleEmailClick",(()=>{this.handleMessagingAppClick(3),this.props.trackInteraction({action:"click",item:"email-share-button"})})),j(this,"handleFacebookClick",(e=>{var t,n,i,a;const{isDesktop:r}=this.props;e.preventDefault(),null===(t=(n=this.props).onShare)||void 0===t||t.call(n),null===(i=(a=this.props).setShareSent)||void 0===i||i.call(a,!0),(0,T.My)(`pcons.${r?"desktop":"mobile"}.facebook-share-icon`),this.props.trackInteraction({action:"click",item:"facebook-share-icon"}),this.logShareClick(5);const{inviteCode:o,invitePath:s,fbLoaded:l}=this.state;(0,O.Rh)(l,s,o||""),this.setFreshInviteCode(5),this.setNewAppOrder(5)})),j(this,"handleSmsClick",(()=>{this.handleMessagingAppClick(4)})),j(this,"logShareClick",((e,t=this.state.inviteCode)=>{const{objectId:n,objectType:i,component:a,clientTrackingParams:r,logContextEvent:o,viewType:s,viewParameter:l}=this.props;(0,O.Iz)({inviteChannel:e,inviteCode:t,objectId:n,objectType:i,component:a,clientTrackingParams:r,logContextEvent:o,view_type:s,view_parameter:l})})),j(this,"copyButtonRef",null),j(this,"renderAppsInCustomOrder",(({Email:e,Facebook:t,FBMessenger:n,Line:a,WhatsApp:r,Twitter:o,Viber:s,Telegram:l,CopyLink:d,Sms:c,ShareVia:u})=>{const p=this.getAppOrder(),h=new Map([[6,n],[10,r],[5,t],[9,o],[3,e],[8,a],[20,l],[22,s],[4,c],[12,d],[11,u]]);return(0,_.jsx)(i.Fragment,{children:p.map((e=>h.get(e)))})})),j(this,"onHandleRepinSave",(({event:e,dangerouslyDisableOnNavigation:t})=>{var n,i;t(),null===(n=(i=this.props).onSave)||void 0===n||n.call(i),this.props.onNavigation({event:e})}))}componentDidMount(){this.setFreshInviteCode(12),(0,S.we)(this.props.locale).then((()=>{this.setState({fbLoaded:!0})})),n.e(6527).then(n.t.bind(n,842152,23)).then((({default:e})=>{e.isSupported()&&(this.setState({Clipboard:e}),this.setClipboard(this.copyButtonRef))}))}componentDidUpdate({objectId:e}){const{objectId:t}=this.props;e!==t&&this.setFreshInviteCode(12)}async setFreshInviteCode(e){const{objectId:t,objectType:n}=this.props,{invitePath:i,inviteCode:a,title:r,message:o}=await(0,O.yP)(e,t,n,this.props.relayEnvironment),s={};i&&(s.invitePath=i),a&&(s.inviteCode=a),r&&(s.inviteTitle=r),o&&(s.inviteMessage=o),this.setState(s)}render(){const{isDesktop:e,objectType:t,onSave:n,showSaveOption:i,isAppleDevice:a}=this.props,{invitePath:g,inviteMessage:f,inviteTitle:S}=this.state,{emailShareLink:T,messengerShareLink:I,twitterShareLink:x,whatsappShareLink:P,lineShareLink:b,telegramShareLink:A,viberShareLink:w,smsShareLink:R}=(0,O.tA)({invitePath:g,inviteTitle:S,objectType:t,i18n:this.props.i18n,isDesktop:e}),C=({children:t})=>(0,_.jsx)(N.kC,{alignItems:"center",justifyContent:"start",direction:"column",width:e?`${M}px`:"100%",children:t}),D=({children:e})=>(0,_.jsx)(N.xu,{display:"flex",justifyContent:"center",paddingX:3,marginBottom:1,children:e}),k=(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(m.Z,{id:"fbmessenger-share-icon",children:(0,_.jsx)(N.iP,{rounding:"circle",role:"link",rel:"nofollow",href:I,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleMessengerClick()},children:(0,_.jsx)(u.Z,{size:U})})})}),(0,_.jsx)(F,{text:this.props.i18n._('Messenger', 'shareMenu.icon.label.messenger', 'Facebook Messenger App')})]}),L=(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(m.Z,{id:"whatsapp-share-icon",children:(0,_.jsx)(N.iP,{rounding:"circle",role:"link",rel:"nofollow",href:P,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleWhatsappClick()},children:(0,_.jsx)(E.Z,{size:U})})})}),(0,_.jsx)(F,{text:this.props.i18n._('WhatsApp', 'shareMenu.icon.label.whatsapp', 'WhatsApp App')})]}),j=(0,_.jsx)(N.xu,{"data-test-id":"facebook-share-icon",display:"flex",flex:"shrink",children:(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(N.rU,{href:"#",onClick:({event:e})=>{this.handleFacebookClick(e)},children:(0,_.jsx)(s.Z,{size:U})})}),(0,_.jsx)(F,{text:this.props.i18n._('Facebook', 'shareMenu.icon.label.facebook', 'Facebook App')})]})}),B=(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(m.Z,{id:"twitter-share-icon",children:(0,_.jsx)(N.iP,{rounding:"circle",role:"link",rel:"nofollow",href:x,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTwitterClick()},children:(0,_.jsx)(v.Z,{size:U})})})}),(0,_.jsx)(F,{text:this.props.i18n._('Twitter', 'shareMenu.icon.label.twitter', 'Twitter App')})]}),G=(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(N.iP,{rounding:"circle",role:"link",rel:"nofollow",href:b,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleLineClick()},children:(0,_.jsx)(d.Z,{size:U})})}),(0,_.jsx)(F,{text:this.props.i18n._('Line', 'shareMenu.icon.label.line', 'Line App')})]}),z=(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(N.iP,{rounding:"circle",role:"link",rel:"nofollow",href:w,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleViberClick()},children:(0,_.jsx)(y.Z,{size:U})})}),(0,_.jsx)(F,{text:this.props.i18n._('Viber', 'shareMenu.icon.label.viber', 'Viber App')})]}),H=(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(N.iP,{rounding:"circle",role:"link",rel:"nofollow",href:A,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTelegramClick()},children:(0,_.jsx)(h.Z,{size:U})})}),(0,_.jsx)(F,{text:this.props.i18n._('Telegram', 'shareMenu.icon.label.telegram', 'Telegram App')})]}),Z=(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(m.Z,{id:"email-share-button",children:(0,_.jsx)(N.iP,{rounding:"circle",role:"link",rel:"nofollow",target:"blank",href:T,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleEmailClick()},children:(0,_.jsx)(o.Z,{size:U})})})}),(0,_.jsx)(F,{text:this.props.i18n._('Email', 'shareMenu.icon.label.email', 'Email App')})]}),V=(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(N.iP,{rounding:"circle",role:"link",rel:"nofollow",target:"blank",href:"#",onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{var n,i;e.preventDefault(),null===(n=(i=this.props).onShare)||void 0===n||n.call(i),t();const a=f.indexOf("https://");navigator.share&&navigator.share({url:g,text:a>0?f.slice(0,a):f,title:S}).then((()=>{this.handleMessagingAppClick(11),c.Z.increment("allshareoptions_navigator_share.success",1)})).catch((e=>{c.Z.increment("allshareoptions_navigator_share.error",1,{name:e.name,message:e.message})}))},children:(0,_.jsx)(N.xu,{height:U,children:(0,_.jsx)(N.hU,{accessibilityLabel:this.props.i18n._('Native share sheet icon', 'shareMenu.icon.accessibilityLabel.native_share_sheet', 'Accessibility label for native share sheet icon'),bgColor:"lightGray",icon:"share",iconColor:"darkGray",size:"xl"})})})}),(0,_.jsx)(F,{text:this.props.i18n._('Share via', 'shareMenu.icon.label.share_via', 'Share via label')})]}),W=(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(N.iP,{rounding:"circle",role:"link",rel:"nofollow",href:R,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleSmsClick()},children:a?(0,_.jsx)(l.Z,{size:U}):(0,_.jsx)(r.Z,{size:U})})}),(0,_.jsx)(F,{text:this.props.i18n._('Message', 'shareMenu.icon.label.message', 'Message App')})]}),K=(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(N.xu,{ref:this.setClipboard,dangerouslySetInlineStyle:{__style:{cursor:e?"pointer":void 0}},"data-test-id":"copy-link-share-icon",height:U,children:(0,_.jsx)(N.hU,{accessibilityLabel:this.props.i18n._('Link icon', 'shareMenu.icon.accessibilityLabel.copy', 'Accessibility label for copy link icon'),bgColor:"lightGray",icon:"link",iconColor:"darkGray",size:"xl"})})}),(0,_.jsx)(F,{text:this.props.i18n._('Copy link', 'shareMenu.icon.label.copy', 'Copy link icon')})]});return(0,_.jsxs)(N.xu,{children:[(0,_.jsx)(N.xu,{height:4}),(0,_.jsx)(N.kC,{alignItems:"stretch",justifyContent:"start",overflow:"hidden",children:(0,_.jsxs)(N.xu,{display:"flex",justifyContent:"start",height:e?180:void 0,width:e?370:"100vw",marginBottom:-2,paddingX:1,paddingY:2,overflow:e?void 0:"scrollX",wrap:e,children:[i&&n&&(()=>(0,_.jsxs)(C,{children:[(0,_.jsx)(D,{children:(0,_.jsx)(N.iP,{rounding:"circle",onTap:this.onHandleRepinSave,children:(0,_.jsx)(p,{size:U})})}),(0,_.jsx)(F,{text:this.props.i18n._('Save', 'shareMenu.icon.label.save', 'Save')})]}))(),this.renderAppsInCustomOrder({Email:Z,Facebook:j,FBMessenger:k,Line:G,WhatsApp:L,Twitter:B,Viber:z,Telegram:H,CopyLink:K,Sms:W,ShareVia:V})]})}),(0,_.jsx)(N.xu,{height:16})]})}}function G(e){const t=(0,A.ZP)(),n=(0,x.HG)(),{showToast:i}=(0,L.F9)(),{country:r,locale:o}=(0,b.B)(),s=(0,f.Z)({href:{pathname:`/pin/${e.objectId}/repin`,state:{viewType:e.viewType,viewParameter:e.viewParameter}}}),{checkExperiment:l}=(0,I.F)(),d=(0,a.useSelector)((({session:e})=>e.userAgentPlatform)),c=d===k.RL||d===k.s4,u=l("graphql_migration_sharesheet_sgrowth_web").anyEnabled,p=(0,P.useRelayEnvironment)(),h=(0,w.Z)(),m=(0,R.Z)();return(0,_.jsx)(B,{...e,country:r,i18n:t,isDesktop:n,locale:o,showToast:i,onNavigation:s,logContextEvent:h,isAppleDevice:c,relayEnvironment:u?p:void 0,trackInteraction:m})}},642832:(e,t,n)=>{n.d(t,{Iz:()=>g,Rh:()=>_,pW:()=>c,rL:()=>m,sF:()=>p,tA:()=>u,yP:()=>h});var i,a,r=n(412067),o=n(467570),s=n(867060),l=n(167912);const d={FBMessenger:6,WhatsApp:10,Facebook:5,Twitter:9,Email:3,Line:8,Telegram:20,Viber:22,Sms:4,CopyLink:12,ShareVia:11};function c({country:e,isDesktop:t,shouldShowNativeShare:n}){const{FBMessenger:i,WhatsApp:a,Facebook:r,Twitter:o,Email:s,Line:l,Telegram:c,Viber:u,Sms:_,CopyLink:p,ShareVia:h}=d;function m(){switch(e){case"US":return t?[a,r,o,s]:[_,i,a,r,o];case"ID":return t?[a,l,s,r]:[a,c,_,l,s,r];case"JP":case"TH":case"TW":return t?[l,o,s,r]:[l,s,_,o,r];case"GR":return t?[a,r,o,s]:[u,i,a,_,r,o];case"IR":case"IQ":return t?[a,r,o,s]:[a,c,_,i,o];case"UA":case"RU":return t?[a,r,o,s]:[a,u,c,r,i,_,o];default:return t?[a,r,o,s]:[a,i,_,r,o]}}return t?[p,...m()]:[...m(),p,...n?[h]:[]]}function u({invitePath:e,inviteTitle:t,objectType:n,i18n:i,isDesktop:a}){let r=i._('A Pin for you', 'shareMenu.message.title', 'Messaging title when sharing a pin to a friend');8===n&&(r=i._('Check out this article on Pinterest!', 'shareMenu.message.title', 'Messaging title when sharing a today article to a friend'));const s=`mailto:?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(e)}`,l=`fb-messenger://share/?link=${encodeURIComponent(e)}&app_id=${o.GH}`,d=`${t}\n${e}`,c=a?`https://twitter.com/intent/tweet?via=pinterest&url=${encodeURIComponent(d)}`:`twitter://post?message=${encodeURIComponent(d)}`,u=a?`https://web.whatsapp.com/send?text=${encodeURIComponent(d)}`:`whatsapp://send?text=${encodeURIComponent(d)}`,_=a?`https://social-plugins.line.me/lineit/share?url=${encodeURIComponent(e)}&text=${encodeURIComponent(t)}`:`https://line.me/R/msg/text/?${encodeURIComponent(d)}`,p=`viber://forward?text=${encodeURIComponent(d)}`;return{emailShareLink:s,messengerShareLink:l,twitterShareLink:c,whatsappShareLink:u,lineShareLink:_,telegramShareLink:`tg://msg?text=${encodeURIComponent(d)}`,viberShareLink:p,smsShareLink:`sms:?&body=${encodeURIComponent(d)}`}}function _(e,t,n,i){e&&window.FB&&window.FB.ui&&window.FB.ui({method:"share",mobile_iframe:!0,href:t},(e=>{e&&!e.error_message&&i&&i()}))}function p(e,t,n,i){if(!n||!t)return;const a=new t(n,{text:()=>e});a.on("success",(e=>{i&&i(e)})),a.on("error",(e=>{throw new Error(" error: copy command failed")}))}async function h(e,t,a,o){if(o)return((e,t,a,r,o)=>{const s=void 0!==i?i:i=n(865107),d={invite_category:t,invite_object:a,invite_channel:r};return(0,l.fetchQuery)(e,s,{inviteType:JSON.stringify(d),objectId:o}).toPromise().then((e=>{var t;return Promise.resolve((e=>{var t,n,i,a;return{inviteCode:null!==(t=null==e?void 0:e.inviteCode)&&void 0!==t?t:"",invitePath:null!==(n=null==e?void 0:e.inviteUrl)&&void 0!==n?n:"",title:null!==(i=null==e?void 0:e.title)&&void 0!==i?i:"",message:null!==(a=null==e?void 0:e.message)&&void 0!==a?a:""}})(null==e||null===(t=e.v3InviteUserExternalQuery)||void 0===t?void 0:t.data))}),(e=>Promise.reject(e)))})(o,3,a,e.toString(),t);{const n=r.Z.create("CreateExternalInviteResource",{invite_type:{invite_category:3,invite_object:a,invite_channel:e},object_id:t}),i=await n.callCreate(),{invite_url:o,invite_code:s,title:l,message:d}=i.resource_response.data;return{inviteCode:s,invitePath:o,title:l,message:d}}}const m=(e,t,i,r,o,s)=>{const d=void 0!==a?a:a=n(361600),c={inviteType:JSON.stringify({invite_category:t,invite_object:i,invite_channel:r}),inviteCode:o,objectId:s};(0,l.commitMutation)(e,{mutation:d,variables:{...c}})};async function g({inviteChannel:e,inviteCode:t,objectId:n,objectType:i,component:a,clientTrackingParams:o,logContextEvent:l,view_parameter:d,view_type:c}){let u,_;l({aux_data:{invite_object:i},object_id_str:n,component:a,clientTrackingParams:o,element:s.cc[e],event_type:102,view_type:c,view_parameter:d}),u=2===i?s.LO:3===i?s.Pu:s.dB,_=14122===a?14312:14123===a?14310:14309,l({event_type:10399,component:_,object_id_str:n,view_type:c,view_parameter:d,aux_data:{invite_object:i},element:u[e]}),r.Z.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:3,invite_object:i,invite_channel:e},invite_code:t,object_id:n,client_tracking_params:o}).callCreate()}},590674:(e,t,n)=>{n.r(t),n.d(t,{default:()=>q});var i=n(667294),a=n(225313),r=n(702664),o=n(766935),s=n(72566),l=n(936776),d=n(172071),c=n(412067),u=n(700380),_=n(784590),p=n(19121),h=n(773285),m=n(385740),g=n(698330),v=n(878499),f=n(116303),y=n(499128),E=n(407043),S=n(898781),T=n(927383),I=n(349700),x=n(313951),P=n(883119),b=n(276775),A=n(343341),w=n(785893);function R(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){var t;super(...e),t=this,R(this,"state",{viewConversation:!1,isSent:!1,path:""}),R(this,"renderViewConversationButton",(()=>{const{viewConversation:e}=this.state;return e?(0,w.jsxs)(P.kC,{alignItems:"center",direction:"row",flex:"grow",justifyContent:"center",children:[(0,w.jsx)(P.zx,{fullWidth:!0,size:"sm",text:this.props.i18n._('View chat', 'View current chat', 'View current chat'),color:"white",onClick:()=>{this.onViewConversation()}}),(0,w.jsx)(P.JO,{icon:"arrow-forward",color:"default",accessibilityLabel:this.props.i18n._('View chat', 'View current chat', 'View current chat')})]}):(0,w.jsxs)(P.kC,{alignItems:"center",direction:"row",flex:"grow",justifyContent:"center",children:[(0,w.jsx)(P.xu,{marginEnd:2,children:(0,w.jsx)(P.JO,{icon:"check",color:"default",accessibilityLabel:this.props.i18n._('sent', 'content is sent', 'content is sent')})}),(0,w.jsx)(P.xu,{marginEnd:2,children:(0,w.jsx)(P.xv,{size:"300",color:"subtle",weight:"bold",children:this.props.i18n._('Sent', 'mweb.sharemenu.contactItem.isSent', 'Text notification indicating a Pin has been sent to a pinner')})})]})})),R(this,"onViewConversation",(()=>{const{path:e}=this.state,{sendObject:t}=this.props;let n;d.Z.increment("mweb_sharesheet_view_conversation",1),this.props.history.push(e),n=3===t.objectType?13532:2===t.objectType?13529:13526,this.props.logContextEvent({view_type:this.props.viewType,event_type:10399,component:14309,element:n})})),R(this,"onInlineSend",this.props.requireAuthForLimitedLogin({fn:async function(){const e={1:"pin",2:"board",3:"user",8:"today_article"},{createConversation:n,i18n:i,isFullHeight:a,onDismiss:r,setShareSent:o,recipient:s,sendObject:l,showToast:c,email:u,updateCachedContactsAfterSend:_,userId:p,logContextOnSend:h}=t.props,m=e[l.objectType];null==h||h(),t.setState({isSent:!0});try{const e=await n({user_ids:s?[s.id,p]:void 0,[m]:l.objectId,emails:u?[u]:void 0});if(e){const n=e.id;t.setState({path:`/conversation/${n}`,viewConversation:!0}),d.Z.increment("mweb_sharesheet.inline_send",1,{success:!0}),o(!0),null==_||_(),!a&&r&&(c((({hideToast:e})=>(0,w.jsx)(y.ZP,{dataTestId:"sharesheet-inline-send-toast",primaryAction:{accessibilityLabel:i._('View the conversation', 'ContactItem.ConfirmationToast.a11yButtonText', 'Button on confirmation toast after a user sends a Pin/Board/Profile to view the conversation'),label:i._('View', 'ContactItem.ConfirmationToast.buttonText', 'Button on confirmation toast after a user sends a Pin/Board/Profile to view the conversation'),onClick:t.onViewConversation},duration:4e3,onHide:e,text:(0,I.Wc)(i._('Sent to {{recipientName}}!', 'ContactItem.ConfirmationToast.text', 'Confirmation toast after a user sends a Pin/Board/Profile'),{recipientName:(null==s?void 0:s.full_name)||""}),iconThumbnail:(0,w.jsx)(f.Z,{size:"fit",src:(null==s?void 0:s.image_large_url)||"",name:(null==s?void 0:s.full_name)||""}),thumbnailShape:"circle"}))),r(n))}}catch(g){c((({hideToast:e})=>(0,w.jsx)(y.ZP,{variant:"error",text:(null==g?void 0:g.message_detail)||(null==g?void 0:g.message)||i._('Failed to create conversation.', 'ContactItem.errorToast.text', 'Error during message send from the share sheet'),onHide:e}))),t.setState({isSent:!1}),d.Z.increment("mweb_sharesheet.inline_send",1,{success:!1,error:g})}}}))}render(){var e,t,n,i;const{isFullHeight:a,recipient:r,email:o}=this.props,{isSent:s}=this.state;return!a&&r?(0,w.jsxs)(P.xu,{"data-test-id":"sharesheet-send-button",display:"flex",direction:"column",paddingX:3,paddingY:4,children:[(0,w.jsx)(P.iP,{onTap:()=>this.onInlineSend(),children:(0,w.jsx)(P.xu,{height:56,marginBottom:1,width:56,children:(0,w.jsx)(f.Z,{size:"fit",src:null!==(e=r.image_large_url)&&void 0!==e?e:"",name:null!==(t=r.full_name)&&void 0!==t?t:""})})}),(0,w.jsx)(P.xu,{width:56,children:(0,w.jsx)(P.xv,{lineClamp:1,size:"100",align:"center",children:r.full_name})})]}):(0,w.jsxs)(P.xu,{"data-test-id":"sharesheet-send-button",position:"relative",direction:"row",display:"flex",width:"100%",alignItems:"center",justifyContent:"between",paddingY:2,children:[r?(0,w.jsx)(P.xu,{children:(0,w.jsx)(f.Z,{size:"md",src:null!==(n=r.image_large_url)&&void 0!==n?n:"",name:null!==(i=r.full_name)&&void 0!==i?i:""})}):o&&(0,w.jsx)(P.xu,{children:(0,w.jsx)(f.Z,{size:"md",name:o})}),(0,w.jsx)(P.xu,{paddingX:2,flex:"grow",maxWidth:"71%",children:(0,w.jsx)(P.xv,{lineClamp:1,weight:"bold",children:r?r.full_name:o&&s?o:(0,I.nk)(this.props.i18n._('invite {{email}}', 'mweb.newMessage.searchEmail', 'invite from email'),{email:o})})}),(0,w.jsx)(P.xu,{"data-test-id":"sharesheet-viewchat-link",right:!0,flex:"none",maxWidth:"100%",children:s?this.renderViewConversationButton():(0,w.jsx)(P.zx,{fullWidth:!0,size:"lg",color:"gray",text:this.props.i18n._('Send', 'Send current content', 'Send current content'),onClick:()=>{this.onInlineSend()}})})]})}}function O(e){const t=(0,b.useHistory)(),n=(0,S.ZP)(),i=(0,T.Z)(),{showToast:a}=(0,A.F9)(),r=(0,x.aX)(),{logContextEvent:o}=(0,E.v)();return(0,_.Z)({name:"ConversationsResource",options:{user_ids:[e.userId]}}),(0,w.jsx)(C,{...e,createConversation:r,history:t,i18n:n,requireAuthForLimitedLogin:i,showToast:a,logContextEvent:o})}var N=n(112690),D=n(379725);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}const L={boxShadow:"0 6px 8px -4px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"};class j extends i.PureComponent{componentDidUpdate(e){const{fetching:t}=e,{value:n}=this.state,i=t&&!this.props.fetching,a=this.getContactSuggestions();if(!n&&i){const e=a.length>0?7511:7512;this.props.logContextEvent({event_type:e,view_type:70,view_parameter:256})}}constructor(e){super(e),k(this,"state",{value:"",showScrollShadow:!1,defaultSuggestions:[],loadingDefaultSuggestions:!0}),k(this,"onSearchChange",(({value:e})=>{const{userId:t,searchContacts:n}=this.props,i={options:{user:t,term:e}};this.setState({value:e},n(i))})),k(this,"getContactSuggestions",(()=>{const{typeaheadSuggestions:e,userId:t,users:n}=this.props,{value:i,defaultSuggestions:a}=this.state;if(!i)return a.filter((e=>n[e.id]))||[];const r=`term="${i}",user="${t}"`,o=`term="${i.slice(0,-1)}",user="${t}"`;return e[r]||e[o]||[]})),k(this,"renderContactSuggestions",(()=>{const{expandContactsList:e,fetching:t,i18n:n,isFullHeight:i,logContextEvent:a,onDismiss:r,sendObject:o,setShareSent:s,userId:d,updateCachedContactsAfterSend:c,viewType:u}=this.props,{loadingDefaultSuggestions:_,value:p}=this.state,h=this.getContactSuggestions(),m=t||_,g=e=>{const t=p&&p.trim(),{selected_contact_index:n,selected_contact_reason:r}=e||{},s=()=>t?(0,l.Z)(t)?{is_selected_contact_email:"true"}:{search_query_length:JSON.stringify(t.length),selected_contact_index:n,selected_contact_reason:r}:{selected_contact_index:n,selected_contact_reason:r};let d;a({event_type:102,view_type:70,view_parameter:i?3827:256,component:t?14314:14315,element:10837,aux_data:s()}),d=3===o.objectType?13530:2===o.objectType?13527:13524,a({event_type:10399,view_type:u,component:14309,element:d,aux_data:s()})};let v;return v=!i&&m?107:"100%",m?(0,w.jsx)(P.xu,{alignItems:"center",display:"flex",justifyContent:"center",height:v,paddingY:2,children:(0,w.jsx)(P.$j,{show:!0,accessibilityLabel:n._('Searching for contacts', 'Placeholder text for spinner on share menu', 'Placeholder text for spinner on share menu')})}):0===h.length&&!(0,l.Z)(p)&&p&&i?(0,w.jsx)(P.xu,{marginTop:3,children:(0,w.jsx)(P.xv,{align:"center",children:n._('Sorry, we can\'t find anyone by that name.', 'Text to show empty state when a contact can not be found', 'Text to show empty state when a contact can not be found')})}):(0,w.jsx)(P.kC,{direction:i?"column":"row",overflow:i?void 0:"hidden",children:(0,w.jsxs)(P.xu,{display:i?void 0:"flex",height:v,overflow:i?void 0:"scrollX",marginBottom:0,marginTop:0,paddingX:i?4:1,paddingY:0,children:[0===h.length&&(0,l.Z)(p)&&(0,w.jsx)(O,{email:p,isFullHeight:i,sendObject:o,setShareSent:s,userId:d,logContextOnSend:g,viewType:u}),!i&&(0,w.jsxs)(P.xu,{alignItems:"center",display:"flex",direction:"column",paddingX:3,paddingY:4,children:[(0,w.jsx)(P.xu,{height:56,marginBottom:1,width:56,children:(0,w.jsx)(P.hU,{accessibilityLabel:n._('Search for users', 'ContactsSuggestsions.SearchIcon.accessibilityLabel', 'Accessibility label for search icon in Contacts Suggestions list'),bgColor:"lightGray",icon:"search",iconColor:"darkGray",onClick:()=>{let t;a({event_type:102,view_type:70,view_parameter:256,component:14315,element:13498}),t=3===o.objectType?13531:2===o.objectType?13528:13525,a({view_type:u,event_type:10399,component:14309,element:t}),e()},size:"xl"})}),(0,w.jsx)(P.xv,{lineClamp:1,size:"100",children:n._('Search', 'ContactsSuggestions.SearchOption.text', 'Label for search icon in Contacts Suggestions list')})]}),h.map(((e,t)=>(0,w.jsx)(O,{isFullHeight:i,onDismiss:r,recipient:e,sendObject:o,setShareSent:s,userId:d,updateCachedContactsAfterSend:c,logContextOnSend:()=>{g({selected_contact_index:JSON.stringify(t),selected_contact_reason:JSON.stringify(e.debug_reason.reason)})},viewType:u},e.id)))]})})})),this.scrollerRef=(0,i.createRef)()}async componentDidMount(){const{inContactsCacheExp:e,cachedShareSuggestions:t,getFreshContactSuggestions:n,updateCachedShareSuggestions:i}=this.props;if(e)if(t)this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:t});else{const e=await n()||[];i(e),this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:e})}else{const e=await n()||[];this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:e})}}render(){const{showScrollShadow:e}=this.state,{isFullHeight:t,expandContactsList:n}=this.props,a=(0,u.Z)((()=>{const e=this.scrollerRef.current;e&&!Number.isNaN(e.scrollTop)&&this.setState({showScrollShadow:e.scrollTop>0})}),100);return(0,w.jsx)(i.Fragment,{children:t?(0,w.jsxs)(P.xu,{color:"default",display:"flex",direction:"column",paddingX:0,height:"90%",children:[(0,w.jsx)(P.xu,{"data-test-id":"contact-suggestion-search-field",paddingY:2,color:"default",paddingX:4,dangerouslySetInlineStyle:{__style:e?L:null},children:(0,w.jsx)(s.Z,{accessibilityLabel:this.props.i18n._('search contact', 'Accessibility label for searchbar on share menu', 'Accessibility label for searchbar on share menu'),id:"contactsSuggestSearchField",onChange:this.onSearchChange,onFocus:n,placeholder:this.props.i18n._('Search by name or email', 'Placeholder text for searchbar on share menu', 'Placeholder text for searchbar on share menu'),value:this.state.value,autoFocus:t})}),(0,w.jsx)(P.xu,{display:"flex",direction:"column",paddingY:1,overflow:"scrollY",onScroll:a,ref:this.scrollerRef,children:this.renderContactSuggestions()})]}):(0,w.jsx)(P.xu,{children:this.renderContactSuggestions()})})}}function U(e){const t=(0,S.ZP)(),n=(0,g.kW)(),i=(0,N.Z)(),{id:a}=(0,p.Z)(),s=(0,r.useDispatch)(),{viewType:l}=(0,m.SU)();(0,_.Z)({name:"ShareSuggestionsTypeaheadResource",options:{term:"",user:a}});const u=(0,r.useSelector)((({resources:e})=>{const{ShareSuggestionsTypeaheadResource:t}=e,n={};for(const i of Object.keys(t||{})){const e=t[i].data;e&&e.items&&(n[i]=e.items)}return n})),f=(0,r.useSelector)((e=>e.resources.ShareSuggestionsTypeaheadResource)),y=Object.keys(f||{}).some((e=>f[e].fetching)),{cachedShareSuggestions:E,clearCachedShareSuggestions:T,updateCachedShareSuggestions:I}=(0,v.$)(),x=async()=>{let e;const t=c.Z.create("ShareSuggestionsResource",{suggestion_type:"share"});try{var n;e=null===(n=(await t.callGet()).resource_response)||void 0===n?void 0:n.data}catch(i){d.Z.increment("mweb_share_menu_load_suggestions.fail.share",1)}return e},{checkExperiment:P}=(0,h.F)(),b=P("mweb_cache_contacts_share").anyEnabled;return(0,w.jsx)(j,{...e,i18n:t,logContextEvent:i,users:n,searchContacts:e=>{(0,o.Z)(s((0,D.U)("ShareSuggestionsTypeaheadResource",e)),200)},fetching:y,userId:a||"",typeaheadSuggestions:u,inContactsCacheExp:b,cachedShareSuggestions:E,getFreshContactSuggestions:x,updateCachedContactsAfterSend:async()=>{if(b){T();const e=await x();e&&I(e)}},updateCachedShareSuggestions:I,viewType:l})}var M=n(79113),F=n(121151),B=n(667679),G=n(52022),z=n(749049),H=n(867820),Z=n(53987),V=n(50286);const W=14121,K=({heading:e,onDismiss:t})=>{const n=(0,S.ZP)();return(0,w.jsxs)(P.kC,{alignItems:"center",flex:"grow",justifyContent:"start",children:[(0,w.jsx)(P.xu,{display:"flex",alignItems:"center",padding:1,children:(0,w.jsx)(P.hU,{accessibilityLabel:n._('Close', 'close share menu', 'close share menu'),icon:"cancel",onClick:t,size:"sm",iconColor:"darkGray",padding:4})}),(0,w.jsx)(P.xu,{display:"flex",flex:"grow",alignItems:"center",justifyContent:"center",marginEnd:12,children:(0,w.jsx)(P.xv,{align:"center",weight:"bold",children:(0,w.jsx)("span",{className:"deprecatedTextSizeXL",children:e})})})]})},Y=({children:e,isOpen:t,onDismiss:n,childPaddingX:i=3,shouldRenderCloseIcon:a,shouldRenderFullHeight:r,heading:o})=>{const s=(0,S.ZP)(),l={mobileAccessibilityCloseIconLabel:s._('close send modal', ' - ', ' -- '),accessibilityModalLabel:"",heading:o,mobileHideCloseIcon:!a,isOpen:t,onDismiss:n,type:"share_menu"};return r?(0,w.jsxs)(M.Z,{isOpen:t,accessibilityModalLabel:o,children:[(0,w.jsx)(K,{heading:o,onDismiss:n}),e]}):(0,w.jsx)(F.ZP,{...l,children:(0,w.jsx)(P.xu,{marginTop:a?0:4,paddingX:i,children:e})})},q=({isOpen:e,onDismiss:t,objectType:n,objectId:r,hideContactsSuggestions:o,clientTrackingParams:s,element:l,viewType:c,viewParameter:u,component:_})=>{const m=(0,S.ZP)(),[g,v]=(0,i.useState)(!1),[f,y]=(0,i.useState)(!1),E=g||!o,T=(0,b.useLocation)(),I=(0,V.HG)(),{isAuth:x}=(0,p.Z)(),{checkExperiment:A}=(0,h.F)(),R=(0,B.Z)(),C=(0,N.Z)(),O=(0,G.Z)(),D=e=>{A("mweb_share_menu_logging").anyEnabled&&C({clientTrackingParams:s,component:W,event_type:f||e?7493:7492,element:13097,view_type:70,view_parameter:u,aux_data:{invite_object:n}}),f||void 0!==e||C({clientTrackingParams:s,component:14309,event_type:10403,element:13478,view_type:c,view_parameter:u,aux_data:{invite_object:n}});const i=(e=>(0,Z.cD)(e)?"profile_page":(0,Z.am)(e)?"board_page":(0,Z.uM)(e)?"pin_page":"unknown")(T),a=!I&&!x&&A("unauth_mweb_after_invite_signup_modal").anyEnabled;O({action:"click",item:"close-share-menu"}),t(),a&&f&&R({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:`tap_unauth_${i}_share_menu_click_invite`}),y(!1),(0,H.My)(`mweb_${i}_share_menu.click_invite.close`)},k=A("mweb_share_menu_logging").anyEnabled;(0,i.useEffect)((()=>{e&&(C({event_type:7120,component:W,object_id_str:r,clientTrackingParams:k?s:null,element:k?l:null,view_type:k?c:70,view_parameter:k?u:256,aux_data:k?{invite_object:n}:void 0}),C({event_type:10400,component:_,object_id_str:r,clientTrackingParams:s,element:(0,z.O)(n),view_type:c,view_parameter:u,aux_data:{invite_object:n}}))}),[e,A,k]);const L=(0,V.Wb)(),j=m._('Send on Pinterest', 'Heading for share contacts search', 'Heading for share contacts search'),M=m._('Share', 'ShareMenu.AllShareOptions.HeaderText', 'Header for social share options section of the share menu'),F=g?j:(0,w.jsx)(P.xu,{marginTop:0,children:(0,w.jsx)(P.xv,{align:"center",weight:"bold",size:"300",children:E?j:M})});return(0,w.jsx)(Y,{isOpen:e,onDismiss:g?()=>{v(!1),d.Z.increment("mweb_sharesheet.contacts.collapse",1)}:()=>D(),shouldRenderFullHeight:g,shouldRenderCloseIcon:!0,childPaddingX:0,heading:F,children:(0,w.jsx)(P.kC,{justifyContent:"center",children:(0,w.jsxs)(P.xu,{marginBottom:8,marginTop:g||!E?0:-4,width:L?440:"100%",height:"100%",children:[E&&(0,w.jsx)(U,{sendObject:{objectId:r,objectType:n},expandContactsList:()=>{v(!0),d.Z.increment("mweb_sharesheet.contacts.expand",1)},isFullHeight:g,onDismiss:D,setShareSent:e=>y(e),viewType:c}),!g&&(0,w.jsxs)(i.Fragment,{children:[E&&(0,w.jsxs)(P.xu,{marginTop:4,paddingX:4,children:[(0,w.jsx)(P.iz,{}),(0,w.jsx)(P.xu,{marginTop:8,children:(0,w.jsx)(P.xv,{align:"center",size:"300",weight:"bold",children:M})})]}),(0,w.jsx)(a.Z,{objectId:r,objectType:n,viewType:k?c:70,viewParameter:u,onDismiss:D,setShareSent:e=>y(e),clientTrackingParams:s,component:W})]})]})})})}},878499:(e,t,n)=>{n.d(t,{$:()=>s,l:()=>l});var i=n(667294),a=n(425288),r=n(785893);const{Provider:o,useHook:s}=(0,a.Z)("ShareSuggestions");function l({children:e}){const[t,n]=(0,i.useState)(void 0),a=(0,i.useCallback)((()=>{n(void 0)}),[]),s=(0,i.useCallback)((e=>{n(e)}),[]),l=(0,i.useMemo)((()=>({cachedShareSuggestions:t,clearCachedShareSuggestions:a,updateCachedShareSuggestions:s})),[t,a,s]);return(0,r.jsx)(o,{value:l,children:e})}},86802:(e,t,n)=>{n.d(t,{B:()=>r,Cq:()=>a,F6:()=>u,RV:()=>i,VZ:()=>o,W_:()=>l,bm:()=>s,iS:()=>_,rO:()=>c,zn:()=>d});const i="animatedShareIconLastViewed",a="lastUsedSocialShare",r="customizedSocialAppOrder",o=44,s=9e5,l=4e3,d=5e3,c=new Set([12,3,11]),u=new Set([11,12]),_=new Map([["AU",6],["CA",6],["DK",6],["DZ",6],["GE",6],["HU",6],["LT",6],["NO",6],["NP",6],["NZ",6],["PH",6],["PL",6],["SK",6],["TN",6],["US",6],["JP",8],["TW",8],["TH",8],["IQ",20],["KH",20],["MM",20],["UZ",20],["BA",22],["BG",22],["BY",22],["CY",22],["GR",22],["MD",22],["RS",22],["UA",22]])},72566:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(667294),a=n(883119),r=n(785893);class o extends i.Component{constructor(...e){var t,n,i;super(...e),i=e=>{e&&(this.searchRef=e)},(n="setSearchRef")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}componentDidMount(){this.props.autoFocus&&this.searchRef.focus()}render(){const{accessibilityLabel:e,id:t,onBlur:n,onChange:i,onFocus:o,placeholder:s,value:l}=this.props;return(0,r.jsx)(a.Um,{accessibilityLabel:e,id:t,onBlur:n,onChange:i,onFocus:o,placeholder:s,ref:this.setSearchRef,size:"lg",value:l})}}},163321:(e,t,n)=>{n.d(t,{Z:()=>m,e:()=>_});var i=n(702664),a=n(240684),r=n(46584),o=n(131108),s=n(599997),l=n(883119),d=n(332611),c=n(785893);const u=(0,a.ZP)({resolved:{},chunkName:()=>"storyPins-duplo-HlsVideoContainer",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(19596).then(n.bind(n,881999)),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 881999}}),_=Object.freeze({white:"inverse",black:"default"}),p={defaultOverlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"}};function h({titleText:e,videoPin:t,videoPlaceholderImage:n}){return(0,c.jsx)(u,{fallback:(0,c.jsx)(l.Ee,{alt:e||"",color:"rgb(111, 91, 77)",fit:"cover",naturalHeight:3,naturalWidth:2,src:n||t.metadata.thumbnail}),aspectRatio:s.q4,controls:!1,poster:n||t.metadata.thumbnail,src:t.url})}function m({buttonAction:e,buttonCustomization:t,buttonText:n,experience:a,hideCompleteButton:u,imageAlt:_,imageUrl:m,openNewTab:g,storyType:v,titleText:f,titleTextColor:y,titleTextCustomization:E,videoPin:S,videoPlaceholderImage:T}){var I;const x=(0,i.useDispatch)(),{experience_id:P,placement_id:b}=a||{},A=(0,r.Z)({onVisibilityChanged:e=>{e&&a&&"viewed"!==a.status&&(a.status="viewed",x((0,d.UT)(b,P,!1,!0)))}}),w=(0,s.zn)(v),R=w?o.f8:o.hm,C=w?o.sH:o.HI,O=!w,{color:N,fontStyle:D,fontWeight:k,horizontalAlignment:L,fontSize:j}=(0,s.Mf)(E||{},"mweb"),{button_background_color:U,button_text_color:M}=t||{};return(0,c.jsx)(l.xu,{position:"relative",padding:1,marginBottom:2,ref:A,children:(0,c.jsxs)(l.rU,{accessibilityLabel:f,href:e,onClick:({dangerouslyDisableOnNavigation:e})=>{e(),a&&x((0,d.CK)(b,P,!1,!0))},target:g?"blank":null,children:[(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(150%)"}},position:"relative",children:(0,c.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},top:!0,right:!0,bottom:!0,left:!0,overflow:"hidden",position:"absolute",rounding:4,children:[(0,c.jsx)(l.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:"feed_card_video"===v&&S?(0,c.jsx)(h,{titleText:f,videoPin:S,videoPlaceholderImage:T}):m&&(0,c.jsx)(l.Ee,{alt:_||f||"",color:"rgb(111, 91, 77)",naturalHeight:4,naturalWidth:3,src:m,fit:"cover"})}),O&&(0,c.jsx)(l.xu,{height:"100%",width:"100%",dangerouslySetInlineStyle:{__style:p.defaultOverlay},position:"absolute",top:!0,left:!0}),(0,c.jsx)(R,{children:(0,c.jsx)(l.xv,{align:L,color:y,italic:"italics"===D,weight:k,children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{color:null!==(I=N||y)&&void 0!==I?I:void 0,fontSize:j}},children:f})})})]})}),!u&&(0,c.jsx)(C,{children:(0,c.jsx)(l.xu,{display:"flex",rounding:"pill",color:w?"default":"secondary",dangerouslySetInlineStyle:{__style:{backgroundColor:U}},justifyContent:"center",alignItems:"center",paddingX:2,height:48,children:(0,c.jsx)(l.xv,{weight:"bold",size:"200",lineClamp:1,children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{color:M}},children:n})})})})]})})}},954134:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(667294),a=n(702664),r=n(149230),o=n(204283),s=n(112690),l=n(861411),d=n(350118),c=n(883119),u=n(785893);function _({auxData:e,slotIndex:t,storyId:n,trafficSource:_,viewParameter:p,viewType:h}){const m=(0,s.Z)(),g=(0,d.AF)(),v=(0,a.useSelector)((({stories:e})=>e[n].objects.map((e=>g[e.id])))),f=(0,a.useSelector)((({stories:e})=>e[n])),{action:y,story_type:E,title:S}=f,T=v.map((({type:e,id:t})=>e+":"+t)).join("|"),I={story_type:E,story_id:n,content_ids:T,...e};return(0,u.jsx)(l.Hs,{loggingId:n,objectIdStr:n,viewParameter:p,viewType:h,slotIndex:t,component:200,auxData:I,children:(0,u.jsxs)(i.Fragment,{children:[S&&(0,u.jsx)(c.xu,{display:"flex",marginBottom:2,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(c.xv,{weight:"bold",children:S.format})}),(0,u.jsx)(c.kC,{wrap:!0,children:v.map((e=>(0,u.jsx)(c.kC.Item,{flexBasis:"50%",maxWidth:"50%",children:(0,u.jsx)(o.default,{auxData:I,componentType:0,pinId:e.id,slotIndex:t,trafficSource:_,viewParameter:p,viewType:h})},e.id)))}),y&&y.url&&(0,u.jsx)(c.xu,{display:"flex",width:"100%",justifyContent:"center",marginTop:1,children:(0,u.jsx)(c.zx,{role:"link",accessibilityLabel:y.text,color:"gray",onClick:()=>{m({view_type:h,view_parameter:p,aux_data:I,event_type:102})},text:y.text,href:y.url,rel:(0,r.Z)(y.url)?"nofollow":void 0,target:(0,r.Z)(y.url)?"blank":void 0,size:"md"})})]})})}},635225:(e,t,n)=>{n.d(t,{Z:()=>qe});var i=n(667294),a=n(702664),r=n(598615),o=n(445345),s=n(819764),l=n(898781),d=n(844974),c=n(773285),u=n(780280),_=n(883119),p=n(785893);function h(){const e=(0,l.ZP)(),{checkExperiment:t}=(0,c.F)(),{locale:n,userAgent:{platform:a}}=(0,u.B)();(0,i.useEffect)((()=>{"enabled_no_double"===t("mweb_hf_story_app_upsell2").group&&(0,d.Nh)("appUpsell",Date.now())}),[]);const h="ios"===a;return(0,p.jsxs)(_.xu,{color:"infoBase",marginBottom:5,marginStart:2,marginEnd:2,marginTop:3,padding:3,rounding:2,children:[(0,p.jsx)(_.xv,{color:"inverse",weight:"bold",children:h?e._('Pinterest works best if you switch to our iPhone app', 'app upsell', 'app upsell'):e._('Pinterest works best if you switch to our Android app', 'app upsell', 'app upsell')}),(0,p.jsx)(_.xu,{marginTop:3,children:(0,p.jsx)(r.Z,{componentType:14159,within:"app-upsell-story",children:({handleOpenApp:e})=>(0,p.jsx)(_.iP,{onTap:()=>e({deepLinkUri:"/"}),children:h?(0,p.jsx)(s.Z,{locale:n}):(0,p.jsx)(o.Z,{locale:n})})})})]})}var m=n(116303),g=n(46584),v=n(792182),f=n(407043),y=n(599997),E=n(332611);function S({isFullWidth:e,actionType:t,buttonAction:n,buttonText:i,experience:r,hideCompleteButton:o,imageAlt:s,imageUrl:l,openNewTab:d,avatarImageDetails:c,examplePinImage:u,titleText:h,titleTextColor:S,titleTextCustomization:T,descriptionText:I,descriptionTextCustomization:x}){var P,b;const{logContextEvent:A}=(0,f.v)(),w=(e=>0===e?3833:1===e?3834:2===e?3835:null)(t),R=(0,a.useDispatch)(),{experience_id:C,placement_id:O}=r||{},N=(0,g.Z)({onVisibilityChanged:e=>{e&&r&&(r.status="viewed",A({event_type:13,view_type:604,view_parameter:w}),R((0,E.UT)(O,C,!1,!0)))}}),{width:D}=(0,v.Z)()||{width:8},k=D-8,L=(0,y.IA)(D),j=k*L,U=L===y.LX||L===y.Ec,{url:M,full_name:F}=c||{},B=j*y.l0,{url:G}=u,z=G?j*y.l0:0,H=G?y.ml*z:0,{color:Z,fontStyle:V,fontWeight:W,horizontalAlignment:K,fontSize:Y}=(0,y.Mf)(T||{},"mweb"),{color:q,fontStyle:$,fontWeight:X,horizontalAlignment:J,fontSize:Q}=(0,y.Mf)(x||{},"mweb");return(0,p.jsx)(_.xu,{position:"relative",padding:1,marginBottom:2,ref:N,children:(0,p.jsxs)(_.xu,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)",backgroundColor:e?"#003441":"education"}},color:e?"default":"education",paddingX:e?0:3,paddingY:e?0:6,position:"relative",rounding:4,children:[e&&l&&M&&(0,p.jsx)(_.xu,{height:j,width:k,children:(0,p.jsx)(_.Ee,{alt:s||h||"",color:"rgb(111, 91, 77)",naturalHeight:j,naturalWidth:k,src:l,fit:"cover",children:(0,p.jsx)(_.xu,{paddingY:M?12:3,children:(0,p.jsxs)(_.kC,{direction:"column",gap:2,alignItems:"center",flex:"grow",width:"100%",justifyContent:"center",children:[F&&M&&(0,p.jsx)(_.xu,{height:B,width:B,children:(0,p.jsx)(m.Z,{name:F,src:M,size:"fit"})}),(0,p.jsx)(_.xv,{align:K,color:S,italic:"italics"===V,weight:W,children:(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{color:null!==(P=Z||S)&&void 0!==P?P:void 0,fontSize:U?y.SF:Y}},children:h})}),(0,p.jsx)(_.xv,{align:J,italic:"italics"===$,weight:X,children:(0,p.jsx)(_.xu,{paddingX:12,dangerouslySetInlineStyle:{__style:{color:null!=q?q:void 0,fontSize:U?y._e:Q}},children:I})})]})})})}),(!e||e&&G)&&(0,p.jsxs)(_.kC,{direction:"column",gap:2,alignItems:"center",flex:"grow",justifyContent:"center",children:[u&&G&&(0,p.jsx)(_.xu,{paddingY:4,children:(0,p.jsx)(_.zd,{height:z,width:H,rounding:4,children:(0,p.jsx)(_.Ee,{alt:"Your first saved Pin",naturalHeight:z,naturalWidth:H,src:G,fit:"cover"})})}),(0,p.jsx)(_.xv,{align:K,color:S,italic:"italics"===V,weight:W,children:(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{color:null!==(b=Z||S)&&void 0!==b?b:void 0,fontSize:U&&e?y._e:Y}},children:h})}),I&&x&&(0,p.jsx)(_.xu,{paddingX:e?2:0,paddingY:2,children:(0,p.jsx)(_.xv,{align:J,italic:"italics"===$,weight:X,children:(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{color:null!=q?q:void 0,fontSize:U&&e?y._e:Q}},children:I})})}),!o&&(0,p.jsx)(_.kC.Item,{alignSelf:e?"center":"stretch",children:(0,p.jsx)(_.xu,{marginTop:2,marginBottom:e?4:1,children:(0,p.jsx)(_.zx,{accessibilityLabel:i,color:"white",fullWidth:!0,text:i,size:"lg",role:"link",href:n,target:d?"blank":null,onClick:()=>{r&&(A({event_type:102,view_type:604,view_parameter:w}),R((0,E.CK)(O,C,!1,!0)))}})})})]})]})})}var T=n(57791),I=n(698330);const x={defaultOverlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"}};function P({buttonAction:e,buttonText:t,imageUrl:n,brandIds:i}){const a=(0,I.kW)();if(!i)return null;const r=i.slice(0,3).map((e=>{var t,n;return{name:null!==(t=a[e].username)&&void 0!==t?t:"",src:null!==(n=a[e].image_medium_url)&&void 0!==n?n:""}}));return(0,p.jsx)(_.xu,{position:"relative",padding:1,marginBottom:2,children:(0,p.jsxs)(T.MZ,{to:e,children:[(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},position:"relative",children:(0,p.jsxs)(_.xu,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},top:!0,right:!0,bottom:!0,left:!0,overflow:"hidden",position:"absolute",rounding:4,children:[(0,p.jsx)(_.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:n&&(0,p.jsx)(_.Ee,{alt:t,color:"rgb(111, 91, 77)",naturalHeight:1,naturalWidth:1,src:n,fit:"cover"})}),(0,p.jsx)(_.xu,{height:"100%",width:"100%",dangerouslySetInlineStyle:{__style:x.defaultOverlay},position:"absolute",top:!0,left:!0}),(0,p.jsx)(_.xu,{width:"100%",position:"absolute",bottom:!0,paddingY:6,display:"flex",justifyContent:"center",children:(0,p.jsx)(_.xu,{width:24*(2*r.length+1),height:64,children:(0,p.jsx)(_.HE,{accessibilityLabel:"",collaborators:r})})})]})}),(0,p.jsx)(_.xu,{"aria-hidden":"true",width:"100%",display:"flex",rounding:"pill",color:"secondary",justifyContent:"center",alignItems:"center",paddingX:2,height:48,marginTop:2,children:(0,p.jsx)(_.xv,{weight:"bold",children:(0,p.jsx)(_.xu,{children:t})})})]})})}var b=n(368156),A=n(995389),w=n(934494);const R=(0,a.connect)((({pins:e},t)=>({pin:e[t.pinId]})),(()=>({})))((({isFirstChild:e,pin:t})=>{var n;if(!t)return null;const i=null===(n=t.images)||void 0===n?void 0:n["170x"];if(!i)return null;const a=t.pinner,{full_name:r,image_medium_url:o}=a||{},{dominant_color:s}=t,{height:l,width:d,url:c}=i;return(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{paddingRight:8,paddingLeft:e?8:void 0}},children:(0,p.jsxs)(_.xu,{position:"relative",children:[(0,p.jsx)(_.xu,{height:144,overflow:"hidden",rounding:4,width:108,children:(0,p.jsx)(_.Ee,{alt:t.title||"",color:null!=s?s:"",fit:"cover",naturalHeight:null!=l?l:1,naturalWidth:null!=d?d:1,src:null!=c?c:""})}),o&&(0,p.jsx)(_.xu,{alignItems:"center",bottom:!0,display:"flex",height:0,justifyContent:"center",left:!0,position:"absolute",right:!0,children:(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{border:"1px solid white"}},height:60,rounding:"circle",width:60,children:(0,p.jsx)(m.Z,{name:null!=r?r:"",src:o})})})]})})}));function C({pinIds:e}){const t=e.concat(e).concat(e).concat(e);return(0,p.jsx)(_.xu,{height:174,overflow:"hidden",width:"100%",children:(0,p.jsx)(_.xu,{overflow:"scroll",children:(0,p.jsx)(_.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",height:184,children:t.map(((e,t)=>(0,p.jsx)(R,{pinId:e,isFirstChild:0===t},e)))})})})}var O=n(63552),N=n(112690),D=n(861411);const k="creator_spotlight_";function L({id:e}){const t=(0,N.Z)(),n=(0,a.useSelector)((({stories:t})=>t[e]));if(!n||"social_seasonal_pin"===n.story_type)return null;const{button_text:i,objects:r,story_type:o,subtitle:s,title:l,background_colour:d,display_options:c}=n,{title_text_color:u,subtitle_text_color:h}=c;if(!o.startsWith(k)||!r||r.length<3)return null;const m=`/creator-spotlight/${o.slice(k.length)}`;return(0,p.jsx)(_.xu,{marginBottom:3,children:(0,p.jsx)(D.Hs,{loggingId:e,objectIdStr:e,viewParameter:43,viewType:2,slotIndex:0,component:13484,auxData:{story_type:o},children:(0,p.jsx)(_.iP,{onTap:()=>{t({view_type:2,view_parameter:43,component:13484,object_id_str:e,aux_data:{story_type:o},event_type:102})},tapStyle:"none",role:"link",href:m,rounding:2,children:(0,p.jsx)(_.xu,{rounding:2,overflow:"hidden",display:"flex",dangerouslySetInlineStyle:{__style:{backgroundColor:d}},children:(0,p.jsx)(_.xu,{width:"100%",height:"100%",children:(0,p.jsxs)(_.xu,{alignItems:"center",direction:"column",display:"flex",height:"100%",justifyContent:"between",paddingY:4,children:[(!!s||!!l)&&(0,p.jsxs)(_.kC,{alignItems:"center",direction:"column",justifyContent:"center",children:[l&&l.format&&(0,p.jsx)(_.X6,{size:"400",children:(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{color:u}},children:l.format})}),s&&s.format&&(0,p.jsx)(_.xv,{align:"center",children:(0,p.jsx)(_.xu,{marginTop:1,dangerouslySetInlineStyle:{__style:{color:h}},children:s.format})})]}),(0,p.jsx)(_.xu,{paddingY:2,marginTop:2,width:"100%",children:(0,p.jsx)(C,{pinIds:r.map((e=>e.id))})}),i&&i.format&&(0,p.jsx)(_.xu,{display:"inlineBlock",children:(0,p.jsx)(O.Z,{pressState:"compress",children:(0,p.jsx)(_.xu,{color:"primary",rounding:"pill",position:"relative",children:(0,p.jsx)(_.xu,{paddingX:5,paddingY:5,children:(0,p.jsx)(_.xv,{color:"inverse",weight:"bold",children:i.format})})})})})]})})})})})})}var j=n(319915),U=n(121093),M=n(19121),F=n(276775);function B({pin:e,width:t,height:n,showDivider:i}){var a,r,o,s,l,d,c;const u=null===(a=e.images)||void 0===a?void 0:a["236x"];return(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:i?{borderRight:"2px solid #fff"}:{}},children:(0,p.jsx)(_.GH,{contentAspectRatio:(null!==(r=null==u?void 0:u.width)&&void 0!==r?r:1)/(null!==(o=null==u?void 0:u.height)&&void 0!==o?o:1),height:n,width:t,children:(0,p.jsx)(_.Ee,{alt:null!==(s=e.description)&&void 0!==s?s:"",naturalWidth:null!==(l=null==u?void 0:u.width)&&void 0!==l?l:1,naturalHeight:null!==(d=null==u?void 0:u.height)&&void 0!==d?d:1,src:null!==(c=null==u?void 0:u.url)&&void 0!==c?c:""})})})}function G({storyId:e,slotIndex:t}){const n=(0,F.useHistory)(),r=(0,F.useLocation)(),{isAuth:o}=(0,M.Z)(),{checkExperiment:s}=(0,c.F)(),[l,d]=(0,i.useState)(0),u=(0,i.useRef)(),h=(0,N.Z)();(0,i.useLayoutEffect)((()=>{const e=u.current;e&&d(e.offsetWidth)}),[]);const m=(0,a.useSelector)((({stories:t})=>t[e])),g=(0,a.useSelector)((({pins:e})=>m.objects.map((t=>e[t.id])))).slice(0,2),{story_type:v,action:f}=m,y=`${r.pathname}products/${r.search}`,E=()=>{h({component:200,event_type:102,view_parameter:3050,view_type:72}),n.push(y)};return s(o?"mweb_deprecated_impression_tracker_story_impression_auth":"mweb_deprecated_impression_tracker_story_impression_unauth").anyEnabled?(0,p.jsx)(D.qS,{auxData:{story_type:v,content_ids:g.map((e=>e.id)),story_id:e},component:200,loggingId:e,objectIdStr:e,slotIndex:t,viewParameter:3050,viewType:72,children:({impressionTrackerRef:e})=>l?(0,p.jsx)(_.xu,{padding:2,ref:e,children:(0,p.jsx)(_.zd,{rounding:2,children:(0,p.jsxs)(_.iP,{onTap:E,children:[(0,p.jsx)(_.xu,{display:"flex",justifyContent:"center",alignItems:"center",color:"secondary",children:g.map(((e,t)=>(0,p.jsx)(B,{pin:e,width:(l-16)/2-1,height:l-16,showDivider:!t},e.id)))}),(0,p.jsx)(_.xu,{position:"absolute",top:!0,left:!0,width:"100%",height:"100%",children:(0,p.jsx)(_.kC,{alignItems:"center",height:"100%",justifyContent:"center",width:"100%",children:(0,p.jsx)(_.xu,{rounding:"pill",paddingX:4,paddingY:2,display:"flex",justifyContent:"center",alignItems:"center",color:"secondary",children:(0,p.jsx)(_.xv,{weight:"bold",children:f.text})})})})]})})}):(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}},position:"relative"})}):(0,p.jsx)(D.Hs,{auxData:{story_type:v,content_ids:g.map((e=>e.id)),story_id:e},component:200,loggingId:e,objectIdStr:e,slotIndex:t,viewParameter:3050,viewType:72,children:l?(0,p.jsx)(_.xu,{padding:2,children:(0,p.jsx)(_.zd,{rounding:2,children:(0,p.jsxs)(_.iP,{onTap:E,children:[(0,p.jsx)(_.xu,{display:"flex",justifyContent:"center",alignItems:"center",color:"secondary",children:g.map(((e,t)=>(0,p.jsx)(B,{pin:e,width:(l-16)/2-1,height:l-16,showDivider:!t},e.id)))}),(0,p.jsx)(_.xu,{position:"absolute",top:!0,left:!0,width:"100%",height:"100%",children:(0,p.jsx)(_.kC,{alignItems:"center",height:"100%",justifyContent:"center",width:"100%",children:(0,p.jsx)(_.xu,{rounding:"pill",paddingX:4,paddingY:2,display:"flex",justifyContent:"center",alignItems:"center",color:"secondary",children:(0,p.jsx)(_.xv,{weight:"bold",children:f.text})})})})]})})}):(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}},position:"relative",ref:u})})}var z=n(131230),H=n(954134),Z=n(687866);const V=["shop_tab_upsell","user_style_story_v2"];function W({auxData:e,slotIndex:t,storyId:n,storyType:i,trafficSource:r,viewParameter:o,viewType:s}){const l=(0,a.useSelector)((({stories:e})=>{var t;return null===(t=e[n].objects[0])||void 0===t?void 0:t.schema})),d=(0,a.useSelector)((({stories:e})=>{var t;return null===(t=e[n])||void 0===t?void 0:t.title}));if(V.includes(i))return(0,p.jsx)(z.Z,{auxData:e,slotIndex:t,storyId:n,storyType:i,viewParameter:o,viewType:s});switch(l){case"pin":return(0,p.jsx)(H.Z,{auxData:e,slotIndex:t,storyId:n,trafficSource:r,viewParameter:o,viewType:s});case"article":return(0,p.jsx)(b.Z,{auxData:e,pattern:[Z.UG.extra_small],slotIndex:t,storyId:n,viewParameter:o,viewType:s});default:return d&&(0,p.jsx)(_.xu,{display:"flex",marginBottom:2,justifyContent:"center",alignItems:"center",children:(0,p.jsx)(_.xv,{weight:"bold",children:d.format})})}}var K=n(700398),Y=n(172071),q=n(491563),$=n(350118);function X({slotIndex:e,storyId:t,exactMatch:n=!1}){const{isAuth:r}=(0,M.Z)(),{checkExperiment:o}=(0,c.F)(),s=(0,$.S6)(),{action:l,aux_fields:d,objects:u,story_type:h,title:m}=(0,a.useSelector)((({stories:e})=>e[t])),g=u[0].id,v=u.slice(1,3).map((({id:e})=>s(e)));return!n&&v.length<2?null:o(r?"mweb_deprecated_impression_tracker_story_impression_auth":"mweb_deprecated_impression_tracker_story_impression_unauth").anyEnabled?(0,p.jsx)(D.qS,{auxData:{content_ids:v.map((e=>null==e?void 0:e.id)),story_id:t,story_type:h,...d},component:200,loggingId:t,objectIdStr:t,slotIndex:e,viewParameter:43,viewType:2,children:({impressionTrackerRef:e})=>(0,p.jsxs)(_.xu,{ref:e,children:[m&&(0,p.jsx)(_.xu,{paddingY:1,marginTop:2,children:(0,p.jsx)(_.xv,{align:"center",children:m.format})}),(0,p.jsx)(q.Z,{action:l,auxData:d,isPinnerAuthorityHero:n,userId:g,userPins:n?void 0:v,userSearchRepStyle:n,viewParameter:43,viewType:2})]})}):(0,p.jsx)(D.Hs,{auxData:{content_ids:v.map((e=>null==e?void 0:e.id)),story_id:t,story_type:h,...d},component:200,loggingId:t,objectIdStr:t,slotIndex:e,viewParameter:43,viewType:2,children:(0,p.jsxs)(i.Fragment,{children:[m&&(0,p.jsx)(_.xu,{paddingY:1,marginTop:2,children:(0,p.jsx)(_.xv,{align:"center",children:m.format})}),(0,p.jsx)(q.Z,{action:l,auxData:d,isPinnerAuthorityHero:n,userId:g,userPins:n?void 0:v,userSearchRepStyle:n,viewParameter:43,viewType:2})]})})}var J=n(947599);class Q extends i.PureComponent{render(){const{seasonalBlob:e,size:t}=this.props,{story_title:n,pin_image:i,pin_image_gif:a,user_name:r,board_name:o,header_background_color:s,textIconColor:l}=e,d=s||"orchid",c=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&&o?`/${r}/${o}`:"/pinterestindonesia/happy-halloween/",h=n||"unknown",m=a||i||"",g=l||"white";return(0,p.jsx)(_.zd,{rounding:2,children:(0,p.jsx)(_.xu,{padding:3,children:(0,p.jsx)(T.MZ,{to:u,isAppUpsellDisabled:!0,onTouch:()=>{},children:(0,p.jsx)(_.xu,{children:(0,p.jsx)(_.xu,{display:"flex",margin:-1,height:t,children:(0,p.jsx)(_.xu,{width:"100%",children:(0,p.jsxs)(_.zd,{rounding:2,height:"100%",children:[(0,p.jsx)(_.xu,{height:t,children:(0,p.jsx)(_.Ee,{alt:h,color:d,fit:"cover",naturalHeight:1,naturalWidth:1,src:m})}),(0,p.jsx)(_.xu,{height:t,position:"absolute",top:!0,left:!0}),(0,p.jsx)(_.xu,{position:"absolute",top:!0,left:!0,right:!0,overflow:"hidden",paddingX:2,paddingY:4,dangerouslySetInlineStyle:{__style:{lineHeight:"19px"}},children:(0,p.jsx)(_.xv,{color:g,weight:"bold",children:h})}),(0,p.jsx)(_.xu,{position:"absolute",bottom:!0,left:!0,right:!0,padding:2,marginStart:"auto",marginEnd:"auto",children:(0,p.jsx)(_.zx,{fullWidth:!0,size:"sm",text:c})})]})})})})})})})}}const ee=(0,a.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=(0,l.ZP)();return(0,p.jsx)(Q,{...e,i18n:t})}));var te=n(502962);function ne({storyId:e,viewParameter:t,viewType:n}){const r=(0,N.Z)(),o=(0,a.useSelector)((({stories:t})=>t[e])),s=(0,a.useSelector)((({session:e})=>e.isTablet)),l=o.objects;return(0,i.useEffect)((()=>{r({event_type:9024,view_type:n,view_parameter:t})}),[]),o?(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(_.iz,{}),(0,p.jsxs)(_.xu,{paddingY:1,children:[(0,p.jsx)(_.xu,{paddingY:2,marginTop:3,children:(0,p.jsx)(_.X6,{align:"center",size:"400",children:o.title.format})}),1===l.length?(0,p.jsx)(_.xu,{width:s?400:"auto",paddingY:2,margin:"auto",children:(0,p.jsx)(te.Z,{id:l[0].id,gridIndex:0,viewParameter:t,viewType:n})}):(0,p.jsx)(_.xu,{overflow:"auto",children:(0,p.jsx)(_.kC,{alignItems:"stretch",justifyContent:"start",width:"fit-content",children:l.map(((e,i)=>(0,p.jsx)(_.xu,{width:s?400:"80vw",marginStart:0===i?0:2,paddingY:2,children:(0,p.jsx)(te.Z,{id:e.id,gridIndex:i,viewParameter:t,viewType:n})},e.id)))})})]})]}):null}var ie=n(938917),ae=n(574724);const re=(0,a.connect)((({pins:e},t)=>({pin:e[t.pinId]})),(()=>({})))((({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(0,p.jsx)(_.zd,{wash:!0,height:pe,width:pe,children:(0,p.jsx)(_.xu,{height:pe,position:"relative",width:pe,children:(0,p.jsx)(_.Ee,{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"})})})}));var oe=n(886076),se=n(830157),le=n(62409),de=n(349700),ce=n(643010);function ue({pinId:e,shouldRoundPrice:t,showSalePrice:n}){const i=(0,$.S6)()(e);if(!i)return null;const{link_domain:a,rich_metadata:r,rich_summary:o}=i||{},s=(0,le.kb)({hasLinkDomain:!!a,richMetadata:r&&{recipe:r.recipe&&{fromAggregatedData:r.recipe.from_aggregated_data},products:r.products&&r.products.map((e=>({name:e.name,offerSummary:e.offer_summary})))},richSummary:o&&{products:o.products&&o.products.map((e=>({name:e.name,offerSummary:e.offer_summary})))}});if(!s||!s.price)return null;const l=s.price||s.max_price,d=s.standard_price,c=/^(\$\d+)(\.?\d\d)*$/g,u=d&&c.exec(d),h=c.exec(l),m=(0,ce.Yc)()?"rgba(0, 0, 0, 0.7)":"rgba(255, 255, 255, 0.8)",g=(0,ce.Yc)()?"light":"dark";return(0,p.jsxs)(_.xu,{rounding:"pill",paddingX:2,paddingY:0,dangerouslySetInlineStyle:{__style:{backgroundColor:m,paddingTop:"3px",paddingBottom:"3px"}},"data-test-id":"MwebPricePill",display:"inlineBlock",children:[n&&u&&(0,p.jsxs)(_.xv,{align:"center",size:"100",weight:"bold",color:"subtle",inline:!0,children:[(0,p.jsx)("s",{children:(0,de.nk)("{{ priceRounded }}",{priceRounded:u[1]})})," "]}),(0,p.jsx)(_.xv,{align:"center",size:"100",weight:"bold",color:g,inline:!0,children:(n&&d||t)&&h&&h[1]?(0,de.nk)("{{ priceRounded }}",{priceRounded:h[1]}):l})]})}var _e=n(512176);const pe=114;function he({handleClick:e,isVerifiedMerchant:t,marginTop:n=12,pins:i,showVerifiedBadge:a,showVerifiedIdentityBadge:r,storyAction:o,storyType:s,title:l,viewParameter:d,trackingParams:c}){const{logContextEvent:u}=(0,f.v)(),h=(0,F.useHistory)(),{text:m}=o||{};return(0,p.jsxs)(_.xu,{marginTop:n,"data-test-id":"lego-closeup-related-module-contents",width:"100%",children:[l&&(0,p.jsxs)(_.xu,{alignItems:"center",display:"flex",justifyContent:"center",marginTop:4,children:[(0,p.jsx)(_.xv,{weight:"bold",children:l}),a&&(0,p.jsx)(_.xu,{marginStart:1,children:(0,p.jsx)(_e.Z,{size:"sm",isVerifiedMerchant:t,showVerifiedIdentity:r})})]}),(0,p.jsx)(_.xu,{display:"flex",marginTop:4,justifyContent:"center",children:i.map(((e,t)=>(0,p.jsx)(D.GR,{viewType:3,loggingId:e.id,viewParameter:d,component:Pe[s],auxData:{commerce_data:(0,oe.Z)({isEligibleForPdp:e.is_eligible_for_pdp,isOosProduct:e.is_oos_product,isStaleProduct:e.is_stale_product,pinShoppingFlags:e.shopping_flags})},slotIndex:t,children:(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{willChange:"transform"}},display:"flex",marginEnd:2!==t?2:0,overflow:"hidden",position:"relative",rounding:4,width:pe,children:(0,p.jsxs)(_.iP,{onTap:()=>(e=>{const t=(0,se.Z)(c,e.tracking_params);u({component:Pe[s],element:xe[s],event_type:101,view_type:3,view_parameter:d,object_id_str:e.id,clientTrackingParams:t,aux_data:{closeup_navigation_type:"click",commerce_data:(0,oe.Z)({isEligibleForPdp:e.is_eligible_for_pdp,isOosProduct:e.is_oos_product,isStaleProduct:e.is_stale_product,pinShoppingFlags:e.shopping_flags}),cosmic_ray_count:"5",image_signature:e.image_signature}}),u({component:13680,event_type:101,view_type:3,view_parameter:d,aux_data:{commerce_data:(0,oe.Z)({isEligibleForPdp:e.is_eligible_for_pdp,isOosProduct:e.is_oos_product,isStaleProduct:e.is_stale_product,pinShoppingFlags:e.shopping_flags})}}),h.push(`/pin/${e.id}/`,{trackingParams:c})})(e),children:[(0,p.jsx)(re,{pinId:e.id}),(0,p.jsx)(_.xu,{position:"absolute",marginTop:2,marginStart:2,top:!0,children:(0,p.jsx)(ue,{pinId:e.id,shouldRoundPrice:!0})})]})})},e.id)))}),m&&(0,p.jsx)(_.xu,{display:"flex",marginTop:4,marginBottom:4,justifyContent:"center",children:(0,p.jsx)(_.zx,{onClick:e,size:"lg",text:m})})]})}var me=n(722767);function ge({componentType:e,handleClick:t,isVerifiedMerchant:n,marginTop:a,objects:r,showVerifiedBadge:o,showVerifiedIdentityBadge:s,storyAction:l,storyType:d,title:c,viewParameter:u,trackingParams:_}){const[h,m]=(0,i.useState)(!1),g=(0,N.Z)();if(!r||!Array.isArray(r))return null;const v=r.filter((e=>"pin"===e.schema));if(v.length<3)return null;const f=Array.from(new Array(3)).map(((e,t)=>v[t]));return(0,p.jsx)(me.Z,{options:{threshold:0},onVisibilityChange:t=>{const{intersectionRatio:n}=t[0];n>0&&!h&&(g({event_type:3400,view_type:3,view_parameter:u,component:e}),m(!0))},children:(0,p.jsx)(he,{handleClick:t,isVerifiedMerchant:n,marginTop:a,pins:f,showVerifiedBadge:o,showVerifiedIdentityBadge:s,storyAction:l,storyType:d,title:c,viewParameter:u,trackingParams:_})})}var ve=n(982828);const fe=()=>{};function ye({marginTop:e=12,onRelatedPinsTitleEnter:t,onRelatedPinsTitleExit:n,onRelatedPinsInView:a,title:r}){return r?(0,p.jsx)(i.Fragment,{children:(0,p.jsx)(_.xu,{marginTop:e,marginBottom:2,children:(0,p.jsx)(ve.Z,{onEnter:t||fe,onExit:n||fe,onView:a||fe,children:(0,p.jsx)(_.xv,{size:"300",align:"center",weight:"bold",children:r})})})}):null}var Ee,Se,Te=n(167912);const Ie=["related_domain_collage","related_modules_header","related_products_collage","related_products_feed_header"],xe={related_domain_collage:11830,related_domain_collage_similar:11829},Pe={related_domain_collage:13327,related_domain_collage_similar:13882,related_products_collage:13176,related_products_feed_header:13176},be=void 0!==Ee?Ee:Ee=n(833045),Ae=void 0!==Se?Se:Se=n(562373);function we(e){const{marginTop:t,onRelatedPinsTitleEnter:n,onRelatedPinsTitleExit:a,onRelatedPinsInView:r,pinId:o,searchQuery:s,slotIndex:l,storyId:d,trafficSource:u,viewType:h,viewParameter:m,pinData:g,storyData:v}=e,{isEligibleForPdp:y,isOosProduct:E,isStaleProduct:S,pinShoppingFlags:T,pinLinkDomainOfficialUserIsVerifiedMerchant:I,pinLinkDomainOfficialUserVerifiedIdentityVerified:x,hasPin:P}=g,{storyAction:b,contentIds:A,objects:w,storyType:R,storyTitle:C,trackingParams:O,hasStory:N}=v,{logContextEvent:k}=(0,f.v)(),{isAuth:L}=(0,M.Z)(),{checkExperiment:j}=(0,c.F)(),U=(0,F.useHistory)(),B=y,G=(0,i.useMemo)((()=>B?8:0===t||t?t:12),[t,B]);if(!N)return null;const z=Pe[R];if("related_modules_header"===R||"related_products_feed_header"===R)return j(L?"mweb_deprecated_impression_tracker_story_impression_auth":"mweb_deprecated_impression_tracker_story_impression_unauth").anyEnabled?(0,p.jsx)(D.qS,{auxData:{story_id:d,story_type:R},loggingId:d,objectIdStr:d,slotIndex:l,viewParameter:m,viewType:h,component:z,children:({impressionTrackerRef:e})=>(0,p.jsx)(_.xu,{ref:e,children:(0,p.jsx)(ye,{marginTop:G,onRelatedPinsTitleEnter:n,onRelatedPinsTitleExit:a,onRelatedPinsInView:r,title:C})})}):(0,p.jsx)(D.Hs,{auxData:{story_id:d,story_type:R},loggingId:d,objectIdStr:d,slotIndex:l,viewParameter:m,viewType:h,component:z,children:(0,p.jsx)(ye,{marginTop:G,onRelatedPinsTitleEnter:n,onRelatedPinsTitleExit:a,onRelatedPinsInView:r,title:C})});const{url:H}=b||{};if(!P||!o||!H)return null;const Z=function(e,t){const n=e?`q=${e}`:null,i=t&&"unknown"!==t?`rs=${t}`:null;let a="";return n&&i?a=`?${n}&${i}`:!n&&i&&(a=`?${i}`),a}(s,u);let V=`${H}${Z}`;"related_products_collage"===R&&(V=Z?`/pin/${o}/visual-search/${Z}source=shopping&tab=1`:`/pin/${o}/visual-search/?source=shopping&tab=1`);const W=(A||[]).map((e=>`pin:${e}`)).join("|"),K=()=>{const e="related_domain_collage"===R?"related_domain_collage_similar":R;k({aux_data:{content_ids:W,story_id:d,story_type:R},component:Pe[e],element:xe[e],event_type:101,object_id_str:o,view_type:3,view_parameter:m}),k({aux_data:{commerce_data:(0,oe.Z)({isEligibleForPdp:y,isOosProduct:E,isStaleProduct:S,pinShoppingFlags:T})},component:13680,event_type:101,object_id_str:o,view_type:3,view_parameter:m}),U.push(V)};let Y,q;return"related_domain_collage"===R&&(Y=I,q=x),j(L?"mweb_deprecated_impression_tracker_story_impression_auth":"mweb_deprecated_impression_tracker_story_impression_unauth").anyEnabled?(0,p.jsx)(D.qS,{auxData:{content_ids:W,story_id:d,story_type:R},component:z,loggingId:d,objectIdStr:d,slotIndex:l,viewParameter:m,viewType:h,children:({impressionTrackerRef:e})=>(0,p.jsx)(_.xu,{ref:e,children:(0,p.jsx)(ge,{componentType:z,handleClick:K,isVerifiedMerchant:Y,objects:w,showVerifiedBadge:Y||q,showVerifiedIdentityBadge:!Y&&q,storyAction:b,title:C,viewParameter:m,trackingParams:null!=O?O:void 0,storyType:R,marginTop:G})})}):(0,p.jsx)(D.Hs,{auxData:{content_ids:W,story_id:d,story_type:R},component:z,loggingId:d,objectIdStr:d,slotIndex:l,viewParameter:m,viewType:h,children:(0,p.jsx)(ge,{componentType:z,handleClick:K,isVerifiedMerchant:Y,objects:w,showVerifiedBadge:Y||q,showVerifiedIdentityBadge:!Y&&q,storyAction:b,title:C,viewParameter:m,trackingParams:null!=O?O:void 0,storyType:R,marginTop:G})})}const Re=(0,w.Z)({useGraphQLAdapter:e=>{var t;const n=(0,Te.useFragment)(Ae,e);return{storyTitle:(null===(t=n.title)||void 0===t?void 0:t.format)||"",trackingParams:n.trackingParams||void 0,contentIds:n.contentIds,objects:[],storyType:n.storyType||"",storyAction:n.action?{url:n.action.url,text:n.action.text}:void 0,hasStory:!0}},useLegacyAdapter:e=>{const t=(0,a.useSelector)((({stories:t})=>t[e])),{action:n,content_ids:i,objects:r,story_type:o,title:{format:s},tracking_params:l}=t;return{storyTitle:s,trackingParams:l,contentIds:i,objects:r,storyType:o.toString(),storyAction:n,hasStory:!!t}}}),Ce=({storyGraphqlRef:e,...t})=>(0,p.jsx)(Re,{input:e?{enabled:!0,data:e}:{enabled:!1,data:t.storyId},children:({data:e})=>(0,p.jsx)(we,{...t,storyData:e})}),Oe=(0,w.Z)({useGraphQLAdapter:e=>{var t,n;const i=(0,Te.useFragment)(be,e),a=null===(t=i.linkDomain)||void 0===t?void 0:t.officialUser;return{isEligibleForPdp:i.isEligibleForPdp,isOosProduct:i.isOosProduct,isStaleProduct:i.isStaleProduct,pinShoppingFlags:i.shoppingFlags||void 0,pinLinkDomainOfficialUserIsVerifiedMerchant:(null==a?void 0:a.isVerifiedMerchant)||void 0,pinLinkDomainOfficialUserVerifiedIdentityVerified:(null==a||null===(n=a.verifiedIdentity)||void 0===n?void 0:n.verified)||void 0,hasPin:!!i}},useLegacyAdapter:e=>{var t,n;const i=(0,$.S6)()(e),a=null==i||null===(t=i.link_domain)||void 0===t?void 0:t.official_user;return{isEligibleForPdp:null==i?void 0:i.is_eligible_for_pdp,isOosProduct:null==i?void 0:i.is_oos_product,isStaleProduct:null==i?void 0:i.is_stale_product,pinShoppingFlags:null==i?void 0:i.shopping_flags,pinLinkDomainOfficialUserIsVerifiedMerchant:null==a?void 0:a.is_verified_merchant,pinLinkDomainOfficialUserVerifiedIdentityVerified:null==a||null===(n=a.verified_identity)||void 0===n?void 0:n.verified,hasPin:!!i}}});function Ne({pinGraphqlRef:e,...t}){return(0,p.jsx)(Oe,{input:e?{enabled:!0,data:e}:{enabled:!1,data:t.pinId},children:({data:e})=>(0,p.jsx)(Ce,{...t,pinData:e})})}const De="49.5%";function ke({buttonAction:e,buttonText:t,colorImgs:n}){if(!n||n.length<4)return null;const i=e=>{var t,n,i,a;return(0,p.jsx)(_.xu,{width:De,height:"100%",children:(0,p.jsx)(_.Ee,{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!==(a=e.url)&&void 0!==a?a:"",fit:"cover"})})};return(0,p.jsx)(_.xu,{position:"relative",padding:1,marginBottom:2,children:(0,p.jsxs)(T.MZ,{to:e,children:[(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},position:"relative",children:(0,p.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},top:!0,right:!0,bottom:!0,left:!0,overflow:"hidden",position:"absolute",rounding:4,children:(0,p.jsx)(_.xu,{height:"100%",width:"100%",rounding:4,direction:"column",display:"flex",justifyContent:"between",children:[n.slice(0,2),n.slice(2,4)].map((e=>(0,p.jsx)(_.kC,{width:"100%",height:De,justifyContent:"between",children:e.map(i)})))})})}),(0,p.jsx)(_.xu,{width:"100%",display:"flex",rounding:"pill",color:"secondary",justifyContent:"center",alignItems:"center",paddingX:2,height:48,marginTop:2,children:(0,p.jsx)(_.xv,{weight:"bold",children:(0,p.jsx)(_.xu,{children:t})})})]})})}var Le=n(163321),je=n(962551),Ue=n(826067);const Me=["#CFFFCA","#D7EDFF","#DAD4FF","#DAFFF6","#FFE2EB","#FFE4C1","#FFFD92"],Fe=e=>Me[e.charCodeAt(0)%Me.length];function Be({guides:e,storyId:t,slotIndex:n,titleFormat:a}){var r;const{isAuth:o}=(0,M.Z)(),{checkExperiment:s}=(0,c.F)(),l=null!==(r=(0,Ue.mB)((0,F.useLocation)().search).q)&&void 0!==r?r:"";return s(o?"mweb_deprecated_impression_tracker_story_impression_auth":"mweb_deprecated_impression_tracker_story_impression_unauth").anyEnabled?(0,p.jsx)(D.qS,{auxData:{story_type:"search_guides"},component:200,loggingId:t,objectIdStr:t,slotIndex:n,viewParameter:43,viewType:2,children:({impressionTrackerRef:t})=>(0,p.jsxs)(_.xu,{ref:t,children:[a&&(0,p.jsx)(_.xu,{paddingY:1,marginTop:2,children:(0,p.jsx)(_.xv,{align:"center",children:a})}),(0,p.jsx)(je.Z,{guides:e.map((e=>({display:e.display,dominant_color:Fe(e.display),position:-1,term:e.term}))),isSlot0Style:!0,query:l})]})}):(0,p.jsx)(D.Hs,{auxData:{story_type:"search_guides"},component:200,loggingId:t,objectIdStr:t,slotIndex:n,viewParameter:43,viewType:2,children:(0,p.jsxs)(i.Fragment,{children:[a&&(0,p.jsx)(_.xu,{paddingY:1,marginTop:2,children:(0,p.jsx)(_.xv,{align:"center",children:a})}),(0,p.jsx)(je.Z,{guides:e.map((e=>({display:e.display,dominant_color:Fe(e.display),position:-1,term:e.term}))),isSlot0Style:!0,query:l})]})})}var Ge;const ze=["shop_tab_upsell","story_pins_search_upsell","structured_search_bubble","user_style_story_v2"],He=(0,i.lazy)((()=>n.e(93810).then(n.bind(n,896731)))),Ze=void 0!==Ge?Ge:Ge=n(922275);function Ve({auxData:e,fullWidth:t,isMwebStructuredFeedExpEnabled:n,marginTop:a,onRelatedPinsTitleEnter:r,onRelatedPinsTitleExit:o,onRelatedPinsInView:s,pinId:l,slotIndex:d,storyId:c,trafficSource:u,viewParameter:m,viewType:g,pinGraphqlRef:v,storyData:f}){const y=(0,ie.Z)(),{actionUrl:E,actionText:T,containerType:I,customProperties:x,displayOptions:w,experience:R,storyType:C,titleFormat:O,titleArgsQuery:N,descriptionFormat:D,contextualSearchFromObjects:k,userIdsFromObjects:M,colorImgsFromObjects:F,rawStoryData:B}=f;if((0,i.useEffect)((()=>{Y.Z.increment("webapp.graphql.pinStory",.1,{viewType:g,storyType:C})}),[g,C]),C===ae.uQ&&x&&w){var z;const{actionType:e,hide_complete_button:n,image_alt:i,image:a,open_new_tab:r,avatar_image_details:o,example_pin_image_details:s,title_text_customization:l,description_text_customization:d}=x,{numColumnsRequested:c,titleTextColor:u}=w;return t||2!==c?(0,p.jsx)(S,{isFullWidth:2===c,actionType:e,buttonAction:null!=E?E:"",buttonText:null!=T?T:"",experience:null!=R?R:void 0,hideCompleteButton:n,imageAlt:i,imageUrl:a,openNewTab:r,avatarImageDetails:null!=o?o:{},examplePinImage:null!==(z=null==s?void 0:s.originals)&&void 0!==z?z:{},titleText:null!=O?O:"",titleTextColor:Le.e[u],titleTextCustomization:l,descriptionText:null!=D?D:"",descriptionTextCustomization:d}):null}if(t)return n&&(0,K.Z)(I)?(0,p.jsx)(_.xu,{marginBottom:5,children:(0,p.jsx)(j.Z,{name:"SafeSuspense_MobileApp_StructuredFeedStoryModule",children:(0,p.jsx)(J.Z,{children:(0,p.jsx)(He,{surface:"ShoppingDynamicHeightGrid",view:3,componentFallback:13176,viewParameter:m,initialSlotIndex:d,story:B})})})}):ze.includes(C)&&0===(null==w?void 0:w.numColumnsRequested)?(0,p.jsx)(_.xu,{marginBottom:5,children:(0,p.jsx)(W,{auxData:e,slotIndex:d,storyId:c,storyType:C,trafficSource:u,viewParameter:m,viewType:g})}):C.startsWith("creator_spotlight_")?(0,p.jsx)(_.xu,{marginBottom:5,children:(0,p.jsx)(L,{id:c})}):Ie.includes(C)&&l?(0,p.jsx)(Ne,{onRelatedPinsTitleEnter:r,onRelatedPinsTitleExit:o,onRelatedPinsInView:s,pinId:l,storyId:c,slotIndex:d,viewParameter:m,viewType:g,marginTop:a,pinGraphqlRef:v,storyGraphqlRef:null}):C.startsWith("related_articles")?(0,p.jsx)(ne,{storyId:c,viewType:g,viewParameter:m}):C.startsWith("SKIN_TONE_FILTER_QUERIES")?(0,p.jsx)(A.Z,{titleFormat:null!=O?O:"",titleArgsQuery:null!=N?N:""}):C.startsWith("search_pinner_authority_hero")?(0,p.jsx)(X,{storyId:c,slotIndex:0,exactMatch:!0}):C.startsWith("boards_more_ideas_feed_upsell")?(0,p.jsx)(_.xu,{marginBottom:6,children:(0,p.jsx)(j.Z,{name:"SafeSuspense_MobileApp_StructuredFeedStoryModule",children:(0,p.jsx)(J.Z,{children:(0,p.jsx)(He,{view:1,viewParameter:m,initialSlotIndex:d,story:B})})})}):null;if(ze.includes(C)&&0===(null==w?void 0:w.numColumnsRequested))return null;switch(I){case 56:return(0,p.jsx)(_.xu,{padding:2,children:(0,p.jsx)(b.Z,{slotIndex:d,storyId:c,viewType:g,viewParameter:m})})}switch(C){case"app_upsell":return y?(0,p.jsx)(U.Z,{experience:R,eligibleIds:[R.experience_id],children:(0,p.jsx)(h,{})}):null;case"feed_card_default":case"feed_card_video":return(0,p.jsx)(Le.Z,{buttonAction:null!=E?E:"",buttonCustomization:x.button_customization,buttonText:null!=T?T:"",experience:null!=R?R:void 0,hideCompleteButton:x.hide_complete_button,imageAlt:x.image_alt,imageUrl:x.image,openNewTab:x.open_new_tab,storyType:C,titleText:null!=O?O:"",titleTextColor:Le.e[w.titleTextColor],titleTextCustomization:x.title_text_customization,videoPin:x.video_pin,videoPlaceholderImage:x.video_placeholder_image});case"user_brand_story":case"user_color_story":case"general_shopping_upsell":return(0,p.jsx)(Le.Z,{buttonAction:null!=E?E:"",buttonText:null!=T?T:"",imageAlt:null==x?void 0:x.image_alt,imageUrl:null==x?void 0:x.image,storyType:C,titleText:null!=O?O:"",titleTextColor:Le.e[w.titleTextColor]});case"user_brand_story_v1":return(0,p.jsx)(P,{buttonAction:null!=E?E:"",buttonText:null!=T?T:"",imageUrl:null==x?void 0:x.image,brandIds:M});case"user_color_story_v1":return(0,p.jsx)(ke,{buttonAction:null!=E?E:"",buttonText:null!=T?T:"",colorImgs:F});case"BUBBLE_ONE_COL":return(0,p.jsx)(_.xu,{padding:2,children:(0,p.jsx)(b.Z,{slotIndex:d,storyId:c,viewType:g,viewParameter:m})});case"social_seasonal_pin":return(0,p.jsx)(ee,{slotIndex:d,storyId:c,viewType:g,viewParameter:m,size:290});case"pinner_authority":case"pinner_authority_unified":return(0,p.jsx)(X,{storyId:c,slotIndex:d});case"stela_in_flashlight_onecol":return(0,p.jsx)(G,{storyId:c,slotIndex:d});case"search_guides":return(0,p.jsx)(Be,{guides:null!=k?k:[],slotIndex:d,storyId:c,titleFormat:null!=O?O:""});default:return null}}const We=(0,w.Z)({useGraphQLAdapter:()=>null,useLegacyAdapter:({storyData:e,storyId:t})=>{var n;const i=(0,$.S6)(),r=(0,a.useSelector)((({stories:e})=>e[t])),o=e||r;if(!o)return null;const{action:s,container_type:l,custom_properties:d,display_options:c,experience:u,story_type:_,title:p,description:h,objects:m}=o;if(!_)return null;const g=m,v=null==g?void 0:g.filter((e=>"contextual_search"===e.schema)).map((e=>{var t,n;return{schema:"contextual_search",display:null!==(t=e.display)&&void 0!==t?t:"",term:null!==(n=e.term)&&void 0!==n?n:""}})),f=null==g?void 0:g.filter((e=>"user"===e.schema)).map((e=>e.id)),y=null==g?void 0:g.filter((e=>"pin"===e.schema)).slice(0,4).map((e=>{var t,n,a,r,o,s;const l=i(e.id);return{title:null==l?void 0:l.description,height:null==l||null===(t=l.images)||void 0===t||null===(n=t["736x"])||void 0===n?void 0:n.height,width:null==l||null===(a=l.images)||void 0===a||null===(r=a["736x"])||void 0===r?void 0:r.width,url:null==l||null===(o=l.images)||void 0===o||null===(s=o["736x"])||void 0===s?void 0:s.url}}));return{actionText:null==s?void 0:s.text,actionUrl:null==s?void 0:s.url,containerType:l,customProperties:d,displayOptions:c?{numColumnsRequested:c.num_columns_requested,titleTextColor:c.title_text_color}:null,experience:u,storyType:_,titleFormat:null==p?void 0:p.format,titleArgsQuery:null==p||null===(n=p.args)||void 0===n?void 0:n.query,descriptionFormat:null==h?void 0:h.format,contextualSearchFromObjects:v,userIdsFromObjects:f,colorImgsFromObjects:y,rawStoryData:o,storyId:t}}}),Ke=({storyData:e,...t})=>(0,p.jsx)(We,{input:{enabled:!1,data:{storyData:e,storyId:t.storyId}},children:({data:e})=>e&&(0,p.jsx)(Ve,{...t,storyData:e})}),Ye=(0,w.Z)({useGraphQLAdapter:e=>({pinGraphqlRef:(0,Te.useFragment)(Ze,e)}),useLegacyAdapter:()=>null});function qe({pinGraphqlRef:e,...t}){return(0,p.jsx)(Ye,{input:e?{enabled:!0,data:e}:{enabled:!1,data:null},children:e=>{var n;return(0,p.jsx)(Ke,{pinGraphqlRef:null===(n=e.data)||void 0===n?void 0:n.pinGraphqlRef,...t})}})}},687866:(e,t,n)=>{n.d(t,{UG:()=>u,ZP:()=>p,aG:()=>_});var i=n(667294),a=n(116303),r=n(898781),o=n(52022),s=n(57791),l=n(940882),d=n(883119),c=n(785893);const u={large:"large",medium:"medium",small:"small",extra_small:"extra_small",article:"article",interest:"interest"},_={bubbleOverlay:{__style:{backgroundColor:"rgba(0, 0, 0, 0.3)"}}};function p({backgroundColor:e,bubbleId:t,bubbleUrl:n,coverImageUrl:p,curator:h,font:m,format:g,height:v,identifierIconType:f,onTap:y,pwtSurfaceContext:E,referringSource:S,subtitle:T,title:I,buttonFormat:x,contentAlign:P="center",textAlign:b="center",width:A="100%"}){const w=(0,r.ZP)(),R=(0,o.Z)(),[C,O]=(0,i.useState)("string"==typeof v?void 0:v),N=e=>{if(e){const t=e.offsetWidth,n="string"==typeof v?Number.parseFloat(v):100;O(t*n/100)}};if(!C)return(0,c.jsx)(d.xu,{ref:N,dangerouslySetInlineStyle:{__style:{paddingBottom:"string"==typeof v?Number.parseFloat(v)+"%":"100%",width:A}}});const D=g===u.article,k=g===u.interest,L=m||C>250&&"lg"||C>140&&g&&[u.medium,u.small,u.article].includes(g)&&"md"||C<120&&g&&g===u.small&&"xs"||"sm";return(0,c.jsx)(d.xu,{position:"relative","data-test-id":"search-suggestion","data-test-type":S,children:(0,c.jsx)(s.MZ,{to:n,isAppUpsellDisabled:!0,onTouch:()=>{y&&(R({action:"click",item:"search-suggestion"}),y(t))},rounding:4,children:(0,c.jsxs)(d.zd,{rounding:4,children:[(0,c.jsx)(d.xu,{width:A,height:C,children:p&&(0,c.jsx)(d.Ee,{alt:"",color:e,fit:"cover",naturalHeight:1,naturalWidth:1,onLoad:()=>{E&&E.markConstraintComplete("RenderSearchLandingPageBubbles")},role:"presentation",src:p})}),(0,c.jsx)(d.xu,{dangerouslySetInlineStyle:_.bubbleOverlay,height:C,width:A,position:"absolute",top:!0,left:!0}),h&&!D&&(0,c.jsx)(d.xu,{position:"absolute",top:!0,left:!0,padding:2,children:(0,c.jsx)(a.Z,{outline:!0,size:"xs",src:h.image_small_url,name:h.full_name})}),!!f&&f!==l.J&&(0,c.jsx)(d.xu,{alignItems:"center",color:"default",display:"flex",height:24,justifyContent:"center",left:!0,margin:2,opacity:.8,position:"absolute",rounding:"circle",top:!0,width:24,children:(0,c.jsx)(d.JO,{icon:(0,l.Z)(f),accessibilityLabel:w._('Shopping icon', 'bubble.shoppingIcon.label', 'Accessibility label for bubble shopping Icon'),color:"default",size:12})}),(0,c.jsx)(d.xu,{display:"flex",position:"absolute",top:!0,width:A,height:C,padding:D||k?6:C>100?3:1,alignItems:D||k?"end":"center",justifyContent:P,children:(0,c.jsxs)(d.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[T&&(0,c.jsx)(d.xv,{align:b,color:"light",size:"lg"===L?"300":"100",overflow:"normal",children:T}),["lg","md"].includes(L)?(0,c.jsx)(d.X6,{align:b,size:"md"===L&&k?"500":"lg"===L?"600":"400",color:"light",overflow:"normal",children:I}):(0,c.jsx)(d.xv,{align:b,color:"light",size:"sm"===L?"300":"100",overflow:"normal",weight:"bold",children:I}),h&&D&&(0,c.jsxs)(d.xu,{display:"flex",justifyContent:"center",alignItems:"center",marginTop:4,children:[(0,c.jsx)(d.xu,{marginEnd:2,children:(0,c.jsx)(a.Z,{outline:!0,size:"xs",src:h.image_small_url,name:h.full_name})}),(0,c.jsx)(d.xv,{size:"100",color:"light",weight:"bold",children:h.full_name})]}),x&&(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(d.zx,{role:"link",text:x.text,href:x.href,size:x.size,accessibilityLabel:x.accessibilityLabel})})]})})]})})})}},368156:(e,t,n)=>{n.d(t,{Z:()=>f});var i,a=n(667294),r=n(702664),o=n(30439),s=n(934494),l=n(149230),d=n(112690),c=n(861411),u=n(940882),_=n(883119),p=n(167912),h=n(785893);const m=void 0!==i?i:i=n(16143);function g({auxData:e,pattern:t,slotIndex:n,storyId:i,viewType:s,viewParameter:p,storyData:{storyType:m,referringSource:g,hasTitle:v,titleFormat:f,identifierIconName:y,actionUrl:E,actionText:S,articlesIds:T}}){const I=(0,d.Z)(),x=(0,r.useSelector)((({articles:e})=>T.map((t=>e[t])))),P={story_type:m,story_id:i,content_ids:x.map((({type:e,id:t})=>e+":"+t)).join("|"),...e};return(0,h.jsx)(c.Hs,{loggingId:i,objectIdStr:i,viewParameter:p,viewType:s,slotIndex:n,component:200,auxData:P,children:(0,h.jsxs)(a.Fragment,{children:[v&&(0,h.jsxs)(_.xu,{display:"flex",marginBottom:2,justifyContent:"center",alignItems:"center",children:["number"==typeof y&&y!==u.J&&(0,h.jsx)(_.xu,{marginEnd:2,dangerouslySetInlineStyle:{__style:{paddingTop:1}},children:(0,h.jsx)(_.JO,{accessibilityLabel:"",color:"default",icon:(0,u.Z)(y),size:14})}),(0,h.jsx)(_.xv,{weight:"bold",children:f})]}),(0,h.jsx)(o.Z,{bubbles:x,pattern:t,referringSource:g,storyId:i,storyType:m,viewParameter:p,viewType:s}),E&&S&&(0,h.jsx)(_.xu,{display:"flex",width:"100%",justifyContent:"center",marginTop:1,children:(0,h.jsx)(_.zx,{role:"link",accessibilityLabel:S,color:"gray",onClick:()=>{I({view_type:s,view_parameter:p,aux_data:P,event_type:102})},text:S,href:E,rel:(0,l.Z)(E)?"nofollow":void 0,target:(0,l.Z)(E)?"blank":void 0,size:"md"})})]})})}const v=(0,s.Z)({useGraphQLAdapter:({storyGraphqlRef:e})=>{const{storyType:t,referringSource:n,storyTitle:i,displayOptions:a,action:r,objects:o}=(0,p.useFragment)(m,e),s=null==a?void 0:a.identifierIconName;return{storyType:t,referringSource:n,hasTitle:!!i,titleFormat:null==i?void 0:i.format,identifierIconName:s,actionUrl:null==r?void 0:r.url,actionText:(null==r?void 0:r.text)||void 0,articlesIds:(null==o?void 0:o.filter((e=>"ExploreArticle"===e.__typename)).map((e=>e.entityId)).filter(Boolean))||[]}},useLegacyAdapter:({storyId:e})=>{const t=(0,r.useSelector)((({stories:t})=>t[e])),{story_type:n,referring_source:i,title:a,display_options:o,action:s,objects:l}=t;return{storyType:n,referringSource:i,hasTitle:!!a,titleFormat:null==a?void 0:a.format,identifierIconName:null==o?void 0:o.identifier_icon_name,actionUrl:null==s?void 0:s.url,actionText:null==s?void 0:s.text,articlesIds:l.map((e=>e.id))||[]}}});function f({storyGraphqlRef:e,storyId:t,...n}){return(0,h.jsx)(v,{input:e?{enabled:!0,data:{storyGraphqlRef:e}}:{enabled:!1,data:{storyId:t}},children:({data:e})=>(0,h.jsx)(g,{...n,storyId:t,storyData:e})})}},30439:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(936819),a=n(883119),r=n(687866),o=n(785893);function s(e){const{bubbles:t,onTouch:n,pattern:s=[r.UG.medium],pwtSurfaceContext:l,referringSource:d,storyId:c,storyType:u,viewParameter:_,viewType:p}=e,h=t.map((({type:e,id:t})=>e+":"+t)).join("|");return(0,o.jsx)(a.kC,{alignItems:"stretch",justifyContent:"between",width:"100%",wrap:!0,children:t.map(((e,t)=>{const m=s[t%s.length];return(0,o.jsx)(a.xu,{paddingY:1,width:[r.UG.small,r.UG.extra_small].includes(m)?"calc(50% - 4px)":"100%",children:(0,o.jsx)(i.Z,{auxData:{content_ids:h,story_type:u,grid_index:t},bubble:e,format:m,height:([r.UG.medium,r.UG.extra_small].includes(m)?"50%":m===r.UG.article&&"73%")||"100%",onTouch:n,pwtSurfaceContext:l,referringSource:d,slotIndex:t,storyId:c,viewParameter:_,viewType:p})},`bubble-${t}`)}))})}},17716:(e,t,n)=>{n.d(t,{Z:()=>b});var i=n(667294),a=n(936819),r=n(164985),o=n(898781),s=n(112690),l=n(52022),d=n(861411),c=n(883119),u=n(57791),_=n(784641),p=n(643010),h=n(687866),m=n(785893);const g=["#FFF8FA","#F8F7FF","#F7FBFF","#F7FDFC","#F6FDF5","#FFFEDB","#FFF6EB"];function v({backgroundColor:e,coverImageUrl:t,height:n,pwtTrackImageLoad:a,subtitle:r,title:o,width:s}){return(0,m.jsxs)(i.Fragment,{children:[(0,m.jsx)(c.xu,{width:s,height:n,children:(0,m.jsx)(c.Ee,{alt:"",color:e,fit:"cover",naturalHeight:1,naturalWidth:1,onLoad:a,role:"presentation",src:t})}),(0,m.jsx)(c.xu,{dangerouslySetInlineStyle:h.aG.bubbleOverlay,height:n,left:!0,position:"absolute",top:!0,width:s}),(0,m.jsx)(c.xu,{alignItems:"center",display:"flex",height:n,justifyContent:"center",marginTop:4,padding:8,position:"absolute",top:!0,width:s,children:(0,m.jsxs)(c.kC,{alignItems:"stretch",direction:"column",gap:{row:0,column:1},justifyContent:"start",children:[r&&(0,m.jsx)(c.xv,{align:"center",color:"light",lineClamp:1,size:"300",overflow:"normal",children:r}),(0,m.jsx)(c.X6,{accessibilityLevel:1,align:"center",color:"light",lineClamp:3,size:"400",overflow:"normal",children:o})]})})]})}function f({backgroundColor:e,coverImageUrl:t,height:n,imgBackgroundColor:a,isDarkBackground:r,pwtTrackImageLoad:o,subtitle:s,title:l,width:d}){return(0,m.jsxs)(i.Fragment,{children:[(0,m.jsxs)(c.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:e||g[l.charCodeAt(0)%g.length]}},height:n,position:"relative",width:d,children:[(0,p.Yc)()&&(0,m.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, 0.3)"}},height:"100%",left:!0,position:"absolute",top:!0,width:"100%"}),(0,m.jsx)(c.xu,{alignItems:"center",display:"flex",height:.6*n,justifyContent:"center",marginTop:8,padding:8,position:"absolute",top:!0,width:d,children:(0,m.jsxs)(c.kC,{alignItems:"stretch",direction:"column",gap:{row:0,column:1},justifyContent:"start",children:[s&&(0,m.jsx)(c.xv,{align:"center",color:r?"light":"dark",overflow:"normal",size:"300",children:s}),(0,m.jsx)(c.X6,{accessibilityLevel:1,align:"center",color:r?"light":"dark",overflow:"normal",size:"400",children:l})]})})]}),(0,m.jsx)(c.xu,{alignItems:"end",bottom:!0,display:"flex",height:.5*n,marginBottom:-5,justifyContent:"center",position:"absolute",width:d,children:t.slice(0,3).map(((e,t)=>(0,m.jsx)(c.xu,{dangerouslySetInlineStyle:h.aG.bubbleOverlay,height:1===t?"100%":"80%",overflow:"hidden",rounding:4,width:1===t?"36%":"28.8%",zIndex:1===t?new c.Ry(1):void 0,marginStart:0!==t?-5:void 0,children:(0,m.jsx)(c.Ee,{alt:"",color:a,fit:"cover",naturalHeight:1,naturalWidth:1,onLoad:o,role:"presentation",src:e})},`TripleImageBubble-${t}`)))})]})}function y({auxData:e,bubble:t,immersiveHeader:n,onTouch:a,pwtSurfaceContext:r,referringSource:o,slotIndex:p,storyId:g,storyType:y,viewParameter:E,viewType:S}){const{article_creator_user:T,display_color:I,dominant_color_css:x,feed_source:P,has_dark_display_color:b=!1,id:A,image_urls:w,is_product_pin_feed:R,subtitle:C,title:O}=t,N=T&&T.full_name&&T.image_small_url?{full_name:T.full_name,image_small_url:T.image_small_url}:void 0,D=(0,s.Z)(),k=(0,l.Z)(),[L,j]=(0,i.useState)();if(!O||!A||!w)return null;const U=(0,_.T7)(null!=P?P:1,null!=R&&R,O,A),M=()=>{k({action:"click",item:"search-suggestion"}),D({view_type:S,view_parameter:E,object_id_str:A,component:13525,event_type:102,aux_data:{grid_index:p,story_id:g,story_type:y,today_article_id:A}}),a&&a({query:O})},F="100%",B=e=>{if(e){const t=e.offsetWidth,n=Number.parseFloat("85%");j(t*n/100)}};if(!L)return(0,m.jsx)(c.xu,{ref:B,dangerouslySetInlineStyle:{__style:{paddingBottom:Number.parseFloat("85%")+"%",width:F}}});const G=()=>{r&&r.markConstraintComplete("RenderSearchLandingPageBubbles")};return(0,m.jsx)(d.Y4,{auxData:{grid_index:p.toString(),story_id:g,story_type:y,today_article_id:A,...e},component:13525,impressionData:{storyIdStr:g},loggingId:g,objectIdStr:g,slotIndex:p,viewParameter:E,viewType:S,children:({impressionTrackerRef:e})=>n?(0,m.jsx)(c.xu,{"data-test-id":"search-suggestion","data-test-type":o,position:"relative",ref:e,children:(0,m.jsx)(u.MZ,{to:U,isAppUpsellDisabled:!0,onTouch:M,children:w.length>=3?(0,m.jsx)(f,{backgroundColor:I,coverImageUrl:w,height:L,imgBackgroundColor:null!=x?x:void 0,isDarkBackground:b,pwtTrackImageLoad:G,subtitle:null!=C?C:"",title:O,width:F}):(0,m.jsx)(v,{backgroundColor:null!=x?x:void 0,coverImageUrl:w[0],height:L,pwtTrackImageLoad:G,subtitle:null!=C?C:"",title:O,width:F})})}):(0,m.jsx)(h.ZP,{backgroundColor:x||"",bubbleId:A,bubbleUrl:U,curator:N,coverImageUrl:w[0],format:h.UG.article,height:"75%",onTap:M,pwtSurfaceContext:r,title:O,width:F})})}function E({auxData:e,bubble:t,onTouch:n,pwtSurfaceContext:a,referringSource:r,slotIndex:_,storyId:p,storyType:h,viewParameter:g,viewType:v}){const{action:y,cover_images:E,dominant_colors:S,id:T,title:I}=t,x=(0,s.Z)(),P=(0,l.Z)(),[b,A]=(0,i.useState)(),w=(0,o.ZP)(),R=null==I?void 0:I.format,C=null==y?void 0:y.url,O=null==E?void 0:E.map((e=>{var t,n;return null!==(t=null===(n=e["474x"])||void 0===n?void 0:n.url)&&void 0!==t?t:""}));if(!(R&&T&&O&&C))return null;const N="100%",D=e=>{if(e){const t=e.offsetWidth,n=Number.parseFloat("85%");A(t*n/100)}};if(!b)return(0,m.jsx)(c.xu,{ref:D,dangerouslySetInlineStyle:{__style:{paddingBottom:Number.parseFloat("85%")+"%",width:N}}});return(0,m.jsx)(d.fv,{auxData:{grid_index:_.toString(),story_id:p,story_type:h,...e},component:13865,impressionData:{storyIdStr:p},loggingId:p,objectIdStr:p,slotIndex:_,viewParameter:g,viewType:v,children:(0,m.jsx)(c.xu,{"data-test-id":"search-suggestion","data-test-type":r,position:"relative",children:(0,m.jsx)(u.MZ,{to:C,isAppUpsellDisabled:!0,onTouch:()=>{P({action:"click",item:"search-suggestion"}),x({view_type:v,view_parameter:g,object_id_str:T,component:13865,event_type:102,aux_data:{grid_index:_,story_id:p,story_type:h}}),n&&n({query:R})},children:(0,m.jsx)(f,{coverImageUrl:O,height:b,imgBackgroundColor:null==S?void 0:S[1],pwtTrackImageLoad:()=>{a&&a.markConstraintComplete("RenderSearchLandingPageBubbles")},subtitle:w._('Ideas for you', 'immersiveHeader.exploreArticle.subtitle', 'Ideas for you bubble\'s title in immersive header'),title:R,width:N})})})})}function S({bubble:e,font:t,height:n,width:i="100%",onTouch:a}){const{id:r,url:o,title:s,dominant_color_css:l,image_urls:d,buttonText:c}=e;if(!s||!r||!d)return null;const u={text:c,accessibilityLabel:c,href:o,size:"md"};return(0,m.jsx)(h.ZP,{backgroundColor:null!=l?l:void 0,bubbleId:r,bubbleUrl:o,coverImageUrl:d[0],font:t,format:"interest",height:n,title:s,width:i,contentAlign:"start",textAlign:"start",buttonFormat:u,onTap:()=>a&&a({query:s})})}var T=n(204283),I=n(407043),x=n(366428);function P({bubble:e,component:t,height:n,slotIndex:a,storyId:r,storyType:o,viewParameter:s,viewType:l}){var d;const{logContextEvent:u}=(0,I.v)(),[_,p]=(0,i.useState)("string"==typeof n?void 0:n),h=e=>{if(e){const t=e.offsetWidth,i="string"==typeof n?Number.parseFloat(n):100;p(t*i/100)}},{action:g,aux_fields:v,cover_images:f,dominant_colors:y,title:E,id:S}=e,T=(0,x.Z)({componentType:null!=t?t:void 0,contextLogData:{story_type:o},impressionType:"Article",loggingId:S,slotIndex:a,viewParameter:s,viewType:l});if(!_)return(0,m.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{paddingBottom:"string"==typeof n?Number.parseFloat(n)+"%":"100%"}},ref:h,width:"100%"});if(!f||f.length<=0||!E)return null;const{button_background_color:P,button_text_color:b}=v,A=f.slice(0,2).map((e=>{var t;return null===(t=e["474x"]||e["236x"])||void 0===t?void 0:t.url}));return(0,m.jsx)(c.iP,{role:"link",href:null!==(d=null==g?void 0:g.url)&&void 0!==d?d:"",onTap:()=>{u({aux_data:{story_id:r,story_type:"user_style_story_v2"},component:200,event_type:102,view_parameter:s,view_type:l})},rounding:4,children:(0,m.jsxs)(c.xu,{alignItems:"center",display:"flex",height:_,justifyContent:"center",overflow:"hidden",position:"relative",ref:T,rounding:4,width:"100%",children:[(0,m.jsx)(c.kC,{width:"100%",children:A.map(((e,t)=>(0,m.jsx)(c.zd,{height:_,wash:!0,width:2===A.length?"50%":"100%",children:(0,m.jsx)(c.Ee,{alt:"",color:(null!=y?y:[])[t],fit:"cover",naturalHeight:1,naturalWidth:1,role:"presentation",src:null!=e?e:""})},t)))}),(0,m.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:P}},paddingX:4,paddingY:3,position:"absolute",rounding:"pill",children:(0,m.jsx)(c.xv,{align:"center",weight:"bold",children:(0,m.jsx)("p",{style:{color:b,margin:"0"},children:E.format})})})]})})}function b(e){const{action:t,bubbles:n,component:o,format:l,onTouch:d,pwtSurfaceContext:u,query:_,referringSource:p,storyId:h,storyType:g,viewParameter:v,viewType:f}=e,I=n.filter((e=>null!=e)),x=I.map((({type:e,id:t})=>`${null!=e?e:""}:${null!=t?t:""}`)).join("|"),b="slp_immersive_header"===g,A="user_style_story_v2"===g,w="shop_tab_upsell"===g,R="interest"===I[0].type,C=(0,i.useRef)(),O=(0,i.useRef)(),[N,D]=(0,i.useState)(0),{windowWidth:k}=(0,r.Z)(),L=b?k:k-32,j=I.length,U=w?"50%":"100%",[M,F]=(0,i.useState)(b||R),[B,G]=(0,i.useState)(!1),z=(0,s.Z)();return(0,i.useEffect)((()=>{const e=C.current,t=O.current;if(!e)return;const n=t=>{e.scrollTo({top:0,left:t,behavior:"smooth"})};let i;const a=()=>{clearTimeout(i),F(!1),G(!0),setTimeout((()=>{var e;let i=-(null!==(e=null==t?void 0:t.getBoundingClientRect().left)&&void 0!==e?e:0);i=b?i:i+16;const a=Math.floor((i+L/2)/L);n(a!==j-1||b?a*L:a*L-4),D(a)}),500)},r=()=>{const e=N===j-1?0:N+1;return n(e*L),D(e),i=setTimeout(r,4e3),()=>clearTimeout(i)};return M?(e.addEventListener("touchend",a),i=setTimeout(r,4e3)):B&&e.addEventListener("touchend",a),()=>{clearTimeout(i),M&&e.removeEventListener("touchend",a)}})),(0,m.jsxs)(i.Fragment,{children:[(0,m.jsx)(c.xu,{marginEnd:-4,marginStart:-4,overflow:"hidden",width:"100vw",children:(0,m.jsx)(c.xu,{display:"flex",marginBottom:-2,overflow:"scrollX",paddingX:b?void 0:R?3:4,paddingY:b?void 0:3,ref:C,children:I.map(((e,n)=>{var i;const{type:r,schema:s}=e;let w=null;switch(r||s){case"explorearticle":w=b?(0,m.jsx)(E,{auxData:{content_ids:x,story_type:g},bubble:e,onTouch:d,pwtSurfaceContext:u,referringSource:p,slotIndex:n,storyId:h,storyType:g,viewParameter:v,viewType:f}):A?(0,m.jsx)(P,{bubble:e,component:o,height:"75%",storyId:h,slotIndex:n,storyType:g,viewParameter:v,viewType:f}):(0,m.jsx)(a.Z,{auxData:{content_ids:x,story_type:g},bubble:e,format:l,height:"75%",onTouch:d,pwtSurfaceContext:u,referringSource:p,slotIndex:n,storyId:h,viewParameter:v,viewType:f});break;case"todayarticle":w=(0,m.jsx)(y,{auxData:{content_ids:x,story_type:g},bubble:e,immersiveHeader:b,onTouch:d,pwtSurfaceContext:u,referringSource:p,slotIndex:n,storyId:h,storyType:g,viewParameter:v,viewType:f});break;case"interest":w=(0,m.jsx)(S,{bubble:e,font:"md",height:"65%",onTouch:d});break;case"pin":w=n===I.length-1&&t?(0,m.jsx)(c.iP,{href:t.url,onTap:()=>{z({view_type:f,view_parameter:v,component:o,element:179,event_type:102,aux_data:{content_ids:x,entered_query:_,grid_index:n,story_type:g}})},role:"link",rounding:4,children:(0,m.jsxs)(c.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},position:"relative",children:[(0,m.jsx)(c.xu,{bottom:!0,left:!0,position:"absolute",right:!0,top:!0,children:(0,m.jsx)(T.default,{auxData:{content_ids:x,entered_query:_,grid_index:n,story_type:g},componentType:o||14026,imageOnlyOption:"image-only",duploIsSquarePin:!0,pinId:e.id,slotIndex:n,viewParameter:v,viewType:f})}),(0,m.jsx)(c.xu,{alignItems:"center",bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, 0.4)"}},display:"flex",justifyContent:"center",left:!0,position:"absolute",right:!0,rounding:4,top:!0,children:(0,m.jsx)(c.zx,{accessibilityLabel:t.text,size:"sm",text:t.text})})]})}):(0,m.jsx)(T.default,{auxData:{content_ids:x,entered_query:_,grid_index:n,story_type:g},componentType:o||14026,duploIsSquarePin:!0,pinId:e.id,slotIndex:n,trafficSource:"shop_feed",viewParameter:v,viewType:f})}return(0,m.jsx)(c.xu,{flex:"none",paddingX:b?void 0:1,ref:0===n?O:void 0,width:U,children:w},`bubble-${null!==(i=e.id)&&void 0!==i?i:""}`)}))})}),(b||R)&&(0,m.jsx)(c.xu,{marginBottom:b?5:-2,marginTop:b?-6:1,position:"relative",zIndex:new c.Ry(100),children:(0,m.jsx)(c.kC,{alignItems:"center",direction:"row",gap:{row:2,column:0},justifyContent:"center",children:[...Array(j).keys()].map((e=>{const t=N===e?"tertiary":"lightWash";return(0,m.jsx)(c.xu,{color:t,height:6,rounding:"circle",width:6},`indicator-dot-${e}`)}))})})]})}},131230:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(702664),a=n(17716),r=n(366428),o=n(883119),s=n(785893);function l({auxData:e,slotIndex:t,storyId:n,storyType:l,viewParameter:d,viewType:c}){var u;const _=(0,i.useSelector)((({stories:e})=>e[n])),{action:p,display_options:h,objects:m,title:g}=_,v=null==h||null===(u=h.content_display)||void 0===u?void 0:u.component_type,f=(null==e?void 0:e.entered_query)||"",y={entered_query:f,grid_index:t,story_id:n,story_type:l},E=(0,r.Z)({componentType:v,contextLogData:y,impressionType:"Story",loggingId:n,slotIndex:t,viewParameter:d,viewType:c}),S=(0,i.useSelector)((({articles:e})=>m.map((t=>{switch(t.schema){case"article":return e[t.id];case"pin":return t;default:return null}}))));return(0,s.jsxs)(o.xu,{ref:E,children:[g&&(0,s.jsx)(o.xu,{display:"flex",marginBottom:2,justifyContent:"center",alignItems:"center",children:(0,s.jsx)(o.xv,{weight:"bold",children:g.format})}),(0,s.jsx)(a.Z,{action:p,bubbles:S,component:v,query:f,storyId:n,storyType:l,viewParameter:d,viewType:c})]})}},936819:(e,t,n)=>{n.d(t,{Z:()=>u});var i=n(112690),a=n(19121),r=n(861411),o=n(826067),s=n(773285),l=n(687866),d=n(613316),c=n(785893);function u({auxData:e,bubble:t,font:n,format:u,height:_,onTouch:p,pwtSurfaceContext:h,referringSource:m,slotIndex:g,storyId:v,viewParameter:f,viewType:y,width:E="100%"}){var S;const{action:T,cover_images:I,curator:x,dominant_colors:P,id:b,identifier_icon_type:A,story_category:w,title:R}=t,C=(0,i.Z)(),O=(0,a.Z)(),{checkExperiment:N}=(0,s.F)();if(!I||!R)return null;const D=x&&x.full_name&&x.image_small_url?{full_name:x.full_name,image_small_url:x.image_small_url}:void 0;let k="",L="";if(O.isAuth&&5===y){k=N("blp_explore_bubble_image_size").group;const e=k.split("_");e.length>1&&(L=e[1])}const j=null===(S=I[0]&&(k.startsWith("enabled")&&L?I[0][L]:I[0]["474x"]||I[0]["236x"]))||void 0===S?void 0:S.url,U=R.format,M=(null==T?void 0:T.url)||(({storyCategory:e,query:t,referringSource:n,bubbleId:i,storyId:a,title:r})=>{const s=null!=e&&(0,d.y)(e),l=(0,o.XP)({q:t,rs:n||void 0,b_id:i,source_id:a}),c=s&&r?(0,d.x)({title:r,id:i,articleType:"discover"}):`/discover/article/${i}/`;return s?c:"/search/pins/"+(l?"?"+l:"")})({storyCategory:w,query:U,referringSource:m,bubbleId:b,storyId:v,title:U}),F=u===l.UG.article?13865:200,B=u===l.UG.article?102:6940,G=P&&P.length?P[0]:void 0;return(0,c.jsx)(r.fv,{auxData:{story_id:v,...e},impressionData:{storyCategory:w,storyIdStr:v},impressionType:"articleImpressions",loggingId:v,slotIndex:g,viewParameter:f,viewType:y,children:(0,c.jsx)(l.ZP,{backgroundColor:G,bubbleId:b,bubbleUrl:M,coverImageUrl:j,curator:D,font:n,format:u,height:_,identifierIconType:A,onTap:t=>{C({component:F,event_type:B,object_id_str:t,view_parameter:f,view_type:y,aux_data:{article_id:t,grid_index:g,...e}}),p&&p({query:U})},pwtSurfaceContext:h,referringSource:m,title:U,width:E})})}},248299:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(166300),a=n(898781),r=n(883119),o=n(785893);function s({isPinRep:e}){const t=(0,a.ZP)(),n=e?"default":"inverse",s=(0,o.jsx)(r.xu,{padding:e?1:0,"data-test-id":"unavailable-pin",children:(0,o.jsx)(r.xu,{color:e?"secondary":"dark",top:!0,height:e?314:"100vh",position:e?"static":"absolute",rounding:e?4:0,width:"100%",children:(0,o.jsxs)(r.kC,{height:"100%",direction:"column",justifyContent:"center",alignItems:"center",children:[(0,o.jsx)(r.xu,{paddingY:4,children:(0,o.jsx)(r.JO,{accessibilityLabel:t._('Pin not available', 'story-pin.Closeup.UnavailableStoryPin.icon.accessibilityLabel', 'Accessibility label on icon'),color:n,icon:"alert",size:20})}),(0,o.jsx)(r.xv,{align:"center",color:n,weight:"bold",children:t._('Unavailable', 'story-pin.Closeup.UnavailableStoryPin.Unavailable', 'Text on an unavailable idea Pin that has been deleted')}),(0,o.jsx)(r.xu,{paddingY:1,children:(0,o.jsx)(r.xv,{align:"center",color:n,children:t._('Removed by the creator', 'story-pin.Closeup.UnavailableStoryPin.Removed', 'Text on an unavailable idea Pin explaining it has been removed by its creator')})})]})})});return e?s:(0,o.jsx)(r.xu,{height:"100vh",children:(0,o.jsx)(i.Z,{children:s})})}},269695:(e,t,n)=>{n.d(t,{m:()=>o,z:()=>s});var i=n(667294),a=n(785893);const r=(0,i.createContext)();function o({children:e}){const[t,n]=(0,i.useState)(null),o=(0,i.useMemo)((()=>({streamLocationState:t,setStreamLocationState:n})),[t]);return(0,a.jsx)(r.Provider,{value:o,children:e})}function s(){const e=(0,i.useContext)(r);if(void 0===e)throw new Error("useStreamLocationContext must be used within a StreamLocationContextProvider");return e}},258430:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(883119),a=n(130460),r=n(785893);function o({boardId:e}){var t;const n=(0,a.gC)()(e),o=null!=n&&n.images&&n.images["170x"]?n.images["170x"][0]:void 0;return e&&o?(0,r.jsx)(i.Ee,{alt:"Pin image",color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(t=o.url)&&void 0!==t?t:""}):null}},759929:(e,t,n)=>{n.d(t,{k:()=>o,w:()=>r});var i=n(379764),a=n(883119);const r=2e3,o=new a.H3([i.Z])},909792:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(531029),a=n(198125),r=n(50286),o=n(883119),s=n(785893);const l=({imageUrls:e,subtitle:t,subtitleSize:n,subtitleWeight:l,title:d,titleSize:c})=>{var u;const _=(0,r.HG)(),{isHovering:p,handleMouseEnter:h,handleMouseLeave:m}=(0,a.Z)();return!e||e.length<=0?null:(0,s.jsxs)(o.xu,{borderStyle:"shadow",color:"default",overflow:"hidden",position:"relative",rounding:8,dangerouslySetInlineStyle:{__style:{paddingTop:"75%"}},onMouseEnter:_?h:void 0,onMouseLeave:_?m:void 0,children:[p&&(0,s.jsx)(i.Z,{}),(0,s.jsx)(o.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:(0,s.jsx)(o.Ee,{alt:d,color:"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(u=e[0])&&void 0!==u?u:"",children:(0,s.jsx)(o.xu,{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:(0,s.jsxs)(o.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",width:"100%",children:[t&&(0,s.jsx)(o.xu,{marginBottom:1,children:(0,s.jsx)(o.xv,{color:"light",size:n,align:"center",weight:l,children:t})}),(0,s.jsx)(o.X6,{color:"light",size:c,align:"center",children:d})]})})})})]})}},736609:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(830157),a=n(531029),r=n(326860),o=n(198125),s=n(861411),l=n(50286),d=n(276775),c=n(883119),u=n(785893);const _=function({articleId:e,creatorId:t,creatorFullName:n,creatorImgSrc:_,creatorIsVerified:p,gridIndex:h,imageHeight:m,imageWidth:g,imageUrl:v,pinId:f,showCreator:y,trackingParams:E,title:S,viewParameter:T,viewType:I}){const x=(0,d.useLocation)(),{isHovering:P,handleMouseEnter:b,handleMouseLeave:A}=(0,o.Z)(),w=(0,l.HG)();return(0,u.jsxs)(c.xu,{borderStyle:"shadow",position:"relative",color:"default",onMouseEnter:w?b:void 0,onMouseLeave:w?A:void 0,overflow:"hidden",rounding:8,children:[P&&(0,u.jsx)(a.Z,{}),(0,u.jsx)(s.dL,{auxData:{grid_index:h,today_article_id:e},loggingId:f,objectIdStr:f,slotIndex:h,impressionData:{imageURL:v},component:13525,trackingParams:(0,i.Z)((x.state||{}).trackingParams,E),viewParameter:T,viewType:I,children:({impressionTrackerRef:e})=>(0,u.jsx)(c.xu,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingTop:"number"==typeof m&&"number"==typeof g?m/g*100+"%":"100%"}},ref:e,children:(0,u.jsx)(c.xu,{position:"absolute",top:!0,left:!0,right:!0,bottom:!0,children:(0,u.jsx)(c.Ee,{alt:S,color:"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!=v?v:""})})})}),(0,u.jsxs)(c.xu,{paddingX:6,paddingY:4,display:"flex",justifyContent:"center",direction:"column",children:[(0,u.jsx)(c.X6,{align:"center",size:"400",children:S}),y&&(t||n)&&(0,u.jsx)(c.xu,{display:"flex",marginTop:3,justifyContent:"center",children:(0,u.jsx)(r.Z,{userId:t,creatorFullName:n,creatorImgSrc:_,creatorIsVerified:p})})]})]})}},91937:(e,t,n)=>{n.d(t,{Z:()=>c});var i=n(116303),a=n(830157),r=n(167525),o=n(861411),s=n(276775),l=n(883119),d=n(785893);const c=({articleId:e,gridIndex:t,hasPinnerAttribution:n,imageHeight:c,imageWidth:u,imageUrl:_,pageCount:p,pinId:h,pinnerImageSrc:m,pinnerName:g,pinTrackingParams:v,title:f,viewParameter:y,viewType:E})=>{const S=(0,s.useLocation)();return(0,d.jsxs)(l.xu,{borderStyle:"shadow",color:"default",overflow:"hidden",paddingY:6,rounding:8,children:[(0,d.jsx)(l.xu,{paddingX:6,display:"flex",justifyContent:"center",children:(0,d.jsx)(l.X6,{align:"center",size:"400",children:f})}),(0,d.jsx)(o.dL,{auxData:{grid_index:t,today_article_id:e},loggingId:h,objectIdStr:h,slotIndex:t,impressionData:{imageURL:_},component:13525,trackingParams:(0,a.Z)((S.state||{}).trackingParams,v),viewParameter:y,viewType:E,children:({impressionTrackerRef:e})=>(0,d.jsxs)(l.xu,{marginTop:4,paddingX:12,ref:e,children:[(0,d.jsx)(l.zd,{rounding:8,children:(0,d.jsx)(l.xu,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingTop:"number"==typeof c&&"number"==typeof u?c/u*100+"%":"100%"}},children:(0,d.jsx)(l.xu,{position:"absolute",top:!0,left:!0,right:!0,bottom:!0,children:(0,d.jsx)(l.Ee,{alt:"",color:"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!=_?_:"",children:(0,d.jsx)(l.xu,{position:"relative",marginStart:1,marginTop:1,children:(0,d.jsx)(r.Z,{icon:"idea-pin",text:p.toString()})})})})})}),n&&(0,d.jsxs)(l.xu,{alignItems:"center",display:"flex",marginTop:2,maxWidth:"100%",children:[(0,d.jsx)(l.xu,{flex:"none",height:44,width:44,marginEnd:2,children:(0,d.jsx)(i.Z,{name:"",outline:!0,size:"fit",src:m})}),(0,d.jsx)(l.xv,{lineClamp:1,children:g})]})]})})]})}},371172:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(830157),a=n(531029),r=n(326860),o=n(198125),s=n(619519),l=n(861411),d=n(50286),c=n(276775),u=n(883119),_=n(785893);const p=function({articleId:e,creatorId:t,creatorFullName:n,creatorImgSrc:p,creatorIsVerified:h,gridIndex:m,height:g,pinDescription:v,pinImageHeight:f,pinImageUrl:y,pinImageWidth:E,showCreator:S,thumbnail:T,title:I,trackingParams:x,url:P,videoPinId:b,viewParameter:A,viewType:w,width:R}){const C=(0,c.useLocation)(),O=(0,d.HG)(),{isHovering:N,handleMouseEnter:D,handleMouseLeave:k}=(0,o.Z)();return(0,_.jsxs)(u.xu,{borderStyle:"shadow",color:"default",direction:"column",display:"flex",flex:"none",overflow:"hidden",rounding:8,dangerouslySetInlineStyle:{__style:{transform:"translate3d(0, 0, 0)"}},onMouseEnter:O?D:void 0,onMouseLeave:O?k:void 0,children:[N&&(0,_.jsx)(a.Z,{}),(0,_.jsx)(l.dL,{auxData:{grid_index:m,today_article_id:e},loggingId:b,objectIdStr:b,slotIndex:m,impressionData:{imageURL:y},component:13525,trackingParams:(0,i.Z)((C.state||{}).trackingParams,x),viewParameter:A,viewType:w,children:({impressionTrackerRef:e})=>(0,_.jsx)(u.xu,{ref:e,children:(0,_.jsx)(s.Z,{height:g,thumbnail:T,url:P,width:R,pinDescription:v,pinImageUrl:y,pinImageHeight:f,pinImageWidth:E})})}),(0,_.jsxs)(u.xu,{paddingX:6,paddingY:4,display:"flex",justifyContent:"center",direction:"column",children:[(0,_.jsx)(u.X6,{align:"center",size:"400",children:I}),S&&(t||n)&&(0,_.jsx)(u.xu,{display:"flex",marginTop:3,justifyContent:"center",children:(0,_.jsx)(r.Z,{userId:t,creatorFullName:n,creatorImgSrc:p,creatorIsVerified:h})})]})]})}},591289:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(531029),a=n(198125),r=n(50286),o=n(276602),s=n(883119),l=n(785893);function d({imageUrls:e,rounding:t,subtitle:n,subtitleSize:d,title:c,titleSize:u}){const _=(0,r.HG)(),p=(0,o.EV)();let h=0;const m=()=>{h-=1,0===h&&(null==p||p.markConstraintComplete("idea_module_loaded"))},{isHovering:g,handleMouseEnter:v,handleMouseLeave:f}=(0,a.Z)();if(!e||e.length<=0)return null;const y=e.slice(0,3);return p&&(h=y.length),(0,l.jsxs)(s.xu,{borderStyle:"shadow",color:"default",overflow:"hidden",position:"relative",rounding:null!=t?t:8,dangerouslySetInlineStyle:{__style:{paddingTop:"75%"}},onMouseEnter:_?v:void 0,onMouseLeave:_?f:void 0,children:[g&&(0,l.jsx)(i.Z,{}),(0,l.jsxs)(s.xu,{display:"flex",direction:"column",position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:[(0,l.jsx)(s.kC,{alignItems:"stretch",justifyContent:"start",height:"100%",width:"100%",children:y.map(((e,t)=>(0,l.jsx)(s.xu,{width:100/y.length+"%",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:(0,l.jsx)(s.Ee,{alt:"",color:"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,role:"presentation",src:null!=e?e:"",onLoad:m})},t)))}),(0,l.jsxs)(s.xu,{flex:"none",paddingX:5,paddingY:6,width:"100%",children:[n&&(0,l.jsx)(s.xu,{marginBottom:1,children:(0,l.jsx)(s.xv,{size:d,align:"center",weight:_?"bold":"normal",children:n})}),(0,l.jsx)(s.X6,{size:u,align:"center",children:c})]})]})]})}},228153:(e,t,n)=>{n.d(t,{i:()=>x,y:()=>S});var i,a=n(725214),r=n(909792),o=n(736609),s=n(91937),l=n(371172),d=n(591289),c=n(112690),u=n(52022),_=n(861411),p=n(276775),h=n(50286),m=n(780280),g=n(784641),v=n(883119),f=n(167912),y=n(785893);const E=new Set([3,2,6]),S=({ArticleModule:e,clientTrackingParams:t,id:n,displayType:i,gridIndex:r,isTodayArticlePage:o=!1,onArticleTapUrl:s,pinId:l,viewParameter:d,viewType:m})=>{const g=(0,p.useHistory)(),f=(0,c.Z)(),S=(0,u.Z)(),I=(0,h.HG)();return(0,y.jsx)(_.Y4,{auxData:{grid_index:r.toString(),today_article_id:n},loggingId:n,objectIdStr:n,slotIndex:r,viewParameter:d||3372,viewType:m||1,children:({impressionTrackerRef:c})=>(0,y.jsx)(v.xu,{ref:c,"data-test-id":"suggested-articles-link",children:(0,y.jsx)(T,{href:s,isTodayArticlePage:o,onTap:()=>{f({event_type:I?101:102,view_type:m||1,view_parameter:d||3372,component:13525,aux_data:{today_article_id:n,grid_index:r.toString()}}),S({action:"click",item:"suggested-articles-link"}),"number"==typeof i&&E.has(i)&&t&&l&&f({event_type:I?101:102,view_type:m||1,view_parameter:d||3372,object_id_str:l,clientTrackingParams:t,aux_data:{today_article_id:l,grid_index:r.toString(),cosmic_ray_count:"4",closeup_navigation_type:(0,a.Z)(g)}}),g.push(s)},children:e})})})},T=({children:e,href:t,isTodayArticlePage:n,onTap:i})=>{const{isAuthenticated:a}=(0,m.B)(),r=(0,h.HG)();return a?(0,y.jsx)(v.iP,{onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),i({event:e})},tapStyle:"compress",children:r?(0,y.jsx)(v.xu,{width:n?void 0:408,minHeight:n?void 0:306,children:e}):e}):(0,y.jsx)(v.iP,{href:t,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),i({event:e})},role:"link",children:r?(0,y.jsx)(v.xu,{width:n?void 0:408,minHeight:n?void 0:306,children:e}):e})},I=void 0!==i?i:i=n(584818),x=({containerKey:e,gridIndex:t,subtitleSize:n,titleSize:i,viewParameter:a,viewType:c})=>{var u,_,p,h,m,v,E,T,x,P,b,A,w,R,C,O;const{contentPinOfficialUser:N,contentPin:D,displayType:k,feedSource:L,headerPinId:j,entityId:U,imageUrls:M,isProductPinFeed:F,showCreator:B,subtitle:G,title:z,videoPin:H}=(0,f.useFragment)(I,e);let Z=null,V=(0,g.T7)(null!=L?L:0,null!=F&&F,null!=z?z:"",null!=U?U:"");const{description:W,images170x:K,images236x:Y,images736x:q,pinner:$,storyPinData:X,trackingParams:J}=null!=D?D:{},Q=null!==(u=null!==(_=null!==(p=null==q?void 0:q.url)&&void 0!==p?p:null==Y?void 0:Y.url)&&void 0!==_?_:null==K?void 0:K.url)&&void 0!==u?u:"",ee=null!==(h=null!==(m=null==q?void 0:q.width)&&void 0!==m?m:null==Y?void 0:Y.width)&&void 0!==h?h:null==K?void 0:K.width,te=null!==(v=null!==(E=null==q?void 0:q.height)&&void 0!==E?E:null==Y?void 0:Y.height)&&void 0!==v?v:null==K?void 0:K.height,{originPinner:ne}=null!=D?D:{},ie=N||ne||$;switch(k){case 0:Z=(0,y.jsx)(r.Z,{imageUrls:M,subtitle:null!=G?G:"",subtitleSize:n||"300",title:null!=z?z:"",titleSize:i||"500"});break;case 1:Z=(0,y.jsx)(d.Z,{imageUrls:M,subtitle:null!=G?G:"",subtitleSize:n||"300",title:null!=z?z:"",titleSize:i||"500"});break;case 2:const{entityId:e,videos:u}=null!=H?H:{},_=null!==(T=null==u||null===(x=u.videoList)||void 0===x?void 0:x.v720P)&&void 0!==T?T:{};var ae;if(e)Z=(0,y.jsx)(l.Z,{articleId:null!=U?U:"",creatorFullName:null==ie?void 0:ie.fullName,creatorImgSrc:(null==ie?void 0:ie.imageMediumUrl)||(null==ie?void 0:ie.imageSmallUrl),creatorIsVerified:Boolean(null==ie||null===(ae=ie.verifiedIdentity)||void 0===ae?void 0:ae.verified),gridIndex:t,height:_.height,pinDescription:W,pinImageUrl:Q,pinImageHeight:te,pinImageWidth:ee,showCreator:Boolean(B),thumbnail:_.thumbnail,title:null!=z?z:"",trackingParams:J,url:_.url,videoPinId:e,viewParameter:a,viewType:c,width:_.width}),V=`/pin/${e}`;break;case 3:if(!Q)return null;Z=(0,y.jsx)(o.Z,{articleId:null!=U?U:"",creatorFullName:null==ie?void 0:ie.fullName,creatorImgSrc:(null==ie?void 0:ie.imageMediumUrl)||(null==ie?void 0:ie.imageSmallUrl),creatorIsVerified:Boolean(null==ie||null===(P=ie.verifiedIdentity)||void 0===P?void 0:P.verified),imageUrl:Q,imageHeight:null!=te?te:0,imageWidth:null!=ee?ee:0,gridIndex:t,pinId:null!==(b=null==D?void 0:D.entityId)&&void 0!==b?b:"",showCreator:Boolean(B),title:null!=z?z:"",trackingParams:J,viewParameter:a,viewType:c}),V=j?`/pin/${j}`:V;break;case 6:if(!Q)return null;const p=null!==(A=null!==(w=null==$?void 0:$.imageMediumUrl)&&void 0!==w?w:null==$?void 0:$.imageSmallUrl)&&void 0!==A?A:"",h=null!==(R=null==$?void 0:$.fullName)&&void 0!==R?R:"",m=Boolean(p||h);return(0,y.jsx)(s.Z,{articleId:null!=U?U:"",gridIndex:t,hasPinnerAttribution:m,imageUrl:Q,imageHeight:null!=te?te:0,imageWidth:null!=ee?ee:0,pageCount:null!==(C=null==X?void 0:X.pageCount)&&void 0!==C?C:"",pinId:null!==(O=null==D?void 0:D.entityId)&&void 0!==O?O:"",pinnerImageSrc:p,pinnerName:h,pinTrackingParams:J,title:null!=z?z:"",viewParameter:a,viewType:c});default:Z=null}return Z?(0,y.jsx)(S,{ArticleModule:Z,displayType:k,gridIndex:t,id:null!=U?U:"",onArticleTapUrl:V,viewParameter:a,viewType:c}):null}},531029:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(883119),a=n(785893);const r=new i.Ry(1);function o(){return(0,a.jsx)(i.xu,{opacity:.1,color:"transparentDarkGray",position:"absolute",top:!0,left:!0,bottom:!0,right:!0,zIndex:r})}},326860:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(667294),a=n(116303),r=n(865607),o=n(698330),s=n(883119),l=n(785893);const d=function({userId:e,creatorFullName:t,creatorImgSrc:n,creatorIsVerified:d}){var c;const u=null!==(c=(0,o.mN)()(null!=e?e:""))&&void 0!==c?c:{},{fullNameFromStore:_,imgSrcFromStore:p,isVerifiedFromStore:h}=function(e){const{full_name:t,image_medium_url:n,image_small_url:i,verified_identity:a}=e;return{fullNameFromStore:t,imgSrcFromStore:n||i,isVerifiedFromStore:Boolean(null==a?void 0:a.verified)}}(u),m=e?_:t,g=e?p:n,v=e?h:d;return(0,l.jsx)(s.kC,{alignContent:"center",alignItems:"center",flex:"none",justifyContent:"center",width:"100%",children:m&&(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(s.xu,{paddingX:1,children:(0,l.jsx)(a.Z,{name:m,size:"sm",src:null!=g?g:""})}),(0,l.jsx)(s.xu,{minWidth:0,paddingX:1,children:(0,l.jsx)(s.xv,{lineClamp:1,size:"300",weight:"bold",children:m})}),v&&(0,l.jsx)(s.xu,{paddingX:1,children:(0,l.jsx)(r.Z,{hasVerifiedIdentity:v,iconOnly:!0,size:"xs"})})]})})}},502962:(e,t,n)=>{n.d(t,{Z:()=>A});var i=n(702664),a=n(909792),r=n(116303),o=n(635974),s=n(531029),l=n(198125),d=n(112690),c=n(50286),u=n(780280),_=n(883119),p=n(785893);const h=Math.floor(24),m=({articleId:e,imageUrls:t,subtitle:n,title:i,viewParameter:a,viewType:m,user:g})=>{const{isAuthenticated:v}=(0,u.B)(),f=(0,c.HG)(),{isHovering:y,handleMouseEnter:E,handleMouseLeave:S}=(0,l.Z)(),T=(0,d.Z)();if(!g||!t||t.length<=0)return null;const{full_name:I,image_medium_url:x,image_small_url:P}=g,b=x||P||"",A=Math.min(t.length,3),w={aux_data:{today_article_id:e},component:13525,object_id_str:e,view_parameter:a,view_type:m};return(0,p.jsxs)(_.xu,{borderStyle:"shadow",color:"default",onMouseEnter:f?E:void 0,onMouseLeave:f?S:void 0,overflow:"hidden",rounding:8,children:[y&&(0,p.jsx)(s.Z,{}),(0,p.jsx)(_.xu,{display:"flex",position:"relative",width:"100%",dangerouslySetInlineStyle:{__style:{paddingTop:"45%"}},children:(0,p.jsx)(_.xu,{display:"flex",height:"100%",direction:"row",left:!0,position:"absolute",top:!0,width:"100%",children:t.slice(0,A).map(((e,t)=>(0,p.jsx)(_.xu,{width:100/A+"%",children:(0,p.jsx)(_.Ee,{alt:"",color:"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:e},t)})))})}),(0,p.jsxs)(_.xu,{flex:"none",paddingX:5,paddingY:6,position:"relative",width:"100%",children:[(0,p.jsx)(_.xu,{height:48,position:"absolute",width:48,dangerouslySetInlineStyle:{__style:{left:`calc(50% - ${h}px)`,top:`-${h}px`}},children:(0,p.jsx)(r.Z,{name:null!=I?I:"",outline:!0,size:"fit",src:b})}),i&&(0,p.jsx)(_.xu,{marginTop:2,children:(0,p.jsx)(_.X6,{size:"400",align:"center",children:i})}),n&&(0,p.jsx)(_.xu,{marginTop:2,children:(0,p.jsx)(_.xv,{align:"center",size:"100",children:n})}),v&&(0,p.jsx)(_.xu,{display:"flex",justifyContent:"center",marginTop:3,children:(0,p.jsx)(o.Z,{isSecondaryButton:!0,onTap:()=>{T({...w,element:62,event_type:f?101:102})},size:"lg",user:g,viewParameter:a,viewType:m})})]})]})};var g=n(736609),v=n(784641),f=n(350118);function y({articleId:e,gridIndex:t,pinId:n,pinOfficialUserId:i,showCreator:a,title:r,viewParameter:o,viewType:s}){const l=(0,f.S6)()(n||"");if(!l)return null;const{id:d,images:c,origin_pinner:u,pinner:_,tracking_params:h}=l,m=(null==c?void 0:c["736x"])||(null==c?void 0:c["236x"])||(null==c?void 0:c["170x"]);if(!m)return null;const y=(0,v.xt)(i,null==u?void 0:u.id,null==_?void 0:_.id);return(0,p.jsx)(g.Z,{articleId:e,creatorId:y,gridIndex:t,pinId:d,imageHeight:m.height,imageUrl:m.url,imageWidth:m.width,showCreator:a,title:r,trackingParams:h,viewParameter:o,viewType:s})}var E=n(91937);const S=({articleId:e,gridIndex:t,pinId:n,title:i,viewParameter:a,viewType:r})=>{const o=(0,f.S6)()(n||""),s=null==o?void 0:o.pinner,l=null==o?void 0:o.story_pin_data;if(!o)return null;const d=(null==l?void 0:l.page_count)||"",{images:c}=o,u=(null==c?void 0:c["736x"])||(null==c?void 0:c["236x"])||(null==c?void 0:c["170x"]);if(!u)return null;const _=(null==s?void 0:s.image_medium_url)||(null==s?void 0:s.image_small_url)||"",h=(null==s?void 0:s.full_name)||"",m=Boolean(_||h);return(0,p.jsx)(E.Z,{articleId:e,imageHeight:u.height,imageWidth:u.width,imageUrl:u.url,gridIndex:t,hasPinnerAttribution:m,pageCount:d,pinId:o.id,pinnerImageSrc:_,pinnerName:h,pinTrackingParams:o.tracking_params,title:i,viewParameter:a,viewType:r})};var T=n(371172);function I({articleId:e,gridIndex:t,pinOfficialUserId:n,showCreator:i,title:a,videoPinId:r,viewParameter:o,viewType:s}){var l,d;const c=(0,f.S6)()(r);if(!c)return null;const{description:u,images:_,origin_pinner:h,pinner:m,tracking_params:g}=c,y=(0,v.xt)(n,null==h?void 0:h.id,null==m?void 0:m.id),E=(null==_?void 0:_["736x"])||(null==_?void 0:_["236x"])||(null==_?void 0:_["170x"])||{},{url:S,height:I,width:x}=null!=E?E:{},P=null===(l=c.videos)||void 0===l||null===(d=l.video_list)||void 0===d?void 0:d.V_720P,{height:b,thumbnail:A,url:w,width:R}=null!=P?P:{};return(0,p.jsx)(T.Z,{articleId:e,creatorId:y,gridIndex:t,height:b,pinDescription:u,pinImageHeight:I,pinImageUrl:S,pinImageWidth:x,showCreator:i,title:a,trackingParams:g,thumbnail:A,url:w,videoPinId:r,viewParameter:o,viewType:s,width:R})}var x=n(591289),P=n(228153),b=n(698330);const A=({gridIndex:e,id:t,isTodayArticlePage:n,article:r,subtitleSize:o,subtitleWeight:s,titleSize:l,viewParameter:d,viewType:c})=>{const u=(0,b.kW)(),_=(0,i.useSelector)((({todayArticles:e})=>r||e[t])),h=_.content_pin||_.video_pin,g=(0,f.S6)()(h||"");if(!_)return null;const{article_creator_user:E,content_pin:T,content_pin_official_user:A,display_type:w,feed_source:R,header_pin_id:C,image_urls:O,is_product_pin_feed:N,show_creator:D,subtitle:k,title:L,video_pin:j}=_,U=u[E||""],M=h?null==g?void 0:g.tracking_params:void 0;let F=null,B=(0,v.T7)(R,null!=N&&N,L,t);switch(w){case 0:F=(0,p.jsx)(a.Z,{imageUrls:O,subtitle:k,subtitleSize:o||"300",subtitleWeight:s,title:L,titleSize:l||"500"});break;case 1:F=(0,p.jsx)(x.Z,{imageUrls:O,subtitle:k,subtitleSize:o||"300",title:L,titleSize:l||"500"});break;case 2:j&&(F=(0,p.jsx)(I,{articleId:t,gridIndex:e,pinOfficialUserId:A,showCreator:D,title:L,videoPinId:j,viewParameter:d,viewType:c}),B=`/pin/${j}`);break;case 3:F=(0,p.jsx)(y,{articleId:t,gridIndex:e,pinId:T,pinOfficialUserId:A,showCreator:D,title:L,viewParameter:d,viewType:c}),B=`/pin/${C}`;break;case 6:F=(0,p.jsx)(S,{articleId:t,gridIndex:e,pinId:T,title:L,viewParameter:d,viewType:c}),B=`/pin/${C}`;break;case 8:U?(F=(0,p.jsx)(m,{articleId:t,imageUrls:O,subtitle:k,title:L,user:U,viewParameter:d,viewType:c}),B=`/${encodeURIComponent(U.username)}/`):F=null;break;default:F=null}return F?(0,p.jsx)(P.y,{ArticleModule:F,clientTrackingParams:M,displayType:w,gridIndex:e,id:t,isTodayArticlePage:n,onArticleTapUrl:B,pinId:h,viewParameter:d,viewType:c}):null}},182476:(e,t,n)=>{n.d(t,{Z:()=>I});var i,a=n(702664),r=n(815613),o=n(780280),s=n(633083),l=n(898781),d=n(892819),c=n(883119),u=n(167912),_=n(785893);const p=({backgroundColor:e,decreaseNamePadding:t,isHomefeedTuner:n,isLego:i,isSelected:a,locale:r,nameTextSize:o,renderAsPill:u,showFollowerCount:p,topicName:h,followerCount:m,image:g})=>{var v;const f=(0,l.ZP)(),y=(0,d.Z)(),E=(0,_.jsx)(c.JO,{accessibilityLabel:f._('Selected', ' - ', ' -- '),color:"inverse",icon:i?"check":"check-circle",size:i?12:24});return u?(0,_.jsx)(s.Z,{color:e||"#767676",image:g,isSelected:null!=a&&a,title:h}):(0,_.jsxs)(c.xu,{position:"relative","aria-selected":a,children:[(0,_.jsx)(c.zd,{rounding:i||n?4:2,children:(0,_.jsxs)(c.xu,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}},children:[(0,_.jsx)(c.xu,{bottom:!0,left:!0,padding:i&&a?1:0,position:"absolute",right:!0,rounding:i&&a?4:0,top:!0,children:(0,_.jsx)(c.Ee,{alt:h,color:e||"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(v=g.url)&&void 0!==v?v:""})}),(0,_.jsx)(c.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:a?"rgba(0,0,0,0.6)":"rgba(0,0,0,0.3)",border:i&&a?"4px solid #767676":"none"}},rounding:i?4:void 0,position:"absolute",left:!0,right:!0,top:!0}),i&&a&&(0,_.jsx)(c.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{border:"2px solid #111"}},left:!0,position:"absolute",right:!0,rounding:4,top:!0})]})}),n?(0,_.jsx)(c.xu,{top:!0,bottom:!0,left:!0,right:!0,padding:2,position:"absolute",display:"flex",alignContent:"center",justifyContent:"center",alignItems:"center",children:(0,_.jsx)(c.xv,{align:"center",color:"light",size:o,weight:"bold",children:h})}):(0,_.jsxs)(c.xu,{bottom:!0,left:!0,padding:t?1:2,position:"absolute",right:!0,children:[(0,_.jsx)(c.xv,{color:"inverse",size:o,weight:"bold",children:h}),p&&m>=0&&(0,_.jsx)(c.xu,{paddingY:1,children:(0,_.jsxs)(c.xv,{color:"inverse",size:"100",children:[(0,_.jsx)(c.xv,{color:"inverse",inline:!0,size:"100",weight:"bold",children:y(r,m,{shortform:!0,shortform_maximum_fraction_digits:1})}),f._('followers', ' - ', ' -- ')]})})]}),a&&(0,_.jsx)(c.xu,{margin:2,position:"absolute",right:!0,top:!0,children:i?(0,_.jsx)(c.xu,{alignItems:"center",color:"selected",display:"flex",height:24,justifyContent:"center",rounding:2,width:24,children:E}):E})]})},h=void 0!==i?i:i=n(133132),m=({topicRef:e,...t})=>{var n,i,a,r,o,s;const l=(0,u.useFragment)(h,e),d=l.images?{url:null!==(n=l.images.url)&&void 0!==n?n:"",width:null!==(i=l.images.width)&&void 0!==i?i:0,height:null!==(a=l.images.height)&&void 0!==a?a:0,dominant_color:"",type:""}:{dominant_color:"",height:0,type:"",url:"",width:0};return(0,_.jsx)(p,{backgroundColor:null!==(r=l.background_color)&&void 0!==r?r:"",topicName:null!==(o=l.name)&&void 0!==o?o:"",followerCount:null!==(s=l.follower_count)&&void 0!==s?s:0,image:d,...t})},g=({topic:e,topicBlob:t,topicInfoForContextualExp:n,...i})=>{const a=n||e||t||{},r=a.images["236x"]||a.images["400x"]||a.images["474x"]||a.images.orig||{height:1,url:"",width:1},o=a.follower_count||-1;return(0,_.jsx)(p,{backgroundColor:a.background_color,topicName:a.name,followerCount:o,image:r,...i})};var v,f=n(70090);const y=({decreaseNamePadding:e=!1,isHomefeedTuner:t,isLego:n,isSelected:i=!1,nameTextSize:s="lg",onTouch:l,padding:d=2,renderAsPill:u,showFollowButton:p=!1,showFollowerCount:h=!1,shouldClickthrough:v=!1,topic:y,viewParameter:E,viewType:S,enabledHomeFeedTunerDesignChanges:T})=>{const I=(0,a.useDispatch)(),{locale:x}=(0,o.B)(),P=(0,_.jsxs)(c.xu,{"data-test-id":"nux-picker-topic",children:["graphql"!==y.type?(0,_.jsx)(g,{decreaseNamePadding:e,isHomefeedTuner:t,isLego:n,isSelected:i,locale:x,nameTextSize:s,renderAsPill:u,showFollowerCount:h,topic:y.topic,topicBlob:y.topicBlob,topicInfoForContextualExp:y.topicInfoForContextualExp}):(0,_.jsx)(m,{decreaseNamePadding:e,isHomefeedTuner:t,isLego:n,isSelected:i,locale:x,nameTextSize:s,renderAsPill:u,showFollowerCount:h,topicRef:y.topicRef}),!!y&&p&&(0,_.jsx)(c.xu,{paddingY:2,children:(0,_.jsx)(r.Z,{textType:t?"AddRemove":"FollowFollowing",followEventType:601,id:y.id,invertColors:t,inline:t&&T,isFollowed:y.is_followed,onFollow:e=>I((0,f.ZN)(e)),onUnfollow:e=>I((0,f.fv)(e)),size:"md",unfollowEventType:602,viewParameter:E||void 0,viewType:S||void 0})})]});let b="/";return y&&(b=`/topics/${y.id}`),v&&y.slug?(0,_.jsx)(c.iP,{role:"link",onTap:({event:e})=>{null==l||l(e)},tapStyle:"compress",rounding:2,href:b,children:(0,_.jsx)(c.xu,{padding:d,children:P})}):P},E=void 0!==v?v:v=n(964820),S=({topicRef:e,decreaseNamePadding:t=!1,isHomefeedTuner:n,isLego:i,isSelected:a=!1,nameTextSize:r="lg",onTouch:o,padding:s=2,renderAsPill:l,showFollowButton:d=!1,showFollowerCount:c=!1,shouldClickthrough:p=!1,viewParameter:h,viewType:m,enabledHomeFeedTunerDesignChanges:g})=>{var v,f;const S=(0,u.useFragment)(E,e);return(0,_.jsx)(y,{decreaseNamePadding:t,isHomefeedTuner:n,isLego:i,isSelected:a,nameTextSize:r,onTouch:o,padding:s,renderAsPill:l,showFollowButton:d,showFollowerCount:c,shouldClickthrough:p,viewParameter:h,viewType:m,enabledHomeFeedTunerDesignChanges:g,topic:{id:null!==(v=S.entityId)&&void 0!==v?v:"",type:"graphql",is_followed:null!==(f=S.is_followed)&&void 0!==f&&f,topicRef:S}})},T=({id:e,topic:t,topicBlob:n,topicInfoForContextualExp:i,decreaseNamePadding:r=!1,isHomefeedTuner:o,isLego:s,isSelected:l=!1,nameTextSize:d="lg",onTouch:c,padding:u=2,renderAsPill:p,showFollowButton:h=!1,showFollowerCount:m=!1,shouldClickthrough:g=!1,viewParameter:v,viewType:f,enabledHomeFeedTunerDesignChanges:E})=>{const S=(0,a.useSelector)((({topics:t})=>t[e])),T=null!=t?t:S;return(0,_.jsx)(y,{decreaseNamePadding:r,isHomefeedTuner:o,isLego:s,isSelected:l,nameTextSize:d,onTouch:c,padding:u,renderAsPill:p,showFollowButton:h,showFollowerCount:m,shouldClickthrough:g,viewParameter:v,viewType:f,enabledHomeFeedTunerDesignChanges:E,topic:{id:e,is_followed:!(null==T||!T.is_followed),topic:T,topicBlob:n,topicInfoForContextualExp:i,type:"resource"}})},I=({decreaseNamePadding:e=!1,isHomefeedTuner:t,isLego:n,isSelected:i=!1,nameTextSize:a="lg",onTouch:r,padding:o=2,renderAsPill:s,showFollowButton:l=!1,showFollowerCount:d=!1,shouldClickthrough:c=!1,viewParameter:u,viewType:p,enabledHomeFeedTunerDesignChanges:h,...m})=>m.topicRef?(0,_.jsx)(S,{decreaseNamePadding:e,isHomefeedTuner:t,isLego:n,isSelected:i,nameTextSize:a,onTouch:r,padding:o,renderAsPill:s,showFollowButton:l,showFollowerCount:d,shouldClickthrough:c,viewParameter:u,viewType:p,topicRef:m.topicRef,enabledHomeFeedTunerDesignChanges:h}):(0,_.jsx)(T,{id:m.id,decreaseNamePadding:e,isHomefeedTuner:t,isLego:n,isSelected:i,nameTextSize:a,onTouch:r,padding:o,renderAsPill:s,showFollowButton:l,showFollowerCount:d,shouldClickthrough:c,topic:m.topic,topicBlob:m.topicBlob,topicInfoForContextualExp:m.topicInfoForContextualExp,viewParameter:u,viewType:p,enabledHomeFeedTunerDesignChanges:h})},430235:(e,t,n)=>{n.d(t,{Z:()=>x});var i,a=n(667294),r=n(248975),o=n(862628),s=n(898781),l=n(759177),d=n(667679),c=n(62409),u=n(349700),_=n(867820),p=n(350118),h=n(276775),m=n(780679),g=n(883119),v=n(167912),f=n(785893);const y=({children:e,onTap:t})=>{const[n,i]=(0,a.useState)(!1);return(0,f.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:n?"rgba(0, 0, 0, 0.06)":void 0}},rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,f.jsx)(g.iP,{onTap:t,onBlur:()=>i(!1),onFocus:()=>i(!0),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:e})})},E=void 0!==i?i:i=n(12617);function S({desktopContextMenuState:e,isMainPinImage:t,source:n,images:i,embedSrc:l,embedType:c,sourceUserUsername:p,sourceUserFullname:v,pinJoinVisualAnnotation:E,pinJoinSeoBreadcrumbName:S,pinJoinSeoBreadcrumbUrl:T,pinId:I,pinLink:x}){var P;const b=(0,s.ZP)(),A=(0,h.useHistory)(),w=(0,r.Z)({images:i,embedSrc:l,embedType:c}),R=S,C=T,O=null!==(P=null==E?void 0:E[0])&&void 0!==P?P:void 0,N=(0,o.Z)(O),D=`/search/pins/?q=${encodeURIComponent(N)}&rs=image_only_attribution`,k=(0,d.Z)(),L="dweb.plp.ellipsis.button"===n,j=(0,m.g)();return w?(0,f.jsxs)(g.xu,{"data-test-id":"desktop-context-menu",position:"fixed",dangerouslySetInlineStyle:{__style:{top:`${e.yPosition}px`,left:`${e.xPosition}px`}},zIndex:new g.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:250,children:[(0,f.jsx)(g.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",children:(0,f.jsx)(g.JO,{icon:"pinterest",accessibilityLabel:b._('Pinterest logo', 'dweb.unauth.context_menu.pinterest_logo', 'Pinterest logo in the context menu'),color:"brandPrimary"})}),(0,f.jsx)(y,{onTap:()=>{(0,_.My)("dweb.unauth.context_menu.save_image"),k({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_download_image",desktopOptions:{modalType:"signup",modalOptions:{source:"saveButtonExp",container:"save",savePinId:I}}}),j&&j.setUpsellReason("click_context_menu_action_bar_ellipsis_save_button")},children:(0,f.jsx)(g.xv,{size:"200",weight:"bold",children:b._('Save image', 'dweb.unauth.context_menu.link.save_image', 'Link to save the image')})}),!(t||L&&!x)&&(0,f.jsx)(y,{onTap:()=>{(0,_.My)(L?"dweb.unauth.context_menu.open_plp_new_tab.from.ellipsis.button":"dweb.unauth.context_menu.open_plp_new_tab"),window.open(L?x:`/pin/${I}/`),L||k({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_open_plp_new_tab",desktopOptions:{modalType:"login"}})},children:(0,f.jsx)(g.xv,{size:"200",weight:"bold",children:b._('Open link in new tab', 'dweb.unauth.context_menu.link.plp_new_tab', 'Link to open the pin in a new tab')})}),(O||!(!R||!C))&&(0,f.jsx)(y,{onTap:()=>{(0,_.My)("dweb.unauth.context_menu.see_more_pins"),C?A.push(`${C}`):A.push(D)},children:R?(0,f.jsx)(g.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(b._('See more ideas about {{levelOneInterestName}}', 'dweb.unauth.context_menu.link.see_more_ideas.l1', 'Link to see similar pins'),{levelOneInterestName:R})}):(0,f.jsx)(g.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(b._('See more ideas about {{interestTag}}', 'dweb.unauth.context_menu.link.see_more_ideas.interest_tag', 'Link to see similar pins'),{interestTag:O})})}),!(!v||!p)&&(0,f.jsx)(y,{onTap:()=>{(0,_.My)("dweb.unauth.context_menu.more_from_creator"),A.push(`/${p}/`)},children:(0,f.jsx)(g.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(b._('See more from {{full_name}}', 'dweb.unauth.context_menu.link.more_from_creator', 'Link to see more ideas from this creator'),{full_name:v})})}),(0,f.jsx)(a.Fragment,{children:(0,f.jsx)(y,{onTap:()=>{(0,_.My)("dweb.unauth.context_menu.login_signup"),k({reason:"CLICK_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_login_signup",desktopOptions:{modalType:"login"}}),j&&j.setUpsellReason("click_context_menu_action_bar_ellipsis_signup_or_login_button")},children:(0,f.jsx)(g.xv,{size:"200",weight:"bold",children:b._('Log in or sign up for more', 'dweb.unauth.context_menu.link.login_signup', 'Link to log in or sign up')})})})]}):null}function T({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:n,...i}){var a,r,o,s,d;const c=(0,v.useFragment)(E,e),u=(0,l.Z)(c);let _;var p,h;(_=null!=c&&c.nativeCreator?c.nativeCreator:null!=c&&c.linkDomain?c.linkDomain.officialUser:(null==c?void 0:c.originPinner)||(null==c?void 0:c.pinner),_)||(_=null!==(p=null==c||null===(h=c.linkDomain)||void 0===h?void 0:h.officialUser)&&void 0!==p?p:null==c?void 0:c.pinner);return(0,f.jsx)(S,{...i,embedSrc:(null==c?void 0:c.embed)&&c.embed.src,embedType:(null==c?void 0:c.embed)&&c.embed.type,images:u,sourceUserUsername:null===(a=_)||void 0===a?void 0:a.username,sourceUserFullname:null===(r=_)||void 0===r?void 0:r.fullName,pinJoinVisualAnnotation:null==c||null===(o=c.pinJoin)||void 0===o?void 0:o.visualAnnotation,pinJoinSeoBreadcrumbName:(null==c||null===(s=c.pinJoin)||void 0===s?void 0:s.seoBreadcrumbs)&&(c.pinJoin.seoBreadcrumbs.length>0?c.pinJoin.seoBreadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==c||null===(d=c.pinJoin)||void 0===d?void 0:d.seoBreadcrumbs)&&(c.pinJoin.seoBreadcrumbs.length>0?c.pinJoin.seoBreadcrumbs[0].url:null),pinId:t})}function I({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:n,...i}){var a,r,o,s,l,d;const u=(0,p.S6)()(t),{link_domain:_,native_creator:h,origin_pinner:m,pinner:g}=u||{};let v=(0,c.wS)(_,h,m,g);var y,E;v||(v=null!==(y=null==u||null===(E=u.link_domain)||void 0===E?void 0:E.official_user)&&void 0!==y?y:null==u?void 0:u.pinner);const{full_name:T,username:I}=null!==(a=v)&&void 0!==a?a:{};return(0,f.jsx)(S,{...i,embedSrc:null==u||null===(r=u.embed)||void 0===r?void 0:r.src,embedType:null==u||null===(o=u.embed)||void 0===o?void 0:o.type,images:null==u?void 0:u.images,sourceUserUsername:T,sourceUserFullname:I,pinJoinVisualAnnotation:null==u||null===(s=u.pin_join)||void 0===s?void 0:s.visual_annotation,pinJoinSeoBreadcrumbName:(null==u||null===(l=u.pin_join)||void 0===l?void 0:l.seo_breadcrumbs)&&(u.pin_join.seo_breadcrumbs.length>0?u.pin_join.seo_breadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==u||null===(d=u.pin_join)||void 0===d?void 0:d.seo_breadcrumbs)&&(u.pin_join.seo_breadcrumbs.length>0?u.pin_join.seo_breadcrumbs[0].url:null),pinId:t})}function x(e){return e.graphqlRef?(0,f.jsx)(T,{...e}):(0,f.jsx)(I,{...e})}},447409:(e,t,n)=>{n.d(t,{n:()=>I,Z:()=>x});var i=n(702664),a=n(598615),r=n(821997),o=n(966476);const s=({children:e,fallback:t})=>(()=>{const e=(0,i.useSelector)((e=>{var t;return!(null==e||null===(t=e.session)||void 0===t||!t.isSeoBot)})),t=(0,o.Z)();return!e&&!t})()?t||null:e;var l=n(938917),d=n(898781),c=n(893101),u=n(112690),_=n(867820),p=n(780280);var h=n(52022),m=n(643010),g=n(948376),v=n(773285),f=n(385740),y=n(53987),E=n(883119),S=n(276775),T=n(785893);const I=56;function x(){const e=(0,d.ZP)(),t=(0,S.useLocation)(),n=(0,S.useHistory)(),{viewType:o,viewParameter:x}=(0,f.SU)(),{userAgentPlatform:P,userAgent:b}=(0,i.useSelector)((({session:e})=>e)),A=(0,g.Rp)({platform:P,userAgent:b}),w=(0,c.Z)(),R=function(){const{isBot:e}=(0,p.B)();return(t,n)=>{e||(0,_.NC)(t,n)}}(),C=(0,l.Z)(),{checkExperiment:O}=(0,v.F)(),N=(0,u.Z)(),D=(0,h.Z)(),k=e._('Log in', 'Label for log in button', 'Label for log in button'),L=e._('Sign up', 'Text on button on the top bar that leads users to signing up.', 'Text on button on the top bar that leads users to signing up.'),j=e._('Download', 'mweb.unauth.interstitial_upsell.download_button_text', 'CTA on the app interstitial upsell to install the app'),U=!A&&!(0,y.Xn)(t),M=((0,y.dr)(t)||(0,y.$Y)(t)||(0,y.E0)(t))&&!O("lex_follow_button").group.includes("main_cta"),F=!C||w||M?"signup":"download",B=(U?k.length:0)+("signup"===F?L.length:0)+("download"===F?j.length:0);return(0,T.jsx)(E.xu,{dangerouslySetInlineStyle:{__style:{boxShadow:"0 1px 0 0 rgba(0, 0, 0, 0.08)",backgroundColor:(0,m.Yc)()?"#333":"white",transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:"translateY(0)"}},top:!0,left:!0,width:"100vw",position:"relative",paddingX:3,children:(0,T.jsxs)(E.xu,{alignItems:"center","data-test-id":"unauth-header",direction:"row",display:"flex",justifyContent:"between",children:[(0,T.jsx)(E.iP,{accessibilityLabel:e._('Pinterest App', 'Pinterest icon for app upsell', 'Pinterest icon for app upsell'),onTap:()=>{D({action:"click",within:"unauth-header",item:"pinterest-logo"})},children:(0,T.jsxs)(E.xu,{alignItems:"center",display:"flex",direction:"row",marginEnd:3,children:[(0,T.jsx)(E.xu,{alignItems:"center",display:"flex",height:I,justifyContent:"center",rounding:2,"data-test-id":"pinterest-logo-icon",children:(0,T.jsx)(E.iP,{role:"link",tapStyle:"none",href:"/",children:A?(0,T.jsx)(r.Z,{size:24}):(0,T.jsx)(E.hU,{icon:"pinterest",iconColor:"brandPrimary",padding:1,size:"xl",accessibilityLabel:e._('Pinterest App', 'Pinterest icon for app upsell', 'Pinterest icon for app upsell')})})}),(0,T.jsx)(E.xu,{paddingY:2,paddingX:1,"data-test-id":"pinterest-logo-text",children:B<18&&(0,T.jsxs)(E.xu,{children:[(0,T.jsx)(E.X6,{color:"error",size:"400",overflow:"normal",children:A?e._('Pinterest Lite', 'Pinterest lite brand for the app upsell', 'Pinterest lite brand for the app upsell'):e._('Pinterest', 'Pinterest brand for the app upsell', 'Pinterest brand for the app upsell')}),A&&(0,T.jsx)(E.xu,{dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-wrap"}},children:(0,T.jsx)(E.xu,{children:(0,T.jsx)(E.xv,{inline:!0,size:"100",color:"subtle",children:e._('Save space on your device', 'Unauth app upsell copy that describe Pinterest product core value to users', 'Unauth app upsell copy that describe Pinterest product core value to users')})})})]})})]})}),(0,T.jsx)(s,{children:(0,T.jsxs)(E.xu,{marginEnd:0,flex:"none",alignItems:"center",display:"flex",direction:"row","data-test-id":"UnauthAppUpsellButton",children:[U&&(0,T.jsx)(E.xu,{"data-test-id":"login-button",children:(0,T.jsx)(E.zx,{fullWidth:!0,color:"white",onClick:()=>{D({action:"click",within:"unauth-header",item:"login-button"}),N({component:13198,element:30,event_type:102,view_type:o,view_parameter:x}),R("press_header_login"),N({event_type:10241,element:30,component:14213,view_type:o,view_parameter:x,aux_data:{upsell_reason:"click_login_on_header"}}),n.push({pathname:"/login",state:{attributionLabel:"click_login_on_header",...t.state}})},size:"md",text:k})}),"signup"===F?(0,T.jsx)(E.xu,{"data-test-id":"signup-button",children:(0,T.jsx)(E.zx,{fullWidth:!0,color:M?"red":"gray",onClick:()=>{D({action:"click",within:"unauth-header",item:"signup-button"}),N({component:13198,element:31,event_type:102,view_type:o,view_parameter:x}),R("press_header_signup"),N({event_type:10241,element:31,component:14215,view_type:o,view_parameter:x,aux_data:{upsell_reason:"click_signup_on_header"}}),n.push({pathname:"/signup",state:{attributionLabel:"click_signup_on_header",...t.state}})},size:"md",text:L})}):(0,T.jsx)(E.xu,{"data-test-id":"download-button",children:(0,T.jsx)(a.Z,{componentType:14161,within:"unauth-header",children:({handleOpenApp:e})=>(0,T.jsx)(E.zx,{fullWidth:!0,color:(0,y.j8)(t)||O("lex_follow_button").group.includes("main_cta")?"gray":"red",onClick:()=>e(),size:"md",text:j})})})]})})]})})}},874317:(e,t,n)=>{n.d(t,{Yw:()=>x,ZP:()=>R,nt:()=>I});var i,a=n(598615),r=n(326960),o=n(248975),s=n(63552),l=n(862628),d=n(938917),c=n(898781),u=n(759177),_=n(667679),p=n(62409),h=n(349700),m=n(867820),g=n(538232),v=n(773285),f=n(350118),y=n(276775),E=n(883119),S=n(167912),T=n(785893);const I=250,x={WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",KhtmlUserSelect:"none",UserSelect:"none"},P=void 0!==i?i:i=n(167074);function b({mwebContextMenuState:e,openShareModal:t,setMwebContextMenuState:n,pinId:i,images:u,embedSrc:p,embedType:f,sourceUserUsername:S,sourceUserFullname:x,pinDownloadFilename:P,pinImageSignature:b,pinJoinVisualAnnotation:A,pinJoinSeoBreadcrumbName:w,pinJoinSeoBreadcrumbUrl:R}){var C;const O=(0,c.ZP)(),N=(0,y.useHistory)(),D=(0,o.Z)({images:u,embedSrc:p,embedType:f}),{isChromeOnIOS:k}=(0,g.R)(),L=w,j=R,U=null!==(C=null==A?void 0:A[0])&&void 0!==C?C:void 0,M=(0,l.Z)(U),F=`/search/pins/?q=${encodeURIComponent(M)}&rs=image_only_attribution`,B=(0,_.Z)(),G=(0,g.R)(),{checkExperiment:z}=(0,v.F)(),H=(0,d.Z)();return D?(0,T.jsxs)(E.xu,{"data-test-id":"mobile-context-menu",position:"absolute",dangerouslySetInlineStyle:{__style:{top:`${e.yPosition}px`,left:`${e.xPosition}px`}},zIndex:new E.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:I,children:[(0,T.jsxs)(E.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",direction:"row",display:"flex",alignItems:"center",justifyContent:"between",children:[(0,T.jsx)(E.JO,{icon:"pinterest",accessibilityLabel:O._('Pinterest logo', 'unauth.mweb.context_menu.pinterest_logo', 'Pinterest logo in the context menu'),color:"brandPrimary"}),(0,T.jsx)(E.xu,{alignSelf:"end","data-test-id":"mobile-context-menu-cancel-button",children:(0,T.jsx)(E.iP,{onTap:({event:e})=>{e.stopPropagation(),n(null)},children:(0,T.jsx)(E.JO,{icon:"cancel",accessibilityLabel:O._('Dismiss mweb context menu', 'unauth.mweb.context_menu.dismiss', 'Dismiss icon in mweb context menu')})})})]}),"main"===e.context&&H&&z("mweb_main_pin_ltcm_open_in_app").anyEnabled&&(0,T.jsx)(a.Z,{componentType:18,within:"mweb-context-menu",children:({handleOpenApp:e})=>(0,T.jsx)(E.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,T.jsx)(E.iP,{onTap:({event:t})=>{t.stopPropagation(),n(null),e({deepLinkUri:`/pin/${i}/`}),(0,m.My)("unauth.mweb.context_menu.open_in_app")},children:(0,T.jsx)(E.xv,{size:"200",weight:"bold",children:O._('Open in App', 'unauth.mweb.context_menu.link.open_in_app', 'Link to open the pin in Pinterest app')})})})}),["download","short_d"].includes(e.context)&&b?(0,T.jsx)(E.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,T.jsx)(r.Z,{imgSrc:D,isChromeOnIOS:k,filename:P,pinId:i,viewType:3,imageSignature:b,children:e=>(0,T.jsx)(s.Z,{pressState:"none",onTouch:t=>{e().then((()=>{t.stopPropagation(),n(null),(0,m.My)("unauth.mweb.context_menu.download_image")}))},children:(0,T.jsx)(E.xv,{size:"200",weight:"bold",children:O._('Download image', 'unauth.mweb.related_pin.context_menu.link.download_image', 'Link to download image')})})})}):(0,T.jsx)(E.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,T.jsx)(E.iP,{onTap:({event:e})=>{e.stopPropagation(),n(null),(0,m.My)("unauth.mweb.context_menu.save_image"),e&&G.saveButtonConfig.onSaveButtonClick(e)},children:(0,T.jsx)(E.xv,{size:"200",weight:"bold",children:O._('Save image', 'unauth.mweb.context_menu.link.save_image', 'Link to save image')})})}),["download","save","short_s","short_d"].includes(e.context)&&(0,T.jsx)(E.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,T.jsx)(E.iP,{onTap:({event:e})=>{e.stopPropagation(),n(null),t&&t(!0),(0,m.My)("unauth.mweb.context_menu.share_related_pin")},children:(0,T.jsx)(E.xv,{size:"200",weight:"bold",children:O._('Share image', 'unauth.mweb.context_menu.link.share_menu', 'Link to open the share menu')})})}),(0,T.jsx)(E.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,T.jsx)(E.iP,{onTap:({event:e})=>{e.stopPropagation(),n(null),(0,m.My)("unauth.mweb.context_menu.open_plp_new_tab"),window.open(`/pin/${i}/`)},children:(0,T.jsx)(E.xv,{size:"200",weight:"bold",children:O._('Open link in new tab', 'unauth.mweb.context_menu.link.plp_new_tab', 'Link to open the pin in a new tab')})})}),["download","save","main"].includes(e.context)&&(U||!(!L||!j))&&(0,T.jsx)(E.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,T.jsx)(E.iP,{onTap:()=>{(0,m.My)("unauth.mweb.context_menu.see_more_pins"),N.push(j?`${j}`:F)},children:L?(0,T.jsx)(E.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,h.nk)(O._('See more ideas about {{levelOneInterestName}}', 'unauth.mweb.context_menu.link.see_more_ideas.l1', 'Link to see similar pins'),{levelOneInterestName:L})}):(0,T.jsx)(E.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,h.nk)(O._('See more ideas about {{interestTag}}', 'unauth.mweb.context_menu.link.see_more_ideas.interest_tag', 'Link to see similar pins'),{interestTag:U})})})}),["download","save","main"].includes(e.context)&&!(!x||!S)&&(0,T.jsx)(E.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,T.jsx)(E.iP,{onTap:()=>{(0,m.My)("unauth.mweb.context_menu.more_from_creator"),N.push(`/${S}/`)},children:(0,T.jsx)(E.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,h.nk)(O._('See more from {{full_name}}', 'unauth.context_menu.link.more_from_creator', 'Link to see more ideas from this creator'),{full_name:x})})})}),(0,T.jsx)(E.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,T.jsx)(E.iP,{onTap:({event:e})=>{e.stopPropagation(),n(null),(0,m.My)("unauth.mweb.context_menu.login_signup"),B({reason:"CLICK_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_login_signup"})},children:(0,T.jsx)(E.xv,{size:"200",weight:"bold",children:O._('Log in or sign up for more', 'unauth.mweb.context_menu.link.login_signup', 'Link to log in or sign up')})})})]}):null}function A({graphqlRef:e,pinId:t,...n}){var i,a,r,o,s;const l=(0,S.useFragment)(P,e),d=(0,u.Z)(l);let c;var _,p;(c=null!=l&&l.nativeCreator?l.nativeCreator:null!=l&&l.linkDomain?l.linkDomain.officialUser:(null==l?void 0:l.originPinner)||(null==l?void 0:l.pinner),c&&"string"!=typeof c)||(c=null!==(_=null==l||null===(p=l.linkDomain)||void 0===p?void 0:p.officialUser)&&void 0!==_?_:null==l?void 0:l.pinner);const h=(null==l?void 0:l.gridTitle)||(null==l?void 0:l.closeupUnifiedDescription),m=null==l?void 0:l.imageSignature;return(0,T.jsx)(b,{...n,embedSrc:(null==l?void 0:l.embed)&&l.embed.src,embedType:(null==l?void 0:l.embed)&&l.embed.type,images:d,sourceUserUsername:null===(i=c)||void 0===i?void 0:i.username,sourceUserFullname:null===(a=c)||void 0===a?void 0:a.fullName,pinDownloadFilename:h,pinImageSignature:m,pinJoinVisualAnnotation:null==l||null===(r=l.pinJoin)||void 0===r?void 0:r.visualAnnotation,pinJoinSeoBreadcrumbName:(null==l||null===(o=l.pinJoin)||void 0===o?void 0:o.seoBreadcrumbs)&&(l.pinJoin.seoBreadcrumbs.length>0?l.pinJoin.seoBreadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==l||null===(s=l.pinJoin)||void 0===s?void 0:s.seoBreadcrumbs)&&(l.pinJoin.seoBreadcrumbs.length>0?l.pinJoin.seoBreadcrumbs[0].url:null),pinId:t})}function w({graphqlRef:e,pinId:t,...n}){var i,a,r,o,s,l;const d=(0,f.S6)()(t),{link_domain:c,native_creator:u,origin_pinner:_,pinner:h}=d||{};let m=(0,p.wS)(c,u,_,h);var g,v;m&&"string"!=typeof m||(m=null!==(g=null==d||null===(v=d.link_domain)||void 0===v?void 0:v.official_user)&&void 0!==g?g:h);const{full_name:y,username:E}=null!==(i=m)&&void 0!==i?i:{},S=(null==d?void 0:d.grid_title)||(null==d?void 0:d.closeup_unified_description),I=null==d?void 0:d.image_signature;return(0,T.jsx)(b,{...n,embedSrc:null==d||null===(a=d.embed)||void 0===a?void 0:a.src,embedType:null==d||null===(r=d.embed)||void 0===r?void 0:r.type,images:null==d?void 0:d.images,sourceUserUsername:y,sourceUserFullname:E,pinDownloadFilename:S,pinImageSignature:I,pinJoinVisualAnnotation:null==d||null===(o=d.pin_join)||void 0===o?void 0:o.visual_annotation,pinJoinSeoBreadcrumbName:(null==d||null===(s=d.pin_join)||void 0===s?void 0:s.seo_breadcrumbs)&&(d.pin_join.seo_breadcrumbs.length>0?d.pin_join.seo_breadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==d||null===(l=d.pin_join)||void 0===l?void 0:l.seo_breadcrumbs)&&(d.pin_join.seo_breadcrumbs.length>0?d.pin_join.seo_breadcrumbs[0].url:null),pinId:t})}function R(e){return e.graphqlRef?(0,T.jsx)(A,{...e}):(0,T.jsx)(w,{...e})}},893101:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(702664),a=n(172071),r=n(938917),o=n(436851),s=n(948376),l=n(50286),d=n(276775),c=n(780280),u=n(56390),_=n(339363),p=n(53987);const h=()=>{const{isBot:e}=(0,c.B)(),t=(0,d.useLocation)(),{userAgentPlatform:n,userAgent:h}=(0,i.useSelector)((e=>e.session)),m=(0,r.Z)(),g=(0,l.ml)();return!e&&!(g&&!m)&&!(0,s.Rp)({platform:n,userAgent:h})&&((0,p.uM)(t)||(0,p.am)(t))&&!(0,u.P)()&&!(e=>!!(0,o.d)(e)&&((0,_.qn)("ufausfiiab")||(a.Z.increment("unauth.floating_app_upsell.suppress_for_instagram_in_app_browser"),(0,_.Nh)("ufausfiiab","1")),!0))(h)}},862193:(e,t,n)=>{n.d(t,{Z:()=>s});var i,a=n(667294),r=n(167912);const o=void 0!==i?i:i=n(569772),s=e=>{var t;const n=(0,r.useFragment)(o,e),i=null==n||null===(t=n.pinJoin)||void 0===t?void 0:t.annotationsWithLinksArray;return(0,a.useMemo)((()=>null==i?void 0:i.reduce(((e,{name:t,url:n})=>t?{...e,[t]:{name:t,url:n}}:e),{})),[i])}},54839:(e,t,n)=>{n.d(t,{Z:()=>_});var i=n(667294),a=n(911691),r=n(19121),o=n(202139),s=n(773285),l=n(780280),d=n(785893);const c="https://ct.pinterest.com/ct.html";function u(e,t){const n=new Date,i={value:t,expiry:t?n.getTime()+o.N1:null};e.contentWindow.postMessage({key:"_epik_localstore",value:JSON.stringify(i)},c)}function _(){const e=(0,i.useRef)(null),t=(0,r.Z)(),{checkExperiment:n}=(0,s.F)(),{anyEnabled:o}=n("epik_localstorage_redesign_written_control"),_=(0,l.B)(),p=_.country,h=_.countryFromIp,m=_.countryFromHostName,g=new Set(a.Z),v=g.has(p)||g.has(h)||g.has(m),{allow_analytic_cookies:f,allow_personalization_cookies:y,epik:E,isAuth:S}=t.isAuth?t:{},T=e.current;return(0,i.useEffect)((()=>{T&&S&&T instanceof HTMLIFrameElement&&T.contentWindow&&u(T,(!v||f&&y)&&o&&E?E:null)}),[t,f,y,E,S,o,v,T]),(0,d.jsx)("iframe",{id:"epik_localstore",src:c,title:"iframe to send EPIK",ref:e,style:{display:"none"},"aria-hidden":"true"})}},491563:(e,t,n)=>{n.d(t,{Z:()=>T});var i=n(667294),a=n(702664),r=n(116303),o=n(815613),s=n(149230),l=n(898781),d=n(883119),c=n(785893);const u={__style:{backgroundColor:"rgba(0, 0, 0, 0.04)"}},_=({height:e,image:t,width:n})=>{var i,a,r;const o=(0,l.ZP)();return(0,c.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{borderRight:"1px solid white"}},children:t?(0,c.jsxs)(d.xu,{position:"relative",children:[(0,c.jsx)(d.GH,{width:n,height:e,contentAspectRatio:"number"==typeof t.height&&"number"==typeof t.width?t.width/t.height:1,children:(0,c.jsx)(d.Ee,{alt:o._('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!==(a=t.height)&&void 0!==a?a:1,src:null!==(r=t.url)&&void 0!==r?r:""})}),(0,c.jsx)(d.xu,{dangerouslySetInlineStyle:u,height:e,width:n,position:"absolute",top:!0,left:!0})]}):(0,c.jsx)(d.xu,{color:"secondary",width:n,height:e})})};var p=n(112690),h=n(892819),m=n(865673),g=n(57791),v=n(349700),f=n(698330),y=n(780280),E=n(861411),S=n(461773);function T({action:e,auxData:t,isPinnerAuthorityHero:n=!1,userSearchRepStyle:u=!1,onFollowUser:T,onUnfollowUser:I,userId:x,userPins:P,viewParameter:b,viewType:A,truncateName:w=!1}){const R=(0,l.ZP)(),C=(0,h.Z)(),O=(0,a.useDispatch)(),{locale:N}=(0,y.B)(),D=(0,p.Z)(),[k,L]=(0,i.useState)(u?window.innerWidth-16:null),j=(0,f.mN)()(x);if(!j)return null;const{contextual_pin_image_urls:U,explicitly_followed_by_me:M,follower_count:F=0,full_name:B,image_medium_url:G,is_verified_merchant:z,recent_pin_images:H,username:Z,verified_identity:V}=j,W=e=>k?(k-(e-1))/e:0,K=u?1.6*W(4):117,Y=(null==P?void 0:P.map((e=>{var t;return null==e||null===(t=e.images)||void 0===t?void 0:t["236x"]})))||[],q=(null==H?void 0:H["222x"])||(null==H?void 0:H["192x"])||[];let $=(null==U?void 0:U["222x"])||(null==U?void 0:U["192x"])||[];n&&0===$.length&&($=q);const X=u&&$.length<=0;let J=u?$.concat(q).slice(0,4):Y.concat(q).slice(0,2);0===J.length&&(J=[void 0,void 0]);const Q=!X&&(k?(0,c.jsx)(d.zd,{rounding:4,children:(0,c.jsx)(d.kC,{children:J.map(((e,t)=>(0,c.jsx)(_,{height:K,image:e,width:W(J.length)},`pinImage-${t}`)))})}):(0,c.jsx)(d.xu,{height:K,ref:e=>{e&&L(e.offsetWidth)},width:"100%"})),ee=e=>(0,c.jsx)(d.kC,{justifyContent:"center",children:(0,c.jsx)(d.xu,{marginTop:e,height:60,width:60,children:(0,c.jsx)(r.Z,{outline:!0,name:null!=B?B:"",src:null!=G?G:""})})}),te=e=>(0,c.jsxs)(d.kC,{direction:"column",gap:{row:0,column:1},alignItems:e,children:[(0,c.jsx)(d.kC,{alignItems:"stretch",maxWidth:(u?(k||0)/2:k)||void 0,children:(0,c.jsx)(d.xv,{align:e,weight:"bold",lineClamp:w?1:void 0,children:z||null!=V&&V.verified?(0,c.jsx)(m.Z,{badgeSize:"md",badgeSpacing:2,fullName:null!=B?B:"",verifiedType:z?"verifiedMerchant":"verifiedIdentity",truncate:w}):B})}),(0,c.jsx)(d.xv,{inline:!0,size:"100",align:e,children:(0,v.nk)(R.ngettext('{{followers}} follower', '{{followers}} followers', F, 'PinnerAuthority.followersCount', 'Count of a user\'s followers'),{followers:C(N,F,{shortform:!0})})})]}),ne=(0,c.jsx)(d.kC,{justifyContent:"center",children:e&&e.url?(0,c.jsx)(d.zx,{role:"link",accessibilityLabel:e.text,color:"gray",size:"lg",text:e.text,href:e.url,onClick:()=>{D({event_type:9029,object_id_str:x,view_type:A,view_parameter:b,aux_data:t})},rel:(0,s.Z)({url:e.url})?"nofollow":void 0,target:(0,s.Z)({url:e.url})?"blank":void 0}):(0,c.jsx)(o.Z,{id:x,isSecondaryButton:!0,isFollowed:M,onFollow:e=>{T&&T(),O((0,S.ZN)(e))},onUnfollow:e=>{I&&I(),O((0,S.fv)(e))},size:"lg",followEventType:45,unfollowEventType:46,viewParameter:b,viewType:A})});return(0,c.jsx)(E.Cy,{loggingId:x,objectIdStr:x,slotIndex:0,viewParameter:b,viewType:A,children:({impressionTrackerRef:e})=>(0,c.jsx)(d.xu,{ref:e,padding:1,marginBottom:6,"data-test-id":"user-rep",children:(0,c.jsx)(g.MZ,{to:`/${Z}/`,onTouch:()=>{D({event_type:43,object_id_str:x,view_parameter:b,view_type:A})},children:(0,c.jsxs)(d.kC,{direction:"column",gap:{row:0,column:2},width:"100%",children:[Q,u?(0,c.jsx)(d.xu,{width:"100%",children:(0,c.jsxs)(d.kC,{justifyContent:"between",alignItems:"center",children:[(0,c.jsxs)(d.kC,{alignItems:"center",gap:{row:2,column:0},children:[ee(),te("start")]}),ne]})}):(0,c.jsxs)(d.kC,{direction:"column",gap:{row:0,column:2},children:[ee(-10),te("center"),ne]})]})})})})}},865673:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(667294),a=n(512176),r=n(883119),o=n(785893);const s=function({badgeSize:e,badgeSpacing:t,fullName:n,verifiedType:s,truncate:l=!1}){const d=n.split(" "),c=d.slice(0,d.length-1).join(" "),u=" ".concat(d[d.length-1]);return l?(0,o.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,o.jsx)(r.xv,{lineClamp:1,weight:"bold",children:n}),(0,o.jsx)(r.xu,{flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},paddingX:1,children:(0,o.jsx)(a.Z,{isVerifiedMerchant:"verifiedMerchant"===s,size:e,showVerifiedIdentity:"verifiedIdentity"===s})})]}):(0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)("span",{children:c}),(0,o.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[u," ",(0,o.jsx)(r.xu,{display:"inlineBlock",flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},children:(0,o.jsx)(a.Z,{isVerifiedMerchant:"verifiedMerchant"===s,size:e,showVerifiedIdentity:"verifiedIdentity"===s})})]})]})}},619519:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(667294),a=n(722767),r=n(655428),o=n(883119),s=n(785893);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends i.PureComponent{constructor(...e){super(...e),l(this,"state",{isPlaying:!1,isVideoReady:!1,isVisibleForPlaying:!1,startLoading:!1}),l(this,"handleVisibilityChanged",(e=>{const{intersectionRatio:t}=e[0],{isPlaying:n,isVideoReady:i,startLoading:a}=this.state;t>=.8?(this.setState({isVisibleForPlaying:!0}),this.videoRef&&(a?i&&!n&&this.videoRef.play():(this.videoRef.load(),this.setState({startLoading:!0})))):(this.setState({isVisibleForPlaying:!1}),this.videoRef&&i&&this.videoRef.pause())})),l(this,"handleVideoPause",(()=>this.setState({isPlaying:!1}))),l(this,"handleVideoPlay",(()=>this.setState({isPlaying:!0}))),l(this,"getVideoRef",(e=>this.videoRef=e)),l(this,"setIsVideoReadyTrue",(()=>{this.setState({isVideoReady:!0}),this.videoRef&&!this.state.isPlaying&&this.state.isVisibleForPlaying&&this.videoRef.play()}))}render(){const{height:e,thumbnail:t,url:n,width:i,pinDescription:l,pinImageHeight:d,pinImageUrl:c,pinImageWidth:u}=this.props,_=(null!=e?e:1)/(null!=i?i:1);return n?(0,s.jsx)(a.Z,{options:{threshold:[0,.5,.8,1]},onVisibilityChange:this.handleVisibilityChanged,children:(0,s.jsx)(o.xu,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingBottom:100*_+"%"}},children:(0,s.jsx)(o.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:(0,s.jsx)("video",{height:"100%",muted:!0,onCanPlay:this.setIsVideoReadyTrue,onPause:this.handleVideoPause,onPlay:this.handleVideoPlay,playsInline:!0,poster:t,preload:"none",ref:this.getVideoRef,src:n,width:"100%"})})})}):(0,s.jsx)(o.xu,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}},children:(0,s.jsx)(r.Z,{description:l,imageUrl:c,imageHeight:d,imageWidth:u})})}}},674857:(e,t,n)=>{var i=n(667294),a=n(702664),r=n(363046),o=n(172903),s=n(50286),l=n(19121),d=n(233211),c=n(332215),u=n(780280),_=n(785893);function p({children:e,inviteCode:t}){const{country:n,isAuthenticated:r,userAgent:{browserName:p,platform:h}}=(0,u.B)(),m=(0,s.ZP)(),g="mobile"===m,v="tablet"===m,{id:f}=(0,l.Z)(),{loggedOutUserInfo:y}=(0,a.useSelector)((({session:e})=>({loggedOutUserInfo:e.loggedOutUserInfo})),a.shallowEqual),E=(0,a.useSelector)((({users:e})=>e[f])),S=(0,i.useMemo)((()=>{if(E&&(0,c.xT)(E)){var e,t,n;const i=E;return{type:"LIMITED_LOGIN",info:{connectedToFacebook:!!i.connected_to_facebook,connectedToGoogle:!!i.connected_to_google,email:null!==(e=i.email)&&void 0!==e?e:"",firstName:null!==(t=i.first_name)&&void 0!==t?t:"",hasPassword:!!i.has_password,imageUrl:null!==(n=i.image_medium_url)&&void 0!==n?n:null}}}if(r)return{type:"AUTH",info:null};{var i;const e=y;return{type:"UNAUTH",info:e&&e.email&&e.first_name?{connectedToFacebook:!!e.connected_to_facebook,connectedToGoogle:!!e.connected_to_google,email:e.email,firstName:e.first_name,hasPassword:!!e.has_password,imageUrl:null!==(i=e.medium_image_url)&&void 0!==i?i:null}:null}}}),[r,y,E]),T=(({inviteCode:e})=>{const t=(0,o.Z)();return(0,i.useCallback)(((n,i)=>t(n,{loggingOptions:i,inviteCode:e})),[t,e])})({inviteCode:t}),I=g||v,x=(0,i.useMemo)((()=>({getDeviceAppTypeString:()=>`${I?"mobile":"desktop"}.${n}.${h}.${p||"unknown"}`.replace(/ /g,"_"),register:T,viewer:S})),[p,n,I,T,h,S]);return(0,_.jsx)(d.I7,{value:x,children:e})}var h=n(911691),m=n(202139),g=n(844974);const v="_epik_localstore";function f(){const e=(0,l.Z)(),t=(0,u.B)(),n=t.country,a=t.countryFromIp,r=t.countryFromHostName,o=new Set(h.Z),s=o.has(n)||o.has(a)||o.has(r),{allow_analytic_cookies:d,allow_personalization_cookies:c,epik:_,isAuth:p}=e.isAuth?e:{};return(0,i.useEffect)((()=>{if(p)if(!s||d&&c){if(_){const e=new Date;!function(e,t,n){const i={value:t,expiry:n};(0,g.Nh)(e,JSON.stringify(i))}(v,_,e.getTime()+m.N1)}}else(0,g.L_)(v)}),[p,_,s,d,c]),null}var y=n(54839),E=n(319915),S=n(766935),T=n(571577);function I({children:e,deviceType:t}){const[n,a]=(0,i.useState)((e=>"phone"===e?"sm":"tablet"===e?"md":"lg")(t)),r=()=>{return a((e=window.innerWidth)<768?"sm":e<1024?"md":"lg");var e},o=(0,i.useCallback)((0,S.Z)(r,200),[]);return(0,i.useEffect)((()=>(r(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)})),[]),(0,_.jsx)(T.I,{value:n,children:e})}var x=n(883119),P=n(643010);function b({children:e}){const t=(0,P.vs)();return(0,_.jsx)(x.Ag,{colorScheme:t?"dark":"light",children:e})}var A=n(524172),w=n(124580),R=n(172071),C=n(44846),O=n(898781);class N extends i.Component{constructor(e){super(e),this.state={bannerStatus:this.props.isOffline?"offline":"hidden"}}getSnapshotBeforeUpdate(e){const{isOffline:t}=this.props,{isOffline:n}=e;if(n!==t){const e=t?"offline":"backOnline";this.setState({bannerStatus:e}),t||setTimeout((()=>{this.props.isOffline?this.setState({bannerStatus:"offline"}):this.setState({bannerStatus:"hidden"})}),2e3)}return null}componentDidUpdate(){}render(){const{bannerStatus:e}=this.state;return"hidden"!==e&&(0,_.jsx)(x.Le,{top:0,zIndex:new x.Ry(20),children:(0,_.jsx)(x.xu,{flex:"grow",display:"flex",alignItems:"center",color:"backOnline"===e?"successBase":"secondary",height:"100%",padding:3,justifyContent:"center",children:(0,_.jsxs)(x.xv,{color:"backOnline"===e?"inverse":"default",weight:"bold",align:"center",size:"200",children:[(0,_.jsx)(x.xu,{marginEnd:1,marginStart:1,marginBottom:-1,display:"inlineBlock",children:(0,_.jsx)(x.JO,{accessibilityLabel:e?this.props.i18n._('online', 'online icon label', 'online label'):this.props.i18n._('offline', 'offline icon label', 'offline icon label'),color:"backOnline"===e?"inverse":"default",dangerouslySetSvgPath:{__path:"backOnline"===e?"M24.4 8.1c0-4.3-3.6-7.9-7.9-7.9-2.6 0-4.9 1.3-6.4 3.2-2.5.5-4.5 2.3-5.4 4.8-2.7.7-4.7 3.1-4.7 6 0 3.2 2.5 5.9 5.7 6.1H18.3c3.2-.2 5.7-2.9 5.7-6.1 0-.9-.2-1.7-.6-2.4.7-1.1 1-2.4 1-3.7zm-6.2 10H5.9c-2-.1-3.6-1.8-3.6-4 0-1.8 1.3-3.5 3.1-3.9l1.1-.1.3-1.1c.3-1 1-2 1.9-2.6 0 .5-.1 1.1-.1 1.6 0 4.3 3.6 7.9 7.9 7.9 2 0 3.9-.8 5.3-2v.3c0 2-1.6 3.8-3.6 3.9zm-1.7-4.3c-3.2 0-5.8-2.6-5.8-5.8s2.6-5.8 5.8-5.8 5.8 2.6 5.8 5.8-2.6 5.8-5.8 5.8z M18.9 5.5l-3.3 3.3-1.3-1.3c-.4-.4-.9-.4-1.3 0s-.4.9 0 1.3l1.9 1.9.6.6.6-.6L20 6.8c.4-.4.4-.9 0-1.3-.3-.3-.7-.3-1.1 0z":"M19.1 7.5c-.2-.7-.6-1.3-1-1.8l2.7-2.8-1.5-1.5L16.7 4c-1.4-1.1-3-1.6-4.7-1.6-3.3 0-6.2 2-7.2 5.2-2.9.7-4.8 3.1-4.8 6 0 2 1 3.9 2.5 5L.1 21.1l1.6 1.5 2.9-3c.3.1.7.2 1 .2H18.3c3.2-.2 5.7-2.9 5.7-6.2.1-3-2-5.5-4.9-6.1zm-2.6-.2c.2.4.4.7.5 1.1l.4 1.2 1.2.2c1.9.3 3.3 1.9 3.3 3.9s-1.5 3.8-3.6 4H6.6l9.9-10.4zM2.3 13.6c0-1.8 1.4-3.5 3.1-3.9l1.1-.2.3-1.1c.7-2.3 2.8-3.8 5.1-3.8 1.2 0 2.2.4 3.2 1.1L4.1 17c-1.1-.8-1.8-2-1.8-3.4z"}})}),"backOnline"===e?this.props.i18n._('You\'re back online!', 'back online message', 'back online message'):this.props.i18n._('You\'re offline! Check your internet connection.', 'not online message', 'not online message')]})})})}}const D=function(e){const t=(0,O.ZP)();return(0,_.jsx)(N,{...e,i18n:t})};var k=n(567450),L=n(373420),j=n(170168),U=n(773285),M=n(867820);let F;const B=(e,t)=>{try{(0,M.My)("mweb.homescreen_install.shown"),t({event_type:13,view_type:170,component:13126}),e.userChoice.then((e=>{(0,M.My)(`mweb.homescreen_install.${e.outcome}`),t({view_type:170,component:13126,element:"dismissed"===e.outcome?10359:10360,event_type:102})}))}catch(n){window.console.error(n)}};function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const z="firstPWAInstallPromptTime";class H extends i.Component{constructor(...e){super(...e),G(this,"state",{canShow:!1}),G(this,"handleOnDismiss",(()=>{this.setState({canShow:!1}),R.Z.increment("mweb_pwa_install_preprompt_dismiss")})),G(this,"handleOnAdd",(()=>{this.setState({canShow:!1}),R.Z.increment("mweb_pwa_install_preprompt_accept"),F&&(F.prompt(),B(F),F=null)}))}componentDidMount(){if(null===(0,g.qn)(z)){if(!Boolean(F)||this.props.userInNUX)return;(0,g.Nh)(z,Date.now()),R.Z.increment("mweb_pwa_install_preprompt"),this.setState({canShow:!0})}}render(){var e,t;if(!this.state.canShow||null!==(e=this.props.location)&&void 0!==e&&e.pathname.startsWith("/pin/create")||null!==(t=this.props.location)&&void 0!==t&&t.pathname.startsWith("/board/create"))return null;const n=this.props.i18n._('Add to Home screen', 'Add to home screen modal title', 'Add to home screen modal title');return(0,_.jsx)(L.default,{accessibilityModalLabel:n,onDismiss:this.handleOnDismiss,children:(0,_.jsxs)(x.xu,{padding:4,children:[(0,_.jsx)(x.xv,{children:(0,_.jsx)("span",{className:"deprecatedTextSizeXL",children:n})}),(0,_.jsxs)(x.xu,{paddingY:4,display:"flex",alignItems:"center",children:[(0,_.jsx)(x.JO,{accessibilityLabel:this.props.i18n._('Pinterest logo', 'accessibility label for the pinterest logo', 'accessibility label for the pinterest logo'),color:"brandPrimary",icon:"pinterest",size:36}),(0,_.jsxs)(x.xu,{paddingX:4,children:[(0,_.jsx)(x.xv,{children:(0,_.jsx)("span",{className:"deprecatedTextSizeXL",children:"Pinterest"})}),(0,_.jsx)(x.xv,{children:j.Vi})]})]}),(0,_.jsxs)(x.kC,{alignItems:"stretch",justifyContent:"end",children:[(0,_.jsx)(x.rU,{href:"#",display:"inlineBlock",onClick:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleOnDismiss()},underline:"hover",children:(0,_.jsx)(x.xu,{paddingX:1,children:(0,_.jsx)(x.xv,{color:"shopping",weight:"bold",children:this.props.i18n._('CANCEL', 'cancel label for to close the pwa install modal', 'cancel label for to close the pwa install modal')})})}),(0,_.jsx)(x.rU,{href:"#",display:"inlineBlock",onClick:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleOnAdd()},underline:"hover",children:(0,_.jsx)(x.xu,{paddingX:1,children:(0,_.jsx)(x.xv,{color:"shopping",weight:"bold",children:this.props.i18n._('ADD', 'add button to install pwa and close the modal', 'add button to install pwa and close the modal')})})})]})]})})}}const Z=function(e){const t=(0,O.ZP)(),{checkExperiment:n}=(0,U.F)(),i=n("mweb_delay_renux_for_resurrected_user",{dangerouslySkipActivation:!0}).group||"",r=n("mweb_scroll_based_renux",{dangerouslySkipActivation:!0}).group||"",o=(0,a.useSelector)((({experiences:e})=>{var t,n;return!i&&!r||i.includes("control")||r.includes("control")?[40002,500450].includes(null===(t=e[40001])||void 0===t?void 0:t.experience_id):[40002].includes(null===(n=e[40001])||void 0===n?void 0:n.experience_id)}));return(0,_.jsx)(H,{...e,i18n:t,checkExperiment:n,userInNUX:o})};var V=n(412067),W=n(947599),K=n(594881),Y=n(433780),q=n(439890);const $="holdout",X="activation_pod_holdout_2023_q1",J=Object.freeze({activation_product:"activation_product_team_holdout_2023_q1",activation_foundation:"activation_foundation_team_holdout_2023_q1",pinner_conversions:"pinner_conversions_team_holdout_2023_q1"});var Q=n(482662),ee=n(560352),te=n(829407),ne=n(52022),ie=n(127412),ae=n(283943),re=n(550858),oe=n(407043),se=n(313951),le=n(350576),de=n(744856),ce=n(619277),ue=n(373232),_e=n(987318),pe=n(118405),he=n(826067),me=n(7893),ge=n(878499),ve=n(269695),fe=n(790123),ye=n(275926),Ee=n(350118),Se=n(722512),Te=n(53987),Ie=n(874103),xe=n(529195),Pe=n(772486),be=n(30287),Ae=n(639952),we=n(735422),Re=n(813401),Ce=n(276775);const Oe=(0,i.lazy)((()=>n.e(25506).then(n.bind(n,303475)))),Ne=(0,i.lazy)((()=>n.e(27935).then(n.bind(n,527935))));function De({children:e}){const t=(0,Ce.useLocation)(),n=(0,s.HG)(),r=(0,s.ml)(),o=(0,s.Wb)(),d=(0,ne.Z)(),[c,h]=(0,i.useState)(!0),[m,g]=(0,i.useState)(!navigator.onLine),[v]=(0,i.useState)((0,he.mB)(t.search).invite_code||null),f=(0,a.useDispatch)(),{isAuthenticated:y,isBot:S,locale:T}=(0,u.B)(),I=(0,l.Z)(),P=(0,a.useSelector)((e=>e.experiences[40001]&&500681===e.experiences[40001].experience_id)),{checkExperiment:b}=(0,U.F)(),w=b("mweb_delay_renux_for_resurrected_user",{dangerouslySkipActivation:!0}).group||"",O=b("mweb_scroll_based_renux",{dangerouslySkipActivation:!0}).group||"",N=(0,a.useSelector)((({experiences:e})=>{var t,n;return!w&&!O||w.includes("control")||O.includes("control")?[40002,500450].includes(null===(t=e[40001])||void 0===t?void 0:t.experience_id):[40002].includes(null===(n=e[40001])||void 0===n?void 0:n.experience_id)})),k=(0,a.useSelector)((e=>e.session.shouldHideNavBar)),L=(0,Re.l5)(),j=(0,i.useRef)(y),F=(0,i.useRef)(t),B=r||o,G=!y&&!S&&B,z=y&&r&&b("auth_docked_nav_bar_exp").anyEnabled,H=y&&o&&b("auth_tablet_docked_nav_bar_exp").anyEnabled,{activateActivationHoldoutExperiments:Y}=function(){const{checkExperiment:e}=(0,U.F)(),t=(0,l.Z)().isAuth;return{activateActivationHoldoutExperiments:(0,i.useCallback)((()=>{e(X),Object.keys(J).forEach((t=>e(J[t])))}),[e]),userIsEligibleForShippedActivationExperiment:n=>!t||e(X).group!==$&&e(J[n]).group!==$}}(),Q=G||z,ee=T.startsWith("en")&&!y&&!S&&B&&b("unauth_videos_nav_bar_exp").anyEnabled;{var ie;const e=document.getElementById("shell-loader");e instanceof HTMLElement&&null!==(ie=document.body)&&void 0!==ie&&ie.removeChild&&document.body.removeChild(e)}(0,i.useEffect)((()=>{t&&(Q||H)&&((0,Te.uM)(t)?f((0,Ae.FK)()):f((0,Ae.Cp)()))}),[Q,H,t,f]),(0,te.Z)((()=>{if(!y){const e=Intl.DateTimeFormat().resolvedOptions().timeZone;(0,M.tj)("web.unauth.locale_data",{tz:e})}})),(0,i.useEffect)((()=>{y&&Y()}),[y,Y]),(0,i.useEffect)((()=>{if(y)(0,xe.kw)();else{const e=new URLSearchParams(t.search);if((t!==F.current||c)&&(0,xe.Z4)(t.pathname,(0,Ae.Wz)(t).payload),(0,Te.ey)(t)&&e.has("invite_code")&&(0,xe.Ys)(e.get("invite_code")),c){const t=(0,le.an)(""),n=t?new URL(t).hostname:"",i=new URLSearchParams;for(const r of xe.ZN)e.has(r)&&i.set(r,e.get(r)||"");const a=i.toString();(n||a)&&(0,xe.Cb)(`${n}${a?"?"+a:""}`)}}}),[t,y,c,b]),(0,i.useEffect)((()=>{(0,M.tj)(`mweb.${y?"auth":"unauth"}.window_size`,{width:void 0!==window.screen&&window.screen.width,height:void 0!==window.screen&&window.screen.height})}),[y]),(0,i.useEffect)((()=>{if(y){const e=Ie.wQ,t=async t=>{const n=await V.Z.create("ApiResource",{url:"/v3/sessions/verify/",data:{recaptcha_token:t}}).callUpdate();R.Z.increment("recaptcha_auth.done",1,{action:e,resp_code:n.status})};setTimeout((()=>{(0,Ie.rY)(t,(e=>{}),e)}),Ie.OA)}}),[y]),(0,i.useEffect)((()=>{const e=()=>(0,M.qJ)("mweb_funnel");return window.addEventListener("pagehide",e),window.addEventListener("beforeunload",e),(0,me.RD)((e=>(0,M.My)(e)),"mweb"),()=>{window.removeEventListener("pagehide",e),window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{const e=(e,t)=>{(0,M.tj)(`mweb.connection_status_${e}`,{downlink:t.downlink,downlinkMax:t.downlinkMax,effectiveType:t.effectiveType,rtt:t.rtt,saveData:t.saveData,type:t.type,isAuth:y})},t=t=>{if(t&&t.currentTarget){const n=t.currentTarget;e("change",n)}};if(window.navigator&&window.navigator.connection){const n=window.navigator.connection;e("initial",n),n.addEventListener("change",t)}return()=>{if(window.navigator&&window.navigator.connection){window.navigator.connection.removeEventListener("change",t)}}}),[y]),(0,i.useEffect)((()=>{const e=t=>{"offline"===t.type?(g(!0),window.addEventListener("online",e)):(g(!1),window.removeEventListener("online",e))};return window.addEventListener("offline",e),()=>{window.removeEventListener("offline",e)}}),[]),(0,i.useEffect)((()=>{const e=()=>{setTimeout((()=>window.dispatchEvent(new Event("resize"))),1e3);const e=window.innerHeight{window.removeEventListener("orientationchange",e)}}),[d]),(0,i.useEffect)((()=>{(!j.current&&y||F.current!==t&&F.current.pathname.startsWith("/email/subscription"))&&(0,K.Z)()}),[y,t]),(0,i.useEffect)((()=>{y&&y!==j.current&&((0,we.Fv)(),(0,Se.e)({isAuthenticated:y,isDesktop:n}).preload()),j.current=y}),[y,n]),(0,i.useEffect)((()=>{c&&f((0,Ae.Wz)(t,I.username)),F.current!==t&&c&&(h(!1),f((0,Ae.Wz)())),F.current=t}),[t]);const ae=!(({isAuthenticated:e,location:t,hasNux:n,hasEmailUpdate:i,isDesktop:a,shouldHideNavFooter:r,viewingUsername:o})=>o&&(0,Te.J)(t,o)||t.pathname.endsWith("/organize/repin/")||t.pathname.endsWith("/profile-about/")||t.pathname.startsWith("/about/")||t.pathname.startsWith("/convert-business")||t.pathname.startsWith("/convert-personal")||t.pathname.startsWith("/close-account")||t.pathname.startsWith("/settings")||t.pathname.startsWith("/switch_account")||t.pathname.startsWith("/add-account")||t.pathname.match(/pin\/.+\/repin/)||t.hash===`#${de.v}`||t.pathname.startsWith("/board/create/")||"/inbox/compose/"===t.pathname||"/search/me/"===t.pathname||"/search/people/"===t.pathname||t.pathname.startsWith("/today-articles")||t.pathname.startsWith("/oauth")||(0,Te.kY)(t)||(0,Te.C$)(t)&&(n||i||!e)||(0,Te.Xn)(t)||(0,Te.gf)(t)||(0,Te.re)(t)||(0,Te.FO)(t)||(0,Te.pV)(t)||(0,Te.jC)(t)||(0,Te.XE)(t)||(0,Te.Fy)(t)||(0,Te.AX)(t)||(0,Te.pD)(t)||(0,Te.Ui)(t)||(0,Te.KY)(t)||(0,Te.Ni)(t)||(0,Te.b0)(t)||(0,Te.mP)(t)||(0,Te.bW)(t)||(0,Te.dt)(t)||a||r)({isAuthenticated:y,location:t,hasNux:N,hasEmailUpdate:P,isDesktop:n,shouldHideNavFooter:k,viewingUsername:I.username}),re={__style:{...ae?{paddingBottom:68}:{}}};return(0,_.jsx)(p,{inviteCode:v,children:(0,_.jsx)(A.Z,{children:(0,_.jsx)(ve.m,{children:(0,_.jsx)(ce.o$,{value:v,children:(0,_.jsx)(q.Z,{children:(0,_.jsxs)(x.xu,{dangerouslySetInlineStyle:re,children:[(0,_.jsx)(D,{isOffline:m}),(0,_.jsx)(W.Z,{children:(0,_.jsx)(Ne,{})}),ae?(0,_.jsx)(x.xu,{as:"nav",children:(0,_.jsx)(C.ZP,{showDockedNavBar:Q,inUnauthVideosNavExp:ee,dockNavBarForAuthTablet:H})}):null,e,y&&(0,_.jsx)(Z,{location:t}),L&&"unknown"!==L&&(0,_.jsx)(E.Z,{name:"SafeSuspense_MobileApp_TwaPinterestLite",children:(0,_.jsx)(W.Z,{children:(0,_.jsx)(Oe,{})})})]})})})})})})}function ke({children:e}){const t=(0,a.useSelector)((({users:e})=>{const t=Object.keys(e).find((t=>void 0!==e[t].login_state));return t?e[t]:void 0}),a.shallowEqual),n=(0,i.useMemo)((()=>(0,ie.Z)(t)),[t]),r=(0,u.gf)(),{isAuth:o}=n;return(0,i.useEffect)((()=>{r({isAuthenticated:o})}),[o]),(0,_.jsx)(l.$,{value:n,children:e})}function Le({children:e}){const t=(0,u.B)(),n=(0,a.useSelector)((({session:e})=>e.appType)),r=(0,ye.p3)(),o=(0,i.useMemo)((()=>({loginContext:{appType:n,facebookToken:t.facebookToken,origin:t.origin,referrer:t.referrerFromCookie,unauthId:t.unauthId},logout:r})),[n,r,t.facebookToken,t.origin,t.referrerFromCookie,t.unauthId]);return(0,_.jsx)(ae.o_,{value:o,children:e})}function je({children:e}){const t=(0,Q.Z)();return(0,_.jsx)(_e.o,{value:t,children:e})}function Ue({children:e,clientContext:t}){const n=(0,s.ZP)(),i=(0,l.Z)();return"desktop"===n&&i.isAuth?(0,_.jsx)(ue.E,{value:t,children:e}):e}function Me({children:e,clientContext:t}){const n=(0,u.B)();(0,ee.Z)();const{isTablet:o,isMobile:l}=n.userAgent,d=o?"tablet":l?"phone":"desktop",c=(0,Ce.useLocation)(),p=(0,Ee.AF)(),h=(0,a.useSelector)((({session:e})=>e.isPWA)),m=(0,Re.yz)(),g=(0,Re.l5)(),v=(0,s.HG)(),E=(0,a.useSelector)((e=>e.session.isAuthenticated))&&v,S=(0,i.useMemo)((()=>(0,r.Z)({location:c,reduxPins:p,shouldExtractTrackingParams:E})),[c,p,E]);return(0,i.useEffect)((()=>{if(!E){const e=setInterval((()=>S.flushContextEvents()),1e4);return()=>{clearInterval(e)}}}),[S,E]),(0,te.Z)((()=>{var e;if(((e,t)=>{const{userAgent:{browserName:n,browserVersion:i},isAuthenticated:a}=e,r=parseInt(i,10),o=!!n&&n.includes("Chrome");window.addEventListener("beforeinstallprompt",(e=>a&&o&&r<=67?(B(e,t),!0):(e.preventDefault(),F=e,!1)))})(n,S.logContextEvent),e=S.logContextEvent,window.addEventListener("appinstalled",(t=>{(0,M.My)("mweb.homescreen_install.installed"),e({event_type:13,view_type:170,component:13126,element:10802})})),(0,Pe.yd)(S),(0,Pe.XK)((0,Y.Z)(S,E)),h){var t;const e=null!=m?m:"unknown",n=null!=g?g:"unknown",i="unknown"===e?null!==(t=(0,be.FB)(window))&&void 0!==t?t:"unknown":e;S.logContextEvent({view_type:170,view_parameter:(0,be.Kj)(i,n)||void 0,component:13162,event_type:102,aux_data:{pwa_type:i}})}k.Z.onSessionResume((()=>{E||(0,K.Z)(),w.Z.resume(),(0,Pe.jC)()})).onSessionPause((e=>{w.Z.pause(),(0,Y.Z)(S,E).unregisterApp(!1,!0,{type:"PageVisibility.onSessionResume.unregisterApp",pauseReason:e}),"blur"!==e&&(S.flushContextEvents(!0),(0,we.go)()||(0,re.Qi)())}))})),(0,_.jsx)(ke,{children:(0,_.jsx)(Le,{children:(0,_.jsx)(oe.B,{value:S,children:(0,_.jsx)(fe.j,{value:Y.Z,children:(0,_.jsx)(b,{children:(0,_.jsx)(I,{deviceType:d,children:(0,_.jsx)(pe.m,{children:(0,_.jsx)(je,{children:(0,_.jsx)(ge.l,{children:(0,_.jsx)(se.i5,{children:(0,_.jsxs)(De,{children:[(0,_.jsx)(Ue,{clientContext:t,children:(0,_.jsx)(Se.Z,{children:e})}),(0,_.jsx)(f,{}),(0,_.jsx)(y.Z,{})]})})})})})})})})})})})}var Fe=n(314919),Be=n(432300),Ge=n(176532),ze=n(483025),He=n(782677);function Ze({data:e,opts:{bookmark:t,options:n,schema:i},resource:a}){const r=((e,{bookmark:t,options:n,schema:i})=>{const a=i||ze.Z[e];return"function"==typeof a?a({resource:e,options:n,bookmark:t}):a})(a,{bookmark:t,options:n,schema:i});return{normalizedResponse:r&&e?(0,He.Fv)(e,r):null,resourceSchema:r}}function Ve(e,t){"VisualSearchFlashlightUnifiedResource"===e&&(t=t.results)}let We=!0;window.addEventListener("focus",(()=>We=!0)),window.addEventListener("blur",(()=>We=!1));const Ke=["ActiveUserResource","ActivateExperimentResource","ContextLogResource","UserRegisterTrackActionResource"];class Ye extends V.Z{constructor(e,t){if(super(e,t),this.isBackgroundSyncEnabled=((e,t)=>(0,we._P)()&&Ke.includes(e)&&!!t.id)(e,V.Z.initialUser),window)try{window.onunhandledrejection=()=>{}}catch(n){}}_call(e,t,n,i={}){this.abort();const[a,r]=this.getAjaxParams({async:t,headers:i,method:e,timeoutSeconds:n});return this._ajax(r,a)}_ajax(e,t){const{promise:n,abort:i}=(0,Ge.Z)(t);this.abortCallback=i;const a=!!(e&&e.options&&e.options.disable_auth_failure_redirect);return new Promise(((e,i)=>{n.then((e=>e.json().then((e=>({success:!0,data:e}))).catch((e=>({success:!1,error:e}))).then((t=>({res:e,parsed:t}))))).then((({res:n,parsed:r})=>{if(this.abortCallback=null,!r.success)return i({message:r.error.message,httpStatus:n.status}),void(this.shouldRedirectToLoginPage(n.status,a,t.url,void 0,this.getLoginState())&&this.redirectToLoginPage());const o=(0,Fe.Z)(r.data);o.originHost=n.headers.get("pinterest-generated-by")||void 0;const{error:s,data:l}=o.resource_response;if(s)if(this.shouldRedirectToLoginPage(s.http_status,a,t.url,s.api_error_code,this.getLoginState()))this.redirectToLoginPage();else if(401!==s.http_status||this.getLoginState()!==Be.Z.LIMITED||"UserSessionResource"===this.name||"CreateExternalInviteResource"===this.name||a){if(401===s.http_status&&2===s.api_error_code&&"/resource/UserSessionResource/delete/"===t.url)return void e(o)}else this.showLimitedLoginPrompt(t.url,s.api_error_code);if(n.ok){if(!s){if(l&&l.redirect_url){var d,c,u;let e=l.redirect_url;const n=String((null===(d=t.data)||void 0===d?void 0:d.source_url)||"");return n.match(/pin\/.+\/activity\/tried\/.+/)&&(e=n.replace(/\/pin\/.+\/(?=activity\/tried)/,e)),void i({message:null!==(c=null===(u=V.Z.i18n)||void 0===u?void 0:u._('Redirect', ' - ', ' -- '))&&void 0!==c?c:"Redirect",httpStatus:301,redirectUrl:e})}e(o)}}else if(s){const{message:e,message_detail:t,data:n,extra_data:a,http_status:r,api_error_code:o}=s;i({message:e,message_detail:t,data:n,extraData:a,httpStatus:r,api_error_code:o})}else i({message:n.statusText,httpStatus:n.status})})).catch((e=>{this.abortCallback=null,i(e)}))}))}}const qe=Object.freeze({"/settings/edit-profile":"unification_edit_profile_duplo","/":"web_unification_homefeed_and_pin_page","/homefeed":"web_unification_homefeed_and_pin_page","/pin/:id":"web_unification_homefeed_and_pin_page","/pin/:id/comments":"web_unification_homefeed_and_pin_page","/pin/:id/comments/:comment_id":"web_unification_homefeed_and_pin_page","/pin/:id/feedback":"web_unification_homefeed_and_pin_page","/pin/:id/sent":"web_unification_homefeed_and_pin_page","/pin/:id/share":"web_unification_homefeed_and_pin_page","/notifications":"web_unification_homefeed_and_pin_page","/search/:scope":"web_unification_search"});var $e=n(13748),Xe=n(914321),Je=n(630409),Qe=n(136586);Object.prototype.hasOwnProperty.call((0,he.mB)(window.location.search),"server_only")||(0,$e.Z)((async e=>{const{initialProps:t,requestContext:n,routeConfig:r,routeManifest:o,ssrIsEnabled:s}=e,{isAppShell:l}=t,d=await(0,Qe.w2)(t,s);!function({initialUser:e,requestContext:t}){V.Z.initialUser=e,V.Z.requestContext=t,V.Z.getWindowInFocus=()=>We,V.Z.normalizeResponse=Ze,V.Z.customDataManipulations=Ve,V.Z.setDefaultConstructorFn(Ye)}({requestContext:n,initialUser:t.context.user}),(0,Qe.QK)(n,d),(0,Qe.sE)(n,t.context.user.is_partner,t.traceLoggerData),(0,Qe.Wx)(n,d,l);const{isAuthenticated:c,userAgent:{isMobile:u,isTablet:p}}=n,h=!p&&!u;return(0,Se.e)({isAuthenticated:c,isDesktop:h}).preload(),({children:e})=>{const s=(0,Ce.useHistory)();return(0,i.useEffect)((()=>{c&&h&&"duploUnified"===t.target&&s.block((e=>{const t=r.find((({route:t})=>(0,Ce.matchPath)(e.pathname,{path:t,exact:!0}))),i=null==t?void 0:t.route;let a;if(c){let e=!1;e=!t||!o[t.filePath]||o[t.filePath].dependencies.some((e=>e.includes("-authdesktop")||e.includes("-mobile"))),n.experimentsClient.checkExperiment("web_duplo_default").anyEnabled&&(e=!1),a=!e||!!i&&function(e,t){const n=qe[e];if(n)return t.checkExperiment(n).anyEnabled;return!1}(i,n.experimentsClient)}else a=!(!i||i.startsWith("/html_sitemap/")&&!h);if(a)return!0;R.Z.increment("webapp.unauthUnification.blockedClientNavigation",1,{currentRoute:i,destination:(null==t?void 0:t.route)||"unknown"});const l=s.createHref(e);return window.location=l,!1}))}),[]),(0,i.useEffect)((()=>{const{isCachedRender:e}=d.getState().session;e&&(async()=>{const e=new URLSearchParams({source_url:window.location.pathname,target:t.target}),n=await window.fetch("/_/_/state?"+e.toString(),{method:"GET",mode:"same-origin",keepalive:!0}),i=await n.json();d.dispatch({type:"REPLACE_STATE",payload:i}),d.dispatch({type:"FETCH_EXPERIENCES",payload:i.experiences})})()}),[]),(0,_.jsx)(a.Provider,{store:d,serverState:t.initialReduxState,children:(0,_.jsx)(Je.Z,{copytuneExperiments:t.copytuneExperiments,inContextTranslation:t.inContextTranslation,locale:t.locale,requestContext:n,traceLoggerData:t.traceLoggerData,children:(0,_.jsx)(Xe.Z,{pwaContext:t.pwaContext,children:(0,_.jsx)(Me,{clientContext:t.context,children:e})})})})}}))},616595:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(172071);class a extends Error{constructor(...e){var t,n,i;super(...e),i="LoaderError",(n="name")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}}e=n.hmd(e);const r=e=>/webapp\/.*\.m?js$/.test(e),o=e=>/webapp\/.*\.css$/.test(e);function s(e){return e.reduce(((e,t)=>{if(t.encodedBodySize){const n=t.encodedBodySize/1e3;r(t.name)?e.scriptSize+=n:o(t.name)&&(e.styleSize+=n)}return e}),{scriptSize:0,styleSize:0})}async function l({browserType:e,didLoadNewFiles:t,files:n,handlerId:a,isAuthenticated:r,isInitialLoad:o,isMobile:s}){const l={browserType:e,didLoadNewFiles:t,handler:a,isAuthenticated:r,isInitialLoad:o,isMobile:s,serviceWorker:navigator.serviceWorker&&navigator.serviceWorker.controller?"true":"false"};if(i.Z.count("web.logCacheHits",1,1,l),window.performance&&window.performance.getEntriesByType){let e=[];e=o?window.performance.getEntriesByType("resource"):window.performance.getEntriesByType("resource").filter((e=>Boolean(n.find((t=>e.name.endsWith(t))))));const a=await function({isInitialLoad:e,didLoadNewFiles:t}){const n={isInitialLoad:e,didLoadNewFiles:t};return navigator.serviceWorker&&navigator.serviceWorker.controller?new Promise(((e,t)=>{var a,r;const o=new MessageChannel,s=Date.now();i.Z.count("web.serviceWorkerCacheData.getCacheHitData",1,1,n),o.port1.onmessage=function({data:a}){if(a&&a.error)t(a.error);else if(i.Z.timing("web.serviceWorkerCacheData.receiveCacheHitData",Date.now()-s,1,n),Array.isArray(a)){a&&a.length>0?i.Z.count("web.serviceWorkerCacheData.receiveCacheHitData.nonEmpty",1,1,n):i.Z.count("web.serviceWorkerCacheData.receiveCacheHitData.empty",1,1,n);const t=a.reduce(((e,t)=>"string"==typeof t?[...e,t]:e),[]);e(t)}else i.Z.count("web.serviceWorkerCacheData.receiveCacheHitData.nonArray",1,1,n),e([])},null===(a=navigator.serviceWorker)||void 0===a||null===(r=a.controller)||void 0===r||r.postMessage({name:"getCacheHitData"},[o.port2])})):Promise.resolve([])}({isInitialLoad:o,didLoadNewFiles:t}),{numScripts:r,localCacheHits:s,serviceWorkerCacheHits:d,noServiceWorkerLocalCacheMisses:c}=function(e,t){let n=0,i=0,a=0,r=0;return e.forEach((e=>{if(/\.mjs$/.test(e.name)){const o=e.name.substr(e.name.lastIndexOf("/")+1);n+=1,"number"==typeof e.transferSize&&e.transferSize>0?i+=1:0===e.transferSize&&t.includes(o)?a+=1:0===e.transferSize&&e.responseEnd-e.requestStart<100&&(r+=1)}})),{numScripts:n,localCacheHits:r,serviceWorkerCacheHits:a,noServiceWorkerLocalCacheMisses:i}}(e,a);"number"==typeof r&&i.Z.gauge("pws.clientLoader.scripts.numScripts",r,1,l),"number"==typeof s&&i.Z.gauge("pws.clientLoader.scripts.localCacheHits",s,1,l),"number"==typeof d&&i.Z.gauge("pws.clientLoader.scripts.serviceWorkerCacheHits",d,1,l),"number"==typeof c&&i.Z.gauge("pws.clientLoader.scripts.noServiceWorkerLocalCacheMisses",c,1,l)}}function d({isAuthenticated:e,isMobile:t,manifest:n,site:d}){const c="noModule"in document.createElement("script"),u={},_={};let p=!0;async function h(u){let h=!1;const m=`${d}/${u}`,{css:g,js:v,mjs:f}=n[u].dependencies.reduce(((e,t)=>{const n=t.split(".").pop();if(!e[n])throw new a(`Unsupported extension ${n} encountered: ${t}`);return e[n].add(t),e}),{css:new Set,js:new Set,mjs:new Set});const y=[...g,...f.size>0?f:v],E=f.size>0?"modern":"legacy";await Promise.all(y.map((async e=>{/\.m?js$/.test(e)&&!document.querySelector(`script[src^="${e}"]`)?(_[e]=function(e){const{head:t}=document;if(!t)throw new a("document.head is undefined");return new Promise(((n,i)=>{const a=/\.mjs$/.test(e),r=document.createElement("script");r.crossOrigin="anonymous",r.charset="utf-8",r.onload=n,r.onerror=i,r.src=e,a&&(r.type="module"),t.appendChild(r)}))}(e),h=!0):/\.css$/.test(e)&&!document.querySelector(`link[rel=stylesheet][href^="${e}"]`)&&(_[e]=function(e){const{head:t}=document;if(!t)throw new a("document.head is undefined");return new Promise(((t,n)=>{const{head:i}=document;if(!i)throw new a("document.head is undefined");const r=document.createElement("link");r.crossOrigin="anonymous",r.rel="stylesheet",r.href=e,r.onload=t,r.onerror=n,i.appendChild(r)}))}(e),h=!0),_[e]&&(await _[e],delete _[e])}))),l({browserType:E,handlerId:m,didLoadNewFiles:h,isAuthenticated:e,isMobile:t,isInitialLoad:p,files:y}),p&&(!function({browserType:e,isAuthenticated:t,isMobile:n,handlerId:a}){if(window.performance&&window.performance.getEntriesByType){const l=.1,d={browserType:e,handler:a,isAuthenticated:t,isMobile:n},c=window.performance.getEntriesByType("resource").filter((e=>r(e.name)&&!/locale-/.test(e.name)||o(e.name))),{scriptSize:u,styleSize:_}=s(c);u&&i.Z.gauge("pws.clientLoader.initialPageLoad.scripts",u,l,d),_&&i.Z.gauge("pws.clientLoader.initialPageLoad.styles",_,l,d)}}({browserType:E,handlerId:m,isAuthenticated:e,isMobile:t}),p=!1),h&&function({browserType:e,files:t,isAuthenticated:n,isMobile:a,handlerId:r}){if(window.performance&&window.performance.getEntriesByType){const o=window.performance.getEntriesByType("resource").filter((e=>Boolean(t.find((t=>e.name.endsWith(t)))))),l=.1,d={browserType:e,handler:r,isAuthenticated:n,isMobile:a},{scriptSize:c,styleSize:u}=s(o);c&&i.Z.gauge("pws.clientLoader.clientNavigation.scripts",c,l,d),u&&i.Z.gauge("pws.clientLoader.clientNavigation.styles",u,l,d)}}({browserType:E,handlerId:m,isAuthenticated:e,isMobile:t,files:y}),(c&&0===f.size||!c&&f.size>0)&&i.Z.increment("pws.clientLoader.moduleSupportMismatch",1,{assetType:f.size>0?"mjs":"js",hasModuleSupport:c});const S=window.__PWS_LOADED_HANDLERS__[m.replace(/.js$/,"")];if(!S)throw new a(`Unable to load module for handler: ${m}`);return S()}async function m(e){if("file:"!==e.protocol)throw new a(`Protocol ${e.protocol} not supported.`);e.hostname=d;const t=e.pathname.substring(1),r=`${d}/${t}`;try{if(!u[t]){n[t];0,u[t]=h(t)}const e=await u[t];return u[t]=e,e}catch(o){delete u[t],i.Z.increment("webapp.clientLoader.fail",1,{error:o.name,handler:r});const e=new a(o.message);throw e.stack=o.stack,e}}async function g(e){try{await m(e)}catch(t){}}return{loadFromCache(e){if("file:"!==e.protocol)throw new a(`Protocol ${e.protocol} not supported.`);const t=e.pathname.substring(1);if(!u[t])return g(e),null;const n=u[t];return"object"==typeof n&&"function"==typeof n.then?null:n},load:m,preload:g}}},155807:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(826067),a=n(628551);function r({handler:e,queryName:t}){return{Accept:"application/json","Content-Type":"application/json","X-CSRFToken":(0,a.getCsrfToken)(),"X-Requested-With":"XMLHttpRequest","X-Pinterest-Source-Url":(0,i.JJ)(),"X-Pinterest-GraphQL-Name":t,...e?{"X-Pinterest-PWS-Handler":e}:null}}},66749:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(479218);function a(){const e=new i.H("/resource/StatsLogResource/create/","StatsLogResource",(e=>({source:"browser",stats:e})),5e3);return{log:(t,n,i,a={})=>{const{sampleRate:r=.1,tags:o={}}=a,s=[t,n,i,r,o];e.enqueue(s)}}}},67347:(e,t,n)=>{n.d(t,{LY:()=>r,nP:()=>a});const i=(0,n(66749).Z)();function a(e,t){i.log(e,1,"c",t)}function r(e,t,n){i.log(e,t,"ms",n)}},705064:(e,t,n)=>{n.d(t,{w:()=>a,u:()=>o});var i=n(425288);const{Provider:a,useHook:r}=(0,i.Z)("HandlerId");function o(){return function(e){const[t,n]=e.split(/\/(.*)+/);return{filepath:n,site:t}}(r()).site}},597897:(e,t,n)=>{n.d(t,{U:()=>r,Z:()=>o});var i=n(667294);const a=(0,i.createContext)();function r(){return(0,i.useContext)(a)}const o=a},854750:(e,t,n)=>{n.d(t,{Z:()=>r});const i=["af_ZA","ar_SA","bg_BG","bn_IN","cs_CZ","da_DK","de","el_GR","en_AU","en_GB","en_IN","es_419","es_AR","es_ES","es_MX","fi_FI","fr","he_IL","hi_IN","hr_HR","hu_HU","id_ID","it","ja","ko_KR","ms_MY","nb_NO","nl","pl_PL","pt_BR","pt_PT","ro_RO","ru_RU","sk_SK","sv_SE","te_IN","th_TH","tl_PH","tr","uk_UA","vi_VN","zh_CN","zh_TW"];function a(e){var t;return null!==(t=null==e?void 0:e.split("-").join("_"))&&void 0!==t?t:""}function r(e){return!!i.includes(a(e))}},13748:(e,t,n)=>{n.d(t,{Z:()=>q});var i=n(667294),a=n(973935),r=n(125203);function o(e){e||(e={});const{active_experiments:t,triggerable_experiments:n}=e,i="boolean"==typeof e.batch_exp&&e.batch_exp,a=new r.Z(t,n,i);{const t="string"==typeof e.experiment_hash?e.experiment_hash:"";a.latestExperimentHashFromServer=t}return{experimentsClient:a}}var s=n(883119),l=n(597897),d=n(785893);function c(e){const t=function(e){var t;const n=(0,l.U)(),a=new URL(e,"file://"),r=(0,i.useRef)(e),[o,s]=(0,i.useState)({Comp:null==n||null===(t=n.loadFromCache)||void 0===t?void 0:t.call(n,a)}),[d,c]=(0,i.useState)(),{Comp:u}=o;if((0,i.useEffect)((()=>{if(r.current!==e||!u){var t;r.current=e;const i=new URL(e,"file://"),a=null==n||null===(t=n.loadFromCache)||void 0===t?void 0:t.call(n,i);a||(async()=>{try{const e=await(null==n?void 0:n.load(i));e&&s({Comp:e})}catch(e){c(e)}})(),a!==u&&s({Comp:a})}}),[u,e,n]),d)throw d;return u}(e.filePath);return t?(0,d.jsx)(t,{...e.routeProps}):(0,d.jsx)(s.$j,{accessibilityLabel:"Loading....",show:!0})}var u=n(616595),_=n(319915);Error;Error;class p extends Error{constructor(e){super(`Unexpected nested index.js found at "${e}". Create a file with the name for the path that you want instead "${e.replace(/index\.js$/,"")}.js"`)}}function h(e){if("index.js"===e)return"/";if(e.match(/index\.js$/))throw new p(e);return`/${e.replace(/.js$/,"").split("/").map((e=>e.replace(/\[(.*)\]/,":$1"))).join("/")}`}var m=n(395164),g=n(543059),v=n(172071);function f(e=3){var t;const i={},a=new Set,r=n.e;async function o({chunkId:t,retriesLeft:n,timeout:s}){const l=Date.now();try{await r(t),delete i[t],a.delete(t),v.Z.timing("webapp.chunkLoad.success",Date.now()-l,.1,{tries:e-n,name:t})}catch(m){if(a.add(t),v.Z.timing("webapp.chunkLoad.error",Date.now()-l,.1,{name:t,retriesLeft:n}),n<=0)throw v.Z.timing("webapp.chunkLoad.fail",Date.now()-l,.1,{name:t}),delete i[t],m;await o({chunkId:t,retriesLeft:n-1,timeout:2*s})}}if(n.e=async function(t){i[t]||(i[t]=o({chunkId:t,retriesLeft:e-1,timeout:500})),await i[t]},null!==(t=n.f)&&void 0!==t&&t.prefetch){const e=n.f.prefetch;n.f.prefetch=async function(t,n){try{await e(t,n)}catch(i){if(!a.has(t))throw i;v.Z.increment("webapp.chunkLoad.duplicateError",1,{name:t})}}}}class y extends Error{constructor(...e){var t,n,i;super(...e),i="PlatformError",(n="name")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}}var E=n(464228),S=n(155807),T=n(226198),I=n(314880),x=n(244311),P=n(67347);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class A extends Error{constructor(...e){super(...e),b(this,"name","GraphQLFetchError"),b(this,"extraData",{})}}var w=n(742816),R=n(473727);function C({children:e,initialLocation:t}){return(0,d.jsx)(R.VK,{children:(0,d.jsx)(w.tn,{children:e})})}function O(e){return Boolean(e.match(/\[[\w]+\]/))}function N(e){return(e.match(/\./g)||[]).length}function D(e,t){if(e.length!==t.length)return e.lengthr?-1:a{(0,U.TA)(e)}));let V=!0;function W(e){return e.replace(/([^a-zA-Z0-9\-_/])/g,"_")}function K({children:e,handlerId:t,isAuthenticated:n,isMobile:a}){const r=(0,H.useLocation)();return(0,i.useEffect)((()=>{(0,I.V)(t),(0,P.nP)("webapp.request.client",{tags:{handler:W(t),isAuthenticated:n,isInitialLoad:V,isMobile:a}}),V&&(V=!1)}),[t,n,a,r]),e}let Y=!1;async function q(e){var t;if("webcache.googleusercontent.com"===(null===(t=window.location)||void 0===t?void 0:t.hostname))return;(0,g.ZP)("initialAppLoad"),f();const n=document.getElementById(B.DC);if(n){const{message:e,stack:t}=JSON.parse(n.textContent),i=new y(e);throw i.stack=t,i}const r=document.getElementById(B.gD);if(!r)throw new y(`#${B.gD} not found in DOM. Can't start app.`);const{appVersion:p,handlerProps:m,initialHandlerId:v,isAuthenticated:b,isBot:w,props:R,isMobile:O,isStrictModeEnabled:N,isUnderpoweredDevapp:U,renderMode:V,routeManifest:q,site:$}=JSON.parse(r.textContent);if(!q)throw new y("routeManifest could not be found. Can't start app");const X=document.getElementById(B.dV);if(!X)throw new y(`#${B.dV} not found in DOM. Can't start app.`);(function({currentAppVersion:e,deviceType:t,site:n}){const i=window.fetch;window.fetch=async(...a)=>{const r=a[0],o="string"==typeof r&&r.startsWith("/"),s=await i(...a);return o&&(s.headers.get("pinterest-version")===e||Y||((0,P.nP)("pws.renderClient.newVersionAvailable",{sampleRate:1,tags:{deviceType:t,site:n}}),Y=!0)),s}})({currentAppVersion:p,deviceType:O?"mobile":"desktop",site:$});const J="legacy"!==V,Q=document.getElementById(B.go),ee=(te=Q?JSON.parse(Q.textContent):{},new x.Environment({network:x.Network.create((async function(e,t){const n=Date.now(),i=(0,I.H)(),a=document.cookie.match(new RegExp("\\b"+T.fS.name+"=.+?($|;)","g")),r=(0,S.Z)({handler:i,queryName:e.name});try{const a=await fetch("/_/graphql/",{credentials:"include",method:"POST",headers:r,body:JSON.stringify({queryHash:e.id,variables:t})});return(0,P.LY)("pws.graphql.fetchQueryClient.request",Date.now()-n,{sampleRate:1,tags:{handler:null!=i?i:"unknown",queryName:e.name,status:a.status}}),await a.json()}catch(s){var o;const t=new A(s.message);throw t.stack=s.stack,t.extraData={csrfCookies:null!==(o=null==a?void 0:a.join(";"))&&void 0!==o?o:"unknown",requestHeaders:r},(0,P.nP)("pws.graphql.fetchQueryClient.networkError",{sampleRate:1,tags:{handler:i,queryName:e.name}}),t}})),store:new x.Store(new x.RecordSource(te))}));var te;const ne={sampleRate:1,tags:{handler:v?v.replace(/([^a-zA-Z0-9\-_/])/g,"_"):"unknown",isAuthenticated:b,isBot:w,isMobile:O,renderMode:V,useReact18Stream:J}};(0,z.Tx)((({value:e})=>(0,P.LY)("pws.renderClient.fid",e,ne))),(0,z.Tb)((({value:e})=>(0,P.LY)("pws.renderClient.lcp",e,ne))),(0,z.Y)((({value:e})=>(0,P.LY)("pws.renderClient.fcp",e,ne))),(0,z.CA)((({value:e})=>(0,P.LY)("pws.renderClient.ttfb",e,ne)));const ie=X.hasChildNodes(),ae=(re=await(async({routeManifest:e,site:t})=>Object.keys(e))({routeManifest:q,site:$}),re.concat().sort(((e,t)=>D(`/${e}/`.split("/").filter(Boolean),`/${t}/`.split("/").filter(Boolean))))).map((e=>({filePath:e,route:h(e)})));var re;const oe=(0,u.Z)({isAuthenticated:b,isMobile:O,manifest:q,site:$}),se=e=>oe.load(new URL(e,"file://")),le=function(e){const{context:t,context:{user:n={}}}=e;return{advertiser:t.advertiser?t.advertiser:null,appTypeDetailed:t.app_type_detailed,country:t.country,countryFromHostName:t.country_from_hostname,countryFromIp:t.country_from_ip,deepLink:t.deep_link,experimentsClient:e.experimentsClient,facebookToken:t.facebook_token,fullPath:t.full_path,inviteCode:t.invite_code,isAmp:!1,isAuthenticated:t.is_authenticated,isBot:"true"===t.is_bot,isInternalIP:t.is_internal_ip,isManagedAdvertiser:t.is_managed_advertiser,isRTL:"rtl"===t.text_direction,isSocialBot:!!t.social_bot,language:t.language,legacyAdvertiser:null,locale:t.locale,loginState:n.login_state||void 0,origin:t.origin,referrerFromCookie:t.referrer,regionFromIp:t.region_from_ip,requestIdentifier:t.request_identifier,stage:t.stage,sterlingOnSteroidsLdap:t.sterling_on_steroids_ldap,unauthId:t.unauth_id,userAgent:{browserName:t.browser_name,browserType:t.browser_type,browserVersion:t.browser_version,canUseNativeApp:t.user_agent_can_use_native_app,isTablet:t.is_tablet_agent,isMobile:t.is_mobile_agent,platform:t.user_agent_platform,platformVersion:t.user_agent_platform_version&&3===t.user_agent_platform_version.length?t.user_agent_platform_version:[0,0,0],osName:t.analysis_ua?t.analysis_ua.os_name:"",raw:t.user_agent}}}({context:R.context,experimentsClient:o(R.context).experimentsClient});(0,F.J)(le),(0,j.DG)(le),(0,k.cleanUpCookie)();const de=e({initialProps:R,requestContext:le,routeConfig:ae,routeManifest:q,ssrIsEnabled:ie});let ce=null;const ue=ae.find((({route:e})=>(0,H.matchPath)(window.location.pathname,{path:e,exact:!0})));if(ue){const{filePath:e}=ue,t=`${$}/${e}`;(0,I.V)(t);const n=se(e);ie&&(ce={handlerId:t,handlerProps:m,routeComponentPromise:n})}const _e=await Promise.all(ae.map((async({filePath:e,route:t})=>{var n;const a=`${$}/${e}`;let r;const o=(null===(n=ce)||void 0===n?void 0:n.handlerId)===a?ce:null;var l;if(J)o&&await o.routeComponentPromise,r=(0,d.jsx)(c,{filePath:e,routeProps:null!==(l=null==o?void 0:o.handlerProps)&&void 0!==l?l:void 0},t);else if(o){const e=await o.routeComponentPromise;r=(0,i.createElement)(e,{...o.handlerProps,key:t})}else{const n=(0,i.lazy)((async()=>({default:await se(e)})));r=(0,d.jsx)(i.Suspense,{fallback:(0,d.jsx)(s.xu,{padding:5,children:(0,d.jsx)(s.$j,{accessibilityLabel:"Loading....",show:!0})}),children:(0,d.jsx)(n,{},t)})}const u=await de;return(0,d.jsx)(H.Route,{exact:!0,path:t,children:(0,d.jsx)(L.w,{value:a,children:(0,d.jsxs)(u,{children:[null,(0,d.jsx)(K,{handlerId:a,isAuthenticated:b,isMobile:O,children:(0,d.jsx)(_.Z,{name:a,type:"critical",children:r})})]})})},"route")})));let pe=(0,d.jsx)(E.Z.Provider,{value:V,children:(0,d.jsx)(M.RelayEnvironmentProvider,{environment:ee,children:(0,d.jsx)(l.Z.Provider,{value:oe,children:(0,d.jsx)(C,{initialLocation:new URL(window.location.href),children:(0,d.jsx)(H.Switch,{children:_e})})})})});if(J?pe=(0,d.jsx)(i.Suspense,{children:pe}):N&&(pe=(0,d.jsx)(i.StrictMode,{children:pe})),(0,g.ZP)("RenderReactContainer"),ie)await Z,(0,P.LY)("pws.renderClient.hydrate",performance.now(),ne),J?(0,G.a)(X,pe,{onRecoverableError:e=>{(0,P.nP)("pws.renderClient.onRecoverableError",{tags:{error:W(e.message),handler:v?W(v):"unknown",isAuthenticated:b,isBot:w,isMobile:O}})}}):(0,a.hydrate)(pe,X);else if((0,P.LY)("pws.renderClient.render",performance.now(),ne),J){(0,G.s)(X).render(pe)}else(0,a.render)(pe,X)}},310434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.exports=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i=0||(a[n]=e[n]);return a},e.exports.__esModule=!0,e.exports.default=e.exports}},e=>{e.O(0,[97270,83119,67631,60299,76775,81728,98054,45893],(()=>{return t=674857,e(e.s=t);var t}));e.O()}]); //# sourceMappingURL=https://sm.pinimg.com/webapp/www/_client-mobile-b1588a565c737318.mjs.map