banko-ai-assistant 1.0.0__py3-none-any.whl → 1.0.1__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.
Files changed (128) hide show
  1. banko_ai/static/creditcard_files/0dbda187ceb472a466dff54b7015b1d4.jpg +0 -0
  2. banko_ai/static/creditcard_files/10903-7f8736e237ced107.mjs +2 -0
  3. banko_ai/static/creditcard_files/10966-809952783184ae4b.mjs +4 -0
  4. banko_ai/static/creditcard_files/13351-8a7dda060266efff.mjs +2 -0
  5. banko_ai/static/creditcard_files/1342-c79d3d17da82f23c.mjs +11 -0
  6. banko_ai/static/creditcard_files/16142-bdecf7bfdd6d70ae.mjs +2 -0
  7. banko_ai/static/creditcard_files/16550-e89f65017860221d.mjs +2 -0
  8. banko_ai/static/creditcard_files/17492-942c70b114fdcce1.mjs +10 -0
  9. banko_ai/static/creditcard_files/18352-481d67e871cc6985.mjs +2 -0
  10. banko_ai/static/creditcard_files/18555-0d9763eb744f7a77.mjs +2 -0
  11. banko_ai/static/creditcard_files/19437-575ba467ea85e866.mjs +2 -0
  12. banko_ai/static/creditcard_files/1aca1669c3b4a07f0966c4733c939d6d.jpg +0 -0
  13. banko_ai/static/creditcard_files/20126-602c15db592cf3c4.mjs +26 -0
  14. banko_ai/static/creditcard_files/20224-b6de2c08cc8ad497.mjs +66 -0
  15. banko_ai/static/creditcard_files/2029a63f9af76541f860b6a6a4ec0c90.jpg +0 -0
  16. banko_ai/static/creditcard_files/21662-1214728138c72aa2.css +1 -0
  17. banko_ai/static/creditcard_files/22517-5f7ab2631d424b77.mjs +9 -0
  18. banko_ai/static/creditcard_files/23019-be3b8956cee94725.mjs +2 -0
  19. banko_ai/static/creditcard_files/26067-cb77f2673c5f757c.mjs +2 -0
  20. banko_ai/static/creditcard_files/27405-880a12623820964d.mjs +9 -0
  21. banko_ai/static/creditcard_files/27503-82078c18034012ed.mjs +38 -0
  22. banko_ai/static/creditcard_files/28090-8e4b5fd6c88f8eb2.mjs +6 -0
  23. banko_ai/static/creditcard_files/2c66dacf04db64cc1099835f2e2328d5.jpg +0 -0
  24. banko_ai/static/creditcard_files/30090868cb2b559a7093999fec5fbcc8.jpg +0 -0
  25. banko_ai/static/creditcard_files/30102-608e861dccc907f1.mjs +2 -0
  26. banko_ai/static/creditcard_files/31600-ca2e152d871d51d5.mjs +2 -0
  27. banko_ai/static/creditcard_files/31d5156a9cc5fe5fd780c2d9e59db98f.jpg +0 -0
  28. banko_ai/static/creditcard_files/34713-54729fd9c7517d50.mjs +2 -0
  29. banko_ai/static/creditcard_files/35074-d765c14dc3e8eafc.mjs +77 -0
  30. banko_ai/static/creditcard_files/38230-4d6eb1a608eecdeb.mjs +7 -0
  31. banko_ai/static/creditcard_files/40566-e2dbb4226dd2ab42.mjs +6 -0
  32. banko_ai/static/creditcard_files/42298-668aa166e1146c6c.mjs +2 -0
  33. banko_ai/static/creditcard_files/43203-3a1e46e5259313c8.mjs +14 -0
  34. banko_ai/static/creditcard_files/44429-6534f772a6bd895b.mjs +13 -0
  35. banko_ai/static/creditcard_files/48327-48fb70091d7ac731.mjs +2 -0
  36. banko_ai/static/creditcard_files/49923-dc71193d54a0b99c.mjs +2 -0
  37. banko_ai/static/creditcard_files/49c3cac3c5a09ca104a2efea48536d14.jpg +0 -0
  38. banko_ai/static/creditcard_files/50040-3c27b1fe14ca588b.mjs +2 -0
  39. banko_ai/static/creditcard_files/5047473e06297bbccfae9c43ca36bd93.jpg +0 -0
  40. banko_ai/static/creditcard_files/51531-253e8d8f8f527d9c.mjs +26 -0
  41. banko_ai/static/creditcard_files/58103-d6be57f2d624e7b4.mjs +2 -0
  42. banko_ai/static/creditcard_files/58822-d1779ebe9d4fab59.mjs +51 -0
  43. banko_ai/static/creditcard_files/61b440e4366b35d7213172be53d3864e.jpg +0 -0
  44. banko_ai/static/creditcard_files/61d121a699367070f3988f633ed6ac7d.jpg +0 -0
  45. banko_ai/static/creditcard_files/65610-15f55d146aa3cc6f.mjs +2 -0
  46. banko_ai/static/creditcard_files/65662-2b7065d2ddcf6a0c.mjs +2 -0
  47. banko_ai/static/creditcard_files/67631-9d4d7f4aab06e79c.mjs +2 -0
  48. banko_ai/static/creditcard_files/68445-8aae26e83c03d9bc.mjs +7 -0
  49. banko_ai/static/creditcard_files/6863-da15e99ca946f07a.mjs +2 -0
  50. banko_ai/static/creditcard_files/71526-518cf6126a32651b.mjs +2 -0
  51. banko_ai/static/creditcard_files/72268-8f69a6e8585b9af2.mjs +2 -0
  52. banko_ai/static/creditcard_files/76f1a52015cf2a243ed085586f3d44e8.jpg +0 -0
  53. banko_ai/static/creditcard_files/80538-65bd348271403336.mjs +2 -0
  54. banko_ai/static/creditcard_files/81505-387f6ddb644ae967.mjs +38 -0
  55. banko_ai/static/creditcard_files/8151-1a0cf04ea45ad513.mjs +2 -0
  56. banko_ai/static/creditcard_files/83119-1cf7ca2f5ba0e1ab.mjs +9 -0
  57. banko_ai/static/creditcard_files/83485-27ce97f9e7369ed7.mjs +5 -0
  58. banko_ai/static/creditcard_files/8575-e1977ceb3b34da9c.mjs +2 -0
  59. banko_ai/static/creditcard_files/8962-664b3c9b21ec2e0f.mjs +2 -0
  60. banko_ai/static/creditcard_files/90123-40fd5c2d5dc1c0a1.mjs +2 -0
  61. banko_ai/static/creditcard_files/91846-55cc5635c18159a0.mjs +47 -0
  62. banko_ai/static/creditcard_files/91936-56d11562a38b3f77.mjs +2 -0
  63. banko_ai/static/creditcard_files/96833-fbcb1ab8436924d4.mjs +36 -0
  64. banko_ai/static/creditcard_files/99246-889e96fc0a42e07a.mjs +2 -0
  65. banko_ai/static/creditcard_files/99961-ee8d9a1207a9db7a.mjs +2 -0
  66. banko_ai/static/creditcard_files/DefaultPinRep-78e567622e9cb382.mjs +27 -0
  67. banko_ai/static/creditcard_files/DesktopUnauthPageWrapper-26b3c2c050f09d27.css +1 -0
  68. banko_ai/static/creditcard_files/DesktopUnauthPageWrapper-a120f0b0faa773a2.mjs +252 -0
  69. banko_ai/static/creditcard_files/KkWFeSURekXGycdprVC-UY6ED-ZF5ll2JCMiHhJE2Rk.js +1 -0
  70. banko_ai/static/creditcard_files/MobileAndUnauthPinPage-0083f61f79e906d2.mjs +400 -0
  71. banko_ai/static/creditcard_files/UnauthCloseupRelatedPins-d98c713ac2e141a7.mjs +2 -0
  72. banko_ai/static/creditcard_files/[id]-87f8f6f1f81e3a8a.mjs +2 -0
  73. banko_ai/static/creditcard_files/_client-49638f60bdf5658e.mjs +43 -0
  74. banko_ai/static/creditcard_files/a7ee24644496b7a3131cd4e13b8c6edb.jpg +0 -0
  75. banko_ai/static/creditcard_files/a8ada9395c00dffc8fb81a7b76bd34b5.jpg +0 -0
  76. banko_ai/static/creditcard_files/abbf5a82906bef8c6be49ab38eaeea7c.jpg +0 -0
  77. banko_ai/static/creditcard_files/ad910641231bb413f6a985e4e9961efb.jpg +0 -0
  78. banko_ai/static/creditcard_files/anchor.html +186 -0
  79. banko_ai/static/creditcard_files/b6083df3cfa26856caef114c51a8d21e.jpg +0 -0
  80. banko_ai/static/creditcard_files/b957829ac112a8c28b313307e5ff0df6.jpg +0 -0
  81. banko_ai/static/creditcard_files/bb2d3d28e3421d901d8d431c33f0c6ed.jpg +0 -0
  82. banko_ai/static/creditcard_files/bb2d3d28e3421d901d8d431c33f0c6ed.png +0 -0
  83. banko_ai/static/creditcard_files/c3031b4a938377789e00d3d2f3b2438c.jpg +0 -0
  84. banko_ai/static/creditcard_files/client +300 -0
  85. banko_ai/static/creditcard_files/ct.html +3 -0
  86. banko_ai/static/creditcard_files/d03e6db9649ea3479b799d5a21008ac2.jpg +0 -0
  87. banko_ai/static/creditcard_files/d3d38fd9aa0c808a28ff5bd9ae5b5576.jpg +0 -0
  88. banko_ai/static/creditcard_files/de7cb9e198b4ebc9430824132ccfce2e.jpg +0 -0
  89. banko_ai/static/creditcard_files/e4330b4a4e71a3f77dd0682b99037cad.jpg +0 -0
  90. banko_ai/static/creditcard_files/ecdf72d4d54e70608e9416020f8ad67d.jpg +0 -0
  91. banko_ai/static/creditcard_files/eef64355b9f10e89c355b138adbae1e9.jpg +0 -0
  92. banko_ai/static/creditcard_files/enterprise.js +1 -0
  93. banko_ai/static/creditcard_files/f1354f6bb993409ea12235a01a978936.jpg +0 -0
  94. banko_ai/static/creditcard_files/f7c30e2615fe0e57d9ab6e41aac5e738.jpg +0 -0
  95. banko_ai/static/creditcard_files/fa72fa1ae9bb3ec93f41595333d22d16.jpg +0 -0
  96. banko_ai/static/creditcard_files/fb09ce3b0feb4931402867cf109cd618.jpg +0 -0
  97. banko_ai/static/creditcard_files/i +0 -0
  98. banko_ai/static/creditcard_files/locale-en_US-lite-js-d0d346142714beb1.mjs +2 -0
  99. banko_ai/static/creditcard_files/login-3c695aa28fdc27a5.mjs +161 -0
  100. banko_ai/static/creditcard_files/login-e161a84cea9cd0a3.css +1 -0
  101. banko_ai/static/creditcard_files/packages-rich-snippet-LeafSnippet-b7f61038a4431021.mjs +2 -0
  102. banko_ai/static/creditcard_files/polyfills-c5ca6e711f8975ec.mjs +2 -0
  103. banko_ai/static/creditcard_files/recaptcha__en.js +1011 -0
  104. banko_ai/static/creditcard_files/repin-62bbd4d7c8e22f17.css +1 -0
  105. banko_ai/static/creditcard_files/repin-d49f19d89ddd3cbe.mjs +292 -0
  106. banko_ai/static/creditcard_files/runtime-505e4380476a458b.mjs +2 -0
  107. banko_ai/static/creditcard_files/saved_resource(1).html +7 -0
  108. banko_ai/static/creditcard_files/saved_resource(2).html +3 -0
  109. banko_ai/static/creditcard_files/saved_resource.html +3 -0
  110. banko_ai/static/creditcard_files/sdk(1).js +22 -0
  111. banko_ai/static/creditcard_files/sdk.js +228 -0
  112. banko_ai/static/creditcard_files/select.html +387 -0
  113. banko_ai/static/creditcard_files/style +1 -0
  114. banko_ai/static/creditcard_files/styles__ltr.css +1 -0
  115. banko_ai/static/creditcard_files/unnamed.jpg +0 -0
  116. banko_ai/static/creditcard_files/vendor-react-76e71fd67c83934b.mjs +54 -0
  117. banko_ai/static/creditcard_files/visual-search-fe95849c7568d600.mjs +123 -0
  118. banko_ai/static/css/style.css +1274 -0
  119. banko_ai/templates/dashboard.html +5 -5
  120. banko_ai/templates/index.html +6 -6
  121. banko_ai/web/app.py +14 -2
  122. {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.1.dist-info}/METADATA +2 -2
  123. banko_ai_assistant-1.0.1.dist-info/RECORD +164 -0
  124. banko_ai_assistant-1.0.0.dist-info/RECORD +0 -46
  125. {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.1.dist-info}/WHEEL +0 -0
  126. {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.1.dist-info}/entry_points.txt +0 -0
  127. {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.1.dist-info}/licenses/LICENSE +0 -0
  128. {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,292 @@
1
+ (self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[73308,28543,24859,90907,24661,17149,75721,4394,81165,76030,51531,31600,68089,22517,96198,60865,15989,65662,69965,48937,22555,56831],{240684:(e,t,i)=>{"use strict";i.d(t,{TA:()=>k,ZP:()=>j});var n=i(667294),l=i(263366),a=i(487462),r=i(497326),o=i(894578),s=i(659864),d=i(108679),u=i.n(d);function c(e){console.warn("loadable: "+e)}var p=n.createContext(),h={initialChunks:{}},_="PENDING",m="REJECTED",g=function(e){return e};function y(e){var t=e.defaultResolveComponent,i=void 0===t?g:t,d=e.render,c=e.onLoad;function y(e,t){void 0===t&&(t={});var g,y="function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e,v={};function f(e){return t.cacheKey?t.cacheKey(e):y.resolve?y.resolve(e):"static"}function x(e,n,l){var a=t.resolveComponent?t.resolveComponent(e,n):i(e);if(t.resolveComponent&&!(0,s.isValidElementType)(a))throw Error("resolveComponent returned something that is not a React component!");return u()(l,a,{preload:!0}),a}var b=(g=function(e){function i(i){var n;return((n=e.call(this,i)||this).state={result:null,error:null,loading:!0,cacheKey:f(i)},function(e,t){if(!e){var i=Error("loadable: "+t);throw i.framesToPop=1,i.name="Invariant Violation",i}}(!i.__chunkExtractor||y.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),i.__chunkExtractor)?(!1===t.ssr||(y.requireAsync(i).catch(function(){return null}),n.loadSync(),i.__chunkExtractor.addChunk(y.chunkName(i))),(0,r.Z)(n)):(!1!==t.ssr&&(y.isReady&&y.isReady(i)||y.chunkName&&h.initialChunks[y.chunkName(i)])&&n.loadSync(),n)}(0,o.Z)(i,e),i.getDerivedStateFromProps=function(e,t){var i=f(e);return(0,a.Z)({},t,{cacheKey:i,loading:t.loading||t.cacheKey!==i})};var n=i.prototype;return n.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===m&&this.setCache(),this.state.loading&&this.loadAsync()},n.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},n.componentWillUnmount=function(){this.mounted=!1},n.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},n.getCacheKey=function(){return f(this.props)},n.getCache=function(){return v[this.getCacheKey()]},n.setCache=function(e){void 0===e&&(e=void 0),v[this.getCacheKey()]=e},n.triggerOnLoad=function(){var e=this;c&&setTimeout(function(){c(e.state.result,e.props)})},n.loadSync=function(){if(this.state.loading)try{var e=y.requireSync(this.props),t=x(e,this.props,P);this.state.result=t,this.state.loading=!1}catch(e){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:y.resolve(this.props),chunkName:y.chunkName(this.props),error:e?e.message:e}),this.state.error=e}},n.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then(function(t){var i=x(t,e.props,{Loadable:P});e.safeSetState({result:i,loading:!1},function(){return e.triggerOnLoad()})}).catch(function(t){return e.safeSetState({error:t,loading:!1})}),t},n.resolveAsync=function(){var e=this,t=this.props,i=(t.__chunkExtractor,t.forwardedRef,(0,l.Z)(t,["__chunkExtractor","forwardedRef"])),n=this.getCache();return n||((n=y.requireAsync(i)).status=_,this.setCache(n),n.then(function(){n.status="RESOLVED"},function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:y.resolve(e.props),chunkName:y.chunkName(e.props),error:t?t.message:t}),n.status=m})),n},n.render=function(){var e=this.props,i=e.forwardedRef,n=e.fallback,r=(e.__chunkExtractor,(0,l.Z)(e,["forwardedRef","fallback","__chunkExtractor"])),o=this.state,s=o.error,u=o.loading,c=o.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===_)throw this.loadAsync();if(s)throw s;var p=n||t.fallback||null;return u?p:d({fallback:p,result:c,options:t,props:(0,a.Z)({},r,{ref:i})})},i}(n.Component),function(e){return n.createElement(p.Consumer,null,function(t){return n.createElement(g,Object.assign({__chunkExtractor:t},e))})}),P=n.forwardRef(function(e,t){return n.createElement(b,Object.assign({forwardedRef:t},e))});return P.preload=function(e){y.requireAsync(e)},P.load=function(e){return y.requireAsync(e)},P}return{loadable:y,lazy:function(e,t){return y(e,(0,a.Z)({},t,{suspense:!0}))}}}var v=y({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,i=e.props;return n.createElement(t,i)}}),f=v.loadable,x=v.lazy,b=y({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,i=e.props;return i.children?i.children(t):null}}),P=b.loadable,w=b.lazy,S="undefined"!=typeof window;function k(e,t){void 0===e&&(e=function(){});var i=(void 0===t?{}:t).namespace;if(!S)return c("`loadableReady()` must be called in browser only"),e(),Promise.resolve();var n=null;if(S){var l=""+(void 0===i?"":i)+"__LOADABLE_REQUIRED_CHUNKS__",a=document.getElementById(l);if(a){n=JSON.parse(a.textContent);var r=document.getElementById(l+"_ext");if(r)JSON.parse(r.textContent).namedChunks.forEach(function(e){h.initialChunks[e]=!0});else throw Error("loadable-component: @loadable/server does not match @loadable/component")}}if(!n)return c("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),e(),Promise.resolve();var o=!1;return new Promise(function(e){window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[];var t=window.__LOADABLE_LOADED_CHUNKS__,i=t.push.bind(t);function l(){n.every(function(e){return t.some(function(t){return t[0].indexOf(e)>-1})})&&!o&&(o=!0,e())}t.push=function(){i.apply(void 0,arguments),l()},l()}).then(e)}f.lib=P,x.lib=w;let j=f},376030:(e,t,i)=>{"use strict";i.d(t,{Z:()=>ee});var n,l,a={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},r={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},o=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],s={CSS:{},springs:{}};function d(e,t,i){return Math.min(Math.max(e,t),i)}function u(e,t){return e.indexOf(t)>-1}function c(e,t){return e.apply(null,t)}var p={arr:function(e){return Array.isArray(e)},obj:function(e){return u(Object.prototype.toString.call(e),"Object")},pth:function(e){return p.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||p.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return p.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return p.hex(e)||p.rgb(e)||p.hsl(e)},key:function(e){return!a.hasOwnProperty(e)&&!r.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function h(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function _(e,t){var i=h(e),n=d(p.und(i[0])?1:i[0],.1,100),l=d(p.und(i[1])?100:i[1],.1,100),a=d(p.und(i[2])?10:i[2],.1,100),r=d(p.und(i[3])?0:i[3],.1,100),o=Math.sqrt(l/n),u=a/(2*Math.sqrt(l*n)),c=u<1?o*Math.sqrt(1-u*u):0,_=u<1?(u*o+-r)/c:-r+o;function m(e){var i=t?t*e/1e3:e;return(i=u<1?Math.exp(-i*u*o)*(1*Math.cos(c*i)+_*Math.sin(c*i)):(1+_*i)*Math.exp(-i*o),0===e||1===e)?e:1-i}return t?m:function(){var t=s.springs[e];if(t)return t;for(var i=1/6,n=0,l=0;;)if(1===m(n+=i)){if(++l>=16)break}else l=0;var a=n*i*1e3;return s.springs[e]=a,a}}function m(e){return void 0===e&&(e=10),function(t){return Math.ceil(d(t,1e-6,1)*e)*(1/e)}}var g=function(){function e(e,t,i){return(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e}function t(e,t,i){return 3*(1-3*i+3*t)*e*e+2*(3*i-6*t)*e+3*t}return function(i,n,l,a){if(0<=i&&i<=1&&0<=l&&l<=1){var r=new Float32Array(11);if(i!==n||l!==a)for(var o=0;o<11;++o)r[o]=e(.1*o,i,l);return function(o){return i===n&&l===a||0===o||1===o?o:e(function(n){for(var a=0,o=1;10!==o&&r[o]<=n;++o)a+=.1;var s=a+(n-r[--o])/(r[o+1]-r[o])*.1,d=t(s,i,l);return d>=.001?function(i,n,l,a){for(var r=0;r<4;++r){var o=t(n,l,a);if(0===o)break;var s=e(n,l,a)-i;n-=s/o}return n}(n,s,i,l):0===d?s:function(t,i,n,l,a){var r,o,s=0;do(r=e(o=i+(n-i)/2,l,a)-t)>0?n=o:i=o;while(Math.abs(r)>1e-7&&++s<10)return o}(n,a,a+.1,i,l)}(o),n,a)}}}}(),y=(n={linear:function(){return function(e){return e}}},l={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var i=d(e,1,10),n=d(t,.1,2);return function(e){return 0===e||1===e?e:-i*Math.pow(2,10*(e-1))*Math.sin((e-1-n/(2*Math.PI)*Math.asin(1/i))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(e,t){l[e]=function(){return function(e){return Math.pow(e,t+2)}}}),Object.keys(l).forEach(function(e){var t=l[e];n["easeIn"+e]=t,n["easeOut"+e]=function(e,i){return function(n){return 1-t(e,i)(1-n)}},n["easeInOut"+e]=function(e,i){return function(n){return n<.5?t(e,i)(2*n)/2:1-t(e,i)(-2*n+2)/2}},n["easeOutIn"+e]=function(e,i){return function(n){return n<.5?(1-t(e,i)(1-2*n))/2:(t(e,i)(2*n-1)+1)/2}}}),n);function v(e,t){if(p.fnc(e))return e;var i=e.split("(")[0],n=y[i],l=h(e);switch(i){case"spring":return _(e,t);case"cubicBezier":return c(g,l);case"steps":return c(m,l);default:return c(n,l)}}function f(e){try{return document.querySelectorAll(e)}catch(e){return}}function x(e,t){for(var i=e.length,n=arguments.length>=2?arguments[1]:void 0,l=[],a=0;a<i;a++)if(a in e){var r=e[a];t.call(n,r,a,e)&&l.push(r)}return l}function b(e){return e.reduce(function(e,t){return e.concat(p.arr(t)?b(t):t)},[])}function P(e){return p.arr(e)?e:(p.str(e)&&(e=f(e)||e),e instanceof NodeList||e instanceof HTMLCollection)?[].slice.call(e):[e]}function w(e,t){return e.some(function(e){return e===t})}function S(e){var t={};for(var i in e)t[i]=e[i];return t}function k(e,t){var i=S(e);for(var n in e)i[n]=t.hasOwnProperty(n)?t[n]:e[n];return i}function j(e,t){var i=S(e);for(var n in t)i[n]=p.und(e[n])?t[n]:e[n];return i}function A(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function C(e,t){return p.fnc(e)?e(t.target,t.id,t.total):e}function D(e,t){return e.getAttribute(t)}function E(e,t,i){if(w([i,"deg","rad","turn"],A(t)))return t;var n=s.CSS[t+i];if(!p.und(n))return n;var l=document.createElement(e.tagName),a=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;a.appendChild(l),l.style.position="absolute",l.style.width=100+i;var r=100/l.offsetWidth;a.removeChild(l);var o=r*parseFloat(t);return s.CSS[t+i]=o,o}function I(e,t,i){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),l=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return i?E(e,l,i):l}}function T(e,t){return p.dom(e)&&!p.inp(e)&&(!p.nil(D(e,t))||p.svg(e)&&e[t])?"attribute":p.dom(e)&&w(o,t)?"transform":p.dom(e)&&"transform"!==t&&I(e,t)?"css":null!=e[t]?"object":void 0}function F(e){if(p.dom(e)){for(var t,i=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,l=new Map;t=n.exec(i);)l.set(t[1],t[2]);return l}}function z(e,t,i,n){switch(T(e,t)){case"transform":var l,a;return l=u(t,"scale")?1:0+(u(t,"translate")||"perspective"===t?"px":u(t,"rotate")||u(t,"skew")?"deg":void 0),a=F(e).get(t)||l,n&&(n.transforms.list.set(t,a),n.transforms.last=t),i?E(e,a,i):a;case"css":return I(e,t,i);case"attribute":return D(e,t);default:return e[t]||0}}function R(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var n=A(e)||0,l=parseFloat(t),a=parseFloat(e.replace(i[0],""));switch(i[0][0]){case"+":return l+a+n;case"-":return l-a+n;case"*":return l*a+n}}function L(e,t){if(p.col(e)){var i,n,l,a;return i=e,p.rgb(i)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(i))?"rgba("+n[1]+",1)":i:p.hex(i)?(l=i.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,i,n){return t+t+i+i+n+n}),"rgba("+parseInt((a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(l))[1],16)+","+parseInt(a[2],16)+","+parseInt(a[3],16)+",1)"):p.hsl(i)?function(e){var t,i,n,l=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),a=parseInt(l[1],10)/360,r=parseInt(l[2],10)/100,o=parseInt(l[3],10)/100,s=l[4]||1;function d(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}if(0==r)t=i=n=o;else{var u=o<.5?o*(1+r):o+r-o*r,c=2*o-u;t=d(c,u,a+1/3),i=d(c,u,a),n=d(c,u,a-1/3)}return"rgba("+255*t+","+255*i+","+255*n+","+s+")"}(i):void 0}if(/\s/g.test(e))return e;var r=A(e),o=r?e.substr(0,e.length-r.length):e;return t?o+t:o}function M(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Z(e){for(var t,i=e.points,n=0,l=0;l<i.numberOfItems;l++){var a=i.getItem(l);l>0&&(n+=M(t,a)),t=a}return n}function B(e){var t;if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*D(e,"r");case"rect":return 2*D(e,"width")+2*D(e,"height");case"line":return M({x:D(e,"x1"),y:D(e,"y1")},{x:D(e,"x2"),y:D(e,"y2")});case"polyline":return Z(e);case"polygon":return t=e.points,Z(e)+M(t.getItem(t.numberOfItems-1),t.getItem(0))}}function O(e,t){var i=t||{},n=i.el||function(e){for(var t=e.parentNode;p.svg(t)&&p.svg(t.parentNode);)t=t.parentNode;return t}(e),l=n.getBoundingClientRect(),a=D(n,"viewBox"),r=l.width,o=l.height,s=i.viewBox||(a?a.split(" "):[0,0,r,o]);return{el:n,viewBox:s,x:s[0]/1,y:s[1]/1,w:r,h:o,vW:s[2],vH:s[3]}}function N(e,t){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=L(p.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:p.str(e)||t?n.split(i):[]}}function K(e){return x(e?b(p.arr(e)?e.map(P):P(e)):[],function(e,t,i){return i.indexOf(e)===t})}function U(e){var t=K(e);return t.map(function(e,i){return{target:e,id:i,total:t.length,transforms:{list:F(e)}}})}var H={css:function(e,t,i){return e.style[t]=i},attribute:function(e,t,i){return e.setAttribute(t,i)},object:function(e,t,i){return e[t]=i},transform:function(e,t,i,n,l){if(n.list.set(t,i),t===n.last||l){var a="";n.list.forEach(function(e,t){a+=t+"("+e+") "}),e.style.transform=a}}};function V(e,t){U(e).forEach(function(e){for(var i in t){var n=C(t[i],e),l=e.target,a=A(n),r=z(l,i,a,e),o=R(L(n,a||A(r)),r);H[T(l,i)](l,i,o,e.transforms,!0)}})}function G(e,t){var i=e.length,n=function(e){return e.timelineOffset?e.timelineOffset:0},l={};return l.duration=i?Math.max.apply(Math,e.map(function(e){return n(e)+e.duration})):t.duration,l.delay=i?Math.min.apply(Math,e.map(function(e){return n(e)+e.delay})):t.delay,l.endDelay=i?l.duration-Math.max.apply(Math,e.map(function(e){return n(e)+e.duration-e.endDelay})):t.endDelay,l}var W=0,$=[],q=function(){var e;function t(i){for(var n=$.length,l=0;l<n;){var a=$[l];a.paused?($.splice(l,1),n--):(a.tick(i),l++)}e=l>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){X.suspendWhenDocumentHidden&&(Y()?e=cancelAnimationFrame(e):($.forEach(function(e){return e._onDocumentVisibility()}),q()))}),function(){e||Y()&&X.suspendWhenDocumentHidden||!($.length>0)||(e=requestAnimationFrame(t))}}();function Y(){return!!document&&document.hidden}function X(e){void 0===e&&(e={});var t,i,n,l,o,s,u,c,h,m=0,g=0,y=0,f=0,P=null;function w(e){var t=window.Promise&&new Promise(function(e){return P=e});return e.finished=t,t}var D=(i=k(a,t=e),l=function(e,t){var i=[],n=t.keyframes;for(var l in n&&(t=j(function(e){for(var t=x(b(e.map(function(e){return Object.keys(e)})),function(e){return p.key(e)}).reduce(function(e,t){return 0>e.indexOf(t)&&e.push(t),e},[]),i={},n=0;n<t.length;n++)!function(n){var l=t[n];i[l]=e.map(function(e){var t={};for(var i in e)p.key(i)?i==l&&(t.value=e[i]):t[i]=e[i];return t})}(n);return i}(n),t)),t)p.key(l)&&i.push({name:l,tweens:function(e,t){var i=S(t);if(/^spring/.test(i.easing)&&(i.duration=_(i.easing)),p.arr(e)){var n=e.length;2!==n||p.obj(e[0])?p.fnc(t.duration)||(i.duration=t.duration/n):e={value:e}}var l=p.arr(e)?e:[e];return l.map(function(e,i){var n=p.obj(e)&&!p.pth(e)?e:{value:e};return p.und(n.delay)&&(n.delay=i?0:t.delay),p.und(n.endDelay)&&(n.endDelay=i===l.length-1?t.endDelay:0),n}).map(function(e){return j(e,i)})}(t[l],e)});return i}(n=k(r,t),t),u=G(s=x(b((o=U(t.targets)).map(function(e){return l.map(function(t){return function(e,t){var i=T(e.target,t.name);if(i){var n,l=t.tweens.map(function(i){var l=function(e,t){var i={};for(var n in e){var l=C(e[n],t);p.arr(l)&&1===(l=l.map(function(e){return C(e,t)})).length&&(l=l[0]),i[n]=l}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(i,e),a=l.value,r=p.arr(a)?a[1]:a,o=A(r),s=z(e.target,t.name,o,e),d=n?n.to.original:s,u=p.arr(a)?a[0]:d,c=A(u)||A(s),h=o||c;return p.und(r)&&(r=d),l.from=N(u,h),l.to=N(R(r,u),h),l.start=n?n.end:0,l.end=l.start+l.delay+l.duration+l.endDelay,l.easing=v(l.easing,l.duration),l.isPath=p.pth(a),l.isPathTargetInsideSVG=l.isPath&&p.svg(e.target),l.isColor=p.col(l.from.original),l.isColor&&(l.round=1),n=l,l}),a=l[l.length-1];return{type:i,property:t.name,animatable:e,tweens:l,duration:a.end,delay:l[0].delay,endDelay:a.endDelay}}}(e,t)})})),function(e){return!p.und(e)}),n),c=W,W++,j(i,{id:c,children:[],animatables:o,animations:s,duration:u.duration,delay:u.delay,endDelay:u.endDelay}));function E(){var e=D.direction;"alternate"!==e&&(D.direction="normal"!==e?"normal":"reverse"),D.reversed=!D.reversed,h.forEach(function(e){return e.reversed=D.reversed})}function I(e){return D.reversed?D.duration-e:e}function F(){m=0,g=I(D.currentTime)*(1/X.speed)}function L(e,t){t&&t.seek(e-t.timelineOffset)}function M(e){for(var t=0,i=D.animations,n=i.length;t<n;){var l=i[t],a=l.animatable,r=l.tweens,o=r.length-1,s=r[o];o&&(s=x(r,function(t){return e<t.end})[0]||s);for(var u=d(e-s.start-s.delay,0,s.duration)/s.duration,c=isNaN(u)?1:s.easing(u),p=s.to.strings,h=s.round,_=[],m=s.to.numbers.length,g=void 0,y=0;y<m;y++){var v=void 0,f=s.to.numbers[y],b=s.from.numbers[y]||0;v=s.isPath?function(e,t,i){function n(i){void 0===i&&(i=0);var n=t+i>=1?t+i:0;return e.el.getPointAtLength(n)}var l=O(e.el,e.svg),a=n(),r=n(-1),o=n(1),s=i?1:l.w/l.vW,d=i?1:l.h/l.vH;switch(e.property){case"x":return(a.x-l.x)*s;case"y":return(a.y-l.y)*d;case"angle":return 180*Math.atan2(o.y-r.y,o.x-r.x)/Math.PI}}(s.value,c*f,s.isPathTargetInsideSVG):b+c*(f-b),h&&!(s.isColor&&y>2)&&(v=Math.round(v*h)/h),_.push(v)}var P=p.length;if(P){g=p[0];for(var w=0;w<P;w++){p[w];var S=p[w+1],k=_[w];isNaN(k)||(S?g+=k+S:g+=k+" ")}}else g=_[0];H[l.type](a.target,l.property,g,a.transforms),l.currentValue=g,t++}}function Z(e){D[e]&&!D.passThrough&&D[e](D)}function B(e){var t=D.duration,i=D.delay,n=t-D.endDelay,l=I(e);D.progress=d(l/t*100,0,100),D.reversePlayback=l<D.currentTime,h&&function(e){if(D.reversePlayback)for(var t=f;t--;)L(e,h[t]);else for(var i=0;i<f;i++)L(e,h[i])}(l),!D.began&&D.currentTime>0&&(D.began=!0,Z("begin")),!D.loopBegan&&D.currentTime>0&&(D.loopBegan=!0,Z("loopBegin")),l<=i&&0!==D.currentTime&&M(0),(l>=n&&D.currentTime!==t||!t)&&M(t),l>i&&l<n?(D.changeBegan||(D.changeBegan=!0,D.changeCompleted=!1,Z("changeBegin")),Z("change"),M(l)):D.changeBegan&&(D.changeCompleted=!0,D.changeBegan=!1,Z("changeComplete")),D.currentTime=d(l,0,t),D.began&&Z("update"),e>=t&&(g=0,D.remaining&&!0!==D.remaining&&D.remaining--,D.remaining?(m=y,Z("loopComplete"),D.loopBegan=!1,"alternate"===D.direction&&E()):(D.paused=!0,!D.completed&&(D.completed=!0,Z("loopComplete"),Z("complete"),!D.passThrough&&"Promise"in window&&(P(),w(D)))))}return w(D),D.reset=function(){var e=D.direction;D.passThrough=!1,D.currentTime=0,D.progress=0,D.paused=!0,D.began=!1,D.loopBegan=!1,D.changeBegan=!1,D.completed=!1,D.changeCompleted=!1,D.reversePlayback=!1,D.reversed="reverse"===e,D.remaining=D.loop,f=(h=D.children).length;for(var t=f;t--;)D.children[t].reset();(D.reversed&&!0!==D.loop||"alternate"===e&&1===D.loop)&&D.remaining++,M(D.reversed?D.duration:0)},D._onDocumentVisibility=F,D.set=function(e,t){return V(e,t),D},D.tick=function(e){y=e,m||(m=y),B((y+(g-m))*X.speed)},D.seek=function(e){B(I(e))},D.pause=function(){D.paused=!0,F()},D.play=function(){D.paused&&(D.completed&&D.reset(),D.paused=!1,$.push(D),F(),q())},D.reverse=function(){E(),D.completed=!D.reversed,F()},D.restart=function(){D.reset(),D.play()},D.remove=function(e){J(K(e),D)},D.reset(),D.autoplay&&D.play(),D}function Q(e,t){for(var i=t.length;i--;)w(e,t[i].animatable.target)&&t.splice(i,1)}function J(e,t){var i=t.animations,n=t.children;Q(e,i);for(var l=n.length;l--;){var a=n[l],r=a.animations;Q(e,r),r.length||a.children.length||n.splice(l,1)}i.length||n.length||t.pause()}X.version="3.2.1",X.speed=1,X.suspendWhenDocumentHidden=!0,X.running=$,X.remove=function(e){for(var t=K(e),i=$.length;i--;)J(t,$[i])},X.get=z,X.set=V,X.convertPx=E,X.path=function(e,t){var i=p.str(e)?f(e)[0]:e,n=t||100;return function(e){return{property:e,el:i,svg:O(i),totalLength:B(i)*(n/100)}}},X.setDashoffset=function(e){var t=B(e);return e.setAttribute("stroke-dasharray",t),t},X.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",n=t.easing?v(t.easing):null,l=t.grid,a=t.axis,r=t.from||0,o="first"===r,s="center"===r,d="last"===r,u=p.arr(e),c=u?parseFloat(e[0]):parseFloat(e),h=u?parseFloat(e[1]):0,_=A(u?e[1]:e)||0,m=t.start||0+(u?c:0),g=[],y=0;return function(e,t,p){if(o&&(r=0),s&&(r=(p-1)/2),d&&(r=p-1),!g.length){for(var v=0;v<p;v++){if(l){var f=s?(l[0]-1)/2:r%l[0],x=s?(l[1]-1)/2:Math.floor(r/l[0]),b=v%l[0],P=Math.floor(v/l[0]),w=f-b,S=x-P,k=Math.sqrt(w*w+S*S);"x"===a&&(k=-w),"y"===a&&(k=-S),g.push(k)}else g.push(Math.abs(r-v));y=Math.max.apply(Math,g)}n&&(g=g.map(function(e){return n(e/y)*y})),"reverse"===i&&(g=g.map(function(e){return a?e<0?-1*e:-e:Math.abs(y-e)}))}return m+(u?(h-c)/y:c)*(Math.round(100*g[t])/100)+_}},X.timeline=function(e){void 0===e&&(e={});var t=X(e);return t.duration=0,t.add=function(i,n){var l=$.indexOf(t),a=t.children;function o(e){e.passThrough=!0}l>-1&&$.splice(l,1);for(var s=0;s<a.length;s++)o(a[s]);var d=j(i,k(r,e));d.targets=d.targets||e.targets;var u=t.duration;d.autoplay=!1,d.direction=t.direction,d.timelineOffset=p.und(n)?u:R(n,u),o(t),t.seek(d.timelineOffset);var c=X(d);o(c),a.push(c);var h=G(a,e);return t.delay=h.delay,t.endDelay=h.endDelay,t.duration=h.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},X.easing=v,X.penner=y,X.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};let ee=X},701305:e=>{"use strict";var t=[],i=[];e.exports=/**
2
+ * Checks if two values are equal. Values may be primitives, arrays, or objects.
3
+ * Returns true if both arguments have the same keys and values.
4
+ *
5
+ * @see http://underscorejs.org
6
+ * @copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
7
+ * @license MIT
8
+ */function(e,n){var l=t.length?t.pop():[],a=i.length?i.pop():[],r=function e(t,i,n,l){if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i||"object"!=typeof t||"object"!=typeof i)return!1;var a=Object.prototype.toString,r=a.call(t);if(r!=a.call(i))return!1;switch(r){case"[object String]":return t==String(i);case"[object Number]":return!(isNaN(t)||isNaN(i))&&t==Number(i);case"[object Date]":case"[object Boolean]":return+t==+i;case"[object RegExp]":return t.source==i.source&&t.global==i.global&&t.multiline==i.multiline&&t.ignoreCase==i.ignoreCase}for(var o=n.length;o--;)if(n[o]==t)return l[o]==i;n.push(t),l.push(i);var s=0;if("[object Array]"===r){if((s=t.length)!==i.length)return!1;for(;s--;)if(!e(t[s],i[s],n,l))return!1}else{if(t.constructor!==i.constructor)return!1;if(t.hasOwnProperty("valueOf")&&i.hasOwnProperty("valueOf"))return t.valueOf()==i.valueOf();var d=Object.keys(t);if(d.length!=Object.keys(i).length)return!1;for(var u=0;u<d.length;u++)if(!e(t[d[u]],i[d[u]],n,l))return!1}return n.pop(),l.pop(),!0}(e,n,l,a);return l.length=0,a.length=0,t.push(l),i.push(a),r}},60139:e=>{"use strict";function t(e){return function(){return e}}var i=function(){};i.thatReturns=t,i.thatReturnsFalse=t(!1),i.thatReturnsTrue=t(!0),i.thatReturnsNull=t(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},663620:(e,t,i)=>{"use strict";var n=i(60139);e.exports=n},537347:e=>{!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function i(e){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(e)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function n(e,t){e.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function l(e){var t=e.a.offsetWidth,i=t+100;return e.f.style.width=i+"px",e.c.scrollLeft=i,e.b.scrollLeft=e.b.scrollWidth+100,e.g!==t&&(e.g=t,!0)}function a(e,i){function n(){l(a)&&a.a.parentNode&&i(a.g)}var a=e;t(e.b,n),t(e.c,n),l(e)}function r(e,t){var i=t||{};this.family=e,this.style=i.style||"normal",this.weight=i.weight||"normal",this.stretch=i.stretch||"normal"}var o=null,s=null,d=null,u=null;function c(){return null===u&&(u=!!document.fonts),u}function p(e,t){return[e.style,e.weight,!function(){if(null===d){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(e){}d=""!==e.style.font}return d}()?"":e.stretch,"100px",t].join(" ")}r.prototype.load=function(e,t){var l=this,r=e||"BESbswy",d=0,u=t||3e3,h=(new Date).getTime();return new Promise(function(e,t){if(c()&&!function(){if(null===s){if(c()&&/Apple/.test(window.navigator.vendor)){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);s=!!e&&603>parseInt(e[1],10)}else s=!1}return s}()){var _,m=new Promise(function(e,t){!function i(){(new Date).getTime()-h>=u?t(Error(""+u+"ms timeout exceeded")):document.fonts.load(p(l,'"'+l.family+'"'),r).then(function(t){1<=t.length?e():setTimeout(i,25)},t)}()});Promise.race([new Promise(function(e,t){d=setTimeout(function(){t(Error(""+u+"ms timeout exceeded"))},u)}),m]).then(function(){clearTimeout(d),e(l)},t)}else _=function(){function s(){var t;(t=-1!=g&&-1!=y||-1!=g&&-1!=v||-1!=y&&-1!=v)&&((t=g!=y&&g!=v&&y!=v)||(null===o&&(o=!!(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent))&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=o&&(g==f&&y==f&&v==f||g==x&&y==x&&v==x||g==b&&y==b&&v==b)),t=!t),t&&(P.parentNode&&P.parentNode.removeChild(P),clearTimeout(d),e(l))}var c=new i(r),_=new i(r),m=new i(r),g=-1,y=-1,v=-1,f=-1,x=-1,b=-1,P=document.createElement("div");P.dir="ltr",n(c,p(l,"sans-serif")),n(_,p(l,"serif")),n(m,p(l,"monospace")),P.appendChild(c.a),P.appendChild(_.a),P.appendChild(m.a),document.body.appendChild(P),f=c.a.offsetWidth,x=_.a.offsetWidth,b=m.a.offsetWidth,function e(){if((new Date).getTime()-h>=u)P.parentNode&&P.parentNode.removeChild(P),t(Error(""+u+"ms timeout exceeded"));else{var i=document.hidden;(!0===i||void 0===i)&&(g=c.a.offsetWidth,y=_.a.offsetWidth,v=m.a.offsetWidth,s()),d=setTimeout(e,50)}}(),a(c,function(e){g=e,s()}),n(c,p(l,'"'+l.family+'",sans-serif')),a(_,function(e){y=e,s()}),n(_,p(l,'"'+l.family+'",serif')),a(m,function(e){v=e,s()}),n(m,p(l,'"'+l.family+'",monospace'))},document.body?_():document.addEventListener?document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e),_()}):document.attachEvent("onreadystatechange",function e(){("interactive"==document.readyState||"complete"==document.readyState)&&(document.detachEvent("onreadystatechange",e),_())})})},e.exports=r}()},108679:(e,t,i)=>{"use strict";var n=i(121296),l={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function s(e){return n.isMemo(e)?r:o[e.$$typeof]||l}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=r;var d=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,_=Object.prototype;e.exports=function e(t,i,n){if("string"!=typeof i){if(_){var l=h(i);l&&l!==_&&e(t,l,n)}var r=u(i);c&&(r=r.concat(c(i)));for(var o=s(t),m=s(i),g=0;g<r.length;++g){var y=r[g];if(!a[y]&&!(n&&n[y])&&!(m&&m[y])&&!(o&&o[y])){var v=p(i,y);try{d(t,y,v)}catch(e){}}}}return t}},396103:(e,t)=>{"use strict";/** @license React v16.8.4
9
+ * react-is.production.min.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&Symbol.for,n=i?Symbol.for("react.element"):60103,l=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,r=i?Symbol.for("react.strict_mode"):60108,o=i?Symbol.for("react.profiler"):60114,s=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,u=i?Symbol.for("react.async_mode"):60111,c=i?Symbol.for("react.concurrent_mode"):60111,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,_=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case c:case a:case o:case r:case h:return e;default:switch(e=e&&e.$$typeof){case d:case p:case s:return e;default:return t}}case m:case _:case l:return t}}}function y(e){return g(e)===c}t.typeOf=g,t.AsyncMode=u,t.ConcurrentMode=c,t.ContextConsumer=d,t.ContextProvider=s,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=_,t.Portal=l,t.Profiler=o,t.StrictMode=r,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===o||e===r||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===_||e.$$typeof===s||e.$$typeof===d||e.$$typeof===p)},t.isAsyncMode=function(e){return y(e)||g(e)===u},t.isConcurrentMode=y,t.isContextConsumer=function(e){return g(e)===d},t.isContextProvider=function(e){return g(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return g(e)===p},t.isFragment=function(e){return g(e)===a},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===_},t.isPortal=function(e){return g(e)===l},t.isProfiler=function(e){return g(e)===o},t.isStrictMode=function(e){return g(e)===r},t.isSuspense=function(e){return g(e)===h}},121296:(e,t,i)=>{"use strict";e.exports=i(396103)},441143:e=>{"use strict";e.exports=function(e,t,i,n,l,a,r,o){if(!e){var s;if(void 0===t)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[i,n,l,a,r,o],u=0;(s=Error(t.replace(/%s/g,function(){return d[u++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},968337:(e,t,i)=>{"use strict";function n(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(i){e[i]=t[i]})}),e}function l(e){return Object.prototype.toString.call(e)}function a(e){return"[object Function]"===l(e)}function r(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},s={"http:":{validate:function(e,t,i){var n=e.slice(t);return(i.re.http||(i.re.http=RegExp("^\\/\\/"+i.re.src_auth+i.re.src_host_port_strict+i.re.src_path,"i")),i.re.http.test(n))?n.match(i.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,i){var n=e.slice(t);return(i.re.no_http||(i.re.no_http=RegExp("^"+i.re.src_auth+"(?:localhost|(?:(?:"+i.re.src_domain+")\\.)+"+i.re.src_domain_root+")"+i.re.src_port+i.re.src_host_terminator+i.re.src_path,"i")),i.re.no_http.test(n))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(i.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,i){var n=e.slice(t);return(i.re.mailto||(i.re.mailto=RegExp("^"+i.re.src_email_name+"@"+i.re.src_host_strict,"i")),i.re.mailto.test(n))?n.match(i.re.mailto)[0].length:0}}},d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(){return function(e,t){t.normalize(e)}}function c(e){var t=e.re=i(136066)(e.__opts__),n=e.__tlds__.slice();function o(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");var s=[];function d(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var i,n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===l(n)){"[object RegExp]"===l(n.validate)?r.validate=(i=n.validate,function(e,t){var n=e.slice(t);return i.test(n)?n.match(i)[0].length:0}):a(n.validate)?r.validate=n.validate:d(t,n),a(n.normalize)?r.normalize=n.normalize:n.normalize?d(t,n):r.normalize=u();return}if("[object String]"===l(n)){s.push(t);return}d(t,n)}}),s.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:u()};var c=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(r).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+c+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),e.__index__=-1,e.__text_cache__=""}function p(e,t){var i=e.__index__,n=e.__last_index__,l=e.__text_cache__.slice(i,n);this.schema=e.__schema__.toLowerCase(),this.index=i+t,this.lastIndex=n+t,this.raw=l,this.text=l,this.url=l}function h(e,t){var i=new p(e,t);return e.__compiled__[i.schema].normalize(i,e),i}function _(e,t){if(!(this instanceof _))return new _(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||o.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=n({},o,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},s,e),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},c(this)}_.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},_.prototype.set=function(e){return this.__opts__=n(this.__opts__,e),this},_.prototype.test=function(e){var t,i,n,l,a,r,o,s;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((o=this.re.schema_search).lastIndex=0;null!==(t=o.exec(e));)if(l=this.testSchemaAt(e,t[2],o.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+l;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s<this.__index__)&&null!==(i=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=i.index+i[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=i.index+i[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(a=n.index+n[1].length,r=n.index+n[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&r>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=r)),this.__index__>=0},_.prototype.pretest=function(e){return this.re.pretest.test(e)},_.prototype.testSchemaAt=function(e,t,i){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,i,this):0},_.prototype.match=function(e){var t=0,i=[];this.__index__>=0&&this.__text_cache__===e&&(i.push(h(this,t)),t=this.__last_index__);for(var n=t?e.slice(t):e;this.test(n);)i.push(h(this,t)),n=n.slice(this.__last_index__),t+=this.__last_index__;return i.length?i:null},_.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,i){return e!==i[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),c(this),this},_.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},_.prototype.onCompile=function(){},e.exports=_},136066:(e,t,i)=>{"use strict";e.exports=function(e){var t={};t.src_Any=i(329369).source,t.src_Cc=i(499413).source,t.src_Z=i(335045).source,t.src_P=i(373189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-(?!-)|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+"|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},757460:function(e,t){var i,n;void 0!==(n="function"==typeof(i=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=!t.document&&!!t.postMessage,n=i&&/blob:/i.test((t.location||{}).protocol),l={},a=0,r={parse:function(i,n){var o=(n=n||{}).dynamicTyping||!1;if(b(o)&&(n.dynamicTypingFunction=o,o={}),n.dynamicTyping=o,n.transform=!!b(n.transform)&&n.transform,n.worker&&r.WORKERS_SUPPORTED){var s=function(){if(!r.WORKERS_SUPPORTED)return!1;var i,n,o=(i=t.URL||t.webkitURL||null,n=e.toString(),r.BLOB_URL||(r.BLOB_URL=i.createObjectURL(new Blob(["(",n,")();"],{type:"text/javascript"})))),s=new t.Worker(o);return s.onmessage=g,s.id=a++,l[s.id]=s}();return s.userStep=n.step,s.userChunk=n.chunk,s.userComplete=n.complete,s.userError=n.error,n.step=b(n.step),n.chunk=b(n.chunk),n.complete=b(n.complete),n.error=b(n.error),delete n.worker,void s.postMessage({input:i,config:n,workerId:s.id})}var h=null;return r.NODE_STREAM_INPUT,"string"==typeof i?h=n.download?new d(n):new c(n):!0===i.readable&&b(i.read)&&b(i.on)?h=new p(n):(t.File&&i instanceof File||i instanceof Object)&&(h=new u(n)),h.stream(i)},unparse:function(e,t){var i=!1,n=!0,l=",",a="\r\n",o='"',s=o+o,d=!1,u=null,c=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||r.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(l=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(d=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(s=t.escapeChar+o),"boolean"==typeof t.escapeFormulae&&(c=t.escapeFormulae)}}();var p=RegExp(_(o),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return m(null,e,d);if("object"==typeof e[0])return m(u||h(e[0]),e,d)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:h(e.data[0])),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),m(e.fields||[],e.data||[],d);throw Error("Unable to serialize unrecognized input");function h(e){if("object"!=typeof e)return[];var t=[];for(var i in e)t.push(i);return t}function m(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(o&&n){for(var d=0;d<e.length;d++)0<d&&(r+=l),r+=g(e[d],d);0<t.length&&(r+=a)}for(var u=0;u<t.length;u++){var c=o?e.length:t[u].length,p=!1,h=o?0===Object.keys(t[u]).length:0===t[u].length;if(i&&!o&&(p="greedy"===i?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===i&&o){for(var _=[],m=0;m<c;m++){var y=s?e[m]:m;_.push(t[u][y])}p=""===_.join("").trim()}if(!p){for(var v=0;v<c;v++){0<v&&!h&&(r+=l);var f=o&&s?e[v]:v;r+=g(t[u][f],v)}u<t.length-1&&(!i||0<c&&!h)&&(r+=a)}}return r}function g(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);!0===c&&"string"==typeof e&&null!==e.match(/^[=+\-@].*$/)&&(e="'"+e);var n=e.toString().replace(p,s);return"boolean"==typeof i&&i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1}(n,r.BAD_DELIMITERS)||-1<n.indexOf(l)||" "===n.charAt(0)||" "===n.charAt(n.length-1)?o+n+o:n}}};if(r.RECORD_SEP="\x1e",r.UNIT_SEP="\x1f",r.BYTE_ORDER_MARK="\uFEFF",r.BAD_DELIMITERS=["\r","\n",'"',r.BYTE_ORDER_MARK],r.WORKERS_SUPPORTED=!i&&!!t.Worker,r.NODE_STREAM_INPUT=1,r.LocalChunkSize=10485760,r.RemoteChunkSize=5242880,r.DefaultDelimiter=",",r.Parser=m,r.ParserHandle=h,r.NetworkStreamer=d,r.FileStreamer=u,r.StringStreamer=c,r.ReadableStreamStreamer=p,t.jQuery){var o=t.jQuery;o.fn.parse=function(e){var i=e.config||{},n=[];return this.each(function(e){if(!("INPUT"===o(this).prop("tagName").toUpperCase()&&"file"===o(this).attr("type").toLowerCase()&&t.FileReader)||!this.files||0===this.files.length)return!0;for(var l=0;l<this.files.length;l++)n.push({file:this.files[l],inputElem:this,instanceConfig:o.extend({},i)})}),l(),this;function l(){if(0!==n.length){var t,i,l,s=n[0];if(b(e.before)){var d=e.before(s.file,s.inputElem);if("object"==typeof d){if("abort"===d.action)return t=s.file,i=s.inputElem,l=d.reason,void(b(e.error)&&e.error({name:"AbortError"},t,i,l));if("skip"===d.action)return void a();"object"==typeof d.config&&(s.instanceConfig=o.extend(s.instanceConfig,d.config))}else if("skip"===d)return void a()}var u=s.instanceConfig.complete;s.instanceConfig.complete=function(e){b(u)&&u(e,s.file,s.inputElem),a()},r.parse(s.file,s.instanceConfig)}else b(e.complete)&&e.complete()}function a(){n.splice(0,1),l()}}}function s(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=f(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new h(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,i){if(this.isFirstChunk&&b(this._config.beforeFirstChunk)){var l=this._config.beforeFirstChunk(e);void 0!==l&&(e=l)}this.isFirstChunk=!1,this._halted=!1;var a=this._partialLine+e;this._partialLine="";var o=this._handle.parse(a,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=o.meta.cursor;this._finished||(this._partialLine=a.substring(s-this._baseIndex),this._baseIndex=s),o&&o.data&&(this._rowCount+=o.data.length);var d=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(n)t.postMessage({results:o,workerId:r.WORKER_ID,finished:d});else if(b(this._config.chunk)&&!i){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);o=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!d||!b(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),d||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(e){b(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:r.WORKER_ID,error:e,finished:!1})}}function d(e){var t;(e=e||{}).chunkSize||(e.chunkSize=r.RemoteChunkSize),s.call(this,e),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),i||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var l=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+l)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}i&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){var e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(e=t.getResponseHeader("Content-Range"))?-1:parseInt(e.substring(e.lastIndexOf("/")+1))),this.parseChunk(t.responseText)))},this._chunkError=function(e){var i=t.statusText||e;this._sendError(Error(i))}}function u(e){(e=e||{}).chunkSize||(e.chunkSize=r.LocalChunkSize),s.call(this,e);var t,i,n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var l=Math.min(this._start+this._config.chunkSize,this._input.size);e=i.call(e,this._start,l)}var a=t.readAsText(e,this._config.encoding);n||this._chunkLoaded({target:{result:a}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function c(e){var t;s.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,i=this._config.chunkSize;return i?(e=t.substring(0,i),t=t.substring(i)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function p(e){s.call(this,e=e||{});var t=[],i=!0,n=!1;this.pause=function(){s.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){s.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=x(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=x(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=x(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=x(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function h(e){var t,i,n,l=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)(e[-+]?\d+)?\s*$/,a=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,o=this,s=0,d=0,u=!1,c=!1,p=[],h={data:[],errors:[],meta:{}};if(b(e.step)){var g=e.step;e.step=function(t){if(h=t,x())v();else{if(v(),0===h.data.length)return;s+=t.data.length,e.preview&&s>e.preview?i.abort():(h.data=h.data[0],g(h,o))}}}function y(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function v(){if(h&&n&&(P("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+r.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines)for(var t=0;t<h.data.length;t++)y(h.data[t])&&h.data.splice(t--,1);return x()&&function(){if(h){if(Array.isArray(h.data[0])){for(var t=0;x()&&t<h.data.length;t++)h.data[t].forEach(i);h.data.splice(0,1)}else h.data.forEach(i)}function i(t,i){b(e.transformHeader)&&(t=e.transformHeader(t,i)),p.push(t)}}(),function(){if(!h||!e.header&&!e.dynamicTyping&&!e.transform)return h;function t(t,i){var n,r=e.header?{}:[];for(n=0;n<t.length;n++){var o,s,u=n,c=t[n];e.header&&(u=n>=p.length?"__parsed_extra":p[n]),e.transform&&(c=e.transform(c,u)),o=u,s=c,e.dynamicTypingFunction&&void 0===e.dynamicTyping[o]&&(e.dynamicTyping[o]=e.dynamicTypingFunction(o)),c=!0===(e.dynamicTyping[o]||e.dynamicTyping)?"true"===s||"TRUE"===s||"false"!==s&&"FALSE"!==s&&(!function(e){if(l.test(e)){var t=parseFloat(e);if(-9007199254740992<t&&t<9007199254740992)return!0}return!1}(s)?a.test(s)?new Date(s):""===s?null:s:parseFloat(s)):s,"__parsed_extra"===u?(r[u]=r[u]||[],r[u].push(c)):r[u]=c}return e.header&&(n>p.length?P("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+n,d+i):n<p.length&&P("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+n,d+i)),r}var i=1;return!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(t),i=h.data.length):h.data=t(h.data,0),e.header&&h.meta&&(h.meta.fields=p),d+=i,h}()}function x(){return e.header&&0===p.length}function P(e,t,i,n){var l={type:e,code:t,message:i};void 0!==n&&(l.row=n),h.errors.push(l)}this.parse=function(l,a,o){var s=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var i=RegExp(_(t)+"([^]*?)"+_(t),"gm"),n=(e=e.replace(i,"")).split("\r"),l=e.split("\n"),a=1<l.length&&l[0].length<n[0].length;if(1===n.length||a)return"\n";for(var r=0,o=0;o<n.length;o++)"\n"===n[o][0]&&r++;return r>=n.length/2?"\r\n":"\r"}(l,s)),n=!1,e.delimiter)b(e.delimiter)&&(e.delimiter=e.delimiter(l),h.meta.delimiter=e.delimiter);else{var d=function(t,i,n,l,a){var o,s,d,u;a=a||[","," ","|",";",r.RECORD_SEP,r.UNIT_SEP];for(var c=0;c<a.length;c++){var p=a[c],h=0,_=0,g=0;d=void 0;for(var v=new m({comments:l,delimiter:p,newline:i,preview:10}).parse(t),f=0;f<v.data.length;f++)if(n&&y(v.data[f]))g++;else{var x=v.data[f].length;_+=x,void 0!==d?0<x&&(h+=Math.abs(x-d),d=x):d=x}0<v.data.length&&(_/=v.data.length-g),(void 0===s||h<=s)&&(void 0===u||u<_)&&1.99<_&&(s=h,o=p,u=_)}return{successful:!!(e.delimiter=o),bestDelimiter:o}}(l,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);d.successful?e.delimiter=d.bestDelimiter:(n=!0,e.delimiter=r.DefaultDelimiter),h.meta.delimiter=e.delimiter}var c=f(e);return e.preview&&e.header&&c.preview++,t=l,h=(i=new m(c)).parse(t,a,o),v(),u?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return u},this.pause=function(){u=!0,i.abort(),t=b(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){o.streamer._halted?(u=!1,o.streamer.parseChunk(t,!0)):setTimeout(o.resume,3)},this.aborted=function(){return c},this.abort=function(){c=!0,i.abort(),h.meta.aborted=!0,b(e.complete)&&e.complete(h),t=""}}function _(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var t,i=(e=e||{}).delimiter,n=e.newline,l=e.comments,a=e.step,o=e.preview,s=e.fastMode,d=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(d=e.escapeChar),("string"!=typeof i||-1<r.BAD_DELIMITERS.indexOf(i))&&(i=","),l===i)throw Error("Comment character same as delimiter");!0===l?l="#":("string"!=typeof l||-1<r.BAD_DELIMITERS.indexOf(l))&&(l=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var u=0,c=!1;this.parse=function(e,r,p){if("string"!=typeof e)throw Error("Input must be a string");var h=e.length,m=i.length,g=n.length,y=l.length,v=b(a),f=[],x=[],P=[],w=u=0;if(!e)return M();if(s||!1!==s&&-1===e.indexOf(t)){for(var S=e.split(n),k=0;k<S.length;k++){if(P=S[k],u+=P.length,k!==S.length-1)u+=n.length;else if(p)break;if(!l||P.substring(0,y)!==l){if(v){if(f=[],F(P.split(i)),Z(),c)return M()}else F(P.split(i));if(o&&o<=k)return f=f.slice(0,o),M(!0)}}return M()}for(var j=e.indexOf(i,u),A=e.indexOf(n,u),C=RegExp(_(d)+_(t),"g"),D=e.indexOf(t,u);;)if(e[u]!==t){if(l&&0===P.length&&e.substring(u,u+y)===l){if(-1===A)return M();u=A+g,A=e.indexOf(n,u),j=e.indexOf(i,u)}else{if(-1!==j&&(j<A||-1===A)){if(!(j<D)){P.push(e.substring(u,j)),u=j+m,j=e.indexOf(i,u);continue}var E=function n(l,a,r){var o={nextDelim:void 0,quoteSearch:void 0},s=e.indexOf(t,a+1);if(a<l&&l<s&&(s<r||-1===r)){var d=e.indexOf(i,s);if(-1===d)return o;s<d&&(s=e.indexOf(t,s+1)),o=n(d,s,r)}else o={nextDelim:l,quoteSearch:a};return o}(j,D,A);if(E&&void 0!==E.nextDelim){j=E.nextDelim,D=E.quoteSearch,P.push(e.substring(u,j)),u=j+m,j=e.indexOf(i,u);continue}}if(-1===A)break;if(P.push(e.substring(u,A)),L(A+g),v&&(Z(),c))return M();if(o&&f.length>=o)return M(!0)}}else for(D=u,u++;;){if(-1===(D=e.indexOf(t,D+1)))return p||x.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:f.length,index:u}),R();if(D===h-1)return R(e.substring(u,D).replace(C,t));if(t!==d||e[D+1]!==d){if(t===d||0===D||e[D-1]!==d){-1!==j&&j<D+1&&(j=e.indexOf(i,D+1)),-1!==A&&A<D+1&&(A=e.indexOf(n,D+1));var I=z(-1===A?j:Math.min(j,A));if(e[D+1+I]===i){P.push(e.substring(u,D).replace(C,t)),e[u=D+1+I+m]!==t&&(D=e.indexOf(t,u)),j=e.indexOf(i,u),A=e.indexOf(n,u);break}var T=z(A);if(e.substring(D+1+T,D+1+T+g)===n){if(P.push(e.substring(u,D).replace(C,t)),L(D+1+T+g),j=e.indexOf(i,u),D=e.indexOf(t,u),v&&(Z(),c))return M();if(o&&f.length>=o)return M(!0);break}x.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:f.length,index:u}),D++}}else D++}return R();function F(e){f.push(e),w=u}function z(t){var i=0;if(-1!==t){var n=e.substring(D+1,t);n&&""===n.trim()&&(i=n.length)}return i}function R(t){return p||(void 0===t&&(t=e.substring(u)),P.push(t),u=h,F(P),v&&Z()),M()}function L(t){u=t,F(P),P=[],A=e.indexOf(n,u)}function M(e){return{data:f,errors:x,meta:{delimiter:i,linebreak:n,aborted:c,truncated:!!e,cursor:w+(r||0)}}}function Z(){a(M()),f=[],x=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return u}}function g(e){var t=e.data,i=l[t.workerId],n=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){n=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(b(i.userStep)){for(var r=0;r<t.results.data.length&&(i.userStep({data:t.results.data[r],errors:t.results.errors,meta:t.results.meta},a),!n);r++);delete t.results}else b(i.userChunk)&&(i.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!n&&y(t.workerId,t.results)}function y(e,t){var i=l[e];b(i.userComplete)&&i.userComplete(t),i.terminate(),delete l[e]}function v(){throw Error("Not implemented.")}function f(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=f(e[i]);return t}function x(e,t){return function(){e.apply(t,arguments)}}function b(e){return"function"==typeof e}return n&&(t.onmessage=function(e){var i=e.data;if(void 0===r.WORKER_ID&&i&&(r.WORKER_ID=i.workerId),"string"==typeof i.input)t.postMessage({workerId:r.WORKER_ID,results:r.parse(i.input,i.config),finished:!0});else if(t.File&&i.input instanceof File||i.input instanceof Object){var n=r.parse(i.input,i.config);n&&t.postMessage({workerId:r.WORKER_ID,results:n,finished:!0})}}),(d.prototype=Object.create(s.prototype)).constructor=d,(u.prototype=Object.create(s.prototype)).constructor=u,(c.prototype=Object.create(c.prototype)).constructor=c,(p.prototype=Object.create(s.prototype)).constructor=p,r})?i.apply(t,[]):i)&&(e.exports=n)},869921:(e,t)=>{"use strict";/** @license React v16.13.1
16
+ * react-is.production.min.js
17
+ *
18
+ * Copyright (c) Facebook, Inc. and its affiliates.
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */var i="function"==typeof Symbol&&Symbol.for,n=i?Symbol.for("react.element"):60103,l=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,r=i?Symbol.for("react.strict_mode"):60108,o=i?Symbol.for("react.profiler"):60114,s=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,u=i?Symbol.for("react.async_mode"):60111,c=i?Symbol.for("react.concurrent_mode"):60111,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,_=i?Symbol.for("react.suspense_list"):60120,m=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,y=i?Symbol.for("react.block"):60121,v=i?Symbol.for("react.fundamental"):60117,f=i?Symbol.for("react.responder"):60118,x=i?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case c:case a:case o:case r:case h:return e;default:switch(e=e&&e.$$typeof){case d:case p:case g:case m:case s:return e;default:return t}}case l:return t}}}function P(e){return b(e)===c}t.AsyncMode=u,t.ConcurrentMode=c,t.ContextConsumer=d,t.ContextProvider=s,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=l,t.Profiler=o,t.StrictMode=r,t.Suspense=h,t.isAsyncMode=function(e){return P(e)||b(e)===u},t.isConcurrentMode=P,t.isContextConsumer=function(e){return b(e)===d},t.isContextProvider=function(e){return b(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return b(e)===p},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===g},t.isMemo=function(e){return b(e)===m},t.isPortal=function(e){return b(e)===l},t.isProfiler=function(e){return b(e)===o},t.isStrictMode=function(e){return b(e)===r},t.isSuspense=function(e){return b(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===o||e===r||e===h||e===_||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===d||e.$$typeof===p||e.$$typeof===v||e.$$typeof===f||e.$$typeof===x||e.$$typeof===y)},t.typeOf=b},659864:(e,t,i)=>{"use strict";e.exports=i(869921)},615071:(e,t,i)=>{"use strict";i.d(t,{Z:()=>x});var n=i(487462),l=i(263366),a=i(894578);function r(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}i(45697);var o=i(667294),s=i(973935);let d={disabled:!1};var u=i(500220),c="unmounted",p="exited",h="entering",_="entered",m="exiting",g=function(e){function t(t,i){n=e.call(this,t,i)||this;var n,l,a=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(l=p,n.appearStatus=h):l=_:l=t.unmountOnExit||t.mountOnEnter?c:p,n.state={status:l},n.nextCallback=null,n}(0,a.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:p}:null};var i=t.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var i=this.state.status;this.props.in?i!==h&&i!==_&&(t=h):(i===h||i===_)&&(t=m)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,i,n=this.props.timeout;return e=t=i=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,i=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:i}},i.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===h?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===p&&this.setState({status:c})},i.performEnter=function(e){var t=this,i=this.props.enter,n=this.context?this.context.isMounting:e,l=this.props.nodeRef?[n]:[s.findDOMNode(this),n],a=l[0],r=l[1],o=this.getTimeouts(),u=n?o.appear:o.enter;if(!e&&!i||d.disabled){this.safeSetState({status:_},function(){t.props.onEntered(a)});return}this.props.onEnter(a,r),this.safeSetState({status:h},function(){t.props.onEntering(a,r),t.onTransitionEnd(u,function(){t.safeSetState({status:_},function(){t.props.onEntered(a,r)})})})},i.performExit=function(){var e=this,t=this.props.exit,i=this.getTimeouts(),n=this.props.nodeRef?void 0:s.findDOMNode(this);if(!t||d.disabled){this.safeSetState({status:p},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:m},function(){e.props.onExiting(n),e.onTransitionEnd(i.exit,function(){e.safeSetState({status:p},function(){e.props.onExited(n)})})})},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,i=!0;return this.nextCallback=function(n){i&&(i=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var i=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!i||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],a=l[0],r=l[1];this.props.addEndListener(a,r)}null!=e&&setTimeout(this.nextCallback,e)},i.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,i=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,l.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(u.Z.Provider,{value:null},"function"==typeof i?i(e,n):o.cloneElement(o.Children.only(i),n))},t}(o.Component);function y(){}g.contextType=u.Z,g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},g.UNMOUNTED=c,g.EXITED=p,g.ENTERING=h,g.ENTERED=_,g.EXITING=m;var v=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))})},f=function(e){function t(){for(var t,i=arguments.length,n=Array(i),l=0;l<i;l++)n[l]=arguments[l];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,i){var n=t.resolveArguments(e,i),l=n[0],a=n[1];t.removeClasses(l,"exit"),t.addClass(l,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,i)},t.onEntering=function(e,i){var n=t.resolveArguments(e,i),l=n[0],a=n[1];t.addClass(l,a?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,i)},t.onEntered=function(e,i){var n=t.resolveArguments(e,i),l=n[0],a=n[1]?"appear":"enter";t.removeClasses(l,a),t.addClass(l,a,"done"),t.props.onEntered&&t.props.onEntered(e,i)},t.onExit=function(e){var i=t.resolveArguments(e)[0];t.removeClasses(i,"appear"),t.removeClasses(i,"enter"),t.addClass(i,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var i=t.resolveArguments(e)[0];t.addClass(i,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var i=t.resolveArguments(e)[0];t.removeClasses(i,"exit"),t.addClass(i,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,i){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,i]},t.getClassNames=function(e){var i=t.props.classNames,n="string"==typeof i,l=n?(n&&i?i+"-":"")+e:i[e],a=n?l+"-active":i[e+"Active"],r=n?l+"-done":i[e+"Done"];return{baseClassName:l,activeClassName:a,doneClassName:r}},t}(0,a.Z)(t,e);var i=t.prototype;return i.addClass=function(e,t,i){var n,l=this.getClassNames(t)[i+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===i&&a&&(l+=" "+a),"active"===i&&e&&e.scrollTop,l&&(this.appliedClasses[t][i]=l,n=l,e&&n&&n.split(" ").forEach(function(t){var i,n;return i=e,n=t,void(i.classList?i.classList.add(n):(i.classList?n&&i.classList.contains(n):-1!==(" "+(i.className.baseVal||i.className)+" ").indexOf(" "+n+" "))||("string"==typeof i.className?i.className=i.className+" "+n:i.setAttribute("class",(i.className&&i.className.baseVal||"")+" "+n)))}))},i.removeClasses=function(e,t){var i=this.appliedClasses[t],n=i.base,l=i.active,a=i.done;this.appliedClasses[t]={},n&&v(e,n),l&&v(e,l),a&&v(e,a)},i.render=function(){var e=this.props,t=(e.classNames,(0,l.Z)(e,["classNames"]));return o.createElement(g,(0,n.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);f.defaultProps={classNames:""},f.propTypes={};let x=f},500220:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(667294);let l=n.createContext(null)},442279:(e,t)=>{"use strict";function i(e,t){return e===t}t.P1=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return function(){for(var t=arguments.length,n=Array(t),l=0;l<t;l++)n[l]=arguments[l];var a=0,r=n.pop(),o=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e}))throw Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+t.map(function(e){return typeof e}).join(", ")+"]");return t}(n),s=e.apply(void 0,[function(){return a++,r.apply(void 0,arguments)}].concat(i)),d=function(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),l=2;l<i;l++)n[l-2]=arguments[l];var a=o.map(function(i){return i.apply(void 0,[e,t].concat(n))});return s.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}(a))};return d.resultFunc=r,d.recomputations=function(){return a},d.resetRecomputations=function(){return a=0},d}}(function(e){var t=arguments.length<=1||void 0===arguments[1]?i:arguments[1],n=null,l=null;return function(){for(var i=arguments.length,a=Array(i),r=0;r<i;r++)a[r]=arguments[r];return null!==n&&n.length===a.length&&a.every(function(e,i){return t(e,n[i])})||(l=e.apply(void 0,a)),n=a,l}})},560053:(e,t)=>{"use strict";/**
23
+ * @license React
24
+ * scheduler.production.min.js
25
+ *
26
+ * Copyright (c) Facebook, Inc. and its affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */function i(e,t){var i=e.length;for(e.push(t);0<i;){var n=i-1>>>1,l=e[n];if(0<a(l,t))e[n]=t,e[i]=l,i=n;else break}}function n(e){return 0===e.length?null:e[0]}function l(e){if(0===e.length)return null;var t=e[0],i=e.pop();if(i!==t){e[0]=i;for(var n=0,l=e.length,r=l>>>1;n<r;){var o=2*(n+1)-1,s=e[o],d=o+1,u=e[d];if(0>a(s,i))d<l&&0>a(u,s)?(e[n]=u,e[d]=i,n=d):(e[n]=s,e[o]=i,n=o);else if(d<l&&0>a(u,i))e[n]=u,e[d]=i,n=d;else break}}return t}function a(e,t){var i=e.sortIndex-t.sortIndex;return 0!==i?i:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var r,o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,d=s.now();t.unstable_now=function(){return s.now()-d}}var u=[],c=[],p=1,h=null,_=3,m=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,f="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=n(c);null!==t;){if(null===t.callback)l(c);else if(t.startTime<=e)l(c),t.sortIndex=t.expirationTime,i(u,t);else break;t=n(c)}}function P(e){if(y=!1,b(e),!g){if(null!==n(u))g=!0,F(w);else{var t=n(c);null!==t&&z(P,t.startTime-e)}}}function w(e,i){g=!1,y&&(y=!1,f(j),j=-1),m=!0;var a=_;try{for(b(i),h=n(u);null!==h&&(!(h.expirationTime>i)||e&&!D());){var r=h.callback;if("function"==typeof r){h.callback=null,_=h.priorityLevel;var o=r(h.expirationTime<=i);i=t.unstable_now(),"function"==typeof o?h.callback=o:h===n(u)&&l(u),b(i)}else l(u);h=n(u)}if(null!==h)var s=!0;else{var d=n(c);null!==d&&z(P,d.startTime-i),s=!1}return s}finally{h=null,_=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,k=null,j=-1,A=5,C=-1;function D(){return!(t.unstable_now()-C<A)}function E(){if(null!==k){var e=t.unstable_now();C=e;var i=!0;try{i=k(!0,e)}finally{i?r():(S=!1,k=null)}}else S=!1}if("function"==typeof x)r=function(){x(E)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,T=I.port2;I.port1.onmessage=E,r=function(){T.postMessage(null)}}else r=function(){v(E,0)};function F(e){k=e,S||(S=!0,r())}function z(e,i){j=v(function(){e(t.unstable_now())},i)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,F(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var i=_;_=t;try{return e()}finally{_=i}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=_;_=e;try{return t()}finally{_=i}},t.unstable_scheduleCallback=function(e,l,a){var r=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?r+a:r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:p++,callback:l,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,i(c,e),null===n(u)&&e===n(c)&&(y?(f(j),j=-1):y=!0,z(P,a-r))):(e.sortIndex=o,i(u,e),g||m||(g=!0,F(w))),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=_;return function(){var i=_;_=t;try{return e.apply(this,arguments)}finally{_=i}}}},363840:(e,t,i)=>{"use strict";e.exports=i(560053)},499413:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},373189:e=>{e.exports=/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E49\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},335045:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},329369:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},653250:(e,t,i)=>{"use strict";/**
31
+ * @license React
32
+ * use-sync-external-store-shim.production.min.js
33
+ *
34
+ * Copyright (c) Facebook, Inc. and its affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var n=i(667294),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,r=n.useEffect,o=n.useLayoutEffect,s=n.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!l(e,i)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var i=t(),n=a({inst:{value:i,getSnapshot:t}}),l=n[0].inst,u=n[1];return o(function(){l.value=i,l.getSnapshot=t,d(l)&&u({inst:l})},[e,i,t]),r(function(){return d(l)&&u({inst:l}),e(function(){d(l)&&u({inst:l})})},[e]),s(i),i};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},950139:(e,t,i)=>{"use strict";/**
39
+ * @license React
40
+ * use-sync-external-store-shim/with-selector.production.min.js
41
+ *
42
+ * Copyright (c) Facebook, Inc. and its affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */var n=i(667294),l=i(61688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=l.useSyncExternalStore,o=n.useRef,s=n.useEffect,d=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,i,n,l){var c=o(null);if(null===c.current){var p={hasValue:!1,value:null};c.current=p}else p=c.current;var h=r(e,(c=d(function(){function e(e){if(!s){if(s=!0,r=e,e=n(e),void 0!==l&&p.hasValue){var t=p.value;if(l(t,e))return o=t}return o=e}if(t=o,a(r,e))return t;var i=n(e);return void 0!==l&&l(t,i)?t:(r=e,o=i)}var r,o,s=!1,d=void 0===i?null:i;return[function(){return e(t())},null===d?void 0:function(){return e(d())}]},[t,i,n,l]))[0],c[1]);return s(function(){p.hasValue=!0,p.value=h},[h]),u(h),h}},61688:(e,t,i)=>{"use strict";e.exports=i(653250)},552798:(e,t,i)=>{"use strict";e.exports=i(950139)},353499:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ActivityAvatar_user",selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"firstName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],type:"User",abstractKey:null};t.hash="abf151ba4d389a02e4541aa5f969d468",e.exports=t},484044:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AggregatedCloseupSavedToBoardInfo_pin",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="1c0dd9839405d82cabfd205ccf6b71f5",e.exports=t},612289:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BoardPickerList_pin",selections:[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"BoardSection",kind:"LinkedField",name:"section",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="c5e34729d91812fdf0f426c5f40a521b",e.exports=i},390687:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BoardTitleSuggestionList_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"BoardSection",kind:"LinkedField",name:"section",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:t,storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="69ffcdea57a7778d2ebbcd41c276c0d0",e.exports=i},450756:e=>{"use strict";var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CardSourceDescriptionText_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,concreteType:"PinCarouselSlot",kind:"LinkedField",name:"carouselSlots",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"details",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bestRating",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinListBlock",kind:"LinkedField",name:"listBlocks",plural:!0,selections:[t={alias:null,args:null,kind:"ScalarField",name:"heading",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:i=[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],type:"TextBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"LinkBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:i,type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null}],type:"StoryPinListBlock",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"categoryType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"TextTag",kind:"LinkedField",name:"userMentionTags",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"objectId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tagType",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="ce881877e19bed64c05eff92a2289974",e.exports=n},603239:e=>{"use strict";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=>{"use strict";var t,i={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};i.hash="3a9249e363d91968cda37f88750020c1",e.exports=i},717246:e=>{"use strict";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},126842:e=>{"use strict";var t,i,n,l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupAttributionAndDescription_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"authorName",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"authorUrl",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"ccUrl",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"providerName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"providerUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtype",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"MediaAttribution",kind:"LinkedField",name:"mediaAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"author",storageKey:null},t,i,{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mediaType",storageKey:null},n],storageKey:null},{args:null,kind:"FragmentSpread",name:"Description_pin"}],type:"Pin",abstractKey:null};l.hash="7142df6a7a3c1aee54267c5441d3d50b",e.exports=l},655519:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupCarousel_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:"useGetStringifiedCommerceAuxData_pin"}],type:"Pin",abstractKey:null};t.hash="1bbb8674ec5e60b14ecaddf0ef8aa73e",e.exports=t},281309:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupDescriptionMediaAttribution_pin",selections:[{alias:null,args:null,concreteType:"MediaAttribution",kind:"LinkedField",name:"mediaAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"author",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authorUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ccUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mediaType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"providerName",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="91cf1b742f42f2f57e9e89991ad2eebd",e.exports=t},801322:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupDescriptionPhotoAttribution_pin",selections:[{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authorUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authorName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ccUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"providerName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"subtype",storageKey:null},t,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="5dff28be2de95106e382c42d78ad1833",e.exports=i},882900:e=>{"use strict";var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupDescription_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"datePublished",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:i=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},t,{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"MediaAttribution",kind:"LinkedField",name:"mediaAttribution",plural:!1,selections:i,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoNoindexReason",storageKey:null},{args:null,kind:"FragmentSpread",name:"CloseupDescriptionPhotoAttribution_pin"},{args:null,kind:"FragmentSpread",name:"CloseupDescriptionMediaAttribution_pin"}],type:"Pin",abstractKey:null};n.hash="c8423888a19a8f6884a814676a99cd51",e.exports=n},623861:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupDetailsBasicsLayout_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"templateType",storageKey:null},{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinListBlock",kind:"LinkedField",name:"listBlocks",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:t=[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],type:"TextBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"HeadingBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"ParagraphBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"LinkBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinImageBlock",abstractKey:null},{kind:"InlineFragment",selections:t,type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"heading",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="b8f25f1b5aa21f88bc1091e219609eb8",e.exports=i},914715:e=>{"use strict";var t,i,n,l,a,r=(a=[{args:null,kind:"FragmentSpread",name:"CloseupDetails_user"}],{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"isAuth"},{defaultValue:null,kind:"LocalArgument",name:"isDesktop"}],kind:"Fragment",metadata:null,name:"CloseupDetails_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForAggregatedComments",storageKey:null},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commentCount",storageKey:null},{alias:null,args:null,concreteType:"AggregatedDidItData",kind:"LinkedField",name:"didItData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imagesCount",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingKlpUrls",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[t={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"inStock",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:l=[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"MakeCardTutorialMetadata",kind:"LinkedField",name:"tutorial",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayCookTime",storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:l,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[t,{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[i],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"categoryType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:l,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commentsDisabled",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[n,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:a,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{args:null,kind:"FragmentSpread",name:"OfficialUserAttribution_pin"},{args:null,kind:"FragmentSpread",name:"CloseupDetailsBasicsLayout_pin"},{args:null,kind:"FragmentSpread",name:"SeeMoreButton_pin"},{args:null,kind:"FragmentSpread",name:"PinRecipe_pin"},{args:null,kind:"FragmentSpread",name:"CloseupTitle_pin"},{args:null,kind:"FragmentSpread",name:"CloseupSavedAttribution_pin"},{args:null,kind:"FragmentSpread",name:"PinFeaturedInArticleCard_pin"},{args:null,kind:"FragmentSpread",name:"VaseFullBleedModal_pin"},{args:null,kind:"FragmentSpread",name:"PinRecipeRating_pin"},{args:null,kind:"FragmentSpread",name:"CloseupDescription_pin"},{args:null,kind:"FragmentSpread",name:"useAnnotationsWithLinksFragment_pin"},{args:null,kind:"FragmentSpread",name:"useReactionCountsFragment_pin"},{args:null,kind:"FragmentSpread",name:"VaseAnnotations_pin"},{condition:"isAuth",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"ProductDetails_pin"}]},{condition:"isAuth",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"ProductDescriptionDropdown_pin"}]},{condition:"isDesktop",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"PinFeedbackButton_pin"}]},{condition:"isDesktop",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"CommentThreadContainer_pin"}]},{args:null,kind:"FragmentSpread",name:"UserRep_pin"}],type:"Pin",abstractKey:null});r.hash="26d32b9142f479e02c0600f3ac018156",e.exports=r},350886:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupDetails_user",selections:[{alias:null,args:null,kind:"ScalarField",name:"blockedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followerCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isVerifiedMerchant",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",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}],type:"User",abstractKey:null};t.hash="c9713d85ef89281fa5ad27120a1c71f9",e.exports=t},501071:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupMainPinImpression_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdpPlus",storageKey:null},{args:null,kind:"FragmentSpread",name:"useGetStringifiedCommerceAuxData_pin"}],type:"Pin",abstractKey:null};t.hash="cb7fea198513a8b03ed97b18fdfd2fd5",e.exports=t},956886:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupRelatedModuleOneTapConfiguration_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],type:"Pin",abstractKey:null};t.hash="20f13d43dd1ab7246946004af63637f8",e.exports=t},45159:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupRelatedModuleOneTapConfiguration_story",selections:[{alias:null,args:null,kind:"ScalarField",name:"contentIds",storageKey:null},{alias:"storyId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"objects",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"236x")'}],type:"Pin",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyType",storageKey:null},{alias:"storyTitle",args:null,concreteType:"StoryText",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"format",storageKey:null}],storageKey:null}],type:"Story",abstractKey:null};t.hash="4f72dbffaa49f23b505ed8ef2f099682",e.exports=t},551542:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupRelatedModule_pin",selections:[{args:null,kind:"FragmentSpread",name:"CloseupRelatedModuleOneTapConfiguration_pin"}],type:"Pin",abstractKey:null};t.hash="535b0dce979f4e368b354c1d7db63f73",e.exports=t},223884:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupRelatedModulesContainer_pin",selections:[{args:null,kind:"FragmentSpread",name:"CloseupRelatedPins_pin"},{args:null,kind:"FragmentSpread",name:"CloseupRelatedModule_pin"}],type:"Pin",abstractKey:null};t.hash="8b3eeb9b4671e020ac715d9513179386",e.exports=t},519155:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupRelatedPins_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:t,storageKey:null}],type:"Pin",abstractKey:null};i.hash="ae94444428b28d887ae5f58d77fc52c7",e.exports=i},990354:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupRepinPage_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null}],type:"Pin",abstractKey:null};t.hash="60ba8f292ef82335c3d4cbce50f362d8",e.exports=t},781293:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupSavedAttribution_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"BoardSection",kind:"LinkedField",name:"section",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="62fd54709d3c18c78af173903ab765f1",e.exports=t},560728:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CloseupTitle_pin",selections:[t={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[t],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoNoindexReason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoTitle",storageKey:null}],type:"Pin",abstractKey:null};i.hash="e77b42ec174b43e9b7604897d7df5144",e.exports=i},90838:e=>{"use strict";var t,i,n=(i=[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CommentThreadContainer_pin",selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commentCount",storageKey:null},{alias:null,args:null,concreteType:"AggregatedDidItData",kind:"LinkedField",name:"didItData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imagesCount",storageKey:null}],storageKey:null},t],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"doneByMe",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commentsDisabled",storageKey:null},t,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null});n.hash="6e4bec581cece19361386d6124ddde90",e.exports=n},348853:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ContextMenuClickthroughLogging_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:t,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:t,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{args:null,kind:"FragmentSpread",name:"useGetStringifiedCommerceAuxData_pin"}],type:"Pin",abstractKey:null};i.hash="91958ad6d73597b90dd099ea462eb40e",e.exports=i},56354:e=>{"use strict";var t,i,n,l,a,r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CreatorCard_pin",selections:[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"promotedIsLeadAd",storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"templateType",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adMatchReason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"doneByMe",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"imageThumbnailUrl",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[n],storageKey:'images(spec:"236x")'},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null},t,l={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[l,a],storageKey:null},{alias:null,args:null,concreteType:"PinRecommendationReason",kind:"LinkedField",name:"recommendationReason",plural:!1,selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[t,i,n],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reasonId",storageKey:null},{alias:null,args:null,concreteType:"PinThroughProperties",kind:"LinkedField",name:"throughProperties",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"data",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Sponsorship",kind:"LinkedField",name:"sponsorship",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"creator",plural:!1,selections:[{alias:"creatorId",args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sponsor",plural:!1,selections:[{alias:"sponsorId",args:null,kind:"ScalarField",name:"id",storageKey:null},l,a],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"Interest",kind:"LinkedField",name:"sourceInterest",plural:!1,selections:[t,i,{alias:null,args:null,kind:"ScalarField",name:"urlName",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useCreatorRecsPrevStateCloseup_pin"}],type:"Pin",abstractKey:null};r.hash="9ba055c99fc5d604d94bba7b4d9d79af",e.exports=r},398301:e=>{"use strict";var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CyclingInterestRepFragment_interest",selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"backgroundColor",storageKey:null},{alias:null,args:t=[{kind:"Literal",name:"spec",value:"400x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"cyclingImages",plural:!0,selections:i=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'cyclingImages(spec:"400x")'},{alias:null,args:t,concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"400x")'}],type:"Interest",abstractKey:null};n.hash="222069ef21932a5a820528ebe3d8ee6b",e.exports=n},639920:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DebugSignalsFeedback_pin",selections:[{alias:null,args:null,concreteType:"SignalDecisionDict",kind:"LinkedField",name:"debAds",plural:!0,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"backgroundColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"iconUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"signalId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"signalMessage",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SignalDecisionDict",kind:"LinkedField",name:"debContentQuality",plural:!0,selections:t,storageKey:null},{alias:null,args:null,concreteType:"SignalDecisionDict",kind:"LinkedField",name:"debInclusiveProduct",plural:!0,selections:t,storageKey:null},{alias:null,args:null,concreteType:"SignalDecisionDict",kind:"LinkedField",name:"debShopping",plural:!0,selections:t,storageKey:null},{alias:null,args:null,concreteType:"SignalDecisionDict",kind:"LinkedField",name:"debTrustAndSafety",plural:!0,selections:t,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],type:"Pin",abstractKey:null};i.hash="06530ceab8fc1bb7b5d868c8ffeb2afd",e.exports=i},642637:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DefaultMetadata_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUserNote",storageKey:null},{alias:null,args:null,concreteType:"TextTag",kind:"LinkedField",name:"userMentionTags",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"objectId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tagType",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:[t],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinBasics",kind:"LinkedField",name:"basics",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinKeyValueBlock",kind:"LinkedField",name:"keyValueBlocks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"categoryType",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"templateType",storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useHandleTitleClick_pin"},{args:null,kind:"FragmentSpread",name:"useIsGroupBoard_pin"},{args:null,kind:"FragmentSpread",name:"useIsBoardOwnerOrCollaborator_pin"},{args:null,kind:"FragmentSpread",name:"ContextMenuClickthroughLogging_pin"},{args:null,kind:"FragmentSpread",name:"TitleDesktop_pin"},{args:null,kind:"FragmentSpread",name:"PartnerModule_pin"},{args:null,kind:"FragmentSpread",name:"SavedInfo_pin"}],type:"Pin",abstractKey:null};i.hash="458ab53d4f5c5196856e3da1b1cfda0f",e.exports=i},566416:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DeprecatedCarousel_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinCarouselData_pin"}],type:"Pin",abstractKey:null};t.hash="af2a292b990c2655414c7944d61296a1",e.exports=t},132881:e=>{"use strict";var t,i,n,l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DeprecatedDescription_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null},{alias:null,args:null,concreteType:"PinCarouselSlot",kind:"LinkedField",name:"carouselSlots",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"details",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupDescription",storageKey:null},{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"authorName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authorUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ccUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"providerName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtype",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"MakeCardTutorialMetadata",kind:"LinkedField",name:"tutorial",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:[t,i,{alias:null,args:null,concreteType:"PersonMetadata",kind:"LinkedField",name:"authors",plural:!0,selections:[t],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"datePublished",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[t,{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"bestRating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,concreteType:"ParsedIngredientMetadata",kind:"LinkedField",name:"ingredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},t],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CookTimes",kind:"LinkedField",name:"cookTimes",plural:!1,selections:[{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"cook",plural:!1,selections:n=[{alias:null,args:null,kind:"ScalarField",name:"d",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"h",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"m",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"s",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"prep",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"total",plural:!1,selections:n,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"diets",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"summary",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};l.hash="e9dd4317671a8ec1716536b8ac1277a1",e.exports=l},602375:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DeprecatedMaybeLinkAndDescription_pin",selections:[{args:null,kind:"FragmentSpread",name:"LinkModule_pin"},{args:null,kind:"FragmentSpread",name:"DeprecatedDescription_pin"}],type:"Pin",abstractKey:null};t.hash="5cd80b7ff50a0b96caa0416fa0d3445b",e.exports=t},911824:e=>{"use strict";var t,i,n,l=(t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],n=[i={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"Description_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:t,storageKey:null},i,{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"MakeCardTutorialMetadata",kind:"LinkedField",name:"tutorial",plural:!1,selections:n,storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"CardSourceDescriptionText_pin"}],type:"Pin",abstractKey:null});l.hash="28ab0b1e7aa7707dbaca4eab96280169",e.exports=l},369092:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DomainLinkButtonWrapper_pin",selections:[{args:null,kind:"FragmentSpread",name:"DomainLinkButton_pin"}],type:"Pin",abstractKey:null};t.hash="c8d5b83c286941419f10e0533416df21",e.exports=t},499410:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DomainLinkButton_pin",selections:[{args:null,kind:"FragmentSpread",name:"ContextMenuClickthroughLogging_pin"}],type:"Pin",abstractKey:null};t.hash="08b89bb2190b936e38e11d4ce341058f",e.exports=t},84928:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FollowButton_pin",selections:[{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null}],type:"Pin",abstractKey:null};i.hash="cabaa35ed7d59dee006897bf3ef32e3d",e.exports=i},612587:e=>{"use strict";var t,i={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};i.hash="4bee3a400f6e868da4c768b56562f0ea",e.exports=i},448447:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"InterestRepFragment_interest",selections:[{alias:null,args:null,kind:"ScalarField",name:"backgroundColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:[{kind:"Literal",name:"spec",value:"400x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"400x")'},{args:null,kind:"FragmentSpread",name:"CyclingInterestRepFragment_interest"}],type:"Interest",abstractKey:null};t.hash="5bac0bc8d6be0173acb361670e952a71",e.exports=t},883597:e=>{"use strict";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},607093:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LeadGenContainer_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"promotedIsLeadAd",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adDestinationUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,concreteType:"PromotedLeadForm",kind:"LinkedField",name:"promotedLeadForm",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"leadFormId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinPromotionId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"completionMessage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"disclosureLanguage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacyPolicyLink",storageKey:null},{alias:null,args:null,concreteType:"LeadFormPolicyLink",kind:"LinkedField",name:"policyLinks",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"LeadFormQuestion",kind:"LinkedField",name:"questions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"questionType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"questionFieldType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"questionLabel",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"questionOptions",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",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:"isVerifiedMerchant",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="29636ac529cb464b6e5a24b868ebea1d",e.exports=t},897840:e=>{"use strict";var t,i,n,l,a,r,o,s={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LinkModule_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"advertiserId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"attributionSourceId",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"campaignId",storageKey:null},{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,concreteType:"PinCarouselSlot",kind:"LinkedField",name:"carouselSlots",plural:!0,selections:[i={alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null}],storageKey:null},i,l={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},n,{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:a=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinPromotionId",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[l],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:o=[r={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:a,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null},r],storageKey:null},{alias:null,args:null,concreteType:"MakeCardTutorialMetadata",kind:"LinkedField",name:"tutorial",plural:!1,selections:o,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null}],type:"Pin",abstractKey:null};s.hash="2be523d18cdb97a01003da320f0cb7d3",e.exports=s},891807:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MaybeClickthroughLink_pin",selections:[{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,concreteType:"PinCarouselSlot",kind:"LinkedField",name:"carouselSlots",plural:!0,selections:[t={alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null}],storageKey:null},t,{args:null,kind:"FragmentSpread",name:"LinkModule_pin"}],type:"Pin",abstractKey:null};i.hash="39a7882a66a91ae06ef6da7137136e67",e.exports=i},347806:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OfficialUserAttributionText_pin",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isVerifiedMerchant",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",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:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="17ee7538a8ba5a468f69f85d06121f1d",e.exports=t},521835:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OfficialUserAttribution_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followerCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OfficialUserAttributionText_pin"},{args:null,kind:"FragmentSpread",name:"FollowButton_pin"}],type:"Pin",abstractKey:null};t.hash="e9f1e0adefbc64e46ae0d9f836929d13",e.exports=t},30755:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinFeaturedInArticleCard_pin",selections:[{alias:null,args:null,concreteType:"TodayArticleWithPath",kind:"LinkedField",name:"relatedArticle",plural:!1,selections:[{alias:"_id",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mainImageUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"urlPath",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="a7aa8ca2a9aab89cbe065401dfa9e30d",e.exports=t},394384:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRecipeRating_pin",selections:[{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"diets",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayCookTime",storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"serves",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"bestRating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="0cd4ab994109a00e8277b7cf95fc202d",e.exports=t},189333:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRecipe_pin",selections:[{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"474x")'},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"diets",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayCookTime",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,concreteType:"ParsedIngredientMetadata",kind:"LinkedField",name:"ingredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},t],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"summary",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="0399d1e5d3138c8784dabc45eac4492b",e.exports=i},319430:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinnerSavedRepWithFavorites_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"favoriteUserCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"favoritedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"firstName",storageKey:null},{args:null,kind:"FragmentSpread",name:"ActivityAvatar_user"}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="8062eef6d3bbedeba6bbecf751e919f8",e.exports=t},329933:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinnerSavedRep_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{args:null,kind:"FragmentSpread",name:"ActivityAvatar_user"}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="92a3717152dce37e8b80c4956334c4be",e.exports=t},57174:e=>{"use strict";var t,i,n=(i=[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductCommentsAccordion_pin",selections:[t,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"commentCount",storageKey:null},{alias:null,args:null,concreteType:"AggregatedDidItData",kind:"LinkedField",name:"didItData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imagesCount",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commentsDisabled",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:i,storageKey:null}],type:"Pin",abstractKey:null});n.hash="7b93dc8732e3dc9764f0322a05c18386",e.exports=n},319461:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductDescriptionDropdown_pin",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"domainUrl",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{args:null,kind:"FragmentSpread",name:"useStructuredDescriptionFragment_pin"}],type:"Pin",abstractKey:null};t.hash="e49c269bff73cba5691f5113b6f00759",e.exports=t},998480:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductDetailPageRelatedModule_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null}],type:"Pin",abstractKey:null};t.hash="cce8a8d5ad05c8e6c1137bf7c8845c2a",e.exports=t},272882:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductDetailPageRelatedModules_pin",selections:[{args:null,kind:"FragmentSpread",name:"ProductDetailPageRelatedPins_pin"},{args:null,kind:"FragmentSpread",name:"ProductDetailPageRelatedModule_pin"}],type:"Pin",abstractKey:null};t.hash="7aed377f365708b0fcaeff994b737233",e.exports=t},599891:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductDetailPageRelatedPins_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:t,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:t,storageKey:null}],type:"Pin",abstractKey:null};i.hash="bf457755a01d1f31fd242e966ff3d6a3",e.exports=i},498006:e=>{"use strict";var t,i,n,l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductDetails_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingCount",storageKey:null}],storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,concreteType:"Brand",kind:"LinkedField",name:"brand",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"userId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isMerchant",storageKey:null}],storageKey:null},i,n={alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"inStock",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"standardPrice",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ShippingInfo",kind:"LinkedField",name:"shippingInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"freeShippingPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"freeShippingValue",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[i,n],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"closeupAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"domainUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},t,{args:null,kind:"FragmentSpread",name:"useStructuredDescriptionFragment_pin"},{args:null,kind:"FragmentSpread",name:"ProductPrice_pin"},{args:null,kind:"FragmentSpread",name:"ProductReviews_pin"},{args:null,kind:"FragmentSpread",name:"CloseupTitle_pin"},{args:null,kind:"FragmentSpread",name:"OfficialUserAttributionText_pin"}],type:"Pin",abstractKey:null};l.hash="8da55c30ecd63040c01f96b3ca18ce77",e.exports=l},82639:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductHeading_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"advertiserId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"attributionSourceId",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"campaignId",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinPromotionId",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[t],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{args:null,kind:"FragmentSpread",name:"ContextMenuClickthroughLogging_pin"}],type:"Pin",abstractKey:null};i.hash="20bd5f77ed00d817dd05c61ec8903627",e.exports=i},346154:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductReviewsCollapsible_pin",selections:[{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],type:"Pin",abstractKey:null};t.hash="a663d52f0626cc8887103d9e1a8a78c2",e.exports=t},987557:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductReviewsModal_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="a942edb09f07e93186cbbfed0b8031a7",e.exports=t},762183:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductReviewsPreview_pin",selections:[{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="25e031a9439a0eef8418850148f49a45",e.exports=t},460930:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductReviews_pin",selections:[{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"ProductReviewsCollapsible_pin"},{args:null,kind:"FragmentSpread",name:"ProductReviewsPreview_pin"},{args:null,kind:"FragmentSpread",name:"ProductReviewsModal_pin"}],type:"Pin",abstractKey:null};t.hash="c2f4c93600298edcacdd3b6d3a62ab79",e.exports=t},172335:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"RepinAddSection_pin",selections:[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="b3ec14d29962e56f80dd52e7e6d7a6d9",e.exports=i},977297:e=>{"use strict";var t,i,n,l,a,r={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"pinId"}],kind:"Fragment",metadata:null,name:"RepinBoardPickerQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"pin",variableName:"pinId"}],concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[l={alias:null,args:null,concreteType:"BoardTitleSuggestions",kind:"LinkedField",name:"boardTitleSuggestions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],storageKey:null}],type:"V3GetPin",abstractKey:null},a={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"RepinBoardPickerQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"V3GetPin",abstractKey:null},a],storageKey:null}]},params:{id:"912911faa6d93292fbdd97db8c82e6d46db1e11fe517ace49dd4ea04bbbbfa76",metadata:{},name:"RepinBoardPickerQuery",operationKind:"query",text:null}};r.hash="2deee1270776771025d6d29bf4e91acf",e.exports=r,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(r)},893831:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"RepinCreateBoardButton_pin",selections:[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[t],storageKey:null}],type:"Pin",abstractKey:null};i.hash="1612c2df94f42990b3d4f6ccede72a70",e.exports=i},592657:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"RepinSectionPicker_pin",selections:[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="0588c16f43d378c21df320420e52c9eb",e.exports=i},895292:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SavedInfo_pin",selections:[{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null},{alias:null,args:null,concreteType:"PinCarouselSlot",kind:"LinkedField",name:"carouselSlots",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"details",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isRepin",storageKey:null},{args:null,kind:"FragmentSpread",name:"PinnerSavedRepWithFavorites_pin"},{args:null,kind:"FragmentSpread",name:"PinnerSavedRep_pin"}],type:"Pin",abstractKey:null};t.hash="4de535e98e005c309ad3665868be32ce",e.exports=t},267078:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SavedToText_pin",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAdsOnlyProfile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adsOnlyProfileSite",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"BoardSection",kind:"LinkedField",name:"section",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="726966a5dc7cf7fa52c9cdb9ab829535",e.exports=t},583780:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SeeMoreButton_pin",selections:[{args:null,kind:"FragmentSpread",name:"VaseSection_pin"}],type:"Pin",abstractKey:null};t.hash="8d0233fe1acbc77ec2b5a1754e0a6e36",e.exports=t},828573:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ShopButton_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"attributionSourceId",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"campaignId",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinPromotionId",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[t],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"advertiserId",storageKey:null},{args:null,kind:"FragmentSpread",name:"ContextMenuClickthroughLogging_pin"}],type:"Pin",abstractKey:null};i.hash="df0a097a90a64ae62aef70983add61fc",e.exports=i},286286:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ShoppingModule_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{args:null,kind:"FragmentSpread",name:"useGetStelaUrlWithLargestStelaObject_pin"}],type:"Pin",abstractKey:null};t.hash="8f5a1016117d8ba33bcd13e6842ad7f2",e.exports=t},137937:e=>{"use strict";var t,i,n,l,a,r,o,s={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StatusPinCloseup_pin",selections:[{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:i=[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"thirdPartyPinOwner",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:i,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isNative",storageKey:null},t,{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,concreteType:"VideoStatusMessage",kind:"LinkedField",name:"videoStatusMessage",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"closeup",storageKey:null}],storageKey:null},{alias:"image564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r=[n={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"564x")'},{alias:"imageOrig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r,storageKey:'images(spec:"orig")'},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[t,{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"v720P",plural:!1,selections:o=[l,{alias:null,args:null,kind:"ScalarField",name:"thumbnail",storageKey:null},a,n,{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV4",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:o,storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"TitleDesktop_pin"},{args:null,kind:"FragmentSpread",name:"CreatorCard_pin"},{args:null,kind:"FragmentSpread",name:"DeprecatedMaybeLinkAndDescription_pin"},{args:null,kind:"FragmentSpread",name:"LinkModule_pin"}],type:"Pin",abstractKey:null};s.hash="5af1979277303dfe8a551419e5550fa6",e.exports=s},667719:e=>{"use strict";var t,i,n={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StelaOnIdeaPinPermissionQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"v3GetCurrentUserHandlerQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"data",plural:!1,selections:[t={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"ipStelaRecDisabled",storageKey:null}],type:"User",abstractKey:null}],storageKey:null}],type:"V3GetCurrentUserHandler",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"StelaOnIdeaPinPermissionQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"v3GetCurrentUserHandlerQuery",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"data",plural:!1,selections:[i,t,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Node",abstractKey:"__isNode"}],storageKey:null}],type:"V3GetCurrentUserHandler",abstractKey:null}],storageKey:null}]},params:{id:"2653a6ed13b2a48a0adbce54781b1b88b025b8bd93a112b8a0bd15da606dcbe9",metadata:{},name:"StelaOnIdeaPinPermissionQuery",operationKind:"query",text:null}};n.hash="c061d1400492f868408772f86f659738",e.exports=n,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(n)},360980:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinBlock_pin",selections:[{args:null,kind:"FragmentSpread",name:"StoryPinStickerBlockCloseup_pin"}],type:"Pin",abstractKey:null};t.hash="8bb1bb1f7bafeed0fe43bed44ef12d2a",e.exports=t},884884:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoryPinStickerBlockCloseup_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"236x")'},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="7e8d917850c8329247291df0d281a59b",e.exports=t},282167:e=>{"use strict";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},585535:e=>{"use strict";var t,i,n,l,a,r,o=(i={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},l=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"TitleDesktop_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"advertiserId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"attributionSourceId",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[t],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"campaignId",storageKey:null},{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,concreteType:"PinCarouselSlot",kind:"LinkedField",name:"carouselSlots",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},i],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null}],storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l,storageKey:'images(spec:"736x")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:l,storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinPromotionId",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[n],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:r=[a={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:r,storageKey:null},i,{alias:null,args:null,concreteType:"MakeCardTutorialMetadata",kind:"LinkedField",name:"tutorial",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinFormattedLink_pin"},{args:null,kind:"FragmentSpread",name:"usePinHasProducts_pin"}],type:"Pin",abstractKey:null});o.hash="9ac463833fbbecaad575cecb972a22e0",e.exports=o},951193:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UserRep_pin",selections:[{args:null,kind:"FragmentSpread",name:"FollowButton_pin"}],type:"Pin",abstractKey:null};t.hash="3aa915f8ddd58c7ab54f435ed3309484",e.exports=t},445418:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseAnnotations_pin",selections:[{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useAnnotationsWithLinksFragment_pin"}],type:"Pin",abstractKey:null};t.hash="594237c2ea6ccfb8bbc0e3e8c62cac9f",e.exports=t},353070:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseFullBleedModal_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="2e464db34007ea4c1c0752bf62bbb542",e.exports=t},175322:e=>{"use strict";var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseSection_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[t,i={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},i,{args:null,kind:"FragmentSpread",name:"VaseAnnotations_pin"}],type:"Pin",abstractKey:null};n.hash="dda341dce5f1fa956d1837dec35496de",e.exports=n},732993:e=>{"use strict";var t,i,n,l,a,r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VisualContext_pin",selections:[{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"v720P",plural:!1,selections:l=[{alias:null,args:null,kind:"ScalarField",name:"thumbnail",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captionsUrls",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV4",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:l,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtype",storageKey:null}],storageKey:null},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:a=[n,t,i],storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:a,storageKey:'images(spec:"736x")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:a,storageKey:'images(spec:"orig")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:a,storageKey:'images(spec:"474x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:a,storageKey:'images(spec:"236x")'}],type:"Pin",abstractKey:null};r.hash="60b57e9ec455f3763a979eb6ecd5075a",e.exports=r},273002:e=>{"use strict";var t,i,n,l,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"boardId"}],kind:"Fragment",metadata:null,name:"collab_AcceptInvite_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3AcceptBoardCollaboratorInviteMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},l={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"collab_AcceptInvite_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3AcceptBoardCollaboratorInviteMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[l],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"781c41132fefa007ebde7bcd8c49840ce1768ed6f6781fd72e3904bd35fb576f",metadata:{},name:"collab_AcceptInvite_Mutation",operationKind:"mutation",text:null}};a.hash="e0cd549ce31635291bd74113393edc53",e.exports=a},624602:e=>{"use strict";var t,i,n,l,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"boardId"},{defaultValue:null,kind:"LocalArgument",name:"userId"}],kind:"Fragment",metadata:null,name:"collab_ApproveInvite_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"user",variableName:"userId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3ApproveBoardCollaboratorInviteMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},l={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"collab_ApproveInvite_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3ApproveBoardCollaboratorInviteMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[l],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"472a584df4a467181ed32ec33d235ef2f2e6d53fdb4c7a43d11156b6d51dcd50",metadata:{},name:"collab_ApproveInvite_Mutation",operationKind:"mutation",text:null}};a.hash="7c32abc79b81b52b7c0d6582f9278b22",e.exports=a},572163:e=>{"use strict";var t,i,n,l,a,r,o={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"ban"},i={defaultValue:null,kind:"LocalArgument",name:"boardId"},n={defaultValue:null,kind:"LocalArgument",name:"userId"}],kind:"Fragment",metadata:null,name:"collab_DeclineOrDeleteBoardCollaboratorInvite_Mutation",selections:[{alias:null,args:l=[{fields:[{kind:"Variable",name:"ban",variableName:"ban"},{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"user",variableName:"userId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3DeclineOrDeleteBoardCollaboratorInviteMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,n,t],kind:"Operation",name:"collab_DeclineOrDeleteBoardCollaboratorInvite_Mutation",selections:[{alias:null,args:l,concreteType:null,kind:"LinkedField",name:"v3DeclineOrDeleteBoardCollaboratorInviteMutation",plural:!1,selections:[a,{kind:"InlineFragment",selections:[r],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"ff3059743c1d13d4f1c2ef07e10d2b29925c7b330db4103e55e9e65c380c0ce5",metadata:{},name:"collab_DeclineOrDeleteBoardCollaboratorInvite_Mutation",operationKind:"mutation",text:null}};o.hash="a3cb87deead5a06468a3b46652f22daa",e.exports=o},34035:e=>{"use strict";var t,i,n,l,a,r,o,s,d={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"board"},{defaultValue:null,kind:"LocalArgument",name:"collaboratorIds"}],kind:"Fragment",metadata:null,name:"collab_RemoveBoardCollaborators_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"board"},{kind:"Variable",name:"collaboratorIds",variableName:"collaboratorIds"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3RemoveBoardCollaboratorsMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"data",plural:!1,selections:[l={alias:null,args:null,kind:"ScalarField",name:"collaboratorCount",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"collaboratingUsers",plural:!1,selections:[{kind:"InlineFragment",selections:[n,{alias:null,args:null,concreteType:"UserCollaboratingUsersConnection",kind:"LinkedField",name:"connection",plural:!1,selections:[{alias:null,args:null,concreteType:"UserCollaboratingUsersEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"node",plural:!1,selections:[a={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"UserCollaboratingUsersConnectionContainer",abstractKey:null}],storageKey:null}],storageKey:null}],type:"V3RemoveBoardCollaborators",abstractKey:null},{kind:"InlineFragment",selections:[n,o={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"collab_RemoveBoardCollaborators_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3RemoveBoardCollaboratorsMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"data",plural:!1,selections:[l,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"collaboratingUsers",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"UserCollaboratingUsersConnection",kind:"LinkedField",name:"connection",plural:!1,selections:[{alias:null,args:null,concreteType:"UserCollaboratingUsersEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"node",plural:!1,selections:[a,r,s={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"UserCollaboratingUsersConnectionContainer",abstractKey:null}],storageKey:null},s],storageKey:null}],type:"V3RemoveBoardCollaborators",abstractKey:null},{kind:"InlineFragment",selections:[o],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"83dd1206102cffdd460f8c072df0ca515d27c8fcf3798423f1657afabdf467ac",metadata:{},name:"collab_RemoveBoardCollaborators_Mutation",operationKind:"mutation",text:null}};d.hash="f70efc59a3f6a73e0af36081d8552b3a",e.exports=d},925033:e=>{"use strict";var t,i,n,l,a,r,o,s,d,u,c=(t=[{defaultValue:null,kind:"LocalArgument",name:"boardId"},{defaultValue:null,kind:"LocalArgument",name:"message"}],i=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"message",variableName:"message"}],kind:"ObjectValue",name:"input"}],n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a=[l={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],r={alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},d={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null},u=[l,s={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],{fragment:{argumentDefinitions:t,kind:"Fragment",metadata:null,name:"collab_RequestToJoin_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3CreateRequestToJoinBoardMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n,{alias:null,args:null,concreteType:"CollaboratorInvite",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"invitedByUser",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"invitedUser",plural:!1,selections:a,storageKey:null},r,o,s,{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:a,storageKey:null}],storageKey:null}],type:"CollaboratorInviteResponse",abstractKey:null},{kind:"InlineFragment",selections:[n,d],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"collab_RequestToJoin_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3CreateRequestToJoinBoardMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CollaboratorInvite",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"invitedByUser",plural:!1,selections:u,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"invitedUser",plural:!1,selections:u,storageKey:null},r,o,s,{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:u,storageKey:null}],storageKey:null}],type:"CollaboratorInviteResponse",abstractKey:null},{kind:"InlineFragment",selections:[d],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"ff45f353c3246c417487b54a02f0669dbc6c45761df9567395537bf1f7875a9f",metadata:{},name:"collab_RequestToJoin_Mutation",operationKind:"mutation",text:null}});c.hash="38716861de712c68561883b0d58d8bc6",e.exports=c},320926:e=>{"use strict";var t,i,n,l,a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"boardId"},{defaultValue:null,kind:"LocalArgument",name:"emails"},{defaultValue:null,kind:"LocalArgument",name:"message"}],kind:"Fragment",metadata:null,name:"collab_emails_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"emails",variableName:"emails"},{kind:"Variable",name:"message",variableName:"message"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorEmailMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},l={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"collab_emails_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorEmailMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[l],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"8900846b1564b60aeba0d82306e017e0f19e812705f67e3814980c045de36fca",metadata:{},name:"collab_emails_Mutation",operationKind:"mutation",text:null}};a.hash="f346c00717b8f4893552fb8053a1ff5b",e.exports=a},29260:e=>{"use strict";var t,i,n,l,a,r,o={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"boardId"},i={defaultValue:null,kind:"LocalArgument",name:"collaboratorIds"},n={defaultValue:null,kind:"LocalArgument",name:"message"}],kind:"Fragment",metadata:null,name:"collab_users_Mutation",selections:[{alias:null,args:l=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"collaboratorIds",variableName:"collaboratorIds"},{kind:"Variable",name:"message",variableName:"message"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorsMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,t,n],kind:"Operation",name:"collab_users_Mutation",selections:[{alias:null,args:l,concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorsMutation",plural:!1,selections:[a,{kind:"InlineFragment",selections:[r],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"42ceaa3423a096a27613e5738f83aaadcee449c55d4dd03624d2f08a6b6dca04",metadata:{},name:"collab_users_Mutation",operationKind:"mutation",text:null}};o.hash="f4d87e820bd0fba4aa4c8fdaeed6231e",e.exports=o},434444:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useAnnotationsWithLinksFragment_pin",selections:[{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,concreteType:"AnnotationsWithLinks",kind:"LinkedField",name:"annotationsWithLinksArray",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="35075da6e1f4b526ac4314727015c44d",e.exports=t},169310:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBuildCloseupImageOverlayProps_pin",selections:[{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"orig")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"236x")'},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"access",storageKey:null},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isShopTheLook",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null}],type:"Pin",abstractKey:null};i.hash="811469a9a8a3e71ca52c5aa271c3248d",e.exports=i},635272:e=>{"use strict";var t,i,n={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useCountriesDropdownQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"v3GetCountriesListQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[t={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i={alias:null,args:null,concreteType:"CountryModel",kind:"LinkedField",name:"data",plural:!0,selections:[{alias:"key",args:null,kind:"ScalarField",name:"countryCode",storageKey:null},{alias:"name",args:null,kind:"ScalarField",name:"countryName",storageKey:null}],storageKey:null}],type:"V3GetCountriesList",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"useCountriesDropdownQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"v3GetCountriesListQuery",plural:!1,selections:[t,{kind:"InlineFragment",selections:[i],type:"V3GetCountriesList",abstractKey:null}],storageKey:null}]},params:{id:"4414c8c73f9ddd04d554cbd197fa0897831506786c6c9444566c6f9f1e7bd956",metadata:{},name:"useCountriesDropdownQuery",operationKind:"query",text:null}};n.hash="14c2938e5956122b721c8527aca8049e",e.exports=n,function(e){if("query"===e.params.operationKind){if(window.__pwsCacheRelayConcreteRequest)window.__pwsCacheRelayConcreteRequest(e);else{let t=[e.params.name,e.params.id].join(":");window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__=window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__||{},window.__PWS_RELAY_CONCRETE_REQUEST_CACHE__[t]=e}}}(n)},172767:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useCreatorRecsPrevStateCloseup_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"promotedIsLeadAd",storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"showSuggestedCreatorRecs",storageKey:null}]}],type:"Pin",abstractKey:null};t.hash="a1f87ab2b8198cdc7fd8fc3cdaa872f0",e.exports=t},150148:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetFeedbackType_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinRecommendationReason",kind:"LinkedField",name:"recommendationReason",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"reason",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:t,storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="09058e2c22f768d113516b357e48e9cd",e.exports=i},544819:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetMainPinImage_pin",selections:[{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"orig")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"236x")'}],type:"Pin",abstractKey:null};i.hash="3ecf70d7e25decf88c7b8bafd5993b03",e.exports=i},469656:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetNormalizedPinImage_pin",selections:[{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"orig")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"236x")'}],type:"Pin",abstractKey:null};i.hash="3d7a6d04f923d00acfb2887f852aea16",e.exports=i},317071:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetStelaUrlWithLargestStelaObject_pin",selections:[{alias:null,args:null,concreteType:"StelaVisualObject",kind:"LinkedField",name:"visualObjects",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"isStela",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"h",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"w",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"x",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"y",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{args:null,kind:"FragmentSpread",name:"useGetNormalizedPinImage_pin"}],type:"Pin",abstractKey:null};t.hash="93be9368e70d087bc7ea24af201598f9",e.exports=t},124495:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetStringifiedCommerceAuxData_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdpPlus",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,concreteType:"Brand",kind:"LinkedField",name:"brand",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"signature",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ShippingInfo",kind:"LinkedField",name:"shippingInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"freeShippingPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"freeShippingValue",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ProductVariantSet",kind:"LinkedField",name:"variantSet",plural:!1,selections:[{alias:null,args:null,concreteType:"DimensionMetadata",kind:"LinkedField",name:"dimensionMetadata",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"values",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ProductVariant",kind:"LinkedField",name:"variants",plural:!0,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"itemId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"itemSetId",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isShopTheLook",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:t,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null}],type:"Pin",abstractKey:null};i.hash="75e0e2c4ba4bc9bcf9a593eacb51e671",e.exports=i},261679:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useHandleBackButtonClick_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"promotedIsLeadAd",storageKey:null},{alias:null,args:null,concreteType:"PromotedLeadForm",kind:"LinkedField",name:"promotedLeadForm",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"leadId",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:t,storageKey:null},{args:null,kind:"FragmentSpread",name:"useGetStringifiedCommerceAuxData_pin"}],type:"Pin",abstractKey:null};i.hash="efee9cd30f69b524ed9920746ed65ceb",e.exports=i},924080:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useHandleTitleClick_pin",selections:[{args:null,kind:"FragmentSpread",name:"useGetStringifiedCommerceAuxData_pin"}],type:"Pin",abstractKey:null};t.hash="2eb6a7a4cf67ae04de84ac1b2b5e2715",e.exports=t},299879:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useIsBoardOwnerOrCollaborator_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"collaboratedByMe",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"owner",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null}],type:"Pin",abstractKey:null};i.hash="120c47eff2cf4911de716b514608718f",e.exports=i},174426:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useIsGroupBoard_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"collaboratedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isCollaborative",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"owner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="72582aa208f6837fe96ba824d0271616",e.exports=t},270643:e=>{"use strict";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},669961:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useMediaContainer_pin",selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isShopTheLook",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"altText",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"autoAltText",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForRelatedProducts",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isHidden",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUnsafe",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:t=[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"StelaVisualObject",kind:"LinkedField",name:"visualObjects",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"isStela",storageKey:null}],storageKey:null},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"method",storageKey:null}],type:"Pin",abstractKey:null};i.hash="c13dec96eea8a9871be973ff4770d70b",e.exports=i},939234:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinFormattedLink_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"method",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinHasProducts_pin"}],type:"Pin",abstractKey:null};t.hash="1380cc65fb1c2132004a18dee261602e",e.exports=t},927894:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinHasProducts_pin",selections:[{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="e1f413e0ba2f9031ea605d85baa14a4b",e.exports=t},982182:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useReactionCountsFragment_pin",selections:[{alias:null,args:null,concreteType:"ReactionCountModel",kind:"LinkedField",name:"reactionCountsData",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"reactionType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reactionCount",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};t.hash="11d828252f89045bc37e6aa5eb3fbea6",e.exports=t},721538:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useStructuredDescriptionFragment_pin",selections:[{alias:null,args:null,concreteType:"FormattedCloseupDescription",kind:"LinkedField",name:"formattedCloseupDescription",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"components",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:"stringContent",args:null,kind:"ScalarField",name:"content",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],type:"DescriptionString",abstractKey:null},{kind:"InlineFragment",selections:[t,{alias:"pointsContent",args:null,kind:"ScalarField",name:"content",storageKey:null}],type:"DescriptionPoints",abstractKey:null},{kind:"InlineFragment",selections:[t,{alias:"specsContent",args:null,concreteType:"DescriptionSpecDetail",kind:"LinkedField",name:"content",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null}],type:"DescriptionSpecs",abstractKey:null},{kind:"InlineFragment",selections:[t,{alias:"tableContent",args:null,kind:"ScalarField",name:"content",storageKey:null}],type:"DescriptionTable",abstractKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="be1864520883fcc12e69e99c1323d274",e.exports=i},106991:(e,t,i)=>{(window.__PWS_LOADED_HANDLERS__=window.__PWS_LOADED_HANDLERS__||{})["www/pin/[id]/repin"]=function(){return i(124159).Z}},994608:(e,t,i)=>{"use strict";i.d(t,{CA:()=>l,Gv:()=>n,k5:()=>a});let n=({orbacSubjectId:e,pinIsRepin:t,pinPinnerId:i,viewerId:n,viewerIsPartner:l})=>!t&&!!l&&[n,e].includes(i),l=(e,t)=>!!e&&!e.insufficient_data_response&&!!e.results&&e.results.length>0&&t.checkExperiment("trends_personalization_features").anyEnabled,a=(e,t)=>{if(!e)return e;let i=[...e].filter(e=>{var t;return!!(null!==(t=e.mom_change)&&void 0!==t&&t.roundedPercentChange)&&e.mom_change.roundedPercentChange>0});return i.length<=t?i:Array(t).fill(1).map(()=>{let e=Math.floor(Math.random()*i.length);return i.splice(e,1)[0]})}},832654:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(349700);function l({altText:e,autoAltText:t,i18n:i,checkExperiment:l}){let a=e?(0,n.nk)(i._('This contains: {{ altText }}', 'web.altText', 'Alt text input by a human'),{altText:e}).join(""):"",r=t?(0,n.nk)(i._('This may contain: {{ autoAltText }}', 'web.altText', 'Alt text generated by a computer'),{autoAltText:t}).join(""):"";if(l){let e=t&&l("web_mk_alt_text",{dangerouslySkipActivation:!0}).group;if(["control","enabled"].includes(e)&&l("web_mk_alt_text"),["enabled","employees"].includes(e))return r||"";if(["control","pwt_off","pwt_on"].includes(e))return a||""}return a||r||""}},105265:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d}),i(167912);var n,l=i(883119),a=i(356997),r=i(916117),o=i(785893);let s=void 0!==n?n:n=i(353499);function d({userKey:e,size:t="md",hasOutline:i}){var n;let{data:d}=(0,r.u)(s,e);if(!d)return null;let u=d.firstName,c=d.imageMediumUrl,p=null!==(n=d.username)&&void 0!==n?n:"";return(0,o.jsx)(l.Tg,{rounding:"circle",href:`/${p}/`,children:(0,o.jsx)(a.qE,{size:t,src:null!=c?c:"",name:u||p||"",outline:i})})}},182750:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(667294),l=i(968337),a=i.n(l),r=i(610248),o=i(883119),s=i(595371),d=i(954931),u=i(89254),c=i(785893);let p=new(a());p.tlds(r),p.add("#",{validate(e,t,i){let n=e.slice(t);return(i.re.hashtag||(i.re.hashtag=RegExp("^([a-zA-Z0-9_]){1,15}(?!_)(?=$|"+i.re.src_ZPCc+")")),i.re.hashtag.test(n))?(!(t>=2)||"#"!==n[t-2])&&n.match(i.re.hashtag)[0].length:0},normalize(e){e.url=`https://pinterest.com/search/pins/?q=${encodeURIComponent(e.text)}&rs=${s.i.HASHTAG_PINREP}`}});let h=e=>p.match(e),_=({decoratedHref:e,decoratedText:t,index:i,isTrusted:n})=>(0,c.jsx)(o.rU,{href:e,onClick:({event:e})=>{e.stopPropagation()},target:n?null:"blank",children:t},i);class m extends n.PureComponent{parseString(e){if(""===e)return e;let t=h(e);if(!t)return e;let i=[],n=0;return t.forEach((t,l)=>{t.index>n&&i.push(e.substring(n,t.index));let a=t.url,r=(0,d.Z)(t.url)&&!t.url.match(/help.pinterest/g);if(r){let e=(0,u.Z)(t.url);a=a.replace(e.origin,"")}let{text:o}=t,s=(0,c.jsx)(_,{decoratedHref:a,decoratedText:o,index:l,isTrusted:r});i.push(s),n=t.lastIndex}),e.length>n&&i.push(e.substring(n)),1===i.length?i[0]:i}parse(e,t=0){return"string"==typeof e?this.parseString(e):(0,n.isValidElement)(e)&&"a"!==e.type&&"button"!==e.type?(0,n.cloneElement)(e,{key:t},this.parse(e.props.children)):Array.isArray(e)?e.map((e,t)=>this.parse(e,t)):e}render(){return(0,c.jsx)("span",{children:this.parse(this.props.children)})}}},986644:(e,t,i)=>{"use strict";i.d(t,{A7:()=>l,YD:()=>a,lr:()=>n});let n=170,l=(e,t,i)=>{let n=new Date(e),l=new Date,a=l.getTime()-n.getTime(),r=Math.floor(a/1e3);return r<60?t._('now', 'timestamp for a comment or post that was created within the last minute', 'timestamp for a comment or post that was created within the last minute'):i(e,!0)},a=e=>{let t=e.first_name||e.full_name||e.username;return t&&t.length>60?t.substring(0,60).trim().concat("..."):t}},283855:(e,t,i)=>{"use strict";i.d(t,{K:()=>r,Q:()=>a});var n=i(667294);let l=(0,n.createContext)(null),a=l.Provider;function r(){let e=(0,n.useContext)(l);return null==e?void 0:e.featuredCommentId}},964569:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(702664),l=i(214494),a=i(139405),r=i(664569),o=i(600147),s=i(956800),d=i(274415),u=i(492583);let c={[r.o.aggregatedComment]:"AggregatedCommentReplyResource",[r.o.pin]:"AggregatedCommentResource",[r.o.didIt]:"DidItCommentsResource"};function p(){let e=(0,n.useDispatch)(),{aggregatedCommentCreated:t,updateCommentCount:i}=(0,a.nf)();return async({force:n=!0,fromUnifiedComment:a,objectId:r,objectType:p,orbacSubjectId:h,pinId:_,replyToCommentId:m,tags:g,text:y})=>{let v=c[p],f={force:n,objectId:r,pinId:_,tags:g,text:y,replyToCommentId:m,...h?{orbacSubjectId:h}:{}},x=u.Z.AGGREGATED_COMMENTS;a&&(x="pin"===p?u.Z.UNIFIED_COMMENTS:u.Z.AGGREGATED_COMMENT_REPLIES);let b=await l.Z.create(v,f).callCreate({showError:!1}),P=b.resource_response.data;return t(r,P),e((0,s.vX)({feedType:x,feedId:r,itemIds:[P.id],itemType:P.type,prepend:!0})),"pin"===p&&_?e((0,d.R)(_,1)):"aggregatedComment"===p?i(r,1):e((0,o.L8)(r,1)),P.id||b}}},28754:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(702664),l=i(214494),a=i(541776),r=i(139405),o=i(600147),s=i(956800),d=i(274415),u=i(492583);function c(){let e=(0,n.useDispatch)(),{aggregatedCommentDeleted:t,updateCommentCount:i}=(0,r.nf)();return async({aggregatedCommentId:n,aggregatedPinId:r,feedType:c,orbacSubjectId:p,parentId:h,type:_,updateParentCommentCount:m,pinId:g})=>{await l.Z.create("AggregatedCommentResource",{commentId:n,...p?{orbacSubjectId:p}:{}}).callDelete({showError:!1}),h&&(e((0,s.EX)({feedId:r||h,feedType:c||u.Z.AGGREGATED_COMMENTS,itemIds:[n],itemType:"aggregatedcomment"})),t(h,n),m&&(_||0===_)&&(_===a.Rv.TOP&&g?e((0,d.R)(g,-1)):_===a.Rv.REPLY_TO_AGGREGATED?i(h,-1):e((0,o.L8)(h,-1))))}}},536237:(e,t,i)=>{"use strict";i.d(t,{Z:()=>U});var n,l,a=i(667294),r=i(702664);i(167912);var o=i(883119),s=i(407043),d=i(319915),u=i(701500),c=i(422578),p=i(273213);let h=function(e,t,i){let n=(0,p.B)(e);switch(n.type){case"deprecated":return t;case"graphqlRef":{let e=(0,c.useRelayEnvironment)();return t=>(0,c.commitLocalUpdate)(e,e=>i(e,t))}default:throw n.type,Error("Unexpected case")}};var _=i(916117),m=i(898781),g=i(615568),y=i(947599),v=i(19121),f=i(784590),x=i(349700),b=i(829407),P=i(356997),w=i(694379),S=i(142103),k=i(785893);let j=({creatorData:e,onTap:t,onUserFollow:i})=>{let n=(0,m.ZP)(),l=(0,v.Z)(),{explicitly_followed_by_me:a,follower_count:r=0,full_name:s,id:d,image_medium_url:u,username:c,verified_identity:p}=e||{},h=`/${c}/`;return(0,k.jsx)(o.sg,{span:4,children:(0,k.jsxs)(o.xu,{alignItems:"center",direction:"column",display:"flex",marginBottom:1,dangerouslySetInlineStyle:{__style:{padding:"0px 2px"}},children:[(0,k.jsx)(o.Tg,{href:h,onTap:()=>t(d),children:(0,k.jsxs)(o.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,k.jsx)(o.xu,{width:60,height:60,children:(0,k.jsx)(P.qE,{name:null!=s?s:"",size:"fit",src:null!=u?u:"",verified:!!(null!=p&&p.verified)})}),(0,k.jsxs)(o.xu,{paddingY:2,marginBottom:1,children:[(0,k.jsx)(o.xu,{marginBottom:1,children:(0,k.jsx)(o.xv,{align:"center",lineClamp:1,size:"100",weight:"bold",children:s})}),(0,k.jsx)(o.xv,{align:"center",size:"100",children:(0,x.nk)(n.ngettext('{{ followerCount }} follower', '{{ followerCount }} followers', r, 'suggestedCreatorRep.creator.followerCount', 'the number of followers the user has'),{followerCount:(0,k.jsx)(w.Z,{shortform:!0,shortformMaximumFractionDigits:1,value:r},r)})})]})]})}),(0,k.jsx)(S.Z,{fullName:s,id:d,imageUrl:u,isOwnProfile:l.isAuth&&l.id===d,profileUrl:`/${c}/`,userFollowed:a,onUserFollow:e=>i({userIsNowFollowing:e,creatorId:d}),isSecondaryButton:!0,size:"sm",shouldStopEventPropagation:!0,viewType:3,viewParameter:156})]})})},A=({creatorRecs:e,fullName:t,pinId:i,viewParameter:n,viewType:l})=>{let{logContextEvent:a}=(0,s.v)(),r=(0,m.ZP)();(0,b.Z)(()=>{a({event_type:13,component:13891,view_parameter:n,view_type:l,aux_data:{...i?{pin_id:i}:{}}})});let d=e=>{a({event_type:101,component:13891,view_parameter:n,view_type:l,object_id_str:e,aux_data:{...i?{pin_id:i}:{}}})},u=({userIsNowFollowing:e,creatorId:t})=>{e?a({event_type:45,component:13891,object_id_str:t,view_parameter:n,view_type:l,aux_data:{...i?{pin_id:i}:{}}}):a({event_type:46,component:13891,object_id_str:t,view_parameter:n,view_type:l,aux_data:{...i?{pin_id:i}:{}}})};return(0,k.jsx)(o.xu,{minWidth:432,paddingY:4,children:(0,k.jsxs)(o.xu,{borderStyle:"shadow",paddingX:5,paddingY:4,rounding:4,children:[t&&(0,k.jsx)(o.X6,{align:"center",size:"300",children:(0,x.nk)(r._('More like {{creatorName}}', 'suggestedCreatorRecs.title', 'Users like the one just followed. creatorName: the creator\'s name'),{creatorName:t})}),(0,k.jsx)(o.xu,{display:"flex",justifyContent:"between",marginTop:4,width:"100%",children:e.map(e=>(0,k.jsx)(j,{creatorData:e.user,onTap:d,onUserFollow:u},e.user_id))})]})})},C=3,D=["creatorrecommendationitem.user_id","creatorrecommendationitem.user()","user.explicitly_followed_by_me","user.id","user.follower_count","user.full_name","user.image_medium_url","user.username","user.verified_identity"],E=({fullName:e,id:t,numCreatorsToShow:i=C,pinId:n,viewParameter:l,viewType:a})=>{let r=(0,f.Z)({name:"ApiResource",options:{url:"/v3/orientation/nux_creator_recommendations/",data:{fields:D.join(","),page_size:i,referrer:4,target_user:t}}});if(!r.isLoaded||!(r.data&&r.data.length===i))return null;let o=r.data||[];return(0,k.jsx)(A,{creatorRecs:o,fullName:e,pinId:n,viewParameter:l,viewType:a})};var I=i(357998),T=i(558068);let F=void 0!==n?n:n=i(172767),z=e=>({promotedIsLeadAd:e.promoted_is_lead_ad,richSummary:e.rich_summary&&{typeName:e.rich_summary.type_name},showSuggestedCreatorRecs:e.show_suggested_creator_recs}),R=e=>e.includes("/:username"),L=function(e){let t=function(){let{forward:e}=(0,T.Hv)(),t=e&&e.length>0&&e[0].match&&e[0].match.path?e[0].match.path:null,i=!!t&&R(t);return!!i}(),{data:i}=(0,I.Q)(F,e,{useLegacyAdapter:z});if(!t||!i)return{creatorRecsPrevState:!1};{var n;let e=!!i.promotedIsLeadAd,t=(null===(n=i.richSummary)||void 0===n?void 0:n.typeName)==="product",l=!!i&&!e&&!t&&!!i.showSuggestedCreatorRecs;return{creatorRecsPrevState:l}}};var M=i(312918),Z=i(447948);function B(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let O=void 0!==l?l:l=i(56354),N=(0,a.lazy)(()=>Promise.all([i.e(12058),i.e(5147),i.e(4819)]).then(i.bind(i,188814)));class K extends a.PureComponent{constructor(...e){super(...e),B(this,"state",{shouldShowCreatorRecs:this.props.suggestedCreatorRecsPrevState,user:this.props.officialUser}),B(this,"anchorElementRef",(0,a.createRef)()),B(this,"handleNavigateAndLog",(e,t)=>{var i,n,l,a,r,o,s,d;let{pin:u}=this.props,c=!!u.storyPinDataId;e===t?this.props.logContextEvent({event_type:101,element:13382,view_type:this.viewType,view_parameter:this.viewParameter,...c?{component:230}:Object.freeze({}),object_id_str:u.entityId,aux_data:{pin_id:u.entityId,creator_id:null===(i=u.sponsorship)||void 0===i?void 0:null===(n=i.creator)||void 0===n?void 0:n.creatorId,aop_origin:"CreatorCard",...c?{story_pin_template_type:null===(l=u.storyPinData)||void 0===l?void 0:null===(a=l.metadata)||void 0===a?void 0:a.templateType}:{}}}):this.props.logContextEvent({event_type:101,view_type:this.viewType,view_parameter:this.viewParameter,element:11619,...c?{component:230}:Object.freeze({}),object_id_str:u.entityId,aux_data:{pin_id:u.entityId,creator_id:null===(r=u.sponsorship)||void 0===r?void 0:null===(o=r.creator)||void 0===o?void 0:o.creatorId,...c?{story_pin_template_type:null===(s=u.storyPinData)||void 0===s?void 0:null===(d=s.metadata)||void 0===d?void 0:d.templateType}:{}}})}),B(this,"handleNavigateAndLogSponsorClick",()=>{var e,t,i,n;let{pin:l}=this.props,a=l.entityId,r=null===(e=l.sponsorship)||void 0===e?void 0:null===(t=e.creator)||void 0===t?void 0:t.creatorId,o=null===(i=l.sponsorship)||void 0===i?void 0:null===(n=i.sponsor)||void 0===n?void 0:n.sponsorId,s=!!l.storyPinDataId;r&&o&&this.props.logContextEvent({event_type:101,view_type:this.viewType,view_parameter:this.viewParameter,element:11619,...s?{component:230}:Object.freeze({}),object_id_str:a,aux_data:{pin_id:a,creator_id:r,sponsor_id:o}})}),B(this,"handleUserFollow",(e,t)=>{let{setShowSuggestedCreatorRecs:i,pin:{entityId:n,doneByMe:l},clientTrackingParams:a}=this.props;n.length,t?(this.props.logContextEvent({event_type:45,view_type:this.viewType,view_parameter:this.viewParameter,object_id_str:e,view_data:{isCurrentUser:l,viewObjectId:n,viewObjectIdStr:n},aux_data:{pin_id:n},clientTrackingParams:a}),this.setState({shouldShowCreatorRecs:!0}),i()):this.props.logContextEvent({event_type:46,view_type:this.viewType,view_parameter:this.viewParameter,object_id_str:e,aux_data:{pin_id:n},clientTrackingParams:a})})}static getDerivedStateFromProps(e,t){let i=e.officialUser;if(i&&i!==t.user)return{...t,user:i};let n=e.suggestedCreatorRecsPrevState;return n&&!t.shouldShowCreatorRecs?{...t,shouldShowCreatorRecs:n}:null}get viewType(){return this.props.viewType||3}get viewParameter(){return this.props.viewParameter||156}render(){var e,t,i,n,l,a,r,s,c,p,h,_,m,g;let{user:v}=this.state;if(!v)return(0,k.jsx)(o.xu,{});let{pin:f,viewerUserId:x,isORBACProfileManager:b,clientTrackingParams:P}=this.props,{full_name:w,follower_count:j,id:A,image_medium_url:C,is_verified_merchant:D,username:I}=v,T=!!(null===(e=v.verified_identity)||void 0===e?void 0:e.verified),F=!!f.promotedIsLeadAd,z=(null===(t=f.richSummary)||void 0===t?void 0:t.typeName)==="product",R=!!(!F&&!z&&this.state.shouldShowCreatorRecs),L=!!x&&x===A,Z=null!==(i=f.pinner)&&void 0!==i&&i.isAdsOnlyProfile&&f.pinner.adsOnlyProfileSite?f.pinner.adsOnlyProfileSite:`/${I}/`;return(0,k.jsx)(o.xu,{position:"relative",children:(0,k.jsxs)(o.xu,{children:[(0,k.jsxs)(o.kC,{alignItems:"center",justifyContent:"start",children:[(0,k.jsx)(o.xu,{flex:"grow",children:(0,k.jsx)(M.Z,{followerCount:j,fullName:w,imageUrl:C,hasVerifiedIdentity:T,isVerifiedMerchant:D,isPromoted:!!(f.promoter&&f.isPromoted),onNavigateClick:()=>{var e;return this.handleNavigateAndLog(Z,null===(e=f.pinner)||void 0===e?void 0:e.adsOnlyProfileSite)},onNavigateSponsorClick:this.handleNavigateAndLogSponsorClick,profileUrl:Z,sponsorName:null!==(n=null===(l=f.sponsorship)||void 0===l?void 0:null===(a=l.sponsor)||void 0===a?void 0:a.fullName)&&void 0!==n?n:"",sponsorshipStatus:null===(r=f.sponsorship)||void 0===r?void 0:r.status,sponsorUsername:null!==(s=null===(c=f.sponsorship)||void 0===c?void 0:null===(p=c.sponsor)||void 0===p?void 0:p.username)&&void 0!==s?s:"",openNewTab:Z===(null===(h=f.pinner)||void 0===h?void 0:h.adsOnlyProfileSite)})}),!b&&(f.promoter&&f.isPromoted?(0,k.jsx)(d.Z,{name:"SafeSuspense_CreatorCard_LegacyPinFeedbackButton",children:(0,k.jsx)(y.Z,{children:(0,k.jsx)(N,{ad_match_reason:f.adMatchReason,board:f.board&&{entityId:f.board.entityId,imageThumbnailUrl:f.board.imageThumbnailUrl,name:f.board.name,url:f.board.url},feedbackData:{},feedbackType:"promoted",pinId:f.entityId,pinImage:null!==(_=null===(m=f.imageSpec_236x)||void 0===m?void 0:m.url)&&void 0!==_?_:"",pinner:f.pinner&&{explicitlyFollowedByMe:f.pinner.explicitlyFollowedByMe,entityId:f.pinner.entityId,fullName:f.pinner.fullName,imageSmallUrl:f.pinner.imageSmallUrl,username:f.pinner.username},promoter:f.promoter&&{fullName:f.promoter.fullName,username:f.promoter.username},isPromoted:!!f.promoter&&f.isPromoted,recommendationReason:f.recommendationReason&&{board:f.recommendationReason.board&&{entityId:f.recommendationReason.board.entityId,name:f.recommendationReason.board.name,url:f.recommendationReason.board.url},reason:f.recommendationReason.reason,reasonId:f.recommendationReason.reasonId,throughProperties:null===(g=f.recommendationReason.throughProperties)||void 0===g?void 0:g.map(({data:e,key:t})=>({data:e,key:t}))},sourceInterest:f.sourceInterest&&{entityId:f.sourceInterest.entityId,name:f.sourceInterest.name,urlName:f.sourceInterest.urlName},viewParameter:139,viewType:this.viewType})})}):(0,k.jsx)(o.xu,{flex:"none",children:(0,k.jsx)(o.xu,{children:!L&&(0,k.jsx)(u.Z,{anchor:".followButton",anchorElementRef:this.anchorElementRef.current,children:(0,k.jsx)(o.xu,{ref:this.anchorElementRef,children:(0,k.jsx)(S.Z,{button:({followText:e,onClick:t,userFollowed:i})=>(0,k.jsx)(o.xu,{"data-test-id":`user-${i?"unfollow":"follow"}-button`,children:(0,k.jsx)(o.zx,{fullWidth:!0,accessibilityLabel:i?this.props.i18n._('Following', 'creatorCard.followingButton.accessibilityLabel', 'Label to indicate this button as the following button'):this.props.i18n._('Follow', 'creatorCard.followButton.accessibilityLabel', 'Label to indicate this button as the follow button'),onClick:t,size:"lg",text:e,selected:!!i})}),fullName:w,id:A,imageUrl:C||"",inline:!0,isOwnProfile:L,onUserFollow:e=>this.handleUserFollow(A,e),profileUrl:Z,size:"md",viewType:this.viewType,viewParameter:this.viewParameter,clientTrackingParams:P})})})})}))]}),R&&(0,k.jsx)(o.xu,{marginStart:1,marginEnd:1,children:(0,k.jsx)(E,{fullName:w,id:A,pinId:f.entityId,viewType:this.viewType,viewParameter:this.viewParameter})})]})})}}let U=(0,g.Z)(function(e){let{logContextEvent:t}=(0,s.v)(),i=(0,m.ZP)(),{data:n}=(0,_.u)(O,e.input),l=(0,r.useDispatch)(),a=h(e.input,()=>{l((0,Z.Vw)(n.entityId))},e=>{let t=e.get(n.entityId);t&&t.setValue(!0,"showSuggestedCreatorRecs")}),o=(0,v.Z)(),{creatorRecsPrevState:d}=L(n);return(0,k.jsx)(K,{...e,pin:n,setShowSuggestedCreatorRecs:a,i18n:i,logContextEvent:t,suggestedCreatorRecsPrevState:d,viewerUserId:o.isAuth?o.id:null})})},361259:(e,t,i)=>{"use strict";i.d(t,{$:()=>u,r:()=>c});var n=i(667294),l=i(425288),a=i(497529),r=i(780280),o=i(829407),s=i(785893);let{Provider:d,useHook:u}=(0,l.Z)("PinRep");function c({children:e}){let{isAuthenticated:t}=(0,r.B)(),[i,l]=(0,n.useState)(!0),[u,c]=(0,n.useState)(!1),p=(0,a.Z)(1000069);(0,o.Z)(()=>{let e=async()=>{var e,i,n,a;if(!t){l(!1);return}let r=await p.fetchAllExperiences();r&&r.payload&&(null===(e=r.payload.experiences)||void 0===e?void 0:null===(i=e[1000069])||void 0===i?void 0:i.experience_id)===500417&&null!==(n=r.payload.experiences)&&void 0!==n&&null!==(a=n[1000069])&&void 0!==a&&a.display_data.hide_footer?p.viewExperience(1000069,500417):l(!1),c(!0)};e()});let h=(0,n.useMemo)(()=>({hasSimplifiedPinGridExpLoaded:u,hidePinRepFooter:i}),[u,i]);return(0,s.jsx)(d,{value:h,children:e})}},142725:(e,t,i)=>{"use strict";i.d(t,{Z:()=>tA});var n,l,a,r,o,s=i(702664),d=i(616550),u=i(156491),c=i(709717),p=i(667294),h=i(883119),_=i(994608),m=i(785430),g=i(258140),y=i(319247),v=i(608440),f=i(128503),x=i(874259),b=i(450053),P=i(268592),w=i(816890),S=i(127897),k=i(680333),j=i(491073),A=i(498537),C=i(481697),D=i(537313);i(167912);var E=i(616106),I=i(979588),T=i(916117),F=i(898781),z=i(733336),R=i(785893);let L=void 0!==n?n:n=i(57174),M=({isLoadingNewlyCreatedComment:e,pinKey:t,scrollContainerRef:i,viewParameter:n})=>{var l,a,r,o,s,d,u,c,_,m,g,y,v,f,x,b;let P=(0,F.ZP)(),[w,S]=(0,p.useState)(!1),{data:k}=(0,T.u)(L,t),j=null!==(l=null===(a=k.aggregatedPinData)||void 0===a?void 0:a.commentCount)&&void 0!==l?l:0,A=null!==(r=null===(o=k.aggregatedPinData)||void 0===o?void 0:null===(s=o.didItData)||void 0===s?void 0:s.imagesCount)&&void 0!==r?r:0,C=j+A>0;return(0,R.jsx)(I.Z,{paddingY:3,topBorder:!0,children:(0,R.jsx)(z.Z,{arrowDirection:"arrow-down",content:(0,R.jsx)(E.Z,{aggregatedPinId:null===(d=k.aggregatedPinData)||void 0===d?void 0:d.entityId,closeupAttributionId:null===(u=k.closeupAttribution)||void 0===u?void 0:u.entityId,closeupAttributionUsername:null===(c=k.closeupAttribution)||void 0===c?void 0:c.username,commentCount:j,commentCountInUSM:!0,commentsDisabled:k.commentsDisabled,commentsLoadedCallback:S,isCommentSectionOpen:!0,isLoadingNewCreatedComment:e,isVideo:!!(null!==(_=k.videos)&&void 0!==_&&_.videoList),photoCount:A,pinId:k.entityId,pinnerId:null===(m=k.pinner)||void 0===m?void 0:m.entityId,scrollContainerRef:i,shouldShowHeading:!1,storyPinDataId:null===(g=k.storyPinData)||void 0===g?void 0:g.entityId,viewParameter:n}),header:P._('Comments', 'productComments.accordionHeader.text', 'text in tap area to open product comments panel'),isCollapsible:(null!==(y=null===(v=k.aggregatedPinData)||void 0===v?void 0:v.commentCount)&&void 0!==y?y:0)+(null!==(f=null===(x=k.aggregatedPinData)||void 0===x?void 0:null===(b=x.didItData)||void 0===b?void 0:b.imagesCount)&&void 0!==f?f:0)>0,isContentLoaded:w,isOpenByDefault:C,previewContent:C?void 0:(0,R.jsx)(h.xv,{size:"200",children:P._('No comments yet! Add one to start the conversation.', 'commentThread.emptyState.message', 'comment thread empty state message')}),shouldToggleOnBodyTap:!1})})};var Z=i(407043),B=i(865607);function O({clickable:e=!0,fontWeight:t="normal",getDisplayName:i,onMouseDown:n,user:l}){let a=(0,d.useHistory)(),{logContextEvent:r}=(0,Z.v)(),{is_verified_merchant:o,full_name:s="",verified_identity:u,username:c="",is_ads_only_profile:p,ads_only_profile_site:_}=l,m=o||(null==u?void 0:u.verified),g=(0,R.jsx)(h.xu,{onMouseDown:()=>{n&&n()},children:(0,R.jsx)(h.xv,{size:"300",lineClamp:1,weight:t,children:i?i(s):s})});return e?(0,R.jsxs)(h.kC,{alignItems:"center",direction:"row",justifyContent:"start",children:[(0,R.jsx)(h.xu,{children:p&&_?(0,R.jsx)(h.Tg,{rel:"nofollow",target:"blank",href:_||"",onTap:()=>{r({event_type:9371,element:13382,aux_data:{aop_origin:"OfficialUserAttributionText"}})},children:g}):(0,R.jsx)(h.iP,{onTap:()=>{a.push(`/${c}/`)},children:g})}),m&&(0,R.jsx)(h.xu,{marginStart:2,children:(0,R.jsx)(B.Z,{isVerifiedMerchant:o,hasVerifiedIdentity:null==u?void 0:u.verified,size:"sm"})})]}):g}var N=i(641950),K=i(413614),U=i(357998),H=i(287072),V=i(215292);let G=void 0!==l?l:l=i(82639),W=e=>({advertiserId:e.advertiser_id,attributionSourceId:e.attribution_source_id,board:e.board&&{url:e.board.url},campaignId:null==e.campaign_id?e.campaign_id:String(e.campaign_id),entityId:e.id,isDownstreamPromotion:e.is_downstream_promotion,isPromoted:e.is_promoted,link:e.link,pinPromotionId:null==e.pin_promotion_id?e.pin_promotion_id:String(e.pin_promotion_id),pinner:e.pinner&&{username:e.pinner.username},promoter:e.promoter&&{entityId:e.promoter.id},storyPinDataId:e.story_pin_data_id,trackingParams:e.tracking_params});function $({enableDynamicSizeAdjustment:e,link:t,pinKey:i,text:n,onClickThrough:l,trackingParamsMap:a}){let{data:r}=(0,U.Q)(G,i,{useLegacyAdapter:W}),o=(0,p.useRef)(null),[s,d]=(0,p.useState)("500"),u=(0,H.Z)({href:t||"",externalData:{pin:r&&{attributionSourceId:r.attributionSourceId,board:r.board&&{url:r.board.url},campaignId:r.campaignId,entityId:r.entityId,isDownstreamPromotion:r.isDownstreamPromotion,isPromoted:r.isPromoted,pinner:r.pinner&&{username:r.pinner.username},pinPromotionId:r.pinPromotionId,promoter:r.promoter&&{entityId:r.promoter.entityId},storyPinDataId:r.storyPinDataId,trackingParams:r.trackingParams,trackingParamsMap:a,advertiserId:r.advertiserId}}}),c=(0,R.jsx)(h.xu,{ref:o,children:(0,R.jsx)(h.X6,{id:"product-heading",size:s,children:n})});return(0,p.useEffect)(()=>{if(!o||!o.current||!e)return;let t=o.current.querySelector("#product-heading");if(!t)return;let i=Number(t.offsetHeight)||0;if(Number.isFinite(i)){let e=Math.floor(i/33);d(e<=2?"500":"400")}},[e,o]),(0,R.jsx)(V.q,{children:({hovered:e,onMouseEnter:i,onMouseLeave:n})=>(0,R.jsx)(K.Z,{hovered:e,pinKey:r,trackingParamsMap:a,viewType:3,children:(0,R.jsx)(h.xu,{onMouseEnter:i,onMouseLeave:n,children:t?(0,R.jsx)(h.xu,{"data-test-id":"link-navigation",children:(0,R.jsx)(h.xv,{children:(0,R.jsx)(h.rU,{href:t,underline:"none",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),u({event:e}),l({componentType:14284})},children:c})})}):c})})})}var q=i(453451),Y=i(650702);let X=void 0!==a?a:a=i(828573),Q=e=>({advertiserId:e.advertiser_id,attributionSourceId:e.attribution_source_id,board:e.board&&{url:e.board.url},campaignId:null==e.campaign_id?e.campaign_id:String(e.campaign_id),entityId:e.id,isDownstreamPromotion:e.is_downstream_promotion,isPromoted:e.is_promoted,pinPromotionId:null==e.pin_promotion_id?e.pin_promotion_id:String(e.pin_promotion_id),pinner:e.pinner&&{username:e.pinner.username},promoter:e.promoter&&{entityId:e.promoter.id},storyPinDataId:e.story_pin_data_id,trackingParams:e.tracking_params});function J({link:e,onClickThrough:t,onLoad:i,pinKey:n,text:l,trackingParamsMap:a}){let{data:r}=(0,U.Q)(X,n,{useLegacyAdapter:Q}),o=(0,H.Z)({href:e,externalData:{pin:r&&{attributionSourceId:r.attributionSourceId,board:r.board&&{url:r.board.url},campaignId:r.campaignId,entityId:r.entityId,isDownstreamPromotion:r.isDownstreamPromotion,isPromoted:r.isPromoted,pinner:r.pinner&&{username:r.pinner.username},pinPromotionId:r.pinPromotionId,promoter:r.promoter&&{entityId:r.promoter.entityId},storyPinDataId:r.storyPinDataId,trackingParams:r.trackingParams,trackingParamsMap:a,advertiserId:r.advertiserId}}});return(0,p.useEffect)(()=>{"function"==typeof i&&i()},[i]),(0,R.jsx)(V.q,{children:({hovered:i})=>(0,R.jsx)(K.Z,{hovered:i,pinKey:r,trackingParamsMap:a,viewType:3,children:(0,R.jsx)(h.ZP,{color:"blue",onClick:({event:e,dangerouslyDisableOnNavigation:i})=>{i(),t({componentType:194}),o({event:e})},size:"lg",text:l,href:e,rel:"nofollow"})})})}var ee=i(349700),et=i(276602);function ei({richPinData:e={}}){var t;return null==e?void 0:null===(t=e.products)||void 0===t?void 0:t[0]}var en=i(883561),el=i(999018),ea=i(19121);function er({priceHistorySummary:e}){let t;let i=(0,F.ZP)(),{durationDays:n,typicalPrice:l,lowestPrice:a}=e||{};return Number.isInteger(n)&&(l||a)?(l?t=(0,ee.nk)(i._('{{ typicalPrice }} average price last {{ durationDays }} days', 'PriceHistorySummary.typicalPriceText', 'typicalPrice: typical price (average price), durationDays: duration days'),{typicalPrice:l,durationDays:n}):a&&(t=(0,ee.nk)(i._('{{ lowestPrice }} lowest price in {{ durationDays }} days', 'PriceHistorySummary.lowestPriceText', 'lowestPrice: lowest price, durationDays: duration days'),{lowestPrice:a,durationDays:n})),(0,R.jsx)(h.xu,{"data-test-id":"price-history-summary",children:(0,R.jsx)(h.xv,{children:t})})):null}var eo=i(882801);function es({detailsScrollContainerRef:e,isBoardOwnerOrCollaborator:t,isLoadingNewlyCreatedComment:i,onClickThrough:n,pin:l,pin:{closeup_attribution:a,closeup_unified_description:r,closeup_unified_title:o,is_oos_product:s,is_stale_product:d,link_user_website:u,link_domain:c,rich_metadata:_},showPDPComments:m,showPinNote:g,viewParameter:y}){var v,f,x,b,P,w;let S=(0,F.ZP)(),{logContextEvent:k}=(0,Z.v)(),j=(0,ea.Z)(),E=(0,et.E)(),T=(0,p.useCallback)(()=>{E&&E.markConstraintComplete("shopButton")},[E]),z=(0,el.Z)({type:"deprecated",data:l}),L=(0,C.Z)({type:"deprecated",data:l},j),B=z({isPdpPlus:!0}),K=ei({richPinData:_}),U=(null==K?void 0:K.offer_summary)||{},{in_stock:H}=U,{duration_days:V,lowest_price:G,typical_price:W}=(null==K?void 0:K.price_history_summary)||{},X=Number.isInteger(V)&&(!!G||!!W),Q=(_||{}).aggregate_rating,{rating_value:es,review_count:ed,rating_count:eu}=Q||{},{shipping_info:ec}=K||{},ep=null==u?void 0:null===(v=u.official_user)||void 0===v?void 0:v.first_name,{official_user:eh}=c||{},e_=a||eh,{first_name:em}=e_||{},eg=(0,en.ZP)(ep||em||"",20),ey=null==K?void 0:K.brand,ev=null==ey?void 0:ey.name,ef=null==ey?void 0:ey.user_id,ex=(null==e_?void 0:e_.id)===ef||(null==ey?void 0:ey.is_merchant),eb=!!ev,eP=(0,p.useCallback)(e=>{if(e&&eb){let t=ev!==e&&(null===ex||!1===ex);return t?(0,ee.nk)(S._('{{ brand }} sold by {{ merchant }}', 'productmetadata.officialuserattribution.text', 'officialuserattribution text. brand:name of the brand. merchant:name of the merchant'),{brand:(0,R.jsx)(h.xv,{inline:!0,weight:"bold",children:ev},"brand-name"),merchant:(0,R.jsx)(h.xv,{inline:!0,weight:"bold",children:e},"merchant-name")}):[(0,R.jsx)(h.xv,{inline:!0,weight:"bold",children:ev},"brand-name")]}return e},[ev,ex,S,eb]),ew=(r||"").trim(),eS=null!==(f=null===(x=l.formatted_description)||void 0===x?void 0:x.components)&&void 0!==f?f:[],ek=(0,eo.j)({components:eS,pinDescription:ew}),{link:ej,tracked_link:eA}=l||{},eC=decodeURIComponent(eA||ej||""),{currentDomain:eD}=(0,D.Wp)({carouselData:l.carousel_data&&{carouselSlots:l.carousel_data.carousel_slots&&l.carousel_data.carousel_slots.map(e=>({domain:e.domain,link:e.link})),index:null===(b=l.carousel_data)||void 0===b?void 0:b.index},domain:l.domain}),eE=eD.split(".")[0],{free_shipping_price:eI,free_shipping_value:eT}=ec||{};return(0,R.jsx)(p.Fragment,{children:(0,R.jsxs)(h.xu,{marginEnd:6,marginBottom:t||m?0:5,children:[!!o&&(0,R.jsx)(h.xu,{"data-test-id":"product-title",marginTop:4,children:(0,R.jsx)($,{link:eC,pinKey:{type:"deprecated",data:l},text:o,onClickThrough:n,trackingParamsMap:l.tracking_params_map})},"product-title"),(0,R.jsx)(h.xu,{"data-test-id":"product-price",marginTop:2,children:(0,R.jsx)(q.Z,{isSoldOut:s||!1===H,isStale:d,productDetails:{maxPrice:U.max_price,minPrice:U.min_price,price:U.price,standardPrice:U.standard_price},type:"pdpPlusHeading",colorOverride:"default"})},"product-price"),X&&(0,R.jsx)(h.xu,{"data-test-id":"product-price-history-summary",marginTop:2,children:(0,R.jsx)(er,{priceHistorySummary:{durationDays:V,lowestPrice:G,typicalPrice:W}})},"product-price-history-summary"),!!(es&&(ed||eu)||eI&&eT)&&(0,R.jsx)(h.xu,{marginTop:3,children:(0,R.jsx)(Y.Z,{bracket:!0,count:eu||ed,countType:eu?"rating":"review",countFormat:"number",hideSeparationDot:!0,ratingValue:es,shippingInfo:{freeShippingPrice:eI,freeShippingValue:eT}})}),e_&&(0,R.jsx)(h.xu,{marginTop:2,children:(0,R.jsx)(O,{getDisplayName:eP,onMouseDown:eb?()=>{k({event_type:102,object_id_str:l.id,view_type:3,view_parameter:144,element:13592,aux_data:B})}:void 0,user:e_})}),(eg||eE)&&eC&&(0,R.jsx)(h.xu,{"data-test-id":"product-shop-button",marginTop:5,children:(0,R.jsx)(J,{merchantName:eg||eE,link:eC,onClickThrough:n,onLoad:T,pinKey:{type:"deprecated",data:l},text:S._('Visit site', 'closeup.shop.button', 'shop button'),trackingParamsMap:l.tracking_params_map})}),ek.length>0&&(0,R.jsx)(h.xu,{"data-test-id":"product-description",marginTop:5,children:(0,R.jsx)(N.Z,{commerceData:B,structuredDescription:ek,type:"expandable",viewParameter:y})}),g&&(0,R.jsx)(I.Z,{topBorder:!0,paddingY:3,children:(0,R.jsx)(A.Z,{boardId:null===(P=l.board)||void 0===P?void 0:P.id,isGroupNote:L,pinId:l.id,pinNoteText:null===(w=l.pin_note)||void 0===w?void 0:w.text})}),m&&(0,R.jsx)(M,{isLoadingNewlyCreatedComment:i,pinKey:{type:"deprecated",data:l},scrollContainerRef:e,viewParameter:y})]})})}es.defaultProps={showPDPComments:!1};var ed=i(81072);function eu(e){var t;let{disabled:i,height:n,top:l=0,zIndex:a}=e,r=(0,p.useRef)(null),o=(0,ed.Z)();if(i)return e.children;let s=(null===(t=r.current)||void 0===t?void 0:t.getBoundingClientRect().top)||0;return(0,R.jsx)(h.xu,{ref:r,id:"product-sticky-container ","data-test-id":"product-sticky-container",children:(0,R.jsx)(h.Le,{height:n,top:o+l+s,zIndex:a,children:e.children})})}var ec=i(773285),ep=i(784590),eh=i(717615),e_=i(231947),em=i(92261),eg=i(966676),ey=i(814197);function ev({disableRelatedResource:e=!1,relatedResourceOptions:t,hasXYcoordinates:i,isEligibleForStlFlyout:n,isStoryPin:l,isWideVideo:a,pin:r,searchQuery:o,taggedProducts:s,trafficSource:d,viewParameterType:u,onClickThrough:c,showStructuredDescription:h,data:_,didShortClickThrough:m,goBack:g,isInStream:y=!1,isDeletedStoryPin:v,onSaveButtonClick:f,onUpdate:A,outerBodyStyle:C,routePush:D,showRepinOnInitialRender:E,viewType:I}){let T=(0,ep.Z)(e?null:{name:t.name,options:t.options}),F=(0,p.useRef)(null),z=(0,ea.Z)(),{viewportSize:L}=(0,eg.x4)(),{checkExperiment:M}=(0,ec.F)(),{anyEnabled:Z}=M("web_m10n_business_access_orbac_ga"),B=(0,eh.Z)(),O=Z?(0,e_.lJ)(z,B):"",N=(0,P.Z)(90),K=(0,k.Z)(),U=(0,S.Z)({metadataContainerRef:F}),[H,V]=(0,p.useState)(!1),G=!!r.is_eligible_for_aggregated_comments&&M("dweb_pdp_comments").anyEnabled,{setClickthroughComponentForSurvey:W,imageContainerRef:$}=K,q=(0,R.jsx)(j.Z,{hasXYcoordinates:i,isEligibleForStlFlyout:n,isStoryPin:l,isWideVideo:a,pin:r,searchQuery:o,taggedProducts:s,trafficSource:d,viewParameterType:u,visualContentContainerRef:G?N.visualContentContainerRef:void 0,imageContainerRef:$,handleImageClickThrough:()=>c({wasImageClicked:!0}),setClickthroughComponentForSurvey:W,isShortImage:U}),Y=(0,R.jsx)(eu,{disabled:!1,top:-16,zIndex:ey.mS,children:q}),X=h?Y:q,{getViewParameter:Q}=(0,b.ZP)({pin:r}),J=(0,w.Z)({pinKey:{type:"deprecated",data:r},orbacActingAs:B,viewer:z}),ee=Q(u),et="lg"===L?16:em.g9,ei=(0,R.jsx)(p.Fragment,{children:(0,R.jsx)(es,{detailsScrollContainerRef:F.current,isBoardOwnerOrCollaborator:J,isLoadingNewlyCreatedComment:H,onClickThrough:c,pin:r,showPDPComments:G,showPinNote:J,showStructuredDescription:h,viewParameter:ee})});return(0,R.jsx)(x.R,{commentCountInUSM:!0,descriptionContentMaxHeight:G?N.descriptionContentMaxHeight:void 0,isEligibleForPinReactions:!r.is_promoted&&!r.is_downstream_promotion&&!v,isReactionsExpansionEnabled:G,isWideVideo:a,didShortClickThrough:m,webLinkSurveyState:K,pin:r,outerBodyStyle:C,isStoryPin:l,trafficSource:d,visualContentContainer:X,isCloseupMaximized:!1,data:_,outerPaddingSize:et,isInStream:y,metadataContainerRef:F,onClickThrough:()=>{c&&c({componentType:129}),K.setClickthroughComponentForSurvey("legoMaybeLink")},setIsLoadingNewlyCreatedComment:V,viewParameter:ee,viewType:I,metadata:ei,viewer:z,orbacSubjectId:O,relatedModulesResource:T,marginBottom:8,disableLeadPin:!0,isDeletedStoryPin:v,onSaveButtonClick:f,showRepinOnInitialRender:E,goBack:g,onUpdate:A,showPDPComments:G,routePush:D,closeupActionBarMaxWidth:em.CI,visualContentContainerRef:G?N.visualContentContainerRef:void 0})}var ef=i(360961),ex=i(438799),eb=i(52722),eP=i(700398),ew=i(217149);let eS=void 0!==r?r:r=i(998480),ek=e=>({imageSignature:e.image_signature});function ej({clientTrackingParams:e,pinKey:t,setRelatedPinsHeaderRef:i,slotIndex:n,story:l,topLevelTrafficSource:a,viewParameter:r,viewportSize:o}){let{data:s}=(0,U.Q)(eS,t,{useLegacyAdapter:ek});if(!l)return null;if((0,eP.Z)(l.container_type)){let e=88===l.container_type,t=90===l.container_type;return(0,R.jsx)(h.xu,{marginBottom:e||t?0:12,paddingX:t?12:0,children:(0,R.jsx)(ew.default,{surface:"ShoppingDynamicHeightGrid",view:3,componentFallback:13176,viewParameter:r,initialSlotIndex:n,story:l,storyGraphqlRef:null})})}if("SKIN_TONE_FILTER_QUERIES"===l.story_type)return(0,R.jsx)(h.xu,{alignSelf:"center",children:(0,R.jsx)(ex.Z,{story:l})});if(["related_products_feed_header","related_modules_header"].includes(l.story_type)){var d;return(0,R.jsx)(h.xu,{"data-test-id":"related-modules-header",ref:i,children:(0,R.jsx)(ef.Z,{clientTrackingParams:e,slotIndex:n,storyId:l.id,storyType:l.story_type,title:null===(d=l.title)||void 0===d?void 0:d.format,viewParameter:r})})}return"related_domain_carousel"===l.story_type?(0,R.jsx)(h.xu,{marginBottom:12,justifyContent:"center",display:"flex",children:(0,R.jsx)(eb.Z,{closeupImageSignature:s.imageSignature||"",data:l,slotIndex:n,storyId:l.id,storyType:l.story_type,topLevelTrafficSource:a,viewParameter:r,viewportSize:o})}):null}var eA=i(170540),eC=i(673108);let eD=void 0!==o?o:o=i(272882);function eE({clientTrackingParams:e,pinKey:t,relatedResourceOptions:i,setRelatedPinsHeaderRef:n,topLevelTrafficSource:l,viewParameter:a,viewportSize:r}){let{data:o,isLoaded:s,fetchMore:d,isFetching:u,isAtEnd:c}=(0,ep.Z)({name:i.name,options:i.options}),{data:_}=(0,U.Q)(eD,t,{useLegacyAdapter:e=>({})}),m=(0,F.ZP)(),g=(0,p.useRef)(0),y=(o||[]).filter(Boolean),v=(0,eC.Z)(y);return(0,R.jsxs)(h.xu,{"data-test-id":"relatedPins",direction:"column",display:"flex",flex:"grow",position:"relative",children:[s&&v.map((t,i)=>{let o;0===i&&(g.current=0);let s=0;if(Array.isArray(t)){let e=t.reduce((e,t)=>e.concat("pin"===t.type||"story"===t.type&&"BUBBLE_ONE_COL"===t.story_type?[t]:[]),[]);s+=t.length,o=(0,R.jsx)(eA.Z,{initialSlotIndex:g.current,pinKey:_,relatedPins:e},t[0].id)}else if("story"===t.type){var d;s+=(null===(d=t.objects)||void 0===d?void 0:d.length)||1,o=(0,R.jsx)(h.kC,{alignItems:"stretch",direction:"column",justifyContent:"start",children:(0,R.jsx)(ej,{clientTrackingParams:e,pinKey:_,setRelatedPinsHeaderRef:n,slotIndex:g.current,story:t,topLevelTrafficSource:l,viewParameter:a,viewportSize:r})},t.id)}return g.current+=s,o}),(0,R.jsx)(h.gr,{isAtEnd:c,isFetching:u,fetchMore:d}),(0,R.jsx)(h.kC,{alignItems:"stretch",justifyContent:"center",width:"100%",children:(0,R.jsx)(h.$j,{accessibilityLabel:m._('Loading related products results', 'closeup.relatedProducts.results', 'Accessibility label for loading related products results'),show:u})})]})}var eI=i(820621),eT=i(46584),eF=i(222704),ez=i(447948);function eR({currentlySelectedIndex:e,index:t,onSelect:i,pinId:n,isSelectOnHover:l,size:a,thumbnail:r,mediaType:o="image",viewParameter:d}){let{logContextEvent:u}=(0,Z.v)(),c=(0,s.useDispatch)(),_=(0,F.ZP)(),[m,g]=(0,p.useState)(!1),y=(0,p.useCallback)(e=>{"video"===o&&e&&!m&&(g(!0),u({event_type:13,component:13596,element:12831,view_type:3,view_parameter:d}))},[u,o,d,m]),v=(0,eT.Z)({onVisibilityChanged:y}),f=()=>{c((0,ez.yR)(n,t)),i(t)},x=e===t||!e&&0===t;return(0,R.jsx)(h.xu,{marginBottom:4,ref:v,children:(0,R.jsx)(h.iP,{onMouseEnter:({event:e})=>{e.preventDefault(),e.stopPropagation(),l&&f()},onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),l||f()},children:(0,R.jsx)(eF.Z,{outlined:x,children:(0,R.jsxs)(h.xu,{position:"relative",children:[(0,R.jsx)(h.zd,{wash:!0,width:a,height:a,children:(0,R.jsx)(h.Ee,{alt:"",fit:"cover",src:r,color:"#efefef",naturalHeight:1,naturalWidth:1})}),"video"===o&&(0,R.jsx)(h.xu,{position:"absolute",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",top:!0,left:!0,children:(0,R.jsx)(h.JO,{accessibilityLabel:_._('Secondary Carousel Video Icon', 'secondaryCarousel.carouselItem.videoIndicatorIcon', 'accessibility label on secondary carousel item'),color:"light",icon:"play",size:20})})]})})})})}var eL=i(752802),eM=i(251183),eZ=i(700380),eB=i(180929),eO=i(697335);let eN={md:120,sm:52};function eK({carouselSlots:e,commerceData:t={},isSelectOnHover:i,onImageSelect:n,pinId:l,selectedIndex:a,size:r,viewParameter:o}){let s;let{logContextEvent:d}=(0,Z.v)(),[u,c]=(0,p.useState)(),[_,m]=(0,p.useState)(0),[g,y]=(0,p.useState)(),[v,f]=(0,p.useState)(),[x,b]=(0,p.useState)(),[P,w]=(0,p.useState)(!1),[S,k]=(0,p.useState)(e.length>=4),[j,A]=(0,p.useState)(!1),C=(0,eO.t)(),D=(0,p.useRef)(null),E=(0,p.useRef)(),I=eN[r];(0,p.useEffect)(()=>{d({event_type:120,component:13596,view_type:3,view_parameter:o,aux_data:{pin_id:l,...t}})},[]),(0,p.useEffect)(()=>{if(!u&&D.current){let e=D.current.getBoundingClientRect();m(Math.floor(e.top)),y(Math.floor(e.bottom)),b(Math.floor(e.top)),f(Math.floor(e.bottom))}},[D.current,u]),(0,p.useEffect)(()=>{if(D.current){let{height:e,top:t,bottom:i}=D.current.getBoundingClientRect();m(Math.floor(t)),y(Math.floor(i)),c(Math.floor(e))}},[e.length]),(0,p.useEffect)(()=>{!u&&D.current&&c(Math.floor(D.current.getBoundingClientRect().height))},[D.current]),(0,p.useEffect)(()=>{_&&x&&v&&g&&e.length>=4&&(_<x?w(!0):w(!1),g>=490+C+20?k(!0):k(!1))},[_,g,x,v]);let T=()=>{j||(A(!0),d({event_type:110,component:13596,view_type:3,view_parameter:o,aux_data:{pin_id:l,...t}}))},F=(0,eZ.Z)(()=>{if(D.current){let e=D.current.getBoundingClientRect();m(Math.floor(e.top)),y(Math.floor(e.bottom)),T()}},16);(0,p.useEffect)(()=>(E.current&&E.current.addEventListener("scroll",F),()=>{E.current&&E.current.removeEventListener("scroll",F)}),[E.current]);let z=(e,i)=>{n&&(d({event_type:101,component:13596,element:"image"===i?11922:12831,view_type:3,view_parameter:o,aux_data:{...t}}),n(e))},L=e=>{0!==e&&(s&&s.cancel(),D.current&&E.current&&((s=(0,eM.Z)(E.current,0,e,{easingFunction:"ease-in-out",extendToEdgeDistanceY:50,scrollSpeedPxPerMs:.8,onAnimationComplete:()=>{s=null}})).start(),T()))};return(0,R.jsxs)("div",{className:"ProductCarousel-OuterScrollContainer",style:{marginTop:"20px",position:"relative"},children:[(0,R.jsx)("div",{id:"InnerScrollContainer",ref:E,className:"ProductCarousel-InnerScrollContainer",style:{maxHeight:490,cursor:"default"},children:(0,R.jsx)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation()},"aria-hidden":"true",style:{cursor:"default"},children:(0,R.jsx)(h.xu,{display:"flex",alignItems:"center",direction:"column",marginEnd:6,width:I+4,ref:D,marginBottom:1,position:"relative",marginTop:1,children:e.map((e,t)=>{var n;let{images:r,videos:s}=e,{thumbnail:d,mediaType:u}=s?{thumbnail:s.cover_image_url,mediaType:"video"}:{thumbnail:null===(n=(0,eL.Z)({images:r,resolutionPreferences:["564x","736x","236x"]}))||void 0===n?void 0:n.url,mediaType:"image"};return(0,R.jsx)(eR,{currentlySelectedIndex:a,index:t,onSelect:()=>{z(t,u)},isSelectOnHover:i,pinId:l,size:I,thumbnail:d||"",mediaType:u,viewParameter:o},`carousel-item-${e.image_signature||""}-${t}`)})})})}),!!u&&e.length>3&&(0,R.jsxs)(h.xu,{position:"absolute",overflow:"hidden",height:u>490?494:u+4,top:!0,width:"100%",dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},children:[P&&(0,R.jsx)(eB.Z,{direction:"up",onScroll:e=>{e.preventDefault(),e.stopPropagation(),L(-100)},size:r}),S&&(0,R.jsx)(eB.Z,{direction:"down",onScroll:e=>{e.preventDefault(),e.stopPropagation(),L(100)},size:r})]})]})}var eU=i(206663),eH=i(712331),eV=i(21353),eG=i(4294),eW=i(326884),e$=i(834911),eq=i(737022),eY=i(319915),eX=i(186656),eQ=i(507712),eJ=i(251819),e0=i(750391),e1=i(184578),e2=i(623568),e8=i(359969),e3=i(489494),e6=i(802933),e9=i(692627);function e7(e){let t=(0,et.E)();return(0,p.useEffect)(()=>{let i=document.getElementById(e.containerId),n=(e,t)=>{let i=e.getBoundingClientRect(),n=t.getBoundingClientRect();return!!i&&!!n&&i.top>=n.top&&i.left>=n.left&&i.bottom<=n.bottom&&i.right<=n.right};if(null==i)null==t||t.removeConstraint("thumbnailsLoaded");else{let e=Array.from(i.querySelectorAll("*")).filter(e=>"IMG"===e.tagName&&n(e,i)),l=e.length,a=()=>{l-=1};e.forEach(e=>{e.onload=a(),0===l&&(null==t||t.markConstraintComplete("thumbnailsLoaded"))})}},[e.containerId,t]),(0,R.jsx)(h.xu,{id:"imageContainerPerf",children:e.children})}var e4=i(31062),e5=i(780280),te=i(947599),tt=i(957161),ti=i(52022),tn=i(343341),tl=i(819303),ta=i(559073),tr=i(951786),to=i(970576),ts=i(313951),td=i(977558),tu=i(807532),tc=i(749147),tp=i(709113);function th(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let t_=(0,p.lazy)(()=>i.e(95246).then(i.bind(i,263551))),tm=(0,p.lazy)(()=>i.e(75754).then(i.bind(i,849086))),tg={sm:80},ty={storyPinGradientStyle:{display:"block",position:"relative",cursor:"auto"}},tv={boxShadow:"0 1px 20px 0 rgba(0, 0, 0, 0.1)",borderRadius:32};function tf({conversation_id:e,senderId:t,pinId:i}){(0,eX.Z)({url:`/v3/conversations/${e}/message/mark_seen/`,method:"POST",data:{sender:t,pin:i}})}function tx({viewportSize:e,hasCarouselData:t}){return t&&["lg","md"].includes(e)}let tb=({isWideVideo:e,viewportSize:t})=>!["md","sm"].includes(t)&&!e;class tP extends p.Component{constructor(...e){super(...e),th(this,"state",this.props.initialState),th(this,"removedPwtThumbnailsConstraint",!1),th(this,"setResultScrollContainerRef",e=>{this.resultScrollContainer||(this.resultScrollContainer=e,this.forceUpdate())}),th(this,"setRelatedPinsHeaderRef",e=>{this.relatedPinsHeaderRef=e}),th(this,"mounted",!1),th(this,"updateViewportSize",(0,eZ.Z)(()=>{let{visualState:{carouselData:e}}=this.state,{pin:t}=this.props,{isWideVideo:i}=(0,e1.Z)((0,e6.Z)({pin:t}))||{};if(this.mounted){let t=function({isWideVideo:e,hasCarouselData:t}){var i,n;let l=1056;return(e&&(l=998),t&&(l=1300),(null===(i=window)||void 0===i?void 0:i.innerWidth)<680)?"sm":(null===(n=window)||void 0===n?void 0:n.innerWidth)<l?"md":"lg"}({isWideVideo:i,hasCarouselData:!!e}),n=tx({viewportSize:t,hasCarouselData:!!e}),{hideBackButton:l,backButtonLabelFitInScreen:a}=function({viewportSize:e,isWideCarousel:t}){var i,n;let l;l=["md","sm"].includes(e)?t?780:630:t?1465:1135;let a=(null===(i=window)||void 0===i?void 0:i.innerWidth)<=l,r=(null===(n=window)||void 0===n?void 0:n.innerWidth)>=(t?1640:1340);return{hideBackButton:a,backButtonLabelFitInScreen:r}}({viewportSize:t,isWideCarousel:n});this.setState({viewportSize:t,hideBackButton:l,backButtonLabelFitInScreen:a})}},50)),th(this,"triggerQuickPromote",()=>{let{getSterlingURL:e,pinId:t,routePush:i}=this.props;this.setState({quickPromoteModalTriggered:!0});let n=e("quick_promote_on_www");i(`${n}?pinId=${t}`)}),th(this,"clickThroughTimer",()=>{let{setPlacementExtraContext:e}=this.props;clearInterval(this.state.intervalId),e&&e({didLongClickThrough:!0})}),th(this,"executeClickthrough",e=>{var t,i,n;let{pinId:l,setPlacementExtraContext:a,viewer:r,trafficSource:o,logContextEvent:s,pinFormattedLink:d}=this.props,{pin:u,didPinClickThrough:c,didShortClickThrough:p}=this.state,h=!!u.story_pin_data,{wasImageClicked:_,auxData:m,componentType:g=h?228:4,elementType:y=_?35:h?11157:361,viewType:v=3}=e||{},f=(0,e9.Z)({hasPin:!0,hasPinRichMetadata:!!this.props.pin.rich_metadata,hasPinRichMetadataProducts:!!(null!==(t=this.props.pin.rich_metadata)&&void 0!==t&&t.products),hasPinRichMetadataArticle:!!(null!==(i=this.props.pin.rich_metadata)&&void 0!==i&&i.article),hasPinRichMetadataRecipe:!!(null!==(n=this.props.pin.rich_metadata)&&void 0!==n&&n.recipe),hasPinStoryPinData:!!this.props.pin.story_pin_data}),x=this.props.getStringifiedCommerceAuxData({isPdpPlus:!0}),b={...x,...m||{}};if(r&&r.isAuth&&!c&&a&&(a({didPinClickThrough:!0}),this.setState({didPinClickThrough:!0})),h&&s({event_type:102,view_type:132,view_parameter:3549,element:12971,aux_data:{pin_id:u.id,url:d}}),s({event_type:101,object_id_str:l,component:g,element:y,aux_data:b}),s({event_type:12,object_id_str:l,view_type:v,view_parameter:f,component:g,element:y,aux_data:b}),s({event_type:8948,view_type:v,view_parameter:f,component:g,element:y,object_id_str:l,aux_data:{click_type:"clickthrough",closeup_navigation_type:o&&(0,e2.sV)(o)?"deeplink":"click",...b}}),_){let e=setInterval(this.clickThroughTimer,12e4);this.setState({intervalId:e})}this.clickThroughStartTime=Date.now(),p&&this.setState({didShortClickThrough:!1})}),th(this,"handleFocus",()=>{let{setPlacementExtraContext:e}=this.props;clearInterval(this.state.intervalId),e&&e({didLongClickThrough:!1})}),th(this,"handleWindowFocus",()=>{if(this.clickThroughStartTime>0){let e=Date.now()-this.clickThroughStartTime<5e3;this.setState({didShortClickThrough:e}),this.clickThroughStartTime=0}}),th(this,"handleClickLogging",()=>{this.props.logContextEvent({event_type:101,object_id_str:this.state.pin.id,component:4,element:13306,aux_data:{...this.props.getStringifiedCommerceAuxData({isPdpPlus:!0})}})}),th(this,"handleBackButtonClick",()=>{this.props.onHandleBackButtonClick()}),th(this,"handleCarouselSwipe",e=>{let{visualState:t,firstLoadComplete:i}=this.state;i&&this.setState({visualState:{...t,carouselData:{...t.carouselData,index:e}}})}),th(this,"dispatch",(e,t)=>this.setState(t=>(0,y.Z)(t,e),t)),th(this,"handleScroll",(0,eZ.Z)(()=>{let{isOverRelatedPins:e}=this.state;if(this.relatedPinsHeaderRef){let t=td.hu,i=this.relatedPinsHeaderRef.getBoundingClientRect().top,n=i<=t;n&&!e?this.setState({isOverRelatedPins:!0}):!n&&e&&this.setState({isOverRelatedPins:!1})}},10)),th(this,"onWrapperClick",e=>{e.stopPropagation(),this.handleBackButtonClick()}),th(this,"onRelatedInterestsBannerDismiss",()=>{this.setState({isRelatedInterestsBannerDismissed:!0})})}populatePlaceholderCarouselData(){var e,t;let{pin:i}=this.props,{visualState:n}=this.state;this.setState({visualState:{...n,carouselData:(0,e$.Z)({carouselData:i.carousel_data,images:i.images,product:null===(e=i.rich_metadata||i.rich_summary)||void 0===e?void 0:null===(t=e.products)||void 0===t?void 0:t[0]})}})}componentDidMount(){var e,t,i,n;let{conversation_id:l,conversationOpen:a,dispatch:r,pin:o,pinId:s,senderId:d,setPlacementExtraContext:u,shouldShowInbox:c,toastManager:p,openInbox:h,trackInteraction:_}=this.props,{visualState:{carouselData:m}}=this.state,g=ei({richPinData:o.rich_summary});this.mounted=!0,!m&&(null!=g&&g.has_multi_images||null!=g&&null!==(e=g.videos)&&void 0!==e&&e.length)&&this.populatePlaceholderCarouselData(),l&&d&&s&&tf({conversation_id:l,senderId:d,pinId:s}),l&&(a(l),c&&h()),o.image_signature&&this.props.setMostRecentPinImage(o.image_signature),s&&this.props.setMostRecentPinId(s),u&&u({is_own_or_group_pin:this.isOwnOrGroupPin});let y=tt.Z.getItem(tp.M8)||"";y&&y===s&&(tt.Z.removeItem(tp.M8),_({action:"trigger",item:"unauth-save-button-quicksave"}),(0,eI.Z)({description:o.description,entityId:o.id,link:o.link,promotedIsRemovable:o.promoted_is_removable,title:o.title},this.props.i18n).then(e=>{let{id:t,url:i,name:n}=e;r((0,tc.d)({boardId:t,url:i,title:n||"",pinId:s})),p.showToast(({hideToast:t})=>{var i,n,l;return(0,R.jsx)(to.Z,{boardName:e.name,boardUrl:e.url,onHide:t,pinImageUrl:null!==(i=null===(n=o.images)||void 0===n?void 0:null===(l=n["236x"])||void 0===l?void 0:l.url)&&void 0!==i?i:""})})})),this.updateViewportSize(),window.addEventListener("resize",this.updateViewportSize),window.addEventListener("focus",this.handleWindowFocus),null!==(t=window)&&void 0!==t&&null!==(i=t.location)&&void 0!==i&&null!==(n=i.search)&&void 0!==n&&n.includes("invite_code=")&&(0,eQ.Z)()}componentDidUpdate(e){let{didRepin:t,isLandingPage:i,pin:n,pinId:l,conversation_id:a,senderId:r,pinResource:o,pinResource:{data:s},pwtSurfaceContext:d,setPlacementExtraContext:u,showQuickPromote:c}=this.props,{visualState:{carouselData:p},firstLoadComplete:h,quickPromoteModalTriggered:_}=this.state;this.visualDataDidUpdate(),!h||this.isWideCarousel()||this.removedPwtThumbnailsConstraint||(null==d||d.removeConstraint("thumbnailsLoaded"),this.removedPwtThumbnailsConstraint=!0),s&&!h&&(s.carousel_data&&(s.carousel_data.index=(null==p?void 0:p.index)||0),this.dispatch({type:"pinLoaded",pin:s})),a&&r&&l&&e.pinId!==l&&tf({conversation_id:a,senderId:r,pinId:l}),!e.pinResource.data&&o.data&&!_&&c&&this.triggerQuickPromote();let m={},g=tt.Z.getItem(tp.W3)||"",y=g.includes(`/pin/${l}`);y&&i&&(m.loginPageType="pin"),t&&(m.didRepin=!0),n.image_signature&&(m.pin_image_signature=n.image_signature),m.is_own_or_group_pin=this.isOwnOrGroupPin,!(0,eJ.Z)(m)&&u&&u({...m})}componentWillUnmount(){window.removeEventListener("resize",this.updateViewportSize),window.removeEventListener("focus",this.handleWindowFocus),this.mounted=!1}get isOwnOrGroupPin(){var e,t;let{pin:i,viewer:n}=this.props,l=(i||{}).board||{},a=l.is_collaborative&&(0,eG.Z)(l.collaborated_by_me,null===(e=l.owner)||void 0===e?void 0:e.id,n);return!!(n.isAuth&&(null===(t=i.pinner)||void 0===t?void 0:t.id)===n.id||a)}isWideCarousel(){let{viewportSize:e,visualState:{carouselData:t}}=this.state;return tx({viewportSize:e,hasCarouselData:!!t})}visualDataDidUpdate(){var e,t,i,n,l,a,r;let o;let{pin:s,mainImage:d}=this.props,{visualState:{carouselData:u,mainImage:c},firstLoadComplete:p}=this.state;if(!p)return;let h=(0,e$.Z)({carouselData:s.carousel_data,images:s.images,product:null===(e=s.rich_metadata||s.rich_summary)||void 0===e?void 0:null===(t=e.products)||void 0===t?void 0:t[0]}),_=((null==h?void 0:h.carousel_slots)||[])[0]||{},m=(0,eq.Z)(_.images),g=(null==u?void 0:u.index)||0;o=h&&((null===(i=h.carousel_slots)||void 0===i?void 0:i.length)||0)>1?{mainImage:d,carouselData:{...h,index:g},previewImage:(0,ta.Yf)(null===(a=s.images)||void 0===a?void 0:a["236x"])}:null!=m&&m.url?{mainImage:{url:m.url,height:m.height||1,width:m.width||1}}:{mainImage:d,previewImage:(0,ta.Yf)(null===(r=s.images)||void 0===r?void 0:r["236x"])},((null==u?void 0:u.id)!==(null===(n=o.carouselData)||void 0===n?void 0:n.id)||JSON.stringify(null==u?void 0:u.carousel_slots)!==JSON.stringify(null===(l=o.carouselData)||void 0===l?void 0:l.carousel_slots)||c.url!==o.mainImage.url)&&(this.setState({visualState:o}),this.updateViewportSize())}renderBodyContent({isEligibleForStlFlyout:e,relatedResourceOptions:t,taggedProducts:i,maxWidth:n}){var l,a,r;let{experimentsClient:{checkExperiment:o},isLimitedLogin:s,pin:d,pinResource:u,routePush:c,searchQuery:m,showRepinOnInitialRender:g,trafficSource:y,viewer:v,orbacActingAs:f,showStructuredDescription:x,userBusinessRoleResource:b,isORBACGA:P,trendsData:w}=this.props,{id:S,sponsorship:k,story_pin_data_id:j,story_pin_data:A}=d,C=!!j,D=!!(null!=A&&A.is_deleted),{creator:E,sponsor:I,status:T}=k||{},{username:F}=E||{},{username:z}=I||{},{refresh:L}=u,M=P?(0,e_.lJ)(v,f):void 0,{data:Z}=b||{},B=!d.is_repin&&!!z,O=z===v.username?[eW.V3.OWNER]:null==Z?void 0:Z.permissions,N=z===v.username||!!(null!=O&&O.find(e=>eH.Z.includes(e))),K=z===v.username||!!(null!=O&&O.find(e=>eH.Z.includes(e))),{didShortClickThrough:U,viewportSize:H}=this.state,{isWideVideo:V}=(0,e1.Z)((0,e6.Z)({pin:d}))||{},G=(0,e0.rh)(d&&{aggregatedPinData:d.aggregated_pin_data&&{creatorAnalytics:d.aggregated_pin_data.creator_analytics&&{_30dRealtime:d.aggregated_pin_data.creator_analytics["30d_realtime"]&&{carId:d.aggregated_pin_data.creator_analytics["30d_realtime"].id}}},board:d.board&&{privacy:d.board.privacy},creatorAnalytics:d.creator_analytics&&{_30dRealtime:d.creator_analytics["30d_realtime"]&&{carId:d.creator_analytics["30d_realtime"].id}},isRepin:d.is_repin,pinner:d.pinner&&{entityId:d.pinner.id},storyPinDataId:d.story_pin_data_id,videos:d.videos&&{videoList:d.videos.video_list&&{__typename:"VideoList"}}},v,this.props.experimentsClient,M),W=(0,_.CA)(null==w?void 0:w.data,this.props.experimentsClient),$=B&&v.isAuth&&o("mweb_web_android_ios_backend_clbc_display_controls").anyEnabled&&(N&&0===T||K&&1===T),q=!!(d.aggregated_pin_data||{}).has_xy_tags,Y=C&&(null!==(l=null==A?void 0:null===(a=A.pages)||void 0===a?void 0:a.length)&&void 0!==l?l:0)>0;return(0,R.jsx)(h.xu,{dangerouslySetInlineStyle:{__style:C?{...ty.storyPinGradientStyle,width:"100%"}:{}},id:"gradient","data-test-id":"gradient",display:"flex",justifyContent:"center",children:(0,R.jsx)(p.Fragment,{children:(0,R.jsx)(tl.Z,{isStoryPin:C,isWideVideo:V,children:(0,R.jsx)(eY.Z,{name:"CloseupBody",children:(0,R.jsxs)(h.xu,{children:[(0,R.jsxs)(h.xu,{alignItems:V?"center":void 0,direction:V?"column":void 0,display:V?"flex":void 0,children:[$&&"number"==typeof T&&(0,R.jsx)(h.xu,{"data-test-id":"sponsorship-approval-module",display:"flex",children:(0,R.jsx)(eY.Z,{name:"SafeSuspense_Closeup_SponsorshipApprovalModule",children:(0,R.jsx)(te.Z,{children:(0,R.jsx)(tm,{business_role:O,creatorUsername:null!=F?F:"",sponsorshipStatus:T,pinId:S})})})}),(0,e0.WE)(v,H,G,W,w,$)&&(0,R.jsx)(h.xu,{"data-test-id":"PartnerModule",width:"lg"===H&&V?n:"100%",children:(0,R.jsx)(eY.Z,{name:"SafeSuspense_Closeup_PartnerModule",children:(0,R.jsx)(te.Z,{children:(0,R.jsx)(t_,{borderStyle:tv,isStoryPin:C,pinKey:{type:"deprecated",data:d},viewportSize:H,trendsData:W?null==w?void 0:null===(r=w.data)||void 0===r?void 0:r.results:null,showPinStats:G})})})})]}),(0,R.jsx)(ev,{data:u.data,didShortClickThrough:U,goBack:this.handleBackButtonClick,hasXYcoordinates:q,isEligibleForStlFlyout:e,isStoryPin:C,isDeletedStoryPin:!!D,isWideVideo:V,onClickThrough:this.executeClickthrough,onSaveButtonClick:this.handleClickLogging,onUpdate:L,outerBodyStyle:C?null:tv,pin:d,relatedResourceOptions:t,routePush:c,searchQuery:m,showRepinOnInitialRender:!s&&g,trafficSource:y,viewParameterType:Y?157:void 0,showStructuredDescription:x,taggedProducts:i})]})})})})})}render(){var e,t,i,n,l,a,r,o,s,d,u,c;let{contextPinIds:p,getStringifiedCommerceAuxData:_,ideaPinStelaCategories:y,pin:v,pinDerivedData:f,taggedObjectsResource:x,topLevelTrafficSource:b,topLevelTrafficSourceDepth:P,trafficSource:w,searchQuery:S,storyPinTaggedProductsResource:k,pinResource:j,isORBACGA:A,viewer:C,orbacActingAs:D}=this.props,{showStructuredDescription:E,...I}=this.props,T=_({isPdpPlus:!0}),{viewportSize:F,didShortClickThrough:z,firstLoadComplete:L,visualState:{carouselData:M}}=this.state,{isWideVideo:Z}=(0,e1.Z)((0,e6.Z)({pin:v}))||{},B=tb({isWideVideo:Z,viewportSize:F}),{recommendation_reason:O}=v,N={name:"RelatedModulesResource",options:{pin_id:v.id,context_pin_ids:p,homefeed_source_sig:O&&["NAVBOOST_P2P","NAVBOOST_PFY","INSTANT_PFY_NON_MATERIALIZABLE","P2P","P2P_CLICKTHROUGH","FRESH_TEXT_EMBEDDINGS","INTENTIONAL_DISTRIBUTION_GEMINI_V5"].includes(O.reason)&&O.reason_id,page_size:12,search_query:S,source:w,top_level_source:b,top_level_source_depth:P,is_pdp:v.is_eligible_for_pdp}},K=(0,e_.q6)(C,null===(e=v.pinner)||void 0===e?void 0:e.id,D),U=!!v.id&&(!A||!K),H=U&&(0,R.jsx)(eE,{pinKey:{type:"deprecated",data:v},relatedResourceOptions:N,setRelatedPinsHeaderRef:this.setRelatedPinsHeaderRef,topLevelTrafficSource:b,viewParameter:(0,e9.Z)({hasPin:!!v,hasPinRichMetadata:!!v.rich_metadata,hasPinRichMetadataProducts:!!(null!==(t=v.rich_metadata)&&void 0!==t&&t.products),hasPinRichMetadataArticle:!!(null!==(i=v.rich_metadata)&&void 0!==i&&i.article),hasPinRichMetadataRecipe:!!(null!==(n=v.rich_metadata)&&void 0!==n&&n.recipe),hasPinStoryPinData:!!v.story_pin_data}),viewportSize:F}),{data:V}=x||{},G=!!V&&V.length>0&&V.some(e=>(0,eU.Z)(e)),W=G&&!((null!==(l=null===(a=v.rich_summary)||void 0===a?void 0:a.products)&&void 0!==l?l:[]).length||(null!==(r=null===(o=v.rich_metadata)||void 0===o?void 0:o.products)&&void 0!==r?r:[]).length),{data:$}=k||{},q=this.isWideCarousel(),Y=q&&B?em.Ch:em.CI,X=q?em.Gb:em.Kn,Q="lg"===F?X-Y:Y,J=L&&this.isWideCarousel(),ee=J&&(0,R.jsx)(eu,{disabled:!E,children:(0,R.jsx)(e7,{containerId:"InnerScrollContainer",children:(0,R.jsx)(eK,{carouselSlots:null!==(s=null==M?void 0:M.carousel_slots)&&void 0!==s?s:[],commerceData:T,onImageSelect:this.handleCarouselSwipe,pinId:v.id,selectedIndex:(null==M?void 0:M.index)||0,viewParameter:(0,e9.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.rich_metadata,hasPinRichMetadataProducts:!!(null!==(d=this.props.pin.rich_metadata)&&void 0!==d&&d.products),hasPinRichMetadataArticle:!!(null!==(u=this.props.pin.rich_metadata)&&void 0!==u&&u.article),hasPinRichMetadataRecipe:!!(null!==(c=this.props.pin.rich_metadata)&&void 0!==c&&c.recipe),hasPinStoryPinData:!!this.props.pin.story_pin_data}),size:"sm"})})}),et=J&&(0,R.jsx)(h.xu,{width:tg.sm}),ei=(0,R.jsx)(g.Z,{isVideoPin:f.isVideoPin,taggedProducts:V,pin:v,pinResource:j,topLevelTrafficSource:b,didShortClickThrough:z,firstLoadComplete:L,viewportSize:F,renderRelatedModulesContent:()=>H,renderBodyContent:()=>this.renderBodyContent({ideaPinStelaCategories:y,isEligibleForStlFlyout:W,taggedProducts:V,relatedResourceOptions:N,storyPinTaggedProducts:$,maxWidth:X}),onWrapperClick:this.onWrapperClick,beforeBodyContent:ee,afterBodyContent:et});return(0,R.jsx)(m.Xl,{classProps:{...I,location:{pathname:"",search:"",hash:""}},classState:this.state,commerceData:T,showCloseupContentRight:B,showProductDetailPage:!0,isWideCarousel:q,paneWidth:Y,maxWidth:X,descriptionPaneWidth:Q,handleCarouselSwipe:this.handleCarouselSwipe,handleFocus:this.handleFocus,setResultScrollContainerRef:this.setResultScrollContainerRef,handleScroll:this.handleScroll,handleBackButtonClick:this.handleBackButtonClick,closeupContent:ei,onRelatedInterestsBannerDismiss:this.onRelatedInterestsBannerDismiss})}}let tw=(0,f.Z)(function(e){var t,i,n,l,a,r,o;let{pin:d,pinResource:u,pinId:c,viewer:h,deepLinkBackGoesToBoard:m,goBack:g,routePush:y,trafficSource:f}=e,{logContextEvent:x}=(0,Z.v)(),b=(0,ti.Z)(),P=(0,F.ZP)(),w=(0,e5.B)(),S=(0,ec.F)(),{checkExperiment:k}=S,j=!!(d.is_eligible_for_pdp&&!d.story_pin_data&&null!==(t=d.formatted_description)&&void 0!==t&&t.components),{setMostRecentPinId:A,setMostRecentPinImage:C}=(0,tu.f)(),D=(0,el.Z)({type:"deprecated",data:d}),E=(0,e3.Z)({type:"deprecated",data:d}),I=(0,e2.sY)(null===(i=d.embed)||void 0===i?void 0:i.type)&&"gif"||!!d.is_eligible_for_pdp&&"productPin"||(null===(n=d.rich_summary)||void 0===n?void 0:n.type_name)==="recipe"&&"recipePin"||d.story_pin_data_id&&"storyPin"||!!(null!==(l=d.videos)&&void 0!==l&&l.video_list)&&"video"||"image",T="pin_closeup_lcp",z=(0,e4.PY)(T),{conversationOpen:L}=(0,ts.Z5)(),{anyEnabled:M}=k("web_m10n_business_access_orbac_www"),{anyEnabled:B}=k("web_m10n_business_access_orbac_www"),O=(0,eh.Z)(),N=B?(0,e_.lJ)(h,O):void 0;(0,p.useEffect)(()=>{z&&(0,e4.ku)({stopwatchName:T,binaryAnnotationName:"pinType",value:I,annotationType:"STRING"})},[z,I]);let K=null===(a=d.sponsorship)||void 0===a?void 0:null===(r=a.sponsor)||void 0===r?void 0:r.id,U=!d.is_repin&&!!K,H=(0,ep.Z)(K&&U&&h.isAuth&&"storyPin"===I?{name:"ApiResource",options:{url:`/ads/v4/business_access/businesses/${K}/me/ad_accounts_permissions/`}}:null),{onHandleBackButtonClick:V}=(0,tr.Z)({commerceOptions:{isPdpPlus:!0},deepLinkBackGoesToBoard:m,element:13310,goBack:g,routePush:y,trafficSource:f,viewer:h,requestContext:w,pinKey:{type:"deprecated",data:d}},x),G=h.isAuth&&(0,_.Gv)({orbacSubjectId:N,pinIsRepin:d.is_repin,pinPinnerId:null===(o=d.pinner)||void 0===o?void 0:o.id,viewerId:h.id,viewerIsPartner:h.isPartner}),{data:W,isLoaded:$}=(0,ep.Z)(G?{name:"ApiResource",options:{url:`/v3/trends/partner/${h.id||""}/trends_for_pin/${d.id}/`,data:{number_terms_to_return:10}}}:null),q=(0,v.Z)({pin:d,pinId:c,pinResource:u}),{getMainPinImage:Y}=(0,e8.Z)({pinKey:{type:"deprecated",data:d}});return(0,R.jsx)(tP,{...e,initialState:q,conversationOpen:L,dispatch:(0,s.useDispatch)(),experimentsClient:S,getSterlingURL:(0,eV.Z)(),getStringifiedCommerceAuxData:D,pwtSurfaceContext:(0,et.E)(),requestContext:w,setMostRecentPinId:A,setMostRecentPinImage:C,toastManager:(0,tn.F9)(),i18n:P,orbacActingAs:M?O:{},logContextEvent:x,showStructuredDescription:j,userBusinessRoleResource:H,isORBACGA:B,trackInteraction:b,trendsData:{data:W,isLoaded:!G||$},onHandleBackButtonClick:V,mainImage:Y(),pinFormattedLink:E})});var tS=i(558068),tk=i(915071);function tj(e){return(0,R.jsx)(u.l6,{...e,CloseupComponent:tw})}function tA(e){let t=(0,s.useDispatch)(),i=(0,ea.Z)(),n=(0,d.useParams)(),l=(0,tS.aX)(),a={...e,history:(0,d.useHistory)(),location:(0,d.useLocation)(),params:n,requestContext:(0,e5.B)(),searchPinCloseupViewed:(e,i)=>t((0,tk.Y4)(e,i)),viewer:i},{checkExperiment:r}=(0,ec.F)();return(0,R.jsx)(c.Z,{pinId:n.id||"",orbacSubjectId:(0,e_.lJ)(i,(0,eh.Z)()),children:({pinResource:e})=>(0,p.createElement)(tj,{...a,checkExperiment:r,currentHistoryStack:l,pinResource:e,key:n.id})})}},170540:(e,t,i)=>{"use strict";i.d(t,{S:()=>y,Z:()=>x});var n,l=i(667294);i(167912);var a=i(883119),r=i(575576),o=i(372169),s=i(357998),d=i(329734),u=i(692627),c=i(773285),p=i(430323),h=i(786871),_=i(92331),m=i(8742),g=i(785893);let y=()=>(0,g.jsx)(l.Fragment,{children:Array(12).fill(void 0).map((e,t)=>(0,g.jsx)(a.xu,{width:o.jh,marginEnd:4},`empty-pin-${t}`))}),v=void 0!==n?n:n=i(599891),f=e=>{var t;return{entityId:e.id,richMetadata:e.rich_metadata&&{article:e.rich_metadata.article&&{__typename:"ArticleMetadata"},products:e.rich_metadata.products&&e.rich_metadata.products.map(()=>({__typename:"RichPinProductMetadata"})),recipe:(null===(t=e.rich_metadata)||void 0===t?void 0:t.recipe)&&{__typename:"RecipeMetadata"}},storyPinData:e.story_pin_data&&{__typename:"StoryPinData"}}};function x(e){var t,i,n;let{relatedPins:l,pinKey:o,initialSlotIndex:x}=e,{data:b}=(0,s.Q)(v,o,{useLegacyAdapter:f}),P=(0,h.Z)(),{checkExperiment:w}=(0,c.F)(),S=!!l.find(e=>"pin"===e.type&&e.is_eligible_for_pdp),k=S&&w("web_product_pin_rep_redesign").anyEnabled,j=({data:e,itemIdx:t})=>{var i,n,l,a,o,s;let c;let p=(0,d.Z)(P);return c="story"===e.type?"BUBBLE_ONE_COL"===e.story_type?(0,g.jsx)(_.Z,{bubbles:e.objects,id:e.id,referringSource:e.referring_source,slotIndex:t,storyType:e.story_type,title:e.title,viewType:3,viewParameter:(0,u.Z)({hasPin:!!b,hasPinRichMetadata:!!b.richMetadata,hasPinRichMetadataProducts:!!(null!==(i=b.richMetadata)&&void 0!==i&&i.products),hasPinRichMetadataArticle:!!(null!==(n=b.richMetadata)&&void 0!==n&&n.article),hasPinRichMetadataRecipe:!!(null!==(l=b.richMetadata)&&void 0!==l&&l.recipe),hasPinStoryPinData:!!b.storyPinData})}):null:(0,g.jsx)(m.ZP,{imageOnlyOption:p?"image-only":"default",pin:e,pinId:e.id,authDesktopSurface:k?"PdpRelatedPinGrid":"RelatedPinGrid",componentType:13176,duploQueryRef:null,slotIndex:t+x,viewData:{pin_id:b.entityId},viewParameter:(0,u.Z)({hasPin:!!b,hasPinRichMetadata:!!b.richMetadata,hasPinRichMetadataProducts:!!(null!==(a=b.richMetadata)&&void 0!==a&&a.products),hasPinRichMetadataArticle:!!(null!==(o=b.richMetadata)&&void 0!==o&&o.article),hasPinRichMetadataRecipe:!!(null!==(s=b.richMetadata)&&void 0!==s&&s.recipe),hasPinStoryPinData:!!b.storyPinData}),viewType:3}),(0,g.jsx)(r.Z,{children:c})};return(0,g.jsx)(p.Z,{viewParameter:(0,u.Z)({hasPin:!!b,hasPinRichMetadata:!!b.richMetadata,hasPinRichMetadataProducts:!!(null!==(t=b.richMetadata)&&void 0!==t&&t.products),hasPinRichMetadataArticle:!!(null!==(i=b.richMetadata)&&void 0!==i&&i.article),hasPinRichMetadataRecipe:!!(null!==(n=b.richMetadata)&&void 0!==n&&n.recipe),hasPinStoryPinData:!!b.storyPinData}),component:86,children:(0,g.jsxs)(a.xu,{dangerouslySetInlineStyle:{__style:{marginLeft:"5px"}},children:[(0,g.jsx)(a.Rk,{items:l,renderItem:({data:e,itemIdx:t})=>j({data:e,itemIdx:t})}),(0,g.jsx)(y,{})]})})}},712331:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(326884);let l=[n.gO.ADMIN,n.gO.CAMPAIGN_MANAGER],a=l},616106:(e,t,i)=>{"use strict";i.d(t,{Z:()=>j});var n=i(667294),l=i(702664),a=i(442279),r=i(883119),o=i(237693),s=i(898781),d=i(66699),u=i(785893);let c=({collapsed:e,commentCount:t,onIconClick:i,showCommentCount:n})=>{let l=(0,s.ZP)(),a=t&&n?(0,d.Z)(l.ngettext('{{ count }} Comment', '{{ count }} Comments', t, 'Closeup.CommentsHeading.CommentsCountLabel', 'Comments on a Pin'),{count:t.toString()}):l._('Comments', 'comments on a Pin', 'comments on a Pin');return(0,u.jsx)(o.Z,{collapsed:e,heading:a,onClick:i,showArrow:t>0})};var p=i(283855),h=i(44715),_=i(780280),m=i(784590),g=i(50286),y=i(139405),v=i(664569),f=i(966676),x=i(44004),b=i(600147),P=i(274415),w=i(492583);let S=(0,a.P1)((e,t,i)=>i,({feeds:e},t)=>e[`${w.Z.UNIFIED_COMMENTS}:${t}`],({didItData:e})=>e,(e,t,i)=>(null==t?void 0:t.map(({id:t,type:n})=>{let l="aggregatedcomment"===n.toLowerCase()?e[t]:i[t];return l}).filter(e=>e))||[]),k=({aggregatedPinId:e,closeupAttributionId:t,closeupAttributionUsername:i,commentCount:a,commentCountInUSM:o,commentsDisabled:s,commentsLoadedCallback:d,featuredCommentId:p,isCommentSectionOpen:P,isLoadingNewCreatedComment:w,isORBACProfileManager:k,isVideo:j,onCommentSectionClick:A,photoCount:C,pinId:D,pinnerId:E,scrollContainerRef:I,shouldShowHeading:T,storyPinDataId:F,viewParameter:z})=>{let R=(0,l.useDispatch)(),{isBot:L}=(0,_.B)(),M=(0,g.HG)(),Z=(0,y.lV)(),{toggleAggregatedCommentHelpful:B,toggleAggregatedCommentLike:O}=(0,y.nf)(),N=Math.max(a+C,0),K=N>0,U=(0,n.useRef)(!K),H=(0,m.Z)(!U.current&&e?(0,x.w)({aggregatedPinDataId:e,featuredCommentIds:p?[p]:[],isDesktop:M}):null),{fetchMore:V,isAtEnd:G,isFetching:W,isLoaded:$}=H,q=(0,l.useSelector)(t=>S(t,e,Z)),{updateCloseupBodyContainerHeight:Y}=(0,n.useContext)(f.ZP),[X,Q]=(0,n.useState)(!1),[J,ee]=(0,n.useState)(void 0),[et,ei]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{Y&&Y()},[Y]),(0,n.useEffect)(()=>{null==d||d($||!K)},[d,$,K]),(0,n.useEffect)(()=>{setTimeout(()=>{Q(!0)},1e3)},[]),(0,u.jsxs)(r.kC,{dataTestId:"canonical-card",direction:"column",gap:{row:0,column:6},children:[T&&(0,u.jsx)(c,{commentCount:s?0:Math.max(a+C,0),collapsed:!P,onIconClick:()=>{A&&A(!P)},showCommentCount:!o}),X&&P&&(0,u.jsxs)(n.Fragment,{children:[!!I&&(0,u.jsx)(r.gr,{container:I,isAtEnd:G,isFetching:W,fetchMore:L?void 0:V}),(0,u.jsx)(h.Z,{comments:q,commentsDisabled:s,featuredCommentId:p,gapSize:5,isDesktop:!0,isLoaded:$||!K,isLoading:$&&w,toggleReplyComposer:e=>{ee(null==e?void 0:e.id)},parentId:null!=e?e:void 0,parentType:v.o.pin,replyingToCommentId:J,toggleHelpful:(e,t,i)=>()=>{i?R((0,b.YH)({didItDataId:e,isMarkedHelpfulByMe:t})):B({aggregatedCommentId:e,isMarkedHelpfulByMe:t})},toggleLike:(e,t,i)=>()=>{i?R((0,b.wH)({didItDataId:e,isLikedByMe:t})):O({aggregatedCommentId:e,isLikedByMe:t})},userAvatarSize:"sm",isORBACProfileManager:k,aggregatedPinDataId:e,closeupAttributionId:t,closeupAttributionUsername:i,pinId:D,isVideo:j,storyPinDataId:F,pinnerId:E,showReactionListForComment:ei,reactionListCommentId:et,viewParameter:z})]})]})};function j(e){let t=(0,l.useDispatch)();return(0,u.jsx)(k,{...e,featuredCommentId:(0,p.K)(),pinUpdateCommentCount:(e,i)=>t((0,P.R)(e,i))})}},785430:(e,t,i)=>{"use strict";i.d(t,{$y:()=>tE,Xl:()=>tD,f9:()=>tI,z8:()=>tT,Q2:()=>tF,te:()=>tk});var n,l,a,r,o,s=i(667294),d=i(702664),u=i(616550),c=i(883119),p=i(994608),h=i(874259),_=i(258140),m=i(898781),g=i(784590),y=i(8742),v=i(785893);function f({newsId:e,currentPinId:t}){let i=(0,g.Z)({name:"NewsHubDetailsResource",options:{news_id:e,page_size:3},noCache:!0}),n=i.data||[],l=n.reduce((e,t)=>(e||[]).concat(t&&t.content_items||[]),[]).map(({content_object:e})=>e).filter(e=>e.id!==t).slice(0,14),a=(0,m.ZP)(),r=a._('Inspired by you', 'closeup.notifModule.heading', 'The header for the notif pins module for pins recommended in the same email'),o=(e,t)=>"pin"===e.type?(0,v.jsx)(c.xu,{height:236,width:236,marginEnd:4,children:(0,v.jsx)(y.ZP,{duploQueryRef:null,pin:e,pinId:e.id,pinImageCrop:{height:236,width:236},slotIndex:t,viewParameter:3082,viewType:3})},t):null;return l.length>0&&(0,v.jsxs)(c.xu,{marginTop:10,marginBottom:10,children:[(0,v.jsx)(c.X6,{size:"400",align:"center",children:r}),(0,v.jsx)(c.xu,{marginTop:4,marginStart:12,display:"block",fit:!0,children:(0,v.jsx)(c.kC,{direction:"row",gap:1,overflow:"scrollX",flex:"grow",children:l.map((e,t)=>(0,v.jsx)(c.kC.Item,{children:o(e,t)},e.id))})})]})}i(167912);var x=i(215292);function b({handleClick:e,pins:t,title:i,viewportSize:n}){if(t.length<1)return null;let l="narrow"===n,a=Math.min(t.length,(l?4:5)-1),r=t.slice(0,a+1),o=l?553:807,s=l?266:292,d=l?118:139,u=l?176:208,p=r.map(({description:e,entityId:t,image236x:i},n)=>{var l,a,r;return(0,v.jsx)(c.xu,{width:d,height:u,marginStart:0!==n?4:0,overflow:"hidden",dangerouslySetInlineStyle:{__style:{borderRadius:"7px"}},children:(0,v.jsx)(c.zd,{wash:!0,width:d,height:u,children:(0,v.jsx)(c.Ee,{alt:null!=e?e:"",src:null!==(l=null==i?void 0:i.url)&&void 0!==l?l:"",naturalWidth:null!==(a=null==i?void 0:i.width)&&void 0!==a?a:1,naturalHeight:null!==(r=null==i?void 0:i.height)&&void 0!==r?r:1,fit:"cover"})})},t)});return(0,v.jsx)(x.q,{children:({hovered:t,onMouseEnter:n,onMouseLeave:l})=>(0,v.jsx)(c.iP,{onMouseEnter:n,onMouseLeave:l,onTap:e,children:(0,v.jsxs)(c.xu,{"data-test-id":"shop-entry-container",display:"flex",justifyContent:"center",color:t?"secondary":"default",direction:"column",position:"relative",width:o,height:s,marginBottom:7,dangerouslySetInlineStyle:{__style:{borderRadius:"23px",marginTop:"18px"}},children:[(0,v.jsx)(c.xu,{marginBottom:4,children:(0,v.jsx)(c.xv,{align:"center",size:"300",weight:"bold",children:i})}),(0,v.jsx)(c.kC,{alignItems:"stretch",justifyContent:"center",width:o,children:p})]})})})}var P=i(407043),w=i(916117),S=i(564194);let k=void 0!==n?n:n=i(956886),j=void 0!==l?l:l=i(45159);function A(e){let t=(0,u.useHistory)(),{logContextEvent:i}=(0,P.v)(),{pinKey:n,searchQuery:l,slotIndex:a,storyKey:r,trafficSource:o,viewParameter:s,viewportSize:d}=e,{data:c}=(0,w.u)(k,n),{data:p}=(0,w.u)(j,r),{contentIds:h,storyId:_,objects:m,storyType:g,storyTitle:y}=p,f=(null==y?void 0:y.format)||"";return m&&m.length<1?null:(0,v.jsx)(S.Z,{componentType:0,contextLogData:{content_ids:(h||[]).map(e=>`pin:${e}`).join("|"),story_id:_,story_type:g},impressionType:"Story",loggingId:_,slotIndex:a,viewParameter:s,viewType:3,children:(0,v.jsx)(b,{pins:m?m.map(({entityId:e,description:t,imageSpec_236x:i})=>({description:t,entityId:e||"",image236x:i&&{width:i.width,height:i.width,url:i.url}})):[],title:f,handleClick:()=>{i({event_type:101,view_type:3,view_parameter:139,component:200,aux_data:{story_id:_,story_type:g}});let e=[...o&&"unknown"!==o?[...l?[`q=${l}`]:[],`rs=${o}`]:[],"surfaceType=stela"];t.push(`/pin/${c.entityId}/visual-search/?${e.join("&")}`)},viewportSize:d})})}var C=i(360961),D=i(438799);let E=void 0!==a?a:a=i(551542);function I({clientTrackingParams:e,pinKey:t,searchQuery:i,setRelatedPinsHeaderRef:n,slotIndex:l,story:a,trafficSource:r,viewParameter:o,viewportSize:s}){let{data:d}=(0,w.u)(E,t);if(!a)return null;if("related_products_collage"===a.story_type)return(0,v.jsx)(c.xu,{alignSelf:"center",children:(0,v.jsx)(A,{pinKey:d,searchQuery:i,slotIndex:l,storyKey:{type:"deprecated",data:a},trafficSource:r,viewParameter:o,viewportSize:s})});if("SKIN_TONE_FILTER_QUERIES"===a.story_type)return(0,v.jsx)(c.xu,{alignSelf:"center",children:(0,v.jsx)(D.Z,{story:a})});if("related_modules_header"===a.story_type){var u;return(0,v.jsx)(c.xu,{"data-test-id":"related-modules-header",ref:n,children:(0,v.jsx)(C.Z,{clientTrackingParams:e,slotIndex:l,storyId:a.id,storyType:a.story_type,title:null===(u=a.title)||void 0===u?void 0:u.format,viewParameter:o})})}return null}var T=i(575576),F=i(361259),z=i(356997),R=i(444445),L=i(149230),M=i(96939);let Z=[81];function B({data:e}){let{action:t,container_type:i,objects:n,title:l}=e||{},{format:a}=null!=l?l:{},{text:r,url:o,user:s={}}=null!=t?t:{},{image_large_url:d,full_name:u}=s,p=(null==n?void 0:n.find(e=>"pin"===e.type))||{},{images:h}=p,_=null,m=(0,L.Z)({url:o})?"nofollow":"none";return 81===i&&(_=(0,v.jsxs)(c.kC,{direction:"column",gap:{row:0,column:2},children:[(0,v.jsxs)(c.xu,{position:"relative",children:[(0,v.jsx)(M.Z,{coverImages:null!=h?h:void 0,height:R.yF,text:null!=a?a:"",textType:"text",url:null!=o?o:""}),s.imageUrl&&(0,v.jsx)(c.xu,{position:"absolute",top:!0,left:!0,padding:2,children:(0,v.jsx)(z.qE,{outline:!0,size:"md",src:null!=d?d:"",name:u||""})})]}),(0,v.jsx)(c.ZP,{rel:m,fullWidth:!0,size:"lg",text:null!=r?r:"",href:null!=o?o:""})]})),_}var O=i(112690),N=i(18514),K=i(329734),U=i(692627),H=i(317254),V=i(53325),G=i(430323),W=i(92331),$=i(67347);function q(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let Y=e=>({height:V.zX*e,width:V.zX}),X=void 0!==r?r:r=i(519155);class Q extends s.Component{constructor(...e){var t,i;super(...e),q(this,"state",{imageHeightModifier:null===(t=this.props.relatedPinsResource.auxData)||void 0===t?void 0:null===(i=t.grid_layout)||void 0===i?void 0:i.w_h_ratio}),q(this,"scrollContainerRef",(0,s.createRef)()),q(this,"renderItem",({data:e,itemIdx:t})=>{var i,n,l,a,r,o;let s;let{lfvExperiences:d}=this.props,{imageHeightModifier:u}=this.state;if("story"===e.type)(0,$.nP)("web_story_card_type",{sampleRate:1,tags:{story_type:e.story_type||"unknown",surface:"closeup"}}),s="BUBBLE_ONE_COL"===e.story_type?(0,v.jsx)(W.Z,{bubbles:e.objects,id:e.id,referringSource:e.referring_source,slotIndex:t,storyType:e.story_type,title:e.title,viewType:3,viewParameter:(0,U.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.richMetadata,hasPinRichMetadataProducts:!!(null!==(i=this.props.pin.richMetadata)&&void 0!==i&&i.products),hasPinRichMetadataArticle:!!(null!==(n=this.props.pin.richMetadata)&&void 0!==n&&n.article),hasPinRichMetadataRecipe:!!(null!==(l=this.props.pin.richMetadata)&&void 0!==l&&l.recipe),hasPinStoryPinData:!!this.props.pin.storyPinData})}):null,e.container_type&&Z.includes(e.container_type)&&(s=(0,v.jsx)(B,{data:e}));else{let i=(0,K.Z)(d);s=(0,v.jsx)(y.ZP,{duploQueryRef:null,imageOnlyOption:i?"image-only":"default",pin:e,pinId:e.id,pinImageCrop:u?Y(u):null,authDesktopSurface:"RelatedPinGrid",componentType:13007,slotIndex:t,viewData:{pin_id:this.props.pin.entityId},viewParameter:(0,U.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.richMetadata,hasPinRichMetadataProducts:!!(null!==(a=this.props.pin.richMetadata)&&void 0!==a&&a.products),hasPinRichMetadataArticle:!!(null!==(r=this.props.pin.richMetadata)&&void 0!==r&&r.article),hasPinRichMetadataRecipe:!!(null!==(o=this.props.pin.richMetadata)&&void 0!==o&&o.recipe),hasPinStoryPinData:!!this.props.pin.storyPinData}),viewType:3})}return(0,v.jsx)(T.Z,{children:s})})}componentDidMount(){var e,t,i;this.props.logContextEvent({event_type:13,view_parameter:(0,U.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.richMetadata,hasPinRichMetadataProducts:!!(null!==(e=this.props.pin.richMetadata)&&void 0!==e&&e.products),hasPinRichMetadataArticle:!!(null!==(t=this.props.pin.richMetadata)&&void 0!==t&&t.article),hasPinRichMetadataRecipe:!!(null!==(i=this.props.pin.richMetadata)&&void 0!==i&&i.recipe),hasPinStoryPinData:!!this.props.pin.storyPinData}),view_type:3,component:86})}componentDidUpdate(e){var t,i,n,l;let{relatedPinsResource:a}=this.props;this.state.imageHeightModifier||null!==(t=e.relatedPinsResource.auxData)&&void 0!==t&&null!==(i=t.grid_layout)&&void 0!==i&&i.w_h_ratio||null===(n=a.auxData)||void 0===n||null===(l=n.grid_layout)||void 0===l||!l.w_h_ratio||this.setState({imageHeightModifier:a.auxData.grid_layout.w_h_ratio}),this.scrollContainerRef.current=window}render(){var e,t,i;let{pin:n,relatedPinsResource:l}=this.props,{data:a,fetchMore:r,isAtEnd:o,isFetching:s,isLoaded:d}=l;if(!d)return null;let u=`relatedPins:${n.entityId}`,p=["related_products_button_footer","related_domain_carousel","related_products_feed_header"],h=(a||[]).slice(1).filter(e=>!p.includes(null==e?void 0:e.story_type));return(0,v.jsxs)(c.xu,{children:[h&&this.props.hasSimplifiedPinGridExpLoaded&&(0,v.jsx)(G.Z,{viewParameter:(0,U.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.richMetadata,hasPinRichMetadataProducts:!!(null!==(e=this.props.pin.richMetadata)&&void 0!==e&&e.products),hasPinRichMetadataArticle:!!(null!==(t=this.props.pin.richMetadata)&&void 0!==t&&t.article),hasPinRichMetadataRecipe:!!(null!==(i=this.props.pin.richMetadata)&&void 0!==i&&i.recipe),hasPinStoryPinData:!!this.props.pin.storyPinData}),component:86,children:(0,v.jsx)(H.Z,{isAtEndOfFeed:o,itemCount:h.length,children:(0,v.jsx)(N.default,{columnWidth:R.yF,renderItem:this.renderItem,items:h,loadItems:r,cacheKey:u,isFetching:s,paddingStyle:"simplified",scrollContainerRef:this.scrollContainerRef,serverRender:!0})})}),(0,v.jsx)(c.kC,{alignItems:"stretch",justifyContent:"center",width:"100%",children:(0,v.jsx)(c.$j,{accessibilityLabel:this.props.i18n._('Loading related products results', 'closeup.relatedProducts.results', 'Accessibility label for loading related products results'),show:s})})]})}}function J({pinKey:e,...t}){let i=(0,m.ZP)(),n=(0,O.Z)(),{hasSimplifiedPinGridExpLoaded:l}=(0,F.$)(),{data:a}=(0,w.u)(X,e);return(0,v.jsx)(Q,{...t,pin:a,hasSimplifiedPinGridExpLoaded:l,i18n:i,logContextEvent:n})}var ee=i(786871);let et=new Set(["related_modules_header","related_products_feed_header"]),ei=new Set([...et,"related_domain_carousel","related_products_collage","SKIN_TONE_FILTER_QUERIES"]),en=void 0!==o?o:o=i(223884);function el({pinKey:e,searchQuery:t,relatedResourceOptions:i,setRelatedPinsHeaderRef:n,trafficSource:l,viewParameter:a,viewportSize:r,clientTrackingParams:o}){let s=(0,g.Z)({name:i.name,options:i.options}),d=(0,ee.Z)(),{data:u}=(0,w.u)(en,e);return(0,v.jsxs)(c.xu,{"data-test-id":"relatedPins",display:"flex",direction:"column",flex:"grow",position:"relative",children:[(s.data||[]).filter(e=>ei.has(e.story_type)).map((e,i)=>(0,v.jsx)(c.xu,{display:"flex",direction:"column",children:(0,v.jsx)(I,{clientTrackingParams:o,pinKey:u,searchQuery:t,setRelatedPinsHeaderRef:n,slotIndex:i,story:e,trafficSource:l,viewParameter:a,viewportSize:r})},`related-module-${e.id}`)),(0,v.jsx)(c.xu,{children:(0,v.jsx)(J,{lfvExperiences:d,pinKey:u,relatedPinsResource:s})})]})}var ea=i(737930),er=i(755742);class eo extends s.PureComponent{constructor(...e){var t,i,n;super(...e),t="handleKeyDown",i=e=>{let{onClose:t,goToNext:i,goToPrevious:n}=this.props,l=e.keyCode||e.code;if(e.ctrlKey||e.metaKey)return;let a=((document.activeElement||{}).tagName||"").toLowerCase();["input","select","button","textarea"].includes(a)||document.activeElement&&document.activeElement.isContentEditable||(l===er.Z.LEFT?(e.preventDefault(),e.stopPropagation(),n&&n(),(0,$.nP)("web_keydown_left")):l===er.Z.RIGHT?(e.preventDefault(),e.stopPropagation(),i&&i(),(0,$.nP)("web_keydown_right")):l===er.Z.ESCAPE&&(e.preventDefault(),e.stopPropagation(),t()))},(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in this?Object.defineProperty(this,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[t]=i}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}render(){return null}}var es=i(319247),ed=i(608440),eu=i(801827),ec=i(128503),ep=i(391254);let eh="SelectInterest",e_={__style:{animationName:`${eh}_AnimateIn, ${eh}_CircleAnimateOut`,animationDuration:"0.3s, 0.3s",animationDelay:"0.3s, 1s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out",backgroundColor:"rgba(196, 196, 196, 0.1)"}},em={__style:{animationName:`${eh}_AnimateIn, ${eh}_AnimateOut`,animationDuration:"0.3s, 0.5s",animationDelay:"0.3s, 1.1s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out"}},eg=()=>`
47
+ @keyframes ${eh}_AnimateIn {
48
+ from {
49
+ transform: scale(0.0);
50
+ opacity: 0;
51
+ }
52
+ to {
53
+ opacity: 1;
54
+ transform: scale(1.0);
55
+ }
56
+ }
57
+ @keyframes ${eh}_CircleAnimateOut {
58
+ from {
59
+ transform: scale(1.0);
60
+ opacity: 1;
61
+ }
62
+ to {
63
+ transform: scale(0.8);
64
+ opacity: 0;
65
+ }
66
+ }
67
+ @keyframes ${eh}_AnimateOut {
68
+ from {
69
+ transform: translateX(0) translateY(0) scale(1.0);
70
+ opacity: 1;
71
+ }
72
+ to {
73
+ transform: translateX(-25px) translateY(-200px) scale(0.1);
74
+ opacity: 0;
75
+ }
76
+ }
77
+ `,ey=function({anchor:e,endAnimation:t,interest:i}){let n;let[l,a]=(0,s.useState)(!1),{width:r,height:o,url:d}=i.images["400x"],u=()=>{t(i.id)},p=()=>{a(!0),n=setTimeout(u,2e3)},h=()=>{let e=new Image;e.src=null!=d?d:"",e.onload=p};(0,s.useEffect)(()=>(h(),()=>{n&&clearTimeout(n)}),[]);let{top:_=0,left:m=0,bottom:g=0,right:y=0}=(null==e?void 0:e.getBoundingClientRect())||{};return!!e&&l&&(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(ep.Z,{unsafeCSS:eg()}),(0,v.jsxs)(c.xu,{dangerouslySetInlineStyle:{__style:{top:(_+g)/2+100,left:(m+y)/2+-75}},display:"flex",justifyContent:"center",position:"fixed",width:200,height:200,children:[(0,v.jsx)(c.xu,{alignItems:"center",dangerouslySetInlineStyle:e_,display:"flex",height:"100%",justifyContent:"center",opacity:0,rounding:"circle",width:"100%"}),(0,v.jsx)(c.xu,{bottom:!0,dangerouslySetInlineStyle:em,height:100,left:!0,margin:"auto",opacity:0,position:"absolute",rounding:3,right:!0,top:!0,width:100,children:(0,v.jsx)(c.zd,{height:"100%",rounding:4,width:"100%",wash:!0,children:(0,v.jsx)(c.Ee,{alt:"pin-image",fit:"cover",naturalHeight:null!=r?r:1,naturalWidth:null!=o?o:1,src:null!=d?d:""})})})]})]})};var ev=i(844974),ef=i(339363),ex=i(965900),eb=i(833991),eP=i(550448),ew=i(275445),eS=i(578248);let ek="cubic-bezier(0.66, 0.025, 0.33, 0.975)",ej=()=>{let e=(0,ev.qn)("lastViewedMiniRenux");return!!(e&&Date.now()-Number(e)<2592e5)},eA=e=>`
78
+ @keyframes RelatedInterestsBanner_SlideIn {
79
+ from { transform: translateY(${e}px); }
80
+ to { transform: translateY(0); }
81
+ }
82
+ `,eC=`RelatedInterestsBanner_SlideIn 250ms forwards ${ek}`,eD=e=>({view_type:e,view_parameter:136,component:13489});function eE({onDismiss:e,relatedInterests:t,viewType:i}){let n;let{logContextEvent:l}=(0,P.v)(),a=(0,m.ZP)(),[r,o]=(0,s.useState)(!0),[p,h]=(0,s.useState)(!1),[_,g]=(0,s.useState)([]),[y,f]=(0,s.useState)(_.reduce((e,t)=>(e[t.id]=!1,e),{})),[x,b]=(0,s.useState)(),[w,S]=(0,s.useState)(),[k,j]=(0,s.useState)(),{appUI:{viewportSize:A}}=(0,ex.I)(),C=(0,u.useHistory)(),D=(0,d.useDispatch)();(0,s.useEffect)(()=>{t&&t.length>=5&&(g(t.slice(0,6)),o(!1),l({event_type:9025,view_type:i}),h(ej()),(0,ef.Nh)("viewedMiniRenux",!0),(0,ev.Nh)("lastViewedMiniRenux",Date.now()))},[t]),(0,s.useEffect)(()=>()=>{clearTimeout(x),clearTimeout(w),clearTimeout(n)},[]);let{isTooltipOnLogoButtonShown:E,logoButtonRef:I,toggleTooltipOnLogoButton:T}=(0,eP.p)(),F=()=>T(!1),z=()=>T(!0),R=()=>{E?(x&&clearTimeout(x),b(setTimeout(F,7e3))):(w&&clearTimeout(w),x&&clearTimeout(x),S(setTimeout(z,3e3)),b(setTimeout(F,1e4)))},L=e=>{o(!r);let t=e?Object.freeze({}):{element:179};j(!0),n=setTimeout(()=>j(!1),125),l({event_type:e&&(r?107:106)||101,...eD(i),...t})},M=e=>{let t=_.findIndex(t=>t.id===e.id),n=!e.is_followed,a=_.slice();a[t]={...e,is_followed:n},g(a),n&&f({...y,[e.id]:!0}),Promise.resolve(D((0,eS.bJ)({[e.id]:n},"mini_renux"))).then(()=>{n&&R(),D((0,eS.H5)(!0))}),l({event_type:101,...eD(i),element:n?1030:1151}),(0,ef.Nh)("completedMiniRenux",!0)},Z=e=>f({...y,[e]:!1}),B=a._('Welcome back!', 'relatedInterestsBanner.header', 'Welcome header on related interests banner'),O=a._('Tell us what else you\'re interested in', 'relatedInterestsBanner.subheader', 'Subheader on realted interests banner instructing users to select interests'),N=(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(c.xu,{display:"flex",marginStart:-2,children:_.slice(0,3).map(e=>{var t,i,n;let l=e.images["400x"];return l?(0,v.jsx)(c.xu,{marginStart:2,rounding:2,children:(0,v.jsx)(c.zd,{height:64,rounding:4,width:64,children:(0,v.jsx)(c.Ee,{alt:a._('Related interest image thumbnail', 'relatedInterestsBanner.image.thumbnail', 'Label for related interests image preview thumbnail'),color:e.background_color,fit:"cover",naturalHeight:null!==(t=l.height)&&void 0!==t?t:1,naturalWidth:null!==(i=l.width)&&void 0!==i?i:1,src:null!==(n=l.url)&&void 0!==n?n:""})})},l.url):null})}),(0,v.jsxs)(c.xu,{direction:"column",display:"flex",marginEnd:6,paddingX:6,children:[(0,v.jsx)(c.xv,{children:B}),(0,v.jsx)(c.X6,{size:"400",children:O})]}),(0,v.jsx)(c.zx,{onClick:()=>L(!1),text:a._('Choose topics', 'relatedInterestsBanner.button.chooseTopics', 'Choose topics button, expands banner to show topics')})]}),K=(0,v.jsxs)(c.kC,{alignItems:"center",direction:"column",justifyContent:"center",children:[(0,v.jsx)(c.xv,{align:"center",children:B}),(0,v.jsx)(c.X6,{align:"center",size:"400",children:O}),(0,v.jsx)(c.xu,{display:"flex",marginStart:-2,paddingY:4,children:_.map(e=>(0,v.jsx)(c.xu,{marginStart:2,display:"flex",direction:"column",justifyContent:"start",children:(0,v.jsx)(ew.Z,{clickHandler:()=>M(e),interest:e,interestRef:null,isSelected:e.is_followed,size:"md_120"})},e.id))}),(0,v.jsx)(c.zx,{color:"red",disabled:0===_.filter(e=>e.is_followed).length,onClick:()=>{C.push("/"),l({event_type:101,...eD(i),element:76})},text:a._('See your new home feed', 'relatedInterestsBanner.button.seeHomefeed', 'Submit selected topics and go to updated homefeed button')})]}),U=new c.H3([new c.Ry(eb.HW)]);return _.length>=5&&!p?(0,v.jsxs)(c.mh,{children:[(0,v.jsx)(ep.Z,{unsafeCSS:eA(128)}),(0,v.jsx)(c.iP,{onTap:r?()=>{}:()=>L(!1),children:(0,v.jsxs)(c.xu,{alignItems:"center",bottom:!0,borderStyle:"shadow",color:"default",dangerouslySetInlineStyle:{__style:{animation:eC,WebkitAnimation:eC,cursor:r?"default":"pointer",transition:`min-height 250ms ${ek}`}},display:"flex",minHeight:r?328:128,justifyContent:"center",left:!0,padding:8,position:"fixed",right:!0,zIndex:U,children:[!k&&(r?K:N),(0,v.jsx)(c.xu,{padding:"lg"===A||r?8:4,position:"lg"===A||r?"absolute":"static",right:!0,top:r,children:(0,v.jsx)(c.hU,{accessibilityLabel:a._('Dismiss icon button', 'relatedInterestsBanner.button.dismiss', 'Icon button to close banner'),icon:"cancel",iconColor:"darkGray",onClick:()=>e(r),size:"md"})})]})}),_.map(e=>y[e.id]?(0,v.jsx)(ey,{anchor:I,interest:e,endAnimation:Z},e.id):null)]}):null}function eI({onDismiss:e,pinId:t}){let{data:i}=(0,g.Z)({name:"PinInterestsResource",options:{hideFollowed:!0,limit:6,pinId:t}});return(0,v.jsx)(eE,{onDismiss:e,relatedInterests:i,viewType:3})}var eT=i(167137),eF=i(206663),ez=i(712331),eR=i(21353),eL=i(4294),eM=i(326884),eZ=i(834911),eB=i(737022),eO=i(768559),eN=i(319915),eK=i(673270),eU=i(147128),eH=i(322617),eV=i(327788),eG=i(502517),eW=i(186656),e$=i(507712),eq=i(251819),eY=i(926275),eX=i(411938),eQ=i(750391),eJ=i(184578),e0=i(623568),e1=i(359969),e2=i(489494),e8=i(802933),e3=i(773285),e6=i(276602),e9=i(31062),e7=i(780280),e4=i(947599),e5=i(957161),te=i(764537),tt=i(700380),ti=i(52022),tn=i(203138),tl=i(343341),ta=i(999018),tr=i(19121),to=i(717615),ts=i(231947),td=i(92261),tu=i(966676),tc=i(819303),tp=i(559073),th=i(951786),t_=i(313951),tm=i(730654),tg=i(534991),ty=i(977558),tv=i(807532),tf=i(709113);function tx(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let tb=(0,s.lazy)(()=>i.e(58789).then(i.bind(i,70943))),tP=(0,s.lazy)(()=>i.e(95246).then(i.bind(i,263551))),tw=(0,s.lazy)(()=>i.e(75754).then(i.bind(i,849086))),tS={storyPinGradientStyle:{display:"block",position:"relative",cursor:"auto"}},tk={boxShadow:"0 1px 20px 0 rgba(0, 0, 0, 0.1)",borderRadius:32};function tj({conversation_id:e,senderId:t,pinId:i}){(0,eW.Z)({url:`/v3/conversations/${e}/message/mark_seen/`,method:"POST",data:{sender:t,pin:i}})}let tA=({isWideVideo:e,viewportSize:t})=>!["md","sm"].includes(t)&&!e;class tC extends s.Component{constructor(...e){super(...e),tx(this,"state",this.props.initialState),tx(this,"removedPwtThumbnailsConstraint",!1),tx(this,"setCloseupBodyContainerRef",e=>{this.closeupBodyContainerRef=e}),tx(this,"setResultScrollContainerRef",e=>{this.resultScrollContainer||(this.resultScrollContainer=e,this.forceUpdate())}),tx(this,"setRelatedPinsHeaderRef",e=>{this.relatedPinsHeaderRef=e}),tx(this,"mounted",!1),tx(this,"handleCloseupBodyUpdate",()=>{this.updateViewportSize()}),tx(this,"updateViewportSize",()=>{if(this.mounted){let e="lg";window&&window.innerWidth<1056&&(e=window&&window.innerWidth<680?"sm":"md"),this.setState({hideBackButton:window&&("lg"===e&&window.innerWidth<=1135||["md","sm"].includes(e)&&window.innerWidth<=630),backButtonLabelFitInScreen:window&&"lg"===e&&window.innerWidth>=1340,viewportSize:e})}}),tx(this,"throttleUpdateViewportSize",(0,tt.Z)(this.updateViewportSize,50)),tx(this,"clickThroughTimer",()=>{let{setPlacementExtraContext:e}=this.props;clearInterval(this.state.intervalId),e&&e({didLongClickThrough:!0})}),tx(this,"executeClickthrough",e=>{var t,i,n;let{pinId:l,setPlacementExtraContext:a,viewer:r,trafficSource:o,logContextEvent:s,getStringifiedCommerceAuxData:d,pinFormattedLink:u}=this.props,{pin:c,didPinClickThrough:p,didShortClickThrough:h}=this.state,_=!!c.story_pin_data_id,{wasImageClicked:m,auxData:g,componentType:y=_?228:4,elementType:v=m?35:_?11157:361,viewType:f=3}=e||{},x=(0,U.Z)({hasPin:!!this.props.pin,hasPinRichMetadata:!!this.props.pin.rich_metadata,hasPinRichMetadataProducts:!!(null!==(t=this.props.pin.rich_metadata)&&void 0!==t&&t.products),hasPinRichMetadataArticle:!!(null!==(i=this.props.pin.rich_metadata)&&void 0!==i&&i.article),hasPinRichMetadataRecipe:!!(null!==(n=this.props.pin.rich_metadata)&&void 0!==n&&n.recipe),hasPinStoryPinData:!!this.props.pin.story_pin_data}),b={...d(),...g||{}};if(r&&r.isAuth&&!p&&a&&(a({didPinClickThrough:!0}),this.setState({didPinClickThrough:!0})),_&&s({event_type:102,view_type:132,view_parameter:3549,element:12971,aux_data:{pin_id:c.id,url:u}}),s({event_type:101,object_id_str:l,component:y,element:v,aux_data:{...d(),...g||{}}}),s({event_type:12,object_id_str:l,view_type:f,view_parameter:x,component:y,element:v,aux_data:b}),s({event_type:8948,view_type:f,view_parameter:x,component:y,element:v,object_id_str:l,aux_data:{click_type:"clickthrough",closeup_navigation_type:o&&(0,e0.sV)(o)?"deeplink":"click",...d(),...g||{}}}),m){let e=setInterval(this.clickThroughTimer,12e4);this.setState({intervalId:e})}this.clickThroughStartTime=Date.now(),h&&this.setState({didShortClickThrough:!1})}),tx(this,"handleFocus",()=>{let{setPlacementExtraContext:e}=this.props;clearInterval(this.state.intervalId),e&&e({didLongClickThrough:!1})}),tx(this,"handleWindowFocus",()=>{if(this.clickThroughStartTime>0){let e=Date.now()-this.clickThroughStartTime<5e3;this.setState({didShortClickThrough:e}),this.clickThroughStartTime=0}}),tx(this,"handleSaveClicked",()=>{this.props.logContextEvent({event_type:101,object_id_str:this.state.pin.id,component:4,element:0,aux_data:{...this.props.getStringifiedCommerceAuxData()}})}),tx(this,"handleBackButtonClick",()=>{this.props.onHandleBackButtonClick()}),tx(this,"handleCarouselSwipe",e=>{let{visualState:t,firstLoadComplete:i}=this.state;i&&this.setState({visualState:{...t,carouselData:{...t.carouselData,index:e}}})}),tx(this,"dispatch",(e,t)=>this.setState(t=>(0,es.Z)(t,e),t)),tx(this,"handleScroll",(0,tt.Z)(()=>{let{isOverRelatedPins:e}=this.state;if(this.relatedPinsHeaderRef){let t=ty.hu,i=this.relatedPinsHeaderRef.getBoundingClientRect().top,n=i<=t;n&&!e?this.setState({isOverRelatedPins:!0}):!n&&e&&this.setState({isOverRelatedPins:!1})}},10)),tx(this,"onToggleIdeaPinCloseupPanel",e=>{this.setState({isCloseupMaximized:!e}),this.closeupBodyContainerRef&&(this.closeupBodyContainerRef.ariaHidden=!e)}),tx(this,"onWrapperClick",e=>{e.stopPropagation(),this.handleBackButtonClick()}),tx(this,"onRelatedInterestsBannerDismiss",e=>{this.props.logContextEvent({event_type:101,view_type:3,view_parameter:136,component:e?13489:13822,element:11925}),this.setState({isRelatedInterestsBannerDismissed:!0})}),tx(this,"handleIdeaCloseupCommentIconClick",e=>{this.setState({isCommentSectionOpen:e})}),tx(this,"getClientTrackingParams",()=>{var e,t,i;let{pin:n,location:l}=this.props;return null!==(e=(0,eO.Z)({boardUrl:null===(t=n.board)||void 0===t?void 0:t.url,location:l,pinId:n.id,pinnerUserName:null===(i=n.pinner)||void 0===i?void 0:i.username,storyPinDataId:n.story_pin_data_id,trackingParams:n.tracking_params,trackingParamsMap:n.tracking_params_map}))&&void 0!==e?e:""})}componentDidMount(){var e,t,i;let{conversation_id:n,conversationOpen:l,pin:a,pinId:r,senderId:o,setPlacementExtraContext:s,shouldShowInbox:d,openInbox:u}=this.props;this.mounted=!0,n&&o&&r&&tj({conversation_id:n,senderId:o,pinId:r}),n&&(l(n),d&&u()),a.image_signature&&this.props.setMostRecentPinImage(a.image_signature),r&&this.props.setMostRecentPinId(r),s&&s({is_own_or_group_pin:this.isOwnOrGroupPin}),this.updateViewportSize(),window.addEventListener("resize",this.throttleUpdateViewportSize),window.addEventListener("focus",this.handleWindowFocus),null!==(e=window)&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&null!==(i=t.search)&&void 0!==i&&i.includes("invite_code=")&&(0,e$.Z)()}componentDidUpdate(e){let{didRepin:t,isLandingPage:i,pin:n,pinId:l,conversation_id:a,senderId:r,pinResource:{data:o},pwtSurfaceContext:s,setPlacementExtraContext:d}=this.props,{visualState:{carouselData:u},firstLoadComplete:c}=this.state;this.visualDataDidUpdate(),c&&!this.removedPwtThumbnailsConstraint&&(null==s||s.removeConstraint("thumbnailsLoaded"),this.removedPwtThumbnailsConstraint=!0),o&&!c&&(o.carousel_data&&(o.carousel_data.index=(null==u?void 0:u.index)||0),this.dispatch({type:"pinLoaded",pin:o})),a&&r&&l&&e.pinId!==l&&tj({conversation_id:a,senderId:r,pinId:l});let p={},h=e5.Z.getItem(tf.W3)||"",_=h.includes(`/pin/${l}`);_&&i&&(p.loginPageType="pin"),t&&(p.didRepin=!0),n.image_signature&&(p.pin_image_signature=n.image_signature),p.is_own_or_group_pin=this.isOwnOrGroupPin;let{didRepin:m,isLandingPage:g,pinId:y}=e,v=m!==t||i!==g||y!==l;!(0,eq.Z)(p)&&v&&d&&d({...p})}componentWillUnmount(){window.removeEventListener("resize",this.throttleUpdateViewportSize),window.removeEventListener("focus",this.handleWindowFocus),this.mounted=!1}get isOwnOrGroupPin(){var e,t;let{pin:i,viewer:n}=this.props,l=(i||{}).board||{},a=l.is_collaborative&&(0,eL.Z)(l.collaborated_by_me,null===(e=l.owner)||void 0===e?void 0:e.id,n);return!!(n.isAuth&&(null===(t=i.pinner)||void 0===t?void 0:t.id)===n.id||a)}visualDataDidUpdate(){var e,t,i,n,l,a,r;let o;let{pin:s,mainImage:d}=this.props,{visualState:{carouselData:u,mainImage:c},firstLoadComplete:p}=this.state;if(!p)return;let h=(0,eZ.Z)({carouselData:s.carousel_data,images:s.images,product:null===(e=s.rich_metadata||s.rich_summary)||void 0===e?void 0:null===(t=e.products)||void 0===t?void 0:t[0]}),_=((null==h?void 0:h.carousel_slots)||[])[0]||{},m=(0,eB.Z)(_.images),g=(null==u?void 0:u.index)||0;o=h&&((null===(i=h.carousel_slots)||void 0===i?void 0:i.length)||0)>1?{mainImage:d,carouselData:{...h,index:g},previewImage:(0,tp.Yf)(null===(a=s.images)||void 0===a?void 0:a["236x"])}:null!=m&&m.url?{mainImage:{url:m.url,height:m.height||1,width:m.width||1}}:{mainImage:d,previewImage:(0,tp.Yf)(null===(r=s.images)||void 0===r?void 0:r["236x"])},((null==u?void 0:u.id)!==(null===(n=o.carouselData)||void 0===n?void 0:n.id)||JSON.stringify(null==u?void 0:u.carousel_slots)!==JSON.stringify(null===(l=o.carouselData)||void 0===l?void 0:l.carousel_slots)||c.url!==o.mainImage.url)&&this.setState({visualState:o})}renderBodyContent({ideaPinStelaCategories:e,isEligibleForStlFlyout:t,relatedResourceOptions:i,taggedProducts:n,storyPinTaggedProducts:l,maxWidth:a,isEligibleForStaticImageIdeaPin:r}){var o,d,u,_,m,g;let{experimentsClient:{checkExperiment:y},isLimitedLogin:f,pin:x,pinDerivedData:b,pinResource:P,requestContext:w,routePush:S,searchQuery:k,showRepinOnInitialRender:j,trafficSource:A,viewer:C,orbacActingAs:D,userBusinessRoleResource:E,isORBACGA:I,trendsData:T}=this.props,{id:F,sponsorship:z,story_pin_data_id:R,story_pin_data:L}=x,M=!!R&&!r,Z=!!(null!=L&&L.is_deleted),{creator:B,sponsor:O,status:N}=z||{},{username:K}=B||{},{username:U}=O||{},{refresh:H}=P,V=I?(0,ts.lJ)(C,D):void 0,{data:G}=E||{},W=!x.is_repin&&!!U,$=U===C.username?[eM.V3.OWNER]:null==G?void 0:G.permissions,q=U===C.username||!!(null!=$&&$.find(e=>ez.Z.includes(e))),Y=U===C.username||!!(null!=$&&$.find(e=>ez.Z.includes(e))),{didShortClickThrough:X,isCloseupMaximized:Q,shopping:J,viewportSize:ee,isCommentSectionOpen:et}=this.state,{isWideVideo:ei}=(0,eJ.Z)((0,e8.Z)({pin:x}))||{},en=(0,eQ.rh)(x&&{aggregatedPinData:x.aggregated_pin_data&&{creatorAnalytics:x.aggregated_pin_data.creator_analytics&&{_30dRealtime:x.aggregated_pin_data.creator_analytics["30d_realtime"]&&{carId:x.aggregated_pin_data.creator_analytics["30d_realtime"].id}}},board:x.board&&{privacy:x.board.privacy},creatorAnalytics:x.creator_analytics&&{_30dRealtime:x.creator_analytics["30d_realtime"]&&{carId:x.creator_analytics["30d_realtime"].id}},isRepin:x.is_repin,pinner:x.pinner&&{entityId:x.pinner.id},storyPinDataId:x.story_pin_data_id,videos:x.videos&&{videoList:x.videos.video_list&&{__typename:"VideoList"}}},C,this.props.experimentsClient,V),el=(0,p.CA)(null==T?void 0:T.data,this.props.experimentsClient),ea=W&&C.isAuth&&y("mweb_web_android_ios_backend_clbc_display_controls").anyEnabled&&(q&&0===N||Y&&1===N),er=(null===(o=x.link_domain)||void 0===o?void 0:null===(d=o.official_user)||void 0===d?void 0:d.username)||(null===(u=x.native_creator)||void 0===u?void 0:u.username),eo=(0,ts.Ms)(C,D)===er,es=eo&&(0,ts.nl)(C,D)&&w.experimentsClient.checkExperiment("web_stl_tooling").anyEnabled,ed=!!(x.aggregated_pin_data||{}).has_xy_tags,eu=M&&(null!==(_=null==L?void 0:null===(m=L.pages)||void 0===m?void 0:m.length)&&void 0!==_?_:0)>0,ec=(0,eQ.WE)(C,ee,en,el,T,ea),ep=(0,v.jsx)(eN.Z,{name:"CloseupBody",children:(0,v.jsxs)(c.xu,{color:"default",direction:"column",display:"flex",ref:this.setCloseupBodyContainerRef,width:"100%",children:[(0,v.jsxs)(c.xu,{alignItems:ei?"center":void 0,direction:ei?"column":void 0,display:ei?"flex":void 0,children:[ea&&"number"==typeof N&&(0,v.jsx)(c.xu,{"data-test-id":"sponsorship-approval-module",display:"flex",children:(0,v.jsx)(eN.Z,{name:"SafeSuspense_Closeup_SponsorshipApprovalModule",children:(0,v.jsx)(e4.Z,{children:(0,v.jsx)(tw,{business_role:$,creatorUsername:null!=K?K:"",sponsorshipStatus:N,pinId:F})})})}),ec&&!M&&(0,v.jsx)(c.xu,{"data-test-id":"PartnerModule",width:"lg"===ee&&ei?a:"100%",children:(0,v.jsx)(eN.Z,{name:"SafeSuspense_Closeup_PartnerModule",children:(0,v.jsx)(e4.Z,{children:(0,v.jsx)(tP,{borderStyle:tk,isStoryPin:M,pinKey:{type:"deprecated",data:x},viewportSize:ee,trendsData:el?null==T?void 0:null===(g=T.data)||void 0===g?void 0:g.results:null,showPinStats:en})})})})]}),(0,v.jsx)(c.xu,{flex:"grow",children:(0,v.jsx)(h.Z,{isCommentSectionOpen:et,ideaPinStelaCategories:e,handleCarouselSwipe:this.handleCarouselSwipe,isCloseupMaximized:Q,onCloseupBodyUpdate:this.handleCloseupBodyUpdate,onCommentSectionClick:this.handleIdeaCloseupCommentIconClick,shopping:J,shouldShowStlCarouselForOwnPin:es,storyPinTaggedProducts:l,taggedProducts:n,data:P.data,didShortClickThrough:X,goBack:this.handleBackButtonClick,hasXYcoordinates:ed,isEligibleForStlFlyout:t,isStoryPin:M,isDeletedStoryPin:!!Z,isVideoPin:b.isVideoPin,isWideVideo:ei,onClickThrough:this.executeClickthrough,onSaveButtonClick:this.handleSaveClicked,onUpdate:H,outerBodyStyle:M?null:tk,pin:x,relatedResourceOptions:i,routePush:S,searchQuery:k,showRepinOnInitialRender:!f&&j,trafficSource:A,viewParameterType:eu?157:void 0,viewType:eu?3:void 0,clientTrackingParams:this.getClientTrackingParams(),viewportSize:ee,shouldShowPartnerModule:ec,trendsData:T,showTrendsOnPinCloseup:el,showPinStats:en})})]})});return(0,v.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:M?{...tS.storyPinGradientStyle,width:"100%"}:{}},id:"gradient","data-test-id":"gradient",display:"flex",justifyContent:"center",marginBottom:4,children:(0,v.jsxs)(s.Fragment,{children:[eu&&L&&(0,v.jsx)(te.ZP,{appConfig:{type:"authDesktop",onClickThrough:this.executeClickthrough,onNavigateBack:this.handleBackButtonClick},pin:x,storyPinData:L,onIdeaPinCloseupCommentClick:()=>{this.handleIdeaCloseupCommentIconClick(!0)},variant:"closeup",onTogglePanel:this.onToggleIdeaPinCloseupPanel,viewType:3,viewParameterType:157}),(0,v.jsx)(tc.Z,{isStoryPin:M,isWideVideo:ei,children:ep})]})})}render(){var e,t,i,n,l,a,r,o;let{contextPinIds:s,experimentsClient:d,ideaPinStelaCategories:u,location:c,pin:p,pinDerivedData:h,taggedObjectsResource:m,topLevelTrafficSource:g,topLevelTrafficSourceDepth:y,trafficSource:x,searchQuery:b,storyPinTaggedProductsResource:P,pinResource:w,isORBACGA:S,viewer:k,orbacActingAs:j}=this.props,{viewportSize:A,didShortClickThrough:C,firstLoadComplete:D}=this.state,{isWideVideo:E}=(0,eJ.Z)((0,e8.Z)({pin:p}))||{},I=tA({isWideVideo:E,viewportSize:A}),{recommendation_reason:T}=p,F={name:"RelatedModulesResource",options:{pin_id:p.id,context_pin_ids:s,homefeed_source_sig:T&&["NAVBOOST_P2P","NAVBOOST_PFY","INSTANT_PFY_NON_MATERIALIZABLE","P2P","P2P_CLICKTHROUGH","FRESH_TEXT_EMBEDDINGS","INTENTIONAL_DISTRIBUTION_GEMINI_V5"].includes(T.reason)&&T.reason_id,page_size:12,search_query:b,source:x,top_level_source:g,top_level_source_depth:y,is_pdp:!1}},z=(0,U.Z)({hasPin:!0,hasPinRichMetadata:!!p.rich_metadata,hasPinRichMetadataProducts:!!(null!==(e=p.rich_metadata)&&void 0!==e&&e.products),hasPinRichMetadataArticle:!!(null!==(t=p.rich_metadata)&&void 0!==t&&t.article),hasPinRichMetadataRecipe:!!(null!==(i=p.rich_metadata)&&void 0!==i&&i.recipe),hasPinStoryPinData:!!p.story_pin_data}),R=(0,ts.q6)(k,null===(n=p.pinner)||void 0===n?void 0:n.id,j),L=!!p.id&&(!S||!R),M=L&&(0,v.jsx)(el,{clientTrackingParams:this.getClientTrackingParams(),contextPinIds:s,pinKey:{type:"deprecated",data:p},searchQuery:b,trafficSource:x,relatedResourceOptions:F,setRelatedPinsHeaderRef:this.setRelatedPinsHeaderRef,viewParameter:z,viewportSize:A}),Z=new URLSearchParams(c.search),B=Z.get("utm_campaign")||"",O=Z.get("news_hub_id")||"",N=d.checkExperiment("closeup_notif_pin_module").anyEnabled,K=N&&["homefeednewpins","rtpinrecs","rtpinrecs_og","rdpins"].includes(B)&&O.length>0&&L&&(0,v.jsx)(f,{newsId:O,currentPinId:p.id}),H=!!p.story_pin_data_id&&!1===p.should_open_in_stream,{data:V}=m||{},G=!!V&&V.length>0&&V.some(e=>(0,eF.Z)(e)),W=G&&!((null!==(l=null===(a=p.rich_summary)||void 0===a?void 0:a.products)&&void 0!==l?l:[]).length||(null!==(r=null===(o=p.rich_metadata)||void 0===o?void 0:o.products)&&void 0!==r?r:[]).length),{data:$}=P||{},q=td.Gg,Y=td.u6,X=(0,v.jsx)(_.Z,{isVideoPin:h.isVideoPin,taggedProducts:V,pin:p,pinResource:w,topLevelTrafficSource:g,didShortClickThrough:C,firstLoadComplete:D,viewportSize:A,renderNotifModulesContent:()=>K,renderRelatedModulesContent:()=>M,renderBodyContent:()=>this.renderBodyContent({ideaPinStelaCategories:u,isEligibleForStlFlyout:W,taggedProducts:V,relatedResourceOptions:F,storyPinTaggedProducts:$,maxWidth:Y,isEligibleForStaticImageIdeaPin:H}),onWrapperClick:this.onWrapperClick});return(0,v.jsx)(tD,{classProps:this.props,classState:this.state,showCloseupContentRight:I,showProductDetailPage:!1,isWideCarousel:!1,paneWidth:q,maxWidth:Y,descriptionPaneWidth:Y-q,handleCarouselSwipe:this.handleCarouselSwipe,handleFocus:this.handleFocus,setResultScrollContainerRef:this.setResultScrollContainerRef,handleScroll:this.handleScroll,handleBackButtonClick:this.handleBackButtonClick,closeupContent:X,onRelatedInterestsBannerDismiss:this.onRelatedInterestsBannerDismiss,isEligibleForStaticImageIdeaPin:H})}}function tD({classProps:e,classState:t,commerceData:i,showCloseupContentRight:n,showProductDetailPage:l,isWideCarousel:a,paneWidth:r,maxWidth:o,descriptionPaneWidth:s,handleCarouselSwipe:d,handleFocus:u,setResultScrollContainerRef:c,handleScroll:p,handleBackButtonClick:h,closeupContent:_,onRelatedInterestsBannerDismiss:m,isEligibleForStaticImageIdeaPin:g}){var y,f,x,b,P,w;let{pin:S,pinId:k,trafficSource:j,deepLinkBackGoesToBoard:A,isLandingPage:C,experimentsClient:D}=e,{backButtonLabelFitInScreen:E,visualState:{carouselData:I,mainImage:T,previewImage:F},hideBackButton:z,isOverRelatedPins:R,isRelatedInterestsBannerDismissed:L,viewportSize:M}=t,Z=!!S.story_pin_data_id&&!g,B=(0,tr.Z)(),O=B.isAuth&&D.checkExperiment("auth_plp_hide_back_button").anyEnabled,N=C&&R&&!L,K=!1;return N&&(K=D.checkExperiment("dweb_turn_off_mini_renux_exp").anyEnabled),(0,v.jsx)(tu.ZP.Provider,{value:(0,tu.Nb)({showCloseupContentRight:n,showProductDetailPage:l,pdpCarouselSlotToPaneRatio:(0,tu.YO)({showProductDetailPage:l,isLargerPane:a,showCloseupContentRight:n}),viewportSize:M,paneWidth:r,maxWidth:o,descriptionPaneWidth:s}),children:(0,v.jsxs)(eu.A,{pinKey:{type:"deprecated",data:S},overrideValue:{mainImage:T,previewImage:F,carouselInfo:I&&{carouselData:I,handleCarouselSwipe:d,viewType:3,componentType:S.is_eligible_for_pdp?14186:85,viewParameter:(0,U.Z)({hasPin:!0,hasPinRichMetadata:!!S.rich_metadata,hasPinRichMetadataProducts:!!(null!==(y=S.rich_metadata)&&void 0!==y&&y.products),hasPinRichMetadataArticle:!!(null!==(f=S.rich_metadata)&&void 0!==f&&f.article),hasPinRichMetadataRecipe:!!(null!==(x=S.rich_metadata)&&void 0!==x&&x.recipe),hasPinStoryPinData:!!S.story_pin_data})}},children:[(0,v.jsx)(eV.Z,{placementId:1000141}),(0,v.jsx)(eV.Z,{placementId:1000499}),(0,v.jsx)(tm.Z,{placementId:12}),(0,v.jsx)(eU.Z,{placementId:12}),(0,v.jsx)(eK.Z,{placementId:12}),(0,v.jsx)(eH.Z,{placementId:12}),(0,v.jsx)(G.Z,{auxData:i,view:3,viewParameter:(0,e8.Z)(e)?(0,U.Z)({hasPin:!!S,hasPinRichMetadata:!!S.rich_metadata,hasPinRichMetadataProducts:!!(null!==(b=S.rich_metadata)&&void 0!==b&&b.products),hasPinRichMetadataArticle:!!(null!==(P=S.rich_metadata)&&void 0!==P&&P.article),hasPinRichMetadataRecipe:!!(null!==(w=S.rich_metadata)&&void 0!==w&&w.recipe),hasPinStoryPinData:!!S.story_pin_data}):void 0,objectId:k,children:(0,v.jsxs)("div",{className:"reactCloseupScrollContainer",onFocus:u,ref:c,children:[(0,v.jsx)(eN.Z,{name:"SafeSuspense_Closeup_ExperienceHero",children:(0,v.jsx)(e4.Z,{children:(0,v.jsx)(tb,{placementId:12})})}),(0,v.jsx)(eG.default,{placementId:12}),!z&&!Z&&!O&&(0,v.jsx)(tn.Z,{deepLinkBackGoesToBoard:A,handleScroll:p,isNewOrRes:(0,eY.Z)(B.createdAt)||(0,eX.Z)(null,B),onClick:()=>{h()},showLabel:!!(E&&!R),showShadow:R,trafficSource:j}),(0,v.jsx)(eo,{onClose:h}),_,(0,v.jsx)(tg.Z,{placementId:12}),N&&!K?(0,v.jsx)(eI,{pinId:k,onDismiss:m}):null]})})]})})}let tE=(0,ec.Z)(function(e){var t,i,n,l,a,r;let{logContextEvent:o}=(0,P.v)(),{pin:c,viewer:h,pinResource:_,pinId:y,showQuickPromote:f,deepLinkBackGoesToBoard:x,goBack:b,routePush:w,trafficSource:S}=e,k=(0,m.ZP)(),j=(0,e3.F)(),{checkExperiment:A}=j,C=(0,ti.Z)(),{setMostRecentPinId:D,setMostRecentPinImage:E}=(0,tv.f)(),I=(0,ta.Z)({type:"deprecated",data:c}),T=(0,e0.sY)(null===(t=c.embed)||void 0===t?void 0:t.type)&&"gif"||c.is_eligible_for_pdp&&"productPin"||(null===(i=c.rich_summary)||void 0===i?void 0:i.type_name)==="recipe"&&"recipePin"||!!c.story_pin_data_id&&"storyPin"||!!(null!==(n=c.videos)&&void 0!==n&&n.video_list)&&"video"||"image",F="pin_closeup_lcp",z=(0,e9.PY)(F),{conversationOpen:R}=(0,t_.Z5)(),{anyEnabled:L}=A("web_m10n_business_access_orbac_www"),{anyEnabled:M}=A("web_m10n_business_access_orbac_www"),Z=(0,to.Z)(),B=(0,eR.Z)(),O=(0,d.useDispatch)(),N=(0,e6.E)(),K=(0,e7.B)(),U=(0,u.useLocation)(),H=(0,tl.F9)(),[V,G]=(0,s.useState)(!1),W=B("quick_promote_on_www"),$=`${W}?pinId=${y}`,q=(0,e2.Z)({type:"deprecated",data:c}),{onHandleBackButtonClick:Y}=(0,th.Z)({commerceOptions:c.promoted_is_lead_ad?{}:null,deepLinkBackGoesToBoard:x,goBack:b,routePush:w,trafficSource:S,viewer:h,requestContext:K,pinKey:{type:"deprecated",data:c}},o);(0,s.useEffect)(()=>{_.data&&!V&&f&&G(!0)},[_.data,V,f]);let X=M?(0,ts.lJ)(h,Z):void 0;(0,s.useEffect)(()=>{z&&(0,e9.ku)({stopwatchName:F,binaryAnnotationName:"pinType",value:T,annotationType:"STRING"})},[z,T]);let Q=null===(l=c.sponsorship)||void 0===l?void 0:null===(a=l.sponsor)||void 0===a?void 0:a.id,J=!c.is_repin&&!!Q,ee=(0,g.Z)(Q&&J&&h.isAuth&&"storyPin"===T?{name:"ApiResource",options:{url:`/ads/v4/business_access/businesses/${Q}/me/ad_accounts_permissions/`}}:null),et=h.isAuth&&(0,p.Gv)({orbacSubjectId:X,pinIsRepin:c.is_repin,pinPinnerId:null===(r=c.pinner)||void 0===r?void 0:r.id,viewerId:h.id,viewerIsPartner:h.isPartner}),{data:ei,isLoaded:en}=(0,g.Z)(et?{name:"ApiResource",options:{url:`/v3/trends/partner/${h.id||""}/trends_for_pin/${c.id}/`,data:{number_terms_to_return:10}}}:null),el=(0,ed.Z)({pin:c,pinId:y,pinResource:_}),{getMainPinImage:ea}=(0,e1.Z)({pinKey:{type:"deprecated",data:c}});return V?(0,v.jsx)(u.Redirect,{to:$}):(0,v.jsx)(tC,{...e,initialState:el,conversationOpen:R,dispatch:O,experimentsClient:j,getSterlingURL:B,getStringifiedCommerceAuxData:I,pwtSurfaceContext:N,requestContext:K,location:U,setMostRecentPinId:D,setMostRecentPinImage:E,toastManager:H,i18n:k,orbacActingAs:L?Z:{},logContextEvent:o,userBusinessRoleResource:ee,isORBACGA:M,trackInteraction:C,trendsData:{data:ei,isLoaded:!et||en},onHandleBackButtonClick:Y,mainImage:ea(),pinFormattedLink:q})});function tI(e){let t=(0,e3.F)().checkExperiment("collection_pin_data_read").anyEnabled,i=t?`/v3/visual_links/pins/${e.pin.id}/pin_items/`:`/v3/visual_links/pins/${e.pin.id}/tagged_objects/`,n=(0,g.Z)({name:"ApiResource",options:{url:i,data:{fields:(0,ea.Z)()}},noCache:!0});return(0,v.jsx)(tE,{...e,taggedObjectsResource:n})}function tT(e){let t=(0,g.Z)({name:"StoryPinTaggedProductsResource",options:{noCache:!0,id:e.pin.id}});return(0,v.jsx)(tE,{...e,storyPinTaggedProductsResource:t})}function tF(e){let{data:t}=(0,g.Z)({name:"ApiResource",options:{url:`/v3/storypins/${e.pin.id}/stela/tags/`,data:{fields:(0,eT.Z)()}}});return(0,v.jsx)(tE,{...e,ideaPinStelaCategories:t||[]})}},790904:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(667294),l=i(883119),a=i(785893);function r({accessibilityLabel:e,handleClick:t,icon:i,iconColor:r,iconOnly:o,testId:s,buttonText:d,tabIndex:u}){let[c,p]=(0,n.useState)(!1),h=(0,n.useRef)(null),_=()=>{p(e=>!e),t()},m=e=>{var t;h&&e.target instanceof Element&&!(null!==(t=h.current)&&void 0!==t&&t.contains(e.target))&&p(!1)};return(0,n.useEffect)(()=>(window.addEventListener("mousedown",m),()=>{window.removeEventListener("mousedown",m)}),[]),(0,a.jsx)(l.xu,{"data-test-id":s||"closeup-action-bar-button",children:(0,a.jsxs)(l.kC,{alignItems:"center",justifyContent:"start",children:[(0,a.jsx)(l.hU,{accessibilityLabel:e,iconColor:r||"darkGray",onClick:_,selected:c,icon:i,size:o?"md":"lg",ref:h,tabIndex:u}),d&&(0,a.jsx)(l.iP,{onTap:_,rounding:2,children:(0,a.jsx)(l.X6,{color:"light",overflow:"normal",size:"400",children:d})})]})})}},882684:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(667294),l=i(883119),a=i(288889),r=i(898781),o=i(349700),s=i(66699),d=i(785893);function u({minutes:e}){let t=(0,r.ZP)(),i=e%60,n=Math.floor(e/60),s=i>0?(0,o.nk)(t._('{{ mins }}min', 'closeup.storyPin.basicsLayout.cookTimeUnit', 'Minutes label indicating the cooking time of this Story Pin'),{mins:i}).join(""):"",u=n>0?(0,o.nk)(t._('{{ hours }}hr', 'closeup.storyPin.basicsLayout.cookTimeUnit', 'Hours label indicating the cooking time of this Story Pin'),{hours:n}).join(""):"";return(0,d.jsx)(l.xu,{marginEnd:1,display:"inlineBlock",children:(0,d.jsx)(l.xv,{inline:!0,size:a.n,children:(0,o.nk)(t._('{{ hoursText }} {{ minsText }}', 'closeup.storyPin.basicsLayout.cookTime', 'Combined label for story pin cooktime (ex: "1hr 13min")'),{hoursText:u,minsText:s})})})}function c({servingSize:e}){let t=(0,r.ZP)(),i=(0,s.Z)(t.ngettext('{{servingSize}} serving', '{{servingSize}} servings', e, 'number of servings for a recipe', 'number of servings for a recipe'),{servingSize:e});return(0,d.jsx)(l.xu,{marginEnd:1,display:"inlineBlock",children:(0,d.jsx)(l.xv,{inline:!0,size:a.n,children:(0,o.nk)(t._('{{ servingText }}', 'closeup.storyPin.basicsLayout.servings', 'Combined label for story pin servings (ex: "Servings: 10 servings")'),{servingText:i})})})}function p({difficulty:e}){let t=(0,r.ZP)(),i={1:t._('Easy', 'closeup.storyPin.basicsLayout.difficulty', 'Easy difficulty level'),2:t._('Intermediate', 'closeup.storyPin.basicsLayout.difficulty', 'Intermediate difficulty level'),3:t._('Expert', 'closeup.storyPin.basicsLayout.difficulty', 'Expert difficulty level')},n=e?i[e]:null;if(!n)return null;let s=t._('Difficulty:', 'closeup.storyPin.basicsLayout.difficultyLevelLabel', 'Label indicating the difficulty level of this Story Pin');return(0,d.jsx)(l.xu,{marginEnd:1,display:"inlineBlock",children:(0,d.jsx)(l.xv,{inline:!0,size:a.n,children:(0,o.nk)(t._('{{ label }} {{ difficultyLevel }}', 'closeup.storyPin.basicsLayout.difficulty', 'Combined label for story pin difficulty (ex: "Difficulty: Intermediate")'),{label:s,difficultyLevel:n})})})}function h({keyValueBlocks:e,hasMetadataTemplateType:t}){if(!t)return null;let i=e||[];return(0,d.jsx)(l.xu,{"data-test-id":"categories-metadata",children:(i||[]).map((e,t)=>{let r=`kv-${t}`,o=function(e){var t;let i=null!==(t=e.category_type)&&void 0!==t?t:e.categoryType,{value:n}=e;if(2===i)return(0,d.jsx)(p,{difficulty:n});let l=parseInt(n,10);return 1===i?(0,d.jsx)(c,{servingSize:l}):0===i&&l?(0,d.jsx)(u,{minutes:l}):null}(e);return o?t<i.length-1?(0,d.jsxs)(n.Fragment,{children:[o,(0,d.jsx)(l.xu,{marginEnd:1,display:"inlineBlock",children:(0,d.jsx)(l.xv,{inline:!0,size:a.n,children:" \xb7 "})})]},r):(0,d.jsx)(n.Fragment,{children:o},r):null}).filter(e=>null!=e)})}},874259:(e,t,i)=>{"use strict";i.d(t,{R:()=>ik,Z:()=>ij});var n,l,a,r,o,s,d,u,c,p,h,_=i(667294),m=i(702664),g=i(616550),y=i(883119),v=i(964569),f=i(541776),x=i(513578),b=i(407043),P=i(499128),w=i(898781),S=i(584595),k=i(343341),j=i(19121),A=i(664569),C=i(600147),D=i(785893);function E({aggregatedPinDataId:e,closeupAttributionId:t,commentCount:i,commentCountInUSM:n,disablePhotoCommentSelection:l,isEligibleForPinReactions:a,isPDP:r,isReactionsExpansionEnabled:o,orbacSubjectId:s,pinId:d,privatePin:u,reactionByMe:c,reactionCounts:p,setIsLoadingNewlyCreatedComment:h,showCommentComposer:g,storyPinDataId:E,viewParameter:I}){let T=(0,w.ZP)(),F=(0,j.Z)(),z=(0,m.useDispatch)(),{logContextEvent:R}=(0,b.v)(),L=(0,v.Z)(),{showOneToast:M}=(0,k.F9)(),[Z,B]=(0,_.useState)(!1),[O,N]=(0,_.useState)(f.A9.NONE);async function K(i){let{contentMarkdown:n,force:l,imageSignatures:a,tags:r}=i;if(null===e)return!1;h(!0);try{if(e){if(a.length){let t={aggregatedPinDataId:e,details:n,image_signatures:a,pin_id:null!=d?d:"",username:F.username||"",fromUnifiedComment:!0};await z((0,C.DD)(t))}else await L({force:l,fromUnifiedComment:!0,objectType:A.o.pin,objectId:e,pinId:d,tags:r,text:n,orbacSubjectId:s});R({event_type:7,object_id_str:d,aux_data:{num_user_mention_tags:(r?JSON.parse(r):[]).length,...E?{creator_id:t,story_pin_data_id:E}:{}}})}}catch(e){return[S.ky,S.LJ].includes(e.api_error_code)?N(e.api_error_code===S.ky?f.A9.WARNING:f.A9.BLOCK):M(({hideToast:t})=>(0,D.jsx)(P.ZP,{onHide:t,type:"error",text:e.message_detail||e.message||T._('There was an issue posting your comment.', 'comment.post.errorMessage', 'error message for posting comment in toast')})),h(!1),!1}return B(!1),h(!1),!0}return(0,D.jsx)(y.xu,{marginEnd:r?6:0,marginStart:r?8:0,children:(0,D.jsx)(x.Z,{commentCount:i,commentCountInUSM:n,pinId:d,reactionByMe:c,reactionCounts:p,dismissCommentWarningModal:()=>N(f.A9.NONE),isEligibleForPinReactions:a,isLeftAligned:r,isReactionsExpansionEnabled:o,objectType:A.o.pin,onAddItem:K,onCancelItem:()=>B(!1),onEnter:()=>B(!0),privatePin:u,commentWarningModalState:O,iconSize:r?20:void 0,showReactBackground:!r,showCommentComposer:g,statusType:Z?"textInflightCreation":"textStaticDisplay",viewParameter:I,disablePhotoCommentSelection:l})})}i(167912);var I=i(827896),T=i(357998),F=i(564194),z=i(999018);let R=void 0!==n?n:n=i(501071),L=e=>({entityId:e.id,isEligibleForPdpPlus:e.is_eligible_for_pdp_plus}),M=({children:e,pinKey:t,pinImageUrl:i,closeupNavigationType:n})=>{let l=(0,I.Z)(),{data:a,childDataKey__DEPRECATED:r}=(0,T.Q)(R,t,{useLegacyAdapter:L}),o=(0,z.Z)(r),{entityId:s}=a,d=a.isEligibleForPdpPlus?o({isPdpPlus:!0}):{};return(0,D.jsx)(F.Z,{contextLogData:d,componentType:85,impressionAuxFields:{imageURL:i,clientTrackingParams:l(s,{shouldTrackForPrevLocation:!0})},closeupNavigationType:n,closeupImpressionType:13,impressionType:"Pin",loggingId:s,slotIndex:-1,viewData:{pin_id:s},viewType:3,children:e})};var Z=i(92261);function B({children:e,outerPaddingSize:t}){return(0,D.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{paddingRight:null!=t?t:Z.g9}},children:e})}var O=i(785430),N=i(882684),K=i(945544),U=i(816890),H=i(481697),V=i(561886),G=i(565212),W=i(801827),$=i(509278),q=i(516514),Y=i(440455),X=i(105265),Q=i(986644),J=i(916117),ee=i(298361),et=i(349700);let ei=void 0!==l?l:l=i(329933);function en({pinKey:e}){var t,i,n,l,a,r,o;let s=(0,w.ZP)(),d=(0,ee.Z)(),{data:u}=(0,J.u)(ei,e),c=(0,et.nk)(s._('Saved to {{boardName}}', 'Text describing which board a pin was saved to', 'Text describing which board a pin was saved to'),{boardName:(0,D.jsx)(y.xv,{inline:!0,size:"200",lineClamp:1,weight:"bold",children:(0,D.jsx)(y.rU,{href:null!==(n=null===(l=u.board)||void 0===l?void 0:l.url)&&void 0!==n?n:"",display:"inlineBlock",underline:"hover",children:null===(a=u.board)||void 0===a?void 0:a.name})},null!==(t=null===(i=u.board)||void 0===i?void 0:i.url)&&void 0!==t?t:"")}),p=null!==(r=u.pinner)&&void 0!==r?r:null;return(0,D.jsxs)(y.kC,{alignItems:"center",justifyContent:"start",width:"100%",children:[(0,D.jsx)(X.Z,{userKey:p}),(0,D.jsxs)(y.xu,{marginStart:4,width:"100%",children:[(0,D.jsx)(y.xv,{size:"200",weight:"bold",children:(0,D.jsx)(y.rU,{href:`/${null!==(o=null==p?void 0:p.username)&&void 0!==o?o:""}/`,children:null==p?void 0:p.fullName})},null==p?void 0:p.username),(0,D.jsxs)(y.kC,{alignItems:"stretch",justifyContent:"between",width:"100%",children:[(0,D.jsx)(y.xu,{width:250,children:(0,D.jsx)(y.xv,{lineClamp:1,size:"200",children:c})}),(0,D.jsx)(y.xv,{inline:!0,size:"200",color:"subtle",children:u.createdAt&&(0,Q.A7)(u.createdAt,s,d)})]})]})]})}function el({onDismiss:e}){let t=(0,w.ZP)();return(0,D.jsxs)(y.xu,{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",marginTop:9,marginBottom:9,children:[(0,D.jsx)(y.xu,{maxWidth:400,children:(0,D.jsx)(y.X6,{align:"center",size:"400",children:t._('Added to favorites by', 'closeup.favoritesModal.heading', 'Heading for modal showing favorites on a Pin')})}),(0,D.jsx)(y.xu,{position:"absolute",top:!0,left:!0,marginTop:-2,paddingX:7,children:(0,D.jsx)(y.hU,{accessibilityLabel:t._('Close', 'closeup.favoritesModal.cancelIconButton', 'Accessibility label for button to close out modal'),icon:"cancel",iconColor:"darkGray",onClick:e,size:"md"})})]})}var ea=i(81636),er=i(356997),eo=i(414327),es=i(784590);function ed({fullName:e,image:t,isViewer:i,username:n}){let{logContextEvent:l}=(0,b.v)(),a=(0,w.ZP)(),r=()=>{l({event_type:101,component:13798,view_type:132,view_parameter:3553})};return(0,D.jsxs)(y.xu,{alignItems:"center",display:"flex",paddingY:2,paddingX:6,children:[(0,D.jsx)(y.xu,{children:(0,D.jsx)(y.rU,{href:`/${n}/`,onClick:r,children:(0,D.jsx)(er.qE,{name:n,size:"md",src:t})})}),(0,D.jsx)(y.xu,{paddingX:2,children:(0,D.jsx)(y.X6,{size:"400",lineClamp:1,children:(0,D.jsxs)(y.rU,{href:`/${n}/`,onClick:r,children:[e," ",i&&a._('(You)', 'closeup.favoritesModal.viewerText', 'Text informing user they favorited the Pin')]})})})]})}function eu({pinId:e}){let t=(0,w.ZP)(),i=(0,m.useDispatch)();(0,_.useEffect)(()=>()=>{i((0,eo.jB)("ApiResource",{url:`/v3/pins/${e}/favorite/users/`}))},[]);let n=(0,j.Z)(),l=n.isAuth?n.id:"";(0,ea.Q)({view_type:132,view_parameter:3553});let a=(0,es.Z)({name:"ApiResource",options:{url:`/v3/pins/${e}/favorite/users/`}}),{data:r,fetchMore:o,isAtEnd:s,isFetching:d}=a;if(r&&r.length>0){let e=r.map(e=>{let{full_name:t,id:i,image_medium_url:n,username:a}=e;return{fullName:t,image:n,isViewer:i===l,username:a}}),i=e.find(e=>e.isViewer);return i&&(e.splice(e.indexOf(i),1),e.unshift(i)),(0,D.jsxs)(y.xu,{maxHeight:400,marginBottom:6,children:[e.map(e=>(0,D.jsx)(ed,{fullName:e.fullName,image:e.image,isViewer:e.isViewer,username:e.username},e.username)),!s&&(0,D.jsx)(y.kC,{alignItems:"stretch",justifyContent:"center",width:"100%",children:(0,D.jsx)(y.zx,{accessibilityLabel:t._('See more', 'closeup.favoritesModal.buttonAccessibilityLabel', 'Accessibility label for button to see more users'),disabled:d,onClick:o,text:t._('See more', 'closeup.favoritesModal.buttonText', 'Button text to see more users')})})]})}return(0,D.jsx)(y.$j,{accessibilityLabel:t._('Loading list of users who favorited this Pin', 'closeup.favoritesModal.spinner', 'Accessibility label for user favorite list spinner'),show:!0})}var ec=i(121151);function ep({onDismiss:e,pinId:t}){let i=(0,w.ZP)();return(0,D.jsx)(ec.ZP,{accessibilityModalLabel:i._('View favorites on Pin', 'closeup.favoritesModal.modalAccessibilityLabel', 'Accessiblility label for modal used to see who favorited a Pin'),heading:(0,D.jsx)(el,{onDismiss:e}),onDismiss:e,size:"sm",children:(0,D.jsx)(eu,{pinId:t})})}var eh=i(694379),e_=i(948618);let em=void 0!==a?a:a=i(319430);function eg({pinKey:e}){var t,i,n,l,a,r,o;let s=(0,w.ZP)(),{data:d}=(0,J.u)(em,e),u=null!==(t=d.pinner)&&void 0!==t?t:null,[c,p]=(0,_.useState)(!1),h=0;d.favoriteUserCount&&(h=d.favoritedByMe?d.favoriteUserCount-1:d.favoriteUserCount);let m=s._('Added to favorites by you', 'closeup.pinnerSavedRep.favoritedByTextOnlyYou', 'Text saying that you favorited the Pin'),g=(0,et.nk)(s.ngettext('Added to favorites by {{count}} other', 'Added to favorites by {{count}} others', h, 'closeup.pinnerSavedRep.favoritedByTextOnlyOthers', 'Text describing how many people favorited the Pin'),{count:(0,D.jsx)(eh.Z,{shortform:!0,shortformMaximumFractionDigits:1,value:h},"following-count")}),v=(0,et.nk)(s.ngettext('Added to favorites by you and {{count}} other', 'Added to favorites by you and {{count}} others', h, 'closeup.pinnerSavedRep.favoritedByText', 'Text describing how many people favorited the Pin with you'),{count:(0,D.jsx)(eh.Z,{shortform:!0,shortformMaximumFractionDigits:1,value:h},"following-count")});return(0,D.jsxs)(_.Fragment,{children:[(0,D.jsxs)(y.kC,{alignItems:"center",justifyContent:"start",width:"100%",children:[(0,D.jsx)(y.kC,{alignItems:"stretch",justifyContent:"start",flex:"none",children:(0,D.jsx)(X.Z,{userKey:u,size:"sm"})}),(0,D.jsxs)(y.xu,{marginStart:2,width:"100%",children:[(0,D.jsx)(y.xv,{inline:!0,size:"200",children:(0,et.nk)(s._('{{firstName}} saved to {{boardName}}', 'closeup.pinnerSavedRep.savedToText', 'Text describing which board a pin was saved to'),{boardName:(0,D.jsx)(y.xv,{inline:!0,size:"200",weight:"bold",children:(0,D.jsx)(y.rU,{href:null!==(i=null===(n=d.board)||void 0===n?void 0:n.url)&&void 0!==i?i:"",display:"inlineBlock",underline:"hover",children:null!==(l=null===(a=d.board)||void 0===a?void 0:a.name)&&void 0!==l?l:""})}),firstName:(0,D.jsx)(y.xv,{inline:!0,size:"200",weight:"bold",children:(0,D.jsx)(y.rU,{href:`/${null!==(r=null==u?void 0:u.username)&&void 0!==r?r:""}/`,display:"inlineBlock",underline:"hover",children:null!==(o=null==u?void 0:u.firstName)&&void 0!==o?o:""})})})}),(0,D.jsx)(y.xv,{inline:!0,children:(0,D.jsx)("span",{onClick:()=>{p(!0)},onKeyDown:e=>{"Enter"===e.key&&p(!0)},role:"button",style:{cursor:"pointer"},tabIndex:"0",children:d.favoriteUserCount?1===d.favoriteUserCount&&d.favoritedByMe?(0,D.jsxs)(y.xv,{inline:!0,size:"200",weight:"bold",children:[(0,D.jsx)(e_.Z,{}),m]}):(0,D.jsxs)(y.xv,{inline:!0,size:"200",weight:"bold",children:[(0,D.jsx)(e_.Z,{}),d.favoritedByMe?v:g]}):null})})]})]}),c&&(0,D.jsx)(ep,{onDismiss:()=>{p(!1)},pinId:d.entityId})]})}var ey=i(594736);let ev="__HashtagFlag__",ef=/#[^(\-\\.\s#,\/$%\^&\*;:{}=\`~()\[\]@|<>…)]+/gi,ex=(e,t)=>`/search/pins/?q=${encodeURIComponent(e)}&rs=${t}`,eb={hashtags:function(e,t){let i=t.appendText||"",n=t.source||"hashtag_pinrep",l=[],a=[],r={},o=0,s=e=>(t,i)=>{if(t!==ev||!a.length)return t;{let t=a.shift();return o+=1,(0,D.jsx)(y.xu,{"data-test-id":"pinHashtag",children:(0,D.jsx)(y.xv,{color:"shopping",children:(0,D.jsx)(y.rU,{href:ex(t,n),children:t})},`hashtag-${e}.${i}`)})}};for(let t=0;t<e.length;t+=1){let i=e[t];if("string"==typeof i){let e=i.replace(ef,e=>(a.push(e),r[e]=!0,ev)).split(RegExp(`(${ev})`)),n=e.map(s(t));l=[...l,...n]}else l.push(i)}let d=[];return i&&i.replace(ef,(e,t)=>(!r[e]&&o<4&&(o+=1,d.push((0,D.jsxs)("span",{children:["\xa0",(0,D.jsx)(y.xu,{"data-test-id":"pinHashtag",children:(0,D.jsx)(y.xv,{color:"shopping",children:(0,D.jsx)(y.rU,{href:ex(e,n),children:e})})})]},"appended"+t)),r[e]=!0),e)),l=[...l,...d]}};class eP extends _.Component{shouldComponentUpdate(e){return!(0,ey.ZP)(this.props,e)}render(){let{text:e,options:t}=this.props;if("string"==typeof e&&""===e.trim())return e;let i=[e];for(let e of Object.keys(eb))if(e in t){let n=eb[e];i=n(i,t[e])}return(0,D.jsx)("span",{children:i})}}let ew=void 0!==r?r:r=i(895292);function eS({pinKey:e,showFavoritesInformation:t}){let i;let{data:n}=(0,J.u)(ew,e),{carouselData:l,isRepin:a}=n;if(!a&&l){var r,o;let e=null!==(r=l.index)&&void 0!==r?r:0,t=null!==(o=l.carouselSlots)&&void 0!==o?o:[];t[e]&&t[e].details&&(i=t[e].details)}return(0,D.jsxs)(y.xu,{marginBottom:10,children:[(0,D.jsx)(y.xu,{paddingY:2,children:t?(0,D.jsx)(eg,{pinKey:n}):(0,D.jsx)(en,{pinKey:n})}),!!i&&(0,D.jsx)(y.xu,{paddingY:3,marginBottom:1,children:(0,D.jsx)(y.xv,{children:(0,D.jsx)(eP,{text:i,options:{hashtags:{source:"hashtag_closeup"}}})})})]})}var ek=i(413614),ej=i(319915),eA=i(773285),eC=i(947599),eD=i(215292),eE=i(765798),eI=i(635821),eT=i(788645);let eF=(0,_.lazy)(()=>i.e(95246).then(i.bind(i,263551))),ez=void 0!==o?o:o=i(642637);function eR({pinKey:e,isStoryPin:t,isDeletedStoryPin:i,viewParameter:n,trafficSource:l,details:a,viewer:r,orbacActingAs:o,outerPaddingSize:s,viewportSize:d,shouldShowPartnerModule:u,trendsData:c,showTrendsOnPinCloseup:p,showPinStats:h,trackingParamsMap:m}){var g,v,f,x,b,P,w,S,k,j,A,C;let{carouselInfo:E}=(0,W.r)(),{data:I}=(0,J.u)(ez,e),T=(0,q.Z)({pinKey:I,pinId:I.entityId,viewParameter:n,trafficSource:l}),F=(0,H.Z)(I,r),{closeupUnifiedDescription:z,closeupUserNote:R,userMentionTags:L}=I,M=(0,U.Z)({pinKey:I,orbacActingAs:o,viewer:r}),{checkExperiment:Z}=(0,eA.F)(),X=Z("closeup_rich_pin_idea_pins_dweb_auth").anyEnabled,Q=Z("web_hashtags_in_description_display").anyEnabled,ee=Z("web_new_line_description").anyEnabled,et=null!==(g=null===(v=I.storyPinData)||void 0===v?void 0:null===(f=v.metadata)||void 0===f?void 0:null===(x=f.basics)||void 0===x?void 0:null===(b=x.keyValueBlocks)||void 0===b?void 0:b.map(({categoryType:e,value:t})=>({categoryType:e,value:t})))&&void 0!==g?g:[],ei=et.length>0,en=(0,V.Z)(R)||!!I.richMetadata,el=(null===(P=I.richMetadata)||void 0===P?void 0:null===(w=P.recipe)||void 0===w?void 0:w.name)&&I.richMetadata.recipe.categorizedIngredients&&I.richMetadata.recipe.categorizedIngredients.length>0,ea=L?(0,D.jsx)(Y.Z,{description:z||"",userMentionTags:L.map(e=>({length:e.length,objectId:e.objectId,offset:e.offset,tagType:e.tagType}))}):(0,$.Z)({isHashtagInDescriptionDisplayEnabled:Q,text:z||""});return(0,D.jsxs)(_.Fragment,{children:[(0,D.jsxs)(B,{outerPaddingSize:s,children:[(0,D.jsx)(y.xu,{"data-test-id":"closeup-title",children:(0,D.jsx)(eD.q,{children:({hovered:e,onMouseEnter:i,onMouseLeave:n})=>(0,D.jsx)(ek.Z,{hovered:e,pinKey:I,trafficSource:l,trackingParamsMap:m,viewType:3,children:(0,D.jsx)(y.xu,{onMouseEnter:i,onMouseLeave:n,children:(0,D.jsx)(eE.Z,{carouselInfo:E,isLink:!t,onClick:T,pinKey:I,trackingParamsMap:m})})})})}),u&&t&&(0,D.jsx)(y.xu,{"data-test-id":"PartnerModule",width:"100%",children:(0,D.jsx)(ej.Z,{name:"SafeSuspense_Closeup_PartnerModule",children:(0,D.jsx)(eC.Z,{children:(0,D.jsx)(eF,{borderStyle:O.te,isStoryPin:t,pinKey:I,viewportSize:d,trendsData:p?null==c?void 0:null===(S=c.data)||void 0===S?void 0:S.results:null,showPinStats:h})})})}),!X&&t&&ei&&(0,D.jsx)(y.xu,{marginTop:4,children:(0,D.jsx)(N.Z,{keyValueBlocks:et,hasMetadataTemplateType:!!(null!==(k=I.storyPinData)&&void 0!==k&&null!==(j=k.metadata)&&void 0!==j&&j.templateType)})}),X&&ei&&(0,D.jsx)(y.xu,{marginTop:4,children:(0,D.jsx)(N.Z,{keyValueBlocks:et,hasMetadataTemplateType:!!(null!==(A=I.storyPinData)&&void 0!==A&&null!==(C=A.metadata)&&void 0!==C&&C.templateType)})}),X&&!ei&&!!el&&(0,D.jsx)(eI.Z,{pinId:I.entityId,graphqlRef:null,boldText:!1,textSize:"300",isWideViewport:!0}),!!(t&&z&&(!X||en))&&(0,D.jsx)(y.xu,{marginTop:8,children:(0,D.jsx)(G.Z,{descriptionDir:(0,eT.j)(z),children:ee?(0,D.jsx)(K.Z,{description:z||"",userMentionTags:null==L?void 0:L.map(e=>({length:e.length,objectId:e.objectId,offset:e.offset,tagType:e.tagType}))}):ea})})]}),(0,D.jsxs)(_.Fragment,{children:[a,!!F&&(0,D.jsx)(y.xu,{marginTop:2,children:(0,D.jsx)(eS,{pinKey:I,showFavoritesInformation:!i&&M})})]})]})}var eL=i(616106),eM=i(288889),eZ=i(748373);let eB=e=>{if(!e)return null;let{categorizedIngredients:t}=e.recipe;return t&&t.length>0?{...e,categorizedIngredients:t}:null};var eO=i(580749),eN=i(432730),eK=i(802933),eU=i(561195),eH=i(923297),eV=i(833049),eG=i(883561),eW=i(594635),e$=i(57009);let eq=e=>e.replace(/\s+/g," "),eY=void 0!==s?s:s=i(450756);class eX extends _.Component{componentDidMount(){let{onUpdate:e}=this.props;null==e||e()}componentDidUpdate(e){if(e.showMore!==this.props.showMore){let{onUpdate:e}=this.props;null==e||e()}}render(){var e,t,i,n,l,a,r,o,s,d,u,c,p,h,_,m;let{isArticle:g,pin:v,tutorialDescription:f,showMore:x,onToggle:b,i18n:P,checkExperiment:w}=this.props,{carouselData:S,closeupUnifiedDescription:k,userMentionTags:j,storyPinData:A}=v,C=(k||"").trim();if(S){let e=null!==(t=S.carouselSlots)&&void 0!==t?t:[],n=null!==(i=S.index)&&void 0!==i?i:0;e[n]&&e[n].details&&(C=e[n].details)}let E=w("closeup_rich_pin_idea_pins_dweb_auth").anyEnabled,I=w("web_new_line_description").anyEnabled,T=w("web_hashtags_in_description_display").anyEnabled,F=C&&f&&f.trim()===C,z=C?eq(C):"";(z=!x&&z&&z.length?(0,eG.ZP)(z,g?195:200):z)&&j&&(z=(0,D.jsx)(eZ.Z,{description:z,mentionLinkColor:"shopping",shouldAdjustOffset:!0,userMentionTags:j.map(e=>({length:e.length,objectId:e.objectId,offset:e.offset,tagType:e.tagType}))}));let R=C&&C.length>(g?195:200),L=null,M=eB((0,eO.Z)((0,eN.Z)((0,eK.Z)(this.props)))),Z=null==A?void 0:null===(e=A.metadata)||void 0===e?void 0:e.basics;if(Z){let e;let{keyValueBlocks:t,listBlocks:i}=Z;v&&v.domain&&v.link&&(e={domain:v.domain,url:v.link});let l=[];null!==(n=e)&&void 0!==n&&n.domain&&(l=[...l,e.domain]);let a=(t||[]).map(e=>(0,eW.Z)(e.categoryType,e.value,P)).filter(e=>""!==e);a.length>0&&(l=[...l,...a]),(null!=i?i:[]).forEach(({heading:e,blocks:t})=>{e&&(l=[...l,e]),(null!=t?t:[]).forEach(({blocks:e})=>{(null!=e?e:[]).forEach(({text:e})=>{e&&(l=[...l,e])})})}),L=(0,e$.Z)(l)}else if(M){let{pin:e}=this.props,{prepTime:t,cookTime:i,totalTime:n,servingSummary:g,serves:v}=M.recipe,f=n||i||t;if(i&&t){let e=i.h||0,n=i.m||0,l=t.h||0,a=t.m||0;f={h:e+l,m:n+a}}let x=f?(0,eV.Z)((0,eH.X)(f),this.props.i18n):null,b=null===(l=e.richMetadata)||void 0===l?void 0:null===(a=l.recipe)||void 0===a?void 0:null===(r=a.aggregateRating)||void 0===r?void 0:r.reviewCount;g&&(L=v?(0,D.jsxs)(y.xv,{inline:!0,size:eM.n,children:[v," ",this.props.i18n._('servings', 'closeup.CardSourceDescriptionText.servesLabel', 'Label for servings')]},"recipe"):(0,D.jsx)(y.xv,{inline:!0,size:"200",children:g},"recipe")),x&&(L=L?(0,et.nk)("{{ timeLabel }} \xb7 {{ description }}",{timeLabel:x,description:L}):x),"number"==typeof b&&b>0&&(L=L?(0,et.nk)(this.props.i18n._('{{ reviewCount }} reviews \xB7 {{ description }}', 'number of reviews on a recipe and the description', 'number of reviews on a recipe and the description'),{reviewCount:b,description:L}):b);let P=null===(o=e.richMetadata)||void 0===o?void 0:null===(s=o.recipe)||void 0===s?void 0:null===(d=s.aggregateRating)||void 0===d?void 0:d.ratingValue,w=Number(P);Number.isNaN(w)&&(w=0),w>=.25&&(L=L?(0,et.nk)("{{ ratings }} {{ description }}",{ratings:(0,D.jsx)(eU.Z,{rating:P,max_rating:null===(u=e.richMetadata)||void 0===u?void 0:null===(c=u.recipe)||void 0===c?void 0:null===(p=c.aggregateRating)||void 0===p?void 0:p.bestRating,width:12},P),description:L}):(0,D.jsx)(eU.Z,{rating:P,max_rating:null===(h=e.richMetadata)||void 0===h?void 0:null===(_=h.recipe)||void 0===_?void 0:null===(m=_.aggregateRating)||void 0===m?void 0:m.bestRating,width:12},P))}if(!z||F)return null;let B=(null==M?void 0:M.recipe.diets)||[],O=j?(0,D.jsx)(Y.Z,{description:eq(C),userMentionTags:j}):(0,$.Z)({isHashtagInDescriptionDisplayEnabled:T,text:eq(C)});return C?(0,D.jsxs)(y.xu,{marginTop:4,marginBottom:4,children:[!!L&&!E&&(0,D.jsx)(y.xu,{marginTop:4,marginBottom:4,children:(0,D.jsxs)(y.xv,{size:eM.n,children:[L,B.length>0?` \xb7 `:null,B.length>0?B.join(` \xb7 `):null]})}),(0,D.jsx)(G.Z,{descriptionDir:(0,eT.j)(C),children:I?(0,D.jsx)(K.Z,{description:k||"",userMentionTags:j||[]}):O})]}):(0,D.jsxs)("span",{children:[(0,D.jsx)(y.xv,{inline:!0,size:"200",children:(0,D.jsx)(y.xu,{"data-test-id":"description",position:"relative",dangerouslySetInlineStyle:{__style:{display:"inline"}},children:L?(0,et.nk)("{{ recipeInfo }} \xb7 {{ description }}",{recipeInfo:L,description:z}):z})}),R&&!x&&(0,D.jsx)(y.xu,{"data-test-id":"more-button",display:"inlineBlock",marginStart:1,children:(0,D.jsx)(y.iP,{fullWidth:!1,onTap:b,children:(0,D.jsx)(y.xv,{weight:"bold",size:"200",inline:!0,children:this.props.i18n._('More', ' - ', ' -- ')})})})]})}}let eQ=function(e){let t=(0,w.ZP)(),{checkExperiment:i}=(0,eA.F)(),{pinKey:n}=e,{data:l}=(0,J.u)(eY,n);return(0,D.jsx)(eX,{...e,i18n:t,checkExperiment:i,pin:l})},eJ=(e,t)=>e.length>300?e:e.length+t.length+3>300?`${e} ${t}...`:`${e} ${t}`,e0=e=>e.split(" ").map(e=>e.trim()).reduce(eJ,""),e1=void 0!==d?d:d=i(911824);function e2(e){var t,i,n,l,a,r,o,s;let[d,u]=(0,_.useState)(!1),{pinKey:c,onUpdate:p}=e,{data:h}=(0,J.u)(e1,c);if(!h.entityId)return null;let m=!!h.aggregatedPinData,g=!!h.description,y=!!(null!==(t=h.richMetadata)&&void 0!==t&&t.recipe),v=!!(null!==(i=h.richMetadata)&&void 0!==i&&i.article),f=null===(n=h.richMetadata)||void 0===n?void 0:null===(l=n.article)||void 0===l?void 0:l.description,x=!!(null!==(a=h.richMetadata)&&void 0!==a&&a.tutorial),b=null!==(r=null===(o=h.richMetadata)||void 0===o?void 0:null===(s=o.tutorial)||void 0===s?void 0:s.description)&&void 0!==r?r:"",P=v&&!y&&!x;return(0,D.jsx)(_.Fragment,{children:(0,D.jsx)("span",{className:"richPinInformation","data-test-id":"richPinInformation-description",children:g||m?(0,D.jsx)(eQ,{tutorialDescription:b,isArticle:P,onToggle:()=>u(!0),onUpdate:p,pinKey:h,showMore:d}):P&&f&&(0,D.jsx)("span",{className:"richPinArticleSummary",style:{fontSize:"16px",marginBottom:12},children:e0(f)})})})}function e8({mediaAttribution:{author:e,authorUrl:t,ccUrl:i,link:n,mediaType:l,providerName:a}}){let r=(0,w.ZP)(),o=!!(a&&n);if(!e&&!o)return null;let s=o?r._('from {{ provider }}', 'closeup.attribution.imageWithProvider', 'Image source attribution withprovider but no author on pin closeup'):null;return e&&(s="VIDEO"===l?o?r._('Video by {{ author }} on {{ provider }}', 'closeup.attribution.videoWithAuthorProvider', 'Video source attribution on pin closeup'):r._('Video by {{ author }}', 'closeup.attribution.videoWithAuthor', 'Video source attribution on pin closeup when there is an author but no provider'):o?r._('Photo by {{ author }} on {{ provider }}', 'closeup.attribution.photoWithAuthorProvider', 'Photo source attribution on pin closeup'):r._('Photo by {{ author }}', 'closeup.attribution.photoWithAuthor', 'Photo source attribution on pin closeup when there is an author but no providers')),(0,D.jsx)(y.xu,{display:"inlineBlock","data-test-id":"media-attribution",children:(0,D.jsxs)(y.xv,{size:"200",color:"default",children:[!!s&&(0,D.jsx)(et.r7,{text:(0,et.nk)(s,{author:(0,D.jsx)(y.rU,{display:"inlineBlock",href:null!=t?t:"",rel:"nofollow",underline:"hover",children:(0,D.jsx)(y.xv,{size:"200",weight:"bold",children:e})},"author"),provider:o?(0,D.jsx)(y.xu,{marginEnd:1,display:"inlineBlock",children:(0,D.jsx)(y.rU,{display:"inlineBlock",href:null!=n?n:"",rel:"nofollow",underline:"always",children:a},"provider")}):null})}),i&&(0,D.jsx)(y.rU,{href:i,rel:"nofollow",children:r._('(cc)', 'creative commons link text', 'creative commons link text')})]})})}function e3({attribution:{authorName:e,authorUrl:t,ccUrl:i,providerName:n,url:l},embed:a}){let r=(0,w.ZP)(),o=!!(n&&l);if(!e&&!o)return null;let s=null;return o?s=e?null!=a&&a.src&&"gif"!==a.type&&"pinstory"!==a.subtype?r._('Video by {{ author }} on {{ provider }}', 'closeup.attribution.videoWithAuthorProvider', 'Video source attribution on pin closeup'):r._('Photo by {{ author }} on {{ provider }}', 'closeup.attribution.photoWithAuthorProvider', 'Photo source attribution on pin closeup'):r._('from {{ provider }}', 'closeup.attribution.imageWithProvider', 'Image source attribution withprovider but no author on pin closeup'):e&&(s=null!=a&&a.src&&"gif"!==a.type&&"pinstory"!==a.subtype?r._('Video by {{ author }}', 'closeup.attribution.videoWithAuthor', 'Video source attribution on pin closeup when there is an author but no provider'):r._('Photo by {{ author }}', 'closeup.attribution.photoWithAuthor', 'Photo source attribution on pin closeup when there is an author but no providers')),(0,D.jsx)(y.xu,{display:"inlineBlock","data-test-id":"photo-attribution",children:(0,D.jsxs)(y.xv,{size:"200",color:"default",children:[!!s&&(0,D.jsx)(et.r7,{text:(0,et.nk)(s,{author:(0,D.jsx)(y.rU,{display:"inlineBlock",href:null!=t?t:"",rel:"nofollow",underline:"hover",children:(0,D.jsx)(y.xv,{size:"200",weight:"bold",children:e})},"author"),provider:o?(0,D.jsx)(y.xu,{marginEnd:1,display:"inlineBlock",children:(0,D.jsx)(y.rU,{display:"inlineBlock",href:null!=l?l:"",rel:"nofollow",underline:"always",children:n},"provider")}):null})}),i&&(0,D.jsx)(y.rU,{href:i,rel:"nofollow",children:r._('(cc)', 'creative commons link text', 'creative commons link text')})]})})}let e6=void 0!==u?u:u=i(126842),e9=e=>{var t,i,n,l;let{isStoryPin:a,pinKey:r,onUpdate:o}=e,{data:s}=(0,J.u)(e6,r),d=s.entityId&&(!!(null!==(t=s.attribution)&&void 0!==t&&t.providerUrl)&&!!s.attribution.providerName||!!(null!==(i=s.attribution)&&void 0!==i&&i.authorName)),u=s.entityId&&(!!(null!==(n=s.mediaAttribution)&&void 0!==n&&n.link)&&!!s.mediaAttribution.providerName||!!(null!==(l=s.mediaAttribution)&&void 0!==l&&l.author)),c=null;if(d||u){let{closeupUnifiedDescription:e}=s,t=(e||"").trim(),i=t?"{{ credit }}|":"{{ credit }}";c=s.mediaAttribution?(0,et.nk)(i,{credit:s.attribution&&(0,D.jsx)(e8,{mediaAttribution:{author:s.mediaAttribution.author,authorUrl:s.mediaAttribution.authorUrl,ccUrl:s.mediaAttribution.ccUrl,link:s.mediaAttribution.link,mediaType:s.mediaAttribution.mediaType,providerName:s.mediaAttribution.providerName}},"article-pin")}):(0,et.nk)(i,{credit:s.attribution&&(0,D.jsx)(e3,{attribution:{authorName:s.attribution.authorName,authorUrl:s.attribution.authorUrl,ccUrl:s.attribution.ccUrl,providerName:s.attribution.providerName,url:s.attribution.url},embed:s.embed&&{type:s.embed.type,src:s.embed.src,subtype:s.embed.subtype}},"article-pin")})}return(0,D.jsxs)(y.xv,{inline:!0,children:[c,!a&&(0,D.jsx)(e2,{onUpdate:o,pinKey:s})]})};var e7=i(498537),e4=i(783810),e5=i(450053),te=i(485710),tt=i(319530);function ti({templateType:e,listBlocks:t}){let i=(0,w.ZP)(),n=new Map([[null,i._('Notes', 'Closeup.StoryPinBasicsLayout.notesLayoutTitle', 'Label for button to expand notes Story Pin details')],[1,i._('Ingredients', 'Closeup.StoryPinBasicsLayout.recipeLayoutTitle', 'Label for button to expand ingredients Story Pin details')],[2,i._('Supplies', 'Closeup.StoryPinBasicsLayout.diyHomeLayoutTitle', 'Label for button to expand supplies Story Pin details')]]);return(0,D.jsx)(te.Z,{heading:n.get(e),children:(0,D.jsxs)(tt.Z,{children:[(0,D.jsx)(y.xu,{marginBottom:4}),t.map((e,t)=>{var i;return(0,D.jsxs)(_.Fragment,{children:[(0,D.jsx)(y.xv,{size:eM.n,weight:"bold",children:e.heading}),(null!==(i=e.blocks)&&void 0!==i?i:[]).map((t,i)=>(0,D.jsx)(_.Fragment,{children:(0,D.jsx)(y.xu,{marginBottom:1,children:(0,D.jsxs)(y.xv,{size:eM.n,children:["• ",t.text?t.text:""]})})},`item-${i}-${e.heading||"empty"}`)),(0,D.jsx)(y.xu,{marginBottom:4})]},`${e.heading||"empty"}-${t}-listHeading`)})]})})}function tn({templateType:e,listBlocks:t}){return(0,D.jsx)(y.xu,{marginTop:2,children:(0,D.jsx)(ti,{templateType:e,listBlocks:t})})}var tl=i(326595),ta=i(224496);let tr=e=>e.type===ta.h8.INGREDIENT,to=({block:e})=>{if(e.type!==ta.h8.INGREDIENT)return null;let{amt:t,name:i,unit:n}=e;return(0,D.jsxs)("li",{style:{display:"table-row"},children:[(0,D.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell",paddingRight:12}},children:!!t&&(0,D.jsxs)(y.xv,{size:"200",align:"end",children:[t," ",n]})}),(0,D.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell"}},children:(0,D.jsx)(y.xv,{size:"200",children:i})})]})};var ts=i(66699);let td=({blocks:e,recipeData:t})=>{let i=(0,w.ZP)(),{serving_size:n,cooking_time:l,prep_time:a}=t,r="number"==typeof l&&"number"==typeof a?l+a:null,o=n?(0,ts.Z)(i.ngettext('{{servingSize}} serving', '{{servingSize}} servings', n, 'number of servings for a recipe', 'number of servings for a recipe'),{servingSize:n}):null;return(0,D.jsxs)(_.Fragment,{children:[(0,D.jsxs)(y.xu,{marginBottom:4,marginTop:5,children:[(0,D.jsx)(y.X6,{overflow:"normal",size:"500",children:i._('Ingredients', 'Heading for list of ingredients', 'Heading for list of ingredients')}),(0,D.jsxs)(y.xu,{marginTop:2,display:"flex",alignItems:"center",children:[!!r&&(0,D.jsx)(tl.Z,{bold:!1,color:"subtle",iconSize:14,textSize:"200",timeString:(0,eV.Z)((0,eH.X)({m:r}),i)||""}),!!r&&o&&(0,D.jsx)(y.xu,{paddingX:1,children:(0,D.jsx)(y.xv,{color:"subtle",size:"200",children:"•"})}),o&&(0,D.jsx)(y.xv,{color:"subtle",size:"200",children:o})]})]}),(0,D.jsx)("ul",{children:e&&e.filter(tr).map((e,t)=>(0,D.jsx)(to,{block:e},e.name||t))})]})},tu=e=>e.type===ta.h8.SUPPLY,tc=({block:e})=>{if(e.type!==ta.h8.SUPPLY)return null;let{name:t,amt:i}=e;return(0,D.jsxs)("li",{style:{display:"table-row"},children:[(0,D.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell",paddingRight:12}},children:!!i&&(0,D.jsx)(y.xv,{size:"200",align:"end",children:i})}),(0,D.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{display:"table-cell"}},children:(0,D.jsx)(y.xv,{size:"200",children:t})})]})},tp=({blocks:e,diyData:t})=>{let i=(0,w.ZP)(),{difficulty:n}=t,l={1:i._('Easy', 'difficulty level of easy DIY tutorial', 'difficulty level of easy DIY tutorial'),2:i._('Intermediate', 'difficulty level of medium DIY tutorial', 'difficulty level of medium DIY tutorial'),3:i._('Expert', 'difficulty level of hard DIY tutorial', 'difficulty level of hard DIY tutorial')};return(0,D.jsxs)(_.Fragment,{children:[(0,D.jsxs)(y.xu,{marginBottom:4,marginTop:5,children:[(0,D.jsx)(y.X6,{overflow:"normal",size:"500",children:i._('Supplies', 'Heading for list of supplies', 'Heading for list of supplies')}),!!n&&(0,D.jsx)(y.xu,{marginTop:2,display:"flex",alignItems:"center",children:(0,D.jsx)(y.xv,{color:"subtle",size:"200",children:(0,et.nk)(i._('Difficulty: {{difficultyLevel}}', 'Label indicating the difficulty level of a tutorial', 'Label indicating the difficulty level of a tutorial'),{difficultyLevel:l[n]})})})]}),(0,D.jsx)("ul",{children:e&&e.filter(tu).map((e,t)=>(0,D.jsx)(tc,{block:e},e.name||t))})]})},th=e=>!!e.key_value_blocks&&e.key_value_blocks.length>0||!!e.list_blocks&&e.list_blocks.length>0;function t_({detailsPage:e,metadata:t}){if(!t)return null;let{basics:i}=t;if(i&&Object.keys(i).length>0&&th(i))return(0,D.jsx)(tn,{templateType:t.template_type,listBlocks:i.list_blocks||[]});switch(t.template_type){case 1:return!!t.recipe_data&&(0,D.jsx)(td,{blocks:null==e?void 0:e.blocks,recipeData:t.recipe_data});case 2:return!!t.diy_data&&(0,D.jsx)(tp,{blocks:null==e?void 0:e.blocks,diyData:t.diy_data});default:return null}}var tm=i(737930),tg=i(765050),ty=i(366428),tv=i(563886);let tf=void 0!==c?c:c=i(286286),tx=({marginTop:e,children:t,id:i,story:n,viewParameter:l})=>{var a;let{content_ids:r,display_options:o,slot:s,id:d,story_type:u,tracking_params:c}=n,p=null==o?void 0:null===(a=o.content_display)||void 0===a?void 0:a.component_type,h=(0,ty.Z)({clientTrackingParams:c,componentType:p,contextLogData:{story_id:d,story_type:u,content_ids:r},impressionType:"Story",loggingId:d,slotIndex:s||0,viewParameter:l,viewType:3});return(0,D.jsx)(y.xu,{ref:h,marginTop:e?8:0,children:t},i)};function tb({moduleWidth:e,pinKey:t,trafficSource:i,type:n,viewParameter:l}){var a;let{data:r}=(0,J.u)(tf,t),{data:o}=(0,es.Z)({name:"ApiResource",options:{url:`/v3/visual_search/stela/pins/${r.entityId}/module/`,data:{fields:(0,tm.Z)()}}}),[s]=o||[void 0],d=(0,tg.Z)({pinKey:r,requestParams:null==s?void 0:null===(a=s.action)||void 0===a?void 0:a.request_params,surfaceType:"stl",topLevelTrafficSource:i});return!o||o&&0===o.length?null:(0,D.jsx)(y.kC,{justifyContent:"center",direction:"column",alignItems:"center",width:e,children:(0,D.jsx)(y.xu,{width:e,children:!!o&&o.map(t=>{var i,a;let r=null===(i=t.display_options)||void 0===i?void 0:i.display_view_state,{container_type:o,id:s}=t;if(139!==o)return null;{let i=(null===(a=t.title)||void 0===a?void 0:a.format)||"";return(0,D.jsx)(tx,{id:s,story:t,marginTop:"standard"===n,viewParameter:l,children:(0,D.jsx)(te.Z,{displayViewState:r,forceTappableHeader:!0,heading:i,headerPaddingRight:Z.g9,children:(0,D.jsx)(y.xu,{marginTop:4,children:(0,D.jsx)(tv.Z,{addContentRight:(0,D.jsx)(y.xu,{width:Z.g9}),dangerouslySetActionUrl:d,disableHeader:!0,gutterWidth:8,styleOverrides:{justifyContent:"start",navigationFabSize:32},story:t,storyGraphqlRef:null,surface:"ShoppingGridSmallCarousel",saveButtonOptions:{type:"classic"},view:3,viewParameter:l,width:e})})})})}})})})}var tP=i(536237),tw=i(799405),tS=i(206663),tk=i(220306),tj=i(231947),tA=i(426975);let tC=(0,_.lazy)(()=>i.e(34209).then(i.bind(i,209435))),tD=(0,_.lazy)(()=>i.e(59559).then(i.bind(i,4255)));function tE({commentCountInUSM:e,currentIdeaPinId:t,hasXYcoordinates:i,ideaPinStelaCategories:n=[],isCommentSectionOpen:l,isInStream:a,isStoryPin:r,isVideoPin:o,isDeletedStoryPin:s,orbacActingAs:d,orbacSubjectId:u,onCommentSectionClick:c,onCloseupBodyUpdate:p,outerPaddingSize:h,pin:_,viewer:m,shouldShowStlCarouselForOwnPin:g,storyPinTaggedProducts:v=[],taggedProducts:f,trafficSource:x,viewParameterType:b,viewType:P,closeupContext:w,isLoadingNewlyCreatedComment:S,viewParameter:k,detailsScrollContainerRef:j,clientTrackingParams:A}){var C,E,I,T,F,z,R,L,M,O,N,K,V,G,W,$,q,Y,X,Q,J,ee,et;let{makeDetailsArgs:ei}=(0,e5.ZP)({pin:_}),{isShopTheLook:en,showCreatorCard:el,creatorId:ea,showCanonicalComments:er,storyPinDetailsArgs:eo}=ei(!!s),es=(0,H.Z)({type:"deprecated",data:_},m),ed=eB((0,eO.Z)((0,eN.Z)((0,eK.Z)({pin:_})))),eu=(f||[]).filter(e=>(0,tS.Z)(e)),ec=(0,tj.q6)(m,null===(C=_.pinner)||void 0===C?void 0:C.id,d),{descriptionPaneWidth:ep}=w,eh=ep-2*Z.g9,e_=!r&&(!((null!==(E=null===(I=_.rich_summary)||void 0===I?void 0:I.products)&&void 0!==E?E:[]).length||(null!==(T=null===(F=_.rich_metadata)||void 0===F?void 0:F.products)&&void 0!==T?T:[]).length)&&en&&eu.length>0||g)&&!o,em=r&&v&&v.length>0,eg=(null!==(z=null==eo?void 0:null===(R=eo.metadata)||void 0===R?void 0:null===(L=R.basics)||void 0===L?void 0:null===(M=L.list_blocks)||void 0===M?void 0:M.length)&&void 0!==z?z:0)>0,ey=(0,U.Z)({pinKey:{type:"deprecated",data:_},orbacActingAs:d,viewer:m}),{checkExperiment:ev}=(0,eA.F)(),ef=ev("closeup_rich_pin_idea_pins_dweb_auth").anyEnabled,ex=!!_.story_pin_data_id&&!1===_.should_open_in_stream,eb=ex&&v&&v.length>0;return(0,D.jsxs)(y.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",flex:"grow",children:[(0,D.jsxs)(B,{outerPaddingSize:h,children:[(0,D.jsx)(y.kC,{direction:"row",alignItems:"baseline",justifyContent:"start",children:(0,D.jsx)(y.xu,{maxWidth:eh,children:(0,D.jsx)(e9,{isStoryPin:r,pinKey:{type:"deprecated",data:_},onUpdate:p})})}),el&&(0,D.jsx)(y.xu,{marginBottom:8,children:(0,D.jsx)(tA.Z,{children:(0,D.jsx)(e4.Z,{creatorId:ea,children:e=>(0,D.jsx)(tP.Z,{slotIndex:0,viewType:P,viewParameter:k,componentType:126,impressionType:"User",loggingId:ea,input:{type:"deprecated",data:_},officialUser:e,isORBACProfileManager:ec,clientTrackingParams:A})})})}),!ef&&!r&&!!ed&&(0,D.jsx)(tk.Z,{recipeProps:ed}),ef&&!!ed&&!eg&&(0,D.jsx)(tk.Z,{recipeProps:ed}),(r||ex)&&!!eo&&eg&&(0,D.jsx)(t_,{detailsPage:eo.detailsPage,metadata:eo.metadata}),(e_||em||eb)&&(0,D.jsx)(ej.Z,{name:"SafeSuspense_CloseupBody_StlCloseupModule",children:(0,D.jsx)(eC.Z,{children:(0,D.jsx)(tC,{closeupImageSignature:null!==(O=_.image_signature)&&void 0!==O?O:"",isOwnCreatedPin:g,pin:_,pinId:_.id,taggedObjects:em||eb?v:eu,type:e_?"stl":"story",viewParameter:k})})}),!ex&&n.length>0&&(a&&t===_.id||!a)&&(0,D.jsx)(ej.Z,{name:"SafeSuspense_CloseupBody_StelaCloseupModule",children:(0,D.jsx)(eC.Z,{children:(0,D.jsx)(tw.L,{value:{categories:n,pin:_,pinId:_.id,viewParameter:b,viewType:P},children:(0,D.jsx)(tD,{trafficSource:x})})})})]}),(0,D.jsx)(tb,{moduleWidth:Z.Gg-Z.g9,pinKey:{type:"deprecated",data:_},trafficSource:x,type:"standard",viewParameter:k}),(0,D.jsxs)(B,{outerPaddingSize:h,children:[ey&&(0,D.jsx)(e7.Z,{boardId:null===(N=_.board)||void 0===N?void 0:N.id,isGroupNote:es,pinId:_.id,pinNoteText:null===(K=_.pin_note)||void 0===K?void 0:K.text}),!s&&!i&&er&&(0,D.jsx)(ej.Z,{name:"CanonicalCard",children:(0,D.jsx)(y.xu,{marginTop:10,marginBottom:6,children:(0,D.jsx)(eL.Z,{aggregatedPinId:null===(V=_.aggregated_pin_data)||void 0===V?void 0:V.id,closeupAttributionId:null===(G=_.closeup_attribution)||void 0===G?void 0:G.id,closeupAttributionUsername:null===(W=_.closeup_attribution)||void 0===W?void 0:W.username,commentCount:null!==($=null===(q=_.aggregated_pin_data)||void 0===q?void 0:q.comment_count)&&void 0!==$?$:0,commentCountInUSM:e,commentsDisabled:_.comments_disabled,isCommentSectionOpen:l,isLoadingNewCreatedComment:S,isORBACProfileManager:ec,isShopTheLook:en,isVideo:!!(null!==(Y=_.videos)&&void 0!==Y&&Y.video_list),onCommentSectionClick:c,orbacSubjectId:u,photoCount:null!==(X=null===(Q=_.aggregated_pin_data)||void 0===Q?void 0:null===(J=Q.did_it_data)||void 0===J?void 0:J.images_count)&&void 0!==X?X:0,pinId:_.id,pinnerId:null===(ee=_.pinner)||void 0===ee?void 0:ee.id,scrollContainerRef:j,shouldShowHeading:!0,storyPinDataId:null===(et=_.story_pin_data)||void 0===et?void 0:et.id,viewParameter:k})})})]})]})}var tI=i(268592),tT=i(127897),tF=i(680333),tz=i(491073),tR=i(757460),tL=i.n(tR),tM=i(992544);function tZ({id:e,selectedCountry:t,onChange:i,placeholder:n,errorMessage:l}){let a=(0,w.ZP)(),{options:r}=(0,tM.Z)({selectedCountry:t});return(0,D.jsx)(y.EI,{id:e,label:a._('Country', '[m10n] countryDropdown.countryLabel', 'Label for country dropdown'),value:t,onChange:({value:e})=>{i({value:e})},placeholder:n,errorMessage:l,size:"lg",children:r.map(({value:e,label:t},i)=>(0,D.jsx)(y.EI.Option,{label:t,value:e},`${e}-${i}`))},e)}function tB({questions:e=[],answers:t,setAnswers:i,answerErrors:n,leadGenFieldMessages:l,pinId:a,leadFormId:r}){let o=(0,w.ZP)(),{logContextEvent:s}=(0,b.v)(),[d,u]=(0,_.useState)(e.map(()=>void 0)),c=(e,n)=>{let l=[...t];l[e]=n,i(l)},p=(e,t,i,n)=>{let l=[...d];if(i){let i=Array.isArray(d[e])?[...d[e],t]:[t];l[e]=i}else if(Array.isArray(d[e])){let i=d[e].filter(e=>e!==t);l[e]=i}u(l);let a=n.filter((t,i)=>Array.isArray(l[e])&&l[e].includes(i));c(e,a)},h=e=>s({event_type:10367,view_type:175,view_parameter:null,component:14307,element:e,object_id_str:a,aux_data:{lead_form_id:r,is_lead_ad:1}}),m=(e,i)=>{let{questionType:a,questionFieldType:r,questionLabel:s,questionOptions:m,multiFieldsOrder:g}=e,{placeholderText:v,element:f,customElements:x}=null!=g?l[a||0][g]:l[a||0],b=1===a?x[r||0]:f,P=t[i],w=n[i];switch(r){case 1:let S=o._('Limit reached. You can only use 80 characters in this field.', '[m10n] leadGenFields.textFieldLimitReached', 'Text field limit reached'),k=o._('80 characters max', '[m10n] leadGenFields.textFieldHelperText', 'Text field limit helper text');return(0,D.jsx)(y.nv,{id:`field-${i}`,label:s||"",name:"formTextField",errorMessage:w,size:"lg",placeholder:v||"",value:String(P),maxLength:{characterCount:80,errorAccessibilityLabel:S},helperText:k,onChange:({value:e})=>c(i,e),onBlur:()=>h(b),type:6===a?"tel":"text",autoComplete:"off"},`field-${i}`);case 2:let j=o._('Limit reached. You can only use 120 characters in this field.', '[m10n] leadGenFields.textAreaLimitReached', 'Text area limit reached'),A=o._('120 characters max', '[m10n] leadGenFields.textAreaHelperText', 'Text area limit helper text');return(0,D.jsx)(y.Kx,{id:`field-${i}`,label:s||"",name:"formTextArea",errorMessage:w,placeholder:v||"",value:String(P),maxLength:{characterCount:120,errorAccessibilityLabel:j},helperText:A,onChange:({value:e})=>c(i,e),onBlur:()=>h(b)},`field-${i}`);case 3:return(0,D.jsx)(y.FX,{id:`field-${i}`,legend:s||"",errorMessage:w,children:null==m?void 0:m.map((e,t)=>(0,D.jsx)(y.FX.RadioButton,{id:`radio-${i}-${t}`,name:`radio-${i}-${t}`,label:e,checked:d[i]===t,onChange:()=>{let n=[...d];n[i]=t,u(n),c(i,e),h(b)},value:e,size:"sm"},`radio-${i}-${t}`))},`field-${i}`);case 5:if(11===a)return(0,D.jsx)(_.Suspense,{children:(0,D.jsx)(tZ,{id:`field-${i}`,selectedCountry:String(P),onChange:({value:e})=>{c(i,e),h(b)},placeholder:v||"",errorMessage:w},`field-${i}`)},`field-${i}-suspense`);return(0,D.jsx)(y.EI,{id:`field-${i}`,label:s||"",value:String(P),onChange:({value:e})=>{c(i,e),h(b)},placeholder:v||"",errorMessage:w,size:"lg",children:null==m?void 0:m.map(e=>(0,D.jsx)(y.EI.Option,{label:e,value:e},e.toLowerCase()))},`field-${i}`);case 4:return(0,D.jsx)(y.pg,{id:`field-${i}`,legend:s||"",errorMessage:w,children:(0,D.jsx)(y.kC,{direction:"column",gap:{column:2,row:0},children:null==m?void 0:m.map((e,t)=>(0,D.jsx)(y.XZ,{label:e,checked:Array.isArray(d[i])&&d[i].includes(t),id:`checkbox-${i}-${t}`,name:`checkbox-${i}-${t}`,size:"sm",onChange:({checked:e})=>{p(i,t,e,m),h(b)}},`checkbox-${i}-${t}`))})},`field-${i}`);default:return""}};return(0,D.jsx)(y.kC,{direction:"column",gap:{row:0,column:3},children:e.map((e,t)=>m(e,t))})}var tO=i(134906);let tN=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/g,tK=()=>{let e=(0,w.ZP)(),t={1:{placeholderText:e._('Enter your answer', '[m10n]closeup.leadGenContainer.customFieldPlaceholder', 'Placeholder for custom field'),errorMessage:e._('Enter valid information to continue', '[m10n] leadGenContainer.customFieldlError', 'Invalid custom field validator error'),customElements:{1:13621,2:13622,3:13623,4:13624}},2:{placeholderText:e._('Enter full name', '[m10n]closeup.leadGenContainer.fullNamePlaceholder', 'Placeholder for name'),errorMessage:e._('Enter your full name to continue', '[m10n] leadGenContainer.nameValEmptyError', 'Invalid name validator empty error'),errorMessageSecondary:e._('Enter a valid full name to continue', '[m10n] leadGenContainer.nameValError', 'Invalid name validator error'),element:13411},3:{placeholderText:e._('Enter first name', '[m10n]closeup.leadGenContainer.firstNamePlaceholder', 'Placeholder for first name'),errorMessage:e._('Enter your first name to continue', '[m10n] leadGenContainer.firstNameValEmptyError', 'Invalid first name validator empty error'),errorMessageSecondary:e._('Enter a valid first name to continue', '[m10n] leadGenContainer.firstNameValError', 'Invalid first name validator error'),element:13614},4:{placeholderText:e._('Enter last name', '[m10n]closeup.leadGenContainer.lastNamePlaceholder', 'Placeholder for last name'),errorMessage:e._('Enter your last name to continue', '[m10n] leadGenContainer.lastNameValEmptyError', 'Invalid last name validator empty error'),errorMessageSecondary:e._('Enter a valid last name to continue', '[m10n] leadGenContainer.lastNameValError', 'Invalid last name validator error'),element:13615},5:{placeholderText:e._('Enter email', '[m10n]closeup.leadGenContainer.emailPlaceholder', 'Placeholder for email'),errorMessage:e._('Enter your email to continue', '[m10n] leadGenContainer.emailValEmptyError', 'Invalid email validator empty error'),errorMessageSecondary:e._('Enter a valid email to continue', '[m10n] leadGenContainer.emailValError', 'Invalid email validator error'),element:13412},6:{placeholderText:e._('Enter phone number', '[m10n]closeup.leadGenContainer.phoneNumberPlaceholder', 'Placeholder for phone number'),errorMessage:e._('Enter your phone number to continue', '[m10n] leadGenContainer.phoneNumberValEmptyError', 'Invalid phone number validator empty error'),errorMessageSecondary:e._('Enter a valid phone number to continue', '[m10n] leadGenContainer.phoneNumberValError', 'Invalid phone number validator error'),element:13413},7:{placeholderText:e._('Enter zip code', '[m10n]closeup.leadGenContainer.zipCodePlaceholder', 'Placeholder for zip code'),errorMessage:e._('Enter your zip code to continue', '[m10n] leadGenContainer.zipCodeValEmptyError', 'Invalid zip code validator empty error'),element:13414},8:{placeholderText:e._('Enter age', '[m10n]closeup.leadGenContainer.agePlaceholder', 'Placeholder for age'),errorMessage:e._('Enter your age to continue', '[m10n] leadGenContainer.ageValEmptyError', 'Invalid age validator empty error'),errorMessageSecondary:e._('Enter a valid age to continue', '[m10n] leadGenContainer.ageValError', 'Invalid age validator error'),errorMessageTertiary:e._('You should be older than 18 years to continue', '[m10n] leadGenContainer.ageUnderAgeError', 'Invalid age validator underage error'),element:13616},9:{errorMessage:e._('Select one option to continue', '[m10n]closeup.leadGenContainer.genderValError', 'Invalid gender validator error'),element:13617},11:{placeholderText:e._('Select a country', '[m10n]closeup.leadGenContainer.countryPlaceholder', 'Placeholder for country'),errorMessage:e._('Select one option to continue', '[m10n]closeup.leadGenContainer.countryValError', 'Invalid country validator error'),element:13618},10:{placeholderText:e._('Enter your city', '[m10n]closeup.leadGenContainer.cityPlaceholder', 'Placeholder for city'),errorMessage:e._('Enter your city to continue', '[m10n]closeup.leadGenContainer.cityValError', 'Invalid city validator error'),errorMessageSecondary:e._('Enter a valid city to continue', '[m10n]closeup.leadGenContainer.cityValError', 'Invalid city validator error'),element:13619},13:{placeholderText:e._('Enter your state/province', '[m10n]closeup.leadGenContainer.stateProvincePlaceholder', 'Placeholder for state/province'),errorMessage:e._('Enter your state/province to continue', '[m10n]closeup.leadGenContainer.stateProvinceValError', 'Invalid state/province validator error'),element:13620},14:[{multi_field_label:e._('Address line 1', '[m10n]closeup.leadGenContainer.address1Label', 'Label for address line 1'),placeholderText:e._('Enter your street address', '[m10n]closeup.leadGenContainer.addressPlaceholder', 'Placeholder for address line 1'),errorMessage:e._('Enter your address to continue', '[m10n]closeup.leadGenContainer.addressValError', 'Invalid address error'),element:14886},{multi_field_label:e._('Address line 2 (optional)', '[m10n]closeup.leadGenContainer.address2Label', 'Label for address line 2'),placeholderText:e._('Enter your apt, suite, etc.', '[m10n]closeup.leadGenContainer.addressPlaceholder', 'Placeholder for address'),errorMessage:"",element:14886}],15:[{multi_field_label:e._('Date of birth', '[m10n]closeup.leadGenContainer.dateOfBirthLabel', 'Label for date of birth'),placeholderText:e._('Enter day', '[m10n]closeup.leadGenContainer.dateOfBirthDatePlaceholder', 'Placeholder for date of birth date'),errorMessage:e._('Enter your date of birth to continue', '[m10n]closeup.leadGenContainer.dateOfBirthDateValError', 'Invalid date of birth date error'),errorMessageSecondary:e._('Enter a valid birthday to continue', '[m10n]closeup.leadGenContainer.dateOfBirthDateValError', 'Invalid birthday validator error'),element:14914},{placeholderText:e._('Select month', '[m10n]closeup.leadGenContainer.dateOfBirthMonthPlaceholder', 'Placeholder for date of birth month'),errorMessage:e._('Enter your date of birth month to continue', '[m10n]closeup.leadGenContainer.dateOfBirthMonthValError', 'Invalid date of birth month error'),element:14914}]};return{leadGenFieldMessages:t,getLeadGenFieldErrors:(e,i)=>{let n=[],l=(e,i)=>{let{questionType:l,questionFieldType:a,multiFieldsOrder:r}=e,{errorMessage:o,errorMessageSecondary:s,errorMessageTertiary:d}=null!=r?t[l][r]:t[l];switch(l){case 2:let u=(0,tO.a3)(String(i),[(0,tO.aH)({message:o}),(0,tO.VG)({message:s})]);n.push(u);break;case 3:let c=(0,tO.a3)(String(i),[(0,tO.aH)({message:o}),(0,tO.VG)({message:s})]);n.push(c);break;case 4:let p=(0,tO.a3)(String(i),[(0,tO.aH)({message:o}),(0,tO.VG)({message:s})]);n.push(p);break;case 5:let h=(0,tO.a3)(String(i),[(0,tO.aH)({message:o}),(0,tO.GT)({message:s})]);n.push(h);break;case 6:let _=(0,tO.a3)(String(i),[(0,tO.aH)({message:o}),(0,tO.Bh)({message:s})]);n.push(_);break;case 8:let m=(0,tO.a3)(String(i),[(0,tO.aH)({message:o}),(0,tO.ZA)({invalidAgeString:s,checkUnderAgeWithString:d})]);n.push(m);break;case 10:let g=(0,tO.a3)(String(i),[(0,tO.aH)({message:o}),(0,tO.vd)({message:s,pattern:tN})]);n.push(g);break;case 15:if(0===r){let e=(0,tO.a3)(String(i),[(0,tO.aH)({message:o}),(0,tO.fS)({invaliddobDateString:s})]);n.push(e);break}{let e=(0,tO.a3)(String(i),[(0,tO.aH)({message:o})]);n.push(e);break}default:if(4===a){n.push("");break}let y=(0,tO.a3)(String(i),[(0,tO.aH)({message:o})]);n.push(y)}};i.forEach((t,i,n)=>{let a=e[i],{questionType:r,multiFieldsOrder:o}=a,s=t;15===r&&0===o&&i+1<n.length&&(s=t.toString()+" "+n[i+1].toString()),l(a,s)});let a=n.some(e=>e&&""!==e);return{hasErrors:a,errors:n}},addressQuestion:[{questionType:14,questionFieldType:1,questionLabel:"Address line 1",questionOptions:null,multiFieldsOrder:0},{questionType:14,questionFieldType:1,questionLabel:"Address line 2 (optional)",questionOptions:null,multiFieldsOrder:1}],dobQuestion:[{questionType:15,questionFieldType:1,questionLabel:"Date of birth",questionOptions:null,multiFieldsOrder:0},{questionType:15,questionFieldType:5,questionLabel:"",questionOptions:["January","February","March","April","May","June","July","August","September","October","November","December"],multiFieldsOrder:1}]}},tU={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},tH=e=>e.reduce((e,t)=>{let{dobQuestion:i,addressQuestion:n}=tK(),{questionType:l}=t;return 14===l?[...e,...n]:15===l?[...e,...i]:[...e,t]},[]),tV=(e,t)=>{let i=[],n="",l=null,a=null;return e.forEach((e,r)=>{14===e.questionType?"string"==typeof t[r]&&(""===n?n=t[r]:(n=n+" "+t[r],i.push(n))):15===e.questionType?"string"==typeof t[r]&&(null===l?l=2===t[r].length?t[r]:"0"+t[r]:(a=tU[t[r]],i.push(a+"/"+l))):i.push(t[r])}),i};var tG=i(186656),tW=i(966113),t$=i(312918),tq=i(878552);let tY=void 0!==p?p:p=i(607093);function tX({pinKey:e,leadFormResponseState:t,setIsLoadingLeadFormSubmit:i,setLeadFormResponseState:n,submitButtonRef:l}){var a,r;let o=(0,w.ZP)(),{data:s}=(0,J.u)(tY,e),d=(0,eA.F)(),{checkExperiment:u}=d,{anyEnabled:c}=u("web_lead_ads_multiple_policy_link"),{title:p,adDestinationUrl:h,description:m,entityId:g,promotedIsLeadAd:v}=s,{fullName:f,fullName:x,imageMediumUrl:P,verifiedIdentity:S,isVerifiedMerchant:k,username:j}=s.pinner||{},{leadFormId:A,pinPromotionId:C,completionMessage:E,disclosureLanguage:I,privacyPolicyLink:T,policyLinks:F}=s.promotedLeadForm||{},{leadGen:z,updateLeadGenInfo:R}=(0,tq.Q)(),L=e=>4===e,{leadGenFieldMessages:M,getLeadGenFieldErrors:Z}=tK(),B=null===(a=s.promotedLeadForm)||void 0===a?void 0:null===(r=a.questions)||void 0===r?void 0:r.map(e=>({questionType:e.questionType,questionFieldType:e.questionFieldType,questionLabel:e.questionLabel,questionOptions:e.questionOptions})),O=tH(B||[]),[N,K]=(0,_.useState)(O.map(({questionFieldType:e})=>L(e)?[]:"")),[U,H]=(0,_.useState)(O.map(()=>"")),[V,G]=(0,_.useState)(!1),[W,$]=(0,_.useState)(""),q=!!(null!=S&&S.verified),Y=`/${null!=j?j:""}/`,{formSubmissions:X}=z,Q=X[A||""],{logContextEvent:ee}=(0,b.v)(),ei=o._('You have to agree to continue', '[m10n] closeup.leadGen.acceptTermsErrorMessage', 'Accept terms error message'),en=(e,t)=>{let i=[...e],n=[...t],l=n.reduce((e,t,i)=>{let n=[...e];return 4===t.questionFieldType&&n.push(i),n},[]),a=[...l],r=i.map((e,t)=>{if(a.includes(t)){let t=tL().unparse([e],{quotes:!0,quoteChar:'"'});return t}return e});return r},el=()=>{let e=tV(O,N),{errors:t,hasErrors:l}=Z(O,N);if(H([...t]),V?$(""):$(ei),!l&&V){i(!0);let t=en(e,O),l={fullName:"",email:"",phoneNumber:"",zipCode:"",formSubmissions:X};R(l);let a={pin_promotion_id:C&&C.toString(),answers:JSON.stringify(t)};(0,tG.Z)({url:"/v3/lead_form/submit/",method:"POST",data:a}).then(()=>{let e={...X};e[A||""]=g,R({...l,formSubmissions:e}),i(!1),n("success"),ee({event_type:10368,view_type:175,view_parameter:null,component:14307,object_id_str:g})}).catch(()=>{i(!1),n("error"),ee({event_type:10370,view_type:175,view_parameter:null,component:14307,object_id_str:g,aux_data:{is_lead_ad:1}})})}};(0,_.useImperativeHandle)(l,()=>({handleClick:el}));let ea=(0,D.jsx)(y.xu,{marginTop:2,children:(0,D.jsxs)(y.kC,{gap:{column:0,row:2},children:[(0,D.jsx)(y.qb,{accessibilityLabel:o._('Privacy policy error', '[m10n] closeup.leadGen.privacyPolicyErrorLabel', 'Privacy policy error icon'),type:"problem"}),(0,D.jsx)(y.xv,{size:"100",color:"error",children:W})]})}),er=(0,D.jsx)(y.xu,{marginTop:2,children:(0,D.jsxs)(y.xv,{size:"100",color:"subtle",children:[I,F?" ":"",c&&(null==F?void 0:F.map((e,t)=>(0,D.jsxs)(y.xv,{size:"100",color:"subtle",inline:!0,children:[t>0&&t<F.length?", ":"",(0,et.nk)(o._('{{policyLinkLabel}}', '[m10n]closeup.leadGen.policyLinkLabel', 'Policy link label, policyLinkLabel: the policy links of the brand'),{policyLinkLabel:(0,D.jsx)(y.xv,{weight:"bold",size:"100",color:"subtle",inline:!0,underline:!0,children:(0,D.jsx)(y.rU,{href:e.link||"",target:"blank",display:"inlineBlock",underline:"always",children:e.label},A)})})]},`policyLink-${t}`)))]})});return(0,_.useEffect)(()=>{ee({event_type:10363,view_type:175,view_parameter:null,component:14307,object_id_str:g,aux_data:{lead_form_id:A,is_lead_ad:1}}),Q?(n("success"),ee({event_type:13,view_type:175,view_parameter:null,component:14308,object_id_str:g,aux_data:{lead_form_id:A,is_lead_ad:1}})):ee({event_type:13,view_type:175,view_parameter:null,component:14307,object_id_str:g,aux_data:{lead_form_id:A,is_lead_ad:1}})},[Q,A,g,ee,n]),(0,D.jsx)(_.Fragment,{children:"success"===t||Q?(0,D.jsxs)(y.xu,{paddingY:3,marginTop:1,children:[(0,D.jsxs)(y.kC,{direction:"column",justifyContent:"between",gap:{row:0,column:3},children:[(0,D.jsx)(t$.Z,{fullName:x,hasVerifiedIdentity:q,imageUrl:P,isPromoted:null!=v&&v,isVerifiedMerchant:k||!1,profileUrl:Y,isLeadPin:!0}),(0,D.jsx)(y.X6,{size:"600",children:o._('Your information was sent!', '[m10n] closeup.leadGen.InformationSentMessage', 'Information sent message')}),(0,D.jsx)(y.xv,{size:"300",children:E})]}),(0,D.jsx)(y.xu,{paddingY:6,children:(0,D.jsx)(y.ZP,{accessibilityLabel:o._('Visit site', '[m10n]closeup.leadGen.visitSiteButton', 'Submit button for the form'),size:"lg",text:o._('Visit site', '[m10n]closeup.leadGen.visitSiteButton', 'Visit Site button for the lead ad success page'),onClick:()=>{ee({event_type:8948,view_type:175,view_parameter:null,object_id_str:g,aux_data:{click_type:"clickthrough",closeup_navigation_type:"click",lead_form_id:A}})},target:"blank",href:h||"",color:"red"})})]}):(0,D.jsxs)(y.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:12,paddingBottom:24}},marginTop:2,children:[(0,D.jsxs)(y.kC,{direction:"column",justifyContent:"between",gap:{row:0,column:3},children:[(0,D.jsx)(t$.Z,{fullName:x,hasVerifiedIdentity:q,imageUrl:P,isPromoted:v||!1,isVerifiedMerchant:k||!1,profileUrl:Y,isLeadPin:!0}),(0,D.jsx)(y.X6,{size:"600",children:p}),(0,D.jsx)(y.xv,{size:"300",children:m})]}),(0,D.jsx)(y.xu,{paddingY:6,children:(0,D.jsxs)(y.kC,{direction:"column",gap:{row:0,column:3},children:[(0,D.jsx)(tB,{questions:O,answers:N,setAnswers:K,answerErrors:U,leadGenFieldMessages:M,pinId:g,leadFormId:A}),"error"===t&&(0,D.jsxs)(y.xu,{display:"flex",marginTop:2,justifyContent:"start",children:[(0,D.jsx)(y.qb,{type:"problem"}),(0,D.jsx)(y.xu,{paddingX:2,children:(0,D.jsx)(y.xv,{size:"100",color:"error",children:o._('Something went wrong. Please try "Submit" again.', '[m10n] closeup.leadGen.InternalErrorMessage', 'Service error message')})})]})]})}),(0,D.jsx)(y.xu,{"data-test-id":"lead-gen-container-policy",children:(0,D.jsxs)(y.kC,{gap:2,children:[(0,D.jsx)(y.XZ,{id:"acceptTermsCheckbox",size:"sm",checked:V,errorMessage:W,name:"acceptTermsCheckbox",onChange:()=>{G(!V)}}),(0,D.jsxs)(y.kC,{direction:"column",children:[(0,D.jsx)(y.xv,{size:"100",color:"subtle",children:(0,et.nk)(o._('By checking the box and submitting, you agree to send your info to {{ brand }} so that they can contact you about this offer. {{ brand }} agrees to use your information in accordance with {{ theirPrivacyPolicy }}. Pinterest will also use your info in accordance with {{ ourPrivacyPolicy }}.', '[m10n]closeup.leadGen.leadGenDisclaimer', 'Disclaimer text, brand: the entity who created the lead ad, theirPrivacyPolicy: the privacy policy of the brand, ourPrivacyPolicy: the privacy policy of Pinterest'),{brand:f,theirPrivacyPolicy:(0,D.jsx)(y.xv,{weight:"bold",size:"100",color:"subtle",inline:!0,children:(0,D.jsx)(y.rU,{href:T||"",target:"blank",display:"inlineBlock",underline:"always",children:o._('their privacy policy', '[m10n]closeup.leadGen.theirPrivacyPolicy', 'Lead form advertiser privacy policy')},A)},"theirPrivacyPolicyText"),ourPrivacyPolicy:(0,D.jsx)(y.xv,{weight:"bold",size:"100",color:"subtle",inline:!0,children:(0,D.jsx)(y.rU,{href:tW.R_9,target:"blank",display:"inlineBlock",underline:"always",children:o._('our privacy policy', '[m10n]closeup.leadGen.ourPrivacyPolicy', 'Lead form pinterest privacy policy')},A)},"ourPrivacyPolicyText")})}),F||I?er:null,W&&ea]})]})})]})})}var tQ=i(425288),tJ=i(700380);let{Provider:t0,useHook:t1}=(0,tQ.Z)("LeadGenShadow");function t2({children:e,metadataContainerRef:t}){var i,n;let[l,a]=(0,_.useState)(!1),r=null===(i=t.current)||void 0===i?void 0:i.children[0],o=window.innerHeight;return(0,_.useEffect)(()=>{if(r){let{bottom:e}=r.getBoundingClientRect();a(o<e+34)}let e=(0,tJ.Z)(()=>{if(r){let{bottom:e}=r.getBoundingClientRect();a(o<e+34)}},50);return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}},[null===(n=t.current)||void 0===n?void 0:n.children,r,o]),(0,D.jsx)(t0,{value:{showShadow:l},children:e})}let t8={boxShadow:"0px -8px 8px -5px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"};function t3({submitButtonRef:e,showLeadPinStdBeta:t=!1}){let i=(0,w.ZP)(),{showShadow:n}=t1(),l=(0,D.jsx)(y.zx,{onClick:()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.handleClick()},type:"submit",accessibilityLabel:i._('Submit', '[m10n]closeup.leadGen.submitButton', 'Submit button for the form'),size:"lg",fullWidth:t,text:i._('Submit', '[m10n]closeup.leadGen.submitButton', 'Submit button for the form'),color:"red"});return(0,D.jsx)(y.Le,{bottom:0,children:(0,D.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{borderTop:t?"":"1px solid #EFEFEF",borderBottomRightRadius:32,borderBottomLeftRadius:32,...n&&t&&t8}},color:"default",paddingX:8,paddingY:3,width:"100%","data-test-id":"lead-gen-footer",children:t?(0,D.jsx)(y.kC,{justifyContent:"end",alignItems:"center",gap:4,children:l}):(0,D.jsx)(y.kC,{alignItems:"stretch",justifyContent:"end",children:l})})})}var t6=i(81072),t9=i(814197);function t7(e){var t;let{height:i}=e,n=(0,_.useRef)(null),l=(0,t6.Z)(),a=(null===(t=n.current)||void 0===t?void 0:t.getBoundingClientRect().top)||0;return(0,D.jsx)(y.xu,{ref:n,id:"lead-gen-sticky-container ","data-test-id":"lead-gen-sticky-container",children:(0,D.jsx)(y.Le,{height:i,top:l+-40+a,zIndex:t9.mS,children:e.children})})}var t4=i(385646),t5=i(537313),ie=i(333312);let it=void 0!==h?h:h=i(891807);function ii({actionBarHeight:e,isStoryPin:t,onClickThrough:i,pinKey:n,trackingParamsMap:l}){var a;let r=(0,_.useRef)(null),{data:o}=(0,J.u)(it,n),{currentDomain:s}=(0,t5.Wp)({carouselData:o.carouselData&&{carouselSlots:o.carouselData.carouselSlots&&o.carouselData.carouselSlots.map(e=>({domain:e.domain,link:e.link})),index:null===(a=o.carouselData)||void 0===a?void 0:a.index},domain:o.domain});return(0,D.jsxs)(y.xu,{display:"inlineBlock",position:"relative",width:"100%",children:[(0,D.jsx)(t5.ZP,{actionBarHeight:e,onClickThrough:i,pinKey:o,showDomainInLink:!0,trackingParamsMap:l,children:(0,D.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{textDecoration:"underline"}},ref:r,children:(0,D.jsx)(y.xv,{size:eM.n,children:(0,t4.f)(s)})})}),t&&(0,D.jsx)(ie.default,{showCaret:!0,anchor:r.current,experienceIds:[504729],flyoutSize:"md",placementId:1000167,textAlign:"center",textWeight:"normal"})]})}let il=(0,_.lazy)(()=>Promise.all([i.e(67295),i.e(11177),i.e(21177)]).then(i.bind(i,707047)));function ia({pin:e,data:t,goBack:i,isReactionsExpansionEnabled:n,isStoryPin:l,onClickThrough:a,onUpdate:r,viewParameter:o,onSaveButtonClick:s,showRepinOnInitialRender:d,actionBarContainerRef:u,trafficSource:c,visualContentContainer:p,visualContentContainerHeight:h,descriptionPaneWidth:m,metadataContainerRef:g,leadFormHeight:v,isOverflowVisible:f,showLeadPinStdBeta:x=!0}){let[b,P]=(0,_.useState)(!1),[S,k]=(0,_.useState)(null),j=(0,w.ZP)(),A=(0,_.useRef)();return(0,D.jsxs)(t2,{metadataContainerRef:g,children:[p,(0,D.jsx)(y.xu,{"data-test-id":"lead-gen-description-content-container",display:"flex",direction:"column",height:"100%",maxHeight:h,width:m,children:!t||b?(0,D.jsx)(y.xu,{alignItems:"center",display:"flex",height:"100%",justifyContent:"center",paddingY:4,children:(0,D.jsx)(y.$j,{accessibilityLabel:j._('Pin details loading', ' - ', ' -- '),show:!0})}):(0,D.jsxs)(_.Fragment,{children:[(0,D.jsxs)(y.xu,{dangerouslySetInlineStyle:{__style:{paddingRight:Z.g9,paddingLeft:Z.g9}},direction:"column",display:"flex",flex:"grow",maxHeight:v,overflow:f?"visible":"auto",children:[(0,D.jsx)(ej.Z,{name:"SafeSuspense_CloseupBody_CloseupActionBar",children:(0,D.jsx)(eC.Z,{children:(0,D.jsx)(il,{goBack:i,gridDescription:e.description,isDeletedStoryPin:!1,isOnSecretBoard:!1,isReactionsExpansionEnabled:n,onEditSubmit:r,pin:e,viewParameter:o,onSaveButtonClick:s,showRepinOnInitialRender:d,isStoryPin:!1,actionBarContainerRef:u,outerPaddingSize:Z.$T,showLeadPin:!0})})}),(0,D.jsx)(y.xu,{alignItems:"stretch",display:"flex",flex:"grow",justifyContent:"start",direction:"column",ref:g,children:(0,D.jsxs)(y.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,D.jsx)(y.xu,{direction:"row",display:"flex","data-test-id":"maybe-clickthrough-link",children:(0,D.jsx)(eD.q,{children:({hovered:t,onMouseEnter:i,onMouseLeave:n})=>{var r;return(0,D.jsx)(ek.Z,{hovered:t,pinKey:{type:"deprecated",data:e},trafficSource:c,trackingParamsMap:e.tracking_params_map,viewType:3,children:(0,D.jsx)(y.xu,{onMouseEnter:i,onMouseLeave:n,children:(0,D.jsx)(ii,{actionBarHeight:(null===(r=u.current)||void 0===r?void 0:r.offsetHeight)||Z.Ie,onClickThrough:a,pinKey:{type:"deprecated",data:e},trackingParamsMap:e.tracking_params_map,isStoryPin:l})})})}})}),(0,D.jsx)(tX,{pinKey:{type:"deprecated",data:e},leadFormResponseState:S,setIsLoadingLeadFormSubmit:P,setLeadFormResponseState:k,submitButtonRef:A})]})})]}),"success"!==S&&(0,D.jsx)(t3,{submitButtonRef:A,showLeadPinStdBeta:x})]})})]})}function ir({pin:e,data:t,goBack:i,isReactionsExpansionEnabled:n,isStoryPin:l,onClickThrough:a,onUpdate:r,viewParameter:o,onSaveButtonClick:s,showRepinOnInitialRender:d,actionBarContainerRef:u,trafficSource:c,visualContentContainer:p,descriptionPaneWidth:h,metadataContainerRef:_,showLeadPinStdBeta:m}){let g={visualContentContainer:(0,D.jsx)(t7,{children:p}),isOverflowVisible:!0,showLeadPinStdBeta:m};return(0,D.jsx)(ia,{pin:e,data:!!t,goBack:i,isReactionsExpansionEnabled:n,onUpdate:r,viewParameter:o,onSaveButtonClick:s,showRepinOnInitialRender:d,actionBarContainerRef:u,trafficSource:c,onClickThrough:a,isStoryPin:l,descriptionPaneWidth:h,metadataContainerRef:_,visualContentContainer:p,...g})}var io=i(71052),is=i(112690),id=i(121093);function iu(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let ic=(e,t,i)=>{let n=window.innerHeight,l=window.innerWidth,a=l-e.width-24-i.right,r=i.left-e.width-24;return!(i.top<8)&&!(n-i.bottom<8)&&!!t&&({right:a,left:r})[t]>0};class ip extends _.Component{constructor(...e){super(...e),iu(this,"state",{flyoutType:""}),iu(this,"componentDidUpdate",()=>{this.state.flyoutType&&this.setFlyoutStyle()}),iu(this,"logFeedback",e=>{var t,i,n,l;let{pin:a,logContextEvent:r}=this.props,o={pin_is_shop_the_look:null!==(t=a.aggregatedPinData)&&void 0!==t&&t.isShopTheLook?"1":"0",board_owner_id:null!==(i=a.board)&&void 0!==i&&i.owner?a.board.owner.entityId:"",pin_recommendation_reason:a.recommendationReason&&{reason:a.recommendationReason.reason},pin_is_promoted:a.isPromoted?"1":"0"},s={board_id:null!==(n=null===(l=a.board)||void 0===l?void 0:l.entityId)&&void 0!==n?n:"",is_downstream_promoted_pin:a.isDownstreamPromotion?"1":"0",url:a.link||"",pin_id:a.entityId,image_signature:a.imageSignature,is_promoted_pin:a.isPromoted?"1":"0",commerce_data:JSON.stringify(o)};r({view_type:11,view_parameter:195,component:13186,event_type:102,element:e?10615:10616,aux_data:s,object_id_str:a.entityId})}),iu(this,"flyoutParentRef",(0,_.createRef)()),iu(this,"handleEgSurveyDismiss",(e,t)=>{this.setState({flyoutType:""}),this.logFeedback(e),t()}),iu(this,"handleEgSurveyClick",e=>{this.setState({flyoutType:e})}),iu(this,"setFlyoutStyle",()=>{let e=this.flyoutParentRef&&this.flyoutParentRef.current&&this.flyoutParentRef.current.children[0];if(e){e.style.zIndex=`${t9.fS}`;let t=e.children[0];t&&(t.style.border="transparent")}})}render(){let e;let{imageContainerRef:t,maybeLinkRef:i,legoLinkClickthroughAnchorRef:n}=this.props,{flyoutType:l}=this.state;"maybeLink"===l?e=i:"legoMaybeLink"===l?e=n:"imageContainer"===l&&(e=t);let a={height:this.flyoutParentRef&&this.flyoutParentRef.current&&this.flyoutParentRef.current.children[0]?this.flyoutParentRef.current.children[0].clientHeight:0,width:230},r=e&&e.current?e.current.getBoundingClientRect():null,o=!!r&&ic(a,"imageContainer"===l?"left":"right",r);return l&&o?(0,D.jsx)(id.Z,{eligibleIds:[501145],placementId:12,children:({complete:t})=>(0,D.jsx)(y.xu,{ref:this.flyoutParentRef,position:"absolute",children:(0,D.jsx)(y.J2,{anchor:e?e.current:null,idealDirection:"imageContainer"===l?"left":"right",onDismiss:()=>{},size:"sm",children:(0,D.jsxs)(y.xu,{padding:4,children:[(0,D.jsx)(y.xv,{weight:"bold",children:this.props.i18n._('Is this site useful?', 'Ask user about click through link usefulness on a Small Flyout on closeup', 'Ask user about click through link usefulness on a Small Flyout on closeup')}),(0,D.jsx)(y.xv,{children:this.props.i18n._('Your feedback helps make Pinterest better.', 'Ask user about usefulness to improve click through links quality', 'Ask user about usefulness to improve click through links quality')}),(0,D.jsxs)(y.xu,{display:"flex",direction:"row",marginTop:4,width:"198px",children:[(0,D.jsx)(y.xu,{column:6,marginEnd:1,children:(0,D.jsx)(y.zx,{fullWidth:!0,size:"sm",color:"gray",text:this.props.i18n._('No', 'Keep it short, shown on a button to indicate whether its helpful or not', 'Keep it short, shown on a button to indicate whether its helpful or not'),onClick:()=>this.handleEgSurveyDismiss(!1,t)})}),(0,D.jsx)(y.xu,{column:6,marginStart:1,children:(0,D.jsx)(y.zx,{fullWidth:!0,size:"sm",color:"gray",text:this.props.i18n._('Yes', 'Keep it short, shown on a button to indicate whether its helpful or not', 'Keep it short, shown on a button to indicate whether its helpful or not'),onClick:()=>this.handleEgSurveyDismiss(!0,t)})})]})]})})})}):""}}let ih=(0,_.forwardRef)((e,t)=>{let i=(0,w.ZP)(),n=(0,is.Z)();return(0,D.jsx)(ip,{...e,ref:t,i18n:i,logContextEvent:n})});var i_=i(139134),im=i(681227),ig=i(717615),iy=i(966676);let iv={__style:{marginBottom:"0",marginTop:"0",maxWidth:Z.KP,minWidth:Z.Gg}};function ix({children:e,isWideVideo:t}){let{showCloseupContentRight:i,maxWidth:n,paneWidth:l}=(0,iy.x4)();return(0,D.jsx)(y.xu,{display:"flex",rounding:8,width:"100%",height:"100%",maxWidth:i||t?n:l,position:"relative","data-test-id":"closeup-lego-container",children:(0,D.jsx)("div",{onClick:e=>{e.stopPropagation()},style:{display:"flex"},children:(0,D.jsx)(y.xu,{dangerouslySetInlineStyle:{__style:{cursor:"auto",paddingTop:10}},display:"flex",children:(0,D.jsx)(y.xu,{dangerouslySetInlineStyle:t?iv:{},display:"flex",children:e})})})})}var ib=i(273690),iP=i(827834);let iw=(0,_.lazy)(()=>Promise.all([i.e(97270),i.e(46760),i.e(92982)]).then(i.bind(i,576070))),iS=(0,_.lazy)(()=>Promise.all([i.e(67295),i.e(11177),i.e(21177)]).then(i.bind(i,707047)));function ik({commentCountInUSM:e,isWideVideo:t,didShortClickThrough:i,webLinkSurveyState:{webLinkSurveyRef:n,imageContainerRef:l,legoLinkClickthroughAnchorRef:a,maybeLinkRef:r},pin:o,outerBodyStyle:s,isEligibleForPinReactions:d,isStoryPin:u,trafficSource:c,visualContentContainer:p,isCloseupMaximized:h,data:v,outerPaddingSize:f,isInStream:x,isReactionsExpansionEnabled:b,metadataContainerRef:P,onClickThrough:S,viewParameter:k,metadata:j,viewer:A,orbacSubjectId:C,setIsLoadingNewlyCreatedComment:I=()=>{},relatedModulesResource:T,descriptionContentMaxHeight:F,marginBottom:z=0,isDeletedStoryPin:R,onSaveButtonClick:L,showRepinOnInitialRender:O,goBack:N,onUpdate:K,routePush:U,closeupActionBarMaxWidth:H,visualContentContainerRef:V,showPDPComments:G}){var W,$,q,Y,X,Q,J,ee,et,ei,en,el,ea;let{checkExperiment:er}=(0,eA.F)(),eo=(0,_.useRef)(null),{descriptionPaneWidth:es}=(0,iy.x4)(),ed=(0,m.useSelector)(({changeBoardFromToast:e})=>e)||{},eu=(0,w.ZP)(),ec=(0,g.useHistory)(),ep=(0,ig.Z)(),{pinner:eh}=o,e_=(0,tj.q6)(A,null==eh?void 0:eh.id,ep),{getShowClickthroughLink:em}=(0,e5.ZP)({pin:o}),eg=em(u),ey=!(e_&&!C)&&(!o.is_eligible_for_pdp||!!G)&&!o.comments_disabled&&!!o.is_eligible_for_aggregated_comments,ev=!!o.promoted_is_lead_ad&&er("web_lead_ads_std_beta").anyEnabled,ef=0!==Object.keys(o).length,ex=!!o.story_pin_data_id&&!1===o.should_open_in_stream,eb=(0,im.J6)({board:o.board&&{isCollaborative:o.board.is_collaborative,collaboratedByMe:o.board.collaborated_by_me},videos:o.videos&&o.videos.id?{entityId:o.videos.id}:null,isDownstreamPromotion:o.is_downstream_promotion,isPromoted:o.is_promoted,storyPinDataId:o.story_pin_data_id},!!R,ex),eP=(null==V?void 0:null===(W=V.current)||void 0===W?void 0:W.clientHeight)||0;return(0,D.jsxs)(y.xu,{height:"100%",marginBottom:z,children:[(0,D.jsx)(ix,{isWideVideo:t,children:(0,D.jsxs)(y.xu,{display:"flex",position:"relative",children:[!i&&(0,D.jsx)(ih,{ref:n,imageContainerRef:l,legoLinkClickthroughAnchorRef:a,maybeLinkRef:r,pin:{aggregatedPinData:o.aggregated_pin_data&&{isShopTheLook:o.aggregated_pin_data.is_shop_the_look},board:o.board&&{entityId:o.board.id,owner:o.board.owner&&{entityId:null!==($=o.board.owner.id)&&void 0!==$?$:""}},entityId:o.id,imageSignature:o.image_signature,isDownstreamPromotion:o.is_downstream_promotion,isPromoted:o.is_promoted,link:o.link,recommendationReason:o.recommendation_reason&&{reason:o.recommendation_reason.reason}}}),(0,D.jsx)(y.xu,{color:ef?"default":"transparent",dangerouslySetInlineStyle:{__style:null!=s?s:{}},display:"flex",position:"relative",rounding:2,children:(0,D.jsxs)(y.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,D.jsx)(ib.Z,{isStoryPin:u,isWideVideo:t,children:ef?(0,D.jsx)(M,{pinKey:{type:"deprecated",data:o},pinImageUrl:null!==(q=o.images&&(null===(Y=o.images["236x"])||void 0===Y?void 0:Y.url))&&void 0!==q?q:"",closeupNavigationType:(0,iP.Z)(ec,c),children:o.promoted_is_lead_ad?(0,D.jsx)(ir,{pin:o,data:!!v,goBack:N,onUpdate:K,viewParameter:k,onSaveButtonClick:L,showRepinOnInitialRender:O,actionBarContainerRef:eo,trafficSource:c,onClickThrough:S,isStoryPin:u,descriptionPaneWidth:es,metadataContainerRef:P,visualContentContainer:p,visualContentContainerHeight:eP,showLeadPinStdBeta:ev,isReactionsExpansionEnabled:b}):(0,D.jsxs)(_.Fragment,{children:[p,(0,D.jsx)(y.xu,{"data-test-id":"description-content-container",display:"flex",direction:"column",height:h?0:"100%",maxHeight:u?void 0:F,maxWidth:t?Z.KP:void 0,width:t?void 0:es,children:v?(0,D.jsxs)(_.Fragment,{children:[(0,D.jsxs)(y.xu,{dangerouslySetInlineStyle:{__style:{paddingLeft:Z.g9}},direction:"column",display:"flex",flex:"grow",children:[!x&&(0,D.jsx)(ej.Z,{name:"SafeSuspense_CloseupBody_CloseupActionBar",children:(0,D.jsx)(eC.Z,{children:(0,D.jsx)(iS,{goBack:N,gridDescription:null!==(X=o.description)&&void 0!==X?X:"",isDeletedStoryPin:!!R,isReactionsExpansionEnabled:b,isOnSecretBoard:!1,onEditSubmit:K,pin:o,routePush:U,viewParameter:k,isORBACProfileManager:e_,onSaveButtonClick:L,showRepinOnInitialRender:O,isStoryPin:u,actionBarContainerRef:eo,outerPaddingSize:f,maxWidth:H})})}),(0,D.jsx)(y.xu,{alignItems:"stretch",display:"flex",flex:"grow",justifyContent:"start",direction:"column",overflow:"auto",ref:P,children:(0,D.jsxs)(y.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,D.jsxs)(B,{outerPaddingSize:f,children:[eb&&!!o.reaction_counts&&!b&&(0,D.jsx)(y.xu,{"data-test-id":"reactions",children:(0,D.jsx)(i_.Z,{pinId:o.id,reactionCounts:o.reaction_counts})}),eg&&(0,D.jsxs)(y.xu,{direction:"row",display:"flex","data-test-id":"maybe-clickthrough-link",children:[(0,D.jsx)(eD.q,{children:({hovered:e,onMouseEnter:t,onMouseLeave:i})=>{var n;return(0,D.jsx)(ek.Z,{hovered:e,pinKey:{type:"deprecated",data:o},trafficSource:c,trackingParamsMap:o.tracking_params_map,viewType:3,children:(0,D.jsx)(y.xu,{onMouseEnter:t,onMouseLeave:i,children:(0,D.jsx)(ii,{actionBarHeight:(null===(n=eo.current)||void 0===n?void 0:n.offsetHeight)||Z.Ie,onClickThrough:S,pinKey:{type:"deprecated",data:o},trackingParamsMap:o.tracking_params_map,isStoryPin:u})})})}}),(0,D.jsx)(y.xu,{ref:a,marginEnd:-7,marginStart:6,width:4})]})]}),j]})})]}),(ey||b)&&(0,D.jsx)(y.Le,{bottom:0,children:(0,D.jsx)(E,{aggregatedPinDataId:null===(Q=o.aggregated_pin_data)||void 0===Q?void 0:Q.id,closeupAttributionId:null===(J=o.closeup_attribution)||void 0===J?void 0:J.id,commentCount:o.comments_disabled?0:(null!==(ee=null===(et=o.aggregated_pin_data)||void 0===et?void 0:et.comment_count)&&void 0!==ee?ee:0)+(null!==(ei=null===(en=o.aggregated_pin_data)||void 0===en?void 0:null===(el=en.did_it_data)||void 0===el?void 0:el.images_count)&&void 0!==ei?ei:0),commentCountInUSM:e,disablePhotoCommentSelection:!!o.done_by_me,isEligibleForPinReactions:d,isPDP:o.is_eligible_for_pdp,isReactionsExpansionEnabled:b,orbacSubjectId:C,pinId:o.id,privatePin:"secret"===o.privacy,reactionByMe:o.reaction_by_me||0,reactionCounts:o.reaction_counts,setIsLoadingNewlyCreatedComment:I,showCommentComposer:ey,storyPinDataId:o.story_pin_data_id,viewParameter:k})})]}):(0,D.jsx)(y.xu,{alignItems:"center",display:"flex",height:"100%",justifyContent:"center",paddingY:4,children:(0,D.jsx)(y.$j,{accessibilityLabel:eu._('Pin details loading', ' - ', ' -- '),show:!0})})})]})}):(0,D.jsx)(y.kC,{alignItems:"center",height:300,justifyContent:"center",width:"100%",children:(0,D.jsx)(y.$j,{accessibilityLabel:eu._('Pin loading', ' - ', ' -- '),show:!0})})}),i&&!o.is_promoted&&T.data&&T.data.length>0&&(0,D.jsx)(io.C,{})]})})]})}),ed.shouldOpenModal&&ed.newPin&&(null===(ea=ed.originalPin)||void 0===ea?void 0:ea.id)===o.id&&(0,D.jsx)(ej.Z,{name:"SafeSuspense_CloseupBody_ChangeBoardModal",children:(0,D.jsx)(eC.Z,{children:(0,D.jsx)(iw,{experience:ed.experience,pinKey:{type:"deprecated",data:ed.newPin}})})})]})}function ij({disableRelatedResource:e=!1,relatedResourceOptions:t,hasXYcoordinates:i,isEligibleForStlFlyout:n,isStoryPin:l,isVideoPin:a,isWideVideo:r,pin:o,searchQuery:s,taggedProducts:d,trafficSource:u,viewParameterType:c,onClickThrough:p,data:h,didShortClickThrough:m,goBack:g,isCloseupMaximized:y=!1,isInStream:v=!1,isDeletedStoryPin:f,onSaveButtonClick:x,onUpdate:b,outerBodyStyle:P,outerPaddingSize:w,routePush:S,showRepinOnInitialRender:k,viewType:A,ideaPinStelaCategories:C,currentIdeaPinId:E,isCommentSectionOpen:I,onCommentSectionClick:T,onCloseupBodyUpdate:F,shouldShowStlCarouselForOwnPin:z,storyPinTaggedProducts:R,clientTrackingParams:L,viewportSize:M,shouldShowPartnerModule:Z,trendsData:B,showTrendsOnPinCloseup:O,showPinStats:N}){let[K,U]=(0,_.useState)(!1),H=(0,es.Z)(e?null:{name:t.name,options:t.options}),V=(0,_.useRef)(null),G=(0,iy.x4)(),W=(0,j.Z)(),{checkExperiment:$}=(0,eA.F)(),q=!o.is_promoted&&!o.is_downstream_promotion&&!f,Y=$(o.videos&&o.videos.id||o.story_pin_data_id?"dweb_reactions_expansion_mvp_idea_video_pin":"dweb_reactions_expansion_mvp_web_pin"),X=Y.anyEnabled,Q="enabled_count_in_usm"===Y.group,{anyEnabled:J}=$("web_m10n_business_access_orbac_ga"),ee=(0,ig.Z)(),et=J?(0,tj.lJ)(W,ee):"",ei=(0,tF.Z)(),en=(0,tT.Z)({metadataContainerRef:V}),el=(0,tI.Z)(),{getViewParameter:ea}=(0,e5.ZP)({pin:o}),er=ea(c),{setClickthroughComponentForSurvey:eo,imageContainerRef:ed}=ei,eu=(0,D.jsx)(tz.Z,{hasXYcoordinates:i,isEligibleForStlFlyout:n,isStoryPin:l,isWideVideo:r,pin:o,searchQuery:s,taggedProducts:d,trafficSource:u,viewParameterType:c,visualContentContainerRef:el.visualContentContainerRef,imageContainerRef:ed,handleImageClickThrough:()=>p({wasImageClicked:!0}),setClickthroughComponentForSurvey:eo,isShortImage:en}),ec=(0,D.jsx)(tE,{commentCountInUSM:Q,currentIdeaPinId:E,hasXYcoordinates:i,ideaPinStelaCategories:C,isCommentSectionOpen:I,isInStream:v,isStoryPin:l,isVideoPin:a,isDeletedStoryPin:f,orbacActingAs:ee,orbacSubjectId:et,onCommentSectionClick:T,onCloseupBodyUpdate:F,outerPaddingSize:w,pin:o,viewer:W,shouldShowStlCarouselForOwnPin:z,storyPinTaggedProducts:R,taggedProducts:d,trafficSource:u,viewParameterType:c,viewType:A,closeupContext:G,isLoadingNewlyCreatedComment:K,viewParameter:er,detailsScrollContainerRef:V.current,clientTrackingParams:L}),ep=(0,D.jsx)(eR,{pinKey:{type:"deprecated",data:o},trackingParamsMap:o.tracking_params_map,isStoryPin:l,isDeletedStoryPin:f,trafficSource:u,details:ec,outerPaddingSize:w,orbacActingAs:ee,viewer:W,viewParameter:er,viewportSize:M,shouldShowPartnerModule:Z,trendsData:B,showTrendsOnPinCloseup:O,showPinStats:N});return(0,D.jsx)(ik,{commentCountInUSM:Q,isWideVideo:r,didShortClickThrough:m,webLinkSurveyState:ei,pin:o,outerBodyStyle:P,isEligibleForPinReactions:q,isReactionsExpansionEnabled:X,isStoryPin:l,trafficSource:u,visualContentContainer:eu,isCloseupMaximized:y,data:h,isInStream:v,metadataContainerRef:V,onClickThrough:()=>{p&&p({componentType:129}),ei.setClickthroughComponentForSurvey("legoMaybeLink")},viewParameter:er,viewType:A,viewer:W,orbacSubjectId:et,setIsLoadingNewlyCreatedComment:U,relatedModulesResource:H,descriptionContentMaxHeight:el.descriptionContentMaxHeight,metadata:ep,onSaveButtonClick:x,showRepinOnInitialRender:k,goBack:g,onUpdate:b,routePush:S,visualContentContainerRef:el.visualContentContainerRef})}},187638:(e,t,i)=>{"use strict";function n(e){switch(e){case"flashlight":return"flashlight";case"stela":return"stela";case"stl":return"stl";default:return null}}function l({isShopTheLook:e,showFlashlightButton:t,showShopButton:i,showStelaDots:n}){return t&&!n?"flashlight":i?e?"stl":"stela":null}i.d(t,{W:()=>n,Z:()=>l})},431911:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(737022),l=i(92261);function a({carouselData:e,mainImage:t,maxCloseupImageWidth:i,imageToDisplayWidthRatio:a=1,shouldPadImage:r=!1}){let o=i-l.d2,s=r?o:i,d=e?a:1,u=function(e={},t){var i;let l=(null==t?void 0:null===(i=t.carousel_slots)||void 0===i?void 0:i.map(e=>{var t,i,l,a,r,o;return(0,n.Z)(e.images)||((i=null===(t=e.videos)||void 0===t?void 0:t.video_list)?null!==(l=i.V_720P)&&void 0!==l&&l.url?i.V_720P:null!==(a=i.V_HLSV4)&&void 0!==a&&a.url?i.V_HLSV4:null!==(r=i.V_HLSV3_MOBILE)&&void 0!==r&&r.url?i.V_HLSV3_MOBILE:null!==(o=i.V_HLSV3_WEB)&&void 0!==o&&o.url?i.V_HLSV3_WEB:null:null)}).filter(e=>!!e))||[],a=[e,...l],r=a.map(({width:e=1,height:t=1})=>e/t),o=Math.min(...r);return o}(t,e),c=Math.floor(s*d/u);return{width:s,height:c}}},498537:(e,t,i)=>{"use strict";i.d(t,{Z:()=>D});var n=i(667294),l=i(615071),a=i(883119),r=i(898781),o=i(883561),s=i(785893);function d({pinNoteText:e}){let t=(0,r.ZP)(),[i,l]=(0,n.useState)(!1);return(0,s.jsx)(a.xu,{maxWidth:360,dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-line"}},"data-test-id":"closeup-pin-note-text",children:!i&&e.length>125?(0,s.jsxs)(a.xu,{children:[(0,s.jsx)(a.xv,{inline:!0,size:"200",children:(0,o.ZP)(e,125)}),(0,s.jsx)(a.xu,{display:"inlineBlock",marginStart:1,children:(0,s.jsx)(a.iP,{onTap:()=>{l(!0)},children:(0,s.jsx)(a.xv,{inline:!0,size:"200",weight:"bold",children:t._('More', 'closeup.closeupPinNoteText.moreText', 'Option to expand a Pin note preview and see entire description')})})})]}):(0,s.jsx)(a.xv,{size:"200",children:e})})}var u=i(702664),c=i(121151);function p({onCancel:e,onDelete:t,onDismiss:i}){let n=(0,r.ZP)();return(0,s.jsx)(c.ZP,{heading:n._('Delete this note?', 'closeup.deleteNoteConfirmation.modalHeading', 'Confirm the user wants to delete the Pin note'),accessibilityModalLabel:n._('Delete this note?', 'closeup.deleteNoteConfirmation.modalAccessibilityLabel', 'Accessiblility label to confirm the user wants to delete the Pin note'),size:"sm",onDismiss:i,footer:(0,s.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"center",children:[(0,s.jsx)(a.xu,{paddingX:1,children:(0,s.jsx)(a.zx,{fullWidth:!0,onClick:e,text:n._('Cancel', 'closeup.deleteNoteConfirmation.cancelButton', 'Text on button used to cancel deletion of Pin note')})}),(0,s.jsx)(a.xu,{paddingX:1,children:(0,s.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:t,text:n._('Delete', 'closeup.deleteNoteConfirmation.deleteButton', 'Text on button used to delete Pin note')})})]}),children:(0,s.jsx)(a.xu,{paddingX:12,children:(0,s.jsx)(a.xv,{align:"center",children:n._('The Pin will remain on your board, but the text in the note will be gone for good', 'closeup.deleteNoteConfirmation.bodyText', 'Description of what happens when user deletes a note on a Pin')})})})}function h({onCancel:e,onDismiss:t}){let i=(0,r.ZP)();return(0,s.jsx)(c.ZP,{heading:i._('Discard your changes?', 'closeup.discardChangesConfirmation.modalHeading', 'Confirm the user wants to discard changes made to Pin note'),accessibilityModalLabel:i._('Discard your changes?', 'closeup.discardChangesConfirmation.modalAccessibilityLabel', 'Accessibility label to confirm the user wants to discard changes made to Pin'),size:"sm",onDismiss:t,footer:(0,s.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"center",children:[(0,s.jsx)(a.xu,{paddingX:1,children:(0,s.jsx)(a.zx,{fullWidth:!0,onClick:e,text:i._('Cancel', 'closeup.discardChangesConfirmation.cancelButton', 'Text on button used to cancel discarding changes to Pin note')})}),(0,s.jsx)(a.xu,{paddingX:1,children:(0,s.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:t,text:i._('Discard', 'closeup.discardChangesConfirmation.discardButton', 'Text on button used to discard changes made to Pin note')})})]}),children:(0,s.jsx)(a.xu,{paddingX:12,children:(0,s.jsx)(a.xv,{align:"center",children:i._('The Pin will remain on your board, but the changes in this note won\u2019t be saved', 'closeup.discardChangesConfirmation.bodyText', 'Description of what happens when user discards changes made to note on a Pin')})})})}var _=i(780280);function m({isGroupNote:e,onClickCancel:t}){let i=(0,r.ZP)(),{isRTL:n}=(0,_.B)();return(0,s.jsxs)(a.xu,{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",paddingY:6,paddingX:4,children:[(0,s.jsx)(a.xu,{maxWidth:400,children:(0,s.jsx)(a.X6,{align:"center",size:"500",children:e?i._('Add note to group', 'closeup.PinNoteEditModal.groupHeading', 'Heading for modal which allows user to add note to Pin on group board'):i._('Add note to self', 'closeup.PinNoteEditModal.heading', 'Heading for modal which allows user to add note to Pin')})}),(0,s.jsx)(a.xu,{position:"absolute",top:!0,left:n,right:!n,paddingY:6,paddingX:6,children:(0,s.jsx)(a.hU,{accessibilityLabel:i._('Cancel changes', 'closeup.PinNoteEditModal.cancelIconButton', 'Accessibility label for cancel changes button'),icon:"cancel",iconColor:"darkGray",onClick:t,size:"md"})})]})}var g=i(407043),y=i(414327),v=i(19121),f=i(717615),x=i(231947),b=i(482567),P=i(563996);function w({initialText:e,isGroupNote:t,onDismiss:i,pinId:l}){let{logContextEvent:o}=(0,g.v)(),d=(0,r.ZP)(),_=(0,u.useDispatch)(),[w,S]=(0,n.useState)(null!=e?e:""),[k,j]=(0,n.useState)(!1),[A,C]=(0,n.useState)(!1),D=(0,n.useRef)(null),E=(0,v.Z)(),I=(0,f.Z)(),T=(0,x.lJ)(E,I),F=t?d._('Add a private note for collaborators\u2014like \u201CShow Tony?\u201D or \u201CNeeds more salt\u201D\u2014to remember ideas about this Pin', 'closeup.PinNoteEditModal.groupPlaceholderText', 'Placeholder text on group Pin note'):d._('Add a private note\u2014like \u201CShow Tony?\u201D or \u201CNeeds more salt\u201D\u2014to remember your ideas about this Pin', 'closeup.PinNoteEditModal.placeholderText', 'Placeholder text on Pin note');(0,n.useEffect)(()=>{o({event_type:13,object_id_str:l,view_type:478})},[]);let z=()=>{o({event_type:101,element:w.length>0?12108:12106,object_id_str:l,view_type:478}),e&&_((0,b._)(l,e,null,T)),_((0,y.jB)("PinResource",(0,P.Tr)(l,!0,T))),i()};return((0,n.useEffect)(()=>{D.current&&(D.current.style.height="auto",D.current.style.height=D.current.scrollHeight+"px")},[w,D.current,k,A]),A)?(0,s.jsx)(h,{onCancel:()=>{C(!1)},onDismiss:()=>{o({event_type:101,element:12109,object_id_str:l,view_type:478}),i()}}):k?(0,s.jsx)(p,{onCancel:()=>{j(!1)},onDelete:z,onDismiss:i}):(0,s.jsx)(c.ZP,{accessibilityModalLabel:d._('Edit Pin note', 'closeup.PinNoteEditModal.modalAccessibilityLabel', 'Accessiblility label for modal used to edit Pin note'),heading:(0,s.jsx)(m,{isGroupNote:t,onClickCancel:()=>{e&&w!==e?C(!0):i()}}),onDismiss:i,footer:(0,s.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"end",children:[""!==w&&(0,s.jsx)(a.xu,{flex:"grow",children:(0,s.jsx)(a.hU,{accessibilityLabel:d._('Delete note', 'closeup.PinNoteEditModal.trashcanIconButton', 'Accessibility label for delete note button'),iconColor:"darkGray",icon:"trash-can",onClick:()=>{o({event_type:101,element:12105,object_id_str:l,view_type:478}),j(!0)},size:"md"})}),(0,s.jsx)(a.xu,{children:(0,s.jsx)(a.zx,{color:"red",text:d._('Done', 'closeup.PinNoteEditModal.doneButton', 'Done button for Pin note edit modal'),onClick:w.length>0?()=>{o({event_type:101,element:12106,object_id_str:l,view_type:478}),(0,P.aU)(e,w)&&_((0,b._)(l,e,w,T)),_((0,y.jB)("PinResource",(0,P.Tr)(l,!0,T))),i()}:z})})]}),size:"sm",children:(0,s.jsxs)(a.xu,{paddingX:8,height:220,children:[(0,s.jsx)("textarea",{className:"PinNoteInput",id:"pinNoteText",maxLength:500,onChange:e=>{S(e.currentTarget.value)},placeholder:F,ref:D,value:w}),w.length>=500&&(0,s.jsx)(a.xu,{paddingY:1,children:(0,s.jsx)(a.xv,{color:"error",size:"200",weight:"bold",children:d._('Character limit reached', 'closeup.PinNoteEditModal.warningText', 'Text to inform user they have reached the length limit on Pin note')})})]})})}var S=i(333312),k=i(784590),j=i(304903),A=i(814197),C=i(758119);function D({boardId:e,isGroupNote:t,pinId:i,pinNoteText:o}){let{logContextEvent:u}=(0,g.v)(),c=(0,r.ZP)(),{data:p}=(0,k.Z)({name:"BoardResource",options:{field_set_key:"pin_note",board_id:e}}),h=(0,n.useRef)(null),[_,m]=(0,n.useState)(!1),[y,v]=(0,n.useState)(0),f=()=>{v((0,j.S$)())};(0,n.useEffect)(()=>(window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)}));let x=t?c._('Notes added here will be private to people on this board', 'closeup.closeupPinNote.groupPlaceholderText', 'Placeholder text for private group note on Pin'):c._('What do you want to remember about this Pin?', 'closeup.closeupPinNote.placeholderText', 'Placeholder text for private note on Pin');return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(a.xu,{marginTop:5,marginBottom:5,children:(0,s.jsxs)(a.kC,{direction:"row",alignItems:"center",justifyContent:"between",children:[(0,s.jsxs)(a.xu,{children:[(0,s.jsxs)(a.kC,{alignItems:"center",direction:"row",justifyContent:"start",children:[(0,s.jsx)(a.xu,{ref:h,marginEnd:4,children:(0,s.jsx)(a.xv,{weight:"bold",children:t?c._('Note to group', 'closeup.closeupPinNote.groupTitle', 'Title for private group note on Pin'):c._('Note to self', 'closeup.closeupPinNote.title', 'Title for private note on Pin')})}),t&&p&&(0,s.jsx)(a.xu,{marginStart:1,children:(0,s.jsx)(C.Z,{board:p,isCompact:!0})})]}),(0,s.jsx)(a.xu,{display:"flex",flex:"grow",marginEnd:4,children:(0,s.jsx)(a.xv,{size:"200",children:o?(0,s.jsx)(d,{pinNoteText:o}):x})})]}),(0,s.jsx)(a.zx,{size:"lg",text:o?c._('Edit', 'closeup.closeupPinNote.editButton', 'Text on button used to edit private note on Pin'):c._('Add note', 'closeup.closeupPinNote.addNoteButton', 'Text on button used to add private note on Pin'),onClick:()=>{u({event_type:101,component:13769,element:o?12104:12103,object_id_str:i,view_type:3}),m(!0)}})]})}),_&&(0,s.jsx)(w,{initialText:o,isGroupNote:t,onDismiss:()=>{m(!1)},pinId:i}),h&&(0,s.jsx)(l.Z,{in:0===y,timeout:300,classNames:"CloseupPinNoteTooltip",unmountOnExit:!0,children:(0,s.jsx)(a.xu,{zIndex:A.km,children:(0,s.jsx)(S.default,{anchor:h.current,experienceIds:[503219,502828],flyoutSize:312,idealDirection:"up",placementId:12,showCaret:!0,textAlign:"center",textWeight:"bold"})})})]})}},237693:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(667294),l=i(883119),a=i(898781),r=i(773285),o=i(780280),s=i(785893);function d({collapsed:e,displayViewState:t,forceTappableHeader:i,headerPaddingRight:d,headerPreview:u,heading:c,onClick:p,showArrow:h}){let _=(0,a.ZP)(),{checkExperiment:m}=(0,r.F)(),{isAuthenticated:g}=(0,o.B)(),y=g?m("auth_closeup_redesign").anyEnabled:m("unauth_closeup_redesign").anyEnabled;return(0,s.jsx)(n.Fragment,{children:i||null!==t?(0,s.jsx)(l.iP,{onTap:p,children:(0,s.jsxs)(l.kC,{alignItems:"center",dataTestId:"collapsible-header",direction:"row",flex:"grow",justifyContent:"between",children:[(0,s.jsx)(l.X6,{align:"start",size:y?"300":"400",accessibilityLevel:2,id:"comments-heading",children:c}),(0,s.jsxs)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{paddingRight:d}},direction:"row",display:"flex",children:[e&&u,h&&(0,s.jsx)(l.xu,{"data-test-id":"collapse-button",display:"flex",marginStart:u?4:0,width:48,alignItems:"center",justifyContent:"center",children:(0,s.jsx)(l.JO,{accessibilityLabel:_._('Expand icon', 'accordion.actionButton', 'accessibility label on accordion'),color:"default",icon:e?"arrow-down":"arrow-up"})})]})]})}):(0,s.jsx)(l.X6,{align:"start",size:"400",accessibilityLevel:2,id:"comments-heading",children:c})})}},945544:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(883119),l=i(509278),a=i(440455),r=i(773285),o=i(785893);function s({description:e,userMentionTags:t}){let{checkExperiment:i}=(0,r.F)(),s=i("web_hashtags_in_description_display").anyEnabled,d=e=>e.replace(/\s+/g," "),u=e.split(/\n/)||[];return u.map((e,i)=>0===i&&null!=t&&t.length?(0,o.jsx)(a.Z,{description:d(e),userMentionTags:t}):(0,o.jsx)(n.xu,{children:(0,l.Z)({isHashtagInDescriptionDisplayEnabled:s,text:e})}))}},783810:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(784590);function l({creatorId:e,children:t}){let{data:i}=(0,n.Z)({name:"UserResource",options:{field_set_key:"grid_item",user_id:e}});return t(i)}},459263:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(667294),l=i(883119),a=i(407043),r=i(121151),o=i(898781),s=i(391254),d=i(785893);function u({handlePause:e,handlePlay:t,musicAttributions:i,shouldMute:u,showEndCard:c}){let p=(0,o.ZP)(),{logContextEvent:h}=(0,a.v)(),[_,m]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{!c&&(null!=i&&i.length||u)&&h({event_type:u?14600:14601,view_type:3,view_parameter:140})},[h,i,u,c]),c||!(null!=i&&i.length)&&!u)return null;let g=()=>{t&&t(),m(!1)},y="";if((null==i?void 0:i.length)===1){let{artist:e="",title:t=""}=i[0];y=e&&t?`${e} - ${t}`:""}let v=((null==i?void 0:i.length)||0)>=2?(0,d.jsx)(l.xu,{children:(0,d.jsx)(l.iP,{fullHeight:!0,fullWidth:!0,onTap:()=>{e&&e(),m(!0)},children:(0,d.jsxs)(l.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,d.jsx)(l.xu,{marginEnd:2,children:(0,d.jsx)(l.JO,{inline:!0,accessibilityLabel:p._('Music icon', 'web.closeup.musicicon', 'Artist and song title for Pin music attribution'),color:"inverse",icon:u?"music-off":"music-on",size:12})}),(0,d.jsx)(l.xv,{inline:!0,color:"inverse",overflow:"noWrap",size:"100",children:p._('View the playlist', 'web.closeup.musicAttibutionModal.entryPoint', 'Entry point for playlist modal')})]})})}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(l.JO,{inline:!0,accessibilityLabel:p._('Music icon', 'web.pin.closeup.musicicon', 'Music icon for Pin music attribution'),color:"inverse",icon:u?"music-off":"music-on",size:12}),(0,d.jsx)(l.xu,{marginStart:2,overflow:"hidden",children:(0,d.jsxs)("span",{className:y.length>=50?"marquee":void 0,style:{display:"inline-block",maxWidth:y.length>=50?"260px":void 0},children:[(0,d.jsx)(l.xv,{inline:!0,color:"inverse",overflow:"noWrap",size:"100",children:y}),(0,d.jsx)(s.Z,{unsafeCSS:`
83
+ .marquee {
84
+ animation: marquee 10s linear infinite;
85
+ animation-delay: 2s;
86
+ }
87
+
88
+ .marquee:hover {
89
+ animation-play-state: paused;
90
+ }
91
+
92
+
93
+ @keyframes marquee {
94
+ 0% {
95
+ transform: translateX(0%);
96
+ }
97
+ 50% {
98
+ transform: translateX(-100%);
99
+ }
100
+ 100% {
101
+ transform: translateX(0%);
102
+ }
103
+ }
104
+ `})]})})]});return(0,d.jsxs)(n.Fragment,{children:[u?(0,d.jsx)(n.Fragment,{children:(0,d.jsxs)(l.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,d.jsx)(l.xu,{marginEnd:2,children:(0,d.jsx)(l.JO,{inline:!0,accessibilityLabel:p._('Music icon', 'web.closeup.musicMutedIcon', 'Music muted icon for Pin music attribution'),color:"inverse",icon:"music-off",size:12})}),(0,d.jsx)(l.xv,{inline:!0,color:"inverse",overflow:"noWrap",size:"100",children:p._('Audio not available in your location', 'web.closeup.musicAttribution', 'Informational message to tell user audio is not available in their location')})]})}):v,_&&(0,d.jsx)(r.ZP,{accessibilityModalLabel:p._('Artist and song title for this Pin', 'web.closeup.musicAttibutionModal', 'Artist and song title for Pin music attribution'),heading:(0,d.jsxs)(l.kC,{justifyContent:"between",children:[(0,d.jsx)(l.X6,{size:"500",children:p._('Playlist for this video', 'web.closeup.musicAttibutionModal.heading', 'Title for music attribution modal')}),(0,d.jsx)(l.hU,{accessibilityLabel:p._('Close modal button', 'web.closeup.musicAttibutionModal.closeButton', 'Close modal button for music attribution modal'),bgColor:"white",icon:"cancel",iconColor:"darkGray",onClick:g,size:"sm"})]}),onDismiss:g,children:(0,d.jsx)(l.xu,{paddingX:5,marginBottom:5,paddingY:1,children:null==i?void 0:i.map(({isrc:e,thumbnail_image_url:t,title:i,artist:n},a)=>(0,d.jsxs)(l.xu,{display:"flex",padding:1,children:[(0,d.jsx)(l.xu,{color:"darkWash",height:60,rounding:7,width:60,children:(0,d.jsx)(l.Ee,{alt:p._('Image of album art', 'web.closeup.musicAttibutionModal.albumArt', 'Alt text for image of album art for associated song'),color:"darkWash",naturalWidth:1,naturalHeight:1,src:t||""})}),(0,d.jsxs)(l.xu,{display:"flex",direction:"column",justifyContent:"center",paddingX:2,children:[(0,d.jsx)(l.xv,{weight:"bold",children:null!=i?i:""}),(0,d.jsx)(l.xv,{size:"100",children:null!=n?n:""})]})]},e||`${a}`))})})]})}},614514:(e,t,i)=>{"use strict";i.d(t,{Z:()=>eY});var n,l,a,r,o,s=i(883119),d=i(785893);let u=({children:e})=>(0,d.jsx)(s.xu,{display:"flex",justifyContent:"center",height:"100%",width:"100%",padding:5,children:e});var c=i(27255),p=i(898781),h=i(780280),_=i(240681),m=i(92261),g=i(966676);let y=({embedUrl:e,isWideVideo:t,paddingBottom:i="50%",shouldPadImage:n})=>{let l=(0,p.ZP)(),a=(0,h.B)(),r=t?m.KP:m.Gg,o=(0,d.jsx)(g.ZP.Consumer,{children:({showCloseupContentRight:o,viewportSize:u})=>{let p=(0,d.jsx)("div",{style:{height:0,overflow:"hidden",position:"relative",width:"100%",paddingBottom:i,...(0,_.Z)({isSideBySide:!t,isPadded:n,isRTL:a.isRTL})},children:(0,d.jsx)("iframe",{allowFullScreen:!0,id:c.Z.VIDEO_IFRAME_ID,src:e.replace("http://","https://"),style:{border:0,height:"100%",left:0,position:"absolute",top:0,width:"100%"},title:l._('Embedded content', 'Accessible content for the embedded content iframe', 'Accessible content for the embedded content iframe')})});return o&&"lg"===u?(0,d.jsx)(s.xu,{marginBottom:6,marginEnd:t||n?0:6,width:r,children:p}):p}});return n?(0,d.jsx)(u,{children:o}):o};var v=i(269220),f=i(667294);i(167912);var x=i(238464),b=i(112690);let P=({contextLogData:e,height:t,isFocused:i,videoList:n,onFocus:l,onUnfocus:a,pinId:r,width:o})=>{let u=(0,b.Z)(),{V_720P:c,V_HLSV4:p,V_HLSV3_MOBILE:h}=n,{height:_=1,width:m=1,thumbnail:g}=c||p||h||{};(0,f.useEffect)(()=>{i?l&&l():a&&a()},[i,l,a]),(0,f.useEffect)(()=>{i&&u({component:e.component,event_type:13,object_id_str:e.objectId,view_parameter:e.viewParameter,view_type:e.view})},[i,e,u]);let y=(0,f.useCallback)(()=>{u({component:e.component,event_type:3621,object_id_str:e.objectId,view_parameter:e.viewParameter,view_type:e.view})},[e,u]);return(0,d.jsx)(s.kC,{alignItems:"center",justifyContent:"center",height:"100%",width:"100%",children:(0,d.jsx)(s.xu,{width:`${100*Math.min(t/o/(_/m),1)}%`,children:(0,d.jsx)(x.Z,{loop:!0,muted:!1,pinId:r,variant:"default",video:{mp4:c,hls:p,hlsv3:h},customThumbnail:g,preferMp4:!0,showControls:"hover",contextLogData:e,disabled:!i,onPlay:y})})})};var w=i(407043),S=i(357998),k=i(276602),j=i(999018),A=i(965900),C=i(435497),D=i(737022),E=i(455024);let I=({fit:e,highResOnly:t,lowResOnly:i,onError:n,onLoad:l,slot:a,slotIndex:r})=>{let o=(0,p.ZP)(),{details:u=""}=a,{url:c="",width:h=1,height:_=1}=(0,D.Z)(a.images)||{};return(0,d.jsx)(s.Ee,{alt:(0,E.GH)(u,o,r),fit:e,naturalHeight:null!=_?_:1,naturalWidth:null!=h?h:1,onError:n,onLoad:l,src:null!=c?c:"",srcSet:(0,E.gA)({slot:a,lowResOnly:i,highResOnly:t})})},T=void 0!==n?n:n=i(655519),F=e=>({entityId:e.id,isEligibleForPdp:e.is_eligible_for_pdp});function z({carouselData:e,displayHeight:t,displayWidth:i,pinKey:n}){var l;let{logContextEvent:a}=(0,w.v)(),{pdpCarouselSlotToPaneRatio:r,showProductDetailPage:o}=(0,g.x4)(),{index:u=0}=e,{pauseAutoplay:c,setCurrentVideo:p}=(0,A.I)(),{data:h,childDataKey__DEPRECATED:_}=(0,S.Q)(T,n,{useLegacyAdapter:F}),{entityId:m}=h,y=(0,f.useRef)(null),v=(0,j.Z)(_),x=h.isEligibleForPdp?v({isPdpPlus:!0}):void 0,b=h.isEligibleForPdp?144:void 0,D=h.isEligibleForPdp?3:void 0,E=(0,k.E)(),z=(0,f.useCallback)(e=>{E&&e>=1&&E.markConstraintComplete("image")},[E]),R=(0,f.useMemo)(()=>({viewParameter:o?144:156,view:3,component:o?14012:179,objectId:m}),[m,o]),L=(0,f.useCallback)(()=>{p({pinId:m,isPromoted:!1})},[p,m]),M=(0,f.useCallback)(()=>{c({pinId:m,isPromoted:!1})},[c,m]);return(0,f.useEffect)(()=>{var t;let i=null===(t=e.carousel_slots)||void 0===t?void 0:t.find(e=>{var t;return null===(t=e.videos)||void 0===t?void 0:t.video_list});i&&a({event_type:120,view_type:R.view,view_parameter:R.viewParameter,component:R.component,object_id_str:R.objectId})},[a,e.carousel_slots,R]),(0,d.jsx)(s.xu,{ref:y,children:(0,d.jsx)(C.Z,{contextLogData:x,height:t,id:m,index:u,slideWidth:i,widthRatio:r,gap:1===r?0:4,containerRef:y,view:D,viewParameter:b,children:(null===(l=e.carousel_slots)||void 0===l?void 0:l.map((e,n)=>{var l;let a,o;return null!==(l=e.videos)&&void 0!==l&&l.video_list?(a=(0,d.jsx)(P,{contextLogData:R,height:t,isFocused:u===n,onFocus:L,onUnfocus:M,pinId:m,videoList:e.videos.video_list,width:i*r}),o=e.videos.id):(a=(0,d.jsx)(I,{fit:"contain",onLoad:()=>z(n),slot:e,slotIndex:n}),o=e.image_signature),(0,d.jsx)(s.zd,{height:"100%",wash:1!==r,children:a},`${m}-${o||n}`)}))||[]})})}var R=i(431911),L=i(523657);function M({dominantColor:e,imageProps:t,imgSrc:i,isPreviewImage:n,previewImageFit:l}){let a=(0,k.E)(),r=(0,f.useCallback)(()=>{a&&a.markConstraintComplete("image")},[a]);return(0,d.jsx)(s.zd,{wash:!0,children:(0,d.jsx)(L.Z,{alt:t.alt,color:e,naturalHeight:t.naturalHeight,naturalWidth:t.naturalWidth,src:t.src,onLoad:r,children:n&&i&&(0,d.jsx)(s.Ee,{alt:"",fit:l,naturalHeight:t.naturalHeight,naturalWidth:t.naturalWidth,src:i})})})}var Z=i(413614),B=i(916117);let O=void 0!==l?l:l=i(499410);function N({domain:e,link:t,pinKey:i,trafficSource:n,trackingParamsMap:l}){let a;let r=(0,p.ZP)(),[o,u]=(0,f.useState)(!1),{data:c}=(0,B.u)(O,i);return a=t.startsWith("https://i.pinimg.com")?r._('View image', 'closeup.image.domainLinkButton', 'Text indicating where clickthrough will navigate to'):e||r._('Learn more', 'closeup.image.domainLinkButton', 'Text indicating where clickthrough will navigate to'),(0,d.jsx)(s.iP,{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onTap:()=>{},children:(0,d.jsx)(Z.Z,{hovered:o,pinKey:c,trafficSource:n,trackingParamsMap:l,viewType:3,children:(0,d.jsxs)(s.xu,{alignItems:"center",color:o?"lightWash":"default","data-test-id":"visit-button",display:"flex",height:44,justifyContent:"center",opacity:.9,paddingX:4,rounding:"pill",children:[(0,d.jsx)(s.JO,{accessibilityLabel:r._('Open link icon', 'closeup.image.domainLinkButtonIcon', 'Icon on domain link button'),color:"default",icon:"arrow-up-right"}),(0,d.jsx)(s.xu,{paddingX:1}),(0,d.jsx)(s.xv,{size:"300",weight:"bold",children:a})]})})})}var K=i(319915),U=i(241244),H=i(947599);let V=void 0!==a?a:a=i(369092);function G({domain:e,link:t,navigationWrapper:i,pinKey:n,trafficSource:l,trackingParamsMap:a}){let{data:r}=(0,B.u)(V,n);return(0,d.jsxs)(f.Fragment,{children:[(0,d.jsx)(s.xu,{height:"calc(100% - 60px)"}),(0,d.jsx)(s.Le,{bottom:12,children:(0,d.jsx)(s.xu,{display:"flex",justifyContent:"start",maxWidth:"calc(100% - 88px)",paddingX:5,children:(0,d.jsx)(K.Z,{name:"SafeSuspense_DomainLinkButtonWrapper_DomainLinkButton",children:(0,d.jsx)(H.Z,{children:(0,d.jsx)(U.Z,{children:i((0,d.jsx)(N,{domain:e,link:t,pinKey:r,trafficSource:l,trackingParamsMap:a}))})})})})})]})}var W=i(765050),$=i(773285),q=i(674462);let Y=({carouselData:e,containerWidth:t,slotWidth:i})=>{let{index:n,carousel_slots:l}=e||{},a=Math.floor(i);return void 0===n||!l||n>=l.length-1?0:t-a};function X({carouselData:e,carouselSlotToPaneRatio:t,children:i,displayWidth:n,hide:l}){let a=(0,f.useCallback)(()=>Y({carouselData:e,containerWidth:n,slotWidth:n*t}),[e,n,t]),[r,o]=(0,f.useState)(a()),[u,c]=(0,f.useState)(!1),[p,h]=(0,f.useState)(),_=(0,f.useCallback)(()=>{let e=a();o(e)},[a]),m=()=>{c(!0)},g=()=>{c(!1)};return(0,f.useEffect)(()=>{let e=!0;return g(),h(t=>(clearTimeout(t),setTimeout(()=>{e&&(_(),l||m())},500))),()=>{e=!1}},[null==e?void 0:e.index,_,l]),(0,f.useEffect)(()=>()=>clearTimeout(p),[p]),(0,d.jsx)(s.xu,{dangerouslySetInlineStyle:{__style:{marginRight:r,transition:"opacity 500ms, visibility 500ms ease-in-out",visibility:u?"visible":"hidden"}},opacity:u?1:0,children:i})}var Q=i(751191);let J=(0,f.lazy)(()=>i.e(90907).then(i.bind(i,356725))),ee=(0,f.lazy)(()=>i.e(90907).then(i.bind(i,239062))),et=(0,f.lazy)(()=>i.e(47319).then(i.bind(i,331823))),ei=(0,f.lazy)(()=>i.e(87122).then(i.bind(i,647303))),en=(0,f.lazy)(()=>i.e(97372).then(i.bind(i,67567))),el=(0,f.lazy)(()=>i.e(91449).then(i.bind(i,930912))),ea=(0,f.lazy)(()=>i.e(79156).then(i.bind(i,615711))),er=({children:e,name:t})=>(0,d.jsx)(s.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},"data-test-id":`experimental-closeup-image-overlay-layer-${t}`,left:!0,position:"absolute",right:!0,top:!0,children:e}),eo=({animateShopButton:e,carouselInfo:t,displayHeight:i,displayWidth:n,domain:l,hasStelaResults:a,imageSignature:r,isHovered:o,justifyShopButton:u,link:c,navigationWrapper:p,onShopButtonAnimationComplete:h,onStelaDotAnimationComplete:_,onStlFlyoutHover:m,pin:y,searchQuery:v,showCarouselControls:x,showCarouselEllipsis:b,showCloseupShopDomainLinkButton:P,showDebugSignalsFeedbackButton:w,showDomainLink:S,showDomainLinkButton:k,showFlashlightButton:j,showProductDetailPage:A,showPinTagButton:C,showShopButton:D,showStelaDots:E,showStlFlyout:I,stelaDotAnimationType:T,surfaceType:F,taggedProducts:z,trafficSource:R})=>{var L,M,Z,B;let{pdpCarouselSlotToPaneRatio:O}=(0,g.x4)(),{checkExperiment:N}=(0,$.F)(),V=y.is_eligible_for_pdp,Y=!!y.story_pin_data_id&&!1===y.should_open_in_stream,eo=!V&&!Y&&j,es=eo&&(N("web_flashlight_cta").anyEnabled||N("web_flashlight_cta_expansion").anyEnabled),ed=eo&&!!a&&N("web_stela_dots_on_flashlight").anyEnabled,eu=P||ed&&o,ec=(0,W.Z)({pinKey:{type:"deprecated",data:y},surfaceType:"stl"===F?"stela":F,topLevelTrafficSource:R});return(0,d.jsxs)(f.Fragment,{children:[S&&(0,d.jsx)(er,{name:"domain-link",children:(0,d.jsxs)(s.kC,{alignItems:"center",height:"100%",justifyContent:"center",width:"100%",children:[(0,d.jsx)(s.xu,{paddingX:1,children:(0,d.jsx)(s.JO,{accessibilityLabel:"",color:"inverse",icon:"arrow-up-right",size:16})}),(0,d.jsx)(s.xu,{paddingX:1,children:(0,d.jsx)(s.xv,{color:"inverse",weight:"bold",children:l})})]})}),x&&t&&(0,d.jsxs)(er,{name:"carousel-controls",children:[(0,d.jsx)(K.Z,{name:"SafeSuspense_CloseupImageOverlay_CarouselSliders",children:(0,d.jsx)(H.Z,{children:(0,d.jsx)(ee,{carouselIndex:t.carouselData&&t.carouselData.index,carouselData:{carouselSlots:null===(L=t.carouselData.carousel_slots)||void 0===L?void 0:L.map(({id:e,title:t})=>({id:e,title:t})),entityId:null!==(M=t.carouselData.id)&&void 0!==M?M:"",index:t.carouselData.index},componentType:t.componentType,handleCarouselSwipe:t.handleCarouselSwipe,pinKey:{type:"deprecated",data:y.id},viewParameter:t.viewParameter,viewType:t.viewType,forwardNode:A?(0,d.jsx)(Q.Z,{iconType:"forward",showFab:o,backgroundColor:"default",hoverColor:"secondary",iconColor:"default"}):void 0,backNode:A?(0,d.jsx)(Q.Z,{iconType:"back",showFab:o,backgroundColor:"default",hoverColor:"secondary",iconColor:"default"}):void 0})})}),(0,d.jsx)(s.xu,{alignItems:"end",bottom:!0,display:"flex",height:405,justifyContent:"center",left:!0,position:"absolute",right:!0,padding:5,children:!k&&b&&(0,d.jsx)(K.Z,{name:"SafeSuspense_CloseupImageOverlay_CarouselEllipsis",children:(0,d.jsx)(H.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)(J,{carouselIndex:t.carouselData&&t.carouselData.index,carouselData:{carouselSlots:null===(Z=t.carouselData.carousel_slots)||void 0===Z?void 0:Z.map(({id:e,title:t})=>({id:e,title:t})),entityId:null!==(B=t.carouselData.id)&&void 0!==B?B:"",index:t.carouselData.index},componentType:t.componentType,handleCarouselSwipe:t.handleCarouselSwipe,isCloseup:!0,pinKey:{type:"deprecated",data:y.id},variant:"default",viewParameter:t.viewParameter,viewType:t.viewType})})})})})]}),(E||ed)&&(0,d.jsx)(er,{name:"stela-container",children:(0,d.jsx)(K.Z,{name:"SafeSuspense_CloseupImageOverlay_StelaContainerWrapper",children:(0,d.jsx)(H.Z,{children:(0,d.jsx)(en,{alwaysShow:eu,disableSelected:!0,enablePointerEvents:a&&"inOut"===T||eu,height:i,isFlashlightPin:ed,onStelaDotAnimationComplete:_,pinKey:{type:"deprecated",data:y},searchQuery:v,stelaDotAnimationType:T,trafficSource:R,width:n})})})}),I&&(0,d.jsx)(er,{name:"stl-flyout-container",children:(0,d.jsx)(K.Z,{name:"SafeSuspense_CloseupImageOverlay_StlFlyoutContainer",children:(0,d.jsx)(H.Z,{children:(0,d.jsx)(U.N,{enabled:"inOut"===T,children:(0,d.jsx)(ea,{alwaysShow:o,displayWidth:n,displayHeight:i,imageSignature:r,onStlFlyoutHover:m,taggedProducts:z||[],onAnimationComplete:_,stelaDotAnimationType:T})})})})}),D&&F&&(0,d.jsxs)(er,{name:"shop-button",children:[(0,d.jsx)(s.xu,{dangerouslySetInlineStyle:{__style:{height:"calc(100% - 60px)"}}}),(0,d.jsx)(s.Le,{bottom:12,children:(0,d.jsx)(s.xu,{display:"flex",justifyContent:u,paddingX:4,children:(0,d.jsx)(K.Z,{name:"SafeSuspense_CloseupImageOverlay_ShopButton",children:(0,d.jsx)(H.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)(el,{animateShopButton:e,actionUrl:ec,id:y.id,imageSignature:y.image_signature,onAnimationComplete:h,surfaceType:F})})})})})})]}),w&&(0,d.jsxs)(er,{name:"debug-signals-feedback",children:[(0,d.jsx)(s.xu,{dangerouslySetInlineStyle:{__style:{height:"calc(100% - 115px)"}}}),(0,d.jsx)(s.Le,{bottom:12,children:(0,d.jsx)(s.xu,{display:"flex",justifyContent:"end",paddingX:5,children:(0,d.jsx)(q.Z,{pinKey:{type:"deprecated",data:y}})})})]}),!E&&(0,d.jsxs)(er,{name:"flashlight-button",children:[(0,d.jsx)(s.xu,{dangerouslySetInlineStyle:{__style:{height:"calc(100% - 60px)"}}}),(0,d.jsx)(s.Le,{bottom:16,children:(0,d.jsx)(s.xu,{display:"flex",justifyContent:"end",paddingX:5,children:es&&F?(0,d.jsx)(K.Z,{name:"SafeSuspense_CloseupImageOverlay_FlashlightButton",children:(0,d.jsx)(H.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)(el,{actionUrl:j?ec:void 0,animateShopButton:e,id:y.id,imageSignature:y.image_signature,onAnimationComplete:h,surfaceType:F})})})}):(0,d.jsx)(X,{displayWidth:n,carouselData:null==t?void 0:t.carouselData,carouselSlotToPaneRatio:O,hide:!j||!!t&&0!==t.carouselData.index,children:(0,d.jsx)(K.Z,{name:"SafeSuspense_CloseupImageOverlay_FlashlightButton",children:(0,d.jsx)(H.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)(et,{actionUrl:j?ec:void 0,closeupImageHovered:!k&&o,pinId:y.id,variant:"default"})})})})})})})]}),(k||P)&&(0,d.jsx)(er,{name:"domain-link-button",children:(0,d.jsx)(G,{domain:l,link:c,navigationWrapper:p,pinKey:{type:"deprecated",data:y},trafficSource:R,trackingParamsMap:y.tracking_params_map})}),C&&(0,d.jsx)(er,{name:"tag-button",children:(0,d.jsx)(K.Z,{name:"SafeSuspense_CloseupImageOverlay_CloseupTagButton",children:(0,d.jsx)(H.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)(ei,{pin:y})})})})})]})};var es=i(187638),ed=i(752802);let eu=void 0!==r?r:r=i(169310);function ec({canShowDomainLinkButton:e,carouselInfo:t,disablePinTagButton:i,domain:n,hasMetTrustAndSafetyCheck:l,hasXYcoordinates:a,isEligibleForStlFlyout:r,isEmployee:o,isHovered:s,isORBACProfileManager:d,isScenePin:u,navLink:c,pinKey:p,showProductDetailPage:h,showStelaDots:_,stlFlyoutHovered:m}){let{data:g}=(0,B.u)(eu,p),{access:y,aggregatedPinData:v,storyPinDataId:f}=g,x=l&&r,b=!!(null!=v&&v.isShopTheLook),P=(u||x)&&s,w=l&&(b&&!P||u||r),S=!1,k=!1;s&&!P&&(S=!(k=!!c&&!_&&e)&&!m&&!!n&&!!g.link&&!g.link.startsWith("https://i.pinimg.com")&&!(h&&t));let j=u||e?"end":"start",A=function({carouselInfo:e,hasMetTrustAndSafetyCheck:t,hasXYcoordinates:i,isORBACProfileManager:n,isScenePin:l,isShopTheLook:a,pin:r,showProductDetailPage:o}){let{embed:s,isPromoted:d}=r,u=s&&"gif"===s.type;return!!t&&!l&&!a&&!d&&!u&&!n&&!i&&(o?!e||function({pin:e,carouselData:t}){var i;let{index:n=0,carousel_slots:l=[]}=t,a=l[n],{image_signature:r="",images:o}=a;if(r.length>0)return!0;let s=e.imageSpec_564x||e.imageSpec_736x||e.imageSpec_orig||e.imageSpec_474x||e.imageSpec_236x;return(null==s?void 0:s.url)===(null===(i=(0,ed.Z)({images:o}))||void 0===i?void 0:i.url)}({pin:r,carouselData:e.carouselData}):!e)}({carouselInfo:t,hasMetTrustAndSafetyCheck:l,hasXYcoordinates:a,isORBACProfileManager:d,isScenePin:u,isShopTheLook:b,pin:g,showProductDetailPage:h}),C=!f&&!!y&&y.includes("tag")&&!i||d||!1,D=!!t,E=(0,es.Z)({showFlashlightButton:A,showShopButton:w,showStelaDots:_,isShopTheLook:b});return{justifyShopButton:j,showCarouselControls:D,showCloseupShopDomainLinkButton:P,showDebugSignalsFeedbackButton:!!o,showDomainLink:S,showDomainLinkButton:k,showFlashlightButton:A,showPinTagButton:C,showShopButton:w,showStlFlyout:x,surfaceType:E}}var ep=i(537313),eh=i(832654),e_=i(801827),em=i(409667),eg=i(19121),ey=i(717615),ev=i(231947);let ef=void 0!==o?o:o=i(669961);function ex({isHovered:e,pinKey:t,shouldPadImage:i}){var n,l,a;let{data:r}=(0,B.u)(ef,t),{aggregatedPinData:o,altText:s,autoAltText:d,isEligibleForPdp:u,isEligibleForRelatedProducts:c,isHidden:m,isUnsafe:y,pinner:v,richMetadata:x,richSummary:b,visualObjects:P,trackedLink:w,link:S,method:k}=r,j=(null!==(n=null==b?void 0:b.products)&&void 0!==n?n:[]).length||(null!==(l=null==x?void 0:x.products)&&void 0!==l?l:[]).length,A=!!(null!=o&&o.isShopTheLook),C=!!c&&!A&&!j&&!u,D=(0,em.Z)({isHiddenPin:m,isUnsafePin:y}),E=D&&C,I=(0,p.ZP)(),T=(0,eg.Z)(),{checkExperiment:F}=(0,$.F)(),z=(0,ey.Z)(),{mainImage:R,carouselInfo:L,previewImage:M,isGif:Z,imgSrc:O}=(0,e_.r)(),N=(0,ev.nl)(T,z)&&F("web_stl_tooling",{dangerouslySkipActivation:!0}).anyEnabled,[K,U]=(0,f.useState)("inOut"),[H,V]=(0,f.useState)(!0),G=(0,f.useCallback)(()=>{V(!1)},[V]);(0,f.useEffect)(()=>{H&&e&&U("none")},[H,e,G,U,E]);let[W,q]=(0,f.useState)(!1),Y=null===(a=r.imageSpec_orig)||void 0===a?void 0:a.url,X=null!=L&&L.carouselData?function(e){let{carousel_slots:t,index:i}=e;return t&&void 0!==i&&(t[i]||{}).image_signature?t[i].image_signature:null}(L.carouselData):r.imageSignature,Q=w||S,J="catalog_bulk_create"===k||(null==x?void 0:x.products),ee=Q&&J?decodeURIComponent(Q):Q,et=(null!=P?P:[]).some(e=>e.isStela),ei=(0,ev.Ms)(T,z)===(null==v?void 0:v.username)&&N,en=!C&&T.isAuth,{showCloseupContentRight:el,paneWidth:ea,pdpCarouselSlotToPaneRatio:er,showProductDetailPage:eo}=(0,g.x4)(),{height:es,width:ed}=R,eu={naturalWidth:ed,naturalHeight:es,alt:(0,eh.Z)({altText:s,autoAltText:d,i18n:I,checkExperiment:F}),src:Z?O:(null==M?void 0:M.url)||""},ec=(0,h.B)(),ep=(0,_.Z)({isSideBySide:el,isPadded:i,isRTL:ec.isRTL});return{stelaDotAnimationType:K,onStelaDotAnimationComplete:()=>U("none"),animateShopButton:H,onShopButtonAnimationComplete:G,stlFlyoutHovered:W,onStlFlyoutHover:e=>q(e),originalImageUrl:Y,imageSignature:X,link:ee,hasStelaResults:et,isScenePin:C,showStelaDots:E,disablePinTagButton:ei,canShowDomainLinkButton:en,pdpCarouselSlotToPaneRatio:er,showProductDetailPage:eo,maxCloseupImageWidth:ea,imageProps:eu,borderStyle:ep}}var eb=i(517082),eP=i(664633),ew=i(287072);let eS=({onClick:e,href:t,children:i,onNavigation:n})=>(0,d.jsx)(s.xu,{"data-test-id":"image-link",children:(0,d.jsx)(s.Tg,{onTap:({event:t,dangerouslyDisableOnNavigation:i})=>{i(),e(),n({event:t})},href:t,rel:"nofollow",children:i})});function ek({onClick:e,hasXYcoordinates:t,isEligibleForStlFlyout:i=!1,isHovered:n,pin:l,searchQuery:a,shouldPadImage:r,taggedProducts:o,trafficSource:u,viewParameter:c,isORBACProfileManager:p}){var _,m,g;let y;let{stelaDotAnimationType:f,onStelaDotAnimationComplete:x,animateShopButton:b,onShopButtonAnimationComplete:P,stlFlyoutHovered:w,onStlFlyoutHover:S,originalImageUrl:k,imageSignature:A,link:C,hasStelaResults:D,isScenePin:E,showStelaDots:I,disablePinTagButton:T,canShowDomainLinkButton:F,pdpCarouselSlotToPaneRatio:L,showProductDetailPage:Z,maxCloseupImageWidth:B,imageProps:O,borderStyle:N}=ex({isHovered:n,pinKey:{type:"deprecated",data:l},shouldPadImage:r}),K=(0,eg.Z)(),{mainImage:U,carouselInfo:H,isGif:V,imgSrc:G}=(0,e_.r)(),{isBot:W}=(0,h.B)(),$=(0,eP.Z)(),{domain:q,is_eligible_for_pdp:Y,id:X,shuffle:Q}=l,J=!!Q&&$&&!W,ee=(0,eb.Z)({pinId:X,shouldRenderShuffle:J}),et=(0,em.Z)({isHiddenPin:l.is_hidden,isUnsafePin:l.is_unsafe}),{currentDomain:ei}=(0,ep.Wp)({carouselData:l.carousel_data&&{carouselSlots:l.carousel_data.carousel_slots&&l.carousel_data.carousel_slots.map(e=>({domain:e.domain,link:e.link})),index:null===(_=l.carousel_data)||void 0===_?void 0:_.index},domain:l.domain}),en=ei||q,el={carousel_slot_id:void 0,carousel_data_id:void 0,carousel_slot_index:void 0,commerce_data:void 0};if(H&&H.carouselData&&H.carouselData.id){let{carousel_slots:e=[],id:t,index:i=0}=H.carouselData;y=e[i]&&e[i].link,el.carousel_slot_id=e[i]&&e[i].id,el.carousel_data_id=t,el.carousel_slot_index=i,en=e[i]&&e[i].domain||en}let ea=(0,j.Z)({type:"deprecated",data:l}),er=ea({isPdpPlus:Y});er&&(el.commerce_data=er);let es=y||C||k||"",{dominant_color:ed}=l,{height:eu,width:eh}=(0,R.Z)({carouselData:null==H?void 0:H.carouselData,mainImage:U,maxCloseupImageWidth:B,shouldPadImage:r,imageToDisplayWidthRatio:L}),ey=(0,ew.Z)({href:es,target:"blank",externalData:{auxData:el,pin:l&&{attributionSourceId:l.attribution_source_id,board:l.board&&{url:l.board.url},campaignId:l.campaign_id,entityId:l.id,isDownstreamPromotion:l.is_downstream_promotion,isPromoted:l.is_promoted,pinner:l.pinner&&{username:l.pinner.username},pinPromotionId:l.pin_promotion_id,promoter:l.promoter&&{entityId:l.promoter.id},storyPinDataId:l.story_pin_data_id,trackingParams:l.tracking_params,trackingParamsMap:l.tracking_params_map,advertiserId:l.advertiser_id}}}),ev=(0,d.jsx)(M,{dominantColor:ed||"",imageProps:O,imgSrc:G,isPreviewImage:!V&&!!G}),ef=ev;null!=H&&H.carouselData&&(ef=(0,d.jsx)(z,{carouselData:H.carouselData,displayHeight:eu,displayWidth:eh,pinKey:{type:"deprecated",data:l}})),J&&(ef=(0,d.jsx)(s.xu,{"data-test-id":"shuffle-renderer",children:(0,d.jsx)(v.s,{shuffle:ee,width:eh,children:ev})}));let ek=(0,d.jsx)(s.xu,{"data-test-id":"closeup-image",overflow:"hidden",dangerouslySetInlineStyle:{__style:{...N}},children:ef}),{justifyShopButton:ej,showCarouselControls:eA,showCloseupShopDomainLinkButton:eC,showDebugSignalsFeedbackButton:eD,showDomainLink:eE,showDomainLinkButton:eI,showFlashlightButton:eT,showPinTagButton:eF,showShopButton:ez,showStlFlyout:eR,surfaceType:eL}=ec({canShowDomainLinkButton:F,carouselInfo:H,disablePinTagButton:T,domain:en||"",hasXYcoordinates:t,isEligibleForStlFlyout:i,isEmployee:K.isAuth&&!!K.isEmployee,isHovered:n,isScenePin:E,hasMetTrustAndSafetyCheck:et,navLink:es,pinKey:{type:"deprecated",data:l},showProductDetailPage:Z,showStelaDots:I,stlFlyoutHovered:w,isORBACProfileManager:p});return(0,d.jsxs)(s.xu,{dangerouslySetInlineStyle:{__style:{...N}},"data-test-id":"closeup-body-image-container",height:eu,position:"relative",width:eh,children:[E||F?ek:(0,d.jsx)(eS,{onClick:e,href:es,onNavigation:ey,children:ek}),(0,d.jsx)(eo,{carouselInfo:H,displayHeight:eu,displayWidth:eh,domain:null!==(m=null!==(g=en)&&void 0!==g?g:q)&&void 0!==m?m:"",hasStelaResults:D,imageSignature:A,isHovered:n,justifyShopButton:ej,link:es,navigationWrapper:t=>(0,d.jsx)(eS,{onClick:e,href:es,onNavigation:ey,children:t}),onShopButtonAnimationComplete:P,onStelaDotAnimationComplete:x,onStlFlyoutHover:S,pin:l,searchQuery:a,animateShopButton:b,showCarouselControls:eA,showCarouselEllipsis:!Z,showCloseupShopDomainLinkButton:eC,showDebugSignalsFeedbackButton:eD,showDomainLink:eE,showDomainLinkButton:eI,showFlashlightButton:eT,showProductDetailPage:Z,showPinTagButton:eF,showShopButton:ez,showStelaDots:I,showStlFlyout:eR,stelaDotAnimationType:f,surfaceType:eL,taggedProducts:o,trafficSource:u,viewParameter:c})]})}var ej=i(386352),eA=i(233316),eC=i(860507),eD=i(784590),eE=i(124364),eI=i(224496),eT=i(775151);let eF={width:508,height:640};function ez({onClick:e,hasXYcoordinates:t,isEligibleForStlFlyout:i=!1,isHovered:n,pin:l,searchQuery:a,shouldPadImage:r,taggedProducts:o,trafficSource:u,viewParameter:c,isORBACProfileManager:p}){var h,_;let{stelaDotAnimationType:m,onStelaDotAnimationComplete:g,animateShopButton:y,onShopButtonAnimationComplete:v,stlFlyoutHovered:x,onStlFlyoutHover:b,originalImageUrl:P,imageSignature:w,link:S,hasStelaResults:k,isScenePin:A,showStelaDots:C,disablePinTagButton:D,canShowDomainLinkButton:E,maxCloseupImageWidth:I,imageProps:T,borderStyle:F}=ex({pinKey:{type:"deprecated",data:l},shouldPadImage:r}),z=(0,eg.Z)(),L=(0,eC.Z)(),Z=(0,em.Z)({isHiddenPin:l.is_hidden,isUnsafePin:l.is_unsafe}),{mainImage:B}=(0,e_.r)(),[O,N]=(0,f.useState)(),{domain:K="",id:U,dominant_color:H,story_pin_data:V,native_creator:G}=l,W={carousel_slot_id:void 0,carousel_data_id:void 0,carousel_slot_index:void 0,commerce_data:void 0},$=(0,j.Z)({type:"deprecated",data:l}),q=$();q&&(W.commerce_data=q);let Y=S||P||"",{data:X=[],isLoaded:Q}=(0,eD.Z)({name:"StoryPinTaggedProductsResource",options:{id:l.id},noCache:!0}),{pages:J=[null]}=V||{},[ee]=J,{blocks:et}=(0,eA.Z)({storyPinBlocks:(null==ee?void 0:ee.blocks)||[],blocksToRender:[eI.h8.COMMENT_REPLY_STICKER,eI.h8.GENERIC_STICKER,eI.h8.HEADING,eI.h8.MENTION_STICKER,eI.h8.PARAGRAPH,eI.h8.PRODUCT_STICKER,eI.h8.VTO_MAKEUP_STICKER]}),{background_color:ei}=(null==ee?void 0:ee.style)||{},{blocks:[en]=[null]}=(0,eA.Z)({storyPinBlocks:(null==ee?void 0:ee.blocks)||[],blocksToRender:[eI.h8.IMAGE]}),el=(0,ew.Z)({href:Y,target:"blank",externalData:{auxData:W,pin:l&&{attributionSourceId:l.attribution_source_id,board:l.board&&{url:l.board.url},campaignId:l.campaign_id,entityId:l.id,isDownstreamPromotion:l.is_downstream_promotion,isPromoted:l.is_promoted,pinner:l.pinner&&{username:l.pinner.username},pinPromotionId:l.pin_promotion_id,promoter:l.promoter&&{entityId:l.promoter.id},storyPinDataId:l.story_pin_data_id,trackingParams:l.tracking_params,trackingParamsMap:l.tracking_params_map,advertiserId:l.advertiser_id}}}),{fontsLoaded:ea}=(0,eT.tq)({hasPin:!!l,pages:J}),{justifyShopButton:er,showCloseupShopDomainLinkButton:es,showDebugSignalsFeedbackButton:ed,showDomainLink:eu,showDomainLinkButton:ep,showFlashlightButton:eh,showPinTagButton:ey,showShopButton:ev,showStlFlyout:ef,surfaceType:eb}=ec({canShowDomainLinkButton:E,disablePinTagButton:D,domain:K,hasXYcoordinates:t,hasMetTrustAndSafetyCheck:Z,isEligibleForStlFlyout:i,isEmployee:z.isAuth&&!!z.isEmployee,isHovered:n,isScenePin:A,navLink:Y,pinKey:{type:"deprecated",data:l},stlFlyoutHovered:x,isORBACProfileManager:p});if(null!==(h=l.story_pin_data)&&void 0!==h&&h.is_deleted||!ee)return(0,d.jsx)(eE.Z,{width:eF.width,height:eF.height,rounding:4,color:"secondary"});let{height:eP,width:ek}=(0,R.Z)({mainImage:B,maxCloseupImageWidth:I,shouldPadImage:r}),ez=(0,d.jsxs)(s.xu,{"data-test-id":"closeup-image",overflow:"hidden",dangerouslySetInlineStyle:{__style:{...F}},position:"absolute",top:!0,right:!0,bottom:!0,left:!0,children:[!O&&(0,d.jsx)(M,{dominantColor:H||"",imageProps:T}),en&&(0,d.jsx)(ej.ZP,{block:en,fontsLoaded:!0,isActive:!1,muteVideos:!0,ownerId:null!==(_=null==G?void 0:G.id)&&void 0!==_?_:"",pageAspectRatio:ek/eP,pageIndex:0,pageHeight:eP,pageWidth:ek,pinId:U,pinKey:null,onImageLoaded:()=>N(!0)})]});return(0,d.jsxs)(s.xu,{dangerouslySetInlineStyle:{__style:{...F,background:ei||"#fff"}},"data-test-id":"closeup-body-image-container",height:eP,position:"relative",width:ek,children:[A||E?ez:(0,d.jsx)(eS,{onClick:e,href:Y,onNavigation:el,children:ez}),(0,d.jsx)(eo,{hasStelaResults:k,displayHeight:eP,displayWidth:ek,domain:K,imageSignature:w,isHovered:n,justifyShopButton:er,link:Y,navigationWrapper:t=>(0,d.jsx)(eS,{onClick:e,href:Y,onNavigation:el,children:t}),onShopButtonAnimationComplete:v,onStelaDotAnimationComplete:g,onStlFlyoutHover:b,pin:l,searchQuery:a,animateShopButton:y,showCloseupShopDomainLinkButton:es,showDebugSignalsFeedbackButton:ed,showDomainLink:eu,showDomainLinkButton:ep,showFlashlightButton:eh,showPinTagButton:ey,showShopButton:ev,showStelaDots:C,showStlFlyout:ef,stelaDotAnimationType:m,surfaceType:eb,taggedProducts:o,trafficSource:u,viewParameter:c}),Q&&O&&et.map((e,t)=>{var i,n,l;let a=(X||[]).find(t=>[t.id,t.cacheable_id].includes(e.pin_id));return(0,d.jsx)(ej.ZP,{block:e,disableProductStickers:L,fontsLoaded:ea,isActive:!1,muteVideos:!0,ownerId:null!==(l=null==G?void 0:G.id)&&void 0!==l?l:"",pageAspectRatio:ek/eP,pageIndex:0,pageHeight:eP,pageWidth:ek,pinKey:null!=a?{type:"deprecated",data:a}:null,pinId:U},`${null!==(i=ee.id)&&void 0!==i?i:""}-${null!==(n=e.type)&&void 0!==n?n:""}-${t}`)})]})}var eR=i(430323);let eL=e=>{let{hasXYcoordinates:t,isHovered:i,isEligibleForStlFlyout:n,onImageClick:l,pin:a,searchQuery:r,shouldPadImage:o,taggedProducts:s,trafficSource:c,viewParameter:p,isORBACProfileManager:h}=e,_=(0,j.Z)({type:"deprecated",data:a}),m=a.is_eligible_for_pdp?_({isPdpPlus:!0}):void 0,g=!!a.story_pin_data_id&&!1===a.should_open_in_stream,y=(0,d.jsx)(eR.Z,{auxData:m,viewParameter:p,component:85,children:g?(0,d.jsx)(ez,{hasXYcoordinates:t,isHovered:i,isEligibleForStlFlyout:n,onClick:l,pin:a,searchQuery:r,shouldPadImage:o,taggedProducts:s,trafficSource:c,viewParameter:p,isORBACProfileManager:h}):(0,d.jsx)(ek,{hasXYcoordinates:t,isHovered:i,isEligibleForStlFlyout:n,onClick:l,pin:a,searchQuery:r,shouldPadImage:o,taggedProducts:s,trafficSource:c,viewParameter:p,isORBACProfileManager:h})});return o?(0,d.jsx)(u,{children:y}):y};var eM=i(357787),eZ=i(36971),eB=i(463045);function eO(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let eN=(0,eM.Z)(x.Z);class eK extends f.Component{constructor(...e){super(...e),eO(this,"handleVisibilityChanged",e=>{let{pinId:t,isPromoted:i,setCurrentVideo:n,pauseAutoplay:l,videosAutoplaying:a,videoStartTime:r}=this.props,o=(0,eB.Z)(t,a);e&&!o?n({pinId:t,isPromoted:!!i,currentTime:r}):!e&&o&&l({pinId:t,isPromoted:!!i,currentTime:this.currentVideoCurrentTime})}),eO(this,"handleVideoTimeChange",e=>{let{pinId:t,videosAutoplaying:i}=this.props,n=(0,eB.Z)(t,i);n&&(this.currentVideoCurrentTime=e.time)})}componentDidUpdate(e){let{appInFocus:t}=e,{appInFocus:i,pauseAutoplay:n,pinId:l,isPromoted:a,setCurrentVideo:r,videosAutoplaying:o}=this.props,s=(0,eB.Z)(l,o),d=(0,eZ.Z)(l,o);this.currentVideoCurrentTime=null!=d?d:this.currentVideoCurrentTime,i!==t&&!i&&s?(this.pausedDueToBrowserOutOfFocus=!0,n({pinId:l,isPromoted:!!a,currentTime:this.currentVideoCurrentTime})):this.pausedDueToBrowserOutOfFocus&&i&&(this.pausedDueToBrowserOutOfFocus=!1,r({pinId:l,isPromoted:!!a,currentTime:this.currentVideoCurrentTime}))}componentWillUnmount(){let{pinId:e,isPromoted:t,pauseAutoplay:i}=this.props;i({pinId:e,isPromoted:!!t,currentTime:this.currentVideoCurrentTime})}render(){let{setCurrentVideo:e,pauseAutoplay:t,videoStartTime:i,videosAutoplaying:n,...l}=this.props;return(0,d.jsx)(eN,{inAdsDesktopVideoExperiment:!0,onTimeChange:this.handleVideoTimeChange,onVisibilityChanged:this.handleVisibilityChanged,trackFullVisible:!1,...l})}}function eU(e){let{pinId:t,isPromoted:i}=e,{appUI:{appInFocus:n,videosAutoplaying:l},pauseAutoplay:a,setCurrentVideo:r}=(0,A.I)(),{organicVideosAutoplaying:o,promotedVideosAutoplaying:s}=l,u=i?s[t]:o[t];return(0,d.jsx)(eK,{...e,appInFocus:n,pauseAutoplay:a,setCurrentVideo:r,videosAutoplaying:l,videoStartTime:u?u.currentTime:null})}var eH=i(957161),eV=i(274970),eG=i(709113);let eW=(0,f.lazy)(()=>i.e(87122).then(i.bind(i,647303))),e$=({children:e,name:t})=>(0,d.jsx)(s.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},"data-test-id":`experimental-closeup-image-overlay-layer-${t}`,left:!0,position:"absolute",right:!0,top:!0,children:e}),eq=({closeupIsFirstPageInHistoryStack:e,customThumbnail:t,imageContainerRef:i,isWideVideo:n,pin:l,shouldPadImage:a,flyoutShareProps:r,video:o,isORBACProfileManager:c})=>{let p=!!l.promoter&&!l.is_downstream_promotion,h=p&&!l.is_eligible_for_web_closeup,{access:_,should_mute:g}=l||{},y=!!_&&_.includes("tag")||c,v=m.Gg-m.d2,f="undefined"!=typeof window&&0===eH.Z.getItem(eG._e),x=(0,d.jsxs)(eV.Z,{isVideo:!0,isWideVideo:n,shouldPadImage:a,styleOverrides:a?{maxWidth:{maxWidth:v},minWidth:{minWidth:v},height:{},borderRadius:16}:{},variant:"default",children:[(0,d.jsx)(s.xu,{width:"100%",ref:i,children:(0,d.jsx)(eU,{autoplay:!f,customThumbnail:t,flyoutShareProps:r,isPromoted:p,loop:h,muted:g||e,pinId:l.id,shouldMute:g,video:o,variant:"default"})}),y&&(0,d.jsx)(e$,{name:"tag-button",children:(0,d.jsx)(K.Z,{name:"SafeSuspense_VideoContent_CloseupTagButton",children:(0,d.jsx)(H.Z,{children:(0,d.jsx)(U.Z,{children:(0,d.jsx)(eW,{pin:l})})})})})]});return a?(0,d.jsx)(u,{children:x}):x},eY=e=>{let{closeupIsFirstPageInHistoryStack:t,imageContainerRef:i,flyoutShareProps:n,hasXYcoordinates:l,isEligibleForStlFlyout:a,isWideVideo:r,pin:o,shouldPadImage:s,searchQuery:u,taggedProducts:c,trafficSource:p,isORBACProfileManager:h,isHovered:_,onImageClick:m,viewParameter:g}=e,{video:v,imgSrc:f,isEmbeddedVideo:x}=(0,e_.r)();if(v)return(0,d.jsx)(eq,{closeupIsFirstPageInHistoryStack:t,imageContainerRef:i,isWideVideo:r,pin:o,shouldPadImage:s,flyoutShareProps:n,video:v,customThumbnail:f,isORBACProfileManager:h});if(x){var b;let e="50%",t=o.attribution&&(o.attribution.author_name||o.attribution.url)?o.attribution.provider_name:null;return"soundcloud"===t?e="30%":"vin"===t&&(e="100%"),(0,d.jsx)(y,{embedUrl:null===(b=o.embed)||void 0===b?void 0:b.src,isWideVideo:r,paddingBottom:e,shouldPadImage:s})}return(0,d.jsx)(Z.Z,{hovered:_,pinKey:{type:"deprecated",data:o},trackingParamsMap:o.tracking_params_map,viewType:3,children:(0,d.jsx)(eL,{hasXYcoordinates:l,isHovered:_,isEligibleForStlFlyout:a,onImageClick:m,pin:o,searchQuery:u,shouldPadImage:s,taggedProducts:c,trafficSource:p,viewParameter:g,isORBACProfileManager:h})})}},491073:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(667294),l=i(883119),a=i(450053),r=i(459263),o=i(614514),s=i(43671),d=i(740025),u=i(785893);function c({pin:e}){let t=(0,d.Z)({viewParameter:156,pinKey:{type:"deprecated",data:e}});return(0,u.jsx)(s.ZP,{hideContents:!0,pin:e,feedbackType:t})}var p=i(801827),h=i(558068),_=i(780280),m=i(224496),g=i(215292),y=i(19121),v=i(717615),f=i(231947),x=i(240681),b=i(966676);function P({hasXYcoordinates:e,isEligibleForStlFlyout:t,isStoryPin:i,isWideVideo:s,pin:d,searchQuery:P,taggedProducts:w,trafficSource:S,viewParameterType:k,visualContentContainerRef:j={current:null},imageContainerRef:A,handleImageClickThrough:C,setClickthroughComponentForSurvey:D,isShortImage:E}){let[I,T]=(0,n.useState)(!1),{previous:F}=(0,h.Hv)(),z=(0,b.x4)(),R=(0,v.Z)(),L=(0,_.B)(),M=(0,p.r)(),Z=(0,y.Z)(),{getViewParameter:B}=(0,a.ZP)({pin:d}),O=0===F.length,{carouselInfo:N,imgSrc:K,mainImage:U,video:H}=M,V=()=>{T(e=>!e)},G=()=>{T(!1)},W=e=>({gridDescription:d.description,imageSrc:e,isFlyoutOpen:I,onFlyoutDismiss:G,onToggleFlyout:V,pinId:d.id}),{showCloseupContentRight:$,paneWidth:q}=z;if(i)return null;let{domain:Y,music_attributions:X,pinner:Q={},should_mute:J}=d,ee=Y&&!!d.link&&!d.link.startsWith("https://i.pinimg.com"),{width:et}=U,ei=(0,a.NE)({closePanelWidth:q,isShortImage:E,carouselInfo:N,isWideVideo:s,naturalWidth:et,showCloseupContentRight:$}),en=(0,x.Z)({isSideBySide:$,isPadded:!1,isRTL:L.isRTL}),el=(0,f.q6)(Z,Q.id,R);return(0,u.jsx)(l.xu,{"data-test-id":"visual-content-container",children:(0,u.jsx)(g.q,{children:({hovered:i,onMouseEnter:n,onMouseLeave:a})=>(0,u.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:{...en}},display:"flex",justifyContent:"center",onMouseEnter:n,onMouseLeave:a,position:"relative",ref:j,width:s?"100%":q,children:[H&&(null==X?void 0:X.length)&&(0,u.jsx)(l.xu,{top:!0,alignItems:"center","data-test-id":"music-attribution",display:"flex",justifyContent:"center",marginTop:6,overflow:"hidden",paddingY:8,position:"absolute",width:q,zIndex:m.Ls,children:(0,u.jsx)(r.Z,{musicAttributions:X,shouldMute:J})}),(0,u.jsx)(o.Z,{closeupIsFirstPageInHistoryStack:O,flyoutShareProps:W(K),hasXYcoordinates:e,isEligibleForStlFlyout:t,imageContainerRef:A,isHovered:i,isWideVideo:s,onImageClick:()=>{C&&C(),D("imageContainer")},pin:d,searchQuery:P,shouldPadImage:ei,showDomainLink:ee,taggedProducts:w,trafficSource:S,viewParameter:B(k),isORBACProfileManager:el}),d&&d.showFeedback&&(0,u.jsx)(c,{pin:d})]})})})}},450053:(e,t,i)=>{"use strict";i.d(t,{NE:()=>o,ZP:()=>s,nU:()=>r});var n=i(667294),l=i(692627),a=i(681227);function r(e){let{native_creator:t,pinner:i,domain:n}=e,l=(e.link_user_website&&e.link_user_website.official_user||e.link_domain&&e.link_domain.official_user||!!e.third_party_pin_owner||!!i&&i.domain_verified&&i.domain_url===n)&&!e.is_promoted;return l||!!t}function o({carouselInfo:e,closePanelWidth:t,isWideVideo:i,isShortImage:n,naturalWidth:l,showCloseupContentRight:a}){return!i&&!!a&&(!!n||!e&&l<t)}function s({pin:e}){var t,i,o;let s=(0,n.useCallback)(t=>t?!!e.link:!e.is_eligible_for_pdp,[e.is_eligible_for_pdp,e.link]),d=(0,l.Z)({hasPin:!!e,hasPinRichMetadata:!!e.rich_metadata,hasPinRichMetadataProducts:!!(null!==(t=e.rich_metadata)&&void 0!==t&&t.products),hasPinRichMetadataArticle:!!(null!==(i=e.rich_metadata)&&void 0!==i&&i.article),hasPinRichMetadataRecipe:!!(null!==(o=e.rich_metadata)&&void 0!==o&&o.recipe),hasPinStoryPinData:!!e.story_pin_data}),u=(0,n.useCallback)(e=>e||d,[d]),c=(0,n.useCallback)(t=>{var i,n,l,o,s,d,u;return{isShopTheLook:(null===(i=e.aggregated_pin_data)||void 0===i?void 0:i.is_shop_the_look)||!!(null!==(n=e.aggregated_pin_data)&&void 0!==n&&n.is_stela),showCreatorCard:r(e),creatorId:null!==(l=null===(o=e.closeup_attribution)||void 0===o?void 0:o.id)&&void 0!==l?l:null,showCanonicalComments:!!e.is_eligible_for_aggregated_comments,storyPinDetailsArgs:e.story_pin_data_id?{metadata:null===(s=e.story_pin_data)||void 0===s?void 0:s.metadata,detailsPage:null!==(d=e.story_pin_data)&&void 0!==d&&null!==(u=d.pages)&&void 0!==u&&u[1]?e.story_pin_data.pages[1]:void 0}:void 0,showReactions:(0,a.J6)({board:e.board&&{isCollaborative:e.board.is_collaborative,collaboratedByMe:e.board.collaborated_by_me},videos:e.videos&&e.videos.id?{entityId:e.videos.id}:null,isDownstreamPromotion:e.is_downstream_promotion,isPromoted:e.is_promoted,storyPinDataId:e.story_pin_data_id},t),isCreatorClassPin:!!e.creator_class}},[e]);return{getShowClickthroughLink:s,getViewParameter:u,makeDetailsArgs:c}}},268592:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(829407),a=i(977558);let r=`calc(100vh - ${a.cI}px - 16px)`;function o(e=100){let[t,i]=(0,n.useState)(r),o=(0,n.useRef)(null),s=`calc(${null!=e?e:"100"}vh - ${a.cI}px - 16px)`;return(0,l.Z)(()=>{var t;if(!window)return;let n=window.innerHeight-a.cI-16,l=(null===(t=o.current)||void 0===t?void 0:t.clientHeight)||0;l>n*e/100&&(s=l.toString());let r=n>l?s:l;i(r)}),{descriptionContentMaxHeight:t,visualContentContainerRef:o}}},816890:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s}),i(167912);var n,l=i(4294),a=i(916117),r=i(231947);let o=void 0!==n?n:n=i(299879);function s({pinKey:e,orbacActingAs:t,viewer:i}){var n,s,d,u,c;let{data:p}=(0,a.u)(o,e),h=null!==(n=p.pinner)&&void 0!==n&&!!n.entityId&&(0,r.D3)(i,p.pinner.entityId,t),_=(null!==(s=p.board)&&void 0!==s&&!!s.collaboratedByMe||null!==(d=p.board)&&void 0!==d&&null!==(u=d.owner)&&void 0!==u&&!!u.entityId)&&(0,l.Z)(p.board.collaboratedByMe,null===(c=p.board.owner)||void 0===c?void 0:c.entityId,i);return h||_}},481697:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o}),i(167912);var n,l=i(4294),a=i(916117);let r=void 0!==n?n:n=i(174426);function o(e,t){var i,n,o,s;let{data:d}=(0,a.u)(r,e);return(0,l.Z)(null===(i=d.board)||void 0===i?void 0:i.collaboratedByMe,null===(n=d.board)||void 0===n?void 0:null===(o=n.owner)||void 0===o?void 0:o.entityId,t)&&!!(null!==(s=d.board)&&void 0!==s&&s.isCollaborative)}},127897:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(667294),l=i(431911),a=i(801827),r=i(829407),o=i(92261),s=i(966676);let d=100+o.Ie;function u({metadataContainerRef:e}){let[t,i]=(0,n.useState)(!1),o=(0,s.x4)(),u=(0,a.r)();return(0,r.Z)(()=>{if(!e.current)return;let t=e.current.getBoundingClientRect().height+d;(function({metadataHeight:e,closeupContext:t,visualData:i}){let{pdpCarouselSlotToPaneRatio:n,paneWidth:a}=t,{mainImage:r,carouselInfo:o}=i,s=(0,l.Z)({carouselData:null==o?void 0:o.carouselData,mainImage:r,maxCloseupImageWidth:a,imageToDisplayWidthRatio:n}).height;return e>s})({metadataHeight:t,closeupContext:o,visualData:u})&&i(!0)}),t}},680333:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(667294);function l(){let[e,t]=(0,n.useState)(""),i=(0,n.useRef)(null),l=(0,n.useRef)(null),a=(0,n.useRef)(null),r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let t=()=>{e&&i.current&&i.current.handleEgSurveyClick(e)};return window.addEventListener("focus",t),()=>window.removeEventListener("focus",t)},[e]),{clickthroughComponentForSurvey:e,setClickthroughComponentForSurvey:t,webLinkSurveyRef:i,imageContainerRef:l,legoLinkClickthroughAnchorRef:a,maybeLinkRef:r}}},156491:(e,t,i)=>{"use strict";i.d(t,{l6:()=>tn,ZP:()=>ta});var n,l,a,r,o,s=i(667294),d=i(702664),u=i(616550),c=i(785430),p=i(332611),h=i(558068),_=i(780280),m=i(826067),g=i(19121),y=i(313951),v=i(350118);function f(e){let{previous:t}=(0,h.Hv)(),i=0===t.length,{children:n}=e,l=(0,u.useLocation)(),a=(0,g.Z)(),r=(0,d.useDispatch)(),{isBot:o}=(0,_.B)(),{dropdownOpen:s}=(0,y.Z5)(),c=(0,v.AF)(),f=!!c[e.pinId]&&(c[e.pinId].saved||!!c[e.pinId].savedInfo),x=c[e.pinId]||e.pinResource.data||{},b="inbox"===(0,m.mB)(l.search).tab,P=!!a.isAuth&&a.isLimitedLogin;return n({isLandingPage:i,isLimitedLogin:P,didRepin:f,openInbox:s,pin:x,shouldShowInbox:b,updateExperienceForPlacement:e=>{r((0,p.pz)([e],o))}})}var x=i(385937),b=i(709717),P=i(283855);i(167912);var w=i(883119),S=i(898781),k=i(349700),j=i(785893);function A({attribution:{authorName:e,authorUrl:t,ccUrl:i,providerName:n,url:l},embed:a}){let r=(0,S.ZP)();if(!e&&!(n&&l))return null;let o=r._('from {{ provider }}', 'Image source attribution without author on pin closeup', 'Image source attribution without author on pin closeup');return e&&(o=null!=a&&a.src&&"gif"!==a.type&&"pinstory"!==a.subtype?r._('Video by {{ author }} on {{ provider }}', 'Video source attribution on pin closeup', 'Video source attribution on pin closeup'):r._('Photo by {{ author }} on {{ provider }}', 'Photo source attribution on pin closeup', 'Photo source attribution on pin closeup')),(0,j.jsxs)(s.Fragment,{children:[(0,j.jsx)(w.xv,{color:"subtle",children:(0,k.nk)(o,{author:(0,j.jsx)(w.rU,{display:"inlineBlock",href:null!=t?t:"",rel:"nofollow",underline:"hover",children:e},"author"),provider:(0,j.jsx)(w.rU,{display:"inlineBlock",href:null!=l?l:"",rel:"nofollow",underline:"hover",children:n},"provider")})}),i&&(0,j.jsx)(w.rU,{href:i,rel:"nofollow",children:r._('(cc)', 'Creative Commons Link Text', 'Creative Commons Link Text')})]})}function C({category:e,ingredients:t}){return(0,j.jsxs)(w.xu,{children:[e&&(0,j.jsx)(w.xu,{children:(0,j.jsx)(w.xv,{weight:"bold",children:e})}),(0,j.jsx)("ul",{children:t.map((e,t)=>(0,j.jsx)("li",{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",children:(0,j.jsx)(w.xu,{marginTop:1,children:(0,j.jsxs)(w.xv,{children:[e.amt||null," ",e.name]})})},t))})]})}var D=i(326595),E=i(580749),I=i(561195),T=i(923297),F=i(833049),z=i(134185),R=i(92261),L=i(966676);function M(){return(0,j.jsx)(L.ZP.Consumer,{children:({showCloseupContentRight:e,viewportSize:t})=>e&&"lg"===t?(0,j.jsx)(w.xu,{width:16}):null})}function Z({recipe:{aggregateRating:e,categorizedIngredients:t,cookTimes:i,diets:n,fromAggregatedData:l,name:a,servingsSummary:r}}){let o=(0,S.ZP)();if(!a||!t||0===t.length)return null;let s=null==r?void 0:r.summary,d=(0,E.f)(null==i?void 0:i.prep),u=(0,E.f)(null==i?void 0:i.cook),c=(0,E.f)(null==i?void 0:i.total),p=c||u||d;if(u&&d){let e=u.h||0,t=u.m||0,i=d.h||0,n=d.m||0;p={h:e+i,m:t+n}}let h=p?(0,F.Z)((0,T.X)(p),o):null,_=null==e?void 0:e.reviewCount;return(0,j.jsxs)(z.Z,{itemScope:!0,itemType:R.iB.RECIPE,children:[(0,j.jsx)("meta",{content:a,itemProp:"name"}),l?(0,j.jsx)("div",{className:"hr cardDivider"}):null,!!_&&(0,j.jsxs)(w.xu,{marginBottom:2,display:"flex",alignItems:"baseline",children:[e&&(0,j.jsx)(w.xu,{marginEnd:1,children:(0,j.jsx)(I.Z,{rating:e.ratingValue,max_rating:e.bestRating,width:16})}),(0,j.jsx)(w.xv,{weight:"bold",children:(0,k.nk)(o.ngettext('{{reviewCount}} review', '{{reviewCount}} reviews', _, ' - ', ' -- '),{reviewCount:_})})]}),h?(0,j.jsx)(w.xu,{marginBottom:2,display:"flex",alignItems:"center",children:(0,j.jsx)(D.Z,{timeString:h})}):null,(0,j.jsxs)(w.xu,{"data-test-id":"ingredients-heading",marginBottom:4,children:[(0,j.jsx)(w.X6,{size:"500",children:l?a:o._('Ingredients', 'Ingredients title in closeup recipe description', 'Ingredients title in closeup recipe description')}),n?(0,j.jsxs)(w.xu,{display:"flex",marginTop:1,"data-test-id":"diets-section",children:[(0,j.jsx)(w.xv,{children:n.join(", ")}),s?(0,j.jsx)(w.xu,{marginStart:1,"data-test-id":"serving-summary-section",children:(0,j.jsx)(w.xv,{children:"∙ "+s})}):null]}):null]}),Array.isArray(t)&&t.length>0&&(1===t.length?(0,j.jsx)(w.xu,{column:12,"data-test-id":"single-column-ingredients",children:t.map(({category:e,ingredients:t},i)=>(0,j.jsx)(w.xu,{marginBottom:2,children:(0,j.jsx)(C,{category:e,ingredients:(null!=t?t:[]).map(({amt:e,name:t})=>({amt:e,name:t}))})},i))}):(0,j.jsxs)(w.xu,{display:"flex","data-test-id":"dual-column-ingredients",children:[(0,j.jsx)(w.xu,{column:6,children:t.slice(0,Math.ceil(t.length/2)).map(({category:e,ingredients:t},i)=>(0,j.jsx)(w.xu,{marginBottom:2,children:(0,j.jsx)(C,{category:e,ingredients:(null!=t?t:[]).map(({amt:e,name:t})=>({amt:e,name:t}))})},i))}),(0,j.jsx)(M,{}),(0,j.jsx)(w.xu,{column:6,children:t.slice(Math.ceil(t.length/2)).map(({category:e,ingredients:t},i)=>(0,j.jsx)(w.xu,{marginBottom:2,children:(0,j.jsx)(C,{category:e,ingredients:(null!=t?t:[]).map(({amt:e,name:t})=>({amt:e,name:t}))})},i))})]}))]})}var B=i(782534);function O({article:e}){var t;let i=(0,S.ZP)();if(!e.name)return null;let n=e.datePublished&&new Date(e.datePublished),l=(null!==(t=e.authors)&&void 0!==t?t:[]).map(({name:e})=>e).filter(Boolean);return(0,j.jsxs)(z.Z,{itemScope:!0,itemType:R.iB.ARTICLE,children:[(0,j.jsx)("meta",{content:e.name,itemProp:"name"}),(0,j.jsxs)(w.xu,{marginTop:3,children:[n&&(0,j.jsxs)(w.xu,{children:[(0,j.jsx)("meta",{content:n.toDateString(),itemProp:"datePublished"}),(0,j.jsxs)(w.xv,{children:[i._('Published ', ' - ', ' -- '),(0,j.jsx)(B.Z,{value:n,dateFormatType:B.k.LONG})]})]}),l.length>0&&(0,j.jsx)(w.xu,{"data-test-id":"article-author",children:(0,j.jsxs)(w.xv,{children:[i._('Written by ', ' - ', ' -- '),l.join(", ")]})})]})]})}var N=i(883561);class K extends s.Component{componentDidMount(){let{onUpdate:e}=this.props;null==e||e()}componentDidUpdate(e){if(e.showMore!==this.props.showMore){let{onUpdate:e}=this.props;null==e||e()}}render(){var e,t;let{carouselData:i,closeupDescription:n,tutorialDescription:l,showMore:a,onToggle:r}=this.props,o=(i&&(null===(e=i.carouselSlots)||void 0===e?void 0:e[null!==(t=i.index)&&void 0!==t?t:0])||{}).details||n,d=o&&l&&l.trim()===o.trim(),u=o?o.trim().replace(/\s+/g," "):null,c=o&&o.length>200;return u&&!d?(0,j.jsx)(s.Fragment,{children:c?(0,j.jsxs)(w.xu,{children:[(0,j.jsx)(w.xv,{inline:!0,children:a?u:(0,N.ZP)(u,200)}),(0,j.jsx)(w.xu,{display:"inlineBlock",marginStart:1,children:(0,j.jsx)(w.iP,{fullWidth:!1,onTap:r,children:(0,j.jsx)(w.xv,{inline:!0,size:"200",weight:"bold",children:a?this.props.i18n._('Less', ' - ', ' -- '):this.props.i18n._('More', ' - ', ' -- ')})})})]}):(0,j.jsx)(w.xv,{children:u})}):null}}function U(e){let t=(0,S.ZP)();return(0,j.jsx)(K,{...e,i18n:t})}var H=i(916117);let V=void 0!==n?n:n=i(132881),G=e=>e.split(" ").map(e=>e.trim()).reduce((e,t)=>e.length>300?e:e.length+t.length+3>300?`${e} ${t}...`:`${e} ${t}`,"");function W({onToggle:e,onUpdate:t,pinKey:i,showMore:n}){var l,a,r,o,d,u,c,p,h;let{data:_}=(0,H.u)(V,i);if(!_||!_.entityId)return null;let m=null!==(l=_.richMetadata)&&void 0!==l&&null!==(a=l.tutorial)&&void 0!==a&&a.name?_.richMetadata.tutorial:null,g=null!==(r=_.richMetadata)&&void 0!==r&&null!==(o=r.article)&&void 0!==o&&o.name?_.richMetadata.article:null,y=null!==(d=_.richMetadata)&&void 0!==d&&null!==(u=d.recipe)&&void 0!==u&&u.name?_.richMetadata.recipe:null,v=!!g&&!y&&!m;return(0,j.jsxs)(w.xu,{marginBottom:3,marginTop:3,dangerouslySetInlineStyle:{__style:{fontSize:"14px"}},children:[(0,j.jsxs)("div",{className:"richPinInformation",style:{marginBottom:12},children:[_.aggregatedPinData&&(0,j.jsx)(U,{carouselData:_.carouselData&&{index:_.carouselData.index,carouselSlots:null===(c=_.carouselData.carouselSlots)||void 0===c?void 0:c.map(e=>({details:e.details}))},closeupDescription:_.closeupDescription,onToggle:e,showMore:n,onUpdate:t,tutorialDescription:null!=m&&m.name&&m.description?m.description:void 0})||v&&(null==g?void 0:g.description)&&(0,j.jsx)("div",{className:"richPinArticleSummary",style:{fontSize:"16px",marginBottom:12},children:G(g.description)}),v&&g&&(0,j.jsxs)(s.Fragment,{children:[(0,j.jsx)(O,{article:{authors:null===(p=g.authors)||void 0===p?void 0:p.map(e=>({name:e.name})),datePublished:g.datePublished,name:g.name}}),!!_.attribution&&(0,j.jsx)(A,{attribution:{authorName:_.attribution.authorName,authorUrl:_.attribution.authorUrl,ccUrl:_.attribution.ccUrl,providerName:_.attribution.providerName,url:_.attribution.url},embed:_.embed&&{type:_.embed.type,src:_.embed.src,subtype:_.embed.subtype}})]})]}),y&&(0,j.jsx)(Z,{recipe:{aggregateRating:y.aggregateRating&&{bestRating:y.aggregateRating.bestRating,ratingCount:y.aggregateRating.ratingCount,ratingValue:y.aggregateRating.ratingValue,reviewCount:y.aggregateRating.reviewCount},categorizedIngredients:null===(h=y.categorizedIngredients)||void 0===h?void 0:h.map(e=>{var t;return{category:e.category,ingredients:null===(t=e.ingredients)||void 0===t?void 0:t.map(e=>({amt:e.amt,name:e.name}))}}),cookTimes:y.cookTimes&&{cook:y.cookTimes.cook,prep:y.cookTimes.prep,total:y.cookTimes.total},diets:y.diets,fromAggregatedData:y.fromAggregatedData,name:y.name,servingsSummary:y.servingsSummary&&{summary:y.servingsSummary.summary}}})]})}var $=i(537313),q=i(814197);let Y=void 0!==l?l:l=i(602375);function X({onClickThrough:e,onToggle:t,onUpdate:i,pinKey:n,showMore:l,trackingParamsMap:a}){let{data:r}=(0,H.u)(Y,n);return(0,j.jsxs)(w.xu,{marginTop:3,children:[(0,j.jsx)(w.xu,{display:"inlineBlock",position:"relative",width:"100%",zIndex:q.Fk,children:(0,j.jsx)(w.xu,{children:(0,j.jsx)($.ZP,{onClickThrough:e,pinKey:r,trackingParamsMap:a,showDomainInLink:!0})})}),(0,j.jsx)(W,{onToggle:t,onUpdate:i,pinKey:r,showMore:l})]})}var Q=i(536237),J=i(214494),ee=i(827896),et=i(407043),ei=i(121151),en=i(784590),el=i(916062),ea=i(825067),er=i(254176),eo=i(678638),es=i(956800),ed=i(90326),eu=i(492583);function ec(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class ep extends s.Component{constructor(...e){var t;super(...e),t=this,ec(this,"handleHide",()=>{let{onHide:e}=this.props;this.props.logContextEvent({event_type:7802}),e()}),ec(this,"handleDelete",async function(){t.props.logContextEvent({event_type:101,component:13373,element:11186});let{getClientTrackingParams:e,detailedPin:i,dispatch:n,pinId:l,onDelete:a,onHide:r,changeBoardPinCount:o,changeUserPinCount:s}=t.props,d=i.data||{};await J.Z.create("PinResource",{id:l,client_tracking_params:e(l)}).callDelete();let{board:{id:u}={},pinner:{id:c}={},section:p}=d,h=null==p?void 0:p.id;o({boardId:u,sectionId:h,increment:-1}),s({userId:c,increment:-1}),n((0,er.xQ)(u)),n((0,es.EX)({feedId:h||u,feedType:h?eu.Z.BOARD_SECTION_PINS:eu.Z.BOARDFEED,itemIds:[l],itemType:"pin"})),h&&n((0,eo.CE)(h)),r(),a&&a()})}render(){return(0,j.jsx)(ei.ZP,{accessibilityModalLabel:this.props.i18n._('Delete this Pin', 'Accessibility label for modal to delete this status pin', 'Accessibility label for modal to delete this status pin'),onDismiss:this.handleHide,heading:this.props.i18n._('Delete this Pin?', 'Heading for modal to delete this status pin', 'Heading for modal to delete this status pin'),size:"sm",footer:(0,j.jsxs)(s.Fragment,{children:[(0,j.jsx)(w.xu,{marginBottom:3,children:(0,j.jsx)(w.zx,{fullWidth:!0,color:"gray",text:this.props.i18n._('Delete', 'Button label for confirming the action of deleting status pin', 'Button label for confirming the action of deleting status pin'),onClick:()=>{this.handleDelete()}})}),(0,j.jsx)(w.xu,{children:(0,j.jsx)(w.zx,{fullWidth:!0,color:"red",text:this.props.i18n._('Cancel', 'Button label for cancelling the action to delete status pin', 'Button label for cancelling the action to delete status pin'),onClick:this.handleHide})})]}),children:(0,j.jsx)(w.xu,{padding:4,children:(0,j.jsx)(w.xv,{children:this.props.i18n._('If you delete this Pin, you won\'t be able to get it back.', 'Text to confirm whether user wants to delete the status pin', 'Text to confirm whether user wants to delete the status pin')})})})}}function eh(e){var t,i,n,l,a,r;let o=(0,d.useDispatch)(),{logContextEvent:s}=(0,et.v)(),u=null===(t=(0,ea.W)())||void 0===t?void 0:t.onPinDelete,c=(0,en.Z)({name:"PinResource",options:{id:e.pinId,field_set_key:"detailed"}}),p=(0,el.Z)({hasPin:!!c.data,pinId:null===(i=c.data)||void 0===i?void 0:i.id,boardLayout:null===(n=c.data)||void 0===n?void 0:null===(l=n.board)||void 0===l?void 0:l.layout,boardUrl:null===(a=c.data)||void 0===a?void 0:null===(r=a.board)||void 0===r?void 0:r.url});return(0,j.jsx)(ep,{...e,changeBoardPinCount:e=>o((0,er.Br)(e)),changeUserPinCount:e=>o((0,ed.JS)(e)),detailedPin:c,dispatch:o,getClientTrackingParams:(0,ee.Z)(),i18n:(0,S.ZP)(),logContextEvent:s,onDelete:()=>{var t;p(),null===(t=e.onDelete)||void 0===t||t.call(e),null==u||u({pinId:e.pinId})}})}var e_=i(238464),em=i(499128),eg=i(357998),ey=i(966113),ev=i(700380),ef=i(430323),ex=i(343341),eb=i(704115),eP=i(356997),ew=i(681669),eS=i(985913),ek=i(954931),ej=i(215292);let eA=void 0!==a?a:a=i(484044);function eC({pin:e,savedToText:t}){let i=(0,S.ZP)(),{logContextEvent:n}=(0,et.v)(),l=!!e.pinner,{adsOnlyProfileSite:a,fullName:r,imageMediumUrl:o,isAdsOnlyProfile:s,username:d}=e.pinner||{};if(!l)return null;let u=s&&a?a:`/${d||""}/`,c=(0,eS.Z)(i._('{{ pinnerFullName }} avatar link', 'aggregatedCloseupSavedToBoardInfo.avatar.accessibilityLabel', 'Accessibility label for user avatar'),{pinnerFullName:null!=r?r:""}),p=(e,t)=>{e===t&&n({event_type:101,element:13382,aux_data:{aop_origin:"AggregatedCloseupSavedToBoardInfo"}})};return(0,j.jsx)(w.xu,{marginBottom:5,children:(0,j.jsx)("div",{className:"AggregatedCloseupCard",style:{padding:"0",borderTop:"none"},children:(0,j.jsx)(w.iP,{children:(0,j.jsxs)(w.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,j.jsx)(w.rU,{accessibilityLabel:c,href:u,onClick:()=>p(u,a),rel:(0,ek.Z)(u)?"none":"nofollow",target:u===a?"blank":null,children:(0,j.jsx)(ej.q,{children:({active:e,focused:t,hovered:i,onBlur:n,onFocus:l,onMouseEnter:a,onMouseLeave:s})=>(0,j.jsx)(w.xu,{marginEnd:2,onFocus:l,onBlur:n,onMouseEnter:a,onMouseLeave:s,children:(0,j.jsx)(w.zd,{wash:i||e||t,rounding:"circle",children:(0,j.jsx)(eP.qE,{size:"sm",name:null!=r?r:"",src:null!=o?o:""})})})})}),(0,j.jsx)(w.kC,{alignItems:"center",flex:"grow",justifyContent:"start",width:"100%",children:(0,j.jsx)(w.xu,{display:"flex",justifyContent:"between",marginStart:-5,marginEnd:-5,children:(0,j.jsx)(w.xu,{paddingX:5,children:(0,j.jsx)(w.xv,{size:"200",children:r&&t?t:null})})})})]})})})})}function eD({pinKey:e,savedToText:t}){let{data:i}=(0,ew.sr)(eA,e,{type:"pin",useLegacyAdapter:e=>({pinner:e.pinner&&{adsOnlyProfileSite:e.pinner.ads_only_profile_site,fullName:e.pinner.full_name,imageMediumUrl:e.pinner.image_medium_url,isAdsOnlyProfile:e.pinner.is_ads_only_profile,username:e.pinner.username}})});return i&&(0,j.jsx)(eC,{savedToText:t,pin:i})}var eE=i(717615),eI=i(231947);let eT=void 0!==r?r:r=i(267078);function eF({pin:e,isOwnPin:t}){var i,n,l,a,r,o,s,d,u,c,p,h,_,m,y,v,f,x,b,P,A,C,D,E,I,T;let F=(0,S.ZP)(),z=(0,g.Z)(),R=(0,eE.Z)(),{logContextEvent:L}=(0,et.v)(),M=(0,eI.lJ)(z,R),Z=M?`?orbac_subject_id=${M}`:"",B=null!==(i=e.pinner)&&void 0!==i&&i.isAdsOnlyProfile&&e.pinner.adsOnlyProfileSite?e.pinner.adsOnlyProfileSite:`/${(null===(n=e.pinner)||void 0===n?void 0:n.username)||""}/`,O=(null===(l=e.board)||void 0===l?void 0:l.layout)==="quick_saves",N=(null===(a=e.board)||void 0===a?void 0:a.layout)==="quick_creates",K=(0,j.jsx)(w.xv,{inline:!0,size:"200",weight:"bold",children:(0,j.jsx)(w.rU,{display:"inlineBlock",href:`${null!==(r=null===(o=e.board)||void 0===o?void 0:o.url)&&void 0!==r?r:""}${Z}`,underline:"hover",children:null===(s=e.board)||void 0===s?void 0:s.name})},"board"),U=(e,t)=>{e===t&&L({event_type:101,element:13382,aux_data:{aop_origin:"AggregatedCloseupSavedToBoardInfo"}})};if(N)return(0,k.nk)(F._('Created by {{ pinnerName }}', 'closeup.AggregatedCloseupCard.quickCreatesPinText', 'Showing who created this Pin on closeup'),{pinnerName:(0,j.jsx)(w.xv,{inline:!0,size:"200",weight:"bold",children:(0,j.jsx)(w.rU,{display:"inlineBlock",onClick:()=>{var t;return U(B,null===(t=e.pinner)||void 0===t?void 0:t.adsOnlyProfileSite)},href:B,underline:"hover",rel:(0,ek.Z)(B)?"none":"nofollow",target:B===(null===(u=e.pinner)||void 0===u?void 0:u.adsOnlyProfileSite)?"blank":null,children:null===(c=e.pinner)||void 0===c?void 0:c.fullName})},"pinner")});if(t){if(O)return(0,k.nk)(F._('{{ You }} saved this Pin', 'closeup.AggregatedCloseupCard.quickSavesOwnPinText', 'Text explaining that you saved this Pin'),{You:(0,j.jsx)(w.xv,{inline:!0,size:"200",weight:"bold",children:(0,j.jsx)(w.rU,{display:"inlineBlock",onClick:()=>{var t;return U(B,null===(t=e.pinner)||void 0===t?void 0:t.adsOnlyProfileSite)},href:B,underline:"hover",rel:(0,ek.Z)(B)?"none":"nofollow",target:B===(null===(p=e.pinner)||void 0===p?void 0:p.adsOnlyProfileSite)?"blank":null,children:F._('You', 'closeup.AggregatedCloseupCard.quickSavesOwnPinYouText', '"You" in "{{ You }} saved this Pin"')})},"you")});if(!e.section)return(0,k.nk)(F._('{{ You }} saved to {{ boardName }}', 'Indicating you saved this pin to a board on closeup', 'Indicating you saved this pin to a board on closeup'),{You:(0,j.jsx)(w.xv,{inline:!0,size:"200",weight:"bold",children:(0,j.jsx)(w.rU,{display:"inlineBlock",onClick:()=>{var t;return U(B,null===(t=e.pinner)||void 0===t?void 0:t.adsOnlyProfileSite)},href:B,underline:"hover",rel:(0,ek.Z)(B)?"none":"nofollow",target:B===(null===(v=e.pinner)||void 0===v?void 0:v.adsOnlyProfileSite)?"blank":null,children:F._('You', '"you" in "{{ You }} saved to {{ boardName }}"', '"you" in "{{ You }} saved to {{ boardName }}"')})},"you"),boardName:K});{let t=`${null!==(h=null===(_=e.board)||void 0===_?void 0:_.url)&&void 0!==h?h:""}${null!==(m=e.section.slug)&&void 0!==m?m:""}/${Z}`;return(0,k.nk)(F._('You saved to {{ sectionName }} in {{ boardName }}', 'Showing that you saved this pin to a section within a board on closeup', 'Showing that you saved this pin to a section within a board on closeup'),{sectionName:(0,j.jsx)(w.xv,{inline:!0,size:"200",weight:"bold",children:(0,j.jsx)(w.rU,{display:"inlineBlock",href:t,underline:"hover",children:null===(y=e.section)||void 0===y?void 0:y.title})},"section"),boardName:K})}}if((null===(d=e.board)||void 0===d?void 0:d.privacy)==="protected"||O)return(0,k.nk)(F._('{{ pinnerName }} saved this Pin', 'Showing who saved this pin, but not which board (private board), on closeup', 'Showing who saved this pin, but not which board (private board), on closeup'),{pinnerName:(0,j.jsx)(w.xv,{inline:!0,size:"200",weight:"bold",children:(0,j.jsx)(w.rU,{display:"inlineBlock",onClick:()=>{var t;return U(B,null===(t=e.pinner)||void 0===t?void 0:t.adsOnlyProfileSite)},href:B,underline:"hover",rel:(0,ek.Z)(B)?"none":"nofollow",target:B===(null===(f=e.pinner)||void 0===f?void 0:f.adsOnlyProfileSite)?"blank":null,children:null===(x=e.pinner)||void 0===x?void 0:x.fullName})},"pinner")});if(!e.section)return(0,k.nk)(F._('{{ pinnerName }} saved to {{ boardName }}', 'Showing who saved this pin to which board on closeup', 'Showing who saved this pin to which board on closeup'),{pinnerName:(0,j.jsx)(w.xv,{inline:!0,size:"200",weight:"bold",children:(0,j.jsx)(w.rU,{display:"inlineBlock",onClick:()=>{var t;return U(B,null===(t=e.pinner)||void 0===t?void 0:t.adsOnlyProfileSite)},href:B,underline:"hover",rel:(0,ek.Z)(B)?"none":"nofollow",target:B===(null===(I=e.pinner)||void 0===I?void 0:I.adsOnlyProfileSite)?"blank":null,children:null===(T=e.pinner)||void 0===T?void 0:T.fullName})},"pinner"),boardName:K});{let t=`${null!==(b=null===(P=e.board)||void 0===P?void 0:P.url)&&void 0!==b?b:""}${null!==(A=e.section.slug)&&void 0!==A?A:""}/${Z}`;return(0,k.nk)(F._('{{ pinnerName }} saved to {{ sectionName }} in {{ boardName }}', 'Showing who saved this pin to a section within a board on closeup', 'Showing who saved this pin to a section within a board on closeup'),{pinnerName:(0,j.jsx)(w.xv,{inline:!0,size:"200",weight:"bold",children:(0,j.jsx)(w.rU,{display:"inlineBlock",onClick:()=>{var t;return U(B,null===(t=e.pinner)||void 0===t?void 0:t.adsOnlyProfileSite)},href:B,underline:"hover",rel:(0,ek.Z)(B)?"none":"nofollow",target:B===(null===(C=e.pinner)||void 0===C?void 0:C.adsOnlyProfileSite)?"blank":null,children:null===(D=e.pinner)||void 0===D?void 0:D.fullName})},"pinner"),sectionName:(0,j.jsx)(w.xv,{inline:!0,size:"200",weight:"bold",children:(0,j.jsx)(w.rU,{display:"inlineBlock",href:t,underline:"hover",children:null===(E=e.section)||void 0===E?void 0:E.title})},"section"),boardName:K})}}function ez({pinKey:e,isOwnPin:t}){let{data:i}=(0,ew.sr)(eT,e,{type:"pin",useLegacyAdapter:e=>({board:e.board&&{layout:e.board.layout,name:e.board.name,privacy:e.board.privacy,url:e.board.url},pinner:e.pinner&&{adsOnlyProfileSite:e.pinner.ads_only_profile_site,fullName:e.pinner.full_name,isAdsOnlyProfile:e.pinner.is_ads_only_profile,username:e.pinner.username},section:e.section&&{slug:e.section.slug,title:e.section.title}})});return i&&(0,j.jsx)(eF,{pin:i,isOwnPin:t})}let eR=function(e){let{viewer:t,pinnerId:i,pinId:n}=e,l=t.isAuth&&i===t.id,a=(0,j.jsx)(ez,{isOwnPin:l,pinKey:{type:"deprecated",data:n}});return(0,j.jsx)(w.xu,{marginTop:10,"data-test-id":"aggregated-closeup-card",children:(0,j.jsx)(eD,{pinKey:{type:"deprecated",data:n},savedToText:a})})};var eL=i(819303),eM=i(274970),eZ=i(273690);function eB({children:e,isWideVideo:t=!1}){return(0,j.jsx)(L.ZP.Consumer,{children:({showCloseupContentRight:i,viewportSize:n})=>i&&"lg"===n&&!t?null:e})}var eO=i(765798);function eN(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let eK=({children:e})=>(0,j.jsx)(L.ZP.Consumer,{children:({showCloseupContentRight:t,viewportSize:i})=>t&&"lg"===i&&e}),eU={backgroundGradient:{__style:{background:"linear-gradient(to bottom, #eee 200px, #fff 100%)",padding:"32px 0",width:"100%"}},closeupBoxShadow:{__style:{boxShadow:"0 4px 4px #eee",paddingBottom:"24px"}}},eH=void 0!==o?o:o=i(137937),eV=e=>{var t,i,n;return{entityId:e.id,image564x:(null===(t=e.images)||void 0===t?void 0:t["564x"])&&{height:e.images["564x"].height,url:e.images["564x"].url,width:e.images["564x"].width},imageOrig:(null===(i=e.images)||void 0===i?void 0:i.orig)&&{height:e.images.orig.height,url:e.images.orig.url,width:e.images.orig.width},isNative:e.is_native,isPromoted:e.is_promoted,linkDomain:e.link_domain&&{officialUser:e.link_domain.official_user&&{entityId:e.link_domain.official_user.id||""}},pinner:e.pinner&&{entityId:e.pinner.id},thirdPartyPinOwner:e.third_party_pin_owner&&{entityId:e.third_party_pin_owner.id||""},title:e.title,videoStatusMessage:e.video_status_message&&{closeup:e.video_status_message.closeup},videos:e.videos&&{entityId:null!==(n=e.videos.id)&&void 0!==n?n:"",videoList:e.videos.video_list&&{v720P:e.videos.video_list.V_720P&&{duration:e.videos.video_list.V_720P.duration,height:e.videos.video_list.V_720P.height,thumbnail:e.videos.video_list.V_720P.thumbnail,url:e.videos.video_list.V_720P.url,width:e.videos.video_list.V_720P.width},vHLSV3MOBILE:e.videos.video_list.V_HLSV3_MOBILE&&{duration:e.videos.video_list.V_HLSV3_MOBILE.duration,height:e.videos.video_list.V_HLSV3_MOBILE.height,thumbnail:e.videos.video_list.V_HLSV3_MOBILE.thumbnail,url:e.videos.video_list.V_HLSV3_MOBILE.url,width:e.videos.video_list.V_HLSV3_MOBILE.width},vHLSV4:e.videos.video_list.V_HLSV4&&{duration:e.videos.video_list.V_HLSV4.duration,height:e.videos.video_list.V_HLSV4.height,thumbnail:e.videos.video_list.V_HLSV4.thumbnail,url:e.videos.video_list.V_HLSV4.url,width:e.videos.video_list.V_HLSV4.width}}}}};class eG extends s.Component{constructor(...e){super(...e),eN(this,"state",{descriptionShowMore:!1,showDeletePinModal:!1,viewportSize:"lg"}),eN(this,"mounted",!1),eN(this,"updateViewportSize",(0,ev.Z)(()=>{this.mounted&&this.setState({viewportSize:window&&window.matchMedia("(min-width: 1056px)").matches?"lg":"md"})},50)),eN(this,"handleCloseDeleteStatusPinModal",()=>{this.setState({showDeletePinModal:!1})}),eN(this,"handleGoBack",()=>{let{isLandingPage:e,history:t}=this.props,{crossSite:i}=(0,eb.Z)();i?window.history.back():e?t.push("/"):t.goBack()}),eN(this,"handleOnDeleteStatusPin",()=>{let{toastManagerContext:e}=this.props;this.setState({showDeletePinModal:!1}),e.showToast(({hideToast:e})=>(0,j.jsx)(em.ZP,{onHide:e,text:this.props.i18n._('Pin deleted', 'Pin delete completion confirmation', 'Pin delete completion confirmation')})),this.handleGoBack()}),eN(this,"handleOpenDeleteStatusPinModal",()=>{this.setState({showDeletePinModal:!0}),this.props.logContextEvent({event_type:7803,view_type:248})}),eN(this,"handleToggleExpand",()=>this.setState(e=>({descriptionShowMore:!e.descriptionShowMore}))),eN(this,"renderNonConversationalDetail",()=>{var e,t;let{onCloseupBodyUpdate:i,pin:n,viewer:l,onClickThrough:a}=this.props,{isNative:r}=n,{video:o}=this.props||{};return(0,j.jsxs)(s.Fragment,{children:[this.showCreatorCard&&(0,j.jsx)(w.xu,{marginBottom:3,children:(0,j.jsx)(Q.Z,{componentType:126,impressionType:"User",input:n,loggingId:this.creatorId,slotIndex:0,viewParameter:156,viewType:3})}),r&&n&&(0,j.jsx)(eR,{pinnerId:null===(e=n.pinner)||void 0===e?void 0:e.entityId,pinId:n.entityId,viewer:l}),(0,j.jsx)(X,{onClickThrough:a,onToggle:this.handleToggleExpand,onUpdate:i,pinKey:n,showMore:this.state.descriptionShowMore,trackingParamsMap:this.props.trackingParamsMap}),r&&o?(0,j.jsx)(w.xu,{marginBottom:4,children:(0,j.jsx)(w.xu,{width:"100%",children:(0,j.jsx)($.kC,{pinKey:n,trackingParamsMap:this.props.trackingParamsMap})})}):null,!r&&n&&(0,j.jsx)(eR,{pinnerId:null===(t=n.pinner)||void 0===t?void 0:t.entityId,pinId:n.entityId,viewer:l})]})})}get creatorId(){var e;let{pin:t}=this.props,{linkDomain:i}=t,{thirdPartyPinOwner:n}=t,l=i&&i.officialUser;return l||n?null!=l&&l.entityId?l.entityId:null!==(e=null==n?void 0:n.entityId)&&void 0!==e?e:"":null}get showCreatorCard(){let{pin:e}=this.props;return(e.linkDomain&&e.linkDomain.officialUser||!!e.thirdPartyPinOwner)&&!e.isPromoted}componentDidMount(){this.mounted=!0,this.updateViewportSize(),window.addEventListener("resize",this.updateViewportSize)}componentWillUnmount(){window.removeEventListener("resize",this.updateViewportSize),this.mounted=!1}render(){var e;let{showDeletePinModal:t,viewportSize:i}=this.state,{isLandingPage:n,pin:l}=this.props,{title:a,videoStatusMessage:r,imageOrig:o,image564x:s}=l||{},d=l.entityId?{pin:l}:null,{image564x:u}=(s&&s.url&&s.height&&s.width?{image564x:{url:s.url,height:s.height,width:s.width}}:null)||{},{imageOrig:c}=(o&&o.url&&o.height&&o.width?{imageOrig:{url:o.url,height:o.height,width:o.width}}:null)||{},p=u||c,h=p&&p.url,{video:_=null}=this.props||{},m=(0,j.jsx)(eO.Z,{pinKey:l,trackingParamsMap:this.props.trackingParamsMap}),g=60,y=0,v=p&&p.width||0;return p&&(g=p&&"lg"===i?Math.max(Math.min(v,496),60):Math.max(Math.min(v,564),60),y=p&&p.height?g/v*p.height:0),(0,j.jsx)(ef.Z,{view:248,children:(0,j.jsxs)(L.ZP.Provider,{value:(0,L.Nb)({...L.Of,showCloseupContentRight:!0,viewportSize:i}),children:[(0,j.jsxs)(w.xu,{dangerouslySetInlineStyle:eU.backgroundGradient,children:[(0,j.jsx)(w.xu,{display:"flex",justifyContent:"center",paddingY:6,children:(0,j.jsx)(w.xv,{align:"center",inline:!0,children:(0,j.jsxs)("span",{className:"deprecatedTextSizeXL",children:[`${null!==(e=(r||{}).closeup)&&void 0!==e?e:""} `,(0,j.jsx)(w.xv,{inline:!0,weight:"bold",children:(0,j.jsx)("span",{className:"deprecatedTextSizeXL",children:(0,j.jsx)(w.rU,{display:"inlineBlock",href:ey.o1A,onClick:({dangerouslyDisableOnNavigation:e})=>e(),underline:"hover",children:this.props.i18n._('Read our guidelines', 'Text link to Pinterest\'s video content guidelines', 'Text link to Pinterest\'s video content guidelines')})})},"review-guidelines")]})})}),(0,j.jsx)(w.kC,{alignItems:"stretch",justifyContent:"center",children:(0,j.jsx)(eL.Z,{children:(0,j.jsxs)(w.xu,{color:"default",rounding:2,dangerouslySetInlineStyle:eU.closeupBoxShadow,children:[(0,j.jsxs)(w.xu,{display:"flex",justifyContent:"between",alignItems:"center",paddingX:6,paddingY:4,children:[(0,j.jsx)(w.hU,{accessibilityLabel:this.props.i18n._('Back', 'Text for back button in the Pin creation flow', 'Text for back button in the Pin creation flow'),icon:"arrow-back",iconColor:"darkGray",onClick:this.handleGoBack,size:"lg",padding:2}),(0,j.jsx)(w.xu,{display:"flex",padding:1,children:(0,j.jsx)(w.zx,{fullWidth:!0,color:"gray",text:this.props.i18n._('Delete', 'Delete a status Pin', 'Delete a status Pin'),onClick:this.handleOpenDeleteStatusPinModal})})]}),(0,j.jsxs)(eZ.Z,{children:[(0,j.jsx)(w.xu,{paddingX:4,children:(0,j.jsx)(eB,{children:m})}),(0,j.jsx)(eM.Z,{variant:"default",children:(0,j.jsx)(w.xu,{rounding:2,overflow:"hidden",height:y,width:g,children:_?(0,j.jsx)(e_.Z,{customThumbnail:h,muted:n,pinId:l.entityId,video:_,autoplay:!0,variant:"legacy"}):p&&(0,j.jsx)(w.Ee,{alt:a||"",color:"lightGray",naturalHeight:p.height||0,naturalWidth:p.width||0,src:p.url||""})})}),(0,j.jsxs)(w.xu,{paddingX:4,children:[(0,j.jsx)(eK,{children:m}),d&&this.renderNonConversationalDetail()]})]})]})})}),(0,j.jsxs)(w.xu,{display:"flex",justifyContent:"center",alignItems:"center",marginTop:6,children:[(0,j.jsx)(w.JO,{accessibilityLabel:this.props.i18n._('Lock', 'Accessibility label for lock icon', 'Accessibility label for lock icon'),icon:"lock",inline:!0,size:20}),(0,j.jsx)(w.xu,{padding:2,children:(0,j.jsx)(w.xv,{children:this.props.i18n._('This is only visible to you', 'The status pin closeup page is only visible to the pin owner', 'The status pin closeup page is only visible to the pin owner')})})]})]}),t&&(0,j.jsx)(eh,{pinId:l.entityId,onDelete:this.handleOnDeleteStatusPin,onHide:this.handleCloseDeleteStatusPinModal})]})})}}function eW({pinKey:e,props:t}){var i,n,l,a,r,o,d,c,p,_,m,y,v,f,x,b,P,w,k,A,C,D,E,I,T,F,z,R,L,M;let{logContextEvent:Z}=(0,et.v)(),B=(0,S.ZP)(),{previous:O}=(0,h.Hv)(),N=0===O.length,{data:K}=(0,eg.Q)(eH,e,{useLegacyAdapter:eV}),{videos:U}=K,H=(0,s.useMemo)(()=>{var e,t;return null!=U&&null!==(e=U.videoList)&&void 0!==e&&null!==(t=e.v720P)&&void 0!==t&&t.url?{duration:U.videoList.v720P.duration||void 0,height:U.videoList.v720P.height||void 0,thumbnail:U.videoList.v720P.thumbnail||void 0,url:U.videoList.v720P.url||void 0,width:U.videoList.v720P.width||void 0}:void 0},[null==U?void 0:null===(i=U.videoList)||void 0===i?void 0:null===(n=i.v720P)||void 0===n?void 0:n.duration,null==U?void 0:null===(l=U.videoList)||void 0===l?void 0:null===(a=l.v720P)||void 0===a?void 0:a.height,null==U?void 0:null===(r=U.videoList)||void 0===r?void 0:null===(o=r.v720P)||void 0===o?void 0:o.thumbnail,null==U?void 0:null===(d=U.videoList)||void 0===d?void 0:null===(c=d.v720P)||void 0===c?void 0:c.url,null==U?void 0:null===(p=U.videoList)||void 0===p?void 0:null===(_=p.v720P)||void 0===_?void 0:_.width]),V=(0,s.useMemo)(()=>{var e,t;return null!=U&&null!==(e=U.videoList)&&void 0!==e&&null!==(t=e.vHLSV4)&&void 0!==t&&t.url?{duration:U.videoList.vHLSV4.duration||void 0,height:U.videoList.vHLSV4.height||void 0,thumbnail:U.videoList.vHLSV4.thumbnail||void 0,url:U.videoList.vHLSV4.url||void 0,width:U.videoList.vHLSV4.width||void 0}:void 0},[null==U?void 0:null===(m=U.videoList)||void 0===m?void 0:null===(y=m.vHLSV4)||void 0===y?void 0:y.duration,null==U?void 0:null===(v=U.videoList)||void 0===v?void 0:null===(f=v.vHLSV4)||void 0===f?void 0:f.height,null==U?void 0:null===(x=U.videoList)||void 0===x?void 0:null===(b=x.vHLSV4)||void 0===b?void 0:b.thumbnail,null==U?void 0:null===(P=U.videoList)||void 0===P?void 0:null===(w=P.vHLSV4)||void 0===w?void 0:w.url,null==U?void 0:null===(k=U.videoList)||void 0===k?void 0:null===(A=k.vHLSV4)||void 0===A?void 0:A.width]),G=(0,s.useMemo)(()=>{var e,t;return null!=U&&null!==(e=U.videoList)&&void 0!==e&&null!==(t=e.vHLSV3MOBILE)&&void 0!==t&&t.url?{duration:U.videoList.vHLSV3MOBILE.duration||void 0,height:U.videoList.vHLSV3MOBILE.height||void 0,thumbnail:U.videoList.vHLSV3MOBILE.thumbnail||void 0,url:U.videoList.vHLSV3MOBILE.url||void 0,width:U.videoList.vHLSV3MOBILE.width||void 0}:void 0},[null==U?void 0:null===(C=U.videoList)||void 0===C?void 0:null===(D=C.vHLSV3MOBILE)||void 0===D?void 0:D.duration,null==U?void 0:null===(E=U.videoList)||void 0===E?void 0:null===(I=E.vHLSV3MOBILE)||void 0===I?void 0:I.height,null==U?void 0:null===(T=U.videoList)||void 0===T?void 0:null===(F=T.vHLSV3MOBILE)||void 0===F?void 0:F.thumbnail,null==U?void 0:null===(z=U.videoList)||void 0===z?void 0:null===(R=z.vHLSV3MOBILE)||void 0===R?void 0:R.url,null==U?void 0:null===(L=U.videoList)||void 0===L?void 0:null===(M=L.vHLSV3MOBILE)||void 0===M?void 0:M.width]),W=(0,s.useMemo)(()=>{let e=H||V||G;return null!=U&&U.entityId&&e?{id:U.entityId,hasVideo:e,mp4:H||void 0,hls:V||void 0,hlsv3:G||void 0}:null},[V,G,H,null==U?void 0:U.entityId]);return(0,j.jsx)(eG,{...t,history:(0,u.useHistory)(),isLandingPage:N,toastManagerContext:(0,ex.F9)(),viewer:(0,g.Z)(),i18n:B,logContextEvent:Z,pin:K,video:W})}var e$=i(409667),eq=i(497529),eY=i(869636);class eX extends s.PureComponent{componentDidMount(){let{experience:e}=this.props;if(e&&500500===e.experience_id){let{experience_id:t,placement_id:i}=e;this.props.experienceClient.viewExperience(i,t)}}componentDidUpdate(e){let t=e.experience,i=this.props.experience;if(i&&!t){let{experience_id:e,placement_id:t}=i;this.props.experienceClient.viewExperience(t,e)}}render(){return this.props.children}}function eQ(e){let t=(0,eq.Z)(),{experience:i}=(0,eY.Z)(1000075);return(0,j.jsx)(eX,{...e,experienceClient:t,experience:i})}var eJ=i(623568),e0=i(773285),e1=i(763917);let e2=({pathname:e})=>/^\/pin\/[\w-]+\/activity\/tried\/?$/.test(e),e8=e=>!!e&&((0,e1.C)(e)||e2(e)),e3=e=>{var t;let i=e.map(e=>e8(e.location));return null!==(t=i.find(e=>!0===e))&&void 0!==t&&t};var e6=i(56641),e9=i(794230);function e7(e,t=!1){let i=e||window.location.href;(0,e6.Z)(`/login?next=${t?(0,e9.Z)(i,{type:"signup"}):encodeURIComponent(i)}`)}var e4=i(496793),e5=i(915071),te=i(67347);let tt=({id:e,story_pin_data:t,videos:i})=>{var n,l;return(e&&null!=i&&i.id&&i.video_list?[i.video_list.V_720P,i.video_list.V_HLSV4,i.video_list.V_HLSV3_MOBILE]:[]).some(e=>e&&e.thumbnail&&e.url&&!!e.width&&!!e.height)||(null!==(n=((null==t?void 0:null===(l=t.pages)||void 0===l?void 0:l[0])||{}).blocks)&&void 0!==n?n:[]).some(e=>!!e.video)},ti=e=>({isVideoPin:!!e&&tt(e)});function tn({checkExperiment:e,currentHistoryStack:t,history:i,location:n,params:l,pinResource:a,requestContext:r,searchPinCloseupViewed:o,showQuickPromote:d,showRepin:u,viewer:c,CloseupComponent:p,...h}){let _=a.data,g=a.isLoaded,y=(0,s.useRef)(null),v=g&&_&&_.pinner&&c.isAuth&&c.username===_.pinner.username,b=v&&g&&_&&"extension"===_.method,{trafficSource:w,topLevelTrafficSource:S,topLevelTrafficSourceDepth:k,contextPinIds:A}=(0,x.Z)(t,c.isAuth);k>1&&"pin"!==w&&(0,te.nP)("p2p.traffic_source.client",{sampleRate:.1,tags:{trafficSource:w,topLevelTrafficSource:S,topLevelTrafficSourceDepth:k}});let C=(0,e1._)(t),D=(0,m.mB)(n.search);return(0,s.useEffect)(()=>{y!==_&&function({history:e,isBot:t,location:i,viewerId:n,viewerIsAuth:l}){!t&&n&&"undefined"!=typeof window&&(0,e4.U)(window.location,n,!1,l,t=>e.replace(t,i.state))}({history:i,isBot:r.isBot,location:n,viewerId:c.id||"",viewerIsAuth:c.isAuth}),y.current=_},[i,n,y,_,r.isBot,c.id,c.isAuth]),(0,s.useEffect)(()=>()=>{C&&null!=_&&_.id&&o(_.id,C)},[null==_?void 0:_.id,C,o]),(0,j.jsx)(P.Q,{value:{featuredCommentId:l.comment_id||""},children:(0,j.jsx)(eQ,{children:(0,j.jsx)(f,{pinId:l.id||"",pinResource:a,children:({isLandingPage:e,isLimitedLogin:n,didRepin:r,openInbox:o,pin:s,shouldShowInbox:m,updateExperienceForPlacement:g})=>{var y,v;return(0,j.jsx)(p,{contextPinIds:A,conversation_id:D.conversation_id,deepLinkBackGoesToBoard:b,didRepin:r,emailId:D.e_t,forceSendFeedback:D.fsf,goBack:function({boardUrl:e,currentHistoryStack:t,history:i,isFromExtension:n=!1,hasViewerPartner:l}){return()=>{if(!e3(t)&&!n){l?i.push("/homefeed/"):i.push("/");return}if(n&&1===t.length){i.push(null!=e?e:"");return}i.goBack()}}({boardUrl:null==_?void 0:null===(y=_.board)||void 0===y?void 0:y.url,currentHistoryStack:t,history:i,isFromExtension:!!b,hasViewerPartner:!!c.partner}),isLandingPage:e,isLimitedLogin:n,messageId:D.message,onLoginClick:e7,openInbox:o,pin:s,pinId:null!==(v=l.id)&&void 0!==v?v:"",pinDerivedData:ti(s),pinResource:a,routePush:i.push,searchQuery:C,senderId:D.sender,shouldShowInbox:m,showQuickPromote:d,showRepinOnInitialRender:u,topLevelTrafficSource:S,topLevelTrafficSourceDepth:k,trafficSource:w,updateExperienceForPlacement:g,viewer:c,...h})}})})})}function tl(e){var t;let{pinResource:i}=e,n=i.data,{aggregated_pin_data:l,ip_eligible_for_stela:a,is_hidden:r,is_unsafe:o}=n||{},{is_shop_the_look:s}=l||{},d=!!(n||{}).story_pin_data,u=null==n?void 0:null===(t=n.story_pin_data)||void 0===t?void 0:t.has_product_pins,p=(0,e$.Z)({isHiddenPin:r,isUnsafePin:o}),h=c.$y;return p&&s&&!d?h=c.f9:p&&u?h=c.z8:p&&!d&&a&&(h=c.Q2),(0,j.jsx)(tn,{...e,CloseupComponent:h})}function ta(e){let t=(0,d.useDispatch)(),i=(0,g.Z)(),n=(0,u.useParams)(),l=(0,h.aX)(),a={...e,history:(0,u.useHistory)(),location:(0,u.useLocation)(),params:n,requestContext:(0,_.B)(),searchPinCloseupViewed:(e,i)=>t((0,e5.Y4)(e,i)),viewer:i},{checkExperiment:r}=(0,e0.F)();return(0,j.jsx)(b.Z,{pinId:n.id||"",orbacSubjectId:(0,eI.lJ)(i,(0,eE.Z)()),children:({pinResource:e})=>{let t=e&&e.data;return t&&(0,eJ._J)(t.video_status)?(0,j.jsx)(eW,{pinKey:{type:"deprecated",data:t},...a}):(0,s.createElement)(tl,{...a,checkExperiment:r,currentHistoryStack:l,pinResource:e,key:n.id})}})}},258140:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(667294),l=i(883119),a=i(52722),r=i(71052),o=i(860507),s=i(186986),d=i(692627),u=i(276602),c=i(271040),p=i(785893);function h({taggedProducts:e,pin:t,pinResource:i,topLevelTrafficSource:h,didShortClickThrough:_,firstLoadComplete:m,viewportSize:g,renderNotifModulesContent:y,renderRelatedModulesContent:v,renderBodyContent:f,onWrapperClick:x,beforeBodyContent:b,afterBodyContent:P,isVideoPin:w}){var S,k,j;let A=(0,u.E)(),C=(0,o.Z)(),{error:D}=i,{image_signature:E,story_pin_data_id:I}=t||{},[T,F]=(0,n.useState)(!w);(0,n.useEffect)(()=>{let e=T?null:setTimeout(()=>F(!0),1e3);return()=>clearTimeout(e)},[T]);let z=!!t.story_pin_data_id&&!1===t.should_open_in_stream;if(Object.keys(t).length,D)return(0,p.jsx)(c.Z,{});let R=!!I&&!z,L=!t.is_promoted,M=T&&v(),Z=T&&y&&y(),B=((e||[]).filter(e=>(0,s.Z)(e))||[])[0],O=(0,d.Z)({hasPin:!!t,hasPinRichMetadata:!!(null!=t&&t.rich_metadata),hasPinRichMetadataProducts:!!(null!=t&&null!==(S=t.rich_metadata)&&void 0!==S&&S.products),hasPinRichMetadataArticle:!!(null!=t&&null!==(k=t.rich_metadata)&&void 0!==k&&k.article),hasPinRichMetadataRecipe:!!(null!=t&&null!==(j=t.rich_metadata)&&void 0!==j&&j.recipe),hasPinStoryPinData:!!(null!=t&&t.story_pin_data)});return(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)("div",{className:"Closeup Module","data-test-id":m?"closeup-data-loaded":"",onClick:e=>{R||x(e),A&&(null==A||A.abort("closefakemodal"))},role:"presentation",style:{cursor:"zoom-out",display:"flex",width:"100%"},children:(0,p.jsxs)(l.kC,{alignItems:"stretch",direction:"row",justifyContent:"center",width:"100%",children:[b,f(),P,_&&!L&&(0,p.jsx)(r.C,{})]})},"closeup-content"),(0,p.jsxs)(l.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[!C&&!R&&B&&"story"===B.type&&(0,p.jsx)(a.Z,{data:B,closeupImageSignature:E,pin:t,storyId:B.id,slotIndex:0,storyType:B.story_type,viewParameter:O,viewportSize:g,topLevelTrafficSource:h}),Z,M]})]})}},360961:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(898781),a=i(366428),r=i(785893);function o({storyId:e,slotIndex:t,storyType:i,title:o,viewParameter:s,clientTrackingParams:d}){let u=(0,l.ZP)(),c=o||u._('More like this', 'closeup.relatedPins.header', 'text that shows more pins when you scroll down to related pins from a closeup'),p=(0,a.Z)({clientTrackingParams:d,componentType:200,contextLogData:{story_id:e,story_type:i},impressionType:"Story",loggingId:e,slotIndex:t,viewParameter:s,viewType:3});return(0,r.jsxs)(n.xu,{ref:p,justifyContent:"center",alignItems:"center",display:"flex",color:"default",direction:"column",paddingX:8,paddingY:3,marginBottom:1,children:[(0,r.jsx)(n.xu,{column:12,smColumn:8,justifyContent:"center",alignContent:"center",flex:"grow",display:"flex",children:(0,r.jsx)(n.X6,{align:"center",size:"400",children:c})}),(0,r.jsx)(n.xu,{smColumn:2,display:"none",smDisplay:"block"})]})}},438799:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(616550),l=i(883119),a=i(407043),r=i(940589),o=i(595371),s=i(796668),d=i(883851),u=i(785893);let c=e=>{let t=e.split(",");return t.length>0?t[0]:""};function p({story:e}){let{logContextEvent:t}=(0,a.v)(),i=(0,n.useHistory)(),{custom_properties:p,objects:h,title:_}=e||{},{skin_tone_filter_list:m}=p||{},{options:g=[]}=m||{},{format:y}=_||{},[v]=h||[],{title:f}=v||{},{format:x=""}=f||{},b=e=>{t({event_type:101,component:13803,element:10418,view_type:3,aux_data:{entered_query:x,filter_type:"skin_tone",value:e}});let n=(0,r.Z)({query:x,rs:o.i.TYPED,scope:"pins",filters:e});i.push(n)};return(0,u.jsx)(l.xu,{marginTop:7,marginBottom:7,children:(0,u.jsxs)(l.kC,{alignItems:"center",direction:"column",gap:{row:0,column:3},children:[(0,u.jsx)(l.xv,{color:"default",overflow:"normal",weight:"bold",children:y}),(0,u.jsx)(l.kC,{flex:"none",gap:{row:1,column:0},children:g.map(({term:e},t)=>(0,u.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{padding:"0 2px"}},children:(0,u.jsx)(d.Z,{colors:s.W[t],isSelected:!1,onClick:()=>b(c(e))})},e))})]})})}},52722:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n=i(667294),l=i(702664),a=i(616550),r=i(883119),o=i(372169),s=i(368271),d=i(407043),u=i(356997),c=i(444445),p=i(558068),h=i(898781),_=i(564194),m=i(349700),g=i(773285),y=i(794230),v=i(19121),f=i(717615),x=i(231947),b=i(763917),P=i(96939),w=i(8742),S=i(316674),k=i(785893);let j={sm:{maxPins:2,maxWidth:"488px"},md:{maxPins:3,maxWidth:"741px"},lg:{maxPins:4,maxWidth:"976px"}};function A({closeupImageSignature:e,data:t,pin:A,slotIndex:C,storyId:D,storyType:E,topLevelTrafficSource:I,viewParameter:T,viewportSize:F}){var z,R,L,M;let Z,B;let{logContextEvent:O}=(0,d.v)(),[N,K]=(0,n.useState)(0),U=(0,h.ZP)(),H=(0,v.Z)(),V=(0,f.Z)(),{checkExperiment:G}=(0,g.F)(),W=(0,x.nl)(H,V)&&G("web_stl_tooling",{dangerouslySkipActivation:!0}).anyEnabled,$="enabled_full_width_story"===G("web_pdp_recommenders",{dangerouslySkipActivation:!0}).group;(0,n.useEffect)(()=>{let e=()=>{K(window.innerWidth)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)});let q=(0,p.aX)(),Y=(0,l.useDispatch)(),X=(0,a.useHistory)(),Q=W&&(null==A?void 0:null===(z=A.pinner)||void 0===z?void 0:z.username)&&(0,x.Ms)(H,V)===((null===(R=A.link_domain)||void 0===R?void 0:null===(L=R.official_user)||void 0===L?void 0:L.username)||(null===(M=A.native_creator)||void 0===M?void 0:M.username)),{action:J,content_ids:ee,objects:et,subtitle:ei,title:en}=t,{user:el,url:ea,text:er}=J||{},{full_name:eo,image_large_url:es,username:ed}=el||{},{format:eu=""}=ei||{},ec=j[F].maxPins,ep=ea,eh=(0,b._)(q);if(ep&&(I||eh)){let e={...I?{source:I}:Object.freeze({}),...eh?{search_query:eh}:{}};ep=(0,y.Z)(ep,e)}if("related_domain_carousel"===E?Z=13327:"shop_the_look_non_xy_coordinates"===E&&(Z=13474),"related_domain_carousel"===E){let e=eo||(null==en?void 0:en.format)||ed||"";B=(0,k.jsxs)(r.kC,{alignItems:"center",direction:"row",gap:{row:2,column:0},children:[es&&$&&ed&&(0,k.jsx)(r.zd,{rounding:"circle",wash:!0,children:(0,k.jsx)(r.Tg,{href:`/${ed}/`,children:(0,k.jsx)(u.qE,{size:"sm",src:es,name:e})})}),(0,m.nk)(U._('More from {{ merchant }}', 'domain.module.header', 'header for the domain module'),{merchant:(0,k.jsx)(r.xu,{display:"inlineBlock","data-test-id":"merchant-name",children:(0,k.jsx)(r.X6,{size:"400",children:e},e)},e)})]})}else if("shop_the_look_non_xy_coordinates"===E){let{format:e}=en||{};B=e}let e_=async()=>{let[{default:t},{setCloseupImageSignature:n,setPinBuilderEntryPoint:l}]=await Promise.all([i.e(13992).then(i.bind(i,513992)),i.e(38049).then(i.bind(i,474394))]);Y(t(A)),O({event_type:101,element:12080,view_type:3,view_parameter:T,aux_data:{image_signature:e,entry_point_source:"domain_module",...A?{pin_id:A.id}:{}}}),X.push({pathname:"/pin-builder/",state:{disableAddPinDraft:!0}}),Y(l("domain_module")),Y(n(e))},em=16+o.jh,eg=Math.floor(N/em)||j[F].maxPins,ey=$&&et?eg:ec,ev=et.filter(e=>(null==e?void 0:e.type)==="pin").length;return(0,k.jsx)(_.Z,{componentType:Z,contextLogData:{content_ids:(ee||[]).map(e=>`pin:${e}`).join("|"),story_id:D,story_type:E,image_signature:e},impressionType:"Story",loggingId:D,slotIndex:C,viewParameter:T,viewType:3,children:(0,k.jsxs)(r.xu,{"data-test-id":"related-domain-carousel",display:"flex",direction:"column",justifyContent:"center",alignSelf:"center",maxWidth:$?void 0:j[F].maxWidth,alignItems:"center",children:[B&&(0,k.jsx)(r.xu,{display:"inlineBlock",marginTop:10,children:(0,k.jsx)(r.X6,{size:"400",children:B})}),Q&&(0,k.jsx)(r.xu,{display:"flex",flex:"shrink",marginTop:4,children:(0,k.jsx)(s.Z,{entryPoint:"domain_module",imageSignature:e,onClick:()=>{e_()},pinId:null==A?void 0:A.id,viewParameter:T})}),!!eu&&(0,k.jsx)(r.xu,{marginTop:2,"data-test-id":"merchant-description",children:(0,k.jsx)(r.xv,{align:"center",children:eu})}),(0,k.jsx)(r.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:!!et&&et.map((e,t)=>{if(e&&"pin"===e.type&&t<ey+("shop_the_look_non_xy_coordinates"===E?0:1)){let i=$&&t===Math.min(ev,ey),n=(0,k.jsx)(w.ZP,{pin:e,pinId:e.id,authDesktopSurface:i?"ShoppingSquareGridDomainNoMetadata":"ShoppingSquareGridDomain",componentType:Z,duploQueryRef:null,slotIndex:t,viewData:{story_id:D,story_type:E},viewParameter:T,viewType:3});return(0,k.jsx)(r.xu,{marginEnd:t!==ey?2:void 0,marginTop:6,margin:o.iO,width:o.jh,children:$&&i&&ea?(0,k.jsx)(P.Z,{coverImages:e.images,height:c.yF,text:U._('See more', 'closeup.domainModule.seeMore', 'See more pins from this domain'),textType:"text",url:ea,width:c.yF},"actionBubble"):n},e.id)}return null})}),!!er&&!!ea&&ep&&!$&&(0,k.jsx)(r.xu,{marginTop:3,marginBottom:10,children:(0,k.jsx)(r.Tg,{href:ep,tabIndex:-1,children:(0,k.jsx)(r.zx,{fullWidth:!0,onClick:()=>{"related_domain_carousel"===E&&(O({component:13882,element:11829,event_type:101,object_id_str:null==A?void 0:A.id,view_type:3,view_parameter:T}),O({aux_data:{commerce_data:JSON.stringify({pin_show_pdp:A&&!!A.is_eligible_for_pdp})},component:13680,event_type:101,object_id_str:null==A?void 0:A.id,view_type:3,view_parameter:T}),S.Z.DomainModule.trackSeeMoreClick({viewParameter:T},O)),"shop_the_look_non_xy_coordinates"===E&&O({event_type:101,component:11967,view_type:3,view_parameter:T,aux_data:{commerce_data:JSON.stringify({pin_is_shop_the_look:!0})}})},text:er})})})]})})}},326595:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(883119),a=i(898781),r=i(785893);function o({bold:e=!0,color:t="darkGray",iconSize:i=16,textSize:o="200",timeString:s}){let d=(0,a.ZP)();return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(l.xu,{marginEnd:1,children:(0,r.jsx)(l.JO,{accessibilityLabel:d._('clock', 'accessible label for clock icon on recipe rich pin', 'accessible label for clock icon on recipe rich pin'),color:t,icon:"clock",size:i})}),(0,r.jsx)(l.xv,{color:t,size:o,weight:e?"bold":"normal",children:s})]})}},565212:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(667294),l=i(883119),a=i(288889),r=i(898781),o=i(854907),s=i(788645),d=i(785893);function u({isDarkMode:e,onPress:t,testID:i,label:n}){return(0,d.jsx)(l.xu,{display:"inlineBlock",dangerouslySetInlineStyle:{__style:{background:e?"black":"white"}},"data-test-id":i,children:(0,d.jsx)(l.iP,{fullWidth:!1,onTap:t,children:(0,d.jsxs)(l.xv,{size:a.n,weight:"bold",children:["\xa0...\xa0",n]})})})}function c({children:e,isDarkMode:t,descriptionDir:i}){let c=(0,n.useRef)(null),[p,h]=(0,n.useState)({isFirstLoad:!0,isTruncated:!1,showToggle:!1}),{isFirstLoad:_,isTruncated:m,showToggle:g}=p,y=(0,r.ZP)();return(0,n.useEffect)(()=>{if(_&&c.current){var e;let t=(0,o.xW)(c.current),i=(e=c.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth;h({isTruncated:i,isFirstLoad:!1,showToggle:t>=3&&i})}},[_,m]),(0,d.jsx)(l.xu,{position:"relative","data-test-id":"truncated-description",flex:"grow",children:(0,d.jsx)(s.Z,{dir:i,children:(0,d.jsxs)(l.xv,{size:a.n,ref:c,lineClamp:_||m?3:0,align:"ltr"===i?"forceLeft":void 0,children:[e,g?(0,d.jsx)(n.Fragment,{children:m?(0,d.jsx)(l.xu,{position:"absolute",bottom:!0,right:!0,children:(0,d.jsx)(u,{label:y._('more', 'storyPin.previewText.more', 'Story pin preview more text truncation'),onPress:()=>h({...p,isTruncated:!1}),testID:"more-description-container",isDarkMode:t})}):(0,d.jsx)(u,{label:y._('less', 'storyPin.previewText.less', 'Story pin preview less text truncation'),onPress:()=>h({...p,isTruncated:!0}),testID:"less-description-container",isDarkMode:t})}):null]})})})}},561886:(e,t,i)=>{"use strict";function n(e){return!!e&&e.replaceAll(" ","").length>0}i.d(t,{Z:()=>n})},575576:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(785893);let l={contentWrapper:{cursor:"auto"}},a=e=>{e.stopPropagation()};function r({className:e,children:t}){return(0,n.jsx)("div",{className:e,onClick:a,role:"presentation",style:l.contentWrapper,children:t})}},385646:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u,f:()=>s});var n=i(883119),l=i(898781),a=i(985913),r=i(785893);let o=e=>e.length>33?"...":"",s=e=>`${e.substring(0,33)}${o(e)}`,d=(e,t)=>(0,a.Z)(t._('Visit {{domain}}', 'Accessible label for clickthrough link button', 'Accessible label for clickthrough link button'),{domain:e}),u=({domain:e,fontSize:t="200",fullWidth:i=!0,textNode:a})=>{let o=(0,l.ZP)(),u=d(e,o);return(0,r.jsx)(n.xu,{"data-test-id":"link-icon-with-domain-styles-wrapper",color:"secondary",width:i?"100%":void 0,rounding:2,padding:2,children:(0,r.jsx)(n.st,{children:(0,r.jsxs)(n.xu,{"data-test-id":"link-icon-with-domain-styles",display:"flex",alignItems:"center",justifyContent:"start",padding:1,children:[(0,r.jsx)(n.xu,{paddingX:1,children:(0,r.jsx)(n.JO,{icon:"arrow-up-right",color:"default",inline:!0,accessibilityLabel:u,size:15})}),(0,r.jsx)(n.xu,{paddingX:1,children:a||(0,r.jsx)(n.xv,{inline:!0,size:t,weight:"bold",children:s(e)})})]})})})}},537313:(e,t,i)=>{"use strict";i.d(t,{Wp:()=>g,ZP:()=>x,kC:()=>v});var n,l=i(667294);i(422578);var a=i(883119),r=i(385646),o=i(722767),s=i(701500),d=i(916117),u=i(898781),c=i(287072),p=i(814197),h=i(977558),_=i(785893);let m=({children:e,isPulsarDisplayed:t,onCompleteClick:i,zIndex:n,onClick:r,to:o,pin:d,trackingParamsMap:u})=>{let p=(0,l.useRef)(null),h=(0,c.Z)({href:null!=o?o:"",target:"blank",externalData:{pin:d&&{attributionSourceId:d.attributionSourceId,board:d.board&&{url:d.board.url},campaignId:d.campaignId,entityId:d.entityId,isDownstreamPromotion:d.isDownstreamPromotion,isPromoted:d.isPromoted,pinner:d.pinner&&{username:d.pinner.username},pinPromotionId:d.pinPromotionId,promoter:d.promoter&&{entityId:d.promoter.entityId},storyPinDataId:d.storyPinDataId,trackingParams:d.trackingParams,trackingParamsMap:u,advertiserId:d.advertiserId}}});return(0,_.jsx)(s.Z,{anchor:".PinActionBar .website.pinActionBarButton, .linkModuleActionButton",anchorElementRef:p.current,isHidden:!t,onCompleteClick:i,zIndex:n,children:(0,_.jsx)(a.Tg,{fullWidth:!1,href:null!=o?o:"",onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),null==r||r(e),h({event:e})},ref:p,rel:"nofollow",children:(0,_.jsx)("div",{className:"linkModuleActionButton",children:e})})})},g=({carouselData:e,domain:t})=>{let i="",n=t||"";if(e){var l;let{carouselSlots:t=[]}=e,a=null!==(l=e.index)&&void 0!==l?l:0;t&&t[a]&&(i=t[a].link||"",n=t[a].domain||n)}return{carouselLink:i,currentDomain:n}},y=({actionBarHeight:e,children:t,setPulsarVisibility:i})=>(0,_.jsx)(o.Z,{onVisibilityChange:e=>{let t=e.slice(-1)[0];i(t.isIntersecting)},options:{rootMargin:`-${e+h.hu}px 0px 0px 0px`,threshold:.75},children:t}),v=e=>{var t,l,o,s,c,p,h,y,v,f,x;let b=(0,u.ZP)(),{children:P,isPulsarDisplayed:w,onClickThrough:S,pinKey:k,showDomainInLink:j,trackingParamsMap:A,zIndex:C}=e,{data:D}=(0,d.u)(void 0!==n?n:n=i(897840),k),E=!!D.link&&!D.link.startsWith("https://i.pinimg.com");if(!E)return null;let I=b._('Visit', 'Default pin link button text', 'Default pin link button text');!D.linkDomain||null!==(t=D.richMetadata)&&void 0!==t&&null!==(l=t.recipe)&&void 0!==l&&l.fromAggregatedData?I=D.link&&!D.link.startsWith("https://i.pinimg.com")?b._('Visit', 'Generalized pin link button text', 'Generalized pin link button text'):b._('Open', 'Button text for pin without link to view media', 'Button text for pin without link to view media'):null!==(o=D.richMetadata)&&void 0!==o&&o.products&&D.richMetadata.products.length>0?I=b._('Visit', 'Buyable pin link button text', 'Buyable pin link button text'):null!==(s=D.richMetadata)&&void 0!==s&&null!==(c=s.tutorial)&&void 0!==c&&c.name?I=b._('Visit', 'Make pin link button text', 'Make pin link button text'):null!==(p=D.richMetadata)&&void 0!==p&&null!==(h=p.recipe)&&void 0!==h&&h.name?I=b._('Make it', 'Recipe pin link button text', 'Recipe pin link button text'):null!==(y=D.richMetadata)&&void 0!==y&&null!==(v=y.article)&&void 0!==v&&v.name?I=b._('Read it', 'Article pin link button text', 'Article pin link button text'):D.link&&D.link.startsWith("https://i.pinimg.com")&&(I=b._('Open', 'Button text for pin without link to view media', 'Button text for pin without link to view media'));let{carouselLink:T,currentDomain:F}=g({carouselData:D.carouselData&&{carouselSlots:D.carouselData.carouselSlots&&D.carouselData.carouselSlots.map(e=>({domain:e.domain,link:e.link})),index:null===(f=D.carouselData)||void 0===f?void 0:f.index},domain:D.domain});return(0,_.jsx)(m,{onClick:S,to:T||D.link||(null===(x=D.imageSpec_orig)||void 0===x?void 0:x.url)||"",onCompleteClick:S,isPulsarDisplayed:w,zIndex:C,pin:D,trackingParamsMap:A,children:P||(j?(0,_.jsx)(r.Z,{domain:F}):(0,_.jsx)(a.zx,{fullWidth:!0,text:I,size:"md"}))})},f=({actionBarHeight:e,...t})=>{let[i,n]=(0,l.useState)(!0);return(0,_.jsx)(a.xu,{width:"100%",children:(0,_.jsx)(y,{actionBarHeight:e||0,setPulsarVisibility:n,children:(0,_.jsx)(a.xu,{display:"inlineBlock",children:(0,_.jsx)(v,{isPulsarDisplayed:i,zIndex:p.qW,...t})})})})},x=e=>(0,_.jsx)(a.kC,{alignItems:"center",justifyContent:"start",children:(0,_.jsx)(a.xu,{children:(0,_.jsx)(f,{...e})})})},709717:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(667294),l=i(668627),a=i(407043),r=i(692627),o=i(276602),s=i(784590),d=i(999018),u=i(50286),c=i(19121),p=i(387957);let h=({segment:e})=>{var t;return null!==(t=p.GL.get(e))&&void 0!==t?t:new Set},_=({segment:e})=>{let t=h({segment:e});return new Set([...p.hO].filter(e=>!t.has(e)))},m=()=>{let e=(0,u.HG)(),{isAuth:t}=(0,c.Z)(),i=t&&e,n=(0,o.E)();return n?e=>{"DEFAULT"!==e&&n.setSegment(e),i&&_({segment:e}).forEach(e=>{n.removeConstraint(e)})}:null};function g(e){let{logContextEvent:t}=(0,a.v)(),i=(0,o.E)(),u=m(),c=(0,s.Z)({name:"PinResource",options:(0,l.Z)(e.pinId,e.orbacSubjectId,e.addFields)}),p=c.data,h=(0,d.Z)(null!=p?{type:"deprecated",data:p}:null);return(0,n.useEffect)(()=>{if(p){var e,n,l;let a=(0,r.Z)({hasPin:!!p,hasPinRichMetadata:!!p.rich_metadata,hasPinRichMetadataProducts:!!(null!==(e=p.rich_metadata)&&void 0!==e&&e.products),hasPinRichMetadataArticle:!!(null!==(n=p.rich_metadata)&&void 0!==n&&n.article),hasPinRichMetadataRecipe:!!(null!==(l=p.rich_metadata)&&void 0!==l&&l.recipe),hasPinStoryPinData:!!p.story_pin_data});t({event_type:7408,view_parameter:a,object_id_str:p.id,view_type:3,view_data:{pin_id:p.id,closeup_rich_types:p.shopping_flags||[]},aux_data:{...h()}}),p.aggregated_pin_data&&(p.aggregated_pin_data.is_shop_the_look||p.aggregated_pin_data.is_stela)&&t({event_type:7579,view_parameter:a,object_id_str:p.id,view_type:3,aux_data:{commerce_data:JSON.stringify({pin_is_shop_the_look:p.aggregated_pin_data.is_shop_the_look,pin_is_stela:p.aggregated_pin_data.is_stela})}}),i&&i.markConstraintComplete("resource"),u&&u(p.is_eligible_for_pdp?p.is_eligible_for_pdp_plus?"product_detail_page_plus":"product_detail_page":p.story_pin_data_id?"story_pin":"DEFAULT")}},[p,h]),e.children({pinResource:c})}},319247:(e,t,i)=>{"use strict";function n(e,t){switch(t.type){case"gallerySelect":return{shopping:t.select};case"pinLoaded":{let i=e.myTry?{}:{myTry:{isDoneByMe:t.pin.done_by_me}};return{pin:t.pin,...i,firstLoadComplete:!0}}case"tryChange":return{myTry:{isDoneByMe:t.isDoneByMe}};default:throw"impossible"}}i.d(t,{Z:()=>n})},71052:(e,t,i)=>{"use strict";i.d(t,{C:()=>h});var n=i(667294),l=i(883119),a=i(898781),r=i(92261),o=i(814197),s=i(977558),d=i(785893);function u(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let c=s.hu+r.Ie+76;class p extends n.Component{constructor(...e){super(...e),u(this,"state",{showRelatedPinsUpsellFlyout:!1}),u(this,"componentDidMount",()=>{this.handleDidShortClickThrough(),window.addEventListener("scroll",this.hideFlyout)}),u(this,"componentWillUnmount",()=>{window.removeEventListener("scroll",this.hideFlyout)}),u(this,"hideFlyout",()=>{this.setState({showRelatedPinsUpsellFlyout:!1})}),u(this,"handleDidShortClickThrough",()=>{this.scrollToAnchor(),window.setTimeout(()=>{this.setState({showRelatedPinsUpsellFlyout:!0})},100)}),u(this,"scrollToAnchor",()=>{this.anchorRef&&(this.anchorRef.scrollIntoView(!0),window.scrollBy(0,-c))}),u(this,"setAnchorRef",e=>{this.anchorRef=e}),u(this,"render",()=>(0,d.jsx)(l.xu,{ref:this.setAnchorRef,children:this.state.showRelatedPinsUpsellFlyout&&(0,d.jsx)(l.xu,{zIndex:new l.Ry(o.lJ),position:"absolute",top:!0,column:12,children:(0,d.jsx)(l.Li,{anchor:this.anchorRef,idealDirection:"up",onDismiss:this.hideFlyout,message:this.props.i18n._('Not into this Pin? See more ideas below', 'Shows in a flyout message to upsell related pins to users', 'Shows in a flyout message to upsell related pins to users')})})}))}}let h=function(e){let t=(0,a.ZP)();return(0,d.jsx)(p,{...e,i18n:t})}},280348:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(667294),l=i(883119),a=i(238464),r=i(407043),o=i(898781),s=i(428258),d=i(785893);class u extends n.PureComponent{constructor(...e){var t,i,n;super(...e),t="startAudiblePlayTime",i=this.props.muted?null:new Date,(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in this?Object.defineProperty(this,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[t]=i}componentDidUpdate(e){e.muted!==this.props.muted&&(this.startAudiblePlayTime=this.props.muted?null:new Date)}componentWillUnmount(){let{musicRecordingId:e,muted:t,pinId:i,video:n}=this.props;if(e&&!t&&this.startAudiblePlayTime){let t=new Date-this.startAudiblePlayTime;if(t>=2e3){var l,a,r,o,d,u,c;let{hlsv3:t,mp4:p}=(0,s.ZP)({vEXP3:null===(l=n.video_list)||void 0===l?void 0:l.V_EXP3,vEXP4:null===(a=n.video_list)||void 0===a?void 0:a.V_EXP4,vEXP5:null===(r=n.video_list)||void 0===r?void 0:r.V_EXP5,vEXP6:null===(o=n.video_list)||void 0===o?void 0:o.V_EXP6,vEXP7:null===(d=n.video_list)||void 0===d?void 0:d.V_EXP7,v720P:null===(u=n.video_list)||void 0===u?void 0:u.V_720P,vHLSV3MOBILE:null===(c=n.video_list)||void 0===c?void 0:c.V_HLSV3_MOBILE})||{},h=p||t,_=(null==h?void 0:h.duration)||0;this.props.logContextEvent({event_type:8999,object_id_str:e,aux_data:{pin_id:i,story_pin_music_duration:_}})}}}render(){var e,t,i,n,r,o,u,c;let{activePageIndex:p,blockHeight:h,blockWidth:_,closeupStoryPinViewability:m,customEndCard:g,isPlaying:y,muted:v,onEnded:f,onUpdateVideoInfo:x,pageIndex:b,pinId:P,roundCorners:w=!0,video:S,videoThumbnailStartTime:k}=this.props,{hlsv3:j,mp4:A}=null!==(e=(0,s.ZP)({vEXP3:null===(t=S.video_list)||void 0===t?void 0:t.V_EXP3,vEXP4:null===(i=S.video_list)||void 0===i?void 0:i.V_EXP4,vEXP5:null===(n=S.video_list)||void 0===n?void 0:n.V_EXP5,vEXP6:null===(r=S.video_list)||void 0===r?void 0:r.V_EXP6,vEXP7:null===(o=S.video_list)||void 0===o?void 0:o.V_EXP7,v720P:null===(u=S.video_list)||void 0===u?void 0:u.V_720P,vHLSV3MOBILE:null===(c=S.video_list)||void 0===c?void 0:c.V_HLSV3_MOBILE}))&&void 0!==e?e:{},C=A||j;if(!C)return null;let{height:D,thumbnail:E,width:I}=C,T=(null!=I?I:1)/(null!=D?D:1),F={height:"100%",left:"0",top:"0",width:"100%"},z=_/h;if(Math.abs(z-T)>.01){if(z<T){let e=100*T/z;F.width=`${e}%`,F.left=`-${(e-100)/2}%`}else if(z>T){let e=100*z/T;F.height=`${e}%`,F.top=`-${(e-100)/2}%`}}let R="number"==typeof p&&b<=p+3;return(0,d.jsx)(l.xu,{height:h,overflow:"hidden",position:"relative",width:_,children:(0,d.jsx)(l.xu,{height:"100%",position:"absolute",width:"100%",children:R||y||k?(0,d.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:F},position:"absolute",children:(0,d.jsx)(a.Z,{loop:!1,autoplay:y,closeupStoryPinViewability:m,contextLogData:{component:0===b?227:228,element:10957,objectId:P,story_pin_page_id:b,view:3,viewParameter:157},customThumbnail:E,customEndCard:g,isPromoted:!1,muted:v,pinId:P,showControls:"never",variant:"storyPin",preferMp4:!!A,objectFit:A?"cover":void 0,roundingOverride:w?null:0,video:{id:S.id,hlsv3:j,mp4:A},onTimeChange:({time:e})=>{if(x&&"number"==typeof C.duration&&C.duration>0){let t=C.duration/1e3;x({currentTime:e,duration:t})}},onEnded:()=>{f&&f(b)},videoThumbnailStartTime:k})}):(0,d.jsx)(l.Ee,{alt:this.props.i18n._('Video cover image', 'closeup.storyPin.videoCover', 'cover image displayed for a video'),fit:"cover",naturalHeight:null!=D?D:1,naturalWidth:null!=I?I:1,src:null!=E?E:""})})})}}function c(e){let{logContextEvent:t}=(0,r.v)(),i=(0,o.ZP)();return(0,d.jsx)(u,{...e,i18n:i,logContextEvent:t})}},386352:(e,t,i)=>{"use strict";i.d(t,{_B:()=>U,Xw:()=>H,tD:()=>V,ZP:()=>q}),i(167912);var n,l,a=i(883119),r=i(616550),o=i(407043),s=i(784590),d=i(252417),u=i(785893);let c=({block:{block_style:{height:e=0,width:t=0,x_coord:i=0,y_coord:n=0,rotation:l=0}={},original_comment_id:c},pageAspectRatio:p,scaleFactor:h})=>{let{logContextEvent:_}=(0,o.v)(),m=U/p,g=(0,r.useHistory)(),{data:y}=(0,s.Z)({name:"AggregatedCommentResource",options:{commentId:c,field_set_key:"comment_reply_sticker"}});return(0,u.jsx)(a.xu,{display:"flex",dangerouslySetInlineStyle:{__style:{left:i*U*h/100,top:n*m*h/100,transform:`rotate(${l}deg)`}},height:e*m*h/100,position:"absolute",width:t*U*h/100,rounding:2,zIndex:d.B5,padding:1,margin:-1,children:(0,u.jsx)(a.iP,{onTap:()=>{_({event_type:102,view_type:1,component:227,element:12541,aux_data:{comment_id:c}}),null!=y&&y.pin_id&&g.push(`/pin/${y.pin_id}/comments/${c||""}`)},rounding:"pill"})})};var p=i(523657),h=i(902355);function _({src:e,fallbackSrc:t,...i}){let n=(0,h.Z)(e);return(0,u.jsx)(p.Z,{...i,src:n?e:t})}var m=i(702664);function g({isUseCache:e,signature:t}){return(0,m.useSelector)(({pinbuilder:i})=>{let{storyPinItemBlocks:n}=i;if(!e)return null;for(let e of Object.keys(n)){var l,a;if((null===(l=n[e].media)||void 0===l?void 0:l.signatureEdited)===t||(null===(a=n[e].media)||void 0===a?void 0:a.signature)===t)return n[e]}return null})}var y=i(667294),v=i(964569),f=i(237056),x=i(121151),b=i(898781),P=i(664569);let w=({aggregatedCommentId:e,onDismiss:t})=>{let i=(0,b.ZP)(),n=(0,f.Z)(),l=(0,v.Z)(),[r,o]=(0,y.useState)(""),s=(0,u.jsx)(a.kC,{justifyContent:"end",children:(0,u.jsx)(a.zx,{color:"red",disabled:!r,onClick:()=>{(async()=>{await l({fromUnifiedComment:!0,objectType:P.o.aggregatedComment,objectId:e,tags:"[]",text:r})})(),t()},text:i._('Post', 'ideapin.questionsticker.replymodal.postbutton', 'Post reply to creator Q&A question')})});return(0,u.jsx)(x.ZP,{accessibilityModalLabel:"reply to creator Q and A question",align:"start",footer:s,heading:i._('Reply', 'ideapin.questionsticker.replymodal', 'Reply to creator Q&A question'),onDismiss:t,children:(0,u.jsx)(a.xu,{paddingX:8,paddingY:1,children:(0,u.jsx)(a.Kx,{id:"ideaPinQuestionStickerReplyModalTextArea",onChange:({value:e})=>{o(e)},placeholder:n?i._('Your reply will show up as a public comment on this Pin.', 'pin.questionsticker.replymodal.placeholder', 'Placeholder for creator Q&A reply textarea'):i._('Your reply will show up as a public comment on this Idea Pin.', 'ideapin.questionsticker.replymodal.placeholder', 'Placeholder for creator Q&A reply textarea'),value:r})})})};var S=i(356997),k=i(916117),j=i(349700),A=i(773285),C=i(224496),D=i(148028);let E=void 0!==n?n:n=i(884884);function I({block:e,elementType:t,onFlyoutOpen:i,pageAspectRatio:n,pageIndex:l,pinKey:c,scaleFactor:p,tooltipElementType:h,videoPinProgress:_}){var m;let{logContextEvent:g}=(0,o.v)(),[v,f]=(0,y.useState)(!1),[x,P]=(0,y.useState)(!1),I=(0,y.useRef)(null),T=(0,r.useHistory)(),F=(0,b.ZP)(),{data:z}=(0,k.u)(E,c),{checkExperiment:R}=(0,A.F)(),{block_style:{height:L=0,width:M=0,x_coord:Z=0,y_coord:B=0,rotation:O=0}={},end_time:N,error_message:K,interactive_sticker_type:G=null,is_removed:W,is_valid:$,start_time:q,sticker_data:Y,type:X}=e,Q=null==z?void 0:z.entityId,{board_id:J,question_comment_id:ee}=Y||{},{image_small_url:et,full_name:ei,username:en=""}=null!==(m=e.user)&&void 0!==m?m:{},el=null,ea=$&&5===G&&!!J,er=$&&7===G&&!!ee,eo=(0,s.Z)(J&&ea?{name:"BoardResource",options:{field_set_key:"tagged_board_preview",board_id:J}}:null),{is_collaborative:es,pin_count:ed,url:eu}=eo.data||{};X===C.h8.PRODUCT_STICKER?el=Q?`/pin/${Q}/`:"/":X===C.h8.MENTION_STICKER?el=`/${en}/`:ea&&(el=eo.isLoaded?`${eu}`:null);let ec=U/n,{currentTime:ep}=_||{},eh=!(0,D.Z)({currentTime:ep,endTime:N,startTime:q}),e_=()=>{g({event_type:123,component:228,element:h,view_type:3,view_parameter:157,aux_data:{story_pin_page_id:l}}),f(!1)},em=({event:e})=>{g({event_type:120,component:228,element:h,view_type:3,view_parameter:157,aux_data:{error_message:!$&&K?K:null,story_pin_page_id:l}}),f(!0),i&&(e.stopPropagation(),i())};(0,y.useEffect)(()=>(document.addEventListener("scroll",()=>{f(!1)}),()=>document.removeEventListener("scroll",()=>{f(!1)})),[]);let eg=()=>[5].includes(G)?$?eo.isLoaded?(0,u.jsxs)(y.Fragment,{children:[(0,u.jsxs)(a.xu,{flex:"grow",paddingX:2,children:[(0,u.jsx)(a.xv,{weight:"bold",size:"100",lineClamp:1,children:es?F._('Explore this group board', 'closeup.StoryPin.stickerBlock.boardSticker.clickLabel', 'Label explaining click action when group board tag flyout showing'):F._('Explore this board', 'closeup.StoryPin.stickerBlock.boardSticker.clickLabel', 'Label explaining click action when board tag flyout showing')}),(0,u.jsx)(a.xv,{size:"100",children:(!!ed||0===ed)&&(0,j.nk)(F.ngettext('{{ pinCount }} Pin', '{{ pinCount }} Pins', ed, 'closeup.StoryPin.stickerBlock.boardSticker.boardLabel', 'Caption when board tag flyout that showing number of Pins on board'),{pinCount:ed})})]}),(0,u.jsx)(a.xu,{flex:"none",children:(0,u.jsx)(a.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]}):(0,u.jsxs)(a.xu,{alignItems:"center",direction:"row",display:"flex",flex:"grow",paddingY:2,children:[(0,u.jsx)(a.xu,{marginEnd:1,paddingX:2,children:(0,u.jsx)(a.xv,{color:"subtle",size:"100",lineClamp:1,children:F._('Loading board...', 'closeup.StoryPin.stickerBlock.boardSticker.loadingText', 'Label explaining board sticker still loading')})}),(0,u.jsx)(a.$j,{accessibilityLabel:F._('Board is loading', 'closeup.StoryPin.stickerBlock.boardSticker.loadingSpinnerText', 'Accessibility label for board loading spinner'),size:"sm",show:!0})]}):(0,u.jsx)(a.xu,{paddingX:2,paddingY:2,children:(0,u.jsx)(a.xv,{color:"subtle",lineClamp:1,size:"200",weight:"bold",children:K})}):(0,u.jsx)(a.xu,{paddingX:2,paddingY:2,children:(0,u.jsx)(a.xv,{color:"subtle",lineClamp:1,size:"200",weight:"bold",children:F._('Sticker not supported yet', 'closeup.StoryPin.stickerBlock.genericStickerError', 'Label explaining this sticker has not been implemented yet')})}),ey=()=>{let e=null;switch(X){case C.h8.PRODUCT_STICKER:let{gridTitle:t,imageSpec_236x:i,richSummary:n,description:l}=z||{},{displayName:r,products:o}=n||{},s=((o||[])[0]||{}).offerSummary||{},{price:d,maxPrice:c}=s||{},p=r||t||l;e=(0,u.jsxs)(y.Fragment,{children:[(0,u.jsx)(a.xu,{flex:"none",children:(0,u.jsx)(a.zd,{wash:!0,height:40,width:40,rounding:3,children:(0,u.jsx)(a.Ee,{alt:"",color:"lightGray",fit:"cover",naturalHeight:1,naturalWidth:1,src:(null==i?void 0:i.url)||""})})}),(0,u.jsx)(a.xu,{flex:"grow",paddingX:2,children:s&&(d||c)?(0,u.jsxs)(a.kC,{alignContent:"center",alignItems:"stretch",direction:"column",flex:"grow",justifyContent:"center",children:[(0,u.jsx)(a.xv,{size:"100",lineClamp:1,weight:"bold",color:"shopping",children:d}),(0,u.jsx)(a.xv,{size:"100",lineClamp:1,children:p})]}):(0,u.jsx)(a.xv,{size:"100",lineClamp:1,children:p})}),(0,u.jsx)(a.xu,{flex:"none",children:(0,u.jsx)(a.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]});break;case C.h8.MENTION_STICKER:e=(0,u.jsxs)(y.Fragment,{children:[(0,u.jsx)(a.xu,{flex:"none",children:(0,u.jsx)(S.qE,{size:"sm",name:null!=ei?ei:"",src:null!=et?et:void 0})}),(0,u.jsx)(a.xu,{flex:"grow",paddingX:2,children:(0,u.jsx)(a.xv,{weight:"bold",size:"200",lineClamp:1,children:ei})}),(0,u.jsx)(a.xu,{flex:"none",children:(0,u.jsx)(a.Sj,{iconColor:"darkGray",bgColor:"transparent",size:"xs",icon:"arrow-forward"})})]});break;case C.h8.GENERIC_STICKER:e=eg();break;case C.h8.VTO_MAKEUP_STICKER:e=(0,u.jsx)(a.xv,{weight:"bold",size:"300",children:F._('Try this sticker on your phone!', 'closeup.storyPin.vtoMakeupSticker', 'Caption when @vitural-try-on-makeup tag is tapped for Web')})}return(0,u.jsx)(a.xu,{alignItems:"center","data-test-id":X,display:"flex",justifyContent:"center",padding:X===C.h8.PRODUCT_STICKER?1:3,width:"100%",children:W?(0,u.jsx)(a.xv,{color:"subtle",weight:"bold",size:"200",children:F._('Tag removed!', 'closeup.storyPin.stickerBlock', 'Caption when the tag is removed')}):e})};return(0,u.jsx)(y.Fragment,{children:eh?null:(0,u.jsxs)(a.xu,{dangerouslySetInlineStyle:{__style:{left:Z*U*p/100,top:B*ec*p/100,transform:`rotate(${O}deg)`}},"data-test-id":(X||"")+"_container",display:"flex",height:L*ec*p/100+2*H,margin:-1,padding:1,position:"absolute",ref:I,rounding:2,width:M*U*p/100+2*H,zIndex:d.B5,children:[(0,u.jsx)(a.iP,{onTap:v?e_:({event:e})=>{!eh&&(g({event_type:101,component:228,element:t,view_type:3,view_parameter:157,aux_data:{story_pin_page_id:l}}),er?R("web_question_sticker_display").anyEnabled&&P(!0):em({event:e}))},rounding:"pill",disabled:eh}),v&&(0,u.jsx)(a.mh,{zIndex:V,children:(0,u.jsx)(a.J2,{anchor:I.current,idealDirection:"up",onDismiss:e_,positionRelativeToAnchor:!1,_deprecatedShowCaret:!0,size:W?"flexible":"sm",children:W?ey():(0,u.jsx)(a.iP,{onTap:({event:e})=>{e.preventDefault(),W||(g({event_type:101,component:228,element:h,object_id_str:Q,view_type:3,view_parameter:157,aux_data:{story_pin_page_id:l}}),el?T.push(el):e_())},fullWidth:!0,children:ey()})})}),!!ee&&x&&(0,u.jsx)(w,{aggregatedCommentId:ee,onDismiss:()=>{P(!1)}})]})})}var T=i(775151),F=i(296342),z=i(854907),R=i(829084);function L({block:e,fontsLoaded:t,pageAspectRatio:i,scaleFactor:n,thumbnail:l}){let{block_style:r,style:o=C.Cc,text:s}=e,{alignment:d,font:c,font_size:p,highlight_color:h,vertical_alignment:_=C.Cc.vertical_alignment}=o,{hex_color:m=C.Cc.hex_color}=null!=o?o:{},[g,v]=(0,y.useState)(0),[f,x]=(0,y.useState)([]),b=c||C.Cc.font,{name:P,default_size:w,letter_spacing:S,line_height:k}=b,j=(0,R.Z)(b),A=Math.round(100*((null==r?void 0:r.width)||100))/1e4,D=Math.round(100*((null==r?void 0:r.height)||100))/1e4,E=Math.round(100*((null==r?void 0:r.x_coord)||0))/1e4,I=Math.round(100*((null==r?void 0:r.y_coord)||0))/1e4;(0,y.useEffect)(()=>{if(t){let e=(0,z.KV)({text:s,boxHeight:F.U*D,boxWidth:F.q8*A,font:j,startFontSize:Math.floor(p||w||24)});x(e.lines),v(e.fontSize)}},[t,s]);let L=g*n,M=h?(0,C.pE)(L,k):{x:0,y:0},Z=A*F.q8*n+2*M.x,B=D*F.U*n+2*M.y,O=E*F.q8*n-M.x,N=l?`${100*I}%`:I*(F.q8/i)*n-M.y;return(0,u.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{left:O,top:N}},display:"flex",height:B,position:"absolute",width:Z,children:(0,u.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:(0,T.RK)({alignment:d,verticalAlignment:_})},children:(0,u.jsx)(a.xu,{display:"inlineBlock",maxWidth:"100%",children:(0,u.jsx)("p",{style:(0,T.BN)({fontSize:L,hexColor:m,letterSpacing:S,lineHeight:k,name:P}),children:f.map((e,t)=>(0,u.jsx)("span",{style:(0,T.xm)({fontSize:L,hasText:e.text.length>0,highlightColor:h||null,lineHeight:k}),children:t===f.length-1?e.text:(0,u.jsxs)(y.Fragment,{children:[e.text," ",(0,u.jsx)("br",{})]})},`paragraphLine-${t}-${(null!=s?s:"").substr(0,9)}`))})})})})}var M=i(280348),Z=i(19121);function B({ownerId:e}){let t=(0,b.ZP)(),i=(0,Z.Z)(),n=i.isAuth&&i.id===e;return(0,u.jsxs)(a.xu,{alignItems:"center",color:"tertiary",direction:"column",display:"flex",height:"100%",justifyContent:"center",width:"100%",children:[(0,u.jsx)(a.xv,{color:"inverse",children:n?t._('Your video is processing!', 'closeup.storyPin.videoPlaceholder', 'Let user know that their video is still processing'):t._('This video is still processing!', 'closeup.storyPin.videoPlaceholder', 'Let user know that this video is still processing')}),(0,u.jsx)(a.xv,{color:"inverse",children:t._('Check back in a few minutes.', 'closeup.storyPin.videoPlaceholder', 'Let user know to come back in a couple of minutes to view the video')})]})}var O=i(276602),N=i(47168),K=i(387957);let U=375,H=4,V=new a.Ry(3);function G({block:e,isActive:t,pwtTrackImageLoad:i,thumbnail:n}){var l,a,r,o,s,d,c,h,m,y,v,f;let x=(0,b.ZP)(),P=(null===(l=e.image)||void 0===l?void 0:null===(a=l.images)||void 0===a?void 0:a["750x"])||(null===(r=e.image)||void 0===r?void 0:null===(o=r.images)||void 0===o?void 0:o["474x"]),w=g({isUseCache:!0,signature:e.image_signature});if(!P&&!w)return null;let S=n?"cover":"none";return w?(0,u.jsx)(_,{alt:x._('Story pin image', 'closeup.storypin.renderer', 'Alt text for story pin image'),fallbackSrc:null!==(s=null===(d=w.media)||void 0===d?void 0:d.src)&&void 0!==s?s:"",isActive:t,naturalHeight:null!==(c=null==P?void 0:P.height)&&void 0!==c?c:1,naturalWidth:null!==(h=null==P?void 0:P.width)&&void 0!==h?h:1,src:null!==(m=null==P?void 0:P.url)&&void 0!==m?m:"",onLoad:i,fit:S}):(0,u.jsx)(p.Z,{alt:x._('Story pin image', 'closeup.storypin.renderer', 'Alt text for story pin image'),isActive:t,naturalHeight:null!==(y=null==P?void 0:P.height)&&void 0!==y?y:1,naturalWidth:null!==(v=null==P?void 0:P.width)&&void 0!==v?v:1,src:null!==(f=null==P?void 0:P.url)&&void 0!==f?f:"",onLoad:i,fit:S})}function W({activePageIndex:e,block:t,closeupStoryPinViewability:i,customEndCard:n,isActive:l,isSplitLayout:r=!1,musicRecordingId:o,muted:s,onEnded:d,onUpdateVideoInfo:c,ownerId:p,pageAspectRatio:h,pageDimensions:_,pageIndex:m,pinId:y,scaleFactor:v,stillLoading:f,videoThumbnailStartTime:x,thumbnail:b=!1}){var P,w;let{block_style:{height:S=100,width:k=100,x_coord:j=0,y_coord:A=0}={},video:C}=t,D=U/h,{height:E,width:I}=_,T=k*U*v/100,F=S*D*v/100,z=k<100?Math.min(Math.max(100,k)-Math.abs(j),k):Math.min(Math.max(k-Math.abs(j),0),100),R=S<100?Math.min(Math.max(100,S)-Math.abs(A),S):Math.min(Math.max(S-Math.abs(A),0),100),L=R*D*v/100,Z=z*U*v/100,O=Math.max(A,0)*D*v/100,N=Math.max(j,0)*U*v/100,K=g({isUseCache:!C,signature:t.video_signature});if(f)return null;let{media:H}=K||{},{duration:V,src:G}=H||{},W=!!G&&!!V;if(!C&&!W)return(0,u.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{left:N,top:O}},height:L,position:"absolute",width:Z,children:(0,u.jsx)(B,{ownerId:p})});let $=(null==C?void 0:null===(P=C.video_list)||void 0===P?void 0:P.V_HLSV3_MOBILE)||(null==C?void 0:null===(w=C.video_list)||void 0===w?void 0:w.V_720P)||W;return!!$&&(0,u.jsx)(a.xu,{height:r?"50%":"100%",overflow:"hidden",position:"relative",children:(0,u.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{left:N,top:O}},height:b?E:L,overflow:"hidden",position:"absolute",width:b?I:Z,children:(0,u.jsx)(M.Z,{activePageIndex:e,blockHeight:b?E:F,blockWidth:b?I:T,closeupStoryPinViewability:i,customEndCard:n,isPlaying:l,musicRecordingId:o,muted:s,onEnded:d,onUpdateVideoInfo:c,pageIndex:m,pinId:y,roundCorners:F>=E&&T>=I,video:C||{video_list:{V_EXP7:{duration:V?1e3*V:0,url:G}}},videoThumbnailStartTime:x})})})}let $=void 0!==l?l:l=i(360980);function q({activePageIndex:e,block:t,closeupStoryPinViewability:i,customEndCard:n,disableProductStickers:l,fontsLoaded:r,isActive:o,isSplitLayout:s=!1,musicRecordingId:d,muteVideos:p,onEnded:h,onFlyoutOpen:_,onImageLoaded:m,onUpdateVideoInfo:g,ownerId:y,pageAspectRatio:v,pageHeight:f,pageIndex:x,pageWidth:b,pinId:P,previewOnly:w,pinKey:S,stillLoading:j=!1,thumbnail:A=!1,transform:D,videoPinProgress:E,videoThumbnailStartTime:T}){let{data:F}=(0,k.u)($,S),{block_style:{height:z=100,width:R=100,x_coord:M=0,y_coord:Z=0}={},interactive_sticker_type:B=null}=t,H=(0,N.g)(),V=(0,O.E)();if(0===z||0===R)return null;let q=b/U;switch(t.type){case C.h8.PARAGRAPH:case C.h8.HEADING:return(0,u.jsx)(L,{block:t,fontsLoaded:r,scaleFactor:q,pageAspectRatio:v,thumbnail:A});case C.h8.VIDEO:return(0,u.jsx)(W,{activePageIndex:e,block:t,closeupStoryPinViewability:i,customEndCard:n,isActive:o,isSplitLayout:s,musicRecordingId:d,muted:p,onEnded:h,onUpdateVideoInfo:g,ownerId:y,pageAspectRatio:v,pageDimensions:{height:f,width:b},pageIndex:x,pinId:P,scaleFactor:q,stillLoading:j,videoThumbnailStartTime:T,thumbnail:A});case C.h8.IMAGE:let{scaleX:Y=1,scaleY:X=1}=D||{};return(0,u.jsx)(a.xu,{overflow:"hidden",position:"absolute",dangerouslySetInlineStyle:{__style:{height:`${z}%`,left:`${M*Y}%`,top:`${Z*X}%`,width:`${R}%`}},children:(0,u.jsx)(G,{block:t,isActive:o,pwtTrackImageLoad:()=>{H&&o&&(H.addBinaryAnnotation("pin.id",P,"STRING"),H.addBinaryAnnotation("video",!1,"BOOL"),H.stop()),V&&o&&(V.addBinaryAnnotation("pin.id",P,"STRING"),V.addBinaryAnnotation("video",!1,"BOOL"),V.removeConstraint(K._z),V.markConstraintComplete(K.pM)),m&&m()},thumbnail:A})});case C.h8.MENTION_STICKER:return!w&&(0,u.jsx)(I,{block:{...t},elementType:12120,onFlyoutOpen:_,pageAspectRatio:v,pageIndex:x,scaleFactor:q,tooltipElementType:12121,videoPinProgress:E,pinKey:null});case C.h8.GENERIC_STICKER:return!w&&(e=>{let t=5===B;return(0,u.jsx)(I,{block:{...e},elementType:t?12827:12858,onFlyoutOpen:_,pageIndex:x,pageAspectRatio:v,scaleFactor:q,tooltipElementType:t?12828:12859,videoPinProgress:E,pinKey:null})})(t);case C.h8.PRODUCT_STICKER:return!w&&!l&&(0,u.jsx)(I,{block:{...t},elementType:12223,onFlyoutOpen:_,pageAspectRatio:v,pageIndex:x,pinKey:F,scaleFactor:q,tooltipElementType:12224,videoPinProgress:E});case C.h8.VTO_MAKEUP_STICKER:return!w&&(0,u.jsx)(I,{block:{...t},elementType:12561,onFlyoutOpen:_,pageAspectRatio:v,pageIndex:x,pinKey:null,scaleFactor:q,tooltipElementType:12561,videoPinProgress:E});case C.h8.COMMENT_REPLY_STICKER:return t.type===C.h8.COMMENT_REPLY_STICKER&&!w&&(0,u.jsx)(c,{block:t,scaleFactor:q,pageAspectRatio:v});default:return null}}},233316:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(224496);let l=[n.h8.COMMENT_REPLY_STICKER,n.h8.GENERIC_STICKER,n.h8.HEADING,n.h8.IMAGE,n.h8.MENTION_STICKER,n.h8.PARAGRAPH,n.h8.PRODUCT_STICKER,n.h8.VIDEO,n.h8.VTO_MAKEUP_STICKER];function a({storyPinBlocks:e=[],blocksToRender:t=l}){let i=[],a=[],r=[];return e.forEach(e=>{t.includes(e.type)?e.type===n.h8.PARAGRAPH||e.type===n.h8.HEADING?a.push(e):r.push(e):i.push(e)}),r.push(...a),{nonRenderableBlocks:i,textBlocks:a,blocks:r}}},801827:(e,t,i)=>{"use strict";i.d(t,{A:()=>c,r:()=>h});var n,l=i(667294);i(167912);var a=i(425288),r=i(357998),o=i(623568),s=i(785893);let d=void 0!==n?n:n=i(732993),u=e=>{var t,i,n,l,a,r;return{embed:e.embed&&{src:e.embed.src,subtype:e.embed.subtype,type:e.embed.type},imageSpec_236x:(null===(t=e.images)||void 0===t?void 0:t["236x"])&&{height:e.images["236x"].height,url:e.images["236x"].url,width:e.images["236x"].width},imageSpec_474x:(null===(i=e.images)||void 0===i?void 0:i["474x"])&&{height:e.images["474x"].height,url:e.images["474x"].url,width:e.images["474x"].width},imageSpec_564x:(null===(n=e.images)||void 0===n?void 0:n["564x"])&&{height:e.images["564x"].height,url:e.images["564x"].url,width:e.images["564x"].width},imageSpec_736x:(null===(l=e.images)||void 0===l?void 0:l["736x"])&&{height:e.images["736x"].height,url:e.images["736x"].url,width:e.images["736x"].width},imageSpec_orig:(null===(a=e.images)||void 0===a?void 0:a.orig)&&{height:e.images.orig.height,url:e.images.orig.url,width:e.images.orig.width},videos:e.videos&&{entityId:null!==(r=e.videos.id)&&void 0!==r?r:"",videoList:e.videos.video_list&&{v720P:e.videos.video_list.V_720P&&{duration:e.videos.video_list.V_720P.duration,height:e.videos.video_list.V_720P.height,thumbnail:e.videos.video_list.V_720P.thumbnail,url:e.videos.video_list.V_720P.url,width:e.videos.video_list.V_720P.width,captionsUrls:e.videos.video_list.V_720P.captions_urls},vHLSV3MOBILE:e.videos.video_list.V_HLSV3_MOBILE&&{duration:e.videos.video_list.V_HLSV3_MOBILE.duration,height:e.videos.video_list.V_HLSV3_MOBILE.height,thumbnail:e.videos.video_list.V_HLSV3_MOBILE.thumbnail,url:e.videos.video_list.V_HLSV3_MOBILE.url,width:e.videos.video_list.V_HLSV3_MOBILE.width,captionsUrls:e.videos.video_list.V_HLSV3_MOBILE.captions_urls},vHLSV4:e.videos.video_list.V_HLSV4&&{duration:e.videos.video_list.V_HLSV4.duration,height:e.videos.video_list.V_HLSV4.height,thumbnail:e.videos.video_list.V_HLSV4.thumbnail,url:e.videos.video_list.V_HLSV4.url,width:e.videos.video_list.V_HLSV4.width,captionsUrls:e.videos.video_list.V_HLSV4.captions_urls}}}}},c=({children:e,pinKey:t,overrideValue:i={}})=>{var n,a,c,h,_,m,g,y,v,f,x,b,P,w,S,k,j,A,C,D,E,I,T,F,z,R,L,M,Z,B,O,N;let{data:K}=(0,r.Q)(d,t,{useLegacyAdapter:u}),U=null==K?void 0:K.videos,H=null==K?void 0:K.embed,V=(0,l.useMemo)(()=>{var e,t;return null!=U&&null!==(e=U.videoList)&&void 0!==e&&null!==(t=e.v720P)&&void 0!==t&&t.url?{duration:U.videoList.v720P.duration||void 0,height:U.videoList.v720P.height||void 0,thumbnail:U.videoList.v720P.thumbnail||void 0,url:U.videoList.v720P.url||void 0,width:U.videoList.v720P.width||void 0,captions_urls:U.videoList.v720P.captionsUrls||void 0}:void 0},[null==U?void 0:null===(n=U.videoList)||void 0===n?void 0:null===(a=n.v720P)||void 0===a?void 0:a.duration,null==U?void 0:null===(c=U.videoList)||void 0===c?void 0:null===(h=c.v720P)||void 0===h?void 0:h.height,null==U?void 0:null===(_=U.videoList)||void 0===_?void 0:null===(m=_.v720P)||void 0===m?void 0:m.thumbnail,null==U?void 0:null===(g=U.videoList)||void 0===g?void 0:null===(y=g.v720P)||void 0===y?void 0:y.url,null==U?void 0:null===(v=U.videoList)||void 0===v?void 0:null===(f=v.v720P)||void 0===f?void 0:f.width,null==U?void 0:null===(x=U.videoList)||void 0===x?void 0:null===(b=x.v720P)||void 0===b?void 0:b.captionsUrls]),G=(0,l.useMemo)(()=>{var e,t;return null!=U&&null!==(e=U.videoList)&&void 0!==e&&null!==(t=e.vHLSV4)&&void 0!==t&&t.url?{duration:U.videoList.vHLSV4.duration||void 0,height:U.videoList.vHLSV4.height||void 0,thumbnail:U.videoList.vHLSV4.thumbnail||void 0,url:U.videoList.vHLSV4.url||void 0,width:U.videoList.vHLSV4.width||void 0}:void 0},[null==U?void 0:null===(P=U.videoList)||void 0===P?void 0:null===(w=P.vHLSV4)||void 0===w?void 0:w.duration,null==U?void 0:null===(S=U.videoList)||void 0===S?void 0:null===(k=S.vHLSV4)||void 0===k?void 0:k.height,null==U?void 0:null===(j=U.videoList)||void 0===j?void 0:null===(A=j.vHLSV4)||void 0===A?void 0:A.thumbnail,null==U?void 0:null===(C=U.videoList)||void 0===C?void 0:null===(D=C.vHLSV4)||void 0===D?void 0:D.url,null==U?void 0:null===(E=U.videoList)||void 0===E?void 0:null===(I=E.vHLSV4)||void 0===I?void 0:I.width]),W=(0,l.useMemo)(()=>{var e,t;return null!=U&&null!==(e=U.videoList)&&void 0!==e&&null!==(t=e.vHLSV3MOBILE)&&void 0!==t&&t.url?{duration:U.videoList.vHLSV3MOBILE.duration||void 0,height:U.videoList.vHLSV3MOBILE.height||void 0,thumbnail:U.videoList.vHLSV3MOBILE.thumbnail||void 0,url:U.videoList.vHLSV3MOBILE.url||void 0,width:U.videoList.vHLSV3MOBILE.width||void 0}:void 0},[null==U?void 0:null===(T=U.videoList)||void 0===T?void 0:null===(F=T.vHLSV3MOBILE)||void 0===F?void 0:F.duration,null==U?void 0:null===(z=U.videoList)||void 0===z?void 0:null===(R=z.vHLSV3MOBILE)||void 0===R?void 0:R.height,null==U?void 0:null===(L=U.videoList)||void 0===L?void 0:null===(M=L.vHLSV3MOBILE)||void 0===M?void 0:M.thumbnail,null==U?void 0:null===(Z=U.videoList)||void 0===Z?void 0:null===(B=Z.vHLSV3MOBILE)||void 0===B?void 0:B.url,null==U?void 0:null===(O=U.videoList)||void 0===O?void 0:null===(N=O.vHLSV3MOBILE)||void 0===N?void 0:N.width]),$=(0,l.useMemo)(()=>{let e=V||G||W;return null!=U&&U.entityId&&e?{id:U.entityId,hasVideo:e,mp4:V||void 0,hls:G||void 0,hlsv3:W||void 0}:null},[G,W,V,null==U?void 0:U.entityId]),q=null==H?void 0:H.src,Y=(null==H?void 0:H.subtype)==="pinstory",X=(0,o.sY)(null==H?void 0:H.type),Q=(null==K?void 0:K.imageSpec_564x)||(null==K?void 0:K.imageSpec_736x)||(null==K?void 0:K.imageSpec_orig)||(null==K?void 0:K.imageSpec_474x)||(null==K?void 0:K.imageSpec_236x),J=null==K?void 0:K.imageSpec_236x,ee=(0,l.useMemo)(()=>{let e={mainImage:{height:(null==Q?void 0:Q.height)||"",url:(null==Q?void 0:Q.url)||1,width:(null==Q?void 0:Q.width)||1},previewImage:null!=J&&J.url?{height:J.height,url:J.url,width:J.width}:void 0,...i};return{embed:H,isEmbeddedVideo:!!q&&!X&&!Y,video:$,imgSrc:X&&null!=H&&H.src?H.src:e.mainImage.url,isGif:X,...e}},[H,q,X,Y,null==Q?void 0:Q.height,null==Q?void 0:Q.url,null==Q?void 0:Q.width,i,null==J?void 0:J.height,null==J?void 0:J.url,null==J?void 0:J.width,$]);return(0,s.jsx)(p,{value:ee,children:e})},{Provider:p,useHook:h}=(0,a.Z)("PageHeader")},860507:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(773285);function l(){let{checkExperiment:e}=(0,n.F)();return["employees","enabled"].includes(e("web_product_tagging_on_shopping_module",{dangerouslySkipActivation:!0}).group)}},737930:(e,t,i)=>{"use strict";function n(){return["aggregatedpindata.aggregated_stats","aggregatedpindata.creator_analytics","aggregatedpindata.id","aggregatedpindata.is_shop_the_look","aggregatedpindata.pin_tags","board.collaborated_by_me","board.followed_by_me","board.id","board.image_thumbnail_url","board.is_collaborative","board.layout","board.name","board.owner()","board.privacy","board.type","board.url","buyableproductmetadata.display_active_max_price","buyableproductmetadata.display_active_min_price","buyableproductmetadata.short_description","buyableproductmetadata.title","comment.commenter()","comment.created_at","comment.deletable_by_me","comment.id","comment.text","comment.type","pin.access","pin.ad_destination_url","pin.ad_match_reason","pin.additional_hide_reasons","pin.aggregated_pin_data()","pin.alt_text","pin.attribution","pin.board()","pin.carousel_data()","pin.comment_count","pin.comments(limit:5,resume:true)","pin.created_at","pin.creator_analytics","pin.debug_info_html","pin.description","pin.description_html","pin.domain","pin.dominant_color","pin.embed","pin.grid_description","pin.grid_title","pin.has_required_attribution_provider","pin.id","pin.image_crop","pin.image_signature","pin.images[170x,136x136,236x,474x,736x,orig]","pin.is_downstream_promotion","pin.is_eligible_for_web_closeup","pin.is_native","pin.is_playable","pin.is_promoted","pin.is_quick_promotable","pin.is_repin","pin.is_uploaded","pin.is_video","pin.is_whitelisted_for_tried_it","pin.link","pin.manual_interest_tags","pin.method","pin.native_creator()","pin.pinner()","pin.price_currency","pin.price_value","pin.privacy","pin.promoted_is_removable","pin.promoter()","pin.reaction_counts","pin.repin_count","pin.rich_summary()","pin.shopping_flags","pin.sponsorship","pin.story_pin_data()","pin.story_pin_data_id","pin.title","pin.tracking_params","pin.type","pin.videos()","pin.view_tags","pincarouselslot.details","pincarouselslot.id","pincarouselslot.images[60x60,136x136,170x,236x,474x,564x,736x,600x315,orig]","pincarouselslot.link","pincarouselslot.title","user.blocked_by_me","user.explicitly_followed_by_me","user.full_name","user.id","user.image_large_url","user.image_small_url","user.type","user.username","video.id","video.video_list[V_HLSV4,V_HLSV3_WEB,V_HLSV3_MOBILE,V_EXP3,V_EXP4,V_EXP5,V_EXP6,V_EXP7]","pintag.pins()","pintag.type","pintag.pin_tag_key","pintag.x_percent","pintag.y_percent","pin.rich_summary()","pin.grid_title","pin.image_square_url","pin.images[236x]","pin.id","pin.is_eligible_for_pdp","pin.link_domain()","domain.official_user()","user.is_verified_merchant","user.verified_identity","pin.promoted_lead_form"]}i.d(t,{Z:()=>n})},385937:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(826067);let l=/^\/pin\/(.*[^\/])\/$/,a={"/":"feed_home","/homefeed":"feed_home","/pin/:id":"pin","/pin/:id/comments":"pin","/pin/:id/activity/tried":"pin","/pin/:id/activity/comments":"pin","/pin/:id/visual-search":"flashlight","/discover/article/:id":"explore_article","/discover/article/:title/:id":"explore_article","/topics/:interest":"feed_interest","/categories/:interest":"feed_category","/news_hub/:id":"notifications","/explore/:interest":"seo_auth","/search/:scope":"search","/following":"feed_following","/:username/pins":"user_pins","/:username/tried":"user_tries","/:username/:slug":"board","/:username/:slug/edit":"board","/:username/:slug/invite":"board","/:username/:slug/:section_slug":"board","/story_feed":"shop_feed"};function r(e,t){var i,r,o,s;let d=["pin"],u=[],c=1,p="unknown",h="unknown",_=!0;for(let t=e.length-1;t>0;t-=1){let i=function(e,t){var i,l;if(t<=0)return"unknown";let r=e[t-1],o=(null==r?void 0:null===(i=r.match)||void 0===i?void 0:i.path)||"",s=(0,n.mB)(null==r?void 0:null===(l=r.location)||void 0===l?void 0:l.search),d=["stela","stl"].includes(s.surfaceType);return o&&"/pin/:id/visual-search"===o&&d?"shop_feed":o?a[o]||"unknown":"feed_home"}(e,t);d.splice(0,0,i),_&&("pin"===(p=i)?c+=1:_=!1)}for(let t=e.length-2;t>=0;t-=1){let n=((null===(i=e[t])||void 0===i?void 0:null===(r=i.location)||void 0===r?void 0:r.pathname)||"").match(l);if(n&&2===n.length)u.splice(0,0,n[1].split("/")[0]);else break}if(1===d.length?(h="deep_linking",p="deep_linking"):(h=d[d.length-2],"pin"===p&&(p="deep_linking")),"seo_auth"!==h||t||(h="seo_unauth"),"seo_auth"!==p||t||(p="seo_unauth"),("search"===h||"search"===p)&&e.length>=c+1){let t=(null===(o=e[e.length-c-1])||void 0===o?void 0:null===(s=o.location)||void 0===s?void 0:s.pathname)||"";"/search/buyable_pins/"===t&&(p="shop_feed","search"===h&&(h="shop_feed"))}return{trafficSource:h,topLevelTrafficSource:p,topLevelTrafficSourceDepth:c,contextPinIds:u}}},668627:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=(e,t,i)=>({id:e,field_set_key:"auth_web_main_pin",add_fields:i?i.join(","):void 0,client_tracking_params:void 0,noCache:!0,fetch_visual_search_objects:!0,...t?{orbac_subject_id:t}:Object.freeze({})})},517082:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(186656);let a=()=>["pin.shuffle()","shuffle.{id,items,effect_data}","shuffleitem.{id,item_type,text,offset,scale,rotation,effect_data,mask,shuffle_asset,images[750x,750x(heic)]}"],r=e=>(0,l.Z)({url:`/v3/pins/${e}/`,data:{fields:a()}}),o=({pinId:e,shouldRenderShuffle:t})=>{let[i,l]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(t){let t=async()=>{let t=await r(e);l(t.resource_response.data.shuffle)};t()}},[e,t]),i}},664633:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(773285),l=i(780280),a=i(50286);let r=()=>{let{isAuthenticated:e}=(0,l.B)(),t=(0,a.HG)(),{checkExperiment:i}=(0,n.F)(),r="unauth_web_shuffle_renderer_closeup";e&&(r=t?"auth_dweb_shuffle_renderer_closeup":"auth_mweb_shuffle_renderer_closeup");let o=i(r);return o.anyEnabled}},608440:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(834911),l=i(359969),a=i(559073);let r=e=>{var t,i,l,r;let o={...e.pin,...e.pinResource.data},s=(0,n.Z)({carouselData:o.carousel_data,images:o.images,product:null===(t=o.rich_metadata||o.rich_summary)||void 0===t?void 0:null===(i=t.products)||void 0===i?void 0:i[0]});return{availableWidthForContentOnRight:!1,backButtonLabelFitInScreen:null,closeupBodyContainerHeight:0,closeupContainerHeight:0,firstLoadComplete:!1,didLongClickThrough:!1,didPinClickThrough:!1,didShortClickThrough:!1,didMountAfterSavePlacement:!1,hideBackButton:!1,isCommentSectionOpen:!0,isCloseupMaximized:!1,isOverRelatedPins:null,isRelatedInterestsBannerDismissed:!1,intervalId:null,landOnCurrentPage:!1,loginModalOptions:null,modalOpen:!1,myTry:e.pin?{isDoneByMe:!!e.pin.done_by_me}:null,newshubCloseupCapBackButtonCount:0,passScrollThreshold:!1,pin:o,pinId:e.pinId,quickPromoteModalTriggered:!1,relatedPinsUpsellShown:!1,showBackButton:!0,showProductDetailPage:!!o.is_eligible_for_pdp,shopping:{catalogId:-1,variantId:void 0},viewportSize:"lg",visualState:{carouselData:s&&{...s,index:(null===(l=e.pin.carousel_data)||void 0===l?void 0:l.index)||0},mainImage:e.mainImage,previewImage:(0,a.Yf)(null===(r=o.images)||void 0===r?void 0:r["236x"])},v1DeprecationModalDismissed:!1}};function o(e){let{pin:t,pinId:i,pinResource:n}=e,{getMainPinImage:a}=(0,l.Z)({pinKey:{type:"deprecated",data:t}});return r({pin:t,pinId:i,pinResource:n,mainImage:a()})}},128503:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(450053),l=i(784450);let a=(0,l.Z)(12,(e,t)=>{var i,l;return{pin_id:e.pinId,email_id:e.emailId,did_long_clickthrough:t.didLongClickThrough||!1,did_pin_clickthrough:t.didPinClickThrough||!1,did_repin:t.didRepin||!1,is_own_or_group_pin:t.is_own_or_group_pin||!1,login_page_type:t.loginPageType||"unknown",scroll_to_threshold:t.scrollToThreshold,pin_image_signature:t.pin_image_signature,is_creator_card_shown:!!(0,n.nU)(e.pin),creator_username:null===(i=e.pin)||void 0===i?void 0:null===(l=i.closeup_attribution)||void 0===l?void 0:l.full_name}})},485710:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(667294),l=i(883119),a=i(237693),r=i(773285),o=i(780280),s=i(50286),d=i(785893);function u({children:e,displayViewState:t,forceTappableHeader:i,headerPaddingRight:u,headerPreview:c,heading:p,collapseByDefault:h=!0}){let _=(0,s.ml)(),{checkExperiment:m}=(0,r.F)(),{isAuthenticated:g,isBot:y}=(0,o.B)(),v=_&&m(g?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group||"",f=["no_collapse_by_default","collapse_by_default"].includes(v),x="collapse_by_default"===v,[b,P]=(0,n.useState)(f&&!y&&x&&h||[1,2].includes(t));return(0,d.jsxs)(l.kC,{direction:"column",dataTestId:"collapsible-layout",gap:f?4:0,children:[(0,d.jsx)(a.Z,{collapsed:b,displayViewState:t,forceTappableHeader:i,headerPaddingRight:u,headerPreview:c,heading:p,onClick:()=>{P(!b)},showArrow:!0}),!b&&(0,d.jsx)(l.xu,{children:e})]})}},288889:(e,t,i)=>{"use strict";i.d(t,{n:()=>n});let n="300"},319530:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(667294),l=i(883119),a=i(288889),r=i(643010),o=i(898781),s=i(785893);function d({children:e,maxLines:t=10}){let i=(0,n.useRef)(null),[d,u]=(0,n.useState)({isFirstLoad:!0,isTruncated:!1}),c=(0,o.ZP)(),p=(0,r.vs)(),h=p?"#111":"#fff",{isFirstLoad:_,isTruncated:m}=d;return(0,n.useEffect)(()=>{var e;_&&i.current&&((e=i.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&u({isFirstLoad:!1,isTruncated:!0})},[_,m]),(0,s.jsxs)(l.xu,{position:"relative","data-test-id":"truncated-text",children:[(0,s.jsx)(l.xv,{ref:i,lineClamp:_||m?t:0,inline:!0,children:e}),m&&(0,s.jsx)(l.xu,{position:"absolute",display:"block",width:"100%",bottom:!0,children:(0,s.jsxs)(l.kC,{flex:"grow",children:[(0,s.jsx)(l.xu,{display:"inlineBlock",width:"120px",height:"14px"}),(0,s.jsx)(l.xu,{"data-test-id":"more-button",display:"inlineBlock",dangerouslySetInlineStyle:{__style:{paddingLeft:15,background:`linear-gradient(90deg, transparent 0%, ${h} 15%)`}},children:(0,s.jsx)(l.iP,{fullWidth:!1,onTap:()=>u({...d,isTruncated:!1}),children:(0,s.jsx)(l.xv,{inline:!0,size:a.n,weight:"bold",children:c._(' \u2026 more', 'closeup.TruncatedTextContent.moreLabel', 'Expand content label')})})}),(0,s.jsx)(l.xu,{display:"inlineBlock",flex:"grow",dangerouslySetInlineStyle:{__style:{background:h}}})]})})]})}},509278:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(785893);let a=/#(?:[0-9A-Z_a-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*/g;function r({isHashtagInDescriptionDisplayEnabled:e,text:t}){return t.split(new RegExp(/(#\S*)/)).map((t,i)=>{let r=`${i}-${t}`;return(e?t.match(a):t.includes("#"))?(0,l.jsx)(n.xv,{size:"300",color:"link",inline:!0,children:(0,l.jsx)(n.rU,{underline:"none",display:"inline",href:`/search/pins/?q=${encodeURIComponent(t.replace("#",""))}`,children:t})},r):(0,l.jsx)("span",{children:t},r)})}},516514:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c}),i(167912);var n,l=i(827896),a=i(407043),r=i(357998),o=i(623568),s=i(999018);let d=void 0!==n?n:n=i(924080),u=e=>({}),c=function({pinKey:e,pinId:t,viewParameter:i,trafficSource:n}){let c=(0,l.Z)(),{logContextEvent:p}=(0,a.v)(),{childDataKey__DEPRECATED:h}=(0,r.Q)(d,e,{useLegacyAdapter:u}),_=(0,s.Z)(h);return()=>{let e=_();p({event_type:12,object_id_str:t,view_type:3,component:85,view_parameter:i,aux_data:{...e}}),p({event_type:8948,clientTrackingParams:c(t,{shouldTrackForPrevLocation:!0}),view_type:3,view_parameter:i,component:85,object_id_str:t,aux_data:{click_type:"clickthrough",closeup_navigation_type:n&&(0,o.sV)(n)?"deeplink":"click",...e}})}}},237056:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(773285),l=i(50286),a=i(19121),r=i(717615),o=i(231947);let s=Object.freeze({dweb:{organic:"web_sce_organic_pinbuilder_dep",monetized:"web_sce_monetized_pinbuilder_dep"},mweb:{organic:"mweb_sce_organic_pinbuilder_dep",monetized:"mweb_sce_monetized_pinbuilder_dep"}});function d(e){let t=(0,l.HG)(),{checkExperiment:i}=(0,n.F)(),d=(0,r.Z)(),u=(0,a.Z)(),c=(0,o.lJ)(u,d),p=s[t?"dweb":"mweb"];return e&&!c&&(i("sce_lightswitch_organic"),i("sce_lightswitch_monetized")),!c&&(i(p.organic).anyEnabled||i(p.monetized).anyEnabled)}},440455:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(288889),l=i(748373),a=i(785893);let r=({description:e,userMentionTags:t})=>(0,a.jsx)(l.Z,{description:e,mentionLinkColor:"link",shouldAdjustOffset:!0,shouldMakeHashtagLinksFromText:!0,textSize:n.n,userMentionTags:t})},748373:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(667294),l=i(883119),a=i(509278),r=i(407043),o=i(773285),s=i(785893);let d=e=>e.replace(/\s+/g," "),u=e=>null!=e&&e>-1,c=(e,t)=>{let i=t.substr(0,e);return(null!=e?e:0)-(i.length-d(i).length)},p=({color:e,mention:t,tagObjectId:i,tagType:n,textSize:a})=>{let{logContextEvent:o}=(0,r.v)();return(0,s.jsx)(l.rU,{underline:"none",href:`/${t.substr(1)}`,display:"inlineBlock",onClick:({event:e})=>{e.stopPropagation(),o({event_type:101,element:11915,aux_data:{tag_id:i,tag_type:n}})},children:(0,s.jsx)(l.xv,{size:a,color:e,inline:!0,weight:"bold",overflow:"normal",children:t})},i)},h=({description:e,mentionLinkColor:t,shouldAdjustOffset:i,shouldMakeHashtagLinksFromText:r,textSize:d,userMentionTags:h})=>{let{checkExperiment:_}=(0,o.F)(),m=_("web_hashtags_in_description_display").anyEnabled;if(0===h.length)return(0,s.jsx)(n.Fragment,{children:e});let g=0,y=[],v=[...h].map(t=>{var n;return i?{...t,offset:c(null!==(n=t.offset)&&void 0!==n?n:0,e)}:t}).sort((e,t)=>{var i,n;return(null!==(i=e.offset)&&void 0!==i?i:0)-(null!==(n=t.offset)&&void 0!==n?n:0)}).filter(e=>u(e.offset)&&u(e.length));return v.forEach(i=>{var n,l;let a=null!==(n=i.offset)&&void 0!==n?n:0,r=null!==(l=i.length)&&void 0!==l?l:0,o=e.substr(g,a-g),u=e.substr(a,r);y.push(o),y.push((0,s.jsx)(p,{color:t,mention:u,tagObjectId:i.objectId,tagType:i.tagType,textSize:d})),g=a+r}),y.push(e.substr(g)),(r?y.flatMap(e=>"string"!=typeof e?e:(0,a.Z)({isHashtagInDescriptionDisplayEnabled:m,text:e})):y).reduce((e,t)=>(0,s.jsxs)(l.xv,{size:d,inline:!0,children:[e,t]}),null)}},175892:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(616550),l=i(883119),a=i(407043),r=i(704115),o=i(829407),s=i(667294),d=i(898781),u=i(390598),c=i(214494),p=i(186656),h=i(121151),_=i(499128),m=i(897243),g=i(349700),y=i(784590),v=i(343341),f=i(19121),x=i(487392),b=i(400264),P=i(833991),w=i(977558),S=i(35066),k=i(970023),j=i(785893);let A=new l.H3([new l.Ry(P.HW),new l.Ry(w.fe)]);function C({onFileUpload:e}){let t=(0,d.ZP)(),[i,n]=(0,s.useState)(!1),a=(0,s.useRef)(null),r=t._('Upload from computer', 'ProductGroupDetailsModal.uploadFromComputer', 'Dropdown label to upload image file from your computer');return(0,j.jsxs)(l.kC,{justifyContent:"center",children:[(0,j.jsx)(l.hU,{accessibilityExpanded:i,accessibilityHaspopup:!0,accessibilityLabel:t._('Upload product group cover image menu', 'ProductGroupDetailsModal.productGroupCoverImageA11y', 'Accessibility text for upload menu'),bgColor:"lightGray",icon:"edit",iconColor:"darkGray",onClick:()=>n(e=>!e),ref:a,size:"lg"}),i&&(0,j.jsx)(l.Lt,{anchor:a.current,id:"product-group-image-dropdown",onDismiss:()=>n(!1),disableMobileUI:!0,children:(0,j.jsx)(l.Lt.Item,{onSelect:()=>{n(!1),e()},option:{value:r,label:r}})})]})}function D({image:e,onFileUpload:t,onError:i}){let n=(0,d.ZP)(),a=n._('Product Group Cover Image', 'ProductGroupDetailsModal.productGroupCoverImageAlt', 'Alt text for product group cover image');return(0,j.jsxs)(l.xu,{position:"relative",children:[(0,j.jsx)(l.xu,{height:316,width:316,rounding:5,overflow:"hidden",children:(0,j.jsx)(l.Ee,{alt:a,color:"#EFEFEF",fit:"cover",naturalHeight:1,naturalWidth:1,src:e,onError:i})}),(0,j.jsx)(l.xu,{position:"absolute",top:!0,right:!0,padding:4,children:(0,j.jsx)(C,{onFileUpload:t})})]})}function E({onDismiss:e,onSubmit:t,productGroup:i}){var n,r,o;let{logContextEvent:u}=(0,a.v)(),P=(0,d.ZP)(),w=P._('Edit product group display', 'ProductGroupDetailsModal.heading', 'Modal title'),C=(0,f.Z)(),E=C.id||"",I=`/v3/business/users/${E}/storefront/product_group_image/`,[T,F]=(0,s.useState)(""),[z,R]=(0,s.useState)(""),[L,M]=(0,s.useState)(),[Z,B]=(0,s.useState)(),[O,N]=(0,s.useState)(!1),[K,U]=(0,s.useState)(0),[H]=(0,s.useState)(new Date().getTime()),V=i.groupType!==k.yh,{merchantId:G,advertiserId:W}=(0,x.Z)(),{showOneToast:$}=(0,v.F9)(),{updateStorefrontLastUpdated:q}=(0,S.S)(),Y=(0,b.Ib)({advertiserId:W,merchantId:G,productGroupsIds:[i.entityId],uniq:H},!1,!0),X=(0,y.Z)({name:"ApiResource",options:{url:I,data:{product_group_ids:[i.entityId]},uniq:H},noCache:!0}),Q=(0,s.useRef)(),J=Number(i.entityId),ee=null===(n=Y.data)||void 0===n?void 0:n.find(e=>e.id===J),et=Y.isLoaded&&X.isLoaded,ei=ee&&(T!==ee.name||z!==(ee.description||"")||!!L),en=ee&&T!==ee.name,el=ee&&z!==(ee.description||""),ea=et&&(((null===(r=X.data)||void 0===r?void 0:r[i.entityId])||{})[0]||{}),er=ea?(0,k.cB)((0,m.b)(ea)):null,eo=(null===(o=i.previewPins)||void 0===o?void 0:o[0])||{},es=eo.imageSignature,ed=eo.images&&(0,k.cB)(eo.images),eu=Z||[er,ed].filter(e=>!!e)[K];(0,s.useEffect)(()=>{ee&&(F(ee.name||""),R(ee.description||""))},[ee]),(0,s.useEffect)(()=>{u({event_type:9854,component:13998})},[u]);let ec=()=>{e(),u({event_type:9856,component:13998})},ep=P._('Save', 'ProductGroupDetailsModal.SaveBtn', 'Button to save product group details changes'),eh=P._('Cancel', 'ProductGroupDetailsModal.CancelBtn', 'Button to cancel product group details changes');return(0,j.jsx)(l.mh,{zIndex:A,children:(0,j.jsx)(h.ZP,{accessibilityModalLabel:w,align:"center",heading:w,onDismiss:ec,footer:et?(0,j.jsxs)(l.kC,{alignItems:"start",children:[(0,j.jsx)(l.xu,{width:"50%",children:(0,j.jsx)(l.xv,{size:"300",children:(0,g.nk)(P._('To edit items in this product group, visit {{catalogsLink}}', 'ProductGroupDetailsModal.coverImage', 'heading for cover image form'),{catalogsLink:(0,j.jsx)(l.rU,{href:"/product-catalogs",display:"inlineBlock",target:"blank",underline:"hover",children:(0,j.jsx)(l.xv,{weight:"bold",inline:!0,children:P._('Pinterest Catalogs', 'ProductGroupDetailsModal.catalogsLink', 'link for catalogs')})},"product-catalogs-link")})})}),(0,j.jsx)(l.xu,{width:"50%",children:(0,j.jsxs)(l.kC,{gap:{row:2,column:0},alignItems:"center",justifyContent:"end",children:[(0,j.jsx)(l.zx,{color:"gray",text:eh,onClick:ec}),(0,j.jsx)(l.zx,{color:"red",text:ep,onClick:()=>{let n=er?L:L||es,l=[],a=[];n&&(l.push((0,p.Z)({url:I,method:"PUT",data:{image_signatures:[n],product_group_id:i.entityId}})),a.push("cover_image")),(en||el)&&(l.push(c.Z.create("ProductGroupsResource",{name:T,description:z,productGroupId:Number(i.entityId),filters:null==ee?void 0:ee.filter_v2}).callUpdate()),en&&a.push("name"),el&&a.push("description")),u({event_type:9857,component:13998,aux_data:{product_group_modal_changes:a.join(",")}}),e(),Promise.all(l).then(()=>{t(),q(new Date().getTime()),$(({hideToast:e})=>(0,j.jsx)("div",{className:"ProductGroupSavedToast",children:(0,j.jsx)(_.ZP,{duration:k.QE,onHide:e,text:P._('Product group saved', 'MerchantStorefront.ProductGroupDetailsModal.pgSaved', 'toast text')})}))})},disabled:!ei})]})})]},"product-group-details-footer"):(0,j.jsx)(s.Fragment,{}),size:V?"md":"sm",children:(0,j.jsx)(l.xu,{paddingX:8,marginBottom:2,children:et?(0,j.jsxs)(l.kC,{justifyContent:"center",children:[(0,j.jsxs)(l.xu,{width:320,children:[(0,j.jsx)(l.xu,{marginBottom:4,children:(0,j.jsx)(l.xv,{size:"300",weight:"bold",children:P._('Cover image', 'ProductGroupDetailsModal.coverImage', 'heading for cover image form')})}),(0,j.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],i=new FileReader;t&&i.readAsDataURL(t),i.addEventListener("load",()=>{N(!0),u({event_type:9855,component:13998}),(0,p.Z)({url:I,method:"POST",data:{image_base64:i.result}}).then(e=>{var t;M(null===(t=e.resource_response.data)||void 0===t?void 0:t.image_signature),N(!1),"string"==typeof i.result&&B(i.result)})},!1)}},ref:Q,style:{display:"none"},type:"file"}),O&&(0,j.jsx)(l.xu,{height:316,width:316,rounding:5,color:"secondary",justifyContent:"center",direction:"column",display:"flex",children:(0,j.jsx)(l.$j,{accessibilityLabel:P._('Uploading product group cover image', 'ProductGroupDetailsModal.uploadingCoverImage', 'spinner accessibility label'),show:!0})}),!O&&eu&&(0,j.jsx)(D,{image:eu,onFileUpload:()=>{var e;null===(e=Q.current)||void 0===e||e.click()},onError:()=>U(K+1)})]}),V&&(0,j.jsxs)(l.xu,{width:320,marginStart:4,children:[(0,j.jsx)(l.xu,{marginBottom:4,children:(0,j.jsx)(l.xv,{size:"300",weight:"bold",children:P._('Title', 'ProductGroupDetailsModal.name', 'heading for product group name input')})}),(0,j.jsx)(l.nv,{id:"name",onChange:({value:e})=>F(e.slice(0,255)),size:"lg",type:"text",value:T}),(0,j.jsxs)(l.xu,{marginTop:2,marginBottom:4,height:30,children:[T&&(0,j.jsx)(l.xv,{size:"100",color:"subtle",children:P._('Changing your product group\'s name in your shop will also change its name in Catalogs', 'ProductGroupDetailsModal.pgName', 'subheading for name form')}),!T&&(0,j.jsx)(l.xv,{size:"100",color:"error",children:P._('This field can\'t be blank!', 'ProductGroupDetailsModal.nameEmptyError', 'error message for an empty name input')})]}),(0,j.jsx)(l.xu,{marginBottom:4,children:(0,j.jsx)(l.xv,{size:"300",weight:"bold",children:P._('Description', 'ProductGroupDetailsModal.description', 'heading for description form')})}),(0,j.jsx)(l.xu,{height:178,children:(0,j.jsx)(l.Kx,{id:"description",onChange:({value:e})=>R(e.slice(0,155)),placeholder:P._('Tell shoppers on Pinterest more about this product group', 'ProductGroupDetailsModal.descriptionPlaceholder', 'textarea placeholder for product group description'),value:z,rows:7})})]})]}):(0,j.jsx)(l.$j,{accessibilityLabel:P._('Loading product group details', 'ProductGroupDetailsModal.loadingSpinner', 'spinner accessibility label'),show:!0})})})})}let I=()=>{},T=({url:e,onClick:t,i18n:i})=>(0,j.jsx)(l.ZP,{accessibilityLabel:i._('Shop button', 'ProductGroupV2.shopButton.accessibilityLabel', 'Shop button for product group rep v2'),size:"lg",text:i._('Shop', 'ProductGroupV2.shopButton.text', 'Shop button text for product group rep v2'),color:"white",href:e,onClick:t}),F=({i18n:e})=>(0,j.jsx)(l.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 z({onClick:e,productGroup:t,showControls:i,url:n}){var a,r;let o=(0,d.ZP)(),c=o._('Edit product group display', 'ProductGroupV2.editTooltip', 'Tooltip text for edit product group button'),[p,h]=(o._('Remove product group from shop', 'ProductGroupV2.removeTooltip', 'Tooltip text for remove product group button'),(0,s.useState)(!1)),[_,m]=(0,s.useState)(!1),g=!!(n&&e),{WIDTH:y,HEIGHT:v}=u.PRODUCT_GROUP_COVER_IMAGE_DIMENSIONS,f=y-64;return(0,j.jsxs)(l.xu,{position:"relative",onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)},children:[(0,j.jsxs)(l.xu,{position:"relative",children:[(0,j.jsxs)(l.zd,{width:y,height:v,rounding:8,children:[(0,j.jsx)(u.Z,{productGroup:{coverImages:t.coverImages,groupType:t.groupType,previewPins:null===(a=t.previewPins)||void 0===a?void 0:a.map(e=>({imageSignature:e.imageSignature,images:e.images}))}}),(0,j.jsx)(l.xu,{position:"absolute",width:y,height:v,top:!0,dangerouslySetInlineStyle:{__style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%)"}}})]}),(0,j.jsx)(l.xu,{position:"absolute",color:"selected",opacity:_?.5:0,width:y,height:v,rounding:8,top:!0})]}),i&&_&&(0,j.jsxs)(l.xu,{position:"absolute",top:!0,right:!0,padding:8,display:"flex",children:[(0,j.jsx)(l.xu,{marginEnd:0,children:(0,j.jsx)(l.u,{text:c,idealDirection:"down",children:(0,j.jsx)(l.hU,{accessibilityLabel:c,bgColor:"lightGray",icon:"edit",iconColor:"darkGray",onClick:({event:e})=>{e.stopPropagation(),e.preventDefault(),h(!0)},size:"xl"})})}),!1]}),(0,j.jsxs)(l.xu,{position:"absolute",bottom:!0,left:!0,padding:8,children:[(0,j.jsx)(l.xu,{marginBottom:5,maxWidth:f,children:(0,j.jsx)(l.X6,{size:"600",color:"inverse",lineClamp:2,children:t.name})}),_&&(0,j.jsx)(l.xu,{marginBottom:5,maxWidth:f,children:(0,j.jsx)(l.xv,{size:"300",color:"inverse",children:t.description})}),!g&&(0,j.jsx)(F,{i18n:o}),g&&(0,j.jsx)(T,{url:null!=n?n:"",onClick:null!=e?e:I,i18n:o})]}),i&&p&&(0,j.jsx)(E,{onDismiss:()=>h(!1),onSubmit:()=>h(!1),productGroup:{entityId:t.entityId,groupType:t.groupType,previewPins:null===(r=t.previewPins)||void 0===r?void 0:r.map(e=>({imageSignature:e.imageSignature,images:e.images}))}})]})}var R=i(717615),L=i(231947),M=i(151645),Z=i(436395),B=i(316674);function O({productGroup:e,slotIndex:t}){let{logContextEvent:i}=(0,a.v)(),{data:s}=(0,Z.Z)(),{search:d}=(0,n.useLocation)(),{pin:u}=(0,r.Z)(d),c=u?"pdp":"profile",p=null==s?void 0:s.username,h=function(){let{ownProfile:e}=function(){let{data:e}=(0,Z.Z)(),t=(0,f.Z)(),i=(0,M.Z)({user:e,viewer:t}),n=(0,R.Z)(),l=(0,L.q6)(t,null==e?void 0:e.id,n);return{isORBACProfileManager:l,ownProfile:i}}();return e}();if((0,o.Z)(()=>{var t;B.Z.StructuredFeed.ProductGroups.viewProductGroup({productGroupId:e.entityId,source:c,groupType:null!==(t=e.groupType)&&void 0!==t?t:"",componentType:13698},i)}),!p)return null;let _=`/${p}/_shop/${e.entityId}/`;return(0,j.jsx)(l.Tg,{onTap:()=>{var n;B.Z.StructuredFeed.ProductGroups.tapProductGroup({productGroupId:e.entityId,source:c,groupType:null!==(n=e.groupType)&&void 0!==n?n:"",componentType:13698,index:t},i)},href:_,children:(0,j.jsx)(z,{productGroup:e,showControls:h})})}},820621:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(214494);async function l(e,t){let i=async()=>{let e={name:t._('Quick Saves', 'quickSave.defaultBoardName', 'Name of the auto-created board for quicksave experience saves.'),layout:"quick_saves",privacy:"public",return_existing:!0};return n.Z.create("BoardResource",e).callCreate()},{resource_response:{data:l}}=await i(),a=async t=>{var i;return n.Z.create("RepinResource",{board_id:t,description:e.description||"",is_removable:null!==(i=e.promotedIsRemovable)&&void 0!==i?i:void 0,link:e.link,pin_id:e.entityId||"",title:e.title||""}).callCreate({showError:!1})};return await a(l.id),l}},799405:(e,t,i)=>{"use strict";i.d(t,{F:()=>a,L:()=>l});var n=i(425288);let{Provider:l,useHook:a}=(0,n.Z)("IdeaPinCategoriesContext")},765050:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c}),i(167912);var n,l=i(357998),a=i(223008),r=i(483205),o=i(599611),s=i(94047);let d=void 0!==n?n:n=i(317071),u=e=>({entityId:e.id,visualObjects:e.visual_objects&&e.visual_objects.map(e=>({h:e.h,isStela:e.is_stela,label:e.label,w:e.w,x:e.x,y:e.y}))});function c({pinKey:e,requestParams:t,surfaceType:i,topLevelTrafficSource:n}){let{data:c}=(0,l.Q)(d,e,{useLegacyAdapter:u}),p=(c.visualObjects||[]).filter(e=>e.isStela),{getNormalizedPinImage:h}=(0,a.Z)({pinKey:c,maxWidth:r.RZ}),{height:_,width:m}=h(),g="";if(p.length>0){let[e]=p,{x:l,y:a,w:r,h:d}=e,u=e&&(0,o.Z)({cropArea:{x:l,y:a,w:r,h:d},scaledWidth:m,scaledHeight:_});g=u&&(0,s.Z)({cropArea:u,cropSource:4,surfaceType:i,requestParams:t,title:e.label,trafficSource:n})}else g=(0,s.Z)({surfaceType:i});return`/pin/${c.entityId}/visual-search/${g}`}},641950:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(667294),l=i(883119),a=i(979588),r=i(407043),o=i(898781),s=i(276602),d=i(733336),u=i(540923),c=i(882801),p=i(785893);let h=({onOpen:e,structuredDescription:t,type:i})=>{let a=(0,o.ZP)(),r=(0,s.E)(),h=(0,n.useCallback)(()=>{r&&r.markConstraintComplete("description")},[r]),_=(0,n.useRef)(null),[m,g]=(0,n.useState)(!1);(0,n.useEffect)(()=>{var e;(_.current&&((e=_.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)||t.length>1)&&g(!0)},[_,t]);let y="expandable"===i&&t[0].type===c.X.PARAGRAPH,v=y?(0,p.jsx)(l.xv,{ref:_,lineClamp:1,size:"200",children:t[0].content}):null,f=a._('Product Details', 'productDetails.accordionHeader.text', 'text in tap area to open product description accordion panel');return!m&&v?(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(l.xu,{paddingY:1,children:(0,p.jsx)(l.xv,{weight:"bold",size:"300",children:f})}),(0,p.jsx)(l.xu,{marginEnd:6,marginBottom:1,children:v})]}):(0,p.jsx)(d.Z,{header:f,content:(0,p.jsx)(l.xu,{paddingY:y?0:1,children:(0,p.jsx)(u.Z,{descriptions:t,onLoad:h})}),onOpen:e,previewContent:v,previewContentHeight:y?20:0,shouldToggleOnBodyTap:!0,arrowDirection:"expandable"===i?"arrow-down":"arrow-forward"})},_=({isOpen:e,onOpen:t,structuredDescription:i})=>{var a;let[r,d]=(0,n.useState)(!1),c=(0,o.ZP)(),h=(0,n.useRef)(null),_=(0,s.E)(),m=(0,n.useCallback)(()=>{_&&h.current&&_.markConstraintComplete("description")},[_]),g=r&&!e,y=e?c._('See less', 'productDescription.productDescriptionPreview.cta', 'CTA label for collapsing the description'):c._('See more', 'productDescription.productDescriptionPreview.cta', 'CTA label for expanding the description');return(0,n.useLayoutEffect)(()=>{!(!h.current||Number.isNaN(h.current.offsetHeight)||150>Number(h.current.offsetHeight))&&(r||d(!0))},[r,null===(a=h.current)||void 0===a?void 0:a.offsetHeight]),(0,p.jsxs)(l.xu,{display:h.current?"block":"visuallyHidden",paddingY:1,"data-test-id":"product-description-preview",children:[(0,p.jsx)(l.xv,{size:"300",weight:"bold",children:c._('Product Details', 'productDescription.productDescriptionPreview.header', 'header for the product description')}),(0,p.jsxs)(l.xu,{marginTop:2,marginBottom:g?0:2,position:"relative",children:[(0,p.jsx)(l.xu,{height:g?150:"auto",overflow:g?"hidden":"visible",ref:h,children:(0,p.jsx)(u.Z,{descriptions:i,onLoad:m})}),r&&(0,p.jsx)(l.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundImage:"linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff)",transition:"opacity 200ms ease"}},height:150,opacity:g?1:0,position:"absolute",width:"100%"})]}),r&&(0,p.jsx)(l.iP,{onTap:t,children:(0,p.jsx)(l.xv,{size:"200",weight:"bold",children:y})})]})};function m(e){let{commerceData:t,structuredDescription:i,type:l="accordion",viewParameter:o}=e,{logContextEvent:s}=(0,r.v)(),[d,u]=(0,n.useState)(!1);(0,n.useEffect)(()=>{s({event_type:120,component:13597,view_type:3,view_parameter:o,aux_data:{...t}})},[]);let m=()=>{u(!d),s({event_type:101,component:13597,view_type:3,element:d?13278:13277,view_parameter:o,aux_data:{...t}}),s({event_type:101,component:13597,view_type:3,element:10492,view_parameter:o,aux_data:{...t}})};if(0===i.length)return null;let g="expandable"===l&&i[0].type===c.X.PARAGRAPH;return"preview"===l?(0,p.jsx)(_,{...e,isOpen:d,onOpen:m}):(0,p.jsx)(a.Z,{topBorder:!0,paddingY:g?3:0,children:(0,p.jsx)(h,{...e,onOpen:m})})}},979588:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({children:e,paddingY:t,topBorder:i,marginEnd:a}){return(0,l.jsx)(n.xu,{"data-test-id":"product-metadata-border",width:"100%",dangerouslySetInlineStyle:{__style:{borderTop:i?"1px solid #efefef":void 0}},marginEnd:a,paddingY:t,children:e})}},453451:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(807592),a=i(898781),r=i(785893);function o({colorOverride:e,isSoldOut:t,isStale:i,productDetails:o,showSalesPrice:s,type:d,weight:u="bold"}){let{maxPrice:c,minPrice:p,price:h,standardPrice:_}=o,m=!!h&&!!_&&h!==_,g="100";"pdpPlusHeading"===d?g="400":"heading"===d?g="500":"pdpPlusMobileHeading"===d&&(g="300");let y=(0,a.ZP)(),v=y._('See price on site', 'product.price.stale', 'Product is stale'),f=y._('Sold out', 'product.price.soldOut', 'Product is sold out');return i?(0,r.jsx)(n.xv,{size:g,color:"subtle",weight:"bold",children:v}):(0,r.jsxs)(n.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[t&&(0,r.jsx)(n.xu,{"data-test-id":"product-sold-out-text",marginEnd:2,children:(0,r.jsx)(n.xv,{size:g,color:"subtle",weight:"bold",children:f})}),(!!h||!!p||!!c)&&(0,r.jsx)(n.xv,{color:e||(m?"shopping":"default"),size:g,weight:u,children:(0,r.jsx)("span",{children:(0,l.Z)({maxPrice:c,minPrice:p,price:h})})}),m&&!s&&(0,r.jsx)(n.xu,{marginStart:1,children:(0,r.jsx)(n.xv,{color:"subtle",size:g,weight:["pdpPlusHeading","pdpPlusMobileHeading"].includes(d)?"normal":u,children:(0,r.jsx)("span",{style:{textDecoration:"line-through"},children:_})})})]})}},650702:(e,t,i)=>{"use strict";i.d(t,{Z:()=>x});var n=i(883119),l=i(898781),a=i(349700),r=i(939106),o=i(785893);function s(){let e=(0,l.ZP)();return e._('Free shipping', 'closeup.product.shipping', 'product shipping info')}function d({freeShippingPrice:e}){let t=(0,l.ZP)();return(0,a.nk)(t._('Free shipping with {{ shippingPrice }}+', 'closeup.product.shipping', 'product shipping info'),{shippingPrice:e}).join("")}function u({customStyles:e,showPrevDot:t,freeShippingPrice:i,freeShippingValue:l}){let a;let u=t?[""]:[],{color:c="subtle",size:p="200"}=e||{};return Number.isFinite(l)?(0===l?a=(0,o.jsx)(s,{}):i&&(a=(0,o.jsx)(d,{freeShippingPrice:i})),a&&u.push((0,o.jsx)(n.kC,{direction:"row",children:a})),0===u.length)?null:(0,o.jsx)(n.xv,{color:c,size:p,children:(0,o.jsx)(r.Z,{color:c,items:u})}):null}var c=i(892819),p=i(561195),h=i(780280);function _({count:e,rating:t}){return!!(t&&"None"!==t&&Number.isFinite(e))}let m=({rating:e,textSize:t,type:i})=>{if("single"===i){let i=parseFloat(e);return Number.isNaN(i)?null:(0,o.jsxs)(n.kC,{alignItems:"center",children:[(0,o.jsx)(p.A,{fill:"full",width:12}),(0,o.jsx)(n.xv,{size:t,children:i.toFixed(1)})]})}return(0,o.jsx)(p.Z,{rating:e,width:12})},g=({bracket:e,count:t,countFormat:i,countType:r,marginStart:s,textSize:d,underline:u})=>{let{locale:p}=(0,h.B)(),_=(0,l.ZP)(),m=(0,c.Z)();if(null==t)return null;let g=m(p,t,{shortform:!0,shortform_maximum_fraction_digits:1});if("text"===i){let e="review"===r?_.ngettext('{{ count }} review', '{{ count }} reviews', t, 'webapp.app.www-unified.productStarRatings.RatingCountText', 'count: total reviews count'):_.ngettext('{{ count }} rating', '{{ count }} ratings', t, 'webapp.app.www-unified.productStarRatings.RatingCountText', 'count: total ratings count');g=(0,a.nk)(e,{count:t}).join("")}return e&&(g=`(${g})`),(0,o.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{borderBottom:u?"1px solid gray":"none"}},marginStart:s,children:(0,o.jsx)(n.xv,{color:u?"subtle":"default",size:d,underline:u,children:(0,o.jsx)(n.xu,{"data-test-id":"ratings-count-text",display:"inlineBlock",children:g})})})};function y({bracket:e,count:t,countFormat:i,countType:l,rating:a,textSize:r,underline:s}){let d=_({count:t,rating:a});return d?(0,o.jsxs)(n.kC,{alignItems:"center",justifyContent:"start",children:[(0,o.jsx)(m,{rating:a,textSize:r,type:"multiple"}),(0,o.jsx)(g,{bracket:e,count:t,countFormat:i,countType:l,textSize:r,underline:s})]}):null}let v=({count:e,countFormat:t,ratingValue:i,shippingInfo:l})=>(0,o.jsxs)(n.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,o.jsx)(y,{count:e,countFormat:t,rating:i,textSize:"200"}),(0,o.jsx)(n.xu,{marginTop:_({count:e,rating:i})?1:0,children:(0,o.jsx)(u,{customStyles:{color:"subtle",size:"200"},freeShippingPrice:null==l?void 0:l.freeShippingPrice,freeShippingValue:null==l?void 0:l.freeShippingValue})})]}),f=({count:e,countType:t,countFormat:i,hideSeparationDot:l,bracket:a,ratingValue:r,shippingInfo:s})=>(0,o.jsxs)(n.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{rowGap:8}},display:"flex",marginTop:1,wrap:!0,children:[(0,o.jsx)(y,{bracket:a,count:e,countFormat:i,countType:t,rating:r,textSize:"300"}),(0,o.jsx)(n.xu,{marginStart:_({count:e,rating:r})&&l?2:0,children:(0,o.jsx)(u,{customStyles:{color:"default",size:"300"},showPrevDot:_({count:e,rating:r})&&!l,freeShippingPrice:null==s?void 0:s.freeShippingPrice,freeShippingValue:null==s?void 0:s.freeShippingValue})})]});function x(e){return e.isGridView?(0,o.jsx)(v,{...e}):(0,o.jsx)(f,{...e})}},368271:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(667294),l=i(883119),a=i(785893);function r({buttonText:e,icon:t,onClick:i}){return(0,a.jsx)(l.iP,{onTap:i,rounding:"pill",accessibilityLabel:e,children:(0,a.jsx)(l.xu,{display:"flex",justifyContent:"center",alignContent:"center",color:"secondary",rounding:"pill",minHeight:48,children:(0,a.jsxs)(l.xu,{display:"flex",justifyContent:"center",alignItems:"center",rounding:"pill",minHeight:48,paddingX:4,children:[(0,a.jsx)(l.xu,{marginEnd:3,children:(0,a.jsx)(l.JO,{accessibilityLabel:"",icon:t,color:"default"})}),(0,a.jsx)(l.xv,{align:"center",color:"default",weight:"bold",children:e})]})})})}var o=i(407043),s=i(898781);function d({entryPoint:e,imageSignature:t,onClick:i,pinId:l,viewParameter:d}){let{logContextEvent:u}=(0,o.v)(),c=(0,s.ZP)();return(0,n.useEffect)(()=>{u({event_type:120,element:12080,view_type:3,view_parameter:d,aux_data:{image_signature:t,entry_point_source:e,...l?{pin_id:l}:{}}})},[]),(0,a.jsx)(r,{buttonText:c._('Tag products', 'closeup.shopTheLook.tagProducts', 'button that will lead to pin builder where user can tag products'),icon:"tag",onClick:i})}},186986:(e,t,i)=>{"use strict";function n(e){return"story"===e.type}i.d(t,{Z:()=>n})},206663:(e,t,i)=>{"use strict";function n(e){if("pin_tag"===e.type){let{x_percent:t,y_percent:i}=e;if(t>0&&t<=100&&i>0&&i<=100)return!0}return!1}i.d(t,{Z:()=>n})},372169:(e,t,i)=>{"use strict";i.d(t,{Je:()=>n,iO:()=>l,jh:()=>a});let n=350,l=2,a=236},992061:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({hovered:e,rounding:t}){return(0,l.jsx)(n.xu,{display:e?"block":"none",height:"100%",width:"100%",left:!0,top:!0,position:"fixed",zIndex:new n.Ry(1),color:"transparentDarkGray",rounding:t,opacity:.2})}},167137:(e,t,i)=>{"use strict";function n(){return["ideapinproductcategorytag.id","ideapinproductcategorytag.type","ideapinproductcategorytag.category_id","ideapinproductcategorytag.label","ideapinproductcategorytag.page_index","ideapinproductcategorytag.pins()","pin.id","pin.type","pin.images[236x,orig]"]}i.d(t,{Z:()=>n})},807592:(e,t,i)=>{"use strict";function n({maxPrice:e,minPrice:t,price:i}){return e&&t?`${t}-${e}`:i}i.d(t,{Z:()=>n})},590670:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var n=i(790904),l=i(898781),a=i(334005),r=i(785893);function o({controllerOptions:e,iconColor:t,iconOnly:i,buttonText:o,tabIndex:s=0}){let d=(0,l.ZP)();return(0,r.jsx)(a.Z,{...e,children:({handleSendShareFlyoutButtonClick:e})=>(0,r.jsx)(n.Z,{accessibilityLabel:d._('Send', 'Accessible label for button to send this pin', 'Accessible label for button to send this pin'),buttonText:o,handleClick:()=>e(),icon:"share",iconColor:t,iconOnly:i,tabIndex:s,testId:"closeup-share-button"})})}},893764:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(883119),a=i(43898),r=i(785893);function o({errorMessage:e,helperText:t,id:i,label:o,onBlur:s,onChange:d,onFocus:u,placeholder:c,size:p,type:h,value:_,warningMessage:m}){return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(l.nv,{helperText:t,id:i,label:o,onBlur:s,onChange:d,onFocus:u,placeholder:c,size:p,type:h,value:_}),(!!e||!!m)&&(0,r.jsx)(a.Z,{errorMessage:e||m,errorMessageColor:e?"error":"warning",htmlFor:i,icon:(0,r.jsx)(l.qb,{type:e?"problem":"warning"})})]})}},545198:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(349700),l=i(299295);function a({errorType:e,i18n:t,isIncreasedDescriptionLengthEnabled:i}){let a=i?l.S:l.JO;return"tooMuchText"===e?(0,n.nk)(t._('Description too long. Only the first {{ descriptionCharacterLimit }} characters will be displayed.', 'storyboard.details.description.editor.errorTooLongDescription', 'Error message when description is greater than maximum character count. descriptionCharacterLimit: Integer representing max length of the title'),{descriptionCharacterLimit:a}).join(""):(0,n.nk)(t._('Too many user mentions. Only the first {{ DESCRIPTION_USER_MENTION_LIMIT }} mentions will be displayed.', 'storyboard.details.description.editor.errorTooManyMentions', 'Error message when description contains too many user mentions. DESCRIPTION_USER_MENTION_LIMIT: Integer representing max length of the title'),{DESCRIPTION_USER_MENTION_LIMIT:l.iR}).join("")}},783331:(e,t,i)=>{"use strict";function n(e){let{templateType:t,basics:i}=e||{},{listBlocks:n}=i||{};return 1===t?"recipe":2===t?"diy":n&&n.length>0?"blank":"none"}i.d(t,{Z:()=>n})},129274:(e,t,i)=>{"use strict";i.d(t,{N:()=>d,d:()=>s});var n=i(667294),l=i(174798),a=i(425288),r=i(785893);let{Provider:o,useHook:s}=(0,a.Z)("Flag"),d=({children:e})=>{let[t,i]=(0,n.useState)(),[a,s]=(0,n.useState)(l.Zw.REPORT),[d,u]=(0,n.useState)(l.qb.STARTED),[c,p]=(0,n.useState)(),[h,_]=(0,n.useState)(),m=(0,n.useMemo)(()=>({flagReason:h,flow:a,status:d,selectedReason:c,modalTitle:t,setFlagReason:_,setFlow:s,setModalTitle:i,setStatus:u,setSelectedReason:p}),[t,a,d,c,h]);return(0,r.jsx)(o,{value:m,children:e})}},923764:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});var n=i(667294),l=i(702664),a=i(883119),r=i(214494);async function o({userId:e,blockSource:t,blockContext:i,logContextEvent:n}){let l=r.Z.create("UserBlockResource",{blocked_user_id:e,block_source:t,block_context:i});await l.callCreate(),n({event_type:54,object_id_str:e})}var s=i(129274),d=i(174798),u=i(512465),c=i(898781),p=i(349700),h=i(966113),_=i(785893);let m=h.K_Y+"?source=block_dialogue";function g(e){return e.map(({full_name:e})=>e)}let y=function({users:e,onClose:t,onSubmit:i}){let n=(0,c.ZP)(),l=(0,_.jsx)("strong",{children:(0,u.Z)(g(e),n)},"userlist");return(0,_.jsxs)("form",{method:"post",children:[(0,_.jsxs)(a.xu,{padding:8,children:[(0,_.jsx)(a.xv,{children:(0,p.nk)(n._('If you block {{ users }}, you won\u2019t be able to follow each other or interact with each other\u2019s Pins.', 'description of blocking users', 'description of blocking users'),{users:l})}),(0,_.jsx)("br",{}),(0,_.jsx)("br",{}),(0,_.jsx)(a.xv,{children:(0,_.jsx)(a.rU,{display:"inlineBlock",href:m,underline:"hover",children:n._('Learn more', 'link to learn more about blocking', 'link to learn more about blocking')})})]}),(0,_.jsx)(a.xu,{padding:2,children:(0,_.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"end",gap:{row:1,column:0},children:[(0,_.jsx)(a.zx,{fullWidth:!0,onClick:t,text:n._('Cancel', 'UserBlock.Cancel', 'cancel form')}),(0,_.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:()=>{i()},text:n._('Block', 'UserBlock.Submit', 'submit form to block users'),type:"submit"})]})})]})};var v=i(112690),f=i(19121);let x=({deleteAndCloseConversation:e,flagReason:t,flagType:i,onClose:l,selectedReason:r,status:m,users:x,blockContext:b})=>{let P=(0,c.ZP)(),w=(0,v.Z)(),[S,k]=(0,n.useState)({}),{setModalTitle:j,setStatus:A}=(0,s.d)(),C=(0,f.Z)(),{id:D}=C.isAuth?C:{},E=x.filter(({id:e})=>S[e]),I=E.length>0,T=()=>{let e;[d.qb.SUBMITTED,d.qb.PROCESSING].includes(m)?e=P.ngettext('Block this person?', 'Block these people?', E.length, 'BlockAndUnfollow', 'Confirmation text when blocking users (plural)'):i===d.Vm.CONVERSATION&&(e=m===d.qb.COMPLETED?(0,p.nk)(P._('You\u2019ve blocked {{usernames}}', 'BlockAndUnfollow', 'title of modal after user has been blocked'),{usernames:(0,u.Z)(g(E),P).join("")}).join(""):P._('Thanks for your report', 'BlockAndUnfollow', 'title at end of report flow')),j(e)};(0,n.useEffect)(()=>{T()},[m]),(0,n.useEffect)(()=>{A(I?d.qb.SELECTED:d.qb.STARTED)},[S]);let F=x.filter(({id:e})=>e!==D),z=[d.qb.STARTED,d.qb.COMPLETED].includes(m);return(0,_.jsx)("form",{method:"post",children:[d.qb.SUBMITTED,d.qb.PROCESSING].includes(m)?(0,_.jsx)(y,{onClose:()=>{A(d.qb.SELECTED)},onSubmit:()=>(A(d.qb.PROCESSING),Promise.all(Object.keys(S).filter(e=>S[e]).map(e=>o({userId:e,blockSource:"message_report",blockContext:b,logContextEvent:w}))).finally(()=>{A(d.qb.COMPLETED)})),users:E}):(0,_.jsxs)(a.xu,{padding:8,children:[(0,_.jsx)(a.xu,{children:m!==d.qb.COMPLETED?(()=>{let e;"harassingOther"===r?e=(0,p.nk)(P._('We remove content that identifies and attacks private people because we consider it to be bullying. We also don\u2019t allow content that reveal someone\u2019s personally identifiable information. Learn more about our {{ communityGuidelines }}.', 'confirmation message after reporting harassment', 'confirmation message after reporting harassment'),{communityGuidelines:(0,_.jsx)(a.rU,{display:"inlineBlock",href:h.MsG,underline:"hover",children:P._('Community Guidelines', 'link to community guidelines for harassment', 'link to community guidelines for harassment')},"policyLink")}):"harassingPublicFigure"===r?e=P._('Please note that we won\u2019t necessarily take down stuff that attacks public figures.', 'message shown after reporting harrassment', 'message shown after reporting harrassment'):"harassingFriend"===r?e=P._('Before we can review this Pin, we need to hear from the person who\u2019s being harassed. Please have your friend report this Pin to us.', 'message shown after reporting harrassment', 'message shown after reporting harrassment'):["spam","policies","hurtfulContent"].includes(t)&&(e=P._('We\u2019ll take a look at this Pin and delete it if it goes against our policies.', 'confirmation message after reporting a pin', 'confirmation message after reporting a pin'));let i=P.ngettext('You can also block this person.', 'You can also block these people.', F.length, 'description to block people', 'description to block people');return(0,_.jsxs)(n.Fragment,{children:[e&&(0,_.jsx)(a.xu,{marginBottom:8,children:(0,_.jsx)(a.xv,{children:e})}),(0,_.jsx)(a.xu,{marginBottom:8,children:(0,_.jsx)(a.xv,{children:i})}),(0,_.jsx)(a.xu,{marginBottom:8,children:F.map(({id:e,full_name:t})=>(0,_.jsx)(a.XZ,{id:"blockPinner"+e,checked:!!S[e],label:(0,p.nk)(P._('Block {{ pinnerName }}', 'BlockAndUnfollow', 'form option to block a pinner'),{pinnerName:t}).join(""),onChange:({checked:t})=>{k({...S,[e]:t})},helperText:P._('You won\u2019t be able to send each other messages or interact with each other\u2019s Pins.', 'BlockAndUnfollow', 'explanation of blocking a user')},e))})]})})():I&&(0,_.jsx)(a.xu,{marginBottom:8,children:(0,_.jsx)(a.xv,{children:P._('You won\u2019t be able to follow each other or interact with each other\u2019s pins.', 'BlockAndUnfollow', 'message describing what blocking means')},"blockingConfirmation")})}),(0,_.jsxs)(a.xu,{children:[m!==d.qb.COMPLETED&&(0,_.jsx)(a.xu,{marginBottom:8,children:(0,_.jsx)(a.xv,{size:"100",children:(0,p.nk)(P._('Learn more about {{ linkToTopic }}', 'BlockAndUnfollow', 'footer link to learn more about a topic'),{linkToTopic:(0,_.jsx)(a.rU,{display:"inlineBlock",href:h.K_Y,underline:"hover",children:P._('blocking', 'BlockAndUnfollow', 'footer link to learn more about blocking')},"policyLink")})})}),(0,_.jsx)(a.xu,{children:(0,_.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:z?()=>{l(),m===d.qb.COMPLETED&&(null==e||e())}:()=>{k(S),A(d.qb.SUBMITTED)},text:z?P._('Done', 'Block.Complete', 'confirm reporting flow is done & close modal'):P._('Block', 'BlockAndUnfollow', 'submit users to block')})})]})]})})};function b({flagOptions:e,flow:t,handleClose:i,handleNext:n,selectedReason:l,showPrimaryAction:r,submitButton:o}){let s=(0,c.ZP)();if(t===d.Zw.REPORT){var u;if(d.qb.PROCESSING===status||null!==(u=e.getFlagOption(l))&&void 0!==u&&u.isTerminalReason)return o;if(r)return(0,_.jsx)(a.zx,{fullWidth:!0,color:"red",disabled:void 0===l,onClick:n,text:s._('Next', 'go to the next view in the report flow', 'go to the next view in the report flow')})}else if(t===d.Zw.END)return(0,_.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:i,text:s._('Got it', 'confirm reporting flow is done & close modal', 'confirm reporting flow is done & close modal')});return null}function P({flow:e,flagReason:t}){let i=(0,c.ZP)();if(e===d.Zw.REPORT){if("attacks"===t)return(0,_.jsx)(a.xv,{size:"100",children:(0,p.nk)(i._('Learn more about our {{ linkToTopic }}', 'footer link to learn more about community guidelines', 'footer link to learn more about community guidelines'),{linkToTopic:(0,_.jsx)(a.rU,{target:"blank",href:h.MsG,children:(0,_.jsx)(a.xv,{inline:!0,color:"error",size:"100",weight:"bold",children:i._('Community Guidelines', 'name of footer link to community guidelines', 'name of footer link to community guidelines')})},"policyLink")})});if("policies"===t)return(0,_.jsxs)("p",{children:[(0,_.jsx)(a.xv,{size:"100",children:(0,p.nk)(i._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,_.jsx)(a.rU,{target:"blank",href:h.MsG+"#sub-section-adult-content",children:(0,_.jsx)(a.xv,{inline:!0,color:"error",size:"100",children:i._('our nudity policies', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})}),(0,_.jsx)(a.xv,{size:"100",children:(0,p.nk)(i._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,_.jsx)(a.rU,{target:"blank",href:h.MsG+"#sub-section-dangerous-goods-and-activities",children:(0,_.jsx)(a.xv,{inline:!0,color:"error",size:"100",children:i._('our policies on hurtful content', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})}),(0,_.jsx)(a.xv,{size:"100",children:(0,p.nk)(i._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,_.jsx)(a.rU,{target:"blank",href:h.MsG+"#sub-section-violence",children:(0,_.jsx)(a.xv,{inline:!0,color:"error",size:"100",children:i._('our policies on gore', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})})]});if("spam"===t||void 0===t)return(0,_.jsx)(a.xv,{size:"100",children:(0,p.nk)(i._('Learn about {{ linkToTopic }}', 'footer link to learn more about a topic', 'footer link to learn more about a topic'),{linkToTopic:(0,_.jsx)(a.rU,{target:"blank",href:h.MsG,children:(0,_.jsx)(a.xv,{inline:!0,color:"error",size:"100",weight:"bold",children:"spam"===t?i._('our spam policies', 'name of footer link to policy', 'name of footer link to policy'):i._('our policies', 'name of footer link to policy', 'name of footer link to policy')})},"policyLink")})})}return null}function w({arrayOfData:e,handleSelectReason:t,selectedReason:i}){let n=(0,c.ZP)();return(0,_.jsx)(a.xu,{padding:2,children:(0,_.jsx)(a.FX,{id:"flag-option-radio-group",legend:n._('Flag legends', 'flag_legend', 'Flag legends'),legendDisplay:"hidden",children:e.map((e,n)=>{let{condition:l}=e;return void 0===l||l?function(e,t,i,n){let{text:l,value:r,category:o}=e;return(0,_.jsx)(a.xu,{paddingY:2,children:(0,_.jsx)(a.FX.RadioButton,{checked:i===r,id:r,onChange:({checked:e})=>t(e,r,o),name:"flagReason",value:r,label:l})},n)}(e,t,i,n):null})})})}class S{constructor(e){this.config=e,this.configMap=function(e){let t={};for(let i in e){let n=e[i];n.forEach(e=>{let{value:n}=e;if(Object.prototype.hasOwnProperty.call(t,n))throw Error("Duplicate key in FlagOptions config: "+n);t[n]={...e,parentOption:i}})}return t}(e)}getFlagOption(e){return e?this.configMap[e]:null}renderFlagLabels(e){let{flagReason:t,onSelectReason:i,selectedReason:n}=e;return(0,_.jsx)(w,{arrayOfData:this.config[t],handleSelectReason:i,selectedReason:n})}}var k=i(121151);function j(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class A extends n.Component{constructor(...e){super(...e),j(this,"flagOptions",new S(this.props.flagOptionsConfig)),j(this,"renderContent",()=>{let{content:e,flow:t,onSelectReason:i,selectedReason:n}=this.props;return e||(t===d.Zw.REPORT?this.flagOptions.renderFlagLabels({flagReason:this.props.flagReason||"__default",onSelectReason:i,selectedReason:n}):t===d.Zw.END?(0,_.jsx)(a.xv,{children:this.props.i18n._('We\u2019ll use your feedback to make your Pinterest experience better.', 'final message in reporting flow', 'final message in reporting flow')}):void 0)})}componentDidUpdate(e){let{flow:t,onCompletedReport:i,onCompletedBlock:n}=e;if(this.props.flow!==t)switch(t){case d.Zw.REPORT:i&&i();break;case d.Zw.BLOCK:n&&n()}}render(){let{accessibilityModalLabel:e,deleteAndCloseConversation:t,flagType:i,flow:n,status:l,modalTitle:r,onClose:o,selectedReason:s,submitButton:u,flagReason:c,showPrimaryAction:p,users:h,blockContext:m}=this.props;return(0,_.jsx)(k.ZP,{accessibilityModalLabel:e,heading:r,onDismiss:o,size:"md",footer:n!==d.Zw.BLOCK?(0,_.jsxs)(a.kC,{alignItems:"center",justifyContent:"start",children:[(0,_.jsx)(a.xu,{flex:"grow",children:(0,_.jsx)(P,{flagReason:c,flow:n})}),(0,_.jsx)(a.xu,{padding:1,children:n===d.Zw.REPORT?(0,_.jsx)(a.zx,{fullWidth:!0,onClick:void 0===c?this.props.onClose:()=>{var e,t;null===(e=(t=this.props).onRevert)||void 0===e||e.call(t)},text:void 0===c?this.props.i18n._('Cancel', 'cancel form', 'cancel form'):this.props.i18n._('Back', 'previous step in a form', 'previous step in a form')}):null}),(0,_.jsx)(a.xu,{padding:1,children:(0,_.jsx)(b,{flagOptions:this.flagOptions,flow:n,handleClose:this.props.onClose,handleNext:()=>{var e,t;null===(e=(t=this.props).onNext)||void 0===e||e.call(t)},selectedReason:s,showPrimaryAction:!!p,submitButton:u})})]}):void 0,children:(0,_.jsx)(a.xu,{children:n===d.Zw.BLOCK?(0,_.jsx)(x,{deleteAndCloseConversation:t,flagReason:c,flagType:i,onClose:o,selectedReason:s,status:l,users:h,blockContext:m}):this.renderContent()})})}}function C(e){let t=(0,c.ZP)();return(0,_.jsx)(A,{...e,i18n:t})}var D=i(794230),E=i(600147);let I="policies";function T({aggregatedPinDataId:e,didItDataId:t,onClose:i,pinId:r,username:o,users:u}){let p=(0,c.ZP)(),[m,g]=(0,n.useState)([]),[y,v]=(0,n.useState)(),[f,x]=(0,n.useState)(),b=(0,l.useDispatch)(),P=(e,t,i,n,l)=>b((0,E.Th)(e,t,i,n,l)),{flow:w,modalTitle:S,selectedReason:k,setFlow:j,setModalTitle:A,setSelectedReason:T,setStatus:F,status:z}=(0,s.d)(),R=()=>{if(w===d.Zw.REPORT)switch(f){case"attacks":return p._('What\'s going on?', 'title for report content flow', 'title for report content flow');case I:return p._('What\'s wrong with this Try?', 'title for report content flow', 'title for report content flow');case"IP":return p._('Intellectual Property', 'title for report content flow for IP complaints', 'title for report content flow for IP complaints');default:return p._('What\'s wrong with this Try?', 'title for the report content flow', 'title for the report content flow')}else if(w===d.Zw.END&&m.includes("notUseful"))return p._('Thanks for letting us know!', 'title at end of report flow when content is not useful', 'title at end of report flow when content is not useful');return""};(0,n.useEffect)(()=>{A(R())},[m,w,f]);let L=(0,_.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:()=>{if(F(d.qb.PROCESSING),"ignoreThisPin"===k)j(d.Zw.BLOCK),F(d.qb.STARTED);else{let i=[...m,k];g(i),P(e,i,t,y,o),m.includes("notUseful")?j(d.Zw.END):j(d.Zw.BLOCK),F(d.qb.STARTED)}},text:p._('Report content', 'button to report content', 'button to report content')});return(0,_.jsx)(C,{accessibilityModalLabel:p._('Report conversation', 'Pin.DidIt.Report', 'Accessibility label for report pin did it'),content:"IP"===f?(0,_.jsx)(a.xu,{mdDisplay:"flex",justifyContent:"center",children:(0,_.jsxs)(a.xu,{mdColumn:9,children:[(0,_.jsx)(a.xu,{padding:2,marginStart:2,children:(0,_.jsx)(a.xv,{align:"center",color:"default",weight:"bold",children:p._('If you\u2019ve found content that you believe violates your intellectual property, you can fill out our copyright complaint form.', 'explanation of IP complaint process', 'explanation of IP complaint process')})}),(0,_.jsx)(a.xu,{padding:2,children:(0,_.jsx)(a.ZP,{href:(0,D.Z)(h.GEi,{pin_id:r,user_did_it_id:t}),color:"red",text:p._('File a report', 'link to DMCA form', 'link to DMCA form'),target:"blank"})})]})}):null,flagType:d.Vm.DID_IT,flow:w,modalTitle:S,onClose:i(!0),onNext:()=>{x(k),g([...m,k]),T()},onRevert:()=>{let e=m[m.length-1],t=m.slice(0,-1);T(e),x(t[t.length-1]),g(t),v(),F(void 0===e?d.qb.STARTED:d.qb.SELECTED)},onSelectReason:(e,t,i)=>{e&&(T(t),F(d.qb.SELECTED),v(i))},showPrimaryAction:"IP"!==f,submitButton:L,status:z,selectedReason:k,flagReason:f,users:u,blockContext:null!=e?e:"",flagOptionsConfig:{__default:[{text:p._('It isn\'t useful or relevant', 'tried-it reporting flow', 'tried-it reporting flow'),value:"ignoreThisPin",isTerminalReason:!0,category:"ignoreThisPin"},{text:p._('It shouldn\'t be on Pinterest', 'tried-it reporting flow', 'tried-it reporting flow'),value:I,isTerminalReason:!1},{text:p._('It\'s spam', 'tried-it reporting flow', 'tried-it reporting flow'),value:"spam",isTerminalReason:!0,category:"spam"},{text:p._('It\'s my intellectual property', 'tried-it reporting flow', 'tried-it reporting flow'),isTerminalReason:!1,value:"IP"}],ignoreThisPin:[],policies:[{text:p._('It\'s sexually explicit', 'tried-it reporting flow', 'tried-it reporting flow'),value:"nudity",isTerminalReason:!0,category:"nudity"},{text:p._('It\'s self-harm', 'an option on tried-it reporting flow', 'an option on tried-it reporting flow'),value:"self-harm",isTerminalReason:!0,category:"self-harm"},{text:p._('It\'s hate speech', 'tried-it reporting flow', 'tried-it reporting flow'),value:"hate-speech",isTerminalReason:!0,category:"hate-speech"},{text:p._('It\'s harassment or bullying', 'tried-it reporting flow', 'tried-it reporting flow'),value:"attacks",isTerminalReason:!1,category:"attacks"},{text:p._('It\'s graphic violence', 'tried-it reporting flow', 'tried-it reporting flow'),value:"gore",isTerminalReason:!0,category:"graphic-violence"}],attacks:[{text:p._('It\'s a photo of me or my child', 'tried-it reporting flow', 'tried-it reporting flow'),value:"harassingMeOrMyChild",isTerminalReason:!0,category:"attacks"},{text:p._('It identifies and attacks me or someone I know', 'tried-it reporting flow', 'tried-it reporting flow'),value:"harassingMeOrAFriend",isTerminalReason:!0,category:"attacks"},{text:p._('Something else', 'tried-it reporting flow', 'tried-it reporting flow'),value:"harassingOther",isTerminalReason:!0,category:"attacks"}],IP:[],spam:[]}})}},174798:(e,t,i)=>{"use strict";i.d(t,{Vm:()=>a,Zw:()=>n,qb:()=>l});let n={REPORT:"REPORT",BLOCK:"BLOCK",END:"END"},l={STARTED:"STARTED",SELECTED:"SELECTED",SUBMITTED:"SUBMITTED",PROCESSING:"PROCESSING",COMPLETED:"COMPLETED"},a={CONVERSATION:"CONVERSATION",DID_IT:"DID_IT"}},238464:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(667294),l=i(883119),a=i(590670),r=i(407043),o=i(946984),s=i(898781),d=i(67347),u=i(785893);function c(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let p={overlay:{__style:{backgroundColor:"#000"}}};class h extends n.PureComponent{constructor(...e){super(...e),c(this,"handleRestartVideo",({event:e})=>{var t,i;e.stopPropagation(),null===(t=(i=this.props).onRestartVideo)||void 0===t||t.call(i,{event:e}),(0,d.nP)("web.video.endcard.share",{sampleRate:1,tags:{status:"restart",variant:"enabled_send_first"}})}),c(this,"handleShareVideo",()=>{let{onToggleFlyout:e,isFlyoutOpen:t,pinId:i,requireAuth:n,logContextEvent:l}=this.props;if(t&&(0,d.nP)("web.video.endcard.share",{sampleRate:1,tags:{status:"shareSheetOpen",variant:"enabled_send_first"}}),l({event_type:101,component:179,object_id_str:i,view_type:3,view_parameter:156,element:11731}),n){n();return}e&&e()}),c(this,"handleExternalSend",()=>{(0,d.nP)("web.video.endcard.share",{sampleRate:1,tags:{status:"shareSheetOpen",variant:"enabled_send_first"}})}),c(this,"renderReplayButton",()=>(0,u.jsx)(l.iP,{accessibilityLabel:this.props.i18n._('Watch again', 'Button when pressed restarts the video', 'Button when pressed restarts the video'),onTap:this.handleRestartVideo,rounding:2,children:(0,u.jsxs)(l.xu,{alignItems:"center",display:"flex",padding:2,children:[(0,u.jsx)(l.xu,{marginEnd:3,children:(0,u.jsx)(l.JO,{accessibilityLabel:this.props.i18n._('Watch again', 'Button when pressed restarts the video', 'Button when pressed restarts the video'),icon:"refresh",color:"inverse",size:18})}),(0,u.jsx)(l.X6,{color:"light",overflow:"normal",size:"400",children:this.props.i18n._('Watch again', 'Clickable label when pressed restarts the video', 'Clickable label when pressed restarts the video')})]})})),c(this,"renderShareButton",()=>{let{gridDescription:e,imageSrc:t,isFlyoutOpen:i,onFlyoutDismiss:n,pinId:r}=this.props;return(0,u.jsx)(l.iP,{accessibilityLabel:this.props.i18n._('Send', 'end.video.send.icon.label', 'Clickable label when pressed opens share sheet after video is finished'),onTap:this.handleShareVideo,rounding:2,children:(0,u.jsxs)(l.xu,{alignItems:"center",display:"flex",padding:2,justifyContent:"center",children:[(0,u.jsx)(a.default,{controllerOptions:{flyoutDisplayOptions:{shownWithinMasonry:!0},loggingOptions:{component:179,element:72,onExternalSend:this.handleExternalSend,viewType:3},isFlyoutOpen:i,onFlyoutDismiss:n,onToggleFlyout:()=>{},sendObject:{type:"pin",description:e,id:r,imageUrl:t,url:`/pin/${r}/`}},iconOnly:!0,iconColor:"white",tabIndex:-1}),(0,u.jsx)(l.xu,{children:(0,u.jsx)(l.X6,{color:"light",overflow:"normal",size:"400",children:this.props.i18n._('Send', 'end.video.send.icon.label', 'Clickable label when pressed opens share sheet after video is finished')})})]})})})}componentDidMount(){let{pinId:e,logContextEvent:t}=this.props;(0,d.nP)("web.video.endcard.share",{sampleRate:1,tags:{status:"land",variant:"enabled_send_first"}}),t({event_type:13,component:179,object_id_str:e,view_type:3,view_parameter:156,element:11731})}render(){let{backgroundImage:e,naturalHeight:t,naturalWidth:i,pinTitle:n}=this.props;return(0,u.jsx)(l.xu,{children:(0,u.jsxs)(l.Ee,{alt:n||"",naturalHeight:t,naturalWidth:i,src:e,children:[(0,u.jsx)(l.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,dangerouslySetInlineStyle:p.overlay}),(0,u.jsx)(l.xu,{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",top:!0,left:!0,height:"100%",width:"100%",direction:"column",children:(0,u.jsxs)(l.xu,{position:"absolute",children:[(0,u.jsx)(l.xu,{children:this.renderShareButton()}),(0,u.jsx)(l.xu,{alignSelf:"center",children:this.renderReplayButton()})]})})]})})}}function _(e){let{logContextEvent:t}=(0,r.v)(),i=(0,s.ZP)(),n=(0,o.Z)();return(0,u.jsx)(h,{...e,i18n:i,requireAuth:n,logContextEvent:t})}let m=({backgroundImage:e,naturalHeight:t,naturalWidth:i,onRestartVideo:n,pinTitle:a})=>{let r=(0,s.ZP)();return(0,u.jsx)(l.xu,{children:(0,u.jsxs)(l.Ee,{alt:a||"",naturalHeight:t,naturalWidth:i,src:e,children:[(0,u.jsx)(l.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.8,dangerouslySetInlineStyle:p.overlay}),(0,u.jsx)(l.xu,{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",top:!0,left:!0,height:"100%",width:"100%",children:(0,u.jsx)(l.xu,{children:(0,u.jsx)(l.iP,{onTap:n,rounding:2,children:(0,u.jsxs)(l.xu,{alignItems:"center",display:"flex",padding:2,children:[(0,u.jsx)(l.hU,{accessibilityLabel:r._('Replay', 'closeupVideo.endCard.ReplayButton', 'Button when pressed restarts the video'),icon:"refresh",iconColor:"white",size:"md"}),(0,u.jsx)(l.X6,{color:"light",overflow:"normal",size:"400",children:r._('Replay', 'closeupVideo.endCard.ReplayButton', 'Button when pressed restarts the video')})]})})})})]})})};var g=i(366284),y=i(773285),v=i(466225),f=i(276602),x=i(47168),b=i(985271),P=i(780280),w=i(764537),S=i(646422),k=i(534611),j=i(224496),A=i(858416),C=i(704115),D=i(50286),E=i(179888),I=i(965900),T=i(387957),F=i(944546),z=i(926749);function R(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let L=e=>!!e&&e.endsWith(".gif"),M=(e,t)=>{var i,n;t({currentTime:null!==(i=null==e?void 0:e.currentTime)&&void 0!==i?i:0,duration:null!==(n=null==e?void 0:e.duration)&&void 0!==n?n:1})},Z=e=>e&&document.querySelector(`video[poster="${e}"]`)||null;class B extends n.Component{constructor(...e){super(...e),R(this,"state",{controls:"always"===this.props.showControls&&!this.props.disabled,fullscreen:!1,playing:!(0,g.G6)(this.props.requestContext.userAgent.browserName)&&!!this.props.autoplay&&!this.props.disabled,ready:!1,seeking:!1,showEndCard:!1,volume:this.props.muted||this.props.shouldMute?0:1,videoStartTime:this.props.videoStartTime||0}),R(this,"setVideoPwtLoadingStop",(e=!1)=>{if(!b.Z)return;let{storyPinStepStopwatch:t,pinId:i,pwtSurfaceContext:n}=this.props;t&&(e||t.addAnnotation("video.startup.end"),t.addBinaryAnnotation("pin.id",i,"STRING"),t.addBinaryAnnotation("video",!0,"BOOL"),t.addBinaryAnnotation("preload",e,"BOOL"),t.addSubspan({name:"perceived_video_load",endTime:b.Z.now()}),t.stop()),n&&(e||n.addAnnotation("video.startup.end"),n.addBinaryAnnotation("pin.id",i,"STRING"),n.addBinaryAnnotation("video",!0,"BOOL"),n.markConstraintComplete(T._z),n.addSubspan("perceived_video_load",null,b.Z.now()),"story_pin"===n.getMetricId().segment&&n.removeConstraint(T.pM))}),R(this,"componentDidMount",()=>{let{customThumbnail:e,video:t,preferMp4:i}=this.props,{mp4:n}=t,l=t.hlsv3||t.hls||null,{thumbnail:a}=i&&n||l||{},r=Z(e||a);(null==r?void 0:r.ready)===4&&(this.setState({ready:!0}),this.props.autoplay&&this.setVideoPwtLoadingStop(!0))}),R(this,"componentDidUpdate",(e,t)=>{this.props.videoStartTime&&this.props.videoStartTime!==e.videoStartTime&&this.setState({videoStartTime:this.props.videoStartTime}),!1===e.isPlaying&&this.props.isPlaying&&this.setState({playing:!0,controls:"never"!==this.props.showControls}),e.isPlaying&&!1===this.props.isPlaying&&this.setState({playing:!1}),e.autoplay!==this.props.autoplay&&(this.setState({playing:!!this.props.autoplay}),this.props.autoplay&&this.state.ready&&this.setVideoPwtLoadingStop(!0)),e.muted!==this.props.muted&&this.setState({volume:this.props.muted?0:1}),"never"===this.props.showControls&&t.controls&&this.setState({controls:!1}),(t.controls||t.playing)&&this.props.disabled&&this.setState({playing:!1,controls:!1}),!t.playing&&this.state.playing&&this.props.onPlay&&this.props.onPlay()}),R(this,"handleTouch",()=>{let{seeking:e}=this.state,{disabled:t}=this.props;e||t||this.setState(e=>({playing:!e.playing}))}),R(this,"handleShowControls",()=>this.setState({controls:!0})),R(this,"handleHideControls",()=>this.setState({controls:!1})),R(this,"handleReady",()=>{let{ready:e,playing:t}=this.state,{autoplay:i,disabled:n}=this.props;i&&!e&&this.setVideoPwtLoadingStop(),this.setState({ready:!0}),(0,g.G6)(this.props.requestContext.userAgent.browserName)&&!t&&i&&!n&&this.setState({playing:!0})}),R(this,"handleEnded",({event:e})=>{let{customThumbnail:t,customEndCard:i,pinId:n,setCurrentVideo:l,loop:a,onEnded:r}=this.props;e.stopPropagation(),!a&&(this.setState({playing:!1}),L(t)||i||(this.setState({showEndCard:!0,videoStartTime:0}),l({pinId:n,isPromoted:!1,currentTime:0})),this.state.fullscreen&&this.exitFullscreen()),r&&r()}),R(this,"handlePause",({event:e})=>{e.stopPropagation(),this.setState({playing:!1})}),R(this,"handlePlay",({event:e})=>{e.stopPropagation(),this.setState({playing:!0})}),R(this,"handleFullscreenChange",({event:e,fullscreen:t})=>{e.stopPropagation(),this.setState({fullscreen:t})}),R(this,"handlePlayheadDown",()=>{this.setState({seeking:!0})}),R(this,"handlePlayheadUp",()=>{setTimeout(()=>{this.setState({seeking:!1})},500)}),R(this,"handleRestartVideo",({event:e})=>{e.stopPropagation(),this.setState({playing:!0,showEndCard:!1})}),R(this,"handleShareRestartVideo",({event:e})=>{e.stopPropagation(),this.setState({playing:!0,showEndCard:!1})}),R(this,"handleVolumeChange",({event:e,volume:t})=>{let{shouldMute:i}=this.props;e.stopPropagation(),i||this.setState({volume:t})}),R(this,"exitFullscreen",()=>{let{document:e}=window;(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())}),R(this,"renderCloseupVideoEndCard",(e,t,i,n)=>{let l={backgroundImage:e,naturalHeight:t,naturalWidth:i,onRestartVideo:this.handleShareRestartVideo},a={backgroundImage:e,naturalHeight:t,naturalWidth:i,onRestartVideo:this.handleRestartVideo},{flyoutShareProps:r}=this.props,o={gridDescription:r?r.gridDescription:"",imageSrc:r?r.imageSrc:"",isFlyoutOpen:!!r&&r.isFlyoutOpen,onFlyoutDismiss:r?r.onFlyoutDismiss:()=>{},onToggleFlyout:r?r.onToggleFlyout:()=>{},pinId:r?r.pinId:""};return n?(0,u.jsx)(m,{...a}):(0,u.jsx)(_,{...o,...l})})}render(){let e;let{autoplay:t,closeupStoryPinViewability:i,contextLogData:n={component:179,is_closeup_video:!0,objectId:this.props.pinId,view:3,viewParameter:156},customThumbnail:a,isPromoted:r,loop:o,objectFit:s,preferMp4:d,preload:c,requestContext:p,roundingOverride:h,showControls:_,variant:m,video:y,captions:f,videoThumbnailStartTime:x,pinId:b,setProgressInfo:P,progressInfo:A,setPanelOpen:C,panelOpen:D,setMute:I,isMuted:T,captionsExpGroup:R,onTimeChange:L}=this.props;n.is_closeup_video=!0;let{controls:Z,fullscreen:B,playing:O,showEndCard:N,volume:K,videoStartTime:U}=this.state,H=y.hlsv3||y.hls||null;if(!H&&!y.mp4)return null;let{mp4:V}=y,G=d&&V&&V.url||H&&[{type:"video/m3u8",src:H.url}]||void 0,{height:W,thumbnail:$,width:q}=d&&V||H||{},Y=a||$;return e=null!=h?h:"default"===m?0:"storyPin"===m?j.yR:2,(0,u.jsxs)(l.zd,{willChangeTransform:!((0,g.G6)(p.userAgent.browserName)&&B),rounding:e,wash:!0,children:[N?this.renderCloseupVideoEndCard(null!=Y?Y:"",null!=W?W:1,null!=q?q:1,r):(0,u.jsxs)(l.iP,{accessibilityLabel:this.props.i18n._('Pause or play video', 'pin.closeup.video.tap', 'tap area to pause or play video'),onMouseEnter:"hover"===_?this.handleShowControls:void 0,onMouseLeave:"hover"===_?this.handleHideControls:void 0,onTap:this.handleTouch,rounding:2,children:[R&&(0,v.Z)(R)&&(0,u.jsx)(S.Z,{playing:O,zIndexValue:99}),(0,u.jsx)(z.ZP,{contextLogData:{...n,video_id:this.props.video.id},aspectRatio:(null!=q?q:1)/(null!=W?W:1),closeupStoryPinViewability:i,captions:R&&(0,v.Z)(R)?f:"",controls:!(R&&(0,v.Z)(R))&&Z,hlsConfig:{startLevel:F.V},isAutoPlay:!!t,objectFit:s,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onControlsPause:this.handlePause,onControlsPlay:this.handlePlay,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onTimeChange:"storyPin"===m?L:({time:e})=>{if(M&&"number"==typeof(null==V?void 0:V.duration)&&V.duration>0&&P){let t=V.duration/E.gJ;M({currentTime:e,duration:t},P)}},onVolumeChange:this.handleVolumeChange,preferMp4:d,playing:O,onPlay:()=>{},onPlayError:()=>{},preload:c,poster:Y,src:G,videoStartTime:U||x,volume:K,loop:o})]}),(0,u.jsx)(l.xu,{paddingX:1,children:"storyPin"!==m&&R&&(0,v.Z)(R)&&(0,u.jsx)(l.xu,{display:"flex",position:"absolute",bottom:!0,width:"calc(100% - 4px)",zIndex:j.Gf,paddingX:6,dangerouslySetInlineStyle:{__style:{...w.l3,flexDirection:"column-reverse"}},height:w.hy,children:(0,u.jsx)(k.Z,{activePageIndex:0,handleMute:()=>{this.setState({volume:T?0:1}),I(!T)},handlePanelChange:()=>{C&&C(!D)},handlePausePlay:()=>{this.setState({playing:!O})},handlePause:()=>{this.setState({playing:!0})},handlePlay:()=>{this.setState({playing:!0})},handleWatchAgain:this.handleRestartVideo,isMuted:T,isPanelOpen:D,pageCount:1,pages:[],pinId:b,isPlaying:O,progressInfo:A,showEndCard:N,showVideoControls:"hover"===_,viewParameter:156,isStoryPin:!1,captionsUrl:f,captionsExpGroup:R})})})]})}}function O(e){var t,i;let l=(0,s.ZP)(),a=(0,P.B)(),{isAuthenticated:r}=a,o=(0,x.g)(),d=(0,f.E)(),{seekTime:c}=(0,A.Hx)(),{pinId:p,isPromoted:h,video:_,muted:m,variant:g}=e,{appUI:v,setCurrentVideo:b}=(0,I.I)(),{videosAutoplaying:w}=v,{organicVideosAutoplaying:S,promotedVideosAutoplaying:k}=w,j=a.locale.toLowerCase(),E=null!==(t=null===(i=_.mp4)||void 0===i?void 0:i.captions_urls)&&void 0!==t?t:{},T=j&&E[j]||Object.values(E)[0]||"",{checkExperiment:F}=(0,y.F)(),z=(0,D.HG)(),R="storyPin"!==g&&T&&z&&r?F("auth_desktop_video_pin_captions").group:"",L=h?k[p]:S[p],M=(0,C.Z)(),Z=parseInt(M.t||0,10),[O,N]=(0,n.useState)((null==L?void 0:L.currentTime)||0),[K,U]=(0,n.useState)(null),[H,V]=(0,n.useState)(!0),[G,W]=(0,n.useState)(!m);return(0,n.useEffect)(()=>{let e=O;Z>0&&(e=Z),c&&(e=c),N(e)},[c,Z,O]),(0,u.jsx)(B,{...e,i18n:l,isPlaying:!L||!L.paused,captions:String(T)||"",pwtSurfaceContext:d,requestContext:a,setCurrentVideo:b,storyPinStepStopwatch:o,videoStartTime:O,progressInfo:K,setProgressInfo:U,panelOpen:H,setPanelOpen:V,setMute:W,isMuted:G,captionsExpGroup:R})}R(B,"defaultProps",{loop:!1,showControls:"hover"})},413614:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n,l=i(667294);i(167912);var a=i(616550),r=i(768559),o=i(558068),s=i(407043),d=i(186656),u=i(357998),c=i(623568),p=i(692627),h=i(999018),_=i(785893);let m=void 0!==n?n:n=i(348853),g=e=>{var t;return{board:e.board&&{url:e.board.url},entityId:e.id,link:e.link,pinner:e.pinner&&{username:e.pinner.username},richMetadata:e.rich_metadata&&{article:e.rich_metadata.article&&{__typename:"ArticleMetadata"},products:e.rich_metadata.products&&e.rich_metadata.products.map(()=>({__typename:"RichPinProductMetadata"})),recipe:(null===(t=e.rich_metadata)||void 0===t?void 0:t.recipe)&&{__typename:"RecipeMetadata"}},storyPinData:e.story_pin_data&&{__typename:"StoryPinData"},storyPinDataId:e.story_pin_data_id,trackedLink:e.tracked_link,trackingParams:e.tracking_params}};function y({children:e,hovered:t,pinKey:i,slotIndex:n,trafficSource:y,trackingParamsMap:v,viewType:f}){var x,b,P,w,S;let{logContextEvent:k}=(0,s.v)(),[j,A]=(0,l.useState)(),[C,D]=(0,l.useState)(),{data:E,childDataKey__DEPRECATED:I}=(0,u.Q)(m,i,{useLegacyAdapter:g}),{entityId:T,trackedLink:F,link:z}=E,R=F||z||"",L=()=>{A(!0)},M=function(e){let t=(0,a.useLocation)(),{previous:i}=(0,o.Hv)();return(0,r.Z)({...e,location:t,previousHistory:i})}({boardUrl:null===(x=E.board)||void 0===x?void 0:x.url,pinId:T,pinnerUserName:null===(b=E.pinner)||void 0===b?void 0:b.username,storyPinDataId:E.storyPinDataId,trackingParams:E.trackingParams,trackingParamsMap:v}),Z=(0,p.Z)({hasPin:!!E,hasPinRichMetadata:!!E.richMetadata,hasPinRichMetadataProducts:!!(null!==(P=E.richMetadata)&&void 0!==P&&P.products),hasPinRichMetadataArticle:!!(null!==(w=E.richMetadata)&&void 0!==w&&w.article),hasPinRichMetadataRecipe:!!(null!==(S=E.richMetadata)&&void 0!==S&&S.recipe),hasPinStoryPinData:!!E.storyPinData}),B=(0,h.Z)(I),O=(0,l.useCallback)(()=>{let e=B();(0,d.Z)({url:"/v3/offsite/",data:{check_only:!1,pin_id:T,url:R,client_tracking_params:M,aux_data:JSON.stringify({clickthrough_type:"rightClick",objectId:T,...n||{},...e})}}).then(t=>{t&&(k({event_type:12,object_id_str:T,view_type:f,view_parameter:Z,aux_data:{clickthrough_type:"rightClick",...n||{},...e}}),k({event_type:8948,view_type:f,object_id_str:T,view_parameter:Z,aux_data:{click_type:"clickthrough",closeup_navigation_type:y&&(0,c.sV)(y)?"deeplink":"click",clickthrough_type:"rightClick",...n||{},...e}}))})}),N=e=>{if(j){var t;/^\/pin/.test(null===(t=e.target.activeElement.attributes.href)||void 0===t?void 0:t.value)||(O(),A(!1)),window.removeEventListener(C,N,!1)}};return(0,l.useEffect)(()=>{var e,t,i,n,l,a;void 0!==(null===(e=window)||void 0===e?void 0:null===(t=e.document)||void 0===t?void 0:t.hidden)?D("visibilitychange"):void 0!==(null===(i=window)||void 0===i?void 0:null===(n=i.document)||void 0===n?void 0:n.msHidden)?D("msvisibilitychange"):void 0!==(null===(l=window)||void 0===l?void 0:null===(a=l.document)||void 0===a?void 0:a.webkitHidden)&&D("webkitvisibilitychange")},[]),(0,l.useEffect)(()=>(j&&window&&window.addEventListener(C,N,!1),()=>window.removeEventListener(C,N)),[j,C]),(0,l.useEffect)(()=>(t&&window.addEventListener("contextmenu",L),()=>{window.removeEventListener("contextmenu",L)}),[t]),(0,_.jsx)(l.Fragment,{children:e})}},918301:(e,t,i)=>{"use strict";i.d(t,{CB:()=>h,y9:()=>p});var n=i(667294),l=i(425288),a=i(883119),r=i(186656),o=i(121151),s=i(898781),d=i(785893);let u=({onConfirm:e})=>{let t=(0,s.ZP)(),[i,l]=(0,n.useState)(!1),u=()=>{l(!0),(0,r.Z)({url:"/v3/users/email/verify/resend/",method:"POST"})};return(0,d.jsx)(o.ZP,{accessibilityModalLabel:t._('Verify your email', 'Accessible label for email verification being required', 'Accessible label for email verification being required'),onDismiss:e,heading:t._('Verify your email', 'Accessible label for email verification being required', 'Accessible label for email verification being required'),footer:(0,d.jsxs)(a.kC,{justifyContent:"end",gap:{row:2,column:0},children:[i?(0,d.jsx)(a.zx,{fullWidth:!0,size:"lg",color:"gray",text:t._('Email sent', 'Button text for verification email being sent', 'Button text for verification email being sent'),disabled:i,onClick:u}):(0,d.jsx)(a.zx,{fullWidth:!0,size:"lg",color:"gray",text:t._('Resend email', 'Button text for resending email verification email', 'Button text for resending email verification email'),disabled:i,onClick:u}),(0,d.jsx)(a.zx,{fullWidth:!0,size:"lg",color:"red",text:t._('Got it', 'Button text for acknowledging email verificaiton is required', 'Button text for acknowledging email verificaiton is required'),onClick:e})]}),role:"alertdialog",children:(0,d.jsx)(a.xu,{padding:8,children:(0,d.jsx)(a.xv,{align:"center",size:"300",children:t._('Keep your account secure by verifying your email address. Check the inbox associated with this account for an email from us to continue using Pinterest.', 'Inform users that they need to verify their email to keep their account secure and continue using Pinterest', 'Inform users that they need to verify their email to keep their account secure and continue using Pinterest')})})})},{Provider:c,useHook:p}=(0,l.Z)("EmailVerificationReminderModal");function h({children:e}){let[t,i]=(0,n.useState)(!1),l=(0,n.useMemo)(()=>({showEmailVerificationReminderModal:()=>{i(!0)}}),[]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(c,{value:l,children:e}),t&&(0,d.jsx)(u,{onConfirm:()=>{i(!1)}})]})}},558068:(e,t,i)=>{"use strict";i.d(t,{Hv:()=>s,aX:()=>c,nK:()=>p});var n=i(667294),l=i(616550),a=i(425288),r=i(785893);let{Provider:o,useHook:s}=(0,a.Z)("HistoryStackContext",{previous:[],current:null,forward:[]}),d=e=>e&&e.pathname?e.pathname+(e.search||""):"";function u(e,t){var i;let n={action:t.type,location:t.location,match:t.match};if(t.location===(null===(i=e.current)||void 0===i?void 0:i.location))return e;switch(t.type){case"POP":if(e.forward.length>0&&d(e.forward[0].location)===d(n.location))return{...e,forward:e.forward.slice(1),current:{...e.forward[0],action:t.type},previous:e.current?[...e.previous,{action:e.current.action,location:e.current.location,match:e.current.match}]:e.previous};return{...e,forward:e.current?[{action:e.current.action,location:e.current.location,match:e.current.match},...e.forward]:e.forward,current:{...e.previous.slice(-1)[0],action:t.type},previous:e.previous.slice(0,-1)};case"PUSH":return{...e,forward:e.forward.length>0?[]:e.forward,current:n,previous:e.current?[...e.previous,{action:e.current.action,location:e.current.location,match:e.current.match}]:e.previous};case"REPLACE":return{...e,current:n};default:return e}}function c(){let{current:e,previous:t}=s(),i=(0,n.useMemo)(()=>e?t.concat(e):t,[e,t]);return i}function p({children:e}){let t=(0,l.useHistory)(),i=(0,l.useLocation)(),a=(0,l.useRouteMatch)(),s={forward:[],current:{action:t.action,location:i,match:a},previous:[]},[d,c]=(0,n.useReducer)(u,s);return(0,n.useEffect)(()=>{let{action:e}=t;c({type:e,location:i,match:a})},[i]),(0,r.jsx)(o,{value:d,children:e})}},241244:(e,t,i)=>{"use strict";i.d(t,{N:()=>r,Z:()=>a});var n=i(883119),l=i(785893);function a({children:e,fullWidth:t}){return(0,l.jsx)(n.xu,{"data-test-id":"pointer-events-wrapper",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto",width:t?"100%":void 0}},children:e})}function r({children:e,enabled:t}){return t?(0,l.jsx)(a,{children:e}):e}},310227:(e,t,i)=>{"use strict";i.d(t,{Dv:()=>a,Ml:()=>r,Oc:()=>n,mv:()=>l});let n=16,l=4,a={SAVED:"rgba(0, 0, 0, 0.33)",VISUAL:"rgba(0, 0, 0, 0.1)",LEGO_WASH:"rgba(0, 0, 0, 0.4)"},r=120},483205:(e,t,i)=>{"use strict";i.d(t,{I6:()=>l,Nv:()=>n,RZ:()=>a,ZG:()=>s,b9:()=>o,s0:()=>r});let n=44,l=24,a=446,r=.05,o=36,s=20},754320:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(667294),l=i(883119),a=i(407043),r=i(643010),o=i(444445),s=i(898781),d=i(905031),u=i(50286),c=i(785893);let p=({contentIds:e,previewImageSrc:t,url:i,buttonText:p,imageWidth:h,isInMobileCarousel:_,slideWidth:m,shape:g="square",storyId:y,storyType:v,view:f,viewParameter:x,component:b,element:P})=>{let w="square"===g?4:"circle",S=null!=h?h:o.yF,k=(0,d.Z)()?o.tG:S,j=(0,u.HG)(),A=(0,r.vs)(),{logContextEvent:C}=(0,a.v)(),D=(0,s.ZP)(),E=(0,n.useMemo)(()=>!Number.isNaN(f)&&!Number.isNaN(x)&&!Number.isNaN(b)&&!Number.isNaN(P),[f,x,b,P]),I="lg";return _&&m&&(I=m>150?"lg":m>135&&m<=150?"md":"sm"),(0,n.useEffect)(()=>{E&&C({event_type:120,view_type:f,view_parameter:x,component:b,element:P,aux_data:{content_ids:e,story_id:y,story_type:v}})},[e,C,f,x,b,P,E,y,v]),(0,c.jsx)(l.xu,{"data-test-id":"sf-action-item-rep",children:(0,c.jsx)(l.xu,{width:_?m:k,height:_?m:k,color:"secondary",rounding:w,overflow:"hidden",children:(0,c.jsx)(l.zd,{height:"100%",width:"100%",wash:!0,rounding:w,children:(0,c.jsx)(l.Ee,{src:t,alt:D._('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)(l.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)(l.ZP,{onClick:()=>{E&&C({event_type:j?101:102,view_type:f,view_parameter:x,component:b,element:P,aux_data:{content_ids:e,story_id:y,story_type:v}})},text:p,href:i,color:A?"gray":"white",size:I})})})})})})}},701865:(e,t,i)=>{"use strict";i.d(t,{Z:()=>D});var n=i(667294),l=i(616550),a=i(883119),r=i(407043),o=i(366428),s=i(992061),d=i(444445),u=i(898781),c=i(608760),p=i(215292),h=i(785893);function _({item:e={},imagePlaceholderColor:t=c.hK,onTap:i}){var l,r;let o=(0,u.ZP)(),_=null==e?void 0:null===(l=e.cover_images)||void 0===l?void 0:l[0],m=null==_?void 0:_["236x"];return(0,h.jsx)(a.iP,{onTap:i,children:(0,h.jsxs)(n.Fragment,{children:[(0,h.jsx)(p.q,{children:({hovered:e,onMouseEnter:i,onMouseLeave:n})=>(0,h.jsx)(a.xu,{marginBottom:2,"data-test-id":"category-bubble",onMouseEnter:i,onMouseLeave:n,children:(0,h.jsxs)(a.zd,{height:d.yF,rounding:"circle",wash:!0,width:d.yF,children:[(0,h.jsx)(s.Z,{hovered:e,rounding:"circle"}),(0,h.jsx)(a.Ee,{alt:o._('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==m?void 0:m.url)||""})]})})}),(null==e?void 0:null===(r=e.title)||void 0===r?void 0:r.format)&&(0,h.jsx)(a.xu,{width:d.yF,children:(0,h.jsx)(a.xv,{align:"center",weight:"bold",children:e.title.format})})]})})}var m=i(752802),g=i(57427),y=i(327651),v=i(641968),f=i(50286);let x=["170x","192x","200x","236x"];var b=i(668916);let P="pill";var w=i(642345),S=i(48125),k=i(429091),j=i(180910);let A=()=>{},C={2:_,3:function({item:e={},onTap:t}){let i=(0,u.ZP)(),n=null==e?void 0:e.identifier_icon_type,{icon:l,text:r}=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}}}(n,i);return(0,h.jsx)(a.iP,{onTap:t,tapStyle:"compress",rounding:l?5:P,children:(0,h.jsx)(p.q,{children:({active:t,hovered:i,onMouseEnter:n,onMouseLeave:o,onFocus:u,onBlur:c})=>{var p,_,m;return(0,h.jsxs)(a.xu,{"data-test-id":"navigation-bubble",onMouseEnter:n,onMouseLeave:o,onFocus:u,onBlur:c,rounding:5,children:[l&&(0,h.jsxs)(a.zd,{height:85,rounding:5,wash:!0,width:85,children:[(0,h.jsx)(s.Z,{hovered:i}),(0,h.jsx)(a.xu,{alignItems:"center",color:"secondary",display:"flex",height:"100%",justifyContent:"center",padding:2,width:"100%",children:(0,h.jsx)(a.JO,{accessibilityLabel:r||"",color:"default",icon:l,size:32})})]}),r&&(0,h.jsx)(a.xu,{marginTop:2,width:85,children:(0,h.jsx)(a.xv,{align:"center",weight:"bold",children:r})}),!l&&!r&&(null==e?void 0:null===(p=e.title)||void 0===p?void 0:p.format)&&(0,h.jsx)(a.xu,{rounding:P,dangerouslySetInlineStyle:{__style:{backgroundColor:null===(_=e.aux_fields)||void 0===_?void 0:_.button_background_color}},children:(0,h.jsx)(a.xu,{rounding:P,padding:4,dangerouslySetInlineStyle:{__style:{backgroundColor:t&&"rgba(0, 0, 0, 0.15)"||i&&"rgba(0, 0, 0, 0.06)"||void 0}},children:(0,h.jsx)(a.xv,{align:"center",weight:"normal",color:(null===(m=e.aux_fields)||void 0===m?void 0:m.button_text_color)==="#ffffff"?"inverse":"default",children:(0,h.jsx)(a.xu,{maxWidth:d.yF-16,overflow:"hidden",dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:e.title.format})})})})]})}})})},1:function({item:e={},onTap:t}){var i;let n=(0,u.ZP)(),l=null==e?void 0:null===(i=e.cover_images)||void 0===i?void 0:i[0],r=null==l?void 0:l["236x"];return(0,h.jsx)(a.iP,{onTap:t,tapStyle:"compress",rounding:3,children:(0,h.jsx)(p.q,{children:({hovered:t,onMouseEnter:i,onMouseLeave:l})=>{var o;return(0,h.jsx)(a.xu,{"data-test-id":"search-bubble",onMouseEnter:i,onMouseLeave:l,rounding:3,children:(0,h.jsxs)(a.zd,{height:150,rounding:3,wash:!0,width:300,children:[(0,h.jsx)(s.Z,{hovered:t}),(0,h.jsx)(a.Ee,{alt:n._('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==r?void 0:r.url)||"",children:(0,h.jsx)(a.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===(o=e.title)||void 0===o?void 0:o.format)&&(0,h.jsx)(a.X6,{color:"inverse",size:"400",children:e.title.format})})})]})})}})})},4:function({item:e,onTap:t,slotIndex:i}){let{action:n,aux_fields:l,cover_images:r,dominant_colors:o,title:s}=e;if(!s||!r||!n)return null;let d=r.length<=0?[{}]:r.slice(0,2);return(0,h.jsx)(a.iP,{onTap:t,tapStyle:"compress",rounding:4,children:(0,h.jsxs)(a.xu,{alignItems:"center","data-test-id":"style-bubble",display:"flex",height:258,justifyContent:"center",overflow:"hidden",position:"relative",rounding:4,width:k.u,children:[(0,h.jsx)(a.kC,{children:d.map((e,t)=>{var n,l,r;return(0,h.jsx)(a.zd,{height:258,wash:!0,width:k.u/d.length,children:(0,h.jsx)(a.Ee,{alt:"",color:(o||[])[t],fit:"cover",naturalHeight:1,naturalWidth:1,role:"presentation",src:(null===(n=e["474x"])||void 0===n?void 0:n.url)||(null===(l=e["736x"])||void 0===l?void 0:l.url)||(null===(r=e["236x"])||void 0===r?void 0:r.url)||""})},`styleCarousel_bubble${i}_pin${t}`)})}),(0,h.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:null==l?void 0:l.button_background_color}},paddingX:4,paddingY:3,position:"absolute",rounding:"pill",children:(0,h.jsx)(a.xv,{align:"center",weight:"bold",children:(0,h.jsx)("span",{style:{color:null==l?void 0:l.button_text_color,margin:"0"},children:s.format})})})]})})},13:({item:e={},onTap:t})=>{var i,n,l,r;let o=(0,u.ZP)(),s=(0,f.HG)(),c=null===(i=e.action)||void 0===i?void 0:i.url;if(!c)return null;let p=e.curator||{},_=p.full_name||"",b=p.username||"",P=p.image_medium_url||"",w=(null===(n=p.verified_identity)||void 0===n?void 0:n.verified)||!1,S=p.is_verified_merchant||!1,[k={},j={}]=e.cover_images||[],A=(null===(l=(0,m.Z)({images:k,resolutionPreferences:x}))||void 0===l?void 0:l.url)||"",C=(null===(r=(0,m.Z)({images:j,resolutionPreferences:x}))||void 0===r?void 0:r.url)||"";if(!A||!C)return null;let D=s?d.yF:d.tG;return(0,h.jsxs)(a.xu,{width:D,"data-test-id":"default-brand-article",children:[(0,h.jsx)(a.Tg,{rounding:3,href:c,accessibilityLabel:"",onTap:t,children:(0,h.jsxs)(a.xu,{height:157,children:[(0,h.jsx)(a.zd,{rounding:4,height:157,width:D,wash:!0,children:(0,h.jsxs)(a.kC,{children:[(0,h.jsx)(g.Z,{height:157,width:D/2,src:A}),(0,h.jsx)(a.xu,{color:"default",width:1}),(0,h.jsx)(g.Z,{height:157,width:D/2,src:C})]})}),(0,h.jsx)(a.xu,{display:"flex",justifyContent:"center",marginTop:-8,children:(0,h.jsx)(y.Z,{size:64,src:P||"",color:"gray",fullName:_||b})})]})}),(0,h.jsx)(a.xu,{height:40}),_&&(0,h.jsx)(v.Z,{name:_,isDomainVerified:w,isVerifiedMerchant:S}),(0,h.jsx)(a.xu,{marginTop:2,marginBottom:2,justifyContent:"center",width:"100%",display:"flex",children:(0,h.jsx)(a.ZP,{text:o._('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:o._('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 i=(0,f.HG)(),{action:n,cover_images:l,dominant_colors:r,title:o,subtitle:s}=e,d=null==o?void 0:o.format;if(!d||!l||!n)return null;let u=i?200:150,c=i?j.KW:j.hk,p=i?j.d:j.Gd,_=(null==s?void 0:s.format)||"",g=l.slice(0,3);return(0,h.jsx)(a.iP,{onTap:t,tapStyle:"compress",rounding:4,children:(0,h.jsxs)(a.xu,{"data-test-id":"triple-preview-display-card",rounding:4,width:p,children:[(0,h.jsx)(a.zd,{height:u,wash:!0,width:p,rounding:4,children:(0,h.jsx)(a.kC,{alignItems:"stretch",justifyContent:"start",children:g.map((e,t)=>{var i;let n=(null===(i=(0,m.Z)({images:e,resolutionPreferences:["200x","236x","400x"]}))||void 0===i?void 0:i.url)||"";return(0,h.jsx)(a.xu,{height:u,width:c,children:(0,h.jsx)(a.Ee,{alt:"",color:(r||[])[t],fit:"cover",naturalHeight:200,naturalWidth:200,role:"presentation",src:n})},n)})})}),(0,h.jsxs)(a.xu,{marginTop:4,children:[(0,h.jsx)(a.kC,{justifyContent:"center",children:(0,h.jsx)(a.xv,{size:"400",weight:"bold",align:"center",children:d})}),_&&(0,h.jsx)(a.xu,{display:"flex",justifyContent:"center",marginTop:1,children:(0,h.jsx)(a.xv,{size:i?"200":"100",color:"subtle",align:"center",children:_})})]})]})})},20:function({item:e,onTap:t}){let i=(0,f.HG)(),{action:n,cover_images:l,aux_fields:r,title:o,subtitle:s,dominant_colors:d=[]}=e,u=(null==o?void 0:o.format)||"",{background_color:c}=r||{};if(!u||!l||!n||!c)return null;let p=i?S.m:S.d,_=i?186:160,g=i?126:108,y=i?137:118,v=i?92:80,x=(null==s?void 0:s.format)||"",b=l.slice(0,3).map(e=>{var t;return(null===(t=(0,m.Z)({images:e,resolutionPreferences:["200x","236x","400x"]}))||void 0===t?void 0:t.url)||""}),P=(0,w.zI)(c)?"light":"dark";return(0,h.jsx)(a.iP,{onTap:t,tapStyle:"compress",rounding:4,children:(0,h.jsx)(a.xu,{"data-test-id":"stacked-collage-display-card",rounding:4,width:p,height:p,dangerouslySetInlineStyle:{__style:{backgroundColor:c}},overflow:"hidden",children:(0,h.jsxs)(a.xu,{position:"relative",height:p,padding:2,children:[(0,h.jsxs)(a.xu,{marginTop:4,marginBottom:3,children:[(0,h.jsx)(a.kC,{justifyContent:"center",children:(0,h.jsx)(a.xv,{lineClamp:1,align:"center",size:"400",weight:"bold",color:P,children:u})}),x&&(0,h.jsx)(a.xu,{display:"flex",justifyContent:"center",marginTop:1,children:(0,h.jsx)(a.xv,{lineClamp:1,align:"center",size:"100",color:P,children:null==s?void 0:s.format})})]}),(0,h.jsx)(a.xu,{position:"absolute",left:!0,bottom:!0,children:(0,h.jsx)(a.zd,{height:y,wash:!0,width:v,rounding:4,children:(0,h.jsx)(a.xu,{height:y,width:v,children:(0,h.jsx)(a.Ee,{alt:"",color:d[1],fit:"cover",naturalHeight:200,naturalWidth:200,role:"presentation",src:b[1]})})})}),(0,h.jsx)(a.xu,{position:"absolute",right:!0,bottom:!0,children:(0,h.jsx)(a.zd,{height:y,wash:!0,width:v,rounding:4,children:(0,h.jsx)(a.xu,{height:y,width:v,children:(0,h.jsx)(a.Ee,{alt:"",color:d[2],fit:"cover",naturalHeight:200,naturalWidth:200,role:"presentation",src:b[2]})})})}),(0,h.jsx)(a.xu,{display:"flex",justifyContent:"center",left:!0,right:!0,dangerouslySetInlineStyle:{__style:{bottom:"-22px"}},position:"absolute",children:(0,h.jsx)(a.zd,{height:_,wash:!0,width:g,rounding:4,children:(0,h.jsx)(a.xu,{height:_,width:g,children:(0,h.jsx)(a.Ee,{alt:"",color:d[0],fit:"cover",naturalHeight:200,naturalWidth:200,role:"presentation",src:b[0]})})})})]})})})},21:function({item:e,onTap:t}){var i,n,l;let{cover_images:r,dominant_colors:o,title:s}=e;if(!s||!r)return null;let d=r[0];return(0,h.jsx)(a.iP,{onTap:t,tapStyle:"compress",rounding:4,children:(0,h.jsx)(a.xu,{borderStyle:"shadow",color:"default",overflow:"hidden",position:"relative",rounding:4,height:189,width:b.H,children:(0,h.jsx)(a.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:(0,h.jsx)(a.Ee,{alt:"",fit:"cover",naturalHeight:1,naturalWidth:1,role:"presentation",src:(null===(i=d["474x"])||void 0===i?void 0:i.url)||(null===(n=d["736x"])||void 0===n?void 0:n.url)||(null===(l=d["236x"])||void 0===l?void 0:l.url)||"",color:(o||[])[0],children:(0,h.jsx)(a.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,h.jsx)(a.kC,{alignItems:"stretch",direction:"column",justifyContent:"start",width:"100%",children:(0,h.jsx)(a.xv,{align:"start",weight:"bold",color:"light",size:"300",children:s.format})})})})})})})}};function D(e){var t,i;let{component:s,slotIndex:d,item:u,showExpandedHeader:c,story:p,view:m,viewParameter:g}=e,{display_options:y,story_type:v,id:f,content_ids:x}=p||{},{logContextEvent:b}=(0,r.v)(),P=(0,l.useHistory)(),w=null==u?void 0:u.id,S=(0,n.useMemo)(()=>({story_type:v,story_id:f,content_ids:x,article_id:w}),[w,x,f,v]),k=(0,o.Z)({componentType:s,contextLogData:S,impressionType:"Article",loggingId:w,objectIdStr:w,slotIndex:d,viewParameter:g,viewType:m}),j=c?null==y?void 0:null===(t=y.item_view_rep_style)||void 0===t?void 0:t.expanded_explore_article_rep_style:null==y?void 0:null===(i=y.item_view_rep_style)||void 0===i?void 0:i.explore_article_rep_style,{action:D}=u||{},{url:E=""}=D||{},I=Object.hasOwnProperty.call(C,j)?C[j]:_,T=c?A:()=>{P.push(E),b({event_type:101,component:s,view_type:m,view_parameter:g,aux_data:S})};return(0,h.jsx)(a.xu,{ref:k,children:(0,h.jsx)(I,{...e,onTap:T})})}},668916:(e,t,i)=>{"use strict";i.d(t,{H:()=>n});let n=252},48125:(e,t,i)=>{"use strict";i.d(t,{d:()=>n,m:()=>l});let n=216,l=258},429091:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});let n=369},180910:(e,t,i)=>{"use strict";i.d(t,{Gd:()=>a,KW:()=>l,d:()=>r,hk:()=>n});let n=108,l=124,a=3*n,r=3*l},232921:(e,t,i)=>{"use strict";i.d(t,{lf:()=>l,wg:()=>a,xR:()=>n});let n=299,l=270,a=232},981228:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(667294),l=i(883119),a=i(407043),r=i(34518);let o=e=>e?r.a$:r.Ql;function s(e,t,i){return{backgroundColor:`rgba(${e.join(", ")}, ${o(i||t)})`,marginRight:t?"2px":"0px",marginLeft:t?"2px":"0px"}}var d=i(232921),u=i(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,i)=>{let n;switch(i){case"MOBILE":n={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":n={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":n={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:n={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 l=n[e];return l.border="1px solid #FFFFFF",l.transition="all 150ms ease-out",l};function h({fanOut:e,card:t,index:i,size:n}){let a;let r=c[n],{height:o=r.HEIGHT_PX,url:s,width:d=r.WIDTH_PX,colorRGB:h,opacity:_}=t;return s?a=(0,u.jsx)(l.Ee,{alt:s,fit:"cover",naturalHeight:o,naturalWidth:d,src:s}):h&&_&&(a=(0,u.jsx)(l.xu,{height:r.HEIGHT_PX,width:r.WIDTH_PX,dangerouslySetInlineStyle:{__style:{backgroundColor:`rgba(${h.join(", ")}, ${_})`}}})),(0,u.jsx)(l.xu,{rounding:5,position:"absolute",dangerouslySetInlineStyle:{__style:p(i,e,n)},children:(0,u.jsx)(l.zd,{height:r.HEIGHT_PX,rounding:5,width:r.WIDTH_PX,wash:!0,children:a})})}function _(){return(0,u.jsx)(l.xu,{position:"absolute",rounding:r.N3,top:!0,bottom:!0,right:!0,left:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, 0.03)"}}})}var m=i(605706),g=i(50286);let y={1:function(e){var t;let{pinCards:i,isClicked:n,isHovered:a,item:o={},story:c}=e,p=(0,g.HG)(),y=(0,m.Z)(),v=c&&(null===(t=c.objects)||void 0===t?void 0:t.length),{board_name:f,header_text:x,top_image_dominant_color_rgb:b}=o,P=n?106:110,w=n?d.xR-4:d.xR;p||(P=90,w=1===v?"100%":y?d.wg:d.lf);let S=155;return p||(S=y?108:148),(0,u.jsxs)(l.xu,{height:P,display:"flex",paddingY:2,position:"relative",rounding:r.N3,width:w,dangerouslySetInlineStyle:{__style:s(b,n,a)},children:[(0,u.jsx)(_,{}),(0,u.jsx)(l.xu,{width:p?112:100,position:"relative",children:i.map((e,t)=>(0,u.jsx)(h,{fanOut:a||n,card:e,index:t,size:p?"SMALL":"MOBILE"},t))}),(0,u.jsxs)(l.xu,{display:"flex",direction:"column",justifyContent:"center",marginStart:p?2:3,width:S,children:[(0,u.jsx)(l.xv,{size:p?"200":"100",children:x}),(0,u.jsx)(l.xv,{lineClamp:2,size:"400",weight:"bold",children:f})]})]})},3:function(e){let{pinCards:t,isClicked:i,isHovered:n,item:a}=e,{board_name:o,top_image_dominant_color_rgb:d}=a;return(0,u.jsxs)(l.xu,{height:i?165:169,display:"flex",alignItems:"end",justifyContent:"center",paddingX:4,paddingY:3,position:"relative",rounding:r.N3,width:i?232:236,dangerouslySetInlineStyle:{__style:s(d,i,n)},children:[(0,u.jsx)(_,{}),t.map((e,t)=>(0,u.jsx)(h,{fanOut:n||i,card:e,index:t,size:"DEFAULT"},t)),(0,u.jsx)(l.xv,{align:"center",lineClamp:1,size:"200",weight:"bold",children:o})]})},4:function(e){var t;let{logContextEvent:i}=(0,a.v)(),{pinCards:n,isHovered:o,item:d,view:c,viewParameter:p}=e,{action:m,board_name:g,header_text:y,ideas_deep_link_url:v,top_image_dominant_color_rgb:f}=d,x=null!==(t=null==m?void 0:m.url)&&void 0!==t?t:v.concat("?ideas_referrer=25");return(0,u.jsxs)(l.xu,{alignItems:"center",direction:"column",display:"flex",justifyContent:"end",marginBottom:6,minHeight:377,position:"relative",paddingX:4,paddingY:8,rounding:r.N3,width:236,dangerouslySetInlineStyle:{__style:s(f,!1,o)},children:[n.map((e,t)=>(0,u.jsx)(h,{fanOut:o,card:e,index:t,size:"LARGE"},t)),(0,u.jsx)(l.xu,{height:168,width:"100%"}),(0,u.jsx)(_,{}),(0,u.jsxs)(l.kC,{alignItems:"stretch",direction:"column",height:"100%",justifyContent:"end",children:[(0,u.jsxs)(l.xu,{display:"flex",direction:"column",alignItems:"center",marginTop:5,marginBottom:5,children:[(0,u.jsx)(l.xu,{marginBottom:1,children:(0,u.jsx)(l.xv,{size:"200",weight:"bold",children:y})}),(0,u.jsx)(l.xv,{align:"center",size:"500",weight:"bold",children:g})]}),(0,u.jsx)(l.xu,{display:"flex",justifyContent:"center",marginTop:1,position:"relative",width:"100%",children:(0,u.jsx)(l.ZP,{color:"white",href:x,size:"lg",onClick:({event:e})=>{e.stopPropagation(),i({event_type:101,view_type:c,view_parameter:p,component:14268,element:13002,object_id_str:d.board_id})},text:"Explore"})})]})]})}},v=["100%","60%"];function f(e){var t,i;let{component:o,isInViewOrNext:s,item:{action:d,board_id:c,ideas_deep_link_url:p,images:h,image_dominant_color_rgb:_},slotIndex:m,story:f={},view:x,viewParameter:b}=e,{logContextEvent:P}=(0,a.v)(),w=(0,g.ZP)(),{display_options:S,objects:k}=f,j=null==k?void 0:k.length,[A,C]=(0,n.useState)(!1),[D,E]=(0,n.useState)(!1),[I,T]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if("desktop"===w){let e=setTimeout(()=>T(!0),700);return()=>{clearTimeout(e)}}},[w]);let F=[],z="desktop"!==w?r.mS:r.S$;(s||"desktop"!==w)&&(F=I?[...h[z]]:[h[z][0]]);let R=3-F.length;for(let e=0;e<R;e+=1)F.push({colorRGB:_,opacity:v[e]});F.reverse();let L=null==S?void 0:null===(t=S.item_view_rep_style)||void 0===t?void 0:t.more_ideas_rep_style,M=y[L],Z=o||r.kx[L],B=null!==(i=null==d?void 0:d.url)&&void 0!==i?i:p.concat("?ideas_referrer=25");return M&&(0,u.jsx)(l.Tg,{href:B,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),onMouseDown:()=>E(!0),onTap:()=>P({event_type:101,view_type:x,view_parameter:b,component:Z,element:13002,object_id_str:c,aux_data:{index:m,total_object_count:j}}),children:(0,u.jsx)(M,{isClicked:D,isHovered:A,pinCards:F,...e})})}},34518:(e,t,i)=>{"use strict";i.d(t,{N3:()=>n,Ql:()=>l,S$:()=>r,a$:()=>a,kx:()=>s,mS:()=>o});let n=4,l=.35,a=.5,r="170x",o="136x136",s={1:14114,3:14074,4:14268}},988874:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(616550),l=i(883119),a=i(444445),r=i(91885),o=i(477802),s=i(826067),d=i(50286),u=i(8742),c=i(785893);let p=new Set(["shopping_module_closeup","product_pins","shopping_list","shop_tab_upsell"]),h=new Set(["product_tagged_shopping_module_upsell"]),_=e=>null!=e&&e.shop_source||p.has(null==e?void 0:e.story_type)?"ShoppingDynamicHeightGrid":"StoryFeedNonProduct";function m(e){var t,i,p;let{pins_display:m}=(0,s.mB)((0,n.useLocation)().search),{component:g,isInMobileCarousel:y,imageWidth:v,item:f,saveButtonOptions:x,slideWidth:b,slotIndex:P,story:w,surface:S,view:k,viewParameter:j}=e,A=null!=v?v:a.yF,C="desktop"===(0,d.ZP)(),D=C?A:a.tG;if(!f)return null;let{story_type:E,id:I,content_ids:T,display_options:F,user:z}=w||{},{pins_display:R}=(null==F?void 0:F.content_display)||{},{id:L,debug:M}=f,Z=![3,1].includes(null!=R?R:Number(m)),B={story_type:E,story_id:I,content_ids:T},O=S||_(w),N={auxData:B,componentType:null!==(t=null==w?void 0:null===(i=w.display_options)||void 0===i?void 0:null===(p=i.content_display)||void 0===p?void 0:p.component_type)&&void 0!==t?t:g,impressionData:B,pinId:L,slotIndex:P,viewData:{pin_id:L},viewParameter:j,viewType:k},K={authDesktopSurface:O,disableHover:!C,pin:f,pinImageCrop:Z?{height:D,width:D}:null,saveButtonOptions:x,pinOwner:h.has(E)&&z?z:null},U=(0,c.jsxs)(l.xu,{"data-test-id":r.Kb,children:[(0,c.jsx)(u.ZP,{...N,...K,duploDisablePinCardPadding:y,duploIsSquarePin:Z,duploQueryRef:null,trafficSource:"ShoppingDynamicHeightGrid"===O?"shop_feed":void 0}),M&&(0,c.jsx)(o.Wu,{data:M})]});return Z?(0,c.jsx)(l.xu,{flex:"none",width:y?b:D,children:U},L):U}},57427:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({height:e,width:t,src:i}){return(0,l.jsx)(n.xu,{height:e,width:t,children:(0,l.jsx)(n.Ee,{naturalHeight:e,naturalWidth:t,src:i,color:"lightGray",fit:"cover",alt:"",role:"presentation"})})}},456183:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(667294),l=i(616550),a=i(883119),r=i(407043),o=i(366428),s=i(444445),d=i(327651),u=i(641968),c=i(608760),p=i(785893);let h=.4*s.yF,_=.75*s.yF;var m=i(57427);let g={5:({item:e,imagePlaceholderColor:t=c.hK})=>{let{username:i,image_large_url:n,full_name:l,domain_verified:r=!1,is_verified_merchant:o=!1}=e;return(0,p.jsxs)(a.xu,{width:s.yF,children:[(0,p.jsx)(a.xu,{display:"flex",justifyContent:"center",marginBottom:2,children:(0,p.jsx)(d.Z,{size:120,fullName:l||i,src:n||"",color:t})}),l&&(0,p.jsx)(u.Z,{name:l,isDomainVerified:r,isVerifiedMerchant:o})]})},1:({item:e={},story:t,imagePlaceholderColor:i=c.hK})=>{var n,l,r;let{username:o,image_large_url:g,full_name:y,id:v,domain_verified:f=!1,is_verified_merchant:x=!1}=e,b=(null==t?void 0:null===(n=t.custom_properties)||void 0===n?void 0:null===(l=n.preview_image_map)||void 0===l?void 0:null===(r=l[v])||void 0===r?void 0:r[0])||"";return(0,p.jsxs)(a.xu,{width:s.yF,height:s.yF,children:[(0,p.jsx)(a.zd,{rounding:4,height:_,width:s.yF,wash:!0,children:(0,p.jsx)(m.Z,{height:s.yF,width:s.yF,src:b})}),(0,p.jsx)(a.xu,{display:"flex",justifyContent:"center",marginTop:-12,marginBottom:2,children:(0,p.jsx)(d.Z,{size:h,src:g||"",color:i,fullName:y||o})}),y&&(0,p.jsx)(u.Z,{name:y,isDomainVerified:f,isVerifiedMerchant:x})]})},2:({item:e={},story:t})=>{var i,n;let{username:l,image_large_url:r,full_name:o,id:c,domain_verified:g=!1,is_verified_merchant:y=!1}=e,[v="",f=""]=(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:n[c])||[];return(0,p.jsxs)(a.xu,{width:s.yF,children:[(0,p.jsxs)(a.xu,{height:s.yF,children:[(0,p.jsx)(a.zd,{rounding:4,height:_,width:s.yF,wash:!0,children:(0,p.jsxs)(a.kC,{children:[(0,p.jsx)(m.Z,{height:s.yF,width:s.yF/2,src:v}),(0,p.jsx)(a.xu,{color:"default",width:2}),(0,p.jsx)(m.Z,{height:s.yF,width:s.yF/2,src:f})]})}),(0,p.jsx)(a.xu,{display:"flex",justifyContent:"center",marginTop:-12,marginBottom:2,children:(0,p.jsx)(d.Z,{size:h,src:r||"",color:"gray",fullName:o||l})})]}),o&&(0,p.jsx)(u.Z,{name:o,isDomainVerified:g,isVerifiedMerchant:y})]})}};function y(e){var t,i;let{logContextEvent:s}=(0,r.v)(),d=(0,l.useHistory)(),{story:u={},slotIndex:c,component:h,view:_,viewParameter:m,item:y}=e,v=(null===(t=u.display_options)||void 0===t?void 0:null===(i=t.item_view_rep_style)||void 0===i?void 0:i.user_rep_style)||5,f=g[v],x=(0,n.useMemo)(()=>({story_type:u.story_type,story_id:u.id,content_ids:u.content_ids,user_id:y.id}),[y,u]),b=(0,o.Z)({contextLogData:x,impressionType:"User",loggingId:y.id,objectIdStr:y.id,slotIndex:c,viewParameter:m,viewType:_});return f?(0,p.jsx)(a.iP,{ref:b,onTap:()=>{s({event_type:101,view_type:_,view_parameter:m,component:h,aux_data:x}),d.push(`/${y.username}`)},children:(0,p.jsx)(f,{...e})}):null}},327651:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(883119),l=i(992061),a=i(898781),r=i(349700),o=i(215292),s=i(785893);function d({color:e,fullName:t,size:i,src:d}){let u=(0,a.ZP)();return(0,s.jsx)(o.q,{children:({hovered:a,onMouseEnter:o,onMouseLeave:c})=>(0,s.jsx)(n.xu,{marginBottom:2,"data-test-id":"category-bubble",onMouseEnter:o,onMouseLeave:c,children:(0,s.jsxs)(n.zd,{height:i,rounding:"circle",width:i,wash:!0,children:[(0,s.jsx)(l.Z,{hovered:a,rounding:"circle"}),(0,s.jsx)(n.Ee,{naturalHeight:i,naturalWidth:i,src:d,color:e,alt:(0,r.nk)(u._('Logo of {{ fullName }}', 'itemRep.userRep.brandLogo', 'Alt text for the brand logo'),{fullName:t}).join("")})]})})})}},641968:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(865607),a=i(785893);function r({name:e,isDomainVerified:t,isVerifiedMerchant:i}){return(0,a.jsxs)(n.kC,{alignItems:"stretch",justifyContent:"center",alignContent:"center",gap:1,children:[e&&(0,a.jsx)(n.xv,{inline:!0,weight:"bold",children:e}),(0,a.jsx)(l.Z,{size:"sm",isVerifiedMerchant:i,hasVerifiedIdentity:t})]})}},87165:(e,t,i)=>{"use strict";i.d(t,{i:()=>o});var n=i(883119),l=i(444445),a=i(785893);function r(){return(0,a.jsx)(n.xu,{width:l.yF})}function o(e){return Array(e).fill().map((e,t)=>(0,a.jsx)(r,{},t))}},63404:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f,v:()=>m});var n,l=i(167912),a=i(240684),r=i(175892),o=i(897243),s=i(934494),d=i(701865),u=i(981228),c=i(988874),p=i(456183),h=i(785893);let _=(0,a.ZP)({resolved:{},chunkName:()=>"DefaultPinRep",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>Promise.all([i.e(97270),i.e(10966),i.e(18352),i.e(40566),i.e(39921)]).then(i.bind(i,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 i(t)},resolve:()=>369083});function m(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 g=void 0!==n?n:n=i(883597);function y(e){var t,i,n;let{itemData:l,...a}=e,{slotIndex:s,view:m,item:g}=e,{pinId:y,pinGraphQLRef:v}=l;if(v)return y&&m?(0,h.jsx)(_,{duploQueryRef:v,slotIndex:s,pinId:y,viewType:m}):null;switch(null==g?void 0:g.type){case"pin":return(0,h.jsx)(c.Z,{...a});case"user":return(0,h.jsx)(p.Z,{...a});case"board_more_ideas_feed_upsell":return(0,h.jsx)(u.Z,{...a});case"explorearticle":return(0,h.jsx)(d.Z,{...a});case"productgroup":return(0,h.jsx)(r.Z,{productGroup:{coverImages:null===(t=g.cover_images)||void 0===t?void 0:t.map(e=>(0,o.b)(e)),description:g.description,entityId:null!==(i=g.id)&&void 0!==i?i:"",groupType:g.group_type,name:g.name,previewPins:null===(n=g.preview_pins)||void 0===n?void 0:n.map(e=>({imageSignature:e.image_signature,images:e.images&&(0,o.b)(e.images)}))},slotIndex:s});default:return null}}let v=(0,s.Z)({useGraphQLAdapter:e=>{let t=(0,l.useFragment)(g,e),{pinId:i}=t;return{pinId:i,pinGraphQLRef:t}},useLegacyAdapter:e=>e?{item:e,pinGraphQLRef:null}:null});function f({pinGraphQLRef:e,...t}){return(0,h.jsx)(v,{input:e?{enabled:!0,data:e}:{enabled:!1,data:t.item},children:({data:e})=>e&&(0,h.jsx)(y,{...t,itemData:e})})}},643897:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(608760),a=i(785893);let r=new Map([["pin",4]]);function o({children:e,itemType:t}){return(0,a.jsx)(n.xu,{marginBottom:r.get(t)||l.mT,children:e})}},608760:(e,t,i)=>{"use strict";i.d(t,{g5:()=>r,hK:()=>l,mT:()=>a});var n=i(988874);let l="lightGray",a=8,r={itemRep:n.Z,shape:"square",getImage:()=>""}},563886:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n,l=i(667294),a=i(167912),r=i(883119),o=i(792182),s=i(934494),d=i(444445),u=i(898781),c=i(754320),p=i(668916),h=i(48125),_=i(429091),m=i(180910),g=i(34518),y=i(232921),v=i(63404),f=i(580326),x=i(848385),b=i(605706),P=i(782975),w=i(905031),S=i(50286),k=i(435497),j=i(239062),A=i(751191),C=i(455024),D=i(390598),E=i(785893);let I=new Set([3,4]),T=new Set([1]),F=({text:e,url:t})=>!!e&&!!t,z=e=>F(e)&&I.has(e.location),R=e=>F(e)&&T.has(e.location),L=void 0!==n?n:n=i(992872),M=({contentVisibleItemCount:e,customWidth:t,gutterWidth:i,isMoreIdeasListCard:n,isStyleBubble:l,isImageAndTitleRep:a,isStorefrontSpotlightCarousel:r,isSfModuleOnMobile:o,isSmallMobileScreen:s,isStackedCollageDisplayCard:u,isTriplePreviewDisplayCard:c,totalObjectCount:g,containerRef:v,deviceType:f,windowWidth:x})=>{let b=o?d.tG:d.yF,P="desktop"===f;if(c)return P?m.d:m.Gd;if(u)return P?h.m:h.d;if(n){if(P)return y.xR;if(1===g){var w;return(null===(w=v.current)||void 0===w?void 0:w.clientWidth)||0}return s?y.wg:y.lf}if(l)return _.u;if(a)return p.H;if(r)return D.PRODUCT_GROUP_COVER_IMAGE_DIMENSIONS.WIDTH;if(e){let n=P?d.oX:d.yt,l=null!=i?i:n,a=void 0!==t?(0,d.Wv)({contentVisibleItemCount:e,gap:l,width:parseInt(t,10)}):d.yF,r=P?a:d.tG,o=Math.floor(e);return Math.min(Math.floor((x-o*l)/e),parseInt(r,10))}return b};function Z(e){var t,i,n,a,s,p,h,_,m,y,D,I,T,F,L,Z,B,O,N,K;let{addContentRight:U,componentFallback:H,dangerouslySetActionUrl:V,disableHeader:G,gutterWidth:W,initialSlotIndex:$=0,styleOverrides:q,saveButtonOptions:Y,storyData:X,surface:Q,view:J,viewParameter:ee,width:et}=e,{data:{contentIds:ei,displayOptions:en,objects:el,action:ea,storyId:er,storyTitle:eo,storyType:es},rawStoryData:ed,storyGraphqlRef:eu,__dataKeys:ec}=X,[ep,eh]=(0,l.useState)(0),e_=(0,l.useRef)(null),em=(0,w.Z)(),eg=(0,b.Z)(),ey=(0,S.ZP)(),ev="desktop"===ey,{width:ef=0}=(0,o.Z)()||{},ex=(0,u.ZP)();if(!el)return null;let eb=null!==(t=null==en?void 0:null===(i=en.contentDisplay)||void 0===i?void 0:i.componentType)&&void 0!==t?t:H,eP=(null==en?void 0:en.carouselFadeEnds)===1,ew=el.length,eS={carouselSlots:el.map(e=>"graphql"===e.type?{title:void 0,id:void 0}:{title:e.data.title,id:e.data.id}),entityId:"",index:ep},{text:ek,url:ej,location:eA}=null!=ea?ea:{},eC=null!=V?V:ej,eD={backgroundColor:"default",hoverColor:"default",iconColor:"default",size:null!==(n=null==q?void 0:q.navigationFabSize)&&void 0!==n?n:void 0},eE={backgroundColor:"secondary",hoverColor:"secondary",iconColor:"subtle",size:32},eI=null==en?void 0:null===(a=en.itemViewRepStyle)||void 0===a?void 0:a.moreIdeasRepStyle,eT=g.kx[eI],eF=(null==en?void 0:null===(s=en.itemViewRepStyle)||void 0===s?void 0:s.exploreArticleRepStyle)===4,ez=(null==en?void 0:null===(p=en.itemViewRepStyle)||void 0===p?void 0:p.exploreArticleRepStyle)===21,eR=(null==en?void 0:null===(h=en.contentDisplay)||void 0===h?void 0:h.componentType)===13698,eL=(null==en?void 0:null===(_=en.itemViewRepStyle)||void 0===_?void 0:_.exploreArticleRepStyle)===19,eM=(null==en?void 0:null===(m=en.itemViewRepStyle)||void 0===m?void 0:m.exploreArticleRepStyle)===20,eZ=(null==en?void 0:null===(y=en.headerDisplay)||void 0===y?void 0:y.expandedTextAlignment)!==null,eB=ev?null==en?void 0:null===(D=en.contentDisplay)||void 0===D?void 0:null===(I=D.contentVisibleItemCount)||void 0===I?void 0:I.web:null==en?void 0:null===(T=en.contentDisplay)||void 0===T?void 0:null===(F=T.contentVisibleItemCount)||void 0===F?void 0:F.mobile,eO=M({containerRef:e_,contentVisibleItemCount:eB,customWidth:et,gutterWidth:W,isMoreIdeasListCard:1===eI,isStyleBubble:eF,isImageAndTitleRep:ez,isStorefrontSpotlightCarousel:eR,isSfModuleOnMobile:em,isSmallMobileScreen:eg,totalObjectCount:ew,isStackedCollageDisplayCard:eM,isTriplePreviewDisplayCard:eL,deviceType:ey,windowWidth:ef}),eN=null==en?void 0:null===(L=en.contentDisplay)||void 0===L?void 0:null===(Z=L.carouselDisplayOptions)||void 0===Z?void 0:Z.navigationType,eK=ev&&0===eN,eU=null!=W?W:d.oX,eH=ev?eU:d.yt,eV=el.filter(({data:e})=>!!e),eG=null==en?void 0:null===(B=en.contentDisplay)||void 0===B?void 0:null===(O=B.gridLayout)||void 0===O?void 0:O.cols,eW="number"==typeof eG?eG:-1,e$=eW*(ev?d.yF:d.tG)+(eW-1)*eH,eq=-1===eW||((null===(N=e_.current)||void 0===N?void 0:N.clientWidth)||0)<e$,eY=(0,C.tD)({slotWidth:eO,containerWidth:(null===(K=e_.current)||void 0===K?void 0:K.clientWidth)||0,gap:eH,numberOfSlides:eV.length,index:ep}),eX=et?eO:void 0;return(0,E.jsxs)(r.kC,{direction:"column",width:eq?void 0:e$,children:[eo&&!G&&(0,E.jsx)(x.Z,{storyKey:ec.HeaderModule_story,showExpanded:eZ}),(0,E.jsxs)(r.xu,{position:"relative",ref:e_,marginBottom:eK?8:0,children:[eK&&(0,E.jsx)(j.default,{backNode:(0,E.jsx)(A.Z,{...eD,showFab:!0,iconType:"back"}),carouselData:eS,carouselIndex:ep,componentType:eb,forwardNode:(0,E.jsx)(A.Z,{...eD,showFab:!0,iconType:"forward"}),handleCarouselSwipe:e=>{eh(e)},isShowingLastSlide:eY,pinKey:null,viewParameter:ee,viewType:J,contextLogData:eI?{index:ep}:{}}),(0,E.jsxs)(k.Z,{componentType:eT,containerRef:e_,gap:eH,id:"structured-feed-carousel-module",impressionType:eI?"BoardMoreIdeasRep":"Pin",index:ep,shouldBeDragCarousel:!ev,styleOverrides:q,slideWidth:eO,viewParameter:ee,view:J,children:[eV.map((e,t)=>{var i,n;if(t===eV.length-1&&ea&&ek&&eC&&z(ea)){let i="legacy"===e.type&&(0,v.v)(e.data)||"";return i&&(0,E.jsx)(c.Z,{imageWidth:eX,buttonText:ek,component:eb,contentIds:null!=ei?ei:void 0,element:179,previewImageSrc:i,url:eC,isInMobileCarousel:!ev,slideWidth:eO,storyId:null!=er?er:"",storyType:es,view:J,viewParameter:ee},"graphql"===e.type?`${t}`:(0,P.Z)(e.data,t))}return(0,E.jsx)(v.Z,{imageWidth:eX,isInViewOrNext:(0,C.Iw)({slotWidth:eO,containerWidth:(null===(i=e_.current)||void 0===i?void 0:i.clientWidth)||0,gap:eH,numberOfSlides:eV.length,index:t,currentIndex:ep}),item:"legacy"===e.type?{...e.data,..."board_more_ideas_feed_upsell"===e.data.type?{header_text:ex._('More ideas for', 'moreIdeasBoardRepCarousel.carousel.headText', 'Header text for JBI Carousel on Homefeed')}:{}}:null,isInMobileCarousel:!ev,saveButtonOptions:Y,slideWidth:eO,slotIndex:$+t,story:null!=ed?ed:void 0,surface:Q,view:J,viewParameter:ee,pinGraphQLRef:eu&&"graphql"===e.type&&(null===(n=e.data)||void 0===n?void 0:n.__typename)==="Pin"?e.data:null},"graphql"===e.type?`${t}`:(0,P.Z)(e.data,t))}),U]}),eP&&ep>0&&(0,E.jsx)(r.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%)"}}}),eP&&!eY&&(0,E.jsx)(r.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%)"}}})]}),ev&&1===eN&&(0,E.jsx)(r.xu,{position:"relative",marginTop:3,marginBottom:8,width:"100%",children:(0,E.jsx)(j.default,{addEllipsis:!0,alwaysShowNavigationArrows:!0,backNode:(0,E.jsx)(A.Z,{...eE,showFab:!0,iconType:"back"}),carouselData:eS,carouselIndex:ep,componentType:eb,ellipsisVariant:"dark",forwardNode:(0,E.jsx)(A.Z,{...eE,showFab:!0,iconType:"forward"}),handleCarouselSwipe:e=>{eh(e)},isShowingLastSlide:eY,pinKey:null,viewParameter:ee,viewType:J,contextLogData:eI?{index:ep}:{},sliderStyleOverride:{padding:"0px"}})}),ea&&R(ea)&&(0,E.jsx)(r.xu,{marginTop:4,children:(0,E.jsx)(f.Z,{text:ek,location:eA,url:eC})})]})}let B=(0,s.Z)({useGraphQLAdapter:e=>{var t;let i=(0,a.useFragment)(L,e);return{data:{...i,objects:null===(t=i.objects)||void 0===t?void 0:t.map(e=>({type:"graphql",data:e}))},rawStoryData:null,storyGraphqlRef:i,__dataKeys:{HeaderModule_story:{type:"graphqlRef",data:i}}}},useLegacyAdapter:e=>{var t,i,n;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===(i=e.display_options.content_display.content_visible_item_count)||void 0===i?void 0:i.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===(n=e.objects)||void 0===n?void 0:n.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 O({storyGraphqlRef:e,...t}){return(0,E.jsx)(B,{input:e?{enabled:!0,data:e}:{enabled:!1,data:t.story},children:({data:e})=>e&&(0,E.jsx)(Z,{...t,storyData:e})})}},580326:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({url:e,text:t,location:i}){return 1===i&&e&&t?(0,l.jsx)(n.kC,{alignItems:"center",justifyContent:"center",children:(0,l.jsx)(n.ZP,{text:t,href:e})}):null}},848385:(e,t,i)=>{"use strict";i.d(t,{Z:()=>x}),i(167912);var n,l=i(616550),a=i(883119),r=i(407043),o=i(356997),s=i(357998),d=i(898781),u=i(50286),c=i(865607),p=i(785893);let h={1:"start",2:"center"},_={1:"100",2:"300"},m={1:"400",4:"200",3:"500",2:"600"},g=new Set([2,4]),y=void 0!==n?n:n=i(612587);function v({showExpanded:e=!1,view:t,viewParameter:i,storyData:n}){var s,d,y,v;let x=(0,l.useHistory)(),{logContextEvent:b}=(0,r.v)(),P=(0,u.HG)(),{fullName:w,isVerifiedMerchant:S,verifiedIdentity:k,username:j,imageMediumUrl:A}=n.user||Object.freeze({}),C=w||(null===(s=n.storyTitle)||void 0===s?void 0:s.format),{url:D,text:E,location:I,style:T}=n.action||Object.freeze({}),F=D||j||"",z=n.displayOptions||Object.freeze({}),R=z.headerDisplay||Object.freeze({}),L=e?R.expandedTextAlignment:R.textAlignment,M=h[L||1],Z=h[R.subtitleAlignment||1],B=_[R.headerSize||1],O=R.headerSize&&m[R.headerSize]?m[R.headerSize]:m[1],N=1===R.subtitleStyle?O:"200",K=(e,t)=>null!=e?e:t,U=K(z.titleTextColor,"default"),H=null!=(v=z.titleTextColor)?v:"default",V=K(z.subtitleTextColor,"subtle"),G=1===R.titlePosition,W=!!(null!==(d=n.subtitle)&&void 0!==d&&d.format)&&(0,p.jsx)(a.X6,{size:N,color:V,align:Z,children:n.subtitle.format}),$=(0,p.jsx)(a.X6,{accessibilityLevel:2,size:O,color:U,align:M,children:C}),q=()=>{var e;return b({component:null===(e=z.contentDisplay)||void 0===e?void 0:e.componentType,element:179,event_type:P?101:102,view_parameter:i,view_type:t})},Y=e=>{q();let t=e.replace(/^\/+/,"");x.push(`/${t}`)};return(0,p.jsx)(a.xu,{marginBottom:P?4:2,children:(0,p.jsxs)(a.kC,{gap:{row:0,column:2},direction:"column",children:[G&&W,(0,p.jsxs)(a.kC,{alignItems:"center",justifyContent:M,children:[j&&A&&(0,p.jsx)(o.qE,{name:j,size:"sm",src:A}),(0,p.jsxs)(a.xu,{marginStart:M===h[1]?2:0,alignItems:"baseline",justifyContent:M,display:"flex",flex:e?"grow":"shrink",children:[F?(0,p.jsx)(a.xu,{"data-test-id":"sf-header-heading",children:(0,p.jsx)(a.Tg,{href:F,onTap:({event:e})=>{e.stopPropagation(),Y(F)},tapStyle:"compress",children:$})}):$,S&&(0,p.jsx)(a.xu,{marginStart:2,children:(0,p.jsx)(c.Z,{hasVerifiedIdentity:!!(null==k?void 0:k.verified),isVerifiedMerchant:S,size:"xs"})})]}),g.has(I)&&D&&(0,p.jsx)(a.xu,{"data-test-id":"sf-header-action-button",children:(0,p.jsx)(f,{headerTitle:C,onClick:q,style:T,text:E,url:D})})]}),!G&&W,null!==(y=n.storyDescription)&&void 0!==y&&y.format?(0,p.jsx)(a.xv,{size:B,color:H,align:M,weight:"bold",children:n.storyDescription.format}):null]})})}function f({headerTitle:e,onClick:t,style:i,text:n,url:l}){let r=(0,d.ZP)();return 3!==i&&n?(0,p.jsx)(a.xu,{marginStart:6,children:(0,p.jsx)(a.ZP,{text:n,href:l,onClick:t})}):(0,p.jsx)(a.I_,{accessibilityLabel:e||r._('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:l,onClick:t})}function x({storyKey:e,...t}){let{data:i}=(0,s.Q)(y,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)(v,{...t,storyData:i})}},217149:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>Q});var n,l=i(167912),a=i(883119),r=i(934494),o=i(366428),s=i(563886),d=i(580326),u=i(444445),c=i(701865),p=i(988874),h=i(456183),_=i(608760),m=i(848385),g=i(785893);let y=()=>(0,g.jsx)(a.xu,{height:u.yF,width:u.yF,color:"secondary"}),v={1:{itemRep:p.Z,deprecatedActionShape:"square",deprecatedGetActionImage:e=>{var t,i;return(null===(t=e.images)||void 0===t?void 0:null===(i=t.orig)||void 0===i?void 0:i.url)||""}},4:{itemRep:c.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>{var t,i;return(null===(t=e.images)||void 0===t?void 0:null===(i=t.orig)||void 0===i?void 0:i.url)||""}},2:{itemRep:h.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>e.image_large_url}};function f({componentFallback:e,showExpanded:t=!0,story:i,view:n,viewParameter:l}){var r,o,s,d,u;let c=(null===(r=i.display_options)||void 0===r?void 0:r.content_display)||{},p=c.model_type,h=v[p]||_.g5,f=h.itemRep||y,x=null!==(o=null===(s=i.display_options)||void 0===s?void 0:null===(d=s.content_display)||void 0===d?void 0:d.component_type)&&void 0!==o?o:e;return(0,g.jsx)(a.xu,{marginBottom:2,children:(0,g.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"center",direction:"column",children:[i.title&&(0,g.jsx)(m.Z,{storyKey:{type:"deprecated",data:i},showExpanded:t}),(0,g.jsx)(a.kC,{wrap:!0,gap:2,justifyContent:"center",children:null===(u=i.objects)||void 0===u?void 0:u.map(function(e,t){return(0,g.jsx)(f,{component:x,imagePlaceholderColor:"rgba(0, 0, 0, 0)",index:t,item:e,story:i,view:n,viewParameter:l},t)})})]})})}var x=i(667294),b=i(754320),P=i(87165),w=i(643897),S=i(905031),k=i(745312),j=i(50286);let A="rgba(0, 0, 0, 0)",C=()=>(0,g.jsx)(a.xu,{height:u.yF,width:u.yF,color:"secondary"}),D={1:{itemRep:p.Z,deprecatedActionShape:"square",deprecatedGetActionImage:e=>{var t,i;return(null===(t=e.images)||void 0===t?void 0:null===(i=t.orig)||void 0===i?void 0:i.url)||""}},4:{itemRep:c.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>{var t,i;return(null===(t=e.images)||void 0===t?void 0:null===(i=t.orig)||void 0===i?void 0:i.url)||""}},2:{itemRep:h.Z,deprecatedActionShape:"circle",deprecatedGetActionImage:e=>e.image_large_url}};function E({componentFallback:e,dangerouslySetActionUrl:t,dangerouslySetContentVisibleItemCount:i,disableHeader:n,dynamicItemWidth:l,gutterWidth:r,initialSlotIndex:o=0,showExpanded:s,story:d,surface:c,view:p,viewParameter:h,width:y}){var v,f,E,I,T,F,z,R;let L=(0,j.HG)(),M=(null===(v=d.display_options)||void 0===v?void 0:v.content_display)||{},Z=M.model_type,B=D[Z]||_.g5,O=B.itemRep||C,{action:N}=d,K=t||(null===(f=d.action)||void 0===f?void 0:f.url)||"",U=null!==(E=null===(I=d.display_options)||void 0===I?void 0:null===(T=I.content_display)||void 0===T?void 0:T.component_type)&&void 0!==E?E:e,H=null===(F=M.grid_layout)||void 0===F?void 0:F.rows,V="number"==typeof H?H:1,G=null===(z=M.grid_layout)||void 0===z?void 0:z.cols,W="number"==typeof G?G:-1,$=-1===W,q=null!=i?i:null===(R=M.content_visible_item_count)||void 0===R?void 0:R.web,Y=q&&y&&l?(0,u.Wv)({contentVisibleItemCount:q,gap:null!=r?r:u.oX,width:parseInt(y,10)}):u.yF,{containerRef:X,itemsToRender:Q,actionItem:J}=(0,k.n)({items:d.objects||[],itemWidth:(0,S.Z)()?u.tG:Y,itemGap:null!=r?r:u.oX,actionItemType:N?"one":void 0,numRows:V}),ee=J&&B.deprecatedGetActionImage?B.deprecatedGetActionImage(J):void 0,et=$?Q:d.objects||[],ei=et.map((e,t)=>(0,g.jsx)(w.Z,{itemType:"string"==typeof e.type?e.type:null,children:(0,g.jsx)(O,{component:U,imagePlaceholderColor:A,imageWidth:Y,index:t,item:e,slotIndex:o+t,story:d,surface:c,view:p,viewParameter:h})},t)),en=!!K&&!!(null!=N&&N.text)&&ee&&(0,g.jsx)(b.Z,{contentIds:d.content_ids,buttonText:N.text,component:U,element:179,imageWidth:Y,previewImageSrc:ee,shape:B.deprecatedActionShape,storyId:d.id,storyType:d.story_type,url:K,view:p,viewParameter:h});return(0,g.jsxs)(a.xu,{display:"flex",color:"default",alignItems:"stretch",justifyContent:"start",direction:"column",children:[d.title&&!n&&(0,g.jsx)(m.Z,{storyKey:{type:"deprecated",data:d},showExpanded:s}),$?(0,g.jsxs)(k.Z,{itemGap:null!=r?r:u.oX,containerRef:X,rowAlignment:"center",numRows:V,children:[ei,en,V>1&&(0,P.i)(12)]}):(0,g.jsxs)(x.Fragment,{children:[Array(V).fill(null).map((e,t)=>(0,g.jsx)(a.kC,{alignItems:"stretch",justifyContent:"start",gap:L?u.jC:u.D6,wrap:W<=1,children:W>0&&Array(W).fill(null).map((e,i)=>ei[t*W+i])},et[t].id)),en]})]})}function I({componentFallback:e,showExpanded:t=!0,story:i,view:n,viewParameter:l}){var r,o,s,d;let c=(null===(r=i.display_options)||void 0===r?void 0:r.content_display)||{},p=c.model_type,h=D[p]||_.g5,y=h.itemRep||C,v=null!==(o=null===(s=i.display_options)||void 0===s?void 0:null===(d=s.content_display)||void 0===d?void 0:d.component_type)&&void 0!==o?o:e,f=(0,S.Z)()?u.tG:u.yF;return(0,g.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[i.title&&(0,g.jsx)(m.Z,{storyKey:{type:"deprecated",data:i},showExpanded:t}),(0,g.jsx)(a.Rk,{columnWidth:f,renderItem:({data:e,itemIdx:t})=>(0,g.jsx)(y,{component:v,imagePlaceholderColor:A,index:t,item:e,story:i,view:n,viewParameter:l},t),gutterWidth:u.oX,items:i.objects||[],layout:"flexible"})]})}function T(e){var t,i;switch(null===(t=e.story.display_options)||void 0===t?void 0:null===(i=t.content_display)||void 0===i?void 0:i.pins_display){case 3:case 1:return(0,g.jsx)(I,{...e});default:return(0,g.jsx)(E,{...e})}}var F=i(792182),z=i(616550),R=i(407043),L=i(356997),M=i(898781),Z=i(477802);let B=({actionText:e,actionUrl:t,articleId:i,author:n,authorAvatar:l,component:r,contentIds:s,coverImage:d,debug:u,index:c,isFullWidth:p=!1,onImageLoad:h,storyId:_,storyType:m,subtitle:y,title:v,view:f,viewParameter:b,width:P,windowWidth:w})=>{let S=(0,M.ZP)(),k=(0,z.useHistory)(),{logContextEvent:j}=(0,R.v)(),[A,C]=(0,x.useState)(!1),D=(0,o.Z)({loggingId:i,objectIdStr:i,impressionType:"Article",contextLogData:{content_ids:s,story_id:_,story_type:m,article_id:i},slotIndex:c,viewParameter:b,viewType:f,componentType:r});return(0,g.jsx)(a.xu,{"data-test-id":"sf-hero",children:(0,g.jsxs)(a.xu,{ref:D,width:P,height:"auto",onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:[(0,g.jsx)(a.iP,{onTap:()=>{j({event_type:101,view_type:f,view_parameter:b,component:r,aux_data:{article_id:i,content_ids:s,story_id:_,story_type:m}}),k.push(t)},children:(0,g.jsxs)(a.xu,{height:p?400:"35vw",maxHeight:500,overflow:"hidden",position:"relative",children:[(0,g.jsx)(a.xu,{height:"100%",width:"100%",dangerouslySetInlineStyle:{__style:{transition:"transform 0.4s",transform:A?"scale(1.5)":"scale(1)"}},children:(0,g.jsx)(a.Ee,{src:d,alt:S._('Cover image of this shopping spotlight', 'hero.heroCoverImage', 'alt text for an image previewing the contents of a spotlight article'),color:"#fff",onLoad:h,fit:"cover",naturalHeight:400,naturalWidth:400,children:(0,g.jsx)(a.xu,{display:"block",height:"100%",width:"100%",color:"transparentDarkGray",opacity:.3})})}),(0,g.jsx)(a.xu,{width:"100%",position:"absolute",padding:6,marginBottom:p?12:0,bottom:!0,children:(0,g.jsxs)(a.kC,{direction:"column",height:"100%",justifyContent:"end",children:[(0,g.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{transition:"transform 0.4s",transform:A?"translateY(-20px)":"translateY(20px)"}},children:(0,g.jsx)(a.X6,{size:w<=822?"600":w<1e3?"400":w<1100?"500":"600",color:"light",children:v})}),(0,g.jsxs)(a.xu,{display:"block",height:A?"auto":20,overflow:"hidden",dangerouslySetInlineStyle:{__style:{opacity:A?1:0,transition:A?"opacity 0.4s ease-in":"opacity 0.4s ease-out"}},children:[(0,g.jsx)(a.xv,{color:"inverse",children:y}),n&&(0,g.jsx)(a.xu,{marginTop:4,children:(0,g.jsxs)(a.kC,{direction:"row",alignItems:"center",children:[(0,g.jsx)(L.qE,{size:"md",src:l,name:n}),"\xa0",(0,g.jsx)(a.xv,{color:"inverse",children:n})]})})]}),(0,g.jsx)(a.xu,{width:"74px",marginTop:4,children:(0,g.jsx)(a.zx,{color:"white",size:"lg",onClick:()=>{k.push(t)},text:e})})]})})]})}),void 0!==u&&(0,g.jsx)(Z.ZP,{data:u})]})})};var O=i(435497),N=i(239062),K=i(751191);function U({onImageLoad:e,story:t,view:i,viewParameter:n,component:l,width:r}){var o;let[s,d]=(0,x.useState)(0),u=(0,x.useRef)(null),c=(null===(o=t.objects)||void 0===o?void 0:o.slice(0,3))||[];return(0,g.jsxs)(a.xu,{position:"relative",display:"flex",width:r,height:400,justifyContent:"center",alignItems:"end",ref:u,children:[(0,g.jsx)(O.Z,{id:t.id,index:s,slideWidth:r,containerRef:u,children:c.map((a,o)=>{var s,d,u,c,p;return(0,g.jsx)(B,{actionText:(null===(s=a.action)||void 0===s?void 0:s.text)||"",actionUrl:(null===(d=a.action)||void 0===d?void 0:d.url)||"",articleId:a.id,coverImage:a.cover_images&&(null===(u=a.cover_images[0].originals)||void 0===u?void 0:u.url)||"",debug:a.debug,onImageLoad:e,storyId:t.id,storyType:t.story_type,subtitle:(null===(c=a.subtitle)||void 0===c?void 0:c.format)||"",title:(null===(p=a.title)||void 0===p?void 0:p.format)||"",index:o,isFullWidth:!0,view:i,viewParameter:n,component:l,width:r,windowWidth:r},a.id)})}),(0,g.jsx)(a.xu,{display:"inlineBlock",height:"auto",position:"absolute",width:"60%",paddingY:5,children:(0,g.jsx)(N.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,g.jsx)(K.Z,{showFab:!0,iconType:"forward",iconColor:"inverse"}),backNode:(0,g.jsx)(K.Z,{showFab:!0,iconType:"back",iconColor:"inverse"})})})]})}function H({component:e,onImageLoad:t,story:i,view:n,viewParameter:l,windowWidth:r}){var o;let s=(null===(o=i.objects)||void 0===o?void 0:o.slice(0,3))||[];return(0,g.jsxs)(x.Fragment,{children:[(0,g.jsx)(a.xu,{flex:"grow",dangerouslySetInlineStyle:{__style:{backgroundColor:s[0].dominant_colors[0]}}}),s.map((a,o)=>{var s,d,u,c,p;return(0,g.jsx)(B,{actionText:(null===(s=a.action)||void 0===s?void 0:s.text)||"",actionUrl:(null===(d=a.action)||void 0===d?void 0:d.url)||"",articleId:a.id,coverImage:a.cover_images&&(null===(u=a.cover_images[0].originals)||void 0===u?void 0:u.url)||"",debug:a.debug,index:o,onImageLoad:t,storyId:i.id,storyType:i.story_type,subtitle:(null===(c=a.subtitle)||void 0===c?void 0:c.format)||"",title:(null===(p=a.title)||void 0===p?void 0:p.format)||"",view:n,viewParameter:l,component:e,width:500,windowWidth:r},a.id)}),(0,g.jsx)(a.xu,{flex:"grow",dangerouslySetInlineStyle:{__style:{backgroundColor:s[2].dominant_colors[0]}}})]})}function V({component:e,pwtSurfaceContext:t,story:i,view:n,viewParameter:l}){let{width:r}=(0,F.Z)()||{},o=()=>{t&&t.markConstraintComplete("RenderHeroImages")};return(0,g.jsx)(x.Fragment,{children:(0,g.jsx)(a.kC,{alignItems:"stretch",direction:"row",justifyContent:"start",width:r,children:3==(!r||r>822?3:1)?(0,g.jsx)(H,{component:e,onImageLoad:o,story:i,windowWidth:r,view:n,viewParameter:l}):(0,g.jsx)(U,{component:e,onImageLoad:o,story:i,width:r,view:n,viewParameter:l})})})}function G({story:e}){var t;let i=(0,z.useHistory)(),{user:n,custom_properties:l,action:r}=e||{},{full_name:o,username:s,image_medium_url:d}=n||{},c=o||(null===(t=e.title)||void 0===t?void 0:t.format)||"",{url:p,text:h}=r||{},{image:_}=l||{};if(!p||!h)return null;let m=(0,g.jsxs)(a.xu,{height:"100%",padding:2,display:"flex",justifyContent:"center",alignItems:"center",color:"transparentDarkGray",position:"relative",children:[s&&d&&(0,g.jsx)(a.xu,{position:"absolute",top:!0,left:!0,padding:2,children:(0,g.jsx)(L.qE,{name:s,size:"sm",src:d})}),c&&(0,g.jsx)(a.xv,{color:"inverse",weight:"bold",children:c})]});return(0,g.jsxs)(a.xu,{marginBottom:4,width:u.yF,children:[(0,g.jsx)(a.iP,{onTap:()=>i.push(p),children:(0,g.jsx)(a.zd,{rounding:2,wash:!0,height:u.yF,children:"string"==typeof _&&_?(0,g.jsx)(a.Ee,{naturalHeight:u.yF,naturalWidth:u.yF,src:_,fit:"contain",alt:c,children:m}):(0,g.jsx)(a.xu,{width:u.yF,height:u.yF,children:m})})}),(0,g.jsx)(a.xu,{marginTop:3,children:(0,g.jsx)(a.ZP,{fullWidth:!0,text:h,href:p})})]})}let W=new Set([101]),$="UNKNOWN_CONTAINER_TYPE",q=void 0!==n?n:n=i(282167);function Y(e){var t,i;let{componentFallback:n,initialSlotIndex:l,view:r,viewParameter:u,width:c,story:{data:{action:p,containerType:h,contentIds:_,displayOptions:y,storyId:v,storyType:x,trackingParams:b},forward:{dataKeys:P,rawStoryData:w,storyGraphqlRef:S}}}=e,k=null!==(t=null==y?void 0:null===(i=y.contentDisplay)||void 0===i?void 0:i.componentType)&&void 0!==t?t:n,j=(0,o.Z)({clientTrackingParams:b,componentType:k,contextLogData:{story_id:v,story_type:x,content_ids:_},impressionType:"Story",loggingId:v,slotIndex:l||0,viewParameter:u,viewType:r}),A={...e,component:k},C=(()=>{switch(h){case 90:return(0,g.jsx)(s.Z,{...A,story:w,storyGraphqlRef:S});case 88:let{story:e,...t}=A,i={...t,storyKey:P.HeaderModule_story};return(0,g.jsx)(m.Z,{...i});case 89:let{location:n,text:l,url:a}=p||{};return(0,g.jsx)(d.Z,{url:a,location:n,text:l});case 91:return!!w&&(0,g.jsx)(T,{...A,story:w});case 101:return!!w&&(0,g.jsx)(V,{...A,story:w});case 92:return!!w&&(0,g.jsx)(G,{...A,story:w});case 131:return!!w&&(0,g.jsx)(f,{...A,story:w});default:return $}})();return C===$?null:(0,g.jsxs)(a.xu,{ref:j,width:W.has(h)?void 0:c,children:[C,(0,g.jsx)(a.xu,{})]})}let X=(0,r.Z)({useGraphQLAdapter:e=>{let t=(0,l.useFragment)(q,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,g.jsx)(X,{input:e?{enabled:!0,data:e}:{enabled:!1,data:t.story},children:({data:e})=>e&&(0,g.jsx)(Y,{...t,story:e})})}},700398:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});let n=new Set([90,88,89,91,101,92,131]);function l(e){return n.has(e)}},605706:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(667294),l=i(50286);function a(){let[e,t]=(0,n.useState)(!1),i=(0,l.HG)();return(0,n.useEffect)(()=>{!i&&window.innerWidth<320&&t(!0)},[i,t]),e}},782975:(e,t,i)=>{"use strict";function n(e,t){var i;let n=`${e.type||""} ${t.toString()}`;switch(e.type){case"pin":return e.title||n;case"user":return e.username||n;case"explorearticle":return(null===(i=e.title)||void 0===i?void 0:i.format)||n;case"story":return e.id||n;default:return n}}i.d(t,{Z:()=>n})},673108:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});let n=new Set([92]),l=new Set(["BUBBLE_ONE_COL"]);function a(e){let t=[];return e.forEach(e=>{if("story"===e.type?n.has(e.container_type)||l.has(e.story_type):1){let i=t[t.length-1];Array.isArray(i)?i.push(e):t.push([e])}else t.push(e)}),t}},905031:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(792182),l=i(444445);function a(){let{width:e}=(0,n.Z)()||{width:0};return e<2*l.yF+l.$H}},792606:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_}),i(167912);var n,l=i(883119),a=i(681669),r=i(898781),o=i(349700),s=i(867820),d=i(52022),u=i(829407),c=i(785893);let p=void 0!==n?n:n=i(353070);function h({pin:e,onClose:t,zIndex:i}){var n,a,p,h;let _=null==e?void 0:null===(n=e.board)||void 0===n?void 0:n.name,m=(null==e?void 0:null===(a=e.board)||void 0===a?void 0:a.privacy)==="protected"?null:null==e?void 0:null===(p=e.board)||void 0===p?void 0:p.url,g=(0,r.ZP)(),y=(0,d.Z)(),v=m&&_?{boardName:_,boardUrl:m,username:m.split("/")[1]}:null;return(0,u.Z)(()=>{var t;null!=e&&null!==(t=e.description)&&void 0!==t&&t.trim()||v||(0,s.My)("lop.dweb.plp.more_info.empty")}),(0,c.jsx)("div",{"data-test-id":"more-information-modal",style:{backgroundColor:"rgba(85, 85, 85, 0.9)",color:"#333",height:"100vh",left:0,position:"fixed",top:0,WebkitFontSmoothing:"antialiased",width:"100vw",zIndex:i||2},onClick:()=>{y({action:"click",item:"close-more-information-modal"}),t()},children:(0,c.jsxs)(l.xu,{as:"section",color:"default",dangerouslySetInlineStyle:{__style:{left:"50%",top:"50%",transform:"translate(-50%, calc(-50% - 32px))",paddingBottom:"10px"}},onClick:e=>e.stopPropagation(),position:"absolute",rounding:2,width:414,children:[(0,c.jsxs)(l.xu,{display:"flex",height:60,justifyContent:"end",dangerouslySetInlineStyle:{__style:{borderBottom:"solid 1px #efefef",padding:"0 24px"}},children:[(0,c.jsx)("div",{onClick:()=>t(),onKeyUp:()=>t(),role:"button",style:{cursor:"pointer",fill:"#767676",marginTop:"20px"},tabIndex:"0",children:(0,c.jsx)(l.xu,{"data-test-id":"close-more-information-modal",children:(0,c.jsx)(l.JO,{accessibilityLabel:g._('Cancel', 'close modal icon', 'close modal icon'),icon:"cancel",inline:!0,size:18})})}),(0,c.jsx)(l.xu,{marginTop:5,position:"absolute",dangerouslySetInlineStyle:{__style:{fontSize:"21px",fontWeight:"bold",left:"50%",transform:"translateX(-50%)"}},children:g._('More information', 'more information label', 'more information label')})]}),(0,c.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:{maxHeight:"calc(60vh - 60px)",overflowY:"auto",padding:"0 24px 24px 24px"}},children:[!!(null!=e&&e.description)&&(0,c.jsx)("h2",{style:{fontSize:"16px",marginTop:"15px"},children:e.description}),!!v&&(0,c.jsx)(l.xu,{marginTop:3,children:(0,c.jsx)(l.xv,{children:(0,o.nk)(g._('Find this Pin and more on {{ board_link }} by {{ profile_link }}.', 'Link to pin\'s board and board\'s owner', 'Link to pin\'s board and board\'s owner'),{board_link:(0,c.jsx)(l.xv,{inline:!0,weight:"bold",children:(0,c.jsx)(l.rU,{display:"inlineBlock",href:v.boardUrl,onClick:()=>(0,s.NC)("click_vase_modal_board",!0),underline:"hover",children:v.boardName},"board-link")}),profile_link:(0,c.jsx)(l.xv,{inline:!0,weight:"bold",children:(0,c.jsx)(l.rU,{display:"inlineBlock",href:`/${v.username}/`,onClick:()=>(0,s.NC)("click_vase_modal_profile",!0),underline:"hover",children:(null==e?void 0:null===(h=e.pinner)||void 0===h?void 0:h.fullName)||v.username},"profile-link")})})})})]})]})})}function _({pinKey:e,...t}){let{data:i}=(0,a.sr)(p,e,{type:"pin",useLegacyAdapter:e=>({board:e.board&&{name:e.board.name,privacy:e.board.privacy,url:e.board.url},description:e.description,pinner:e.pinner&&{fullName:e.pinner.full_name}})});return i&&(0,c.jsx)(h,{...t,pin:i})}},512176:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(667294),l=i(883119),a=i(112690),r=i(898781),o=i(967181),s=i(785893);let d={sm:12,md:16,lg:20,xl:24};function u({isVerifiedMerchant:e,size:t,showText:i,showVerifiedIdentity:u,inspirationalBadges:c,inspirationalBadgesColor:p}){let h=(0,r.ZP)(),[_,m]=(0,n.useState)(!1),{dangerousInlineStyle:g,iconColor:y}=(0,o.W)(!!e),v=(0,a.Z)();return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(l.iP,{onTap:()=>{v({component:13534,element:11717,event_type:102}),m(!0)},rounding:"circle",children:(0,s.jsxs)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:g,display:"flex","data-test-id":"verified-badge-icon",children:[(0,s.jsx)(l.JO,{accessibilityLabel:e?h._('Merchant verification badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'):h._('Badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'),icon:"workflow-status-ok",color:y,inline:!0,size:d[t]}),i&&!u&&(0,s.jsx)(l.xu,{marginStart:2,children:(0,s.jsx)(l.xv,{color:"shopping",inline:!0,weight:"bold",children:(0,s.jsx)(l.xu,{dangerouslySetInlineStyle:g,children:h._('Verified merchant', 'creator.header.verifiedMerchant', 'this merchant is a verified merchant')})})})]})}),(e||i&&!u)&&(0,s.jsx)(o.Z,{showModal:_,setShowModal:m,inspirationalBadges:c,inspirationalBadgesColor:p})]})}},967181:(e,t,i)=>{"use strict";i.d(t,{W:()=>c,Z:()=>p});var n=i(667294),l=i(883119),a=i(752403),r=i(112690),o=i(121151),s=i(898781),d=i(966113),u=i(785893);let c=e=>{let t=e?"shopping":"error";return{iconColor:t,dangerousInlineStyle:{__style:{color:t}}}};function p({inspirationalBadges:e=[],inspirationalBadgesColor:t,showModal:i,setShowModal:p}){let h=(0,s.ZP)(),[_,m]=(0,n.useState)(!0),{dangerousInlineStyle:g,iconColor:y}=c(!0),v=(0,r.Z)();return(0,n.useEffect)(()=>{i&&_&&(m(!1),v({event_type:13,component:13534}))},[i]),(0,u.jsx)(o.ZP,{accessibilityModalLabel:h._('Verified merchant information', 'creator.verifiedMerchant.accessibilityModalLabel', 'Accessibility label for modal informing about a verified merchant'),isOpen:i,mobileAccessibilityCloseIconLabel:h._('Close', 'Close modal window', 'Close modal'),onDismiss:()=>{v({component:13534,element:11716,event_type:102}),p(!1)},type:"verified_merchant_modal",children:(0,u.jsx)(l.xu,{padding:3,children:(0,u.jsxs)(l.xu,{display:"flex",direction:"column",padding:2,"data-test-id":"verified-badge-modal",children:[(0,u.jsx)(l.xu,{display:"flex",dangerouslySetInlineStyle:g,justifyContent:"center",children:(0,u.jsx)(l.JO,{accessibilityLabel:h._('Merchant verification badge icon', 'creator.verifiedMerchant.modalIcon', 'Badge indicating that a merchant or user is verified'),color:y,icon:"workflow-status-ok",size:24})}),(0,u.jsx)(l.xu,{marginTop:4,children:(0,u.jsx)(l.xv,{color:"shopping",weight:"bold",align:"center",children:(0,u.jsx)(l.xu,{dangerouslySetInlineStyle:g,children:h._('Verified merchant', 'creator.verifiedMerchant.modalHeader', 'this merchant is a verified merchant')})})}),(0,u.jsx)(l.xu,{marginTop:4,marginBottom:4,children:(0,u.jsx)(l.xv,{align:"center",overflow:"normal",children:h._('This retailer meets Pinterest\'s Merchant Guidelines', 'creator.verifiedMerchant.modalText.', 'this merchant is a verified merchant')})}),e.map(e=>(0,u.jsxs)(l.xu,{display:"flex",direction:"column",marginTop:4,children:[(0,u.jsx)(l.kC,{alignItems:"stretch",justifyContent:"center",children:(0,u.jsx)(l.xv,{overflow:"noWrap",size:"100",weight:"bold",children:(0,u.jsx)(l.xu,{display:"inlineBlock",rounding:1,paddingX:2,paddingY:2,dangerouslySetInlineStyle:{__style:(0,a.ym)(t)},"data-test-id":"verified-badge-modal-inspirational-badge",children:e.label})})}),(0,u.jsx)(l.xu,{marginTop:2,children:(0,u.jsx)(l.xv,{align:"center",overflow:"normal",children:e.description})})]},e.id)),(0,u.jsx)(l.xu,{display:"flex",marginTop:8,justifyContent:"center",width:"100%","data-test-id":"verified-badge-modal-learn-more",children:(0,u.jsx)(l.ZP,{accessibilityLabel:h._('Learn more', 'creator.verifiedMerchant.buttonText', 'learn more about the verified merchant program by visiting help.pinterest.com'),target:"blank",size:"lg",href:d.vBy,text:h._('Learn more', 'creator.verifiedMerchant.buttonText', 'learn more about the verified merchant program by visiting help.pinterest.com')})})]})})})}},55259:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(619937),l=i(794230);let a={campaignFilter:"all",adGroupFilter:"all",adFilter:"all"},r=e=>{let t={};return e&&(t={objectiveTypes:[e]}),t},o={overview:()=>"/",reporting:e=>{let t=e.objectiveType||null;delete e.objectiveType;let i={...e,...r(t)};return(0,l.Z)("/reporting/campaigns/",i)},reportingAdGroup:e=>{let{campaignId:t,objectiveType:i,showAllEntities:n,adGroupId:o,message:s}=e,d=n?a:{},u={campaignIds:[t],...d,...r(i),...o?{adGroupIds:[o]}:{},message:s};return(0,l.Z)("/reporting/adgroups/",u)},campaign:e=>{let{id:t,objectiveType:i}=e;return(0,l.Z)("/reporting/adgroups/",{campaignIds:[t],...r(i)})},editCampaign:e=>e.isAutomatedCampaign?o.editAutomated({campaignId:e.id,view:"campaign"}):o.editV2({campaignId:e.id,view:"campaign"}),adgroup:e=>{let{id:t,objectiveType:i,showAllEntities:n,pinPromotionId:o,campaignId:s}=e;if("TEMPORARY_SHOPPING"===i||"CATALOG_SALES"===i)return(0,l.Z)("/reporting/productgroups/",{adGroupIds:[t],...r(i)});{let e=n?a:{},d=s?{campaignIds:[s]}:{},u=o?{pinPromotionIds:[o]}:{};return(0,l.Z)("/reporting/ads/",{adGroupIds:[t],...r(i),...e,...u,...d})}},editAdGroup:e=>e.isAutomatedCampaign?o.editAutomated({campaignId:e.id,view:"campaign"}):o.editV2({adGroupId:e.id,view:"adgroup"}),pinPromotion:e=>{let{id:t,adFilter:i}=e,n=i?{adFilter:i}:{};return(0,l.Z)("/reporting/ads/",{pinPromotionIds:[t],...n})},editPinPromotion:e=>{let t=e.isCreatingPins?{isCreatingPins:!0}:{},i=e.pinPromotionId?{pinPromotionId:e.pinPromotionId}:{};return o.editV2({adGroupId:e.adGroupId,view:"ad",...i,...t})},productGroup:e=>{let{id:t,name:i}=e;return(0,l.Z)("/reporting/productgroups/",{productGroupIds:[t],name:i})},campaigns:()=>"/reporting/campaigns/",adgroups:()=>"/reporting/adgroups/",ads:()=>"/reporting/ads/",bulkEdit:e=>{let{entity_level:t,ids:i}=e;return(0,l.Z)("/ads/bulk_edit/",{entity_level:t,ids:i})},productgroups:()=>"/reporting/productgroups/",productitems:()=>"/reporting/productitems/",campaignNegativeKeywords:()=>"/reporting/campaignNegativeKeywords/",campaignSearchQueries:()=>"/reporting/campaignSearchQueries/",adGroupNegativeKeywords:()=>"/reporting/adGroupNegativeKeywords/",adGroupPositiveKeywords:()=>"/reporting/adGroupPositiveKeywords/",adGroupSearchQueries:()=>"/reporting/adGroupSearchQueries/",ad:e=>o.pinPromotion(e),campaignMode:e=>(0,l.Z)("/ads/campaign_mode/",e.managedClientId?{managedClientId:e.managedClientId}:void 0),create:e=>{let{campaignId:t,objectiveType:i,partialCreate:n,catalogsFeedId:a,managedClientId:r,productGroupId:o,resumeLastDraft:s}=e,d={};return t&&n&&(d.campaignId=t),i&&(d.objectiveType=i),"CATALOG_SALES"===i&&a&&(d.catalogsFeedId=a),o&&(d.productGroupId=o),r&&(d.managedClientId=r),s&&(d.resumeLastDraft=!0),(0,l.Z)("/ads/create/",d)},createAutomated:e=>(0,l.Z)("/automated/ads/create/",e),editV2:e=>(0,l.Z)("/ads/edit/",e),editAutomated:e=>(0,l.Z)("/automated/ads/edit/",e),editDraftCampaign:e=>(0,l.Z)("/ads/edit_draft/",{campaignId:e.campaignId,view:"campaign"}),duplicateCampaign:e=>(0,l.Z)("/ads/duplicate/",e),audiences:e=>(0,l.Z)("/audiences/",e.managedClientId?{managedClientId:e.managedClientId}:void 0),audience_debug:()=>"/audience_debug/",prepaid_spend_campaign_breakdown:()=>"/billing/prepaid_spend_campaign_breakdown/",billing:e=>{let{page:t,subSection:i,nextStepUrl:a}=e;switch(t){case n.kM.BILLING_HISTORY:return"/billing/history/";case n.kM.ORDER_LINES:return"/billing/order_lines/";case n.kM.PROMOTIONS:return"/billing/promotions/";case n.kM.DOCUMENTS:return"/billing/documents/";case n.kM.TAX_DOCUMENTS:return"/billing/tax_documents/";case n.kM.PREPAID_CAMPAIGN_SPEND:return"/billing/prepaid_campaign_spend_summary/";default:let r={};return i&&(r.section=i),a&&(r.next_step_link_url=a),(0,l.Z)("/billing/",r)}},bulk:e=>{let{subSection:t,page:i,jobStarted:a}=e||{};switch(i){case n.fm.UPLOAD_TEMPLATE:return(0,l.Z)("/bulk_editor/upload_template/",{section:t});case n.fm.DOWNLOAD_TEMPLATE:return(0,l.Z)("/bulk_editor/download_template/",{section:t});case n.fm.HISTORY:return(0,l.Z)("/bulk_editor/history/",{section:t,job_started:a});case n.fm.RESOURCES:return(0,l.Z)("/bulk_editor/resources/",{section:t});default:return"/bulk_editor/"}},history:e=>(0,l.Z)("/history/",e),shopping:e=>o.reporting(r("TEMPORARY_SHOPPING")),pinterest_tag:e=>{let{page:t,subSection:i,platform:a,source:r,origin:o}=e;switch(t){case n.qp.PINTEREST_EVENTS_OVERVIEW_BEFORE_SETUP:return"/conversions/events-overview/";case n.qp.PINTEREST_EVENT_HISTORY:if(r)return(0,l.Z)("/conversions/event-history/",{source:r});return"/conversions/event-history/";case n.qp.CONVERSION_HEALTH:return"/conversions/health/";case n.qp.PINTEREST_TEST_EVENTS:return(0,l.Z)("/conversions/test-events/",{subPage:i,platform:a});case n.qp.PINTEREST_TAG:return(0,l.Z)("/conversions/tag/",{subPage:i,platform:a});case n.qp.PINTEREST_TAG_MANUAL_SETUP_FLOW:if(a)return(0,l.Z)("/conversions/tag_manual_setup/",{platform:a,source:r});return"/conversions/tag_manual_setup/";case n.qp.PINTEREST_TAG_EVENTS:return"/conversions/tag-events/";case n.qp.PINTEREST_TAG_HEALTH:return"/conversions/tag-health/";case n.qp.CONVERSION_UPLOAD:return(0,l.Z)("/conversions/upload/",{subPage:i});case n.qp.UPLOAD_HISTORY:return(0,l.Z)("/conversions/history/",{subPage:i});case n.qp.PCA_UPLOAD_HISTORY:return(0,l.Z)("/conversions/pca_history/",{subPage:i});case n.qp.PCA_UPLOAD:return(0,l.Z)("/conversions/pca_upload/",{subPage:i});case n.qp.CONVERSIONS_API_MANUAL_SETUP_FLOW:if(r||o)return(0,l.Z)("/conversions/api_manual_setup/",{source:r,origin:o});return"/conversions/api_manual_setup/";case n.qp.CONVERSIONS_API_PARTNER_SETUP_FLOW:if(r||o)return(0,l.Z)("/conversions/api_partner_setup/",{source:r,origin:o});return"/conversions/api_partner_setup/";case n.qp.CONVERSIONS_API_ACCESS_TOKEN:return"/conversions/access_token/";case n.qp.PINTEREST_SETUP_API:return"/conversions/setup-api/";case n.qp.CONVERSIONS_API_DEDUPLICATION:return"/conversions/deduplication/";case n.qp.PAYLOAD_HELPER:return"/conversions/payload-helper/";case n.qp.CONVERSIONS:return"/conversions/";default:return"/conversions/tag/"}},"pin-builder":e=>(0,l.Z)("/pin-builder/",e),purchases:()=>o.reporting(r("PURCHASE")),awareness_reserved:()=>o.reporting(r("IMPRESSION")),engagement:()=>o.reporting(r("BILLABLE_ENGAGEMENT")),videos:()=>o.reporting(r("TEMPORARY_BIDDED_CPM_VIDEO")),videos_reserved:()=>o.reporting(r("TEMPORARY_IMPRESSION_VIDEO")),videos_cpv:()=>o.reporting(r("TEMPORARY_MRC_CPV_VIDEO")),conversions:()=>o.reporting(r("WEB_CONVERSION")),accounts_manager:()=>"/accounts_manager/",reporting_preferences:e=>(0,l.Z)("/reporting/preferences/",e),report_builder:e=>(0,l.Z)("/report-center/builder/",e),report_history:e=>(0,l.Z)("/report-center/history/",e),report_unsubscribe:e=>(0,l.Z)("/report-center/unsubscribe/",e),report_download:e=>(0,l.Z)("/report-center/download/",e),media_planner:()=>"/media_planner/",awareness:()=>o.reporting(r("AWARENESS")),traffic:()=>o.reporting(r("TRAFFIC")),app_installs:()=>o.reporting(r("APP_INSTALL")),catalog_sales:()=>o.reporting(r("CATALOG_SALES")),web_conversion:()=>o.reporting(r("WEB_CONVERSION")),video_view:()=>o.reporting(r("VIDEO_VIEW")),quick_promote:e=>(0,l.Z)("/quick-promote/",e),quick_promote_on_www:()=>"/advertiser/quick-promote/",recommendations:e=>(0,l.Z)("/recommendations/",e),catalog_view:()=>"/product-catalogs/data-source",campaign_insights:e=>`/campaign-insights/${e.campaignId}/`,product_group_reporting:e=>`/campaign-insights/${e.campaignId}/product-group/${e.productGroupId}`},s=o},28543:(e,t,i)=>{"use strict";i.d(t,{default:()=>r});var n=i(55259),l=i(966113),a=i(567831);function r(e,t,i){var r;let o;if(!n.Z[e])throw Error(`unknown url key: ${e}`);i||(i={});let s=n.Z[e](i),d=(o=null,(r=i)&&(o=r.advertiserId||null),!o&&t&&(o=t.id),o),u=!!i.absolutify;return"string"==typeof d&&(s="/advertiser/"+d+s),u&&(s=(0,a.Z)(s,void 0,l.KUo)),s}},21353:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(702664),l=i(28543);function a(){let e=(0,n.useSelector)(({advertiser:e})=>e);return(t,i)=>(0,l.default)(t,e,i)}},77601:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});let n="undefined"!=typeof window&&window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now();function l({window:e,duration:t,run:i}){let l=n(),a=0,r=null,o=()=>{let s=n()-l,d=s-a;if(t===1/0)i(0,s,d);else{let e=s/t;if(e>=1){i(1,s,d);return}i(e,s,d)}a=s,r=e.requestAnimationFrame(o)};return{start:()=>{r=e.requestAnimationFrame(o)},cancel:()=>{r&&(e.cancelAnimationFrame(r),r=null)}}}},283698:(e,t,i)=>{"use strict";function n(e){return("undefined"==typeof window||!Object.prototype.hasOwnProperty.call(window,"requestAnimationFrame"))&&e&&e(),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{e&&e()})})}i.d(t,{Z:()=>n})},100183:(e,t,i)=>{"use strict";i.d(t,{CC:()=>l,Ll:()=>r,XF:()=>a});let n=(e,t,i)=>({x:Math.floor(e*Math.cos(i)),y:Math.floor(t*Math.sin(i))}),l=(e,t)=>{let i=2*Math.random()*Math.PI;return n(t/2,e/2,i)},a=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,r=e=>["@-webkit-keyframes","@keyframes"].map(t=>e.map(e=>t+" "+e).join("\n")).join("\n")},561067:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h}),i(167912);var n,l=i(883119),a=i(681669),r=i(898781),o=i(867820),s=i(52022),d=i(785893);let u=void 0!==n?n:n=i(30755),c=()=>{let e=(0,r.ZP)();return(0,d.jsx)(l.xv,{size:"300",children:e._('Featured in Pinterest\'s article', 'Title of suggesting articles module in the pin.', 'unauth.main_pin.featured_in_articles')})};function p({isDesktop:e,pin:t}){let i=(0,r.ZP)(),n=(0,s.Z)(),{_id:a,mainImageUrl:u,title:p,urlPath:h}=(null==t?void 0:t.relatedArticle)||{};if(!a&&!u&&!p&&!h)return null;let _=()=>{(0,o.tj)("mweb.unauth.featured_in_article_text.plp.touch",{article_id:a}),n({action:"click",item:"pin-featured-in-article"})};return(0,d.jsxs)(l.xu,{marginTop:10,children:[(0,d.jsx)(l.iz,{}),!e&&(0,d.jsx)(l.xu,{marginTop:4,marginBottom:-2,children:(0,d.jsx)(c,{})}),(0,d.jsxs)(l.xu,{display:"flex",direction:"row",marginBottom:4,marginTop:4,children:[(0,d.jsx)(l.xu,{alignSelf:"center",children:(0,d.jsx)(l.zd,{width:48,height:48,rounding:3,children:u&&(0,d.jsx)(l.Ee,{alt:"",color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:u})})}),(0,d.jsxs)(l.xu,{marginStart:2,marginEnd:2,alignSelf:"center",children:[e&&(0,d.jsx)(c,{}),(0,d.jsx)(l.rU,{href:h||"",underline:"none",tapStyle:"compress",onClick:()=>_(),children:(0,d.jsx)(l.xv,{size:"300",weight:"bold",overflow:"normal",children:p})})]}),(0,d.jsx)(l.xu,{"data-test-id":"view-button",marginStart:"auto",children:(0,d.jsx)(l.ZP,{fullWidth:!0,href:h||"",size:"lg",text:i._('View', 'Button that takes the user from a pin to the article the pin is featured on', 'unauth.main_pin.view_featured_in_articles'),onClick:()=>_()})})]})]})}let h=({pinKey:e,...t})=>{let{data:i}=(0,a.sr)(u,e,{type:"pin",useLegacyAdapter:e=>({relatedArticle:e.related_article&&{_id:e.related_article.id,mainImageUrl:e.related_article.main_image_url,title:e.related_article.title,urlPath:e.related_article.url_path}})});return i&&(0,d.jsx)(p,{...t,pin:i})}},613316:(e,t,i)=>{"use strict";function n(e){return[0,24,21,26].includes(e)}function l({articleType:e,id:t,title:i}){let n=i.toLowerCase().replace(/[.,\/#!?$%\^&\*+;:{}=\-_`~()\’'"]/g,"").trim().replace(/\s+/g,"-");return"today"===e?`/today/shop/${n}/${t}/`:`/discover/article/${n}/${t}/`}i.d(t,{x:()=>l,y:()=>n})},987765:(e,t,i)=>{"use strict";i.d(t,{t:()=>y,Z:()=>f});var n=i(883119),l=i(667294),a=i(391254),r=i(785893);let o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s=()=>[,,,,,].fill().map(()=>o[Math.floor(Math.random()*o.length)]).join(""),d=e=>{let t=[],i=Math.floor(3*Math.random()+1);for(let n=0;n<i-1;n+=1){let i=Math.floor(Math.random()*(e.length-1)+1);t.push(i)}t.sort((e,t)=>e-t);let n=[],l=0;for(let i=0;i<t.length;i+=1)n.push(e.slice(l,t[i])),l=t[i];return n.push(e.slice(l)),[...n]};function u({children:e}){let t=(0,l.useMemo)(()=>d(e.replace(" "," ")).map(e=>({className:s(),content:e})),[e]);return(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(a.Z,{unsafeCSS:t.map(({className:e,content:t})=>`.${e} { display: inline; overflow-wrap: unset; } .${e}:before { content: "${t}"; font-weight: 600; }`).join(" ")}),t.map(({className:e})=>(0,r.jsx)("div",{className:e},e))]})}var c=i(773285),p=i(780280),h=i(19121);let _=e=>"Promoted by"===e,m=()=>{var e;let t=(0,h.Z)(),{checkExperiment:i}=(0,c.F)(),n=null!==(e=i("web_obfuscate_ads_with_global_css").group.split("_")[3])&&void 0!==e?e:"op";return`${n}${t.isAuth?t.id:"unauth"}`},g=()=>(0,r.jsx)("div",{className:m()}),y=()=>{let{checkExperiment:e}=(0,c.F)(),t=m();return e("web_obfuscate_ads_with_global_css").anyEnabled?(0,r.jsx)(a.Z,{unsafeCSS:`.${t}:before { content: "Promoted by"; font-weight: 600; }`}):null};function v({children:e}){let{checkExperiment:t}=(0,c.F)();return t("web_obfuscate_ads_with_global_css").anyEnabled?(0,r.jsx)(g,{}):(0,r.jsx)(u,{children:e})}function f({children:e,lineClamp:t,size:i,underline:l,weight:a}){let{isAuthenticated:o}=(0,p.B)(),s=o&&_(e);return(0,r.jsx)(n.xv,{size:i,lineClamp:t,underline:l,weight:a,title:s?void 0:e,children:s?(0,r.jsx)(v,{children:e}):e})}},41233:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(221263),l=i(937330);function a({action:e,board:t,viewer:i}){var a,r;return(0,n.Z)(i,null===(a=t.owner)||void 0===a?void 0:a.id)||(0,l.Z)(t.collaborated_by_me,i)&&!!(null!==(r=t.collaborator_permissions)&&void 0!==r&&r.includes(e))}},221263:(e,t,i)=>{"use strict";function n(e,t){return e.isAuth&&t===e.id}i.d(t,{Z:()=>n})},937330:(e,t,i)=>{"use strict";function n(e,t){return!!(t.isAuth&&e)}i.d(t,{Z:()=>n})},4294:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(221263),l=i(937330);function a(e,t,i){return(0,n.Z)(i,t)||(0,l.Z)(e,i)}},792182:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(667294);function l(e){return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}function a(){return window.innerWidth}function r(){return window.innerHeight}function o(){return null}function s(){let e=(0,n.useSyncExternalStore)(l,r,o),t=(0,n.useSyncExternalStore)(l,a,o);return null!==e&&null!==t?{height:e,width:t}:null}},326884:(e,t,i)=>{"use strict";i.d(t,{EF:()=>c,Hg:()=>P,Hl:()=>v,IR:()=>g,Je:()=>d,K3:()=>A,O1:()=>I,Q6:()=>h,QE:()=>n,V3:()=>b,Z4:()=>m,c7:()=>y,cU:()=>r,cg:()=>l,dZ:()=>a,gO:()=>f,j$:()=>x,j9:()=>C,pg:()=>T,pt:()=>j,qq:()=>E,sy:()=>u,tP:()=>w,uE:()=>_,vk:()=>D,w2:()=>s,we:()=>k,ww:()=>S,xX:()=>o,yR:()=>p});let n=3e3,l=280,a=500,r=1e4,o=250,s=o+1,d=50,u=50,c=20,p=20,h={DASHBOARD:"DASHBOARD",PEOPLE:"PEOPLE",PARTNERS:"PARTNERS",AD_ACCOUNTS:"AD_ACCOUNTS",AD_ACCOUNTS_PENDING_TAB:"AD_ACCOUNTS_PENDING_TAB",HISTORY:"HISTORY",PEOPLE_DETAIL:"PEOPLE_DETAIL",PARTNERS_DETAIL:"PARTNERS_DETAIL",SHARED_PARTNERS_DETAIL:"SHARED_PARTNERS_DETAIL",AD_ACCOUNTS_DETAIL:"AD_ACCOUNTS_DETAIL",PENDING_AD_ACCOUNTS_DETAIL:"PENDING_AD_ACCOUNTS_DETAIL",PEOPLE_INVITES:"PEOPLE_INVITES",PARTNERS_INVITES:"PARTNERS_INVITES",CHOOSER:"CHOOSER",PARTNERS_REQUEST_PAGE:"PARTNERS_REQUEST_PAGE",PARTNERS_INVITE_PAGE:"PARTNERS_INVITE_PAGE",PROFILES:"PROFILES",PROFILES_DETAIL:"PROFILES_DETAIL",PARTNERS_PENDING_TAB:"PARTNERS_PENDING_TAB",PEOPLE_PENDING_TAB:"PEOPLE_PENDING_TAB",USERS:"USERS",ACOUNTS:"ACCOUNTS",BUSINESS_SECURITY:"BUSINESS_SECURITY",SUPPORT_TOOL:"SUPPORT_TOOL",ASSETS:"ASSETS",ASSET_GROUPS:"ASSET_GROUPS",INVOICE_MANAGEMENT:"INVOICE_MANAGEMENT",BUSINESS_HIERARCHY:"BUSINESS_HIERARCHY",BUSINESS_HIERARCHY_BUSINESS_SECURITY:"BUSINESS_HIERARCHY_BUSINESS_SECURITY",MANAGERS:"MANAGERS",AUDIENCES:"AUDIENCES",SHARED_TAGS:"SHARED_TAGS",CATALOGS:"CATALOGS"},_={PARTNER:"PARTNER",PARTNER_ADMIN:"PARTNER_ADMIN"},m={ADVERTISER_OWNED_AD_ACCOUNT:"ADVERTISER_OWNED_AD_ACCOUNT",AGENCY_OWNED_AD_ACCOUNT:"AGENCY_OWNED_AD_ACCOUNT"},g={ASCENDING:"ASCENDING",DESCENDING:"DESCENDING"},y={AD_ACCOUNT:"AD_ACCOUNT",PERSON:"PERSON",PARTNER:"PARTNER"},v={PERSON:"PERSON",PARTNER:"PARTNER",PROFILE:"PROFILE"},f={ADMIN:"ADMIN",ANALYST:"ANALYST",FINANCE_MANAGER:"FINANCE_MANAGER",AUDIENCE_MANAGER:"AUDIENCE_MANAGER",CAMPAIGN_MANAGER:"CAMPAIGN_MANAGER",CATALOGS_MANAGER:"CATALOGS_MANAGER"},x=["ADMIN","ANALYST","FINANCE_MANAGER","AUDIENCE_MANAGER","CAMPAIGN_MANAGER","CATALOGS_MANAGER"],b={EMPLOYEE:"EMPLOYEE",BIZ_ADMIN:"BIZ_ADMIN",OWNER:"OWNER"},P=["PROFILE_PUBLISHER"],w={AD_ACCOUNT:0,PROFILE:2,ASSET_GROUP:3},S={0:"AD_ACCOUNT",2:"PROFILE",3:"ASSET_GROUP"},k={id:"0",is_pin_support_user:!0,biz_roles:[b.BIZ_ADMIN],business_roles:[b.BIZ_ADMIN],user:{username:"psupport",full_name:"Pinterest support",image_small_url:"https://i.pinimg.com/60x60_RS/f6/e9/3a/f6e93a06b500b2d87ffd32e1f56f7c6f.jpg",image_medium_url:"https://i.pinimg.com/150x150_RS/f6/e9/3a/f6e93a06b500b2d87ffd32e1f56f7c6f.jpg"}},j={ACTIVE:0,PENDING:1},A={ACTIVE:"active",PENDING:"pending"},C="filter_type",D={page:1,totalCount:0,limit:10,sortDirection:"ASCENDING",sortBy:void 0,searchBy:void 0,searchTerm:""},E={WARNING:"WARNING",DEFAULT:"DEFAULT"},I={BUSINESS_INVITE_INVALID:2932,BUSINESS_ACCESS_PERSONAL_ACCOUNT:2936,INVALID_USERNAME:90,ACCESS_DENIED:280,BUSINESS_RELATIONSHIP_ALREADY_EXISTS:2751,ODO_BUSINESS_RELATIONSHIP_ALREADY_EXISTS:53,BUSINESS_RELATIONSHIP_COUNT_EXCEEDED:2769,BUSINESS_NUMBER_MEMBERS_IN_POLICY_EXCEEDS:2938,ODO_BUSINESS_NUMBER_MEMBERS_IN_POLICY_EXCEEDS:66,ODO_BIZ_INVITE_EXISTS:71,INVALID_ODO_REQUEST:2755,BUSINESS_INVITE_STACKED_ERROR:2773,ACL_POLICY_NOT_FOUND:1110,BUSINESS_INVITE_NOT_EXIST:2770},T={ALL_TAGS:"ALL",OWNED:"OWNED",SHARED:"SHARED"}},752403:(e,t,i)=>{"use strict";i.d(t,{Bu:()=>_,Dm:()=>o,I:()=>y,NG:()=>p,QP:()=>u,S4:()=>d,Xe:()=>c,_f:()=>h,eT:()=>m,hm:()=>g,yQ:()=>s,ym:()=>v});var n=i(642345);let l=Object.freeze({AFRICAN_AMERICAN_OR_BLACK:"african_american_or_black",BLACK_AFRICAN_DIASPORA:"black_african_diaspora",HISPANIC_OR_LATINX:"hispanic_or_latinx",NATIVE_OR_INDIGENOUS:"native_or_indigenous",ABORIGINAL_OR_INDIGENOUS:"aboriginal_or_indigenous",NATIVE_AMERICAN_OR_ALASKA_NATIVE_OR_INDIGENOUS_PEOPLES:"native_american_or_alaska_native_or_indigenous_peoples",ASIAN_OR_PACIFIC_ISLANDERS:"asian_or_pacific_islanders",ASIAN:"asian",LGBTQ:"lgbtq",MIDDLE_EASTERN:"middle_eastern",TURKISH:"turkish",ROMA:"roma",MIDDLE_EASTERN_TURKISH_ROMA:"middle_eastern_turkish_roma",NORTH_AFRICAN:"north_african",MIDDLE_EASTERN_OR_NORTH_AFRICAN:"middle_eastern_or_north_african",NONE:"none"}),a=Object.freeze({PERSON_OF_COLOR:"person_of_color",LGBTQ:"lgbtq",DISABILITY:"disability",WOMAN:"woman",NONE:"none"}),r=Object.freeze({INVESTED_IN_GOOD:"invested_in_good",ECO_FRIENDLY:"eco_friendly",RESPONSIBLY_SOURCED:"responsibly_sourced",INCLUSIVE:"inclusive",PERSONAL_TOUCH:"personal_touch"}),o=[...Object.keys(l).map(e=>l[e]),...Object.keys(a).map(e=>a[e])],s=[...Object.keys(r).map(e=>r[e])],d=3,u=["#EFEFEF","#F8E3D1","#F6F1C1","#DDEEAF","#C9F2EE","#DBD5F4","#EFBCEE"],c={business_diversity_labels:[],created_at:"",disapproval_reasons:[],is_inspirational:!1,review_criteria:[],review_labels:[],updated_at:"",inspirational_badge_selection:{badgeColor:u[0],badgeOptOut:[]},is_eligible_for_storefront_badges:!1,badge_details:[],profile_badges:[]},p="https://help.pinterest.com/article/merchant-details",h="https://help.pinterest.com/business/article/add-merchant-details-to-your-profile";function _({verifiedMerchant:e}){var t,i;let n=null==e?void 0:e.isVerifiedMerchant,l=null==e?void 0:null===(t=e.inspirational_signal)||void 0===t?void 0:t.is_inspirational,a=null==e?void 0:null===(i=e.inspirational_signal)||void 0===i?void 0:i.is_eligible_for_storefront_badges;return!!(n&&l&&a)}function m(e){return e.badge_details?e.badge_details.map(e=>e.id):[]}function g(e){return(null==e?void 0:e.profile_badges)||[]}function y(e,t,i){return t&&i?t.map(e=>i.find(t=>t.id===e.trim())).filter(Boolean):[]}function v(e){let t=e||u[0];return{backgroundColor:t,color:function(e){let t=(0,n.oo)(e);if(!t)return"white";let[i,l,a]=t,r=(0,n.DW)(i,l,a);return r<=n.I?"white":"black"}(t)}}},834911:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(341732);function l({carouselData:e,images:t,product:i,shouldUnifyImageSizes:l}){var a;return null!=i&&null!==(a=i.additional_images)&&void 0!==a&&a.length?(0,n.Z)(t,i.additional_images,null==e?void 0:e.index,l,i.id):e||void 0}},737022:(e,t,i)=>{"use strict";function n(e,t=!1){var i;return e&&null!==(i=[...t?[e["736x"],e["564x"]]:[e["564x"],e["736x"]],e["474x"],e["236x"]].find(e=>null==e?void 0:e.url))&&void 0!==i?i:null}i.d(t,{Z:()=>n})},341732:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});let n=["236x","474x","564x","736x"];function l(e,t,i,l,a){let r=[...e?[{images:e}]:[],...(null!=t?t:[]).map(({canonical_images:e,image_signature:t})=>({images:e||void 0,image_signature:t||void 0}))];return{carousel_slots:l?function(e){function t(e,{imageKey:t,height:i,width:n}){return e.images&&e.images[t]&&(e={...e,images:{...e.images,[t]:{...e.images[t],height:i,width:n}}}),e}let i=n.map(function(t){let i=Math.min(...e.map(e=>e.images&&e.images[t]&&e.images[t].height||1/0)),n=Math.min(...e.map(e=>e.images&&e.images[t]&&e.images[t].width||1/0));return{imageKey:t,height:i,width:n}});return e.map(e=>i.reduce(t,e))}(r):r,index:i||0,id:a}}},827896:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(616550),l=i(768559),a=i(350118);function r(){let e=(0,a.S6)(),t=(0,n.useLocation)();return(i,n)=>{let a;let r=e(i);if(null!=n&&n.shouldTrackForPrevLocation){let e=(null==r?void 0:r.tracking_params_map)||{},t=Object.keys(e),i=t.find(e=>"PinResource"!==e);r&&(a=i?e[i]:e.PinResource)}else if(r){var o,s;a=(0,l.Z)({boardUrl:null===(o=r.board)||void 0===o?void 0:o.url,location:t,pinId:r.id,pinnerUserName:null===(s=r.pinner)||void 0===s?void 0:s.username,storyPinDataId:r.story_pin_data_id,trackingParams:r.tracking_params,trackingParamsMap:r.tracking_params_map})}return a}}},41861:(e,t,i)=>{"use strict";function n(e){return function e(t,i){let n;if(null==t||"object"!=typeof t&&"function"!=typeof t)return t;let l=i.find(e=>e.value===t);if(l)return l.result;let a=Object.prototype.toString.call(t);switch(a){case"[object Array]":n=Array(t.length);break;case"[object Set]":n=new Set;break;case"[object Object]":case"[object Arguments]":n={};break;case"[object Map]":n=new Map;break;default:return t}let r=[...i,{value:t,result:n}];switch(a){case"[object Array]":t.forEach((t,i)=>{n[i]=e(t,r)});break;case"[object Set]":t.forEach(t=>{n.add(e(t,r))});break;case"[object Object]":case"[object Arguments]":Object.entries(t).forEach(([t,i])=>{n[t]=e(i,r)});break;case"[object Map]":t.forEach((t,i)=>{n.set(i,e(t,r))})}return n}(e,[])}i.d(t,{Z:()=>n})},409667:(e,t,i)=>{"use strict";function n({isHiddenPin:e,isUnsafePin:t}){return!e&&!t}i.d(t,{Z:()=>n})},642345:(e,t,i)=>{"use strict";i.d(t,{DW:()=>a,I:()=>l,oo:()=>n,zI:()=>r});let n=e=>{let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t&&[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]},l=.18,a=(e,t,i)=>.2126*(e/255)**2.2+.7151*(t/255)**2.2+.0721*(i/255)**2.2,r=e=>{let t=e.replace("#",""),i=parseInt(t.substr(0,2),16),n=parseInt(t.substr(2,2),16),l=parseInt(t.substr(4,2),16);return(299*i+587*n+114*l)/1e3<155}},997138:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(356997),a=i(898781),r=i(785893);let o=({isQuestion:e,name:t,size:i,src:o})=>{let s=(0,a.ZP)();return(0,r.jsxs)(n.xu,{position:"relative","data-test-id":"comment-avatar-container",children:[(0,r.jsx)(l.qE,{size:i,src:o,name:t}),e&&(0,r.jsxs)(n.xu,{position:"absolute",right:!0,bottom:!0,marginEnd:-1,marginBottom:-1,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",children:[(0,r.jsx)(n.xu,{position:"absolute",children:(0,r.jsx)(n.JO,{icon:"speech",color:"dark",accessibilityLabel:s._('Q and A comment', 'comment.userAvatar.creator.q&aIndicator', 'question mark icon indicator background that comment is Q&A')})}),(0,r.jsx)(n.xu,{position:"absolute",children:(0,r.jsx)(n.JO,{icon:"question-mark",color:"light",size:8,accessibilityLabel:s._('Q and A comment', 'comment.userAvatar.creator.q&aIndicator', 'question mark icon indicator background that comment is Q&A')})})]})]})}},44715:(e,t,i)=>{"use strict";i.d(t,{Z:()=>el});var n=i(883119),l=i(667294),a=i(702664),r=i(473727),o=i(964569),s=i(129274),d=i(923764),u=i(997138),c=i(898781),p=i(785893);let h=({color:e,isMarkedHelpful:t})=>{let i=(0,c.ZP)();return(0,p.jsx)(n.JO,{color:t?"brandPrimary":e,accessibilityLabel:i._('Helpful', 'comment.button.helpful', 'mark or unmark comment as helpful'),icon:"thumbs-up",size:12,inline:!0})};var _=i(28754),m=i(541776),g=i(407043),y=i(499128),v=i(773285),f=i(343341),x=i(19121),b=i(717615),P=i(845772),w=i(231947),S=i(139405),k=i(600147),j=i(550393),A=i(492583),C=i(116674);let D=({aggregatedPinDataId:e,anchor:t,closeupAttributionId:i,comment:r,dismiss:o,isOpen:s,isReply:d,onEdit:u,onShowBlockUserModal:h,parentId:D,pinnerId:E,pinId:I})=>{let T=(0,c.ZP)(),F=(0,a.useDispatch)(),{logContextEvent:z}=(0,g.v)(),{showToast:R}=(0,f.F9)(),{checkExperiment:L}=(0,v.F)(),{anyEnabled:M}=L("web_m10n_business_access_orbac_ga"),{toggleAggregatedCommentHighlight:Z}=(0,S.nf)(),B=(0,_.Z)(),[O,N]=(0,l.useState)(!1);(0,l.useEffect)(()=>{N(s)},[s,N]);let K=(0,x.Z)(),U=(0,b.Z)(),H=(0,P.Z)(),{reportComment:V}=(0,C.f)(),G=null!=i?i:"",W=r.user.id,$=K.isAuth&&G===K.id,q="userdiditdata"===r.type,Y=(0,w.q6)(K,null!=E?E:"",M?U:{}),X=(0,w.D3)(K,W,M?U:{}),Q=(0,w.D3)(K,G,M?U:{}),J=K.isAuth&&(r.tagged_users||[]).filter(({id:e})=>e===K.id).length>0,ee=async e=>{try{await Z({aggregatedCommentId:r.id,pinId:I,isHighlighted:e}),z({event_type:101,component:13712,element:e?12475:12474,view_type:220,aux_data:{creator_id:W}}),R(({hideToast:t})=>(0,p.jsx)(y.ZP,{primaryAction:{accessibilityLabel:T._('Undo comment highlight or comment highlight removal', 'unifiedComment.unifiedCommentContainer.commentHighlightToast.a11yUndoButton', 'Undo comment highlight or comment highlight removal'),label:T._('Undo', 'unifiedComment.unifiedCommentContainer.commentHighlightToast.undoButton', 'Undo comment highlight or comment highlight removal'),size:"lg",onClick:()=>{Z({aggregatedCommentId:r.id,pinId:I,isHighlighted:!e})}},onHide:t,text:e?T._('Highlight removed', 'unifiedComment.unifiedCommentContainer.popover.commentHighlightRemovalToast', 'Toast that tells user that they have successfully removed a comment highlight.'):T._('Comment highlighted', 'unifiedComment.unifiedCommentContainer.popover.commentHighlightToast', 'Toast that tells user that they have successfully highlighted a comment.')}))}catch(e){e.message&&R(({hideToast:t})=>(0,p.jsx)(y.ZP,{onHide:t,text:e.message,type:"error"}))}},et=e=>()=>void ee(e),ei=e=>()=>{e(),o(!0)};if(!s)return null;let en={highlight:T._('Highlight', 'Highlight a community post or comment', 'Highlight a community post or comment'),removeHighlight:T._('Remove highlight', 'Remove highlight for a community post or comment', 'Remove highlight for a community post or comment'),edit:T._('Edit', 'Edit a community post or comment', 'Edit a community post or comment'),delete:T._('Delete', 'Delete a community post or comment', 'Delete a community post or comment'),reportContent:T._('Report this content', 'Report a community post or comment', 'Report a community post or comment'),removeMention:T._('Remove @mention', 'closeup.activityItem.removeMention', 'Button that allows user to remove their @mention in a comment on a pin'),reportForNetzDG:T._('Report comment for NetzDG', 'commentOverflowMenu.option.reportForNetzDG', 'Report comment - NetzDG'),blockUser:T._('Block user', 'closeup.activityItem.blockUser', 'Block comment author')},el=new n.Ry(1);return O&&(0,p.jsx)(n.xu,{onFocus:e=>e.stopPropagation(),children:(0,p.jsx)(n.Lt,{id:"comment-overflow-popover",anchor:t,idealDirection:"down",onDismiss:()=>o(!1),isWithinFixedContainer:!1,zIndex:el,disableMobileUI:!0,children:K.isAuth?(0,p.jsxs)(l.Fragment,{children:[!d&&$&&!r.highlighted_by_pin_owner&&!q&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(et(!1)),option:{label:en.highlight,value:en.highlight},dataTestId:"dropdown-item-highlight"}),!d&&$&&r.highlighted_by_pin_owner&&!q&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(et(!0)),option:{label:en.removeHighlight,value:en.removeHighlight},dataTestId:"dropdown-item-remove-highlight"}),X&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(u),option:{label:en.edit,value:en.edit},dataTestId:"dropdown-item-edit"}),(X||Q)&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(()=>{"aggregatedcomment"===r.type?B({aggregatedCommentId:r.id,aggregatedPinId:null!=e?e:"",feedType:d?"aggregatedComments":A.Z.UNIFIED_COMMENTS,orbacSubjectId:H,parentId:D,type:d?m.Rv.REPLY_TO_AGGREGATED:m.Rv.TOP,updateParentCommentCount:!0,pinId:I}):F((0,k.lg)({aggregatedPinDataId:null!=e?e:"",feedType:A.Z.UNIFIED_COMMENTS,id:r.id,isOwnedByMe:!0,pinId:null!=I?I:"",username:r.user.username,updateParentDidItCount:!0}))}),option:{label:en.delete,value:en.delete},dataTestId:"dropdown-item-delete"}),!X&&!Y&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(()=>{V(r.id,D,r.type)}),option:{label:en.reportContent,value:en.reportContent},dataTestId:"dropdown-item-report"}),J&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(()=>{F((0,j.Q)(r.id)),R(({hideToast:e})=>(0,p.jsx)(y.ZP,{onHide:e,text:T._('@mention removed!', 'unifiedComment.unifiedCommentContainer.mentionRemovalToast', 'Toast that tells user that they have successfully removed the @mention of them in the comment')}))}),option:{label:en.removeMention,value:en.removeMention},dataTestId:"dropdown-item-remove-mention"}),!X&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(()=>{N(!1),h(),z({component:14349,event_type:9406})}),option:{label:en.blockUser,value:en.blockUser},dataTestId:"dropdown-item-block-user"})]}):(0,p.jsx)(n.Lt.Link,{href:"https://policy.pinterest.com/de/netzdg/",option:{label:en.reportForNetzDG,value:en.reportForNetzDG},dataTestId:"dropdown-item-report-for-netzdg"})})})};var E=i(600636),I=i(133758);let T={containerStyle:{boxShadow:"0 0px 8px rgba(0, 0, 0, 0.1)"},helpfulLabelStyle:{boxShadow:"0 0px 8px rgba(0, 0, 0, 0.1)",right:"50%",transform:"translateX(50%)"},helpfulStyle:{backgroundImage:`url(${E})`},lovedLabelStyle:{boxShadow:"0 0px 8px rgba(0, 0, 0, 0.1)",left:"50%",transform:"translateX(-50%)"},lovedStyle:{backgroundImage:`url(${I})`}},F=({setHelpful:e,setLoved:t})=>{let i=(0,c.ZP)(),[a,r]=(0,l.useState)(!1),[o,s]=(0,l.useState)(!1),d=e=>()=>{r(e)},u=e=>()=>{s(e)};return(0,p.jsxs)(n.xu,{alignItems:"center",color:"default",dangerouslySetInlineStyle:{__style:T.containerStyle},"data-test-id":"comment-reaction-tray-background",display:"flex",height:25,justifyContent:"center",padding:1,position:"relative",rounding:"pill",width:43,children:[(0,p.jsx)(n.iP,{fullHeight:!0,onMouseDown:t,onMouseEnter:u(!0),onMouseLeave:u(!1),children:(0,p.jsx)(n.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:T.lovedStyle},"data-test-id":"comment-reaction-tray-loved-emoji",height:18,marginBottom:o?3:1,position:"absolute",width:18,children:o&&(0,p.jsx)(n.xu,{top:!0,color:"selected",dangerouslySetInlineStyle:{__style:T.lovedLabelStyle},marginTop:-7,paddingX:1,paddingY:1,position:"absolute",rounding:"pill",children:(0,p.jsx)(n.xv,{color:"inverse",overflow:"noWrap",size:"100",weight:"bold",children:i._('Love', 'comment.button.loved', 'loved reaction')})})})}),(0,p.jsx)(n.iP,{fullHeight:!0,onMouseDown:e,onMouseEnter:d(!0),onMouseLeave:d(!1),children:(0,p.jsx)(n.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:T.helpfulStyle},"data-test-id":"comment-reaction-tray-helpful-emoji",height:18,marginBottom:a?3:1,position:"absolute",width:18,children:a&&(0,p.jsx)(n.xu,{top:!0,color:"selected",dangerouslySetInlineStyle:{__style:T.helpfulLabelStyle},marginTop:-7,paddingX:1,paddingY:1,position:"absolute",rounding:"pill",children:(0,p.jsx)(n.xv,{color:"inverse",overflow:"noWrap",size:"100",weight:"bold",children:i._('Helpful', 'comment.button.helpful', 'helpful reaction')})})})})]})};var z=i(311716),R=i(559113),L=i(356997);let M={helpfulStyle:{backgroundImage:`url(${z})`},lovedStyle:{backgroundImage:`url(${R})`}},Z=({response:e})=>{let t=14===e.reaction_type,i=1===e.reaction_type,l=e.user.is_private_profile?e.user.first_name:e.user.full_name;return(0,p.jsxs)(n.kC,{alignItems:"center",children:[(0,p.jsx)(n.Tg,{href:`/${e.user.username}/`,children:(0,p.jsxs)(n.kC,{alignItems:"center",children:[(0,p.jsx)(n.xu,{maxWidth:40,children:(0,p.jsx)(L.qE,{outline:!0,accessibilityLabel:"",name:l,size:"sm",src:e.user.image_medium_url})}),(0,p.jsx)(n.xu,{marginStart:2,maxWidth:80,children:(0,p.jsx)(n.xv,{color:"inverse",size:"100",weight:"bold",children:l})})]})}),(0,p.jsxs)(n.xu,{alignContent:"end",display:"flex",padding:2,children:[i&&(0,p.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:M.lovedStyle},"data-test-id":"comment-reaction-tray-loved-emoji",height:16,width:16}),t&&(0,p.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:M.helpfulStyle},"data-test-id":"comment-reaction-tray-helpful-emoji",height:16,width:16})]})]})};var B=i(784590);let O=["userreaction.id","userreaction.reaction_type","userreaction.user()","user.first_name","user.full_name","user.id","user.image_medium_url","user.is_private_profile","user.username"],N=({commentId:e,isMarkedHelpfulByMe:t,isLovedByMe:i,isTry:a})=>{var r,o;let s=(0,x.Z)(),d=(0,B.Z)({name:"ApiResource",options:{url:a?`/v3/did_it/${e}/reacted_by/`:`/v3/aggregated_comments/${e}/reacted_by/`,field_sets:O}}),u=null===(r=d.data)||void 0===r?void 0:r.filter(e=>e.user.id!==s.id);if((i||t)&&u){let t={id:e,reaction_type:i?1:14,user:{first_name:s.isAuth?s.firstName:"",full_name:s.isAuth?s.fullName:"",id:s.isAuth?s.id:"",image_medium_url:s.isAuth?s.imageMediumUrl:"",is_private_profile:!!s.isAuth&&!!s.isPrivateProfile,username:s.isAuth?s.username:""}};u=[t,...u]}let c=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let{current:e}=c,t=()=>{d.isFetching||(d.isAtEnd?null==e||e.removeEventListener("scroll",t):d.fetchMore())};return null==e||e.addEventListener("scroll",t),()=>{null==e||e.removeEventListener("scroll",t)}},[d]),(0,p.jsx)(n.xu,{color:"selected",maxHeight:140,overflow:"scroll",ref:c,rounding:2,width:180,children:null===(o=u)||void 0===o?void 0:o.map(e=>(0,p.jsx)(n.xu,{"data-test-id":"reaction-list-single-user",margin:3,children:(0,p.jsx)(Z,{response:e})},e.id))})};var K=i(814197);let U=({commentId:e,dismissReactionList:t,helpfulCount:i,isMarkedHelpfulByMe:a,isLovedByMe:r,isReactionListOpen:o,isTry:s,lovedCount:d,onReactionCountHover:u,onToggleHelpful:h,onToggleLove:_})=>{let m=(0,c.ZP)(),g=(0,l.useRef)(),[y,v]=(0,l.useState)(!1),f=!1,x=(d||0)+(i||0);a&&r&&(x-=1);let b=e=>()=>{v(e)},P=()=>{f=!0,u()},w=()=>{f=!1,setTimeout(()=>{f||t()},1e3)},S=(0,p.jsx)(n.xu,{"data-test-id":"comment-reaction-container-entry-point",children:y?(0,p.jsx)(n.iP,{onMouseLeave:b(!1),onMouseDown:b(!1),children:(0,p.jsx)(F,{setHelpful:h(!0),setLoved:_(!0)})}):(0,p.jsx)(n.iP,{onMouseEnter:b(!0),children:(0,p.jsx)(n.JO,{accessibilityLabel:m._('React', 'comment.actionbar.react', 'accessibility label entry point to react to a comment'),color:"subtle",icon:"heart-outline",size:16})})});return(0,p.jsxs)(n.kC,{alignItems:"center",gap:{row:1,column:0},children:[a||r?(0,p.jsx)(n.iP,{onMouseDown:()=>{h(!1)(),_(!1)()},children:(0,p.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${r?R:z})`}},"data-test-id":r?"comment-reaction-container-loved-emoji":"comment-reaction-container-helpful-emoji",height:16,width:16})}):S,x>0&&(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)(n.iP,{onMouseEnter:P,onMouseLeave:w,children:(0,p.jsx)(n.xu,{"data-test-id":"comment-reaction-container-reaction-count",ref:g,children:(0,p.jsx)(n.xv,{color:"subtle",inline:!0,size:"200",weight:"bold",children:x})})}),o&&(0,p.jsx)(n.mh,{zIndex:K.lI,children:(0,p.jsx)(n.J2,{anchor:g.current,idealDirection:"down",onDismiss:t,positionRelativeToAnchor:!1,children:(0,p.jsx)(n.iP,{onMouseEnter:P,onMouseLeave:w,children:(0,p.jsx)(N,{commentId:e,isMarkedHelpfulByMe:a,isLovedByMe:r,isTry:s})})})})]})]})};var H=i(513578),V=i(349700);function G(e){let{featuredCommentId:t,parentId:i,parentType:r,isDesktop:o,isLoading:s,isReadOnly:d,openOverflowMenu:u,replyingToCommentId:h,toggleHelpful:_,toggleLike:m,toggleReplyComposer:g,isORBACProfileManager:y,isVideo:v,storyPinDataId:f,pinId:x,closeupAttributionId:b,aggregatedPinDataId:P,closeupAttributionUsername:w,pinnerId:k,reactionListCommentId:j,showReactionListForComment:C,viewParameter:D}=e,E=(0,c.ZP)(),I=(0,S.lV)(),T=(0,a.useSelector)(({feeds:e})=>{let t=e[`${A.Z.AGGREGATED_COMMENT_REPLIES}:${i}`]||[],n=e[`${A.Z.AGGREGATED_COMMENTS}:${i}`]||[],l=t.concat(n);return l.reduceRight((e,{id:t})=>{let i=I[t];return i?[...e,i]:e},[])}),[F,z]=(0,l.useState)(1),R=F===T.length;return(0,p.jsxs)(l.Fragment,{children:[T.length>1&&(0,p.jsx)(n.iP,{onTap:()=>{z(R?0:T.length)},children:(0,p.jsxs)(n.xu,{marginBottom:4,children:[(0,p.jsx)(n.xu,{display:"inlineBlock",marginEnd:2,children:(0,p.jsx)(n.xv,{color:"subtle",size:"200",weight:"bold",children:"⎯⎯"})}),(0,p.jsx)(n.xv,{inline:!0,color:"subtle",size:"100",weight:"bold",children:R?E._('Hide replies', 'comment.button.hideReplies', 'hide comment replies'):(0,V.nk)(E.ngettext('View {{ commentCount }} reply', 'View {{ commentCount }} replies', T.length, 'comment.button.showReplies', 'show comment replies'),{commentCount:T.length})})]})}),(0,p.jsx)(el,{comments:T.slice(0,F),commentsDisabled:!1,featuredCommentId:t,gapSize:2,isDesktop:o,isLoading:s,isReadOnly:d,openOverflowMenu:u,toggleReplyComposer:g,parentId:i,parentType:r,replyingToCommentId:h,toggleHelpful:_,toggleLike:m,userAvatarSize:"sm",isORBACProfileManager:y,isVideo:v,storyPinDataId:f,pinId:x,closeupAttributionId:b,aggregatedPinDataId:P,closeupAttributionUsername:w,pinnerId:k,showReactionListForComment:C,reactionListCommentId:j,viewParameter:D})]})}var W=i(264322),$=i(298361),q=i(584595),Y=i(780280),X=i(248327),Q=i(664569),J=i(94089),ee=i(737849),et=i(90326);function ei(e){var t,i,_,P;let j;let{aggregatedPinDataId:A,closeupAttributionId:C,closeupAttributionUsername:E,comment:I,featuredCommentId:T,isDesktop:F,isReadOnly:z,isVideo:R,openOverflowMenu:L,toggleReplyComposer:M,parentId:Z,parentType:B=Q.o.pin,pinId:O,storyPinDataId:N,replyingToCommentId:K,showReactionListForComment:ei,toggleHelpful:en,toggleLike:el,userAvatarSize:ea,isORBACProfileManager:er,pinnerId:eo,reactionListCommentId:es,viewParameter:ed}=e,{user:{id:eu,first_name:ec,id:ep,image_medium_url:eh,username:e_},id:em,image_signatures:eg,is_translatable:ey,comment_count:ev,helpful_count:ef,tags:ex=[]}=I,[eb,eP]=(0,l.useState)(!1),ew=eb&&I.translatedText||I.text,eS=!ey||""===I.translatedText,ek=!1,ej=0,eA=!1,eC=!!I.marked_helpful_by_me,eD=[I.user],eE="",eI=new Date;"aggregatedcomment"===I.type?(ek=I.highlighted_by_pin_owner,ej=I.reaction_counts[1],eA=I.reaction_by_me>0,eD.push(...I.tagged_users),eE=`${e_} ${ew}`,eI=new Date(I.created_at)):(ej=I.like_count,eA=I.liked_by_me,j=(I.images[0]||{})["150x150"],eE=`${e_} ${I.details}`,eI=new Date(I.done_at));let eT=(0,c.ZP)(),eF=(0,x.Z)(),{logContextEvent:ez}=(0,g.v)(),{country:eR,isBot:eL}=(0,Y.B)(),{checkExperiment:eM}=(0,v.F)(),{showToast:eZ}=(0,f.F9)(),eB=(0,a.useDispatch)(),eO=(0,l.useRef)(),{anyEnabled:eN}=eM("web_m10n_business_access_orbac_ga"),eK=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","EU"].includes(eR),eU=1===I.comment_tag,eH=(0,b.Z)(),eV=eN?(0,w.lJ)(eF,eH):"",{nativeEngagementsHiddenForUser:eG}=(0,J.G)(),{aggregatedCommentsHiddenForUser:eW,translateAggregatedComment:e$,updateAggregatedComment:eq}=(0,S.nf)(),eY=(0,o.Z)(),eX="userdiditdata"===I.type,eQ=(0,$.Z)(),eJ=ey&&eM("dweb_comment_translations").anyEnabled,e0=eX&&eM("dweb_photo_commenting").anyEnabled,e1=eX&&F&&eM("dweb_photo_comment_replies").anyEnabled,e2=eX&&!F&&eM("mweb_photo_comment_replies").anyEnabled,e8=eX&&eM("mweb_photo_commenting").anyEnabled,e3=!z&&!er&&eX,e6=e3&&F&&eM("dweb_photo_comment_reactions").anyEnabled,e9=e3&&!F&&eM("mweb_photo_comment_reactions").anyEnabled,e7=[{offset:0,length:e_.length,color:"darkGray"},...ex.map(e=>({...e,offset:(e.offset||0)+e_.length+1,color:"shopping"}))],e4={SHOW_TRANSLATION:eT._('Show translation', 'comment.translateButton.showTranslation', 'text for translation button when translation is available'),TRANSLATING:eT._('Translating...', 'comment.translateButton.translating', 'text for translation button while translating'),SHOW_ORIGINAL:eT._('Show original', 'comment.translateButton.showOriginal', 'text for translation button after translating')},e5=(0,l.useRef)(e4.SHOW_TRANSLATION),[te,tt]=(0,l.useState)(!1),[ti,tn]=(0,l.useState)(!1),[tl,ta]=(0,l.useState)(!1),[tr,to]=(0,l.useState)(!1),[ts,td]=(0,l.useState)(!1),[tu,tc]=(0,l.useState)(!1),[tp,th]=(0,l.useState)(m.A9.NONE),t_=e=>()=>{tn(e)};(0,l.useEffect)(()=>{eJ&&ez({event_type:10416,view_type:3,view_parameter:ed,component:"pin"===B?13696:13697})},[ez,B,eJ,ed]),(0,l.useEffect)(()=>{ev>0&&!eL&&eB((0,X.U)("aggregatedcomment"===I.type?"AggregatedCommentReplyFeedResource":"DidItCommentsResource",{options:{isUnifiedComment:!0,objectId:em,redux_normalize_feed:!0}}))},[I.type,em]);let tm=B.toLowerCase()===Q.o.aggregatedComment.toLowerCase()||B.toLowerCase()===Q.n.didIt.toLowerCase(),tg=Object.values(Q.n).includes(B.toLowerCase()),ty=I.user.first_name||"",tv=async({contentMarkdown:e,force:t,tags:i})=>{let n,l;to(!0);let a=I.id;if(tm&&(n=B.toLowerCase()===Q.n.didIt,a=Z,l=I.id),a)try{await eY({force:t,fromUnifiedComment:!0,objectType:eX||n?Q.o.didIt:Q.o.aggregatedComment,objectId:a,orbacSubjectId:eV,tags:i,text:e,replyToCommentId:l})}catch(e){if([q.ky,q.LJ].includes(e.code)&&F)return th(e.code===q.ky?m.A9.WARNING:m.A9.BLOCK),to(!1),!1}return M&&M(void 0),to(!1),!0},tf=async({contentMarkdown:e,force:t,tags:i})=>{ta(!0);try{e0?await eB((0,k.IU)({id:I.id,details:e,pinId:null!=O?O:"",image_signatures:null!=eg?eg:[]})):await eq({commentId:I.id,force:t,orbacSubjectId:eV,tags:i,text:e})}catch(e){if([q.ky,q.LJ].includes(e.code)&&F)return th(e.code===q.ky?m.A9.WARNING:m.A9.BLOCK),ta(!1),!1}return tn(!1),ta(!1),!0},tx=e=>()=>{tt(e),tc(e),e||ez({component:14349,event_type:9408})},tb=()=>{th(m.A9.NONE)},tP=()=>{eb||I.translatedText||e$(I.id),eb||e5.current!==e4.SHOW_TRANSLATION?eb&&e5.current===e4.SHOW_ORIGINAL&&ez({event_type:10418,view_type:3,view_parameter:ed,component:"pin"===B?13696:13697}):ez({event_type:10417,view_type:3,view_parameter:ed,component:"pin"===B?13696:13697}),eP(!eb)};(0,l.useEffect)(()=>{eb&&eS&&(eP(!eb),eZ(({hideToast:e})=>(0,p.jsx)(y.ZP,{onHide:e,text:eT._('Error - couldn\'t translate', 'comment.couldNotTranslate.toast', 'error toast that shows after unsuccessful translation'),type:"error"})))},[eb,eS]),eb?e5.current=I.translatedText?e4.SHOW_ORIGINAL:e4.TRANSLATING:e5.current=e4.SHOW_TRANSLATION;let tw=j&&(0,p.jsx)(n.xu,{marginTop:1,marginBottom:!F&&e8?2:4,children:(0,p.jsx)(n.zd,{width:150,height:150,rounding:2,wash:!0,children:(0,p.jsx)(n.Ee,{alt:null!==(t=j.url)&&void 0!==t?t:"",src:null!==(i=j.url)&&void 0!==i?i:"",color:"#efefef",naturalWidth:null!==(_=j.width)&&void 0!==_?_:1,naturalHeight:null!==(P=j.height)&&void 0!==P?P:1},j.url)})});return(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)(n.$j,{show:tl,accessibilityLabel:"Loading comment"}),!ti&&!tl&&(0,p.jsxs)(n.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,p.jsx)(n.xu,{marginEnd:2,children:(0,p.jsx)(r.rU,{to:`/${e_}/`,children:(0,p.jsx)(u.Z,{isQuestion:eU,name:ec||e_||"",size:ea,src:null!=eh?eh:""})})}),(0,p.jsxs)(n.kC,{flex:"grow",justifyContent:"start",direction:"column",children:[(0,p.jsxs)(n.kC,{justifyContent:"between",children:[(0,p.jsx)(n.kC.Item,{minWidth:0,children:(0,p.jsxs)(n.kC,{direction:"column",dataTestId:"author-and-comment-container",children:[!F&&e8&&tw,(0,p.jsx)(W.Z,{isFirstTaggedUserAuthor:!0,shouldShowFirstNameOnly:!0,taggedUsers:eD,tags:e7,text:eE}),(F||!F&&!e8)&&tw,eJ&&(0,p.jsx)(n.xu,{marginTop:2,marginBottom:2,children:(0,p.jsx)(n.iP,{onTap:()=>tP(),children:(0,p.jsx)(n.xv,{color:"subtle",size:"300",weight:"bold",children:e5.current})})})]})}),T===em&&(0,p.jsx)(n.xu,{alignSelf:"center",color:"primary",height:8,rounding:"pill",minWidth:8})]}),ek&&(0,p.jsx)(n.xu,{marginTop:4,marginBottom:3,children:(0,p.jsx)(n.xv,{size:"100",children:(0,V.nk)(eT._('Highlighted by @{{ closeupAttributionUsername }}', 'comment.highlighted.label', 'label on comment that has been highlighted by the Pin creator'),{closeupAttributionUsername:E})})}),(!z||eK)&&(0,p.jsxs)(n.xu,{alignItems:"center",display:"flex",height:25,justifyContent:"between",position:"relative",children:[(0,p.jsxs)(n.kC,{alignItems:"center",gap:{row:5,column:0},children:[!z&&(0,p.jsx)(n.xu,{"data-test-id":"comments-time-passed",children:(0,p.jsx)(n.xv,{color:"subtle",size:"200",children:eQ(eI,!0)})}),!z&&(!er||eN)&&(!eX||e1||e2)&&(0,p.jsx)(n.xu,{"data-test-id":"comment-reply-button-container",children:(0,p.jsx)(n.iP,{onTap:()=>{M&&M(I,Z,B)},children:(0,p.jsx)(n.xv,{color:"subtle",size:"200",weight:"bold",children:eT._('Reply', 'comment.button.reply', 'entry point to reply to comment')})})}),!z&&!er&&(!eX||e6||e9)&&(F?(0,p.jsx)(U,{commentId:em,dismissReactionList:()=>{ei(void 0)},helpfulCount:ef,isMarkedHelpfulByMe:eC,isLovedByMe:eA,isTry:eX,lovedCount:ej,onReactionCountHover:()=>{ei(em),ez({event_type:9906,component:"pin"===B?13696:13697,view_type:3,view_parameter:ed})},onToggleHelpful:e=>()=>{eC!==e&&en(em,!e,eX)()},onToggleLove:e=>()=>{eA!==e&&el(em,!e,eX)()},isReactionListOpen:es===em}):(0,p.jsxs)(n.xu,{display:"flex",alignItems:"center","data-test-id":"reactions-likeWithCountButton",children:[(0,p.jsx)(n.hU,{accessibilityLabel:eT._('Like', 'comment.button.like', 'like or unlike comment'),icon:"heart",iconColor:eA?"red":"gray",size:"xs",onClick:el(em,eA,eX)}),ej>0&&(0,p.jsx)(n.xu,{"data-test-id":"love-count-container",children:(0,p.jsx)(n.xv,{color:"subtle",size:"100",weight:"bold",children:ej})})]})),!(eF.id===ep&&eU)&&(!er||eN)&&(0,p.jsx)(n.xu,{ref:eO,"data-test-id":"comment-more-options",children:(0,p.jsx)(n.hU,{accessibilityLabel:eT._('More', 'comment.button.more', 'see more options for comment'),icon:"ellipsis",iconColor:"gray",size:"xs",onClick:()=>{F?tt(!te):L&&L(I)}})})]}),!z&&!er&&!F&&(!eX||e9)&&(0,p.jsx)(n.xu,{marginStart:6,children:(0,p.jsx)(n.iP,{fullWidth:!1,onTap:en(em,eC,eX),children:(0,p.jsxs)(n.kC,{height:"100%",alignItems:"center",gap:{row:1,column:0},dataTestId:"helpful-reaction",children:[(0,p.jsx)(h,{color:"subtle",isMarkedHelpful:eC}),(0,p.jsx)(n.xv,{color:"subtle",size:"200",weight:"bold",children:eT._('Helpful', 'comment.button.helpful', 'mark or unmark comment as helpful')}),ef>0&&(0,p.jsx)(n.xu,{"data-test-id":"helpful-count-container",children:(0,p.jsx)(n.xv,{color:"subtle",size:"100",weight:"bold",children:ef})})]})})})]})]})]}),F&&(0,p.jsxs)(l.Fragment,{children:[ti&&(0,p.jsx)(n.xu,{marginTop:3,children:(0,p.jsx)(H.Z,{commentWarningModalState:tp,dismissCommentWarningModal:tb,initialText:"aggregatedcomment"===I.type?I.text:I.details,initialTags:I.tags,isReplyEditor:tg,onAddItem:tf,onCancelItem:t_(!1),objectType:Q.o.aggregatedComment,postedPhoto:j,showCommentComposer:!0,statusType:"textInFlightNested",viewParameter:ed})}),K===em&&(0,p.jsx)(n.xu,{marginTop:3,marginStart:tm?0:12,children:(0,p.jsx)(H.Z,{commentWarningModalState:tp,dismissCommentWarningModal:tb,initialText:tm?`${ty} `:"",initialTags:tm?[{offset:0,object_id:eu,length:ty.length,tag_type:1}]:[],isReplyEditor:tg,onAddItem:tv,onCancelItem:()=>{M&&M()},objectType:Q.o.aggregatedComment,showCommentComposer:!0,statusType:"textInFlightNested",viewParameter:ed})})]}),(ev>0||tr)&&(0,p.jsx)(n.xu,{marginStart:12,marginTop:4,children:(0,p.jsx)(G,{featuredCommentId:T,isDesktop:F,isLoading:tr,isReadOnly:z,parentId:em,parentType:I.type,replyingToCommentId:K,toggleReplyComposer:M,openOverflowMenu:L,toggleHelpful:en,toggleLike:el,isORBACProfileManager:er,pinId:O,closeupAttributionId:C,isVideo:R,storyPinDataId:N,aggregatedPinDataId:A,closeupAttributionUsername:E,pinnerId:eo,showReactionListForComment:ei,reactionListCommentId:es,viewParameter:ed})}),F&&(!z||eK)&&(0,p.jsx)(D,{anchor:eO.current,comment:I,dismiss:e=>{tt(!1),e||ez({component:14349,event_type:10128})},isOpen:te,isReply:tm,onEdit:t_(!0),onShowBlockUserModal:tx(!0),parentId:Z,closeupAttributionId:C,pinnerId:eo,pinId:O,aggregatedPinDataId:A}),ts&&(0,p.jsx)(s.N,{children:(0,p.jsx)(d.Z,{aggregatedPinDataId:A,didItDataId:em,onClose:e=>()=>{td(!e)},pinId:null!=O?O:"",username:e_,users:[I.user]})}),tu&&(0,p.jsx)(ee.Z,{firstName:null!=ec?ec:"",onBlockUser:()=>{eB((0,et.Ge)({id:eu,orbacSubjectId:eV,blockSource:"comment",blockContext:em,logContextEvent:ez})),eW(eu),eG(eu),ez({event_type:101,component:13712,element:87,view_type:220,aux_data:{creator_id:eF.isAuth?eF.id:null}}),ez({component:14349,event_type:9407}),tc(!1),eZ(({hideToast:e})=>(0,p.jsx)(y.ZP,{onHide:e,text:(0,V.nk)(eT._('You\'ve blocked {{ username }}', 'comment.blockAuthor.toast', 'confirmation toast that shows after user blocks comment author'),{username:e_}).join("")}))},onClearModal:tx(!1)})]})}var en=i(366428);function el(e){let t;let{aggregatedPinDataId:i,comments:l,commentsDisabled:a,featuredCommentId:r,gapSize:o=6,isDesktop:s,isLoaded:d=!1,isLoading:u=!1,isReadOnly:h,openOverflowMenu:_,toggleReplyComposer:m,parentId:g,parentType:y,replyingToCommentId:v,toggleHelpful:f,toggleLike:x,userAvatarSize:b,isORBACProfileManager:P,isVideo:w,storyPinDataId:S,pinId:k,closeupAttributionId:j,closeupAttributionUsername:A,pinnerId:C,showReactionListForComment:D,reactionListCommentId:E,viewParameter:I}=e,T=(0,c.ZP)();return(t=S?"story":w?"video":"pin",a)?(0,p.jsx)(n.xu,{alignSelf:"center",width:"100%","data-test-id":"comments-disabled-label",children:(0,p.jsx)(n.xv,{align:s?"start":"center",color:"subtle",children:T._('Comments are turned off for this Pin', 'commentThread.disabledState.message', 'Comments are turned off or disabled for this pin')})}):l.length>0?(0,p.jsxs)(n.kC,{dataTestId:"aggregated-comment-list",direction:"column",gap:{row:0,column:o},maxHeight:"100%",width:"100%",children:[l.map((e,l)=>(0,p.jsx)(en.F,{impressionAuxFields:{commentId:e.id,pinId:k,pinOwnerUserId:j,pinType:t,parentId:g,parentType:y,commentType:"aggregatedComment"},componentType:"pin"===y?13696:13697,impressionType:"Comment",loggingId:e.id,slotIndex:l,viewType:s?3:98,children:({impressionTrackerRef:t})=>(0,p.jsx)(n.xu,{ref:t,"data-test-id":"commentThread-comment",children:(0,p.jsx)(ei,{comment:e,isDesktop:s,featuredCommentId:r,isReadOnly:h,parentId:g,parentType:y,openOverflowMenu:_,replyingToCommentId:v,toggleReplyComposer:m,toggleHelpful:f,toggleLike:x,userAvatarSize:b,isORBACProfileManager:P,aggregatedPinDataId:i,closeupAttributionUsername:A,closeupAttributionId:j,pinId:k,storyPinDataId:S,isVideo:w,pinnerId:C,showReactionListForComment:D,reactionListCommentId:E,viewParameter:I})})},e.id)),(0,p.jsx)(n.$j,{accessibilityLabel:T._('Comments loading', ' - ', ' -- '),show:u})]}):(0,p.jsxs)(n.xu,{alignSelf:"center",width:"100%",children:[(0,p.jsx)(n.$j,{accessibilityLabel:T._('Comments loading', ' - ', ' -- '),show:u}),d&&(0,p.jsx)(n.xv,{align:s?"start":"center",color:"subtle",children:T._('No comments yet! Add one to start the conversation.', 'commentThread.emptyState.message', 'comment thread empty state message')})]})}},513578:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(995228),a=i(785893);let r=(0,n.lazy)(()=>Promise.all([i.e(11177),i.e(21662)]).then(i.bind(i,778072)));function o(e){return(0,a.jsx)(l.Z,{fallback:null,children:(0,a.jsx)(r,{...e})})}},264322:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(667294),l=i(883119),a=i(643010),r=i(898781),o=i(785893);let s=({hasManyComments:e,isFirstTaggedUserAuthor:t,isInCommentModule:i,shouldShowFirstNameOnly:s,tags:d,taggedUsers:u,text:c})=>{let p=(0,r.ZP)(),h=(0,n.useRef)(null),_=(0,a.Yc)()?"#111111":"#FFFFFF",[m,g]=(0,n.useState)(!1),y=p._('...view', 'comment.module.toggle.view', 'label on comment module to open coment thread'),v=p._('...view all', 'comment.module.toggle.viewAll', 'label on comment module to open coment thread');(0,n.useEffect)(()=>{h.current&&g(h.current.scrollHeight>h.current.offsetHeight)},[h,g,c]);let f=(e,t)=>(0,o.jsx)(l.xv,{inline:!0,overflow:"normal",children:(0,o.jsx)("span",{className:"text-container",children:e})},t),x=(e,n,a,r)=>{let d=s||0===a&&t?u[a].first_name||u[a].username[0]:n;return(0,o.jsx)(l.xv,{color:e,inline:!0,weight:"bold",overflow:"normal",children:i?d:(0,o.jsx)(l.rU,{href:`/${u[a].username}`,display:"inlineBlock",underline:"hover",children:d})},r)};return(0,o.jsx)("span",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:(()=>{if(!d.length||!u||d.length!==u.length)return f(c,"1");let t=0,n=[];return d.forEach((e,i)=>{let l=c.substring(t,e.offset);t=e.offset+e.length;let a=c.substring(e.offset,t);n=n.concat(f(l,`${i}a`)).concat(x(e.color,a,i,`${i}b`))}),n=n.concat(f(c.substring(t),"2")),(0,o.jsx)(l.xu,{position:"relative",marginEnd:3,children:(0,o.jsxs)(l.xv,{inline:!0,lineClamp:i?2:void 0,ref:h,children:[n,i&&(0,o.jsx)(l.xu,{display:"inlineBlock",dangerouslySetInlineStyle:{__style:{background:`linear-gradient(270deg, ${_} 50%, ${_}00 100%)`}},position:m?"absolute":void 0,bottom:!!m||void 0,right:!!m||void 0,width:m?140:void 0,children:(0,o.jsxs)(l.xv,{align:"end",weight:"bold",children:["\xa0",e?v:y]})})]})})})()})}},541776:(e,t,i)=>{"use strict";i.d(t,{A9:()=>s,LH:()=>l,Rv:()=>a,TJ:()=>r,iB:()=>n,pW:()=>o});let n=48,l=n+8,a=Object.freeze({TOP:0,REPLY_TO_TRIED:1,REPLY_TO_AGGREGATED:2}),r="comment_featured_ids",o="did_it_featured_ids",s={NONE:"none",WARNING:"warning",BLOCK:"block"}},512465:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h,w:()=>_});var n=i(349700);let l=e=>e._('{{ first }}', 'Generic message that lists 1 item', 'Generic message that lists 1 item (ex: Stevie)'),a=e=>e._('{{ first }} and {{ second }}', 'Generic message that lists 2 items', 'Generic message that lists 2 items (ex: Stevie and Michael)'),r=e=>e._('{{ first }}, {{ second }} and {{ third }}', 'Generic message that lists 3 items', 'Generic message that lists 3 items (ex: Stevie, Michael and Cyndi)'),o=e=>e._('{{ first }}, {{ second }}, {{ third }} and {{ fourth }}', 'Generic message that lists 4 items', 'Generic message that lists 4 items (ex: Stevie, Michael, Cyndi and Bob)'),s=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }} and {{ fifth }}', 'Generic message that lists 5 items', 'Generic message that lists 5 items (ex: Stevie, Michael, Cyndi, Bob and Bruce)'),d=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }} and {{ sixth }}', 'Generic message that lists 6 items', 'Generic message that lists 6 items (ex: Stevie, Michael, Cyndi, Bob, Bruce and Lionel)'),u=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }}, {{ sixth }} and {{ seventh }}', 'Generic message that lists 7 items', 'Generic message that lists 7 items (ex: Stevie, Michael, Cyndi, Bob, Bruce, Lionel and Tina)'),c=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }} and {{ remaining }} others', 'Generic message that lists more than 6 items', 'Generic message that lists more than 6 items (ex: Stevie, Michael, Cyndi, Bob, Bruce and 2 others)'),p=e=>e._('{{ first }}, {{ second }}, {{ third }}, {{ fourth }}, {{ fifth }}, {{ sixth }} and {{ remaining }} others', 'Generic message that lists more than 7 items', 'Generic message that lists more than 7 items (ex: Stevie, Michael, Cyndi, Bob, Bruce, Lionel and 2 others)');function h(e,t){let i={first:e[0],second:e[1],third:e[2],fourth:e[3],fifth:e[4],sixth:e[5],remaining:e.length-5};switch(e.length){case 0:return[];case 1:return(0,n.nk)(l(t),i);case 2:return(0,n.nk)(a(t),i);case 3:return(0,n.nk)(r(t),i);case 4:return(0,n.nk)(o(t),i);case 5:return(0,n.nk)(s(t),i);case 6:return(0,n.nk)(d(t),i);default:return(0,n.nk)(c(t),i)}}function _(e,t){let i={first:e[0],second:e[1],third:e[2],fourth:e[3],fifth:e[4],sixth:e[5],seventh:e[6],remaining:e.length-6};switch(e.length){case 0:return[];case 1:return(0,n.nk)(l(t),i);case 2:return(0,n.nk)(a(t),i);case 3:return(0,n.nk)(r(t),i);case 4:return(0,n.nk)(o(t),i);case 5:return(0,n.nk)(s(t),i);case 6:return(0,n.nk)(d(t),i);case 7:return(0,n.nk)(u(t),i);default:return(0,n.nk)(p(t),i)}}},81636:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s,Z:()=>d});var n=i(667294),l=i(112690),a=i(385740),r=i(767546),o=i(780280);function s(e,t){let{setViewContextData:i}=(0,a.sV)(),{requestIdentifier:s}=(0,o.B)(),d=(0,l.Z)(),{viewData:u}=(0,a.SU)();(0,n.useEffect)(()=>{if(e){var t;i({viewType:null!==(t=e.view_type)&&void 0!==t?t:1,viewParameter:e.view_parameter,viewData:e.view_data?(0,r.Z)(u,e.view_data):u,component:e.component,element:e.element,objectIdStr:e.object_id_str,auxData:e.aux_data,clientTrackingParams:e.clientTrackingParams}),d({...e,event_type:13,request_identifier:s})}},[t])}function d(e){let{children:t,log:i}=e;return s(i),t||null}},385740:(e,t,i)=>{"use strict";let n;i.d(t,{BE:()=>d,Ih:()=>u,SU:()=>c,sV:()=>s});var l=i(667294),a=i(425288),r=i(785893);let{Provider:o,useHook:s}=(0,a.Z)("View");function d(){return n}function u({children:e,initialState:t={}}){let[i,a]=(0,l.useState)(t),s=(0,l.useCallback)(()=>{n={},a({})},[]),d=(0,l.useCallback)(e=>{n={...n,...e},a(t=>({...t,...e}))},[]),u=(0,l.useMemo)(()=>({viewContextData:i,clearViewContextData:s,setViewContextData:d}),[i,d,s]);return(0,r.jsx)(l.Fragment,{children:(0,r.jsx)(o,{value:u,children:e})})}function c(){let{viewContextData:e}=s();return e}},425288:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(667294);function l(e,t){let i="consumer"===t?`${e}Consumer`:`use${e}`;return`
105
+ ${i} must be used within a ${e}Provider.
106
+ Please see https://pdocs.pinadmin.com/docs/webapp/docs/testing-jest#createhydra-errors for more information.
107
+ `}function a(e,t){let i=(0,n.createContext)(t),{messageDisplayName:a}=function(e,t){let i=e.slice(1);if(i=i.endsWith("Context")?i:`${i}Context`,t){let n=`with${e[0].toUpperCase()}${i}(${t})`;return{hocDisplayName:n}}let n=`${e[0].toLowerCase()}${i}`,l=`${e[0].toUpperCase()}${i}`;return{propsDisplayName:n,messageDisplayName:l}}(e);i.displayName=a;let{Provider:r}=i,o=({children:e})=>{let t=(0,n.useContext)(i);if(void 0===t)throw Error(l(a,"consumer"));return e(t)},s=()=>(0,n.useContext)(i);return r.displayName=`${a}Provider`,o.displayName=`${a}Consumer`,{Provider:r,Consumer:o,MaybeConsumer:({children:e})=>{let t=(0,n.useContext)(i);return e(t)},useMaybeHook:s,useHook:function(){let e=s();if(void 0===e)throw Error(l(a,"hook"));return e}}}},782534:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r,k:()=>n.k});var n=i(451820),l=i(780280),a=i(785893);let r=({dateFormatType:e,useUTC:t=!0,value:i})=>(0,a.jsx)(l.LC,{children:l=>(0,n.Z)(l.locale,i,e,t)})},451820:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a,k:()=>n});let n={LONG:"long",YEAR:"year",WEEKDAY_DATE:"weekday_date",WEEKDAY_DATE_TIME_TIMEZONE:"weekday_date_time_timezone",SHORT_WEEKDAY_DATE:"short_weekday_date",LONG_MONTH_YEAR:"long_month_year",NUMERIC:"numeric",MONTH_DAY:"month_day",SHORT_MONTH:"short_month",SHORT_MONTH_DAY:"short_month_day",DAY:"day",YEAR_SHORT_MONTH_DAY:"year_short_month_day",YEAR_SHORT_MONTH_DAY_HOUR:"year_short_month_day_hour",TIME:"time",TIME_TIMEZONE:"time_timezone",HOUR:"hour",TWO_DIGIT:"two_digit",TWO_DIGIT_YEAR:"two_digit_year"},l=function(e){switch(e){case n.YEAR:return{year:"numeric"};case n.LONG:return{year:"numeric",month:"long",day:"numeric"};case n.NUMERIC:return{year:"numeric",month:"numeric",day:"numeric"};case n.TWO_DIGIT:return{year:"numeric",month:"2-digit",day:"2-digit"};case n.TWO_DIGIT_YEAR:return{year:"2-digit",month:"2-digit",day:"2-digit"};case n.WEEKDAY_DATE:return{weekday:"long",month:"long",day:"numeric",year:"numeric"};case n.SHORT_WEEKDAY_DATE:return{weekday:"short",month:"numeric",day:"numeric"};case n.WEEKDAY_DATE_TIME_TIMEZONE:return{weekday:"short",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"};case n.MONTH_DAY:return{month:"long",day:"numeric"};case n.SHORT_MONTH:return{month:"short"};case n.SHORT_MONTH_DAY:return{month:"short",day:"numeric"};case n.DAY:return{day:"numeric"};case n.LONG_MONTH_YEAR:return{month:"long",year:"numeric"};case n.YEAR_SHORT_MONTH_DAY:return{year:"numeric",month:"short",day:"numeric"};case n.YEAR_SHORT_MONTH_DAY_HOUR:return{month:"short",year:"numeric",day:"numeric",hour:"numeric"};case n.TIME:return{hour:"numeric",minute:"2-digit"};case n.TIME_TIMEZONE:return{hour:"numeric",minute:"2-digit",timeZoneName:"short"};case n.HOUR:return{hour:"numeric"};default:throw Error('invalid dateFormatType "'+e+'"')}};function a(e,t,i,n=!0){let a=l(i);n&&(a.timeZone="UTC");let r=new Intl.DateTimeFormat(e,a);return r.format(t)}},81226:(e,t,i)=>{"use strict";function n(e){let t=Math.round(e/1e3),i=Math.floor(t/60),n=t%60;return i+":"+(n<10?"0":"")+n}i.d(t,{Z:()=>n})},594736:(e,t,i)=>{"use strict";function n(e,t,i){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!a(e[n],t[n],i+1))return!1;return!0}function l(e,t,i){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(!(n in t)||!a(e[n],t[n],i+1))return!1;return!0}function a(e,t,i){if(i>=1e3)return!1;if(e===t)return!0;if(null==e||null==t||"object"!=typeof e&&"object"!=typeof t)return e!=e&&t!=t;let a=Object.prototype.toString.call(e),r=Object.prototype.toString.call(t);if(a!==r)return!1;switch(a){case"[object Array]":return n(e,t,i);case"[object Set]":return n(Array.from(e).sort(),Array.from(t).sort(),i);case"[object Object]":case"[object Arguments]":return l(e,t,i);case"[object Map]":return l(Object.fromEntries(e),Object.fromEntries(t),i);case"[object RegExp]":return e+""==t+"";case"[object Error]":return e.name===t.name&&e.message===t.message;default:return!1}}function r(e,t){return a(e,t,0)}i.d(t,{ZP:()=>r})},722767:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(973935);function a(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class r extends n.Component{constructor(...e){super(...e),a(this,"observer",null),a(this,"handleVisibilityChanged",(e,t)=>{this.props.onVisibilityChange(e,t)})}componentDidMount(){let e=l.findDOMNode(this);e instanceof HTMLElement&&(this.node=e),this.node&&(this.observer=new window.IntersectionObserver(this.handleVisibilityChanged,this.props.options),this.observer.observe(this.node))}componentWillUnmount(){this.observer&&(this.observer.unobserve(this.node),delete this.observer)}render(){return n.Children.only(this.props.children)}}let o=r},11363:(e,t,i)=>{"use strict";i.d(t,{Bx:()=>l,N4:()=>r,is:()=>o,lt:()=>n,oM:()=>a});let n=e=>e._('You\'re almost there! Log in to access all of Pinterest', 'loginModal.limitedLogin.subheader', 'Subheader text on personalized login modal/flyout to remind users to log in'),l=e=>e._('Log in to save this Pin', 'limitedLogin.modalHeader.repin', 'Title on mobile web limited login modal to prompt users to login after they clicked save button.'),a=e=>e._('Log in to edit this Pin', 'limitedLogin.modalHeader.editPin', 'Title on mobile web limited login modal to prompt users to login after they clicked edit button.'),r=({i18n:e,toFollow:t})=>t?e._('Log in to follow', 'limitedLogin.modalHeader.follow', 'Title on mobile web limited login modal to prompt users to login to follow a user or board.'):e._('Log in to unfollow', 'limitedLogin.modalHeader.unfollow', 'Title on mobile web limited login modal to prompt users to login to unfollow a user or board.'),o=e=>e._('Log in to create a Pin or board', 'limitedLogin.modalHeader.create', 'Title on mobile web limited login modal to prompt users to login to create a Pin or board.')},780679:(e,t,i)=>{"use strict";i.d(t,{g:()=>r,t:()=>a});var n=i(667294);let l=(0,n.createContext)(null),a=l.Provider,r=()=>(0,n.useContext)(l)},946984:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(11363),l=i(898781),a=i(987318);let r=()=>{let{loginForMore:e,viewer:t,limitedLoginModalSubheader:i}=(0,a.H)(),r=(0,l.ZP)();return"AUTH"===t.type?null:t=>{null==e||e.setVisible(!0),null==i||i.setText((null==t?void 0:t.loginModalHeader)||(0,n.lt)(r))}}},375571:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(395164),a=i(67347);function r(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class o extends n.Component{constructor(...e){super(...e),r(this,"state",{error:null,info:null}),r(this,"resetError",()=>{this.setState({error:null,info:null})})}componentDidCatch(e,t){try{var i;let{name:t}=this.props,n=this.props.type||"secondary";(0,l.T)({extraData:null!==(i=e.extraData)&&void 0!==i?i:{},errorBoundary:t,errorBoundaryType:n,message:e.message,name:e.name,stack:e.stack}),(0,a.nP)("react.error_boundary",{sampleRate:.1,tags:{component:void 0,name:this.props.name}})}catch(e){(0,a.nP)("react.error_boundary.error",{sampleRate:1,tags:{name:this.props.name}})}this.setState({error:e,info:t})}render(){let{renderErrorState:e}=this.props,{error:t,info:i}=this.state;return t&&i?e?e({error:t,info:i,resetError:this.resetError}):null:this.props.children}}},319915:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(375571);let l=n.Z},121093:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(667294),l=i(702664),a=i(112690),r=i(332611),o=i(242923),s=i(785893);function d(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class u extends n.Component{constructor(...e){super(...e),d(this,"state",{hasCompleted:[],hasDismissed:[]}),d(this,"view",()=>{let{experience:e,isBackendExperience:t,targeting:i,viewExperience:n,viewExperienceObject:l}=this.props;e&&"viewed"!==e.status&&(t?(e.status="viewed",l(e)):i?n(e.placement_id,e.experience_id,i):n(e.placement_id,e.experience_id))}),d(this,"complete",e=>{let{completeExperience:t,completeExperienceObject:i,experience:n,isBackendExperience:l,preventRemoval:a,targeting:r}=this.props,o=e||1;if(n&&!this.state.hasCompleted.includes(n.experience_id)){let{placement_id:e,experience_id:s}=n||{},d=a||2===o;(1===o||d)&&e&&s&&(l?i(n,d):r?t(e,s,d,r):t(e,s,d),this.setState(e=>({hasCompleted:[...e.hasCompleted,s]})))}}),d(this,"dismiss",()=>{let{dismissExperience:e,dismissExperienceObject:t,experience:i,isBackendExperience:n,preventRemoval:l,targeting:a}=this.props,{placement_id:r,experience_id:o}=i||{};i&&!this.state.hasDismissed.includes(o)&&(n?t(i):a?e(r,o,!!l,a):e(r,o,!!l),this.setState(e=>({hasDismissed:[...e.hasDismissed,o]})))}),d(this,"isEligibleExperience",()=>{let{experience:e}=this.props;if(!e)return!1;let{eligibleIds:t,eligibleTypes:i,predicate:n,transitionType:l}=this.props,{experience_id:a,type:r}=e;return t&&t.length?t.includes(a):i&&i.length?i.includes(r):n?n(e):!l||l===r})}componentDidMount(){if(this.props.disableAutoView)return;let{experience:e}=this.props;e&&this.isEligibleExperience()&&this.view()}componentDidUpdate(e){if(this.props.disableAutoView)return;let t=e.experience,i=this.props.experience;i&&this.isEligibleExperience()&&(t&&t.experience_id===i.experience_id||this.view())}render(){let{children:e,experience:t,disableAutoView:i}=this.props;return t&&this.isEligibleExperience()?"function"==typeof e?e({experience:t,complete:this.complete,dismiss:this.dismiss,...i?{view:this.view}:Object.freeze({})}):n.Children.only(e):null}}function c(e){let t=(0,l.useSelector)(({experiences:t})=>e.experience||(e.placementId?t[e.placementId]:void 0)),i=(0,l.useDispatch)(),n=(0,r.be)(),d=(0,r.Am)(),c=(0,r.Ig)(),p=(0,a.Z)();return(0,s.jsx)(u,{...e,experience:t,completeExperience:(e,t,l,a)=>i(n(e,t,l,!1,{},a)),completeExperienceObject:(e,t)=>i((0,o.Tl)(p)(e,t)),dismissExperience:(e,t,n,l)=>i(d(e,t,n,void 0,l)),dismissExperienceObject:e=>i((0,o.CF)(e)),viewExperience:(e,t,n)=>i(c(e,t,!1,!1,void 0,n)),viewExperienceObject:e=>i((0,o.dy)(p)(e))})}d(u,"defaultProps",{eligibleIds:[],eligibleTypes:[]})},701500:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(667294),l=i(883119),a=i(570470),r=i(785893);class o extends n.Component{renderPulsar(){let{anchor:e,handleComplete:t,handlePulsarCompleteOnHover:i,zIndex:n}=this.props;return(0,r.jsx)(a.Z,{anchor:e,onTouch:t,onMouseEnter:i,zIndex:n})}renderFlyout(){let{anchor:e,tooltip:t,handleDismiss:i,handleComplete:n}=this.props;if(!t)return null;let{cancelButtonText:a,confirmButtonText:o,mainText:s,idealDirection:d="down"}=t,u=a&&!!i&&o&&n;return(0,r.jsx)(l.Li,{anchor:e,idealDirection:d,onDismiss:i,size:"flexible",message:s,primaryAction:{onClick:u?i:n,text:u?String(a):String(o),role:"button"}})}render(){let{anchor:e,pulserOnly:t}=this.props;return e?t?this.renderPulsar():this.renderFlyout():null}}var s=i(123159),d=i(764990),u=i(249647),c=i(70061);let p=({anchor:e,anchorExperiences:t,passedExperience:i})=>i||(t?t[e]:null),h=e=>{let{display_data:t}=e;return t.tooltip&&(t.tooltip={...t.tooltip.options,...t.tooltip},delete t.tooltip.options),(0,u.Z)(c.Z,!0)(t)};function _({anchor:e,anchorElementRef:t,children:i,containerBoxConfig:a,experience:u,isHidden:c,onCompleteClick:_,zIndex:m}){var g;let{completeExperience:y,dismissExperience:v,experiences:f,viewExperience:x}=(0,s.M)(),b=Object.values(f).reduce((e,t)=>(8===t.type&&(e[(0,d.A0)(t)]=t),e),{}),P=p({anchor:e,anchorExperiences:b,passedExperience:u}),w=(null==P?void 0:null===(g=P.display_data)||void 0===g?void 0:g.delay)||0,[S,k]=(0,n.useState)(!!w);if((0,n.useEffect)(()=>{if(w>0&&S){let e=setTimeout(()=>{k(!1)});return()=>clearTimeout(e)}return()=>{}},[w,S]),(0,n.useEffect)(()=>{!S&&P&&x(P.placement_id,P.experience_id)},[S,P]),!P||S||c)return n.Children.only(i);let j=h(P),A=()=>{var e;null!==(e=P.display_data)&&void 0!==e&&e.complete_on_hover&&y(P.placement_id,P.experience_id)};return(0,r.jsxs)(l.xu,{position:"relative",height:null==a?void 0:a.height,display:null==a?void 0:a.display,children:[(0,r.jsx)(l.iP,{onMouseEnter:A,onTap:()=>{_&&_(),j.skipComplete||y(P.placement_id,P.experience_id)},children:n.Children.only(i)}),(0,r.jsx)(o,{anchor:t||null,handlePulsarCompleteOnHover:A,handleComplete:()=>{t instanceof HTMLElement&&t.click()},handleDismiss:e=>{null!=e&&e.event&&e.event.stopPropagation(),v(P.placement_id,P.experience_id)},pulserOnly:!!j.pulserOnly,tooltip:j.tooltip,zIndex:m})]})}},673270:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(121093),l=i(911687),a=i(249647),r=i(70061),o=i(785893);let s=({placementId:e})=>(0,o.jsx)(n.Z,{placementId:e,predicate:e=>{var t;return(null===(t=e.display_data)||void 0===t?void 0:t.component_type)===1},children:({complete:e,dismiss:t,experience:{display_data:i}})=>{let n=(0,a.Z)(r.Z)(i);return(0,o.jsx)(l.Z,{displayData:n,onComplete:()=>e(),onDismiss:t})}})},147128:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(121093),l=i(785893);let a=({placementId:e})=>(0,l.jsx)(n.Z,{placementId:e,eligibleIds:[502312,502320],preventRemoval:!0,children:({complete:e})=>(e(),null)})},123159:(e,t,i)=>{"use strict";i.d(t,{F:()=>p,M:()=>c});var n=i(667294),l=i(702664),a=i(14890),r=i(425288),o=i(332611),s=i(957191),d=i(785893);let{Provider:u,useHook:c}=(0,r.Z)("ExperienceContext");function p({children:e}){let[t,i]=(0,n.useReducer)((e,t)=>{if("MOUNT_PLACEMENT"===t.type)return{...e,mountedPlacements:{...e.mountedPlacements,[t.payload]:!0}};if("UNMOUNT_PLACEMENT"===t.type){let i={...e};return delete i.mountedPlacements[t.payload],delete i.registerdAfterActionPlacements[t.payload],i}return"REGISTER_AFTER_ACTION_PLACEMENT"===t.type?{...e,registerdAfterActionPlacements:{...e.registerdAfterActionPlacements,[t.payload]:!0}}:e},{mountedPlacements:{},registerdAfterActionPlacements:{}}),{mountedPlacements:r,registerdAfterActionPlacements:c}=t,p=(0,l.useDispatch)(),h=(0,l.useSelector)(e=>e.experiences),_=(0,o.be)(),m=(0,o.Am)(),g=(0,o.Ig)(),y=(0,n.useMemo)(()=>{let e=(0,a.bindActionCreators)({completeExperience:_,dismissExperience:m,fetchAllExperiences:o.fO,fetchAllExperiencesMulti:s.NW,fetchExperienceForPlacements:o.pz,mountPlacement:o.N,triggerExperimentsForPlacement:o.kd,viewExperience:g},p);return{...e,mountPlacement:(t,...n)=>{e.mountPlacement(t,...n),i({type:"MOUNT_PLACEMENT",payload:t})},unmountPlacement:e=>{i({type:"UNMOUNT_PLACEMENT",payload:e})},registerAfterActionPlacement:e=>{i({type:"REGISTER_AFTER_ACTION_PLACEMENT",payload:e})}}},[_,m,p,i,g]),v=(0,n.useMemo)(()=>({experiences:h,mountedPlacements:r,registerdAfterActionPlacements:c,...y}),[h,r,c,y]);return(0,d.jsx)(u,{value:v,children:e})}},322617:(e,t,i)=>{"use strict";i.d(t,{Z:()=>k});var n=i(667294),l=i(702664),a=i(883119),r=i(121093),o=i(121151),s=i(249647),d=i(70061),u=i(50286),c=i(283698),p=i(968121),h=i(898781),_=i(124580),m=i(223815),g=i(965900),y=i(785893);let v=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}},f=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}};function x({accessibilityModalLabel:e,allowScroll:t=!1,children:i,closeOnOutsideClick:l=!0,footer:r,isOpen:o,modalWidth:s,onDismiss:d,zIndex:u}){let x=(0,h.ZP)(),b=(0,n.useRef)(!1),{setAppFocusState:P}=(0,g.I)();return((0,n.useEffect)(()=>(b.current=(0,c.Z)(()=>{}),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&b.current&&(window.cancelAnimationFrame(b.current),b.current=null)}),[]),(0,n.useEffect)(()=>(o?(_.Z.pause(),P(!1)):(_.Z.resume(),P(!0)),()=>{o&&(_.Z.resume(),P(!0))}),[P,o]),(0,n.useEffect)(()=>{let e=o&&!t;return e&&v(),()=>{e&&f()}},[o,t]),o)?(0,y.jsx)(m.Z,{children:(0,y.jsx)(a.mh,{children:(0,y.jsxs)(a.xu,{"aria-label":e,zIndex:u||p.b7,position:"relative",role:"dialog",children:[(0,y.jsx)(a.iP,{accessibilityLabel:x._('Mobile Popup Modal Mask', 'mweb.experience_popup_modal.mask', 'The acessibility label for the mask of popup modal'),onTap:()=>{l&&d()},tapStyle:"none",children:(0,y.jsx)(a.xu,{height:"100%",left:!0,position:"fixed",top:!0,width:"100%",zIndex:new a.Ry(1),dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, .5)",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out"}}})}),(0,y.jsxs)(a.xu,{position:"fixed",color:"default",top:!0,width:s,zIndex:new a.Ry(1),rounding:4,overflow:"hidden",dangerouslySetInlineStyle:{__style:{top:"50%",left:"50%",transform:"translate(-50%, -50%)",touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out"}},children:[i,r]})]})})}):null}var b=i(215727),P=i(977558);let w=new a.Ry(P.fe),S=new a.H3([w]);function k(e){var t;let i=(0,l.useSelector)(({experiences:t})=>e.experience||(e.placementId?t[e.placementId]:void 0)),c=null==i?void 0:null===(t=i.display_data)||void 0===t?void 0:t.delay_in_millis,[p,h]=(0,n.useState)(i&&!c),_=(0,u.HG)();return(0,n.useEffect)(()=>{var e;h(i&&!(null!==(e=i.display_data)&&void 0!==e&&e.delay_in_millis))},[i]),(0,n.useEffect)(()=>{let e;return c&&(e=setTimeout(()=>{h(!0)},c)),()=>clearTimeout(e)},[c]),(0,y.jsx)(n.Fragment,{children:p&&(0,y.jsx)(r.Z,{experience:i,eligibleTypes:[26],placementId:e.placementId,children:({complete:e,dismiss:t,experience:{display_data:i}})=>{let n=(0,s.Z)(d.Z)(i),{title:l,body:r,completeButton:u}=n;return l&&r&&u.text?_?(0,y.jsx)(a.mh,{zIndex:S,children:(0,y.jsx)(o.ZP,{accessibilityModalLabel:"",onDismiss:t,size:"sm",children:(0,y.jsx)(b.Z,{isMobile:!1,displayData:n,handleComplete:e,handleDismiss:t})})}):(0,y.jsx)(x,{modalWidth:320,accessibilityModalLabel:null==n?void 0:n.title,onDismiss:t,isOpen:!0,children:(0,y.jsx)(b.Z,{isMobile:!0,displayData:n,handleComplete:e,handleDismiss:t})}):null}})})}},502517:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>x});var n=i(667294),l=i(121093),a=i(883119),r=i(121151),o=i(898781),s=i(149230),d=i(785893);function u(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class c extends n.Component{constructor(...e){super(...e),u(this,"state",{surveyLoaded:!1}),u(this,"loadSurvey",()=>{var e,t;this.setState({surveyLoaded:!0}),null===(e=(t=this.props).view)||void 0===e||e.call(t)}),u(this,"handleDismiss",()=>{this.props.dismiss(),this.setState({surveyLoaded:!1})}),u(this,"handleComplete",()=>{this.props.complete(),this.setState({surveyLoaded:!1})})}componentDidMount(){let{displayData:{delay:e}}=this.props;this.surveyTimer=window.setTimeout(this.loadSurvey,e)}componentWillUnmount(){clearTimeout(this.surveyTimer)}render(){if(!this.state.surveyLoaded)return null;let{displayData:{buttons:e,detailed_text:t,title_text:i}}=this.props;return(0,d.jsx)(r.ZP,{heading:i,accessibilityModalLabel:this.props.i18n._('Would you mind taking a survey?', 'User eval survey', 'User eval survey'),onDismiss:this.handleDismiss,size:"sm",footer:(0,d.jsx)(a.kC,{alignItems:"stretch",justifyContent:"end",children:e.map(e=>{if(!e.uri)return(0,d.jsx)(a.xu,{marginStart:1,children:(0,d.jsx)(a.zx,{fullWidth:!0,text:e.text,onClick:this.handleDismiss})},e.text);{let t=e.uri,i=(0,s.Z)({url:t});return(0,d.jsx)(a.xu,{marginStart:1,children:(0,d.jsx)(a.ZP,{href:t,target:"blank",rel:i?"nofollow":"none",fullWidth:!0,color:"red",text:e.text,onClick:this.handleComplete})},e.text)}})}),children:(0,d.jsx)(a.xu,{padding:3,children:(0,d.jsx)(a.xv,{children:t})})})}}function p(e){let t=(0,o.ZP)();return(0,d.jsx)(c,{...e,i18n:t})}var h=i(616550),_=i(773285);function m(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class g extends n.Component{constructor(...e){super(...e),m(this,"isOnClose",this.props.onCloseEnabled&&2===this.props.actionTrigger),m(this,"state",{surveyAccepted:!1,surveyLoaded:!1,surveyLoadFailed:!1,showSurveyOnClose:this.isOnClose}),m(this,"loadSurvey",(e=!0)=>{let{onView:t}=this.props;e&&t(),this.setState({surveyLoaded:!0})}),m(this,"processIFrameMessage",e=>{let{presentationDelay:t=5e3,onComplete:i,surveyLink:n,onCloseEnabled:l}=this.props,a=e.origin||e.originalEvent.origin;n.startsWith(a)&&("surveyFinished"===e.data?i():"surveyLoaded"===e.data&&(window.clearTimeout(this.loadSurveyFailureTimeout),this.isOnClose&&this.showSurveyOnLeavingPage(),l?this.actionTriggerHandler():this.loadSurveyTimeout=window.setTimeout(this.loadSurvey,t)))}),m(this,"handleShowSurvey",()=>{this.setState({surveyAccepted:!0})})}componentDidMount(){window.addEventListener("message",this.processIFrameMessage),this.loadSurveyFailureTimeout=window.setTimeout(()=>{this.state.surveyLoaded||(window.clearTimeout(this.loadSurveyTimeout),this.setState({surveyLoadFailed:!0}))},15e3)}componentWillUnmount(){window.removeEventListener("message",this.processIFrameMessage),window.clearTimeout(this.loadSurveyTimeout),window.clearTimeout(this.loadSurveyFailureTimeout),this.isOnClose&&this.props.unblock()}actionTriggerHandler(){let{actionTrigger:e,presentationDelay:t=5e3}=this.props;switch(e){case 1:this.loadSurvey();break;case 2:this.loadSurvey(!1);break;default:this.loadSurveyTimeout=window.setTimeout(this.loadSurvey,t)}}showSurveyOnLeavingPage(){let{onView:e,block:t}=this.props;t(()=>{e(),this.setState({showSurveyOnClose:!1})})}render(){let{surveyAccepted:e,surveyLoadFailed:t,surveyLoaded:i,showSurveyOnClose:n}=this.state;if(t)return null;let{acceptButtonText:l,bodyText:r,declineButtonText:o,onDismiss:s,subtitleText:u,surveyLink:c,titleText:p}=this.props,h=(0,d.jsx)("iframe",{style:e?{border:0,minHeight:810,paddingBottom:4,width:"100%"}:{display:"none"},src:c,title:this.props.i18n._('Pinterest Survey', 'Accessible label for survey frame', 'Accessible label for survey frame'),"data-test-id":"anket-iframe"});return i&&!n?(0,d.jsx)(a.xu,{position:"absolute",zIndex:new a.Ry(1e3),children:(0,d.jsxs)(a.u_,{accessibilityModalLabel:this.props.i18n._('Have a few minutes to take a survey?', 'User evaluation survey', 'User evaluation survey'),footer:!e&&(0,d.jsxs)(a.xu,{display:"flex",justifyContent:"end",paddingX:1,children:[(0,d.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{padding:"6px 8px"}},children:(0,d.jsx)(a.zx,{fullWidth:!0,text:o,onClick:()=>{this.setState({surveyAccepted:!1}),s()}})}),(0,d.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{padding:"6px 8px"}},children:(0,d.jsx)(a.zx,{fullWidth:!0,color:"red",text:l,onClick:this.handleShowSurvey})})]}),heading:e?"":p,onDismiss:s,role:"alertdialog",size:e?"lg":"md",padding:"none",children:[(0,d.jsx)(a.xu,{children:h}),!e&&(0,d.jsxs)(a.xu,{padding:3,children:[(0,d.jsx)(a.xv,{children:u}),(0,d.jsx)(a.xv,{children:r})]})]})}):h}}let y=function(e){let t=(0,o.ZP)(),{checkExperiment:i}=(0,_.F)(),l=(0,h.useHistory)(),[a,r]=(0,n.useState)(null),s=(0,n.useRef)(null);return(0,d.jsx)(g,{...e,i18n:t,onCloseEnabled:i("discovery_measurements_on_close_survey").anyEnabled,unblock:()=>{if(s){var e;null===(e=s.current)||void 0===e||e.call(s)}if(a){let{location:e,action:t}=a;"PUSH"===t?l.push(`${e.pathname}${e.search}`):"POP"===t&&l.goBack()}},block:e=>{s.current=l.block((t,i)=>(r({location:t,action:i}),e(),!1))}})},v=e=>{let{complete:t,dismiss:i,view:n,displayData:l}=e,{anket:a,buttons:r,delay:o,detailed_text:s,subtitle_text:u,title_text:c,action_trigger:h=3}=l,[_,m]=r;return a?(0,d.jsx)(y,{acceptButtonText:m.text,bodyText:s,declineButtonText:_.text,onComplete:t,onDismiss:i,onView:n,presentationDelay:o,subtitleText:u,surveyLink:m.uri,titleText:c,actionTrigger:h}):(0,d.jsx)(p,{complete:t,dismiss:i,displayData:l,view:n})},f=e=>{let{experienceId:t,displayData:i}=e,{delay:l=0}=i,a={...i,delay:0},r={...e,displayData:{...a}},o=(0,n.useRef)(),[s,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=["/pin-builder","/idea-pin-builder"],t=e=>window.location.pathname.includes(e),i=()=>e.some(t),n=()=>{i()?o.current=setTimeout(()=>n(),3e3):u(!0)};return o.current=setTimeout(()=>n(),l),()=>{clearTimeout(o.current)}},[t,l]),s?(0,d.jsx)(v,{...r}):null};function x(e){let{placementId:t,targeting:i,eligibleIds:n}=e;return(0,d.jsx)(l.Z,{placementId:t,eligibleTypes:[5],disableAutoView:!0,targeting:i,eligibleIds:n||[],children:({complete:e,dismiss:i,view:n,experience:l})=>{let a=l.display_data,r=l.experience_id;return 1000421===t?(0,d.jsx)(f,{experienceId:r,complete:e,dismiss:i,view:n,displayData:a}):(0,d.jsx)(v,{complete:e,dismiss:i,view:n,displayData:a})}})}},333312:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var n=i(667294),l=i(883119),a=i(121093),r=i(785893);function o(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class s extends n.PureComponent{constructor(...e){super(...e),o(this,"onScroll",()=>{let{dismiss:e}=this.props;this.dismissed||this.timer||(this.timer=setTimeout(()=>{e(),this.dismissed=!0,this.timer=void 0},3e3))}),o(this,"dismissed",!1)}componentDidMount(){window.addEventListener("scroll",this.onScroll)}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){let{anchor:e,text:t,thumbnails:i,idealDirection:n}=this.props,a=i.slice(-3);return(0,r.jsx)(l.J2,{anchor:e,color:"white",idealDirection:n,onDismiss:this.onScroll,shouldFocus:!1,size:"md",children:(0,r.jsxs)(l.xu,{display:"flex",alignContent:"center",justifyContent:"between",padding:3,width:"100%",children:[(0,r.jsx)(l.xu,{alignItems:"center",display:"flex",flex:"grow",justifyContent:"center",marginStart:-3,paddingX:3,children:(0,r.jsx)(l.xv,{color:"default",weight:"bold",children:t})}),(0,r.jsx)(l.xu,{display:"flex",marginEnd:-2,paddingX:2,children:a.map(e=>(0,r.jsx)(l.xu,{height:60,width:50,paddingX:1,children:(0,r.jsx)(l.zd,{rounding:2,height:60,children:(0,r.jsx)(l.Ee,{alt:"More Ideas Thumbnail",color:"rgb(86, 152, 239)",fit:"cover",naturalHeight:60,naturalWidth:60,src:e})})},e))})]})})}}var d=i(570470);function u(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class c extends n.Component{constructor(...e){super(...e),u(this,"dismissRef",(0,n.createRef)()),u(this,"state",{paused:!1}),u(this,"dismissCb",()=>{var e,t;null===(e=(t=this.dismissRef).current)||void 0===e||e.call(t)}),u(this,"handlePulsarClick",(e,t)=>{e?this.setState({paused:!0}):t()})}componentWillUnmount(){let{anchor:e}=this.props;clearTimeout(this.timer),null==e||e.removeEventListener("click",this.dismissCb)}setDefaultPulsarTooltip(e){e.has_pulsar=null==e.has_pulsar||e.has_pulsar,e.has_tooltip=null==e.has_tooltip||e.has_tooltip}getText(e,t,i){return(t&&e.text.replace("{boardName}",t),i)?i(e):e.text}render(){let{anchor:e,customWrapper:t,experienceIds:i,boardTextOverride:o,flyoutSize:u,fontSize:c,hasFullWidthButton:p=!0,idealDirection:h,useMasonryFlyout:_,noClickToDismiss:m,onClickComplete:g,onClickDismiss:y,placementId:v,positionRelativeToAnchor:f,shouldTimeoutDismiss:x,showCaret:b,textAlign:P,textOverflow:w,textOverrideFn:S,textWeight:k,customizedComplete:j,pulsarZIndex:A,advertiserId:C,dismissButtonLocation:D,dismissButtonColor:E,dismissButtonMarginTop:I}=this.props,T=t||(({children:e})=>_?(0,r.jsx)(l.mh,{children:e}):e);return(0,r.jsx)(a.Z,{eligibleIds:i,placementId:v,eligibleTypes:[8],targeting:C?{advertiserId:parseInt(C,10)}:null,children:({complete:t,dismiss:i,experience:a})=>{let{display_data:{scroll_to_dismiss:v,scroll_to_dismiss_delay_in_seconds:C=0,...F}}=a,z=v&&e,R=()=>{L(),setTimeout(i,1e3*C)},L=()=>{z&&(window.removeEventListener("scroll",R),window.removeEventListener("touchmove",R))},M=()=>{L(),t()};if(z&&(window.addEventListener("scroll",R),window.addEventListener("touchmove",R)),this.setDefaultPulsarTooltip(F),!F.has_pulsar&&!F.has_tooltip)return M(),null;x&&F.disappearTime&&F.disappearTime>0&&(this.timer=setTimeout(()=>(R(),null),F.disappearTime));let Z=501041===a.experience_id||505086===a.experience_id;return F.has_tooltip&&!F.has_pulsar&&(this.dismissRef.current=R,null==e||e.addEventListener("click",this.dismissCb)),(0,r.jsxs)(n.Fragment,{children:[F.has_pulsar&&(0,r.jsx)(d.Z,{anchor:e,leftOverride:Z?342:void 0,onTouch:()=>this.handlePulsarClick(F.has_tooltip,M),paused:this.state.paused,topOverride:Z?-5:void 0,zIndex:A&&A.index()}),F.has_tooltip&&(!F.has_pulsar||this.state.paused)&&(F.thumbnail_urls?(0,r.jsx)(s,{anchor:e,dismiss:R,idealDirection:h||"down",text:F.text,thumbnails:F.thumbnail_urls}):(0,r.jsx)(T,{children:(0,r.jsx)(l.J2,{anchor:e,color:"deprecatedBlue",idealDirection:h||"down",onDismiss:m?()=>{}:R,positionRelativeToAnchor:!_&&f,shouldFocus:!1,_deprecatedShowCaret:b,size:u,children:(0,r.jsxs)(l.xu,{column:12,padding:3,children:[(0,r.jsxs)(l.xv,{align:"right"===P?"end":P,color:"inverse",overflow:w,size:c,weight:k||"bold",children:[this.getText(F,o,S),F.secondary_cta_link&&(0,r.jsx)(l.xu,{display:"inlineBlock",marginStart:1,children:(0,r.jsx)(l.xv,{size:c,weight:"bold",color:"inverse",children:(0,r.jsx)(l.rU,{display:"inlineBlock",target:"blank",href:F.secondary_cta_link.url,underline:"hover",children:F.secondary_cta_link.text})})})]}),F.sub_text&&(0,r.jsx)(l.xu,{paddingY:2,children:(0,r.jsx)(l.xv,{color:"inverse",size:c,children:F.sub_text})}),(F.dismiss_button_text||F.complete_button_text)&&(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",justifyContent:D||"start",marginTop:I||2,children:[F.dismiss_button_text&&(0,r.jsx)(l.xu,{marginEnd:1,column:6,children:(0,r.jsx)(l.zx,{fullWidth:p,color:E||"blue",onClick:()=>{y&&y(),R()},size:"md",text:F.dismiss_button_text})}),F.complete_button_text&&(0,r.jsx)(l.xu,{column:F.dismiss_button_text?6:12,children:j?(0,r.jsx)(l.iP,{fullHeight:!0,onTap:()=>{M(),g&&g()},rounding:2,children:(0,r.jsx)(l.xu,{display:"flex",color:"default",padding:2,rounding:2,justifyContent:"center",dangerouslySetInlineStyle:{__style:{padding:"10px"}},children:(0,r.jsx)(l.xv,{color:"shopping",weight:"bold",children:F.complete_button_text})})}):(0,r.jsxs)(l.kC,{justifyContent:"center",children:[F.complete_button_cta_url&&(0,r.jsx)(l.ZP,{fullWidth:p,color:"white",href:F.complete_button_cta_url,size:"md",target:F.complete_button_cta_url?"blank":null,text:F.complete_button_text,onClick:({event:e})=>{e.preventDefault(),e.stopPropagation(),M(),g&&g()}}),!F.complete_button_cta_url&&(0,r.jsx)(l.zx,{fullWidth:p,color:"white",size:"md",text:F.complete_button_text,onClick:()=>{M(),g&&g()}})]})})]})]})})}))]})}})}}u(c,"defaultProps",{fontSize:"300",positionRelativeToAnchor:!0})},756306:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(883119),a=i(121093),r=i(785893);class o extends n.Component{constructor(...e){var t,i,n;super(...e),i={paused:!1,showPulsar:!1},(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t="state","string"))?n:String(n))in this?Object.defineProperty(this,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[t]=i}componentDidMount(){this.mountPulsar(),this.props.onExperienceMount&&this.experience&&this.props.onExperienceMount(this.experience)}componentWillUnmount(){clearTimeout(this.timer)}mountPulsar(){if(!this.experience)return;let{display_data:e}=this.experience;e.has_pulsar&&this.setState({showPulsar:!0})}renderPulsar(){let{anchor:e}=this.props,{paused:t}=this.state;if(!e)return null;let i=e.getBoundingClientRect(),{height:n,width:a}=i;return(0,r.jsx)(l.xu,{position:"absolute",zIndex:new l.Ry(1),dangerouslySetInlineStyle:{__style:{marginTop:-(68+n/2),marginLeft:-(68-a/2),cursor:"pointer",pointerEvents:"none"}},children:(0,r.jsx)(l.o3,{paused:t})})}renderFlyout(e){let{anchor:t,flyoutSize:i,idealDirection:n}=this.props;return(0,r.jsx)(l.Li,{anchor:t,idealDirection:n||"down",onDismiss:()=>{},size:i,message:e})}render(){let{experienceIds:e,placementId:t,shouldTimeoutDismiss:i}=this.props,{showPulsar:n}=this.state;return(0,r.jsx)(a.Z,{eligibleIds:e,placementId:t,eligibleTypes:[8],children:({complete:e,dismiss:t,experience:a})=>{this.experience=a;let{display_data:o}=a;return o.has_pulsar||o.has_tooltip?(i&&o.disappearTime&&o.disappearTime>0&&(this.timer=setTimeout(()=>(t(),null),o.disappearTime)),(0,r.jsxs)(l.xu,{zIndex:new l.Ry(10),children:[n&&this.renderPulsar(),o.has_tooltip&&(!o.has_pulsar||this.state.paused)&&this.renderFlyout(o.text)]})):(e(),null)}})}}},327788:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(667294),l=i(123159),a=i(322617),r=i(497529),o=i(785893);let s=({placementId:e})=>{let{experienceForPlacement:t}=(0,r.Z)(e),{unmountPlacement:i,registerAfterActionPlacement:s}=(0,l.M)();return(0,n.useEffect)(()=>(s(e),()=>{i(e)}),[e,i,s]),(0,o.jsx)(n.Fragment,{children:(0,o.jsx)(a.Z,{experience:t})})}},911687:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(883119),l=i(444445),a=i(898781),r=i(391254),o=i(164985),s=i(149230),d=i(785893);let u=(l.yF+l.lX)*l.yc-l.lX,c=Array.from(Array(l.g5-l.yc).keys()).reduce((e,t)=>{let i=t+l.yc,n=(l.yF+l.lX)*i-l.lX;return e+(0,l.KN)(l.yF,i,i,`.banner-content {
108
+ width: ${n}px;
109
+ min-width: ${n}px;
110
+ }`,l.lX)},`.banner-content {
111
+ width: ${u}px;
112
+ min-width: ${u}px;
113
+ }`);function p(e){let t=(0,a.ZP)(),{displayData:{backgroundColorNarrow:i,backgroundColorWide:l,backgroundImageNarrow:u,backgroundImageWide:p,canClose:h,completeButtonText:_,coverImage:m,dismissButtonText:g,iconImage:y,layoutNarrow:v,layoutWide:f,links:x=[],linkTitles:b=[],message:P,onCompleteRedirectUrl:w,onDismissRedirectUrl:S,textColorNarrow:k,textColorWide:j,titleText:A,external:C},onComplete:D,onDismiss:E}=e,{windowWidth:I}=(0,o.Z)(),T=I<=480,F=T?v:f,z=!T&&3!==F,R=T?k:j,{altText:L,uri:M}=(T?u:p)||{},{altText:Z,uri:B}=m||{},{altText:O,uri:N}=y||{},K=T&&2===F||!T&&2===F,U=T?"96px":"48px",H=T&&3===F,V=_&&!w&&(0,d.jsx)(n.zx,{text:_,onClick:({event:e})=>{null==D||D(e)},color:"white"}),G=(0,s.Z)({url:w}),W=_&&w&&(0,d.jsx)(n.ZP,{text:_,onClick:({event:e})=>{null==D||D(e)},href:w,rel:G?"nofollow":"none",target:C?"blank":void 0,color:"white",size:"lg"},"naglink"),$=(0,s.Z)({url:S}),q=g&&S&&(0,d.jsx)(n.ZP,{text:g,onClick:({event:e})=>{null==E||E(e)},href:S,rel:$?"nofollow":"none",target:C?"blank":void 0,color:"white",size:"lg"},"naglink"),Y=g&&!S&&(0,d.jsx)(n.zx,{text:g,onClick:({event:e})=>{null==E||E(e)},color:"white",size:"lg"}),X=h&&(0,d.jsx)(n.hU,{accessibilityLabel:t._('Close', 'accessibility close label', 'accessibility close label'),bgColor:"lightGray",onClick:({event:e})=>{null==E||E(e)},icon:"cancel",iconColor:"gray",size:"md"}),Q=x.reduce((e,t,i)=>{let n=t.startsWith("https://")||t.startsWith("http://")?'rel="noreferrer noopener" target="_blank"':"",l=`<a href="${t}" ${n}>${b[i]}</a>`;return e.replace(`{${i}}`,l)},P),J={backgroundColor:T?i:l,backgroundImage:!M||K||H?void 0:`url(${M})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"};return(0,d.jsxs)(n.xu,{direction:z?"row":"column",display:"flex",marginBottom:5,marginEnd:2,marginStart:2,marginTop:2,children:[(0,d.jsx)(r.Z,{unsafeCSS:c}),(0,d.jsx)("div",{className:"banner-content",style:{borderRadius:"16px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",margin:"0 auto"},children:(0,d.jsxs)(n.zd,{rounding:4,width:"100%",children:[H&&B&&(0,d.jsx)(n.kC,{alignItems:"start",height:128,justifyContent:"center",width:"100%",children:(0,d.jsx)(n.Ee,{alt:Z||"cover image",fit:"cover",naturalHeight:1,naturalWidth:3,src:B})}),(0,d.jsxs)(n.xu,{"aria-label":L,alignItems:"center",dangerouslySetInlineStyle:{__style:J},direction:z?"row":"column",display:"flex",justifyContent:"between",marginTop:H?-2:0,padding:6,children:[(0,d.jsxs)(n.kC,{alignItems:"center",direction:z?"row":"column",justifyContent:"between",maxWidth:z?void 0:"560px",children:[K&&N&&(0,d.jsx)(n.xu,{alignItems:"center",direction:"column",display:"flex",justifyContent:"center",marginEnd:z?4:0,marginBottom:z?0:6,children:(0,d.jsx)(n.xu,{height:U,width:U,children:(0,d.jsx)(n.zd,{rounding:z?4:6,children:(0,d.jsx)(n.Ee,{alt:O||"icon",naturalHeight:1,naturalWidth:1,src:N})})})}),!z&&A&&(0,d.jsx)(n.xv,{align:"center",weight:"bold",children:(0,d.jsx)("div",{className:"banner-title",style:{color:R,fontSize:"28px",marginBottom:"8px"},children:A})}),Q&&(0,d.jsxs)(n.xv,{align:z?"start":"center",overflow:"normal",children:[(0,d.jsx)("style",{dangerouslySetInnerHTML:{__html:`
114
+ .banner-text a {
115
+ color: ${R||""};
116
+ font-weight: bold;
117
+ }`}}),(0,d.jsx)("div",{className:"banner-text",dangerouslySetInnerHTML:{__html:Q},style:{color:R}})]})]}),(0,d.jsx)(n.xu,{marginBottom:z?0:-1,marginStart:z?4:0,marginTop:z?0:4,children:(0,d.jsxs)(n.kC,{alignItems:"center",justifyContent:"center",wrap:!z,gap:{row:2,column:0},children:[Y||q,V||W,X]})})]})]})})]})}},332611:(e,t,i)=>{"use strict";let n;i.d(t,{Am:()=>y,Ig:()=>m,N:()=>b,Sd:()=>v,YX:()=>x,be:()=>g,fO:()=>p,kd:()=>f,pz:()=>h});var l=i(667294),a=i(214494),r=i(112690),o=i(764990),s=i(957191),d=i(186656),u=i(67347);let c=(e,t,i={})=>(0,u.nP)(`${e}.${t}`,{sampleRate:1,tags:i}),p=(e,t)=>i=>{let n=t?{extra_context:e,targeting:t}:{extra_context:e};return a.Z.create("UserExperiencePlatformResource",n).callGet().then(e=>e.resource_response?i((0,s.OD)(e.resource_response.data)):void 0)},h=(e,t,i,l)=>(r,d)=>{if(t)return Promise.resolve();if(l&&(n=l),1===e.length){let t=e[0],n=d().experiences,l=n[t],a=(null==l?void 0:l.extraContext)||null;if(JSON.stringify(a)===JSON.stringify(i)||(0,o.E3)(l)&&!(i&&Object.keys(i).length>0))return Promise.resolve()}return a.Z.create("UserExperienceResource",{placement_ids:e,extra_context:i||null,targeting:l}).callGet().then(e=>e.resource_response?r((0,s.cL)(e.resource_response.data)):void 0)},_=(e,t,i,l)=>(r,o,d,u=!1,c,h)=>(_,m)=>{let{experiences:g,experiencesMulti:y}=m(),v=null,f=!0;if(!u){var x;v=(f=g[r]&&g[r].experience_id===o)?g[r]:Array.isArray(y[r])&&(null===(x=y[r])||void 0===x?void 0:x.find(e=>e.experience_id===o))}if(v&&v.experience_id===o||u&&r&&o){let u=a.Z.create(e,{placed_experience_id:`${r}%3A${o}`,extra_context:null!=c?c:{},targeting:h}),m=f?s.Yb:s.xW;switch(t){case"dismissed":return u.callDelete().then(()=>{_(m(r,o,t)),_(p(void 0,n)),i&&l&&i({event_type:l,object_id_str:o.toString()})});case"completed":return u.callUpdate().then(()=>{!d&&(_(m(r,o,t)),_(p(void 0,n)),i&&l&&i({event_type:l,object_id_str:o.toString()}))});case"viewed":return _(m(r,o,t)),u.callUpdate().then(()=>{1000162===r&&_(p()),i&&l&&i({event_type:l,object_id_str:o.toString()})});case"completedWithoutHomefeed":return u.callUpdate().then(()=>{d||_(m(r,o,t)),i&&l&&i({event_type:l,object_id_str:o.toString()})})}}return Promise.resolve()},m=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(_("UserExperienceViewedResource","viewed",e,4503),[e]);return t},g=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(_("UserExperienceCompletedResource","completed",e,6567),[e]);return t},y=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(_("UserExperienceResource","dismissed",e,6568),[e]);return t},v=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(_("UserExperienceCompletedResource","completedWithoutHomefeed",e,6567),[e]);return t},f=(e,t)=>(i,n)=>{let{experiences:l}=n(),a=l[e];a&&a.triggerable_placed_exps&&a.triggerable_placed_exps.length&&a.triggerable_placed_exps.forEach(i=>{let[,n]=i.split(":"),l=t;a.metadata&&a.metadata[n]&&(l={...t,...a.metadata[n]}),(0,d.Z)({url:`/v3/experiences/${i.replace(":","%3A")}/trigger/`,method:"PUT",data:l?{extra_context:JSON.stringify(l,null,1)}:{}}).then(()=>{c("experienceservice","experimentTriggerCall.1",{placement_id:e,experience_id:n})})})},x=e=>(t,i)=>{t(f(e));let{experiences:n}=i();return n[e]},b=(e,t,i)=>l=>{i&&(n=i),l(f(e,t)),t&&Object.keys(t).length>0&&l(h([e],!1,t,i))}},242923:(e,t,i)=>{"use strict";i.d(t,{CF:()=>o,Tl:()=>r,dy:()=>s});var n=i(214494),l=i(332611);let a=(e,t,i,a)=>(r,o)=>s=>{if(r&&r.id){let d=n.Z.create(e,{placed_experience_id:r.id,extra_context:{}});switch(t){case"dismissed":d.callDelete().then(()=>{s((0,l.fO)()),i&&a&&i({event_type:a,object_id_str:r.id.toString()})});break;case"completed":d.callUpdate().then(()=>{o||s((0,l.fO)()),i&&a&&i({event_type:a,object_id_str:r.id.toString()})});break;case"viewed":d.callUpdate().then(()=>{i&&a&&i({event_type:a,object_id_str:r.id.toString()})})}}},r=e=>a("UserExperienceCompletedResource","completed",e,6567),o=a("UserExperienceResource","dismissed"),s=e=>a("UserExperienceViewedResource","viewed",e,4503)},764990:(e,t,i)=>{"use strict";i.d(t,{A0:()=>s,E3:()=>r,MQ:()=>o,fL:()=>d});var n=i(883119),l=i(149230),a=i(785893);function r(e){return!!e&&0!==e.type}let o=(e,t,i)=>{let n=e[i];return t[i]&&r(n)?n:null};function s(e){var t;return null===(t=e.display_data)||void 0===t?void 0:t.anchor}let d=e=>{var t;let i=new DOMParser,r=i.parseFromString(e,"text/html"),o=[...(null===(t=r.body)||void 0===t?void 0:t.childNodes)||[]].map(e=>{if("A"!==e.nodeName)return(0,a.jsx)(n.xv,{inline:!0,children:e.textContent});{let t=e.href||"",i=(0,l.Z)({url:t});return(0,a.jsx)(n.rU,{href:t,display:"inline",externalLinkIcon:i?"default":"none",target:"blank",rel:i?"nofollow":"none",children:e.textContent})}});return(0,a.jsx)(n.xv,{inline:!0,children:o})}},207737:(e,t,i)=>{"use strict";i.d(t,{$S:()=>n,V$:()=>l,_4:()=>r,iY:()=>o,mR:()=>a});let n="REFRESH_ALL_EXPERIENCES_MULTI",l="UPDATE_EXPERIENCE_MULTI",a="FETCH_EXPERIENCES",r="REFRESH_ALL_EXPERIENCES",o="UPDATE_EXPERIENCE"},957191:(e,t,i)=>{"use strict";i.d(t,{NW:()=>o,OD:()=>d,Yb:()=>s,cL:()=>u,xW:()=>r});var n=i(214494),l=i(207737);let a=e=>({type:l.$S,payload:{experiencesMulti:e}}),r=(e,t,i)=>({type:l.V$,payload:{placementId:e,experienceId:t,status:i}}),o=e=>t=>n.Z.create("UserExperiencePlatformResource",{extra_context:e,multiExperiencePlatform:!0}).callGet().then(e=>e.resource_response?t(a(e.resource_response.data)):void 0),s=(e,t,i)=>({type:l.iY,payload:{placementId:e,experienceId:t,status:i}}),d=e=>({type:l._4,payload:{experiences:e}}),u=e=>({type:l.mR,payload:{experiences:e}})},570470:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(883119),l=i(667294),a=i(785893);let r=(e,t,i,n)=>({horizontalOffset:-(n/2-t/2),verticalOffset:-(i/2-e/2)});function o({anchor:e,children:t,zIndex:i,leftOverride:o,topOverride:s}){let d=(0,l.useRef)(null),[u,c]=(0,l.useState)(0),[p,h]=(0,l.useState)(0),{height:_,width:m}=e.getBoundingClientRect();return(0,l.useEffect)(()=>{let{current:t}=d;if(e&&t){let{height:e,width:i}=t.getBoundingClientRect(),{horizontalOffset:n,verticalOffset:l}=r(_,m,e,i);c(n),h(l)}}),(0,a.jsx)(n.xu,{position:"absolute",zIndex:i?new n.Ry(i):void 0,dangerouslySetInlineStyle:{__style:{left:o||u,top:s||p}},ref:d,children:t})}let s=function(e){let{anchor:t,leftOverride:i,onTouch:l,onMouseEnter:r,paused:s,size:d,topOverride:u,zIndex:c}=e;return t?(0,a.jsx)(o,{anchor:t,leftOverride:i,topOverride:u,zIndex:c,children:(0,a.jsx)(n.iP,{fullWidth:!1,onTap:({event:e})=>l(e),onMouseEnter:r,rounding:"circle",children:(0,a.jsx)(n.o3,{paused:s,size:d})})}):null}},497529:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294);i(332611);var l=i(123159),a=i(764990);i(957191);var r=i(780280);function o(e){let{mountedPlacements:t,completeExperience:i,dismissExperience:o,experiences:s,fetchAllExperiences:d,fetchAllExperiencesMulti:u,fetchExperienceForPlacements:c,triggerExperimentsForPlacement:p,viewExperience:h}=(0,l.M)(),{isBot:_}=(0,r.B)(),m=e&&!_?(0,a.MQ)(s,t,e):null;return(0,n.useMemo)(()=>({completeExperience:i,dismissExperience:o,experienceForPlacement:m,fetchAllExperiences:d,fetchAllExperiencesMulti:u,fetchExperienceForPlacements:c,triggerExperimentsForPlacement:p,viewExperience:h}),[i,o,m,d,u,c,p,h])}},869636:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(667294),l=i(702664),a=i(442279),r=i(123159),o=i(780280),s=i(67347);let d=(0,a.P1)(e=>e.experiences,(e,t)=>t,(e,t)=>e[t]),u=(e,t,i={})=>(0,s.nP)(`${e}.${t}`,{sampleRate:1,tags:i}),c=(e,t)=>"function"==typeof t?t(e):t,p=(e,t={},i=!1)=>{let[a,s]=(0,n.useReducer)(c,t),{isBot:p}=(0,o.B)(),{fetchExperienceForPlacements:h,mountPlacement:_,triggerExperimentsForPlacement:m,unmountPlacement:g}=(0,r.M)();(0,n.useDebugValue)(`Placement Hook ID - ${e}`),(0,n.useEffect)(()=>{let t={...a},n=i&&null!=t&&t.advertiser_id?{advertiserId:t.advertiser_id}:void 0;return _(e,t,n),()=>{g(e)}},[]),(0,n.useEffect)(()=>{Object.keys(a).length>0&&h([e],p,a)},[a]);let y=(0,l.useSelector)(t=>d(t,e)),v=(0,l.useSelector)(t=>t.experiencesMulti[e]),f=y?y.triggerable_placed_exps:[];return(0,n.useEffect)(()=>{let t={platform:"web",placement_id:e,...f};u("experienceservice","placementHookExperimentTrigger.1",t),m(e,a)},[JSON.stringify(f)]),{experience:y,experiencesMulti:v,setExtraContext:s}}},784450:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(667294),l=i(702664),a=i(594736),r=i(332611),o=i(123159),s=i(764990),d=i(780280),u=i(785893);function c(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let p={shouldUsePlacedExperience:!0,dispatchMountActionDuringSSR:!1,isAdvertiserPlacement:!1},h=(e,t={},i)=>h=>{i={...p,...i};let _=function(e,t,i=!0,p=!0,h=!1,_){class m extends n.Component{constructor(e){super(e),c(this,"state",{extraContext:void 0}),c(this,"setExtraContextState",e=>{(0,a.ZP)(this.state.extraContext,e)||this.setState({extraContext:e})})}componentDidMount(){this.dispatchPlacementMount()}componentDidUpdate(i,n){let{dispatch:l,experience:o,requestContext:s}=this.props,d=n.extraContext,u=this.state.extraContext||t||{};"function"==typeof t&&(d=t(i,n.extraContext||{}),u=t(this.props,this.state.extraContext||{})),u&&Object.keys(u).length>0&&!(0,a.ZP)(d,u)&&l((0,r.pz)([e],s.isBot,u)),o&&(!i.experience||o.id!==i.experience.id)&&l((0,r.kd)(e,u))}componentWillUnmount(){this.props.unmountPlacement(e)}dispatchPlacementMount(){let i="function"==typeof t?t(this.props,this.state.extraContext||{}):{...t},n=h&&null!=i&&i.advertiser_id?{advertiserId:i.advertiser_id}:void 0;this.props.mountPlacement(e,i,n)}render(){let{experience:e,experiencesMulti:t}=this.props,i=h?"advertiserExperience":"experience",n={[i]:(0,s.E3)(e)?e:null};return(0,u.jsx)(_,{...this.props,setPlacementExtraContext:this.setExtraContextState,...n,experiencesMulti:t})}}function g(e){let t=(0,d.B)(),i=(0,l.useDispatch)(),{mountPlacement:n,unmountPlacement:a}=(0,o.M)();return(0,u.jsx)(m,{...e,dispatch:i,mountPlacement:n,requestContext:t,unmountPlacement:a})}return g.displayName=`withPlacement(${_.displayName||_.name||"Component"})`,g}(e,t,i.shouldUsePlacedExperience,i.dispatchMountActionDuringSSR,i.isAdvertiserPlacement,h),m=t=>{let i=(0,l.useSelector)(t=>t.experiences[e]),n=(0,l.useSelector)(t=>t.experiencesMulti?t.experiencesMulti[e]:void 0);return(0,u.jsx)(_,{...t,experience:i,experiencesMulti:n})};return m.displayName=_.displayName,m}},441253:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(537347),l=i.n(n),a=i(67347);function r(e){if("undefined"==typeof window||!document.head)return(0,a.nP)("load_fonts.failure",{sampleRate:1,tags:{failure_reason:"window undefined"}}),Promise.reject(Error("Window is undefined or no head on the document. Unable to load fonts"));let{head:t}=document,i=[];return e.forEach(e=>{e.styles.forEach(n=>{var a,r,o;let s=document.querySelector(`#${null!==(a=e.fontFamily)&&void 0!==a?a:""}-${n.name}`);if(!s){if((s=document.createElement("style")).setAttribute("id",`${null!==(r=e.fontFamily)&&void 0!==r?r:""}-${n.name}`),t.appendChild(s),e.format&&n.fontUrl&&s&&s.sheet){let t=s.sheet;t.insertRule(`
118
+ @font-face {
119
+ font-family: "${null!==(o=e.fontFamily)&&void 0!==o?o:""}";
120
+ font-style: "${n.fontStyle}";
121
+ font-weight: "${n.fontWeight}";
122
+ src: url("${n.fontUrl}") format("${e.format}");
123
+ }
124
+ `,0)}i.push(new(l())(e.fontFamily,{style:n.fontStyle,weight:n.fontWeight}).load())}})}),Promise.all(i).then(()=>{Promise.resolve()}).catch(e=>{(0,a.nP)("load_fonts.failure",{sampleRate:1,tags:{failure_reason:"unsuccessful load"}}),Promise.reject(e)})}},579014:(e,t,i)=>{"use strict";i.d(t,{B1:()=>l,Md:()=>u,iX:()=>d,lI:()=>a,op:()=>s,uZ:()=>r,wN:()=>n,z_:()=>o});let n="var(--color-background-default)",l="var(--color-background-inverse-base)",a="var(--color-background-secondary-base)",r="var(--color-background-error-base)",o="var(--color-background-info-weak)",s="var(--color-border-error)",d="var(--color-border-container)",u="var(--color-text-subtle)"},858472:(e,t,i)=>{"use strict";i.d(t,{$$:()=>y,C5:()=>A,CZ:()=>g,EX:()=>a,FZ:()=>n,HH:()=>o,KK:()=>w,Kp:()=>_,Ln:()=>m,Mv:()=>k,OX:()=>r,P6:()=>C,Rb:()=>b,Xn:()=>x,YX:()=>c,bu:()=>d,cO:()=>v,ci:()=>s,fM:()=>f,k6:()=>S,oY:()=>l,sX:()=>j,vZ:()=>p,wA:()=>P,x7:()=>u,xE:()=>h});let n="var(--color-transparent)",l="var(--color-black-cosmicore-900)",a="var(--color-blue-skycicle-900)",r="var(--color-red-pushpin-50)",o="var(--color-red-pushpin-100)",s="var(--color-red-pushpin-200)",d="var(--color-red-pushpin-300)",u="var(--color-red-pushpin-450)",c="var(--color-red-pushpin-500)",p="var(--color-red-pushpin-600)",h="var(--color-red-pushpin-700)",_="var(--color-red-pushpin-800)",m="var(--color-pink-flaminglow-0)",g="var(--color-white-mochimalist-0)",y="var(--color-gray-roboflow-50)",v="var(--color-gray-roboflow-200)",f="var(--color-gray-roboflow-300)",x="var(--color-gray-roboflow-400)",b="var(--color-gray-roboflow-500)",P="var(--color-gray-roboflow-600)",w="var(--color-gray-roboflow-700)",S="var(--color-purple-mysticool-200)",k="var(--color-purple-mysticool-300)",j="var(--color-purple-mysticool-500)",A="var(--color-teal-spabattical-100)",C="var(--color-yellow-caramellow-300)"},301723:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(883119);let a=(0,n.createContext)();var r=i(785893);function o(e){(0,n.useContext)(a);let{alt:t,color:i,children:o,crossOrigin:s,decoding:d,elementTiming:u,fetchPriority:c,fit:p,loading:h,naturalHeight:_,naturalWidth:m,onError:g,onLoad:y,role:v,sizes:f,src:x,srcSet:b}=e;return(0,r.jsx)(l.Ee,{alt:t,color:i,crossOrigin:s,decoding:d,elementTiming:u,fetchPriority:c,fit:p,loading:h,naturalHeight:_,naturalWidth:m,onError:g,onLoad:y,role:v,sizes:f,src:x,srcSet:b,children:o})}},18514:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Masonry:()=>v,default:()=>f});var n,l,a,r=i(667294),o=i(883119),s=i(407043),d=i(319915),u=i(775904),c=i(463076),p=i(444445),h=i(391254),_=i(773285),m=i(780280),g=i(67347),y=i(785893);class v extends r.Component{getGutters(){let{gutterWidth:e,paddingStyle:t}=this.props,i="simplified"===t,n=i?p.oX:e;return{gutterWidth:null!=n?n:p.ZZ,paddingBottom:i?16:6}}render(){let e;let{columnWidth:t,experimentalTwoColItems:i,flexible:n,isGridCentered:l,isInitialRender:a,isRTL:r,items:s,layout:d,loadItems:u,logContextEvent:_,masonryRef:m,measurementStore:v,minCols:f,positionStore:x,renderItem:b,scrollContainerRef:P,serverRender:w,virtualBufferFactor:S,virtualize:k}=this.props,{gutterWidth:j,paddingBottom:A}=this.getGutters();return l&&a&&(e="gridCentered"),(0,y.jsxs)("div",{className:e,children:[w&&a&&(0,y.jsx)(h.Z,{unsafeCSS:n?function({isRTL:e,maxItemWidth:t=300,maxColumns:i=16,minColumns:n=2}){let l=`
125
+ .gridCentered {
126
+ margin-left: auto;
127
+ margin-right: auto;
128
+ max-width: ${i*t}
129
+ }
130
+
131
+ .gridCentered .static {
132
+ position: absolute !important;
133
+ visibility: hidden !important;
134
+ }
135
+
136
+ @media (min-width: ${i*t}px) {
137
+ .gridCentered .static:nth-child(-n+${i}) {
138
+ position: static !important;
139
+ visibility: visible !important;
140
+ float: ${e?"right":"left"};
141
+ display: block;
142
+ }
143
+
144
+ .gridCentered .static:nth-child(-n+${i}) {
145
+ position: static !important;
146
+ visibility: visible !important;
147
+ float: ${e?"right":"left"};
148
+ display: block;
149
+ }
150
+
151
+ .gridCentered .static {
152
+ width: ${t}px !important;
153
+ }
154
+ }
155
+ `;for(let a=n;a<i+1;a+=1){let i=a===n?0:(a-1)*t+1;l+=`
156
+ @media (min-width: ${i}px) and (max-width: ${a*t}px) {
157
+ .gridCentered .static:nth-child(-n+${a}) {
158
+ position: static !important;
159
+ visibility: visible !important;
160
+ float: ${e?"right":"left"};
161
+ display: block;
162
+ }
163
+
164
+ .gridCentered .static {
165
+ width: calc(100% / ${a}) !important;
166
+ }
167
+ }
168
+ `}return l}({isRTL:r,maxItemWidth:(t||p.yF)+j,maxColumns:s.length||p.g5,minColumns:f||p.yc}):(0,c.Z)({isRTL:r,itemWidth:(t||p.yF)+j,maxColumns:s.length||p.g5,minColumns:f||p.yc})}),(0,y.jsx)(o.Rk,{columnWidth:(null!=t?t:p.yF)+j,gutterWidth:0,items:s,layout:n?w?"serverRenderedFlexible":"flexible":null!=d?d:"basic",loadItems:u,measurementStore:v,minCols:f,_twoColItems:i,_logTwoColWhitespace:e=>{(0,g.S0)("webapp.masonry.twoColWhitespace",e,{sampleRate:1,tags:{columnWidth:t,minCols:f}}),_({event_type:14705,component:14468,aux_data:{whitespace_px:e}})},ref:e=>{m&&(m.current=e)},renderItem:e=>(0,y.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{paddingBottom:A,paddingLeft:j/2,paddingRight:j/2}},children:b(e)}),positionStore:x,scrollContainer:()=>(null==P?void 0:P.current)||window,virtualize:k,virtualBufferFactor:S})]})}}function f({cacheKey:e,columnWidth:t,experimentalTwoColItems:i,flexible:n,gutterWidth:l,isFetching:a,isGridCentered:o=!0,renderItem:c,items:p,layout:h,loadItems:g,masonryRef:f,minCols:x,paddingStyle:b,scrollContainerRef:P,serverRender:w=!0,virtualize:S=!0}){var k;let{isRTL:j}=(0,m.B)(),{logContextEvent:A}=(0,s.v)(),{checkExperiment:C}=(0,_.F)(),D=C("web_masonry_virtual_buffer_factor").group,E=null!==(k=({enabled_0_3:"0.3",enabled_0_5:"0.5",enabled_0_9:"0.9",enabled_1_1:"1.1",enabled_1_3:"1.3"})[D])&&void 0!==k?k:.7,I=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{I.current&&(I.current=!1)},[]),(0,y.jsx)(v,{columnWidth:t,experimentalTwoColItems:null!=i&&i,flexible:n,gutterWidth:l,isGridCentered:o,isInitialRender:I.current,isRTL:j,items:p,layout:h,loadItems:()=>{!a&&g&&g()},logContextEvent:A,masonryRef:f,measurementStore:(0,u.z)(e),minCols:x,paddingStyle:b,positionStore:(0,u.Y)(e),renderItem:e=>(0,y.jsx)(d.Z,{name:"MasonryItem",children:c(e)}),scrollContainerRef:P,serverRender:w,virtualize:S,virtualBufferFactor:E})}l="defaultProps",a={gutterWidth:p.ZZ,isGridCentered:!0,minCols:p.yc,paddingStyle:"simplified",virtualize:!0},(l="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(l,"string"))?n:String(n))in v?Object.defineProperty(v,l,{value:a,enumerable:!0,configurable:!0,writable:!0}):v[l]=a},775904:(e,t,i)=>{"use strict";function n(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{Y:()=>s,z:()=>d}),i(883119);let l={};function a(e){let t=l[e];return t&&t.screenWidth===window.innerWidth||(l[e]={screenWidth:window.innerWidth}),l[e]}let r=e=>{let t=e.__id||e.id;return"string"==typeof t&&t||null};class o{constructor(){n(this,"idMap",new Map),n(this,"objMap",new Map)}get(e){let t=r(e);return t?this.idMap.get(t):this.objMap.get(e)}has(e){let t=r(e);return t?this.idMap.has(t):this.objMap.has(e)}set(e,t){let i=r(e);i?this.idMap.set(i,t):this.objMap.set(e,t)}reset(){this.idMap=new Map,this.objMap=new Map}}function s(e){if(null==e)return;let t=a(e);return t.positionCache||(t.positionCache=new o),t.positionCache}function d(e){if(null==e)return;let t=a(e);return t.measurementCache||(t.measurementCache=new o),t.measurementCache}},463076:(e,t,i)=>{"use strict";function n({isRTL:e,itemWidth:t=236,maxColumns:i=16,minColumns:n=2}){let l=`
169
+ .gridCentered {
170
+ margin-left: auto;
171
+ margin-right: auto;
172
+ }
173
+ .gridCentered .static {
174
+ position: absolute;
175
+ visibility: hidden;
176
+ }
177
+ `;for(let a=n;a<i+1;a+=1){let i=a===n?0:a*t;l+=`
178
+ @media (min-width: ${i}px) and (max-width: ${(a+1)*t-1}px) {
179
+ .gridCentered {
180
+ width: ${a*t}px;
181
+ }
182
+ .gridCentered .static:nth-child(-n+${a}) {
183
+ position: static !important;
184
+ visibility: visible !important;
185
+ float: ${e?"right":"left"};
186
+ display: block;
187
+ }
188
+ }
189
+ `}return l}i.d(t,{Z:()=>n})},373420:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var n=i(667294),l=i(883119),a=i(968121),r=i(124580),o=i(223815),s=i(785893);function d({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:i,allowClickAndDrag:d,allowMediaPlay:u,allowScroll:c,children:p,closeOnOutsideClick:h,footer:_,heading:m,onDismiss:g,role:y,size:v,subHeading:f}){return(0,n.useEffect)(()=>(r.Z.pause(),function(){r.Z.resume()}),[]),(0,s.jsx)(l.mh,{zIndex:a.b7,children:(0,s.jsx)(o.Z,{allowClickAndDrag:d,allowEsc:!0,allowMediaPlay:u,allowScroll:c,children:(0,s.jsx)(l.u_,{_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:i,closeOnOutsideClick:h,heading:m,footer:_,onDismiss:()=>{r.Z.resume(),g()},role:y,size:v,subHeading:f,padding:"none",children:p})})})}},430322:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var n=i(667294),l=i(883119),a=i(283698),r=i(968121),o=i(898781),s=i(124580),d=i(780280),u=i(223815),c=i(867820),p=i(50286),h=i(965900),_=i(785893);let m=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}},g=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}};function y({accessibilityModalLabel:e,align:t="center",allowClickAndDrag:i,allowScroll:y=!1,children:v,closeOnOutsideClick:f=!0,footer:x,heading:b,isOpen:P,mobileAccessibilityCloseIconLabel:w,mobileHideCloseIcon:S,mobileIsFooter:k,mobileIsFullscreen:j,mobileIsSlideUp:A,onDismiss:C,subHeading:D,type:E,zIndex:I}){let T=(0,o.ZP)(),{isRTL:F}=(0,d.B)(),z=(0,n.useRef)(!1),[R,L]=(0,n.useState)(!1),{setAppFocusState:M}=(0,h.I)(),Z=(0,p.ZP)();return((0,n.useEffect)(()=>{(0,c.My)(`mweb_unauth.mobile_modal.${E||"unknown_type"}.did_mount.is_open.${String(!!P)}`)},[P,E]),(0,n.useEffect)(()=>(z.current=(0,a.Z)(()=>{z.current&&L(!0)}),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&z.current&&(window.cancelAnimationFrame(z.current),z.current=null)}),[]),(0,n.useEffect)(()=>(P?(s.Z.pause(),M(!1)):(s.Z.resume(),M(!0)),()=>{P&&(s.Z.resume(),M(!0))}),[M,P]),(0,n.useEffect)(()=>{let e=P&&!y;return e&&m(),()=>{e&&g()}},[P,y]),P)?(0,_.jsx)(u.Z,{allowClickAndDrag:i,children:(0,_.jsx)(l.mh,{children:(0,_.jsxs)(l.xu,{"aria-label":e,display:"inlineBlock",zIndex:I||r.ZM,position:"relative",role:"dialog",children:[(0,_.jsx)(l.iP,{accessibilityLabel:T._('Mobile Signup Modal Mask', 'mweb.signup_modal.mask', 'The accessibility label for the mask of mobile signup modal'),onTap:({event:e})=>{e.clientX&&e.clientY&&(0,c.tj)(`mweb_unauth.mobile_modal.wash_tap.${E||"unknown_type"}.with_dismissal`,{x:e.clientX,y:e.clientY}),f&&C()},tapStyle:"none",children:(0,_.jsx)(l.xu,{height:"100%",left:!0,position:"fixed",top:!0,width:"100%",zIndex:new l.Ry(1),dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, .5)",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out"}}})}),(0,_.jsxs)(l.xu,{position:"fixed",color:"default","data-test-id":"mobile-signup-mask",dangerouslySetInlineStyle:A?(0,r.Vf)({isFullscreen:j,isTablet:"tablet"===Z,isShowing:R,isRelatedInterestsModal:"related_interests_modal"===E}):(0,r.JN)({variant:j?"fullscreen":"tablet"===Z?"tablet":k?"footer":"signup"===E?"signup":void 0}),children:[(0,_.jsxs)(l.kC,{alignItems:"center",justifyContent:"start",width:"100%",gap:{row:2,column:0},children:[w&&!S?(0,_.jsx)(l.xu,{padding:2,"data-test-id":"mobile-modal-cancel-button",children:(0,_.jsx)(l.hU,{accessibilityLabel:w,iconColor:"darkGray",icon:"cancel",onClick:C,padding:4,size:"sm"})}):null,b?(0,_.jsx)(l.kC.Item,{flex:"grow",children:(0,_.jsx)(l.kC,{direction:"column",alignItems:"center",justifyContent:"center",children:(0,_.jsxs)(l.xu,{"data-test-id":"mobile-modal-heading",dangerouslySetInlineStyle:{__style:w&&!S?{marginRight:F?-10:50,marginLeft:F?50:-10}:{}},children:[j?b:(0,_.jsx)(l.xv,{align:t,weight:"bold",size:"400",children:b}),D?(0,_.jsx)(l.xv,{align:t,children:D}):null]})})}):null]}),(0,_.jsxs)(l.xu,{overflow:"auto",children:[v,x]})]})]})})}):null}},499128:(e,t,i)=>{"use strict";i.d(t,{UZ:()=>d,Vg:()=>s,ZP:()=>u});var n=i(667294),l=i(883119),a=i(50286),r=i(829407),o=i(785893);let s=200,d=({deviceType:e,hiding:t,visible:i})=>{let n="desktop"===e,l=0,a=n?"translateY(200px)":"translateY(-200px)",r="opacity 0.1s ease-in-out",o="hidden";return i&&!t&&(l=1,a="translateY(0)",r="all 0.7s cubic-bezier(.19, 1.15, .48, 1)",o="visible"),i&&t&&(a="scale(1.1)",r="opacity transform 0.2s"),{opacity:l,pointerEvents:"auto",position:"relative",marginTop:n?10:0,transform:a,transition:r,visibility:o}};function u({_dangerouslySetThumbnail:e,_dangerouslySetPrimaryAction:t,text:i,primaryAction:u,dismissButton:c,helperLink:p,thumbnail:h,type:_,dataTestId:m,duration:g=2e3,onHide:y,href:v,onClick:f,openNewPage:x,imageUrl:b}){var P;let w;let S=(0,a.ZP)(),[k,j]=(0,n.useState)(!1),[A,C]=(0,n.useState)(!1),D=(0,n.useRef)(),E=()=>{j(!0),D.current=setTimeout(y,s)},I=()=>{D.current=setTimeout(E,g)},T=()=>{D.current&&clearTimeout(D.current)};(0,r.Z)(()=>(setTimeout(()=>C(!0),100),I(),T)),b&&(w={image:(0,o.jsx)(l.Ee,{alt:"string"==typeof i?i:`${i[0]} ${i[1]}`,fit:"cover",naturalHeight:1,naturalWidth:1,src:b})});let F=(0,o.jsx)(l.FN,{_dangerouslySetThumbnail:e,_dangerouslySetPrimaryAction:t,primaryAction:u,text:i,thumbnail:null!==(P=w)&&void 0!==P?P:h,type:_,dismissButton:c,helperLink:p}),{marginTop:z,opacity:R,pointerEvents:L,position:M,transform:Z,transition:B,visibility:O}=d({deviceType:S,hiding:k,visible:A});return(0,o.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{transform:Z,transition:B,visibility:O,pointerEvents:L}},"data-test-id":null!=m?m:"toast",onMouseEnter:T,onMouseLeave:I,opacity:R,position:M,marginTop:z,display:"flex",children:v?(0,o.jsx)(l.Tg,{href:v,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{v.startsWith("#")&&(e.preventDefault(),t()),null==f||f(e)},target:x?"blank":null,rounding:"pill",children:F}):F})}},356997:(e,t,i)=>{"use strict";i.d(t,{qE:()=>o,u_:()=>s.ZP});var n=i(883119),l=i(785893);let a=(e,t)=>{let i=null==e?void 0:e.includes("images/user/default");return!!(i&&t)};function r({accessibilityLabel:e,name:t,outline:i,size:r,src:o,verified:s}){return(0,l.jsx)(n.qE,{accessibilityLabel:e,name:t,outline:i,size:r,src:a(o,t)?void 0:o,verified:s})}r.displayName="Avatar";let o=r;var s=i(121151);i(499128)},934494:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(667294),l=i(995228),a=i(785893);function r({useGraphQLAdapter:e,useLegacyAdapter:t}){let i=({children:t,data:i})=>t({enabled:!0,data:e(i)}),r=({children:e,data:i})=>e({enabled:!1,data:t(i)});return function({children:e,input:t}){var o;let s=t.enabled?(0,a.jsx)(i,{data:t.data,children:e}):(0,a.jsx)(r,{data:t.data,children:e}),d=null!==(o=t.suspense)&&void 0!==o&&o.dangerouslyServerRender?n.Suspense:l.Z;return t.suspense?(0,a.jsx)(d,{fallback:t.suspense.fallback,children:s}):s}}},916117:(e,t,i)=>{"use strict";i.d(t,{u:()=>o});var n=i(422578),l=i(178467),a=i(273213),r=i(681669);function o(e,t){if(null==t)return{data:null};let i=(0,a.B)(t);if("deprecated"===i.type){let{data:t}=i;if(null==t)return{data:null};{let i=(0,r.O7)();return{data:(0,l.ZP)({conditionContext:i,fragment:e,legacyData:t})}}}let o=(0,n.useFragment)(e,i.data);return{data:o}}},444445:(e,t,i)=>{"use strict";i.d(t,{$H:()=>r,$q:()=>f,D6:()=>d,KN:()=>b,Lo:()=>l,OS:()=>h,P2:()=>g,Wv:()=>x,ZZ:()=>c,g5:()=>p,jC:()=>o,lX:()=>m,nW:()=>_,oX:()=>y,qG:()=>v,tG:()=>a,yF:()=>n,yc:()=>u,yt:()=>s});let n=236,l=2*n/3,a=175,r=24,o=4,s=8,d=2,u=2,c=14,p=16,h=5,_=12,m=16,g=24,y=16,v=-1,f=(e=!1,t=!1)=>e?t?m:_:g,x=({contentVisibleItemCount:e,gap:t,width:i})=>e||i?(i-(e-1)*t)/e:n,b=(e,t,i,n,l=c)=>{let a=e+l,r=`
190
+ @media (min-width: ${t*a}px) and (max-width: ${(i+1)*a-1}px) {
191
+ ${n}
192
+ }
193
+ `;return r}},694379:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(892819),l=i(780280),a=i(785893);let r=({currency:e,maximumFractionDigits:t,minimumFractionDigits:i,shortform:r,shortformMaximumFractionDigits:o,formatStyle:s,uplimit:d,value:u})=>{let c=(0,n.Z)();return(0,a.jsx)(l.LC,{children:n=>c(n.locale||"en-US",u,{currency:e,maximum_fraction_digits:t,minimum_fraction_digits:i,shortform:r,shortform_maximum_fraction_digits:o,style:s,uplimit:d})})}},298361:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(202139),l=i(898781),a=i(349700);function r(){let e=(0,l.ZP)();return function(t,i){let l=new Date(t),r=new Date,o=r-l,s=Math.floor(o/n.FS),d=Math.floor(o/n.UK),u=Math.floor(o/n.F4),c=Math.floor(o/n.VL),p=Math.floor(o/n.N1),h=e.ngettext('{{ minutes }} minute ago', '{{ minutes }} minutes ago', s, ' - ', ' -- '),_=e.ngettext('{{ hours }} hour ago', '{{ hours }} hours ago', d, ' - ', ' -- '),m=e.ngettext('{{ days }} day ago', '{{ days }} days ago', u, ' - ', ' -- '),g=e.ngettext('{{ weeks }} week ago', '{{ weeks }} weeks ago', c, ' - ', ' -- '),y=e.ngettext('{{ years }} year ago', '{{ years }} years ago', p, ' - ', ' -- '),v=e.ngettext('{{ minutes }}m', '{{ minutes }}m', s, 'minutes ago abbreviated', 'minutes ago abbreviated'),f=e.ngettext('{{ hours }}h', '{{ hours }}h', d, 'hours ago abbreviated', 'hours ago abbreviated'),x=e.ngettext('{{ days }}d', '{{ days }}d', u, 'days ago abbreviated', 'days ago abbreviated'),b=e.ngettext('{{ weeks }}w', '{{ weeks }}w', c, 'weeks ago abbreviated', 'weeks ago abbreviated'),P=e.ngettext('{{ years }}y', '{{ years }}y', p, 'years ago abbreviated', 'years ago abbreviated');return p>0?(0,a.nk)(i?P:y,{years:p}).join(""):c>0?(0,a.nk)(i?b:g,{weeks:c}).join(""):u>0?(0,a.nk)(i?x:m,{days:u}).join(""):d>0?(0,a.nk)(i?f:_,{hours:d}).join(""):s>0?(0,a.nk)(i?v:h,{minutes:s}).join(""):e._('Just now', ' - ', ' -- ')}}},366428:(e,t,i)=>{"use strict";i.d(t,{F:()=>s,Z:()=>o});var n=i(667294),l=i(407043),a=i(124580);let r={ActivationCard:{impressionType:"activationCardImpressions",idType:"experienceIdStr",eventType:8547},Article:{impressionType:"articleImpressions",idType:"articleIdStr",eventType:3829},Banner:{impressionType:"bannerImpressions",idType:"userIdStr",eventType:9061},Board:{impressionType:"boardImpressions",idType:"boardIdStr",eventType:3700},Comment:{impressionType:"commentImpressions",idType:"commentIdStr",eventType:9127},Guide:{impressionType:"guideImpressions",idType:"term",eventType:7573},Interest:{impressionType:"topicImpressions",idType:"topicIdStr",eventType:3703},News:{impressionType:"newsHubData",idType:"newsIdStr",eventType:4110},OneBar:{impressionType:"oneBarImpressions",idType:"onebarIdStr",eventType:9993},Pin:{impressionType:"pinImpressions",idType:"pinIdStr",eventType:18},Search:{impressionType:"searchImpressions",idType:"term",eventType:3803},Story:{impressionType:"storyImpression",idType:"idStr",eventType:170},TodayArticle:{impressionType:"todayArticleImpressions",idType:"todayArticleIdStr",eventType:8569},User:{impressionType:"userImpressions",idType:"userIdStr",eventType:3704},AdsPreview:{impressionType:"AdsPreviewImpression",idType:"AdsPreviewStr",eventType:8600}};function o({carouselData:e,closeupImpressionType:t,closeupNavigationType:i,componentType:o,contextLogData:s,clientTrackingParams:d,elementType:u,impressionAuxFields:c,inImpressionExp:p,impressionType:h,impressionsFramework:_,isPaused:m,loggingId:g,objectIdStr:y,slotIndex:v,trackCarousel:f,viewData:x,viewParameter:b,viewType:P}){let{logContextEvent:w}=(0,l.v)(),S=_||a.Z,k=(0,n.useRef)(null),j=n=>{var l,a,p,_,m,S,j;let A=r[h],C=A.idType,D={clientTrackingParams:d,endTime:n.endTime,[C]:g,slotIndex:v,time:n.startTime,renderDuration:n.endTime-n.startTime,type:t,...c,forcedExit:"removed"===n.forcedExit?0:void 0};"Pin"===h&&(D={...D,pinCellWidth:(null===(l=k.current)||void 0===l?void 0:l.getBoundingClientRect().width)||0,pinCellHeight:(null===(a=k.current)||void 0===a?void 0:a.getBoundingClientRect().height)||0,windowWidth:null===(p=window)||void 0===p?void 0:p.innerWidth,windowHeight:null===(_=window)||void 0===_?void 0:_.innerHeight});let E={component:o,object_id_str:y,view_type:P,view_data:x||{},view_parameter:b};f?e&&w({event_type:7352,event_data:{pinCarouselSlotImpressions:[{...D,carouselDataId:Number(e.id),carouselSlotId:(null===(m=e.carousel_slots)||void 0===m?void 0:m[null!==(S=e.index)&&void 0!==S?S:0])&&Number(e.carousel_slots[null!==(j=e.index)&&void 0!==j?j:0].id),slotIndex:e.index}]},...E,aux_data:{...s}}):w({clientTrackingParams:d,event_type:A.eventType,...E,element:u,event_data:{[A.impressionType]:"Story"===h?D:[D]},aux_data:{closeup_navigation_type:i,...s}})},A=(0,n.useCallback)(()=>{try{k.current instanceof HTMLElement&&S.start(k.current).onExitViewport(j).setDebugId(g||"unknown")}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}},[k.current]);(0,n.useEffect)(()=>(p&&!S.inExperiment&&S.setExperimentStatus(!0),m||A(),()=>{k.current instanceof HTMLElement&&S.stop(k.current)}),[A]);let C=(0,n.useRef)(m);return(0,n.useEffect)(()=>{C.current&&!m&&A(),C.current=m},[m,A]),k}let s=({children:e,...t})=>e({impressionTrackerRef:o(t)})},615568:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(667294),l=i(407043),a=i(704115),r=i(19121),o=i(357787),s=i(785893);function d(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let u=(0,a.Z)()&&(0,a.Z)().debug_impression_log,c={Article:{impressionType:"articleImpressions",idType:"articleIdStr",eventType:3829},Pin:{impressionType:"pinImpressions",idType:"pinIdStr",eventType:18},Board:{impressionType:"boardImpressions",idType:"boardIdStr",eventType:3700},Interest:{impressionType:"topicImpressions",idType:"topicIdStr",eventType:3703},Search:{impressionType:"searchImpressions",idType:"term",eventType:3803},User:{impressionType:"userImpressions",idType:"userIdStr",eventType:3704},News:{impressionType:"newsHubData",idType:"newsIdStr",eventType:4110},Story:{impressionType:"storyImpression",idType:"idStr",eventType:170},Guide:{impressionType:"guideImpressions",idType:"term",eventType:7573},ActivationCard:{impressionType:"activationCardImpressions",idType:"experienceIdStr",eventType:8547},Banner:{impressionType:"bannerImpressions",idType:"userIdStr",eventType:9061}};function p(e){let t=(0,o.Z)(e);class i extends n.Component{constructor(...e){super(...e),d(this,"currentNs",()=>1e6*Date.now()),d(this,"startTime",0),d(this,"debugPinImpressions",u&&"Pin"===this.props.impressionType&&this.props.viewer.isAuth&&this.props.viewer.isEmployee),d(this,"handleVisibilityChanged",e=>{let{componentType:t,contextLogData:i,impressionAuxFields:n,impressionType:l,loggingId:a,slotIndex:r,viewParameter:o,viewType:s,viewData:d,logContextEvent:u}=this.props;if(e)this.startTime=this.currentNs(),this.debugPinImpressions&&console.log(r+" started timer");else{let e=c[l],p=e.idType,h=this.currentNs(),_={endTime:h,[p]:a,slotIndex:r,time:this.startTime,renderDuration:h-this.startTime,...n};u({event_type:e.eventType,component:t,event_data:{[e.impressionType]:[_]},view_type:s,view_parameter:o,view_data:d,aux_data:{...i}}),this.debugPinImpressions&&console.log(r+" logged for "+(h-this.startTime)/1e9+"s")}})}render(){return(0,s.jsx)(t,{onVisibilityChanged:this.handleVisibilityChanged,...this.props})}}return function(e){let{logContextEvent:t}=(0,l.v)(),n=(0,r.Z)();return(0,s.jsx)(i,{...e,viewer:n,logContextEvent:t})}}},543972:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(667294);function l(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class a extends n.Component{constructor(...e){super(...e),l(this,"ref",(0,n.createRef)()),l(this,"observer",null),l(this,"handleVisibilityChanged",(e,t)=>{this.props.onVisibilityChange(e,t)})}componentDidMount(){this.ref&&this.ref.current&&(this.observer=new window.IntersectionObserver(this.handleVisibilityChanged,this.props.options),this.observer.observe(this.ref.current))}componentWillUnmount(){null!==this.observer&&(this.observer.unobserve(this.ref.current),delete this.observer)}render(){return this.props.children(this.ref)}}let r=a},507712:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(186656),l=i(826067);let a=(e=()=>{})=>{let t=(0,l.mB)(window.location.search),{invite_code:i}=t;if(!i){e(t);return}let a=encodeURIComponent(i),r=encodeURIComponent(a);(0,n.Z)({url:"/v3/invite_code/attribution/land/",method:"POST",data:{invite_code:r}})}},496793:(e,t,i)=>{"use strict";i.d(t,{U:()=>y});var n=i(67347);let l="nic_v3",a=`${l}=1a`,r=`${l}=1b`,o=[a,r],s=["invite_code","invite","board_invite_code","sender"],d=e=>!!s.find(t=>e.includes(t)),u=e=>!!o.find(t=>e.includes(t)),c=e=>e.pathname.includes("/pin/")&&!d(e.search)&&!u(e.search),p=e=>e.includes("sender"),h=e=>!d(e)&&!p(e)&&e.includes(l),_=(e,t,i)=>{let n=e.search?"&":"?",l=e.pathname+e.search+(n+(i?r:a)+t);return l},m=(e,t,i=!1,a)=>{if(!c(e))return;let r=i?"mweb":"web";if(!t){(0,n.nP)(`${r}.${l}.social_tracking_pin_non_invite.insert.no_encrypted_id`);return}(0,n.nP)(`${r}.${l}.social_tracking_pin_non_invite.insert.attempt`);try{let o=_(e,t,i);(0,n.nP)(`${r}.${l}.social_tracking_pin_non_invite.insert.success`),a(o)}catch(e){(0,n.nP)(`${r}.${l}.social_tracking_pin_non_invite.insert.caught_exception`)}},g=(e,t,i=!1,n)=>m(e,"",i,n),y=(e,t,i,a,r)=>{let o=i?"mweb":"web";(0,n.nP)(`${o}.${l}.social_tracking_pin_non_invite.attempt`);try{!i&&a&&c(e)?((0,n.nP)(`${o}.${l}.social_tracking_pin_non_invite.search_string_eligible`),g(e,t,i,r)):h(e.search)&&(0,n.nP)(`${o}.${l}.social_tracking_pin_non_invite.search_string_land`)}catch(e){(0,n.nP)(`${o}.${l}.social_tracking_pin_non_invite.caught_exception`)}}},995081:(e,t,i)=>{"use strict";i.d(t,{Rq:()=>a,Vf:()=>r,ab:()=>d,jd:()=>o,k8:()=>c,nw:()=>u,oy:()=>s});var n=i(231486),l=i(226198);let a=e=>"ios"===e&&(window.devicePixelRatio||1)*window.screen.height==2436,r=28,o=e=>window.innerHeight>=748&&a(e),s=function(){return"undefined"!=typeof window&&!!window.navigator&&(/iPad/.test(navigator.platform)||navigator.maxTouchPoints>1&&"MacIntel"===navigator.platform)},d=()=>{n.t8(l.oj,String(!0),(0,n.kZ)(l.oj))},u=()=>!!n.U2(l.oj),c=e=>{if(s()){let t=u();e.experimentsClient.flush(),t||(d(),"undefined"!=typeof window&&window.location.reload(!0))}}},329734:(e,t,i)=>{"use strict";i.d(t,{P:()=>a,Z:()=>l});var n=i(702664);function l(e){return e&&e[1000069]&&500417===e[1000069].experience_id&&e[1000069].display_data.hide_footer}function a(){let e=(0,n.useSelector)(({experiences:e})=>e);return!!e&&l(e)}},926275:(e,t,i)=>{"use strict";function n(e){if(!e)return!1;let t=new Date(e);return t.setDate(t.getDate()+28),new Date().getTime()<t.getTime()}i.d(t,{Z:()=>n})},844753:(e,t,i)=>{"use strict";function n(e){return"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e)}i.d(t,{Z:()=>n})},411938:(e,t,i)=>{"use strict";function n(e,t,i=28){let n;if(!(e||{}).resurrection_info&&!(t||{}).resurrectionInfo)return!1;n=t?((t||{}).resurrectionInfo||{}).resurrectionDate:((e||{}).resurrection_info||{}).resurrection_dt;let l=new Date,a=n?new Date(n):l;return a.setDate(a.getDate()+i),new Date().getTime()<a.getTime()}i.d(t,{Z:()=>n})},313047:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DEFAULT_HEIGHT:()=>p,DEFAULT_PADDING_Y:()=>h,FixedFooter:()=>g,FixedHeader:()=>m});var n=i(667294),l=i(883119),a=i(643010),r=i(579014),o=i(858472),s=i(124580),d=i(834256),u=i(773285),c=i(785893);let p=64,h=3;function _({children:e,footerConfig:t,headerConfig:i,height:d,hideOnScroll:_,hideOnScrollState:{isHidden:m,updateHiddenState:g},noPadding:y,paddingY:v=h,type:f,zIndex:x}){let b,P;let{headerLimitedOverflow:w,ignoreObstructions:S,zIndexForGestaltBug:k}=i||{},{appUpsellFooterConfig:j,footerInLego:A,navFooterConfig:C}=t||{},D=!!j,E="header"===f?"top":"bottom",{anyEnabled:I}=(0,u.F)().checkExperiment("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),T=(0,a.vs)(),F=I?T:(0,a.Yc)(),z=(0,n.useRef)(null),R=(0,n.useRef)(null);(0,n.useEffect)(()=>{try{if(!S){let e=z.current;R.current=w&&e&&Array.isArray(e.children)?e.children[0]:e,R.current instanceof HTMLElement&&s.Z.addObstruction(E,R.current)}}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}return()=>{!S&&R.current instanceof HTMLElement&&s.Z.removeObstruction(E,R.current)}},[S,w,E,F]);let L="top"===E?"relative":"fixed",M=(null!=d?d:p)+((null==i?void 0:i.overrideTop)||0),Z=_||C?{transition:A?"transform 300ms ease-in-out, opacity 300ms ease-in-out":"transform 200ms linear",...m?{transform:`translateY(${"top"===E?-M:M}px)`,opacity:A?0:1}:Object.freeze({})}:{},B="relative"!==L||null!=i&&i.noGutter?0:2,O=B?-B:0,N=F?"rgba(0,0,0,.95)":"rgba(255,255,255,.95)";return F&&("header"===f?b=-1:P=-1),(0,c.jsx)(l.xu,{ref:z,dangerouslySetInlineStyle:{__style:{top:b,bottomStyle:P,...!x||k?{zIndex:k||1}:Object.freeze({}),...w?{background:"transparent",overflow:"hidden",paddingBottom:100,marginBottom:-100,pointerEvents:"none"}:Object.freeze({}),...null!=i&&i.hasBorder?{borderBottom:"1px solid #efefef"}:Object.freeze({}),...null!=t&&t.hasTopShadow?{boxShadow:"0 -2px 4px 1px rgba(0, 0, 0, 0.08)"}:Object.freeze({}),...Z}},zIndex:k?void 0:x,"data-test-id":f,display:D?"flex":void 0,height:d&&!A?d:void 0,position:L,bottom:"footer"===f,top:"header"===f,left:!0,right:!0,marginStart:A?"auto":O,marginEnd:A?"auto":O,onTransitionEnd:()=>{(_||C)&&R.current&&(m?s.Z.removeObstruction(E,R.current):s.Z.addObstruction(E,R.current))},width:A||"fixed"!==L?void 0:"100%",children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:(null==i?void 0:i.isTranslucent)&&N||(null==i?void 0:i.isTransparentBackground)&&o.FZ||r.wN,height:A?D?void 0:null!=d?d:p:"100%",boxShadow:A?"0px 0px 8px rgba(0, 0, 0, 0.1)":void 0,marginBottom:A&&!(null!=C&&C.docked)?16:void 0,...w?{pointerEvents:"auto"}:Object.freeze({}),...null!=i&&i.useRoundedCorners?{zIndex:5,borderTopRightRadius:17,borderTopLeftRadius:17,borderBottomRightRadius:0,borderBottomLeftRadius:0}:Object.freeze({})}},paddingX:("footer"!==f||y?0:4)+B,paddingY:y?0:v,position:"relative",width:C?C.footerWidth:D?void 0:"100%",rounding:A&&!(null!=C&&C.docked)?"pill":void 0,display:A||null!=t&&t.alignCenter?"flex":void 0,marginStart:A?"auto":void 0,marginEnd:A?"auto":void 0,alignItems:null!=t&&t.alignCenter?"center":void 0,children:"function"==typeof e?e({updateHiddenState:g}):e})})}function m({hasBorder:e,headerLimitedOverflow:t,ignoreObstructions:i,isTranslucent:n,isTransparentBackground:a,noGutter:r,overrideTop:o,useRoundedCorners:s,zIndexForGestaltBug:u,...p}){let{noPadding:m,paddingY:g=h,zIndex:y}=p;return(0,c.jsx)(l.Le,{top:o||0,height:t?44+8*(m?0:g):void 0,zIndex:y||void 0,children:(0,c.jsx)(d.Z,{hideOnScroll:p.hideOnScroll,children:l=>(0,c.jsx)(_,{...p,hideOnScrollState:l,type:"header",headerConfig:{isTranslucent:n,isTransparentBackground:a,headerLimitedOverflow:t,hasBorder:e,ignoreObstructions:i,noGutter:r,overrideTop:o,zIndexForGestaltBug:u,useRoundedCorners:s}})})})}function g({alignCenter:e,appUpsellFooterConfig:t,footerInLego:i,hasTopShadow:n,navFooterConfig:l,...a}){return(0,c.jsx)(d.Z,{appUpsellFooterConfig:t,hideOnScroll:a.hideOnScroll,navFooterConfig:null==l?void 0:l.scrollConfig,children:r=>(0,c.jsx)(_,{...a,hideOnScrollState:r,type:"footer",footerConfig:{alignCenter:e,appUpsellFooterConfig:t,footerInLego:i,hasTopShadow:n,navFooterConfig:l}})})}},834256:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o,m:()=>r});var n=i(667294),l=i(700380);function a(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let r=20;class o extends n.Component{constructor(...e){var t;super(...e),a(this,"state",{isHidden:!!this.props.appUpsellFooterConfig||!!(null!==(t=this.props.navFooterConfig)&&void 0!==t&&t.isDockedNavOnPlp)}),a(this,"lastScrollPos",0),a(this,"updateHiddenState",e=>{this.reqAnimationId=window.requestAnimationFrame(()=>{this.setState({isHidden:e})})}),a(this,"handleScroll",(0,l.Z)(()=>{var e;let{appUpsellFooterConfig:t,navFooterConfig:i}=this.props,{isHidden:n}=this.state,l=window.scrollY,a=l-this.lastScrollPos,o="none",{scrollHeight:s,clientHeight:d}=document.documentElement||{};if(!Number.isNaN(s)&&!Number.isNaN(d)){if(a<0){let e=window.scrollMinY||0,t=Math.abs(e+Math.max(a,r));o=l<=t?"start":"none"}else{let e=window.scrollMaxY||s-d,t=e-Math.max(a,r);o=l>=t?"end":"none"}}let u=null!=i&&i.isModal?0:55;if(t){if(a>r&&n&&l>=500){let e=t.shouldShowAfterScroll();e&&(this.updateHiddenState(!1),null==i||i.onScroll(!1))}else(a<-r&&!n||l<=u)&&(this.updateHiddenState(!0),null==i||i.onScroll(!0))}else null!==(e=this.props.navFooterConfig)&&void 0!==e&&e.isDockedNavOnPlp?"start"===o&&!n||l<=u?(this.updateHiddenState(!0),null==i||i.onScroll(!0)):(l>u||"end"===o)&&n&&(this.updateHiddenState(!1),null==i||i.onScroll(!1)):(a<-r||"start"===o)&&n||l<=u?(this.updateHiddenState(!1),null==i||i.onScroll(!1)):(a>r||"end"===o)&&!n&&(this.updateHiddenState(!0),null==i||i.onScroll(!0));this.lastScrollPos=l},30))}componentDidMount(){try{var e;(this.props.hideOnScroll||null!==(e=this.props.navFooterConfig)&&void 0!==e&&e.isDockedNavOnPlp)&&window.addEventListener("scroll",this.handleScroll)}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}}componentWillUnmount(){var e;(this.props.hideOnScroll||null!==(e=this.props.navFooterConfig)&&void 0!==e&&e.isDockedNavOnPlp)&&window.removeEventListener("scroll",this.handleScroll),this.reqAnimationId&&(window.cancelAnimationFrame(this.reqAnimationId),this.reqAnimationId=null)}componentDidUpdate(e){var t,i,n,l;!e.hideOnScroll&&this.props.hideOnScroll||!(null!==(t=e.navFooterConfig)&&void 0!==t&&t.isDockedNavOnPlp)&&null!==(i=this.props.navFooterConfig)&&void 0!==i&&i.isDockedNavOnPlp?(this.updateHiddenState(!0),window.addEventListener("scroll",this.handleScroll)):(e.hideOnScroll&&!this.props.hideOnScroll||null!==(n=e.navFooterConfig)&&void 0!==n&&n.isDockedNavOnPlp&&!(null!==(l=this.props.navFooterConfig)&&void 0!==l&&l.isDockedNavOnPlp))&&(this.updateHiddenState(!1),window.removeEventListener("scroll",this.handleScroll))}render(){let{children:e,navFooterConfig:t}=this.props,{isHidden:i}=this.state,n=!(null!=t&&t.forceShow)&&i;return e({isHidden:n,updateHiddenState:this.updateHiddenState})}}},166300:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(883119),l=i(444445),a=i(134879),r=i(50286),o=i(785893);let s=({children:e,roundedForLargeDevice:t})=>{let i=(0,r.ZP)(),s="phone"!==i&&t;return(0,a.V)()?(0,o.jsx)(n.xu,{marginStart:-l.D6,marginEnd:-l.D6,rounding:s?6:void 0,overflow:s?"hidden":void 0,children:(0,o.jsx)(a.C,{value:!1,children:e})}):e}},542554:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var n=i(883119),l=i(444445),a=i(995081),r=i(134879),o=i(780280),s=i(785893);let d=({children:e,dataLayoutShiftBoundaryId:t,hasFixedHeader:i=!1,hasGutter:d=!0,height:u,showKeychainError:c=!1,useViewport:p=!1})=>{let h=(0,o.B)(),_=(0,a.jd)(h.userAgent.platform)?a.Vf:0;return(0,s.jsx)(n.xu,{"data-layout-shift-boundary-id":t||"PageContainer",height:p?`calc(100vh - ${_}px)`:u,paddingX:d?l.D6:void 0,paddingY:i||c?void 0:3,children:(0,s.jsx)(r.C,{value:!!d,children:e})})}},134879:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,V:()=>r});var n=i(667294);let l=(0,n.createContext)(!1),a=l.Provider,r=()=>(0,n.useContext)(l)},48714:(e,t,i)=>{"use strict";i.d(t,{Se:()=>y,iw:()=>f,gV:()=>m,G3:()=>x,Gj:()=>v,Jd:()=>_,$3:()=>g});var n=i(56641),l=i(231486),a=i(226198),r=i(186656),o=i(250059);let s=e=>"string"!=typeof e&&e?e.state:null;var d=i(643913),u=i(547239),c=i(508847),p=i(579164),h=i(333155);let _=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},m=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),g=({location:e,pinId:t,surface:i})=>!!i&&!h.ZF.includes(i)||e.pathname.includes(t),y=(e,t)=>{var i,n;let r=Math.round(1e3*Math.random())+"",o=Math.round(1e3*Math.random())+"";l.t8((0,a.GS)(r),o);let s={token:`${r}-${o}`,url:e,...t&&!t.params?t.queryParams:(null==t?void 0:t.params)&&{pin:null!==(i=t.params.pinId)&&void 0!==i?i:void 0,isThirdPartyAd:null!==(n=t.params.isThirdPartyAd)&&void 0!==n?n:void 0,csr:t.params.csrId&&!t.params.pinId?t.params.csrId:void 0,client_tracking_params:t.params.clientTrackingParams,aux_data:t.params.auxData?JSON.stringify(t.params.auxData):void 0}};return`/offsite/?${(0,d.Z)(s)}`},v=(e,t)=>{(0,n.Z)(y(e,t),!0,null==t?void 0:t.features)},f=async({clientTrackingParams:e,href:t,isMounted:i,pinId:n,spamCheckCallback:l})=>{let a=await (0,r.Z)({url:"/v3/offsite/",data:{check_only:!0,client_tracking_params:e,pin_id:n,url:t}});if(!a.resource_response.error&&i){let e=a.resource_response.data||{},{message:t,redirect_status:i,url:n}=e,r=["blocked","suspicious","porn"].includes(i);l({blocked:r,message:t,redirectStatus:i,sanitized_url:n})}},x=({event:e,onHistoryChange:t,href:i,history:l,target:a})=>{let r=(0,o.Z)(i),d=s(i),h=(0,u.Z)(r);h===p.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===a?(0,n.Z)(r,"blank"===a):l&&h===p.Z.SAME_ORIGIN&&(l.push((0,c.Z)({url:r}),null!=d?d:{}),t&&t({event:e}))}},287072:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(667294),l=i(616550),a=i(768559),r=i(48714),o=i(188335),s=i(250059),d=i(149230),u=i(108234),c=i(67347);function p(e){var t,i,p;let{externalData:h,href:_,onHistoryChange:m,target:g}=e,[y,v]=(0,n.useState)(null),[f,x]=(0,n.useState)(!1),b=(0,l.useHistory)(),P=(0,l.useLocation)(),w=(0,s.Z)(_),S=(0,d.Z)({url:w}),{showWarning:k}=null!==(t=(0,u.s)())&&void 0!==t?t:{},{pin:j,surface:A}=h||{},C=j?(0,a.Z)({boardUrl:null===(i=j.board)||void 0===i?void 0:i.url,location:P,pinId:j.entityId,pinnerUserName:null===(p=j.pinner)||void 0===p?void 0:p.username,storyPinDataId:j.storyPinDataId,trackingParams:j.trackingParams,trackingParamsMap:j.trackingParamsMap}):null,D=(0,o.Z)();return(0,n.useEffect)(()=>(x(!0),()=>{x(!1)}),[]),(0,n.useEffect)(()=>{S&&j&&null===y&&f&&(!j.promoter||j.isDownstreamPromotion)&&(0,r.$3)({location:P,pinId:j.entityId,surface:A})&&(0,r.iw)({clientTrackingParams:C,isMounted:f,pinId:j.entityId,spamCheckCallback:e=>v(e),href:w})},[C,j,A,w,S,f,P,y]),({event:e})=>{if(!(0,r.gV)({isOffsiteUrl:S,event:e})){if(e.preventDefault(),!_||"string"==typeof _&&_.startsWith("#")){(0,c.nP)("link_navigation_empty_href",{sampleRate:1,tags:{route:P.pathname,href:_}});return}if(S||null!=h&&h.dangerouslyForceOffsiteUrl){var t;D({auxData:null==h?void 0:h.auxData,clientTrackingParams:C,pin:(null==h?void 0:h.pin)&&{attributionSourceId:h.pin.attributionSourceId,campaignId:h.pin.campaignId,isPromoted:h.pin.isPromoted,pinPromotionId:h.pin.pinPromotionId,isThirdPartyAd:h.pin.isThirdPartyAd,advertiserId:h.pin.advertiserId},pinId:null==h?void 0:null===(t=h.pin)||void 0===t?void 0:t.entityId,queryParams:null==h?void 0:h.queryParams,showWarning:k,spamCheck:y,url:w})}else(0,r.G3)({event:e,href:_,history:b,onHistoryChange:m,target:"blank"===g?"blank":null})}}}},188335:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(983722),l=i(619937),a=i(337815),r=i(366284),o=i(407043),s=i(48714),d=i(43760);let u=(e,t,i)=>{let n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener nofollow noreferrer"),n.style.cursor="pointer",n.style.display="block",n.setAttribute(l.$N.ATTRIBUTION_SOURCE_ID,e),n.setAttribute(l.$N.ATTRIBUTE_DESTINATION,i),n.setAttribute(l.$N.ATTRIBUTE_ON,i),n.click()},c=(e,t,i,n,r)=>{let o=(0,a.m_)(e,i,!0,n,r),s=document.createElement("a");s.setAttribute("href",t),s.setAttribute("target","_blank"),s.setAttribute("rel","noopener nofollow noreferrer"),s.style.cursor="pointer",s.style.display="block",s.setAttribute(l.NR.SOURCE,o),s.click()},p=()=>{let{logContextEvent:e}=(0,o.v)();return({attributionSourceId:t,auxData:i,campaignId:l,clientTrackingParams:a,href:o,isPromoted:d,pinId:p,pinPromotionId:h,isThirdPartyAd:_,advertiserId:m})=>{var g,y,v;if(!d)return!1;let f=(0,n.Z)(),x=(0,s.Se)(o,{params:{pinId:p,csrId:null,clientTrackingParams:a,auxData:i,isThirdPartyAd:_}}),b=null!==(g=null==f?void 0:f.userAgent.browserName)&&void 0!==g?g:"";if((0,r.G6)(b)){let{group:i}=null!==(y=null==f?void 0:f.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==y?y:{},n=null!=f&&f.userAgent.browserVersion?f.userAgent.browserVersion:"0.0",r=parseFloat(n.split(".")[0]+"."+n.split(".")[1]);if(t&&r>=14.1&&["enabled_safari"].includes(i))return u(t,x,o),e({event_type:101,clientTrackingParams:a,object_id_str:p||"",aux_data:{pin_id:p||"",click_measurement_ppid:h||"",click_measurement_campaign_id:l||"",is_pcm:!0,attribution_source_id:t,page_url:o}}),!0}else if((0,r.i7)(b)&&null!==(v=window.document.featurePolicy)&&void 0!==v&&v.allowsFeature("attribution-reporting"))return c(t,x,o,l,m),e({event_type:101,clientTrackingParams:a,object_id_str:p||"",aux_data:{pin_id:p||"",click_measurement_ppid:h||"",click_measurement_campaign_id:l||"",is_arapi:!0,attribution_source_id:t,page_url:o}}),!0;return!1}},h=e=>{let t=p();return({auxData:i,clientTrackingParams:n,pin:l,pinId:a,queryParams:r,showWarning:o,spamCheck:u,url:c})=>{if("undefined"!=typeof window&&window.Windows){(0,d.Z)(c,{clientTrackingParams:n,pinId:a,hasPin:!!l,auxData:i,isThirdPartyAd:null==l?void 0:l.isThirdPartyAd});return}if(!l&&!(null!=e&&e.isFromClickthroughLink)){(0,s.Gj)(c,r?{queryParams:r}:{params:{pinId:a}});return}if(null!=u&&u.blocked){null==o||o(u);return}l&&t({attributionSourceId:l.attributionSourceId,auxData:i,campaignId:l.campaignId?String(l.campaignId):null,clientTrackingParams:n,href:c,isPromoted:l.isPromoted,pinId:a,pinPromotionId:l.pinPromotionId?String(l.pinPromotionId):null,isThirdPartyAd:l.isThirdPartyAd,advertiserId:l.advertiserId?l.advertiserId:null})||(0,s.Gj)(c,{params:{clientTrackingParams:n,auxData:i,pinId:a,isThirdPartyAd:null==l?void 0:l.isThirdPartyAd}})}}},499659:(e,t,i)=>{"use strict";i.d(t,{Q6:()=>d,qe:()=>o,yU:()=>s});var n=i(239745);let l=(e,t)=>e.length===t.length&&e.every((e,i)=>e===t[i]),a=e=>e;function r(e,t=l,i=a){return function(n){let l=[];return function(...a){let r=l.find(e=>t(e.args,i(a)));if(r)return r.result;let o=n(...a);return l.push({args:i(a),result:o}),e&&l.length>e&&l.shift(),o}}}r();let o=r(1),s=r(void 0,l,e=>[JSON.stringify(e)]),d=r(0,(e,t)=>e.length===t.length&&e.every((e,i)=>(0,n.Z)(e,t[i])))},249647:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(844753);function l(e,t=!1){let i=(t,i)=>e(i);return e=>(function e(t,i=!1){return l=>{if(!(0,n.Z)(l))return i&&Array.isArray(l)?l.map(e(t,i)):l;let a={};return Object.keys(l).forEach(r=>{let o=t(l[r],r);(0,n.Z)(l[r])||i&&Array.isArray(l[r])?a[o]=e(t,i)(l[r]):a[o]=l[r]}),a}})(i,t)(e)}},767546:(e,t,i)=>{"use strict";i.d(t,{Z:()=>function e(t,i,n=()=>void 0){let l=n(t,i);return void 0!==l?l:void 0===i?t:Array.isArray(t)&&Array.isArray(i)?i.reduce((t,l,a)=>(t[a]=e(t[a],i[a],n),t),[...t]):t&&"object"==typeof t&&i&&"object"==typeof i?Object.keys(i).reduce((t,l)=>(t[l]=e(t[l],i[l],n),t),{...t}):i}})},750391:(e,t,i)=>{"use strict";i.d(t,{G7:()=>d,Nl:()=>c,WE:()=>s,l6:()=>u,rh:()=>o});var n=i(27255),l=i(451820),a=i(66699);let r=e=>e.checkExperiment("web_ps4p").anyEnabled;function o(e,t,i,l,a){var o,s,d,u,c,p;if(!t.isAuth)return!1;let{creatorAnalytics:h}=e,_=!!e.storyPinDataId,m=!!(null!==(o=e.videos)&&void 0!==o&&o.videoList),g=(a||!(_||m))&&0!==Object.keys((null===(s=e.aggregatedPinData)||void 0===s?void 0:null===(d=s.creatorAnalytics)||void 0===d?void 0:d._30dRealtime)||{}).length,y=(null===(u=e.board)||void 0===u?void 0:u.privacy)===n.Z.BoardPrivacy.PUBLIC,v=(null===(c=e.board)||void 0===c?void 0:c.privacy)===n.Z.BoardPrivacy.PROTECTED,f=(v||y)&&!e.isRepin&&[t.id,l].includes(null===(p=e.pinner)||void 0===p?void 0:p.entityId);return g||0!==Object.keys((null==h?void 0:h._30dRealtime)||{}).length||t.isPartner&&f||r(i)&&_&&f}function s(e,t,i,n,l,a){return e.isAuth&&!!t&&(i||n)&&!!(null!=l&&l.isLoaded)&&!a}function d(e,t){return(0,a.Z)(t.ngettext('Last {{ count }} Day', 'Last {{ count }} Days', e, 'Previous {{ count }} days from current date', 'Previous {{ count }} days from current date'),{count:e})}function u(e,t){return(0,a.Z)(t.ngettext('Last {{ count }} Hour', 'Last {{ count }} Hours', e, 'analytics.utils', 'Previous {{ count }} hours from current time'),{count:e})}function c({i18n:e,isRealtime:t,humanizedTimeSinceLastUpdate:i,displayLifetime:n,numDays:r,selectedDateRange:o,locale:s}){let d=[];if(r){let t=n?(0,a.Z)(e.ngettext('Percent changes are compared to {{n}} day before {{startDate}} \u2013 {{endDate}}.', 'Percent changes are compared to {{n}} days before {{startDate}} \u2013 {{endDate}}.', r, 'pinstats.toplineMetrics.description', 'Label describing how deltas are calculated and when performance over time metrics are updated'),{n:r,startDate:(0,l.Z)(s,o.startDate,l.k.NUMERIC),endDate:(0,l.Z)(s,o.endDate,l.k.NUMERIC)}):(0,a.Z)(e.ngettext('Percent changes are compared to {{n}} day before the selected date range.', 'Percent changes are compared to {{n}} days before the selected date range.', r, 'pinstats.toplineMetrics.description', 'Label describing how deltas are calculated and when performance over time metrics are updated'),{n:r});d.push(t)}return t?d.push(e._('Metrics are updated in real-time.', 'pinstats.PinnerToplineMetrics.description', 'Label describing when lifetime of pin metrics are updated')):i&&d.push((0,a.Z)(e._('Metrics updated {{ timeSince }}.', 'analytics.header.disclaimer.metricsUpdated', 'Disclaimer describing when data was last updated. timeSince: time period since last update (ex: 1 day)'),{timeSince:i})),d.join(" ")}},55275:(e,t,i)=>{"use strict";i.d(t,{P:()=>m,t:()=>g});var n=i(214494),l=i(186656);let a=()=>{};async function r({board_id:e},t,i){await (0,l.Z)({url:`/v3/boards/${e}/follow/`,method:"DELETE"}),i({event_type:27,object_id_str:e}),t()}async function o({board_id:e},t,i){await (0,l.Z)({url:`/v3/boards/${e}/follow/`,method:"POST"}),i({event_type:26,object_id_str:e}),t()}async function s(e,t){let i=n.Z.create("UserFollowResource",e);await i.callDelete(),t()}async function d(e,t){let i=n.Z.create("UserFollowResource",e);await i.callCreate(),t()}async function u(e,t,i){let l=n.Z.create("InterestFollowResource",e);await l.callDelete(),t(),i({event_type:602,object_id_str:e.interest_id})}async function c(e,t,i){let l=n.Z.create("InterestFollowResource",e);await l.callCreate(),t(),i({event_type:601,object_id_str:e.interest_id})}async function p(e,t){let i=n.Z.create("PinFeedbackResource",e);await i.callUpdate(),t()}async function h(e,t){let i=n.Z.create("PinFeedbackResource",e);await i.callUpdate(),t()}let _={complaint:p,followBoard:o,followPinner:d,followTopic:c,newsHubPinHide:function(e,t){let i=(0,l.Z)({url:e.undo?`/v3/news_hub/${e.newsId}/pin/${e.pinId}/undo/`:`/v3/news_hub/${e.newsId}/pin/${e.pinId}/hide/`,method:"PUT"});i.then(()=>t()),p({feedback_type:1,pin_id:e.pinId,...e},t)},promotedComplaint:h,relatedPinHide:function(e,t){let i=(0,l.Z)({url:e.undo?`/v3/p2p/${e.pin}/unhide/`:`/v3/p2p/${e.pin}/hide/`,method:"PUT"});i.then(()=>t()),p({feedback_type:1,pin_id:e.pin,...e},t)},reportPin:function(e,t){t()},showAdReasons:function(e,t){t()},unfollowBoard:r,unfollowPinner:s,unfollowTopic:u,unrelatedSearchPin:function(e,t){let i=(0,l.Z)({url:e.undo?`/v3/search/${e.pin_id}/unhide/`:`/v3/search/${e.pin_id}/hide/`,method:"PUT",data:{query:e.query,pin_type:e.pin_type}});i.then(()=>t()),p({feedback_type:1,...e},t)}},m=["complaint","relatedPinHide","unrelatedSearchPin","promotedComplaint","newsHubPinHide","unfollowBoard","unfollowPinner","unfollowTopic"];function g(e,t,i=a,n){let l=e?_[e]:null;return l?l(t,i,n):i()}},680046:(e,t,i)=>{"use strict";i.d(t,{EF:()=>p,Iv:()=>d,Ud:()=>s,hP:()=>o,nb:()=>c,oK:()=>u});var n=i(349700),l=i(55275),a=i(760372);let r=e=>e.length>32?`${e.substring(0,32).trim()}...`:e;function o({boardFollowedByMe:e,feedbackType:t,viewParameter:i,promotion:n,recommendationReason:l,pinnerFollowedByMe:a}){if(n&&!n.isDownstreamPromotion)return"promoted";if(t)return t;if(l){if("FOLLOWED_INTEREST"===l.reason)return"topic";if("FOLLOWING_FEED"!==l.reason&&"RECENT_FOLLOWED_BOARD"!==l.reason)return l.hasBoard?"pfyBoard":"pfy"}if(e||a)return"followed";switch(i){case 140:case 144:case 141:case 145:case 139:case 3173:return"related";case 3082:return"newsHub";default:return"default"}}function s({feedback:e,i18n:t,makeNavigateLink:i}){var l,a,o,s,d,u,c,p;switch(e.type){case"pfy":return t._('This Pin was inspired by your recent activity', 'Pin feedback reason', 'Pin feedback reason');case"pfyBoard":let{recommendationReasonBoard:h}=e;return h?(0,n.nk)(t._('This Pin was inspired by your board {{ boardLink }}', 'Pin feedback - inspired by your board', 'Pin feedback - inspired by your board'),{boardLink:i("navigation",h.url,h.name)}):null;case"topic":let{sourceInterest:_}=e;return _?(0,n.nk)(t._('This Pin was inspired by {{ formattedTopic }}', 'Pin feedback', 'Pin feedback'),{formattedTopic:i("topicUrl",`/topics/${_.url_name}`,_.name)}):null;case"followed":let{followed:m}=e,g="pinner"===m.type?(0,n.nk)(t._('This Pin is from {{ formattedPinner }}, a profile you follow', 'Pin feedback', 'Pin feedback'),{formattedPinner:i("pinnerUrl",`/${null!==(l=null===(a=m.pinner)||void 0===a?void 0:a.username)&&void 0!==l?l:""}`,r(null!==(o=null===(s=m.pinner)||void 0===s?void 0:s.full_name)&&void 0!==o?o:""))}):(0,n.nk)(t._('This Pin is from {{ formattedBoard }}, a board you follow', 'Pin feedback', 'Pin feedback'),{formattedBoard:i("boardUrl",null!==(d=null===(u=m.board)||void 0===u?void 0:u.url)&&void 0!==d?d:"",r(null!==(c=null===(p=m.board)||void 0===p?void 0:p.name)&&void 0!==c?c:""))});return g;case"promoted":let{promotedIsPersonalized:y,isEligibleForPromotedPartnership:v,promotedPartnershipAttributionName:f,promotedPartnershipAdvertiserName:x}=e.thirdPartyAdAttributes||{};if(!y&&v)return(0,n.nk)(t._('{{ promotedPartnershipAdvertiserName }} paid, through a partnership with {{ promotedPartnershipAttributionName }}, to have this Pin show up where you\'d be more likely to notice it', 'feedbackHelpers.getRecommendationDescription.promoted.thirdParty', 'Recommendation description for ads with promoted partnership. promotedPartnershipAdvertiserName:Name of advertiser, promotedPartnershipAttributionName:Name of promoted partner'),{promotedPartnershipAdvertiserName:x,promotedPartnershipAttributionName:f});if(!e.promoter||y)return t._('This ad was personalized for you using info from one of our partners', 'Pin feedback', 'Pin feedback');{let{full_name:l,username:a}=e.promoter,r=i("promotedLink",a?"/"+a+"/":"/",l);return(0,n.nk)(t._('{{ promoterLink }} paid to have this Pin show up where you\u2019d be more likely to notice it', 'Pin feedback', 'Pin feedback'),{promoterLink:r})}default:return null}}function d({sourceInterest:e,i18n:t,makeNavigateLink:i}){var l,r;return{action:"unfollowTopic",actionOptions:{interest_id:e.id,interest_list:a.X},title:"",subTitle:(0,n.nk)(t._('We\u2019ll show you less Pins from {{ formattedTopic }} in the future.', 'pin.contextualMenu.feedback.unfollowTopic.subtitle', 'Confirmation text after unfollowing a topic'),{formattedTopic:i("topicUrl",`/topics/${null!==(l=e.url_name)&&void 0!==l?l:""}`,null!==(r=e.name)&&void 0!==r?r:"",!0)})}}function u({boardId:e,display:t,i18n:i,makeNavigateLink:l}){var a,r,o,s;return{action:"unfollowBoard",actionOptions:{board_id:e},title:"",subTitle:"pinner"===t.type?(0,n.nk)(i._('You unfollowed {{ formattedPinner }} and won\u2019t see Pins they save anymore.', 'Confirmation text after unfollowing a user', 'Confirmation text after unfollowing a user'),{formattedPinner:l("pinnerUrl",`/${null!==(a=t.data.username)&&void 0!==a?a:""}`,null!==(r=t.data.full_name)&&void 0!==r?r:"",!0)}):(0,n.nk)(i._('You unfollowed the board {{ formattedBoard }} and won\u2019t see Pins saved to it anymore.', 'Confirmation text after unfollowing a board', 'Confirmation text after unfollowing a board'),{formattedBoard:l("boardUrl",null!==(o=t.data.url)&&void 0!==o?o:"",null!==(s=t.data.name)&&void 0!==s?s:"",!0)})}}function c(e){switch(e){case"promoted":return 60;case"followed":case"topic":return 100;case"pfyBoard":case"pfy":return 58}}function p(e,t,i,n,a,r,o){return()=>{let s={...e,undo:!0},d=t;"unfollowPinner"===t?d="followPinner":"unfollowBoard"===t?d="followBoard":"unfollowTopic"===t&&(d="followTopic"),(0,l.t)(d,s,void 0,o),r(i),o({event_type:101,component:0,element:11181,view_type:n,view_parameter:a})}}},752802:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});let n=["564x","736x","orig","474x","236x"],l=({images:e={},resolutionPreferences:t=n})=>{for(let i of t)if(e[i]&&e[i].url)return e[i];return null}},958007:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(992750);let l=e=>(e||"").trim().replace(/\s+/g," "),a=({storyPinDataId:e,pinDescription:t,richMetadataDescription:i,richSummaryDisplayName:a,closeupDescription:r,closeupUnifiedDescription:o,seoDescription:s,seoNoindexReason:d})=>d&&n.eg.has(d)?l(s):e?l(t):l((0,n.eK)({richMetadataDescription:i,richSummaryDisplayName:a,closeupUnifiedDescription:o}).description)||l(o||"")||l(r)||l(t)||l(i)||""},164985:(e,t,i)=>{"use strict";function n(){let e=800,t=400;return"undefined"!=typeof window&&(e=window.innerHeight,t=window.innerWidth),{windowHeight:e,windowWidth:t}}i.d(t,{Z:()=>n})},580749:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l,f:()=>n});let n=e=>{let{h:t,m:i}=e||{},n={hours:t||0,minutes:i||0};return void 0===t&&void 0===i?null:{h:t,m:i,time:n,isoDuration:function({hours:e,minutes:t}){return`PT${e}H${t}`}(n)}},l=e=>{var t,i,l,a,r;if(!e)return null;let{richMetadata:o}=e,{recipe:s}=o;return s&&s.name?{...e,recipe:{name:s.name,categorizedIngredients:s.categorized_ingredients,diets:s.diets,fromAggregatedData:s.from_aggregated_data,prepTime:n(null===(t=s.cook_times)||void 0===t?void 0:t.prep),cookTime:n(null===(i=s.cook_times)||void 0===i?void 0:i.cook),totalTime:n(null===(l=s.cook_times)||void 0===l?void 0:l.total),servingSummary:null===(a=s.servings_summary)||void 0===a?void 0:a.summary,serves:null===(r=s.servings_summary)||void 0===r?void 0:r.serves}}:null}},432730:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=e=>{if(!e)return null;let{rich_metadata:t}=e.pin;return t?{...e,richMetadata:t}:null}},184578:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});let n=e=>{if(!e)return null;let{embed:t}=e.pin,{type:i,src:n,subtype:l}=t||{};return n?{...e,embed:{type:i,src:n,subtype:l}}:null};var l=i(736688);let a=e=>{if(!e)return null;let{videos:t}=e.pin,{id:i,video_list:n={}}=t||{},{V_720P:a,V_HLSV4:r,V_HLSV3_MOBILE:o}=n,s=(0,l.V3)(r),d=(0,l.V3)(o),u=(0,l.V3)(a),c=u||s||d;return i&&c?{...e,video:{id:i,hasVideo:c,mp4:u||void 0,hls:s||void 0,hlsv3:d||void 0}}:null};var r=i(802933);let o=e=>{var t,i;let{hlsv3:n,hls:l}=e,a=n||l;return!!(a&&(null!==(t=a.width)&&void 0!==t?t:0)>(null!==(i=a.height)&&void 0!==i?i:0))},s=e=>{if(!e)return null;let{video:t}=a((0,r.Z)(e))||{},{embed:i}=n((0,r.Z)(e))||{},l=!!(t&&o(t))||!!(i&&i.src&&"pinstory"!==i.subtype&&"gif"!==i.type);return{...e,isWideVideo:l}}},992750:(e,t,i)=>{"use strict";i.d(t,{eg:()=>r,kt:()=>m,rw:()=>h,fs:()=>u,eK:()=>c,Ly:()=>p,BY:()=>_,bN:()=>g,RC:()=>s,EU:()=>d});let n=/\s\s+/g,l=e=>e.replace(n," ");var a=i(883561);let r=Object.freeze(new Set(["sensitive_raw_pin_text","is_sensitive_rich_pin_description","is_sensitive_rich_pin_title","is_sensitive_board_title"])),o=e=>"string"==typeof e?e:"",s=({storyPinDataMetadataPinTitle:e,pinTitle:t})=>e||t,d=(e,t)=>e?e.trim().length>t?(0,a.ZP)(e.trim(),t).trim():e.trim():"",u=({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:l,storyPinDataMetadataPinTitle:a})=>{let r=a||e,o=d(t,200);return o||i||n||(l&&r?r:null)},c=e=>{let{richSummaryDisplayName:t}=e,i=e.pinJoinVisualAnnotation||[],n=e.pinJoinAnnotationsWithLinks||{},r=e.richMetadataDescription||"",o=e.closeupUnifiedDescription||"",s=i.map(e=>(n||{})[e]||{name:e,url:""}),d="",u=(t||"").toLocaleLowerCase().trim(),c=r.toLocaleLowerCase().trim(),p=o.toLocaleLowerCase().trim();return o&&o.length>3&&p!==u?d=o:r&&r.length>3&&c!==u&&(d=r),d&&(d=l((0,a.ZP)(d,496)).trim()),{description:d,annotationsWithLinks:s}},p=({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:l,storyPinDataMetadataPinTitle:a,pinJoinVisualAnnotation:o,seoNoindexReason:s,seoTitle:d})=>r.has(null!=s?s:"")?d:u({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:l,storyPinDataMetadataPinTitle:a})||(null==o?void 0:o[0])||e,h=(e,t,i,n,l)=>{let a=o(e).trim(),r=(e,t)=>t&&t.length>0?`${e} ${t.join(", ")}`:e;return n&&n.trim().length?r(n.trim(),i):l&&l.trim().length?l.trim():a?r(a,i):i?i.join(", "):""},_=e=>`/pin/${e}/`,m=(e,t)=>{let i=`Pinterest video from ${t}: `.concat(e);return""===t?e:i},g=({pinId:e,seoUrl:t})=>t&&"string"==typeof t?t:_(e)},359969:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n,l=i(667294);i(167912);var a=i(357998);let r=void 0!==n?n:n=i(544819),o=e=>{var t,i,n,l,a;return{imageSpec_236x:(null===(t=e.images)||void 0===t?void 0:t["236x"])&&{height:e.images["236x"].height,url:e.images["236x"].url,width:e.images["236x"].width},imageSpec_474x:(null===(i=e.images)||void 0===i?void 0:i["474x"])&&{height:e.images["474x"].height,url:e.images["474x"].url,width:e.images["474x"].width},imageSpec_564x:(null===(n=e.images)||void 0===n?void 0:n["564x"])&&{height:e.images["564x"].height,url:e.images["564x"].url,width:e.images["564x"].width},imageSpec_736x:(null===(l=e.images)||void 0===l?void 0:l["736x"])&&{height:e.images["736x"].height,url:e.images["736x"].url,width:e.images["736x"].width},imageSpec_orig:(null===(a=e.images)||void 0===a?void 0:a.orig)&&{height:e.images.orig.height,url:e.images.orig.url,width:e.images.orig.width}}};function s({pinKey:e}){let{data:t}=(0,a.Q)(r,e,{useLegacyAdapter:o}),i=t.imageSpec_564x||t.imageSpec_736x||t.imageSpec_orig||t.imageSpec_474x||t.imageSpec_236x,n=(0,l.useCallback)(()=>({url:(null==i?void 0:i.url)||"",height:(null==i?void 0:i.height)||1,width:(null==i?void 0:i.width)||1}),[null==i?void 0:i.height,null==i?void 0:i.url,null==i?void 0:i.width]);return{getMainPinImage:n}}},223008:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n,l=i(667294);i(167912);var a=i(357998);let r=void 0!==n?n:n=i(469656),o=e=>{var t,i,n,l,a;return{imageSpec_236x:(null===(t=e.images)||void 0===t?void 0:t["236x"])&&{height:e.images["236x"].height,url:e.images["236x"].url,width:e.images["236x"].width},imageSpec_474x:(null===(i=e.images)||void 0===i?void 0:i["474x"])&&{height:e.images["474x"].height,url:e.images["474x"].url,width:e.images["474x"].width},imageSpec_564x:(null===(n=e.images)||void 0===n?void 0:n["564x"])&&{height:e.images["564x"].height,url:e.images["564x"].url,width:e.images["564x"].width},imageSpec_736x:(null===(l=e.images)||void 0===l?void 0:l["736x"])&&{height:e.images["736x"].height,url:e.images["736x"].url,width:e.images["736x"].width},imageSpec_orig:(null===(a=e.images)||void 0===a?void 0:a.orig)&&{height:e.images.orig.height,url:e.images.orig.url,width:e.images.orig.width}}};function s({pinKey:e,maxWidth:t}){let{data:i}=(0,a.Q)(r,e,{useLegacyAdapter:o}),n=(null==i?void 0:i.imageSpec_564x)||(null==i?void 0:i.imageSpec_736x)||(null==i?void 0:i.imageSpec_orig)||(null==i?void 0:i.imageSpec_474x)||(null==i?void 0:i.imageSpec_236x),s=(null==n?void 0:n.width)||1,d=(null==n?void 0:n.height)||1,u=(null==n?void 0:n.url)||"",c=function(e,t,i=564){return e>i&&(t*=i/e,e=i),{width:e,height:t}}(s,d,t),p=(0,l.useCallback)(()=>({width:c.width,height:c.height,url:u}),[c.height,c.width,u]);return{getNormalizedPinImage:p}}},489494:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s}),i(167912);var n,l=i(357998),a=i(374373);let r=void 0!==n?n:n=i(939234),o=e=>({entityId:e.id,link:e.link,method:e.method,trackedLink:e.tracked_link}),s=e=>{let{data:t}=(0,l.Q)(r,e,{useLegacyAdapter:o}),i=(0,a.Z)(t);if(!(null!=t&&t.entityId))return null;let{trackedLink:n,link:s,method:d}=t,u=n||s,c=u&&("catalog_bulk_create"===d||i)?decodeURIComponent(u):u;return c}},374373:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o}),i(167912);var n,l=i(357998);let a=void 0!==n?n:n=i(927894),r=e=>({richMetadata:e.rich_metadata&&{products:e.rich_metadata.products&&e.rich_metadata.products.map(e=>({name:e.name}))}}),o=e=>{var t;let{data:i}=(0,l.Q)(a,e,{useLegacyAdapter:r});if(!(null!=i&&i.richMetadata))return!1;let{products:n}=null!==(t=i.richMetadata)&&void 0!==t?t:{},o=!!Array.isArray(n)&&n.some(e=>!!e&&e.name);return o}},299295:(e,t,i)=>{"use strict";i.d(t,{$4:()=>I,AQ:()=>G,ASPECT_RATIO_FORMAT_MAP:()=>O,Bj:()=>v,DB:()=>W,FH:()=>es,FM:()=>J,G9:()=>M,GX:()=>g,Hy:()=>ec,JO:()=>F,Ke:()=>T,LM:()=>l,Lc:()=>eh,Lr:()=>eu,MN:()=>x,Mn:()=>ee,N8:()=>y,NB:()=>ei,P0:()=>en,P9:()=>eo,Pn:()=>b,S:()=>z,TK:()=>w,TZ:()=>C,UU:()=>c,Uw:()=>X,W_:()=>ed,XB:()=>s,Xy:()=>D,YM:()=>S,aD:()=>e_,aj:()=>K,bA:()=>L,bo:()=>d,cH:()=>ev,dS:()=>j,eZ:()=>_,fk:()=>ea,g1:()=>ep,gU:()=>u,i2:()=>p,iR:()=>Z,jh:()=>em,km:()=>h,lx:()=>R,mr:()=>$,mt:()=>V,n_:()=>N,np:()=>H,of:()=>n,q:()=>ey,qY:()=>k,qm:()=>er,rc:()=>Q,ro:()=>eg,sD:()=>r,sG:()=>m,u1:()=>Y,uR:()=>o,v5:()=>a,v9:()=>q,vk:()=>et,wj:()=>P,x1:()=>B,yC:()=>f,yI:()=>E,yX:()=>A,yb:()=>U,zr:()=>el});let n=880,l=340,a=380,r=510,o=40,s=20,d=4,u=474,c=134,p=96,h=800,_=186,m=40,g=10,y=48,v=88,f=183,x=130,b=24,P=400,w=50,S=8,k=8,j=5,A=20,C=29,D=5,E=20,I=E**2,T=100,F=500,z=800,R=500,L=40,M=100,Z=5,B=["attempted","publishing","succeeded","uploading"],O={carousel:[{w:2,h:3},{w:3,h:4},{w:1,h:1}],single:[{w:2,h:3},{w:3,h:4},{w:1,h:1}],story:[{w:9,h:16}],storyFARPortrait:[{w:1,h:2},{w:9,h:16},{w:2,h:3},{w:3,h:4},{w:4,h:5},{w:1,h:1}],storyFARLandscape:[{w:2,h:1},{w:16,h:9},{w:3,h:2},{w:4,h:3},{w:5,h:4},{w:1,h:1}]},N=["tl","tc","tr","bl","bc","br"],K=["left","center"],U=["top","center","bottom"],H=["none","uppercase"],V=["sm","md","lg"],G=[1,.75],W=198,$=132,q=1,Y=56,X=240,Q="cubic-bezier(0.66, 0.025, 0.33, 0.975)",J=1e3,ee=1500,et=2,ei=3,en=20,el=20,ea=2,er=["processing","publishing","saving"],eo=60.5,es=120.5,ed=1,eu=209715200,ec=2500,ep=3,eh="pin-builder-default-education-id",e_="pin-builder-default-tour-id",em="pin-builder-editing-tour-id",eg="save_from_url",ey=["processing","edited","creating","saving","saved"],ev=2048},66743:(e,t,i)=>{"use strict";i.d(t,{NC:()=>a,Rc:()=>o,WK:()=>d,X9:()=>l,b9:()=>n,f9:()=>s,gu:()=>r});let n="pin-builder-font-faces",l="system-font-faces",a="pin-builder-education-font-faces",r="licensed",o="system",s="brand",d=4},802933:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=e=>{var t;return null!=e&&null!==(t=e.pin)&&void 0!==t&&t.id?e:null}},692627:(e,t,i)=>{"use strict";function n({hasPin:e,hasPinRichMetadata:t,hasPinRichMetadataProducts:i,hasPinRichMetadataArticle:n,hasPinRichMetadataRecipe:l,hasPinStoryPinData:a}){if(e){if(t)return i?144:n?141:l?145:139;if(a)return 157}return 140}i.d(t,{Z:()=>n})},760372:(e,t,i)=>{"use strict";i.d(t,{X:()=>n});let n="favorited"},773285:(e,t,i)=>{"use strict";i.d(t,{F:()=>a,a:()=>l});var n=i(425288);let{Provider:l,useHook:a}=(0,n.Z)("ExperimentContext")},466225:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=e=>e.startsWith("enabled")||e.startsWith("employee")},523657:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(667294);i(883119);var l=i(301723),a=i(785893);let r=e=>document.querySelector(`img[src="${e}"]`)||null,o=(e,t,i)=>{let l=(0,n.useRef)(null),a=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(e!==l.current||i&&i!==a.current){l.current=e;let i=r(e);null!=i&&i.complete&&t()}a.current=i},[e,t,i])};function s({alt:e,children:t,color:i,elementTiming:n,isActive:r=!1,naturalHeight:s,naturalWidth:d,onLoad:u,src:c,fit:p="none"}){return o(c,u,r),(0,a.jsx)(l.Z,{alt:e,color:i,elementTiming:n,naturalHeight:s,naturalWidth:d,onLoad:u,src:c,fit:p,children:t})}},317254:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(969853),l=i(667294),a=i(543059),r=i(276602),o=i(198462);function s({children:e,isAtEndOfFeed:t,pinData:i,itemCount:s,includeBackgroundImages:d=!1,includeVideos:u=!1,includeSections:c=!1}){var p;let h=null===(p=(0,o.N5)())||void 0===p?void 0:p.isAuthenticated;return h||(c=!0),(0,n.Z)({pinData:i,isAtEndOfFeed:t,includeBackgroundImages:d,includeVideos:u,includeSections:c}),!function(e){let t=(0,r.E)(),i=(0,l.useRef)(null);(0,l.useEffect)(()=>{e!==i.current&&(i.current=e,t&&(0,a.ZP)(a.at))},[!!t,e])}(s),e}},584992:(e,t,i)=>{"use strict";i.d(t,{Z:()=>w});var n=i(667294),l=i(425288),a=i(790348),r=i(198462),o=i(383434),s=i(543059),d=i(607150),u=i(638089),c=i(860273),p=i(453821),h=i(558775),_=i(505771),m=i(729524),g=i(169213),y=i(358864),v=i(985271);let f=(0,o.XV)("PwtStopwatch"),x=(e,t)=>{if(v.Z){if("start"===t.type&&!e.isTiming){let{name:i,startTime:n,navigationType:l}=t;return(0,a.A9)(`TIMING.${i}`),{isTiming:!0,name:i,isSampled:t.isSampled,startTime:"number"==typeof n?n:v.Z.now(),metricId:{type:"stopwatch",name:i,navigationType:l},pwtStaticContext:t.pwtStaticContext,annotations:e.annotations,binaryAnnotations:e.binaryAnnotations,spans:e.spans,traceId:e.traceId,spanNameUpdates:e.spanNameUpdates}}if(!e.isTiming){if(t.bypassIsTimingCheck)f("allowing action while stopwatch is not actively timing (bypassIsTimingCheck is set to true)",t);else{let i=t.name||e.name;return f("ignoring action - stopwatch is not actively timing",t),(0,a.A9)(`WARN.${i}.noTiming.${t.type}`),e}}if("annotate"===t.type){let i=v.Z.now();return f(`adding annotation {${t.label}: ${i}}`),{...e,annotations:e.annotations.concat([{label:t.label,timestamp:i}])}}if("binaryAnnotate"===t.type)return f(`adding binary annotation {${t.name}: ${String(t.value)}}`),{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:t.value,type:t.annotationType}}};if("binaryAnnotateOperation"===t.type){let{value:i,type:n}=t.binaryAnnotationValueAndType;if(!e.binaryAnnotations[t.name])return{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:i,type:n}}};{let l=e.binaryAnnotations[t.name].value||0;return f(`operating on binary annotation {
194
+ name: ${t.name}
195
+ pervious value: ${String(l)}
196
+ operand: ${String(i)}
197
+ }`),{...e,binaryAnnotations:{...e.binaryAnnotations,[t.name]:{value:i?t.operation(l,i):l,type:n}}}}}if("addSubspan"===t.type){f(`adding subspan {${t.name}}`);let i=e.spans.findIndex(e=>e.name===t.name);-1!==i&&f(`WARNING: adding duplicate subspan name {${t.name}}`);let n=t.id||(0,y.Z)(),l=e.spans.findIndex(e=>e.id===n);-1!==l&&f(`WARNING: adding duplicate subspan id {${t.name}: ${n}}`);let a=0;return t.startTime?a=t.startTime:e.startTime?a=e.startTime:f(`WARNING: adding subspan {${t.name}} without start time`),{...e,spans:[...e.spans,{name:t.name,id:n,startTime:a,endTime:t.endTime||1/0,annotationMap:{...t.annotations},binaryAnnotationMap:{...t.binaryAnnotations},parentId:t.parentId}]}}if("subspanStart"===t.type){var i;f(`starting subspan {${t.name}}`);let n=e.spans.findIndex(e=>e.name===t.name);-1!==n&&f(`WARNING: starting duplicate subspan name {${t.name}}`);let l=t.id||(0,y.Z)(),a=e.spans.findIndex(e=>e.id===l);-1!==a&&f(`WARNING: starting duplicate subspan id {${t.name}: ${l}}`);let r=t.parentName?null===(i=e.spans.find(e=>e.name===t.parentName))||void 0===i?void 0:i.id:null;return{...e,spans:[...e.spans,{name:t.name,id:l,parentId:t.parentId||r,startTime:v.Z.now(),endTime:1/0,annotationMap:{...t.annotations},binaryAnnotationMap:{...t.binaryAnnotations}}]}}if("subspanStop"===t.type){if(f(`stopping subspan {${t.name}}`),!t.id){let i=e.spans.reduce((e,i)=>i.name===t.name?[...e,i]:e,[]);i.length>1&&(0,a.H)("duplicate_subspan_stop_name",{name:t.name,type:t.type})}let i=t.id?e.spans.findIndex(e=>e.id===t.id):e.spans.findIndex(e=>e.name===t.name);return i>-1?(e.spans[i].endTime=v.Z.now(),t.annotations&&(e.spans[i].annotationMap={...e.spans[i].annotationMap,...t.annotations}),t.binaryAnnotations&&(e.spans[i].binaryAnnotationMap={...e.spans[i].binaryAnnotationMap,...t.binaryAnnotations})):(0,a.H)("invalid_subspan_stop_name",{name:t.name}),e}if("subspanUpdateName"===t.type){let i=e.spans.reduce((e,i)=>i.name===t.currentName?[...e,i]:e,[]);i.length>1&&(0,a.H)("duplicate_subspan_stop_name",{name:t.currentName,type:t.type});let n=e.spans.findIndex(e=>e.name===t.currentName);return n>-1?t.updateWhenStopwatchCompletes?e.spanNameUpdates=[...e.spanNameUpdates,{currentName:t.currentName,newName:t.newName}]:(f(`renaming subspan {${t.currentName}} to {${t.newName}}`),e.spans[n].name=t.newName):(0,a.H)("no_subspan_found_to_rename",{name:t.currentName}),e}if("stop"===t.type&&e.isTiming){let{startTime:i,metricId:n,pwtStaticContext:l,annotations:a,binaryAnnotations:r,isSampled:o,spans:g,traceId:x}=e;if(t.stopwatchPerformanceObserver&&t.stopwatchPerformanceObserver.disconnect(),o){let o=t.stopTime||v.Z.now(),b=[...g.map(t=>{t.endTime===1/0&&(t.endTime=o);let i=e.spanNameUpdates.findIndex(e=>t.name===e.currentName);return i>-1&&(f(`renaming subspan {${t.name}} to {${e.spanNameUpdates[i].newName}}`),t.name=e.spanNameUpdates[i].newName,e.spanNameUpdates=e.spanNameUpdates.filter(e=>e.newName!==t.name)),t})];if(t.manualAndResourceSpans||0===g.length){let e=(0,y.Z)();b.push({name:"network_resources",id:e,startTime:i,endTime:o,annotationMap:{},binaryAnnotationMap:{},parentId:null},...(t.customStopwatchBuffer||[]).map(t=>(0,_.Z)((0,p.p)(t,[]),e)).filter(Boolean))}let P="initial_app_load"===n.navigationType&&(0,c.Z)(),w={type:"COMPLETE",traceId:x,startTime:i,endTime:o,spans:b,annotationMap:{...(0,m.Z)(a),...(0,d.jh)("browser_",P?(0,d.D3)(P):{}),...(0,d.jh)("mark_",(0,s.gQ)())},binaryAnnotationMap:(0,u.ng)({metricId:n,pwtStaticContext:l,binaryAnnotations:r,performanceResourceTimings:t.customStopwatchBuffer||[]})};(0,h.Z)({metricId:n,pwtStaticContext:l,result:w})}return{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,y.Z)(),spanNameUpdates:[]}}if("error"===t.type){let{error:i,stopwatchPerformanceObserver:n}=t;return i&&(0,a.H)(i),n&&n.disconnect(),{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,y.Z)(),spanNameUpdates:[]}}if("abort"===t.type&&e.isTiming){t.stopwatchPerformanceObserver&&t.stopwatchPerformanceObserver.disconnect();let{metricId:i,pwtStaticContext:n}=e,l=t.reason||"";return(0,h.Z)({metricId:i,pwtStaticContext:n,result:{type:"ABORT",reason:l}}),{isTiming:!1,name:e.name,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,y.Z)(),spanNameUpdates:[]}}}return e},b=({name:e,sampleRate:t,navigationType:i,manualAndResourceSpans:l=!1})=>{let a=(0,r.N5)(),o=(0,n.useRef)([]),s=(0,n.useRef)(null),[d,u]=(0,n.useReducer)(x,{isTiming:!1,name:e,annotations:[],binaryAnnotations:{},spans:[],traceId:(0,y.Z)(),spanNameUpdates:[]});return a?{isTiming:d.isTiming,start:n=>(window.PerformanceObserver&&(o.current=[],s.current=(0,g.Z)({entryTypes:["resource"]},e=>{o.current=o.current.concat(e.getEntries()),o.current.length>1e3&&(o.current=o.current.slice(-1e3))})),u({type:"start",startTime:n,name:e,navigationType:i,pwtStaticContext:a,isSampled:!t||Math.random()<t})),stop:e=>u({type:"stop",stopTime:e,stopwatchPerformanceObserver:s.current,customStopwatchBuffer:o.current,manualAndResourceSpans:l}),error:e=>{u({type:"error",stopwatchPerformanceObserver:s.current,error:e})},abort:e=>u({type:"abort",stopwatchPerformanceObserver:s.current,customStopwatchBuffer:o.current,reason:e}),annotate:(e,t,i=!1)=>u({type:"annotate",label:e,parentId:t,bypassIsTimingCheck:i}),binaryAnnotate:(e,t,i,n,l=!1)=>u({type:"binaryAnnotate",name:e,value:t,annotationType:i,parentId:n,bypassIsTimingCheck:l}),binaryAnnotateOperation:({name:e,binaryAnnotationValueAndType:t,operation:i,parentId:n,bypassIsTimingCheck:l=!1})=>u({type:"binaryAnnotateOperation",name:e,binaryAnnotationValueAndType:t,operation:i,parentId:n,bypassIsTimingCheck:l}),addSubspan:({name:e,startTime:t,endTime:i,annotations:n={},binaryAnnotations:l={},parentId:a=null,id:r=null,bypassIsTimingCheck:o=!1})=>u({type:"addSubspan",name:e,startTime:t,endTime:i,annotations:n,binaryAnnotations:l,parentId:a,id:r,bypassIsTimingCheck:o}),subspanStart:({name:e,annotations:t={},binaryAnnotations:i={},parentId:n=null,parentName:l=null,id:a=null,bypassIsTimingCheck:r=!1})=>u({type:"subspanStart",name:e,annotations:t,binaryAnnotations:i,parentId:n,parentName:l,id:a,bypassIsTimingCheck:r}),subspanStop:({name:e,annotations:t,binaryAnnotations:i,id:n,parentId:l,bypassIsTimingCheck:a=!1})=>u({type:"subspanStop",name:e,annotations:t,binaryAnnotations:i,id:n,parentId:l,bypassIsTimingCheck:a}),subspanUpdateName:({currentName:e,newName:t,bypassIsTimingCheck:i,updateWhenStopwatchCompletes:n=!0})=>u({type:"subspanUpdateName",currentName:e,newName:t,bypassIsTimingCheck:i,updateWhenStopwatchCompletes:n}),getSpans:(e,t)=>d.spans.filter(i=>i[e]===t),getTraceId:()=>d.traceId}:null};var P=i(785893);let w=({name:e,sampleRate:t,abortOnUnloadOrClientNavigation:i=!0,navigationType:o,manualAndResourceSpans:s=!1})=>{let{Provider:d,useMaybeHook:u}=(0,l.Z)(`Stopwatch_${e}`);return{Provider:function({children:l}){let u=b({name:e,sampleRate:t,navigationType:o,manualAndResourceSpans:s}),c=(0,r.fM)(),p=c?c.time:0,h=(0,n.useRef)(!1),_=null==u?void 0:u.isTiming,m=(0,n.useCallback)(t=>{h.current?(h.current=!1,null==u||u.abort(t)):(0,a.A9)(`WARN.${e}.noTiming.abort`)},[u]),g=(0,n.useCallback)((e,t)=>{null==u||u.annotate(e,t)},[u]),y=(0,n.useCallback)((e,t,i,n)=>{null==u||u.binaryAnnotate(e,t,i,n)},[u]),v=(0,n.useCallback)(({name:e,binaryAnnotationValueAndType:t,operation:i,parentId:n,bypassIsTimingCheck:l})=>{null==u||u.binaryAnnotateOperation({name:e,binaryAnnotationValueAndType:t,operation:i,parentId:n,bypassIsTimingCheck:l})},[u]),f=(0,n.useCallback)(({name:e,startTime:t,endTime:i,annotations:n,binaryAnnotations:l,parentId:a,id:r,bypassIsTimingCheck:o})=>{null==u||u.addSubspan({name:e,startTime:t,endTime:i,annotations:n,binaryAnnotations:l,parentId:a,id:r,bypassIsTimingCheck:o})},[u]),x=(0,n.useCallback)(({name:e,annotations:t,binaryAnnotations:i,parentId:n,parentName:l,id:a,bypassIsTimingCheck:r})=>{null==u||u.subspanStart({name:e,annotations:t,binaryAnnotations:i,parentId:n,parentName:l,id:a,bypassIsTimingCheck:r})},[u]),w=(0,n.useCallback)(({name:e,annotations:t,binaryAnnotations:i,id:n,parentId:l,bypassIsTimingCheck:a})=>{null==u||u.subspanStop({name:e,annotations:t,binaryAnnotations:i,id:n,parentId:l,bypassIsTimingCheck:a})},[u]),S=(0,n.useCallback)(({currentName:e,newName:t,bypassIsTimingCheck:i,updateWhenStopwatchCompletes:n})=>{null==u||u.subspanUpdateName({currentName:e,newName:t,bypassIsTimingCheck:i,updateWhenStopwatchCompletes:n})},[u]),k=(0,n.useCallback)((e,t)=>u?u.getSpans(e,t):[],[u]),j=(0,n.useCallback)(()=>u?u.getTraceId():0,[u]),A=(0,n.useCallback)(t=>{h.current?(h.current=!1,null==u||u.error(t)):(0,a.A9)(`WARN.${e}.noTiming.error`)},[u]),C=(0,n.useCallback)(e=>{h.current&&(null==u||u.abort("duplicated_init_stopwatch_action")),h.current=!0,null==u||u.start(e)},[u]),D=(0,n.useCallback)(t=>{h.current?(h.current=!1,null==u||u.stop(t)):(0,a.A9)(`WARN.${e}.noTiming.stop`)},[u]);(0,n.useEffect)(()=>()=>{i&&m("unloadOrClientNavigation")},[p]);let E=(0,n.useMemo)(()=>({isTiming:_,abort:m,addAnnotation:g,addBinaryAnnotation:y,binaryAnnotationOperation:v,addSubspan:f,subspanStart:x,subspanStop:w,getSpans:k,getTraceId:j,updateSubspanName:S,stop:D,error:A,start:C}),[_,m,g,y,v,f,x,w,k,j,S,D,A,C]);return(0,P.jsx)(d,{value:E,children:l})},useHook:u}}},47168:(e,t,i)=>{"use strict";i.d(t,{T:()=>r,g:()=>o});var n=i(584992);let{Provider:l,useHook:a}=(0,n.Z)({name:"story_pin_step",sampleRate:1}),r=l,o=a},729524:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=e=>{let t={};e.forEach(({label:e,timestamp:i})=>{t={...t,[e]:(t[e]||[]).concat([i])}});let i=Object.freeze({});return Object.keys(t).forEach(e=>{(t[e]||[]).forEach((t,n)=>{let l=n?`${e}_${n+1}`:e;i={...i,[l]:t}})}),i}},571757:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(883119),l=i(121151),a=i(898781),r=i(667294),o=i(112690),s=i(356997),d=i(879564),u=i(785893);let c=function({user:e,viewer:t}){let i=(0,a.ZP)(),{full_name:l,image_medium_url:r,domain_url:o,domain_verified:c,is_private_profile:p,reactionType:h,username:_}=e,m=t&&!!t.id&&t.id===e.id,g=p?e.first_name:l,y=d.GY[h],{staticAsset:v}=(0,d.fW)(y,i);return(0,u.jsxs)(n.xu,{display:"flex",justifyContent:"between",paddingX:6,marginTop:6,children:[(0,u.jsx)(n.Tg,{href:`/${_}/`,children:(0,u.jsxs)(n.kC,{alignItems:"center",direction:"row",justifyContent:"start",children:[(0,u.jsx)(n.xu,{width:40,children:(0,u.jsx)(s.qE,{accessibilityLabel:"",name:g,src:r})}),(0,u.jsxs)(n.xu,{display:"flex",direction:"column",paddingX:2,children:[(0,u.jsx)(n.xv,{weight:"bold",children:g}),m&&(0,u.jsx)(n.xv,{size:"200",children:i._('That\'s you', 'Indicates that the viewer is the person in the list', 'Indicates that the viewer is the person in the list')}),!m&&o&&c&&(0,u.jsx)(n.xv,{size:"200",children:o})]})]})}),(0,u.jsx)(n.xu,{padding:2,display:"flex",alignItems:"center",children:(0,u.jsx)(n.xu,{width:26,height:26,dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${v})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"}}})})]})};var p=i(784590),h=i(304903),_=i(700380),m=i(19121);function g(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class y extends r.Component{constructor(...e){super(...e),g(this,"setRef",e=>{e&&!this.list&&(this.list=e.parentElement,this.list&&this.list.addEventListener("scroll",this.handleScroll))}),g(this,"fetchMore",()=>{let{feedResource:e}=this.props;e.isFetching||(e.isAtEnd?window.removeEventListener("scroll",this.handleScroll):e.fetchMore())}),g(this,"handleScroll",(0,_.Z)(()=>{let{feedResource:e}=this.props;if(e.isFetching||e.isAtEnd)return;let t=(0,h.Uy)(this.list),i=(0,h.aZ)(this.list),n=(0,h.MX)(this.list);i-n-50<t&&this.fetchMore()},10))}componentDidMount(){let{logContextEvent:e,logView:t=!0}=this.props;t&&e({event_type:13,view_type:266,view_parameter:3312})}componentWillUnmount(){this.list&&this.list.removeEventListener("scroll",this.handleScroll)}render(){let{feedResource:{data:e,isFetching:t},viewer:i}=this.props;if(e&&e.length>0){let l=e.map(e=>{let{user:t,reaction_type:i}=e;return{...t,reactionType:i}});return(0,u.jsxs)(n.xu,{marginBottom:6,ref:this.setRef,children:[l.map(e=>(0,u.jsx)(c,{user:e,viewer:i},e.id)),t&&(0,u.jsx)("div",{className:"loadingSpinner",children:(0,u.jsx)(n.$j,{accessibilityLabel:this.props.i18n._('Loading user list', 'Accessibility lable for user list spinner', 'Accessibility lable for user list spinner'),show:!0})})]})}return(0,u.jsx)("div",{className:"loadingSpinner",children:(0,u.jsx)(n.$j,{accessibilityLabel:this.props.i18n._('Loading user list', 'Accessibility lable for user list spinner', 'Accessibility lable for user list spinner'),show:!0})})}}function v(e){let t=(0,a.ZP)(),i=(0,m.Z)(),n=(0,o.Z)(),l=(0,p.Z)({name:"ReactionsResource",options:{pin_id:e.pinId},noCache:!0});return(0,u.jsx)(y,{...e,feedResource:l,viewer:i,i18n:t,logContextEvent:n})}function f({pinId:e,aggregatedReactions:t,totalReactionCount:i,onDismiss:r,logView:o}){let s=(0,a.ZP)(),d=(0,u.jsx)(n.kC,{alignItems:"stretch",justifyContent:"center",children:(0,u.jsxs)(n.xu,{display:"flex",direction:"row",alignItems:"center",height:19,paddingY:6,children:[(0,u.jsx)(n.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:t}),(0,u.jsx)(n.xu,{paddingX:1,children:(0,u.jsx)(n.xv,{weight:"bold",children:i})})]})});return(0,u.jsx)(l.ZP,{mobileAccessibilityCloseIconLabel:s._('close modal', 'pin.reactions.reactedUsers', 'accessibility label for modal close icon'),accessibilityModalLabel:s._('Users who have reacted to this.', 'Label for a modal showing a list of users who have reacted to a pin', 'Label for a modal showing a list of users who have reacted to a pin'),heading:d,onDismiss:r,size:"sm",allowScroll:!0,children:(0,u.jsx)(n.xu,{height:"calc(75% - 90px)",children:(0,u.jsx)(v,{pinId:e,logView:o})})})}},139134:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(667294),l=i(883119),a=i(288889),r=i(112690),o=i(694379),s=i(898781),d=i(571757),u=i(879564),c=i(681227),p=i(785893);function h(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class _ extends n.PureComponent{constructor(...e){super(...e),h(this,"state",{displayAggregationModal:!1}),h(this,"showAggregationModal",()=>{let{disableModal:e,logContextEvent:t}=this.props;e||(this.setState({displayAggregationModal:!0}),t({event_type:101,view_type:3,view_parameter:139,component:13458,element:11435,aux_data:{objectId:this.props.pinId}}))}),h(this,"hideAggregationModal",()=>{this.setState({displayAggregationModal:!1})})}render(){let{displayAggregationModal:e}=this.state,{isBold:t,inCommentModuleExp:i,isInCommentModule:n,isStoryPin:r,paddingY:s,pinId:h,reactionCounts:_}=this.props,m=_?(0,c.At)(_):null,g=_?(0,c.Ud)(_):0,y=!!m&&m.length>0&&m.filter(e=>!!u.GY[e]).map((e,t)=>{let i=u.GY[e],{gridAsset:n}=(0,u.fW)(i,this.props.i18n);return(0,p.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{marginRight:2}},children:(0,p.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${n})`,backgroundPosiiton:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}},height:19,width:19})},t)});return(0,p.jsxs)(l.xu,{children:[(0,p.jsx)("div",{onClick:n?void 0:this.showAggregationModal,onKeyDown:n?void 0:this.showAggregationModal,role:"presentation",children:!!y&&(0,p.jsx)(l.xu,{"data-test-id":"aggregated-reactions-container",display:"inlineBlock",children:i?(0,p.jsx)(l.xv,{weight:"bold",children:(0,p.jsx)(o.Z,{value:g,shortform:!0,shortformMaximumFractionDigits:1})}):(0,p.jsxs)(l.xu,{alignItems:"center",direction:"row",display:"flex",height:r?"auto":19,paddingY:null!=s?s:r?0:6,dangerouslySetInlineStyle:{__style:{cursor:"pointer"}},"data-test-id":"aggregated-reactions-container",children:[(0,p.jsx)(l.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:y}),(0,p.jsx)(l.xu,{paddingX:1,children:(0,p.jsx)(l.xv,{color:t?"default":"subtle",size:a.n,weight:t?"bold":"normal",children:(0,p.jsx)(o.Z,{value:g,shortform:!0,shortformMaximumFractionDigits:1})})})]})})}),e&&g&&(0,p.jsx)(d.Z,{aggregatedReactions:y,onDismiss:this.hideAggregationModal,pinId:h,totalReactionCount:g})]})}}h(_,"defaultProps",{isBold:!0});let m=function(e){let t=(0,s.ZP)(),i=(0,r.Z)();return(0,p.jsx)(_,{...e,i18n:t,logContextEvent:i})}},879564:(e,t,i)=>{"use strict";i.d(t,{GY:()=>b,Go:()=>P,Jg:()=>x,fW:()=>w});var n=i(184508),l=i(147916),a=i(167361),r=i(697031),o=i(404247),s=i(836866),d=i(620668),u=i(86119),c=i(753873),p=i(873774),h=i(479197),_=i(110099),m=i(244892),g=i(485846),y=i(461471),v=i(662502),f=i(239784);let x=["goodIdea","love","thanks","wow","haha"],b={7:"goodIdea",1:"love",13:"thanks",11:"wow",5:"haha"},P={7:"yellow-caramellow-50",1:"red-pushpin-100",13:"teal-spabattical-100",11:"orange-firetini-50",5:"purple-mysticool-100"},w=(e,t,i="darkGray")=>{let x={default:{staticAsset:"white"===i?h:p},goodIdea:{staticAsset:a,animatedAsset:n,gridAsset:l,label:t._('Good idea', 'Reaction label to tell a creator that their pin is a good idea', 'Reaction label to tell a creator that their pin is a good idea'),htmlStyle:`
198
+ @keyframes play90 {
199
+ 0% {
200
+ background-position: 0px 0px;
201
+ }
202
+ 100% {
203
+ background-position: -3600px 0px;
204
+ }
205
+ }
206
+ `,animationStyle:"play90 3000ms steps(90) infinite forwards",type:7},haha:{staticAsset:s,animatedAsset:r,gridAsset:o,label:t._('Haha', 'Reaction label to tell a creator that the pinner laughed because of their pin', 'Reaction label to tell a creator that the pinner laughed because of their pin'),htmlStyle:`
207
+ @keyframes play60 {
208
+ 0% {
209
+ background-position: 0px 0px;
210
+ }
211
+ 100% {
212
+ background-position: -2400px 0px;
213
+ }
214
+ }
215
+ `,animationStyle:"play60 2000ms steps(60) infinite forwards",type:5},love:{staticAsset:c,animatedAsset:d,gridAsset:u,label:t._('Love', 'Reaction label to tell a creator that the pinner loved their pin', 'Reaction label to tell a creator that the pinner loved their pin'),htmlStyle:`
216
+ @keyframes play90 {
217
+ 0% {
218
+ background-position: 0px 0px;
219
+ }
220
+ 100% {
221
+ background-position: -3600px 0px;
222
+ }
223
+ }
224
+ `,animationStyle:"play90 3000ms steps(90) infinite forwards",type:1},thanks:{staticAsset:g,animatedAsset:_,gridAsset:m,label:t._('Thanks', 'Reaction label to tell a creator thank you', 'Reaction label to tell a creator thank you'),htmlStyle:`
225
+ @keyframes play60 {
226
+ 0% {
227
+ background-position: 0px 0px;
228
+ }
229
+ 100% {
230
+ background-position: -2400px 0px;
231
+ }
232
+ }
233
+ `,animationStyle:"play60 2000ms steps(60) infinite forwards",type:13},wow:{staticAsset:f,animatedAsset:y,gridAsset:v,label:t._('Wow', 'Reaction label to tell a creator that the pinner was wowed by their pin', 'Reaction label to tell a creator that the pinner was wowed by their pin'),htmlStyle:`
234
+ @keyframes play90 {
235
+ 0% {
236
+ background-position: 0px 0px;
237
+ }
238
+ 100% {
239
+ background-position: -3600px 0px;
240
+ }
241
+ }
242
+ `,animationStyle:"play90 3000ms steps(90) infinite forwards",type:11}};return x[e]||x.default}},681227:(e,t,i)=>{"use strict";function n(e){let t=Object.keys(e);if(t.length>0){let i=t.sort((t,i)=>e[i]-e[t]).slice(0,3);return i}return null}function l(e){let t=Object.values(e);if(t.length>0){let e=t.reduce((e,t)=>e+t,0);return e}return 0}function a(e,t,i){var n,l;return!e.isPromoted&&!e.isDownstreamPromotion&&!!(null!==(n=e.videos)&&void 0!==n&&n.entityId||e.storyPinDataId)&&!t&&(!(null!==(l=e.board)&&void 0!==l&&l.isCollaborative)||!e.board.collaboratedByMe)&&!i}i.d(t,{At:()=>n,J6:()=>a,Ud:()=>l})},561195:(e,t,i)=>{"use strict";i.d(t,{A:()=>r,Z:()=>o});var n=i(667294),l=i(883119),a=i(785893);let r=({fill:e,width:t})=>{let i="half"===e?(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(l.xu,{position:"absolute",children:(0,a.jsx)(l.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:12})}),(0,a.jsx)(l.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:12})]}):(0,a.jsx)(l.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:12});return(0,a.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock","data-test-id":`rating-star-${e}`,children:i})};function o({max_rating:e,rating:t,width:i}){var n;let o=[],s=parseFloat(e)||5,d=5*(n=(n=parseFloat(t)||0)<=s?n:s)/s;if(Number.isNaN(d))return null;let u=Math.floor(d),c=d-u;return[...Array(u).keys()].forEach(e=>o.push((0,a.jsx)(r,{fill:"full",width:i},e))),c>=.75?o.push((0,a.jsx)(r,{fill:"full",width:i},o.length)):c>=.25&&o.push((0,a.jsx)(r,{fill:"half",width:i},o.length)),[...Array(5-o.length).keys()].forEach(()=>o.push((0,a.jsx)(r,{fill:"empty",width:i},o.length))),(0,a.jsx)(l.xu,{position:"relative",display:"inlineBlock",width:15*s,children:o})}},923297:(e,t,i)=>{"use strict";function n({m:e=0,h:t=0}){return{m:e,h:t,rm:t>0?0:e,rh:t<=0?t:e>45?t+1:e>15?t+.5:t}}function l(e){let t=Math.floor(e/3600),i=Math.floor(e%3600/60);return n({m:i,h:t})}i.d(t,{X:()=>n,u:()=>l})},220306:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(667294),l=i(883119),a=i(485710),r=i(288889),o=i(319530),s=i(898781),d=i(785893);function u({category:e,ingredients:t,textSize:i="300"}){return(0,d.jsxs)(l.xu,{children:[e&&(0,d.jsx)(l.xu,{children:(0,d.jsx)(l.xv,{weight:"bold",size:i,children:e})}),(0,d.jsx)("ul",{children:t.map((e,t)=>(0,d.jsx)("li",{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",children:(0,d.jsx)(l.xu,{marginTop:1,children:(0,d.jsxs)(l.xv,{size:i,children:["• ",e.amt||null," ",e.name]})})},t))})]})}var c=i(134185);function p({recipeProps:e,marginOverrides:t}){let i=(0,s.ZP)(),{image:p,name:h,categorizedIngredients:_}=e.recipe,m=i._('Ingredients', 'Ingredients title and count in closeup recipe description', 'Ingredients title and count in closeup recipe description');if(_&&_.length){let e=[];_.forEach(t=>e.push(t.ingredients))}return(0,d.jsx)(l.xu,{marginTop:8,children:(0,d.jsxs)(c.Z,{itemScope:!0,itemType:"https://schema.org/Recipe",children:[(0,d.jsx)("meta",{content:h,itemProp:"name"}),(0,d.jsx)("meta",{content:p,itemProp:"image"}),(0,d.jsx)(a.Z,{heading:m,children:(0,d.jsx)(o.Z,{children:(0,d.jsx)(l.xu,{marginTop:4,children:_.map(({category:e,ingredients:i},a)=>{let o=`ingredient-${a}`;return(0,d.jsx)(n.Fragment,{children:(0,d.jsx)(l.xu,{marginBottom:(null==t?void 0:t.ingredientMarginBottom)||4,children:(0,d.jsx)(u,{category:e,ingredients:i,textSize:r.n})})},o)})})})})]})})}},833049:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(694379),l=i(349700),a=i(785893);function r({m:e,h:t,rm:i,rh:r},o){return e&&(!t||r<=0)?(0,l.nk)(o._('{{mins}}min', 'closeup.makeRecipeText.minutesLabel', 'Minutes label for Rich Pin Recipe'),{mins:(0,a.jsx)(n.Z,{maximumFractionDigits:2,value:i},"recipe-minutes")}):t?(0,l.nk)(o._('{{hrs}}hr', 'closeup.makeRecipeText.hoursLabel', 'Hours label for Rich Pin Recipe'),{hrs:(0,a.jsx)(n.Z,{maximumFractionDigits:2,value:r},"recipe-hours")}):null}},927220:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(349700);function l(e,t){return e<60?(0,n.nk)(t._('{{mins}}min', 'recipe.minutes', 'recipe in minutes. mins: recipe duration in minutes'),{mins:e}):(0,n.nk)(t._('{{hrs}}h {{mins}} min', 'recipe.time', 'recipe time. mins: recipe duration in minutes. hrs: recipe duration in hours'),{mins:e%60,hrs:Math.floor(e/60)})}},780280:(e,t,i)=>{"use strict";i.d(t,{B:()=>c,LC:()=>d,P2:()=>s,fH:()=>u,gf:()=>p});var n=i(667294),l=i(608832),a=i(239745),r=i(785893);let o=(0,n.createContext)();function s({children:e,initialValue:t}){let[i,s]=(0,n.useState)(t),d=(0,n.useMemo)(()=>({requestContext:i,updateRequestContext:e=>{let t={...i,...e};(0,a.Z)(i,e)||s(t),(0,l.J)(t)}}),[i]);return(0,r.jsx)(o.Provider,{value:d,children:e})}let d=({children:e})=>{let t=(0,n.useContext)(o);if(!t)throw Error("RequestContextConsumer must be used within a RequestContextProvider");return e(t.requestContext)},u=({children:e})=>{let t=(0,n.useContext)(o);if(!t)throw Error("RequestContextConsumer must be used within a RequestContextProvider");return e(t.requestContext)};function c(){let e=(0,n.useContext)(o);if(!e)throw Error("useRequestContext must be used within a RequestContextProvider");return e.requestContext}function p(){let e=(0,n.useContext)(o);if(!e)throw Error("useUpdateRequestContext must be used within a RequestContextProvider");return e.updateRequestContext}},608832:(e,t,i)=>{"use strict";let n;function l(e){n=e}function a(){return n}i.d(t,{J:()=>l,l:()=>a})},505920:(e,t,i)=>{"use strict";i.d(t,{UZ:()=>c,Z8:()=>p,my:()=>h});var n=i(667294);i(702664);var l=i(214494),a=i(425288),r=i(785893);function o(e,t,i){var n;let l=[...null!==(n=t[e][i.payload.name])&&void 0!==n?n:[],i.payload.handler],a={...t};return a[e]={...t[e],[i.payload.name]:l},a}function s(e,t,i){if(!t[e][i.payload.name])return t;let n=t[e][i.payload.name].filter(e=>e!==i.payload.handler),l={...t};return l[e]={...t[e],[i.payload.name]:n},l}let{Provider:d,useHook:u}=(0,a.Z)("ResourceContext");function c({children:e}){let[{listeners:t,moreListeners:i},a]=(0,n.useReducer)((e,t)=>{switch(t.type){case"addListener":return o("listeners",e,t);case"addMoreListener":return o("moreListeners",e,t);case"removeListener":return s("listeners",e,t);case"removeMoreListener":return s("moreListeners",e,t);default:return e}},{listeners:{},moreListeners:{}});l.Z.fetchCompleteCallback=({resource:e,options:i,response:n,normalizedResponse:l,refresh:a,resourceSchema:r})=>{t[e]&&t[e].forEach(t=>t({isRefresh:a,normalizedResponse:l,options:i,schema:r,resource:e,response:n}))},l.Z.fetchMoreCompleteCallback=({resource:e,options:t,response:n,normalizedResponse:l,refresh:a,resourceSchema:r})=>{i[e]&&i[e].forEach(i=>i({isRefresh:a,normalizedResponse:l,options:t,schema:r,resource:e,response:n}))};let u=(0,n.useMemo)(()=>({listenerDispatch:a}),[]);return(0,r.jsx)(d,{value:u,children:e})}function p(e,t){let{listenerDispatch:i}=u();(0,n.useEffect)(()=>(i({type:"addListener",payload:{name:e,handler:t}}),()=>{i({type:"removeListener",payload:{name:e,handler:t}})}))}function h(e,t){let{listenerDispatch:i}=u();(0,n.useEffect)(()=>(i({type:"addMoreListener",payload:{name:e,handler:t}}),()=>{i({type:"removeMoreListener",payload:{name:e,handler:t}})}))}},784590:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(667294),l=i(702664),a=i(616550),r=i(886858),o=i(780280),s=i(248327),d=i(718368);let u={},c=({httpStatus:e})=>!e||e>=500;function p(e){let{enabledRouteRefresh:t,__unstableEnableSuspenseSupport:i,headers:p,name:h,noCache:_,options:m,schema:g}=null!=e?e:{name:"DisabledResource",options:null},y=!e,v=(0,l.useDispatch)(),f=(0,r.Z)(m),x=(0,n.useRef)(null),b=(0,n.useRef)(),P=(0,a.useHistory)(),w=P&&"POP"!==P.action,S=e=>(e[h]||u)[f]||u,k=(0,l.useSelector)(({resources:e})=>S(e).nextBookmark),j=(0,l.useSelector)(({resources:e})=>S(e).data),A=(0,l.useSelector)(({resources:e})=>S(e).auxData),C=(0,l.useSelector)(({resources:e})=>S(e).error),D=(0,l.useSelector)(({resources:e})=>!!S(e).fetching),E="object"==typeof A&&"string"==typeof(null==A?void 0:A.pagination_group)?A.pagination_group:void 0,I=!!C||void 0!==j,T=I&&!D&&k===d.q,F=!!(I&&t&&w&&!y),[z,R]=(0,n.useState)(F),L=(0,n.useCallback)((e,t)=>{x.current=v((0,s.U)(h,{options:m,schema:g,bookmark:e,headers:p,paginationGroup:t}))},[v,h,f,g,p]),M=()=>{x.current=v((0,s.b)(h,{options:m,schema:g,headers:p}))},{isBot:Z}=(0,o.B)(),B=()=>{if(!y&&b.current!==f){let e=void 0===b.current;b.current=f,!I&&!D||e&&C&&c(C)?L():(!Z&&_||F)&&M()}};(0,n.useEffect)(()=>{i||B()}),i&&B();let O=(0,n.useCallback)(()=>{y||(M(),R(!0))},[y,s.b,h,f,p,R]),N=(0,n.useCallback)(()=>{!k||T||D||y||L(k,E)},[y,L,k,T,D,E]);if(x.current){if(I&&!D)x.current=null;else if(i)throw x.current}let K=(0,n.useRef)({auxData:void 0,data:void 0,error:void 0,fetchMore:N,isAtEnd:!1,isFetching:!1,isLoaded:!1,isRefreshing:!1,nextBookmark:void 0,refresh:O}),U={auxData:A,data:j,error:C,fetchMore:N,isAtEnd:T,isFetching:D,isLoaded:I,isRefreshing:z,nextBookmark:k,refresh:O};return(0,l.shallowEqual)(U,K.current)||(z&&(K.current.data||!F)&&!(0,l.shallowEqual)(U.data,K.current.data)&&(U.isRefreshing=!1,R(!1)),K.current=U),K.current}},989726:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(616550),l=i(53987),a=i(176843),r=i(784590),o=i(19121);function s(e){let t=(0,n.useHistory)(),i=(0,n.useLocation)(),{isAuth:s}=(0,o.Z)(),d=!s&&(0,l.L6)(i),u=(0,r.Z)(e),c=(0,a.Z)(u,d);return c&&t.replace(c.pathname,c.state),u}},134185:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(785893);let l=e=>{let t=e.itemType?{itemScope:!0,itemType:e.itemType}:{};return(0,n.jsx)("div",{"data-test-id":"rich-pin-information",...t,children:e.children||null})}},736688:(e,t,i)=>{"use strict";i.d(t,{QO:()=>o,V3:()=>a,cO:()=>c,dn:()=>d,fP:()=>u,zP:()=>r});var n=i(841726),l=i(867820);let a=e=>{let{thumbnail:t,url:i,width:n,height:l,duration:a}=e||{};return t&&i&&n&&l&&{thumbnail:t,url:i,width:n,height:l,duration:a}||void 0},r=({isEligible:e,hasName:t,hasAggregateRating:i,hasOffers:n})=>{(0,l.My)("closeup_main_pin.leaf_snippet.is_product",{isEligible:e,hasName:t,hasAggregateRating:i,hasOffers:n})},o=(e,{userName:t,fullName:i})=>{let n=t||"";return{"@type":"Person",name:i||n,url:e+"/"+n}},s=e=>(0,n.o)(e||"").trim();function d(e,t,i,n,l,a){i=i.trim(),t=t.trim();let r=t||a||i||n;if(!e||!e.metatags)return{title:r,description:i||t||l};let{description:o=""}=e.metatags,d=s(o),u=d||t||l;return{title:r,description:u}}let u=(e,t,i)=>{let n=t;return i?{fallbackTitle:n="recipe"===e?i._('Pinterest Recipe', 'pin.closeup.leafsnippet.recipe', 'Default recipe title and description for crawlers'):"howto"===e?i._('Pinterest How To', 'pin.closeup.leafsnippet.howto', 'Default how to title and description for crawlers'):"video"===e?i._('Pinterest Video', 'pin.closeup.leafsnippet.video', 'Default video title and description for crawlers'):"product"===e?i._('Pinterest Product', 'pin.closeup.leafsnippet.product', 'Default product title and description for crawlers'):i._('Pin page', 'pin.closeup.leafsnippet.pin', 'Default pin title and description for crawlers'),fallbackDescription:n}:{fallbackTitle:n,fallbackDescription:n}},c=e=>{if(!e)return;let t=!!e.ratingCount||!!e.reviewCount;if(!t||Number.isNaN(parseFloat(e.ratingValue)))return;let i=e.ratingCount||e.reviewCount;return{"@type":"AggregateRating",ratingValue:e.ratingValue,ratingCount:i,bestRating:5,worstRating:1}}},995228:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(667294),l=i(785893);function a({children:e,fallback:t}){return(0,l.jsx)(n.Suspense,{fallback:t||null,children:e})}},947599:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(995228);let l=n.Z},251183:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(77601);function l({scrollPosition:e,containerSize:t,contentSize:i,intendedDistance:n,extendToEdgeDistance:l=0}){let a=i-t,r=n;return r=Math.max(r=Math.min(r,a-e),-e),n>0&&a-(e+r)<=l?r=a-e:n<0&&e+r<=l&&(r=-e),r}let a={easingFunction:"ease-in-out",extendToEdgeDistanceX:0,extendToEdgeDistanceY:0,scrollSpeedPxPerMs:1.2,minScrollDuration:200},r={linear:e=>e,"ease-in":e=>e*e,"ease-out":e=>e*(2-e),"ease-in-out":e=>e<.5?2*e*e:-1+(4-2*e)*e};function o(e,t,i,o={}){let s={...a,...o},{scrollLeft:d,scrollTop:u,scrollWidth:c,scrollHeight:p,clientWidth:h,clientHeight:_}=e,m=l({scrollPosition:d,containerSize:h,contentSize:c,intendedDistance:t,extendToEdgeDistance:s.extendToEdgeDistanceX}),g=l({scrollPosition:u,containerSize:_,contentSize:p,intendedDistance:i,extendToEdgeDistance:s.extendToEdgeDistanceY}),y=Math.abs(Math.floor(m/s.scrollSpeedPxPerMs)),v=Math.abs(Math.floor(g/s.scrollSpeedPxPerMs)),f=Math.max(y,v);s.minScrollDuration&&(f=Math.max(f,s.minScrollDuration));let x=r[s.easingFunction]||r["ease-in-out"],b=(0,n.Z)({window,duration:f,run:t=>{e.scrollLeft=d+m*x(t),e.scrollTop=u+g*x(t),1===t&&s.onAnimationComplete&&setTimeout(s.onAnimationComplete,0)}});return b}},304903:(e,t,i)=>{"use strict";function n(e){return e===window?window.innerHeight:e.clientHeight}function l(){return void 0!==window.scrollY?window.scrollY:document.documentElement&&void 0!==document.documentElement.scrollTop?document.documentElement.scrollTop:0}function a(e){return e===window&&document.documentElement?document.documentElement.scrollHeight:e.scrollHeight}function r(e){return e===window?l():e.scrollTop}function o(){window&&window.scroll(0,0)}i.d(t,{MX:()=>r,S$:()=>l,Uy:()=>n,aZ:()=>a,vM:()=>o})},940589:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(643913);function l(e){let{query:t,rs:i,scope:l,guideAdded:a,filters:r,user:o,requestParams:s}=e;if(!t)return"/";let d={q:t,rs:i,...s};if(r&&(d.filters=r),o&&(d.user=o),a&&a.term&&(d.add_refine=`${a.term}|guide|word|${a.index}`),window.location.pathname.startsWith("/explore"))return`/search/pins/?${(0,n.Z)(d)}`;let u=l;return["pins","buyable_pins","my_pins","boards","users","idea_pins"].includes(u)||(u="pins"),u?`/search/${u}/?${(0,n.Z)(d)}`:`${window.location.pathname}?${(0,n.Z)(d)}`}},595371:(e,t,i)=>{"use strict";i.d(t,{i:()=>n});let n={AC:"ac",AUTOCOMPLETE:"autocomplete",DIRECT_NAVIGATION:"direct_navigation",FILTER:"filter",GUIDED_SEARCH_ENTRY:"guided_search_entry",GUIDED_SEARCH_LANDING:"guided_search_landing",HASHTAG_CLOSEUP:"hashtag_closeup",HASHTAG_PINREP:"hashtag_pinrep",HOMEFEED_BUBBLE:"homefeed_bubble",HUB_PAGE:"hub_page",IMAGE_ONLY_ATTRIBUTION:"image_only_attribution",LANDING_PAGE_STORY:"landing_page_story",NO_RESULTS_SEARCH_STORY:"no_results_search_story",PRODUCT:"product",REMOVE:"remove",RS:"rs",SITELINKS_SEARCHBOX:"sitelinks_searchbox",SLP_REC_CURATED:"slp_rec_curated",SLP_REC_TRENDING:"slp_rec_trending",SRS:"srs",STRUCTURED_GUIDE:"structured_guide",TRENDING:"trending",TYPED:"typed",TYPO_AUTO_ORIGINAL:"typo_auto_original",TYPO_SUGGESTION:"typo_suggestion",UNKNOWN:"Unknown",VANILLA_GUIDE:"guide",VIDEO:"video"}},80816:(e,t,i)=>{"use strict";i.d(t,{i:()=>n});let n={REGISTRATION:"registration",SETTINGS:"settings",GOOGLE_PEOPLE_API:"google_people_api",HOLISTIC_PROFILE_PROMPT:"holistic_profile_prompt",IN_APP_BIRTHDAY_PROMPT:"in_app_birthday_prompt",FIX_EMAIL_PROMPT:"fix_email_prompt",NUX:"nux",UNKNOWN:"unknown"}},239745:(e,t,i)=>{"use strict";function n(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let i=Object.keys(e),n=Object.keys(t);return i.length===n.length&&i.every(i=>e[i]===t[i])}i.d(t,{Z:()=>n})},53325:(e,t,i)=>{"use strict";i.d(t,{GZ:()=>n,OE:()=>l,zX:()=>a});let n=246,l=197,a=236},458882:(e,t,i)=>{"use strict";i.d(t,{l:()=>a,r:()=>r});var n=i(667294);let l=(0,n.createContext)(null),a=()=>(0,n.useContext)(l),r=l.Provider},667679:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(780679),l=i(458882);let a=()=>{let e=(0,n.g)(),t=(0,l.l)();return i=>{let{mobileOptions:n,desktopOptions:l,reason:a,attributionLabel:r,pinId:o}=i;e?e.showDesktopSignupModal({signupFlow:(null==l?void 0:l.modalType)==="login"?{type:"login"}:{type:"signup"},reason:a,attributionLabel:r,...null==l?void 0:l.modalOptions}):t&&t.showMobileSignupModal({reason:a,attributionLabel:r,headingType:null==n?void 0:n.headingType,pinId:o})}}},764537:(e,t,i)=>{"use strict";i.d(t,{l3:()=>eg,hy:()=>e_,ZP:()=>ex});var n=i(667294),l=i(616550),a=i(883119),r=i(459263),o=i(386352),s=i(233316),d=i(860507),u=i(898781),c=i(224496),p=i(430323),h=i(785893);function _({activePageIndex:e,closeupStoryPinViewability:t,customEndCard:i,fontsLoaded:l,hideMute:r,isActive:_,isPreview:m,muteVideos:g,onChangeMuteVideo:y,onEnded:v,onFlyoutOpen:f,onUpdateVideoInfo:x,ownerId:b,page:P,pageAspectRatio:w,pageHeight:S,pageIndex:k,pageWidth:j,pinId:A,productPins:C,shouldLogTimeSpent:D=!0,stillLoading:E=!1,videoPinProgress:I,viewParameter:T,viewType:F}){var z;let R=(0,u.ZP)(),L=(0,d.Z)(),[M,Z]=(0,n.useState)(!1),{background_color:B}=P.style||{},{nonRenderableBlocks:O,blocks:N}=(0,s.Z)({storyPinBlocks:null!==(z=P.blocks)&&void 0!==z?z:[]}),K=!!N.find(e=>e.type===c.h8.VIDEO),U=!!N.find(e=>!!e.video&&e.type===c.h8.VIDEO&&e.video_signature),H=O.find(e=>e.type===c.h8.MUSIC),V=(null==H?void 0:H.type)==="story_pin_music_block"?H.provider_recording_id:void 0,G=()=>(0,h.jsx)(a.iP,{fullHeight:!0,onMouseEnter:()=>Z(!0),onMouseLeave:()=>Z(!1),children:(0,h.jsxs)(a.xu,{dangerouslySetInlineStyle:{__style:{background:B||"#fff"}},height:"100%",children:[!m&&N.filter(e=>!K||U||e.type===c.h8.VIDEO).map((n,a)=>{var r,s;let d=(C||[]).find(e=>[e.id,e.cacheable_id].includes(n.pin_id));return(0,h.jsx)(o.ZP,{activePageIndex:e,customEndCard:i,block:n,closeupStoryPinViewability:t,disableProductStickers:L,fontsLoaded:l,isActive:_,isSplitLayout:3===P.layout,musicRecordingId:V,muteVideos:g,ownerId:b,onEnded:v,onFlyoutOpen:f,videoPinProgress:I,onUpdateVideoInfo:x,pageAspectRatio:w,pageIndex:k,pageHeight:S,pageWidth:j,pinId:A,pinKey:null!=d?{type:"deprecated",data:d}:null,stillLoading:E},`${null!==(r=P.id)&&void 0!==r?r:""}-${null!==(s=n.type)&&void 0!==s?s:""}-${a}`)}),!r&&!m&&U&&(M||g)?(0,h.jsx)(a.xu,{bottom:!0,left:!0,padding:4,position:"absolute",children:g?(0,h.jsx)(a.hU,{accessibilityLabel:R._('Click to unmute', 'closeup.storyPin.storyPinVideo.volume', 'Button to unmute the video'),bgColor:"white",icon:"mute",iconColor:"darkGray",onClick:()=>{y(!1)},size:"md"}):(0,h.jsx)(a.hU,{accessibilityLabel:R._('Click to mute', 'closeup.storyPin.storyPinVideo.volume', 'Button to mute the video'),bgColor:"white",icon:"sound",iconColor:"darkGray",onClick:()=>y(!0),size:"md"})}):null]})});return D?(0,h.jsx)(p.Z,{view:F,viewParameter:T,component:0===k?227:228,auxData:{story_pin_page_id:k},shouldUseGrandparentId:!0,children:G()}):G()}var m=i(182750),g=i(702664),y=i(287072),v=i(357787),f=i(350118);let x=(0,v.Z)(e=>{let t=(0,u.ZP)(),{sourceUrl:i,linkText:n,displayUrl:l,image:r,pageId:o,canonicalUrl:s,pinId:d,onTouch:c,onClickThrough:p,isLoading:_}=e,m=(0,g.useSelector)(t=>{var i,n;return e.pinId&&(null===(i=t.pins)||void 0===i?void 0:null===(n=i[e.pinId])||void 0===n?void 0:n.story_pin_data_id)}),v={story_pin_page_id:o,story_pin_data_id:m,src_url:i,canonical_url:s},x=()=>{p&&p({auxData:v})},b=(0,h.jsxs)(a.xu,{display:"flex",rounding:2,overflow:"hidden",alignItems:"center",borderStyle:"sm",children:[(0,h.jsx)(a.xu,{minWidth:80,width:80,height:80,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",color:_||r&&r.url?void 0:"secondary",dangerouslySetInlineStyle:{__style:{borderRight:"1px solid lightGray"}},children:_?(0,h.jsx)(a.$j,{accessibilityLabel:t._('Loading website', 'a11y for loading spinner', 'a11y for loading spinner'),show:!0}):(e=>{if(r&&r.url){var i,n;return(0,h.jsx)(a.Ee,{fit:"cover",src:r.url,alt:e,naturalHeight:null!==(i=r.height)&&void 0!==i?i:1,naturalWidth:null!==(n=r.width)&&void 0!==n?n:1})}return(0,h.jsx)(a.JO,{icon:"link",accessibilityLabel:t._('Default link block icon', 'Icon for default link blocks without an image', 'Icon for default link blocks without an image'),color:"subtle",size:35})})(n)}),(0,h.jsxs)(a.xu,{paddingX:5,flex:"grow",overflow:"hidden",dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[(0,h.jsx)(a.xv,{lineClamp:1,weight:"bold",children:n}),(0,h.jsx)(a.xv,{size:"200",color:"shopping",children:l})]})]}),P=(0,f.S6)()(d),w=(0,y.Z)({href:i,target:"blank",externalData:P?{pin:P&&{attributionSourceId:P.attribution_source_id,board:P.board&&{url:P.board.url},campaignId:P.campaign_id,entityId:P.id,isDownstreamPromotion:P.is_downstream_promotion,isPromoted:P.is_promoted,pinner:P.pinner&&{username:P.pinner.username},pinPromotionId:P.pin_promotion_id,promoter:P.promoter&&{entityId:P.promoter.id},storyPinDataId:P.story_pin_data_id,trackingParams:P.tracking_params,trackingParamsMap:P.tracking_params_map,advertiserId:P.advertiser_id}}:void 0});return c?(0,h.jsx)(a.iP,{onTap:c,rounding:2,children:b}):(0,h.jsx)(a.Tg,{href:i,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),x(),w({event:e})},rel:"nofollow",rounding:2,target:"blank",children:b})});var b=i(407043);let P=({block:e,pageId:t,pinId:i,onClickThrough:n})=>{var l;let{logContextEvent:r}=(0,b.v)();switch(e.type){case c.h8.LINK:let{canonical_url:o,image:s,normalized_url:d,src_url:u,text:p=""}=e,_=null==s?void 0:null===(l=s.images)||void 0===l?void 0:l["345x"];if(s&&u&&d&&o)return(0,h.jsx)(a.xu,{marginTop:5,children:(0,h.jsx)(x,{canonicalUrl:o,displayUrl:d,image:_,linkText:p,onClickThrough:n,onVisibilityChanged:e=>{e&&r({event_type:120,view_type:3,view_parameter:157,component:228,element:11157,object_id_str:i,aux_data:{story_pin_page_id:t,srcUrl:u,canonicalUrl:o}})},pageId:t,pinId:i,sourceUrl:u})});return null;case c.h8.HEADING:{let{text:t=""}=e;return(0,h.jsx)(a.xu,{marginBottom:4,paddingX:2,children:(0,h.jsx)(a.X6,{size:"500",overflow:"normal",accessibilityLevel:2,children:t})})}case c.h8.PARAGRAPH:{let{text:t=""}=e;return(0,h.jsx)(a.xu,{paddingX:2,dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-line"}},children:(0,h.jsx)(a.xv,{children:(0,h.jsxs)(m.Z,{children:[" ",t," "]})})})}default:return null}},w=e=>{let{blocks:t,pageId:i,pinId:n,onClickThrough:l}=e;return(0,h.jsx)("div",{className:"StoryPinText",children:t.filter(e=>e).map((e,t)=>(0,h.jsx)(P,{block:e,pageId:i,pinId:n,onClickThrough:l},t))})};var S=i(280348);let k=375*c.ap;function j(e){var t,i,l;let r=(0,u.ZP)(),{activePageIndex:o,hideText:s,isActive:d,isCoverPage:c,muteVideos:p,onClickThrough:_,page:{image_adjusted:m,image:g,blocks:y,video:v,id:f},pageIndex:x,pageWidth:b,pinId:P}=e,{images:j={}}=m||g||{},A=j["750x"],{video_list:C={}}=v||{},D=C.V_HLSV3_MOBILE||C.V_720P;if(!A&&!D)return null;let E=b/375;return(0,h.jsxs)(n.Fragment,{children:[!!v&&!!D&&(0,h.jsx)(S.Z,{activePageIndex:o,blockHeight:k*E,blockWidth:375*E,isPlaying:d,muted:p,pageIndex:x,pinId:P,video:v}),A&&!D&&(0,h.jsx)(a.Ee,{alt:function(e){var t,i;let n="";for(let t of null!==(i=e.blocks)&&void 0!==i?i:[])[1,0].includes(t.block_type)&&(n=t.text?t.text:"");return null!==(t=n)&&void 0!==t?t:""}(e.page)||r._('Story pin image', 'Alt text for story pin image', 'Alt text for story pin image'),fit:c?"cover":"contain",naturalHeight:null!==(t=A.height)&&void 0!==t?t:1,naturalWidth:null!==(i=A.width)&&void 0!==i?i:1,src:null!==(l=A.url)&&void 0!==l?l:""}),y&&y.length>0&&!s&&(0,h.jsx)("div",{className:"StoryPinTextDrawer",children:(0,h.jsx)(w,{blocks:y,onClickThrough:_,pageId:f,pinId:P})})]})}let A=e=>{var t;let{page:{image_adjusted:i,blocks:l}}=e,{images:r={}}=i||{},o=r["750x"];if(!o)return null;let{width:s,height:d}=o;return(0,h.jsx)(n.Fragment,{children:o&&(0,h.jsx)(a.Ee,{src:null!==(t=o.url)&&void 0!==t?t:"",alt:(null!=l?l:[]).map(e=>e.text||"").join(),naturalWidth:null!=s?s:1,naturalHeight:null!=d?d:1,fit:"contain"})})};var C=i(441253),D=i(558068),E=i(784590),I=i(488789),T=i(92261),F=i(697335);function z({children:e,closeupStoryPinViewability:t,productPins:i,viewParameter:n,viewType:l}){let{previous:a,forward:r}=(0,D.Hv)(),o=0===a.length&&0===r.length,s=(0,F.t)();return(0,h.jsx)(I.o,{closeupPaneWidth:T.Gg,headerHeight:s,isLandingPage:o,loadFonts:C.Z,renderStoryPinMediaLayout:({activePageIndex:e,hideText:t,isActive:i,isCoverPage:n,muteVideos:l,onClickThrough:a,page:r,pageIndex:o,pageWidth:s,pinId:d})=>(0,h.jsx)(j,{activePageIndex:e,hideText:t,isActive:i,isCoverPage:n,muteVideos:l,onClickThrough:a,page:r,pageIndex:o,pageWidth:s,pinId:d}),renderStoryPinSplitLayout:({page:e})=>(0,h.jsx)(A,{page:e}),renderStoryPinText:({blocks:e,onClickThrough:t,pageId:i,pinId:n})=>(0,h.jsx)(w,{blocks:e,onClickThrough:t,pageId:i,pinId:n}),renderStoryPinPage:({activePageIndex:e,customEndCard:i,fontsLoaded:a,isActive:r,muteVideos:o,onChangeMuteVideo:s,onEnded:d,onFlyoutOpen:u,onUpdateVideoInfo:c,page:p,pageAspectRatio:m,pageHeight:g,pageWidth:y,ownerId:v,pinId:f,productPins:x,shouldLogTimeSpent:b,stillLoading:P,videoPinProgress:w})=>(0,h.jsx)(_,{activePageIndex:e,closeupStoryPinViewability:t,fontsLoaded:a,isActive:r,customEndCard:i,muteVideos:o,onChangeMuteVideo:s,onEnded:d,onFlyoutOpen:u,videoPinProgress:w,onUpdateVideoInfo:c,ownerId:v,page:p,pageAspectRatio:m,pageIndex:e,pageHeight:g,pageWidth:y,productPins:x,pinId:f,shouldLogTimeSpent:b,stillLoading:P,hideMute:!0,viewType:l,viewParameter:n}),productPins:i,children:e})}function R({children:e,isInStream:t,viewType:i,viewParameter:n}){return t?e:(0,h.jsx)(p.Z,{view:i,viewParameter:n,component:85,children:e})}function L({children:e,pin:t}){let i=(0,E.Z)({name:"StoryPinTaggedProductsResource",options:{id:t.id},noCache:!0});return e({productPins:i.data||[]})}function M({children:e,closeupStoryPinViewability:t,pin:i,isInStream:n=!1,viewType:l,viewParameter:a}){var r;let o=!!(null!==(r=i.story_pin_data)&&void 0!==r&&r.has_product_pins),s=({productPins:i})=>(0,h.jsx)(z,{closeupStoryPinViewability:t,viewType:l,viewParameter:a,productPins:i,children:e});return(0,h.jsx)(R,{isInStream:n,viewType:l,viewParameter:a,children:o?(0,h.jsx)(L,{pin:i,children:s}):s({productPins:[]})})}var Z=i(768559),B=i(827896),O=i(112690),N=i(319915),K=i(543972),U=i(623568),H=i(223008),V=i(692627),G=i(773285),W=i(276602),$=i(47168),q=i(780280),Y=i(947599),X=i(483205),Q=i(52022);function J({appConfig:e}){let t=(0,u.ZP)(),i=(0,Q.Z)(),{isRTL:l}=(0,q.B)();return(0,h.jsx)(n.Fragment,{children:(0,h.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{marginTop:16}},"data-test-id":"back-button",right:l,left:!l,top:!0,paddingX:4,position:"absolute",children:"authDesktop"===e.type&&(0,h.jsx)(a.hU,{accessibilityLabel:t._('Back button', 'storyPin.closeup.back', 'Button label to navigate to previous page'),bgColor:"transparent",icon:"directional-arrow-left",iconColor:"darkGray",onClick:()=>{i({action:"click",item:"back-button"}),e.onNavigateBack()},size:"lg"})})})}var ee=i(646422),et=i(124364),ei=i(534611),en=i(775151),el=i(858416),ea=i(700314),er=i(829407),eo=i(179888),es=i(924114);let ed=(0,n.lazy)(()=>i.e(3434).then(i.bind(i,79214))),eu=(0,n.lazy)(()=>i.e(50157).then(i.bind(i,247181))),ec=(0,n.lazy)(()=>Promise.all([i.e(97270),i.e(48937),i.e(22555),i.e(59072),i.e(43473)]).then(i.bind(i,666258))),ep=(0,n.lazy)(()=>Promise.all([i.e(11177),i.e(24859)]).then(i.bind(i,411177))),eh=(0,n.lazy)(()=>i.e(21408).then(i.bind(i,781099))),e_=128,em={backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0))",pointerEvents:"none",borderRadius:"32px 32px 0 0"},eg={backgroundImage:"linear-gradient(to top, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0))",pointerEvents:"none",borderRadius:"0 0 32px 32px",bottom:0},ey={backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0))",borderRadius:"32px 32px 0 0",paddingTop:"30px",top:0},ev=[5,6,2];function ef({appConfig:e,isInFocus:t,isInStream:i=!1,isStreamMuted:l,isStreamPanelOpen:o=!0,pin:s,storyPinData:d,onIdeaPinCloseupCommentClick:p,setStreamIsMuted:_,streamItemIndex:m,togglePanel:g,variant:y,viewType:v=3,viewParameterType:f,onTogglePanel:x}){var b,P,w,S,k,j,A,C;let D=(0,I.c)(),E=(0,B.Z)(),T=(0,u.ZP)(),F=(0,O.Z)(),z=(0,$.g)(),R=(0,W.E)(),{setIdeaPinActivePage:L,setIdeaPinDynamicWidth:M}=(0,es.Ut)(),{activePage:Z}=(0,es.H8)(),{clearSeekTime:K}=(0,el.RC)(),{seekTimes:Q}=(0,el.Hx)(),{closeupPaneWidth:ef,headerHeight:ex,isLandingPage:eb,renderStoryPinMediaLayout:eP,renderStoryPinPage:ew,renderStoryPinSplitLayout:eS,renderStoryPinText:ek,productPins:ej}=D||{},{id:eA,image_signature:eC,story_pin_data_id:eD}=s,eE=Q&&Q[s.id],eI=!!(null!=d&&d.is_deleted),eT=null===(b=s.native_creator)||void 0===b?void 0:b.id,{pages:eF=[],metadata:ez={}}=d||{},{canvas_aspect_ratio:eR,version:eL}=ez,eM=null!=eR?eR:c.ap,[eZ,eB]=(0,n.useState)(0),eO=(0,n.useRef)(0),eN=(0,n.useRef)(null),[eK,eU]=(0,n.useState)("closeup"===y&&t),[eH,eV]=(0,n.useState)(375),eG="calc(100% - 32px)",eW=(0,n.useRef)(null),[e$,eq]=(0,n.useState)(!1),[eY,eX]=(0,n.useState)(!1),[eQ,eJ]=(0,n.useState)(!0);(0,n.useEffect)(()=>{x&&x(eQ)},[eQ,x]),(0,n.useEffect)(()=>{eJ(o)},[o]);let e0=eF[eZ],{should_mute:e1=!0,music_attributions:e2=[]}=e0,[e8,e3]=(0,n.useState)(eb||e1),e6=void 0!==_?_:e3,e9=void 0!==l?l:e8;(0,n.useEffect)(()=>{e1&&e6(!0)},[e1,e6]);let e7=eF.filter(e=>!ev.includes(e.layout)),e4=e7.length,e5=e7[eZ],te=f||(0,V.Z)({hasPin:!!s,hasPinRichMetadata:!!s.rich_metadata,hasPinRichMetadataProducts:!!(null!==(P=s.rich_metadata)&&void 0!==P&&P.products),hasPinRichMetadataArticle:!!(null!==(w=s.rich_metadata)&&void 0!==w&&w.article),hasPinRichMetadataRecipe:!!(null!==(S=s.rich_metadata)&&void 0!==S&&S.recipe),hasPinStoryPinData:!!s.story_pin_data}),tt=ex+64,{getNormalizedPinImage:ti}=(0,H.Z)({pinKey:{type:"deprecated",data:s},maxWidth:X.RZ}),tn="closeup"===y,tl=()=>{if("undefined"!=typeof window){let e=window.innerWidth-(eQ?ef:0)-216;if(tn)eV(function({availableWidth:e,pageAspectRatio:t,unavailableHeight:i,windowInnerHeight:n}){let l=n-i,a=Math.min(Math.max(650,Math.min((n-i)*t,e)),1e3);return a/t>=l&&(a=l*t),a}({availableWidth:e,pageAspectRatio:eM,unavailableHeight:tt,windowInnerHeight:window.innerHeight}));else{let{width:e}=ti();eV(e),M(e)}}};(0,er.Z)(()=>(window.addEventListener("resize",tl),tl(),()=>{window.removeEventListener("resize",tl)}));let[ta,tr]=(0,n.useState)(!1),[to,ts]=(0,n.useState)(null),[td,tu]=(0,n.useState)(!1);(0,n.useEffect)(()=>{!td&&t&&(F({event_type:7588,view_type:v,view_parameter:te,component:13801,object_id_str:eA,aux_data:{..."number"==typeof m?{grid_index:m}:{}}}),tu(!0))},[td,t,F,eA,v,te,m]);let[tc,tp]=(0,n.useState)(!1);(0,n.useEffect)(()=>{!tc&&t&&i&&(F({event_type:9314,view_type:v,view_parameter:te,component:13801,aux_data:{grid_index:m,pin_id:eA,image_signature:eC,creator_id:eT,story_pin_data_id:eD},clientTrackingParams:E(eA,{shouldTrackForPrevLocation:!0})}),tp(!0))},[E,eT,eC,t,i,eD,v,te,eA,tc,F,m]);let th=(0,n.useCallback)(e=>{let i=eF[e],{blocks:n}=i||{},l=null==n?void 0:n.find(e=>3===e.block_type);eW.current&&eW.current instanceof ea.B7&&(eW.current.clear(),eW.current=null),!l&&t&&(eW.current=new ea.B7(e=>{ts({currentTime:e<1?e:1,duration:1})},()=>{let t="closeup"===y?e:Z;if(t<e4-1){if(eW.current&&eW.current instanceof ea.B7){let e=eW.current;e.clear(),eW.current=null}ty(t+1)}else eq(!0),eU(!1)},U.oN))},[t,e4,eF,Z,y]),t_=e=>{ts({currentTime:0,duration:1}),th(e)};(0,n.useEffect)(()=>{eO.current=eZ},[eZ]),(0,n.useEffect)(()=>{eN.current=eK},[eK]),(0,er.Z)(()=>(t_(eZ),()=>{eW.current&&eW.current instanceof ea.B7&&eN.current&&eW.current.clear()}));let tm=()=>{R&&(R.addBinaryAnnotation("page.current.index",eZ,"I16"),R.addBinaryAnnotation("page.count",eF.length,"I16"),R.addBinaryAnnotation("view.type",v,"I32"),R.addBinaryAnnotation("view.parameter",te,"I32"))},tg=e=>{R&&R.abort("startNewPwt"),z&&(z.abort("startNewPwt"),z.start(),z.addBinaryAnnotation("page.current.index",e,"I16"),z.addBinaryAnnotation("page.count",eF.length,"I16"),z.addBinaryAnnotation("view.type",v,"I32"),z.addBinaryAnnotation("view.parameter",te,"I32"))};(0,er.Z)(()=>{tm()});let ty=e=>{eK||eU(!0),e$&&eq(!1),t_(e),e!==eZ&&K(),eB(e),L(e),tg(e)};(0,n.useEffect)(()=>{if(e$&&eq(!1),eW.current&&eE){let e=eW.current;e.pause(),e.remaining=U.oN-eE*eo.gJ,ts({currentTime:eE/U.P6,duration:1})}},[eE]),(0,n.useEffect)(()=>{L(Z)},[L,Z]),(0,n.useEffect)(()=>{"related-products"===y&&(eB(Z),ty(Z))},[Z,y]);let tv=()=>e$?13799:0===eZ?227:228,tf=()=>{eZ<e4-1&&(ty(eZ+1),F({event_type:101,view_type:v,view_parameter:te,component:tv(),element:12261,object_id_str:eA}))},tx=()=>{eZ===e4-1&&e$?(ty(eZ),F({event_type:101,view_type:v,view_parameter:te,component:tv(),element:12260,object_id_str:eA})):eZ>0&&(ty(eZ-1),F({event_type:101,view_type:v,view_parameter:te,component:tv(),element:12260,object_id_str:eA}))},tb=e=>{let{keyCode:t}=e,{srcElement:i}=e,n=i.isContentEditable||i.contentEditable&&"true"===i.contentEditable;37!==t||n?39!==t||n||tf():tx()};(0,n.useEffect)(()=>(document.addEventListener("keydown",tb),()=>document.removeEventListener("keydown",tb)),[eZ]);let{fontsLoaded:tP,mediaDataReceived:tw}=(0,en.tq)({hasPin:!!s,pages:eF}),tS=eL?(0,ea.n4)(eL,"0.8.0"):null,tk=null!=tS&&tS>=0,tj=t=>{let i=0===t.layout;switch(t.layout){case 0:case 1:return eP({activePageIndex:eZ,hideText:i,isActive:!0,isCoverPage:i,muteVideos:e9,onClickThrough:e.onClickThrough,page:t,pageIndex:eZ,pageWidth:eH,pinId:eA});case 4:return t.blocks.length>0&&ek({blocks:t.blocks,pageId:`text-${eZ}`,page:t,pinId:eA,onClickThrough:e.onClickThrough});case 3:return eS({page:t});default:return null}},tA=e=>{e===e4-1&&(eq(!0),eU(!1),L(0)),e===eZ&&tf()},tC=e=>{var t,i;ts({currentTime:null!==(t=null==e?void 0:e.currentTime)&&void 0!==t?t:0,duration:null!==(i=null==e?void 0:e.duration)&&void 0!==i?i:1})},tD=()=>{eX(!0),eU(!1),eW.current&&!eW.current.paused&&eW.current.pause()},tE=e=>{var i,n;return eF[e]?tk?ew({activePageIndex:eZ,fontsLoaded:tP,customEndCard:!0,isActive:e===eZ&&eK,muteVideos:e9,onChangeMuteVideo:e6,onEnded:tA,onFlyoutOpen:tD,videoPinProgress:eZ===e?to:void 0,onUpdateVideoInfo:tC,ownerId:null!==(i=null===(n=s.native_creator)||void 0===n?void 0:n.id)&&void 0!==i?i:"",page:eF[e],pageAspectRatio:eM,pageIndex:e,pageHeight:eH/eM,pageWidth:eH,pinId:s.id,productPins:ej,shouldLogTimeSpent:t,stillLoading:!tw}):tj(e5):null},tI=()=>{if(eU(!1),eW.current){let e=eW.current;e.pause()}F({event_type:9324,view_type:v,view_parameter:te,component:tv(),object_id_str:eA,aux_data:{story_pin_page_id:eZ}})},tT=()=>{if(eU(!0),eW.current){let e=eW.current;eE&&eE>0&&K(),e.resume()}else to||t_(eZ);F({event_type:9323,view_type:v,view_parameter:te,component:tv(),object_id_str:eA,aux_data:{story_pin_page_id:eZ}})},tF=()=>{e$||(eX(!1),eK?tI():tT())};(0,n.useEffect)(()=>{"closeup"===y&&(!t||e$||eK?!t&&eK&&tI():tT())},[t,y]),(0,n.useEffect)(()=>{"related-products"===y&&tI()},[]);let tz=()=>{ty(0)},tR=()=>{i&&g?g():eJ(!0)},{isAuthenticated:tL}=(0,q.B)(),{checkExperiment:tM}=(0,G.F)(),tZ=tL&&tM("auth_plp_hide_back_button").anyEnabled;return(0,h.jsxs)(a.xu,{left:!0,dangerouslySetInlineStyle:{__style:tn?{top:ex,height:`calc(100vh - ${ex}px)`,position:"sticky",pointerEvents:"none",minHeight:632,zIndex:eQ?"auto":3}:{}},display:"flex",children:[(0,h.jsxs)(a.xu,{flex:"grow",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},color:"default",children:[tn&&(0,h.jsx)(a.xu,{bottom:!0,color:"secondary",left:!0,position:"absolute",right:!0,top:!0}),eI?(0,h.jsx)(et.Z,{width:eH,height:eH/c.ap,rounding:c.yR}):(0,h.jsxs)(n.Fragment,{children:[tw&&(0,h.jsx)(a.xu,{width:1,height:1,position:"absolute",top:!0,left:!0,marginTop:-1,overflow:"hidden",children:(()=>{let e=[];for(let t=1;t<=eF.length;t+=1)eZ+t<eF.length&&e.push(tE(eZ+t));return e})()}),(0,h.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{marginLeft:tn?void 0:`${c.YL}px`}},display:"flex",alignItems:"center",position:"relative",onMouseOver:()=>tr(!0),onMouseLeave:()=>{tr(!1)},children:(0,h.jsxs)(a.xu,{paddingX:4,children:[(0,h.jsx)(a.xu,{display:"flex",position:"absolute",bottom:!0,width:eG,zIndex:c.Gf,paddingX:6,dangerouslySetInlineStyle:{__style:{...eg,flexDirection:"column-reverse"}},height:e_,children:(0,h.jsx)(ei.Z,{activePageIndex:eZ,handleMute:()=>{e1||e6(!e9)},handlePanelChange:()=>{eJ(!eQ)},handlePausePlay:tF,handlePause:tI,handlePlay:tT,handleVideoScrubbingNewPage:e=>{e$&&eq(!1),t_(e),eB(e),L(e),tg(e)},handleWatchAgain:tz,isMuted:e9,isPanelOpen:eQ,onPageSelect:e=>ty(e),pages:e7,pageCount:e4,pinId:s.id,isPlaying:eK,progressInfo:to,showEndCard:e$,showVideoControls:ta,viewParameter:te})}),(0,h.jsx)(a.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{...eQ?ey:{paddingLeft:"26px",bottom:0},marginBottom:eQ?void 0:"88px"}},"data-test-id":"music-attribution",display:"flex",justifyContent:eQ?"center":"start",overflow:"hidden",paddingY:eQ?5:void 0,position:"absolute",width:eH,zIndex:c.Gf,children:(0,h.jsx)(r.Z,{handlePause:tI,handlePlay:tT,musicAttributions:e2,shouldMute:e1,showEndCard:e$})}),!e$&&!eQ&&(0,h.jsxs)(a.xu,{display:"flex",height:e_,position:"absolute",top:!0,width:eG,zIndex:c.Gf,padding:4,dangerouslySetInlineStyle:{__style:eQ?{}:em},alignItems:"start",justifyContent:"between",children:[(0,h.jsxs)(a.kC,{alignItems:"stretch",direction:"row",children:[!eQ&&(0,h.jsx)(N.Z,{name:"SafeSuspense_IdeaPinCloseup_IdeaPinSecondarySendButton",children:(0,h.jsx)(Y.Z,{children:(0,h.jsx)(eh,{imageSrc:null!==(k=s.image_url)&&void 0!==k?k:"",pinDescription:null!==(j=s.description)&&void 0!==j?j:"",pinId:s.id})})}),!eQ&&s.is_eligible_for_aggregated_comments&&(0,h.jsx)(N.Z,{name:"SafeSuspense_IdeaPinCloseup_CommentButton",children:(0,h.jsx)(Y.Z,{children:(0,h.jsx)(ed,{onCommentClick:()=>{F({event_type:101,view_type:v,view_parameter:te,component:13801,element:10944,object_id_str:s.id}),tR(),p&&p();let e=document.getElementById(`canonical-card-${s.id}`);e&&e.scrollIntoView({behavior:"smooth",block:"end"})}})})}),!eQ&&(0,h.jsx)(N.Z,{name:"SafeSuspense_IdeaPinCloseup_ReactionPickerContainer",children:(0,h.jsx)(Y.Z,{children:(0,h.jsx)(a.xu,{"data-test-id":"pointer-events-wrapper",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:(0,h.jsx)(ep,{component:13801,iconColor:"white",pinId:s.id,reactionByMe:s.reaction_by_me,showTooltip:!0,viewParameter:te,viewType:v})})})})]}),!eQ&&(0,h.jsx)(N.Z,{name:"SafeSuspense_IdeaPinCloseup_PinSaveButton",children:(0,h.jsx)(Y.Z,{children:(0,h.jsx)(a.xu,{"data-test-id":"pointer-events-wrapper",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:(0,h.jsx)(ec,{pinKey:{type:"deprecated",data:s},size:"lg",onClickCallback:()=>{F({event_type:101,view_type:v,view_parameter:te,component:13801,element:0,object_id_str:s.id})},isCloseupPin:!0,trackingParamsMap:s.tracking_params_map})})})})]}),(0,h.jsx)(a.xu,{position:"relative","data-test-id":"story-pin-closeup-container",children:(0,h.jsx)(a.iP,{accessibilityLabel:eK?T._('Pause', 'storyPin.closeup.pauseButton.accessibilityLabel', 'Button label for pause tap area'):T._('Play', 'storyPin.closeup.playButton.accessibilityLabel', 'Button label for play tap area'),disabled:e$,onTap:tF,rounding:c.yR,children:(0,h.jsxs)(a.xu,{"data-test-id":"story-pin-closeup-page",position:"relative",rounding:c.yR,overflow:"hidden",width:eH,height:eH/eM,children:[tE(eZ),!e$&&!eY&&!eE&&(0,h.jsx)(ee.Z,{playing:eK}),"authDesktop"===e.type&&e$&&s.native_creator&&(0,h.jsx)(N.Z,{name:"IdeaPinCloseup_EndCard",children:(0,h.jsx)(Y.Z,{children:(0,h.jsx)(a.xu,{rounding:c.yR,padding:4,zIndex:c.s5,position:"absolute",top:!0,bottom:!0,left:!0,right:!0,children:(0,h.jsx)(eu,{watchAgain:tz,pinDescription:null!==(A=s.description)&&void 0!==A?A:"",imageSrc:null!==(C=s.image_url)&&void 0!==C?C:"",pinId:s.id})})})})]})})})]})})]}),!i&&!tZ&&tn&&(0,h.jsx)(J,{appConfig:e})]}),eQ&&tn&&(0,h.jsx)(a.xu,{width:ef,height:"100%",flex:"none",position:"relative",children:"duplo"===e.type&&e.storyPinDetails})]})}function ex(e){var t,i,r;let{pin:o,viewType:s=3,viewParameterType:d}=e,[u,c]=(0,n.useState)({isInFocus:!0,viewability:0}),{isInFocus:_,viewability:m}=u,g=d||(0,V.Z)({hasPin:!!o,hasPinRichMetadata:!!o.rich_metadata,hasPinRichMetadataProducts:!!(null!==(t=o.rich_metadata)&&void 0!==t&&t.products),hasPinRichMetadataArticle:!!(null!==(i=o.rich_metadata)&&void 0!==i&&i.article),hasPinRichMetadataRecipe:!!(null!==(r=o.rich_metadata)&&void 0!==r&&r.recipe),hasPinStoryPinData:!!o.story_pin_data}),y=(0,l.useLocation)();return(0,h.jsx)($.T,{children:(0,h.jsx)(K.Z,{options:{threshold:[0,.5,.8,.99,1]},onVisibilityChange:e=>{if(e&&e.length>0){let{intersectionRatio:t}=e[0];c({isInFocus:t>.5,viewability:t})}},children:t=>{var i,n;return(0,h.jsx)(a.xu,{ref:t,children:(0,h.jsx)(M,{closeupStoryPinViewability:m,pin:o,viewType:s,viewParameter:g,children:_?(0,h.jsx)(p.Z,{clientTrackingParams:(0,Z.Z)({boardUrl:null===(i=o.board)||void 0===i?void 0:i.url,location:y,pinId:o.id,pinnerUserName:null===(n=o.pinner)||void 0===n?void 0:n.username,storyPinDataId:o.story_pin_data_id,trackingParams:o.tracking_params,trackingParamsMap:o.tracking_params_map}),component:13801,objectId:o.id,view:s,viewParameter:g,children:(0,h.jsx)(ef,{...e,isInFocus:_})}):(0,h.jsx)(ef,{...e,isInFocus:_})})})}})})}},646422:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(667294),l=i(883119),a=i(391254),r=i(224496),o=i(252417),s=i(785893);function d({playing:e,zIndexValue:t}){return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(a.Z,{unsafeCSS:"#story-pin-closeup-pause-play-overlay svg { filter: drop-shadow( 0px 0px 8px rgba(0,0,0,0.1));}"}),(0,s.jsx)(l.xu,{id:"story-pin-closeup-pause-play-overlay","data-test-id":"story-pin-closeup-pause-play-overlay",rounding:r.yR,position:"absolute",top:!0,left:!0,bottom:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"center",opacity:.8,dangerouslySetInlineStyle:{__style:{pointerEvents:"none"}},zIndex:t?new l.Ry(t):o.lt,children:!e&&(0,s.jsx)(l.JO,{icon:"play",size:48,accessibilityLabel:"Play",color:"light"})})]})}},124364:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(898781),a=i(785893);function r({height:e,isDenseView:t,rounding:i,width:r,color:o}){let s=(0,l.ZP)();return(0,a.jsx)(n.xu,{color:o||"default",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",rounding:i,overflow:"hidden",width:r,height:e,"data-test-id":"unavailable-pin",children:(0,a.jsxs)(n.kC,{direction:"column",alignItems:"center",children:[(0,a.jsx)(n.xu,{paddingY:t?2:4,children:(0,a.jsx)(n.JO,{accessibilityLabel:s._('Pin not available', 'story-pin.Closeup.UnavailableIdeaPin.icon.accessibilityLabel', 'Accessibility label on icon'),color:"default",icon:"alert",size:20})}),(0,a.jsx)(n.xv,{weight:"bold",children:s._('Unavailable', 'story-pin.Closeup.UnavailableIdeaPin.Unavailable', 'Text on an unavailable idea Pin that has been deleted')}),!t&&(0,a.jsx)(n.xu,{paddingY:1,children:(0,a.jsx)(n.xv,{children:s._('Removed by the creator', 'story-pin.Closeup.UnavailableIdeaPin.Removed', 'Text on an unavailable idea Pin explaining it has been removed by its creator')})})]})})}},534611:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(667294),l=i(883119),a=i(898781),r=i(623568),o=i(773285),s=i(466225),d=i(780280),u=i(654579),c=i(224496),p=i(858416),h=i(50286),_=i(179888),m=i(994320),g=i(785893);let y=({accessibilityLabel:e,dataTestId:t,disable:i,handleTap:n,icon:a})=>(0,g.jsx)(l.xu,{"data-test-id":t,opacity:i?.5:void 0,children:(0,g.jsx)(l.iP,{disabled:i,onTap:n,children:(0,g.jsx)(l.JO,{accessibilityLabel:e,color:"light",size:16,icon:a})})});function v({activePageIndex:e,handlePanelChange:t,handlePlay:i,handlePause:v,handlePausePlay:f,handleMute:x,handleVideoScrubbingNewPage:b,handleWatchAgain:P,isPlaying:w,isMuted:S,isPanelOpen:k,pages:j,pageCount:A,pinId:C="",progressInfo:D,showEndCard:E,showVideoControls:I=!1,viewParameter:T,isStoryPin:F=!0,captionsUrl:z="",captionsExpGroup:R=""}){var L,M,Z,B;let O=(0,a.ZP)(),{currentTime:N}=D||{},{seekTimes:K}=(0,p.Hx)(),U=(0,d.B)(),H=(0,m.r)(),{checkExperiment:V}=(0,o.F)(),G=(0,h.HG)(),{isAuthenticated:W}=U,{captionsEnabled:$}=H,q=j[e],{should_mute:Y}=q||S,X=Object.keys(K).includes(C)&&K[C]?K[C]:N,Q=(0,n.useMemo)(()=>j.map(e=>{var t,i,n,l,a,o,s;let d=null===(t=e.blocks)||void 0===t?void 0:t.find(e=>3===e.block_type),u=(null==d?void 0:null===(i=d.video)||void 0===i?void 0:null===(n=i.video_list)||void 0===n?void 0:null===(l=n.V_HLSV3_MOBILE)||void 0===l?void 0:l.duration)||(null==d?void 0:null===(a=d.video)||void 0===a?void 0:null===(o=a.video_list)||void 0===o?void 0:null===(s=o.V_720P)||void 0===s?void 0:s.duration);return u?{duration:u,isVideo:!0}:{duration:r.oN,isVideo:!1}}),[j]),J=[{duration:(null==D?void 0:D.duration)||0,isVideo:!0}],ee=F?Q:J,et=null===(L=(q&&(null===(B=q.blocks)||void 0===B?void 0:B[0])||{}).video)||void 0===L?void 0:null===(M=L.video_list)||void 0===M?void 0:null===(Z=M.V_HLSV3_MOBILE)||void 0===Z?void 0:Z.captions_urls,ei=!1;(et&&0!==Object.keys(et).length||z)&&(ei=!0);let en=F&&ei&&G?V(W?"auth_desktop_idea_pin_captions":"unauth_desktop_idea_pin_captions").group:"",el=R||en,ea=(0,s.Z)(el),er=(0,n.useMemo)(()=>ee.reduce((e,t)=>e+(t.duration||0),0)/(F?_.gJ:1),[ee,F]),eo=(0,n.useMemo)(()=>ee.filter((t,i)=>i<e).reduce((e,t)=>e+(t.duration||0),0)/_.gJ,[ee,e]),es=ee.length>0&&ee[e].isVideo?X+eo:5*N+eo,ed=O._('Hide captions', 'gestalt.video.accessibilityHideCaptionsLabel', 'ARIA label for hide captions button'),eu=O._('Show captions', 'gestalt.video.accessibilityShowCaptionsLabel', 'ARIA label for show captions button');return(0,g.jsxs)(l.xu,{alignItems:"baseline",alignContent:"evenly",direction:"column",display:"flex",justifyContent:"between",width:"100%",dangerouslySetInlineStyle:{__style:{gap:"18.5px",pointerEvents:"auto"}},children:[(0,g.jsxs)(l.xu,{alignItems:"center",direction:"row",justifyContent:"between",width:"99%",display:"flex",dangerouslySetInlineStyle:{__style:{opacity:I||!w?1:0,transition:"all .1s"}},children:[(0,g.jsxs)(l.kC,{direction:"row",gap:5,alignItems:"center",children:[(0,g.jsx)(y,{accessibilityLabel:w?O._('Pause', 'closeup.IdeaPinVideo.Pause', 'Pause button on Idea Pin video'):O._('Play', 'closeup.IdeaPinVideo.Play', 'Play button on Idea Pin video'),icon:w?"pause":"play",handleTap:E&&P?P:f,dataTestId:`story-pin-closeup-${w?"pause":"play"}`}),D&&(0,g.jsxs)(l.xu,{"data-test-id":"time-display",children:[(0,g.jsx)(l.xv,{color:"inverse",align:"end",overflow:"normal",size:"300",inline:!0,weight:"bold",children:`${(0,c.Lc)(es)}`})," ",(0,g.jsx)(l.xu,{opacity:.6,display:"inlineBlock",children:(0,g.jsx)(l.xv,{color:"inverse",align:"end",overflow:"normal",size:"300",inline:!0,weight:"bold",children:`/ ${(0,c.Lc)(er)}`})})]})]}),(0,g.jsxs)(l.kC,{direction:"row",gap:5,children:[(el.startsWith("enabled_captions")||el.startsWith("employees"))&&ei&&(0,g.jsx)(y,{accessibilityLabel:$?eu:ed,icon:$?"captions":"captions-outline",handleTap:()=>{H.setCaptionsEnabled(!$)},dataTestId:"story-pin-closeup-captions"}),(0,g.jsx)(y,{accessibilityLabel:S?O._('Unmute', 'closeup.IdeaPinVideo.unmute', 'Unmute button on Idea Pin video'):O._('Mute', 'closeup.IdeaPinVideo.mute', 'Mute button on Idea Pin video'),disable:Y,icon:S?"mute":"sound",handleTap:x,dataTestId:`story-pin-closeup-${S?"unmute":"mute"}`}),(0,g.jsx)(y,{accessibilityLabel:k?O._('Maximize', 'closeup.IdeaPinVideo.maximize', 'Maximize button on Idea Pin video'):O._('Minimize', 'closeup.IdeaPinVideo.minimize', 'Minimize button on Idea Pin video'),icon:k?"maximize":"minimize",handleTap:t,dataTestId:`story-pin-closeup-${k?"maximize":"minimize"}`})]})]}),(0,g.jsx)(u.ZP,{activePageIndex:e,activePageCurrentTime:X,currentTime:es,duration:er,handlePlay:i,handlePause:v,videoControlsExp:ea,handleVideoScrubbingNewPage:b,isPlaying:w,pageCount:A,pageDurations:ee,pinId:C,progressInfo:D,shouldShowPlayhead:!0,showEndCard:E,videoDurations:ee,viewParameter:T,showVideoControls:I})]})}},654579:(e,t,i)=>{"use strict";i.d(t,{$E:()=>y,$:()=>v,ZP:()=>b});var n=i(667294),l=i(883119),a=i(112690),r=i(898781),o=i(773285),s=i(780280),d=i(623568),u=i(179888),c=i(785893);function p({activePageCurrentTime:e,pillHeight:t,progressInfo:i,videoDuration:n}){var a,r;let o=null!==(a=null==i?void 0:i.currentTime)&&void 0!==a?a:0,s=null!==(r=null==i?void 0:i.duration)&&void 0!==r?r:d.P6,p=`${null!=n&&n.isVideo?Math.floor(1e4*(e||o)/(n.duration/u.gJ))/100:o/s*100}%`;return(0,c.jsx)(l.xu,{height:t,rounding:"pill",overflow:"hidden",dangerouslySetInlineStyle:{__style:{backgroundColor:y}},children:(0,c.jsx)(l.xu,{height:"100%",color:v,rounding:"pill",dangerouslySetInlineStyle:{__style:{width:p}}})})}var h=i(224496),_=i(858416),m=i(50286),g=i(19121);let y="rgba(255,255,255,0.24)",v="light",f=()=>{},x=({children:e,setHoveringChange:t,handleMouseDown:i,handleMouseLeave:n,handleTouchStart:a,playhead:o,isPlaying:s,showVideoControls:d,videoControlsExp:u})=>{let p=(0,r.ZP)(),h=!(0,m.HG)();return u?(0,c.jsx)(l.iP,{children:(0,c.jsx)(l.xu,{alignItems:"center","aria-label":p._('Video scrubber progress bar', 'ideaPin.closeupvideo.videoScrubberLabel', 'Accessibility label for video scrubber progress bar on video idea pins.'),display:"flex",flex:"grow",justifyContent:h?"center":"start",marginBottom:h?0:6,minHeight:"8px",onFocus:t(!0),onMouseDown:i,onMouseLeave:n,onMouseOver:t(!0),onTouchStart:a,onTouchEnd:e=>e.preventDefault(),paddingY:h?6:0,position:"relative",ref:o,role:"progressbar",width:"100%","data-test-id":"bullet-video-progress-bar",opacity:u&&(d||!s)?1:0,dangerouslySetInlineStyle:{__style:{pointerEvents:"auto",touchAction:"none"}},children:e})}):(0,c.jsx)(l.xu,{alignItems:"center","aria-label":p._('Video scrubber progress bar', 'ideaPin.closeupvideo.videoScrubberLabel', 'Accessibility label for video scrubber progress bar on video idea pins.'),display:"flex",flex:"grow",justifyContent:h?"center":"start",marginBottom:h?0:6,minHeight:"8px",onFocus:t(!0),onMouseDown:i,onMouseLeave:n,onMouseOver:t(!0),onTouchStart:a,onTouchEnd:e=>e.preventDefault(),paddingY:h?6:0,position:"relative",ref:o,role:"progressbar",width:"100%","data-test-id":"bullet-video-progress-bar",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto",touchAction:"none"}},children:e})};function b({activePageIndex:e,activePageCurrentTime:t,pageCount:i,progressInfo:r,showEndCard:d,duration:u=0,currentTime:h=0,pageDurations:y=[],handlePlay:b=f,handlePause:w=f,handleVideoScrubbingNewPage:S=f,videoDurations:k=[],viewParameter:j,isInactiveStreamPin:A=!1,isPlaying:C=!1,setVideoProgress:D,shouldShowPlayhead:E=!1,showVideoControls:I=!0,pinId:T="",videoControlsExp:F=!1}){let z=!(0,m.HG)(),R=(0,n.useRef)(null),{checkExperiment:L}=(0,o.F)(),{isRTL:M}=(0,s.B)(),[Z,B]=(0,n.useState)(!1),[O,N]=(0,n.useState)(C),[K,U]=(0,n.useState)(),H=(0,a.Z)(),{isSeekingIdeaPin:V}=(0,_.Hx)(),{updateSeekTime:G,updateSeekingIdeaPin:W}=(0,_.RC)(),$=(0,g.Z)(),q=$.isAuth,Y=(0,n.useCallback)((t,n)=>{if(!A&&n<=i){if(n!==e&&S(n),D){var l;let{isVideo:e}=k[n];D({currentTime:t/1e3,duration:e?null!==(l=null==r?void 0:r.duration)&&void 0!==l?l:1:5,pinId:T})}G(t/1e3,T)}H({event_type:101,view_type:3,view_parameter:j,component:14302})},[e,S,A,H,i,T,null==r?void 0:r.duration,D,G,k,j]),X=`${h/u*100}%`,Q=y.map(e=>`${(e.duration||0)/u/10}%`),J=(0,n.useMemo)(()=>{let e=0;return y.map(({duration:t})=>{let i=t+e,n={min:e,max:i};return e=i,n})},[y]),ee=z&&L(q?"closeup_auth_mweb_remove_streams":"closeup_unauth_mweb_remove_streams").anyEnabled,et=Z?"0 1.2px":"0 1px",ei=e=>()=>B(e),en=(0,n.useCallback)(e=>{if(R.current){let{left:t=0,right:i=0,width:n=0}=R.current.getBoundingClientRect(),l=M?Math.max(0,Math.min((i-e)/n,1)):Math.max(0,Math.min((e-t)/n,1)),a=l*u*1e3,r=J.findIndex(e=>a>=e.min&&a<=e.max);Y(a-J[-1!==r?r:0].min,0)}},[u,Y,J,M]),el=()=>{V||(N(C||d),W(!0))},ea=(0,n.useCallback)(e=>{V&&en(e.pageX)},[en,V]),er=(0,n.useCallback)(e=>{if(V){e.preventDefault();let t=Array.from(e.changedTouches).find(e=>e.identifier===K);t&&en(t.pageX)}},[V,en,K]),eo=(0,n.useCallback)(()=>{W(!1),ei(!1),U(void 0),O&&b()},[W,b,O]),es=(0,n.useCallback)(e=>{let t=Array.from(e.changedTouches).find(e=>e.identifier===K);t&&(W(!1),ei(!1),U(void 0)),O&&b()},[b,O,K,W]);(0,n.useEffect)(()=>(V&&!A&&(window.addEventListener("mousemove",ea),window.addEventListener("mouseup",eo),window.addEventListener("touchmove",er),window.addEventListener("touchend",es)),()=>{window.removeEventListener("mousemove",ea),window.removeEventListener("mouseup",eo),window.removeEventListener("touchmove",er),window.removeEventListener("touchend",es)}),[ea,eo,es,er,A,V,en,K]);let ed=i=>i<e||d?(0,c.jsx)(l.xu,{height:4,color:v,rounding:"pill"}):e===i&&r?(0,c.jsx)(p,{activePageCurrentTime:t,pillHeight:4,progressInfo:r,videoDuration:k[i]}):(0,c.jsx)(l.xu,{height:4,color:v,rounding:"pill",dangerouslySetInlineStyle:{__style:{opacity:.24}}});return(0,c.jsxs)(x,{setHoveringChange:ei,handleMouseDown:e=>{el(),C&&w(),en(e.pageX)},handleMouseLeave:()=>{ei(!1)},handleTouchStart:e=>{el(),ei(!0);let t=e.changedTouches[0];U(t.identifier),C&&w(),en(t.pageX)},playhead:R,videoControlsExp:F,showVideoControls:I,isPlaying:C,children:[E&&(I&&F||Z||V||z)&&(0,c.jsx)(P,{currentTime:t,inRemoveRelatedStreamsExp:ee,isMobile:z,isRTL:M,videoControlsExp:F,isSeeking:V,scrubberWidth:X}),Array(i).fill().map((e,t)=>(0,c.jsx)(l.xu,{flex:"grow",width:Q.length===i?Q[t]:"auto",dangerouslySetInlineStyle:{__style:{margin:et}},children:(0,c.jsx)(l.xu,{"data-test-id":"idea-pin-video-progress-bar",rounding:"pill",dangerouslySetInlineStyle:{__style:{transition:"all .1s"}},children:ed(t)})},`${T}-${t}`))]})}let P=({currentTime:e=0,inRemoveRelatedStreamsExp:t,isMobile:i,isRTL:n,isSeeking:a,scrubberWidth:r,videoControlsExp:o})=>(0,c.jsxs)(l.xu,{position:"relative","data-test-id":"video-progress-bar",dangerouslySetInlineStyle:{__style:n?{right:r}:{left:r}},children:[i&&a&&!t&&(0,c.jsx)(l.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:{top:"-32px"}},marginStart:-3,children:(0,c.jsx)(l.xv,{color:"light",size:"100",children:(0,h.Lc)(e)})}),(0,c.jsx)(l.xu,{position:"absolute",rounding:"pill",height:4,color:v,children:(0,c.jsx)(l.xu,{rounding:"circle",marginStart:-2,width:a&&o?16:12,height:a&&o?16:12,color:"light",dangerouslySetInlineStyle:{__style:{marginTop:a&&o?-8:-6}}})})]})},858416:(e,t,i)=>{"use strict";i.d(t,{Wr:()=>c,Hx:()=>h,RC:()=>p});var n=i(667294),l=i(425288),a=i(924687),r=i(311541),o=i(785893);let s=()=>Promise.resolve().then(i.bind(i,924687)),{Provider:d,useHook:u}=(0,l.Z)("IdeaPinVideoPlayer");function c({children:e}){let[t,i]=(0,r.Z)(s,a.initialState),l=(0,n.useMemo)(()=>({dispatch:i,ideaPinVideoPlayerControls:t}),[i,t]);return(0,o.jsx)(d,{value:l,children:e})}function p(){let{dispatch:e}=u();return(0,n.useMemo)(()=>({updateSeekTime:(t,i)=>{e({type:"UPDATE_SEEK_TIME",payload:{seekTime:t,pinId:i||""}})},clearSeekTime:t=>{e({type:"CLEAR_SEEK_TIME",payload:{seekTime:void 0,pinId:t||""}})},updateSeekingIdeaPin:t=>{t?e({type:"UPDATE_SEEKING_IDEA_PIN",payload:{isSeekingIdeaPin:t}}):e({type:"UPDATE_SEEKING_IDEA_PIN",payload:{isSeekingIdeaPin:t,seekTime:void 0}})},updateCurrentTime:t=>{e({type:"UPDATE_CURRENT_TIME",payload:{currentTime:t}})},updateDuration:t=>{e({type:"UPDATE_DURATION",payload:{duration:t}})}}),[e])}function h(){let{ideaPinVideoPlayerControls:e}=u();return e}},924687:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l,initialState:()=>n});let n={seekTime:void 0,seekTimes:{},isSeekingIdeaPin:!1,currentProgressInfo:{currentTime:0,duration:0}};function l(e=n,t){switch(t.type){case"UPDATE_SEEK_TIME":return{...e,seekTimes:{...e.seekTimes,[t.payload.pinId]:t.payload.seekTime},seekTime:t.payload.seekTime};case"CLEAR_SEEK_TIME":return{...e,seekTimes:{},seekTime:void 0};case"UPDATE_SEEKING_IDEA_PIN":return{...e,isSeekingIdeaPin:t.payload.isSeekingIdeaPin};case"UPDATE_CURRENT_TIME":return{...e,currentProgressInfo:{...e.currentProgressInfo,currentTime:t.payload.currentTime}};case"UPDATE_DURATION":return{...e,currentProgressInfo:{...e.currentProgressInfo,duration:t.payload.duration}};default:return e}}},488789:(e,t,i)=>{"use strict";i.d(t,{c:()=>o,o:()=>r});var n=i(667294),l=i(785893);let a=(0,n.createContext)(null);function r({children:e,closeupPaneWidth:t,headerHeight:i,isLandingPage:r,loadFonts:o,renderStoryPinMediaLayout:s,renderStoryPinSplitLayout:d,renderStoryPinText:u,renderStoryPinPage:c,productPins:p}){let h=(0,n.useMemo)(()=>({closeupPaneWidth:t,headerHeight:i,isLandingPage:r,loadFonts:o,renderStoryPinMediaLayout:s,renderStoryPinSplitLayout:d,renderStoryPinText:u,renderStoryPinPage:c,productPins:p}),[t,i,r,o,s,d,u,c,p]);return(0,l.jsx)(a.Provider,{value:h,children:e})}let o=()=>(0,n.useContext)(a)},224496:(e,t,i)=>{"use strict";i.d(t,{Cc:()=>h,DL:()=>d,Gf:()=>y,LX:()=>l,Lc:()=>v,Ls:()=>_,Rf:()=>s,YL:()=>o,ap:()=>a,h8:()=>c,pE:()=>u,s5:()=>g,tQ:()=>p,yR:()=>r});var n=i(883119);let l={w:9,h:16},a=l.w/l.h,r=8,o=10,s=5e3,d=2e3;function u(e,t=1){return{x:(null!=e?e:24)/5,y:(null!=e?e:24)*(t-1)}}let c={COMMENT_REPLY_STICKER:"story_pin_comment_reply_block",GENERIC_STICKER:"story_pin_generic_interactive_sticker_block",HEADING:"story_pin_heading_block",IMAGE:"story_pin_image_block",INGREDIENT:"story_pin_ingredient_block",LINK:"story_pin_link_block",MENTION_STICKER:"story_pin_mention_sticker_block",MUSIC:"story_pin_music_block",PARAGRAPH:"story_pin_paragraph_block",PRODUCT_STICKER:"story_pin_product_sticker_block",SUPPLY:"story_pin_supply_block",VIDEO:"story_pin_video_block",VTO_MAKEUP_STICKER:"story_pin_virtual_try_on_makeup_sticker_block"},p=[c.IMAGE,c.VIDEO],h={alignment:1,hex_color:"#111111",highlight_color:"#FFFFFF",vertical_alignment:1,font:{default_size:28,id:"1",key:"Graphik-Regular.otf",letter_spacing:-.4,line_height:1.25,name:"Teaspoon",url:"https://s.pinimg.com/story_pins/fonts/Graphik-Regular.otf"},font_size:28},_=new n.Ry(1),m=new n.Ry(5),g=new n.H3([m]),y=new n.H3([g]),v=e=>{let t=Math.floor(e||0),i=Math.floor(t/60),n=t-60*i,l=i<10?`${i}`:i,a=n<10?`0${n}`:n;return`${l}:${a}`}},775151:(e,t,i)=>{"use strict";i.d(t,{BN:()=>u,RK:()=>d,d3:()=>p,tq:()=>h,xm:()=>c});var n=i(667294),l=i(441253),a=i(224496),r=i(700314),o=i(829407);let s=(e,t)=>{let i=(0,a.pE)(e,t);return`${i.y}px ${i.x}px`},d=({alignment:e,verticalAlignment:t})=>{let i={alignItems:"flex-start",display:"flex",height:"100%",justifyContent:"start",textAlign:"left",width:"100%"};return 1===t?i.alignItems="center":2===t&&(i.alignItems="flex-end"),1===e&&(i.justifyContent="center",i.textAlign="center"),i},u=({fontSize:e,hexColor:t,highlightColor:i,letterSpacing:n,lineHeight:l,name:a})=>({fontSize:e,letterSpacing:n,color:t,fontFamily:a,margin:0,maxHeight:"100%",textShadow:!i&&t&&"#ffffff"===t.toLowerCase()?"0px 1px 4px rgba(0, 0, 0, 0.2)":void 0,wordBreak:"break-word",...i?{backgroundColor:i,borderRadius:e/5,padding:s(e,l)}:{}}),c=({fontSize:e,hasText:t,highlightColor:i,lineHeight:n})=>({...i?{backgroundColor:t?i:void 0,borderRadius:e/5,padding:s(e,n)}:{}}),p=({letterSpacing:e,lineHeight:t,name:i,url:n})=>({fontFamily:i,fontGroup:"",fontOverrides:{letterSpacing:e,lineHeight:t,textTransform:!1},format:"truetype",defaultStyle:0,styles:[{name:"Regular",fontStyle:"",fontWeight:"normal",fontUrl:n}]}),h=({hasPin:e,pages:t,limitToSingleFont:i})=>{let[s,d]=(0,n.useState)(!1),[u,c]=(0,n.useState)(()=>!!e&&(0,r.X7)(t)),h=()=>{let e=t.reduce((e,t)=>{var n;let l=(null==t?void 0:null===(n=t.blocks)||void 0===n?void 0:n.filter(e=>[a.h8.PARAGRAPH,a.h8.HEADING].includes(e.type)))||[];return i&&l.length>1&&(l=[l[0]]),l.forEach(t=>{var i;let n=(null===(i=t.style)||void 0===i?void 0:i.font)||a.Cc.font,{name:l=""}=n;e[l]||(e[l]=n)}),e},{});if(Object.keys(e).length>0){let t=Object.keys(e).map(t=>{let i=e[t];return p({letterSpacing:i.letter_spacing,lineHeight:i.line_height,name:i.name,url:i.url})});(0,l.Z)(t),d(!0)}};return(0,o.Z)(()=>{h()}),(0,o.Z)(()=>{u||h()}),(0,n.useEffect)(()=>{u||c((0,r.X7)(t))},[u,t]),{fontsLoaded:s,mediaDataReceived:u}}},676142:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(858142);let l=/\{\s*(\w+)\s*\}/g,a=(e,t)=>(0,n.Z)(l,e,t);function r({args:e,format:t}){let i=(e||[]).reduce((e,t,i)=>({...e,[i]:t.text}),{});return a(t,i)}},940882:(e,t,i)=>{"use strict";i.d(t,{J:()=>n,Z:()=>l});let n=-1;function l(e){switch(e){case 0:return"shopping-bag";case 1:return"tag";default:return"search"}}},148028:(e,t,i)=>{"use strict";function n({currentTime:e,endTime:t,startTime:i}){return"number"!=typeof i||"number"!=typeof t||!(i>=0)||!(t>0)||!(i<t)||i<=e&&e<=t}i.d(t,{Z:()=>n})},700314:(e,t,i)=>{"use strict";i.d(t,{B7:()=>r,X7:()=>o,n4:()=>a});var n=i(224496);function l(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let a=(e,t)=>{let i=/^\d{1,3}\.\d{1,3}(?:\.\d{1,6})?$/;if(!(null!=e&&e.match(i))||!(null!=t&&t.match(i)))return null;let n=null==e?void 0:e.split("."),l=null==t?void 0:t.split("."),a=Math.max((null!=n?n:"").length,(null!=l?l:"").length);for(let e=0;e<a;e+=1){var r,o;let t=e<(null!==(r=null==n?void 0:n.length)&&void 0!==r?r:0)?parseInt(null==n?void 0:n[e],10):0,i=e<(null!==(o=null==l?void 0:l.length)&&void 0!==o?o:0)?parseInt(null==l?void 0:l[e],10):0;if(t<i)return -1;if(t>i)return 1}return 0};class r{constructor(e,t,i){if(l(this,"start",Date.now()),l(this,"paused",!1),this.onProgress=e,this.onComplete=t,this.duration=i,this.remaining=i,"undefined"==typeof window)return;this.intervalId=window.setInterval(()=>{let e=this.paused?this.duration-this.remaining:this.duration-this.remaining+(Date.now()-this.start);this.onProgress(e/this.duration)},500),this.resume()}currentTime(){return this.duration-this.remaining}pause(){this.paused=!0,window.clearTimeout(this.timerId),this.remaining-=Date.now()-this.start;let e=this.duration-this.remaining;this.onProgress(e/this.duration)}resume(){this.paused=!1,this.start=Date.now(),window.clearTimeout(this.timerId),this.timerId=window.setTimeout(this.onComplete,this.remaining)}clear(){window.clearTimeout(this.timerId),window.clearInterval(this.intervalId)}}let o=e=>e.some(e=>{var t;return(null!==(t=null==e?void 0:e.blocks)&&void 0!==t?t:[]).some(e=>e.type===n.h8.IMAGE&&!!e.image||e.type===n.h8.VIDEO&&(!!e.video||!!e.video_signature))})},927104:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=(e,t)=>e.length>t?e.substr(0,t-3).trim()+"…":e},883561:(e,t,i)=>{"use strict";function n(e,t=80,i="…",n=!1){let l;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||n)l=e.substring(0,t);else{let i=e.lastIndexOf(" ",t);l=e.substring(0,i)}return(l=l.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""))+i}i.d(t,{ZP:()=>n})},841726:(e,t,i)=>{"use strict";function n(e,t){let i=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>|<!--[\s\S]*/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,(e,t)=>i.indexOf("<"+t.toLowerCase()+">")>-1?e:"")}i.d(t,{Z:()=>l,o:()=>n});let l=e=>e.replace(/(<([^>]+)>)/gi,"")},70061:(e,t,i)=>{"use strict";function n(e){return e.replace(/[_.-](\w|$)/g,(e,t)=>t.toUpperCase())}i.d(t,{Z:()=>n})},430323:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(667294),l=i(722767),a=i(558068),r=i(780280),o=i(239745),s=i(245474),d=i(425288);let{Provider:u,useMaybeHook:c}=(0,d.Z)("timeSpentContext");var p=i(790123),h=i(350118),_=i(785893);function m(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class g extends n.Component{constructor(e){super(e),m(this,"componentWillUnmount",()=>{this.unregisterComponent()}),m(this,"getContext",()=>{let{clientTrackingParams:e,component:t,element:i,objectId:n,timeSpentContext:l,view:a,viewParameter:r}=this.props;return{view:a||(null==l?void 0:l.view),viewParameter:r||(null==l?void 0:l.viewParameter),component:t||(null==l?void 0:l.component),element:i,objectId:n||(null==l?void 0:l.objectId),clientTrackingParams:e||(null==l?void 0:l.clientTrackingParams),getParentUuid:()=>this.getUuid(),getGrandparentUuid:()=>this.getParentId()}}),m(this,"getLoggerContext",()=>{let e={...this.getContext()};return delete e.getParentUuid,e}),m(this,"getParentId",()=>{let{timeSpentContext:e,shouldUseGrandparentId:t=!1}=this.props;if(t&&e&&e.getGrandparentUuid){let t=e.getGrandparentUuid();if(t)return t}return e&&e.getParentUuid?e.getParentUuid():void 0}),m(this,"getUuid",()=>this.state.timedPair?this.state.timedPair.uuid:void 0),m(this,"getTimedPair",()=>this.state.timedPair),m(this,"setTimedPair",e=>this.setState({timedPair:e})),m(this,"isRegistered",!1),m(this,"registerComponent",()=>{this.props.timeSpentManager.registerComponent(this),this.isRegistered=!0}),m(this,"unregisterComponent",()=>{this.isRegistered&&(this.props.timeSpentManager.unregisterComponent(this),this.isRegistered=!1)}),m(this,"handleVisibilityChange",e=>{let{intersectionRatio:t}=e[0],{bottom:i,left:n,right:l,top:a}=e[0].intersectionRect;t>0?this.registerComponent():0===t&&(0===i&&0===n&&0===l&&0===a?this.unregisterComponent():this.registerComponent())}),this.state={timedPair:new s.Z(this.getLoggerContext())}}componentDidUpdate(e){!this.isRegistered||e.view===this.props.view&&e.viewParameter===this.props.viewParameter&&e.component===this.props.component&&e.element===this.props.element&&e.objectId===this.props.objectId&&(0,o.Z)(e.auxData,this.props.auxData)&&(0,o.Z)(e.viewData,this.props.viewData)||(this.unregisterComponent(),setTimeout(this.registerComponent))}render(){let{children:e}=this.props;return(0,_.jsx)(u,{value:this.getContext(),children:(0,_.jsx)(l.Z,{options:{threshold:0},onVisibilityChange:this.handleVisibilityChange,children:n.Children.only(e)})})}}function y(e){var t;let i=(0,a.Hv)(),l=c(),o=(0,p.w)(),s=(0,h.H0)(),{requestIdentifier:d=""}=(0,r.B)(),u={app_instance_id:d.slice(0,8),...null!==(t=e.auxData)&&void 0!==t?t:{}};return(0,n.useEffect)(()=>{null==o||o.setHistoryStackContext(i)},[i,o]),(0,n.useEffect)(()=>{null==o||o.setPins(null!=s?s:{})},[s,o]),o?(0,_.jsx)(g,{...e,auxData:u,timeSpentContext:l,timeSpentManager:o,children:e.children}):e.children}y.displayName="TimeSpent";let v=y},733336:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(883119),a=i(898781),r=i(785893);function o({content:e,header:t,headerWidth:i,isCollapsible:o,isContentLoaded:s,isOpenByDefault:d,maxHeight:u,onOpen:c,previewContent:p,previewContentHeight:h,shouldToggleOnBodyTap:_,arrowDirection:m}){var g;let[y,v]=(0,n.useState)(!1),[f,x]=(0,n.useState)(0),b=(0,n.useRef)(null),P=(0,a.ZP)(),w=null===(g=b.current)||void 0===g?void 0:g.getBoundingClientRect().height;(0,n.useEffect)(()=>{d&&s&&v(!0)},[d,s]),(0,n.useLayoutEffect)(()=>{void 0===u&&b.current&&w&&w>f&&x(Math.ceil(w))},[f,w,u]);let S=()=>{o&&(v(!y),c&&!y&&c())},k=m||"arrow-forward";return(0,r.jsxs)(l.iP,{onTap:_?S:void 0,children:[(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",justifyContent:"between",paddingY:p?1:5,width:i,children:[(0,r.jsx)(l.xv,{weight:"bold",size:"300",children:t}),o&&(0,r.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{transition:"transform 0.3s ease-in-out",transform:y?`rotate(${"arrow-down"===k?"180deg":"-90deg"})`:""}},marginEnd:4,children:(0,r.jsx)(l.iP,{onTap:S,children:(0,r.jsx)(l.JO,{accessibilityLabel:P._('Expand icon', 'accordion.actionButton', 'accessibility label on accordion'),color:"default",icon:k,size:20})})})]}),(0,r.jsxs)(l.xu,{"data-test-id":"accordion-panel",opacity:y||p?1:0,height:!y&&p?h:y?u||f:0,overflow:void 0===u?"hidden":"auto",marginEnd:p?7:0,dangerouslySetInlineStyle:{__style:{transition:`all 0.3s ease-in-out, visibility 0s linear ${y?"0s":"0.3s"}`,visibility:y||p?"visible":"hidden"}},children:[(0,r.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{display:y?"none":"block"}},children:p}),(0,r.jsx)(l.xu,{opacity:y||p?1:0,dangerouslySetInlineStyle:{__style:{visibility:y?"visible":"hidden",transition:`all 0.3s ease-in-out, visibility 0s linear ${y||p?"0s":"0.3s"}`}},ref:b,children:e})]})]})}o.defaultProps={isCollapsible:!0,isContentLoaded:!0}},203138:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h,m:()=>c});var n=i(667294),l=i(883119),a=i(898781),r=i(391254),o=i(780280),s=i(814197),d=i(167234),u=i(785893);let c=4,p=`
243
+ @keyframes showShadow {
244
+ 0% {
245
+ box-shadow: none;
246
+ }
247
+
248
+ 100% {
249
+ background-color: rgba(255, 255, 255, 0.97);
250
+ box-shadow: 0 1px 20px 0 rgba(0, 0, 0, 0.1);
251
+ }
252
+ }
253
+
254
+ @keyframes hideShadow {
255
+ 0% {
256
+ background-color: rgba(255, 255, 255, 0.97);
257
+ box-shadow: 0 1px 20px 0 rgba(0, 0, 0, 0.1);
258
+ }
259
+
260
+ 100% {
261
+ box-shadow: none;
262
+ }
263
+ }
264
+ `;function h({deepLinkBackGoesToBoard:e,handleScroll:t,isNewOrRes:i,marginTop:h,onClick:_,showLabel:m=!1,trafficSource:g,showShadow:y}){let v=(0,a.ZP)();(0,n.useEffect)(()=>t?(window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)):()=>{},[]);let f=(0,o.B)(),{isRTL:x}=f,b=()=>(0,u.jsx)(l.iP,{onTap:_,rounding:"pill",children:(0,u.jsx)(l.xu,{maxWidth:90,padding:2,left:!0,children:(0,u.jsx)(l.X6,{align:"center",size:"400",children:v._('For you', 'closeup.backButton.label', 'Close/back button label for homefeed')})})},"buttonBack"),P=m&&("feed_home"===g||"deep_linking"===g&&!e)&&i,w=(0,u.jsxs)(n.Fragment,{children:[P&&x?(0,u.jsx)(b,{}):null,(0,u.jsx)(l.xu,{rounding:"circle",dangerouslySetInlineStyle:{__style:{animation:y?"showShadow 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards":"hideShadow 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards"}},children:(0,u.jsx)(l.hU,{accessibilityLabel:v._('Back', 'backButton.accessibilityLabel', 'Accessibility label for the button to navigate back to the previous page'),icon:"directional-arrow-left",bgColor:"white",iconColor:"darkGray",size:"lg",onClick:_})},"back-button-icon"),P&&!x?(0,u.jsx)(b,{}):null]});return(0,u.jsxs)(d.Z,{position:"fixed",style:{zIndex:s.Cq,width:"60px",maxWidth:"265px"},children:[(0,u.jsx)(r.Z,{unsafeCSS:p}),(0,u.jsx)(l.xu,{alignItems:"center","data-test-id":"back-button",display:"flex",left:!x,paddingX:4,position:"fixed",right:x,dangerouslySetInlineStyle:{__style:{marginTop:4*(h||c)}},children:w})]})}},413252:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(667294),l=i(883119),a=i(945544),r=i(509278),o=i(643010),s=i(898781),d=i(773285),u=i(788645),c=i(785893);let p=({isExpanded:e,onToggle:t,expandedText:i,collapsedText:n})=>(0,c.jsx)(l.xu,{display:"inlineBlock","data-test-id":`${e?"less":"more"}-description-container`,children:(0,c.jsx)(l.iP,{onTap:t,children:(0,c.jsx)(l.xv,{weight:"bold",inline:!0,children:e?i:n})})});function h({isExpanded:e,description:t,maxHeight:i,handleToggle:h,Wrapper:_}){let m=(0,n.useRef)(null),[g,y]=(0,n.useState)(!1),v=(0,s.ZP)(),{checkExperiment:f}=(0,d.F)(),x=(0,o.vs)(),b=f("web_new_line_description").anyEnabled,P=f("web_hashtags_in_description_display").anyEnabled;(0,n.useEffect)(()=>{if(!(m&&m.current))return;let{height:e}=m.current.getBoundingClientRect();e>i&&y(!0)},[m,i]);let w=(0,c.jsx)(p,{isExpanded:e,onToggle:h,expandedText:v._('less', 'closeup.description.toggle.lessButton', 'Toggle less description button'),collapsedText:v._('... more', 'closeup.description.toggle.moreButton', 'Toggle more description button')}),S=x?"#111111":"#FFFFFF";return(0,c.jsx)(_,{children:(0,c.jsx)(l.xu,{maxHeight:e?void 0:i,overflow:"hidden",position:"relative","data-test-id":"collapsible-description",children:(0,c.jsxs)(u.Z,{dir:(0,u.j)(t),children:[(0,c.jsx)(l.xu,{ref:m,children:(0,c.jsxs)(l.xv,{inline:!0,children:[b?(0,c.jsx)(a.Z,{description:t}):(0,r.Z)({isHashtagInDescriptionDisplayEnabled:P,text:t})," ",g&&e&&(0,c.jsxs)(l.xv,{inline:!0,weight:"bold",children:["... ",w]})]})}),g&&!e&&(0,c.jsx)(l.xu,{position:"absolute",right:!0,bottom:!0,width:140,dangerouslySetInlineStyle:{__style:{background:`linear-gradient(270deg, ${S} 50%, ${S}00 100%)`,textAlign:"end"}},children:w})]})})})}},477802:(e,t,i)=>{"use strict";i.d(t,{Qy:()=>d,Wu:()=>c,ZP:()=>u});var n=i(616550),l=i(883119),a=i(780280),r=i(826067),o=i(19121),s=i(785893);let d=()=>{let e=(0,o.Z)(),{isInternalIP:t}=(0,a.B)(),i=(0,n.useLocation)();return(t||e.isAuth&&e.isEmployee)&&Object.keys((0,r.mB)(i.search)).some(e=>e.startsWith("deb_"))};function u({data:e}){return(0,s.jsx)(l.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)(l.xu,{width:236,dangerouslySetInlineStyle:{__style:{marginTop:10}},children:(0,s.jsx)(u,{...e})})},948618:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({ariaHidden:e=!1,color:t="darkGray",size:i}){return(0,l.jsx)("span",{"aria-hidden":e,style:{padding:"0 4px"},children:(0,l.jsx)(n.xv,{color:t,inline:!0,size:null!=i?i:"200",children:"\xb7"})})}},939106:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(667294),l=i(883119),a=i(948618),r=i(785893);function o(e){return null!=e}function s({additionalPadding:e,color:t="darkGray",inline:i,items:s}){let d=e?(0,r.jsx)("span",{style:{padding:`0 ${4*e}px`},children:(0,r.jsx)(a.Z,{color:t})}):(0,r.jsx)(a.Z,{color:t}),u=s.filter(o).reduce((e,t,i)=>[...e,0!==i?d:null,t],[]).filter(o).map((e,t)=>(0,r.jsx)(n.Fragment,{children:e},t));return 0===u.length?null:i?(0,r.jsx)(l.xu,{children:u}):(0,r.jsx)(l.kC,{alignItems:"center",justifyContent:"start",children:u})}},745312:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s,n:()=>r});var n=i(883119),l=i(667294),a=i(785893);function r({items:e,itemWidth:t,itemGap:i,numRows:n=1,actionItemType:a}){let r;let[o,s]=function(){let[e,t]=(0,l.useState)(0),i=(0,l.useRef)(null),n=(0,l.useCallback)(()=>{i.current&&t(i.current.clientWidth)},[i]);return(0,l.useEffect)(()=>(window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[n]),(0,l.useEffect)(n),[e,i]}(),d=Math.floor((o+i)/(t+i))*n||n,u=e.slice(0,d),c=[];switch(a){case"nextFour":d>=e.length?c=[u.pop()]:(u.pop(),c=e.slice(d-1,d+3));break;case"one":r=d>e.length?e[Math.floor(e.length/2)]:u.pop()}return{containerRef:s,itemsToRender:u,actionItem:r,nextFourItems:c}}let o={center:{outer:"center",inner:"center"},left:{outer:"start",inner:"start"},right:{outer:"end",inner:"end"}};function s({children:e,itemGap:t,containerRef:i,numRows:l=1,rowAlignment:r="center"}){let s=o[r];return(0,a.jsx)(n.xu,{ref:i,width:"100%",children:(0,a.jsx)(n.kC,{alignItems:"center",justifyContent:s.outer,children:(0,a.jsx)(n.kC,{justifyContent:s.inner,gap:{row:Math.floor(t/4),column:0},wrap:l>1,children:e})})})}},753311:(e,t,i)=>{"use strict";i.d(t,{M:()=>r,Q:()=>a});var n=i(667294);let l=(0,n.createContext)(null),a=()=>(0,n.useContext)(l),r=l.Provider},690035:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(753311);let l=()=>{var e;return(null===(e=(0,n.Q)())||void 0===e?void 0:e.showUnauthContextMenu)||(()=>{})}},170168:(e,t,i)=>{"use strict";i.d(t,{Ag:()=>a,C0:()=>s,L1:()=>p,Vi:()=>r,YD:()=>c,kS:()=>l,oo:()=>o,p3:()=>h,vC:()=>d,vI:()=>u});var n=i(401060);let l="https://www.pinterest.com/business/hub/",a="https://www.pinterest.com/homefeed/",r="www.pinterest.com",o="https://help.pinterest.com",s=`${(0,n.Z)({site:"www"})}`,d=(0,n.Z)({site:"developers"}),u=`${(0,n.Z)({site:"sterling"})}`,c=`${(0,n.Z)({site:"analytics"})}`,p=`${(0,n.Z)({site:"trends"})}`,h=`${(0,n.Z)({site:"www",path:"/product-catalogs/data-source/?advertiserId="})}`},250059:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=e=>e?"string"==typeof e?e:e.pathname?e.pathname:"":""},388619:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(704115);let l=({url:e})=>{if(e){let t=e.split("?");if(t[1])return(0,n.Z)(t[1])}return(0,n.Z)()}},149230:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(954931);let l=({url:e})=>!!(e&&e.match(/^https{0,1}:\/\//)&&!(0,n.Z)(e))},508847:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});let n=(e,t)=>0===e.lastIndexOf(t,0);var l=i(567831);let a=({url:e})=>{let t=(0,l.Z)("/");return n(e,t)?e.substr(t.length-1):e}},887831:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(667294);let l=null,a=!1,r=0,o=()=>{l&&clearTimeout(l),a=!0,l=setTimeout(()=>{a=!1},100)},s=()=>{0===r&&window.addEventListener("scroll",o),r+=1},d=()=>{(r-=1)||window.removeEventListener("scroll",o)},u=()=>{let[e,t]=(0,n.useState)(!1),i=(0,n.useRef)(null);(0,n.useEffect)(()=>(s(),()=>{i.current&&clearTimeout(i.current),d()}),[]);let l=e=>{i.current&&clearTimeout(i.current),i.current=e&&a?setTimeout(()=>l(!0),100):setTimeout(()=>{t(e)},32)},r=(0,n.useRef)({onMouseOver:()=>l(!0),onMouseLeave:()=>l(!1)});return{isHovering:e,hoverHandlers:r.current}}},50286:(e,t,i)=>{"use strict";i.d(t,{HG:()=>c,Kf:()=>r,Mq:()=>l,Wb:()=>u,ZP:()=>p,dA:()=>o,ds:()=>s,ml:()=>d});var n=i(780280);function l(e){let{isMobile:t,isTablet:i}=e.userAgent;return i?"tablet":t?"phone":"desktop"}let a=()=>{let e=(0,n.B)();return l(e)},r=e=>"phone"===e,o=e=>"tablet"===e,s=e=>"desktop"===e,d=()=>r(a()),u=()=>o(a()),c=()=>s(a()),p=a},311541:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(667294);function l(e,t){let i=(0,n.useRef)([]),[l,a]=(0,n.useState)(),[r,o]=(0,n.useReducer)(null!=l?l:()=>t,t),s=(0,n.useCallback)(t=>{l?o(t):(i.current.length||e().then(e=>{a(()=>e.default)}),i.current=[...i.current,t])},[e,l]);return(0,n.useEffect)(()=>{l&&(i.current.forEach(o),i.current=[])},[l]),[r,s]}},215292:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r,q:()=>a});var n=i(667294);let l=()=>{let[e,t]=(0,n.useState)(!1),[i,l]=(0,n.useState)(!1),[a,r]=(0,n.useState)(!1);return{active:e,focused:i,hovered:a,onBlur:()=>{l(!1),t(!1)},onFocus:()=>l(!0),onMouseDown:()=>t(!0),onMouseEnter:()=>r(!0),onMouseLeave:()=>{r(!1),t(!1)},onMouseUp:()=>t(!1)}};function a({children:e}){let t=l();return e(t)}let r=l},999018:(e,t,i)=>{"use strict";i.d(t,{Y:()=>u,Z:()=>c});var n,l=i(667294);i(167912);var a=i(681669);let r=void 0!==n?n:n=i(124495),o=(e,t)=>{var i,n,l,a,r,o,s,d,u,c,p,h,_,m,g,y,v,f,x,b,P;let w=Symbol("SKIP"),S=e=>Object.entries(e).filter(([,e])=>e!==w).reduce((e,[t,i])=>({...e,[t]:i}),{});if("deprecated"!==e.type){let c=e.data;return S({...c.isEligibleForPdpPlus||c.isEligibleForPdp||c.isOosProduct||c.isStaleProduct?{...((e,i,n,l,a,r,o,s,d)=>{if(!t)return{image_count:w,image_index:w};let u=null===(e=c.richMetadata)||void 0===e?void 0:null===(i=e.products)||void 0===i?void 0:i[0];return{is_pdpplus:!0,carousel_image_count:w,brand_signature:(null==u?void 0:null===(n=u.brand)||void 0===n?void 0:n.signature)||w,free_shipping_price:(null==u?void 0:null===(l=u.shippingInfo)||void 0===l?void 0:l.freeShippingPrice)||w,free_shipping_value:(null==u?void 0:null===(a=u.shippingInfo)||void 0===a?void 0:a.freeShippingValue)||w,num_variants:(null==u?void 0:null===(r=u.variantSet)||void 0===r?void 0:null===(o=r.variants)||void 0===o?void 0:o.length)||w,total_dimension_option_count:(null==u?void 0:null===(s=u.variantSet)||void 0===s?void 0:null===(d=s.dimensionMetadata)||void 0===d?void 0:d.length)||w,valid_dimension_option_count:w}})(),pin_show_pdp_oos:!!c.isOosProduct||w,pin_show_pdp_stale:!!c.isStaleProduct||w,pin_show_pdp:!!c.isEligibleForPdp||w}:{},pin_is_shop_the_look:!!(null!==(i=c.shoppingFlags)&&void 0!==i&&i.includes(2)||null!==(n=c.aggregatedPinData)&&void 0!==n&&n.isShopTheLook)||w,is_available:!!(null!==(l=c.shoppingFlags)&&void 0!==l&&l.includes(1))||w,is_product_pin_v2:!!(null!==(a=c.shoppingFlags)&&void 0!==a&&a.includes(5))||w,is_rich_product_pin:!!(null!==(r=c.shoppingFlags)&&void 0!==r&&r.includes(6))||w,is_organic_product_carousel:w,item_id:((null===(o=c.richSummary)||void 0===o?void 0:null===(s=o.products)||void 0===s?void 0:s[0])||{}).itemId||w,item_set_id:((null===(d=c.richSummary)||void 0===d?void 0:null===(u=d.products)||void 0===u?void 0:u[0])||{}).itemSetId||w,story_pin_id:c.storyPinData?c.storyPinDataId:w})}{let i=e.data;return i?S({...i.is_eligible_for_pdp_plus||i.is_eligible_for_pdp||i.is_oos_product||i.is_stale_product?{...((e,n,l,a,r,o,s,d,u,c,p,h,_,m,g)=>{let y=null===(e=i.rich_metadata||i.rich_summary)||void 0===e?void 0:null===(n=e.products)||void 0===n?void 0:n[0],v=null!=y&&null!==(l=y.additional_images)&&void 0!==l&&l.length?{imageCount:(i.images?1:0)+y.additional_images.length,imageIndex:(null===(a=i.carousel_data)||void 0===a?void 0:a.index)||0}:i.carousel_data&&{imageCount:null===(r=i.carousel_data.carousel_slots)||void 0===r?void 0:r.length,imageIndex:i.carousel_data.index};if(!t)return v?{image_count:v.imageCount,image_index:v.imageIndex}:{};let f=null===(o=i.rich_metadata)||void 0===o?void 0:null===(s=o.products)||void 0===s?void 0:s[0],x=null!==(d=null==f?void 0:null===(u=f.variant_set)||void 0===u?void 0:u.variants)&&void 0!==d?d:[];return{is_pdpplus:!0,carousel_image_count:v?v.imageCount:w,brand_signature:(null==f?void 0:null===(c=f.brand)||void 0===c?void 0:c.signature)||w,free_shipping_price:(null==f?void 0:null===(p=f.shipping_info)||void 0===p?void 0:p.free_shipping_price)||w,free_shipping_value:(null==f?void 0:null===(h=f.shipping_info)||void 0===h?void 0:h.free_shipping_value)||w,num_variants:x.length||w,total_dimension_option_count:(null==f?void 0:null===(_=f.variant_set)||void 0===_?void 0:null===(m=_.dimension_metadata)||void 0===m?void 0:m.length)||w,valid_dimension_option_count:((null==f?void 0:null===(g=f.variant_set)||void 0===g?void 0:g.dimension_metadata)||[]).reduce((e,{name:t,values:i})=>e+(t&&i||[]).filter(e=>x.some(i=>{var n;return(null===(n=i.dimensions)||void 0===n?void 0:n[null!=t?t:""])===e})).length,0)||w}})(),pin_show_pdp_oos:!!i.is_oos_product||w,pin_show_pdp_stale:!!i.is_stale_product||w,pin_show_pdp:!!i.is_eligible_for_pdp||w}:{},pin_is_shop_the_look:!!(null!==(c=i.shopping_flags)&&void 0!==c&&c.includes(2)||null!==(p=i.aggregated_pin_data)&&void 0!==p&&p.is_shop_the_look)||w,is_available:!!(null!==(h=i.shopping_flags)&&void 0!==h&&h.includes(1))||w,is_product_pin_v2:!!(null!==(_=i.shopping_flags)&&void 0!==_&&_.includes(5))||w,is_rich_product_pin:!!(null!==(m=i.shopping_flags)&&void 0!==m&&m.includes(6))||w,is_organic_product_carousel:!!(null!==(g=i.shopping_flags)&&void 0!==g&&g.includes(10)||((null===(y=i.product_pin_data)||void 0===y?void 0:null===(v=y.items)||void 0===v?void 0:v[0])||{}).additional_images)||w,item_id:((null===(f=i.rich_summary)||void 0===f?void 0:null===(x=f.products)||void 0===x?void 0:x[0])||{}).item_id||w,item_set_id:((null===(b=i.rich_summary)||void 0===b?void 0:null===(P=b.products)||void 0===P?void 0:P[0])||{}).item_set_id||w,story_pin_id:i.story_pin_data?i.story_pin_data_id:w}):{}}},s=e=>0===Object.keys(e).length?{}:{commerce_data:JSON.stringify(e)},d=e=>{let{childDataKey__DEPRECATED:t}=(0,a.Zm)(r,null==e?{type:"deprecated",data:null}:e,{useGraphQLAdapter:e=>e,useLegacyAdapter:e=>e}),i=(0,l.useRef)(t);return(0,l.useEffect)(()=>{i.current=t}),(0,l.useCallback)(e=>s({...null==e?void 0:e.default,...o(i.current,!!(null!=e&&e.isPdpPlus)),...null==e?void 0:e.override}),[])},u=({children:e,pinKey:t})=>e(d(t)),c=d},807609:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294);let l=()=>()=>{},a=()=>!1,r=()=>!0,o=()=>{let e=(0,n.useSyncExternalStore)(l,a,r);return e}},411465:(e,t,i)=>{"use strict";i.d(t,{G:()=>o,Z:()=>s});var n=i(667294),l=i(616550),a=i(785893);let r=(0,n.createContext)(!0);function o({children:e}){let t=(0,l.useLocation)(),[i,o]=(0,n.useState)(!0),s=(0,n.useRef)(t);return(0,n.useEffect)(()=>{s.current!==t&&(s.current=t,o(!1))},[t]),(0,a.jsx)(r.Provider,{value:i,children:e})}function s(){return(0,n.useContext)(r)}},902355:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(667294);async function l(e){return new Promise((t,i)=>{let n=document.createElement("img");n.onerror=()=>i(Error(`Image failed to load with src ${e}`)),n.onload=()=>t(!0),n.src=e})}async function a(e){try{let t=await fetch(e,{method:"HEAD"}),i=await t.blob(),n=i.type.startsWith("image/");{let t=await l(e);return n&&t}}catch(e){return!1}}function r(e){let[t,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{(async function(){let t=await a(e);i(t)})()},[e]),t}},786871:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(702664);let l=[1000069,1000075],a={};function r(){var e;return e=(0,n.useSelector)(({experiences:e})=>e),l.forEach(t=>{e[t]&&(void 0===a[t]||a[t].id!==e[t].id)&&(a[t]=e[t])}),a}},81072:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(667294),l=i(700380);let a=()=>{let[e,t]=(0,n.useState)(0);return(0,n.useEffect)(()=>{let e=(0,l.Z)(()=>t(window.scrollY),10);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),e}},19121:(e,t,i)=>{"use strict";i.d(t,{$:()=>l,Z:()=>r});var n=i(425288);let{Provider:l,useHook:a}=(0,n.Z)("viewer"),r=a},357787:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(667294),l=i(973935),a=i(785893);function r(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let o=new Map,s=null,d=e=>{e.forEach(e=>{let t=o.get(e.target);t&&t(e)})},u=e=>{s.unobserve(e),o.delete(e)},c=(e,t="-64px 0px 0px 0px",i)=>{let n={root:"undefined"==typeof document?null:document.querySelector("#mainContainer"),rootMargin:t,threshold:[0,.5,1]};s=s||new window.IntersectionObserver(d,n),o.set(e,i),s.observe(e)},p=e=>o.has(e),h=e=>{class t extends n.Component{constructor(...e){super(...e),r(this,"seen",!1),r(this,"enter",e=>{let t=e.intersectionRatio>0||e.isIntersecting;this.seen=t,this.seen&&this.props.onVisibilityChanged(!0)}),r(this,"leave",()=>{let e=this._node;e&&p(e)&&this.seen&&(this.props.onVisibilityChanged(!1),this.seen=!1)}),r(this,"observe",e=>{try{this._node=l.findDOMNode(this)}catch(e){return}if(!this._node)return;let{inAdsDesktopVideoExperiment:t}=this.props,i=this._node;c(i,e,e=>{if(!o.has(i))return;let n=t?e.intersectionRatio>=.5:e.intersectionRatio>0||e.isIntersecting,l=this.props.trackFullVisible?e.intersectionRatio>=1:n,a=this.props.trackFullVisible?0===e.intersectionRatio:!l;!this.seen&&l?this.enter(e):this.seen&&a&&this.leave()})})}componentDidMount(){let{rootMargin:e}=this.props;this.observe(e)}componentWillUnmount(){let e=this._node;e&&(this.leave(),u(e))}render(){return(0,a.jsx)(e,{...this.props})}}return r(t,"displayName",`DeprecatedWithVisibilityChanged(${e.displayName||e.name})`),t}},46584:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(667294);let l=new Map,a=null,r=e=>{e.forEach(e=>{let t=l.get(e.target);t&&t(e)})},o=e=>{a.unobserve(e),l.delete(e)},s=(e,t="-64px 0px 0px 0px",i)=>{let n={root:"undefined"==typeof document?null:document.querySelector("#mainContainer"),rootMargin:t,threshold:[0,.5,1]};a=a||new window.IntersectionObserver(r,n),l.set(e,i),a.observe(e)},d=e=>l.has(e);function u({onVisibilityChanged:e,inAdsDesktopVideoExperiment:t,trackFullVisible:i,rootMargin:a}){let r=(0,n.useRef)(null),u=!1,c=t=>{let i=t.intersectionRatio>0||t.isIntersecting;(u=i)&&e(!0)},p=()=>{r.current instanceof HTMLElement&&d(r.current)&&u&&(e(!1),u=!1)},h=(0,n.useCallback)(e=>{r.current instanceof HTMLElement&&s(r.current,e,e=>{if(!l.has(r.current))return;let n=t?e.intersectionRatio>=.5:e.intersectionRatio>0||e.isIntersecting,a=i?e.intersectionRatio>=1:n,o=i?0===e.intersectionRatio:!a;!u&&a?c(e):u&&o&&p()})},[r.current]);return(0,n.useEffect)(()=>(h(a),()=>{r.current instanceof HTMLElement&&(p(),o(r.current))}),[h]),r}},36971:(e,t,i)=>{"use strict";function n(e,t){let{organicVideosAutoplaying:i,promotedVideosAutoplaying:n}=t,l={...i,...n};return l[e]&&l[e].currentTime}i.d(t,{Z:()=>n})},428258:(e,t,i)=>{"use strict";i.d(t,{Q6:()=>l,ZP:()=>r,t2:()=>a});let n=()=>{var e;return!(null!==(e=window)&&void 0!==e&&e.devicePixelRatio)||window.devicePixelRatio<=1?"1x":"2x"},l=()=>{var e,t;let i;let l="undefined"!=typeof window?null===(e=window.navigator)||void 0===e?void 0:null===(t=e.connection)||void 0===t?void 0:t.effectiveType:void 0,a=n();return l?"4g"===l?i="40-80":(a="1x",i="0-1"):i="unknown",{downloadSpeedGroup:i,screenDimension:a}};function a({vEXP3:e,vEXP4:t,vEXP5:i,vEXP6:n,vEXP7:a,v720P:r}){let{downloadSpeedGroup:o,screenDimension:s}=l(),d={"1x":e,"2x":i},u={"1x":a,"2x":a};return({unknown:d,"0-1":d,"1-5":{"1x":t,"2x":i},"5-10":{"1x":i,"2x":i},"10-20":{"1x":n,"2x":n},"20-40":u,"40-80":u,"80_or_above":u})[o][s]||r||void 0}function r(e){let{vHLSV3MOBILE:t,...i}=e,n=a(i),l=t||void 0;return n?{hlsv3:l,mp4:n}:{hlsv3:l}}},463045:(e,t,i)=>{"use strict";function n(e,t){let{organicVideosAutoplaying:i,promotedVideosAutoplaying:n}=t,l={...i,...n};return!!l[e]&&!l[e].paused}i.d(t,{Z:()=>n})},121630:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a,e:()=>l});var n=i(81226);let l=e=>{if("undefined"==typeof window)return"";let t=0,i=document.querySelector('[data-test-id="header"]');if(null!==i){let{height:e}=i.getBoundingClientRect();t+=e}switch(e){case"AuthHomefeed":let n=document.querySelector('[data-root-margin="more-ideas-tabs"]');if(null!==n){let{height:e}=n.getBoundingClientRect();t+=e}break;case"SearchItem":let l=document.querySelector('[data-root-margin="search-improvements-bar"]');if(null!==l){let{height:e}=l.getBoundingClientRect();t+=e}let a=document.querySelector('[data-test-id="search-tab-bar"],[data-root-margin="search-one-bar"]');if(null!==a){let{height:e}=a.getBoundingClientRect();t+=e}}return`${-1*t}px 0px 0px 0px`},a=({videosDuration:e,vHLSV4VideoDuration:t,storyPinDataTotalVideoDuration:i})=>{let l=(0,n.Z)(e||t||i||0);return l}},599611:(e,t,i)=>{"use strict";function n({cropArea:e,scaledWidth:t,scaledHeight:i}){let n=e.h||0,l=e.w||0,a=e.x||0,r=e.y||0;return{h:Math.floor(n*i),w:Math.floor(l*t),x:Math.floor(a*t),y:Math.floor(r*i)}}i.d(t,{Z:()=>n})},94047:(e,t,i)=>{"use strict";function n({cropArea:e,cropSource:t,requestParams:i,searchQuery:n,surfaceType:l,title:a,trafficSource:r}){let o=[];if(e){let{x:t,y:i,w:n,h:l}=e;t>=0&&i>=0&&n>=0&&l>=0&&o.push(`x=${t}`,`y=${i}`,`w=${n}`,`h=${l}`)}t&&o.push(`cropSource=${t}`),l&&o.push(`surfaceType=${l}`),a&&o.push(`full_feed_title=${encodeURIComponent(a)}`),n&&o.push(`q=${n}`),r&&"unknown"!==r&&o.push(`rs=${r}`),i&&o.push(`requestParams=${encodeURIComponent(i)}`);let s=o.length?`?${o.join("&")}`:"";return s}i.d(t,{Z:()=>n})},43760:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(186656),l=i(48714);function a(e,t){let{auxData:i,clientTrackingParams:a,hasPin:r,pinId:o,isThirdPartyAd:s}=t||{},d={pin_id:o,check_only:!0,client_tracking_params:r?a:void 0,url:e,aux_data:JSON.stringify(i)};s&&(d.third_party_ad=o,delete d.pin_id),(0,n.Z)({url:"/v3/offsite/",data:d}).then(t=>{if(t&&t.resource_response&&!t.resource_response.error){let{resource_response:e}=t,{redirect_status:i,url:n}=e.data,l=["blocked","suspicious","porn"].includes(i);if(!l){if(window.Windows.Foundation&&window.Windows.System&&window.Windows.System.Launcher&&window.Windows.System.Launcher.launchUriAsync){let e=new window.Windows.Foundation.Uri(n);window.Windows.System.Launcher.launchUriAsync(e)}return}}(0,l.Gj)(e,{params:r?{pinId:o,clientTrackingParams:a,auxData:i,isThirdPartyAd:s}:{pinId:o}})})}},487392:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(780280),l=i(784590),a=i(19121);function r(){var e;let t=(0,n.B)(),i=(0,a.Z)(),{advertiser:r}=t,o=(0,l.Z)(null!=r&&r.merchant_id?null:{name:"UserResource",options:{user_id:r?r.owner_user_id:i.isAuth&&i.id,field_set_key:"merchant_summary"}});return{merchantId:(null==r?void 0:r.merchant_id)||(null===(e=o.data)||void 0===e?void 0:e.ppa_merchant_id)||"",advertiserId:(null==r?void 0:r.id)||"",ownerUserId:(null==r?void 0:r.owner_user_id)||(i.isAuth?i.id:""),advertiser:r}}},224438:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(784590),l=i(19121),a=i(487392),r=i(709622);function o(){var e,t;let i=(0,l.Z)(),{ownerUserId:o}=(0,a.Z)(),s=(0,n.Z)({name:"UserResource",options:{field_set_key:"viewing_user",user_id:null!=o?o:i.isAuth&&i.id}}),d=null!==(e=null===(t=s.data)||void 0===t?void 0:t.country)&&void 0!==e?e:"";return{country:d,currency:(0,r.jY)(d)[0],currencySymbol:(0,r.jY)(d)[1]}}},36675:(e,t,i)=>{"use strict";i.d(t,{AC:()=>p,AV:()=>a,Bm:()=>c,E2:()=>u,HS:()=>o,cb:()=>n,mX:()=>d,rf:()=>l,yo:()=>r,zv:()=>s});let n=150,l=175,a=300,r=700,o=4e3,s=6e3,d={DESC:"desc",ASC:"asc"},u={SHOPIFY:"SHOPIFY",WOOCOMMERCE:"WOOCOMMERCE"},c=32,p=10},733941:(e,t,i)=>{"use strict";i.d(t,{GN:()=>m,Ju:()=>d,lW:()=>h,nl:()=>s,p8:()=>u,so:()=>_});var n=i(667294),l=i(56641),a=i(826067),r=i(36675),o=i(306732);let s=({advertiser:e,history:t,location:i})=>{let n=e&&e.id,r=e&&e.actions,o=(0,a.mB)(i.search),s=o.advertiserId;if(i){let e=!n||r&&r.includes(68);if(!n&&s||!e)return(0,l.Z)(`${i.pathname}`),!0;if(n&&n!==s)return t.replace({pathname:i.pathname,search:`?${(0,a.XP)({...o,advertiserId:n})}`}),!0}return!1};function d(e,t=[]){let i=e=>"function"==typeof e?e():null!=e?e:0,n=Object.entries(e);return[...n].sort(([e,n],[l,a])=>{let r=-1!==(null!=t?t:[]).indexOf(e)?t.indexOf(e):i(n.order),o=-1!==(null!=t?t:[]).indexOf(l)?t.indexOf(l):i(a.order);return r-o}).map(([e,t])=>[e,t])}function u(e,t,i){let n=e=>null==e,l=(e,t,i)=>Number.isNaN(e)&&Number.isNaN(t)?0:Number.isNaN(e)?1:Number.isNaN(t)?-1:i;return(a,o)=>{for(let u of Object.keys(e)){let{value:c,propertyName:p,type:h,isSortable:_,propertyPath:m}=e[u];if(_&&(p||m)&&t===c){var s,d;let e=(null!==(s=null!=p?p:m)&&void 0!==s?s:"").split(".").reduce((e,t)=>null==e?void 0:e[t],a),t=(null!==(d=null!=p?p:m)&&void 0!==d?d:"").split(".").reduce((e,t)=>null==e?void 0:e[t],o);if(n(e)&&n(t))return 0;if(n(e))return 1;if(n(t))return -1;if(h===Number){let n=Number(e),a=Number(t);return l(n,a,i===r.mX.ASC?n-a:a-n)}if(h===Date){let n=new Date(e),a=new Date(t);return l(n.getTime(),a.getTime(),i===r.mX.ASC?n-a:a-n)}if(h===String||!h){let n=String(e),l=String(t);return i===r.mX.ASC?n.localeCompare(l):l.localeCompare(n)}}}return null}}function c(e){let t=function(e){let{type:t}=(0,n.createElement)(e);return t}(e);return e=>t===e.type}function p(e){let t=n.Children.toArray(e);return t.flatMap(e=>c(n.Fragment)(e)?p(e.props.children):e)}function h(e,t){var i;return null!==(i=p(e).find(c(t)))&&void 0!==i?i:null}function _(e,t){return p(e).filter(c(t))}let m=(e,t,i)=>{if(i===o.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 i}},306732:(e,t,i)=>{"use strict";i.d(t,{Be:()=>o,DD:()=>w,EK:()=>s,Eo:()=>_,HK:()=>Y,J_:()=>el,KO:()=>I,MD:()=>z,MU:()=>R,PD:()=>M,QE:()=>k,QX:()=>K,R0:()=>W,Rd:()=>ea,V0:()=>g,VO:()=>ei,WH:()=>E,XT:()=>x,Y3:()=>u,aF:()=>B,aZ:()=>n,bS:()=>m,cU:()=>S,cm:()=>U,d0:()=>P,eu:()=>h,g2:()=>j,gd:()=>A,h1:()=>O,h8:()=>a,hh:()=>b,iu:()=>$,j0:()=>en,j1:()=>Z,k7:()=>q,kc:()=>p,kl:()=>c,kq:()=>y,l5:()=>v,pF:()=>L,pM:()=>T,pV:()=>f,ps:()=>r,q9:()=>d,qB:()=>G,qf:()=>ee,r2:()=>C,rC:()=>F,rD:()=>J,sG:()=>N,ss:()=>et,t7:()=>Q,ul:()=>l,vr:()=>X,wZ:()=>V,yA:()=>H,yq:()=>D});let n=864e5,l={IN_STOCK:"in stock",OUT_OF_STOCK:"out of stock",PREORDER:"preorder"},a={NEW:"new",USED:"used",REFURBISHED:"refurbished"},r={MALE:"male",FEMALE:"female",UNISEX:"unisex"},o={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,h=350,_=72,m=450,g=200,y=12,v=114,f={MERCHANT_CREATED:"MERCHANT_CREATED",ALL_PRODUCTS:"ALL_PRODUCTS"},x={FEATUREABLE:1,UNFEATUREABLE_NOT_ENOUGH_PINS:2,UNFEATUREABLE_NOT_ENOUGH_UNIQUE_PINS:3,UNFEATUREABLE_EXCEEDED_PINS_LIMIT:4},b={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"},P=[b.PRODUCT_CATEGORY,b.PRODUCT_TYPE,b.BRANDS,b.CUSTOM_LABEL_0,b.CUSTOM_LABEL_1,b.CUSTOM_LABEL_2,b.CUSTOM_LABEL_3,b.CUSTOM_LABEL_4],w={[b.ITEM_ID]:["ITEM_ID"],[b.ITEM_GROUP_ID]:["ITEM_GROUP_ID"],[b.PRODUCT_CATEGORY]:["GOOGLE_PRODUCT_CATEGORY_0"],[b.PRODUCT_TYPE]:["PRODUCT_TYPE_0"],[b.COST]:["MIN_PRICE","MAX_PRICE"],[b.BRANDS]:["BRAND"],[b.CUSTOM_LABEL]:["CUSTOM_LABEL_0","CUSTOM_LABEL_1","CUSTOM_LABEL_2","CUSTOM_LABEL_3","CUSTOM_LABEL_4"],[b.AVAILABILITY]:["AVAILABILITY"],[b.CONDITION]:["CONDITION"],[b.GENDER]:["GENDER"]},S=[b.CUSTOM_LABEL,b.COST,b.CURRENCY],k={1:l.IN_STOCK,2:l.OUT_OF_STOCK,3:l.PREORDER},j={1:a.NEW,2:a.USED,3:a.REFURBISHED},A={1:r.MALE,2:r.FEMALE,3:r.UNISEX},C={1:b.ITEM_ID,5:b.PRODUCT_CATEGORY,12:b.PRODUCT_TYPE,3:b.BRANDS,2:b.AVAILABILITY,17:b.CUSTOM_LABEL_0,18:b.CUSTOM_LABEL_1,19:b.CUSTOM_LABEL_2,20:b.CUSTOM_LABEL_3,21:b.CUSTOM_LABEL_4,4:b.CONDITION,25:b.GENDER,22:b.PRICE,23:b.PRICE,26:b.CURRENCY,24:b.ITEM_GROUP_ID},D={[b.ITEM_ID]:1,[b.PRODUCT_CATEGORY]:5,[b.PRODUCT_TYPE]:12,[b.BRANDS]:3,[b.AVAILABILITY]:2,[b.CUSTOM_LABEL_0]:17,[b.CUSTOM_LABEL_1]:18,[b.CUSTOM_LABEL_2]:19,[b.CUSTOM_LABEL_3]:20,[b.CUSTOM_LABEL_4]:21,[b.CONDITION]:4,[b.GENDER]:25,[b.PRICE]:23,[b.CURRENCY]:26,[b.ITEM_GROUP_ID]:24},E={GREATER_INCLUSION:"0",GREATER_EXCLUSION:"1",LESS_INCLUSION:"2",LESS_EXCLUSION:"3"},I={[E.GREATER_EXCLUSION]:{filterType:22,filterOperator:{negated:!1,inclusion:!1}},[E.GREATER_INCLUSION]:{filterType:22,filterOperator:{negated:!1,inclusion:!0}},[E.LESS_EXCLUSION]:{filterType:23,filterOperator:{negated:!1,inclusion:!1}},[E.LESS_INCLUSION]:{filterType:23,filterOperator:{negated:!1,inclusion:!0}}},T="newlyCreatedPGId",F="storefront",z={campaignId:"createNewCampaign",objectiveType:"CATALOG_SALES",absolutify:!0},R=163,L=350,M={LIST:"LIST",GRID:"GRID"},Z="236x",B=23,O=164,N=256,K=112,U="calc(100vh - 175px)",H=75,V=200,G=40,W={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"},$=500,q=20,Y=40,X=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",ei="selectedCountryKey",en="selectedFeedProfileId",el="activated",ea="ads_create_source_param"},400264:(e,t,i)=>{"use strict";i.d(t,{G7:()=>l,Lp:()=>a,Ib:()=>d});var n=i(784590);function l(e={},t=!0){let i=(0,n.Z)(t?null:{name:"FeaturedProductGroupsResource",enabledRouteRefresh:!0,options:e});return{...i,isLoaded:!0,data:i&&i.data||[]}}function a(e={}){let t=(0,n.Z)({name:"ProductGroupFilterResource",options:e,enabledRouteRefresh:!0});return{...t,data:t&&t.data||{}}}var r=i(667294),o=i(898781),s=i(733941);function d(e={},t=!1,i=!1){let l=(0,o.ZP)(),a=(0,n.Z)(t?null:{name:"ProductGroupsResource",options:e,enabledRouteRefresh:!0,noCache:i}),d=(0,r.useMemo)(()=>a.data&&a.isLoaded?a.data.map(e=>(e.name=(0,s.GN)(l,e.type,e.name),e)):[],[l,a.data,a.isLoaded]);return{...a,data:d}}},992544:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n,l=i(667294),a=i(422578),r=i(224438),o=i(306732);let s=void 0!==n?n:n=i(635272);function d({productGroups:e,selectedCountry:t}){var i,n,d,u;let{country:c}=(0,r.Z)(),p=(0,a.useLazyLoadQuery)(s,{}),h=(0,l.useMemo)(()=>{var e,t;return(null!==(e=null===(t=p.v3GetCountriesListQuery)||void 0===t?void 0:t.data)&&void 0!==e?e:[]).find(e=>(null==e?void 0:e.key)===c||(null==e?void 0:e.key)===o.ss)},[null===(i=p.v3GetCountriesListQuery)||void 0===i?void 0:i.data,c]),_=h&&{value:null!==(n=h.key)&&void 0!==n?n:"",label:null!==(d=h.name)&&void 0!==d?d:""},m=(0,l.useMemo)(()=>{var e,t;return[...null!==(e=null===(t=p.v3GetCountriesListQuery)||void 0===t?void 0:t.data)&&void 0!==e?e:[]].filter(e=>e&&e.name).sort((e,t)=>e&&t&&e.name&&t.name?e.name.localeCompare(t.name):0)},[null===(u=p.v3GetCountriesListQuery)||void 0===u?void 0:u.data]),g=(0,l.useMemo)(()=>e?m.filter(t=>e.some(e=>e.country===(null==t?void 0:t.key))):m,[e,m]),y=g.map(e=>{let{key:t,name:i}=null!=e?e:{};return{value:null!=t?t:"",label:null!=i?i:""}}),v=y.find(e=>e.value===t);return{options:y,selectedOption:v,defaultOption:_}}},869899:(e,t,i)=>{"use strict";i.r(t),i.d(t,{RoleBasedAccessControlProvider:()=>x,useRoleBasedAccessControlContext:()=>f});var n=i(667294),l=i(425288),a=i(773285),r=i(784590),o=i(19121),s=i(389643),d=i(339363),u=i(70061);let c=e=>{let t={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&("object"!=typeof e[i]||null===e[i]||Array.isArray(e[i])?t[(0,u.Z)(i)]=e[i]:t[(0,u.Z)(i)]=c(e[i]));return t},p=(e,t)=>{let i=[];for(let n in e)n!==t&&i.push({id:n,...c(e[n])});let n=i.sort(({user:{businessName:e}},{user:{businessName:t}})=>e.localeCompare(t)),l=new Map;for(let e of n)l.set(e.id,e);return l},h={profiles:new Map,headerVisible:!1,orbacVisibility:!1,activeProfile:void 0,disableProfileChanger:!1},_=(e,t)=>{switch(t.type){case"LOAD_PROFILES":return{...e,profiles:t.payload};case"SET_ACTIVE_PROFILE":return{...e,activeProfile:t.payload};case"TOGGLE_HEADER_VISIBILITY":return{...e,headerVisible:t.payload};case"TOGGLE_ORBAC_VISIBILITY":return{...e,orbacVisibility:t.payload};case"TOGGLE_DISABLE_PROFILE_CHANGER":return{...e,disableProfileChanger:t.payload};default:return e}},m=({dispatch:e,isEnabled:t,state:i})=>{let{orbacVisibility:l,disableProfileChanger:a,headerVisible:r}=i,o=(0,n.useCallback)(i=>{t&&e({type:"SET_ACTIVE_PROFILE",payload:i})},[t,e]),s=(0,n.useCallback)(i=>{t&&e({type:"TOGGLE_ORBAC_VISIBILITY",payload:null!=i?i:!l})},[t,e,l]),d=(0,n.useCallback)(i=>{t&&e({type:"TOGGLE_DISABLE_PROFILE_CHANGER",payload:null!=i?i:!a})},[t,e,a]),u=(0,n.useCallback)(i=>{t&&e({type:"TOGGLE_HEADER_VISIBILITY",payload:null!=i?i:!r})},[t,e,r]);return{changeProfile:o,toggleORBACVisibility:s,toggleDisableProfileChanger:d,toggleHeaderVisibility:u}},g=e=>{let[t,i]=(0,n.useReducer)(_,h),l=m({dispatch:i,isEnabled:e,state:t}),{activeProfile:a,orbacVisibility:r}=t;(0,n.useEffect)(()=>{let e=(0,d.qn)("orbacActiveProfile",!1);e&&i({type:"SET_ACTIVE_PROFILE",payload:e})},[]),(0,n.useEffect)(()=>{let e=(0,d.qn)("orbacVisibilty",!1);e&&i({type:"TOGGLE_ORBAC_VISIBILITY",payload:e})},[]),(0,n.useEffect)(()=>{(0,d.Nh)("orbacVisibility",r)},[r]),(0,n.useEffect)(()=>{(0,d.Nh)("orbacActiveProfile",a)},[a]);let o=(0,n.useCallback)((e,t)=>{i({type:"LOAD_PROFILES",payload:p(e,t)})},[i]);return{state:t,actions:l,receiveProfiles:o}};var y=i(785893);let{Provider:v,useMaybeHook:f}=(0,l.Z)("RoleBasedAccessControlContext"),x=({children:e})=>{let t;let{checkExperiment:i}=(0,a.F)(),l=(0,o.Z)(),d=!!(l.isAuth&&l.isPartner&&i("web_m10n_business_access_orbac_www").anyEnabled),{state:u,actions:c,receiveProfiles:p}=g(d),{activeProfile:h,headerVisible:_,profiles:m=[]}=u,f=m?Array.from(m.values()):[],x=(0,s.Z)(f),b=!!l.isAuth&&f.length>0&&x,P=l.isAuth?l.id:"",w=l.isAuth?l.username:"",{changeProfile:S,toggleORBACVisibility:k,toggleDisableProfileChanger:j,toggleHeaderVisibility:A}=c;(0,n.useEffect)(()=>{if(d){if("string"==typeof x){S(x);return}h||S(P)}},[x,P,d,S,h]),(0,n.useEffect)(()=>{d&&(b&&!_&&A(!0),!b&&_&&A(!1))},[A,b,d,_,m]);let{data:C}=(0,r.Z)(d?{name:"ApiResource",options:{url:"/vx/business_access/profiles/",disable_auth_failure_redirect:!0}}:null),D=null==C?void 0:C.profiles;l&&l.isAuth&&u.activeProfile===l.id?t={id:l.id,permissions:["OWNER"],user:{username:w,businessName:l.fullName,imgUrl:l.imageSmallUrl}}:h&&u.profiles&&(t=u.profiles.get(h)),(0,n.useEffect)(()=>{D&&p(D,P)},[p,D,P]);let E=u.profiles?Array.from(u.profiles.values()):[];return(0,y.jsx)(v,{value:{profiles:E,headerVisible:u.headerVisible,activeProfile:t,changeProfile:S,toggleORBACVisibility:k,toggleDisableProfileChanger:j,toggleHeaderVisibility:A},children:e})}},717615:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(773285),l=i(869899),a=i(389643);let r=()=>{let{checkExperiment:e}=(0,n.F)(),t=(0,l.useRoleBasedAccessControlContext)(),{activeProfile:i}=t||{},r=e("web_m10n_business_access_orbac_www").anyEnabled,o=(0,a.Z)((null==t?void 0:t.profiles)||[]),{anyEnabled:s}=e("useorbacroutematcher_in_useorbacactingas");return r&&(!s||o)&&i&&(i.viewerMeetsMfaRequirement||(i.permissions||[]).includes("OWNER"))?i:Object.freeze({})}},389643:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(616550),l=i(53987),a=i(773285),r=i(19121),o=i(350118);let s=e=>{var t,i,s,d;let u=(0,n.useLocation)(),c=(0,r.Z)(),p=(0,o.S6)(),{anyEnabled:h}=(0,a.F)().checkExperiment("web_m10n_business_access_orbac_www"),_=(0,n.useRouteMatch)("/:username"),m=null==_?void 0:null===(t=_.params)||void 0===t?void 0:t.username,g=(0,n.useRouteMatch)("/pin/:id"),y=null!=g&&null!==(i=g.params)&&void 0!==i&&!!i.id&&(null===(s=p(g.params.id))||void 0===s?void 0:null===(d=s.pinner)||void 0===d?void 0:d.id);if((0,l.ej)(u))return!1;if((0,l.RU)(u))return!0;if((0,l.mY)(u))return h;let v=e.concat(c.isAuth?{user:{username:c.username},id:c.id}:{}).find(e=>{let{user:t={},id:i}=e||{},{username:n}=t;return(!!n&&!!m||!!y&&!!i)&&(n===m||y===i)});return!!v&&v.id}},845772:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(19121),l=i(717615),a=i(231947);let r=()=>{let e=(0,n.Z)(),t=(0,l.Z)(),i=(0,a.lJ)(e,t);return i}},231947:(e,t,i)=>{"use strict";i.d(t,{D3:()=>d,DX:()=>o,KY:()=>u,Ms:()=>n,N1:()=>c,_P:()=>r,lJ:()=>a,nl:()=>l,q6:()=>s});let n=(e,t)=>{let i=e&&e.isAuth?e.username:"";return e&&t&&t.user&&t.user.username&&(i=t.user.username),i},l=(e,t)=>!!(t&&t.user&&e&&e.isAuth&&t.id!==e.id?t.user.eligibleForStlTool:e&&e.isAuth&&e.eligibleForStlTool),a=(e,t)=>e&&e.isAuth&&t&&t.id&&t.id!==e.id?t.id:"",r=(e,t,i)=>{var n;return i&&i.user&&t&&t.isAuth&&i.id!==t.id?i.user.merchantId:null===(n=e.advertiser)||void 0===n?void 0:n.merchant_id},o=(e,t,i)=>i&&i.user&&e.isAuth&&i.id!==e.id?i.user.scheduledPinCount||0:e.isAuth&&t&&t.scheduled_pin_count||0,s=(e,t,i)=>{let n=e&&e.isAuth&&i&&i.id&&i.id!==e.id&&i.id===t;return!!n},d=(e,t,i)=>{let n=s(e,t,i)||e&&e.isAuth&&t===e.id;return!!n},u=(e,t,i)=>{let n=t&&t.owner&&t.owner.id||"";return d(e,n,i)};function c(e,t,i){let n=t?t.id:"";return d(e,n,i)}},139405:(e,t,i)=>{"use strict";i.d(t,{pb:()=>f,nf:()=>x,lV:()=>b});var n=i(667294),l=i(702664),a=i(441143),r=i.n(a),o=i(214494),s=i(425288),d=i(186656),u=i(505920),c=i(594736),p=i(767546);let h={feature_map:Object.freeze({})},_=(e,t)=>{let i={...(0,p.Z)(e,t),...t.reaction_counts?{reaction_counts:t.reaction_counts}:Object.freeze({}),...t.tags?{tags:t.tags}:Object.freeze({}),...t.tagged_users?{tagged_users:t.tagged_users}:Object.freeze({})};return(0,c.ZP)(e,i)?e:i},m=(e=h,t)=>{if("FETCH_COMPLETE"===t.type){let{payload:{resource:i}}=t,{data:n}=t.payload.response.resource_response;if("AggregatedCommentFeedResource"===i||"AggregatedCommentReplyFeedResource"===i||"DidItCommentsResource"===i){let t=n||[],i=t.reduce((t,i)=>(t[i.id]=_(e[i.id],i),t),{});return{...e,...i}}if("UnifiedCommentsResource"===i&&n&&n.length>0){let t=n.filter(e=>"aggregatedcomment"===e.type),i=t.reduce((t,i)=>(t[i.id]=_(e[i.id],i),t),{});return{...e,...i}}if("UnifiedCommentsPreviewResource"===i&&n&&n.length>0){let t=n[0].aggregated_comment,i=t?{[t.id]:_(e[t.id],t)}:{},l=n[0].creator_reply,a=l?{[l.id]:_(e[l.id],l)}:{};return{...e,...i,...a}}if("AggregatedCommentFeaturesResource"===i&&n&&Object.keys(n).length>0)return{...e,feature_map:n}}else if("AGGREGATED_COMMENT_CREATED"===t.type){let{payload:{aggregatedComment:i}}=t;return i.id?{...e,[i.id]:i}:e}else if("AGGREGATED_COMMENT_DELETED"===t.type||"AGGREGATED_COMMENT_HIDDEN"===t.type){let{payload:{aggregatedCommentId:i}}=t,n={...e};return delete n[i],n}else if("AGGREGATED_COMMENT_HIDDEN_FOR_USER"===t.type){let{payload:{userId:i}}=t;return Object.fromEntries(Object.entries(e).filter(e=>{var t;return(null===(t=e[1].user)||void 0===t?void 0:t.id)!==i}))}else if("AGGREGATED_COMMENT_UPDATED"===t.type){let{payload:{data:i}}=t;return{...e,[i.id]:_(e[i.id],i)}}else if("AGGREGATED_COMMENT_LIKE_TOGGLED"===t.type){let{payload:{data:i}}=t,n=e[i.id],l=n.reaction_counts[1]||0,a={1:i.reaction_by_me?l+1:l-1},r={...n,reaction_by_me:i.reaction_by_me,reaction_counts:a};return{...e,[i.id]:r}}else if("AGGREGATED_COMMENT_HELPFUL_TOGGLED"===t.type){let{payload:{data:i}}=t,n=e[i.id],l=n.helpful_count||0,a=i.marked_helpful_by_me?l+1:l-1,r={...n,marked_helpful_by_me:i.marked_helpful_by_me,helpful_count:a};return{...e,[i.id]:r}}else if("AGGREGATED_COMMENT_HIGHLIGHT_TOGGLED"===t.type){let{payload:{data:i}}=t,n=e[i.aggregated_comment_id],l={...n,highlighted_by_pin_owner:i.is_highlighted};return{...e,[i.aggregated_comment_id]:l}}else if("AGGREGATED_COMMENT_FEATURES_UPDATED"===t.type){let{payload:{data:{featureMap:i}}}=t;return{...e,feature_map:{...e.feature_map,...i}}}else if("UPDATE_AGGREGATED_COMMENT_COMMENT_COUNT"===t.type){let{payload:{increment:i,id:n}}=t,l=e[n];if(!l)return e;let a={...l,comment_count:l.comment_count+i};return{...e,[n]:a}}else if("DELETE_COMMENT_MENTION"===t.type){let{payload:{aggregatedCommentId:i,tagged_users:n}}=t,l=e[i],a={...l,tagged_users:n};return{...e,[i]:a}}else if("GET_COMMENT_TRANSLATION"===t.type){let{payload:{aggregatedCommentId:i,translatedText:n}}=t,l=e[i],a={...l,translatedText:n};return{...e,[i]:a}}return e};var g=i(785893);let{Provider:y,useHook:v}=(0,s.Z)("AggregatedComments");function f({children:e}){let t=(0,l.useSelector)(({resources:e})=>e.UnifiedCommentsResource),i=h;t&&Object.values(t).forEach(e=>{var t;let n=null===(t=e.data)||void 0===t?void 0:t.filter(e=>"aggregatedcomment"===e.type),l=null==n?void 0:n.reduce((e,t)=>(e[t.id]=_(i[t.id],t),e),{});i={...i,...l}});let[a,r]=(0,n.useReducer)(m,i),o=e=>{r({type:"FETCH_COMPLETE",payload:e})};(0,u.Z8)("AggregatedCommentFeaturesResource",o),(0,u.my)("AggregatedCommentFeaturesResource",o),(0,u.Z8)("AggregatedCommentFeedResource",o),(0,u.my)("AggregatedCommentFeedResource",o),(0,u.Z8)("AggregatedCommentReplyFeedResource",o),(0,u.my)("AggregatedCommentReplyFeedResource",o),(0,u.Z8)("DidItCommentsResource",o),(0,u.my)("DidItCommentsResource",o),(0,u.Z8)("UnifiedCommentsPreviewResource",o),(0,u.my)("UnifiedCommentsPreviewResource",o),(0,u.Z8)("UnifiedCommentsResource",o),(0,u.my)("UnifiedCommentsResource",o);let s=(0,n.useMemo)(()=>({aggregatedComments:a,dispatch:r}),[a,r]);return(0,g.jsx)(y,{value:s,children:e})}function x(){let{dispatch:e}=v();return(0,n.useMemo)(()=>({aggregatedCommentCreated(t,i){e({type:"AGGREGATED_COMMENT_CREATED",payload:{parentId:t,aggregatedComment:i}})},aggregatedCommentDeleted:(t,i)=>{e({type:"AGGREGATED_COMMENT_DELETED",payload:{parentId:t,aggregatedCommentId:i}})},aggregatedCommentHidden:t=>{e({type:"AGGREGATED_COMMENT_HIDDEN",payload:{aggregatedCommentId:t}})},aggregatedCommentsHiddenForUser:t=>{e({type:"AGGREGATED_COMMENT_HIDDEN_FOR_USER",payload:{userId:t}})},flagAggregatedComment:async({commentId:e,reason:t,detailedReasons:i})=>(0,d.Z)({url:`/v3/aggregated_comments/${e}/flag/`,method:"PUT",data:{commentId:e,reason:t,detailedReasons:i}}),deleteCommentMention:async t=>{var i;let{resource_response:n}=await (0,d.Z)({url:`/v3/aggregated_comments/${t}/mentions/`,method:"DELETE",data:{fields:["aggregatedcomment.id","aggregatedcomment.tagged_users"]}}),l=null!==(i=n.data)&&void 0!==i?i:{};e({type:"DELETE_COMMENT_MENTION",payload:{aggregatedCommentId:l.id,tagged_users:l.tagged_users}})},translateAggregatedComment:async t=>{try{var i;let{resource_response:n}=await (0,d.Z)({url:`/v3/aggregated_comments/${t}/translate/`,method:"GET"}),l=null!==(i=n.data)&&void 0!==i?i:"";e({type:"GET_COMMENT_TRANSLATION",payload:{aggregatedCommentId:t,translatedText:l}})}catch(i){e({type:"GET_COMMENT_TRANSLATION",payload:{aggregatedCommentId:t,translatedText:""}})}},toggleAggregatedCommentHelpful:({aggregatedCommentId:t,isMarkedHelpfulByMe:i})=>{(0,d.Z)({url:`/v3/helpful/1/${t}/`,method:i?"DELETE":"POST"}),e({type:"AGGREGATED_COMMENT_HELPFUL_TOGGLED",payload:{data:{id:t,marked_helpful_by_me:!i}}})},toggleAggregatedCommentHighlight:async({aggregatedCommentId:t,pinId:i,isHighlighted:n})=>{r()(t,"Could not find comment"),r()(i,"Could not find Pin"),await (0,d.Z)({url:"/v3/aggregated_comments/pin/highlight/",method:"PUT",data:{aggregated_comment:t,pin:i,highlight:!n}}),e({type:"AGGREGATED_COMMENT_HIGHLIGHT_TOGGLED",payload:{data:{aggregated_comment_id:t,pin_id:i,is_highlighted:!n}}})},toggleAggregatedCommentLike:({aggregatedCommentId:t,isLikedByMe:i})=>{(0,d.Z)({url:`/v3/aggregated_comments/${t}/react/`,method:i?"DELETE":"POST",data:{reaction_type:1}}),e({type:"AGGREGATED_COMMENT_LIKE_TOGGLED",payload:{data:{id:t,reaction_by_me:i?0:1}}})},updateAggregatedComment:async({commentId:t,force:i,orbacSubjectId:n,tags:l,text:a})=>{var r;let{resource_response:s}=await o.Z.create("AggregatedCommentResource",{commentId:t,force:i,tags:l,text:a,...n?{orbacSubjectId:n}:{}}).callUpdate({showError:!1}),{tagged_users:d}=null!==(r=s.data)&&void 0!==r?r:{},u=d.map(e=>({...e}));e({type:"AGGREGATED_COMMENT_UPDATED",payload:{data:{id:t,tagged_users:u,tags:JSON.parse(l),text:a}}})},updateAggregatedCommentFeatures:async({userId:t,featureMap:i,passcode:n})=>{var l;let{resource_response:a}=await o.Z.create("AggregatedCommentFeaturesResource",{userId:t,featureMap:i,passcode:n}).callUpdate({showError:!1}),r=null!==(l=a.data)&&void 0!==l?l:Object.freeze({});e({type:"AGGREGATED_COMMENT_FEATURES_UPDATED",payload:{data:{featureMap:r}}})},updateCommentCount:(t,i)=>{e({type:"UPDATE_AGGREGATED_COMMENT_COMMENT_COUNT",payload:{increment:i,id:t}})}}),[e])}function b(){let{aggregatedComments:e}=v();return e}},664569:(e,t,i)=>{"use strict";i.d(t,{n:()=>l,o:()=>n});let n={aggregatedComment:"aggregatedComment",didIt:"didIt",pin:"pin"},l={aggregatedComment:"aggregatedcomment",didIt:"userdiditdata",pin:"pin"}},965900:(e,t,i)=>{"use strict";i.d(t,{g:()=>p,I:()=>c});var n=i(667294),l=i(425288),a=i(567450),r=i(41861);let o={appInFocus:!0,footerPlusButtonVisible:!0,isAutoplay:!1,showTypeaheadOverlay:!1,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,organicVideosAutoplaying:{},promotedVideosAutoplaying:{}},viewportSize:"lg"},s=(e=o,t)=>{if("TOGGLE_TYPEAHEAD_OVERLAY"===t.type)return{...e,showTypeaheadOverlay:t.payload};if("SET_CURRENT_VIDEO"===t.type){let{payload:i}=t,{pinId:n,isPromoted:l,currentTime:a}=i,{videosAutoplaying:o}=e,{currentlyPlayingOrganicVideoId:s,promotedVideosAutoplaying:d,organicVideosAutoplaying:u}=o,c=(0,r.Z)(d),p=(0,r.Z)(u);return!l&&s?e:(l?c[n]={pinId:n,currentTime:a,paused:!1}:p[n]={pinId:n,currentTime:a,paused:!1},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:l?s:n,promotedVideosAutoplaying:c,organicVideosAutoplaying:p}})}if("SET_IS_AUTOPLAY"===t.type)return{...e,isAutoplay:t.payload};if("PAUSE_CURRENT_VIDEO"===t.type){let{payload:i}=t,{pinId:n,isPromoted:l,currentTime:a}=i,{videosAutoplaying:o}=e,{promotedVideosAutoplaying:s,organicVideosAutoplaying:d}=o,u=(0,r.Z)(s),c=(0,r.Z)(d);return l?u[n]={...u[n],paused:!0,currentTime:a}:c[n]={...c[n],paused:!0,currentTime:a},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,promotedVideosAutoplaying:u,organicVideosAutoplaying:c}}}if("SET_APP_FOCUS_STATE"===t.type)return{...e,appInFocus:t.payload};if("SET_VIEWPORT_SIZE"===t.type)return{...e,viewportSize:t.payload};if("SET_FOOTER_VISIBILITY_STATE"===t.type)return{...e,footerPlusButtonVisible:t.payload};return e};var d=i(785893);let{Provider:u,useHook:c}=(0,l.Z)("AppUI");function p({children:e}){let[t,i]=(0,n.useReducer)(s,o),l=(0,n.useCallback)(e=>i({type:"PAUSE_CURRENT_VIDEO",payload:e}),[]),r=(0,n.useCallback)(e=>i({type:"SET_APP_FOCUS_STATE",payload:e}),[]),c=(0,n.useCallback)(e=>i({type:"SET_CURRENT_VIDEO",payload:e}),[]),p=(0,n.useCallback)(e=>i({type:"SET_FOOTER_VISIBILITY_STATE",payload:e}),[]),h=(0,n.useCallback)(e=>i({type:"SET_IS_AUTOPLAY",payload:e}),[]),_=(0,n.useCallback)(e=>i({type:"SET_VIEWPORT_SIZE",payload:e}),[]),m=(0,n.useCallback)(e=>i({type:"TOGGLE_TYPEAHEAD_OVERLAY",payload:e}),[]),g=(0,n.useMemo)(()=>({pauseAutoplay:l,setCurrentVideo:c,setFooterPlusButtonVisible:p,setIsAutoplay:h,setViewportSize:_,toggleTypeaheadOverlay:m,setAppFocusState:r,appUI:t}),[l,c,p,h,_,m,r,t]);return(0,n.useEffect)(()=>{a.Z.onSessionResume(()=>{r(!0)}).onSessionPause(()=>{r(!1)})},[r]),(0,d.jsx)(u,{value:g,children:e})}},841509:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({children:e,additionalStyles:t={}}){return(0,l.jsx)(n.xu,{position:"absolute",top:!0,left:!0,right:!0,bottom:!0,dangerouslySetInlineStyle:{__style:{pointerEvents:"none",...t}},"data-test-id":"contentLayer",children:e})}},674462:(e,t,i)=>{"use strict";i.d(t,{Z:()=>j});var n,l=i(667294);i(167912);var a=i(616550),r=i(883119),o=i(319915),s=i(357998),d=i(241244),u=i(947599),c=i(215292),p=i(19121),h=i(785893);let _=({signal:e,anchor:t,setShowFlyout:i,setStore:n})=>{var l,a;let{hovered:o,onMouseEnter:s,onMouseLeave:d}=(0,c.Z)(),u=e=>{i(e=>!e),n(e)};return(0,h.jsx)(r.iP,{onTap:()=>u(e),rounding:"pill",onMouseEnter:s,onMouseLeave:d,children:(0,h.jsxs)(r.xu,{color:o?"dark":"transparentDarkGray",rounding:"pill",display:"flex",alignItems:"center",padding:3,ref:t,children:[(0,h.jsx)(r.xu,{display:"flex",minWidth:24,height:24,rounding:"circle",marginEnd:1,color:"default",justifyContent:"center",alignItems:"center",children:(0,h.jsx)(r.xu,{width:20,height:20,rounding:"circle",overflow:"hidden",children:(0,h.jsx)(r.Ee,{alt:"",color:null!==(l=e.backgroundColor)&&void 0!==l?l:"",src:null!==(a=e.iconUrl)&&void 0!==a?a:"",naturalHeight:1,naturalWidth:1})})}),(0,h.jsx)(r.xv,{color:"inverse",size:"200",weight:"bold",children:e.signalMessage})]})})};var m=i(186656),g=i(898781),y=i(343341),v=i(499128);function f(e){let t=(0,g.ZP)(),{onHide:i}=e,n=(0,h.jsx)(r.xv,{children:t._('Thank you for helping improve signal detection on Pinterest!', 'pinRep.actionBar.signalDetector.toast', 'Toast text displayed when a user submits a signal for review')});return(0,h.jsx)(v.ZP,{onHide:i,text:n})}let x=function({anchor:e,onDismiss:t,pinId:i,signal:n}){let l=(0,g.ZP)(),a=(0,p.Z)(),{showOneToast:o}=(0,y.F9)();if(!a.isEmployee)return null;let{backgroundColor:s,iconUrl:d,signalId:u,signalMessage:c}=n;return(0,h.jsx)(r.mh,{children:(0,h.jsx)(r.J2,{anchor:e,idealDirection:"right",onDismiss:t,positionRelativeToAnchor:!1,size:"lg",children:(0,h.jsxs)(r.xu,{padding:4,width:"100%",children:[(0,h.jsx)(r.kC,{alignItems:"center",justifyContent:"start",children:(0,h.jsx)(r.X6,{size:"400",children:l._('Signal detected:', 'pinRep.actionBar.signalDetector.header', 'Header for signal detector flyout')})}),(0,h.jsx)(r.xu,{paddingY:3,children:(0,h.jsxs)(r.kC,{alignItems:"center",gap:2,justifyContent:"center",children:[(0,h.jsx)(r.xu,{height:40,overflow:"hidden",rounding:"circle",width:40,children:d?(0,h.jsx)(r.Ee,{alt:l._('Signal display', 'pinRep.actionBar.signalDetector.signalAsset', 'Asset to represent the signal detected'),color:"white",naturalHeight:1,naturalWidth:1,src:d}):(0,h.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:null!=s?s:""}},height:40,width:40})}),(0,h.jsx)(r.xv,{size:"200",children:c})]})}),(0,h.jsx)(r.xu,{marginBottom:3,children:(0,h.jsx)(r.xv,{size:"200",children:l._('If you think this detection is inaccurate, please send this Pin for review. It will help improve Pinterest.', 'pinRep.actionBar.signalDetector.instructions', 'Instructions to the user for how to handle inaccurate detection')})}),(0,h.jsxs)(r.kC,{alignItems:"center",gap:2,justifyContent:"start",children:[(0,h.jsx)(r.zx,{fullWidth:!0,color:"red",size:"md",text:l._('Send for review', 'pinRep.actionBar.signalDetector.button.review', 'Button label for users to send the pin for review'),onClick:()=>{(0,m.Z)({url:`/v3/pins/${i}/signal_request_review/`,method:"POST",data:{signal_id:u,user:a.id}}),t(),o(({hideToast:e})=>(0,h.jsx)(f,{onHide:e}))}}),(0,h.jsx)(r.zx,{fullWidth:!0,color:"gray",size:"md",text:l._('Cancel', 'pinRep.actionBar.signalDetector.button.cancel', 'Button label for users to cancel'),onClick:t})]})]})})})};function b({signals:e,pinId:t}){let[i,n]=(0,l.useState)(!1),a=(0,l.useRef)(null),[s,c]=(0,l.useState)(e[0]);return(0,h.jsxs)(l.Fragment,{children:[(0,h.jsx)(o.Z,{name:"SafeSuspense_DebugSignal_FeedbackButton",children:(0,h.jsx)(u.Z,{children:(0,h.jsx)(r.xu,{"data-test-id":"debug-signals-feedback-button",children:(0,h.jsx)(d.Z,{children:(0,h.jsx)(r.kC,{alignItems:"stretch",justifyContent:"start",children:e.map(e=>(0,h.jsx)(r.xu,{marginEnd:2,children:(0,h.jsx)(_,{signal:e,anchor:a,setShowFlyout:n,setStore:c})},e.signalId))})})})})}),i&&(0,h.jsx)(x,{anchor:a.current,onDismiss:()=>n(!1),pinId:t,signal:s})]})}let P=function({anchor:e,onDismiss:t,pinId:i,signals:n}){let a=(0,g.ZP)(),[o,s]=(0,l.useState)(0),d=(0,p.Z)(),{showOneToast:u}=(0,y.F9)();if(!d.isEmployee)return null;let c=n.map(({signalMessage:e})=>({href:"#",text:null!=e?e:""})),{backgroundColor:_,iconUrl:v,signalId:x,signalMessage:b}=n[o],P=({activeTabIndex:e})=>{s(e)};return(0,h.jsx)(r.mh,{children:(0,h.jsx)(r.J2,{anchor:e,idealDirection:"right",onDismiss:t,positionRelativeToAnchor:!1,size:"lg",children:(0,h.jsxs)(r.xu,{padding:4,width:"100%",children:[n.length>1&&(0,h.jsx)(r.xu,{overflow:"scrollX",padding:1,marginBottom:4,children:(0,h.jsx)(r.mQ,{activeTabIndex:o,onChange:({event:e,activeTabIndex:t,dangerouslyDisableOnNavigation:i})=>{e.preventDefault(),i(),P({activeTabIndex:t})},tabs:c})}),(0,h.jsx)(r.kC,{alignItems:"center",justifyContent:"start",children:(0,h.jsx)(r.X6,{size:"400",children:a._('Signal detected:', 'pinRep.actionBar.signalDetector.header', 'Header for signal detector flyout')})}),(0,h.jsx)(r.xu,{paddingY:3,children:(0,h.jsxs)(r.kC,{alignItems:"center",gap:{row:2,column:0},justifyContent:"center",children:[(0,h.jsx)(r.xu,{height:40,overflow:"hidden",rounding:"circle",width:40,children:v?(0,h.jsx)(r.Ee,{alt:a._('Signal display', 'pinRep.actionBar.signalDetector.signalAsset', 'Asset to represent the signal detected'),color:"white",naturalHeight:1,naturalWidth:1,src:v}):(0,h.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:null!=_?_:""}},height:40,width:40})}),(0,h.jsx)(r.xv,{size:"200",children:b})]})}),(0,h.jsx)(r.xu,{marginBottom:3,children:(0,h.jsx)(r.xv,{size:"200",children:a._('If you think this detection is inaccurate, please send this Pin for review. It will help improve Pinterest.', 'pinRep.actionBar.signalDetector.instructions', 'Instructions to the user for how to handle inaccurate detection')})}),(0,h.jsxs)(r.kC,{alignItems:"center",gap:{row:2,column:0},justifyContent:"start",children:[(0,h.jsx)(r.zx,{fullWidth:!0,color:"red",size:"md",text:a._('Send for review', 'pinRep.actionBar.signalDetector.button.review', 'Button label for users to send the pin for review'),onClick:()=>{(0,m.Z)({url:`/v3/pins/${i}/signal_request_review/`,method:"POST",data:{signal_id:x,user:d.id}}),t(),u(({hideToast:e})=>(0,h.jsx)(f,{onHide:e}))}}),(0,h.jsx)(r.zx,{fullWidth:!0,color:"gray",size:"md",text:a._('Cancel', 'pinRep.actionBar.signalDetector.button.cancel', 'Button label for users to cancel'),onClick:t})]})]})})})},w=void 0!==n?n:n=i(639920),S=e=>({debAds:e.deb_ads&&e.deb_ads.map(e=>({backgroundColor:e.background_color,iconUrl:e.icon_url,signalId:e.signal_id,signalMessage:e.signal_message})),debContentQuality:e.deb_content_quality&&e.deb_content_quality.map(e=>({backgroundColor:e.background_color,iconUrl:e.icon_url,signalId:e.signal_id,signalMessage:e.signal_message})),debInclusiveProduct:e.deb_inclusive_product&&e.deb_inclusive_product.map(e=>({backgroundColor:e.background_color,iconUrl:e.icon_url,signalId:e.signal_id,signalMessage:e.signal_message})),debShopping:e.deb_shopping&&e.deb_shopping.map(e=>({backgroundColor:e.background_color,iconUrl:e.icon_url,signalId:e.signal_id,signalMessage:e.signal_message})),debTrustAndSafety:e.deb_trust_and_safety&&e.deb_trust_and_safety.map(e=>({backgroundColor:e.background_color,iconUrl:e.icon_url,signalId:e.signal_id,signalMessage:e.signal_message})),entityId:e.id});function k({signals:e,pinId:t}){let{backgroundColor:i,iconUrl:n,signalMessage:a}=e[0],[s,p]=(0,l.useState)(!1),_=(0,l.useRef)();return(0,h.jsxs)(l.Fragment,{children:[(0,h.jsx)(o.Z,{name:"SafeSuspense_DebugSignal_FeedbackButton",children:(0,h.jsx)(u.Z,{children:(0,h.jsx)(r.xu,{"data-test-id":"debug-signals-feedback-button",children:(0,h.jsx)(d.Z,{children:(0,h.jsx)(c.q,{children:({hovered:e,onMouseEnter:t,onMouseLeave:l})=>(0,h.jsx)(r.iP,{onTap:()=>p(e=>!e),rounding:"pill",onMouseEnter:t,onMouseLeave:l,children:(0,h.jsxs)(r.xu,{color:e?"dark":"transparentDarkGray",rounding:"pill",display:"flex",alignItems:"center",padding:3,ref:_,children:[(0,h.jsx)(r.xu,{display:"flex",width:24,height:24,rounding:"circle",color:"default",marginEnd:1,justifyContent:"center",alignItems:"center",children:(0,h.jsx)(r.xu,{width:20,height:20,rounding:"circle",overflow:"hidden",children:(0,h.jsx)(r.Ee,{alt:"",color:null!=i?i:"",src:null!=n?n:"",naturalHeight:1,naturalWidth:1})})}),(0,h.jsx)(r.xv,{color:"inverse",size:"200",weight:"bold",children:a})]})})})})})})}),s&&_&&_.current&&(0,h.jsx)(P,{anchor:_.current,onDismiss:()=>p(!1),pinId:t,signals:e})]})}function j({pinKey:e}){let{data:t}=(0,s.Q)(w,e,{useLegacyAdapter:S}),i=(0,p.Z)(),{search:n}=(0,a.useLocation)(),r=(0,l.useMemo)(()=>new URLSearchParams(n),[n]);if(!i.isEmployee)return null;let{entityId:o,debAds:d,debContentQuality:u,debInclusiveProduct:c,debShopping:_,debTrustAndSafety:m}=t;if(d)return(0,h.jsx)(k,{pinId:o,signals:d});if(u)return(0,h.jsx)(k,{pinId:o,signals:u});if(c){if("skin_tone"===r.get("type")){let e=c.filter(e=>"visual_signals_hair_pattern_v1"!==e.signalId);return(0,h.jsx)(b,{pinId:o,signals:e})}{let e=c.filter(e=>"visual_body_analyses_v2_0"!==e.signalId);return(0,h.jsx)(b,{pinId:o,signals:e})}}return _?(0,h.jsx)(k,{pinId:o,signals:_}):m?(0,h.jsx)(k,{pinId:o,signals:m}):null}},43671:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>_});var n=i(667294),l=i(883119),a=i(407043),r=i(898781),o=i(55275),s=i(310227),d=i(841509),u=i(785893);let c={background:{base:{transition:"all 250ms",opacity:0},blurred:{backgroundPosition:"50% 50%",backgroundSize:"cover",borderRadius:s.Oc,filter:"blur(10px)",opacity:1}},backdrop:{base:{transition:"all 250ms"},blurred:{backgroundColor:"rgba(0,0,0,0.6)"}},feedbackOverlayContainer:{base:{opacity:0,transition:"all 250ms"},visible:{opacity:1}}},p=["followed","related","search"],h=["pfy","pfyBoard"];function _({feedbackType:e,pin:t,hideContents:i=!1}){var _;let{logContextEvent:m}=(0,a.v)(),g=(0,r.ZP)(),[y,v]=(0,n.useState)(!1),[f,x]=(0,n.useState)(!1);(0,n.useEffect)(()=>v(!0),[]);let b=()=>x(!0),{feedbackText:P,images:w,showFeedbackOverlay:S,undoAction:k}=t,j=w&&(null===(_=w["236x"])||void 0===_?void 0:_.url),{subTitle:A,title:C,unfollow:D}=null!=P?P:{},E=!p.includes(e),I=h.includes(e);return(0,u.jsxs)(l.xu,{color:"transparent",dangerouslySetInlineStyle:{__style:{borderRadius:s.Oc}},"data-test-id":"obscured-overlay",overflow:"hidden",position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:[(0,u.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:{borderRadius:s.Oc}},margin:-4,overflow:"hidden",position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:[j&&(0,u.jsx)(d.Z,{additionalStyles:{...c.background.base,...y?c.background.blurred:{},backgroundImage:`url("${j}")`}}),(0,u.jsx)(d.Z,{additionalStyles:{...c.backdrop.base,...c.backdrop.blurred}})]}),(0,u.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{...c.feedbackOverlayContainer.base,...!S&&y?c.feedbackOverlayContainer.visible:{}}},height:"100%",padding:4,position:"relative",width:"100%",children:!i&&(0,u.jsx)(l.xu,{height:"100%",children:(0,u.jsxs)(l.xu,{"data-test-id":"PinFeedbackConfirmation",display:"flex",direction:"column",height:"100%",maxWidth:216,children:[(0,u.jsx)(l.xu,{marginBottom:2,children:(0,u.jsx)(l.X6,{color:"light",size:"400",children:C})}),(0,u.jsx)(l.xu,{display:"flex",marginBottom:1,children:(0,u.jsx)(l.xv,{color:"light",overflow:"normal",children:A})}),(0,u.jsxs)(n.Fragment,{children:[k&&"Reported"!==C&&(0,u.jsx)(l.xu,{"data-test-id":"undo-action-btn",children:(0,u.jsx)(l.iP,{onTap:k,children:(0,u.jsx)(l.xv,{color:"inverse",weight:"bold",overflow:"normal",children:g._('Undo', 'Text on the button to navigate to undo hiding a pin', 'Text on the button to navigate to undo hiding a pin')})})}),(0,u.jsxs)(l.xu,{marginTop:"auto",children:[!k&&!f&&D&&!I&&(0,u.jsx)(l.zx,{fullWidth:!0,color:"white",onClick:()=>(0,o.t)(D.action,D.actionOptions,b,m),text:g._('Unfollow', 'Text on the button to unfollow a specific board / user', 'Text on the button to unfollow a specific board / user')}),E&&(0,u.jsx)(l.ZP,{color:"white",fullWidth:!0,href:"/edit",onClick:()=>{m({event_type:101,view_type:1,view_parameter:92,element:11347})},text:g._('Tune your feed', 'Text on the button to navigate to homefeed control', 'Text on the button to navigate to homefeed control')})]})]})]})})})]})}},333155:(e,t,i)=>{"use strict";i.d(t,{UP:()=>o,Wv:()=>l,ZF:()=>n,zI:()=>a,zl:()=>r});let n=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],l=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],a=[...l,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],r=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingGridShippedMetadataWithVisitButton"],o=["BaseBoardPinGrid"]},740025:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s}),i(422578);var n,l=i(357998),a=i(680046);let r=void 0!==n?n:n=i(150148),o=e=>({board:e.board&&{followedByMe:e.board.followed_by_me},isDownstreamPromotion:e.is_downstream_promotion,pinner:e.pinner&&{explicitlyFollowedByMe:e.pinner.explicitly_followed_by_me},promoter:e.promoter&&{__typename:"User"},recommendationReason:e.recommendation_reason&&{board:e.recommendation_reason.board&&{__typename:"Board"},reason:e.recommendation_reason.reason}});function s({pinKey:e,feedbackType:t,viewParameter:i}){var n,s,d,u,c;let{data:p}=(0,l.Q)(r,e,{useLegacyAdapter:o});return function({feedbackType:e,viewParameter:t,boardFollowedByMe:i,hasPromoter:n,isDownstreamPromotion:l,pinnerFollowedByMe:r,hasRecommendationReason:o,recommendationReasonHasBoard:s,recommendationReasonReason:d}){return(0,a.hP)({boardFollowedByMe:i,feedbackType:e,promotion:n?{isDownstreamPromotion:l}:void 0,pinnerFollowedByMe:r,recommendationReason:o?{hasBoard:s,reason:d}:void 0,viewParameter:t})}({feedbackType:t,viewParameter:i,boardFollowedByMe:!!(null!=p&&null!==(n=p.board)&&void 0!==n&&n.followedByMe),hasPromoter:!!(null!=p&&p.promoter),isDownstreamPromotion:!!(null!=p&&p.isDownstreamPromotion),pinnerFollowedByMe:!!(null!=p&&null!==(s=p.pinner)&&void 0!==s&&s.explicitlyFollowedByMe),hasRecommendationReason:!!(null!=p&&p.recommendationReason),recommendationReasonReason:null!==(d=null==p?void 0:null===(u=p.recommendationReason)||void 0===u?void 0:u.reason)&&void 0!==d?d:void 0,recommendationReasonHasBoard:!!(null!=p&&null!==(c=p.recommendationReason)&&void 0!==c&&c.board)})}},313951:(e,t,i)=>{"use strict";let n;i.d(t,{i5:()=>x,sX:()=>w,aX:()=>b,Z5:()=>f,NG:()=>P,MT:()=>S,iu:()=>k});var l=i(667294),a=i(214494),r=i(827896),o=i(425288),s=i(505920),d=i(767546);let u=(e,t)=>e.data[t]&&e.data[t].messages||[];function c(e,t){let i={};return e.filter(e=>!!e).reduce((e,n)=>{let l=t(n);return i[l]?(i[l]=(0,d.Z)(i[l],n),e):(i[l]=n,e.concat([n]))},[])}function p(e){return[...e].sort((e,t)=>new Date(e.created_ms||e.created_at)-new Date(t.created_ms||t.created_at))}function h(e,t,i){return p(c(u(e,t).concat(i),e=>e.id))}let _={conversationsUnseenCount:0,data:{},newsHubCount:0,open:null,objectAttachment:null,showConversationsDropdown:!1,showNewMessageView:!1,ui:{},unread:0};function m(e=_,t){if("CONVERSATION_OPEN"===t.type)return{...e,open:t.payload.id,objectAttachment:null,showNewMessageView:!1,ui:{...e.ui,[t.payload.id]:{contactRequestId:t.payload.contactRequestId||"",isPreview:t.payload.isPreview}}};if("CONVERSATION_CLOSE"===t.type)return{...e,open:null,objectAttachment:null,showNewMessageView:!1,ui:{...e.ui,[t.payload.id]:{contactRequestId:t.payload.contactRequestId||"",isPreview:!1,isDeclined:t.payload.isDeclined}}};if("CONVERSATION_CREATE"===t.type){let{id:i}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i]||{},...t.payload}}}}if("CONVERSATION_DELETE"===t.type){let i={...e,data:{...e.data}},{id:n}=t.payload;return delete i.data[n],i}if("FETCH_COMPLETE"===t.type){let{options:i,resource:n,response:l}=t.payload,a=l.resource_response.data;if("ConversationMessagesResource"===n){let t=(null==i?void 0:i.conversation_id)||"",n=h(e,t,a||[]),l=n[n.length-1],r={...e,data:{...e.data,[t]:{...e.data[t],id:t,messages:n,unread:0,last_message:l}}};return r}if("ConversationsResource"===n){let t={...e,data:{...e.data}};return(a||[]).forEach(e=>{let{id:i,created_at:n,name:l,board:a,emails:r,unread:o,users:s,last_message:d}=e,u=h(t,i,[d]);t.data[i]={...t.data[i],id:i,created_at:n,name:l,board:a,emails:r||[],unread:o||0,users:s||[],last_message:d,messages:u}}),t}if("ConversationResource"===n){let t=a||{},{id:i}=t,n={...e,data:{...e.data}};return i&&(n.data[i]={...n.data[i],...t}),n}if("NewsHubBadgeResource"===n&&a){let t=a.conversations_unseen_count||0;return{...e,unread:t}}}else if("MESSAGE_SEND_PENDING"===t.type){let{id:i,message:n}=t.payload;if(e.data[i])return{...e,data:{...e.data,[i]:{...e.data[i],id:i,messages:[...e.data[i].messages,n]}}}}else if("MESSAGE_SEND_PENDING_SUCCESS"===t.type){let{id:i,tempMessage:n,newMessage:l}=t.payload;if(e.data[i]){let t=u(e,i).find(e=>e.id===n.id&&e.created_ms===n.created_ms);if(t){let t=p(c(u(e,i).filter(e=>e.id!==n.id).concat([l]),e=>e.id));return{...e,data:{...e.data,[i]:{...e.data[i],last_message:l,messages:t}}}}}}else if("MESSAGE_SEND_PENDING_FAILURE"===t.type){let{id:i,tempMessageId:n}=t.payload;if(e.data[i]){let t=u(e,i).filter(e=>e.id!==n);return{...e,data:{...e.data,[i]:{...e.data[i],messages:t}}}}}else if("OPEN_NEW_MESSAGE"===t.type){let{objectAttachment:i}=t.payload||null;return{...e,showNewMessageView:!0,open:null,objectAttachment:i}}else if("CLOSE_DROPDOWN"===t.type)return{...e,showConversationsDropdown:!1,objectAttachment:null,showNewMessageView:!1};else if("OPEN_DROPDOWN"===t.type)return{...e,showConversationsDropdown:!0};else if("UPDATE_NEWSHUB_COUNT"===t.type)return{...e,newsHubCount:t.payload};else if("UPDATE_UNREAD_COUNT"===t.type)return{...e,conversationsUnseenCount:t.payload};else if("CLEAR_MESSAGE_BADGE"===t.type){let{id:i}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i],unread:0}}}}else if("CONVERSATION_SAVE_POSITION"===t.type){let{id:i,position:n}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i],position:n}}}}else if("CONVERSATION_RESET_POSITION"===t.type){let{id:i}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i],position:null}}}}else if("SET_OBJECT_ATTACHMENT"===t.type){let{objectAttachment:i}=t.payload;return{...e,objectAttachment:i}}else if("REMOVE_OBJECT_ATTACHMENT"===t.type)return{...e,objectAttachment:null};return e}var g=i(785893);let y=(n=0,()=>n++),{Provider:v,useHook:f}=(0,o.Z)("Conversations");function x({children:e}){let[t,i]=(0,l.useReducer)(m,_),n=(0,l.useCallback)(e=>i({type:"FETCH_COMPLETE",payload:e}),[]);(0,s.Z8)("ConversationMessagesResource",n),(0,s.my)("ConversationMessagesResource",n),(0,s.Z8)("ConversationsResource",n),(0,s.Z8)("ConversationResource",n),(0,s.Z8)("NewsHubBadgeResource",n);let r=(0,l.useCallback)((e,t=!1,n="")=>i({type:"CONVERSATION_OPEN",payload:{id:e,isPreview:t,contactRequestId:n}}),[]),o=(0,l.useCallback)((e,t="",n=!1)=>i({type:"CONVERSATION_CLOSE",payload:{id:e,contactRequestId:t,isDeclined:n}}),[]),d=(0,l.useCallback)(e=>i({type:"CONVERSATION_CREATE",payload:e}),[]),u=(0,l.useCallback)(e=>i({type:"CONVERSATION_DELETE",payload:{id:e}}),[]),c=(0,l.useCallback)((e,t)=>i({type:"CONVERSATION_SAVE_POSITION",payload:{id:e,position:t}}),[]),p=(0,l.useCallback)(e=>i({type:"CONVERSATION_RESET_POSITION",payload:{id:e}}),[]),h=(0,l.useCallback)((e,t,n)=>{a.Z.create("ConversationsResource",{user_ids:e,emails:t,text:""}).callCreate().then(e=>{let t=e&&e.resource_response.data;i({type:"CONVERSATION_OPEN",payload:{id:t.id}})}).catch(e=>{let t=e.message_detail||e.message||"";n(t)})},[]),y=(0,l.useCallback)(()=>{i({type:"CLOSE_DROPDOWN"})},[]),f=(0,l.useCallback)(()=>{i({type:"OPEN_DROPDOWN"})},[]),x=(0,l.useCallback)(e=>{i({type:"OPEN_NEW_MESSAGE",payload:{objectAttachment:e}})},[]),b=(0,l.useCallback)((e,t)=>i({type:"MESSAGE_SEND_PENDING",payload:{id:e,message:t}}),[]),P=(0,l.useCallback)((e,t,n)=>i({type:"MESSAGE_SEND_PENDING_SUCCESS",payload:{id:e,tempMessage:t,newMessage:n}}),[]),w=(0,l.useCallback)((e,t)=>i({type:"MESSAGE_SEND_PENDING_FAILURE",payload:{id:e,tempMessageId:t}}),[]),S=(0,l.useCallback)(e=>i({type:"UPDATE_NEWSHUB_COUNT",payload:e}),[]),k=(0,l.useCallback)(e=>i({type:"UPDATE_UNREAD_COUNT",payload:e}),[]),j=(0,l.useCallback)(e=>i({type:"CLEAR_MESSAGE_BADGE",payload:{id:e}}),[]),A=(0,l.useCallback)(e=>i({type:"SET_OBJECT_ATTACHMENT",payload:{objectAttachment:e}}),[]),C=(0,l.useCallback)(()=>i({type:"REMOVE_OBJECT_ATTACHMENT"}),[]),D=(0,l.useMemo)(()=>({clearMessageBadge:j,conversationOpen:r,conversationClose:o,conversationCreate:d,conversationDelete:u,conversationGet:h,saveConversationPosition:c,resetConversationPosition:p,dropdownClose:y,dropdownOpen:f,newMessageOpen:x,pendingMessageSend:b,pendingMessageSuccess:P,pendingMessageFailure:w,updateNewsHubCount:S,updateUnreadCount:k,conversations:t,setObjectAttachment:A,removeObjectAttachment:C}),[j,r,o,d,u,h,c,p,y,f,x,b,P,w,S,k,t,A,C]);return(0,g.jsx)(v,{value:D,children:e})}function b(){let{conversationCreate:e}=f();return async t=>{let i;let n=a.Z.create("ConversationsResource",t);try{let t=await n.callCreate(),l=t.resource_response.data;l&&(e(l),i=l)}catch(e){throw Error(e.message)}return i}}function P(){let{conversations:e,conversationCreate:t,pendingMessageSend:i,pendingMessageSuccess:n,pendingMessageFailure:l}=f(),o=(0,r.Z)();return async(r,s,d,u)=>{let{text:c,pinId:p,boardId:h,userId:_,didItId:m}=s;async function g(){let e=a.Z.create("ConversationMessagesResource",{conversation_id:r,text:c,pin:p,board:h,user:_,user_did_it_data:m,source:d,client_tracking_params:o(null!=p?p:"")}),t=`${y()}`,s={text:c,sender:u,created_at:new Date().toString(),created_ms:Date.now(),id:t,type:"tempMessage"};i(r,s);try{let t=await e.callCreate(),i=t.resource_response.data;i&&n(r,s,i)}catch(e){throw l(r,t),Error(e.message)}}if(e.data[r])await g();else{let e=a.Z.create("ConversationResource",{conversation_id:r});try{let i=await e.callGet(),n=i.resource_response.data;n&&(t(n),await g())}catch(e){throw Error(e.message)}}}}function w(e){let{conversations:t}=f();return t.data[e]}function S(e){let{conversations:t}=f();return t.ui[e]||{contactRequestId:"",isDeclined:!1,isPreview:!1}}function k(){let{conversations:{data:e}}=f(),t=Object.keys(e).map(t=>e[t]).filter(e=>e.users&&e.last_message);return Array.from(t).sort((e,t)=>new Date((t.last_message||t).created_at)-new Date((e.last_message||e).created_at))}},426975:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({children:e}){return(0,l.jsx)(n.xu,{marginTop:4,minHeight:48,children:e})}},312918:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(667294),l=i(883119),a=i(987765),r=i(356997),o=i(694379),s=i(898781),d=i(349700),u=i(773285),c=i(985913),p=i(883561),h=i(954931),_=i(215292),m=i(202870),g=i(777906),y=i(785893);let v=function(e){let t=(0,s.ZP)(),{followerCount:i,fullName:v,hasVerifiedIdentity:f,imageUrl:x,isPromoted:b,isVerifiedMerchant:P,profileUrl:w,sponsorName:S,sponsorshipStatus:k,sponsorUsername:j="",verified:A,color:C="default",onAvatarClick:D,onNavigateClick:E,onNavigateSponsorClick:I,openNewTab:T,isLeadPin:F=!1}=e,z=(0,u.F)().checkExperiment("mweb_web_android_ios_backend_clbc_display_controls").anyEnabled,R=(0,c.Z)(t._('{{ fullName }} avatar link', 'creatorCardProfile.avatar.accessibilityLabel', 'Accessibility label for user avatar'),{fullName:null!=v?v:""}),L=(0,y.jsx)(_.q,{children:({active:e,focused:t,hovered:i,onBlur:n,onFocus:a,onMouseEnter:o,onMouseLeave:s})=>(0,y.jsx)(l.xu,{onBlur:n,onFocus:a,onMouseEnter:o,onMouseLeave:s,onMouseDown:()=>{D&&D()},children:(0,y.jsx)(l.zd,{rounding:"circle",wash:i||e||t,children:(0,y.jsx)(r.qE,{accessibilityLabel:R,name:null!=v?v:"",size:"md",src:null!=x?x:"",verified:A})})})}),M=(0,p.ZP)(v,70),Z=(0,y.jsxs)(n.Fragment,{children:[b&&(0,y.jsx)(a.Z,{size:"200",lineClamp:1,weight:"bold",children:t._('Promoted by', 'indicating the username of the person who promoted the pin', 'indicating the username of the person who promoted the pin')}),(0,y.jsx)(l.xu,{"data-test-id":"creator-profile-name",children:(0,y.jsx)(l.xu,{maxWidth:270,children:(0,y.jsx)(l.xv,{color:C,size:"200",weight:F?"normal":"bold",children:f||P?(0,y.jsx)(g.Z,{badgeSize:"xs",badgeSpacing:2,fullName:M,identityIsVerified:f,isVerifiedMerchant:P}):v})})})]}),B=j&&S||m.j.includes(k)&&z,O=`/${null!=j?j:""}/`;return(0,y.jsxs)(l.xu,{alignItems:"center",display:"flex",marginEnd:-1,marginStart:-1,dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},"data-test-id":"creator-card-profile",children:[(0,y.jsx)(l.xu,{"data-test-id":"creator-avatar",flex:"none",paddingX:1,children:w?(0,y.jsx)(l.Tg,{rel:(0,h.Z)(w)?"none":"nofollow",target:T?"blank":null,onTap:E,href:w,children:L}):L}),(0,y.jsxs)(l.xu,{children:[(0,y.jsx)(l.xu,{alignItems:"center",direction:"row",display:"flex",flex:"grow",paddingX:1,children:w?(0,y.jsx)(l.rU,{underline:"none",href:w,onClick:E,rel:(0,h.Z)(w)?"none":"nofollow",target:T?"blank":null,children:Z}):Z}),B?(0,y.jsx)(l.xu,{"data-test-id":"sponsor-title",display:"flex",paddingX:1,children:(0,y.jsx)(m.Z,{href:O,isPromoted:b,sponsorName:S,sponsorUsername:j,sponsorshipStatus:k,onNavigateSponsorClick:I})}):!!i&&(0,y.jsx)(l.xu,{"data-test-id":"follower-count",display:"flex",paddingX:1,children:(0,y.jsx)(l.xv,{color:C,size:"200",children:(0,d.nk)(t.ngettext('{{ followerCount }} follower', '{{ followerCount }} followers', i, 'closeup.creator.followerCount', 'the number of followers the creator of the pin has'),{followerCount:(0,y.jsx)(o.Z,{shortform:!0,shortformMaximumFractionDigits:1,value:i},i)})})})]})]})}},857752:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(240684),l=i(194249),a=i(785893);let r=(0,n.ZP)({resolved:{},chunkName:()=>"EditorWithMentionsInternal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>Promise.all([i.e(72586),i.e(46888),i.e(93179),i.e(35978)]).then(i.bind(i,194270)),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 i(t)},resolve:()=>194270});function o(e){return(0,a.jsx)(r,{...e,fallback:(0,a.jsx)(l.Z,{})})}},194249:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(898781),a=i(785893);function r(){let e=(0,l.ZP)();return(0,a.jsx)(n.kC,{alignItems:"center",justifyContent:"center",children:(0,a.jsx)(n.$j,{accessibilityLabel:e._('Loading editor', 'EditorWithMentionsFallback.loading', 'Message shown while waiting for the editor to load'),show:!0})})}},271040:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(898781),l=i(785893);let a=function(){let e=(0,n.ZP)();return(0,l.jsx)("div",{className:"errorMessage",children:(0,l.jsx)("div",{className:"standaloneErrorPage",children:(0,l.jsx)("div",{children:e._('Whoops! We couldn\u2019t find that page.', ' - ', ' -- ')})})})}},43898:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a(e){let{htmlFor:t,errorMessage:i,errorMessageColor:a="error",icon:r}=e;return(0,l.jsx)(n.__,{htmlFor:t,children:(0,l.jsx)(n.xu,{marginTop:1,children:(0,l.jsxs)(n.kC,{direction:"row",gap:2,children:[r,(0,l.jsx)(n.xv,{color:a,size:"200",children:i})]})})})}},142103:(e,t,i)=>{"use strict";i.d(t,{Z:()=>j});var n=i(667294),l=i(702664),a=i(883119),r=i(407043),o=i(11363),s=i(946984),d=i(918301),u=i(898781),c=i(349700),p=i(584595),h=i(957161),_=i(343341),m=i(829407),g=i(694379),y=i(785893);let v=({followText:e,followerCount:t,userFollowed:i})=>{let n=(0,u.ZP)();return(0,c.nk)(n._('{{ followCount }} {{ followText }}', ' - ', ' -- '),{followCount:(0,y.jsx)(a.xu,{"data-test-id":"followCount",paddingX:1,opacity:i?void 0:.8,children:(0,y.jsx)(a.xv,{color:i?"subtle":"inverse",children:(0,y.jsx)(g.Z,{value:t,shortform:!0,shortformMaximumFractionDigits:0})})},"followCount"),followText:(0,y.jsx)(a.xu,{"data-test-id":"followText",paddingX:1,children:(0,y.jsx)(a.xv,{color:i?"default":"inverse",weight:"bold",children:e})},"followText")})};var f=i(807532),x=i(461773),b=i(698330),P=i(201155),w=i(709113);function S(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class k extends n.PureComponent{constructor(...e){super(...e),S(this,"handleButtonClick",({event:e})=>{let{requireAuth:t,i18n:i,userFollowed:n}=this.props;if(t){e.stopPropagation(),t({loginModalHeader:(0,o.N4)({i18n:i,toFollow:!n})});return}let{shouldStopEventPropagation:l,loggingData:a}=this.props;l&&(e.preventDefault(),e.stopPropagation()),this.props.logContextEvent({event_type:101,component:13672,element:11951,object_id_str:this.props.id,view_type:this.props.viewType,view_parameter:this.props.viewParameter,clientTrackingParams:this.props.clientTrackingParams,...a||Object.freeze({})}),this.toggleFollowUnfollow()}),S(this,"handleClick",({event:e})=>{let{requireAuth:t}=this.props;if((t||this.props.shouldStopEventPropagation)&&e.stopPropagation(),t){t();return}this.toggleFollowUnfollow()}),S(this,"toggleFollowUnfollow",()=>{let{id:e,mostRecentPinId:t,loggingData:i,userFollowed:n,viewType:l,viewParameter:a,clientTrackingParams:r}=this.props;n?(this.props.logContextEvent({event_type:46,object_id_str:e,view_type:l,view_parameter:a,aux_data:{pin_id:t},clientTrackingParams:r,...i||Object.freeze({})}),this.unfollow()):(this.props.logContextEvent({event_type:45,object_id_str:e,view_type:l,view_parameter:a,aux_data:{pin_id:t},clientTrackingParams:r,...i||Object.freeze({})}),this.follow())}),S(this,"follow",()=>{let{follow:e,id:t,onUserFollow:i,mostRecentPinId:n,setMostRecentPinId:l,inviteCode:a,handleFollowSuccessFromInvite:r,loggingData:o,viewType:s,viewParameter:d}=this.props;e(t,n,()=>{a?(null==r||r(),this.props.logContextEvent({event_type:14858,object_id_str:t,view_type:s,view_parameter:d,...o||Object.freeze({})})):this.showConfirmation()},this.showError),i&&i(!0),l(null)}),S(this,"showToast",e=>{let{id:t,imageUrl:i,profileUrl:n,toastManagerContext:l,suppressToasts:a}=this.props;a||l.showOneToast(({hideToast:l})=>(0,y.jsx)(P.Z,{href:n,userId:t,imageUrl:i,handleHide:l,text:e}))}),S(this,"showConfirmation",()=>{let e=(0,y.jsx)(a.xv,{children:this.props.i18n._('Following! Their created Pins will show up in your home feed!', 'userFollowButton.informationalToastText2', 'Text explaining that a creator\'s Pins will show up in home feed after follow')});this.showToast(e)}),S(this,"showError",e=>{let{fullName:t,userFollowed:i,showEmailVerificationReminderModal:n,loggingData:l,inviteCode:r,id:o,viewParameter:s,viewType:d}=this.props,u=i?this.props.i18n._('Error unfollowing {{ usernameComponent }}.', 'UserFollowButton.error.unfollowing', 'When there is an API error when unfollowing a user'):this.props.i18n._('Error following {{ usernameComponent }}.', 'UserFollowButton.error.following', 'When there is an API error when following a user');if(e&&e.api_error_code===p.H9){n();return}let h=(0,y.jsx)(a.xv,{children:(0,c.nk)(u,{usernameComponent:(0,y.jsx)(a.xv,{weight:"bold",inline:!0,children:t})})});this.showToast(h),!i&&r&&this.props.logContextEvent({event_type:14859,object_id_str:o,view_type:d,view_parameter:s,...l||Object.freeze({})})}),S(this,"unfollow",()=>{let{id:e,onUserFollow:t,unfollow:i,mostRecentPinId:n,setMostRecentPinId:l}=this.props;i(e,n,()=>{},this.showError),t&&t(!1),l(null)})}renderButton(){let{button:e,followerCount:t,inline:i=!1,isOwnProfile:n,invertButtonColor:l,isSecondaryButton:r,size:o,showFollowerCount:s,userFollowed:d}=this.props,u=d?this.props.i18n._('Following', 'User follow button', 'User follow button'):this.props.i18n._('Follow', 'User follow button', 'User follow button');if(e)return e({followText:u,onClick:this.handleButtonClick,userFollowed:d});if(n)return(0,y.jsx)(a.zx,{fullWidth:!0,disabled:!0,text:this.props.i18n._('This is you', 'Button label to note that this is your Profile', 'Button label to note that this is your Profile')});if(!s)return(0,y.jsx)(a.xu,{display:"inlineBlock","data-test-id":`user-${d?"unfollow":"follow"}-button`,children:(0,y.jsx)(a.zx,{accessibilityLabel:d?this.props.i18n._('Unfollow', 'userUnfollowButton.button.accessibilityLabel', 'Accessibility label for the unfollow button'):this.props.i18n._('Follow', 'userFollowButton.button.accessibilityLabel', 'Accessibility label for the follow button'),color:r||d?"gray":"red",selected:l?!d:!!d,fullWidth:i,onClick:this.handleButtonClick,size:null!=o?o:void 0,text:u})});{let e="number"==typeof t?(0,y.jsx)(v,{followerCount:t,userFollowed:d,followText:u}):u;return(0,y.jsx)(a.iP,{onTap:this.handleClick,children:(0,y.jsx)(a.xu,{color:d?"secondary":"primary",rounding:2,paddingX:3,paddingY:3,children:(0,y.jsx)(a.kC,{alignItems:"center",justifyContent:"start",children:e})})})}}render(){let{showPulsar:e,userFollowed:t}=this.props;return(0,y.jsxs)(a.xu,{position:"relative",display:"flex",children:[this.renderButton(),e&&(0,y.jsx)(a.iP,{onTap:this.handleClick,children:(0,y.jsx)(a.xu,{position:"absolute",display:"inlineBlock",dangerouslySetInlineStyle:{__style:{marginLeft:-86,marginTop:-28}},children:(0,y.jsx)(a.o3,{paused:t||!1})})})]})}}function j(e){let{logContextEvent:t}=(0,r.v)(),i=(0,u.ZP)(),{id:n,setMostRecentPinId:a}=(0,f.f)(),o=(0,s.Z)(),c=(0,l.useDispatch)(),{showEmailVerificationReminderModal:p}=(0,d.y9)(),g=(0,b.mN)()(e.id),v=null==g?void 0:g.follower_count,P=g?g.explicitly_followed_by_me:e.userFollowed;return(0,m.Z)(()=>{let{id:t}=e,i=h.Z.getItem(w.AG)||"";i&&i===t&&(h.Z.removeItem(w.AG),c((0,x.ZN)(i,e.clientTrackingParams)))}),(0,y.jsx)(k,{...e,follow:(t,i,n,l)=>{c((0,x.yA)(t,i,e.clientTrackingParams,e.inviteCode)).then(n).catch(e=>{l(e)})},followerCount:v,i18n:i,logContextEvent:t,mostRecentPinId:n,requireAuth:o,setMostRecentPinId:a,showEmailVerificationReminderModal:p,toastManagerContext:(0,_.F9)(),unfollow:(t,i,n,l)=>{c((0,x.KF)(t,i,e.clientTrackingParams)).then(n,l)},userFollowed:P})}},815613:(e,t,i)=>{"use strict";i.d(t,{Z:()=>k}),i(167912);var n,l=i(883119),a=i(112690),r=i(357998),o=i(898781),s=i(773285),d=i(667679),u=i(867820),c=i(52022),p=i(343341),h=i(50286),_=i(829407),m=i(19121),g=i(945698),y=i(927383),v=i(698330),f=i(201155),x=i(640064),b=i(785893);let P=({children:e,pulsar:t,testId:i})=>t.show?(0,b.jsx)(l.xu,{position:"relative","data-test-id":i,children:(0,b.jsxs)(l.iP,{tapStyle:"none",onTap:t.onClick,children:[(0,b.jsx)(l.xu,{position:"absolute",marginTop:-5,dangerouslySetInlineStyle:{__style:{marginLeft:"-75px"}},children:e}),(0,b.jsx)(l.xu,{position:"absolute",marginTop:-12,dangerouslySetInlineStyle:{__style:{marginLeft:"-83px"}},children:(0,b.jsx)(l.o3,{})})]})}):(0,b.jsx)(l.xu,{"data-test-id":i,children:e}),w=void 0!==n?n:n=i(84928),S=e=>({linkDomain:e.link_domain&&{officialUser:e.link_domain.official_user&&{imageMediumUrl:e.link_domain.official_user.image_medium_url,username:e.link_domain.official_user.username}},nativeCreator:e.native_creator&&{imageMediumUrl:e.native_creator.image_medium_url,username:e.native_creator.username},originPinner:e.origin_pinner&&{imageMediumUrl:e.origin_pinner.image_medium_url,username:e.origin_pinner.username},pinner:e.pinner&&{imageMediumUrl:e.pinner.image_medium_url,username:e.pinner.username}});function k({auxData:e,disabled:t,disableLog:i,followEventType:n,id:k,inline:j,invertColors:A,isFollowed:C,isIdeaPin:D,isLegoEnabled:E,isSecondaryButton:I,isUserFollowButton:T,isUserMe:F,onFollow:z,onUnfollow:R,pinKey:L,shouldUseLegoColors:M,showPulsar:Z,size:B,textType:O="FollowFollowing",unfollowEventType:N,viewParameter:K,viewType:U,clientTrackingParams:H}){let V;let G=(0,o.ZP)(),W=(0,h.HG)(),{showToast:$}=(0,p.F9)(),q=(0,c.Z)(),Y=(0,a.Z)(),X=(0,d.Z)(),{checkExperiment:Q}=(0,s.F)(),J=(0,y.Z)(),ee=(0,m.Z)(),et=ee&&ee.isAuth,{unauthFollowUserId:ei,setUnauthFollowUserId:en}=(0,x.f)(),el=(0,v.mN)()(k),ea=el&&{imageMediumUrl:el.image_medium_url,username:el.username},{data:er}=(0,r.Q)(w,L,{useLegacyAdapter:S}),eo=null==er?void 0:er.linkDomain,es=null==er?void 0:er.nativeCreator,ed=null==er?void 0:er.originPinner,eu=null==er?void 0:er.pinner;V=es||(eo?eo.officialUser:ed||eu);let ec=null!=ea?ea:V;(0,_.Z)(()=>{!W&&et&&ei&&k&&ei===k&&z(k)});let ep=J({fn:()=>{et?C?(R(k),i||Y({event_type:N,view_type:U,view_parameter:K,object_id_str:k,aux_data:e,clientTrackingParams:H})):(z(k),T&&$(({hideToast:e})=>{if(!ec)return null;let t=ec.username?`/${ec.username}/`:"";return(0,b.jsx)(f.Z,{handleHide:e,text:G._('Following! Their created Pins will show up in your home feed!', 'followButton.follow.informationalToastText', 'Text explaining that a creator\'s Pins will show up in home feed after follow'),userId:k,href:t,imageUrl:ec.imageMediumUrl})}),i||Y({event_type:n,view_type:U,view_parameter:K,object_id_str:k,aux_data:e,clientTrackingParams:H})):((0,u.My)(`mweb_unauth_follow_button.tap.${String(U)}`),5===U&&26===n&&(0,u.My)("mweb_unauth_board_page_follow_button.tap"),(0,u.NC)(C?"press_profile_unfollow":"press_profile_follow"),q({action:"click",item:"board-follow-button"}),X({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:D?"click_idea_pin_follow":"click_follow",desktopOptions:{modalType:"signup",modalOptions:W&&Q("pcons_dweb_contextual_follow_modal").anyEnabled?{source:"followButton",container:"follow"}:void 0},mobileOptions:!W&&Q("pcons_mweb_contextual_follow_modal").anyEnabled?{headingType:"follow"}:void 0}),W||en(null!=k?k:""),(0,u.NC)("clickthrough"))},modalHeader:(0,g.N4)({i18n:G,toFollow:!C})}),eh=!C&&!!Z,e_=()=>{if(F)return G._('That\'s you!', 'Follow button is disabled because this is you', 'Follow button is disabled because this is you');if("AddRemove"===O)return C?G._('Remove', 'unfollowButton.removeText', 'Follow button label - followed state, so user can click to "remove" the follow'):G._('Add', 'followButton.addText', 'Follow button label - unfollowed state, so user can click to "add" the follow');let e="FollowUnfollow"===O?G._('Unfollow', 'unfollowButton.unfollowText', 'Follow button label - followed state, so user can click to "unfollow" the follow'):G._('Following', 'Follow button label - followed state', 'Follow button label - followed state');return C?e:G._('Follow', 'Follow button label - unfollowed state', 'Follow button label - unfollowed state')};return(0,b.jsx)(P,{pulsar:eh?{show:!0,onClick:ep}:{show:!1},testId:F||C?"board-unfollow-button":"board-follow-button",children:(0,b.jsx)(l.zx,{color:M||"AddRemove"===O||!E&&I||C?"gray":"red",disabled:F||t,fullWidth:j,onClick:eh?void 0:({event:t})=>{t.preventDefault(),t.stopPropagation(),i||Y({event_type:101,component:13672,element:11951,object_id_str:k,view_type:U,view_parameter:K,aux_data:e,clientTrackingParams:H}),ep()},selected:A?!C:M&&C||!!C&&I,size:B,text:e_(),accessibilityLabel:e_()})})}},833991:(e,t,i)=>{"use strict";i.d(t,{HW:()=>r,YW:()=>c,i3:()=>p,o2:()=>u});var n=i(667294),l=i(425288),a=i(785893);let r=660,o={educationId:null,paddingRight:0,zIndex:r};function s(e,t){switch(t.type){case"FOOTER_SET_EDUCATION_ID":let{educationId:i}=t.payload;return{...e,educationId:i};case"FOOTER_SET_PADDING_RIGHT":let{paddingRight:n}=t.payload;return{...e,paddingRight:n};case"FOOTER_SET_Z_INDEX":let{zIndex:l}=t.payload;return{...e,zIndex:l};default:return e}}let{Provider:d,Consumer:u,useHook:c}=(0,l.Z)("footerContext");function p({children:e}){let[t,i]=(0,n.useReducer)(s,o),l=(0,n.useCallback)(e=>i({type:"FOOTER_SET_PADDING_RIGHT",payload:{paddingRight:e}}),[]),r=(0,n.useCallback)(e=>i({type:"FOOTER_SET_EDUCATION_ID",payload:{educationId:e}}),[]),u=(0,n.useCallback)(e=>i({type:"FOOTER_SET_Z_INDEX",payload:{zIndex:e}}),[]),c=(0,n.useMemo)(()=>({...t,setEducationId:r,setPaddingRight:l,setZIndex:u}),[t,r,l,u]);return(0,a.jsx)(d,{value:c,children:e})}},427806:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({text:e}){return(0,l.jsx)(n.xu,{display:"visuallyHidden",children:(0,l.jsx)(n.X6,{accessibilityLevel:1,children:e})})}},550448:(e,t,i)=>{"use strict";i.d(t,{e:()=>l,p:()=>a});var n=i(425288);let{Provider:l,useHook:a}=(0,n.Z)("headerButtonContext")},924114:(e,t,i)=>{"use strict";i.d(t,{H8:()=>h,Ut:()=>p,fr:()=>c});var n=i(667294),l=i(425288),a=i(311541),r=i(839377),o=i(785893);let s=()=>i.e(67891).then(i.bind(i,367891)),{Provider:d,useHook:u}=(0,l.Z)("IdeaPin");function c({children:e}){let[t,i]=(0,a.Z)(s,r.Z),l=(0,n.useMemo)(()=>({dispatch:i,ideaPin:t}),[i,t]);return(0,o.jsx)(d,{value:l,children:e})}function p(){let{dispatch:e}=u();return(0,n.useMemo)(()=>({setIdeaPinActivePage:t=>{e({type:"IDEA_PIN_ACTIVE_PAGE",payload:{activePage:t}})},setIdeaPinDynamicWidth:t=>{e({type:"IDEA_PIN_DYNAMIC_WIDTH",payload:{dynamicWidth:t}})}}),[e])}function h(){let{ideaPin:e}=u();return e}},839377:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n={activePage:0,dynamicWidth:0}},861411:(e,t,i)=>{"use strict";i.d(t,{fv:()=>f,fS:()=>k,Vi:()=>v,Hs:()=>b,Mv:()=>g,uc:()=>y,dL:()=>m,qS:()=>x,Y4:()=>S,HE:()=>w,Cy:()=>P});var n=i(667294),l=i(973935),a=i(407043),r=i(124580),o=i(785893);function s(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class d extends n.Component{constructor(...e){super(...e),s(this,"observe",()=>{try{if(this.node=(0,l.findDOMNode)(this),this.node instanceof HTMLElement){let{pinIdStr:e,newsIdStr:t}=this.props.eventData;r.Z.start(this.node).onExitViewport(this.logImpression).setDebugId(e||t||"unknown")}}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}}),s(this,"logImpression",e=>{this.props.logImpression({viewData:this.props.viewData||{},viewType:this.props.viewType,viewParameter:this.props.viewParameter,eventType:this.props.eventType,impressionType:this.props.impressionType,auxData:this.props.auxData,component:this.props.component,objectIdStr:this.props.objectIdStr,eventData:{endTime:e.endTime,time:e.startTime,...this.props.eventData}})})}componentDidMount(){this.props.isPaused||this.observe()}componentDidUpdate(e){e.isPaused&&!this.props.isPaused&&this.observe()}componentWillUnmount(){this.node instanceof HTMLElement&&r.Z.stop(this.node)}render(){return n.Children.only(this.props.children)}}function u(e){let{logImpression:t}=(0,a.v)();return(0,o.jsx)(d,{...e,logImpression:t})}var c=i(337815),p=i(780280),h=i(807609);function _({auxData:e,component:t,eventData:i,eventType:l,impressionType:o,isPaused:s,objectIdStr:d,viewData:u,viewType:_,viewParameter:m}){let g=(0,n.useRef)(null),{logImpression:y}=(0,a.v)(),v=(0,h.Z)(),f=(0,p.B)(),x=(0,n.useCallback)(()=>{try{if(g.current instanceof HTMLElement){let{pinIdStr:n,newsIdStr:a}=i;r.Z.start(g.current).onExitViewport(n=>{var a,r,s,p,h,x;y({viewData:u||{},viewType:_,viewParameter:m,eventType:l,impressionType:o,auxData:e,component:t,objectIdStr:d,eventData:{endTime:n.endTime,time:n.startTime,pinCellWidth:(null===(a=g.current)||void 0===a?void 0:a.getBoundingClientRect().width)||0,pinCellHeight:(null===(r=g.current)||void 0===r?void 0:r.getBoundingClientRect().height)||0,windowWidth:null===(s=window)||void 0===s?void 0:s.innerWidth,windowHeight:null===(p=window)||void 0===p?void 0:p.innerHeight,...i}});let{attributionSourceId:b,campaignId:P,isPromoted:w,link:S,advertiserId:k}=i;"pinImpressions"===o&&w&&!v&&null!==(h=window.document.featurePolicy)&&void 0!==h&&h.allowsFeature("attribution-reporting")&&(0,c.YS)(o,w,null!=b?b:null,S,P,{appType:f.appTypeDetailed,osType:(0,c.eF)(null!==(x=f.userAgent.osName)&&void 0!==x?x:"Unknown")},null!=k?k:null)}).setDebugId(n||a||"unknown")}}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}},[g.current]);return(0,n.useEffect)(()=>{s||x();let{current:e}=g;return()=>{e instanceof HTMLElement&&r.Z.stop(e)}},[s,x]),g}let m=e=>{let t=_({eventData:{...e.impressionData||{},pinIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:18,impressionType:"pinImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},g=e=>{let t=_({eventData:{newsIdStr:e.notificationId,newsType:e.newsType,displayMode:e.displayMode,newsIndex:e.newsIndex||0,tapItemIdStr:e.tapItemIdStr},auxData:e.auxData||{},eventType:4111,impressionType:"notificationDetailImpressions",loggingId:e.notificationId,viewType:107,viewParameter:3082});return e.children({impressionTrackerRef:t})},y=e=>{let t=_({eventData:{newsIdStr:e.notificationId,newsType:e.newsType},auxData:e.auxData||{},eventType:4110,impressionType:"notificationFeedImpressions",loggingId:e.notificationId,viewType:107,viewParameter:3081});return e.children({impressionTrackerRef:t})},v=e=>(0,o.jsx)(u,{eventData:{...e.impressionData||{},articleIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:3829,impressionType:"articleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),f=e=>{let t=_({eventData:{...e.impressionData||{},articleIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:3829,impressionType:"articleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},x=e=>{let t=_({eventData:{...e.impressionData||{},storyIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:170,impressionType:"storyImpression",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},b=e=>(0,o.jsx)(u,{eventData:{...e.impressionData||{},storyIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:170,impressionType:"storyImpression",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),P=e=>{let t=_({eventData:{...e.impressionData||{},userIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0},auxData:e.auxData||{},component:e.component,eventType:3704,impressionType:"userImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},w=e=>{let t=_({eventData:{...e.impressionData||{},topicIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0},auxData:e.auxData||{},component:e.component,eventType:3703,impressionType:"topicImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},S=e=>{let t=_({eventData:{...e.impressionData||{},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:8569,impressionType:"todayArticleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},k=e=>{let t=_({eventData:{...e.impressionData||{},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:3700,impressionType:"boardImpressions",loggingId:e.loggingId,viewType:e.viewType||1,viewParameter:e.viewParameter,viewData:e.viewData});return e.children({impressionTrackerRef:t})}},878552:(e,t,i)=>{"use strict";i.d(t,{P:()=>h,Q:()=>p});var n=i(667294),l=i(425288);let a={fullName:"",email:"",phoneNumber:"",zipCode:"",formSubmissions:{}};function r(e=a,t){switch(t.type){case"AUTOFILL_LEADGEN_USER_INFO":return{...e,fullName:t.payload.fullName,email:t.payload.email};case"SET_LEADGEN_USER_INFO":return{...e,formSubmissions:t.payload.formSubmissions};default:return e}}var o=i(780280),s=i(784590);let d=()=>{let{isAuthenticated:e}=(0,o.B)();return(0,s.Z)(e?{name:"ApiResource",options:{url:"/v3/users/me/",data:{fields:["user.full_name","user.email","user.is_name_eligible_for_lead_form_autofill","user.is_email_eligible_for_lead_form_autofill"]}}}:null)};var u=i(785893);let{Provider:c,useHook:p}=(0,l.Z)("LeadGen");function h({children:e}){let{isLoaded:t,data:i}=d(),[l,o]=(0,n.useReducer)(r,a),s=(0,n.useCallback)(e=>o({type:"SET_LEADGEN_USER_INFO",payload:e}),[]);(0,n.useEffect)(()=>{if(t){let e={...a,fullName:null!=i&&i.is_name_eligible_for_lead_form_autofill?i.full_name:"",email:null!=i&&i.is_email_eligible_for_lead_form_autofill?i.email:""};o({type:"AUTOFILL_LEADGEN_USER_INFO",payload:e})}},[t,i]);let p=(0,n.useMemo)(()=>({updateLeadGenInfo:s,leadGen:l}),[s,l]);return(0,u.jsx)(c,{value:p,children:e})}},63552:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({children:e,onMouseEnter:t,onMouseLeave:i,onTouch:a,rounding:r,fullWidth:o=!1,pressState:s="none",accessibilityLabel:d,role:u}){let c=(Array.isArray(s)?s:[s]).includes("compress");return(0,l.jsx)(n.iP,{fullWidth:o,onMouseEnter:t&&(({event:e})=>t(e)),onMouseLeave:i&&(({event:e})=>i(e)),onTap:a&&(({event:e})=>a(e)),rounding:r,tapStyle:c?"compress":"none",accessibilityLabel:d,role:u,children:e})}},807532:(e,t,i)=>{"use strict";i.d(t,{C:()=>s,f:()=>o});var n=i(667294),l=i(425288),a=i(785893);let{Provider:r,useHook:o}=(0,l.Z)("MostRecentPin");function s({children:e}){let[t,i]=(0,n.useState)(),[l,o]=(0,n.useState)(),s=(0,n.useCallback)(e=>{let t=l?l.slice(0,10):[],i=[e].concat(t.filter(t=>t!==e));o(i)},[l]),d=(0,n.useMemo)(()=>({id:t,plpImageSignatures:l,setMostRecentPinId:i,setMostRecentPinImage:s}),[t,l,s]);return(0,a.jsx)(r,{value:d,children:e})}},94089:(e,t,i)=>{"use strict";i.d(t,{G:()=>p,Kl:()=>h,vo:()=>c});var n=i(667294),l=i(425288),a=i(505920),r=i(311541),o=i(785893);let s=()=>i.e(18870).then(i.bind(i,218870)),{Provider:d,useHook:u}=(0,l.Z)("NativeEngagements");function c({children:e}){let[t,i]=(0,r.Z)(s,[]),l=e=>{i({type:"FETCH_COMPLETE",payload:e})};(0,a.Z8)("NativeInteractionsResource",l),(0,a.my)("NativeInteractionsResource",l);let u=(0,n.useMemo)(()=>({dispatch:i,nativeEngagements:t}),[i,t]);return(0,o.jsx)(d,{value:u,children:e})}function p(){let{dispatch:e}=u();return(0,n.useMemo)(()=>({nativeEngagementsHiddenForUser:t=>{e({type:"NATIVE_ENGAGEMENT_HIDDEN_FOR_USER",payload:{userId:t}})}}),[e])}function h(){let{nativeEngagements:e}=u();return e}},825067:(e,t,i)=>{"use strict";i.d(t,{H:()=>l,W:()=>a});var n=i(425288);let{Provider:l,useMaybeHook:a}=(0,n.Z)("PinCreateDeleteContext")},130460:(e,t,i)=>{"use strict";i.d(t,{bn:()=>o,fJ:()=>d,gC:()=>s});var n=i(702664),l=i(425288),a=i(785893);let{Provider:r,useHook:o}=(0,l.Z)("Boards");function s(){let e=o();return t=>e[t]}function d({children:e}){let t=(0,n.useSelector)(({boards:e})=>e,n.shallowEqual);return(0,a.jsx)(r,{value:t,children:e})}},698330:(e,t,i)=>{"use strict";i.d(t,{Tt:()=>c,cm:()=>u,kW:()=>s,kY:()=>p,mN:()=>d});var n=i(702664),l=i(425288),a=i(19121),r=i(785893);let{Provider:o,useHook:s}=(0,l.Z)("Users");function d(){let e=s();return t=>e[t]}function u(){let e=s();return t=>{let i=Object.keys(e).find(i=>e[i].username===t);return e[null!=i?i:""]}}function c(){let{id:e}=(0,a.Z)(),t=s();return t[null!=e?e:""]}function p({children:e}){let t=(0,n.useSelector)(({users:e})=>e,n.shallowEqual);return(0,r.jsx)(o,{value:t,children:e})}},897103:(e,t,i)=>{"use strict";i.d(t,{Z:()=>S});var n=i(667294),l=i(702664),a=i(883119),r=i(27255),o=i(898781),s=i(414327),d=i(784590),u=i(984206),c=i(19121),p=i(717615),h=i(845772),_=i(231947),m=i(654287),g=i(615298),y=i(507016),v=i(488769),f=i(109892),x=i(785893);function b(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function P({board:e,hovered:t,searchQuery:i}){let n=e.privacy===r.Z.BoardPrivacy.SECRET;return(0,x.jsxs)(a.xu,{color:t?"secondary":"default",display:"flex",padding:2,rounding:2,children:[(0,x.jsx)(a.xu,{flex:"grow",children:(0,x.jsx)(a.xv,{weight:"bold",children:(0,y.W)(i,e.name)})}),(0,x.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",flex:"none",children:[n&&(0,x.jsx)(v.Z,{type:"secret"}),e.is_collaborative&&(0,x.jsx)(v.Z,{type:"group"})]})]})}class w extends n.Component{constructor(e){super(e),b(this,"getSections",()=>{var e;if(!(null!==(e=this.props.boardResource.data)&&void 0!==e&&e.all_boards))return[];let{searchQuery:t}=this.state,{boardResource:{data:{all_boards:i}}}=this.props;return t.length>=u.Z?[{items:(0,g.j)(i,t)}]:[{items:i}]}),b(this,"createBtnDisabled",()=>{var e;if(!(null!==(e=this.props.boardResource.data)&&void 0!==e&&e.all_boards))return!1;let{boardResource:{data:{all_boards:t}}}=this.props,{searchQuery:i}=this.state;return t.some(e=>{var t;return(null===(t=e.name)||void 0===t?void 0:t.toLowerCase())===i.toLowerCase()})}),b(this,"handleBoardCreate",()=>()=>{let{searchQuery:e}=this.state;if(!e)return;let{createBoard:t,invalidateBoardPickerBoardsResource:i,onBoardCreate:n}=this.props;if(i(),n){n(e);return}t({name:e,privacy:"public"}).then(e=>{let{onBoardChosen:t}=this.props;t(e)})}),b(this,"handleBoardSelected",e=>{this.props.onBoardChosen(e),this.setState({selectedBoard:e})}),b(this,"handleSearchQueryUpdate",e=>{this.setState({searchQuery:e})}),b(this,"renderRow",({item:e,hovered:t})=>{let{searchQuery:i}=this.state;return(0,x.jsx)(P,{board:e,hovered:t,searchQuery:i})}),this.state={searchQuery:"",selectedBoard:e.board}}render(){let{boardResource:e,board:t,isBoardlessPinsBoard:i,isQuickCreatesBoard:n,isStoryPin:l}=this.props,{searchQuery:r,selectedBoard:o}=this.state,s=this.props.i18n._('Select a board', 'Label for selecting a board in Edit Pin Modal', 'Label for selecting a board in Edit Pin Modal');return t?s=n?this.props.i18n._('Choose board', 'BoardPickerFlyout.displayBoardName.quickCreatesBoard', 'Title for board picker when current board is a quick creates board'):i?this.props.i18n._('Profile', 'BoardPickerFlyout.displayBoarName.boardlessPins', 'Title indicating the pin is saved to profile'):t.name:o&&(s=o.name),(0,x.jsxs)(a.xu,{children:[(0,x.jsx)(a.$j,{accessibilityLabel:this.props.i18n._('loading board picker', 'accessibility text for loading spinner', 'accessibility text for loading spinner'),show:!e.isLoaded}),e.data&&(0,x.jsx)(m.Z,{createBtnDisabled:this.createBtnDisabled(),dropdownValue:s||"",isStoryPin:l,onCreate:this.handleBoardCreate(),onSearchQueryUpdate:this.handleSearchQueryUpdate,onSelect:this.handleBoardSelected,renderRow:this.renderRow,searchQuery:r,sections:this.getSections()})]})}}function S(e){let t=(0,f.Z)(),i=(0,o.ZP)(),n=(0,l.useDispatch)(),a=(0,c.Z)(),r=(0,l.useSelector)(({advertiser:e})=>e),u=a.isAuth&&r&&r.owner_user_id!==a.id,m=u?r.id:null,g=u?r.owner_user_id:null,y=(0,p.Z)(),v=(0,h.Z)(),b=(0,_.Ms)(a,y),P=b||g,S=(0,d.Z)({name:"BoardPickerBoardsResource",options:{pin_id:e.pinId,field_set_key:"board_picker",onlyFetchBoards:!0,username:P,...m&&g?{advertiser_id:m,filter:"protected",username:g}:{},orbac_subject_id:v},noCache:!0});return(0,x.jsx)(w,{...e,advertiser_id:m,boardResource:S,createBoard:e=>t({boardCreateOptions:e}),invalidateBoardPickerBoardsResource:()=>{n((0,s.jB)("BoardPickerBoardsResource",{field_set_key:"board_picker",...b?{username:b}:{username:g}}))},username:g,viewer:a,i18n:i})}},654287:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(667294),l=i(883119),a=i(898781),r=i(773285),o=i(887831),s=i(176020),d=i(960260),u=i(33897),c=i(785893);function p(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class h extends n.Component{constructor(...e){super(...e),p(this,"state",{itemSelected:!1,showFlyout:!1}),p(this,"setContainerRef",e=>{this.containerRef=e}),p(this,"handleCreate",()=>{this.hideFlyout();let{onCreate:e}=this.props;e&&e()}),p(this,"handleSelectItem",e=>{this.hideFlyout();let{onSelect:t,onCreate:i}=this.props;e?(this.setState(()=>({itemSelected:!0})),t(e)):i&&i()}),p(this,"handleDropdownTouch",()=>{this.setState(e=>({showFlyout:!e.showFlyout}))}),p(this,"handleHideFlyout",e=>{this.containerRef&&e.target instanceof HTMLElement&&!this.containerRef.contains(e.target)&&this.hideFlyout()}),p(this,"hideFlyout",()=>{let{hoverHandlers:{onMouseLeave:e}}=this.props;e(),this.setState({showFlyout:!1})})}componentDidMount(){document.addEventListener("click",this.handleHideFlyout,{capture:!0})}componentWillUnmount(){document.removeEventListener("click",this.handleHideFlyout,{capture:!0})}render(){let{dropdownValue:e,fetchMore:t,hoverHandlers:{onMouseOver:i,onMouseLeave:n},idealDirection:a,isHovering:r,isStoryPin:o,onCreate:p,onSearchQueryUpdate:h,renderRow:_,searchQuery:m,sections:g,createBtnDisabled:y}=this.props,{itemSelected:v,showFlyout:f}=this.state;this.indexManager=new s.Z(g.map(e=>e.items)),this.indexManager.setSelectItem(this.handleSelectItem);let x=!m.trim()||!!y;return(0,c.jsxs)(l.xu,{ref:this.setContainerRef,flex:o?"grow":void 0,children:[(0,c.jsx)(l.iP,{fullWidth:!!o,onMouseEnter:i,onMouseLeave:n,onTap:this.handleDropdownTouch,rounding:o?4:2,children:o?(0,c.jsxs)(l.xu,{alignItems:"center",borderStyle:"lg",direction:"row",display:"flex",flex:"grow",paddingX:4,paddingY:o?4:3,rounding:o?4:2,children:[(0,c.jsx)(l.kC,{alignItems:"stretch",justifyContent:"start",flex:"grow",children:(0,c.jsx)(l.xv,{color:v?"default":"subtle",children:e})}),(0,c.jsx)(l.JO,{accessibilityLabel:this.props.i18n._('Icon for drop down', 'repinPicker.pickerFlyoutIcon.accessibilityLabel', 'Accessibility label for the arrow-down icon.'),color:"default",icon:"arrow-down",size:14})]}):(0,c.jsxs)(l.xu,{alignItems:"center",color:r?"lightWash":"secondary",direction:"row",display:"flex",flex:"grow",paddingX:4,paddingY:o?4:3,rounding:o?4:2,children:[(0,c.jsx)(l.kC,{alignItems:"stretch",justifyContent:"start",flex:"grow",children:(0,c.jsx)(l.xv,{weight:"bold",color:"default",children:e})}),(0,c.jsx)(l.JO,{accessibilityLabel:"",color:"default",icon:"arrow-down",size:14})]})}),f&&(0,c.jsx)(l.xu,{position:"relative",children:(0,c.jsxs)(l.xu,{left:"left"===a,right:"right"===a,borderStyle:"sm",color:"default",direction:"column",display:"flex",overflow:"hidden",position:"absolute",rounding:o?4:2,width:o?"150%":"100%",zIndex:new l.Ry(2),children:[(0,c.jsx)(l.xu,{children:(0,c.jsxs)(l.xu,{display:"flex",marginStart:-1,marginEnd:-1,padding:2,children:[(0,c.jsx)(l.xu,{display:"flex",flex:"grow",paddingX:1,children:(0,c.jsx)(u.Z,{hideIcon:!0,indexManager:this.indexManager,onChange:h,value:m})}),p&&(0,c.jsx)(l.xu,{paddingX:1,children:(0,c.jsx)(l.zx,{disabled:x,onClick:this.handleCreate,text:this.props.i18n._('Create', 'board or section dropdown create button', 'board or section dropdown create button')})})]})}),(0,c.jsx)(d.Z,{fetchMore:t,indexManager:this.indexManager,maxHeight:240,onSelectItem:this.handleSelectItem,renderItem:_,sections:g})]})})]})}}function _(e){let t=(0,a.ZP)(),{checkExperiment:i}=(0,r.F)(),{isHovering:n,hoverHandlers:l}=(0,o.Z)();return(0,c.jsx)(h,{...e,checkExperiment:i,hoverHandlers:l,i18n:t,isHovering:n})}},241563:(e,t,i)=>{"use strict";i.d(t,{Z:()=>x,x:()=>f});var n=i(667294),l=i(702664),a=i(883119),r=i(112690),o=i(898781),s=i(784590),d=i(984206),u=i(678638),c=i(654287),p=i(615298),h=i(507016),_=i(785893);function m(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let g="NO_SECTION_VALUE";function y({section:e,hovered:t,searchQuery:i}){return(0,_.jsxs)(a.xu,{children:[(0,_.jsx)(a.xu,{color:t?"secondary":"default",display:"flex",padding:2,rounding:2,children:(0,_.jsx)(a.xu,{flex:"grow",children:(0,_.jsx)(a.xv,{weight:"bold",children:(0,h.W)(i,e.title)})})}),e.id===g&&(0,_.jsx)(a.iz,{})]})}class v extends n.Component{constructor(...e){super(...e),m(this,"state",{searchQuery:""}),m(this,"getPickerSections",()=>{let{searchQuery:e}=this.state,{sectionsResource:t,mergingFromSectionId:i}=this.props,n=t&&t.data||[];return n=i?n.filter(e=>e.id!==i):[{id:g,title:this.props.i18n._('No section', 'default dropdown option for selecting a board section on pin edit', 'default dropdown option for selecting a board section on pin edit')},...n],e.length>=d.Z&&(n=(0,p.j)(n,e,"title")),[{items:n}]}),m(this,"createBtnDisabled",()=>{let{sectionsResource:e}=this.props,{searchQuery:t}=this.state;return!!e&&!!e.data&&e.data.some(e=>{var i;return(null===(i=e.title)||void 0===i?void 0:i.toLowerCase())===t.toLocaleLowerCase()})}),m(this,"handleSectionCreate",()=>{let{board:e,onSectionChange:t,sectionsResource:i,dispatch:n,onSectionCreate:l,logContextEvent:a}=this.props,{searchQuery:r}=this.state;if(l){l(r);return}n&&e.id&&n((0,u.vB)({boardId:e.id,name:r},this.props.i18n,void 0,a)).then(e=>{i&&i.refresh(),this.setState({searchQuery:""}),t(e)})}),m(this,"handleSectionSelected",e=>{let{onSectionChange:t}=this.props;t(e.id===g?null:e),this.setState({searchQuery:""})}),m(this,"handleSearchQueryUpdate",e=>{this.setState({searchQuery:e})}),m(this,"renderRow",({item:e,hovered:t})=>{let{searchQuery:i}=this.state;return(0,_.jsx)(y,{hovered:t,searchQuery:i,section:e})})}componentDidUpdate(e){let t=e.selectedSectionId,{selectedSectionId:i}=this.props;if(i!==t){let{sectionsResource:e}=this.props;e&&e.refresh()}}render(){let{idealDirection:e,isStoryPin:t,sectionsResource:i,selectedSectionId:n,mergingFromSectionId:l,selectedSectionName:r}=this.props,{searchQuery:o}=this.state,s=l?this.props.i18n._('Pick a section', 'default dropdown option for selecting a board section to merge to', 'default dropdown option for selecting a board section to merge to'):this.props.i18n._('No section', 'default dropdown option for selecting a board section on pin edit', 'default dropdown option for selecting a board section on pin edit'),d=s;if(n){let e;i&&i.data&&(e=i.data.find(e=>e.id===n)),d=e&&e.title||d}else r&&(d=r);return(0,_.jsxs)(a.xu,{children:[(0,_.jsx)(a.$j,{accessibilityLabel:this.props.i18n._('loading section picker', 'accessibility text for loading spinner', 'accessibility text for loading spinner'),show:!!i&&!i.isLoaded}),(!i||i&&i.isLoaded)&&(0,_.jsx)(c.Z,{createBtnDisabled:this.createBtnDisabled(),dropdownValue:d,idealDirection:e,isStoryPin:t,onCreate:l?null:this.handleSectionCreate,onSearchQueryUpdate:this.handleSearchQueryUpdate,onSelect:this.handleSectionSelected,renderRow:this.renderRow,searchQuery:o,sections:this.getPickerSections()})]})}}function f(e){let t=(0,o.ZP)();return(0,_.jsx)(v,{...e,dispatch:(0,l.useDispatch)(),i18n:t,logContextEvent:(0,r.Z)()})}function x(e){let t=(0,s.Z)({name:"BoardSectionsRepinResource",options:{board_id:e.board.id},noCache:!0});return(0,_.jsx)(f,{...e,sectionsResource:t})}},33897:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(667294),l=i(883119),a=i(898781),r=i(755742);i(176020);var o=i(785893);function s(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class d extends n.Component{constructor(...e){super(...e),s(this,"setInputRef",e=>{e&&(this._input=e)}),s(this,"handleKeyDown",e=>{let{disabled:t,indexManager:i}=this.props;if(!t)switch(e.which){case r.Z.ENTER:case r.Z.NUMPAD_ENTER:e.preventDefault(),i.select();break;case r.Z.UP:e.preventDefault(),i.prev();break;case r.Z.DOWN:e.preventDefault(),i.next()}})}componentDidMount(){this._input&&this._input.focus()}render(){let{onChange:e,value:t}=this.props;return(0,o.jsx)("div",{onKeyDown:this.handleKeyDown,role:"presentation",style:{width:"100%"},children:(0,o.jsx)(l.Um,{accessibilityLabel:"",id:"pickerSearchField",onChange:({value:t})=>e(t),placeholder:this.props.i18n._('Search', 'search bar placeholder text', 'search bar placeholder text'),ref:this.setInputRef,size:"lg",value:t})})}}let u=function(e){let t=(0,a.ZP)();return(0,o.jsx)(d,{...e,i18n:t})}},723852:(e,t,i)=>{"use strict";i.d(t,{Z:()=>w});var n=i(667294),l=i(782677),a=i(883119),r=i(214494),o=i(332611),s=i(898781),d=i(349700),u=i(414327),c=i(830157),p=i(327212),h=i(258430),_=i(785893);let m=e=>{let t=(0,_.jsx)(a.xu,{"data-test-id":"pin-save-toast",width:48,height:48,children:(0,_.jsx)(h.Z,{boardId:e})});return{duration:5e3,thumbnail:t}};var g=i(499128),y=i(19121);function v({boardId:e,hideToast:t,pinId:i,originalPinId:n}){let l=(0,s.ZP)(),r=(0,y.Z)();return(0,_.jsx)(g.ZP,{primaryAction:{accessibilityLabel:l._('Change saved Pin button', 'RepinRequest.a11yChangeButton', 'Change saved Pin button'),href:`/pin/${i}/repin/?isEditingPin=true&pinBoardId=${null!=e?e:""}&&isFromToast=true&&originalPinId=${null!=n?n:""}`,label:l._('Change', 'RepinRequest.ChangeButton', 'Change saved Pin button'),size:"lg",onClick:t,role:"link"},duration:5e3,onHide:t,text:(0,_.jsxs)(a.xv,{children:[(0,_.jsx)(a.xv,{inline:!0,children:l._('Saved to ', 'RepinRequest.ProfileSaveToastText', 'Toast for successfully saving to profile')}),(0,_.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,_.jsx)(a.rU,{display:"inlineBlock",href:r.isAuth?`/${r.username}/_saved`:"/",target:"self",underline:"hover",children:l._('Profile', 'RepinRequest.ProfileSaveToastText.Profile', 'referring to pinner profile where pin was saved')})})]}),thumbnail:{icon:(0,_.jsx)(a.JO,{accessibilityLabel:l._('Profile', 'RepinRequest.ProfileIcon', 'Icon signifying Pin was saved to profile without a board'),icon:"history",size:22})}})}var f=i(12918),x=i(483025);let b="RepinResource",P=({board:e,section:t})=>{let i=(0,s.ZP)(),l="quick_saves"===e.layout,r=l?i._('Profile', 'EditPin.Quicksaves.BoardName', 'Name for Quicksaves board that we want to surface to users'):e.name;return t?(0,d.nk)(i._('Saved to {{sectionName}} in {{boardName}}', 'Toast for successfully saving to a section within a board', 'Toast for successfully saving to a section within a board'),{sectionName:t&&t.title,boardName:e.name}).join(""):(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(a.xv,{color:"default",children:i._('Saved to', 'Saved to {{ boardName }}', 'Saved to {{ boardName }}')}),(0,_.jsx)(a.xv,{color:"default",weight:"bold",children:r})]})};class w{constructor({boardId:e,dispatch:t,history:i,isOneTapSave:n=!1,isQuickSave:a=!1,onSuccess:r,onUndo:o,originalPinId:s,pinId:d,section:u,showNewUserSavetoProfileAnimation:p=!1,showRepinToasts:h,trackingParams:_,userId:m,viewType:g,historyPush:y,suggestedBoardIds:v,savePinId:f,pinData:{trackingParams:P,viewParameter:w,pinnedToBoardId:S}}){var k,j,A;k="_getNormalizedResponse",j=e=>(0,l.Fv)(e.resource_response.data,x.Z[b]),(k="symbol"==typeof(A=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(k,"string"))?A:String(A))in this?Object.defineProperty(this,k,{value:j,enumerable:!0,configurable:!0,writable:!0}):this[k]=j,this.boardId=e,this.trackingParams=_,this.clientTrackingParams=(0,c.Z)(_.clientTrackingParams||"",P),this.dispatch=t,this.history=i,this.onSuccess=r,this.onUndo=o,this.originalPinId=s,this.pinId=d,this.pinnedToBoardId=_.pinnedToBoardId||(null!=S?S:""),this.showNewUserSavetoProfileAnimation=p,this.showRepinToasts=h,this.section=u,this.isOneTapSave=n,this.isQuickSave=a,this.userId=m,this.viewType=null!=g?g:3,this.historyPush=y,this.suggestedBoardIds=v,this.savePinId=f,this.pinViewParameter=w}get resourceOptions(){var e;return{pin_id:this.pinId,board_id:this.boardId,section:null===(e=this.section)||void 0===e?void 0:e.id,clientTrackingParams:this.clientTrackingParams,user_id:this.userId}}get trackingData(){return{event_type:5,element:this.isOneTapSave?10599:void 0,view_type:this.viewType,component:this.isOneTapSave?0:7,view_parameter:this.isOneTapSave?3173:this.pinViewParameter,object_id_str:this.pinId,clientTrackingParams:this.clientTrackingParams,aux_data:{board_id:this.pinnedToBoardId,destination_board_id:this.boardId,is_profile_save:!this.boardId,pin_id:this.pinId,suggested_boards:this.suggestedBoardIds}}}_createRepin(){return r.Z.create(b,{...this.resourceOptions,disable_event_log_info:!0}).callCreate()}processRepin(e){let t=this._createRepin();return t.then(t=>{this.onSuccess&&this.onSuccess();let i=t.resource_response.data,{board:n}=i,{isQuickSave:l,originalPinId:r,showNewUserSavetoProfileAnimation:d}=this,c=this._getNormalizedResponse(t);if(this.dispatch((0,u.XM)(b,this.resourceOptions,t,c)),this.savePinId(this.resourceOptions.pin_id,i.id),this.originalPinId&&this.originalPinId!==this.resourceOptions.pin_id){let e={...this.resourceOptions,pin_id:this.originalPinId};this.dispatch((0,u.XM)(b,e,t,c)),this.savePinId(this.originalPinId||"",i.id)}this.dispatch((0,f.M)(i.id,n.id,this.section?this.section.id:void 0,this.userId));let{showRepinToasts:h}=this;return h&&h(({hideToast:e})=>{var t;if(l&&!d)return(0,_.jsx)(v,{hideToast:e,pinId:i.id,boardId:i.board.id,originalPinId:r});let{thumbnail:o}=m(n.id);return(0,_.jsx)(p.Z,{button:(0,_.jsx)(s.oz,{children:e=>(0,_.jsx)(a.zx,{fullWidth:!0,onClick:({event:t})=>{t.preventDefault(),t.stopPropagation();let{onUndo:l}=this;if(l&&!d){var a;l(this.pinId,i.id,n.id,null===(a=this.section)||void 0===a?void 0:a.id,e)}else d&&this.historyPush(`/pin/${i.id}/repin/?isEditingPin=true&pinBoardId=${n.id}&&isFromToast=true&&originalPinId=${null!=r?r:""}`)},text:d?e._('Organize', 'RepinRequest.OrganizeButton', 'Button to allow users to organize saved pins'):e._('Undo', 'RepinRequest.UndoButton', 'Undo saved pin button')})}),href:this.section?`${n.url}${null!==(t=this.section.slug)&&void 0!==t?t:""}`:n.url,isRepinToExistingBoard:!0,onHide:e,text:(0,_.jsx)(P,{board:n,section:this.section}),thumbnail:o})}),this.dispatch((0,o.fO)({event_type:5})),e(this.trackingData),i})}}},425480:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(700380);function a(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let r=({scrollTop:e,clientHeight:t,scrollHeight:i},n)=>{let l=e+t,a=n?n(t):2*t;return l+a>i};class o extends n.PureComponent{constructor(...e){super(...e),a(this,"setContainerRef",e=>{this.containerRef=e}),a(this,"fetchMoreIfNecessary",(0,l.Z)(()=>{let{fetchMore:e,scrollBuffer:t}=this.props;e&&this.containerRef&&r(this.containerRef,t)&&e()},200))}componentDidMount(){setTimeout(this.fetchMoreIfNecessary)}componentDidUpdate(){this.fetchMoreIfNecessary()}render(){let{children:e}=this.props;return e({onScroll:this.fetchMoreIfNecessary,setRef:this.setContainerRef})}}},954063:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(667294),l=i(883119),a=i(785893);class r extends n.Component{componentDidMount(){this.anchor&&(!this.props.hash||this.props.hash&&`#${this.props.hash}`===window.location.hash)&&(this.anchor.scrollIntoView(),this.props.offset&&window.scrollBy(0,this.props.offset))}render(){let e=this.props.children?n.Children.only(this.props.children):null;return(0,a.jsx)(l.xu,{ref:e=>this.anchor=e,children:e})}}},21384:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n,l=i(667294),a=i(702664),r=i(167912),o=i(883119),s=i(373420),d=i(898781),u=i(780280),c=i(784590),p=i(867820),h=i(52022),_=i(690035),m=i(50286),g=i(643010),y=i(121151),v=i(430322),f=i(785893);function x({showFullScreenInfo:e,isOpen:t,interstitialUpsellDismissed:i,children:n}){let l=(0,d.ZP)(),a=(0,m.HG)(),r=(0,m.Wb)();return r||a?(0,f.jsx)(y.ZP,{accessibilityModalLabel:"",mobileHideCloseIcon:!0,mobileIsFullscreen:!0,isOpen:e&&!r,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,f.jsx)(o.xu,{color:(0,g.Yc)()?"dark":"default",dangerouslySetInlineStyle:{__style:{border:(0,g.Yc)()?void 0:"1px solid #efefef",transition:"transform 0.3s ease-out",WebkitOverflowScrolling:"touch"}},height:"100%",left:!0,maxHeight:"100%",overflow:"auto",position:"fixed",top:!0,width:a?"100vw":"100%",zIndex:new o.Ry(1),children:(0,f.jsx)(o.xu,{bottom:!0,left:!0,right:!0,top:!0,position:"fixed",padding:5,overflow:"scroll",marginTop:i?0:12,children:n})})}):(0,f.jsx)(v.default,{accessibilityModalLabel:l._('Close', 'Close modal window', 'Close modal window'),isOpen:t,onDismiss:()=>{},mobileAccessibilityCloseIconLabel:l._('Close', 'Close modal window', 'Close modal window'),children:n})}var b=i(385801);let P=void 0!==n?n:n=i(583780);function w({dedupeVisualAnnotations:e,iconColor:t,size:i,isMainPin:n,isAuth:r,pinCreditPrefix:c,onClickTitleOrDomain:g,pinId:y,renderOnlyHiddenSEOContent:v=!1,graphqlRef:P,shoppingKlpUrls:w}){let S=(0,d.ZP)(),k=(0,h.Z)(),{isBot:j}=(0,u.B)(),{unauthInterstitialDismissed:A}=(0,a.useSelector)(({session:e})=>e),[C,D]=(0,l.useState)(!1),E=(0,m.HG)(),I=(0,m.Wb)(),T=(0,_.Z)(),F=!I&&!r,z=P?{type:"graphqlRef",data:P}:{type:"deprecated",data:y},R=(0,f.jsxs)(o.xu,{padding:5,dangerouslySetInlineStyle:F?{__style:{paddingTop:0,paddingBottom:30}}:void 0,children:[(0,f.jsx)(o.xu,{left:!0,position:"absolute",top:!0,color:"default",padding:4,"data-test-id":"close-seo-vase-see-more-button",children:(0,f.jsx)(o.hU,{accessibilityLabel:S._('Cancel', 'close modal icon', 'close modal icon'),icon:"cancel",size:"sm",onClick:()=>{(0,p.My)("mweb.unauth.see_more.dismissed"),k({action:"click",item:"close-seo-vase-see-more-button"}),D(!1),n&&(0,p.My)("mweb.unauth.see_more.main_pin.dismissed")},iconColor:"gray"})}),(0,f.jsx)(o.xu,{marginBottom:F?0:8,children:(0,f.jsx)(o.xv,{align:F?"start":"center",weight:F?void 0:"bold",children:(0,f.jsx)("span",{className:"deprecatedTextSizeXL",children:F?null:S._('More information', 'more information label', 'more information label')})})}),(0,f.jsx)(b.Z,{dedupeVisualAnnotations:e,pinCreditPrefix:c,onClickTitleOrDomain:g,pinId:y,shoppingKlpUrls:w,pinKey:z})]});return v?(0,f.jsx)(o.xu,{display:"none",children:R}):(0,f.jsxs)(o.xu,{right:!0,"data-test-id":"SeoVaseSeeMoreButton",dangerouslySetInlineStyle:{__style:{float:"right"}},children:[(0,f.jsx)(o.hU,{accessibilityLabel:S._('See more', 'more information icon', 'more information icon'),icon:"ellipsis",iconColor:null!=t?t:"gray",size:i||"md",onClick:({event:t})=>{t.stopPropagation(),(0,p.My)(`mweb.unauth.see_more.shown.${n?"main_pin":"related_pins"}`),k({action:"click",item:"seo-vase-see-more-button"}),I||r?(D(!0),n&&(0,p.My)("mweb.unauth.see_more.main_pin.shown")):T({pinId:y||"",location:n?"main-pin-more-information":"non-main-pin-more-information",vaseSection:(0,f.jsx)(b.Z,{dedupeVisualAnnotations:e,pinCreditPrefix:c,onClickTitleOrDomain:g,pinId:y,shoppingKlpUrls:w,pinKey:z})})}}),j&&!E?(0,f.jsx)(o.xu,{display:C?"flex":"none",children:R}):(0,f.jsx)(x,{showFullScreenInfo:C,isOpen:C&&!I,interstitialUpsellDismissed:!!A,children:R}),I&&C&&(0,f.jsx)(s.default,{accessibilityModalLabel:"test",onDismiss:()=>{},children:R})]})}function S(e){let t=(0,r.useFragment)(P,e.graphqlRef);return(0,f.jsx)(w,{dedupeVisualAnnotations:e.dedupeVisualAnnotations,iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,pinId:e.pinId,renderOnlyHiddenSEOContent:e.renderOnlyHiddenSEOContent,graphqlRef:t,shoppingKlpUrls:e.shoppingKlpUrls})}function k(e){return(0,f.jsx)(w,{dedupeVisualAnnotations:e.dedupeVisualAnnotations,iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,pinId:e.pinId,renderOnlyHiddenSEOContent:e.renderOnlyHiddenSEOContent,shoppingKlpUrls:e.shoppingKlpUrls})}function j(e){return(0,c.Z)({name:"PinResource",options:{id:e.pinId,field_set_key:"unauth_ssr_lazy_load"}}),(0,f.jsx)(k,{...e})}function A(e){return e.graphqlRef?(0,f.jsx)(S,{...e}):e.lazyLoadAnnotations?(0,f.jsx)(j,{...e}):(0,f.jsx)(k,{...e})}},334005:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(667294),l=i(883119),a=i(946984),r=i(121151),o=i(604356),s=i(785893);let d=new l.Ry(1);function u({anchor:e,children:t,displayOptions:i,onFlyoutDismiss:n}){var a,o;return null!=i&&i.shownWithinMasonry||null!=i&&i.shownWithinProfileHeader?(0,s.jsx)(l.mh,{zIndex:i.shownWithinProfileHeader?d:void 0,children:(0,s.jsx)(l.xu,{zIndex:i.inModal?r.b7:void 0,position:i.inModal?"absolute":void 0,top:!!i.inModal||void 0,children:(0,s.jsx)(l.J2,{anchor:e,idealDirection:null!==(a=i.idealDirection)&&void 0!==a?a:"down",onDismiss:()=>{n()},_deprecatedShowCaret:i.showCaret,size:"flexible",positionRelativeToAnchor:!1,children:t})})}):(0,s.jsx)(l.J2,{anchor:e,idealDirection:null!==(o=null==i?void 0:i.idealDirection)&&void 0!==o?o:"down",onDismiss:()=>{n()},_deprecatedShowCaret:null==i?void 0:i.showCaret,size:"flexible",children:t})}function c({children:e,flyoutDisplayOptions:t,isFlyoutOpen:i,loggingOptions:r,onClick:d,onFlyoutDismiss:c,onToggleFlyout:p,sendObject:h}){let _=(0,n.useRef)(null),m=(0,a.Z)();return(0,s.jsxs)(l.xu,{ref:_,dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:[(0,s.jsx)(l.xu,{children:e({handleSendShareFlyoutButtonClick:()=>{if(m){m();return}p()}})}),i&&(0,s.jsx)(u,{anchor:_.current,displayOptions:t,onFlyoutDismiss:c,children:(0,s.jsx)(o.Z,{element:r.element,component:r.component,onHide:()=>{null==d||d(),c()},onExternalSend:r.onExternalSend,sendType:h.type,sharedObject:{...h,type:"user"===h.type?"pinner":h.type},viewParameter:r.viewParameter,viewType:r.viewType})})]})}},17676:(e,t,i)=>{"use strict";i.d(t,{l:()=>u,E:()=>d});var n=i(667294),l=i(425288),a=i(505920);function r(e={},t){if("SUGGESTIONS_FETCH_COMPLETE"===t.type){var i,n;let{payload:l}=t;if("ShareSuggestionsResource"===l.resource){let n=t.payload.response.resource_response.data||[],{term:a=""}=null!==(i=l.options)&&void 0!==i?i:{};return{...e,[a]:n}}if("ShareSuggestionsTypeaheadResource"===l.resource){let i=t.payload.response.resource_response.data||{},a=i.items||[],{term:r=""}=null!==(n=l.options)&&void 0!==n?n:{};return{...e,[r]:a}}}return e}var o=i(785893);let{Provider:s,useHook:d}=(0,l.Z)("ShareSuggestions");function u({children:e}){let[t,i]=(0,n.useReducer)(r,{}),l=e=>{i({type:"SUGGESTIONS_FETCH_COMPLETE",payload:e})};(0,a.Z8)("ShareSuggestionsResource",l),(0,a.Z8)("ShareSuggestionsTypeaheadResource",l);let d=(0,n.useMemo)(()=>({shareSuggestions:t}),[t]);return(0,o.jsx)(s,{value:d,children:e})}},108234:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g,s:()=>m});var n=i(667294),l=i(425288),a=i(608575),r=i(883119),o=i(121151),s=i(898781),d=i(349700),u=i(785893);let c=()=>{var e;let t=(0,s.ZP)(),{dismissWarning:i}=null!==(e=m())&&void 0!==e?e:{};return(0,u.jsx)(r.xu,{paddingX:3,children:(0,u.jsx)(r.zx,{fullWidth:!0,color:"red",onClick:i,text:t._('Okay', 'Dismiss a modal stating that clicking through to a link has been blocked', 'Dismiss a modal stating that clicking through to a link has been blocked')})})},p=()=>{let e=(0,s.ZP)();return(0,u.jsx)(r.xv,{inline:!0,weight:"bold",children:(0,u.jsx)(r.rU,{target:"blank",href:"https://policy.pinterest.com/community-guidelines#section-spam",display:"inlineBlock",underline:"hover",children:e._('Learn more', 'Link text leading to policy website', 'Link text leading to policy website')})})},h=({message:e,sanitized_url:t})=>{var i;let n=(0,s.ZP)(),{dismissWarning:l}=null!==(i=m())&&void 0!==i?i:{};return(0,u.jsx)(o.ZP,{accessibilityModalLabel:n._('We have blocked this link', 'Modal label when clicking a spammy link', 'Modal label when clicking a spammy link'),onDismiss:l,heading:n._('Heads up!', 'Modal heading when clicking through to a link has been blocked', 'Modal heading when clicking through to a link has been blocked'),footer:(0,u.jsx)(c,{}),children:(0,u.jsxs)(r.xu,{padding:6,children:[(0,u.jsx)(r.xv,{children:(0,d.nk)("{{ message }} {{ learnMore }}",{message:e,learnMore:(0,u.jsx)(p,{},"learnMoreLink")})}),(0,u.jsxs)(r.xu,{alignItems:"center",display:"flex",marginTop:4,children:[(0,u.jsx)(r.xu,{marginEnd:3,children:(0,u.jsx)(r.JO,{accessibilityLabel:n._('Blocked link address', 'Icon label preceding a block url', 'Icon label preceding a block url'),color:"error",icon:"report",inline:!0,size:24})}),(0,u.jsx)(r.xv,{inline:!0,lineClamp:1,weight:"bold",children:a.parse(t).hostname})]})]})})},{Provider:_,useMaybeHook:m}=(0,l.Z)("SpammyClickthrough");function g({children:e}){let[t,i]=(0,n.useState)(null),l=(0,n.useCallback)(()=>{i(null)},[i]),a=(0,n.useCallback)(e=>{i(e)},[i]),r=(0,n.useMemo)(()=>({dismissWarning:l,showWarning:a}),[l,a]);return(0,u.jsxs)(_,{value:r,children:[t&&(0,u.jsx)(h,{...t}),e]})}},202870:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d,j:()=>s});var n=i(883119),l=i(898781),a=i(349700),r=i(773285),o=i(785893);let s=[0,2,3];function d({hasAffiliateProducts:e,href:t,isPromoted:i,onNavigateSponsorClick:d,sponsorName:u,sponsorUsername:c,sponsorshipStatus:p,textWeight:h="bold"}){let _;let m=(0,l.ZP)(),g=(0,r.F)().checkExperiment("mweb_web_android_ios_clbc_eu_ad_string").anyEnabled,y=(0,r.F)().checkExperiment("web_remove_paid_partnership_in_rejected_state").anyEnabled,v=t||(c?`/${c}/`:null),f=v&&u?(0,o.jsx)(n.rU,{href:v,onClick:d,children:(0,o.jsx)(n.xv,{weight:h,size:"200",children:u})},u):void 0;return i?_=(0,a.nk)(m._('Promoted by {{ name }}', 'sponsorship.sponsorshipText.promotedByBrand', 'indicating the username of the person who promoted the pin'),{name:f}):p||0===p?u&&!s.includes(p)?_=(0,a.nk)(m._('Paid partnership with {{ name }}', 'closeup.creator.sponsoredPinTitle', 'Subtext of closeup creator card when sponsored by a brand'),{name:f}):y&&2===p||(_=m._('Paid partnership', 'closeup.creator.sponsoredPinTitle', 'Subtext of closeup creator card when the pin is sponsored but the sponsorship status is rejected/requested/unaffiliated')):e&&(_=m._('Includes sponsored products', 'sponsorship.sponsorshipText.affiliatedProducts', 'Subtext of pincard attribution for a pin with affiliated products')),(0,o.jsxs)(n.xv,{inline:!0,size:"200",lineClamp:2,children:[g&&!i&&"Ad • "||"",_]})}},640064:(e,t,i)=>{"use strict";i.d(t,{f:()=>o,w:()=>s});var n=i(667294),l=i(425288),a=i(785893);let{Provider:r,useHook:o}=(0,l.Z)("Session");function s({children:e}){let[t,i]=(0,n.useState)(void 0),l=(0,n.useCallback)(()=>i(void 0),[]),o=(0,n.useMemo)(()=>({unauthFollowUserId:t,setUnauthFollowUserId:i,removeUnauthFollowUserId:l}),[t,l]);return(0,a.jsx)(r,{value:o,children:e})}},777906:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(883119),a=i(865607),r=i(785893);let o=function({badgeSize:e,badgeSpacing:t,fullName:i,identityIsVerified:o,isVerifiedMerchant:s,truncate:d=!1}){let u=i.split(" "),c=u.slice(0,u.length-1).join(" "),p=" ".concat(u[u.length-1]);return d?(0,r.jsxs)(l.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,r.jsx)(l.xv,{lineClamp:1,weight:"bold",children:i}),(0,r.jsx)(l.xu,{flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},paddingX:1,children:(0,r.jsx)(a.Z,{size:e,hasVerifiedIdentity:o,isVerifiedMerchant:s})})]}):(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("span",{children:c}),(0,r.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[p,"\xa0",(0,r.jsx)(l.xu,{display:"inlineBlock",flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},children:(0,r.jsx)(a.Z,{size:e,hasVerifiedIdentity:o,isVerifiedMerchant:s})})]})]})}},394332:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>S});var n,l=i(667294),a=i(167912),r=i(883119),o=i(898781),s=i(391254),d=i(992750),u=i(780280),c=i(867820),p=i(52022),h=i(50286),_=i(350118),m=i(862193),g=i(785893);let y=`
265
+ div::-webkit-scrollbar {
266
+ display: none;
267
+ }
268
+ `,v=void 0!==n?n:n=i(445418);function f({direction:e,handleClick:t,testId:i,isRTL:n}){let l=(0,o.ZP)(),a=(0,p.Z)(),s=n?["arrow-back","arrow-forward"]:["arrow-forward","arrow-back"];return(0,g.jsx)("div",{style:{alignItems:"center",background:`linear-gradient(to ${"left"===e?"right":"left"}, rgba(255,255,255,1) 25%,rgba(255,255,255,0) 100%)`,border:"none",cursor:"pointer",display:"flex",height:30,lineHeight:25,outline:"none",position:"absolute",top:0,width:45,..."right"===e?{right:0,justifyContent:"flex-end",textAlign:"right"}:{left:0,justifyContent:"flex-start",textAlign:"left"}},onClick:e=>{a({action:"click",item:"board-pills-arrow"}),t(e)},role:"button","aria-label":"arrow",tabIndex:-1,"aria-hidden":"true","data-test-id":i,children:(0,g.jsx)(r.xu,{position:"absolute",left:"left"===e,right:"right"===e,borderStyle:"none",children:(0,g.jsx)(r.xu,{"data-test-id":"board-pills-arrow",children:(0,g.jsx)(r.JO,{accessibilityLabel:l._('Scroll', 'annotations.scrollArrow', 'Accessibility label for scroll arrow button'),icon:"left"!==e?s[0]:s[1],size:12,color:"subtle"})})})})}function x({name:e,url:t}){let[i,n]=(0,l.useState)(!1),a=(0,p.Z)(),{country:o,locale:s}=(0,u.B)(),d=(0,h.HG)();return(0,g.jsx)(r.xu,{"data-test-id":"vase-tag",display:"inlineBlock",marginTop:1,marginEnd:1,paddingX:2,paddingY:1,color:"secondary",rounding:8,dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap"}},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:(0,g.jsx)(r.xv,{color:i?"subtle":"default",inline:!0,overflow:"breakWord",size:"100",weight:"bold",children:t?(0,g.jsx)(r.rU,{display:"inlineBlock",tapStyle:"compress",href:t,rounding:8,onClick:()=>{a({action:"click",item:"vase-tag"}),t.split("/").length>=2&&"shopping"===t.split("/")[1]&&(0,c.My)(`${d?"dweb":"mweb"}.vase.shoppingKlp.click`,{country:o,locale:s})},underline:"hover",children:e}):e})})}function b({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t,mode:i,shoppingKlpUrls:n}){let a=(0,l.useRef)(null),[o,c]=(0,l.useState)(!1),[h,_]=(0,l.useState)(!1),m=(0,p.Z)(),{isRTL:v}=(0,u.B)();(0,l.useEffect)(()=>{let e=a.current,t=()=>{if("inlineWithScrollArrows"===i&&a.current){let e=a.current,t=Math.abs(e.scrollLeft||0),i=Math.abs(e.scrollWidth||0),n=t>4,l=t+e.clientWidth<i-4,r=v?n:l,o=v?l:n;c(r),_(o)}else c(!1),_(!1)};return t(),null==e||e.addEventListener("scroll",t),()=>{null==e||e.removeEventListener("scroll",t)}},[i,v]);let b=e=>t=>{t.preventDefault(),t.stopPropagation(),"right"===e&&m({action:"click",item:"board-pills-arrow-button-right"});let i=a.current;if(!i)return;let n=("left"===e?-1:1)*i.clientWidth*.5;i.scrollBy(n,0)},{annotationsWithLinks:P}=(0,d.eK)({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t});P.map(e=>{let t=e.name||"";return t});let w=[...P];return n&&(w=n.reduce((e,t)=>(e.push({name:function(e){let t=e.split("/"),i=t[2].split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");return i}(t),url:t}),e),w)),(0,g.jsx)(r.kC,{alignItems:"center",justifyContent:"end",children:(0,g.jsxs)(r.xu,{display:"flex",width:"100%",overflow:"hidden",position:"relative","data-test-id":"vase-carousel",children:[(0,g.jsx)(s.Z,{unsafeCSS:y}),h&&(0,g.jsx)(f,{direction:"left",handleClick:b("left"),testId:"left-scroll-arrow",isRTL:v}),(0,g.jsx)(r.xu,{overflow:"auto",padding:0,dangerouslySetInlineStyle:{__style:{scrollBehavior:"smooth",scrollbarWidth:"none",whiteSpace:"nowrap"}},ref:a,children:w.map(({name:e,url:t})=>(0,g.jsx)(x,{name:e,url:t},t||e))}),o&&(0,g.jsx)(r.xu,{"data-test-id":"board-pills-arrow-button-right",children:(0,g.jsx)(f,{direction:"right",handleClick:b("right"),testId:"right-scroll-arrow",isRTL:v})})]})})}function P({dedupeVisualAnnotations:e,graphqlRef:t,mode:i,pinId:n,shoppingKlpUrls:l}){var r;let o=(0,a.useFragment)(v,t),s=(0,m.Z)(o),d=(null==o?void 0:null===(r=o.pinJoin)||void 0===r?void 0:r.visualAnnotation)||[];return(e&&(d=e({pinId:n,visualAnnotations:d})),d.length<1)?null:(0,g.jsx)(b,{mode:i,pinJoinVisualAnnotation:d,pinJoinAnnotationsWithLinks:s||void 0,shoppingKlpUrls:l})}function w(e){var t,i,n;let l=(0,_.S6)()(e.pinId),a=(null==l?void 0:null===(t=l.pin_join)||void 0===t?void 0:t.visual_annotation)||[];return a.length<1?null:(0,g.jsx)(b,{mode:e.mode,pinJoinVisualAnnotation:null==l?void 0:null===(i=l.pin_join)||void 0===i?void 0:i.visual_annotation,pinJoinAnnotationsWithLinks:null==l?void 0:null===(n=l.pin_join)||void 0===n?void 0:n.annotations_with_links,shoppingKlpUrls:e.shoppingKlpUrls})}function S(e){return e.graphqlRef?(0,g.jsx)(P,{...e}):(0,g.jsx)(w,{...e})}},385801:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n,l=i(667294);i(167912);var a=i(883119),r=i(681669),o=i(898781),s=i(349700),d=i(623568),u=i(992750),c=i(780280),p=i(927104),h=i(867820),_=i(52022),m=i(50286),g=i(298024),y=i(785893);function v({boardUrl:e,boardName:t,boardPrivacy:i,pinnerFullName:n,pinnerImageSmallUrl:l,pinnerImageLargeUrl:r}){let o=(0,m.HG)(),s=(0,_.Z)();if(!e||!t)return null;let d=e.split("/")[1],u=n||d,c=l||r;return(0,y.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[c?(0,y.jsx)(a.Tg,{href:`/${d}/`,fullWidth:!1,tapStyle:"compress",onTap:()=>{(0,h.My)(`pcons.${o?"desktop":"mobile"}.see-more-button-creator`),s({action:"click",item:"see-more-button-creator"})},children:(0,y.jsx)(a.xu,{rounding:"circle",width:32,height:32,overflow:"hidden",marginEnd:2,"data-test-id":"see-more-button-creator",children:(0,y.jsx)(a.Ee,{naturalHeight:32,naturalWidth:32,alt:u,fit:"cover",color:"rgb(231, 186, 176)",src:c})})},"profile-link"):null,(0,y.jsxs)(a.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,y.jsx)(a.xu,{"data-test-id":"see-more-button-creator-full-name",children:(0,y.jsx)(a.iP,{onTap:()=>{(0,h.My)(`pcons.${o?"desktop":"mobile"}.see-more-button-creator-full-name`),s({action:"click",item:"see-more-button-creator-full-name"})},children:(0,y.jsx)(a.xv,{color:"default",inline:!0,size:"100",weight:"bold",children:(0,y.jsx)(a.rU,{href:`/${d}/`,display:"inlineBlock",tapStyle:"compress",underline:"hover",children:u},"profile-link")},"profileLink")})}),"protected"===i?null:(0,y.jsx)(a.xv,{color:"default",inline:!0,size:"100",children:(0,y.jsx)(a.rU,{href:null!=e?e:"",display:"inlineBlock",tapStyle:"compress",underline:"hover",children:null!=t?t:""},"board-link")},"boardLink")]})]})}var f=i(394332);let x=void 0!==n?n:n=i(175322);function b({dedupeVisualAnnotations:e,pin:t,pinId:i,queryRef:n,onClickTitleOrDomain:r,pinCreditPrefix:x,shoppingKlpUrls:b}){var P,w,S,k,j,A,C,D,E;let I=(0,o.ZP)(),T=(0,m.ml)(),F=(0,m.Wb)(),{isAuthenticated:z,isBot:R}=(0,c.B)(),L=(0,_.Z)(),M=r||null,[Z,B]=(0,l.useState)(!1),O=(0,g.si)(),N=(0,g.Re)(),K=(0,u.fs)({pinTitle:t.title,gridTitle:t.gridTitle,richSummaryDisplayName:null===(P=t.richSummary)||void 0===P?void 0:P.displayName,richMetadataTitle:null===(w=t.richMetadata)||void 0===w?void 0:w.title,storyPinDataId:t.storyPinDataId,storyPinDataMetadataPinTitle:null===(S=t.storyPinData)||void 0===S?void 0:null===(k=S.metadata)||void 0===k?void 0:k.pinTitle})||t.description,U=(K||"").length>N,{description:H}=(0,u.eK)({richMetadataDescription:null===(j=t.richMetadata)||void 0===j?void 0:j.description,richSummaryDisplayName:null===(A=t.richSummary)||void 0===A?void 0:A.displayName,closeupUnifiedDescription:t.closeupUnifiedDescription}),V=H.length>O,[G,W]=(0,l.useState)(!V&&!U),$=(0,d._S)(t.domain)?t.domain:"";return(0,y.jsxs)(a.xu,{children:[(0,y.jsxs)(a.xu,{children:[(0,y.jsxs)(a.xu,{as:"figcaption",paddingX:F?11:0,children:[(0,y.jsx)(a.X6,{id:"vase-pin-title",color:"default",size:"300",accessibilityLevel:3,children:Z||R?K:(0,p.Z)(K||"",N)}),!!K&&(0,y.jsx)(a.xu,{height:H?8:0}),H&&(V||U)?(0,y.jsx)(a.xu,{"data-test-id":"vase-pin-description",children:(0,y.jsxs)(a.iP,{onTap:()=>{Z||z||((0,h.NC)("click_open_description_in_sheet"),L({action:"click",item:"more-description-in-sheet"})),W(!G),B(!Z)},fullWidth:!1,children:[(0,y.jsx)(a.xv,{color:"default",size:"200",inline:!0,children:Z||R?H:(0,p.Z)(H,O)}),(0,y.jsx)(a.xu,{display:"inlineBlock",paddingX:1,children:(0,y.jsx)(a.xv,{weight:"bold",size:"200",inline:!0,children:Z||R?I._('Less', 'Toggle less description button', 'Toggle less description button'):I._('More', 'Toggle more description button', 'Toggle more description button')})})]})}):(0,y.jsx)(a.xu,{"data-test-id":"vase-pin-description",children:(0,y.jsx)(a.xv,{color:"default",size:"200",inline:!0,children:H})})]}),!z&&!R&&T&&(G||R)&&!!$&&(0,y.jsx)(a.xu,{marginTop:2,children:(0,y.jsx)(a.kC,{alignItems:"center",direction:"row",width:"100%",children:(0,s.nk)(I._('{{ pinCreditPrefix }} {{ pinCredit }}', 'tells the user where the pin is from in the form of Saved from website', 'tells the user where the pin is from in the form of Saved from website'),{pinCreditPrefix:(0,y.jsx)(a.xu,{display:"inlineBlock",children:(0,y.jsx)(a.xv,{inline:!0,size:"200",children:x})},"pinCreditsPrefix"),pinCredit:(0,y.jsxs)(a.xu,{display:"inlineBlock",marginStart:1,maxWidth:"60vw","data-test-id":"pin-domain-link",children:[M&&(0,y.jsx)(a.iP,{onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),L({action:"click",item:"pin-domain-link"}),(0,h.My)("mweb_pin_page.pin_link.clickthrouh"),z||(0,h.NC)("click_pin_closeup_link_clickthrough"),M()},tapStyle:"compress",children:(0,y.jsx)(a.xv,{size:"200",lineClamp:1,children:(0,y.jsx)("span",{style:{textDecoration:"underline"},children:$})},"pinLinkDomain")}),t.link&&!M&&(0,y.jsx)(a.rU,{href:t.link,children:(0,y.jsx)(a.xv,{size:"200",underline:!0,children:$})})]},"pinCredits")})})})]}),!!t.board&&(G||R)&&(0,y.jsx)(a.xu,{marginTop:4,children:(0,y.jsx)(v,{boardUrl:t.board.url||void 0,boardName:t.board.name||void 0,boardPrivacy:t.board.privacy||void 0,pinnerFullName:(null===(C=t.pinner)||void 0===C?void 0:C.fullName)||void 0,pinnerImageSmallUrl:null===(D=t.pinner)||void 0===D?void 0:D.imageSmallUrl,pinnerImageLargeUrl:null===(E=t.pinner)||void 0===E?void 0:E.imageLargeUrl})}),(0,y.jsx)(a.xu,{marginTop:4,children:(0,y.jsx)(f.ZP,{dedupeVisualAnnotations:e,pinId:i,mode:"expanded",graphqlRef:n,shoppingKlpUrls:b})})]})}function P({pinKey:e,pinId:t,...i}){let{data:n,childDataKey__DEPRECATED:l}=(0,r.sr)(x,e,{type:"pin",useLegacyAdapter:e=>({board:e.board&&{name:e.board.name,privacy:e.board.privacy,url:e.board.url},closeupUnifiedDescription:e.closeup_unified_description,description:e.description,domain:e.domain,gridTitle:e.grid_title,link:e.link,pinner:e.pinner&&{fullName:e.pinner.full_name,imageLargeUrl:e.pinner.image_large_url,imageSmallUrl:e.pinner.image_small_url},richMetadata:e.rich_metadata&&{description:e.rich_metadata.description,title:e.rich_metadata.title},richSummary:e.rich_summary&&{displayName:e.rich_summary.display_name},storyPinData:e.story_pin_data&&{metadata:e.story_pin_data.metadata&&{pinTitle:e.story_pin_data.metadata.pin_title}},storyPinDataId:e.story_pin_data_id,title:e.title})});return n&&(0,y.jsx)(b,{...i,pinId:t,pin:n,queryRef:"graphqlRef"===l.type?l.data:null})}},497307:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(883119),l=i(898781),a=i(313047),r=i(542554),o=i(734226),s=i(404508),d=i(785893);function u(e){let t=(0,l.ZP)(),{backButtonIcon:i,name:u,onNextButtonTouch:c,onNameChange:p,selectedPinIds:h=[],useRoundedCorners:_}=e,m=h.length>0?130:64;return(0,d.jsxs)(r.default,{hasFixedHeader:!0,children:[(0,d.jsxs)(a.FixedHeader,{height:m,paddingY:3,useRoundedCorners:_,children:[(0,d.jsxs)(n.kC,{alignItems:"center",justifyContent:"between",children:[(0,d.jsx)(s.Z,{color:"darkGray",icon:i||"cancel",padding:3,size:"sm"}),(0,d.jsx)(n.X6,{accessibilityLevel:1,size:"300",children:t._('Add section', 'for add board section page', 'for add board section page')}),(0,d.jsx)(n.xu,{"data-test-id":"create-section-button",children:(0,d.jsx)(n.zx,{accessibilityLabel:t._('Add', 'boardSectionCreate.Add.Button.Text', 'Add button accessibility label for board section create page'),onClick:c,disabled:""===u.trim(),color:"red",size:"lg",text:t._('Next', 'Next button for board section create page', 'Next button for board section create page')})})]}),h&&(0,d.jsx)(o.Z,{selectedPinIds:h})]}),(0,d.jsx)(n.xu,{"data-test-id":"addSectionName",paddingX:2,paddingY:3,children:(0,d.jsx)(n.nv,{id:"section-name-input",label:t._('Name', 'boardSectionCreate.TextField.Name.Label', 'TextField label to Name on BoardSectionCreate'),onChange:e=>p(e.event),size:"lg",value:u})})]})}},478540:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(702664),l=i(883119),a=i(898781),r=i(989726),o=i(19121),s=i(290943),d=i(384833),u=i(188170),c=i(785893);let p=()=>{let{id:e}=(0,o.Z)();return(0,r.Z)({name:"BoardPickerBoardsResource",options:{field_set_key:"board_picker",user_id:e}}),(0,n.useSelector)(e=>(0,d.Z)(e)||[])};function h({excludeBoardId:e,onRepinToBoard:t}){let i=(0,a.ZP)(),n=p();return n.length>0&&(0,c.jsxs)(l.xu,{children:[(0,c.jsx)(l.xu,{marginTop:3,children:(0,c.jsx)(l.xv,{children:i._('All boards', 'title for board picker all boards section', 'title for board picker all boards section')})}),(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{marginBottom:`${s.T}px`}},paddingY:3,children:n.filter(t=>t.id!==e).map(e=>(0,c.jsx)(u.Z,{boardId:e.id,onBoardSelected:()=>t(e)},e.id))})]})}},676802:(e,t,i)=>{"use strict";i.d(t,{Wx:()=>b,ZP:()=>w});var n=i(667294),l=i(702664),a=i(616550),r=i(883119),o=i(499128),s=i(898781),d=i(313047),u=i(542554),c=i(343341),p=i(290943),h=i(478540),_=i(734226),m=i(63552),g=i(678638),y=i(404508),v=i(568674),f=i(785893);function x(e,t,i){return e?i._('Got it! Hang tight while we move all those Pins...', 'Toast message for bulk pins move.', 'Toast message for bulk pins move.'):t?i._('Saved to section!', ' - ', ' -- '):i._('Saved to board!', ' - ', ' -- ')}function b({onAddNewSection:e,useIconWithBackground:t}){let i=(0,s.ZP)();return(0,f.jsx)(d.FixedFooter,{height:t?p.y:p.T,alignCenter:t,children:(0,f.jsx)(m.Z,{onTouch:e,pressState:"none",children:(0,f.jsxs)(r.xu,{display:"flex",alignItems:"center",padding:t?0:1,"data-test-id":"addSectionButton",children:[t?(0,f.jsx)(r.xu,{color:"secondary",rounding:2,dangerouslySetInlineStyle:{__style:{padding:"14px"}},children:(0,f.jsx)(r.JO,{icon:"add",color:"default",size:20,accessibilityLabel:i._('Create board button', 'RepinSection.CreateBoard.Button', 'accessibility label for create board button')})}):(0,f.jsx)(r.JO,{icon:"add-circle",color:"error",size:38,accessibilityLabel:i._('Add section button', ' - ', ' -- ')}),t?(0,f.jsx)(r.xu,{marginStart:2,children:(0,f.jsx)(r.xv,{size:"400",weight:"bold",children:i._('Add section', 'Add new section to Pin to', 'Add new section to Pin to')})}):(0,f.jsx)(r.xu,{marginStart:3,children:(0,f.jsx)(r.xv,{weight:"bold",children:i._('Add section', 'Add new section to Pin to', 'Add new section to Pin to')})})]})})})}class P extends n.PureComponent{constructor(...e){var t,i,n;super(...e),t="onRepinToBoard",i=e=>{e.section_count?this.props.onRepinToBoardWithSections(e):this.props.repinToOtherBoard(e.id,this.props.i18n)},(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in this?Object.defineProperty(this,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[t]=i}render(){let{boardId:e,boardSectionId:t,orginalBoardId:i,onAddNewSection:n,repin:l,hideBoardPickerRow:a,selectedPinIds:o,isCollaborative:s}=this.props,c=i===e;return(0,f.jsxs)(u.default,{hasFixedHeader:!0,children:[(0,f.jsxs)(d.FixedHeader,{hasBorder:!0,height:140,children:[(0,f.jsxs)(r.kC,{alignItems:"center",justifyContent:"start",children:[(0,f.jsx)(r.xu,{column:2,children:(0,f.jsx)(y.Z,{})}),(0,f.jsx)(r.xu,{column:8,children:(0,f.jsx)(r.X6,{align:"center",accessibilityLevel:1,size:"300",children:this.props.i18n._('Choose section', 'title for section selection in repin flow', 'title for section selection in repin flow')})}),(0,f.jsx)(r.xu,{column:2})]}),(0,f.jsx)(_.Z,{selectedPinIds:o})]}),e&&(0,f.jsx)(v.Z,{boardId:e,repin:l,originalBoardId:i,hideBoardPickerRow:c&&a,sectionId:t}),c&&(0,f.jsxs)(r.xu,{children:[!s&&(0,f.jsx)(h.Z,{excludeBoardId:e,onRepinToBoard:this.onRepinToBoard}),(0,f.jsx)(b,{onAddNewSection:n})]})]})}}let w=function(e){let{inSelectAll:t,pinIds:i,orginalBoardId:n,boardSectionId:r,onRefreshBoardSection:d,url:u}=e,{showToast:p}=(0,c.F9)(),h=(0,s.ZP)(),_=(0,a.useHistory)(),m=(0,l.useDispatch)(),y=async(e,l,a)=>{let s=l&&l.id,c={boardId:n,sectionId:r},h={boardId:e,sectionId:s},y=t?(0,g.X_)({source:c,target:h,excludePinIds:i}):(0,g.Kw)({source:c,target:h,pinIds:i});n!==e?(await m(y),_.push({pathname:u})):(await m(y),d&&await d()),p(({hideToast:e})=>(0,f.jsx)(o.ZP,{text:x(t,s,a),onHide:e}))},v=async(e,l)=>{let a={boardId:n,sectionId:r},s={boardId:e,sectionId:void 0};p(({hideToast:e})=>(0,f.jsx)(o.ZP,{text:x(t,void 0,l),onHide:e})),await m(t?(0,g.X_)({source:a,target:s,excludePinIds:i}):(0,g.Kw)({source:a,target:s,pinIds:i})),_.go(-2)};return(0,f.jsx)(P,{...e,i18n:h,repin:y,repinToOtherBoard:v})}},734226:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(667294),l=i(883119),a=i(898781),r=i(350118),o=i(785893);function s({selectedPinIds:e}){let t=(0,a.ZP)(),i=(0,n.useRef)(),s=(0,r.AF)(),d=(e||[]).map(e=>s[e]).filter(Boolean);(0,n.useEffect)(()=>{let e=i.current;e&&(e.scrollLeft=e.scrollWidth-e.offsetWidth)},[d]);let u=d.map((e,i)=>{var n,a,r,s;let{description:d,images:u}=e,c=null==u?void 0:u["236x"];return(0,o.jsx)(l.xu,{marginEnd:1,children:(0,o.jsx)(l.zd,{rounding:2,wash:!0,width:50,height:65,children:(0,o.jsx)(l.Ee,{alt:!!(null!=d&&d.trim())&&(null==d?void 0:d.trim())||t._('Selected Pin', 'SelectedPinsPreview.image.accessibilityLabel', 'Accessibility label for Pin image without description'),color:null!==(n=e.dominant_color)&&void 0!==n?n:"",naturalHeight:null!==(a=null==c?void 0:c.height)&&void 0!==a?a:1,naturalWidth:null!==(r=null==c?void 0:c.width)&&void 0!==r?r:1,src:null!==(s=null==c?void 0:c.url)&&void 0!==s?s:"",fit:"contain"})})},i)});return(0,o.jsx)(l.xu,{display:"flex",overflow:"scroll",marginTop:2,ref:i,children:u})}},290943:(e,t,i)=>{"use strict";i.d(t,{T:()=>n,y:()=>l});let n=70,l=80},682273:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(42447),l=i(780280),a=i(387957),r=i(361115),o=i(785893);function s({children:e,type:t}){let i=(0,l.B)();return(0,o.jsx)(n.Z,{annotateExperiments:[(0,r.J1)(),i.isAuthenticated?"web_eager_loadable_auth":"web_eager_loadable_unauth"],surface:"pin_closeup",constraints:"authDesktop"===t?[...a.d0]:["PinPageMainImageRendered"],customEnabledNavigationTypes:["initial_app_load","client_route_push","client_route_replace"],children:e})}},240681:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});let n="32px",l="16px",a={WebkitMaskImage:"-webkit-radial-gradient(white, black)"},r=`${n} ${n} 0 0`,o=`${n} 0 0 ${n}`,s=`0 ${n} ${n} 0`,d=({isPadded:e,isRTL:t})=>e?l:t?s:o;function u({isSideBySide:e,isPadded:t,isRTL:i}){return e?{...a,borderRadius:d({isPadded:t,isRTL:i})}:{...a,borderRadius:t?l:r}}},966676:(e,t,i)=>{"use strict";i.d(t,{Nb:()=>o,Of:()=>s,YO:()=>r,ZP:()=>c,x4:()=>u});var n=i(667294),l=i(499659),a=i(92261);let r=({showProductDetailPage:e,isLargerPane:t,showCloseupContentRight:i})=>e&&t?i?a.Uj:a.zT:1,o=(0,l.qe)(({paneWidth:e,pdpCarouselSlotToPaneRatio:t,showCloseupContentRight:i,showProductDetailPage:n,viewportSize:l,maxWidth:a,descriptionPaneWidth:r})=>({paneWidth:e,pdpCarouselSlotToPaneRatio:t,showCloseupContentRight:i,showProductDetailPage:n,viewportSize:l,maxWidth:a,descriptionPaneWidth:r})),s={showCloseupContentRight:!0,showProductDetailPage:!1,viewportSize:"lg",paneWidth:a.Gg,pdpCarouselSlotToPaneRatio:1,maxWidth:a.u6,descriptionPaneWidth:a.u6-a.Gg},d=(0,n.createContext)(s);function u(){let e=(0,n.useContext)(d);if(!e)throw Error("useCloseupContext must be used within CloseupContextProvider");return e}let c=d},763917:(e,t,i)=>{"use strict";i.d(t,{C:()=>n,_:()=>r});let n=e=>!!e&&/^\/pin\/[\w-]+\/?$/.test(e.pathname),l=({pathname:e})=>/^\/search\/pins\//.test(e),a=({pathname:e,search:t})=>{let i=/^\/search\/pins\/(\?.*)$/.exec(e),n=t||i&&i[1]||"",l=n.substr(1).split("&").map(e=>e.split("=")),a=l.find(e=>"q"===e[0]);return a?decodeURIComponent(a[1]):""},r=e=>{let t=[...e].reverse().find(({location:e})=>e&&!n(e));return t&&t.location&&l(t.location)?a(t.location):""}},765798:(e,t,i)=>{"use strict";i.d(t,{Z:()=>D});var n,l=i(667294);i(167912);var a=i(883119),r=i(357998),o=i(287072),s=i(489494),d=i(374373),u=i(134185),c=i(170168),p=i(92261),h=i(785893);let _=void 0!==n?n:n=i(585535),m=e=>{var t,i;return{advertiserId:e.advertiser_id,attributionSourceId:e.attribution_source_id,board:e.board&&{url:e.board.url},campaignId:e.campaign_id?String(e.campaign_id):null,carouselData:e.carousel_data&&{index:e.carousel_data.index,carouselSlots:e.carousel_data.carousel_slots&&e.carousel_data.carousel_slots.map(e=>({link:e.link,title:e.title}))},entityId:e.id,gridTitle:e.grid_title,imageSpec_736x:(null===(t=e.images)||void 0===t?void 0:t["736x"])&&{height:e.images["736x"].height,url:e.images["736x"].url,width:e.images["736x"].width},imageSpec_orig:(null===(i=e.images)||void 0===i?void 0:i.orig)&&{height:e.images.orig.height,url:e.images.orig.url,width:e.images.orig.width},isDownstreamPromotion:e.is_downstream_promotion,isPromoted:e.is_promoted,pinPromotionId:e.pin_promotion_id?String(e.pin_promotion_id):null,pinner:e.pinner&&{username:e.pinner.username},promoter:e.promoter&&{entityId:e.promoter.id},richMetadata:e.rich_metadata&&{article:e.rich_metadata.article&&{name:e.rich_metadata.article.name},recipe:e.rich_metadata.recipe&&{name:e.rich_metadata.recipe.name},title:e.rich_metadata.title,tutorial:e.rich_metadata.tutorial&&{fromAggregatedData:e.rich_metadata.tutorial.from_aggregated_data,name:e.rich_metadata.tutorial.name}},richSummary:e.rich_summary&&{displayName:e.rich_summary.display_name},storyPinDataId:e.story_pin_data_id,title:e.title,trackingParams:e.tracking_params}},g=e=>{let{carouselData:t,title:i}=null!=e?e:{};if(i)return!0;if(t){let{carouselSlots:e,index:i}=t;if(null!=i&&null!=e&&e[i]&&e[i].title)return!0}return!1},y=({children:e})=>(0,h.jsx)(a.xu,{marginTop:4,children:e}),v=e=>{var t,i,n,l,r;let{children:d,isLink:u=!0,onClick:c,pin:p,trackingParamsMap:_}=e,m=(0,s.Z)(p),g=null!==(t=p.imageSpec_orig)&&void 0!==t&&t.url&&p.imageSpec_orig.width&&p.imageSpec_orig.height?p.imageSpec_orig:null,y=d,v=(0,o.Z)({href:null!==(i=null!==(n=m)&&void 0!==n?n:null==g?void 0:g.url)&&void 0!==i?i:"",target:"blank",externalData:{pin:p&&{advertiserId:p.advertiserId,attributionSourceId:p.attributionSourceId,board:p.board&&{url:p.board.url},campaignId:p.campaignId,entityId:p.entityId,isDownstreamPromotion:p.isDownstreamPromotion,isPromoted:p.isPromoted,pinner:p.pinner&&{username:p.pinner.username},pinPromotionId:p.pinPromotionId,promoter:p.promoter&&{entityId:p.promoter.entityId},storyPinDataId:p.storyPinDataId,trackingParams:p.trackingParams,trackingParamsMap:_}}});if(!e.pin.entityId)return null;if(p.carouselData){let{carouselSlots:e,index:t}=p.carouselData;e&&null!=t&&e[t]&&(m=e[t].link||m,y=e[t].title||y)}let f=y&&(0,h.jsx)(a.X6,{size:"500",accessibilityLevel:1,children:y});return(0,h.jsx)("div",{itemProp:"name",children:u||m?(0,h.jsx)(a.rU,{underline:"none",href:null!==(l=null!==(r=m)&&void 0!==r?r:null==g?void 0:g.url)&&void 0!==l?l:"",rel:"nofollow",target:"blank",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),c&&c(),v({event:e})},children:f}):f})},f=e=>{var t;if(!e.pin.entityId)return null;let{entityId:i}=e.pin,n=null!==(t=e.pin.imageSpec_736x)&&void 0!==t&&t.url&&e.pin.imageSpec_736x.width&&e.pin.imageSpec_736x.height?e.pin.imageSpec_736x:null;return(0,h.jsxs)(a.xu,{children:[(0,h.jsx)("meta",{content:`https://${c.Vi}/pin/${i}/`,itemProp:"url"}),n&&(0,h.jsx)("meta",{content:n.url,itemProp:"image"})]})},x=e=>{if(!e.pin.entityId)return null;let{pin:t}=e||{},{gridTitle:i}=t||{};return(0,h.jsx)(l.Fragment,{children:i&&(0,h.jsx)(y,{children:(0,h.jsx)(u.Z,{children:(0,h.jsx)(v,{...e,children:i})})})})},b=e=>{if(!e.pin.entityId)return null;let{pin:t}=e||{},{richMetadata:i,gridTitle:n}=t||{},{title:a}=i||{};return(0,h.jsx)(l.Fragment,{children:(n||a)&&(0,h.jsx)(y,{children:(0,h.jsx)(u.Z,{itemType:p.iB.PRODUCT,children:(0,h.jsxs)(v,{...e,children:[n||a,(0,h.jsx)(f,{...e})]})})})})},P=e=>{if(!e.pin.entityId)return null;let{pin:t}=e||{},{richMetadata:i,gridTitle:n}=t||{},{title:l}=i||{};return(0,h.jsx)(y,{children:(0,h.jsx)(u.Z,{itemType:p.iB.ARTICLE,children:(0,h.jsx)(v,{...e,children:n||l})})})},w=e=>{var t,i;if(!(null!==(t=e.pin.richMetadata)&&void 0!==t&&null!==(i=t.recipe)&&void 0!==i&&i.name))return null;let{name:n}=e.pin.richMetadata.recipe;return(0,h.jsx)(y,{children:(0,h.jsx)(u.Z,{itemType:p.iB.RECIPE,children:(0,h.jsx)(v,{...e,children:(0,h.jsx)(a.xu,{children:n})})})})},S=e=>{var t,i,n,l;return null!==(t=e.pin.richMetadata)&&void 0!==t&&null!==(i=t.tutorial)&&void 0!==i&&i.fromAggregatedData||!(null!==(n=e.pin.richMetadata)&&void 0!==n&&null!==(l=n.tutorial)&&void 0!==l&&l.name)?null:(0,h.jsx)(y,{children:(0,h.jsx)(u.Z,{children:(0,h.jsx)(v,{...e,children:(0,h.jsx)(a.xu,{children:e.pin.richMetadata.tutorial.name})})})})},k=e=>{var t;let i=!!(null!==(t=e.pin.richSummary)&&void 0!==t&&t.displayName);return i?(0,h.jsx)(y,{children:(0,h.jsx)(u.Z,{children:(0,h.jsx)(v,{...e,children:(0,h.jsx)(a.xu,{children:i})})})}):null},j=e=>{if(!e.pin.entityId)return null;let{gridTitle:t}=e.pin||{};return(0,h.jsx)(y,{children:(0,h.jsx)(u.Z,{itemType:p.iB.ARTICLE,children:(0,h.jsx)(v,{...e,children:t})})})};function A(e){let{carouselInfo:t}=e,{carouselData:i}=t||{},{carousel_slots:n}=i||{};return((n||[])[0]||{}).title}let C=e=>{let{pin:t,...i}=e;if(!e.pin.entityId)return null;let n=A(i);return(0,h.jsx)(y,{children:(0,h.jsx)(u.Z,{itemType:p.iB.ARTICLE,children:(0,h.jsx)(v,{...e,children:n})})})},D=({pinKey:e,...t})=>{var i,n,l,a,o,s,u;let{data:c}=(0,r.Q)(_,e,{useLegacyAdapter:m}),{carouselInfo:p}=t,y=!!(null!==(i=c.richMetadata)&&void 0!==i&&null!==(n=i.tutorial)&&void 0!==n&&n.name),v=!!(null!==(l=c.richMetadata)&&void 0!==l&&null!==(a=l.recipe)&&void 0!==a&&a.name),f=!!(null!==(o=c.richMetadata)&&void 0!==o&&null!==(s=o.article)&&void 0!==s&&s.name),D=!!(null!==(u=c.richSummary)&&void 0!==u&&u.displayName),E=(0,d.Z)(c),I=j;return p&&c.entityId&&A(t)?I=C:E?I=b:g(c)?I=x:y?I=S:v?I=w:f?I=P:D&&(I=k),(0,h.jsx)("div",{className:"CloseupTitleCard",children:(0,h.jsx)(I,{...t,pin:c})})}},92261:(e,t,i)=>{"use strict";i.d(t,{$T:()=>g,CI:()=>a,Ch:()=>o,Gb:()=>s,Gg:()=>n,Ie:()=>p,KP:()=>h,Kn:()=>r,Uj:()=>d,bx:()=>_,d2:()=>c,g9:()=>m,iB:()=>y,u6:()=>l,zT:()=>u});let n=508,l=2*n,a=488,r=992,o=672,s=1176,d=.6,u=.84,c=40,p=72,h=740,_=912,m=32,g=24,y={ARTICLE:"https://schema.org/Article",BRAND:"https://schema.org/Brand",PRODUCT:"https://schema.org/Product",RECIPE:"https://schema.org/Recipe",OFFER:"https://schema.org/Offer",OUT_OF_STOCK:"https://schema.org/OutOfStock",PERSON:"https://schema.org/Person"}},387957:(e,t,i)=>{"use strict";let n;i.d(t,{GL:()=>r,_z:()=>l,d0:()=>s,hO:()=>o,pM:()=>a});let l="video",a="image",r=new Map([["DEFAULT",new Set(["button"])],["story_pin",new Set([l])],["product_detail_page",new Set(["description","shopButton","thumbnailsLoaded"])],["product_detail_page_plus",new Set(["description","shopButton","thumbnailsLoaded"])]]),o=(n=new Set,r.forEach(e=>{n=new Set([...n,...e])}),n),s=new Set([...o,a,"resource"])},819303:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(883119),l=i(780280),a=i(92261),r=i(966676),o=i(785893);function s({children:e,isStoryPin:t=!1,isWideVideo:i=!1}){let{showCloseupContentRight:s,showProductDetailPage:d,viewportSize:u,maxWidth:c}=(0,r.x4)(),p=i?a.KP:c,h=d?a.CI:1050,_=i?a.Gg:h,{isRTL:m}=(0,l.B)();return t?(0,o.jsx)(n.xu,{display:"flex",position:"absolute",top:!0,left:m,right:!m,bottom:!0,width:a.Gg,children:e}):(0,o.jsx)(n.xu,{maxWidth:(s||i)&&"lg"===u?p:_,width:i&&"100%"||null,children:e})}},274970:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(883119),l=i(780280),a=i(240681),r=i(92261),o=i(966676),s=i(785893);function d({children:e,isVideo:t=!1,isWideVideo:i,shouldPadImage:d,styleOverrides:u={},variant:c}){var p,h,_;let{showCloseupContentRight:m,viewportSize:g,paneWidth:y}=(0,o.x4)(),v=(0,l.B)(),f="default"===c;if(!(m&&"lg"===g||f||i))return(0,s.jsx)(n.xu,{children:e});let x=(0,a.Z)({isSideBySide:m&&!i,isPadded:d,isRTL:v.isRTL}),b=i?r.KP:y,P=i?r.KP:496,w=(null===(p=u.height)||void 0===p?void 0:p.height)||"100%",S=(null===(h=u.maxWidth)||void 0===h?void 0:h.maxWidth)||b,k=(null===(_=u.minWidth)||void 0===_?void 0:_.minWidth)||y;return(0,s.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{borderRadius:u.borderRadius||x.borderRadius,WebkitMaskImage:"-webkit-radial-gradient(white, black)",...d&&t?{overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)"}:{}}},display:f?"flex":void 0,flex:f&&i?"grow":void 0,height:f?w:void 0,justifyContent:f?"center":void 0,marginBottom:f?void 0:6,marginEnd:f?void 0:i?0:6,maxWidth:f?S:P,minWidth:f?k:344,rounding:f?void 0:2,children:e})}},273690:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(92261),a=i(966676),r=i(785893);function o({children:e,isStoryPin:t=!1,isScheduledPin:i=!1,isWideVideo:o=!1}){let{showCloseupContentRight:s,viewportSize:d,paneWidth:u,maxWidth:c}=(0,a.x4)(),p=i?l.bx:c;return(0,r.jsx)(n.kC,{direction:o||"lg"!==d?"column":"row",flex:"grow",width:o?void 0:!s||"lg"!==d||t||o?u:p,children:e})}},916062:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(616550),l=i(53987);function a({hasPin:e,pinId:t,boardLayout:i,boardUrl:a}){let r=(0,n.useLocation)(),o=(0,n.useParams)(),s=(0,n.useHistory)();return()=>{if(e&&(0,l.L6)(r)&&o.id===t){let e="quick_saves"===i||"quick_creates"===i?"/me/":null!=a?a:"/";s.replace(e)}}}},827834:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(623568),l=i(388619);let a=(e,t)=>{let i=e.action||void 0,a=(0,l.Z)({url:e.location.search});return"PUSH"===i?"click":("POP"!==i||e.location.key)&&"news_hub"!==a.entrySource?t&&(0,n.sV)(t)?"deeplink":"click":"deeplink"}},559073:(e,t,i)=>{"use strict";i.d(t,{Yf:()=>n});let n=e=>{let{url:t,width:i,height:n}=e||{};return t&&i&&n?{url:t,width:i,height:n}:void 0}},951786:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n,l=i(667294);i(167912);var a=i(357998),r=i(692627),o=i(999018);let s=void 0!==n?n:n=i(261679),d=e=>{var t;return{entityId:e.id,promotedIsLeadAd:e.promoted_is_lead_ad,promotedLeadForm:e.promoted_lead_form&&{leadId:e.promoted_lead_form.lead_id},richMetadata:e.rich_metadata&&{article:e.rich_metadata.article&&{__typename:"ArticleMetadata"},products:e.rich_metadata.products&&e.rich_metadata.products.map(()=>({__typename:"RichPinProductMetadata"})),recipe:(null===(t=e.rich_metadata)||void 0===t?void 0:t.recipe)&&{__typename:"RecipeMetadata"}},storyPinData:e.story_pin_data&&{__typename:"StoryPinData"}}};function u({commerceOptions:e,deepLinkBackGoesToBoard:t,element:i,goBack:n,pinKey:u,routePush:c,trafficSource:p,viewer:h,requestContext:_,viewType:m,viewParameterType:g,componentType:y},v){var f;let{data:x,childDataKey__DEPRECATED:b}=(0,a.Q)(s,u,{useLegacyAdapter:d}),P=(0,o.Z)(b),w=(0,l.useCallback)(()=>{var l,a,o,s;let d=null===(l=x.promotedLeadForm)||void 0===l?void 0:l.leadId,u=e?P(e):null;x.promotedIsLeadAd?(v({event_type:4100,view_type:175,view_parameter:null,component:null,object_id_str:x.entityId,aux_data:{...u,lead_form_id:d,is_lead_ad:1}}),v({event_type:10369,view_type:175,view_parameter:null,component:14307,duration_ns:13606e6,object_id_str:x.entityId,aux_data:{lead_form_id:d,is_lead_ad:1}})):v({aux_data:u,event_type:101,view_type:m||3,view_parameter:g||(0,r.Z)({hasPin:!0,hasPinRichMetadata:!!x.richMetadata,hasPinRichMetadataProducts:!!(null!==(a=x.richMetadata)&&void 0!==a&&a.products),hasPinRichMetadataArticle:!!(null!==(o=x.richMetadata)&&void 0!==o&&o.article),hasPinRichMetadataRecipe:!!(null!==(s=x.richMetadata)&&void 0!==s&&s.recipe),hasPinStoryPinData:!!x.storyPinData}),...y?{component:y}:void 0,element:i||34});let f="deep_linking"===p&&!t,b=h.partner?"/homefeed/":"/",{utm_source:w,news_hub_id:S}=function(e){var t,i,n,l;let a=e.searchParams;return{utm_source:null!==(t=a.get("utm_source"))&&void 0!==t?t:"",utm_medium:null!==(i=a.get("utm_medium"))&&void 0!==i?i:"",utm_campaign:null!==(n=a.get("utm_campaign"))&&void 0!==n?n:"",news_hub_id:null!==(l=a.get("news_hub_id"))&&void 0!==l?l:""}}(new URL(_.fullPath,_.origin)),k="31"==`${w}`,j=`/news_hub/${S}`;return k&&S?c(j):f?c(b):n()},[e,y,t,i,P,n,v,x.entityId,x.promotedIsLeadAd,null===(f=x.promotedLeadForm)||void 0===f?void 0:f.leadId,x.richMetadata,x.storyPinData,_.fullPath,_.origin,c,p,g,m,h.partner]);return{onHandleBackButtonClick:w}}},814197:(e,t,i)=>{"use strict";i.d(t,{Cq:()=>u,Dk:()=>p,Fk:()=>l,fS:()=>d,km:()=>c,lI:()=>r,lJ:()=>a,mS:()=>s,qW:()=>o});var n=i(883119);let l=new n.Ry(1),a=3,r=new n.Ry(a),o=2,s=new n.Ry(o),d=3,u=4,c=new n.Ry(5),p=new n.Ry(100)},946843:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T}),i(167912);var n,l,a,r=i(681669),o=i(898781),s=i(349700),d=i(958007),u=i(780280),c=i(883119),p=i(785893);let h=void 0!==n?n:n=i(281309);function _({pin:e}){let t=(0,o.ZP)(),{author:i,authorUrl:n,ccUrl:l,link:a,mediaType:r,providerName:d}=e.mediaAttribution||{},u=!!d&&"Unknown"!==d,h={author:(0,p.jsx)(c.xu,{display:"inlineBlock",children:(0,p.jsx)(c.rU,{underline:"none",href:n||"",rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{inline:!0,size:"200",weight:"bold",children:i})},"author")},"author"),provider:u?(0,p.jsx)(c.xu,{marginEnd:1,display:"inlineBlock",children:(0,p.jsx)(c.rU,{underline:"always",href:a||"",rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{inline:!0,size:"200",weight:"bold",children:d})},"provider")},"provider"):null},_=u?t._('from {{ provider }}', 'closeup.description.imageSourceWithProvider', 'Image source attribution without author on pin closeup'):null;return i&&(_="VIDEO"===r?u?t._('Video by {{ author }} on {{ provider }}', 'closeup.description.videoSourceWithProvider', 'Video source attribution on pin closeup'):t._('Video by {{ author }}', 'closeup.description.videoSource', 'Video source attribution without provider on pin closeup'):u?t._('Photo by {{ author }} on {{ provider }}', 'closeup.description.photoSourceWithProvider', 'Photo source attribution on pin closeup'):t._('Photo by {{ author }}', 'closeup.description.photoSource', 'Photo source attribution without provider on pin closeup')),(0,p.jsx)(c.xu,{display:"inlineBlock","data-test-id":"media-attribution",children:(0,p.jsxs)(c.xv,{size:"200",inline:!0,children:[!!_&&(0,s.nk)(_,h),l&&(0,p.jsx)(c.rU,{underline:"none",href:l,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{size:"200",inline:!0,children:t._('(cc)', 'creative commons link text', 'creative commons link text')})},"link")]})})}function m({pinKey:e}){let{data:t}=(0,r.sr)(h,e,{type:"pin",useLegacyAdapter:e=>({mediaAttribution:e.media_attribution&&{author:e.media_attribution.author,authorUrl:e.media_attribution.author_url,ccUrl:e.media_attribution.cc_url,link:e.media_attribution.link,mediaType:e.media_attribution.media_type,providerName:e.media_attribution.provider_name}})});return t&&(0,p.jsx)(_,{pin:t})}let g=void 0!==l?l:l=i(801322);function y({pin:e}){var t,i;let n=(0,o.ZP)(),{authorUrl:l,authorName:a,url:r,providerName:d,ccUrl:u}=e.attribution||{},h=null===(t=e.attribution)||void 0===t?void 0:null===(i=t.embed)||void 0===i?void 0:i.src,{type:_,src:m,subtype:g}=e.embed||{},y=!!d&&"Unknown"!==d,v={author:(0,p.jsx)(c.xu,{display:"inlineBlock",children:(0,p.jsx)(c.rU,{underline:"none",href:l||"",rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{inline:!0,size:"200",weight:"bold",children:a})},"author")},"author"),provider:y?(0,p.jsx)(c.xu,{marginEnd:1,display:"inlineBlock",children:(0,p.jsx)(c.rU,{underline:"always",href:r||"",rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{inline:!0,size:"200",weight:"bold",children:d})},"provider")},"provider"):null},f=y?n._('from {{ provider }}', 'closeup.description.imageSourceWithProvider', 'Image source attribution without author on pin closeup'):null;return a&&(f=(m||h)&&"gif"!==_&&"pinstory"!==g?y?n._('Video by {{ author }} on {{ provider }}', 'closeup.description.videoSourceWithProvider', 'Video source attribution on pin closeup'):n._('Video by {{ author }}', 'closeup.description.videoSource', 'Video source attribution without provider on pin closeup'):y?n._('Photo by {{ author }} on {{ provider }}', 'closeup.description.photoSourceWithProvider', 'Photo source attribution on pin closeup'):n._('Photo by {{ author }}', 'closeup.description.photoSource', 'Photo source attribution without provider on pin closeup')),(0,p.jsx)(c.xu,{display:"inlineBlock","data-test-id":"photo-attribution",children:(0,p.jsxs)(c.xv,{size:"200",inline:!0,children:[!!f&&(0,s.nk)(f,v),u&&(0,p.jsx)(c.rU,{underline:"none",href:u,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,p.jsx)(c.xv,{size:"200",inline:!0,children:n._('(cc)', 'creative commons link text', 'creative commons link text')})},"link")]})})}function v({pinKey:e}){let{data:t}=(0,r.sr)(g,e,{type:"pin",useLegacyAdapter:e=>({attribution:e.attribution&&{authorName:e.attribution.author_name,authorUrl:e.attribution.author_url,ccUrl:e.attribution.cc_url,embed:e.attribution.embed&&{src:e.attribution.embed.src},providerName:e.attribution.provider_name,url:e.attribution.url},embed:e.embed&&{src:e.embed.src,subtype:e.embed.subtype,type:e.embed.type}})});return t&&(0,p.jsx)(y,{pin:t})}var f=i(667294),x=i(565212),b=i(509278),P=i(643010),w=i(773285),S=i(867820),k=i(52022),j=i(413252),A=i(50286);function C({text:e}){let{isAuthenticated:t,isBot:i}=(0,u.B)(),[n,l]=(0,f.useState)(!1),{checkExperiment:a}=(0,w.F)(),r=(0,A.ZP)(),o=(0,k.Z)(),{anyEnabled:s}=a("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),d=a("web_hashtags_in_description_display").anyEnabled,h=(0,P.vs)(),_=s?h:(0,P.Yc)(),m=(0,f.useCallback)(()=>{n||t||((0,S.NC)("click_open_description"),(0,S.My)("desktop"===r?"pcons.dweb-more-description":"pcons.mweb-more-description"),o({action:"click",item:"more-description"})),l(!n)},[n,t,o,r]);return i?(0,p.jsx)(c.xv,{inline:!0,children:(0,b.Z)({isHashtagInDescriptionDisplayEnabled:d,text:e})}):"desktop"!==r?(0,p.jsx)(j.Z,{Wrapper:({children:e})=>(0,p.jsx)("h2",{style:{fontSize:"14px",wordWrap:"break-word",textAlign:"start"},children:e}),isExpanded:n,description:e,maxHeight:38,handleToggle:m}):(0,p.jsx)(x.Z,{isDarkMode:_,children:(0,b.Z)({isHashtagInDescriptionDisplayEnabled:d,text:e})})}function D({photoAttribution:e,text:t}){let i;let n=(0,A.ZP)(),l=(0,k.Z)(),{checkExperiment:a}=(0,w.F)(),{isAuthenticated:r}=(0,u.B)(),o=r?a("auth_closeup_redesign").anyEnabled:a("unauth_closeup_redesign").anyEnabled;return"phone"===n&&(i=o?"start":"center"),(0,p.jsxs)(c.xu,{"data-test-id":"CloseupDescriptionContainer",maxWidth:"100%",dangerouslySetInlineStyle:{__style:{textAlign:i}},children:[e,t&&(0,p.jsx)(c.xu,{"data-test-id":"main-pin-description-text",children:(0,p.jsx)(c.iP,{onTap:()=>{(0,S.My)("desktop"===n?"pcons.dweb.main-pin-description-text":"pcons.mweb.main-pin-description-text"),l({action:"click",item:"main-pin-description-text"})},children:(0,p.jsx)(c.xu,{dangerouslySetInlineStyle:{__style:{cursor:"auto"}},children:(0,p.jsx)(C,{text:t})})})})]})}let E=void 0!==a?a:a=i(882900),I=(e,t)=>{if(e){let i=e.getTime(),n=new Date().getTime();return null==t||n-i<=31536e6*t}return!1};function T({pinKey:e}){var t,i,n,l,a,c,h,_;let g;let y=(0,o.ZP)(),{isAuthenticated:f,locale:x}=(0,u.B)(),{data:b,childDataKey__DEPRECATED:P}=(0,r.sr)(E,e,{type:"pin",useLegacyAdapter:e=>({attribution:e.attribution&&{__typename:"Attribution"},closeupDescription:e.closeup_description,closeupUnifiedDescription:e.closeup_unified_description,description:e.description,mediaAttribution:e.media_attribution&&{__typename:"MediaAttribution"},richMetadata:e.rich_metadata&&{article:e.rich_metadata.article&&{datePublished:e.rich_metadata.article.date_published},description:e.rich_metadata.description,recipe:e.rich_metadata.recipe&&{__typename:"RecipeMetadata"}},richSummary:e.rich_summary&&{displayName:e.rich_summary.display_name},seoDescription:e.seo_description,seoNoindexReason:e.seo_noindex_reason,storyPinDataId:e.story_pin_data_id})});if(!b)return null;let{closeupDescription:w,closeupUnifiedDescription:S,storyPinDataId:k}=b,j=null!==(t=null===(i=b.richMetadata)||void 0===i?void 0:i.description)&&void 0!==t?t:"",A=null!==(n=null===(l=b.richMetadata)||void 0===l?void 0:null===(a=l.article)||void 0===a?void 0:a.datePublished)&&void 0!==n?n:"",C=null!==(c=null===(h=b.richSummary)||void 0===h?void 0:h.displayName)&&void 0!==c?c:"",T=b.description,F=!!b.attribution,z=!!b.mediaAttribution,R=b.seoDescription||"",L=b.seoNoindexReason||"",M=A&&new Date(A),Z=f?null==S?void 0:S.trim():(0,d.Z)({storyPinDataId:k,pinDescription:T,richMetadataDescription:j,richSummaryDisplayName:C,closeupDescription:w,closeupUnifiedDescription:S,seoDescription:R,seoNoindexReason:L}),B=M&&I(M,2)&&Z?(0,s.nk)(y._('{{ pinDescription }} Published on {{ date }}', 'closeup.details.descirptionWithPublishedDate', 'Pin description with publish date'),{date:function(e,t){try{return new Intl.DateTimeFormat(t,{month:"long",day:"numeric",year:"numeric",calendar:"gregory"}).format(e)}catch(t){return e?e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate():""}}(M,x),pinDescription:Z}).join(""):Z;return(F||z)&&(g=(0,s.nk)(Z?"{{ credit }} \xb7 ":"{{ credit }}",{credit:z?(0,p.jsx)(m,{pinKey:P},"article-pin"):(0,p.jsx)(v,{pinKey:P},"article-pin"),descriptionToDisplay:B})),(0,p.jsx)(D,{photoAttribution:g,text:null!==(_=b.richMetadata)&&void 0!==_&&_.recipe?null:Z})}},29066:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>e_,fL:()=>eo,xh:()=>ea});var n,l,a=i(667294),r=i(167912),o=i(240684),s=i(883119),d=i(288889),u=i(807592),c=i(561067),p=i(643010),h=i(319915),_=i(681669),m=i(898781),g=i(543972),y=i(926275),v=i(313047),f=i(623568),x=i(992750),b=i(773285),P=i(780280),w=i(947599),S=i(844974),k=i(66699),j=i(939106),A=i(50286),C=i(792606),D=i(946843),E=i(892363),I=i(435183),T=i(266224),F=i(40995),z=i(745162),R=i(358381),L=i(350948),M=i(635821),Z=i(178307),B=i(44004),O=i(62409),N=i(332215),K=i(96023),U=i(698330),H=i(571577),V=i(954063),G=i(21384),W=i(678532),$=i(238253),q=i(252417),Y=i(642639),X=i(375559),Q=i(862193),J=i(817767),ee=i(986926),et=i(394332),ei=i(785893);let en=(0,o.ZP)({resolved:{},chunkName:()=>"Reactions-ReactionAggregation",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e(15206).then(i.bind(i,142219)),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 i(t)},resolve:()=>142219}),el=(0,a.lazy)(()=>i.e(7612).then(i.bind(i,607612))),ea=2,er=a.Fragment,eo=({children:e})=>{let t=(0,H.H)();return"lg"===t?(0,ei.jsx)(s.Le,{top:68,children:(0,ei.jsx)(s.xu,{marginStart:4,children:e})}):e},es=(0,a.lazy)(()=>i.e(55967).then(i.bind(i,55967))),ed=void 0!==n?n:n=i(350886),eu=void 0!==l?l:l=i(914715);function ec(e){let t,i;let n=(0,m.ZP)(),{commentCount:l,commentsDisabled:r,commentModule:o,isEligibleForPdp:u,isImagePinForUnauthOnTablet:_,isStoryPin:H,onClickTitleOrDomain:Q,shouldShowAggregatedComments:ee,shouldShowReactions:ed,shouldShowSEOPinInfo:eu,viewParameter:ec,viewerId:ep,pinActionBar:eh,sourceUserBlockedByMe:e_,sourceUserExplicitlyFollowedByMe:em,sourceUserFollowerCount:eg,sourceUserFullName:ey,sourceUserId:ev,sourceUserImageLargeUrl:ef,sourceUserimageMediumUrl:ex,sourceUserImageSmallUrl:eb,sourceUserIsVerifiedMerchant:eP,sourceUserUsername:ew,sourceUserVerifiedIdentityVerified:eS,pinId:ek,pinLink:ej,pinDomain:eA,pinProductPrice:eC,pinProductInStock:eD,pinReactionCounts:eE,promoterFullName:eI,hasPinProduct:eT,hasSourceUser:eF,hasOfficialUser:ez,hasLinkDomain:eR,hasNativeCreator:eL,hasOriginPinner:eM,hasPromoter:eZ,hasRichMetadataArticle:eB,hasRichMetadataTutorial:eO,hasRichMetadataRecipe:eN,hasRichMetadataRecipeCategorizedIngredients:eK,hasRichMetadataRecipeAggregateInfo:eU,hasRichMetadataProductOfferSummary:eH,hasRichSummaryProductOfferSummary:eV,richMetadataRecipeFromAggregatedData:eG,richMetadataProductName:eW,richSummaryProductName:e$,pinJoinVisualAnnotation:eq,pinJoinAnnotationsWithLinks:eY,graphqlRef:eX,isActionBarInline:eQ,setIsActionBarInline:eJ,clientTrackingParams:e0,shoppingKlpUrls:e1,storyPinKeyValueBlocks:e2,setCloseupDetailsHeight:e8,setCloseupPinLinkCreditsHeight:e3,setCloseupTitleHeight:e6,setUploadedToPinterestTextHeight:e9,setUserAttributionHeight:e7,setUserRepHeight:e4}=e,{checkExperiment:e5}=(0,b.F)(),te=(0,A.ZP)(),tt="desktop"===te,ti="phone"===te,{isAuthenticated:tn,country:tl,locale:ta,isBot:tr,regionFromIp:to}=(0,P.B)(),ts=(0,U.Tt)(),td=(0,p.vs)(),tu=u&&tn,tc=tu||!tt&&!u,tp=(0,a.useRef)(null),th=(0,a.useRef)(null),t_=(0,a.useRef)(null),tm=(0,a.useRef)(null),tg=(0,a.useRef)(null),ty=(0,a.useRef)(null),tv=(0,a.useRef)(null);(0,K.Z)(e=>{e8&&th&&th.current&&th.current.offsetHeight<72&&e8(e.offsetHeight)},tp),(0,K.Z)(e=>{e3&&e3(e.offsetHeight)},t_),(0,K.Z)(e=>{e6&&e6(e.offsetHeight)},tm),(0,K.Z)(e=>{e7&&e7(e.offsetHeight)},ty),(0,K.Z)(e=>{e9&&e9(e.offsetHeight)},tg),(0,K.Z)(e=>{e4&&e4(e.offsetHeight)},tv);let tf=!tt&&(!tn||tc&&eQ||!u&&e5("auth_mweb_inline_action_bar").anyEnabled);if(tn&&u)return(0,ei.jsx)(eo,{children:(0,ei.jsxs)(s.xu,{"data-test-id":"CloseupDetails",children:[(0,ei.jsx)(s.xu,{width:"100%",paddingY:o?0:3,paddingX:2,children:(0,ei.jsx)($.Z,{onClickTitleOrDomain:Q,graphqlRef:eX,pinId:ek,inlinePinActionBar:tf?eh:void 0,setIsActionBarInline:tc?eJ:void 0})}),o]})});let tx=!tt&&["no_collapse_by_default","collapse_by_default"].includes(e5(tn?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group),tb=(0,f._S)(eA)?(0,O.Fc)({i18n:n,hasRichMetadataProductOfferSummary:eH,richMetadataProductName:eW,richSummaryProductName:e$,hasRichSummaryProductOfferSummary:eV}):void 0,tP=(0,f._S)(eA)?(0,O.Fc)({i18n:n,hasRichMetadataProductOfferSummary:eH,richMetadataProductName:eW,richSummaryProductName:e$,hasRichSummaryProductOfferSummary:eV})||(0,O.Wj)({i18n:n,hasLinkDomain:eR,hasRichMetadataArticle:eB,hasRichMetadataRecipeCategorizedIngredients:eK,hasRichMetadataTutorial:eO,richMetadataRecipeFromAggregatedData:eG}):void 0,tw=!tn&&eT&&(u||tr||!e5("unauth_gate_product_pins_by_country_and_trustworthiness").anyEnabled),{pinCreditLink:tS,pinCredit:tk}=(0,O.Xe)({hasLinkDomain:eR,hasNativeCreator:eL,hasOriginPinner:eM,pinDomain:eA,sourceUserUsername:ew,sourceUserFullName:ey}),{annotationsWithLinks:tj}=(0,x.eK)({pinJoinVisualAnnotation:eq,pinJoinAnnotationsWithLinks:eY}),tA=(0,O.AH)(ej),tC=eF&&(!tn||tk&&tS),tD=ed&&!!eE&&!e5(`${tn?"auth":"unauth"}_mweb_reactions_expansion_mvp_idea_video_pin`).anyEnabled,tE=(0,y.Z)(null==ts?void 0:ts.created_at)&&!(0,N.V0)(ts),tI=tr&&!tt&&tc&&e5("mweb_render_missing_seo_content_holdout_ff").anyEnabled,tT=tI?!tc:tr||!tc,tF=tn?e5("auth_closeup_redesign").anyEnabled:e5("unauth_closeup_redesign").anyEnabled,tz=!tt&&eu&&(0,ei.jsx)(s.xu,{children:(0,ei.jsx)(G.Z,{dedupeVisualAnnotations:null,pinId:ek,isMainPin:!0,isAuth:tn,pinCreditPrefix:tP,onClickTitleOrDomain:Q,graphqlRef:eX,lazyLoadAnnotations:!tn&&!tr,renderOnlyHiddenSEOContent:!tI&&tc&&tr,shoppingKlpUrls:e1})}),tR=ez&&(0,ei.jsx)(s.xu,{marginBottom:2,ref:ty,children:(0,ei.jsx)(R.Z,{hideFollowButton:e5("lex_follow_button").group.includes("hide_follow")||tt,justifyContent:tt?"start":"center",viewerId:ep,pinId:ek,graphqlRef:eX,seeMoreButton:tT&&tz,clientTrackingParams:e0})}),tL=!!tC&&!ez&&(0,ei.jsxs)(s.xu,{flex:"grow",marginTop:tF?void 0:q.dP,"data-test-id":"CloseupUserRep",display:"flex",justifyContent:"between",alignItems:"center",width:"100%",ref:tv,children:[(0,ei.jsx)(J.Z,{activateLexFollowExp:()=>e5("lex_follow_button"),blockedByMe:null!=e_&&e_,explicitlyFollowedByMe:null!=em&&em,followerCount:null!=eg?eg:0,fullName:null!=ey?ey:"",id:null!=ev?ev:"",imageLargeUrl:null!=ef?ef:"",imageMediumUrl:null!=ex?ex:"",imageSmallUrl:null!=eb?eb:"",isEligibleForPdp:!!u,isImagePinForUnauthOnTablet:null!=_&&_,isOnCloseup:!0,isVerifiedMerchant:null!=eP&&eP,pinId:ek,pinKey:eX,textColor:"default",type:"row",username:null!=ew?ew:"",verifiedIdentityVerified:null!=eS&&eS,viewParameter:ec,viewType:3,clientTrackingParams:e0}),tT&&tz]}),tM=tt&&(tj||[]).length>0&&(0,ei.jsx)(a.Fragment,{children:(0,ei.jsx)(s.xu,{paddingX:0,padding:tF?0:2,marginTop:tF?4:0,children:(0,ei.jsx)(et.ZP,{dedupeVisualAnnotations:null,pinId:ek,mode:"inlineWithScrollArrows",graphqlRef:eX,shoppingKlpUrls:e1})})}),tZ=tD&&(0,ei.jsx)(h.Z,{name:"SafeSuspense_CloseupDetails_ReactionAggregation",children:(0,ei.jsx)(w.Z,{children:(0,ei.jsx)(s.xu,{alignSelf:"center",display:"flex",justifyContent:tt||tF?"start":"center",marginTop:tt?2:void 0,children:(0,ei.jsx)(en,{pinId:ek,reactionCounts:eE,viewParameter:156,viewType:3,disableModal:!tn,textSize:d.n,textWeight:"bold"})})})});eA&&ej&&(t={domain:eA,url:ej});let tB=eX?{type:"graphqlRef",data:eX}:{type:"deprecated",data:ek},tO=(e2||[]).map((e,t)=>{var i;return(0,ei.jsx)(Y.Z,{categoryType:null!==(i=e.categoryType)&&void 0!==i?i:e.category_type,value:e.value,type:"compact",size:"300"},`key-val-component-${t}`)}).filter(e=>null!=e),tN=q.dP,tK=tD||ti?q.dP:0,tU=tn?void 0:10,tH=tt?"start":"center";return tF&&(tN=tt?4:2,tK=tD||ti?q.dP:1,tU=tn?void 0:8,i=ti,tH="start"),(0,ei.jsx)(eo,{children:(0,ei.jsxs)(s.xu,{"data-test-id":"CloseupDetails",ref:tp,children:[(0,ei.jsxs)(s.xu,{width:"100%",marginTop:4,marginBottom:tx&&!tF?0:4,paddingX:ea,children:[!tf&&eh,ti&&tR,tZ,(tt||tw||tA&&(!tC||_))&&(0,ei.jsx)(s.xu,{"data-test-id":"callToActionButton",display:tn||tt||_||tw?void 0:"none",marginTop:tK,ref:t_,children:(0,ei.jsx)(I.Z,{isImagePinForUnauthOnTablet:_,onClickTitleOrDomain:Q,pinCreditPrefix:tF?tb:tP,pinDomain:eA})}),tt&&tw&&eC&&(0,ei.jsxs)(s.xu,{alignItems:"baseline",display:"flex",direction:"row",marginTop:1,children:[(0,ei.jsx)(s.xv,{size:"500",children:eC}),(0,ei.jsx)(s.xu,{marginStart:2,children:(0,ei.jsx)(s.xv,{size:"400",children:eD?n._('In stock', 'closeup.details.productPinInStock', 'Product pin in stock'):n._('Out of stock', 'Product pin out of stock', 'Product pin out of stock')})})]}),(0,ei.jsxs)(er,{children:[ti&&tL,(0,ei.jsx)(s.xu,{marginTop:tF?4:q.dP,ref:tm,children:(0,ei.jsx)(F.Z,{onClick:Q,hasLink:tA,lineClamp:tF?void 0:(0,z.Z)({isImagePinForUnauthOnTablet:_}),pinId:ek,graphqlRef:eX,forceSmallerHeading:i,textAlign:tH})})]}),(0,ei.jsx)(er,{children:ti&&tx&&(0,ei.jsx)(s.xu,{marginTop:q.dP,children:(0,ei.jsx)(j.Z,{items:tO.filter(e=>""!==e),color:td?"light":"default"})})}),!tt&&eC&&(0,ei.jsx)(s.xu,{display:"flex",justifyContent:tF?"start":"center",marginTop:2,marginBottom:2,children:(0,ei.jsxs)(s.xv,{children:[eC," \xb7 ",eD?n._('In stock', 'closeup.details.productPinInStock', 'Product pin in stock'):n._('Out of stock', 'Product pin out of stock', 'Product pin out of stock')]})}),eN&&eU&&!tE&&(0,ei.jsx)(M.Z,{pinId:ek,graphqlRef:eX,boldText:!1,marginTop:q.dP,textSize:"300",isWideViewport:tt}),(0,ei.jsx)(s.xu,{ref:th,children:(0,ei.jsx)(er,{children:(0,ei.jsx)(g.Z,{options:{threshold:[1]},onVisibilityChange:tc?e=>{if(e&&e.length>0&&eJ){let{intersectionRatio:t,boundingClientRect:i}=e[0],n=i.y<0;eJ(1===t||n)}}:()=>{},children:e=>(0,ei.jsx)(s.xu,{ref:e,children:(0,ei.jsx)(s.xu,{marginTop:tF?tN:q.dP,children:tw?(0,ei.jsx)(W.Z,{onClickTitleOrDomain:Q,pinKey:tB}):(0,ei.jsx)(D.Z,{pinKey:tB})})})})})}),tf&&(0,ei.jsx)(s.xu,{marginTop:tF?4:0,marginBottom:tF&&!o?4:0,children:eh}),tt&&!tn&&tM,!ti&&(0,ei.jsx)(s.xu,{marginTop:tF?q.dP:0,children:tL}),!ti&&(0,ei.jsx)(s.xu,{marginTop:tF?8:q.dP,children:tR}),tt&&tn&&(0,ei.jsx)(s.xu,{"data-test-id":"UnauthVaseFullBleedModalContainer",dangerouslySetInlineStyle:{__style:{visibility:"hidden"}},children:(0,ei.jsx)(C.Z,{pinKey:tB,onClose:()=>{}})}),!tt&&eZ&&(0,ei.jsxs)(a.Fragment,{children:[(0,ei.jsx)(s.xu,{marginTop:q.dP,children:(0,ei.jsx)(s.iz,{})}),(0,ei.jsxs)(s.xu,{alignItems:"center",display:"flex",justifyContent:"between",margin:2,paddingX:1,children:[(0,ei.jsx)(s.xv,{inline:!0,size:"200",weight:"bold",children:n._('Promoted Pin', 'Denotes promoted pin in closeup', 'Denotes promoted pin in closeup')}),(0,ei.jsx)(h.Z,{name:"SafeSuspense_CloseupDetails_PinFeedbackButton",children:(0,ei.jsx)(w.Z,{children:(0,ei.jsx)(es,{graphqlRef:eX,pinId:ek,promoter:null!=eI?eI:"",type:"promoted"})})})]}),(0,ei.jsx)(s.iz,{})]}),!tE&&eN&&!H&&(0,ei.jsx)(V.Z,{hash:"recipe",offset:-v.DEFAULT_HEIGHT,children:(0,ei.jsx)(L.ZP,{pinId:ek,graphqlRef:eX})}),!tE&&H&&(0,ei.jsx)(E.Z,{graphqlRef:eX,link:t,pinId:null!=ek?ek:"",clientTrackingParams:e0}),!tx&&(0,ei.jsx)(T.Z,{graphqlRef:eX,pinId:ek,inCollapsibleModulesExp:tx}),!tn&&ti&&"IN"===tl&&(ta||"").startsWith("en")&&X.N3.includes(to)&&3>=Number((0,S.qn)("indiaUnauthLocaleShowCount",0))&&(0,ei.jsx)(h.Z,{name:"SafeSuspense_CloseupDetails_UnauthSwitchLanguageModal",children:(0,ei.jsx)(w.Z,{children:(0,ei.jsx)(el,{})})}),(0,ei.jsx)(c.Z,{pinKey:tB,isDesktop:tt})]}),tt&&ee&&!eT&&(0,ei.jsx)(h.Z,{name:"CommentThread",children:(0,ei.jsxs)(s.xu,{paddingX:2,marginTop:tU,children:[(0,ei.jsx)(s.X6,{size:"400",accessibilityLevel:2,children:l&&!r?(0,k.Z)(n.ngettext('{{ count }} Comment', '{{ count }} Comments', l, 'desktopPinCloseup.sectionTitle.commentsCountLabel', 'Comments on a Pin. count: number of comments'),{count:l.toString()}):n._('Comments', 'desktopPinCloseup.sectionTitle', 'Title of comments section')}),(0,ei.jsx)(B.Z,{isReadOnly:!0,pinKey:tB,pinId:ek,viewParameter:ec}),!tr&&!r&&(0,ei.jsx)(Z.Z,{isStoryPin:!1,viewParameter:ec})]})}),!tt&&o]})})}let ep=e=>{var t,i,n,l,a,o,s,d,u,c,p,h,_,m,g,y,v,f,x,b,w,S,k,j,A,C,D,E,I,T,F,z,R,L,M,Z,B,O,N,K,U;let H,V;let G=(0,ee.Z)(e),W=(0,Q.Z)(e),$=(0,r.useFragment)(ed,e.pinner),q=(0,r.useFragment)(ed,e.nativeCreator),Y=(0,r.useFragment)(ed,null===(t=e.linkDomain)||void 0===t?void 0:t.officialUser),X=(0,r.useFragment)(ed,e.originPinner),J=(null===(i=e.pinJoin)||void 0===i?void 0:i.visualAnnotation)||[],et=(null===(n=e.pinJoin)||void 0===n?void 0:n.shoppingKlpUrls)||[],ei=e.promoter&&!e.isDownstreamPromotion?e.promoter:null,en=null===(l=e.richMetadata)||void 0===l?void 0:null===(a=l.products)||void 0===a?void 0:a[0],el=null===(o=e.richSummary)||void 0===o?void 0:null===(s=o.products)||void 0===s?void 0:s[0],ea=(null===(d=e.aggregatedPinData)||void 0===d?void 0:d.commentCount)||0,er=(null===(u=e.aggregatedPinData)||void 0===u?void 0:null===(c=u.didItData)||void 0===c?void 0:c.imagesCount)||0,{isAuthenticated:eo}=(0,P.B)();H=q||(e.linkDomain?Y:X||$),eo||H||(H=$);let es=!!e.closeupAttribution;return en&&en.name&&en.offerSummary&&(V=en.offerSummary),!V&&el&&el.name&&el.offerSummary&&(V=el.offerSummary),{commentCount:ea+er,commentsDisabled:e.commentsDisabled,closeupUnifiedDescription:e.closeupUnifiedDescription,hasLinkDomain:!!e.linkDomain,hasNativeCreator:!!e.nativeCreator,hasOfficialUser:es,hasOriginPinner:!!e.originPinner,hasPinProduct:!!V,hasPromoter:!!ei,hasRichMetadataArticle:!!(null!==(h=e.richMetadata)&&void 0!==h&&h.article),hasRichMetadataProductOfferSummary:!!(null!=en&&en.offerSummary),hasRichMetadataRecipe:!!(null!==(_=e.richMetadata)&&void 0!==_&&_.recipe),hasRichMetadataRecipeAggregateInfo:!!(null!==(m=e.richMetadata)&&void 0!==m&&null!==(g=m.recipe)&&void 0!==g&&g.displayCookTime)||!!(null!==(y=e.richMetadata)&&void 0!==y&&null!==(v=y.recipe)&&void 0!==v&&v.servingsSummary)||!!(null!==(f=e.richMetadata)&&void 0!==f&&null!==(x=f.recipe)&&void 0!==x&&x.aggregateRating),hasRichMetadataRecipeCategorizedIngredients:!!(null!==(b=e.richMetadata)&&void 0!==b&&null!==(w=b.recipe)&&void 0!==w&&w.categorizedIngredients),hasRichMetadataTutorial:!!(null!==(S=e.richMetadata)&&void 0!==S&&S.tutorial),hasRichSummaryProductOfferSummary:!!(null!=en&&en.offerSummary),hasSourceUser:!!H,isEligibleForPdp:e.isEligibleForPdp,pinDomain:e.domain,pinJoinAnnotationsWithLinks:W,pinJoinVisualAnnotation:J,pinLink:e.link,pinProductInStock:null===(k=V)||void 0===k?void 0:k.inStock,pinProductPrice:null===(j=V)||void 0===j?void 0:j.price,pinReactionCounts:G,promoterFullName:null==ei?void 0:ei.fullName,richMetadataProductName:null==en?void 0:en.name,richMetadataRecipeFromAggregatedData:null===(A=e.richMetadata)||void 0===A?void 0:null===(C=A.recipe)||void 0===C?void 0:C.fromAggregatedData,richSummaryProductName:null==el?void 0:el.name,shouldShowAggregatedComments:e.isEligibleForAggregatedComments,shoppingKlpUrls:et,sourceUserBlockedByMe:null===(D=H)||void 0===D?void 0:D.blockedByMe,sourceUserExplicitlyFollowedByMe:null===(E=H)||void 0===E?void 0:E.explicitlyFollowedByMe,sourceUserFollowerCount:null===(I=H)||void 0===I?void 0:I.followerCount,sourceUserFullName:null===(T=H)||void 0===T?void 0:T.fullName,sourceUserId:null===(F=H)||void 0===F?void 0:F.entityId,sourceUserImageLargeUrl:null===(z=H)||void 0===z?void 0:z.imageLargeUrl,sourceUserimageMediumUrl:null===(R=H)||void 0===R?void 0:R.imageMediumUrl,sourceUserImageSmallUrl:null===(L=H)||void 0===L?void 0:L.imageSmallUrl,sourceUserIsVerifiedMerchant:null===(M=H)||void 0===M?void 0:M.isVerifiedMerchant,sourceUserUsername:null===(Z=H)||void 0===Z?void 0:Z.username,sourceUserVerifiedIdentityVerified:null===(B=H)||void 0===B?void 0:null===(O=B.verifiedIdentity)||void 0===O?void 0:O.verified,storyPinKeyValueBlocks:null===(N=e.storyPinData)||void 0===N?void 0:null===(K=N.metadata)||void 0===K?void 0:null===(U=K.basics)||void 0===U?void 0:U.keyValueBlocks}},eh=e=>{var t,i,n,l,a,r,o,s,d,c,p,h,_,m,g,y,v,f,x,b,w,S,k,j,A,C,D,E,I,T,F,z,R,L;let M,Z;let{isAuthenticated:B}=(0,P.B)(),N=(0,U.mN)();if(!e)return null;let K=(null===(t=e.aggregated_pin_data)||void 0===t?void 0:t.comment_count)||0,H=(null===(i=e.aggregated_pin_data)||void 0===i?void 0:null===(n=i.did_it_data)||void 0===n?void 0:n.images_count)||0,V=e.promoter&&!e.is_downstream_promotion?e.promoter:null,G=null===(l=e.rich_metadata)||void 0===l?void 0:null===(a=l.products)||void 0===a?void 0:a[0],W=null===(r=e.rich_summary)||void 0===r?void 0:null===(o=r.products)||void 0===o?void 0:o[0],{link_domain:$,native_creator:q,origin_pinner:Y,pinner:X}=e||{},Q=(0,O.wS)($,q,Y,X);B||Q||(Q=X),Q&&(M="string"==typeof Q?N(Q):Q);let J=!!e.closeup_attribution;return G&&G.name&&G.offer_summary&&(Z=G.offer_summary),!Z&&W&&W.name&&W.offer_summary&&(Z=W.offer_summary),{commentCount:K+H,commentsDisabled:e.comments_disabled,hasLinkDomain:!!e.link_domain,hasNativeCreator:!!e.native_creator,hasOfficialUser:J,hasOriginPinner:!!e.origin_pinner,hasPinProduct:!!Z,hasPromoter:!!V,hasRichMetadataArticle:!!(null!==(d=e.rich_metadata)&&void 0!==d&&d.article),hasRichMetadataProductOfferSummary:!!(null!=G&&G.offer_summary),hasRichMetadataRecipe:!!(null!==(c=e.rich_metadata)&&void 0!==c&&c.recipe),hasRichMetadataRecipeCategorizedIngredients:!!(null!==(p=e.rich_metadata)&&void 0!==p&&null!==(h=p.recipe)&&void 0!==h&&h.categorized_ingredients),hasRichMetadataTutorial:!!(null!==(_=e.rich_metadata)&&void 0!==_&&_.tutorial),hasRichSummaryProductOfferSummary:!!(null!=G&&G.offer_summary),hasSourceUser:!!Q,isEligibleForPdp:e.is_eligible_for_pdp,pinDomain:e.domain,pinJoinAnnotationsWithLinks:null===(m=e.pin_join)||void 0===m?void 0:m.annotations_with_links,pinJoinVisualAnnotation:null===(g=e.pin_join)||void 0===g?void 0:g.visual_annotation,pinLink:e.link,pinProductInStock:null===(y=Z)||void 0===y?void 0:y.in_stock,pinProductPrice:Z&&(0,u.Z)({maxPrice:Z.max_price,minPrice:Z.min_price,price:Z.price}),pinReactionCounts:e.reaction_counts,promoterFullName:null==V?void 0:V.full_name,richMetadataProductName:null==G?void 0:G.name,richMetadataRecipeFromAggregatedData:null===(v=e.rich_metadata)||void 0===v?void 0:null===(f=v.recipe)||void 0===f?void 0:f.from_aggregated_data,richSummaryProductName:null==W?void 0:W.name,shouldShowAggregatedComments:e.is_eligible_for_aggregated_comments,shoppingKlpUrls:(null===(x=e.pin_join)||void 0===x?void 0:x.shopping_klp_urls)||[],sourceUserBlockedByMe:null===(b=M)||void 0===b?void 0:b.blocked_by_me,sourceUserExplicitlyFollowedByMe:null===(w=M)||void 0===w?void 0:w.explicitly_followed_by_me,sourceUserFollowerCount:null===(S=M)||void 0===S?void 0:S.follower_count,sourceUserFullName:null===(k=M)||void 0===k?void 0:k.full_name,sourceUserId:null===(j=M)||void 0===j?void 0:j.id,sourceUserImageLargeUrl:null===(A=M)||void 0===A?void 0:A.image_large_url,sourceUserimageMediumUrl:null===(C=M)||void 0===C?void 0:C.image_medium_url,sourceUserImageSmallUrl:null===(D=M)||void 0===D?void 0:D.image_small_url,sourceUserIsVerifiedMerchant:null===(E=M)||void 0===E?void 0:E.is_verified_merchant,sourceUserUsername:null===(I=M)||void 0===I?void 0:I.username,sourceUserVerifiedIdentityVerified:null===(T=M)||void 0===T?void 0:null===(F=T.verified_identity)||void 0===F?void 0:F.verified,storyPinKeyValueBlocks:null===(z=e.story_pin_data)||void 0===z?void 0:null===(R=z.metadata)||void 0===R?void 0:null===(L=R.basics)||void 0===L?void 0:L.key_value_blocks}};function e_({graphqlRef:e,pinId:t,...i}){let{data:n,childDataKey__DEPRECATED:l}=(0,_.HF)(eu,e?{type:"graphqlRef",data:e}:{type:"deprecated",data:t},{type:"pin",useGraphQLAdapter:ep,useLegacyAdapter:eh});return!!n&&(0,ei.jsx)(ec,{...i,...n,pinId:t,graphqlRef:"graphqlRef"===l.type?l.data:null})}},892363:(e,t,i)=>{"use strict";i.d(t,{Z:()=>w});var n,l=i(667294),a=i(167912),r=i(883119),o=i(485710),s=i(288889),d=i(319530),u=i(444445),c=i(898781),p=i(773285),h=i(780280),_=i(50286),m=i(29066),g=i(706443),y=i(350118),v=i(785893);let f=void 0!==n?n:n=i(623861);function x({listBlocks:e,templateType:t}){let i=(0,c.ZP)(),n=(0,_.ml)(),{checkExperiment:a}=(0,p.F)(),{isAuthenticated:y}=(0,h.B)(),f=n&&["no_collapse_by_default","collapse_by_default"].includes(a(y?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group),x=new Map([[null,i._('Notes', 'Closeup.CloseupDetailsBasicsLayout.notesLayoutTitle', 'Label for button to expand notes Story Pin details')],[1,i._('Ingredients', 'Closeup.CloseupDetailsBasicsLayout.recipeLayoutTitle', 'Label for button to expand ingredients Story Pin details')],[2,i._('Supplies', 'Closeup.CloseupDetailsBasicsLayout.diyHomeLayoutTitle', 'Label for button to expand supplies Story Pin details')]]);return(0,v.jsx)(r.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:e&&e.length>0&&(0,v.jsxs)(r.xu,{marginTop:4,display:"flex",direction:"column",dangerouslySetInlineStyle:{__style:{rowGap:16}},children:[f&&(0,v.jsx)(g.Z,{marginStart:u.D6+m.xh}),(0,v.jsx)(o.Z,{heading:x.get(t),children:(0,v.jsx)(({children:e})=>f?(0,v.jsx)(r.kC,{direction:"column",gap:4,children:e}):(0,v.jsx)(d.Z,{children:e}),{children:e.map((e,t)=>{var i;let n=`${e.heading||"empty"}-${t}-listHeading`;return(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(r.xu,{paddingY:f?0:2,marginTop:f?0:2}),(0,v.jsx)(r.xv,{size:s.n,weight:"bold",children:e.heading}),(null!==(i=e.blocks)&&void 0!==i?i:[]).map((t,i)=>{let n=`item-${i}-${e.heading||"empty"}`;return(0,v.jsx)(l.Fragment,{children:(0,v.jsx)(r.xu,{marginBottom:1,children:(0,v.jsxs)(r.xv,{size:s.n,children:["• ",t.text?t.text:""]})})},n)})]},n)})})})]})})}function b({pinId:e,graphqlRef:t,...i}){var n,l,a,r,o;let s=(0,y.S6)()(e),d=(null==s?void 0:null===(n=s.story_pin_data)||void 0===n?void 0:null===(l=n.metadata)||void 0===l?void 0:l.basics)||{},{key_value_blocks:u,list_blocks:c}=d;return(0,v.jsx)(x,{...i,pinId:e,keyValueBlocks:u,listBlocks:c,title:null!==(a=null==s?void 0:s.title)&&void 0!==a?a:"",templateType:null==s?void 0:null===(r=s.story_pin_data)||void 0===r?void 0:null===(o=r.metadata)||void 0===o?void 0:o.template_type})}function P({pinId:e,graphqlRef:t,...i}){var n,l,r,o,s;let d=(0,a.useFragment)(f,t),u=(null==d?void 0:null===(n=d.storyPinData)||void 0===n?void 0:null===(l=n.metadata)||void 0===l?void 0:l.basics)||{};return(0,v.jsx)(x,{...i,pinId:e,listBlocks:u.listBlocks,keyValueBlocks:u.keyValueBlocks,graphqlRef:d,title:null!==(r=null==d?void 0:d.title)&&void 0!==r?r:"",templateType:null==d?void 0:null===(o=d.storyPinData)||void 0===o?void 0:null===(s=o.metadata)||void 0===s?void 0:s.templateType})}function w(e){return e.graphqlRef?(0,v.jsx)(P,{graphqlRef:e.graphqlRef,...e}):(0,v.jsx)(b,{...e})}},435183:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(883119),l=i(288889),a=i(898781),r=i(349700),o=i(623568),s=i(773285),d=i(780280),u=i(867820),c=i(52022),p=i(50286),h=i(785893);function _({isImagePinForUnauthOnTablet:e,onClickTitleOrDomain:t,pinCreditPrefix:i,pinDomain:_}){let{isAuthenticated:m}=(0,d.B)(),g=(0,a.ZP)(),y=(0,c.Z)(),v=(0,p.HG)(),{checkExperiment:f}=(0,s.F)(),x=m?f("auth_closeup_redesign").anyEnabled:f("unauth_closeup_redesign").anyEnabled,b=v?"start":"center",P=1,w=e?void 0:"bold",S=e?{textDecoration:"underline"}:{};x&&(b="start",P=i?1:0,w=void 0,S={textDecoration:"underline"});let k=(0,o._S)(_);return(0,h.jsx)(n.kC,{alignItems:"center",direction:"row",justifyContent:b,width:"100%",children:(0,r.nk)(g._('{{ pinCreditPrefix }} {{ pinCredit }}', 'tells the user where the pin is from in the form of Saved from website', 'tells the user where the pin is from in the form of Saved from website'),{pinCreditPrefix:(0,h.jsx)(n.xu,{display:"inlineBlock",children:(0,h.jsx)(n.xv,{inline:!0,size:l.n,children:i})},"pinCreditsPrefix"),pinCredit:k?(0,h.jsx)(n.xu,{display:"inlineBlock",marginStart:P,maxWidth:"60vw","data-test-id":"pin-domain-link",children:(0,h.jsx)(n.iP,{onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),y({action:"click",item:"pin-domain-link"}),(0,u.My)("mweb_pin_page.pin_link.clickthrouh"),m||(0,u.NC)("click_pin_closeup_link_clickthrough"),t()},tapStyle:"compress",children:(0,h.jsx)(n.xv,{size:l.n,weight:w,lineClamp:1,children:(0,h.jsx)("span",{style:S,children:_})},"pinLinkDomain")})},"pinCredits"):""})})}},266224:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h}),i(167912);var n,l=i(883119),a=i(356997),r=i(681669),o=i(898781),s=i(349700),d=i(19121),u=i(785893);let c=void 0!==n?n:n=i(781293);function p({inCollapsibleModulesExp:e,pin:t}){var i,n,r,c,p,h,_,m,g,y,v,f;let x;let b=(0,o.ZP)(),P=(0,d.Z)(),w=!((null===(i=t.board)||void 0===i?void 0:i.layout)!=="quick_creates"),S=P.id===(null===(n=t.pinner)||void 0===n?void 0:n.entityId);if(!S||w||!P.isAuth)return null;let{imageMediumUrl:k,username:j}=P||{};if(null!==(r=t.section)&&void 0!==r&&r.title&&t.section.slug){let e=`${null!==(c=null===(p=t.board)||void 0===p?void 0:p.url)&&void 0!==c?c:""}${t.section.slug}/`;x=(0,s.nk)(b._('{{ you }} {{ savedTo }} {{ sectionName }}', 'closeup.savedAttribution.section', 'Showing that you saved this pin to a section within a board on closeup'),{you:(0,u.jsx)(l.xu,{display:"inlineBlock",marginEnd:1,children:(0,u.jsx)(l.rU,{href:`/${j}`,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(l.xv,{size:"300",weight:"bold",children:b._('You', 'closeup.savedAttribution.user', 'This is the user')})},"author")},j),savedTo:(0,u.jsx)(l.xu,{children:(0,u.jsx)(l.xv,{size:"300",children:b._('saved to', 'closeup.savedAttribution.savedTo', 'saved to text')})},"saved-to"),sectionName:(0,u.jsx)(l.xu,{display:"inlineBlock",marginStart:1,children:(0,u.jsx)(l.rU,{href:e,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(l.xv,{size:"300",weight:"bold",lineClamp:1,children:null===(h=t.section)||void 0===h?void 0:h.title})},"section")},e)})}else x=(0,s.nk)(b._('{{ you }} {{ savedTo }} {{ boardName }}', 'closeup.savedAttribution.board', 'Indicating you saved this pin to a board on closeup'),{you:(0,u.jsx)(l.xu,{display:"inlineBlock",marginEnd:1,children:(0,u.jsx)(l.rU,{href:`/${j}`,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(l.xv,{inline:!0,size:"300",weight:"bold",children:b._('You', 'closeup.savedAttribution.user', 'This is the user')})},"author")},j),savedTo:(0,u.jsx)(l.xu,{children:(0,u.jsx)(l.xv,{size:"300",children:b._('saved to', 'closeup.savedAttribution.savedTo', 'saved to text')})},"saved-to"),boardName:(0,u.jsx)(l.xu,{display:"inlineBlock",marginStart:1,children:(0,u.jsx)(l.rU,{href:null!==(g=null===(y=t.board)||void 0===y?void 0:y.url)&&void 0!==g?g:"",rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(l.xv,{inline:!0,size:"300",weight:"bold",children:null!==(v=null===(f=t.board)||void 0===f?void 0:f.name)&&void 0!==v?v:""})},"author")},null!==(_=null===(m=t.board)||void 0===m?void 0:m.url)&&void 0!==_?_:"")});return(0,u.jsxs)(l.xu,{display:"flex",direction:"row",maxWidth:"100%",marginTop:e?0:12,paddingY:e?4:0,"data-test-id":"saved-attribution",children:[(0,u.jsx)(l.xu,{display:"flex",flex:"shrink","data-test-id":"saved-attribution-avatar",children:(0,u.jsx)(l.iP,{rounding:"circle",children:(0,u.jsx)(l.rU,{href:`/${j}`,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(a.qE,{size:"md",name:j,src:null!=k?k:""})},"profile")})}),(0,u.jsx)(l.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:(0,u.jsx)(l.xu,{"data-test-id":"saved-attribution-board-or-section",alignItems:"baseline",display:"flex",marginStart:2,children:x})})]})}function h({graphqlRef:e,inCollapsibleModulesExp:t,pinId:i}){let{data:n}=(0,r.sr)(c,e?{type:"graphqlRef",data:e}:{type:"deprecated",data:i},{type:"pin",useLegacyAdapter:e=>({board:e.board&&{layout:e.board.layout,name:e.board.name,url:e.board.url},pinner:e.pinner&&{entityId:e.pinner.id},section:e.section&&{slug:e.section.slug,title:e.section.title}})});return n&&(0,u.jsx)(p,{inCollapsibleModulesExp:t,pin:n})}},40995:(e,t,i)=>{"use strict";i.d(t,{Z:()=>w});var n,l=i(167912),a=i(883119),r=i(926275),o=i(313047),s=i(992750),d=i(773285),u=i(780280),c=i(867820),p=i(50286),h=i(63552),_=i(350118),m=i(698330),g=i(954063),y=i(785893);let v=({children:e,handleTap:t})=>t?(0,y.jsx)(h.Z,{onTouch:t,pressState:"compress",children:e}):e,f=void 0!==n?n:n=i(560728);function x({onClick:e,hasLink:t,forceSmallerHeading:i,textAlign:n,pinTitle:l,gridTitle:h,richSummaryDisplayName:_,richMetadataTitle:f,storyPinDataId:x,storyPinDataMetadataPinTitle:b,pinJoinVisualAnnotation:P,lineClamp:w,seoNoindexReason:S,seoTitle:k}){let j=(0,p.ZP)(),{isAuthenticated:A,isBot:C}=(0,u.B)(),D=(0,m.Tt)(),{checkExperiment:E}=(0,d.F)(),I=(0,r.Z)(null==D?void 0:D.created_at)&&!(null!=D&&D.is_matured_new_user),T=A?E("auth_closeup_redesign").anyEnabled:E("unauth_closeup_redesign").anyEnabled,F=(0,s.Ly)({pinTitle:l,gridTitle:h,richSummaryDisplayName:_,richMetadataTitle:f,storyPinDataId:x,storyPinDataMetadataPinTitle:b,pinJoinVisualAnnotation:P,seoNoindexReason:S,seoTitle:k}),z="desktop"===j?"start":"center";return T&&(z="start"),(0,y.jsx)(g.Z,{hash:"details",offset:-o.DEFAULT_HEIGHT,children:(0,y.jsx)(a.kC,{alignItems:"desktop"===j?"start":"center",direction:"column",justifyContent:"center",children:(0,y.jsx)(a.xu,{"data-test-id":"pinTitle",maxWidth:"100%",alignSelf:T?"start":"stretch",children:(0,y.jsx)(v,{handleTap:"desktop"!==j&&t?t=>{t.preventDefault(),t.stopPropagation(),(0,c.My)("mweb_pin_page.pin_title.click"),A||(0,c.NC)("unauth_click_pin_closeup_title"),e()}:null,children:(0,y.jsx)(a.X6,{align:n||z,accessibilityLevel:1,overflow:"breakWord",size:i||I?"400":"500",lineClamp:C?void 0:w,children:F})})})})})}function b(e){var t,i,n,a,r,o,s;let d=(0,l.useFragment)(f,e.graphqlRef);return(0,y.jsx)(x,{onClick:e.onClick,hasLink:e.hasLink,forceSmallerHeading:e.forceSmallerHeading,lineClamp:e.lineClamp,textAlign:e.textAlign,pinId:e.pinId,pinTitle:null==d?void 0:d.title,gridTitle:null==d?void 0:d.gridTitle,richSummaryDisplayName:null!==(t=null==d?void 0:null===(i=d.richSummary)||void 0===i?void 0:i.displayName)&&void 0!==t?t:"",richMetadataTitle:null!==(n=null==d?void 0:null===(a=d.richMetadata)||void 0===a?void 0:a.title)&&void 0!==n?n:"",storyPinDataId:null==d?void 0:d.storyPinDataId,storyPinDataMetadataPinTitle:null==d?void 0:null===(r=d.storyPinData)||void 0===r?void 0:null===(o=r.metadata)||void 0===o?void 0:o.pinTitle,pinJoinVisualAnnotation:(null==d?void 0:null===(s=d.pinJoin)||void 0===s?void 0:s.visualAnnotation)||void 0,seoNoindexReason:null==d?void 0:d.seoNoindexReason,seoTitle:null==d?void 0:d.seoTitle})}function P(e){var t,i,n,l,a,r,o;let s=(0,_.S6)()(e.pinId||"");return s?(0,y.jsx)(x,{onClick:e.onClick,hasLink:e.hasLink,forceSmallerHeading:e.forceSmallerHeading,lineClamp:e.lineClamp,textAlign:e.textAlign,pinId:e.pinId,pinTitle:s.title,gridTitle:s.grid_title,richSummaryDisplayName:null!==(t=null===(i=s.rich_summary)||void 0===i?void 0:i.display_name)&&void 0!==t?t:"",richMetadataTitle:null!==(n=null===(l=s.rich_metadata)||void 0===l?void 0:l.title)&&void 0!==n?n:"",storyPinDataId:s.story_pin_data_id,storyPinDataMetadataPinTitle:null===(a=s.story_pin_data)||void 0===a?void 0:null===(r=a.metadata)||void 0===r?void 0:r.pin_title,pinJoinVisualAnnotation:null===(o=s.pin_join)||void 0===o?void 0:o.visual_annotation,seoNoindexReason:s.seo_noindex_reason,seoTitle:s.seo_title}):null}function w(e){return e.graphqlRef?(0,y.jsx)(b,{...e}):(0,y.jsx)(P,{...e})}},706443:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(444445),a=i(785893);let r=function({marginStart:e=l.D6}){return(0,a.jsx)(n.xu,{height:1,width:"100vw",dangerouslySetInlineStyle:{__style:{marginLeft:`${-(4*e)}px`,backgroundColor:"#E9E9E9"}}})}},358381:(e,t,i)=>{"use strict";i.d(t,{Z:()=>k});var n,l=i(667294),a=i(702664),r=i(167912),o=i(883119),s=i(112690),d=i(356997),u=i(898781),c=i(892819),p=i(349700),h=i(773285),_=i(780280),m=i(819354),g=i(815613),y=i(461773),v=i(350118),f=i(698330),x=i(785893);let b=void 0!==n?n:n=i(521835);function P({hideFollowButton:e,hideFollowerCount:t,viewerId:i,justifyContent:n,avatarSize:r,seeMoreButton:v,graphqlRef:b,pinId:P,pinImageSignature:w,userData:S,clientTrackingParams:k}){let j=(0,u.ZP)(),A=(0,c.Z)(),{checkExperiment:C}=(0,h.F)(),{isAuthenticated:D}=(0,_.B)(),E=D?C("auth_closeup_redesign").anyEnabled:C("unauth_closeup_redesign").anyEnabled,{id:I="",image_medium_url:T,follower_count:F,followed_by_me:z,username:R="",is_ads_only_profile:L=!1,ads_only_profile_site:M=""}=S,Z=(0,f.mN)()(I),B=(0,a.useDispatch)(),O=(0,l.useRef)(),N=(0,s.Z)(),{locale:K}=(0,_.B)(),[U,H]=(0,l.useState)(Z?Z.explicitly_followed_by_me:z),V=L&&M,G=V&&M?M:`/${R}/`;return(0,x.jsxs)(o.xu,{display:"flex",direction:"row","data-test-id":"official-user-attribution",alignItems:"center",justifyContent:n||"center",children:[(0,x.jsx)(o.kC,{alignItems:"stretch",justifyContent:"start",flex:"shrink",children:(0,x.jsx)(o.Tg,{href:G,rel:V?"nofollow":"none",target:V?"blank":null,onTap:()=>{V&&N({event_type:9371,element:13382,component:123})},children:(0,x.jsx)(d.qE,{name:R,size:r||"md",src:null!=T?T:""})})}),(0,x.jsxs)(o.xu,{display:"flex",direction:"column",marginStart:2,justifyContent:"center",minWidth:0,children:[(0,x.jsx)(m.Z,{fontWeight:"bold",graphqlRef:b,pinId:P}),!t&&(0,x.jsx)(o.xv,{size:E?"200":"300",children:(0,p.nk)(j._('{{ followerCount }} followers', 'closeup.officialUser.followerCount', 'Official user\'s follower count'),{followerCount:A(K,F||0,{shortform:!0,shortform_maximum_fraction_digits:0})})})]}),v,!e&&(0,x.jsx)(l.Fragment,{children:(0,x.jsx)(o.xu,{marginStart:"auto",ref:O,children:(0,x.jsx)(g.Z,{followEventType:45,id:I,isFollowed:U,isUserFollowButton:!0,isUserMe:i===I,onFollow:e=>{H(!0),B((0,y.ZN)(e,null,k))},onUnfollow:e=>{H(!1),B((0,y.fv)(e,null,k))},pinKey:null!=b?b:null,size:"lg",shouldUseLegoColors:!0,unfollowEventType:46,viewType:3,auxData:P&&w?{pin_id:P,image_signature:w}:void 0,clientTrackingParams:k})})})]})}function w({graphqlRef:e,pinId:t,...i}){var n,a,o,s,d,u;let c=(0,r.useFragment)(b,e),p=c.closeupAttribution;return p&&c?(0,x.jsx)(P,{...i,pinId:t,pinImageSignature:null!==(n=c.imageSignature)&&void 0!==n?n:void 0,userData:{id:null!==(a=p.entityId)&&void 0!==a?a:void 0,image_medium_url:null!==(o=p.imageMediumUrl)&&void 0!==o?o:void 0,follower_count:null!==(s=p.followerCount)&&void 0!==s?s:void 0,followed_by_me:null!==(d=p.followedByMe)&&void 0!==d?d:void 0,username:null!==(u=p.username)&&void 0!==u?u:void 0,is_ads_only_profile:!!p.isAdsOnlyProfile,ads_only_profile_site:p.adsOnlyProfileSite},graphqlRef:c}):(0,x.jsx)(l.Fragment,{})}function S({pinId:e,...t}){var i;let n=(0,v.S6)()(e),a=null==n?void 0:n.closeup_attribution;return a&&n?(0,x.jsx)(P,{...t,pinId:e,pinImageSignature:null!==(i=n.image_signature)&&void 0!==i?i:void 0,userData:a}):(0,x.jsx)(l.Fragment,{})}function k({graphqlRef:e,...t}){return e?(0,x.jsx)(w,{...t,graphqlRef:e}):(0,x.jsx)(S,{...t})}},819354:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n,l=i(667294),a=i(167912),r=i(883119),o=i(112690),s=i(512176),d=i(350118),u=i(785893);let c=void 0!==n?n:n=i(347806);function p({getDisplayName:e,fontWeight:t="normal",isVerifiedMerchant:i,fullName:n="",verifiedIdentityVerified:l,username:a="",isAdsOnlyProfile:d=!1,adsOnlyProfileSite:c="",onMouseDown:p}){let h=(0,o.Z)(),_=d&&c,m=_&&c?c:`/${a}/`;return(0,u.jsx)(r.Tg,{href:m,rel:_?"nofollow":"none",target:_?"blank":null,onMouseDown:()=>{p&&p()},onTap:()=>{_&&h({event_type:9371,element:13382,component:123})},children:(0,u.jsxs)(r.kC,{alignItems:"center",direction:"row",justifyContent:"start",minWidth:0,children:[(0,u.jsx)(r.xu,{"data-test-id":"creator-profile-name",children:(0,u.jsx)(r.xv,{size:"300",lineClamp:1,weight:t,children:e?e(n):n})}),(i||l)&&(0,u.jsx)(r.xu,{marginStart:1,marginEnd:2,children:(0,u.jsx)(s.Z,{showVerifiedIdentity:!i,isVerifiedMerchant:i,size:"sm"})})]})})}function h(e){var t,i,n,r,o,s;let d=(0,a.useFragment)(c,e.graphqlRef),h=null==d?void 0:d.closeupAttribution;return h?(0,u.jsx)(p,{getDisplayName:e.getDisplayName,fontWeight:e.fontWeight,isVerifiedMerchant:null!==(t=h.isVerifiedMerchant)&&void 0!==t?t:void 0,fullName:null!==(i=h.fullName)&&void 0!==i?i:void 0,verifiedIdentityVerified:null!==(n=null===(r=h.verifiedIdentity)||void 0===r?void 0:r.verified)&&void 0!==n?n:void 0,username:null!==(o=h.username)&&void 0!==o?o:void 0,isAdsOnlyProfile:null!==(s=h.isAdsOnlyProfile)&&void 0!==s&&s,adsOnlyProfileSite:h.adsOnlyProfileSite,onMouseDown:e.onMouseDown}):(0,u.jsx)(l.Fragment,{})}function _(e){var t;let i=(0,d.S6)()(e.pinId),n=null==i?void 0:i.closeup_attribution;return n?(0,u.jsx)(p,{getDisplayName:e.getDisplayName,fontWeight:e.fontWeight,isVerifiedMerchant:n.is_verified_merchant,fullName:n.full_name,verifiedIdentityVerified:null===(t=n.verified_identity)||void 0===t?void 0:t.verified,username:n.username,isAdsOnlyProfile:n.is_ads_only_profile,adsOnlyProfileSite:n.ads_only_profile_site,onMouseDown:e.onMouseDown}):(0,u.jsx)(l.Fragment,{})}function m(e){return e.graphqlRef?(0,u.jsx)(h,{...e}):(0,u.jsx)(_,{...e})}},350948:(e,t,i)=>{"use strict";i.d(t,{IS:()=>w,Ys:()=>P,ZP:()=>I,j$:()=>j});var n,l=i(667294),a=i(167912),r=i(883119),o=i(485710),s=i(319530),d=i(444445),u=i(898781),c=i(349700),p=i(773285),h=i(923297),_=i(780280),m=i(50286),g=i(29066),y=i(706443),v=i(350118),f=i(252417),x=i(785893);let b=void 0!==n?n:n=i(189333),P=({m:e,h:t,rm:i,rh:n},l,a=!1)=>e&&(!t||n<=0)?a?(0,c.nk)(l._('{{mins}}min', 'closeup.makeRecipeTimeText.minutes', 'number showing the minutes to complete a recipe'),{mins:i.toString()}):(0,c.nk)(l.ngettext('{{mins}} minute', '{{mins}} minutes', i, 'number showing the minutes to complete a recipe', 'number showing the minutes to complete a recipe'),{mins:i.toString()}):t?a?(0,c.nk)(l._('{{hrs}}hr {{mins}}min', 'closeup.makeRecipeTimeText.hours', 'hrs: number showing the hours to complete a recipe, mins: number showing the minutes to complete a recipe'),{hrs:t.toString(),mins:e.toString()}):(0,c.nk)(l.ngettext('{{hrs}} hour', '{{hrs}} hours', n, 'number showing the hours to complete a recipe', 'number showing the hours to complete a recipe'),{hrs:n.toString()}):null,w=({m:e,h:t,rm:i,rh:n,i18n:l})=>e&&(!t||n<=0)?(0,c.nk)(l._('{{mins}}m', 'number showing minutes to complete a recipe', 'number showing mnutes to complete a recipe'),{mins:i.toString()}):t?(0,c.nk)(l._('{{hrs}}h {{mins}}m', 'number showing hours to complete a recipe', 'number showing hours to complete a recipe'),{hrs:t.toString(),mins:e.toString()}):null,S=(e,t)=>{let i=e&&e.length>0&&e.join(", "),n=t&&t.summary;return i&&n?`${i} • ${n}`:i||n},k=e=>e?e.reduce((e,t)=>{var i,n;return e+(null!==(i=null===(n=t.ingredients)||void 0===n?void 0:n.length)&&void 0!==i?i:0)},0):0,j=({displayCookTime:e,i18n:t,isShortened:i})=>P((0,h.u)(e),t,i);function A({category:e,ingredients:t,textSize:i="300"}){return(0,x.jsxs)(r.xu,{marginBottom:4,children:[e&&(0,x.jsx)(r.xu,{children:(0,x.jsx)(r.xv,{weight:"bold",size:i,children:e})}),(null!=t?t:[]).map(e=>{var t,n;return(0,x.jsx)(r.xu,{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",marginTop:1,children:(0,x.jsxs)(r.xv,{size:i,children:["• ",e.amt||null," ",e.name]})},`${null!==(t=e.name)&&void 0!==t?t:""}-${null!==(n=e.name)&&void 0!==n?n:""}`)})]})}let C=({categorizedIngredients:e,displayCookTime:t,image:i,ingredientCount:n,ingredientsDescription:a,name:c})=>{let h=(0,u.ZP)(),{checkExperiment:v}=(0,p.F)(),{isAuthenticated:b}=(0,_.B)(),P=(0,m.ZP)(),w=b?v("auth_closeup_redesign").anyEnabled:v("unauth_closeup_redesign").anyEnabled,S="desktop"!==P&&["no_collapse_by_default","collapse_by_default"].includes(v(b?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group),k=t?j({displayCookTime:t,i18n:h,isShortened:!0}):null;if(!k&&!n&&!a)return null;let C=h._('Ingredients', 'Closeup.PinRecipe.ingredientsLabel', 'Ingredients category heading for recipes');return(0,x.jsxs)(r.xu,{marginTop:f.dP,children:[S&&(0,x.jsx)(y.Z,{marginStart:d.D6+g.xh}),(0,x.jsxs)(r.xu,{"data-test-id":"pin-recipe-container",direction:"column",display:"flex",marginTop:w?4:12,marginBottom:w?0:4,marginEnd:w?0:6,overflow:"hidden",children:[(0,x.jsx)("meta",{content:c,itemProp:"name"}),i&&(0,x.jsx)("meta",{content:i,itemProp:"image"}),(0,x.jsx)(r.xu,{"data-test-id":"one-pin-layout",children:Array.isArray(e)&&e.length>0&&(0,x.jsx)(o.Z,{heading:C,children:S?e.map(({category:e,ingredients:t},i)=>{let n=`ingredient-${i}`;return(0,x.jsx)(l.Fragment,{children:(0,x.jsx)(r.xu,{marginBottom:4,children:(0,x.jsx)(A,{category:e,ingredients:t,textSize:"300"})})},n)}):(0,x.jsx)(s.Z,{children:e.map(({category:e,ingredients:t},i)=>{let n=`ingredient-${i}`;return(0,x.jsx)(l.Fragment,{children:(0,x.jsx)(r.xu,{marginBottom:4,children:(0,x.jsx)(A,{category:e,ingredients:t,textSize:"300"})})},n)})})})})]})]})},D=({graphqlRef:e})=>{let t=(0,a.useFragment)(b,e),{imageSpec_474x:i,richMetadata:n}=t,l=null==n?void 0:n.recipe,r=null==l?void 0:l.categorizedIngredients,o=k(r),s=(null==l?void 0:l.categorizedIngredients)&&S(l.diets,l.servingsSummary);return(0,x.jsx)(C,{categorizedIngredients:r,displayCookTime:null==l?void 0:l.displayCookTime,image:null==i?void 0:i.url,ingredientCount:o,ingredientsDescription:s,name:null==l?void 0:l.name})},E=({pinId:e})=>{var t,i;let n=(0,v.S6)()(e),l=(null==n?void 0:null===(t=n.rich_metadata)||void 0===t?void 0:t.recipe)||{},{display_cook_time:a,name:r,categorized_ingredients:o,diets:s,servings_summary:d}=l,u=k(o),c=o&&S(s,d);return(0,x.jsx)(C,{categorizedIngredients:o,displayCookTime:a,image:(null===(i=((null==n?void 0:n.images)||{})["474x"])||void 0===i?void 0:i.url)||"",ingredientCount:u,ingredientsDescription:c,name:r})};function I({graphqlRef:e,pinId:t}){return e?(0,x.jsx)(D,{graphqlRef:e}):(0,x.jsx)(E,{pinId:t})}},635821:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n,l=i(167912),a=i(883119),r=i(898781),o=i(349700),s=i(773285),d=i(561195),u=i(780280),c=i(50286),p=i(350948),h=i(350118),_=i(785893);let m=void 0!==n?n:n=i(394384);function g({boldText:e=!0,marginTop:t=3,onlyShowNumber:i=!1,textSize:n="md",width:l=12,isWideViewport:h,ratingBestRating:m,ratingRatingValue:g,ratingReviewCount:y,hasPinRecipe:v,displayCookTime:f,dietList:x,servingSummaryServes:b}){let P=(0,r.ZP)(),{checkExperiment:w}=(0,s.F)(),{isAuthenticated:S}=(0,u.B)(),k=S?w("auth_closeup_redesign").anyEnabled:w("unauth_closeup_redesign").anyEnabled,j=(0,c.ZP)(),A=(0,o.nk)(P.ngettext('{{review_count}} rating', '{{review_count}} ratings', null != y ? y : 0, 'closeup.recipe.ratings', 'number of ratings for this recipe pin'),{review_count:y}),C=f?(0,p.j$)({displayCookTime:f,i18n:P,isShortened:!0}):null,D=Number(b),E=(0,o.nk)(P.ngettext('{{serves}} serving', '{{serves}} servings', Number.isNaN(D) ? 0 : D, 'closeup.recipe.serves', 'number of servings for this recipe pin'),{serves:b}).join(""),I=[x,E].filter(Boolean),T=(0,o.nk)(P._('{{ ratingStars }} {{ count }}', 'closeup.recipe.rating', 'recipe ratings and count'),{ratingStars:(0,_.jsx)(d.Z,{rating:g,max_rating:m,width:l},"ratingStars"),count:(0,_.jsx)(a.xv,{inline:!0,size:n,weight:e?"bold":"normal",children:i?y:A},"ratingCount")});v&&(T=(0,_.jsx)(a.xu,{"data-test-id":"CookTime",children:(0,o.nk)(P._('{{ recipeText }} {{cookTime}} {{ pinRecipe }}', 'closeup recipe cooktime', 'This is the bar under the title which shows these three things. recipeText: shows the rating of the Pin. cookTime: shows the amount of time it takes to prepare the food. pinRecipe: includes any dietary restrictions and how many servings the Pin serves.'),{recipeText:(0,_.jsx)(a.xv,{inline:!0,children:T},"recipeText"),cookTime:(0,_.jsxs)(a.xv,{inline:!0,children:[C&&"\xb7 ",C]},"cookTimeText"),pinRecipe:(0,_.jsx)(a.xv,{inline:!0,children:I.length>0&&(0,_.jsx)(a.xv,{inline:!0,children:` \xb7 ${I.join(" \xb7 ")}`})},"pinRecipe")})}));let F=h||"phone"!==j?"start":"center";return k&&(F="start"),(0,_.jsx)(a.xu,{alignItems:"baseline","data-test-id":"PinRecipeContainer",display:v&&"phone"===j?"block":"flex",justifyContent:"start",marginTop:t,children:(0,_.jsx)(a.xv,{align:F,inline:!0,children:T})})}let y=({graphqlRef:e,...t})=>{var i,n,a,r;let o=(0,l.useFragment)(m,e),{richMetadata:s}=o,d=null==s?void 0:s.recipe;return(0,_.jsx)(g,{...t,displayCookTime:null==d?void 0:d.displayCookTime,dietList:((null==d?void 0:d.diets)||[]).join(", "),servingSummaryServes:null==d?void 0:null===(i=d.servingsSummary)||void 0===i?void 0:i.serves,hasPinRecipe:!!(null!=s&&s.recipe),ratingBestRating:null==d?void 0:null===(n=d.aggregateRating)||void 0===n?void 0:n.bestRating,ratingRatingValue:null==d?void 0:null===(a=d.aggregateRating)||void 0===a?void 0:a.ratingValue,ratingReviewCount:null==d?void 0:null===(r=d.aggregateRating)||void 0===r?void 0:r.reviewCount})},v=({pinId:e,...t})=>{var i,n,l,a,r;let o=(0,h.S6)()(e),s=(null==o?void 0:null===(i=o.rich_metadata)||void 0===i?void 0:i.recipe)||{},{diets:d,display_cook_time:u,servings_summary:c}=s;return(0,_.jsx)(g,{...t,displayCookTime:u,dietList:(d||[]).join(", "),servingSummaryServes:null==c?void 0:c.serves,hasPinRecipe:!!(null!=o&&null!==(n=o.rich_metadata)&&void 0!==n&&n.recipe),ratingBestRating:null===(l=s.aggregate_rating)||void 0===l?void 0:l.best_rating,ratingRatingValue:null===(a=s.aggregate_rating)||void 0===a?void 0:a.rating_value,ratingReviewCount:null===(r=s.aggregate_rating)||void 0===r?void 0:r.review_count})};function f({graphqlRef:e,pinId:t,...i}){return e?(0,_.jsx)(y,{...i,graphqlRef:e}):(0,_.jsx)(v,{...i,pinId:t})}},178307:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(883119),l=i(541776),a=i(513578),r=i(947599),o=i(667679),s=i(867820),d=i(664569),u=i(785893);function c(e){let{viewParameter:t,isStoryPin:i}=e,c=(0,o.Z)();return(0,u.jsx)(r.Z,{fallback:null,children:(0,u.jsx)(n.xu,{marginTop:4,children:(0,u.jsx)(a.Z,{commentWarningModalState:l.A9.NONE,dismissCommentWarningModal:()=>{},objectType:d.o.pin,onEnter:()=>{(0,s.My)(i?"dweb.unauth.comment_compose.story_pin.tap":"dweb.unauth.comment_compose.tap"),c({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_comment_composer",desktopOptions:{modalType:"login",modalOptions:{source:"commentComposer",container:"closeup"}}})},statusType:"textStaticDisplay",viewParameter:t})})})}},745162:(e,t,i)=>{"use strict";function n({isImagePinForUnauthOnTablet:e}){return e?3:2}i.d(t,{Z:()=>n})},298024:(e,t,i)=>{"use strict";i.d(t,{Ph:()=>l,Re:()=>r,si:()=>a});var n=i(50286);let l=(e,t)=>e&&!t?e:null,a=()=>{let e=(0,n.ZP)();return"phone"!==e?180:130},r=()=>{let e=(0,n.ZP)();return"phone"!==e?180:80}},361115:(e,t,i)=>{"use strict";i.d(t,{J1:()=>d,Uw:()=>s,Yg:()=>c,ib:()=>h});var n=i(773285),l=i(780280),a=i(50286),r=i(67347);let o=()=>{let{isAuthenticated:e,isBot:t}=(0,l.B)();return t?"bot":e?"auth":"unauth"},s=({isDesktop:e,viewerType:t})=>"bot"===t?"seo_graphql_pin_page":"auth"===t?e?"auth_dweb_graphql_pin_page":"auth_mweb_graphql_pin_page":e?"unauth_dweb_graphql_pin_page":"unauth_mweb_graphql_pin_page",d=()=>{let e=(0,a.HG)(),t=o();return s({isDesktop:e,viewerType:t})},u=({checkExperiment:e,isAuthMweb:t})=>{let i=t&&e("auth_mweb_graphql_pin_page",{dangerouslySkipActivation:!0}).group;return i?e=>(0,r.nP)("webapp.graphql.debug_auth_mweb_graphql_pin_page",{sampleRate:1,tags:{event:e,group:i}}):null},c=()=>{let{isAuthenticated:e}=(0,l.B)(),t=(0,a.HG)(),{checkExperiment:i}=(0,n.F)();return u({checkExperiment:i,isAuthMweb:e&&!t})},p=0,h=({checkExperiment:e,isAuthMweb:t})=>{let i=u({checkExperiment:e,isAuthMweb:t});i&&(p+=1)<10&&i(`repin_${p}`)}},44004:(e,t,i)=>{"use strict";i.d(t,{Z:()=>j,w:()=>P});var n,l=i(667294),a=i(702664);i(167912);var r=i(616550),o=i(442279),s=i(883119),d=i(44715),u=i(681669),c=i(784590),p=i(50286),h=i(829407),_=i(19121),m=i(139405),g=i(664569),y=i(114020),v=i(600147),f=i(492583),x=i(698330),b=i(785893);let P=({aggregatedPinDataId:e,featuredCommentIds:t,featuredDidItIds:i,isDesktop:n,isReversed:l=!1,noCache:a=!1})=>({name:"UnifiedCommentsResource",options:{aggregated_pin_id:e,comment_featured_ids:t,did_it_featured_ids:i,page_size:n?10:25,redux_normalize_feed:!0,is_reversed:l},noCache:a}),w=(0,o.P1)((e,t,i)=>i,({feeds:e},t)=>e[`${f.Z.UNIFIED_COMMENTS}:${t||""}`],({didItData:e})=>e,(e,t,i,n)=>n,(e,t,i,n)=>(null==t?void 0:t.map(({id:t,type:l})=>{var a,r;let o="aggregatedcomment"===l.toLowerCase()?e[t]:i[t];if(!o)return;let s="string"==typeof o.user?null!==(a=n[o.user])&&void 0!==a?a:{}:null!==(r=o.user)&&void 0!==r?r:{};return{...o,user:null!=s?s:{}}}).filter(e=>e))||[]),S=void 0!==n?n:n=i(90838),k=({aggregatedPinDataId:e,closeupAttributionId:t,closeupAttributionUsername:i,commentsDisabled:n,hasComments:o,isReadOnly:u,pinId:f,isVideo:S,pinnerId:k,scrollContainer:j,setIsComposingNewComment:A=()=>{},storyPinDataId:C,viewParameter:D,toggleComposerForReply:E,openMwebOverflowMenu:I})=>{let{comment_id:T}=(0,r.useParams)(),F=(0,a.useDispatch)(),z=(0,p.HG)(),R=(0,_.Z)(),L=(0,l.useRef)(o),M=(0,c.Z)(L.current&&e?P({aggregatedPinDataId:e,featuredCommentIds:T?[T]:[],isDesktop:z}):null),{removeUnauthCommentPinId:Z,unauthCommentPinId:B}=(0,y.C)(),O=(0,m.lV)(),{toggleAggregatedCommentHelpful:N,toggleAggregatedCommentLike:K}=(0,m.nf)(),U=(0,x.kW)(),H=(0,a.useSelector)(t=>w(t,e,O,U)),[V,G]=(0,l.useState)(void 0),W=()=>{A(!0)};return(0,h.Z)(()=>{!z&&R.isAuth&&B&&f&&B===f&&(W(),Z())}),(0,l.useEffect)(()=>{let e=()=>{let t=!!j&&j.scrollTop+j.clientHeight+10>=j.scrollHeight;M&&!M.isFetching&&(M.isAtEnd?null==j||j.removeEventListener("scroll",e):t&&M.fetchMore())};return null==j||j.addEventListener("scroll",e),()=>{null==j||j.removeEventListener("scroll",e)}},[M,j]),(0,b.jsx)(l.Fragment,{children:(0,b.jsx)(s.xu,{display:"flex",marginTop:z?6:0,width:"100%",children:(0,b.jsx)(d.Z,{comments:H,commentsDisabled:n,isDesktop:z,isReadOnly:u,isLoaded:M&&M.isLoaded||!o,openOverflowMenu:I,toggleReplyComposer:E,parentId:null!=e?e:"",parentType:g.o.pin,toggleHelpful:(e,t,i)=>()=>{i?F((0,v.YH)({didItDataId:e,isMarkedHelpfulByMe:t})):N({aggregatedCommentId:e,isMarkedHelpfulByMe:t})},toggleLike:(e,t,i)=>()=>{i?F((0,v.wH)({didItDataId:e,isLikedByMe:t})):K({aggregatedCommentId:e,isLikedByMe:t})},userAvatarSize:"sm",aggregatedPinDataId:e,closeupAttributionId:t,closeupAttributionUsername:i,pinId:f,isVideo:S,storyPinDataId:C,pinnerId:k,showReactionListForComment:G,reactionListCommentId:V,viewParameter:D})})})};function j({pinKey:e,...t}){var i,n,l,a,r,o,s,d,c;let{data:p}=(0,u.sr)(S,e,{type:"pin",useLegacyAdapter:e=>{var t,i,n;return{aggregatedPinData:e.aggregated_pin_data&&{commentCount:e.aggregated_pin_data.comment_count,didItData:e.aggregated_pin_data.did_it_data&&{imagesCount:e.aggregated_pin_data.did_it_data.images_count},entityId:null!==(t=e.aggregated_pin_data.id)&&void 0!==t?t:""},closeupAttribution:e.closeup_attribution&&{entityId:null!==(i=e.closeup_attribution.id)&&void 0!==i?i:"",username:e.closeup_attribution.username},commentsDisabled:e.comments_disabled,doneByMe:e.done_by_me,entityId:e.id,pinner:e.pinner&&{entityId:e.pinner.id},storyPinData:e.story_pin_data&&{entityId:null!==(n=e.story_pin_data.id)&&void 0!==n?n:""},videos:e.videos&&{videoList:e.videos.video_list&&{__typename:"VideoList"}}}}}),h=((null==p?void 0:null===(i=p.aggregatedPinData)||void 0===i?void 0:i.commentCount)||0)+((null==p?void 0:null===(n=p.aggregatedPinData)||void 0===n?void 0:null===(l=n.didItData)||void 0===l?void 0:l.imagesCount)||0);return(0,b.jsx)(k,{aggregatedPinDataId:null==p?void 0:null===(a=p.aggregatedPinData)||void 0===a?void 0:a.entityId,closeupAttributionId:null==p?void 0:null===(r=p.closeupAttribution)||void 0===r?void 0:r.entityId,closeupAttributionUsername:null==p?void 0:null===(o=p.closeupAttribution)||void 0===o?void 0:o.username,commentsDisabled:null==p?void 0:p.commentsDisabled,disablePhotoCommentSelection:!!(null!=p&&p.doneByMe),hasComments:h>0&&!(null!=p&&p.commentsDisabled),isVideo:!!(null!=p&&null!==(s=p.videos)&&void 0!==s&&s.videoList),pinId:null==p?void 0:p.entityId,pinnerId:null==p?void 0:null===(d=p.pinner)||void 0===d?void 0:d.entityId,storyPinDataId:null==p?void 0:null===(c=p.storyPinData)||void 0===c?void 0:c.entityId,...t})}},114020:(e,t,i)=>{"use strict";i.d(t,{C:()=>o,p:()=>s});var n=i(667294),l=i(425288),a=i(785893);let{Provider:r,useHook:o}=(0,l.Z)("Session");function s({children:e}){let[t,i]=(0,n.useState)(void 0),l=(0,n.useCallback)(()=>i(void 0),[]),o=(0,n.useMemo)(()=>({unauthCommentPinId:t,setUnauthCommentPinId:i,removeUnauthCommentPinId:l}),[t,l]);return(0,a.jsx)(r,{value:o,children:e})}},435497:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(667294),l=i(883119),a=i(729884),r=i(407043),o=i(444445),s=i(564194),d=i(391254),u=i(829407),c=i(785893);function p({index:e,length:t,showBadge:i}){return(0,c.jsx)(l.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 l.Ry(1),dangerouslySetInlineStyle:{__style:{opacity:i?.8:0,transition:"opacity .3s"}},children:(0,c.jsx)(l.xv,{color:"inverse",children:`${(null!=e?e:0)+1}/${t}`})})}let h=({index:e})=>{let[t,i]=(0,n.useState)(!0),l=(0,n.useRef)(),a=(0,n.useRef)();return(0,n.useEffect)(()=>(l.current=setTimeout(()=>{i(!1)},3e3),()=>{clearTimeout(l.current)}),[]),(0,n.useEffect)(()=>{if(!a.current){a.current=e;return}clearTimeout(l.current),i(!0)},[e]),{showBadge:t}};var _=i(455024),m=i(350118);let g=`
269
+ .horizontal-scroll-container {
270
+ -ms-overflow-style: none;
271
+ scrollbar-width: none;
272
+ }
273
+ ::-webkit-scrollbar {
274
+ display: none;
275
+ }`;function y(e){var t,i;let{children:y,componentType:v,containerRef:f,contextLogData:x,disableTransition:b,gap:P=0,height:w,id:S,impressionType:k,index:j,shouldBeDragCarousel:A,showCarouselBadge:C,styleOverrides:D,slideWidth:E,view:I,viewParameter:T,widthRatio:F=1}=e,{showBadge:z}=h({index:j}),{logContextEvent:R}=(0,r.v)(),L=(0,m.S6)()(S),M=(0,n.useRef)(),Z=(0,n.useRef)(),B=(0,n.useRef)(0),O=(0,n.useRef)();if((0,u.Z)(()=>{let e=Z.current;if(!e)return;let t=()=>{var e,t;let i=B.current,n=-(null!==(e=null===(t=O.current)||void 0===t?void 0:t.getBoundingClientRect().x)&&void 0!==e?e:0);Math.abs(i-n)>=10&&R({component:v,event_type:"right"==(i<n?"right":"left")?9315:9316,view_type:I,view_parameter:T}),B.current=n};return A&&e.addEventListener("touchend",t),()=>{A&&e.removeEventListener("touchend",t)}}),F>1||F<0)throw Error("widthRatio should be between 0 and 1 inclusive");let N=Math.floor(E*F),K=n.Children.toArray(y),U=K.length*N,H=(null===(t=f.current)||void 0===t?void 0:t.clientWidth)||U,V=null!==(i=null==D?void 0:D.justifyContent)&&void 0!==i?i:H>U?"center":"start";return(0,c.jsx)("div",{className:"BoardMoreIdeasRep"===k?"moreIdeasBoardRepCarousel":"",children:(0,c.jsxs)(l.xu,{display:"flex",justifyContent:V,alignItems:"center",overflow:"hidden","data-test-id":"carousel-pin",width:A?"100vw":void 0,children:[C&&(0,c.jsx)(p,{length:K.length,index:j,showBadge:z}),"BoardMoreIdeasRep"!==k&&(0,c.jsx)(a.P,{pinKey:null!=L?{type:"deprecated",data:L}:null,children:e=>{var t,i;return(0,c.jsx)(s.Z,{carouselData:e&&{...e,type:"canonical"},contextLogData:x,trackCarousel:!0,impressionType:"Pin",loggingId:S,slotIndex:j,viewParameter:null!=T?T:72,viewType:null!=I?I:1,children:(0,c.jsx)(l.xu,{height:null!==(t=null!=w?w:null===(i=M.current)||void 0===i?void 0:i.clientHeight)&&void 0!==t?t:1,overflow:"hidden",position:"absolute",width:E})},`carousel-impression-key-${j}`)}}),A&&(0,c.jsx)(d.Z,{unsafeCSS:g}),(0,c.jsx)("div",{className:"horizontal-scroll-container",style:{overflowX:A?"scroll":"visible",paddingLeft:A?`${o.yt}px`:void 0,paddingRight:A?`${o.yt}px`:void 0,display:"flex",flexDirection:"row",position:"relative",scrollbarWidth:0,transition:A||b?void 0:"left .3s",left:!A&&(0,_.CU)({slotWidth:N,gap:P,numberOfSlides:K.length,index:j,containerWidth:H})},ref:Z,children:K.map((e,t)=>{let i=t===K.length-1,n=Math.ceil(P/4),a=0;n>=-12&&n<=12&&(a=n);let r=(0,c.jsx)(l.xu,{marginEnd:i?0:a,"data-test-id":`carousel-img-${t}`,"data-carousel-indicator":"carousel-card",height:null!=w?w:void 0,ref:e=>{M.current=e,0===t&&(O.current=e)},width:N,children:e},`carousel-slot-${S}-${t}`);if("BoardMoreIdeasRep"===k){let i=e.props,n={total_object_count:null==i?void 0:i.story.objects.length,storyType:null==i?void 0:i.story.story_type,boardIdStr:null==i?void 0:i.item.board_id,slotIndex:null==i?void 0:i.slotIndex,story_id:null==i?void 0:i.story.id};return(0,c.jsx)(s.Z,{componentType:v,contextLogData:n,impressionAuxFields:n,impressionType:null!=k?k:"Pin",loggingId:S,slotIndex:t,viewParameter:null!=T?T:72,viewType:null!=I?I:1,children:r},`carousel-slot-${S}-${t}`)}return r})})]})})}},356725:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var n,l=i(702664);i(167912);var a=i(883119),r=i(729884),o=i(357998),s=i(966676),d=i(721782),u=i(447948),c=i(350118),p=i(785893);let h=void 0!==n?n:n=i(603239);function _({carouselData:e,carouselIndex:t,componentType:i,contextLogData:n,handleCarouselSwipe:_,isCloseup:m,isEditMode:g,pinKey:y,viewParameter:v,viewType:f,variant:x}){var b;let P;let w=(0,c.S6)();if(null==y||"graphqlRef"===y.type)P=y;else{let e=y.data;if("string"==typeof e){let t=w(e);P=null!=t?{type:"deprecated",data:t}:null}else P={type:"deprecated",data:e}}let{data:S,childDataKey__DEPRECATED:k}=(0,o.Q)(h,P,{useLegacyAdapter:e=>{var t;return{entityId:null!==(t=e.id)&&void 0!==t?t:""}}}),j=(0,d.Z)(k,"CarouselEllipsis"),A=(0,r.Z)(k),C=e||A&&{carouselSlots:A.carouselSlots.map(({slotId:e,title:t})=>({id:e,title:t})),entityId:null!==(b=A.carouselId)&&void 0!==b?b:"",index:A.index},D=(0,l.useDispatch)();if(!C)return null;let E=(e,t,l)=>{var a,r,o;g||void 0===u.yR||(e.preventDefault(),e.stopPropagation(),D((0,u.yR)(null!==(o=null==S?void 0:S.entityId)&&void 0!==o?o:"",l))),void 0!==_&&_(l),j({pinId:null!==(a=null==S?void 0:S.entityId)&&void 0!==a?a:"",currentIndex:null!=t?t:0,nextIndex:l,carouselData:{carouselSlots:null===(r=C.carouselSlots)||void 0===r?void 0:r.map(e=>({id:e.id})),entityId:C.entityId},viewParameter:v,viewType:f,componentType:i,contextLogData:n,isEditMode:g})},{carouselSlots:I,index:T}=C,F="number"==typeof t?t:T,z="default"===x,R=z?"white":"#555",L=z?"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)(a.xu,{alignItems:"center","data-test-id":"carousel-ellipsis",display:"flex",justifyContent:m?"end":"center",paddingY:g?1:0,children:I&&[...Array(null!==(t=I.length)&&void 0!==t?t:0).keys()].map(e=>{var t,i;return(0,p.jsx)(a.xu,{paddingX:1,children:(0,p.jsx)(a.iP,{accessibilityLabel:null!==(i=(I[e]||{}).title)&&void 0!==i?i:"",fullWidth:!1,onTap:({event:t})=>E(t,F,e),rounding:"circle",children:(0,p.jsx)(a.xu,{"data-test-id":"ellipsis-size",height:8,width:8,dangerouslySetInlineStyle:{__style:{backgroundColor:e===F?R:L}},rounding:"circle"})})},(null!==(t=null==S?void 0:S.entityId)&&void 0!==t?t:"")+e)})})}})}},239062:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var n,l=i(702664);i(167912);var a=i(883119),r=i(729884),o=i(357998),s=i(898781),d=i(356725),u=i(721782),c=i(447948),p=i(350118),h=i(785893);let _={cursor:"pointer",padding:"30px 16px",position:"relative",zIndex:1},m=(e,t,i,n,l,a)=>{a||void 0===n||(e.preventDefault(),e.stopPropagation(),n(t,i)),void 0!==l&&l(i)},g=void 0!==n?n:n=i(717246);function y({addEllipsis:e,alwaysShowNavigationArrows:t,carouselIndex:i,carouselData:n,ellipsisVariant:y,handleCarouselSwipe:v,isShowingLastSlide:f,pinKey:x,contextLogData:b,viewParameter:P,viewType:w,componentType:S,isEditMode:k,forwardNode:j,backNode:A,sliderStyleOverride:C,hideNavigationArrows:D}){var E,I;let T;let F=(0,s.ZP)(),z=(0,l.useDispatch)(),R=(0,p.S6)();if(null==x||"graphqlRef"===x.type)T=x;else{let e=R(x.data);T=null==e?null:{type:"deprecated",data:e}}let{data:L,childDataKey__DEPRECATED:M}=(0,o.Q)(g,T,{useLegacyAdapter:e=>{var t;return{entityId:null!==(t=e.id)&&void 0!==t?t:"",isEligibleForPdp:e.is_eligible_for_pdp}}}),Z=(0,u.Z)(M,"CarouselSliders"),B=(0,r.Z)(M),O=n||B&&{carouselSlots:B.carouselSlots.map(({slotId:e,title:t})=>({id:e,title:t})),entityId:null!==(E=B.carouselId)&&void 0!==E?E:"",index:B.index};if(!O)return null;let N=(e,t)=>z((0,c.yR)(e,t)),{carouselSlots:K,index:U}=O,H=void 0!==i?i:null!=U?U:0,V=Math.max(0,H-1),G=Math.min((null!=K?K:[]).length-1,H+1),W=0===H,$=f||H===(null!=K?K:[]).length-1,q=(e,t)=>{var i,n,l;m(e,null!==(i=null==L?void 0:L.entityId)&&void 0!==i?i:"",t,N,v,k),Z({pinId:null!==(n=null==L?void 0:L.entityId)&&void 0!==n?n:"",currentIndex:H,nextIndex:t,carouselData:{carouselSlots:null==K?void 0:K.map(({id:e})=>({id:e})),entityId:O.entityId},viewParameter:P,viewType:w,componentType:S,contextLogData:b,isEditMode:k,isEligibleForPdp:null!==(l=null==L?void 0:L.isEligibleForPdp)&&void 0!==l&&l})},Y=A||(0,h.jsx)(a.JO,{color:"inverse",icon:"arrow-back",accessibilityLabel:F._('View Previous', 'Button to advance carousel to the previous image', 'Button to advance carousel to the previous image')}),X=D?null:j||(0,h.jsx)(a.JO,{color:"inverse",icon:"arrow-forward",accessibilityLabel:F._('View Next', 'Button to advance carousel to the next image', 'Button to advance carousel to the next image')});return(0,h.jsxs)(a.xu,{display:"flex",justifyContent:D?"center":"between",position:"absolute",alignItems:"center",left:!0,right:!0,bottom:!0,top:!0,children:[!D&&(0,h.jsx)("div",{"data-test-id":"carousel-slider-left",role:"presentation",onClick:e=>{q(e,V)},onKeyUp:e=>{q(e,V)},style:{..._,...C,pointerEvents:W?"none":"auto"},children:(0,h.jsx)(a.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{visibility:W&&!t?"hidden":"visible",opacity:W&&t?"50%":"100%"}},display:"flex",height:"100%",justifyContent:"center",width:"100%",children:Y})}),e&&(0,h.jsx)(d.default,{pinKey:M,carouselIndex:i,carouselData:{carouselSlots:null===(I=O.carouselSlots)||void 0===I?void 0:I.map(({id:e,title:t})=>({id:e,title:t})),entityId:O.entityId,index:O.index},handleCarouselSwipe:v,variant:y||"default",viewParameter:P,viewType:w,componentType:S}),!D&&(0,h.jsx)("div",{"data-test-id":"carousel-slider-right",role:"presentation",onClick:e=>{q(e,G)},onKeyUp:e=>{q(e,G)},style:{..._,...C,pointerEvents:$?"none":"auto"},children:(0,h.jsx)(a.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{visibility:$&&!t?"hidden":"visible",opacity:$&&t?"50%":"100%"}},display:"flex",height:"100%",justifyContent:"center",width:"100%",children:X})})]})}},415940:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n,l=i(667294);i(422578);var a=i(883119),r=i(729884),o=i(357998),s=i(444445),d=i(898781),u=i(564194),c=i(310227),p=i(455024),h=i(350118),_=i(785893);function m(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let g=void 0!==n?n:n=i(566416),y=e=>{let t=e.reduce((e,t)=>{var i;let{imageSizeMap:n}=t,{height:l,width:a}=(null==n?void 0:n["736x"])||(null==n?void 0:n["236x"])||{},r=`${null!=a?a:1}x${null!=l?l:1}`,o=(null===(i=e[r])||void 0===i?void 0:i.times)||0;return{...e,[r]:{imageHeight:l,imageWidth:a,times:o+1}}},{}),i=Object.keys(t).reduce((e,i)=>t[i].times>e.times?t[i]:e,{times:-1,imageHeight:-1,imageWidth:-1});return Object.keys(t).length>1?{imageHeight:i.imageHeight,imageWidth:i.imageWidth}:null},v=(e,t,i,n,l,r,o,s,d,u,c,h,m,g,y,v)=>{var f,x,b,P,w,S,k,j,A,C,D,E,I,T,F,z;let R;let{imageSizeMap:L,details:M=""}=t,Z=236,B=236,O="";l?(Z=474,B=L&&Math.min(Z/.8,Z/((null!==(P=null===(w=L["564x"])||void 0===w?void 0:w.width)&&void 0!==P?P:1)/(null!==(S=null===(k=L["564x"])||void 0===k?void 0:k.height)&&void 0!==S?S:1))),O=L&&(null===(j=L["564x"])||void 0===j?void 0:j.url)):L&&L["736x"]?(B=L&&L["736x"]&&L["736x"].height,Z=L&&L["736x"]&&L["736x"].width,O=L&&L["736x"]&&L["736x"].url):L&&L["236x"]&&(B=L&&L["236x"]&&L["236x"].height,Z=L&&L["236x"]&&L["236x"].width,O=L&&L["236x"]&&L["236x"].url),m&&g&&(B=Math.min(m*g,null!==(A=B)&&void 0!==A?A:1)),R=r?`${null!==(C=null==L?void 0:null===(D=L["236x"])||void 0===D?void 0:D.url)&&void 0!==C?C:""} 1x`:l?`${null!==(E=null==L?void 0:null===(I=L["564x"])||void 0===I?void 0:I.url)&&void 0!==E?E:""} 1x`:[(null==L?void 0:L["474x"])&&`${null!==(T=L["474x"].url)&&void 0!==T?T:""} 2x`,(null==L?void 0:L["736x"])&&`${null!==(F=L["736x"].url)&&void 0!==F?F:""} 3x`,(null==L?void 0:L.orig)&&`${null!==(z=L.orig.url)&&void 0!==z?z:""} 4x`].filter(Boolean).join(", ");let N=(0,p.GH)(M,e,n),K=h?void 0:B,U=h?void 0:Z,{boxHeight:H,boxWidth:V}=y?{boxHeight:null==y?void 0:y.imageHeight,boxWidth:null==y?void 0:y.imageWidth}:{boxHeight:K,boxWidth:U};return(0,_.jsx)(a.xu,{"data-test-id":"carousel-slot-container",height:null!=H?H:void 0,width:null!=V?V:void 0,children:(0,_.jsx)(a.xu,{height:h?c:void 0,width:h||void 0,"data-test-id":`carousel-img-${n}`,children:(0,_.jsx)(a.Ee,{alt:N,fit:h?"cover":"none",naturalHeight:null!==(f=B)&&void 0!==f?f:1,naturalWidth:null!==(x=Z)&&void 0!==x?x:1,onError:o,onLoad:s,src:null!==(b=O)&&void 0!==b?b:"",srcSet:R,crossOrigin:v?"anonymous":void 0})})},`carousel-slot-${i}-${n}`)},f=({pinId:e,slot:t,slotIndex:i,onError:n,onLoad:l,widthToUse:r,gap:o},s)=>{let d=["564x","736x","474x","236x"].map(e=>{var i;return null===(i=t.imageSizeMap)||void 0===i?void 0:i[e]}).find(e=>null==e?void 0:e.url),{url:u,width:c,height:h}=d||{},{details:m=""}=t,g=(0,p.GH)(m,s,i);return(0,_.jsx)(a.xu,{"data-test-id":"carousel-slot-container",width:r,height:"100%",marginEnd:o,children:(0,_.jsx)(a.zd,{height:"100%",wash:!0,children:(0,_.jsx)(a.Ee,{alt:g,fit:"contain",naturalHeight:null!=h?h:1,naturalWidth:null!=c?c:1,onError:n,onLoad:l,src:null!=u?u:""})})},`carousel-slot-${e}-${i}`)};class x extends l.Component{constructor(...e){super(...e),m(this,"state",{showBadge:!0}),m(this,"renderBadge",()=>{let{carouselData:e,isCloseup:t,showCarouselBadge:i}=this.props;if(!e)return null;let{showBadge:n}=this.state,{carouselSlots:l,index:r}=e;return!t&&i?(0,_.jsx)(a.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 a.Ry(1),dangerouslySetInlineStyle:{__style:{opacity:n?.8:0,transition:"opacity .3s"}},children:(0,_.jsx)(a.xv,{color:"inverse",children:`${(null!=r?r:0)+1}/${(null!=l?l:[]).length}`})}):null})}componentDidMount(){this.hideBadgeTimeout=setTimeout(()=>this.setState({showBadge:!1}),3e3)}componentDidUpdate(e){let{showBadge:t}=this.state,{carouselData:i}=e,{carouselData:n}=this.props;if(!i||!n)return;let{index:l}=i,{index:a}=n;t&&(this.hideBadgeTimeout&&clearTimeout(this.hideBadgeTimeout),this.hideBadgeTimeout=setTimeout(()=>this.setState({showBadge:!1}),3e3)),l!==a&&(this.hideBadgeTimeout&&clearTimeout(this.hideBadgeTimeout),this.setState({showBadge:!0}))}componentWillUnmount(){this.hideBadgeTimeout&&clearTimeout(this.hideBadgeTimeout)}render(){var e;let t;let{isCloseup:i,carouselIndex:n,closeupHeight:l,closeupWidth:r=0,widthRatio:o=1,cropHeight:d,cropWidth:h,carouselData:m,disableTransition:g,highResOnly:x,lowResOnly:b,onError:P,onLoad:w,pinId:S,imageSignature:k,isEditMode:j,isDenseView:A,isThirdPartyAd:C}=this.props;if(!m)return null;if(o>1||o<0)throw Error("widthRatio should be between 0 and 1 inclusive");let{carouselSlots:D}=m,E=null!==(e=m.index)&&void 0!==e?e:0,I=void 0!==n?n:null!=E?E:0,T=!i&&h,{imageSizeMap:F}=D[I]||{};t=i?r:T||(x?474:A?s.Lo:s.yF);let z=Math.floor(t*o),R=(null==F?void 0:F["236x"])||{},L=d||R.height||0,M=h||R.width||236,Z=l||L/M*z,B=y(D);return(0,_.jsxs)(a.xu,{height:Z,display:"flex",alignItems:"center",overflow:"hidden","data-test-id":"carousel-pin",minHeight:c.Ml,"data-test-image-signature":k,children:[!j&&this.renderBadge(),(0,_.jsx)(u.Z,{carouselData:{...m,type:"canonical"},trackCarousel:!0,impressionType:"Pin",loggingId:S,slotIndex:null!=E?E:0,viewParameter:72,viewType:1,children:(0,_.jsx)(a.xu,{position:"absolute",height:Z,width:z,overflow:"hidden"})},`carousel-impression-key-${I}`),(0,_.jsx)(a.xu,{width:z*D.length,dangerouslySetInlineStyle:{__style:{transition:g?"":"left .3s",left:(0,p.vF)(D.length,z,t,I)}},left:!0,height:"100%",display:"flex",direction:"row",position:"relative",children:D.map((e,n)=>{if(i){let i=n===D.length-1;return f({pinId:S,slot:e,slotIndex:n,onError:P,onLoad:w,widthToUse:z,gap:z<t&&!i?1:0},this.props.i18n)}return v(this.props.i18n,e,S,n,x,b,P,w,r,l,d,h,Z,z,B,C)})})]})}}function b({pinKey:e,...t}){let i;let n=(0,d.ZP)(),l=(0,h.S6)(),a=l(t.pinId);i=null==e||"graphqlRef"===e.type?e:null!=a?{type:"deprecated",data:a}:null;let{data:s,childDataKey__DEPRECATED:u}=(0,o.Q)(g,i,{useLegacyAdapter:e=>({imageSignature:e.image_signature})}),c=(0,r.Z)(u),p=c&&{...c,carouselSlots:function(e){let t=["236x","474x","564x","736x"].map(t=>{let i=Math.min(...e.map(e=>{var i,n;return(null===(i=e.imageSizeMap)||void 0===i?void 0:null===(n=i[t])||void 0===n?void 0:n.height)||1/0})),n=Math.min(...e.map(e=>{var i,n;return(null===(i=e.imageSizeMap)||void 0===i?void 0:null===(n=i[t])||void 0===n?void 0:n.width)||1/0}));return{imageKey:t,height:i,width:n}});return e.map(e=>t.reduce((e,{imageKey:t,height:i,width:n})=>{var l;return null!==(l=e.imageSizeMap)&&void 0!==l&&l[t]?{...e,imageSizeMap:{...e.imageSizeMap,[t]:{...e.imageSizeMap[t],height:i,width:n}}}:e},e))}(c.carouselSlots)};return(0,_.jsx)(x,{...t,carouselData:p,i18n:n,imageSignature:null==s?void 0:s.imageSignature})}m(x,"defaultProps",{showCarouselBadge:!0})},751191:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(883119),a=i(898781),r=i(785893);let o=({iconType:e,showFab:t,backgroundColor:i,hoverColor:o,iconColor:s,size:d})=>{let u=(0,a.ZP)(),[c,p]=(0,n.useState)(!1);return(0,r.jsx)(l.zd,{rounding:6,children:(0,r.jsx)(l.xu,{opacity:c?1:.8,rounding:"circle",onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),"data-test-id":"navigation-fab-container",children:(0,r.jsx)(l.xu,{width:d||48,height:d||48,color:c?o:i,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,r.jsx)(l.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,r.jsx)(l.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,i)=>{"use strict";i.d(t,{Z:()=>d}),i(167912);var n,l=i(407043),a=i(357998),r=i(999018),o=i(67347);let s=void 0!==n?n:n=i(270643);function d(e,t){let{logContextEvent:i}=(0,l.v)(),{childDataKey__DEPRECATED:n}=(0,a.Q)(s,e,{useLegacyAdapter:()=>({})});null!=e&&"deprecated"===e.type&&e.data&&"pin"!==e.data.type&&(0,o.nP)("web.graphql.debug.useLogSwipeError",{sampleRate:1,tags:{parent:t,rootType:e.data.type}});let d=(0,r.Z)(n);return function({pinId:e,currentIndex:t,nextIndex:n,carouselData:l,viewParameter:a,viewType:r,componentType:o,contextLogData:s,isEditMode:u,isEligibleForPdp:c}){if(!u){let{carouselSlots:u,entityId:p}=l;i({event_type:108,object_id_str:e,component:o,view_type:r,view_parameter:a,event_data:{pinCarouselSlotEventData:{carouselSlotId:(null==u?void 0:u[t])&&Number(u[t].id),carouselDataId:Number(p),carouselSlotIndex:t,toCarouselSlotIndex:n}},aux_data:{...s,...d({isPdpPlus:c})}})}}}},222704:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({children:e,color:t,outlined:i,type:a="bold",rounding:r=4}){return(0,l.jsxs)(n.xu,{position:"relative",children:[(0,l.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},rounding:r,overflow:"hidden","data-test-id":"outline-content",children:e}),i&&(0,l.jsx)(n.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,rounding:r,color:"transparent",dangerouslySetInlineStyle:{__style:function({color:e,type:t}){return"solid"===t?{boxShadow:`inset 0 0 0 2px ${null!=e?e:"#000"}`,WebkitBoxShadow:`inset 0 0 0 2px ${null!=e?e:"#000"}`,MozBoxShadow:`inset 0 0 0 2px ${null!=e?e:"#000"}`}:{boxShadow:`inset 0 0 0 2px ${null!=e?e:"#000"}, inset 0 0 0 4px #fff`,WebkitBoxShadow:`inset 0 0 0 2px ${null!=e?e:"#000"}, inset 0 0 0 4px #fff`,MozBoxShadow:`inset 0 0 0 2px ${null!=e?e:"#000"}, inset 0 0 0 4px #fff`}}({color:t,type:a})},"data-test-id":"outline-box"})]})}},970576:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(883119),l=i(499128),a=i(898781),r=i(349700),o=i(785893);function s({boardName:e,boardUrl:t,isBoardlessPin:i,isFromPinBuilder:s,hasNewPin:d,onChangeButtonClick:u,onVisitButtonClick:c=()=>{},onHide:p,onUndo:h,pinImageUrl:_}){let m;let g=(0,a.ZP)();return s?m={accessibilityLabel:g._('Visit Pin', 'PostSavedPinToast.a11yVisitButton', 'Accessibility label for Visit Pin saved from PinBuilder'),label:g._('Visit', 'PostSavedPinToast.VisitButton', 'Visit Pin saved from PinBuilder'),size:"lg",onClick:c}:(u||h)&&(m={accessibilityLabel:d&&i&&u?g._('Change Pin destination', 'PostSavedPinToast.a11yChangeButton', 'Change saved pin to a different destination'):g._('Undo Saved Pin', 'PostSavedPinToast.a11yUndoButton', 'Undo Saved Pin'),label:d&&i&&u?g._('Change', 'PostSavedPinToast.ChangeButton', 'Change saved pin to a different destination'):g._('Undo', 'PostSavedPinToast.UndoButton', 'Undo Saved Pin'),size:"lg",onClick:d&&i&&u?()=>u():h}),(0,o.jsx)(l.ZP,{primaryAction:m,duration:i?6e3:3e3,thumbnail:i?{icon:(0,o.jsx)(n.JO,{accessibilityLabel:g._('Saved to profile thumbnail', 'PostSavedPinToast.thumbnail.accessibilityLabel', 'Thumbnail for saved to profile.'),color:"default",icon:"history",size:24})}:void 0,imageUrl:_,onHide:p,text:(0,o.jsx)(n.xv,{size:"200",overflow:"normal",children:(0,r.nk)(g._('Saved to {{ destination }}', 'PostSavedPinToast.SavedToBoardLabel', 'Saved to label for better save'),{destination:(0,o.jsx)(n.rU,{href:i?"/me/":null!=t?t:"",children:(0,o.jsx)(n.xv,{size:"200",weight:"bold",lineClamp:1,children:e},"PostSavedPinToastBoardName")})})})})}},176020:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});let n={row:0,section:0},l={row:-1,section:-1},a=()=>void 0;class r{constructor(e){this.index={...n},this.sections=e,this.updateCallback=a,this.selectItem=a}getIndex(){return this.index}isAtStart(){let{row:e,section:t}=this.index;return 0===e&&0===t}isAtEnd(){let{row:e,section:t}=this.index,i=this.sections[t]||[];return this.sections.length===t+1&&i.length===e+1}next(){if(this.isAtEnd())return;let{row:e,section:t}=this.index;e===l.row&&t===l.section?this.index={...n}:this.sections[t].length>e+1?this.index.row+=1:(this.index.section+=1,this.index.row=0),this.updateCallback(!0)}prev(){if(this.isAtStart())return;let{row:e,section:t}=this.index;if(e===l.row&&t===l.section)this.index={...n};else if(e>0)this.index.row-=1;else{let e=this.index.section-1;this.index={section:e,row:this.sections[e].length-1}}this.updateCallback(!0)}select(){let{row:e,section:t}=this.index;this.selectItem((this.sections[t]||[])[e])}setInactive(){this.index={...l},this.updateCallback()}setSelectItem(e){this.selectItem=e}setUpdateCallback(e){this.updateCallback=e}updateIndex(e){this.index=e,this.updateCallback()}}},960260:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(667294),l=i(883119);i(176020);var a=i(425480),r=i(785893);function o(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class s extends n.Component{constructor(e){super(e),o(this,"setSelectedItemRef",e=>{this.selectedItemRef=e}),o(this,"handleIndexUpdate",e=>{let{indexManager:t}=this.props;this.setState({selectedIndex:t.getIndex(),selectionMovedByKeyboard:!!e})}),o(this,"handleSelectItem",e=>()=>{let{disabled:t,onSelectItem:i}=this.props;t||i(e)}),o(this,"handleMouseEnter",e=>()=>{let{disabled:t,indexManager:i}=this.props;t||i.updateIndex(e)}),o(this,"handleMouseLeave",()=>{let{disabled:e,indexManager:t}=this.props;e||t.setInactive()}),o(this,"renderItems",(e,t)=>{let{renderItem:i}=this.props,{selectedIndex:n}=this.state,{row:a,section:o}=n||{},{customProps:s={},items:d,renderItem:u}=e,{isDisabled:c}=s,p=t===o,h=u||i;return h&&d.map((e,i)=>{var n;let o=null!==(n=null==c?void 0:c(e))&&void 0!==n&&n,d=p&&i===a;return(0,r.jsx)(l.xu,{"data-test-id":"board-selection",ref:!o&&d?this.setSelectedItemRef:null,children:o?h({item:e,hovered:d,sectionProps:s}):(0,r.jsx)(l.iP,{fullWidth:!1,onMouseEnter:this.handleMouseEnter({section:t,row:i}),onMouseLeave:this.handleMouseLeave,onTap:this.handleSelectItem(e),rounding:2,children:h({item:e,hovered:d,sectionProps:s})})},i)})}),o(this,"renderSections",()=>{let{renderSectionHeader:e,sections:t}=this.props;return t.map((t,i)=>(0,r.jsxs)(l.xu,{children:[e&&e(t,i),this.renderItems(t,i)]},i))});let{indexManager:t}=this.props;this.state={selectedIndex:t.getIndex(),selectionMovedByKeyboard:!1},t.setUpdateCallback(this.handleIndexUpdate)}componentDidUpdate(e){let{containerRef:t}=this;if(this.selectedItemRef&&this.state.selectionMovedByKeyboard&&t){let e=this.selectedItemRef;if(!(e instanceof HTMLElement))return;let i=e.getBoundingClientRect(),n=i.top,l=i.bottom,a=t.getBoundingClientRect(),r=a.top,o=a.bottom;l>=o?e.scrollIntoView(!1):n<=r&&e.scrollIntoView(!0)}e.indexManager!==this.props.indexManager&&this.props.indexManager.setUpdateCallback(this.handleIndexUpdate)}render(){let{grow:e=!1,maxHeight:t,fetchMore:i}=this.props;return(0,r.jsx)(a.Z,{fetchMore:i,children:({setRef:i,onScroll:n})=>(0,r.jsx)(l.xu,{flex:e?"grow":void 0,height:e?"100%":void 0,maxHeight:t,onScroll:n,overflow:"auto",ref:e=>{this.containerRef=e,i(e)},children:this.renderSections()})})}}},274495:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(785893);let a={__style:{margin:"0 10px",borderRight:"3px solid transparent",borderTop:"3px solid #fff",animation:"spin .8s linear infinite"}};function r(){return(0,l.jsx)(n.xu,{alignItems:"center",color:"primary",display:"flex",height:"100%",justifyContent:"center",position:"absolute",width:"100%",rounding:8,children:(0,l.jsx)(n.xu,{dangerouslySetInlineStyle:a,display:"inlineBlock",height:18,position:"relative",rounding:"circle",width:18})})}function o({disabled:e,name:t,onClick:i,size:a,submitting:o,text:s}){return(0,l.jsxs)(n.xu,{display:"flex",position:"relative","data-test-id":"submit-button",children:[o&&(0,l.jsx)(r,{}),(0,l.jsx)(n.zx,{color:"red",disabled:e||o,name:t,onClick:i,size:a,type:"submit",text:s})]})}},865607:(e,t,i)=>{"use strict";i.d(t,{O:()=>d,Z:()=>u});var n=i(667294),l=i(883119),a=i(898781),r=i(966113),o=i(785893);let s={xs:12,sm:16,md:20,lg:24};function d({children:e}){let t=(0,a.ZP)();return(0,o.jsx)(l.u,{link:(0,o.jsx)(l.rU,{href:r.vBy,target:"blank",children:(0,o.jsx)(l.xv,{color:"inverse",size:"100",weight:"bold",children:t._('Learn more', 'verifiedBadge.tooltip.link', 'Learn more about Pinterest\'s Merchant Guidelines')})}),text:t._('This retailer meets Pinterest\'s Merchant Guidelines', 'merchantVerification.badge.tooltip', 'Badge indicating that a merchant or user is verified'),children:e})}function u({hasVerifiedIdentity:e,iconOnly:t,isVerifiedMerchant:i,showText:r,size:u}){let c=(0,a.ZP)(),p=(0,o.jsxs)(l.kC,{alignItems:"center",justifyContent:"start",children:[(0,o.jsx)(l.JO,{accessibilityLabel:c._('Merchant verification badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'),color:"shopping",icon:"workflow-status-ok",inline:!0,size:s[u]}),r&&(0,o.jsx)(l.xu,{marginStart:2,children:(0,o.jsx)(l.xv,{color:"shopping",inline:!0,weight:"bold",children:c._('Verified merchant', 'creator.header.verifiedMerchant', 'this merchant is a verified merchant')})})]});return(0,o.jsxs)(n.Fragment,{children:[i&&!t&&(0,o.jsx)(d,{children:p}),i&&t&&p,e&&!i&&(0,o.jsx)(l.JO,{accessibilityLabel:c._('Domain verification icon', 'domainVerification.badge.icon', 'Badge indicating that a merchant or user is verified'),color:"error",icon:"check-circle",size:s[u]})]})}},180929:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(883119),l=i(898781),a=i(780280),r=i(785893);let o=()=>{};function s({direction:e,handleNavHoverToggle:t,leftHover:i,onScroll:s,rightHover:d,shouldPadArrows:u,size:c="md"}){let p=(0,l.ZP)(),h=(0,a.B)(),{isRTL:_}=h,m=function({direction:e,isRTL:t,leftHover:i,rightHover:n,shouldPadArrows:l,verticalSize:a},r){let o={backgroundImage:`linear-gradient(to ${e}, rgba(255, 255, 255, 0) 0%, #fff 90%)`,height:"100%",top:"0px",bottom:void 0},s={color:"default",height:"40px",justifyContent:"center",left:void 0,right:void 0},d={sm:"52px",md:"124px"},u={up:{...s,backgroundImage:"linear-gradient(#fff 0%, rgba(255, 255, 255, 0) 90%)",bottom:void 0,icon:"arrow-up",label:r._('Up arrow', 'product.carousel.arrowUp', 'Label for up arrow button in closeup image carousel'),top:"0px",width:d[a]},down:{...s,backgroundImage:"linear-gradient(rgba(255, 255, 255, 0) 0%, #fff 90%)",bottom:"0px",icon:"arrow-down",label:r._('Down arrow', 'product.carousel.arrowDown', 'Label for down arrow button in closeup image carousel'),top:void 0,width:d[a]},left:{...o,color:l?"default":i?"default":"subtle",icon:t?"arrow-forward":"arrow-back",justifyContent:"start",label:r._('Left arrow', 'Label for left arrow button in search guides', 'Label for left arrow button in search guides'),left:"0px",right:void 0,width:t?"22px":"210px"},right:{...o,color:l?"default":n?"default":"subtle",icon:t?"arrow-back":"arrow-forward",justifyContent:"end",label:r._('Right arrow', 'Label for right arrow button in search guides', 'Label for right arrow button in search guides'),left:void 0,right:"0px",width:t?"22px":"210px"}};return u}({direction:e,isRTL:_,leftHover:i,rightHover:d,shouldPadArrows:u,verticalSize:c},p);return(0,r.jsx)(n.xu,{position:"absolute",height:m[e].height,dangerouslySetInlineStyle:{__style:{willChange:"transform",pointerEvents:"none",top:m[e].top,bottom:m[e].bottom,left:m[e].left,right:m[e].right}},children:(0,r.jsx)(n.xu,{display:"flex",alignItems:"center",width:m[e].width,dangerouslySetInlineStyle:{__style:{backgroundImage:m[e].backgroundImage,marginTop:u?"25px":void 0}},justifyContent:m[e].justifyContent,height:"100%",children:(0,r.jsx)("button",{onMouseEnter:t?()=>t(e,!0):o,onMouseLeave:t?()=>t(e,!1):o,onClick:s,style:{backgroundColor:"transparent",border:0,height:"100%",outline:"none",padding:0,pointerEvents:"all"},children:(0,r.jsx)(n.kC,{alignItems:"center",height:"100%",justifyContent:m[e].justifyContent,width:"50px",children:(0,r.jsx)(n.JO,{accessibilityLabel:m[e].label,color:m[e].color,icon:m[e].icon})})})})})}},96939:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(65675),a=i(785893);function r({coverImages:e,height:t,isHovered:i,onClick:r,onMouseEnter:o,onMouseLeave:s,textType:d,text:u,url:c,width:p}){let h=e&&(e["236x"]||e["280x280"]);return(0,a.jsx)(l.Z,{backgroundColor:"gray",coverImage:h,height:t,isHovered:i,onClick:r,onMouseEnter:o,onMouseLeave:s,url:c,width:p,children:(0,a.jsx)(n.xu,{alignItems:"center",display:"flex",height:t,justifyContent:"center",padding:3,position:"absolute",top:!0,width:p||"100%",children:"text"===d?(0,a.jsx)(n.xu,{alignItems:"center",display:"flex",height:48,padding:3,children:(0,a.jsx)(n.X6,{align:"center",size:"500",color:"light",children:u})}):(0,a.jsx)(n.xu,{alignItems:"center",color:"secondary",display:"flex",height:48,padding:3,rounding:"pill",children:(0,a.jsx)(n.xv,{align:"center",weight:"bold",children:u})})})})}},92331:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(883119),l=i(407043),a=i(444445),r=i(564194),o=i(676142),s=i(940882),d=i(654874),u=i(785893);let c=a.yF;function p({contextLogData:e,bubbles:t,id:i,referringSource:a,slotIndex:p,storyType:h,title:_,titleIcon:m,viewType:g,viewParameter:y}){let{logContextEvent:v}=(0,l.v)(),f=t.map(({type:e,id:t})=>e+":"+t).join("|"),x={story_type:h,...e,content_ids:f};return(0,u.jsx)(r.Z,{viewType:g,componentType:200,viewParameter:y,loggingId:i,objectIdStr:i,contextLogData:x,impressionType:"Story",slotIndex:p,children:(0,u.jsxs)(n.xu,{children:[_&&(0,u.jsxs)(n.xu,{display:"flex",marginBottom:1,justifyContent:"center",alignItems:"center",children:["number"==typeof m&&m!==s.J&&(0,u.jsx)(n.xu,{marginEnd:2,dangerouslySetInlineStyle:{__style:{paddingTop:1}},children:(0,u.jsx)(n.JO,{accessibilityLabel:"",color:"default",icon:(0,s.Z)(m),size:14})}),(0,u.jsx)(n.xv,{weight:"bold",children:(0,o.Z)(_)})]}),t.map((e,t)=>(0,u.jsx)(n.xu,{paddingY:1,flex:"none",children:(0,u.jsx)(d.Z,{bubble:e,onClick:e=>{v({event_type:101,object_id_str:e,view_type:g,view_parameter:y,component:200,aux_data:x})},referringSource:a,height:103,width:c,storyId:i,viewType:g,viewParameter:y,slotIndex:t,contextLogData:x})},`bubble-${e.id}`))]})})}},215727:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(667294),l=i(240684),a=i(883119),r=i(898781),o=i(149230),s=i(977558),d=i(785893);let u=new a.Ry(s.fe),c=new a.H3([u]),p=new a.H3([c]),h={modalMargin:24,gestaltModalMargin:6,closeButtonMargin:6},_={width:540,height:363},m={modalMargin:24,gestaltModalMargin:6,closeButtonMargin:4},g={width:320,height:215},y=(0,l.ZP)({resolved:{},chunkName:()=>"video-VideoWrapper",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>Promise.all([i.e(67631),i.e(3875)]).then(i.bind(i,158103)),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 i(t)},resolve:()=>158103});function v(e){let{displayData:t,handleComplete:i,handleDismiss:l,isMobile:r}=e,{video:s,image:u,title:c,body:p,completeButton:_,dismissButton:g}=t,y=r?"center":"start",v=(0,o.Z)({url:_.url});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(f,{isMobile:r,image:u,video:s,handleDismiss:l,title:c}),(0,d.jsxs)(a.xu,{margin:(r?m:h).gestaltModalMargin,justifyContent:"center",display:"flex",direction:"column",children:[(0,d.jsx)(a.X6,{align:y,children:c}),(0,d.jsx)(a.xu,{marginTop:2,marginBottom:4,children:(0,d.jsx)(a.xv,{align:y,children:p})}),(0,d.jsxs)(a.xu,{margin:-1,display:"flex",justifyContent:r?"center":"end",dangerouslySetInlineStyle:{__style:{flexWrap:"wrap-reverse"}},children:[g&&!g.hideDismissButton&&(0,d.jsx)(a.xu,{padding:1,fit:!0,minWidth:r?130:void 0,flex:r?"grow":"none",children:(0,d.jsx)(a.zx,{fullWidth:r,color:"gray",size:"lg",text:g.text,onClick:l})}),_&&(0,d.jsx)(a.xu,{padding:1,fit:!0,minWidth:r?130:void 0,flex:r?"grow":"none",children:_.url?(0,d.jsx)(a.ZP,{fullWidth:r,color:"red",size:"lg",text:_.text,onClick:()=>i(),href:_.url,rel:v?"nofollow":"none"}):(0,d.jsx)(a.zx,{fullWidth:r,color:"red",size:"lg",text:_.text,onClick:()=>i()})})]})]})]})}let f=e=>{var t,i;let{isMobile:n,image:l,video:o,handleDismiss:s,title:u}=e,c=(0,r.ZP)(),v=n?m:h,f=n?g:_,x=(0,d.jsx)(a.xu,{margin:v.closeButtonMargin,display:"flex",justifyContent:n?"start":"end",position:"absolute",zIndex:p,width:f.width-2*v.modalMargin,children:(0,d.jsx)(a.hU,{accessibilityLabel:c._('Dismiss', 'experiences.ExperienceModalWindow.modalDismissIconButton', 'Accessibility lable for the X icon button to dismiss the modal window'),icon:"cancel",iconColor:"darkGray",onClick:s,size:"sm"})}),b=l?l.imageAlt:u,P=l?l.url:null==o?void 0:null===(t=o.metadata)||void 0===t?void 0:t.thumbnail,w=(null==l?void 0:null===(i=l.dominantColor)||void 0===i?void 0:i.length)===3?`rgb(${l.dominantColor[0]}, ${l.dominantColor[1]}, ${l.dominantColor[2]})`:"rgb(111, 91, 77)",S=f.width/f.height,k={width:f.width,height:f.height};l&&l.width&&l.height?(S=l.width/l.height,k={width:l.width,height:l.height}):o&&o.metadata.width&&o.metadata.height&&(S=o.metadata.width/o.metadata.height,k={width:o.metadata.width,height:o.metadata.height});let j=P&&(0,d.jsx)(a.Ee,{alt:b||"",color:w,naturalHeight:k.height,naturalWidth:k.width,src:P,fit:"cover"}),A=Math.trunc(f.width/S);return(0,d.jsxs)(a.xu,{top:!0,left:!0,bottom:!0,right:!0,width:f.width,height:A,overflow:"hidden",children:[x,l&&j,o&&(0,d.jsx)(y,{fallback:j,aspectRatio:S,objectFit:"cover",captions:"",controls:!1,loop:!0,isAutoPlay:!0,onPlay:()=>{},onPlayError:()=>{},playing:!0,playsInline:!0,poster:(null==l?void 0:l.url)||o.metadata.thumbnail,src:o.url,volume:0})]})}},730654:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(121093),l=i(773285),a=i(440102),r=i(785893);let o=[503259,500410,500688],s=({placementId:e})=>{let t=(0,a.ZP)();return(0,r.jsx)(n.Z,{placementId:e,eligibleIds:o,children:({complete:e,dismiss:i})=>(t(e,i),null)})},d=({placementId:e})=>{let{checkExperiment:t}=(0,l.F)(),{anyEnabled:i}=t(a.C7);return i?null:(0,r.jsx)(s,{placementId:e})}},534991:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(667294),l=i(343341),a=i(407043),r=i(121093),o=i(499128),s=i(785893);let d=e=>{let{logContextEvent:t}=(0,a.v)();return(0,s.jsx)(r.Z,{eligibleIds:e.eligibleIds,placementId:e.placementId,eligibleTypes:[10],children:({complete:i,dismiss:n,experience:{display_data:l}})=>{let a=l.link||e.linkUrl,r=()=>{e.shouldLogClicks&&t({event_type:101,object_id_str:e.objectId,component:e.thriftComponentType,element:e.thriftElementType})};return(0,s.jsx)(o.ZP,{duration:l.duration,href:a,text:l.text||"",onClick:()=>{i(),e.onClick&&e.onClick(),e.shouldLogClicks&&r()},onHide:()=>{e.onHide(),e.completionOnDismissal?i():n()}})}})};function u(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class c extends n.Component{constructor(...e){super(...e),u(this,"componentDidMount",()=>{let{delay:e=2e3}=this.props;this.experienceToastsTimeout=window.setTimeout(()=>this.triggerEducationToasts(),e)})}componentWillUnmount(){window.clearTimeout(this.experienceToastsTimeout)}triggerEducationToasts(){let{toastManagerContext:e,completionOnDismissal:t,placementId:i,experienceIds:n}=this.props;e.showOneToast(({hideToast:e})=>(0,s.jsx)(d,{experienceIds:n,completionOnDismissal:t,onHide:e,placementId:i,shouldLogClicks:!1}))}render(){return null}}function p(e){return(0,s.jsx)(c,{...e,toastManagerContext:(0,l.F9)()})}u(c,"defaultProps",{completionOnDismissal:!1})},883851:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(215292),a=i(785893);function r({colors:e,isSelected:t,onClick:i}){return(0,a.jsx)(l.q,{children:({hovered:l,onMouseEnter:r,onMouseLeave:o})=>(0,a.jsx)(n.kC,{alignItems:"center",height:64,justifyContent:"start",children:(0,a.jsx)(n.iP,{mouseCursor:"pointer",onMouseEnter:r,onMouseLeave:o,onTap:i,rounding:"pill",children:(0,a.jsx)(n.xu,{alignItems:"center",color:t?"primary":l?"tertiary":void 0,display:"flex",height:64,justifyContent:"center",rounding:"pill",width:92,children:(0,a.jsx)(n.xu,{alignItems:"center",color:"default",display:"flex",height:60,justifyContent:"center",rounding:"pill",width:88,children:(0,a.jsx)(n.xu,{display:"flex",height:56,overflow:"hidden",rounding:"pill",width:84,wrap:!0,children:e.map((e,t)=>(0,a.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:e}},height:28,width:42},`${e}-${t}`))})})})})})})}},796668:(e,t,i)=>{"use strict";i.d(t,{W:()=>u,Z:()=>p});var n=i(667294),l=i(883119),a=i(407043),r=i(756306),o=i(898781),s=i(883851),d=i(785893);let u=[["#F0E3DC","#F8D7D8","#F2D7BE","#F7C3AF"],["#DEBAB0","#E0999A","#DDA67C","#D98A64"],["#9A6B52","#A25847","#B37143","#BF6951"],["#683929","#34261F","#64281B","#4F2221"]],c=[{display:"Range 1",swatch_hex_colors:["#F0E3DC","#F8D7D8","#F2D7BE","#F7C3AF"],term:"skin_color_bucket_id:1"},{display:"Range 2",swatch_hex_colors:["#DEBAB0","#E0999A","#DDA67C","#D98A64"],term:"skin_color_bucket_id:2"},{display:"Range 3",swatch_hex_colors:["#9A6B52","#A25847","#B37143","#BF6951"],term:"skin_color_bucket_id:3"},{display:"Range 4",swatch_hex_colors:["#683929","#34261F","#64281B","#4F2221"],term:"skin_color_bucket_id:4"}];function p({currentlyAppliedFiltersParamTerm:e,filterTones:t=c,onClickApplyFilters:i,query:p,showHeaderText:h=!0}){let{logContextEvent:_}=(0,a.v)(),m=(0,o.ZP)(),g=(0,n.useRef)(null),y=(0,n.useRef)(null),v=t=>{var n;let l=e===t?"":t;_({event_type:101,component:47,element:10418,view_type:2,aux_data:{entered_query:p,filter_type:"skin_tone",value:l}}),null===(n=y.current)||void 0===n||n.complete(),i(l)},f=e?m._('Some ideas in this skin tone range', 'SkinToneFilters.copy.termSelected', 'Skin tone filters text'):m._('Pick a skin tone range', 'SkinToneFilters.copy.noTermSelected', 'Skin tone filters text');return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(l.kC,{alignItems:h?"center":"start",direction:"column",justifyContent:"start",children:[h&&(0,d.jsx)(l.xu,{marginBottom:2,children:(0,d.jsx)(l.xv,{color:"default",overflow:"normal",weight:"bold",children:f})}),(0,d.jsx)(l.xu,{display:"flex",flex:"none",paddingX:1,ref:g,children:t.map(({term:t},i)=>(0,d.jsx)(l.xu,{"data-test-id":"skin-tone-option",dangerouslySetInlineStyle:{__style:{padding:"0 2px"}},children:(0,d.jsx)(s.Z,{colors:u[i],isSelected:e===t,onClick:()=>v(t)})},t))})]}),g&&(0,d.jsx)(r.Z,{anchor:g.current,experienceIds:[502978],idealDirection:"right",onExperienceMount:e=>{e.complete&&502978===e.experience_id&&(y.current=e)},placementId:29})]})}},830157:(e,t,i)=>{"use strict";function n(e,t){return e||`${t||""}~0`}i.d(t,{Z:()=>n})},62409:(e,t,i)=>{"use strict";i.d(t,{AH:()=>d,CK:()=>s,Fc:()=>r,Wj:()=>a,Xe:()=>l,kb:()=>o,wS:()=>n});let n=(e,t,i,n)=>t||(e?e.official_user:i||n);function l({hasLinkDomain:e,hasNativeCreator:t,hasOriginPinner:i,pinDomain:n,sourceUserUsername:l,sourceUserFullName:a}){return!t&&(e||i)&&l?{pinCreditLink:`/${l}/`,pinCredit:a}:{pinCreditLink:void 0,pinCredit:!t&&e?n:""}}let a=({i18n:e,hasLinkDomain:t,hasRichMetadataArticle:i,hasRichMetadataRecipeCategorizedIngredients:n,hasRichMetadataTutorial:l,richMetadataRecipeFromAggregatedData:a})=>(!t||a)&&e._('Saved by ', 'Closeup pin annotation', 'Closeup pin annotation')||l&&e._('Saved from ', 'pin annotation', 'pin annotation')||n&&e._('Recipe from ', 'pin annotation', 'pin annotation')||i&&e._('Article from ', 'pin annotation', 'pin annotation')||e._('From ', 'Closeup pin annotation', 'Closeup pin annotation');function r({i18n:e,hasRichMetadataProductOfferSummary:t,richMetadataProductName:i,richSummaryProductName:n,hasRichSummaryProductOfferSummary:l}){return t&&i||!t&&n&&l?e._('Product sold by ', 'pin annotation', 'pin annotation'):""}let o=({hasLinkDomain:e,richMetadata:t,richSummary:i})=>{var n;return e&&!(null!=t&&null!==(n=t.recipe)&&void 0!==n&&n.fromAggregatedData)&&null!=t&&t.products&&t.products[0]&&t.products[0].name&&t.products[0].offerSummary?t.products[0].offerSummary:null!=i&&i.products&&i.products[0]&&i.products[0].name&&i.products[0].offerSummary?i.products[0].offerSummary:void 0},s=({hasRichMetadata:e,hasRichMetadataProducts:t,hasRichMetadataArticle:i,hasRichMetadataRecipe:n})=>e?t?144:i?141:n?145:139:140,d=e=>!!e&&!e.startsWith("https://i.pinimg.com")},332215:(e,t,i)=>{"use strict";function n(e){return!!(null==e?void 0:e.is_matured_new_user)}i.d(t,{IR:()=>r,V0:()=>n,Wn:()=>a,xT:()=>l});let l=e=>!!e&&2===e.login_state,a=e=>!!(e&&e.match(/\/static\/images\/user\/default_\d+\.png$/));function r(e){return!e||void 0===e.third_party_marketing_tracking_enabled||null===e.third_party_marketing_tracking_enabled||e.third_party_marketing_tracking_enabled}},987318:(e,t,i)=>{"use strict";i.d(t,{H:()=>a,o:()=>l});var n=i(425288);let{Provider:l,useHook:a}=(0,n.Z)("LimitedLogin")},945698:(e,t,i)=>{"use strict";i.d(t,{N4:()=>a,Wh:()=>n,hr:()=>l});let n=e=>e._('Log in to continue', 'limitedLogin.modalHeader.default', 'Default title on mobile web limited login modal'),l=e=>e._('You\'re almost there! Log in to access all of Pinterest', 'loginModal.limitedLogin.subheader', 'Subheader text on personalized login modal/flyout to remind users to log in'),a=({i18n:e,toFollow:t})=>t?e._('Log in to follow', 'limitedLogin.modalHeader.follow', 'Title on mobile web limited login modal to prompt users to login to follow a user or board.'):e._('Log in to unfollow', 'limitedLogin.modalHeader.unfollow', 'Title on mobile web limited login modal to prompt users to login to unfollow a user or board.')},881802:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>g,Bx:()=>s,F4:()=>o,OG:()=>a,Qj:()=>d,_6:()=>m,gv:()=>r,hg:()=>u,is:()=>h,jP:()=>_,lt:()=>l,oM:()=>c,wI:()=>p});var n=i(826067);let l=e=>e._('Log in to continue', 'limitedLogin.modalHeader.default', 'Default title on mobile web limited login modal'),a=e=>e.pathname,r=({firstName:e,i18n:t})=>e?(t._('{{ name }} invited you to join their board', 'limitedLogin.modalHeader.groupBoardCollab', 'Mobile Modal prompting users to join a friends({{ name }}) board')).replace("{{ name }}",e):t._('Your friends invited you to join their board', 'limitedLogin.modalHeader.groupBoardCollab', 'Mobile Modal prompting users to join a friends board'),o=e=>{let t=(0,n.mB)(e.search).board_url;if(t){let e=(0,n.Jx)(t),i=(0,n.XP)({accept_invite:!0,seamless:!0});return e.includes("?")?`${e}&${i}`:`${e}?${i}`}return e.pathname},s=e=>e._('Log in to save this Pin', 'limitedLogin.modalHeader.repin', 'Title on mobile web limited login modal to prompt users to login after they clicked save button.'),d=e=>{let t=e.pathname;if(t.startsWith("/pin/")){let e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/repin/`}return t},u=e=>e._('Log in to send this Pin', 'limitedLogin.modalHeader.send', 'Title on mobile web limited login modal to prompt users to login after they clicked send button.'),c=e=>e._('Log in to edit this Pin', 'limitedLogin.modalHeader.editPin', 'Title on mobile web limited login modal to prompt users to login after they clicked edit button.'),p=e=>{let t=e.pathname;if(t.startsWith("/pin/")){let e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/edit/`}return t},h=e=>e._('Log in to create a Pin or board', 'limitedLogin.modalHeader.create', 'Title on mobile web limited login modal to prompt users to login to create a Pin or board.'),_=e=>e._('Log in to hide this Pin', 'limitedLogin.modalHeader.hidePin', 'Title on mobile web limited login modal to prompt users to login after they clicked hide Pin button.'),m=e=>e._('Log in to share the profile', 'limitedLogin.modalHeader.shareProfile', 'Title on mobile web limited login modal to prompt users to login after they clicked share button on profile page.'),g=e=>e._('Log in to create a board', 'limitedLogin.modalHeader.createBoard', 'Title on mobile web limited login modal to prompt users to login to create a board.')},149823:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(898781),l=i(881802),a=i(987318),r=i(785893);function o({children:e,callbackFunction:t,modalHeader:i,nextLocation:o}){let s=(0,n.ZP)(),{viewer:d,loginForMore:u,limitedLoginModalSubheader:c,limitedLoginModalNextLocation:p}=(0,a.H)(),h="LIMITED_LOGIN"===d.type;return(0,r.jsx)("div",{onClickCapture:e=>{h&&(t&&t(),e&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()),null==u||u.setVisible(!0),null==c||c.setText(i||(0,l.lt)(s)),o&&(null==p||p.setRoute(o)))},children:e})}},927383:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(898781),l=i(50286),a=i(987318),r=i(945698);let o=()=>{let e=(0,n.ZP)(),t=(0,l.HG)(),{viewer:i,loginForMore:o,limitedLoginModalSubheader:s,limitedLoginModalNextLocation:d}=(0,a.H)(),u="LIMITED_LOGIN"===i.type;return u?({modalHeader:i,nextLocation:n})=>l=>{let a=null;l&&(l.nativeEvent&&l.nativeEvent instanceof Event?a=l:l.event&&(a=l.event)),a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation()),null==o||o.setVisible(!0),null==s||s.setText(i||(t?(0,r.hr)(e):(0,r.Wh)(e))),n&&(null==d||d.setRoute(n))}:({fn:e})=>e}},574724:(e,t,i)=>{"use strict";i.d(t,{Hn:()=>c,Jw:()=>m,L7:()=>n,Qc:()=>l,Tt:()=>y,UF:()=>d,UV:()=>r,W1:()=>a,Ws:()=>p,ZW:()=>s,cK:()=>g,cy:()=>_,o4:()=>h,tr:()=>u,vF:()=>o});let n=1,l=2,a="female",r="male",o="unspecified",s="en-US",d="US",u=3,c="has_done_closeup",p="Gender",h="InterestPicker",_="LoadingStep",m="AppInstall",g={NUX_GENDER_STEP_NAME:p,NUX_INTEREST_PICKER_STEP_NAME:h,NUX_LOADING_STEP_NAME:_,NUX_APP_INSTALL_STEP_NAME:m},y=2500},275445:(e,t,i)=>{"use strict";i.d(t,{Z:()=>k});var n,l,a=i(667294),r=i(167912),o=i(883119),s=i(898781),d=i(780280),u=i(985913),c=i(100183),p=i(391254),h=i(785893);let _=[`imageFadeOut {
276
+ 0% { opacity: 1 }
277
+ 60% { opacity: 1 }
278
+ 100% { opacity: 0 }
279
+ }`],m={imageFadeOut:"imageFadeOut 0.9s both"};function g({backgroundColor:e,cyclingImages:t,imgLabel:i,imageHeight:n,imageWidth:l}){var r,s,d,u,g,y,v,f;let[x,b]=(0,a.useState)(0);(0,a.useEffect)(()=>{let e=setInterval(()=>{b(e=>e+1)},900);return()=>clearInterval(e)},[]);let P=x%t.length,w=(x+1)%t.length;return r=t[P],s=t[w],(0,h.jsxs)(o.xu,{position:"relative",width:l,height:n,children:[(0,h.jsx)(o.xu,{position:"absolute",top:!0,left:!0,width:l,height:n,children:(0,h.jsx)(o.Ee,{alt:i,color:e,fit:"cover",naturalHeight:null!==(d=s.height)&&void 0!==d?d:1,naturalWidth:null!==(u=s.width)&&void 0!==u?u:1,src:null!==(g=s.url)&&void 0!==g?g:"",children:(0,h.jsx)(o.xu,{color:"selected",opacity:.3,height:"100%"})})}),(0,h.jsxs)(o.xu,{position:"absolute",top:!0,left:!0,width:l,height:n,dangerouslySetInlineStyle:{__style:{animation:m.imageFadeOut,WebkitAnimation:m.imageFadeOut}},children:[(0,h.jsx)(p.Z,{unsafeCSS:(0,c.Ll)(_)}),(0,h.jsx)(o.Ee,{alt:i,color:e,fit:"cover",naturalHeight:null!==(y=r.height)&&void 0!==y?y:1,naturalWidth:null!==(v=r.width)&&void 0!==v?v:1,src:null!==(f=r.url)&&void 0!==f?f:"",children:(0,h.jsx)(o.xu,{color:"selected",opacity:.3,height:"100%"})})]})]},x)}let y=void 0!==n?n:n=i(398301);function v({interestRef:e,imageHeight:t,imageWidth:i}){var n,l,a,s,d,u,c,p,_,m,v,f;let x=(0,r.useFragment)(y,e);return null!=x&&null!==(n=x.cyclingImages)&&void 0!==n&&n.length?(0,h.jsx)(g,{backgroundColor:null!==(l=x.backgroundColor)&&void 0!==l?l:"",cyclingImages:null!==(a=x.cyclingImages.filter(Boolean).map(({height:e,width:t,url:i})=>({height:null!=e?e:0,width:null!=t?t:0,url:null!=i?i:""})))&&void 0!==a?a:[],imageHeight:t,imageWidth:i,imgLabel:null!==(s=x.name)&&void 0!==s?s:""}):(0,h.jsx)(o.Ee,{alt:null!==(d=null==x?void 0:x.name)&&void 0!==d?d:"",color:null!==(u=null==x?void 0:x.backgroundColor)&&void 0!==u?u:"",fit:"cover",naturalHeight:null!==(c=null==x?void 0:null===(p=x.images)||void 0===p?void 0:p.height)&&void 0!==c?c:1,naturalWidth:null!==(_=null==x?void 0:null===(m=x.images)||void 0===m?void 0:m.width)&&void 0!==_?_:1,src:null!==(v=null==x?void 0:null===(f=x.images)||void 0===f?void 0:f.url)&&void 0!==v?v:"",children:(0,h.jsx)(o.xu,{color:"selected",opacity:.3,height:"100%"})})}let f={xl_144:{imageWidth:144,imageHeight:144,fontSize:"300"},md_120:{imageWidth:120,imageHeight:120,fontSize:"200"}},x=f.xl_144;function b({backgroundColor:e,clickHandler:t,index:i,isHover:n,isSelected:l,isTopicEdu:r,size:c,interestName:p,imageLabel:_,totalInterests:m,image:y,...b}){var P;let w=(0,s.ZP)(),{isRTL:S}=(0,d.B)(),{fontSize:k,imageWidth:j,imageHeight:A}=f[c]||x,[C,D]=(0,a.useState)(!1),E=m&&i?(0,u.Z)(w._('{{ interestName }}, list {{ interestsPosition }} of {{ interestsCount }}', 'nux.interestStep.interestForLists', 'Label for interest card with description for lists'),{interestName:p,interestsPosition:i.toString(),interestsCount:m.toString()}):(0,u.Z)(w._('{{ interestName }} interest card', 'nux.interestStep.interest', 'Label for interest card'),{interestName:p}),I=(0,h.jsx)(o.zd,{rounding:4,children:(0,h.jsx)(o.xu,{rounding:4,position:"relative",display:"inlineBlock",width:j,height:A,"data-test-id":"nux-picker-topic",children:(0,h.jsxs)(o.iP,{accessibilityLabel:E,fullHeight:!0,onBlur:()=>D(!1),onFocus:()=>D(!0),onTap:t,children:[(()=>{var t,i,l;let a=b.cyclingImages?b.cyclingImages:[];if(n||C){let{interestRef:t}=b;if(t)return(0,h.jsx)(v,{imageHeight:A,imageWidth:j,interestRef:t});if(a.length>0)return(0,h.jsx)(g,{backgroundColor:e,cyclingImages:a,imageHeight:A,imageWidth:j,imgLabel:_})}return(0,h.jsx)(o.Ee,{alt:_,color:e,fit:"cover",naturalHeight:null!==(t=null==y?void 0:y.height)&&void 0!==t?t:1,naturalWidth:null!==(i=null==y?void 0:y.width)&&void 0!==i?i:1,src:null!==(l=null==y?void 0:y.url)&&void 0!==l?l:"",children:(0,h.jsx)(o.xu,{color:"selected",opacity:.3,height:"100%"})})})(),l&&(0,h.jsxs)(o.xu,{height:"100%",width:"100%",position:"absolute",top:!0,children:[(0,h.jsx)(o.xu,{color:"selected",opacity:.7,height:"100%"}),(0,h.jsx)(o.xu,{position:"absolute",left:S,marginEnd:2,marginStart:2,marginTop:2,right:!S,top:!0,children:(0,h.jsx)(o.XZ,{checked:!0,id:"selectedTopic",onChange:()=>{}})})]}),(0,h.jsx)(o.xu,{position:"absolute",bottom:!0,left:!0,right:!0,margin:2,"data-test-id":"nux-picker-topic-label",children:(0,h.jsx)(o.xv,{align:"start",color:"inverse",size:k,weight:"bold",overflow:"breakWord",children:p})})]})})});return P=!r&&(l||n||C),(0,h.jsx)(o.xu,{borderStyle:P?"lg":"none",dangerouslySetInlineStyle:{__style:P?{borderColor:"black"}:{borderStyle:"none"}},width:j,height:A,rounding:4,color:"default",display:"flex",justifyContent:"center",alignItems:"center",children:(0,h.jsx)(o.xu,{width:P?j-8:j,height:P?A-8:A,dangerouslySetInlineStyle:{__style:{borderRadius:P?14:16}},overflow:"hidden",children:(0,h.jsx)(o.xu,{margin:P?-1:0,children:I})})})}function P({clickHandler:e,interest:t,index:i,isHover:n,isSelected:l,isTopicEdu:a,size:r,totalInterests:o}){let{images:s,name:d,label:u,background_color:c}=t;return(0,h.jsx)(b,{backgroundColor:c,clickHandler:e,interestName:d,image:s["400x"],imageLabel:null!=u?u:d,index:i,isHover:n,isSelected:l,isTopicEdu:a,size:r,totalInterests:o})}let w=void 0!==l?l:l=i(448447);function S({clickHandler:e,index:t,isHover:i,isSelected:n,isTopicEdu:l,size:a,totalInterests:o,interestRef:s}){var d,u,c;let p=(0,r.useFragment)(w,s);return(0,h.jsx)(b,{backgroundColor:null!==(d=p.backgroundColor)&&void 0!==d?d:"",clickHandler:e,image:p.images,imageLabel:null!==(u=p.name)&&void 0!==u?u:"",index:t,interestName:null!==(c=p.name)&&void 0!==c?c:"",isHover:i,isSelected:n,isTopicEdu:l,size:a,totalInterests:o,interestRef:p})}function k({clickHandler:e,index:t,isHover:i,isSelected:n,isTopicEdu:l,size:a,totalInterests:r,interest:o,interestRef:s}){return s?(0,h.jsx)(S,{clickHandler:e,index:t,isHover:i,isSelected:n,isTopicEdu:l,size:a,totalInterests:r,interestRef:s}):o&&(0,h.jsx)(P,{clickHandler:e,index:t,isHover:i,isSelected:n,isTopicEdu:l,size:a,totalInterests:r,interest:o})}},327212:(e,t,i)=>{"use strict";i.d(t,{Z:()=>k});var n=i(667294),l=i(376030),a=i(883119),r=i(898781),o=i(223815),s=i(829407),d=i(391254),u=i(785893);let c=`
280
+ @keyframes baseEduToastIconScale {
281
+ 0% {
282
+ transform: scale(0)
283
+ }
284
+ 30% {
285
+ transform: scale(1.2);
286
+ }
287
+ 50% {
288
+ transform: scale(1);
289
+ }
290
+ }
291
+ `;function p({addedStyles:e,button:t,headerText:i,icon:l,iconOverride:r,minHeight:o,subHeaderText:s}){return(0,u.jsx)(a.xu,{display:"flex",justifyContent:"center",width:"100vw",paddingX:2,children:(0,u.jsxs)(a.xu,{alignContent:"center",alignItems:"center",bottom:!0,color:"default",dangerouslySetInlineStyle:{__style:{boxShadow:"0 3px 6px rgba(0,0,0,0.18)",transform:"translateY(-20px)",...e}},display:"flex",minHeight:o||75,padding:6,position:"relative",rounding:4,width:"100%",children:[(()=>{let e=r||(0,u.jsxs)(n.Fragment,{children:[(0,u.jsx)(d.Z,{unsafeCSS:c}),(0,u.jsx)(a.xu,{alignItems:"center",color:"education","data-test-id":"pin-save-toast",direction:"column",dangerouslySetInlineStyle:{__style:{animation:"baseEduToastIconScale 3s"}},display:"flex",height:60,justifyContent:"center",minHeight:60,minWidth:60,rounding:"circle",width:60,children:(0,u.jsx)(a.JO,{accessibilityLabel:l.accessibilityLabel,color:l.color,dangerouslySetSvgPath:l.dangerouslySetSvgPath,icon:l.icon,inline:l.inline,size:l.size})})]});return(0,u.jsx)(a.xu,{marginEnd:4,children:e})})(),(0,u.jsxs)(a.xu,{marginEnd:"auto","data-test-id":"pin-save-toast-header",children:[(0,u.jsx)(a.xv,{color:"default",weight:"bold",children:i}),!!s&&(0,u.jsx)(a.xu,{paddingY:1,children:(0,u.jsx)(a.xv,{size:"300",color:"default",children:s})})]}),(0,u.jsx)(a.xu,{display:"flex",flex:"shrink",marginStart:2,children:t})]})})}var h=i(759929);function _(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let m="cubicBezier(0.25, 0.1, 0.25, 1)",g="encourageToastIconContainer",y="encourageToastIconRadiateBg",v="encourageToastIconRadiateRing",f={targets:`#${g}`,duration:300,scale:1.4,easing:m},x={targets:`#${g}`,duration:300,scale:1,easing:m,endDelay:1e3},b={targets:`#${g}`,duration:300,scale:.42,easing:m},P={targets:`#${y}`,duration:400,opacity:0,scale:1.6,easing:m},w={targets:`#${v}`,duration:650,opacity:0,scale:2,easing:m};class S extends n.PureComponent{constructor(...e){super(...e),_(this,"delayTimer",null),_(this,"requestAnimationFrameId",null),_(this,"playAnimation",()=>{this.requestAnimationFrameId=window.requestAnimationFrame(()=>{(0,l.Z)(P),(0,l.Z)(w),(0,l.Z)(f).finished.then(()=>{(0,l.Z)(x).finished.then(()=>{l.Z.set(`#${g}`,{transformOrigin:"top right"}),(0,l.Z)(b)})})})}),_(this,"getHeaderText",()=>{let{text:e}=this.props;return Array.isArray(e)?e[0]:e}),_(this,"getIconProps",()=>({accessibilityLabel:this.props.i18n._('Check icon', 'Label for check icon on toast shown after board create', 'Label for check icon on toast shown after board create'),color:"inverse",icon:"check",size:30})),_(this,"getSubHeaderText",()=>{let{text:e}=this.props;return e instanceof Array&&e.length>1&&e[1]?e[1]:""}),_(this,"renderAnimatedIcon",()=>(0,u.jsxs)(a.xu,{height:68,position:"relative",width:68,children:[(0,u.jsx)(a.xu,{"data-test-id":"pin-save-toast",width:60,height:60,overflow:"hidden",position:"absolute",rounding:4,dangerouslySetInlineStyle:{__style:{left:"4px",top:"4px"}},children:this.props.thumbnail}),(0,u.jsxs)(a.xu,{id:g,height:68,width:68,dangerouslySetInlineStyle:{__style:{transform:"scale(0)"}},position:"absolute",children:[(0,u.jsx)(a.xu,{color:"infoBase",id:y,width:68,height:68,position:"absolute",rounding:"circle",dangerouslySetInlineStyle:{__style:{left:"0px",top:"0px",transform:"scale(0)"}}}),(0,u.jsx)(a.xu,{id:v,width:66,height:66,position:"absolute",rounding:"circle",opacity:1,dangerouslySetInlineStyle:{__style:{borderWidth:"2px",borderStyle:"solid",borderColor:"#0074e8",left:"1px",top:"1px",transform:"scale(0)"}}}),(0,u.jsx)(a.xu,{alignItems:"center",color:"infoBase",direction:"column",display:"flex",height:68,justifyContent:"center",minHeight:68,minWidth:68,position:"absolute",rounding:"circle",width:68,children:(0,u.jsx)(a.JO,{accessibilityLabel:this.props.i18n._('Check icon', 'Label for check icon on toast shown after board create', 'Label for check icon on toast shown after board create'),color:"inverse",icon:"check",size:30})})]})]}))}componentDidMount(){this.delayTimer=setTimeout(this.playAnimation,700)}componentWillUnmount(){this.delayTimer&&clearTimeout(this.delayTimer),this.requestAnimationFrameId&&window.cancelAnimationFrame(this.requestAnimationFrameId)}render(){let{isRepinToExistingBoard:e,button:t}=this.props;return(0,u.jsx)(p,{button:t,headerText:this.getHeaderText(),icon:this.getIconProps(),iconOverride:e?void 0:this.renderAnimatedIcon(),subHeaderText:this.getSubHeaderText()})}}function k(e){let{duration:t,onHide:i}=e,l=(0,r.ZP)(),[d,c]=(0,n.useState)(!1),[p,_]=(0,n.useState)(!1),m=(0,n.useRef)(),g=()=>{c(!0),m.current=setTimeout(i,200)},y=()=>{m.current&&clearTimeout(m.current)},v=()=>{m.current=setTimeout(g,t||h.w)};(0,s.Z)(()=>(setTimeout(()=>_(!0),100),v(),y));let f=(0,u.jsx)(S,{...e,i18n:l});return e.href&&(f=(0,u.jsx)(a.rU,{href:e.href,onClick:g,rounding:"pill",tapStyle:"none",children:f})),(0,u.jsx)(o.Z,{children:(0,u.jsx)(a.mh,{children:(0,u.jsx)(a.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{...function({hiding:e,visible:t}){return t?e?{opacity:0,transform:"scale(1.0)",transition:"opacity transform .2s"}:{opacity:1,transition:"all 0.7s cubic-bezier(.19, 1.15, .48, 1)"}:Object.freeze({})}({hiding:d,visible:p})}},justifyContent:"center",position:"fixed",width:"100%",display:"flex",zIndex:h.k,children:f})})})}},56632:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(883119),l=i(898781),a=i(223019),r=i(785893);let o=()=>{let e=(0,l.ZP)();return e._('Sweet save!', 'Header text on toast that appears after user creates their first board', 'Header text on toast that appears after user creates their first board')},s=()=>{let e=(0,l.ZP)();return e._('All your boards live on your profile', 'Subheader text on toast that appears after user creates their first board', 'Subheader text on toast that appears after user creates their first board')},d=({boardId:e,isFBC:t,viewType:i})=>({duration:5e3,thumbnail:(0,r.jsx)(n.xu,{"data-test-id":"pin-save-toast",children:(0,r.jsx)(a.Z,{boardId:e,viewType:i,type:"thumbnail"})}),text:t?[(0,r.jsx)(o,{},"0"),(0,r.jsx)(s,{},"1")]:void 0})},662089:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(702664),l=i(343341),a=i(574724),r=i(639952);function o(){let e=(0,n.useDispatch)(),{showToast:t,showOneToast:i}=(0,l.F9)();return{showToast:t,showOneToast:i,showRepinConfirmation:(i,n)=>{n||e((0,r.WF)()),setTimeout(()=>{n||e((0,r.a5)()),t(i)},a.Tt)}}}},348854:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>Y,Io:()=>W});var n=i(667294),l=i(702664),a=i(616550),r=i(883119),o=i(112690),s=i(643010),d=i(332611),u=i(356997),c=i(499128),p=i(898781),h=i(349700),_=i(313047),m=i(542554),g=i(773285),y=i(784590),v=i(50286),f=i(411465),x=i(19121),b=i(223019),P=i(427806),w=i(830157),S=i(927383),k=i(56632),j=i(327212);let A=[503459,505150,503761,505139];var C=i(662089),D=i(781165),E=i(177891),I=i(12918),T=i(139574),F=i(850431),z=i(404508),R=i(766935),L=i(121151),M=i(248327),Z=i(72566),B=i(785893);function O({user:e,handleSelect:t,isSelected:i}){var n;let l=null!==(n=e.first_name)&&void 0!==n?n:e.username;return(0,B.jsx)(r.iP,{onTap:t,children:(0,B.jsxs)(r.xu,{paddingY:2,paddingX:1,display:"flex",direction:"row",alignItems:"center",children:[(0,B.jsx)(r.xu,{width:44,rounding:"circle",color:i?"selected":"default",dangerouslySetInlineStyle:{__style:{outline:i?"2px solid black":""}},children:(0,B.jsx)(u.qE,{name:null!=l?l:"",src:e.image_medium_url,outline:!0})}),(0,B.jsxs)(r.xu,{paddingX:3,children:[(0,B.jsx)(r.xv,{size:"200",children:e.full_name}),(0,B.jsxs)(r.xv,{size:"100",children:["@",e.username]})]})]})})}function N({shareSuggestions:e,setSelectedCollaborators:t,selectedCollaborators:i,onDismiss:a}){var o;let[s,d]=(0,n.useState)(""),u=(0,p.ZP)(),c=(0,x.Z)(),h=(0,l.useDispatch)(),[_,m]=(0,n.useState)(i),g=u._('Invite friends', 'duplo.boardCreate.inviteFriendsTitle', 'title for modal to invite friends to collaborate'),y=u._('Invite friends', 'duplo.boardCreate.inviteFriendsAccessbilityLabel', 'accessibility label to invite friends to collaborate'),v=(0,l.useSelector)(({resources:e})=>{let{ShareSuggestionsTypeaheadResource:t}=e,i={};for(let e of Object.keys(t||{})){let{data:n}=t[e];n&&n.items&&(i[e]=n.items)}return i}),f=e=>{(0,R.Z)(h((0,M.U)("ShareSuggestionsTypeaheadResource",e)),200)},b=null!==(o=c.id)&&void 0!==o?o:"",P=`term="${s}",user="${b}"`,w=`term="${s.slice(0,-1)}",user="${b}"`,S=v[P]||v[w],k=null!=S?S:e;return(0,B.jsxs)(L.ZP,{role:"dialog",onDismiss:a,accessibilityModalLabel:y,children:[(0,B.jsx)(r.xu,{padding:3,children:(0,B.jsxs)(r.kC,{alignItems:"center",justifyContent:"start",children:[(0,B.jsx)(r.hU,{accessibilityLabel:u._('Cancel', 'boardPage.CreateModal.CancelButton', 'Button to exit the add collaborators modal'),icon:"cancel",onClick:a}),(0,B.jsx)(r.kC.Item,{flex:"grow",children:(0,B.jsx)(r.X6,{align:"center",size:"300",children:g})}),(0,B.jsx)(r.zx,{onClick:()=>{t(_),a()},color:"red",text:u._('Done', 'boardPage.CreateModal.ButtonText', 'text for done button')})]})}),(0,B.jsxs)(r.xu,{width:"100%",height:"calc(90vh - 50px)",display:"flex",overflow:"hidden",alignContent:"center",color:"default",paddingX:4,direction:"column",children:[(0,B.jsx)(r.xu,{"data-test-id":"contact-suggestion-search-field",paddingY:2,color:"default",fit:!0,children:(0,B.jsx)(Z.Z,{accessibilityLabel:u._('search contact', 'Accessibility label for searchbar on share menu', 'Accessibility label for searchbar on share menu'),id:"contactsSuggestSearchField",onChange:({value:e})=>{let t={options:{user:c.id,term:e}};d(e),f(t)},placeholder:u._('Search by name or email', 'Placeholder text for searchbar on share menu', 'Placeholder text for searchbar on share menu'),value:s,autoFocus:!1})}),(0,B.jsxs)(r.xu,{maxHeight:"100%",overflow:"scrollY",children:[_&&Array.from(_.values()).map(e=>(0,B.jsx)(O,{user:e,isSelected:!0,handleSelect:()=>{let t=new Map(_);t.delete(e.id),m(t)}},e.username)),k&&k.map(e=>e.username&&!_.get(e.id)?(0,B.jsx)(O,{user:e,isSelected:!1,handleSelect:()=>{let t=new Map(_);t.set(e.id,e),m(t)}},e.username):null)]})]})]})}var K=i(166753),U=i(580751),H=i(17676),V=i(109892);function G(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let W=(e,t,i)=>{let n=i._('Saved to new board', 'Board saved message if the new board\'s name is not found', 'Board saved message if the new board\'s name is not found'),l=t?(0,h.nk)(i._('Saved to {{ board }}', 'Board saved message', 'Board saved message'),{board:t}).join(" "):n;return{text:l,href:e}};function $({user:e,isSelected:t,onClick:i}){var n;let l=(0,p.ZP)(),a=null!==(n=e.first_name)&&void 0!==n?n:e.username;return(0,B.jsxs)(r.xu,{paddingY:2,display:"flex",direction:"row",justifyContent:"between",children:[(0,B.jsxs)(r.kC,{alignItems:"center",direction:"row",justifyContent:"start",children:[(0,B.jsx)(r.xu,{width:40,children:(0,B.jsx)(u.qE,{name:null!=a?a:"",src:e.image_medium_url,outline:!0})}),(0,B.jsxs)(r.xu,{paddingX:2,children:[(0,B.jsx)(r.xv,{size:"200",children:e.full_name}),(0,B.jsxs)(r.xv,{size:"100",children:["@",e.username]})]})]}),(0,B.jsx)(r.zx,{selected:t,text:t?l._('Added', 'duplo.createboardpage.addCollaborators.added', 'Button text for an invited collaborator'):l._('Add', 'duplo.createboardpage.addCollaborators.add', 'Button text to invite a collaborator'),onClick:i})]},e.username)}class q extends n.PureComponent{constructor(...e){var t;super(...e),t=this,G(this,"state",{boardName:this.props.match.params.boardName||"",canSubmit:!!this.props.match.params.boardName,errorBoardNames:[],secret:!1,submitting:!1,collaborators:new Map,isCollaboratorModalOpen:!1}),G(this,"handleRepinSuccess",()=>{let{location:e,directSaveExpEnabled:t}=this.props,i=e.state&&e.state.pinDescription?e.state.pinDescription:"";this.props.history.go(i||t?-3:-2)}),G(this,"onSwitchToggle",()=>{this.setState(({secret:e})=>({secret:!e}))}),G(this,"onInputChange",e=>{let t=e.target.value,{length:i}=t.trim();this.setState(({errorBoardNames:e})=>({boardName:t,canSubmit:i>0&&i<=100&&!e.includes(t)}))}),G(this,"onCreateClick",this.props.requireAuthForLimitedLogin({fn:()=>{let{boardName:e,secret:i,submitting:n,collaborators:l}=this.state,{checkExperiment:a,createPin:o,createBoard:s,inviteCollaborators:d,directSaveExpEnabled:u,dispatchOneTapSave:p,dispatchUnsavePin:_,history:m,i18n:g,location:y,match:v,pin:f,repinContext:x,repinToBoard:P,showRepinConfirmation:S,showToast:A,undoSaveAction:C}=this.props;if(n)return;let D=e=>m.push(e),E=i?"secret":"public",{pinId:I}=v.params,T=y.state?y.state.pinnedToBoardId:"",F=this.props.i18n._('Created Board!', 'Text in toast after creating a new board', 'Text in toast after creating a new board');if(I){let i=(0,w.Z)((y.state||{}).trackingParams,null==f?void 0:f.tracking_params);this.setState({submitting:!0}),s({name:e,pin:f,privacy:E}).then(async function(n){var l,r,o;let s=null!==(l=n.url)&&void 0!==l?l:"";t.setState({submitting:!1}),t.props.logContextEvent({event_type:20,view_type:3,object_id_str:I});let d=n.id,h=y.state&&y.state.pinDescription?y.state.pinDescription:"",{isFirstBoardCreateActive:v,isEditingPin:b,pinBoardId:w,pinSectionId:E}=y.state||{},{href:F,text:z}=W(s,e,g),{duration:R,text:L,thumbnail:M}=(0,k.Z)({boardId:d,isFBC:v,viewType:3});h||u?P({checkExperiment:a,i18n:t.props.i18n,logContextEvent:t.props.logContextEvent,pinId:I,boardId:d,onSuccess:()=>{t.completeFirstExperiences()},onUndo:(e,t,n,l,a)=>C({pinId:e,newPinId:t,boardId:n,boardSectionId:l,i18n:a,clientTrackingParams:i}),showRepinConfirmation:e=>A(e),trackingParams:{clientTrackingParams:i,pinnedToBoardId:T},historyPush:D,savePinId:null!==(r=null==x?void 0:x.save)&&void 0!==r?r:()=>{}}).then(e=>{u&&e&&p({boardId:d,localPinId:e.id,pinId:I})}).catch(e=>{A(({hideToast:i})=>(0,B.jsx)(c.ZP,{type:"error",text:e.message||t.props.i18n._('Sorry! Something went wrong on our end.', 'error completing repin', 'error completing repin'),onHide:i}))}):(t.completeFirstExperiences(()=>S(({hideToast:e})=>(0,B.jsx)(j.Z,{duration:R,href:F,onHide:e,text:L||z,thumbnail:M}))),t.props.logContextEvent({event_type:5,view_type:3,component:7,object_id_str:I,clientTrackingParams:i,aux_data:{board_id:T,destination_board_id:d}})),b&&f&&(await _({pinId:f.id,pinBoardId:w,pinSectionId:E,clientTrackingParams:i}),null!==(o=f.pinned_to_board)&&void 0!==o&&o.url&&m.replace(f.pinned_to_board.url)),m.push(`/pin/${I}/`)},t=>{A(({hideToast:e})=>(0,B.jsx)(c.ZP,{text:t.message||this.props.i18n._('Sorry! Something went wrong on our end.', 'error creating board', 'error creating board'),type:"error",onHide:e})),this.setState(({errorBoardNames:t})=>({errorBoardNames:t.concat(e),canSubmit:!1,submitting:!1}))})}else this.setState({submitting:!0}),s({name:e,pin:f,privacy:E}).then(e=>{let t=this.props.location.state;if(!t||0===Object.keys(t).length){this.setState({submitting:!1});let{duration:t,text:i,thumbnail:n}=(0,k.Z)({boardId:e.id,viewType:92}),a=Array.from(l.keys());this.completeFirstExperiences(()=>d&&d(e.id,a)),A(({hideToast:e})=>(0,B.jsx)(j.Z,{duration:t,onHide:e,text:i||F,thumbnail:n})),e.url&&m.replace(e.url);return}let{description:i,guid:n,method:a,url:s}=t,u=[];if("scraped"===t.method)t.imgData.forEach(t=>u.push(o({link:s,image_url:t,description:i,board_id:e.id,method:a,guid:n})));else{let{base64Image:l,imageUrl:r}=t;u.push(o({link:s,image_url:r,image_base64:l,description:i,board_id:e.id,method:a,guid:n}))}Promise.all(u).then(t=>{A(({hideToast:e})=>(0,B.jsx)(c.ZP,{text:F,onHide:e})),A(({hideToast:t})=>(0,B.jsx)(c.ZP,{text:(0,B.jsx)(r.xv,{children:(0,h.nk)(this.props.i18n._('Saved to {{ boardName }}', 'CreateBoardPage.Toast.Message', 'Confirmation message after saving Board.boardName: board name '),{boardName:(0,B.jsx)(r.xv,{weight:"bold",children:e.name})})}),_dangerouslySetThumbnail:(0,B.jsx)(r.xu,{width:32,height:32,children:(0,B.jsx)(b.Z,{boardId:e.id,type:"thumbnail"})}),onHide:t})),this.props.logContextEvent({event_type:1,view_type:92,component:7,object_id_str:t[0].resource_response.data.id}),this.setState({submitting:!1}),e.url&&m.replace(e.url)},()=>{A(({hideToast:e})=>(0,B.jsx)(c.ZP,{text:this.props.i18n._('Sorry! Something went wrong on our end.', 'error during pin creation', 'error during pin creation'),onHide:e})),this.setState({submitting:!1})})},e=>{let t;this.setState({submitting:!1}),96===e.api_error_code&&e.message&&(t=(0,B.jsx)(r.xv,{children:e.message})),A(({hideToast:i})=>(0,B.jsx)(c.ZP,{text:t||e.message_detail||e.message||this.props.i18n._('Sorry! Something went wrong on our end.', 'error creating board', 'error creating board'),type:"error",onHide:i}))})}})),G(this,"completeFirstExperiences",e=>{let{closeupExperience:t,repinExperience:i,completeExperience:n}=this.props;if(t||i){let l=[];t&&t.placement_id&&A.includes(t.experience_id)&&l.push(n(t.placement_id,t.experience_id)),i&&i.placement_id&&501032===i.experience_id&&l.push(n(i.placement_id,i.experience_id)),l.length>0&&Promise.all(l).then(()=>{this.handleRepinSuccess(),e&&e()})}else this.handleRepinSuccess(),e&&e()})}componentDidMount(){let{repinExperience:e,viewExperience:t}=this.props;e&&t(e.placement_id,e.experience_id)}render(){let{i18n:e,isPrivateProfile:t,contactSuggestions:i,checkExperiment:n}=this.props,{collaborators:l,isCollaboratorModalOpen:a}=this.state,{anyEnabled:o,group:d}=n("mweb_board_create_add_collaborators"),u=o&&"enabled_suggested_contacts"===d,c=(0,B.jsx)(r.iP,{onTap:()=>{this.setState({isCollaboratorModalOpen:!0})},children:(0,B.jsxs)(r.xu,{display:"flex",direction:"row",alignItems:"center",paddingY:1,children:[(0,B.jsx)(r.hU,{accessibilityLabel:e._('Invite collaborators', 'BoardEdit.BoardCollaboratorsAndInviteSection', 'Accessibility label on button'),bgColor:"lightGray",icon:"person-add",iconColor:"darkGray",size:"md"}),(0,B.jsx)(r.xu,{paddingX:2,children:(0,B.jsx)(r.xv,{size:"200",weight:"bold",children:e._('Invite friends', 'duplo.createboardpage.inviteFriendsLabel', 'Invite friends label for the create board page')})})]})}),p=e=>{let t=new Map(l);t.get(e.id)?t.delete(e.id):t.set(e.id,e),this.setState({collaborators:t})},h=(0,B.jsx)(r.xu,{children:l.size>0&&Array.from(l.values()).map(e=>(0,B.jsx)($,{user:e,isSelected:!0,onClick:()=>{p(e)}},e.username))}),g=u&&i&&(0,B.jsx)(r.xu,{children:i.slice(0,3).map(e=>e.id&&!l.get(e.id)?(0,B.jsx)($,{user:e,isSelected:!1,onClick:()=>{p(e)}},e.username):null)});return(0,B.jsxs)(m.default,{hasFixedHeader:!0,children:[(0,B.jsx)(P.Z,{text:e._('Create a Board', 'duplo.createboardpage.accessibilityModalLabel', 'Accessibility label for the create board page')}),a&&(0,B.jsx)(N,{shareSuggestions:i,setSelectedCollaborators:e=>{this.setState({collaborators:e})},selectedCollaborators:l,onDismiss:()=>{this.setState({isCollaboratorModalOpen:!1})}}),(0,B.jsx)(_.FixedHeader,{children:(0,B.jsxs)(r.kC,{alignItems:"center",justifyContent:"start",children:[(0,B.jsx)(r.xu,{flex:"none",marginStart:-2,children:(0,B.jsx)(z.Z,{})}),(0,B.jsx)(r.kC,{alignItems:"stretch",flex:"grow",justifyContent:"center",children:(0,B.jsx)(r.xv,{align:"center",weight:"bold",children:this.props.i18n._('Create board', 'Label during board creation', 'Label during board creation')})}),(0,B.jsx)(r.kC,{alignItems:"stretch",flex:"none",justifyContent:"end",children:(0,B.jsx)(r.xu,{"data-test-id":"createBoardButton",children:(0,B.jsx)(r.zx,{fullWidth:!0,onClick:this.onCreateClick,color:"red",size:"sm",text:this.props.i18n._('Create', 'Create board button', 'Create board button'),disabled:!this.state.canSubmit||this.state.submitting})})})]})}),!o&&(0,B.jsx)(r.iz,{}),(0,B.jsxs)(r.xu,{paddingY:3,paddingX:4,children:[(0,B.jsx)(r.__,{htmlFor:"boardNameInput",children:(0,B.jsx)(r.xv,{size:"200",children:this.props.i18n._('Board name', 'duplo.createboardpage.inputPlaceholder', 'Label during board creation')})}),(0,B.jsx)("input",{id:"boardNameInput",placeholder:o?e._('Give your board a title', 'duplo.createboardpage.inputLabel', 'Placeholder text for create board'):e._('Add', ' - ', ' -- '),value:this.state.boardName,style:{color:(0,s.Yc)()?"#fff":"#333",fontSize:16,fontWeight:"semibold",background:"none",outline:"none",border:"none",marginTop:"4px",width:"100%"},onChange:this.onInputChange})]}),o&&(0,B.jsxs)(r.xu,{paddingX:4,paddingY:3,children:[(0,B.jsxs)(r.xv,{size:"200",children:[this.props.i18n._('Collaborators', 'BoardForm.BoardFormSecretToggle.subText', 'Label during board creation')," "]}),h,u&&g,c]}),!o&&(0,B.jsx)(r.iz,{}),(0,B.jsxs)(r.xu,{paddingX:4,paddingY:3,children:[o&&(0,B.jsx)(r.xv,{size:"200",children:e._('Privacy', 'BoardForm.BoardFormSecretToggle.text', 'protected board')}),t?(0,B.jsx)(r.kC,{alignItems:"start",direction:"column",gap:2,children:(0,B.jsx)(r.xv,{color:"subtle",children:e._('This board will only be visible to you', 'BoardForm.BoardFormSecretToggle.subText', 'protected board')})}):(0,B.jsxs)(r.xu,{paddingY:2,display:"flex",justifyContent:"between",children:[(0,B.jsxs)(r.__,{htmlFor:"secretToggle",children:[(0,B.jsx)(r.xv,{weight:o?"bold":"normal",children:o?this.props.i18n._('Make this board secret', 'duplo.createboardpage.toggle', 'Toggle during board creation'):this.props.i18n._('Keep board secret', 'Toggle during board creation', 'Toggle during board creation')}),o&&(0,B.jsx)(r.xv,{size:"200",color:"subtle",children:this.props.i18n._('Only you and collaborators will see this board', 'duplo.createboardpage.toggleSubtext', 'Toggle description during board creation')})]}),(0,B.jsx)(r.rs,{id:"secretToggle",switched:this.state.secret,onChange:this.onSwitchToggle})]})]})]})}}function Y(e){let t=(0,a.useHistory)(),i=(0,a.useLocation)(),n=(0,a.useRouteMatch)(),r=(0,V.Z)(),s=(0,f.Z)(),u=(0,p.ZP)(),c=(0,S.Z)(),h=(0,x.Z)(),_=(0,o.Z)(),m=(0,d.be)(),b=(0,d.Ig)(),P=(0,v.ZP)(),{shareSuggestions:k}=(0,H.E)(),{isLoaded:j}=(0,y.Z)({name:"ShareSuggestionsResource",options:{field_set_key:"default",hide_group_conversations:!0},noCache:!0}),A=(0,D.DK)(),z=(0,l.useDispatch)(),R=(0,U.M)(),L=(0,l.useSelector)(({experiences:e})=>e[1000112]),M=(0,l.useSelector)(({experiences:e})=>e[1000153]),{showRepinConfirmation:Z,showToast:O}=(0,C.Z)(),{checkExperiment:N}=(0,g.F)(),G=!!h.isPrivateProfile&&N("mweb_hide_u16_board").anyEnabled,W=N("mweb_direct_save_from_grid_v2",{dangerouslySkipActivation:!0}).anyEnabled||N("mweb_direct_save_from_grid_v2_new_user",{dangerouslySkipActivation:!0}).anyEnabled;if(!h.isAuth||n.params.pinId&&s||"desktop"===P)return(0,B.jsx)(a.Redirect,{to:"/"});let $=j&&k[""]||[];return(0,B.jsx)(q,{...e,closeupExperience:L,completeExperience:(e,t)=>z(m(e,t)),createBoard:({name:e,pin:t,privacy:l})=>{let{pinId:a}=n.params,o=i.state&&i.state.pinDescription?i.state.pinDescription:"";if(!a||o)return r({boardCreateOptions:{name:e,privacy:l}});{let n=(0,w.Z)((i.state||{}).trackingParams,null==t?void 0:t.tracking_params);return r({boardCreateOptions:{name:e,privacy:l,initial_pins:[a],initial_pin_client_tracking_params:[n]}})}},checkExperiment:N,createPin:e=>z((0,I.i)(e)),contactSuggestions:$,directSaveExpEnabled:W,dispatchOneTapSave:e=>z((0,E.a)({...e})),dispatchUnsavePin:({pinId:e,pinBoardId:t,pinSectionId:i,clientTrackingParams:n})=>z((0,T.q)({pinId:e,boardId:t||"",boardSectionId:i,clientTrackingParams:n})),history:t,i18n:u,isPrivateProfile:G,inviteCollaborators:(e,t)=>A(e,t,h.id),location:i,logContextEvent:_,match:n,repinContext:R,repinExperience:M,repinToBoard:({i18n:e,pinId:t,boardId:i,onSuccess:n,onUndo:l,showRepinConfirmation:a,showToast:r,section:o,trackingParams:s,historyPush:d})=>{var u;return z((0,F.w)({checkExperiment:N,i18n:e,logContextEvent:_,pinId:t,boardId:i,onSuccess:n,onUndo:l,showRepinConfirmation:a,showToast:r,section:o,trackingParams:s,historyPush:d,savePinId:null!==(u=null==R?void 0:R.save)&&void 0!==u?u:()=>{}}))},requireAuthForLimitedLogin:c,showRepinConfirmation:Z,showToast:O,undoSaveAction:({boardId:e,boardSectionId:t,clientTrackingParams:i,i18n:n,newPinId:l,pinId:a})=>{var r;return(0,K.Z)({dispatch:z,i18n:n,showToast:O,newPinId:l,sourcePinId:a,boardId:e,boardSectionId:t,clientTrackingParams:i,undoSavedPin:null!==(r=null==R?void 0:R.unsave)&&void 0!==r?r:()=>void 0})},viewExperience:(e,t)=>z(b(e,t))})}},160865:(e,t,i)=>{"use strict";i.d(t,{Z:()=>e6});var n,l,a,r,o,s,d=i(667294),u=i(702664),c=i(616550),p=i(883119),h=i(112690),_=i(332611),m=i(121151),g=i(968121),y=i(499128),v=i(898781),f=i(349700),x=i(995081),b=i(313047),P=i(542554),w=i(784590),S=i(989726),k=i(50286),j=i(19121),A=i(676802),C=i(427806),D=i(830157);function E(e,t){return!!(e&&e.placement_id&&e.experience_id===t)}var I=i(881802),T=i(149823),F=i(499659),z=i(785893);let R="cubic-bezier(0.66, 0.025, 0.33, 0.975)",L=(0,F.qe)((e,t,i,n,l)=>{let a=e,r=t,o=0,s=0,d="",u=Math.floor(t/3);if("shrinkToPin"===i&&(o="24px",s=1,a=Math.floor(3*u/2),r=u),"pinToGrid"===i&&n&&l){let e=n.getBoundingClientRect(),t=l.getBoundingClientRect(),i=t.x+t.width/2-(e.x+e.width/2),c=t.y+t.height/2-(e.y+e.height/2);d=`translate(${i}px, ${c}px)`,o="24px 0px 0px 24px",s=1,a=u,r=u}return{borderRadius:o,height:a,opacity:s,overflow:"hidden",width:r,WebkitTransformOrigin:"center center",transformOrigin:"center center",WebkitTransform:d,transform:d,WebkitTransition:`all .42s ${R}`,transition:`all .42s ${R}`}}),M=(0,F.qe)(e=>({opacity:e?1:0,WebkitTransition:`opacity .42s ${R}`,transition:`opacity .42s ${R}`})),Z=(0,F.qe)(e=>({opacity:e?0:1,WebkitTransition:`all .25s ${R}`,transition:`all .25s ${R}`,zIndex:3}));function B({completeExperience:e,pinDominantColor:t,pinImageHeight:i,pinImageWidth:n,pinImageUrl:l}){let a,r,o,s;let u=(0,v.ZP)(),[c,h]=(0,d.useState)("visible"),[_,m]=(0,d.useState)("none"),g=window.innerWidth,y=g*(i/n),f=Math.floor(g/3),x=Math.floor(g/6);(0,d.useEffect)(()=>{l&&"none"===_&&(a=setTimeout(()=>{m("shrinkToPin")},85)),l&&"shrinkToPin"===_&&(r=setTimeout(()=>{m("pinToGrid")},2e3)),"pinToGrid"===_&&"visible"===c&&(o=setTimeout(()=>{h("hidden")},2e3)),"hidden"===c&&(s=setTimeout(()=>{h("none"),e()},300))}),(0,d.useEffect)(()=>()=>{clearTimeout(a),clearTimeout(r),clearTimeout(o),clearTimeout(s)},[]);let b=(0,d.useRef)(null),P=(0,d.useRef)(null);return(0,z.jsxs)(p.xu,{alignItems:"center",bottom:!0,color:"default",dangerouslySetInlineStyle:{__style:Z("hidden"===c)},direction:"column",display:"none"===c?"none":"flex",justifyContent:"center",left:!0,position:"fixed",right:!0,top:!0,children:[(0,z.jsxs)(p.xu,{height:g/2,width:"100%",marginBottom:8,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",children:[(0,z.jsx)(p.xu,{position:"absolute",dangerouslySetInlineStyle:{__style:M("pinToGrid"===_)},children:(0,z.jsx)(p.zd,{rounding:6,width:f+x+1,height:f,children:(0,z.jsxs)(p.kC,{alignItems:"stretch",justifyContent:"between",children:[(0,z.jsx)(p.xu,{width:f,height:f,color:"transparent",ref:P}),(0,z.jsxs)(p.kC,{alignItems:"stretch",direction:"column",justifyContent:"between",children:[(0,z.jsx)(p.xu,{width:x,height:x,color:"secondary"}),(0,z.jsx)(p.xu,{width:x,height:x,color:"secondary"})]})]})})}),(0,z.jsx)(p.xu,{ref:b,position:"absolute",dangerouslySetInlineStyle:{__style:L(y,g,_,b.current,P.current)},children:(0,z.jsx)(p.Ee,{alt:u._('Pin image', 'Pin image on repin page', 'Pin image on repin page'),src:l,fit:"cover",naturalHeight:i,naturalWidth:n,color:t})})]}),(0,z.jsx)(p.xu,{marginTop:8,marginBottom:8,paddingX:12,children:(0,z.jsx)(p.X6,{align:"center",size:"500",children:u._('Keep your ideas organized by creating a board', 'boardPicker.edu.heading', 'board create education shown before user create their first board')})})]})}var O=i(56632),N=i(327212);function K(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let U=["#0074e8","#0FA573","#B469EB","#F13535","#E2780D"],H=(e,t)=>Math.random()*((e||1)-(t||0))+(t||0),V=e=>e*(Math.PI/180);class G extends d.PureComponent{constructor(...e){super(...e),K(this,"animationTimer",null),K(this,"canvasRemovalTimer",null),K(this,"childrenContainerRef",(0,d.createRef)()),K(this,"containerRef",(0,d.createRef)()),K(this,"buildCanvas",()=>{if(!this.containerRef.current)return null;let e=window.innerWidth,{height:t,top:i}=this.containerRef.current.getBoundingClientRect(),n=document.createElement("canvas");return n.style.position="absolute",n.style.left="0px",n.style.top=`${i-(e-t)/2}px`,n.style.pointerEvents="none",n.style.width=`${e}px`,n.style.height=`${e}px`,n.width=e,n.height=e,n}),K(this,"explode",()=>{let e=this.buildCanvas();if(!e)return;let t=this.containerRef.current,i=this.childrenContainerRef.current,n=e.getContext("2d");null==t||t.insertBefore(e,i);let l=Array.from(Array(120)).map(()=>({x:e.width/2,y:e.height/2,radius:Math.round(H(10,30)),color:U[Math.floor(Math.random()*U.length)],degree:Number(H(0,360).toFixed(1)),speed:Math.round(H(0,25)),friction:.9,opacity:Number(H(0,.5).toFixed(1)),yVel:0,gravity:.04})),a=(e,t,i,n)=>{window.requestAnimationFrame(()=>a(e,t,i,n)),t.clearRect(0,0,i,n),e.forEach(e=>{e.x+=e.speed*Math.cos(V(e.degree)),e.y+=e.speed*Math.sin(V(e.degree)),e.opacity-=.01,e.speed*=e.friction,e.radius*=e.friction,e.yVel+=e.gravity,e.y+=e.yVel,e.opacity<0||e.radius<0||(t.beginPath(),t.globalAlpha=e.opacity,t.fillStyle=e.color,t.arc(e.x,e.y,e.radius,0,2*Math.PI,!1),t.fill())})};a(l,n,e.width,e.height),this.canvasRemovalTimer=setTimeout(()=>{null==t||t.removeChild(e)},(this.props.delay||0)+1e3)})}componentDidUpdate(e){let{delay:t,startAnimation:i}=this.props,{startAnimation:n}=e;i&&n!==i&&(this.animationTimer=setTimeout(this.explode,t))}componentWillUnmount(){this.animationTimer&&clearTimeout(this.animationTimer),this.canvasRemovalTimer&&clearTimeout(this.canvasRemovalTimer)}render(){return(0,z.jsx)(p.xu,{ref:this.containerRef,children:(0,z.jsx)(p.xu,{ref:this.childrenContainerRef,children:this.props.children})})}}function W(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}K(G,"defaultProps",{delay:0});let $=(e,t,i)=>{var n,l;let a=[],r=null===(n=t.current)||void 0===n?void 0:n.getBoundingClientRect(),o=null===(l=i.current)||void 0===l?void 0:l.getBoundingClientRect();if(r&&o){let e={x:o.left-r.left,y:o.top-r.top},t={x:o.width/r.width,y:o.height/r.height};a.push(`translate(${e.x}px, ${e.y}px)`),a.push(`scale(${t.x}, ${t.y})`)}return{WebkitTransformOrigin:"left top",transformOrigin:"left top",WebkitTransform:e?a.join(" "):"none",transform:e?a.join(" "):"none",WebkitTransition:"all .5s ease-in-out",transition:"all .5s ease-in-out",borderRadius:e?"8px 0px 0px 0px":"8px",overflow:"hidden",marginBottom:24}},q=e=>({pointerEvents:"none",opacity:e?1:0,WebkitTransition:"opacity .4s ease-in-out",transition:"opacity .4s ease-in-out",zIndex:2}),Y=e=>({opacity:e?1:0,WebkitTransform:e?"translateY(0)":"translateY(20%)",transform:e?"translateY(0)":"translateY(20%)",WebkitTransition:"all .25s ease-in-out .5s",transition:"all .25s ease-in-out .5s",textAlign:"center",marginTop:"50px"});class X extends d.PureComponent{constructor(...e){super(...e),W(this,"state",{startAnimation:!1}),W(this,"dismissTimer",null),W(this,"pinRef",(0,d.createRef)()),W(this,"pinDestinationRef",(0,d.createRef)()),W(this,"handleAnimationAndCompletion",()=>{let{onComplete:e,savePin:t,selectedBoardName:i}=this.props;if(!i)return;let n=this.startAnimation(),l=t(i);Promise.all([n,l]).then(t=>{let[,n]=t;e(n,i)}).catch(e=>{n.then(()=>{e&&e.onError&&e.onError()})})}),W(this,"startAnimation",()=>new Promise(e=>{this.setState({startAnimation:!0},()=>{this.dismissTimer=setTimeout(()=>{e()},2600)})}))}componentWillUnmount(){this.dismissTimer&&clearTimeout(this.dismissTimer)}componentDidUpdate(){let{selectedBoardName:e}=this.props,{startAnimation:t}=this.state;e&&!t&&this.handleAnimationAndCompletion()}render(){let{pinDominantColor:e,pinImageUrl:t,selectedBoardName:i}=this.props,{startAnimation:n}=this.state;return(0,z.jsxs)(d.Fragment,{children:[(0,z.jsx)(p.Le,{top:b.DEFAULT_HEIGHT,zIndex:new p.Ry(3),children:(0,z.jsx)(p.xu,{display:"flex",color:n?"transparent":"default",justifyContent:"center",alignItems:"center",children:(0,z.jsx)(p.xu,{ref:this.pinRef,height:84,width:84,position:"relative",dangerouslySetInlineStyle:{__style:$(n,this.pinRef,this.pinDestinationRef)},children:(0,z.jsx)(p.Ee,{alt:this.props.i18n._('Pin image', 'Pin image on repin page', 'Pin image on repin page'),src:t,fit:"cover",naturalHeight:84,naturalWidth:84,color:e})})})}),(0,z.jsx)(p.xu,{color:"default",position:"fixed",top:!0,bottom:!0,right:!0,left:!0,dangerouslySetInlineStyle:{__style:q(n)},children:(0,z.jsxs)(p.kC,{alignItems:"center",direction:"column",height:"100%",justifyContent:"center",children:[(0,z.jsx)(G,{delay:1200,startAnimation:n,children:(0,z.jsx)(p.zd,{rounding:2,width:148,children:(0,z.jsx)(p.kC,{alignItems:"stretch",justifyContent:"start",wrap:!0,children:Array.from([,,,,]).map((e,t)=>{let i=t<=1,n=t%2,l=0===t?this.pinDestinationRef:null;return(0,z.jsx)(p.xu,{ref:l,color:0===t?"transparent":"secondary",marginBottom:i?1:0,marginEnd:n?0:1,width:72,height:72},t)})})})}),(0,z.jsx)(p.xu,{paddingX:4,dangerouslySetInlineStyle:{__style:Y(n)},children:(0,z.jsx)(p.X6,{children:(0,f.nk)(this.props.i18n._('You saved your first Pin to {{ selectedBoardName }}!', 'First repin confirmation message', 'First repin confirmation message'),{selectedBoardName:i})})})]})})]})}}let Q=function(e){let t=(0,v.ZP)();return(0,z.jsx)(X,{...e,i18n:t})};var J=i(662089),ee=i(348854),et=i(990823),ei=i(819063),en=i(384833),el=i(698330),ea=i(404508),er=i(167912),eo=i(357998),es=i(773285),ed=i(343341),eu=i(497307),ec=i(678638),ep=i(139574),eh=i(850431),e_=i(166753),em=i(580751);function eg(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let ey=void 0!==n?n:n=i(172335),ev=e=>{var t;return{entityId:e.id,pinnedToBoard:e.pinned_to_board&&{entityId:null!==(t=e.pinned_to_board.id)&&void 0!==t?t:"",url:e.pinned_to_board.url}}};class ef extends d.PureComponent{constructor(...e){super(...e),eg(this,"state",{name:""}),eg(this,"onNextButtonTouch",()=>{let{name:e}=this.state,{createSectionAndRepin:t,i18n:i}=this.props;t(e,i)}),eg(this,"onNameChange",e=>{this.setState({name:e.target.value})})}render(){let{pin:e,useRoundedCorners:t}=this.props,{name:i}=this.state;return(0,z.jsx)(eu.Z,{backButtonIcon:"arrow-back",name:i,onNameChange:this.onNameChange,onNextButtonTouch:this.onNextButtonTouch,selectedPinIds:[e.entityId],useRoundedCorners:t})}}function ex(e){let{boardId:t,isEditingPin:i,onSuccess:n,pinKey:l,pinBoardId:a,pinSectionId:r,trackingParams:o,useRoundedCorners:s}=e,{data:d}=(0,eo.Q)(ey,l,{useLegacyAdapter:ev}),p=(0,u.useDispatch)(),_=(0,c.useHistory)(),m=(0,v.ZP)(),{showToast:g}=(0,ed.F9)(),f=(0,h.Z)(),x=(0,em.M)(),{checkExperiment:b}=(0,es.F)(),P=e=>_.push(e);return(0,z.jsx)(ef,{i18n:m,createSectionAndRepin:e=>{let l=e=>g(({hideToast:t})=>(0,z.jsx)(y.ZP,{text:e.message||m._('Sorry! Something went wrong on our end.', 'error creating board section', 'error creating board section'),type:"error",onHide:t}));p((0,ec.Nv)(t,[],e,f)).then(e=>{var s;g(({hideToast:e})=>(0,z.jsx)(y.ZP,{text:m._('Section added!', ' - ', ' -- '),onHide:e}));let u=e.resource_response.data;p((0,eh.w)({checkExperiment:b,i18n:m,logContextEvent:f,pinId:d.entityId,boardId:t,onSuccess:i?void 0:n,onUndo:(e,t,i,n)=>{var l;return(0,e_.Z)({boardId:i,boardSectionId:n,clientTrackingParams:o,dispatch:p,i18n:m,newPinId:t,showToast:g,sourcePinId:e,undoSavedPin:null!==(l=null==x?void 0:x.unsave)&&void 0!==l?l:()=>void 0})},showToast:g,section:u,trackingParams:{clientTrackingParams:o,pinnedToBoardId:d.pinnedToBoard?d.pinnedToBoard.entityId:""},historyPush:P,savePinId:null!==(s=null==x?void 0:x.save)&&void 0!==s?s:()=>{}})).then(()=>{d&&a&&p((0,ep.q)({pinId:d.entityId,boardId:a,boardSectionId:r,clientTrackingParams:o})).then(()=>{var e;return d.pinnedToBoard?_.replace(null!==(e=d.pinnedToBoard.url)&&void 0!==e?e:""):void 0})}).catch(l)}).catch(l)},pin:d,useRoundedCorners:s})}var eb=i(166300),eP=i(995228),ew=i(829407),eS=i(361115),ek=i(927383),ej=i(177891),eA=i(188170);function eC({handleSelected:e}){let t=(0,v.ZP)(),i=(0,h.Z)();return(0,ew.Z)(()=>{i({component:7,element:11933,event_type:13,view_type:3})}),(0,z.jsx)(p.iP,{rounding:2,onTap:()=>{e(!1,null)},children:(0,z.jsxs)(p.xu,{"data-test-id":"board-picker-row",display:"flex",alignItems:"center",rounding:2,column:12,marginBottom:4,children:[(0,z.jsx)(p.xu,{color:"secondary",display:"flex",flex:"none",justifyContent:"center",alignItems:"center",height:48,rounding:2,width:48,children:(0,z.jsx)(p.JO,{accessibilityLabel:t._('Profile', 'save.ProfilePickerRow.IconAccessibilityLabel', 'Accessibility label for icon on option to save Pin to profile'),color:"default",icon:"history",size:22})}),(0,z.jsx)(p.xu,{display:"flex",direction:"column",justifyContent:"center",marginStart:2,width:"100%",overflow:"hidden",children:(0,z.jsx)(p.xv,{size:"400",weight:"bold",lineClamp:1,children:t._('Profile', 'save.ProfilePickerRow', 'Option to save Pin to profile')})})]})})}let eD=void 0!==l?l:l=i(612289),eE=e=>{var t;return{entityId:e.id,pinnedToBoard:e.pinned_to_board&&{entityId:null!==(t=e.pinned_to_board.id)&&void 0!==t?t:"",url:e.pinned_to_board.url},section:e.section&&{slug:e.section.slug},trackingParams:e.tracking_params}};function eI({boards:e,boardsShortlist:t,closeModal:i,dismissFlyout:n,history:l,isEditingPin:a,isFromToast:r,logContextEvent:o,onSelect:s,originalPinId:h,pinKey:_,pinBoardId:m,pinSectionId:g,saveToProfileEnabled:f,trackingParams:x}){let b=(0,v.ZP)(),{data:P}=(0,eo.Q)(eD,_,{useLegacyAdapter:eE}),w=(0,u.useDispatch)(),S=(0,c.useLocation)(),k=(0,ek.Z)(),j=(0,em.M)(),A=l.location.state&&l.location.state.isOneTapSave,{checkExperiment:C}=(0,es.F)(),E=C("mweb_direct_save_from_grid_v2",{dangerouslySkipActivation:!0}).anyEnabled||C("mweb_direct_save_from_grid_v2_new_user",{dangerouslySkipActivation:!0}).anyEnabled,T=(0,D.Z)(S.state?S.state.trackingParams:"",P.trackingParams),{showRepinConfirmation:F,showToast:R}=(0,J.Z)(),L=e=>l.push(e),M=t?e.filter(e=>t.some(t=>e.id===t.id)):e.slice(0,3),Z=M.map(e=>e.id);f&&Z.unshift("PROFILE_PINS");let B=(0,eS.Yg)();(0,ew.Z)(()=>{Z&&o({event_type:13,component:7,element:1001,view_type:3,aux_data:{pin_id:P.entityId,suggested_boards:Z}})});let O=({boardId:e,clientTrackingParams:t,i18n:i,isQuickSave:a})=>{var s;return n(),null==B||B("main_pin_repin"),w((0,eh.w)({checkExperiment:C,i18n:i,isQuickSave:a,logContextEvent:o,pinId:P.entityId,boardId:e,onSuccess:l.goBack,onUndo:(e,n,l,a)=>{var o;return(0,e_.Z)({boardId:l,boardSectionId:a,clientTrackingParams:t,dispatch:w,i18n:i,newPinId:n,originalPinId:r?h:"",showToast:R,sourcePinId:e,undoSavedPin:null!==(o=null==j?void 0:j.unsave)&&void 0!==o?o:()=>void 0})},originalPinId:h,showRepinConfirmation:F,trackingParams:x,historyPush:L,suggestedBoardIds:Z,savePinId:null!==(s=null==j?void 0:j.save)&&void 0!==s?s:()=>{}}))},N=e=>w((0,ej.a)({...e})),K=e=>w((0,ep.q)({pinId:P.entityId,boardId:m||"",boardSectionId:g,clientTrackingParams:e})),U=k({fn:async(e,t)=>{if(e&&t)s(t);else try{let e=!(null!=t&&t.id),s=await O({boardId:null==t?void 0:t.id,clientTrackingParams:T,i18n:b,isQuickSave:e});if((A||E)&&s&&N({boardId:null==t?void 0:t.id,localPinId:s.id,pinId:P.entityId}),a){var n,o;await K(T);let e=null===(n=P.pinnedToBoard)||void 0===n?void 0:n.url;if(r)i();else if(P.section){let t=`${null!=e?e:""}${null!==(o=P.section.slug)&&void 0!==o?o:""}/`;l.replace(null!=t?t:"")}else P.pinnedToBoard&&l.replace(null!=e?e:"")}}catch(e){R(({hideToast:t})=>(0,z.jsx)(y.ZP,{type:"error",text:e.message||b._('Sorry! Something went wrong on our end.', 'error during repin', 'error during repin'),onHide:t}))}},modalHeader:(0,I.Bx)(b)});return(0,z.jsxs)(d.Fragment,{children:[(0,z.jsxs)(p.xu,{paddingY:4,children:[f&&(0,z.jsx)(eC,{handleSelected:U}),M.map(e=>(0,z.jsx)(eA.Z,{boardId:e.id,onBoardSelected:t=>U(t,e),showSingleBoardRep:!0},e.id))]}),(0,z.jsxs)(p.xu,{children:[(0,z.jsx)(p.xu,{marginBottom:4,children:(0,z.jsx)(p.xv,{children:b._('All boards', 'RepinFlow.BoardPickerList.AllBoards', 'Board picker list all boards title')})}),e.map(e=>(0,z.jsx)(eA.Z,{boardId:e.id,onBoardSelected:t=>U(t,e),showSingleBoardRep:!0},e.id))]})]})}var eT=i(63552);let eF=()=>(0,z.jsx)(p.xu,{color:"secondary",display:"inlineBlock",height:60,minWidth:60,overflow:"hidden",position:"relative",rounding:4,children:(0,z.jsxs)(d.Fragment,{children:[(0,z.jsx)(p.xu,{color:"default",dangerouslySetInlineStyle:{__style:{left:"50%"}},height:"100%",position:"absolute",width:1}),(0,z.jsx)(p.xu,{color:"default",dangerouslySetInlineStyle:{__style:{top:"50%"}},height:1,width:"50%",position:"absolute",right:!0})]})});var ez=i(675752),eR=i(109892);let eL=void 0!==a?a:a=i(390687),eM=e=>{var t;return{entityId:e.id,pinnedToBoard:e.pinned_to_board&&{url:e.pinned_to_board.url},richMetadata:e.rich_metadata&&{article:e.rich_metadata.article&&{__typename:"ArticleMetadata"},products:e.rich_metadata.products&&e.rich_metadata.products.map(()=>({__typename:"RichPinProductMetadata"})),recipe:(null===(t=e.rich_metadata)||void 0===t?void 0:t.recipe)&&{__typename:"RecipeMetadata"}},section:e.section&&{slug:e.section.slug},trackingParams:e.tracking_params}},eZ=({allSuggestions:e,handleCreateBoard:t,index:i,isFBC:n,logContextEvent:l,pinViewParameter:a})=>{t(),l({aux_data:{board_title_list:JSON.stringify(e),is_fbc:n.toString(),selected_board_title_index:i},component:7,element:23,event_type:102,view_parameter:a,view_type:3})};function eB({isEditingPin:e,isFirstBoard:t,history:i,onFirstBoardCreate:n,pinBoardId:l,pinKey:a,pinSectionId:r,titleSuggestions:o,clientTrackingParams:s}){var d,c,_;let m=(0,h.Z)(),g=(0,eR.Z)(),y=(0,v.ZP)(),f=(0,ek.Z)(),{showRepinConfirmation:x}=(0,J.Z)(),b=(0,u.useDispatch)(),{data:P}=(0,eo.Q)(eL,a,{useLegacyAdapter:eM}),w=P.entityId,S=(0,ez.A)({hasRichMetadata:!!P.richMetadata,hasRichMetadataProducts:!!(null!==(d=P.richMetadata)&&void 0!==d&&d.products),hasRichMetadataArticle:!!(null!==(c=P.richMetadata)&&void 0!==c&&c.article),hasRichMetadataRecipe:!!(null!==(_=P.richMetadata)&&void 0!==_&&_.recipe)}),k=(0,em.M)(),j=(0,D.Z)(s,P.trackingParams),A=e=>i.push(e),C=e=>b((0,ej.a)({...e})),{checkExperiment:E}=(0,es.F)(),T=E("mweb_direct_save_from_grid_v2",{dangerouslySkipActivation:!0}).anyEnabled||E("mweb_direct_save_from_grid_v2_new_user",{dangerouslySkipActivation:!0}).anyEnabled,F=e=>{b((0,ep.q)({pinId:w,boardId:l||"",boardSectionId:r,clientTrackingParams:e}))},R=async()=>{var e,t;await F(j);let n=null===(e=P.pinnedToBoard)||void 0===e?void 0:e.url;if(P.section){let e=`${null!=n?n:""}${null!==(t=P.section.slug)&&void 0!==t?t:""}/`;i.replace(null!=e?e:"")}else i.replace(null!=n?n:"")},L=t=>{g({boardCreateOptions:{name:t,initial_pins:[w],initial_pin_client_tracking_params:[s],privacy:"public"}}).then(t=>(e?R():i.goBack(),t)).then(e=>{let{url:i="",id:n}=e||{},{href:l,text:a}=(0,ee.Io)(i,t,y),{duration:r,text:o,thumbnail:s}=(0,O.Z)({boardId:n,viewType:3});x(({hideToast:e})=>(0,z.jsx)(N.Z,{duration:r,href:l,onHide:e,text:o||a,thumbnail:s})),m({event_type:5,view_type:3,component:7,view_parameter:S,object_id_str:w,clientTrackingParams:j,aux_data:{board_id:n,destination_board_id:n}})})},M=t=>{g({boardCreateOptions:{name:t,initial_pin_client_tracking_params:[s],privacy:"public"}}).then(n=>{var l;let{url:a="",id:r}=n||{};b((0,eh.w)({checkExperiment:E,i18n:y,logContextEvent:m,pinId:w,boardId:r,onUndo:()=>{F(j)},trackingParams:{clientTrackingParams:j,pinnedToBoardId:r},historyPush:A,savePinId:null!==(l=null==k?void 0:k.save)&&void 0!==l?l:()=>{}})).then(n=>{C({boardId:r,localPinId:n.id,pinId:w}),e?R():i.goBack();let{href:l,text:o}=(0,ee.Io)(a,t,y),{duration:s,text:d,thumbnail:u}=(0,O.Z)({boardId:r,viewType:3});x(({hideToast:e})=>(0,z.jsx)(N.Z,{duration:s,href:l,onHide:e,text:d||o,thumbnail:u})),m({event_type:5,view_type:3,component:7,view_parameter:S,object_id_str:w,clientTrackingParams:j,aux_data:{board_id:r,destination_board_id:r}})})})},Z=f({fn:(e,i,l)=>{eZ({allSuggestions:l,handleCreateBoard:()=>{t?n(i):T?M(i):L(i)},index:e,isFBC:t,logContextEvent:m,pinViewParameter:S})},modalHeader:(0,I.Bb)(y)});return o?o.map((e,t,i)=>(0,z.jsx)(p.xu,{children:(0,z.jsx)(eT.Z,{onTouch:()=>Z(t,e,i),pressState:"none",rounding:2,children:(0,z.jsxs)(p.xu,{display:"flex",alignItems:"center",paddingY:2,rounding:2,children:[(0,z.jsx)(eF,{}),(0,z.jsx)(p.xu,{column:10,marginStart:3,children:(0,z.jsx)(p.X6,{size:"400",children:e})})]})},t)},t)):null}function eO({allBoards:e,saveToProfileEnabled:t,boardsShortlist:i,closeModal:n,dismissFlyout:l,history:a,isEditingPin:r,isFromToast:o,onSelect:s,originalPinId:u,pin:c,pinBoardId:_,pinSectionId:m,trackingParams:g}){let y=(0,v.ZP)(),f=(0,h.Z)();return(0,z.jsxs)(d.Fragment,{children:[(0,z.jsx)(p.xu,{marginTop:2,children:(0,z.jsx)(p.xv,{children:y._('Top choices', 'boardPicker.header.topChoices', 'Header of a list of user\'s boards')})}),(0,z.jsx)(eI,{boards:e,boardsShortlist:i,closeModal:n,dismissFlyout:l,history:a,isEditingPin:r,isFromToast:o,logContextEvent:f,onSelect:s,originalPinId:u,pinKey:{type:"deprecated",data:c},pinBoardId:_,pinSectionId:m,saveToProfileEnabled:t,trackingParams:g})]})}function eN({allBoards:e,boardsShortlist:t,closeModal:i,saveToProfileEnabled:n,dismissFlyout:l,history:a,isEditingPin:r,isFirstRepinExperience:o,isFromToast:s,onFirstBoardCreate:d,originalPinId:u,onSelect:c,pin:_,pinBoardId:m,pinSectionId:g,trackingParams:y,titleSuggestions:f}){let x=(0,v.ZP)(),b=o||0===e.length&&!n,P=(0,h.Z)(),w=()=>(0,z.jsx)(eB,{history:a,isEditingPin:r,isFirstBoard:b,onFirstBoardCreate:d,pinBoardId:m,pinKey:{type:"deprecated",data:_},pinSectionId:g,titleSuggestions:f,clientTrackingParams:y.clientTrackingParams});return b?(0,z.jsxs)(p.xu,{paddingX:1,children:[(0,z.jsx)(p.xu,{marginBottom:4,children:(0,z.jsx)(p.xv,{children:x._('Tap to create your first board', 'CTA for board title suggestions', 'Explain to user that tapping on suggestion creates a board')})}),w()]}):(0,z.jsxs)(p.xu,{marginBottom:4,children:[t.length>0||n&&(0,z.jsx)(p.xu,{marginBottom:4,children:(0,z.jsx)(p.xv,{children:x._('Top choices', 'boardPicker.header.topChoices', 'Header of a list of user\'s boards')})}),(0,z.jsx)(eI,{boards:e,boardsShortlist:t,closeModal:i,dismissFlyout:l,history:a,isEditingPin:r,isFromToast:s,logContextEvent:P,onSelect:c,originalPinId:u,pinKey:{type:"deprecated",data:_},pinBoardId:m,pinSectionId:g,saveToProfileEnabled:n,trackingParams:y}),f?(0,z.jsxs)(p.xu,{children:[(0,z.jsx)(p.xu,{paddingY:1,children:(0,z.jsx)(eb.Z,{children:(0,z.jsx)(p.iz,{})})}),(0,z.jsx)(p.xu,{paddingY:4,children:(0,z.jsx)(p.xv,{children:x._('Or tap to create a new board', 'boardPicker.suggestedBoardName.title', 'Title for repin page suggested board name section')})}),w()]}):(0,z.jsx)(p.xu,{paddingY:6,children:(0,z.jsx)(p.$j,{accessibilityLabel:x._('Loading repin page content', ' - ', ' -- '),show:!0})})]})}let eK=e=>{var t,n,l;let a=void 0!==r?r:r=i(977297),{v3GetPinQuery:o}=(0,er.useLazyLoadQuery)(a,{pinId:e}),s=null==o?void 0:null===(t=o.error)||void 0===t?void 0:t.message;if(s)throw null==o?void 0:o.error;let d=(null==o?void 0:null===(n=o.data)||void 0===n?void 0:null===(l=n.boardTitleSuggestions)||void 0===l?void 0:l.map(({title:e})=>e).filter(Boolean))||[];return d};function eU(e){let{allBoards:t,boardsShortlist:i,closeModal:n,saveToProfileEnabled:l,dismissFlyout:a,history:r,isEditingPin:o,isFetchingBoards:s,isFirstRepinExperience:d,isFromToast:u,onFirstBoardCreate:c,onSelect:p,originalPinId:h,location:_,pin:m,pinBoardId:g,pinDescription:y,pinSectionId:v}=e;return(0,z.jsx)(eP.Z,{children:(0,z.jsx)(eH,{allBoards:t,boardsShortlist:i,saveToProfileEnabled:l,history:r,isFetchingBoards:s,isFirstRepinExperience:d,isFromToast:u,location:_,onFirstBoardCreate:c,onSelect:p,originalPinId:h,closeModal:n,pin:m,pinDescription:y,dismissFlyout:a,isEditingPin:o,pinBoardId:g,pinSectionId:v})})}function eH(e){let{allBoards:t,boardsShortlist:i,closeModal:n,saveToProfileEnabled:l,dismissFlyout:a,history:r,isEditingPin:o,isFetchingBoards:s,isFirstRepinExperience:d,isFromToast:u,onFirstBoardCreate:c,onSelect:p,originalPinId:h,location:_,pin:m,pinBoardId:g,pinDescription:y,pinSectionId:v}=e,f=eK(m.id);return(0,z.jsx)(eV,{allBoards:t,boardsShortlist:i,saveToProfileEnabled:l,history:r,isFetchingBoards:s,isFirstRepinExperience:d,isFromToast:u,location:_,onFirstBoardCreate:c,onSelect:p,originalPinId:h,closeModal:n,pin:m,pinDescription:y,dismissFlyout:a,isEditingPin:o,pinBoardId:g,pinSectionId:v,titleSuggestions:f})}function eV(e){let t=(0,v.ZP)(),{allBoards:i,boardsShortlist:n,closeModal:l,saveToProfileEnabled:a,dismissFlyout:r,history:o,isEditingPin:s,isFetchingBoards:d,isFirstRepinExperience:u,isFromToast:c,onFirstBoardCreate:h,onSelect:_,originalPinId:m,location:g,pin:y,pinBoardId:f,pinDescription:x,pinSectionId:b,titleSuggestions:P}=e,w={clientTrackingParams:g.state?g.state.trackingParams:"",pinnedToBoardId:y.pinned_to_board?y.pinned_to_board.id:""};return i.length>0||!d?i.length>=10?(0,z.jsx)(eO,{allBoards:i,boardsShortlist:n,closeModal:l,dismissFlyout:r,history:o,isEditingPin:s,isFromToast:c,onSelect:_,originalPinId:m,pin:y,pinBoardId:f,pinDescription:x,pinSectionId:b,saveToProfileEnabled:a,trackingParams:w}):(0,z.jsx)(eN,{allBoards:i,boardsShortlist:n,closeModal:l,dismissFlyout:r,history:o,isEditingPin:s,isFirstRepinExperience:u,isFromToast:c,onFirstBoardCreate:h,onSelect:_,originalPinId:m,pin:y,pinBoardId:f,pinDescription:x,pinSectionId:b,saveToProfileEnabled:a,titleSuggestions:P,trackingParams:w}):(0,z.jsx)(p.xu,{paddingY:2,children:(0,z.jsx)(p.$j,{accessibilityLabel:t._('Loading repin page content', ' - ', ' -- '),show:!0})})}var eG=i(287072);let eW=void 0!==o?o:o=i(893831),e$=e=>{var t;return{entityId:e.id,pinnedToBoard:e.pinned_to_board&&{entityId:null!==(t=e.pinned_to_board.id)&&void 0!==t?t:""}}};function eq({isEditingPin:e,isFirstBoardCreateActive:t,pinKey:i,pinBoardId:n,pinDescription:l,pinSectionId:a,trackingParams:r,onTouch:o,useIconWithBackground:s}){let d=(0,v.ZP)(),{data:u}=(0,eo.Q)(eW,i,{useLegacyAdapter:e$}),c=(0,eG.Z)({href:{pathname:`/board/create/${u.entityId}/`,state:{isFirstBoardCreateActive:t,pinnedToBoardId:u.pinnedToBoard?u.pinnedToBoard.entityId:"",pinDescription:l,trackingParams:r,isEditingPin:e,pinBoardId:n,pinSectionId:a}}});return(0,z.jsx)(b.FixedFooter,{height:s?void 0:70,hasTopShadow:s,children:(0,z.jsx)(p.iP,{onTap:({event:e})=>{null==o||o(),c({event:e})},children:(0,z.jsxs)(p.xu,{"data-test-id":"repinCreateBoardButton",display:"flex",alignItems:"center",paddingY:s?0:1,paddingX:s?1:0,children:[s?(0,z.jsx)(p.xu,{color:"secondary",rounding:2,dangerouslySetInlineStyle:{__style:{padding:"14px"}},children:(0,z.jsx)(p.JO,{icon:"add",color:"default",size:20,accessibilityLabel:d._('Create board button', ' - ', ' -- ')})}):(0,z.jsx)(p.JO,{icon:"add-circle",color:"error",size:38,accessibilityLabel:d._('Create board button', ' - ', ' -- ')}),(0,z.jsx)(p.xu,{marginStart:s?2:3,children:(0,z.jsx)(p.xv,{weight:"bold",children:d._('Create board', 'Create new board to Pin to', 'Create new board to Pin to')})})]})})})}var eY=i(568674);let eX=void 0!==s?s:s=i(592657),eQ=e=>{var t;return{entityId:e.id,pinnedToBoard:e.pinned_to_board&&{entityId:null!==(t=e.pinned_to_board.id)&&void 0!==t?t:"",url:e.pinned_to_board.url},trackingParams:e.tracking_params}};function eJ({boardId:e,history:t,location:{search:i},showSectionRep:n,pinKey:l,onSuccess:a,trackingParams:r,dismissFlyout:o}){let s=(0,u.useDispatch)(),d=(0,v.ZP)(),{data:c}=(0,eo.Q)(eX,l,{useLegacyAdapter:eQ}),{showToast:p}=(0,ed.F9)(),_=new URLSearchParams(i),m=_.get("isEditingPin"),g=(0,D.Z)(r,c.trackingParams),y=(0,h.Z)(),f=(0,em.M)(),{checkExperiment:x}=(0,es.F)(),b=e=>t.push(e),P=t=>{var i;o(),s((0,eh.w)({checkExperiment:x,i18n:d,logContextEvent:y,pinId:c.entityId,boardId:e,onSuccess:m?void 0:a,onUndo:(e,t,i,n)=>{var l;return(0,e_.Z)({boardId:i,boardSectionId:n,clientTrackingParams:g,dispatch:s,i18n:d,newPinId:t,showToast:p,sourcePinId:e,undoSavedPin:null!==(l=null==f?void 0:f.unsave)&&void 0!==l?l:()=>void 0})},showToast:p,section:t,trackingParams:{clientTrackingParams:g,pinnedToBoardId:c.pinnedToBoard?c.pinnedToBoard.entityId:""},historyPush:b,savePinId:null!==(i=null==f?void 0:f.save)&&void 0!==i?i:()=>{}})).then(()=>{if(t){var e;s((0,ec.A4)(null!==(e=t.id)&&void 0!==e?e:""))}})},w=()=>{var e,t;let i=null!==(e=_.get("pinBoardId"))&&void 0!==e?e:"",n=null!==(t=_.get("pinSectionId"))&&void 0!==t?t:"";return s((0,ep.q)({pinId:c.entityId,boardId:i,boardSectionId:n,clientTrackingParams:g}))},S=async(e,i)=>{if(await P(i),m){var n;await w(),null!==(n=c.pinnedToBoard)&&void 0!==n&&n.url&&t.replace(c.pinnedToBoard.url)}};return(0,z.jsx)(eY.Z,{boardId:e,repin:S,showSectionRep:n})}function e0(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function e1({children:e}){let t=(0,u.useSelector)(({session:e})=>72+((0,x.Rq)(e.userAgentPlatform)?x.Vf:0));return(0,z.jsx)(p.xu,{dangerouslySetInlineStyle:{__style:{paddingBottom:t}},children:e})}class e2 extends d.PureComponent{constructor(...e){super(...e),e0(this,"state",{dupeWarningDismissed:!1,pinDescription:(this.props.pin.description||"").trim(),saved:!1,suggestedBoardName:void 0,trackingParams:(this.props.location.state||{}).trackingParams||"",warningAnchor:void 0,windowInnerHeight:"undefined"!=typeof window?window.innerHeight:0}),e0(this,"saved",()=>this.setState({saved:!0})),e0(this,"onResize",()=>{this.setState({windowInnerHeight:window.innerHeight})}),e0(this,"handleBackButtonTouch",()=>{let{logContextEvent:e,match:{params:{boardId:t}}}=this.props;e({view_type:21,view_parameter:87,component:7,element:t?34:75,event_type:102})}),e0(this,"handleDismissWarningFlyout",()=>this.setState({dupeWarningDismissed:!0})),e0(this,"handleFirstBoardCreateOnSuccess",(e,t)=>{let{closeupExperience:i,completeExperience:n,history:l,i18n:a,repinExperience:r,showRepinConfirmation:o}=this.props,{boardId:s,boardUrl:d}=e,{href:u,text:c}=(0,ee.Io)(d,t,a),{duration:p,text:h,thumbnail:_}=(0,O.Z)({boardId:s,isFBC:!0,viewType:21});l.goBack(),o(({hideToast:e})=>(0,z.jsx)(N.Z,{duration:p,href:u,onHide:e,text:h||c,thumbnail:_})),i&&i.placement_id&&503459===i.experience_id&&n(i.placement_id,i.experience_id),r&&E(r,501032)&&n(r.placement_id,r.experience_id)}),e0(this,"handleSetSelectedBoard",e=>{let{history:t,pin:i}=this.props,{trackingParams:n}=this.state;this.isFirstBoardCreateActive()||t.push(`/board/create/${i.id}/${e}/`,{trackingParams:n}),this.setState({suggestedBoardName:e})}),e0(this,"handleFirstBoardCreate",e=>{let{createBoard:t,history:i,location:n,logContextEvent:l,match:a,pin:r,showToast:o}=this.props,{trackingParams:s}=this.state,d=a.params.id,u=(0,D.Z)((n.state||{}).trackingParams);return t({boardCreateOptions:{initial_pins:d?[d]:[],name:e,initial_pin_client_tracking_params:[u],privacy:"public"},deprecatedSchemaForNormalization:ei.IY}).then(e=>{var t,i,n;let a=e.id;l({event_type:5,view_type:3,component:7,view_parameter:(0,ez.A)({hasRichMetadata:!!r.rich_metadata,hasRichMetadataProducts:!!(null!==(t=r.rich_metadata)&&void 0!==t&&t.products),hasRichMetadataArticle:!!(null!==(i=r.rich_metadata)&&void 0!==i&&i.article),hasRichMetadataRecipe:!!(null!==(n=r.rich_metadata)&&void 0!==n&&n.recipe)}),object_id_str:r.id,clientTrackingParams:(0,D.Z)(s,r.tracking_params),aux_data:{board_id:a,destination_board_id:a}});let{url:o=""}=e;return{boardId:a,boardUrl:o}},e=>{throw{onError:()=>{i.goBack(),o(({hideToast:t})=>(0,z.jsx)(y.ZP,{onHide:t,type:"error",text:e.message||this.props.i18n._('Sorry! Something went wrong on our end.', 'error creating board', 'error creating board')}))}}})}),e0(this,"handleSelectBoard",e=>{var t,i;let{history:n,pin:l,location:{search:a}}=this.props,{trackingParams:r}=this.state,o=new URLSearchParams(a),s=!!o.get("isEditingPin"),d=null!==(t=o.get("pinBoardId"))&&void 0!==t?t:"",u=null!==(i=o.get("pinSectionId"))&&void 0!==i?i:"";s?n.push(`/pin/${l.id}/repin/${e.id}/?isEditingPin=true&pinBoardId=${d}&pinSectionId=${u}`,{trackingParams:r}):n.push({pathname:`/pin/${l.id}/repin/${e.id}/`},{trackingParams:r})}),e0(this,"handleClickAddSectionButton",()=>{var e,t;let{pin:i,history:n,match:{params:{boardId:l}},location:{search:a}}=this.props;if(!l)return;let r=new URLSearchParams(a),o=!!r.get("isEditingPin"),s=null!==(e=r.get("pinBoardId"))&&void 0!==e?e:"",d=null!==(t=r.get("pinSectionId"))&&void 0!==t?t:"";o?n.push(`/pin/${i.id}/repin/${l}/add/?isEditingPin=true&pinBoardId=${s}&pinSectionId=${d}`):n.push({pathname:`/pin/${i.id}/repin/${l}/add/`})}),e0(this,"handleRepinToExistingSectionSuccess",()=>this.props.history.go(-2)),e0(this,"handleRepinToNewSectionSuccess",()=>this.props.history.go(-3)),e0(this,"handleRepinCreateBoardButtonTouch",()=>{this.props.logContextEvent({view_type:21,view_parameter:87,component:7,element:249,event_type:102})}),e0(this,"renderCreateScreen",()=>{var e,t;let{pin:i,location:{search:n},match:{params:{boardId:l}}}=this.props,{trackingParams:a}=this.state,r=new URLSearchParams(n),o=!!r.get("isEditingPin"),s=null!==(e=r.get("pinBoardId"))&&void 0!==e?e:"",d=null!==(t=r.get("pinSectionId"))&&void 0!==t?t:"";return!!l&&(0,z.jsx)(ex,{boardId:l,isEditingPin:o,pinBoardId:s,pinSectionId:d,onSuccess:this.handleRepinToNewSectionSuccess,pinKey:{type:"deprecated",data:i},trackingParams:a,useRoundedCorners:!0})}),e0(this,"isFirstBoardCreateActive",()=>{let{allBoards:e,isFetchingBoards:t,saveToProfileEnabled:i,repinExperience:n}=this.props,l=E(n,501032);return!!l||!t&&0===e.length&&!i}),e0(this,"isBoardCreateEduActive",()=>{let{repinExperience:e}=this.props;return E(e,501021)}),e0(this,"completeBoardCreateEduExperience",()=>{let{completeExperience:e,repinExperience:t}=this.props;t&&this.isBoardCreateEduActive()&&e(t.placement_id,t.experience_id)}),e0(this,"renderPicker",()=>{var e,t,i,n,l;let{allBoards:a,saveToProfileEnabled:r,boardsShortlist:o,history:s,isFetchingBoards:d,location:u,pin:c,match:{params:{boardId:h}},location:{search:_}}=this.props,{pinDescription:m,dupeWarningDismissed:g,saved:y,suggestedBoardName:v,trackingParams:x,warningAnchor:w}=this.state,S=m.trim(),k=c.pinned_to_board,j=k?(0,f.nk)(this.props.i18n._('Psst! You already saved this Pin to {{ board_name }}', 'Toast for already having repinned pin', 'Toast for already having repinned pin'),{board_name:k.name}).join(" "):null,{dominant_color:D}=c,E=c.images?c.images["236x"]:null,F=E?E.url:"",R=new URLSearchParams(_),L=!!R.get("isEditingPin"),M=null!==(e=R.get("pinBoardId"))&&void 0!==e?e:"",Z=null!==(t=R.get("pinSectionId"))&&void 0!==t?t:"",O=!!R.get("isFromToast"),N=null!==(i=R.get("originalPinId"))&&void 0!==i?i:"",K=this.props.i18n._('Save Pin to', 'RepinPage.Section.Header.Title', 'title for section selection in repin flow'),U=new p.Ry(2),H=this.props.i18n._('Create board', 'Title for first board create', 'Title for first board create. NOTE: we are testing using "collections" in place of "boards" for new users'),V=this.props.i18n._('Save to board', 'boardPicker.header', 'Title for repin page'),G=h?K:0!==a.length||d||r?V:H;return(0,z.jsxs)(P.default,{hasFixedHeader:!0,children:[(0,z.jsx)(C.Z,{text:G}),(0,z.jsx)(b.FixedHeader,{useRoundedCorners:!0,zIndex:U,children:(0,z.jsxs)(p.kC,{alignItems:"center",height:40,justifyContent:"start",children:[(0,z.jsx)(p.xu,{column:2,children:(0,z.jsx)(ea.Z,{color:"darkGray",icon:h?"arrow-back":"cancel",onTouch:this.handleBackButtonTouch,alignIconLeft:!0,size:"sm"})}),(0,z.jsx)(p.xu,{column:8,children:(0,z.jsx)(p.xu,{"data-test-id":"repin-page-title",children:(0,z.jsx)(p.xv,{align:"center",weight:"bold",children:G})})}),(0,z.jsx)(p.xu,{column:2})]})}),c.images&&(this.isFirstBoardCreateActive()?(0,z.jsx)(Q,{onComplete:this.handleFirstBoardCreateOnSuccess,pinDominantColor:null!=D?D:"",pinImageUrl:null!=F?F:"",savePin:this.handleFirstBoardCreate,selectedBoardName:v}):null),(0,z.jsx)(e1,{children:h?(0,z.jsx)(eJ,{boardId:h,onSuccess:this.handleRepinToExistingSectionSuccess,pinKey:{type:"deprecated",data:c},trackingParams:x,dismissFlyout:this.saved,showSectionRep:!0,history:s,location:u}):(0,z.jsx)(eU,{allBoards:a,boardsShortlist:o,saveToProfileEnabled:r,history:s,isFetchingBoards:d,isFirstRepinExperience:this.isFirstBoardCreateActive(),isFromToast:O,location:u,onFirstBoardCreate:this.handleSetSelectedBoard,onSelect:this.handleSelectBoard,originalPinId:N,closeModal:this.handleBackButtonTouch,pin:c,pinDescription:S,dismissFlyout:this.saved,isEditingPin:L,pinBoardId:M,pinSectionId:Z})}),h?(0,z.jsx)(A.Wx,{onAddNewSection:this.handleClickAddSectionButton,useIconWithBackground:!0}):(0,z.jsx)(T.Z,{modalHeader:(0,I.Bb)(this.props.i18n),nextLocation:`/board/create/${c.id}/`,children:(0,z.jsx)(eq,{isFirstBoardCreateActive:this.isFirstBoardCreateActive(),pinKey:{type:"deprecated",data:c},pinDescription:S,trackingParams:x,onTouch:this.handleRepinCreateBoardButtonTouch,useIconWithBackground:!0,isEditingPin:L,pinBoardId:M,pinSectionId:Z})}),E&&this.isBoardCreateEduActive()&&(0,z.jsx)(B,{completeExperience:this.completeBoardCreateEduExperience,pinDominantColor:null!=D?D:"",pinImageHeight:null!==(n=E.height)&&void 0!==n?n:1,pinImageWidth:null!==(l=E.width)&&void 0!==l?l:1,pinImageUrl:null!=F?F:""}),w&&!y&&c.pinned_to_board&&!g&&j&&(0,z.jsx)(p.J2,{anchor:w,color:"red",idealDirection:"down",onDismiss:this.handleDismissWarningFlyout,shouldFocus:!1,children:(0,z.jsx)(p.xu,{padding:3,children:(0,z.jsx)(p.xv,{color:"inverse",weight:"bold",children:(0,z.jsx)("span",{children:j})})})})]})})}componentDidMount(){let{repinExperience:e,triggerExperimentsForPlacement:t,viewExperience:i}=this.props;t(1000153),e&&i(1000153,e.experience_id),window.addEventListener("resize",this.onResize)}componentWillUnmount(){window.removeEventListener("resize",this.onResize)}render(){return(0,z.jsx)(m.ZP,{accessibilityModalLabel:this.props.i18n._('Repin page', 'RepinPage.MobileModal.AccessibilityLabel', 'Accessibility label on repin page'),isOpen:!0,type:"repinPage",closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,z.jsx)(p.xu,{paddingX:2,paddingY:0,height:this.state.windowInnerHeight-g.i_,children:(0,z.jsxs)(c.Switch,{children:[(0,z.jsx)(c.Route,{exact:!0,path:"/pin/:id/repin/",render:this.renderPicker}),(0,z.jsx)(c.Route,{exact:!0,path:"/pin/:id/repin/:boardId/",render:this.renderPicker}),(0,z.jsx)(c.Route,{exact:!0,path:"/pin/:id/repin/:boardId/add/",render:this.renderCreateScreen})]})})})}}let e8=e=>{let{data:t}=(0,S.Z)({name:"PinResource",options:{id:e,field_set_key:"repin"}});return t},e3=e=>{let t=(0,u.useSelector)(e=>e.session.userId),{isFetching:i,data:n}=(0,S.Z)({name:"BoardPickerBoardsResource",options:{pin_id:e,field_set_key:"profile_grid_item",shortlist_suggestions:3,user_id:t}}),l=(null==n?void 0:n.all_boards)||[],a=(0,u.useSelector)(e=>(0,en.Z)({...e,boards:l})||[]),r=(null==n?void 0:n.boards_shortlist)||[];return{isFetching:i,allBoards:a,boardsShortlist:r}};function e6(e){var t;let i=(0,c.useHistory)(),n=(0,c.useLocation)(),l=(0,c.useRouteMatch)(),a=null!==(t=l.params.id)&&void 0!==t?t:"",r=(0,v.ZP)(),o=(0,h.Z)(),s=(0,_.be)(),d=(0,_.Ig)(),p=(0,eR.Z)(),m=(0,el.Tt)(),{isAuth:g}=(0,j.Z)(),y=(0,k.HG)(),f=e8(a),{isFetching:x,allBoards:b,boardsShortlist:P}=e3(a);(0,w.Z)({name:"UserResource",options:{user_id:null==m?void 0:m.id,field_set_key:"quicksave"}});let S=(0,u.useDispatch)(),A=(0,u.useSelector)(({experiences:e})=>e),{showToast:C,showRepinConfirmation:D}=(0,J.Z)(),{showEnabledSaveBehavior:E}=(0,et.ZP)((null==m?void 0:m.id)||"");return!g||y?(0,z.jsx)(c.Redirect,{to:`/pin/${a}/`}):f?(0,z.jsx)(e2,{...e,allBoards:b,boardsShortlist:P,closeupExperience:A[1000112],completeExperience:(e,t)=>S(s(e,t)),createBoard:p,history:i,i18n:r,isFetchingBoards:x,location:n,logContextEvent:o,match:l,pin:f,repinExperience:A[1000153],saveToProfileEnabled:E,showRepinConfirmation:D,showToast:C,triggerExperimentsForPlacement:e=>S((0,_.kd)(e)),viewExperience:(e,t)=>S(d(e,t))}):null}},709622:(e,t,i)=>{"use strict";i.d(t,{Az:()=>g,DI:()=>x,Gl:()=>w,Hl:()=>E,Kb:()=>F,NA:()=>n,NG:()=>d,OC:()=>C,Pq:()=>j,QM:()=>_,Sk:()=>P,UF:()=>v,Uo:()=>A,WF:()=>o,Xm:()=>u,Zf:()=>a,_D:()=>T,_N:()=>h,ac:()=>r,e_:()=>p,gf:()=>y,hf:()=>S,i_:()=>s,jY:()=>f,ni:()=>b,qg:()=>c,rX:()=>l,vX:()=>k,wO:()=>I,yG:()=>m,yq:()=>D});let n="10",l=1,a=365,r=64,o=8,s=9,d=11,u=15,c=16,p=17,h=18,_=19,m=20,g=1e6,y=g,v="US";function f(e){let t="USD",i="$";switch(e){case"AT":case"BE":case"DE":case"ES":case"FI":case"FR":case"IE":case"IT":case"NL":case"PT":t="EUR",i="€";break;case"AU":t="AUD",i="$";break;case"CA":t="CAD",i="$";break;case"CH":t="CHF",i="CHF";break;case"DK":t="DKK",i="kr";break;case"GB":t="GBP",i="\xa3";break;case"NO":t="NOK",i="kr";break;case"NZ":t="NZD",i="$";break;case"SE":t="SEK",i="kr"}return[t,i]}let x={AU:{budget:1,duration:"10"},CA:{budget:1,duration:"10"},CZ:{budget:80,duration:"10"},FR:{budget:1,duration:"10"},GB:{budget:1,duration:"10"},IE:{budget:1,duration:"10"},NZ:{budget:1,duration:"10"},US:{budget:3,duration:"10"},AT:{budget:1,duration:"10"},DE:{budget:1,duration:"10"},IT:{budget:1,duration:"10"},ES:{budget:1,duration:"10"},NL:{budget:1,duration:"10"},PT:{budget:1,duration:"10"},BE:{budget:1,duration:"10"},CH:{budget:1,duration:"10"},SE:{budget:10,duration:"30"},NO:{budget:10,duration:"30"},DK:{budget:10,duration:"30"},FI:{budget:1,duration:"10"}},b={AU:{budget:10,duration:"10"},CA:{budget:9,duration:"10"},CZ:{budget:150,duration:"10"},FR:{budget:7,duration:"10"},GB:{budget:5,duration:"10"},IE:{budget:7,duration:"10"},NZ:{budget:10,duration:"10"},US:{budget:7,duration:"10"},AT:{budget:7,duration:"10"},DE:{budget:7,duration:"10"},IT:{budget:7,duration:"10"},ES:{budget:7,duration:"10"},NL:{budget:7,duration:"10"},PT:{budget:7,duration:"10"},BE:{budget:7,duration:"10"},CH:{budget:7,duration:"10"},SE:{budget:70,duration:"30"},NO:{budget:70,duration:"30"},DK:{budget:50,duration:"30"},FI:{budget:7,duration:"10"}},P={AT:1,AU:1,BE:1,CA:1,CH:1,CZ:11,DE:1,ES:1,DK:1,FI:1,FR:1,GB:1,IE:1,IT:1,NO:1,NZ:1,NL:1,PT:1,SE:1,US:1},w={PIN_SELECTION_MODAL:"PIN_SELECTION_MODAL",BUSINESS_FORM:"QUICK_PROMOTE_BUSINESS_FORM",BILLING_FORM:"QUICK_PROMOTE_BILLING_FORM",SUCCESS_MODAL:"SUCCESS_MODAL",ERROR_MODAL:"ERROR_MODAL",TAG_MODAL:"TAG_MODAL",GDPR_MODAL:"GDPR_MODAL"},S="QUICK_PROMOTE_PAGE",k=[w.GDPR_MODAL,w.PIN_SELECTION_MODAL,S,w.BUSINESS_FORM,w.BILLING_FORM,w.SUCCESS_MODAL,w.ERROR_MODAL],j={NARROW:"NARROW",MEDIUM:"MEDIUM",WIDE:"WIDE"},A=e=>e>=1&&e<=2,C="qp-fac-education-id",D="qp-fac-modal-education-id",E={CONSIDERATION:"CONSIDERATION",WEB_CONVERSION:"WEB_CONVERSION",CATALOG_SALES:"CATALOG_SALES"},I={PINS:0,PRODUCT_GROUPS:1,BOARDS:2,SELECTED:3,SEARCH_RESULTS:4},T={MOST_RECENT:"RECENT",PROMOTED_PINS:"PROMOTED"},F=300},35066:(e,t,i)=>{"use strict";i.d(t,{S:()=>u,w:()=>c});var n=i(667294),l=i(425288),a=i(311541),r=i(632448),o=i(785893);let s=()=>i.e(6819).then(i.bind(i,6819)),{Provider:d,useHook:u}=(0,l.Z)("MerchantStorefrontSettings");function c({children:e}){let[t,i]=(0,a.Z)(s,r.Z),l=(0,n.useMemo)(()=>({merchantStorefrontSettings:t,updateLocaleStorefrontSetting:(e,t,n)=>{i({type:"UPDATE_LOCALE_STOREFRONT_SETTING",payload:{country:e,language:t,feedProfileId:n}})},updateStorefrontLastUpdated:e=>{i({type:"UPDATE_STOREFRONT_LAST_UPDATED",payload:e})}}),[i,t]);return(0,o.jsx)(d,{value:l,children:e})}},632448:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n={currentViewingLocale:{country:"",language:"",feedProfileId:""},lastUpdated:0}},990823:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>s,tY:()=>c,Xt:()=>d,Yh:()=>u});var n=i(702664),l=i(773285),a=i(784590),r=i(19121);let o={SAVE_TO_PROFILE:0,SHOW_BOARD_PICKER:1};function s(e){var t,i;let n=(0,r.Z)(),o=n.isAuth&&n.id===e,{checkExperiment:s}=(0,l.F)(),d=(0,a.Z)(!n.isAuth||o?null:{name:"UserResource",options:{field_set_key:"quicksave",user_id:e}}),u=o&&n.has_quicksave_board||!!(n.isAuth&&null!==(t=(null!=d?d:{}).data)&&void 0!==t&&t.has_quicksave_board)||(o||n.isAuth)&&!n.has_quicksave_board&&!(null!==(i=(null!=d?d:{}).data)&&void 0!==i&&i.has_quicksave_board)&&s("profile_saves_for_all").anyEnabled;return{showEnabledSaveBehavior:u}}function d(e){var t;let i=(0,r.Z)(),n=i.isAuth&&i.id===e,l=(0,a.Z)(!i.isAuth||n?null:{name:"UserResource",options:{field_set_key:"quicksave",user_id:e}}),o=n&&i.has_quicksave_board||!!(i.isAuth&&null!==(t=(null!=l?l:{}).data)&&void 0!==t&&t.has_quicksave_board);return{boardlessPinsEnabled:o}}function u(e){var t;let i=(0,n.useDispatch)(),l=(0,r.Z)(),o=l.isAuth&&!!l.boardCount&&l.boardCount<5,s=o&&e,d=(0,a.Z)(s&&e?{name:"UserResource",options:{field_set_key:"save_behavior",user_id:l.isAuth&&l.id}}:null);return l.isAuth&&void 0===l.save_behavior&&d&&null!==(t=d.data)&&void 0!==t&&t.id&&i({type:"UPDATE_USER_SAVE_BEHAVIOR",payload:{saveBehavior:d.data.save_behavior}}),{showEnabledSaveBehavior:s}}function c(e){let t;let i=(0,r.Z)();return e&&(i.save_behavior===o.SAVE_TO_PROFILE?t={type:"classic"}:i.save_behavior===o.SHOW_BOARD_PICKER&&(t={type:"inline"})),{saveBehaviorType:t}}},151645:(e,t,i)=>{"use strict";function n({user:e,viewer:t}){return!!(t.isAuth&&(null==e?void 0:e.username)===t.username)}i.d(t,{Z:()=>n})},96023:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(667294);function l(e,t){let i=null,l=null,a=null,r=()=>{if(i){let t=i.clientHeight,n=i.clientWidth;(l!==t||a!==n)&&(l=t,a=n,e(i)),window.requestAnimationFrame(r)}},o=t=>{i&&i===t||(i=t,l=t.clientHeight,a=t.clientWidth,e(i),r())},s=()=>{i=null};(0,n.useEffect)(()=>(t.current&&o(t.current),()=>{s()}),[t])}},737849:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(883119),l=i(121151),a=i(898781),r=i(349700),o=i(966113),s=i(50286),d=i(785893);let u=o.K_Y+"?source=block_dialogue";function c({firstName:e,onBlockUser:t,onClearModal:i}){let o=(0,a.ZP)(),c=(0,s.HG)(),p=(0,r.nk)(o._('Block {{ firstName }}?', 'blockUser.modal.header', 'header text asking if we should block the user'),{firstName:e}).join(""),h=(0,r.nk)(o._('Blocking {{ firstName }}, stops messages, follows, and comments. You can still view each other\u2019s profiles.', 'blockUser.modal.description', 'explanation of what blocking another user means'),{firstName:e});return c?(0,d.jsxs)(l.ZP,{accessibilityModalLabel:p,onDismiss:i,heading:p,footer:(0,d.jsxs)(n.xu,{marginStart:-1,marginEnd:-1,display:"flex",alignItems:"center",justifyContent:"end",children:[(0,d.jsx)(n.xu,{padding:1,children:(0,d.jsx)(n.zx,{fullWidth:!0,size:"md",text:o._('Cancel', 'blockUser.modal.cancel', 'Cancel blocking a user'),onClick:i})}),(0,d.jsx)(n.xu,{padding:1,children:(0,d.jsx)(n.zx,{fullWidth:!0,size:"md",color:"red",text:o._('Block', 'Button to confirm blocking a user', 'Button to confirm blocking a user'),onClick:t})})]}),role:"alertdialog",size:"md",children:[(0,d.jsx)(n.xu,{padding:4,"data-test-id":"block-text",children:(0,d.jsx)(n.xv,{children:h})}),(0,d.jsx)(n.xu,{padding:4,children:(0,d.jsx)(n.xv,{color:"default",weight:"bold",children:(0,d.jsx)(n.rU,{target:"blank",href:u,children:o._('Learn more', 'link to help center to learn more about blocking', 'link to help center to learn more about blocking')})})})]}):(0,d.jsxs)(l.ZP,{accessibilityModalLabel:p,onDismiss:i,mobileHideCloseIcon:!0,type:"block_button",children:[(0,d.jsx)(n.xu,{paddingX:3,paddingY:5,alignItems:"center",display:"flex",children:(0,d.jsx)(n.X6,{accessibilityLevel:1,size:"500",children:p})}),(0,d.jsx)(n.xu,{marginBottom:3,marginStart:2,marginEnd:2,children:(0,d.jsx)(n.xv,{align:"center",children:h})}),(0,d.jsxs)(n.xu,{marginStart:-1,marginEnd:-1,display:"flex",alignItems:"center",justifyContent:"center",children:[(0,d.jsx)(n.xu,{padding:1,children:(0,d.jsx)(n.zx,{fullWidth:!0,size:"md",text:o._('Cancel', 'blockUser.modal.cancel', 'Cancel blocking a user'),onClick:i})}),(0,d.jsx)(n.xu,{padding:1,children:(0,d.jsx)(n.zx,{fullWidth:!0,size:"md",color:"red",text:o._('Block', 'Button to confirm blocking a user', 'Button to confirm blocking a user'),onClick:t})})]})]})}},390598:(e,t,i)=>{"use strict";i.d(t,{PRODUCT_GROUP_COVER_IMAGE_DIMENSIONS:()=>s,Z:()=>d});var n=i(667294),l=i(883119),a=i(407043),r=i(970023),o=i(785893);let s={HEIGHT:362,WIDTH:362};function d({productGroup:e,preferredPreviewPinSizes:t=[],coverFit:i=!1}){var d,u,c,p,h;let _;let{logContextEvent:m}=(0,a.v)(),g=(null===(d=e.coverImages)||void 0===d?void 0:d[0])&&(0,r.cB)(e.coverImages[0]),{WIDTH:y,HEIGHT:v}=s,f=((null===(u=e.previewPins)||void 0===u?void 0:u[0])||{}).images,[x,b]=(0,n.useState)(!g);f&&x&&(_=t.concat("orig").map(e=>f[e]).find(e=>!!e));let P=x?null===(c=_)||void 0===c?void 0:c.height:v,w=x?null===(p=_)||void 0===p?void 0:p.width:y,S=x?null===(h=_)||void 0===h?void 0:h.url:g;return P&&w&&S?(0,o.jsx)(l.Ee,{alt:"",naturalHeight:P,naturalWidth:w,src:S,fit:i?"cover":"contain",onError:()=>{x||(m({event_type:10048,component:14004,aux_data:{product_group_cover_image_url:g}}),b(!0))}}):null}},316674:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(81636);function l({entryPoint:e,objectId:t,groupType:i}){return{aux_data:{commerce_data:JSON.stringify({entrypoint:e}),product_group_type:i},component:13698,object_id_str:t,view_type:1,view_parameter:3515}}function a(e){return"profile"===e?4:1}let r={Control:{BrandCatalogFeed:{tapBrandCatalogPin:function({commerceData:e},t){t({event_type:102,view_type:1,view_parameter:3244,component:0,aux_data:{...e}})}},ProductFeed:{tapProductPin:function({commerceData:e},t){t({event_type:102,component:13700,view_type:4,view_parameter:3512,aux_data:{...e}})}},StorefrontFeed:{tapProductGroup:function({productGroupId:e},t){t({event_type:102,view_type:4,view_parameter:3512,component:13698,object_id_str:e})},useShoppingProfileViewLog:function(){(0,n.Q)({view_type:4,view_parameter:3107,component:237})},viewProductGroup:function({productGroupId:e},t){t({event_type:120,view_type:4,view_parameter:3512,component:13698,object_id_str:e})}}},DomainModule:{trackSeeMoreClick:function({viewParameter:e},t){t({event_type:102,component:13327,element:11829,view_type:3,view_parameter:e})}},Feeds:{BrandCatalog:{tapBrandCatalogPin:function({commerceData:e},t){t({event_type:102,view_type:1,view_parameter:3513,component:13700,aux_data:{...e}})}},Categories:{tapCategoryBubble:function({entryPoint:e},t){t({event_type:102,view_type:1,view_parameter:3514,component:13699,aux_data:{commerce_data:JSON.stringify({entrypoint:e})}})}},ProductGroups:{productGroupRendered:function({entryPoint:e,productGroupId:t,groupType:i},n){let a=l({entryPoint:e,objectId:t,groupType:i});n({event_type:120,...a})},tapProductGroup:function({entryPoint:e,productGroupId:t,groupType:i},n){let a=l({entryPoint:e,objectId:t,groupType:i});n({event_type:102,...a})}},ProductPins:{tapProductPin:function({commerceData:e,component:t},i){i({event_type:102,component:t,view_type:1,view_parameter:3513,aux_data:{...e}})},viewProductPinsFeed:function({component:e,entryPoint:t,category:i,productGroupId:n},l){l({event_type:13,component:e,view_type:1,view_parameter:3513,aux_data:{commerce_data:JSON.stringify({entrypoint:t}),category_title:i,product_group_id:n}})}},viewFeedPage:function({entryPoint:e,viewParameter:t},i){i({event_type:13,view_type:1,view_parameter:t,aux_data:{commerce_data:JSON.stringify({entrypoint:e})}})}},StructuredFeed:{viewStructuredFeed:function({merchantId:e,source:t},i){i({event_type:13,view_type:a(t),view_parameter:3512,..."profile"===t?{object_id_str:e}:Object.freeze({})})},Categories:{viewCategory:function({id:e,source:t,title:i,bubble:n},l){l({event_type:120,component:13699,view_type:a(t),view_parameter:3512,aux_data:{story_type:"storefront_category_bubbles",story_id:e,category_title:i,...n.aux_fields}})},tapCategory:function({id:e,source:t,title:i,bubble:n},l){l({event_type:102,component:13699,view_type:a(t),view_parameter:3512,aux_data:{story_type:"storefront_category_bubbles",story_id:e,category_title:i,...n.aux_fields}})},tapSeeMoreCategories:function({id:e,source:t},i){i({event_type:102,component:13699,element:179,view_type:a(t),view_parameter:3512,aux_data:{story_id:e,story_type:"storefront_category_footer_button"}})}},ProductGroups:{tapProductGroup:function({productGroupId:e,source:t,groupType:i,componentType:n,index:l},r){r({event_type:102,component:n,object_id_str:e,view_type:a(t),view_parameter:3512,aux_data:{product_group_type:i,grid_index:l}})},tapSeeMoreProductGroups:function({id:e,source:t},i){i({event_type:102,component:13698,element:179,aux_data:{story_id:e,story_type:"storefront_product_group_footer_button"},view_type:a(t),view_parameter:3512})},viewProductGroup:function({productGroupId:e,source:t,groupType:i,componentType:n},l){l({event_type:120,component:n,object_id_str:e,view_type:a(t),view_parameter:3512,aux_data:{product_group_type:i}})}},PinsFeed:{viewPinsFeed:function({id:e,OwnerUserId:t,pinsFeedTitle:i,source:n},l){l({event_type:120,component:13700,view_type:a(n),view_parameter:3512,aux_data:{story_id:e,story_type:"storefront_pins_feed",pins_feed_title:i,owner_user_id:t}})},tapPin:function({commerceData:e,source:t},i){i({event_type:102,component:0,view_type:a(t),view_parameter:3512,aux_data:{...e}})}}}}},970023:(e,t,i)=>{"use strict";i.d(t,{yh:()=>n,QE:()=>l,cB:()=>a}),i(214494),i(186656);let n="ALL_PRODUCTS",l=5e3,a=e=>{if(!e)return"";let t=["488x488","976x976","368x368","736x","474x","originals","orig",Object.keys(e)[0]];for(let n of t)if(e[n]){var i;return null!==(i=e[n].url)&&void 0!==i?i:""}return""}},436395:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(616550),l=i(784590);function a(){let{username:e}=(0,n.useParams)();return(0,l.Z)(null==e?null:{name:"UserResource",options:{username:e,field_set_key:"profile"}})}},781165:(e,t,i)=>{"use strict";i.d(t,{A8:()=>x,CQ:()=>j,Cf:()=>v,DK:()=>m,GJ:()=>k,RZ:()=>b,SD:()=>P,aN:()=>A,h6:()=>y,tV:()=>S,xx:()=>f,yC:()=>C,zC:()=>g});var n,l,a,r,o,s,d,u=i(702664),c=i(167912),p=i(214494),h=i(407043),_=i(186656);let m=()=>{let e=void 0!==n?n:n=i(29260),[t]=(0,c.useMutation)(e),{logContextEvent:l}=(0,h.v)();return async(e,i,n)=>{let a={boardId:e,collaboratorIds:i,message:n||""};return await new Promise((i,n)=>{t({variables:{...a},onCompleted:(t,a)=>{a&&n(a[0]),l({event_type:28,object_id_str:e}),i()},onError:e=>n(e)})})}},g=()=>{let e=void 0!==l?l:l=i(320926),[t]=(0,c.useMutation)(e),{logContextEvent:n}=(0,h.v)();return async(e,i,l)=>{let a={boardId:e,emails:i,message:l||""};return await new Promise((i,l)=>{t({variables:{...a},onCompleted:(t,a)=>{a&&l(a[0]),n({event_type:28,object_id_str:e}),i()},onError:e=>l(e)})})}},y=()=>{let e=void 0!==a?a:a=i(624602),[t]=(0,c.useMutation)(e),{logContextEvent:n}=(0,h.v)();return async(e,i)=>{let l={boardId:e,userId:i};return await new Promise((i,a)=>{t({variables:{...l},onCompleted:(t,l)=>{l&&a(l[0]),n({event_type:32,object_id_str:e}),i(t)},onError:e=>a(e)})})}};function v(e,t){return async i=>{await (0,_.Z)({url:`/v3/boards/${e}/collaborators/requests/ownership/`,method:"POST",data:{collaborator:t}}),i({type:"BOARD_OWNERSHIP_TRANSFER_REQUEST",payload:{boardId:e,collaboratorId:t}})}}function f(e,t){return async i=>{await (0,_.Z)({url:`/v3/boards/${e}/collaborators/requests/ownership/`,method:"DELETE",data:{collaborator:t}}),i({type:"BOARD_OWNERSHIP_TRANSFER_REQUEST_CANCEL",payload:{boardId:e}})}}let x=(e,t)=>({type:"BOARD_INVITE_ACCEPTED_BY_VIEWER",payload:{boardId:e,collaboratingUser:t}}),b=()=>{let e=void 0!==r?r:r=i(273002),[t]=(0,c.useMutation)(e),{logContextEvent:n}=(0,h.v)();return async e=>{let i={boardId:e};return await new Promise((l,a)=>{t({variables:{...i},onCompleted:(t,i)=>{i&&a(i[0]),n({event_type:32,object_id_str:e}),l(t)},onError:e=>a(e)})})}},P=(e,t,i)=>async n=>{n(x(e,t));let l=await p.Z.create("BoardInviteResource",{board_id:e,invited_user_id:t.id}).callUpdate();l.resource_response.error||i({event_type:32,object_id_str:e})};function w(e,t){return{type:"BOARD_REQUEST_TO_JOIN",payload:{boardId:e,value:t}}}let S=()=>{let e=void 0!==o?o:o=i(925033),[t]=(0,c.useMutation)(e),n=(0,u.useDispatch)();return async e=>{let i={boardId:e};return await new Promise((l,a)=>{t({variables:{...i},onCompleted:(t,i)=>{i&&(n(w(e,!1)),a(i[0])),n(w(e,!0)),l(t)},onError:t=>{n(w(e,!1)),a(t)}})})}};function k(e,t){return i=>{(0,_.Z)({url:`/v3/boards/${e}/collaborators/request/${t}/`,method:"DELETE",data:{board:e,user:t}}).catch(()=>{i(w(e,!0))}),i(w(e,!1))}}let j=()=>{let e=void 0!==s?s:s=i(572163),[t]=(0,c.useMutation)(e),{logContextEvent:n}=(0,h.v)();return async(e,i,l)=>{let a={boardId:e,userId:i,ban:!!l&&l};return await new Promise((i,l)=>{t({variables:{...a},onCompleted:(t,a)=>{a&&l(a[0]),n({event_type:29,object_id_str:e}),i(t)},onError:e=>l(e)})})}},A=()=>{let e=void 0!==d?d:d=i(34035),[t]=(0,c.useMutation)(e),{logContextEvent:n}=(0,h.v)();return async(e,i)=>{let l={board:e,collaboratorIds:[i]};return await new Promise((i,a)=>{t({variables:{...l},onCompleted:(t,l)=>{l&&a(l[0]),n({event_type:29,object_id_str:e}),i(t)},onError:e=>a(e)})})}},C=()=>{let e=j(),t=A();return(i,n,l)=>async()=>{let{invited_user:n,status:a,board:{id:r}}=i;n&&("accepted"===a?await t(r,n.id):await e(r,n.id,l))}}},576028:(e,t,i)=>{"use strict";i.d(t,{V:()=>r,u:()=>a});var n=i(214494),l=i(254176);let a=e=>t=>n.Z.create("BoardResource",{board_id:e}).callGet().then(e=>{let i=e&&e.resource_response&&e.resource_response.data;return i&&t((0,l.yT)(i)),e});function r(e,t,i){return(a,r)=>{let{boards:o}=r(),s=o[e],d=void 0===t.collaborator_requests_enabled||null===t.collaborator_requests_enabled?Object.freeze({}):{collaborator_requests_enabled:t.collaborator_requests_enabled},u={allow_homefeed_recommendations:t.allow_homefeed_recommendations,category:t.category,collab_board_email:t.collab_board_email,collaborator_invites_enabled:t.collaborator_invites_enabled,collaborator_permissions_setting:t.collaborator_permissions_setting,description:t.description,...t.name&&{name:t.name},privacy:t.privacy,sensitivity:t.sensitivity||null,...i?{orbac_subject_id:i}:Object.freeze({}),...d};return a((0,l.yT)({...u,id:e})),n.Z.create("BoardResource",{...u,board_id:e}).callUpdate().then(e=>{let i=e&&e.resource_response&&e.resource_response.data||t;return null!=t.allow_homefeed_recommendations&&(i.allow_homefeed_recommendations=t.allow_homefeed_recommendations),a((0,l.yT)(i)),e}).catch(e=>{throw s&&a((0,l.yT)(s)),e})}}},915071:(e,t,i)=>{"use strict";function n(e,t){return{type:"SEARCH_PIN_CLOSEUP_VIEWED",payload:{pinId:e,query:t}}}function l(e){return{type:"SEARCH_QUERY_STARTED",payload:{query:e}}}function a(e){return{type:"SEARCH_QUERY_INVALIDATED",payload:{query:e}}}i.d(t,{Y4:()=>n,g4:()=>l,sb:()=>a})},600147:(e,t,i)=>{"use strict";i.d(t,{DD:()=>c,lg:()=>p,Th:()=>_,YH:()=>s,wH:()=>o,IU:()=>h,L8:()=>u});var n=i(214494),l=i(186656),a=i(956800),r=i(492583);function o({didItDataId:e,isLikedByMe:t}){return i=>((0,l.Z)({url:`/v3/did_it/${e}/like/`,method:t?"DELETE":"POST"}),i({type:"USER_DID_IT_DATA_LIKE_TOGGLED",payload:{id:e,liked_by_me:!t}}))}function s({didItDataId:e,isMarkedHelpfulByMe:t}){return i=>((0,l.Z)({url:`/v3/helpful/2/${e}/`,method:t?"DELETE":"POST"}),i({type:"USER_DID_IT_DATA_HELPFUL_TOGGLED",payload:{id:e,marked_helpful_by_me:!t}}))}function d(e){return{type:"USER_DID_IT_DATA_DELETE",payload:{id:e}}}function u(e,t){return{type:"USER_DID_IT_DATA_UPDATE_COMMENT_COUNT",payload:{id:e,increment:t}}}function c({aggregatedPinDataId:e,details:t,fromUnifiedComment:i,image_signatures:l,pin_id:o,username:s,updateParentDidItCount:d}){let c={aggregatedPinDataId:e,details:t,image_signatures:l,pin_id:o};return t=>n.Z.create("DidItActivityResource",c).callCreate().then(n=>{let l=n.resource_response.data;t({type:"PIN_DID_IT",payload:{id:o,value:!0}}),t({type:"USER_DID_IT_DATA_CREATE",payload:{user_did_it_data:l}}),t((0,a.vX)({feedId:e,feedType:i?r.Z.UNIFIED_COMMENTS:r.Z.TRIED_IT_FEED,itemIds:[l.id],itemType:l.type})),t((0,a.vX)({feedId:s,feedType:r.Z.TRIED_IT_FEED,itemIds:[l.id],itemType:l.type})),d&&t(u(e,1))},()=>{})}function p({aggregatedPinDataId:e,feedType:t,id:i,isOwnedByMe:l,pinId:o,username:s,updateParentDidItCount:c}){return p=>{n.Z.create("DidItActivityResource",{user_did_it_data_id:i,pinId:o}).callDelete().then(()=>{l&&p({type:"PIN_DID_IT",payload:{id:o,value:!1}}),p(d(i)),p((0,a.EX)({feedId:null!=e?e:"",feedType:t||r.Z.TRIED_IT_FEED,itemIds:[i],itemType:"userdiditdata"})),p((0,a.EX)({feedId:s,feedType:r.Z.TRIED_IT_FEED,itemIds:[i],itemType:"userdiditdata"})),p((0,a.EX)({feedId:s,feedType:r.Z.UNIFIED_COMMENTS,itemIds:e?[e]:[],itemType:"userdiditdata"})),c&&p(u(i,-1))},()=>{})}}function h({id:e,details:t,image_signatures:i,pinId:l}){let a={details:t,image_signatures:i,user_did_it_data_id:e,pin_id:l};return e=>{n.Z.create("DidItActivityResource",a).callUpdate().then(t=>{let i=t.resource_response.data;e({type:"USER_DID_IT_DATA_UPDATE",payload:{user_did_it_data:i}})},()=>{})}}function _(e,t,i,n,o){return s=>{(0,l.Z)({url:`/v3/did_it/${i}/flag/`,method:"PUT",data:{reason:n,detailed_reasons:t,explanation:void 0}}).then(()=>{s(d(i)),e&&s((0,a.EX)({feedId:e,feedType:r.Z.TRIED_IT_FEED,itemIds:[i],itemType:"userdiditdata"})),s((0,a.EX)({feedId:o,feedType:r.Z.TRIED_IT_FEED,itemIds:[i],itemType:"userdiditdata"}))},()=>{})}}},177891:(e,t,i)=>{"use strict";i.d(t,{a:()=>n,k:()=>l});let n=e=>({type:"ONE_TAP_SAVE",payload:e}),l=e=>({type:"ONE_TAP_UNSAVE",payload:e})},447948:(e,t,i)=>{"use strict";function n(e,t){return{type:"CHANGE_CAROUSEL_SLOT_INDEX",payload:{id:e,index:t}}}function l(e,t){return{type:"SET_PIN_COMMENTS_DISABLED",payload:{id:e,pinCommentsDisabled:t}}}function a(e,t,i,n,l){return{type:"PIN_SAVE",payload:{id:e,boardId:t,title:i,url:n,localPinId:l}}}function r(e){return{type:"PIN_UNSAVE",payload:{id:e}}}function o(e){return{type:"PIN_SHOW_SUGGESTED_CREATOR_RECS",payload:{id:e,value:!0}}}function s({id:e,text:t,undoAction:i,undoActionOptions:n,undoText:l}){return{type:"PIN_SHOW_UNDO_AND_FEEDBACK",payload:{id:e,value:!0,text:t,undoAction:i,undoActionOptions:n,undoText:l}}}function d(e){return{type:"PIN_SHOW_FEEDBACK",payload:{id:e,value:!1}}}function u(e,t){return{type:"PIN_SHOW_FEEDBACK",payload:{id:e,value:!0,text:t}}}function c(e){return{type:"PIN_SHOW_FEEDBACK_OVERLAY",payload:{id:e,value:!0}}}function p(e){return{type:"PIN_SHOW_FEEDBACK_OVERLAY",payload:{id:e,value:!1}}}function h(e){return{type:"PIN_SHOW_AD_REASONS_MODAL",payload:{id:e,value:!0}}}function _(e){return{payload:{id:e,value:!1},type:"PIN_SHOW_AD_REASONS_MODAL"}}i.d(t,{Gb:()=>r,I1:()=>d,Ib:()=>c,NA:()=>s,Ur:()=>a,Vw:()=>o,b9:()=>h,i0:()=>p,mO:()=>l,q1:()=>u,yR:()=>n,yj:()=>_})},12918:(e,t,i)=>{"use strict";i.d(t,{M:()=>s,i:()=>u});var n=i(782677),l=i(214494),a=i(414327),r=i(90326),o=i(483025);let s=(e,t,i,n)=>({type:"PIN_ADD",payload:{pinId:e,boardId:t,boardSectionId:i,pinnerId:n}}),d=(e,t)=>new Promise(i=>{e?(0,r.eR)(e).then(e=>{i(e)}):i(t)}),u=e=>t=>{let{method:i,guid:r,image_base64:u,image_url:c}=e;return d(u,c).then(d=>{let u={...e,method:"button"!==i||r?i:"button_external",image_url:d,image_base64:void 0},c="PinResource";return l.Z.create(c,u).callCreate().then(e=>{let i=(0,n.Fv)(e.resource_response.data,o.Z[c]);t((0,a.XM)(c,u,e,i));let l=e.resource_response.data,{board:{id:r},pinner:{id:d},section:p}=l,h=p&&p.id;return t(s(l.id,r,h,d)),e})})}},274415:(e,t,i)=>{"use strict";function n(e,t){return{type:"PIN_UPDATE_COMMENT_COUNT",payload:{id:e,increment:t}}}i.d(t,{R:()=>n})},139574:(e,t,i)=>{"use strict";i.d(t,{L:()=>o,q:()=>d});var n=i(214494),l=i(254176),a=i(956800),r=i(492583);function o(e){return t=>{let{inSelectAll:i,selectedPinIds:o,orbacSubjectId:s,source:{boardId:d,sectionId:u}}=e;return t((0,l.xQ)(d)),t((0,a.EX)({feedId:u||d,feedType:u?r.Z.BOARD_SECTION_PINS:r.Z.BOARDFEED,inverseSelection:i,itemIds:o,itemType:"pin"})),n.Z.create(i?"BulkEditSelectAllResource":"BulkEditResource",{board_id:d,section_id:u,pin_ids:o,orbac_subject_id:s}).callDelete()}}let s=(e,t,i,n)=>({type:"PIN_DELETE",payload:{pinId:e,boardId:t,boardSectionId:i,userId:n}}),d=({pinId:e,boardId:t,boardSectionId:i,clientTrackingParams:l})=>(a,r)=>{let o=n.Z.create("PinResource",{id:e,client_tracking_params:l}).callDelete(),{session:{userId:d}}=r();return a(s(e,t,i,d)),o}},550393:(e,t,i)=>{"use strict";i.d(t,{Q:()=>a,a:()=>l});var n=i(186656);function l(e,t){return async i=>{let{resource_response:l}=await (0,n.Z)({url:`/v3/storypins/${e}/mentions/`,method:"DELETE"});return i({type:"DELETE_PIN_MENTION",payload:{pinId:e,userId:t}}),l}}function a(e){return async t=>{let{resource_response:i}=await (0,n.Z)({url:`/v3/aggregated_comments/${e}/mentions/`,method:"DELETE",data:{fields:["aggregatedcomment.id","aggregatedcomment.tagged_users"]}}),{data:l}=i;return t({type:"DELETE_COMMENT_MENTION",payload:{aggregatedCommentId:l.id,tagged_users:l.tagged_users}}),i}}},482567:(e,t,i)=>{"use strict";i.d(t,{_:()=>l});var n=i(186656);function l(e,t,i,l){return async a=>{let{resource_response:r}=await (0,n.Z)({url:`/v3/pins/${e}/notes/`,method:!i&&"DELETE"||!t&&"POST"||"PUT",data:{pin_note_content:i,...l?{orbac_subject_id:l}:Object.freeze({})}});a({type:"PIN_NOTE_UPDATE",payload:{pinId:e,pinNote:r.data}})}}},749147:(e,t,i)=>{"use strict";function n(e){return{type:"PIN_QUICK_SAVE",payload:e}}function l(e){return{type:"UPDATE_PINS_WITH_QUICKSAVE_REPIN",payload:{newPin:e}}}i.d(t,{X:()=>l,d:()=>n})},850431:(e,t,i)=>{"use strict";i.d(t,{w:()=>o});var n=i(361115),l=i(956800),a=i(723852),r=i(675752);let o=({pinId:e,boardId:t,checkExperiment:i,i18n:o,isQuickSave:s,logContextEvent:d,onSuccess:u,onUndo:c,originalPinId:p,showNewUserSavetoProfileAnimation:h,showRepinConfirmation:_,showToast:m,section:g,trackingParams:y,isOneTapSave:v,viewType:f,historyPush:x,suggestedBoardIds:b,savePinId:P})=>(w,S)=>{var k,j,A,C,D,E,I,T,F;let{pins:z,session:R,feeds:L}=S(),M=z[e];t&&((null===(k=null!==(j=null==M?void 0:M.shopping_flags)&&void 0!==j?j:[])||void 0===k?void 0:k.length)>0||null!=M&&M.rich_summary&&(null===(A=null!==(C=null==M?void 0:null===(D=M.rich_summary)||void 0===D?void 0:D.products)&&void 0!==C?C:[])||void 0===A?void 0:A.length)>0)&&(L[`board-shop-saved-preview:${t}`]&&w((0,l.Qv)(`board-shop-saved-preview:${t}`,[M],{isPrepend:!0})),L[`board-shop-saved:${t}`]&&w((0,l.Qv)(`board-shop-saved:${t}`,[M],{isPrepend:!0})));let Z=new a.Z({boardId:t,dispatch:w,i18n:o,isLegoSaveStyle:!0,isOneTapSave:v,isQuickSave:s,onSuccess:u,onUndo:c,originalPinId:p,pinId:M.id,section:g,showNewUserSavetoProfileAnimation:h,showRepinToasts:e=>_?_(e):m?m(e):void 0,trackingParams:y,userId:R.userId,viewType:f,historyPush:x,suggestedBoardIds:b,savePinId:P,pinData:{trackingParams:M.tracking_params,viewParameter:(0,r.A)({hasRichMetadata:!!M.rich_metadata,hasRichMetadataProducts:!!(null!==(E=M.rich_metadata)&&void 0!==E&&E.products),hasRichMetadataArticle:!!(null!==(I=M.rich_metadata)&&void 0!==I&&I.article),hasRichMetadataRecipe:!!(null!==(T=M.rich_metadata)&&void 0!==T&&T.recipe)}),pinnedToBoardId:null===(F=M.pinned_to_board)||void 0===F?void 0:F.id}});return(0,n.ib)({checkExperiment:i,isAuthMweb:R.isAuthenticated&&(R.isMobile||R.isTablet)}),Z.processRepin(d)}},639952:(e,t,i)=>{"use strict";i.d(t,{Cp:()=>s,FK:()=>o,H5:()=>f,MI:()=>_,O0:()=>h,QZ:()=>r,W:()=>y,WF:()=>u,Wz:()=>x,a5:()=>c,dz:()=>g,e0:()=>p,e2:()=>a,iW:()=>v,n1:()=>l,rm:()=>d,xu:()=>m});var n=i(53987);let l=()=>({type:"DISMISS_UNAUTH_SAVE"}),a=()=>({type:"COMPLETE_UNAUTH_SAVE_ACTION"}),r=e=>({type:"SET_UNAUTH_SAVE_PIN_ID",payload:{unauthSavePinId:e}}),o=()=>({type:"HIDE_NAV_FOOTER"}),s=()=>({type:"SHOW_NAV_FOOTER"}),d=e=>({type:"SET_LOGIN_SIGNUP_FROM",payload:{from:e}}),u=()=>({type:"SHOW_REPIN_ANIMATION"}),c=()=>({type:"HIDE_REPIN_ANIMATION"}),p=e=>({type:"SET_NUM_SIGNUP_STEPS",payload:{steps:e}}),h=()=>({type:"SET_OWN_PROFILE_PINS_REFRESH"}),_=e=>({type:"SHOW_BIZ_NUX_HOMEFEED_LOADER",payload:e}),m=e=>({type:"SET_VIEWED_IMAGE",payload:{viewedImageSignature:e}}),g=e=>({type:"SET_VIEWED_SHARED_PINS",payload:{pins:e}}),y=()=>({type:"DISMISS_UNAUTH_APP_UPSELL"}),v=e=>e?{type:"LOGGED_OUT_USER_INFO_FOUND",payload:e}:{type:"LOGGED_OUT_USER_INFO_NOT_FOUND"},f=e=>({type:"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX",payload:e}),x=(e,t)=>({type:"SET_LANDING_PAGE_TYPE",payload:e?(0,n.bo)(e)?"today":(0,n.dr)(e)?"ideas":t&&(0,n.dZ)(e,t)?"own_section":t&&(0,n.J)(e,t)?"own_board":(0,n.OJ)(e)?"section":(0,n.am)(e)?"board":(0,n.L6)(e)?"closeup":(0,n.C$)(e)?"home":(0,n.cD)(e)?"profile":(0,n.En)(e)?"search":(0,n.$V)(e)?"topic":"":""})},461773:(e,t,i)=>{"use strict";i.d(t,{KF:()=>u,ZN:()=>o,fv:()=>d,kE:()=>p,yA:()=>s});var n=i(214494),l=i(186656),a=i(90326);function r(e,t,i,l){return n.Z.create("UserFollowResource",{user_id:e,invite_code:l||void 0,aux_data:t?{pin_id:t}:void 0,client_tracking_params:i})}function o(e,t=null,i,n){return l=>{r(e,t,i,n).callCreate().catch(()=>l((0,a.P_)(e,!1))),l((0,a.P_)(e,!0))}}function s(e,t=null,i,n){return async l=>{l((0,a.P_)(e,!0)),await r(e,t,i,n).callCreate().catch(t=>{throw l((0,a.P_)(e,!1)),t})}}function d(e,t=null,i){return n=>{r(e,t,i).callDelete().catch(()=>n((0,a.P_)(e,!0))),n((0,a.P_)(e,!1))}}function u(e,t=null,i){return async n=>{n((0,a.P_)(e,!1)),await r(e,t,i).callDelete().catch(t=>{throw n((0,a.P_)(e,!0)),t})}}let c=(e,t)=>({type:"USER_BULK_FOLLOW",payload:{ids:e,value:t}}),p=e=>t=>{e.length>0&&((0,l.Z)({url:"/v3/users/follow/",method:"PUT",data:{followee_ids:e.join(",")}}).catch(()=>t(c(e,!1))),t(c(e,!0)))}},90326:(e,t,i)=>{"use strict";i.d(t,{Ge:()=>d,JS:()=>r,OF:()=>x,P_:()=>o,Q_:()=>p,b8:()=>h,eR:()=>f,h2:()=>u,h6:()=>c});var n=i(214494),l=i(186656),a=i(735422);function r(e){return{type:"UPDATE_USER_PIN_COUNT",payload:e}}let o=(e,t)=>({type:"USER_FOLLOW",payload:{id:e,value:t}}),s=(e,t)=>({type:"USER_BLOCK",payload:{id:e,value:t}}),d=({id:e,orbacSubjectId:t,blockSource:i,blockContext:l,logContextEvent:a})=>async r=>{r(s(e,!0));let o=await n.Z.create("UserBlockResource",{blocked_user_id:e,orbac_subject_id:t,block_source:i,block_context:l}).callCreate().catch(()=>r(s(e,!1)));return a({event_type:54,object_id_str:e}),o},u=(e,t)=>async i=>{i(s(e,!1));let l=await n.Z.create("UserBlockResource",{blocked_user_id:e}).callDelete().catch(()=>i(s(e,!0)));return t({event_type:55,object_id_str:e}),l};function c(e){return{type:"UPDATE_USER_SCHEDULED_PIN_COUNT",payload:e}}let p=(e,t)=>()=>{let i=n.Z.create("UserStateResource",{state:e,value:t});return i.callCreate()},h=(e,t,i)=>(n,r)=>{(0,l.Z)({url:"/v3/users/me/",method:"POST"}).then(()=>{i({event_type:48,object_id_str:r().session.userId}),e(),(0,a.Dm)()},t)},_=e=>e>=200&&e<400,m=(e,t="150x150")=>e&&`https://i.pinimg.com/${t}/${e.substring(0,2)}/${e.substring(2,4)}/${e.substring(4,6)}/${e}.jpg`||"",g=async(e,t,i)=>{let l=await n.Z.create("VIPResource",{upload_ids:[e]}).callGet();if(l.resource_response.data[e]){let n=l.resource_response.data[e],{status:a,signature:r}=n;if("processing"===a||"registered"===a)setTimeout(async()=>{g(e,t,i)},5e3);else if("succeeded"===a){let e=m(r);t(e)}else i()}else i()},y=(e,t,i,l,a)=>{let r=new FormData;return r.append("img",e),n.Z.create("VIPResource",{type:t}).callCreate().then(t=>{if(t.resource_response.data){let{upload_id:n,upload_url:r,upload_parameters:o}=t.resource_response.data,s=new XMLHttpRequest;s.open("POST",r,!0),s.onload=()=>{_(s.status)?(i(100),g(n,l,a)):a()},s.upload.onprogress=e=>{let t=Math.round(100*e.loaded/e.total);i(t)};let d=new FormData;for(let e in o)d.append(e,o[e]);d.append("file",e),s.send(d)}},()=>{a()})},v=e=>new Promise((t,i)=>{y(e,"pinimage",()=>{},e=>{t(e)},e=>{i(e)})}),f=e=>new Promise((t,i)=>{"string"==typeof e?e.startsWith("data")&&v(function(e,t=512){let i=e.split(";"),n=i[0].split(":")[1],l=i[1].split(",")[1],a=atob(l),r=[];for(let e=0;e<a.length;e+=t){let i=a.slice(e,e+t),n=Array(i.length);for(let e=0;e<i.length;e+=1)n[e]=i.charCodeAt(e);let l=new Uint8Array(n);r.push(l)}let o=new Blob(r,{type:n});return o}(e)).then(e=>t(e)):i("Invalid Image")}),x=e=>()=>(0,l.Z)({url:"/v3/register/exists/",data:{email:e}})},578248:(e,t,i)=>{"use strict";i.d(t,{H5:()=>o,Nq:()=>r,Q_:()=>s,bJ:()=>d});var n=i(214494),l=i(80816),a=i(574724);function r(e){let{updateUserData:t}=e,i={},r=null;if(t.gender&&[a.W1,a.UV].includes(t.gender)?i.gender=t.gender:t.custom_gender&&(i.customGender=t.custom_gender,i.gender=a.vF),t.age?i.age=t.age:t.birthdate&&(i.birthdate=t.birthdate),t.locale&&(i.locale=t.locale),t.country&&(i.country=t.country),t.business_vertical&&(i.businessVertical=t.business_vertical),t.business_vertical_other&&(i.businessVerticalOther=t.business_vertical_other),t.number_employees&&(i.numberEmployees=t.number_employees),t.first_name&&(i.firstName=t.first_name),t.last_name&&(i.lastName=t.last_name),t.full_name&&(i.fullName=t.full_name),t.parent_email&&(i.parentEmail=t.parent_email),t.website_url&&(i.websiteUrl=t.website_url),t.listed_website_url&&(i.listedWebsiteUrl=t.listed_website_url),void 0!==t.allow_analytic_cookies&&(i.allow_analytic_cookies=t.allow_analytic_cookies),void 0!==t.allow_analytic_cookies&&(i.allow_marketing_cookies=t.allow_marketing_cookies),void 0!==t.allow_analytic_cookies&&(i.allow_personalization_cookies=t.allow_personalization_cookies),t.advertising_intent||t.business_name||t.account_type||t.business_goals||t.selected_ecommerce_platforms||t.enable_profile_message||t.enable_profile_address){let{account_type:e,advertising_intent:i,business_name:n,business_goals:l,enable_profile_message:a,enable_profile_address:o,selected_ecommerce_platforms:s}=t;r={...i?{advertising_intent:i}:{},...e?{account_type:e}:{},...n?{business_name:n}:{},...l?{business_goals:l}:{},...a?{enable_profile_message:a}:{},...o?{enable_profile_address:o}:{},...s?{selected_ecommerce_platforms:s}:{}}}r&&(i.partner=r,r.business_name&&(i.firstName=r.business_name));let o=n.Z.create("UserSettingsResource",{...t,surface_tag:l.i.NUX}).callUpdate();return function(e){return o.then(t=>(e({type:"UPDATE_USER_SET",payload:i}),t))}}function o(e){return{type:"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX",payload:e}}function s(e,t){return()=>{let i=n.Z.create("UserStateResource",{state:e,value:t});i.callCreate()}}function d(e,t=""){return()=>n.Z.create("UpdateFollowedInterestsResource",{referrer:t,updated_interest_follows:e}).callUpdate()}},384833:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(442279);let l=(0,n.P1)(({users:e,boards:t,session:i})=>{let n=e[i.userId]||null;return Object.keys(t).reduce((e,i)=>{var l;let a=t[i];return!a.archived_by_me_at&&((null===(l=a.owner)||void 0===l?void 0:l.id)===n.id||a.collaborating_users&&a.collaborating_users.map(({id:e})=>e).includes(n.id))&&a.cover_images?e.concat([a]):e},[])},e=>e.sort((e,t)=>e.name.localeCompare(t.name))),a=l},404508:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(702664),l=i(616550),a=i(883119),r=i(112690),o=i(385740),s=i(898781),d=i(773285),u=i(957161),c=i(867820),p=i(52022),h=i(50286),_=i(709113),m=i(785893);function g({alignIconLeft:e,bgColor:t,color:i,disableRedirect:g=!1,fallbackUrl:y,icon:v="arrow-back",onTouch:f,padding:x,placement:b,shouldUseFallbackUrl:P,size:w="lg",viewParameter:S,viewType:k,fallbackUrlForExp:j}){let A=(0,s.ZP)(),C=(0,h.HG)(),{checkExperiment:D}=(0,d.F)(),E=(0,l.useHistory)(),I=(0,l.useLocation)(),T=(0,n.useSelector)(e=>e.session.isAuthenticated),F=(0,r.Z)(),z=(0,p.Z)(),R=!T&&j&&"/ideas"===y,{viewType:L,viewParameter:M}=(0,o.SU)(),[Z,B]=k?[k,S]:[L,M],O=()=>I.search&&I.search.includes("?nativeShouldDismiss=true"),N=()=>{let e=u.Z.getItem(_.pm);I.key||"/ideas"!==y?(0,c.My)(`pinner_conversion.back_button.${String(null==e?void 0:e[0].pageType)}`):(0,c.My)("pinner_conversion.back_button.no_history"),(0,c.My)(`web_back_button_click.${String(b)}.is_auth_${String(T)}`),z({action:"click",item:"back-button"}),Z&&F({view_type:Z,view_parameter:B,element:34,event_type:102}),f&&f(),g||((!I.key||I.state&&"redirect"===I.state.referrer||P)&&y?R?C&&D("web_unauth_backbutton_navigation").anyEnabled?(E.push(j||y),(0,c.My)("web.unauth.back_button.l1interest")):!C&&D("mweb_unauth_backbutton_navigation").anyEnabled?(E.push(j||y),(0,c.My)("mweb.unauth.back_button.l1interest")):E.push(y):E.push(y):I.pathname.includes("/password/reset/")&&O()?E.push("/login/?dismissWebview=true"):E.goBack())};return(0,m.jsx)(a.xu,{"data-test-id":"back-button",children:e?(0,m.jsx)(a.xu,{display:"flex",width:48,height:48,alignItems:"center",marginStart:"cancel"===v?-1:-2,children:(0,m.jsx)(a.hU,{accessibilityLabel:A._('Back', 'navigation button', 'navigation button'),bgColor:t,iconColor:!i&&(!t||["white","lightGray","transparent"].includes(t))?"gray":i,icon:v,onClick:N,padding:"auto"!==x?x:2,size:w})}):(0,m.jsx)(a.hU,{accessibilityLabel:A._('Back', 'navigation button', 'navigation button'),bgColor:t,iconColor:!i&&(!t||["white","lightGray","transparent"].includes(t))?"gray":i,icon:v,onClick:N,padding:"auto"!==x?x:2,size:w})})}},174709:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(883119),l=i(898781),a=i(39847),r=i(249472),o=i(234203),s=i(785893);function d({handleUpdateKeyValueBlocks:e,handleUpdateListBlocks:t,metadata:i}){let d=(0,l.ZP)(),{listBlocks:u,keyValueBlocks:c}=i||{},p=c&&c[0],h=c&&c[1];return(0,s.jsxs)(n.kC,{direction:"column",gap:{row:0,column:6},children:[(0,s.jsx)(o.Z,{header:d._('Cook time', 'storyboard.detailsList.recipe', 'Header title for cooking time entry for story pin recipe'),onUpdate:t=>{e({...c,0:t})},value:p}),(0,s.jsx)(r.Z,{onUpdate:t=>{e({...c,1:t})},value:h}),(0,s.jsx)(a.Z,{header:d._('Ingredients', 'storyboard.detailsList.prompt', 'Prompt for adding details to story Pin'),helperText:d._('Hint! For tricky recipes, try splitting ingredients into sections, like "For the frosting" and "For the cake".', 'storyboard.detailsList.recipe.helperText', 'Tip for what to add in the list section for recipes'),listBlocks:u,onUpdate:t,placeholderListBlocks:[{heading:d._('Ingredients', 'storyboard.detailsList.recipe.headerPlaceholder', 'Placeholder header text for recipe templates'),items:[d._('1 tbsp butter', 'storyboard.detailsList.recipe.listItemPlaceholder', 'Placeholder ingredients list item for recipe templates'),d._('2 tsp sugar', 'storyboard.detailsList.recipe.listItemPlaceholder', 'Placeholder ingredients list item for recipe templates'),d._('300 g flour', 'storyboard.detailsList.recipe.listItemPlaceholder', 'Placeholder ingredients list item for recipe templates')]}]})]})}},766119:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(898781),l=i(39847),a=i(785893);function r({handleUpdateListBlocks:e,metadata:t}){let i=(0,n.ZP)(),{listBlocks:r}=t||{},o=i._('Notes', 'storyboard.detailsList.prompt', 'Prompt for adding details to story Pin');return(0,a.jsx)(l.Z,{header:o,helperText:i._('Hint! List the things people will need to bring your Idea Pin to life.', 'storyboard.detailsList.blank.helperText', 'Tip for what to add in the list section for free form Idea Pins'),listBlocks:r,onUpdate:e,placeholderListBlocks:[{heading:i._('Grab your...', 'storyboard.detailsList.blank.headerPlaceholder', 'Placeholder header text for blank templates'),items:[i._('Camera', 'storyboard.detailsList.blank.listItemPlaceholder', 'Placeholder list item for blank templates'),i._('Notebook', 'storyboard.detailsList.blank.listItemPlaceholder', 'Placeholder list item for blank templates'),i._('Comfortable shoes', 'storyboard.detailsList.blank.listItemPlaceholder', 'Placeholder list item for blank templates')]}]})}},375322:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(883119),l=i(898781),a=i(380458),r=i(39847),o=i(785893);function s({metadata:e,handleUpdateKeyValueBlocks:t,handleUpdateListBlocks:i}){let s=(0,l.ZP)(),{listBlocks:d,keyValueBlocks:u}=e||{},c=u&&u[2];return(0,o.jsxs)(n.kC,{direction:"column",gap:{row:0,column:6},children:[(0,o.jsx)(n.xu,{children:(0,o.jsx)(a.Z,{value:c,onUpdate:e=>{t({...u,2:e})}})}),(0,o.jsx)(r.Z,{header:s._('Supplies', 'storyboard.detailsList.prompt', 'Prompt for adding details to story Pin'),helperText:s._('Hint! For tricky projects, try splitting materials into sections, like "For the walls" and "For the roof".', 'storyboard.detailsList.diy.helperText', 'Tip for what to add in the list section for diys'),listBlocks:d,onUpdate:i,placeholderListBlocks:[{heading:s._('Supplies', 'storyboard.detailsList.diy.headerPlaceholder', 'Placeholder header text for diy templates'),items:[s._('Macaroni', 'storyboard.detailsList.diy.listItemPlaceholder', 'Placeholder supplies list item for diy templates'),s._('Glitter', 'storyboard.detailsList.diy.listItemPlaceholder', 'Placeholder supplies list item for diy templates'),s._('Glue', 'storyboard.detailsList.diy.listItemPlaceholder', 'Placeholder supplies list item for diy templates')]}]})]})}},976582:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(898781),a=i(349700),r=i(785893);function o(){let e=(0,l.ZP)();return(0,r.jsx)(n.xu,{marginTop:2,children:(0,r.jsx)(n.xv,{color:"subtle",size:"200",children:(0,a.nk)(e._('Comments are turned off in {{socialPermissions}}', 'ideaPin.editor.commentsPermission', 'Text to describe to the user that comments are turned off. socialPermissions: link to social permissions settings'),{socialPermissions:(0,r.jsx)(n.xv,{color:"subtle",inline:!0,size:"200",weight:"bold",children:(0,r.jsx)(n.rU,{href:"/settings/permissions",display:"inlineBlock",target:"blank",underline:"hover",children:e._('Social Permissions', 'ideaPin.editor.commentsPermission.settings', 'Link to social permissions in settings')},"helpLink")})})})})}},998744:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(667294),l=i(883119),a=i(898781),r=i(990823),o=i(897103),s=i(785893);function d({board:e={},canEdit:t,isAdsOnlyBoard:i,isStoryPin:d,isOriginallyQuickCreatesBoard:u,onBoardChange:c,onBoardCreate:p,viewerId:h}){let _=(0,a.ZP)(),{boardlessPinsEnabled:m}=(0,r.Xt)(h),g="quick_saves"===e.layout&&m,y="quick_creates"===e.layout;return(0,s.jsx)(n.Fragment,{children:d?(0,s.jsxs)(l.xu,{direction:"column",display:"flex",justifyContent:"between",paddingY:3,children:[(0,s.jsx)(l.xu,{paddingY:2,children:(0,s.jsx)(l.__,{htmlFor:"BoardPicker",children:(0,s.jsx)(l.xv,{size:"100",children:_._('Board', 'editPinModal.editBoard.optionalBoardLabel', 'Label for board dropdown to select optional board')})})}),(0,s.jsxs)(l.xu,{"data-test-id":"edit-board",children:[!i&&(0,s.jsx)(o.Z,{board:e,isBoardlessPinsBoard:g,isQuickCreatesBoard:y,isStoryPin:d,onBoardChosen:c,onBoardCreate:p}),i&&(0,s.jsx)(l.xu,{paddingX:1,children:(0,s.jsx)(l.xv,{size:"300",color:"subtle",children:_._('This is an ad-only Pin. It can\u2019t be moved out of the ad-only Pins board.', 'editPinModal.editBoard.adsOnlyPinText', 'Displays when a pin is ads-only, preventing movement of pin from the board')})})]})]}):(0,s.jsxs)(l.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:4,paddingY:3,children:[(0,s.jsx)(l.xu,{column:12,mdColumn:3,paddingY:2,children:(0,s.jsx)(l.__,{htmlFor:"BoardPicker",children:(0,s.jsx)(l.xv,{size:"200",children:u?_._('Organize to a board (optional)', 'editPinModal.editBoard.optionalBoardLabel', 'Label for board dropdown to select optional board'):_._('Board', ' - ', ' -- ')})})}),t&&(0,s.jsxs)(l.xu,{column:12,mdColumn:8,"data-test-id":"edit-board",children:[!i&&(0,s.jsx)(o.Z,{board:e,isBoardlessPinsBoard:g,isQuickCreatesBoard:y,onBoardChosen:c,onBoardCreate:p}),i&&(0,s.jsx)(l.xu,{paddingX:1,children:(0,s.jsx)(l.xv,{size:"300",color:"subtle",children:_._('This is an ad-only Pin. It can\u2019t be moved out of the ad-only Pins board.', 'editPinModal.editBoard.adsOnlyPinText', 'Displays when a pin is ads-only, preventing movement of pin from the board')})})]}),!t&&e.name&&(0,s.jsx)(l.xu,{column:12,mdColumn:8,paddingY:2,children:(0,s.jsx)(l.xv,{size:"200",weight:"bold",children:e.name})})]})})}},638767:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(667294),l=i(883119),a=i(407043),r=i(579014),o=i(858472),s=i(215292),d=i(857752),u=i(43898),c=i(785893);function p(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class h extends n.Component{constructor(...e){super(...e),p(this,"state",{focused:!1}),p(this,"suggestionAnchorRef",(0,n.createRef)()),p(this,"handleBlur",e=>{this.setState({focused:!1});let{onBlur:t}=this.props;t&&t(e)}),p(this,"handleFocus",()=>{this.setState({focused:!0});let{onFocus:e}=this.props;e&&e()}),p(this,"handleChange",({text:e,mentions:t})=>{this.props.onDescriptionChange({value:e,userMentionTags:t})})}render(){let{canAddUserMentionTags:e,canEdit:t,description:i,errorMessage:a,initialMentions:p,isStoryPin:h,label:_,onDescriptionChange:m,placeholder:g,warningMessage:y}=this.props,v={__style:{...this.state.focused?{boxShadow:"0 0 0 3px #92c2fb"}:{}}};return(0,c.jsx)(n.Fragment,{children:h?(0,c.jsxs)(l.xu,{direction:"column",display:"flex",paddingY:3,children:[(0,c.jsx)(l.xu,{paddingY:2,children:(0,c.jsx)(l.__,{htmlFor:"DescriptionField",children:(0,c.jsx)(l.xv,{size:"100",children:_})})}),(0,c.jsx)(s.q,{children:({focused:e,hovered:t,onBlur:s,onFocus:h,onMouseEnter:_,onMouseLeave:m})=>{let v=r.iX;return v=a?r.op:v,v=t||e?o.Xn:v,(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(l.iP,{onBlur:s,onFocus:()=>{var e;null===(e=this.suggestionAnchorRef.current)||void 0===e||e.focus(),h()},onMouseEnter:_,onMouseLeave:m,fullHeight:!0,children:(0,c.jsx)(l.xu,{borderStyle:"lg",dangerouslySetInlineStyle:{__style:{borderColor:v,outline:e?"4px solid #0084ff80":""}},minHeight:"104px",flex:"grow",paddingY:4,rounding:4,children:(0,c.jsx)(d.Z,{editorRef:this.suggestionAnchorRef,hasEmojiEntryPoint:!1,initialMentions:p,initialText:i,onAddMention:()=>{this.props.logContextEvent({event_type:8905,element:116,view_type:94,aux_data:{tag_type:1}})},onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onSearchMentionCancel:()=>{this.props.logContextEvent({event_type:8908,element:116,view_type:94,aux_data:{tag_type:1}})},onSuggestionsPopoverOpen:()=>{this.props.logContextEvent({event_type:8907,element:116,view_type:94,aux_data:{tag_type:1}})},maxSuggestions:4,placeholder:g})})}),(!!a||!!y)&&(0,c.jsx)(u.Z,{errorMessage:a||y,errorMessageColor:a?"error":"warning",htmlFor:"editor-with-mentions",icon:(0,c.jsx)(l.qb,{type:a?"problem":"warning"})})]})}})]}):(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(l.iz,{}),(0,c.jsxs)(l.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:4,paddingY:3,children:[(0,c.jsx)(l.xu,{column:12,mdColumn:3,paddingY:2,children:(0,c.jsx)(l.__,{htmlFor:"DescriptionField",children:(0,c.jsx)(l.xv,{size:"200",children:_})})}),t?(0,c.jsxs)(l.xu,{column:12,mdColumn:8,children:[(0,c.jsx)(l.xu,{children:e?(0,c.jsx)(l.xu,{borderStyle:"lg",dangerouslySetInlineStyle:v,id:"DescriptionField",minHeight:48,paddingX:2,paddingY:4,ref:this.suggestionAnchorRef,role:"textbox",rounding:4,children:(0,c.jsx)(d.Z,{initialMentions:p,initialText:i,onAddMention:()=>{this.props.logContextEvent({event_type:8905,element:116,aux_data:{tag_type:1}})},onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onSearchMentionCancel:()=>{this.props.logContextEvent({event_type:8908,element:116,aux_data:{tag_type:1}})},onSuggestionsPopoverOpen:()=>{this.props.logContextEvent({event_type:8907,element:116,aux_data:{tag_type:1}})},maxSuggestions:4,placeholder:g})}):(0,c.jsx)(l.Kx,{id:"DescriptionField",placeholder:g,value:i,onChange:({value:e})=>{m({value:e,userMentionTags:[]})},hasError:(a||"").length>0})}),!!a&&(0,c.jsx)(l.xu,{children:(0,c.jsx)(u.Z,{errorMessage:a,htmlFor:"pin-edit-description"})})]}):(0,c.jsx)(l.xu,{column:12,mdColumn:8,paddingY:2,children:(0,c.jsx)(l.xv,{size:"200",weight:"bold",children:i})})]})]})})}}let _=function(e){let{logContextEvent:t}=(0,a.v)();return(0,c.jsx)(h,{...e,logContextEvent:t})}},563996:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>ez,Tr:()=>eF,aU:()=>eE});var n,l=i(667294),a=i(702664),r=i(883119),o=i(214494),s=i(545198),d=i(41233),u=i(827896),c=i(41861),p=i(27255),h=i(407043),_=i(594736),m=i(121151),g=i(898781),y=i(299295),v=i(773285),f=i(780280),x=i(414327),b=i(784590),P=i(947599),w=i(223815),S=i(19121),k=i(134906),j=i(717615),A=i(231947),C=i(916062),D=i(977558),E=i(825067),I=i(254176),T=i(678638),F=i(956800),z=i(563339),R=i(482567),L=i(90326),M=i(492583),Z=i(785893);let B=({isAdsOnlyPin:e,isStoryPin:t})=>{let i=(0,g.ZP)();return(0,Z.jsx)(r.xu,{children:t?(0,Z.jsxs)(r.xu,{display:"flex",paddingY:2,children:[(0,Z.jsx)(r.rs,{disabled:!0,id:"ads-only-pin-status-switch",onChange:()=>{},switched:e}),(0,Z.jsxs)(r.xu,{alignItems:"stretch",display:"flex",direction:"column",justifyContent:"start",paddingX:2,children:[(0,Z.jsx)(r.xu,{marginBottom:2,children:(0,Z.jsx)(r.xv,{children:i._('Ad-only', 'Text for ad-only status on a pin in pin edit form', 'editPinModal.adsOnlySwitch.columnText')})}),(0,Z.jsx)(r.xu,{"data-test-id":"ads-only-pin-switch",children:(0,Z.jsx)(r.__,{htmlFor:"ads-only-pin-status-switch",children:(0,Z.jsx)(r.xv,{color:"subtle",size:"200",children:i._('Ad-only Pins don\'t distribute an organic Pin and can\'t be saved by people who see them.', 'Explains what an ad-only pin is in pin edit modal', 'editPinModal.adsOnlySwitch.labelText')})})})]})]}):(0,Z.jsxs)(l.Fragment,{children:[(0,Z.jsx)(r.iz,{}),(0,Z.jsxs)(r.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:4,paddingY:6,children:[(0,Z.jsx)(r.xu,{column:12,mdColumn:3,paddingY:2,children:(0,Z.jsx)(r.xv,{size:"200",children:i._('Ad-only', 'Text for ad-only status on a pin in pin edit form', 'editPinModal.adsOnlySwitch.columnText')})}),(0,Z.jsx)(r.xu,{column:12,mdColumn:8,children:(0,Z.jsxs)(r.xu,{alignItems:"center","data-test-id":"ads-only-pin-switch",display:"flex",paddingY:1,children:[(0,Z.jsx)(r.rs,{disabled:!0,id:"ads-only-pin-status-switch",onChange:()=>{},switched:e}),(0,Z.jsx)(r.xu,{paddingX:2,children:(0,Z.jsx)(r.__,{htmlFor:"ads-only-pin-status-switch",children:(0,Z.jsx)(r.xv,{size:"200",color:"subtle",children:i._('Ad-only Pins don\u2019t distribute an organic Pin and can\u2019t be saved by people who see them.', 'Explains what an ad-only pin is in pin edit modal', 'editPinModal.adsOnlySwitch.labelText')})})})]})})]})]})})};var O=i(174709),N=i(766119),K=i(375322),U=i(976582);function H({commentsDisabled:e,isStoryPin:t,isManagedView:i,isNoTitle:n,isUnsafeForComments:o,onCommentChange:s,onPhotoChange:d,photosDisabled:u}){let c=(0,g.ZP)(),p=(0,S.Z)(),h=p.isAuth?p.id:"",_=(0,a.useSelector)(({users:e})=>e[h]),m=_.should_default_comments_off,y=o||m;return(0,Z.jsx)(r.xu,{children:t?(0,Z.jsxs)(r.xu,{display:"flex",alignItems:m&&!o?"start":"center",paddingY:2,children:[(0,Z.jsx)(r.rs,{disabled:y,id:"CommentSwitch",onChange:s,switched:!e}),(0,Z.jsxs)(r.xu,{"data-test-id":"allow-comments-switch",direction:"column",display:"flex",paddingX:2,children:[(0,Z.jsxs)(r.__,{htmlFor:"CommentSwitch",children:[(0,Z.jsx)(r.xv,{color:y?"subtle":"default",children:c._('Allow people to comment', 'Label for toggling comments on a pin in pin edit form', 'Label for toggling comments on a pin in pin edit form')}),m&&!o&&(0,Z.jsx)(U.Z,{})]}),o&&(0,Z.jsx)(r.xu,{marginTop:2,children:(0,Z.jsx)(r.xv,{size:"200",children:c._('Comments are unavailable for this Pin', 'ideaPin.editor.commentsUnavailable', 'Text indicating comments are unavailable')})})]})]}):(0,Z.jsxs)(l.Fragment,{children:[!n&&(0,Z.jsx)(r.iz,{}),(0,Z.jsxs)(r.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:i?0:4,paddingY:i?6:n?0:3,children:[!i&&!n&&(0,Z.jsx)(r.xu,{column:12,mdColumn:3,paddingY:2,children:(0,Z.jsx)(r.xv,{size:"200",children:c._('Comment Permissions', 'Label for comments setting on a pin in pin edit form', 'Label for comments setting on a pin in pin edit form')})}),(0,Z.jsxs)(r.xu,{column:12,mdColumn:i?12:8,children:[(0,Z.jsxs)(r.xu,{paddingY:1,display:"flex",alignItems:m&&!o?"start":"center","data-test-id":"allow-comments-switch",children:[(0,Z.jsx)(r.rs,{disabled:y,onChange:s,id:"CommentSwitch",switched:!e}),(0,Z.jsx)(r.xu,{paddingX:2,children:(0,Z.jsxs)(r.__,{htmlFor:"CommentSwitch",children:[(0,Z.jsx)(r.xv,{color:y?"subtle":"default",size:"200",children:c._('Allow people to comment', 'Label for toggling comments on a pin in pin edit form', 'Label for toggling comments on a pin in pin edit form')}),m&&!o&&(0,Z.jsx)(U.Z,{})]})})]}),o&&(0,Z.jsx)(r.xu,{marginTop:2,children:(0,Z.jsx)(r.xv,{size:"200",children:c._('Comments are unavailable for this Pin.', 'ideaPin.editor.commentsUnavailable', 'Text indicating comments are unavailable')})}),d&&(0,Z.jsxs)(r.xu,{paddingY:1,alignItems:"center",display:"flex",children:[(0,Z.jsx)(r.rs,{onChange:d,id:"PhotoSwitch",switched:!u}),(0,Z.jsx)(r.xu,{paddingX:2,children:(0,Z.jsx)(r.__,{htmlFor:"PhotoSwitch",children:(0,Z.jsx)(r.xv,{size:"200",children:c._('Allow people to upload photos', 'Label for toggling photos on a pin in pin edit form', 'Label for toggling photos on a pin in pin edit form')})})})]})]})]})]})})}var V=i(499128),G=i(343341),W=i(274495);function $(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class q extends l.PureComponent{constructor(...e){super(...e),$(this,"state",{deleting:!1}),$(this,"unmounted",!1),$(this,"handleConfirm",()=>{if(this.state.deleting)return;let{onDeletePin:e}=this.props;this.setState({deleting:!0}),e().then(()=>this.handleDeleteDidComplete()).catch(e=>this.handleDeleteDidComplete(e))}),$(this,"handleDeleteDidComplete",e=>{let{toastManagerContext:t}=this.props;this.unmounted||this.setState({deleting:!1}),e||t.showToast(({hideToast:e})=>(0,Z.jsx)(V.ZP,{onHide:e,text:this.props.i18n._('Pin deleted!', 'User deleted their pin', 'User deleted their pin')}))})}componentWillUnmount(){this.unmounted=!0}render(){let{i18n:e,onDismiss:t,showStoryPinCreatorDeleteMessage:i}=this.props,{deleting:n}=this.state;return(0,Z.jsx)(m.ZP,{heading:e._('Are you sure?', 'Confirm the user wants to delete the pin', 'Confirm the user wants to delete the pin'),accessibilityModalLabel:e._('Are you sure you want to delete this pin?', 'Accessible label to confirm the user wants to delete the pin', 'Accessible label to confirm the user wants to delete the pin'),size:"sm",onDismiss:t,footer:(0,Z.jsxs)(r.xu,{display:"flex",justifyContent:"center",marginStart:-1,marginEnd:-1,children:[(0,Z.jsx)(r.xu,{paddingX:1,children:(0,Z.jsx)(r.zx,{fullWidth:!0,onClick:t,text:e._('Cancel', ' - ', ' -- ')})}),(0,Z.jsx)(r.xu,{paddingX:1,children:(0,Z.jsx)(r.xu,{"data-test-id":"confirm-delete-pin",children:(0,Z.jsx)(W.Z,{onClick:this.handleConfirm,text:e._('Delete', 'PinEditModal.DeletePinConfirmation.DeleteButton', 'Delete button to delete a Pin'),submitting:n})})})]}),children:(0,Z.jsx)(r.xu,{padding:4,display:"flex",justifyContent:"center",children:(0,Z.jsx)(r.xv,{children:i?e._('If you delete this Pin, it\'ll be gone for good and those who\'ve saved it won\'t be able to view it.', 'PinEditModal.DeletePinConfirmation', 'Confirmation to delete a Pin that lets the creator know it will be unavailable to other Pinners who have saved it'):e._('Once you delete a Pin, you can\'t undo it!', ' - ', ' -- ')})})})}}function Y(e){let t=(0,g.ZP)();return(0,Z.jsx)(q,{...e,i18n:t,toastManagerContext:(0,G.F9)()})}function X({canEdit:e,onAltTextChange:t,altText:i}){let n=(0,g.ZP)();return(0,Z.jsxs)(l.Fragment,{children:[(0,Z.jsx)(r.iz,{}),(0,Z.jsxs)(r.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:4,paddingY:3,children:[(0,Z.jsx)(r.xu,{column:12,mdColumn:3,paddingY:2,children:(0,Z.jsx)(r.__,{htmlFor:"AltTextField",children:(0,Z.jsx)(r.xv,{size:"200",children:n._('Alt text', 'EditPinModal.EditAltText', 'Label for editing alt text of pin')})})}),(0,Z.jsx)(r.xu,{column:12,mdColumn:8,children:e?(0,Z.jsxs)(l.Fragment,{children:[(0,Z.jsx)(r.xu,{children:(0,Z.jsx)(r.nv,{id:"AltTextField",onChange:({value:e})=>t({value:e.slice(0,500)}),size:"lg",value:i||""})}),(0,Z.jsx)(r.xu,{children:(0,Z.jsx)(r.__,{htmlFor:"AltTextField",children:(0,Z.jsx)(r.xu,{marginTop:1,children:(0,Z.jsx)(r.xv,{size:"200",color:"subtle",children:n._('This helps people using screen readers understand what your Pin is about.', 'EditPinModal.EditAltText', 'Label for editing alt text of pin')})})})})]}):(0,Z.jsx)(r.xu,{column:12,mdColumn:8,paddingY:2,children:(0,Z.jsx)(r.xv,{size:"200",weight:"bold",children:i})})})]})]})}var Q=i(998744),J=i(638767);function ee({onDismiss:e,handleConfirmClick:t}){let i=(0,g.ZP)();return(0,Z.jsx)(m.ZP,{accessibilityModalLabel:i._('Heads up!', 'editPinModal.editLinkConfirmation.accessibility.heading', 'Accessibility label for heading of edit link confirmation modal'),align:"start",footer:(0,Z.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"end",children:[(0,Z.jsx)(r.xu,{paddingX:1,children:(0,Z.jsx)(r.zx,{fullWidth:!0,onClick:e,text:i._('Cancel', 'editPinModal.editLinkConfirmation.cancelButton', 'Cancel button to dismiss the modal')})}),(0,Z.jsx)(r.xu,{paddingX:1,children:(0,Z.jsx)(r.xu,{"data-test-id":"confirm-delete-pin",children:(0,Z.jsx)(r.zx,{color:"red",onClick:t,type:"submit",text:i._('Save', 'editPinModal.editLinkConfirmation.saveButton', 'Save button to save changes to the Idea Pin')})})})]}),heading:i._('Heads up!', 'editPinModal.editLinkConfirmation.heading', 'Title heading for edit link confirmation'),onDismiss:e,size:"sm",children:(0,Z.jsx)(r.xu,{display:"flex",justifyContent:"center",padding:6,children:(0,Z.jsx)(r.xv,{children:i._('If you edit this link, any engagement metrics associated with it will be lost.', 'editPinModal.editLinkConfirmation.body', 'Confirmation that editing the link resets engagement metrics')})})})}var et=i(356725),ei=i(239062),en=i(415940);function el({isCarousel:e,onMouseEnter:t,onMouseLeave:i,shouldShowCarouselSliders:n,onCarouselSlide:l,currentIndex:a,carouselData:o,pinId:s,description:d,image:u={}}){var c,p,h,_;return(0,Z.jsxs)(r.xu,{paddingX:4,paddingY:3,children:[e&&(()=>{let e=o&&o.carousel_slots&&o.carousel_slots.length||1;return e>=2&&(0,Z.jsx)(r.xu,{padding:2,children:(0,Z.jsx)(r.__,{htmlFor:"CardsIndex",children:(0,Z.jsxs)(r.xv,{size:"200",children:[a+1,"/",e]})})})})(),(0,Z.jsx)(r.zd,{width:236,children:(0,Z.jsxs)(r.xu,{onMouseEnter:t,onMouseLeave:i,children:[(0,Z.jsxs)(r.zd,{rounding:2,wash:!0,children:[e&&n&&(0,Z.jsx)(r.xu,{display:"inlineBlock",height:"100%",position:"absolute",width:"100%",zIndex:new r.Ry(10),dangerouslySetInlineStyle:{__style:{background:"rgba(0, 0, 0, 0.3)"}},children:(0,Z.jsx)(ei.default,{handleCarouselSwipe:l,carouselIndex:a,carouselData:o&&{carouselSlots:null===(h=o.carousel_slots)||void 0===h?void 0:h.map(({id:e,title:t})=>({id:e,title:t})),entityId:null!==(_=o.id)&&void 0!==_?_:"",index:o.index},pinKey:{type:"deprecated",data:s},isEditMode:!0})}),e?(0,Z.jsx)(en.Z,{carouselIndex:a,isCloseup:!1,pinId:s,isEditMode:!0,pinKey:null}):(0,Z.jsx)(r.Ee,{alt:d,color:"#efefef",naturalHeight:u.height,src:u.url,naturalWidth:u.width})]}),e&&(0,Z.jsx)(et.default,{carouselIndex:a,carouselData:o&&{carouselSlots:null===(c=o.carousel_slots)||void 0===c?void 0:c.map(e=>({id:e.id,title:e.title})),entityId:null!==(p=o.id)&&void 0!==p?p:"",index:o.index},pinKey:{type:"deprecated",data:s},handleCarouselSwipe:l,isEditMode:!0,variant:"legacy"})]})})]})}var ea=i(43898);function er({apiErrorMessage:e,shouldShowGenericUpdateError:t,onClickDeleteButton:i,disableDelete:n,onHide:l,shouldDisableSave:a,triggerBoardAndSectionCreate:o}){let s=(0,g.ZP)();return(0,Z.jsxs)(r.xu,{display:"flex",justifyContent:"between",marginStart:-1,marginEnd:-1,children:[(0,Z.jsx)(r.xu,{"data-test-id":"delete-pin-button",children:(0,Z.jsx)(r.zx,{fullWidth:!0,text:s._('Delete', 'EditPinModal.EditPinFooter.Delete', 'delete pin'),onClick:i,disabled:n})}),t&&(0,Z.jsx)(r.xu,{display:"flex",marginStart:2,marginTop:2,justifyContent:"center",children:(0,Z.jsx)(ea.Z,{errorMessage:e||s._('Sorry! There was an error editing your Pin.', 'EditPinModal.EditPinFooter.ErrorMessageToast', 'Toast for pin edit error'),htmlFor:"pin-edit-generic-error"})}),(0,Z.jsxs)(r.xu,{display:"flex",justifyContent:"between",marginStart:-2,marginEnd:-2,children:[(0,Z.jsx)(r.xu,{paddingX:2,children:(0,Z.jsx)(r.zx,{fullWidth:!0,text:s._('Cancel', 'EditPinModal.EditPinFooter.Cancel', 'cancel changes'),onClick:l})}),(0,Z.jsx)(r.xu,{paddingX:2,"data-test-id":"edit-pin-save",children:(0,Z.jsx)(r.zx,{fullWidth:!0,text:s._('Save', 'EditPinModal.EditPinFooter.Save', 'save changes'),color:"red",onClick:o,disabled:a})})]})]})}function eo({pinNoteText:e,isCollaborative:t,onPinNoteChange:i}){let n=(0,g.ZP)();return(0,Z.jsxs)(l.Fragment,{children:[(0,Z.jsx)(r.iz,{}),(0,Z.jsxs)(r.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:4,paddingY:3,children:[(0,Z.jsx)(r.xu,{column:12,mdColumn:3,paddingY:2,children:(0,Z.jsx)(r.__,{htmlFor:"PinNoteField",children:(0,Z.jsx)(r.xv,{size:"200",children:t?n._('Note to group', 'editPinModal.editPinNote.groupTitle', 'Label for editing private note on group Pin'):n._('Note to self', 'editPinModal.editPinNote.title', 'Label for editing private note on Pin')})})}),(0,Z.jsx)(r.xu,{column:12,mdColumn:8,paddingY:2,"data-test-id":"note-to-self-input",children:(0,Z.jsx)(r.Kx,{errorMessage:e.length>=500?n._('Character limit reached', 'editPinModal.editPinNote.warningText', 'Text to inform user they have reached the length limit on Pin note'):void 0,id:"PinNoteField",onChange:i,placeholder:t?n._('Add a group note to remember your ideas about this Pin', 'editPinModal.editPinNote.placeholderGroupText', 'Placeholder for editing group note'):n._('Add a private note to remember your ideas about this Pin', 'editPinModal.editPinNote.placeholderText', 'Placeholder for editing private note'),value:e})})]})]})}var es=i(381595),ed=i(268883),eu=i(299335),ec=i(947729),ep=i(167912),eh=i(237056);function e_(){let e=(0,g.ZP)(),t=(0,eh.Z)();return(0,Z.jsx)(r.xv,{size:"200",children:t?e._('Shopping recommendations aren\u2019t available for Idea ads and Pins with tagged products or paid partnership label', 'ideaPin.editor.tagged.unavailable', 'Explanation about how stela on idea pins with tagged products arent available'):e._('Shopping recommendations aren\'t available for Idea ads and Idea Pins with product tags or paid partnership label', 'ideaPin.editor.tagged.unavailable', 'Explanation about how stela on idea pins with tagged products arent available')})}function em(){let e=(0,g.ZP)(),t=(0,eh.Z)();return(0,Z.jsx)(r.xv,{size:"200",children:t?e._('People can shop products similar to what\'s shown in this Pin using visual search', 'ideaPin.editor.enable.sce', 'Text indicating shopping recommendations are currently enabled'):e._('People can shop products similar to what\'s shown in this Idea Pin using visual search', 'ideaPin.editor.enable', 'Text indicating shopping recommendations are currently enabled')})}function eg({children:e}){let t=(0,g.ZP)();return(0,Z.jsxs)(r.xv,{color:"subtle",size:"200",children:[t._('You\'ve disabled shopping recommendations for your profile', 'ideaPin.editor.disable', 'Text indicating shopping recommendations are currently disabled'),e]})}function ey({hasTaggedProductPins:e,ipStelaRecDisabled:t,onShoppingRecChange:i,shoppingRecDisabled:n}){let a=(0,g.ZP)();return(0,Z.jsx)(l.Fragment,{children:(0,Z.jsxs)(r.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:4,children:[(0,Z.jsx)(r.xu,{column:12,mdColumn:3,paddingY:2,children:(0,Z.jsx)(r.xv,{size:"200",children:a._('Shopping recommendations', 'Heading for shopping recommendations permissions', 'shopping.recommendations')})}),(0,Z.jsx)(r.xu,{column:12,mdColumn:8,children:(0,Z.jsxs)(r.xu,{paddingY:1,display:"flex",alignItems:"start",children:[(0,Z.jsx)(r.rs,{onChange:i,id:"PhotoSwitch",switched:!n,disabled:t||e}),(0,Z.jsx)(r.xu,{paddingX:2,children:(0,Z.jsx)(r.__,{htmlFor:"stelaSwitch",children:(0,Z.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,Z.jsx)(r.xv,{size:"200",color:t?"subtle":"default",children:a._('Show similar products ', 'Label to toggle similar products on ideal pin', 'ideaPin.stela.toggle')}),t?(0,Z.jsx)(eg,{children:(0,Z.jsx)(r.xv,{inline:!0,size:"200",weight:"bold",color:"subtle",children:(0,Z.jsx)(r.rU,{display:"inlineBlock",href:"https://www.pinterest.com/settings/permissions",target:"blank",rel:"nofollow",underline:"hover",children:a._('Edit profile settings', 'Link to the settings page to enable shopping recommendations on idea pins', 'ideaPin.link')})})}):(0,Z.jsxs)(r.xu,{display:"flex",direction:"column",marginTop:1,children:[(0,Z.jsx)(r.xu,{marginBottom:1,children:(0,Z.jsx)(em,{})}),(0,Z.jsx)(e_,{})]})]})})})]})})]})})}function ev({hasTaggedProductPins:e,ipStelaRecDisabled:t,onShoppingRecChange:i,shoppingRecDisabled:n}){let a=(0,g.ZP)(),o=(0,eh.Z)();return(0,Z.jsx)(l.Fragment,{children:(0,Z.jsxs)(r.xu,{display:"flex",paddingY:2,children:[(0,Z.jsx)(r.rs,{onChange:i,id:"stelaSwitch",switched:!n,disabled:t||e}),(0,Z.jsx)(r.xu,{paddingX:2,children:(0,Z.jsx)(r.kC,{alignItems:"start",justifyContent:"start",children:(0,Z.jsx)(r.__,{htmlFor:"stelaSwitch",children:(0,Z.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[(0,Z.jsx)(r.xu,{marginBottom:2,children:(0,Z.jsx)(r.xv,{children:o?a._('Show similar products', 'shopping.editor.recommendations.sce', 'Heading for shopping recommendations permissions'):a._('Show shopping recommendations', 'shopping.editor.recommendations', 'Heading for shopping recommendations permissions')})}),t?(0,Z.jsxs)(l.Fragment,{children:[(0,Z.jsx)(r.xv,{color:"subtle",size:"200",children:(0,Z.jsx)(eg,{})}),(0,Z.jsx)(r.xv,{inline:!0,size:"200",weight:"bold",color:"subtle",children:(0,Z.jsx)(r.rU,{display:"inlineBlock",href:"/settings/permissions",underline:"hover",children:a._('Edit profile settings', 'ideaPin.editor.link', 'Link to the settings page to enable shopping recommendations on idea pins')})})]}):(0,Z.jsxs)(r.xu,{display:"flex",direction:"column",marginTop:1,children:[(0,Z.jsx)(r.xu,{marginBottom:1,children:(0,Z.jsx)(em,{})}),(0,Z.jsx)(e_,{})]})]})})})})]})})}let ef=void 0!==n?n:n=i(667719);function ex({isStoryPin:e,onShoppingRecChange:t,shoppingRecDisabled:i,storyPinData:n}){var l,a;let r=(0,ep.useLazyLoadQuery)(ef,{});if(!r)return null;let{has_product_pins:o}=n||{},s=null===(l=r.v3GetCurrentUserHandlerQuery)||void 0===l?void 0:null===(a=l.data)||void 0===a?void 0:a.ipStelaRecDisabled,d=e?ev:ey;return(0,Z.jsx)(d,{onShoppingRecChange:t,shoppingRecDisabled:!!i,ipStelaRecDisabled:!!s,hasTaggedProductPins:!!o})}function eb({shoppingRecDisabled:e,onShoppingRecChange:t,isNoTitle:i}){let n=(0,g.ZP)(),a=(0,eh.Z)();return(0,Z.jsxs)(l.Fragment,{children:[!i&&(0,Z.jsx)(r.iz,{}),(0,Z.jsxs)(r.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:4,paddingY:i?0:3,children:[!i&&(0,Z.jsx)(r.xu,{column:12,mdColumn:3,paddingY:2,children:(0,Z.jsx)(r.xv,{size:"200",children:n._('Recommendations', 'EditPinModal.recommendations', 'Title of a section in the edit pin modal to manage recommendations on a specific pin.')})}),(0,Z.jsx)(r.xu,{column:12,mdColumn:8,children:(0,Z.jsxs)(r.xu,{paddingY:1,display:"flex",alignItems:"center",children:[(0,Z.jsx)(r.rs,{onChange:t,id:"ShoppingRecSwitch",switched:!e}),(0,Z.jsx)(r.xu,{paddingX:2,children:(0,Z.jsx)(r.__,{htmlFor:"ShoppingRecSwitch",children:(0,Z.jsx)(r.xv,{size:"200",children:a?n._('Show similar products', 'EditPinModal.recommendations.showShoppingRecommendations.label.sce', 'Label for toggling showing similar products on a specific pin.'):n._('Show shopping recommendations', 'EditPinModal.recommendations.showShoppingRecommendations.label', 'Label for toggling showing shopping recommendations on a specific pin.')})})})]})})]})]})}var eP=i(597830),ew=i(146754),eS=i(77675);function ek({apiErrorMessage:e,disableDelete:t,onClickDeleteButton:i,shouldDisableSave:n,shouldShowGenericUpdateError:l,triggerBoardAndSectionCreate:a}){let o=(0,g.ZP)();return(0,Z.jsxs)(r.kC,{justifyContent:"end",children:[l&&(0,Z.jsx)(r.kC,{alignItems:"stretch",justifyContent:"start",width:"60%",children:(0,Z.jsx)(ea.Z,{errorMessage:e||o._('Sorry! There was an error editing your Pin.', 'EditPinModal.EditPinFooter.ErrorMessageToast', 'Toast for pin edit error'),htmlFor:"pin-edit-generic-error"})}),(0,Z.jsxs)(r.hE,{children:[(0,Z.jsx)(r.xu,{"data-test-id":"delete-pin-button",children:(0,Z.jsx)(r.zx,{color:"gray",disabled:t,onClick:i,size:"lg",text:o._('Delete', 'ideaPinCloseup.editPinSheet.deletePinButton', 'Button to delete the Idea Pin')})}),(0,Z.jsx)(r.zx,{color:"red",disabled:n,onClick:a,size:"lg",text:o._('Save', 'ideaPinCloseup.editPinSheet.savePinButton', 'Button to apply the edited changes to an Idea Pin')})]})]})}var ej=i(259608),eA=i(251557);function eC(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function eD(e){return!!(e&&e.trim().length)}function eE(e,t){let i=eD(e),n=eD(t);return(i||n)&&e!==t}let eI=new r.H3([new r.Ry(D.fe)]);class eT extends l.Component{constructor(...e){var t,i,n,l,a,r,s,d,u,h,m,g,v,f,x,b,P,w,S,j,C,D,E,z,R,L;super(...e),eC(this,"state",{altText:(null===(t=this.props.pinResource.data)||void 0===t?void 0:t.alt_text)||"",apiErrorMessage:null,board:(null===(i=this.props.pinResource.data)||void 0===i?void 0:i.board)||null,commentsDisabled:(null===(n=this.props.pinResource.data)||void 0===n?void 0:n.is_unsafe_for_comments)||(null===(l=this.props.pinResource.data)||void 0===l?void 0:l.comments_disabled)||(null===(a=this.props.pinResource.data)||void 0===a?void 0:a.did_it_disabled)||!1,description:(null===(r=this.props.pinResource.data)||void 0===r?void 0:null===(s=r.description)||void 0===s?void 0:s.trim())||"",ideaPinDetails:this.props.isStoryPin?(0,ew.Z)(null===(d=this.props.pinResource.data)||void 0===d?void 0:null===(u=d.story_pin_data)||void 0===u?void 0:u.metadata):{},isEditLinkConfirmed:!1,link:(null===(h=this.props.pinResource.data)||void 0===h?void 0:h.link)||"",pinNoteText:(null===(m=this.props.pinResource.data)||void 0===m?void 0:null===(g=m.pin_note)||void 0===g?void 0:g.text)||"",sectionId:(null===(v=this.props.pinResource.data)||void 0===v?void 0:null===(f=v.section)||void 0===f?void 0:f.id)||null,sectionName:(null===(x=this.props.pinResource.data)||void 0===x?void 0:null===(b=x.section)||void 0===b?void 0:b.title)||null,showDeleteConfirmation:!1,showEditLinkConfirmation:!1,showOptions:!1,carousel_data:(null===(P=this.props.pinResource.data)||void 0===P?void 0:P.carousel_data)||null,title:(null===(w=this.props.pinResource.data)||void 0===w?void 0:w.title)||"",isLoadingPin:!this.props.pinResource.isLoaded,isProcessing:!1,currentIndex:null!==(S=null!==(j=this.props.carouselSlotCurrentIndex)&&void 0!==j?j:null===(C=this.props.pinResource.data)||void 0===C?void 0:null===(D=C.carousel_data)||void 0===D?void 0:D.index)&&void 0!==S?S:0,selectedTemplate:this.props.isStoryPin?(0,eS.Z)(null===(E=this.props.pinResource.data)||void 0===E?void 0:null===(z=E.story_pin_data)||void 0===z?void 0:z.metadata):"none",shoppingRecDisabled:null===(R=this.props.pinResource.data)||void 0===R?void 0:R.shopping_rec_disabled,shouldApplyTextToAll:!1,shouldDisableSave:!1,shouldShowCarouselSliders:!1,shouldShowValidationTitleError:!1,shouldShowValidationDescriptionError:!1,shouldShowValidationLinkFormatError:!1,shouldShowGenericUpdateError:!1,shouldShowValidationUserMentionTagsError:!1,userMentionTags:(null===(L=this.props.pinResource.data)||void 0===L?void 0:L.user_mention_tags)||[]}),eC(this,"onClickDeleteButton",()=>this.setState({showDeleteConfirmation:!0})),eC(this,"onHideConfirmation",()=>this.setState({showDeleteConfirmation:!1})),eC(this,"updateCarouselSlotIndex",()=>{var e;let{carouselSlotCurrentIndex:t}=this.props;this.setState({currentIndex:null!==(e=null!=t?t:this.props.pinResource.data&&this.props.pinResource.data.carousel_data&&this.props.pinResource.data.carousel_data.index)&&void 0!==e?e:0})}),eC(this,"handleBoardChange",e=>{let{board:{id:t}}=this.state;e.id!==t&&this.setState({board:e,sectionId:null,sectionName:null})}),eC(this,"createBoard",e=>{let{createBoard:t,viewer:i,orbacActingAs:n}=this.props,{board:l}=this.state,a=(0,A.lJ)(i,n);!l.id&&l.name&&e&&t(l.name,e,a).then(e=>{if(this._isMounted){let{sectionId:t,sectionName:i}=this.state;!t&&i?this.setState({board:e},()=>this.createSection()):this.setState({board:e,sectionId:null,sectionName:null},()=>this.handleSave())}}).catch(e=>{this.setState({shouldShowGenericUpdateError:!0,apiErrorMessage:e.message})})}),eC(this,"handleBoardCreateClick",e=>{if(!e)return;let t={name:e,privacy:p.Z.BoardPrivacy.PUBLIC,access:"write"};this.setState({board:t,sectionId:null,sectionName:null})}),eC(this,"createSection",()=>{let{board:e,sectionName:t}=this.state,{viewer:i,orbacActingAs:n}=this.props,l=(0,A.lJ)(i,n);if(!t)return;if(!e.id){this.createBoard();return}let a={boardId:e.id,name:t},{createSection:r}=this.props;r(a,l).then(e=>{this._isMounted&&this.setState({sectionId:e&&e.id||null,sectionName:e&&e.title||null},()=>{this.handleSave()})}).catch(()=>{this.setState({shouldShowGenericUpdateError:!0,apiErrorMessage:null})})}),eC(this,"handleSectionCreateClick",e=>{if(0===e.length)return;let{board:t}=this.state;t&&this.setState({sectionId:null,sectionName:e})}),eC(this,"handleToggleOptions",()=>{this.setState(e=>({showOptions:!e.showOptions}))}),eC(this,"handleSectionChange",e=>this.setState({sectionId:e&&e.id||null,sectionName:e&&e.title||null,shouldShowGenericUpdateError:!1})),eC(this,"handleDeletePin",()=>{let{advertiser_id:e,changeBoardPinCount:t,changeUserPinCount:i,dispatch:n,getClientTrackingParams:l,onDelete:a,onHide:r,orbacActingAs:s,pinId:d,pinResource:{data:u},removeBoardlessPin:c,viewer:p}=this.props,h=(0,A.lJ)(p,s),_={...e?{advertiser_id:e}:{},...h?{orbac_subject_id:h}:Object.freeze({}),id:d,client_tracking_params:l(d)};return o.Z.create("PinResource",_).callDelete().then(()=>{if(this._isMounted){if(!u)return;let{board:{id:e}={},pinner:{id:l}={},section:o}=u,s=null==o?void 0:o.id;t({boardId:e,sectionId:s,increment:-1}),i({userId:l,increment:-1}),n((0,I.xQ)(e)),n((0,F.EX)({feedId:s||e,feedType:s?M.Z.BOARD_SECTION_PINS:M.Z.BOARDFEED,itemIds:[d],itemType:"pin"})),n((0,F.EX)({feedId:l,feedType:M.Z.STORY_PINS_FEED,itemIds:[d],itemType:"pin"})),n((0,F.EX)({feedId:l,feedType:M.Z.PROFILE_PINS_FEED,itemIds:[d],itemType:"pin"})),s&&n((0,T.CE)(s)),r(),a&&a()}p.id&&c(p.id,d)})}),eC(this,"handleConfirmEditLinkConfirmation",()=>{this.setState({isProcessing:!1,isEditLinkConfirmed:!0},()=>{this.handleSave()})}),eC(this,"handleDismissEditLinkConfirmation",()=>{this.setState({isProcessing:!1,showEditLinkConfirmation:!1})}),eC(this,"sanitizeCarouselData",e=>{let{carousel_data:t}=this.state;if(e&&(t=e),t){let{carousel_slots:e}=t;if(e){let t={carousel_slots:[]};return e.forEach(e=>{let i={description:e.details||"",title:e.title||"",link:e.link||""};t.carousel_slots.push(i)}),t}}return null}),eC(this,"triggerBoardAndSectionCreate",e=>()=>{let{board:t,sectionId:i,sectionName:n}=this.state;t&&!t.id&&t.name?this.createBoard(e):!i&&n?this.createSection():this.handleSave()}),eC(this,"logPinEditEvent",(e,t,i,n,l)=>{let a={},{pinId:r,view:o,viewParameter:s}=this.props,{userMentionTags:d}=this.state;if(a.objectId=r,a.num_user_mention_tags=d.length,e&&(a.board_was_modified=!0),!e&&t&&(a.board_section_was_modified=!0),i){let{description:e}=this.state,{description:t}=l;a.original_pin_description=t,a.edited_pin_description=e}if(n){let{carousel_data:e}=this.state,{carousel_data:t}=l;a.original_carousel_data=JSON.stringify(this.sanitizeCarouselData(t)),a.edited_carousel_data=JSON.stringify(this.sanitizeCarouselData(e))}this.props.logContextEvent({event_type:2,component:208,view_type:o,view_parameter:s,aux_data:{...a}})}),eC(this,"handleSave",()=>{var e;let t;this.setState({apiErrorMessage:null,isProcessing:!0});let{advertiser_id:i,completeResourceFetch:n,isIdeaPinEditLinkConfirmationEnabled:l,invalidatePinResource:a,isStoryPin:r,onHide:s,orbacActingAs:d,pinId:u,pinResource:{data:c},removeBoardlessPin:p,updatePinNote:h,viewer:m}=this.props;if(!c)return;let{alt_text:g,board:y,carousel_data:v,comments_disabled:f,description:x,did_it_disabled:b,link:P,pin_note:w,section:S,shopping_rec_disabled:k,story_pin_data:j,title:C}=c,D=null==w?void 0:w.text,E=(null==j?void 0:null===(e=j.metadata)||void 0===e?void 0:e.template_type)||"none",{carousel_data:I,shouldShowValidationLinkFormatError:T}=this.state;if(I){let e=this.sanitizeCarouselData();e&&(t=JSON.stringify(e))}let{altText:F,board:z,carousel_data:R,commentsDisabled:L,currentIndex:M,description:Z,ideaPinDetails:B,isEditLinkConfirmed:O,pinNoteText:N,sectionId:K,selectedTemplate:U,shoppingRecDisabled:H,title:V,userMentionTags:G}=this.state,W=z||y,$=r&&{idea_pin_details:B&&U&&B[U]&&JSON.stringify((0,eA.F)(B[U])),idea_pin_details_template_type:U&&(0,eP.Z)(U)},q=T?P:this.state.link,Y=(0,A.lJ)(m,d),X={alt_text:F,board_id:null==W?void 0:W.id,board_section_id:K,carousel_data_json:t,description:Z,disable_comments:L,disable_did_it:L,id:u,link:q,shopping_rec_disabled:H,title:V,user_mention_tags:JSON.stringify(G),...i?{advertiser_id:i}:{},...Y?{orbac_subject_id:Y}:Object.freeze({}),...r?$:{}},Q=S&&S.id||null,J=null==W?void 0:W.id,ee=null==y?void 0:y.id,et=eE(g,F),ei=ee!==J,en=(!!Q||!!K)&&Q!==K,el=eE(C,V),ea=eE(x,Z),er=eE(P,q),eo=!!R&&!!v&&!(0,_.ZP)(R,v),es=eE(D,N),ed=E!==U,eu=et||ei||en||el||ea||es||er||eo||f!==L||b!==L||k!==H||ed;if(l&&er&&!O){this.setState({showEditLinkConfirmation:!0});return}eu?(es&&h(u,D,N,Y),o.Z.create("PinResource",X).callUpdate().then(e=>{if(this._isMounted){var t,i;let{changeBoardPinCount:l,onSubmit:r,pinId:o,pinMoved:d}=this.props;(ei||en)&&J&&ee&&(d({selectedPinIds:[o],source:{boardId:ee,sectionId:Q},target:{boardId:J,sectionId:K}}),l({boardId:J,sectionId:K||void 0,increment:1}),l({boardId:ee,sectionId:Q||void 0,increment:-1}),m.id&&(null===(t=c.board)||void 0===t?void 0:t.layout)==="quick_saves"&&p(m.id,o)),r&&J&&null!=W&&W.url&&r({boardId:J,title:null!==(i=W.name)&&void 0!==i?i:"",sectionId:K,url:W.url}),s(),a(o,Y),e.resource_response.data.carousel_data&&(e.resource_response.data.carousel_data.index=M),n(e,Y),this.logPinEditEvent(ei,en,ea,eo,c)}}).catch(()=>{let{shouldShowValidationTitleError:e,shouldShowValidationDescriptionError:t,shouldShowValidationLinkFormatError:i}=this.state;this.setState({isProcessing:!1,shouldShowGenericUpdateError:!e&&!t&&!i})}).finally(()=>{this.setState({showEditLinkConfirmation:!1})})):(s(),a(u,Y)),this.setState({isProcessing:!1})}),eC(this,"handleTextChanges",(e,t)=>{let{carousel_data:i}=this.state;if(!i)return;let n=(0,c.Z)(i),{carousel_slots:l=[]}=n,{currentIndex:a,shouldApplyTextToAll:r,description:o,link:s,title:d}=this.state,u=this.valueIsValidForType(e,t);switch(r?l.forEach(i=>i[t]=e):l[a]&&(l[a][t]=e),t){case"details":let p=0===a?e:o;this.setState({description:p,carousel_data:n||null,shouldShowValidationDescriptionError:!u,shouldShowGenericUpdateError:!1});break;case"link":let h=0===a?e:s;this.setState({link:h,carousel_data:n||null,shouldShowValidationLinkFormatError:!u,shouldShowGenericUpdateError:!1});break;case"title":let _=0===a?e:d;this.setState({title:_,carousel_data:n||null,shouldShowValidationTitleError:!u,shouldShowGenericUpdateError:!1})}}),eC(this,"handleDescriptionChange",({userMentionTags:e,value:t})=>{let i=this.valueIsValidForType(t,"description"),n=e.length<=5;e.length<this.state.userMentionTags.length&&this.props.logContextEvent({event_type:8906,element:116,aux_data:{tag_type:1}}),this.setState({description:t,userMentionTags:e,shouldShowValidationDescriptionError:!i,shouldShowValidationUserMentionTagsError:!n,shouldShowGenericUpdateError:!1})}),eC(this,"handleCarouselDetailsChange",({value:e})=>{this.handleTextChanges(e,"details")}),eC(this,"handleTitleChange",({value:e})=>{let t=this.valueIsValidForType(e,"title");this.setState({title:e,shouldShowValidationTitleError:!t,shouldShowGenericUpdateError:!1})}),eC(this,"handleCarouselTitleChange",({value:e})=>{this.handleTextChanges(e,"title")}),eC(this,"handleAltTextChange",({value:e})=>{this.setState({altText:e})}),eC(this,"valueIsValidForType",(e,t)=>{let{isIdeaPinIncreasedDescriptionLengthEnabled:i}=this.props;switch(t){case"details":case"description":return i?e.length<=y.S:e.length<=y.JO;case"link":return e.length>=0&&0===(0,k.FU)([(0,k.Jx)({message:this.props.i18n._('Not a valid url.', 'Validation error for an improperly formated url', 'Validation error for an improperly formated url')})],e).length;case"title":return e.length<=100;default:return!0}}),eC(this,"handleWebsiteChange",({value:e})=>{let t=this.valueIsValidForType(e,"link");this.setState({link:e,shouldDisableSave:!t,shouldShowValidationLinkFormatError:!t,shouldShowGenericUpdateError:!1})}),eC(this,"handleCarouselWebsiteChange",({value:e})=>{this.handleTextChanges(e,"link")}),eC(this,"handleCommentChange",e=>this.setState({commentsDisabled:!e.value})),eC(this,"handleShoppingRecChange",e=>{this.setState({shoppingRecDisabled:!e.value})}),eC(this,"handleShouldApplyToAll",e=>{if(e){let{currentIndex:t=0,carousel_data:i}=this.state;if(!i)return;let n=(0,c.Z)(i),{carousel_slots:l=[]}=n,{details:a,link:r,title:o}=l[t];l.forEach(e=>{e.details=a,e.title=o,e.link=r}),this.setState({carousel_data:n,shouldApplyTextToAll:e})}else this.setState({shouldApplyTextToAll:e})}),eC(this,"handleCarouselSlider",e=>{let{carousel_data:t}=this.state,i=t&&t.carousel_slots&&t.carousel_slots.length||1;e>=0&&e<i&&this.setState({currentIndex:e})}),eC(this,"handleMouseEnter",()=>{this.setState({shouldShowCarouselSliders:!0})}),eC(this,"handleMouseLeave",()=>{this.setState({shouldShowCarouselSliders:!1})}),eC(this,"handleTemplateSelect",e=>{let{ideaPinDetails:t}=this.state;t&&t[e]?this.setState({selectedTemplate:e}):this.setState({ideaPinDetails:{...t,[e]:{listBlocks:[],keyValueBlocks:{}}},selectedTemplate:e})}),eC(this,"handleUpdateListBlocks",e=>{let{ideaPinDetails:t,selectedTemplate:i}=this.state;if(!i||!t)return;let n=t[i]||{};this.setState({ideaPinDetails:{...t,[i]:{...n,listBlocks:e}}})}),eC(this,"handleUpdateKeyValueBlocks",e=>{let{ideaPinDetails:t,selectedTemplate:i}=this.state;if(!i||!t)return;let n=t[i]||{};this.setState({ideaPinDetails:{...t,[i]:{...n,keyValueBlocks:e}}})})}componentDidMount(){this._isMounted=!0,this.updateCarouselSlotIndex()}componentDidUpdate(e){let{carouselSlotCurrentIndex:t,isStoryPin:i,pinResource:{data:n,isLoaded:l}}=this.props;if(n&&l!==e.pinResource.isLoaded){var a;let{story_pin_data:e,alt_text:l,board:r,comments_disabled:o,did_it_disabled:s,description:d,link:u,pin_note:c,section:p,shopping_rec_disabled:h,title:_,user_mention_tags:m}=n,{metadata:g}=e||{};this.setState({altText:l,board:r,commentsDisabled:o||s,description:d&&d.trim(),isLoadingPin:!1,ideaPinDetails:i&&g?(0,ew.Z)(g):null,link:u,pinNoteText:(null==c?void 0:c.text)||"",sectionId:(p||{}).id,sectionName:(p||{}).title,selectedTemplate:i&&g?(0,eS.Z)(g):null,title:_,carousel_data:n.carousel_data,currentIndex:null!==(a=null!=t?t:n.carousel_data&&n.carousel_data.index)&&void 0!==a?a:0,shouldApplyTextToAll:!1,userMentionTags:m||[],shoppingRecDisabled:h})}}componentWillUnmount(){this._isMounted=!1}getCurrentUserId(e){return e.isAuth?e.id:""}render(){var e,t,i,n,a;let{disableDelete:o,i18n:u,isIdeaPinEditListsDepEnabled:c,isIdeaPinIncreasedDescriptionLengthEnabled:p,isStoryPin:h,isViewerBoardOwnerAndAdvertiser:_,onHide:g,orbacActingAs:y,pinId:v,pinResource:f,viewer:x}=this.props,{altText:b,apiErrorMessage:S,board:k,carousel_data:j,commentsDisabled:C,currentIndex:D,description:E,ideaPinDetails:I,isLoadingPin:T,isProcessing:F,link:z,pinNoteText:R,sectionId:L,sectionName:M,selectedTemplate:U,shoppingRecDisabled:V,shouldApplyTextToAll:G,shouldDisableSave:W,shouldShowCarouselSliders:$,shouldShowGenericUpdateError:q,shouldShowValidationDescriptionError:et,shouldShowValidationLinkFormatError:ei,shouldShowValidationTitleError:en,shouldShowValidationUserMentionTagsError:ea,showDeleteConfirmation:ep,showEditLinkConfirmation:eh,showOptions:e_,title:em,userMentionTags:eg}=this.state,ey=f.data||{};if(!f.data)return null;let ev=(null===(e=ey.native_creator)||void 0===e?void 0:e.id)===this.getCurrentUserId(x);if(ep)return(0,Z.jsx)(Y,{onDeletePin:this.handleDeletePin,onDismiss:this.onHideConfirmation,showStoryPinCreatorDeleteMessage:h&&ev});if(eh)return(0,Z.jsx)(ee,{handleConfirmClick:this.handleConfirmEditLinkConfirmation,onDismiss:this.handleDismissEditLinkConfirmation});let ef=!!(j&&j.carousel_slots&&j.carousel_slots.length>1),eP=j&&j.carousel_slots&&j.carousel_slots.length>0&&j.carousel_slots[D]||{},{details:ew="",link:eS="",title:eA=""}=eP,eC=(0,A.KY)(x,k,y),eD=ey&&(ey.access||[]).includes("write")||this.props.canEdit||!!k&&(0,d.Z)({action:4,board:k,viewer:x})||!!k&&eC,eE=(e=>{let t=(0,A.lJ)(e,y),i=this.getCurrentUserId(e);return t&&(i=t),this.props.canEdit&&this.props.accountAdvertiserOwnerUserId&&(i=this.props.accountAdvertiserOwnerUserId),this.props.clientBusinessId&&(i=this.props.clientBusinessId),eD&&!ey.is_repin&&!h&&(ef||!j)&&(ey.native_creator&&ey.native_creator.id===i||ef&&ey.pinner&&ey.pinner.id===i||ey.link_domain&&ey.link_domain.official_user&&ey.link_domain.official_user.id===i||!!ey.domain&&ey.pinner&&ey.pinner.id===i&&ey.pinner.domain_url&&ey.pinner.domain_url.includes(ey.domain))})(x),eT=eE&&!(ey.aggregated_pin_data&&ey.aggregated_pin_data.is_shop_the_look),eF=()=>et?h&&p?(0,s.Z)({errorType:"tooMuchText",i18n:u,isIncreasedDescriptionLengthEnabled:p}):(0,ec.MM)(ef,u):ea?(0,ec.bl)(ef,u):"",ez=ey&&ey.images&&ey.images["474x"]||{},eR=h&&!!ey.story_pin_data&&ev,eL=eE?(0,Z.jsx)(ed.Z,{canEdit:eD,onTitleChange:ef?this.handleCarouselTitleChange:this.handleTitleChange,title:ef&&eA?eA:em,errorMessage:en?(0,ec.Y8)(ef,u):""}):null,eM=(eD||x.isAuth&&(ey.pinner||{}).id===x.id)&&eE,eZ=eM?(0,Z.jsx)(J.Z,{canAddUserMentionTags:!ef,canEdit:eD,description:(ef?ew:E)||"",errorMessage:eF(),initialMentions:eg,label:u._('Description', 'Label for editing description', 'Label for editing description'),placeholder:u._('Tell us about this Pin...', 'Placeholder for editing description', 'Placeholder for editing description'),onDescriptionChange:ef?this.handleCarouselDetailsChange:this.handleDescriptionChange}):null,eB=(0,Z.jsx)(eo,{isCollaborative:!!(null!=k&&k.is_collaborative),onPinNoteChange:({value:e})=>{this.setState({pinNoteText:e})},pinNoteText:R}),eO=eT?(0,Z.jsx)(eu.Z,{errorMessage:ei?(0,ec.qj)(ef,u):"",link:ef&&eS?eS:z,onChangeWebsite:ef?this.handleCarouselWebsiteChange:this.handleWebsiteChange}):null,eN=ef?(0,Z.jsxs)(r.xu,{display:"flex",justifyContent:"end",paddingX:4,paddingY:3,alignItems:"end",children:[(0,Z.jsx)(r.xu,{paddingY:2,children:(0,Z.jsx)(r.__,{htmlFor:"applyTextToAll",children:(0,Z.jsx)(r.xv,{children:u._('Apply text to all', 'Apply title, description, link to all cards', 'Apply title, description, link to all cards')})})}),(0,Z.jsx)(r.xu,{paddingX:2,paddingY:2,children:(0,Z.jsx)(r.rs,{onChange:e=>this.handleShouldApplyToAll(e.value),id:"applyTextToAll",switched:G})})]}):null,eK=eE?(0,Z.jsx)(X,{canEdit:eD,onAltTextChange:this.handleAltTextChange,altText:b}):null,eU=ey.can_delete_did_it_and_comments?(0,Z.jsx)(H,{commentsDisabled:C,isUnsafeForComments:!!ey.is_unsafe_for_comments,onCommentChange:this.handleCommentChange}):null,eH=!x.isAuth||(null===(t=ey.pinner)||void 0===t?void 0:t.id)!==x.id||ey.is_repin||ey.story_pin_data||x.shopping_rec_disabled?null:(0,Z.jsx)(eb,{shoppingRecDisabled:V,onShoppingRecChange:this.handleShoppingRecChange}),eV=!!(0,A.lJ)(x,y),eG=(!!eV||_)&&(0,Z.jsx)(B,{isAdsOnlyPin:null===(i=this.props.pinResource.data)||void 0===i?void 0:i.promoted_is_removable}),eW=!x.secretBoardCount&&!!x.has_quicksave_board&&!!x.boardCount&&x.boardCount<2&&!eV&&!this.props.accountAdvertiserOwnerUserId,e$=(null===(n=ey.board)||void 0===n?void 0:n.layout)==="quick_creates",eq=(0,A.Ms)(x,y),eY=I&&U&&I[U],eX=null==k?void 0:k.is_ads_only;return h&&!ey.is_repin?(0,Z.jsx)(r.mh,{zIndex:eI,children:(0,Z.jsx)(w.Z,{allowEsc:!0,children:(0,Z.jsx)(r.To,{accessibilityDismissButtonLabel:u._('Dismiss button', 'closeup.editPinSheet.dismissButtonLabel', 'Accessibility Label for the dismiss button'),accessibilityLabel:u._('Edit Pin details', 'closeup.editPinSheet.label', 'Accessibility Label for the edit pin sheet'),footer:(0,Z.jsx)(ek,{apiErrorMessage:S,onClickDeleteButton:this.onClickDeleteButton,disableDelete:!eD||o,shouldDisableSave:W,shouldShowGenericUpdateError:q,triggerBoardAndSectionCreate:this.triggerBoardAndSectionCreate(eq)}),heading:u._('Edit Pin', 'closeup.editPinSheet.title', 'Heading title for Edit Pin sheet'),onDismiss:()=>g(),children:T||!f.isLoaded||F?(0,Z.jsx)(r.kC,{alignItems:"center",justifyContent:"center",children:(0,Z.jsx)(r.$j,{show:!0,accessibilityLabel:u._('loading', 'EditPinModal.LoadingPin.Spinner', 'Accessible label for the edit pin loading icon')})}):(0,Z.jsx)(r.kC,{alignItems:"stretch",justifyContent:eW?"center":"between",children:eW?null:(0,Z.jsxs)(r.xu,{width:"100%",children:[(0,Z.jsx)(ed.Z,{canEdit:!0,isStoryPin:!0,errorMessage:en?(0,ec.Y8)(ef,u):"",onTitleChange:ef?this.handleCarouselTitleChange:this.handleTitleChange,title:ef&&eA?eA:em}),(0,Z.jsx)(J.Z,{canEdit:!0,isStoryPin:!0,canAddUserMentionTags:!ef,description:(ef?ew:E)||"",errorMessage:eF(),initialMentions:eg,label:u._('Description', 'editPinModal.editDescription.labelText', 'Label for editing description'),onDescriptionChange:ef?this.handleCarouselDetailsChange:this.handleDescriptionChange,placeholder:u._('Write a detailed description for your Pin here or add a specific list below', 'editPinModal.editDescription.labelText', 'Placeholder for editing description')}),!(c&&"none"===U)&&(0,Z.jsxs)(l.Fragment,{children:[(0,Z.jsx)(r.xu,{paddingY:2,children:(0,Z.jsx)(r.xv,{size:"100",children:u._('Details', 'storyboard.detailsList.metadataModuleSelector.title', 'Title of the idea pin metadata selector.')})}),(0,Z.jsx)(ej.Z,{onSelect:this.handleTemplateSelect,selectedTemplate:U,size:"sm",viewParameter:89})]}),"recipe"===U&&(0,Z.jsx)(O.Z,{handleUpdateKeyValueBlocks:this.handleUpdateKeyValueBlocks,handleUpdateListBlocks:this.handleUpdateListBlocks,metadata:eY}),"diy"===U&&(0,Z.jsx)(K.Z,{handleUpdateKeyValueBlocks:this.handleUpdateKeyValueBlocks,handleUpdateListBlocks:this.handleUpdateListBlocks,metadata:eY}),"blank"===U&&(0,Z.jsx)(N.Z,{handleUpdateListBlocks:this.handleUpdateListBlocks,metadata:eY}),h&&(0,Z.jsx)(eu.Z,{isStoryPin:!0,link:z,onChangeWebsite:this.handleWebsiteChange,errorMessage:ei?(0,ec.qj)(!1,u):""}),(0,Z.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[(0,Z.jsx)(r.xu,{column:6,marginEnd:3,children:(0,Z.jsx)(Q.Z,{isStoryPin:!0,board:k||ey.board,canEdit:eD,isAdsOnlyBoard:eX,isOriginallyQuickCreatesBoard:e$,onBoardChange:this.handleBoardChange,onBoardCreate:this.handleBoardCreateClick,viewerId:x.id||""})}),(0,Z.jsx)(r.xu,{column:6,marginStart:3,children:(0,Z.jsx)(es.Z,{isStoryPin:!0,board:k||ey.board,canEdit:eD,currentSection:ey.section,idealDirection:"right",onSectionCreate:this.handleSectionCreateClick,onSectionChange:this.handleSectionChange,sectionId:L,sectionName:M})})]}),(0,Z.jsx)(r.xu,{paddingY:2,children:(0,Z.jsx)(r.iP,{onTap:()=>this.handleToggleOptions(),children:(0,Z.jsxs)(r.kC,{alignItems:"center",gap:{row:2,column:0},children:[(0,Z.jsx)(r.xv,{weight:"bold",children:u._('More options', 'storyboard.detailsList.metadataModule.moreOptions', 'Title of the more options section.')}),(0,Z.jsx)(r.JO,{accessibilityLabel:u._('More options arrow icon', 'storyboard.detailsList.metadataModule.moreOptions', 'Label for the more options section.'),color:"default",icon:e_?"arrow-up":"arrow-down",size:"12"})]})})}),e_&&(0,Z.jsxs)(l.Fragment,{children:[(0,Z.jsx)(H,{isStoryPin:!0,commentsDisabled:C,isUnsafeForComments:!!ey.is_unsafe_for_comments,onCommentChange:this.handleCommentChange}),(!!eV||_)&&(0,Z.jsx)(B,{isStoryPin:!0,isAdsOnlyPin:null===(a=this.props.pinResource.data)||void 0===a?void 0:a.promoted_is_removable}),eR&&(0,Z.jsx)(P.Z,{children:(0,Z.jsx)(ex,{isStoryPin:!0,onShoppingRecChange:this.handleShoppingRecChange,shoppingRecDisabled:V,storyPinData:ey.story_pin_data})})]})]})})})})}):(0,Z.jsx)(m.ZP,{heading:u._('Edit this Pin', 'EditPinModal.ModalHeading.EditThisPin', 'Edit a previously saved pin'),accessibilityModalLabel:u._('Edit your previously saved pin', 'EditPinModal.ModalHeading.AccessibleLabel', 'Accessible label for edit previously saved pin modal'),size:eW?"sm":"lg",onDismiss:g,footer:(0,Z.jsx)(er,{apiErrorMessage:S,shouldShowGenericUpdateError:q,onClickDeleteButton:this.onClickDeleteButton,disableDelete:!eD||o,onHide:g,shouldDisableSave:W,triggerBoardAndSectionCreate:this.triggerBoardAndSectionCreate(eq)}),children:T||!f.isLoaded||F?(0,Z.jsx)(r.kC,{alignItems:"center",justifyContent:"center",children:(0,Z.jsx)(r.$j,{accessibilityLabel:u._('loading', 'EditPinModal.LoadingPin.Spinner', 'Accessible label for the edit pin loading icon'),show:!0})}):(0,Z.jsxs)(r.xu,{display:"flex",justifyContent:eW?"center":"between",minHeight:350,paddingX:4,children:[eW?null:(0,Z.jsxs)(r.xu,{column:12,mdColumn:9,children:[(0,Z.jsx)(Q.Z,{board:k||ey.board,canEdit:eD,isAdsOnlyBoard:eX,isOriginallyQuickCreatesBoard:e$,onBoardChange:this.handleBoardChange,onBoardCreate:this.handleBoardCreateClick,viewerId:x.id||""}),!eX&&(0,Z.jsx)(es.Z,{board:k||ey.board,canEdit:eD,onSectionCreate:this.handleSectionCreateClick,onSectionChange:this.handleSectionChange,sectionId:L,sectionName:M,currentSection:ey.section}),eL,eZ,eO,eN,eK,eB,eU,eH,eG,eR&&(0,Z.jsx)(P.Z,{children:(0,Z.jsx)(ex,{onShoppingRecChange:this.handleShoppingRecChange,shoppingRecDisabled:V,storyPinData:ey.story_pin_data})})]}),(0,Z.jsx)(el,{isCarousel:ef,shouldShowCarouselSliders:$,onCarouselSlide:this.handleCarouselSlider,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,currentIndex:this.state.currentIndex,carouselData:this.state.carousel_data,pinId:v,description:E,image:ez})]})})}}let eF=(e,t,i)=>({field_set_key:"detailed",id:e,preserve_component_state:t,...i?{orbac_subject_id:i}:Object.freeze({})});function ez(e){var t,i,n,l,r,o,s,d,c,p;let _=(0,g.ZP)(),{logContextEvent:m}=(0,h.v)(),{checkExperiment:y}=(0,v.F)(),P=(0,a.useSelector)(({advertiser:e})=>e),w=P&&P.client_business_id?P.client_business_id:void 0,k=null===(t=(0,E.W)())||void 0===t?void 0:t.onPinDelete,D=(0,j.Z)(),B=(0,S.Z)(),{advertiser:O}=(0,f.B)(),N=(0,A.lJ)(B,D),K=(0,b.Z)({name:"PinResource",options:eF(e.pinId,!0,N)}),U=(0,u.Z)(),H=B.isAuth&&P?P.id:void 0,V=B.isAuth&&P&&P.owner_user_id!==B.id?P.owner_user_id:void 0,G=(0,C.Z)({hasPin:!!K.data,pinId:null===(i=K.data)||void 0===i?void 0:i.id,boardLayout:null===(n=K.data)||void 0===n?void 0:null===(l=n.board)||void 0===l?void 0:l.layout,boardUrl:null===(r=K.data)||void 0===r?void 0:null===(o=r.board)||void 0===o?void 0:o.url}),W=(null==O?void 0:O.owner_user_id)===B.id,$=(null===(s=K.data)||void 0===s?void 0:null===(d=s.board)||void 0===d?void 0:null===(c=d.owner)||void 0===c?void 0:c.id)===B.id,q=!!(null!==(p=K.data)&&void 0!==p&&p.story_pin_data_id&&K.data.story_pin_data),Y=q&&y("web_idea_pin_edit_lists_dep").anyEnabled,X=q&&y("web_increased_description_length").anyEnabled,Q=q&&y("web_idea_pin_edit_link").anyEnabled,J=(0,a.useDispatch)();return(0,Z.jsx)(eT,{...e,advertiser_id:H,accountAdvertiserOwnerUserId:V,getClientTrackingParams:U,dispatch:(0,a.useDispatch)(),i18n:_,isIdeaPinEditLinkConfirmationEnabled:Q,isIdeaPinEditListsDepEnabled:Y,isIdeaPinIncreasedDescriptionLengthEnabled:X,isStoryPin:q,isViewerBoardOwnerAndAdvertiser:W&&$,logContextEvent:m,onDelete:()=>{var t;G(),null===(t=e.onDelete)||void 0===t||t.call(e),k&&k({pinId:e.pinId})},orbacActingAs:D,pinResource:K,viewer:B,changeBoardPinCount:e=>J((0,I.Br)(e)),changeUserPinCount:e=>J((0,L.JS)(e)),completeResourceFetch:(e,t)=>J((0,x.Sr)("PinResource",eF(e.resource_response.data.id,!1,t),e)),createBoard:(e,t,i)=>J((0,I.aX)(e,t,i)),createSection:(e,t)=>J((0,T.vB)(e,_,t,m)),invalidatePinResource:(e,t)=>J((0,x.jB)("PinResource",eF(e,!0,t))),removeBoardlessPin:(e,t)=>J((0,F.EX)({feedId:e,feedType:M.Z.BOARDLESS_PINS,itemIds:[t],itemType:"pin"})),pinMoved:e=>J((0,z.S)(e)),updatePinNote:(e,t,i,n)=>J((0,R._)(e,t,i,n)),clientBusinessId:w})}},381595:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(667294),l=i(883119),a=i(898781),r=i(241563),o=i(785893);function s({board:e,canEdit:t,currentSection:i,idealDirection:s,isStoryPin:d,onSectionChange:u,onSectionCreate:c,sectionId:p,sectionName:h}){let _=(0,a.ZP)(),m=null!=e&&e.id?r.Z:r.x,g=(null==e?void 0:e.layout)==="quick_creates";return g?null:(0,o.jsx)(n.Fragment,{children:d?(0,o.jsxs)(l.xu,{direction:"column",display:"flex",justifyContent:"between",paddingY:3,children:[(0,o.jsx)(l.xu,{paddingY:2,children:(0,o.jsx)(l.__,{htmlFor:"SectionPicker",children:(0,o.jsx)(l.xv,{size:"100",children:_._('Section', 'editPinModal.editSection.optionalSectionLabel', 'Label for editing a Pin\'s board section')})})}),t&&e?(0,o.jsx)(m,{board:e,idealDirection:s,isStoryPin:d,onSectionChange:u,onSectionCreate:c,selectedSectionId:p,selectedSectionName:h}):(0,o.jsx)(l.xu,{children:(0,o.jsx)(l.xv,{size:"200",weight:"bold",children:i&&!(e||{}).is_collaborative?i.title:_._('No section', 'editPinModal.editSection.optionalSectionLabel', 'Default dropdown option for selecting a board section on pin edit')})})]}):(0,o.jsxs)(l.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:4,paddingY:3,children:[(0,o.jsx)(l.xu,{column:12,mdColumn:3,paddingY:3,children:(0,o.jsx)(l.__,{htmlFor:"SectionPicker",children:(0,o.jsx)(l.xv,{size:"200",children:_._('Section', 'label for editing a Pin\'s board section', 'label for editing a Pin\'s board section')})})}),t&&e?(0,o.jsx)(l.xu,{column:12,mdColumn:8,children:(0,o.jsx)(m,{board:e,onSectionChange:u,selectedSectionId:p,selectedSectionName:h,onSectionCreate:c})}):(0,o.jsx)(l.xu,{column:12,mdColumn:8,paddingY:2,children:(0,o.jsx)(l.xv,{size:"200",weight:"bold",children:i&&!(e||{}).is_collaborative?i.title:_._('No section', 'default dropdown option for selecting a board section on pin edit', 'default dropdown option for selecting a board section on pin edit')})})]})})}},268883:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(667294),l=i(883119),a=i(893764),r=i(898781),o=i(43898),s=i(785893);function d({canEdit:e,errorMessage:t,isStoryPin:i,onTitleChange:d,placeholder:u,title:c,warningMessage:p}){let h=(0,r.ZP)();return(0,s.jsx)(n.Fragment,{children:i?(0,s.jsxs)(l.xu,{direction:"column",display:"flex",justifyContent:"between",paddingY:3,children:[(0,s.jsx)(l.xu,{paddingY:2,children:(0,s.jsx)(l.__,{htmlFor:"TitleField",children:(0,s.jsx)(l.xv,{size:"100",children:h._('Title', 'editPinModal.editTitle.titleText', 'Title text for editing title of pin')})})}),(0,s.jsx)(l.xu,{"data-test-id":"pin-title-input",children:e?(0,s.jsx)(a.Z,{errorMessage:t,id:"TitleField",onChange:d,placeholder:null!=u?u:h._('Add a title', 'editPinModal.editTitle.titleTextField', 'Title for text field for editing title of pin'),size:"lg",value:c,warningMessage:p}):(0,s.jsx)(l.xu,{column:12,mdColumn:8,paddingY:2,children:(0,s.jsx)(l.xv,{size:"200",weight:"bold",children:c})})}),!e&&!!t&&(0,s.jsx)(l.xu,{children:(0,s.jsx)(o.Z,{errorMessage:t,htmlFor:"pin-edit-title"})})]}):(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(l.iz,{}),(0,s.jsxs)(l.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:4,paddingY:3,children:[(0,s.jsx)(l.xu,{column:12,mdColumn:3,paddingY:2,children:(0,s.jsx)(l.__,{htmlFor:"TitleField",children:(0,s.jsx)(l.xv,{size:"200",children:h._('Title', 'Label for editing title of pin', 'Label for editing title of pin')})})}),(0,s.jsx)(l.xu,{column:12,mdColumn:8,children:e?(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(l.xu,{"data-test-id":"pin-title-input",children:(0,s.jsx)(l.nv,{hasError:(t||"").length>0,id:"TitleField",onChange:d,size:"lg",value:c})}),!!t&&(0,s.jsx)(l.xu,{children:(0,s.jsx)(o.Z,{errorMessage:t,htmlFor:"pin-edit-title"})})]}):(0,s.jsx)(l.xu,{column:12,mdColumn:8,paddingY:2,children:(0,s.jsx)(l.xv,{size:"200",weight:"bold",children:c})})})]})]})})}},299335:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(667294),l=i(883119),a=i(893764),r=i(898781),o=i(43898),s=i(785893);function d({errorMessage:e,isStoryPin:t,link:i,onBlur:d,onChangeWebsite:u,onFocus:c,placeholder:p,warningMessage:h}){let _=(0,r.ZP)();return(0,s.jsx)(n.Fragment,{children:t?(0,s.jsxs)(l.xu,{direction:"column",display:"flex",justifyContent:"between",paddingY:3,"data-test-id":"storyboard-selector-link",children:[(0,s.jsx)(l.xu,{paddingY:2,children:(0,s.jsx)(l.__,{htmlFor:"WebsiteField",children:(0,s.jsx)(l.xv,{size:"100",children:_._('Link', 'editPinModal.editWebsite.titleText', 'Title text for editing link of pin')})})}),(0,s.jsx)(a.Z,{errorMessage:e,id:"WebsiteField",onBlur:d,onChange:u,onFocus:c,placeholder:null!=p?p:_._('Add a link', 'editPinModal.editLink.placeholder', 'Placeholder text to prompt user to add a link'),size:"lg",type:"url",value:i,warningMessage:h})]}):(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(l.iz,{}),(0,s.jsxs)(l.xu,{mdDisplay:"flex",justifyContent:"between",paddingX:4,paddingY:3,children:[(0,s.jsx)(l.xu,{column:12,mdColumn:3,paddingY:2,children:(0,s.jsx)(l.__,{htmlFor:"WebsiteField",children:(0,s.jsx)(l.xv,{size:"200",children:_._('Website', 'editPinModal.editWebsite.titleText', 'Title text for editing website of pin')})})}),(0,s.jsxs)(l.xu,{column:12,mdColumn:8,children:[(0,s.jsx)(l.xu,{children:(0,s.jsx)(l.nv,{id:"WebsiteField",onChange:u,size:"lg",value:i})}),!!e&&(0,s.jsx)(l.xu,{children:(0,s.jsx)(o.Z,{errorMessage:e,htmlFor:"pin-edit-website"})})]})]})]})})}},947729:(e,t,i)=>{"use strict";function n(e,t){return e?t._('Title too long. Make sure all cards\' titles have less than 100 characters', 'Title entered is too long while editing a carousel pin and/or one of its pins', 'Title entered is too long while editing a carousel pin and/or one of its pins'):t._('Title too long. Make sure title has less than 100 characters', 'Title entered is too long while editing a pin', 'Title entered is too long while editing a pin')}function l(e,t){return e?t._('Description too long. Make sure all cards\' descriptions have less than 500 characters', 'Description entered is too long while editing a carousel pin and/or one of its pins', 'Description entered is too long while editing a carousel pin and/or one of its pins'):t._('Description too long. Make sure description has less than 500 characters', 'Description entered is too long while editing a pin', 'Description entered is too long while editing a pin')}function a(e,t){return t._('Too many mentions. Make sure you have at most 5.', 'editPinModal.errorMessages.userMentionOverLimit', 'Too many mentions used in the description')}function r(e,t){return e?t._('Need to provide a valid URL. Make sure all cards\' links are valid', 'Invalid URL/link provided while editing a carousel pin and/or one of its pins', 'Invalid URL/link provided while editing a carousel pin and/or one of its pins'):t._('Need to provide a valid URL. Make sure the link is valid', 'Invalid URL/link provided while editing a pin', 'Invalid URL/link provided while editing a pin')}i.d(t,{MM:()=>l,Y8:()=>n,bl:()=>a,qj:()=>r})},597830:(e,t,i)=>{"use strict";function n(e){return"recipe"===e?1:"diy"===e?2:null}i.d(t,{Z:()=>n})},146754:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(77675),l=i(251557);function a(e){let{basics:t}=e||{};if(!t)return{};let i=(0,n.Z)(e);return{[i]:(0,l._)(t)}}},77675:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(783331),l=i(251557);function a(e){let{basics:t,template_type:i}=e||{};return(0,n.Z)({basics:t?(0,l._)(t):void 0,templateType:i})}},188170:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(702664),l=i(883119),a=i(898781),r=i(349700),o=i(927383),s=i(618224),d=i(785893);function u({boardId:e,onBoardSelected:t,noArrowIcon:i,showSingleBoardRep:u}){var c;let p=(0,a.ZP)(),h=(0,n.useSelector)(({boards:e})=>e),_=h[e],m=_.section_count,g=!!m&&m>0,y=(0,o.Z)(),v=null!==(c=_.name)&&void 0!==c?c:"this board";return(0,d.jsx)(l.iP,{rounding:2,onTap:y({fn:()=>t(g)}),accessibilityLabel:(0,r.Wc)(`${p._('Select {{ boardName }}', 'board.picker.row.select.board', 'Accessibility label for select board button')}`,{boardName:v}),tapStyle:"compress",children:(0,d.jsx)(s.Z,{boardId:e,noArrowIcon:i,showSingleBoardRep:u})})}},618224:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(667294),l=i(702664),a=i(883119),r=i(898781),o=i(349700),s=i(758127),d=i(948618),u=i(223019),c=i(785893);function p({boardId:e,navigateToBoard:t,noArrowIcon:i,showCollaborators:p,showSingleBoardRep:h,shouldShowPinAndSectionCount:_}){let m=(0,r.ZP)(),g=(0,l.useSelector)(({boards:e})=>e),y=g[e],v=(y.collaborating_users||[]).map(e=>{var t,i;return{name:null!==(t=e.username)&&void 0!==t?t:"",src:"https://s.pinimg.com/images/user/default_75.png"===e.image_medium_url?"":null!==(i=e.image_medium_url)&&void 0!==i?i:""}}),f="",x=v.slice(0,3).map(e=>e.name);switch(v.length){case 3:f=(0,o.Wc)(`${m._('{{ first }}, {{ second }}, and {{ last }}', 'CollaboratorsFacePile.AvatarGroup.accessibilityLabel.usernames.ThreeAvatars', 'List of three usernames')}`,{first:`${x[0]}`,second:`${x[1]}`,last:`${x[2]}`});break;case 2:f=(0,o.Wc)(`${m._('{{ first }} and {{ second }}', 'CollaboratorsFacePile.AvatarGroup.accessibilityLabel.usernames.TwoAvatars', 'List of two usernames.')}`,{first:`${x[0]}`,second:`${x[1]}`});break;default:f=x.join(", ")}let b=v.length>3?(0,o.Wc)(m.ngettext('Collaborators: {{ userNames }} and {{ leftCount }} more.', 'Collaborators: {{ userNames }} and {{ leftCount }} more.', v.length - 3, 'CollaboratorsFacePile.AvatarGroup.accessibilityLabel.aboveThree', 'Accessibility label that lists the names of collaborators and a final count of non-displayed avatars'),{userNames:f,leftCount:`${v.length-3}`}):(0,o.Wc)(`${m._('Collaborators: {{ userNames }}.', 'CollaboratorsFacePile.AvatarGroup.accessibilityLabel.notAboveThree', 'Accessibility label that lists the names of collaborators')}`,{userNames:f}),P=new a.Ry(0),w=y.pin_count,S=y.section_count,k=(0,c.jsx)(n.Fragment,{children:(0,c.jsxs)(a.xu,{"data-test-id":"board-picker-row",display:"flex",alignItems:"center",rounding:2,column:12,marginBottom:h?4:0,children:[(0,c.jsx)(a.xu,{paddingY:h?0:2,children:h?(0,c.jsx)(a.xu,{height:48,overflow:"hidden",width:48,children:(0,c.jsx)(a.zd,{height:"100%",rounding:2,width:"100%",children:(0,c.jsx)(a.Ee,{alt:"",color:"lightGray",fit:"cover",naturalHeight:1,naturalWidth:1,src:y.image_cover_url||""})})}):(0,c.jsx)(a.xu,{height:60,overflow:"hidden",rounding:4,width:60,children:(0,c.jsx)(u.Z,{boardId:y.id,type:"thumbnail",fullSize:!0})})}),(0,c.jsxs)(a.kC,{alignItems:"center",flex:"grow",justifyContent:"between",children:[(0,c.jsxs)(a.xu,{direction:"column",display:"flex",justifyContent:"center",marginStart:h?2:4,width:"100%",overflow:h?"hidden":"auto",children:[(0,c.jsx)(a.xv,{size:"400",weight:"bold",lineClamp:h?1:void 0,children:y.name}),_&&(0,c.jsxs)(a.kC,{children:[(0,c.jsx)(a.xv,{inline:!0,children:!!w&&(0,o.nk)(m.ngettext('{{ PinCount }} Pin', '{{ PinCount }} Pins', null != w ? w : 0, 'BoardRow.pinCount', 'Number of Pins on board or section, pinCount: number of Pins'),{PinCount:w})}),!!w&&!!S&&(0,c.jsx)(d.Z,{}),(0,c.jsx)(a.xv,{inline:!0,children:!!S&&(0,o.nk)(m.ngettext('{{ sectionCount }} section', '{{ sectionCount }} sections', null != S ? S : 0, 'BoardRow.sectionCount', 'Number of sections on board, sectionCount: number of sections'),{sectionCount:S})})]})]}),(0,c.jsxs)(a.kC,{alignItems:h?"center":"start",justifyContent:"start",children:["secret"===y.privacy&&(0,c.jsx)(a.xu,{marginStart:h?3:1,children:(0,c.jsx)(a.JO,{color:h?"default":"subtle",icon:"lock",accessibilityLabel:m._('secret board icon', ' - ', ' -- ')})}),y.is_collaborative&&(h||p)&&v.length>0?(0,c.jsx)(a.xu,{zIndex:P,children:(0,c.jsx)(a.HE,{accessibilityLabel:s.U+b,collaborators:v,size:1===v.length?"sm":"xs"})}):y.is_collaborative&&(0,c.jsx)(a.xu,{marginStart:1,children:(0,c.jsx)(a.JO,{icon:"people",accessibilityLabel:m._('group board icon', ' - ', ' -- ')})}),!i&&!!y.section_count&&(0,c.jsx)(a.xu,{"data-test-id":"boardSectionPicker",marginStart:h?3:0,children:(0,c.jsx)(a.JO,{color:h?"default":"subtle",icon:"arrow-forward",accessibilityLabel:m._('board section board picker icon', ' - ', ' -- ')})})]})]})]})});return t&&y.url?(0,c.jsx)(a.Tg,{rounding:2,href:y.url,tapStyle:"compress",children:k}):k}},568674:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(702664),l=i(616550),a=i(883119),r=i(898781),o=i(989726),s=i(130460),d=i(188170),u=i(349700),c=i(63552),p=i(785893);function h({onSectionSelected:e,sectionId:t,showSectionRep:i}){var l,o;let s=(0,n.useSelector)(({boardsections:e})=>e[t]),d=(0,r.ZP)(),h=s&&(null===(l=s.preview_pins)||void 0===l?void 0:l[0])&&s.preview_pins[0].image_medium_url,_=null!==(o=s.title)&&void 0!==o?o:"";return(0,p.jsx)(c.Z,{rounding:2,onTouch:e,pressState:"none",children:(0,p.jsxs)(a.xu,{"data-test-id":"sectionPickerRow",display:"flex",alignItems:"center",rounding:2,column:12,marginBottom:i?4:0,children:[i&&(0,p.jsx)(a.xu,{height:48,width:51,children:(0,p.jsx)(a.zd,{height:"100%",rounding:2,width:"100%",children:(0,p.jsx)(a.Ee,{alt:(0,u.Wc)(d._('{{ boardSectionName }} thumbnail', 'SectionPickerRow.boardImage.accessibilityLabel.text', 'Additional text explaining board image thumbnail. boardSectionName:Title of the board section for a11y text'),{boardSectionName:_}),color:"lightGray",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!=h?h:""})})}),!i&&(0,p.jsx)(a.xu,{column:1,paddingY:2}),(0,p.jsx)(a.xu,{column:11,display:"flex",flex:"grow",justifyContent:"between",paddingY:2,children:i?(0,p.jsx)(a.xu,{overflow:"hidden",width:"100%",marginStart:2,children:(0,p.jsx)(a.xv,{size:"400",lineClamp:1,weight:"bold",children:s.title})}):(0,p.jsx)(a.xu,{marginStart:2,children:(0,p.jsx)(a.xv,{weight:"bold",children:s.title})})})]})})}let _=(e,t)=>{let{isFetching:i}=(0,o.Z)({name:"BoardSectionsRepinResource",options:{board_id:e}}),l=(0,n.useSelector)(({feeds:t})=>{let i=t[`board-sections:${e}`]||[];return i.reduce((e,t)=>{if("boardsection"===t.type){let i={type:"boardsection",id:t.id};e.push(i)}return e},[])}),a=(0,n.useSelector)(i=>l.map(e=>e.id).reduce((n,l)=>{let a=i.boardsections[null!=l?l:""];return l!==t&&a&&n.push({board:{id:e},id:a.id,title:a.title,type:"boardsection",slug:a.slug}),n},[]));return{isFetching:i,boardSections:l,filteredBoardSections:a}};function m({boardId:e,originalBoardId:t,sectionId:i,repin:n,hideBoardPickerRow:o,showSectionRep:u}){let c=(0,r.ZP)(),{isFetching:m,boardSections:g,filteredBoardSections:y}=_(e,i),v=(0,l.useHistory)(),f=(0,s.gC)()(t||"");return(0,p.jsxs)(a.xu,{children:[g.length>0&&(0,p.jsxs)(a.xu,{paddingY:u?0:3,children:[u&&(0,p.jsx)(a.xu,{paddingY:2,children:(0,p.jsx)(a.xu,{marginBottom:2,children:(0,p.jsx)(a.xv,{children:c._('Board', 'RepinFlow.SectionPickerList.Board', 'Section picker board title')})})}),!o&&(0,p.jsx)(d.Z,{boardId:e,noArrowIcon:!0,onBoardSelected:()=>n(e,void 0,c),showSingleBoardRep:u},e),u&&(0,p.jsx)(a.xu,{paddingY:4,children:(0,p.jsx)(a.xv,{children:c._('Section', 'RepinFlow.SectionPickerList.Section', 'Section picker all sections title')})}),y.map(i=>{var l;return(0,p.jsx)(h,{onSectionSelected:()=>{if(n(e,i,c),t){var l;v.push(null!==(l=null==f?void 0:f.url)&&void 0!==l?l:"")}},sectionId:null!==(l=i.id)&&void 0!==l?l:"",showSectionRep:u},i.id)})]}),(0,p.jsx)(a.$j,{accessibilityLabel:c._('Loading board section for repin flow', ' - ', ' -- '),show:m})]})}},675752:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});let n=({hasRichMetadata:e,hasRichMetadataProducts:t,hasRichMetadataArticle:i,hasRichMetadataRecipe:n})=>e?t?144:i?141:n?145:139:140},166753:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(499128),l=i(576028),a=i(678638),r=i(139574),o=i(785893);let s=({boardId:e,boardSectionId:t,clientTrackingParams:i,dispatch:s,i18n:d,newPinId:u,onError:c,onSuccess:p,originalPinId:h,shouldRefresh:_=!1,showToast:m,sourcePinId:g,undoSavedPin:y})=>s((0,r.q)({pinId:u,boardId:e,boardSectionId:t,clientTrackingParams:i})).then(()=>{h&&y(h),y(g),_&&(t&&s((0,a.A4)(t)),e&&s((0,l.u)(e))),m(({hideToast:e})=>(0,o.jsx)(n.ZP,{text:d._('Pin removed!', 'Utils.Unsave.Success', 'User removed their pin'),onHide:e})),p&&p()}).catch(()=>{m(({hideToast:e})=>(0,o.jsx)(n.ZP,{type:"error",text:d._('Sorry! There was an error removing your Pin.', 'Utils.Unsave.Error', 'Error when user tried to remove pin'),onHide:e})),null==c||c()})},507016:(e,t,i)=>{"use strict";i.d(t,{W:()=>u,Z:()=>c});var n=i(883119),l=i(27255),a=i(898781),r=i(486746),o=i(24886),s=i(488769),d=i(785893);function u(e,t=""){let i=e&&e.length>1?RegExp(e,"i"):"",n=e&&e.length>1?t.split(i).reduce((i,n,l)=>{if(i.length>0&&e&&e.length){let a=t.toLowerCase().indexOf(e.toLowerCase());return i.concat((0,d.jsx)("em",{style:{borderBottom:"1px solid #333",fontStyle:"normal",paddingBottom:"1px"},children:t.substring(a,a+e.length)},l),n)}return[n]},[]):t;return n}let c=function(e){var t,i,c,p,h,_;let m=(0,a.ZP)(),{disabled:g,item:y,isSection:v,isSelectMode:f,isWithinSectionPicker:x,saveState:b,searchQuery:P,selected:w}=e,S=v?null:y,k=v?y:null,j=k&&k.title||S&&S.name||"",A="",C=!1,D="",E=0;S&&({image_cover_url:A,is_collaborative:C,privacy:D,section_count:E=0}=S);let I=u(P,j),T=D===l.Z.BoardPrivacy.SECRET,F=!g&&(w||!!b),z=!x&&"number"==typeof E&&E>0,R="number"==typeof E&&E>0?"boardWithSection":"boardWithoutSection",L=f?m._('Select', 'Board select button label', 'Board select button label'):m._('Save', 'Pin save button label', 'Pin save button label');return(0,d.jsxs)(n.xu,{alignItems:"center",color:F?"secondary":"default",display:"flex",height:64,marginStart:2,marginEnd:2,marginTop:1,padding:2,rounding:3,"data-test-id":R,children:[S&&(0,d.jsx)(n.xu,{height:48,width:48,color:"secondary",overflow:"hidden",rounding:2,marginEnd:2,flex:"none",children:A?(0,d.jsx)(n.Ee,{src:A,alt:m._('Board cover image', 'boardPickerRow.image.altText', 'alt text for a board cover image'),fit:"cover",naturalWidth:1,naturalHeight:1}):(0,d.jsx)("span",{})}),k&&!!(null!==(t=k.preview_pins)&&void 0!==t&&t.length)&&(0,d.jsx)(o.Z,{image_url:null!==(i=k.preview_pins[0].image_square_url)&&void 0!==i?i:"",naturalHeight:null!==(c=null===(p=k.preview_pins[0].image_square_size_pixels)||void 0===p?void 0:p.height)&&void 0!==c?c:1,naturalWidth:null!==(h=null===(_=k.preview_pins[0].image_square_size_pixels)||void 0===_?void 0:_.width)&&void 0!==h?h:1}),(0,d.jsxs)(n.kC,{alignItems:"center",flex:"grow",justifyContent:"between",children:[(0,d.jsx)(n.xv,{color:g?"subtle":"default",size:"300",lineClamp:1,weight:"bold",children:I}),(z||!F)&&(0,d.jsxs)(n.kC,{alignItems:"center",justifyContent:"start",children:[T&&(0,d.jsx)(s.Z,{type:"secret"}),C&&(0,d.jsx)(r.Z,{board:S,showCollaborativeIcon:C,useLegoLayout:!0}),z&&(0,d.jsx)(s.Z,{type:"sections"})]}),!z&&F&&!b&&(0,d.jsx)(n.xu,{alignItems:"center",color:"primary","data-test-id":"BoardPickerSaveButton",display:"flex",flex:"none",paddingX:3,paddingY:2,rounding:4,children:(0,d.jsx)(n.xv,{color:"inverse",overflow:"normal",size:"300",weight:"bold",children:L})}),!z&&F&&"loading"===b&&(0,d.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{transform:"scale(0.7)"}},maxHeight:35,children:(0,d.jsx)(n.$j,{accessibilityLabel:m._('Saving', 'Accessibility label for saving a pin to a board', 'Accessibility label for saving a pin to a board'),show:!0})})]})]})}},580751:(e,t,i)=>{"use strict";i.d(t,{M:()=>o,Q:()=>s});var n=i(667294),l=i(425288),a=i(785893);let{Provider:r,useMaybeHook:o}=(0,l.Z)("RepinContext");function s({children:e}){let[t,i]=(0,n.useState)(Object.freeze({})),l=(0,n.useMemo)(()=>({getSavedPinId:e=>t[e],isSaved:e=>!!t[e],save:(e,t)=>i(i=>({...i,[e]:t})),unsave:e=>i(t=>({...t,[e]:null}))}),[t]);return(0,a.jsx)(r,{value:l,children:e})}},571577:(e,t,i)=>{"use strict";i.d(t,{H:()=>a,I:()=>l});var n=i(425288);let{Provider:l,useHook:a}=(0,n.Z)("ScreenSize")},604356:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(667294),l=i(883119),a=i(319915),r=i(898781),o=i(947599),s=i(785893);let d=(0,n.lazy)(()=>Promise.all([i.e(10966),i.e(49510),i.e(49426),i.e(61116)]).then(i.bind(i,535591)));function u(e){let t=(0,r.ZP)();return(0,s.jsx)(a.Z,{name:"SafeSuspense_SendObjectLoader_SendObjectWrapper",children:(0,s.jsx)(o.Z,{fallback:(0,s.jsx)(l.xu,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",padding:2,children:(0,s.jsx)(l.$j,{accessibilityLabel:t._('Loading sharing', 'Accessibility label for loading sharing UI', 'Accessibility label for loading sharing UI'),show:!0})}),children:(0,s.jsx)(d,{...e})})})}},678532:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n,l=i(667294);i(167912);var a=i(883119),r=i(681669),o=i(898781),s=i(349700),d=i(867820),u=i(50286),c=i(540923),p=i(219413),h=i(882801),_=i(785893);let m=void 0!==n?n:n=i(319461),g=({onTap:e,isOpen:t})=>{let i=(0,o.ZP)();return(0,_.jsx)(a.iP,{tapStyle:"compress",onTap:e,children:(0,_.jsxs)(a.xu,{display:"flex",alignItems:"center",justifyContent:"between",paddingY:5,dangerouslySetInlineStyle:{__style:{borderTop:"1px solid #efefef",borderBottom:"1px solid #efefef"}},children:[(0,_.jsx)(a.xv,{weight:"bold",size:"300",children:i._('Product details', 'productDetails.descriptionTap.text', 'text in tap area to open product description dropdown')}),(0,_.jsx)(a.JO,{accessibilityLabel:i._('Arrow forward', 'productDetails.openDropdown', 'accessibility label on button'),color:"default",icon:t?"arrow-down":"arrow-forward"})]})})};function y({onClickTitleOrDomain:e,pinKey:t}){var i;let{data:n,childDataKey__DEPRECATED:y}=(0,r.sr)(m,t,{type:"pin",useLegacyAdapter:e=>e&&{closeupAttribution:e.closeup_attribution&&{domainUrl:e.closeup_attribution.domain_url},closeupUnifiedDescription:e.closeup_unified_description}}),v=(0,o.ZP)(),f=(0,u.ZP)(),x=null==n?void 0:null===(i=n.closeupAttribution)||void 0===i?void 0:i.domainUrl,b=(0,p.Z)(y),P=(0,h.j)({components:b||[],pinDescription:(null==n?void 0:n.closeupUnifiedDescription)&&n.closeupUnifiedDescription.trim()}),[w,S]=(0,l.useState)(!1);return(0,_.jsx)(a.kC,{alignItems:"start",direction:"column",justifyContent:"start",children:P.length>0&&(0,_.jsxs)(a.xu,{marginTop:6,width:"100%",children:[(0,_.jsx)(g,{isOpen:w,onTap:()=>{S(!w),(0,d.My)("unauth.pdp.details.click",{action:w?"close":"open",device:f})}}),(0,_.jsx)(a.xu,{overflow:"scrollY",maxHeight:w?"75vh":"0vh",paddingX:4,children:(0,_.jsxs)(a.xu,{marginBottom:6,marginTop:2,dangerouslySetInlineStyle:{__style:{lineHeight:"1.2"}},children:[(0,_.jsx)(c.Z,{descriptions:P}),x&&(0,_.jsx)(a.xu,{marginTop:6,children:(0,_.jsx)(a.xv,{children:(0,s.nk)(v._('Ships from and sold by {{ userDomain }}', 'productDetails.productDescription.soldBy', 'Domain url of seller'),{userDomain:(0,_.jsx)(a.iP,{onTap:e,tapStyle:"compress",children:(0,_.jsx)(a.xv,{inline:!0,weight:"bold",children:x})},x)})})})]})})]})})}},238253:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});var n,l,a,r,o,s=i(667294),d=i(167912),u=i(883119),c=i(641950),p=i(453451),h=i(650702),_=i(407043),m=i(898781),g=i(349700),y=i(543972),v=i(992750),f=i(780280),x=i(40995),b=i(745162),P=i(819354),w=i(62409),S=i(350118);i(112690),i(784590),i(561195);var k=i(785893);void 0!==n||(n=i(346154)),i(121151),void 0!==l||(l=i(987557)),void 0!==a||(a=i(762183)),void 0!==r||(r=i(460930));var j=i(219413),A=i(882801);let C=void 0!==o?o:o=i(498006);function D({aggregateRating:e,brandInfo:t,closeupAttributionDomainId:i,isImagePinForUnauthOnTablet:n,isOutOfStock:l,isStale:a,onClickTitleOrDomain:r,graphqlRef:o,inlinePinActionBar:d,pinId:S,pinLink:C,closeupUnifiedDescription:D,offerSummary:E,gridTitle:I,pinTitle:T,richSummaryDisplayName:F,richMetadataTitle:z,setIsActionBarInline:R,shippingInfo:L,storyPinDataId:M,storyPinDataMetadataPinTitle:Z,pinJoinVisualAnnotation:B}){let O=(0,m.ZP)(),{isAuthenticated:N}=(0,f.B)(),{logContextEvent:K}=(0,_.v)(),U=(0,w.AH)(C),H=D&&D.trim(),V=I||T;N||(V=(0,v.Ly)({pinTitle:T,gridTitle:I,richSummaryDisplayName:F,richMetadataTitle:z,storyPinDataId:M,storyPinDataMetadataPinTitle:Z,pinJoinVisualAnnotation:B}));let G=(0,b.Z)({isImagePinForUnauthOnTablet:n}),W=(0,j.Z)(o?{type:"graphqlRef",data:o}:{type:"deprecated",data:S}),$=(0,A.j)({components:W,pinDescription:H}),[q,Y]=(0,s.useState)(!1),X=V&&(0,k.jsx)(u.xu,{marginTop:2,marginBottom:2,children:(0,k.jsx)(x.Z,{onClick:r,hasLink:U,forceSmallerHeading:!n,textAlign:"start",pinId:S,graphqlRef:o,lineClamp:G})}),{rating_count:Q,review_count:J,rating_value:ee}=e||{},et=(0,k.jsx)(h.Z,{bracket:!0,count:Q||J,countType:Number(Q||0)?"rating":"review",countFormat:"number",hideSeparationDot:!0,ratingValue:ee,shippingInfo:L&&{freeShippingPrice:L.free_shipping_price,freeShippingValue:L.free_shipping_value}}),ei=(0,k.jsx)(c.Z,{structuredDescription:$,type:"expandable"}),en=null==t?void 0:t.name,el=null==t?void 0:t.userId,ea=i&&i===el||(null==t?void 0:t.isMerchant),er=!!en,eo=(0,s.useCallback)(e=>{if(e&&er){let t=en!==e&&(null===ea||!1===ea);return t?(0,g.nk)(O._('{{ brand }} sold by {{ merchant }}', 'productmetadata.officialuserattribution.text', 'officialuserattribution text. brand:name of the brand. merchant:name of the merchant'),{brand:(0,k.jsx)(u.xv,{inline:!0,weight:"bold",children:en},"brand-name"),merchant:(0,k.jsx)(u.xv,{inline:!0,weight:"bold",children:e},"merchant-name")}):[(0,k.jsx)(u.xv,{inline:!0,weight:"bold",children:en},"brand-name")]}return e},[en,ea,O,er]),es=(0,k.jsx)(P.Z,{getDisplayName:eo,graphqlRef:o,pinId:S,onMouseDown:er?()=>{K({event_type:102,object_id_str:S,view_type:3,view_parameter:144,element:13592,aux_data:{pin_id:S,commerce_data:JSON.stringify({pin_show_pdp:"1"})}})}:void 0}),ed=(0,k.jsx)(p.Z,{productDetails:{maxPrice:null==E?void 0:E.max_price,minPrice:null==E?void 0:E.min_price,price:null==E?void 0:E.price,standardPrice:null==E?void 0:E.standard_price},type:"pdpPlusMobileHeading",colorOverride:"default",isSoldOut:l,isStale:a});return(0,k.jsxs)(u.xu,{children:[(0,k.jsx)(u.kC,{alignItems:"start",direction:"column",justifyContent:"start",children:(0,k.jsx)(y.Z,{options:{threshold:[1]},onVisibilityChange:e=>{if(e&&e.length>0&&R){let{intersectionRatio:t,boundingClientRect:i}=e[0],n=i.y<0;R(1===t||n)}},children:e=>(0,k.jsx)(u.xu,{ref:e,children:(0,k.jsxs)(u.xu,{marginBottom:4,children:[X,ed,(0,k.jsx)(u.xu,{marginBottom:2,children:et}),es]})})})}),d,$.length>0&&(0,k.jsx)(u.xu,{marginTop:6,width:"100%",children:ei}),!1]})}function E({pinId:e,graphqlRef:t,...i}){var n,l,a,r,o,s,u,c,p,h,_,m,g,y,v,f,x,b,P,w,S,j,A,E,I,T,F,z,R,L,M;let Z;let B=(0,d.useFragment)(C,t),O=(null===(n=B.pinJoin)||void 0===n?void 0:n.visualAnnotation)||[];if(O.length<1)return null;let{richMetadata:N,richSummary:K}=B;null!=N&&null!==(l=N.products)&&void 0!==l&&l[0]&&N.products[0].name&&N.products[0].offerSummary&&(Z=N.products[0].offerSummary),!Z&&null!=K&&null!==(a=K.products)&&void 0!==a&&a[0]&&K.products[0].name&&K.products[0].offerSummary&&(Z=K.products[0].offerSummary);let U={min_price:null===(r=Z)||void 0===r?void 0:r.minPrice,max_price:null===(o=Z)||void 0===o?void 0:o.maxPrice,price:null===(s=Z)||void 0===s?void 0:s.price,standard_price:null===(u=Z)||void 0===u?void 0:u.standardPrice},H={rating_value:null!==(c=null==N?void 0:null===(p=N.aggregateRating)||void 0===p?void 0:p.ratingValue)&&void 0!==c?c:void 0,review_count:null!==(h=null==N?void 0:null===(_=N.aggregateRating)||void 0===_?void 0:_.reviewCount)&&void 0!==h?h:void 0,rating_count:null!==(m=null==N?void 0:null===(g=N.aggregateRating)||void 0===g?void 0:g.ratingCount)&&void 0!==m?m:void 0},V={free_shipping_price:null==N?void 0:null===(y=N.products)||void 0===y?void 0:null===(v=y[0].shippingInfo)||void 0===v?void 0:v.freeShippingPrice,free_shipping_value:null==N?void 0:null===(f=N.products)||void 0===f?void 0:null===(x=f[0].shippingInfo)||void 0===x?void 0:x.freeShippingValue},G=B.isOosProduct||(null===(b=Z)||void 0===b?void 0:b.inStock)===!1,W=B.isStaleProduct,$={isMerchant:null==N?void 0:null===(P=N.products)||void 0===P?void 0:null===(w=P[0].brand)||void 0===w?void 0:w.isMerchant,name:null==N?void 0:null===(S=N.products)||void 0===S?void 0:null===(j=S[0].brand)||void 0===j?void 0:j.name,userId:null==N?void 0:null===(A=N.products)||void 0===A?void 0:null===(E=A[0].brand)||void 0===E?void 0:E.userId};return(0,k.jsx)(D,{...i,aggregateRating:H,brandInfo:$,closeupAttributionDomainUrl:null===(I=B.closeupAttribution)||void 0===I?void 0:I.domainUrl,closeupAttributionDomainId:null===(T=B.closeupAttribution)||void 0===T?void 0:T.entityId,graphqlRef:B,isOutOfStock:G,isStale:null!=W&&W,pinId:e,pinLink:B.link,closeupUnifiedDescription:null!==(F=B.closeupUnifiedDescription)&&void 0!==F?F:"",offerSummary:U,gridTitle:B.gridTitle,pinTitle:B.title,richSummaryDisplayName:null!==(z=null==K?void 0:K.displayName)&&void 0!==z?z:"",richMetadataTitle:null!==(R=null==N?void 0:N.title)&&void 0!==R?R:"",shippingInfo:V,storyPinDataId:B.storyPinDataId,storyPinDataMetadataPinTitle:null===(L=B.storyPinData)||void 0===L?void 0:null===(M=L.metadata)||void 0===M?void 0:M.pinTitle,pinJoinVisualAnnotation:O})}function I({pinId:e,...t}){var i,n,l,a,r,o,s,d,u,c,p,h,_,m,g,y,v,f,x,b,P,w;let j;let A=(0,S.S6)()(e),C=null==A?void 0:A.rich_metadata,E=null==A?void 0:A.rich_summary;null!=C&&null!==(i=C.products)&&void 0!==i&&i[0]&&C.products[0].name&&C.products[0].offer_summary&&(j=C.products[0].offer_summary),!j&&null!=E&&null!==(n=E.products)&&void 0!==n&&n[0]&&E.products[0].name&&E.products[0].offer_summary&&(j=E.products[0].offer_summary);let I=(null==A?void 0:A.is_oos_product)||(null===(l=j)||void 0===l?void 0:l.in_stock)===!1,T=null==A?void 0:A.is_stale_product,F={isMerchant:null==C?void 0:null===(a=C.products)||void 0===a?void 0:null===(r=a[0].brand)||void 0===r?void 0:r.is_merchant,name:null==C?void 0:null===(o=C.products)||void 0===o?void 0:null===(s=o[0].brand)||void 0===s?void 0:s.name,userId:null==C?void 0:null===(d=C.products)||void 0===d?void 0:null===(u=d[0].brand)||void 0===u?void 0:u.user_id};return(0,k.jsx)(D,{...t,aggregateRating:null==A?void 0:null===(c=A.rich_metadata)||void 0===c?void 0:c.aggregate_rating,brandInfo:F,closeupAttributionDomainUrl:null==A?void 0:null===(p=A.closeup_attribution)||void 0===p?void 0:p.domain_url,closeupAttributionDomainId:null==A?void 0:null===(h=A.closeup_attribution)||void 0===h?void 0:h.id,pinId:e,pinLink:null==A?void 0:A.link,closeupUnifiedDescription:null!==(_=null==A?void 0:A.closeup_unified_description)&&void 0!==_?_:"",gridTitle:null==A?void 0:A.grid_title,isOutOfStock:I,isStale:null!=T&&T,pinTitle:null==A?void 0:A.title,offerSummary:j,richSummaryDisplayName:null!==(m=null==A?void 0:null===(g=A.rich_summary)||void 0===g?void 0:g.display_name)&&void 0!==m?m:"",richMetadataTitle:null!==(y=null==A?void 0:null===(v=A.rich_metadata)||void 0===v?void 0:v.title)&&void 0!==y?y:"",shippingInfo:null==A?void 0:null===(f=A.rich_metadata)||void 0===f?void 0:null===(x=f.products)||void 0===x?void 0:x[0].shipping_info,storyPinDataId:null==A?void 0:A.story_pin_data_id,storyPinDataMetadataPinTitle:null==A?void 0:null===(b=A.story_pin_data)||void 0===b?void 0:null===(P=b.metadata)||void 0===P?void 0:P.pin_title,pinJoinVisualAnnotation:null==A?void 0:null===(w=A.pin_join)||void 0===w?void 0:w.visual_annotation})}function T({graphqlRef:e,...t}){return e?(0,k.jsx)(E,{...t,graphqlRef:e}):(0,k.jsx)(I,{...t})}},72566:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(667294),l=i(883119),a=i(785893);class r extends n.Component{constructor(...e){var t,i,n;super(...e),t="setSearchRef",i=e=>{e&&(this.searchRef=e)},(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in this?Object.defineProperty(this,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[t]=i}componentDidMount(){this.props.autoFocus&&this.searchRef.focus()}render(){let{accessibilityLabel:e,id:t,onBlur:i,onChange:n,onFocus:r,placeholder:o,value:s}=this.props;return(0,a.jsx)(l.Um,{accessibilityLabel:e,id:t,onBlur:i,onChange:n,onFocus:r,placeholder:o,ref:this.setSearchRef,size:"lg",value:s})}}},594635:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(923297),l=i(927220),a=i(350948);function r(e,t,i,r){switch(e){case 0:{let e=parseInt(t,10);return function({isShortened:e,minutes:t,i18n:i}){if(!t)return"";if(e)return(0,l.Z)(t,i).join("");let r=(0,a.Ys)((0,n.X)({m:t}),i);if(!r)return"";let o=r.join(""),s=i._('Cook Time', 'ideapin.basics.cookTime', 'The cook time for the food in this pin');return`${s}: ${o}`}({minutes:e,i18n:i,isShortened:r})}case 1:{let e=parseInt(t,10);return function({servingSize:e,i18n:t}){return e?1===e?`${e} ${t._('serving', 'ideapin.basics.servings', 'The number of servings this recipe makes')}`:`${e} ${t._('servings', 'ideapin.basics.servings', 'The number of servings this recipe makes')}`:""}({servingSize:e,i18n:i})}case 2:return function({difficulty:e,i18n:t}){let i={1:t._('Easy', 'closeup.storyPin.basicsLayout.difficulty', 'Easy difficulty level'),2:t._('Intermediate', 'closeup.storyPin.basicsLayout.difficulty', 'Intermediate difficulty level'),3:t._('Expert', 'closeup.storyPin.basicsLayout.difficulty', 'Expert difficulty level')},n=t._('Difficulty', 'ideapin.basics.difficulty', 'The difficulty for the activity in this pin');return`${n}: ${i[null!=e?e:"1"]}`}({difficulty:t,i18n:i});default:return""}}},57009:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=e=>e.join(` • `)},252417:(e,t,i)=>{"use strict";i.d(t,{Ai:()=>w,B5:()=>_,CR:()=>u,Cc:()=>r,HG:()=>f,R_:()=>s,Wz:()=>o,_P:()=>v,dP:()=>S,dX:()=>b,gx:()=>c,h8:()=>l,hk:()=>d,lp:()=>g,lt:()=>h,oe:()=>x,r4:()=>y,rM:()=>P,tD:()=>p});var n=i(883119);let l={GENERIC_STICKER:"story_pin_generic_interactive_sticker_block",HEADING:"story_pin_heading_block",IMAGE:"story_pin_image_block",INGREDIENT:"story_pin_ingredient_block",LINK:"story_pin_link_block",MENTION_STICKER:"story_pin_mention_sticker_block",MUSIC:"story_pin_music_block",PARAGRAPH:"story_pin_paragraph_block",PRODUCT_STICKER:"story_pin_product_sticker_block",SUPPLY:"story_pin_supply_block",VIDEO:"story_pin_video_block",VTO_MAKEUP_STICKER:"story_pin_virtual_try_on_makeup_sticker_block"},a={alignment:1,hex_color:"#111111",highlight_color:"#FFFFFF",vertical_alignment:1},r={...a,font:{default_size:28,letter_spacing:-.4,line_height:1.25,name:"Graphik Regular",url:"https://pinterest-taipei.s3.amazonaws.com/Graphik-Regular.otf"},font_size:28},o={...a,font:{default_size:48,letter_spacing:0,line_height:1,name:"Graphik Bold Italic",url:"https://pinterest-taipei.s3.amazonaws.com/Graphik-Bold-Italic.otf"},font_size:48},s=64,d=64,u=48,c=48,p=new n.Ry(5),h=new n.H3([p]),_=new n.H3([h]),m=new n.H3([p]),g=new n.H3([m]),y=4;function v(e){return e?{paddingX:0,paddingY:0}:{paddingX:2,paddingY:y}}let f=6,x=47,b=8,P=4,w=5,S=3},642639:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(883119),l=i(898781),a=i(349700),r=i(923297),o=i(833049),s=i(927220),d=i(785893);let u=({minutes:e,type:t,size:i})=>{let a=(0,l.ZP)();if("compact"===t){let t=(0,s.Z)(e,a);return(0,d.jsx)(n.xv,{inline:!0,size:i,children:t})}let u=(0,o.Z)((0,r.X)({m:e}),a);return(0,d.jsxs)(n.xu,{children:[(0,d.jsx)(n.xv,{weight:"bold",inline:!0,size:i,children:a._('Cook Time: ', 'closeup.storyPin.basicsLayout.cookTime.label', 'Label for cook time (ex. Cook Time: 3 minutes)')}),(0,d.jsx)(n.xv,{inline:!0,size:i,children:u})]})},c=({servingSize:e,type:t,size:i})=>{let r=(0,l.ZP)(),o=(0,a.nk)(r.ngettext('{{servingSize}} serving', '{{servingSize}} servings', e, 'number of servings for a recipe', 'number of servings for a recipe'),{servingSize:e});return"compact"===t?(0,d.jsx)(n.xv,{inline:!0,size:i,children:o}):(0,d.jsxs)(n.xu,{children:[(0,d.jsx)(n.xv,{weight:"bold",inline:!0,size:i,children:r._('Serving Size: ', 'closeup.storyPin.basicsLayout.servingSize.label', 'Label for serving size')}),(0,d.jsx)(n.xv,{inline:!0,size:i,children:o})]})},p=({difficulty:e,type:t,size:i})=>{let a=(0,l.ZP)(),r={1:a._('Easy', 'closeup.storyPin.basicsLayout.difficulty', 'Easy difficulty level'),2:a._('Intermediate', 'closeup.storyPin.basicsLayout.difficulty', 'Intermediate difficulty level'),3:a._('Expert', 'closeup.storyPin.basicsLayout.difficulty', 'Expert difficulty level')};return(0,d.jsxs)(n.xu,{children:[(0,d.jsx)(n.xv,{weight:"compact"===t?"normal":"bold",inline:!0,size:i,children:a._('Difficulty: ', 'closeup.storyPin.basicsLayout.difficulty.label', 'Label for difficulty')}),(0,d.jsx)(n.xv,{inline:!0,size:i,children:r[null!=e?e:"1"]})]})};function h({categoryType:e,value:t,type:i,size:n}){if(0===e){let e=parseInt(t,10);return e?(0,d.jsx)(u,{minutes:e,type:i,size:n}):null}if(1===e){let e=parseInt(t,10);return(0,d.jsx)(c,{servingSize:e,type:i,size:n})}return 2===e?(0,d.jsx)(p,{difficulty:t,type:i,size:n}):null}},788645:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r,j:()=>a});var n=i(785893);let l=RegExp("^[^A-Za-z\xc0-\xd6\xd8-\xf6A-Za-z\xc0-\xd6\xd8-\xf6︀-﹯﻽-￿]*[֑-߿יִ-﷽ﹰ-ﻼ]");function a(e){return l.test(e||"")?"rtl":"ltr"}function r({children:e,dir:t="auto"}){return(0,n.jsx)("div",{dir:t,children:e})}},854907:(e,t,i)=>{"use strict";function n(e){let t=[],i="";for(let n of e)if(i){let e=!!n.match(/\s/),l=!!i.match(/\s/);if(e===l)i+=n;else if(!l&&i.includes("-")){let e=0;for(let n=0;n<i.length;n+=1)"-"===i[n]&&(t.push(i.substring(e,n+1)),e=n+1);t.push(i.substring(e)),i=n}else t.push(i),i=n}else i=n;return i.length&&t.push(i),t}function l({boxHeight:e,boxWidth:t,font:i,startFontSize:l,text:a}){var r,o;if("undefined"==typeof document||!document.body)return{fontSize:l,lines:[]};let{body:s}=document,d=document.createElement("div");s.appendChild(d);let u=null==a?void 0:a.split(/\r?\n/g),c=l,p=(null===(r=i.fontOverrides)||void 0===r?void 0:r.letterSpacing)!=null?`${i.fontOverrides.letterSpacing}px`:void 0,h=(null===(o=i.fontOverrides)||void 0===o?void 0:o.lineHeight)||1.1,_={letterSpacing:p,lineHeight:String(h),fontFamily:i.fontFamily,fontSize:`${c}px`,position:"absolute",visibility:"hidden",width:`${t}px`};Object.assign(d.style,_);let m=document.createElement("div");for(m.style.display="inline",d.appendChild(m),(null!=u?u:[]).forEach((e,t)=>{let i=document.createElement("span");i.style.wordBreak="break-word",m.appendChild(i),i.appendChild(document.createTextNode(e)),t!==(null!=a?a:"").length-1&&i.appendChild(document.createElement("br"))});(m.offsetHeight>e||m.offsetWidth>t)&&c>0;)c-=1,d.style.fontSize=`${c}px`;return m.remove(),d.remove(),{fontSize:c,lines:c>0?function({font:e,fontSize:t,textList:i,width:l}){var a,r;if("undefined"==typeof document||!document.body||l<=0||t<=0)return[];let{body:o}=document,s=document.createElement("div");o.appendChild(s);let d=(null===(a=e.fontOverrides)||void 0===a?void 0:a.letterSpacing)!=null?`${e.fontOverrides.letterSpacing}px`:void 0,u=(null===(r=e.fontOverrides)||void 0===r?void 0:r.lineHeight)||1.1,c={letterSpacing:d,lineHeight:String(u),fontFamily:e.fontFamily,fontSize:`${t}px`,visibility:"hidden"};Object.assign(s.style,c);let p=document.createElement("div");p.style.display="inline",s.appendChild(p);let h=document.createTextNode("");p.appendChild(h);let _=[],m="",g=e=>{let t=e.trim();return h.textContent=t,{text:t,width:p.offsetWidth}},y=e=>{let t=!!e.match(/\s/),i=0===m.length;if(h.textContent=`${m}${e}`,p.offsetWidth>l){if(t)_.push(g(m)),m="";else if(i)for(let t of e)y(t);else _.push(g(m)),m="",y(e)}else m+=e};for(let e of null!=i?i:[]){0===e.length&&_.push(g(m));let t=n(e);t.forEach(e=>y(e)),m.length&&(_.push(g(m)),m="")}return p.remove(),s.remove(),_}({font:i,fontSize:c,textList:u,width:t}):[]}}function a(e){let t=window.getComputedStyle(e,null),i=parseFloat(t.getPropertyValue("height").replace("px","")),n=parseFloat(t.getPropertyValue("font-size").replace("px","")),l=parseFloat(t.getPropertyValue("line-height").replace("px",""));Number.isNaN(l)&&(l=1.2*n);let a=Math.ceil(i/l);return a}i.d(t,{KV:()=>l,Yd:()=>n,xW:()=>a})},829084:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(66743);function l(e){var t;return{defaultStyle:0,fontFamily:null!==(t=e.name)&&void 0!==t?t:"",fontGroup:n.gu,fontOverrides:{letterSpacing:e.letter_spacing,lineHeight:e.line_height},format:"truetype",id:e.id,styles:[{fontStyle:"",fontUrl:e.url,fontWeight:"normal",name:"normal"}]}}},380458:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(898781),a=i(785893);function r({onUpdate:e,showLabel:t=!0,value:i}){let r=(0,l.ZP)(),o=[{label:r._('Easy', 'storyboard.detailsList.field.difficulty', 'Easy difficulty rating for story pin'),value:String(1)},{label:r._('Medium', 'storyboard.detailsList.field.difficulty', 'Medium difficulty rating for story pin'),value:String(2)},{label:r._('Difficult', 'storyboard.detailsList.field.difficulty', 'Hard difficulty rating for story pin'),value:String(3)}];return(0,a.jsx)(n.kC,{alignItems:"stretch",justifyContent:"start",width:"100%",children:(0,a.jsx)(n.xu,{width:"100%",children:(0,a.jsx)(n.EI,{size:"lg",id:"servings",name:"servings",label:t?r._('Difficulty', 'storyboard.detailsList.field.difficulty', 'Header title for difficulty rating entry for story pin'):void 0,placeholder:r._('Pick a difficulty rating', 'storyboard.detailsList.field', 'Placeholder caption for difficulty rating input in story pin'),value:i,onChange:({value:t})=>{Number.isNaN(t)||e(t)},children:o.map(e=>(0,a.jsx)(n.EI.Option,{...e},e.label))})})})}},39847:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(667294),l=i(883119),a=i(898781),r=i(755742),o=i(785893);let s=e=>{let t;let i=e.split("\n");i.push("");let n=[],l=[];return i.forEach(e=>{let i=e.indexOf("•");i>-1?(t||(t=""),l.push(e.substring(i+1).trim())):((t||l.length>0)&&n.push({heading:t,items:l}),t=e,l=[])}),n},d=e=>{let t="";return e.forEach((i,n)=>{let{heading:l,items:a}=i;l&&(t+=l),a&&a.length>0&&(t+="\n• "+a.join("\n• ")),n<e.length-1&&(t+="\n\n")}),t},u=function({header:e,helperText:t,listBlocks:i,onUpdate:u,placeholderListBlocks:c}){let p=(0,a.ZP)(),h=d(c||[{heading:p._('What you\'ll need', 'storyboard.detailsList.placeholder', 'Placeholder text header for details list of story Pin'),items:[p._('Write a bullet list of tools, materials and anything else!', 'storyboard.detailsList.placeholder', 'Placeholder text instructions for details list of story Pin'),p._('Type it up or copy and paste.', 'storyboard.detailsList.placeholder', 'Placeholder text instructions for details list of story Pin')]}]),[_,m]=(0,n.useState)(i?d(i):"");return(0,o.jsx)(l.xu,{children:(0,o.jsx)(l.Kx,{id:"storyboard-details-list",helperText:t,label:e,onChange:({value:e})=>{m(e),u(s(e))},onBlur:()=>{""===_.trim()&&m("")},onKeyDown:({event:e,value:t})=>{let{keyCode:i,target:n,shiftKey:l}=e;if(n instanceof HTMLTextAreaElement){let{selectionStart:a,selectionEnd:o}=n;if(a===o){let o=0,d=0,c="";if(i===r.Z.ENTER?"\n• "===t.substring(a-3,a)&&("\n"===t.substring(a,a+1)||a===t.length)?(o=-3,c="\n"):l||"\n"===t.substring(a-1,a)||(o=0,c="\n• "):(i===r.Z.BACKSPACE||i===r.Z.DELETE)&&("\n• "===t.substring(a-3,a)?o=-3:"\n•"===t.substring(a-2,a)?o=-2:"\n"===t.substring(a-1,a)&&"•"===t.substring(a,a+1)&&(o=-1,d=1)),0!==o||0!==d||""!==c){let i=t.substring(0,a+o)+c+t.substring(a+d);m(i);let l=a+o+c.length;setTimeout(()=>{n.selectionStart=l,n.selectionEnd=l},10),u(s(i)),e.preventDefault()}}}},placeholder:h,rows:7,value:_})})}},249472:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(898781),a=i(349700),r=i(785893);function o({onUpdate:e,showLabel:t=!0,value:i}){let o=(0,l.ZP)(),s=[];for(let e=1;e<=50;e+=1)s.push({value:String(e),label:(0,a.nk)(o.ngettext('{{ servings }} serving', '{{ servings }} servings', e, 'storyboard.detailsList.field.servings', 'Option for number of servings a story pin recipe will provide'),{servings:e}).join("")});return(0,r.jsx)(n.kC,{alignItems:"stretch",justifyContent:"start",width:"100%",children:(0,r.jsx)(n.xu,{width:"100%",position:"relative",children:(0,r.jsx)(n.EI,{size:"lg",id:"servings",name:"servings",label:t?o._('Servings', 'storyboard.detailsList.field.servings', 'Header title for serving count entry for story pin recipe'):void 0,placeholder:o._('Pick a serving size', 'storyboard.detailsList.recipe', 'Placeholder caption for servings count input in story pin recipe'),value:i,onChange:({value:t})=>{Number.isNaN(t)||e(t)},children:s.map(e=>(0,r.jsx)(n.EI.Option,{...e},e.label))})})})}},234203:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(667294),l=i(883119),a=i(898781),r=i(349700),o=i(785893);function s({header:e,onUpdate:t,value:i}){let s=(0,a.ZP)(),[d,u]=(0,n.useState)(i?String(Math.floor(Number.parseInt(i,10)/60)):"0"),[c,p]=(0,n.useState)(i?String(Number.parseInt(i,10)%60):"0"),h=(e,i)=>{t(String(Number.parseInt(i,10)+60*Number.parseInt(e,10)))},_=[];for(let e=0;e<=9;e+=1)_.push({value:String(e),label:(0,r.nk)(s.ngettext('{{ hours }} hour', '{{ hours }} hours', e, 'storyboard.detailsList.recipe', 'Option for number of hours a story pin recipe will take'),{hours:e}).join("")});let m=[];for(let e=0;e<60;e+=1)m.push({value:String(e),label:(0,r.nk)(s.ngettext('{{ minutes }} minute', '{{ minutes }} minutes', e, 'storyboard.detailsList.recipe', 'Option for number of minutes a story pin recipe will take'),{minutes:e}).join("")});return(0,o.jsxs)(l.kC,{alignItems:"end",justifyContent:"start",width:"100%",children:[(0,o.jsx)(l.xu,{width:"50%",marginEnd:2,children:(0,o.jsx)(l.EI,{size:"lg",id:"hours",name:"hours",label:e,placeholder:s._('Hours', 'storyboard.detailsList.recipe', 'Placeholder caption for hours input in story pin recipe cooktime'),value:d,onChange:({value:e})=>{Number.isNaN(e)||(u(e),h(e,c))},children:_.map(e=>(0,o.jsx)(l.EI.Option,{...e},e.label))})}),(0,o.jsx)(l.xu,{width:"50%",marginStart:2,children:(0,o.jsx)(l.EI,{size:"lg",id:"minutes",name:"minutes",placeholder:s._('Minutes', 'storyboard.detailsList.recipe', 'Placeholder caption for minutes input in story pin recipe cooktime'),value:c,onChange:({value:e})=>{Number.isNaN(e)||(p(e),h(d,e))},children:m.map(e=>(0,o.jsx)(l.EI.Option,{...e},e.label))})})]})}},259608:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(112690),a=i(898781),r=i(785893);let o=({onSelect:e,selectedTemplate:t,size:i="md",viewParameter:o})=>{let s=(0,a.ZP)(),d=(0,l.Z)(),u=t=>{switch(e(t),t){case"none":break;case"recipe":d({event_type:102,view_type:437,view_parameter:o,element:12356});break;case"diy":d({event_type:102,view_type:437,view_parameter:o,element:12357});break;case"blank":d({event_type:102,view_type:437,view_parameter:o,element:12358})}};return(0,r.jsx)(n.xu,{marginBottom:6,children:(0,r.jsxs)(n.FX,{id:"storyboard_metadata_list_selector",legend:s._('Storyboard Metadata Options List', 'Storyboard.DetailsList.OptionsList', 'Legend to a11y of Storyboard Metadata Options List'),legendDisplay:"hidden",direction:"row",children:[(0,r.jsx)(n.FX.RadioButton,{id:"ingredients",checked:"recipe"===t,label:s._('Ingredients', 'storyboard.detailsList.selection', 'Selection for adding details to story Pin'),onChange:()=>{u("recipe")},size:i,value:"ingredients"}),(0,r.jsx)(n.FX.RadioButton,{id:"supplies",checked:"diy"===t,label:s._('Supplies', 'storyboard.detailsList.selection', 'Selection for adding details to story Pin'),onChange:()=>{u("diy")},size:i,value:"supplies"}),(0,r.jsx)(n.FX.RadioButton,{id:"notes",checked:"blank"===t,label:s._('Notes', 'storyboard.detailsList.selection', 'Selection for adding details to story Pin'),onChange:()=>{u("blank")},size:i,value:"notes"}),(0,r.jsx)(n.FX.RadioButton,{id:"noSelection",checked:"none"===t,label:s._('None', 'storyboard.detailsList.none', 'Selection for adding details to story Pin'),onChange:()=>{u("none")},size:i,value:"none"})]})})}},296342:(e,t,i)=>{"use strict";i.d(t,{Af:()=>u,Ei:()=>s,II:()=>b,Lh:()=>y,U:()=>m,UC:()=>c,Zy:()=>o,dD:()=>a,er:()=>g,hb:()=>f,in:()=>d,j7:()=>v,kX:()=>h,me:()=>p,mx:()=>x,n5:()=>r,q8:()=>_,xH:()=>l});var n=i(224496);let l=1048576,a=3,r=20,o=3,s=10,d=50,u=10,c=720,p=1080,h=1200,_=375,m=_/n.ap,g=1200,y="#FFFFFF",v={blockStyle:{x_coord:4.27,y_coord:46.82,width:91.46,height:26.35,corner_radius:0},style:{font_id:6,hex_color:"#FFFFFF",font_size:36,alignment:1},text:"",type:"story_pin_paragraph_block"},f=420,x=325,b=768},251557:(e,t,i)=>{"use strict";i.d(t,{F:()=>a,_:()=>l});let n=[0,2,1];function l(e){let{list_blocks:t,key_value_blocks:i}=e,n=t&&t.length>0?t.map(e=>{let{heading:t,blocks:i}=e,n=(null!=i?i:[]).map(e=>e.text?e.text:"");return{heading:t,items:n}}):[],l=(i||[]).reduce((e,{category_type:t,value:i})=>(e[null!=t?t:""]=i,e),{});return{keyValueBlocks:l,listBlocks:n}}function a(e){let{keyValueBlocks:t,listBlocks:i}=e;if(!t&&!i)return null;let l=i?i.map(e=>{let{heading:t,items:i}=e,n=(i||[]).map(e=>({text:e,type:9}));return{blocks:n,heading:t,type:7}}):[],a=t?Object.keys(t).map(e=>{let i=t[e],l=Number.parseInt(e,10),a=n.indexOf(l)>-1&&i===Number.parseInt(i,10).toString();return i&&a?{value:i,category_type:l,type:8}:null}):[];return{list_blocks:l,key_value_blocks:a.filter(Boolean)}}},540923:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(667294),l=i(883119),a=i(898781),r=i(882801),o=i(785893);let s=e=>0===e?0:2,d=({children:e,dangerouslySetInlineStyle:t,marginTop:i})=>(0,o.jsx)(l.xu,{dangerouslySetInlineStyle:t,"data-test-id":"structured-description",marginTop:i,children:e}),u=({content:e,order:t,type:i})=>{if(!e)return null;let n=i===r.X.HEADER,a=[r.X.HEADER,r.X.BOLD].includes(i),u=t>0&&n?4:s(t);return(0,o.jsx)(d,{marginTop:u,children:(0,o.jsx)(l.xv,{size:"200",weight:a?"bold":"normal",children:e})})},c=({content:e,order:t})=>e?(0,o.jsx)(d,{marginTop:s(t),children:e}):null,p=({content:e,order:t})=>Array.isArray(e)&&0!==e.length?(0,o.jsx)(d,{marginTop:s(t),children:e.map(e=>(0,o.jsxs)(l.xu,{display:"flex",direction:"row",marginStart:1,marginTop:1,children:[(0,o.jsx)(l.xv,{size:"200",weight:"bold",inline:!0,children:"\xb7"}),(0,o.jsx)(l.xu,{marginStart:1,children:(0,o.jsx)(l.xv,{size:"200",children:e})})]},e))}):null,h=({accessibilityLabel:e,content:t,order:i})=>t&&"object"==typeof t?(0,o.jsx)(d,{dangerouslySetInlineStyle:{__style:{borderTop:"1px solid #ddd",borderBottom:"1px solid #ddd"}},marginTop:s(i),children:(0,o.jsx)(l.iA,{accessibilityLabel:e,children:(0,o.jsx)(l.iA.Body,{children:Object.entries(t).map(([e,t],i)=>(0,o.jsxs)(l.iA.Row,{children:[(0,o.jsx)(l.iA.Cell,{children:(0,o.jsx)(l.xv,{size:"100",weight:"bold",children:e})}),(0,o.jsx)(l.iA.Cell,{children:(0,o.jsx)(l.xv,{size:"100",children:String(t)})})]},i))})})}):null,_=({accessibilityLabel:e,content:t,order:i})=>{if(!Array.isArray(t)||t.length<2)return null;let n=t[0],a=t.slice(1);return(0,o.jsx)(d,{dangerouslySetInlineStyle:{__style:{borderTop:"1px solid #ddd",borderBottom:"1px solid #ddd"}},marginTop:s(i),children:(0,o.jsxs)(l.iA,{accessibilityLabel:e,children:[(0,o.jsx)(l.iA.Header,{children:(0,o.jsx)(l.iA.Row,{children:n.map((e,t)=>(0,o.jsx)(l.iA.HeaderCell,{children:(0,o.jsx)(l.xv,{size:"100",weight:"bold",children:e})},t))})}),(0,o.jsx)(l.iA.Body,{children:a.map((e,t)=>(0,o.jsx)(l.iA.Row,{children:e.map((e,t)=>(0,o.jsx)(l.iA.Cell,{children:(0,o.jsx)(l.xv,{size:"100",children:e})},t))},t))})]})})},m=e=>{let t=(0,a.ZP)();switch(e.type){case r.X.POINTS:return(0,o.jsx)(p,{...e});case r.X.SPECS:return(0,o.jsx)(h,{accessibilityLabel:t._('Specification view of description', 'webapp.app.www-unified.components.structuredDescription.StructuredDescription.StructuredSpecs', 'Content represented in specification format'),...e});case r.X.TABLE:return(0,o.jsx)(_,{accessibilityLabel:t._('Table view of description', 'webapp.app.www-unified.components.structuredDescription.StructuredDescription.StructuredTable', 'Content represented in table format'),...e});case r.X.ELEMENT:return(0,o.jsx)(c,{...e});default:return(0,o.jsx)(u,{...e})}};function g({descriptions:e,onLoad:t}){return((0,n.useEffect)(()=>{"function"==typeof t&&t()},[t]),0===e.length)?null:e.map(({content:e,type:t},i)=>(0,o.jsx)(m,{content:e,order:i,type:t},i))}},219413:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n,l=i(667294);i(167912);var a=i(681669),r=i(882801);let o=void 0!==n?n:n=i(721538);function s(e){let{data:t}=(0,a.HF)(o,e,{type:"pin",useGraphQLAdapter:e=>(0,l.useMemo)(()=>{var t;return(t=e.formattedCloseupDescription)&&Array.isArray(t.components)?t.components.filter(e=>e.type).map(e=>{var t,i,n,l;let a=null!==(t=e.type)&&void 0!==t?t:"";return a===r.X.SPECS?{type:a,content:null===(l=e.specsContent)||void 0===l?void 0:l.map(e=>({key:e.key,value:e.value}))}:{type:a,content:null!==(i=null!==(n=e.stringContent)&&void 0!==n?n:e.pointsContent)&&void 0!==i?i:e.tableContent}}):[]},[e.formattedCloseupDescription]),useLegacyAdapter:e=>{var t;let i=null===(t=e.formatted_description)||void 0===t?void 0:t.components;return Array.isArray(i)?i:[]}});return null!=t?t:[]}},882801:(e,t,i)=>{"use strict";i.d(t,{X:()=>n,j:()=>l});let n={BOLD:"formatted_description_bold_component",ELEMENT:"formatted_description_element_component",HEADER:"formatted_description_header_component",PARAGRAPH:"formatted_description_paragraph_component",POINTS:"formatted_description_points_component",SPECS:"formatted_description_specs_component",TABLE:"formatted_description_table_component"},l=({components:e,pinDescription:t})=>e&&0!==e.length?e:[{content:t,type:n.PARAGRAPH}]},375559:(e,t,i)=>{"use strict";i.d(t,{JJ:()=>n,N3:()=>a,zu:()=>l});let n=["TR","WB"],l=["BR","CG","HP","HR","JH","MP","RJ","UK","UP"],a=[...n,...l,"AP","TG"]},201155:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(883119),l=i(499128),a=i(898781),r=i(784590),o=i(50286),s=i(785893);function d({ideaPinImages:e}){let t=e.map((e,t)=>{var i,l,a;return(0,s.jsx)(n.xu,{height:48,width:28,color:"default",borderStyle:"sm",overflow:"hidden",rounding:2,dangerouslySetInlineStyle:{__style:{borderColor:"white",marginInlineEnd:"-17px",WebkitMaskImage:"-webkit-radial-gradient(white, black)",zIndex:t}},children:(0,s.jsx)(n.Ee,{alt:"",src:null!==(i=null==e?void 0:e.url)&&void 0!==i?i:"",color:"#696969",fit:"cover",naturalHeight:null!==(l=null==e?void 0:e.height)&&void 0!==l?l:1,naturalWidth:null!==(a=null==e?void 0:e.width)&&void 0!==a?a:1})},t)});return(0,s.jsx)(n.kC,{justifyContent:"center",children:(0,s.jsx)(n.kC,{justifyContent:"start",width:{1:28,2:40,3:48}[e.length],children:t})})}function u({handleHide:e,text:t,userId:i,href:u,imageUrl:c}){let p=(0,a.ZP)(),h=(0,o.HG)(),_=(0,r.Z)({name:"UserStoryPinsFeedResource",options:{data:{filter_version:2,public_only:!0},field_set_key:"partner_grid_item",user_id:i}}),m=Array.isArray(t)?t.join(" "):t;if(0===(_.data||[]).length)return(0,s.jsx)(l.ZP,{duration:5e3,onHide:e,text:m,href:u,thumbnail:c?{image:(0,s.jsx)(n.Ee,{alt:p._('Image of who you followed', 'userFollowingToast.thumbnail.userImage', 'Profile thumbnail of the user you followed'),fit:"cover",naturalHeight:1,naturalWidth:1,src:c})}:void 0});let g=(_.data||[]).slice(0,3).map(e=>{var t;return null===(t=e.images)||void 0===t?void 0:t[h?"236x":"170x"]}),y=(0,s.jsx)(d,{ideaPinImages:g});return(0,s.jsx)(l.ZP,{href:u,duration:5e3,onHide:e,_dangerouslySetThumbnail:y,text:m})}},258430:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(130460),a=i(785893);function r({boardId:e}){var t;let i=(0,l.gC)()(e),r=null!=i&&i.images&&i.images["170x"]?i.images["170x"][0]:void 0;return e&&r?(0,a.jsx)(n.Ee,{alt:"Pin image",color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(t=r.url)&&void 0!==t?t:""}):null}},759929:(e,t,i)=>{"use strict";i.d(t,{k:()=>r,w:()=>a});var n=i(883119),l=i(379764);let a=2e3,r=new n.H3([l.Z])},862193:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n,l=i(667294),a=i(167912);let r=void 0!==n?n:n=i(434444),o=e=>{var t;let i=(0,a.useFragment)(r,e),n=null==i?void 0:null===(t=i.pinJoin)||void 0===t?void 0:t.annotationsWithLinksArray,o=(0,l.useMemo)(()=>null==n?void 0:n.reduce((e,{name:t,url:i})=>t?{...e,[t]:{name:t,url:i}}:e,{}),[n]);return o}},109892:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(702664),l=i(782677),a=i(214494),r=i(332611),o=i(886858),s=i(248327),d=i(414327);function u(){let e=(0,n.useDispatch)(),t=(0,n.useSelector)(e=>e.resources);return async function({boardCreateOptions:i,deprecatedSchemaForNormalization:n}){var u;let c=await a.Z.create("BoardResource",i).callCreate(),p=c.resource_response.data,h=n?(0,l.Fv)(p,n):void 0;e((0,d.XM)("BoardResource",i,c,h)),e((0,r.fO)({event_type:20})),null!==(u=p.owner)&&void 0!==u&&u.id&&e((0,s.b)("UserResource",{options:{user_id:p.owner.id,field_set_key:"save_behavior"}}));let _=t.BoardsResource||{},m=t.BoardsFeedResource||{};return Object.keys(_).forEach(t=>{var i;let n=(0,o.k)(t);n.username===(null===(i=p.owner)||void 0===i?void 0:i.username)&&e((0,d.jB)("BoardsResource",t))}),Object.keys(m).forEach(t=>{var i;let n=(0,o.k)(t);n.username===(null===(i=p.owner)||void 0===i?void 0:i.username)&&e((0,d.jB)("BoardsFeedResource",t))}),p}}},986926:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n,l=i(667294),a=i(167912);let r=void 0!==n?n:n=i(982182),o=e=>{let t=(0,a.useFragment)(r,e),i=null==t?void 0:t.reactionCountsData,n=(0,l.useMemo)(()=>i?i.reduce((e,t)=>{var i,n;return{...e,[String(null!==(i=t.reactionType)&&void 0!==i?i:0)]:null!==(n=t.reactionCount)&&void 0!==n?n:0}},{}):i,[i]);return n}},817767:(e,t,i)=>{"use strict";i.d(t,{Z:()=>S});var n,l=i(702664);i(167912);var a=i(883119),r=i(112690),o=i(357998),s=i(898781),d=i(667679),u=i(867820),c=i(52022),p=i(19121),h=i(512176),_=i(815613),m=i(461773),g=i(90326),y=i(892819),v=i(349700),f=i(780280),x=i(785893);let b=({followerCount:e})=>{let t=(0,s.ZP)(),i=(0,y.Z)(),{locale:n}=(0,f.B)();return(0,x.jsx)(a.xv,{children:(0,v.nk)(t.ngettext('{{followers}} follower', '{{followers}} followers', e, 'pinPage.attribution.followersCount', 'Count of a user\'s followers'),{followers:i(n,e,{shortform:!0,shortform_maximum_fraction_digits:0})})})},P=void 0!==n?n:n=i(951193),w=e=>({});function S(e){let t=(0,p.Z)(),i=t.isAuth&&t.id,n=t.isAuth,y=(0,s.ZP)(),v=(0,d.Z)(),f=(0,r.Z)(),S=(0,c.Z)(),k=(0,l.useDispatch)(),j=e=>k((0,m.ZN)(e)),A=e=>k((0,m.fv)(e)),C=e=>k((0,g.h2)(e,f)),{avatarSize:D,detailText:E,hideButtons:I,blockedByMe:T,explicitlyFollowedByMe:F,followerCount:z,fullName:R,id:L,imageLargeUrl:M,imageMediumUrl:Z,imageSmallUrl:B,isEligibleForPdp:O,isVerifiedMerchant:N,verifiedIdentityVerified:K,username:U,isCurrentUser:H,isOnCloseup:V,isImagePinForUnauthOnTablet:G,pinId:W,pinKey:$,shouldNavigateToProfile:q=!0,textColor:Y,type:X,viewParameter:Q,viewType:J,unauthFollow:ee,activateLexFollowExp:et,clientTrackingParams:ei}=e,{data:en}=(0,o.Q)(P,$,{useLegacyAdapter:w}),el=(W&&W.length,()=>{n?(j(L),f({event_type:45,view_type:3,view_parameter:156,view_data:{isCurrentUser:H,viewObjectId:W,viewObjectIdStr:W},object_id_str:L,clientTrackingParams:ei})):v({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:"click_follow",desktopOptions:{modalType:"login"}})}),ea=()=>{A(L),f({event_type:46,view_type:3,view_parameter:156,object_id_str:L,clientTrackingParams:ei})},er=()=>(0,x.jsx)(_.Z,{disableLog:!0,followEventType:45,id:L,isFollowed:F||!1,isSecondaryButton:!0,isUserFollowButton:!0,isUserMe:i===L,onFollow:()=>V?el():j(L),onUnfollow:()=>V?ea():A(L),pinKey:en,size:"md",unfollowEventType:46,viewParameter:Q,viewType:J,clientTrackingParams:ei}),eo=()=>{if(T)return(0,x.jsx)(a.zx,{fullWidth:!0,color:"gray",onClick:()=>C(L),size:"md",text:y._('Unblock', ' - ', ' -- ')});if(n)return er();if(et){if(!et().group.includes("hide_follow")&&ee)return er()}else if(ee)return er();return null},es=e=>(0,x.jsx)(a.xu,{"data-test-id":"avatar-image",children:(0,x.jsx)(a.HE,{accessibilityLabel:y._('User`s avatar', 'User`s avatar', 'User`s avatar'),onClick:()=>{S({action:"click",item:"avatar-image"})},collaborators:[{name:null!=R?R:"",src:M||Z||B||void 0}],size:(e||{}).size})}),ed=G?"calc(100% - 48px)":void 0,eu=N||K,ec=(0,x.jsxs)(a.kC,{alignItems:"center",flex:"shrink",justifyContent:"start",children:[(0,x.jsx)(a.xu,{flex:"none",marginEnd:2,children:es({size:D||"md"})}),(0,x.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",maxWidth:ed,children:[(0,x.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",children:[!n&&O&&!eu&&(0,x.jsx)(a.xu,{marginEnd:1,children:(0,x.jsx)(a.xv,{children:y._('Saved by', 'Context on user rep', 'userRep.saveContext')})}),(0,x.jsx)(a.xu,{"data-test-id":"username",children:(0,x.jsx)(a.iP,{onTap:()=>{S({action:"click",item:"username"})},children:(0,x.jsx)(a.xv,{color:Y||"default",lineClamp:G?1:void 0,weight:"bold",children:R})})}),eu&&(0,x.jsx)(a.xu,{marginStart:1,paddingY:1,children:(0,x.jsx)(h.Z,{showVerifiedIdentity:!N,size:"sm"})})]}),(0,x.jsx)(a.xv,{color:Y||"default",lineClamp:G?1:void 0,children:E}),!!z&&(0,x.jsx)(a.xu,{"data-test-id":"user-follower-count",children:(0,x.jsx)(a.iP,{onTap:()=>{S({action:"click",item:"user-follower-count"})},children:(0,x.jsx)(b,{followerCount:z})})})]})]}),ep="row"===X?(0,x.jsxs)(a.kC,{alignItems:"center",justifyContent:"between",children:[ec,!I&&(0,x.jsx)(a.xu,{flex:"none",marginStart:2,children:eo()})]}):(0,x.jsxs)(a.xu,{maxWidth:ed,padding:2,children:[es(),(0,x.jsxs)(a.xu,{display:"flex",paddingY:2,children:[(0,x.jsx)(a.xv,{align:"center",size:"200",lineClamp:1,weight:"bold",children:R}),eu&&(0,x.jsx)(a.xu,{marginStart:1,paddingY:1,children:(0,x.jsx)(h.Z,{showVerifiedIdentity:!N,size:"sm"})})]}),!I&&eo()]}),eh=(0,x.jsxs)(a.xu,{alignItems:"center",display:"flex",justifyContent:"between",overflow:"hidden",dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:[(0,x.jsx)(a.Tg,{onTap:()=>{n||((0,u.NC)("click_pin_closeup_profile"),S({action:"click",item:"user-rep"}))},tapStyle:"compress",rounding:2,href:`/${encodeURIComponent(U)}/`,children:ec}),!I&&(0,x.jsx)(a.xu,{flex:"none",marginStart:2,children:eo()})]});return(0,x.jsx)(a.xu,{"data-test-id":"user-rep",width:"100%",children:q?eh:ep})}},926749:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>P});var n=i(667294),l=i(883119),a=i(407043),r=i(766935),o=i(722767),s=i(121630),d=i(944546),u=i(158103),c=i(785893);function p(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let h=[0,.25,.5,.75,.95,.97],_=[0,.5,.8,.99,1],m="-64px 0px 0px 0px",g={rootMargin:m,threshold:_},y={rootMargin:m,threshold:d.i},v=Object.freeze({LOADING:0,PLAYING:1,PAUSED:2,STALLING:3});function f(){return new Date().getTime()}function x(e){return!!e.volume&&e.volume>0}class b extends n.Component{constructor(e){super(e),p(this,"videoWrapperRef",(0,n.createRef)()),p(this,"handleWindowResize",()=>{if(!this.fullscreen){let e=this.getDimensions(),{height:t,width:i}=this.currentInterval;e.height!==t||e.width!==i?this.startNewInterval(e):(this.currentInterval.windowHeight=e.windowHeight,this.currentInterval.windowWidth=e.windowWidth)}}),p(this,"handlePlayheadDown",({event:e})=>{let{onPlayheadDown:t}=this.props;this.setState({seeking:!0}),t&&t({event:e})}),p(this,"handlePlayheadUp",({event:e})=>{let{onPlayheadUp:t}=this.props;this.setState({seeking:!1}),t&&t({event:e})}),p(this,"handleLoop",()=>{this.videoTime=0}),p(this,"handleTimeChange",e=>{let{seeking:t,ready:i}=this.state;if(!this.currentInterval.videoDuration)return;let n=1e3*e.time,l=function(e,t,i,n){if(e>t||i<=0)return null;for(let l of n){let n=l*i;if(e<=n&&t>n)return l}return null}(this.videoTime,n,this.currentInterval.videoDuration,h);if("number"==typeof l&&this.props.playing&&!t&&i){let e=f();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:Math.floor(4*l),quartilePercentValue:l})}this.videoTime=n,this.props.onTimeChange&&this.props.onTimeChange(e)}),p(this,"handleDurationChange",e=>{this.currentInterval.videoDuration=1e3*e.duration,this.props.onDurationChange&&this.props.onDurationChange(e)}),p(this,"handleReady",e=>{let{ready:t}=this.state;t||this.setState({ready:!0}),this.props.onReady&&this.props.onReady(e)}),p(this,"handleEnded",e=>{this.logFourthQuartileEvent(),this.props.loop&&(this.startNewInterval(),this.currentInterval.videoStartTime=0),this.props.onEnded&&this.props.onEnded(e)}),p(this,"handleVisibilityChange",e=>{if(0===e.length)return;let t=e.slice(-1)[0],i=function(e,t){for(let i=0;i<t.length;i+=1){let n=t[i],l=t[i+1];if(null==l||n<=e&&e<l)return n}return null}(Number.parseFloat(t.intersectionRatio.toFixed(2)),_);"number"==typeof i&&(this.visible=i>=.5),null==i||i===this.currentInterval.viewability||this.fullscreen||(0===i?this.startNewInterval({viewability:i,playbackState:v.PAUSED}):this.startNewInterval({viewability:i}))}),p(this,"handleFullscreenChange",({event:e,fullscreen:t})=>{if(t){let{height:e,width:t}=window.screen;this.startNewInterval({height:e,width:t,windowHeight:e,windowWidth:t})}else t||this.startNewInterval(this.getDimensions());this.fullscreen=t,this.props.onFullscreenChange&&this.props.onFullscreenChange({event:e,fullscreen:t})}),p(this,"handleClose",()=>{this.startNewInterval()}),p(this,"handleContextMenu",e=>{e.preventDefault()}),this.state={ready:!1,seeking:!1};let t=f();this.handleWindowResize=(0,r.Z)(this.handleWindowResize,1e3),this.currentInterval={videoDuration:0,startTime:t,endTime:t,videoStartTime:0,videoEndTime:0,isAudible:x(e),playbackState:this.getPlaybackState(e,this.state),quartile:-1,quartilePercentValue:0,height:null,width:null,windowHeight:null,windowWidth:null,viewability:null},this.videoTime=0,this.fullscreen=!1,this.visible=null}componentDidMount(){this.currentInterval={...this.currentInterval,...this.getDimensions()},window.addEventListener("resize",this.handleWindowResize),window.addEventListener("beforeunload",this.handleClose)}componentDidUpdate(e,t){let i={};x(e)&&!x(this.props)?i.isAudible=!1:!x(e)&&x(this.props)&&(i.isAudible=!0);let n=this.getPlaybackState(this.props,this.state);this.getPlaybackState(e,t)!==n&&(i.playbackState=n),Object.keys(i).length>0&&this.startNewInterval(i)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("beforeunload",this.handleClose),this.startNewInterval()}getPlaybackState(e,t){return t.ready?e.playing&&!t.seeking?v.PLAYING:v.PAUSED:v.LOADING}getDimensions(){let e,t;if(this.videoWrapperRef.current){let i=this.videoWrapperRef.current;i.clientHeight&&i.clientWidth&&(e=i.clientHeight,t=i.clientWidth)}return{height:e,width:t,windowHeight:window.innerHeight,windowWidth:window.innerWidth}}logVideoEvent(e,t){let{closeupStoryPinViewability:i,contextLogData:n,logContextEvent:l,playing:a,surface:r}=this.props,{seeking:o}=this.state,{height:s,width:d,windowHeight:u,windowWidth:c,viewability:p,...h}=t;if(null!=s&&null!=d&&null!=u&&null!=c&&null!=p){let t={...h,gridAutoplay:6904===e&&a&&!o&&("AuthHomefeed"===r||"SearchItem"===r||"RelatedPinGrid"===r),height:s,width:d,windowHeight:u,windowWidth:c,viewability:i||p};l({event_type:e,...function(e){let{eventData:{videoEvent:{gridAutoplay:t,videoDuration:i,startTime:n,endTime:l,videoStartTime:a,videoEndTime:r,isAudible:o,height:s,width:d,playbackState:u,quartile:c,quartilePercentValue:p,windowHeight:h,windowWidth:_,viewability:m}},component:g,objectId:y,view:v,viewParameter:f,...x}=e;return{component:g,object_id_str:y,view_type:v,view_parameter:f,aux_data:{...x},event_data:{videoEventData:{gridAutoplay:t,videoDuration:i,time:n,endTime:l,videoTime:a,endVideoTime:r,isAudible:o,height:s,width:d,playbackState:u,quartile:c,quartilePercentValue:p,windowHeight:h,windowWidth:_,viewability:m}}}}({...n,view:this.fullscreen?108:n.view,eventData:{videoEvent:t}})})}}logFourthQuartileEvent(){let e=f();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:4,quartilePercentValue:1})}startNewInterval(e){let t=f();this.logVideoEvent(6904,{...this.currentInterval,endTime:t,videoEndTime:this.videoTime}),this.currentInterval={...this.currentInterval,...e,startTime:t,videoStartTime:this.videoTime,endTime:-1,videoEndTime:-1}}render(){let{aspectRatio:e,backgroundColor:t,captions:i,contextLogData:n,controls:a,cropHeight:r,hlsConfig:d,inAdsDesktopVideoExperiment:p,isAutoPlay:h,loop:_,objectFit:m,onLoadedChange:v,onControlsPause:f,onControlsPlay:x,onSeek:b,onVolumeChange:P,playbackRate:w,playing:S,playsInline:k,poster:j,preload:A,rootMargin:C,src:D,surface:E,videoStartTime:I,volume:T}=this.props,{seeking:F}=this.state,z=p?y:g;return void 0!==C&&(z.rootMargin=E?(0,s.e)(E):C),(0,c.jsx)(o.Z,{options:z,onVisibilityChange:this.handleVisibilityChange,children:(0,c.jsx)(l.xu,{ref:this.videoWrapperRef,onContextMenu:this.handleContextMenu,dangerouslySetInlineStyle:{__style:r?{display:"flex",alignItems:"center",height:`${r}px`}:{}},children:(0,c.jsx)(u.default,{aspectRatio:r?236/r:e,backgroundColor:t,captions:i,contextLogData:n,controls:a,hlsConfig:d,isAutoPlay:h,loop:_,objectFit:m,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onLoadedChange:v,onLoop:this.handleLoop,onControlsPause:f,onControlsPlay:x,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onSeek:b,onTimeChange:this.handleTimeChange,onVolumeChange:P,playbackRate:w,playing:!F&&S,onPlay:()=>{},onPlayError:()=>{},playsInline:k,poster:j,preload:A,src:D,videoStartTime:I,visible:this.visible,volume:T})})})}}function P(e){let{logContextEvent:t}=(0,a.v)();return(0,c.jsx)(b,{...e,logContextEvent:t})}p(b,"defaultProps",l.nk.defaultProps)},124159:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n,l=i(616550),a=i(780280),r=i(50286);i(167912);var o=i(156491),s=i(142725),d=i(681669),u=i(682273),c=i(785893);let p=void 0!==n?n:n=i(990354);function h({graphqlRef:e}){let{id:t}=(0,l.useParams)(),{data:i}=(0,d.sr)(p,e?{type:"graphqlRef",data:e}:{type:"deprecated",data:null!=t?t:""},{type:"pin",useLegacyAdapter:e=>({isEligibleForPdp:e.is_eligible_for_pdp})});return i?(0,c.jsx)(u.Z,{type:"authDesktop",children:i.isEligibleForPdp?(0,c.jsx)(s.Z,{showRepin:!0}):(0,c.jsx)(o.ZP,{showRepin:!0})}):null}var _=i(160865);let m=function(){let{id:e}=(0,l.useParams)(),t=(0,r.ZP)(),{isAuthenticated:i}=(0,a.B)();return i?"desktop"===t?(0,c.jsx)(h,{graphqlRef:null}):(0,c.jsx)(_.Z,{}):(0,c.jsx)(l.Redirect,{to:`/pin/${null!=e?e:""}/`})}},311716:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/commentHelpful-99007872.svg"},600636:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/commentHelpfulOutline-7f59f782.svg"},559113:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/commentLoved-7942dc4f.svg"},133758:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/commentLovedOutline-97205606.svg"},184508:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/goodIdeaAnimated-5de05cb7.svg"},147916:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/goodIdeaGrid-e3e37a7f.svg"},167361:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/goodIdeaStatic-855554b0.svg"},697031:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/hahaAnimated-df9cb2fa.svg"},404247:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/hahaGrid-7945c718.svg"},836866:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/hahaStatic-28ee6e1e.svg"},620668:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/loveAnimated-ccd5b808.svg"},86119:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/loveGrid-1ec7b8e4.svg"},753873:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/loveStatic-31fc2a99.svg"},873774:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/reactionHeartOutline-24ab75a6.svg"},479197:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/reactionHeartOutlineWhite-61cdbdb7.svg"},110099:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/thanksAnimated-6831daf3.svg"},244892:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/thanksGrid-b3cf8b93.svg"},485846:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/thanksStatic-51f19932.svg"},461471:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/wowAnimated-b776449f.svg"},662502:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/wowGrid-9e62e75a.svg"},239784:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/wowStatic-d966adbd.svg"},373897:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n},e.exports.__esModule=!0,e.exports.default=e.exports},163405:(e,t,i)=>{var n=i(373897);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},366115:e=>{e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},474704:(e,t,i)=>{var n=i(386116);e.exports=function(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=n(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var l=0,a=function(){};return{s:a,n:function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw r}}}},e.exports.__esModule=!0,e.exports.default=e.exports},238416:(e,t,i)=>{var n=i(464062);e.exports=function(e,t,i){return(t=n(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},310434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},107867:(e,t,i)=>{var n=i(206015);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},564836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},379498:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},742281:e=>{e.exports=function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},242122:(e,t,i)=>{var n=i(238416);function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}e.exports=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e},e.exports.__esModule=!0,e.exports.default=e.exports},7071:e=>{e.exports=function(e,t){if(null==e)return{};var i,n,l={},a=Object.keys(e);for(n=0;n<a.length;n++)i=a[n],t.indexOf(i)>=0||(l[i]=e[i]);return l},e.exports.__esModule=!0,e.exports.default=e.exports},206015:e=>{function t(i,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(i,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},600861:(e,t,i)=>{var n=i(163405),l=i(379498),a=i(386116),r=i(742281);e.exports=function(e){return n(e)||l(e)||a(e)||r()},e.exports.__esModule=!0,e.exports.default=e.exports},295036:(e,t,i)=>{var n=i(918698).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var l=i.call(e,t||"default");if("object"!=n(l))return l;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},464062:(e,t,i)=>{var n=i(918698).default,l=i(295036);e.exports=function(e){var t=l(e,"string");return"symbol"==n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},918698:e=>{function t(i){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},386116:(e,t,i)=>{var n=i(373897);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(e,t)}},e.exports.__esModule=!0,e.exports.default=e.exports},497326:(e,t,i)=>{"use strict";function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i.d(t,{Z:()=>n})},204942:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(383997);function l(e,t,i){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},487462:(e,t,i)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}i.d(t,{Z:()=>n})},894578:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(589611);function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.Z)(e,t)}},601413:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(204942);function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach(function(t){(0,n.Z)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}},263366:(e,t,i)=>{"use strict";function n(e,t){if(null==e)return{};var i,n,l={},a=Object.keys(e);for(n=0;n<a.length;n++)i=a[n],t.indexOf(i)>=0||(l[i]=e[i]);return l}i.d(t,{Z:()=>n})},589611:(e,t,i)=>{"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}i.d(t,{Z:()=>n})},383997:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(671002);function l(e){var t=function(e,t){if("object"!=(0,n.Z)(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var l=i.call(e,t||"default");if("object"!=(0,n.Z)(l))return l;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.Z)(t)?t:String(t)}},671002:(e,t,i)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.d(t,{Z:()=>n})},269220:(e,t,i)=>{"use strict";i.d(t,{s:()=>r});var n=i(785893),l=i(667294);let a=e=>Math.floor(e*(16/9)),r=({shuffle:e,width:t,children:r,rounded:o=!1})=>{let[s,d]=(0,l.useState)(!1),u=(0,l.useRef)(null),c=(0,l.useRef)(!1),p=(0,l.useRef)(null),h=(0,l.useRef)(null),_=(0,l.useRef)(null),m=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let n=async()=>{var n,l;if(!u.current||!m.current||!e)return;let r=m.current.offsetWidth,o=u.current,s="100%"===t?r:t,g=a(s);o.width=1152,o.height=a(1152),o.style.width=`${s}px`,o.style.height=`${g}px`;let y={height:o.height,width:o.width};c.current=!0;let[v,f,x]=await Promise.all([await Promise.all([i.e(51961),i.e(37749)]).then(i.bind(i,27563)),await Promise.all([i.e(51961),i.e(94532)]).then(i.bind(i,151961)),await i.e(9172).then(i.bind(i,909172))]);await f.initLibrary();let b=await x.buildStickersDTO({shuffle:e,canvasDimensions:y}),{renderer:P}=v.paintShuffle(o,b,null==(n=e.effect_data)?void 0:n.backgroundColor);P.render(),_.current=P,d(!0);let w=()=>{p.current=requestAnimationFrame(w),P.render()};if(p.current=requestAnimationFrame(w),null!=(l=e.effect_data)&&l.keyframeAnimation){let t=await Promise.all([i.e(51961),i.e(75526)]).then(i.bind(i,724440));h.current=t.doKeyframes(e.effect_data.keyframeAnimation,P,y,b[0].isHidden)}};null!=e&&e.items&&!c.current&&(c.current=!0,n())},[e,t]),(0,l.useEffect)(()=>()=>{p.current&&cancelAnimationFrame(p.current),h.current&&h.current(),_.current&&_.current.destroy()},[]),(0,n.jsxs)("div",{ref:m,style:"100%"===t?{width:"100%"}:{},children:[r,(0,n.jsx)("canvas",{style:{pointerEvents:"none",borderRadius:o?"10%/5%":0,position:"absolute",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"300ms",top:0,left:0,opacity:s?1:0},ref:u})]})}},610248:e=>{"use strict";e.exports=JSON.parse('["aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","adac","ads","adult","ae","aeg","aero","aetna","af","afamilycompany","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","budapest","bugatti","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","caseih","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","csc","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","duck","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fujixerox","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glade","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","iveco","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lixil","lk","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","lupin","luxe","luxury","lv","ly","ma","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","mutual","mv","mw","mx","my","mz","na","nab","nagoya","name","nationwide","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","newholland","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","off","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","onyourside","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","qvc","racing","radio","raid","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","rmit","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scjohnson","scot","sd","se","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","spreadbetting","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiftcover","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","कॉम","セール","佛山","ಭಾರತ","慈善","集团","在线","한국","ଭାରତ","大众汽车","点看","คอม","ভাৰত","ভারত","八卦","موقع","বাংলা","公益","公司","香格里拉","网站","移动","我爱你","москва","қаз","католик","онлайн","сайт","联通","срб","бг","бел","קום","时尚","微博","淡马锡","ファッション","орг","नेट","ストア","アマゾン","삼성","சிங்கப்பூர்","商标","商店","商城","дети","мкд","ею","ポイント","新闻","家電","كوم","中文网","中信","中国","中國","娱乐","谷歌","భారత్","ලංකා","電訊盈科","购物","クラウド","ભારત","通販","भारतम्","भारत","भारोत","网店","संगठन","餐厅","网络","ком","укр","香港","亚马逊","诺基亚","食品","飞利浦","台湾","台灣","手机","мон","الجزائر","عمان","ارامكو","ایران","العليان","اتصالات","امارات","بازار","موريتانيا","پاکستان","الاردن","بارت","بھارت","المغرب","ابوظبي","البحرين","السعودية","ڀارت","كاثوليك","سودان","همراه","عراق","مليسيا","澳門","닷컴","政府","شبكة","بيتك","عرب","გე","机构","组织机构","健康","ไทย","سورية","招聘","рус","рф","تونس","大拿","ລາວ","みんな","グーグル","ευ","ελ","世界","書籍","ഭാരതം","ਭਾਰਤ","网址","닷넷","コム","天主教","游戏","verm\xf6gensberater","verm\xf6gensberatung","企业","信息","嘉里大酒店","嘉里","مصر","قطر","广东","இலங்கை","இந்தியா","հայ","新加坡","فلسطين","政务","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw"]')}},e=>{e.O(0,[73308],()=>{[97270,48937,22555,59072,43473,46760,92982].map(e.E)},5);var t=t=>e(e.s=t);e.O(0,[97270,83119,67631,16550,26067,17492,48327,42298,99246,18555,50040,8575,99961,90123,23019,38230,16142,27405,8962,10903,8151,58103,91936],()=>t(106991)),e.O()}]);
292
+ //# sourceMappingURL=https://sm.pinimg.com/webapp/www/pin/[id]/repin-d49f19d89ddd3cbe.mjs.map