banko-ai-assistant 1.0.0__py3-none-any.whl → 1.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- banko_ai/static/creditcard_files/0dbda187ceb472a466dff54b7015b1d4.jpg +0 -0
- banko_ai/static/creditcard_files/10903-7f8736e237ced107.mjs +2 -0
- banko_ai/static/creditcard_files/10966-809952783184ae4b.mjs +4 -0
- banko_ai/static/creditcard_files/13351-8a7dda060266efff.mjs +2 -0
- banko_ai/static/creditcard_files/1342-c79d3d17da82f23c.mjs +11 -0
- banko_ai/static/creditcard_files/16142-bdecf7bfdd6d70ae.mjs +2 -0
- banko_ai/static/creditcard_files/16550-e89f65017860221d.mjs +2 -0
- banko_ai/static/creditcard_files/17492-942c70b114fdcce1.mjs +10 -0
- banko_ai/static/creditcard_files/18352-481d67e871cc6985.mjs +2 -0
- banko_ai/static/creditcard_files/18555-0d9763eb744f7a77.mjs +2 -0
- banko_ai/static/creditcard_files/19437-575ba467ea85e866.mjs +2 -0
- banko_ai/static/creditcard_files/1aca1669c3b4a07f0966c4733c939d6d.jpg +0 -0
- banko_ai/static/creditcard_files/20126-602c15db592cf3c4.mjs +26 -0
- banko_ai/static/creditcard_files/20224-b6de2c08cc8ad497.mjs +66 -0
- banko_ai/static/creditcard_files/2029a63f9af76541f860b6a6a4ec0c90.jpg +0 -0
- banko_ai/static/creditcard_files/21662-1214728138c72aa2.css +1 -0
- banko_ai/static/creditcard_files/22517-5f7ab2631d424b77.mjs +9 -0
- banko_ai/static/creditcard_files/23019-be3b8956cee94725.mjs +2 -0
- banko_ai/static/creditcard_files/26067-cb77f2673c5f757c.mjs +2 -0
- banko_ai/static/creditcard_files/27405-880a12623820964d.mjs +9 -0
- banko_ai/static/creditcard_files/27503-82078c18034012ed.mjs +38 -0
- banko_ai/static/creditcard_files/28090-8e4b5fd6c88f8eb2.mjs +6 -0
- banko_ai/static/creditcard_files/2c66dacf04db64cc1099835f2e2328d5.jpg +0 -0
- banko_ai/static/creditcard_files/30090868cb2b559a7093999fec5fbcc8.jpg +0 -0
- banko_ai/static/creditcard_files/30102-608e861dccc907f1.mjs +2 -0
- banko_ai/static/creditcard_files/31600-ca2e152d871d51d5.mjs +2 -0
- banko_ai/static/creditcard_files/31d5156a9cc5fe5fd780c2d9e59db98f.jpg +0 -0
- banko_ai/static/creditcard_files/34713-54729fd9c7517d50.mjs +2 -0
- banko_ai/static/creditcard_files/35074-d765c14dc3e8eafc.mjs +77 -0
- banko_ai/static/creditcard_files/38230-4d6eb1a608eecdeb.mjs +7 -0
- banko_ai/static/creditcard_files/40566-e2dbb4226dd2ab42.mjs +6 -0
- banko_ai/static/creditcard_files/42298-668aa166e1146c6c.mjs +2 -0
- banko_ai/static/creditcard_files/43203-3a1e46e5259313c8.mjs +14 -0
- banko_ai/static/creditcard_files/44429-6534f772a6bd895b.mjs +13 -0
- banko_ai/static/creditcard_files/48327-48fb70091d7ac731.mjs +2 -0
- banko_ai/static/creditcard_files/49923-dc71193d54a0b99c.mjs +2 -0
- banko_ai/static/creditcard_files/49c3cac3c5a09ca104a2efea48536d14.jpg +0 -0
- banko_ai/static/creditcard_files/50040-3c27b1fe14ca588b.mjs +2 -0
- banko_ai/static/creditcard_files/5047473e06297bbccfae9c43ca36bd93.jpg +0 -0
- banko_ai/static/creditcard_files/51531-253e8d8f8f527d9c.mjs +26 -0
- banko_ai/static/creditcard_files/58103-d6be57f2d624e7b4.mjs +2 -0
- banko_ai/static/creditcard_files/58822-d1779ebe9d4fab59.mjs +51 -0
- banko_ai/static/creditcard_files/61b440e4366b35d7213172be53d3864e.jpg +0 -0
- banko_ai/static/creditcard_files/61d121a699367070f3988f633ed6ac7d.jpg +0 -0
- banko_ai/static/creditcard_files/65610-15f55d146aa3cc6f.mjs +2 -0
- banko_ai/static/creditcard_files/65662-2b7065d2ddcf6a0c.mjs +2 -0
- banko_ai/static/creditcard_files/67631-9d4d7f4aab06e79c.mjs +2 -0
- banko_ai/static/creditcard_files/68445-8aae26e83c03d9bc.mjs +7 -0
- banko_ai/static/creditcard_files/6863-da15e99ca946f07a.mjs +2 -0
- banko_ai/static/creditcard_files/71526-518cf6126a32651b.mjs +2 -0
- banko_ai/static/creditcard_files/72268-8f69a6e8585b9af2.mjs +2 -0
- banko_ai/static/creditcard_files/76f1a52015cf2a243ed085586f3d44e8.jpg +0 -0
- banko_ai/static/creditcard_files/80538-65bd348271403336.mjs +2 -0
- banko_ai/static/creditcard_files/81505-387f6ddb644ae967.mjs +38 -0
- banko_ai/static/creditcard_files/8151-1a0cf04ea45ad513.mjs +2 -0
- banko_ai/static/creditcard_files/83119-1cf7ca2f5ba0e1ab.mjs +9 -0
- banko_ai/static/creditcard_files/83485-27ce97f9e7369ed7.mjs +5 -0
- banko_ai/static/creditcard_files/8575-e1977ceb3b34da9c.mjs +2 -0
- banko_ai/static/creditcard_files/8962-664b3c9b21ec2e0f.mjs +2 -0
- banko_ai/static/creditcard_files/90123-40fd5c2d5dc1c0a1.mjs +2 -0
- banko_ai/static/creditcard_files/91846-55cc5635c18159a0.mjs +47 -0
- banko_ai/static/creditcard_files/91936-56d11562a38b3f77.mjs +2 -0
- banko_ai/static/creditcard_files/96833-fbcb1ab8436924d4.mjs +36 -0
- banko_ai/static/creditcard_files/99246-889e96fc0a42e07a.mjs +2 -0
- banko_ai/static/creditcard_files/99961-ee8d9a1207a9db7a.mjs +2 -0
- banko_ai/static/creditcard_files/DefaultPinRep-78e567622e9cb382.mjs +27 -0
- banko_ai/static/creditcard_files/DesktopUnauthPageWrapper-26b3c2c050f09d27.css +1 -0
- banko_ai/static/creditcard_files/DesktopUnauthPageWrapper-a120f0b0faa773a2.mjs +252 -0
- banko_ai/static/creditcard_files/KkWFeSURekXGycdprVC-UY6ED-ZF5ll2JCMiHhJE2Rk.js +1 -0
- banko_ai/static/creditcard_files/MobileAndUnauthPinPage-0083f61f79e906d2.mjs +400 -0
- banko_ai/static/creditcard_files/UnauthCloseupRelatedPins-d98c713ac2e141a7.mjs +2 -0
- banko_ai/static/creditcard_files/[id]-87f8f6f1f81e3a8a.mjs +2 -0
- banko_ai/static/creditcard_files/_client-49638f60bdf5658e.mjs +43 -0
- banko_ai/static/creditcard_files/a7ee24644496b7a3131cd4e13b8c6edb.jpg +0 -0
- banko_ai/static/creditcard_files/a8ada9395c00dffc8fb81a7b76bd34b5.jpg +0 -0
- banko_ai/static/creditcard_files/abbf5a82906bef8c6be49ab38eaeea7c.jpg +0 -0
- banko_ai/static/creditcard_files/ad910641231bb413f6a985e4e9961efb.jpg +0 -0
- banko_ai/static/creditcard_files/anchor.html +186 -0
- banko_ai/static/creditcard_files/b6083df3cfa26856caef114c51a8d21e.jpg +0 -0
- banko_ai/static/creditcard_files/b957829ac112a8c28b313307e5ff0df6.jpg +0 -0
- banko_ai/static/creditcard_files/bb2d3d28e3421d901d8d431c33f0c6ed.jpg +0 -0
- banko_ai/static/creditcard_files/bb2d3d28e3421d901d8d431c33f0c6ed.png +0 -0
- banko_ai/static/creditcard_files/c3031b4a938377789e00d3d2f3b2438c.jpg +0 -0
- banko_ai/static/creditcard_files/client +300 -0
- banko_ai/static/creditcard_files/ct.html +3 -0
- banko_ai/static/creditcard_files/d03e6db9649ea3479b799d5a21008ac2.jpg +0 -0
- banko_ai/static/creditcard_files/d3d38fd9aa0c808a28ff5bd9ae5b5576.jpg +0 -0
- banko_ai/static/creditcard_files/de7cb9e198b4ebc9430824132ccfce2e.jpg +0 -0
- banko_ai/static/creditcard_files/e4330b4a4e71a3f77dd0682b99037cad.jpg +0 -0
- banko_ai/static/creditcard_files/ecdf72d4d54e70608e9416020f8ad67d.jpg +0 -0
- banko_ai/static/creditcard_files/eef64355b9f10e89c355b138adbae1e9.jpg +0 -0
- banko_ai/static/creditcard_files/enterprise.js +1 -0
- banko_ai/static/creditcard_files/f1354f6bb993409ea12235a01a978936.jpg +0 -0
- banko_ai/static/creditcard_files/f7c30e2615fe0e57d9ab6e41aac5e738.jpg +0 -0
- banko_ai/static/creditcard_files/fa72fa1ae9bb3ec93f41595333d22d16.jpg +0 -0
- banko_ai/static/creditcard_files/fb09ce3b0feb4931402867cf109cd618.jpg +0 -0
- banko_ai/static/creditcard_files/i +0 -0
- banko_ai/static/creditcard_files/locale-en_US-lite-js-d0d346142714beb1.mjs +2 -0
- banko_ai/static/creditcard_files/login-3c695aa28fdc27a5.mjs +161 -0
- banko_ai/static/creditcard_files/login-e161a84cea9cd0a3.css +1 -0
- banko_ai/static/creditcard_files/packages-rich-snippet-LeafSnippet-b7f61038a4431021.mjs +2 -0
- banko_ai/static/creditcard_files/polyfills-c5ca6e711f8975ec.mjs +2 -0
- banko_ai/static/creditcard_files/recaptcha__en.js +1011 -0
- banko_ai/static/creditcard_files/repin-62bbd4d7c8e22f17.css +1 -0
- banko_ai/static/creditcard_files/repin-d49f19d89ddd3cbe.mjs +292 -0
- banko_ai/static/creditcard_files/runtime-505e4380476a458b.mjs +2 -0
- banko_ai/static/creditcard_files/saved_resource(1).html +7 -0
- banko_ai/static/creditcard_files/saved_resource(2).html +3 -0
- banko_ai/static/creditcard_files/saved_resource.html +3 -0
- banko_ai/static/creditcard_files/sdk(1).js +22 -0
- banko_ai/static/creditcard_files/sdk.js +228 -0
- banko_ai/static/creditcard_files/select.html +387 -0
- banko_ai/static/creditcard_files/style +1 -0
- banko_ai/static/creditcard_files/styles__ltr.css +1 -0
- banko_ai/static/creditcard_files/unnamed.jpg +0 -0
- banko_ai/static/creditcard_files/vendor-react-76e71fd67c83934b.mjs +54 -0
- banko_ai/static/creditcard_files/visual-search-fe95849c7568d600.mjs +123 -0
- banko_ai/static/css/style.css +1274 -0
- banko_ai/templates/dashboard.html +5 -5
- banko_ai/templates/index.html +6 -6
- banko_ai/web/app.py +18 -4
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/METADATA +2 -2
- banko_ai_assistant-1.0.3.dist-info/RECORD +164 -0
- banko_ai_assistant-1.0.0.dist-info/RECORD +0 -46
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/WHEEL +0 -0
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/entry_points.txt +0 -0
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[22517],{603239:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CarouselEllipsis_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{args:null,kind:"FragmentSpread",name:"useLogSwipe_pin"},{args:null,kind:"FragmentSpread",name:"usePinCarouselData_pin"}],type:"Pin",abstractKey:null};t.hash="d9fe632f7481dc91f9007bbd592d44c2",e.exports=t},992872:e=>{var t,l={argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"skipUnauthFragment"}],kind:"Fragment",metadata:null,name:"CarouselModule_story",selections:[{alias:null,args:null,concreteType:"StoryAction",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null},{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:"StoryDisplayOptions",kind:"LinkedField",name:"displayOptions",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryContentDisplay",kind:"LinkedField",name:"contentDisplay",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryContentCarouselDisplayOptions",kind:"LinkedField",name:"carouselDisplayOptions",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"navigationType",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"componentType",storageKey:null},{alias:null,args:null,concreteType:"StoryContentVisibleItemCount",kind:"LinkedField",name:"contentVisibleItemCount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"mobile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"web",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryTilesGridLayout",kind:"LinkedField",name:"gridLayout",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"cols",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"carouselFadeEnds",storageKey:null},{alias:null,args:null,concreteType:"StoryItemViewRepStyle",kind:"LinkedField",name:"itemViewRepStyle",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"exploreArticleRepStyle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"moreIdeasRepStyle",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryHeaderDisplay",kind:"LinkedField",name:"headerDisplay",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"expandedTextAlignment",storageKey:null}],storageKey:null}],storageKey:null},{alias:"storyTitle",args:null,concreteType:"StoryText",kind:"LinkedField",name:"title",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"objects",plural:!0,selections:[t,{kind:"InlineFragment",selections:[{args:[{kind:"Variable",name:"skipUnauthFragment",variableName:"skipUnauthFragment"}],kind:"FragmentSpread",name:"ItemRep_pin"}],type:"Pin",abstractKey:null}],storageKey:null},{alias:"storyId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyType",storageKey:null},{args:null,kind:"FragmentSpread",name:"HeaderModule_story"}],type:"Story",abstractKey:null};l.hash="3a9249e363d91968cda37f88750020c1",e.exports=l},717246:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CarouselSliders_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{args:null,kind:"FragmentSpread",name:"useLogSwipe_pin"},{args:null,kind:"FragmentSpread",name:"usePinCarouselData_pin"},{args:null,kind:"FragmentSpread",name:"CarouselEllipsis_pin"}],type:"Pin",abstractKey:null};t.hash="4b0c4a7a095db0d3cc7f22f3f6c85086",e.exports=t},612587:e=>{var t,l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"HeaderModule_story",selections:[{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},{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"style",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{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},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null},{alias:"storyTitle",args:null,concreteType:"StoryText",kind:"LinkedField",name:"title",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"format",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryText",kind:"LinkedField",name:"subtitle",plural:!1,selections:t,storageKey:null},{alias:"storyDescription",args:null,concreteType:"StoryText",kind:"LinkedField",name:"description",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"StoryDisplayOptions",kind:"LinkedField",name:"displayOptions",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"titleTextColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitleTextColor",storageKey:null},{alias:null,args:null,concreteType:"StoryContentDisplay",kind:"LinkedField",name:"contentDisplay",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"componentType",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryHeaderDisplay",kind:"LinkedField",name:"headerDisplay",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"expandedTextAlignment",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"textAlignment",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitleAlignment",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"headerSize",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"titlePosition",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitleStyle",storageKey:null}],storageKey:null}],storageKey:null}],type:"Story",abstractKey:null};l.hash="4bee3a400f6e868da4c768b56562f0ea",e.exports=l},883597:e=>{var t={argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"skipUnauthFragment"}],kind:"Fragment",metadata:null,name:"ItemRep_pin",selections:[{alias:"pinId",args:null,kind:"ScalarField",name:"id",storageKey:null},{args:[{kind:"Variable",name:"skipUnauthFragment",variableName:"skipUnauthFragment"}],kind:"FragmentSpread",name:"PinRep_pin"}],type:"Pin",abstractKey:null};t.hash="e09face5ac4d794d890ecc87ca1a90a4",e.exports=t},282167:e=>{var t={argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"skipUnauthFragment"}],kind:"Fragment",metadata:null,name:"StructuredFeedStoryModule_story",selections:[{alias:null,args:null,concreteType:"StoryAction",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null},{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:"containerType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"contentIds",storageKey:null},{alias:null,args:null,concreteType:"StoryDisplayOptions",kind:"LinkedField",name:"displayOptions",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryContentDisplay",kind:"LinkedField",name:"contentDisplay",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"componentType",storageKey:null}],storageKey:null}],storageKey:null},{alias:"storyId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{args:[{kind:"Variable",name:"skipUnauthFragment",variableName:"skipUnauthFragment"}],kind:"FragmentSpread",name:"CarouselModule_story"},{args:null,kind:"FragmentSpread",name:"HeaderModule_story"}],type:"Story",abstractKey:null};t.hash="058a61f5e0b72dbde337960de273d6a5",e.exports=t},270643:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useLogSwipe_pin",selections:[{args:null,kind:"FragmentSpread",name:"useGetStringifiedCommerceAuxData_pin"}],type:"Pin",abstractKey:null};t.hash="dbfca9820e0aa1302554a0137a270b16",e.exports=t},175892:(e,t,l)=>{l.d(t,{Z:()=>G});var i=l(616550),n=l(883119),r=l(407043),o=l(704115),a=l(829407),s=l(667294),d=l(898781),u=l(390598),c=l(214494),p=l(186656),_=l(121151),h=l(499128),g=l(897243),y=l(349700),m=l(784590),x=l(343341),v=l(19121),f=l(487392),j=l(400264),S=l(833991),b=l(977558),T=l(35066),w=l(970023),I=l(785893);let P=new n.H3([new n.Ry(S.HW),new n.Ry(b.fe)]);function C({onFileUpload:e}){let t=(0,d.ZP)(),[l,i]=(0,s.useState)(!1),r=(0,s.useRef)(null),o=t._('Upload from computer', 'ProductGroupDetailsModal.uploadFromComputer', 'Dropdown label to upload image file from your computer');return(0,I.jsxs)(n.kC,{justifyContent:"center",children:[(0,I.jsx)(n.hU,{accessibilityExpanded:l,accessibilityHaspopup:!0,accessibilityLabel:t._('Upload product group cover image menu', 'ProductGroupDetailsModal.productGroupCoverImageA11y', 'Accessibility text for upload menu'),bgColor:"lightGray",icon:"edit",iconColor:"darkGray",onClick:()=>i(e=>!e),ref:r,size:"lg"}),l&&(0,I.jsx)(n.Lt,{anchor:r.current,id:"product-group-image-dropdown",onDismiss:()=>i(!1),disableMobileUI:!0,children:(0,I.jsx)(n.Lt.Item,{onSelect:()=>{i(!1),e()},option:{value:o,label:o}})})]})}function E({image:e,onFileUpload:t,onError:l}){let i=(0,d.ZP)(),r=i._('Product Group Cover Image', 'ProductGroupDetailsModal.productGroupCoverImageAlt', 'Alt text for product group cover image');return(0,I.jsxs)(n.xu,{position:"relative",children:[(0,I.jsx)(n.xu,{height:316,width:316,rounding:5,overflow:"hidden",children:(0,I.jsx)(n.Ee,{alt:r,color:"#EFEFEF",fit:"cover",naturalHeight:1,naturalWidth:1,src:e,onError:l})}),(0,I.jsx)(n.xu,{position:"absolute",top:!0,right:!0,padding:4,children:(0,I.jsx)(C,{onFileUpload:t})})]})}function A({onDismiss:e,onSubmit:t,productGroup:l}){var i,o,a;let{logContextEvent:u}=(0,r.v)(),S=(0,d.ZP)(),b=S._('Edit product group display', 'ProductGroupDetailsModal.heading', 'Modal title'),C=(0,v.Z)(),A=C.id||"",R=`/v3/business/users/${A}/storefront/product_group_image/`,[k,D]=(0,s.useState)(""),[L,O]=(0,s.useState)(""),[F,U]=(0,s.useState)(),[z,N]=(0,s.useState)(),[G,Z]=(0,s.useState)(!1),[M,B]=(0,s.useState)(0),[K]=(0,s.useState)(new Date().getTime()),H=l.groupType!==w.yh,{merchantId:W,advertiserId:V}=(0,f.Z)(),{showOneToast:X}=(0,x.F9)(),{updateStorefrontLastUpdated:Y}=(0,T.S)(),q=(0,j.Ib)({advertiserId:V,merchantId:W,productGroupsIds:[l.entityId],uniq:K},!1,!0),$=(0,m.Z)({name:"ApiResource",options:{url:R,data:{product_group_ids:[l.entityId]},uniq:K},noCache:!0}),Q=(0,s.useRef)(),J=Number(l.entityId),ee=null===(i=q.data)||void 0===i?void 0:i.find(e=>e.id===J),et=q.isLoaded&&$.isLoaded,el=ee&&(k!==ee.name||L!==(ee.description||"")||!!F),ei=ee&&k!==ee.name,en=ee&&L!==(ee.description||""),er=et&&(((null===(o=$.data)||void 0===o?void 0:o[l.entityId])||{})[0]||{}),eo=er?(0,w.cB)((0,g.b)(er)):null,ea=(null===(a=l.previewPins)||void 0===a?void 0:a[0])||{},es=ea.imageSignature,ed=ea.images&&(0,w.cB)(ea.images),eu=z||[eo,ed].filter(e=>!!e)[M];(0,s.useEffect)(()=>{ee&&(D(ee.name||""),O(ee.description||""))},[ee]),(0,s.useEffect)(()=>{u({event_type:9854,component:13998})},[u]);let ec=()=>{e(),u({event_type:9856,component:13998})},ep=S._('Save', 'ProductGroupDetailsModal.SaveBtn', 'Button to save product group details changes'),e_=S._('Cancel', 'ProductGroupDetailsModal.CancelBtn', 'Button to cancel product group details changes');return(0,I.jsx)(n.mh,{zIndex:P,children:(0,I.jsx)(_.ZP,{accessibilityModalLabel:b,align:"center",heading:b,onDismiss:ec,footer:et?(0,I.jsxs)(n.kC,{alignItems:"start",children:[(0,I.jsx)(n.xu,{width:"50%",children:(0,I.jsx)(n.xv,{size:"300",children:(0,y.nk)(S._('To edit items in this product group, visit {{catalogsLink}}', 'ProductGroupDetailsModal.coverImage', 'heading for cover image form'),{catalogsLink:(0,I.jsx)(n.rU,{href:"/product-catalogs",display:"inlineBlock",target:"blank",underline:"hover",children:(0,I.jsx)(n.xv,{weight:"bold",inline:!0,children:S._('Pinterest Catalogs', 'ProductGroupDetailsModal.catalogsLink', 'link for catalogs')})},"product-catalogs-link")})})}),(0,I.jsx)(n.xu,{width:"50%",children:(0,I.jsxs)(n.kC,{gap:{row:2,column:0},alignItems:"center",justifyContent:"end",children:[(0,I.jsx)(n.zx,{color:"gray",text:e_,onClick:ec}),(0,I.jsx)(n.zx,{color:"red",text:ep,onClick:()=>{let i=eo?F:F||es,n=[],r=[];i&&(n.push((0,p.Z)({url:R,method:"PUT",data:{image_signatures:[i],product_group_id:l.entityId}})),r.push("cover_image")),(ei||en)&&(n.push(c.Z.create("ProductGroupsResource",{name:k,description:L,productGroupId:Number(l.entityId),filters:null==ee?void 0:ee.filter_v2}).callUpdate()),ei&&r.push("name"),en&&r.push("description")),u({event_type:9857,component:13998,aux_data:{product_group_modal_changes:r.join(",")}}),e(),Promise.all(n).then(()=>{t(),Y(new Date().getTime()),X(({hideToast:e})=>(0,I.jsx)("div",{className:"ProductGroupSavedToast",children:(0,I.jsx)(h.ZP,{duration:w.QE,onHide:e,text:S._('Product group saved', 'MerchantStorefront.ProductGroupDetailsModal.pgSaved', 'toast text')})}))})},disabled:!el})]})})]},"product-group-details-footer"):(0,I.jsx)(s.Fragment,{}),size:H?"md":"sm",children:(0,I.jsx)(n.xu,{paddingX:8,marginBottom:2,children:et?(0,I.jsxs)(n.kC,{justifyContent:"center",children:[(0,I.jsxs)(n.xu,{width:320,children:[(0,I.jsx)(n.xu,{marginBottom:4,children:(0,I.jsx)(n.xv,{size:"300",weight:"bold",children:S._('Cover image', 'ProductGroupDetailsModal.coverImage', 'heading for cover image form')})}),(0,I.jsx)("input",{accept:"image/*","data-test-id":"cover-image",id:"product-group-image-upload",onChange:e=>{if(e.target instanceof HTMLInputElement){let t=e.target.files[0],l=new FileReader;t&&l.readAsDataURL(t),l.addEventListener("load",()=>{Z(!0),u({event_type:9855,component:13998}),(0,p.Z)({url:R,method:"POST",data:{image_base64:l.result}}).then(e=>{var t;U(null===(t=e.resource_response.data)||void 0===t?void 0:t.image_signature),Z(!1),"string"==typeof l.result&&N(l.result)})},!1)}},ref:Q,style:{display:"none"},type:"file"}),G&&(0,I.jsx)(n.xu,{height:316,width:316,rounding:5,color:"secondary",justifyContent:"center",direction:"column",display:"flex",children:(0,I.jsx)(n.$j,{accessibilityLabel:S._('Uploading product group cover image', 'ProductGroupDetailsModal.uploadingCoverImage', 'spinner accessibility label'),show:!0})}),!G&&eu&&(0,I.jsx)(E,{image:eu,onFileUpload:()=>{var e;null===(e=Q.current)||void 0===e||e.click()},onError:()=>B(M+1)})]}),H&&(0,I.jsxs)(n.xu,{width:320,marginStart:4,children:[(0,I.jsx)(n.xu,{marginBottom:4,children:(0,I.jsx)(n.xv,{size:"300",weight:"bold",children:S._('Title', 'ProductGroupDetailsModal.name', 'heading for product group name input')})}),(0,I.jsx)(n.nv,{id:"name",onChange:({value:e})=>D(e.slice(0,255)),size:"lg",type:"text",value:k}),(0,I.jsxs)(n.xu,{marginTop:2,marginBottom:4,height:30,children:[k&&(0,I.jsx)(n.xv,{size:"100",color:"subtle",children:S._('Changing your product group\'s name in your shop will also change its name in Catalogs', 'ProductGroupDetailsModal.pgName', 'subheading for name form')}),!k&&(0,I.jsx)(n.xv,{size:"100",color:"error",children:S._('This field can\'t be blank!', 'ProductGroupDetailsModal.nameEmptyError', 'error message for an empty name input')})]}),(0,I.jsx)(n.xu,{marginBottom:4,children:(0,I.jsx)(n.xv,{size:"300",weight:"bold",children:S._('Description', 'ProductGroupDetailsModal.description', 'heading for description form')})}),(0,I.jsx)(n.xu,{height:178,children:(0,I.jsx)(n.Kx,{id:"description",onChange:({value:e})=>O(e.slice(0,155)),placeholder:S._('Tell shoppers on Pinterest more about this product group', 'ProductGroupDetailsModal.descriptionPlaceholder', 'textarea placeholder for product group description'),value:L,rows:7})})]})]}):(0,I.jsx)(n.$j,{accessibilityLabel:S._('Loading product group details', 'ProductGroupDetailsModal.loadingSpinner', 'spinner accessibility label'),show:!0})})})})}let R=()=>{},k=({url:e,onClick:t,i18n:l})=>(0,I.jsx)(n.ZP,{accessibilityLabel:l._('Shop button', 'ProductGroupV2.shopButton.accessibilityLabel', 'Shop button for product group rep v2'),size:"lg",text:l._('Shop', 'ProductGroupV2.shopButton.text', 'Shop button text for product group rep v2'),color:"white",href:e,onClick:t}),D=({i18n:e})=>(0,I.jsx)(n.zx,{accessibilityLabel:e._('Shop button', 'ProductGroupV2.shopButton.accessibilityLabel', 'Shop button for product group rep v2'),size:"lg",text:e._('Shop', 'ProductGroupV2.shopButton.text', 'Shop button text for product group rep v2'),color:"white"});function L({onClick:e,productGroup:t,showControls:l,url:i}){var r,o;let a=(0,d.ZP)(),c=a._('Edit product group display', 'ProductGroupV2.editTooltip', 'Tooltip text for edit product group button'),[p,_]=(a._('Remove product group from shop', 'ProductGroupV2.removeTooltip', 'Tooltip text for remove product group button'),(0,s.useState)(!1)),[h,g]=(0,s.useState)(!1),y=!!(i&&e),{WIDTH:m,HEIGHT:x}=u.PRODUCT_GROUP_COVER_IMAGE_DIMENSIONS,v=m-64;return(0,I.jsxs)(n.xu,{position:"relative",onMouseEnter:()=>{g(!0)},onMouseLeave:()=>{g(!1)},children:[(0,I.jsxs)(n.xu,{position:"relative",children:[(0,I.jsxs)(n.zd,{width:m,height:x,rounding:8,children:[(0,I.jsx)(u.Z,{productGroup:{coverImages:t.coverImages,groupType:t.groupType,previewPins:null===(r=t.previewPins)||void 0===r?void 0:r.map(e=>({imageSignature:e.imageSignature,images:e.images}))}}),(0,I.jsx)(n.xu,{position:"absolute",width:m,height:x,top:!0,dangerouslySetInlineStyle:{__style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%)"}}})]}),(0,I.jsx)(n.xu,{position:"absolute",color:"selected",opacity:h?.5:0,width:m,height:x,rounding:8,top:!0})]}),l&&h&&(0,I.jsxs)(n.xu,{position:"absolute",top:!0,right:!0,padding:8,display:"flex",children:[(0,I.jsx)(n.xu,{marginEnd:0,children:(0,I.jsx)(n.u,{text:c,idealDirection:"down",children:(0,I.jsx)(n.hU,{accessibilityLabel:c,bgColor:"lightGray",icon:"edit",iconColor:"darkGray",onClick:({event:e})=>{e.stopPropagation(),e.preventDefault(),_(!0)},size:"xl"})})}),!1]}),(0,I.jsxs)(n.xu,{position:"absolute",bottom:!0,left:!0,padding:8,children:[(0,I.jsx)(n.xu,{marginBottom:5,maxWidth:v,children:(0,I.jsx)(n.X6,{size:"600",color:"inverse",lineClamp:2,children:t.name})}),h&&(0,I.jsx)(n.xu,{marginBottom:5,maxWidth:v,children:(0,I.jsx)(n.xv,{size:"300",color:"inverse",children:t.description})}),!y&&(0,I.jsx)(D,{i18n:a}),y&&(0,I.jsx)(k,{url:null!=i?i:"",onClick:null!=e?e:R,i18n:a})]}),l&&p&&(0,I.jsx)(A,{onDismiss:()=>_(!1),onSubmit:()=>_(!1),productGroup:{entityId:t.entityId,groupType:t.groupType,previewPins:null===(o=t.previewPins)||void 0===o?void 0:o.map(e=>({imageSignature:e.imageSignature,images:e.images}))}})]})}var O=l(717615),F=l(231947),U=l(151645),z=l(436395),N=l(316674);function G({productGroup:e,slotIndex:t}){let{logContextEvent:l}=(0,r.v)(),{data:s}=(0,z.Z)(),{search:d}=(0,i.useLocation)(),{pin:u}=(0,o.Z)(d),c=u?"pdp":"profile",p=null==s?void 0:s.username,_=function(){let{ownProfile:e}=function(){let{data:e}=(0,z.Z)(),t=(0,v.Z)(),l=(0,U.Z)({user:e,viewer:t}),i=(0,O.Z)(),n=(0,F.q6)(t,null==e?void 0:e.id,i);return{isORBACProfileManager:n,ownProfile:l}}();return e}();if((0,a.Z)(()=>{var t;N.Z.StructuredFeed.ProductGroups.viewProductGroup({productGroupId:e.entityId,source:c,groupType:null!==(t=e.groupType)&&void 0!==t?t:"",componentType:13698},l)}),!p)return null;let h=`/${p}/_shop/${e.entityId}/`;return(0,I.jsx)(n.Tg,{onTap:()=>{var i;N.Z.StructuredFeed.ProductGroups.tapProductGroup({productGroupId:e.entityId,source:c,groupType:null!==(i=e.groupType)&&void 0!==i?i:"",componentType:13698,index:t},l)},href:h,children:(0,I.jsx)(L,{productGroup:e,showControls:_})})}},992061:(e,t,l)=>{l.d(t,{Z:()=>r});var i=l(883119),n=l(785893);function r({hovered:e,rounding:t}){return(0,n.jsx)(i.xu,{display:e?"block":"none",height:"100%",width:"100%",left:!0,top:!0,position:"fixed",zIndex:new i.Ry(1),color:"transparentDarkGray",rounding:t,opacity:.2})}},754320:(e,t,l)=>{l.d(t,{Z:()=>p});var i=l(667294),n=l(883119),r=l(407043),o=l(643010),a=l(444445),s=l(898781),d=l(905031),u=l(50286),c=l(785893);let p=({contentIds:e,previewImageSrc:t,url:l,buttonText:p,imageWidth:_,isInMobileCarousel:h,slideWidth:g,shape:y="square",storyId:m,storyType:x,view:v,viewParameter:f,component:j,element:S})=>{let b="square"===y?4:"circle",T=null!=_?_:a.yF,w=(0,d.Z)()?a.tG:T,I=(0,u.HG)(),P=(0,o.vs)(),{logContextEvent:C}=(0,r.v)(),E=(0,s.ZP)(),A=(0,i.useMemo)(()=>!Number.isNaN(v)&&!Number.isNaN(f)&&!Number.isNaN(j)&&!Number.isNaN(S),[v,f,j,S]),R="lg";return h&&g&&(R=g>150?"lg":g>135&&g<=150?"md":"sm"),(0,i.useEffect)(()=>{A&&C({event_type:120,view_type:v,view_parameter:f,component:j,element:S,aux_data:{content_ids:e,story_id:m,story_type:x}})},[e,C,v,f,j,S,A,m,x]),(0,c.jsx)(n.xu,{"data-test-id":"sf-action-item-rep",children:(0,c.jsx)(n.xu,{width:h?g:w,height:h?g:w,color:"secondary",rounding:b,overflow:"hidden",children:(0,c.jsx)(n.zd,{height:"100%",width:"100%",wash:!0,rounding:b,children:(0,c.jsx)(n.Ee,{src:t,alt:E._('Action Item Rep Preview Image', 'actionItemRep.image', 'alt text for a preview image image in action item'),color:"#fff",fit:"cover",naturalHeight:50,naturalWidth:50,children:(0,c.jsx)(n.xu,{height:"100%",width:"100%",left:!0,top:!0,alignItems:"center",justifyContent:"center",display:"flex",dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0,0,0,0.3)"}},children:(0,c.jsx)(n.ZP,{onClick:()=>{A&&C({event_type:I?101:102,view_type:v,view_parameter:f,component:j,element:S,aux_data:{content_ids:e,story_id:m,story_type:x}})},text:p,href:l,color:P?"gray":"white",size:R})})})})})})}},701865:(e,t,l)=>{l.d(t,{Z:()=>E});var i=l(667294),n=l(616550),r=l(883119),o=l(407043),a=l(366428),s=l(992061),d=l(444445),u=l(898781),c=l(608760),p=l(215292),_=l(785893);function h({item:e={},imagePlaceholderColor:t=c.hK,onTap:l}){var n,o;let a=(0,u.ZP)(),h=null==e?void 0:null===(n=e.cover_images)||void 0===n?void 0:n[0],g=null==h?void 0:h["236x"];return(0,_.jsx)(r.iP,{onTap:l,children:(0,_.jsxs)(i.Fragment,{children:[(0,_.jsx)(p.q,{children:({hovered:e,onMouseEnter:l,onMouseLeave:i})=>(0,_.jsx)(r.xu,{marginBottom:2,"data-test-id":"category-bubble",onMouseEnter:l,onMouseLeave:i,children:(0,_.jsxs)(r.zd,{height:d.yF,rounding:"circle",wash:!0,width:d.yF,children:[(0,_.jsx)(s.Z,{hovered:e,rounding:"circle"}),(0,_.jsx)(r.Ee,{alt:a._('Image previewing contents of an item', 'itemRep.userRep.previewImage', 'alt text for an image previewing the contents of an item'),color:t,fit:"cover",naturalHeight:d.yF,naturalWidth:d.yF,src:(null==g?void 0:g.url)||""})]})})}),(null==e?void 0:null===(o=e.title)||void 0===o?void 0:o.format)&&(0,_.jsx)(r.xu,{width:d.yF,children:(0,_.jsx)(r.xv,{align:"center",weight:"bold",children:e.title.format})})]})})}var g=l(752802),y=l(57427),m=l(327651),x=l(641968),v=l(50286);let f=["170x","192x","200x","236x"];var j=l(668916);let S="pill";var b=l(642345),T=l(48125),w=l(429091),I=l(180910);let P=()=>{},C={2:h,3:function({item:e={},onTap:t}){let l=(0,u.ZP)(),i=null==e?void 0:e.identifier_icon_type,{icon:n,text:o}=function(e,t){switch(e){case 2:return{icon:"workflow-status-all",text:t._('Categories', 'NavigationBubble.NavigationIcon.utils', 'Categories navigation button text')};case 3:return{icon:"shopping-bag",text:t._('Stores', 'ExploreArticleRep.NavigationBubble.utils', 'Stores navigation button text')};case 4:return{icon:"terms",text:t._('Your items', 'ExploreArticleRep.NavigationBubble.utils', 'Your items navigation button text')};default:return{icon:null}}}(i,l);return(0,_.jsx)(r.iP,{onTap:t,tapStyle:"compress",rounding:n?5:S,children:(0,_.jsx)(p.q,{children:({active:t,hovered:l,onMouseEnter:i,onMouseLeave:a,onFocus:u,onBlur:c})=>{var p,h,g;return(0,_.jsxs)(r.xu,{"data-test-id":"navigation-bubble",onMouseEnter:i,onMouseLeave:a,onFocus:u,onBlur:c,rounding:5,children:[n&&(0,_.jsxs)(r.zd,{height:85,rounding:5,wash:!0,width:85,children:[(0,_.jsx)(s.Z,{hovered:l}),(0,_.jsx)(r.xu,{alignItems:"center",color:"secondary",display:"flex",height:"100%",justifyContent:"center",padding:2,width:"100%",children:(0,_.jsx)(r.JO,{accessibilityLabel:o||"",color:"default",icon:n,size:32})})]}),o&&(0,_.jsx)(r.xu,{marginTop:2,width:85,children:(0,_.jsx)(r.xv,{align:"center",weight:"bold",children:o})}),!n&&!o&&(null==e?void 0:null===(p=e.title)||void 0===p?void 0:p.format)&&(0,_.jsx)(r.xu,{rounding:S,dangerouslySetInlineStyle:{__style:{backgroundColor:null===(h=e.aux_fields)||void 0===h?void 0:h.button_background_color}},children:(0,_.jsx)(r.xu,{rounding:S,padding:4,dangerouslySetInlineStyle:{__style:{backgroundColor:t&&"rgba(0, 0, 0, 0.15)"||l&&"rgba(0, 0, 0, 0.06)"||void 0}},children:(0,_.jsx)(r.xv,{align:"center",weight:"normal",color:(null===(g=e.aux_fields)||void 0===g?void 0:g.button_text_color)==="#ffffff"?"inverse":"default",children:(0,_.jsx)(r.xu,{maxWidth:d.yF-16,overflow:"hidden",dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:e.title.format})})})})]})}})})},1:function({item:e={},onTap:t}){var l;let i=(0,u.ZP)(),n=null==e?void 0:null===(l=e.cover_images)||void 0===l?void 0:l[0],o=null==n?void 0:n["236x"];return(0,_.jsx)(r.iP,{onTap:t,tapStyle:"compress",rounding:3,children:(0,_.jsx)(p.q,{children:({hovered:t,onMouseEnter:l,onMouseLeave:n})=>{var a;return(0,_.jsx)(r.xu,{"data-test-id":"search-bubble",onMouseEnter:l,onMouseLeave:n,rounding:3,children:(0,_.jsxs)(r.zd,{height:150,rounding:3,wash:!0,width:300,children:[(0,_.jsx)(s.Z,{hovered:t}),(0,_.jsx)(r.Ee,{alt:i._('Image previewing contents of an item', 'itemRep.userRep.previewImage', 'alt text for an image previewing the contents of an item'),fit:"cover",naturalHeight:150,naturalWidth:300,role:"presentation",src:(null==o?void 0:o.url)||"",children:(0,_.jsx)(r.xu,{alignItems:"center",color:"transparentDarkGray",display:"flex",justifyContent:"center",height:150,padding:3,position:"absolute",top:!0,width:300,children:(null==e?void 0:null===(a=e.title)||void 0===a?void 0:a.format)&&(0,_.jsx)(r.X6,{color:"inverse",size:"400",children:e.title.format})})})]})})}})})},4:function({item:e,onTap:t,slotIndex:l}){let{action:i,aux_fields:n,cover_images:o,dominant_colors:a,title:s}=e;if(!s||!o||!i)return null;let d=o.length<=0?[{}]:o.slice(0,2);return(0,_.jsx)(r.iP,{onTap:t,tapStyle:"compress",rounding:4,children:(0,_.jsxs)(r.xu,{alignItems:"center","data-test-id":"style-bubble",display:"flex",height:258,justifyContent:"center",overflow:"hidden",position:"relative",rounding:4,width:w.u,children:[(0,_.jsx)(r.kC,{children:d.map((e,t)=>{var i,n,o;return(0,_.jsx)(r.zd,{height:258,wash:!0,width:w.u/d.length,children:(0,_.jsx)(r.Ee,{alt:"",color:(a||[])[t],fit:"cover",naturalHeight:1,naturalWidth:1,role:"presentation",src:(null===(i=e["474x"])||void 0===i?void 0:i.url)||(null===(n=e["736x"])||void 0===n?void 0:n.url)||(null===(o=e["236x"])||void 0===o?void 0:o.url)||""})},`styleCarousel_bubble${l}_pin${t}`)})}),(0,_.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:null==n?void 0:n.button_background_color}},paddingX:4,paddingY:3,position:"absolute",rounding:"pill",children:(0,_.jsx)(r.xv,{align:"center",weight:"bold",children:(0,_.jsx)("span",{style:{color:null==n?void 0:n.button_text_color,margin:"0"},children:s.format})})})]})})},13:({item:e={},onTap:t})=>{var l,i,n,o;let a=(0,u.ZP)(),s=(0,v.HG)(),c=null===(l=e.action)||void 0===l?void 0:l.url;if(!c)return null;let p=e.curator||{},h=p.full_name||"",j=p.username||"",S=p.image_medium_url||"",b=(null===(i=p.verified_identity)||void 0===i?void 0:i.verified)||!1,T=p.is_verified_merchant||!1,[w={},I={}]=e.cover_images||[],P=(null===(n=(0,g.Z)({images:w,resolutionPreferences:f}))||void 0===n?void 0:n.url)||"",C=(null===(o=(0,g.Z)({images:I,resolutionPreferences:f}))||void 0===o?void 0:o.url)||"";if(!P||!C)return null;let E=s?d.yF:d.tG;return(0,_.jsxs)(r.xu,{width:E,"data-test-id":"default-brand-article",children:[(0,_.jsx)(r.Tg,{rounding:3,href:c,accessibilityLabel:"",onTap:t,children:(0,_.jsxs)(r.xu,{height:157,children:[(0,_.jsx)(r.zd,{rounding:4,height:157,width:E,wash:!0,children:(0,_.jsxs)(r.kC,{children:[(0,_.jsx)(y.Z,{height:157,width:E/2,src:P}),(0,_.jsx)(r.xu,{color:"default",width:1}),(0,_.jsx)(y.Z,{height:157,width:E/2,src:C})]})}),(0,_.jsx)(r.xu,{display:"flex",justifyContent:"center",marginTop:-8,children:(0,_.jsx)(m.Z,{size:64,src:S||"",color:"gray",fullName:h||j})})]})}),(0,_.jsx)(r.xu,{height:40}),h&&(0,_.jsx)(x.Z,{name:h,isDomainVerified:b,isVerifiedMerchant:T}),(0,_.jsx)(r.xu,{marginTop:2,marginBottom:2,justifyContent:"center",width:"100%",display:"flex",children:(0,_.jsx)(r.ZP,{text:a._('Shop', 'StructuredFeed.ItemReps.ExploreArticleRep.DefaultBrandArticle.ButtonText', 'Text on a button under a brand article that leads to a feed of products from that brand'),size:"lg",href:c,accessibilityLabel:a._('Navigate to a feed of products from this brand', 'StructuredFeed.ItemReps.ExploreArticleRep.DefaultBrandArticle.linkAccessibilityLabel', 'Accessibility label on a brand article that leads to a feed of products from that brand')})})]})},19:function({item:e,onTap:t}){let l=(0,v.HG)(),{action:i,cover_images:n,dominant_colors:o,title:a,subtitle:s}=e,d=null==a?void 0:a.format;if(!d||!n||!i)return null;let u=l?200:150,c=l?I.KW:I.hk,p=l?I.d:I.Gd,h=(null==s?void 0:s.format)||"",y=n.slice(0,3);return(0,_.jsx)(r.iP,{onTap:t,tapStyle:"compress",rounding:4,children:(0,_.jsxs)(r.xu,{"data-test-id":"triple-preview-display-card",rounding:4,width:p,children:[(0,_.jsx)(r.zd,{height:u,wash:!0,width:p,rounding:4,children:(0,_.jsx)(r.kC,{alignItems:"stretch",justifyContent:"start",children:y.map((e,t)=>{var l;let i=(null===(l=(0,g.Z)({images:e,resolutionPreferences:["200x","236x","400x"]}))||void 0===l?void 0:l.url)||"";return(0,_.jsx)(r.xu,{height:u,width:c,children:(0,_.jsx)(r.Ee,{alt:"",color:(o||[])[t],fit:"cover",naturalHeight:200,naturalWidth:200,role:"presentation",src:i})},i)})})}),(0,_.jsxs)(r.xu,{marginTop:4,children:[(0,_.jsx)(r.kC,{justifyContent:"center",children:(0,_.jsx)(r.xv,{size:"400",weight:"bold",align:"center",children:d})}),h&&(0,_.jsx)(r.xu,{display:"flex",justifyContent:"center",marginTop:1,children:(0,_.jsx)(r.xv,{size:l?"200":"100",color:"subtle",align:"center",children:h})})]})]})})},20:function({item:e,onTap:t}){let l=(0,v.HG)(),{action:i,cover_images:n,aux_fields:o,title:a,subtitle:s,dominant_colors:d=[]}=e,u=(null==a?void 0:a.format)||"",{background_color:c}=o||{};if(!u||!n||!i||!c)return null;let p=l?T.m:T.d,h=l?186:160,y=l?126:108,m=l?137:118,x=l?92:80,f=(null==s?void 0:s.format)||"",j=n.slice(0,3).map(e=>{var t;return(null===(t=(0,g.Z)({images:e,resolutionPreferences:["200x","236x","400x"]}))||void 0===t?void 0:t.url)||""}),S=(0,b.zI)(c)?"light":"dark";return(0,_.jsx)(r.iP,{onTap:t,tapStyle:"compress",rounding:4,children:(0,_.jsx)(r.xu,{"data-test-id":"stacked-collage-display-card",rounding:4,width:p,height:p,dangerouslySetInlineStyle:{__style:{backgroundColor:c}},overflow:"hidden",children:(0,_.jsxs)(r.xu,{position:"relative",height:p,padding:2,children:[(0,_.jsxs)(r.xu,{marginTop:4,marginBottom:3,children:[(0,_.jsx)(r.kC,{justifyContent:"center",children:(0,_.jsx)(r.xv,{lineClamp:1,align:"center",size:"400",weight:"bold",color:S,children:u})}),f&&(0,_.jsx)(r.xu,{display:"flex",justifyContent:"center",marginTop:1,children:(0,_.jsx)(r.xv,{lineClamp:1,align:"center",size:"100",color:S,children:null==s?void 0:s.format})})]}),(0,_.jsx)(r.xu,{position:"absolute",left:!0,bottom:!0,children:(0,_.jsx)(r.zd,{height:m,wash:!0,width:x,rounding:4,children:(0,_.jsx)(r.xu,{height:m,width:x,children:(0,_.jsx)(r.Ee,{alt:"",color:d[1],fit:"cover",naturalHeight:200,naturalWidth:200,role:"presentation",src:j[1]})})})}),(0,_.jsx)(r.xu,{position:"absolute",right:!0,bottom:!0,children:(0,_.jsx)(r.zd,{height:m,wash:!0,width:x,rounding:4,children:(0,_.jsx)(r.xu,{height:m,width:x,children:(0,_.jsx)(r.Ee,{alt:"",color:d[2],fit:"cover",naturalHeight:200,naturalWidth:200,role:"presentation",src:j[2]})})})}),(0,_.jsx)(r.xu,{display:"flex",justifyContent:"center",left:!0,right:!0,dangerouslySetInlineStyle:{__style:{bottom:"-22px"}},position:"absolute",children:(0,_.jsx)(r.zd,{height:h,wash:!0,width:y,rounding:4,children:(0,_.jsx)(r.xu,{height:h,width:y,children:(0,_.jsx)(r.Ee,{alt:"",color:d[0],fit:"cover",naturalHeight:200,naturalWidth:200,role:"presentation",src:j[0]})})})})]})})})},21:function({item:e,onTap:t}){var l,i,n;let{cover_images:o,dominant_colors:a,title:s}=e;if(!s||!o)return null;let d=o[0];return(0,_.jsx)(r.iP,{onTap:t,tapStyle:"compress",rounding:4,children:(0,_.jsx)(r.xu,{borderStyle:"shadow",color:"default",overflow:"hidden",position:"relative",rounding:4,height:189,width:j.H,children:(0,_.jsx)(r.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:(0,_.jsx)(r.Ee,{alt:"",fit:"cover",naturalHeight:1,naturalWidth:1,role:"presentation",src:(null===(l=d["474x"])||void 0===l?void 0:l.url)||(null===(i=d["736x"])||void 0===i?void 0:i.url)||(null===(n=d["236x"])||void 0===n?void 0:n.url)||"",color:(a||[])[0],children:(0,_.jsx)(r.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:3,paddingX:3,children:(0,_.jsx)(r.kC,{alignItems:"stretch",direction:"column",justifyContent:"start",width:"100%",children:(0,_.jsx)(r.xv,{align:"start",weight:"bold",color:"light",size:"300",children:s.format})})})})})})})}};function E(e){var t,l;let{component:s,slotIndex:d,item:u,showExpandedHeader:c,story:p,view:g,viewParameter:y}=e,{display_options:m,story_type:x,id:v,content_ids:f}=p||{},{logContextEvent:j}=(0,o.v)(),S=(0,n.useHistory)(),b=null==u?void 0:u.id,T=(0,i.useMemo)(()=>({story_type:x,story_id:v,content_ids:f,article_id:b}),[b,f,v,x]),w=(0,a.Z)({componentType:s,contextLogData:T,impressionType:"Article",loggingId:b,objectIdStr:b,slotIndex:d,viewParameter:y,viewType:g}),I=c?null==m?void 0:null===(t=m.item_view_rep_style)||void 0===t?void 0:t.expanded_explore_article_rep_style:null==m?void 0:null===(l=m.item_view_rep_style)||void 0===l?void 0:l.explore_article_rep_style,{action:E}=u||{},{url:A=""}=E||{},R=Object.hasOwnProperty.call(C,I)?C[I]:h,k=c?P:()=>{S.push(A),j({event_type:101,component:s,view_type:g,view_parameter:y,aux_data:T})};return(0,_.jsx)(r.xu,{ref:w,children:(0,_.jsx)(R,{...e,onTap:k})})}},668916:(e,t,l)=>{l.d(t,{H:()=>i});let i=252},48125:(e,t,l)=>{l.d(t,{d:()=>i,m:()=>n});let i=216,n=258},429091:(e,t,l)=>{l.d(t,{u:()=>i});let i=369},180910:(e,t,l)=>{l.d(t,{Gd:()=>r,KW:()=>n,d:()=>o,hk:()=>i});let i=108,n=124,r=3*i,o=3*n},232921:(e,t,l)=>{l.d(t,{lf:()=>n,wg:()=>r,xR:()=>i});let i=299,n=270,r=232},981228:(e,t,l)=>{l.d(t,{Z:()=>v});var i=l(667294),n=l(883119),r=l(407043),o=l(34518);let a=e=>e?o.a$:o.Ql;function s(e,t,l){return{backgroundColor:`rgba(${e.join(", ")}, ${a(l||t)})`,marginRight:t?"2px":"0px",marginLeft:t?"2px":"0px"}}var d=l(232921),u=l(785893);let c={MOBILE:{HEIGHT_PX:64,WIDTH_PX:48},SMALL:{HEIGHT_PX:72,WIDTH_PX:54},DEFAULT:{HEIGHT_PX:96,WIDTH_PX:72},LARGE:{HEIGHT_PX:130,WIDTH_PX:98}},p=(e,t,l)=>{let i;switch(l){case"MOBILE":i={0:{transform:"rotate(-15deg)",top:"6px",left:"16px"},1:{transform:"rotate(0deg)",top:"3px",left:"30px"},2:{transform:"rotate(15deg)",top:"6px",left:"44px"}};break;case"SMALL":i={0:{transform:t?"rotate(-22deg)":"rotate(-15deg)",top:"12px",left:"12px"},1:{transform:t?"rotate(1deg)":"rotate(0deg)",top:t?"6px":"10px",left:"26px"},2:{transform:t?"rotate(24deg)":"rotate(15deg)",top:"12px",left:"40px"}};break;case"LARGE":i={0:{transform:t?"rotate(-26deg)":"rotate(-15deg)",top:"50px",left:"44px"},1:{transform:t?"rotate(1deg)":"rotate(0deg)",top:t?"36px":"40px",left:"68px"},2:{transform:t?"rotate(26deg)":"rotate(15deg)",top:"56px",left:"98px"}};break;default:i={0:{transform:t?"rotate(-22deg)":"rotate(-15deg)",top:"20px",left:"64px"},1:{transform:t?"rotate(1deg)":"rotate(0deg)",top:t?"10px":"14px",left:"82px"},2:{transform:t?"rotate(24deg)":"rotate(15deg)",top:"20px",left:"100px"}}}let n=i[e];return n.border="1px solid #FFFFFF",n.transition="all 150ms ease-out",n};function _({fanOut:e,card:t,index:l,size:i}){let r;let o=c[i],{height:a=o.HEIGHT_PX,url:s,width:d=o.WIDTH_PX,colorRGB:_,opacity:h}=t;return s?r=(0,u.jsx)(n.Ee,{alt:s,fit:"cover",naturalHeight:a,naturalWidth:d,src:s}):_&&h&&(r=(0,u.jsx)(n.xu,{height:o.HEIGHT_PX,width:o.WIDTH_PX,dangerouslySetInlineStyle:{__style:{backgroundColor:`rgba(${_.join(", ")}, ${h})`}}})),(0,u.jsx)(n.xu,{rounding:5,position:"absolute",dangerouslySetInlineStyle:{__style:p(l,e,i)},children:(0,u.jsx)(n.zd,{height:o.HEIGHT_PX,rounding:5,width:o.WIDTH_PX,wash:!0,children:r})})}function h(){return(0,u.jsx)(n.xu,{position:"absolute",rounding:o.N3,top:!0,bottom:!0,right:!0,left:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, 0.03)"}}})}var g=l(605706),y=l(50286);let m={1:function(e){var t;let{pinCards:l,isClicked:i,isHovered:r,item:a={},story:c}=e,p=(0,y.HG)(),m=(0,g.Z)(),x=c&&(null===(t=c.objects)||void 0===t?void 0:t.length),{board_name:v,header_text:f,top_image_dominant_color_rgb:j}=a,S=i?106:110,b=i?d.xR-4:d.xR;p||(S=90,b=1===x?"100%":m?d.wg:d.lf);let T=155;return p||(T=m?108:148),(0,u.jsxs)(n.xu,{height:S,display:"flex",paddingY:2,position:"relative",rounding:o.N3,width:b,dangerouslySetInlineStyle:{__style:s(j,i,r)},children:[(0,u.jsx)(h,{}),(0,u.jsx)(n.xu,{width:p?112:100,position:"relative",children:l.map((e,t)=>(0,u.jsx)(_,{fanOut:r||i,card:e,index:t,size:p?"SMALL":"MOBILE"},t))}),(0,u.jsxs)(n.xu,{display:"flex",direction:"column",justifyContent:"center",marginStart:p?2:3,width:T,children:[(0,u.jsx)(n.xv,{size:p?"200":"100",children:f}),(0,u.jsx)(n.xv,{lineClamp:2,size:"400",weight:"bold",children:v})]})]})},3:function(e){let{pinCards:t,isClicked:l,isHovered:i,item:r}=e,{board_name:a,top_image_dominant_color_rgb:d}=r;return(0,u.jsxs)(n.xu,{height:l?165:169,display:"flex",alignItems:"end",justifyContent:"center",paddingX:4,paddingY:3,position:"relative",rounding:o.N3,width:l?232:236,dangerouslySetInlineStyle:{__style:s(d,l,i)},children:[(0,u.jsx)(h,{}),t.map((e,t)=>(0,u.jsx)(_,{fanOut:i||l,card:e,index:t,size:"DEFAULT"},t)),(0,u.jsx)(n.xv,{align:"center",lineClamp:1,size:"200",weight:"bold",children:a})]})},4:function(e){var t;let{logContextEvent:l}=(0,r.v)(),{pinCards:i,isHovered:a,item:d,view:c,viewParameter:p}=e,{action:g,board_name:y,header_text:m,ideas_deep_link_url:x,top_image_dominant_color_rgb:v}=d,f=null!==(t=null==g?void 0:g.url)&&void 0!==t?t:x.concat("?ideas_referrer=25");return(0,u.jsxs)(n.xu,{alignItems:"center",direction:"column",display:"flex",justifyContent:"end",marginBottom:6,minHeight:377,position:"relative",paddingX:4,paddingY:8,rounding:o.N3,width:236,dangerouslySetInlineStyle:{__style:s(v,!1,a)},children:[i.map((e,t)=>(0,u.jsx)(_,{fanOut:a,card:e,index:t,size:"LARGE"},t)),(0,u.jsx)(n.xu,{height:168,width:"100%"}),(0,u.jsx)(h,{}),(0,u.jsxs)(n.kC,{alignItems:"stretch",direction:"column",height:"100%",justifyContent:"end",children:[(0,u.jsxs)(n.xu,{display:"flex",direction:"column",alignItems:"center",marginTop:5,marginBottom:5,children:[(0,u.jsx)(n.xu,{marginBottom:1,children:(0,u.jsx)(n.xv,{size:"200",weight:"bold",children:m})}),(0,u.jsx)(n.xv,{align:"center",size:"500",weight:"bold",children:y})]}),(0,u.jsx)(n.xu,{display:"flex",justifyContent:"center",marginTop:1,position:"relative",width:"100%",children:(0,u.jsx)(n.ZP,{color:"white",href:f,size:"lg",onClick:({event:e})=>{e.stopPropagation(),l({event_type:101,view_type:c,view_parameter:p,component:14268,element:13002,object_id_str:d.board_id})},text:"Explore"})})]})]})}},x=["100%","60%"];function v(e){var t,l;let{component:a,isInViewOrNext:s,item:{action:d,board_id:c,ideas_deep_link_url:p,images:_,image_dominant_color_rgb:h},slotIndex:g,story:v={},view:f,viewParameter:j}=e,{logContextEvent:S}=(0,r.v)(),b=(0,y.ZP)(),{display_options:T,objects:w}=v,I=null==w?void 0:w.length,[P,C]=(0,i.useState)(!1),[E,A]=(0,i.useState)(!1),[R,k]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if("desktop"===b){let e=setTimeout(()=>k(!0),700);return()=>{clearTimeout(e)}}},[b]);let D=[],L="desktop"!==b?o.mS:o.S$;(s||"desktop"!==b)&&(D=R?[..._[L]]:[_[L][0]]);let O=3-D.length;for(let e=0;e<O;e+=1)D.push({colorRGB:h,opacity:x[e]});D.reverse();let F=null==T?void 0:null===(t=T.item_view_rep_style)||void 0===t?void 0:t.more_ideas_rep_style,U=m[F],z=a||o.kx[F],N=null!==(l=null==d?void 0:d.url)&&void 0!==l?l:p.concat("?ideas_referrer=25");return U&&(0,u.jsx)(n.Tg,{href:N,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),onMouseDown:()=>A(!0),onTap:()=>S({event_type:101,view_type:f,view_parameter:j,component:z,element:13002,object_id_str:c,aux_data:{index:g,total_object_count:I}}),children:(0,u.jsx)(U,{isClicked:E,isHovered:P,pinCards:D,...e})})}},34518:(e,t,l)=>{l.d(t,{N3:()=>i,Ql:()=>n,S$:()=>o,a$:()=>r,kx:()=>s,mS:()=>a});let i=4,n=.35,r=.5,o="170x",a="136x136",s={1:14114,3:14074,4:14268}},988874:(e,t,l)=>{l.d(t,{Z:()=>g});var i=l(616550),n=l(883119),r=l(444445),o=l(91885),a=l(477802),s=l(826067),d=l(50286),u=l(8742),c=l(785893);let p=new Set(["shopping_module_closeup","product_pins","shopping_list","shop_tab_upsell"]),_=new Set(["product_tagged_shopping_module_upsell"]),h=e=>null!=e&&e.shop_source||p.has(null==e?void 0:e.story_type)?"ShoppingDynamicHeightGrid":"StoryFeedNonProduct";function g(e){var t,l,p;let{pins_display:g}=(0,s.mB)((0,i.useLocation)().search),{component:y,isInMobileCarousel:m,imageWidth:x,item:v,saveButtonOptions:f,slideWidth:j,slotIndex:S,story:b,surface:T,view:w,viewParameter:I}=e,P=null!=x?x:r.yF,C="desktop"===(0,d.ZP)(),E=C?P:r.tG;if(!v)return null;let{story_type:A,id:R,content_ids:k,display_options:D,user:L}=b||{},{pins_display:O}=(null==D?void 0:D.content_display)||{},{id:F,debug:U}=v,z=![3,1].includes(null!=O?O:Number(g)),N={story_type:A,story_id:R,content_ids:k},G=T||h(b),Z={auxData:N,componentType:null!==(t=null==b?void 0:null===(l=b.display_options)||void 0===l?void 0:null===(p=l.content_display)||void 0===p?void 0:p.component_type)&&void 0!==t?t:y,impressionData:N,pinId:F,slotIndex:S,viewData:{pin_id:F},viewParameter:I,viewType:w},M={authDesktopSurface:G,disableHover:!C,pin:v,pinImageCrop:z?{height:E,width:E}:null,saveButtonOptions:f,pinOwner:_.has(A)&&L?L:null},B=(0,c.jsxs)(n.xu,{"data-test-id":o.Kb,children:[(0,c.jsx)(u.ZP,{...Z,...M,duploDisablePinCardPadding:m,duploIsSquarePin:z,duploQueryRef:null,trafficSource:"ShoppingDynamicHeightGrid"===G?"shop_feed":void 0}),U&&(0,c.jsx)(a.Wu,{data:U})]});return z?(0,c.jsx)(n.xu,{flex:"none",width:m?j:E,children:B},F):B}},57427:(e,t,l)=>{l.d(t,{Z:()=>r});var i=l(883119),n=l(785893);function r({height:e,width:t,src:l}){return(0,n.jsx)(i.xu,{height:e,width:t,children:(0,n.jsx)(i.Ee,{naturalHeight:e,naturalWidth:t,src:l,color:"lightGray",fit:"cover",alt:"",role:"presentation"})})}},456183:(e,t,l)=>{l.d(t,{Z:()=>m});var i=l(667294),n=l(616550),r=l(883119),o=l(407043),a=l(366428),s=l(444445),d=l(327651),u=l(641968),c=l(608760),p=l(785893);let _=.4*s.yF,h=.75*s.yF;var g=l(57427);let y={5:({item:e,imagePlaceholderColor:t=c.hK})=>{let{username:l,image_large_url:i,full_name:n,domain_verified:o=!1,is_verified_merchant:a=!1}=e;return(0,p.jsxs)(r.xu,{width:s.yF,children:[(0,p.jsx)(r.xu,{display:"flex",justifyContent:"center",marginBottom:2,children:(0,p.jsx)(d.Z,{size:120,fullName:n||l,src:i||"",color:t})}),n&&(0,p.jsx)(u.Z,{name:n,isDomainVerified:o,isVerifiedMerchant:a})]})},1:({item:e={},story:t,imagePlaceholderColor:l=c.hK})=>{var i,n,o;let{username:a,image_large_url:y,full_name:m,id:x,domain_verified:v=!1,is_verified_merchant:f=!1}=e,j=(null==t?void 0:null===(i=t.custom_properties)||void 0===i?void 0:null===(n=i.preview_image_map)||void 0===n?void 0:null===(o=n[x])||void 0===o?void 0:o[0])||"";return(0,p.jsxs)(r.xu,{width:s.yF,height:s.yF,children:[(0,p.jsx)(r.zd,{rounding:4,height:h,width:s.yF,wash:!0,children:(0,p.jsx)(g.Z,{height:s.yF,width:s.yF,src:j})}),(0,p.jsx)(r.xu,{display:"flex",justifyContent:"center",marginTop:-12,marginBottom:2,children:(0,p.jsx)(d.Z,{size:_,src:y||"",color:l,fullName:m||a})}),m&&(0,p.jsx)(u.Z,{name:m,isDomainVerified:v,isVerifiedMerchant:f})]})},2:({item:e={},story:t})=>{var l,i;let{username:n,image_large_url:o,full_name:a,id:c,domain_verified:y=!1,is_verified_merchant:m=!1}=e,[x="",v=""]=(null==t?void 0:null===(l=t.custom_properties)||void 0===l?void 0:null===(i=l.preview_image_map)||void 0===i?void 0:i[c])||[];return(0,p.jsxs)(r.xu,{width:s.yF,children:[(0,p.jsxs)(r.xu,{height:s.yF,children:[(0,p.jsx)(r.zd,{rounding:4,height:h,width:s.yF,wash:!0,children:(0,p.jsxs)(r.kC,{children:[(0,p.jsx)(g.Z,{height:s.yF,width:s.yF/2,src:x}),(0,p.jsx)(r.xu,{color:"default",width:2}),(0,p.jsx)(g.Z,{height:s.yF,width:s.yF/2,src:v})]})}),(0,p.jsx)(r.xu,{display:"flex",justifyContent:"center",marginTop:-12,marginBottom:2,children:(0,p.jsx)(d.Z,{size:_,src:o||"",color:"gray",fullName:a||n})})]}),a&&(0,p.jsx)(u.Z,{name:a,isDomainVerified:y,isVerifiedMerchant:m})]})}};function m(e){var t,l;let{logContextEvent:s}=(0,o.v)(),d=(0,n.useHistory)(),{story:u={},slotIndex:c,component:_,view:h,viewParameter:g,item:m}=e,x=(null===(t=u.display_options)||void 0===t?void 0:null===(l=t.item_view_rep_style)||void 0===l?void 0:l.user_rep_style)||5,v=y[x],f=(0,i.useMemo)(()=>({story_type:u.story_type,story_id:u.id,content_ids:u.content_ids,user_id:m.id}),[m,u]),j=(0,a.Z)({contextLogData:f,impressionType:"User",loggingId:m.id,objectIdStr:m.id,slotIndex:c,viewParameter:g,viewType:h});return v?(0,p.jsx)(r.iP,{ref:j,onTap:()=>{s({event_type:101,view_type:h,view_parameter:g,component:_,aux_data:f}),d.push(`/${m.username}`)},children:(0,p.jsx)(v,{...e})}):null}},327651:(e,t,l)=>{l.d(t,{Z:()=>d});var i=l(883119),n=l(992061),r=l(898781),o=l(349700),a=l(215292),s=l(785893);function d({color:e,fullName:t,size:l,src:d}){let u=(0,r.ZP)();return(0,s.jsx)(a.q,{children:({hovered:r,onMouseEnter:a,onMouseLeave:c})=>(0,s.jsx)(i.xu,{marginBottom:2,"data-test-id":"category-bubble",onMouseEnter:a,onMouseLeave:c,children:(0,s.jsxs)(i.zd,{height:l,rounding:"circle",width:l,wash:!0,children:[(0,s.jsx)(n.Z,{hovered:r,rounding:"circle"}),(0,s.jsx)(i.Ee,{naturalHeight:l,naturalWidth:l,src:d,color:e,alt:(0,o.nk)(u._('Logo of {{ fullName }}', 'itemRep.userRep.brandLogo', 'Alt text for the brand logo'),{fullName:t}).join("")})]})})})}},641968:(e,t,l)=>{l.d(t,{Z:()=>o});var i=l(883119),n=l(865607),r=l(785893);function o({name:e,isDomainVerified:t,isVerifiedMerchant:l}){return(0,r.jsxs)(i.kC,{alignItems:"stretch",justifyContent:"center",alignContent:"center",gap:1,children:[e&&(0,r.jsx)(i.xv,{inline:!0,weight:"bold",children:e}),(0,r.jsx)(n.Z,{size:"sm",isVerifiedMerchant:l,hasVerifiedIdentity:t})]})}},87165:(e,t,l)=>{l.d(t,{i:()=>a});var i=l(883119),n=l(444445),r=l(785893);function o(){return(0,r.jsx)(i.xu,{width:n.yF})}function a(e){return Array(e).fill().map((e,t)=>(0,r.jsx)(o,{},t))}},63404:(e,t,l)=>{l.d(t,{Z:()=>v,v:()=>g});var i,n=l(167912),r=l(240684),o=l(175892),a=l(897243),s=l(934494),d=l(701865),u=l(981228),c=l(988874),p=l(456183),_=l(785893);let h=(0,r.ZP)({resolved:{},chunkName:()=>"DefaultPinRep",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!l.m[t]},importAsync:()=>Promise.all([l.e(97270),l.e(10966),l.e(18352),l.e(40566),l.e(39921)]).then(l.bind(l,369083)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return l(t)},resolve:()=>369083});function g(e){var t;return(null==e?void 0:e.type)==="pin"&&((null===(t=e.images)||void 0===t?void 0:t["236x"])||{}).url||null}let y=void 0!==i?i:i=l(883597);function m(e){var t,l,i;let{itemData:n,...r}=e,{slotIndex:s,view:g,item:y}=e,{pinId:m,pinGraphQLRef:x}=n;if(x)return m&&g?(0,_.jsx)(h,{duploQueryRef:x,slotIndex:s,pinId:m,viewType:g}):null;switch(null==y?void 0:y.type){case"pin":return(0,_.jsx)(c.Z,{...r});case"user":return(0,_.jsx)(p.Z,{...r});case"board_more_ideas_feed_upsell":return(0,_.jsx)(u.Z,{...r});case"explorearticle":return(0,_.jsx)(d.Z,{...r});case"productgroup":return(0,_.jsx)(o.Z,{productGroup:{coverImages:null===(t=y.cover_images)||void 0===t?void 0:t.map(e=>(0,a.b)(e)),description:y.description,entityId:null!==(l=y.id)&&void 0!==l?l:"",groupType:y.group_type,name:y.name,previewPins:null===(i=y.preview_pins)||void 0===i?void 0:i.map(e=>({imageSignature:e.image_signature,images:e.images&&(0,a.b)(e.images)}))},slotIndex:s});default:return null}}let x=(0,s.Z)({useGraphQLAdapter:e=>{let t=(0,n.useFragment)(y,e),{pinId:l}=t;return{pinId:l,pinGraphQLRef:t}},useLegacyAdapter:e=>e?{item:e,pinGraphQLRef:null}:null});function v({pinGraphQLRef:e,...t}){return(0,_.jsx)(x,{input:e?{enabled:!0,data:e}:{enabled:!1,data:t.item},children:({data:e})=>e&&(0,_.jsx)(m,{...t,itemData:e})})}},643897:(e,t,l)=>{l.d(t,{Z:()=>a});var i=l(883119),n=l(608760),r=l(785893);let o=new Map([["pin",4]]);function a({children:e,itemType:t}){return(0,r.jsx)(i.xu,{marginBottom:o.get(t)||n.mT,children:e})}},608760:(e,t,l)=>{l.d(t,{g5:()=>o,hK:()=>n,mT:()=>r});var i=l(988874);let n="lightGray",r=8,o={itemRep:i.Z,shape:"square",getImage:()=>""}},563886:(e,t,l)=>{l.d(t,{Z:()=>G});var i,n=l(667294),r=l(167912),o=l(883119),a=l(792182),s=l(934494),d=l(444445),u=l(898781),c=l(754320),p=l(668916),_=l(48125),h=l(429091),g=l(180910),y=l(34518),m=l(232921),x=l(63404),v=l(580326),f=l(848385),j=l(605706),S=l(782975),b=l(905031),T=l(50286),w=l(435497),I=l(239062),P=l(751191),C=l(455024),E=l(390598),A=l(785893);let R=new Set([3,4]),k=new Set([1]),D=({text:e,url:t})=>!!e&&!!t,L=e=>D(e)&&R.has(e.location),O=e=>D(e)&&k.has(e.location),F=void 0!==i?i:i=l(992872),U=({contentVisibleItemCount:e,customWidth:t,gutterWidth:l,isMoreIdeasListCard:i,isStyleBubble:n,isImageAndTitleRep:r,isStorefrontSpotlightCarousel:o,isSfModuleOnMobile:a,isSmallMobileScreen:s,isStackedCollageDisplayCard:u,isTriplePreviewDisplayCard:c,totalObjectCount:y,containerRef:x,deviceType:v,windowWidth:f})=>{let j=a?d.tG:d.yF,S="desktop"===v;if(c)return S?g.d:g.Gd;if(u)return S?_.m:_.d;if(i){if(S)return m.xR;if(1===y){var b;return(null===(b=x.current)||void 0===b?void 0:b.clientWidth)||0}return s?m.wg:m.lf}if(n)return h.u;if(r)return p.H;if(o)return E.PRODUCT_GROUP_COVER_IMAGE_DIMENSIONS.WIDTH;if(e){let i=S?d.oX:d.yt,n=null!=l?l:i,r=void 0!==t?(0,d.Wv)({contentVisibleItemCount:e,gap:n,width:parseInt(t,10)}):d.yF,o=S?r:d.tG,a=Math.floor(e);return Math.min(Math.floor((f-a*n)/e),parseInt(o,10))}return j};function z(e){var t,l,i,r,s,p,_,h,g,m,E,R,k,D,F,z,N,G,Z,M;let{addContentRight:B,componentFallback:K,dangerouslySetActionUrl:H,disableHeader:W,gutterWidth:V,initialSlotIndex:X=0,styleOverrides:Y,saveButtonOptions:q,storyData:$,surface:Q,view:J,viewParameter:ee,width:et}=e,{data:{contentIds:el,displayOptions:ei,objects:en,action:er,storyId:eo,storyTitle:ea,storyType:es},rawStoryData:ed,storyGraphqlRef:eu,__dataKeys:ec}=$,[ep,e_]=(0,n.useState)(0),eh=(0,n.useRef)(null),eg=(0,b.Z)(),ey=(0,j.Z)(),em=(0,T.ZP)(),ex="desktop"===em,{width:ev=0}=(0,a.Z)()||{},ef=(0,u.ZP)();if(!en)return null;let ej=null!==(t=null==ei?void 0:null===(l=ei.contentDisplay)||void 0===l?void 0:l.componentType)&&void 0!==t?t:K,eS=(null==ei?void 0:ei.carouselFadeEnds)===1,eb=en.length,eT={carouselSlots:en.map(e=>"graphql"===e.type?{title:void 0,id:void 0}:{title:e.data.title,id:e.data.id}),entityId:"",index:ep},{text:ew,url:eI,location:eP}=null!=er?er:{},eC=null!=H?H:eI,eE={backgroundColor:"default",hoverColor:"default",iconColor:"default",size:null!==(i=null==Y?void 0:Y.navigationFabSize)&&void 0!==i?i:void 0},eA={backgroundColor:"secondary",hoverColor:"secondary",iconColor:"subtle",size:32},eR=null==ei?void 0:null===(r=ei.itemViewRepStyle)||void 0===r?void 0:r.moreIdeasRepStyle,ek=y.kx[eR],eD=(null==ei?void 0:null===(s=ei.itemViewRepStyle)||void 0===s?void 0:s.exploreArticleRepStyle)===4,eL=(null==ei?void 0:null===(p=ei.itemViewRepStyle)||void 0===p?void 0:p.exploreArticleRepStyle)===21,eO=(null==ei?void 0:null===(_=ei.contentDisplay)||void 0===_?void 0:_.componentType)===13698,eF=(null==ei?void 0:null===(h=ei.itemViewRepStyle)||void 0===h?void 0:h.exploreArticleRepStyle)===19,eU=(null==ei?void 0:null===(g=ei.itemViewRepStyle)||void 0===g?void 0:g.exploreArticleRepStyle)===20,ez=(null==ei?void 0:null===(m=ei.headerDisplay)||void 0===m?void 0:m.expandedTextAlignment)!==null,eN=ex?null==ei?void 0:null===(E=ei.contentDisplay)||void 0===E?void 0:null===(R=E.contentVisibleItemCount)||void 0===R?void 0:R.web:null==ei?void 0:null===(k=ei.contentDisplay)||void 0===k?void 0:null===(D=k.contentVisibleItemCount)||void 0===D?void 0:D.mobile,eG=U({containerRef:eh,contentVisibleItemCount:eN,customWidth:et,gutterWidth:V,isMoreIdeasListCard:1===eR,isStyleBubble:eD,isImageAndTitleRep:eL,isStorefrontSpotlightCarousel:eO,isSfModuleOnMobile:eg,isSmallMobileScreen:ey,totalObjectCount:eb,isStackedCollageDisplayCard:eU,isTriplePreviewDisplayCard:eF,deviceType:em,windowWidth:ev}),eZ=null==ei?void 0:null===(F=ei.contentDisplay)||void 0===F?void 0:null===(z=F.carouselDisplayOptions)||void 0===z?void 0:z.navigationType,eM=ex&&0===eZ,eB=null!=V?V:d.oX,eK=ex?eB:d.yt,eH=en.filter(({data:e})=>!!e),eW=null==ei?void 0:null===(N=ei.contentDisplay)||void 0===N?void 0:null===(G=N.gridLayout)||void 0===G?void 0:G.cols,eV="number"==typeof eW?eW:-1,eX=eV*(ex?d.yF:d.tG)+(eV-1)*eK,eY=-1===eV||((null===(Z=eh.current)||void 0===Z?void 0:Z.clientWidth)||0)<eX,eq=(0,C.tD)({slotWidth:eG,containerWidth:(null===(M=eh.current)||void 0===M?void 0:M.clientWidth)||0,gap:eK,numberOfSlides:eH.length,index:ep}),e$=et?eG:void 0;return(0,A.jsxs)(o.kC,{direction:"column",width:eY?void 0:eX,children:[ea&&!W&&(0,A.jsx)(f.Z,{storyKey:ec.HeaderModule_story,showExpanded:ez}),(0,A.jsxs)(o.xu,{position:"relative",ref:eh,marginBottom:eM?8:0,children:[eM&&(0,A.jsx)(I.default,{backNode:(0,A.jsx)(P.Z,{...eE,showFab:!0,iconType:"back"}),carouselData:eT,carouselIndex:ep,componentType:ej,forwardNode:(0,A.jsx)(P.Z,{...eE,showFab:!0,iconType:"forward"}),handleCarouselSwipe:e=>{e_(e)},isShowingLastSlide:eq,pinKey:null,viewParameter:ee,viewType:J,contextLogData:eR?{index:ep}:{}}),(0,A.jsxs)(w.Z,{componentType:ek,containerRef:eh,gap:eK,id:"structured-feed-carousel-module",impressionType:eR?"BoardMoreIdeasRep":"Pin",index:ep,shouldBeDragCarousel:!ex,styleOverrides:Y,slideWidth:eG,viewParameter:ee,view:J,children:[eH.map((e,t)=>{var l,i;if(t===eH.length-1&&er&&ew&&eC&&L(er)){let l="legacy"===e.type&&(0,x.v)(e.data)||"";return l&&(0,A.jsx)(c.Z,{imageWidth:e$,buttonText:ew,component:ej,contentIds:null!=el?el:void 0,element:179,previewImageSrc:l,url:eC,isInMobileCarousel:!ex,slideWidth:eG,storyId:null!=eo?eo:"",storyType:es,view:J,viewParameter:ee},"graphql"===e.type?`${t}`:(0,S.Z)(e.data,t))}return(0,A.jsx)(x.Z,{imageWidth:e$,isInViewOrNext:(0,C.Iw)({slotWidth:eG,containerWidth:(null===(l=eh.current)||void 0===l?void 0:l.clientWidth)||0,gap:eK,numberOfSlides:eH.length,index:t,currentIndex:ep}),item:"legacy"===e.type?{...e.data,..."board_more_ideas_feed_upsell"===e.data.type?{header_text:ef._('More ideas for', 'moreIdeasBoardRepCarousel.carousel.headText', 'Header text for JBI Carousel on Homefeed')}:{}}:null,isInMobileCarousel:!ex,saveButtonOptions:q,slideWidth:eG,slotIndex:X+t,story:null!=ed?ed:void 0,surface:Q,view:J,viewParameter:ee,pinGraphQLRef:eu&&"graphql"===e.type&&(null===(i=e.data)||void 0===i?void 0:i.__typename)==="Pin"?e.data:null},"graphql"===e.type?`${t}`:(0,S.Z)(e.data,t))}),B]}),eS&&ep>0&&(0,A.jsx)(o.xu,{height:"100%",position:"absolute",left:!0,top:!0,width:80,dangerouslySetInlineStyle:{__style:{background:"linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)"}}}),eS&&!eq&&(0,A.jsx)(o.xu,{height:"100%",position:"absolute",right:!0,top:!0,width:80,dangerouslySetInlineStyle:{__style:{background:"linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)"}}})]}),ex&&1===eZ&&(0,A.jsx)(o.xu,{position:"relative",marginTop:3,marginBottom:8,width:"100%",children:(0,A.jsx)(I.default,{addEllipsis:!0,alwaysShowNavigationArrows:!0,backNode:(0,A.jsx)(P.Z,{...eA,showFab:!0,iconType:"back"}),carouselData:eT,carouselIndex:ep,componentType:ej,ellipsisVariant:"dark",forwardNode:(0,A.jsx)(P.Z,{...eA,showFab:!0,iconType:"forward"}),handleCarouselSwipe:e=>{e_(e)},isShowingLastSlide:eq,pinKey:null,viewParameter:ee,viewType:J,contextLogData:eR?{index:ep}:{},sliderStyleOverride:{padding:"0px"}})}),er&&O(er)&&(0,A.jsx)(o.xu,{marginTop:4,children:(0,A.jsx)(v.Z,{text:ew,location:eP,url:eC})})]})}let N=(0,s.Z)({useGraphQLAdapter:e=>{var t;let l=(0,r.useFragment)(F,e);return{data:{...l,objects:null===(t=l.objects)||void 0===t?void 0:t.map(e=>({type:"graphql",data:e}))},rawStoryData:null,storyGraphqlRef:l,__dataKeys:{HeaderModule_story:{type:"graphqlRef",data:l}}}},useLegacyAdapter:e=>{var t,l,i;return e&&{data:{action:e.action&&{location:e.action.location,text:e.action.text,url:e.action.url},contentIds:e.content_ids,displayOptions:e.display_options&&{contentDisplay:e.display_options.content_display&&{gridLayout:e.display_options.content_display.grid_layout&&{cols:e.display_options.content_display.grid_layout.cols},componentType:e.display_options.content_display.component_type,contentVisibleItemCount:{mobile:null===(t=e.display_options.content_display.content_visible_item_count)||void 0===t?void 0:t.mobile,web:null===(l=e.display_options.content_display.content_visible_item_count)||void 0===l?void 0:l.web},carouselDisplayOptions:e.display_options.content_display.carousel_display_options&&{navigationType:e.display_options.content_display.carousel_display_options.navigation_type}},carouselFadeEnds:e.display_options.carousel_fade_ends,itemViewRepStyle:e.display_options.item_view_rep_style&&{exploreArticleRepStyle:e.display_options.item_view_rep_style.explore_article_rep_style,moreIdeasRepStyle:e.display_options.item_view_rep_style.more_ideas_rep_style},headerDisplay:e.display_options.header_display&&{expandedTextAlignment:e.display_options.header_display.expanded_text_alignment}},objects:null===(i=e.objects)||void 0===i?void 0:i.map(e=>({type:"legacy",data:e})),storyId:e.id,storyTitle:e.title?{__typename:"StoryText"}:null,storyType:e.story_type},rawStoryData:e,storyGraphqlRef:null,__dataKeys:{HeaderModule_story:{type:"deprecated",data:e}}}}});function G({storyGraphqlRef:e,...t}){return(0,A.jsx)(N,{input:e?{enabled:!0,data:e}:{enabled:!1,data:t.story},children:({data:e})=>e&&(0,A.jsx)(z,{...t,storyData:e})})}},580326:(e,t,l)=>{l.d(t,{Z:()=>r});var i=l(883119),n=l(785893);function r({url:e,text:t,location:l}){return 1===l&&e&&t?(0,n.jsx)(i.kC,{alignItems:"center",justifyContent:"center",children:(0,n.jsx)(i.ZP,{text:t,href:e})}):null}},848385:(e,t,l)=>{l.d(t,{Z:()=>f}),l(167912);var i,n=l(616550),r=l(883119),o=l(407043),a=l(356997),s=l(357998),d=l(898781),u=l(50286),c=l(865607),p=l(785893);let _={1:"start",2:"center"},h={1:"100",2:"300"},g={1:"400",4:"200",3:"500",2:"600"},y=new Set([2,4]),m=void 0!==i?i:i=l(612587);function x({showExpanded:e=!1,view:t,viewParameter:l,storyData:i}){var s,d,m,x;let f=(0,n.useHistory)(),{logContextEvent:j}=(0,o.v)(),S=(0,u.HG)(),{fullName:b,isVerifiedMerchant:T,verifiedIdentity:w,username:I,imageMediumUrl:P}=i.user||Object.freeze({}),C=b||(null===(s=i.storyTitle)||void 0===s?void 0:s.format),{url:E,text:A,location:R,style:k}=i.action||Object.freeze({}),D=E||I||"",L=i.displayOptions||Object.freeze({}),O=L.headerDisplay||Object.freeze({}),F=e?O.expandedTextAlignment:O.textAlignment,U=_[F||1],z=_[O.subtitleAlignment||1],N=h[O.headerSize||1],G=O.headerSize&&g[O.headerSize]?g[O.headerSize]:g[1],Z=1===O.subtitleStyle?G:"200",M=(e,t)=>null!=e?e:t,B=M(L.titleTextColor,"default"),K=null!=(x=L.titleTextColor)?x:"default",H=M(L.subtitleTextColor,"subtle"),W=1===O.titlePosition,V=!!(null!==(d=i.subtitle)&&void 0!==d&&d.format)&&(0,p.jsx)(r.X6,{size:Z,color:H,align:z,children:i.subtitle.format}),X=(0,p.jsx)(r.X6,{accessibilityLevel:2,size:G,color:B,align:U,children:C}),Y=()=>{var e;return j({component:null===(e=L.contentDisplay)||void 0===e?void 0:e.componentType,element:179,event_type:S?101:102,view_parameter:l,view_type:t})},q=e=>{Y();let t=e.replace(/^\/+/,"");f.push(`/${t}`)};return(0,p.jsx)(r.xu,{marginBottom:S?4:2,children:(0,p.jsxs)(r.kC,{gap:{row:0,column:2},direction:"column",children:[W&&V,(0,p.jsxs)(r.kC,{alignItems:"center",justifyContent:U,children:[I&&P&&(0,p.jsx)(a.qE,{name:I,size:"sm",src:P}),(0,p.jsxs)(r.xu,{marginStart:U===_[1]?2:0,alignItems:"baseline",justifyContent:U,display:"flex",flex:e?"grow":"shrink",children:[D?(0,p.jsx)(r.xu,{"data-test-id":"sf-header-heading",children:(0,p.jsx)(r.Tg,{href:D,onTap:({event:e})=>{e.stopPropagation(),q(D)},tapStyle:"compress",children:X})}):X,T&&(0,p.jsx)(r.xu,{marginStart:2,children:(0,p.jsx)(c.Z,{hasVerifiedIdentity:!!(null==w?void 0:w.verified),isVerifiedMerchant:T,size:"xs"})})]}),y.has(R)&&E&&(0,p.jsx)(r.xu,{"data-test-id":"sf-header-action-button",children:(0,p.jsx)(v,{headerTitle:C,onClick:Y,style:k,text:A,url:E})})]}),!W&&V,null!==(m=i.storyDescription)&&void 0!==m&&m.format?(0,p.jsx)(r.xv,{size:N,color:K,align:U,weight:"bold",children:i.storyDescription.format}):null]})})}function v({headerTitle:e,onClick:t,style:l,text:i,url:n}){let o=(0,d.ZP)();return 3!==l&&i?(0,p.jsx)(r.xu,{marginStart:6,children:(0,p.jsx)(r.ZP,{text:i,href:n,onClick:t})}):(0,p.jsx)(r.I_,{accessibilityLabel:e||o._('See more', 'headerModule.headerModuleActionButton.iconButton', 'An right arrow icon button to show more similar pins to the user in a new page'),bgColor:"transparent",iconColor:"darkGray",icon:"arrow-forward",size:"sm",href:n,onClick:t})}function f({storyKey:e,...t}){let{data:l}=(0,s.Q)(m,e,{useLegacyAdapter:e=>({action:e.action&&{location:e.action.location,style:e.action.style,text:e.action.text,url:e.action.url},displayOptions:e.display_options&&{contentDisplay:e.display_options.content_display&&{componentType:e.display_options.content_display.component_type},headerDisplay:e.display_options.header_display&&{expandedTextAlignment:e.display_options.header_display.expanded_text_alignment,headerSize:e.display_options.header_display.header_size,subtitleAlignment:e.display_options.header_display.subtitle_alignment,subtitleStyle:e.display_options.header_display.subtitle_style,textAlignment:e.display_options.header_display.text_alignment,titlePosition:e.display_options.header_display.title_position},subtitleTextColor:e.display_options.subtitle_text_color,titleTextColor:e.display_options.title_text_color},storyDescription:e.description&&{format:e.description.format},storyTitle:e.title&&{format:e.title.format},subtitle:e.subtitle&&{format:e.subtitle.format},user:e.user&&{fullName:e.user.full_name,imageMediumUrl:e.user.image_medium_url,isVerifiedMerchant:e.user.is_verified_merchant,username:e.user.username,verifiedIdentity:e.user.verified_identity&&{verified:e.user.verified_identity.verified}}})});return(0,p.jsx)(x,{...t,storyData:l})}},217149:(e,t,l)=>{l.r(t),l.d(t,{default:()=>Q});var i,n=l(167912),r=l(883119),o=l(934494),a=l(366428),s=l(563886),d=l(580326),u=l(444445),c=l(701865),p=l(988874),_=l(456183),h=l(608760),g=l(848385),y=l(785893);let m=()=>(0,y.jsx)(r.xu,{height:u.yF,width:u.yF,color:"secondary"}),x={1:{itemRep:p.Z,deprecatedActionShape:"square",deprecatedGetActionImage:e=>{var t,l;return(null===(t=e.images)||void 0===t?void 0:null===(l=t.orig)||void 0===l?void 0:l.url)||""}},4:{itemRep:c.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>{var t,l;return(null===(t=e.images)||void 0===t?void 0:null===(l=t.orig)||void 0===l?void 0:l.url)||""}},2:{itemRep:_.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>e.image_large_url}};function v({componentFallback:e,showExpanded:t=!0,story:l,view:i,viewParameter:n}){var o,a,s,d,u;let c=(null===(o=l.display_options)||void 0===o?void 0:o.content_display)||{},p=c.model_type,_=x[p]||h.g5,v=_.itemRep||m,f=null!==(a=null===(s=l.display_options)||void 0===s?void 0:null===(d=s.content_display)||void 0===d?void 0:d.component_type)&&void 0!==a?a:e;return(0,y.jsx)(r.xu,{marginBottom:2,children:(0,y.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"center",direction:"column",children:[l.title&&(0,y.jsx)(g.Z,{storyKey:{type:"deprecated",data:l},showExpanded:t}),(0,y.jsx)(r.kC,{wrap:!0,gap:2,justifyContent:"center",children:null===(u=l.objects)||void 0===u?void 0:u.map(function(e,t){return(0,y.jsx)(v,{component:f,imagePlaceholderColor:"rgba(0, 0, 0, 0)",index:t,item:e,story:l,view:i,viewParameter:n},t)})})]})})}var f=l(667294),j=l(754320),S=l(87165),b=l(643897),T=l(905031),w=l(745312),I=l(50286);let P="rgba(0, 0, 0, 0)",C=()=>(0,y.jsx)(r.xu,{height:u.yF,width:u.yF,color:"secondary"}),E={1:{itemRep:p.Z,deprecatedActionShape:"square",deprecatedGetActionImage:e=>{var t,l;return(null===(t=e.images)||void 0===t?void 0:null===(l=t.orig)||void 0===l?void 0:l.url)||""}},4:{itemRep:c.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>{var t,l;return(null===(t=e.images)||void 0===t?void 0:null===(l=t.orig)||void 0===l?void 0:l.url)||""}},2:{itemRep:_.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>e.image_large_url}};function A({componentFallback:e,dangerouslySetActionUrl:t,dangerouslySetContentVisibleItemCount:l,disableHeader:i,dynamicItemWidth:n,gutterWidth:o,initialSlotIndex:a=0,showExpanded:s,story:d,surface:c,view:p,viewParameter:_,width:m}){var x,v,A,R,k,D,L,O;let F=(0,I.HG)(),U=(null===(x=d.display_options)||void 0===x?void 0:x.content_display)||{},z=U.model_type,N=E[z]||h.g5,G=N.itemRep||C,{action:Z}=d,M=t||(null===(v=d.action)||void 0===v?void 0:v.url)||"",B=null!==(A=null===(R=d.display_options)||void 0===R?void 0:null===(k=R.content_display)||void 0===k?void 0:k.component_type)&&void 0!==A?A:e,K=null===(D=U.grid_layout)||void 0===D?void 0:D.rows,H="number"==typeof K?K:1,W=null===(L=U.grid_layout)||void 0===L?void 0:L.cols,V="number"==typeof W?W:-1,X=-1===V,Y=null!=l?l:null===(O=U.content_visible_item_count)||void 0===O?void 0:O.web,q=Y&&m&&n?(0,u.Wv)({contentVisibleItemCount:Y,gap:null!=o?o:u.oX,width:parseInt(m,10)}):u.yF,{containerRef:$,itemsToRender:Q,actionItem:J}=(0,w.n)({items:d.objects||[],itemWidth:(0,T.Z)()?u.tG:q,itemGap:null!=o?o:u.oX,actionItemType:Z?"one":void 0,numRows:H}),ee=J&&N.deprecatedGetActionImage?N.deprecatedGetActionImage(J):void 0,et=X?Q:d.objects||[],el=et.map((e,t)=>(0,y.jsx)(b.Z,{itemType:"string"==typeof e.type?e.type:null,children:(0,y.jsx)(G,{component:B,imagePlaceholderColor:P,imageWidth:q,index:t,item:e,slotIndex:a+t,story:d,surface:c,view:p,viewParameter:_})},t)),ei=!!M&&!!(null!=Z&&Z.text)&&ee&&(0,y.jsx)(j.Z,{contentIds:d.content_ids,buttonText:Z.text,component:B,element:179,imageWidth:q,previewImageSrc:ee,shape:N.deprecatedActionShape,storyId:d.id,storyType:d.story_type,url:M,view:p,viewParameter:_});return(0,y.jsxs)(r.xu,{display:"flex",color:"default",alignItems:"stretch",justifyContent:"start",direction:"column",children:[d.title&&!i&&(0,y.jsx)(g.Z,{storyKey:{type:"deprecated",data:d},showExpanded:s}),X?(0,y.jsxs)(w.Z,{itemGap:null!=o?o:u.oX,containerRef:$,rowAlignment:"center",numRows:H,children:[el,ei,H>1&&(0,S.i)(12)]}):(0,y.jsxs)(f.Fragment,{children:[Array(H).fill(null).map((e,t)=>(0,y.jsx)(r.kC,{alignItems:"stretch",justifyContent:"start",gap:F?u.jC:u.D6,wrap:V<=1,children:V>0&&Array(V).fill(null).map((e,l)=>el[t*V+l])},et[t].id)),ei]})]})}function R({componentFallback:e,showExpanded:t=!0,story:l,view:i,viewParameter:n}){var o,a,s,d;let c=(null===(o=l.display_options)||void 0===o?void 0:o.content_display)||{},p=c.model_type,_=E[p]||h.g5,m=_.itemRep||C,x=null!==(a=null===(s=l.display_options)||void 0===s?void 0:null===(d=s.content_display)||void 0===d?void 0:d.component_type)&&void 0!==a?a:e,v=(0,T.Z)()?u.tG:u.yF;return(0,y.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[l.title&&(0,y.jsx)(g.Z,{storyKey:{type:"deprecated",data:l},showExpanded:t}),(0,y.jsx)(r.Rk,{columnWidth:v,renderItem:({data:e,itemIdx:t})=>(0,y.jsx)(m,{component:x,imagePlaceholderColor:P,index:t,item:e,story:l,view:i,viewParameter:n},t),gutterWidth:u.oX,items:l.objects||[],layout:"flexible"})]})}function k(e){var t,l;switch(null===(t=e.story.display_options)||void 0===t?void 0:null===(l=t.content_display)||void 0===l?void 0:l.pins_display){case 3:case 1:return(0,y.jsx)(R,{...e});default:return(0,y.jsx)(A,{...e})}}var D=l(792182),L=l(616550),O=l(407043),F=l(356997),U=l(898781),z=l(477802);let N=({actionText:e,actionUrl:t,articleId:l,author:i,authorAvatar:n,component:o,contentIds:s,coverImage:d,debug:u,index:c,isFullWidth:p=!1,onImageLoad:_,storyId:h,storyType:g,subtitle:m,title:x,view:v,viewParameter:j,width:S,windowWidth:b})=>{let T=(0,U.ZP)(),w=(0,L.useHistory)(),{logContextEvent:I}=(0,O.v)(),[P,C]=(0,f.useState)(!1),E=(0,a.Z)({loggingId:l,objectIdStr:l,impressionType:"Article",contextLogData:{content_ids:s,story_id:h,story_type:g,article_id:l},slotIndex:c,viewParameter:j,viewType:v,componentType:o});return(0,y.jsx)(r.xu,{"data-test-id":"sf-hero",children:(0,y.jsxs)(r.xu,{ref:E,width:S,height:"auto",onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:[(0,y.jsx)(r.iP,{onTap:()=>{I({event_type:101,view_type:v,view_parameter:j,component:o,aux_data:{article_id:l,content_ids:s,story_id:h,story_type:g}}),w.push(t)},children:(0,y.jsxs)(r.xu,{height:p?400:"35vw",maxHeight:500,overflow:"hidden",position:"relative",children:[(0,y.jsx)(r.xu,{height:"100%",width:"100%",dangerouslySetInlineStyle:{__style:{transition:"transform 0.4s",transform:P?"scale(1.5)":"scale(1)"}},children:(0,y.jsx)(r.Ee,{src:d,alt:T._('Cover image of this shopping spotlight', 'hero.heroCoverImage', 'alt text for an image previewing the contents of a spotlight article'),color:"#fff",onLoad:_,fit:"cover",naturalHeight:400,naturalWidth:400,children:(0,y.jsx)(r.xu,{display:"block",height:"100%",width:"100%",color:"transparentDarkGray",opacity:.3})})}),(0,y.jsx)(r.xu,{width:"100%",position:"absolute",padding:6,marginBottom:p?12:0,bottom:!0,children:(0,y.jsxs)(r.kC,{direction:"column",height:"100%",justifyContent:"end",children:[(0,y.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{transition:"transform 0.4s",transform:P?"translateY(-20px)":"translateY(20px)"}},children:(0,y.jsx)(r.X6,{size:b<=822?"600":b<1e3?"400":b<1100?"500":"600",color:"light",children:x})}),(0,y.jsxs)(r.xu,{display:"block",height:P?"auto":20,overflow:"hidden",dangerouslySetInlineStyle:{__style:{opacity:P?1:0,transition:P?"opacity 0.4s ease-in":"opacity 0.4s ease-out"}},children:[(0,y.jsx)(r.xv,{color:"inverse",children:m}),i&&(0,y.jsx)(r.xu,{marginTop:4,children:(0,y.jsxs)(r.kC,{direction:"row",alignItems:"center",children:[(0,y.jsx)(F.qE,{size:"md",src:n,name:i}),"\xa0",(0,y.jsx)(r.xv,{color:"inverse",children:i})]})})]}),(0,y.jsx)(r.xu,{width:"74px",marginTop:4,children:(0,y.jsx)(r.zx,{color:"white",size:"lg",onClick:()=>{w.push(t)},text:e})})]})})]})}),void 0!==u&&(0,y.jsx)(z.ZP,{data:u})]})})};var G=l(435497),Z=l(239062),M=l(751191);function B({onImageLoad:e,story:t,view:l,viewParameter:i,component:n,width:o}){var a;let[s,d]=(0,f.useState)(0),u=(0,f.useRef)(null),c=(null===(a=t.objects)||void 0===a?void 0:a.slice(0,3))||[];return(0,y.jsxs)(r.xu,{position:"relative",display:"flex",width:o,height:400,justifyContent:"center",alignItems:"end",ref:u,children:[(0,y.jsx)(G.Z,{id:t.id,index:s,slideWidth:o,containerRef:u,children:c.map((r,a)=>{var s,d,u,c,p;return(0,y.jsx)(N,{actionText:(null===(s=r.action)||void 0===s?void 0:s.text)||"",actionUrl:(null===(d=r.action)||void 0===d?void 0:d.url)||"",articleId:r.id,coverImage:r.cover_images&&(null===(u=r.cover_images[0].originals)||void 0===u?void 0:u.url)||"",debug:r.debug,onImageLoad:e,storyId:t.id,storyType:t.story_type,subtitle:(null===(c=r.subtitle)||void 0===c?void 0:c.format)||"",title:(null===(p=r.title)||void 0===p?void 0:p.format)||"",index:a,isFullWidth:!0,view:l,viewParameter:i,component:n,width:o,windowWidth:o},r.id)})}),(0,y.jsx)(r.xu,{display:"inlineBlock",height:"auto",position:"absolute",width:"60%",paddingY:5,children:(0,y.jsx)(Z.default,{addEllipsis:!0,pinKey:null,carouselIndex:s,carouselData:{index:s,entityId:"",carouselSlots:c.map(e=>({id:e.id,title:null}))},handleCarouselSwipe:e=>{d(e)},forwardNode:(0,y.jsx)(M.Z,{showFab:!0,iconType:"forward",iconColor:"inverse"}),backNode:(0,y.jsx)(M.Z,{showFab:!0,iconType:"back",iconColor:"inverse"})})})]})}function K({component:e,onImageLoad:t,story:l,view:i,viewParameter:n,windowWidth:o}){var a;let s=(null===(a=l.objects)||void 0===a?void 0:a.slice(0,3))||[];return(0,y.jsxs)(f.Fragment,{children:[(0,y.jsx)(r.xu,{flex:"grow",dangerouslySetInlineStyle:{__style:{backgroundColor:s[0].dominant_colors[0]}}}),s.map((r,a)=>{var s,d,u,c,p;return(0,y.jsx)(N,{actionText:(null===(s=r.action)||void 0===s?void 0:s.text)||"",actionUrl:(null===(d=r.action)||void 0===d?void 0:d.url)||"",articleId:r.id,coverImage:r.cover_images&&(null===(u=r.cover_images[0].originals)||void 0===u?void 0:u.url)||"",debug:r.debug,index:a,onImageLoad:t,storyId:l.id,storyType:l.story_type,subtitle:(null===(c=r.subtitle)||void 0===c?void 0:c.format)||"",title:(null===(p=r.title)||void 0===p?void 0:p.format)||"",view:i,viewParameter:n,component:e,width:500,windowWidth:o},r.id)}),(0,y.jsx)(r.xu,{flex:"grow",dangerouslySetInlineStyle:{__style:{backgroundColor:s[2].dominant_colors[0]}}})]})}function H({component:e,pwtSurfaceContext:t,story:l,view:i,viewParameter:n}){let{width:o}=(0,D.Z)()||{},a=()=>{t&&t.markConstraintComplete("RenderHeroImages")};return(0,y.jsx)(f.Fragment,{children:(0,y.jsx)(r.kC,{alignItems:"stretch",direction:"row",justifyContent:"start",width:o,children:3==(!o||o>822?3:1)?(0,y.jsx)(K,{component:e,onImageLoad:a,story:l,windowWidth:o,view:i,viewParameter:n}):(0,y.jsx)(B,{component:e,onImageLoad:a,story:l,width:o,view:i,viewParameter:n})})})}function W({story:e}){var t;let l=(0,L.useHistory)(),{user:i,custom_properties:n,action:o}=e||{},{full_name:a,username:s,image_medium_url:d}=i||{},c=a||(null===(t=e.title)||void 0===t?void 0:t.format)||"",{url:p,text:_}=o||{},{image:h}=n||{};if(!p||!_)return null;let g=(0,y.jsxs)(r.xu,{height:"100%",padding:2,display:"flex",justifyContent:"center",alignItems:"center",color:"transparentDarkGray",position:"relative",children:[s&&d&&(0,y.jsx)(r.xu,{position:"absolute",top:!0,left:!0,padding:2,children:(0,y.jsx)(F.qE,{name:s,size:"sm",src:d})}),c&&(0,y.jsx)(r.xv,{color:"inverse",weight:"bold",children:c})]});return(0,y.jsxs)(r.xu,{marginBottom:4,width:u.yF,children:[(0,y.jsx)(r.iP,{onTap:()=>l.push(p),children:(0,y.jsx)(r.zd,{rounding:2,wash:!0,height:u.yF,children:"string"==typeof h&&h?(0,y.jsx)(r.Ee,{naturalHeight:u.yF,naturalWidth:u.yF,src:h,fit:"contain",alt:c,children:g}):(0,y.jsx)(r.xu,{width:u.yF,height:u.yF,children:g})})}),(0,y.jsx)(r.xu,{marginTop:3,children:(0,y.jsx)(r.ZP,{fullWidth:!0,text:_,href:p})})]})}let V=new Set([101]),X="UNKNOWN_CONTAINER_TYPE",Y=void 0!==i?i:i=l(282167);function q(e){var t,l;let{componentFallback:i,initialSlotIndex:n,view:o,viewParameter:u,width:c,story:{data:{action:p,containerType:_,contentIds:h,displayOptions:m,storyId:x,storyType:f,trackingParams:j},forward:{dataKeys:S,rawStoryData:b,storyGraphqlRef:T}}}=e,w=null!==(t=null==m?void 0:null===(l=m.contentDisplay)||void 0===l?void 0:l.componentType)&&void 0!==t?t:i,I=(0,a.Z)({clientTrackingParams:j,componentType:w,contextLogData:{story_id:x,story_type:f,content_ids:h},impressionType:"Story",loggingId:x,slotIndex:n||0,viewParameter:u,viewType:o}),P={...e,component:w},C=(()=>{switch(_){case 90:return(0,y.jsx)(s.Z,{...P,story:b,storyGraphqlRef:T});case 88:let{story:e,...t}=P,l={...t,storyKey:S.HeaderModule_story};return(0,y.jsx)(g.Z,{...l});case 89:let{location:i,text:n,url:r}=p||{};return(0,y.jsx)(d.Z,{url:r,location:i,text:n});case 91:return!!b&&(0,y.jsx)(k,{...P,story:b});case 101:return!!b&&(0,y.jsx)(H,{...P,story:b});case 92:return!!b&&(0,y.jsx)(W,{...P,story:b});case 131:return!!b&&(0,y.jsx)(v,{...P,story:b});default:return X}})();return C===X?null:(0,y.jsxs)(r.xu,{ref:I,width:V.has(_)?void 0:c,children:[C,(0,y.jsx)(r.xu,{})]})}let $=(0,o.Z)({useGraphQLAdapter:e=>{let t=(0,n.useFragment)(Y,e);return{data:t,forward:{rawStoryData:null,storyGraphqlRef:t,dataKeys:{HeaderModule_story:{type:"graphqlRef",data:t}}}}},useLegacyAdapter:e=>{var t;return e&&{data:{action:e.action&&{location:e.action.location,text:e.action.text,url:e.action.url},containerType:"number"==typeof e.container_type?e.container_type:void 0,contentIds:e.content_ids,displayOptions:e.display_options&&{contentDisplay:e.display_options.content_display&&{componentType:e.display_options.content_display.component_type}},storyId:null!==(t=e.id)&&void 0!==t?t:"",storyType:e.story_type,trackingParams:e.tracking_params},forward:{rawStoryData:e,storyGraphqlRef:null,dataKeys:{HeaderModule_story:{type:"deprecated",data:e}}}}}});function Q({storyGraphqlRef:e,...t}){return(0,y.jsx)($,{input:e?{enabled:!0,data:e}:{enabled:!1,data:t.story},children:({data:e})=>e&&(0,y.jsx)(q,{...t,story:e})})}},605706:(e,t,l)=>{l.d(t,{Z:()=>r});var i=l(667294),n=l(50286);function r(){let[e,t]=(0,i.useState)(!1),l=(0,n.HG)();return(0,i.useEffect)(()=>{!l&&window.innerWidth<320&&t(!0)},[l,t]),e}},782975:(e,t,l)=>{l.d(t,{Z:()=>i});function i(e,t){var l;let i=`${e.type||""} ${t.toString()}`;switch(e.type){case"pin":return e.title||i;case"user":return e.username||i;case"explorearticle":return(null===(l=e.title)||void 0===l?void 0:l.format)||i;case"story":return e.id||i;default:return i}}},905031:(e,t,l)=>{l.d(t,{Z:()=>r});var i=l(792182),n=l(444445);function r(){let{width:e}=(0,i.Z)()||{width:0};return e<2*n.yF+n.$H}},499659:(e,t,l)=>{l.d(t,{Q6:()=>d,qe:()=>a,yU:()=>s});var i=l(239745);let n=(e,t)=>e.length===t.length&&e.every((e,l)=>e===t[l]),r=e=>e;function o(e,t=n,l=r){return function(i){let n=[];return function(...r){let o=n.find(e=>t(e.args,l(r)));if(o)return o.result;let a=i(...r);return n.push({args:l(r),result:a}),e&&n.length>e&&n.shift(),a}}}o();let a=o(1),s=o(void 0,n,e=>[JSON.stringify(e)]),d=o(0,(e,t)=>e.length===t.length&&e.every((e,l)=>(0,i.Z)(e,t[l])))},752802:(e,t,l)=>{l.d(t,{Z:()=>n});let i=["564x","736x","orig","474x","236x"],n=({images:e={},resolutionPreferences:t=i})=>{for(let l of t)if(e[l]&&e[l].url)return e[l];return null}},477802:(e,t,l)=>{l.d(t,{Qy:()=>d,Wu:()=>c,ZP:()=>u});var i=l(616550),n=l(883119),r=l(780280),o=l(826067),a=l(19121),s=l(785893);let d=()=>{let e=(0,a.Z)(),{isInternalIP:t}=(0,r.B)(),l=(0,i.useLocation)();return(t||e.isAuth&&e.isEmployee)&&Object.keys((0,o.mB)(l.search)).some(e=>e.startsWith("deb_"))};function u({data:e}){return(0,s.jsx)(n.xu,{overflow:"auto",dangerouslySetInlineStyle:{__style:{border:"2px solid red"}},"data-test-id":"debug-info",children:(0,s.jsx)("pre",{children:JSON.stringify(e,null,2).replace(/\\n/g,"\n")})})}let c=e=>(0,s.jsx)(n.xu,{width:236,dangerouslySetInlineStyle:{__style:{marginTop:10}},children:(0,s.jsx)(u,{...e})})},745312:(e,t,l)=>{l.d(t,{Z:()=>s,n:()=>o});var i=l(883119),n=l(667294),r=l(785893);function o({items:e,itemWidth:t,itemGap:l,numRows:i=1,actionItemType:r}){let o;let[a,s]=function(){let[e,t]=(0,n.useState)(0),l=(0,n.useRef)(null),i=(0,n.useCallback)(()=>{l.current&&t(l.current.clientWidth)},[l]);return(0,n.useEffect)(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[i]),(0,n.useEffect)(i),[e,l]}(),d=Math.floor((a+l)/(t+l))*i||i,u=e.slice(0,d),c=[];switch(r){case"nextFour":d>=e.length?c=[u.pop()]:(u.pop(),c=e.slice(d-1,d+3));break;case"one":o=d>e.length?e[Math.floor(e.length/2)]:u.pop()}return{containerRef:s,itemsToRender:u,actionItem:o,nextFourItems:c}}let a={center:{outer:"center",inner:"center"},left:{outer:"start",inner:"start"},right:{outer:"end",inner:"end"}};function s({children:e,itemGap:t,containerRef:l,numRows:n=1,rowAlignment:o="center"}){let s=a[o];return(0,r.jsx)(i.xu,{ref:l,width:"100%",children:(0,r.jsx)(i.kC,{alignItems:"center",justifyContent:s.outer,children:(0,r.jsx)(i.kC,{justifyContent:s.inner,gap:{row:Math.floor(t/4),column:0},wrap:n>1,children:e})})})}},487392:(e,t,l)=>{l.d(t,{Z:()=>o});var i=l(780280),n=l(784590),r=l(19121);function o(){var e;let t=(0,i.B)(),l=(0,r.Z)(),{advertiser:o}=t,a=(0,n.Z)(null!=o&&o.merchant_id?null:{name:"UserResource",options:{user_id:o?o.owner_user_id:l.isAuth&&l.id,field_set_key:"merchant_summary"}});return{merchantId:(null==o?void 0:o.merchant_id)||(null===(e=a.data)||void 0===e?void 0:e.ppa_merchant_id)||"",advertiserId:(null==o?void 0:o.id)||"",ownerUserId:(null==o?void 0:o.owner_user_id)||(l.isAuth?l.id:""),advertiser:o}}},36675:(e,t,l)=>{l.d(t,{AC:()=>p,AV:()=>r,Bm:()=>c,E2:()=>u,HS:()=>a,cb:()=>i,mX:()=>d,rf:()=>n,yo:()=>o,zv:()=>s});let i=150,n=175,r=300,o=700,a=4e3,s=6e3,d={DESC:"desc",ASC:"asc"},u={SHOPIFY:"SHOPIFY",WOOCOMMERCE:"WOOCOMMERCE"},c=32,p=10},733941:(e,t,l)=>{l.d(t,{GN:()=>g,Ju:()=>d,lW:()=>_,nl:()=>s,p8:()=>u,so:()=>h});var i=l(667294),n=l(56641),r=l(826067),o=l(36675),a=l(306732);let s=({advertiser:e,history:t,location:l})=>{let i=e&&e.id,o=e&&e.actions,a=(0,r.mB)(l.search),s=a.advertiserId;if(l){let e=!i||o&&o.includes(68);if(!i&&s||!e)return(0,n.Z)(`${l.pathname}`),!0;if(i&&i!==s)return t.replace({pathname:l.pathname,search:`?${(0,r.XP)({...a,advertiserId:i})}`}),!0}return!1};function d(e,t=[]){let l=e=>"function"==typeof e?e():null!=e?e:0,i=Object.entries(e);return[...i].sort(([e,i],[n,r])=>{let o=-1!==(null!=t?t:[]).indexOf(e)?t.indexOf(e):l(i.order),a=-1!==(null!=t?t:[]).indexOf(n)?t.indexOf(n):l(r.order);return o-a}).map(([e,t])=>[e,t])}function u(e,t,l){let i=e=>null==e,n=(e,t,l)=>Number.isNaN(e)&&Number.isNaN(t)?0:Number.isNaN(e)?1:Number.isNaN(t)?-1:l;return(r,a)=>{for(let u of Object.keys(e)){let{value:c,propertyName:p,type:_,isSortable:h,propertyPath:g}=e[u];if(h&&(p||g)&&t===c){var s,d;let e=(null!==(s=null!=p?p:g)&&void 0!==s?s:"").split(".").reduce((e,t)=>null==e?void 0:e[t],r),t=(null!==(d=null!=p?p:g)&&void 0!==d?d:"").split(".").reduce((e,t)=>null==e?void 0:e[t],a);if(i(e)&&i(t))return 0;if(i(e))return 1;if(i(t))return -1;if(_===Number){let i=Number(e),r=Number(t);return n(i,r,l===o.mX.ASC?i-r:r-i)}if(_===Date){let i=new Date(e),r=new Date(t);return n(i.getTime(),r.getTime(),l===o.mX.ASC?i-r:r-i)}if(_===String||!_){let i=String(e),n=String(t);return l===o.mX.ASC?i.localeCompare(n):n.localeCompare(i)}}}return null}}function c(e){let t=function(e){let{type:t}=(0,i.createElement)(e);return t}(e);return e=>t===e.type}function p(e){let t=i.Children.toArray(e);return t.flatMap(e=>c(i.Fragment)(e)?p(e.props.children):e)}function _(e,t){var l;return null!==(l=p(e).find(c(t)))&&void 0!==l?l:null}function h(e,t){return p(e).filter(c(t))}let g=(e,t,l)=>{if(l===a.Be[Number(t)]){if(1===Number(t))return e._('All Products', 'catalogs.productGroup.name.allProducts', 'Product group name All Products');if(2===Number(t))return e._('Best Deals', 'catalogs.productGroup.name.bestDeals', 'Product group name Best Deals');if(3===Number(t))return e._('Most Popular', 'catalogs.productGroup.name.mostPopular', 'Product group name Most Popular');if(4===Number(t))return e._('Top Sellers', 'catalogs.productGroup.name.topSellers', 'Product group name Top Sellers');else if(5===Number(t))return e._('Back In Stock', 'catalogs.productGroup.name.inStock', 'Product group name In Stock');else if(6===Number(t))return e._('New Arrivals', 'catalogs.productGroup.name.newArrivals', 'Product group name New Arrivals')}return l}},306732:(e,t,l)=>{l.d(t,{Be:()=>a,DD:()=>b,EK:()=>s,Eo:()=>h,HK:()=>q,J_:()=>en,KO:()=>R,MD:()=>L,MU:()=>O,PD:()=>U,QE:()=>w,QX:()=>M,R0:()=>V,Rd:()=>er,V0:()=>y,VO:()=>el,WH:()=>A,XT:()=>f,Y3:()=>u,aF:()=>N,aZ:()=>i,bS:()=>g,cU:()=>T,cm:()=>B,d0:()=>S,eu:()=>_,g2:()=>I,gd:()=>P,h1:()=>G,h8:()=>r,hh:()=>j,iu:()=>X,j0:()=>ei,j1:()=>z,k7:()=>Y,kc:()=>p,kl:()=>c,kq:()=>m,l5:()=>x,pF:()=>F,pM:()=>k,pV:()=>v,ps:()=>o,q9:()=>d,qB:()=>W,qf:()=>ee,r2:()=>C,rC:()=>D,rD:()=>J,sG:()=>Z,ss:()=>et,t7:()=>Q,ul:()=>n,vr:()=>$,wZ:()=>H,yA:()=>K,yq:()=>E});let i=864e5,n={IN_STOCK:"in stock",OUT_OF_STOCK:"out of stock",PREORDER:"preorder"},r={NEW:"new",USED:"used",REFURBISHED:"refurbished"},o={MALE:"male",FEMALE:"female",UNISEX:"unisex"},a={1:"All Products",2:"Best Deals",3:"Most Popular",4:"Top Sellers",5:"Back In Stock",6:"New Arrivals"},s={FEATURED:"FEATURED",CAN_FEATURE:"CAN_FEATURE",FEATURING:"FEATURING",NO_FILTERS:"NO_FILTERS",TOO_FEW_PRODUCTS:"TOO_FEW_PRODUCTS",TOO_FEW_UNIQUE_PRODUCTS:"TOO_FEW_UNIQUE_PRODUCTS",TOO_MANY_PRODUCTS:"TOO_MANY_PRODUCTS",MAX_GROUPS_FEATURED:"MAX_GROUPS_FEATURED",UNFEATUREABLE:"UNFEATUREABLE"},d=[1,2,3,4,5,6,7,8],u=[1,2,3,4,5,6,8],c=[1,2,3,4,5,6,7,0,8],p=90,_=350,h=72,g=450,y=200,m=12,x=114,v={MERCHANT_CREATED:"MERCHANT_CREATED",ALL_PRODUCTS:"ALL_PRODUCTS"},f={FEATUREABLE:1,UNFEATUREABLE_NOT_ENOUGH_PINS:2,UNFEATUREABLE_NOT_ENOUGH_UNIQUE_PINS:3,UNFEATUREABLE_EXCEEDED_PINS_LIMIT:4},j={ITEM_ID:"Item ID",PRODUCT_CATEGORY:"Category",PRODUCT_TYPE:"Product type",BRANDS:"Brands",COST:"Cost",CUSTOM_LABEL:"Custom",CUSTOM_LABEL_0:"Custom label 0",CUSTOM_LABEL_1:"Custom label 1",CUSTOM_LABEL_2:"Custom label 2",CUSTOM_LABEL_3:"Custom label 3",CUSTOM_LABEL_4:"Custom label 4",AVAILABILITY:"Availability",PRICE:"Price",GENDER:"Gender",CONDITION:"Condition",CURRENCY:"Currency",ITEM_GROUP_ID:"Item group ID"},S=[j.PRODUCT_CATEGORY,j.PRODUCT_TYPE,j.BRANDS,j.CUSTOM_LABEL_0,j.CUSTOM_LABEL_1,j.CUSTOM_LABEL_2,j.CUSTOM_LABEL_3,j.CUSTOM_LABEL_4],b={[j.ITEM_ID]:["ITEM_ID"],[j.ITEM_GROUP_ID]:["ITEM_GROUP_ID"],[j.PRODUCT_CATEGORY]:["GOOGLE_PRODUCT_CATEGORY_0"],[j.PRODUCT_TYPE]:["PRODUCT_TYPE_0"],[j.COST]:["MIN_PRICE","MAX_PRICE"],[j.BRANDS]:["BRAND"],[j.CUSTOM_LABEL]:["CUSTOM_LABEL_0","CUSTOM_LABEL_1","CUSTOM_LABEL_2","CUSTOM_LABEL_3","CUSTOM_LABEL_4"],[j.AVAILABILITY]:["AVAILABILITY"],[j.CONDITION]:["CONDITION"],[j.GENDER]:["GENDER"]},T=[j.CUSTOM_LABEL,j.COST,j.CURRENCY],w={1:n.IN_STOCK,2:n.OUT_OF_STOCK,3:n.PREORDER},I={1:r.NEW,2:r.USED,3:r.REFURBISHED},P={1:o.MALE,2:o.FEMALE,3:o.UNISEX},C={1:j.ITEM_ID,5:j.PRODUCT_CATEGORY,12:j.PRODUCT_TYPE,3:j.BRANDS,2:j.AVAILABILITY,17:j.CUSTOM_LABEL_0,18:j.CUSTOM_LABEL_1,19:j.CUSTOM_LABEL_2,20:j.CUSTOM_LABEL_3,21:j.CUSTOM_LABEL_4,4:j.CONDITION,25:j.GENDER,22:j.PRICE,23:j.PRICE,26:j.CURRENCY,24:j.ITEM_GROUP_ID},E={[j.ITEM_ID]:1,[j.PRODUCT_CATEGORY]:5,[j.PRODUCT_TYPE]:12,[j.BRANDS]:3,[j.AVAILABILITY]:2,[j.CUSTOM_LABEL_0]:17,[j.CUSTOM_LABEL_1]:18,[j.CUSTOM_LABEL_2]:19,[j.CUSTOM_LABEL_3]:20,[j.CUSTOM_LABEL_4]:21,[j.CONDITION]:4,[j.GENDER]:25,[j.PRICE]:23,[j.CURRENCY]:26,[j.ITEM_GROUP_ID]:24},A={GREATER_INCLUSION:"0",GREATER_EXCLUSION:"1",LESS_INCLUSION:"2",LESS_EXCLUSION:"3"},R={[A.GREATER_EXCLUSION]:{filterType:22,filterOperator:{negated:!1,inclusion:!1}},[A.GREATER_INCLUSION]:{filterType:22,filterOperator:{negated:!1,inclusion:!0}},[A.LESS_EXCLUSION]:{filterType:23,filterOperator:{negated:!1,inclusion:!1}},[A.LESS_INCLUSION]:{filterType:23,filterOperator:{negated:!1,inclusion:!0}}},k="newlyCreatedPGId",D="storefront",L={campaignId:"createNewCampaign",objectiveType:"CATALOG_SALES",absolutify:!0},O=163,F=350,U={LIST:"LIST",GRID:"GRID"},z="236x",N=23,G=164,Z=256,M=112,B="calc(100vh - 175px)",K=75,H=200,W=40,V={PRODUCT_GROUP_NAME:"PRODUCT_GROUP_NAME",PRODUCT_COUNT:"PRODUCT_COUNT",PRODUCT_AVAILABILITY:"PRODUCT_AVAILABILITY",LAST_UPDATE:"LAST_UPDATE",PRODUCT_GROUP_PROMOTED:"PRODUCT_GROUP_PROMOTED",PRODUCT_GROUP_FEATURED:"PRODUCT_GROUP_FEATURED",PRODUCT_GROUP_ACTIONS:"PRODUCT_GROUP_ACTIONS",PG_METRIC:"PG_METRIC",PRODUCT_GROUP_COUNTRY:"PRODUCT_GROUP_COUNTRY"},X=500,Y=20,q=40,$=100,Q=4,J={DELETE_FAILED:"DELETE_FAILED",DELETE_SUCCESSFULLY:"DELETE_SUCCESSFULLY",REMOVE_SUCCESSFULLY:"REMOVE_SUCCESSFULLY"},ee={ALL:"ALL",MIXED:"MIXED",FEED_PROFILE:"FEED_PROFILE"},et="US",el="selectedCountryKey",ei="selectedFeedProfileId",en="activated",er="ads_create_source_param"},400264:(e,t,l)=>{l.d(t,{G7:()=>n,Lp:()=>r,Ib:()=>d});var i=l(784590);function n(e={},t=!0){let l=(0,i.Z)(t?null:{name:"FeaturedProductGroupsResource",enabledRouteRefresh:!0,options:e});return{...l,isLoaded:!0,data:l&&l.data||[]}}function r(e={}){let t=(0,i.Z)({name:"ProductGroupFilterResource",options:e,enabledRouteRefresh:!0});return{...t,data:t&&t.data||{}}}var o=l(667294),a=l(898781),s=l(733941);function d(e={},t=!1,l=!1){let n=(0,a.ZP)(),r=(0,i.Z)(t?null:{name:"ProductGroupsResource",options:e,enabledRouteRefresh:!0,noCache:l}),d=(0,o.useMemo)(()=>r.data&&r.isLoaded?r.data.map(e=>(e.name=(0,s.GN)(n,e.type,e.name),e)):[],[n,r.data,r.isLoaded]);return{...r,data:d}}},833991:(e,t,l)=>{l.d(t,{HW:()=>o,YW:()=>c,i3:()=>p,o2:()=>u});var i=l(667294),n=l(425288),r=l(785893);let o=660,a={educationId:null,paddingRight:0,zIndex:o};function s(e,t){switch(t.type){case"FOOTER_SET_EDUCATION_ID":let{educationId:l}=t.payload;return{...e,educationId:l};case"FOOTER_SET_PADDING_RIGHT":let{paddingRight:i}=t.payload;return{...e,paddingRight:i};case"FOOTER_SET_Z_INDEX":let{zIndex:n}=t.payload;return{...e,zIndex:n};default:return e}}let{Provider:d,Consumer:u,useHook:c}=(0,n.Z)("footerContext");function p({children:e}){let[t,l]=(0,i.useReducer)(s,a),n=(0,i.useCallback)(e=>l({type:"FOOTER_SET_PADDING_RIGHT",payload:{paddingRight:e}}),[]),o=(0,i.useCallback)(e=>l({type:"FOOTER_SET_EDUCATION_ID",payload:{educationId:e}}),[]),u=(0,i.useCallback)(e=>l({type:"FOOTER_SET_Z_INDEX",payload:{zIndex:e}}),[]),c=(0,i.useMemo)(()=>({...t,setEducationId:o,setPaddingRight:n,setZIndex:u}),[t,o,n,u]);return(0,r.jsx)(d,{value:c,children:e})}},966676:(e,t,l)=>{l.d(t,{Nb:()=>a,Of:()=>s,YO:()=>o,ZP:()=>c,x4:()=>u});var i=l(667294),n=l(499659),r=l(92261);let o=({showProductDetailPage:e,isLargerPane:t,showCloseupContentRight:l})=>e&&t?l?r.Uj:r.zT:1,a=(0,n.qe)(({paneWidth:e,pdpCarouselSlotToPaneRatio:t,showCloseupContentRight:l,showProductDetailPage:i,viewportSize:n,maxWidth:r,descriptionPaneWidth:o})=>({paneWidth:e,pdpCarouselSlotToPaneRatio:t,showCloseupContentRight:l,showProductDetailPage:i,viewportSize:n,maxWidth:r,descriptionPaneWidth:o})),s={showCloseupContentRight:!0,showProductDetailPage:!1,viewportSize:"lg",paneWidth:r.Gg,pdpCarouselSlotToPaneRatio:1,maxWidth:r.u6,descriptionPaneWidth:r.u6-r.Gg},d=(0,i.createContext)(s);function u(){let e=(0,i.useContext)(d);if(!e)throw Error("useCloseupContext must be used within CloseupContextProvider");return e}let c=d},435497:(e,t,l)=>{l.d(t,{Z:()=>m});var i=l(667294),n=l(883119),r=l(729884),o=l(407043),a=l(444445),s=l(564194),d=l(391254),u=l(829407),c=l(785893);function p({index:e,length:t,showBadge:l}){return(0,c.jsx)(n.xu,{alignItems:"center",color:"selected",display:"flex",height:35,justifyContent:"center",marginEnd:5,marginTop:5,position:"absolute",right:!0,rounding:2,width:35,zIndex:new n.Ry(1),dangerouslySetInlineStyle:{__style:{opacity:l?.8:0,transition:"opacity .3s"}},children:(0,c.jsx)(n.xv,{color:"inverse",children:`${(null!=e?e:0)+1}/${t}`})})}let _=({index:e})=>{let[t,l]=(0,i.useState)(!0),n=(0,i.useRef)(),r=(0,i.useRef)();return(0,i.useEffect)(()=>(n.current=setTimeout(()=>{l(!1)},3e3),()=>{clearTimeout(n.current)}),[]),(0,i.useEffect)(()=>{if(!r.current){r.current=e;return}clearTimeout(n.current),l(!0)},[e]),{showBadge:t}};var h=l(455024),g=l(350118);let y=`
|
2
|
+
.horizontal-scroll-container {
|
3
|
+
-ms-overflow-style: none;
|
4
|
+
scrollbar-width: none;
|
5
|
+
}
|
6
|
+
::-webkit-scrollbar {
|
7
|
+
display: none;
|
8
|
+
}`;function m(e){var t,l;let{children:m,componentType:x,containerRef:v,contextLogData:f,disableTransition:j,gap:S=0,height:b,id:T,impressionType:w,index:I,shouldBeDragCarousel:P,showCarouselBadge:C,styleOverrides:E,slideWidth:A,view:R,viewParameter:k,widthRatio:D=1}=e,{showBadge:L}=_({index:I}),{logContextEvent:O}=(0,o.v)(),F=(0,g.S6)()(T),U=(0,i.useRef)(),z=(0,i.useRef)(),N=(0,i.useRef)(0),G=(0,i.useRef)();if((0,u.Z)(()=>{let e=z.current;if(!e)return;let t=()=>{var e,t;let l=N.current,i=-(null!==(e=null===(t=G.current)||void 0===t?void 0:t.getBoundingClientRect().x)&&void 0!==e?e:0);Math.abs(l-i)>=10&&O({component:x,event_type:"right"==(l<i?"right":"left")?9315:9316,view_type:R,view_parameter:k}),N.current=i};return P&&e.addEventListener("touchend",t),()=>{P&&e.removeEventListener("touchend",t)}}),D>1||D<0)throw Error("widthRatio should be between 0 and 1 inclusive");let Z=Math.floor(A*D),M=i.Children.toArray(m),B=M.length*Z,K=(null===(t=v.current)||void 0===t?void 0:t.clientWidth)||B,H=null!==(l=null==E?void 0:E.justifyContent)&&void 0!==l?l:K>B?"center":"start";return(0,c.jsx)("div",{className:"BoardMoreIdeasRep"===w?"moreIdeasBoardRepCarousel":"",children:(0,c.jsxs)(n.xu,{display:"flex",justifyContent:H,alignItems:"center",overflow:"hidden","data-test-id":"carousel-pin",width:P?"100vw":void 0,children:[C&&(0,c.jsx)(p,{length:M.length,index:I,showBadge:L}),"BoardMoreIdeasRep"!==w&&(0,c.jsx)(r.P,{pinKey:null!=F?{type:"deprecated",data:F}:null,children:e=>{var t,l;return(0,c.jsx)(s.Z,{carouselData:e&&{...e,type:"canonical"},contextLogData:f,trackCarousel:!0,impressionType:"Pin",loggingId:T,slotIndex:I,viewParameter:null!=k?k:72,viewType:null!=R?R:1,children:(0,c.jsx)(n.xu,{height:null!==(t=null!=b?b:null===(l=U.current)||void 0===l?void 0:l.clientHeight)&&void 0!==t?t:1,overflow:"hidden",position:"absolute",width:A})},`carousel-impression-key-${I}`)}}),P&&(0,c.jsx)(d.Z,{unsafeCSS:y}),(0,c.jsx)("div",{className:"horizontal-scroll-container",style:{overflowX:P?"scroll":"visible",paddingLeft:P?`${a.yt}px`:void 0,paddingRight:P?`${a.yt}px`:void 0,display:"flex",flexDirection:"row",position:"relative",scrollbarWidth:0,transition:P||j?void 0:"left .3s",left:!P&&(0,h.CU)({slotWidth:Z,gap:S,numberOfSlides:M.length,index:I,containerWidth:K})},ref:z,children:M.map((e,t)=>{let l=t===M.length-1,i=Math.ceil(S/4),r=0;i>=-12&&i<=12&&(r=i);let o=(0,c.jsx)(n.xu,{marginEnd:l?0:r,"data-test-id":`carousel-img-${t}`,"data-carousel-indicator":"carousel-card",height:null!=b?b:void 0,ref:e=>{U.current=e,0===t&&(G.current=e)},width:Z,children:e},`carousel-slot-${T}-${t}`);if("BoardMoreIdeasRep"===w){let l=e.props,i={total_object_count:null==l?void 0:l.story.objects.length,storyType:null==l?void 0:l.story.story_type,boardIdStr:null==l?void 0:l.item.board_id,slotIndex:null==l?void 0:l.slotIndex,story_id:null==l?void 0:l.story.id};return(0,c.jsx)(s.Z,{componentType:x,contextLogData:i,impressionAuxFields:i,impressionType:null!=w?w:"Pin",loggingId:T,slotIndex:t,viewParameter:null!=k?k:72,viewType:null!=R?R:1,children:o},`carousel-slot-${T}-${t}`)}return o})})]})})}},356725:(e,t,l)=>{l.r(t),l.d(t,{default:()=>h});var i,n=l(702664);l(167912);var r=l(883119),o=l(729884),a=l(357998),s=l(966676),d=l(721782),u=l(447948),c=l(350118),p=l(785893);let _=void 0!==i?i:i=l(603239);function h({carouselData:e,carouselIndex:t,componentType:l,contextLogData:i,handleCarouselSwipe:h,isCloseup:g,isEditMode:y,pinKey:m,viewParameter:x,viewType:v,variant:f}){var j;let S;let b=(0,c.S6)();if(null==m||"graphqlRef"===m.type)S=m;else{let e=m.data;if("string"==typeof e){let t=b(e);S=null!=t?{type:"deprecated",data:t}:null}else S={type:"deprecated",data:e}}let{data:T,childDataKey__DEPRECATED:w}=(0,a.Q)(_,S,{useLegacyAdapter:e=>{var t;return{entityId:null!==(t=e.id)&&void 0!==t?t:""}}}),I=(0,d.Z)(w,"CarouselEllipsis"),P=(0,o.Z)(w),C=e||P&&{carouselSlots:P.carouselSlots.map(({slotId:e,title:t})=>({id:e,title:t})),entityId:null!==(j=P.carouselId)&&void 0!==j?j:"",index:P.index},E=(0,n.useDispatch)();if(!C)return null;let A=(e,t,n)=>{var r,o,a;y||void 0===u.yR||(e.preventDefault(),e.stopPropagation(),E((0,u.yR)(null!==(a=null==T?void 0:T.entityId)&&void 0!==a?a:"",n))),void 0!==h&&h(n),I({pinId:null!==(r=null==T?void 0:T.entityId)&&void 0!==r?r:"",currentIndex:null!=t?t:0,nextIndex:n,carouselData:{carouselSlots:null===(o=C.carouselSlots)||void 0===o?void 0:o.map(e=>({id:e.id})),entityId:C.entityId},viewParameter:x,viewType:v,componentType:l,contextLogData:i,isEditMode:y})},{carouselSlots:R,index:k}=C,D="number"==typeof t?t:k,L="default"===f,O=L?"white":"#555",F=L?"rgba(255, 255, 255, 0.5)":"lightGray";return(0,p.jsx)(s.ZP.Consumer,{children:({viewportSize:e})=>{var t;return"sm"===e?null:(0,p.jsx)(r.xu,{alignItems:"center","data-test-id":"carousel-ellipsis",display:"flex",justifyContent:g?"end":"center",paddingY:y?1:0,children:R&&[...Array(null!==(t=R.length)&&void 0!==t?t:0).keys()].map(e=>{var t,l;return(0,p.jsx)(r.xu,{paddingX:1,children:(0,p.jsx)(r.iP,{accessibilityLabel:null!==(l=(R[e]||{}).title)&&void 0!==l?l:"",fullWidth:!1,onTap:({event:t})=>A(t,D,e),rounding:"circle",children:(0,p.jsx)(r.xu,{"data-test-id":"ellipsis-size",height:8,width:8,dangerouslySetInlineStyle:{__style:{backgroundColor:e===D?O:F}},rounding:"circle"})})},(null!==(t=null==T?void 0:T.entityId)&&void 0!==t?t:"")+e)})})}})}},239062:(e,t,l)=>{l.r(t),l.d(t,{default:()=>m});var i,n=l(702664);l(167912);var r=l(883119),o=l(729884),a=l(357998),s=l(898781),d=l(356725),u=l(721782),c=l(447948),p=l(350118),_=l(785893);let h={cursor:"pointer",padding:"30px 16px",position:"relative",zIndex:1},g=(e,t,l,i,n,r)=>{r||void 0===i||(e.preventDefault(),e.stopPropagation(),i(t,l)),void 0!==n&&n(l)},y=void 0!==i?i:i=l(717246);function m({addEllipsis:e,alwaysShowNavigationArrows:t,carouselIndex:l,carouselData:i,ellipsisVariant:m,handleCarouselSwipe:x,isShowingLastSlide:v,pinKey:f,contextLogData:j,viewParameter:S,viewType:b,componentType:T,isEditMode:w,forwardNode:I,backNode:P,sliderStyleOverride:C,hideNavigationArrows:E}){var A,R;let k;let D=(0,s.ZP)(),L=(0,n.useDispatch)(),O=(0,p.S6)();if(null==f||"graphqlRef"===f.type)k=f;else{let e=O(f.data);k=null==e?null:{type:"deprecated",data:e}}let{data:F,childDataKey__DEPRECATED:U}=(0,a.Q)(y,k,{useLegacyAdapter:e=>{var t;return{entityId:null!==(t=e.id)&&void 0!==t?t:"",isEligibleForPdp:e.is_eligible_for_pdp}}}),z=(0,u.Z)(U,"CarouselSliders"),N=(0,o.Z)(U),G=i||N&&{carouselSlots:N.carouselSlots.map(({slotId:e,title:t})=>({id:e,title:t})),entityId:null!==(A=N.carouselId)&&void 0!==A?A:"",index:N.index};if(!G)return null;let Z=(e,t)=>L((0,c.yR)(e,t)),{carouselSlots:M,index:B}=G,K=void 0!==l?l:null!=B?B:0,H=Math.max(0,K-1),W=Math.min((null!=M?M:[]).length-1,K+1),V=0===K,X=v||K===(null!=M?M:[]).length-1,Y=(e,t)=>{var l,i,n;g(e,null!==(l=null==F?void 0:F.entityId)&&void 0!==l?l:"",t,Z,x,w),z({pinId:null!==(i=null==F?void 0:F.entityId)&&void 0!==i?i:"",currentIndex:K,nextIndex:t,carouselData:{carouselSlots:null==M?void 0:M.map(({id:e})=>({id:e})),entityId:G.entityId},viewParameter:S,viewType:b,componentType:T,contextLogData:j,isEditMode:w,isEligibleForPdp:null!==(n=null==F?void 0:F.isEligibleForPdp)&&void 0!==n&&n})},q=P||(0,_.jsx)(r.JO,{color:"inverse",icon:"arrow-back",accessibilityLabel:D._('View Previous', 'Button to advance carousel to the previous image', 'Button to advance carousel to the previous image')}),$=E?null:I||(0,_.jsx)(r.JO,{color:"inverse",icon:"arrow-forward",accessibilityLabel:D._('View Next', 'Button to advance carousel to the next image', 'Button to advance carousel to the next image')});return(0,_.jsxs)(r.xu,{display:"flex",justifyContent:E?"center":"between",position:"absolute",alignItems:"center",left:!0,right:!0,bottom:!0,top:!0,children:[!E&&(0,_.jsx)("div",{"data-test-id":"carousel-slider-left",role:"presentation",onClick:e=>{Y(e,H)},onKeyUp:e=>{Y(e,H)},style:{...h,...C,pointerEvents:V?"none":"auto"},children:(0,_.jsx)(r.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{visibility:V&&!t?"hidden":"visible",opacity:V&&t?"50%":"100%"}},display:"flex",height:"100%",justifyContent:"center",width:"100%",children:q})}),e&&(0,_.jsx)(d.default,{pinKey:U,carouselIndex:l,carouselData:{carouselSlots:null===(R=G.carouselSlots)||void 0===R?void 0:R.map(({id:e,title:t})=>({id:e,title:t})),entityId:G.entityId,index:G.index},handleCarouselSwipe:x,variant:m||"default",viewParameter:S,viewType:b,componentType:T}),!E&&(0,_.jsx)("div",{"data-test-id":"carousel-slider-right",role:"presentation",onClick:e=>{Y(e,W)},onKeyUp:e=>{Y(e,W)},style:{...h,...C,pointerEvents:X?"none":"auto"},children:(0,_.jsx)(r.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{visibility:X&&!t?"hidden":"visible",opacity:X&&t?"50%":"100%"}},display:"flex",height:"100%",justifyContent:"center",width:"100%",children:$})})]})}},751191:(e,t,l)=>{l.d(t,{Z:()=>a});var i=l(667294),n=l(883119),r=l(898781),o=l(785893);let a=({iconType:e,showFab:t,backgroundColor:l,hoverColor:a,iconColor:s,size:d})=>{let u=(0,r.ZP)(),[c,p]=(0,i.useState)(!1);return(0,o.jsx)(n.zd,{rounding:6,children:(0,o.jsx)(n.xu,{opacity:c?1:.8,rounding:"circle",onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),"data-test-id":"navigation-fab-container",children:(0,o.jsx)(n.xu,{width:d||48,height:d||48,color:c?a:l,display:"flex",justifyContent:"center",alignItems:"center",opacity:t?1:0,dangerouslySetInlineStyle:{__style:{transition:"opacity 0.3s linear"}},"data-test-id":"navigation-fab",children:"forward"===e?(0,o.jsx)(n.JO,{color:s,icon:"arrow-forward",accessibilityLabel:u._('View Next', 'Button to advance carousel to the next image', 'Button to advance carousel to the next image')}):(0,o.jsx)(n.JO,{color:s,icon:"arrow-back",accessibilityLabel:u._('View Previous', 'Button to advance carousel to the previous image', 'Button to advance carousel to the previous image')})})})})}},721782:(e,t,l)=>{l.d(t,{Z:()=>d}),l(167912);var i,n=l(407043),r=l(357998),o=l(999018),a=l(67347);let s=void 0!==i?i:i=l(270643);function d(e,t){let{logContextEvent:l}=(0,n.v)(),{childDataKey__DEPRECATED:i}=(0,r.Q)(s,e,{useLegacyAdapter:()=>({})});null!=e&&"deprecated"===e.type&&e.data&&"pin"!==e.data.type&&(0,a.nP)("web.graphql.debug.useLogSwipeError",{sampleRate:1,tags:{parent:t,rootType:e.data.type}});let d=(0,o.Z)(i);return function({pinId:e,currentIndex:t,nextIndex:i,carouselData:n,viewParameter:r,viewType:o,componentType:a,contextLogData:s,isEditMode:u,isEligibleForPdp:c}){if(!u){let{carouselSlots:u,entityId:p}=n;l({event_type:108,object_id_str:e,component:a,view_type:o,view_parameter:r,event_data:{pinCarouselSlotEventData:{carouselSlotId:(null==u?void 0:u[t])&&Number(u[t].id),carouselDataId:Number(p),carouselSlotIndex:t,toCarouselSlotIndex:i}},aux_data:{...s,...d({isPdpPlus:c})}})}}}},35066:(e,t,l)=>{l.d(t,{S:()=>u,w:()=>c});var i=l(667294),n=l(425288),r=l(311541),o=l(632448),a=l(785893);let s=()=>l.e(6819).then(l.bind(l,6819)),{Provider:d,useHook:u}=(0,n.Z)("MerchantStorefrontSettings");function c({children:e}){let[t,l]=(0,r.Z)(s,o.Z),n=(0,i.useMemo)(()=>({merchantStorefrontSettings:t,updateLocaleStorefrontSetting:(e,t,i)=>{l({type:"UPDATE_LOCALE_STOREFRONT_SETTING",payload:{country:e,language:t,feedProfileId:i}})},updateStorefrontLastUpdated:e=>{l({type:"UPDATE_STOREFRONT_LAST_UPDATED",payload:e})}}),[l,t]);return(0,a.jsx)(d,{value:n,children:e})}},632448:(e,t,l)=>{l.d(t,{Z:()=>i});let i={currentViewingLocale:{country:"",language:"",feedProfileId:""},lastUpdated:0}},151645:(e,t,l)=>{l.d(t,{Z:()=>i});function i({user:e,viewer:t}){return!!(t.isAuth&&(null==e?void 0:e.username)===t.username)}},390598:(e,t,l)=>{l.d(t,{PRODUCT_GROUP_COVER_IMAGE_DIMENSIONS:()=>s,Z:()=>d});var i=l(667294),n=l(883119),r=l(407043),o=l(970023),a=l(785893);let s={HEIGHT:362,WIDTH:362};function d({productGroup:e,preferredPreviewPinSizes:t=[],coverFit:l=!1}){var d,u,c,p,_;let h;let{logContextEvent:g}=(0,r.v)(),y=(null===(d=e.coverImages)||void 0===d?void 0:d[0])&&(0,o.cB)(e.coverImages[0]),{WIDTH:m,HEIGHT:x}=s,v=((null===(u=e.previewPins)||void 0===u?void 0:u[0])||{}).images,[f,j]=(0,i.useState)(!y);v&&f&&(h=t.concat("orig").map(e=>v[e]).find(e=>!!e));let S=f?null===(c=h)||void 0===c?void 0:c.height:x,b=f?null===(p=h)||void 0===p?void 0:p.width:m,T=f?null===(_=h)||void 0===_?void 0:_.url:y;return S&&b&&T?(0,a.jsx)(n.Ee,{alt:"",naturalHeight:S,naturalWidth:b,src:T,fit:l?"cover":"contain",onError:()=>{f||(g({event_type:10048,component:14004,aux_data:{product_group_cover_image_url:y}}),j(!0))}}):null}},970023:(e,t,l)=>{l.d(t,{yh:()=>i,QE:()=>n,cB:()=>r}),l(214494),l(186656);let i="ALL_PRODUCTS",n=5e3,r=e=>{if(!e)return"";let t=["488x488","976x976","368x368","736x","474x","originals","orig",Object.keys(e)[0]];for(let i of t)if(e[i]){var l;return null!==(l=e[i].url)&&void 0!==l?l:""}return""}},436395:(e,t,l)=>{l.d(t,{Z:()=>r});var i=l(616550),n=l(784590);function r(){let{username:e}=(0,i.useParams)();return(0,n.Z)(null==e?null:{name:"UserResource",options:{username:e,field_set_key:"profile"}})}}}]);
|
9
|
+
//# sourceMappingURL=https://sm.pinimg.com/webapp/22517-5f7ab2631d424b77.mjs.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[23019],{758127:(e,i,l)=>{l.d(i,{U:()=>r,Z:()=>a});var t=l(883119),o=l(785893);let r=", ";function a(){return(0,o.jsx)(t.xu,{display:"visuallyHidden",children:r})}},433175:(e,i,l)=>{l.d(i,{Z:()=>P});var t=l(667294),o=l(616550),r=l(883119),a=l(112690),n=l(298361),s=l(898781),d=l(892819),c=l(349700),u=l(780280),_=l(867820),h=l(758127),x=l(948618),g=l(50286),m=l(19121),v=l(526760),p=l(686844),b=l(108211),f=l(785893);let y={square:"100%"};function j(e){var i,l;let t=(0,s.ZP)(),{containerBackgroundColor:o="white",coverPhoto:a,fullSize:n,images:d,isProtected:c,isSecret:_,isTemporarilyDisabled:h,showSensitivityScreen:x,isActive:m,canEdit:j,onEditClick:w,layout:z}=e,C=(0,g.HG)(),{isRTL:P,isAuthenticated:A}=(0,u.B)(),S=C&&A,B=d[0],I=!a&&(null===(i=d[0])||void 0===i?void 0:i.name)||t._('Cover image', 'DrawerImageGroup', 'Alt text for the main image of a board'),Z=[,,].fill(),k=new r.Ry(1),T="square"===z?v.M0:v.z9,E="square"===z?v.FP:v.FC,F=null!=B&&B.url?(0,f.jsx)(r.Ee,{alt:I,color:"#efefef",fit:"cover",naturalHeight:133,naturalWidth:133,src:B.url}):(0,f.jsx)(r.xu,{color:"secondary",height:"100%",width:"100%"}),D=h||x?{filter:"blur(20px)"}:{};return(0,f.jsx)(r.zd,{height:n?"100%":void 0,rounding:4,width:"100%",wash:m,children:(0,f.jsxs)(r.xu,{"aria-hidden":!0,display:"flex",height:S?E:"100%",direction:"row",children:[(0,f.jsx)(r.sg,{span:8,children:(0,f.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:D},position:"relative",height:n?"100%":void 0,children:(0,f.jsx)(r.xu,{color:"secondary",dangerouslySetInlineStyle:{__style:{paddingBottom:y.square}},overflow:"hidden",width:"100%",children:(0,f.jsxs)(r.xu,{"data-test-id":"drawer-image-group-first-image-container",dangerouslySetInlineStyle:{__style:{borderColor:o,borderStyle:"solid",borderWidth:"1px 0 1px 1px"}},overflow:"hidden",position:"absolute",top:!0,bottom:!0,right:!0,left:!0,children:[(c||_)&&(0,f.jsx)(r.xu,{left:!P,right:P,margin:2,position:"absolute",top:!0,zIndex:k,children:(0,f.jsx)(b.Z,{backgroundColor:"default",iconColor:"default",privacy:_?"secret":"protected",size:S?32:24})}),null!=a&&a.url?(0,f.jsx)(p.Z,{customCover:a.isCustom,imgPos:a.position||{width:0,height:0,x:0,y:0},imgUrl:null!==(l=a.url)&&void 0!==l?l:"",width:Math.floor(T/3*2),height:E}):F]})})})}),(0,f.jsx)(r.sg,{span:4,children:(0,f.jsxs)(r.xu,{dangerouslySetInlineStyle:{__style:D},height:"100%",children:[j&&m&&(0,f.jsx)(r.xu,{left:P,right:!P,margin:2,position:"absolute",bottom:!0,zIndex:k,children:(0,f.jsx)(r.hU,{accessibilityLabel:t._('Edit', 'DrawerImageGroup.edit', 'Icon indicating that a board is editable'),bgColor:"white",icon:"edit",iconColor:"darkGray",onClick:({event:e})=>null==w?void 0:w(e),size:"sm"})}),Z.map((e,i)=>{let l=d[i];return(0,f.jsx)(r.xu,{position:"relative",height:n?"50%":void 0,children:(0,f.jsx)(r.xu,{color:"secondary",dangerouslySetInlineStyle:{__style:{paddingBottom:y.square}},overflow:"hidden",width:"100%",children:(0,f.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{borderColor:o,borderStyle:"solid",borderWidth:0===i?1:"0 1px 1px 1px"}},overflow:"hidden",position:"absolute",top:!0,bottom:!0,right:!0,left:!0,children:null!=l&&l.url?(0,f.jsx)(r.Ee,{alt:l&&l.name||"placeholder",color:"#efefef",fit:"cover",naturalHeight:133,naturalWidth:133,src:l.url}):(0,f.jsx)(r.xu,{color:"secondary",height:"100%",width:"100%"})})})},i)})]})}),(h||x)&&(0,f.jsx)(r.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:h?(0,f.jsx)(r.xu,{maxWidth:188,children:(0,f.jsx)(r.xv,{align:"center",color:"light",weight:"bold",size:"200",children:t._('This board is currently unavailable', 'drawerImageGroup.unavailableBoard.heading', 'Warning text for a board that is unavailable')})}):(0,f.jsx)(r.X6,{align:"center",color:"light",size:"400",children:t._('This board may contain sensitive content', 'drawerImageGroup.sensitivityScreen.heading', 'Warning text for a board that may have sensitive content')})})]})})}var w=l(815613),z=l(861411);let C=({children:e})=>{let i=(0,m.Z)(),l=(0,g.HG)(),t=i&&i.isAuth;return l&&t?(0,f.jsx)(r.X6,{accessibilityLevel:2,size:"400",lineClamp:1,children:e}):(0,f.jsx)(r.xv,{lineClamp:1,weight:"bold",children:e})};function P({archivedDate:e,boardUrl:i,canEdit:l,collaborators:m,collaboratorsCount:p=0,containerBackgroundColor:b,coverPhoto:y,followedByMe:P,fullSizeDrawer:A,sensitivityScreen:S,handleInviteResponse:B,hideMeta:I,id:Z,invite:k,imagesLego:T=[],isBoardInviteAccepted:E,isActive:F,isAuthenticated:D,isCollaborative:L,isCollaborator:U,isOwner:W,isProtected:H,isSecret:G,isTemporarilyDisabled:q,lastModifiedDate:O,layout:R,locale:M,name:X,numCols:$,onEditClick:N,onFollow:J,onUnfollow:K,owner:Y,pinCount:Q=0,sectionCount:V,showFollowButton:ee,viewParameter:ei,viewType:el,viewerId:et,slotIndex:eo}){let er=(0,s.ZP)(),ea=(0,n.Z)(),en=(0,d.Z)(),{pathname:es}=(0,o.useLocation)(),ed=(0,a.Z)(),ec=(0,g.HG)(),{isRTL:eu}=(0,u.B)(),e_=ec&&D,eh="square"===R?v.M0:v.z9,ex=!/\/search\/boards\//.test(es),eg=e=>{D||(0,_.NC)("press_follow_board"),J&&J(e)},em=e=>{D||(0,_.NC)("press_unfollow_board"),K&&K(e)},ev=T.map(e=>({url:e.url,name:X})),ep=!!Y&&!l&&ee,eb=!W&&!U&&!!(null!=S&&S.show_warning),ef={board_id:Z,reason:null==S?void 0:S.reason};(0,t.useEffect)(()=>{eb&&ed({event_type:13,component:13861,view_type:215,aux_data:ef})},[]);let ey=Y?Y.id:void 0,ej=[...m.filter(({id:e})=>e===ey),...m.filter(({id:e})=>e===et&&e!==ey),...m.filter(({id:e})=>![ey,et].includes(e))].map(e=>{var i,l;return{name:null!==(i=e_?e.full_name:e.username)&&void 0!==i?i:"",src:"https://s.pinimg.com/images/user/default_75.png"===e.image_medium_url?"":null!==(l=e.image_medium_url)&&void 0!==l?l:""}}),ew=p>=ej.length?p-ej.length:0;ew=ew>99?100:ew;let ez=[...ej,...Array(ew).fill({name:"",src:""})],eC=e_?24:16,eP=eC/3*((ej.length>2?3:ej.length)*2+1),{cardWithFollowCalculated:eA}=(0,t.useMemo)(()=>{let i=0;return!e&&ex&&(i+=1),V&&(i+=1),e&&!ec&&(i+=1),{cardWithFollowCalculated:210+14*i}},[e,ec,ex,V]);return(0,f.jsx)(z.fS,{slotIndex:eo||0,component:13669,loggingId:Z,impressionData:{imageURL:null==y?void 0:y.url},auxData:{board_pin_count:null!=Q?Q:0,board_id:Z},viewParameter:ei,viewType:el,children:({impressionTrackerRef:o})=>(0,f.jsxs)(r.xu,{"data-test-id":`boardCard-${X}`,position:"relative",height:ep?`max(calc(25vh + 10px), ${eA}px)`:"100%",ref:o,width:e_?eh:"100%",children:[(0,f.jsx)(j,{canEdit:l,containerBackgroundColor:b,coverPhoto:y,images:ev,isProtected:H,isSecret:G,fullSize:A,showSensitivityScreen:eb,isActive:F,onEditClick:N,layout:R,isTemporarilyDisabled:q}),!I&&(0,f.jsx)(t.Fragment,{children:k&&!q?(0,f.jsxs)(t.Fragment,{children:[(0,f.jsxs)(r.xu,{padding:2,alignItems:"start","data-test-id":"board-card-title",display:"flex",flex:"grow",justifyContent:"between",children:[(0,f.jsxs)(r.xu,{width:"100%",children:[(0,f.jsx)(r.rU,{href:null!=i?i:"",children:(0,f.jsx)(r.xu,{marginTop:0,marginBottom:1,children:(0,f.jsx)(C,{children:X})})}),E?(0,f.jsx)(r.xv,{size:"200",lineClamp:1,children:er._('You\u2019ve joined', 'boardRep.invite.invitationAcceptedText', 'Text shown after accepting collaborator board invitations')}):(0,f.jsx)(r.xv,{size:"200",children:function(e,i){let{full_name:l,username:t}=e,o=(0,f.jsx)(r.rU,{href:`/${t}`,display:"inlineBlock",underline:"hover",children:l},"linkToUser");return(0,c.nk)(i._('{{ linkToUser }} invited you to join this board', 'boardRep.invite.invitationText', 'Indicating that another user invited the viewer to this board'),{linkToUser:o})}(k.invited_by_user,er)})]}),(0,f.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{marginTop:-1}},marginStart:2,width:eP,minWidth:eP,height:eC,children:(0,f.jsx)(r.HE,{accessibilityLabel:h.U+(er._('Board has collaborators', 'BoardCard.AvatarGroup.Collaborators', 'Board description: title, number of pins, date, and it has collaborators or not.')),collaborators:ez})})]}),E?(0,f.jsx)(r.xu,{direction:"row",display:"flex",paddingX:2,children:(0,f.jsx)(r.xu,{flex:"grow",marginBottom:3,paddingX:1,children:(0,f.jsx)(r.ZP,{href:null!=i?i:"",fullWidth:!0,size:"lg",text:er._('See board', 'boardRep.invite.seeBoardButton', 'Button text to see board after accepting collaborator invite')})})}):(0,f.jsxs)(r.kC,{direction:"row",flex:"grow",justifyContent:"start",wrap:!0,children:[(0,f.jsx)(r.xu,{marginBottom:3,paddingX:1,flex:"grow",children:(0,f.jsx)(r.zx,{fullWidth:!0,onClick:()=>{null==B||B(!1)},size:"lg",text:er._('Decline', 'boardRep.invite.declineButton', 'Button text to decline board collaborator invite or request')})}),(0,f.jsx)(r.xu,{marginBottom:3,paddingX:1,flex:"grow",children:(0,f.jsx)(r.zx,{fullWidth:!0,color:"red",onClick:()=>{null==B||B(!0)},size:"lg",text:er._('Accept', 'boardRep.invite.acceptButton', 'Button text to accept board collaborator invite or request')})})]})]}):(0,f.jsxs)(r.xu,{height:e_?void 0:v.s0,marginTop:e_?0:1,paddingX:2,paddingY:e_?2:0,children:[(0,f.jsxs)(r.xu,{alignItems:"center","data-test-id":"board-card-title",display:"flex",flex:"grow",justifyContent:"between",children:[(0,f.jsx)(C,{children:X}),L&&!q&&(0,f.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{marginTop:-1}},marginStart:2,width:eP,minWidth:eP,height:eC,children:(0,f.jsx)(r.HE,{accessibilityLabel:h.U+(er._('Board has collaborators', 'BoardCard.AvatarGroup.Collaborators', 'Board description: title, number of pins, date, and it has collaborators or not.')),collaborators:ez})})]}),(0,f.jsxs)(r.xu,{alignItems:ec?"center":"start",direction:ec?"row":"column",display:"flex",marginTop:1,children:[(0,f.jsxs)(r.xv,{size:"100",lineClamp:1,children:[(0,f.jsx)(h.Z,{}),(0,c.nk)(er.ngettext('{{ count }} Pin', '{{ count }} Pins', Q, 'profile.ProfilePage.board.BoardCard.PinsCount', 'label for n amount of pins'),{count:en(M,Q,{})})]}),!!V&&(0,f.jsx)(r.xv,{size:"100",children:(0,f.jsxs)(t.Fragment,{children:[ec?(0,f.jsx)(x.Z,{ariaHidden:!0}):void 0,(0,f.jsx)(h.Z,{}),(0,c.nk)(er.ngettext('{{ count }} section', '{{ count }} sections', V, 'profile.ProfilePage.board.BoardCard.SectionsCount', 'label for n amount of sections'),{count:V})]})}),!e&&ex&&(0,f.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{display:e_?"inline-flex":"inline",paddingLeft:ec?7:0,paddingRight:eu?7:0}},children:(0,f.jsxs)(r.xv,{color:"subtle",inline:!0,size:"100",lineClamp:1,children:[(0,f.jsx)(h.Z,{}),ea(O,!0)]})}),e&&!ec&&(0,f.jsxs)(r.xv,{color:"subtle",inline:!0,size:"100",lineClamp:1,children:[(0,f.jsx)(h.Z,{}),er._('Archived', 'profile.ProfilePage.BoardCard.ArchivedText', 'label for archived boards')]})]}),ep&&(0,f.jsx)(r.xu,{marginTop:2===$?3:void 0,column:2===$?12:void 0,flex:"none",children:(0,f.jsx)(w.Z,{disabled:null==Y?void 0:Y.blocked_by_me,followEventType:26,id:Z,isFollowed:P,onFollow:eg,onUnfollow:em,shouldUseLegoColors:!0,size:"md",unfollowEventType:27,viewParameter:ei,viewType:el,pinKey:null})})]})})]})})}},223019:(e,i,l)=>{l.d(i,{Z:()=>p});var t=l(702664),o=l(883119),r=l(112690),a=l(773285),n=l(780280),s=l(867820),d=l(52022),c=l(19121),u=l(433175),_=l(340494),h=l(853492),x=l(712055),g=l(130460),m=l(785893);let v=["thumbnail","imageOnly"];function p({boardId:e,containerBackgroundColor:i,forwardedRef:l,fullSize:p,showFollowButton:b=!0,showPinCount:f=!0,type:y,viewParameter:j,viewType:w,slotIndex:z}){var C,P,A;let S=(0,c.Z)(),B=S&&S.isAuth,I=(0,t.useDispatch)(),{locale:Z}=(0,n.B)(),k=(0,d.Z)(),T=(0,g.gC)()(e),E=(0,_.Z)(),{checkExperiment:F}=(0,a.F)(),D=(0,r.Z)(),L=S.isAuth?S.id:"";if(!T)return null;let{owner:U}=T,W=[U,...T.collaborating_users||[]].filter(Boolean).map(({id:e,image_medium_url:i,username:l})=>({id:e,image_medium_url:i,username:l})),H=(null==U?void 0:U.id)===L,G=W.filter(({id:e})=>e===L).length>0;if("secret"===T.privacy&&!G)return null;let q="grid"===y||"thumbnail"===y?2:4,O=E(T,q),R={isCustom:T.has_custom_cover,url:O,position:(0,h.Bw)(T.cover_pin)},M=(0,h.Jx)(T,O).map(({url:e})=>({name:(0,h.po)(e),url:e})),X=!!T.is_temporarily_disabled&&(F("mweb_hide_u16_group_board").anyEnabled||F("unauth_hide_u16_group_board").anyEnabled),$=(0,m.jsx)(u.Z,{archivedDate:null!==(C=T.archived_by_me_at)&&void 0!==C?C:void 0,canEdit:!!T.access&&T.access.includes("write"),collaborators:W,collaboratorsCount:T.collaborator_count,containerBackgroundColor:i,coverPhoto:O?R:null,followedByMe:T.followed_by_me,fullSizeDrawer:p,hideMeta:v.includes(y),id:T.id,imagesLego:M,isAuthenticated:B,isCollaborative:T.is_collaborative,isCollaborator:G,isOwner:H,isProtected:"protected"===T.privacy,isSecret:"secret"===T.privacy,isTemporarilyDisabled:X,lastModifiedDate:"full"===y?T.board_order_modified_at:"",locale:Z,name:null!==(P=T.name)&&void 0!==P?P:"",numCols:q,onFollow:e=>I((0,x.Z)(e,D)),onUnfollow:e=>I((0,x.f)(e,D)),owner:U,pinCount:f&&T.pin_count?T.pin_count:void 0,sectionCount:null!==(A=T.section_count)&&void 0!==A?A:0,sensitivityScreen:T.sensitivity_screen,showFollowButton:b,viewParameter:j,viewType:w,viewerId:L,slotIndex:z});return!v.includes(y)&&T.url?(0,m.jsx)(o.Tg,{href:T.url,rounding:2,tapStyle:"compress",onTap:()=>{B||((0,s.NC)("click_go_to_board"),k({action:"click",item:"board-card"}))},children:(0,m.jsx)(o.xu,{ref:l,paddingY:3,children:$})}):$}},686844:(e,i,l)=>{l.d(i,{Z:()=>r});var t=l(883119),o=l(785893);function r({customCover:e,height:i,imgUrl:l,imgPos:r,width:a}){let n="center center";if(e&&r){let e=1;e=r.height/r.width>i/a?a/r.width:i/r.height;let l=r.x*e,t=r.y*e;n=`-${l}px -${t}px`}let s={backgroundImage:`url(${l})`,backgroundPosition:n,backgroundRepeat:"no-repeat",backgroundSize:"cover",minHeight:"100%",backgroundColor:"#EFEFEF",position:"relative"};return(0,o.jsx)(t.xu,{dangerouslySetInlineStyle:{__style:{height:i,width:a}},children:(0,o.jsx)(t.xu,{dangerouslySetInlineStyle:{__style:s},children:(0,o.jsx)("div",{className:"imageWash",style:{position:"absolute"}})})})}},526760:(e,i,l)=>{l.d(i,{FC:()=>n,FP:()=>r,M0:()=>o,Xq:()=>s,s0:()=>t,z9:()=>a});let t=44,o=236,r=157,a=320,n=213,s=7},108211:(e,i,l)=>{l.d(i,{Z:()=>a});var t=l(883119),o=l(898781),r=l(785893);function a({backgroundColor:e="darkGray",iconColor:i="inverse",iconSize:l,privacy:a,size:n=20}){let s=(0,o.ZP)();return(0,r.jsx)(t.xu,{display:"flex",direction:"column",alignItems:"center",color:e,width:n,height:n,rounding:"circle",justifyContent:"center",children:(0,r.jsx)(t.JO,{accessibilityLabel:s._('Secret board icon', 'Icon indicating that a board is secret', 'Icon indicating that a board is secret'),color:i,icon:"secret"===a?"lock":"security",size:null!=l?l:n/2})})}},340494:(e,i,l)=>{l.d(i,{Z:()=>r});var t=l(50286),o=l(19121);function r(){let e=(0,t.HG)(),i=(0,o.Z)(),l=i&&i.isAuth;return e&&l?e=>{var i,l;let t=e.cover_images&&e.cover_images["222x"]?e.cover_images["222x"].url:void 0,o=null!==(i=null===(l=e.cover_pin)||void 0===l?void 0:l.image_url)&&void 0!==i?i:t,r=e.images&&e.images["170x"]&&e.images["170x"].length?e.images["170x"][0].url:"";return o||r}:(e,i)=>{var l,t;let o=e.image_cover_hd_url||e.image_cover_url||"";if(!o)return"";let r=e.cover_images&&e.cover_images["400x300"]?e.cover_images["400x300"].url:void 0,a=e.cover_images&&e.cover_images["222x"]?e.cover_images["222x"].url:void 0,n=e.cover_images&&e.cover_images["216x146"]?e.cover_images["216x146"].url:void 0,s=null!==(l=null!==(t=null!=r?r:a)&&void 0!==t?t:n)&&void 0!==l?l:"",d=e.image_cover_url||"";return o||(i&&i>2&&s?s:"")||d}}},853492:(e,i,l)=>{l.d(i,{Bw:()=>n,Jx:()=>a,po:()=>t});let t=(e="")=>(null!=e?e:"").substring((null!=e?e:"").lastIndexOf("/")+1),o=e=>({dominant_color:"#FFFFFF",height:1,url:e,width:1}),r=e=>{if(!e)return()=>!0;let i=t(e);return e=>{var l;return"string"==typeof e?t(e)!==i:t(null!==(l=e.url)&&void 0!==l?l:"")!==i}},a=(e,i)=>e.images&&e.images["170x"]?e.images["170x"].filter(r(i)):e.pin_thumbnail_urls?e.pin_thumbnail_urls.filter(r(i)).map(o):[],n=e=>{var i;return null!==(i=e&&e.crop&&e.size&&{x:e.crop[0],y:e.crop[1],width:e.size[0],height:e.size[1]})&&void 0!==i?i:{x:0,y:0,width:0,height:0}}},712055:(e,i,l)=>{l.d(i,{Z:()=>r,f:()=>a});var t=l(186656),o=l(254176);function r(e,i){return async l=>{l((0,o.md)(e,!0));try{await (0,t.Z)({url:`/v3/boards/${e}/follow/`,method:"POST"}),i({event_type:26,object_id_str:e})}catch(i){l((0,o.md)(e,!1))}}}function a(e,i){return async l=>{l((0,o.md)(e,!0));try{await (0,t.Z)({url:`/v3/boards/${e}/follow/`,method:"DELETE"}),i({event_type:27,object_id_str:e})}catch(i){l((0,o.md)(e,!1))}}}}}]);
|
2
|
+
//# sourceMappingURL=https://sm.pinimg.com/webapp/23019-be3b8956cee94725.mjs.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[26067],{251819:(t,e,s)=>{"use strict";function i(t){return null==t||(Array.isArray(t)||"string"==typeof t?0===t.length:"function"==typeof t||"symbol"==typeof t||("object"==typeof t?!function(t){let e=t&&t.constructor,s="function"==typeof e&&e.prototype||Object.prototype;return t===s}(t)?t instanceof Map||t instanceof Set?0===t.size:!Object.keys(t).length:0===Object.keys(t).reduce((e,s)=>Object.prototype.hasOwnProperty.call(t,s)&&"constructor"!==s?[...e,s]:e,[]).length:"boolean"==typeof t||"number"==typeof t))}s.d(e,{Z:()=>i})},966113:(t,e,s)=>{"use strict";s.d(e,{$BF:()=>Q,$hN:()=>tS,$r$:()=>ev,AHp:()=>u,AXR:()=>O,Ayr:()=>S,B9s:()=>sp,BDV:()=>b,BJL:()=>eX,BQ:()=>sa,BZq:()=>eQ,B_E:()=>tK,B_F:()=>e3,BhY:()=>sr,Bip:()=>e4,BsQ:()=>e5,C5X:()=>eh,CGn:()=>tM,CKU:()=>st,CmU:()=>el,D$l:()=>v,Diy:()=>tJ,Dm$:()=>eT,E7b:()=>ss,EbJ:()=>tk,EfQ:()=>ty,Etg:()=>tp,F20:()=>X,F3K:()=>Z,FH6:()=>t9,F_W:()=>y,GEi:()=>t$,GHq:()=>tf,Gxc:()=>m,HH2:()=>eP,Hkj:()=>ey,Hlp:()=>ew,Hm8:()=>Y,Hv_:()=>tn,IAG:()=>eC,ISE:()=>e8,J$9:()=>tq,JRP:()=>tU,JbB:()=>tF,Jqx:()=>t4,JsV:()=>tD,K1A:()=>I,KDH:()=>V,KDh:()=>eJ,KUo:()=>tZ,K_Y:()=>tR,Kty:()=>U,LFB:()=>R,LOs:()=>ez,LU:()=>M,Ljd:()=>tL,LqJ:()=>L,MAK:()=>e0,MlZ:()=>eE,Moe:()=>tB,MsG:()=>ei,N1N:()=>eG,NWh:()=>t_,O67:()=>tz,O8y:()=>B,PQ$:()=>w,PRI:()=>eo,Peb:()=>eV,Pm9:()=>eg,Pug:()=>th,QeN:()=>e2,R_9:()=>l,RfW:()=>tN,S79:()=>tl,SNA:()=>eN,SZH:()=>e6,SrI:()=>ta,T1_:()=>ej,TGt:()=>e_,TMP:()=>ek,Tor:()=>em,U5h:()=>h,UXM:()=>eO,UcZ:()=>en,Umc:()=>ef,V$B:()=>et,VOe:()=>eZ,VSQ:()=>T,VVc:()=>eD,Vgh:()=>t6,W32:()=>eR,W_A:()=>eB,Wgh:()=>tc,X9u:()=>F,XVB:()=>eS,YmK:()=>eY,Z7y:()=>p,ZB7:()=>tW,ZCg:()=>D,ZEf:()=>tC,ZQO:()=>E,_Ib:()=>tx,_Ow:()=>t0,_PU:()=>tt,_kH:()=>eb,a$N:()=>a,aTZ:()=>sn,at$:()=>q,auO:()=>tI,b$O:()=>tm,bic:()=>g,bkh:()=>t5,c9B:()=>tO,c9T:()=>eq,cDv:()=>ep,cPf:()=>ec,ch6:()=>sc,cvl:()=>t7,cyT:()=>se,dFf:()=>eH,eDw:()=>ea,fAF:()=>tu,fPu:()=>ed,fTb:()=>te,gFC:()=>G,gOE:()=>o,gQV:()=>e9,hXb:()=>ee,hwP:()=>z,hzH:()=>td,i$J:()=>tw,i0v:()=>ts,i5f:()=>tj,iCb:()=>tr,iDH:()=>_,iYv:()=>es,iYw:()=>t2,icC:()=>tg,ire:()=>f,jKk:()=>C,kLL:()=>k,kOM:()=>eW,lfe:()=>J,lqN:()=>t1,lw5:()=>r,lz6:()=>tV,mB6:()=>eF,mIK:()=>eL,mlq:()=>tX,mxF:()=>K,nBl:()=>er,npC:()=>N,o1A:()=>e$,oit:()=>P,oqU:()=>tG,pgs:()=>so,q4s:()=>eu,qei:()=>W,qm0:()=>d,rOJ:()=>eM,ruW:()=>eA,rxA:()=>c,sXP:()=>tb,srp:()=>t3,t_w:()=>t8,tqg:()=>to,uhJ:()=>$,v0M:()=>eK,v3o:()=>tA,vBy:()=>H,vK5:()=>eU,w0m:()=>eI,wUZ:()=>tE,wqh:()=>ex,x$l:()=>j,x3c:()=>e7,xWj:()=>e1,x_j:()=>tQ,y6A:()=>x,yFM:()=>tY,yVt:()=>si,yt3:()=>tH,z0z:()=>tP,zXf:()=>ti,zal:()=>tv,zwT:()=>tT,zys:()=>A});var i=s(401060);let n="https://www.pinterest.com",o="https://www.pinterest.com/_/_/help/",r="https://www.pinterest.com/_/_/help/",p=r+"?source=gear_menu_web",c=r+"article/download-your-pinterest-data",a="https://pinterest.com/_/_/help/article/manage-a-parental-passcode",l="https://www.pinterest.com/_/_/policy/privacy-policy/",h="/_/_/policy/terms-of-service/",u="/settings/personal-information",m="/settings/privacy",d="/request-data",w="/_followers",g="/settings/edit-profile",_="/settings/account-settings/",b="/settings/profile-visibility",y="/edit/",f="/settings/claim",v="/settings/permissions",Z="/settings/notifications",I="/reports-and-violations",O="/settings/security",D="/settings/edit/login",E="/close-account",R="/switch_account",$="/settings/messages",k="/settings/edit/mentions",U="/parental-passcode",A="/convert-business",N="/convert-personal",T="/settings/",x="/settings/bulk-create-pins",B="/settings/branded-content",C="/settings/tax-documents",F=`${(0,i.Z)({site:"sterling",path:"/conversions/tag"})}`,S="https://business.pinterest.com/verified-merchant-program",q="https://ads.pinterest.com/conversions/?groupKey=Verified+Merchant+Program",j="https://apps.shopify.com/pinterest-1",P="https://woocommerce.com/products/pinterest-for-woocommerce/",V="/business/convert/",L="/_/_/help/",M="https://help.pinterest.com/business/article/modeled-conversions",H="https://help.pinterest.com/article/merchant-details",K="https://www.pinterest.com/_/_/help/business/article/third-party-and-dynamic-tracking",G="https://help.pinterest.com/contact?current_page=about_you_page&business_issues=advertising",J="/password/reset/",z="https://www.pinterest.com/_/_/policy/copyright/",W="https://www.pinterestcareers.com/",X="https://www.pinterest.com/_/_/policy/terms-of-service/",Q="https://policy.pinterest.com/de/impressum/",Y="/business/create/",tt="https://www.pinterest.com/_/_/help/articles/claim-your-website",te="https://www.pinterest.com/_/_/help/article/claim-your-account",ts="https://www.pinterest.com/_/_/help/business/article/link-your-shopify-and-pinterest-accounts",ti="https://www.pinterest.com/settings/claim",tn="https://www.pinterest.com/_/_/help/business/article/bulk-upload-video-pins",to="https://www.pinterest.com/_/_/help/business/article/conversion-insights",tr="https://www.pinterest.com/_/_/help/business/article/pinterest-tag-implementation-overview",tp="https://www.pinterest.com/_/_/help/business/article/enhanced-match",tc="https://www.pinterest.com/_/_/help/business/article/automatic-enhanced-match",ta="https://www.pinterest.com/_/_/help/business/article/share-and-manage-access-to-your-ad-accounts",tl="https://www.pinterest.com/_/_/help/business/article/add-event-codes",th="https://www.pinterest.com/_/_/help/business/article/limited-data-processing",tu="https://www.pinterest.com/_/_/help/business/article/the-pinterest-api-for-conversions",tm="https://www.pinterest.com/_/_/help/business/article/upload-conversions-with-ads-manager",td="/engagement/",tw="https://www.pinterest.com/engagement/",tg=`${(0,i.Z)({site:"www",path:"/business/business-access"})}`,t_="https://www.pinterest.com/_/_/business/",tb="https://www.pinterest.com/_/_/help/articles/pinterest-analytics",ty="https://www.pinterest.com/_/_/help/business/article/pin-stats",tf="274266067164",tv="1655662257",tZ="ads.pinterest.com",tI=`${(0,i.Z)({site:"sterling"})}`,tO="https://pinterest.onelink.me/TVSr/dwebios",tD="https://pinterest.onelink.me/TVSr/dwebandroid",tE="/_/_/about/",tR="https://www.pinterest.com/_/_/help/articles/block-or-unblock-someone",t$="/about/copyright/dmca-pin/",tk="/about/copyright/counter-notice/?pinID=123456789&dmcaID=987654321",tU="https://tagmanager.google.com",tA="694505692171-31closf3bcmlt59aeulg2j81ej68j6hk.apps.googleusercontent.com",tN="https://business.pinterest.com",tT="https://www.pinterest.com/pin/12345/",tx="https://www.pinterest.com/_/_/policy/cookies/",tB="https://www.pinterest.com/_/_/business/content/creative-best-practices",tC="/login/",tF="https://help.pinterest.com/contact",tS="https://developers.pinterest.com/docs/conversions/updated/",tq="https://developers.pinterest.com/docs/getting-started/authentication/",tj="https://developers.pinterest.com/docs/api/v5/#operation/events/create",tP="https://developers.pinterest.com/docs/conversions/event/",tV="https://help.pinterest.com/en/business/article/the-pinterest-api-for-conversions",tL="https://developers.pinterest.com/docs/conversions/best/",tM="https://developers.pinterest.com/docs/conversions/conversions/",tH="https://developers.pinterest.com/docs/conversions/pinterest-tag/",tK="https://developers.pinterest.com/docs/conversions/conversions/#Understanding%20Limited%20Data%20Processing",tG="https://developers.pinterest.com/docs/conversions/3rd-party-api-integrations/",tJ="https://developers.pinterest.com/payload-helper/",tz="https://wikipedia.org/wiki/Universally_unique_identifier",tW="https://policy.pinterest.com/merchant-guidelines",tX="https://policy.pinterest.com/advertising-guidelines",tQ="https://www.pinterest.com/_/_/policy/",tY=`${(0,i.Z)({site:"sterling",path:"/promoted_pin_v2/campaign/"})}`,t0=`${(0,i.Z)({site:"analytics"})}`,t1=`${(0,i.Z)({site:"analytics",path:"/audience-insights/"})}`,t9=`${(0,i.Z)({site:"analytics",path:"/overview/"})}`,t2="https://trends.pinterest.com",t6="https://trends-internal.pinadmin.com",t5=`${(0,i.Z)({site:"planninghub-internal"})}`,t4=`${(0,i.Z)({site:"www"})}/advertiser/quick-promote`,t3="https://www.pinterest.com/business/hub/?show_vmp=true",t7="https://policy.pinterest.com/notice-at-collection",t8="https://careers.pinterest.com/",et="https://www.pinterest.com/_/_/business/business-terms-of-service/",ee="https://help.pinterest.com/?context=business",es="https://developers.pinterest.com",ei="https://policy.pinterest.com/community-guidelines",en="https://business.pinterest.com/business-terms-of-service",eo=["CA"],er=["CA","CO"],ep="https://accounts.pinterest.com",ec="https://www.pinterest.com/_/_/help/contact",ea="https://business.pinterest.com/pinterest-advertising-services-agreement",el="https://www.pinterest.com/_/_/business/Pinterest-product-specs",eh="https://www.pinterest.com/_/_/help/business/article/pinterest-product-specs",eu="https://www.pinterest.com/_/_/help/business/article/story-pins",em="https://help.pinterest.com/business/article/audience-targeting",ed="https://pinterest.com/_/_/help/article/your-privacy-and-data-settings",ew="https://pinterest.com/_/_/help/article/update-your-search-privacy",eg="https://pinterest.com/_/_/help/article/make-your-profile-private",e_="https://www.google.com/webmasters/tools/removals?pli=1",eb="https://pinterest.com/_/_/help/article/personalization-and-data#info-ad",ey="https://help.pinterest.com/business/article/about-catalogs",ef="https://help.pinterest.com/business/article/data-source-setup",ev="https://help.pinterest.com/product/manualupload",eZ="https://help.pinterest.com/business/article/data-source-ingestion",eI="https://help.pinterest.com/business/article/create-product-groups",eO="https://help.pinterest.com/en/business/article/before-you-get-started-with-catalogs#section-9441",eD="https://help.pinterest.com/en/business/article/before-you-get-started-with-catalogs#section-14456",eE="https://help.pinterest.com/en/business/article/promote-your-product-groups",eR="https://pinterest.com/_/_/help/landing/request-a-feature",e$="https://www.pinterest.com/_/_/help/business/article/video-pins",ek="ms-windows-store://pdp/?productid=9PFHDSF91B9R",eU=n+"/_/_/newsroom/",eA=n+"/_/_/policy/",eN="https://pinterest.com/_/_/help/business/article/ad-only-profiles",eT="https://help.pinterest.com/business/article/ad-only-pins",ex="https://www.pinterest.com/_/_/help/business/article/set-up-the-pinterest-tag",eB="https://www.pinterest.com/_/_/help/business/article/install-the-pinterest-tag",eC="https://www.pinterest.com/_/_/help/business/article/google-tag-manager-and-pinterest-tag",eF="https://www.pinterest.com/_/_/help/business/article/squarespace-and-pinterest-tag",eS="https://www.pinterest.com/_/_/help/business/article/bigcommerce-and-pinterest-tag",eq="https://help.pinterest.com/business/article/before-you-get-started-with-catalogs",ej="https://help.pinterest.com/business/article/verified-merchant-program",eP=`${(0,i.Z)({site:"sterling",path:"/conversions/tag-health"})}`,eV=`${(0,i.Z)({site:"analytics",path:"/conversion-insights/"})}`,eL="https://pinterest.com/_/_/help/article/manage-your-linked-business-account",eM="/add-account",eH=`${(0,i.Z)({site:"sterling",path:"/recommendations"})}`,eK="/business/hub",eG="https://pinterest.com/_/_/help/article/protect-your-account",eJ="https://help.pinterest.com/guide/guide-to-creating-pins",ez="https://www.pinterest.com/public-beta/",eW="https://help.pinterest.com/en/business/article/create-and-manage-product-groups-in-bulk",eX="/_/_/help/article/suicide-and-self-harm-prevention",eQ="https://policy.pinterest.com/lead-ad-terms",eY="https://pinterest.com/_/_/help/article/age-requirements-for-using-pinterest",e0="https://pinterest.com/_/_/help/article/email-is-old-or-inaccessible",e1="https://help.pinterest.com/en/business/article/personalize-your-profile",e9="https://help.pinterest.com/en/business/article/shopping-on-pinterest",e2=(t,e)=>`${(0,i.Z)({site:"sterling",path:`/conversions/tag_manual_setup?platform=${t}&source=${e}`})}`,e6=`${(0,i.Z)({site:"sterling",path:"/conversions/tag_manual_setup"})}`,e5="https://docs.tealium.com/server-side-connectors/pinterest-conversions/",e4="https://docs.tealium.com/client-side-tags/pinterest-tag/",e3="https://help.branch.io/partners-portal/docs/pinterest",e7="https://segment.com/docs/connections/destinations/catalog/actions-pinterest-conversions-api/",e8="https://segment.com/docs/connections/destinations/catalog/pinterest-tag/",st="https://hightouch.com/docs/destinations/pinterest-ads",se="https://eulerian.wiki/doku.php?id=en:partners:universpinterest:start",ss="https://experienceleague.adobe.com/docs/experience-platform/tags/extensions/server/pinterest/overview.html",si="https://commercemarketplace.adobe.com/pinterest-pinterest-magento2-extension.html",sn="https://appexchange.salesforce.com/appxListingDetail?listingId=1ed5ac60-0a1b-4c6c-bd96-9037e27dd2e9",so="https://pinterest.com/_/_/help/article/review-your-reports-and-violations",sr="/business/catalogs",sp="https://ads.pinterest.com/conversions/",sc="https://ads.pinterest.com/?redirect=CONVERSIONS",sa="https://www.pinterest.com/settings/edit-profile"},579164:(t,e,s)=>{"use strict";s.d(e,{Z:()=>n});let i=Object.freeze({SAME_ORIGIN:1,TRUSTED_DIFFERENT_ORIGIN:2,UNTRUSTED:3,INVALID:4}),n=i},794230:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});var i=s(251819),n=s(643913),o=s(704115);let r=(t,e)=>{if(!(0,i.Z)(e)){let s=t.split("?"),i=s[0],r=s[1],p=r?(0,o.Z)(r):{},c={...p,...e};return i+"?"+(0,n.Z)(c)}return t}},29538:(t,e,s)=>{"use strict";s.d(e,{X1:()=>n,ce:()=>i,iP:()=>o});let i="pinterest.com",n="pinterdev.com",o="pinadmin.com"},643913:(t,e,s)=>{"use strict";s.d(e,{Z:()=>function t(e){let s=[];for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let n=e[i];if(void 0!==n){let e;e=Array.isArray(n)?encodeURIComponent(i)+"=["+n.map(t=>encodeURIComponent(t)).join(",")+"]":"object"==typeof n?t(n):encodeURIComponent(i)+"="+encodeURIComponent(n),s.push(e)}}return s.join("&")}})},704115:(t,e,s)=>{"use strict";function i(t){null==t&&"undefined"!=typeof window&&(t=window.location.search);let e={};if(t){"?"===t[0]&&(t=t.substring(1));let s=/\+/g,i=/([^&=]+)=?([^&]*)/g,n=function(t){let e=t.replace(s," ");try{e=decodeURIComponent(e)}catch(t){e=unescape(e)}return e},o=i.exec(t);for(;o;){let s=n(o[1]);e[s]=n(o[2]),o=i.exec(t)}}return e}s.d(e,{Z:()=>i})},547239:(t,e,s)=>{"use strict";s.d(e,{Z:()=>c});let i=(t,e)=>-1!==t.indexOf(e,t.length-e.length);var n=s(966113),o=s(29538),r=s(89254),p=s(579164);let c=t=>{if("undefined"==typeof window)return p.Z.INVALID;let e=(0,r.Z)(t),s="",c="";try{s=window.location.origin,c=window.location.hostname}catch(t){}if(e.origin===s)return p.Z.SAME_ORIGIN;if(e.hostname===c)return p.Z.TRUSTED_DIFFERENT_ORIGIN;if(e.hostname){let t=[o.ce,o.X1,o.iP];for(let s of t)if(e.hostname===s||i(e.hostname||"","."+s))return p.Z.TRUSTED_DIFFERENT_ORIGIN}return e.origin&&"https://www.pinterest.com"===e.origin||"https"===e.protocol&&"pinterest.onelink.me"===e.host&&(t===n.c9B||t===n.JsV)?p.Z.TRUSTED_DIFFERENT_ORIGIN:e.origin?p.Z.UNTRUSTED:p.Z.INVALID}},401060:(t,e,s)=>{"use strict";function i({site:t,path:e=""}){if(e&&!e.startsWith("/"))throw Error(`${e} needs to start with '/' -- hostForSite() does not append a trailing slash to the host, so all paths should start with '/'`);return`https://${"sterling"===t?"ads":"planninghub-internal"===t?"planninghub":t}.${"trends-internal"===t||"planninghub-internal"===t?"pinadmin.com":"pinterest.com"}${e}`}s.d(e,{Z:()=>i}),new RegExp(/\b(dev|devrestricted)\b.*/)},826067:(t,e,s)=>{"use strict";s.d(e,{Gw:()=>u,JJ:()=>a,Jx:()=>c,OM:()=>n.Z,Qc:()=>r.Z,Qg:()=>p.Z,XP:()=>h,mB:()=>l,ru:()=>i.Z,sD:()=>m,tV:()=>d,vx:()=>o.Z});var i=s(794230),n=s(547239),o=s(579164),r=s(89254),p=s(954931);let c=t=>{if(!t)return"";try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return""}},a=()=>{let{pathname:t,search:e}=window.location;return t+("?"===e?"":e)},l=(t,e={shouldDecode:!0})=>t?("?"===t[0]&&(t=t.substr(1)),t.split("&").reduce((t,s)=>{let[i,n]=s.split(/=(.+)/);return null!=e&&e.shouldDecode?t[c(i)]=c(n):t[i]=n,t},{})):{},h=t=>Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&"),u=(t,e)=>{if(0===e.length)return t;let[s,n]=t.split("?"),o=Object.entries(l(n)).filter(([t,s])=>!e.includes(t)).reduce((t,[e,s])=>({...t,[e]:s}),{});return(0,i.Z)(s,o)},m=t=>/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t);function d(t,...e){let s=t[0];for(let i=0;i<e.length;i+=1)s+=encodeURIComponent(e[i]).replace(/~/g,"%7E").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/!/g,"%21").replace(/\\/g,"%5C").replace(/'/g,"%27")+t[i+1];return s}},954931:(t,e,s)=>{"use strict";s.d(e,{Z:()=>o});var i=s(547239),n=s(579164);let o=t=>[n.Z.SAME_ORIGIN,n.Z.TRUSTED_DIFFERENT_ORIGIN].includes((0,i.Z)(t))},188682:t=>{function e(t){let s=e.options,i=s.parser[s.strictMode?"strict":"loose"].exec(t),n={},o=14;for(;o--;)n[s.key[o]]=i[o]||"";return n[s.q.name]={},n[s.key[12]].replace(s.q.parser,(t,e,i)=>{e&&(n[s.q.name][e]=i)}),n}e.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:(?<!\\)@]*)(?::([^:@]*))?)?@)?([^:\/?#\\]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},e.options.strictMode=!0,t.exports=e},89254:(t,e,s)=>{"use strict";s.d(e,{Z:()=>o});var i=s(188682),n=s.n(i);let o=(t,e)=>{let s,i;let o=n()(t);switch(o.protocol){case"http":case"https":o.userInfo&&(o.userInfo.endsWith("%23")||o.userInfo.endsWith("#"))?(s=o.protocol+"://"+o.userInfo,i=""):(s=o.userInfo?o.protocol+"://"+o.host:o.protocol+"://"+o.authority,i=o.host);break;case"":if(0===o.source.indexOf("//")){if(e)s=null;else try{s=window.location.protocol+"//"+o.authority}catch(t){s=null}i=o.host}else if(e)s=null,i=null;else try{s=window.location.protocol+"//"+window.location.hostname,i=window.location.hostname}catch(t){s=null,i=null}break;default:s=null,i=o.host}return{...o,origin:s,hostname:i}}}}]);
|
2
|
+
//# sourceMappingURL=https://sm.pinimg.com/webapp/26067-cb77f2673c5f757c.mjs.map
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[27405],{366284:(e,t,a)=>{a.d(t,{G6:()=>r,i7:()=>l,oi:()=>i,u$:()=>s,un:()=>o,vU:()=>n});let i=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),s=e=>e?e.includes("Chrome")?i.CHROME:e.includes("Safari")?i.SAFARI:e.includes("Firefox")?i.FIREFOX:e.includes("Opera")?i.OPERA:e.includes("IE")?i.IE:e.includes("Edge")?i.EDGE:i.OTHER:i.OTHER;function r(e){return s(e)===i.SAFARI}function l(e){return s(e)===i.CHROME}function n(e){return s(e)===i.FIREFOX}function o(e){return s(e)===i.EDGE}},562559:(e,t,a)=>{a.d(t,{Z:()=>R});var i=a(667294),s=a(867631),r=a.n(s),l=a(883119),n=a(112690),o=a(391254),h=a(773285),d=a(780280),u=a(19121),p=a(969315),c=a(179888),y=a(965900),m=a(539766),S=a(785893);function P(e,t,a){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}let v=(e,t)=>typeof e!=typeof t||(Array.isArray(t)?e.length!==t.length||t.some((t,a)=>!Array.isArray(e)||t.type!==e[a].type||t.src!==e[a].src):t!==e),f=(e,t)=>t?e.replace("v1.pinimg.com","control"===t?"v3.pinimg.com":"v2.pinimg.com"):e,b=(e,t)=>e[0].src&&t?[{...e[0],src:f(e[0].src,t)}]:e,g=(e,t)=>"string"==typeof e?f(e,t):Array.isArray(e)?b(e,t):e;class E extends i.PureComponent{constructor(...e){super(...e),P(this,"state",{canPlayVideo:!1,isManifestParsed:!1,playbackState:c.Cy.DEFAULT,videoStartTime:this.props.seekTime||0}),P(this,"errorRetryCount",1),P(this,"firstFragBuffered",!1),P(this,"hasPlaybackStarted",!1),P(this,"hasVideoSessionStarted",!1),P(this,"hasVideoSessionEnded",!1),P(this,"hls",null),P(this,"fragStartupTime",{}),P(this,"lastLevelSwitchKbps",null),P(this,"lastStallTime",null),P(this,"lastPauseTime",null),P(this,"logSessionStartOnNextPlay",!1),P(this,"playerId",""),P(this,"videoSessionId",""),P(this,"videoVisibleTime",null),P(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",downloadedKiloBytes:0,errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:"string"==typeof this.props.src?f(this.props.src,this.props.quicExpGroup):f(this.props.src[0].src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0,videoCreatedTime:null}),P(this,"initializeHls",()=>{this.destroyHls();let{src:e,hlsConfig:t,quicExpGroup:a}=this.props,i=new(r())(t),s=g(e,a);i.loadSource(s),this.videoPlayerRef&&i.attachMedia(this.videoPlayerRef.video),i.on(r().Events.FRAG_BUFFERED,this.handleHlsFragBuffered),i.on(r().Events.FRAG_CHANGED,this.handleHlsFragChanged),i.on(r().Events.FRAG_LOADING,this.handleHlsFragLoading),i.on(r().Events.FRAG_LOADED,this.handleHlsFragLoaded),i.on(r().Events.MANIFEST_PARSED,()=>{this.setState({isManifestParsed:!0})}),i.on(r().Events.LEVEL_SWITCHED,this.handleHlsLevelSwitched),i.on(r().Events.ERROR,this.handleHlsError),this.hls=i}),P(this,"destroyHls",()=>{let{hls:e}=this;e&&e.destroy()}),P(this,"addSegment",e=>{let{segments:t}=this.playbackPerformance,a=t&&t[t.length-1];if(this.hls&&t.length&&a&&a.uri!==e.url){this.updateWatchDurationForCurrentSegment();let a=this.videoPlayerRef&&this.videoPlayerRef.video,i=this.hls&&this.hls.levels||{},s="number"==typeof e.level?i[e.level]:{},r=this.fragStartupTime[e.url],l=-1;r&&r.startLoadTime&&r.endLoadTime&&(l=r.endLoadTime-r.startLoadTime);let n={indicatedKbps:s.bitrate/c.bR,duration:e.duration,level:e.level,lastStartPlayTime:this.getCurrentVideoTime(),numServerAddressChange:-1,observedKbps:this.hls&&this.hls.bandwidthEstimate/c.bR||-1,playbackStartDate:Date.now(),serverAddress:"",sn:e.sn,sourceWidth:s.width,sourceHeight:s.height,startupTimeMs:l,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:a&&a.clientWidth||-1,viewportHeight:a&&a.clientHeight||-1,watchedDurationMs:0};t.push(n)}}),P(this,"initializeSegments",e=>{let{contextLogData:t={}}=this.props,{is_closeup_video:a=!1}=t,{segments:i}=this.playbackPerformance;if(!i.length){if(!this.hls||!this.videoPlayerRef||!this.videoPlayerRef.video||!e){(0,p.tE)("initializeSegmentsFailed",!0,a);return}if(!i.length&&"number"==typeof e.level){let t=this.videoPlayerRef&&this.videoPlayerRef.video,{levels:a}=this.hls,s="number"==typeof e.level?a[e.level]:{},r=this.fragStartupTime[e.url],l=-1;r&&r.startLoadTime&&r.endLoadTime&&(l=r.endLoadTime-r.startLoadTime),this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/c.bR;let n={indicatedKbps:s.bitrate/c.bR,duration:e.duration,level:e.level,lastStartPlayTime:null,numServerAddressChange:-1,observedKbps:this.hls.bandwidthEstimate/c.bR||-1,playbackStartDate:null,serverAddress:"",sn:e.sn,sourceWidth:s.width,sourceHeight:s.height,startupTimeMs:l,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:t.clientWidth,viewportHeight:t.clientHeight,watchedDurationMs:0};i.push(n)}}}),P(this,"getCurrentVideoTime",()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*c.gJ:null),P(this,"handleCanPlayVideo",e=>{let{contextLogData:t={},onReady:a,playing:i}=this.props,{is_closeup_video:s=!1}=t,{canPlayVideo:r}=this.state;(0,p.tE)("handleCanPlayVideo",!0,s,{firstCanPlayEvent:!r,playing:i}),this.playbackPerformance.hasFatalError=!1,r||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),a&&a(e)}),P(this,"handleEnded",e=>{let{loop:t,onEnded:a}=this.props,{segments:i}=this.playbackPerformance,s=i&&i[i.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),s&&(s.lastStartPlayTime=0),this.fragStartupTime={}):t||this.logPlaybackPerformance(c.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:c.Cy.ENDED}),a&&a(e)}),P(this,"handleHlsError",(e,t)=>{var a,i,s,l,n,o,h;let{contextLogData:d={}}=this.props,{is_closeup_video:u=!1}=d;if(this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${t.details}`,t.fatal){this.playbackPerformance.hasFatalError=!0,this.playbackPerformance.errorName=t.type,this.playbackPerformance.errorReason=t.details,this.playbackPerformance.errorCode=t.response&&t.response.code?t.response.code:0;let e={errorName:t.type,errorReason:t.details,errorRetryCount:this.errorRetryCount,errorMessage:(null===(i=t.err)||void 0===i?void 0:null===(s=i.message)||void 0===s?void 0:s.slice(0,50))||"unknown",errorResponse:(null===(l=t.response)||void 0===l?void 0:null===(n=l.text)||void 0===n?void 0:n.slice(0,50))||"unknown",playbackState:this.state.playbackState};if((0,p.tE)("fatalError",!0,u,e),this.errorRetryCount>0)switch(this.errorRetryCount-=1,t.type){case r().ErrorTypes.NETWORK_ERROR:if(t.details===r().ErrorDetails.MANIFEST_LOAD_ERROR||t.details===r().ErrorDetails.MANIFEST_LOAD_TIMEOUT||t.details===r().ErrorDetails.MANIFEST_LOAD_PARSING_ERROR){let{src:e,quicExpGroup:t}=this.props,a=g(e,t);null===(o=this.hls)||void 0===o||o.loadSource(a)}else null===(h=this.hls)||void 0===h||h.startLoad();break;case r().ErrorTypes.MEDIA_ERROR:null===(a=this.hls)||void 0===a||a.recoverMediaError()}}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:c.Cy.FAILED})}),P(this,"handleHlsFragBuffered",(e,t)=>{this.firstFragBuffered||(this.initializeSegments(t.frag),this.firstFragBuffered=!0)}),P(this,"handleHlsFragChanged",(e,t)=>{this.addSegment(t.frag)}),P(this,"handleHlsFragLoading",(e,t)=>{var a;let i=null===(a=t.frag)||void 0===a?void 0:a.url;i&&!this.fragStartupTime[i]&&(this.fragStartupTime[i]={startLoadTime:new Date})}),P(this,"handleHlsFragLoaded",(e,t)=>{var a;t.frag&&t.frag.loaded&&(this.playbackPerformance.downloadedKiloBytes+=t.frag.loaded/c.Fm);let i=null===(a=t.frag)||void 0===a?void 0:a.url;i&&this.fragStartupTime[i]&&this.fragStartupTime[i].startLoadTime&&(this.fragStartupTime[i].endLoadTime=new Date)}),P(this,"handleHlsLevelSwitched",()=>{this.hls&&this.hls.bandwidthEstimate&&(this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/c.bR)}),P(this,"handleLoadedMetadata",()=>{this.setState({playbackState:c.Cy.LOADED_METADATA})}),P(this,"handleLoadStart",()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:c.Cy.LOAD_START})}),P(this,"handleLoadedData",()=>{this.setState({playbackState:c.Cy.LOADED_DATA})}),P(this,"handlePlaying",()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:c.Cy.PLAYING}),this.props.clearSeekTime&&this.props.clearSeekTime()}),P(this,"handleUserPause",e=>{let{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)}),P(this,"handleVideoPause",()=>{this.state.playbackState===c.Cy.STALLING||this.state.playbackState===c.Cy.SEEKING||(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:c.Cy.PAUSED})}),P(this,"handleSeeking",()=>{this.playbackPerformance.numberOfSeeks+=1;let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==c.Cy.ENDED&&this.setState({playbackState:c.Cy.SEEKING})}),P(this,"handleStalled",()=>{null===this.lastStallTime&&this.state.playbackState!==c.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1),this.setState({playbackState:c.Cy.STALLING})}),P(this,"handleTimeUpdate",e=>{let{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===c.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())}),P(this,"resetPlaybackMetrics",()=>{this.hasPlaybackStarted=!1,this.hasVideoSessionStarted=!1,this.hasVideoSessionEnded=!0,this.lastLevelSwitchKbps=null,this.lastStallTime=null,this.lastPauseTime=null,this.videoSessionId="",this.videoVisibleTime=null,this.logSessionStartOnNextPlay=!1;let e=this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],t={...e,lastStartPlayTime:null,playbackStartDate:null,switchBitrateKbps:-1,watchedDurationMs:0};this.playbackPerformance.detailedErrors="",this.playbackPerformance.downloadedKiloBytes=0,this.playbackPerformance.errorCode=0,this.playbackPerformance.errorName="",this.playbackPerformance.errorReason="",this.playbackPerformance.hasFatalError=!1,this.playbackPerformance.numberOfStalls=0,this.playbackPerformance.numberOfSeeks=0,this.playbackPerformance.playbackStartTimestamp=null,this.playbackPerformance.totalStallDurationMs=0,this.playbackPerformance.segments=[t]}),P(this,"setLastSegmentStartPlayTime",()=>{let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())}),P(this,"setLastSegmentPlaybackStartDate",()=>{let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())}),P(this,"setPlaybackStartTime",()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)}),P(this,"setVideoPlayerRef",e=>{let{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){let e=this.videoPlayerRef.video;e.addEventListener("loadedmetadata",this.handleLoadedMetadata),e.addEventListener("loadeddata",this.handleLoadedData),e.addEventListener("pause",this.handleVideoPause),e.readyState>=3&&(this.setState({canPlayVideo:!0}),this.playbackPerformance.canPlayTime=new Date)}}),P(this,"updateStallDuration",()=>{null!==this.lastStallTime&&(this.playbackPerformance.totalStallDurationMs+=new Date-this.lastStallTime,this.lastStallTime=null)}),P(this,"updatePauseDuration",()=>{if(null!==this.lastPauseTime){let{lastPauseTime:e}=this;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}}),P(this,"updateWatchDurationForCurrentSegment",()=>{let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],a=t?t.lastStartPlayTime:null,i=this.getCurrentVideoTime();if(t&&null!==a&&"number"==typeof i&&"number"==typeof a){let e=i-a;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}}),P(this,"logPlaybackPerformance",(e,t)=>{let{contextLogData:a={},userId:i,isAutoPlay:s,logContextEvent:r,preload:l}=this.props,{is_closeup_video:n=!1}=a,{canPlayTime:o,detailedErrors:h,downloadedKiloBytes:d,errorCode:u,errorName:y,errorReason:m,hasFatalError:S,playbackStartTimestamp:P,totalPauseDurationMs:v,totalStallDurationMs:f,segments:b,srcString:g,loadStartTime:E,numberOfStalls:R,numberOfSeeks:D}=this.playbackPerformance,T=this.videoPlayerRef&&this.videoPlayerRef.video,k=e===c.DR,C=k&&!this.hasVideoSessionStarted,w=!k&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(this.hls&&T&&(C||w)){var L;let C=-1;o&&E&&(C=o>E?o-E:0);let w=-1;o&&this.videoVisibleTime&&(w=o>this.videoVisibleTime?o-this.videoVisibleTime:0),k&&(this.videoSessionId=(0,c.Y7)(i),this.playerId=this.playerId||(0,c.EB)());let A={autoplaying:s,averageVideoKbps:-1,detailedErrors:h,downloadedKiloBytes:d,isCellular:!1,errorCode:u,errorName:y,errorReason:m,fatalError:S,nativeVideoDurationMs:T.duration*c.gJ||-1,numberOfStalls:R,numberOfSeeks:D,overallPausedDurationMs:v,overallBufferDurationMs:f,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:P||-1,segments:[],sessionMark:e,screenPixelScale:null!==(L=window)&&void 0!==L&&L.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:T.clientWidth,startupPlayerHeight:T.clientHeight,startupTimeMs:C,startupLatencyMs:w,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:T.videoWidth,startupVariantHeight:T.videoHeight,videoUrl:g,wasVideoPreloaded:"auto"===l};if(!k&&b.length){let{levels:e}=this.hls,t=b[0];this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();let a=b.reduce((t,a)=>{if(!a||"number"!=typeof a.level||!e||!(e.length>0))return t;{let i=(e[a.level]||{}).bitrate,s=a.watchedDurationMs;return t+i*(s||0)/c.gJ}},0),i=b.reduce((e,t)=>e+(t.watchedDurationMs||0),0),s=null,r=0,l=0;do r+=b[l].watchedDurationMs,s=s||b[l].level,l+=1;while(l<b.length&&b[l].level===s)A.startupVariantKbps=t.indicatedKbps,A.startupVariantWatchedDurationMs=r,A.startupVariantWidth=t.sourceWidth,A.startupVariantHeight=t.sourceHeight,A.startupPlayerWidth=t.viewportWidth,A.startupPlayerHeight=t.viewportHeight,A.overallWatchedDurationMs=i,i>0?(A.averageVideoKbps=a/(i/c.gJ),A.rebufferRate=this.playbackPerformance.totalStallDurationMs/i):0===i&&(A.averageVideoKbps=-1,A.rebufferRate=-1,A.errorName="invalid_watch_duration"),A.segments=b}else A.errorName="invalid_watch_duration";(0,p.ZP)(A,!0,n,{playbackState:this.state.playbackState,...t});let{clientTrackingParams:_,component:O,durationNs:F,element:I,objectId:V,pairId:H,viewData:M,view:x,viewParameter:N,...W}=a;r({aux_data:{...W,is_closeup_video:n,playback_session_id:this.videoSessionId},clientTrackingParams:_,component:O,duration_ns:F,element:I,event_data:{videoPerformanceData:A},event_type:3606,object_id_str:V,pair_id:H,view_data:M,view_parameter:N,view_type:x}),k?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,p.tE)(k?"sessionStart":"sessionEnd",!0,n,{playbackState:this.state.playbackState,...t})}})}componentDidMount(){let{contextLogData:e={},playing:t}=this.props,{is_closeup_video:a=!1}=e;this.playbackPerformance.videoCreatedTime=new Date,this.initializeHls(),(0,p.tE)("videoMounted",!0,a),t&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(c.DR,{initiator:"mount"}))}componentDidUpdate(e){var t,a;let{loop:i,playing:s,src:r,visible:l,appInFocus:n,seekTime:o,captionsEnabled:h}=this.props,d=null===(t=this.videoPlayerRef)||void 0===t?void 0:null===(a=t.video)||void 0===a?void 0:a.textTracks[0];d&&(h?d.mode="showing":d.mode="disabled",d.addEventListener("cuechange",()=>{let e=d.activeCues&&d.activeCues.length>0&&d.activeCues[0];e&&e.line&&(e.line=-6,e.size=88)})),o&&o!==e.seekTime&&this.setState({videoStartTime:o}),v(e.src,r)&&this.initializeHls(),e.appInFocus&&!n&&(this.logPlaybackPerformance(c.$f,{initiator:"update",loop:i}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===l&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(c.$f,{initiator:"update",loop:i})),!1===e.visible&&!0===l&&(this.videoVisibleTime=this.videoVisibleTime||new Date,s?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(c.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),s&&n&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(c.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)}componentWillUnmount(){let{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(c.$f,{initiator:"unmount",loop:e}),this.destroyHls()}render(){let{aspectRatio:e,backgroundColor:t,captions:a,controls:i,loop:s,loopOverride:r,objectFit:n,onDurationChange:h,onFullscreenChange:d,onLoadedChange:u,onControlsPlay:p,onPlayheadDown:c,onPlayheadUp:y,onSeek:P,onVolumeChange:v,playbackRate:f,playing:b,playsInline:E,poster:R,preload:D,quicExpGroup:T,src:k,volume:C,captionsEnabled:w}=this.props,{canPlayVideo:L,isManifestParsed:A,videoStartTime:_}=this.state,O=g(k,T);return w?(0,S.jsxs)(l.xu,{width:"100%",children:[(0,S.jsx)(o.Z,{unsafeCSS:m.P}),(0,S.jsx)(l.nk,{aspectRatio:e,backgroundColor:t,captions:a,controls:i,loop:void 0===r?s:r,objectFit:n,onDurationChange:h,onEnded:this.handleEnded,onFullscreenChange:d,onLoadStart:this.handleLoadStart,onLoadedChange:u,onControlsPause:this.handleUserPause,onControlsPlay:p,onPlaying:this.handlePlaying,onPlayheadDown:c,onPlayheadUp:y,onReady:this.handleCanPlayVideo,onSeek:P,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:v,onWaiting:this.handleStalled,playbackRate:f,onPlay:()=>{},onPlayError:()=>{},playing:A&&L&&b,playsInline:E,poster:R,preload:D,ref:this.setVideoPlayerRef,src:O,startTime:_,volume:C})]}):(0,S.jsx)(l.nk,{aspectRatio:e,backgroundColor:t,captions:a,controls:i,loop:void 0===r?s:r,objectFit:n,onDurationChange:h,onEnded:this.handleEnded,onFullscreenChange:d,onLoadStart:this.handleLoadStart,onLoadedChange:u,onControlsPause:this.handleUserPause,onControlsPlay:p,onPlaying:this.handlePlaying,onPlayheadDown:c,onPlayheadUp:y,onReady:this.handleCanPlayVideo,onSeek:P,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:v,onWaiting:this.handleStalled,playbackRate:f,onPlay:()=>{},onPlayError:()=>{},playing:A&&L&&b,playsInline:E,poster:R,preload:D,ref:this.setVideoPlayerRef,src:O,startTime:_,volume:C})}}let R=(0,i.memo)(function(e){let{country:t,isAuthenticated:a,isBot:i,isSocialBot:s,unauthId:r,userAgent:l}=(0,d.B)(),o=(0,n.Z)(),c=(0,u.Z)(),{browserName:m,browserVersion:P,isMobile:v}=l,{contextLogData:f={}}=e,{is_closeup_video:b=!1,view:g,viewParameter:R}=f,{checkExperiment:D}=(0,h.F)(),T=null;a&&(T=D("web_video_quic").group.length?D("web_video_quic").group:null);let{appUI:k}=(0,y.I)(),C=D("web_video_fail_to_start_fix").anyEnabled?k.appInFocus:e.appInFocus;return(0,p.r$)({browserName:m,browserVersion:P,country:t,isAuthenticated:a,isBot:i,is_closeup_video:b,isMobile:v,isSocialBot:s,view:g,viewParameter:R}),(0,S.jsx)(E,{...e,userId:c.id||r,appInFocus:C,quicExpGroup:T,logContextEvent:o})})},969315:(e,t,a)=>{a.d(t,{ZP:()=>p,r$:()=>d,tE:()=>u});var i=a(311560),s=a(179888),r=a(67347);let l=["isCellular","videoUrl","sessionMark"],n={},o="",h=e=>e<0?"negative":0===e?"zero":e<200?"xs":e<400?"s":e<600?"m":e<800?"l":e<1e3?"xl":e<1200?"xxl":"over1200",d=e=>{let{browserName:t,browserVersion:a,country:s,isAuthenticated:r,isBot:l,isMobile:h,isSocialBot:d,view:u="unknown",viewParameter:p="unknown"}=e;o=d&&"socialBot"||l&&"bot"||"nonbot";let c=(0,i.Z)(s);n={browserName:t,browserVersion:(null==a?void 0:a.split(".")[0])||"0",isAuthenticated:r,isMobile:h,region:c,view:u,viewParameter:p}};function u(e,t,a,i={}){let s={...i,...n},l=`web.video.${t?"hls":"nonHls"}.${o}.${a?"closeup":"nonCloseup"}.${e}`;"nonbot"===o&&(0,r.nP)(l,{sampleRate:1,tags:s})}function p(e,t,a,i={}){let d=a?"closeup":"nonCloseup",u=t?"hls":"nonHls",p=e.sessionMark===s.DR?"sessionStart":"sessionEnd",c={...i,...n};if("nonbot"===o&&(Object.entries(e).forEach(([t,a])=>{let i=`web.video.${u}.${o}.${d}.${p}.${t}`,s=parseInt(a,10),n="number"==typeof s?s:-1;if(!l.includes(t)){if(t.includes("fatalError")&&!0===a){let{errorCode:t,errorName:a,errorReason:s}=e;(0,r.nP)(i,{sampleRate:1,tags:{errorCode:t,errorName:a,errorReason:s,...c}})}else if(t.includes("Width")||t.includes("Height")){let e=h(n);(0,r.nP)(i,{sampleRate:1,tags:{dimensionBucket:e,...c}})}else if("numberOfStalls"===t){let e=a;n>1e3?e="over1000":n>10?e="over10":n<0&&(e="negative"),(0,r.nP)(i,{sampleRate:1,tags:{numberOfStalls:e,...c}})}else"screenPixelScale"===t?(0,r.nP)(i,{sampleRate:1,tags:{screenPixelScale:a||-1,...c}}):n>=0?(0===n&&(0,r.nP)(`${i}.zero`,{sampleRate:1,tags:c}),(0,r.LY)(i,n,{sampleRate:1})):n<0&&(0,r.nP)(`${i}.negative`,{sampleRate:1,tags:c})}}),e.sessionMark!==s.DR)){let{rebufferRate:t,screenPixelScale:a,startupLatencyMs:i,startupVariantWidth:s,startupPlayerWidth:l}=e,n=`web.video.${u}.${o}.${d}.${p}`;"number"==typeof s&&"number"==typeof l&&"number"==typeof a&&(0,r.nP)(`${n}.upscaled.${1.5*s>a*l?"good":"bad"}`,{sampleRate:1,tags:c}),"number"==typeof i&&(0,r.nP)(`${n}.startupLatency.${i<500?"good":"bad"}`,{sampleRate:1,tags:c}),"number"==typeof t&&(0,r.nP)(`${n}.rebufferRate.${t<.01?"good":"bad"}`,{sampleRate:1,tags:c})}}},179888:(e,t,a)=>{a.d(t,{$f:()=>r,Cy:()=>h,DR:()=>s,EB:()=>p,Fm:()=>o,Y7:()=>u,bR:()=>n,gJ:()=>l,lG:()=>d});var i=a(172045);let s=1,r=2,l=1e3,n=1e3,o=1e3,h=Object.freeze({DEFAULT:0,LOAD_START:1,LOADED_METADATA:2,LOADED_DATA:3,PLAYING:4,PAUSED:5,SEEKING:6,STALLING:7,FAILED:8,ENDED:9}),d=Object.freeze({MEDIA_ERR_ABORTED:1,MEDIA_ERR_NETWORK:2,MEDIA_ERR_DECODE:3,MEDIA_ERR_SRC_NOT_SUPPORTED:4});function u(e){return e+"-"+(0,i.Z)()}function p(){return(0,i.Z)()}},539766:(e,t,a)=>{a.d(t,{P:()=>y,Z:()=>S});var i=a(667294),s=a(867631),r=a.n(s),l=a(883119),n=a(366284),o=a(898781),h=a(391254),d=a(780280),u=a(50286),p=a(785893);function c(e,t,a){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}let y=`
|
2
|
+
video::cue {
|
3
|
+
color: white;
|
4
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Helvetica, 'ヒラギノ角ゴ Pro W3', 'メイリオ', Meiryo, 'MS Pゴシック', Arial, sans-serif;
|
5
|
+
font-weight: 450;
|
6
|
+
font-size: 18px;
|
7
|
+
}
|
8
|
+
`;class m extends i.PureComponent{constructor(...e){super(...e),c(this,"state",{videoStartTime:0}),c(this,"setVideoPlayerRef",e=>{let{setVideoRef:t,handlePlay:a,autoplay:i=!0}=this.props;this.videoPlayerRef=e,e&&t&&t(e.video),this.videoPlayerRef&&this.videoPlayerRef.video&&a&&i&&this.videoPlayerRef.video.addEventListener("canplay",()=>{a({userTriggeredPlay:!1})})}),c(this,"hls",null),c(this,"initializeHls",()=>{this.destroyHls();let{src:e}=this.props,t=new(r());r().isSupported()&&!(0,n.G6)(this.props.requestContext.userAgent.browserName)&&(t.loadSource(e),this.videoPlayerRef&&t.attachMedia(this.videoPlayerRef.video)),this.hls=t}),c(this,"destroyHls",()=>{let{hls:e}=this;e&&e.destroy()}),c(this,"onPlay",({event:e})=>{let{handlePlay:t}=this.props;e.stopPropagation(),t&&t({userTriggeredPlay:!0})}),c(this,"onPause",({event:e})=>{let{handlePause:t}=this.props;e.stopPropagation(),t&&t()}),c(this,"handleVolumeChange",({event:e,volume:t})=>{let{onVolumeChange:a}=this.props;e.stopPropagation(),a&&a({volume:t})}),c(this,"handleOnReady",e=>{this.props.onReady&&this.props.onReady(e)}),c(this,"handleEnded",()=>{let{onEnded:e}=this.props;e&&e()}),c(this,"handlePlaying",()=>{let{clearSeekTime:e}=this.props;e&&e()})}componentDidMount(){this.initializeHls()}componentWillUnmount(){this.destroyHls()}componentDidUpdate(e){var t,a;let{activeStreamItemIndex:i,playing:s,src:l,seekTime:n,captionsEnabled:o,isDesktop:h,isTablet:d,requestContext:u,isVideoPin:p}=this.props,{isAuthenticated:c}=u;n&&n!==e.seekTime&&this.setState({videoStartTime:n});let y=null===(t=this.videoPlayerRef)||void 0===t?void 0:null===(a=t.video)||void 0===a?void 0:a.textTracks[0];y&&(o?y.mode="showing":y.mode="disabled",y.addEventListener("cuechange",()=>{let e=y.activeCues&&y.activeCues.length>0&&y.activeCues[0];e&&e.line&&(h?(e.line=-6,e.size=88):(c?e.line=-8:(e.line=-10,d&&(e.line=-15)),e.size=70),p&&(e.line=-5))})),i!==e.activeStreamItemIndex&&this.videoPlayerRef&&this.videoPlayerRef.video&&(this.videoPlayerRef.video.currentTime=0),e.src!==l&&(this.initializeHls(),this.hls&&this.hls.on(r().Events.MANIFEST_PARSED,()=>{void 0!==s&&s&&this.videoPlayerRef&&this.videoPlayerRef.play()}))}render(){let{aspectRatio:e,controls:t,loop:a=!1,poster:i,src:s,onTimeChange:r,playing:n,volume:o,captions:d}=this.props;return(0,p.jsxs)(l.xu,{width:"100%",children:[(0,p.jsx)(h.Z,{unsafeCSS:y}),(0,p.jsx)(l.nk,{autoplay:n,playsInline:!0,aspectRatio:e,captions:d,controls:t,loop:a,onControlsPause:this.onPause,onControlsPlay:this.onPlay,onReady:this.handleOnReady,onEnded:this.handleEnded,onVolumeChange:this.handleVolumeChange,onTimeChange:r,onPlay:()=>{},onPlaying:this.handlePlaying,onPlayError:()=>{},playing:n,poster:i,ref:this.setVideoPlayerRef,src:s,startTime:this.state.videoStartTime||void 0,volume:o})]})}}function S(e){let{clearSeekTime:t,pinId:a="",seekTime:i}=e,s=(0,o.ZP)(),r=(0,d.B)(),l=(0,u.HG)(),n=(0,u.Wb)();return(0,p.jsx)(m,{...e,i18n:s,requestContext:r,isDesktop:l,isTablet:n,seekTime:i,clearSeekTime:()=>{t&&t(a)}})}},944546:(e,t,a)=>{a.d(t,{V:()=>i,i:()=>s});let i=2,s=[0,.01,.02,.03,.04,.05,.06,.07,.08,.09,.1,.11,.12,.13,.14,.15,.16,.17,.18,.19,.2,.21,.22,.23,.24,.25,.26,.27,.28,.29,.3,.31,.32,.33,.34,.35,.36,.37,.38,.39,.4,.41,.42,.43,.44,.45,.46,.47,.48,.49,.5,.51,.52,.53,.54,.55,.56,.57,.58,.59,.6,.61,.62,.63,.64,.65,.66,.67,.68,.69,.7,.71,.72,.73,.74,.75,.76,.77,.78,.79,.8,.81,.82,.83,.84,.85,.86,.87,.88,.89,.9,.91,.92,.93,.94,.95,.96,.97,.98,.99,1]}}]);
|
9
|
+
//# sourceMappingURL=https://sm.pinimg.com/webapp/27405-880a12623820964d.mjs.map
|