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,27 @@
1
+ (self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[39921,48327,22531,8575,76030,84590,56588,1342,60310,69965],{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 _(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function m(e,t){var i=_(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,m=u<1?(u*o+-r)/c:-r+o;function h(e){var i=t?t*e/1e3:e;return(i=u<1?Math.exp(-i*u*o)*(1*Math.cos(c*i)+m*Math.sin(c*i)):(1+m*i)*Math.exp(-i*o),0===e||1===e)?e:1-i}return t?h:function(){var t=s.springs[e];if(t)return t;for(var i=1/6,n=0,l=0;;)if(1===h(n+=i)){if(++l>=16)break}else l=0;var a=n*i*1e3;return s.springs[e]=a,a}}function h(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)}}}}(),f=(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 y(e,t){if(p.fnc(e))return e;var i=e.split("(")[0],n=f[i],l=_(e);switch(i){case"spring":return m(e,t);case"cubicBezier":return c(g,l);case"steps":return c(h,l);default:return c(n,l)}}function v(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=v(e)||e),e instanceof NodeList||e instanceof HTMLCollection)?[].slice.call(e):[e]}function A(e,t){return e.some(function(e){return e===t})}function k(e){var t={};for(var i in e)t[i]=e[i];return t}function S(e,t){var i=k(e);for(var n in e)i[n]=t.hasOwnProperty(n)?t[n]:e[n];return i}function w(e,t){var i=k(e);for(var n in t)i[n]=p.und(e[n])?t[n]:e[n];return i}function D(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 E(e,t){return p.fnc(e)?e(t.target,t.id,t.total):e}function T(e,t){return e.getAttribute(t)}function C(e,t,i){if(A([i,"deg","rad","turn"],D(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?C(e,l,i):l}}function F(e,t){return p.dom(e)&&!p.inp(e)&&(!p.nil(T(e,t))||p.svg(e)&&e[t])?"attribute":p.dom(e)&&A(o,t)?"transform":p.dom(e)&&"transform"!==t&&I(e,t)?"css":null!=e[t]?"object":void 0}function j(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 R(e,t,i,n){switch(F(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=j(e).get(t)||l,n&&(n.transforms.list.set(t,a),n.transforms.last=t),i?C(e,a,i):a;case"css":return I(e,t,i);case"attribute":return T(e,t);default:return e[t]||0}}function z(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var n=D(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=D(e),o=r?e.substr(0,e.length-r.length):e;return t?o+t:o}function O(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function B(e){for(var t,i=e.points,n=0,l=0;l<i.numberOfItems;l++){var a=i.getItem(l);l>0&&(n+=O(t,a)),t=a}return n}function N(e){var t;if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*T(e,"r");case"rect":return 2*T(e,"width")+2*T(e,"height");case"line":return O({x:T(e,"x1"),y:T(e,"y1")},{x:T(e,"x2"),y:T(e,"y2")});case"polyline":return B(e);case"polygon":return t=e.points,B(e)+O(t.getItem(t.numberOfItems-1),t.getItem(0))}}function M(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=T(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 U(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 Z(e){return x(e?b(p.arr(e)?e.map(P):P(e)):[],function(e,t,i){return i.indexOf(e)===t})}function K(e){var t=Z(e);return t.map(function(e,i){return{target:e,id:i,total:t.length,transforms:{list:j(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 G(e,t){K(e).forEach(function(e){for(var i in t){var n=E(t[i],e),l=e.target,a=D(n),r=R(l,i,a,e),o=z(L(n,a||D(r)),r);H[F(l,i)](l,i,o,e.transforms,!0)}})}function V(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(){J.suspendWhenDocumentHidden&&(Y()?e=cancelAnimationFrame(e):($.forEach(function(e){return e._onDocumentVisibility()}),q()))}),function(){e||Y()&&J.suspendWhenDocumentHidden||!($.length>0)||(e=requestAnimationFrame(t))}}();function Y(){return!!document&&document.hidden}function J(e){void 0===e&&(e={});var t,i,n,l,o,s,u,c,_,h=0,g=0,f=0,v=0,P=null;function A(e){var t=window.Promise&&new Promise(function(e){return P=e});return e.finished=t,t}var T=(i=S(a,t=e),l=function(e,t){var i=[],n=t.keyframes;for(var l in n&&(t=w(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=k(t);if(/^spring/.test(i.easing)&&(i.duration=m(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 w(e,i)})}(t[l],e)});return i}(n=S(r,t),t),u=V(s=x(b((o=K(t.targets)).map(function(e){return l.map(function(t){return function(e,t){var i=F(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=E(e[n],t);p.arr(l)&&1===(l=l.map(function(e){return E(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=D(r),s=R(e.target,t.name,o,e),d=n?n.to.original:s,u=p.arr(a)?a[0]:d,c=D(u)||D(s),_=o||c;return p.und(r)&&(r=d),l.from=U(u,_),l.to=U(z(r,u),_),l.start=n?n.end:0,l.end=l.start+l.delay+l.duration+l.endDelay,l.easing=y(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++,w(i,{id:c,children:[],animatables:o,animations:s,duration:u.duration,delay:u.delay,endDelay:u.endDelay}));function C(){var e=T.direction;"alternate"!==e&&(T.direction="normal"!==e?"normal":"reverse"),T.reversed=!T.reversed,_.forEach(function(e){return e.reversed=T.reversed})}function I(e){return T.reversed?T.duration-e:e}function j(){h=0,g=I(T.currentTime)*(1/J.speed)}function L(e,t){t&&t.seek(e-t.timelineOffset)}function O(e){for(var t=0,i=T.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,_=s.round,m=[],h=s.to.numbers.length,g=void 0,f=0;f<h;f++){var y=void 0,v=s.to.numbers[f],b=s.from.numbers[f]||0;y=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=M(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*v,s.isPathTargetInsideSVG):b+c*(v-b),_&&!(s.isColor&&f>2)&&(y=Math.round(y*_)/_),m.push(y)}var P=p.length;if(P){g=p[0];for(var A=0;A<P;A++){p[A];var k=p[A+1],S=m[A];isNaN(S)||(k?g+=S+k:g+=S+" ")}}else g=m[0];H[l.type](a.target,l.property,g,a.transforms),l.currentValue=g,t++}}function B(e){T[e]&&!T.passThrough&&T[e](T)}function N(e){var t=T.duration,i=T.delay,n=t-T.endDelay,l=I(e);T.progress=d(l/t*100,0,100),T.reversePlayback=l<T.currentTime,_&&function(e){if(T.reversePlayback)for(var t=v;t--;)L(e,_[t]);else for(var i=0;i<v;i++)L(e,_[i])}(l),!T.began&&T.currentTime>0&&(T.began=!0,B("begin")),!T.loopBegan&&T.currentTime>0&&(T.loopBegan=!0,B("loopBegin")),l<=i&&0!==T.currentTime&&O(0),(l>=n&&T.currentTime!==t||!t)&&O(t),l>i&&l<n?(T.changeBegan||(T.changeBegan=!0,T.changeCompleted=!1,B("changeBegin")),B("change"),O(l)):T.changeBegan&&(T.changeCompleted=!0,T.changeBegan=!1,B("changeComplete")),T.currentTime=d(l,0,t),T.began&&B("update"),e>=t&&(g=0,T.remaining&&!0!==T.remaining&&T.remaining--,T.remaining?(h=f,B("loopComplete"),T.loopBegan=!1,"alternate"===T.direction&&C()):(T.paused=!0,!T.completed&&(T.completed=!0,B("loopComplete"),B("complete"),!T.passThrough&&"Promise"in window&&(P(),A(T)))))}return A(T),T.reset=function(){var e=T.direction;T.passThrough=!1,T.currentTime=0,T.progress=0,T.paused=!0,T.began=!1,T.loopBegan=!1,T.changeBegan=!1,T.completed=!1,T.changeCompleted=!1,T.reversePlayback=!1,T.reversed="reverse"===e,T.remaining=T.loop,v=(_=T.children).length;for(var t=v;t--;)T.children[t].reset();(T.reversed&&!0!==T.loop||"alternate"===e&&1===T.loop)&&T.remaining++,O(T.reversed?T.duration:0)},T._onDocumentVisibility=j,T.set=function(e,t){return G(e,t),T},T.tick=function(e){f=e,h||(h=f),N((f+(g-h))*J.speed)},T.seek=function(e){N(I(e))},T.pause=function(){T.paused=!0,j()},T.play=function(){T.paused&&(T.completed&&T.reset(),T.paused=!1,$.push(T),j(),q())},T.reverse=function(){C(),T.completed=!T.reversed,j()},T.restart=function(){T.reset(),T.play()},T.remove=function(e){Q(Z(e),T)},T.reset(),T.autoplay&&T.play(),T}function X(e,t){for(var i=t.length;i--;)A(e,t[i].animatable.target)&&t.splice(i,1)}function Q(e,t){var i=t.animations,n=t.children;X(e,i);for(var l=n.length;l--;){var a=n[l],r=a.animations;X(e,r),r.length||a.children.length||n.splice(l,1)}i.length||n.length||t.pause()}J.version="3.2.1",J.speed=1,J.suspendWhenDocumentHidden=!0,J.running=$,J.remove=function(e){for(var t=Z(e),i=$.length;i--;)Q(t,$[i])},J.get=R,J.set=G,J.convertPx=C,J.path=function(e,t){var i=p.str(e)?v(e)[0]:e,n=t||100;return function(e){return{property:e,el:i,svg:M(i),totalLength:N(i)*(n/100)}}},J.setDashoffset=function(e){var t=N(e);return e.setAttribute("stroke-dasharray",t),t},J.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",n=t.easing?y(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),_=u?parseFloat(e[1]):0,m=D(u?e[1]:e)||0,h=t.start||0+(u?c:0),g=[],f=0;return function(e,t,p){if(o&&(r=0),s&&(r=(p-1)/2),d&&(r=p-1),!g.length){for(var y=0;y<p;y++){if(l){var v=s?(l[0]-1)/2:r%l[0],x=s?(l[1]-1)/2:Math.floor(r/l[0]),b=y%l[0],P=Math.floor(y/l[0]),A=v-b,k=x-P,S=Math.sqrt(A*A+k*k);"x"===a&&(S=-A),"y"===a&&(S=-k),g.push(S)}else g.push(Math.abs(r-y));f=Math.max.apply(Math,g)}n&&(g=g.map(function(e){return n(e/f)*f})),"reverse"===i&&(g=g.map(function(e){return a?e<0?-1*e:-e:Math.abs(f-e)}))}return h+(u?(_-c)/f:c)*(Math.round(100*g[t])/100)+m}},J.timeline=function(e){void 0===e&&(e={});var t=J(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=w(i,S(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:z(n,u),o(t),t.seek(d.timelineOffset);var c=J(d);o(c),a.push(c);var _=V(a,e);return t.delay=_.delay,t.endDelay=_.endDelay,t.duration=_.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},J.easing=y,J.penner=f,J.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};let ee=J},782677:(e,t,i)=>{"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function a(){return(a=Object.assign||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)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e){return!!(e&&"function"==typeof e.hasOwnProperty&&(e.hasOwnProperty("__ownerID")||e._map&&e._map.hasOwnProperty("__ownerID")))}function s(e,t,i){return Object.keys(e).reduce(function(t,n){var l=""+n;return t.has(l)?t.set(l,i(t.get(l),e[l])):t},t)}i.d(t,{Fv:()=>v,fK:()=>y});var d=function(){function e(e,t,i){if(void 0===t&&(t={}),void 0===i&&(i={}),!e||"string"!=typeof e)throw Error("Expected a string key for Entity, but found "+e+".");var n=i,l=n.idAttribute,r=void 0===l?"id":l,s=n.mergeStrategy,d=void 0===s?function(e,t){return a({},e,t)}:s,u=n.processStrategy,c=void 0===u?function(e){return a({},e)}:u,p=n.fallbackStrategy;this._key=e,this._getId="function"==typeof r?r:function(e){return o(e)?e.get(r):e[r]},this._idAttribute=r,this._mergeStrategy=d,this._processStrategy=c,this._fallbackStrategy=void 0===p?function(e,t){}:p,this.define(t)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce(function(t,i){var n,l=e[i];return a({},t,((n={})[i]=l,n))},this.schema||{})},t.getId=function(e,t,i){return this._getId(e,t,i)},t.merge=function(e,t){return this._mergeStrategy(e,t)},t.fallback=function(e,t){return this._fallbackStrategy(e,t)},t.normalize=function(e,t,i,n,l,a){var r=this,o=this.getId(e,t,i),s=this.key;if(s in a||(a[s]={}),o in a[s]||(a[s][o]=[]),a[s][o].some(function(t){return t===e}))return o;a[s][o].push(e);var d=this._processStrategy(e,t,i);return Object.keys(this.schema).forEach(function(t){if(d.hasOwnProperty(t)&&"object"==typeof d[t]){var i=r.schema[t],o="function"==typeof i?i(e):i;d[t]=n(d[t],d,t,o,l,a)}}),l(this,d,e,t,i),o},t.denormalize=function(e,t){var i=this;return o(e)?s(this.schema,e,t):(Object.keys(this.schema).forEach(function(n){if(e.hasOwnProperty(n)){var l=i.schema[n];e[n]=t(e[n],l)}}),e)},l(e,[{key:"key",get:function(){return this._key}},{key:"idAttribute",get:function(){return this._idAttribute}}]),e}(),u=function(){function e(e,t){t&&(this._schemaAttribute="string"==typeof t?function(e){return e[t]}:t),this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=e},t.getSchemaAttribute=function(e,t,i){return!this.isSingleSchema&&this._schemaAttribute(e,t,i)},t.inferSchema=function(e,t,i){if(this.isSingleSchema)return this.schema;var n=this.getSchemaAttribute(e,t,i);return this.schema[n]},t.normalizeValue=function(e,t,i,n,l,a){var r=this.inferSchema(e,t,i);if(!r)return e;var o=n(e,t,i,r,l,a);return this.isSingleSchema||null==o?o:{id:o,schema:this.getSchemaAttribute(e,t,i)}},t.denormalizeValue=function(e,t){var i=o(e)?e.get("schema"):e.schema;return this.isSingleSchema||i?t((this.isSingleSchema?void 0:o(e)?e.get("id"):e.id)||e,this.isSingleSchema?this.schema:this.schema[i]):e},l(e,[{key:"isSingleSchema",get:function(){return!this._schemaAttribute}}]),e}(),c=function(e){function t(t,i){if(!i)throw Error('Expected option "schemaAttribute" not found on UnionSchema.');return e.call(this,t,i)||this}r(t,e);var i=t.prototype;return i.normalize=function(e,t,i,n,l,a){return this.normalizeValue(e,t,i,n,l,a)},i.denormalize=function(e,t){return this.denormalizeValue(e,t)},t}(u),p=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var i=t.prototype;return i.normalize=function(e,t,i,n,l,r){var o=this;return Object.keys(e).reduce(function(t,i,s){var d,u=e[i];return null!=u?a({},t,((d={})[i]=o.normalizeValue(u,e,i,n,l,r),d)):t},{})},i.denormalize=function(e,t){var i=this;return Object.keys(e).reduce(function(n,l){var r,o=e[l];return a({},n,((r={})[l]=i.denormalizeValue(o,t),r))},{})},t}(u),_=function(e){if(Array.isArray(e)&&e.length>1)throw Error("Expected schema definition to be a single schema, but found "+e.length+".");return e[0]},m=function(e){return Array.isArray(e)?e:Object.keys(e).map(function(t){return e[t]})},h=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var i=t.prototype;return i.normalize=function(e,t,i,n,l,a){var r=this;return m(e).map(function(e,o){return r.normalizeValue(e,t,i,n,l,a)}).filter(function(e){return null!=e})},i.denormalize=function(e,t){var i=this;return e&&e.map?e.map(function(e){return i.denormalizeValue(e,t)}):e},t}(u),g=function(e,t,i,n,l,r,o){var s=a({},t);return Object.keys(e).forEach(function(i){var n=e[i],a="function"==typeof n?n(t):n,d=l(t[i],t,i,a,r,o);null==d?delete s[i]:s[i]=d}),s},f=function(e,t,i){if(o(t))return s(e,t,i);var n=a({},t);return Object.keys(e).forEach(function(t){null!=n[t]&&(n[t]=i(n[t],e[t]))}),n},y={Array:h,Entity:d,Object:function(){function e(e){this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce(function(t,i){var n,l=e[i];return a({},t,((n={})[i]=l,n))},this.schema||{})},t.normalize=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return g.apply(void 0,[this.schema].concat(t))},t.denormalize=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return f.apply(void 0,[this.schema].concat(t))},e}(),Union:c,Values:p},v=function(e,t){if(!e||"object"!=typeof e)throw Error('Unexpected input given to normalize. Expected type to be "object", found "'+(null===e?"null":typeof e)+'".');var i={};return{entities:i,result:function e(t,i,n,l,a,r){return"object"==typeof t&&t?"object"!=typeof l||l.normalize&&"function"==typeof l.normalize?l.normalize(t,i,n,e,a,r):(Array.isArray(l)?function(e,t,i,n,l,a,r){return e=_(e),m(t).map(function(t,o){return l(t,i,n,e,a,r)})}:g)(l,t,i,n,e,a,r):t}(e,e,null,t,function(e,t,n,l,a){var r=e.key,o=e.getId(n,l,a);r in i||(i[r]={});var s=i[r][o];s?i[r][o]=e.merge(s,t):i[r][o]=t},{})}}},762587:e=>{"use strict";e.exports=function(e,t,i,n){t=t||"&",i=i||"=";var l={};if("string"!=typeof e||0===e.length)return l;var a=/\+/g;e=e.split(t);var r=1e3;n&&"number"==typeof n.maxKeys&&(r=n.maxKeys);var o=e.length;r>0&&o>r&&(o=r);for(var s=0;s<o;++s){var d,u,c,p,_=e[s].replace(a,"%20"),m=_.indexOf(i);(m>=0?(d=_.substr(0,m),u=_.substr(m+1)):(d=_,u=""),c=decodeURIComponent(d),p=decodeURIComponent(u),Object.prototype.hasOwnProperty.call(l,c))?Array.isArray(l[c])?l[c].push(p):l[c]=[l[c],p]:l[c]=p}return l}},712361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,n,l){return(i=i||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e)?Object.keys(e).map(function(l){var a=encodeURIComponent(t(l))+n;return Array.isArray(e[l])?e[l].map(function(e){return a+encodeURIComponent(t(e))}).join(i):a+encodeURIComponent(t(e[l]))}).join(i):l?encodeURIComponent(t(l))+n+encodeURIComponent(t(e)):""}},817673:(e,t,i)=>{"use strict";t.decode=t.parse=i(762587),t.encode=t.stringify=i(712361)},201342:(e,t,i)=>{"use strict";i.d(t,{tn:()=>et,lr:()=>X});var n,l,a,r,o,s,d,u,c,p,_,m,h,g,f=i(667294),y=i.t(f,2);/**
2
+ * @remix-run/router v1.5.0
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */function v(){return(v=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)}function x(e,t){if(!1===e||null==e)throw Error(t)}function b(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function P(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substr(i),e=e.substr(0,i));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}(n=u||(u={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE",(l=c||(c={})).data="data",l.deferred="deferred",l.redirect="redirect",l.error="error";let A=/^:\w+$/,k=e=>"*"===e;function S(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let i=t.endsWith("/")?t.length-1:t.length,n=e.charAt(i);return n&&"/"!==n?null:e.slice(i)||"/"}function w(e,t,i,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t)+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+i+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}let D=e=>e.join("/").replace(/\/\/+/g,"/"),E=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",C=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,Symbol("deferred");let{useState:I,useEffect:F,useLayoutEffect:j,useDebugValue:R}=y;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,y.useSyncExternalStore;let z=f.createContext(null),L=f.createContext(null),O=f.createContext(null),B=f.createContext(null),N=f.createContext({outlet:null,matches:[]}),M=f.createContext(null);function U(){return(U=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)}function Z(){return null!=f.useContext(B)}function K(){return Z()||x(!1),f.useContext(B).location}function H(){let e=function(){var e;let t,i,n;let l=f.useContext(M),a=(_.UseRouteError,(t=f.useContext(L))||x(!1),t),r=(_.UseRouteError,(n=((i=f.useContext(N))||x(!1),i).matches[i.matches.length-1]).route.id||x(!1),n.route.id);return l||(null==(e=a.errors)?void 0:e[r])}(),t=null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null;return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),i?f.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},i):null,null)}class G extends f.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?f.createElement(N.Provider,{value:this.props.routeContext},f.createElement(M.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function V(e){let{routeContext:t,match:i,children:n}=e,l=f.useContext(z);return l&&l.static&&l.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=i.route.id),f.createElement(N.Provider,{value:t},n)}function W(e){x(!1)}function $(e){let{basename:t="/",children:i=null,location:n,navigationType:l=u.Pop,navigator:a,static:r=!1}=e;Z()&&x(!1);let o=t.replace(/^\/*/,"/"),s=f.useMemo(()=>({basename:o,navigator:a,static:r}),[o,a,r]);"string"==typeof n&&(n=P(n));let{pathname:d="/",search:c="",hash:p="",state:_=null,key:m="default"}=n,h=f.useMemo(()=>{let e=S(d,o);return null==e?null:{location:{pathname:e,search:c,hash:p,state:_,key:m},navigationType:l}},[o,d,c,p,_,m,l]);return null==h?null:f.createElement(O.Provider,{value:s},f.createElement(B.Provider,{children:i,value:h}))}function q(e){let{children:t,location:i}=e,n=f.useContext(z);return function(e,t){let i;Z()||x(!1);let{navigator:n}=f.useContext(O),l=f.useContext(L),{matches:a}=f.useContext(N),r=a[a.length-1],o=r?r.params:{};r&&r.pathname;let s=r?r.pathnameBase:"/";r&&r.route;let d=K();if(t){var c;let e="string"==typeof t?P(t):t;"/"===s||(null==(c=e.pathname)?void 0:c.startsWith(s))||x(!1),i=e}else i=d;let p=i.pathname||"/",_=function(e,t,i){void 0===i&&(i="/");let n=S(("string"==typeof t?P(t):t).pathname||"/",i);if(null==n)return null;let l=function e(t,i,n,l){void 0===i&&(i=[]),void 0===n&&(n=[]),void 0===l&&(l="");let a=(t,a,r)=>{let o={relativePath:void 0===r?t.path||"":r,caseSensitive:!0===t.caseSensitive,childrenIndex:a,route:t};o.relativePath.startsWith("/")&&(x(o.relativePath.startsWith(l),'Absolute route path "'+o.relativePath+'" nested under path "'+l+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(l.length));let s=D([l,o.relativePath]),d=n.concat(o);if(t.children&&t.children.length>0&&(x(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),e(t.children,i,d,s)),null!=t.path||t.index){var u;let e,n;i.push({path:s,score:(u=t.index,n=(e=s.split("/")).length,e.some(k)&&(n+=-2),u&&(n+=2),e.filter(e=>!k(e)).reduce((e,t)=>e+(A.test(t)?3:""===t?1:10),n)),routesMeta:d})}};return t.forEach((e,t)=>{var i;if(""!==e.path&&null!=(i=e.path)&&i.includes("?"))for(let i of function e(t){let i=t.split("/");if(0===i.length)return[];let[n,...l]=i,a=n.endsWith("?"),r=n.replace(/\?$/,"");if(0===l.length)return a?[r,""]:[r];let o=e(l.join("/")),s=[];return s.push(...o.map(e=>""===e?r:[r,e].join("/"))),a&&s.push(...o),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))a(e,t,i);else a(e,t)}),i}(e);!function(e){e.sort((e,t)=>{var i,n;return e.score!==t.score?t.score-e.score:(i=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),i.length===n.length&&i.slice(0,-1).every((e,t)=>e===n[t])?i[i.length-1]-n[n.length-1]:0)})}(l);let a=null;for(let e=0;null==a&&e<l.length;++e)a=function(e,t){let{routesMeta:i}=e,n={},l="/",a=[];for(let e=0;e<i.length;++e){let r=i[e],o=e===i.length-1,s="/"===l?t:t.slice(l.length)||"/",d=function(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[i,n]=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!0),b("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(n.push(t),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),l+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?l+="\\/*$":""!==e&&"/"!==e&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),l=t.match(i);if(!l)return null;let a=l[0],r=a.replace(/(.)\/+$/,"$1"),o=l.slice(1);return{params:n.reduce((e,t,i)=>{if("*"===t){let e=o[i]||"";r=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(i){return b(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+i+")."),e}}(o[i]||"",t),e},{}),pathname:a,pathnameBase:r,pattern:e}}({path:r.relativePath,caseSensitive:r.caseSensitive,end:o},s);if(!d)return null;Object.assign(n,d.params);let u=r.route;a.push({params:n,pathname:D([l,d.pathname]),pathnameBase:E(D([l,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(l=D([l,d.pathnameBase]))}return a}(l[e],function(e){try{return decodeURI(e)}catch(t){return b(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(n));return a}(e,{pathname:"/"===s?p:p.slice(s.length)||"/"}),m=function(e,t,i){if(void 0===t&&(t=[]),null==e){if(null==i||!i.errors)return null;e=i.matches}let n=e,l=null==i?void 0:i.errors;if(null!=l){let e=n.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id]));e>=0||x(!1),n=n.slice(0,Math.min(n.length,e+1))}return n.reduceRight((e,a,r)=>{let o=a.route.id?null==l?void 0:l[a.route.id]:null,s=null;i&&(s=a.route.ErrorBoundary?f.createElement(a.route.ErrorBoundary,null):a.route.errorElement?a.route.errorElement:f.createElement(H,null));let d=t.concat(n.slice(0,r+1)),u=()=>{let t=e;return o?t=s:a.route.Component?t=f.createElement(a.route.Component,null):a.route.element&&(t=a.route.element),f.createElement(V,{match:a,routeContext:{outlet:e,matches:d},children:t})};return i&&(a.route.ErrorBoundary||a.route.errorElement||0===r)?f.createElement(G,{location:i.location,component:s,error:o,children:u(),routeContext:{outlet:null,matches:d}}):u()},null)}(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:D([s,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?s:D([s,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,l||void 0);return t&&m?f.createElement(B.Provider,{value:{location:U({pathname:"/",search:"",hash:"",state:null,key:"default"},i),navigationType:u.Pop}},m):m}(n&&!t?n.router.routes:function e(t,i){void 0===i&&(i=[]);let n=[];return f.Children.forEach(t,(t,l)=>{if(!f.isValidElement(t))return;let a=[...i,l];if(t.type===f.Fragment){n.push.apply(n,e(t.props.children,a));return}t.type!==W&&x(!1),t.props.index&&t.props.children&&x(!1);let r={id:t.props.id||a.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(r.children=e(t.props.children,a)),n.push(r)}),n}(t),i)}(a=p||(p={})).UseBlocker="useBlocker",a.UseRevalidator="useRevalidator",(r=_||(_={})).UseBlocker="useBlocker",r.UseLoaderData="useLoaderData",r.UseActionData="useActionData",r.UseRouteError="useRouteError",r.UseNavigation="useNavigation",r.UseRouteLoaderData="useRouteLoaderData",r.UseMatches="useMatches",r.UseRevalidator="useRevalidator",(o=m||(m={}))[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",new Promise(()=>{});var Y=i(616550);function J(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,i)=>{let n=e[i];return t.concat(Array.isArray(n)?n.map(e=>[i,e]):[[i,n]])},[]))}function X(e){let t=f.useRef(J(e)),i=f.useRef(!1),n=K(),l=f.useMemo(()=>(function(e,t){let i=J(e);if(t)for(let e of t.keys())i.has(e)||t.getAll(e).forEach(t=>{i.append(e,t)});return i})(n.search,i.current?null:t.current),[n.search]),a=function(){Z()||x(!1);let{basename:e,navigator:t}=f.useContext(O),{matches:i}=f.useContext(N),{pathname:n}=K(),l=JSON.stringify(i.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0).map(e=>e.pathnameBase)),a=f.useRef(!1);return f.useEffect(()=>{a.current=!0}),f.useCallback(function(i,r){if(void 0===r&&(r={}),!a.current)return;if("number"==typeof i){t.go(i);return}let o=function(e,t,i,n){let l,a;void 0===n&&(n=!1),"string"==typeof e?l=P(e):(x(!(l=v({},e)).pathname||!l.pathname.includes("?"),w("?","pathname","search",l)),x(!l.pathname||!l.pathname.includes("#"),w("#","pathname","hash",l)),x(!l.search||!l.search.includes("#"),w("#","search","hash",l)));let r=""===e||""===l.pathname,o=r?"/":l.pathname;if(n||null==o)a=i;else{let e=t.length-1;if(o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;l.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t){let i;void 0===t&&(t="/");let{pathname:n,search:l="",hash:a=""}="string"==typeof e?P(e):e;return{pathname:n?n.startsWith("/")?n:(i=t.replace(/\/+$/,"").split("/"),n.split("/").forEach(e=>{".."===e?i.length>1&&i.pop():"."!==e&&i.push(e)}),i.length>1?i.join("/"):"/"):t,search:T(l),hash:C(a)}}(l,a),d=o&&"/"!==o&&o.endsWith("/"),u=(r||"."===o)&&i.endsWith("/");return!s.pathname.endsWith("/")&&(d||u)&&(s.pathname+="/"),s}(i,JSON.parse(l),n,"path"===r.relative);"/"!==e&&(o.pathname="/"===o.pathname?e:D([e,o.pathname])),(r.replace?t.replace:t.push)(o,r.state,r)},[e,t,l,n])}(),r=f.useCallback((e,t)=>{let n=J("function"==typeof e?e(l):e);i.current=!0,a("?"+n,t)},[a,l]);return[l,r]}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmitImpl="useSubmitImpl",s.UseFetcher="useFetcher",(d=g||(g={})).UseFetchers="useFetchers",d.UseScrollRestoration="useScrollRestoration";let Q=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),ee=Q?f.useLayoutEffect:()=>{};function et(e){let{children:t}=e,i=(0,Y.useHistory)(),[n,l]=f.useState(()=>({location:i.location,action:i.action}));return ee(()=>{i.listen((e,t)=>l({location:e,action:t}))},[i]),f.createElement($,{navigationType:n.action,location:n.location,navigator:i},f.createElement(q,null,f.createElement(W,{path:"*",element:t})))}},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}})},52511:function(e,t,i){var n;e=i.nmd(e),function(l){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof i.g&&i.g;a.global===a||a.window===a||a.self;var r,o=/^xn--/,s=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,p=String.fromCharCode;function _(e){throw RangeError(u[e])}function m(e,t){for(var i=e.length,n=[];i--;)n[i]=t(e[i]);return n}function h(e,t){var i=e.split("@"),n="";return i.length>1&&(n=i[0]+"@",e=i[1]),n+m((e=e.replace(d,".")).split("."),t).join(".")}function g(e){for(var t,i,n=[],l=0,a=e.length;l<a;)(t=e.charCodeAt(l++))>=55296&&t<=56319&&l<a?(64512&(i=e.charCodeAt(l++)))==56320?n.push(((1023&t)<<10)+(1023&i)+65536):(n.push(t),l--):n.push(t);return n}function f(e){return m(e,function(e){var t="";return e>65535&&(e-=65536,t+=p(e>>>10&1023|55296),e=56320|1023&e),t+=p(e)}).join("")}function y(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function v(e,t,i){var n=0;for(e=i?c(e/700):e>>1,e+=c(e/t);e>455;n+=36)e=c(e/35);return c(n+36*e/(e+38))}function x(e){var t,i,n,l,a,r,o,s,d,u,p,m=[],h=e.length,g=0,y=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),l=0;l<n;++l)e.charCodeAt(l)>=128&&_("not-basic"),m.push(e.charCodeAt(l));for(a=n>0?n+1:0;a<h;){for(r=g,o=1,s=36;a>=h&&_("invalid-input"),((d=(t=e.charCodeAt(a++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36)>=36||d>c((2147483647-g)/o))&&_("overflow"),g+=d*o,!(d<(u=s<=x?1:s>=x+26?26:s-x));s+=36)o>c(2147483647/(p=36-u))&&_("overflow"),o*=p;x=v(g-r,i=m.length+1,0==r),c(g/i)>2147483647-y&&_("overflow"),y+=c(g/i),g%=i,m.splice(g++,0,y)}return f(m)}function b(e){var t,i,n,l,a,r,o,s,d,u,m,h,f,x,b,P=[];for(r=0,h=(e=g(e)).length,t=128,i=0,a=72;r<h;++r)(m=e[r])<128&&P.push(p(m));for(n=l=P.length,l&&P.push("-");n<h;){for(o=2147483647,r=0;r<h;++r)(m=e[r])>=t&&m<o&&(o=m);for(o-t>c((2147483647-i)/(f=n+1))&&_("overflow"),i+=(o-t)*f,t=o,r=0;r<h;++r)if((m=e[r])<t&&++i>2147483647&&_("overflow"),m==t){for(s=i,d=36;!(s<(u=d<=a?1:d>=a+26?26:d-a));d+=36)b=s-u,x=36-u,P.push(p(y(u+b%x,0))),s=c(b/x);P.push(p(y(s,0))),a=v(i,f,n==l),i=0,++n}++i,++t}return P.join("")}r={version:"1.3.2",ucs2:{decode:g,encode:f},decode:x,encode:b,toASCII:function(e){return h(e,function(e){return s.test(e)?"xn--"+b(e):e})},toUnicode:function(e){return h(e,function(e){return o.test(e)?x(e.slice(4).toLowerCase()):e})}},void 0!==(n=(function(){return r}).call(t,i,t,e))&&(e.exports=n)}(0)},608575:(e,t,i)=>{"use strict";var n=i(52511),l=i(762502);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){return(l.isString(e)&&(e=y(e)),e instanceof a)?e.format():a.prototype.format.call(e)},t.Url=a;var r=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "])),u=["%","/","?",";","#"].concat(d),c=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},h={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},f=i(817673);function y(e,t,i){if(e&&l.isObject(e)&&e instanceof a)return e;var n=new a;return n.parse(e,t,i),n}a.prototype.parse=function(e,t,i){if(!l.isString(e))throw TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),o=-1!==a&&a<e.indexOf("#")?"?":"#",y=e.split(o);y[0]=y[0].replace(/\\/g,"/");var v=e=y.join(o);if(v=v.trim(),!i&&1===e.split("#").length){var x=s.exec(v);if(x)return this.path=v,this.href=v,this.pathname=x[1],x[2]?(this.search=x[2],t?this.query=f.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var b=r.exec(v);if(b){var P=(b=b[0]).toLowerCase();this.protocol=P,v=v.substr(b.length)}if(i||b||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var A="//"===v.substr(0,2);A&&!(b&&h[b])&&(v=v.substr(2),this.slashes=!0)}if(!h[b]&&(A||b&&!g[b])){for(var k,S,w=-1,D=0;D<c.length;D++){var E=v.indexOf(c[D]);-1!==E&&(-1===w||E<w)&&(w=E)}-1!==(S=-1===w?v.lastIndexOf("@"):v.lastIndexOf("@",w))&&(k=v.slice(0,S),v=v.slice(S+1),this.auth=decodeURIComponent(k)),w=-1;for(var D=0;D<u.length;D++){var E=v.indexOf(u[D]);-1!==E&&(-1===w||E<w)&&(w=E)}-1===w&&(w=v.length),this.host=v.slice(0,w),v=v.slice(w),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var C=this.hostname.split(/\./),D=0,I=C.length;D<I;D++){var F=C[D];if(F&&!F.match(p)){for(var j="",R=0,z=F.length;R<z;R++)F.charCodeAt(R)>127?j+="x":j+=F[R];if(!j.match(p)){var L=C.slice(0,D),O=C.slice(D+1),B=F.match(_);B&&(L.push(B[1]),O.unshift(B[2])),O.length&&(v="/"+O.join(".")+v),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var N=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+N,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!m[P])for(var D=0,I=d.length;D<I;D++){var U=d[D];if(-1!==v.indexOf(U)){var Z=encodeURIComponent(U);Z===U&&(Z=escape(U)),v=v.split(U).join(Z)}}var K=v.indexOf("#");-1!==K&&(this.hash=v.substr(K),v=v.slice(0,K));var H=v.indexOf("?");if(-1!==H?(this.search=v.substr(H),this.query=v.substr(H+1),t&&(this.query=f.parse(this.query)),v=v.slice(0,H)):t&&(this.search="",this.query={}),v&&(this.pathname=v),g[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",G=this.search||"";this.path=N+G}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":")+"@");var t=this.protocol||"",i=this.pathname||"",n=this.hash||"",a=!1,r="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(r=f.stringify(this.query));var o=this.search||r&&"?"+r||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==a?(a="//"+(a||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):a||(a=""),n&&"#"!==n.charAt(0)&&(n="#"+n),o&&"?"!==o.charAt(0)&&(o="?"+o),t+a+(i=i.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(o=o.replace("#","%23"))+n},a.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(l.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var i=new a,n=Object.keys(this),r=0;r<n.length;r++){var o=n[r];i[o]=this[o]}if(i.hash=e.hash,""===e.href)return i.href=i.format(),i;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),d=0;d<s.length;d++){var u=s[d];"protocol"!==u&&(i[u]=e[u])}return g[i.protocol]&&i.hostname&&!i.pathname&&(i.path=i.pathname="/"),i.href=i.format(),i}if(e.protocol&&e.protocol!==i.protocol){if(!g[e.protocol]){for(var c=Object.keys(e),p=0;p<c.length;p++){var _=c[p];i[_]=e[_]}return i.href=i.format(),i}if(i.protocol=e.protocol,e.host||h[e.protocol])i.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),i.pathname=m.join("/")}if(i.search=e.search,i.query=e.query,i.host=e.host||"",i.auth=e.auth,i.hostname=e.hostname||e.host,i.port=e.port,i.pathname||i.search){var f=i.pathname||"",y=i.search||"";i.path=f+y}return i.slashes=i.slashes||e.slashes,i.href=i.format(),i}var v=i.pathname&&"/"===i.pathname.charAt(0),x=e.host||e.pathname&&"/"===e.pathname.charAt(0),b=x||v||i.host&&e.pathname,P=b,A=i.pathname&&i.pathname.split("/")||[],m=e.pathname&&e.pathname.split("/")||[],k=i.protocol&&!g[i.protocol];if(k&&(i.hostname="",i.port=null,i.host&&(""===A[0]?A[0]=i.host:A.unshift(i.host)),i.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),b=b&&(""===m[0]||""===A[0])),x)i.host=e.host||""===e.host?e.host:i.host,i.hostname=e.hostname||""===e.hostname?e.hostname:i.hostname,i.search=e.search,i.query=e.query,A=m;else if(m.length)A||(A=[]),A.pop(),A=A.concat(m),i.search=e.search,i.query=e.query;else if(!l.isNullOrUndefined(e.search)){if(k){i.hostname=i.host=A.shift();var S=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@");S&&(i.auth=S.shift(),i.host=i.hostname=S.shift())}return i.search=e.search,i.query=e.query,l.isNull(i.pathname)&&l.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i}if(!A.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var w=A.slice(-1)[0],D=(i.host||e.host||A.length>1)&&("."===w||".."===w)||""===w,E=0,T=A.length;T>=0;T--)"."===(w=A[T])?A.splice(T,1):".."===w?(A.splice(T,1),E++):E&&(A.splice(T,1),E--);if(!b&&!P)for(;E--;E)A.unshift("..");b&&""!==A[0]&&(!A[0]||"/"!==A[0].charAt(0))&&A.unshift(""),D&&"/"!==A.join("/").substr(-1)&&A.push("");var C=""===A[0]||A[0]&&"/"===A[0].charAt(0);if(k){i.hostname=i.host=C?"":A.length?A.shift():"";var S=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@");S&&(i.auth=S.shift(),i.host=i.hostname=S.shift())}return(b=b||i.host&&A.length)&&!C&&A.unshift(""),A.length?i.pathname=A.join("/"):(i.pathname=null,i.path=null),l.isNull(i.pathname)&&l.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=e.auth||i.auth,i.slashes=i.slashes||e.slashes,i.href=i.format(),i},a.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},762502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},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},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},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},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},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},937101: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:"PinCardDetails_pin",selections:[t,{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:i,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:"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}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:i,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}],storageKey:null},{args:null,kind:"FragmentSpread",name:"PriceLego_pin"}],type:"Pin",abstractKey:null});n.hash="e127c8f5f9fafd31c5dce4a9a7f66089",e.exports=n},984670:e=>{"use strict";var t,i,n,l,a,r,o,s={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"invite_code"}],kind:"Fragment",metadata:null,name:"PinCardSharedHeaderQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"inviteCode",variableName:"invite_code"}],concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sender",plural:!1,selections:[l={alias:"first_name",args:null,kind:"ScalarField",name:"firstName",storageKey:null},a={alias:"is_default_image",args:null,kind:"ScalarField",name:"isDefaultImage",storageKey:null},r={alias:"image_medium_url",args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"PinCardSharedHeaderQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sender",plural:!1,selections:[l,a,r,o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},o],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}]},params:{id:"6ecc0f5ef5b300806765351890d4c30338f4cba0f2ed6262aebb971f8d13cedd",metadata:{},name:"PinCardSharedHeaderQuery",operationKind:"query",text:null}};s.hash="6113bb3593481961950c5053449014f3",e.exports=s,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}}}(s)},114565:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinCardVisual_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},t={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shouldOpenInStream",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"staticPageCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalVideoDuration",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,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"PinCarouselSlot",kind:"LinkedField",name:"carouselSlots",plural:!0,selections:[{alias:"slotId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"details",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:"imagesSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},t,{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"236x")'}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{args:null,kind:"FragmentSpread",name:"useLogSwipe_pin"},{args:null,kind:"FragmentSpread",name:"CarouselSliders_pin"}],type:"Pin",abstractKey:null};i.hash="1713aeb6ddf2bc119a4b85d38d574819",e.exports=i},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},813283:e=>{"use strict";var t,i,n,l,a,r,o,s,d,u,c,p,_,m,h,g,f,y,v=(t={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},d=[r={alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],m={alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},h=[i,u={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},_={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],{argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"skipUnauthFragment"}],kind:"Fragment",metadata:null,name:"PinRep_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"adMatchReason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"advertiserId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"altText",storageKey:null},{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[t],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"adDestinationUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"attributionSourceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"autoAltText",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isCollaborative",storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"campaignId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"debug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"descriptionHtml",storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},r,{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},t,s],storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,concreteType:"ImageCrop",kind:"LinkedField",name:"imageCrop",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"maxY",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minY",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"474x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"736x")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForWebCloseup",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:[i,u,c,p,{alias:null,args:null,kind:"ScalarField",name:"isPrimaryWebsiteVerified",storageKey:null},_],storageKey:null}],storageKey:null},m,{alias:null,args:null,kind:"ScalarField",name:"mobileLink",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:h,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[i],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null},u,c,p,_],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:h,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"promotedIsRemovable",storageKey:null},{alias:null,args:null,concreteType:"ReactionCountModel",kind:"LinkedField",name:"reactionCountsData",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"reactionType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reactionCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[a,g={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:[f={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:[f,n,y={alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"standardPrice",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[f,{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"bestRating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayCookTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[n,y],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"siteName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shouldOpenInStream",storageKey:null},{alias:null,args:null,concreteType:"Interest",kind:"LinkedField",name:"sourceInterest",plural:!1,selections:[i,n,{alias:null,args:null,kind:"ScalarField",name:"urlName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Sponsorship",kind:"LinkedField",name:"sponsorship",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"creator",plural:!1,selections:h,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sponsor",plural:!1,selections:h,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasProductPins",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDeleted",storageKey:null},{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},g,{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[i,{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:[{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null},o,s,l],storageKey:null}],storageKey:null}],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:[n,l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reasonId",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:[g,{alias:null,args:null,kind:"ScalarField",name:"details",storageKey:null},m],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"ContextualMenu_pin"},{condition:"skipUnauthFragment",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"UnauthProductAttribution_pin"},{args:null,kind:"FragmentSpread",name:"UnauthDesktopContextMenu_pin"}]},{args:null,kind:"FragmentSpread",name:"SeoPageMetadataText_pin"},{args:null,kind:"FragmentSpread",name:"VaseAnnotations_pin"},{args:null,kind:"FragmentSpread",name:"PinCardDetails_pin"},{args:null,kind:"FragmentSpread",name:"PinCardVisual_pin"}],type:"Pin",abstractKey:null});v.hash="901d9a49d37c37653b2b8d3d76e3c86f",e.exports=v},809571:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PriceLego_pin",selections:[{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",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:"name",storageKey:null},{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"standardPrice",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"siteName",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="4a2543bd99e1b908c6c94274a303fcbc",e.exports=i},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},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},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},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},91849:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SeoPageMetadataText_pin",selections:[{args:null,kind:"FragmentSpread",name:"SeeMoreButton_pin"}],type:"Pin",abstractKey:null};t.hash="8f9d12b0eee9d408e23c20c11af28777",e.exports=t},298748:e=>{"use strict";var t,i,n,l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UnauthDesktopContextMenu_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUnsafe",storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:i=[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",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,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[t,n={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:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",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},{args:null,kind:"FragmentSpread",name:"usePinImageUrls_pin"}],type:"Pin",abstractKey:null};l.hash="9927ced98afae08f50c02180203fa8b0",e.exports=l},156577:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UnauthProductAttribution_pin",selections:[{args:null,kind:"FragmentSpread",name:"SeeMoreButton_pin"}],type:"Pin",abstractKey:null};t.hash="2fb133623620997264f81544f7f43636",e.exports=t},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},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},669926:e=>{"use strict";var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinCarouselData_pin",selections:[{args:null,kind:"FragmentSpread",name:"usePinDefaultCarouselData_pin"},{args:null,kind:"FragmentSpread",name:"usePinProductCarouselData_pin"}],type:"Pin",abstractKey:null};t.hash="461a57fcc8f7958e3742c217e4cc45a2",e.exports=t},680880:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinDefaultCarouselData_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:[{alias:null,args:null,kind:"ScalarField",name:"details",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:"image236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"Thumbnails",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:"236x")'},{alias:"image474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"image564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"564x")'},{alias:"image736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:"slotId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="a3cbf6d55cf89d97d6e04c32195968d9",e.exports=i},283996:e=>{"use strict";var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinProductCarouselData_pin",selections:[{alias:"image236x",args:[{kind:"Literal",name:"spec",value:"236x"}],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:"236x")'},{alias:"image474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"image564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"564x")'},{alias:"image736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:i=[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:"productId",args:null,kind:"ScalarField",name:"id",storageKey:null},{args:null,kind:"FragmentSpread",name:"useRichPinProductMetadataCarouselSlots_richPinProductMetadata"}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:i,storageKey:null}],type:"Pin",abstractKey:null};n.hash="6588018e2880f2695fc6c4ba45aab606",e.exports=n},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},240956:e=>{"use strict";var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useRichPinProductMetadataCarouselSlots_richPinProductMetadata",selections:[{alias:"image236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t=[{alias:null,args:null,concreteType:"Thumbnails",kind:"LinkedField",name:"canonicalImage",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:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null}],storageKey:'additionalImagesPerSpec(spec:"236x")'},{alias:"image474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t,storageKey:'additionalImagesPerSpec(spec:"474x")'},{alias:"image564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t,storageKey:'additionalImagesPerSpec(spec:"564x")'},{alias:"image736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:t,storageKey:'additionalImagesPerSpec(spec:"736x")'}],type:"RichPinProductMetadata",abstractKey:null};i.hash="b49953855cdc69f6ee2c8d4925149d23",e.exports=i},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},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:_,pinId:m,replyToCommentId:h,tags:g,text:f})=>{let y=c[p],v={force:n,objectId:r,pinId:m,tags:g,text:f,replyToCommentId:h,..._?{orbacSubjectId:_}:{}},x=u.Z.AGGREGATED_COMMENTS;a&&(x="pin"===p?u.Z.UNIFIED_COMMENTS:u.Z.AGGREGATED_COMMENT_REPLIES);let b=await l.Z.create(y,v).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&&m?e((0,d.R)(m,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:_,type:m,updateParentCommentCount:h,pinId:g})=>{await l.Z.create("AggregatedCommentResource",{commentId:n,...p?{orbacSubjectId:p}:{}}).callDelete({showError:!1}),_&&(e((0,s.EX)({feedId:r||_,feedType:c||u.Z.AGGREGATED_COMMENTS,itemIds:[n],itemType:"aggregatedcomment"})),t(_,n),h&&(m||0===m)&&(m===a.Rv.TOP&&g?e((0,d.R)(g,-1)):m===a.Rv.REPLY_TO_AGGREGATED?i(_,-1):e((0,o.L8)(_,-1))))}}},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:_}){let m=(0,a.ZP)(),{checkExperiment:h}=(0,r.F)(),{isAuthenticated:g}=(0,o.B)(),f=g?h("auth_closeup_redesign").anyEnabled:h("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:f?"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,_&&(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:m._('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})}))}},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,_]=(0,n.useState)({isFirstLoad:!0,isTruncated:!1,showToggle:!1}),{isFirstLoad:m,isTruncated:h,showToggle:g}=p,f=(0,r.ZP)();return(0,n.useEffect)(()=>{if(m&&c.current){var e;let t=(0,o.xW)(c.current),i=(e=c.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth;_({isTruncated:i,isFirstLoad:!1,showToggle:t>=3&&i})}},[m,h]),(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||h?3:0,align:"ltr"===i?"forceLeft":void 0,children:[e,g?(0,d.jsx)(n.Fragment,{children:h?(0,d.jsx)(l.xu,{position:"absolute",bottom:!0,right:!0,children:(0,d.jsx)(u,{label:f._('more', 'storyPin.previewText.more', 'Story pin preview more text truncation'),onPress:()=>_({...p,isTruncated:!1}),testID:"more-description-container",isDarkMode:t})}):(0,d.jsx)(u,{label:f._('less', 'storyPin.previewText.less', 'Story pin preview less text truncation'),onPress:()=>_({...p,isTruncated:!0}),testID:"less-description-container",isDarkMode:t})}):null]})})})}},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:_=!0}){let m=(0,s.ml)(),{checkExperiment:h}=(0,r.F)(),{isAuthenticated:g,isBot:f}=(0,o.B)(),y=m&&h(g?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group||"",v=["no_collapse_by_default","collapse_by_default"].includes(y),x="collapse_by_default"===y,[b,P]=(0,n.useState)(v&&!f&&x&&_||[1,2].includes(t));return(0,d.jsxs)(l.kC,{direction:"column",dataTestId:"collapsible-layout",gap:v?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)(),_=p?"#111":"#fff",{isFirstLoad:m,isTruncated:h}=d;return(0,n.useEffect)(()=>{var e;m&&i.current&&((e=i.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&u({isFirstLoad:!1,isTruncated:!0})},[m,h]),(0,s.jsxs)(l.xu,{position:"relative","data-test-id":"truncated-text",children:[(0,s.jsx)(l.xv,{ref:i,lineClamp:m||h?t:0,inline:!0,children:e}),h&&(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%, ${_} 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:_}}})]})})]})}},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)})}},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:()=>_});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)},_=({description:e,mentionLinkColor:t,shouldAdjustOffset:i,shouldMakeHashtagLinksFromText:r,textSize:d,userMentionTags:_})=>{let{checkExperiment:m}=(0,o.F)(),h=m("web_hashtags_in_description_display").anyEnabled;if(0===_.length)return(0,s.jsx)(n.Fragment,{children:e});let g=0,f=[],y=[..._].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 y.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);f.push(o),f.push((0,s.jsx)(p,{color:t,mention:u,tagObjectId:i.objectId,tagType:i.tagType,textSize:d})),g=a+r}),f.push(e.substr(g)),(r?f.flatMap(e=>"string"!=typeof e?e:(0,a.Z)({isHashtagInDescriptionDisplayEnabled:h,text:e})):f).reduce((e,t)=>(0,s.jsxs)(l.xv,{size:d,inline:!0,children:[e,t]}),null)}},641950:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});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 _=({onOpen:e,structuredDescription:t,type:i})=>{let a=(0,o.ZP)(),r=(0,s.E)(),_=(0,n.useCallback)(()=>{r&&r.markConstraintComplete("description")},[r]),m=(0,n.useRef)(null),[h,g]=(0,n.useState)(!1);(0,n.useEffect)(()=>{var e;(m.current&&((e=m.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)||t.length>1)&&g(!0)},[m,t]);let f="expandable"===i&&t[0].type===c.X.PARAGRAPH,y=f?(0,p.jsx)(l.xv,{ref:m,lineClamp:1,size:"200",children:t[0].content}):null,v=a._('Product Details', 'productDetails.accordionHeader.text', 'text in tap area to open product description accordion panel');return!h&&y?(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(l.xu,{paddingY:1,children:(0,p.jsx)(l.xv,{weight:"bold",size:"300",children:v})}),(0,p.jsx)(l.xu,{marginEnd:6,marginBottom:1,children:y})]}):(0,p.jsx)(d.Z,{header:v,content:(0,p.jsx)(l.xu,{paddingY:f?0:1,children:(0,p.jsx)(u.Z,{descriptions:t,onLoad:_})}),onOpen:e,previewContent:y,previewContentHeight:f?20:0,shouldToggleOnBodyTap:!0,arrowDirection:"expandable"===i?"arrow-down":"arrow-forward"})},m=({isOpen:e,onOpen:t,structuredDescription:i})=>{var a;let[r,d]=(0,n.useState)(!1),c=(0,o.ZP)(),_=(0,n.useRef)(null),m=(0,s.E)(),h=(0,n.useCallback)(()=>{m&&_.current&&m.markConstraintComplete("description")},[m]),g=r&&!e,f=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)(()=>{!(!_.current||Number.isNaN(_.current.offsetHeight)||150>Number(_.current.offsetHeight))&&(r||d(!0))},[r,null===(a=_.current)||void 0===a?void 0:a.offsetHeight]),(0,p.jsxs)(l.xu,{display:_.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:_,children:(0,p.jsx)(u.Z,{descriptions:i,onLoad:h})}),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:f})})]})};function h(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 h=()=>{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)(m,{...e,isOpen:d,onOpen:h}):(0,p.jsx)(a.Z,{topBorder:!0,paddingY:g?3:0,children:(0,p.jsx)(_,{...e,onOpen:h})})}},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:_,standardPrice:m}=o,h=!!_&&!!m&&_!==m,g="100";"pdpPlusHeading"===d?g="400":"heading"===d?g="500":"pdpPlusMobileHeading"===d&&(g="300");let f=(0,a.ZP)(),y=f._('See price on site', 'product.price.stale', 'Product is stale'),v=f._('Sold out', 'product.price.soldOut', 'Product is sold out');return i?(0,r.jsx)(n.xv,{size:g,color:"subtle",weight:"bold",children:y}):(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:v})}),(!!_||!!p||!!c)&&(0,r.jsx)(n.xv,{color:e||(h?"shopping":"default"),size:g,weight:u,children:(0,r.jsx)("span",{children:(0,l.Z)({maxPrice:c,minPrice:p,price:_})})}),h&&!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:m})})})]})}},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)(),[_,m]=(0,n.useState)(),h=(0,n.useMemo)(()=>({flagReason:_,flow:a,status:d,selectedReason:c,modalTitle:t,setFlagReason:m,setFlow:s,setModalTitle:i,setStatus:u,setSelectedReason:p}),[t,a,d,c,_]);return(0,r.jsx)(o,{value:h,children:e})}},923764:(e,t,i)=>{"use strict";i.d(t,{Z:()=>F});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),_=i(966113),m=i(785893);let h=_.K_Y+"?source=block_dialogue";function g(e){return e.map(({full_name:e})=>e)}let f=function({users:e,onClose:t,onSubmit:i}){let n=(0,c.ZP)(),l=(0,m.jsx)("strong",{children:(0,u.Z)(g(e),n)},"userlist");return(0,m.jsxs)("form",{method:"post",children:[(0,m.jsxs)(a.xu,{padding:8,children:[(0,m.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,m.jsx)("br",{}),(0,m.jsx)("br",{}),(0,m.jsx)(a.xv,{children:(0,m.jsx)(a.rU,{display:"inlineBlock",href:h,underline:"hover",children:n._('Learn more', 'link to learn more about blocking', 'link to learn more about blocking')})})]}),(0,m.jsx)(a.xu,{padding:2,children:(0,m.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"end",gap:{row:1,column:0},children:[(0,m.jsx)(a.zx,{fullWidth:!0,onClick:t,text:n._('Cancel', 'UserBlock.Cancel', 'cancel form')}),(0,m.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:()=>{i()},text:n._('Block', 'UserBlock.Submit', 'submit form to block users'),type:"submit"})]})})]})};var y=i(112690),v=i(19121);let x=({deleteAndCloseConversation:e,flagReason:t,flagType:i,onClose:l,selectedReason:r,status:h,users:x,blockContext:b})=>{let P=(0,c.ZP)(),A=(0,y.Z)(),[k,S]=(0,n.useState)({}),{setModalTitle:w,setStatus:D}=(0,s.d)(),E=(0,v.Z)(),{id:T}=E.isAuth?E:{},C=x.filter(({id:e})=>k[e]),I=C.length>0,F=()=>{let e;[d.qb.SUBMITTED,d.qb.PROCESSING].includes(h)?e=P.ngettext('Block this person?', 'Block these people?', C.length, 'BlockAndUnfollow', 'Confirmation text when blocking users (plural)'):i===d.Vm.CONVERSATION&&(e=h===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(C),P).join("")}).join(""):P._('Thanks for your report', 'BlockAndUnfollow', 'title at end of report flow')),w(e)};(0,n.useEffect)(()=>{F()},[h]),(0,n.useEffect)(()=>{D(I?d.qb.SELECTED:d.qb.STARTED)},[k]);let j=x.filter(({id:e})=>e!==T),R=[d.qb.STARTED,d.qb.COMPLETED].includes(h);return(0,m.jsx)("form",{method:"post",children:[d.qb.SUBMITTED,d.qb.PROCESSING].includes(h)?(0,m.jsx)(f,{onClose:()=>{D(d.qb.SELECTED)},onSubmit:()=>(D(d.qb.PROCESSING),Promise.all(Object.keys(k).filter(e=>k[e]).map(e=>o({userId:e,blockSource:"message_report",blockContext:b,logContextEvent:A}))).finally(()=>{D(d.qb.COMPLETED)})),users:C}):(0,m.jsxs)(a.xu,{padding:8,children:[(0,m.jsx)(a.xu,{children:h!==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,m.jsx)(a.rU,{display:"inlineBlock",href:_.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.', j.length, 'description to block people', 'description to block people');return(0,m.jsxs)(n.Fragment,{children:[e&&(0,m.jsx)(a.xu,{marginBottom:8,children:(0,m.jsx)(a.xv,{children:e})}),(0,m.jsx)(a.xu,{marginBottom:8,children:(0,m.jsx)(a.xv,{children:i})}),(0,m.jsx)(a.xu,{marginBottom:8,children:j.map(({id:e,full_name:t})=>(0,m.jsx)(a.XZ,{id:"blockPinner"+e,checked:!!k[e],label:(0,p.nk)(P._('Block {{ pinnerName }}', 'BlockAndUnfollow', 'form option to block a pinner'),{pinnerName:t}).join(""),onChange:({checked:t})=>{S({...k,[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,m.jsx)(a.xu,{marginBottom:8,children:(0,m.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,m.jsxs)(a.xu,{children:[h!==d.qb.COMPLETED&&(0,m.jsx)(a.xu,{marginBottom:8,children:(0,m.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,m.jsx)(a.rU,{display:"inlineBlock",href:_.K_Y,underline:"hover",children:P._('blocking', 'BlockAndUnfollow', 'footer link to learn more about blocking')},"policyLink")})})}),(0,m.jsx)(a.xu,{children:(0,m.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:R?()=>{l(),h===d.qb.COMPLETED&&(null==e||e())}:()=>{S(k),D(d.qb.SUBMITTED)},text:R?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,m.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,m.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,m.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,m.jsx)(a.rU,{target:"blank",href:_.MsG,children:(0,m.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,m.jsxs)("p",{children:[(0,m.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,m.jsx)(a.rU,{target:"blank",href:_.MsG+"#sub-section-adult-content",children:(0,m.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,m.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,m.jsx)(a.rU,{target:"blank",href:_.MsG+"#sub-section-dangerous-goods-and-activities",children:(0,m.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,m.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,m.jsx)(a.rU,{target:"blank",href:_.MsG+"#sub-section-violence",children:(0,m.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,m.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,m.jsx)(a.rU,{target:"blank",href:_.MsG,children:(0,m.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 A({arrayOfData:e,handleSelectReason:t,selectedReason:i}){let n=(0,c.ZP)();return(0,m.jsx)(a.xu,{padding:2,children:(0,m.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,m.jsx)(a.xu,{paddingY:2,children:(0,m.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 k{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,m.jsx)(A,{arrayOfData:this.config[t],handleSelectReason:i,selectedReason:n})}}var S=i(121151);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}class D extends n.Component{constructor(...e){super(...e),w(this,"flagOptions",new k(this.props.flagOptionsConfig)),w(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,m.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:_,blockContext:h}=this.props;return(0,m.jsx)(S.ZP,{accessibilityModalLabel:e,heading:r,onDismiss:o,size:"md",footer:n!==d.Zw.BLOCK?(0,m.jsxs)(a.kC,{alignItems:"center",justifyContent:"start",children:[(0,m.jsx)(a.xu,{flex:"grow",children:(0,m.jsx)(P,{flagReason:c,flow:n})}),(0,m.jsx)(a.xu,{padding:1,children:n===d.Zw.REPORT?(0,m.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,m.jsx)(a.xu,{padding:1,children:(0,m.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,m.jsx)(a.xu,{children:n===d.Zw.BLOCK?(0,m.jsx)(x,{deleteAndCloseConversation:t,flagReason:c,flagType:i,onClose:o,selectedReason:s,status:l,users:_,blockContext:h}):this.renderContent()})})}}function E(e){let t=(0,c.ZP)();return(0,m.jsx)(D,{...e,i18n:t})}var T=i(794230),C=i(600147);let I="policies";function F({aggregatedPinDataId:e,didItDataId:t,onClose:i,pinId:r,username:o,users:u}){let p=(0,c.ZP)(),[h,g]=(0,n.useState)([]),[f,y]=(0,n.useState)(),[v,x]=(0,n.useState)(),b=(0,l.useDispatch)(),P=(e,t,i,n,l)=>b((0,C.Th)(e,t,i,n,l)),{flow:A,modalTitle:k,selectedReason:S,setFlow:w,setModalTitle:D,setSelectedReason:F,setStatus:j,status:R}=(0,s.d)(),z=()=>{if(A===d.Zw.REPORT)switch(v){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(A===d.Zw.END&&h.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)(()=>{D(z())},[h,A,v]);let L=(0,m.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:()=>{if(j(d.qb.PROCESSING),"ignoreThisPin"===S)w(d.Zw.BLOCK),j(d.qb.STARTED);else{let i=[...h,S];g(i),P(e,i,t,f,o),h.includes("notUseful")?w(d.Zw.END):w(d.Zw.BLOCK),j(d.qb.STARTED)}},text:p._('Report content', 'button to report content', 'button to report content')});return(0,m.jsx)(E,{accessibilityModalLabel:p._('Report conversation', 'Pin.DidIt.Report', 'Accessibility label for report pin did it'),content:"IP"===v?(0,m.jsx)(a.xu,{mdDisplay:"flex",justifyContent:"center",children:(0,m.jsxs)(a.xu,{mdColumn:9,children:[(0,m.jsx)(a.xu,{padding:2,marginStart:2,children:(0,m.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,m.jsx)(a.xu,{padding:2,children:(0,m.jsx)(a.ZP,{href:(0,T.Z)(_.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:A,modalTitle:k,onClose:i(!0),onNext:()=>{x(S),g([...h,S]),F()},onRevert:()=>{let e=h[h.length-1],t=h.slice(0,-1);F(e),x(t[t.length-1]),g(t),y(),j(void 0===e?d.qb.STARTED:d.qb.SELECTED)},onSelectReason:(e,t,i)=>{e&&(F(t),j(d.qb.SELECTED),y(i))},showPrimaryAction:"IP"!==v,submitButton:L,status:R,selectedReason:S,flagReason:v,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"}},391254:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a}),i(441143);var n=i(785893);class l{static factory(e){return e instanceof l?e:new l(String(e))}constructor(e){this._private_safe_value=e.trim().replace(">",">").replace("<","<").replace("&","&").replace('"','"').replace("'","'")}toString(){return this._private_safe_value}}function a(e){let{css:t,unsafeCSS:i,...a}=e,r=String(t||"")||i||"",o=!!r;return o?(0,n.jsx)("style",{...a,dangerouslySetInnerHTML:{__html:String(l.factory(r))}}):null}},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},792606:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m}),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 _({pin:e,onClose:t,zIndex:i}){var n,a,p,_;let m=null==e?void 0:null===(n=e.board)||void 0===n?void 0:n.name,h=(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)(),f=(0,d.Z)(),y=h&&m?{boardName:m,boardUrl:h,username:h.split("/")[1]}:null;return(0,u.Z)(()=>{var t;null!=e&&null!==(t=e.description)&&void 0!==t&&t.trim()||y||(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:()=>{f({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}),!!y&&(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:y.boardUrl,onClick:()=>(0,s.NC)("click_vase_modal_board",!0),underline:"hover",children:y.boardName},"board-link")}),profile_link:(0,c.jsx)(l.xv,{inline:!0,weight:"bold",children:(0,c.jsx)(l.rU,{display:"inlineBlock",href:`/${y.username}/`,onClick:()=>(0,s.NC)("click_vase_modal_profile",!0),underline:"hover",children:(null==e?void 0:null===(_=e.pinner)||void 0===_?void 0:_.fullName)||y.username},"profile-link")})})})})]})]})})}function m({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)(_,{...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 _=(0,r.ZP)(),[m,h]=(0,n.useState)(!1),{dangerousInlineStyle:g,iconColor:f}=(0,o.W)(!!e),y=(0,a.Z)();return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(l.iP,{onTap:()=>{y({component:13534,element:11717,event_type:102}),h(!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?_._('Merchant verification badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'):_._('Badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'),icon:"workflow-status-ok",color:f,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:_._('Verified merchant', 'creator.header.verifiedMerchant', 'this merchant is a verified merchant')})})})]})}),(e||i&&!u)&&(0,s.jsx)(o.Z,{showModal:m,setShowModal:h,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 _=(0,s.ZP)(),[m,h]=(0,n.useState)(!0),{dangerousInlineStyle:g,iconColor:f}=c(!0),y=(0,r.Z)();return(0,n.useEffect)(()=>{i&&m&&(h(!1),y({event_type:13,component:13534}))},[i]),(0,u.jsx)(o.ZP,{accessibilityModalLabel:_._('Verified merchant information', 'creator.verifiedMerchant.accessibilityModalLabel', 'Accessibility label for modal informing about a verified merchant'),isOpen:i,mobileAccessibilityCloseIconLabel:_._('Close', 'Close modal window', 'Close modal'),onDismiss:()=>{y({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:_._('Merchant verification badge icon', 'creator.verifiedMerchant.modalIcon', 'Badge indicating that a merchant or user is verified'),color:f,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:_._('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:_._('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:_._('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:_._('Learn more', 'creator.verifiedMerchant.buttonText', 'learn more about the verified merchant program by visiting help.pinterest.com')})})]})})})}},619937:(e,t,i)=>{"use strict";i.d(t,{$N:()=>m,Cu:()=>g,GY:()=>d,MZ:()=>r,NR:()=>c,Vn:()=>u,bC:()=>h,fm:()=>n,kM:()=>a,q6:()=>l,qp:()=>s,uV:()=>p,ug:()=>_,xL:()=>o});let n={DOWNLOAD_TEMPLATE:"DOWNLOAD_TEMPLATE",UPLOAD_TEMPLATE:"UPLOAD_TEMPLATE",HISTORY:"HISTORY",RESOURCES:"RESOURCES"},l={GENERAL:"GENERAL",CAMPAIGNS:"CAMPAIGNS",AD_GROUPS:"AD_GROUPS",ADS:"ADS",KEYWORDS:"KEYWORDS",PRODUCT_GROUPS:"PRODUCT_GROUPS",ERROR_CODES:"ERROR_CODES"},a={BILLING_HISTORY:"BILLING_HISTORY",BILLING_FORMS:"BILLING_FORMS",ORDER_LINES:"ORDER_LINES",PROMOTIONS:"PROMOTIONS",TAX_DOCUMENTS:"TAX_DOCUMENTS",DOCUMENTS:"DOCUMENTS",PREPAID_CAMPAIGN_SPEND:"PREPAID_CAMPAIGN_SPEND_SUMMARY"},r={GOOGLE_TAG_MANAGER:"Google Tag Manager",SHOPIFY:"Shopify",WOO_COMMERCE:"WooCommerce",WORDPRESS:"WordPress",SQUARESPACE:"Squarespace",WEEBLY:"Weebly",TEALIUM:"Tealium",MAGENTO:"Magento",ECWID:"Ecwid",BIG_COMMERCE:"BigCommerce",PREMMERCE:"Premmerce",SEGMENT:"Segment",BRANCH:"Branch",HIGHTOUCH:"Hightouch",EULERIAN:"Eulerian",ADOBE_CDP:"Adobe Real-Time CDP",ADOBE_COMMERCE:"Adobe Commerce",SALESFORCE_COMMERCE_CLOUD:"Salesforce Commerce Cloud"},o={GTM:"GTM",SHOPIFY:"SHOPIFY",WORDPRESS:"WORDPRESS",WOOCOMMERCE:"WOOCOMMERCE",TEALIUM:"TEALIUM"},s={PINTEREST_TAG:"PINTEREST_TAG",PINTEREST_TAG_MANUAL_SETUP_FLOW:"PINTEREST_TAG_MANUAL_SETUP_FLOW",PINTEREST_TEST_EVENTS:"PINTEREST_TEST_EVENTS",PINTEREST_TAG_EVENTS:"PINTEREST_TAG_EVENTS",PINTEREST_TAG_HEALTH:"PINTEREST_TAG_HEALTH",CONVERSION_HEALTH:"CONVERSION_HEALTH",CONVERSION_UPLOAD:"CONVERSION_UPLOAD",UPLOAD_HISTORY:"UPLOAD_HISTORY",PCA_UPLOAD_HISTORY:"PCA_UPLOAD_HISTORY",PCA_UPLOAD:"PCA_UPLOAD",CONVERSIONS_API:"CONVERSIONS_API",CONVERSIONS_API_ACCESS_TOKEN:"CONVERSIONS_API_ACCESS_TOKEN",CONVERSIONS_API_DEDUPLICATION:"CONVERSIONS_API_DEDUPLICATION",CONVERSIONS_API_PARTNER_SETUP_FLOW:"CONVERSIONS_API_PARTNER_SETUP_FLOW",CONVERSIONS_API_MANUAL_SETUP_FLOW:"CONVERSIONS_API_MANUAL_SETUP_FLOW",PINTEREST_EVENTS_OVERVIEW:"PINTEREST_EVENTS_OVERVIEW",PINTEREST_EVENT_HISTORY:"PINTEREST_EVENT_HISTORY",PAYLOAD_HELPER:"PAYLOAD_HELPER",CONVERSIONS:"CONVERSIONS",PINTEREST_EVENTS_OVERVIEW_BEFORE_SETUP:"PINTEREST_EVENTS_OVERVIEW_BEFORE_SETUP",PINTEREST_SETUP_API:"PINTEREST_SETUP_API"},d={PINTEREST_TAG_DASHBOARD:"PINTEREST_TAG_DASHBOARD",PINTEREST_TAG_LANDING:"PINTEREST_TAG_LANDING",PINTEREST_TAG_INSTRUCTIONS:"PINTEREST_TAG_INSTRUCTIONS",CONVERSION_UPLOAD_LANDING:"CONVERSION_UPLOAD_LANDING",CONVERSION_UPLOAD_VALIDATION:"CONVERSION_UPLOAD_VALIDATION",CONVERSION_UPLOAD_HISTORY:"CONVERSION_UPLOAD_HISTORY",PCA_UPLOAD_HISTORY:"PCA_UPLOAD_HISTORY",PCA_UPLOAD_LANDING:"PCA_UPLOAD_LANDING",PCA_UPLOAD_VALIDATION:"PCA_UPLOAD_VALIDATION"},u={UNREAD:"UNREAD",READ:"READ",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",DISMISSED:"DISMISSED",INVALID:"INVALID",MUTED:"MUTED",SNOOZED:"SNOOZED",PMP_REPORTED:"PMP_REPORTED",EMAILED:"EMAILED",BULK_DOWNLOADED:"BULK_DOWNLOADED",FILTERED:"FILTERED",PUSHED:"PUSHED"},c={DESTINATION:"destination",EXPIRY:"expiry",SOURCE:"attributionsrc",SOURCE_EVENT_ID:"source_event_id",SOURCE_EVENT_TYPE:"source_event_type",PRIORITY:"priority",CLICK_PRIORITY:"2",VIEW_PRIORITY:"1",CAMPAIGN_ID:"campaign_id",ADVERTISER_ID:"advertiser_id"},p="604800",_="86400",m={ATTRIBUTION_SOURCE_ID:"attributionsourceid",ATTRIBUTE_DESTINATION:"attributiondestination",ATTRIBUTE_ON:"attributeon"},h="click",g="view"},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})},561067:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_}),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:_}=(null==t?void 0:t.relatedArticle)||{};if(!a&&!u&&!p&&!_)return null;let m=()=>{(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:_||"",underline:"none",tapStyle:"compress",onClick:()=>m(),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:_||"",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:()=>m()})})]})]})}let _=({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})}},366284:(e,t,i)=>{"use strict";i.d(t,{G6:()=>a,i7:()=>r,oi:()=>n,u$:()=>l,un:()=>s,vU:()=>o});let n=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),l=e=>e?e.includes("Chrome")?n.CHROME:e.includes("Safari")?n.SAFARI:e.includes("Firefox")?n.FIREFOX:e.includes("Opera")?n.OPERA:e.includes("IE")?n.IE:e.includes("Edge")?n.EDGE:n.OTHER:n.OTHER;function a(e){return l(e)===n.SAFARI}function r(e){return l(e)===n.CHROME}function o(e){return l(e)===n.FIREFOX}function s(e){return l(e)===n.EDGE}},780678:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l,v:()=>n});let n=()=>"undefined"!=typeof navigator&&"getInstalledRelatedApps"in navigator;async function l(){if(!n())return[];try{let e=await navigator.getInstalledRelatedApps();return e}catch(e){return[]}}},752403:(e,t,i)=>{"use strict";i.d(t,{Bu:()=>m,Dm:()=>o,I:()=>f,NG:()=>p,QP:()=>u,S4:()=>d,Xe:()=>c,_f:()=>_,eT:()=>h,hm:()=>g,yQ:()=>s,ym:()=>y});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",_="https://help.pinterest.com/business/article/add-merchant-details-to-your-profile";function m({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 h(e){return e.badge_details?e.badge_details.map(e=>e.id):[]}function g(e){return(null==e?void 0:e.profile_badges)||[]}function f(e,t,i){return t&&i?t.map(e=>i.find(t=>t.id===e.trim())).filter(Boolean):[]}function y(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)}}},729884:(e,t,i)=>{"use strict";i.d(t,{P:()=>p,Z:()=>c});var n,l,a,r,o=i(167912),s=i(357998),d=i(897243),u=i(681669);function c(e){let{childDataKey__DEPRECATED:t}=(0,s.Q)(void 0!==r?r:r=i(669926),e,{useLegacyAdapter:()=>({})}),c=function(e){var t,l;let{data:a}=(0,s.Q)(void 0!==n?n:n=i(680880),e,{useLegacyAdapter:e=>{var t,i,n;return{carouselData:e.carousel_data&&{entityId:null!==(t=e.carousel_data.id)&&void 0!==t?t:"",index:e.carousel_data.index,carouselSlots:null!==(i=null===(n=e.carousel_data.carousel_slots)||void 0===n?void 0:n.map(e=>{var t,i,n,l;return{details:e.details,imageSignature:e.image_signature,image236x:(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},image474x:(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},image564x:(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},image736x:(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},slotId:e.id,title:e.title}}))&&void 0!==i?i:[]}}}});return null!=a&&a.carouselData?{index:a.carouselData.index,carouselId:a.carouselData.entityId,carouselSlots:null!==(t=null===(l=a.carouselData.carouselSlots)||void 0===l?void 0:l.map(({details:e,imageSignature:t,image236x:i,image474x:n,image564x:l,image736x:a,slotId:r,title:o})=>({details:e,imageSignature:t,imageSizeMap:[["236x",i],["474x",n],["564x",l],["736x",a]].reduce((e,[t,i])=>({...e,[t]:i}),{}),slotId:r,title:o})))&&void 0!==t?t:[]}:null}(t),p=function({pinKey:e,index:t}){let n;return n=null==e?{type:"deprecated",data:null}:"graphqlRef"===e.type?e:{type:"deprecated",data:e.data},(0,u.Zm)(void 0!==a?a:a=i(283996),n,{useGraphQLAdapter:e=>{var n,a;let r=null===(n=e.richMetadata||e.richSummary)||void 0===n?void 0:null===(a=n.products)||void 0===a?void 0:a[0],s=function(e){let t=(0,o.useFragment)(void 0!==l?l:l=i(240956),e);if(!t)return[];let n={},{image236x:a,image474x:r,image564x:s,image736x:d}=t;return[[a,"236x"],[r,"474x"],[s,"564x"],[d,"736x"]].forEach(([e,t])=>{(null!=e?e:[]).forEach(({canonicalImage:e,imageSignature:i})=>{i&&e&&(n={...n,[i]:{...n[i],[t]:{height:e.height,url:e.url,width:e.width}}})})}),Object.entries(n).map(([e,t])=>({imageSignature:e,imageSizeMap:t}))}(r);return r&&s.length?{carouselId:r.productId,carouselSlots:[{imageSignature:null,imageSizeMap:[["236x",e.image236x],["474x",e.image474x],["564x",e.image564x],["736x",e.image736x]].reduce((e,[t,i])=>({...e,[t]:i&&{height:i.height,url:i.url,width:i.width}}),{})},...s],index:t}:null},useLegacyAdapter:e=>{var i,n,l;let a=null===(i=(null==e?void 0:e.rich_metadata)||(null==e?void 0:e.rich_summary))||void 0===i?void 0:null===(n=i.products)||void 0===n?void 0:n[0],r=(null!==(l=null==a?void 0:a.additional_images)&&void 0!==l?l:[]).reduce((e,{canonical_images:t,image_signature:i})=>e.concat(t&&i?[{imageSignature:i,imageSizeMap:Object.keys(t).reduce((e,i)=>t[i]?{...e,[i]:{height:t[i].height,url:t[i].url,width:t[i].width}}:e,{})}]:[]),[]);return e&&a&&r.length?{carouselId:a.id,carouselSlots:[...e.images?[{imageSignature:null,imageSizeMap:(0,d.b)(e.images)}]:[],...r],index:t}:null}}).data}({pinKey:t,index:null==c?void 0:c.index});return p?{...p,carouselSlots:p.carouselSlots.map(e=>({...e,details:null,slotId:null,title:null}))}:c}function p({children:e,pinKey:t}){return e(c(t))}},768559:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(826067);let l=/\/today\/(article|best|trending)\/[\w-]+\/(\d+)/,a=(e,t)=>t?e.substring(t.length).split("/")[0]:e,r=({boardUrl:e,path:t,pinId:i,pinnerUserName:r,query:o,search:s,storyPinDataId:d})=>{var u;if(!t)return"";let c="";switch(t){case"/":case"/homefeed/":return"UserHomefeedResource";case r&&`/${r}/pins/`:return"UserPinsResource";case r&&`/${r}/`:case/\/_activity\//.test(t)&&t:return"UserActivityPinsResource";case/\/_created\//.test(t)&&t:return d?"UserStoryPinsFeedResource":"UserActivityPinsResource";case/\/_community\//.test(t)&&t:return"UserDiscoveredPinsResource";case/\/_saved\//.test(t)&&t:return"BoardlessPinsResource";case r&&`/${r}/_shopping_list/`:return"ShoppingListFeedResource";case/\/visual-search\//.test(t)&&t:return"VisualLiveSearchResource";case/\/pin\//.test(t)&&t:c="/pin/";let p=a(t,c);if(i!==p)return`RelatedPinFeedResource_${p}`;break;case/\/search\//.test(t)&&t:if(s){let e=(0,n.mB)(s,{shouldDecode:!1}).q||"";return`SearchResource_${e.toLowerCase()}`}if(o)return`SearchResource_${encodeURIComponent(o.q||"").toLowerCase()}`;break;case/\/categories\//.test(t)&&t:c="/categories/";let _=a(t,c);return`CategoryFeedResource_${_}`;case/\/discover\/topics\//.test(t)&&t:return"CategoryFeedResource";case/\/news_hub\//.test(t)&&t:c="/news_hub/";let m=a(t,c);return`NewsHubDetailsResource_${m}`;case/\/_tools\/more-ideas\//.test(t)&&t:return"BoardContentRecommendationResource";case/\/topics\//.test(t)&&t:c="/topics/";let h=a(t,c);return`TopicFeedResource_${h}`;case/\/source\//.test(t)&&t:c="/source/";let g=a(t,c);return`DomainFeedResource_${g}`;case/\/explore\//.test(t)&&t:c="/explore/";let f=a(t,c);return`SearchResource_${f}`;case e:case!!e&&/\/more_ideas\//.test(t)&&t:return"BoardFeedResource";case e&&t.indexOf(e)>-1&&t:return"BoardSectionPinsResource";case/\/brand_catalog\//.test(t)&&t:return"BrandCatalogFeedResource";case l.test(t)&&t:let y=(null===(u=t.match(l))||void 0===u?void 0:u[2])||"unknown";return`TodayArticleFeedResource_${y}`;case/\/today\//.test(t):return"TodayTabResource";case/\story_feed\//.test(t)&&t:if(s){let{feed_type:e,request_params:t}=(0,n.mB)(s);return`StoryFeedResource_${e}_${t}`}}return""},o=e=>{let t=null==e?void 0:e.pathname;return t?(t.match(/\/search\//)&&null!=e&&e.search&&(t+=e.search),t.toLowerCase()):""},s=({boardUrl:e,location:t,pinId:i,pinnerUserName:n,previousHistory:l,storyPinDataId:a,trackingParams:s,trackingParamsMap:d={}})=>{let u,c;if(!i||!s||!t)return;if(!d)return`${null!=s?s:""}~0`;let{pathname:p,search:_,query:m}=t,h=r({boardUrl:e,path:p,pinId:i,pinnerUserName:n,query:m,search:_,storyPinDataId:a,trackingParams:s,trackingParamsMap:d}),g=Object.keys(d),f=(p||"").startsWith("/pin/");if(f){let e=g.find(e=>"PinResource"!==e);u=e?d[e]:d.PinResource}else u=d[h];if(!u&&l&&l.length){let t=o(l[l.length-1].location);c=r({boardUrl:e,path:t,pinId:i,pinnerUserName:n,query:m,search:_,storyPinDataId:a,trackingParams:s,trackingParamsMap:d}),u=d[c]}return u||(u=`${s||""}~0`),u}},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})},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 _=({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 m=i(28754),h=i(541776),g=i(407043),f=i(499128),y=i(773285),v=i(343341),x=i(19121),b=i(717615),P=i(845772),A=i(231947),k=i(139405),S=i(600147),w=i(550393),D=i(492583),E=i(116674);let T=({aggregatedPinDataId:e,anchor:t,closeupAttributionId:i,comment:r,dismiss:o,isOpen:s,isReply:d,onEdit:u,onShowBlockUserModal:_,parentId:T,pinnerId:C,pinId:I})=>{let F=(0,c.ZP)(),j=(0,a.useDispatch)(),{logContextEvent:R}=(0,g.v)(),{showToast:z}=(0,v.F9)(),{checkExperiment:L}=(0,y.F)(),{anyEnabled:O}=L("web_m10n_business_access_orbac_ga"),{toggleAggregatedCommentHighlight:B}=(0,k.nf)(),N=(0,m.Z)(),[M,U]=(0,l.useState)(!1);(0,l.useEffect)(()=>{U(s)},[s,U]);let Z=(0,x.Z)(),K=(0,b.Z)(),H=(0,P.Z)(),{reportComment:G}=(0,E.f)(),V=null!=i?i:"",W=r.user.id,$=Z.isAuth&&V===Z.id,q="userdiditdata"===r.type,Y=(0,A.q6)(Z,null!=C?C:"",O?K:{}),J=(0,A.D3)(Z,W,O?K:{}),X=(0,A.D3)(Z,V,O?K:{}),Q=Z.isAuth&&(r.tagged_users||[]).filter(({id:e})=>e===Z.id).length>0,ee=async e=>{try{await B({aggregatedCommentId:r.id,pinId:I,isHighlighted:e}),R({event_type:101,component:13712,element:e?12475:12474,view_type:220,aux_data:{creator_id:W}}),z(({hideToast:t})=>(0,p.jsx)(f.ZP,{primaryAction:{accessibilityLabel:F._('Undo comment highlight or comment highlight removal', 'unifiedComment.unifiedCommentContainer.commentHighlightToast.a11yUndoButton', 'Undo comment highlight or comment highlight removal'),label:F._('Undo', 'unifiedComment.unifiedCommentContainer.commentHighlightToast.undoButton', 'Undo comment highlight or comment highlight removal'),size:"lg",onClick:()=>{B({aggregatedCommentId:r.id,pinId:I,isHighlighted:!e})}},onHide:t,text:e?F._('Highlight removed', 'unifiedComment.unifiedCommentContainer.popover.commentHighlightRemovalToast', 'Toast that tells user that they have successfully removed a comment highlight.'):F._('Comment highlighted', 'unifiedComment.unifiedCommentContainer.popover.commentHighlightToast', 'Toast that tells user that they have successfully highlighted a comment.')}))}catch(e){e.message&&z(({hideToast:t})=>(0,p.jsx)(f.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:F._('Highlight', 'Highlight a community post or comment', 'Highlight a community post or comment'),removeHighlight:F._('Remove highlight', 'Remove highlight for a community post or comment', 'Remove highlight for a community post or comment'),edit:F._('Edit', 'Edit a community post or comment', 'Edit a community post or comment'),delete:F._('Delete', 'Delete a community post or comment', 'Delete a community post or comment'),reportContent:F._('Report this content', 'Report a community post or comment', 'Report a community post or comment'),removeMention:F._('Remove @mention', 'closeup.activityItem.removeMention', 'Button that allows user to remove their @mention in a comment on a pin'),reportForNetzDG:F._('Report comment for NetzDG', 'commentOverflowMenu.option.reportForNetzDG', 'Report comment - NetzDG'),blockUser:F._('Block user', 'closeup.activityItem.blockUser', 'Block comment author')},el=new n.Ry(1);return M&&(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:Z.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"}),J&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(u),option:{label:en.edit,value:en.edit},dataTestId:"dropdown-item-edit"}),(J||X)&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(()=>{"aggregatedcomment"===r.type?N({aggregatedCommentId:r.id,aggregatedPinId:null!=e?e:"",feedType:d?"aggregatedComments":D.Z.UNIFIED_COMMENTS,orbacSubjectId:H,parentId:T,type:d?h.Rv.REPLY_TO_AGGREGATED:h.Rv.TOP,updateParentCommentCount:!0,pinId:I}):j((0,S.lg)({aggregatedPinDataId:null!=e?e:"",feedType:D.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"}),!J&&!Y&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(()=>{G(r.id,T,r.type)}),option:{label:en.reportContent,value:en.reportContent},dataTestId:"dropdown-item-report"}),Q&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(()=>{j((0,w.Q)(r.id)),z(({hideToast:e})=>(0,p.jsx)(f.ZP,{onHide:e,text:F._('@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"}),!J&&(0,p.jsx)(n.Lt.Item,{onSelect:ei(()=>{U(!1),_(),R({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 C=i(600636),I=i(133758);let F={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(${C})`},lovedLabelStyle:{boxShadow:"0 0px 8px rgba(0, 0, 0, 0.1)",left:"50%",transform:"translateX(-50%)"},lovedStyle:{backgroundImage:`url(${I})`}},j=({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:F.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:F.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:F.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:F.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:F.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 R=i(311716),z=i(559113),L=i(356997);let O={helpfulStyle:{backgroundImage:`url(${R})`},lovedStyle:{backgroundImage:`url(${z})`}},B=({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:O.lovedStyle},"data-test-id":"comment-reaction-tray-loved-emoji",height:16,width:16}),t&&(0,p.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:O.helpfulStyle},"data-test-id":"comment-reaction-tray-helpful-emoji",height:16,width:16})]})]})};var N=i(784590);let M=["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"],U=({commentId:e,isMarkedHelpfulByMe:t,isLovedByMe:i,isTry:a})=>{var r,o;let s=(0,x.Z)(),d=(0,N.Z)({name:"ApiResource",options:{url:a?`/v3/did_it/${e}/reacted_by/`:`/v3/aggregated_comments/${e}/reacted_by/`,field_sets:M}}),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)(B,{response:e})},e.id))})};var Z=i(814197);let K=({commentId:e,dismissReactionList:t,helpfulCount:i,isMarkedHelpfulByMe:a,isLovedByMe:r,isReactionListOpen:o,isTry:s,lovedCount:d,onReactionCountHover:u,onToggleHelpful:_,onToggleLove:m})=>{let h=(0,c.ZP)(),g=(0,l.useRef)(),[f,y]=(0,l.useState)(!1),v=!1,x=(d||0)+(i||0);a&&r&&(x-=1);let b=e=>()=>{y(e)},P=()=>{v=!0,u()},A=()=>{v=!1,setTimeout(()=>{v||t()},1e3)},k=(0,p.jsx)(n.xu,{"data-test-id":"comment-reaction-container-entry-point",children:f?(0,p.jsx)(n.iP,{onMouseLeave:b(!1),onMouseDown:b(!1),children:(0,p.jsx)(j,{setHelpful:_(!0),setLoved:m(!0)})}):(0,p.jsx)(n.iP,{onMouseEnter:b(!0),children:(0,p.jsx)(n.JO,{accessibilityLabel:h._('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:()=>{_(!1)(),m(!1)()},children:(0,p.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{backgroundImage:`url(${r?z:R})`}},"data-test-id":r?"comment-reaction-container-loved-emoji":"comment-reaction-container-helpful-emoji",height:16,width:16})}):k,x>0&&(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)(n.iP,{onMouseEnter:P,onMouseLeave:A,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:Z.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:A,children:(0,p.jsx)(U,{commentId:e,isMarkedHelpfulByMe:a,isLovedByMe:r,isTry:s})})})})]})]})};var H=i(513578),G=i(349700);function V(e){let{featuredCommentId:t,parentId:i,parentType:r,isDesktop:o,isLoading:s,isReadOnly:d,openOverflowMenu:u,replyingToCommentId:_,toggleHelpful:m,toggleLike:h,toggleReplyComposer:g,isORBACProfileManager:f,isVideo:y,storyPinDataId:v,pinId:x,closeupAttributionId:b,aggregatedPinDataId:P,closeupAttributionUsername:A,pinnerId:S,reactionListCommentId:w,showReactionListForComment:E,viewParameter:T}=e,C=(0,c.ZP)(),I=(0,k.lV)(),F=(0,a.useSelector)(({feeds:e})=>{let t=e[`${D.Z.AGGREGATED_COMMENT_REPLIES}:${i}`]||[],n=e[`${D.Z.AGGREGATED_COMMENTS}:${i}`]||[],l=t.concat(n);return l.reduceRight((e,{id:t})=>{let i=I[t];return i?[...e,i]:e},[])}),[j,R]=(0,l.useState)(1),z=j===F.length;return(0,p.jsxs)(l.Fragment,{children:[F.length>1&&(0,p.jsx)(n.iP,{onTap:()=>{R(z?0:F.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:z?C._('Hide replies', 'comment.button.hideReplies', 'hide comment replies'):(0,G.nk)(C.ngettext('View {{ commentCount }} reply', 'View {{ commentCount }} replies', F.length, 'comment.button.showReplies', 'show comment replies'),{commentCount:F.length})})]})}),(0,p.jsx)(el,{comments:F.slice(0,j),commentsDisabled:!1,featuredCommentId:t,gapSize:2,isDesktop:o,isLoading:s,isReadOnly:d,openOverflowMenu:u,toggleReplyComposer:g,parentId:i,parentType:r,replyingToCommentId:_,toggleHelpful:m,toggleLike:h,userAvatarSize:"sm",isORBACProfileManager:f,isVideo:y,storyPinDataId:v,pinId:x,closeupAttributionId:b,aggregatedPinDataId:P,closeupAttributionUsername:A,pinnerId:S,showReactionListForComment:E,reactionListCommentId:w,viewParameter:T})]})}var W=i(264322),$=i(298361),q=i(584595),Y=i(780280),J=i(248327),X=i(664569),Q=i(94089),ee=i(737849),et=i(90326);function ei(e){var t,i,m,P;let w;let{aggregatedPinDataId:D,closeupAttributionId:E,closeupAttributionUsername:C,comment:I,featuredCommentId:F,isDesktop:j,isReadOnly:R,isVideo:z,openOverflowMenu:L,toggleReplyComposer:O,parentId:B,parentType:N=X.o.pin,pinId:M,storyPinDataId:U,replyingToCommentId:Z,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:e_,username:em},id:eh,image_signatures:eg,is_translatable:ef,comment_count:ey,helpful_count:ev,tags:ex=[]}=I,[eb,eP]=(0,l.useState)(!1),eA=eb&&I.translatedText||I.text,ek=!ef||""===I.translatedText,eS=!1,ew=0,eD=!1,eE=!!I.marked_helpful_by_me,eT=[I.user],eC="",eI=new Date;"aggregatedcomment"===I.type?(eS=I.highlighted_by_pin_owner,ew=I.reaction_counts[1],eD=I.reaction_by_me>0,eT.push(...I.tagged_users),eC=`${em} ${eA}`,eI=new Date(I.created_at)):(ew=I.like_count,eD=I.liked_by_me,w=(I.images[0]||{})["150x150"],eC=`${em} ${I.details}`,eI=new Date(I.done_at));let eF=(0,c.ZP)(),ej=(0,x.Z)(),{logContextEvent:eR}=(0,g.v)(),{country:ez,isBot:eL}=(0,Y.B)(),{checkExperiment:eO}=(0,y.F)(),{showToast:eB}=(0,v.F9)(),eN=(0,a.useDispatch)(),eM=(0,l.useRef)(),{anyEnabled:eU}=eO("web_m10n_business_access_orbac_ga"),eZ=["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(ez),eK=1===I.comment_tag,eH=(0,b.Z)(),eG=eU?(0,A.lJ)(ej,eH):"",{nativeEngagementsHiddenForUser:eV}=(0,Q.G)(),{aggregatedCommentsHiddenForUser:eW,translateAggregatedComment:e$,updateAggregatedComment:eq}=(0,k.nf)(),eY=(0,o.Z)(),eJ="userdiditdata"===I.type,eX=(0,$.Z)(),eQ=ef&&eO("dweb_comment_translations").anyEnabled,e0=eJ&&eO("dweb_photo_commenting").anyEnabled,e1=eJ&&j&&eO("dweb_photo_comment_replies").anyEnabled,e8=eJ&&!j&&eO("mweb_photo_comment_replies").anyEnabled,e2=eJ&&eO("mweb_photo_commenting").anyEnabled,e3=!R&&!er&&eJ,e6=e3&&j&&eO("dweb_photo_comment_reactions").anyEnabled,e7=e3&&!j&&eO("mweb_photo_comment_reactions").anyEnabled,e9=[{offset:0,length:em.length,color:"darkGray"},...ex.map(e=>({...e,offset:(e.offset||0)+em.length+1,color:"shopping"}))],e4={SHOW_TRANSLATION:eF._('Show translation', 'comment.translateButton.showTranslation', 'text for translation button when translation is available'),TRANSLATING:eF._('Translating...', 'comment.translateButton.translating', 'text for translation button while translating'),SHOW_ORIGINAL:eF._('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,t_]=(0,l.useState)(h.A9.NONE),tm=e=>()=>{tn(e)};(0,l.useEffect)(()=>{eQ&&eR({event_type:10416,view_type:3,view_parameter:ed,component:"pin"===N?13696:13697})},[eR,N,eQ,ed]),(0,l.useEffect)(()=>{ey>0&&!eL&&eN((0,J.U)("aggregatedcomment"===I.type?"AggregatedCommentReplyFeedResource":"DidItCommentsResource",{options:{isUnifiedComment:!0,objectId:eh,redux_normalize_feed:!0}}))},[I.type,eh]);let th=N.toLowerCase()===X.o.aggregatedComment.toLowerCase()||N.toLowerCase()===X.n.didIt.toLowerCase(),tg=Object.values(X.n).includes(N.toLowerCase()),tf=I.user.first_name||"",ty=async({contentMarkdown:e,force:t,tags:i})=>{let n,l;to(!0);let a=I.id;if(th&&(n=N.toLowerCase()===X.n.didIt,a=B,l=I.id),a)try{await eY({force:t,fromUnifiedComment:!0,objectType:eJ||n?X.o.didIt:X.o.aggregatedComment,objectId:a,orbacSubjectId:eG,tags:i,text:e,replyToCommentId:l})}catch(e){if([q.ky,q.LJ].includes(e.code)&&j)return t_(e.code===q.ky?h.A9.WARNING:h.A9.BLOCK),to(!1),!1}return O&&O(void 0),to(!1),!0},tv=async({contentMarkdown:e,force:t,tags:i})=>{ta(!0);try{e0?await eN((0,S.IU)({id:I.id,details:e,pinId:null!=M?M:"",image_signatures:null!=eg?eg:[]})):await eq({commentId:I.id,force:t,orbacSubjectId:eG,tags:i,text:e})}catch(e){if([q.ky,q.LJ].includes(e.code)&&j)return t_(e.code===q.ky?h.A9.WARNING:h.A9.BLOCK),ta(!1),!1}return tn(!1),ta(!1),!0},tx=e=>()=>{tt(e),tc(e),e||eR({component:14349,event_type:9408})},tb=()=>{t_(h.A9.NONE)},tP=()=>{eb||I.translatedText||e$(I.id),eb||e5.current!==e4.SHOW_TRANSLATION?eb&&e5.current===e4.SHOW_ORIGINAL&&eR({event_type:10418,view_type:3,view_parameter:ed,component:"pin"===N?13696:13697}):eR({event_type:10417,view_type:3,view_parameter:ed,component:"pin"===N?13696:13697}),eP(!eb)};(0,l.useEffect)(()=>{eb&&ek&&(eP(!eb),eB(({hideToast:e})=>(0,p.jsx)(f.ZP,{onHide:e,text:eF._('Error - couldn\'t translate', 'comment.couldNotTranslate.toast', 'error toast that shows after unsuccessful translation'),type:"error"})))},[eb,ek]),eb?e5.current=I.translatedText?e4.SHOW_ORIGINAL:e4.TRANSLATING:e5.current=e4.SHOW_TRANSLATION;let tA=w&&(0,p.jsx)(n.xu,{marginTop:1,marginBottom:!j&&e2?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=w.url)&&void 0!==t?t:"",src:null!==(i=w.url)&&void 0!==i?i:"",color:"#efefef",naturalWidth:null!==(m=w.width)&&void 0!==m?m:1,naturalHeight:null!==(P=w.height)&&void 0!==P?P:1},w.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:`/${em}/`,children:(0,p.jsx)(u.Z,{isQuestion:eK,name:ec||em||"",size:ea,src:null!=e_?e_:""})})}),(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:[!j&&e2&&tA,(0,p.jsx)(W.Z,{isFirstTaggedUserAuthor:!0,shouldShowFirstNameOnly:!0,taggedUsers:eT,tags:e9,text:eC}),(j||!j&&!e2)&&tA,eQ&&(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})})})]})}),F===eh&&(0,p.jsx)(n.xu,{alignSelf:"center",color:"primary",height:8,rounding:"pill",minWidth:8})]}),eS&&(0,p.jsx)(n.xu,{marginTop:4,marginBottom:3,children:(0,p.jsx)(n.xv,{size:"100",children:(0,G.nk)(eF._('Highlighted by @{{ closeupAttributionUsername }}', 'comment.highlighted.label', 'label on comment that has been highlighted by the Pin creator'),{closeupAttributionUsername:C})})}),(!R||eZ)&&(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:[!R&&(0,p.jsx)(n.xu,{"data-test-id":"comments-time-passed",children:(0,p.jsx)(n.xv,{color:"subtle",size:"200",children:eX(eI,!0)})}),!R&&(!er||eU)&&(!eJ||e1||e8)&&(0,p.jsx)(n.xu,{"data-test-id":"comment-reply-button-container",children:(0,p.jsx)(n.iP,{onTap:()=>{O&&O(I,B,N)},children:(0,p.jsx)(n.xv,{color:"subtle",size:"200",weight:"bold",children:eF._('Reply', 'comment.button.reply', 'entry point to reply to comment')})})}),!R&&!er&&(!eJ||e6||e7)&&(j?(0,p.jsx)(K,{commentId:eh,dismissReactionList:()=>{ei(void 0)},helpfulCount:ev,isMarkedHelpfulByMe:eE,isLovedByMe:eD,isTry:eJ,lovedCount:ew,onReactionCountHover:()=>{ei(eh),eR({event_type:9906,component:"pin"===N?13696:13697,view_type:3,view_parameter:ed})},onToggleHelpful:e=>()=>{eE!==e&&en(eh,!e,eJ)()},onToggleLove:e=>()=>{eD!==e&&el(eh,!e,eJ)()},isReactionListOpen:es===eh}):(0,p.jsxs)(n.xu,{display:"flex",alignItems:"center","data-test-id":"reactions-likeWithCountButton",children:[(0,p.jsx)(n.hU,{accessibilityLabel:eF._('Like', 'comment.button.like', 'like or unlike comment'),icon:"heart",iconColor:eD?"red":"gray",size:"xs",onClick:el(eh,eD,eJ)}),ew>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:ew})})]})),!(ej.id===ep&&eK)&&(!er||eU)&&(0,p.jsx)(n.xu,{ref:eM,"data-test-id":"comment-more-options",children:(0,p.jsx)(n.hU,{accessibilityLabel:eF._('More', 'comment.button.more', 'see more options for comment'),icon:"ellipsis",iconColor:"gray",size:"xs",onClick:()=>{j?tt(!te):L&&L(I)}})})]}),!R&&!er&&!j&&(!eJ||e7)&&(0,p.jsx)(n.xu,{marginStart:6,children:(0,p.jsx)(n.iP,{fullWidth:!1,onTap:en(eh,eE,eJ),children:(0,p.jsxs)(n.kC,{height:"100%",alignItems:"center",gap:{row:1,column:0},dataTestId:"helpful-reaction",children:[(0,p.jsx)(_,{color:"subtle",isMarkedHelpful:eE}),(0,p.jsx)(n.xv,{color:"subtle",size:"200",weight:"bold",children:eF._('Helpful', 'comment.button.helpful', 'mark or unmark comment as helpful')}),ev>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:ev})})]})})})]})]})]}),j&&(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:tv,onCancelItem:tm(!1),objectType:X.o.aggregatedComment,postedPhoto:w,showCommentComposer:!0,statusType:"textInFlightNested",viewParameter:ed})}),Z===eh&&(0,p.jsx)(n.xu,{marginTop:3,marginStart:th?0:12,children:(0,p.jsx)(H.Z,{commentWarningModalState:tp,dismissCommentWarningModal:tb,initialText:th?`${tf} `:"",initialTags:th?[{offset:0,object_id:eu,length:tf.length,tag_type:1}]:[],isReplyEditor:tg,onAddItem:ty,onCancelItem:()=>{O&&O()},objectType:X.o.aggregatedComment,showCommentComposer:!0,statusType:"textInFlightNested",viewParameter:ed})})]}),(ey>0||tr)&&(0,p.jsx)(n.xu,{marginStart:12,marginTop:4,children:(0,p.jsx)(V,{featuredCommentId:F,isDesktop:j,isLoading:tr,isReadOnly:R,parentId:eh,parentType:I.type,replyingToCommentId:Z,toggleReplyComposer:O,openOverflowMenu:L,toggleHelpful:en,toggleLike:el,isORBACProfileManager:er,pinId:M,closeupAttributionId:E,isVideo:z,storyPinDataId:U,aggregatedPinDataId:D,closeupAttributionUsername:C,pinnerId:eo,showReactionListForComment:ei,reactionListCommentId:es,viewParameter:ed})}),j&&(!R||eZ)&&(0,p.jsx)(T,{anchor:eM.current,comment:I,dismiss:e=>{tt(!1),e||eR({component:14349,event_type:10128})},isOpen:te,isReply:th,onEdit:tm(!0),onShowBlockUserModal:tx(!0),parentId:B,closeupAttributionId:E,pinnerId:eo,pinId:M,aggregatedPinDataId:D}),ts&&(0,p.jsx)(s.N,{children:(0,p.jsx)(d.Z,{aggregatedPinDataId:D,didItDataId:eh,onClose:e=>()=>{td(!e)},pinId:null!=M?M:"",username:em,users:[I.user]})}),tu&&(0,p.jsx)(ee.Z,{firstName:null!=ec?ec:"",onBlockUser:()=>{eN((0,et.Ge)({id:eu,orbacSubjectId:eG,blockSource:"comment",blockContext:eh,logContextEvent:eR})),eW(eu),eV(eu),eR({event_type:101,component:13712,element:87,view_type:220,aux_data:{creator_id:ej.isAuth?ej.id:null}}),eR({component:14349,event_type:9407}),tc(!1),eB(({hideToast:e})=>(0,p.jsx)(f.ZP,{onHide:e,text:(0,G.nk)(eF._('You\'ve blocked {{ username }}', 'comment.blockAuthor.toast', 'confirmation toast that shows after user blocks comment author'),{username:em}).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:_,openOverflowMenu:m,toggleReplyComposer:h,parentId:g,parentType:f,replyingToCommentId:y,toggleHelpful:v,toggleLike:x,userAvatarSize:b,isORBACProfileManager:P,isVideo:A,storyPinDataId:k,pinId:S,closeupAttributionId:w,closeupAttributionUsername:D,pinnerId:E,showReactionListForComment:T,reactionListCommentId:C,viewParameter:I}=e,F=(0,c.ZP)();return(t=k?"story":A?"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:F._('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:S,pinOwnerUserId:w,pinType:t,parentId:g,parentType:f,commentType:"aggregatedComment"},componentType:"pin"===f?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:_,parentId:g,parentType:f,openOverflowMenu:m,replyingToCommentId:y,toggleReplyComposer:h,toggleHelpful:v,toggleLike:x,userAvatarSize:b,isORBACProfileManager:P,aggregatedPinDataId:i,closeupAttributionUsername:D,closeupAttributionId:w,pinId:S,storyPinDataId:k,isVideo:A,pinnerId:E,showReactionListForComment:T,reactionListCommentId:C,viewParameter:I})})},e.id)),(0,p.jsx)(n.$j,{accessibilityLabel:F._('Comments loading', ' - ', ' -- '),show:u})]}):(0,p.jsxs)(n.xu,{alignSelf:"center",width:"100%",children:[(0,p.jsx)(n.$j,{accessibilityLabel:F._('Comments loading', ' - ', ' -- '),show:u}),d&&(0,p.jsx)(n.xv,{align:s?"start":"center",color:"subtle",children:F._('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)(),_=(0,n.useRef)(null),m=(0,a.Yc)()?"#111111":"#FFFFFF",[h,g]=(0,n.useState)(!1),f=p._('...view', 'comment.module.toggle.view', 'label on comment module to open coment thread'),y=p._('...view all', 'comment.module.toggle.viewAll', 'label on comment module to open coment thread');(0,n.useEffect)(()=>{_.current&&g(_.current.scrollHeight>_.current.offsetHeight)},[_,g,c]);let v=(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 v(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(v(l,`${i}a`)).concat(x(e.color,a,i,`${i}b`))}),n=n.concat(v(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:_,children:[n,i&&(0,o.jsx)(l.xu,{display:"inlineBlock",dangerouslySetInlineStyle:{__style:{background:`linear-gradient(270deg, ${m} 50%, ${m}00 100%)`}},position:h?"absolute":void 0,bottom:!!h||void 0,right:!!h||void 0,width:h?140:void 0,children:(0,o.jsxs)(l.xv,{align:"end",weight:"bold",children:["\xa0",e?y:f]})})]})})})()})}},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:()=>_,w:()=>m});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 _(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 m(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)}}},407043:(e,t,i)=>{"use strict";i.d(t,{B:()=>s,v:()=>o});var n=i(385740),l=i(425288),a=i(785893);let{Provider:r,useHook:o}=(0,l.Z)("ContextLogger");function s({children:e,value:t}){let{setViewContextData:i}=(0,n.sV)();return t.injectSetViewContextDataFromHook=i,(0,a.jsx)(r,{value:t,children:e})}},112690:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(407043);let l=()=>(0,n.v)().logContextEvent},643010:(e,t,i)=>{"use strict";i.d(t,{F6:()=>c,Hs:()=>u,Yc:()=>s,vs:()=>d});var n=i(667294),l=i(844974),a=i(867820);let r="theme",o="dark"===(0,l.qn)(r),s=()=>o;function d(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(s())},[t]),e}let u=()=>{(0,l.Nh)(r,"dark"),(0,a.My)("mweb.dark_mode.enable"),window.location.reload()},c=()=>{(0,l.L_)(r),(0,a.My)("mweb.dark_mode.disable"),window.location.reload()}},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})},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)},903095:(e,t,i)=>{"use strict";i.d(t,{Mi:()=>l,lO:()=>a});var n=i(425288);let{Provider:l,useMaybeHook:a}=(0,n.Z)("pageContext")},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},332611:(e,t,i)=>{"use strict";let n;i.d(t,{Am:()=>f,Ig:()=>h,N:()=>b,Sd:()=>y,YX:()=>x,be:()=>g,fO:()=>p,kd:()=>v,pz:()=>_});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)},_=(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)},m=(e,t,i,l)=>(r,o,d,u=!1,c,_)=>(m,h)=>{let{experiences:g,experiencesMulti:f}=h(),y=null,v=!0;if(!u){var x;y=(v=g[r]&&g[r].experience_id===o)?g[r]:Array.isArray(f[r])&&(null===(x=f[r])||void 0===x?void 0:x.find(e=>e.experience_id===o))}if(y&&y.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=v?s.Yb:s.xW;switch(t){case"dismissed":return u.callDelete().then(()=>{m(h(r,o,t)),m(p(void 0,n)),i&&l&&i({event_type:l,object_id_str:o.toString()})});case"completed":return u.callUpdate().then(()=>{!d&&(m(h(r,o,t)),m(p(void 0,n)),i&&l&&i({event_type:l,object_id_str:o.toString()}))});case"viewed":return m(h(r,o,t)),u.callUpdate().then(()=>{1000162===r&&m(p()),i&&l&&i({event_type:l,object_id_str:o.toString()})});case"completedWithoutHomefeed":return u.callUpdate().then(()=>{d||m(h(r,o,t)),i&&l&&i({event_type:l,object_id_str:o.toString()})})}}return Promise.resolve()},h=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(m("UserExperienceViewedResource","viewed",e,4503),[e]);return t},g=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(m("UserExperienceCompletedResource","completed",e,6567),[e]);return t},f=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(m("UserExperienceResource","dismissed",e,6568),[e]);return t},y=()=>{let e=(0,r.Z)(),t=(0,l.useCallback)(m("UserExperienceCompletedResource","completedWithoutHomefeed",e,6567),[e]);return t},v=(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(v(e));let{experiences:n}=i();return n[e]},b=(e,t,i)=>l=>{i&&(n=i),l(v(e,t)),t&&Object.keys(t).length>0&&l(_([e],!1,t,i))}},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}})},378518:(e,t,i)=>{"use strict";i.d(t,{_:()=>s,a:()=>d});var n=i(667294),l=i(702664),a=i(594736),r=i(332611),o=i(780280);let s=({extraContext:e,id:t,shouldUsePlacedExperience:i=!0})=>{let s=(0,n.useRef)(),d=(0,l.useDispatch)(),{isBot:u}=(0,o.B)(),c=(0,l.useSelector)(e=>e.experiences[t]);return(0,n.useEffect)(()=>{d((0,r.kd)(t))},[d,c,t]),(0,n.useEffect)(()=>{i||(0,a.ZP)(s.current,e)||(d((0,r.pz)([t],u,e)),s.current=e)},[d,e,u,t,i]),c},d=e=>(s(e),(0,l.useSelector)(t=>t.experiencesMulti[e.id]))},413764:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(785893);let l=({size:e})=>(0,n.jsxs)("svg",{height:e,style:{display:"block"},viewBox:"-3 -3 82 82",width:e,children:[(0,n.jsx)("circle",{cx:"38",cy:"38",fill:"white",r:"40"}),(0,n.jsx)("path",{d:"M27.5 71c3.3 1 6.7 1.6 10.3 1.6C57 72.6 72.6 57 72.6 37.8 72.6 18.6 57 3 37.8 3 18.6 3 3 18.6 3 37.8c0 14.8 9.3 27.5 22.4 32.5-.3-2.7-.6-7.2 0-10.3l4-17.2s-1-2-1-5.2c0-4.8 3-8.4 6.4-8.4 3 0 4.4 2.2 4.4 5 0 3-2 7.3-3 11.4C35.6 49 38 52 41.5 52c6.2 0 11-6.6 11-16 0-8.3-6-14-14.6-14-9.8 0-15.6 7.3-15.6 15 0 3 1 6 2.6 8 .3.2.3.5.2 1l-1 3.8c0 .6-.4.8-1 .4-4.4-2-7-8.3-7-13.4 0-11 7.8-21 22.8-21 12 0 21.3 8.6 21.3 20 0 12-7.4 21.6-18 21.6-3.4 0-6.7-1.8-7.8-4L32 61.7c-.8 3-3 7-4.5 9.4z",fill:"#fb7072",fillRule:"evenodd"})]})},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,{$$:()=>f,C5:()=>D,CZ:()=>g,EX:()=>a,FZ:()=>n,HH:()=>o,KK:()=>A,Kp:()=>m,Ln:()=>h,Mv:()=>S,OX:()=>r,P6:()=>E,Rb:()=>b,Xn:()=>x,YX:()=>c,bu:()=>d,cO:()=>y,ci:()=>s,fM:()=>v,k6:()=>k,oY:()=>l,sX:()=>w,vZ:()=>p,wA:()=>P,x7:()=>u,xE:()=>_});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)",_="var(--color-red-pushpin-700)",m="var(--color-red-pushpin-800)",h="var(--color-pink-flaminglow-0)",g="var(--color-white-mochimalist-0)",f="var(--color-gray-roboflow-50)",y="var(--color-gray-roboflow-200)",v="var(--color-gray-roboflow-300)",x="var(--color-gray-roboflow-400)",b="var(--color-gray-roboflow-500)",P="var(--color-gray-roboflow-600)",A="var(--color-gray-roboflow-700)",k="var(--color-purple-mysticool-200)",S="var(--color-purple-mysticool-300)",w="var(--color-purple-mysticool-500)",D="var(--color-teal-spabattical-100)",E="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:_,naturalHeight:m,naturalWidth:h,onError:g,onLoad:f,role:y,sizes:v,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:_,naturalHeight:m,naturalWidth:h,onError:g,onLoad:f,role:y,sizes:v,src:x,srcSet:b,children:o})}},121151:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>d,b7:()=>r.b7,bN:()=>o,p4:()=>s});var n=i(240684),l=i(50286),a=i(785893),r=i(968121);let o=(0,n.ZP)({resolved:{},chunkName:()=>"DesktopModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e(51879).then(i.bind(i,373420)),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:()=>373420}),s=(0,n.ZP)({resolved:{},chunkName:()=>"MobileModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e(72430).then(i.bind(i,430322)),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:()=>430322});function d(e){let t=(0,l.ZP)(),i=void 0===e.isOpen||e.isOpen;if("desktop"===t&&i){let{isOpen:t,mobileAccessibilityCloseIconLabel:i,mobileAllowScroll:n,mobileHideCloseIcon:l,mobileIsFullscreen:r,mobileIsSlideUp:s,type:d,mobileIsFooter:u,zIndex:c,...p}=e;return(0,a.jsx)(o,{...p})}let{allowMediaPlay:n,allowScroll:r,role:d,size:u,_dangerouslyDisableScrollBoundaryContainer:c,...p}=e;return(0,a.jsx)(s,{...p,isOpen:i})}},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:_,footer:m,heading:h,onDismiss:g,role:f,size:y,subHeading:v}){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:_,heading:h,footer:m,onDismiss:()=>{r.Z.resume(),g()},role:f,size:y,subHeading:v,padding:"none",children:p})})})}},430322:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});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),_=i(965900),m=i(785893);let h=()=>{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 f({accessibilityModalLabel:e,align:t="center",allowClickAndDrag:i,allowScroll:f=!1,children:y,closeOnOutsideClick:v=!0,footer:x,heading:b,isOpen:P,mobileAccessibilityCloseIconLabel:A,mobileHideCloseIcon:k,mobileIsFooter:S,mobileIsFullscreen:w,mobileIsSlideUp:D,onDismiss:E,subHeading:T,type:C,zIndex:I}){let F=(0,o.ZP)(),{isRTL:j}=(0,d.B)(),R=(0,n.useRef)(!1),[z,L]=(0,n.useState)(!1),{setAppFocusState:O}=(0,_.I)(),B=(0,p.ZP)();return((0,n.useEffect)(()=>{(0,c.My)(`mweb_unauth.mobile_modal.${C||"unknown_type"}.did_mount.is_open.${String(!!P)}`)},[P,C]),(0,n.useEffect)(()=>(R.current=(0,a.Z)(()=>{R.current&&L(!0)}),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&R.current&&(window.cancelAnimationFrame(R.current),R.current=null)}),[]),(0,n.useEffect)(()=>(P?(s.Z.pause(),O(!1)):(s.Z.resume(),O(!0)),()=>{P&&(s.Z.resume(),O(!0))}),[O,P]),(0,n.useEffect)(()=>{let e=P&&!f;return e&&h(),()=>{e&&g()}},[P,f]),P)?(0,m.jsx)(u.Z,{allowClickAndDrag:i,children:(0,m.jsx)(l.mh,{children:(0,m.jsxs)(l.xu,{"aria-label":e,display:"inlineBlock",zIndex:I||r.ZM,position:"relative",role:"dialog",children:[(0,m.jsx)(l.iP,{accessibilityLabel:F._('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.${C||"unknown_type"}.with_dismissal`,{x:e.clientX,y:e.clientY}),v&&E()},tapStyle:"none",children:(0,m.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,m.jsxs)(l.xu,{position:"fixed",color:"default","data-test-id":"mobile-signup-mask",dangerouslySetInlineStyle:D?(0,r.Vf)({isFullscreen:w,isTablet:"tablet"===B,isShowing:z,isRelatedInterestsModal:"related_interests_modal"===C}):(0,r.JN)({variant:w?"fullscreen":"tablet"===B?"tablet":S?"footer":"signup"===C?"signup":void 0}),children:[(0,m.jsxs)(l.kC,{alignItems:"center",justifyContent:"start",width:"100%",gap:{row:2,column:0},children:[A&&!k?(0,m.jsx)(l.xu,{padding:2,"data-test-id":"mobile-modal-cancel-button",children:(0,m.jsx)(l.hU,{accessibilityLabel:A,iconColor:"darkGray",icon:"cancel",onClick:E,padding:4,size:"sm"})}):null,b?(0,m.jsx)(l.kC.Item,{flex:"grow",children:(0,m.jsx)(l.kC,{direction:"column",alignItems:"center",justifyContent:"center",children:(0,m.jsxs)(l.xu,{"data-test-id":"mobile-modal-heading",dangerouslySetInlineStyle:{__style:A&&!k?{marginRight:j?-10:50,marginLeft:j?50:-10}:{}},children:[w?b:(0,m.jsx)(l.xv,{align:t,weight:"bold",size:"400",children:b}),T?(0,m.jsx)(l.xv,{align:t,children:T}):null]})})}):null]}),(0,m.jsxs)(l.xu,{overflow:"auto",children:[y,x]})]})]})})}):null}},968121:(e,t,i)=>{"use strict";i.d(t,{JN:()=>d,Vf:()=>u,ZM:()=>o,b7:()=>r,i_:()=>s});var n=i(883119),l=i(643010),a=i(379764);let r=new n.Ry(1e3),o=new n.H3([a.Z]),s=12,d=({variant:e})=>({__style:"fullscreen"===e?{touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"90vw",height:"70vh",borderRadius:"8px",zIndex:1,left:"5vw",bottom:"13vh",overflowY:"hidden"}:"tablet"===e?{border:void 0,borderRadius:"32px",top:"50%",left:"50%",minWidth:"350px",touchAction:"none",transform:"translate(-50%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1}:"footer"===e?{border:(0,l.Yc)()?void 0:"1px solid #efefef",bottom:0,boxShadow:"0 0 16px rgba(0,0,0, 0.16)",left:0,touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100vw",zIndex:1}:"signup"===e?{border:void 0,borderRadius:"32px",top:"50%",touchAction:"none",transform:"translate(0%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1,left:"8px",right:"8px",background:"#FFFFFF"}:{border:(0,l.Yc)()?void 0:"1px solid #efefef",touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100vw",zIndex:1,left:"0px",bottom:0,boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",overflow:"hidden",borderRadius:"32px 32px 0 0"}}),u=({isFullscreen:e,isTablet:t,isShowing:i,isRelatedInterestsModal:n})=>{let a={border:(0,l.Yc)()?void 0:"1px solid #efefef",touchAction:"none",width:"100vw",height:"",zIndex:1,left:0,bottom:0,borderRadius:"32px 32px 0px 0px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"},r=i?"translateY(0)":"translateY(100vh)";return a.height=e?"100vh":"",t&&n&&(a={...a,width:425,left:"50%",transform:"translateX(-50%)"},r=i?"translate(-50%, 0)":"translate(-50%, 100vh)"),{__style:{...a,transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:r}}}},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:_,type:m,dataTestId:h,duration:g=2e3,onHide:f,href:y,onClick:v,openNewPage:x,imageUrl:b}){var P;let A;let k=(0,a.ZP)(),[S,w]=(0,n.useState)(!1),[D,E]=(0,n.useState)(!1),T=(0,n.useRef)(),C=()=>{w(!0),T.current=setTimeout(f,s)},I=()=>{T.current=setTimeout(C,g)},F=()=>{T.current&&clearTimeout(T.current)};(0,r.Z)(()=>(setTimeout(()=>E(!0),100),I(),F)),b&&(A={image:(0,o.jsx)(l.Ee,{alt:"string"==typeof i?i:`${i[0]} ${i[1]}`,fit:"cover",naturalHeight:1,naturalWidth:1,src:b})});let j=(0,o.jsx)(l.FN,{_dangerouslySetThumbnail:e,_dangerouslySetPrimaryAction:t,primaryAction:u,text:i,thumbnail:null!==(P=A)&&void 0!==P?P:_,type:m,dismissButton:c,helperLink:p}),{marginTop:R,opacity:z,pointerEvents:L,position:O,transform:B,transition:N,visibility:M}=d({deviceType:k,hiding:S,visible:D});return(0,o.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{transform:B,transition:N,visibility:M,pointerEvents:L}},"data-test-id":null!=h?h:"toast",onMouseEnter:F,onMouseLeave:I,opacity:z,position:O,marginTop:R,display:"flex",children:y?(0,o.jsx)(l.Tg,{href:y,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{y.startsWith("#")&&(e.preventDefault(),t()),null==v||v(e)},target:x?"blank":null,rounding:"pill",children:j}):j})}},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)},897243:(e,t,i)=>{"use strict";i.d(t,{b:()=>l});let n=({height:e,url:t,width:i})=>({height:e,url:t,width:i}),l=e=>Object.entries(e).reduce((e,[t,i])=>({...e,[t]:i&&n(i)}),{})},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}}},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})})}},357527:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=["AT","BE","BG","CH","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HU","HR","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SK","SI","SE"]},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),_=e.ngettext('{{ minutes }} minute ago', '{{ minutes }} minutes ago', s, ' - ', ' -- '),m=e.ngettext('{{ hours }} hour ago', '{{ hours }} hours ago', d, ' - ', ' -- '),h=e.ngettext('{{ days }} day ago', '{{ days }} days ago', u, ' - ', ' -- '),g=e.ngettext('{{ weeks }} week ago', '{{ weeks }} weeks ago', c, ' - ', ' -- '),f=e.ngettext('{{ years }} year ago', '{{ years }} years ago', p, ' - ', ' -- '),y=e.ngettext('{{ minutes }}m', '{{ minutes }}m', s, 'minutes ago abbreviated', 'minutes ago abbreviated'),v=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:f,{years:p}).join(""):c>0?(0,a.nk)(i?b:g,{weeks:c}).join(""):u>0?(0,a.nk)(i?x:h,{days:u}).join(""):d>0?(0,a.nk)(i?v:m,{hours:d}).join(""):s>0?(0,a.nk)(i?y:_,{minutes:s}).join(""):e._('Just now', ' - ', ' -- ')}}},898781:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>o,oz:()=>a,q6:()=>l});var n=i(425288);let{Provider:l,Consumer:a,useHook:r}=(0,n.Z)("i18n"),o=r},892819:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(898781),l=i(66699);let a=(e,t)=>{let i=t||0,n=10**i,l=+(i?e*n:e).toFixed(8),a=Math.floor(l),r=l-a,o=r>.49999999&&r<.50000001?a%2==0?a:a+1:Math.round(l);return i?o/n:o},r=({maximumFractionDigits:e,minimumFractionDigits:t,style:i,currency:n})=>{let l={maximumFractionDigits:e,minimumFractionDigits:t};return i?{...l,style:i,..."currency"===i?{currency:n,currencyDisplay:"symbol"}:{}}:l},o=e=>{try{0..toLocaleString([e])}catch(e){return!1}return!0},s=(e,t)=>{if(t){let{minimumFractionDigits:i,maximumFractionDigits:n}=new Intl.NumberFormat(e,{style:"currency",currency:t}).resolvedOptions();if(void 0!==i&&void 0!==n)return{minimumFractionDigits:i,maximumFractionDigits:n}}return{minimumFractionDigits:2,maximumFractionDigits:2}};function d(){let e=(0,n.ZP)();return(t,i,n)=>{let d=0,u=0,c=n&&n.style||void 0,p=n&&n.shortform||!1,_=n&&n.uplimit||void 0,m=n&&n.currency||void 0,h=!!_&&i>=_,g=_&&h?_:i;if("currency"===c){let{minimumFractionDigits:e,maximumFractionDigits:i}=s(t,m);d=void 0===n||void 0===n.maximum_fraction_digits?i:n.maximum_fraction_digits,u=void 0===n||void 0===n.minimum_fraction_digits?e:n.minimum_fraction_digits}else d=void 0===n||void 0===n.maximum_fraction_digits?0:n.maximum_fraction_digits,u=void 0===n||void 0===n.minimum_fraction_digits?0:n.minimum_fraction_digits;if(p&&g>999&&(d=void 0===n||void 0===n.shortform_maximum_fraction_digits?2:n.shortform_maximum_fraction_digits,u=0),d<u)return String(g);let f=g,y="",v=[{"100M":{value:1e8,localeKey:e._('億', 'Abbreviation for one hundred millions. This abbreviation is only used in Chinese, Japanese and Korean.', 'Abbreviation for one hundred millions. This abbreviation is only used in Chinese, Japanese and Korean.')}},{"10k":{value:1e4,localeKey:e._('万', 'Abbreviation for ten thousand. This abbreviation is only used in Chinese, Japanese and Korean.', 'Abbreviation for ten thousand. This abbreviation is only used in Chinese, Japanese and Korean.')}}],x=[{b:{value:1e9,localeKey:e._('B', 'Abbreviation for one billion.', 'Abbreviation for one billion.')}},{m:{value:1e6,localeKey:e._('M', 'Abbreviation for one million.', 'Abbreviation for one million.')}},{k:{value:1e3,localeKey:e._('k', 'Abbreviation for one thousand.', 'Abbreviation for one thousand.')}}],b=/^zh|ja|ko/.test(t);if(p&&g>999){let e=b?v:x;for(let t=0;t<e.length;t+=1){let i=Object.keys(e[t])[0],n=e[t][i].value;if(g>=n){f=a(g/n*Math.pow(10,d))/Math.pow(10,d),y=e[t][i].localeKey;break}}}if(null==f)return"";let P=f.toLocaleString([o(t)&&"ar-SA"!==t?t:"en-US"],r({maximumFractionDigits:d,minimumFractionDigits:u,currency:m,style:c}));return y&&y.length>0?(0,l.Z)(e._('{{formattedNumber}}{{numberSuffix}}', 'i18n.usePrettyNumberFormat.prettyNumberFormat', 'String used to concatenate formatted number and localized number suffix'),{formattedNumber:P,numberSuffix:y})+(h?"+":""):P+(h?"+":"")}}},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:_,impressionsFramework:m,isPaused:h,loggingId:g,objectIdStr:f,slotIndex:y,trackCarousel:v,viewData:x,viewParameter:b,viewType:P}){let{logContextEvent:A}=(0,l.v)(),k=m||a.Z,S=(0,n.useRef)(null),w=n=>{var l,a,p,m,h,k,w;let D=r[_],E=D.idType,T={clientTrackingParams:d,endTime:n.endTime,[E]:g,slotIndex:y,time:n.startTime,renderDuration:n.endTime-n.startTime,type:t,...c,forcedExit:"removed"===n.forcedExit?0:void 0};"Pin"===_&&(T={...T,pinCellWidth:(null===(l=S.current)||void 0===l?void 0:l.getBoundingClientRect().width)||0,pinCellHeight:(null===(a=S.current)||void 0===a?void 0:a.getBoundingClientRect().height)||0,windowWidth:null===(p=window)||void 0===p?void 0:p.innerWidth,windowHeight:null===(m=window)||void 0===m?void 0:m.innerHeight});let C={component:o,object_id_str:f,view_type:P,view_data:x||{},view_parameter:b};v?e&&A({event_type:7352,event_data:{pinCarouselSlotImpressions:[{...T,carouselDataId:Number(e.id),carouselSlotId:(null===(h=e.carousel_slots)||void 0===h?void 0:h[null!==(k=e.index)&&void 0!==k?k:0])&&Number(e.carousel_slots[null!==(w=e.index)&&void 0!==w?w:0].id),slotIndex:e.index}]},...C,aux_data:{...s}}):A({clientTrackingParams:d,event_type:D.eventType,...C,element:u,event_data:{[D.impressionType]:"Story"===_?T:[T]},aux_data:{closeup_navigation_type:i,...s}})},D=(0,n.useCallback)(()=>{try{S.current instanceof HTMLElement&&k.start(S.current).onExitViewport(w).setDebugId(g||"unknown")}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}},[S.current]);(0,n.useEffect)(()=>(p&&!k.inExperiment&&k.setExperimentStatus(!0),h||D(),()=>{S.current instanceof HTMLElement&&k.stop(S.current)}),[D]);let E=(0,n.useRef)(h);return(0,n.useEffect)(()=>{E.current&&!h&&D(),E.current=h},[h,D]),S}let s=({children:e,...t})=>e({impressionTrackerRef:o(t)})},349700:(e,t,i)=>{"use strict";i.d(t,{Wc:()=>s,bF:()=>u,nk:()=>o,r7:()=>c});var n=i(667294),l=i(785893);function a(e,t,i){return e.split(i).map(e=>{if(e.match(i)){let i=e.replace(/[\{\}]/g,"").trim();if(Object.prototype.hasOwnProperty.call(t,i))return t[i]}return e})}let r=/(\{\{\s*\w+\s*\}\})/g;function o(e,t){return a(e,t,r)}function s(e,t){return a(e,t,r).join("")}let d=/(\{\s*\w+\s*\})/g;function u(e,t){return a(e,t,d)}let c=({text:e})=>Array.isArray(e)?e.map((e,t)=>(0,l.jsx)(n.Fragment,{children:e},t)):e},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},755742:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,F5:116,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}},313047:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DEFAULT_HEIGHT:()=>p,DEFAULT_PADDING_Y:()=>_,FixedFooter:()=>g,FixedHeader:()=>h});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,_=3;function m({children:e,footerConfig:t,headerConfig:i,height:d,hideOnScroll:m,hideOnScrollState:{isHidden:h,updateHiddenState:g},noPadding:f,paddingY:y=_,type:v,zIndex:x}){let b,P;let{headerLimitedOverflow:A,ignoreObstructions:k,zIndexForGestaltBug:S}=i||{},{appUpsellFooterConfig:w,footerInLego:D,navFooterConfig:E}=t||{},T=!!w,C="header"===v?"top":"bottom",{anyEnabled:I}=(0,u.F)().checkExperiment("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),F=(0,a.vs)(),j=I?F:(0,a.Yc)(),R=(0,n.useRef)(null),z=(0,n.useRef)(null);(0,n.useEffect)(()=>{try{if(!k){let e=R.current;z.current=A&&e&&Array.isArray(e.children)?e.children[0]:e,z.current instanceof HTMLElement&&s.Z.addObstruction(C,z.current)}}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}return()=>{!k&&z.current instanceof HTMLElement&&s.Z.removeObstruction(C,z.current)}},[k,A,C,j]);let L="top"===C?"relative":"fixed",O=(null!=d?d:p)+((null==i?void 0:i.overrideTop)||0),B=m||E?{transition:D?"transform 300ms ease-in-out, opacity 300ms ease-in-out":"transform 200ms linear",...h?{transform:`translateY(${"top"===C?-O:O}px)`,opacity:D?0:1}:Object.freeze({})}:{},N="relative"!==L||null!=i&&i.noGutter?0:2,M=N?-N:0,U=j?"rgba(0,0,0,.95)":"rgba(255,255,255,.95)";return j&&("header"===v?b=-1:P=-1),(0,c.jsx)(l.xu,{ref:R,dangerouslySetInlineStyle:{__style:{top:b,bottomStyle:P,...!x||S?{zIndex:S||1}:Object.freeze({}),...A?{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({}),...B}},zIndex:S?void 0:x,"data-test-id":v,display:T?"flex":void 0,height:d&&!D?d:void 0,position:L,bottom:"footer"===v,top:"header"===v,left:!0,right:!0,marginStart:D?"auto":M,marginEnd:D?"auto":M,onTransitionEnd:()=>{(m||E)&&z.current&&(h?s.Z.removeObstruction(C,z.current):s.Z.addObstruction(C,z.current))},width:D||"fixed"!==L?void 0:"100%",children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:(null==i?void 0:i.isTranslucent)&&U||(null==i?void 0:i.isTransparentBackground)&&o.FZ||r.wN,height:D?T?void 0:null!=d?d:p:"100%",boxShadow:D?"0px 0px 8px rgba(0, 0, 0, 0.1)":void 0,marginBottom:D&&!(null!=E&&E.docked)?16:void 0,...A?{pointerEvents:"auto"}:Object.freeze({}),...null!=i&&i.useRoundedCorners?{zIndex:5,borderTopRightRadius:17,borderTopLeftRadius:17,borderBottomRightRadius:0,borderBottomLeftRadius:0}:Object.freeze({})}},paddingX:("footer"!==v||f?0:4)+N,paddingY:f?0:y,position:"relative",width:E?E.footerWidth:T?void 0:"100%",rounding:D&&!(null!=E&&E.docked)?"pill":void 0,display:D||null!=t&&t.alignCenter?"flex":void 0,marginStart:D?"auto":void 0,marginEnd:D?"auto":void 0,alignItems:null!=t&&t.alignCenter?"center":void 0,children:"function"==typeof e?e({updateHiddenState:g}):e})})}function h({hasBorder:e,headerLimitedOverflow:t,ignoreObstructions:i,isTranslucent:n,isTransparentBackground:a,noGutter:r,overrideTop:o,useRoundedCorners:s,zIndexForGestaltBug:u,...p}){let{noPadding:h,paddingY:g=_,zIndex:f}=p;return(0,c.jsx)(l.Le,{top:o||0,height:t?44+8*(h?0:g):void 0,zIndex:f||void 0,children:(0,c.jsx)(d.Z,{hideOnScroll:p.hideOnScroll,children:l=>(0,c.jsx)(m,{...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)(m,{...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}},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)},713930:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(67347);function l(e,t){return new Promise((i,l)=>{if(document.querySelector(`script[src="${e}"]`)){let e=0;if("FACEBOOK"===t){if(window.FB)i();else{let t=setInterval(()=>{window.FB||20===e?(clearInterval(t),i()):(e+=1,(0,n.nP)(`mweb.loadScript.facebook.tries_${e}`,{sampleRate:.01}))},100)}}else if("GSI"===t){if(window.google)i();else{let t=setInterval(()=>{window.google||20===e?(clearInterval(t),i()):(e+=1,(0,n.nP)(`mweb.loadScript.gsi.tries_${e}`,{sampleRate:.01}))},100)}}else i()}else{let t=document.createElement("script");t.src=e,t.async=!0,t.addEventListener("load",()=>i()),t.addEventListener("error",l),document.getElementsByTagName("head")[0].appendChild(t)}})}},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}})},567450:(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,{Z:()=>r});let l=new class{constructor(){n(this,"onResumeListeners",[]),n(this,"onPauseListeners",[]),n(this,"inExp",!1),n(this,"windowInFocus",!0)}setExperiment(e=!1){this.inExp=e}onSessionResume(e){return this.onResumeListeners.push(e),this}onSessionPause(e){return this.onPauseListeners.push(e),this}removeResumeListener(e){this.onResumeListeners.filter(t=>t!==e)}removePauseListener(e){this.onPauseListeners=this.onPauseListeners.filter(t=>t!==e)}getAppState(){return this.windowInFocus?0:void 0}},a=e=>{if(e.isHidden){let{reason:t}=e;l.windowInFocus=!1,l.onPauseListeners.forEach(e=>e(t))}else l.windowInFocus=!0,l.onResumeListeners.forEach(e=>e())};setTimeout(()=>{window.addEventListener("beforeunload",()=>a({isHidden:!0,reason:"beforeunload"})),window.addEventListener("focus",()=>a({isHidden:!1})),window.addEventListener("blur",()=>a({isHidden:!0,reason:"blur"})),window.addEventListener("pageshow",()=>a({isHidden:!1})),window.addEventListener("pagehide",()=>a({isHidden:!0,reason:"pagehide"})),void 0!==document.hidden?document.addEventListener("visibilitychange",()=>a(document.hidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1}),!1):void 0!==document.webkitHidden&&document.addEventListener("webkitvisibilitychange",()=>a(document.webkitHidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1}),!1)},0);let r=l},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)||""},623568:(e,t,i)=>{"use strict";i.d(t,{NK:()=>g,P6:()=>a,ZE:()=>m,Zt:()=>h,_J:()=>s,_S:()=>f,cL:()=>p,jL:()=>o,oN:()=>l,rM:()=>_,sV:()=>d,sY:()=>u});var n=i(179888);let l=5e3,a=l/n.gJ,r=["Uploaded by user"],o=(e,t)=>!!t&&!e,s=e=>!!e&&5!==e,d=e=>["email","messages","deep_linking"].includes(e),u=e=>!!e&&"gif"===e,c=e=>"pinstory"===e,p=({embedSrc:e,embedSubtype:t,embedType:i})=>!!e&&!u(i)&&!c(t),_=({link:e,mobileLink:t,trackedLink:i})=>!t&&!i&&!e,m=e=>/pin.it/gim.test(e||""),h=({link:e,mobileLink:t,origImageUrl:i,trackedLink:n})=>t||n||e||i||"",g=(e,t)=>({deeplinkUri:{android:`pin/${e}/repin`,iOS:`repin/${e}`},mwebUri:{pathname:`/pin/${e}/repin/`,state:{trackingParams:t.state?t.state.trackingParams:""}}});function f(e){for(let t of r)if(e===t)return!1;return!0}},992750:(e,t,i)=>{"use strict";i.d(t,{eg:()=>r,kt:()=>h,rw:()=>_,fs:()=>u,eK:()=>c,Ly:()=>p,BY:()=>m,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,_=(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(", "):""},m=e=>`/pin/${e}/`,h=(e,t)=>{let i=`Pinterest video from ${t}: `.concat(e);return""===t?e:i},g=({pinId:e,seoUrl:t})=>t&&"string"==typeof t?t:m(e)},935879:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});let n=e=>{let t=e.replace(/-/g,"_");if(t.startsWith("es"))return"es_LA";if(t.startsWith("ar"))return"ar_AR";switch(t){case"de":return"de_DE";case"fr":return"fr_FR";case"it":return"it_IT";case"ja":return"ja_JP";case"nl":return"nl_NL";case"tr":return"tr_TR";case"en_AU":return"en_US";default:return t}},l=e=>`//connect.facebook.net/${n(e)}/sdk.js`},383690:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(667294),l=i(773285);let a=()=>{let e=(0,l.F)();return(0,n.useCallback)(()=>{e.flush()},[e])}},276602:(e,t,i)=>{"use strict";i.d(t,{E:()=>a,S:()=>l});var n=i(425288);let{Provider:l,useMaybeHook:a}=(0,n.Z)("pwtSurfaceContext")},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})},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)})}},886858:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r,k:()=>a});let n=new Set(["bookmarks","client_tracking_params","get_page_metadata","in_nux","invite_code","original_referrer","source","top_level_source","top_level_source_depth"]),l=e=>!n.has(e)&&!e.startsWith("__track__");function a(e){return e.split(/([^=]+=[^=]+),/).filter(Boolean).reduce((e,t)=>{let[i,n]=t.split("=");return e[i]=JSON.parse(n),e},{})}let r=e=>e?Object.keys("object"==typeof e&&e||{}).filter(e=>"string"==typeof e).filter(l).sort().map(t=>`${t}=${JSON.stringify(null==e[t]?null:e[t])}`).join(","):""},248327:(e,t,i)=>{"use strict";i.d(t,{U:()=>c,b:()=>p});var n=i(214494),l=i(886858),a=i(718368),r=i(414327),o=i(782677),s=i(483025);let d=(e,{bookmark:t,options:i,schema:n})=>{let l=n||s.Z[e];return"function"==typeof l?l({resource:e,options:i,bookmark:t}):l};function u({fetchOptions:e,resource:t,retry:i}){return(s,c)=>{var p,_,m;let{bookmark:h,paginationGroup:g,headers:f,options:y,refresh:v,schema:x}=e,b=(0,l.Z)(y);if(null!==(p=c().resources)&&void 0!==p&&null!==(_=p[t])&&void 0!==_&&null!==(m=_[b])&&void 0!==m&&m.fetching&&!i)return Promise.resolve();let P=i?i.bookmark:h,A=P?{...y,bookmarks:[P],pagination_group:g}:y;return s((0,r.LQ)(t,y,!0)),n.Z.create(t,A).callGet(void 0,f).then(l=>{var c;let{data:p}=l.resource_response,[_]=l.bookmarks||[];if(Array.isArray(p)&&0===p.length&&_&&_!==a.q){let n=i?i.count:0,l=n>=a.s;if(!l)return s(u({resource:t,fetchOptions:e,retry:{count:n+1,bookmark:_}}))}c=p,"VisualSearchFlashlightUnifiedResource"===t&&(c=c.results);let{normalizedResponse:m,resourceSchema:g}=function({data:e,opts:{bookmark:t,options:i,schema:n},resource:l}){let a=d(l,{bookmark:t,options:i,schema:n}),r=a&&e?(0,o.Fv)(e,a):null;return{normalizedResponse:r,resourceSchema:a}}({data:p,opts:{bookmark:h,options:y,schema:x},resource:t})||{normalizedResponse:null,resourceSchema:void 0};return h?(s((0,r.Dm)(t,y,l,m,g)),n.Z.fetchMoreCompleteCallback&&n.Z.fetchMoreCompleteCallback({resource:t,options:y,response:l,normalizedResponse:m,refresh:v,resourceSchema:g})):(s((0,r.Sr)(t,y,l,m,v,g)),n.Z.fetchCompleteCallback&&n.Z.fetchCompleteCallback({resource:t,options:y,response:l,normalizedResponse:m,refresh:v,resourceSchema:g})),Promise.resolve()},e=>{s((0,r.Tl)(t,y,e))})}}let c=(e,{bookmark:t,headers:i,options:n,schema:l,paginationGroup:a})=>u({resource:e,fetchOptions:{bookmark:t,headers:i,options:n,refresh:!1,schema:l,paginationGroup:a}}),p=(e,{headers:t,options:i,schema:n})=>u({resource:e,fetchOptions:{headers:t,options:i,refresh:!0,schema:n}})},338739:(e,t,i)=>{"use strict";i.d(t,{AF:()=>n,KK:()=>l,aW:()=>o,cR:()=>a,se:()=>s,zP:()=>r});let n="CREATE_COMPLETE",l="FETCHING",a="FETCH_ERROR",r="FETCH_COMPLETE",o="FETCH_MORE_COMPLETE",s="RESOURCE_INVALIDATE"},414327:(e,t,i)=>{"use strict";i.d(t,{Dm:()=>s,LQ:()=>a,Sr:()=>o,Tl:()=>r,XM:()=>l,jB:()=>d});var n=i(338739);function l(e,t,i,l){return{type:n.AF,payload:{resource:e,options:t,response:i,normalizedResponse:l}}}function a(e,t,i){return{type:n.KK,payload:{resource:e,options:t,isFetching:i}}}let r=(e,t,i)=>({type:n.cR,payload:{resource:e,options:t,error:i}});function o(e,t,i,l,a,r){return{type:n.zP,payload:{isRefresh:a,normalizedResponse:l,options:t,resource:e,response:i,schema:r}}}function s(e,t,i,l,a){return{type:n.aW,payload:{resource:e,options:t,response:i,normalizedResponse:l,schema:a}}}function d(e,t){return{type:n.se,payload:{resource:e,optionsOrOptionsKey: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:_,noCache:m,options:h,schema:g}=null!=e?e:{name:"DisabledResource",options:null},f=!e,y=(0,l.useDispatch)(),v=(0,r.Z)(h),x=(0,n.useRef)(null),b=(0,n.useRef)(),P=(0,a.useHistory)(),A=P&&"POP"!==P.action,k=e=>(e[_]||u)[v]||u,S=(0,l.useSelector)(({resources:e})=>k(e).nextBookmark),w=(0,l.useSelector)(({resources:e})=>k(e).data),D=(0,l.useSelector)(({resources:e})=>k(e).auxData),E=(0,l.useSelector)(({resources:e})=>k(e).error),T=(0,l.useSelector)(({resources:e})=>!!k(e).fetching),C="object"==typeof D&&"string"==typeof(null==D?void 0:D.pagination_group)?D.pagination_group:void 0,I=!!E||void 0!==w,F=I&&!T&&S===d.q,j=!!(I&&t&&A&&!f),[R,z]=(0,n.useState)(j),L=(0,n.useCallback)((e,t)=>{x.current=y((0,s.U)(_,{options:h,schema:g,bookmark:e,headers:p,paginationGroup:t}))},[y,_,v,g,p]),O=()=>{x.current=y((0,s.b)(_,{options:h,schema:g,headers:p}))},{isBot:B}=(0,o.B)(),N=()=>{if(!f&&b.current!==v){let e=void 0===b.current;b.current=v,!I&&!T||e&&E&&c(E)?L():(!B&&m||j)&&O()}};(0,n.useEffect)(()=>{i||N()}),i&&N();let M=(0,n.useCallback)(()=>{f||(O(),z(!0))},[f,s.b,_,v,p,z]),U=(0,n.useCallback)(()=>{!S||F||T||f||L(S,C)},[f,L,S,F,T,C]);if(x.current){if(I&&!T)x.current=null;else if(i)throw x.current}let Z=(0,n.useRef)({auxData:void 0,data:void 0,error:void 0,fetchMore:U,isAtEnd:!1,isFetching:!1,isLoaded:!1,isRefreshing:!1,nextBookmark:void 0,refresh:M}),K={auxData:D,data:w,error:E,fetchMore:U,isAtEnd:F,isFetching:T,isLoaded:I,isRefreshing:R,nextBookmark:S,refresh:M};return(0,l.shallowEqual)(K,Z.current)||(R&&(Z.current.data||!j)&&!(0,l.shallowEqual)(K.data,Z.current.data)&&(K.isRefreshing=!1,z(!1)),Z.current=K),Z.current}},857079:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(883119),l=i(785893);function a({accessibilityLabel:e}){return(0,l.jsx)(n.kC,{alignItems:"center",justifyContent:"center",children:(0,l.jsx)(n.$j,{accessibilityLabel:e,show:!0})})}},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},909499:(e,t,i)=>{"use strict";i.d(t,{Hd:()=>d,_R:()=>o,gi:()=>a,lw:()=>n,oD:()=>l,wF:()=>s,zh:()=>r});let n={PINS:"pins",PINS_BUYABLE:"buyable_pins",PINS_MINE:"my_pins",PINS_VIDEO:"videos",BOARDS:"boards",USERS:"users",IDEA_PINS:"idea_pins",MY_CONTENT:"my_content"},l=e=>{let t=Object.values(n).find(t=>t===e);return null!=t?t:void 0},a=e=>{switch(e){case n.PINS:return 0;case n.PINS_MINE:return null;case n.PINS_BUYABLE:return 1;case n.PINS_VIDEO:return 2;case n.BOARDS:return 3;case n.USERS:return 4;default:return null}},r=e=>{switch(e){case 0:return n.PINS;case 1:return n.PINS_BUYABLE;case 2:return n.PINS_VIDEO;case 3:return n.BOARDS;case 4:return n.USERS;default:return null}},o=e=>{switch(e){case n.PINS_MINE:return 107;case n.PINS_BUYABLE:return 254;case n.PINS_VIDEO:return 3306;case n.BOARDS:return 44;case n.USERS:return 45;case n.MY_CONTENT:return 189;case n.PINS:default:return 43}},s=e=>{switch(e){case n.PINS:return 60;case n.PINS_MINE:case n.MY_CONTENT:return 63;case n.PINS_BUYABLE:return 3800;case n.PINS_VIDEO:return 64;case n.BOARDS:return 61;case n.USERS:return 62;default:return null}},d=(e,t)=>{if(t)switch(e){case n.USERS:return 1000392;case n.PINS_BUYABLE:return 1000391;case n.PINS:default:return 29}switch(e){case n.USERS:return 1000432;case n.PINS_BUYABLE:return 1000433;case n.PINS:default:return 1000269}}},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"}},350576:(e,t,i)=>{"use strict";i.d(t,{H5:()=>h,Xn:()=>_,an:()=>m});var n=i(826067);let l="BING",a="GOOGLE",r="YAHOO",o="YANDEX",s="RAKUTEN",d="NAVER",u="AMP_CACHE",c="DUCKDUCKGO",p=[a,l,r,o,s,d,u,c];function _(e){return p.includes(function(e){let{hostname:t}=(0,n.Qc)(e,!0);if(t&&e){if(t.includes("google.")||e.includes("android-app://com.google.android.googlequicksearchbox"))return a;if(t.includes("bing."))return l;if(t.includes("yahoo."))return r;if(t.includes("yandex."))return o;else if(t.includes("rakuten."))return s;else if(t.includes("naver."))return d;else if(t.includes("duckduckgo."))return c;else if(t.includes(".cdn.ampproject.org"))return u}return""}(e))}function m(e){return e||"undefined"!=typeof document&&document.referrer||""}let h=e=>{let t=new URL(e);return t.searchParams.set("nii","t"),t.href}},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})}}},619277:(e,t,i)=>{"use strict";i.d(t,{o$:()=>l,ty:()=>a,vE:()=>r});var n=i(425288);let{Provider:l,MaybeConsumer:a,useMaybeHook:r}=(0,n.Z)("inviteContext")},296011:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s,t:()=>d});var n=i(667294),l=i(167912),a=i(214494);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={};class s extends n.Component{constructor(...e){super(...e),r(this,"state",{invite:o[this.props.invite_code]||null,loaded:this.props.invite_code in o})}componentDidMount(){let{invite_code:e}=this.props;a.Z.create("InviteCodeMetadataResource",{invite_code:e}).callGet().then(t=>{if(t&&t.resource_response){let i=t.resource_response.data;o[e]=i,this.setState({invite:i,loaded:!0})}}).catch(()=>{this.setState({invite:null,loaded:!0})})}render(){let{invite:e,loaded:t}=this.state;return t?this.props.children(e):null}}class d extends n.Component{constructor(...e){super(...e),r(this,"state",{invite:o[this.props.invite_code]||null,loaded:this.props.invite_code in o})}componentDidMount(){let{invite_code:e,relayEnvironment:t,inviteQuery:i}=this.props;(0,l.fetchQuery)(t,i,{invite_code:e}).subscribe({next:e=>{var t;if(null!==(t=e.v3GetInviteCodeQuery)&&void 0!==t&&t.data){let t=e.v3GetInviteCodeQuery;this.setState({invite:t,loaded:!0})}},error:()=>{this.setState({invite:null,loaded:!0})}})}render(){let{invite:e,loaded:t}=this.state;return t?this.props.children(e):null}}},223815:(e,t,i)=>{"use strict";i.d(t,{U:()=>r,Z:()=>o});var n=i(755742),l=i(785893);let a=()=>{},r=e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()};function o({allowClickAndDrag:e,allowEsc:t,allowMediaPlay:i,allowScroll:o,children:s}){let d=e=>{t&&e.keyCode===n.Z.ESCAPE||r(e)};return(0,l.jsx)("div",{onAbort:r,onAnimationEnd:r,onAnimationIteration:r,onAnimationStart:r,onBlur:a,onCanPlay:i?a:r,onCanPlayThrough:r,onChange:r,onClick:e?a:r,onCompositionEnd:r,onCompositionStart:r,onCompositionUpdate:r,onContextMenu:r,onCopy:r,onCut:r,onDoubleClick:r,onDurationChange:r,onEmptied:r,onEncrypted:r,onEnded:r,onError:r,onFocus:a,onInput:r,onInvalid:r,onKeyDown:d,onKeyPress:d,onKeyUp:d,onLoad:r,onLoadedData:r,onLoadedMetadata:r,onLoadStart:r,onMouseDown:r,onMouseEnter:r,onMouseLeave:r,onMouseMove:e?a:r,onMouseOut:r,onMouseOver:r,onMouseUp:e?a:r,onPaste:r,onPause:r,onPlay:r,onPlaying:r,onProgress:r,onRateChange:r,onScroll:o?a:r,onSeeked:r,onSeeking:r,onSelect:r,onStalled:r,onSubmit:r,onSuspend:r,onTimeUpdate:r,onTouchCancel:r,onTouchEnd:e?a:r,onTouchMove:e?a:r,onTouchStart:e?a:r,onTransitionEnd:r,onVolumeChange:r,onWaiting:r,onWheel:r,children:s})}},985913:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(858142);let l=/\{\{\s*(\w+)\s*\}\}/g,a=(e,t)=>(0,n.Z)(l,e,t)},858791:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")},858142:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=(e,t,i)=>t?t.replace(e,(e,t)=>i&&Object.prototype.hasOwnProperty.call(i,t)?i[t]:""):""},66699:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(985913),l=i(858791);let a=(e,t)=>{let i={};return Object.keys(t).forEach(e=>{i[e]=t[e]?(0,l.Z)(t[e].toString()):""}),(0,n.Z)(e,i)}},52022:(e,t,i)=>{"use strict";i.d(t,{S:()=>o,Z:()=>s});var n=i(667294),l=i(616550),a=i(53987),r=i(867820);let o=e=>(0,a.L6)(e)?"pin":(0,a.am)(e)?"board":(0,a.Xn)(e)?"login":(0,a.C$)(e)?"home":(0,a.cD)(e)?"profile":(0,a.dr)(e)?"ideas":(0,a.gT)(e)?"ideas-root":(0,a.tZ)(e)?"videos":(0,a.Q0)(e)?"videos-category":(0,a.$Y)(e)?"article":(0,a.E0)(e)?"shopping-spotlight":(0,a.Zz)(e)?"today":(0,a.j8)(e)?"unauth-profile":(0,a.f1)(e)?"shopping-root":(0,a.OX)(e)?"shopping-category":"other";function s(){let e=(0,l.useLocation)();return(0,n.useCallback)(({action:t,item:i,within:n})=>{let l=o(e);(0,r.My)(`logged_out_product.interaction.${l}.${t}`,{item:i||"none",within:n||"none"})},[e])}},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:_,shouldToggleOnBodyTap:m,arrowDirection:h}){var g;let[f,y]=(0,n.useState)(!1),[v,x]=(0,n.useState)(0),b=(0,n.useRef)(null),P=(0,a.ZP)(),A=null===(g=b.current)||void 0===g?void 0:g.getBoundingClientRect().height;(0,n.useEffect)(()=>{d&&s&&y(!0)},[d,s]),(0,n.useLayoutEffect)(()=>{void 0===u&&b.current&&A&&A>v&&x(Math.ceil(A))},[v,A,u]);let k=()=>{o&&(y(!f),c&&!f&&c())},S=h||"arrow-forward";return(0,r.jsxs)(l.iP,{onTap:m?k: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:f?`rotate(${"arrow-down"===S?"180deg":"-90deg"})`:""}},marginEnd:4,children:(0,r.jsx)(l.iP,{onTap:k,children:(0,r.jsx)(l.JO,{accessibilityLabel:P._('Expand icon', 'accordion.actionButton', 'accessibility label on accordion'),color:"default",icon:S,size:20})})})]}),(0,r.jsxs)(l.xu,{"data-test-id":"accordion-panel",opacity:f||p?1:0,height:!f&&p?_:f?u||v:0,overflow:void 0===u?"hidden":"auto",marginEnd:p?7:0,dangerouslySetInlineStyle:{__style:{transition:`all 0.3s ease-in-out, visibility 0s linear ${f?"0s":"0.3s"}`,visibility:f||p?"visible":"hidden"}},children:[(0,r.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{display:f?"none":"block"}},children:p}),(0,r.jsx)(l.xu,{opacity:f||p?1:0,dangerouslySetInlineStyle:{__style:{visibility:f?"visible":"hidden",transition:`all 0.3s ease-in-out, visibility 0s linear ${f||p?"0s":"0.3s"}`}},ref:b,children:e})]})]})}o.defaultProps={isCollapsible:!0,isContentLoaded:!0}},413252:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});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 _({isExpanded:e,description:t,maxHeight:i,handleToggle:_,Wrapper:m}){let h=(0,n.useRef)(null),[g,f]=(0,n.useState)(!1),y=(0,s.ZP)(),{checkExperiment:v}=(0,d.F)(),x=(0,o.vs)(),b=v("web_new_line_description").anyEnabled,P=v("web_hashtags_in_description_display").anyEnabled;(0,n.useEffect)(()=>{if(!(h&&h.current))return;let{height:e}=h.current.getBoundingClientRect();e>i&&f(!0)},[h,i]);let A=(0,c.jsx)(p,{isExpanded:e,onToggle:_,expandedText:y._('less', 'closeup.description.toggle.lessButton', 'Toggle less description button'),collapsedText:y._('... more', 'closeup.description.toggle.moreButton', 'Toggle more description button')}),k=x?"#111111":"#FFFFFF";return(0,c.jsx)(m,{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:h,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:["... ",A]})]})}),g&&!e&&(0,c.jsx)(l.xu,{position:"absolute",right:!0,bottom:!0,width:140,dangerouslySetInlineStyle:{__style:{background:`linear-gradient(270deg, ${k} 50%, ${k}00 100%)`,textAlign:"end"}},children:A})]})})})}},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"})})}},343341:(e,t,i)=>{"use strict";i.d(t,{F9:()=>a,Zo:()=>l});var n=i(425288);let{Provider:l,useHook:a}=(0,n.Z)("toastManagerContext")},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)||(()=>{})}},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))},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]}},829407:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(667294);let l=e=>{(0,n.useEffect)(e,[])}},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}},179888:(e,t,i)=>{"use strict";i.d(t,{$f:()=>a,Cy:()=>d,DR:()=>l,EB:()=>p,Fm:()=>s,Y7:()=>c,bR:()=>o,gJ:()=>r,lG:()=>u});var n=i(172045);let l=1,a=2,r=1e3,o=1e3,s=1e3,d=Object.freeze({DEFAULT:0,LOAD_START:1,LOADED_METADATA:2,LOADED_DATA:3,PLAYING:4,PAUSED:5,SEEKING:6,STALLING:7,FAILED:8,ENDED:9}),u=Object.freeze({MEDIA_ERR_ABORTED:1,MEDIA_ERR_NETWORK:2,MEDIA_ERR_DECODE:3,MEDIA_ERR_SRC_NOT_SUPPORTED:4});function c(e){return e+"-"+(0,n.Z)()}function p(){return(0,n.Z)()}},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}},139405:(e,t,i)=>{"use strict";i.d(t,{pb:()=>v,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 _={feature_map:Object.freeze({})},m=(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},h=(e=_,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]=m(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]=m(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]:m(e[t.id],t)}:{},l=n[0].creator_reply,a=l?{[l.id]:m(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]:m(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:f,useHook:y}=(0,s.Z)("AggregatedComments");function v({children:e}){let t=(0,l.useSelector)(({resources:e})=>e.UnifiedCommentsResource),i=_;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]=m(i[t.id],t),e),{});i={...i,...l}});let[a,r]=(0,n.useReducer)(h,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)(f,{value:s,children:e})}function x(){let{dispatch:e}=y();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}=y();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}),[]),_=(0,n.useCallback)(e=>i({type:"SET_IS_AUTOPLAY",payload:e}),[]),m=(0,n.useCallback)(e=>i({type:"SET_VIEWPORT_SIZE",payload:e}),[]),h=(0,n.useCallback)(e=>i({type:"TOGGLE_TYPEAHEAD_OVERLAY",payload:e}),[]),g=(0,n.useMemo)(()=>({pauseAutoplay:l,setCurrentVideo:c,setFooterPlusButtonVisible:p,setIsAutoplay:_,setViewportSize:m,toggleTypeaheadOverlay:h,setAppFocusState:r,appUI:t}),[l,c,p,_,m,h,r,t]);return(0,n.useEffect)(()=>{a.Z.onSessionResume(()=>{r(!0)}).onSessionPause(()=>{r(!1)})},[r]),(0,d.jsx)(u,{value:g,children:e})}},988744:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(667294),l=i(883119),a=i(319915),r=i(499128),o=i(898781),s=i(947599),d=i(343341),u=i(785893);let c=(0,n.lazy)(()=>i.e(4603).then(i.t.bind(i,774855,23)));function p({linkURL:e,onDidFocus:t,onDidClickCopyButton:i,onCopyText:n,toastDuration:p,oneToast:_=!1,hideInput:m=!1,buttonSize:h="lg",asLink:g=!1}){let f=(0,o.ZP)(),{showToast:y,showOneToast:v}=(0,d.F9)(),x=f._('Copy link', '[button] copy a URL link shown, to paste in another place', '[button] copy a URL link shown, to paste in another place'),b=(e,t)=>{t&&(_?v:y)(({hideToast:e})=>(0,u.jsx)(r.ZP,{duration:p,onHide:e,text:null!=n?n:f._('Link copied to clipboard!', 'toast message to confirm if users copied the url successfully', 'toast message to confirm if users copied the url successfully')})),i()};return g?(0,u.jsx)(a.Z,{name:"SafeSuspense_CopyableLink_CopyToClipboard",children:(0,u.jsx)(s.Z,{fallback:(0,u.jsx)(l.zx,{text:x,disabled:!0}),children:(0,u.jsx)(c,{text:e,onCopy:b,children:(0,u.jsx)(l.rU,{href:"",display:"inline",children:x})})})}):(0,u.jsxs)(l.xu,{display:"flex",alignItems:"center",paddingX:m?0:4,children:[!m&&(0,u.jsx)(l.xu,{flex:"grow",marginEnd:2,children:(0,u.jsx)(l.nv,{id:"copylinkurl",onChange:()=>{},onFocus:t,size:"lg",type:"url",value:e})}),(0,u.jsx)(a.Z,{name:"SafeSuspense_CopyableLink_CopyToClipboard",children:(0,u.jsx)(s.Z,{fallback:(0,u.jsx)(l.zx,{text:x,disabled:!0}),children:(0,u.jsx)(c,{text:e,onCopy:b,children:(0,u.jsx)(l.zx,{text:x,size:h})})})})]})}},8320:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(667294),l=i(883119),a=i(63552),r=i(785893);let o=40,s=70,d={__style:{borderRadius:"4px",padding:"10px 14px"}},u={__style:{borderWidth:"1px",borderStyle:"solid",borderColor:"white"}},c={__style:{borderRadius:"4px",padding:"10px 14px 9px 8px",whiteSpace:"nowrap"}},p=e=>({__style:{borderRadius:"24px",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"14px",paddingRight:"14px",...e}}),_=e=>"transparent"===e||"dark"===e?"inverse":"primary"===e?"light":"default",m=({color:e,icon:t})=>t?c:"transparent"===e?{__style:{...d.__style,...u.__style}}:d,h=({accessibilityLabel:e,color:t,customStyles:i,forwardedRef:d,icon:u,inline:c=!1,minHeight:h=o,minWidth:g=s,onTouch:f,pressState:y,shape:v,text:x})=>{let[b,P]=(0,n.useState)(!1),A=_(t),k=m({color:t,icon:u}),S=(0,r.jsx)(l.xu,{position:"relative",onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:(0,r.jsx)(l.xu,{color:"primary"===t&&b?"errorBase":t,display:c?"inlineBlock":"flex",justifyContent:"center",minHeight:h,minWidth:g,dangerouslySetInlineStyle:"pill"===v?p(i):k,children:(0,r.jsxs)(l.kC,{alignItems:"center",justifyContent:"center",children:[u&&(0,r.jsx)(l.xu,{paddingX:"check"===u?2:0,children:(0,r.jsx)(l.JO,{accessibilityLabel:e,color:A,icon:u,inline:!0,size:"check"===u?16:20})}),(0,r.jsx)(l.xv,{color:A,inline:!0,size:"300",lineClamp:1,weight:"bold",children:x})]})})});return f?(0,r.jsx)(a.Z,{onTouch:f,rounding:"pill"===v?"pill":2,pressState:y||"none",children:(0,r.jsx)(l.xu,{ref:d,children:S})}):S}},57791:(e,t,i)=>{"use strict";i.d(t,{MZ:()=>j,di:()=>z,Ai:()=>R});var n=i(667294),l=i(616550),a=i(883119),r=i(780678),o=i(112690),s=i(926275),d=i(53987),u=i(773285),c=i(383690),p=i(30287),_=i(780280),m=i(844974),h=i(339363),g=i(867820),f=i(19121),y=i(598615),v=i(296679),x=i(938917),b=i(8320),P=i(250059),A=i(48714),k=i(149230),S=i(43760);let w=({children:e,external:t,externalQueryParams:i,target:n,href:a,features:r})=>{let o=(0,l.useHistory)();if(!a)return null;let s=(0,P.Z)(a);return e({navigate:e=>{e.preventDefault(),(0,k.Z)({url:s})||t?"undefined"!=typeof window&&window.Windows?(0,S.Z)(s):(0,A.Gj)(s,{queryParams:i,features:r}):(0,A.G3)({event:e,href:a,history:o,target:"blank"===n?"blank":null})}})};var D=i(785893),E=i(329900),T=i(948376),C=i(698330);let I=e=>"string"==typeof e?e:`${e.pathname||""}${e.search?`?${e.search}`:""}`,F=(e,t=!1)=>function({isAppUpsellDisabled:i,...b}){let{children:P,clientTrackingParams:A,deeplinkUri:k,external:S,onTouch:w,refresh:F,to:j,viewParameter:R,viewType:z}=b,L=(0,x.Z)(),[O,B]=(0,n.useState)(!1),[N,M]=(0,n.useState)(!1),[U,Z]=(0,n.useState)(!1),{isAuth:K}=(0,f.Z)(),{userAgent:{platform:H,browserName:G},locale:V}=(0,_.B)(),W=(0,C.Tt)(),$=(0,o.Z)(),{checkExperiment:q}=(0,u.F)(),Y=(0,l.useLocation)(),J=(0,c.Z)();(0,n.useEffect)(()=>{(async function(){if((0,r.v)()){Z(!0);let e=await (0,r.Z)();e.length>0&&M(!0)}})()},[]),(0,n.useEffect)(()=>{K||(0,g.My)(`unauth.app_upsell.has_app.${N.toString()}`,{browser:G,platform:H})},[G,N,K,H]);let X=()=>{$({event_type:1701,view_type:z,view_parameter:R}),O&&B(!1)};return(0,D.jsxs)(a.xu,{"data-test-id":"deeplink-wrapper",children:[O&&(0,D.jsx)(v.Z,{clientTrackingParams:A,deepLinkUri:k,isOpen:!0,onDismiss:()=>{$({component:14157,element:10308,event_type:10220,view_type:z||202,view_parameter:R,aux_data:{app_upsell_type:"deep-link-app-upsell-modal"}})},onOpenInApp:()=>{(0,m.Nh)("deeplinkBehavior","branchfallback"),X()},shouldTrackDismiss:!0,to:j,viewParameter:R,viewType:z,app_upsell_type:"deep-link-app-upsell-modal"}),(0,D.jsx)(E.Z,{children:n=>(0,D.jsx)(e,{...b,onTouch:e=>{let l=L&&!i&&K&&!S&&!F&&!(0,p.FP)(window)&&!("ios"===H&&(V||"").startsWith("ar"))&&(0,T.kp)((0,s.Z)(null==W?void 0:W.created_at));if(l){let t=!0,i=!1,l="string"==typeof k&&(k||"").startsWith("/pin/")&&((0,d.uM)(Y)||(0,d.am)(Y)||(0,d.C$)(Y));l?U&&N&&k&&"android"===H&&q("mweb_auth_deep_link_app_installed_user").anyEnabled&&(J(),t=!1):(t=!1,i=!0),t?(e.stopPropagation(),e.preventDefault(),B(!0)):i||(e.stopPropagation(),e.preventDefault(),$({component:14347,element:13582,event_type:3830,view_type:20,view_parameter:3844,aux_data:{upsell_reason:"deep-link-app-upsell-modal"}}),n(null!=k?k:(0,y.B)(Y,"android"===H),"deep-link-app-upsell-modal"))}else"branchfallback"!==(0,m.qn)("deeplinkBehavior")||(0,h.qn)("fallbackAttempt")||(e.stopPropagation(),e.preventDefault(),(0,h.Nh)("fallbackAttempt",1),n(k,"deep-link-app-upsell-modal",`${window.location.origin}${I(j)}`),X());!(t&&l)&&w&&w(e)},children:P})})]})},j=F(({accessibilityLabel:e,children:t,external:i,externalQueryParams:n,features:l,inline:r=!1,newTab:o,nofollow:s,onTouch:d,onBlur:u,onFocus:c,pressState:p,rounding:_,to:m})=>(0,D.jsx)(w,{external:i,target:o?"blank":null,externalQueryParams:n,features:l,href:m,children:({navigate:i})=>(0,D.jsx)(a.rU,{accessibilityLabel:e,onBlur:u?({event:e})=>u(e):void 0,onFocus:c?({event:e})=>c(e):void 0,underline:"none",href:(0,P.Z)(m),display:r?"inlineBlock":"block",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),null==d||d(e),e.defaultPrevented||i(e)},rel:s?"nofollow":"none",rounding:_,tapStyle:(Array.isArray(p)?p:[p]).includes("compress")?"compress":"none",children:t})})),R=F(({external:e,externalQueryParams:t,newTab:i,onTouch:n,to:l,...a})=>(0,D.jsx)(w,{external:e,target:i?"blank":null,externalQueryParams:t,href:l,children:({navigate:e})=>(0,D.jsx)(b.Z,{onTouch:t=>{null==n||n(t),t.defaultPrevented||e(t)},...a})})),z=F(b.Z,!0)},329900:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(407043),l=i(773285),a=i(780280),r=i(619277),o=i(948376),s=i(780678),d=i(826067),u=i(67347);let c="http://play.google.com/store/apps/details?id=com.pinterest",p=["access_token","new_password","new_password_confirm","password","next"],_=(e,t)=>t?(0,d.ru)(e,{invite_code:t}):e,m=(e,t,i)=>{if("ios"===t&&"string"==typeof e&&e.startsWith("discover/article/")){let t=e.split("/")[2];e=`discover_article/${t}/?is_deeplink=1`}return("string"==typeof e&&"shopping/"===e&&(e="?is_deeplink=1"),"string"==typeof e)?_(e,i):"ios"===t||"ipad"===t?_(e.iOS,i):"android"===t?_(e.android,i):null},h=({deeplinkUri:e,invite_code:t,platform:i,fallbackUrl:n,unauthId:l,app_upsell_type:a})=>({deeplink_path:m(e,i,t),current_page_url:(0,d.Gw)("undefined"!=typeof window?window.location.href:"",p),install_id:l,utm_source:140,utm_medium:2152,app_upsell_type:a,...n?{af_r:n}:null}),g=({deeplinkUri:e,invite_code:t,platform:i,unauthId:n,app_upsell_type:l})=>{let a=JSON.stringify({deeplink_path:m(e,i,t),current_page_url:(0,d.Gw)("undefined"!=typeof window?window.location.href:"",p),install_id:n}),r=(0,d.XP)({utm_source:"mweb",utm_medium:"upsell",utm_content:a,app_upsell_type:l});return{referrer:r}},f=({unauthId:e,app_upsell_type:t})=>{let i=(0,d.XP)({utm_source:"mweb",utm_medium:"upsell",utm_campaign:"twa",utm_content:e,app_upsell_type:t});return{referrer:encodeURI(i)}},y=({isAuthenticated:e,deeplinkUri:t,fallbackUrl:i,invite_code:n,logContextEvent:l,platform:a,redirectToLite:r,unauthId:o,userAgent:p,app_upsell_type:_})=>{if(null==l||l({component:14347,element:13582,event_type:701,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:_}}),t){let m=h({isAuthenticated:e,deeplinkUri:t,fallbackUrl:i,invite_code:n,platform:a,unauthId:o,userAgent:p,app_upsell_type:_});if((0,u.nP)("mweb.deeplink",{sampleRate:1,tags:{platform:a}}),n&&(0,u.nP)("mweb.deeplink.invite_code",{sampleRate:1}),(0,u.nP)("mweb.deeplink.unauthId",{sampleRate:1,tags:{withUnauthId:!!o}}),r){(0,u.nP)("mweb.deeplink.lite_link",{sampleRate:1}),null==l||l({component:14347,element:13582,event_type:14540,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:_}});let e=f({unauthId:o,app_upsell_type:_});window.location.href=(0,d.ru)("http://play.google.com/store/apps/details?id=com.pinterest.twa",e)}else if("android"===a){let e=g({deeplinkUri:t,invite_code:n,platform:a,unauthId:o,app_upsell_type:_});(0,s.v)()?(0,s.Z)().then(t=>{if(t.length>0){let e=(0,d.ru)(window.location.href,m);null==l||l({component:14347,element:13582,event_type:703,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:_}});let t=window.open(e);t||null==l||l({component:14347,element:13582,event_type:702,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:_}})}else null==l||l({component:14347,element:13582,event_type:14538,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:_}}),window.location.href=(0,d.ru)(c,e)}).catch(()=>{(0,u.nP)("mweb_android.deeplink.playStore.error",{sampleRate:1})}):(null==l||l({component:14347,element:13582,event_type:14538,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:_}}),window.location.href=(0,d.ru)(c,e))}else{if((0,u.nP)("mweb.deeplink.appsflyer_link",{sampleRate:1}),"ios"===a&&"undefined"!=typeof window&&window.location.href.includes("show_yip_modal")){window.location.href=(0,d.ru)("https://pinterest.com/pinterest-predicts",m);return}null==l||l({component:14347,element:13582,event_type:14539,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:_}}),window.location.href=(0,d.ru)("https://pinterest.onelink.me/TVSr/21e04bfd",m)}}};var v=i(785893);function x({children:e,invite_code:t}){let{isAuthenticated:i,isBot:r,unauthId:s,userAgent:{platform:d,raw:u}}=(0,a.B)(),{logContextEvent:c}=(0,n.v)(),{checkExperiment:p}=(0,l.F)(),_=async(e,n,l)=>{c({component:14347,element:13582,event_type:700,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:n}}),y({isAuthenticated:i,checkExperiment:p,deeplinkUri:e,fallbackUrl:l,invite_code:t,logContextEvent:c,platform:d,redirectToLite:(0,o.Rp)({isBot:r,platform:d,userAgent:u}),unauthId:s,userAgent:u,app_upsell_type:n})};return e(_)}let b=e=>(0,v.jsx)(r.ty,{children:t=>(0,v.jsx)(x,{...e,invite_code:t})});b.displayName="DeepLinkNavigator";let P=b},815613:(e,t,i)=>{"use strict";i.d(t,{Z:()=>S}),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),_=i(50286),m=i(829407),h=i(19121),g=i(945698),f=i(927383),y=i(698330),v=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}),A=void 0!==n?n:n=i(84928),k=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 S({auxData:e,disabled:t,disableLog:i,followEventType:n,id:S,inline:w,invertColors:D,isFollowed:E,isIdeaPin:T,isLegoEnabled:C,isSecondaryButton:I,isUserFollowButton:F,isUserMe:j,onFollow:R,onUnfollow:z,pinKey:L,shouldUseLegoColors:O,showPulsar:B,size:N,textType:M="FollowFollowing",unfollowEventType:U,viewParameter:Z,viewType:K,clientTrackingParams:H}){let G;let V=(0,o.ZP)(),W=(0,_.HG)(),{showToast:$}=(0,p.F9)(),q=(0,c.Z)(),Y=(0,a.Z)(),J=(0,d.Z)(),{checkExperiment:X}=(0,s.F)(),Q=(0,f.Z)(),ee=(0,h.Z)(),et=ee&&ee.isAuth,{unauthFollowUserId:ei,setUnauthFollowUserId:en}=(0,x.f)(),el=(0,y.mN)()(S),ea=el&&{imageMediumUrl:el.image_medium_url,username:el.username},{data:er}=(0,r.Q)(A,L,{useLegacyAdapter:k}),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;G=es||(eo?eo.officialUser:ed||eu);let ec=null!=ea?ea:G;(0,m.Z)(()=>{!W&&et&&ei&&S&&ei===S&&R(S)});let ep=Q({fn:()=>{et?E?(z(S),i||Y({event_type:U,view_type:K,view_parameter:Z,object_id_str:S,aux_data:e,clientTrackingParams:H})):(R(S),F&&$(({hideToast:e})=>{if(!ec)return null;let t=ec.username?`/${ec.username}/`:"";return(0,b.jsx)(v.Z,{handleHide:e,text:V._('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:S,href:t,imageUrl:ec.imageMediumUrl})}),i||Y({event_type:n,view_type:K,view_parameter:Z,object_id_str:S,aux_data:e,clientTrackingParams:H})):((0,u.My)(`mweb_unauth_follow_button.tap.${String(K)}`),5===K&&26===n&&(0,u.My)("mweb_unauth_board_page_follow_button.tap"),(0,u.NC)(E?"press_profile_unfollow":"press_profile_follow"),q({action:"click",item:"board-follow-button"}),J({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:T?"click_idea_pin_follow":"click_follow",desktopOptions:{modalType:"signup",modalOptions:W&&X("pcons_dweb_contextual_follow_modal").anyEnabled?{source:"followButton",container:"follow"}:void 0},mobileOptions:!W&&X("pcons_mweb_contextual_follow_modal").anyEnabled?{headingType:"follow"}:void 0}),W||en(null!=S?S:""),(0,u.NC)("clickthrough"))},modalHeader:(0,g.N4)({i18n:V,toFollow:!E})}),e_=!E&&!!B,em=()=>{if(j)return V._('That\'s you!', 'Follow button is disabled because this is you', 'Follow button is disabled because this is you');if("AddRemove"===M)return E?V._('Remove', 'unfollowButton.removeText', 'Follow button label - followed state, so user can click to "remove" the follow'):V._('Add', 'followButton.addText', 'Follow button label - unfollowed state, so user can click to "add" the follow');let e="FollowUnfollow"===M?V._('Unfollow', 'unfollowButton.unfollowText', 'Follow button label - followed state, so user can click to "unfollow" the follow'):V._('Following', 'Follow button label - followed state', 'Follow button label - followed state');return E?e:V._('Follow', 'Follow button label - unfollowed state', 'Follow button label - unfollowed state')};return(0,b.jsx)(P,{pulsar:e_?{show:!0,onClick:ep}:{show:!1},testId:j||E?"board-unfollow-button":"board-follow-button",children:(0,b.jsx)(l.zx,{color:O||"AddRemove"===M||!C&&I||E?"gray":"red",disabled:j||t,fullWidth:w,onClick:e_?void 0:({event:t})=>{t.preventDefault(),t.stopPropagation(),i||Y({event_type:101,component:13672,element:11951,object_id_str:S,view_type:K,view_parameter:Z,aux_data:e,clientTrackingParams:H}),ep()},selected:D?!E:O&&E||!!E&&I,size:N,text:em(),accessibilityLabel:em()})})}},861411:(e,t,i)=>{"use strict";i.d(t,{fv:()=>v,fS:()=>S,Vi:()=>y,Hs:()=>b,Mv:()=>g,uc:()=>f,dL:()=>h,qS:()=>x,Y4:()=>k,HE:()=>A,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),_=i(807609);function m({auxData:e,component:t,eventData:i,eventType:l,impressionType:o,isPaused:s,objectIdStr:d,viewData:u,viewType:m,viewParameter:h}){let g=(0,n.useRef)(null),{logImpression:f}=(0,a.v)(),y=(0,_.Z)(),v=(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,_,x;f({viewData:u||{},viewType:m,viewParameter:h,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:A,link:k,advertiserId:S}=i;"pinImpressions"===o&&A&&!y&&null!==(_=window.document.featurePolicy)&&void 0!==_&&_.allowsFeature("attribution-reporting")&&(0,c.YS)(o,A,null!=b?b:null,k,P,{appType:v.appTypeDetailed,osType:(0,c.eF)(null!==(x=v.userAgent.osName)&&void 0!==x?x:"Unknown")},null!=S?S: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 h=e=>{let t=m({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=m({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})},f=e=>{let t=m({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})},y=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}),v=e=>{let t=m({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=m({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=m({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})},A=e=>{let t=m({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})},k=e=>{let t=m({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})},S=e=>{let t=m({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})}},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})}},94089:(e,t,i)=>{"use strict";i.d(t,{G:()=>p,Kl:()=>_,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 _(){let{nativeEngagements:e}=u();return e}},379764:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(633988);let a=new n.H3([l.Z]),r=a},904779:(e,t,i)=>{"use strict";i.d(t,{K:()=>r,T:()=>o});var n=i(667294),l=i(785893);let a=(0,n.createContext)({getPinFeedbackStatus:()=>void 0,setPinFeedbackStatus:()=>{}}),r=()=>(0,n.useContext)(a);function o({children:e}){let[t,i]=(0,n.useState)(Object.freeze({})),r=(0,n.useMemo)(()=>({getPinFeedbackStatus:({pinId:e})=>t[e],setPinFeedbackStatus:({pinId:e,pinFeedbackStatus:n})=>i({...t,[e]:n})}),[t]);return(0,l.jsx)(a.Provider,{value:r,children:e})}},369083:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>tZ});var n,l,a,r,o,s,d,u=i(667294),c=i(702664),p=i(167912),_=i(616550),m=i(883119),h=i(337815),g=i(112690),f=i(81226),y=i(780679),v=i(319915),x=i(378518),b=i(681669),P=i(898781),A=i(349700),k=i(926275),S=i(680046),w=i(248975),D=i(958007),E=i(992750),T=i(773285),C=i(813401),I=i(923297),F=i(780280),j=i(947599),R=i(350576),z=i(867820),L=i(52022),O=i(477802),B=i(50286),N=i(829407),M=i(807609),U=i(763839),Z=i(350948),K=i(57791),H=i(861411),G=i(886076),V=i(830157),W=i(62409),$=i(772486),q=i(59729),Y=i(885149),J=i(987765),X=i(356997),Q=i(53987),ee=i(63552),et=i(130460),ei=i(459151),en=i(807592),el=i(785893);let ea=({data:{pinProduct:{maxPrice:e,minPrice:t,standardPrice:i,price:n},domain:l}})=>(0,el.jsxs)(u.Fragment,{children:[l&&(0,el.jsx)(m.xv,{color:"default",size:"100",children:l}),(0,el.jsx)(m.xu,{display:"flex",alignItems:"center","data-test-id":"priceLego_price",children:(0,el.jsx)(ei.Z,{textSize:"100",currentPrice:(0,en.Z)({maxPrice:e,minPrice:t,price:n}),originalPrice:i})})]}),er=void 0!==n?n:n=i(809571);function eo({pinKey:e}){var t,i,n;let{data:l}=(0,b.sr)(er,e,{type:"pin",useLegacyAdapter:e=>({linkDomain:e.link_domain&&{__typename:"Domain"},richMetadata:e.rich_metadata&&{recipe:e.rich_metadata.recipe&&{fromAggregatedData:e.rich_metadata.recipe.from_aggregated_data},products:e.rich_metadata.products&&e.rich_metadata.products.map(e=>({name:e.name,offerSummary:e.offer_summary&&{maxPrice:e.offer_summary.max_price,minPrice:e.offer_summary.min_price,price:e.offer_summary.price,standardPrice:e.offer_summary.standard_price}}))},richSummary:e.rich_summary&&{siteName:e.rich_summary.site_name,products:e.rich_summary.products&&e.rich_summary.products.map(e=>({name:e.name,offerSummary:e.offer_summary&&{maxPrice:e.offer_summary.max_price,minPrice:e.offer_summary.min_price,price:e.offer_summary.price,standardPrice:e.offer_summary.standard_price}}))}})});if(!l)return null;let a=(0,W.kb)({hasLinkDomain:!!l.linkDomain,richMetadata:l.richMetadata&&{recipe:l.richMetadata.recipe&&{fromAggregatedData:l.richMetadata.recipe.fromAggregatedData},products:(null!==(t=l.richMetadata.products)&&void 0!==t?t:[]).map(e=>({name:e.name,offerSummary:e.offerSummary}))},richSummary:l.richSummary&&{products:(null!==(i=l.richSummary.products)&&void 0!==i?i:[]).map(e=>({name:e.name,offerSummary:e.offerSummary}))}});return a&&a.price?(0,el.jsx)(ea,{data:{pinProduct:a,domain:null===(n=l.richSummary)||void 0===n?void 0:n.siteName}}):null}var es=i(914142),ed=i(865673);let eu=void 0!==l?l:l=i(937101),ec=(0,u.lazy)(()=>i.e(94950).then(i.bind(i,494950))),ep=({title:e})=>{let t=(0,B.HG)(),i=(0,L.Z)();return(0,el.jsx)(m.xu,{"data-test-id":"related-pins-title",children:(0,el.jsx)(m.iP,{onTap:()=>{i({action:"click",item:"related-pins-title"})},children:(0,el.jsx)(J.Z,{size:t?"200":"100",weight:"bold",lineClamp:2,children:e})})})},e_=({credits:e,data:t,hasAffiliatedProducts:i,hidePinMetadata:n,isPromotedPin:l,isSponsoredPin:a,logCreditsClick:r,marginTop:o,pinDescription:s,pinGraphqlRef:d,pinId:c,pinnedToBoardId:p,pinReactionCounts:h,recipeReview:g,shouldShowReactions:f,showPriceIndicatorInPinCardDetails:y,title:x,type:b})=>{var A,k,S,w,D,E,T,C,I;let R=(0,P.ZP)(),O=(0,_.useLocation)(),N=(0,L.Z)(),{isAuthenticated:M}=(0,F.B)(),U=(0,B.HG)(),Z=(0,_.useHistory)(),K=x||s||"oneTap"===b,{pinner:H}=t,G=(0,et.gC)()(p||String(null===(A=t.board)||void 0===A?void 0:A.entityId)),V=l&&(null===(k=t.promoter)||void 0===k?void 0:k.entityId)===(null===(S=t.nativeCreator)||void 0===S?void 0:S.entityId),W=Q.Q0?2:o||(K&&!n?1:0);return(0,el.jsxs)(m.xu,{flex:"grow",children:[(0,el.jsx)(m.xu,{display:"flex",marginTop:n?0:null!=o?o:1,children:(0,el.jsxs)(m.xu,{flex:"grow",children:[(a||i)&&!V&&(0,el.jsx)(m.xu,{marginBottom:1,children:(0,el.jsx)(m.xu,{flex:"grow",overflow:"hidden",children:(0,el.jsx)(es.Z,{hasAffiliatedProducts:i,isPromoted:l,sponsorName:t.sponsorship?(0,el.jsx)(m.xv,{inline:!0,size:"100",weight:"bold",children:null==e?void 0:e.subtitle}):void 0,sponsorshipStatus:null===(w=t.sponsorship)||void 0===w?void 0:w.status})})}),x&&(0,el.jsx)(m.xu,{marginTop:1,overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},children:!n&&(0,el.jsx)(ep,{title:x})}),U&&!M&&s&&!(0,Q.$Y)(O)&&!(0,Q.E0)(O)&&(0,el.jsx)(m.xu,{marginTop:1,overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},"data-test-id":"desc",children:(0,el.jsx)(m.iP,{onTap:()=>{N({action:"click",item:"related-pins-description"})},children:(0,el.jsx)(m.xv,{size:U?"200":"100",inline:!0,children:s})})}),y&&(0,el.jsx)(eo,{pinKey:d?{type:"graphqlRef",data:d}:{type:"deprecated",data:c}}),g]})}),f&&h&&Object.keys(h).length>0&&(0,el.jsx)(m.xu,{height:18,display:void 0,justifyContent:"center",children:(0,el.jsx)(v.Z,{name:"SafeSuspense_PinCardDetails_GridAggregation",children:(0,el.jsx)(j.Z,{children:(0,el.jsx)(ec,{pinReactionCounts:h})})})}),!y&&e?(0,el.jsx)(ee.Z,{onTouch:t=>{t.stopPropagation(),t.preventDefault(),e.link&&Z.push(e.link),r()},pressState:"none",children:(0,el.jsx)(m.xu,{children:(!n||a||V)&&(0,el.jsxs)(m.xu,{display:"flex",marginTop:W,marginBottom:n?2:0,position:"relative",direction:"row",children:[(0,el.jsx)(m.xu,{flex:"none",display:void 0,justifyContent:"center","data-test-id":"related-pins-avatar-image",children:(0,el.jsx)(m.iP,{onTap:()=>{N({action:"click",item:"related-pins-avatar-image"})},children:(0,el.jsx)(X.qE,{accessibilityLabel:e.title||e.subtitle||R._('Creator\'s avatar', 'pinCardDetails.tapArea.avatar', 'The avatar of the creator of this pin.'),name:e.title||"",outline:!1,size:"sm",src:e.avatar||void 0})})}),(0,el.jsx)(m.xu,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",marginStart:1,"data-test-id":"related-pins-name",children:(0,el.jsx)(m.iP,{onTap:()=>{N({action:"click",item:"related-pins-name"})},children:(0,el.jsxs)(u.Fragment,{children:[e.title&&(0,el.jsx)(m.xv,{lineClamp:1,size:"100",weight:a&&!V||i?"normal":"bold",children:e.title===(null==H?void 0:H.fullName)&&(null!=H&&H.isVerifiedMerchant||null!=H&&null!==(D=H.verifiedIdentity)&&void 0!==D&&D.verified)?(0,el.jsx)(ed.Z,{badgeSize:"sm",badgeSpacing:2,fullName:e.title,verifiedType:H.isVerifiedMerchant?"verifiedMerchant":"verifiedIdentity"}):e.title}),e.subtitle?(!a&&!n||V)&&(0,el.jsx)(m.xv,{lineClamp:a||i?void 0:1,size:U?"200":"100",weight:U?"bold":"normal",children:e.subtitle}):!M&&G&&"protected"!==G.privacy?(0,el.jsx)(m.xu,{"data-test-id":"related-pin-text-below-name",children:(0,el.jsx)(m.rU,{underline:"hover",href:null!==(E=G.url)&&void 0!==E?E:"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,z.NC)("click_board_pin_attribution_profile"),N({action:"click",item:"related-pin-text-below-name"})},children:(0,el.jsx)(m.xv,{size:"200",children:G.name})})}):null]})})})]})})}):U&&!!H&&((0,Q.L6)(O)||(0,Q.cD)(O)||(0,Q.$Y)(O))&&(0,el.jsxs)(m.xu,{display:"flex",marginTop:K?2:0,children:[(0,el.jsx)(m.xu,{flex:"none","data-test-id":"related-pins-avatar-image",children:(0,el.jsx)(m.iP,{onTap:()=>{N({action:"click",item:"related-pins-avatar-image"})},children:(0,el.jsx)(X.qE,{name:H.username||"",size:"sm",src:null!==(T=H.imageSmallUrl)&&void 0!==T?T:void 0})})}),(0,el.jsxs)(m.xu,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",marginStart:1,"data-test-id":"related-pins-name",children:[(0,el.jsx)(m.rU,{underline:"hover",href:`/${H.username||""}/`,onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,z.NC)("click_board_pin_attribution_board"),N({action:"click",item:"related-pins-name"})},children:(0,el.jsx)(m.xv,{size:"200",weight:"bold",children:H.fullName||H.username})}),G&&"protected"!==G.privacy?(0,el.jsx)(m.xu,{"data-test-id":"related-pin-text-below-name",children:(0,el.jsx)(m.rU,{underline:"hover",href:null!==(C=G.url)&&void 0!==C?C:"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,z.NC)("click_board_pin_attribution_profile"),N({action:"click",item:"related-pin-text-below-name"})},children:(0,el.jsx)(m.xv,{size:"200",children:null!==(I=G.name)&&void 0!==I?I:""})})}):null]})]})]})},em=e=>{let{pinId:t,pinGraphqlRef:i}=e,{data:n,childDataKey__DEPRECATED:l}=(0,b.sr)(eu,i?{type:"graphqlRef",data:i}:{type:"deprecated",data:t},{type:"pin",useLegacyAdapter:e=>({entityId:e.id,board:e.board&&{entityId:e.board.id},nativeCreator:e.native_creator&&{entityId:e.native_creator.id},pinner:e.pinner&&{fullName:e.pinner.full_name,imageSmallUrl:e.pinner.image_small_url,isVerifiedMerchant:e.pinner.is_verified_merchant,username:e.pinner.username,verifiedIdentity:e.pinner.verified_identity&&{verified:e.pinner.verified_identity.verified}},promoter:e.promoter&&{entityId:e.promoter.id},sponsorship:e.sponsorship&&{status:e.sponsorship.status}})});return n&&(0,el.jsx)(e_,{...e,data:n,pinGraphqlRef:"graphqlRef"===l.type?l.data:null})};var eh=i(857079),eg=i(296011);let ef=void 0!==a?a:a=i(984670),ey=(e,t)=>{let i=(0,p.useRelayEnvironment)();return(0,el.jsx)(eg.t,{invite_code:e,relayEnvironment:i,inviteQuery:ef,children:e=>{let i=null!=e&&e.data?e.data.sender:null,n=i&&i.first_name?i.first_name.substring(0,30):"";if(!n)return null;let l=i&&!i.is_default_image?i.image_medium_url:"",a=(0,A.nk)(t._('{{ name }} shared this idea with you', 'homefeed.pinSenderAvatar.heading', 'header notifying users that a sender ({{ name }}) shared a Pin to them'),{name:n});return(0,el.jsxs)(m.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,el.jsx)(m.zd,{height:32,width:32,children:(0,el.jsx)(X.qE,{name:n,src:l})}),(0,el.jsx)(m.xu,{width:"80%",paddingY:2,children:(0,el.jsx)(m.xv,{align:"center",size:"200",weight:"bold",children:a})})]})}})},ev=(e,t)=>(0,el.jsx)(eg.Z,{invite_code:e,children:e=>{let i=e?e.sender:null,n=i&&i.first_name?i.first_name.substring(0,30):"";if(!n)return null;let l=i&&!i.is_default_image?i.image_medium_url:"",a=(0,A.nk)(t._('{{ name }} shared this idea with you', 'homefeed.pinSenderAvatar.heading', 'header notifying users that a sender ({{ name }}) shared a Pin to them'),{name:n});return(0,el.jsxs)(m.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,el.jsx)(m.zd,{height:32,width:32,children:(0,el.jsx)(X.qE,{name:n,src:l})}),(0,el.jsx)(m.xu,{width:"80%",paddingY:2,children:(0,el.jsx)(m.xv,{align:"center",size:"200",weight:"bold",children:a})})]})}}),ex=(e,t)=>{let{checkExperiment:i}=(0,T.F)(),n=i("graphql_migration_sharelink_sgrowth_web").anyEnabled;return n?ey(e,t):ev(e,t)},eb=({inviteCode:e})=>{let t=(0,P.ZP)();return(0,el.jsx)(m.xu,{minHeight:82,children:(0,el.jsx)(v.Z,{name:"SafeSuspense_PinCardSharedHeader_LoadingSpinner",children:(0,el.jsx)(j.Z,{fallback:(0,el.jsx)(eh.Z,{accessibilityLabel:t._('Loading Invitation component', 'Loading InviteFetch component', 'loading InviteFetch component')}),children:ex(e,t)})})})};var eP=i(407043),eA=i(301723),ek=i(934494),eS=i(623568),ew=i(310227),eD=i(909499),eE=i(690035),eT=i(499128),eC=i(343341),eI=i(826067),eF=i(361115),ej=i(364034),eR=i(881802),ez=i(927383),eL=i(332611),eO=i(8320),eB=i(662089),eN=i(639952),eM=i(698330),eU=i(977734),eZ=i(580751);let eK=new m.Ry(1);function eH({buttonText:e,clientTrackingParams:t,color:i="primary",deeplinkUri:n,experience:l,inline:a=!0,minWidth:r,onTouch:o,onUnsave:s,pinId:d,pinnedToBoardId:p,shape:h,shouldShowSavedButton:f,viewType:y,viewParameter:v,showSaveHandoffExperience:x}){var b;let A=(0,P.ZP)(),k=(0,c.useDispatch)(),S=(0,_.useHistory)(),w=(0,_.useLocation)(),D=(0,eZ.M)(),E=w.pathname.startsWith("/pin"),C=(0,c.useSelector)(({session:e})=>e.hasSavedUnauthPin),I=(0,c.useSelector)(({session:e})=>e.unauthSavePinId),F=null===(b=(0,eM.Tt)())||void 0===b?void 0:b.pin_count,j=(0,g.Z)(),R=(0,L.Z)(),{checkExperiment:z}=(0,T.F)(),O=(0,eL.be)(),B=e=>S.push(e),{showToast:N,showRepinConfirmation:M}=(0,eB.Z)(),U=()=>{var e;k((0,eU.Z)({checkExperiment:z,history:S,i18n:A,logContextEvent:j,onSuccess:()=>{l&&k(O(l.placement_id,l.experience_id))},originalPinId:d,pinId:d,trackingParams:{clientTrackingParams:t,pinnedToBoardId:p},showRepinConfirmation:x&&!E?()=>void 0:M,disableRepinAnimation:I===d,pinCount:F,historyPush:B,savePinId:null!==(e=null==D?void 0:D.save)&&void 0!==e?e:()=>{}})).catch(e=>N(({hideToast:t})=>(0,el.jsx)(eT.ZP,{type:"error",text:e.message||A._('Sorry! Something went wrong on our end.', 'quickSave.toast.error.message', 'error during repin'),onHide:t})))},Z=(0,u.useRef)(null),H=x&&!C,G=(0,ez.Z)(),V=G({fn:e=>{e.stopPropagation(),e.preventDefault(),o&&o(e),f?f&&s&&s():U()},modalHeader:(0,eR.Bx)(A)});(0,u.useEffect)(()=>{H&&!Z.current&&(R({action:"trigger",item:"unauth-save-button-quicksave"}),j({event_type:14581}),U(),k((0,eN.e2)())),Z.current=H});let W=()=>A._('Pin', 'quickSave.quickSaveButton.icon.accessibilityLabel', 'Pin accessibility label'),$=()=>e||A._('Save', 'quickSave.quickSaveButton.buttonText', 'Auth mobile web save button for pin closeup');return C&&!E?null:(0,el.jsx)(m.xu,{"data-test-id":"save-button-mobile",zIndex:eK,children:n?(0,el.jsx)(K.di,{accessibilityLabel:W(),color:i,customStyles:{padding:"14px 16px"},deeplinkUri:n,inline:a,minHeight:48,minWidth:r,onTouch:V,pressState:["compress","background"],shape:h,size:"lg",text:$(),to:S.location.pathname,upsellType:"save",viewType:y,viewParameter:v}):(0,el.jsx)(eO.Z,{accessibilityLabel:W(),color:i,customStyles:{padding:"14px 16px"},inline:a,minHeight:48,minWidth:r,onTouch:V,pressState:"compress",shape:h,size:"300",text:$()})})}var eG=i(177891),eV=i(139574),eW=i(850431),e$=i(468760);function eq(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 eY extends u.PureComponent{constructor(...e){var t;super(...e),t=this,eq(this,"state",{saveState:void 0}),eq(this,"legoFixedZIndex",new m.Ry(2)),eq(this,"onAddPin",async function(){let{clientTrackingParams:e,checkExperiment:i,dispatch:n,i18n:l,oneTapSave:a,pinId:r,pinnedToBoardId:o,showToast:s,viewType:d,historyPush:u,repinContext:c}=t.props;try{var p;let l=await n((0,eW.w)({checkExperiment:i,i18n:t.props.i18n,logContextEvent:t.props.logContextEvent,originalPinId:r,pinId:r,boardId:null==a?void 0:a.boardId,isOneTapSave:!0,onUndo:()=>{t.onDeletePin()},section:null==a?void 0:a.section,showToast:s,trackingParams:{clientTrackingParams:e,pinnedToBoardId:o},viewType:d,historyPush:u,savePinId:null!==(p=null==c?void 0:c.save)&&void 0!==p?p:()=>{}}));t.setState({saveState:"saved"}),n((0,eG.a)({boardId:null==a?void 0:a.boardId,localPinId:l.id,pinId:r}))}catch(e){s(({hideToast:t})=>(0,el.jsx)(eT.ZP,{type:"error",text:e.message||l._('Sorry! Something went wrong on our end.', 'error during repin', 'error during repin'),onHide:t})),t.setState({saveState:void 0})}}),eq(this,"onDeletePin",async function(){let{dispatch:e,clientTrackingParams:i,i18n:n,pinId:l,savedInfo:a,showToast:r,repinContext:o}=t.props;if(a){e((0,eG.k)({boardId:a.boardId,localPinId:a.localPinId,pinId:l})),null==o||o.unsave(l);try{await e((0,eV.q)({pinId:a.localPinId,boardId:a.boardId,clientTrackingParams:i})),r(({hideToast:e})=>(0,el.jsx)(eT.ZP,{text:n._('Pin deleted!', 'User deleted their pin', 'User deleted their pin'),onHide:e})),t.setState({saveState:void 0})}catch(e){r(({hideToast:e})=>(0,el.jsx)(eT.ZP,{type:"error",text:n._('Sorry! There was an error deleting your Pin.', 'Error when user tried to delete pin', 'Error when user tried to delete pin'),onHide:e})),t.setState({saveState:"saved"})}}}),eq(this,"handlePinAction",this.props.requireAuthForLimitedLogin({fn:({event:e})=>{e.stopPropagation(),e.preventDefault();let{saveState:t}=this.state,{history:i,pinId:n,isOneTapExploreLocalTab:l,pinnedToBoard:a,directSaveExpGroup:r,oneTapSave:o}=this.props,s=r.includes("overlay");["saving","deleting"].includes(t)||l&&a||(t||this.props.savedInfo?this.props.isOneTapExploreLocalTab||(this.setState({saveState:"deleting"}),this.onDeletePin()):(this.setState({saveState:"saving"}),l||!o&&s?i.push({pathname:`/pin/${n}/repin`,state:{isOneTapSave:!0}}):this.onAddPin()))},modalHeader:(0,eR.Bx)(this.props.i18n)})),eq(this,"shouldDisplayAsSaved",({isOneTapExploreLocalTab:e,pinnedToBoard:t,savedInfo:i})=>e?!!t:!!i)}render(){let{children:e,clientTrackingParams:t,directSaveExpGroup:i,homepageExperience:n,i18n:l,isBoardIdeas:a,isOneTapExploreLocalTab:r,isRTL:o,oneTapSave:s,pinId:d,pinnedToBoard:c,pinnedToBoardId:p,savedInfo:_,shouldShowSaveHandoffExp:h}=this.props,g=i.includes("overlay");if(!s&&!r&&!h&&!g)return e;let f=this.shouldDisplayAsSaved({isOneTapExploreLocalTab:!!r,pinnedToBoard:c,savedInfo:_}),y={saved:"#000",unsaved:"rgba(255, 255, 255, 0.8)",savedText:"light",unsavedText:"dark"},v=f?(0,el.jsx)(m.xv,{weight:"bold",color:"light",children:l._('Saved', 'button for saving quickly with one click', 'button for saving quickly with one click, indicating pin is saved')}):(0,el.jsx)(m.xv,{weight:"bold",color:"dark",children:l._('Save', 'button for saving quickly with one click', 'button for saving quickly with one click, indicating pin is unsaved')}),x=null,b=i.includes("uselabel");return h?x=(0,el.jsx)(eH,{buttonText:c?l._('Saved', 'OneTapSave.QuickSaveButton.Saved', 'Message on saved pin'):"",clientTrackingParams:t,color:c?"default":"primary",deeplinkUri:"deeplinkUri",experience:n,inline:!0,pinnedToBoardId:p,minWidth:54,pinId:d,shape:"pill",shouldShowSavedButton:!!c,showSaveHandoffExperience:h}):s?x=(0,el.jsx)(m.iP,{onTap:this.handlePinAction,rounding:"circle",children:(0,el.jsx)(m.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:f?y.saved:y.unsaved}},paddingX:2,paddingY:2,rounding:"circle",children:(0,el.jsx)(m.xu,{dangerouslySetInlineStyle:{__style:{opacity:100}},children:(0,el.jsx)(m.JO,{accessibilityLabel:f?l._('saved', 'checkmark icon to show pin has been saved', 'checkmark icon to show pin has been saved'):l._('save', 'button for saving quickly with one click', 'button for saving quickly with one click'),icon:f?"check":a?(0,e$.f)():"add",color:f?y.savedText:y.unsavedText,size:16})})})}):g&&(x=(0,el.jsx)(m.iP,{onTap:this.handlePinAction,rounding:"circle",children:(0,el.jsx)(m.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:f?y.saved:y.unsaved}},paddingX:b?3:2,paddingY:2,rounding:b?"pill":"circle",children:(0,el.jsx)(m.xu,{dangerouslySetInlineStyle:{__style:{opacity:100}},children:b?v:(0,el.jsx)(m.JO,{accessibilityLabel:f?l._('saved', 'checkmark icon to show pin has been saved', 'checkmark icon to show pin has been saved'):l._('save', 'button for saving quickly with one click', 'button for saving quickly with one click'),icon:f?"check":(0,e$.f)(),color:f?y.savedText:y.unsavedText,size:16})})})})),(0,el.jsxs)(u.Fragment,{children:[e,(0,el.jsx)(m.xu,{bottom:!0,left:o,padding:2,position:"absolute",right:!o,zIndex:this.legoFixedZIndex,children:x})]})}}function eJ(e){let{showToast:t}=(0,eC.F9)(),i=(0,_.useLocation)(),n=(0,P.ZP)(),l=(0,g.Z)(),a=(0,ez.Z)(),r=(0,c.useDispatch)(),o=(0,_.useHistory)(),{isRTL:s,isAuthenticated:d}=(0,F.B)(),p=(0,eZ.M)(),m=(0,c.useSelector)(({session:e})=>e.unauthSavePinId),h=d&&!!m&&m===e.pinId,{pins:f,clear:y}=(0,ej.Z)(),v=(0,u.useRef)(!1),x=(0,eI.mB)(i.search),b=x.ideas_referrer,A=(0,B.HG)(),{checkExperiment:k}=(0,T.F)(),S=(0,eF.J1)(),w=!A&&b===String(25),D=e=>o.push(e),E=(0,c.useSelector)(t=>t.pins[e.pinId]&&t.pins[e.pinId].savedInfo),C=(0,c.useSelector)(t=>t.pins[e.pinId]&&t.pins[e.pinId].pinned_to_board),I=(0,c.useSelector)(e=>e.experiences[40001]);return(0,N.Z)(()=>{d&&!v.current&&f.length>0&&(v.current=!0,l({event_type:14577,aux_data:{num_unauth_saved_pins:f.length}}),[...f,...m&&k(S).anyEnabled?[{id:m}]:[]].forEach(({id:t})=>{var i;r((0,eU.Z)({checkExperiment:k,history:o,i18n:n,logContextEvent:l,onSuccess:()=>{},originalPinId:t,pinId:t,trackingParams:{clientTrackingParams:e.clientTrackingParams,pinnedToBoardId:e.pinnedToBoardId},showRepinConfirmation:()=>void 0,disableRepinAnimation:!0,historyPush:D,savePinId:null!==(i=null==p?void 0:p.save)&&void 0!==i?i:()=>{}})).catch(e=>{(0,z.My)(`error.unauth_profile_pin_merge.${e}`)})}),y())}),(0,el.jsx)(eY,{...e,checkExperiment:k,i18n:n,requireAuthForLimitedLogin:a,history:o,logContextEvent:l,showToast:t,shouldShowSaveHandoffExp:h,isRTL:s,historyPush:D,useSmallSaveIcon:w,repinContext:p,savedInfo:E,pinnedToBoard:C,homepageExperience:I,dispatch:r})}eJ.displayName="OneTapSave";var eX=i(239062);let eQ=({index:e,carouselSlots:t,imageSpec:i,color:n,onError:l,onLoad:a})=>(0,el.jsx)(m.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:t.map((t,r)=>{var o,s,d;let{slotId:u,title:c,details:p,imageSizeMap:_}=t,h=_?_[i]:null,g=h&&null!==(o=h.url)&&void 0!==o?o:"";return(0,el.jsx)(m.xu,{minWidth:"100%",dangerouslySetInlineStyle:{__style:{transform:`translate(${-100*e}%, 0%)`,transition:"transform 0.25s ease-in-out"}},"data-test-id":`carousel-swiper-${null!=u?u:r}`,children:(0,el.jsx)(eA.Z,{alt:c||p||"",color:n,naturalHeight:null!==(s=null==h?void 0:h.height)&&void 0!==s?s:1,naturalWidth:null!==(d=null==h?void 0:h.width)&&void 0!==d?d:1,onError:l,onLoad:a,src:g,loading:"auto",fetchPriority:"auto"},null!=u?u:r)},null!=u?u:r)})});var e0=i(721782),e1=i(883561);function e8({boardUrl:e,boardName:t,directSaveExpGroup:i,isQuicksave:n,sectionName:l,sectionSlug:a}){let r=(0,P.ZP)(),o=(0,_.useHistory)(),s=new m.Ry(1),d=!!a&&`${e}${a}/`;return i.includes("footer")?(0,el.jsx)(m.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,zIndex:s,dangerouslySetInlineStyle:{__style:{background:"rgb(0 0 0 / .4)"}},children:(0,el.jsx)(m.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"start",padding:i.includes("overlay")?0:4,children:(0,el.jsx)(m.iP,{onTap:t=>{t.event.preventDefault(),o.push(n?"/me/":d||e)},children:(0,el.jsx)(m.xu,{position:"absolute",bottom:!0,left:!0,right:!0,marginStart:4,marginBottom:4,marginEnd:4,children:(0,el.jsxs)(m.xu,{position:"relative",children:[(0,el.jsx)(m.xu,{children:(0,el.jsx)(m.xv,{color:"light",children:r._('Saved!', 'PinCard.SavedToProfile.Overlay', 'String saying "Saved" after saving a Pin')})}),(0,el.jsxs)(m.kC,{alignItems:"stretch",justifyContent:"start",flex:"grow",children:[(0,el.jsx)(m.xu,{overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},children:(0,el.jsx)(m.xv,{color:"light",children:l?(0,A.nk)(r._('{{sectionName}}', 'PinCard.SavedToSection.Overlay', 'Saved to section overlay, sectionName:the section name that the pin is saved to'),{sectionName:(0,el.jsx)(m.xv,{color:"light",weight:"bold",inline:!0,children:(0,e1.ZP)(l,22)},`pincard-${l}`)}):(0,A.nk)(r._('{{boardName}}', 'PinCard.SavedToBoard.Overlay', 'Saved to board overlay, boardName:the board name that the pin is saved to'),{boardName:(0,el.jsx)(m.xv,{color:"light",weight:"bold",inline:!0,children:n?r._('Profile', 'PinCard.SavedToProfile.Overlay', 'Part of string saying "Saved to Profile" after saving a Pin'):(0,e1.ZP)(t,22)},`pincard-${t}`)})})}),(0,el.jsx)(m.xu,{position:"absolute",right:!0,bottom:!0,marginBottom:1,children:(0,el.jsx)(m.JO,{accessibilityLabel:r._('Saved!', 'PinCard.SavedToProfile.Overlay', 'String saying "Saved" after saving a Pin'),icon:"arrow-forward",size:"16",color:"light"})})]})]})})})})}):i.includes("overlay")?(0,el.jsx)(m.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,zIndex:s,children:(0,el.jsx)(m.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"start",padding:i.includes("overlay")?0:4,children:(0,el.jsx)(m.iP,{fullWidth:!0,fullHeight:!0,onTap:t=>{t.event.preventDefault(),o.push(n?"/me/":d||e)}})})}):(0,el.jsx)(m.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,zIndex:s,dangerouslySetInlineStyle:{__style:{background:"rgb(0 0 0 / .4)"}},children:(0,el.jsx)(m.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"start",padding:i.includes("overlay")?0:4,children:(0,el.jsx)(m.iP,{onTap:t=>{t.event.preventDefault(),o.push(n?"/me/":d||e)},children:(0,el.jsx)(m.xv,{color:"light",children:l?(0,A.nk)(r._('Saved to {{sectionName}}', 'PinCard.SavedToSection.Overlay', 'Saved to section overlay'),{sectionName:(0,el.jsx)(m.xv,{color:"light",weight:"bold",inline:!0,children:(0,e1.ZP)(l,22)},`pincard-${l}`)}):(0,A.nk)(r._('Saved to {{boardName}}', 'PinCard.SavedToBoard.Overlay', 'Saved to board overlay'),{boardName:(0,el.jsx)(m.xv,{color:"light",weight:"bold",inline:!0,children:n?r._('Profile', 'PinCard.SavedToProfile.Overlay', 'Part of string saying "Saved to Profile" after saving a Pin'):(0,e1.ZP)(t,22)},`pincard-${t}`)})})})})})}var e2=i(903095),e3=i(927104);let e6=({clickLoggingOptions:e,domain:t,link:i,onClick:n})=>{var l;let a=null===(l=(0,e2.lO)())||void 0===l?void 0:l.logging,r=(0,P.ZP)(),o=(0,g.Z)(),s=()=>[{event_type:8948},{event_type:12},{event_type:101,element:0,aux_data:{}}].map(t=>({component:0,element:162,view_type:null==a?void 0:a.viewType,view_parameter:null==a?void 0:a.viewParameter,aux_data:e.auxData,object_id_str:e.auxData.objectId,...t}));return(0,el.jsx)(m.iP,{onTap:({event:e})=>{e.stopPropagation(),s().forEach(e=>o(e)),n(e)},children:(0,el.jsxs)(m.xu,{marginBottom:4,marginStart:4,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",left:!0,bottom:!0,children:[(0,el.jsx)(m.xu,{marginEnd:1,children:(0,el.jsx)(m.JO,{size:9,icon:"arrow-up-right",color:"light",accessibilityLabel:r._('Link', 'unauth.pin.domain.link', 'Link to take them to the source of the iamge')})}),(0,el.jsx)("a",{href:i,onClick:e=>{e.stopPropagation(),s().forEach(e=>o(e)),n(e)},rel:"nofollow noopener noreferrer",target:"_blank",type:"button",children:(0,el.jsx)(m.xv,{size:"200",inline:!0,weight:"bold",lineClamp:1,color:"inverse",children:(0,e3.Z)(t,27)})})]})})},e7=({domainLinkData:e})=>{let t=(0,P.ZP)(),i=(0,y.g)();return(0,el.jsxs)(m.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(51, 51, 51, 0.8)"}},children:[(0,el.jsx)(m.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"center",paddingX:2,children:(0,el.jsx)(m.X6,{size:"400",align:"center",color:"light",children:t._('Open', 'Text on hover of a pin leading to opening this pin in the same tab. This is for users who don\'t have an account on Pinterest.', 'Text on hover of a pin leading to opening this pin in the same tab. This is for users who don\'t have an account on Pinterest.')})}),!!e&&(0,el.jsx)(m.xu,{position:"absolute",bottom:!0,left:!0,width:"100%",minWidth:"100%",children:(0,el.jsx)(e6,{clickLoggingOptions:e.clickLoggingOptions,domain:e.domain,link:e.link,onClick:e.onClick||(null==i?void 0:i.pinLinkClickHandler)||(()=>{})})})]})};var e9=i(167525),e4=i(350118),e5=i(67347),te=i(127525);let tt=void 0!==r?r:r=i(114565),ti="Left",tn="Right",tl=({width:e,height:t,minY:i,maxY:n})=>{let l=t=>e<=0||!t?"0%":Math.round(t/e*100)+"%";return{top:i<=0?"0%":l(-1*i*t),bottom:n>=1?"0%":l(-((1-n)*1)*t)}},ta=({children:e,margin:t,disableRounding:i})=>(0,el.jsx)(m.xu,{dangerouslySetInlineStyle:{__style:t?{marginTop:t.top,marginBottom:t.bottom}:{}},position:"relative","data-test-id":"pin-visual-wrapper",children:(0,el.jsx)(m.zd,{wash:!0,rounding:i?0:ew.mv,children:e})}),tr=({clientTrackingParams:e,color:t,data:i,description:n,directSaveExpGroup:l,domainLinkData:a,image:r,imageAltText:o,imageCrop:s,isBoardIdeas:d,isOneTapExploreLocalTab:c,isSquarePin:p,lazyLoadImage:h,onError:g,oneTapSave:y,onLoad:v,pinId:x,priorityFetchImage:b,disableDefaultContextMenu:A,pinnedToBoardId:k,productPrice:S,disableRounding:w,storyDataExists:D,title:E,type:C,videoDuration:I,viewType:j,slotIndex:R,isPromotedPin:O,setIsLongPressEnabledForAuth:N,childDataKey__DEPRECATED:M,setCarouselIndex:U,carouselIndex:Z,viewParameter:K})=>{var H,G,V,W,$,q,Y,J,X,ee,et,ei,en,ea;let er=(0,P.ZP)(),eo=(0,eE.Z)(),{checkExperiment:es}=(0,T.F)(),[ed,eu]=(0,u.useState)(!1),[ec,ep]=(0,u.useState)(!1),{isAuthenticated:e_}=(0,F.B)(),em=(0,B.ZP)(),eh=(0,eZ.M)(),eg=k&&!!(null!=eh&&eh.isSaved(x)),ef=a&&a.link?"with-link":"without-link",ey=!e_&&"desktop"!==em,ev=(0,u.useRef)(Date.now()),ex=(0,u.useRef)(null),eb=(0,L.Z)(),{shouldOpenInStream:ek,carouselData:ew,isEligibleForPdp:eT}=i,eC=(0,te.I)(),{logContextEvent:eI}=(0,eP.v)(),eF=O&&D&&es("ads_mweb_idea_ad").anyEnabled,ej=es("ads_show_carousel_on_mweb").anyEnabled,eR=(0,u.useCallback)(()=>{ec||ep(!0)},[ec]);(0,u.useEffect)(()=>(ej&&"undefined"!=typeof window&&window.addEventListener("scroll",eR),()=>{"undefined"!=typeof window&&window.removeEventListener("scroll",eR)}),[ej,eR]),(0,u.useEffect)(()=>{ed&&!e_&&eb({action:"view",item:"unauth-video-autoplay-on-hover"})},[ed,eb,e_]),(0,u.useEffect)(()=>{var e,t;let i=`board-image-preload-${R-1}`,n=null!==(e=null===(t=document.getElementById(i))||void 0===t?void 0:t.getAttribute("href"))&&void 0!==e?e:"";eC&&5===j&&n&&(0,e5.nP)("www.blp.preloadImageCheck",{sampleRate:5,tags:{isAuthenticated:e_,deviceType:em,isEqual:n===r.url}})},[]);let ez=(0,e0.Z)(M,"PinCardVisual"),eL=e=>{var t,i,n,l;let a=null!==(t=null==ew?void 0:null===(i=ew.carouselSlots)||void 0===i?void 0:i.length)&&void 0!==t?t:0,r=Z;e===ti&&Z<a-1?r=Z+1:e===tn&&Z>0&&(r=Z-1),U(r),ez({pinId:x,currentIndex:Z,nextIndex:r,carouselData:{carouselSlots:null==ew?void 0:null===(n=ew.carouselSlots)||void 0===n?void 0:n.map(({slotId:e})=>({id:e})),entityId:null!==(l=null==ew?void 0:ew.entityId)&&void 0!==l?l:""},viewParameter:K,viewType:j,componentType:14887,isEligibleForPdp:null!=eT&&eT})},eO=(e,t)=>{let i=e.x-t.x,n=e.y-t.y,l=Math.abs(i),a=Math.abs(n);return l>a?i>0?tn:ti:n>0?"Down":"Up"},eB=ej&&ew?(0,el.jsx)(m.xu,{display:"flex",marginEnd:1,marginStart:1,marginTop:3,position:"relative",children:(0,el.jsx)(eX.default,{addEllipsis:!0,ellipsisVariant:"dark",alwaysShowNavigationArrows:!1,carouselIndex:Z,carouselData:{carouselSlots:null===(H=ew.carouselSlots)||void 0===H?void 0:H.map(({slotId:e,title:t})=>({id:e,title:t})),entityId:null!==(G=ew.entityId)&&void 0!==G?G:"",index:ew.index},handleCarouselSwipe:e=>{U(e)},pinKey:null==M||"graphqlRef"===M.type?M:{type:"deprecated",data:x},viewParameter:K,viewType:j,componentType:14888,hideNavigationArrows:!0})}):null,eN=ej&&ew?(0,el.jsx)(eQ,{index:Z,carouselSlots:ew.carouselSlots?ew.carouselSlots.map(({slotId:e,details:t,imageSignature:i,title:n,imagesSpec_236x:l})=>({details:t,slotId:e,imageSignature:i,title:n,imageSizeMap:{"236x":{width:null==l?void 0:l.width,height:null==l?void 0:l.height,url:null==l?void 0:l.url}}})):[],imageSpec:"236x",color:t,onError:g,onLoad:v}):(0,el.jsx)(eA.Z,{alt:o||E||n||"",color:t,naturalHeight:null!==(V=r.height)&&void 0!==V?V:1,naturalWidth:null!==(W=r.width)&&void 0!==W?W:1,onError:g,onLoad:v,src:null!==($=r.url)&&void 0!==$?$:"",fit:p?"cover":void 0,loading:h?"lazy":"auto",fetchPriority:b?"high":"auto"}),eM=(0,_.useLocation)(),{scope:eU}=(0,_.useParams)(),eK=()=>(0,Q.C$)(eM)?"homefeed":(0,Q.L6)(eM)?"related_pins":(0,Q.En)(eM)?"search":"unknown",eH=()=>(0,Q.C$)(eM)?92:(0,Q.L6)(eM)?140:(0,Q.En)(eM)?(0,eD._R)((0,eD.oD)(eU)):void 0,eG=l.includes("enabled"),eV=eG?!k&&!!(null!=eh&&eh.isSaved(x)):(null===(q=i.board)||void 0===q?void 0:q.layout)==="quick_saves",eW=eG?e_&&(eg||eV):e_&&eg;return(0,el.jsxs)("div",{className:"PinCard__imageWrapper",style:{position:"relative"},children:[(0,el.jsxs)(m.xu,{onContextMenu:e=>{if("desktop"!==em){let t=eK();(0,z.My)(`${e_?"auth":"unauth"}.mweb_pin_feed.pin_image.long_press`,{page:t}),(!e_||es("mweb_long_press_menu_v2",{dangerouslySkipActivation:!0}).anyEnabled)&&(e.preventDefault(),e.stopPropagation())}},onTouchStart:e=>{if("desktop"!==em&&(ep(!1),(0,z.My)("unauth.mweb.related_pin.image.touch.start"),(!e_||es("mweb_long_press_menu_v2",{dangerouslySkipActivation:!0}).anyEnabled)&&(null==A||A()),ev.current=Date.now(),e.changedTouches&&e.changedTouches.length>0)){let t=e.changedTouches[0];t&&(ex.current={x:t.pageX,y:t.pageY})}},onTouchEnd:e=>{if("desktop"!==em){let t=eK();(0,z.My)("unauth.mweb.related_pin.image.touch.end");let i=Date.now()-ev.current,n=i>500,l=ex.current;if(e.changedTouches&&e.changedTouches.length>0&&l){let i=e.changedTouches[0],a={x:i.pageX,y:i.pageY},r=eO(a,l),o=Math.pow(i.pageX-l.x,2)+Math.pow(i.pageY-l.y,2);if(!ej||r!==ti&&r!==tn||n||ec||(e.preventDefault(),e.stopPropagation(),eL(r)),i&&o>100)return;if(n&&!e_&&"related_pins"===t)null==A||A(),eo({pinId:x,location:"related-pins-long-press"}),e.stopPropagation();else if(n&&e_){let t=eH();void 0!==t&&es("mweb_long_press_menu_v2").anyEnabled&&(null==A||A(),null==N||N(!0),e.stopPropagation()),eI({event_type:103,view_parameter:eH()})}}}},"data-test-id":`pincard-${C}-${ef}`,dangerouslySetInlineStyle:{__style:{willChange:"transform",textDecoration:"none"}},overflow:"hidden",onMouseOver:ey||es("prevent_open_on_hover").anyEnabled?void 0:()=>eu(!0),onMouseLeave:ey?void 0:()=>eu(!1),position:"relative",rounding:w?0:4,children:[(0,el.jsxs)(eJ,{clientTrackingParams:e||"",oneTapSave:y,isBoardIdeas:d,isOneTapExploreLocalTab:c,pinId:x,directSaveExpGroup:l,pinnedToBoardId:k,viewType:j,children:[(()=>{var e,t,n,l;if("gif"===C&&!eg)return(0,el.jsx)(e9.Z,{text:er._('GIF', 'pin.pinCard.gifIconIdentifier', 'pin type identifier for gifs')});if("video"===C&&I&&!eg)return(0,el.jsx)(e9.Z,{text:I});if("storyPin"===C&&D&&!eg&&!1!==ek){let n=(null===(e=i.storyPinData)||void 0===e?void 0:e.staticPageCount)||0,l=(null===(t=i.storyPinData)||void 0===t?void 0:t.totalVideoDuration)||0,a=l+n*eS.oN;return(0,el.jsx)(e9.Z,{text:(0,f.Z)(a)})}if(eF&&D&&!eg&&!1!==ek&&O){let e=(null===(n=i.storyPinData)||void 0===n?void 0:n.staticPageCount)||0,t=(null===(l=i.storyPinData)||void 0===l?void 0:l.totalVideoDuration)||0;if(t>0){let i=t+e*eS.oN;return(0,el.jsx)(e9.Z,{text:(0,f.Z)(i)})}}return"product"===C&&S?(0,el.jsx)(e9.Z,{text:S}):null})(),(0,el.jsx)(ta,{disableRounding:w,margin:s?tl({width:null!==(Y=r.width)&&void 0!==Y?Y:1,height:null!==(J=r.height)&&void 0!==J?J:1,minY:s.minY,maxY:s.maxY}):void 0,children:p?(0,el.jsx)(m.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:(0,el.jsx)(m.xu,{top:!0,right:!0,bottom:!0,left:!0,position:"absolute",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:eN})}):eN})]}),ed&&!e_&&(0,el.jsx)(e7,{domainLinkData:a}),eW&&(0,el.jsx)(e8,{boardName:null!==(X=null===(ee=i.board)||void 0===ee?void 0:ee.name)&&void 0!==X?X:"",boardUrl:null!==(et=null===(ei=i.board)||void 0===ei?void 0:ei.url)&&void 0!==et?et:"",directSaveExpGroup:l,sectionName:null==y?void 0:null===(en=y.section)||void 0===en?void 0:en.title,sectionSlug:null==y?void 0:null===(ea=y.section)||void 0===ea?void 0:ea.slug,isQuicksave:eV})]}),eB]})},to=(0,ek.Z)({useGraphQLAdapter:e=>{let t=(0,p.useFragment)(tt,e);return{pin:t,childDataKey__DEPRECATED:{type:"graphqlRef",data:t}}},useLegacyAdapter:({pinId:e,pinnedToBoardId:t})=>{var i,n;let l=(0,e4.S6)()(e),a=(0,et.gC)();if(!l)return null;let r=a(t||String(null===(i=l.board)||void 0===i?void 0:i.id));return{pin:{board:r&&{layout:r.layout,name:r.name,url:r.url},shouldOpenInStream:l.should_open_in_stream,storyPinData:l.story_pin_data&&{staticPageCount:l.story_pin_data.static_page_count,totalVideoDuration:l.story_pin_data.total_video_duration},carouselData:l&&l.carousel_data?{index:l.carousel_data.index,entityId:l.carousel_data.id||l.id,carouselSlots:null===(n=l.carousel_data.carousel_slots)||void 0===n?void 0:n.map(e=>{var t;return{slotId:e.id,details:e.details,imageSignature:e.image_signature,title:e.title,imagesSpec_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}}})}:null,isEligibleForPdp:l.is_eligible_for_pdp},childDataKey__DEPRECATED:{type:"deprecated",data:l}}}}),ts=e=>(0,el.jsx)(to,{input:e.pinGraphqlRef?{enabled:!0,data:e.pinGraphqlRef}:{enabled:!1,data:{pinId:e.pinId,pinnedToBoardId:e.pinnedToBoardId}},children:({data:t})=>t&&(0,el.jsx)(tr,{...e,childDataKey__DEPRECATED:t.childDataKey__DEPRECATED,data:t.pin})});var td=i(55275);let tu={initial:{opacity:0,transition:"opacity 0.25s ease-in"},fadeIn:{opacity:.8,transition:"opacity 1s ease"}},tc=(e,t,i)=>(0,el.jsx)(m.xv,{color:"inverse",inline:!0,size:"200",weight:"bold",children:(0,el.jsx)(m.rU,{display:"inlineBlock",href:t,tapStyle:"none",underline:"hover",children:i})},e);function tp({color:e,getFeedbackText:t,margin:i,onUnfollow:n,showing:l,unfollowed:a}){let r=(0,P.ZP)(),[o,s]=(0,u.useState)(l?"fadeIn":"initial"),d=(0,u.useRef)(null),c=(0,g.Z)();(0,u.useEffect)(()=>("initial"===o&&l&&(d.current=window.requestAnimationFrame(()=>s("fadeIn"))),()=>{d.current&&window.cancelAnimationFrame(d.current)}),[o,s,l]);let{subTitle:p,title:_,unfollow:h}=t(tc),f=_,y=p;return h&&a&&(f=h.title,y=h.subTitle),l&&(0,el.jsx)(m.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:e,...tu[o]}},margin:i,rounding:4,position:"absolute",top:!0,bottom:!0,left:!0,right:!0,children:(0,el.jsx)(m.xu,{width:"100%",height:"100%",color:"dark",rounding:4,overflow:"auto",children:(0,el.jsxs)(m.xu,{"data-test-id":"reported-overlay",padding:3,rounding:2,display:"flex",direction:"column",height:"100%",justifyContent:"between",children:[(0,el.jsxs)(m.xu,{children:[(0,el.jsx)(m.X6,{size:"400",color:"light",children:f}),!!y&&(0,el.jsxs)(m.xu,{marginTop:1,children:[(0,el.jsx)(m.xv,{color:"light",size:"200",inline:!0,children:y}),(0,el.jsx)(m.xv,{color:"light",inline:!0,size:"200",weight:"bold",children:(0,el.jsx)(m.rU,{href:"/edit",display:"block",rounding:2,tapStyle:"none",underline:"hover",children:r._('Tune your home feed', 'Text on the button to navigate to homefeed control', 'Text on the button to navigate to homefeed control')})})]})]}),!a&&h&&(0,el.jsx)(m.xu,{paddingY:1,children:(0,el.jsx)(m.zx,{fullWidth:!0,color:"white",text:r._('Unfollow', 'Text on the button to unfollow a specific board / user', 'Text on the button to unfollow a specific board / user'),onClick:()=>h?(0,td.t)(h.action,h.actionOptions,n,c):void 0})})]})})})}var t_=i(904779);function tm(e){let t=(0,P.ZP)(),{pinId:i,clientTrackingParams:n,directSaveExpGroup:l}=e,a=(0,eZ.M)(),r=(0,_.useHistory)(),{showToast:o}=(0,eC.F9)(),s=(0,c.useSelector)(e=>e.pins[i]&&e.pins[i].savedInfo),d=!!(null!=a&&a.isSaved(i))||s,u=(0,c.useDispatch)(),p=l.includes("uselabel"),h=async e=>{if(e.stopPropagation(),e.preventDefault(),d){if(s){u((0,eG.k)({boardId:s.boardId,localPinId:s.localPinId,pinId:i})),null==a||a.unsave(i);try{await u((0,eV.q)({pinId:s.localPinId||"",boardId:s.boardId,clientTrackingParams:n})),o(({hideToast:e})=>(0,el.jsx)(eT.ZP,{text:t._('Pin deleted!', 'User deleted their pin', 'User deleted their pin'),onHide:e}))}catch(e){o(({hideToast:e})=>(0,el.jsx)(eT.ZP,{type:"error",text:t._('Sorry! There was an error deleting your Pin.', 'Error when user tried to delete pin', 'Error when user tried to delete pin'),onHide:e}))}}}else r.push({pathname:`/pin/${i}/repin`,state:{isOneTapSave:!0}})},g=d?(0,el.jsx)(m.xv,{weight:"bold",size:"100",children:t._('Saved', 'button for saving quickly with one click', 'button for saving quickly with one click, indicating pin is saved')}):(0,el.jsx)(m.xv,{weight:"bold",size:"100",children:t._('Save', 'button for saving quickly with one click', 'button for saving quickly with one click, indicating pin is unsaved')});return p?(0,el.jsx)(m.iP,{onTap:({event:e})=>{h(e)},rounding:"circle",children:(0,el.jsx)(m.xu,{color:"transparent",paddingX:2,paddingY:1,rounding:"pill",children:(0,el.jsx)(m.xu,{children:g})})}):(0,el.jsx)(m.hU,{icon:d?"check":(0,e$.f)(),size:"sm",iconColor:"darkGray",padding:1,accessibilityLabel:d?t._('Undo save', 'PinFooterSaveButton.Unsave', 'String saying "Undo save" after saving a Pin to undo save'):t._('Save', 'PinFooterSaveButton.Save', 'String saying "Save" to ask user to save a pin'),onClick:({event:e})=>{h(e)}})}var th=i(733319),tg=i(561195);function tf({maxRating:e,rating:t,text:i}){return(0,el.jsxs)(m.xu,{alignItems:"center",display:"flex",marginBottom:0,children:[(0,el.jsx)(tg.Z,{max_rating:e||"",rating:t||"",width:10}),i&&(0,el.jsx)(u.Fragment,{children:(0,el.jsx)(m.xu,{marginStart:1,overflow:"hidden",children:(0,el.jsx)(m.xv,{size:"100",lineClamp:1,children:i})})})]})}var ty=i(255607),tv=i(21384);let tx=void 0!==o?o:o=i(91849);function tb({dedupeVisualAnnotations:e,description:t,gridTitle:i,pinId:n,richMetadataTitle:l,richSummaryDisplayName:a,storyPinDataId:r,storyPinDataMetadataPinTitle:o,title:s,queryRef:d}){let u=(0,p.useFragment)(tx,d);return(0,el.jsxs)(m.xu,{paddingX:2,marginBottom:-1,display:"flex",children:[(0,el.jsx)(m.xu,{flex:"grow",maxHeight:32,minHeight:12,overflow:"hidden",width:142,children:(0,el.jsx)(m.xv,{lineClamp:2,size:"100",weight:"bold",children:(0,E.fs)({pinTitle:s,gridTitle:i,richSummaryDisplayName:a,richMetadataTitle:l,storyPinDataId:r,storyPinDataMetadataPinTitle:o})||t})}),(0,el.jsx)(m.xu,{children:(0,el.jsx)(tv.Z,{pinId:n,size:"sm",graphqlRef:u,dedupeVisualAnnotations:e})})]})}var tP=i(248299),tA=i(430235);let tk=void 0!==s?s:s=i(156577),tS=({attribute:e,deviceType:t,location:i})=>{let n=(0,L.S)(i);(0,z.My)("unauth.product_attribution.click",{item:e,page:n,device:t})},tw=({isSquarePin:e,price:t,shouldDisplayMerchant:i})=>{if(t&&e)return i?90:68},tD=({maxPrice:e,minPrice:t,price:i})=>e&&t?`${t}-${e}`:i;function tE({dedupeVisualAnnotations:e,description:t,domain:i,graphqlRef:n,gridTitle:l,isSquarePin:a,pinId:r,priceSummary:o,richMetadataTitle:s,richSummaryDisplayName:d,storyPinDataId:c,storyPinDataMetadataPinTitle:p,title:h}){let g=(0,B.ZP)(),f=(0,_.useLocation)(),y=o&&(o.price||o.standardPrice||tD(o)),v=(0,u.useMemo)(()=>a?2:y?3:2,[a,y]);if(!r)return null;let x=(0,E.fs)({pinTitle:h,gridTitle:l,richSummaryDisplayName:d,richMetadataTitle:s,storyPinDataId:c,storyPinDataMetadataPinTitle:p})||t,b=`/pin/${r}/`;return(0,el.jsx)(m.xu,{paddingX:2,marginBottom:-1,marginTop:2,display:"flex",direction:"column",height:tw({isSquarePin:a,price:y}),children:(0,el.jsxs)(m.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[(0,el.jsx)(m.xu,{flex:"grow",minHeight:12,overflow:"hidden",width:142,children:(0,el.jsxs)(K.MZ,{to:b,accessibilityLabel:x,deeplinkUri:b,children:[y&&(0,el.jsx)(m.iP,{onTap:()=>tS({deviceType:g,attribute:"price",location:f}),children:(0,el.jsx)(m.xv,{size:"100",weight:"bold",children:y})}),(0,el.jsx)(m.xu,{marginTop:1,children:(0,el.jsx)(m.iP,{onTap:()=>tS({deviceType:g,attribute:"title",location:f}),children:(0,el.jsx)(m.xv,{size:"100",weight:"bold",lineClamp:v,children:x})})}),i&&y&&(0,el.jsx)(m.xu,{marginTop:1,children:(0,el.jsx)(m.iP,{onTap:()=>tS({deviceType:g,attribute:"merchant",location:f}),children:(0,el.jsx)(m.xv,{size:"100",lineClamp:1,children:i})})})]})}),"desktop"!==g&&(0,el.jsx)(m.xu,{children:(0,el.jsx)(tv.Z,{dedupeVisualAnnotations:e,pinId:r,size:"sm",graphqlRef:n})})]})})}let tT=(0,ek.Z)({useGraphQLAdapter:({queryRef:e})=>(0,p.useFragment)(tk,e),useLegacyAdapter:()=>null});function tC({queryRef:e,...t}){return(0,el.jsx)(tT,{input:e?{enabled:!0,data:{queryRef:e}}:{enabled:!1,data:{pinId:t.pinId}},children:({data:e})=>(0,el.jsx)(tE,{...t,graphqlRef:e})})}var tI=i(394332);let tF=void 0!==d?d:d=i(813283),tj=e=>!!(e.promoter&&!e.isDownstreamPromotion),tR=e=>{let{attribution:t,embed:i,isEligibleForWebCloseup:n,richSummary:l,videos:a,storyPinDataId:r}=e,o=i||(null==t?void 0:t.embed);return n?"oneTap":a||(null==o?void 0:o.type)==="video"?"video":(null==o?void 0:o.type)==="gif"?"gif":(null==l?void 0:l.typeName)==="product"?"product":(null==l?void 0:l.typeName)==="recipe"?"recipe":r?"storyPin":"image"},tz=e=>{let{adDestinationUrl:t,link:i,trackedLink:n}=e;return t||n||i||""},tL=e=>{var t,i,n;let l=null===(t=e.videos)||void 0===t?void 0:t.videoList;return l?(0,f.Z)(null!==(i=null===(n=l[Object.keys(l)[0]])||void 0===n?void 0:n.duration)&&void 0!==i?i:0):""},tO=e=>{var t;let[i]=(null===(t=e.richSummary)||void 0===t?void 0:t.products)||[];if(!i)return null;let{offerSummary:n}=i;return n&&(n.price||n.maxPrice)},tB=e=>e&&e.includes("/user/default")?void 0:e,tN=(0,u.lazy)(()=>Promise.all([i.e(44970),i.e(12058),i.e(56503),i.e(36807)]).then(i.bind(i,475887)));function tM({auxData:e,componentType:t,debugInfo:i,disableAppUpsell:n,disableReaction:l,disableRounding:a,duploConversationPin:r,duploDedupeVisualAnnotations:o,duploDisablePinCardPadding:s,duploFeedItemProps:d,duploIsSquarePin:p,duploLazyLoadImage:f,duploOneTapSave:b,duploPinCardDetailsMargin:O,duploPriorityFetchImage:J,duploQueryRef:X,duploShouldAddNiiSearchParamToImageUrls:Q,duploShouldAllowProductPriceIndicator:ee,feedback:et,imageOnlyOption:ei,impressionData:en,objectIdStr:ea,pin:er,slotIndex:eo,topLevelTrafficSource:es,topLevelTrafficSourceDepth:ed,trackingParams:eu,trafficSource:ec,viewData:ep,viewParameter:e_,viewType:eh}){var eg,ef,ey,ev,ex,eP,eA,ek,eS,ew,eD,eE,eT,eC,eI,eF,ej,eR,ez,eL;let eO;let eB=(0,P.ZP)(),eN=(0,y.g)(),eM=(0,_.useLocation)(),eU=(0,B.HG)(),eZ=(0,Y.Z)(),eK=(0,C.yz)(),eH=(0,x._)({id:1000107}),eG=(0,g.Z)(),eV=(0,L.Z)(),{country:eW,isAuthenticated:e$,isBot:eq,isSocialBot:eY}=(0,F.B)(),{viewedSharedPins:eJ}=(0,c.useSelector)(({session:e})=>e),eX=(0,c.useSelector)(({experiences:e})=>{let t=e[1000107];return!!t&&500678===t.experience_id}),eQ=(0,c.useSelector)(({session:e,users:t})=>(0,k.Z)(t[e.userId].created_at)),{getPinFeedbackStatus:e0,setPinFeedbackStatus:e1}=(0,t_.K)(),[e8,e2]=(0,u.useState)(!1),[e3,e6]=(0,u.useState)(!1),[e7,e9]=(0,u.useState)(!1),[e4,te]=(0,u.useState)(null!==(eg=null===(ef=er.carouselData)||void 0===ef?void 0:ef.index)&&void 0!==eg?eg:0),tt=(0,u.useRef)(),ti=(0,M.Z)(),tn=er.entityId,tl=!!er.storyPinDataId&&!1===er.shouldOpenInStream,ta=e=>Q&&e?{...e,url:e.url&&(0,R.H5)(e.url)}:e,tr=ta(er.imageSpec_136x136),to=ta(er.imageSpec_170x),td=ta(er.imageSpec_236x),tu=ta(er.imageSpec_474x),tc=ta(er.imageSpec_736x),tg=ta(er.imageSpec_orig),tv={...[["136x136",tr],["170x",to],["236x",td],["474x",tu],["736x",tc],["orig",tg]].reduce((e,[t,i])=>{var n,l,a,r;return i&&(e[t]={dominant_color:null!==(n=i.dominantColor)&&void 0!==n?n:void 0,height:null!==(l=i.height)&&void 0!==l?l:void 0,url:null!==(a=i.url)&&void 0!==a?a:void 0,width:null!==(r=i.width)&&void 0!==r?r:void 0}),e},{})},{checkExperiment:tx}=(0,T.F)(),tk=Object.keys(tv).reduce((e,t)=>{var i;return t&&null!==(i=tv[t])&&void 0!==i&&i.url?{...e,[t]:tv[t].url}:e},{}),tS=e=>{var t,i;return(0,w.Z)({embedSrc:null===(t=er.embed)||void 0===t?void 0:t.src,embedType:null===(i=er.embed)||void 0===i?void 0:i.type,imagesUrls:tk,preferredResolution:e,excludeOriginals:!eq&&!eY})},tw=tR(er),tD=(0,U.z)();(0,N.Z)(()=>{if(tD&&!eU&&"image"===tw){let t=tv["236x"]||tv["136x136"],i=tS("736x");if(i){var e;let n={pin:{dominantColor:er.dominantColor,link:er.link,mobileLink:er.mobileLink,richMetadata:er.richMetadata&&{__typename:"RichPinDataView",article:er.richMetadata.article&&{__typename:"ArticleMetadata"},recipe:er.richMetadata.recipe&&{__typename:"RecipeMetadata"},products:null===(e=er.richMetadata.products)||void 0===e?void 0:e.map(()=>({__typename:"RichPinProductMetadata"}))},trackedLink:er.trackedLink},derived:{homefeedRecommendationReason:92===e_&&er.recommendationReason?{reason:er.recommendationReason.reason,reasonId:er.recommendationReason.reasonId}:null,imageUrl:i,placeholder:t&&{width:t.width,height:t.height,url:t.url}}};tD.setData(tn,n)}}}),(0,N.Z)(()=>{if(!e$&&0===eo&&3070===e_){var e,t,i;let n=eM.pathname,{imageSignature:l,entityId:a,imageSpec_236x:r,description:o}=er;(0,q.H$)(n,l,a,r&&{dominant_color:null!==(e=r.dominantColor)&&void 0!==e?e:void 0,height:null!==(t=r.height)&&void 0!==t?t:void 0,url:r.url,width:null!==(i=r.width)&&void 0!==i?i:void 0},o)}});let tE=92===e_&&(null===(ey=eJ&&eJ[tn])||void 0===ey?void 0:ey.inviteCode),tT=p?{height:136,url:null==td?void 0:td.url,width:136}:[td,to,tr,tc,tu,tg].find(e=>e&&e.url)||{width:1,height:1,url:""},tF=null===(ev=er.videos)||void 0===ev?void 0:null===(ex=ev.videoList)||void 0===ex?void 0:ex.v720P,tM=(0,G.Z)({isEligibleForPdp:er.isEligibleForPdp,isOosProduct:er.isOosProduct,isStaleProduct:er.isStaleProduct,pinShoppingFlags:null!==(eP=er.shoppingFlags)&&void 0!==eP?eP:void 0}),tU=()=>{let i=(0,V.Z)(eu,er.trackingParams);if((0,z.My)(`unauth_pin_rep.click.${String(e_)}`),eG({view_type:eh,view_parameter:e_,element:er.storyPinDataId?12372:35,event_type:101,component:t,object_id_str:tn,clientTrackingParams:i,aux_data:{commerce_data:tM,grid_index:eo,image_signature:er.imageSignature,...e}}),"oneTap"!==tw&&eG({event_type:8948,view_type:eh,view_parameter:e_,object_id_str:tn,clientTrackingParams:i,aux_data:{image_signature:er.imageSignature,commerce_data:tM,closeup_navigation_type:"click",grid_index:eo,cosmic_ray_count:"3",...e}}),!e$)switch(eV({action:"click",item:"pin"}),eh){case 3:(0,z.NC)("click_pin_related_image");break;case 5:(0,z.NC)("click_board_pin_image");break;case 210:(0,z.NC)("click_topic_pin_image");break;case 605:(0,z.NC)("click_shopping_category_pin_image");break;case 606:(0,z.NC)("click_videos_category_pin_image")}"oneTap"===tw&&(eG({event_type:8948,view_type:eh,view_parameter:e_,object_id_str:tn,clientTrackingParams:i,aux_data:{image_signature:er.imageSignature,closeup_navigation_type:"click",click_type:"clickthrough",cosmic_ray_count:"2",...e}}),(0,$.jC)({view_type:eh,view_parameter:e_,element:er.storyPinDataId?12372:35,component:t,object_id_str:tn,aux_data:{commerce_data:tM,grid_index:eo,image_signature:er.imageSignature,...e},clientTrackingParams:i}),eG({component:t,event_type:13,view_type:3,clientTrackingParams:i,aux_data:{closeup_navigation_type:"web_closeup",image_signature:er.imageSignature},object_id_str:tn}))},tZ=e0({pinId:tn}),tK=tj(er),tH=()=>{var e,t,i,n,l,a,r,o,s,d,u,c,p,_;let m=({user:e,linkToBoard:t})=>{var i;return{link:t?(null===(i=er.board)||void 0===i?void 0:i.url)||`/pin/${er.entityId}/`:(null==e?void 0:e.username)&&`/${e.username}/`||"",avatar:tB(null==e?void 0:e.imageMediumUrl)||tB(null==e?void 0:e.imageSmallUrl)}};if(tj(er))return er.sponsorship&&(null===(o=er.promoter)||void 0===o?void 0:o.entityId)!==(null===(s=er.nativeCreator)||void 0===s?void 0:s.entityId)?{title:null===(d=er.nativeCreator)||void 0===d?void 0:d.fullName,subtitle:null===(u=er.promoter)||void 0===u?void 0:u.fullName,...m({user:er.nativeCreator})}:{title:eB._('Promoted by', 'Grid pin annotation', 'Grid pin annotation'),subtitle:null===(c=er.promoter)||void 0===c?void 0:c.fullName,...m({user:er.promoter})};if(null!==(e=er.sponsorship)&&void 0!==e&&e.creator)return{title:null===(p=er.nativeCreator)||void 0===p?void 0:p.fullName,subtitle:null===(_=er.sponsorship.sponsor)||void 0===_?void 0:_.fullName,...m({user:er.nativeCreator})};if(!er.isEligibleForPdp){if(er.nativeCreator)return{title:er.nativeCreator.fullName,subtitle:"",...m({user:er.nativeCreator})};switch(e_){case 3375:if(!(null!==(t=er.linkDomain)&&void 0!==t&&null!==(i=t.officialUser)&&void 0!==i&&i.isPrimaryWebsiteVerified))return;let e=null!==(n=er.storyPinData)&&void 0!==n&&n.hasProductPins?er.nativeCreator:er.linkDomain.officialUser;return{title:"",subtitle:null==e?void 0:e.fullName,...m({user:e})};case 0:case 3173:return null!==(l=er.storyPinData)&&void 0!==l&&l.hasProductPins?{title:"",subtitle:null===(a=er.nativeCreator)||void 0===a?void 0:a.fullName,...m({user:er.nativeCreator,linkToBoard:!0})}:{title:er.board&&"protected"===er.board.privacy?eB._('Saved by', 'Grid pin annotation', 'Grid pin annotation'):(null===(r=er.pinner)||void 0===r?void 0:r.fullName)||"",subtitle:"",...m({user:er.pinner,linkToBoard:!0})};default:return}}},tG=(0,S.hP)({boardFollowedByMe:!!(null!==(eA=er.board)&&void 0!==eA&&eA.followedByMe),feedbackType:null==et?void 0:et.type,viewParameter:e_,promotion:er&&er.promoter&&{isDownstreamPromotion:!!er.isDownstreamPromotion},pinnerFollowedByMe:!!(null!==(ek=er.pinner)&&void 0!==ek&&ek.explicitlyFollowedByMe),recommendationReason:er.recommendationReason&&{hasBoard:!!er.recommendationReason.board,reason:null!==(eS=er.recommendationReason.reason)&&void 0!==eS?eS:void 0}}),tV=e=>{var t,i,n;let l={i18n:eB,makeNavigateLink:e};switch(tG){case"pfy":return(0,S.Ud)({...l,feedback:{type:"pfy"}});case"pfyBoard":return(0,S.Ud)({...l,feedback:{type:"pfyBoard",recommendationReasonBoard:(null===(t=er.recommendationReason)||void 0===t?void 0:t.board)&&{name:null!==(i=er.recommendationReason.board.name)&&void 0!==i?i:"",url:null!==(n=er.recommendationReason.board.url)&&void 0!==n?n:""}}});case"topic":return(0,S.Ud)({...l,feedback:{type:"topic",sourceInterest:er.sourceInterest&&er.sourceInterest.name&&er.sourceInterest.urlName?{name:er.sourceInterest.name,url_name:er.sourceInterest.urlName}:null}});case"followed":return(0,S.Ud)({...l,feedback:{type:"followed",followed:er.pinner&&er.pinner.explicitlyFollowedByMe?{type:"pinner",pinner:er.pinner.fullName&&er.pinner.username?{full_name:er.pinner.fullName,username:er.pinner.username}:null}:{type:"board",board:er.board&&er.board.name&&er.board.url?{name:er.board.name,url:er.board.url}:null}}});case"promoted":return(0,S.Ud)({...l,feedback:{type:"promoted",promoter:!er.adMatchReason&&er.promoter&&er.promoter.fullName?{full_name:er.promoter.fullName,username:er.promoter.username}:null}});default:return null}},{attributionSourceId:tW,category:t$,linkDomain:tq,description:tY,gridTitle:tJ,imageSignature:tX,richMetadata:tQ,richSummary:t0,title:t1,sponsorship:t8,storyPinData:t2,carouselData:t3}=er,[t6,t7]="string"==typeof tJ?[tJ,""]:[null==t0?void 0:t0.displayName,tY],t9=null,t4=tx("ads_show_carousel_on_mweb").anyEnabled;t4&&t3&&t3.carouselSlots&&((eO=t3.carouselSlots[e4]).link&&"oneTap"===tw&&(t9=eO.link),eO.title&&(t6=eO.title),eO.details&&(t7=eO.details));let t5=null==t2?void 0:t2.isDeleted,ie=(0,V.Z)((eM&&eM.state||{}).trackingParams||eu,er.trackingParams),it="product"===tw&&!e$,{experimentsClient:ii}=(0,F.B)(),il=eX&&3375!==e_&&(ii.checkExperiment("mweb_pin_grid_image_only_v2").anyEnabled||ii.checkExperiment("mweb_pin_grid_image_only_v2_new_user").anyEnabled),ia=eX&&!(t0&&43===e_&&!eQ||3375===e_)||il,ir=null===(ew=er.pinJoin)||void 0===ew?void 0:ew.visualAnnotation;o&&ir&&(ir=o({pinId:tn,visualAnnotations:ir}));let io=(0,E.rw)(null!==(eD=er.description)&&void 0!==eD?eD:"",er.descriptionHtml||"",ir,er.altText||"",er.autoAltText||""),is=e$?t7:(0,D.Z)({storyPinDataId:er.storyPinDataId,pinDescription:er.description,richMetadataDescription:null!==(eE=null===(eT=er.richMetadata)||void 0===eT?void 0:eT.description)&&void 0!==eE?eE:"",richSummaryDisplayName:null!==(eC=null===(eI=er.richSummary)||void 0===eI?void 0:eI.displayName)&&void 0!==eC?eC:"",closeupDescription:null!==(eF=er.closeupDescription)&&void 0!==eF?eF:"",closeupUnifiedDescription:null!==(ej=er.closeupUnifiedDescription)&&void 0!==ej?ej:""});null===t9&&(t9="oneTap"===tw?er.trackedLink||er.link:e$?(0,E.BY)(tn):(0,E.bN)({pinId:tn,seoUrl:er.seoUrl}));let id=null;if(!ti&&tK&&null!==(eR=window.document.featurePolicy)&&void 0!==eR&&eR.allowsFeature("attribution-reporting"))try{let e=(0,h.m_)(null!=tW?tW:"0",tz(er),!0,er.campaignId,er.advertiserId);id=`attributionsrc=${encodeURIComponent(e)}`}catch(e){(0,e5.nP)("webapp.arapi.click.funnel",{sampleRate:.1,tags:{status:"failed",error:e.name}})}let iu={accessibilityLabel:io||t6||t7||eB._('Pin', 'Pin accessibility label', 'Pin accessibility label'),country:eW,deeplinkUri:t9,external:"oneTap"===tw,externalQueryParams:{pin:tn,client_tracking_params:eu},features:id,isAppUpsellDisabled:n,onTouch:e=>{var t;if(tU(),null==d||null===(t=d.onPinClick)||void 0===t||t.call(d),eU){let t=494===eh,i=e.metaKey;if(i||t)(0,z.My)(`unauth_pin_rep.click.cmd_button_pressed.${String(e_)}`),e.preventDefault(),window.open(`/pin/${tn}/`,"_blank").focus();else if(!e$&&eN){let{pinImageClickHandler:t}=eN;t({event:e,pinId:tn,linkTarget:"duploClientNav",seoUrl:er.seoUrl})}}else e$||(0,z.My)("unauth_mweb_pin_rep.click",{viewType:eh})},pinCategory:er.category,pressState:"none",rounding:4,title:eB._('See this Pin', 'App Upsell Text after clicking on Pin in feed', 'App Upsell Text after clicking on Pin in feed'),to:{pathname:t9,state:{trackingParams:eu,trafficSource:ec,topLevelTrafficSource:es,topLevelTrafficSourceDepth:ed}},upsellType:"direct",viewParameter:e_,viewType:eh,clientTrackingParams:ie},ic=(0,W.kb)({hasLinkDomain:!!tq,richMetadata:tQ&&{recipe:tQ.recipe&&{fromAggregatedData:tQ.recipe.fromAggregatedData},products:null===(ez=tQ.products)||void 0===ez?void 0:ez.map(({__typename:e,...t})=>t)},richSummary:t0&&{products:t0.products}}),ip=!ee&&["shop_feed"].includes(ec),i_=(0,c.useSelector)(({session:e})=>e.unauthSavePinId),im=e$&&!!i_&&i_===tn,ih=!e$||im||b?"":tx("mweb_direct_save_from_grid_v2").group||tx("mweb_direct_save_from_grid_v2_new_user").group||"",ig=ih.includes("footer"),iy=s?0:(0,th.Z)({isDesktop:eU});return(0,el.jsx)(H.dL,{auxData:{commerce_data:tM,pwa_type:eK,...e},component:t,impressionData:{richTypes:er.shoppingFlags||[],imageURL:tT.url||"",isPromoted:tj(er),attributionSourceId:er.attributionSourceId,link:tz(er),campaignId:er.campaignId,advertiserId:er.advertiserId,...tF?{isNativeVideoAndWatchable:!!tF&&!!tF.url&&!!tF.height&&!!tF.width||void 0,videoIdStr:tF&&(null===(eL=er.videos)||void 0===eL?void 0:eL.entityId)||void 0}:{},...en},isPaused:!e8,loggingId:er.entityId,objectIdStr:ea,slotIndex:eo,trackingParams:eu,viewData:ep,viewParameter:e_,viewType:eh,children:({impressionTrackerRef:e})=>{var n,s,c,_,h,g,y,x,P,k,w,D,E,T,C,F,R,L,B,N,M,U,H,G,W,$,q,Y;return(0,el.jsx)(m.xu,{ref:e,children:(0,el.jsxs)(m.xu,{"data-test-id":"pin","data-test-pin-id":tn,marginBottom:eU?0:2,position:"relative",children:[(0,el.jsxs)(m.xu,{"data-test-id":io||t6||t7?"pin-with-alt-text":"pin-missing-alt-text",padding:iy,marginBottom:0,onContextMenu:eU&&(er.nativeCreator||er.pinner)?e=>{e.stopPropagation(),e.preventDefault(),eZ((0,el.jsx)(tA.Z,{desktopContextMenuState:{x:e.clientX,y:e.clientY},pinId:tn,graphqlRef:X})),(0,z.My)("pcons.dweb.pin_rep.context_menu.open")}:void 0,dangerouslySetInlineStyle:{__style:e3?{WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",KhtmlUserSelect:"none",UserSelect:"none"}:{}},children:[(0,el.jsxs)(K.MZ,{...iu,children:[!!tE&&(0,el.jsx)(eb,{inviteCode:tE}),t5?(0,el.jsx)(tP.Z,{isPinRep:!0}):(0,el.jsx)(ts,{pinGraphqlRef:X,clientTrackingParams:ie,color:null!==(n=er.dominantColor)&&void 0!==n?n:"",description:t7&&(!ia||0===e_)?t7.trim():void 0,domainLinkData:er.domain&&er.link?{clickLoggingOptions:{auxData:{objectId:tn,grid_index:eo,sanitized_url:er.link}},domain:er.domain,link:er.link,onClick:null==d?void 0:d.onPinLinkClick}:void 0,disableRounding:a,image:tT&&{dominant_color:null!==(s=tT.dominantColor)&&void 0!==s?s:void 0,height:null!==(c=tT.height)&&void 0!==c?c:void 0,url:null!==(_=tT.url)&&void 0!==_?_:void 0,width:null!==(h=tT.width)&&void 0!==h?h:void 0},imageAltText:io,imageCrop:!p&&er.imageCrop&&"number"==typeof er.imageCrop.minY&&"number"==typeof er.imageCrop.maxY?{minY:er.imageCrop.minY,maxY:er.imageCrop.maxY}:void 0,isBoardIdeas:3173===e_||13184===t,isSquarePin:p,lazyLoadImage:f,onError:()=>e2(!1),oneTapSave:b,onLoad:()=>e2(!0),priorityFetchImage:J,disableDefaultContextMenu:()=>e6(!0),pinId:tn,pinnedToBoardId:null!==(g=null===(y=er.pinnedToBoard)||void 0===y?void 0:y.entityId)&&void 0!==g?g:"",productPrice:"product"===tw&&ee&&!it?tO(er):null,slotIndex:eo,storyDataExists:!!t2,title:ia&&0!==e_?void 0:t6,type:tw,videoDuration:tL(er),viewParameter:e_,viewType:eh,directSaveExpGroup:ih,isPromotedPin:tK,setIsLongPressEnabledForAuth:e9,setCarouselIndex:te,carouselIndex:e4})]}),"image-only"!==ei&&(e$||eU)&&(0,el.jsxs)(m.xu,{marginTop:1,marginBottom:1,children:[!e$&&eU&&3475!==e_&&43!==e_&&(0,el.jsx)(tI.ZP,{dedupeVisualAnnotations:o,pinId:tn,mode:"inlineWithScrollArrows",graphqlRef:X}),!it&&(0,el.jsxs)(m.xu,{position:"relative",children:[(0,el.jsx)(K.MZ,{...iu,children:(0,el.jsx)(m.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,ref:tt})}),(0,el.jsx)(m.iP,{onTap:()=>{var e;null===(e=tt.current)||void 0===e||e.click()},accessibilityLabel:iu.accessibilityLabel,children:(0,el.jsxs)(m.xu,{display:"flex",height:p?ip?104:72:void 0,marginEnd:O||1,marginStart:O||1,marginTop:ih.includes("enabled")?1:0,position:"relative",children:[(0,el.jsx)(em,{pinGraphqlRef:X,marginTop:O,hidePinMetadata:(null==eH?void 0:eH.display_data.hideDesc)||!1,credits:tH(),hasAffiliatedProducts:!!(null!=t2&&t2.hasProductPins),isPromotedPin:tK,isSponsoredPin:!!t8,logCreditsClick:()=>{var e;return eG({view_type:3,element:27,event_type:102,object_id_str:tn,component:er.storyPinDataId?230:void 0,clientTrackingParams:(0,V.Z)(eu,er.trackingParams),aux_data:{pin_id:tn,...null!==(e=er.sponsorship)&&void 0!==e&&e.creator&&er.sponsorship.sponsor?{creator_id:er.sponsorship.creator.entityId,sponsor_id:er.sponsorship.sponsor.entityId}:{}}})},pinDescription:is,pinId:tn,pinnedToBoardId:null!==(x=null===(P=er.pinnedToBoard)||void 0===P?void 0:P.entityId)&&void 0!==x?x:"",pinReactionCounts:null===(k=er.reactionCountsData)||void 0===k?void 0:k.reduce((e,{reactionCount:t,reactionType:i})=>({...e,[String(null!=i?i:0)]:null!=t?t:0}),{}),recipeReview:"recipe"===tw&&!ia&&!!(null!=t0&&null!==(w=t0.aggregateRating)&&void 0!==w&&w.reviewCount)&&(0,el.jsxs)(m.xu,{alignItems:"center",display:"flex",marginTop:1,children:[(0,el.jsx)(tf,{maxRating:t0.aggregateRating.bestRating||"",rating:t0.aggregateRating.ratingValue||"",text:""}),!!t0.displayCookTime&&(0,el.jsxs)(u.Fragment,{children:[(0,el.jsx)(m.xu,{paddingX:1,children:(0,el.jsx)(m.xv,{size:"100",children:"\xb7"})}),(0,el.jsx)(m.xv,{size:"100",children:(0,Z.IS)({...(0,I.u)(t0.displayCookTime),i18n:eB})})]})]}),shouldShowReactions:!l&&(0,ty.J6)({boardIsCollaborative:null===(D=er.board)||void 0===D?void 0:D.isCollaborative,isDownstreamPromotion:er.isDownstreamPromotion,isEligibleForStaticImageIdeaPin:tl,isPromoted:er.isPromoted,storyPinDataId:er.storyPinDataId,videosId:null===(E=er.videos)||void 0===E?void 0:E.entityId})&&3475!==e_&&606!==eh&&!(eH&&eH.display_data.hideReactions),showPriceIndicatorInPinCardDetails:ip,title:t6,type:tw}),(0,el.jsxs)(m.xu,{right:!0,display:"flex",children:[!e$||il||t5||r?null:(0,el.jsx)(m.xu,{marginStart:1,marginTop:O,children:(0,el.jsx)(m.xu,{height:26,width:24,children:(0,el.jsx)(v.Z,{name:"SafeSuspense_Pin_ContextualMenu",children:(0,el.jsx)(j.Z,{children:(0,el.jsx)(tN,{adMatchReason:er.adMatchReason,bestPinImgSrc:tS(),feedback:et,feedbackType:tG,getRecommendationDescription:tV,graphqlRef:X,hideSaveOption:null!==(T=er.promotedIsRemovable)&&void 0!==T&&T,imageSignature:null!=tX?tX:void 0,isAdsOnlyPin:null!==(C=er.promotedIsRemovable)&&void 0!==C&&C,pinCategory:t$,pinDescription:is,pinId:tn,pinTitle:t1,sourceType:tK?"ad":0===e_?"following":void 0,viewParameter:e_,viewType:eh,trackingParams:eu,isLongPressEnabledForAuth:e7,setIsLongPressEnabledForAuth:e9})})})})}),ig?(0,el.jsx)(m.xu,{right:!0,children:(0,el.jsx)(m.xu,{children:(0,el.jsx)(tm,{pinId:tn,pin:er,directSaveExpGroup:ih,clientTrackingParams:ie})})}):null]})]})})]})]}),it&&(0,el.jsx)(tC,{dedupeVisualAnnotations:o,queryRef:X,description:er.description,domain:null===(F=er.richSummary)||void 0===F?void 0:F.siteName,isSquarePin:p,gridTitle:null!==(R=er.gridTitle)&&void 0!==R?R:void 0,pinId:tn,priceSummary:ic&&{maxPrice:ic.maxPrice,minPrice:ic.minPrice,price:ic.price,standardPrice:ic.standardPrice},richMetadataTitle:null===(L=er.richMetadata)||void 0===L?void 0:L.title,richSummaryDisplayName:null===(B=er.richSummary)||void 0===B?void 0:B.displayName,storyPinDataId:er.storyPinDataId,storyPinDataMetadataPinTitle:null===(N=er.storyPinData)||void 0===N?void 0:null===(M=N.metadata)||void 0===M?void 0:M.pinTitle,title:er.title})]}),"reported"===tZ?(0,el.jsx)(tp,{color:null!==(U=er.dominantColor)&&void 0!==U?U:"",getFeedbackText:()=>({title:eB._('Reported', 'message displayed after reporting a pin', 'message displayed after reporting a pin'),subTitle:eB._('Thanks! Your feedback helps us keep the Pinterest community safe.', 'message displayed after reporting a pin', 'message displayed after reporting a pin')}),pinId:tn,showing:!0}):(0,el.jsx)(tp,{color:null!==(H=er.dominantColor)&&void 0!==H?H:"",getFeedbackText:e=>{let t;let{promoter:i}=er;if(tj(er)&&null!=i&&i.fullName)return{title:"",subTitle:(0,A.nk)(eB._('{{ promoter }} has paid to have this pin show up where you\'d be more likely to notice it.', 'pinRep.promotedPinfeedbackText.subtitle', 'message displayed after hiding a promoted pin'),{promoter:i.fullName})};switch(tG){case"followed":let{board:n,pinner:l}=er;n&&l&&(t=(0,S.oK)({boardId:n.entityId,i18n:eB,makeNavigateLink:e,display:l.explicitlyFollowedByMe?{type:"board",data:{name:n.name,url:n.url}}:{type:"pinner",data:{full_name:l.fullName,username:l.username}}}));break;case"topic":let{sourceInterest:a}=er;a&&(t=(0,S.Iv)({i18n:eB,makeNavigateLink:e,sourceInterest:{id:a.entityId,name:a.name,url_name:a.urlName}}))}return t?{title:eB._('Pin hidden', 'message displayed after hiding a pin', 'message displayed after hiding a pin'),subTitle:tV(e),unfollow:t}:{title:eB._('Pin hidden', 'message displayed after hiding a pin', 'message displayed after hiding a pin'),subTitle:eB._('Got it! We\'ll try to show you more relevant Pins in the future.', 'message displayed after hiding a pin', 'message displayed after hiding a pin')}},margin:iy,onUnfollow:()=>e1({pinId:tn,pinFeedbackStatus:"unfollowed"}),pinId:tn,showing:!!tZ,unfollowed:"unfollowed"===tZ,viewParameter:e_,viewType:eh}),!eU&&(null==d?void 0:d.showSeoMetadata)&&!it&&(0,el.jsx)(m.xu,{"data-test-id":"related-pins-title",children:(0,el.jsx)(m.iP,{onTap:()=>{eV({action:"click",item:"related-pins-title"})},fullWidth:!1,children:(0,el.jsx)(tb,{dedupeVisualAnnotations:o,description:er.description,gridTitle:null!==(G=er.gridTitle)&&void 0!==G?G:void 0,pinId:tn,richMetadataTitle:null===(W=er.richMetadata)||void 0===W?void 0:W.title,richSummaryDisplayName:null===($=er.richSummary)||void 0===$?void 0:$.displayName,storyPinDataId:er.storyPinDataId,storyPinDataMetadataPinTitle:null===(q=er.storyPinData)||void 0===q?void 0:null===(Y=q.metadata)||void 0===Y?void 0:Y.pinTitle,title:er.title,queryRef:X})})}),i]})})}})}let tU=e=>{var t,i,n,l,a,r,o,s,d,u,c,p;let _=e=>e&&{entityId:e.id,fullName:e.full_name,imageMediumUrl:e.image_medium_url,imageSmallUrl:e.image_small_url,username:e.username},m=e=>e&&{dominantColor:e.dominant_color,height:e.height,url:e.url,width:e.width},h=e.reaction_counts;return{adMatchReason:e.ad_match_reason,adDestinationUrl:e.ad_destination_url,advertiserId:e.advertiser_id,altText:e.alt_text,attribution:e.attribution&&{embed:e.attribution.embed&&{type:e.attribution.embed.type}},attributionSourceId:e.attribution_source_id,autoAltText:e.auto_alt_text,board:e.board&&{entityId:e.board.id,followedByMe:e.board.followed_by_me,isCollaborative:e.board.is_collaborative,name:e.board.name,privacy:e.board.privacy,url:e.board.url},campaignId:e.campaign_id?String(e.campaign_id):null,category:e.category,closeupDescription:e.closeup_description,closeupUnifiedDescription:e.closeup_unified_description,debug:e.debug,descriptionHtml:e.description_html,description:e.description,domain:e.domain,dominantColor:e.dominant_color,embed:e.embed&&{height:e.embed.height,src:e.embed.src,type:e.embed.type,width:e.embed.width},entityId:e.id,gridTitle:e.grid_title,imageCrop:e.image_crop&&{minY:e.image_crop.min_y,maxY:e.image_crop.max_y},imageSignature:e.image_signature,imageSpec_136x136:m(null===(t=e.images)||void 0===t?void 0:t["136x136"]),imageSpec_170x:m(null===(i=e.images)||void 0===i?void 0:i["170x"]),imageSpec_236x:m(null===(n=e.images)||void 0===n?void 0:n["236x"]),imageSpec_474x:m(null===(l=e.images)||void 0===l?void 0:l["474x"]),imageSpec_736x:m(null===(a=e.images)||void 0===a?void 0:a["736x"]),imageSpec_orig:m(null===(r=e.images)||void 0===r?void 0:r.orig),isDownstreamPromotion:e.is_downstream_promotion,isEligibleForPdp:e.is_eligible_for_pdp,isEligibleForWebCloseup:e.is_eligible_for_web_closeup,isOosProduct:e.is_oos_product,isPromoted:e.is_promoted,isStaleProduct:e.is_stale_product,linkDomain:e.link_domain&&{officialUser:e.link_domain.official_user&&{fullName:e.link_domain.official_user.full_name,entityId:null!==(o=e.link_domain.official_user.id)&&void 0!==o?o:"",imageMediumUrl:e.link_domain.official_user.image_medium_url,imageSmallUrl:e.link_domain.official_user.image_small_url,username:e.link_domain.official_user.username,isPrimaryWebsiteVerified:e.link_domain.official_user.is_primary_website_verified}},link:e.link,mobileLink:e.mobile_link,nativeCreator:_(e.native_creator),pinnedToBoard:e.pinned_to_board&&{entityId:null!==(s=e.pinned_to_board.id)&&void 0!==s?s:""},pinJoin:e.pin_join&&{visualAnnotation:e.pin_join.visual_annotation},pinner:e.pinner&&{entityId:e.pinner.id,explicitlyFollowedByMe:e.pinner.explicitly_followed_by_me,fullName:e.pinner.full_name,imageMediumUrl:e.pinner.image_medium_url,imageSmallUrl:e.pinner.image_small_url,username:e.pinner.username},promoter:_(e.promoter),promotedIsRemovable:e.promoted_is_removable,reactionCountsData:h&&Object.keys(h).map(e=>({reactionType:Number(e),reactionCount:h[e]})),richMetadata:e.rich_metadata&&{description:e.rich_metadata.description,title:e.rich_metadata.title,article:e.rich_metadata.article&&{__typename:"ArticleMetadata"},recipe:e.rich_metadata.recipe&&{__typename:"RecipeMetadata",fromAggregatedData:e.rich_metadata.recipe.from_aggregated_data},products:e.rich_metadata.products&&e.rich_metadata.products.map(e=>{var t,i,n,l;return{__typename:"RichPinProductMetadata",name:e.name,offerSummary:{maxPrice:null===(t=e.offer_summary)||void 0===t?void 0:t.max_price,minPrice:null===(i=e.offer_summary)||void 0===i?void 0:i.min_price,price:null===(n=e.offer_summary)||void 0===n?void 0:n.price,standardPrice:null===(l=e.offer_summary)||void 0===l?void 0:l.standard_price}}})},richSummary:e.rich_summary&&{aggregateRating:e.rich_summary.aggregate_rating&&{bestRating:e.rich_summary.aggregate_rating.best_rating,ratingValue:e.rich_summary.aggregate_rating.rating_value,reviewCount:e.rich_summary.aggregate_rating.review_count},displayName:e.rich_summary.display_name,displayCookTime:e.rich_summary.display_cook_time,siteName:e.rich_summary.site_name,typeName:e.rich_summary.type_name,products:e.rich_summary.products&&e.rich_summary.products.map(e=>{var t,i,n,l;return{name:e.name,offerSummary:{maxPrice:null===(t=e.offer_summary)||void 0===t?void 0:t.max_price,minPrice:null===(i=e.offer_summary)||void 0===i?void 0:i.min_price,price:null===(n=e.offer_summary)||void 0===n?void 0:n.price,standardPrice:null===(l=e.offer_summary)||void 0===l?void 0:l.standard_price}}})},seoUrl:e.seo_url,shoppingFlags:e.shopping_flags,shouldOpenInStream:e.should_open_in_stream,sourceInterest:e.source_interest&&{entityId:null!==(d=e.source_interest.id)&&void 0!==d?d:"",name:e.source_interest.name,urlName:e.source_interest.url_name},sponsorship:e.sponsorship&&{creator:e.sponsorship.creator&&{entityId:null!==(u=e.sponsorship.creator.id)&&void 0!==u?u:"",fullName:e.sponsorship.creator.full_name,imageMediumUrl:e.sponsorship.creator.image_medium_url,imageSmallUrl:e.sponsorship.creator.image_small_url,username:e.sponsorship.creator.username},sponsor:e.sponsorship.sponsor&&{entityId:null!==(c=e.sponsorship.sponsor.id)&&void 0!==c?c:"",fullName:e.sponsorship.sponsor.full_name,imageMediumUrl:e.sponsorship.sponsor.image_medium_url,imageSmallUrl:e.sponsorship.sponsor.image_small_url,username:e.sponsorship.sponsor.username}},storyPinDataId:e.story_pin_data_id,storyPinData:e.story_pin_data&&{hasProductPins:e.story_pin_data.has_product_pins,isDeleted:e.story_pin_data.is_deleted,metadata:e.story_pin_data.metadata&&{pinTitle:e.story_pin_data.metadata.pin_title}},title:e.title,trackedLink:e.tracked_link,trackingParams:e.tracking_params,videos:e.videos&&{entityId:null!==(p=e.videos.id)&&void 0!==p?p:"",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,width:e.videos.video_list.V_720P.width,url:e.videos.video_list.V_720P.url}}},recommendationReason:e.recommendation_reason&&{reason:e.recommendation_reason.reason,reasonId:e.recommendation_reason.reason_id,board:e.recommendation_reason.board&&{name:e.recommendation_reason.board.name,url:e.recommendation_reason.board.url}},carouselData:e.carousel_data&&{index:e.carousel_data.index,carouselSlots:e.carousel_data.carousel_slots?e.carousel_data.carousel_slots.map(e=>({title:e.title,details:e.details,link:e.link})):[]}}};function tZ({pinId:e,duploQueryRef:t,...i}){let n=(0,O.Qy)(),{data:l,childDataKey__DEPRECATED:a}=(0,b.sr)(tF,t?{type:"graphqlRef",data:t}:{type:"deprecated",data:e},{type:"pin",useLegacyAdapter:tU});return!!l&&(0,el.jsx)(tM,{...i,debugInfo:n&&l.debug&&(0,el.jsx)(O.Wu,{data:l.debug}),pin:l,duploQueryRef:"graphqlRef"===a.type?a.data:null})}},733319:(e,t,i)=>{"use strict";function n({isDesktop:e}){return e?0:1}i.d(t,{Z:()=>n})},167525:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(643010),a=i(898781),r=i(785893);function o({text:e,icon:t,largeIdentifier:i,largeMargin:o}){let s=(0,a.ZP)();return(0,r.jsxs)(n.xu,{zIndex:new n.Ry(1),alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:(0,l.Yc)()?"rgba(0, 0, 0, 0.7)":"rgba(255, 255, 255, 0.8)"}},"data-test-id":"PinTypeIdentifier",display:"flex",margin:o?4:2,overflow:"hidden",position:"absolute",rounding:"pill",padding:2,paddingX:i?4:void 0,height:i?36:24,top:!0,children:[t&&(0,r.jsx)(n.xu,{marginEnd:i?2:1,children:(0,r.jsx)(n.JO,{accessibilityLabel:s._('identifier that shows the pin type', 'pin.pincard.iconAccessibilityLabel', 'shows an icon with the pin type'),color:"default",icon:t,inline:!0,size:i?18:12})}),(0,r.jsx)(n.xv,{inline:!0,size:i?"200":"100",weight:"bold",children:e})]})}},255607:(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({boardIsCollaborative:e,isDownstreamPromotion:t,isPromoted:i,storyPinDataId:n,videosId:l,isEligibleForStaticImageIdeaPin:a}){return!i&&!t&&(!!l||!!n)&&(null==e||!e)&&!a}i.d(t,{At:()=>n,J6:()=>a,Ud:()=>l})},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})}},723852:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});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),_=i(258430),m=i(785893);let h=e=>{let t=(0,m.jsx)(a.xu,{"data-test-id":"pin-save-toast",width:48,height:48,children:(0,m.jsx)(_.Z,{boardId:e})});return{duration:5e3,thumbnail:t}};var g=i(499128),f=i(19121);function y({boardId:e,hideToast:t,pinId:i,originalPinId:n}){let l=(0,s.ZP)(),r=(0,f.Z)();return(0,m.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,m.jsxs)(a.xv,{children:[(0,m.jsx)(a.xv,{inline:!0,children:l._('Saved to ', 'RepinRequest.ProfileSaveToastText', 'Toast for successfully saving to profile')}),(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,m.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,m.jsx)(a.JO,{accessibilityLabel:l._('Profile', 'RepinRequest.ProfileIcon', 'Icon signifying Pin was saved to profile without a board'),icon:"history",size:22})}})}var v=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,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(a.xv,{color:"default",children:i._('Saved to', 'Saved to {{ boardName }}', 'Saved to {{ boardName }}')}),(0,m.jsx)(a.xv,{color:"default",weight:"bold",children:r})]})};class A{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:_,trackingParams:m,userId:h,viewType:g,historyPush:f,suggestedBoardIds:y,savePinId:v,pinData:{trackingParams:P,viewParameter:A,pinnedToBoardId:k}}){var S,w,D;S="_getNormalizedResponse",w=e=>(0,l.Fv)(e.resource_response.data,x.Z[b]),(S="symbol"==typeof(D=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)}(S,"string"))?D:String(D))in this?Object.defineProperty(this,S,{value:w,enumerable:!0,configurable:!0,writable:!0}):this[S]=w,this.boardId=e,this.trackingParams=m,this.clientTrackingParams=(0,c.Z)(m.clientTrackingParams||"",P),this.dispatch=t,this.history=i,this.onSuccess=r,this.onUndo=o,this.originalPinId=s,this.pinId=d,this.pinnedToBoardId=m.pinnedToBoardId||(null!=k?k:""),this.showNewUserSavetoProfileAnimation=p,this.showRepinToasts=_,this.section=u,this.isOneTapSave=n,this.isQuickSave=a,this.userId=h,this.viewType=null!=g?g:3,this.historyPush=f,this.suggestedBoardIds=y,this.savePinId=v,this.pinViewParameter=A}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,v.M)(i.id,n.id,this.section?this.section.id:void 0,this.userId));let{showRepinToasts:_}=this;return _&&_(({hideToast:e})=>{var t;if(l&&!d)return(0,m.jsx)(y,{hideToast:e,pinId:i.id,boardId:i.board.id,originalPinId:r});let{thumbnail:o}=h(n.id);return(0,m.jsx)(p.Z,{button:(0,m.jsx)(s.oz,{children:e=>(0,m.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,m.jsx)(P,{board:n,section:this.section}),thumbnail:o})}),this.dispatch((0,o.fO)({event_type:5})),e(this.trackingData),i})}}},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:()=>D});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),_=i(52022),m=i(690035),h=i(50286),g=i(643010),f=i(121151),y=i(430322),v=i(785893);function x({showFullScreenInfo:e,isOpen:t,interstitialUpsellDismissed:i,children:n}){let l=(0,d.ZP)(),a=(0,h.HG)(),r=(0,h.Wb)();return r||a?(0,v.jsx)(f.ZP,{accessibilityModalLabel:"",mobileHideCloseIcon:!0,mobileIsFullscreen:!0,isOpen:e&&!r,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,v.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,v.jsx)(o.xu,{bottom:!0,left:!0,right:!0,top:!0,position:"fixed",padding:5,overflow:"scroll",marginTop:i?0:12,children:n})})}):(0,v.jsx)(y.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 A({dedupeVisualAnnotations:e,iconColor:t,size:i,isMainPin:n,isAuth:r,pinCreditPrefix:c,onClickTitleOrDomain:g,pinId:f,renderOnlyHiddenSEOContent:y=!1,graphqlRef:P,shoppingKlpUrls:A}){let k=(0,d.ZP)(),S=(0,_.Z)(),{isBot:w}=(0,u.B)(),{unauthInterstitialDismissed:D}=(0,a.useSelector)(({session:e})=>e),[E,T]=(0,l.useState)(!1),C=(0,h.HG)(),I=(0,h.Wb)(),F=(0,m.Z)(),j=!I&&!r,R=P?{type:"graphqlRef",data:P}:{type:"deprecated",data:f},z=(0,v.jsxs)(o.xu,{padding:5,dangerouslySetInlineStyle:j?{__style:{paddingTop:0,paddingBottom:30}}:void 0,children:[(0,v.jsx)(o.xu,{left:!0,position:"absolute",top:!0,color:"default",padding:4,"data-test-id":"close-seo-vase-see-more-button",children:(0,v.jsx)(o.hU,{accessibilityLabel:k._('Cancel', 'close modal icon', 'close modal icon'),icon:"cancel",size:"sm",onClick:()=>{(0,p.My)("mweb.unauth.see_more.dismissed"),S({action:"click",item:"close-seo-vase-see-more-button"}),T(!1),n&&(0,p.My)("mweb.unauth.see_more.main_pin.dismissed")},iconColor:"gray"})}),(0,v.jsx)(o.xu,{marginBottom:j?0:8,children:(0,v.jsx)(o.xv,{align:j?"start":"center",weight:j?void 0:"bold",children:(0,v.jsx)("span",{className:"deprecatedTextSizeXL",children:j?null:k._('More information', 'more information label', 'more information label')})})}),(0,v.jsx)(b.Z,{dedupeVisualAnnotations:e,pinCreditPrefix:c,onClickTitleOrDomain:g,pinId:f,shoppingKlpUrls:A,pinKey:R})]});return y?(0,v.jsx)(o.xu,{display:"none",children:z}):(0,v.jsxs)(o.xu,{right:!0,"data-test-id":"SeoVaseSeeMoreButton",dangerouslySetInlineStyle:{__style:{float:"right"}},children:[(0,v.jsx)(o.hU,{accessibilityLabel:k._('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"}`),S({action:"click",item:"seo-vase-see-more-button"}),I||r?(T(!0),n&&(0,p.My)("mweb.unauth.see_more.main_pin.shown")):F({pinId:f||"",location:n?"main-pin-more-information":"non-main-pin-more-information",vaseSection:(0,v.jsx)(b.Z,{dedupeVisualAnnotations:e,pinCreditPrefix:c,onClickTitleOrDomain:g,pinId:f,shoppingKlpUrls:A,pinKey:R})})}}),w&&!C?(0,v.jsx)(o.xu,{display:E?"flex":"none",children:z}):(0,v.jsx)(x,{showFullScreenInfo:E,isOpen:E&&!I,interstitialUpsellDismissed:!!D,children:z}),I&&E&&(0,v.jsx)(s.default,{accessibilityModalLabel:"test",onDismiss:()=>{},children:z})]})}function k(e){let t=(0,r.useFragment)(P,e.graphqlRef);return(0,v.jsx)(A,{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 S(e){return(0,v.jsx)(A,{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 w(e){return(0,c.Z)({name:"PinResource",options:{id:e.pinId,field_set_key:"unauth_ssr_lazy_load"}}),(0,v.jsx)(S,{...e})}function D(e){return e.graphqlRef?(0,v.jsx)(k,{...e}):e.lazyLoadAnnotations?(0,v.jsx)(w,{...e}):(0,v.jsx)(S,{...e})}},914142:(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({hasAffiliatedProducts:e,isPromoted:t,sponsorName:i,sponsorshipStatus:d,textColor:u}){let c;let p=(0,l.ZP)(),_=(0,r.F)().checkExperiment("mweb_web_android_ios_clbc_eu_ad_string").anyEnabled;return t?c=(0,a.nk)(p._('Promoted by {{ name }}', 'sponsorship.sponsorshipText.promotedByBrand', 'indicating the username of the person who promoted the pin'),{name:i}):d||0===d?i&&!s.includes(d)?c=(0,a.nk)(p._('Paid partnership with {{ name }}', 'closeup.creator.sponsoredPinTitle', 'Subtext of closeup creator card when sponsored by a brand'),{name:i}):2!==d&&(c=p._('Paid partnership', 'closeup.creator.sponsoredPinTitle', 'Subtext of closeup creator card when the pin is sponsored but the sponsorship status is rejected/requested/unaffiliated')):e&&(c=p._('Includes sponsored products', 'sponsorship.sponsorshipText.affiliatedProducts', 'Subtext of pincard attribution for a pin with affiliated products')),(0,o.jsxs)(n.xv,{color:u,size:"100",children:[_&&!t&&"Ad • "||"",(0,o.jsx)(a.r7,{text:c})]})}},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})}},394332:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>k});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),_=i(50286),m=i(350118),h=i(862193),g=i(785893);let f=`
11
+ div::-webkit-scrollbar {
12
+ display: none;
13
+ }
14
+ `,y=void 0!==n?n:n=i(445418);function v({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,_.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),[_,m]=(0,l.useState)(!1),h=(0,p.Z)(),{isRTL:y}=(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=y?n:l,o=y?l:n;c(r),m(o)}else c(!1),m(!1)};return t(),null==e||e.addEventListener("scroll",t),()=>{null==e||e.removeEventListener("scroll",t)}},[i,y]);let b=e=>t=>{t.preventDefault(),t.stopPropagation(),"right"===e&&h({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 A=[...P];return n&&(A=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),A)),(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:f}),_&&(0,g.jsx)(v,{direction:"left",handleClick:b("left"),testId:"left-scroll-arrow",isRTL:y}),(0,g.jsx)(r.xu,{overflow:"auto",padding:0,dangerouslySetInlineStyle:{__style:{scrollBehavior:"smooth",scrollbarWidth:"none",whiteSpace:"nowrap"}},ref:a,children:A.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)(v,{direction:"right",handleClick:b("right"),testId:"right-scroll-arrow",isRTL:y})})]})})}function P({dedupeVisualAnnotations:e,graphqlRef:t,mode:i,pinId:n,shoppingKlpUrls:l}){var r;let o=(0,a.useFragment)(y,t),s=(0,h.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 A(e){var t,i,n;let l=(0,m.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 k(e){return e.graphqlRef?(0,g.jsx)(P,{...e}):(0,g.jsx)(A,{...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),_=i(867820),m=i(52022),h=i(50286),g=i(298024),f=i(785893);function y({boardUrl:e,boardName:t,boardPrivacy:i,pinnerFullName:n,pinnerImageSmallUrl:l,pinnerImageLargeUrl:r}){let o=(0,h.HG)(),s=(0,m.Z)();if(!e||!t)return null;let d=e.split("/")[1],u=n||d,c=l||r;return(0,f.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[c?(0,f.jsx)(a.Tg,{href:`/${d}/`,fullWidth:!1,tapStyle:"compress",onTap:()=>{(0,_.My)(`pcons.${o?"desktop":"mobile"}.see-more-button-creator`),s({action:"click",item:"see-more-button-creator"})},children:(0,f.jsx)(a.xu,{rounding:"circle",width:32,height:32,overflow:"hidden",marginEnd:2,"data-test-id":"see-more-button-creator",children:(0,f.jsx)(a.Ee,{naturalHeight:32,naturalWidth:32,alt:u,fit:"cover",color:"rgb(231, 186, 176)",src:c})})},"profile-link"):null,(0,f.jsxs)(a.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,f.jsx)(a.xu,{"data-test-id":"see-more-button-creator-full-name",children:(0,f.jsx)(a.iP,{onTap:()=>{(0,_.My)(`pcons.${o?"desktop":"mobile"}.see-more-button-creator-full-name`),s({action:"click",item:"see-more-button-creator-full-name"})},children:(0,f.jsx)(a.xv,{color:"default",inline:!0,size:"100",weight:"bold",children:(0,f.jsx)(a.rU,{href:`/${d}/`,display:"inlineBlock",tapStyle:"compress",underline:"hover",children:u},"profile-link")},"profileLink")})}),"protected"===i?null:(0,f.jsx)(a.xv,{color:"default",inline:!0,size:"100",children:(0,f.jsx)(a.rU,{href:null!=e?e:"",display:"inlineBlock",tapStyle:"compress",underline:"hover",children:null!=t?t:""},"board-link")},"boardLink")]})]})}var v=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,A,k,S,w,D,E,T,C;let I=(0,o.ZP)(),F=(0,h.ml)(),j=(0,h.Wb)(),{isAuthenticated:R,isBot:z}=(0,c.B)(),L=(0,m.Z)(),O=r||null,[B,N]=(0,l.useState)(!1),M=(0,g.si)(),U=(0,g.Re)(),Z=(0,u.fs)({pinTitle:t.title,gridTitle:t.gridTitle,richSummaryDisplayName:null===(P=t.richSummary)||void 0===P?void 0:P.displayName,richMetadataTitle:null===(A=t.richMetadata)||void 0===A?void 0:A.title,storyPinDataId:t.storyPinDataId,storyPinDataMetadataPinTitle:null===(k=t.storyPinData)||void 0===k?void 0:null===(S=k.metadata)||void 0===S?void 0:S.pinTitle})||t.description,K=(Z||"").length>U,{description:H}=(0,u.eK)({richMetadataDescription:null===(w=t.richMetadata)||void 0===w?void 0:w.description,richSummaryDisplayName:null===(D=t.richSummary)||void 0===D?void 0:D.displayName,closeupUnifiedDescription:t.closeupUnifiedDescription}),G=H.length>M,[V,W]=(0,l.useState)(!G&&!K),$=(0,d._S)(t.domain)?t.domain:"";return(0,f.jsxs)(a.xu,{children:[(0,f.jsxs)(a.xu,{children:[(0,f.jsxs)(a.xu,{as:"figcaption",paddingX:j?11:0,children:[(0,f.jsx)(a.X6,{id:"vase-pin-title",color:"default",size:"300",accessibilityLevel:3,children:B||z?Z:(0,p.Z)(Z||"",U)}),!!Z&&(0,f.jsx)(a.xu,{height:H?8:0}),H&&(G||K)?(0,f.jsx)(a.xu,{"data-test-id":"vase-pin-description",children:(0,f.jsxs)(a.iP,{onTap:()=>{B||R||((0,_.NC)("click_open_description_in_sheet"),L({action:"click",item:"more-description-in-sheet"})),W(!V),N(!B)},fullWidth:!1,children:[(0,f.jsx)(a.xv,{color:"default",size:"200",inline:!0,children:B||z?H:(0,p.Z)(H,M)}),(0,f.jsx)(a.xu,{display:"inlineBlock",paddingX:1,children:(0,f.jsx)(a.xv,{weight:"bold",size:"200",inline:!0,children:B||z?I._('Less', 'Toggle less description button', 'Toggle less description button'):I._('More', 'Toggle more description button', 'Toggle more description button')})})]})}):(0,f.jsx)(a.xu,{"data-test-id":"vase-pin-description",children:(0,f.jsx)(a.xv,{color:"default",size:"200",inline:!0,children:H})})]}),!R&&!z&&F&&(V||z)&&!!$&&(0,f.jsx)(a.xu,{marginTop:2,children:(0,f.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,f.jsx)(a.xu,{display:"inlineBlock",children:(0,f.jsx)(a.xv,{inline:!0,size:"200",children:x})},"pinCreditsPrefix"),pinCredit:(0,f.jsxs)(a.xu,{display:"inlineBlock",marginStart:1,maxWidth:"60vw","data-test-id":"pin-domain-link",children:[O&&(0,f.jsx)(a.iP,{onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),L({action:"click",item:"pin-domain-link"}),(0,_.My)("mweb_pin_page.pin_link.clickthrouh"),R||(0,_.NC)("click_pin_closeup_link_clickthrough"),O()},tapStyle:"compress",children:(0,f.jsx)(a.xv,{size:"200",lineClamp:1,children:(0,f.jsx)("span",{style:{textDecoration:"underline"},children:$})},"pinLinkDomain")}),t.link&&!O&&(0,f.jsx)(a.rU,{href:t.link,children:(0,f.jsx)(a.xv,{size:"200",underline:!0,children:$})})]},"pinCredits")})})})]}),!!t.board&&(V||z)&&(0,f.jsx)(a.xu,{marginTop:4,children:(0,f.jsx)(y,{boardUrl:t.board.url||void 0,boardName:t.board.name||void 0,boardPrivacy:t.board.privacy||void 0,pinnerFullName:(null===(E=t.pinner)||void 0===E?void 0:E.fullName)||void 0,pinnerImageSmallUrl:null===(T=t.pinner)||void 0===T?void 0:T.imageSmallUrl,pinnerImageLargeUrl:null===(C=t.pinner)||void 0===C?void 0:C.imageLargeUrl})}),(0,f.jsx)(a.xu,{marginTop:4,children:(0,f.jsx)(v.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,f.jsx)(b,{...i,pinId:t,pin:n,queryRef:"graphqlRef"===l.type?l.data:null})}},999023:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(667294),l=i(112690),a=i(867820);let r=e=>Object.keys(e).reduce((t,i)=>(void 0===e[i]&&delete t[i],t),{...e}),o=({viewType:e,viewParameter:t,viewData:i,auxData:n,objectIdStr:l,component:o,clientTrackingParams:s,element:d},u)=>{let c=r({event_type:13,view_type:e,view_parameter:t,view_data:i,aux_data:n,object_id_str:l,component:o,clientTrackingParams:s,element:d});-1===Object.keys(c).indexOf("view_type")&&(0,a.My)("mweb.logging.null_view_type"),u(c)};function s(e){let{auxData:t,clientTrackingParams:i,children:a,component:r,element:s,objectIdStr:d,viewData:u,viewParameter:c,viewType:p}=e,_=(0,l.Z)(),m=JSON.stringify(t),h=JSON.stringify(u);return(0,n.useEffect)(()=>{o(e,_)},[_,m,i,r,s,d,h,c,p]),n.Children.only(a)}},598615:(e,t,i)=>{"use strict";i.d(t,{B:()=>h,Z:()=>g});var n=i(667294),l=i(616550),a=i(407043),r=i(385740),o=i(53987),s=i(780280),d=i(867820),u=i(52022),c=i(938917),p=i(329900),_=i(67347),m=i(785893);let h=(e,t)=>"/"===e.pathname?"/":(0,o.am)(e)&&t?`board/${e.pathname.substr(1)}`:e.pathname.substr(1);function g({children:e,componentType:t,app_upsell_type:i}){let o=(0,l.useLocation)(),{flushContextEvents:g,logContextEvent:f}=(0,a.v)(),{viewType:y,viewParameter:v}=(0,r.SU)(),x=(0,u.Z)(),{userAgent:{platform:b}}=(0,s.B)();(0,n.useEffect)(()=>{x({action:"view",item:"download-button",within:i})},[o,i,x]);let P=(0,n.useRef)(!1);(0,n.useEffect)(()=>{y&&202!==y?(f({component:t||13106,element:10308,event_type:9976,view_type:y,view_parameter:v,aux_data:{app_upsell_type:i,app_upsell_is_dupe:P.current}}),P.current=!0):(0,_.nP)("webapp.track_app_upsell_viewed_invalid_parameters",{sampleRate:1,tags:{component:t,view_type:y,view_parameter:v,app_upsell_type:i,app_upsell_is_dupe:P.current}})},[t,f,v,y,i]);let A=(0,c.Z)();return(0,n.useEffect)(()=>{A||(0,d.My)(`mweb.app_upsell.forbidden_upsell.${i}`)},[A,i]),(0,m.jsx)(p.Z,{children:n=>e({handleOpenApp:e=>{if(x({action:"click",item:"download-button",within:i}),(0,d.NC)("press_open_app",!0),f({component:t||13106,element:10308,event_type:102,view_type:y||202,view_parameter:v,aux_data:{app_upsell_type:i}}),f({component:t||13106,element:10308,event_type:9977,view_type:y||202,view_parameter:v,aux_data:{app_upsell_type:i}}),g(!0),n){var l;f({component:t||13106,element:10308,event_type:1701,view_type:y||202,view_parameter:v,aux_data:{app_upsell_type:i}}),n(null!==(l=null==e?void 0:e.deepLinkUri)&&void 0!==l?l:h(o,"android"===b),i)}}})})}},296679:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(883119),l=i(413764),a=i(430322),r=i(898781),o=i(287072),s=i(780280),d=i(50286),u=i(598615),c=i(664166),p=i(948376),_=i(785893);let m=({deepLinkUri:e,isOpen:t,onDismiss:i,onOpenInApp:c,to:m,app_upsell_type:h})=>{let g=(0,r.ZP)(),f=(0,d.Wb)(),{isBot:y,userAgent:{platform:v,raw:x}}=(0,s.B)(),b=(0,p.Rp)({isBot:y,platform:v,userAgent:x}),P=(0,o.Z)({href:null!=m?m:""}),A=f?60:40;return(0,_.jsx)(a.default,{accessibilityModalLabel:"",isOpen:t,mobileHideCloseIcon:!0,type:"app_upsell_v1",zIndex:new n.Ry(101),closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,_.jsx)(u.Z,{componentType:14157,app_upsell_type:h,children:({handleOpenApp:t})=>(0,_.jsxs)(n.xu,{padding:3,"data-test-id":"appUpsell-iframe",children:[(0,_.jsx)(n.xu,{display:"inlineBlock",position:"absolute",children:(0,_.jsx)(n.xu,{"data-test-id":"appUpsell-continue",children:(0,_.jsx)(n.hU,{accessibilityLabel:g._('close icon background', 'accesibility label for close icon on a overlay', 'accesibility label for close icon on a overlay'),icon:"cancel",onClick:({event:e})=>{i({event:e}),P&&!e.defaultPrevented&&P({event:e})},size:"lg",iconColor:"gray"})})}),(0,_.jsxs)(n.xu,{paddingX:2,paddingY:6,children:[(0,_.jsx)(n.xu,{paddingY:2,justifyContent:"center",display:"flex",children:b?(0,_.jsx)(l.Z,{size:A}):(0,_.jsx)(n.JO,{color:"brandPrimary",icon:"pinterest",accessibilityLabel:"Pinterest App",size:A})}),(0,_.jsxs)(n.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,_.jsx)(n.xu,{paddingY:2,children:(0,_.jsx)(n.X6,{align:"center",size:"400",children:b?g._('Try Pinterest Lite', 'mweb.app_upsell.lite_app_upsell_title', 'Mobile Web App Upsell title informing the value of downloading the lite app'):g._('Pinterest is better on the app', 'mweb.unauth.app_upsell.app_value_prop2', 'Mobile Web App Upsell title on Pin click informing the value of downloading an app')})}),(0,_.jsx)(n.xv,{align:"center",size:"300",children:b?g._('A space-saving way to discover new ideas', 'mweb.app_upsell.lite_app_value_prop', 'Mobile Web App Upsell subheading informing the user the value of downloading the lite app'):g._('Continue in the app for the full experience', 'mweb.app_upsell.description4', 'description on app upsell modal')}),(0,_.jsx)(n.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{display:"grid"}},justifyContent:"center",marginTop:8,children:(0,_.jsx)(n.zx,{fullWidth:!0,size:"lg",color:"red",onClick:()=>{t({deepLinkUri:e}),c()},text:g._('Open app', 'mweb.app_upsell.app_upsell_button_text1', 'Button to get the Pinterest Lite app')})})]})]})]})})})};function h({clientTrackingParams:e,deepLinkUri:t,isOpen:i,onDismiss:n,onOpenInApp:l,shouldTrackDismiss:a,to:r,viewParameter:o,viewType:s,app_upsell_type:d}){return(0,_.jsx)(c.Z,{clientTrackingParams:e,viewType:s,viewParameter:o,children:(0,_.jsx)(m,{deepLinkUri:t,isOpen:i,onDismiss:e=>{a&&(0,c.y)(),n(e)},onOpenInApp:()=>{(0,c.y)(),l()},to:r,app_upsell_type:d})})}},664166:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c,y:()=>u});var n=i(667294),l=i(30287),a=i(844974),r=i(339363),o=i(807609),s=i(999023),d=i(785893);let u=()=>{(0,a.Nh)("appUpsell",Date.now()),(0,a.qn)("firstUpsellTime")||(0,a.Nh)("firstUpsellTime",Date.now()),(0,r.Nh)("showedAppUpsellCurrentSession",!0)};function c({children:e,clientTrackingParams:t,viewParameter:i,viewType:a}){let r=(0,o.Z)();return r||(0,l.FP)(window)?null:(0,d.jsx)(s.Z,{viewType:a,viewParameter:i,component:13106,clientTrackingParams:t,children:(0,d.jsx)(n.Fragment,{children:e})})}},938917:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(702664);let l=()=>(0,n.useSelector)(({session:{canUseNativeApp:e}})=>e)},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)},398061:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o,e:()=>r});var n=i(883119),l=i(780280),a=i(785893);let r=new n.Ry(1);function o({children:e,isImagePinForUnauthOnTablet:t}){let{isAuthenticated:i}=(0,l.B)();return(0,a.jsxs)(n.xu,{alignItems:"center",bottom:!0,dangerouslySetInlineStyle:{__style:{cursor:"pointer",width:t?"40vw":void 0}},zIndex:i?void 0:r,display:"flex",justifyContent:"center",left:!0,position:"absolute",right:!t||void 0,top:!0,children:[(0,a.jsx)(n.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"#000",borderRadius:"6px 6px 0 0",WebkitTransition:"opacity .04s linear",transition:"opacity .04s linear"}},left:!0,opacity:.4,position:"absolute",right:!0,top:!0}),e]})}},946843:(e,t,i)=>{"use strict";i.d(t,{Z:()=>F}),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 _=void 0!==n?n:n=i(281309);function m({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,_={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},m=u?t._('from {{ provider }}', 'closeup.description.imageSourceWithProvider', 'Image source attribution without author on pin closeup'):null;return i&&(m="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:[!!m&&(0,s.nk)(m,_),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 h({pinKey:e}){let{data:t}=(0,r.sr)(_,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)(m,{pin:t})}let g=void 0!==l?l:l=i(801322);function f({pin:e}){var t,i;let n=(0,o.ZP)(),{authorUrl:l,authorName:a,url:r,providerName:d,ccUrl:u}=e.attribution||{},_=null===(t=e.attribution)||void 0===t?void 0:null===(i=t.embed)||void 0===i?void 0:i.src,{type:m,src:h,subtype:g}=e.embed||{},f=!!d&&"Unknown"!==d,y={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:f?(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},v=f?n._('from {{ provider }}', 'closeup.description.imageSourceWithProvider', 'Image source attribution without author on pin closeup'):null;return a&&(v=(h||_)&&"gif"!==m&&"pinstory"!==g?f?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'):f?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:[!!v&&(0,s.nk)(v,y),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 y({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)(f,{pin:t})}var v=i(667294),x=i(565212),b=i(509278),P=i(643010),A=i(773285),k=i(867820),S=i(52022),w=i(413252),D=i(50286);function E({text:e}){let{isAuthenticated:t,isBot:i}=(0,u.B)(),[n,l]=(0,v.useState)(!1),{checkExperiment:a}=(0,A.F)(),r=(0,D.ZP)(),o=(0,S.Z)(),{anyEnabled:s}=a("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),d=a("web_hashtags_in_description_display").anyEnabled,_=(0,P.vs)(),m=s?_:(0,P.Yc)(),h=(0,v.useCallback)(()=>{n||t||((0,k.NC)("click_open_description"),(0,k.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)(w.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:h}):(0,p.jsx)(x.Z,{isDarkMode:m,children:(0,b.Z)({isHashtagInDescriptionDisplayEnabled:d,text:e})})}function T({photoAttribution:e,text:t}){let i;let n=(0,D.ZP)(),l=(0,S.Z)(),{checkExperiment:a}=(0,A.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,k.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)(E,{text:t})})})})]})}let C=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 F({pinKey:e}){var t,i,n,l,a,c,_,m;let g;let f=(0,o.ZP)(),{isAuthenticated:v,locale:x}=(0,u.B)(),{data:b,childDataKey__DEPRECATED:P}=(0,r.sr)(C,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:A,closeupUnifiedDescription:k,storyPinDataId:S}=b,w=null!==(t=null===(i=b.richMetadata)||void 0===i?void 0:i.description)&&void 0!==t?t:"",D=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:"",E=null!==(c=null===(_=b.richSummary)||void 0===_?void 0:_.displayName)&&void 0!==c?c:"",F=b.description,j=!!b.attribution,R=!!b.mediaAttribution,z=b.seoDescription||"",L=b.seoNoindexReason||"",O=D&&new Date(D),B=v?null==k?void 0:k.trim():(0,d.Z)({storyPinDataId:S,pinDescription:F,richMetadataDescription:w,richSummaryDisplayName:E,closeupDescription:A,closeupUnifiedDescription:k,seoDescription:z,seoNoindexReason:L}),N=O&&I(O,2)&&B?(0,s.nk)(f._('{{ 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():""}}(O,x),pinDescription:B}).join(""):B;return(j||R)&&(g=(0,s.nk)(B?"{{ credit }} \xb7 ":"{{ credit }}",{credit:R?(0,p.jsx)(h,{pinKey:P},"article-pin"):(0,p.jsx)(y,{pinKey:P},"article-pin"),descriptionToDisplay:N})),(0,p.jsx)(T,{photoAttribution:g,text:null!==(m=b.richMetadata)&&void 0!==m&&m.recipe?null:B})}},29066:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>em,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),_=i(319915),m=i(681669),h=i(898781),g=i(543972),f=i(926275),y=i(313047),v=i(623568),x=i(992750),b=i(773285),P=i(780280),A=i(947599),k=i(844974),S=i(66699),w=i(939106),D=i(50286),E=i(792606),T=i(946843),C=i(892363),I=i(435183),F=i(266224),j=i(40995),R=i(745162),z=i(358381),L=i(350948),O=i(635821),B=i(178307),N=i(44004),M=i(62409),U=i(332215),Z=i(96023),K=i(698330),H=i(571577),G=i(954063),V=i(21384),W=i(678532),$=i(238253),q=i(252417),Y=i(642639),J=i(375559),X=i(862193),Q=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,h.ZP)(),{commentCount:l,commentsDisabled:r,commentModule:o,isEligibleForPdp:u,isImagePinForUnauthOnTablet:m,isStoryPin:H,onClickTitleOrDomain:X,shouldShowAggregatedComments:ee,shouldShowReactions:ed,shouldShowSEOPinInfo:eu,viewParameter:ec,viewerId:ep,pinActionBar:e_,sourceUserBlockedByMe:em,sourceUserExplicitlyFollowedByMe:eh,sourceUserFollowerCount:eg,sourceUserFullName:ef,sourceUserId:ey,sourceUserImageLargeUrl:ev,sourceUserimageMediumUrl:ex,sourceUserImageSmallUrl:eb,sourceUserIsVerifiedMerchant:eP,sourceUserUsername:eA,sourceUserVerifiedIdentityVerified:ek,pinId:eS,pinLink:ew,pinDomain:eD,pinProductPrice:eE,pinProductInStock:eT,pinReactionCounts:eC,promoterFullName:eI,hasPinProduct:eF,hasSourceUser:ej,hasOfficialUser:eR,hasLinkDomain:ez,hasNativeCreator:eL,hasOriginPinner:eO,hasPromoter:eB,hasRichMetadataArticle:eN,hasRichMetadataTutorial:eM,hasRichMetadataRecipe:eU,hasRichMetadataRecipeCategorizedIngredients:eZ,hasRichMetadataRecipeAggregateInfo:eK,hasRichMetadataProductOfferSummary:eH,hasRichSummaryProductOfferSummary:eG,richMetadataRecipeFromAggregatedData:eV,richMetadataProductName:eW,richSummaryProductName:e$,pinJoinVisualAnnotation:eq,pinJoinAnnotationsWithLinks:eY,graphqlRef:eJ,isActionBarInline:eX,setIsActionBarInline:eQ,clientTrackingParams:e0,shoppingKlpUrls:e1,storyPinKeyValueBlocks:e8,setCloseupDetailsHeight:e2,setCloseupPinLinkCreditsHeight:e3,setCloseupTitleHeight:e6,setUploadedToPinterestTextHeight:e7,setUserAttributionHeight:e9,setUserRepHeight:e4}=e,{checkExperiment:e5}=(0,b.F)(),te=(0,D.ZP)(),tt="desktop"===te,ti="phone"===te,{isAuthenticated:tn,country:tl,locale:ta,isBot:tr,regionFromIp:to}=(0,P.B)(),ts=(0,K.Tt)(),td=(0,p.vs)(),tu=u&&tn,tc=tu||!tt&&!u,tp=(0,a.useRef)(null),t_=(0,a.useRef)(null),tm=(0,a.useRef)(null),th=(0,a.useRef)(null),tg=(0,a.useRef)(null),tf=(0,a.useRef)(null),ty=(0,a.useRef)(null);(0,Z.Z)(e=>{e2&&t_&&t_.current&&t_.current.offsetHeight<72&&e2(e.offsetHeight)},tp),(0,Z.Z)(e=>{e3&&e3(e.offsetHeight)},tm),(0,Z.Z)(e=>{e6&&e6(e.offsetHeight)},th),(0,Z.Z)(e=>{e9&&e9(e.offsetHeight)},tf),(0,Z.Z)(e=>{e7&&e7(e.offsetHeight)},tg),(0,Z.Z)(e=>{e4&&e4(e.offsetHeight)},ty);let tv=!tt&&(!tn||tc&&eX||!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:X,graphqlRef:eJ,pinId:eS,inlinePinActionBar:tv?e_:void 0,setIsActionBarInline:tc?eQ: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,v._S)(eD)?(0,M.Fc)({i18n:n,hasRichMetadataProductOfferSummary:eH,richMetadataProductName:eW,richSummaryProductName:e$,hasRichSummaryProductOfferSummary:eG}):void 0,tP=(0,v._S)(eD)?(0,M.Fc)({i18n:n,hasRichMetadataProductOfferSummary:eH,richMetadataProductName:eW,richSummaryProductName:e$,hasRichSummaryProductOfferSummary:eG})||(0,M.Wj)({i18n:n,hasLinkDomain:ez,hasRichMetadataArticle:eN,hasRichMetadataRecipeCategorizedIngredients:eZ,hasRichMetadataTutorial:eM,richMetadataRecipeFromAggregatedData:eV}):void 0,tA=!tn&&eF&&(u||tr||!e5("unauth_gate_product_pins_by_country_and_trustworthiness").anyEnabled),{pinCreditLink:tk,pinCredit:tS}=(0,M.Xe)({hasLinkDomain:ez,hasNativeCreator:eL,hasOriginPinner:eO,pinDomain:eD,sourceUserUsername:eA,sourceUserFullName:ef}),{annotationsWithLinks:tw}=(0,x.eK)({pinJoinVisualAnnotation:eq,pinJoinAnnotationsWithLinks:eY}),tD=(0,M.AH)(ew),tE=ej&&(!tn||tS&&tk),tT=ed&&!!eC&&!e5(`${tn?"auth":"unauth"}_mweb_reactions_expansion_mvp_idea_video_pin`).anyEnabled,tC=(0,f.Z)(null==ts?void 0:ts.created_at)&&!(0,U.V0)(ts),tI=tr&&!tt&&tc&&e5("mweb_render_missing_seo_content_holdout_ff").anyEnabled,tF=tI?!tc:tr||!tc,tj=tn?e5("auth_closeup_redesign").anyEnabled:e5("unauth_closeup_redesign").anyEnabled,tR=!tt&&eu&&(0,ei.jsx)(s.xu,{children:(0,ei.jsx)(V.Z,{dedupeVisualAnnotations:null,pinId:eS,isMainPin:!0,isAuth:tn,pinCreditPrefix:tP,onClickTitleOrDomain:X,graphqlRef:eJ,lazyLoadAnnotations:!tn&&!tr,renderOnlyHiddenSEOContent:!tI&&tc&&tr,shoppingKlpUrls:e1})}),tz=eR&&(0,ei.jsx)(s.xu,{marginBottom:2,ref:tf,children:(0,ei.jsx)(z.Z,{hideFollowButton:e5("lex_follow_button").group.includes("hide_follow")||tt,justifyContent:tt?"start":"center",viewerId:ep,pinId:eS,graphqlRef:eJ,seeMoreButton:tF&&tR,clientTrackingParams:e0})}),tL=!!tE&&!eR&&(0,ei.jsxs)(s.xu,{flex:"grow",marginTop:tj?void 0:q.dP,"data-test-id":"CloseupUserRep",display:"flex",justifyContent:"between",alignItems:"center",width:"100%",ref:ty,children:[(0,ei.jsx)(Q.Z,{activateLexFollowExp:()=>e5("lex_follow_button"),blockedByMe:null!=em&&em,explicitlyFollowedByMe:null!=eh&&eh,followerCount:null!=eg?eg:0,fullName:null!=ef?ef:"",id:null!=ey?ey:"",imageLargeUrl:null!=ev?ev:"",imageMediumUrl:null!=ex?ex:"",imageSmallUrl:null!=eb?eb:"",isEligibleForPdp:!!u,isImagePinForUnauthOnTablet:null!=m&&m,isOnCloseup:!0,isVerifiedMerchant:null!=eP&&eP,pinId:eS,pinKey:eJ,textColor:"default",type:"row",username:null!=eA?eA:"",verifiedIdentityVerified:null!=ek&&ek,viewParameter:ec,viewType:3,clientTrackingParams:e0}),tF&&tR]}),tO=tt&&(tw||[]).length>0&&(0,ei.jsx)(a.Fragment,{children:(0,ei.jsx)(s.xu,{paddingX:0,padding:tj?0:2,marginTop:tj?4:0,children:(0,ei.jsx)(et.ZP,{dedupeVisualAnnotations:null,pinId:eS,mode:"inlineWithScrollArrows",graphqlRef:eJ,shoppingKlpUrls:e1})})}),tB=tT&&(0,ei.jsx)(_.Z,{name:"SafeSuspense_CloseupDetails_ReactionAggregation",children:(0,ei.jsx)(A.Z,{children:(0,ei.jsx)(s.xu,{alignSelf:"center",display:"flex",justifyContent:tt||tj?"start":"center",marginTop:tt?2:void 0,children:(0,ei.jsx)(en,{pinId:eS,reactionCounts:eC,viewParameter:156,viewType:3,disableModal:!tn,textSize:d.n,textWeight:"bold"})})})});eD&&ew&&(t={domain:eD,url:ew});let tN=eJ?{type:"graphqlRef",data:eJ}:{type:"deprecated",data:eS},tM=(e8||[]).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),tU=q.dP,tZ=tT||ti?q.dP:0,tK=tn?void 0:10,tH=tt?"start":"center";return tj&&(tU=tt?4:2,tZ=tT||ti?q.dP:1,tK=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&&!tj?0:4,paddingX:ea,children:[!tv&&e_,ti&&tz,tB,(tt||tA||tD&&(!tE||m))&&(0,ei.jsx)(s.xu,{"data-test-id":"callToActionButton",display:tn||tt||m||tA?void 0:"none",marginTop:tZ,ref:tm,children:(0,ei.jsx)(I.Z,{isImagePinForUnauthOnTablet:m,onClickTitleOrDomain:X,pinCreditPrefix:tj?tb:tP,pinDomain:eD})}),tt&&tA&&eE&&(0,ei.jsxs)(s.xu,{alignItems:"baseline",display:"flex",direction:"row",marginTop:1,children:[(0,ei.jsx)(s.xv,{size:"500",children:eE}),(0,ei.jsx)(s.xu,{marginStart:2,children:(0,ei.jsx)(s.xv,{size:"400",children:eT?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:tj?4:q.dP,ref:th,children:(0,ei.jsx)(j.Z,{onClick:X,hasLink:tD,lineClamp:tj?void 0:(0,R.Z)({isImagePinForUnauthOnTablet:m}),pinId:eS,graphqlRef:eJ,forceSmallerHeading:i,textAlign:tH})})]}),(0,ei.jsx)(er,{children:ti&&tx&&(0,ei.jsx)(s.xu,{marginTop:q.dP,children:(0,ei.jsx)(w.Z,{items:tM.filter(e=>""!==e),color:td?"light":"default"})})}),!tt&&eE&&(0,ei.jsx)(s.xu,{display:"flex",justifyContent:tj?"start":"center",marginTop:2,marginBottom:2,children:(0,ei.jsxs)(s.xv,{children:[eE," \xb7 ",eT?n._('In stock', 'closeup.details.productPinInStock', 'Product pin in stock'):n._('Out of stock', 'Product pin out of stock', 'Product pin out of stock')]})}),eU&&eK&&!tC&&(0,ei.jsx)(O.Z,{pinId:eS,graphqlRef:eJ,boldText:!1,marginTop:q.dP,textSize:"300",isWideViewport:tt}),(0,ei.jsx)(s.xu,{ref:t_,children:(0,ei.jsx)(er,{children:(0,ei.jsx)(g.Z,{options:{threshold:[1]},onVisibilityChange:tc?e=>{if(e&&e.length>0&&eQ){let{intersectionRatio:t,boundingClientRect:i}=e[0],n=i.y<0;eQ(1===t||n)}}:()=>{},children:e=>(0,ei.jsx)(s.xu,{ref:e,children:(0,ei.jsx)(s.xu,{marginTop:tj?tU:q.dP,children:tA?(0,ei.jsx)(W.Z,{onClickTitleOrDomain:X,pinKey:tN}):(0,ei.jsx)(T.Z,{pinKey:tN})})})})})}),tv&&(0,ei.jsx)(s.xu,{marginTop:tj?4:0,marginBottom:tj&&!o?4:0,children:e_}),tt&&!tn&&tO,!ti&&(0,ei.jsx)(s.xu,{marginTop:tj?q.dP:0,children:tL}),!ti&&(0,ei.jsx)(s.xu,{marginTop:tj?8:q.dP,children:tz}),tt&&tn&&(0,ei.jsx)(s.xu,{"data-test-id":"UnauthVaseFullBleedModalContainer",dangerouslySetInlineStyle:{__style:{visibility:"hidden"}},children:(0,ei.jsx)(E.Z,{pinKey:tN,onClose:()=>{}})}),!tt&&eB&&(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)(_.Z,{name:"SafeSuspense_CloseupDetails_PinFeedbackButton",children:(0,ei.jsx)(A.Z,{children:(0,ei.jsx)(es,{graphqlRef:eJ,pinId:eS,promoter:null!=eI?eI:"",type:"promoted"})})})]}),(0,ei.jsx)(s.iz,{})]}),!tC&&eU&&!H&&(0,ei.jsx)(G.Z,{hash:"recipe",offset:-y.DEFAULT_HEIGHT,children:(0,ei.jsx)(L.ZP,{pinId:eS,graphqlRef:eJ})}),!tC&&H&&(0,ei.jsx)(C.Z,{graphqlRef:eJ,link:t,pinId:null!=eS?eS:"",clientTrackingParams:e0}),!tx&&(0,ei.jsx)(F.Z,{graphqlRef:eJ,pinId:eS,inCollapsibleModulesExp:tx}),!tn&&ti&&"IN"===tl&&(ta||"").startsWith("en")&&J.N3.includes(to)&&3>=Number((0,k.qn)("indiaUnauthLocaleShowCount",0))&&(0,ei.jsx)(_.Z,{name:"SafeSuspense_CloseupDetails_UnauthSwitchLanguageModal",children:(0,ei.jsx)(A.Z,{children:(0,ei.jsx)(el,{})})}),(0,ei.jsx)(c.Z,{pinKey:tN,isDesktop:tt})]}),tt&&ee&&!eF&&(0,ei.jsx)(_.Z,{name:"CommentThread",children:(0,ei.jsxs)(s.xu,{paddingX:2,marginTop:tK,children:[(0,ei.jsx)(s.X6,{size:"400",accessibilityLevel:2,children:l&&!r?(0,S.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)(N.Z,{isReadOnly:!0,pinKey:tN,pinId:eS,viewParameter:ec}),!tr&&!r&&(0,ei.jsx)(B.Z,{isStoryPin:!1,viewParameter:ec})]})}),!tt&&o]})})}let ep=e=>{var t,i,n,l,a,o,s,d,u,c,p,_,m,h,g,f,y,v,x,b,A,k,S,w,D,E,T,C,I,F,j,R,z,L,O,B,N,M,U,Z,K;let H,G;let V=(0,ee.Z)(e),W=(0,X.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),J=(0,r.useFragment)(ed,e.originPinner),Q=(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:J||$),eo||H||(H=$);let es=!!e.closeupAttribution;return en&&en.name&&en.offerSummary&&(G=en.offerSummary),!G&&el&&el.name&&el.offerSummary&&(G=el.offerSummary),{commentCount:ea+er,commentsDisabled:e.commentsDisabled,closeupUnifiedDescription:e.closeupUnifiedDescription,hasLinkDomain:!!e.linkDomain,hasNativeCreator:!!e.nativeCreator,hasOfficialUser:es,hasOriginPinner:!!e.originPinner,hasPinProduct:!!G,hasPromoter:!!ei,hasRichMetadataArticle:!!(null!==(_=e.richMetadata)&&void 0!==_&&_.article),hasRichMetadataProductOfferSummary:!!(null!=en&&en.offerSummary),hasRichMetadataRecipe:!!(null!==(m=e.richMetadata)&&void 0!==m&&m.recipe),hasRichMetadataRecipeAggregateInfo:!!(null!==(h=e.richMetadata)&&void 0!==h&&null!==(g=h.recipe)&&void 0!==g&&g.displayCookTime)||!!(null!==(f=e.richMetadata)&&void 0!==f&&null!==(y=f.recipe)&&void 0!==y&&y.servingsSummary)||!!(null!==(v=e.richMetadata)&&void 0!==v&&null!==(x=v.recipe)&&void 0!==x&&x.aggregateRating),hasRichMetadataRecipeCategorizedIngredients:!!(null!==(b=e.richMetadata)&&void 0!==b&&null!==(A=b.recipe)&&void 0!==A&&A.categorizedIngredients),hasRichMetadataTutorial:!!(null!==(k=e.richMetadata)&&void 0!==k&&k.tutorial),hasRichSummaryProductOfferSummary:!!(null!=en&&en.offerSummary),hasSourceUser:!!H,isEligibleForPdp:e.isEligibleForPdp,pinDomain:e.domain,pinJoinAnnotationsWithLinks:W,pinJoinVisualAnnotation:Q,pinLink:e.link,pinProductInStock:null===(S=G)||void 0===S?void 0:S.inStock,pinProductPrice:null===(w=G)||void 0===w?void 0:w.price,pinReactionCounts:V,promoterFullName:null==ei?void 0:ei.fullName,richMetadataProductName:null==en?void 0:en.name,richMetadataRecipeFromAggregatedData:null===(D=e.richMetadata)||void 0===D?void 0:null===(E=D.recipe)||void 0===E?void 0:E.fromAggregatedData,richSummaryProductName:null==el?void 0:el.name,shouldShowAggregatedComments:e.isEligibleForAggregatedComments,shoppingKlpUrls:et,sourceUserBlockedByMe:null===(T=H)||void 0===T?void 0:T.blockedByMe,sourceUserExplicitlyFollowedByMe:null===(C=H)||void 0===C?void 0:C.explicitlyFollowedByMe,sourceUserFollowerCount:null===(I=H)||void 0===I?void 0:I.followerCount,sourceUserFullName:null===(F=H)||void 0===F?void 0:F.fullName,sourceUserId:null===(j=H)||void 0===j?void 0:j.entityId,sourceUserImageLargeUrl:null===(R=H)||void 0===R?void 0:R.imageLargeUrl,sourceUserimageMediumUrl:null===(z=H)||void 0===z?void 0:z.imageMediumUrl,sourceUserImageSmallUrl:null===(L=H)||void 0===L?void 0:L.imageSmallUrl,sourceUserIsVerifiedMerchant:null===(O=H)||void 0===O?void 0:O.isVerifiedMerchant,sourceUserUsername:null===(B=H)||void 0===B?void 0:B.username,sourceUserVerifiedIdentityVerified:null===(N=H)||void 0===N?void 0:null===(M=N.verifiedIdentity)||void 0===M?void 0:M.verified,storyPinKeyValueBlocks:null===(U=e.storyPinData)||void 0===U?void 0:null===(Z=U.metadata)||void 0===Z?void 0:null===(K=Z.basics)||void 0===K?void 0:K.keyValueBlocks}},e_=e=>{var t,i,n,l,a,r,o,s,d,c,p,_,m,h,g,f,y,v,x,b,A,k,S,w,D,E,T,C,I,F,j,R,z,L;let O,B;let{isAuthenticated:N}=(0,P.B)(),U=(0,K.mN)();if(!e)return null;let Z=(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,G=e.promoter&&!e.is_downstream_promotion?e.promoter:null,V=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:J}=e||{},X=(0,M.wS)($,q,Y,J);N||X||(X=J),X&&(O="string"==typeof X?U(X):X);let Q=!!e.closeup_attribution;return V&&V.name&&V.offer_summary&&(B=V.offer_summary),!B&&W&&W.name&&W.offer_summary&&(B=W.offer_summary),{commentCount:Z+H,commentsDisabled:e.comments_disabled,hasLinkDomain:!!e.link_domain,hasNativeCreator:!!e.native_creator,hasOfficialUser:Q,hasOriginPinner:!!e.origin_pinner,hasPinProduct:!!B,hasPromoter:!!G,hasRichMetadataArticle:!!(null!==(d=e.rich_metadata)&&void 0!==d&&d.article),hasRichMetadataProductOfferSummary:!!(null!=V&&V.offer_summary),hasRichMetadataRecipe:!!(null!==(c=e.rich_metadata)&&void 0!==c&&c.recipe),hasRichMetadataRecipeCategorizedIngredients:!!(null!==(p=e.rich_metadata)&&void 0!==p&&null!==(_=p.recipe)&&void 0!==_&&_.categorized_ingredients),hasRichMetadataTutorial:!!(null!==(m=e.rich_metadata)&&void 0!==m&&m.tutorial),hasRichSummaryProductOfferSummary:!!(null!=V&&V.offer_summary),hasSourceUser:!!X,isEligibleForPdp:e.is_eligible_for_pdp,pinDomain:e.domain,pinJoinAnnotationsWithLinks:null===(h=e.pin_join)||void 0===h?void 0:h.annotations_with_links,pinJoinVisualAnnotation:null===(g=e.pin_join)||void 0===g?void 0:g.visual_annotation,pinLink:e.link,pinProductInStock:null===(f=B)||void 0===f?void 0:f.in_stock,pinProductPrice:B&&(0,u.Z)({maxPrice:B.max_price,minPrice:B.min_price,price:B.price}),pinReactionCounts:e.reaction_counts,promoterFullName:null==G?void 0:G.full_name,richMetadataProductName:null==V?void 0:V.name,richMetadataRecipeFromAggregatedData:null===(y=e.rich_metadata)||void 0===y?void 0:null===(v=y.recipe)||void 0===v?void 0:v.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=O)||void 0===b?void 0:b.blocked_by_me,sourceUserExplicitlyFollowedByMe:null===(A=O)||void 0===A?void 0:A.explicitly_followed_by_me,sourceUserFollowerCount:null===(k=O)||void 0===k?void 0:k.follower_count,sourceUserFullName:null===(S=O)||void 0===S?void 0:S.full_name,sourceUserId:null===(w=O)||void 0===w?void 0:w.id,sourceUserImageLargeUrl:null===(D=O)||void 0===D?void 0:D.image_large_url,sourceUserimageMediumUrl:null===(E=O)||void 0===E?void 0:E.image_medium_url,sourceUserImageSmallUrl:null===(T=O)||void 0===T?void 0:T.image_small_url,sourceUserIsVerifiedMerchant:null===(C=O)||void 0===C?void 0:C.is_verified_merchant,sourceUserUsername:null===(I=O)||void 0===I?void 0:I.username,sourceUserVerifiedIdentityVerified:null===(F=O)||void 0===F?void 0:null===(j=F.verified_identity)||void 0===j?void 0:j.verified,storyPinKeyValueBlocks:null===(R=e.story_pin_data)||void 0===R?void 0:null===(z=R.metadata)||void 0===z?void 0:null===(L=z.basics)||void 0===L?void 0:L.key_value_blocks}};function em({graphqlRef:e,pinId:t,...i}){let{data:n,childDataKey__DEPRECATED:l}=(0,m.HF)(eu,e?{type:"graphqlRef",data:e}:{type:"deprecated",data:t},{type:"pin",useGraphQLAdapter:ep,useLegacyAdapter:e_});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:()=>A});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),_=i(780280),m=i(50286),h=i(29066),g=i(706443),f=i(350118),y=i(785893);let v=void 0!==n?n:n=i(623861);function x({listBlocks:e,templateType:t}){let i=(0,c.ZP)(),n=(0,m.ml)(),{checkExperiment:a}=(0,p.F)(),{isAuthenticated:f}=(0,_.B)(),v=n&&["no_collapse_by_default","collapse_by_default"].includes(a(f?"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,y.jsx)(r.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:e&&e.length>0&&(0,y.jsxs)(r.xu,{marginTop:4,display:"flex",direction:"column",dangerouslySetInlineStyle:{__style:{rowGap:16}},children:[v&&(0,y.jsx)(g.Z,{marginStart:u.D6+h.xh}),(0,y.jsx)(o.Z,{heading:x.get(t),children:(0,y.jsx)(({children:e})=>v?(0,y.jsx)(r.kC,{direction:"column",gap:4,children:e}):(0,y.jsx)(d.Z,{children:e}),{children:e.map((e,t)=>{var i;let n=`${e.heading||"empty"}-${t}-listHeading`;return(0,y.jsxs)(l.Fragment,{children:[(0,y.jsx)(r.xu,{paddingY:v?0:2,marginTop:v?0:2}),(0,y.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,y.jsx)(l.Fragment,{children:(0,y.jsx)(r.xu,{marginBottom:1,children:(0,y.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,f.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,y.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)(v,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,y.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 A(e){return e.graphqlRef?(0,y.jsx)(P,{graphqlRef:e.graphqlRef,...e}):(0,y.jsx)(b,{...e})}},435183:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});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),_=i(785893);function m({isImagePinForUnauthOnTablet:e,onClickTitleOrDomain:t,pinCreditPrefix:i,pinDomain:m}){let{isAuthenticated:h}=(0,d.B)(),g=(0,a.ZP)(),f=(0,c.Z)(),y=(0,p.HG)(),{checkExperiment:v}=(0,s.F)(),x=h?v("auth_closeup_redesign").anyEnabled:v("unauth_closeup_redesign").anyEnabled,b=y?"start":"center",P=1,A=e?void 0:"bold",k=e?{textDecoration:"underline"}:{};x&&(b="start",P=i?1:0,A=void 0,k={textDecoration:"underline"});let S=(0,o._S)(m);return(0,_.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,_.jsx)(n.xu,{display:"inlineBlock",children:(0,_.jsx)(n.xv,{inline:!0,size:l.n,children:i})},"pinCreditsPrefix"),pinCredit:S?(0,_.jsx)(n.xu,{display:"inlineBlock",marginStart:P,maxWidth:"60vw","data-test-id":"pin-domain-link",children:(0,_.jsx)(n.iP,{onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),f({action:"click",item:"pin-domain-link"}),(0,u.My)("mweb_pin_page.pin_link.clickthrouh"),h||(0,u.NC)("click_pin_closeup_link_clickthrough"),t()},tapStyle:"compress",children:(0,_.jsx)(n.xv,{size:l.n,weight:A,lineClamp:1,children:(0,_.jsx)("span",{style:k,children:m})},"pinLinkDomain")})},"pinCredits"):""})})}},266224:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_}),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,_,m,h,g,f,y,v;let x;let b=(0,o.ZP)(),P=(0,d.Z)(),A=!((null===(i=t.board)||void 0===i?void 0:i.layout)!=="quick_creates"),k=P.id===(null===(n=t.pinner)||void 0===n?void 0:n.entityId);if(!k||A||!P.isAuth)return null;let{imageMediumUrl:S,username:w}=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:`/${w}`,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")},w),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===(_=t.section)||void 0===_?void 0:_.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:`/${w}`,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")},w),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===(f=t.board)||void 0===f?void 0:f.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!==(y=null===(v=t.board)||void 0===v?void 0:v.name)&&void 0!==y?y:""})},"author")},null!==(m=null===(h=t.board)||void 0===h?void 0:h.url)&&void 0!==m?m:"")});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:`/${w}`,rel:"nofollow",onClick:({dangerouslyDisableOnNavigation:e})=>e(),children:(0,u.jsx)(a.qE,{size:"md",name:w,src:null!=S?S:""})},"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 _({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:()=>A});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),_=i(63552),m=i(350118),h=i(698330),g=i(954063),f=i(785893);let y=({children:e,handleTap:t})=>t?(0,f.jsx)(_.Z,{onTouch:t,pressState:"compress",children:e}):e,v=void 0!==n?n:n=i(560728);function x({onClick:e,hasLink:t,forceSmallerHeading:i,textAlign:n,pinTitle:l,gridTitle:_,richSummaryDisplayName:m,richMetadataTitle:v,storyPinDataId:x,storyPinDataMetadataPinTitle:b,pinJoinVisualAnnotation:P,lineClamp:A,seoNoindexReason:k,seoTitle:S}){let w=(0,p.ZP)(),{isAuthenticated:D,isBot:E}=(0,u.B)(),T=(0,h.Tt)(),{checkExperiment:C}=(0,d.F)(),I=(0,r.Z)(null==T?void 0:T.created_at)&&!(null!=T&&T.is_matured_new_user),F=D?C("auth_closeup_redesign").anyEnabled:C("unauth_closeup_redesign").anyEnabled,j=(0,s.Ly)({pinTitle:l,gridTitle:_,richSummaryDisplayName:m,richMetadataTitle:v,storyPinDataId:x,storyPinDataMetadataPinTitle:b,pinJoinVisualAnnotation:P,seoNoindexReason:k,seoTitle:S}),R="desktop"===w?"start":"center";return F&&(R="start"),(0,f.jsx)(g.Z,{hash:"details",offset:-o.DEFAULT_HEIGHT,children:(0,f.jsx)(a.kC,{alignItems:"desktop"===w?"start":"center",direction:"column",justifyContent:"center",children:(0,f.jsx)(a.xu,{"data-test-id":"pinTitle",maxWidth:"100%",alignSelf:F?"start":"stretch",children:(0,f.jsx)(y,{handleTap:"desktop"!==w&&t?t=>{t.preventDefault(),t.stopPropagation(),(0,c.My)("mweb_pin_page.pin_title.click"),D||(0,c.NC)("unauth_click_pin_closeup_title"),e()}:null,children:(0,f.jsx)(a.X6,{align:n||R,accessibilityLevel:1,overflow:"breakWord",size:i||I?"400":"500",lineClamp:E?void 0:A,children:j})})})})})}function b(e){var t,i,n,a,r,o,s;let d=(0,l.useFragment)(v,e.graphqlRef);return(0,f.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,m.S6)()(e.pinId||"");return s?(0,f.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 A(e){return e.graphqlRef?(0,f.jsx)(b,{...e}):(0,f.jsx)(P,{...e})}},633988:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(883119),l=i(398061);let a=new n.H3([l.e]),r=a},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:()=>S});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),_=i(773285),m=i(780280),h=i(819354),g=i(815613),f=i(461773),y=i(350118),v=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:y,graphqlRef:b,pinId:P,pinImageSignature:A,userData:k,clientTrackingParams:S}){let w=(0,u.ZP)(),D=(0,c.Z)(),{checkExperiment:E}=(0,_.F)(),{isAuthenticated:T}=(0,m.B)(),C=T?E("auth_closeup_redesign").anyEnabled:E("unauth_closeup_redesign").anyEnabled,{id:I="",image_medium_url:F,follower_count:j,followed_by_me:R,username:z="",is_ads_only_profile:L=!1,ads_only_profile_site:O=""}=k,B=(0,v.mN)()(I),N=(0,a.useDispatch)(),M=(0,l.useRef)(),U=(0,s.Z)(),{locale:Z}=(0,m.B)(),[K,H]=(0,l.useState)(B?B.explicitly_followed_by_me:R),G=L&&O,V=G&&O?O:`/${z}/`;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:V,rel:G?"nofollow":"none",target:G?"blank":null,onTap:()=>{G&&U({event_type:9371,element:13382,component:123})},children:(0,x.jsx)(d.qE,{name:z,size:r||"md",src:null!=F?F:""})})}),(0,x.jsxs)(o.xu,{display:"flex",direction:"column",marginStart:2,justifyContent:"center",minWidth:0,children:[(0,x.jsx)(h.Z,{fontWeight:"bold",graphqlRef:b,pinId:P}),!t&&(0,x.jsx)(o.xv,{size:C?"200":"300",children:(0,p.nk)(w._('{{ followerCount }} followers', 'closeup.officialUser.followerCount', 'Official user\'s follower count'),{followerCount:D(Z,j||0,{shortform:!0,shortform_maximum_fraction_digits:0})})})]}),y,!e&&(0,x.jsx)(l.Fragment,{children:(0,x.jsx)(o.xu,{marginStart:"auto",ref:M,children:(0,x.jsx)(g.Z,{followEventType:45,id:I,isFollowed:K,isUserFollowButton:!0,isUserMe:i===I,onFollow:e=>{H(!0),N((0,f.ZN)(e,null,S))},onUnfollow:e=>{H(!1),N((0,f.fv)(e,null,S))},pinKey:null!=b?b:null,size:"lg",shouldUseLegoColors:!0,unfollowEventType:46,viewType:3,auxData:P&&A?{pin_id:P,image_signature:A}:void 0,clientTrackingParams:S})})})]})}function A({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 k({pinId:e,...t}){var i;let n=(0,y.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 S({graphqlRef:e,...t}){return e?(0,x.jsx)(A,{...t,graphqlRef:e}):(0,x.jsx)(k,{...t})}},819354:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});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 _=(0,o.Z)(),m=d&&c,h=m&&c?c:`/${a}/`;return(0,u.jsx)(r.Tg,{href:h,rel:m?"nofollow":"none",target:m?"blank":null,onMouseDown:()=>{p&&p()},onTap:()=>{m&&_({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 _(e){var t,i,n,r,o,s;let d=(0,a.useFragment)(c,e.graphqlRef),_=null==d?void 0:d.closeupAttribution;return _?(0,u.jsx)(p,{getDisplayName:e.getDisplayName,fontWeight:e.fontWeight,isVerifiedMerchant:null!==(t=_.isVerifiedMerchant)&&void 0!==t?t:void 0,fullName:null!==(i=_.fullName)&&void 0!==i?i:void 0,verifiedIdentityVerified:null!==(n=null===(r=_.verifiedIdentity)||void 0===r?void 0:r.verified)&&void 0!==n?n:void 0,username:null!==(o=_.username)&&void 0!==o?o:void 0,isAdsOnlyProfile:null!==(s=_.isAdsOnlyProfile)&&void 0!==s&&s,adsOnlyProfileSite:_.adsOnlyProfileSite,onMouseDown:e.onMouseDown}):(0,u.jsx)(l.Fragment,{})}function m(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 h(e){return e.graphqlRef?(0,u.jsx)(_,{...e}):(0,u.jsx)(m,{...e})}},350948:(e,t,i)=>{"use strict";i.d(t,{IS:()=>A,Ys:()=>P,ZP:()=>I,j$:()=>w});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),_=i(923297),m=i(780280),h=i(50286),g=i(29066),f=i(706443),y=i(350118),v=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,A=({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,k=(e,t)=>{let i=e&&e.length>0&&e.join(", "),n=t&&t.summary;return i&&n?`${i} • ${n}`:i||n},S=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,w=({displayCookTime:e,i18n:t,isShortened:i})=>P((0,_.u)(e),t,i);function D({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 E=({categorizedIngredients:e,displayCookTime:t,image:i,ingredientCount:n,ingredientsDescription:a,name:c})=>{let _=(0,u.ZP)(),{checkExperiment:y}=(0,p.F)(),{isAuthenticated:b}=(0,m.B)(),P=(0,h.ZP)(),A=b?y("auth_closeup_redesign").anyEnabled:y("unauth_closeup_redesign").anyEnabled,k="desktop"!==P&&["no_collapse_by_default","collapse_by_default"].includes(y(b?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group),S=t?w({displayCookTime:t,i18n:_,isShortened:!0}):null;if(!S&&!n&&!a)return null;let E=_._('Ingredients', 'Closeup.PinRecipe.ingredientsLabel', 'Ingredients category heading for recipes');return(0,x.jsxs)(r.xu,{marginTop:v.dP,children:[k&&(0,x.jsx)(f.Z,{marginStart:d.D6+g.xh}),(0,x.jsxs)(r.xu,{"data-test-id":"pin-recipe-container",direction:"column",display:"flex",marginTop:A?4:12,marginBottom:A?0:4,marginEnd:A?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:E,children:k?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)(D,{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)(D,{category:e,ingredients:t,textSize:"300"})})},n)})})})})]})]})},T=({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=S(r),s=(null==l?void 0:l.categorizedIngredients)&&k(l.diets,l.servingsSummary);return(0,x.jsx)(E,{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})},C=({pinId:e})=>{var t,i;let n=(0,y.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=S(o),c=o&&k(s,d);return(0,x.jsx)(E,{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)(T,{graphqlRef:e}):(0,x.jsx)(C,{pinId:t})}},635821:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});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),_=i(350118),m=i(785893);let h=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:_,ratingBestRating:h,ratingRatingValue:g,ratingReviewCount:f,hasPinRecipe:y,displayCookTime:v,dietList:x,servingSummaryServes:b}){let P=(0,r.ZP)(),{checkExperiment:A}=(0,s.F)(),{isAuthenticated:k}=(0,u.B)(),S=k?A("auth_closeup_redesign").anyEnabled:A("unauth_closeup_redesign").anyEnabled,w=(0,c.ZP)(),D=(0,o.nk)(P.ngettext('{{review_count}} rating', '{{review_count}} ratings', null != f ? f : 0, 'closeup.recipe.ratings', 'number of ratings for this recipe pin'),{review_count:f}),E=v?(0,p.j$)({displayCookTime:v,i18n:P,isShortened:!0}):null,T=Number(b),C=(0,o.nk)(P.ngettext('{{serves}} serving', '{{serves}} servings', Number.isNaN(T) ? 0 : T, 'closeup.recipe.serves', 'number of servings for this recipe pin'),{serves:b}).join(""),I=[x,C].filter(Boolean),F=(0,o.nk)(P._('{{ ratingStars }} {{ count }}', 'closeup.recipe.rating', 'recipe ratings and count'),{ratingStars:(0,m.jsx)(d.Z,{rating:g,max_rating:h,width:l},"ratingStars"),count:(0,m.jsx)(a.xv,{inline:!0,size:n,weight:e?"bold":"normal",children:i?f:D},"ratingCount")});y&&(F=(0,m.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,m.jsx)(a.xv,{inline:!0,children:F},"recipeText"),cookTime:(0,m.jsxs)(a.xv,{inline:!0,children:[E&&"\xb7 ",E]},"cookTimeText"),pinRecipe:(0,m.jsx)(a.xv,{inline:!0,children:I.length>0&&(0,m.jsx)(a.xv,{inline:!0,children:` \xb7 ${I.join(" \xb7 ")}`})},"pinRecipe")})}));let j=_||"phone"!==w?"start":"center";return S&&(j="start"),(0,m.jsx)(a.xu,{alignItems:"baseline","data-test-id":"PinRecipeContainer",display:y&&"phone"===w?"block":"flex",justifyContent:"start",marginTop:t,children:(0,m.jsx)(a.xv,{align:j,inline:!0,children:F})})}let f=({graphqlRef:e,...t})=>{var i,n,a,r;let o=(0,l.useFragment)(h,e),{richMetadata:s}=o,d=null==s?void 0:s.recipe;return(0,m.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})},y=({pinId:e,...t})=>{var i,n,l,a,r;let o=(0,_.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,m.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 v({graphqlRef:e,pinId:t,...i}){return e?(0,m.jsx)(f,{...i,graphqlRef:e}):(0,m.jsx)(y,{...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})})})}},763839:(e,t,i)=>{"use strict";i.d(t,{w:()=>s,z:()=>o});var n=i(667294),l=i(425288),a=i(785893);let{Provider:r,useMaybeHook:o}=(0,l.Z)("CloseupPreviewContext");function s({children:e}){let[t,i]=(0,n.useState)(Object.freeze({})),l=(0,n.useMemo)(()=>({setData:(e,t)=>i(i=>({...i,[e]:t})),getData:e=>t[e]}),[t]);return(0,a.jsx)(r,{value:l,children:e})}},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:()=>_});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,_=({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:()=>w,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),_=i(829407),m=i(19121),h=i(139405),g=i(664569),f=i(114020),y=i(600147),v=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}),A=(0,o.P1)((e,t,i)=>i,({feeds:e},t)=>e[`${v.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))||[]),k=void 0!==n?n:n=i(90838),S=({aggregatedPinDataId:e,closeupAttributionId:t,closeupAttributionUsername:i,commentsDisabled:n,hasComments:o,isReadOnly:u,pinId:v,isVideo:k,pinnerId:S,scrollContainer:w,setIsComposingNewComment:D=()=>{},storyPinDataId:E,viewParameter:T,toggleComposerForReply:C,openMwebOverflowMenu:I})=>{let{comment_id:F}=(0,r.useParams)(),j=(0,a.useDispatch)(),R=(0,p.HG)(),z=(0,m.Z)(),L=(0,l.useRef)(o),O=(0,c.Z)(L.current&&e?P({aggregatedPinDataId:e,featuredCommentIds:F?[F]:[],isDesktop:R}):null),{removeUnauthCommentPinId:B,unauthCommentPinId:N}=(0,f.C)(),M=(0,h.lV)(),{toggleAggregatedCommentHelpful:U,toggleAggregatedCommentLike:Z}=(0,h.nf)(),K=(0,x.kW)(),H=(0,a.useSelector)(t=>A(t,e,M,K)),[G,V]=(0,l.useState)(void 0),W=()=>{D(!0)};return(0,_.Z)(()=>{!R&&z.isAuth&&N&&v&&N===v&&(W(),B())}),(0,l.useEffect)(()=>{let e=()=>{let t=!!w&&w.scrollTop+w.clientHeight+10>=w.scrollHeight;O&&!O.isFetching&&(O.isAtEnd?null==w||w.removeEventListener("scroll",e):t&&O.fetchMore())};return null==w||w.addEventListener("scroll",e),()=>{null==w||w.removeEventListener("scroll",e)}},[O,w]),(0,b.jsx)(l.Fragment,{children:(0,b.jsx)(s.xu,{display:"flex",marginTop:R?6:0,width:"100%",children:(0,b.jsx)(d.Z,{comments:H,commentsDisabled:n,isDesktop:R,isReadOnly:u,isLoaded:O&&O.isLoaded||!o,openOverflowMenu:I,toggleReplyComposer:C,parentId:null!=e?e:"",parentType:g.o.pin,toggleHelpful:(e,t,i)=>()=>{i?j((0,y.YH)({didItDataId:e,isMarkedHelpfulByMe:t})):U({aggregatedCommentId:e,isMarkedHelpfulByMe:t})},toggleLike:(e,t,i)=>()=>{i?j((0,y.wH)({didItDataId:e,isLikedByMe:t})):Z({aggregatedCommentId:e,isLikedByMe:t})},userAvatarSize:"sm",aggregatedPinDataId:e,closeupAttributionId:t,closeupAttributionUsername:i,pinId:v,isVideo:k,storyPinDataId:E,pinnerId:S,showReactionListForComment:V,reactionListCommentId:G,viewParameter:T})})})};function w({pinKey:e,...t}){var i,n,l,a,r,o,s,d,c;let{data:p}=(0,u.sr)(k,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"}}}}}),_=((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)(S,{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:_>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})}},239062:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});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),_=i(785893);let m={cursor:"pointer",padding:"30px 16px",position:"relative",zIndex:1},h=(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 f({addEllipsis:e,alwaysShowNavigationArrows:t,carouselIndex:i,carouselData:n,ellipsisVariant:f,handleCarouselSwipe:y,isShowingLastSlide:v,pinKey:x,contextLogData:b,viewParameter:P,viewType:A,componentType:k,isEditMode:S,forwardNode:w,backNode:D,sliderStyleOverride:E,hideNavigationArrows:T}){var C,I;let F;let j=(0,s.ZP)(),R=(0,l.useDispatch)(),z=(0,p.S6)();if(null==x||"graphqlRef"===x.type)F=x;else{let e=z(x.data);F=null==e?null:{type:"deprecated",data:e}}let{data:L,childDataKey__DEPRECATED:O}=(0,o.Q)(g,F,{useLegacyAdapter:e=>{var t;return{entityId:null!==(t=e.id)&&void 0!==t?t:"",isEligibleForPdp:e.is_eligible_for_pdp}}}),B=(0,u.Z)(O,"CarouselSliders"),N=(0,r.Z)(O),M=n||N&&{carouselSlots:N.carouselSlots.map(({slotId:e,title:t})=>({id:e,title:t})),entityId:null!==(C=N.carouselId)&&void 0!==C?C:"",index:N.index};if(!M)return null;let U=(e,t)=>R((0,c.yR)(e,t)),{carouselSlots:Z,index:K}=M,H=void 0!==i?i:null!=K?K:0,G=Math.max(0,H-1),V=Math.min((null!=Z?Z:[]).length-1,H+1),W=0===H,$=v||H===(null!=Z?Z:[]).length-1,q=(e,t)=>{var i,n,l;h(e,null!==(i=null==L?void 0:L.entityId)&&void 0!==i?i:"",t,U,y,S),B({pinId:null!==(n=null==L?void 0:L.entityId)&&void 0!==n?n:"",currentIndex:H,nextIndex:t,carouselData:{carouselSlots:null==Z?void 0:Z.map(({id:e})=>({id:e})),entityId:M.entityId},viewParameter:P,viewType:A,componentType:k,contextLogData:b,isEditMode:S,isEligibleForPdp:null!==(l=null==L?void 0:L.isEligibleForPdp)&&void 0!==l&&l})},Y=D||(0,_.jsx)(a.JO,{color:"inverse",icon:"arrow-back",accessibilityLabel:j._('View Previous', 'Button to advance carousel to the previous image', 'Button to advance carousel to the previous image')}),J=T?null:w||(0,_.jsx)(a.JO,{color:"inverse",icon:"arrow-forward",accessibilityLabel:j._('View Next', 'Button to advance carousel to the next image', 'Button to advance carousel to the next image')});return(0,_.jsxs)(a.xu,{display:"flex",justifyContent:T?"center":"between",position:"absolute",alignItems:"center",left:!0,right:!0,bottom:!0,top:!0,children:[!T&&(0,_.jsx)("div",{"data-test-id":"carousel-slider-left",role:"presentation",onClick:e=>{q(e,G)},onKeyUp:e=>{q(e,G)},style:{...m,...E,pointerEvents:W?"none":"auto"},children:(0,_.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,_.jsx)(d.default,{pinKey:O,carouselIndex:i,carouselData:{carouselSlots:null===(I=M.carouselSlots)||void 0===I?void 0:I.map(({id:e,title:t})=>({id:e,title:t})),entityId:M.entityId,index:M.index},handleCarouselSwipe:y,variant:f||"default",viewParameter:P,viewType:A,componentType:k}),!T&&(0,_.jsx)("div",{"data-test-id":"carousel-slider-right",role:"presentation",onClick:e=>{q(e,V)},onKeyUp:e=>{q(e,V)},style:{...m,...E,pointerEvents:$?"none":"auto"},children:(0,_.jsx)(a.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{visibility:$&&!t?"hidden":"visible",opacity:$&&t?"50%":"100%"}},display:"flex",height:"100%",justifyContent:"center",width:"100%",children:J})})]})}},886076:(e,t,i)=>{"use strict";function n({isEligibleForPdp:e,isOosProduct:t,isStaleProduct:i,pinShoppingFlags:n}){if(n){let l={pin_is_shop_the_look:n.includes(2),pin_show_pdp:e||t||i,is_available:n.includes(1),is_product_pin_v2:n.includes(5),is_rich_product_pin:n.includes(6)};return JSON.stringify(l)}}i.d(t,{Z:()=>n})},830157:(e,t,i)=>{"use strict";function n(e,t){return e||`${t||""}~0`}i.d(t,{Z:()=>n})},948376:(e,t,i)=>{"use strict";i.d(t,{G3:()=>u,Rp:()=>d,kp:()=>o});var n=i(202139),l=i(844974),a=i(339363);let r=14*n.F4,o=(e,t)=>{let i=function(){let e=Date.now(),t=Number((0,l.qn)("appUpsell")),i=Number((0,l.qn)("firstUpsellTime")),n=!!(0,a.qn)("showedAppUpsellCurrentSession");return{currentTime:e,firstUpsellTime:i,lastUpsellTime:t,showedAppUpsellCurrentSession:n}}();return e?function(e,t,i){let{currentTime:n,firstUpsellTime:a,lastUpsellTime:o,showedAppUpsellCurrentSession:s}=e;return(i=i||r,!a||n<a+t)?!s:n-o>i&&((0,l.L_)("firstUpsellTime"),!0)}(i,n.F4):function(e,t){let{currentTime:i,lastUpsellTime:n}=e;return t=t||r,!n||i-n>t}(i,t)},s=e=>{e=e.toLowerCase();let t=e.match(/android\s([0-9\.]*)/i);return t?t[1]:void 0},d=({isBot:e,platform:t,userAgent:i})=>{try{return!e&&"android"===t&&7>parseFloat(s(i))}catch(e){return!1}},u=e=>(e.startsWith("zh")||e.startsWith("ar")?e:e.slice(0,2)).toUpperCase()},116485:(e,t,i)=>{"use strict";i.d(t,{AA:()=>a,E9:()=>g,EU:()=>v,IO:()=>y,KH:()=>u,Lg:()=>_,QR:()=>d,Uw:()=>l,ZR:()=>x,dy:()=>s,eA:()=>p,eV:()=>m,fo:()=>h,k7:()=>r,rT:()=>f,tz:()=>c,u9:()=>b,zR:()=>o,zu:()=>n});let n="OPEN_UNAUTH",l="openUnauthType",a="_isAfterLogin",r="_lastVisitedPages",o="_lastVisitedPagesBeforeLogin",s="_lastVisitedBoardPages",d="_lastVisitedPagesBeforeNavPage",u="_lastVisitedSessionPages",c="_unauthVisitedPages",p=20,_="_inviteCodeRedemption",m="_paidTrafficLand",h="_unauthReferrerString",g="unauthTopicsFollowed",f=["US","CA","NZ","AU"],y=new Set(["GB","IE"]),v=new Set(["AT","BE","CH","DE","DK","ES","FR","IT","NL","NO","PT","SE"]),x=new Set(["BR","MX","AR","CL","CO","PE"]),b="ad_img"},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")},772486:(e,t,i)=>{"use strict";let n;i.d(t,{XK:()=>s,jC:()=>o,yd:()=>d});var l=i(755289);let a=null,r=null,o=(n=null,e=>{var t,i,o;if(e&&!n){let o={...e,time:(0,l.Z)()};return n={...o,event_type:12},null===(t=r)||void 0===t||t.logContextEvent(n),null===(i=a)||void 0===i||i.storeClickthroughProperties(o),12}if(!e&&n){let e={...n,event_type:4100,duration_ns:(0,l.Z)()-n.time};return null===(o=r)||void 0===o||o.logContextEvent(e),n=null,4100}return null}),s=e=>{a=e},d=e=>{r=e}},59729:(e,t,i)=>{"use strict";i.d(t,{CC:()=>s,H$:()=>u,Mt:()=>r,dp:()=>d,p9:()=>c});var n=i(844974),l=i(339363),a=i(116485);let r=(e,t,i,l,r,o,s=a.k7)=>{let d=(0,n.qn)(s)?JSON.parse((0,n.qn)(s)):[];if(!d[0]||d[0].path!==e){let a=[{path:e,ts:Date.now(),pin_id:i||0,first_pin_image_signature:t||"",first_pin_id:i||"",image_info:l||"",pin_description:r||"",is_shared:!!o,pin_invite_code:o}];(0,n.Nh)(s,JSON.stringify(a.concat(d)))}},o=()=>{let e;let t=(0,l.qn)(a.KH);if(!t)return[];try{e=JSON.parse(t)}catch(t){e=[]}return e},s=({path:e,image:t,dominant_color:i,pin_description:n,pin_id:r})=>{let s=o();s[0]&&s[0].path===e||(0,l.Nh)(a.KH,JSON.stringify([{path:e,image:t,pin_description:n||"",dominant_color:i||"",pin_id:r||""}].concat(s)))};function d(e,t,i,n,l,o){r(e,t,i,n,l,o,a.zR)}let u=(e,t,i,n,l)=>{r(e,t,i,n,null!=l?l:"","",a.dy)};function c(e,t,i,n,l){r(e,t,i,n,l,"",a.QR)}},885149:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c,x:()=>u});var n=i(667294),l=i(867820),a=i(785893);let r=(0,n.createContext)(()=>{}),o=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="hidden")},s=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="unset")},d=()=>(0,n.useEffect)(()=>s,[]),u=({children:e})=>{let[t,i]=(0,n.useState)(null);d();let u=(0,n.useCallback)(e=>{(0,l.My)("dweb.unauth.context_menu.open_menu"),o(),i(e)},[]),c=!!t;return(0,n.useEffect)(()=>{let e=()=>{i(null),s(),(0,l.My)("dweb.unauth.context_menu.click_away")};return c&&document.addEventListener("click",e),()=>{c&&document.removeEventListener("click",e)}},[c]),(0,a.jsx)(r.Provider,{value:u,children:(0,a.jsxs)(n.Fragment,{children:[e,t]})})},c=()=>(0,n.useContext)(r)},364034:(e,t,i)=>{"use strict";i.d(t,{$:()=>o,Z:()=>u});var n=i(667294),l=i(844974);let a=e=>{if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},r=new Set,o=2,s=e=>{var t;return null!==(t=null==e?void 0:e.pins)&&void 0!==t?t:[]},d=e=>e.length?{pins:e}:null,u=()=>{let[e,t]=function(e){let t=(0,n.useCallback)(t=>{let i=i=>{i===e&&t()};return r.add(i),()=>{r.delete(i)}},[e]),i=(0,n.useSyncExternalStore)(t,()=>(0,l.qn)(e),()=>null),o=(0,n.useCallback)(t=>{null===t?(0,l.L_)(e):(0,l.Nh)(e,JSON.stringify(t)),r.forEach(t=>t(e))},[e]);return(0,n.useMemo)(()=>[a(i),o],[i,o])}("unauthSavedPins"),i=s(e),u=e=>t(d(e)),c=()=>i.length<o;return{pins:i,save:e=>{c()&&u(i.filter(({id:t})=>t!==e.id).concat([e]))},unsave:e=>u(i.filter(({id:t})=>t!==e)),isSaved:e=>i.some(({id:t})=>t===e),clear:()=>u([]),canSaveMore:c}}},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:()=>h,gv:()=>r,hg:()=>u,is:()=>_,jP:()=>m,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},_=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.'),m=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.'),h=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.')},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:()=>h,L7:()=>n,Qc:()=>l,Tt:()=>f,UF:()=>d,UV:()=>r,W1:()=>a,Ws:()=>p,ZW:()=>s,cK:()=>g,cy:()=>m,o4:()=>_,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",_="InterestPicker",m="LoadingStep",h="AppInstall",g={NUX_GENDER_STEP_NAME:p,NUX_INTEREST_PICKER_STEP_NAME:_,NUX_LOADING_STEP_NAME:m,NUX_APP_INSTALL_STEP_NAME:h},f=2500},327212:(e,t,i)=>{"use strict";i.d(t,{Z:()=>S});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=`
15
+ @keyframes baseEduToastIconScale {
16
+ 0% {
17
+ transform: scale(0)
18
+ }
19
+ 30% {
20
+ transform: scale(1.2);
21
+ }
22
+ 50% {
23
+ transform: scale(1);
24
+ }
25
+ }
26
+ `;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 _=i(759929);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 h="cubicBezier(0.25, 0.1, 0.25, 1)",g="encourageToastIconContainer",f="encourageToastIconRadiateBg",y="encourageToastIconRadiateRing",v={targets:`#${g}`,duration:300,scale:1.4,easing:h},x={targets:`#${g}`,duration:300,scale:1,easing:h,endDelay:1e3},b={targets:`#${g}`,duration:300,scale:.42,easing:h},P={targets:`#${f}`,duration:400,opacity:0,scale:1.6,easing:h},A={targets:`#${y}`,duration:650,opacity:0,scale:2,easing:h};class k extends n.PureComponent{constructor(...e){super(...e),m(this,"delayTimer",null),m(this,"requestAnimationFrameId",null),m(this,"playAnimation",()=>{this.requestAnimationFrameId=window.requestAnimationFrame(()=>{(0,l.Z)(P),(0,l.Z)(A),(0,l.Z)(v).finished.then(()=>{(0,l.Z)(x).finished.then(()=>{l.Z.set(`#${g}`,{transformOrigin:"top right"}),(0,l.Z)(b)})})})}),m(this,"getHeaderText",()=>{let{text:e}=this.props;return Array.isArray(e)?e[0]:e}),m(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})),m(this,"getSubHeaderText",()=>{let{text:e}=this.props;return e instanceof Array&&e.length>1&&e[1]?e[1]:""}),m(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:f,width:68,height:68,position:"absolute",rounding:"circle",dangerouslySetInlineStyle:{__style:{left:"0px",top:"0px",transform:"scale(0)"}}}),(0,u.jsx)(a.xu,{id:y,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 S(e){let{duration:t,onHide:i}=e,l=(0,r.ZP)(),[d,c]=(0,n.useState)(!1),[p,m]=(0,n.useState)(!1),h=(0,n.useRef)(),g=()=>{c(!0),h.current=setTimeout(i,200)},f=()=>{h.current&&clearTimeout(h.current)},y=()=>{h.current=setTimeout(g,t||_.w)};(0,s.Z)(()=>(setTimeout(()=>m(!0),100),y(),f));let v=(0,u.jsx)(k,{...e,i18n:l});return e.href&&(v=(0,u.jsx)(a.rU,{href:e.href,onClick:g,rounding:"pill",tapStyle:"none",children:v})),(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:_.k,children:v})})})}},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)}}}},256588:(e,t,i)=>{"use strict";i.d(t,{C:()=>s,LAW_CONFIGURATION:()=>d,Z:()=>u});var n=i(883119),l=i(357527),a=i(898781),r=i(767546),o=i(785893);let s=["DMCA","Trademark","GDPR"],d={test:{LAW:"test",DECIDER_KEY:"legal_webapp_takedown_form_test",COUNTRY_CODES:["US"],API:"/v3/legal/takedowns/test/",COMPLAINTS_OFFICE:!0,RESTRICT_MULTIPLE_LAWS:!1,ALLOW_ANON_SUBMISSION:!1},netzdg:{LAW:"netzdg",DECIDER_KEY:"legal_webapp_takedown_form_netzdg",COUNTRY_CODES:["DE"],API:"/v3/legal/takedowns/netzdg/",COMPLAINTS_OFFICE:!0,RESTRICT_MULTIPLE_LAWS:!1,ALLOW_ANON_SUBMISSION:!1},turkey:{LAW:"turkey",DECIDER_KEY:"legal_webapp_takedown_form_turkey",COUNTRY_CODES:["TR"],API:"/v3/legal/takedowns/turkey/",COMPLAINTS_OFFICE:!1,RESTRICT_MULTIPLE_LAWS:!0,ALLOW_ANON_SUBMISSION:!1},koplg:{LAW:"koplg",DECIDER_KEY:"legal_webapp_takedown_form_koplg",COUNTRY_CODES:["AT"],API:"/v3/legal/takedowns/koplg/",COMPLAINTS_OFFICE:!0,RESTRICT_MULTIPLE_LAWS:!1,ALLOW_ANON_SUBMISSION:!1},loi_fr:{LAW:"loi_fr",DECIDER_KEY:"legal_webapp_takedown_form_fr",COUNTRY_CODES:["FR"],API:"/v3/legal/takedowns/fr_dsa/",COMPLAINTS_OFFICE:!1,RESTRICT_MULTIPLE_LAWS:!0,ALLOW_ANON_SUBMISSION:!1},dsa:{LAW:"dsa",DECIDER_KEY:"legal_webapp_takedown_form_dsa",EXPERIMENT_KEY:"legal_web_dsa_form",COUNTRY_CODES:l.Z.filter(e=>"GB"!==e&&"CH"!==e),API:"/v3/legal/takedowns/dsa/",COMPLAINTS_OFFICE:!1,RESTRICT_MULTIPLE_LAWS:!0,ALLOW_ANON_SUBMISSION:!0}};function u(e,t){let i=(0,a.ZP)(),l={test:{header:"Test Header",subHeader:"Test SubHeader",laws:[{name:"Test Law A",label:"Test Law A"},{name:"Test Law B",label:"Test Law B"}]},netzdg:{header:i._('NetzDG Complaint Form', 'Takedown.NetzDG.FormTitle', 'The title of the form'),subHeader:i._('Use this form to identify content that violates German laws that are subject to the Netzwerkdurchsetzungsgesetz (NetzDG). Please fill out the information below with as much detail as possible to allow us to evaluate your complaint.', 'Takedown.NetzDG.FormDescription', 'Provides a description of what the form is used for'),laws:[{name:"Dissemination of propaganda material of unconstitutional organizations (Section 86 StGB)",label:i._('Dissemination of propaganda material of unconstitutional organizations (Section 86 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Using symbols of unconstitutional organizations (Section 86a StGB)",label:i._('Using symbols of unconstitutional organizations (Section 86a StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Preparation of a serious violent offense endangering the state (Section 89a StGB)",label:i._('Preparation of a serious violent offense endangering the state (Section 89a StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Encouraging the commission of a serious violent offense endangering the state (Section 91 StGB)",label:i._('Encouraging the commission of a serious violent offense endangering the state (Section 91 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Treasonous forgery (Section 100a StGB)",label:i._('Treasonous forgery (Section 100a StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Public incitement to crime (Section 111 StGB)",label:i._('Public incitement to crime (Section 111 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Breach of the public peace by threatening to commit offenses (Section 126 StGB)",label:i._('Breach of the public peace by threatening to commit offenses (Section 126 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Forming criminal organizations (Section 129 StGB)",label:i._('Forming criminal organizations (Section 129 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Forming terrorist organizations (Section 129a StGB)",label:i._('Forming terrorist organizations (Section 129a StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Criminal and terrorist organizations abroad; extended confiscation and deprivation (Section 129b StGB)",label:i._('Criminal and terrorist organizations abroad; extended confiscation and deprivation (Section 129b StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Incitement to hatred (Section 130 StGB)",label:i._('Incitement to hatred (Section 130 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Dissemination of depictions of violence (Section 131 StGB)",label:i._('Dissemination of depictions of violence (Section 131 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Rewarding and approving of criminal offenses (Section 140 StGB)",label:i._('Rewarding and approving of criminal offenses (Section 140 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Insulting denominations, religious communities and ideological associations (Paragraph 166 StGB)",label:i._('Insulting denominations, religious communities and ideological associations (Paragraph 166 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Making available child pornography by broadcasting, media services, or telecommunication services (Section 184b/184d StGB)",label:i._('Making available child pornography by broadcasting, media services, or telecommunication services (Section 184b/184d StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Insult (Section 185 StGB)",label:i._('Insult (Section 185 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Defamation (Section 186 StGB)",label:i._('Defamation (Section 186 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Intentional Defamation (Section 187 StGB)",label:i._('Intentional Defamation (Section 187 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Denigration of the memory of the deceased (Paragraph 189 StGB)",label:i._('Denigration of the memory of the deceased (Paragraph 189 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Violation of intimate privacy by taking photographs (Section 201a StGB)",label:i._('Violation of intimate privacy by taking photographs (Section 201a StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Threatening the commission of a felony (Section 241 StGB)",label:i._('Threatening the commission of a felony (Section 241 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')},{name:"Forgery of data intended to provide proof (Section 269 StGB)",label:i._('Forgery of data intended to provide proof (Section 269 StGB)', 'Takedown.NetzDG.Law', 'These are German laws which a user can report a pin for takedown')}]},turkey:{header:(0,o.jsx)(n.xu,{"data-test-id":"turkish-law-complaint-header",children:i._('Turkish Internet Law Complaint Form', 'Takedown.Turkey.FormSubHeader', 'The title of the form')}),subHeader:i._('Use this form to identify content that violates Turkish laws that are subject to the Turkish Internet Law. Please fill out the information below with as much detail as possible to allow us to evaluate your complaint.', 'Takedown.Turkey.FormSubheader', 'The sub-title of the form'),laws:[{label:i._('Personal rights violation', 'Takedown.Turkey.Law.Personal', 'These are laws which a user can report a pin for takedown'),name:"Personal rights violation"},{label:i._('Privacy rights violation', 'Takedown.Turkey.Law.Privacy', 'These are laws which a user can report a pin for takedown'),name:"Privacy rights violation"}]},koplg:{header:i._('Austria KoPl-G Form', 'AustriaKoPl-G.FormTitle', 'The title of the form'),subHeader:i._('Use this form to identify content that violates Austrian laws that are subject to the Kommunikationsplattformen-Gesetz (KoPl-G). Please fill out the information below with as much detail as possible to allow us to evaluate your complaint.', 'AustriaKoPl-G.FormDescription', 'Provides a description of what the form is used for'),laws:[{label:"N\xf6tigung",name:"N\xf6tigung"},{label:"Gef\xe4hrliche Drohung",name:"Gef\xe4hrliche Drohung"},{label:"Beharrliche Verfolgung",name:"Beharrliche Verfolgung"},{label:"Fortdauernde Bel\xe4stigung im Wege einer Telekommunikation",name:"Fortdauernde Bel\xe4stigung im Wege einer Telekommunikation"},{label:"Vorwurf einer schon abgetanen gerichtlich strafbaren Handlung",name:"Vorwurf einer schon abgetanen gerichtlich strafbaren Handlung"},{label:"Beleidigung",name:"Beleidigung"},{label:"Unbefugte Bildaufnahmen",name:"Unbefugte Bildaufnahmen"},{label:"Erpressung",name:"Erpressung"},{label:"Herabw\xfcrdigung religi\xf6ser Lehren",name:"Herabw\xfcrdigung religi\xf6ser Lehren"},{label:"Pornographische Darstellungen Minderj\xe4hriger",name:"Pornographische Darstellungen Minderj\xe4hriger"},{label:"Anbahnung von Sexualkontakten zu Unm\xfcndigen",name:"Anbahnung von Sexualkontakten zu Unm\xfcndigen"},{label:"Terroristische Vereinigung",name:"Terroristische Vereinigung"},{label:"Anleitung zur Begehung einer terroristischen Straftat",name:"Anleitung zur Begehung einer terroristischen Straftat"},{label:"Anleitung zu terroristischen Straftaten und Guthei\xdfung terroristischer Straftaten",name:"Anleitung zu terroristischen Straftaten und Guthei\xdfung terroristischer Straftaten"},{label:"Verhetzung",name:"Verhetzung"},{label:"Nazionalsozialistische Propaganga",name:"Nazionalsozialistische Propaganga"}]},loi_fr:{header:i._('Bill confirming respect for the principles of the Republic Form', 'French_DSA.FormTitle', 'The title of the form'),subHeader:i._('Use this form to identify content that violates French laws that are subject to the bill confirming respect for the principles of the Republic. Please fill out the information below with as much detail as possible to allow us to evaluate your complaint.', 'French_DSA.FormDescription', 'Provides a description of what the form is used for'),laws:[{name:"Apology of/sympathy to crimes",label:i._('Apology of/sympathy to crimes', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Provocation to discrimination, hatred or violence on the ground of origin, ethnic group, nation, race or religion, or sex, sexual orientation or gender identity or their disability",label:i._('Provocation to discrimination, hatred or violence on the ground of origin, ethnic group, nation, race or religion, or sex, sexual orientation or gender identity or their disability', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Challenging the existence of crimes against humanity, denial, minimization or trivialization of crimes of genocide, crimes of enslavement or war crimes",label:i._('Challenging the existence of crimes against humanity, denial, minimization or trivialization of crimes of genocide, crimes of enslavement or war crimes', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Sexual harassment",label:i._('Sexual harassment', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Child pornography",label:i._('Child pornography', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Human trafficking",label:i._('Human trafficking', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Procuring/pimping",label:i._('Procuring/pimping', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Direct provocation or public apology for acts of terrorism",label:i._('Direct provocation or public apology for acts of terrorism', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Insult based on origin, ethnic group, nation, race or religion",label:i._('Insult based on origin, ethnic group, nation, race or religion', 'French_DSA.Law', 'A French law which a user can report content for takedown')},{name:"Insult based on gender, sexual orientation, gender identify or disability",label:i._('Insult based on gender, sexual orientation, gender identify or disability', 'French_DSA.Law', 'A French law which a user can report content for takedown')}]},dsa:{header:i._('European Union Illegal Content Reporting Form', 'DSA.FormTitle', 'The title of the form'),subHeader:i._('Use this form to report content you believe to be illegal in the European Union. Please fill out the form with as much detail as possible to allow us to efficiently evaluate your report.', 'DSA.FormDescription', 'The sub-title of the form'),laws:[{name:"Promoting or condoning terrorist acts",label:i._('Promoting or condoning terrorist acts', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Incitement to or apology of terrorist acts', 'DSA.Law', 'Example of this law')},{name:"Threatening commission of or condoning serious criminal offense",label:i._('Threatening commission of or condoning serious criminal offense', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Threats to commit serious criminal offense against individuals or their condemnation', 'DSA.Law', 'Example of this law')},{name:"Child sexual abuse material (CSAM)",label:i._('Child sexual abuse material (CSAM)', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Dissemination or\xA0 procurement of child pornographic content', 'DSA.Law', 'Example of this law')},{name:"Hate speech, hateful acts and discrimination",label:i._('Hate speech, hateful acts and discrimination', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Incitement to hatred, violence or discrimination against protected and vulnerable groups', 'DSA.Law', 'Example of this law')},{name:"Graphic Violence",label:i._('Graphic Violence', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Gore/graphic wounds and mutilation, beatings, excessive blood, corpses', 'DSA.Law', 'Example of this law')},{name:"Denying or condoning crimes against humanity",label:i._('Denying or condoning crimes against humanity', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Denial of genocides, war crimes and other crimes against humanity', 'DSA.Law', 'Example of this law')},{name:"Illegal goods and services",label:i._('Illegal goods and services', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Illegal sale of drugs, live animals or the illegal offer of services', 'DSA.Law', 'Example of this law')},{name:"Harassment",label:i._('Harassment', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Online stalking or sexual harassment', 'DSA.Law', 'Example of this law')},{name:"Harmful to minors",label:i._('Harmful to minors', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Incitement of minors to engage in actions which put them in physical danger or to intentionally harm themselves', 'DSA.Law', 'Example of this law')},{name:"Nudity or pornography",label:i._('Nudity or pornography', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Dissemination of pornographic content', 'DSA.Law', 'Example of this law')},{name:"Disinformation",label:i._('Disinformation', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Deliberate disinformation of individuals or groups of people', 'DSA.Law', 'Example of this law')},{name:"Affront to personal honor",label:i._('Affront to personal honor', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Insults or defamation', 'DSA.Law', 'Example of this law')},{name:"Violation of privacy",label:i._('Violation of privacy', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('E.g., Non-consensual sharing of private images', 'DSA.Law', 'Example of this law')},{name:"DMCA",label:i._('Copyright infringement', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:(0,o.jsxs)(n.xv,{size:"100",inline:!0,color:"warning",children:[" ",i._('Fill out the', 'Dsa.Law.DMCA', 'Subtext for filling out the DMCA form'),(0,o.jsxs)(n.rU,{href:"https://www.pinterest.com/about/copyright/dmca-pin/",underline:"always",display:"inline",children:[" ",i._(' Copyright Complaint form here', 'DSA.Law', 'Hyperlink to copyright form')]})]})},{name:"Trademark",label:i._('Trademark infringement', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:(0,o.jsxs)(n.xv,{size:"100",inline:!0,color:"warning",children:[" ",i._('Fill out the ', 'Dsa.Law.Trademark', 'Subtext for filling out the trademark form'),(0,o.jsxs)(n.rU,{href:"https://www.pinterest.com/about/trademark/",underline:"always",display:"inline",children:[" ",i._('Trademark Complaint form here', 'DSA.Law', 'Hyperlink to trademark form')]})]})},{name:"GDPR",label:i._('Contains my personal data', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:(0,o.jsxs)(n.xv,{size:"100",inline:!0,color:"warning",children:[" ",i._('You can delete your data by going to your settings or by contacting ', 'Dsa.Law.GDPR', 'Subtext for removing your personal data'),(0,o.jsxs)(n.rU,{href:"mailto:privacy-support@pinterest.com",underline:"always",display:"inline",children:[" ",i._('privacy-support@pinterest.com', 'DSA.Law', 'Hyperlink to privacy support email')]})]})},{name:"Other illegal behavior",label:i._('Other illegal behavior', 'DSA.Law', 'An EU law which a user can report content for takedown'),subtext:i._('Report behavior that does not match the above categories here', 'DSA.Law', 'Example of this law')}]}},s={header:i._('Complaint Information', 'AustriaKoPl-G.ComplaintInformation.Header', 'Complaint Information header'),reportedUrl:i._('Identify the URL of the content', 'AustriaKoPl-G.ContentUrlField', 'The url of the content the user wants to report'),dsaReportedUrl:i._('What is the URL of the content you want to report?', 'Dsa.ContentUrlField', 'The url of the content the user wants to report for DSA'),reportedUrlHelperText:i._('Please provide the full URL of the content you are complaining about. 1 URL per form.', 'AustriaKoPl-G.ComplaintInformation.ContentUrl.HelperText', 'Complaint Information url field helper text'),contentPortionHeader:i._('What portion(s) of the content are you reporting?', 'AustriaKoPl-G.ContentReporting.Header', 'Header describing which part of the content the user is reporting'),dsaContentPortionHeader:i._('What portion of the content are you reporting?', 'DSA.ContentReporting.Header', 'Header describing which part of the content the user is reporting for DSA'),lawsViolatedLabel:i._('Which law(s) do you believe the content violates?', 'AustriaKoPl-G.ContentReporting.Header', 'Header describing which part of the content the user is reporting'),dsaLawsViolatedLabel:i._('Why do you think this content is illegal under local law?', 'DSA.ContentReporting.Header', 'Header describing which part of the content the user is reporting for DSA'),dsaLawsViolatedSubtext:i._('Please carefully consider the option you select, so we can address your report as efficiently as possible.', 'DSA.ContentReporting.Subtext', 'Subtext asking to carefully choose the law being violated for DSA'),otherLabel:i._('Enter other portion of content', 'AustriaKoPl-G.ContentPortion.OtherValue', 'Field to describe other portion of the pin they are reporting'),dsaOtherLabel:i._('Please describe what other portion of the content you are reporting', 'DSA.ContentPortion.OtherValue', 'Field to describe other portion of the content they are reporting for DSA'),additionalInformationLabel:i._('Additional information on illegality of content (Optional)', 'AustriaKoPl-G.ContentReporting.Header', 'Header describing which part of the content the user is reporting'),additionalInformationPlaceholder:i._('250 character limit...', 'AustriaKoPl-G.ContentReporting.Header', 'Header describing which part of the content the user is reporting'),dsaAdditionalInformationLabel:i._('Please provide additional information about why you think the content is illegal. You may cite or link to relevant statutes, if you like. (Optional)', 'DSA.ContentReporting.Header', 'Label for the additional details textbox of the DSA form'),dsaAdditionalInformationPlaceholder:i._('Provide additional details here', 'DSA.ContentReporting.Placeholder', 'Placeholder for the additional details textbox of the DSA form'),countryHeader:i._('Under what country\u2019s laws do you believe this content is illegal?', 'DSA.Country.Header', 'Header describing the country in which the content is illegal'),otherViolationLabel:i._('Report behavior that does not match the above categories here', 'DSA.OtherViolation.Field', 'Field to describe other violation reason of the reported content'),attachmentLabel:i._('If you have additional documents that could help us understand your report (e.g., court order), you can attach it here. Please upload PDFs only, with a maximum file size of 5 MB.', 'DSA.OtherViolation.Field', 'Field for uplodaing attachments'),moduleCollapseLabel:i._('Collapse the module', 'DSA.CollapseModule', 'Text for collapsing items module'),moduleExpandLabel:i._('Expand the module', 'DSA.ExpandModule', 'Text for expanding items module'),noCountryResultText:i._('No countries found', 'DSA.NoCountries', 'Text for country combo box no countries found error'),clearButtonLabel:i._('Clear search field', 'DSA.ClearInput', 'Accessibility text for clearing combobox field'),invalidUrlText:i._('Invalid URL', 'DSA.Invalid Url', 'Accessibility text for invalid pinterest urls'),selectedLawErrorText:i._('Please fill out the appropriate form for this complaint', 'DSA.InvalidLaw', 'Accessibility text for redirecting to the appropriate place for this law'),multiselectPlaceholder:i._('Select an option', 'DSA.Multiselect.Placeholder', 'Header prompting user to select an option')},u={contactHeader:i._('Contact Information', 'TakedownsContactInformation.OwnerInformationHeading', 'Heading with the word Owner Information'),companyCheckbox:i._('Do you represent a complaints office? (Yes)', 'TakedownsContactInformation.ComplaintsOfficeValidation', 'Checkbox to determine if represents a complaints office'),company:i._('Complaints office', 'TakedownsContactInformation.ComplaintsOfficeNameField', 'The name of the organization or office submitting the complaint'),trustedFlaggerCheckbox:i._('Are you a trusted flagger? (Yes)', 'TakedownsContactInformation.TrustedFlagger', 'Checkbox to determine if reporter is a trusted flagger'),trustedFlaggerSubtext:i._('Trusted flaggers are designated parties, usually associated with NGOs, government entities, or private bodies', 'TakedownsContactInformation.TrustedFlaggerSubtext', 'Defines a trusted flagger'),anonSubmissionCheckbox:i._('Do you wish to remain anonymous? (Yes)', 'TakedownsContactInformation.AnonSubmission', 'Checkbox to determine if reporter wishes to remain anonymous'),anonSubmissionSubtext:i._('If you select this box, you will not receive any additional communications about your report, including the final outcome of your report.', 'TakedownsContactInformation.AnonSubmissionSubtext', 'Anon submission disclaimer'),organization:i._('Organization Name', 'TakedownsContactInformation.OrganizationNameField', 'The name of the organization or office submitting the complaint'),name:i._('Name of Reporter', 'TakedownsContactInformation.NameField', 'User\'s name'),email:i._('Email Address', 'TakedownsContactInformation.EmailField', 'User\'s email address'),phone:i._('Phone Number', 'TakedownsContactInformation.PhoneField', 'Users phone number'),address:i._('Full Address', 'TakedownsContactInformation.AddressField', 'User address')},c={termsHeading:i._('By checking the following boxes, I confirm:', 'TakedownsForm.LabelForCheckboxes', 'Label describing the checkboxes'),isAccurate:i._('The information in this application is accurate.', 'TakedownsContactInformation.isAccurateBoolean', 'Confirmation checkbox that information in form is accurate'),consequences:i._('I understand that if I use this form to submit fraudulent or abusive complaints, I might be subject to claims of liability by Pinterest or other third parties.', 'temp', 'temp'),possibleSuspension:i._('I understand that frequently submitting reports that are fraudulent or abusive may lead Pinterest to suspend the processing of my reports.', 'TakedownsContactInformation.possibleSuspension', 'Confirmation checkbox that fraudulent reports may lead to suspension'),terms:(0,o.jsx)(n.xv,{children:i._('I have a good faith belief that the content violates the law(s) identified.', 'TakedownsContactInformation.termsBoolean', 'Checkbox to confirm they are owner of items they are claiming')}),dsaIsAccurate:i._('I have a good faith belief that the information and allegations contained in this report are accurate and complete.', 'TakedownsContactInformation.DSA.termsBoolean', 'Checkbox to confirm that the information is accurate and complete'),submitText:i._('Submit', 'TakedownsForm.SubmitApplication', 'Submit application form'),cancelText:i._('Cancel', 'TakedownsForm.CancelApplication', 'Cancel application form'),errorCallout:i._('Please fill out all required fields before submitting the application', 'CCP.AppValidationCallout', 'Call out that lets user know there\'s a validation error ')},p={pin_image:i._('Pin Image / Video', 'TakedownsForm.ContentPortion.Image', 'Checkbox content portion for Image'),pin_description:i._('Pin Description', 'TakedownsForm.ContentPortion.Description', 'Checkbox content portion for Description'),pin_notes:i._('Pin Comments / Notes', 'TakedownsForm.ContentPortion.Notes', 'Checkbox content portion for Notes'),profile_image:i._('Profile Image', 'TakedownsForm.ContentPortion.Image', 'Checkbox content portion for Image'),profile_name:i._('Profile Name', 'TakedownsForm.ContentPortion.Name', 'Checkbox content portion for Name'),profile_description:i._('Profile Description', 'TakedownsForm.ContentPortion.Description', 'Checkbox content portion for Description'),board_name:i._('Board Name', 'TakedownsForm.ContentPortion.Name', 'Checkbox content portion for Name'),board_description:i._('Board Description', 'TakedownsForm.ContentPortion.Description', 'Checkbox content portion for Description'),other:i._('Other...', 'TakedownsForm.ContentPortion.Other', 'Checkbox content portion for Other')},_=(0,r.Z)({takedown:l[e],contactInformation:u,complaints:s,terms:c,reportedPortion:p},t);return{configuration:d[e],translations:_}}},239682:(e,t,i)=>{"use strict";function n(e,t,i){return{privacy_filter:t?"secret":"public",sort:i||"last_pinned_to",field_set_key:"profile_grid_item",username:e}}i.d(t,{Z:()=>n})},59644:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=(e,t)=>`${e}:${t||""}`},240265:(e,t,i)=>{"use strict";i.d(t,{O:()=>o,Q:()=>s});var n=i(414327),l=i(59644),a=i(956800);let r=["alphabetical","last_pinned_to","oldest","newest","group_boards_at_top","custom"],o={name:"BoardsResource",key:"boardsResource",options:({boardOrder:e,filterStories:t,mixPublicSecret:i,username:n},l)=>({privacy_filter:"all",sort:e||"last_pinned_to",field_set_key:"profile_grid_item",filter_stories:t,username:n,page_size:25,group_by:i?"mix_public_private":"visibility",include_archived:!0,redux_normalize_feed:!0,...l?{orbac_subject_id:l}:Object.freeze({})})},s=e=>r.reduce((t,i)=>{let r=[(0,a.N8)("profileBoards",(0,l.Z)(e,i))];return[!0,!1].forEach(t=>{[!0,!1].forEach(l=>{r.push((0,n.jB)(o.name,o.options({username:e,boardOrder:i,mixPublicSecret:t,filterStories:l})))})}),t.concat(r)},[])},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(""),_=(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:_})}),(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:_})}),(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})})]})]})}},254176:(e,t,i)=>{"use strict";i.d(t,{Br:()=>_,Cr:()=>w,K8:()=>v,L1:()=>z,Tq:()=>f,YQ:()=>R,YV:()=>S,ZP:()=>D,aX:()=>E,eo:()=>h,fJ:()=>O,md:()=>m,oG:()=>g,oL:()=>T,of:()=>x,xH:()=>y,xQ:()=>b,xR:()=>j,xk:()=>A,yT:()=>p,zS:()=>L});var n=i(214494),l=i(27255),a=i(186656),r=i(248327),o=i(414327),s=i(239682),d=i(240265),u=i(956800),c=i(492583);function p(e){return{type:"BOARD_UPDATE_COMPLETE",payload:{board:e}}}function _(e){return{type:"BOARD_PIN_COUNT_CHANGED",payload:e}}function m(e,t){return{type:"BOARD_FOLLOW",payload:{boardId:e,value:t}}}function h({viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:n}){return{type:"BOARD_DELETE",payload:{viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:n}}}let g=(e,t)=>i=>i((0,r.U)("BoardResource",{options:{board_id:e,field_set_key:t}}));function f(e,t,i){return(0,r.U)("BoardResource",{options:{board_id:e,field_set_key:t,...i?{orbac_subject_id:i}:{}}})}function y(e,t,i){return n=>(0,a.Z)({url:`/v3/boards/${e}/merge/${t}/`,method:"POST",data:i?{orbac_subject_id:i}:{}}).then(()=>Promise.all([n(h({boardId:e})),n(f(t,"pin_count")),n((0,u.N8)(c.Z.BOARD_SECTIONS,t))]))}function v(e){return t=>{e&&(0,d.Q)(e).forEach(e=>{t(e)})}}let x=e=>({type:"BOARD_DISMISS_SENSITIVITY_SCREEN",payload:{boardId:e}}),b=e=>g(e,"pin_count");function P(e,t){return{type:"BOARD_ARCHIVE",payload:{boardId:e,username:t}}}function A(e,t){return i=>(i(P(e)),n.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callUpdate())}function k(e){return{type:"BOARD_UNARCHIVE",payload:{boardId:e}}}function S(e,t){return i=>(i(k(e)),n.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callDelete())}let w=(e,t)=>({type:"BOARD_COVER_IMAGE_UPDATED",payload:{boardId:e,coverPin:t}}),D=e=>({type:"BOARD_DISABLE_MORE_IDEAS_BADGING",payload:{boardId:e}});function E(e,t,i){let a={name:e,privacy:l.Z.BoardPrivacy.PUBLIC,username:t,...i?{orbac_subject_id:i}:Object.freeze({})};return e=>n.Z.create("BoardResource",a).callCreate().then(i=>{let n=i.resource_response.data;return e(t&&(0,o.jB)("BoardsResource",(0,s.Z)(t,!1))),n})}function T(e={},t,i){return{type:"BOARD_CREATE_COMPLETE",payload:{options:e,board:t},error:i}}let C=(e,t)=>({type:"BOARD_INVITE_DENIED_BY_VIEWER",payload:{boardId:e,userId:t}}),I=(e,t,i)=>({type:"BOARD_COLLABORATOR_DELETE",payload:{boardId:e,userId:t,viewingUser:i}}),F=(e,t,i,n)=>({type:"BOARD_COLLABORATOR_ADD",payload:{boardId:e,viewingUser:t,status:i,collaboratingUsers:n}}),j=(e,t,i)=>async l=>{l(C(e,t));let a=await n.Z.create("BoardInviteResource",{board_id:e,invited_user_id:t}).callDelete();return a.resource_response.error||i({event_type:29,object_id_str:e}),a},R=(e,t,i,l,a,r)=>async o=>{var s,d;let u="accepted"===t?"BoardCollaboratorResource":"BoardInviteResource";o(I(e,null!==(s=null==l?void 0:l.id)&&void 0!==s?s:"",i));try{let i=await n.Z.create(u,{board_id:e,field_set_key:"boardEdit",invited_user_id:null!==(d=null==l?void 0:l.id)&&void 0!==d?d:"",...r?{orbac_subject_id:r}:{}}).callDelete();i.resource_response.error||a({event_type:"accepted"===t?25:29,object_id_str:e})}catch(n){o(F(e,i,t,[l]))}},z=(e,t,i,l)=>a=>{let r=n.Z.create("BoardResource",{board_id:i}).callDelete();return a(h({viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:l})),r},L=(e,t)=>i=>n.Z.create("BoardArchiveResource",{boardId:e}).callUpdate().then(n=>(i((0,u.Qv)("archived-boards",[{id:e,type:"board"}])),i(P(e,t)),n)),O=(e,t)=>i=>n.Z.create("BoardArchiveResource",{boardId:e}).callDelete().then(n=>(i((0,u.Qv)(`profile-boards:${t}`,[{id:e,type:"board"}])),i(k(e)),n))},600147:(e,t,i)=>{"use strict";i.d(t,{DD:()=>c,lg:()=>p,Th:()=>m,YH:()=>s,wH:()=>o,IU:()=>_,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 _({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 m(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"}))},()=>{})}}},956800:(e,t,i)=>{"use strict";function n(e){return{type:"FEED_ITEM_REORDERED",payload:e}}function l(e,t){return{type:"FEED_INVALIDATE",payload:{feedType:e,feedId:t}}}i.d(t,{EX:()=>r,N8:()=>l,Qv:()=>a,_f:()=>n,vX:()=>o});let a=(e,t,i=Object.freeze({}))=>({type:"APPEND_FEED_ITEMS",payload:{id:e,options:i,items:t}});function r(e){return{type:"FEED_ITEMS_REMOVED",payload:e}}function o(e){return{type:"FEED_ITEMS_ADDED",payload:e}}},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})},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,_=p&&p.id;return t(s(l.id,r,_,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}}},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:_,showRepinConfirmation:m,showToast:h,section:g,trackingParams:f,isOneTapSave:y,viewType:v,historyPush:x,suggestedBoardIds:b,savePinId:P})=>(A,k)=>{var S,w,D,E,T,C,I,F,j;let{pins:R,session:z,feeds:L}=k(),O=R[e];t&&((null===(S=null!==(w=null==O?void 0:O.shopping_flags)&&void 0!==w?w:[])||void 0===S?void 0:S.length)>0||null!=O&&O.rich_summary&&(null===(D=null!==(E=null==O?void 0:null===(T=O.rich_summary)||void 0===T?void 0:T.products)&&void 0!==E?E:[])||void 0===D?void 0:D.length)>0)&&(L[`board-shop-saved-preview:${t}`]&&A((0,l.Qv)(`board-shop-saved-preview:${t}`,[O],{isPrepend:!0})),L[`board-shop-saved:${t}`]&&A((0,l.Qv)(`board-shop-saved:${t}`,[O],{isPrepend:!0})));let B=new a.Z({boardId:t,dispatch:A,i18n:o,isLegoSaveStyle:!0,isOneTapSave:y,isQuickSave:s,onSuccess:u,onUndo:c,originalPinId:p,pinId:O.id,section:g,showNewUserSavetoProfileAnimation:_,showRepinToasts:e=>m?m(e):h?h(e):void 0,trackingParams:f,userId:z.userId,viewType:v,historyPush:x,suggestedBoardIds:b,savePinId:P,pinData:{trackingParams:O.tracking_params,viewParameter:(0,r.A)({hasRichMetadata:!!O.rich_metadata,hasRichMetadataProducts:!!(null!==(C=O.rich_metadata)&&void 0!==C&&C.products),hasRichMetadataArticle:!!(null!==(I=O.rich_metadata)&&void 0!==I&&I.article),hasRichMetadataRecipe:!!(null!==(F=O.rich_metadata)&&void 0!==F&&F.recipe)}),pinnedToBoardId:null===(j=O.pinned_to_board)||void 0===j?void 0:j.id}});return(0,n.ib)({checkExperiment:i,isAuthMweb:z.isAuthenticated&&(z.isMobile||z.isTablet)}),B.processRepin(d)}},639952:(e,t,i)=>{"use strict";i.d(t,{Cp:()=>s,FK:()=>o,H5:()=>v,MI:()=>m,O0:()=>_,QZ:()=>r,W:()=>f,WF:()=>u,Wz:()=>x,a5:()=>c,dz:()=>g,e0:()=>p,e2:()=>a,iW:()=>y,n1:()=>l,rm:()=>d,xu:()=>h});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}}),_=()=>({type:"SET_OWN_PROFILE_PINS_REFRESH"}),m=e=>({type:"SHOW_BIZ_NUX_HOMEFEED_LOADER",payload:e}),h=e=>({type:"SET_VIEWED_IMAGE",payload:{viewedImageSignature:e}}),g=e=>({type:"SET_VIEWED_SHARED_PINS",payload:{pins:e}}),f=()=>({type:"DISMISS_UNAUTH_APP_UPSELL"}),y=e=>e?{type:"LOGGED_OUT_USER_INFO_FOUND",payload:e}:{type:"LOGGED_OUT_USER_INFO_NOT_FOUND"},v=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:()=>_,eR:()=>v,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()},_=(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)},m=e=>e>=200&&e<400,h=(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=h(r);t(e)}else i()}else i()},f=(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=()=>{m(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()})},y=e=>new Promise((t,i)=>{f(e,"pinimage",()=>{},e=>{t(e)},e=>{i(e)})}),v=e=>new Promise((t,i)=>{"string"==typeof e?e.startsWith("data")&&y(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}})},483025:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(819063);let l={AggregatedCommentResource:n.rm,AggregatedCommentFeedResource:n.LR,AggregatedCommentReplyResource:n.rm,AggregatedCommentReplyFeedResource:n.LR,AggregatedActivityFeedResource:n.LR,BestPinsFeedAltResource:n.LR,BoardArchiveResource:n.LR,BoardContentRecommendationResource:n.LR,BoardFeedResource:n.LR,BoardFollowingResource:n.LR,BoardInviteResource:n.sf,BoardInvitesResource:n.Ht,BoardlessPinsResource:n.LR,BoardPickerBoardsResource:{all_boards:n.LR,boards_shortlist:n.LR},BoardSectionEditResource:n._F,BoardSectionsRepinResource:n.LR,BoardSectionsResource:n.LR,BoardsFeedResource:n.LR,BoardResource:n.IY,BoardSectionResource:n._F,BoardSectionPinsResource:n.LR,BoardToolsFeedResource:n.LR,ContactRequestsResource:n.LR,ConversationsResource:n.LR,ConversationMessagesResource:n.dq,DidItCommentsResource:n.LR,DidItLikedByResource:n.Gn,DidItUserFeedResource:n.LR,HolidaySpotlightResource:n.LR,InterestFollowingResource:n.LR,InterestResource:n.cC,MoreIdeasTabsBoardsResource:n.LR,NewsHubResource:n.LR,NewsHubDetailsResource:n.LR,NewsHubSummaryResource:n.t6,NuxInterestsResource:n.LR,NuxTopicToCreatorsResource:n.Gn,PinResource:n.Cj,PinCatalogResource:n.LR,PinsFromBrandResource:n.LR,ReactionsResource:n.fE,RelatedArticlesResource:n.LR,RelatedInterestsResource:n.LR,RelatedModulesResource:n.LR,RelatedPinFeedResource:n.LR,RelatedProductFeedResource:n.LR,RelatedStreamResource:n.LR,RepinResource:n.Cj,BaseSearchResource:{results:n.LR},SearchResource:n.LR,SectionToolsFeedResource:n.LR,ShareSuggestionsTypeaheadResource:{items:n.LR},ShoppingFeedModularizedResource:n.LR,StoryFeedResource:n.LR,StoryPinTaggedProductsResource:n.LR,SuggestedCreatorFollowsResource:n.Gn,TodayArticleFeedResource:n.LR,IdeasHubTodayArticlesResource:n.LR,TodayArticleResource:n.iF,TodayTabInterestFeedResource:n.LR,TodayTabResource:n.LR,TopicFeedResource:n.LR,UnifiedCommentsResource:n.LR,UserActivityPinsResource:n.LR,UserFollowingResource:n.LR,UserRecentActivityResource:n.LR,UserHomefeedResource:n.LR,UserPinsResource:n.LR,UserSettingsResource:n.EA,UserStoryPinsFeedResource:n.LR,UserResource:n.EA,VideosFeedResource:n.LR,VisualLiveSearchResource:{results:n.LR},VisualLiveSearchProductFeedResource:n.LR,VisualSearchFlashlightUnifiedResource:n.LR,SeoTier1CandidateResource:n.LR},a=l},819063:(e,t,i)=>{"use strict";i.d(t,{Cj:()=>d,EA:()=>a,Gn:()=>S,Ht:()=>k,IY:()=>s,LR:()=>D,_F:()=>p,cC:()=>v,dq:()=>m,fE:()=>c,iF:()=>y,rm:()=>r,sN:()=>w,sf:()=>x,t6:()=>A});var n=i(782677);let l=Object.freeze({aggregatedComment:"aggregatedComments",article:"articles",board:"boards",boardsection:"boardsections",contactrequest:"contactrequests",conversation:"conversations",conversationMessage:"conversationMessages",inbox:"inbox",notification:"notifications",pin:"pins",reaction:"reactions",story:"stories",todayArticle:"todayArticles",topic:"topics",triedit:"triedits",user:"users",invite:"collaboratorinvite"}),a=new n.fK.Entity(l.user),r=new n.fK.Entity(l.aggregatedComment,{user:a,tagged_users:[a]}),o=new n.fK.Entity(l.article),s=new n.fK.Entity(l.board),d=new n.fK.Entity(l.pin),u=new n.fK.Entity(l.reaction),c=new n.fK.Array(u),p=new n.fK.Entity(l.boardsection),_=new n.fK.Entity(l.conversationMessage,{sender:a,users:[a],board:s,pin:d,user:a}),m=new n.fK.Array(_),h=new n.fK.Entity(l.contactrequest),g=new n.fK.Entity(l.story),f=new n.fK.Entity(l.triedit),y=new n.fK.Entity(l.todayArticle,{article_creator_user:a,content_pin:d,content_pin_official_user:a,video_pin:d}),v=new n.fK.Entity(l.topic,{},{processStrategy:e=>({...e,slug:e.slug?e.slug:e.url_name?e.url_name.includes(":")?e.url_name.split(":")[1]:e.url_name:""})}),x=new n.fK.Entity(l.invite,{invited_by_user:a,invited_user:a,board:s},{idAttribute:e=>`${e.board.id}:${e.invited_user.id}`}),b=e=>{switch(e.type){case"aggregatedcomment":return"aggregatedComment";case"conversationMessage":return"conversationMessage";case"explorearticle":return"article";case"news":return"notification";case"interest":case"klp_featured_data":return"topic";case"userdiditdata":return"triedit";case"board_section":return"boardsection";case"todayarticle":return"todayArticle";default:return e.type}},P=new n.fK.Union({user:a,board:s,invite:x,pin:d,topic:v,triedit:f},b),A=new n.fK.Entity(l.notification,{content_items:[{content_object:P}],header_icon_objects:[P]}),k=new n.fK.Array(x),S=new n.fK.Array(a),w=new n.fK.Array(s),D=new n.fK.Array({aggregatedComment:r,article:o,board:s,boardsection:p,contactrequest:h,conversationMessage:_,notification:A,pin:d,story:g,todayArticle:y,topic:v,triedit:f,user:a},b,e=>{switch(e.type){case"collaboratorinvite":return e.board.id;case"category":return"key";default:return"id"}});g.define({objects:D})},492583:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n={AGGREGATED_COMMENTS:"aggregatedComments",AGGREGATED_COMMENT_REPLIES:"aggregated-comment-replies",BOARDFEED:"boardfeed",BOARDLESS_PINS:"boardless-pins",BOARD_SECTIONS:"board-sections",BOARD_SECTION_PINS:"board-section-pins",STORY_PINS_FEED:"story-pins-feed",PROFILE_PINS_FEED:"profile-pins-feed",PROFILE_BOARDS:"profileBoards",SEARCH_PINS:"searchPins",STORY_PIN_DATA:"storyPinData",TODAY_ARTICLE_INTEREST_FEED:"todayArticleInterestFeed",TODAY_TAB:"todayTabFeed",UNIFIED_COMMENTS:"unified-comments",TRIED_IT_FEED:"trieditfeed"}},468760:(e,t,i)=>{"use strict";function n(){return"angled-pin"}i.d(t,{f:()=>n})},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},977734:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(214494),l=i(361115),a=i(723852),r=i(675752);function o({checkExperiment:e,history:t,i18n:i,logContextEvent:o,onSuccess:s,onUndo:d,originalPinId:u,pinId:c,trackingParams:p,disableRepinAnimation:_,showNewUserSavetoProfileAnimation:m,showRepinConfirmation:h,historyPush:g,savePinId:f}){return(y,v)=>{let{pins:x,session:b}=v(),{userId:P}=b,A=x[c],k=i._('Quick Saves', 'quickSave.boardName', 'Name of the auto-created board in quicksave experience.');return n.Z.create("BoardResource",{name:k,layout:"quick_saves",protected:!1,return_existing:!0,user_id:P}).callCreate().then(n=>{var v,x,P,k;let S=n.resource_response.data;(0,l.ib)({checkExperiment:e,isAuthMweb:b.isAuthenticated&&(b.isMobile||b.isTablet)});let w=new a.Z({boardId:S.id,dispatch:y,isQuickSave:!0,history:t,i18n:i,onSuccess:s,onUndo:d,originalPinId:u,pinId:c,section:void 0,showNewUserSavetoProfileAnimation:m,showRepinToasts:e=>h?h(e,_):void 0,trackingParams:p,userId:b.userId,historyPush:g,savePinId:f,pinData:{trackingParams:A?A.tracking_params:void 0,viewParameter:A?(0,r.A)({hasRichMetadata:!!A.rich_metadata,hasRichMetadataProducts:!!(null!==(v=A.rich_metadata)&&void 0!==v&&v.products),hasRichMetadataArticle:!!(null!==(x=A.rich_metadata)&&void 0!==x&&x.article),hasRichMetadataRecipe:!!(null!==(P=A.rich_metadata)&&void 0!==P&&P.recipe)}):void 0,pinnedToBoardId:A?null===(k=A.pinned_to_board)||void 0===k?void 0:k.id:void 0}});return w.processRepin(o)})}}},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")},678532:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});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),_=i(882801),m=i(785893);let h=void 0!==n?n:n=i(319461),g=({onTap:e,isOpen:t})=>{let i=(0,o.ZP)();return(0,m.jsx)(a.iP,{tapStyle:"compress",onTap:e,children:(0,m.jsxs)(a.xu,{display:"flex",alignItems:"center",justifyContent:"between",paddingY:5,dangerouslySetInlineStyle:{__style:{borderTop:"1px solid #efefef",borderBottom:"1px solid #efefef"}},children:[(0,m.jsx)(a.xv,{weight:"bold",size:"300",children:i._('Product details', 'productDetails.descriptionTap.text', 'text in tap area to open product description dropdown')}),(0,m.jsx)(a.JO,{accessibilityLabel:i._('Arrow forward', 'productDetails.openDropdown', 'accessibility label on button'),color:"default",icon:t?"arrow-down":"arrow-forward"})]})})};function f({onClickTitleOrDomain:e,pinKey:t}){var i;let{data:n,childDataKey__DEPRECATED:f}=(0,r.sr)(h,t,{type:"pin",useLegacyAdapter:e=>e&&{closeupAttribution:e.closeup_attribution&&{domainUrl:e.closeup_attribution.domain_url},closeupUnifiedDescription:e.closeup_unified_description}}),y=(0,o.ZP)(),v=(0,u.ZP)(),x=null==n?void 0:null===(i=n.closeupAttribution)||void 0===i?void 0:i.domainUrl,b=(0,p.Z)(f),P=(0,_.j)({components:b||[],pinDescription:(null==n?void 0:n.closeupUnifiedDescription)&&n.closeupUnifiedDescription.trim()}),[A,k]=(0,l.useState)(!1);return(0,m.jsx)(a.kC,{alignItems:"start",direction:"column",justifyContent:"start",children:P.length>0&&(0,m.jsxs)(a.xu,{marginTop:6,width:"100%",children:[(0,m.jsx)(g,{isOpen:A,onTap:()=>{k(!A),(0,d.My)("unauth.pdp.details.click",{action:A?"close":"open",device:v})}}),(0,m.jsx)(a.xu,{overflow:"scrollY",maxHeight:A?"75vh":"0vh",paddingX:4,children:(0,m.jsxs)(a.xu,{marginBottom:6,marginTop:2,dangerouslySetInlineStyle:{__style:{lineHeight:"1.2"}},children:[(0,m.jsx)(c.Z,{descriptions:P}),x&&(0,m.jsx)(a.xu,{marginTop:6,children:(0,m.jsx)(a.xv,{children:(0,s.nk)(y._('Ships from and sold by {{ userDomain }}', 'productDetails.productDescription.soldBy', 'Domain url of seller'),{userDomain:(0,m.jsx)(a.iP,{onTap:e,tapStyle:"compress",children:(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:x})},x)})})})]})})]})})}},238253:(e,t,i)=>{"use strict";i.d(t,{Z:()=>F});var n,l,a,r,o,s=i(667294),d=i(167912),u=i(883119),c=i(641950),p=i(453451),_=i(650702),m=i(407043),h=i(898781),g=i(349700),f=i(543972),y=i(992750),v=i(780280),x=i(40995),b=i(745162),P=i(819354),A=i(62409),k=i(350118);i(112690),i(784590),i(561195);var S=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 w=i(219413),D=i(882801);let E=void 0!==o?o:o=i(498006);function T({aggregateRating:e,brandInfo:t,closeupAttributionDomainId:i,isImagePinForUnauthOnTablet:n,isOutOfStock:l,isStale:a,onClickTitleOrDomain:r,graphqlRef:o,inlinePinActionBar:d,pinId:k,pinLink:E,closeupUnifiedDescription:T,offerSummary:C,gridTitle:I,pinTitle:F,richSummaryDisplayName:j,richMetadataTitle:R,setIsActionBarInline:z,shippingInfo:L,storyPinDataId:O,storyPinDataMetadataPinTitle:B,pinJoinVisualAnnotation:N}){let M=(0,h.ZP)(),{isAuthenticated:U}=(0,v.B)(),{logContextEvent:Z}=(0,m.v)(),K=(0,A.AH)(E),H=T&&T.trim(),G=I||F;U||(G=(0,y.Ly)({pinTitle:F,gridTitle:I,richSummaryDisplayName:j,richMetadataTitle:R,storyPinDataId:O,storyPinDataMetadataPinTitle:B,pinJoinVisualAnnotation:N}));let V=(0,b.Z)({isImagePinForUnauthOnTablet:n}),W=(0,w.Z)(o?{type:"graphqlRef",data:o}:{type:"deprecated",data:k}),$=(0,D.j)({components:W,pinDescription:H}),[q,Y]=(0,s.useState)(!1),J=G&&(0,S.jsx)(u.xu,{marginTop:2,marginBottom:2,children:(0,S.jsx)(x.Z,{onClick:r,hasLink:K,forceSmallerHeading:!n,textAlign:"start",pinId:k,graphqlRef:o,lineClamp:V})}),{rating_count:X,review_count:Q,rating_value:ee}=e||{},et=(0,S.jsx)(_.Z,{bracket:!0,count:X||Q,countType:Number(X||0)?"rating":"review",countFormat:"number",hideSeparationDot:!0,ratingValue:ee,shippingInfo:L&&{freeShippingPrice:L.free_shipping_price,freeShippingValue:L.free_shipping_value}}),ei=(0,S.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)(M._('{{ brand }} sold by {{ merchant }}', 'productmetadata.officialuserattribution.text', 'officialuserattribution text. brand:name of the brand. merchant:name of the merchant'),{brand:(0,S.jsx)(u.xv,{inline:!0,weight:"bold",children:en},"brand-name"),merchant:(0,S.jsx)(u.xv,{inline:!0,weight:"bold",children:e},"merchant-name")}):[(0,S.jsx)(u.xv,{inline:!0,weight:"bold",children:en},"brand-name")]}return e},[en,ea,M,er]),es=(0,S.jsx)(P.Z,{getDisplayName:eo,graphqlRef:o,pinId:k,onMouseDown:er?()=>{Z({event_type:102,object_id_str:k,view_type:3,view_parameter:144,element:13592,aux_data:{pin_id:k,commerce_data:JSON.stringify({pin_show_pdp:"1"})}})}:void 0}),ed=(0,S.jsx)(p.Z,{productDetails:{maxPrice:null==C?void 0:C.max_price,minPrice:null==C?void 0:C.min_price,price:null==C?void 0:C.price,standardPrice:null==C?void 0:C.standard_price},type:"pdpPlusMobileHeading",colorOverride:"default",isSoldOut:l,isStale:a});return(0,S.jsxs)(u.xu,{children:[(0,S.jsx)(u.kC,{alignItems:"start",direction:"column",justifyContent:"start",children:(0,S.jsx)(f.Z,{options:{threshold:[1]},onVisibilityChange:e=>{if(e&&e.length>0&&z){let{intersectionRatio:t,boundingClientRect:i}=e[0],n=i.y<0;z(1===t||n)}},children:e=>(0,S.jsx)(u.xu,{ref:e,children:(0,S.jsxs)(u.xu,{marginBottom:4,children:[J,ed,(0,S.jsx)(u.xu,{marginBottom:2,children:et}),es]})})})}),d,$.length>0&&(0,S.jsx)(u.xu,{marginTop:6,width:"100%",children:ei}),!1]})}function C({pinId:e,graphqlRef:t,...i}){var n,l,a,r,o,s,u,c,p,_,m,h,g,f,y,v,x,b,P,A,k,w,D,C,I,F,j,R,z,L,O;let B;let N=(0,d.useFragment)(E,t),M=(null===(n=N.pinJoin)||void 0===n?void 0:n.visualAnnotation)||[];if(M.length<1)return null;let{richMetadata:U,richSummary:Z}=N;null!=U&&null!==(l=U.products)&&void 0!==l&&l[0]&&U.products[0].name&&U.products[0].offerSummary&&(B=U.products[0].offerSummary),!B&&null!=Z&&null!==(a=Z.products)&&void 0!==a&&a[0]&&Z.products[0].name&&Z.products[0].offerSummary&&(B=Z.products[0].offerSummary);let K={min_price:null===(r=B)||void 0===r?void 0:r.minPrice,max_price:null===(o=B)||void 0===o?void 0:o.maxPrice,price:null===(s=B)||void 0===s?void 0:s.price,standard_price:null===(u=B)||void 0===u?void 0:u.standardPrice},H={rating_value:null!==(c=null==U?void 0:null===(p=U.aggregateRating)||void 0===p?void 0:p.ratingValue)&&void 0!==c?c:void 0,review_count:null!==(_=null==U?void 0:null===(m=U.aggregateRating)||void 0===m?void 0:m.reviewCount)&&void 0!==_?_:void 0,rating_count:null!==(h=null==U?void 0:null===(g=U.aggregateRating)||void 0===g?void 0:g.ratingCount)&&void 0!==h?h:void 0},G={free_shipping_price:null==U?void 0:null===(f=U.products)||void 0===f?void 0:null===(y=f[0].shippingInfo)||void 0===y?void 0:y.freeShippingPrice,free_shipping_value:null==U?void 0:null===(v=U.products)||void 0===v?void 0:null===(x=v[0].shippingInfo)||void 0===x?void 0:x.freeShippingValue},V=N.isOosProduct||(null===(b=B)||void 0===b?void 0:b.inStock)===!1,W=N.isStaleProduct,$={isMerchant:null==U?void 0:null===(P=U.products)||void 0===P?void 0:null===(A=P[0].brand)||void 0===A?void 0:A.isMerchant,name:null==U?void 0:null===(k=U.products)||void 0===k?void 0:null===(w=k[0].brand)||void 0===w?void 0:w.name,userId:null==U?void 0:null===(D=U.products)||void 0===D?void 0:null===(C=D[0].brand)||void 0===C?void 0:C.userId};return(0,S.jsx)(T,{...i,aggregateRating:H,brandInfo:$,closeupAttributionDomainUrl:null===(I=N.closeupAttribution)||void 0===I?void 0:I.domainUrl,closeupAttributionDomainId:null===(F=N.closeupAttribution)||void 0===F?void 0:F.entityId,graphqlRef:N,isOutOfStock:V,isStale:null!=W&&W,pinId:e,pinLink:N.link,closeupUnifiedDescription:null!==(j=N.closeupUnifiedDescription)&&void 0!==j?j:"",offerSummary:K,gridTitle:N.gridTitle,pinTitle:N.title,richSummaryDisplayName:null!==(R=null==Z?void 0:Z.displayName)&&void 0!==R?R:"",richMetadataTitle:null!==(z=null==U?void 0:U.title)&&void 0!==z?z:"",shippingInfo:G,storyPinDataId:N.storyPinDataId,storyPinDataMetadataPinTitle:null===(L=N.storyPinData)||void 0===L?void 0:null===(O=L.metadata)||void 0===O?void 0:O.pinTitle,pinJoinVisualAnnotation:M})}function I({pinId:e,...t}){var i,n,l,a,r,o,s,d,u,c,p,_,m,h,g,f,y,v,x,b,P,A;let w;let D=(0,k.S6)()(e),E=null==D?void 0:D.rich_metadata,C=null==D?void 0:D.rich_summary;null!=E&&null!==(i=E.products)&&void 0!==i&&i[0]&&E.products[0].name&&E.products[0].offer_summary&&(w=E.products[0].offer_summary),!w&&null!=C&&null!==(n=C.products)&&void 0!==n&&n[0]&&C.products[0].name&&C.products[0].offer_summary&&(w=C.products[0].offer_summary);let I=(null==D?void 0:D.is_oos_product)||(null===(l=w)||void 0===l?void 0:l.in_stock)===!1,F=null==D?void 0:D.is_stale_product,j={isMerchant:null==E?void 0:null===(a=E.products)||void 0===a?void 0:null===(r=a[0].brand)||void 0===r?void 0:r.is_merchant,name:null==E?void 0:null===(o=E.products)||void 0===o?void 0:null===(s=o[0].brand)||void 0===s?void 0:s.name,userId:null==E?void 0:null===(d=E.products)||void 0===d?void 0:null===(u=d[0].brand)||void 0===u?void 0:u.user_id};return(0,S.jsx)(T,{...t,aggregateRating:null==D?void 0:null===(c=D.rich_metadata)||void 0===c?void 0:c.aggregate_rating,brandInfo:j,closeupAttributionDomainUrl:null==D?void 0:null===(p=D.closeup_attribution)||void 0===p?void 0:p.domain_url,closeupAttributionDomainId:null==D?void 0:null===(_=D.closeup_attribution)||void 0===_?void 0:_.id,pinId:e,pinLink:null==D?void 0:D.link,closeupUnifiedDescription:null!==(m=null==D?void 0:D.closeup_unified_description)&&void 0!==m?m:"",gridTitle:null==D?void 0:D.grid_title,isOutOfStock:I,isStale:null!=F&&F,pinTitle:null==D?void 0:D.title,offerSummary:w,richSummaryDisplayName:null!==(h=null==D?void 0:null===(g=D.rich_summary)||void 0===g?void 0:g.display_name)&&void 0!==h?h:"",richMetadataTitle:null!==(f=null==D?void 0:null===(y=D.rich_metadata)||void 0===y?void 0:y.title)&&void 0!==f?f:"",shippingInfo:null==D?void 0:null===(v=D.rich_metadata)||void 0===v?void 0:null===(x=v.products)||void 0===x?void 0:x[0].shipping_info,storyPinDataId:null==D?void 0:D.story_pin_data_id,storyPinDataMetadataPinTitle:null==D?void 0:null===(b=D.story_pin_data)||void 0===b?void 0:null===(P=b.metadata)||void 0===P?void 0:P.pin_title,pinJoinVisualAnnotation:null==D?void 0:null===(A=D.pin_join)||void 0===A?void 0:A.visual_annotation})}function F({graphqlRef:e,...t}){return e?(0,S.jsx)(C,{...t,graphqlRef:e}):(0,S.jsx)(I,{...t})}},248299:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(883119),l=i(898781),a=i(166300),r=i(785893);function o({isPinRep:e}){let t=(0,l.ZP)(),i=e?"default":"inverse",o=(0,r.jsx)(n.xu,{padding:e?1:0,"data-test-id":"unavailable-pin",children:(0,r.jsx)(n.xu,{color:e?"secondary":"dark",top:!0,height:e?314:"100vh",position:e?"static":"absolute",rounding:e?4:0,width:"100%",children:(0,r.jsxs)(n.kC,{height:"100%",direction:"column",justifyContent:"center",alignItems:"center",children:[(0,r.jsx)(n.xu,{paddingY:4,children:(0,r.jsx)(n.JO,{accessibilityLabel:t._('Pin not available', 'story-pin.Closeup.UnavailableStoryPin.icon.accessibilityLabel', 'Accessibility label on icon'),color:i,icon:"alert",size:20})}),(0,r.jsx)(n.xv,{align:"center",color:i,weight:"bold",children:t._('Unavailable', 'story-pin.Closeup.UnavailableStoryPin.Unavailable', 'Text on an unavailable idea Pin that has been deleted')}),(0,r.jsx)(n.xu,{paddingY:1,children:(0,r.jsx)(n.xv,{align:"center",color:i,children:t._('Removed by the creator', 'story-pin.Closeup.UnavailableStoryPin.Removed', 'Text on an unavailable idea Pin explaining it has been removed by its creator')})})]})})});return e?o:(0,r.jsx)(n.xu,{height:"100vh",children:(0,r.jsx)(a.Z,{children:o})})}},252417:(e,t,i)=>{"use strict";i.d(t,{Ai:()=>A,B5:()=>m,CR:()=>u,Cc:()=>r,HG:()=>v,R_:()=>s,Wz:()=>o,_P:()=>y,dP:()=>k,dX:()=>b,gx:()=>c,h8:()=>l,hk:()=>d,lp:()=>g,lt:()=>_,oe:()=>x,r4:()=>f,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),_=new n.H3([p]),m=new n.H3([_]),h=new n.H3([p]),g=new n.H3([h]),f=4;function y(e){return e?{paddingX:0,paddingY:0}:{paddingX:2,paddingY:f}}let v=6,x=47,b=8,P=4,A=5,k=3},642639:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});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 _({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,_=(null===(o=i.fontOverrides)||void 0===o?void 0:o.lineHeight)||1.1,m={letterSpacing:p,lineHeight:String(_),fontFamily:i.fontFamily,fontSize:`${c}px`,position:"absolute",visibility:"hidden",width:`${t}px`};Object.assign(d.style,m);let h=document.createElement("div");for(h.style.display="inline",d.appendChild(h),(null!=u?u:[]).forEach((e,t)=>{let i=document.createElement("span");i.style.wordBreak="break-word",h.appendChild(i),i.appendChild(document.createTextNode(e)),t!==(null!=a?a:"").length-1&&i.appendChild(document.createElement("br"))});(h.offsetHeight>e||h.offsetWidth>t)&&c>0;)c-=1,d.style.fontSize=`${c}px`;return h.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 _=document.createTextNode("");p.appendChild(_);let m=[],h="",g=e=>{let t=e.trim();return _.textContent=t,{text:t,width:p.offsetWidth}},f=e=>{let t=!!e.match(/\s/),i=0===h.length;if(_.textContent=`${h}${e}`,p.offsetWidth>l){if(t)m.push(g(h)),h="";else if(i)for(let t of e)f(t);else m.push(g(h)),h="",f(e)}else h+=e};for(let e of null!=i?i:[]){0===e.length&&m.push(g(h));let t=n(e);t.forEach(e=>f(e)),h.length&&(m.push(g(h)),h="")}return p.remove(),s.remove(),m}({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})},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,_=({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,m=({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))})]})})},h=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)(_,{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)(m,{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)(h,{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)(),_=(0,o.HG)(),m=(0,r.Z)({name:"UserStoryPinsFeedResource",options:{data:{filter_version:2,public_only:!0},field_set_key:"partner_grid_item",user_id:i}}),h=Array.isArray(t)?t.join(" "):t;if(0===(m.data||[]).length)return(0,s.jsx)(l.ZP,{duration:5e3,onHide:e,text:h,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=(m.data||[]).slice(0,3).map(e=>{var t;return null===(t=e.images)||void 0===t?void 0:t[_?"236x":"170x"]}),f=(0,s.jsx)(d,{ideaPinImages:g});return(0,s.jsx)(l.ZP,{href:u,duration:5e3,onHide:e,_dangerouslySetThumbnail:f,text:h})}},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])},430235:(e,t,i)=>{"use strict";i.d(t,{Z:()=>K});var n,l=i(667294),a=i(167912),r=i(616550),o=i(883119),s=i(407043),d=i(499128),u=i(898781),c=i(349700),p=i(248975),_=i(958007),m=i(992750),h=i(53199),g=i(773285),f=i(780280),y=i(862628),v=i(595371),x=i(743473),b=i(667679),P=i(867820),A=i(343341),k=i(829407),S=i(988744),w=i(920085),D=i(62409),E=i(256588),T=i(350118),C=i(785893);let I=({children:e,onTap:t,testId:i})=>{let[n,a]=(0,l.useState)(!1);return(0,C.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:n?"rgba(0, 0, 0, 0.06)":void 0}},rounding:2,paddingX:3,paddingY:2,role:"listitem","data-test-id":`more-options-${i}`,children:(0,C.jsx)(o.iP,{onTap:t,onBlur:()=>a(!1),onFocus:()=>a(!0),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:e})})},F=void 0!==n?n:n=i(298748),j=({i18n:e,pinId:t,showSignupModal:i,attributionLabelSource:n})=>(0,C.jsx)(I,{testId:"save",onTap:()=>{(0,P.My)("dweb.unauth.context_menu.save_image",{attributionLabelSource:n}),i({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:`click_context_menu_${n}_save_button`,desktopOptions:{modalType:"signup",modalOptions:{source:"saveButtonExp",container:"save",savePinId:t}}})},children:(0,C.jsx)(o.xv,{size:"200",weight:"bold",children:e._('Save image', 'dweb.unauth.context_menu.link.save_image', 'Link to save the image')})},"SaveMenuItem"),R=e=>({invite_category:3,invite_channel:12,object_type:1,object_id:e}),z=({pinId:e,variant:t,onSendButtonClick:i,dismissPriorToast:n})=>{let a=(0,u.ZP)(),{logContextEvent:r}=(0,s.v)(),[d,c]=(0,l.useState)(null),[p,_]=(0,l.useState)(!1),{logShareInvite:m,createShareInviteData:h}=(0,x.Z)(),g=()=>{null===d||p||(_(!0),m(R(e),d))},f=()=>{r({event_type:101,component:14162,element:72,object_id_str:e})};return(0,k.Z)(()=>{let t=async()=>{let t=await h({invite_category:3,invite_channel:12,object_type:"pin",object_id:e,path:""});c(t)};t()}),"copy_link"===t?(0,C.jsxs)(o.xu,{"data-test-id":"post-download-copy-link",children:[a._('Image downloaded to your device. ', 'context_menu.pin_downloaded.toastText', 'toast message to confirm when users downloaded a pin image'),(0,C.jsx)(S.Z,{linkURL:(null==d?void 0:d.invite_url)||"",onDidClickCopyButton:()=>{g(),f()},onDidFocus:g,buttonSize:"sm",onCopyText:a._('Copied link to your clipboard to share', 'context_menu.pin_downloaded.copy_link_button_activate', 'notify the user that the link is now copied to their clipboard'),toastDuration:5e3,oneToast:!0,hideInput:!0,asLink:!0})]}):(0,C.jsxs)(o.xu,{"data-test-id":"post-download-share-pin",children:[a._('Image downloaded to your device. ', 'context_menu.pin_downloaded.toastText', 'toast message to confirm when users downloaded a pin image'),(0,C.jsx)(o.rU,{display:"inline",onClick:()=>{n(),i(),f()},href:"",accessibilityLabel:a._('Share Pin', 'context_menu.pin_downloaded.share_pin_button', 'toast message that shows share pin sharesheet invite CTA'),children:a._('Share Pin', 'context_menu.pin_downloaded.share_pin_button', 'toast message that shows share pin sharesheet invite CTA')})]})},L=({i18n:e,pinTitle:t,pinDescription:i,pinId:n,bestPinImgSrc:l,attributionLabelSource:a,logContextEvent:r,pinCategory:s,checkExperiment:u,showSignupModal:c,onSendButtonClick:p})=>{let{showOneToast:_}=(0,A.F9)();return(0,C.jsx)(I,{testId:"download",onTap:()=>{let{expName:m,expGroup:h,limitReached:g,oldCount:f,newCount:y}=(0,w.H)(u,"dweb_download_in_context_menus_v3");if((0,P.My)("dweb.unauth.context_menu.download_image",{attributionLabelSource:a,expName:m,expGroup:h,limitReached:g,oldCount:f,newCount:y}),g){c({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:`click_context_menu_${a}_download_button`,desktopOptions:{modalType:"signup",modalOptions:{source:"downloadImageBtnUnauth",container:"download",savePinId:n}}});return}(0,w.Z)({filename:t||i||n,imgSrc:l||"",category:s,pinId:n,isUnauth:!0,platform:"web",expName:m,expGroup:h},r);let v=h.includes("copy_link"),x=v?"copy_link":"sharesheet";_(({hideToast:t})=>(0,C.jsx)(d.ZP,{onHide:t,duration:5e3,thumbnail:{image:(0,C.jsx)(o.Ee,{alt:e._('Image of downloaded Pin', 'context_menu.pin_downloaded.altImageText', 'Alt text for image shown when downloading pin'),src:l||"",fit:"cover",naturalWidth:32,naturalHeight:32})},text:(0,C.jsx)(o.xv,{color:"inverse",children:(0,C.jsx)(z,{pinId:n,variant:x,onSendButtonClick:p,dismissPriorToast:t})})}))},children:(0,C.jsx)(o.xv,{size:"200",weight:"bold",children:e._('Download image', 'Button to download Pin image', 'Button to download Pin image')})},"DownloadMenuItem")},O=({pinId:e,pinLink:t,fromEllipsisButton:i,attributionLabelSource:n,showSignupModal:l,i18n:a})=>(0,C.jsx)(I,{testId:"new-tab",onTap:()=>{(0,P.My)("dweb.unauth.context_menu.open_plp_new_tab",{attributionLabelSource:n}),window.open(i?t:`/pin/${e}/`),i||l({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"click_context_menu_related_pin_right_click_open_link_button",desktopOptions:{modalType:"login"}})},children:(0,C.jsx)(o.xv,{size:"200",weight:"bold",children:a._('Open link in new tab', 'dweb.unauth.context_menu.link.plp_new_tab', 'Link to open the pin in a new tab')})},"NewTabMenuItem"),B=({history:e,levelOneInterestUrl:t,searchUrl:i,levelOneInterestName:n,i18n:l,interestTag:a,attributionLabelSource:r})=>(0,C.jsx)(I,{testId:"interests",onTap:()=>{(0,P.My)("dweb.unauth.context_menu.see_more_pins",{attributionLabelSource:r}),t?e.push(`${t}`):e.push(i)},children:n?(0,C.jsx)(o.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,c.nk)(l._('See more ideas about {{levelOneInterestName}}', 'dweb.unauth.context_menu.link.see_more_ideas.l1', 'Link to see similar pins'),{levelOneInterestName:n})}):(0,C.jsx)(o.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,c.nk)(l._('See more ideas about {{interestTag}}', 'dweb.unauth.context_menu.link.see_more_ideas.interest_tag', 'Link to see similar pins'),{interestTag:a})})},"MoreInterestsMenuItem"),N=({attributionLabelSource:e,reportLink:t,i18n:i})=>(0,C.jsx)(l.Fragment,{children:(0,C.jsx)(I,{testId:"dsa",onTap:()=>{(0,P.My)("dweb.unauth.context_menu.report_pin_dsa",{attributionLabelSource:e}),window.open(t,"_blank")},children:(0,C.jsx)(o.xv,{size:"200",weight:"bold",children:i._('Report Pin for EU local law violation', 'dweb.unauth.context_menu.link.report_pin_dsa', 'Button to report Pin for EU local law violation')})})},"ReportForDSAMenuItem");function M({desktopContextMenuState:e,isMainPinImage:t,source:i,imagesUrls:n,embedSrc:l,embedType:a,pinJoinVisualAnnotation:d,pinJoinSeoBreadcrumbName:c,pinJoinSeoBreadcrumbUrl:_,pinId:m,pinLink:h,pinTitle:x,pinDescription:P,pinCategory:A,pinEligibleForDownload:k,onSendButtonClick:S}){var w;let D=(0,u.ZP)(),T=(0,r.useHistory)(),{logContextEvent:I}=(0,s.v)(),{countryFromIp:F,isBot:R,isSocialBot:z}=(0,f.B)(),{checkExperiment:M}=(0,g.F)(),U=(0,p.Z)({imagesUrls:n,embedSrc:l,embedType:a,excludeOriginals:!R&&!z}),Z=null!==(w=null==d?void 0:d[0])&&void 0!==w?w:void 0,K=(0,y.Z)(Z),H=`/search/pins/?q=${encodeURIComponent(K)}&rs=${v.i.IMAGE_ONLY_ATTRIBUTION}`,G=(0,b.Z)(),V="dweb.plp.ellipsis.button"===i,{COUNTRY_CODES:W}=E.LAW_CONFIGURATION.dsa,$=W.includes(F);if(!U)return null;let q=(0,p.Z)({imagesUrls:n,embedSrc:l,embedType:a,excludeOriginals:!R&&!z}),Y="related_pin_right_click";V?Y="action_bar_ellipsis":t&&(Y="right_click");let J=[{component:()=>j({i18n:D,pinId:m,showSignupModal:G,attributionLabelSource:Y})},{component:()=>k&&L({i18n:D,pinTitle:x,pinDescription:P,pinId:m,bestPinImgSrc:q,attributionLabelSource:Y,logContextEvent:I,pinCategory:A,checkExperiment:M,showSignupModal:G,onSendButtonClick:null!=S?S:()=>{}})},{component:()=>!(t||V&&!h)&&O({i18n:D,pinId:m,pinLink:h,fromEllipsisButton:V,showSignupModal:G,attributionLabelSource:Y})},{component:()=>!!(Z||c&&_)&&B({history:T,levelOneInterestUrl:_,searchUrl:H,levelOneInterestName:c,i18n:D,interestTag:Z,attributionLabelSource:Y})},{component:()=>$&&N({reportLink:`https://www.pinterest.com/about/dsa/?pinId=${m}`,i18n:D,attributionLabelSource:Y})}],X=J.map(({component:e})=>e()).filter(e=>!!e);return(0,C.jsxs)(o.xu,{"data-test-id":"desktop-context-menu",position:"fixed",dangerouslySetInlineStyle:{__style:{top:`${e.y}px`,left:`${e.x}px`}},zIndex:new o.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:250,children:[(0,C.jsx)(o.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",children:(0,C.jsx)(o.JO,{icon:"pinterest",accessibilityLabel:D._('Pinterest logo', 'dweb.unauth.context_menu.pinterest_logo', 'Pinterest logo in the context menu'),color:"brandPrimary"})}),X]})}function U({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:i,onSendButtonClick:n,...l}){var r,o,s,d,u,c,p,g,f,y,v,x,b,P,A,k,S;let w;let D=(0,a.useFragment)(F,e),E=(0,h.Z)({type:"graphqlRef",data:D}),T=!!D.storyPinDataId,I=!!(null===(r=D.videos)||void 0===r?void 0:r.videoList),{isUnsafe:j}=D;(w=D.nativeCreator?D.nativeCreator:D.linkDomain?D.linkDomain.officialUser:D.originPinner||D.pinner)||(w=null!==(k=null===(S=D.linkDomain)||void 0===S?void 0:S.officialUser)&&void 0!==k?k:D.pinner);let{storyPinDataId:R}=D,z=null!==(o=null===(s=D.richSummary)||void 0===s?void 0:s.displayName)&&void 0!==o?o:"",L=null!==(d=null===(u=D.richMetadata)||void 0===u?void 0:u.title)&&void 0!==d?d:"",O=null!==(c=null===(p=D.richMetadata)||void 0===p?void 0:p.description)&&void 0!==c?c:"",B=null===(g=D.storyPinData)||void 0===g?void 0:null===(f=g.metadata)||void 0===f?void 0:f.pinTitle,N=(null===(y=D.pinJoin)||void 0===y?void 0:y.visualAnnotation)||void 0,U=D.category||"",Z=(0,m.Ly)({pinTitle:D.title,gridTitle:D.gridTitle,richSummaryDisplayName:z,richMetadataTitle:L,storyPinDataId:R,storyPinDataMetadataPinTitle:B,pinJoinVisualAnnotation:N}),K=(0,_.Z)({storyPinDataId:R,pinDescription:D.description,richMetadataDescription:O,richSummaryDisplayName:z,closeupDescription:D.closeupDescription,closeupUnifiedDescription:D.closeupUnifiedDescription});return(0,C.jsx)(M,{...l,embedSrc:D.embed&&D.embed.src,embedType:D.embed&&D.embed.type,imagesUrls:E,sourceUserUsername:null===(v=w)||void 0===v?void 0:v.username,sourceUserFullname:null===(x=w)||void 0===x?void 0:x.fullName,pinJoinVisualAnnotation:null===(b=D.pinJoin)||void 0===b?void 0:b.visualAnnotation,pinJoinSeoBreadcrumbName:(null===(P=D.pinJoin)||void 0===P?void 0:P.seoBreadcrumbs)&&(D.pinJoin.seoBreadcrumbs.length>0?D.pinJoin.seoBreadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null===(A=D.pinJoin)||void 0===A?void 0:A.seoBreadcrumbs)&&(D.pinJoin.seoBreadcrumbs.length>0?D.pinJoin.seoBreadcrumbs[0].url:null),pinId:t,pinTitle:Z,pinDescription:K,pinCategory:U,pinEligibleForDownload:!!(!T&&!I&&!j&&n),onSendButtonClick:n})}function Z({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:i,onSendButtonClick:n,...l}){var a,r,o,s,d,u,c,p,g,f,y,v,x,b,P,A,k;let S=(0,T.S6)()(t),w=(0,h.Z)(null!=S?{type:"deprecated",data:S}:null),E=null==S?void 0:S.story_pin_data_id,I=null==S?void 0:S.videos,F=!!E,j=!!(null!=I&&I.video_list),R=null==S?void 0:S.title,z=null==S?void 0:S.description,L=null==S?void 0:S.grid_title,O=null!==(a=null==S?void 0:null===(r=S.rich_metadata)||void 0===r?void 0:r.title)&&void 0!==a?a:"",B=null==S?void 0:S.category,N=null!==(o=null==S?void 0:null===(s=S.rich_metadata)||void 0===s?void 0:s.description)&&void 0!==o?o:"",U=null!==(d=null==S?void 0:null===(u=S.rich_summary)||void 0===u?void 0:u.display_name)&&void 0!==d?d:"",Z=null==S?void 0:S.closeup_description,K=null==S?void 0:S.closeup_unified_description,H=null==S?void 0:null===(c=S.story_pin_data)||void 0===c?void 0:null===(p=c.metadata)||void 0===p?void 0:p.pin_title,G=null==S?void 0:null===(g=S.pin_join)||void 0===g?void 0:g.visual_annotation,V=null==S?void 0:S.is_unsafe,{link_domain:W,native_creator:$,origin_pinner:q,pinner:Y}=S||{},J=(0,D.wS)(W,$,q,Y);J||(J=null!==(A=null==S?void 0:null===(k=S.link_domain)||void 0===k?void 0:k.official_user)&&void 0!==A?A:null==S?void 0:S.pinner);let{full_name:X,username:Q}=null!==(f=J)&&void 0!==f?f:{},ee=(0,m.Ly)({pinTitle:R,gridTitle:L,richSummaryDisplayName:U,richMetadataTitle:O,storyPinDataId:E,storyPinDataMetadataPinTitle:H,pinJoinVisualAnnotation:G}),et=(0,_.Z)({storyPinDataId:E,pinDescription:z,richMetadataDescription:N,richSummaryDisplayName:U,closeupDescription:Z,closeupUnifiedDescription:K});return(0,C.jsx)(M,{...l,embedSrc:null==S?void 0:null===(y=S.embed)||void 0===y?void 0:y.src,embedType:null==S?void 0:null===(v=S.embed)||void 0===v?void 0:v.type,imagesUrls:w,sourceUserUsername:Q,sourceUserFullname:X,pinJoinVisualAnnotation:null==S?void 0:null===(x=S.pin_join)||void 0===x?void 0:x.visual_annotation,pinJoinSeoBreadcrumbName:(null==S?void 0:null===(b=S.pin_join)||void 0===b?void 0:b.seo_breadcrumbs)&&(S.pin_join.seo_breadcrumbs.length>0?S.pin_join.seo_breadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==S?void 0:null===(P=S.pin_join)||void 0===P?void 0:P.seo_breadcrumbs)&&(S.pin_join.seo_breadcrumbs.length>0?S.pin_join.seo_breadcrumbs[0].url:null),pinId:t,pinTitle:ee,pinDescription:et,pinCategory:B,pinEligibleForDownload:!!(!F&&!j&&!V&&n),onSendButtonClick:n})}function K(e){return e.graphqlRef?(0,C.jsx)(U,{...e,graphqlRef:e.graphqlRef}):(0,C.jsx)(Z,{...e})}},116674:(e,t,i)=>{"use strict";i.d(t,{X:()=>u,f:()=>d});var n=i(667294),l=i(425288),a=i(623568);function r(e=null,t){switch(t.type){case"REPORT_CONTENT_SHOW":return{id:t.payload.id,isProduct:t.payload.isProduct,isPromoted:t.payload.isPromoted,parentId:t.payload.parentId,videoDuration:t.payload.videoDuration,viewParameter:t.payload.viewParameter,viewType:t.payload.viewType,type:t.payload.type,isThirdPartyAd:t.payload.isThirdPartyAd};case"REPORT_CONTENT_DISMISS":return null;default:return e}}var o=i(785893);let{Provider:s,useHook:d}=(0,l.Z)("ReportData");function u({children:e}){let[t,i]=(0,n.useReducer)(r,null),l=(0,n.useCallback)(()=>i({type:"REPORT_CONTENT_DISMISS"}),[]),d=(0,n.useCallback)((e,t,n)=>i({type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:!1,isPromoted:!1,parentId:t,videoDuration:null,viewParameter:null,viewType:null,type:n}}),[]),u=(0,n.useCallback)((e,t,n)=>i({type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:!1,isPromoted:!1,videoDuration:null,viewParameter:t,viewType:n,type:"conversation"}}),[]),c=(0,n.useCallback)((e,t,n)=>i({type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:!1,isPromoted:!1,videoDuration:null,viewParameter:t,viewType:n,type:"pin"}}),[]),p=(0,n.useCallback)(({pinId:e,isDownstreamPromotion:t,hasPromoter:n,firstVideoDuration:l,isProduct:r,viewParameter:o,viewType:s,isThirdPartyAd:d})=>{let u=(0,a.jL)(t,n);i({type:"REPORT_CONTENT_SHOW",payload:{id:e,isProduct:r,isPromoted:u,videoDuration:l,viewParameter:o,viewType:s,type:"pin",isThirdPartyAd:d}})},[]),_=(0,n.useMemo)(()=>({reportData:t,dismiss:l,reportComment:d,reportConversation:u,reportImage:c,reportPin:p}),[t,l,d,u,c,p]);return(0,o.jsx)(s,{value:_,children:e})}},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}},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}},865673:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(667294),l=i(883119),a=i(512176),r=i(785893);let o=function({badgeSize:e,badgeSpacing:t,fullName:i,verifiedType:o,truncate:s=!1}){let d=i.split(" "),u=d.slice(0,d.length-1).join(" "),c=" ".concat(d[d.length-1]);return s?(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,{isVerifiedMerchant:"verifiedMerchant"===o,size:e,showVerifiedIdentity:"verifiedIdentity"===o})})]}):(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("span",{children:u}),(0,r.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[c,"\xa0",(0,r.jsx)(l.xu,{display:"inlineBlock",flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},children:(0,r.jsx)(a.Z,{isVerifiedMerchant:"verifiedMerchant"===o,size:e,showVerifiedIdentity:"verifiedIdentity"===o})})]})]})}},817767:(e,t,i)=>{"use strict";i.d(t,{Z:()=>k});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),_=i(512176),m=i(815613),h=i(461773),g=i(90326),f=i(892819),y=i(349700),v=i(780280),x=i(785893);let b=({followerCount:e})=>{let t=(0,s.ZP)(),i=(0,f.Z)(),{locale:n}=(0,v.B)();return(0,x.jsx)(a.xv,{children:(0,y.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),A=e=>({});function k(e){let t=(0,p.Z)(),i=t.isAuth&&t.id,n=t.isAuth,f=(0,s.ZP)(),y=(0,d.Z)(),v=(0,r.Z)(),k=(0,c.Z)(),S=(0,l.useDispatch)(),w=e=>S((0,h.ZN)(e)),D=e=>S((0,h.fv)(e)),E=e=>S((0,g.h2)(e,v)),{avatarSize:T,detailText:C,hideButtons:I,blockedByMe:F,explicitlyFollowedByMe:j,followerCount:R,fullName:z,id:L,imageLargeUrl:O,imageMediumUrl:B,imageSmallUrl:N,isEligibleForPdp:M,isVerifiedMerchant:U,verifiedIdentityVerified:Z,username:K,isCurrentUser:H,isOnCloseup:G,isImagePinForUnauthOnTablet:V,pinId:W,pinKey:$,shouldNavigateToProfile:q=!0,textColor:Y,type:J,viewParameter:X,viewType:Q,unauthFollow:ee,activateLexFollowExp:et,clientTrackingParams:ei}=e,{data:en}=(0,o.Q)(P,$,{useLegacyAdapter:A}),el=(W&&W.length,()=>{n?(w(L),v({event_type:45,view_type:3,view_parameter:156,view_data:{isCurrentUser:H,viewObjectId:W,viewObjectIdStr:W},object_id_str:L,clientTrackingParams:ei})):y({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:"click_follow",desktopOptions:{modalType:"login"}})}),ea=()=>{D(L),v({event_type:46,view_type:3,view_parameter:156,object_id_str:L,clientTrackingParams:ei})},er=()=>(0,x.jsx)(m.Z,{disableLog:!0,followEventType:45,id:L,isFollowed:j||!1,isSecondaryButton:!0,isUserFollowButton:!0,isUserMe:i===L,onFollow:()=>G?el():w(L),onUnfollow:()=>G?ea():D(L),pinKey:en,size:"md",unfollowEventType:46,viewParameter:X,viewType:Q,clientTrackingParams:ei}),eo=()=>{if(F)return(0,x.jsx)(a.zx,{fullWidth:!0,color:"gray",onClick:()=>E(L),size:"md",text:f._('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:f._('User`s avatar', 'User`s avatar', 'User`s avatar'),onClick:()=>{k({action:"click",item:"avatar-image"})},collaborators:[{name:null!=z?z:"",src:O||B||N||void 0}],size:(e||{}).size})}),ed=V?"calc(100% - 48px)":void 0,eu=U||Z,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:T||"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&&M&&!eu&&(0,x.jsx)(a.xu,{marginEnd:1,children:(0,x.jsx)(a.xv,{children:f._('Saved by', 'Context on user rep', 'userRep.saveContext')})}),(0,x.jsx)(a.xu,{"data-test-id":"username",children:(0,x.jsx)(a.iP,{onTap:()=>{k({action:"click",item:"username"})},children:(0,x.jsx)(a.xv,{color:Y||"default",lineClamp:V?1:void 0,weight:"bold",children:z})})}),eu&&(0,x.jsx)(a.xu,{marginStart:1,paddingY:1,children:(0,x.jsx)(_.Z,{showVerifiedIdentity:!U,size:"sm"})})]}),(0,x.jsx)(a.xv,{color:Y||"default",lineClamp:V?1:void 0,children:C}),!!R&&(0,x.jsx)(a.xu,{"data-test-id":"user-follower-count",children:(0,x.jsx)(a.iP,{onTap:()=>{k({action:"click",item:"user-follower-count"})},children:(0,x.jsx)(b,{followerCount:R})})})]})]}),ep="row"===J?(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:z}),eu&&(0,x.jsx)(a.xu,{marginStart:1,paddingY:1,children:(0,x.jsx)(_.Z,{showVerifiedIdentity:!U,size:"sm"})})]}),!I&&eo()]}),e_=(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"),k({action:"click",item:"user-rep"}))},tapStyle:"compress",rounding:2,href:`/${encodeURIComponent(K)}/`,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?e_:ep})}},127525:(e,t,i)=>{"use strict";i.d(t,{I:()=>u,Z:()=>c});var n=i(667294),l=i(616550),a=i(473727),r=i(201342),o=i(785893);let s=(0,n.createContext)(null);function d({children:e}){let t=(0,l.useLocation)(),i=(0,n.useMemo)(()=>t,[]);return(0,o.jsx)(s.Provider,{value:i,children:e})}function u(){let e=(0,l.useLocation)(),t=(0,n.useContext)(s);return e===t}function c({children:e,initialLocation:t}){return(0,o.jsx)(a.VK,{children:(0,o.jsx)(r.tn,{children:(0,o.jsx)(d,{children: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"}}]);
27
+ //# sourceMappingURL=https://sm.pinimg.com/webapp/DefaultPinRep-78e567622e9cb382.mjs.map