s.pinimg.com Open in urlscan Pro
2600:141b:1c00:2589::1931  Public Scan

Submitted URL: http://s.pinimg.com/webapp/DefaultPinRep-3b6575fcbdc8358a.mjs
Effective URL: https://s.pinimg.com/webapp/DefaultPinRep-3b6575fcbdc8358a.mjs
Submission: On December 07 via manual from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[39921,51879,90907,99429,41648,52900,14505,27795,33547,89820,52116,32859,62255,76030,81314,55294,88887,69965],{376030:(e,t,n)=>{"use strict";n.d(t,{Z:()=>et});var i,a,l={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},s=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],o={},d={};function c(e,t,n){return Math.min(Math.max(e,t),n)}function u(e,t){return e.indexOf(t)>-1}function p(e,t){return e.apply(null,t)}var m={arr:function(e){return Array.isArray(e)},obj:function(e){return u(Object.prototype.toString.call(e),"Object")},pth:function(e){return m.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||m.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 m.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 m.hex(e)||m.rgb(e)||m.hsl(e)},key:function(e){return!l.hasOwnProperty(e)&&!r.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function g(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function h(e,t){var n=g(e),i=c(m.und(n[0])?1:n[0],.1,100),a=c(m.und(n[1])?100:n[1],.1,100),l=c(m.und(n[2])?10:n[2],.1,100),r=c(m.und(n[3])?0:n[3],.1,100),s=Math.sqrt(a/i),o=l/(2*Math.sqrt(a*i)),u=o<1?s*Math.sqrt(1-o*o):0,p=o<1?(o*s+-r)/u:-r+s;function h(e){var n=t?t*e/1e3:e;return(n=o<1?Math.exp(-n*o*s)*(1*Math.cos(u*n)+p*Math.sin(u*n)):(1+p*n)*Math.exp(-n*s),0===e||1===e)?e:1-n}return t?h:function(){var t=d[e];if(t)return t;for(var n=1/6,i=0,a=0;;)if(1===h(i+=n)){if(++a>=16)break}else a=0;var l=i*n*1e3;return d[e]=l,l}}function _(e){return void 0===e&&(e=10),function(t){return Math.ceil(c(t,1e-6,1)*e)*(1/e)}}var y=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}function t(e,t,n){return 3*(1-3*n+3*t)*e*e+2*(3*n-6*t)*e+3*t}return function(n,i,a,l){if(0<=n&&n<=1&&0<=a&&a<=1){var r=new Float32Array(11);if(n!==i||a!==l)for(var s=0;s<11;++s)r[s]=e(.1*s,n,a);return function(s){return n===i&&a===l||0===s||1===s?s:e(function(i){for(var l=0,s=1;10!==s&&r[s]<=i;++s)l+=.1;var o=l+(i-r[--s])/(r[s+1]-r[s])*.1,d=t(o,n,a);return d>=.001?function(n,i,a,l){for(var r=0;r<4;++r){var s=t(i,a,l);if(0===s)break;var o=e(i,a,l)-n;i-=o/s}return i}(i,o,n,a):0===d?o:function(t,n,i,a,l){var r,s,o=0;do(r=e(s=n+(i-n)/2,a,l)-t)>0?i=s:n=s;while(Math.abs(r)>1e-7&&++o<10)return s}(i,l,l+.1,n,a)}(s),i,l)}}}}(),f=(i={linear:function(){return function(e){return e}}},a={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=c(e,1,10),i=c(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin(2*Math.PI*(e-1-i/(2*Math.PI)*Math.asin(1/n))/i)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(e,t){a[e]=function(){return function(e){return Math.pow(e,t+2)}}}),Object.keys(a).forEach(function(e){var t=a[e];i["easeIn"+e]=t,i["easeOut"+e]=function(e,n){return function(i){return 1-t(e,n)(1-i)}},i["easeInOut"+e]=function(e,n){return function(i){return i<.5?t(e,n)(2*i)/2:1-t(e,n)(-2*i+2)/2}},i["easeOutIn"+e]=function(e,n){return function(i){return i<.5?(1-t(e,n)(1-2*i))/2:(t(e,n)(2*i-1)+1)/2}}}),i);function x(e,t){if(m.fnc(e))return e;var n=e.split("(")[0],i=f[n],a=g(e);switch(n){case"spring":return h(e,t);case"cubicBezier":return p(y,a);case"steps":return p(_,a);default:return p(i,a)}}function b(e){try{return document.querySelectorAll(e)}catch(e){return}}function v(e,t){for(var n=e.length,i=arguments.length>=2?arguments[1]:void 0,a=[],l=0;l<n;l++)if(l in e){var r=e[l];t.call(i,r,l,e)&&a.push(r)}return a}function P(e){return e.reduce(function(e,t){return e.concat(m.arr(t)?P(t):t)},[])}function k(e){return m.arr(e)?e:(m.str(e)&&(e=b(e)||e),e instanceof NodeList||e instanceof HTMLCollection)?[].slice.call(e):[e]}function S(e,t){return e.some(function(e){return e===t})}function w(e){var t={};for(var n in e)t[n]=e[n];return t}function I(e,t){var n=w(e);for(var i in e)n[i]=t.hasOwnProperty(i)?t[i]:e[i];return n}function T(e,t){var n=w(e);for(var i in t)n[i]=m.und(e[i])?t[i]:e[i];return n}function A(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function E(e,t){return m.fnc(e)?e(t.target,t.id,t.total):e}function C(e,t){return e.getAttribute(t)}function j(e,t,n){if(S([n,"deg","rad","turn"],A(t)))return t;var i=o[t+n];if(!m.und(i))return i;var a=document.createElement(e.tagName),l=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;l.appendChild(a),a.style.position="absolute",a.style.width=100+n;var r=100/a.offsetWidth;l.removeChild(a);var s=r*parseFloat(t);return o[t+n]=s,s}function F(e,t,n){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=e.style[t]||getComputedStyle(e).getPropertyValue(i)||"0";return n?j(e,a,n):a}}function L(e,t){return m.dom(e)&&!m.inp(e)&&(!m.nil(C(e,t))||m.svg(e)&&e[t])?"attribute":m.dom(e)&&S(s,t)?"transform":m.dom(e)&&"transform"!==t&&F(e,t)?"css":null!=e[t]?"object":void 0}function D(e){if(m.dom(e)){for(var t,n=e.style.transform||"",i=/(\w+)\(([^)]*)\)/g,a=new Map;t=i.exec(n);)a.set(t[1],t[2]);return a}}function R(e,t,n,i){switch(L(e,t)){case"transform":var a,l;return a=u(t,"scale")?1:0+(u(t,"translate")||"perspective"===t?"px":u(t,"rotate")||u(t,"skew")?"deg":void 0),l=D(e).get(t)||a,i&&(i.transforms.list.set(t,l),i.transforms.last=t),n?j(e,l,n):l;case"css":return F(e,t,n);case"attribute":return C(e,t);default:return e[t]||0}}function O(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var i=A(e)||0,a=parseFloat(t),l=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return a+l+i;case"-":return a-l+i;case"*":return a*l+i}}function Z(e,t){if(m.col(e)){var n,i,a,l;return n=e,m.rgb(n)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n))?"rgba("+i[1]+",1)":n:m.hex(n)?(a=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i}),"rgba("+parseInt((l=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))[1],16)+","+parseInt(l[2],16)+","+parseInt(l[3],16)+",1)"):m.hsl(n)?function(e){var t,n,i,a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),l=parseInt(a[1],10)/360,r=parseInt(a[2],10)/100,s=parseInt(a[3],10)/100,o=a[4]||1;function d(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==r)t=n=i=s;else{var c=s<.5?s*(1+r):s+r-s*r,u=2*s-c;t=d(u,c,l+1/3),n=d(u,c,l),i=d(u,c,l-1/3)}return"rgba("+255*t+","+255*n+","+255*i+","+o+")"}(n):void 0}if(/\s/g.test(e))return e;var r=A(e),s=r?e.substr(0,e.length-r.length):e;return t?s+t:s}function M(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function K(e){for(var t,n=e.points,i=0,a=0;a<n.numberOfItems;a++){var l=n.getItem(a);a>0&&(i+=M(t,l)),t=l}return i}function N(e){var t;if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*C(e,"r");case"rect":return 2*C(e,"width")+2*C(e,"height");case"line":return M({x:C(e,"x1"),y:C(e,"y1")},{x:C(e,"x2"),y:C(e,"y2")});case"polyline":return K(e);case"polygon":return t=e.points,K(e)+M(t.getItem(t.numberOfItems-1),t.getItem(0))}}function z(e,t){var n=t||{},i=n.el||function(e){for(var t=e.parentNode;m.svg(t)&&m.svg(t.parentNode);)t=t.parentNode;return t}(e),a=i.getBoundingClientRect(),l=C(i,"viewBox"),r=a.width,s=a.height,o=n.viewBox||(l?l.split(" "):[0,0,r,s]);return{el:i,viewBox:o,x:o[0]/1,y:o[1]/1,w:r,h:s,vW:o[2],vH:o[3]}}function B(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=Z(m.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(n)?i.match(n).map(Number):[0],strings:m.str(e)||t?i.split(n):[]}}function U(e){return v(e?P(m.arr(e)?e.map(k):k(e)):[],function(e,t,n){return n.indexOf(e)===t})}function H(e){var t=U(e);return t.map(function(e,n){return{target:e,id:n,total:t.length,transforms:{list:D(e)}}})}var G={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,i,a){if(i.list.set(t,n),t===i.last||a){var l="";i.list.forEach(function(e,t){l+=t+"("+e+") "}),e.style.transform=l}}};function V(e,t){H(e).forEach(function(e){for(var n in t){var i=E(t[n],e),a=e.target,l=A(i),r=R(a,n,l,e),s=O(Z(i,l||A(r)),r);G[L(a,n)](a,n,s,e.transforms,!0)}})}function W(e,t){var n=e.length,i=function(e){return e.timelineOffset?e.timelineOffset:0},a={};return a.duration=n?Math.max.apply(Math,e.map(function(e){return i(e)+e.duration})):t.duration,a.delay=n?Math.min.apply(Math,e.map(function(e){return i(e)+e.delay})):t.delay,a.endDelay=n?a.duration-Math.max.apply(Math,e.map(function(e){return i(e)+e.duration-e.endDelay})):t.endDelay,a}var $=0,Y=[],X=function(){var e;function t(n){for(var i=Y.length,a=0;a<i;){var l=Y[a];l.paused?(Y.splice(a,1),i--):(l.tick(n),a++)}e=a>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){Q.suspendWhenDocumentHidden&&(q()?e=cancelAnimationFrame(e):(Y.forEach(function(e){return e._onDocumentVisibility()}),X()))}),function(){e||q()&&Q.suspendWhenDocumentHidden||!(Y.length>0)||(e=requestAnimationFrame(t))}}();function q(){return!!document&&document.hidden}function Q(e){void 0===e&&(e={});var t,n,i,a,s,o,d,u,p,g=0,_=0,y=0,f=0,b=null;function k(e){var t=window.Promise&&new Promise(function(e){return b=e});return e.finished=t,t}var S=(n=I(l,t=e),a=function(e,t){var n=[],i=t.keyframes;for(var a in i&&(t=T(function(e){for(var t=v(P(e.map(function(e){return Object.keys(e)})),function(e){return m.key(e)}).reduce(function(e,t){return 0>e.indexOf(t)&&e.push(t),e},[]),n={},i=0;i<t.length;i++)!function(i){var a=t[i];n[a]=e.map(function(e){var t={};for(var n in e)m.key(n)?n==a&&(t.value=e[n]):t[n]=e[n];return t})}(i);return n}(i),t)),t)m.key(a)&&n.push({name:a,tweens:function(e,t){var n=w(t);if(/^spring/.test(n.easing)&&(n.duration=h(n.easing)),m.arr(e)){var i=e.length;2!==i||m.obj(e[0])?m.fnc(t.duration)||(n.duration=t.duration/i):e={value:e}}var a=m.arr(e)?e:[e];return a.map(function(e,n){var i=m.obj(e)&&!m.pth(e)?e:{value:e};return m.und(i.delay)&&(i.delay=n?0:t.delay),m.und(i.endDelay)&&(i.endDelay=n===a.length-1?t.endDelay:0),i}).map(function(e){return T(e,n)})}(t[a],e)});return n}(i=I(r,t),t),d=W(o=v(P((s=H(t.targets)).map(function(e){return a.map(function(t){return function(e,t){var n=L(e.target,t.name);if(n){var i,a=t.tweens.map(function(n){var a=function(e,t){var n={};for(var i in e){var a=E(e[i],t);m.arr(a)&&1===(a=a.map(function(e){return E(e,t)})).length&&(a=a[0]),n[i]=a}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(n,e),l=a.value,r=m.arr(l)?l[1]:l,s=A(r),o=R(e.target,t.name,s,e),d=i?i.to.original:o,c=m.arr(l)?l[0]:d,u=A(c)||A(o),p=s||u;return m.und(r)&&(r=d),a.from=B(c,p),a.to=B(O(r,c),p),a.start=i?i.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=x(a.easing,a.duration),a.isPath=m.pth(l),a.isPathTargetInsideSVG=a.isPath&&m.svg(e.target),a.isColor=m.col(a.from.original),a.isColor&&(a.round=1),i=a,a}),l=a[a.length-1];return{type:n,property:t.name,animatable:e,tweens:a,duration:l.end,delay:a[0].delay,endDelay:l.endDelay}}}(e,t)})})),function(e){return!m.und(e)}),i),u=$,$++,T(n,{id:u,children:[],animatables:s,animations:o,duration:d.duration,delay:d.delay,endDelay:d.endDelay}));function C(){var e=S.direction;"alternate"!==e&&(S.direction="normal"!==e?"normal":"reverse"),S.reversed=!S.reversed,p.forEach(function(e){return e.reversed=S.reversed})}function j(e){return S.reversed?S.duration-e:e}function F(){g=0,_=j(S.currentTime)*(1/Q.speed)}function D(e,t){t&&t.seek(e-t.timelineOffset)}function Z(e){for(var t=0,n=S.animations,i=n.length;t<i;){var a=n[t],l=a.animatable,r=a.tweens,s=r.length-1,o=r[s];s&&(o=v(r,function(t){return e<t.end})[0]||o);for(var d=c(e-o.start-o.delay,0,o.duration)/o.duration,u=isNaN(d)?1:o.easing(d),p=o.to.strings,m=o.round,g=[],h=o.to.numbers.length,_=void 0,y=0;y<h;y++){var f=void 0,x=o.to.numbers[y],b=o.from.numbers[y]||0;f=o.isPath?function(e,t,n){function i(n){void 0===n&&(n=0);var i=t+n>=1?t+n:0;return e.el.getPointAtLength(i)}var a=z(e.el,e.svg),l=i(),r=i(-1),s=i(1),o=n?1:a.w/a.vW,d=n?1:a.h/a.vH;switch(e.property){case"x":return(l.x-a.x)*o;case"y":return(l.y-a.y)*d;case"angle":return 180*Math.atan2(s.y-r.y,s.x-r.x)/Math.PI}}(o.value,u*x,o.isPathTargetInsideSVG):b+u*(x-b),m&&!(o.isColor&&y>2)&&(f=Math.round(f*m)/m),g.push(f)}var P=p.length;if(P){_=p[0];for(var k=0;k<P;k++){p[k];var w=p[k+1],I=g[k];isNaN(I)||(w?_+=I+w:_+=I+" ")}}else _=g[0];G[a.type](l.target,a.property,_,l.transforms),a.currentValue=_,t++}}function M(e){S[e]&&!S.passThrough&&S[e](S)}function K(e){var t=S.duration,n=S.delay,i=t-S.endDelay,a=j(e);S.progress=c(a/t*100,0,100),S.reversePlayback=a<S.currentTime,p&&function(e){if(S.reversePlayback)for(var t=f;t--;)D(e,p[t]);else for(var n=0;n<f;n++)D(e,p[n])}(a),!S.began&&S.currentTime>0&&(S.began=!0,M("begin")),!S.loopBegan&&S.currentTime>0&&(S.loopBegan=!0,M("loopBegin")),a<=n&&0!==S.currentTime&&Z(0),(a>=i&&S.currentTime!==t||!t)&&Z(t),a>n&&a<i?(S.changeBegan||(S.changeBegan=!0,S.changeCompleted=!1,M("changeBegin")),M("change"),Z(a)):S.changeBegan&&(S.changeCompleted=!0,S.changeBegan=!1,M("changeComplete")),S.currentTime=c(a,0,t),S.began&&M("update"),e>=t&&(_=0,S.remaining&&!0!==S.remaining&&S.remaining--,S.remaining?(g=y,M("loopComplete"),S.loopBegan=!1,"alternate"===S.direction&&C()):(S.paused=!0,!S.completed&&(S.completed=!0,M("loopComplete"),M("complete"),!S.passThrough&&"Promise"in window&&(b(),k(S)))))}return k(S),S.reset=function(){var e=S.direction;S.passThrough=!1,S.currentTime=0,S.progress=0,S.paused=!0,S.began=!1,S.loopBegan=!1,S.changeBegan=!1,S.completed=!1,S.changeCompleted=!1,S.reversePlayback=!1,S.reversed="reverse"===e,S.remaining=S.loop,f=(p=S.children).length;for(var t=f;t--;)S.children[t].reset();(S.reversed&&!0!==S.loop||"alternate"===e&&1===S.loop)&&S.remaining++,Z(S.reversed?S.duration:0)},S._onDocumentVisibility=F,S.set=function(e,t){return V(e,t),S},S.tick=function(e){y=e,g||(g=y),K((y+(_-g))*Q.speed)},S.seek=function(e){K(j(e))},S.pause=function(){S.paused=!0,F()},S.play=function(){S.paused&&(S.completed&&S.reset(),S.paused=!1,Y.push(S),F(),X())},S.reverse=function(){C(),S.completed=!S.reversed,F()},S.restart=function(){S.reset(),S.play()},S.remove=function(e){ee(U(e),S)},S.reset(),S.autoplay&&S.play(),S}function J(e,t){for(var n=t.length;n--;)S(e,t[n].animatable.target)&&t.splice(n,1)}function ee(e,t){var n=t.animations,i=t.children;J(e,n);for(var a=i.length;a--;){var l=i[a],r=l.animations;J(e,r),r.length||l.children.length||i.splice(a,1)}n.length||i.length||t.pause()}Q.version="3.2.1",Q.speed=1,Q.suspendWhenDocumentHidden=!0,Q.running=Y,Q.remove=function(e){for(var t=U(e),n=Y.length;n--;)ee(t,Y[n])},Q.get=R,Q.set=V,Q.convertPx=j,Q.path=function(e,t){var n=m.str(e)?b(e)[0]:e,i=t||100;return function(e){return{property:e,el:n,svg:z(n),totalLength:N(n)*(i/100)}}},Q.setDashoffset=function(e){var t=N(e);return e.setAttribute("stroke-dasharray",t),t},Q.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",i=t.easing?x(t.easing):null,a=t.grid,l=t.axis,r=t.from||0,s="first"===r,o="center"===r,d="last"===r,c=m.arr(e),u=c?parseFloat(e[0]):parseFloat(e),p=c?parseFloat(e[1]):0,g=A(c?e[1]:e)||0,h=t.start||0+(c?u:0),_=[],y=0;return function(e,t,m){if(s&&(r=0),o&&(r=(m-1)/2),d&&(r=m-1),!_.length){for(var f=0;f<m;f++){if(a){var x=o?(a[0]-1)/2:r%a[0],b=o?(a[1]-1)/2:Math.floor(r/a[0]),v=f%a[0],P=Math.floor(f/a[0]),k=x-v,S=b-P,w=Math.sqrt(k*k+S*S);"x"===l&&(w=-k),"y"===l&&(w=-S),_.push(w)}else _.push(Math.abs(r-f));y=Math.max.apply(Math,_)}i&&(_=_.map(function(e){return i(e/y)*y})),"reverse"===n&&(_=_.map(function(e){return l?e<0?-1*e:-e:Math.abs(y-e)}))}return h+(c?(p-u)/y:u)*(Math.round(100*_[t])/100)+g}},Q.timeline=function(e){void 0===e&&(e={});var t=Q(e);return t.duration=0,t.add=function(n,i){var a=Y.indexOf(t),l=t.children;function s(e){e.passThrough=!0}a>-1&&Y.splice(a,1);for(var o=0;o<l.length;o++)s(l[o]);var d=T(n,I(r,e));d.targets=d.targets||e.targets;var c=t.duration;d.autoplay=!1,d.direction=t.direction,d.timelineOffset=m.und(i)?c:O(i,c),s(t),t.seek(d.timelineOffset);var u=Q(d);s(u),l.push(u);var p=W(l,e);return t.delay=p.delay,t.endDelay=p.endDelay,t.duration=p.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},Q.easing=x,Q.penner=f,Q.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};let et=Q},762587:e=>{"use strict";e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var l=/\+/g;e=e.split(t);var r=1e3;i&&"number"==typeof i.maxKeys&&(r=i.maxKeys);var s=e.length;r>0&&s>r&&(s=r);for(var o=0;o<s;++o){var d,c,u,p,m=e[o].replace(l,"%20"),g=m.indexOf(n);(g>=0?(d=m.substr(0,g),c=m.substr(g+1)):(d=m,c=""),u=decodeURIComponent(d),p=decodeURIComponent(c),Object.prototype.hasOwnProperty.call(a,u))?Array.isArray(a[u])?a[u].push(p):a[u]=[a[u],p]:a[u]=p}return a}},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,n,i,a){return(n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e)?Object.keys(e).map(function(a){var l=encodeURIComponent(t(a))+i;return Array.isArray(e[a])?e[a].map(function(e){return l+encodeURIComponent(t(e))}).join(n):l+encodeURIComponent(t(e[a]))}).join(n):a?encodeURIComponent(t(a))+i+encodeURIComponent(t(e)):""}},817673:(e,t,n)=>{"use strict";t.decode=t.parse=n(762587),t.encode=t.stringify=n(712361)},615071:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var i=n(487462),a=n(263366),l=n(894578);function r(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}n(966149);var s=n(667294),o=n(973935);let d={disabled:!1};var c=n(500220),u="unmounted",p="exited",m="entering",g="entered",h="exiting",_=function(e){function t(t,n){i=e.call(this,t,n)||this;var i,a,l=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?l?(a=p,i.appearStatus=m):a=g:a=t.unmountOnExit||t.mountOnEnter?u:p,i.state={status:a},i.nextCallback=null,i}(0,l.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==m&&n!==g&&(t=m):(n===m||n===g)&&(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===m?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===p&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,a=this.props.nodeRef?[i]:[o.findDOMNode(this),i],l=a[0],r=a[1],s=this.getTimeouts(),c=i?s.appear:s.enter;if(!e&&!n||d.disabled){this.safeSetState({status:g},function(){t.props.onEntered(l)});return}this.props.onEnter(l,r),this.safeSetState({status:m},function(){t.props.onEntering(l,r),t.onTransitionEnd(c,function(){t.safeSetState({status:g},function(){t.props.onEntered(l,r)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:o.findDOMNode(this);if(!t||d.disabled){this.safeSetState({status:p},function(){e.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:h},function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:p},function(){e.props.onExited(i)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(!n||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],l=a[0],r=a[1];this.props.addEndListener(l,r)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,a.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(c.Z.Provider,{value:null},"function"==typeof n?n(e,i):s.cloneElement(s.Children.only(n),i))},t}(s.Component);function y(){}_.contextType=c.Z,_.propTypes={},_.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},_.UNMOUNTED=u,_.EXITED=p,_.ENTERING=m,_.ENTERED=g,_.EXITING=h;var f=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))})},x=function(e){function t(){for(var t,n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var i=t.resolveArguments(e,n),a=i[0],l=i[1];t.removeClasses(a,"exit"),t.addClass(a,l?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var i=t.resolveArguments(e,n),a=i[0],l=i[1];t.addClass(a,l?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var i=t.resolveArguments(e,n),a=i[0],l=i[1]?"appear":"enter";t.removeClasses(a,l),t.addClass(a,l,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,i="string"==typeof n,a=i&&n?n+"-":"",l=i?""+a+e:n[e],r=i?l+"-active":n[e+"Active"],s=i?l+"-done":n[e+"Done"];return{baseClassName:l,activeClassName:r,doneClassName:s}},t}(0,l.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var i,a=this.getClassNames(t)[n+"ClassName"],l=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&l&&(a+=" "+l),"active"===n&&e&&e.scrollTop,a&&(this.appliedClasses[t][n]=a,i=a,e&&i&&i.split(" ").forEach(function(t){var n,i;return n=e,i=t,void(n.classList?n.classList.add(i):(n.classList?i&&n.classList.contains(i):-1!==(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+i+" "))||("string"==typeof n.className?n.className=n.className+" "+i:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+i)))}))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],i=n.base,a=n.active,l=n.done;this.appliedClasses[t]={},i&&f(e,i),a&&f(e,a),l&&f(e,l)},n.render=function(){var e=this.props,t=(e.classNames,(0,a.Z)(e,["classNames"]));return s.createElement(_,(0,i.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);x.defaultProps={classNames:""},x.propTypes={};let b=x},500220:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=n(667294).createContext(null)},852661:(e,t,n)=>{"use strict";var i=n(37303);function a(){}e.exports=function(){function e(e,t,n,a,l,r){if(r!==i){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=a,n.PropTypes=n,n}},966149:(e,t,n)=>{e.exports=n(852661)()},37303:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},442279:(e,t)=>{"use strict";function n(e,t){return e===t}t.P1=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return function(){for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];var l=0,r=i.pop(),s=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}(i),o=e.apply(void 0,[function(){return l++,r.apply(void 0,arguments)}].concat(n)),d=function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];var l=s.map(function(n){return n.apply(void 0,[e,t].concat(i))});return o.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}(l))};return d.resultFunc=r,d.recomputations=function(){return l},d.resetRecomputations=function(){return l=0},d}}(function(e){var t=arguments.length<=1||void 0===arguments[1]?n:arguments[1],i=null,a=null;return function(){for(var n=arguments.length,l=Array(n),r=0;r<n;r++)l[r]=arguments[r];return null!==i&&i.length===l.length&&l.every(function(e,n){return t(e,i[n])})||(a=e.apply(void 0,l)),i=l,a}})},447057:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AdReasonsModalContainer_pin",selections:[{alias:null,args:null,concreteType:"AdTargetingAttribution",kind:"LinkedField",name:"adTargetingAttribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isCustomerListMatched",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isActalikeMatched",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEngagementMatched",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isExpandTargetingMatched",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isFromGpsLocation",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isVisitorMatched",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isShoppingProspectingMatched",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPlPersonaMatched",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchedAgeBucket",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchedLocale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchedInterest",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchedGender",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchedDevice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchedKeyword",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"geoRegion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"geoPostalCode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isFirstPartyAdPersonalizationEnabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isThirdPartyAdPersonalizationEnabled",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"promotedPartnershipAdvertiserName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"promotedPartnershipAttributionName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPromotedPartnership",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"digitalMediaSourceType",storageKey:null}],type:"Pin",abstractKey:null};i.hash="5eab0350f3762270ed657ef0c1fd85da";let a=i},840397:(e,t,n)=>{"use strict";var i,a,l,r;n.r(t),n.d(t,{default:()=>o});let s={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AdsCollectionChips_pin",selections:[{alias:null,args:null,concreteType:"AdData",kind:"LinkedField",name:"adData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ceAltImageSignature",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"PinTagChipImagesPerSpec",kind:"LinkedField",name:"pinTagsChips",plural:!0,selections:[{alias:"entityId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"Thumbnails",kind:"LinkedField",name:"image",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CollectionPin",kind:"LinkedField",name:"collectionPin",plural:!1,selections:[{alias:null,args:null,concreteType:"CollectionPinItem",kind:"LinkedField",name:"itemData",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinId",storageKey:null},{alias:null,args:[{kind:"Literal",name:"spec",value:"750x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:[a,l,i],storageKey:'images(spec:"750x")'},r],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dpaCreativeType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],type:"Pin",abstractKey:null};s.hash="06e33c9b7be6c4d5bff0f2e163cfa948";let o=s},845566:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AnimatedSendButton_pin",selections:[{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"236x")'},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="b061bd8ccb9bc99b9815d9da039a4559";let a=i},11475:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CarouselEllipsis_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{args:null,kind:"FragmentSpread",name:"useLogSwipe_pin"},{args:null,kind:"FragmentSpread",name:"usePinCarouselData_pin"}],type:"Pin",abstractKey:null};i.hash="d9fe632f7481dc91f9007bbd592d44c2";let a=i},171431:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CarouselSlidersForAuthDesktopPinRep_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{args:null,kind:"FragmentSpread",name:"useLogSwipe_pin"},{args:null,kind:"FragmentSpread",name:"usePinCarouselData_pin"}],type:"Pin",abstractKey:null};i.hash="d6068e37ffbce623dcbd7bef0b4e6bce";let a=i},357289:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={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};i.hash="4b0c4a7a095db0d3cc7f22f3f6c85086";let a=i},106183:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ContextMenuClickthroughLogging_pin",selections:[{alias:null,args:null,concreteType:"AdData",kind:"LinkedField",name:"adData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ceAltImageSignature",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dpaCreativeType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:i=[{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:i,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:i,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:i,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{args:null,kind:"FragmentSpread",name:"useGetStringifiedCommerceAuxData_pin"}],type:"Pin",abstractKey:null};a.hash="7b1ef02ffafe375cab4d3317e726a736";let l=a},414940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={kind:"InlineDataFragment",name:"OneTapSaveNodeId_pin"};i.hash="547bc01e150a3d8f197b07fe6159e9b1";let a=i},606187:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OneTapSaveWithActions_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{kind:"InlineDataFragmentSpread",name:"OneTapSaveNodeId_pin",selections:[{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],args:null,argumentDefinitions:[]},{kind:"ClientExtension",selections:[{alias:null,args:null,concreteType:"SaveTarget",kind:"LinkedField",name:"savedInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"boardId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"localPinId",storageKey:null}],storageKey:null}]}],type:"Pin",abstractKey:null};i.hash="29cbbf3046fc1c7443a6166f577a53ab";let a=i},287861:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OneTapSave_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"QuickSaveButtonNux_pin"},{args:null,kind:"FragmentSpread",name:"OneTapSaveWithActions_pin"}],type:"Pin",abstractKey:null};i.hash="0394d744c5a77051be3d049d10001d92";let a=i},942852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[{kind:"RootArgument",name:"isDesktop"}],kind:"Fragment",metadata:null,name:"PinActionBarOptionsButton_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"shoppingKlpUrls",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useClickthrough_pin"},{args:null,kind:"FragmentSpread",name:"VaseSection_pin"},{condition:"isDesktop",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"UnauthPinContextMenu_pin"}]}],type:"Pin",abstractKey:null};i.hash="364e7b5e0141658502ea20c6cc513e0b";let a=i},154672:(e,t,n)=>{"use strict";var i,a;n.r(t),n.d(t,{default:()=>r});let l=(a=[i={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinCardDetails_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"isCollaborative",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},i,{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:"isPromoted",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:a,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:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"ReactionCountModel",kind:"LinkedField",name:"reactionCountsData",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"reactionCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reactionType",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayCookTime",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},{alias:null,args:null,kind:"ScalarField",name:"shouldOpenInStream",storageKey:null},{alias:null,args:null,concreteType:"Sponsorship",kind:"LinkedField",name:"sponsorship",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"creator",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sponsor",plural:!1,selections:a,storageKey:null}],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}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:a,storageKey:null},{args:null,kind:"FragmentSpread",name:"PinFooterProductContent_pin"},{args:null,kind:"FragmentSpread",name:"pinRepDataType_pin"},{args:null,kind:"FragmentSpread",name:"PriceLego_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinSourceText_pin"},{args:null,kind:"FragmentSpread",name:"useGetCredits_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinRepTitleAndDescription_pin"},{args:null,kind:"FragmentSpread",name:"useGetIsImageOnlyAllAttributionHidden_pin"}],type:"Pin",abstractKey:null});l.hash="7103a7146122e0e42f6e68c9d3ed546f";let r=l},276454:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinCardHoverOverlay_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],type:"Pin",abstractKey:null};i.hash="6c47d8b24fa6a6b068a8d2fd5c4963b6";let a=i},4444:(e,t,n)=>{"use strict";var i,a,l,r,s,o,d;n.r(t),n.d(t,{default:()=>u});let c={fragment:{argumentDefinitions:i=[{defaultValue:null,kind:"LocalArgument",name:"invite_code"}],kind:"Fragment",metadata:null,name:"PinCardSharedHeaderQuery",selections:[{alias:null,args:a=[{kind:"Variable",name:"inviteCode",variableName:"invite_code"}],concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[l={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:[r={alias:"first_name",args:null,kind:"ScalarField",name:"firstName",storageKey:null},s={alias:"is_default_image",args:null,kind:"ScalarField",name:"isDefaultImage",storageKey:null},o={alias:"image_medium_url",args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:i,kind:"Operation",name:"PinCardSharedHeaderQuery",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[l,{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:[r,s,o,d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},d],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}]},params:{id:"6ecc0f5ef5b300806765351890d4c30338f4cba0f2ed6262aebb971f8d13cedd",metadata:{},name:"PinCardSharedHeaderQuery",operationKind:"query",text:null}};c.hash="6113bb3593481961950c5053449014f3";let u=c;!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}}}(c.default||c)},437947:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinCardVisual_board",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}],type:"Board",abstractKey:null};i.hash="384a66acd024452b602e6b286681e7c5";let a=i},865220:(e,t,n)=>{"use strict";var i,a,l,r,s,o;n.r(t),n.d(t,{default:()=>c});let d=(i={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},o=[a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinCardVisual_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinPage",kind:"LinkedField",name:"pages",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[{kind:"InlineFragment",selections:[a,{alias:null,args:null,kind:"ScalarField",name:"blockType",storageKey:null},{alias:null,args:null,concreteType:"StoryPinVideoMetadata",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:"entityId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"StoryPinVideoFormats",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"thumbnail",storageKey:null},r,s],storageKey:null}],storageKey:null}],storageKey:null}],type:"StoryPinVideoBlock",abstractKey:null}],storageKey:null}],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},i,{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:[l,s,r],storageKey:'images(spec:"236x")'}],storageKey:null}],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:"vHLSV4",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV3MOBILE",plural:!1,selections:o,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[i],storageKey:null},{args:null,kind:"FragmentSpread",name:"OneTapSave_pin"},{args:null,kind:"FragmentSpread",name:"useLogSwipe_pin"},{args:null,kind:"FragmentSpread",name:"CarouselSliders_pin"},{args:null,kind:"FragmentSpread",name:"PinVideoWithVisibility_pin"},{args:null,kind:"FragmentSpread",name:"PinCardHoverOverlay_pin"},{args:null,kind:"FragmentSpread",name:"ShoppingIndicator_pin"},{args:null,kind:"FragmentSpread",name:"useShowShoppingIndicatorOverlay_pin"}],type:"Pin",abstractKey:null});d.hash="ba593c10af49a278681a0a22cda42a3c";let c=d},565309:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinFooterProductContent_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isCollaborative",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,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}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useGetPinSourceText_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinTitle_pin"}],type:"Pin",abstractKey:null};i.hash="e6d0b8642d0833dcc556d79561749e41";let a=i},892153:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinImageDomainLink_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{args:null,kind:"FragmentSpread",name:"useDomainLinkClickthroughLogger_pin"}],type:"Pin",abstractKey:null};i.hash="c836c70d796670b24b3a4dcba866926a";let a=i},242956:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRepFooterDetails_pin",selections:[{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isDeleted",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{args:null,kind:"FragmentSpread",name:"ContextualMenu_pin"},{args:null,kind:"FragmentSpread",name:"PinCardDetails_pin"},{args:null,kind:"FragmentSpread",name:"pinRepDataType_pin"}],type:"Pin",abstractKey:null};i.hash="fdeedd11420bc775f4b653d4e5ae34b5";let a=i},429478:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRepFooterSeoMetadata_pin",selections:[{args:null,kind:"FragmentSpread",name:"SeoPageMetadataText_pin"}],type:"Pin",abstractKey:null};i.hash="fd178e2e68088bd7078d82981acef5a8";let a=i},207426:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRepFooter_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"videoStatus",storageKey:null},{args:null,kind:"FragmentSpread",name:"PinRepFooterProduct_pin"},{args:null,kind:"FragmentSpread",name:"PinRepFooterDefault_pin"},{args:null,kind:"FragmentSpread",name:"useGetFooterHeight_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinRepFooterProps_pin"}],type:"Pin",abstractKey:null};i.hash="5a3c3dfd922055537dbfa1b744064188";let a=i},763008:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRepInner_board",selections:[{args:null,kind:"FragmentSpread",name:"PinCardVisual_board"}],type:"Board",abstractKey:null};i.hash="05f116c6caad8adf30a12ec8c30d4d23";let a=i},103283:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[{kind:"RootArgument",name:"isDesktop"},{defaultValue:!1,kind:"LocalArgument",name:"skipUnauthFragment"}],kind:"Fragment",metadata:null,name:"PinRepInner_pin",selections:[{condition:"isDesktop",kind:"Condition",passingValue:!0,selections:[{condition:"skipUnauthFragment",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"UnauthPinRightClickMenu_pin"}]}]},{args:null,kind:"FragmentSpread",name:"AdsCollectionChips_pin"},{args:null,kind:"FragmentSpread",name:"PinRepFooterDetails_pin"},{args:null,kind:"FragmentSpread",name:"PinCardVisual_pin"}],type:"Pin",abstractKey:null};i.hash="addaad4c74720f009b300764292f0b99";let a=i},590853:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRepPrimaryContent_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{args:null,kind:"FragmentSpread",name:"QuickSaveButton_pin"},{args:null,kind:"FragmentSpread",name:"PinSaveButton_pin"},{args:null,kind:"FragmentSpread",name:"PinBetterSave_pin"},{args:null,kind:"FragmentSpread",name:"PinPromoteButton_pin"},{kind:"ClientExtension",selections:[{alias:null,args:null,concreteType:"SaveTarget",kind:"LinkedField",name:"savedInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}]}],type:"Pin",abstractKey:null};i.hash="390272d722e4c1516dff4e1b6be15b2e";let a=i},368313:(e,t,n)=>{"use strict";var i,a,l,r,s,o,d,c,u,p,m,g,h,_;n.r(t),n.d(t,{default:()=>f});let y=(i={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},s={args:null,kind:"FragmentSpread",name:"PinRepInner_board"},u=[o={alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],p={alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},g=[a,m={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:"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:[i],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:[a,{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null},l,{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},r,s],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:"debug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"descriptionHtml",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},o,{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},i,c],storageKey:null},a,{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:u,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:u,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:u,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:u,storageKey:'images(spec:"474x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:u,storageKey:'images(spec:"736x")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:u,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:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},p,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:g,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:[a,s],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null},m],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:g,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null},{alias:null,args:null,concreteType:"Sponsorship",kind:"LinkedField",name:"sponsorship",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"creator",plural:!1,selections:g,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sponsor",plural:!1,selections:g,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isDeleted",storageKey:null}],storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"title",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:[a,{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},d,c,r],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:[l,r],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reason",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:[h,{alias:null,args:null,kind:"ScalarField",name:"details",storageKey:null},p],storageKey:null}],storageKey:null},{condition:"skipUnauthFragment",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"UnauthProductAttribution_pin"}]},{args:null,kind:"FragmentSpread",name:"PinRepFooterSeoMetadata_pin"},{args:null,kind:"FragmentSpread",name:"VaseAnnotations_pin"},{args:null,kind:"FragmentSpread",name:"useTrackPin_pin"},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"PinTagChipImagesPerSpec",kind:"LinkedField",name:"pinTagsChips",plural:!0,selections:_=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CollectionPin",kind:"LinkedField",name:"collectionPin",plural:!1,selections:[{alias:null,args:null,concreteType:"CollectionPinItem",kind:"LinkedField",name:"itemData",plural:!0,selections:_,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AdData",kind:"LinkedField",name:"adData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"collectionGridClickType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ceAltImageSignature",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isGoLinkless",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dpaCreativeType",storageKey:null},{args:null,kind:"FragmentSpread",name:"pinRepDataType_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinRecommendationDescription_pin"},{args:null,kind:"FragmentSpread",name:"useGetIsImageOnlyAllAttributionHidden_pin"},{args:null,kind:"FragmentSpread",name:"PinFooterProductContent_pin"},{args:null,kind:"FragmentSpread",name:"PinRepFooter_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinHiddenFeedbackText_pin"},{args:null,kind:"FragmentSpread",name:"usePinGifOrImageSrc_pin"},{args:null,kind:"FragmentSpread",name:"useSetCloseupPreviewContext_pin"},{args:null,kind:"FragmentSpread",name:"PinTypeIdentifier_pin"},{args:null,kind:"FragmentSpread",name:"CarouselSlidersForAuthDesktopPinRep_pin"},{args:null,kind:"FragmentSpread",name:"usePinRepVisibility_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinRepDeepLinkProps_pin"},{args:[{kind:"Variable",name:"skipUnauthFragment",variableName:"skipUnauthFragment"}],kind:"FragmentSpread",name:"PinRepInner_pin"},{args:null,kind:"FragmentSpread",name:"useSaveButtonOptions_pin"},{args:null,kind:"FragmentSpread",name:"PinRepPrimaryContent_pin"},{args:null,kind:"FragmentSpread",name:"AnimatedSendButton_pin"},{args:null,kind:"FragmentSpread",name:"PinImageDomainLink_pin"},{args:null,kind:"FragmentSpread",name:"PinActionBarOptionsButton_pin"}],type:"Pin",abstractKey:null});y.hash="d4110463db6cd84963f8a2a149155205";let f=y},106546:(e,t,n)=>{"use strict";var i,a;n.r(t),n.d(t,{default:()=>r});let l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinTypeIdentifier_pin",selections:[{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:[i={alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null}],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:a=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},i,{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:"additionalImageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:a,storageKey:'additionalImagesPerSpec(spec:"236x")'},{alias:"additionalImageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:a,storageKey:'additionalImagesPerSpec(spec:"474x")'},{alias:"additionalImageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:a,storageKey:'additionalImagesPerSpec(spec:"564x")'},{alias:"additionalImageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:a,storageKey:'additionalImagesPerSpec(spec:"736x")'}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null},{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,concreteType:"LabelInfo",kind:"LinkedField",name:"labelInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"labels",storageKey:null}],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:"price",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shouldOpenInStream",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null},{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:a,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:a,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,concreteType:"ProductMetadataV2",kind:"LinkedField",name:"productPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"ItemMetadata",kind:"LinkedField",name:"items",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"additionalImagesLength",storageKey:null}],storageKey:null}],storageKey:null},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:a,storageKey:'images(spec:"orig")'},{alias: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}],type:"Pin",abstractKey:null};l.hash="d6be44a20bccc42ca756c356226a62c3";let r=l},816836:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={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:[i={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:[i,{alias:null,args:null,kind:"ScalarField",name:"siteName",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};a.hash="4a2543bd99e1b908c6c94274a303fcbc";let l=a},640824:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"QuickSaveButtonNux_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null}],type:"Pin",abstractKey:null};i.hash="40f871beedb776a1c10a51587e02ece5";let a=i},331930:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SeeMoreButton_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{args:null,kind:"FragmentSpread",name:"VaseSection_pin"}],type:"Pin",abstractKey:null};i.hash="77edb4f121bab7fa28896a123d9221cb";let a=i},416129:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SeoPageMetadataText_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"description",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:[i={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"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:"SeeMoreButton_pin"}],type:"Pin",abstractKey:null};a.hash="66fedb7c84562fbbb26d186a0060e9b7";let l=a},917482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ShoppingIndicator_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null}],type:"Pin",abstractKey:null};i.hash="b67c0721483fd60eb782e58824088732";let a=i},123870:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SourceLink_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"adDestinationUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"advertiserId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"attributionSourceId",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"campaignId",storageKey:null},{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,concreteType:"PinCarouselSlot",kind:"LinkedField",name:"carouselSlots",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinPromotionId",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[i],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{args:null,kind:"FragmentSpread",name:"ContextMenuClickthroughLogging_pin"},{args:null,kind:"FragmentSpread",name:"useGetStringifiedCommerceAuxData_pin"},{args:null,kind:"FragmentSpread",name:"useDomainLinkClickthroughLogger_pin"}],type:"Pin",abstractKey:null};a.hash="5fea15643cf0d72874b78d7b7a4f43d6";let l=a},280948:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UnauthProductAttribution_pin",selections:[{args:null,kind:"FragmentSpread",name:"PinRepFooterProduct_pin"},{args:null,kind:"FragmentSpread",name:"useGetFooterHeight_pin"}],type:"Pin",abstractKey:null};i.hash="e496be4bf09e255e93f72efc941dbf67";let a=i},590606:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseAnnotations_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",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},{args:null,kind:"FragmentSpread",name:"useAnnotationsWithLinksFragment_pin"}],type:"Pin",abstractKey:null};i.hash="e2867990c45528eac642c5e30a30a078";let a=i},582802:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"pinRepDataType_pin",selections:[{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:[i={alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null}],storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"isEligibleForWebCloseup",storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};a.hash="e8f11d25a83ca618602d791d123aa5c5";let l=a},822087:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={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};i.hash="35075da6e1f4b526ac4314727015c44d";let a=i},111476:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useClickthrough_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mobileLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],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},{args:null,kind:"FragmentSpread",name:"usePinImageUrls_pin"},{args:null,kind:"FragmentSpread",name:"useCommerceData_pin"}],type:"Pin",abstractKey:null};i.hash="f56870994667cb51da2ca3c4833d8927";let a=i},219952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useCommerceData_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null}],type:"Pin",abstractKey:null};i.hash="1b446350cec79dea7b3946321fdb0a52";let a=i},357077:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useDomainLinkClickthroughLogger_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{args:null,kind:"FragmentSpread",name:"useGetStringifiedCommerceAuxData_pin"}],type:"Pin",abstractKey:null};i.hash="d634efcea7b2d1c3973609eeefa3274e";let a=i},715898:(e,t,n)=>{"use strict";var i,a,l,r,s,o;n.r(t),n.d(t,{default:()=>c});let d=(o=[i={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetCredits_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",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,a,l,r,{alias:null,args:null,kind:"ScalarField",name:"isPrimaryWebsiteVerified",storageKey:null},s],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:o,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:o,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sponsor",plural:!1,selections:o,storageKey:null}],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}],storageKey:null}],type:"Pin",abstractKey:null});d.hash="09005664f5bdf7c5c48658ab799a8555";let c=d},535997:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetFeedbackType_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:i=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinRecommendationReason",kind:"LinkedField",name:"recommendationReason",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"reason",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:i,storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};a.hash="09058e2c22f768d113516b357e48e9cd";let l=a},189186:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetFooterHeight_pin",selections:[{args:null,kind:"FragmentSpread",name:"useGetPinRepTitleAndDescription_pin"},{args:null,kind:"FragmentSpread",name:"useGetUnauthFooterProps_pin"}],type:"Pin",abstractKey:null};i.hash="280b797f32c8ac3af6ff26b8e8df990f";let a=i},339455:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetIsImageOnlyAllAttributionHidden_pin",selections:[{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="abbc3ddaaf75469929b113c19a22eeab";let a=i},766114:(e,t,n)=>{"use strict";var i,a;n.r(t),n.d(t,{default:()=>r});let l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetPinAnalyticsStatus_pin",selections:[{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[a={alias:null,args:null,concreteType:"PinAnalyticsStats",kind:"LinkedField",name:"creatorAnalytics",plural:!1,selections:[{alias:null,args:null,concreteType:"CreatorAnalytics",kind:"LinkedField",name:"_30dRealtime",plural:!1,selections:i=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null}],storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"isRepin",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,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:i,storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};l.hash="7b5cbc9aff4e508a82f7277c0c398fe3";let r=l},513004:(e,t,n)=>{"use strict";var i,a,l;n.r(t),n.d(t,{default:()=>s});let r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetPinHiddenFeedbackText_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},a={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:"explicitlyFollowedByMe",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[l],storageKey:null},{alias:null,args:null,concreteType:"Interest",kind:"LinkedField",name:"sourceInterest",plural:!1,selections:[i,a,{alias:null,args:null,kind:"ScalarField",name:"urlName",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};r.hash="b63669be5b8d253a5df7b4d5c61f0037";let s=r},286906:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetPinProductCurrentAndOriginalPrice_pin",selections:[{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,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}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="37491d04346db29ac63adec3628619df";let a=i},669408:(e,t,n)=>{"use strict";var i,a,l,r;n.r(t),n.d(t,{default:()=>o});let s=(l={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetPinRecommendationDescription_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"adMatchReason",storageKey:null},a={alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[i={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:"explicitlyFollowedByMe",storageKey:null},l,r],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[l,r],storageKey:null},{alias:null,args:null,concreteType:"Interest",kind:"LinkedField",name:"sourceInterest",plural:!1,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"urlName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PinRecommendationReason",kind:"LinkedField",name:"recommendationReason",plural:!1,selections:[a],storageKey:null}],type:"Pin",abstractKey:null});s.hash="00f2295c5efdc68960c49b10df38c74e";let o=s},965149:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetPinRepDeepLinkProps_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"adDestinationUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"advertiserId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"attributionSourceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"campaignId",storageKey:null},{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,concreteType:"PinCarouselSlot",kind:"LinkedField",name:"carouselSlots",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},i,{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,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null}],type:"Pin",abstractKey:null};a.hash="2182c982dad1a453438891df3bfe6bbe";let l=a},963213:(e,t,n)=>{"use strict";var i,a,l;n.r(t),n.d(t,{default:()=>s});let r=(l=[a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetPinRepFooterProps_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"collaboratorCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isCollaborative",storageKey:null}],storageKey:null},i,{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:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isShoppable",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[i],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Sponsorship",kind:"LinkedField",name:"sponsorship",plural:!1,selections:[a],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:"isDeleted",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{args:null,kind:"FragmentSpread",name:"useGetFeedbackType_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinAnalyticsStatus_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinProductCurrentAndOriginalPrice_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinSourceText_pin"},{args:null,kind:"FragmentSpread",name:"useGetPinTitle_pin"},{args:null,kind:"FragmentSpread",name:"useGetShowFooter_pin"},{args:null,kind:"FragmentSpread",name:"useGetShowNativeReactions_pin"}],type:"Pin",abstractKey:null});r.hash="e2d09f831d606346e9098d25f070e644";let s=r},143818:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetPinRepTitleAndDescription_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:"title",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupDescription",storageKey:null},i={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:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[i],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}],type:"Pin",abstractKey:null};a.hash="7923eb04cf5841aaaac0597f24a34c85";let l=a},953109:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetPinSourceText_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:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,concreteType:"Brand",kind:"LinkedField",name:"brand",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinProductMerchant_pin"}],type:"Pin",abstractKey:null};i.hash="6ef67b33c06bb89c4d58b6aee4b40b3f";let a=i},573219:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetPinTitle_pin",selections:[i={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:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",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:[i],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"access",storageKey:null}],type:"Pin",abstractKey:null};a.hash="1e4e0e76a759656669add254f7e98d79";let l=a},552454:(e,t,n)=>{"use strict";var i,a;n.r(t),n.d(t,{default:()=>r});let l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetShowFooter_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"collaboratedByMe",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"owner",plural:!1,selections:i=[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:a=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Sponsorship",kind:"LinkedField",name:"sponsorship",plural:!1,selections:a,storageKey:null}],type:"Pin",abstractKey:null};l.hash="d4aa980abc0f91e7e9d267bab54e8eb0";let r=l},418478:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetShowNativeReactions_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"collaboratedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isCollaborative",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isDeleted",storageKey:null}],storageKey:null},{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,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="36b6c2983222500af621bb13f58001de";let a=i},462812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetStringifiedCommerceAuxData_pin",selections:[{args:null,kind:"FragmentSpread",name:"useGetStringifiedCommerceAuxData_pin2"}],type:"Pin",abstractKey:null};i.hash="6016b14b2081c4349ad3f3a910cc2ea7";let a=i},511259:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetStringifiedCommerceAuxData_pin2",selections:[{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,concreteType:"Brand",kind:"LinkedField",name:"brand",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"signature",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ShippingInfo",kind:"LinkedField",name:"shippingInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"freeShippingPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"freeShippingValue",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ProductVariantSet",kind:"LinkedField",name:"variantSet",plural:!1,selections:[{alias:null,args:null,concreteType:"DimensionMetadata",kind:"LinkedField",name:"dimensionMetadata",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"values",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ProductVariant",kind:"LinkedField",name:"variants",plural:!0,selections:i=[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"itemId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"itemSetId",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null},{alias:null,args:null,concreteType:"AggregatedPinData",kind:"LinkedField",name:"aggregatedPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isShopTheLook",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:i,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null}],type:"Pin",abstractKey:null};a.hash="4ffad4c63399ee2e54c9a3a86d114984";let l=a},753484:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGetUnauthFooterProps_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[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},{alias:null,args:null,kind:"ScalarField",name:"siteName",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,kind:"ScalarField",name:"storyPinDataId",storageKey:null},i,{args:null,kind:"FragmentSpread",name:"useGetPinProductCurrentAndOriginalPrice_pin"}],type:"Pin",abstractKey:null};a.hash="94107631a3de415904d8cf7fba99a4a1";let l=a},252942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useGroupBoardProperties_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"collaboratedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"collaboratorCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isCollaborative",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"owner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="0b78702b05b4539d8132471ab02fd6e0";let a=i},613356:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useHidingCarouselIndicator_pin",selections:[{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="60b17266e29fb900a64d25eeb62b3d10";let a=i},107414:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useLogSwipe_pin",selections:[{args:null,kind:"FragmentSpread",name:"useGetStringifiedCommerceAuxData_pin"}],type:"Pin",abstractKey:null};i.hash="dbfca9820e0aa1302554a0137a270b16";let a=i},730490:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={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};i.hash="461a57fcc8f7958e3742c217e4cc45a2";let a=i},38370:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={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:i=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"236x")'},{alias:"image474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"474x")'},{alias:"image564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"564x")'},{alias:"image736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"Thumbnails",kind:"LinkedField",name:"images",plural:!1,selections:i,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};a.hash="a3cbf6d55cf89d97d6e04c32195968d9";let l=a},2161:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinGifOrImageSrc_pin",selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="e4de3c30775bc66fe057a2692ac884eb";let a=i},373462:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinImageUrls_pin",selections:[{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i=[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"60x60")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"orig")'}],type:"Pin",abstractKey:null};a.hash="b7ea441f2c20a68b323088ebe3847835";let l=a},55962:(e,t,n)=>{"use strict";var i,a;n.r(t),n.d(t,{default:()=>r});let l={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:i=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"236x")'},{alias:"image474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"474x")'},{alias:"image564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"564x")'},{alias:"image736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:i,storageKey:'images(spec:"736x")'},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:a=[{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:a,storageKey:null}],type:"Pin",abstractKey:null};l.hash="6588018e2880f2695fc6c4ba45aab606";let r=l},479566:(e,t,n)=>{"use strict";var i,a;n.r(t),n.d(t,{default:()=>r});let l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinProductMerchant_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isRepin",storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:a=[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:i=[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"UserWebsite",kind:"LinkedField",name:"linkUserWebsite",plural:!1,selections:a,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:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"siteName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"viaPinner",plural:!1,selections:i,storageKey:null}],type:"Pin",abstractKey:null};l.hash="3a065109de7dc561d2c3be5cf69eedaa";let r=l},460107:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinRepVisibility_pin",selections:[{alias:null,args:null,concreteType:"PinCarouselData",kind:"LinkedField",name:"carouselData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isDeleted",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useHidingCarouselIndicator_pin"},{kind:"ClientExtension",selections:[{alias:null,args:null,concreteType:"SaveTarget",kind:"LinkedField",name:"savedInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}]}],type:"Pin",abstractKey:null};i.hash="c6d2a1e494408e00e5a28debae75e62f";let a=i},883857:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={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:i=[{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:i,storageKey:'additionalImagesPerSpec(spec:"474x")'},{alias:"image564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:i,storageKey:'additionalImagesPerSpec(spec:"564x")'},{alias:"image736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"AdditionalImagesPerSpec",kind:"LinkedField",name:"additionalImagesPerSpec",plural:!0,selections:i,storageKey:'additionalImagesPerSpec(spec:"736x")'}],type:"RichPinProductMetadata",abstractKey:null};a.hash="b49953855cdc69f6ee2c8d4925149d23";let l=a},819217:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useSaveButtonOptions_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",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,kind:"ScalarField",name:"isQuickPromotable",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"promotedIsRemovable",storageKey:null},{args:null,kind:"FragmentSpread",name:"useGroupBoardProperties_pin"}],type:"Pin",abstractKey:null};i.hash="e81d6aa7813da83ee79c0f633e43a037";let a=i},726005:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{default:()=>l});let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useSetCloseupPreviewContext_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mobileLink",storageKey:null},{alias:null,args:null,concreteType:"PinRecommendationReason",kind:"LinkedField",name:"recommendationReason",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"reason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reasonId",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"ArticleMetadata",kind:"LinkedField",name:"article",plural:!1,selections:i=[{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:i,storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:i,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{args:null,kind:"FragmentSpread",name:"pinRepDataType_pin"}],type:"Pin",abstractKey:null};a.hash="8cc95765b8da890d2964148344d797f2";let l=a},630983:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useShowShoppingIndicatorOverlay_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};i.hash="031e20ec85c02a9edc7e8bb8592f025e";let a=i},57894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useTrackPin_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],type:"Pin",abstractKey:null};i.hash="eef847c462af423847b037ed3e118a44";let a=i},809887:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h}),n(167912);var i,a=n(883119),l=n(371668),r=n(860575),s=n(182510),o=n(47848),d=n(115440),c=n(245022),u=n(94943),p=n(920185),m=n(785893);let g=void 0!==i?i:i=n(565309);function h({pinKey:e,surface:t}){let n=(0,o.Z)(g,e),i=(0,r.Xx)(),h=(0,p.Z)({isGroupBoard:!!n.board?.isCollaborative,surface:t,pinKey:n}),_=(0,d.Z)({pinKey:n,surface:t,prioritizeMerchant:!!n.isEligibleForPdp&&!n.isPromoted}),y=null,f=null,{offerSummary:x}=n.richSummary?.products?.[0]||{};if(x&&(y=x.standardPrice,f=(0,s.Z)({maxPrice:x.maxPrice,minPrice:x.minPrice,price:x.price})??null),i){let{offerSummary:e}=i;e&&(y=e.standard_price??null,f=e.price||e.max_price||null)}let b=y||f?(0,m.jsx)(l.Z,{color:n.isOosProduct?"subtle":void 0,currentPrice:f,originalPrice:y,weight:"normal"}):null,v=i?.title?i.title:h,P=(0,m.jsx)(a.xv,{color:"default",lineClamp:1,size:"200",weight:"normal",children:v}),k=_?(0,m.jsx)(a.xu,{alignItems:"stretch","data-test-id":"pin-source",direction:"row",display:"flex",justifyContent:"start",marginBottom:0,children:(0,m.jsx)(a.kC,{gap:1,children:(0,m.jsx)(a.xv,{color:"default",lineClamp:1,overflow:"normal",size:"200",title:_,weight:"bold",children:_})})}):null,S=n.isOosProduct?(0,m.jsx)(c.Z,{}):null,w=n.isStaleProduct?(0,m.jsx)(u.Z,{}):null;return(0,m.jsxs)(a.kC,{direction:"column",flex:"grow",gap:1,height:"100%",justifyContent:"between",children:[k,P,(S||b)&&(0,m.jsxs)(a.kC,{direction:"row",gap:1,height:18,overflow:"hidden",wrap:!0,children:[S,b]}),w]})}},371668:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(883119),a=n(785893);function l({color:e="default",currentPrice:t,onlyShowCurrentPrice:n,originalPrice:l,textSize:r,weight:s}){let o=l&&l!==t,d=r||"200";return(0,a.jsxs)(i.kC,{alignItems:"stretch",direction:"row",justifyContent:"start",children:[t&&(0,a.jsx)(i.xv,{color:e,dataTestId:"product-price-text",size:d,weight:s??"bold",children:t}),o&&!n&&(0,a.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{textDecoration:"line-through",textDecorationColor:"#767676"}},marginStart:1,children:(0,a.jsx)(i.xv,{color:"subtle",size:d,weight:s??"bold",children:l})})]})}},320752:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(883119),a=n(789033),l=n(288294),r=n(144326),s=n(785893);function o({size:e=12,color:t="default",icon:n="tag"}){let o=(0, r.ZP)()._('Shoppable Pin indicator', 'pinRep.footer.shoppingIcon', 'Accessibilility label for shoppable pin icon in grid');return"search"===n?(0,s.jsx)(i.xu,{height:e,width:e,children:(0,s.jsx)(i.Ee,{alt:o,fit:"contain",naturalHeight:1,naturalWidth:1,src:l})}):(0,s.jsx)(i.JO,{accessibilityLabel:o,color:t,dangerouslySetSvgPath:{__path:a.Z},inline:!0,size:e})}},261205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var i,a=n(667294),l=n(545007);n(167912);var r=n(883119),s=n(860575),o=n(602185),d=n(47848),c=n(700337),u=n(961754),p=n(750077),m=n(156934),g=n(285899),h=n(821892),_=n(993641),y=n(785893);let f=(0,a.lazy)(()=>n.e(34979).then(n.bind(n,171979))),x=(0,a.lazy)(()=>n.e(43473).then(n.bind(n,396261))),b=(0,a.lazy)(()=>Promise.all([n.e(29060),n.e(55448),n.e(97110),n.e(22347)]).then(n.bind(n,297110))),v=(0,a.lazy)(()=>Promise.all([n.e(69965),n.e(22538)]).then(n.bind(n,474465))),P=(0,a.lazy)(()=>n.e(1593).then(n.bind(n,875137))),k=void 0!==i?i:i=n(590853);function S({clientTrackingParams:e,derivedSaveButtonOptions:t,forcePrimaryContent:n,hidePinBetterSaveDropdown:i,isEggsUi:S,showEnabledSaveBehavior:w,onToggleModal:I,pinKey:T,renderPinSaveTooltip:A,surface:E}){var C;let j=(0,s.Xx)(),F=(C=j?.variantUrl,(0,u.Z)(C?{name:"PinResource",options:{id:C}}:null)),L=F&&F.data?{type:"deprecated",data:F.data}:T,D=(0,d.Z)(k,L),R=(0,a.useRef)(!!D.savedInfo),O=(0,l.v9)(({experiences:e})=>{let t=e[1000294];return t?.experience_id===502450?t:null}),{saveBehaviorType:Z}=(0,_.tY)(w);void 0!==Z&&["classic","inline"].includes(t.type)&&(t=Z);let M=(0,_.$7)(),{viewType:K,viewParameter:N}=(0,h.E)(),z=(0,g.Z)(101,{element:0,object_id_str:D.entityId}),B=null;if(!i&&(O||w&&["classic"].includes(t.type))&&["classic","inline"].includes(t.type)&&!M)B=(0,y.jsx)(o.Z,{name:"SafeSuspense_PinRepPrimaryContent_QuickSaveButton",children:(0,y.jsx)(p.Z,{children:(0,y.jsx)(c.Z,{children:(0,y.jsx)(v,{clientTrackingParams:e,experience:O||void 0,forcePrimaryContent:n,pinKey:D,renderPinSaveTooltip:A,showEnabledSaveBehavior:w,viewParameter:N})})})});else if("classic"===t.type)B=(0,y.jsx)(o.Z,{name:"SafeSuspense_PinRepPrimaryContent_PinSaveButton",children:(0,y.jsx)(p.Z,{children:(0,y.jsx)(r.xu,{"data-test-id":"pin-save-button",maxWidth:"100%",children:(0,y.jsx)(c.Z,{children:(0,y.jsx)(x,{clientTrackingParams:e,onClickCallback:z,onToggleModal:I,pinKey:D,renderPinSaveTooltip:A,renderSavedStatus:()=>!!D.savedInfo&&(0,y.jsx)(c.Z,{children:(0,y.jsx)(m.Z,{isNewlySaved:!R.current,name:D.savedInfo.title??"",type:D.savedInfo.type??"",url:D.savedInfo.url??""})}),variant:"lego",viewParameter:N})})})})});else if("inline"===t.type){let{initialSelection:a,onSave:l}=t;B=(0,y.jsx)(o.Z,{name:"SafeSuspense_PinRepPrimaryContent_PinBetterSave",children:(0,y.jsx)(p.Z,{children:(0,y.jsx)(r.xu,{"data-test-id":"better-save",children:(0,y.jsx)(c.Z,{children:(0,y.jsx)(b,{clientTrackingParams:e,hideDropdown:i,initialSelection:a,isEggsUi:S,onSave:l,onToggleFlyout:n,onToggleModal:I,pinKey:D,renderPinSaveTooltip:A,renderSavedStatus:({savedInfo:e})=>e&&(0,y.jsx)(c.Z,{children:(0,y.jsx)(m.Z,{isNewlySaved:!R.current,name:e.title??"",shouldUseLegoStyles:!0,type:e.type??"",url:e.url})}),variant:"pin",viewParameter:N,viewType:K})})})})})}else"persistentOneClickSave"===t.type?B=(0,y.jsx)(o.Z,{name:"SafeSuspense_PinRepPrimaryContent_PersistentOneClickSave",children:(0,y.jsx)(p.Z,{children:(0,y.jsx)(r.xu,{"data-test-id":"persistent-one-click-save",children:(0,y.jsx)(c.Z,{children:(0,y.jsx)(f,{forcePrimaryContent:S?n:void 0,saveOptions:t})})})})}):"promote"===t.type&&(B=(0,y.jsx)(r.kC,{alignItems:"stretch",justifyContent:"end",children:(0,y.jsx)(o.Z,{name:"SafeSuspense_PinRepPrimaryContent_PinPromoteButton",children:(0,y.jsx)(p.Z,{children:(0,y.jsx)(r.xu,{"data-test-id":"pin-promote-button",children:(0,y.jsx)(c.Z,{children:(0,y.jsx)(P,{pinKey:D})})})})})}));return(0,y.jsx)(o.Z,{name:"PinRepPrimaryContent",children:(0,y.jsx)(r.xu,{display:"flex",margin:"ShoppingGridSmallCarousel"===E?1:"VisualInspirationShoppingPin"===E?2:3,children:B&&(0,y.jsx)(r.xu,{flex:"grow",marginStart:"auto",children:B})})})}},50165:(e,t,n)=>{"use strict";n.d(t,{$:()=>u,r:()=>p});var i=n(667294),a=n(498490),l=n(989820),r=n(297728),s=n(730212),o=n(961754),d=n(785893);let{Provider:c,useHook:u}=(0,a.Z)("PinRep");function p({children:e}){let{isAuthenticated:t}=(0,s.B)(),{checkExperiment:n}=(0,r.F)(),{experience:a}=(0,l.Ow)(1000069),[u,p]=(0,i.useState)(!0),[m,g]=(0,i.useState)(!1),[h,_]=(0,i.useState)(!1),[y,f]=(0,i.useState)(null),[x,b]=(0,i.useState)(null),v=(0,l.oS)(1000069),{anyEnabled:P}=n("ap_bmi_custom_activation_nux_revamp_mweb_v2",{dangerouslySkipActivation:!0}),k=(0,o.Z)(t&&P?{name:"UserStateResource",options:{state:"QUICK_SAVES_BOARD_ID"}}:null).data;(0,i.useEffect)(()=>{if(!t){p(!1);return}a&&(!a||a?.experience_id===500417&&a?.display_data.hide_footer)?v.viewExperience(1000069,500417):p(!1),g(!0)},[a]);let S=(0,i.useMemo)(()=>({hasMetSaveRequirementOnUseCaseFeed:h,hasSimplifiedPinGridExpLoaded:m,hidePinRepFooter:u,quickSaveBoardId:k,setHasMetSaveRequirementOnUseCaseFeed:_,setUseCaseFeedOriginalPinId:b,setUseCaseFeedRepinId:f,useCaseFeedOriginalPinId:x,useCaseFeedRepinId:y}),[h,m,u,k,_,b,f,x,y]);return(0,d.jsx)(c,{value:S,children:e})}},218339:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i,a=n(667294);n(167912);var l=n(883119),r=n(320752),s=n(345137),o=n(111161),d=n(619348),c=n(47848),u=n(144326),p=n(297728),m=n(785893);let g="0.25s",h=void 0!==i?i:i=n(917482);function _({pinKey:e}){let{checkExperiment:t}=(0,p.F)(),n=(0,u.ZP)(),i=(0,l.JZ)(),_=(0,c.Z)(h,e),{showScrollUI:y}=(0,s.m)(),f=(0,a.useRef)(null),[x,b]=(0,a.useState)(),v=t("web_shopping_indicators_q4_24").anyEnabled,P=t("web_product_pin_rep_indicators_v3").group,k=[o.iM.ENABLED_OVERLAY,o.iM.ENABLED_OVERLAY_ANIMATED].includes(P),S=i||P===o.iM.ENABLED_OVERLAY;if((0,a.useEffect)(()=>{let e=f?.current?.getBoundingClientRect().width;e&&b(e)},[f,x,b]),v){let e=n._('Shoppable Pin indicator', 'pinRep.footer.shoppingIcon', 'Accessibilility label for shoppable pin icon in grid');return(0,m.jsx)(l.xu,{bottom:!0,margin:2,position:"absolute",children:(0,m.jsx)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(17,17,17,0.4)",backdropFilter:"blur(2.6px)"}},display:"flex",height:24,justifyContent:"center",rounding:"circle",width:24,children:(0,m.jsx)(l.JO,{accessibilityLabel:e,color:"light",icon:"tag",size:12})})})}let w=k?32:24,I=k&&_.dominantColor?_.dominantColor:"#111111",T=k?.9:.6,A=k&&!(0,d.zI)(I)?"default":"inverse";return(0,m.jsx)(l.xu,{alignItems:"center",bottom:!0,dangerouslySetInlineStyle:{__style:{transition:y?`width ${g} ease-in, scale ${g} ease-in`:`opacity 0.5s ease, width ${g} ease-in, scale ${g} ease-in`,backgroundColor:I,scale:y||P!==o.iM.ENABLED_OVERLAY_ANIMATED?"1":"0.7",transformOrigin:P===o.iM.ENABLED_OVERLAY_ANIMATED?"bottom left":void 0}},direction:"row",display:"flex",height:w,justifyContent:k?"center":void 0,margin:2,opacity:y||S?T:.3,position:"absolute",rounding:6,width:w,children:(0,m.jsx)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{paddingLeft:k?0:5.5}},display:"flex",children:(0,m.jsx)(r.Z,{color:A,size:k?16:12})})})}},279341:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(667294),a=n(883119),l=n(848823);let r=e=>`
  ::view-transition-group(${e}) {
    animation-timing-function: cubic-bezier(0.55, 0, 0, 1);
  }
`,s=({type:e,viewTransitionName:t})=>"image"===e?r(t):"video"===e?`
      ${r(t)}
      ::view-transition-old([view-transition-name="${t}"]) {
        display: none;
      }
      ::view-transition-new([view-transition-name="${t}"]) {
        animation: none;
      }
    `:"";var o=n(512541),d=n(785893);let c=({_enableViewTransitions:e,borderStyle:t,children:n,id:r,imageFit:c,suppressViewTransitionTags:u=!1,type:p})=>{let{inViewTransitionsExp:m,viewTransitionName:g}=(0,l.Z)({_enableViewTransitions:e,id:r,type:p}),[h,_]=(0,i.useState)(!1),y=(e||m)&&!!g&&!u&&(e||h),f="image"===p&&["contain","cover"].includes(c||"")?"100%":"inherit";return(0,d.jsxs)(a.xu,{dangerouslySetInlineStyle:{__style:{...t,...y?{viewTransitionName:g,contain:"layout"}:{}}},height:f,onMouseLeave:()=>_(!1),onMouseOver:()=>_(!0),width:f,children:[(0,d.jsx)(o.Z,{unsafeCSS:s({type:p,viewTransitionName:g})}),n]})}},848823:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(667294),a=n(973935),l=n(297728);let r=function({_enableViewTransitions:e=!1,id:t,type:n}){let{checkExperiment:r}=(0,l.F)(),s=r("dweb_view_transitions").anyEnabled;return{executeWithViewTransition:(0,i.useCallback)(t=>{document.startViewTransition&&(e||s)?document.startViewTransition(()=>{(0,a.flushSync)(t)}):t()},[e,s]),inViewTransitionsExp:s,viewTransitionName:n&&t?`pin-${n}-${t}`:""}}},948195:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(115642);let a=(e,t)=>{let{isCloseupRelatedPinsAboveTheFoldEnabled:n}=(0,i.x4)();return{isEligibleForStaticImageIdeaPin:!!t&&(!1===e||n)}}},860575:(e,t,n)=>{"use strict";n.d(t,{Xx:()=>l});var i=n(667294);n(785893),(0,i.createContext)(void 0),n(573706);let a=(0,i.createContext)(void 0),l=()=>(0,i.useContext)(a)},345137:(e,t,n)=>{"use strict";n.d(t,{d:()=>d,m:()=>o});var i=n(667294),a=n(498490),l=n(235838),r=n(785893);let{Provider:s,useHook:o}=(0,a.Z)("ShoppingIndicatorScroll");function d({children:e}){let t;let[n,a]=(0,i.useState)(!1),o=(0,l.Z)(()=>{t&&clearTimeout(t),n||(a(!0),t=setTimeout(()=>{a(!1)},1500))},50);return(0,i.useEffect)(()=>(window.addEventListener("scroll",o),()=>{window.removeEventListener("scroll",o)}),[o]),(0,r.jsx)(s,{value:{showScrollUI:n},children:e})}},182510:(e,t,n)=>{"use strict";function i({maxPrice:e,minPrice:t,price:n}){return e&&t?`${t}-${e}`:n}n.d(t,{Z:()=>i})},111161:(e,t,n)=>{"use strict";n.d(t,{MH:()=>s,Np:()=>l,QC:()=>d,Wo:()=>r,iM:()=>i,pb:()=>o,xP:()=>a});let i={CONTROL:"control",ENABLED_FOOTER:"enabled_4_indicator",ENABLED_FOOTER_BLUE:"enabled_5_indicator",ENABLED_OVERLAY:"enabled_2_indicator",ENABLED_OVERLAY_ANIMATED:"enabled_3_indicator",CONTROL_PWT:"control_pwt",ENABLED_PWT:"enabled_pwt",EMPLOYEES:"employees"},a=["RelatedPinGrid","AuthHomefeed","SearchItemHighShoppingIntent","SearchItem","PdpRelatedPinGrid"],l=["BoardMoreIdeasTabContent","BaseBoardPinGrid","BoardlessPins","NewsPage"],r=["RelatedPinGrid","AuthHomefeed","SearchItemHighShoppingIntent","SearchItem","PdpRelatedPinGrid"],s={CONTROL:"control",CONTROL_PWT:"control_pwt",EMPLOYEES:"employees",ENABLED_PWT:"enabled_pwt",ENABLED_TAG:"enabled_tag",ENABLED_TAG_COPY:"enabled_tag_copy",ENABLED_FLASHLIGHT_COPY:"enabled_flashlight_copy",ENABLED_COPY:"enabled_copy"};function o({experimentsClient:e,fields:t}){let n=e.checkExperiment("web_plp_learn",{dangerouslySkipActivation:!0}).group;return([s.CONTROL_PWT,s.ENABLED_PWT].includes(n)&&e.checkExperiment("web_plp_learn"),[s.CONTROL,s.ENABLED_TAG,s.ENABLED_TAG_COPY,s.ENABLED_FLASHLIGHT_COPY,s.ENABLED_COPY,s.EMPLOYEES,s.ENABLED_PWT].includes(n))?[...t,"pin.is_shoppable"]:t}function d({experimentsClient:e,isEligibleForPdp:t,isPromoted:n,surface:i}){if(!t||n)return!1;let a=e.checkExperiment("web_shopping_indicators_q4_24",{dangerouslySkipActivation:!0}).group;return"AuthHomefeed"===i&&["control_homefeed","enabled_homefeed","employees_homefeed"].includes(a)?(e.checkExperiment("web_shopping_indicators_q4_24"),["enabled_homefeed","employees_homefeed"].includes(a)):!!(i&&["RelatedPinGrid","PdpRelatedPinGrid"].includes(i)&&["control_related_pins","enabled_related_pins"].includes(a))&&(e.checkExperiment("web_shopping_indicators_q4_24"),"enabled_related_pins"===a)}},640498:(e,t,n)=>{"use strict";n.d(t,{LG:()=>i,UO:()=>a,ZB:()=>l,ZP:()=>r});let i=100,a=10,l=28,r={AMP_TRACKING_DOMAIN:"amp.pinterest.com",BoardPrivacy:{SECRET:"secret",PUBLIC:"public",PROTECTED:"protected"},BoardType:{PROTECTED:"protected"},BulkAction:{MOVE:"bulkMove",COPY:"bulkCopy",CREATE_SECTION:"bulkCreateSection",DELETE:"bulkDelete"},MAX_CHARS_FOR_BOARD_PIN_DESCRIPTION:500,MAX_CHARS_FOR_BOARD_TITLE:50,MAX_CHARS_FOR_FIRST_NAME:30,MAX_FETCH_NUM_FOLLOWERS_PER_PAGE:50,MAX_STORED_VISITED_PIN_PAGES:10,VIDEO_IFRAME_ID:"video-iframe"}},889870:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var i,a=n(667294);n(167912);var l=n(573706),r=n(400416),s=n(47848),o=n(891985),d=n(947956),c=n(297728),u=n(151958),p=n(785893);let m=void 0!==i?i:i=n(106183),g=e=>(e??"").split(".").pop()??"",h=["png","jpg","jpeg","gif","bmp","tiff","webp","mp4","m4v","quicktime"],_=/\/pin\/\d+/;function y({clientTrackingParams:e,children:t,enableDLCollection:n=!1,hovered:i,pinKey:y,slotIndex:f,trafficSource:x,viewType:b}){let{logContextEvent:v}=(0,l.v)(),{checkExperiment:P}=(0,c.F)(),k=P("web_metrics_fix_right_click_clickthrough").anyEnabled,[S,w]=(0,a.useState)(),[I,T]=(0,a.useState)(),[A,E]=(0,a.useState)(""),C=(0,s.Z)(m,y),{entityId:j,trackedLink:F,link:L,adData:D,dpaCreativeType:R}=C,O=F||L||"",Z=D?.ceAltImageSignature,M=(0,a.useCallback)(e=>{if(k){let t=e.target,n=e.target?.src;for(;t&&"A"!==t.tagName;)t=t.parentElement;E(t?t.href:n||"")}w(!0)},[k]),K=(0,d.Z)({hasPin:!!C,hasPinRichMetadata:!!C.richMetadata,hasPinRichMetadataProducts:!!C.richMetadata?.products,hasPinRichMetadataArticle:!!C.richMetadata?.article,hasPinRichMetadataRecipe:!!C.richMetadata?.recipe,hasPinStoryPinData:!!C.storyPinData}),N=(0,u.Z)(C),z=()=>{let t=N();(0,r.Z)({url:"/v3/offsite/",data:{check_only:!1,pin_id:j,url:O,client_tracking_params:e,aux_data:JSON.stringify({clickthrough_type:"rightClick",objectId:j,...f||{},...t})}}).then(i=>{i&&(n?(v({view_type:3,event_type:8948,component:15166,element:15926,object_id_str:j,aux_data:{collection_pin_click_position:0,click_type:"clickthrough"},event_data:{dcoEventData:{clientCreativeType:R,ceAltImageSignature:Z}}}),v({view_type:3,event_type:12,component:15166,element:15926,object_id_str:j,aux_data:{collection_pin_click_position:0,clickthrough_type:"rightClick"},event_data:{dcoEventData:{clientCreativeType:R,ceAltImageSignature:Z}}}),v({view_type:3,event_type:7762,component:15166,element:15926,object_id_str:j,aux_data:{clickthrough_type:"rightClick"},event_data:{dcoEventData:{clientCreativeType:R,ceAltImageSignature:Z}}})):(v({event_type:12,object_id_str:j,view_type:b,view_parameter:K,clientTrackingParams:e,aux_data:{clickthrough_type:"rightClick",...f||{},...t}}),v({event_type:8948,view_type:b,object_id_str:j,view_parameter:K,clientTrackingParams:e,aux_data:{click_type:"clickthrough",closeup_navigation_type:x&&(0,o.sV)(x)?"deeplink":"click",clickthrough_type:"rightClick",...f||{},...t}})))})},B=()=>{let t=N();v({event_type:8948,view_type:b,object_id_str:j,view_parameter:K,clientTrackingParams:e,aux_data:{click_type:"rightClick",closeup_navigation_type:x&&(0,o.sV)(x)?"deeplink":"click",...f||{},...t}})},U=e=>{if(S&&k){let e=_.test(A);h.includes(g(A))||(e?B():z(),w(!1)),window.removeEventListener(I,U,!1)}else S&&(/^\/pin/.test(e.target.activeElement.attributes.href?.value)||(z(),w(!1)),window.removeEventListener(I,U,!1))};return(0,a.useEffect)(()=>{void 0!==window?.document?.hidden?T("visibilitychange"):void 0!==window?.document?.msHidden?T("msvisibilitychange"):void 0!==window?.document?.webkitHidden&&T("webkitvisibilitychange")},[]),(0,a.useEffect)(()=>(S&&window&&window.addEventListener(I,U,!1),()=>window.removeEventListener(I,U)),[S,I]),(0,a.useEffect)(()=>(i&&window.addEventListener("contextmenu",M),()=>{window.removeEventListener("contextmenu",M)}),[M,i]),(0,p.jsx)(a.Fragment,{children:t})}},581852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var i=n(667294),a=n(883119),l=n(252071),r=n(573706),s=n(602185),o=n(476198),d=n(144326),c=n(240760),u=n(961754),p=n(750077),m=n(703333),g=n(635258),h=n(901450),_=n(410150),y=n(383399),f=n(265691),x=n(415787),b=n(785893);let v=(0,i.lazy)(()=>n.e(31014).then(n.bind(n,831014))),P=new a.H3([f.Z]);function k({handleComplete:e,isNag:t}){let n=(0,_.ZP)(),f=(0,y.Z)(),{logContextEvent:k}=(0,r.v)(),S=(0,d.ZP)(),[w,I]=(0,i.useState)(!0),[T,A]=(0,i.useState)(!1),{showOneToast:E}=(0,h.F9)(),C=(0,u.Z)({name:"UserResource",options:{user_id:f.id||""}}),j="desktop"===n;(0,i.useEffect)(()=>{k({event_type:13,component:13716,view_type:474})},[]);let F=(0,b.jsxs)(a.xv,{align:j?"start":"center",children:[S._('We use cookies to deliver personalized ads and experiences, and to analyze traffic on our site.', 'homeFeed.cookiesConsentBanner.bannerText', 'Banner description about why we use cookies')," ",(0,c.nk)(S._('Read our {{ cookiePolicyLink }} for more information.', 'homeFeed.cookiesConsentBanner.readCookiePolicyText', 'Banner description about why we use cookies. "cookiePolicyLink" equals to "Cookie Policy" for english'),{cookiePolicyLink:(0,b.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,b.jsx)(a.rU,{display:"inlineBlock",href:g._Ib,target:"blank",underline:"hover",children:S._('cookie policy', 'homeFeed.cookiesConsentBanner.cookiePolicyLink', 'Cookie policy link')},"cookie-policy-link")})})]}),L=(0,b.jsxs)(a.kC,{direction:j?"row":"column",gap:j?{row:2,column:0}:{column:4,row:0},children:[(0,b.jsx)(a.zx,{fullWidth:!0,onClick:()=>{k({event_type:101,component:13716,view_type:474,element:11984}),(0,x.nP)("webapp.updateCookiePreferences",{sampleRate:.1,tags:{allow_analytic_cookies:"true",allow_marketing_cookies:"true",allow_personalization_cookies:"true",location:"app_packages_CookieConsent_Banner_handleAcceptAll"}}),l.Z.create("UserSettingsResource",{allow_analytic_cookies:!0,allow_marketing_cookies:!0,allow_personalization_cookies:!0,surface_tag:m.i.HOLISTIC_PROFILE_PROMPT}).callUpdate().then(()=>{C.refresh(),E(({hideToast:e})=>(0,b.jsx)(o.ZP,{duration:3e3,onHide:e,text:S._('We saved your cookie preferences. You can change them in the settings section of your profile at any time.', 'homeFeed.cookiesConsentBanner.acceptedAllToastText', 'Success message after accepting all optional cookies')})),e()})},size:j?"lg":"md",text:S._('Accept all', 'navFooter.cookieConsentBanner.acceptAllButton', 'Accept all cookies button')}),(0,b.jsx)(a.zx,{fullWidth:!0,onClick:()=>{k({event_type:101,component:13716,view_type:474,element:11985}),(0,x.nP)("webapp.updateCookiePreferences",{sampleRate:.1,tags:{allow_analytic_cookies:"false",allow_marketing_cookies:"false",allow_personalization_cookies:"false",location:"app_common_react_components_CookieConsent_Banner_handleRejectAll"}}),l.Z.create("UserSettingsResource",{allow_analytic_cookies:!1,allow_marketing_cookies:!1,allow_personalization_cookies:!1,surface_tag:m.i.HOLISTIC_PROFILE_PROMPT}).callUpdate().then(()=>{C.refresh(),E(({hideToast:e})=>(0,b.jsx)(o.ZP,{duration:3e3,onHide:e,text:S._('We saved your cookie preferences. You can change them in the settings section of your profile at any time.', 'homeFeed.cookiesConsentBanner.acceptedAllToastText', 'Success message after accepting all optional cookies')})),e()})},size:j?"lg":"md",text:S._('Reject all', 'navFooter.cookieConsentBanner.rejectAllButton', 'Manage cookie settings button')}),(0,b.jsx)(a.zx,{fullWidth:!0,onClick:()=>{k({event_type:101,component:13716,view_type:474,element:11986}),A(!0),j||I(!1)},size:j?"lg":"md",text:S._('Let me choose', 'navFooter.cookieConsentBanner.manageCookiesButton', 'Manage cookie settings button')})]});return(0,b.jsxs)(i.Fragment,{children:[w&&(j?(0,b.jsx)(a.xu,{paddingX:2,paddingY:2,smPaddingX:6,smPaddingY:t?2:0,children:(0,b.jsxs)(a.xu,{alignItems:"center",borderStyle:"sm","data-test-id":"cookie-consent-banner",direction:"column",display:"flex",justifyContent:"between",marginBottom:t?0:6,overflow:"hidden",padding:t?3:6,position:"relative",rounding:4,smDirection:"row",children:[(0,b.jsx)(a.xu,{display:"flex",marginEnd:0,smMarginEnd:7,children:F}),(0,b.jsx)(a.xu,{alignItems:"center",display:"flex",flex:"none",justifyContent:"center",marginTop:4,smMarginTop:0,children:L})]})}):(0,b.jsx)(a.mh,{zIndex:P,children:(0,b.jsx)(a.xu,{bottom:!0,marginBottom:2,position:"fixed",width:"100%",children:(0,b.jsxs)(a.xu,{alignItems:"center",borderStyle:"shadow",color:"default",direction:"column",display:"flex",marginEnd:"auto",marginStart:"auto",padding:6,rounding:6,width:"95%",children:[F,(0,b.jsx)(a.xu,{marginTop:4,minWidth:240,children:L})]})})})),T&&(0,b.jsx)(s.Z,{name:"SafeSuspense_CookieConsentBanner_SettingsModal",children:(0,b.jsx)(p.Z,{children:(0,b.jsx)(a.xu,{"data-test-id":"settings-modal",children:(0,b.jsx)(v,{dismissIcon:"cancel",handleComplete:e,onClose:()=>A(!1)})})})})]})}},512541:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l}),n(441143);var i=n(785893);class a{static factory(e){return e instanceof a?e:new a(String(e))}constructor(e){this._private_safe_value=e.trim().replace(">",">").replace("<","<").replace("&","&").replace('"','"').replace("'","'")}toString(){return this._private_safe_value}}function l(e){let{css:t,unsafeCSS:n,...l}=e,r=String(t||"")||n||"";return r?(0,i.jsx)("style",{...l,dangerouslySetInnerHTML:{__html:String(a.factory(r))}}):null}},700337:(e,t,n)=>{"use strict";n.d(t,{N:()=>r,Z:()=>l});var i=n(883119),a=n(785893);function l({children:e,fullWidth:t}){return(0,a.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{pointerEvents:"auto",width:t?"100%":void 0}},"data-test-id":"pointer-events-wrapper",children:e})}function r({children:e,enabled:t}){return t?(0,a.jsx)(l,{children:e}):e}},945960:(e,t,n)=>{"use strict";n.d(t,{Dv:()=>r,Kn:()=>a,Ml:()=>s,Oc:()=>i,mv:()=>l});let i=16,a=`${i}px ${i}px 0 0`,l=4,r={SAVED:"rgba(0, 0, 0, 0.33)",VISUAL:"rgba(0, 0, 0, 0.1)",LEGO_WASH:"rgba(0, 0, 0, 0.4)"},s=120},358399:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(667294),a=n(883119),l=n(488792),r=n(545151),s=n(144326),o=n(785893);let d=(0,i.lazy)(()=>n.e(9500).then(n.bind(n,309500))),c={sm:12,md:16,lg:20,xl:24};function u({isVerifiedMerchant:e,size:t,showText:n,showVerifiedIdentity:u,inspirationalBadges:p,inspirationalBadgesColor:m}){let g=(0,s.ZP)(),[h,_]=(0,i.useState)(!1),{dangerousInlineStyle:y,iconColor:f}=(0,r.Z)(!!e),x=(0,l.Z)();return(0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)(a.iP,{onTap:()=>{x({component:13534,element:11717,event_type:102}),_(!0)},rounding:"circle",children:(0,o.jsxs)(a.xu,{alignItems:"center",dangerouslySetInlineStyle:y,"data-test-id":"verified-badge-icon","data-unadopted-gestalt":"Badge",display:"flex",children:[(0,o.jsx)(a.JO,{accessibilityLabel:e?g._('Merchant verification badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'):g._('Badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'),color:f,icon:"workflow-status-ok",inline:!0,size:c[t]}),n&&!u&&(0,o.jsx)(a.xu,{marginStart:2,children:(0,o.jsx)(a.xv,{color:"shopping",inline:!0,weight:"bold",children:(0,o.jsx)(a.xu,{dangerouslySetInlineStyle:y,children:g._('Verified merchant', 'creator.header.verifiedMerchant', 'this merchant is a verified merchant')})})})]})}),(e||n&&!u)&&h&&(0,o.jsx)(i.Suspense,{children:(0,o.jsx)(d,{inspirationalBadges:p,inspirationalBadgesColor:m,setShowModal:_,showModal:h})})]})}},431705:(e,t,n)=>{"use strict";n.d(t,{$N:()=>g,Cu:()=>_,GY:()=>c,MZ:()=>s,NR:()=>u,bC:()=>h,fm:()=>i,id:()=>l,kM:()=>r,q6:()=>a,qp:()=>d,uV:()=>p,ug:()=>m,xL:()=>o});let i={DOWNLOAD_TEMPLATE:"DOWNLOAD_TEMPLATE",UPLOAD_TEMPLATE:"UPLOAD_TEMPLATE",HISTORY:"HISTORY",BULK_ID_LIBRARY:"BULK_ID_LIBRARY",RESOURCES:"RESOURCES"},a={GENERAL:"GENERAL",CAMPAIGNS:"CAMPAIGNS",AD_GROUPS:"AD_GROUPS",ADS:"ADS",KEYWORDS:"KEYWORDS",PRODUCT_GROUPS:"PRODUCT_GROUPS",ERROR_CODES:"ERROR_CODES"},l={INTEREST:"INTEREST",DEVICE:"DEVICE",LANGUAGE:"LANGUAGE",LOCATION:"LOCATION",LOCATION_COUNTRY:"LOCATION_COUNTRY",LOCATION_METRO:"LOCATION_METRO",LOCATION_REGION:"LOCATION_REGION",AUDIENCE:"AUDIENCE",TARGETING_TEMPLATE:"TARGETING_TEMPLATE",CONVERSION_TAG:"CONVERSION_TAG"},r={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"},s={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",PINTEREST_CAPI_CONNECT:"Pinterest CAPI Connect"},o={GTM:"GTM",SHOPIFY:"SHOPIFY",WORDPRESS:"WORDPRESS",WOOCOMMERCE:"WOOCOMMERCE",TEALIUM:"TEALIUM"},d={PINTEREST_TAG:"PINTEREST_TAG",PINTEREST_TAG_MANUAL_SETUP_FLOW:"PINTEREST_TAG_MANUAL_SETUP_FLOW",PINTEREST_TEST_EVENTS:"PINTEREST_TEST_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",CONVERSIONS:"CONVERSIONS",PINTEREST_EVENTS_OVERVIEW_BEFORE_SETUP:"PINTEREST_EVENTS_OVERVIEW_BEFORE_SETUP",PINTEREST_SETUP_API:"PINTEREST_SETUP_API",NOCODE_CONVERSIONS_API_SETUP_FLOW:"NOCODE_CONVERSIONS_API_SETUP_FLOW",PINTEREST_EVENTS_OVERVIEW_CAPI_TAB:"PINTEREST_EVENTS_OVERVIEW_CAPI_TAB",PINTEREST_EVENT_HISTORY_CAPI_TAB:"PINTEREST_EVENT_HISTORY_CAPI_TAB"},c={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={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",HOSTNAME:"hostname",CAMPAIGN_ID:"campaign_id",ADVERTISER_ID:"advertiser_id"},p="604800",m="86400",g={ATTRIBUTION_SOURCE_ID:"attributionsourceid",ATTRIBUTE_DESTINATION:"attributiondestination",ATTRIBUTE_ON:"attributeon"},h="click",_="view"},829196:(e,t,n)=>{"use strict";n.d(t,{YS:()=>s,eF:()=>o,m_:()=>r});var i=n(431705),a=n(194093),l=n(415787);function r(e,t,n,a,r){let s=new URLSearchParams,o=t.reduce((e,t)=>{if(null!=t){let n=function(e){let t;try{t=decodeURIComponent(e)}catch(n){t=e}t.startsWith("http")?t.startsWith("http://")&&(t=t.replace("http://","https://")):t="https://"+t;try{return new URL(t).origin}catch(i){let n=t.match(/^(https?:\/\/[^\/]+)(\/|$)/);if(n&&n.length>1)return n[1];return e}}(t);return e.add(n)}return e},new Set);s.append(i.NR.SOURCE_EVENT_ID,e??"0"),s.append(i.NR.DESTINATION,JSON.stringify([...o])),s.append(i.NR.EXPIRY,n?i.uV:i.ug),s.append(i.NR.PRIORITY,n?i.NR.CLICK_PRIORITY:i.NR.VIEW_PRIORITY),r&&s.append(i.NR.ADVERTISER_ID,r),a&&s.append(i.NR.CAMPAIGN_ID,a),s.append(i.NR.SOURCE_EVENT_TYPE,n?i.bC:i.Cu);try{let{hostname:e}=new URL(window.location.href);"www.pinterest.com"!==e&&s.append(i.NR.HOSTNAME,e)}catch(e){(0,l.nP)("webapp.arapi.generateARASourceEventURL",{sampleRate:.1,tags:{status:"failed",href:window&&window.location&&window.location.href}})}return"https://www.pinterest.com/attribution_source/?"+s.toString()}async function s(e,t,n,i,s,o,d,c,u){let p;let{appType:m,osType:g}=o||{},h="",_="";if(["Pin","pinImpressions"].includes(e)&&t&&(i||c||u)){(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"start",appType:m,osType:g}});try{if(!window.document.featurePolicy?.allowsFeature("attribution-reporting")){(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"skipped",message:"attribution-reporting is not enabled",appType:m,osType:g}});return}h=r(n,[i,c,u],!1,s,d);try{_=new URL(window.location.href).hostname}catch(e){(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"hostname_parse_failed",href:window&&window.location&&window.location.href}})}if(_&&"www.pinterest.com"!==_)document.createElement("img").setAttribute("attributionsrc",h),(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"international",appType:m,osType:g,hostname:_}});else if(!(p=await window.fetch(h,{keepalive:!0,attributionReporting:{eventSourceEligible:!0,triggerEligible:!1}})).ok)throw Error("server request failed.");(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"success",appType:m,osType:g}})}catch(e){(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"failed",error:(0,a.Z)(e,"name"),message:(0,a.Z)(e,"message"),appType:m,osType:g,hostname:_,responseStatus:p&&p.status}})}}else(0,l.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"missing_param",appType:m,osType:g}})}function o(e){if(e){let t=e.toLowerCase();if(t.includes("windows"))return"windows xp"===t?1:"windows vista"===t?2:"windows 7"===t?3:"windows 8"===t?4:12;if(t.includes("mac os"))return 5;if(t.includes("android"))return 7;if(t.includes("ios"))return 6;if(t.includes("ubuntu"))return 8;if(t.includes("chromium os"))return 13}return 0}},491850:(e,t,n)=>{"use strict";function i(e){return("undefined"==typeof window||!Object.prototype.hasOwnProperty.call(window,"requestAnimationFrame"))&&e&&e(),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{e&&e()})})}n.d(t,{Z:()=>i})},934980:(e,t,n)=>{"use strict";n.d(t,{CC:()=>a,Ll:()=>r,XF:()=>l});let i=(e,t,n)=>({x:Math.floor(e*Math.cos(n)),y:Math.floor(t*Math.sin(n))}),a=(e,t)=>i(t/2,e/2,2*Math.random()*Math.PI),l=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,r=e=>["@-webkit-keyframes","@keyframes"].map(t=>e.map(e=>t+" "+e).join("\n")).join("\n")},939731:(e,t,n)=>{"use strict";function i(e){return e.replace("ad.doubleclick.net","ad.doubleClick.net").replaceAll(/&epik=[^&]+/g,"")}n.d(t,{Z:()=>i})},265780:(e,t,n)=>{"use strict";function i(e,t){return e.isAuth&&t===e.id}n.d(t,{Z:()=>i})},118755:(e,t,n)=>{"use strict";n.d(t,{G6:()=>l,i7:()=>r,oi:()=>i,u$:()=>a,un:()=>o,vU:()=>s,w1:()=>d});let i=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),a=e=>e?e.includes("Chrome")?i.CHROME:e.includes("Safari")?i.SAFARI:e.includes("Firefox")?i.FIREFOX:e.includes("Opera")?i.OPERA:e.includes("IE")?i.IE:e.includes("Edge")?i.EDGE:i.OTHER:i.OTHER;function l(e){return a(e)===i.SAFARI}function r(e){return a(e)===i.CHROME}function s(e){return a(e)===i.FIREFOX}function o(e){return a(e)===i.EDGE}function d(e){return a(e)===i.IE}},151817:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,v:()=>i});let i=()=>"undefined"!=typeof navigator&&"getInstalledRelatedApps"in navigator;async function a(){if(!i())return[];try{return await navigator.getInstalledRelatedApps()}catch(e){return[]}}},129666:(e,t,n)=>{"use strict";n.d(t,{P:()=>_,Z:()=>h}),n(167912);var i,a,l,r,s=n(47848);let o=void 0!==i?i:i=n(38370),d=void 0!==a?a:a=n(883857);var c=n(529521),u=n(415787);let p=void 0!==l?l:l=n(55962),m=!1,g=void 0!==r?r:r=n(730490);function h(e){let t=(0,s.Z)(g,e),n=function(e){let t=(0,s.Z)(o,e);return t?.carouselData?{index:t.carouselData.index,carouselId:t.carouselData.entityId,carouselSlots:t.carouselData.carouselSlots?.map(e=>({details:e.details,imageSignature:e.imageSignature,imageSizeMap:{"236x":e.image236x&&{height:e.image236x.height,url:e.image236x.url,width:e.image236x.width},"474x":e.image474x&&{height:e.image474x.height,url:e.image474x.url,width:e.image474x.width},"564x":e.image564x&&{height:e.image564x.height,url:e.image564x.url,width:e.image564x.width},"736x":e.image736x&&{height:e.image736x.height,url:e.image736x.url,width:e.image736x.width}},slotId:e.slotId,title:e.title}))??[]}:null}(t),i=function({pinKey:e,index:t}){let n=(0,s.Z)(p,e),i=(n?.richMetadata||n?.richSummary)?.products?.[0]||null,a=(n?.richMetadata?.products?.length??0)+(n?.richSummary?.products?.length??0);if(null!=e&&a>1&&!m){m=!0;let t=(0,c.oy)(e);(0,u.nP)("autoLegacyAdapter.overfetch.usePinProductCarouselData_pin",{sampleRate:.1,tags:{totalLength:a,isGraphQL:"GraphQL"===t}})}let l=function(e){let t=(0,s.Z)(d,e);if(!t)return[];let n={},{image236x:i,image474x:a,image564x:l,image736x:r}=t;return[[i,"236x"],[a,"474x"],[l,"564x"],[r,"736x"]].forEach(([e,t])=>{(Array.isArray(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}))}(i);return i&&l.length?{carouselId:i.productId,carouselSlots:[{imageSignature:null,imageSizeMap:{"236x":n?.image236x&&{height:n.image236x.height,url:n.image236x.url,width:n.image236x.width},"474x":n?.image474x&&{height:n.image474x.height,url:n.image474x.url,width:n.image474x.width},"564x":n?.image564x&&{height:n.image564x.height,url:n.image564x.url,width:n.image564x.width},"736x":n?.image736x&&{height:n.image736x.height,url:n.image736x.url,width:n.image736x.width}}},...l],index:t}:null}({pinKey:t,index:n?.index});return i?{...i,carouselSlots:i.carouselSlots.map(e=>({...e,details:null,slotId:null,title:null}))}:n}function _({children:e,pinKey:t}){return e(h(t))}},619348:(e,t,n)=>{"use strict";n.d(t,{DW:()=>l,I:()=>a,oo:()=>i,zI:()=>r});let i=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)]},a=.18,l=(e,t,n)=>.2126*(e/255)**2.2+.7151*(t/255)**2.2+.0721*(n/255)**2.2,r=e=>{let t=e.replace("#",""),n=parseInt(t.substr(0,2),16);return(299*n+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3<155}},573706:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,v:()=>s});var i=n(477058),a=n(498490),l=n(785893);let{Provider:r,useHook:s}=(0,a.Z)("ContextLogger");function o({children:e,value:t}){let{setViewContextData:n}=(0,i.sV)();return t.injectSetViewContextDataFromHook=n,(0,l.jsx)(r,{value:t,children:e})}},488792:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(573706);let a=()=>(0,i.v)().logContextEvent},793874:(e,t,n)=>{"use strict";n.d(t,{F6:()=>w,Hs:()=>S,N$:()=>g,OW:()=>m,Ov:()=>h,Yc:()=>b,k7:()=>p,t4:()=>_,vs:()=>k});var i=n(667294),a=n(609326),l=n(297728),r=n(730212),s=n(529264),o=n(864723),d=n(1006),c=n(410150);let u="dark",p="rgba(17, 17, 17, 1)",m="rgba(17, 17, 17, 0)",g="rgb(43, 43, 43)",h="#767676",_="rgba(0,0,0, 0.8)",y=()=>(0,o.M0)().getItem(a.wg)===u,f=()=>(0,o.M0)().getItem(a.YX)===u,x=()=>{(0,o.M0)().setItem(a.YX,u)},b=()=>y(),v=()=>f(),P=e=>!!e.matchMedia&&!!e.matchMedia("(prefers-color-scheme: dark)").matches;function k(){let{checkExperiment:e}=(0,l.F)(),t=(0,c.ml)(),{theme:n,isAuthenticated:d,referrerFromCookie:p}=(0,r.B)(),m=t&&n===u,[g,h]=(0,i.useState)(m);return(0,i.useEffect)(()=>{let n=(0,s.Xn)((0,s.an)(p)),i=t&&d&&v()||t&&P(window),l=!1;if(i&&d)l=e("lop_auth_inferred_config_dark_mode").anyEnabled;else if(i&&!d){let{group:t=""}=e("lop_unauth_inferred_config_dark_mode",{dangerouslySkipActivation:!0});n&&t.includes("true_seo_referrer")?l=e("lop_unauth_inferred_config_dark_mode").anyEnabled:!n&&t.includes("false_seo_referrer")&&(l=e("lop_unauth_inferred_config_dark_mode").anyEnabled)}let r=m||b()||l;r&&!d?x():(0,o.M0)().removeItem(a.YX),r&&(document.body.style.backgroundColor="#111111"),h(r)},[h,e,t,m,d,p]),g}let S=()=>{(0,o.M0)().setItem(a.wg,u),(0,d.My)("mweb.dark_mode.enable"),window.location.reload()},w=()=>{(0,o.M0)().removeItem(a.wg),(0,o.M0)().removeItem(a.YX),(0,d.My)("mweb.dark_mode.disable"),window.location.reload()}},717067:(e,t,n)=>{"use strict";function i(e){let t=Math.round(e/1e3),n=Math.floor(t/60),i=t%60;return n+":"+(i<10?"0":"")+i}n.d(t,{Z:()=>i})},785220:(e,t,n)=>{"use strict";function i(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i+=1)if(!l(e[i],t[i],n+1))return!1;return!0}function a(e,t,n){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(!(i in t)||!l(e[i],t[i],n+1))return!1;return!0}function l(e,t,n){if(n>=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 l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){case"[object Array]":return i(e,t,n);case"[object Set]":return i(Array.from(e).sort(),Array.from(t).sort(),n);case"[object Object]":case"[object Arguments]":return a(e,t,n);case"[object Map]":return a(Object.fromEntries(e),Object.fromEntries(t),n);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 l(e,t,0)}n.d(t,{ZP:()=>r,qP:()=>i})},703454:(e,t,n)=>{"use strict";n.d(t,{Bx:()=>a,N4:()=>r,is:()=>s,lt:()=>i,oM:()=>l});let i=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=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.'),l=e=>e._('Log in to edit this Pin', 'limitedLogin.modalHeader.editPin', 'Title on mobile web limited login modal to prompt users to login after they clicked edit button.'),r=({i18n:e,toFollow:t})=>t?e._('Log in to follow', 'limitedLogin.modalHeader.follow', 'Title on mobile web limited login modal to prompt users to login to follow a user or board.'):e._('Log in to unfollow', 'limitedLogin.modalHeader.unfollow', 'Title on mobile web limited login modal to prompt users to login to unfollow a user or board.'),s=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.')},830997:(e,t,n)=>{"use strict";n.d(t,{g:()=>r,t:()=>l});var i=n(667294);let a=(0,i.createContext)(null),l=a.Provider,r=()=>(0,i.useContext)(a)},803611:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(703454),a=n(144326),l=n(754143);let r=()=>{let{loginForMore:e,viewer:t,limitedLoginModalSubheader:n}=(0,l.H)(),r=(0,a.ZP)();return"AUTH"===t.type?null:t=>{e?.setVisible(!0),n?.setText(t?.loginModalHeader||i.lt(r))}}},986782:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(667294),a=n(79292),l=n(415787);function r(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s extends i.Component{constructor(...e){super(...e),r(this,"state",{error:null,info:null}),r(this,"resetError",()=>{this.setState({error:null,info:null})})}componentDidCatch(e,t){try{let{name:t}=this.props,n=this.props.type||"secondary";(0,a.T)({extraData:e.extraData??{},errorBoundary:t,errorBoundaryType:n,message:e.message,name:e.name,stack:e.stack}),(0,l.nP)("react.error_boundary",{sampleRate:.1,tags:{component:void 0,name:this.props.name}})}catch(e){(0,l.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:n}=this.state;return t&&n?e?e({error:t,info:n,resetError:this.resetError}):null:this.props.children}}},602185:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=n(986782).Z},295393:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(883119),a=n(194048),l=n(758339),r=n(135296),s=n(296209),o=n(648089),d=n(410150),c=n(241716),u=n(785893);let p=new i.Ry(c.fe),m=new i.H3([p]);function g({experience:e,placementId:t}){let n=(0,d.ml)();return(0,u.jsx)(a.Z,{eligibleTypes:[14],experience:e,placementId:t,children:({complete:e,dismiss:t,experience:{display_data:a}})=>{let{titleText:d,detailedText:c,completeButton:p,dismissButton:g}=(0,r.Z)(s.Z)(a),h=n?"center":"start",_=!!p&&(0,o.Z)({url:p.uri});return(0,u.jsx)(i.mh,{zIndex:m,children:(0,u.jsx)(l.ZP,{accessibilityModalLabel:d,footer:(0,u.jsxs)(i.xu,{dangerouslySetInlineStyle:{__style:{flexWrap:"wrap-reverse"}},display:"flex",justifyContent:n?"center":"end",children:[g&&(0,u.jsx)(i.xu,{fit:!0,flex:n?"grow":"none",minWidth:n?130:void 0,padding:1,children:(0,u.jsx)(i.zx,{color:"gray",fullWidth:n,onClick:t,size:"lg",text:g.text})}),p&&(0,u.jsx)(i.xu,{fit:!0,flex:n?"grow":"none",minWidth:n?130:void 0,padding:1,children:(0,u.jsx)(i.ZP,{color:"red",fullWidth:n,href:p.uri,onClick:()=>e(),rel:_?"nofollow":"none",size:"lg",text:p.text})})]}),heading:(0,u.jsx)(i.xu,{marginTop:n?2:0,children:(0,u.jsxs)(i.kC,{justifyContent:"between",children:[(0,u.jsx)(i.X6,{accessibilityLevel:1,size:"500",children:d}),!n&&(0,u.jsx)(i.hU,{accessibilityLabel:"Dismiss modal",bgColor:"white",icon:"cancel",iconColor:"darkGray",onClick:t,size:"sm"})]})}),onDismiss:t,size:"sm",children:(0,u.jsx)(i.xu,{padding:6,children:(0,u.jsx)(i.xv,{align:h,children:c})})})})}})}},90402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var i=n(667294),a=n(615071),l=n(883119),r=n(581852),s=n(194048),o=n(512541),d=n(135296),c=n(730212),u=n(296209),p=n(144326),m=n(581309),g=n(785893);let h=()=>{};function _({color:e,completeButtonText:t,completeButtonUrl:n,completeButtonUrlInNewTab:i,dismissButtonText:a,handleComplete:l=h,handleDismiss:r=h,header:s="",headerSubtitle:o=""}){let d=(0,p.ZP)();return(0,g.jsx)(m.Z,{color:e,completeButtonText:t||d._('Go', 'Completing the Hero banner', 'Completing the Hero banner'),completeUrl:n,dismissButtonText:a||d._('Close', 'Closing a Hero banner', 'Closing a Hero banner'),external:i,message:(s+" "+o).trim(),onComplete:l,onDismiss:r})}let y=function({handleDismiss:e=()=>{},header:t="",headerSubtitle:n="",dismissButtonText:i=""}){let a=(0,p.ZP)();return(0,g.jsx)(m.Z,{dismissButtonText:i||a._('Got it', 'dismissButton.hero.dismissText', 'Dismissing the Hero banner'),message:`${t} ${n}`,onDismiss:e})},f=function({color:e="default",completeButtonText:t,completeButtonUrl:n,completeButtonUrlInNewTab:i,handleComplete:a=()=>{},header:l="",headerSubtitle:r=""}){let s=(0,p.ZP)();return(0,g.jsx)(m.Z,{color:e,completeButtonText:t||s._('Go', 'Completing the Hero banner', 'Completing the Hero banner'),completeUrl:n,external:i,message:(l+" "+r).trim(),onComplete:a})};var x=n(559028),b=n(240760),v=n(383399);function P({completeButtonText:e,headerSubtitle:t,handleComplete:n,handleDismiss:i}){let a=(0,p.ZP)(),r=(0,v.Z)(),{firstName:s="",imageLargeUrl:o=""}=r.isAuth?r:{};return(0,g.jsx)(l.xu,{display:"flex",justifyContent:"center",position:"relative",children:(0,g.jsxs)(l.xu,{alignItems:"center",borderStyle:"shadow",dangerouslySetInlineStyle:{__style:{backgroundColor:"#EBF4FE"}},display:"flex",justifyContent:"between",marginBottom:2,marginEnd:8,marginStart:8,marginTop:4,padding:8,position:"relative",rounding:4,width:1016,children:[(0,g.jsxs)(l.kC,{alignItems:"center",justifyContent:"start",children:[(0,g.jsx)(l.xu,{marginBottom:-2,marginEnd:6,marginTop:-2,children:(0,g.jsx)(x.qE,{name:s,outline:!0,size:"lg",src:o})}),(0,g.jsxs)(l.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,g.jsx)(l.xu,{marginBottom:2,children:(0,g.jsx)(l.X6,{size:"400",children:(0,b.nk)(a._('Welcome back, {{ name }}', 'shown on a banner, "welcome back, first_name"', 'shown on a banner, "welcome back, first_name"'),{name:s})})}),(0,g.jsx)(l.xv,{children:t})]})]}),(0,g.jsx)(l.xu,{marginEnd:4,children:(0,g.jsx)(l.zx,{color:"white",onClick:n,size:"lg",text:e})}),(0,g.jsx)(l.xu,{padding:2,position:"absolute",right:!0,top:!0,children:(0,g.jsx)(l.hU,{accessibilityLabel:a._('Close', 'accessible label for close button', 'accessible label for close button'),icon:"cancel",iconColor:"darkGray",onClick:i,size:"sm"})})]})})}function k({completeButtonUrl:e,onDismiss:t,placementId:n}){let[p,m]=(0,i.useState)(!1),h=(0,c.B)(),x=(0,i.useRef)(null),b=e=>{switch(e){case 502597:return r.default;case 500863:return P;case 501153:case 501487:return f;default:return _}},v=()=>{p||m(!0)},k=`
.ExperienceHero-enter {
  opacity: 0;
  transform: translateY(-50px);
}

.ExperienceHero-enter-active {
  opacity: 1;
  transform: none;
  transition: all 400ms ease-out;
}

.ExperienceHero-exit {
  opacity: 1;
}

.ExperienceHero-exit-active {
  opacity: 0;
  transition: opacity 400ms ease-out;
}
`;return(0,g.jsxs)(i.Fragment,{children:[(0,g.jsx)(o.Z,{unsafeCSS:k}),(0,g.jsx)(s.Z,{eligibleTypes:[13],placementId:n,children:({complete:n,dismiss:i,experience:{display_data:r,experience_id:s}})=>{e&&(r.complete_button_url=e);let o=b(s),c={requestContext:h,experienceId:s,handleComplete:n,handleDismiss:()=>{t&&t(),i()},color:o===y?"dark":"infoBase",...(0,d.Z)(u.Z)(r)};return v(),(0,g.jsx)(a.Z,{classNames:"ExperienceHero",in:p,nodeRef:x,timeout:400,unmountOnExit:!0,children:(0,g.jsx)(l.xu,{ref:x,marginBottom:4,children:(0,g.jsx)(o,{...c})})})}})]})}},226274:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(667294),a=n(883119),l=n(785893);function r(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s extends i.PureComponent{constructor(...e){super(...e),r(this,"onScroll",()=>{let{dismiss:e}=this.props;this.dismissed||this.timer||(this.timer=setTimeout(()=>{e(),this.dismissed=!0,this.timer=void 0},3e3))}),r(this,"dismissed",!1)}componentDidMount(){window.addEventListener("scroll",this.onScroll)}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){let{anchor:e,text:t,thumbnails:n,idealDirection:i,forceDirection:r}=this.props,s=n.slice(-3);return(0,l.jsx)(a.J2,{anchor:e,color:"white",forceDirection:r,idealDirection:i,onDismiss:this.onScroll,shouldFocus:!1,size:"md",children:(0,l.jsxs)(a.xu,{alignContent:"center",display:"flex",justifyContent:"between",padding:3,width:"100%",children:[(0,l.jsx)(a.xu,{alignItems:"center",display:"flex",flex:"grow",justifyContent:"center",marginStart:-3,paddingX:3,children:(0,l.jsx)(a.xv,{color:"default",weight:"bold",children:t})}),(0,l.jsx)(a.xu,{display:"flex",marginEnd:-2,paddingX:2,children:s.map(e=>(0,l.jsx)(a.xu,{height:60,paddingX:1,width:50,children:(0,l.jsx)(a.zd,{height:60,rounding:2,children:(0,l.jsx)(a.Ee,{alt:"More Ideas Thumbnail",color:"rgb(86, 152, 239)",fit:"cover",naturalHeight:60,naturalWidth:60,src:e})})},e))})]})})}}var o=n(390785),d=n(697477);function c(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends i.Component{constructor(...e){super(...e),c(this,"dismissRef",(0,i.createRef)()),c(this,"state",{paused:!1}),c(this,"dismissCb",()=>{this.dismissRef.current?.()}),c(this,"handlePulsarClick",(e,t)=>{e?this.setState({paused:!0}):t()})}componentWillUnmount(){let{anchor:e}=this.props;this.timer&&clearTimeout(this.timer),e?.removeEventListener("click",this.dismissCb)}setDefaultPulsarTooltip(e){e.has_pulsar=null==e.has_pulsar||e.has_pulsar,e.has_tooltip=null==e.has_tooltip||e.has_tooltip}getText(e,t,n){return(t&&e.text.replace("{boardName}",t),n)?n(e):e.text}render(){let{anchor:e,customWrapper:t,experienceIds:n,boardTextOverride:r,fontSize:c,forceDirection:u,hasFullWidthButton:p=!0,idealDirection:m,useMasonryFlyout:g,noClickToDismiss:h,onClickComplete:_,onClickDismiss:y,placementId:f,shouldTimeoutDismiss:x,textAlign:b,textOverflow:v,textOverrideFn:P,textWeight:k,customizedComplete:S,pulsarZIndex:w,advertiserId:I,dismissButtonLocation:T,dismissButtonMarginTop:A,zIndex:E}=this.props,C=t||(({children:e})=>g?(0,l.jsx)(a.mh,{children:e}):e);return(0,l.jsx)(d.a3,{eligibleIds:n,eligibleTypes:[8],placementId:f,targeting:I?{advertiserId:parseInt(I,10)}:null,children:({complete:t,dismiss:n,experience:d})=>{let{display_data:{scroll_to_dismiss:g,scroll_to_dismiss_delay_in_seconds:f=0,...I}}=d,j=g&&e,F=()=>{L(),this.timer||(this.timer=setTimeout(n,1e3*f))},L=()=>{j&&(window.removeEventListener("scroll",F),window.removeEventListener("touchmove",F))},D=()=>{L(),t()};if(j&&(window.addEventListener("scroll",F),window.addEventListener("touchmove",F)),this.setDefaultPulsarTooltip(I),!I.has_pulsar&&!I.has_tooltip)return D(),null;x&&I.disappearTime&&I.disappearTime>0&&(this.timer=setTimeout(()=>(F(),null),I.disappearTime));let R=501041===d.experience_id||505086===d.experience_id;return I.has_tooltip&&!I.has_pulsar&&(this.dismissRef.current=F,e?.addEventListener("click",this.dismissCb)),(0,l.jsxs)(i.Fragment,{children:[I.has_pulsar&&(0,l.jsx)(o.Z,{anchor:e,leftOverride:R?342:void 0,onTouch:()=>this.handlePulsarClick(I.has_tooltip,D),paused:this.state.paused,topOverride:R?-5:void 0,zIndex:w&&w.index()}),I.has_tooltip&&(!I.has_pulsar||this.state.paused)&&(I.thumbnail_urls?(0,l.jsx)(s,{anchor:e,dismiss:F,forceDirection:u,idealDirection:m||"down",text:I.text,thumbnails:I.thumbnail_urls}):(0,l.jsx)(C,{children:(0,l.jsx)(a.Li,{anchor:e,forceDirection:u,idealDirection:m||"down",onDismiss:h?()=>{}:F,shouldFocus:!1,size:"sm",zIndex:E,children:(0,l.jsxs)(a.xu,{column:12,padding:3,children:[(0,l.jsxs)(a.xv,{align:"right"===b?"end":b,color:"light",overflow:v,size:c,weight:k||"bold",children:[this.getText(I,r,P),I.secondary_cta_link&&(0,l.jsx)(a.xu,{display:"inlineBlock",marginStart:1,children:(0,l.jsx)(a.xv,{color:"light",size:c,weight:"bold",children:(0,l.jsx)(a.rU,{display:"inlineBlock",href:I.secondary_cta_link.url,target:"blank",underline:"hover",children:I.secondary_cta_link.text})})})]}),I.sub_text&&(0,l.jsx)(a.xu,{paddingY:2,children:(0,l.jsx)(a.xv,{color:"light",size:c,children:I.sub_text})}),(I.dismiss_button_text||I.complete_button_text)&&(0,l.jsxs)(a.xu,{alignItems:"center",display:"flex",justifyContent:T||"start",marginTop:A||2,children:[I.dismiss_button_text&&(0,l.jsx)(a.xu,{column:6,marginEnd:1,children:(0,l.jsx)(a.zx,{color:"white",fullWidth:p,onClick:()=>{y&&y(),F()},size:"md",text:I.dismiss_button_text})}),I.complete_button_text&&(0,l.jsx)(a.xu,{column:I.dismiss_button_text?6:12,children:S?(0,l.jsx)(a.iP,{fullHeight:!0,onTap:()=>{D(),_&&_()},rounding:2,children:(0,l.jsx)(a.xu,{color:"default",dangerouslySetInlineStyle:{__style:{padding:"10px"}},display:"flex",justifyContent:"center",padding:2,rounding:2,children:(0,l.jsx)(a.xv,{color:"light",weight:"bold",children:I.complete_button_text})})}):(0,l.jsxs)(a.kC,{justifyContent:"center",children:[I.complete_button_cta_url&&(0,l.jsx)(a.ZP,{color:"white",fullWidth:p,href:I.complete_button_cta_url,onClick:({event:e})=>{e.preventDefault(),e.stopPropagation(),D(),_&&_()},size:"md",target:I.complete_button_cta_url?"blank":null,text:I.complete_button_text}),!I.complete_button_cta_url&&(0,l.jsx)(a.zx,{color:"white",fullWidth:p,onClick:()=>{D(),_&&_()},size:"md",text:I.complete_button_text})]})})]})]})})}))]})}})}}c(u,"defaultProps",{fontSize:"300",positionRelativeToAnchor:!0})},390785:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(883119),a=n(667294),l=n(785893);let r=(e,t,n,i)=>({horizontalOffset:-(i/2-t/2),verticalOffset:-(n/2-e/2)});function s({anchor:e,children:t,zIndex:n,leftOverride:s,topOverride:o}){let d=(0,a.useRef)(null),[c,u]=(0,a.useState)(0),[p,m]=(0,a.useState)(0),{height:g,width:h}=e.getBoundingClientRect();return(0,a.useEffect)(()=>{let{current:t}=d;if(e&&t){let{height:e,width:n}=t.getBoundingClientRect(),{horizontalOffset:i,verticalOffset:a}=r(g,h,e,n);u(i),m(a)}}),(0,l.jsx)(i.xu,{ref:d,dangerouslySetInlineStyle:{__style:{left:s||c,top:o||p}},"data-test-id":"center-box",position:"absolute",zIndex:n?new i.Ry(n):void 0,children:t})}let o=function(e){let{anchor:t,leftOverride:n,onTouch:a,onMouseEnter:r,paused:o,size:d,topOverride:c,zIndex:u}=e;return t?(0,l.jsx)(s,{anchor:t,leftOverride:n,topOverride:c,zIndex:u,children:(0,l.jsx)(i.iP,{fullWidth:!1,onMouseEnter:r,onTap:({event:e})=>a(e),rounding:"circle",children:(0,l.jsx)(i.o3,{paused:o,size:d})})}):null}},194048:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(667294),a=n(545007),l=n(488792),r=n(801925),s=n(785893);function o(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends i.Component{constructor(...e){super(...e),o(this,"state",{hasCompleted:[],hasDismissed:[]}),o(this,"experienceEligibility",!1),o(this,"view",()=>{let{experience:e,isBackendExperience:t,targeting:n,viewExperience:i,viewExperienceObject:a}=this.props;e&&"viewed"!==e.status&&(t?(e.status="viewed",a(e)):n?i(e.placement_id,e.experience_id,n):i(e.placement_id,e.experience_id))}),o(this,"complete",e=>{let{completeExperience:t,completeExperienceObject:n,experience:i,isBackendExperience:a,preventRemoval:l,targeting:r}=this.props,s=e||1;if(i&&!this.state.hasCompleted.includes(i.experience_id)){let{placement_id:e,experience_id:o}=i||{},d=l||2===s;(1===s||d)&&e&&o&&(a?n(i,d):r?t(e,o,d,r):t(e,o,d),this.setState(e=>({hasCompleted:[...e.hasCompleted,o]})))}}),o(this,"dismiss",()=>{let{dismissExperience:e,dismissExperienceObject:t,experience:n,isBackendExperience:i,preventRemoval:a,targeting:l}=this.props,{placement_id:r,experience_id:s}=n||{};n&&!this.state.hasDismissed.includes(s)&&(i?t(n):l?e(r,s,!!a,l):e(r,s,!!a),this.setState(e=>({hasDismissed:[...e.hasDismissed,s]})))}),o(this,"isEligibleExperience",e=>{if(!e)return!1;let{eligibleIds:t,eligibleTypes:n,predicate:i}=this.props,{experience_id:a,type:l}=e;return t&&t.length?t.includes(a):n&&n.length?n.includes(l):!i||i(e)})}setEligibility(){let{experience:e}=this.props,t=this.isEligibleExperience(e);this.experienceEligibility!==t&&(this.experienceEligibility=t)}componentDidMount(){if(this.props.disableAutoView)return;let{experience:e}=this.props;e&&this.isEligibleExperience(e)&&this.view(),this.setEligibility()}componentDidUpdate(e){if(this.props.disableAutoView)return;let t=e.experience,n=this.props.experience,i=this.isEligibleExperience(n);if(!n||!i){this.setEligibility();return}let a=t?.experience_id!==n.experience_id,l=i&&!this.experienceEligibility;(!t||a||l)&&(this.setEligibility(),this.view())}render(){let{children:e,experience:t,disableAutoView:n}=this.props;return t&&this.isEligibleExperience(t)?"function"==typeof e?e({experience:t,complete:this.complete,dismiss:this.dismiss,...n?{view:this.view}:Object.freeze({})}):i.Children.only(e):null}}function c(e){let t=(0,a.v9)(({experiences:t})=>e.experience||(e.placementId?t[e.placementId]:void 0)),n=(0,a.I0)(),i=(0,r.be)(),o=(0,r.Am)(),c=(0,r.Ig)(),u=(0,l.Z)();return(0,s.jsx)(d,{...e,completeExperience:(e,t,a,l)=>n(i(e,t,a,!1,{},l)),completeExperienceObject:(e,t)=>n((0,r.Tl)(u)(e,t)),dismissExperience:(e,t,i,a)=>n(o(e,t,i,void 0,a)),dismissExperienceObject:e=>n((0,r.CF)(e)),experience:t,viewExperience:(e,t,i)=>n(c(e,t,!1,!1,void 0,i)),viewExperienceObject:e=>n((0,r.dy)(u)(e))})}o(d,"defaultProps",{eligibleIds:[],eligibleTypes:[]})},697477:(e,t,n)=>{"use strict";n.d(t,{a3:()=>i.Z,FH:()=>c,Uv:()=>m,k6:()=>_,H6:()=>f,OR:()=>x});var i=n(194048),a=n(667294),l=n(545007),r=n(14890),s=n(801925),o=n(687630),d=n(785893);function c({children:e}){let[t,n]=(0,a.useReducer)((e,t)=>{if("MOUNT_PLACEMENT"===t.type)return{...e,mountedPlacements:{...e.mountedPlacements,[t.payload]:!0}};if("UNMOUNT_PLACEMENT"===t.type){let n={...e};return delete n.mountedPlacements[t.payload],delete n.registerdAfterActionPlacements[t.payload],n}return"REGISTER_AFTER_ACTION_PLACEMENT"===t.type?{...e,registerdAfterActionPlacements:{...e.registerdAfterActionPlacements,[t.payload]:!0}}:e},{mountedPlacements:{},registerdAfterActionPlacements:{}}),{mountedPlacements:i,registerdAfterActionPlacements:c}=t,u=(0,l.I0)(),p=(0,l.v9)(e=>e.experiences),m=(0,s.be)(),g=(0,s.Am)(),h=(0,s.Ig)(),_=(0,a.useMemo)(()=>{let e=(0,r.bindActionCreators)({completeExperience:m,dismissExperience:g,fetchAllExperiences:s.fO,fetchAllExperiencesMulti:s.NW,fetchExperienceForPlacements:s.pz,mountPlacement:s.N,triggerExperimentsForPlacement:s.kd,viewExperience:h},u);return{...e,mountPlacement:(t,...i)=>{e.mountPlacement(t,...i),n({type:"MOUNT_PLACEMENT",payload:t})},unmountPlacement:e=>{n({type:"UNMOUNT_PLACEMENT",payload:e})},registerAfterActionPlacement:e=>{n({type:"REGISTER_AFTER_ACTION_PLACEMENT",payload:e})}}},[m,g,u,n,h]),y=(0,a.useMemo)(()=>({experiences:p,mountedPlacements:i,registerdAfterActionPlacements:c,..._}),[p,i,c,_]);return(0,d.jsx)(o.L,{value:y,children:e})}var u=n(590215),p=n(969119);function m(){let e=(0,u.Z)();return(0,p.Z)(()=>{e.fetchAllExperiences(),e.fetchAllExperiencesMulti()}),null}var g=n(989820),h=n(984824);let _=({placementId:e})=>{let{experienceForPlacement:t}=(0,h.oS)(e),{unmountPlacement:n,registerAfterActionPlacement:i}=(0,h.M0)();return(0,a.useEffect)(()=>(i(e),()=>{n(e)}),[e,n,i]),(0,d.jsxs)(a.Fragment,{children:[(0,d.jsx)(g.nj,{experience:t}),(0,d.jsx)(g.O9,{experience:t}),(0,d.jsx)(g._f,{experience:t})]})};var y=n(603667);let f=({placementId:e})=>{let t=(0,g.cO)(),n=(0,y.Z)();return(0,a.useEffect)(()=>{let e=e=>{let{clickthroughProperties:n,offsiteTimedPair:i}=e;(n?.aux_data?.time_to_offsite??5e8)<5e8&&t("Clickthrough",{is_promoted:n?.aux_data?.is_promoted,pin_id:n?.object_id_str,clickthrough_duration_ns:i?.duration})};return e&&n?.onOffsiteEnd(e),()=>{e&&n?.removeOnOffsiteEnd(e)}},[t,n]),(0,d.jsx)(g.k6,{placementId:e})},x=({abortNoActionPlacementTimeout:e,extraContext:t,placementId:n})=>{let i=(0,g.cO)();return!function(e,t){let n=(0,a.useRef)(0),i=(0,a.useRef)(e);(0,a.useEffect)(()=>{i.current=e},[e]),(0,a.useEffect)(()=>{if("number"==typeof t)return n.current=window.setTimeout(()=>i.current(),t),()=>window.clearTimeout(n.current)},[t])}(()=>{i("NoAction",t)},e?null:4e3),(0,d.jsx)(g.k6,{placementId:n})}},801925:(e,t,n)=>{"use strict";let i;n.d(t,{Tl:()=>S,CF:()=>w,fO:()=>p,NW:()=>m,pz:()=>g,YX:()=>v,N:()=>P,kd:()=>b,be:()=>y,Sd:()=>x,Am:()=>f,Ig:()=>_,dy:()=>I});var a=n(667294),l=n(252071),r=n(488792),s=n(744920),o=n(781956),d=n(400416),c=n(415787);let u=(e,t,n={})=>(0,c.nP)(`${e}.${t}`,{sampleRate:1,tags:n}),p=(e,t)=>n=>l.Z.create("UserExperiencePlatformResource",t?{extra_context:e,targeting:t}:{extra_context:e}).callGet().then(e=>e.resource_response?n((0,s.OD)(e.resource_response.data)):void 0),m=e=>t=>l.Z.create("UserExperiencePlatformResource",{extra_context:e,multiExperiencePlatform:!0}).callGet().then(e=>e.resource_response?t((0,s.xF)(e.resource_response.data)):void 0),g=(e,t,n,a)=>(r,d)=>{if(t)return Promise.resolve();if(a&&(i=a),1===e.length){let t=e[0],i=d().experiences[t];if(JSON.stringify(i?.extraContext||null)===JSON.stringify(n)||(0,o.E3)(i)&&!(n&&Object.keys(n).length>0))return Promise.resolve()}return l.Z.create("UserExperienceResource",{placement_ids:e,extra_context:n||null,targeting:a}).callGet().then(e=>e.resource_response?r((0,s.cL)(e.resource_response.data)):void 0)},h=(e,t,n,a)=>(r,o,d,c=!1,u,m)=>(g,h)=>{let{experiences:_,experiencesMulti:y}=h(),f=null,x=!0;if(c||(f=(x=!!_[r]&&_[r].experience_id===o)?_[r]:Array.isArray(y[r])&&y[r]?.find(e=>e.experience_id===o)),f&&f.experience_id===o||c&&r&&o){let c=l.Z.create(e,{placed_experience_id:`${r}%3A${o}`,extra_context:u??{},targeting:m}),h=x?s.Yb:s.xW;switch(t){case"dismissed":return c.callDelete().then(()=>{g(h(r,o,t)),g(p(void 0,i)),n&&a&&n({event_type:a,object_id_str:o.toString()})});case"completed":return c.callUpdate().then(()=>{!d&&(g(h(r,o,t)),g(p(void 0,i)),n&&a&&n({event_type:a,object_id_str:o.toString()}))});case"viewed":return g(h(r,o,t)),c.callUpdate().then(()=>{1000162===r&&g(p()),n&&a&&n({event_type:a,object_id_str:o.toString()})});case"completedWithoutHomefeed":return c.callUpdate().then(()=>{d||g(h(r,o,t)),n&&a&&n({event_type:a,object_id_str:o.toString()})})}}return Promise.resolve()},_=()=>{let e=(0,r.Z)();return(0,a.useCallback)(h("UserExperienceViewedResource","viewed",e,4503),[e])},y=()=>{let e=(0,r.Z)();return(0,a.useCallback)(h("UserExperienceCompletedResource","completed",e,6567),[e])},f=()=>{let e=(0,r.Z)();return(0,a.useCallback)(h("UserExperienceResource","dismissed",e,6568),[e])},x=()=>{let e=(0,r.Z)();return(0,a.useCallback)(h("UserExperienceCompletedResource","completedWithoutHomefeed",e,6567),[e])},b=(e,t)=>(n,i)=>{let{experiences:a}=i(),l=a[e];l&&l.triggerable_placed_exps&&l.triggerable_placed_exps.length&&l.triggerable_placed_exps.forEach(n=>{let[,i]=n.split(":"),a=t;l.metadata&&l.metadata[i]&&(a={...t,...l.metadata[i]}),(0,d.Z)({url:`/v3/experiences/${n.replace(":","%3A")}/trigger/`,method:"PUT",data:a?{extra_context:JSON.stringify(a,null,1)}:{}}).then(()=>{u("experienceservice","experimentTriggerCall.1",{placement_id:e,experience_id:i})})})},v=e=>(t,n)=>{t(b(e));let{experiences:i}=n();return i[e]},P=(e,t,n)=>a=>{n&&(i=n),a(b(e,t)),t&&Object.keys(t).length>0&&a(g([e],!1,t,n))},k=(e,t,n,i)=>(a,r)=>s=>{if(a&&a.id){let o=l.Z.create(e,{placed_experience_id:a.id,extra_context:{}});switch(t){case"dismissed":o.callDelete().then(()=>{s(p()),n&&i&&n({event_type:i,object_id_str:a.id.toString()})});break;case"completed":o.callUpdate().then(()=>{r||s(p()),n&&i&&n({event_type:i,object_id_str:a.id.toString()})});break;case"viewed":o.callUpdate().then(()=>{n&&i&&n({event_type:i,object_id_str:a.id.toString()})})}}},S=e=>k("UserExperienceCompletedResource","completed",e,6567),w=k("UserExperienceResource","dismissed"),I=e=>k("UserExperienceViewedResource","viewed",e,4503)},984824:(e,t,n)=>{"use strict";n.d(t,{cO:()=>p,_P:()=>y,oS:()=>x.Z,M0:()=>l.Z,ag:()=>f,Ow:()=>w,RL:()=>C});var i=n(667294),a=n(616550),l=n(687630),r=n(282999),s=n(868808),o=n(410150);let d=(e,t)=>((0,r.XU)(e)&&e.state?.from&&(e=e.state.from),(0,r.HV)(e))?t?1000503:1000558:(0,r.En)(e)?t?1000506:1000559:(0,r.L6)(e)?t?1000141:1000494:void 0,c=(e,t)=>{if(t&&(0,r.L6)(e))return 1000564},u=(e,t)=>{if(t){if((0,r.HV)(e))return 1000541;if((0,r.En)(e))return 1000542;if((0,r.L6)(e))return 1000140}else if((0,r.HV)(e))return 1000544;else if((0,r.En)(e))return 1000543;else if((0,r.L6)(e))return 1000540},p=()=>{let{mountPlacement:e,registerdAfterActionPlacements:t}=(0,l.Z)(),n=(0,o.HG)(),p=(0,a.TH)();return(0,i.useCallback)((i,a,l)=>{let o;switch(i){case"Save":o=a?.isRepinTakeover?1000578:d(p,n);break;case"Download":(0,r.L6)(p)&&(o=n?1000499:1000500);break;case"Clickthrough":o=u(p,n);break;case"NoAction":o=c(p,n)}null!=o&&((0,r.En)(p)&&(a={...a,search_query:(0,s.mB)(p.search)}),null!=o&&(t[o]||(0,r.XU)(p))&&e(o,a,l))},[t,e,p,n])};var m=n(545007),g=n(785220),h=n(801925),_=n(730212);let y=({extraContext:e,id:t,shouldUsePlacedExperience:n=!0})=>{let a=(0,i.useRef)(),l=(0,m.I0)(),{isBot:r}=(0,_.B)(),s=(0,m.v9)(e=>e.experiences[t]);return(0,i.useEffect)(()=>{l((0,h.kd)(t))},[l,s,t]),(0,i.useEffect)(()=>{n||(0,g.ZP)(a.current,e)||(l((0,h.pz)([t],r,e)),a.current=e)},[l,e,r,t,n]),s},f=e=>(y(e),(0,m.v9)(t=>t.experiencesMulti[e.id]));var x=n(590215),b=n(442279),v=n(415787);let P=(0,b.P1)(e=>e.experiences,(e,t)=>t,(e,t)=>e[t]),k=(e,t,n={})=>(0,v.nP)(`${e}.${t}`,{sampleRate:1,tags:n}),S=(e,t)=>"function"==typeof t?t(e):t,w=(e,t={},n=!1)=>{let[a,r]=(0,i.useReducer)(S,t),{isBot:s}=(0,_.B)(),{fetchExperienceForPlacements:o,mountPlacement:d,triggerExperimentsForPlacement:c,unmountPlacement:u}=(0,l.Z)();(0,i.useDebugValue)(`Placement Hook ID - ${e}`),(0,i.useEffect)(()=>(d(e,a,n&&a?.advertiser_id?{advertiserId:a.advertiser_id}:void 0),()=>{u(e)}),[]),(0,i.useEffect)(()=>{Object.keys(a).length>0&&o([e],s,a,n&&a?.advertiser_id?{advertiserId:a.advertiser_id}:void 0)},[a]);let p=(0,m.v9)(t=>P(t,e)),g=(0,m.v9)(t=>t.experiencesMulti[e]),h=p?p.triggerable_placed_exps:[];return(0,i.useEffect)(()=>{k("experienceservice","placementHookExperimentTrigger.1",{platform:"web",placement_id:e,...h}),c(e,a)},[JSON.stringify(h)]),{experience:p,experiencesMulti:g,setExtraContext:r}};var I=n(781956),T=n(785893);function A(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let E={dispatchMountActionDuringSSR:!1,isAdvertiserPlacement:!1},C=(e,t={},n)=>a=>{let r=function(e,t,n=!0,a=!1,r){class s extends i.Component{constructor(e){super(e),A(this,"state",{extraContext:void 0}),A(this,"setExtraContextState",e=>{(0,g.ZP)(this.state.extraContext,e)||this.setState({extraContext:e})})}componentDidMount(){this.dispatchPlacementMount()}componentDidUpdate(n,i){let{dispatch:a,experience:l,requestContext:r}=this.props,s=i.extraContext,o=this.state.extraContext||t||{};"function"==typeof t&&(s=t(n,i.extraContext||{}),o=t(this.props,this.state.extraContext||{})),o&&Object.keys(o).length>0&&!(0,g.ZP)(s,o)&&a((0,h.pz)([e],r.isBot,o)),l&&(!n.experience||l.id!==n.experience.id)&&a((0,h.kd)(e,o))}componentWillUnmount(){this.props.unmountPlacement(e)}dispatchPlacementMount(){let n="function"==typeof t?t(this.props,this.state.extraContext||{}):{...t},i=a&&n?.advertiser_id?{advertiserId:n.advertiser_id}:void 0;this.props.mountPlacement(e,n,i)}render(){let{experience:e,experiencesMulti:t}=this.props,n={[a?"advertiserExperience":"experience"]:(0,I.E3)(e)?e:null};return(0,T.jsx)(r,{...this.props,setPlacementExtraContext:this.setExtraContextState,...n,experiencesMulti:t})}}function o(e){let t=(0,_.B)(),n=(0,m.I0)(),{mountPlacement:i,unmountPlacement:a}=(0,l.Z)();return(0,T.jsx)(s,{...e,dispatch:n,mountPlacement:i,requestContext:t,unmountPlacement:a})}return o.displayName=`withPlacement(${r.displayName||r.name||"Component"})`,o}(e,t,(n={...E,...n}).dispatchMountActionDuringSSR,n.isAdvertiserPlacement,a),s=t=>{let n=(0,m.v9)(t=>t.experiences[e]),i=(0,m.v9)(t=>t.experiencesMulti?t.experiencesMulti[e]:void 0);return(0,T.jsx)(r,{...t,experience:n,experiencesMulti:i})};return s.displayName=r.displayName,s}},590215:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(667294),a=n(687630),l=n(781956),r=n(730212);function s(e){let{mountedPlacements:t,completeExperience:n,dismissExperience:s,experiences:o,fetchAllExperiences:d,fetchAllExperiencesMulti:c,fetchExperienceForPlacements:u,triggerExperimentsForPlacement:p,viewExperience:m}=(0,a.Z)(),{isBot:g}=(0,r.B)(),h=e&&!g?(0,l.MQ)(o,t,e):null;return(0,i.useMemo)(()=>({completeExperience:n,dismissExperience:s,experienceForPlacement:h,fetchAllExperiences:d,fetchAllExperiencesMulti:c,fetchExperienceForPlacements:u,triggerExperimentsForPlacement:p,viewExperience:m}),[n,s,h,d,c,u,p,m])}},687630:(e,t,n)=>{"use strict";n.d(t,{L:()=>i,Z:()=>l});let{Provider:i,useHook:a}=(0,n(498490).Z)("ExperienceContext"),l=a},989820:(e,t,n)=>{"use strict";n.d(t,{a3:()=>tn.a3,w0:()=>u,vx:()=>m,_7:()=>k,b9:()=>j,iH:()=>L,_f:()=>$,Ig:()=>q,FH:()=>tn.FH,u3:()=>Q.default,Uv:()=>tn.Uv,LS:()=>ei,So:()=>eA,nj:()=>eT,dr:()=>tt,N:()=>eL,M8:()=>eR,O9:()=>eq,RK:()=>e3,Qp:()=>e4.default,cs:()=>e9,mc:()=>e5,k6:()=>tn.k6,H6:()=>tn.H6,OR:()=>tn.OR,KS:()=>eN,pF:()=>eZ,cO:()=>y.cO,_P:()=>y._P,oS:()=>y.oS,M0:()=>y.M0,ag:()=>y.ag,Ow:()=>y.Ow,RL:()=>y.RL}),n(295393);var i=n(883119),a=n(573706),l=n(144326),r=n(785893);let s={"error-callout":"error","info-callout":"info","warning-callout":"warning"};function o(e){let t=(0,l.ZP)(),{logContextEvent:n}=(0,a.v)(),{displayData:o,experienceId:d,onComplete:c,onDismiss:u}=e,p={info:t._('Information icon', 'analyticsCalloutBanner.accessibilityLabel.info', 'accessibility label for info icon'),warning:t._('Warning icon', 'analyticsCalloutBanner.accessibilityLabel.warning', 'accessibility label for warning icon'),error:t._('Error icon', 'analyticsCalloutBanner.accessibilityLabel.error', 'accessibility label for error icon')},m=s[o.type]||"info";return(0,r.jsx)(i.xu,{marginTop:6,paddingX:6,children:(0,r.jsx)(i.ci,{dismissButton:{accessibilityLabel:t._('Dismiss banner', 'analyticsCalloutBanner.dismissAccessibilityLabel', 'accessibility label to dismiss banner with metric updates on analytics'),onDismiss:()=>{u(),n({event_type:101,component:14071,element:11925,aux_data:{placed_experience_id:d}})}},iconAccessibilityLabel:p[m],message:(0,r.jsxs)(i.xv,{children:[o.message,o.link?(0,r.jsx)(i.rU,{display:"inline",href:o.link.href,target:"blank",children:o.link.text}):null]},"message"),primaryAction:o.primaryAction?.label?{label:o.primaryAction.label,accessibilityLabel:o.primaryAction.accessibilityLabel,href:o.primaryAction.href,onClick:({dangerouslyDisableOnNavigation:e})=>{e(),c(),n({event_type:101,component:14071,element:13004,aux_data:{placed_experience_id:d}})},target:"blank",role:"link"}:void 0,secondaryAction:o.secondaryAction?.label?{label:o.secondaryAction.label,accessibilityLabel:o.secondaryAction.accessibilityLabel,href:o.secondaryAction.href,onClick:({dangerouslyDisableOnNavigation:e})=>{e(),u(),n({event_type:101,component:14071,element:13005,aux_data:{placed_experience_id:d}})},target:"blank",role:"link"}:void 0,title:o.title,type:m})})}var d=n(194048);let c=["error-callout","info-callout","warning-callout"];function u(e){let{placementId:t}=e;return(0,r.jsx)(d.Z,{placementId:t,predicate:e=>e.display_data?.type&&c.includes(e.display_data.type)&&e.display_data?.message,children:({complete:e,dismiss:t,experience:{display_data:n,experience_id:i}})=>(0,r.jsx)(o,{displayData:n,experienceId:i,onComplete:e,onDismiss:t})})}function p(e){let t=(0,l.ZP)(),{logContextEvent:n}=(0,a.v)(),{displayData:s,experienceId:o,onComplete:d,onDismiss:c,marginBottom:u}=e;return(0,r.jsx)(i.xu,{marginBottom:u,marginTop:6,paddingX:6,children:(0,r.jsx)(i.XA,{dismissButton:{accessibilityLabel:t._('Dismiss banner', 'analyticsCalloutBanner.dismissAccessibilityLabel', 'accessibility label to dismiss banner with metric updates on analytics'),onDismiss:()=>{c(),n({event_type:101,component:14075,element:11925,aux_data:{placed_experience_id:o}})}},message:s.message,primaryAction:s.primaryAction?.label?{label:s.primaryAction.label,accessibilityLabel:s.primaryAction.accessibilityLabel,href:s.primaryAction.href,onClick:({dangerouslyDisableOnNavigation:e})=>{e(),d(),n({event_type:101,component:14075,element:13004,aux_data:{placed_experience_id:o}})},target:"blank",role:"link"}:void 0,secondaryAction:s.secondaryAction?.label?{label:s.secondaryAction.label,accessibilityLabel:s.secondaryAction.accessibilityLabel,href:s.secondaryAction.href,onClick:({dangerouslyDisableOnNavigation:e})=>{e(),c(),n({event_type:101,component:14075,element:13005,aux_data:{placed_experience_id:o}})},target:"blank",role:"link"}:void 0,title:s.title})})}function m(e){let{placementId:t,marginBottom:n}=e;return(0,r.jsx)(d.Z,{placementId:t,predicate:e=>e.display_data?.type==="upsell"&&e.display_data?.message,children:({complete:e,dismiss:t,experience:{display_data:i,experience_id:a}})=>(0,r.jsx)(p,{displayData:i,experienceId:a,marginBottom:n,onComplete:e,onDismiss:t})})}var g=n(667294),h=n(390785);class _ extends g.Component{renderPulsar(){let{anchor:e,handleComplete:t,handlePulsarCompleteOnHover:n,zIndex:i}=this.props;return(0,r.jsx)(h.Z,{anchor:e,onMouseEnter:n,onTouch:t,zIndex:i})}renderFlyout(){let{anchor:e,tooltip:t,handleDismiss:n,handleComplete:a}=this.props;if(!t)return null;let{cancelButtonText:l,confirmButtonText:s,mainText:o,idealDirection:d="down"}=t,c=l&&!!n&&s&&a;return(0,r.jsx)(i.Li,{anchor:e,idealDirection:d,message:o,onDismiss:n,primaryAction:{onClick:c?n:a,text:c?String(l):String(s),role:"button"},size:"flexible"})}render(){let{anchor:e,pulserOnly:t}=this.props;return e?t?this.renderPulsar():this.renderFlyout():null}}var y=n(984824),f=n(781956),x=n(135296),b=n(296209);let v=({anchor:e,anchorExperiences:t,passedExperience:n})=>n||(t?t[e]:null),P=e=>{let{display_data:t}=e;return t.tooltip&&(t.tooltip={...t.tooltip.options,...t.tooltip},delete t.tooltip.options),(0,x.Z)(b.Z,!0)(t)};function k({anchor:e,anchorElementRef:t,children:n,containerBoxConfig:a,experience:l,isHidden:s,onCompleteClick:o,zIndex:d}){let{completeExperience:c,dismissExperience:u,experiences:p,viewExperience:m}=(0,y.M0)(),h=v({anchor:e,anchorExperiences:Object.values(p).reduce((e,t)=>(8===t.type&&(e[(0,f.A0)(t)]=t),e),{}),passedExperience:l}),x=h?.display_data?.delay||0,[b,k]=(0,g.useState)(!!x);if((0,g.useEffect)(()=>{if(x>0&&b){let e=setTimeout(()=>{k(!1)});return()=>clearTimeout(e)}return()=>{}},[x,b]),(0,g.useEffect)(()=>{!b&&h&&m(h.placement_id,h.experience_id)},[b,h]),!h||b||s)return g.Children.only(n);let S=P(h),w=()=>{h.display_data?.complete_on_hover&&c(h.placement_id,h.experience_id)};return(0,r.jsxs)(i.xu,{display:a?.display,height:a?.height,position:"relative",children:[(0,r.jsx)(i.iP,{onMouseEnter:w,onTap:()=>{o&&o(),S.skipComplete||c(h.placement_id,h.experience_id)},children:g.Children.only(n)}),(0,r.jsx)(_,{anchor:t||null,handleComplete:()=>{t instanceof HTMLElement&&t.click()},handleDismiss:e=>{e?.event&&e.event.stopPropagation(),u(h.placement_id,h.experience_id)},handlePulsarCompleteOnHover:w,pulserOnly:!!S.pulserOnly,tooltip:S.tooltip,zIndex:d})]})}var S=n(679482),w=n(512541),I=n(693625),T=n(648089);let A=(S.yF+S.lX)*S.yc-S.lX,E=Array.from(Array(S.g5-S.yc).keys()).reduce((e,t)=>{let n=t+S.yc,i=(S.yF+S.lX)*n-S.lX;return e+(0,S.KN)(S.yF,n,n,`.banner-content {
          width: ${i}px;
          min-width: ${i}px;
        }`,S.lX)},`.banner-content {
      width: ${A}px;
      min-width: ${A}px;
  }`);function C(e){let t=(0,l.ZP)(),{displayData:{backgroundColorNarrow:n,backgroundColorWide:a,backgroundImageNarrow:s,backgroundImageWide:o,canClose:d,completeButtonText:c,coverImage:u,dismissButtonText:p,iconImage:m,layoutNarrow:g,layoutWide:h,links:_=[],linkTitles:y=[],message:f,onCompleteRedirectUrl:x,onDismissRedirectUrl:b,textColorNarrow:v,textColorWide:P,titleText:k,external:S},onComplete:A,onDismiss:C}=e,{windowWidth:j}=(0,I.Z)(),F=j<=480,L=F?g:h,D=!F&&3!==L,R=F?n:a,O=F?v:P,{altText:Z,uri:M}=(F?s:o)||{},{altText:K,uri:N}=u||{},{altText:z,uri:B}=m||{},U=F&&2===L||!F&&2===L,H=F?"96px":"48px",G=F&&3===L,V=c&&!x&&(0,r.jsx)(i.zx,{color:"white",onClick:({event:e})=>{A?.(e)},text:c}),W=(0,T.Z)({url:x}),$=c&&x&&(0,r.jsx)(i.ZP,{color:"white",href:x,onClick:({event:e})=>{A?.(e)},rel:W?"nofollow":"none",size:"lg",target:S?"blank":void 0,text:c},"naglink"),Y=(0,T.Z)({url:b}),X=p&&b&&(0,r.jsx)(i.ZP,{color:"white",href:b,onClick:({event:e})=>{C?.(e)},rel:Y?"nofollow":"none",size:"lg",target:S?"blank":void 0,text:p},"naglink"),q=p&&!b&&(0,r.jsx)(i.zx,{color:"white",onClick:({event:e})=>{C?.(e)},size:"lg",text:p}),Q=d&&(0,r.jsx)(i.hU,{accessibilityLabel:t._('Close', 'accessibility close label', 'accessibility close label'),bgColor:"lightGray",icon:"cancel",iconColor:"gray",onClick:({event:e})=>{C?.(e)},size:"md"}),J=_.reduce((e,t,n)=>{let i=t.startsWith("https://")||t.startsWith("http://")?'rel="noreferrer noopener" target="_blank"':"",a=`<a href="${t}" ${i}>${y[n]}</a>`;return e.replace(`{${n}}`,a)},f),ee={backgroundColor:R,backgroundImage:!M||U||G?void 0:`url(${M})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"};return(0,r.jsxs)(i.xu,{direction:D?"row":"column",display:"flex",marginBottom:5,marginEnd:2,marginStart:2,marginTop:2,children:[(0,r.jsx)(w.Z,{unsafeCSS:E}),(0,r.jsx)("div",{className:"banner-content",style:{borderRadius:"16px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",margin:"0 auto"},children:(0,r.jsxs)(i.zd,{rounding:4,width:"100%",children:[G&&N&&(0,r.jsx)(i.kC,{alignItems:"start",height:128,justifyContent:"center",width:"100%",children:(0,r.jsx)(i.Ee,{alt:K||"cover image",fit:"cover",naturalHeight:1,naturalWidth:3,src:N})}),(0,r.jsxs)(i.xu,{alignItems:"center","aria-label":Z,dangerouslySetInlineStyle:{__style:ee},direction:D?"row":"column",display:"flex",justifyContent:"between",marginTop:G?-2:0,padding:6,children:[(0,r.jsxs)(i.kC,{alignItems:"center",direction:D?"row":"column",justifyContent:"between",maxWidth:D?void 0:"560px",children:[U&&B&&(0,r.jsx)(i.xu,{alignItems:"center",direction:"column",display:"flex",justifyContent:"center",marginBottom:D?0:6,marginEnd:D?4:0,children:(0,r.jsx)(i.xu,{height:H,width:H,children:(0,r.jsx)(i.zd,{rounding:D?4:6,children:(0,r.jsx)(i.Ee,{alt:z||"icon",naturalHeight:1,naturalWidth:1,src:B})})})}),!D&&k&&(0,r.jsx)(i.xv,{align:"center",weight:"bold",children:(0,r.jsx)("div",{className:"banner-title",style:{color:O,fontSize:"28px",marginBottom:"8px"},children:k})}),J&&(0,r.jsxs)(i.xv,{align:D?"start":"center",overflow:"normal",children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`
                        .banner-text a {
                          color: ${O||""};
                          font-weight: bold;
                        }`}}),(0,r.jsx)("div",{className:"banner-text",dangerouslySetInnerHTML:{__html:J},style:{color:O}})]})]}),(0,r.jsx)(i.xu,{marginBottom:D?0:-1,marginStart:D?4:0,marginTop:D?0:4,children:(0,r.jsxs)(i.kC,{alignItems:"center",gap:{row:2,column:0},justifyContent:"center",wrap:!D,children:[q||X,V||$,Q]})})]})]})})]})}let j=({placementId:e})=>(0,r.jsx)(d.Z,{placementId:e,predicate:e=>e.display_data?.component_type===1,children:({complete:e,dismiss:t,experience:{display_data:n}})=>{let i=(0,x.Z)(b.Z)(n);return(0,r.jsx)(C,{displayData:i,onComplete:()=>e(),onDismiss:t})}}),F=[502312,502320,502321,502322],L=({placementId:e})=>(0,r.jsx)(d.Z,{eligibleIds:F,placementId:e,preventRemoval:!0,children:({complete:e})=>(e(),null)});var D=n(410150);let R=({data:e,buttonType:t,calloutType:n})=>{let{accessibilityLabel:a,disabled:l,label:s}=e,o=(0,D.HG)(),d="transparent";"primary"===t&&(d="upsell"===n?"red":"gray");let c="md";switch(n){case"neutral":c=o?"sm":"md";break;case"upsell":c=o?"md":"sm";break;default:c="md"}return(0,r.jsx)(i.xu,{alignItems:"center",display:"flex",justifyContent:"center",paddingX:1,children:"link"===e.role?(0,r.jsx)(i.ZP,{accessibilityLabel:a,color:d,disabled:l,fullWidth:!0,href:e.href,onClick:e.onClick,rel:e.rel,size:c,target:e.target,text:s}):(0,r.jsx)(i.zx,{accessibilityLabel:a,color:d,disabled:l,fullWidth:!0,onClick:e.onClick,size:c,text:s})})};function O({dismissButton:e,message:t,primaryAction:n,secondaryAction:a,title:s}){let o=(0,D.HG)(),d=n||a,c=(0,l.ZP)(),u=e&&(0,r.jsx)(i.xu,{alignSelf:"baseline",children:(0,r.jsx)(i.hU,{accessibilityLabel:e.accessibilityLabel||c._('Dismiss callout', 'experiences.ExperienceCallout.CalloutNeutral.dismissLabel', 'Accessibility label for the X button to dismiss a callout'),icon:"cancel",iconColor:"darkGray",onClick:e.onDismiss,size:"xs"})});return(0,r.jsxs)(i.xu,{borderStyle:"sm",color:"transparent",direction:"row",display:"flex",marginBottom:4,padding:4,rounding:4,children:[(0,r.jsxs)(i.kC,{direction:o?"row":"column",width:"100%",wrap:!o,children:[(0,r.jsxs)(i.kC,{flex:"grow",justifyContent:"between",minWidth:0,children:[(0,r.jsxs)(i.kC,{direction:"column",flex:"shrink",children:[s&&(0,r.jsx)(i.xu,{marginBottom:2,children:(0,r.jsx)(i.xv,{size:"400",weight:"bold",children:s})}),(0,r.jsx)(i.xv,{children:t})]}),!o&&u]}),d&&(0,r.jsxs)(i.xu,{display:"flex",flex:"none",marginStart:"auto",marginTop:o?0:2,children:[a&&(0,r.jsx)(R,{buttonType:"secondary",calloutType:"neutral",data:a}),n&&(0,r.jsx)(R,{buttonType:"primary",calloutType:"neutral",data:n})]})]}),o&&u]})}let Z=(S.yF+S.lX)*S.yc-S.lX,M=Array.from(Array(S.g5-S.yc).keys()).reduce((e,t)=>{let n=t+S.yc,i=(S.yF+S.lX)*n-S.lX;return e+(0,S.KN)(S.yF,n,n,`.masonry-width-wrapper {
          width: ${i}px;
          min-width: ${i}px;
          margin: 0 auto;

        }`,S.lX)},`.masonry-width-wrapper {
      width: ${Z}px;
      min-width: ${Z}px;
      margin: 0 auto;

  }`),K=({children:e})=>{let t=(0,D.HG)();return(0,r.jsxs)(g.Fragment,{children:[t&&(0,r.jsx)(w.Z,{unsafeCSS:M})," ",(0,r.jsx)("div",{className:"masonry-width-wrapper",children:e})]})};var N=n(793874);function z({dismissButton:e,imageData:t,message:n,primaryAction:a,secondaryAction:s,title:o}){let d;let c=t?.component&&t.component.type===i.Ee,u=(0,D.HG)(),p=(0,l.ZP)(),m=!!(a||s);"string"==typeof n&&(d=(0,r.jsx)(i.xv,{children:n}));let g=p._('Dismiss callout', 'experiences.ExperienceCallout.UpsellCallout.dismissLabel', 'Accessibility label for the X button to dismiss an upsell callout'),h=e&&(0,r.jsx)(i.xu,{alignSelf:u?"center":"baseline",children:(0,r.jsx)(i.hU,{accessibilityLabel:e.accessibilityLabel||g,icon:"cancel",iconColor:"darkGray",onClick:e.onDismiss,size:"xs"})});return(0,r.jsxs)(i.xu,{borderStyle:"shadow",color:(0,N.Yc)()&&!u?"elevationFloating":"default",direction:"row",display:"flex",maxWidth:u?900:348,minWidth:u?380:348,padding:4,position:"relative",rounding:4,children:[(0,r.jsxs)(i.kC,{direction:u?"row":"column",width:"100%",wrap:!u,children:[(0,r.jsxs)(i.kC,{alignItems:u?"center":"start",flex:"grow",justifyContent:"between",minWidth:0,children:[t&&(0,r.jsx)(i.xu,{flex:"none",marginEnd:4,width:c?Math.min(t.width||128,128):void 0,children:(0,r.jsx)(i.zd,{rounding:t.mask?.rounding||0,wash:t.mask?.wash||!1,children:t.component})}),(0,r.jsx)(i.xu,{alignItems:"center",direction:"column",display:"flex",marginBottom:"auto",marginEnd:0,marginStart:0,marginTop:"auto",smDisplay:"block",smMarginEnd:6,smMarginStart:t?6:0,children:(0,r.jsxs)(i.xu,{maxWidth:648,children:[o&&(0,r.jsx)(i.xu,{marginBottom:2,children:(0,r.jsx)(i.xv,{size:"400",weight:"bold",children:o})}),d||n]})}),!u&&h]}),m&&(0,r.jsxs)(i.xu,{display:"flex",flex:"none",marginStart:"auto",marginTop:u?0:2,children:[s&&(0,r.jsx)(R,{buttonType:"secondary",calloutType:"upsell",data:s}),a&&(0,r.jsx)(R,{buttonType:"primary",calloutType:"upsell",data:a})]})]}),u&&h]})}var B=n(241716),U=n(530754);let H=new i.Ry(B.fe),G=new i.H3([H]),V=(e,t,n)=>e&&e.url?{label:e.text,accessibilityLabel:t,href:e.url,role:"link",rel:(0,T.Z)({url:e.url})?"nofollow":"none",onClick:n}:{label:e.text,accessibilityLabel:t,onClick:n},W=(e,t)=>{let n,a;switch(e){case 2:n="pinterest";break;case 1:n="sparkle";break;case 5:n="add";break;case 7:n="angled-pin";break;case 4:n="flashlight";break;case 3:n="search";break;case 6:n="speech-ellipsis";break;case 8:n="instagram";break;case 9:n="camera";break;case 10:n="camera-roll";break;case 11:n="board";break;case 12:n="layout";break;case 13:n="hand-pointing";break;case 14:n="share";break;case 15:n="download";break;case 16:n="shopping-bag";break;case 17:n="check";break;case 18:n="alert";break;case 19:n="bell";break;case 20:n="person";break;case 21:n="flag";break;case 22:n="lightbulb";break;case 23:n="home";break;case 24:n="speech-heart";break;case 25:n="speech-outline";break;case 26:n="heart-outline";break;case 27:n="smiley-outline";break;case 28:n="face-tryon";break;case 29:n="star-outline";break;case 30:n="ads-stats";break;case 31:n="filter";break;case 34:n="crystal-ball";break;default:n=void 0}switch(t){case 1:a="default";break;case 2:case 3:a="subtle";break;case 4:a="inverse";break;case 5:a="info";break;case 6:a="success";break;case 7:a="warning";break;case 8:a="error";break;case 9:a="recommendation";break;case 10:a="brandPrimary";break;case 11:a="light";break;case 12:a="dark";break;default:a=void 0}return n?(0,r.jsx)(i.JO,{accessibilityLabel:"",color:a,icon:n,size:32}):null},$=({experience:e,placementId:t,customFooterHeight:n})=>{let a=(0,D.HG)(),s=(0,l.ZP)(),{navFooterHeight:o}=(0,U.U)();return(0,r.jsx)(d.Z,{eligibleTypes:[27,28],experience:e,placementId:t,children:({complete:e,dismiss:t,experience:l})=>{let d=(0,x.Z)(b.Z)(l.display_data),c=s._('Dismiss callout', 'experiences.ExperienceCallout.dismissLabel', 'Accessibility label for the X button to dismiss an callout'),u=d.completeButton?V(d.completeButton,c,()=>e()):void 0,p=d.dismissButton&&!d.dismissButton.hideDismissButton?V(d.dismissButton,c,()=>t()):void 0;switch(l.type){case 27:return(0,r.jsx)(K,{children:(0,r.jsx)(O,{dismissButton:{onDismiss:()=>t(),accessibilityLabel:c},message:(0,f.wQ)(d.message),primaryAction:u,secondaryAction:p,title:d.title})});case 28:let m=W(d.icon,d.iconColor);return(0,r.jsx)(i.mh,{zIndex:G,children:(0,r.jsx)(i.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{marginBottom:a?24:(n??o)+8,transition:"margin-bottom 300ms ease-in-out"}},display:"flex",justifyContent:"center",left:!0,position:"fixed",right:!0,children:(0,r.jsx)(i.xu,{children:(0,r.jsx)(z,{dismissButton:{onDismiss:()=>t(),accessibilityLabel:c},imageData:m?{component:m}:void 0,message:(0,f.wQ)(d.message),primaryAction:u,secondaryAction:p,title:d.title})})})});default:return(0,r.jsx)(g.Fragment,{})}}})};var Y=n(590215);class X extends g.PureComponent{componentDidMount(){let{experience:e}=this.props;if(e&&500500===e.experience_id){let{experience_id:t,placement_id:n}=e;this.props.experienceClient.viewExperience(n,t)}}componentDidUpdate(e){let t=e.experience,n=this.props.experience;if(n&&!t){let{experience_id:e,placement_id:t}=n;this.props.experienceClient.viewExperience(t,e)}}render(){return this.props.children}}function q(e){let t=(0,Y.Z)(),{experience:n}=(0,y.Ow)(1000075);return(0,r.jsx)(X,{...e,experience:n,experienceClient:t})}var Q=n(90402),J=n(602185),ee=n(750077);let et=(0,g.lazy)(()=>n.e(99728).then(n.bind(n,99728))),en=[502722],ei=({placementId:e})=>(0,r.jsx)(d.Z,{eligibleIds:en,placementId:e,children:({complete:e,dismiss:t})=>(0,r.jsx)(J.Z,{name:"SafeSuspense_LocationUpsellComponent",children:(0,r.jsx)(ee.Z,{children:(0,r.jsx)(et,{complete:e,dismiss:t})})})});var ea=n(545007),el=n(179735);let er=new i.Ry(B.fe),es=new i.H3([er]),eo=new i.H3([es]),ed={modalMargin:24,gestaltModalMargin:6,closeButtonMargin:6},ec={width:540,height:363},eu={modalMargin:24,gestaltModalMargin:6,closeButtonMargin:4},ep={width:320,height:215},em=(0,el.Z)(()=>Promise.all([n.e(97270),n.e(93041),n.e(88782),n.e(95813)]).then(n.bind(n,99773)),void 0,"app-www-video-VideoWrapper"),eg=e=>{let{isMobile:t,image:n,video:a,handleDismiss:s,title:o}=e,d=(0,l.ZP)(),c=t?eu:ed,u=t?ep:ec,p=(0,r.jsx)(i.xu,{display:"flex",justifyContent:t?"start":"end",margin:c.closeButtonMargin,position:"absolute",width:u.width-2*c.modalMargin,zIndex:eo,children:(0,r.jsx)(i.hU,{accessibilityLabel:d._('Dismiss', 'experiences.ExperienceModalWindow.modalDismissIconButton', 'Accessibility lable for the X icon button to dismiss the modal window'),bgColor:"lightGray",icon:"cancel",iconColor:"darkGray",onClick:s,size:"sm"})}),m=n?n.imageAlt:o,g=n?n.url:a?.metadata?.thumbnail,h=n?.dominantColor?.length===3?`rgb(${n.dominantColor[0]}, ${n.dominantColor[1]}, ${n.dominantColor[2]})`:"rgb(111, 91, 77)",_=u.width/u.height,y={width:u.width,height:u.height};n&&n.width&&n.height?(_=n.width/n.height,y={width:n.width,height:n.height}):a&&a.metadata.width&&a.metadata.height&&(_=a.metadata.width/a.metadata.height,y={width:a.metadata.width,height:a.metadata.height});let f=g&&(0,r.jsx)(i.Ee,{alt:m||"",color:h,fit:"cover",naturalHeight:y.height,naturalWidth:y.width,src:g}),x=Math.trunc(u.width/_);return(0,r.jsxs)(i.xu,{bottom:!0,height:x,left:!0,overflow:"hidden",right:!0,top:!0,width:u.width,children:[p,n&&f,a&&(0,r.jsx)(em,{aspectRatio:_,captions:"",controls:!1,fallback:f,isAutoPlay:!0,loop:!0,objectFit:"cover",onPlay:()=>{},onPlayError:()=>{},playing:!0,playsInline:!0,poster:n?.url||a.metadata.thumbnail,src:a.url,volume:0})]})};function eh(e){let{displayData:t,handleComplete:n,handleDismiss:a,isMobile:l}=e,{video:s,image:o,title:d,body:c,completeButton:u,dismissButton:p}=t,m=l?eu:ed,h=l?"center":"start",_=(0,T.Z)({url:u.url});return(0,r.jsxs)(g.Fragment,{children:[(0,r.jsx)(eg,{handleDismiss:a,image:o,isMobile:l,title:d,video:s}),(0,r.jsxs)(i.xu,{direction:"column",display:"flex",justifyContent:"center",margin:m.gestaltModalMargin,children:[(0,r.jsx)(i.X6,{align:h,children:d}),(0,r.jsx)(i.xu,{marginBottom:4,marginTop:2,children:(0,r.jsx)(i.xv,{align:h,children:(0,f.wQ)(c)})}),(0,r.jsxs)(i.xu,{dangerouslySetInlineStyle:{__style:{flexWrap:"wrap-reverse"}},display:"flex",justifyContent:l?"center":"end",margin:-1,children:[p&&!p.hideDismissButton&&(0,r.jsx)(i.xu,{fit:!0,flex:l?"grow":"none",minWidth:l?130:void 0,padding:1,children:(0,r.jsx)(i.zx,{color:"gray",fullWidth:l,onClick:a,size:"lg",text:p.text})}),u&&(0,r.jsx)(i.xu,{fit:!0,flex:l?"grow":"none",minWidth:l?130:void 0,padding:1,children:u.url?(0,r.jsx)(i.ZP,{color:"red",fullWidth:l,href:u.url,onClick:n,rel:_?"nofollow":"none",size:"lg",text:u.text}):(0,r.jsx)(i.zx,{color:"red",fullWidth:l,onClick:e=>n(e),size:"lg",text:u.text})})]})]})]})}var e_=n(758339),ey=n(491850),ef=n(107941),ex=n(635284),eb=n(272109),ev=n(830017);let eP=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}},ek=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}};function eS({accessibilityModalLabel:e,allowScroll:t=!1,children:n,closeOnOutsideClick:a=!0,footer:s,isOpen:o,modalWidth:d,onDismiss:c,zIndex:u}){let p=(0,l.ZP)(),m=(0,g.useRef)(!1),{setAppFocusState:h}=(0,ev.I)();return((0,g.useEffect)(()=>(m.current=(0,ey.Z)(()=>{}),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&m.current&&(window.cancelAnimationFrame(m.current),m.current=null)}),[]),(0,g.useEffect)(()=>(o?(ex.Z.pause(),h(!1)):(ex.Z.resume(),h(!0)),()=>{o&&(ex.Z.resume(),h(!0))}),[h,o]),(0,g.useEffect)(()=>{let e=o&&!t;return e&&eP(),()=>{e&&ek()}},[o,t]),o)?(0,r.jsx)(eb.Z,{children:(0,r.jsx)(i.mh,{children:(0,r.jsxs)(i.xu,{"aria-label":e,position:"relative",role:"dialog",zIndex:u||ef.b7,children:[(0,r.jsx)(i.iP,{accessibilityLabel:p._('Mobile Popup Modal Mask', 'mweb.experience_popup_modal.mask', 'The acessibility label for the mask of popup modal'),onTap:()=>{a&&c()},tapStyle:"none",children:(0,r.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, .5)",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out"}},height:"100%",left:!0,position:"fixed",top:!0,width:"100%",zIndex:new i.Ry(1)})}),(0,r.jsxs)(i.xu,{color:"default",dangerouslySetInlineStyle:{__style:{top:"50%",left:"50%",transform:"translate(-50%, -50%)",touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out"}},overflow:"hidden",position:"fixed",rounding:4,top:!0,width:d,zIndex:new i.Ry(1),children:[n,s]})]})})}):null}let ew=new i.Ry(B.fe),eI=new i.H3([ew]);function eT(e){let t=(0,ea.v9)(({experiences:t})=>e.experience||(e.placementId?t[e.placementId]:void 0)),n=t?.display_data?.delay_in_millis,[a,l]=(0,g.useState)(t&&!n),s=(0,D.HG)();return(0,g.useEffect)(()=>{l(t&&!t.display_data?.delay_in_millis)},[t]),(0,g.useEffect)(()=>{let e;return n&&(e=setTimeout(()=>{l(!0)},n)),()=>clearTimeout(e)},[n]),(0,r.jsx)(g.Fragment,{children:a&&(0,r.jsx)(d.Z,{eligibleTypes:[26],experience:t,placementId:e.placementId,children:({complete:e,dismiss:n,experience:{display_data:a}})=>{let o=(0,x.Z)(b.Z)(a),d=t?.experience_id===507054,c=()=>{l(!1),n()},u=({dangerouslyDisableOnNavigation:t})=>{d&&t(),e(),l(!1)},{title:p,body:m,completeButton:g}=o;return p&&m&&g.text?s?(0,r.jsx)(i.mh,{zIndex:eI,children:(0,r.jsx)(e_.ZP,{accessibilityModalLabel:"",onDismiss:c,size:"sm",children:(0,r.jsx)(eh,{displayData:o,handleComplete:u,handleDismiss:c,isMobile:!1})})}):(0,r.jsx)(eS,{accessibilityModalLabel:o?.title,isOpen:!0,modalWidth:320,onDismiss:c,children:(0,r.jsx)(eh,{displayData:o,handleComplete:e=>u(e),handleDismiss:c,isMobile:!0})}):null}})})}let eA=e=>{let t=(0,l.ZP)(),[n,a]=(0,g.useState)(!0),{placementId:s}=e;return(0,r.jsx)(d.Z,{eligibleIds:[502527],placementId:s,children:({experience:{display_data:e,type:l}})=>(0,r.jsx)(g.Fragment,{children:n&&5===l&&!!e.buttons&&e.buttons.length>=2&&!!e.title_text&&!!e.subtitle_text&&(0,r.jsx)(i.xu,{marginBottom:6,marginTop:6,children:(0,r.jsx)(i.ci,{dismissButton:{accessibilityLabel:e.buttons[1].text,onDismiss:()=>{a(!1)}},iconAccessibilityLabel:t._('Info icon', 'experiences.experienceMetricsUnificationBanner.iconAccessibilityLabel', 'Accessibility label for info icon'),message:e.subtitle_text,primaryAction:{href:e.buttons[0].uri,label:e.buttons[0].text,accessibilityLabel:e.buttons[0].text,onClick:({dangerouslyDisableOnNavigation:e})=>e(),role:"link"},title:e.title_text,type:"info"})})})})},eE=B.fe,eC=new i.Ry(eE-1);function ej(e){let{button:t,onClick:n}=e;return t.url?(0,r.jsx)(i.ZP,{color:"white",fullWidth:!0,href:t.url,onClick:n,rel:(0,T.Z)({url:t.url})?"nofollow":"none",text:t.text}):(0,r.jsx)(i.zx,{color:"white",fullWidth:!0,onClick:n,text:t.text})}let eF=e=>{let t;let{anchors:n,experience:a,dismiss:l,complete:s,scrollToDismiss:o,onAnchorTouch:d,idealDirection:c}=e,u=!0,{message:p,anchor:m,complete_button:h}=(a||{}).display_data,_=n[m],y=()=>{t&&clearTimeout(t),l()},f=()=>{t||u||(t=setTimeout(()=>y(),1500)),u=!1};return(0,g.useEffect)(()=>(_&&(o&&(window.addEventListener("scroll",f),window.addEventListener("touchmove",f)),d&&_&&_.addEventListener("click","complete"===d?s:y)),()=>{o&&(window.removeEventListener("scroll",f),window.removeEventListener("touchmove",f),t&&clearTimeout(t)),d&&_&&_.removeEventListener("click","complete"===d?s:y)}),[_]),(0,r.jsx)(i.Li,{anchor:_,idealDirection:c,onDismiss:y,zIndex:eC,children:(0,r.jsx)(i.xu,{padding:4,tabIndex:0,children:(0,r.jsxs)(i.kC,{direction:"column",gap:3,children:[(0,r.jsx)(i.xv,{color:"light",children:p}),h&&(0,r.jsx)(ej,{button:h,onClick:s})]})})})},eL=e=>{let{placementId:t,anchors:n}=e,[i,a]=(0,g.useState)(!0),l=()=>a(!1);return(0,r.jsx)(J.Z,{name:"ExperiencePopoverEducational",children:i&&(0,r.jsx)(d.Z,{placementId:t,predicate:e=>{if(e?.type!==29)return!1;let{anchor:t}=(e||{}).display_data;return!!t&&!!n[t]},children:({complete:t,dismiss:n,experience:i})=>(0,r.jsx)(eF,{...e,complete:()=>{l(),t()},dismiss:()=>{l(),n()},experience:i})})})},eD=(e,t)=>{let n=RegExp("\\b"+t+"\\b","i");return e===t||e.match(n)};function eR({children:e,experiences:t,placementId:n,searchTerm:i,suggestions:a}){let{viewExperience:l}=(0,y.M0)(),[r,s]=(0,g.useState)(null),[o,d]=(0,g.useState)(new Set),c=t?.filter(e=>e.display_data?.component_type===3).map(e=>({...e.display_data,id:e.experience_id}))||[];return(0,g.useEffect)(()=>{if(!i||!a){s(null);return}if(!r?.search_query_list.find(e=>a.some(({label:t})=>eD(t??"",e)))){let e=c.find(e=>e.id!==r?.id&&e.search_query_list?.find(e=>a.some(({label:t})=>eD(t??"",e))));if(e){s(e);let{id:t}=e;o.has(t)||("number"==typeof t&&l(n,t),d(new Set(o).add(t)))}}},[i]),e({searchDelightConfig:r})}let eO=(e,t)=>{let n=RegExp("\\b"+t+"\\b","i");if(!e.match(n))return null;let i=e.toLowerCase().indexOf(t.toLowerCase());return[e.slice(0,i),e.slice(i,i+t.length)]};function eZ(e,t){return t.map(t=>eO(e,t)).filter(Boolean).sort((e,t)=>e&&t?t[1].length-e[1].length:0).shift()}function eM({searchDelightText:e,searchDelightConfig:t}){let{text_background_color:n,text_colors:i=[]}=t,a=n?{backgroundColor:n,margin:"-2px",padding:"2px"}:void 0;if(!(i.length>1))return(0,r.jsx)("span",{style:{color:i[0],whiteSpace:"pre-wrap",...a},children:e},`searchDelight-${e}`);{let t=0;return(0,r.jsx)("span",{style:{whiteSpace:"pre-wrap",...a},children:e.split("").map((e,n)=>{let a=i[t];return" "!==e&&(t=(t+1)%i.length),(0,r.jsx)("span",{style:{color:a},children:e},`searchDelight-${n}`)})})}}var eK=n(371160);function eN({allBold:e,searchDelightParts:t,searchDelightConfig:n,text:i,weightPivot:a}){let l=t[1],s=i.indexOf(l),o=s+l.length;return a<=s?(0,r.jsxs)(g.Fragment,{children:[(0,r.jsx)(eK.Z,{gray:!0,weight:e?"bold":"normal",children:i.substring(0,a)}),(0,r.jsxs)(eK.Z,{weight:"bold",children:[i.substring(a,s),(0,r.jsx)(eM,{searchDelightConfig:n,searchDelightText:l}),i.substring(o)]})]}):a<=o?(0,r.jsxs)(g.Fragment,{children:[(0,r.jsx)(eK.Z,{gray:!0,weight:e?"bold":"normal",children:i.substring(0,s)}),(0,r.jsxs)(eK.Z,{weight:"bold",children:[(0,r.jsx)(eM,{searchDelightConfig:n,searchDelightText:l}),i.substring(o)]})]}):(0,r.jsxs)(g.Fragment,{children:[(0,r.jsx)(eK.Z,{gray:!0,weight:e?"bold":"normal",children:i.substring(0,s)}),(0,r.jsx)(eK.Z,{weight:"bold",children:(0,r.jsx)(eM,{searchDelightConfig:n,searchDelightText:l})}),(0,r.jsx)(eK.Z,{gray:!0,weight:e?"bold":"normal",children:i.substring(o,a)}),(0,r.jsx)(eK.Z,{weight:"bold",children:i.substring(a)})]})}function ez(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class eB extends g.Component{constructor(...e){super(...e),ez(this,"state",{surveyLoaded:!1}),ez(this,"loadSurvey",()=>{this.setState({surveyLoaded:!0}),this.props.view?.()}),ez(this,"handleDismiss",()=>{this.props.dismiss(),this.setState({surveyLoaded:!1})}),ez(this,"handleComplete",()=>{this.props.complete(),this.setState({surveyLoaded:!1})})}componentDidMount(){let{displayData:{delay:e}}=this.props;this.surveyTimer=window.setTimeout(this.loadSurvey,e)}componentWillUnmount(){clearTimeout(this.surveyTimer)}render(){if(!this.state.surveyLoaded)return null;let{displayData:{buttons:e,detailed_text:t,title_text:n}}=this.props;return(0,r.jsx)(e_.ZP,{accessibilityModalLabel:this.props.i18n._('Would you mind taking a survey?', 'User eval survey', 'User eval survey'),footer:(0,r.jsx)(i.kC,{alignItems:"stretch",justifyContent:"end",children:e.map(e=>{if(!e.uri)return(0,r.jsx)(i.xu,{marginStart:1,children:(0,r.jsx)(i.zx,{fullWidth:!0,onClick:this.handleDismiss,text:e.text})},e.text);{let t=e.uri,n=(0,T.Z)({url:t});return(0,r.jsx)(i.xu,{marginStart:1,children:(0,r.jsx)(i.ZP,{color:"red",fullWidth:!0,href:t,onClick:this.handleComplete,rel:n?"nofollow":"none",target:"blank",text:e.text})},e.text)}})}),heading:n,onDismiss:this.handleDismiss,size:"sm",children:(0,r.jsx)(i.xu,{padding:3,children:(0,r.jsx)(i.xv,{children:t})})})}}function eU(e){let t=(0,l.ZP)();return(0,r.jsx)(eB,{...e,i18n:t})}var eH=n(616550),eG=n(297728);function eV(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class eW extends g.Component{constructor(...e){super(...e),eV(this,"isOnClose",this.props.onCloseEnabled&&2===this.props.actionTrigger),eV(this,"state",{surveyAccepted:!1,surveyLoaded:!1,surveyLoadFailed:!1,showSurveyOnClose:this.isOnClose}),eV(this,"loadSurvey",(e=!0)=>{let{onView:t}=this.props;e&&t(),this.setState({surveyLoaded:!0})}),eV(this,"processIFrameMessage",e=>{let{presentationDelay:t=5e3,onComplete:n,surveyLink:i,onCloseEnabled:a}=this.props,l=e.origin||e.originalEvent.origin;i.startsWith(l)&&("surveyFinished"===e.data?n():"surveyLoaded"===e.data&&(window.clearTimeout(this.loadSurveyFailureTimeout),this.isOnClose&&this.showSurveyOnLeavingPage(),a?this.actionTriggerHandler():this.loadSurveyTimeout=window.setTimeout(this.loadSurvey,t)))}),eV(this,"handleShowSurvey",()=>{this.setState({surveyAccepted:!0})})}componentDidMount(){window.addEventListener("message",this.processIFrameMessage),this.loadSurveyFailureTimeout=window.setTimeout(()=>{this.state.surveyLoaded||(window.clearTimeout(this.loadSurveyTimeout),this.setState({surveyLoadFailed:!0}))},15e3)}componentWillUnmount(){window.removeEventListener("message",this.processIFrameMessage),window.clearTimeout(this.loadSurveyTimeout),window.clearTimeout(this.loadSurveyFailureTimeout),this.isOnClose&&this.props.unblock()}actionTriggerHandler(){let{actionTrigger:e,presentationDelay:t=5e3}=this.props;switch(e){case 1:this.loadSurvey();break;case 2:this.loadSurvey(!1);break;default:this.loadSurveyTimeout=window.setTimeout(this.loadSurvey,t)}}showSurveyOnLeavingPage(){let{onView:e,block:t}=this.props;t(()=>{e(),this.setState({showSurveyOnClose:!1})})}render(){let{surveyAccepted:e,surveyLoadFailed:t,surveyLoaded:n,showSurveyOnClose:a}=this.state;if(t)return null;let{acceptButtonText:l,bodyText:s,declineButtonText:o,onDismiss:d,subtitleText:c,surveyLink:u,titleText:p}=this.props,m=(0,r.jsx)("iframe",{"data-test-id":"anket-iframe",src:u,style:e?{border:0,minHeight:810,paddingBottom:4,width:"100%"}:{display:"none"},title:this.props.i18n._('Pinterest Survey', 'Accessible label for survey frame', 'Accessible label for survey frame')});return n&&!a?(0,r.jsx)(i.xu,{position:"absolute",zIndex:new i.Ry(1e3),children:(0,r.jsxs)(i.u_,{accessibilityModalLabel:this.props.i18n._('Have a few minutes to take a survey?', 'User evaluation survey', 'User evaluation survey'),footer:!e&&(0,r.jsxs)(i.xu,{display:"flex",justifyContent:"end",paddingX:1,children:[(0,r.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{padding:"6px 8px"}},children:(0,r.jsx)(i.zx,{fullWidth:!0,onClick:()=>{this.setState({surveyAccepted:!1}),d()},text:o})}),(0,r.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{padding:"6px 8px"}},children:(0,r.jsx)(i.zx,{color:"red",fullWidth:!0,onClick:this.handleShowSurvey,text:l})})]}),heading:e?"":p,onDismiss:d,padding:"none",role:"alertdialog",size:e?"lg":"md",children:[(0,r.jsx)(i.xu,{children:m}),!e&&(0,r.jsxs)(i.xu,{padding:3,children:[(0,r.jsx)(i.xv,{children:c}),(0,r.jsx)(i.xv,{children:s})]})]})}):m}}let e$=function(e){let t=(0,l.ZP)(),{checkExperiment:n}=(0,eG.F)(),i=(0,eH.k6)(),[a,s]=(0,g.useState)(null),o=(0,g.useRef)(null);return(0,r.jsx)(eW,{...e,block:e=>{o.current=i.block((t,n)=>(s({location:t,action:n}),e(),!1))},i18n:t,onCloseEnabled:n("discovery_measurements_on_close_survey").anyEnabled,unblock:()=>{if(o&&o.current?.(),a){let{location:e,action:t}=a;"PUSH"===t?i.push(`${e.pathname}${e.search}`):"POP"===t&&i.goBack()}}})},eY=e=>{let{complete:t,dismiss:n,view:i,displayData:a}=e,{anket:l,buttons:s,delay:o,detailed_text:d,subtitle_text:c,title_text:u,action_trigger:p=3}=a,[m,g]=s;return l?(0,r.jsx)(e$,{acceptButtonText:g.text,actionTrigger:p,bodyText:d,declineButtonText:m.text,onComplete:t,onDismiss:n,onView:i,presentationDelay:o,subtitleText:c,surveyLink:g.uri,titleText:u}):(0,r.jsx)(eU,{complete:t,dismiss:n,displayData:a,view:i})},eX=e=>{let{experienceId:t,displayData:n}=e,{delay:i=0}=n,a={...n,delay:0},l={...e,displayData:{...a}},s=(0,g.useRef)(),[o,d]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{let e=["/pin-builder","/idea-pin-builder"],t=e=>window.location.pathname.includes(e),n=()=>e.some(t),a=()=>{n()?s.current=setTimeout(()=>a(),3e3):d(!0)};return s.current=setTimeout(()=>a(),i),()=>{clearTimeout(s.current)}},[t,i]),o?(0,r.jsx)(eY,{...l}):null};function eq(e){let{placementId:t,experience:n,targeting:i,eligibleIds:a}=e;return(0,r.jsx)(d.Z,{disableAutoView:!0,eligibleIds:a||[],eligibleTypes:[5],experience:n,placementId:t,targeting:i,children:({complete:e,dismiss:n,view:i,experience:a})=>{let l=a.display_data,s=a.experience_id;return 1000421===t?(0,r.jsx)(eX,{complete:e,dismiss:n,displayData:l,experienceId:s,view:i}):(0,r.jsx)(eY,{complete:e,dismiss:n,displayData:l,view:i})}})}var eQ=n(476198);let eJ=e=>{let{logContextEvent:t}=(0,a.v)();return(0,r.jsx)(d.Z,{eligibleIds:e.eligibleIds,eligibleTypes:[10],placementId:e.placementId,children:({complete:n,dismiss:i,experience:{display_data:a}})=>{let l=a.link||e.linkUrl,s=()=>{e.shouldLogClicks&&t({event_type:101,object_id_str:e.objectId,component:e.thriftComponentType,element:e.thriftElementType})};return(0,r.jsx)(eQ.ZP,{duration:a.duration,href:l,onClick:()=>{n(),e.onClick&&e.onClick(),e.shouldLogClicks&&s()},onHide:()=>{e.onHide(),e.completionOnDismissal?n():i()},text:a.text||""})}})};var e0=n(901450);function e1(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class e2 extends g.Component{constructor(...e){super(...e),e1(this,"componentDidMount",()=>{let{delay:e=2e3}=this.props;this.experienceToastsTimeout=window.setTimeout(()=>this.triggerEducationToasts(),e)})}componentWillUnmount(){window.clearTimeout(this.experienceToastsTimeout)}triggerEducationToasts(){let{toastManagerContext:e,completionOnDismissal:t,placementId:n,experienceIds:i}=this.props;e.showOneToast(({hideToast:e})=>(0,r.jsx)(eJ,{completionOnDismissal:t,experienceIds:i,onHide:e,placementId:n,shouldLogClicks:!1}))}render(){return null}}function e3(e){return(0,r.jsx)(e2,{...e,toastManagerContext:(0,e0.F9)()})}e1(e2,"defaultProps",{completionOnDismissal:!1});var e4=n(226274);let e6=new i.Ry(669),e8={1:"up",2:"right",3:"down",4:"left"},e7=({anchors:e={},complete:t,dismiss:n,displayData:a,idealDirection:l,onCompleteByAnchor:s={},platform:o,positionRelativeToAnchor:d=!0,touchToDismiss:c=!0,useMasonryFlyout:u=!1})=>{let{anchors_by_platform:p={},button_text:m,button_uri:_,display_type:y,flyout_direction:f,scroll_to_dismiss:x,scroll_to_dismiss_delay_in_seconds:b=0,text:v}=a||{},P=p[o]?.anchor,k=e[P],S=(0,g.useCallback)(()=>{x&&(window.removeEventListener("scroll",S),window.removeEventListener("touchmove",S)),c&&k&&k.removeEventListener("click",S),setTimeout(()=>n(),1e3*b)},[k]);if((0,g.useEffect)(()=>{k&&(x&&(window.addEventListener("scroll",S),window.addEventListener("touchmove",S)),c&&k.addEventListener("click",S))},[k]),!k)return null;let w=({children:e})=>{if(u)return(0,r.jsx)(i.mh,{zIndex:e6,children:e});if(2!==y)return(0,r.jsx)(i.xu,{zIndex:e6,children:e});{let t={};if(d)t.top=k.offsetTop,t.left=k.offsetLeft,t.width=k.offsetWidth,t.height=k.offsetHeight;else{let e=k.getBoundingClientRect();t.top=e.top+window.pageYOffset,t.left=e.left+window.pageXOffset,t.width=e.width,t.height=e.height}return(0,r.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:t},left:!0,position:"absolute",top:!0,zIndex:e6,children:e})}},I=e8[f],T=_&&(_.startsWith("https://")||_.startsWith("http://")),A=(s||{})[P],E=()=>{x&&(window.removeEventListener("scroll",S),window.removeEventListener("touchmove",S)),c&&k.removeEventListener("click",S),t()};return(0,r.jsxs)(g.Fragment,{children:[2===y&&(0,r.jsx)(w,{children:(0,r.jsx)(h.Z,{anchor:k,onTouch:()=>{E(),A?A():k instanceof HTMLElement&&k.click()},zIndex:670})}),1===y&&(0,r.jsx)(w,{children:(0,r.jsx)(i.Li,{anchor:k,idealDirection:I||l||"down",onDismiss:S,shouldFocus:!1,size:"sm",children:(0,r.jsxs)(i.xu,{padding:4,width:"220px",children:[(0,r.jsx)(i.xv,{align:"center",color:"light",weight:"bold",children:v}),m?(0,r.jsx)(i.xu,{display:"flex",justifyContent:"center",marginTop:4,children:(0,r.jsx)(i.xu,{column:8,children:_?(0,r.jsx)(i.ZP,{color:"white",fullWidth:!0,href:_,onClick:({dangerouslyDisableOnNavigation:e})=>{e(),E()},size:"md",target:T?"blank":null,text:m}):(0,r.jsx)(i.zx,{color:"white",fullWidth:!0,onClick:E,size:"md",text:m})})}):null]})})})]})},e9=({anchors:e,idealDirection:t,onCompleteByAnchor:n,placementId:i,positionRelativeToAnchor:a,touchToDismiss:l,useMasonryFlyout:s})=>{let o=(0,D.ml)();return(0,r.jsx)(d.Z,{placementId:i,predicate:t=>{let{display_data:n}=t;if(n?.component_type===2){let{anchors_by_platform:t}=n;if(t?.web){let{anchor:n,placement:a}=t.web;return a===i&&n in e}}return!1},children:({complete:i,dismiss:d,experience:c})=>(0,r.jsx)(e7,{anchors:e,complete:i,dismiss:d,displayData:c.display_data,idealDirection:t,onCompleteByAnchor:n,platform:o?"web_mobile":"web",positionRelativeToAnchor:a,touchToDismiss:l,useMasonryFlyout:s})})};class e5 extends g.Component{constructor(...e){var t,n,i;super(...e),n={paused:!1,showPulsar:!1},(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t="state","string"))?i:i+"")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n}componentDidMount(){this.mountPulsar(),this.props.onExperienceMount&&this.experience&&this.props.onExperienceMount(this.experience)}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}mountPulsar(){if(!this.experience)return;let{display_data:e}=this.experience;e.has_pulsar&&this.setState({showPulsar:!0})}renderPulsar(){let{anchor:e}=this.props,{paused:t}=this.state;if(!e)return null;let{height:n,width:a}=e.getBoundingClientRect();return(0,r.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{marginTop:-(68+n/2),marginLeft:-(68-a/2),cursor:"pointer",pointerEvents:"none"}},"data-test-id":"pulsar-box",position:"absolute",zIndex:new i.Ry(1),children:(0,r.jsx)(i.o3,{paused:t})})}renderFlyout(e){let{anchor:t,flyoutSize:n,idealDirection:a}=this.props;return(0,r.jsx)(i.Li,{anchor:t,idealDirection:a||"down",message:e,onDismiss:()=>{},size:n})}render(){let{experienceIds:e,placementId:t,shouldTimeoutDismiss:n}=this.props,{showPulsar:a}=this.state;return(0,r.jsx)(d.Z,{eligibleIds:e,eligibleTypes:[8],placementId:t,children:({complete:e,dismiss:t,experience:l})=>{this.experience=l;let{display_data:s}=l;return s.has_pulsar||s.has_tooltip?(n&&s.disappearTime&&s.disappearTime>0&&(this.timer=setTimeout(()=>(t(),null),s.disappearTime)),(0,r.jsxs)(i.xu,{"data-test-id":"experience-tooltip-no-buttons",zIndex:new i.Ry(10),children:[a&&this.renderPulsar(),s.has_tooltip&&(!s.has_pulsar||this.state.paused)&&this.renderFlyout(s.text)]})):(e(),null)}})}}function te(e){let t=(0,l.ZP)(),{handleComplete:n,handleDismiss:a}=e;return(0,r.jsx)(i.xu,{marginBottom:2,marginEnd:"auto",marginStart:"auto",marginTop:2,width:"55%",children:(0,r.jsx)(i.XA,{dismissButton:{accessibilityLabel:t._('Dismiss Banner Button', 'PinnerUpgradeToBusinessBanner.primaryAction.accesibility', 'Dismis Banner Button accesibility Label of the Banner to upgrade pinners to business account'),onDismiss:a},imageData:{component:(0,r.jsx)(i.JO,{accessibilityLabel:"graph",color:"default",icon:"graph-bar",size:45})},message:t._('Upgrade to a free Pinterest business account to unlock tools that help drive traffic, grow your audience and sell more products', 'PinnerUpgradeToBusinessBanner.message', 'Message of the Banner to upgrade pinners to business account'),primaryAction:{label:t._('Upgrade', 'PinnerUpgradeToBusinessBanner.primaryAction', 'Upgrade action of the Banner to upgrade pinners to business account'),href:"/business/convert/",accessibilityLabel:t._('Upgrade Button', 'PinnerUpgradeToBusinessBanner.primaryAction.accesibility', 'Upgrade Button accesibility Label of the Banner to upgrade pinners to business account'),onClick:n,role:"link"},title:t._('Discover your top performing Pins', 'PinnerUpgradeToBusinessBanner.title.variant_a', 'Title of the Banner to upgrade pinners to business account')})})}let tt=({placementId:e})=>(0,r.jsx)(d.Z,{eligibleIds:[503755],placementId:e,children:({complete:e,dismiss:t})=>(0,r.jsx)(te,{handleComplete:e,handleDismiss:t})});var tn=n(697477)},526990:(e,t,n)=>{"use strict";n.d(t,{$S:()=>i,V$:()=>a,_4:()=>r,iY:()=>s,mR:()=>l});let i="REFRESH_ALL_EXPERIENCES_MULTI",a="UPDATE_EXPERIENCE_MULTI",l="FETCH_EXPERIENCES",r="REFRESH_ALL_EXPERIENCES",s="UPDATE_EXPERIENCE"},744920:(e,t,n)=>{"use strict";n.d(t,{OD:()=>s,Yb:()=>r,cL:()=>o,xF:()=>a,xW:()=>l});var i=n(526990);let a=e=>({type:i.$S,payload:{experiencesMulti:e}}),l=(e,t,n)=>({type:i.V$,payload:{placementId:e,experienceId:t,status:n}}),r=(e,t,n)=>({type:i.iY,payload:{placementId:e,experienceId:t,status:n}}),s=e=>({type:i._4,payload:{experiences:e}}),o=e=>({type:i.mR,payload:{experiences:e}})},781956:(e,t,n)=>{"use strict";n.d(t,{A0:()=>d,E3:()=>s,MQ:()=>o,wQ:()=>c});var i=n(667294),a=n(883119),l=n(648089),r=n(785893);function s(e){return!!e&&0!==e.type}let o=(e,t,n)=>{let i=e[n];return t[n]&&s(i)?i:null};function d(e){return e.display_data?.anchor}let c=e=>{let t=new DOMParser().parseFromString(e,"text/html"),n=[...t.body?.childNodes||[]].map(e=>{if("A"!==e.nodeName)return(e.textContent?.split("\n")||[]).map((e,t)=>(0,r.jsxs)(i.Fragment,{children:[t>0&&(0,r.jsx)("br",{}),(0,r.jsx)(a.xv,{inline:!0,children:e})]},t));{let t=e.href||"",n=(0,l.Z)({url:t});return(0,r.jsx)(a.rU,{display:"inline",externalLinkIcon:n?"default":"none",href:t,rel:n?"nofollow":"none",target:"blank",children:e.textContent},t)}});return(0,r.jsx)(a.xv,{inline:!0,children:n})}},400416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(252071);function a({url:e,method:t,data:n,ignoreBookmark:a,callOptions:l,headers:r}){let s={url:e,data:n,...null!=a?{ignore_bookmark:a}:{},..."PATCH"===t?{patchInsteadOfPut:!0}:{}},o=i.Z.create("ApiResource",s);switch(t){case"POST":return o.callCreate(l,r);case"PUT":case"PATCH":return o.callUpdate(l,r);case"DELETE":return o.callDelete(l,r);default:return o.callGet(l,r)}}},789033:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i="M16 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4m-3.76-9a4 4 0 0 0-2.83 1.17l-8 8a4 4 0 0 0 0 5.66l6.76 6.76a4 4 0 0 0 5.66 0l8-8A4 4 0 0 0 23 11.76V5a4 4 0 0 0-4-4zm-1.41 2.59A2 2 0 0 1 12.24 3H19a2 2 0 0 1 2 2v6.76a2 2 0 0 1-.59 1.41l-8 8a2 2 0 0 1-2.82 0l-6.76-6.76a2 2 0 0 1 0-2.82z"},576449:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(667294),a=n(883119),l=n(279341),r=n(410150);let s=(0,i.createContext)(void 0);var o=n(785893);function d(e){(0,i.useContext)(s),(0,r.ZP)();let{alt:t,borderStyle:n,color:d,children:c,crossOrigin:u,decoding:p,elementTiming:m,fetchPriority:g,fit:h,loading:_,naturalHeight:y,naturalWidth:f,onError:x,onLoad:b,id:v,role:P,sizes:k,src:S,srcSet:w,suppressViewTransitionTags:I,_enableViewTransitions:T,_fixCompletedOnLoad:A}=e;return(0,o.jsx)(l.Z,{_enableViewTransitions:T,borderStyle:n,id:v,imageFit:h,suppressViewTransitionTags:I,type:"image",children:(0,o.jsx)(a.Ee,{_fixCompletedOnLoad:A,alt:t,color:d,crossOrigin:u,decoding:p,elementTiming:m,fetchPriority:g,fit:h,loading:_,naturalHeight:y,naturalWidth:f,onError:x,onLoad:b,role:P,sizes:k,src:S,srcSet:w,children:c})})}},39260:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(297728),a=n(730212),l=n(855746);function r(e){let{isAuthenticated:t}=(0,a.B)(),{expName:n,anyEnabled:r,group:s}=function({experimentsClient:e,handlerId:t,isAuthenticated:n,skipActivation:i}){let{checkExperiment:a}=e,l=a(n?"web_masonry_v2_auth":"web_masonry_v2_unauth",{dangerouslySkipActivation:i});return l.group?{expName:n?"web_masonry_v2_auth":"web_masonry_v2_unauth",...l}:"www/[username]/[slug].js"!==t||n?"www/pin/[id].js"!==t||n?{expName:"",anyEnabled:!1,group:""}:{expName:"web_masonry_v2_unauth_pin",...a("web_masonry_v2_unauth_pin",{dangerouslySkipActivation:i})}:{expName:"web_masonry_v2_unauth_board",...a("web_masonry_v2_unauth_board",{dangerouslySkipActivation:i})}}({experimentsClient:(0,i.F)(),handlerId:(0,l.MM)(),isAuthenticated:t,skipActivation:e?.skipActivation??!1});return{expName:n,anyEnabled:r,group:s,isMeasureAllEnabled:"enabled_measure_all"===s||"enabled_measure_all_impression_fix"===s,isImpressionFixEnabled:"control_impression_fix"===s||"enabled_impression_fix"===s||"enabled_measure_all_impression_fix"===s}}},758339:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d,b7:()=>r.b7,bN:()=>s,p4:()=>o});var i=n(410150),a=n(179735),l=n(785893),r=n(107941);let s=(0,a.Z)(()=>n.e(51879).then(n.bind(n,865706)),{ssr:!1}),o=(0,a.Z)(()=>n.e(72430).then(n.bind(n,225771)),{ssr:!1});function d(e){let t=(0,i.ZP)(),n=void 0===e.isOpen||e.isOpen;if("desktop"===t&&n){let{isOpen:t,mobileAccessibilityCloseIconLabel:n,mobileAllowScroll:i,mobileHeadingSize:a,mobileHideCloseIcon:r,mobileIsFullscreen:o,mobileIsSlideUp:d,type:c,mobileIsFooter:u,zIndex:p,...m}=e;return(0,l.jsx)(s,{...m})}let{allowMediaPlay:a,allowScroll:r,role:d,size:c,_dangerouslyDisableScrollBoundaryContainer:u,...p}=e;return(0,l.jsx)(o,{...p,isOpen:n})}},865706:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(667294),a=n(883119),l=n(107941),r=n(635284),s=n(272109),o=n(785893);function d({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n,allowClickAndDrag:d,allowMediaPlay:c,allowScroll:u,children:p,closeOnOutsideClick:m,footer:g,heading:h,onDismiss:_,role:y,size:f,subHeading:x}){return(0,i.useEffect)(()=>(r.Z.pause(),function(){r.Z.resume()}),[]),(0,o.jsx)(a.mh,{zIndex:l.b7,children:(0,o.jsx)(s.Z,{allowClickAndDrag:d,allowEsc:!0,allowMediaPlay:c,allowScroll:u,children:(0,o.jsx)(a.u_,{_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n,closeOnOutsideClick:m,footer:g,heading:h,onDismiss:()=>{r.Z.resume(),_()},padding:"none",role:y,size:f,subHeading:x,children:p})})})}},225771:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(667294),a=n(883119),l=n(491850),r=n(793874),s=n(107941),o=n(144326),d=n(635284),c=n(730212),u=n(272109),p=n(1006),m=n(410150),g=n(830017),h=n(785893);let _=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}},y=()=>{if(document.body){let{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}};function f({accessibilityModalLabel:e,align:t="center",allowClickAndDrag:n,allowScroll:f=!1,children:x,closeOnOutsideClick:b=!0,footer:v,heading:P,isOpen:k,mobileAccessibilityCloseIconLabel:S,mobileHeadingSize:w,mobileHideCloseIcon:I,mobileIsFooter:T,mobileIsFullscreen:A,mobileIsFullpage:E,mobileIsSlideUp:C,onDismiss:j,subHeading:F,type:L,zIndex:D}){let R=(0,o.ZP)(),{isRTL:O}=(0,c.B)(),Z=(0,i.useRef)(!1),[M,K]=(0,i.useState)(!1),{setAppFocusState:N}=(0,g.I)(),z=(0,m.ZP)(),B=(0,r.vs)();return((0,i.useEffect)(()=>(Z.current=(0,l.Z)(()=>{Z.current&&K(!0)}),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&Z.current&&(window.cancelAnimationFrame(Z.current),Z.current=null)}),[]),(0,i.useEffect)(()=>(k?(d.Z.pause(),N(!1),(0,p.My)(`mweb_unauth.mobile_modal.${L||"unknown_type"}.did_mount.is_open.true`)):(d.Z.resume(),N(!0)),()=>{k&&(d.Z.resume(),N(!0),(0,p.My)(`mweb_unauth.mobile_modal.${L||"unknown_type"}.did_mount.is_open.false`))}),[N,k]),(0,i.useEffect)(()=>{let e=k&&!f;return e&&_(),()=>{e&&y()}},[k,f]),k)?(0,h.jsx)(u.Z,{allowClickAndDrag:n,children:(0,h.jsx)(a.mh,{children:(0,h.jsxs)(a.xu,{"aria-label":e,display:"inlineBlock",position:"relative",role:"dialog",zIndex:D||s.ZM,children:[(0,h.jsx)(a.iP,{accessibilityLabel:R._('Mobile Signup Modal Mask', 'mweb.signup_modal.mask', 'The accessibility label for the mask of mobile signup modal'),dataTestId:"mobile-modal-mask-overlay",onTap:({event:e})=>{e.clientX&&e.clientY&&(0,p.tj)(`mweb_unauth.mobile_modal.wash_tap.${L||"unknown_type"}.with_dismissal`,{x:e.clientX,y:e.clientY}),b&&j()},tapStyle:"none",children:(0,h.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, .5)",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out"}},height:"100%",left:!0,position:"fixed",top:!0,width:"100%",zIndex:new a.Ry(1)})}),(0,h.jsxs)(a.xu,{color:"default",dangerouslySetInlineStyle:C?(0,s.Vf)({isFullscreen:A,isTablet:"tablet"===z,isShowing:M,isRelatedInterestsModal:"related_interests_modal"===L,isDarkMode:B}):(0,s.JN)({isDarkMode:B,variant:E?"fullpage":A?"fullscreen":"euPrompt"===L?"euPrompt":"tablet"===z?"tablet":T?"footer":"signup"===L?"signup":void 0}),"data-test-id":"mobile-signup-mask",position:"fixed",children:[(0,h.jsxs)(a.kC,{alignItems:"center",gap:{row:2,column:0},justifyContent:"start",width:"100%",children:[S&&!I?(0,h.jsx)(a.xu,{"data-test-id":"mobile-modal-cancel-button",padding:2,children:(0,h.jsx)(a.hU,{accessibilityLabel:S,icon:"cancel",iconColor:B?"gray":"darkGray",onClick:j,padding:4,size:"sm"})}):null,P?(0,h.jsx)(a.kC.Item,{flex:"grow",children:(0,h.jsx)(a.kC,{alignItems:"center",direction:"column",justifyContent:"center",children:(0,h.jsxs)(a.xu,{dangerouslySetInlineStyle:{__style:S&&!I?{marginRight:O?-10:50,marginLeft:O?50:-10}:{}},"data-test-id":"mobile-modal-heading",children:[A?P:(0,h.jsx)(a.xv,{align:t,size:w||"400",weight:"bold",children:P}),F?(0,h.jsx)(a.xv,{align:t,children:F}):null]})})}):null]}),(0,h.jsxs)(a.xu,{overflow:"auto",children:[x,v]})]})]})})}):null}},107941:(e,t,n)=>{"use strict";n.d(t,{JN:()=>d,Vf:()=>c,ZM:()=>s,b7:()=>r,i_:()=>o});var i=n(883119),a=n(793874),l=n(265691);let r=new i.Ry(1e3),s=new i.H3([l.Z]),o=12,d=({variant:e,isDarkMode:t})=>{let n=t?a.N$:"#FFFFFF";return{__style:"fullpage"===e?{backgroundColor:n,touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100%",height:"100%",left:0,right:0,top:0,bottom:0,zIndex:1,overflowY:"hidden"}:"fullscreen"===e?{backgroundColor:n,touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"90vw",height:"70vh",borderRadius:"8px",zIndex:1,left:"5vw",bottom:"13vh",overflowY:"hidden"}:"tablet"===e?{backgroundColor:n,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?{backgroundColor:n,border:t?void 0:"1px solid #efefef",borderRadius:"32px 32px 0 0",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||"euPrompt"===e?{backgroundColor:n,border:void 0,borderRadius:"32px",top:"50%",touchAction:"none",transform:"translate(0%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1,left:"euPrompt"===e?"5%":"8px",right:"euPrompt"===e?"5%":"8px",overflow:"auto"}:{backgroundColor:n,border:t?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"}}},c=({isFullscreen:e,isTablet:t,isShowing:n,isRelatedInterestsModal:i,isDarkMode:a})=>{let l={border:a?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=n?"translateY(0)":"translateY(100vh)";return l.height=e?"100vh":"",t&&i&&(l={...l,width:425,left:"50%",transform:"translateX(-50%)"},r=n?"translate(-50%, 0)":"translate(-50%, 100vh)"),{__style:{...l,transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:r}}}},476198:(e,t,n)=>{"use strict";n.d(t,{UZ:()=>d,Vg:()=>o,ZP:()=>c});var i=n(667294),a=n(883119),l=n(410150),r=n(969119),s=n(785893);let o=200,d=({deviceType:e,hiding:t,visible:n})=>{let i="desktop"===e,a=0,l=i?"translateY(200px)":"translateY(-200px)",r="opacity 0.1s ease-in-out",s="hidden";return n&&!t&&(a=1,l="translateY(0)",r="all 0.7s cubic-bezier(.19, 1.15, .48, 1)",s="visible"),n&&t&&(l="scale(1.1)",r="opacity transform 0.2s"),{opacity:a,pointerEvents:"auto",position:"relative",marginTop:i?10:0,transform:l,transition:r,visibility:s}};function c({_dangerouslySetThumbnail:e,_dangerouslySetPrimaryAction:t,text:n,primaryAction:c,dismissButton:u,helperLink:p,thumbnail:m,type:g,dataTestId:h,duration:_=2e3,onHide:y,href:f,onClick:x,openNewPage:b,imageUrl:v}){let P;let k=(0,l.ZP)(),[S,w]=(0,i.useState)(!1),[I,T]=(0,i.useState)(!1),A=(0,i.useRef)(),E=()=>{w(!0),A.current=setTimeout(y,o)},C=()=>{A.current=setTimeout(E,_)},j=()=>{A.current&&clearTimeout(A.current)};(0,r.Z)(()=>(setTimeout(()=>T(!0),100),C(),j)),v&&(P={image:(0,s.jsx)(a.Ee,{alt:"string"==typeof n?n:`${n[0]} ${n[1]}`,fit:"cover",naturalHeight:1,naturalWidth:1,src:v})});let F=(0,s.jsx)(a.FN,{_dangerouslySetPrimaryAction:t,_dangerouslySetThumbnail:e,dismissButton:u,helperLink:p,primaryAction:c,text:n,thumbnail:P??m,type:g}),{marginTop:L,opacity:D,pointerEvents:R,position:O,transform:Z,transition:M,visibility:K}=d({deviceType:k,hiding:S,visible:I});return(0,s.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{transform:Z,transition:M,visibility:K,pointerEvents:R}},"data-test-id":h??"toast",display:"flex",marginTop:L,onMouseEnter:j,onMouseLeave:C,opacity:D,position:O,children:f?(0,s.jsx)(a.Tg,{href:f,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{f.startsWith("#")&&(e.preventDefault(),t()),x?.(e)},rounding:"pill",target:b?"blank":null,children:F}):F})}},559028:(e,t,n)=>{"use strict";n.d(t,{qE:()=>s,u_:()=>o.ZP,FN:()=>d.ZP});var i=n(883119),a=n(785893);let l=(e,t)=>!!(e?.includes("images/user/default")&&t);function r({accessibilityLabel:e,color:t,name:n,outline:r,size:s,src:o,verified:d}){return(0,a.jsx)(i.qE,{accessibilityLabel:e,color:t,name:n,outline:r,size:s,src:l(o,n)?void 0:o,verified:d})}r.displayName="Avatar";let s=r;var o=n(758339),d=n(476198)},545151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>{let t=e?"shopping":"error";return{iconColor:t,dangerousInlineStyle:{__style:{color:t}}}}},888017:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(422578),a=n(244311),l=n(988774);let r=function(e,t){let n=t[l.G];return n?n[(0,a.getInlineDataFragment)(e).name]:(0,i.readInlineData)(e,t)}},835593:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(167912),a=n(529521),l=n(532321);function r(e,t,{useLegacyAdapter:n}){if(null==t)return{data:null,childDataKey__DEPRECATED:null};let r=(0,a.jc)(t);if("deprecated"===r.type){let{data:t}=r;return null==t?{data:null,childDataKey__DEPRECATED:r}:{data:(0,l.V4)(e,n)(t),childDataKey__DEPRECATED:r}}let s=(0,i.useFragment)(e,r.data);return{data:s,childDataKey__DEPRECATED:{type:"graphqlRef",data:s}}}},679482:(e,t,n)=>{"use strict";n.d(t,{$H:()=>s,$q:()=>b,$u:()=>a,D6:()=>c,KN:()=>P,Ke:()=>x,Lo:()=>l,P2:()=>_,TS:()=>k,Wv:()=>v,ZZ:()=>p,g5:()=>m,jC:()=>o,lX:()=>h,nW:()=>g,oX:()=>y,qG:()=>f,tG:()=>r,yF:()=>i,yc:()=>u,yt:()=>d});let i=236,a=270,l=157.33333333333334,r=175,s=24,o=4,d=8,c=2,u=2,p=14,m=16,g=12,h=16,_=24,y=16,f=-1,x=2,b=(e=!1,t=!1)=>e?t?h:g:_,v=({contentVisibleItemCount:e,gap:t,moduleWidth:n})=>e||n?(n-Math.ceil(e)*t)/e:i,P=(e,t,n,i,a=p)=>{let l=e+a;return`
@media (min-width: ${t*l}px) and (max-width: ${(n+1)*l-1}px) {
  ${i}
}
`},k=(e,t,n)=>{let a=n?3:2,l=t?5:a,s=t?i:r,o=t?y:d,c=s*l+o*l-(t?12:!t&&n?12:6);if(!e)return c;for(let t=l;t>=2&&!(e>c);t-=1)c=s*t+o*t;return c}},144326:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>r,oz:()=>a,q6:()=>i});let{Provider:i,Consumer:a,useHook:l}=(0,n(498490).Z)("i18n"),r=l},788388:(e,t,n)=>{"use strict";n.d(t,{F:()=>y,Z:()=>_});var i=n(667294),a=n(829196),l=n(118755),r=n(573706),s=n(39260),o=n(635284),d=n(730212),c=n(410150),u=n(644797),p=n(243583),m=n(415787),g=n(855746);let h={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},BoardMoreIdeasRep:{impressionType:"boardMoreIdeasFeedUpsellImpressions",idType:"boardIdStr",eventType:10054},Notification:{impressionType:"notificationDetailImpressions",idType:"newsIdStr",eventType:4111},NotificationFeed:{impressionType:"notificationFeedImpressions",idType:"newsIdStr",eventType:4110},EditorialBoard:{impressionType:"curatedBoardImpressions",idType:"boardIdStr",eventType:15555},VaseAnnotation:{impressionType:"vaseAnnotationImpressions",idType:"vaseAnnotationUrlStr",eventType:16444}};function _({carouselData:e,closeupImpressionType:t,closeupNavigationType:n,componentType:_,contextLogData:y,clientTrackingParams:f,duploShouldTrackPinEvents:x,elementType:b,impressionAuxFields:v,inImpressionExp:P,impressionType:k,impressionsFramework:S,isPaused:w,loggingId:I,objectIdStr:T,slotIndex:A,trackCarousel:E,viewData:C,viewParameter:j,viewType:F,isPromoted:L,storyPinProductEventData:D}){let{logContextEvent:R}=(0,r.v)(),{logMrcVideoAdEventOnPlay:O}=(0,u.r)(),{userAgent:{browserName:Z}}=(0,d.B)(),{logStat:M}=(0,p.Yg)(),K=S||o.Z,N=(0,i.useRef)(null),z=i=>{let r=h[k],s=r.idType,o={clientTrackingParams:f,endTime:i.endTime,[s]:I,slotIndex:A,time:i.startTime,renderDuration:i.endTime-i.startTime,type:t,...v,forcedExit:"removed"===i.forcedExit?0:void 0};if("Pin"===k){let e=[],t=i.visibleEvents||new Map,n=i.hiddenEvents||new Map;if([1,50,80,2].forEach(i=>{t.has(i)&&e.push({type:i,time:1e6*(t.get(i)||0),visible:!0}),n.has(i)&&e.push({type:i,time:1e6*(n.get(i)||0),visible:!1})}),o={...o,pinCellWidth:i.pinCellWidth||0,pinCellHeight:i.pinCellHeight||0,windowWidth:window?.innerWidth,windowHeight:window?.innerHeight,visibleEvents:e.sort((e,t)=>e.time-t.time)},(0,l.i7)(Z)&&v&&v.isPromoted){let{attributionSourceId:e,isPromoted:t,link:n,campaignId:i,araAuxData:l,advertiserId:r,domain:s,adDestinationUrl:o}=v;(0,a.YS)(k,t??null,e??null,n??null,i??null,l??null,r??null,s??null,o??null)}}let d={component:_,object_id_str:T,view_type:F,view_data:C||{},view_parameter:j};if(E)e&&E&&R({event_type:7352,event_data:{pinCarouselSlotImpressions:[{...o,..."canonical"===e.type?{carouselDataId:Number(e.carouselId??0),slotIndex:e.index,carouselSlotId:e.carouselSlots?.[e.index??0]&&Number(e.carouselSlots[e.index??0].slotId)}:{carouselDataId:Number(e.id??0),carouselSlotId:e.carousel_slots?.[e.index??0]&&Number(e.carousel_slots[e.index??0].id),slotIndex:e.index}}]},...d,aux_data:{...y}});else{let e={clientTrackingParams:f,event_type:r.eventType,...d,element:b,event_data:{[r.impressionType]:"Story"===k?o:[o],...D?{storyPinProductEventData:D}:{}},aux_data:{closeup_navigation_type:n,...y}};R(e),O(e)}x&&M("log_pin_impression")},{expName:B,group:U}=(0,s.Z)({skipActivation:!0}),H=(0,c.ZP)(),G=(0,g.MM)(),{isAuthenticated:V}=(0,d.B)(),W=(0,i.useCallback)(()=>{let e=!1;try{let{current:t}=N;if(t instanceof HTMLElement&&(!L||t.getElementsByTagName("img").length>0)){let n=K.start(t);n.onExitViewport(z).setDebugId(I||"unknown"),x&&n.onEnterViewport(()=>{M("log_pin_impression_track_enter_viewport")}),e=!0,U&&(0,m.nP)("webapp.masonry.trackImpression",{tags:{callsite:"app_packages_useImpressionTracker",deviceType:H,experimentName:B,group:U,handlerId:G,isAuthenticated:V,slotIndex:A??"unknown"}})}}catch{window.console.error('Can only track impressions for type "HTMLElement"')}x&&M("log_pin_impression_track",{didStartTracking:e})},[N.current]);return(0,i.useEffect)(()=>(P&&!K.inExperiment&&K.setExperimentStatus(!0),w||W(),()=>{let{current:e}=N;e instanceof HTMLElement&&(!L||e.getElementsByTagName("img").length>0)&&K.stop(e)}),[w,W]),N}let y=({children:e,...t})=>e({impressionTrackerRef:_(t)})},774980:(e,t,n)=>{"use strict";function i(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z3:()=>u,LU:()=>p,ZP:()=>m});let a=window.location.search.includes("debug_impressions=1")||document.cookie&&document.cookie.indexOf("debug_impressions=1")>-1,l={paused:"Pause",resumed:"Resume",stopped:"Flush",enter:"Enter viewport",exit:"Exit viewport"},r={},s={background:"#FF8A8A",transform:"scale(.98)"},o={init:e=>({transform:`scale(${r[e]?.8:.99})`,transition:"transform .2s ease-in-out",background:"#8E8E8E"}),[l.enter]:{background:"#A0DCC8",transform:"scale(.99)"},[l.exit]:s,[l.stopped]:s,[l.paused]:s,[l.resumed]:{background:"#0FA573",transform:"scale(.99)"}};class d{constructor(e){i(this,"setMutationObserver",e=>(this.mutationObserver=e,this)),i(this,"startMutationObserver",e=>{this.mutationObserver&&this.mutationObserver.observe(this.node,e)}),i(this,"stopMutationObserver",()=>{this.mutationObserver&&this.mutationObserver.disconnect()}),i(this,"handleIntersectionChange",e=>{let t=e.intersectionRatio>0||e.isIntersecting,n=Date.now();e.intersectionRatio>0&&!this.visibleEvents.has(1)&&this.visibleEvents.set(1,n),e.intersectionRatio>.5?this.visibleEvents.has(50)||this.visibleEvents.set(50,n):this.visibleEvents.has(50)&&!this.hiddenEvents.has(50)&&this.hiddenEvents.set(50,n),e.intersectionRatio>.8?this.visibleEvents.has(80)||this.visibleEvents.set(80,n):this.visibleEvents.has(80)&&!this.hiddenEvents.has(80)&&this.hiddenEvents.set(80,n),1!==e.intersectionRatio||this.visibleEvents.has(2)||this.visibleEvents.set(2,n),e.boundingClientRect.top<=143&&this.visibleEvents.has(1)&&!this.hiddenEvents.has(1)&&this.hiddenEvents.set(1,n),e.boundingClientRect.bottom<=143&&this.visibleEvents.has(2)&&!this.hiddenEvents.has(2)&&this.hiddenEvents.set(2,n),t&&!this.inViewport?(this.startTime=n,this.pinCellWidth=this.node.offsetWidth,this.pinCellHeight=this.node.offsetHeight,this._debug(l.enter,{startTime:n,node:this.node}),this.enterCallbacks.forEach(e=>e())):!t&&this.inViewport&&(this._debug(l.exit,!0),this.exitCallbacks.forEach(e=>e(this.toJSON()))),this.inViewport=t}),this.enterCallbacks=[],this.exitCallbacks=[],this.inViewport=!1,this.node=e,this.startTime=0,this.debugId="",this.visibleEvents=new Map,this.hiddenEvents=new Map,this.pinCellWidth=0,this.pinCellHeight=0}onEnterViewport(e){return this.enterCallbacks.push(e),this}onExitViewport(e){return this.exitCallbacks.push(e),this}setDebugId(e){return this.debugId=e,a&&Object.assign(this.node.style,o.init(e)),this}pause(){return this.inViewport&&(this._debug(l.paused,!0),this.exitCallbacks.forEach(e=>e(this.toJSON()))),this}resume(){if(this.inViewport){let e=Date.now();this._debug(l.resumed,{startTime:e}),this.startTime=e}return this}stop(e){return this.inViewport&&(this._debug(l.stopped,!0),this.exitCallbacks.forEach(t=>t(this.toJSON(e)))),this}toJSON(e=""){return{startTime:1e6*this.startTime,endTime:1e6*Date.now(),forcedExit:e,hiddenEvents:this.hiddenEvents,visibleEvents:this.visibleEvents,pinCellWidth:this.pinCellWidth,pinCellHeight:this.pinCellHeight}}toDebugJSON(){return{pinID:this.debugId,startTime:this.startTime,endTime:Date.now(),duration:`${(Date.now()-this.startTime)/1e3} seconds`,pinCellWidth:this.pinCellWidth,pinCellHeight:this.pinCellHeight}}_debug(e,t){if(a)switch(window.console.log(`📌 ${e} -- ${this.debugId}`),!0===t&&window.console.log(this.toDebugJSON()),"object"==typeof t&&window.console.log(t),o[e]&&Object.assign(this.node.style,o[e]),e){case l.flushed:case l.paused:case l.exit:r[this.debugId]=!0}}}function c(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let u=!0,p=!1;class m{constructor(){c(this,"_delegateChange",e=>{e.forEach(e=>{let t=this.activeImpressions.get(e.target);t&&t.handleIntersectionChange(e)})}),c(this,"_handleMutations",(e,t)=>{let n=this.mutationObservers.get(t);n&&n.offsetHeight<1&&n&&this.stop(n,"removed")}),this.activeImpressions=new Map,this.mutationObservers=new Map,this.bottomHeight=0,this.bottomObstructions=new Set,this.pausePriority=p,this.observer=new window.IntersectionObserver(this._delegateChange),window.Cypress&&!window.activeImpressions&&(window.activeImpressions=new Map),this.paused=!1,this.topHeight=0,this.topObstructions=new Set,this.inExperiment=!1}setExperimentStatus(e){this.inExperiment!==e&&(this.inExperiment=e)}stop(e,t=""){let n=this.activeImpressions.get(e);n&&(n.stop(t),this.mutationObservers.delete(n.mutationObserver),n.stopMutationObserver(),this.activeImpressions.delete(e),window.activeImpressions?.delete(e),this.observer.unobserve(e))}start(e){let t=this.activeImpressions.get(e);return t||(t=new d(e),this.activeImpressions.set(e,t),window.activeImpressions?.set(e,t),this.observer.observe(e),t.setMutationObserver(new window.MutationObserver((e,t)=>this._handleMutations(e,t))),this.mutationObservers.set(t.mutationObserver,e),t.startMutationObserver({subtree:!0,attributes:!0,attributeFilter:["style"]})),t}pause(e=u){this.paused||(Array.from(this.activeImpressions.values()).forEach(e=>e.pause()),this.paused=!0,this.pausePriority!==p||(this.pausePriority=e))}resume(e=u){(e!==p||this.pausePriority!==u)&&this.paused&&(Array.from(this.activeImpressions.values()).forEach(e=>e.resume()),this.paused=!1,this.pausePriority=p)}addObstruction(e,t){"top"===e?this.topObstructions.add(t):"bottom"===e&&this.bottomObstructions.add(t),this._calculateRootMargins()}removeObstruction(e,t){"top"===e?this.topObstructions.delete(t):"bottom"===e&&this.bottomObstructions.delete(t),this._calculateRootMargins()}updateObstructions(){this._calculateRootMargins()}_calculateRootMargins(){let e=Array.from(this.topObstructions).reduce((e,t)=>{let{bottom:n}=t.getBoundingClientRect();return n>e?n:e},0),t=window.innerHeight-Array.from(this.bottomObstructions).reduce((e,t)=>{let{top:n}=t.getBoundingClientRect();return n<e?n:e},window.innerHeight);if(e!==this.topHeight||t!==this.bottomHeight){let n={rootMargin:`${-e}px 0px ${-t}px`,threshold:[0,.5,.8,1]};this.observer.disconnect(),this.observer=new window.IntersectionObserver(this._delegateChange,n),Array.from(this.activeImpressions.values()).forEach(e=>this.observer.observe(e.node)),this.topHeight=e,this.bottomHeight=t}}}},635284:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=new(n(774980)).ZP},240760:(e,t,n)=>{"use strict";n.d(t,{Wc:()=>d,XB:()=>o,bF:()=>u,nk:()=>s,r7:()=>p});var i=n(667294),a=n(785893);function l(e,t,n){return e.split(n).map(e=>{if(e.match(n)){let n=e.replace(/[\{\}]/g,"").trim();if(Object.prototype.hasOwnProperty.call(t,n))return t[n]}return e})}let r=/(\{\{\s*\w+\s*\}\})/g;function s(e,t){return l(e,t,r)}function o({text:e,markers:t,jsxReplacements:n}){let i=["strong","a","em","span"],a=/(\{\{\s*\w+\s*\}\})/g,r=/<\s*(strong|a|em|span)\b[^>]*>.*?<\s*\/\s*\1\s*>/g,s=/<(strong|a|em|span)\s+[^>]*id\s*=\s*["']([^"']+)["'][^>]*>/,o=/<(strong|a|em|span)\b[^>]*>(.*?)<\/\1>/,d=e.match(r)?.map(e=>{let i=e.match(s),r=(i&&i[2])??0,d=e.match(o),c=(d&&d[2])??"",u=t?l(c,t,a):[c];return r&&n&&n[r]?.({innerHtmlStrings:u})});return e.split(r)?.map(e=>i.some(t=>e===t)?d?.shift():t?l(e,t,a):e)}function d(e,t){return l(e,t,r).join("")}let c=/(\{\s*\w+\s*\})/g;function u(e,t){return l(e,t,c)}let p=({text:e})=>Array.isArray(e)?e.map((e,t)=>(0,a.jsx)(i.Fragment,{children:e},t)):e},836350:(e,t,n)=>{"use strict";n.d(t,{P:()=>l,Z:()=>a});var i=n(545007);function a(e){return e?.[1000069]&&500417===e[1000069].experience_id&&e[1000069].display_data.hide_footer}function l(){let e=(0,i.v9)(({experiences:e})=>e);return!!e&&a(e)}},89393:(e,t,n)=>{"use strict";function i(e){if(!e)return!1;let t=new Date(e);return t.setDate(t.getDate()+28),new Date().getTime()<t.getTime()}n.d(t,{Z:()=>i})},647757:(e,t,n)=>{"use strict";function i(e){return"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e)}n.d(t,{Z:()=>i})},876597:(e,t,n)=>{"use strict";function i(e,t,n=28){let a;if(!(e||{}).resurrection_info&&!(t||{}).resurrectionInfo)return!1;a=t?((t||{}).resurrectionInfo||{}).resurrectionDate:((e||{}).resurrection_info||{}).resurrection_dt;let l=new Date,r=a?new Date(a):l;return r.setDate(r.getDate()+n),new Date().getTime()<r.getTime()}n.d(t,{Z:()=>i})},611735:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i={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}},183159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(883119),a=n(679482),l=n(675625),r=n(410150),s=n(785893);let o=({children:e,roundedForLargeDevice:t})=>{let n="phone"!==(0,r.ZP)()&&t;return(0,l.V)()?(0,s.jsx)(i.xu,{marginEnd:-a.D6,marginStart:-a.D6,overflow:n?"hidden":void 0,rounding:n?6:void 0,children:(0,s.jsx)(l.C,{value:!1,children:e})}):e}},675625:(e,t,n)=>{"use strict";n.d(t,{C:()=>l,V:()=>r});var i=n(667294);let a=(0,i.createContext)(!1),l=a.Provider,r=()=>(0,i.useContext)(a)},264147:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(914896),a=n(790014),l=n(937304);function r(e,t){let n=Math.round(1e3*Math.random())+"",r=Math.round(1e3*Math.random())+"";i.t8((0,a.GS)(n),r);let s={token:`${n}-${r}`,url:e,...t&&!t.params?t.queryParams:t?.params&&{pin:t.params.pinId??void 0,isThirdPartyAd:t.params.isThirdPartyAd??void 0,csr:t.params.csrId&&!t.params.pinId?t.params.csrId:void 0,client_tracking_params:t.params.clientTrackingParams,aux_data:t.params.auxData?JSON.stringify(t.params.auxData):void 0}};return`/offsite/?${(0,l.Z)(s)}`}},526789:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(400416),a=n(786974),l=n(604759);let r=async({clientTrackingParams:e,href:t,isMounted:n,pinId:r,spamCheckCallback:s})=>{let o=await function(e){let t=(0,a.Z)(e),n=l.y8.get("ApiResource",t);if(n)return n;let r=(0,i.Z)(e);return l.y8.add("ApiResource",t,r),r}({url:"/v3/offsite/",data:{check_only:!0,client_tracking_params:e,pin_id:r,url:t}});if(!o.resource_response.error&&n){let{message:e,redirect_status:t,url:n}=o.resource_response.data||{};s({blocked:["blocked","suspicious","porn"].includes(t),message:e,redirectStatus:t,sanitized_url:n})}}},353096:(e,t,n)=>{"use strict";function i({isOffsiteUrl:e,event:t}){return!e&&(t.metaKey||t.ctrlKey)}n.d(t,{Z:()=>i})},937637:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(449112),a=n(564573);let l=e=>"string"!=typeof e&&e?e.state:null;var r=n(723184),s=n(809604),o=n(592174);let d=({event:e,onHistoryChange:t,href:n,history:d,target:c})=>{let u=(0,a.Z)(n),p=l(n)??{},m=(0,r.Z)(u);m===o.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===c?(0,i.Z)(u,"blank"===c):d&&m===o.Z.SAME_ORIGIN&&(d.push((0,s.Z)({url:u}),{from:d.location,...p}),t&&t({event:e}))}},256277:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(449112),a=n(264147);function l(e,t){(0,i.Z)((0,a.Z)(e,t),!0,t?.features)}},125265:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(225669);function a({location:e,pinId:t,surface:n}){return!!n&&!i.ZF.includes(n)||e.pathname.includes(t)}},343583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(667294),a=n(616550),l=n(526789),r=n(353096),s=n(937637),o=n(125265),d=n(853559),c=n(564573),u=n(648089),p=n(638966),m=n(415787);function g(e){let{clientTrackingParams:t,externalData:n,href:g,onHistoryChange:h,target:_}=e,[y,f]=(0,i.useState)(null),[x,b]=(0,i.useState)(!1),v=(0,a.k6)(),P=(0,a.TH)(),k=(0,c.Z)(g),S=(0,u.Z)({url:k}),{showWarning:w}=(0,p.s)()??{},{pin:I,surface:T}=n||{},A=t||I?.trackingParams,E=(0,d.Z)();return(0,i.useEffect)(()=>(b(!0),()=>{b(!1)}),[]),(0,i.useEffect)(()=>{S&&I&&null===y&&x&&(!I.promoter||I.isDownstreamPromotion)&&(0,o.Z)({location:P,pinId:I.entityId,surface:T})&&(0,l.Z)({clientTrackingParams:A,isMounted:x,pinId:I.entityId,spamCheckCallback:e=>f(e),href:k})},[A,I,T,k,S,x,P,y]),({event:e})=>{if(!(0,r.Z)({isOffsiteUrl:S,event:e})){if(e.preventDefault(),!g||"string"==typeof g&&g.startsWith("#")){(0,m.nP)("link_navigation_empty_href",{sampleRate:1,tags:{route:P.pathname,href:g}});return}S||n?.dangerouslyForceOffsiteUrl?E({auxData:n?.auxData,clientTrackingParams:A,pin:n?.pin&&{attributionSourceId:n.pin.attributionSourceId,campaignId:n.pin.campaignId,isPromoted:n.pin.isPromoted,pinPromotionId:n.pin.pinPromotionId,isThirdPartyAd:n.pin.isThirdPartyAd,advertiserId:n.pin.advertiserId,destinationUrl:n.pin.destinationUrl,link:n.pin.link,domain:n.pin.domain},pinId:n?.pin?.entityId,queryParams:n?.queryParams,showWarning:w,spamCheck:y,url:k}):(0,s.Z)({event:e,href:g,history:v,onHistoryChange:h,target:"blank"===_?"blank":null})}}}},853559:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(548466),a=n(431705),l=n(829196),r=n(118755),s=n(573706),o=n(264147),d=n(256277),c=n(590238);let u=(e,t,n)=>{let i=document.createElement("a");i.setAttribute("href",t),i.setAttribute("target","_blank"),i.setAttribute("rel","noopener nofollow noreferrer"),i.style.cursor="pointer",i.style.display="block",i.setAttribute(a.$N.ATTRIBUTION_SOURCE_ID,e),i.setAttribute(a.$N.ATTRIBUTE_DESTINATION,n),i.setAttribute(a.$N.ATTRIBUTE_ON,n),i.click()},p=(e,t,n,i,r,s,o)=>{let d=(0,l.m_)(e,[n,i,r],!0,s,o),c=document.createElement("a");c.setAttribute("href",t),c.setAttribute("target","_blank"),c.setAttribute("rel","noopener nofollow noreferrer"),c.style.cursor="pointer",c.style.display="block",c.setAttribute(a.NR.SOURCE,d),c.click()},m=()=>{let{logContextEvent:e}=(0,s.v)();return({attributionSourceId:t,auxData:n,campaignId:a,clientTrackingParams:l,href:s,isPromoted:d,pinId:c,pinPromotionId:m,isThirdPartyAd:g,advertiserId:h,destinationUrl:_,link:y,domain:f})=>{if(!d)return!1;let x=(0,i.Z)(),b=(0,o.Z)(s,{params:{pinId:c,csrId:null,clientTrackingParams:l,auxData:n,isThirdPartyAd:g}}),v=x?.userAgent.browserName??"";if((0,r.G6)(v)){let{group:n}=x?.experimentsClient.checkExperiment("m10n_event_conversion_measurement")??{},i=x?.userAgent.browserVersion?x.userAgent.browserVersion:"0.0",r=parseFloat(i.split(".")[0]+"."+i.split(".")[1]);if(t&&r>=14.1&&["enabled_safari"].includes(n))return u(t,b,s),e({event_type:101,clientTrackingParams:l,object_id_str:c||"",aux_data:{pin_id:c||"",click_measurement_ppid:m||"",click_measurement_campaign_id:a||"",is_pcm:!0,attribution_source_id:t,page_url:s}}),!0}else if((0,r.i7)(v)&&window.document.featurePolicy?.allowsFeature("attribution-reporting"))return p(t,b,_,y,f,a,h),e({event_type:101,clientTrackingParams:l,object_id_str:c||"",aux_data:{pin_id:c||"",click_measurement_ppid:m||"",click_measurement_campaign_id:a||"",is_arapi:!0,attribution_source_id:t,page_url:s}}),!0;return!1}},g=e=>{let t=m();return({auxData:n,clientTrackingParams:i,pin:a,pinId:l,queryParams:r,showWarning:s,spamCheck:o,url:u})=>{if("undefined"!=typeof window&&window.Windows){(0,c.Z)(u,{clientTrackingParams:i,pinId:l,hasPin:!!a,auxData:n,isThirdPartyAd:a?.isThirdPartyAd});return}if(!a&&!e?.isFromClickthroughLink){(0,d.Z)(u,r?{queryParams:r}:{params:{pinId:l}});return}if(o?.blocked){s?.(o);return}a&&t({attributionSourceId:a.attributionSourceId,auxData:n,campaignId:a.campaignId?String(a.campaignId):null,clientTrackingParams:i,href:u,isPromoted:a.isPromoted,pinId:l,pinPromotionId:a.pinPromotionId?String(a.pinPromotionId):null,isThirdPartyAd:a.isThirdPartyAd,advertiserId:a.advertiserId?a.advertiserId:null,destinationUrl:a.destinationUrl,link:a.link,domain:a.domain})||(0,d.Z)(u,{params:{clientTrackingParams:i,auxData:n,pinId:l,isThirdPartyAd:a?.isThirdPartyAd}})}}},282999:(e,t,n)=>{"use strict";n.d(t,{ey:()=>eg,dt:()=>f,bo:()=>eo,oF:()=>ev,bW:()=>_,Lj:()=>F,AX:()=>u,Fy:()=>c,XE:()=>d,am:()=>l,pD:()=>p,OJ:()=>s,LO:()=>eE,Gl:()=>eP,Y8:()=>k,Y_:()=>T,lY:()=>b,N6:()=>A,Ur:()=>P,dK:()=>v,h3:()=>eL,PY:()=>R,QD:()=>j,or:()=>D,z6:()=>C,dm:()=>E,Ni:()=>x,H_:()=>L,Q8:()=>I,Bg:()=>w,mW:()=>S,pV:()=>X,L6:()=>Y,bb:()=>eF,b0:()=>h,jC:()=>ec,O7:()=>ek,LM:()=>ed,q_:()=>V,OK:()=>G,Ep:()=>W,mP:()=>O,hd:()=>Z,HV:()=>K,C$:()=>M,dr:()=>ee,mk:()=>ew,gT:()=>J,Fr:()=>em,Xn:()=>N,e:()=>eR,l4:()=>$,b_:()=>eb,J:()=>r,dZ:()=>o,Tw:()=>eh,FO:()=>U,re:()=>B,RU:()=>eS,Ui:()=>m,KY:()=>g,fY:()=>e_,uM:()=>ep,x7:()=>ey,X$:()=>Q,rk:()=>eC,XU:()=>ef,wg:()=>y,dW:()=>ej,En:()=>q,ej:()=>eA,OX:()=>ea,f1:()=>ei,E0:()=>es,gf:()=>H,nU:()=>eD,mY:()=>eI,cY:()=>ex,$Y:()=>er,Zz:()=>z,$V:()=>el,j8:()=>eu,Q0:()=>et,tZ:()=>en,YW:()=>eT});var i=n(616550);let a=new RegExp(/^\/(?!(?:pin|categories|report|search|password|terms|discover|help|email|topics|explore|pw|login|signup|about|business|source|ideas|today|tv|shopping|videos|age-apeal|oauth)\/)[\w\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\-]+\/(?!(?:following|followers|_tools|_created|_saved|tried))[\w\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\-]+(?=\/|$)/),l=e=>a.test(e.pathname),r=(e,t)=>{let{pathname:n}=e;return l(e)&&n.match(t||"?")},s=e=>{let{pathname:t}=e;return!!(0,i.LX)(t,{path:"/:username/:boardId/:boardSectionId",exact:!0})&&!t.match(/^\/.+\/.+\/(_tools)/i)},o=(e,t)=>{let{pathname:n}=e;return s(e)&&n.match(t||"?")},d=e=>!!(0,i.LX)(e.pathname,{path:"/board/:id/edit",exact:!0}),c=e=>!!(0,i.LX)(e.pathname,{path:"/board/:id/edit/collaborators",exact:!0}),u=e=>!!(0,i.LX)(e.pathname,{path:"/board/:id/edit/add_collaborators",exact:!0}),p=e=>!!(0,i.LX)(e.pathname,{path:"/boardsection/:id/edit",exact:!0}),m=e=>!!(0,i.LX)(e.pathname,{path:"/pin/:id/comments",exact:!0}),g=e=>!!(0,i.LX)(e.pathname,{path:"/pin/:id/edit",exact:!0}),h=e=>!!(0,i.LX)(e.pathname,{path:"/conversation/:id",exact:!0}),_=e=>!!(0,i.LX)(e.pathname,{path:"/appealed-pin/",exact:!0}),y=e=>!!(0,i.LX)(e.pathname,{path:"/reports-and-violations/",exact:!0}),f=e=>e.pathname.startsWith("/age-appeal"),x=e=>e.pathname.startsWith("/business/"),b=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-access/:userBizId/dashboard",exact:!0})||!!(0,i.LX)(e.pathname,{path:"/business/business-manager/:userBizId/dashboard",exact:!0})||!!(0,i.LX)(e.pathname,{path:"/business/business-hierarchy/:businessHierarchyId/dashboard",exact:!0}),v=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-hierarchy/:businessHierarchyId/hierarchy",exact:!0}),P=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-hierarchy/:businessHierarchyId/dashboard",exact:!0}),k=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-access/:userBizId/asset-groups",exact:!0})||!!(0,i.LX)(e.pathname,{path:"/business/business-manager/:userBizId/asset-groups",exact:!0}),S=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-manager/:userBizId/catalogs",exact:!0}),w=e=>!!(0,i.LX)(e.pathname,{path:"/business/catalogs/:userBizId/",exact:!1}),I=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-access/:userBizId/shared-tags",exact:!0})||!!(0,i.LX)(e.pathname,{path:"/business/business-manager/:userBizId/shared-tags",exact:!0}),T=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-access/:userBizId/brand-safety",exact:!0})||!!(0,i.LX)(e.pathname,{path:"/business/business-manager/:userBizId/brand-safety",exact:!0}),A=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-hierarchy/:businessHierarchyId/business_security",exact:!0}),E=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-hierarchy/:businessHierarchyId/managers",exact:!0}),C=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-hierarchy/:businessHierarchyId/"})||!!(0,i.LX)(e.pathname,{path:"/business/business-access/:businessId/"})||!!(0,i.LX)(e.pathname,{path:"/business/business-manager/:businessId/"})||!!(0,i.LX)(e.pathname,"/business/business-manager"),j=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-access/:businessId/invoice-management",exact:!0})||!!(0,i.LX)(e.pathname,{path:"/business/business-manager/:businessId/invoice-management",exact:!0}),F=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-access/:businessId/audiences",exact:!0})||!!(0,i.LX)(e.pathname,{path:"/business/business-manager/:businessId/audiences",exact:!0}),L=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-access/:businessId/security",exact:!0})||!!(0,i.LX)(e.pathname,{path:"/business/business-manager/:businessId/security",exact:!0}),D=e=>!!(0,i.LX)(e.pathname,{path:"/business/business-manager/:businessId/ad-accounts/cee-migration",exact:!0}),R=e=>e.pathname.startsWith("/business/invite/"),O=e=>!!(0,i.LX)(e.pathname,{path:"/pin/:id/visual-search/",exact:!0}),Z=e=>!!(0,i.LX)(e.pathname,{path:"/pin/:id/visual-search/products/",exact:!0}),M=e=>"/"===e.pathname,K=e=>"/"===e.pathname||"/homefeed/"===e.pathname,N=e=>e.pathname.startsWith("/login"),z=e=>!!(0,i.LX)(e.pathname,{path:"/today",exact:!0}),B=e=>e.pathname.startsWith("/password/reset")||!!(0,i.LX)(e.pathname,{path:"/pw/:username",exact:!0}),U=e=>e.pathname.startsWith("/secure/panic"),H=e=>e.pathname.startsWith("/signup"),G=e=>e.pathname.startsWith("/email/subscription"),V=e=>e.pathname.startsWith("/email/user_survey"),W=e=>e.pathname.startsWith("/email_verification_error"),$=e=>e.pathname.startsWith("/notifications/"),Y=e=>!!(0,i.LX)(e.pathname,{path:"/pin/:id",exact:!0}),X=e=>e.pathname.startsWith("/pin_redirect"),q=e=>e.pathname.startsWith("/search"),Q=e=>e.pathname.startsWith("/search/pins"),J=e=>!!(0,i.LX)(e.pathname,{path:"/ideas",exact:!0}),ee=e=>!!(0,i.LX)(e.pathname,{path:"/ideas/:interest/:id",exact:!0}),et=e=>!!(0,i.LX)(e.pathname,{path:"/videos/:category/:id",exact:!0}),en=e=>!!(0,i.LX)(e.pathname,{path:"/videos/",exact:!0}),ei=e=>!!(0,i.LX)(e.pathname,{path:"/shopping/",exact:!0}),ea=e=>!!(0,i.LX)(e.pathname,{path:"/shopping/:category/:id",exact:!0}),el=e=>e.pathname.startsWith("/topics"),er=e=>e.pathname.startsWith("/today/article/")||e.pathname.startsWith("/today/best/")||e.pathname.startsWith("/today/trending/"),es=e=>e.pathname.startsWith("/today/shop/"),eo=e=>z(e)||er(e)||e.pathname.startsWith("/today/popular/"),ed=e=>/^\/discover\/article\/\S+\/?/i.test(e.pathname),ec=e=>e.pathname.startsWith("/pin/create/"),eu=e=>e.pathname.startsWith("/unauth-profile"),ep=e=>e.pathname.startsWith("/pin/"),em=e=>"#imgViewer"===e.hash,eg=e=>/invite_code/.test(e.search),eh=e=>/utm_pai/.test(e.search),e_=e=>!!(0,i.LX)(e.pathname,{path:"/pin/:id",exact:!1})&&(e.pathname.includes("/sent/")||e.pathname.includes("/feedback/")),ey=e=>e.pathname.includes("/repin/x"),ef=e=>!!(0,i.LX)(e.pathname,{path:"/pin/:id/repin"})&&!ey(e),ex=e=>e.pathname.startsWith("/_/storyboard"),eb=e=>e.pathname.startsWith("/oauth"),ev=e=>e.pathname.startsWith("/app-factory-oauth"),eP=e=>e.pathname.startsWith("/business/convert"),ek=e=>e.pathname.startsWith("/pin-editor"),eS=e=>e.pathname.startsWith("/pin-builder"),ew=e=>e.pathname.startsWith("/idea-ads-tool"),eI=e=>e.pathname.startsWith("/story-pin-builder")||e.pathname.startsWith("/idea-pin-builder")||e.pathname.startsWith("/pin-creation-tool")||ew(e),eT=e=>e.pathname.startsWith("/advertiser/quick-promote"),eA=e=>e.pathname.startsWith("/settings"),eE=e=>void 0!==e.pathname&&(e.pathname.startsWith("/business/business-access/")||e.pathname.startsWith("/business/business-manager/"))&&e.pathname.includes("/dashboard/"),eC=e=>void 0!==e.pathname&&e.pathname.startsWith("/tv/studio"),ej=e=>void 0!==e.pathname&&e.pathname.startsWith("/business/schedule_call/"),eF=e=>void 0!==e.pathname&&e.pathname.startsWith("/business/commerce-integrations/"),eL=e=>void 0!==e.pathname&&e.pathname.startsWith("/business/hub"),eD=e=>void 0!==e.pathname&&e.pathname.startsWith("/signup/sso-business-account/"),eR=(e,t)=>t("mweb_notif_settings_redesign").anyEnabled?e.pathname.startsWith("/settings")&&!e.pathname.startsWith("/settings/notifications"):e.pathname.startsWith("/settings")},812477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(616550);let a=["/BingSiteAuth.xml","/about","/add-account","/ads","/ads.txt","/age_verification","/all","/app-ads.txt","/apple-app-site-association","/apple-app-site-association.p7m","/attribution_source","/bot.html","/branded-pins","/browserbutton","/buy-it","/careers","/categories","/close-account","/content-claiming","/convert-business","/convert-personal","/create-business","/create-personal","/creation-inspiration","/creator-onboarding-landing","/csrf_error","/ct.html","/deactivate-account","/deed6a3ef3a44d41bb3ae2bad137db84.txt","/developers","/discover","/edit","/email_verification_error","/engagement","/explore","/favicon.ico","/fb.html","/flyup-instant-loading-indicator-app-shell.html","/following","/getWebPushKey","/google_gdn.html","/google_search.html","/googlef5dc42d6e03f6e61.html","/guidedsearch","/help","/holidays-celebrations","/homefeed","/idea-ads-tool","/idea-pin-builder","/ideas","/inbox","/install-shuffles","/invited","/jobs","/lens-search","/login","/logout","/manifest.json","/manifest.webapp","/me","/messages","/mobile","/notifications","/oauth","/app-factory-oauth","/appealed-pin","/oembed.json","/offline.html","/offsite","/opensearch.xml","/parent_contact_info","/parental-passcode","/pin-builder","/pin-creation-tool","/pin-editor","/pin_catalog","/pin_redirect","/pinterest-wellbeing","/pinterest-predicts","/pinterestlens","/pinterestlenstryon","/pinterestwellbeing","/policy","/product-catalogs","/public-beta","/quick-instant-loading-indicator-app-shell.html","/quick-lite-instant-loading-indicator-app-shell.html","/recently-viewed","/refresh_stored_accounts","/refresh_token","/report","/reports-and-violations","/request-data","/robots.txt","/safe-redirect","/search","/settings","/shopping","/signup","/socialmanager","/story-pin-builder","/story_feed","/sw-shell.html","/sw.html","/sw.js","/switch_account","/terms","/today","/topics","/transparent.html","/unauth-profile","/unlink","/upload-image","/upload-image-lens-history","/upload-lens-image","/upload-profile-image","/verified","/verify","/videos","/web-custom-svg","/web-mentorship","/welcome","/windows-app-web-link","/your-shop"];function l(e){return!!(0,i.LX)(e.pathname,{path:"/:username/",exact:!0})&&!a.includes(e.pathname.replace(/\/$/,""))}},753652:(e,t,n)=>{"use strict";n.d(t,{Q6:()=>u,ZP:()=>o,le:()=>p,qe:()=>d,yU:()=>c});var i=n(785220),a=n(655201);let l=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),r=e=>e;function s(e,t=l,n=r){return function(i){let a=[];return function(...l){let r=a.find(e=>t(e.args,n(l)));if(r)return r.result;let s=i(...l);return a.push({args:n(l),result:s}),e&&a.length>e&&a.shift(),s}}}let o=s(),d=s(1),c=s(void 0,l,e=>[JSON.stringify(e)]),u=s(0,(e,t)=>e.length===t.length&&e.every((e,n)=>(0,a.Z)(e,t[n]))),p=s(0,(e,t)=>e.length===t.length&&e.every((e,n)=>(0,i.ZP)(e,t[n])))},903572:(e,t,n)=>{"use strict";n.d(t,{Z:()=>function e(t,n=!1){return a=>{if(!(0,i.Z)(a))return n&&Array.isArray(a)?a.map(e(t,n)):a;let l={};return Object.keys(a).forEach(r=>{let s=t(a[r],r);(0,i.Z)(a[r])||n&&Array.isArray(a[r])?l[s]=e(t,n)(a[r]):l[s]=a[r]}),l}}});var i=n(647757)},135296:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(903572);function a(e,t=!1){let n=(t,n)=>e(n);return e=>(0,i.Z)(n,t)(e)}},983272:(e,t,n)=>{"use strict";function i(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r});let a=new class{constructor(){i(this,"onResumeListeners",[]),i(this,"onPauseListeners",[]),i(this,"inExp",!1),i(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}},l=e=>{if(e.isHidden){let{reason:t}=e;a.windowInFocus=!1,a.onPauseListeners.forEach(e=>e(t))}else a.windowInFocus=!0,a.onResumeListeners.forEach(e=>e())};setTimeout(()=>{window.addEventListener("beforeunload",()=>l({isHidden:!0,reason:"beforeunload"})),window.addEventListener("focus",()=>l({isHidden:!1})),window.addEventListener("blur",()=>l({isHidden:!0,reason:"blur"})),window.addEventListener("pageshow",()=>l({isHidden:!1})),window.addEventListener("pagehide",()=>l({isHidden:!0,reason:"pagehide"})),void 0!==document.hidden?document.addEventListener("visibilitychange",()=>l(document.hidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1}),!1):void 0!==document.webkitHidden&&document.addEventListener("webkitvisibilitychange",()=>l(document.webkitHidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1}),!1)},0);let r=a},759400:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b}),n(167912);var i,a=n(883119),l=n(717067),r=n(559028),s=n(47848),o=n(144326),d=n(785893);let c={sm:"0 6px",lg:"4px 8px",xl:"4px"};function u({backgroundColor:e,size:t="sm",text:n}){let i=c[t];return(0,d.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{padding:i,backgroundColor:e?"#fff":"rgba(255, 255, 255, 0.8)",borderRadius:"18px",color:"#111",fontSize:"10px",fontWeight:"600",lineHeight:"24px"}},"data-test-id":"PinTypeIdentifier",display:"inlineBlock",height:"xl"===t?32:24,children:n})}var p=n(674944),m=n(891985),g=n(297728),h=n(730212),_=n(410150),y=n(225669);let f=["ShoppingDynamicHeightGrid","ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ShoppingGridShippedMetadataWithVisitButton"],x=void 0!==i?i:i=n(106546);function b({hidden:e,inPinRep:t,pinKey:n,pinOwner:i,size:c="sm",surface:b}){let v;let P=(0,o.ZP)(),k=(0,_.ZP)(),{isAuthenticated:S}=(0,h.B)(),{checkExperiment:w}=(0,g.F)(),I=(0,s.Z)(x,n),T=!!I?.carouselData?.entityId,A=(I?.embed||I?.attribution?.embed)?.type==="gif",E=I?.richSummary?.typeName==="product",C=!!I?.storyPinDataId,j=!!I?.videos?.videoList,F=!!I?.promoter&&!I.isDownstreamPromotion,L="desktop"===k&&S;[...f].includes(b??"")&&!F&&(v="white");let D=!!b&&y.Wv.includes(b),R=I?.richMetadata?.products?.[0],O=Number(R?.additionalImageSpec_236x?.length)>0||Number(R?.additionalImageSpec_474x?.length)>0||Number(R?.additionalImageSpec_564x?.length)>0||Number(R?.additionalImageSpec_736x?.length)>0;if(!i&&!D&&!v&&e)return null;let Z=null;if(i){let{image_small_url:e,full_name:t=""}=i,n=(0,d.jsxs)(a.kC,{alignItems:"center",justifyContent:"between",children:[e&&(0,d.jsx)(r.qE,{name:t,size:"xs",src:e}),(0,d.jsx)(a.xu,{alignItems:"center",display:"flex",marginStart:1,children:(0,d.jsx)(a.JO,{accessibilityLabel:P._('Pin', 'pin.pinTypeIdentifier.taggedProduct', 'identifier that shows the pin type'),color:"default",icon:"tag",inline:!0,size:14})})]});Z=(0,d.jsx)(u,{backgroundColor:"white",size:"xl",text:n})}else if(A)Z=L?(0,d.jsx)(u,{size:c,text:"GIF"}):(0,d.jsx)(p.Z,{inPinRep:!0,text:"GIF"});else if(C&&I?.shouldOpenInStream!==!1){let e=I?.storyPinData?.staticPageCount??0,t=I?.storyPinData?.totalVideoDuration??0;if(F&&w("ads_iad_dweb").anyEnabled||["ShoppingGridSmallCarousel","VisualInspirationFocusPin","VisualInspirationPin","VisualInspirationShoppingPin"].includes(b||"")||0===t&&e<=1)return null;{let n=t+e*m.oN,i=(0,l.Z)(n);Z=L?(0,d.jsx)(u,{size:c,text:i}):(0,d.jsx)(p.Z,{inPinRep:!0,text:i})}}else if(j){let{videos:e}=I??{},t=(0,l.Z)(e?.duration??0);Z=L?(0,d.jsx)(u,{size:c,text:t}):(0,d.jsx)(p.Z,{inPinRep:!0,text:t})}else if(E){let e=I?.richSummary&&I.richSummary.products&&I.richSummary.products[0]&&I.richSummary.products[0].offerSummary;if(D){let t=e&&(e.price||e.maxPrice);Z=t?(0,d.jsx)(u,{size:c,text:t}):null}else{if(!v)return null;let e=(I?.richSummary?.products?.[0]||{}).labelInfo?.labels?.[0];if(!e)return null;Z=L?(0,d.jsx)(u,{backgroundColor:v,size:c,text:e}):(0,d.jsx)(p.Z,{inPinRep:!0,text:e})}}else if(O&&T){let e=I?.productPinData&&I.productPinData.items&&I.productPinData.items[0],t=(I?.imageSpec_orig?1:0)+(e?.additionalImagesLength??0),n=I?.carouselData?.index??0,i=`${n+1}/${t}`;Z=L?(0,d.jsx)(u,{size:c,text:i}):null}else if(T){let e=I?.carouselData?.carouselSlots??[],t=I?.carouselData?.index??0,n=`${t+1}/${e.length}`;Z=L?(0,d.jsx)(u,{size:c,text:n}):null}return Z?t?(0,d.jsx)(a.xu,{margin:i?1:2,children:Z}):Z:null}},674944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(883119),a=n(793874),l=n(144326),r=n(785893);function s({text:e,icon:t,inPinRep:n}){let s=(0,l.ZP)(),o=(0,a.vs)();return(0,r.jsxs)(i.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:o?"rgba(0, 0, 0, 0.7)":"rgba(255, 255, 255, 0.8)"}},"data-test-id":"PinTypeIdentifier",display:"flex",height:24,left:n,margin:2,overflow:"hidden",padding:2,position:"absolute",rounding:"pill",top:!0,zIndex:new i.Ry(1),children:[t&&(0,r.jsx)(i.xu,{marginEnd:1,children:(0,r.jsx)(i.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:12})}),(0,r.jsx)(i.xv,{inline:!0,size:"100",weight:"bold",children:e})]})}},206835:(e,t,n)=>{"use strict";n.d(t,{P:()=>o,t:()=>d});var i=n(252071),a=n(400416);let l=()=>{};async function r(e,t){let n=i.Z.create("PinFeedbackResource",e);await n.callUpdate(),t()}let s={complaint:r,followBoard:async function({board_id:e},t,n){await (0,a.Z)({url:`/v3/boards/${e??""}/follow/`,method:"PUT"}),n({event_type:26,object_id_str:e}),t()},followPinner:async function(e,t){let n=i.Z.create("UserFollowResource",e);await n.callCreate(),t()},followTopic:async function(e,t,n){let a=i.Z.create("InterestFollowResource",e);await a.callCreate(),t(),n({event_type:601,object_id_str:e.interest_id})},newsHubPinHide:function(e,t){(0,a.Z)({url:e.undo?`/v3/news_hub/${e.news_id??""}/pin/${e.pin_id??""}/undo/`:`/v3/news_hub/${e.news_id??""}/pin/${e.pin_id??""}/hide/`,method:"PUT"}).then(()=>t()),r({feedback_type:1,pin_id:e.pin_id,...e},t)},promotedComplaint:async function(e,t){let n=i.Z.create("PinFeedbackResource",e);await n.callUpdate(),t()},relatedPinHide:function(e,t){(0,a.Z)({url:e.undo?`/v3/p2p/${e.pin??""}/unhide/`:`/v3/p2p/${e.pin??""}/hide/`,method:"PUT"}).then(()=>t()),r({feedback_type:1,pin_id:e.pin,...e},t)},reportPin:function(e,t){t()},showAdReasons:function(e,t){t()},unfollowBoard:async function({board_id:e},t,n){await (0,a.Z)({url:`/v3/boards/${e??""}/follow/`,method:"DELETE"}),n({event_type:27,object_id_str:e}),t()},unfollowPinner:async function(e,t){let n=i.Z.create("UserFollowResource",e);await n.callDelete(),t()},unfollowTopic:async function(e,t,n){let a=i.Z.create("InterestFollowResource",e);await a.callDelete(),t(),n({event_type:602,object_id_str:e.interest_id})},unrelatedSearchPin:function(e,t){(0,a.Z)({url:e.undo?`/v3/search/${e.pin_id??""}/unhide/`:`/v3/search/${e.pin_id??""}/hide/`,method:"PUT",data:{query:e.query,pin_type:e.pin_type}}).then(()=>t()),r({feedback_type:1,...e},t)}},o=["complaint","relatedPinHide","unrelatedSearchPin","promotedComplaint","newsHubPinHide","unfollowBoard","unfollowPinner","unfollowTopic"];function d(e,t={},n=l,i){let a=e?s[e]:null;return a?a(t,n,i):n()}},915831:(e,t,n)=>{"use strict";n.d(t,{EF:()=>c,Iv:()=>s,hP:()=>r,nb:()=>d,oK:()=>o});var i=n(240760),a=n(206835),l=n(906144);function r({boardFollowedByMe:e,feedbackType:t,viewParameter:n,promotion:i,recommendationReason:a,pinnerFollowedByMe:l}){if(i&&!i.isDownstreamPromotion)return"promoted";if(t)return t;if(a){if("FOLLOWED_INTEREST"===a.reason)return"topic";if("FOLLOWING_FEED"!==a.reason&&"RECENT_FOLLOWED_BOARD"!==a.reason)return a.hasBoard?"pfyBoard":"pfy"}if(e||l)return"followed";switch(n){case 140:case 144:case 141:case 145:case 139:case 3173:return"related";case 3082:return"newsHub";default:return"default"}}function s({sourceInterest:e,i18n:t,makeNavigateLink:n}){return{action:"unfollowTopic",actionOptions:{interest_id:e.id,interest_list:l.X},title:"",subTitle:(0,i.nk)(t._('We\u2019ll show you less Pins from {{ formattedTopic }} in the future.', 'pin.contextualMenu.feedback.unfollowTopic.subtitle', 'Confirmation text after unfollowing a topic'),{formattedTopic:n("topicUrl",`/topics/${e.url_name??""}`,e.name??"",!0)})}}function o({boardId:e,display:t,i18n:n,makeNavigateLink:a}){return{action:"unfollowBoard",actionOptions:{board_id:e},title:"",subTitle:"pinner"===t.type?(0,i.nk)(n._('You unfollowed {{ formattedPinner }} and won\u2019t see Pins they save anymore.', 'Confirmation text after unfollowing a user', 'Confirmation text after unfollowing a user'),{formattedPinner:a("pinnerUrl",`/${t.data.username??""}`,t.data.full_name??"",!0)}):(0,i.nk)(n._('You unfollowed the board {{ formattedBoard }} and won\u2019t see Pins saved to it anymore.', 'Confirmation text after unfollowing a board', 'Confirmation text after unfollowing a board'),{formattedBoard:a("boardUrl",t.data.url??"",t.data.name??"",!0)})}}function d(e,t){switch(e){case"promoted":return 60;case"followed":case"topic":return 100;case"pfyBoard":case"pfy":return 58}if("board_shop_tool_module"===t)return 13140}function c(e,t,n,i,l,r){return()=>{let s={...e,undo:!0},o=t;"unfollowPinner"===t?o="followPinner":"unfollowBoard"===t?o="followBoard":"unfollowTopic"===t&&(o="followTopic"),(0,a.t)(o,s,void 0,r),l(),r({event_type:101,component:0,element:11181,view_type:n??void 0,view_parameter:i})}}},26473:(e,t,n)=>{"use strict";function i({embedSrc:e,embedType:t,imagesUrls:n,preferredResolution:i,excludeOriginals:a}){if(!e&&!t&&!n)return"";if("gif"===t)return e||"";if(!n)return"";if(i){let e="474x"===i&&n["474x"]||"236x"===i&&n["236x"]||n["736x"];if(e)return e}let l=Object.keys(n).reduce((e,t)=>{try{let i=t.split("x")[0];if(Number.isNaN(Number(i)))return{...e,[t]:n[t]};return{...e,[i]:n[t]}}catch(t){return e}},{}),r=Object.keys(l);return a&&"orig"===r[r.length-1]&&r.pop(),l[r.pop()]||""}n.d(t,{Z:()=>i})},973612:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(786890);let a=e=>(e||"").trim().replace(/\s+/g," "),l=({storyPinDataId:e,pinDescription:t,richMetadataDescription:n,richSummaryDisplayName:l,closeupDescription:r,closeupUnifiedDescription:s,seoDescription:o,seoNoindexReason:d})=>d&&i.eg.has(d)?a(o):e?a(t):a((0,i.eK)({richMetadataDescription:n,richSummaryDisplayName:l,closeupUnifiedDescription:s}).description)||a(s||"")||a(r)||a(t)||a(n)||""},693625:(e,t,n)=>{"use strict";function i(){let e=800,t=400;return"undefined"!=typeof window&&(e=window.innerHeight,t=window.innerWidth),{windowHeight:e,windowWidth:t}}n.d(t,{Z:()=>i})},891985:(e,t,n)=>{"use strict";n.d(t,{NK:()=>_,P6:()=>l,ZE:()=>g,Zt:()=>h,_J:()=>o,_S:()=>y,cL:()=>p,jL:()=>s,oN:()=>a,rM:()=>m,sV:()=>d,sY:()=>c});var i=n(673687);let a=5e3,l=5e3/i.gJ,r=["Uploaded by user"],s=(e,t)=>!!t&&!e,o=e=>!!e&&5!==e,d=e=>["email","messages","deep_linking"].includes(e),c=e=>!!e&&"gif"===e,u=e=>"pinstory"===e,p=({embedSrc:e,embedSubtype:t,embedType:n})=>!!e&&!c(n)&&!u(t),m=({link:e,mobileLink:t,trackedLink:n})=>!t&&!n&&!e,g=e=>/pin.it/gim.test(e||""),h=({link:e,mobileLink:t,origImageUrl:n,trackedLink:i})=>t||i||e||n||"",_=(e,t)=>({deeplinkUri:{android:`pin/${e}/repin`,iOS:`repin/${e}`},mwebUri:{pathname:`/pin/${e}/repin/`,state:{trackingParams:t.state?t.state.trackingParams:""}}});function y(e){for(let t of r)if(e===t)return!1;return!0}},786890:(e,t,n)=>{"use strict";n.d(t,{eg:()=>r,kt:()=>h,rw:()=>m,fs:()=>c,eK:()=>u,Ly:()=>p,BY:()=>g,bN:()=>_,RC:()=>o,EU:()=>d});let i=/\s\s+/g,a=e=>e.replace(i," ");var l=n(715824);let r=Object.freeze(new Set(["sensitive_raw_pin_text","is_sensitive_rich_pin_description","is_sensitive_rich_pin_title","is_sensitive_board_title"])),s=e=>"string"==typeof e?e:"",o=({storyPinDataMetadataPinTitle:e,pinTitle:t})=>e||t,d=(e,t)=>e?e.trim().length>t?(0,l.ZP)(e.trim(),t).trim():e.trim():"",c=({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:a,storyPinDataMetadataPinTitle:l})=>{let r=l||e,s=d(t,200);return s||n||i||(a&&r?r:null)},u=e=>{let{richSummaryDisplayName:t}=e,n=e.pinJoinVisualAnnotation||[],i=e.pinJoinAnnotationsWithLinks||{},r=e.richMetadataDescription||"",s=e.closeupUnifiedDescription||"",o=n.map(e=>(i||{})[e]||{name:e,url:""}),d="",c=(t||"").toLocaleLowerCase().trim(),u=r.toLocaleLowerCase().trim(),p=s.toLocaleLowerCase().trim();return s&&s.length>3&&p!==c?d=s:r&&r.length>3&&u!==c&&(d=r),d&&(d=a((0,l.ZP)(d,496)).trim()),{description:d,annotationsWithLinks:o}},p=({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:a,storyPinDataMetadataPinTitle:l,pinJoinVisualAnnotation:s,seoNoindexReason:o,seoTitle:d})=>r.has(o??"")?d:c({pinTitle:e,gridTitle:t,richSummaryDisplayName:n,richMetadataTitle:i,storyPinDataId:a,storyPinDataMetadataPinTitle:l})||s?.[0]||e,m=(e,t,n,i,a)=>{let l=s(e).trim(),r=(e,t)=>t&&t.length>0?`${e} ${t.join(", ")}`:e;return i&&i.trim().length?r(i.trim(),n):a&&a.trim().length?a.trim():l?r(l,n):n?n.join(", "):""},g=e=>`/pin/${e}/`,h=(e,t)=>{let n=`Pinterest video from ${t}: `.concat(e);return""===t?e:n},_=({pinId:e,seoUrl:t})=>t&&"string"==typeof t?t:g(e)},252611:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c}),n(167912);var i,a=n(47848),l=n(730212),r=n(151958),s=n(285899),o=n(821892);let d=void 0!==i?i:i=n(357077);function c(e,t){let{isAuthenticated:n}=(0,l.B)(),i=(0,a.Z)(d,e),c=(0,r.Z)(i)(),{slotIndex:u}=(0,o.E)(),p=(0,s.Z)(12,{object_id_str:i.entityId,clientTrackingParams:t,aux_data:n?{grid_index:u,is_promoted:i.isPromoted,...c}:{objectId:i.entityId,grid_index:u,sanitized_url:i.link},...n?{}:{component:0,element:162}}),m=(0,s.Z)(101,{component:n?void 0:0,element:n?162:0,object_id_str:i.entityId,clientTrackingParams:t,aux_data:{...n?c:{}}}),g=(0,s.Z)(8948,{object_id_str:i.entityId,clientTrackingParams:t,aux_data:n?{click_type:"clickthrough",closeup_navigation_type:"click",grid_index:u,...c}:{objectId:i.entityId,grid_index:u,sanitized_url:i.link}});return()=>{p(),m(),g()}}},356959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c}),n(167912);var i,a=n(616550),l=n(47848),r=n(144326),s=n(240760),o=n(915831);let d=void 0!==i?i:i=n(513004);function c({feedbackType:e,getRecommendationDescription:t,isPromoted:n,pinKey:i}){let c=(0,l.Z)(d,i),u=(0,r.ZP)(),p=(0,a.TH)();return i=>{let a;if(n&&c&&c.promoter?.fullName)return{title:"",subTitle:(0,s.nk)(u._('{{ 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:c.promoter.fullName})};let l=p.pathname.includes("following");switch(e){case"followed":c&&c.board?.entityId&&c.pinner&&!l&&(a=(0,o.oK)({boardId:c.board.entityId,i18n:u,makeNavigateLink:i,display:c.pinner.explicitlyFollowedByMe?{type:"board",data:{name:c.board.name,url:c.board.url}}:{type:"pinner",data:{full_name:c.pinner.fullName,username:c.pinner.username}}}));break;case"topic":c?.sourceInterest&&!l&&(a=(0,o.Iv)({i18n:u,makeNavigateLink:i,sourceInterest:{id:c.sourceInterest.entityId,name:c.sourceInterest.name,url_name:c.sourceInterest.urlName}}))}return a?{title:u._('Pin hidden', 'message displayed after hiding a pin', 'message displayed after hiding a pin'),subTitle:t(i),unfollow:a}:{title:u._('Pin hidden', 'message displayed after hiding a pin', 'message displayed after hiding a pin'),subTitle:u._('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')}}}},360847:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c}),n(167912);var i,a=n(47848),l=n(144326),r=n(240760);let s=void 0!==i?i:i=n(669408),o=e=>e.length>32?`${e.substring(0,32).trim()}...`:e;function d({feedback:e,i18n:t,makeNavigateLink:n}){switch(e.type){case"pfy":return t._('This Pin was inspired by your recent activity', 'Pin feedback reason', 'Pin feedback reason');case"pfyBoard":let{recommendationReasonBoard:i}=e;return i?(0,r.nk)(t._('This Pin was inspired by your board {{ boardLink }}', 'Pin feedback - inspired by your board', 'Pin feedback - inspired by your board'),{boardLink:n("navigation",i.url,i.name)}):null;case"topic":let{sourceInterest:a}=e;return a?(0,r.nk)(t._('This Pin was inspired by {{ formattedTopic }}', 'Pin feedback', 'Pin feedback'),{formattedTopic:n("topicUrl",`/topics/${a.url_name}`,a.name)}):null;case"followed":let{followed:l}=e;return"pinner"===l.type?(0,r.nk)(t._('This Pin is from {{ formattedPinner }}, a profile you follow', 'Pin feedback', 'Pin feedback'),{formattedPinner:n("pinnerUrl",`/${l.pinner?.username??""}`,o(l.pinner?.full_name??""))}):(0,r.nk)(t._('This Pin is from {{ formattedBoard }}, a board you follow', 'Pin feedback', 'Pin feedback'),{formattedBoard:n("boardUrl",l.board?.url??"",o(l.board?.name??""))});case"promoted":let{promotedIsPersonalized:s,isEligibleForPromotedPartnership:d,promotedPartnershipAttributionName:c,promotedPartnershipAdvertiserName:u}=e.thirdPartyAdAttributes||{};if(!s&&d)return(0,r.nk)(t._('{{ promotedPartnershipAdvertiserName }} paid, through a partnership with {{ promotedPartnershipAttributionName }}, to have this Pin show up where you\'d be more likely to notice it', 'feedbackHelpers.getRecommendationDescription.promoted.thirdParty', 'Recommendation description for ads with promoted partnership. promotedPartnershipAdvertiserName:Name of advertiser, promotedPartnershipAttributionName:Name of promoted partner'),{promotedPartnershipAdvertiserName:u,promotedPartnershipAttributionName:c});if(!e.promoter||s)return t._('This ad was personalized for you using info from one of our partners', 'Pin feedback', 'Pin feedback');{let{full_name:i,username:a}=e.promoter,l=n("promotedLink",a?"/"+a+"/":"/",i);return(0,r.nk)(t._('{{ promoterLink }} paid to have this Pin show up where you\u2019d be more likely to notice it', 'Pin feedback', 'Pin feedback'),{promoterLink:l})}default:return null}}function c({feedbackType:e,pinKey:t}){let n=(0,l.ZP)(),i=(0,a.Z)(s,t);return t=>i?function({adMatchReason:e,board:t,feedbackType:n,i18n:i,makeNavigateLink:a,pinner:l,promoter:r,recommendationReason:s,sourceInterest:o,thirdPartyAdAttributes:c}){let u={i18n:i,makeNavigateLink:a};switch(n){case"pfy":return d({...u,feedback:{type:"pfy"}});case"pfyBoard":return d({...u,feedback:{type:"pfyBoard",recommendationReasonBoard:s?.board&&{name:s.board.name??"",url:s.board.url??""}}});case"topic":return d({...u,feedback:{type:"topic",sourceInterest:o&&o.name&&o.urlName?{name:o.name,url_name:o.urlName}:null}});case"followed":return d({...u,feedback:{type:"followed",followed:l?.explicitlyFollowedByMe?{type:"pinner",pinner:l.fullName?{full_name:l.fullName,username:l.username??""}:null}:{type:"board",board:t&&t.name&&t.url?{name:t.name,url:t.url}:null}}});case"promoted":return d({...u,feedback:{type:"promoted",promoter:!e&&r?.fullName?{full_name:r.fullName,username:r.username}:null,thirdPartyAdAttributes:c}});default:return null}}({adMatchReason:i.adMatchReason,board:i.board,feedbackType:e,i18n:n,makeNavigateLink:t,pinner:i.pinner,promoter:i.promoter,recommendationReason:i.recommendationReason,sourceInterest:i.sourceInterest}):null}},115440:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o}),n(167912);var i,a,l=n(47848);let r=void 0!==i?i:i=n(479566),s=void 0!==a?a:a=n(953109);function o({pinKey:e,surface:t,prioritizeMerchant:n}){let i=(0,l.Z)(s,e),a=i.richSummary?.typeName==="product"||"ShoppingGridShippedMetadataWithVisitButton"===t&&(i.isOosProduct||i.isStaleProduct),o=function(e){let t=(0,l.Z)(r,e);return t.linkUserWebsite?.officialUser?.fullName||t.linkDomain?.officialUser?.fullName||t.richSummary?.siteName||("Uploaded by user"===t.domain?(t.isRepin?t.originPinner:t.pinner)?.fullName:t.domain||t.isRepin&&t.viaPinner?.fullName||void 0)}(i);return a&&n&&o?o:a&&((i.richSummary?.products?.[0]||{}).brand?.name||o)||""}},702789:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i,a=n(667294);n(167912);var l=n(47848),r=n(383399),s=n(713660),o=n(98988);let d=void 0!==i?i:i=n(252942);function c({pinKey:e}){let t=(0,r.Z)(),{board:n}=(0,l.Z)(d,e),i=!!n?.collaboratedByMe,c=n?.collaboratorCount,u=n?.isCollaborative,p=n?.owner?.entityId,m=(0,s.Z)(p),g=!!(t?.isAuth&&m),h=!!("number"==typeof c&&c>0||u),_=!!((0,o.Z)(i)||h&&g),y=h||_;return(0,a.useMemo)(()=>({isGroupBoard:y,isOwnBoard:g,viewerIsBoardCollaborator:_}),[y,g,_])}},272911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o}),n(167912);var i,a=n(47848),l=n(26473),r=n(730212);let s=void 0!==i?i:i=n(2161);function o(e,t,n){let i=(0,a.Z)(s,e),{isBot:o,isSocialBot:d}=(0,r.B)();return(0,l.Z)({embedSrc:i.embed?.src,embedType:i.embed?.type,imagesUrls:t,preferredResolution:n??"736x",excludeOriginals:!o&&!d})}},593078:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r}),n(167912);var i,a=n(47848);let l=void 0!==i?i:i=n(373462),r=e=>{let t=(0,a.Z)(l,e);return[["60x60",t?.imageSpec_60x60],["136x136",t?.imageSpec_136x136],["170x",t?.imageSpec_170x],["236x",t?.imageSpec_236x],["474x",t?.imageSpec_474x],["564x",t?.imageSpec_564x],["736x",t?.imageSpec_736x],["600x315",t?.imageSpec_600x315],["orig",t?.imageSpec_orig]].reduce((e,[t,n])=>n?{...e,[t]:n.url}:e,{})}},947956:(e,t,n)=>{"use strict";function i({hasPin:e,hasPinRichMetadata:t,hasPinRichMetadataProducts:n,hasPinRichMetadataArticle:i,hasPinRichMetadataRecipe:a,hasPinStoryPinData:l}){if(e){if(t)return n?144:i?141:a?145:139;if(l)return 157}return 140}n.d(t,{Z:()=>i})},906144:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});let i="favorited"},293321:(e,t,n)=>{"use strict";n.d(t,{kf:()=>_,l5:()=>g,of:()=>p,xC:()=>h,yz:()=>m});var i=n(667294),a=n(498490),l=n(915571),r=n(969119),s=n(346645),o=n(415787),d=n(785893);let{Provider:c,useMaybeHook:u}=(0,a.Z)("PwaContext"),p=({children:e,initialContext:t})=>{let[n,a]=(0,i.useState)(null),s=t||{pwaType:"unknown",twaType:null},u=s.pwaType;(0,r.Z)(()=>{let e=(0,l.FB)(window)||"unknown";a(e),u!==e&&(0,o.nP)("pwa.type_mismatch",{sampleRate:1,tags:{serverPwaType:u,clientPwaType:e,conflict:"unknown"!==u&&"unknown"!==e}})});let p="unknown"===u&&n?n:u,{twaType:m}=s,g=(0,i.useMemo)(()=>({pwaType:p,twaType:m}),[p,m]);return(0,d.jsx)(c,{value:g,children:e})},m=()=>{let e=u();return e?.pwaType??"unknown"},g=()=>{let e=u();return e?.twaType??null},h=()=>"android-twa"===m(),_=()=>{let e=m(),t=(0,s.Z)();return"unknown"===e&&t?null:"windows"===e}},755349:(e,t,n)=>{"use strict";function i(e){let t=Object.keys(e);return t.length>0?t.sort((t,n)=>e[n]-e[t]).slice(0,3):null}function a(e){let t=Object.values(e);return t.length>0?t.reduce((e,t)=>e+t,0):0}function l(e,t,n){return!e.isPromoted&&!e.isDownstreamPromotion&&!!(e.videos?.entityId||e.storyPinDataId)&&!t&&(!e.board?.isCollaborative||!e.board.collaboratedByMe)&&!n}n.d(t,{At:()=>i,J6:()=>l,Ud:()=>a})},302749:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,Z:()=>s});var i=n(667294),a=n(883119),l=n(785893);let r=({fill:e})=>{let t="half"===e?(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(a.xu,{position:"absolute",children:(0,l.jsx)(a.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:15})}),(0,l.jsx)(a.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:15})]}):(0,l.jsx)(a.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:15});return(0,l.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},"data-test-id":`rating-star-${e}`,display:"inlineBlock",children:t})};function s({max_rating:e,rating:t,display:n}){var i;let s=[],o=parseFloat(e)||5,d=5*(i=(i=parseFloat(t)||0)<=o?i:o)/o;if(Number.isNaN(d))return null;let c=Math.floor(d),u=d-c;return[...Array(c).keys()].forEach(e=>s.push((0,l.jsx)(r,{fill:"full"},e))),u>=.75?s.push((0,l.jsx)(r,{fill:"full"},s.length)):u>=.25&&s.push((0,l.jsx)(r,{fill:"half"},s.length)),[...Array(5-s.length).keys()].forEach(()=>s.push((0,l.jsx)(r,{fill:"empty"},s.length))),(0,l.jsx)(a.xu,{display:n?"flex":"inlineBlock",position:"relative",width:18*o,children:s})}},617280:(e,t,n)=>{"use strict";function i({m:e=0,h:t=0}){let n;return n=t<=0?t:e>45?t+1:e>15?t+.5:t,{m:e,h:t,rm:t>0?0:e,rh:n}}function a(e){let t=Math.floor(e/3600);return i({m:Math.floor(e%3600/60),h:t})}n.d(t,{X:()=>i,u:()=>a})},389354:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(883119),a=n(785893);function l({accessibilityLabel:e}){return(0,a.jsx)(i.kC,{alignItems:"center",justifyContent:"center",children:(0,a.jsx)(i.$j,{accessibilityLabel:e,show:!0})})}},750077:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=n(352006).Z},371160:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(883119),a=n(785893);let l=({children:e,gray:t,weight:n="normal"})=>(0,a.jsx)(i.xv,{color:t?"subtle":void 0,inline:!0,weight:n,children:(0,a.jsx)("span",{style:{whiteSpace:"pre-wrap"},children:e})})},663641:(e,t,n)=>{"use strict";n.d(t,{Hd:()=>d,_R:()=>s,gi:()=>l,lw:()=>i,oD:()=>a,wF:()=>o,zh:()=>r});let i={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",SHOP_TOOL:"shop_tool"},a=e=>Object.values(i).find(t=>t===e)??void 0,l=e=>{switch(e){case i.PINS:return 0;case i.PINS_MINE:return null;case i.PINS_BUYABLE:return 1;case i.PINS_VIDEO:return 2;case i.BOARDS:return 3;case i.USERS:return 4;default:return null}},r=e=>{switch(e){case 0:return i.PINS;case 1:return i.PINS_BUYABLE;case 2:return i.PINS_VIDEO;case 3:return i.BOARDS;case 4:return i.USERS;default:return null}},s=e=>{switch(e){case i.PINS_MINE:case i.MY_CONTENT:return 107;case i.PINS_BUYABLE:return 254;case i.PINS_VIDEO:return 3306;case i.SHOP_TOOL:return 3380;case i.BOARDS:return 44;case i.USERS:return 45;case i.PINS:default:return 43}},o=e=>{switch(e){case i.PINS:return 60;case i.PINS_MINE:case i.MY_CONTENT:return 63;case i.PINS_BUYABLE:return 3800;case i.PINS_VIDEO:return 64;case i.BOARDS:return 61;case i.USERS:return 62;default:return null}},d=(e,t)=>{if(t)switch(e){case i.USERS:return 1000392;case i.PINS_BUYABLE:return 1000391;case i.PINS:default:return 29}switch(e){case i.USERS:return 1000432;case i.PINS_BUYABLE:return 1000433;case i.PINS:default:return 1000269}}},529264:(e,t,n)=>{"use strict";n.d(t,{H5:()=>h,Xn:()=>m,an:()=>g});var i=n(868808);let a="BING",l="GOOGLE",r="YAHOO",s="YANDEX",o="RAKUTEN",d="NAVER",c="AMP_CACHE",u="DUCKDUCKGO",p=[l,a,r,s,o,d,c,u];function m(e){return p.includes(function(e){let{hostname:t}=(0,i.Qc)(e,!0);if(t&&e){if(t.includes("google.")||e.includes("android-app://com.google.android.googlequicksearchbox"))return l;if(t.includes("bing."))return a;if(t.includes("yahoo."))return r;if(t.includes("yandex."))return s;else if(t.includes("rakuten."))return o;else if(t.includes("naver."))return d;else if(t.includes("duckduckgo."))return u;else if(t.includes(".cdn.ampproject.org"))return c}return""}(e))}function g(e){return e||"undefined"!=typeof document&&document.referrer||""}let h=e=>{let t=new URL(e);return t.searchParams.set("nii","t"),t.href}},703333:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});let i={REGISTRATION:"registration",SETTINGS:"settings",GOOGLE_PEOPLE_API:"google_people_api",HOLISTIC_PROFILE_PROMPT:"holistic_profile_prompt",IN_APP_BIRTHDAY_PROMPT:"in_app_birthday_prompt",FIX_EMAIL_PROMPT:"fix_email_prompt",NUX:"nux",BUSINESS_HUB:"business_hub",UNKNOWN:"unknown"}},873095:(e,t,n)=>{"use strict";n.d(t,{l:()=>l,r:()=>r});var i=n(667294);let a=(0,i.createContext)(null),l=()=>(0,i.useContext)(a),r=a.Provider},728593:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(830997),a=n(873095);let l=()=>{let e=(0,i.g)(),t=(0,a.l)();return n=>{let{mobileOptions:i,desktopOptions:a,reason:l,attributionLabel:r,pinId:s}=n;e?e.showDesktopSignupModal({signupFlow:a?.modalType==="login"?{type:"login"}:{type:"signup"},reason:l,attributionLabel:r,...a?.modalOptions}):t&&t.showMobileSignupModal({reason:l,attributionLabel:r,headingType:i?.headingType??"none",pinId:s})}}},61218:(e,t,n)=>{"use strict";n.d(t,{o$:()=>i,ty:()=>a,vE:()=>l});let{Provider:i,MaybeConsumer:a,useMaybeHook:l}=(0,n(498490).Z)("inviteContext")},540234:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,t:()=>d});var i=n(667294),a=n(167912),l=n(252071);function r(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let s={};class o extends i.Component{constructor(...e){super(...e),r(this,"state",{invite:s[this.props.invite_code]||null,loaded:this.props.invite_code in s})}componentDidMount(){let{invite_code:e}=this.props;l.Z.create("InviteCodeMetadataResource",{invite_code:e}).callGet().then(t=>{if(t&&t.resource_response){let n=t.resource_response.data;s[e]=n,this.setState({invite:n,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 i.Component{constructor(...e){super(...e),r(this,"state",{invite:s[this.props.invite_code]||null,loaded:this.props.invite_code in s})}componentDidMount(){let{invite_code:e,relayEnvironment:t,inviteQuery:n}=this.props;(0,a.fetchQuery)(t,n,{invite_code:e}).subscribe({next:e=>{if(e.v3GetInviteCodeQuery&&"data"in e.v3GetInviteCodeQuery&&e.v3GetInviteCodeQuery?.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}}},272109:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,Z:()=>s});var i=n(611735),a=n(785893);let l=()=>{},r=e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()};function s({allowClickAndDrag:e,allowEsc:t,allowMediaPlay:n,allowScroll:s,children:o}){let d=e=>{t&&e.keyCode===i.Z.ESCAPE||r(e)};return(0,a.jsx)("div",{onAbort:r,onAnimationEnd:r,onAnimationIteration:r,onAnimationStart:r,onBlur:l,onCanPlay:n?l:r,onCanPlayThrough:r,onChange:r,onClick:e?l: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:l,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?l:r,onMouseOut:r,onMouseOver:r,onMouseUp:e?l:r,onPaste:r,onPause:r,onPlay:r,onPlaying:r,onProgress:r,onRateChange:r,onScroll:s?l:r,onSeeked:r,onSeeking:r,onSelect:r,onStalled:r,onSubmit:r,onSuspend:r,onTimeUpdate:r,onTouchCancel:r,onTouchEnd:e?l:r,onTouchMove:e?l:r,onTouchStart:e?l:r,onTransitionEnd:r,onVolumeChange:r,onWaiting:r,onWheel:r,children:o})}},786525:(e,t,n)=>{"use strict";n.d(t,{L_:()=>a,Nh:()=>l,qn:()=>i});let i=(e,t=null)=>{try{return"undefined"!=typeof window&&window.localStorage.getItem(e)||t}catch(e){return console.error("Cannot access localStorage."),t}},a=e=>{try{if("undefined"==typeof window)return;window.localStorage.removeItem(e)}catch(e){console.error("Cannot access localStorage.")}},l=(e,t)=>{try{if("undefined"==typeof window)return;window.localStorage.setItem(e,t)}catch(e){console.error("Cannot access localStorage.")}}},978993:(e,t,n)=>{"use strict";n.d(t,{L_:()=>a,Nh:()=>l,qn:()=>i});let i=(e,t)=>{if("undefined"==typeof window)return t;try{return window.sessionStorage.getItem(e)}catch(e){return window.console.error("Cannot access sessionStorage."),t}},a=e=>{if("undefined"!=typeof window)try{window.sessionStorage.removeItem(e)}catch(e){window.console.error("Cannot access sessionStorage.")}},l=(e,t)=>{if("undefined"!=typeof window)try{window.sessionStorage.setItem(e,t)}catch(e){window.console.error("Cannot access sessionStorage.")}}},471620:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=(e,t)=>e.length>t?e.substr(0,t-3).trim()+"…":e},715824:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>a,mP:()=>i});let i="…";function a(e,t=80,n=i,l=!1){let r;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||l)r=e.substring(0,t);else{let n=e.lastIndexOf(" ",t);r=e.substring(0,n)}return(r=r.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""))+n}},296209:(e,t,n)=>{"use strict";function i(e){return e.replace(/[_.-](\w|$)/g,(e,t)=>t.toUpperCase())}n.d(t,{Z:()=>i})},603667:(e,t,n)=>{"use strict";n.d(t,{$:()=>i,Z:()=>l});let{Provider:i,useMaybeHook:a}=(0,n(498490).Z)("TimeSpentManagerContext"),l=a},154785:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(667294),a=n(616550),l=n(282999),r=n(812477),s=n(1006);let o=e=>(0,l.L6)(e)?"pin":(0,l.am)(e)?"board":(0,l.Xn)(e)?"login":(0,l.C$)(e)?"home":(0,r.Z)(e)?"profile":(0,l.dr)(e)?"ideas":(0,l.gT)(e)?"ideas-root":(0,l.tZ)(e)?"videos":(0,l.Q0)(e)?"videos-category":(0,l.$Y)(e)?"article":(0,l.E0)(e)?"shopping-spotlight":(0,l.Zz)(e)?"today":(0,l.j8)(e)?"unauth-profile":(0,l.f1)(e)?"shopping-root":(0,l.OX)(e)?"shopping-category":"other";function d(){let e=(0,a.TH)();return(0,i.useCallback)(({action:t,item:n,within:i})=>{let a=o(e);(0,s.My)(`logged_out_product.interaction.${a}.${t}`,{item:n||"none",within:i||"none"})},[e])}},581309:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(667294),a=n(883119),l=n(989820),r=n(144326),s=n(512541),o=n(785893);function d({color:e="dark",completeButtonText:t,completeUrl:n,dismissButtonText:d,experienceId:c,external:u,message:p,onComplete:m,onDismiss:g}){let h=(0,r.ZP)(),_=(0,i.useRef)(null),y=p&&!t,f=500735===c,x=t&&(!n||f)&&(0,o.jsx)(a.zx,{color:"white",onClick:({event:e})=>{m&&m(e)},text:t}),b=t&&n&&(0,o.jsx)(l._7,{anchor:".HomeButton2",anchorElementRef:_.current,containerBoxConfig:{display:"flex",height:"100%"},children:(0,o.jsx)(a.ZP,{ref:_,accessibilityLabel:t,color:"white",href:n,onClick:({event:e})=>{m&&m(e)},rel:u?"nofollow":"none",size:"md",text:t})}),v=d&&g&&(0,o.jsx)(a.xu,{mdPaddingX:2,children:(0,o.jsx)(a.zx,{color:"shopping"===e?"white":"gray",onClick:({event:e})=>{g&&g(e)},text:d})}),P=y&&!f&&g&&!d&&(0,o.jsx)(a.hU,{accessibilityLabel:h._('Close', 'accessibility close label', 'accessibility close label'),bgColor:"lightGray",icon:"cancel",iconColor:"gray",onClick:({event:e})=>{g&&g(e)},size:"md"});return(0,o.jsxs)(a.xu,{alignItems:"center",color:e,direction:"column",display:"flex",justifyContent:"between",paddingX:6,paddingY:3,smDirection:"row",children:[(0,o.jsx)(a.xu,{column:12,smColumn:y?11:8,children:(0,o.jsxs)(a.xv,{color:"inverse",weight:f?"normal":"bold",children:[(0,o.jsx)(s.Z,{unsafeCSS:".Banner--message a { color: #fff; text-decoration: underline; }"}),(0,o.jsx)("div",{className:"Banner--message",children:(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:p}})})]})}),(0,o.jsxs)(a.kC,{alignItems:"center",justifyContent:"end",children:[v,x||b,P]})]})}},436922:(e,t,n)=>{"use strict";n.d(t,{Qy:()=>d,Wu:()=>u,ZP:()=>c});var i=n(616550),a=n(883119),l=n(730212),r=n(868808),s=n(383399),o=n(785893);let d=()=>{let e=(0,s.Z)(),{isInternalIP:t}=(0,l.B)(),n=(0,i.TH)();return(t||e.isAuth&&e.isEmployee)&&Object.keys((0,r.mB)(n.search)).some(e=>e.startsWith("deb_"))};function c({data:e}){return(0,o.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{border:"2px solid red"}},"data-test-id":"debug-info",overflow:"auto",children:(0,o.jsx)("pre",{children:JSON.stringify(e,null,2).replace(/\\n/g,"\n")})})}let u=e=>(0,o.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{marginTop:10}},width:236,children:(0,o.jsx)(c,{...e})})},901450:(e,t,n)=>{"use strict";n.d(t,{F9:()=>a,Zo:()=>i});let{Provider:i,useHook:a}=(0,n(498490).Z)("toastManagerContext")},82210:(e,t,n)=>{"use strict";n.d(t,{M:()=>r,Q:()=>l});var i=n(667294);let a=(0,i.createContext)(null),l=()=>(0,i.useContext)(a),r=a.Provider},833764:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(82210);let a=()=>i.Q()?.showUnauthContextMenu||(()=>{})},566344:(e,t,n)=>{"use strict";n.d(t,{AO:()=>g,Ag:()=>l,C0:()=>o,L1:()=>p,Vi:()=>r,Wm:()=>h,YD:()=>u,kS:()=>a,oo:()=>s,p3:()=>m,vC:()=>d,vI:()=>c});var i=n(697254);let a="https://www.pinterest.com/business/hub/",l="https://www.pinterest.com/homefeed/",r="www.pinterest.com",s="https://www.pinterest.com/_/_/help",o=`${(0,i.Z)({site:"www"})}`,d=(0,i.Z)({site:"developers"}),c=`${(0,i.Z)({site:"sterling"})}`,u=`${(0,i.Z)({site:"analytics"})}`,p=`${(0,i.Z)({site:"trends"})}`,m=`${(0,i.Z)({site:"www",path:"/business/catalogs/?advertiserId="})}`,g=`${(0,i.Z)({site:"business"})}`,h="https://www.pinterest.com/_/_/policy"},564573:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=e=>e?"string"==typeof e?e:e.pathname?e.pathname:"":""},623722:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(414416),a=n(503237);let l=e=>{let t=/^\/pin\/([a-zA-Z0-9-]+)/,n=(0,a.Z)(e);if(t.test(n.path)){let e=n.path.match(t);if(e)return(0,i.Z)(e[1]).pinId||void 0}}},790661:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(976534);let a=({url:e})=>{if(e){let t=e.split("?");if(t[1])return(0,i.Z)(t[1])}return(0,i.Z)()}},648089:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(228867);let a=({url:e})=>!!(e&&e.match(/^https{0,1}:\/\//)&&!(0,i.Z)(e))},809604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});let i=(e,t)=>0===e.lastIndexOf(t,0);var a=n(54473);let l=({url:e})=>{let t=(0,a.Z)("/");return i(e,t)?e.substr(t.length-1):e}},414416:(e,t,n)=>{"use strict";function i(e){if((e||"").includes("--")){let t=e.split("--"),n=t.pop();return{text:t.join("--"),pinId:n}}return{text:"",pinId:e}}n.d(t,{Z:()=>i})},969119:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(667294);let a=e=>{(0,i.useEffect)(e,[])}},151958:(e,t,n)=>{"use strict";n.d(t,{Y:()=>m,Z:()=>g});var i,a,l=n(667294);n(167912);var r=n(532321),s=n(835593);let o=void 0!==i?i:i=n(462812),d=void 0!==a?a:a=n(511259),c=e=>{let t=Symbol("SKIP"),n=e=>Object.entries(e).filter(([,e])=>e!==t).reduce((e,[t,n])=>({...e,[t]:n}),{});if("deprecated"!==e.type){let i=e.data;return n({...i.isEligibleForPdp||i.isOosProduct||i.isStaleProduct?{...(()=>{let e=i.richMetadata?.products?.[0];return{carousel_image_count:t,brand_signature:e?.brand?.signature||t,free_shipping_price:e?.shippingInfo?.freeShippingPrice||t,free_shipping_value:e?.shippingInfo?.freeShippingValue||t,num_variants:e?.variantSet?.variants?.length||t,total_dimension_option_count:e?.variantSet?.dimensionMetadata?.length||t,valid_dimension_option_count:t}})(),pin_show_pdp_oos:!!i.isOosProduct||t,pin_show_pdp_stale:!!i.isStaleProduct||t,pin_show_pdp:!!i.isEligibleForPdp||t}:{},pin_is_shop_the_look:!!(i.shoppingFlags?.includes(2)||i.aggregatedPinData?.isShopTheLook)||t,is_available:!!i.shoppingFlags?.includes(1)||t,is_product_pin_v2:!!i.shoppingFlags?.includes(5)||t,is_rich_product_pin:!!i.shoppingFlags?.includes(6)||t,is_organic_product_carousel:t,item_id:(i.richSummary?.products?.[0]||{}).itemId||t,item_set_id:(i.richSummary?.products?.[0]||{}).itemSetId||t,story_pin_id:i.storyPinData?i.storyPinDataId:t})}{let i=e.data;return i?n({...i.is_eligible_for_pdp||i.is_oos_product||i.is_stale_product?{...(()=>{let e=(i.rich_metadata||i.rich_summary)?.products?.[0],n=e?.additional_images?.length?(i.images?1:0)+e.additional_images.length:i.carousel_data?.carousel_slots?.length,a=i.rich_metadata?.products?.[0],l=a?.variant_set?.variants??[];return{carousel_image_count:n||t,brand_signature:a?.brand?.signature||t,free_shipping_price:a?.shipping_info?.free_shipping_price||t,free_shipping_value:a?.shipping_info?.free_shipping_value||t,num_variants:l.length||t,total_dimension_option_count:a?.variant_set?.dimension_metadata?.length||t,valid_dimension_option_count:(a?.variant_set?.dimension_metadata||[]).reduce((e,{name:t,values:n})=>e+(t&&n||[]).filter(e=>l.some(n=>n.dimensions?.[t??""]===e)).length,0)||t}})(),pin_show_pdp_oos:!!i.is_oos_product||t,pin_show_pdp_stale:!!i.is_stale_product||t,pin_show_pdp:!!i.is_eligible_for_pdp||t}:{},pin_is_shop_the_look:!!(i.shopping_flags?.includes(2)||i.aggregated_pin_data?.is_shop_the_look)||t,is_available:!!i.shopping_flags?.includes(1)||t,is_product_pin_v2:!!i.shopping_flags?.includes(5)||t,is_rich_product_pin:!!i.shopping_flags?.includes(6)||t,is_organic_product_carousel:!!(i.shopping_flags?.includes(10)||(i.product_pin_data?.items?.[0]||{}).additional_images)||t,item_id:(i.rich_summary?.products?.[0]||{}).item_id||t,item_set_id:(i.rich_summary?.products?.[0]||{}).item_set_id||t,story_pin_id:i.story_pin_data?i.story_pin_data_id:t}):{}}},u=e=>0===Object.keys(e).length?{}:{commerce_data:JSON.stringify(e)},p=e=>{let{childDataKey__DEPRECATED:t}=(0,s.Q)(o,e,{useLegacyAdapter:e=>({})}),{childDataKey__DEPRECATED:n}=(0,r.Zm)(d,null==t?{type:"deprecated",data:null}:t,{useGraphQLAdapter:e=>e,useLegacyAdapter:e=>e}),i=(0,l.useRef)(n);return(0,l.useEffect)(()=>{i.current=n}),(0,l.useCallback)(e=>u({...e?.default,...c(i.current),...e?.override}),[])},m=({children:e,pinKey:t})=>e(p(t)),g=p},346645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(667294);let a=()=>()=>{},l=()=>!1,r=()=>!0,s=()=>(0,i.useSyncExternalStore)(a,l,r)},261037:(e,t,n)=>{"use strict";n.d(t,{GW:()=>a,RL:()=>i,s4:()=>l});let i="ios",a="android",l="ipad"},644797:(e,t,n)=>{"use strict";n.d(t,{W:()=>c,r:()=>d});var i=n(667294),a=n(573706),l=n(498490),r=n(297728),s=n(785893);let{Provider:o,useHook:d}=(0,l.Z)("VideoPlayer");function c({children:e}){let{logContextEvent:t,logImpression:n}=(0,a.v)(),{checkExperiment:l}=(0,r.F)(),[d,c]=(0,i.useState)(!1),[u,p]=(0,i.useState)([]),[m,g]=(0,i.useState)([]),[h,_]=(0,i.useState)({}),y=l("web_ads_mrc_video_impression").anyEnabled,f=e=>{_(t=>({...t,[e]:!0}))},x=(0,i.useCallback)(e=>{if(18===e.event_type&&e.event_data?.pinImpressions?.length){let{isNativeVideoAndWatchable:t}=e.event_data.pinImpressions[0],n=(e.aux_data?.commerce_data||"").includes("story_pin_id");y&&(t||n)&&p(t=>[...t,e].slice(-1e3))}},[y]),b=(0,i.useCallback)(e=>{18===e.eventType&&y&&g(t=>[...t,e].slice(-1e3))},[y]),v=e=>{let{time:t}=e.event_data.pinImpressions[0];return{...e,event_data:{...e.event_data,pinImpressions:[{...e.event_data.pinImpressions[0],isMrcBtr:!0,endTime:t,renderDuration:0}]}}},P=e=>{if(e.eventData){let{time:t}=e.eventData;return{...e,eventData:{...e.eventData,isMrcBtr:!0,endTime:t??0}}}return null};(0,i.useEffect)(()=>{let e=u.filter(e=>{let{pinIdStr:n}=e.event_data.pinImpressions[0];return!h[n]||!y||(t(v(e)),!1)});e.length!==u.length&&p(e)},[u,y,t,h]),(0,i.useEffect)(()=>{let e=m.filter(e=>{let t=e.eventData?.pinIdStr;if(!t)return!1;if(h[t]&&y){let t=P(e);return t&&n(t),!1}return!0});e.length!==m.length&&g(e)},[m,y,n,h]);let k=(0,i.useMemo)(()=>({captionsEnabled:d,logMrcVideoAdImpressionOnPlay:b,logMrcVideoAdEventOnPlay:x,setCaptionsEnabled:c,setVideoPlayed:f,videosPlayed:h}),[d,x,b,h]);return(0,s.jsx)(o,{value:k,children:e})}},599582:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(819239),a=n(830017);function l(e){let{appUI:{videosAutoplaying:t}}=(0,a.I)();return(0,i.Z)(e,t)}},819239:(e,t,n)=>{"use strict";function i(e,t){let{organicVideosAutoplaying:n,promotedVideosAutoplaying:i}=t,a={...n,...i};return!!a[e]&&!a[e].paused}n.d(t,{Z:()=>i})},673687:(e,t,n)=>{"use strict";n.d(t,{$f:()=>a,Cy:()=>o,DR:()=>i,Fm:()=>s,bR:()=>r,gJ:()=>l,lG:()=>d});let i=1,a=2,l=1e3,r=1e3,s=1e3,o=Object.freeze({DEFAULT:0,LOAD_START:1,LOADED_METADATA:2,LOADED_DATA:3,PLAYING:4,PAUSED:5,SEEKING:6,STALLING:7,FAILED:8,ENDED:9}),d=Object.freeze({MEDIA_ERR_ABORTED:1,MEDIA_ERR_NETWORK:2,MEDIA_ERR_DECODE:3,MEDIA_ERR_SRC_NOT_SUPPORTED:4})},590238:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(400416),a=n(256277);function l(e,t){let{auxData:n,clientTrackingParams:l,hasPin:r,pinId:s,isThirdPartyAd:o}=t||{},d={pin_id:s,check_only:!0,client_tracking_params:r?l:void 0,url:e,aux_data:JSON.stringify(n)};o&&(d.third_party_ad=s,delete d.pin_id),(0,i.Z)({url:"/v3/offsite/",data:d}).then(t=>{if(t&&t.resource_response&&!t.resource_response.error){let{resource_response:e}=t,{redirect_status:n,url:i}=e.data;if(!["blocked","suspicious","porn"].includes(n)){if(window.Windows.Foundation&&window.Windows.System&&window.Windows.System.Launcher&&window.Windows.System.Launcher.launchUriAsync){let e=new window.Windows.Foundation.Uri(i);window.Windows.System.Launcher.launchUriAsync(e)}return}}(0,a.Z)(e,{params:r?{pinId:s,clientTrackingParams:l,auxData:n,isThirdPartyAd:o}:{pinId:s}})})}},830017:(e,t,n)=>{"use strict";n.d(t,{g:()=>p,I:()=>u});var i=n(667294),a=n(498490),l=n(983272),r=n(605388);let s={appInFocus:!0,footerPlusButtonVisible:!0,isAutoplay:!1,showTypeaheadOverlay:!1,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,organicVideosAutoplaying:{},promotedVideosAutoplaying:{}},viewportSize:"lg"},o=(e=s,t)=>{if("TOGGLE_TYPEAHEAD_OVERLAY"===t.type&&e.showTypeaheadOverlay!==t.payload)return{...e,showTypeaheadOverlay:t.payload};if("SET_CURRENT_VIDEO"===t.type){let{payload:n}=t,{pinId:i,isPromoted:a,currentTime:l}=n,{videosAutoplaying:s}=e,{currentlyPlayingOrganicVideoId:o,promotedVideosAutoplaying:d,organicVideosAutoplaying:c}=s,u=(0,r.Z)(d),p=(0,r.Z)(c);return!a&&o?e:(a?u[i]={pinId:i,currentTime:l,paused:!1}:p[i]={pinId:i,currentTime:l,paused:!1},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:a?o:i,promotedVideosAutoplaying:u,organicVideosAutoplaying:p}})}if("SET_IS_AUTOPLAY"===t.type&&e.isAutoplay!==t.payload)return{...e,isAutoplay:t.payload};if("PAUSE_CURRENT_VIDEO"===t.type){let{payload:n}=t,{pinId:i,isPromoted:a,currentTime:l}=n,{videosAutoplaying:s}=e,{promotedVideosAutoplaying:o,organicVideosAutoplaying:d}=s,c=(0,r.Z)(o),u=(0,r.Z)(d);return a?c[i]={...c[i],paused:!0,currentTime:l}:u[i]={...u[i],paused:!0,currentTime:l},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,promotedVideosAutoplaying:c,organicVideosAutoplaying:u}}}if("SET_APP_FOCUS_STATE"===t.type&&e.appInFocus!==t.payload)return{...e,appInFocus:t.payload};if("SET_VIEWPORT_SIZE"===t.type&&e.viewportSize!==t.payload)return{...e,viewportSize:t.payload};if("SET_FOOTER_VISIBILITY_STATE"===t.type&&e.footerPlusButtonVisible!==t.payload)return{...e,footerPlusButtonVisible:t.payload};return e};var d=n(785893);let{Provider:c,useHook:u}=(0,a.Z)("AppUI");function p({children:e}){let[t,n]=(0,i.useReducer)(o,s),a=(0,i.useCallback)(e=>n({type:"PAUSE_CURRENT_VIDEO",payload:e}),[]),r=(0,i.useCallback)(e=>n({type:"SET_APP_FOCUS_STATE",payload:e}),[]),u=(0,i.useCallback)(e=>n({type:"SET_CURRENT_VIDEO",payload:e}),[]),p=(0,i.useCallback)(e=>n({type:"SET_FOOTER_VISIBILITY_STATE",payload:e}),[]),m=(0,i.useCallback)(e=>n({type:"SET_IS_AUTOPLAY",payload:e}),[]),g=(0,i.useCallback)(e=>n({type:"SET_VIEWPORT_SIZE",payload:e}),[]),h=(0,i.useCallback)(e=>n({type:"TOGGLE_TYPEAHEAD_OVERLAY",payload:e}),[]),_=(0,i.useMemo)(()=>({pauseAutoplay:a,setCurrentVideo:u,setFooterPlusButtonVisible:p,setIsAutoplay:m,setViewportSize:g,toggleTypeaheadOverlay:h,setAppFocusState:r,appUI:t}),[a,u,p,m,g,h,r,t]);return(0,i.useEffect)(()=>{l.Z.onSessionResume(()=>{r(!0)}).onSessionPause(()=>{r(!1)})},[r]),(0,d.jsx)(c,{value:_,children:e})}},183637:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f,styles:()=>_});var i,a=n(667294);n(167912);var l=n(883119),r=n(939731),s=n(889870),o=n(47848),d=n(144326),c=n(343583),u=n(252611),p=n(151958),m=n(821892),g=n(503237),h=n(785893);let _={container:{backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:18,height:"32px",maxWidth:"132px"},containerHovered:{backgroundColor:"rgba(255, 255, 255, 1.0)"},containerTruncated:{maxWidth:"87px"},text:{color:"#333333"}},y=void 0!==i?i:i=n(123870);function f({clientTrackingParams:e,pinKey:t,sourceLinkStyle:n,surface:i,url:f}){let x=(0,d.ZP)(),[b,v]=(0,a.useState)(!1),P=(0,o.Z)(y,t),k=P.carouselData?.index||0,S=function({adDestinationUrl:e,domain:t,carouselDataId:n,carouselSlotLink:i}){let a=t||"";return e&&(a=(0,g.Z)(e).hostname||""),n&&(a=i&&(0,g.Z)(i).hostname||""),a.replace("www.","")}({adDestinationUrl:P.adDestinationUrl,domain:P.domain,carouselDataId:P.carouselData?.entityId,carouselSlotLink:P.carouselData?.carouselSlots?.[k].link}),w=(0,p.Z)(P)(),{slotIndex:I}=(0,m.E)(),T=(0,u.Z)(P,e),A=(0,c.Z)({href:{pathname:f,state:{trackingParams:e}},clientTrackingParams:e,target:"blank",externalData:{auxData:w,pin:P&&{advertiserId:P.advertiserId,attributionSourceId:P.attributionSourceId,board:P.board&&{url:P.board.url},campaignId:P.campaignId,entityId:P.entityId,isDownstreamPromotion:P.isDownstreamPromotion,isPromoted:P.isPromoted,pinner:P.pinner&&{username:P.pinner.username},pinPromotionId:P.pinPromotionId,promoter:P.promoter&&{entityId:P.promoter.entityId},storyPinDataId:P.storyPinDataId,trackingParams:P.trackingParams},surface:i}});return"icon-only"===n?(0,h.jsx)(l.I_,{accessibilityLabel:x._('link', 'Website url link', 'Website url link'),bgColor:"white",href:f,icon:"arrow-up-right",iconColor:"darkGray",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),T(),A({event:e})},rel:"nofollow",size:"sm"}):(0,h.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{..._.container,...b?_.containerHovered:Object.freeze({}),..."truncated-text"===n?_.containerTruncated:Object.freeze({})}},"data-test-id":"pinrep-source-link",onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),position:"relative",children:(0,h.jsx)(s.Z,{clientTrackingParams:e,hovered:b,pinKey:P,slotIndex:I,viewType:1,children:(0,h.jsx)(l.Tg,{fullWidth:!1,href:(0,r.Z)(f),onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),T(),A({event:e})},rel:"nofollow",rounding:4,children:(0,h.jsxs)(l.xu,{alignItems:"baseline",dangerouslySetInlineStyle:{__style:_.text},display:"flex",justifyContent:"between",children:[(0,h.jsx)(l.xu,{display:"flex",flex:"none",marginBottom:3,marginStart:3,marginTop:3,children:(0,h.jsx)(l.JO,{accessibilityLabel:x._('link', 'Website url link', 'Website url link'),color:"default",icon:"arrow-up-right",size:9})}),(0,h.jsx)(l.xu,{alignItems:"center",display:"flex",height:18,marginEnd:3,marginStart:2,overflow:"hidden",children:(0,h.jsx)(l.xv,{color:"default",lineClamp:1,size:"200",weight:"bold",children:S})})]})})})})}},511444:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var i,a=n(667294);n(167912);var l=n(883119),r=n(939731),s=n(573706),o=n(400416),d=n(47848),c=n(144326),u=n(945960),p=n(297728),m=n(596530),g=n(96405),h=n(785893);let _={chip:{marginRight:4,marginTop:4,flex:"1 1 0"},chipInner:{paddingBottom:"100%"},chipContainer:{marginRight:-4,marginTop:-4},visualOverlay:{backgroundColor:u.Dv.LEGO_WASH}},y=void 0!==i?i:i=n(840397);function f({pinKey:e,isMobile:t}){let n=(0,d.Z)(y,e),{checkExperiment:i}=(0,p.F)(),{logContextEvent:u}=(0,s.v)(),{anyEnabled:f}=i("aid_web_collection_pin_data"),x=(0,c.ZP)(),[b,v]=(0,a.useState)(!1),[P,k]=(0,a.useState)(!1),[S,w]=(0,a.useState)(!1),I=[b,P,S],T=[v,k,w],{adData:A,aggregatedPinData:E,collectionPin:C,dpaCreativeType:j,entityId:F}=n,L=A?.ceAltImageSignature,{pinTagsChips:D}=E||{},{itemData:R}=C||{},O=D&&D.length>=3?D.slice(0,3):[],Z=R&&R.length>=3?R.slice(0,3):[],M=t?15927:15926,K=(e,t,n,i)=>{(0,o.Z)({url:"/v3/offsite/",data:{check_only:!1,pin_id:F,url:i,aux_data:JSON.stringify({collection_pin_click_position:e+1,client_creative_type:j,clickthrough_type:n})}}).then(i=>{i&&(u({view_type:3,event_type:8948,component:15166,element:M,object_id_str:F,aux_data:{collection_pin_click_position:e+1,clickthrough_type:n},event_data:{dcoEventData:{clientCreativeType:j,ceAltImageSignature:L}}}),u({view_type:3,event_type:12,component:15166,element:M,object_id_str:F,aux_data:{collection_pin_click_position:e+1,client_creative_type:j,clickthrough_type:n},event_data:{dcoEventData:{clientCreativeType:j,ceAltImageSignature:L}}}),u({view_type:3,event_type:7761,component:15166,element:M,object_id_str:t,aux_data:{collection_pin_click_position:e+1,client_creative_type:j},event_data:{dcoEventData:{clientCreativeType:j,ceAltImageSignature:L},collectionItemEventData:{internalItemId:1e3+e+1,itemSlotIndex:e+1,pinIdStr:F}}}))})};return f&&!j?(0,h.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:_.chipContainer},display:"flex",children:Z.map((e,n)=>{let i=e.images||{},a=(0,h.jsx)(l.Ee,{alt:"",fit:"cover",naturalHeight:i.height??1,naturalWidth:i.width??1,role:"presentation",src:i.url??""}),s=e.link||"",o=(0,h.jsx)(l.I_,{accessibilityLabel:x._('link', 'Website url link', 'Website url link'),bgColor:"white",href:(0,r.Z)(s),icon:"arrow-up-right",iconColor:"darkGray",onClick:({dangerouslyDisableOnNavigation:t})=>{t(),K(n,e.pinId,"clickthrough",s)},rel:"nofollow",size:"xs"});return(0,h.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:_.chip},"data-test-id":"ads-collection-chip",onBlur:()=>T[n](!1),onContextMenu:()=>K(n,e.pinId,"rightClick",s),onFocus:()=>T[n](!0),onMouseEnter:()=>T[n](!0),onMouseLeave:()=>T[n](!1),overflow:"hidden",position:"relative",rounding:2,tabIndex:0,children:[(0,h.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:_.chipInner},"data-test-id":"ads-collection-individual-chip",children:s?(0,h.jsx)(l.Tg,{accessibilityLabel:s,fullWidth:!1,href:(0,r.Z)(s),onTap:({dangerouslyDisableOnNavigation:t})=>{t(),K(n,e.pinId,"clickthrough",s)},rel:"nofollow",rounding:4,target:"blank",children:(0,h.jsx)(l.xu,{bottom:!0,"data-test-id":"image-link-area",left:!0,position:"absolute",right:!0,top:!0,children:(0,h.jsx)(l.zd,{height:"100%",wash:!0,width:"100%",children:a})})}):(0,h.jsx)(l.xu,{bottom:!0,"data-test-id":"image-only-area",left:!0,position:"absolute",right:!0,top:!0,children:(0,h.jsx)(l.zd,{height:"100%",wash:!0,width:"100%",children:a})})}),!t&&I[n]&&(0,h.jsx)(m.Z,{visibility:"visible",children:(0,h.jsx)(g.Z,{additionalStyles:_.visualOverlay})}),!t&&I[n]&&s&&(0,h.jsx)(m.Z,{visibility:"visible",children:(0,h.jsx)(g.Z,{children:(0,h.jsx)(l.xu,{bottom:!0,"data-test-id":"icon-button-link-area",left:!0,marginBottom:1,marginStart:1,position:"absolute",right:!0,children:o})})})]},e.pinId)})}):(0,h.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:_.chipContainer},display:"flex",children:O.map((e,n)=>{let i=e.image||{},a=(0,h.jsx)(l.Ee,{alt:"",fit:"cover",naturalHeight:i.height??1,naturalWidth:i.width??1,role:"presentation",src:i.url??""}),s=e.link||"",o=(0,h.jsx)(l.I_,{accessibilityLabel:x._('link', 'Website url link', 'Website url link'),bgColor:"white",href:(0,r.Z)(s),icon:"arrow-up-right",iconColor:"darkGray",onClick:({dangerouslyDisableOnNavigation:t})=>{t(),K(n,e.entityId,"clickthrough",s)},rel:"nofollow",size:"xs"});return(0,h.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:_.chip},"data-test-id":"ads-collage-chip",onBlur:()=>T[n](!1),onContextMenu:()=>K(n,e.entityId,"rightClick",s),onFocus:()=>T[n](!0),onMouseEnter:()=>T[n](!0),onMouseLeave:()=>T[n](!1),overflow:"hidden",position:"relative",rounding:2,tabIndex:0,children:[(0,h.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:_.chipInner},"data-test-id":"ads-collage-individual-chip",children:s?(0,h.jsx)(l.Tg,{accessibilityLabel:s,fullWidth:!1,href:(0,r.Z)(s),onTap:({dangerouslyDisableOnNavigation:t})=>{t(),K(n,e.entityId,"clickthrough",s)},rel:"nofollow",rounding:4,target:"blank",children:(0,h.jsx)(l.xu,{bottom:!0,"data-test-id":"image-link-area",left:!0,position:"absolute",right:!0,top:!0,children:(0,h.jsx)(l.zd,{height:"100%",wash:!0,width:"100%",children:a})})}):(0,h.jsx)(l.xu,{bottom:!0,"data-test-id":"image-only-area",left:!0,position:"absolute",right:!0,top:!0,children:(0,h.jsx)(l.zd,{height:"100%",wash:!0,width:"100%",children:a})})}),!t&&I[n]&&(0,h.jsx)(m.Z,{visibility:"visible",children:(0,h.jsx)(g.Z,{additionalStyles:_.visualOverlay})}),!t&&I[n]&&s&&(0,h.jsx)(m.Z,{visibility:"visible",children:(0,h.jsx)(g.Z,{children:(0,h.jsx)(l.xu,{bottom:!0,"data-test-id":"icon-button-link-area",left:!0,marginBottom:1,marginStart:1,position:"absolute",right:!0,children:o})})})]},e.entityId)})})}},245022:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),a=n(144326),l=n(785893);function r(){let e=(0,a.ZP)();return(0,l.jsx)(i.xu,{"data-test-id":"product-sold-out-text",children:(0,l.jsx)(i.xv,{color:"subtle",overflow:"normal",size:"200",weight:"normal",children:e._('Sold out', 'pinrep.footer.outOfStock', 'Footer text to indicate that product pin is out of stock.')})})}},94943:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),a=n(144326),l=n(785893);function r(){let e=(0,a.ZP)();return(0,l.jsx)(i.xv,{color:"subtle",overflow:"normal",size:"200",weight:"normal",children:e._('See price on site', 'pinrep.footer.staleProduct', 'Footer text to indicate that is a stale(untrustworthy) product pin.')})}},717648:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(668564);let a={container:{padding:"8px 6px 16px"},productContainer:{paddingTop:"12px",paddingLeft:"6px",paddingRight:"6px",paddingBottom:"16px"},closeupWithinMasonryProductContainer:{paddingTop:"6px",paddingLeft:"8px",paddingRight:"8px",paddingBottom:"16px"},peekCloseupEnabledLargeProductContainer:{paddingTop:"16px",paddingLeft:"16px",paddingRight:"0px",paddingBottom:"16px"},shoppingAffordancesProductContainer:{padding:"0px 6px",paddingBottom:"16px"},imageOnlyAttribution:{hidden:{opacity:0,transition:`opacity ${i.X}ms ease`},visible:{opacity:1}}}},20690:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(667294),a=n(668564);function l(e){let[t,n]=(0,i.useState)(!1),l=(0,a.Z)(t||e,0,a.X);return{isHovering:t,hoverTransitionState:l,handleMouseOver:(0,i.useCallback)(()=>n(!0),[n]),handleMouseLeave:(0,i.useCallback)(()=>n(!1),[n])}}},285899:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(667294),a=n(573706),l=n(821892);function r(e,t){let{logContextEvent:n}=(0,a.v)(),{componentType:r,contextLogData:s,viewParameter:o,viewType:d}=(0,l.E)(),{aux_data:c,view_type:u,view_parameter:p,component:m,clientTrackingParams:g,...h}=t??{};return(0,i.useCallback)(()=>{n({event_type:e,view_type:u||d,view_parameter:p||o,component:m??r,clientTrackingParams:g,...h,aux_data:{...c,...s}})},[n,c,g,h,p,u,m,r,s,e,o,d])}},668564:(e,t,n)=>{"use strict";n.d(t,{X:()=>a,Z:()=>l});var i=n(667294);let a=120;function l(e,t=0,n=a){let[r,s]=(0,i.useState)(e?"active":"inactive");return(0,i.useEffect)(()=>{if(e){if(t){let e=setTimeout(()=>s("active"),t);return()=>{clearTimeout(e)}}s("active")}else{let e=setTimeout(()=>s("inactive"),n);return()=>{clearTimeout(e)}}},[e]),r}},353826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(883119),a=n(144326),l=n(785893);let r={__style:{boxShadow:"inset 0 0 0 2px black,  inset 0 0 0 4px white",transition:"all 300ms ease"}};function s({isSelected:e}){let t=(0,a.ZP)();return(0,l.jsx)(i.xu,{bottom:!0,dangerouslySetInlineStyle:e?r:{},left:!0,position:"absolute",right:!0,rounding:4,top:!0,children:(0,l.jsx)(i.xu,{bottom:!0,padding:3,position:"absolute",right:!0,children:(0,l.jsx)(i.xu,{alignItems:"center",color:e?"dark":"default",dangerouslySetInlineStyle:{__style:{transition:"all 300ms ease"}},display:"flex",height:"24px",justifyContent:"center",rounding:2,width:"24px",children:(0,l.jsx)(i.JO,{accessibilityLabel:t._('Pin is selected to be saved', 'SectionSuggestionPin.iconOnPin.selectedPin', 'accessibility label on an icon'),color:"inverse",icon:"check",size:12})})})})}},821892:(e,t,n)=>{"use strict";n.d(t,{B:()=>i,E:()=>a});let{Provider:i,useHook:a}=(0,n(498490).Z)("trackingParametersContext")},816933:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(883119),a=n(785893);function l({iconAccessibilityLabel:e,icon:t,linkAccessibilityLabel:n,showNavigationIcon:l,text:r,backgroundColor:s="lightGray"}){return(0,a.jsxs)(i.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,a.jsx)(i.xu,{"data-test-id":"ad-reason-icon",children:(0,a.jsx)(i.Sj,{accessibilityLabel:e,bgColor:s,icon:t,iconColor:"darkGray"})}),(0,a.jsx)(i.xu,{alignSelf:"center","data-test-id":"ad-location-targeting-reason",height:"100%",marginStart:2,children:(0,a.jsx)(i.xv,{children:r})}),l&&n&&(0,a.jsx)(i.kC,{direction:"column",justifyContent:"center",children:(0,a.jsx)(i.JO,{accessibilityLabel:n,color:"default",icon:"arrow-forward"})})]})}},331725:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>F,K1:()=>A,we:()=>j,nn:()=>C,zn:()=>E});var i,a=n(667294);n(167912);var l=n(573706),r=n(47848),s=n(730212),o=n(961754),d=n(383399),c=n(883119),u=n(758339),p=n(144326),m=n(240760),g=n(297728),h=n(635258),_=n(566344),y=n(816933),f=n(424583),x=n(785893);function b({brandName:e,language:t,geoRegion:n,geoPostalCode:i,ageBucketMatch:a,localeMatch:l,genderMatch:r,deviceMatch:s,isCustomerListMatched:o,isActAlikeMatched:u,isEngagementMatched:g,isFromGPSLocation:h,gender:_,isFirstPartyAdPersonalizationEnabled:b,isThirdPartyAdPersonalizationEnabled:v,keywordMatch:P}){let k=(0,p.ZP)(),{id:S}=(0,d.Z)(),w=(0,f.mN)()(S??""),I=w?.gender??"",T=""!==a||""!==r&&"unspecified"!==I||""!==s||""!==l||b&&g||b&&u||""!==n||b&&""!==i;return(0,x.jsx)(c.xu,{"data-test-id":"ad-reasons",children:(0,x.jsxs)(c.kC,{direction:"column",flex:"none",gap:{row:0,column:4},children:[!b&&(0,x.jsx)(y.Z,{icon:"pinterest",iconAccessibilityLabel:k._('Icon for ad targeting context', 'app.common.react.components.PinRep.components.AdReasons.context', 'Icon for ad targeting context'),text:(0,m.nk)(k._('Based on the context of the content you see in a session {{ onPinterest }}', 'app.common.react.components.PinRep.components.AdReasonsModal.context', 'Ad explanation for targeting context of content, onPinterest: on Pinterest Platform'),{onPinterest:(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:"on Pinterest"},"ad-reasons-platform-bucket")})}),""!==P&&(0,x.jsx)(y.Z,{icon:"search",iconAccessibilityLabel:k._('Icon for ad targeting keyword search', 'app.common.react.components.PinRep.components.AdReasons.keywordSearchIcon', 'Icon for ad targeting keyword search'),text:(0,m.nk)(k._('Because you searched for {{ keyword }}', 'app.common.react.components.PinRep.components.AdReasonsModal.keywordSearch', 'Ad explanation for targeting keyword search, keyword: Search keyword'),{keyword:(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:P},"ad-reasons-keyword-bucket")})}),(b||v)&&(0,x.jsx)(y.Z,{icon:"cog",iconAccessibilityLabel:k._('Icon for ad targeting user settings', 'app.common.react.components.PinRep.components.AdReasons.settings', 'Icon for ad targeting user settings'),text:k._('Depending on your privacy settings, because of your activities on and/or off Pinterest', 'app.common.react.components.PinRep.components.AdReasonsModal.settings', 'Ad explanation for targeting user settings')}),T&&(0,x.jsx)(y.Z,{icon:"person",iconAccessibilityLabel:k._('Icon for ad targeting advertiser name', 'app.common.react.components.PinRep.components.AdReasons.advertiserName', 'Icon for ad targeting advertiser name'),text:(0,m.nk)(k._('Because {{ advertiserName }} is trying to reach people:', 'app.common.react.components.PinRep.components.AdReasonsModal.advertiserName', 'Ad explanation for targeting advertiser name, advertiserName: advertiser name'),{advertiserName:(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-advertiserName-bucket")})}),(0,x.jsx)(c.xu,{marginStart:8,children:(0,x.jsxs)(c.aV,{label:(0,x.jsx)(c.xv,{children:(0,m.XB)({text:k._('Because {{ advertiserName }} is trying to reach people:', 'app.common.react.components.PinRep.components.AdReasonsModal.advertiserName', 'Ad explanation for targeting advertiser name, advertiserName: advertiser name'),markers:{advertiserName:e}})}),labelDisplay:"hidden",type:"unordered",children:[""!==a&&(0,x.jsx)(c.aV.Item,{text:(0,x.jsx)(c.xv,{children:(0,m.XB)({text:k._('Who have set their age within the <strong id="1">{{ ageBucketMatch }}</strong> age range', 'waista.modal.criteria.list.ageBucketRangeMatch', 'Ad explanation for targeting age range, ageBucketMatch: Users age range'),markers:{ageBucketMatch:a??""},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-age-bucket")}})})}),!b&&""!==l&&(0,x.jsx)(c.aV.Item,{text:(0,x.jsx)(c.xv,{children:(0,m.XB)({text:k._('Who have set their language to <strong id="1">{{ language }}</strong>', 'app.common.react.components.PinRep.components.AdReasonsModal.languageMatch', 'Ad explanation for targeting language, language: Users language'),markers:{language:t??""},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-language")}})})}),b&&""!==l&&(0,x.jsx)(c.aV.Item,{text:(0,x.jsx)(c.xv,{children:(0,m.XB)({text:k._('Primary language is <strong id="1">{{ language }}</strong>', 'app.common.react.components.PinRep.components.AdReasonsModal.primarylLanguageMatch', 'Ad explanation for targeting language, language: Users language'),markers:{language:t??""},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-language")}})})}),!b&&""!==r&&"unspecified"!==I&&(0,x.jsx)(c.aV.Item,{text:(0,x.jsx)(c.xv,{children:(0,m.XB)({text:k._('Who have set their gender to <strong id="1">{{ gender }}</strong>', 'app.common.react.components.PinRep.components.AdReasonsModal.setGenderMatch', 'Ad explanation for targeting gender, gender: Users gender'),markers:{gender:_},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-gender")}})})}),b&&""!==r&&"unspecified"!==I&&(0,x.jsx)(c.aV.Item,{text:(0,x.jsx)(c.xv,{weight:"bold",children:_})}),""!==s&&(0,x.jsx)(c.aV.Item,{text:k._('With your device type', 'app.common.react.components.PinRep.components.AdReasonsModal.deviceMatch', 'Ad explanation for targeting device')}),!b&&""!==n&&(0,x.jsx)(c.aV.Item,{text:(0,x.jsx)(c.xv,{children:(0,m.XB)({text:k._('In <strong id="1">{{ country }}</strong>', 'app.common.react.components.PinRep.components.AdReasonsModal.countryMatch', 'Ad explanation for targeting country, country: Users country'),markers:{country:n},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-country")}})})}),b&&""!==n&&(0,x.jsx)(c.aV.Item,{text:(0,x.jsx)(c.xv,{children:(0,m.XB)({text:k._('Based in <strong id="1">{{ geoRegion }}</strong>', 'app.common.react.components.PinRep.components.AdReasonsModal.geoRegionMatch', 'Ad explanation for targeting geoRegion, geoRegion: Users geoRegion'),markers:{geoRegion:n},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-geoRegion")}})})}),b&&""!==i&&(0,x.jsx)(c.aV.Item,{text:(0,x.jsx)(c.xv,{children:(0,m.XB)({text:k._('Based in <strong id="1">{{ geoPostalCode }}</strong>', 'app.common.react.components.PinRep.components.AdReasonsModal.geoPostalCodeMatch', 'Ad explanation for targeting geoPostalCode, geoPostalCode: Users geoPostalCode'),markers:{geoPostalCode:i},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-geoPostalCode")}})})}),b&&g&&(0,x.jsx)(c.aV.Item,{text:k._('Who have interacted with their content on Pinterest', 'app.common.react.components.PinRep.components.AdReasonsModal.engagementMatch', 'Ad explanation for targeting engagement')}),b&&u&&(0,x.jsx)(c.aV.Item,{text:(0,x.jsx)(c.xv,{children:(0,m.XB)({text:k._('With similar demographic or interests as other <strong id="1">{{ brandName }}</strong> customers', 'app.common.react.components.PinRep.components.AdReasonsModal.actAlikeMatch', 'Ad explanation for targeting act alike, brandName: brand name'),markers:{brandName:e},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-act-alike")}})})})]})}),b&&o&&(0,x.jsx)(y.Z,{icon:"menu",iconAccessibilityLabel:k._('Icon for ad targeting user on an audience list', 'app.common.react.components.PinRep.components.AdReasons.listIcon', 'Icon for ad targeting customer list'),text:(0,m.nk)(k._('Because you are on a list provided by {{ brandName }}', 'app.common.react.components.PinRep.components.AdReasonsModal.onCustomerListTargeting', 'Ad explanation for targeting customer list , brandName: promoter name'),{brandName:(0,x.jsx)(c.xv,{inline:!0,weight:"bold",children:e},"ad-reasons-customer-list")})}),b&&h&&(0,x.jsx)(y.Z,{icon:"location",iconAccessibilityLabel:k._('Icon for ad targeting user on GPS', 'app.common.react.components.PinRep.components.AdReasons.GPS', 'Icon for ad targeting GPS'),text:k._('Because of your GPS Location', 'app.common.react.components.PinRep.components.AdReasonsModal.GPSLocation', 'Ad explanation for targeting GPS')})]})})}var v=n(107950);function P({onDismiss:e,brandName:t,country:n,language:i,geoRegion:r,geoPostalCode:s,ageBucketMatch:o,localeMatch:d,interestMatch:f,genderMatch:P,deviceMatch:k,isCustomerListMatched:S,isActAlikeMatched:w,isEngagementMatched:I,isExpandTargetingMatched:T,isFromGPSLocation:A,isVisitorMatched:C,isShoppingProspectingMatched:j,isPlPersonaMatched:F,isFirstPartyAdPersonalizationEnabled:L,isThirdPartyAdPersonalizationEnabled:D,keywordMatch:R,thirdPartyAdAttributes:O,digitalMediaSourceType:Z}){let{logContextEvent:M}=(0,l.v)(),{checkExperiment:K}=(0,g.F)(),N=K("web_waista_genai").anyEnabled,z=(0,p.ZP)(),B=E(P,z),U=S||I||w||T||A||C||F||j||""!==o||""!==d||""!==B||""!==r||""!==s||""!==R,H=O?.isEligibleForPromotedPartnership??!1,G={[v.s.TRAINED_ALGORITHMIC_MEDIA]:z._('This ad was made with AI', 'app.common.react.components.PinRep.components.made.with.AI.disclosure', 'Ad explanation for ad made with AI'),[v.s.COMPOSITE_WITH_TRAINED_ALGORITHMIC_MEDIA]:z._('This ad was modified with AI', 'app.common.react.components.PinRep.components.modified.with.AI.disclosure', 'Ad explanation for ad modified with AI'),[v.s.MULTI_PIN_TRAINED_ALGORITHMIC_MEDIA]:z._('Parts of this ad were made with AI', 'app.common.react.components.PinRep.components.part.made.with.AI.disclosure', 'Ad explanation for parts of ad made with AI')},V=N&&Z&&G[Z];return(0,a.useEffect)(()=>{V&&M({view_type:155,event_type:13,component:13756,element:15920})},[M,V]),(0,x.jsx)(u.ZP,{accessibilityModalLabel:z._('Why am I seeing this Ad?', 'app.common.react.components.PinRep.components.AdReasonsModal', 'Modal for explaining the reasons an advertiser is targeting a user'),onDismiss:e,children:(0,x.jsxs)(c.xu,{paddingX:8,paddingY:6,children:[(0,x.jsxs)(c.xu,{display:"flex",justifyContent:"center",marginBottom:6,position:"relative",children:[(0,x.jsx)(c.xu,{left:!0,position:"absolute",children:(0,x.jsx)(c.hU,{accessibilityLabel:z._('Close', 'app.common.react.components.PinRep.components.AdReasonsModal.closeModal', 'Close ad reasons modal'),icon:"cancel",iconColor:"darkGray",onClick:()=>{M({event_type:102,element:11925,component:13756}),e()},size:"sm"})}),(0,x.jsx)(c.X6,{align:"center",size:"500",children:z._('Why you\'re seeing this ad', 'Heading for promoted Pins explanation', 'Heading for promoted pins explanation, WAISTA ')})]}),(0,x.jsxs)(c.xu,{children:[(0,x.jsxs)(c.kC,{direction:"column",gap:{row:0,column:4},children:[U&&H&&(0,x.jsx)(c.xu,{"data-test-id":"waista-reason-pre-text-partnership",marginBottom:4,children:(0,x.jsx)(c.xv,{children:(0,m.nk)(z._('{{ promotedPartnershipAdvertiserName }} paid, through a partnership with {{ promotedPartnershipAttributionName }}, to have this Pin show up where you\'d be more likely to notice it. Based on what you\'ve told us or other information, we think you fit some of those groups:', 'app.common.react.components.PinRep.components.AdReasonsModal.WAISTAaudienceExplanation', 'Text informing the user about who should be the advertiser\'s target audience, for WAISTA promotedPartnershipAdvertiserName: Name of advertiser, promotedPartnershipAttributionName:Name of promoted partner'),{promotedPartnershipAdvertiserName:O?.promotedPartnershipAdvertiserName,promotedPartnershipAttributionName:O?.promotedPartnershipAttributionName})})}),U&&!H&&(0,x.jsx)(c.xu,{"data-test-id":"waista-reason-pre-text",marginBottom:4,children:(0,x.jsx)(c.xv,{children:z._('You may be seeing this ad:', 'app.common.react.components.PinRep.components.AdReasonsModal.WAISTAReasonExplanation', 'text informing below will be WAISTA explanation')})})]}),(0,x.jsx)(c.xu,{"data-test-id":"ad-reasons",children:(0,x.jsxs)(c.kC,{direction:"column",flex:"none",gap:{row:0,column:4},children:[(0,x.jsx)(b,{ageBucketMatch:o,brandName:t,country:n,deviceMatch:k,gender:B,genderMatch:P,geoPostalCode:s,geoRegion:r,interestMatch:f,isActAlikeMatched:w,isCustomerListMatched:S,isEngagementMatched:I,isExpandTargetingMatched:T,isFirstPartyAdPersonalizationEnabled:L,isFromGPSLocation:A,isPlPersonaMatched:F,isShoppingProspectingMatched:j,isThirdPartyAdPersonalizationEnabled:D,isVisitorMatched:C,keywordMatch:R,language:i,localeMatch:d}),U&&(0,x.jsx)(c.xu,{marginBottom:1,children:(0,x.jsx)(c.xv,{children:z._('There could also be more factors not listed here.', 'app.common.react.components.PinRep.components.AdReasonsModal.moreFactorsText', 'text informing there could also be more factors')})}),U&&(0,x.jsx)(c.xu,{marginBottom:1,children:(0,x.jsx)(c.xv,{children:(0,m.nk)(z._('If this isn\'t right, {{ changeUserSettings }}', 'app.common.react.components.PinRep.components.AdReasonsModal.changeUserSettingsText', 'Text explaining how to update personal information, changeUserSettings: link to personal settings'),{changeUserSettings:(0,x.jsx)(c.xv,{inline:!0,weight:"normal",children:(0,x.jsx)(c.rU,{display:"inline",href:`${_.C0}${h.AHp}`,onClick:()=>{M({event_type:101,component:13756,element:13361})},target:"blank",children:z._('update your personal information', 'app.common.react.components.PinRep.components.AdReasonsModal.changeUserSettings', 'Link for updating personal information')})},"ad-reasons-change-user-settings")})})}),V&&(0,x.jsx)(c.xu,{children:(0,x.jsx)(y.Z,{backgroundColor:"white",icon:"sparkle",iconAccessibilityLabel:z._('Icon for genAI WAISTA disclosure', 'app.common.react.components.PinRep.components.AI.waista.disclosure', 'Icon for  genAI WAISTA disclosure'),text:G[Z]})})]})}),(0,x.jsxs)(c.kC,{direction:"column",gap:{row:0,column:1},children:[(0,x.jsx)(c.xu,{"data-test-id":"pins-ads",marginBottom:1,marginTop:1,children:(0,x.jsx)(c.X6,{size:"400",children:z._('Ads on Pinterest', 'app.common.react.components.PinRep.components.AdReasonsModal.adsOnPinterestHeading', 'Text for explaining Ads on Pinterest')})}),(0,x.jsx)(c.xu,{marginBottom:4,children:(0,x.jsx)(c.xv,{children:(0,m.nk)(z._('Review your {{adPreferencesLink}} to change your ad preferences.', 'app.common.react.components.PinRep.components.AdReasonsModal.change.adPreferencesText', 'Text showing where to change your ad preferences, adPreferencesLink: link to privacy settings'),{adPreferencesLink:(0,x.jsx)(c.xu,{"data-test-id":"ad-reasons-review-ad-preferences",display:"inlineBlock",children:(0,x.jsx)(c.xv,{inline:!0,weight:"normal",children:(0,x.jsx)(c.rU,{display:"inline",href:`${_.C0}${h.Gxc}`,onClick:()=>{M({event_type:101,component:13756,element:13401})},target:"blank",children:z._('Privacy Settings', 'app.common.react.components.PinRep.components.AdReasonsModal.privacy.settings', 'Privacy settings link')})},"ad-reasons-review-ad-preferences")})})})}),(0,x.jsx)(c.xu,{"data-test-id":"privacy-link",marginBottom:4,children:(0,x.jsx)(c.xv,{children:(0,m.nk)(z._('For more about how we collect and use data, read our {{ privacyPolicyLink }}', 'app.common.react.components.PinRep.components.AdReasonsModal.readPrivacyPolicyText', 'Text explaining how we collect and use data, privacyPolicyLink: link to privacy policy Page'),{privacyPolicyLink:(0,x.jsx)(c.xu,{"data-test-id":"ad-reasons-privacy-policy",children:(0,x.jsx)(c.xv,{inline:!0,weight:"normal",children:(0,x.jsx)(c.rU,{display:"inline",href:h.R_9,onClick:()=>{M({event_type:101,component:13756,element:13402})},target:"blank",children:z._('Privacy Policy', 'app.common.react.components.PinRep.components.AdReasonsModal.privacyPolicyLinkUrl', 'Privacy policy link about how data is collected and used')})},"ad-reasons-privacy-policy")})})})}),(0,x.jsx)(c.xu,{marginBottom:4,children:(0,x.jsx)(c.xv,{children:(0,m.nk)(z._('To stop seeing content from an advertiser, {{ blockAccounts }}', 'app.common.react.components.PinRep.components.AdReasonsModal.privacyPolicyText', 'Text explaining how to block an advertiser profile, blockAccounts: link to how to block accounts'),{blockAccounts:(0,x.jsx)(c.xu,{"data-test-id":"ad-reasons-block-accounts",children:(0,x.jsx)(c.xv,{inline:!0,weight:"normal",children:(0,x.jsx)(c.rU,{display:"inline",href:h.K_Y,onClick:()=>{M({event_type:101,component:13756,element:12058})},target:"blank",children:z._('learn how to block accounts', 'app.common.react.components.PinRep.components.AdReasonsModal.blockAccountLink', 'Link for how to block accounts')})},"ad-reasons-block-accounts")})})})})]})]})]})})}let k=void 0!==i?i:i=n(447057),S=e=>e._('Female', 'waista.modal.attribute.female', 'Gender attribute for female'),w=e=>e._('Male', 'waista.modal.attribute.male', 'Gender attribute for male'),I=e=>e._('Web', 'waista.modal.attribute.web', 'device attribute for web'),T=e=>e._('Mobile Web', 'waista.modal.attribute.mWeb', 'device attribute for mobile web');function A(e,t){let{name:n=""}=e.find(e=>e.key===t)??{};return n}function E(e,t){return"FEMALE"===e?S(t):"MALE"===e?w(t):""}function C(e,t){return"AppType_WEB"===e||"AppType_WEB_DENZEL"===e?I(t):"AppType_WEB_MOBILE"===e?T(t):""}function j(e,t){let{name:n=""}=e.find(e=>e.key===t)??{};return n}function F({pinKey:e,onDismiss:t}){let{logContextEvent:n}=(0,l.v)(),{locale:i}=(0,s.B)(),{country:c=""}=(0,d.Z)(),u=(0,o.Z)({name:"CountriesResource",options:{hasEmptyState:!0}}),p=(0,o.Z)({name:"LocalesResource"}),m=(0,r.Z)(k,e);(0,a.useEffect)(()=>{n({view_type:155,event_type:120,component:13756})},[n]);let g=m?.adTargetingAttribution?.isFirstPartyAdPersonalizationEnabled??!1,h=m?.adTargetingAttribution?.isThirdPartyAdPersonalizationEnabled??!1,{promoter:_,isEligibleForPromotedPartnership:y,promotedPartnershipAttributionName:f,promotedPartnershipAdvertiserName:b}=m??{},{isCustomerListMatched:v=!1,isActalikeMatched:S=!1,isEngagementMatched:w=!1,isExpandTargetingMatched:I=!1,isFromGpsLocation:T=!1,isVisitorMatched:E=!1,isShoppingProspectingMatched:C=!1,isPlPersonaMatched:F=!1,matchedAgeBucket:L="",matchedLocale:D="",matchedInterest:R="",matchedGender:O="",matchedDevice:Z="",matchedKeyword:M="",geoRegion:K="",geoPostalCode:N=""}=function(e=null,t=4){return e&&Object.keys(e).filter(t=>"boolean"==typeof e[t]||"string"==typeof e[t]).filter(t=>!1!==e[t]&&""!==e[t]).slice(0,t).reduce((t,n)=>({...t,[n]:e[n]}),{})}({isCustomerListMatched:m?.adTargetingAttribution?.isCustomerListMatched??!1,isActalikeMatched:m?.adTargetingAttribution?.isActalikeMatched??!1,isEngagementMatched:m?.adTargetingAttribution?.isEngagementMatched??!1,isExpandTargetingMatched:m?.adTargetingAttribution?.isExpandTargetingMatched??!1,isFromGpsLocation:m?.adTargetingAttribution?.isFromGpsLocation??!1,isVisitorMatched:m?.adTargetingAttribution?.isVisitorMatched??!1,isShoppingProspectingMatched:m?.adTargetingAttribution?.isShoppingProspectingMatched??!1,isPlPersonaMatched:m?.adTargetingAttribution?.isPlPersonaMatched??!1,matchedAgeBucket:m?.adTargetingAttribution?.matchedAgeBucket??"",matchedLocale:m?.adTargetingAttribution?.matchedLocale??"",matchedInterest:m?.adTargetingAttribution?.matchedInterest??"",matchedGender:m?.adTargetingAttribution?.matchedGender??"",matchedDevice:m?.adTargetingAttribution?.matchedDevice??"",matchedKeyword:m?.adTargetingAttribution?.matchedKeyword??"",geoRegion:m?.adTargetingAttribution?.geoRegion??"",geoPostalCode:m?.adTargetingAttribution?.geoPostalCode??"",digitalMediaSourceType:m?.digitalMediaSourceType??null})??{},z=_?.fullName??"",B=A(u.data??[],c),U=j(p.data??[],i),H=_?.username??"";return(0,x.jsx)(P,{ageBucketMatch:L,brandName:z,country:B,deviceMatch:Z,digitalMediaSourceType:m?.digitalMediaSourceType,genderMatch:O,geoPostalCode:N,geoRegion:K,interestMatch:R,isActAlikeMatched:S,isCustomerListMatched:v,isEngagementMatched:w,isExpandTargetingMatched:I,isFirstPartyAdPersonalizationEnabled:g,isFromGPSLocation:T,isPlPersonaMatched:F,isShoppingProspectingMatched:C,isThirdPartyAdPersonalizationEnabled:h,isVisitorMatched:E,keywordMatch:M,language:U,localeMatch:D,onDismiss:t,thirdPartyAdAttributes:{isEligibleForPromotedPartnership:y,promotedPartnershipAttributionName:f,promotedPartnershipAdvertiserName:b},userName:H})}},763385:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i,a=n(545007);n(167912);var l=n(883119),r=n(129666),s=n(47848),o=n(144326),d=n(700337),c=n(821892),u=n(359422),p=n(409065),m=n(785893);function g({direction:e,swipeHandler:t}){let n=(0,o.ZP)(),i={left:n._('View Previous', 'Button to advance carousel to the previous image', 'Button to advance carousel to the previous image'),right:n._('View Next', 'Button to advance carousel to the next image', 'Button to advance carousel to the next image')};return(0,m.jsx)(l.xu,{bottom:!0,left:"left"===e,position:"absolute",right:"right"===e,top:!0,children:(0,m.jsx)(l.iP,{fullHeight:!0,fullWidth:!0,onTap:t,children:(0,m.jsx)(l.xu,{alignItems:"center","data-test-id":`carousel-slider-${e}`,display:"flex",height:"100%",justifyContent:"center",padding:2,width:"100%",children:(0,m.jsx)(l.JO,{accessibilityLabel:i[e],color:"inverse",icon:{left:"arrow-back",right:"arrow-forward"}[e]})})})})}let h=void 0!==i?i:i=n(171431);function _({handleCarouselSwipe:e,pinKey:t}){let n=(0,s.Z)(h,t),{entityId:i}=n,o=(0,u.Z)(n),{componentType:_,viewParameter:y,viewType:f}=(0,c.E)(),x=(0,a.I0)(),b=(t,n)=>{e?.(n),x((0,p.yR)(t,n))},v=(0,r.Z)(n);if(!v)return null;let{carouselSlots:P}=v,k=v.index??0;function S(e){return()=>{let t="left"===e?k-1:k+1;b(i,t),o({pinId:i,currentIndex:k??0,nextIndex:t,carouselData:{carouselSlots:P.map(({slotId:e})=>({id:e})),entityId:v?.carouselId??""},viewParameter:y,viewType:f,componentType:_})}}return(0,m.jsxs)(l.xu,{height:"100%",position:"relative",width:"100%",children:[k>0&&(0,m.jsx)(d.Z,{children:(0,m.jsx)(g,{direction:"left",swipeHandler:S("left")})}),k<P.length-1&&(0,m.jsx)(d.Z,{children:(0,m.jsx)(g,{direction:"right",swipeHandler:S("right")})})]})}},596530:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),a=n(668564),l=n(785893);function r({children:e,fadeInDuration:t=0,fadeOutDuration:n=a.X,visibility:r}){return"none"!==r&&e?(0,l.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{hidden:{opacity:0,transition:n?`opacity ${n}ms ease`:void 0},visible:{opacity:1,transition:t?`opacity ${t}ms ease`:void 0}}[r]},children:e}):null}},356972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(883119),a=n(144326),l=n(945960),r=n(730212),s=n(785893);let o={SELECTED:"#000000",NOT_SELECTED:"#ffffff"};function d({selected:e=!1}){let t=(0,a.ZP)(),{isRTL:n}=(0,r.B)();return(0,s.jsx)(i.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{borderWidth:"3px",borderStyle:"solid",borderColor:e?o.SELECTED:o.NOT_SELECTED,borderRadius:l.Oc,boxShadow:e?"inset 0 0 0 3px #fff":void 0}},"data-test-id":"pinRepSelectionBorder",left:!0,position:"absolute",right:!0,top:!0,zIndex:new i.Ry(1),children:e?(0,s.jsx)(i.xu,{alignItems:"center",bottom:!0,color:"dark",display:"flex",height:24,justifyContent:"center",left:n,margin:3,position:"absolute",right:!n,rounding:2,width:24,children:(0,s.jsx)(i.JO,{accessibilityLabel:t._('Check icon', 'pinRepSelectionBorder.checkIcon', 'Accessibility label for check icon on selected Pin'),color:"inverse",icon:"check",size:12})}):(0,s.jsx)(i.xu,{left:n,margin:3,position:"absolute",right:!n,top:!0,children:(0,s.jsx)(i.JO,{accessibilityLabel:t._('Handle icon', 'pinRepSelectionBorder.handleIcon', 'Accessibility label for handle icon on an organizable Pin'),color:"light",icon:"handle",size:24})})})}},156934:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(667294),a=n(693967),l=n.n(a),r=n(883119),s=n(144326),o=n(512541),d=n(297728),c=n(471620),u=n(648089),p=n(785893);function m(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let g=`
.SavedAnimation {
  &.saved {
    animation: SavedAnimation--down-then-right 1s cubic-bezier(0, 0.33, 0.33, 1.1);
  }

  &.board {
    animation: SavedAnimation--to-right 0.12s cubic-bezier(0, 0.33, 0.33, 1.1);
  }
}

@keyframes SavedAnimation--down-then-right {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }

  33% {
    opacity: 1;
    transform: translateY(0);
  }

  80% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(24px);
  }
}

@keyframes SavedAnimation--to-right {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
`;class h extends i.Component{constructor(...e){super(...e),m(this,"state",{showBoardName:!1}),m(this,"getTitle",()=>{let{checkExperiment:e,name:t,type:n}=this.props;return e("dweb_pin_card_copy_saved_to_profile").anyEnabled?t:"boardless"===n?this.props.i18n._('Saved to Profile', 'Saved.render.title', 'Text indicating saved to your profile'):t})}componentDidMount(){this.timer=setTimeout(()=>{this.setState({showBoardName:!0})},950)}componentWillUnmount(){clearTimeout(this.timer)}render(){let e,t;let{showBoardName:n}=this.state,{isDenseView:a,isNewlySaved:s,shouldUseLegoStyles:d,url:m}=this.props;if(d&&a)return null;let h=this.getTitle();if(!s||n||d){let t=d?(0,p.jsx)(r.xv,{color:"inverse",size:"300",weight:"bold",children:h.length<=20?h:(0,c.Z)(h,20)}):(0,p.jsx)(r.X6,{color:"inverse",lineClamp:1,size:"400",children:h}),n=(0,u.Z)({url:m});e=m?(0,p.jsx)(r.rU,{href:m,rel:n?"nofollow":"none",children:t}):t}else e=(0,p.jsx)(r.xv,{color:"inverse",size:"400",children:this.props.i18n._('Saved!', 'Indication that a pin has been saved', 'Indication that a pin has been saved')});return s&&(t=n?"board":"saved"),(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(o.Z,{unsafeCSS:g}),(0,p.jsx)("div",{className:d?"":l()("SavedAnimation",t),"data-test-id":"savedInfo",children:e})]})}}let _=function(e){let t=(0,s.ZP)(),{checkExperiment:n}=(0,d.F)();return(0,p.jsx)(h,{...e,checkExperiment:n,i18n:t})}},95073:(e,t,n)=>{"use strict";function i({attributionType:e,isPromoted:t,showSource:n,showShoppingCopy:i,showStarRating:a}){return a?2:t?3:i?1:n||"none"!==e?1:2}n.d(t,{Z:()=>i})},414373:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(225669);function a(e){return i.zI.includes(e)}},632368:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i,a=n(667294);n(422578);var l=n(47848),r=n(702789),s=n(383399);let o=void 0!==i?i:i=n(819217),d=["ShoppingCatalogsProductsMetadata"];function c({isEggsUi:e,isORBACProfileManager:t,saveButtonOptions:n,surface:i,pinKey:c}){let u=(0,l.Z)(o,c),p=(0,s.Z)(),m=p.isAuth?p.boardCount:void 0,{isOwnBoard:g,viewerIsBoardCollaborator:h}=(0,r.Z)({pinKey:u});return(0,a.useMemo)(()=>{let a=n||function(e=0){return 0===e?{type:"classic"}:{type:"inline"}}(m);return u.isQuickPromotable?a={type:"promote"}:(h||g&&!e||["OtherProfilePinGrid","UserProfilePinGrid"].includes(i))&&!["BoardlessPins","CreatorProfileActivityPinGrid","CreatorProfileStoryPinGrid","BaseBoardPinGrid"].includes(i)?a={type:"classic"}:(h||g)&&["BaseBoardPinGrid"].includes(i)&&u.board?.name&&u.board.url&&u.board.entityId&&(a={type:"inline",initialSelection:{title:u.board.name,boardId:u.board.entityId,url:u.board.url}}),(u.promotedIsRemovable||d.includes(i)||t)&&(a={type:"none"}),a},[u,h,g,e,t,i,m,n])}},225669:(e,t,n)=>{"use strict";n.d(t,{Wv:()=>a,ZF:()=>i,zI:()=>l,zl:()=>r});let i=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],a=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],l=[...a,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid","SearchAdsOnlyModule","ShoppingTool","ProductPinRetrieval"],r=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingGridShippedMetadataWithVisitButton"]},361728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});let i=["CloseupRelatedProducts","ConversationView","CreatorProfileStoryPinGrid","CreatorProfileActivityPinGrid","ProductPinsFeed","UserProfilePinGrid"];function a({attributionOption:e,feedbackType:t,isEligibleForPdp:n,isGroupBoard:a,showImageOnly:l,surface:r,isDownstreamPromotion:s,hasNativeCreator:o,hasPromoter:d,hasSponsorship:c,storyPinDataId:u}){if("promoted"===t||d&&!s||c)return"default";if("ConversationView"!==r&&i.includes(r)||a||n)return"none";let p="default";return"SearchItem"===r&&u?p:(e&&("image-only"===e?p="image-only-credit":"hide"===e&&(p="none")),"followed"!==t||l)?["IdeasHubSeasonalRow","TodayArticleFeed","ShoppingPackageItem"].includes(r)&&"hide"===e?p:"TodayArticleFeed"===r&&"show"===e?"show-for-claimed-content":o?"default":"none":p}},491281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(422578);var i,a=n(47848),l=n(915831);let r=void 0!==i?i:i=n(535997);function s({pinKey:e,feedbackType:t,viewParameter:n}){let i=(0,a.Z)(r,e);return function({feedbackType:e,viewParameter:t,boardFollowedByMe:n,hasPromoter:i,isDownstreamPromotion:a,pinnerFollowedByMe:r,hasRecommendationReason:s,recommendationReasonHasBoard:o,recommendationReasonReason:d}){return(0,l.hP)({boardFollowedByMe:n,feedbackType:e,promotion:i?{isDownstreamPromotion:a}:void 0,pinnerFollowedByMe:r,recommendationReason:s?{hasBoard:o,reason:d}:void 0,viewParameter:t})}({feedbackType:t,viewParameter:n,boardFollowedByMe:!!i?.board?.followedByMe,hasPromoter:!!i?.promoter,isDownstreamPromotion:!!i?.isDownstreamPromotion,pinnerFollowedByMe:!!i?.pinner?.explicitlyFollowedByMe,hasRecommendationReason:!!i?.recommendationReason,recommendationReasonReason:i?.recommendationReason?.reason??void 0,recommendationReasonHasBoard:!!i?.recommendationReason?.board})}},920185:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(167912);var i,a=n(47848),l=n(225669);let r=void 0!==i?i:i=n(573219);function s({pinKey:e,isGroupBoard:t,surface:n}){let i=(0,a.Z)(r,e),{title:s,gridTitle:o,isDownstreamPromotion:d}=i,c=i.carouselData?.index||0,u=!!i.richSummary,p=!!i.carouselData,m=i.richSummary?.typeName,g=i.richSummary?.displayName,h=!!i.promoter,_=i.access,y=i.carouselData?.carouselSlots?.[c].title,f=!!_?.includes("write");return p&&y?y.trim():!h||d?o||"":l.ZF.includes(n)?o||"":(!f||t||p||"UserProfilePinGrid"===n)&&(s||u&&"mobile application"!==m&&g||o)||""}},407046:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(667294),a=n(883119),l=n(410287),r=n(785893);let s=40,o=70,d={__style:{borderRadius:"4px",padding:"10px 14px"}},c={__style:{borderWidth:"1px",borderStyle:"solid",borderColor:"white"}},u={__style:{borderRadius:"4px",padding:"10px 14px 9px 8px",whiteSpace:"nowrap"}},p=e=>({__style:{borderRadius:"24px",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"14px",paddingRight:"14px",...e}}),m=e=>"transparent"===e||"dark"===e?"inverse":"primary"===e?"light":"default",g=({color:e,icon:t})=>t?u:"transparent"===e?{__style:{...d.__style,...c.__style}}:d,h=({accessibilityLabel:e,color:t,customStyles:n,forwardedRef:d,icon:c,inline:u=!1,minHeight:h=s,minWidth:_=o,onTouch:y,pressState:f,shape:x,text:b})=>{let[v,P]=(0,i.useState)(!1),k=m(t),S=g({color:t,icon:c}),w=(0,r.jsx)(a.xu,{onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),position:"relative",children:(0,r.jsx)(a.xu,{color:"primary"===t&&v?"errorBase":t,dangerouslySetInlineStyle:"pill"===x?p(n):S,display:u?"inlineBlock":"flex",justifyContent:"center",minHeight:h,minWidth:_,children:(0,r.jsxs)(a.kC,{alignItems:"center",justifyContent:"center",children:[c&&(0,r.jsx)(a.xu,{paddingX:"check"===c?2:0,children:(0,r.jsx)(a.JO,{accessibilityLabel:e,color:k,icon:c,inline:!0,size:"check"===c?16:20})}),(0,r.jsx)(a.xv,{color:k,inline:!0,lineClamp:1,size:"300",weight:"bold",children:b})]})})});return y?(0,r.jsx)(l.Z,{onTouch:y,pressState:f||"none",rounding:"pill"===x?"pill":2,children:(0,r.jsx)(a.xu,{ref:d,children:w})}):w}},632859:(e,t,n)=>{"use strict";n.d(t,{MZ:()=>D,di:()=>O,Ai:()=>R});var i=n(667294),a=n(616550),l=n(883119),r=n(192820),s=n(151817),o=n(488792),d=n(89393),c=n(282999),u=n(915571),p=n(730212),m=n(786525),g=n(166408),h=n(978993),_=n(1006),y=n(383399),f=n(463057),x=n(999836),b=n(407046),v=n(564573),P=n(937637),k=n(256277),S=n(648089),w=n(590238);let I=({children:e,external:t,externalQueryParams:n,target:i,href:l,features:r})=>{let s=(0,a.k6)();if(!l)return null;let o=(0,v.Z)(l);return e({navigate:e=>{e.preventDefault(),(0,S.Z)({url:o})||t?"undefined"!=typeof window&&window.Windows?(0,w.Z)(o):(0,k.Z)(o,{queryParams:n,features:r}):(0,P.Z)({event:e,href:l,history:s,target:"blank"===i?"blank":null})}})};var T=n(785893),A=n(722952),E=n(970067),C=n(424583);let j=(0,i.lazy)(()=>Promise.all([n.e(97270),n.e(47546)]).then(n.bind(n,743551))),F=e=>"string"==typeof e?e:`${e.pathname||""}${e.search?`?${e.search}`:""}`,L=(e,t=!1)=>function({isAppUpsellDisabled:n,...b}){let{children:v,clientTrackingParams:P,deeplinkUri:k,external:S,onTouch:w,refresh:I,to:L,viewParameter:D,viewType:R}=b,O=(0,x.Z)(),[Z,M]=(0,i.useState)(!1),[K,N]=(0,i.useState)(!1),[z,B]=(0,i.useState)(!1),{isAuth:U}=(0,y.Z)(),{userAgent:{platform:H},locale:G}=(0,p.B)(),V=(0,C.Tt)(),W=(0,o.Z)(),$=(0,a.TH)();(0,i.useEffect)(()=>{(async function(){(0,s.v)()&&(B(!0),(await (0,s.Z)()).length>0&&N(!0))})()},[]),(0,i.useEffect)(()=>{U||"true"===(0,g.Nl)().getItem(r.Vg)||((0,_.My)(`unauth.app_upsell.has_app.${K.toString()}`),(0,g.Nl)().setItem(r.Vg,"true"))},[K,U]);let Y=()=>{W({event_type:1701,view_type:R,view_parameter:D}),Z&&M(!1)};return(0,T.jsxs)(l.xu,{"data-test-id":"deeplink-wrapper",children:[Z&&(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(j,{app_upsell_type:"deep-link-app-upsell-modal",clientTrackingParams:P,deepLinkUri:k,isOpen:!0,onDismiss:()=>{W({component:14157,element:10308,event_type:10220,view_type:R||202,view_parameter:D,aux_data:{app_upsell_type:"deep-link-app-upsell-modal"}})},onOpenInApp:()=>{(0,m.Nh)("deeplinkBehavior","branchfallback"),Y()},shouldTrackDismiss:!0,to:L,viewParameter:D,viewType:R})}),(0,T.jsx)(A.Z,{children:i=>(0,T.jsx)(e,{...b,onTouch:e=>{let a=O&&!n&&U&&!S&&!I&&!(0,u.FP)(window)&&!("ios"===H&&(G||"").startsWith("ar"))&&(0,E.kp)((0,d.Z)(V?.created_at));if(a){let t=!0,n=!1;"string"==typeof k&&(k||"").startsWith("/pin/")&&((0,c.uM)($)||(0,c.am)($)||(0,c.C$)($))?z&&K&&k&&"android"===H&&(t=!1):(t=!1,n=!0),t?(e.stopPropagation(),e.preventDefault(),M(!0)):n||(e.stopPropagation(),e.preventDefault(),W({component:14347,element:13582,event_type:3830,view_type:20,view_parameter:3844,aux_data:{upsell_reason:"deep-link-app-upsell-modal"}}),i(k??(0,f.Z)($,"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),i(k,"deep-link-app-upsell-modal",`${window.location.origin}${F(L)}`),Y());!(t&&a)&&w&&w(e)},children:v})})]})},D=L(({accessibilityLabel:e,children:t,external:n,externalQueryParams:i,features:a,inline:r=!1,newTab:s,nofollow:o,onTouch:d,onBlur:c,onFocus:u,pressState:p,rounding:m,to:g})=>(0,T.jsx)(I,{external:n,externalQueryParams:i,features:a,href:g,target:s?"blank":null,children:({navigate:n})=>(0,T.jsx)(l.rU,{accessibilityLabel:e,display:r?"inlineBlock":"block",href:(0,v.Z)(g),onBlur:c?({event:e})=>c(e):void 0,onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),d?.(e),e.defaultPrevented||n(e)},onFocus:u?({event:e})=>u(e):void 0,rel:o?"nofollow":"none",rounding:m,tapStyle:(Array.isArray(p)?p:[p]).includes("compress")?"compress":"none",underline:"none",children:t})})),R=L(({external:e,externalQueryParams:t,newTab:n,onTouch:i,to:a,...l})=>(0,T.jsx)(I,{external:e,externalQueryParams:t,href:a,target:n?"blank":null,children:({navigate:e})=>(0,T.jsx)(b.Z,{onTouch:t=>{i?.(t),t.defaultPrevented||e(t)},...l})})),O=L(b.Z,!0)},722952:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var i=n(573706),a=n(297728),l=n(730212),r=n(61218),s=n(970067),o=n(151817),d=n(868808),c=n(415787);let u="http://play.google.com/store/apps/details?id=com.pinterest",p=["access_token","new_password","new_password_confirm","password","next"],m=(e,t)=>t?(0,d.ru)(e,{invite_code:t}):e,g=(e,t,n)=>{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)?m(e,n):"ios"===t||"ipad"===t?m(e.iOS,n):"android"===t?m(e.android,n):null},h=({deeplinkUri:e,invite_code:t,platform:n,fallbackUrl:i,unauthId:a,app_upsell_type:l})=>({deeplink_path:g(e,n,t),current_page_url:(0,d.Gw)("undefined"!=typeof window?window.location.href:"",p),install_id:a,utm_source:140,utm_medium:2152,app_upsell_type:l,...i?{af_r:i}:null}),_=({deeplinkUri:e,invite_code:t,platform:n,unauthId:i,app_upsell_type:a})=>{let l=JSON.stringify({deeplink_path:g(e,n,t),current_page_url:(0,d.Gw)("undefined"!=typeof window?window.location.href:"",p),install_id:i});return{referrer:(0,d.XP)({utm_source:"mweb",utm_medium:"upsell",utm_content:l,app_upsell_type:a})}},y=({unauthId:e,app_upsell_type:t})=>({referrer:encodeURI((0,d.XP)({utm_source:"mweb",utm_medium:"upsell",utm_campaign:"twa",utm_content:e,app_upsell_type:t}))}),f=({isAuthenticated:e,deeplinkUri:t,fallbackUrl:n,invite_code:i,logContextEvent:a,platform:l,redirectToLite:r,unauthId:s,userAgent:p,app_upsell_type:m})=>{if(a?.({component:14347,element:13582,event_type:701,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}}),t){let g=h({isAuthenticated:e,deeplinkUri:t,fallbackUrl:n,invite_code:i,platform:l,unauthId:s,userAgent:p,app_upsell_type:m});if((0,c.nP)("mweb.deeplink",{sampleRate:1,tags:{platform:l}}),i&&(0,c.nP)("mweb.deeplink.invite_code",{sampleRate:1}),(0,c.nP)("mweb.deeplink.unauthId",{sampleRate:1,tags:{withUnauthId:!!s}}),r){(0,c.nP)("mweb.deeplink.lite_link",{sampleRate:1}),a?.({component:14347,element:13582,event_type:14540,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}});let e=y({unauthId:s,app_upsell_type:m});window.location.href=(0,d.ru)("http://play.google.com/store/apps/details?id=com.pinterest.twa",e)}else if("android"===l){let e=_({deeplinkUri:t,invite_code:i,platform:l,unauthId:s,app_upsell_type:m});(0,o.v)()?(0,o.Z)().then(n=>{if(n.length>0){let e=window.location.href.endsWith("/login")?window.location.href.replace("/login","string"==typeof t?t:t.android):window.location.href,n=(0,d.ru)(e,g);a?.({component:14347,element:13582,event_type:703,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}}),window.open(n)||a?.({component:14347,element:13582,event_type:702,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}})}else a?.({component:14347,element:13582,event_type:14538,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}}),window.location.href=(0,d.ru)(u,e)}).catch(()=>{(0,c.nP)("mweb_android.deeplink.playStore.error",{sampleRate:1})}):(a?.({component:14347,element:13582,event_type:14538,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}}),window.location.href=(0,d.ru)(u,e))}else{if((0,c.nP)("mweb.deeplink.appsflyer_link",{sampleRate:1}),"ios"===l&&"undefined"!=typeof window&&window.location.href.includes("show_yip_modal")){window.location.href=(0,d.ru)("https://pinterest.com/pinterest-predicts",g);return}a?.({component:14347,element:13582,event_type:14539,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:m}}),window.location.href=(0,d.ru)("https://pinterest.onelink.me/TVSr/21e04bfd",g)}}};var x=n(785893);function b({children:e,invite_code:t}){let{isAuthenticated:n,isBot:r,unauthId:o,userAgent:{platform:d,raw:c}}=(0,l.B)(),{logContextEvent:u}=(0,i.v)(),{checkExperiment:p}=(0,a.F)();return e(async(e,i,a)=>{u({component:14347,element:13582,event_type:700,view_type:20,view_parameter:3844,aux_data:{app_upsell_type:i}}),f({isAuthenticated:n,checkExperiment:p,deeplinkUri:e,fallbackUrl:a,invite_code:t,logContextEvent:u,platform:d,redirectToLite:(0,s.Rp)({isBot:r,platform:d,userAgent:c}),unauthId:o,userAgent:c,app_upsell_type:i})})}let v=e=>(0,x.jsx)(r.ty,{children:t=>(0,x.jsx)(b,{...e,invite_code:t})});v.displayName="DeepLinkNavigator";let P=v},241716:(e,t,n)=>{"use strict";n.d(t,{L1:()=>s,NW:()=>c,OZ:()=>u,Rz:()=>p,WZ:()=>o,cI:()=>r,fe:()=>d,hu:()=>l,sp:()=>m});var i,a=n(883119);let l=64,r=80,s=22,o="HeaderContent",d=671,c=new a.Ry(d),u="NagHeaderContent",p={boxShadow:"0px 8px 8px -8px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"},m=((i={}).PINTEREST_LOGO="web.header.pinterest_logo.click",i.EXTERNAL_BUTTON_QUERY_PINTEREST_LOGO="web.header.external_button_query.pinterest_logo.click",i.SSO_PAGE_PINTEREST_LOGO="web.header.sso_page.pinterest_logo.click",i.UNSUBSCRIBE_PAGE_PINTEREST_LOGO="web.header.unsubscribe_page.pinterest_logo.click",i.HOME_TAB="web.header.home_tab.click",i.TODAY_TAB="web.header.today.click",i.CREATE_TAB="web.header.create.click",i.HOME_BUTTON_COLLAPSED_TAB="web.header.home_button_collapsed_tab.click",i.TODAY_TAB_COLLAPSED_TAB="web.header.today_tab_collapsed_tab.click",i.CREATE_TAB_COLLAPSED_TAB="web.header.create_tab_collapsed_tab.click",i.NEWS="web.header.news.click",i.CONVERSATIONS="web.header.conversations.click",i.AVATAR="web.header.avatar.click",i.EXTERNAL_BUTTON_QUERY_AVATAR="web.header.external_button_query.avatar.click",i.UNSUBSCRIBE_PAGE_AVATAR="web.header.unsubscribe_page.avatar.click",i.ACCOUNT_OPTIONS="web.header.account_options.click",i.EXTERNAL_BUTTON_QUERY_ACCOUNT_OPTIONS="web.header.external_button_query.account_options.click",i)},87416:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>d,HE:()=>c,Mv:()=>l,Y4:()=>u,dL:()=>a,fS:()=>p,fv:()=>s,lu:()=>m,qS:()=>o,u:()=>g,uc:()=>r});var i=n(788388);let a=e=>{let t=(0,i.Z)({impressionAuxFields:{...e.impressionData||{}},clientTrackingParams:e.trackingParams,duploShouldTrackPinEvents:e.duploShouldTrackPinEvents,loggingId:e.loggingId,slotIndex:e.slotIndex,contextLogData:e.auxData||{},componentType:e.component,impressionType:"Pin",isPaused:e.isPaused,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},l=e=>{let t=(0,i.Z)({impressionAuxFields:{newsType:e.newsType,displayMode:e.displayMode,newsIndex:e.newsIndex||0,tapItemIdStr:e.tapItemIdStr},contextLogData:e.auxData||{},impressionType:"Notification",loggingId:e.notificationId,viewType:107,viewParameter:3082});return e.children({impressionTrackerRef:t})},r=e=>{let t=(0,i.Z)({impressionAuxFields:{newsType:e.newsType},contextLogData:e.auxData||{},impressionType:"NotificationFeed",loggingId:e.notificationId,viewType:107,viewParameter:3082});return e.children({impressionTrackerRef:t})},s=e=>{let t=(0,i.Z)({impressionAuxFields:{...e.impressionData||{}},contextLogData:e.auxData||{},componentType:e.component,isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex,impressionType:"Article"});return e.children({impressionTrackerRef:t})},o=e=>{let t=(0,i.Z)({impressionAuxFields:{...e.impressionData||{}},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex,contextLogData:e.auxData||{},componentType:e.component,impressionType:"Story",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},d=e=>{let t=(0,i.Z)({impressionAuxFields:{...e.impressionData||{}},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0,contextLogData:e.auxData||{},componentType:e.component,impressionType:"User",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},c=e=>{let t=(0,i.Z)({impressionAuxFields:{...e.impressionData||{}},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0,contextLogData:e.auxData||{},componentType:e.component,impressionType:"Interest",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},u=e=>{let t=(0,i.Z)({impressionAuxFields:{...e.impressionData||{}},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex,contextLogData:e.auxData||{},componentType:e.component,impressionType:"TodayArticle",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},p=e=>{let t=(0,i.Z)({impressionAuxFields:{...e.impressionData||{}},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex,contextLogData:e.auxData||{},componentType:e.component,impressionType:"Board",loggingId:e.loggingId,viewType:e.viewType||1,viewParameter:e.viewParameter,viewData:e.viewData});return e.children({impressionTrackerRef:t})},m=e=>{let t=(0,i.Z)({carouselData:e.carouselData,impressionType:"Pin",loggingId:e.loggingId,slotIndex:e.slotIndex??0,trackCarousel:!0,viewParameter:e.viewParameter||72,viewType:e.viewType||1,isPaused:e.isPaused,contextLogData:e.contextLogData,componentType:e.component,impressionAuxFields:e.impressionAuxFields});return e.children({impressionTrackerRef:t})},g=e=>{let t=(0,i.Z)({impressionAuxFields:{...e.impressionData||{}},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex,contextLogData:e.auxData||{},componentType:e.component,impressionType:"Board",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})}},410287:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(883119),a=n(785893);function l({children:e,onMouseEnter:t,onMouseLeave:n,onTouch:l,rounding:r,fullWidth:s=!1,pressState:o="none",accessibilityLabel:d,role:c,dataTestId:u}){let p=(Array.isArray(o)?o:[o]).includes("compress");return(0,a.jsx)(i.iP,{accessibilityLabel:d,dataTestId:u,fullWidth:s,onMouseEnter:t&&(({event:e})=>t(e)),onMouseLeave:n&&(({event:e})=>n(e)),onTap:l&&(({event:e})=>l(e)),role:c,rounding:r,tapStyle:p?"compress":"none",children:e})}},530754:(e,t,n)=>{"use strict";n.d(t,{U:()=>u,m:()=>p});var i=n(667294),a=n(545007),l=n(498490),r=n(89393),s=n(876597),o=n(383399),d=n(785893);let{Provider:c,useHook:u}=(0,l.Z)("NavFooterContext");function p({children:e}){let[t,n]=(0,i.useState)(),[l,u]=(0,i.useState)(!1),[p,m]=(0,i.useState)(0),[g,h]=(0,i.useState)(!1),[_,y]=(0,i.useState)(!1),[f,x]=(0,i.useState)(!1),[b,v]=(0,i.useState)(!1),P=(0,s.Z)(null,(0,o.Z)()),k=(0,a.v9)(e=>e.session.isAuthenticated),S=(0,a.v9)(e=>k?e.users[e.session.userId]:void 0),w=(0,r.Z)(S?.created_at);return(0,d.jsx)(c,{value:{forceShowNavFooter:f,homeFlyoutText:t,isNavFooterHiddenAfterScroll:l,isNavFooterHiddenByPinActionBar:b,navFooterHeight:l?0:k&&(P||w)?64:52,numUnauthSavedPins:p,setForceShowNavFooter:x,setHomeFlyoutText:n,setIsNavFooterHiddenAfterScroll:u,setIsNavFooterHiddenByPinActionBar:v,setNumUnauthSavedPins:m,setShowHomeBadge:h,setShowHomeFlyoutWithButton:y,showHomeBadge:g,showHomeFlyoutWithButton:_},children:e})}},265691:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,w:()=>r});var i=n(883119),a=n(920217);let l=new i.H3([a.Z]),r=160},39234:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r}),n(167912);var i,a=n(47848);let l=void 0!==i?i:i=n(582802);function r(e){let{attribution:t,embed:n,isEligibleForWebCloseup:i,richSummary:r,videos:s,storyPinDataId:o}=(0,a.Z)(l,e),d=n||t?.embed;return i?"oneTap":s||d?.type==="video"?"video":d?.type==="gif"?"gif":r?.typeName==="product"?"product":r?.typeName==="recipe"?"recipe":o?"storyPin":"image"}},385617:(e,t,n)=>{"use strict";n.d(t,{K:()=>r,T:()=>s});var i=n(667294),a=n(785893);let l=(0,i.createContext)({getPinFeedbackStatus:()=>void 0,setPinFeedbackStatus:()=>{}}),r=()=>(0,i.useContext)(l);function s({children:e}){let[t,n]=(0,i.useState)(Object.freeze({})),r=(0,i.useMemo)(()=>({getPinFeedbackStatus:({pinId:e})=>t[e],setPinFeedbackStatus:({pinId:e,pinFeedbackStatus:i})=>n({...t,[e]:i})}),[t]);return(0,a.jsx)(l.Provider,{value:r,children:e})}},868300:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>nh});var i,a,l,r,s,o,d,c,u,p,m,g,h,_,y,f,x,b,v=n(667294),P=n(545007),k=n(167912),S=n(616550),w=n(883119),I=n(809887),T=n(261205),A=n(830997),E=n(532321),C=n(47848),j=n(144326),F=n(915831),L=n(252611),D=n(471620),R=n(183637),O=n(785893);let Z=void 0!==i?i:i=n(892153),M=({clientTrackingParams:e,onClick:t,pinKey:n,maxDomainLength:i})=>{let a=(0,j.ZP)(),l=(0,C.Z)(Z,n),[r,s]=(0,v.useState)(!1),o=(0,L.Z)(l,e);return(0,O.jsx)(w.Tg,{href:l.link??"",onMouseEnter:()=>{s(!0)},onMouseLeave:()=>{s(!1)},onTap:({event:e})=>{e.stopPropagation(),o(),t(e)},rel:"nofollow",target:"blank",children:(0,O.jsxs)(w.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{...R.styles.container,...r?R.styles.containerHovered:Object.freeze({})}},display:"flex",justifyContent:"between",marginBottom:4,marginStart:4,rounding:4,children:[(0,O.jsx)(w.xu,{display:"flex",flex:"none",marginBottom:3,marginStart:3,marginTop:3,children:(0,O.jsx)(w.JO,{accessibilityLabel:a._('Link', 'unauth.pin.domain.link', 'Link to take them to the source of the iamge'),color:"default",icon:"arrow-up-right",size:9})}),(0,O.jsx)(w.xu,{alignItems:"baseline",display:"flex",height:18,marginEnd:3,marginStart:2,overflow:"hidden",children:(0,O.jsx)(w.xv,{color:"default",inline:!0,lineClamp:1,size:"200",weight:"bold",children:(0,D.Z)(l.domain??"",i||27)})})]})})};var K=n(759400),N=n(356959),z=n(360847),B=n(272911),U=n(700337),H=n(297728),G=n(293321),V=n(730212),W=n(750077),$=n(1006),Y=n(436922),X=n(410150),q=n(969119),Q=n(599582),J=n(511444),ee=n(763385),et=n(596530),en=n(356972),ei=n(414373),ea=n(632368),el=n(20690),er=n(353826),es=n(821892),eo=n(225669),ed=n(407277),ec=n(243583),eu=n(632859),ep=n(87416),em=n(563027),eg=n(217649),eh=n(505746),e_=n(602185),ey=n(559028),ef=n(240760),ex=n(389354),eb=n(540234);let ev=void 0!==a?a:a=n(4444),eP=(e,t)=>{let n=(0,k.useRelayEnvironment)();return(0,O.jsx)(eb.t,{invite_code:e,inviteQuery:ev,relayEnvironment:n,children:e=>{let n=e?.data?e.data.sender:null,i=n&&n.first_name?n.first_name.substring(0,30):"";if(!i)return null;let a=n&&!n.is_default_image?n?.image_medium_url??"":"",l=(0,ef.nk)(t._('{{ name }} shared this idea with you', 'homefeed.pinSenderAvatar.heading', 'header notifying users that a sender ({{ name }}) shared a Pin to them'),{name:i});return(0,O.jsxs)(w.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,O.jsx)(w.zd,{height:32,width:32,children:(0,O.jsx)(ey.qE,{name:i,src:a})}),(0,O.jsx)(w.xu,{paddingY:2,width:"80%",children:(0,O.jsx)(w.xv,{align:"center",size:"200",weight:"bold",children:l})})]})}})},ek=(e,t)=>(0,O.jsx)(eb.Z,{invite_code:e,children:e=>{let n=e?e.sender:null,i=n&&n.first_name?n.first_name.substring(0,30):"";if(!i)return null;let a=n&&!n.is_default_image?n.image_medium_url:"",l=(0,ef.nk)(t._('{{ name }} shared this idea with you', 'homefeed.pinSenderAvatar.heading', 'header notifying users that a sender ({{ name }}) shared a Pin to them'),{name:i});return(0,O.jsxs)(w.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,O.jsx)(w.zd,{height:32,width:32,children:(0,O.jsx)(ey.qE,{name:i,src:a})}),(0,O.jsx)(w.xu,{paddingY:2,width:"80%",children:(0,O.jsx)(w.xv,{align:"center",size:"200",weight:"bold",children:l})})]})}}),eS=(e,t)=>{let{checkExperiment:n}=(0,H.F)();return n("graphql_migration_sharelink_sgrowth_web").anyEnabled?eP(e,t):ek(e,t)},ew=({inviteCode:e})=>{let t=(0,j.ZP)();return(0,O.jsx)(w.xu,{minHeight:82,children:(0,O.jsx)(e_.Z,{name:"SafeSuspense_PinCardSharedHeader_LoadingSpinner",children:(0,O.jsx)(W.Z,{fallback:(0,O.jsx)(ex.Z,{accessibilityLabel:t._('Loading Invitation component', 'Loading InviteFetch component', 'loading InviteFetch component')}),children:eS(e,t)})})})};var eI=n(218339),eT=n(609326),eA=n(573706),eE=n(576449),eC=n(39260),ej=n(282999),eF=n(945960),eL=n(663641),eD=n(864723),eR=n(154785),eO=n(833764),eZ=n(50165),eM=n(488792),eK=n(194093),eN=n(476198),ez=n(888017),eB=n(901450),eU=n(897791),eH=n(947506),eG=n(934648),eV=n(430965),eW=n(989820),e$=n(801925),eY=n(407046),eX=n(677035),eq=n(335108),eQ=n(424583),eJ=n(466304),e0=n(479825);let e1=new w.Ry(1),e2=void 0!==l?l:l=n(640824);function e3({buttonText:e,clientTrackingParams:t,color:n="primary",deeplinkUri:i,experience:a,inline:l=!0,minWidth:r,onTouch:s,onUnsave:o,pinId:d,pinKey:c,pinnedToBoardId:u,shape:p,shouldShowSavedButton:m,viewType:g,viewParameter:h,showSaveHandoffExperience:_}){let y=(0,j.ZP)(),f=(0,P.I0)(),x=(0,S.k6)(),b=(0,S.TH)(),k=(0,e0.M)(),I=b.pathname.startsWith("/pin"),T=(0,P.v9)(({session:e})=>e.hasSavedUnauthPin),A=(0,P.v9)(({session:e})=>e.unauthSavePinId),E=eQ.Tt()?.pin_count,F=(0,eM.Z)(),L=(0,eR.Z)(),{checkExperiment:D}=(0,H.F)(),R=(0,e$.be)(),Z=(0,eW.cO)(),M=e=>x.push(e),{showToast:K,showRepinConfirmation:N}=(0,eX.Z)(),z=(0,C.Z)(e2,c),B=async()=>{try{await f((0,eJ.Z)({checkExperiment:D,history:x,i18n:y,logContextEvent:F,onSuccess:()=>{a&&f(R(a.placement_id,a.experience_id)),Z("Save",{pin_id:d,is_promoted:z?.isPromoted})},originalPinId:d,pinId:d,trackingParams:{clientTrackingParams:t,pinnedToBoardId:u},showRepinConfirmation:_&&!I?()=>void 0:N,disableRepinAnimation:A===d,pinCount:E,historyPush:M,savePinId:k?.save??(()=>{})}))}catch(e){K(({hideToast:t})=>(0,O.jsx)(eN.ZP,{onHide:t,text:(0,eK.Z)(e,"message")||y._('Sorry! Something went wrong on our end.', 'quickSave.toast.error.message', 'error during repin'),type:"error"}))}},U=(0,v.useRef)(null),G=_&&!T,V=(0,eG.Z)()({fn:e=>{e.stopPropagation(),e.preventDefault(),s&&s(e),m?m&&o&&o():B()},modalHeader:(0,eH.Bx)(y)});(0,v.useEffect)(()=>{G&&!U.current&&(L({action:"trigger",item:"unauth-save-button-quicksave"}),F({event_type:14581}),B(),f((0,eq.e2)())),U.current=G});let W=()=>y._('Pin', 'quickSave.quickSaveButton.icon.accessibilityLabel', 'Pin accessibility label'),$=()=>e||y._('Save', 'quickSave.quickSaveButton.buttonText', 'Auth mobile web save button for pin closeup');return T&&!I?null:(0,O.jsx)(w.xu,{"data-test-id":"save-button-mobile",zIndex:e1,children:i?(0,O.jsx)(eu.di,{accessibilityLabel:W(),color:n,customStyles:{padding:"14px 16px"},deeplinkUri:i,inline:l,minHeight:48,minWidth:r,onTouch:V,pressState:["compress","background"],shape:p,size:"lg",text:$(),to:x.location.pathname,upsellType:"save",viewParameter:h,viewType:g}):(0,O.jsx)(eY.Z,{accessibilityLabel:W(),color:n,customStyles:{padding:"14px 16px"},inline:l,minHeight:48,minWidth:r,onTouch:V,pressState:"compress",shape:p,size:"300",text:$()})})}var e4=n(672400),e6=n(719535),e8=n(369114),e7=n(343267);let e9=void 0!==r?r:r=n(414940),e5=void 0!==s?s:s=n(606187),te=void 0!==o?o:o=n(287861),tt=e=>{let{oneTapSave:t,clientTrackingParams:n,pinnedToBoardId:i,viewParameter:a,viewType:l,isOneTapExploreLocalTab:r,isBoardIdeas:s,pinKey:o}=e,d=(0,j.ZP)(),c=(0,P.I0)(),{showToast:u}=(0,eB.F9)(),{checkExperiment:p}=(0,H.F)(),m=(0,eM.Z)(),g=(0,S.k6)(),h=e=>g.push(e),_=(0,e0.M)(),y=(0,eG.Z)(),[f,x]=(0,v.useState)(void 0),{setHasMetSaveRequirementOnUseCaseFeed:b,setUseCaseFeedOriginalPinId:k,setUseCaseFeedRepinId:I}=(0,eZ.$)(),T=p("ap_bmi_custom_activation_nux_revamp_mweb_v2",{dangerouslySkipActivation:!0}).anyEnabled||p("ap_bmi_res_custom_activation_nux_revamp_mweb_v2",{dangerouslySkipActivation:!0}).anyEnabled,A=(0,C.Z)(e5,o),E=A?.entityId??"",F=A?.savedInfo,L=!!A?.pinnedToBoard?.__typename,D=async()=>{let e=(0,ez.Z)(e9,A);if(p("ap_activation_nux_revamp_mweb_v2_1_board_upsell",{dangerouslySkipActivation:!0}).anyEnabled){let e=new URLSearchParams(window.location.search).get("useCaseId")??"";if(e){let t=(0,eV.Z)().get(e);(t?.pin_ids||[]).length>=2&&b(!0)}}k(E);try{let r=await c((0,e8.w)({checkExperiment:p,i18n:d,logContextEvent:m,originalPinId:E,pinId:E,boardId:t?.boardId,isOneTapSave:!0,section:t?.section,showToast:T?void 0:u,trackingParams:{clientTrackingParams:n,pinnedToBoardId:i},viewParameter:a,viewType:l,historyPush:h,savePinId:_?.save??(()=>{})}));I(r.id),x("saved"),c((0,e4.a)({boardId:t?.boardId,localPinId:r.id,pinId:E,nodeId:e?.__id}))}catch(e){T||u(({hideToast:t})=>(0,O.jsx)(eN.ZP,{onHide:t,text:(0,eK.Z)(e,"message")||d._('Sorry! Something went wrong on our end.', 'error during repin', 'error during repin'),type:"error"})),x(void 0)}},R=async()=>{let e=(0,ez.Z)(e9,A);if(F){c((0,e4.k)({boardId:F.boardId??void 0,localPinId:F.localPinId??void 0,pinId:E,nodeId:e?.__id})),_?.unsave(E);try{await c((0,e6.q)({pinId:F.localPinId??"",boardId:F.boardId??"",clientTrackingParams:n})),T||u(({hideToast:e})=>(0,O.jsx)(eN.ZP,{onHide:e,text:d._('Pin deleted!', 'User deleted their pin', 'User deleted their pin')})),x(void 0),4079===a&&m({event_type:3,view_type:1,view_parameter:4079,aux_data:{pin_id:E}})}catch(e){T||u(({hideToast:e})=>(0,O.jsx)(eN.ZP,{onHide:e,text:d._('Sorry! There was an error deleting your Pin.', 'Error when user tried to delete pin', 'Error when user tried to delete pin'),type:"error"})),x("saved")}}},Z=y({fn:({event:e})=>{e.stopPropagation(),e.preventDefault(),["saving","deleting"].includes(f)||r&&L||(f||F?r||(x("deleting"),R()):(x("saving"),r?g.push({pathname:`/pin/${E}/repin`,state:{isOneTapSave:!0,from:g.location}}):D()))},modalHeader:(0,eH.Bx)(d)}),M=r?L:!!F,K={saved:"#000",unsaved:"rgba(255, 255, 255, 0.8)",savedText:"light",unsavedText:"dark"};return(0,O.jsx)(w.iP,{onTap:Z,rounding:"circle",children:(0,O.jsx)(w.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:M?K.saved:K.unsaved}},paddingX:2,paddingY:2,rounding:"circle",children:(0,O.jsx)(w.xu,{dangerouslySetInlineStyle:{__style:{opacity:100}},children:(0,O.jsx)(w.JO,{accessibilityLabel:M?d._('saved', 'checkmark icon to show pin has been saved', 'checkmark icon to show pin has been saved'):d._('save', 'button for saving quickly with one click', 'button for saving quickly with one click'),color:M?K.savedText:K.unsavedText,icon:M?"check":s?(0,e7.f)():"add",size:16})})})})},tn=function(e){let{clientTrackingParams:t,pinnedToBoardId:n,oneTapSave:i,isOneTapExploreLocalTab:a,children:l,isBoardIdeas:r,pinKey:s,viewParameter:o,viewType:d}=e,c=(0,j.ZP)(),u=(0,eM.Z)(),p=(0,P.I0)(),m=(0,S.k6)(),{isRTL:g,isAuthenticated:h}=(0,V.B)(),_=(0,e0.M)(),y=(0,P.v9)(({session:e})=>e.unauthSavePinId),{pins:f,clear:x}=(0,eU.Z)(),b=(0,v.useRef)(!1),{checkExperiment:k}=(0,H.F)(),{isGraphQLEnabledInGeneral:I}=(0,ec.nF)(),T=(0,C.Z)(te,s),A=!!T?.pinnedToBoard?.__typename,E=T?.entityId,F=h&&!!y&&y===E,L=e=>m.push(e),D=(0,P.v9)(e=>e.experiences[40001]);(0,q.Z)(()=>{h&&!b.current&&f.length>0&&(b.current=!0,u({event_type:14577,aux_data:{num_unauth_saved_pins:f.length}}),[...f,...y&&I?[{id:y}]:[]].forEach(({id:e})=>{p((0,eJ.Z)({checkExperiment:k,history:m,i18n:c,logContextEvent:u,onSuccess:()=>{},originalPinId:e,pinId:e,trackingParams:{clientTrackingParams:t,pinnedToBoardId:n},showRepinConfirmation:()=>void 0,disableRepinAnimation:!0,historyPush:L,savePinId:_?.save??(()=>{})})).catch(e=>{(0,$.My)(`error.unauth_profile_pin_merge.${e}`)})}),x())});let R=new w.Ry(2);if(!i&&!a&&!F)return l;let Z=null;return F?Z=(0,O.jsx)(e3,{buttonText:A?c._('Saved', 'OneTapSave.QuickSaveButton.Saved', 'Message on saved pin'):"",clientTrackingParams:t,color:A?"default":"primary",deeplinkUri:"deeplinkUri",experience:D,inline:!0,minWidth:54,pinId:E,pinKey:T,pinnedToBoardId:n,shape:"pill",shouldShowSavedButton:!!A,showSaveHandoffExperience:F,viewType:d}):i&&(Z=(0,O.jsx)(tt,{clientTrackingParams:t,isBoardIdeas:r,isOneTapExploreLocalTab:a,oneTapSave:i,pinKey:T,pinnedToBoardId:n,viewParameter:o,viewType:d})),(0,O.jsxs)(v.Fragment,{children:[l,(0,O.jsx)(w.xu,{bottom:!0,left:g,padding:2,position:"absolute",right:!g,zIndex:R,children:Z})]})};var ti=n(993422);let ta=({index:e,carouselSlots:t,imageSpec:n,color:i,onError:a,onLoad:l,_fixCompletedOnLoad:r})=>(0,O.jsx)(w.kC,{alignItems:"stretch",direction:"row",justifyContent:"start",children:t.map((t,s)=>{let{slotId:o,title:d,details:c,imageSizeMap:u}=t,p=u?u[n]:null,m=p?p.url??"":"";return(0,O.jsx)(w.xu,{dangerouslySetInlineStyle:{__style:{transform:`translate(${-100*e}%, 0%)`,transition:"transform 0.25s ease-in-out"}},"data-test-id":`carousel-swiper-${o??s}`,minWidth:"100%",children:(0,O.jsx)(eE.Z,{_fixCompletedOnLoad:r,alt:d||c||"",color:i,fetchPriority:"auto",loading:"auto",naturalHeight:p?.height??1,naturalWidth:p?.width??1,onError:a,onLoad:l,src:m},o??s)},o??s)})});var tl=n(359422),tr=n(728593);let ts=void 0!==d?d:d=n(276454),to=({isInDesktopCarousel:e,pinKey:t})=>{let n=(0,j.ZP)(),i=(0,C.Z)(ts,t),{isAuthenticated:a}=(0,V.B)(),l=i?.entityId,r=(0,tr.Z)();return(0,O.jsxs)(w.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(17,17,17,0.4)"}},left:!0,position:"absolute",right:!0,top:!0,width:"100%",children:[(0,O.jsx)(w.xu,{alignItems:"center",bottom:!0,display:"flex",justifyContent:"center",left:!0,paddingX:2,position:"absolute",right:!0,top:!0,children:!e&&!a&&(0,O.jsx)(w.xv,{align:"center",color:"light",size:"400",weight:"bold",children:n._('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.')})}),!a&&e&&(0,O.jsx)(w.xu,{margin:1,position:"absolute",right:!0,top:!0,children:(0,O.jsx)(w.zx,{color:"red",fullWidth:!0,onClick:({event:e})=>{e.stopPropagation(),e.preventDefault(),r({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"click_context_menu_stela_save_button",desktopOptions:{modalType:"signup",modalOptions:{source:"saveButtonExp",container:"save",savePinId:l}}})},size:"md",text:n._('Save', 'PinCloseup.SaveButton.Text', 'Save button for users who are logged out/cannot save to a board to direct to login upsell'),type:"button"})})]})};var td=n(715824);function tc({boardUrl:e,boardName:t,isQuicksave:n,sectionName:i,sectionSlug:a}){let l=(0,j.ZP)(),r=(0,S.k6)(),s=new w.Ry(1),o=!!a&&`${e}${a}/`;return(0,O.jsx)(w.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{background:"rgb(0 0 0 / .4)"}},left:!0,position:"absolute",right:!0,top:!0,zIndex:s,children:(0,O.jsx)(w.xu,{alignItems:"start",bottom:!0,display:"flex",justifyContent:"center",left:!0,padding:4,position:"absolute",right:!0,top:!0,children:(0,O.jsx)(w.iP,{dataTestId:"saved-to-section-overlay-button",onTap:t=>{t.event.preventDefault(),r.push(n?"/me/":o||e)},children:(0,O.jsx)(w.xv,{color:"light",children:i?(0,ef.nk)(l._('Saved to {{sectionName}}', 'PinCard.SavedToSection.Overlay', 'Saved to section overlay'),{sectionName:(0,O.jsx)(w.xv,{color:"light",inline:!0,weight:"bold",children:(0,td.ZP)(i,22)},`pincard-${i}`)}):(0,ef.nk)(l._('Saved to {{boardName}}', 'PinCard.SavedToBoard.Overlay', 'Saved to board overlay'),{boardName:(0,O.jsx)(w.xv,{color:"light",inline:!0,weight:"bold",children:n||!t?l._('Profile', 'PinCard.SavedToProfile.Overlay', 'Part of string saying "Saved to Profile" after saving a Pin'):(0,td.ZP)(t,22)},`pincard-${t}`)})})})})})}var tu=n(865735),tp=n(162180),tm=n(415787),tg=n(179735),th=n(653296);let t_=(0,tg.Z)(()=>n.e(13704).then(n.bind(n,98234)),void 0,"PinVideoWithVisibilityWrapper"),ty=void 0!==c?c:c=n(865220),tf=void 0!==u?u:u=n(437947),tx="Left",tb="Right",tv=({width:e,height:t,minY:n,maxY:i})=>{let a=t=>e<=0||!t?"0%":Math.round(t/e*100)+"%";return{top:n<=0?"0%":a(-1*n*t),bottom:i>=1?"0%":a(-((1-i)*1)*t)}},tP=({children:e,margin:t,type:n})=>(0,O.jsx)(w.xu,{dangerouslySetInlineStyle:{__style:t?{marginTop:t.top,marginBottom:t.bottom}:{}},"data-test-id":"pin-visual-wrapper",position:"relative",children:(0,O.jsx)(w.xu,{"data-test-id":`inp-perf-pinType-${n}`,children:(0,O.jsx)(w.zd,{rounding:eF.mv,wash:!0,children:e})})}),tk=({boardKey:e,carouselIndex:t,clientTrackingParams:n,description:i,disableDefaultContextMenu:a,image:l,imageAltText:r,imageCrop:s,isBoardIdeas:o,isHovering:d,isInDesktopCarousel:c,isOneTapExploreLocalTab:u,isSquarePin:p,lazyLoadImage:m,onError:g,oneTapSave:h,onLoad:_,pinKey:y,priorityFetchImage:f,slotIndex:x,setIsLongPressEnabledForAuth:b,setCarouselIndex:P,surface:k,title:I,type:T,viewParameter:A,viewType:E})=>{let j;let F=(0,eO.Z)(),{checkExperiment:L}=(0,H.F)(),[D,R]=(0,v.useState)(!1),{isAuthenticated:Z}=(0,V.B)(),M=(0,X.ZP)(),K="desktop"===M,N=(0,e0.M)(),z=(0,C.Z)(ty,y),B=(0,C.Z)(tf,e),U=z?.entityId??"",G=z?.pinnedToBoard?.entityId&&!!N?.isSaved(U),W=z?.domain&&z?.link?"with-link":"without-link",$=(0,v.useRef)(Date.now()),Y=(0,v.useRef)(null),q=(0,eR.Z)(),Q=z?.carouselData,J=z?.isEligibleForPdp,ee=(0,th.I)(),{logContextEvent:et}=(0,eA.v)(),en=L("ads_show_carousel_on_mweb").anyEnabled,ei=(0,tp.Z)({pinKey:z,surface:k}),ea=(0,ec.nF)(),el=(0,S.TH)(),{scope:er}=(0,S.UO)(),es=(0,tu.Z)(k),eo="dominant"===es?z?.dominantColor??"":es,ed=(0,eC.Z)({skipActivation:!0}).isImpressionFixEnabled||ea.isImpressionFixEnabled,eu=(0,v.useCallback)(()=>{D||R(!0)},[D]);(0,v.useEffect)(()=>(en&&"undefined"!=typeof window&&window.addEventListener("scroll",eu),()=>{"undefined"!=typeof window&&window.removeEventListener("scroll",eu)}),[en,eu]),(0,v.useEffect)(()=>{d&&!Z&&q({action:"view",item:"unauth-video-autoplay-on-hover"})},[d,q,Z]),(0,v.useEffect)(()=>{let e=`board-image-preload-${x-1}`,t=document.getElementById(e)?.getAttribute("href")??"";ee&&5===E&&t&&(0,tm.nP)("www.blp.preloadImageCheck",{sampleRate:5,tags:{isAuthenticated:Z,deviceType:M,isEqual:t===l.url}})},[]);let ep=(0,tl.Z)(z),em=e=>{let n=Q?.carouselSlots?.length??0,i=t;e===tx&&t<n-1?i=t+1:e===tb&&t>0&&(i=t-1),P(i),ep({pinId:U,currentIndex:t,nextIndex:i,carouselData:{carouselSlots:Q?.carouselSlots?.map(({slotId:e})=>({id:e})),entityId:Q?.entityId??""},viewParameter:A,viewType:E,componentType:14887,isEligibleForPdp:J??!1})};if(!z)return null;let eg=(e,t)=>{let n=e.x-t.x,i=e.y-t.y;return Math.abs(n)>Math.abs(i)?n>0?tb:tx:i>0?"Down":"Up"},eh=en&&Q?(0,O.jsx)(w.xu,{display:"flex",marginEnd:1,marginStart:1,marginTop:3,position:"relative",children:(0,O.jsx)(ti.default,{addEllipsis:!0,alwaysShowNavigationArrows:!1,carouselData:{carouselSlots:Q.carouselSlots?.map(({slotId:e,title:t})=>({id:e,title:t})),entityId:Q.entityId??"",index:Q.index},carouselIndex:t,componentType:14888,ellipsisVariant:"dark",handleCarouselSwipe:e=>{P(e)},hideNavigationArrows:!0,pinKey:z,viewParameter:A,viewType:E})}):null,e_=en&&Q?(0,O.jsx)(ta,{_fixCompletedOnLoad:ed,carouselSlots:Q.carouselSlots?Q.carouselSlots.map(({slotId:e,details:t,imageSignature:n,title:i,imagesSpec_236x:a})=>({details:t,slotId:e,imageSignature:n,title:i,imageSizeMap:{"236x":{width:a?.width,height:a?.height,url:a?.url}}})):[],color:eo,imageSpec:"236x",index:t,onError:g,onLoad:_}):(0,O.jsx)(eE.Z,{_fixCompletedOnLoad:ed,alt:r||I||i||"",color:eo,fetchPriority:f?"high":"auto",fit:p?"cover":void 0,loading:m?"lazy":"auto",naturalHeight:l.height??1,naturalWidth:l.width??1,onError:g,onLoad:_,src:l.url??""}),ey=()=>(0,ej.C$)(el)?"homefeed":(0,ej.L6)(el)?"related_pins":(0,ej.En)(el)?"search":"unknown",ef=()=>(0,ej.C$)(el)?92:(0,ej.L6)(el)?140:(0,ej.En)(el)?(0,eL._R)((0,eL.oD)(er)):void 0,ex=L("ap_bmi_custom_activation_nux_revamp_mweb_v2",{dangerouslySkipActivation:!0}).anyEnabled||L("ap_bmi_res_custom_activation_nux_revamp_mweb_v2",{dangerouslySkipActivation:!0}).anyEnabled,eb=B?.layout==="quick_saves",ev=Z&&G&&!ex,{storyPinData:eP}=z,ek=(()=>{if(eP){let e=eP.pages;if(e&&e.length>0){let t=e&&e[0].blocks;if(t&&t.length>0){let e=t[0];if("StoryPinVideoBlock"===e.__typename&&3===e.blockType&&e.video&&e.video.videoList&&e.video.videoList.vHLSV3MOBILE)return{entityId:e.video.entityId,height:e.video.videoList.vHLSV3MOBILE.height??void 0,thumbnail:e.video.videoList.vHLSV3MOBILE.thumbnail??void 0,width:e.video.videoList.vHLSV3MOBILE.width??void 0,url:e.video.videoList.vHLSV3MOBILE.url??void 0}}}}return null})(),eS=z.videos?.videoList?.vHLSV4||z.videos?.videoList?.vHLSV3MOBILE||ek,ew="undefined"!=typeof window&&0===eD.ZP.getItem(eT._e);return j=K&&eS&&z&&!ew&&!["BoardCoverSelectablePin","VisualInspirationPin"].includes(k??"")?(0,O.jsx)(t_,{fallback:e_,isExperimentalPinRep:!1,isHovering:d,onError:g,onLoad:_,pinKey:z,viewParameter:A,viewType:E,...ek?{video:ek}:{}}):p?(0,O.jsx)(w.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:(0,O.jsx)(w.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},left:!0,position:"absolute",right:!0,top:!0,children:e_})}):e_,(0,O.jsxs)("div",{className:"PinCard__imageWrapper",style:{position:"relative"},children:[(0,O.jsxs)(w.xu,{dangerouslySetInlineStyle:{__style:{willChange:"transform",textDecoration:"none"}},"data-test-id":`pincard-${T}-${W}`,onContextMenu:e=>{let t=ef();"desktop"!==M&&(Z&&q({action:"click",item:"pin-feed"}),(!Z||t&&Z)&&(e.preventDefault(),e.stopPropagation()))},onTouchEnd:e=>{if("desktop"!==M){let t=ey(),n=Date.now()-$.current>500,i=Y.current;if(e.changedTouches&&e.changedTouches.length>0&&i){let l=e.changedTouches[0],r=eg({x:l.pageX,y:l.pageY},i),s=Math.pow(l.pageX-i.x,2)+Math.pow(l.pageY-i.y,2);if(!en||r!==tx&&r!==tb||n||D||(e.preventDefault(),e.stopPropagation(),em(r)),l&&s>100)return;n&&!Z&&"related_pins"===t?(a?.(),F({pinId:U,location:"related-pins-long-press"}),e.stopPropagation()):n&&Z&&(ef()&&(a?.(),b?.(!0),e.stopPropagation()),et({event_type:103,view_parameter:ef()}))}}},onTouchStart:e=>{if("desktop"!==M){R(!1);let t=ef();if(Z||q({action:"click",item:"pin-image",within:"related-pins"}),(!Z||t&&Z)&&a?.(),$.current=Date.now(),e.changedTouches&&e.changedTouches.length>0){let t=e.changedTouches[0];t&&(Y.current={x:t.pageX,y:t.pageY})}}},overflow:"hidden",position:"relative",rounding:4,children:[(0,O.jsx)(tn,{clientTrackingParams:n||"",isBoardIdeas:o,isOneTapExploreLocalTab:u,oneTapSave:h,pinKey:z,viewType:E,children:(0,O.jsx)(tP,{margin:s?tv({width:l.width??1,height:l.height??1,minY:s.minY,maxY:s.maxY}):void 0,type:T,children:j})}),ei&&!d&&(0,O.jsx)(eI.Z,{pinKey:z}),d&&K&&(0,O.jsx)(to,{isInDesktopCarousel:c,pinKey:z}),ev&&(0,O.jsx)(tc,{boardName:B?.name??"",boardUrl:B?.url??"",isQuicksave:eb,sectionName:h?.section?.title,sectionSlug:h?.section?.slug})]}),eh]})};var tS=n(39234),tw=n(206835);let tI={initial:{opacity:0,transition:"opacity 0.25s ease-in"},fadeIn:{opacity:.8,transition:"opacity 1s ease"}},tT=(e,t,n)=>(0,O.jsx)(w.xv,{color:"inverse",inline:!0,size:"200",weight:"bold",children:(0,O.jsx)(w.rU,{display:"inlineBlock",href:t,tapStyle:"none",underline:"hover",children:n})},e);function tA({color:e,getFeedbackText:t,margin:n,onUnfollow:i,showing:a,unfollowed:l}){let r=(0,j.ZP)(),[s,o]=(0,v.useState)(a?"fadeIn":"initial"),d=(0,v.useRef)(null),c=(0,eM.Z)();(0,v.useEffect)(()=>("initial"===s&&a&&(d.current=window.requestAnimationFrame(()=>o("fadeIn"))),()=>{d.current&&window.cancelAnimationFrame(d.current)}),[s,o,a]);let{subTitle:u,title:p,unfollow:m}=t(tT),g=p,h=u;return m&&l&&(g=m.title,h=m.subTitle),a&&(0,O.jsx)(w.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:e,...tI[s]}},left:!0,margin:n,position:"absolute",right:!0,rounding:4,top:!0,children:(0,O.jsx)(w.xu,{color:"dark",height:"100%",overflow:"auto",rounding:4,width:"100%",children:(0,O.jsxs)(w.xu,{"data-test-id":"reported-overlay",direction:"column",display:"flex",height:"100%",justifyContent:"between",padding:3,rounding:2,children:[(0,O.jsxs)(w.xu,{children:[(0,O.jsx)(w.X6,{color:"light",size:"400",children:g}),!!h&&(0,O.jsxs)(w.xu,{marginTop:1,children:[(0,O.jsx)(w.xv,{color:"light",inline:!0,size:"200",children:h}),(0,O.jsx)(w.xv,{color:"light",inline:!0,size:"200",weight:"bold",children:(0,O.jsx)(w.rU,{display:"block",href:"/edit",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')})})]})]}),!l&&m&&(0,O.jsx)(w.xu,{paddingY:1,children:(0,O.jsx)(w.zx,{color:"white",fullWidth:!0,onClick:()=>m?(0,tw.t)(m.action,m.actionOptions,i,c):void 0,text:r._('Unfollow', 'Text on the button to unfollow a specific board / user', 'Text on the button to unfollow a specific board / user')})})]})})})}var tE=n(385617),tC=n(96405),tj=n(891985),tF=n(383399),tL=n(812477),tD=n(230098),tR=n(778248),tO=n(151140);let tZ=void 0!==p?p:p=n(189186);function tM({carouselIndex:e,isSquarePin:t,pinKey:n,shouldDisplayMerchant:i}){let a=(0,S.TH)(),{isAuth:l}=(0,tF.Z)(),r=(0,X.HG)(),s=(0,C.Z)(tZ,n),o=a&&((0,ej.L6)(a)||(0,tL.Z)(a)||(0,ej.$Y)(a)),{calculateLineClamp:d,shownPrice:c}=(0,tO.Z)({isSquarePin:t,pinKey:s}),{title:u}=(0,tR.Z)({carouselIndex:e,pinKey:s}),p=(0,tD.Z)({isSquarePin:t,price:c,shouldDisplayMerchant:i})??13,m=c||o?22:0;return l&&r?80:l?64:p+21*d+(o?25:0)+(u&&r?m:0)}var tK=n(904015);let tN=(0,tg.Z)(()=>Promise.all([n.e(97270),n.e(84422),n.e(98839),n.e(95095)]).then(n.bind(n,511373)),void 0,"app-www-PinRep-PinRepFooter-PinRepFooterProduct"),tz=(0,tg.Z)(()=>Promise.all([n.e(97270),n.e(84422),n.e(98839),n.e(77902),n.e(23234)]).then(n.bind(n,922634)),void 0,"app-www-PinRep-PinRepFooter-PinRepFooterDefault"),tB=void 0!==m?m:m=n(207426);function tU({attributionOption:e,blockClickEvents:t,carouselIndex:n,componentType:i,dedupeVisualAnnotations:a,deepLinkProps:l,disableReaction:r,enableCollectionChips:s,feedback:o,feedbackType:d,imageUrl:c,imageOnlyOption:u,isConversationPin:p,isInFullWidthStory:m,isLongPressEnabledForAuth:g,isShoppingAffordancesExp:h,isSquarePin:_,pinCardDetailsMargin:y,pinKey:f,productTagParentPinId:x,setIsLongPressEnabledForAuth:b,shouldAllowProductPriceIndicator:P,showSeoMetadata:k,showVisitSiteButton:S,surface:I,trackingParams:T,trafficSource:A,userAvatarImageUrl:E,viewParameter:j,viewType:F}){let L=(0,X.HG)(),{isAuth:D}=(0,tF.Z)(),R=(0,C.Z)(tB,f),Z=tM({carouselIndex:n,isSquarePin:_,pinKey:R}),{isShopping:M,dWebNewOrResurrectedUser:K,showFooter:N}=(0,tK.Z)({attributionOption:e,disableReaction:r,feedback:o,imageOnlyOption:u,isInFullWidthStory:m,isShoppingAffordancesExp:h,pinKey:R,surface:I,trackingParams:T,viewParameter:j}),z=D&&L&&!(0,tj._J)(R.videoStatus)&&(N||(0,ei.Z)(I)&&!K)&&!M;return(0,O.jsx)(v.Fragment,{children:(0,O.jsx)(w.xu,{height:Z,children:z?(0,O.jsx)(tz,{attributionOption:e,disableReaction:r,enableCollectionChips:s,feedback:o,imageOnlyOption:u,isShoppingAffordancesExp:h,isSquarePin:_,pinKey:R,surface:I,viewParameter:j}):(0,O.jsx)(tN,{attributionOption:e,blockClickEvents:t,carouselIndex:n,componentType:i,dedupeVisualAnnotations:a,deepLinkProps:l,disableReaction:r,enableCollectionChips:s,feedback:o,feedbackType:d,imageOnlyOption:u,imageUrl:c,isConversationPin:p,isInFullWidthStory:m,isLongPressEnabledForAuth:g,isShoppingAffordancesExp:h,isSquarePin:_,pinCardDetailsMargin:y,pinKey:R,productTagParentPinId:x,setIsLongPressEnabledForAuth:b,shouldAllowProductPriceIndicator:P,showSeoMetadata:k,showVisitSiteButton:S,surface:I,trackingParams:T,trafficSource:A,userAvatarImageUrl:E,viewParameter:j,viewType:F})})})}var tH=n(999358),tG=n(784501),tV=n(740366),tW=n(530903),t$=n(829196),tY=n(786890),tX=n(346645),tq=n(127566);let tQ=void 0!==g?g:g=n(965149),tJ=e=>{let{adDestinationUrl:t,link:n,domain:i}=e;return[t,n,i]};var t0=n(529264),t1=n(119549),t2=n(563646);let t3=void 0!==h?h:h=n(726005);var t4=n(993641),t6=n(845873),t8=n(66560),t7=n(861673),t9=n(743023);let t5=(0,tg.Z)(()=>Promise.all([n.e(97270),n.e(84422),n.e(98839),n.e(95095)]).then(n.bind(n,511373)),void 0,"app-www-PinRep-PinRepFooter-PinRepFooterProduct"),ne=void 0!==_?_:_=n(280948);function nt({disableReaction:e,enableCollectionChips:t,feedback:n,imageOnlyOption:i,isInFullWidthStory:a,isShoppingAffordancesExp:l=!1,isSquarePin:r,pinKey:s,productTagParentPinId:o,showVisitSiteButton:d,surface:c,viewParameter:u}){let p=(0,C.Z)(ne,s),m=tM({carouselIndex:0,isSquarePin:r,pinKey:p});return(0,O.jsx)(w.xu,{height:m,children:(0,O.jsx)(t5,{disableReaction:e,enableCollectionChips:t,feedback:n,imageOnlyOption:i,isInFullWidthStory:a,isShoppingAffordancesExp:l,isSquarePin:r,pinKey:p,productTagParentPinId:o,showVisitSiteButton:d,surface:c,viewParameter:u})})}var nn=n(422578),ni=n(837373);let na=(0,v.lazy)(()=>Promise.all([n.e(20316),n.e(65770)]).then(n.bind(n,386935))),nl=(0,v.lazy)(()=>Promise.all([n.e(36075),n.e(15015)]).then(n.bind(n,794758))),nr=void 0!==f?f:f=n(368313),ns=void 0!==x?x:x=n(103283),no=void 0!==b?b:b=n(763008);function nd(){let{logStat:e}=(0,ec.Yg)();return(0,q.Z)(()=>{e("related_pin_impression_nested")}),null}let nc=e=>!!(e.promoter&&!e.isDownstreamPromotion);function nu({attributionOption:e,auxData:t,blockClickEvents:n,boardKey:i,borderStyle:a,componentType:l,debugInfo:r,disableAppUpsell:s,disableReaction:o,disableHover:d=!1,duploConversationPin:c,duploDedupeVisualAnnotations:u,duploDisablePinCardPadding:p,duploFeedItemProps:m,duploIsSquarePin:g,duploLazyLoadImage:h,duploOneTapSave:_,duploPinCardDetailsMargin:y,duploPriorityFetchImage:f,duploShouldAddNiiSearchParamToImageUrls:x,duploShouldAllowProductPriceIndicator:b,duploShouldTrackPinEvents:k,feedback:E,forcedHover:L=!1,imageOnlyOption:D,impressionData:R,isEggsUi:Z,isInDesktopCarousel:Y,isInFullWidthStory:ec,isShoppingAffordancesExp:e_=!1,objectIdStr:ey,pin:ef,pinImageCrop:ex,pinKey:eb,pinOwner:ev,productTagParentPinId:eP,renderPinSaveTooltip:ek,resolution:eS,rounding:eI,saveButtonOptions:eT,selectionState:eA="no-selection",showVisitSiteButton:eE,slotIndex:eC,surface:ej,topLevelTrafficSource:eF,topLevelTrafficSourceDepth:eL,trackingParams:eD,trafficSource:eO,viewData:eZ,viewParameter:eN,viewType:ez,userAvatarImageUrl:eB}){let eU;let eH=(0,H.F)(),eG=(0,j.ZP)(),eV=(0,S.TH)(),eW=(0,X.HG)(),e$=(0,eh.Z)(),eY=(0,G.yz)(),{isAuthenticated:eX}=(0,V.B)(),eq=eX&&eW,eQ=!eX&&!eW,eJ=(0,A.g)(),{viewedSharedPins:e0}=(0,P.v9)(({session:e})=>e),{getPinFeedbackStatus:e1,setPinFeedbackStatus:e2}=(0,tE.K)(),[e3,e4]=(0,v.useState)(!1),[e6,e8]=(0,v.useState)(!1),[e7,e9]=(0,v.useState)(!1),[e5,te]=(0,v.useState)(ef.carouselData?.index??0),[tt,tn]=(0,v.useState)(!1),ti=(0,v.useRef)(null),{showEnabledSaveBehavior:ta}=(0,t4.Yh)(ej&&eo.ZF.includes(ej)||(0,ei.Z)(ej)),tl=(0,C.Z)(ns,eb),tr=(0,C.Z)(no,i),{checkExperiment:ts}=eH,{anyEnabled:to}=ts("web_dco_collection_ads"),{anyEnabled:td}=ts("aid_web_collection_pin_data"),{anyEnabled:tc}=ts("dl_collection_ads_gridclick_type"),{anyEnabled:tu}=ts("uniPin_footer"),{anyEnabled:tp}=ts("web_memoize_pin_rep_props"),tg=ef.entityId,{adData:th,aggregatedPinData:t_,collectionPin:ty,dpaCreativeType:tf}=ef,tx=ef.isPromoted||!0,{itemData:tb}=ty||{},{pinTagsChips:tv}=t_||{},tP=th?.collectionGridClickType||0,tw=th?.ceAltImageSignature,tI=(td&&tb||tv)&&to&&tx&&(3===tP||2===tP||tc),{images:tT,imageSpec_136x136:tj,imageSpec_170x:tF,imageSpec_236x:tL,imageSpec_474x:tD,imageSpec_736x:tO,imageSpec_orig:tZ}=function({pin:e,duploShouldAddNiiSearchParamToImageUrls:t}){let n=e=>t&&e?{...e,url:e.url&&(0,t0.H5)(e.url)}:e,i=n(e.imageSpec_136x136),a=n(e.imageSpec_170x),l=n(e.imageSpec_236x),r=n(e.imageSpec_474x),s=n(e.imageSpec_736x),o=n(e.imageSpec_orig);return{images:{...[["136x136",i],["170x",a],["236x",l],["474x",r],["736x",s],["orig",o]].reduce((e,[t,n])=>(n&&(e[t]={dominant_color:n.dominantColor??void 0,height:n.height??void 0,url:n.url??void 0,width:n.width??void 0}),e),{})},imageSpec_136x136:i,imageSpec_170x:a,imageSpec_236x:l,imageSpec_474x:r,imageSpec_736x:s,imageSpec_orig:o}}({pin:ef,duploShouldAddNiiSearchParamToImageUrls:x}),tM=Object.keys(tT).reduce((e,t)=>t&&tT[t]?.url?{...e,[t]:tT[t].url}:e,{}),tK=(0,B.Z)(ef,tM);!function({pinKey:e,imageUrl:t,placeholder:n,viewParameter:i}){let a=(0,C.Z)(t3,e),l=(0,tS.Z)(a),r=(0,X.HG)(),s=(0,t2.z)();(0,q.Z)(()=>{if(s&&!r&&"image"===l&&t){let e={pin:{dominantColor:a.dominantColor,link:a.link,mobileLink:a.mobileLink,richMetadata:a.richMetadata&&{__typename:"RichPinDataView",article:a.richMetadata.article&&{__typename:"ArticleMetadata"},recipe:a.richMetadata.recipe&&{__typename:"RecipeMetadata"},products:a.richMetadata.products?.map(()=>({__typename:"RichPinProductMetadata"}))},trackedLink:a.trackedLink},derived:{homefeedRecommendationReason:92===i&&a.recommendationReason?{reason:a.recommendationReason.reason,reasonId:a.recommendationReason.reasonId}:null,imageUrl:t,placeholder:n&&{width:n.width,height:n.height,url:n.url}}};s.setData(a.entityId,e)}})}({pinKey:ef,placeholder:tT["236x"]||tT["136x136"],imageUrl:tK,viewParameter:eN}),(0,q.Z)(()=>{if(!eX&&0===eC&&3070===eN){let e=eV.pathname,{imageSignature:t,entityId:n,imageSpec_236x:i,description:a}=ef;(0,eg.H$)(e,t,n,i&&{dominant_color:i.dominantColor??void 0,height:i.height??void 0,url:i.url,width:i.width??void 0},a)}});let tN=(0,v.useCallback)(()=>e4(!1),[]),tz=tp?tN:()=>e4(!1),tB=(0,v.useCallback)(()=>e4(!0),[]),t6=tp?tB:()=>e4(!0),t8=92===eN&&(e0&&e0[tg])?.inviteCode,t5=[tL,tF,tj,tO,tD,tZ].find(e=>e&&e.url)||{width:1,height:1,url:""};if(g)t5={height:136,url:tL?.url,width:136};else if("high-res"===eS){let e=ef.imageSpec_736x||ef.imageSpec_orig||ef.imageSpec_474x||ef.imageSpec_236x;t5={height:e?.height,url:e?.url,width:e?.width}}let ne=ef.videos?.videoList?.v720P,nn=(0,em.Z)({isEligibleForPdp:ef.isEligibleForPdp,isOosProduct:ef.isOosProduct,isStaleProduct:ef.isStaleProduct,pinShoppingFlags:ef.shoppingFlags??void 0}),nr=nc(ef),nu=e1({pinId:tg}),np=(0,F.hP)({boardFollowedByMe:!!ef.board?.followedByMe,feedbackType:E?.type,viewParameter:eN,promotion:ef&&ef.promoter&&{isDownstreamPromotion:!!ef.isDownstreamPromotion},pinnerFollowedByMe:!!ef.pinner?.explicitlyFollowedByMe,recommendationReason:ef.recommendationReason&&{hasBoard:!!ef.recommendationReason.board,reason:ef.recommendationReason.reason??void 0}}),nm=(0,z.Z)({feedbackType:np,pinKey:ef}),ng=(0,N.Z)({feedbackType:np,getRecommendationDescription:nm,isPromoted:nr,pinKey:ef}),{altText:nh,autoAltText:n_,descriptionHtml:ny,seoUrl:nf,storyPinData:nx}=ef,nb=nx?.isDeleted,nv=(0,tS.Z)(ef),nP="product"===nv&&!eX,nk=(0,tW.Z)({pinKey:ef,viewParameter:eN}),{deepLinkProps:nS,title:nw,description:nI,clientTrackingParams:nT,altText:nA}=function({autoAltText:e,auxData:t,carouselIndex:n,carouselSlots:i,ceImageSignature:a,commerceAuxData:l,componentType:r,descriptionHtml:s,disableAppUpsell:o,dpaCreativeType:d,duploDedupeVisualAnnotations:c,duploFeedItemProps:u,enableCollectionChips:p,isPromotedPin:m,pinKey:g,pinAltText:h,pinRepDataType:_,slotIndex:y,seoUrl:f,trackingParams:x,trafficSource:b,topLevelTrafficSource:v,topLevelTrafficSourceDepth:P,viewParameter:k,viewType:w,visualAnnotation:I}){let T;let E=(0,C.Z)(tQ,g),{checkExperiment:F}=(0,H.F)(),L=(0,j.ZP)(),D=(0,S.TH)(),{country:R,isAuthenticated:O}=(0,V.B)(),Z=(0,tX.Z)(),M=(0,eM.Z)(),K=(0,eR.Z)(),N=(0,X.HG)(),z=(0,A.g)(),{attributionSourceId:B,carouselData:U,description:G,entityId:W,gridTitle:Y,richSummary:q}=E,Q=()=>{let e=(0,tq.Z)(x,E.trackingParams);if(M({view_type:w,view_parameter:k,element:E.storyPinDataId?12372:35,event_type:101,component:r,object_id_str:W,clientTrackingParams:e,aux_data:{commerce_data:l,grid_index:y,image_signature:E.imageSignature,...t}}),"oneTap"!==_&&M({event_type:8948,view_type:w,view_parameter:k,object_id_str:W,clientTrackingParams:e,aux_data:{image_signature:E.imageSignature,commerce_data:l,closeup_navigation_type:"click",grid_index:y,cosmic_ray_count:"3",...t}}),!O)switch(K({action:"click",item:"pin"}),w){case 3:(0,$.NC)("click_pin_related_image");break;case 5:(0,$.NC)("click_board_pin_image");break;case 210:(0,$.NC)("click_topic_pin_image");break;case 605:(0,$.NC)("click_shopping_category_pin_image");break;case 606:(0,$.NC)("click_videos_category_pin_image")}"oneTap"===_&&(p?(M({view_type:3,event_type:8948,component:15166,element:15927,object_id_str:W,aux_data:{collection_pin_click_position:0,click_type:"clickthrough"},event_data:{dcoEventData:{clientCreativeType:d,ceAltImageSignature:a}}}),M({view_type:3,event_type:12,component:15166,element:15927,object_id_str:W,aux_data:{collection_pin_click_position:0,client_creative_type:d},event_data:{dcoEventData:{clientCreativeType:d,ceAltImageSignature:a}}}),M({view_type:3,event_type:7762,component:15166,element:15927,object_id_str:W,event_data:{dcoEventData:{clientCreativeType:d,ceAltImageSignature:a}}})):(M({event_type:8948,view_type:w,view_parameter:k,object_id_str:W,clientTrackingParams:e,aux_data:{image_signature:E.imageSignature,closeup_navigation_type:"click",click_type:"clickthrough",cosmic_ray_count:"2",...t}}),M({event_type:12,view_type:w,view_parameter:k,element:E.storyPinDataId?12372:35,component:r,object_id_str:W,aux_data:{commerce_data:l,grid_index:y,image_signature:E.imageSignature,...t,is_promoted:m},clientTrackingParams:e}),M({component:r,event_type:13,view_type:3,clientTrackingParams:e,aux_data:{closeup_navigation_type:"web_closeup",image_signature:E.imageSignature},object_id_str:W})))},{title:J,description:ee}=(0,tR.U)({haveCarouselData:!!U,carouselIndex:n,carouselSlots:i,pinDescription:G,gridTitle:Y,richSummaryDisplayName:q?.displayName}),et=null;F("ads_show_carousel_on_mweb").anyEnabled&&U&&i&&(T=i[n]).link&&"oneTap"===_&&(et=T.link);let en=(0,tq.Z)((D&&D.state||{}).trackingParams||x,E.trackingParams),ei=I;c&&ei&&(ei=c({pinId:W,visualAnnotations:ei}));let ea=(0,tY.rw)(E.description??"",s||"",ei,h||"",e||"");null===et&&(et="oneTap"===_?E.trackedLink||E.link:O?(0,tY.BY)(W):(0,tY.bN)({pinId:W,seoUrl:f}));let el=null;if(!Z&&m&&window.document.featurePolicy?.allowsFeature("attribution-reporting"))try{let e=(0,t$.m_)(B??"0",tJ(E),!0,E.campaignId,E.advertiserId);el=`attributionsrc=${encodeURIComponent(e)}`}catch(e){(0,tm.nP)("webapp.arapi.click.funnel",{sampleRate:.1,tags:{status:"failed",error:(0,eK.Z)(e,"name"),message:(0,eK.Z)(e,"message")}})}return{deepLinkProps:{accessibilityLabel:ea||J||ee||L._('Pin', 'Pin accessibility label', 'Pin accessibility label'),country:R,deeplinkUri:et,external:"oneTap"===_,externalQueryParams:{pin:W,client_tracking_params:x},features:el,isAppUpsellDisabled:o,onTouch:e=>{if(Q(),u?.onPinClick?.(),N){let t=494===w;if(e.metaKey||t)(0,$.My)(`unauth_pin_rep.click.cmd_button_pressed.${String(k)}`),e.preventDefault(),window.open(`/pin/${W}/`,"_blank").focus();else if(!O&&z){let{pinImageClickHandler:t}=z;t({event:e,pinId:W,linkTarget:"duploClientNav",seoUrl:f})}}else O||(0,$.My)("unauth_mweb_pin_rep.click",{viewType:w})},pinCategory:E.category,pressState:"none",rounding:4,title:L._('See this Pin', 'App Upsell Text after clicking on Pin in feed', 'App Upsell Text after clicking on Pin in feed'),to:{pathname:et,state:{trackingParams:x,trafficSource:b,topLevelTrafficSource:v,topLevelTrafficSourceDepth:P}},upsellType:"direct",viewParameter:k,viewType:w,clientTrackingParams:en},title:J,description:ee,clientTrackingParams:en,altText:ea}}({autoAltText:n_,auxData:t,carouselIndex:e5,carouselSlots:ef.carouselData?.carouselSlots,ceImageSignature:tw,commerceAuxData:nn,componentType:l,descriptionHtml:ny,disableAppUpsell:s,dpaCreativeType:tf,duploDedupeVisualAnnotations:u,duploFeedItemProps:m,enableCollectionChips:tI,isPromotedPin:nr,pinKey:ef,pinAltText:nh,pinRepDataType:nv,seoUrl:nf,slotIndex:eC,trackingParams:eD,trafficSource:eO,topLevelTrafficSource:eF,topLevelTrafficSourceDepth:eL,viewParameter:eN,viewType:ez,visualAnnotation:ef.pinJoin?.visualAnnotation}),nE=p?0:(0,tV.Z)({isDesktop:eW}),nC=e_&&!!ej,nj=(0,v.useMemo)(()=>({componentType:l,contextLogData:t,slotIndex:eC,viewData:eZ,viewParameter:eN,viewType:ez}),[t,l,eC,eZ,eN,ez]),[nF,nL]=(0,v.useState)(!1),nD=(0,el.Z)(L),{isHovering:nR,hoverTransitionState:nO}=nD,{handleMouseOver:nZ,handleMouseLeave:nM}=nD;d&&(nR=!1,nO="inactive");let nK=(0,t1.Z)({forcePrimary:nF,hoverTransitionState:nO,isEggsUi:Z,pinKey:ef,surface:ej}),nN=(0,Q.Z)(ef.entityId),nz=e=>nL(e),nB=e=>{nL(e)},nU=n?w.xu:eu.MZ,nH=(0,ea.Z)({isEggsUi:Z,pinKey:ef,isORBACProfileManager:!1,saveButtonOptions:eT,surface:ej}),nG=["selected-image-only","deselected-image-only"].includes(eA),nV="selected-image-only"===eA;return ex&&"backend"!==ex||g||!ef.imageCrop||"number"!=typeof ef.imageCrop.minY||"number"!=typeof ef.imageCrop.maxY||(eU={minY:ef.imageCrop.minY,maxY:ef.imageCrop.maxY}),(0,O.jsx)(es.B,{value:nj,children:(0,O.jsx)(ep.dL,{auxData:{commerce_data:nn,pwa_type:eY,...t},component:l,duploShouldTrackPinEvents:k,impressionData:{richTypes:ef.shoppingFlags||[],imageURL:t5.url||"",isPromoted:nc(ef),attributionSourceId:ef.attributionSourceId,link:ef.link,campaignId:ef.campaignId,advertiserId:ef.advertiserId,adDestinationUrl:ef.adDestinationUrl,dcoEventData:{clientCreativeType:tf,ceAltImageSignature:tw},domain:ef.domain,...ne?{isNativeVideoAndWatchable:!!ne&&!!ne.url&&!!ne.height&&!!ne.width||void 0,videoIdStr:ne&&ef.videos?.entityId||void 0}:{},...R},isInDesktopCarousel:Y,isPaused:!e3,loggingId:ef.entityId,objectIdStr:ey,slotIndex:eC,trackingParams:eD,viewData:eZ,viewParameter:eN,viewType:ez,children:({impressionTrackerRef:t})=>(0,O.jsxs)(w.xu,{ref:t,children:[k&&(0,O.jsx)(nd,{}),(0,O.jsxs)(w.xu,{borderStyle:eq&&"ConversationView"===ej?a:"none","data-test-id":"pin","data-test-pin-id":tg,marginBottom:eW?0:2,onBlur:eQ?void 0:nM,onFocus:eQ?void 0:nZ,onMouseEnter:eQ?void 0:nZ,onMouseLeave:eQ?void 0:nM,overflow:eq&&"ConversationView"===ej?"hidden":"visible",position:"relative",rounding:eq&&"ConversationView"===ej?eI:void 0,children:[(0,O.jsxs)(w.xu,{"data-test-id":nA||nw||nI?"pin-with-alt-text":"pin-missing-alt-text",children:[(0,O.jsxs)(w.xu,{position:"relative",children:[["selected","deselected"].includes(eA)&&(0,O.jsx)(en.Z,{selected:"selected"===eA}),(0,O.jsxs)(nU,{...nS,children:[!!t8&&(0,O.jsx)(ew,{inviteCode:t8}),nb?(0,O.jsx)(t9.default,{isPinRep:!0}):tl&&(0,O.jsx)(w.xu,{dangerouslySetInlineStyle:{__style:e6?{WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",KhtmlUserSelect:"none",UserSelect:"none"}:{}},"data-test-id":nA||nw||nI?"pin-with-alt-text":"pin-missing-alt-text",marginBottom:0,onContextMenu:eW&&(ef.nativeCreator||ef.pinner)?e=>{e.stopPropagation(),e.preventDefault(),e$((0,O.jsx)(W.Z,{children:(0,O.jsx)(nl,{desktopContextMenuState:{x:e.clientX,y:e.clientY},onSendButtonClick:()=>null,pinKey:tl})})),(0,$.My)("pcons.dweb.pin_rep.context_menu.open")}:void 0,padding:nE,children:(0,O.jsx)(tk,{boardKey:tr,carouselIndex:e5,clientTrackingParams:nT,description:nI&&(!nk||0===eN)?nI.trim():void 0,disableDefaultContextMenu:()=>e8(!0),image:t5&&{dominant_color:t5.dominantColor??void 0,height:t5.height??void 0,url:t5.url??void 0,width:t5.width??void 0},imageAltText:nA,imageCrop:eU,isBoardIdeas:3173===eN||4079===eN||13184===l,isHovering:nR,isInDesktopCarousel:!!Y,isPromotedPin:nr,isSquarePin:g,lazyLoadImage:h,onError:tz,oneTapSave:_,onLoad:t6,onPinLinkClick:m?.onPinLinkClick,pinKey:tl,priorityFetchImage:f,setCarouselIndex:te,setIsLongPressEnabledForAuth:e9,slotIndex:eC,surface:ej,title:nk&&0!==eN?void 0:nw,type:nv,viewParameter:eN,viewType:ez})})]}),eq&&ef&&ej&&(0,O.jsx)(et.Z,{visibility:nK.primaryContentVisibility,children:(0,O.jsx)(tC.Z,{children:(0,O.jsx)(T.Z,{clientTrackingParams:nT,derivedSaveButtonOptions:nH,forcePrimaryContent:nz,hidePinBetterSaveDropdown:!1,isEggsUi:Z,onToggleModal:nB,pinKey:ef,renderPinSaveTooltip:ek,showEnabledSaveBehavior:ta,surface:ej})})}),(0,O.jsx)(et.Z,{visibility:nK.actionBarVisibility,children:(0,O.jsx)(tC.Z,{children:eW&&(0,O.jsxs)(w.xu,{bottom:!0,display:"flex",position:"absolute",width:"100%",children:[ef?.domain&&ef?.link&&!Y&&!(ef.isGoLinkless&&!eX&&ts("closeup_unauth_ctx_is_go_linkless_web").anyEnabled)&&(0,O.jsx)(w.xu,{marginEnd:2,children:(0,O.jsx)(U.Z,{children:(0,O.jsx)(M,{clientTrackingParams:nT,maxDomainLength:12,onClick:m?.onPinLinkClick||eJ?.pinLinkClickHandler||(()=>{}),pinKey:ef})})}),!Y&&(0,O.jsxs)(w.xu,{alignItems:"stretch",display:"flex",justifyContent:"end",marginBottom:4,marginEnd:4,marginStart:"auto",children:[(0,O.jsxs)(w.xu,{ref:ti,marginEnd:2,children:[(0,O.jsx)(U.Z,{children:(0,O.jsx)(t7.Z,{hoveringInFeed:!0,onClick:()=>{},onDefaultSendButtonClick:e=>{e.stopPropagation(),e.preventDefault(),tn(!0)},pinId:tg,pinKey:ef,sendButtonBgColor:"lightGray",viewParameter:eN})}),tt&&eW&&(0,O.jsx)(W.Z,{children:(0,O.jsx)(na,{anchor:ti.current,component:194,objectId:tg||"",objectType:1,onDismiss:()=>tn(!1),title:eG._('Send this pin', 'PinCloseup.ShareMenu.Title', 'title for share menu popover'),viewParameter:eN,viewType:3})})]}),(0,O.jsx)(U.Z,{children:(0,O.jsx)(ed.Z,{forcePrimaryContent:nz,hoveringInFeed:!0,onMobileTap:()=>{tn(!tt)},onSendButtonClick:()=>{},pinKey:ef,viewParameter:eN})})]})]})})}),nG&&(0,O.jsx)(er.Z,{isSelected:nV}),(0,O.jsx)(et.Z,{visibility:nK.secondaryContentVisibility,children:(0,O.jsx)(tC.Z,{children:(0,O.jsx)(K.Z,{hidden:"none"===nK.secondaryContentVisibility||nN,inPinRep:!0,pinKey:ef,pinOwner:ev,surface:ej})})}),eX&&eW&&(0,O.jsx)(et.Z,{visibility:nK.accessoryContentVisibility,children:(0,O.jsx)(tC.Z,{children:(0,O.jsx)(ee.Z,{handleCarouselSwipe:e=>{te(e)},pinKey:ef})})})]}),tI&&tl&&(0,O.jsx)(w.xu,{dangerouslySetInlineStyle:{__style:{marginTop:1}},children:(0,O.jsx)(J.Z,{isMobile:!0,pinKey:tl})}),!tu&&nC&&eW&&(0,O.jsx)(w.xu,{margin:1,children:(0,O.jsx)(I.Z,{isShoppingAffordancesExp:e_,pinKey:ef,surface:ej})}),!tu&&"image-only"!==D&&(eX||eW)&&(0,O.jsxs)(w.xu,{marginBottom:1,marginTop:1,children:[!eX&&eW&&3475!==eN&&43!==eN&&(0,O.jsx)(ni.ZP,{componentType:l,dedupeVisualAnnotations:u??null,mode:"inlineWithScrollArrows",pinKey:ef,viewObjectId:eZ?.view_object_id,viewParameter:eN,viewType:ez}),!nP&&(!nC||eX)&&tl&&(0,O.jsx)(tH.Z,{attributionOption:e,blockClickEvents:n,carouselIndex:e5,componentType:l,deepLinkProps:nS,disableReaction:o,feedback:E,feedbackType:np,imageOnlyOption:D,imageUrl:tK,isConversationPin:c,isInFullWidthStory:ec,isLongPressEnabledForAuth:e7,isShoppingAffordancesExp:e_,isSquarePin:g,pinCardDetailsMargin:y,pinKey:tl,setIsLongPressEnabledForAuth:e9,shouldAllowProductPriceIndicator:b,surface:ej,trackingParams:eD,trafficSource:eO,viewParameter:eN,viewType:ez})]}),!tu&&nP&&(!nC||!eW)&&(0,O.jsx)(nt,{disableReaction:o,enableCollectionChips:tI,feedback:E,imageOnlyOption:D,isInFullWidthStory:ec,isShoppingAffordancesExp:e_,isSquarePin:g,pinKey:ef,productTagParentPinId:eP,showVisitSiteButton:eE,surface:ej,viewParameter:eN}),tu&&(0,O.jsx)(tU,{attributionOption:e,blockClickEvents:n,carouselIndex:e5,componentType:l,dedupeVisualAnnotations:u,deepLinkProps:nS,disableReaction:o,enableCollectionChips:tI,feedback:E,feedbackType:np,imageOnlyOption:D,imageUrl:tK,isConversationPin:c,isInFullWidthStory:ec,isLongPressEnabledForAuth:e7,isShoppingAffordancesExp:e_,isSquarePin:g,pinCardDetailsMargin:y,pinKey:ef,productTagParentPinId:eP,setIsLongPressEnabledForAuth:e9,shouldAllowProductPriceIndicator:b,showSeoMetadata:m?.showSeoMetadata,showVisitSiteButton:eE,surface:ej,trackingParams:eD,trafficSource:eO,userAvatarImageUrl:eB,viewParameter:eN,viewType:ez})]}),"reported"===nu?(0,O.jsx)(tA,{color:ef.dominantColor??"",getFeedbackText:()=>({title:eG._('Reported', 'message displayed after reporting a pin', 'message displayed after reporting a pin'),subTitle:eG._('Thanks! Your feedback helps us keep the Pinterest community safe.', 'message displayed after reporting a pin', 'message displayed after reporting a pin')}),pinId:tg,showing:!0}):(0,O.jsx)(tA,{color:ef.dominantColor??"",getFeedbackText:ng,margin:nE,onUnfollow:()=>e2({pinId:tg,pinFeedbackStatus:"unfollowed"}),pinId:tg,showing:!!nu,unfollowed:"unfollowed"===nu,viewParameter:eN,viewType:ez}),!tu&&!eW&&m?.showSeoMetadata&&!nP&&(0,O.jsx)(tG.Z,{dedupeVisualAnnotations:u,pinKey:ef,userAvatarImageUrl:eB,viewObjectId:eZ?.view_object_id,viewParameter:eN,viewType:ez}),r]})]})})})}let np=e=>{let t=e=>e&&{entityId:e.id,username:e.username},n=e=>e?{dominantColor:e.dominant_color??null,height:e.height??null,url:e.url??null,width:e.width??null}:null;return{adDestinationUrl:e.ad_destination_url??null,advertiserId:e.advertiser_id??null,altText:e.alt_text??null,attribution:e.attribution?{embed:e.attribution.embed?{type:e.attribution.embed.type??null}:null}:null,attributionSourceId:e.attribution_source_id??null,autoAltText:e.auto_alt_text??null,board:e.board?{entityId:e.board.id??"",followedByMe:e.board.followed_by_me??null,name:e.board.name??null,privacy:e.board.privacy??null,url:e.board.url??null,...E.tx}:null,campaignId:e.campaign_id?String(e.campaign_id):null,category:e.category??null,debug:e.debug,descriptionHtml:e.description_html??null,description:e.description??null,domain:e.domain??null,dominantColor:e.dominant_color??null,embed:e.embed?{height:e.embed.height??null,src:e.embed.src??null,type:e.embed.type??null,width:e.embed.width??null}:null,entityId:e.id,__id:e.node_id??"",imageCrop:e.image_crop?{minY:e.image_crop.min_y??null,maxY:e.image_crop.max_y??null}:null,imageSignature:e.image_signature??null,imageSpec_136x136:n(e.images?.["136x136"]),imageSpec_170x:n(e.images?.["170x"]),imageSpec_236x:n(e.images?.["236x"]),imageSpec_474x:n(e.images?.["474x"]),imageSpec_736x:n(e.images?.["736x"]),imageSpec_orig:n(e.images?.orig),isDownstreamPromotion:e.is_downstream_promotion??null,isEligibleForPdp:e.is_eligible_for_pdp??null,isOosProduct:e.is_oos_product??null,isPromoted:e.is_promoted??null,isStaleProduct:e.is_stale_product??null,link:e.link??null,nativeCreator:t(e.native_creator)??null,pinnedToBoard:e.pinned_to_board?{entityId:e.pinned_to_board.id??"",...E.tx}:null,pinJoin:e.pin_join?{visualAnnotation:e.pin_join.visual_annotation??null}:null,pinner:e.pinner?{entityId:e.pinner.id,explicitlyFollowedByMe:e.pinner.explicitly_followed_by_me??null,username:e.pinner.username??null}:null,promoter:t(e.promoter),seoUrl:e.seo_url??null,shoppingFlags:e.shopping_flags??null,sponsorship:e.sponsorship?{creator:e.sponsorship.creator?{entityId:e.sponsorship.creator.id??"",username:e.sponsorship.creator.username??null}:null,sponsor:e.sponsorship.sponsor?{entityId:e.sponsorship.sponsor.id??"",username:e.sponsorship.sponsor.username??null}:null}:null,storyPinData:e.story_pin_data?{isDeleted:e.story_pin_data.is_deleted??null}:null,title:e.title??null,trackingParams:e.tracking_params??null,videos:e.videos?{entityId:e.videos.id??"",videoList:e.videos.video_list?{v720P:e.videos.video_list.V_720P?{duration:e.videos.video_list.V_720P.duration??null,height:e.videos.video_list.V_720P.height??null,width:e.videos.video_list.V_720P.width??null,url:e.videos.video_list.V_720P.url??null}:null,vHLSv4:e.videos.video_list.V_HLSV4?{duration:e.videos.video_list.V_HLSV4.duration??null,height:e.videos.video_list.V_HLSV4.height??null,width:e.videos.video_list.V_HLSV4.width??null,url:e.videos.video_list.V_HLSV4.url??null}:null}:null}:null,recommendationReason:e.recommendation_reason?{reason:e.recommendation_reason.reason??null,board:e.recommendation_reason.board?{name:e.recommendation_reason.board.name??null,url:e.recommendation_reason.board.url??null}:null}:null,carouselData:e.carousel_data?{index:e.carousel_data.index??null,carouselSlots:e.carousel_data.carousel_slots?e.carousel_data.carousel_slots.map(e=>({title:e.title??null,details:e.details??null,link:e.link??null})):[]}:null,adData:e.ad_data?{collectionGridClickType:e.ad_data.collection_grid_click_type??null,ceAltImageSignature:e.ad_data.ce_alt_image_signature??null}:null,aggregatedPinData:e.aggregated_pin_data?{pinTagsChips:e.aggregated_pin_data.pin_tags_chips?e.aggregated_pin_data.pin_tags_chips.map(()=>({__typename:"PinTagChipImagesPerSpec"})):null}:null,collectionPin:e.collection_pin?{itemData:e.collection_pin.item_data?e.collection_pin.item_data.map(()=>({__typename:"CollectionPinItem"})):null}:null,dpaCreativeType:e.dpa_creative_type??null}},nm=(e,t,n)=>"graphqlRef"===e?t:n?{type:"deprecated",data:n}:null,ng=(e,t,n)=>"graphqlRef"===e?t.pinnedToBoard||t.board:n?{type:"deprecated",data:n}:null;function nh({pinId:e,duploQueryRef:t,...i}){let a=(0,Y.Qy)(),{data:l,childDataKey__DEPRECATED:r}=(0,E.sr)(nr,t?{type:"graphqlRef",data:t}:{type:"deprecated",data:e},{type:"pin",useLegacyAdapter:np}),s=t?"graphqlRef":"deprecated",o=(0,t8.S6)()(e),d=(0,t6.gC)()(l?.pinnedToBoard?.entityId||l?.board?.entityId||"");return!function(e){let t=(0,C.Z)(void 0!==y?y:y=n(57894),e),i=t?.__id,a=t?.entityId,l=(0,nn.useRelayEnvironment)();(0,v.useEffect)(()=>{null!=a&&null!=i&&(0,nn.commitLocalUpdate)(l,e=>{let t=`client:root:v3GetPinQuery(pin:"${a}")`;if(!e.get(t)){let n=e.get(i),l=e.create(t,"V3GetPin");null!=n&&(l.setLinkedRecord(n,"data"),e.getRoot().setLinkedRecord(l,"v3GetPinQuery",{pin:a}))}})},[i,a,l])}(l??null),!!l&&(0,O.jsx)(nu,{...i,boardKey:ng(s,l,d),debugInfo:a&&l.debug&&(0,O.jsx)(Y.Wu,{data:l.debug}),duploQueryRef:"graphqlRef"===r.type?r.data:null,pin:l,pinKey:nm(s,l,o)})}},96405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(883119),a=n(785893);function l({children:e,additionalStyles:t={}}){return(0,a.jsx)(i.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{pointerEvents:"none",...t}},"data-test-id":"contentLayer",left:!0,position:"absolute",right:!0,top:!0,children:e})}},999358:(e,t,n)=>{"use strict";n.d(t,{Z:()=>es});var i,a,l,r,s=n(667294);n(167912);var o=n(883119),d=n(602185),c=n(47848),u=n(730212),p=n(632859),m=n(127566),g=n(616550),h=n(948195),_=n(809887),y=n(320752),f=n(488792),x=n(989820),b=n(559028),v=n(144326),P=n(282999),k=n(812477),S=n(115440),w=n(297728),I=n(617280),T=n(240760),A=n(750077),E=n(1006),C=n(154785),j=n(410150),F=n(410287),L=n(39234),D=n(302749),R=n(785893);function O({maxRating:e,rating:t,text:n}){return(0,R.jsxs)(o.xu,{alignItems:"center",display:"flex",marginBottom:0,children:[(0,R.jsx)(D.Z,{max_rating:e||"",rating:t||""}),n&&(0,R.jsx)(s.Fragment,{children:(0,R.jsx)(o.xu,{marginStart:1,overflow:"hidden",children:(0,R.jsx)(o.xv,{lineClamp:1,size:"100",children:n})})})]})}let Z=void 0!==i?i:i=n(715898),M=e=>e&&e.includes("/user/default")?void 0:e,K=e=>!!(e.promoter&&!e.isDownstreamPromotion);var N=n(530903),z=n(778248),B=n(179445),U=n(845873),H=n(371668),G=n(182510),V=n(151385);let W=void 0!==a?a:a=n(816836);function $(e){let{lineClamp:t,onlyShowCurrentPrice:n,pinKey:i}=e,a=(0,c.Z)(W,i),l=(0,V.kb)({hasLinkDomain:!!a.linkDomain,richMetadata:a.richMetadata&&{recipe:a.richMetadata.recipe&&{fromAggregatedData:a.richMetadata.recipe.fromAggregatedData},products:(a.richMetadata.products??[]).map(e=>({name:e.name,offerSummary:e.offerSummary}))},richSummary:a.richSummary&&{products:(a.richSummary.products??[]).map(e=>({name:e.name,offerSummary:e.offerSummary}))}});if(!l||!l.price)return null;let{maxPrice:r,minPrice:d,price:u,standardPrice:p}=l;return(0,R.jsxs)(s.Fragment,{children:[a.richSummary?.siteName&&(0,R.jsx)(o.xv,{color:"default",lineClamp:t,size:"100",children:a.richSummary?.siteName}),(0,R.jsx)(o.xu,{alignItems:"center","data-test-id":"priceLego_price",display:"flex",children:(0,R.jsx)(H.Z,{currentPrice:(0,G.Z)({maxPrice:r,minPrice:d,price:u}),onlyShowCurrentPrice:n,originalPrice:p,textSize:"100"})})]})}var Y=n(381783),X=n(933834);let q=void 0!==l?l:l=n(154672),Q=(0,s.lazy)(()=>n.e(47630).then(n.bind(n,47630))),J=({title:e,lineClamp:t=2,showShoppingIndicator:n})=>{let i=(0,j.HG)(),a=(0,C.Z)();return(0,R.jsx)(o.xu,{"data-test-id":"related-pins-title",children:(0,R.jsx)(o.iP,{onTap:()=>{a({action:"click",item:"related-pins-title"})},children:(0,R.jsxs)(o.xv,{lineClamp:t,size:i?"200":"100",weight:"bold",children:[n&&(0,R.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{top:-1}},display:"inlineBlock",marginEnd:1,position:"relative",children:(0,R.jsx)(y.Z,{size:11})}),e]})})})},ee=({pin:e})=>{let t=(0,S.Z)({pinKey:e,surface:void 0});return(0,R.jsx)(o.xv,{size:"100",children:t})},et=(e,t,n,i)=>{let a=i._('Ad', 'pinCardDetails.tapArea.avatar', 'The avatar of the creator of this pin.'),l=i._('Promoted', 'pinCardDetails.tapArea.avatar', 'The avatar of the creator of this pin.'),r=i._('Sponsored', 'pinCardDetails.tapArea.avatar', 'The avatar of the creator of this pin.');return e&&n?e.startsWith("enabled_ad_label")?a:e.startsWith("enabled_promoted_label")?l:e.startsWith("enabled_sponsored_label")?r:l:t},en=({credits:e,hasAffiliatedProducts:t,hidePinMetadata:n,isPromotedPin:i,isSponsoredPin:a,logCreditsClick:l,marginTop:r,pinDescription:d,pin:c,pinnedToBoardId:p,pinType:m,showPriceIndicatorInPinCardDetails:h,title:_})=>{let y=(0,v.ZP)(),f=(0,g.TH)(),x=(0,C.Z)(),{isAuthenticated:b}=(0,u.B)(),S=(0,j.HG)(),I=(0,g.k6)(),T=_||d||"oneTap"===m,{pinner:A}=c,L=(0,U.gC)()(p||String(c.board?.entityId)),D=i&&c.promoter?.entityId===c.nativeCreator?.entityId,O=!h,{checkExperiment:Z}=(0,w.F)(),{group:M}=Z("simpler_ad_attribution");return(0,R.jsxs)(o.xu,{flex:"grow",children:[(0,R.jsx)(o.xu,{display:"flex",marginTop:n?0:r??1,children:(0,R.jsxs)(o.xu,{flex:"grow",children:[_&&(0,R.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},marginTop:1,overflow:"hidden",children:!n&&(0,R.jsx)(J,{title:_})}),h&&(0,R.jsx)($,{pinKey:c})]})}),O&&e?(0,R.jsx)(F.Z,{onTouch:t=>{t.stopPropagation(),t.preventDefault(),e.link&&I.push(e.link),l()},pressState:"none",children:(0,R.jsx)(o.xu,{children:(!n||a||D)&&(0,R.jsx)(o.xu,{direction:"row",display:"flex",marginBottom:n?2:0,marginTop:0,position:"relative",children:(0,R.jsx)(o.xu,{"data-test-id":"related-pins-name",direction:"column",display:"flex",flex:"grow",justifyContent:"center",children:(0,R.jsx)(o.iP,{onTap:()=>{x({action:"click",item:"related-pins-name"})},children:(0,R.jsxs)(s.Fragment,{children:[(!a&&!n||D)&&(0,R.jsx)(o.xu,{marginTop:0,children:(0,R.jsx)(o.xv,{lineClamp:a||t?void 0:1,size:S?"200":"100",weight:S?"bold":"normal",children:e.subtitle})}),e.title&&(0,R.jsx)(o.xu,{marginTop:1,children:(0,R.jsx)(o.xv,{color:"subtle",lineClamp:1,size:"100",weight:"normal",children:et(M,e.title,i,y)})})]})})})})})}):S&&!!A&&((0,P.L6)(f)||(0,k.Z)(f)||(0,P.$Y)(f))&&(0,R.jsx)(o.xu,{display:"flex",marginTop:T?2:0,children:(0,R.jsxs)(o.xu,{"data-test-id":"related-pins-name",direction:"column",display:"flex",flex:"grow",justifyContent:"center",children:[(0,R.jsx)(o.rU,{href:`/${A.username||""}/`,onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,E.NC)("click_board_pin_attribution_board"),x({action:"click",item:"related-pins-name"})},underline:"hover",children:(0,R.jsx)(o.xv,{size:b?"200":"100",weight:"bold",children:A.fullName||A.username})}),L&&"protected"!==L.privacy?(0,R.jsx)(o.xu,{"data-test-id":"related-pin-text-below-name",children:(0,R.jsx)(o.rU,{href:L.url??"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,E.NC)("click_board_pin_attribution_profile"),x({action:"click",item:"related-pin-text-below-name"})},underline:"hover",children:(0,R.jsx)(o.xv,{size:"200",children:L.name??""})})}):null]})})]})},ei=({componentType:e,credits:t,hasAffiliatedProducts:n,hidePinMetadata:i,isPromotedPin:a,isShoppingAffordancesExp:l=!1,isSponsoredPin:r,logCreditsClick:c,marginTop:p,pinDescription:m,pin:h,pinnedToBoardId:y,pinReactionCounts:f,pinType:x,shouldShowRecipeReview:S,shouldShowReactions:L,showPriceIndicatorInPinCardDetails:D,surface:Z,title:M})=>{let K=(0,v.ZP)(),N=(0,g.TH)(),z=(0,C.Z)(),{isAuthenticated:B}=(0,u.B)(),H=(0,j.HG)(),G=(0,g.k6)(),{checkExperiment:V}=(0,w.F)(),W=M||m||"oneTap"===x,{pinner:q,richSummary:et}=h,en=(0,U.gC)()(y||String(h.board?.entityId)),ei=a&&h.promoter?.entityId===h.nativeCreator?.entityId,ea=14339===e,el=!B&&(0,P.am)(N),er=!i&&!el,es=(er||r||ei)&&!el,eo=(r||n)&&!ei&&!el,ed=!B&&H?2:p||(W&&er?0:1),ec=!D,eu=l&&!!Z&&!!h.isEligibleForPdp,ep=!!h.isEligibleForPdp&&!(r||ei)&&!eu&&!D&&V("mweb_shopping_indicators").anyEnabled,em=!!h.isEligibleForPdp&&!(r||ei)&&!eu&&!D&&"enabled_source"===V("mweb_shopping_indicators").group;return(0,R.jsxs)(o.xu,{flex:"grow",children:[(0,R.jsx)(o.xu,{display:"flex",marginTop:er?p??1:0,children:(0,R.jsxs)(o.xu,{flex:"grow",children:[eo&&(0,R.jsx)(o.xu,{marginBottom:1,children:(0,R.jsx)(o.xu,{flex:"grow",overflow:"hidden",children:(0,R.jsx)(Y.Z,{hasAffiliatedProducts:n,isPromoted:a,sponsorName:h.sponsorship?(0,R.jsx)(o.xv,{inline:!0,size:"100",weight:"bold",children:t?.subtitle}):void 0,sponsorshipStatus:h.sponsorship?.status})})}),M&&(er||el)&&!eu&&(0,R.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},marginTop:1,overflow:"hidden",children:(0,R.jsx)(J,{lineClamp:ea||em?1:void 0,showShoppingIndicator:ep,title:M})}),H&&!B&&m&&!(0,P.$Y)(N)&&!(0,P.E0)(N)&&(0,R.jsx)(o.xu,{dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},"data-test-id":"desc",marginTop:1,overflow:"hidden",children:(0,R.jsx)(o.iP,{onTap:()=>{z({action:"click",item:"related-pins-description"})},children:(0,R.jsx)(o.xv,{inline:!0,size:H?"200":"100",children:m})})}),eu&&(0,R.jsx)(_.Z,{isShoppingAffordancesExp:l,pinKey:h,surface:Z}),em&&(0,R.jsx)(ee,{pin:h}),D&&(0,R.jsx)($,{lineClamp:ea?1:void 0,onlyShowCurrentPrice:ea,pinKey:h}),S&&(0,R.jsxs)(o.xu,{alignItems:"center","data-test-id":"recipe_review_container",display:"flex",marginTop:1,children:[(0,R.jsx)(O,{maxRating:et?.aggregateRating?.bestRating||"",rating:et?.aggregateRating?.ratingValue||"",text:""}),!!et?.displayCookTime&&(0,R.jsxs)(s.Fragment,{children:[(0,R.jsx)(o.xu,{paddingX:1,children:(0,R.jsx)(o.xv,{size:"100",children:"·"})}),(0,R.jsx)(o.xv,{size:"100",children:function({m:e,h:t,rm:n,rh:i,i18n:a}){return e&&(!t||i<=0)?(0,T.nk)(a._('{{mins}}m', 'number showing minutes to complete a recipe', 'number showing mnutes to complete a recipe'),{mins:n.toString()}):t?(0,T.nk)(a._('{{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}({...(0,I.u)(et.displayCookTime),i18n:K})})]})]})]})}),L&&f&&Object.keys(f).length>0&&(0,R.jsx)(o.xu,{display:void 0,height:18,justifyContent:"center",children:(0,R.jsx)(d.Z,{name:"SafeSuspense_PinCardDetails_GridAggregation",children:(0,R.jsx)(A.Z,{children:(0,R.jsx)(Q,{pinReactionCounts:f})})})}),ec&&t?(0,R.jsx)(F.Z,{onTouch:e=>{e.stopPropagation(),e.preventDefault(),t.link&&G.push(t.link),c()},pressState:"none",children:(0,R.jsx)(o.xu,{children:es&&(0,R.jsxs)(o.xu,{"data-test-id":"pin-attribution",direction:"row",display:"flex",marginBottom:er?0:2,marginTop:ed,position:"relative",children:[(0,R.jsx)(o.xu,{"data-test-id":"related-pins-avatar-image",display:void 0,flex:"none",justifyContent:"center",children:(0,R.jsx)(o.iP,{onTap:()=>{z({action:"click",item:"related-pins-avatar-image"})},children:(0,R.jsx)(b.qE,{accessibilityLabel:t.title||t.subtitle||K._('Creator\'s avatar', 'pinCardDetails.tapArea.avatar', 'The avatar of the creator of this pin.'),name:t.title||"",outline:!1,size:"sm",src:t.avatar||void 0})})}),(0,R.jsx)(o.xu,{"data-test-id":"related-pins-name",direction:"column",display:"flex",flex:"grow",justifyContent:"center",marginStart:1,children:(0,R.jsx)(o.iP,{onTap:()=>{z({action:"click",item:"related-pins-name"})},children:(0,R.jsxs)(s.Fragment,{children:[t.title&&(0,R.jsx)(o.xv,{lineClamp:1,size:"100",weight:r&&!ei||n?"normal":"bold",children:t.title===q?.fullName&&(q?.isVerifiedMerchant||q?.verifiedIdentity?.verified)?(0,R.jsx)(X.Z,{badgeSize:"sm",badgeSpacing:2,fullName:t.title,verifiedType:q.isVerifiedMerchant?"verifiedMerchant":"verifiedIdentity"}):t.title}),t.subtitle?(!r&&er||ei)&&(0,R.jsx)(o.xv,{lineClamp:r||n?void 0:1,size:H?"200":"100",weight:H?"bold":"normal",children:t.subtitle}):!B&&en&&"protected"!==en.privacy?(0,R.jsx)(o.xu,{"data-test-id":"related-pin-text-below-name",children:(0,R.jsx)(o.rU,{href:B?en.url??"":en.url?.toLowerCase()??"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,E.NC)("click_board_pin_attribution_profile"),z({action:"click",item:"related-pin-text-below-name"})},underline:"hover",children:(0,R.jsx)(o.xv,{size:"200",children:en.name})})}):null]})})})]})})}):H&&!!q&&((0,P.L6)(N)||(0,k.Z)(N)||(0,P.$Y)(N))&&(0,R.jsxs)(o.xu,{display:"flex",marginTop:2,children:[(0,R.jsx)(o.xu,{"data-test-id":"related-pins-avatar-image",flex:"none",children:(0,R.jsx)(o.iP,{onTap:()=>{z({action:"click",item:"related-pins-avatar-image"})},children:(0,R.jsx)(b.qE,{name:`/${B?q.username||"":q.username?.toLowerCase()||""}/`,size:"sm",src:q.imageSmallUrl??void 0})})}),(0,R.jsxs)(o.xu,{"data-test-id":"related-pins-name",direction:"column",display:"flex",flex:"grow",justifyContent:"center",marginStart:1,children:[(0,R.jsx)(o.rU,{href:`/${B?q.username||"":q.username?.toLowerCase()||""}/`,onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,E.NC)("click_board_pin_attribution_board"),z({action:"click",item:"related-pins-name"})},underline:"hover",children:(0,R.jsx)(o.xv,{size:B?"200":"100",weight:"bold",children:q.fullName||q.username})}),en&&"protected"!==en.privacy?(0,R.jsx)(o.xu,{"data-test-id":"related-pin-text-below-name",children:(0,R.jsx)(o.rU,{href:B?en.url??"":en.url?.toLowerCase()??"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,E.NC)("click_board_pin_attribution_profile"),z({action:"click",item:"related-pin-text-below-name"})},underline:"hover",children:(0,R.jsx)(o.xv,{size:"200",children:en.name??""})})}):null]})]})]})},ea=({carouselIndex:e,disableReaction:t,pinKey:n,trackingParams:i,viewParameter:a,viewType:l,...r})=>{let{isAuthenticated:o}=(0,u.B)(),d=(0,j.HG)(),p=(0,f.Z)(),{checkExperiment:g}=(0,w.F)(),_=g("simpler_ad_attribution").anyEnabled,y=(0,c.Z)(q,n),b=(0,N.Z)({pinKey:y,viewParameter:a}),{board:P,entityId:k,isDownstreamPromotion:S,isPromoted:I,pinnedToBoard:T,promoter:A,reactionCountsData:E,richSummary:C,shouldOpenInStream:F,sponsorship:D,storyPinData:O,storyPinDataId:U,trackingParams:H,videos:G}=y,V=function(e,t){let n=(0,v.ZP)(),i=(0,c.Z)(Z,e),a=({user:e,linkToBoard:t})=>({link:t?i.board?.url||`/pin/${i.entityId}/`:e?.username&&`/${e.username}/`||"",avatar:M(e?.imageMediumUrl)||M(e?.imageSmallUrl)});if(K(i))return i.sponsorship&&i.promoter?.entityId!==i.nativeCreator?.entityId?{title:i.nativeCreator?.fullName,subtitle:i.promoter?.fullName,...a({user:i.nativeCreator})}:{title:n._('Promoted by', 'Grid pin annotation', 'Grid pin annotation'),subtitle:i.promoter?.fullName,...a({user:i.promoter})};if(i.sponsorship?.creator)return{title:i.nativeCreator?.fullName,subtitle:i.sponsorship.sponsor?.fullName,...a({user:i.nativeCreator})};if(!i.isEligibleForPdp){if(i.nativeCreator)return{title:i.nativeCreator.fullName,subtitle:"",...a({user:i.nativeCreator})};switch(t){case 3375:if(!i.linkDomain?.officialUser?.isPrimaryWebsiteVerified)return;let e=i.storyPinData?.hasProductPins?i.nativeCreator:i.linkDomain.officialUser;return{title:"",subtitle:e?.fullName,...a({user:e})};case 0:case 3173:return i.storyPinData?.hasProductPins?{title:"",subtitle:i.nativeCreator?.fullName,...a({user:i.nativeCreator,linkToBoard:!0})}:{title:i.board&&"protected"===i.board.privacy?n._('Saved by', 'Grid pin annotation', 'Grid pin annotation'):i.pinner?.fullName||"",subtitle:"",...a({user:i.pinner,linkToBoard:!0})};default:return}}}(y,a),W=!!O?.hasProductPins,$=!!(A&&!S),Y=!!D,X=T?.entityId??"",Q=(0,L.Z)(y),{isEligibleForStaticImageIdeaPin:J}=(0,h.Z)(F??void 0,U),ee="recipe"===Q&&!b&&!!C?.aggregateRating?.reviewCount,{description:et,title:ea}=(0,z.Z)({carouselIndex:e,pinKey:y}),el=E?.reduce((e,{reactionCount:t,reactionType:n})=>({...e,[String(n??0)]:t??0}),{}),er=(0,s.useCallback)(()=>{p({view_type:3,element:27,event_type:102,object_id_str:k,component:U?230:void 0,clientTrackingParams:(0,m.Z)(i,H),aux_data:{pin_id:k,...D?.creator&&D.sponsor?{creator_id:D.creator.entityId,sponsor_id:D.sponsor.entityId}:{}}})},[p,k,i,H,D,U]),es=(0,x._P)({id:1000107}),eo=es?.display_data.hideDesc||!1,ed=!t&&(0,B.J6)({boardIsCollaborative:P?.isCollaborative,isDownstreamPromotion:S,isEligibleForStaticImageIdeaPin:J,isPromoted:I,storyPinDataId:U,videosId:G?.entityId})&&3475!==a&&606!==l&&!(es&&es.display_data.hideReactions)&&(!d||!!o||!g("closeup_unauth_remove_reactions_grid_dweb").anyEnabled)&&(!o||!g("closeup_auth_remove_reactions_grid_mweb").anyEnabled),ec={...r,credits:V,hasAffiliatedProducts:W,hidePinMetadata:eo,isSponsoredPin:Y,isPromotedPin:$,logCreditsClick:er,pin:y,pinDescription:et,pinnedToBoardId:X,pinReactionCounts:el,pinType:Q,shouldShowRecipeReview:ee,shouldShowReactions:ed,title:ea};return _&&$?(0,R.jsx)(en,{...ec}):(0,R.jsx)(ei,{...ec})},el=(0,n(179735).Z)(()=>Promise.all([n.e(20316),n.e(44530),n.e(28547),n.e(5570)]).then(n.bind(n,303373)),{ssr:!1}),er=void 0!==r?r:r=n(242956);function es({blockClickEvents:e,carouselIndex:t,componentType:n,deepLinkProps:i,disableReaction:a,feedback:l,feedbackType:r,imageUrl:g,isConversationPin:h,isLongPressEnabledForAuth:_,isShoppingAffordancesExp:y,isSquarePin:f,pinCardDetailsMargin:x,pinKey:b,setIsLongPressEnabledForAuth:v,shouldAllowProductPriceIndicator:P,surface:k,trackingParams:S,trafficSource:w,viewParameter:I,viewType:T}){let{isAuthenticated:A}=(0,u.B)(),E=(0,s.useRef)(null),C=e?o.xu:p.MZ,j=(0,c.Z)(er,b),{storyPinData:F,trackingParams:L}=j,D=(0,m.Z)(S,L),O=F?.isDeleted,Z=!P&&("shop_feed"===w||14339===n);return(0,R.jsxs)(o.xu,{position:"relative",children:[(0,R.jsx)(C,{...i,children:(0,R.jsx)(o.xu,{ref:E,bottom:!0,left:!0,position:"absolute",right:!0,top:!0})}),(0,R.jsx)(o.iP,{accessibilityLabel:i?.accessibilityLabel,onTap:()=>{E.current?.click()},children:(0,R.jsxs)(o.xu,{display:"flex",height:f?Z?104:72:void 0,marginEnd:x||1,marginStart:x||1,marginTop:0,position:"relative",children:[j&&(0,R.jsx)(ea,{carouselIndex:t,componentType:n,disableReaction:a,isShoppingAffordancesExp:y,marginTop:x,pinKey:j,showPriceIndicatorInPinCardDetails:Z,surface:k,trackingParams:S,viewParameter:I,viewType:T}),(0,R.jsx)(o.xu,{display:"flex",right:!0,children:A&&!O&&!h&&(0,R.jsx)(o.xu,{marginStart:1,marginTop:x,children:(0,R.jsx)(o.xu,{height:26,width:24,children:(0,R.jsx)(d.Z,{name:"SafeSuspense_Pin_ContextualMenu",children:(0,R.jsx)(el,{bestPinImgSrc:g,carouselIndex:t,feedback:l,feedbackType:r,isLongPressEnabledForAuth:_,pinKey:j,setIsLongPressEnabledForAuth:v,trackingParams:S||D,viewParameter:I,viewType:T})})})})})]})})]})}},784501:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c}),n(167912);var i,a=n(883119),l=n(47848),r=n(154785),s=n(844819),o=n(785893);let d=void 0!==i?i:i=n(429478);function c({componentType:e,dedupeVisualAnnotations:t,pinKey:n,userAvatarImageUrl:i,viewObjectId:c,viewParameter:u,viewType:p}){let m=(0,l.Z)(d,n),g=(0,r.Z)();return(0,o.jsx)(a.xu,{"data-test-id":"related-pins-title",children:(0,o.jsx)(a.iP,{fullWidth:!1,onTap:()=>{g({action:"click",item:"related-pins-title"})},children:(0,o.jsx)(s.Z,{componentType:e,dedupeVisualAnnotations:t,pinKey:m,userAvatarImageUrl:i,viewObjectId:c,viewParameter:u,viewType:p})})})}},865735:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(225669);function a(e){return i.zl.includes(e??"")||["ShoppingSquareGridDomainNoMetadata","ShoppingDynamicHeightGrid","SearchAdsOnlyModule"].includes(e??"")?"transparent":"dominant"}},740366:(e,t,n)=>{"use strict";function i({isDesktop:e}){return e?0:1}n.d(t,{Z:()=>i})},230098:(e,t,n)=>{"use strict";function i({isSquarePin:e,price:t,shouldDisplayMerchant:n}){if(t&&e)return n?90:68}n.d(t,{Z:()=>i})},530903:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i,a=n(667294);n(167912);var l=n(989820),r=n(47848),s=n(89393),o=n(383399);let d=void 0!==i?i:i=n(339455);function c({pinKey:e,viewParameter:t}){let n=(0,o.Z)(),{isAuth:i}=n,{richSummary:c}=(0,r.Z)(d,e),u=(0,l._P)({id:1000107}),p=!!(u&&500678===u.experience_id),m=i&&(0,s.Z)(n.createdAt),g=p&&!(c&&43===t&&!m||3375===t);return(0,a.useMemo)(()=>({imageOnlyAllAttributionHidden:g}),[g])}},165647:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(89393),a=n(876597),l=n(383399);function r(){let e=(0,l.Z)();return e.isAuth&&((0,i.Z)(e.createdAt)||(0,a.Z)(null,e))&&!e.isPartner}},136095:(e,t,n)=>{"use strict";function i({surface:e,isShoppingAffordancesExp:t}){let n=["BoardShoppingModule","PinterestPicksFeed","ProductOnlySearchItem","ShoppingCatalogsProductsMetadata","ShoppingCarousel","ShoppingDynamicHeightGrid","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ShoppingGridShippedMetadata","ShoppingGridShippedMetadataWithVisitButton","ShoppingGridSmall","ShoppingGridSmallCarousel","ShoppingModule","ShoppingTool","ProductPinRetrieval","VisualInspirationShoppingPin","SearchAdsOnlyModule"];return t&&n.push("BaseBoardPinGrid"),e&&n.includes(e)}n.d(t,{Z:()=>i})},184009:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(414373),a=n(165647);function l({surface:e,imageOnlyOption:t}){let n=(0,a.Z)();return"TodayArticleFeed"===e&&(n=!1),"default"!==t&&(n="image-only"===t),(0,i.Z)(e)&&(n=!1),"ShoppingSquareGridDomainNoMetadata"===e&&(n=!0),n}},991443:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(167912);var i,a=n(640498),l=n(47848);let r=void 0!==i?i:i=n(766114);function s({orbacSubjectId:e,pinKey:t,viewer:n}){let i=(0,l.Z)(r,t);if(!n.isAuth)return!1;let{creatorAnalytics:s}=i,o=!!i.storyPinDataId,d=!!i.videos?.videoList,c=!(o||d)&&0!==Object.keys(i.aggregatedPinData?.creatorAnalytics?._30dRealtime||{}).length,u=i.board?.privacy===a.ZP.BoardPrivacy.PUBLIC,p=(i.board?.privacy===a.ZP.BoardPrivacy.PROTECTED||u)&&!i.isRepin&&[n.id,e].includes(i.pinner?.entityId);return c||0!==Object.keys(s?._30dRealtime||{}).length||n.isPartner&&p||o&&p}},518051:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i,a=n(667294);n(167912);var l=n(860575),r=n(182510),s=n(47848);let o=void 0!==i?i:i=n(286906);function d({pinKey:e}){let{richSummary:t}=(0,s.Z)(o,e),n=(0,l.Xx)(),i=null,d=null,{offerSummary:c}=t?.products?.[0]||{};if(c&&(i=c.standardPrice,d=(0,r.Z)({maxPrice:c.maxPrice,minPrice:c.minPrice,price:c.price})??null),n){let{offerSummary:e}=n;e&&(i=e.standard_price??null,d=e.price||e.max_price||null)}let u=d||i;return(0,a.useMemo)(()=>({shownPrice:u,productCurrentPrice:d,productOriginalPrice:i}),[u,d,i])}},904015:(e,t,n)=>{"use strict";n.d(t,{Z:()=>F});var i,a=n(667294);n(167912);var l=n(860575),r=n(111161),s=n(47848),o=n(836350),d=n(89393),c=n(876597),u=n(115440),p=n(297728),m=n(730212),g=n(648089),h=n(410150),_=n(383399),y=n(95073),f=n(361728),x=n(491281),b=n(920185),v=n(127566),P=n(165647),k=n(136095),S=n(184009),w=n(991443),I=n(518051),T=n(717648),A=n(115642),E=n(903066),C=n(508434);let j=void 0!==i?i:i=n(963213);function F({attributionOption:e,disableReaction:t,feedback:n,imageOnlyOption:i,isShoppingAffordancesExp:F,isInFullWidthStory:L,pinKey:D,surface:R,trackingParams:O,viewParameter:Z}){let M=(0,p.F)(),K=(0,h.HG)(),{isBot:N}=(0,m.B)(),z=(0,_.Z)(),{isAuth:B}=z,U=(0,s.Z)(j,D),{board:H,isDownstreamPromotion:G,isEligibleForPdp:V,isShoppable:W,link:$,nativeCreator:Y,pinner:X,promoter:q,richSummary:Q,sponsorship:J,storyPinDataId:ee,storyPinData:et}=U,en=(0,S.Z)({surface:R,imageOnlyOption:i}),ei=function({isShoppingAffordancesExp:e=!1,surface:t}){let{closeupWithinMasonryEnabled:n,peekCloseupEnabled:i,viewportSize:a}=(0,A.x4)(),l=e?T.Z.shoppingAffordancesProductContainer:T.Z.productContainer;return l=n?T.Z.closeupWithinMasonryProductContainer:l,{...l=i&&"lg"===a?T.Z.peekCloseupEnabledLargeProductContainer:l,..."VisualInspirationShoppingPin"===t?{paddingTop:"8px"}:{}}}({isShoppingAffordancesExp:F,surface:R}),ea=!!q&&!G,el=(0,l.Xx)(),er=(0,u.Z)({pinKey:U,surface:R,prioritizeMerchant:!!V&&!ea}),es=!!R&&!["ShoppingPackageItem","ShoppingSquareGridDomain"].includes(R)&&!ea&&!en&&!!er,eo=!!(B&&X&&X.entityId===z.id),ed=(0,C.Z)({disableReaction:t,isOwnPin:eo,isPromotedPin:U.isPromoted,pinKey:U,surface:R});"AuthHomefeed"!==R||ea||(ed=!1),"ConversationView"===R&&M.checkExperiment("sg_dweb_convo_ui_update").anyEnabled&&(es=!1),er=es?er:void 0;let ec=(0,b.Z)({isGroupBoard:!!H?.isCollaborative,surface:R,pinKey:U}),eu=el?.title?el.title:ec,ep=en?"":eu,em=ep||er,eg=!!em,eh=W&&!V&&!ea&&R&&r.Wo.includes(R)?M.checkExperiment("web_plp_learn").group:"",e_=[r.MH.ENABLED_COPY,r.MH.ENABLED_TAG_COPY,r.MH.ENABLED_FLASHLIGHT_COPY,r.MH.EMPLOYEES].includes(eh)||!ep&&eh===r.MH.ENABLED_TAG,ey=H?.collaboratorCount,ef=!!(("number"==typeof ey&&ey>0||H?.isCollaborative)&&"BaseBoardPinGrid"===R),ex=(0,P.Z)(),eb=(0,o.P)()||z.isEligibleForImageOnlyGrid,ev=e;(ex&&!ev||eb)&&(ev="image-only");let eP=(0,x.Z)({feedbackType:n?.type,viewParameter:Z,pinKey:U}),ek=(0,f.Z)({attributionOption:ev,feedbackType:eP,isEligibleForPdp:!!V,isGroupBoard:ef,showImageOnly:en,surface:R,isDownstreamPromotion:G,hasNativeCreator:!!Y,hasPromoter:!!q,hasSponsorship:!!J,storyPinDataId:ee}),eS=(0,y.Z)({isPromoted:!!ea,showSource:es,attributionType:ek,showShoppingCopy:e_}),{shownPrice:ew,productCurrentPrice:eI,productOriginalPrice:eT}=(0,I.Z)({pinKey:U}),eA=Q?.url||$,eE=(0,g.Z)({url:eA})?"nofollow":"none",eC=!N&&K&&B&&((0,d.Z)(z.createdAt)||(0,c.Z)(null,z)),ej=(0,k.Z)({surface:R,isShoppingAffordancesExp:F}),eF=!ea&&ej?"shopping":"standard",eL=(0,w.Z)({pinKey:U,viewer:z}),eD=!!(ep||eF||er||"none"!==ek||ed||eI||eT||eL),eR=(0,E.Z)({hasFooterContent:eD,isGroupBoard:ef,isInFullWidthStory:L,pinKey:U,surface:R}),eO=et?.isDeleted,eZ=(0,v.Z)(O,U.trackingParams),eM="shopping"===eF,eK=Q?.typeName==="product";return(0,a.useMemo)(()=>({clientTrackingParams:eZ,contentType:eF,dWebNewOrResurrectedUser:eC,dynamicRel:eE,feedbackType:eP,footerProductStyle:ei,hasTextContent:eg,hasTitleOrSource:em,isDeletedStoryPin:eO,isProduct:eK,isPromoted:ea,isShopping:eM,pinTitle:ep,productCurrentPrice:eI,productOriginalPrice:eT,showFooter:eR,shownPrice:ew,sourceText:er,titleLines:eS,visitSiteUrl:eA}),[eZ,eF,eC,eE,eP,ei,eg,em,eO,eK,ea,eM,ep,eI,eT,eR,ew,er,eS,eA])}},778248:(e,t,n)=>{"use strict";n.d(t,{U:()=>c,Z:()=>u});var i,a=n(667294);n(167912);var l=n(47848),r=n(973612),s=n(297728),o=n(730212);let d=void 0!==i?i:i=n(143818);function c({carouselIndex:e,carouselSlots:t,gridTitle:n,haveCarouselData:i,pinDescription:a,richSummaryDisplayName:l}){let r;let{checkExperiment:o}=(0,s.F)(),[d,c]="string"==typeof n?[n,""]:[l,a];return o("ads_show_carousel_on_mweb").anyEnabled&&i&&t&&((r=t[e]).title&&(d=r.title),r.details&&(c=r.details)),{title:d,description:c}}function u({carouselIndex:e,pinKey:t}){let{isAuthenticated:n}=(0,o.B)(),{carouselData:i,closeupUnifiedDescription:s,closeupDescription:u,description:p,gridTitle:m,storyPinDataId:g,richMetadata:h,richSummary:_}=(0,l.Z)(d,t),{title:y,description:f}=c({haveCarouselData:!!i,carouselIndex:e,carouselSlots:i?.carouselSlots,pinDescription:p,gridTitle:m,richSummaryDisplayName:_?.displayName}),x=n?f:(0,r.Z)({storyPinDataId:g,pinDescription:p,richMetadataDescription:h?.description??"",richSummaryDisplayName:_?.displayName??"",closeupDescription:u??"",closeupUnifiedDescription:s??""});return(0,a.useMemo)(()=>({title:y,description:x}),[y,x])}},903066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p}),n(167912);var i,a=n(265780),l=n(47848),r=n(836350),s=n(383399),o=n(115642),d=n(462888);let c=["ArticleProductsStory","BoardCoverSelectablePin","BoardNoteSelectablePin","BulkEditMode","CommentReply","EngagementDetails","IdeasHubSeasonalRow","OtherProfilePinGrid","SectionSuggestedPins","SelectableBoardlessPin","TopicBestPinNarrow","TopicBestPinWide","VisualInspirationPin","VisualInspirationFocusPin"],u=void 0!==i?i:i=n(552454);function p({hasFooterContent:e,isGroupBoard:t,isInFullWidthStory:n,pinKey:i,surface:p}){let{isCloseupRelatedPinsAboveTheFoldEnabled:m}=(0,o.x4)(),g=(0,d.xZ)(),h=(0,l.Z)(u,i),_=(0,s.Z)(),{board:y,pinner:f,sponsorship:x}=h,b=y?.collaboratedByMe,v=!!h.promoter&&!h.isDownstreamPromotion,P=(0,a.Z)(_,y?.owner?.entityId),k=!!(_.isAuth&&f&&f.entityId===_.id),S=(0,r.P)()||_.isAuth&&_.isEligibleForImageOnlyGrid,w=_.isAuth&&_.isPartner,I=!1;p&&["OtherProfilePinGrid","ShoppingGridSmall","ShoppingCarousel",...m?["ShoppingGridSmallCarousel"]:[],...n?[]:["BoardShoppingModule"]].includes(p)?I=!0:"BaseBoardPinGrid"===p?I=g?.boardPinDensity==="dense":("UserProfilePinGrid"===p||"RetrievalHub"===p)&&(I=g?.profilePinDensity==="dense");let T=e||t;return"BaseBoardPinGrid"===p&&P&&w||x?T=!0:p&&c.includes(p)||I&&(P||b)&&"ShoppingCarousel"!==p?T=!1:"RetrievalHub"===p&&I?T=!1:k||"CreatorProfileStoryPinGrid"!==p&&"CreatorProfileActivityPinGrid"!==p||(T=!1),!S||v||x||(T=!1),T}},508434:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c}),n(167912);var i,a=n(47848),l=n(836350),r=n(297728),s=n(755349),o=n(383399);let d=void 0!==i?i:i=n(418478);function c({disableReaction:e,isOwnPin:t,isPromotedPin:n,pinKey:i,surface:c}){let u=(0,o.Z)(),{checkExperiment:p}=(0,r.F)(),m=(0,a.Z)(d,i),g=(0,l.P)()||u.isAuth&&u.isEligibleForImageOnlyGrid,h=!!m.storyPinData?.isDeleted,_=(e||"CreatorProfileStoryPinGrid"!==c||t)&&(0,s.J6)({board:m.board&&{isCollaborative:m.board.isCollaborative,collaboratedByMe:m.board.collaboratedByMe},videos:m.videos&&m.videos.entityId?{entityId:m.videos.entityId}:null,isDownstreamPromotion:m.isDownstreamPromotion,isPromoted:n,storyPinDataId:m.storyPinDataId},h);return _=!g&&_,u.isAuth&&p("closeup_auth_remove_reactions_grid_dweb").anyEnabled&&(_=!1),_??!1}},151140:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i,a=n(667294);n(167912);var l=n(47848),r=n(786890),s=n(383399),o=n(230098),d=n(518051);let c=void 0!==i?i:i=n(753484);function u({isShoppingAffordancesExp:e,isSquarePin:t,pinKey:n,surface:i}){let{isAuth:u}=(0,s.Z)(),p=(0,l.Z)(c,n),{description:m,entityId:g,gridTitle:h,richMetadata:_,richSummary:y,storyPinData:f,storyPinDataId:x,title:b}=p,{shownPrice:v,productCurrentPrice:P,productOriginalPrice:k}=(0,d.Z)({pinKey:p}),S=(0,o.Z)({isSquarePin:t,price:v}),w=e&&!u&&!!i&&!!p,I=(0,r.fs)({pinTitle:b,gridTitle:h??void 0,richSummaryDisplayName:y?.displayName,richMetadataTitle:_?.title,storyPinDataId:x,storyPinDataMetadataPinTitle:f?.metadata?.pinTitle})||m,T=`/pin/${g}/`,A=(0,a.useMemo)(()=>u?t?2:v?3:2:1,[u,t,v]),E=y?.siteName;return(0,a.useMemo)(()=>({attributionHeight:S,attrTitle:I,calculateLineClamp:A,deeplinkUri:T,domain:E,productCurrentPrice:P,productOriginalPrice:k,shownPrice:v,showUnauthShoppingAffordances:w}),[S,I,A,T,E,P,k,v,w])}},119549:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i,a,l=n(667294);n(167912);var r=n(47848),s=n(297728),o=n(383399);function d(e){return"active"===e?"visible":"inactive"===e?"none":"hidden"}function c(...e){return e.includes("visible")?"visible":e.includes("hidden")?"hidden":"none"}let u=["BoardCreateUpsell","BoardCoverSelectablePin","BoardNoteSelectablePin","BoardNotePin","BulkEditMode","EngagementDetails","SectionSuggestedPins","SelectableBoardlessPin"],p=["BoardCreateUpsell","BoardCoverSelectablePin","BoardNoteSelectablePin","BoardNotePin","BulkEditMode","ConversationView","EngagementDetails","SectionSuggestedPins","SelectableBoardlessPin","ShoppingCatalogsProductsMetadata","VisualInspirationPin","VisualInspirationShoppingPin"],m=void 0!==i?i:i=n(613356);var g=n(668564);let h=void 0!==a?a:a=n(460107);function _({forcePrimary:e,hoverTransitionState:t,isEggsUi:n,pinKey:i,surface:a}){var _;let y=(0,r.Z)(h,i),{checkExperiment:f}=(0,s.F)(),x="HomefeedMoreIdeasTabs"===a&&"enabled_no_quicksave"===f("hfp_local_nav_tabs_web_v2").group,b=(0,g.Z)(e),v=(0,o.Z)(),P=v.isAuth&&v.isEmployee,k=(0,g.Z)(!!y.savedInfo),S=d(k),w=d(t),I=d(t),T=d(b),A=d(k),E=["HomefeedMoreIdeasTabs","BoardMoreIdeasTabContent"].includes(a??""),C="visible"!==S||E||n?S:"none",j=!!y.carouselData?.entityId,F=!!y.storyPinData?.isDeleted,L=(0,l.useMemo)(()=>(function({enableHoverForTabs:e,hasCarouselData:t,isDeletedStoryPin:n,surface:i}){let a={primaryContent:null,secondaryContent:null,actionBar:p.includes(i)||n?"none":"visible",accessoryContent:t?"visible":"none"};return n||u.includes(i)?(a.primaryContent="none",a.secondaryContent="none"):(["HomefeedMoreIdeasTabs","BoardMoreIdeasTabContent","BoardShoppingModule","ShoppingTool"].includes(i)||"HomefeedMoreIdeasTabs"===i&&!e)&&(a.primaryContent="visible"),a})({enableHoverForTabs:x,hasCarouselData:j,isDeletedStoryPin:F,surface:a}),[x,j,F,a]),D=L.primaryContent??c(I,T,"visible"===A?"none":A,n&&"visible"===A?A:"none"),R="none"!==L.actionBar?c(I,T):"none",O=(0,l.useRef)(!0),Z=O.current;O.current=!1;let M=function({isFirstRender:e,pinKey:t}){let n=(0,r.Z)(m,t),i=!!n.carouselData,a=n.carouselData?.index??void 0,[s,o]=(0,l.useState)(!i||e),d=(0,l.useRef)(a),c=(0,l.useRef)(null);if(i){let t=d.current;d.current=a,(a!==t||e)&&(c.current&&clearTimeout(c.current),o(!0),c.current=setTimeout(()=>{o(!1),c.current=null},4e3))}return(0,l.useEffect)(()=>()=>{c.current&&clearTimeout(c.current)},[]),s}({isFirstRender:Z,pinKey:y}),K=d((0,g.Z)(M)),N="none"===(_=c(I,T,A))?"visible":"visible"===_?"none":"hidden",z=L.secondaryContent??function(...e){return e.includes("none")?"none":e.includes("hidden")?"hidden":"visible"}(N,K),B="none";return"visible"===L.accessoryContent&&(B=d(t)),(0,l.useMemo)(()=>({actionBarVisibility:R,accessoryContentVisibility:B,legoSavedOverlayVisibility:C,primaryContentVisibility:D,secondaryContentVisibility:z,signalDebuggerV2ContentVisibility:P?"visible":"none",visualOverlayVisibility:w}),[R,B,C,D,z,w,P])}},162180:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c}),n(167912);var i,a=n(111161),l=n(47848),r=n(297728),s=n(730212),o=n(410150);let d=void 0!==i?i:i=n(630983);function c({pinKey:e,surface:t}){let n=(0,l.Z)(d,e),i=!!n.promoter&&!n.isDownstreamPromotion,c=!!n.isEligibleForPdp,u=(0,r.F)(),p=(0,o.HG)(),{isAuthenticated:m}=(0,s.B)();if(p&&m){let e=!i&&c&&t&&a.xP.includes(t)?u.checkExperiment("web_product_pin_rep_indicators_v3").group:"",n=(0,a.QC)({experimentsClient:u,isEligibleForPdp:c,isPromoted:i,surface:t});return[a.iM.ENABLED_OVERLAY,a.iM.ENABLED_OVERLAY_ANIMATED].includes(e)||n}return!1}},462888:(e,t,n)=>{"use strict";n.d(t,{ET:()=>s,UQ:()=>o,dv:()=>d,xZ:()=>u,yh:()=>p});var i,a=n(667294),l=n(498490),r=n(785893);let s={NONE:"NONE",GROUP:"GROUP",SECRET:"SECRET",ARCHIVED:"ARCHIVED"},o={NONE:0,ARCHIVED:1,GROUP:2,SECRET:3},d=((i={}).COLORS="COLORS",i.CREATED_BY_ME="CREATED_BY_ME",i.FAVORITED="FAVORITED",i.FAVORITED_AND_CREATED="FAVORITED_AND_CREATED_BY_ME",i.INTERESTS="INTERESTS",i.NONE="",i),{Provider:c,useMaybeHook:u}=(0,l.Z)("ProfileViewContext");function p({children:e}){let[t,n]=(0,a.useState)(),[i,l]=(0,a.useState)(new Map),[s,o]=(0,a.useState)(),[u,p]=(0,a.useState)(),[m,g]=(0,a.useState)(d.NONE),[h,_]=(0,a.useState)(0),[y,f]=(0,a.useState)(),x=(0,a.useCallback)((e,t)=>{l(new Map(i.set(e,t)))},[i]),b=(0,a.useMemo)(()=>({boardPinDensity:t,boardSortOrder:i,profileBoardView:s,profilePinDensity:u,profileFollowingSelectedIndex:h,selfProfilePinFilter:m,setBoardPinDensity:n,setSelfProfilePinFilter:g,updateBoardSortOrder:x,selfProfileBoardFilter:y,setSelfProfileBoardFilter:f,setProfileBoardView:o,setProfilePinDensity:p,setProfileFollowingSelectedIndex:_}),[t,i,s,u,h,m,y,x]);return(0,r.jsx)(c,{value:b,children:e})}},179445:(e,t,n)=>{"use strict";function i(e){let t=Object.keys(e);return t.length>0?t.sort((t,n)=>e[n]-e[t]).slice(0,3):null}function a(e){let t=Object.values(e);return t.length>0?t.reduce((e,t)=>e+t,0):0}function l({boardIsCollaborative:e,isDownstreamPromotion:t,isPromoted:n,storyPinDataId:i,videosId:a,isEligibleForStaticImageIdeaPin:l}){return!n&&!t&&(!!a||!!i)&&(null==e||!e)&&!l}n.d(t,{At:()=>i,J6:()=>l,Ud:()=>a})},845873:(e,t,n)=>{"use strict";n.d(t,{bn:()=>s,fJ:()=>d,gC:()=>o});var i=n(545007),a=n(498490),l=n(785893);let{Provider:r,useHook:s}=(0,a.Z)("Boards");function o(){let e=s();return t=>e[t]}function d({children:e}){let t=(0,i.v9)(({boards:e})=>e,i.wU);return(0,l.jsx)(r,{value:t,children:e})}},424583:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>u,cm:()=>c,kW:()=>o,kY:()=>p,mN:()=>d});var i=n(545007),a=n(498490),l=n(383399),r=n(785893);let{Provider:s,useHook:o}=(0,a.Z)("Users");function d(){let e=o();return t=>e[t]}function c(){let e=o();return(t,n=!1)=>{let i=Object.keys(e).find(n=>e[n].username===t);if(i||!n)return e[i??""]}}function u(){let{id:e}=(0,l.Z)();return o()[e??""]}function p({children:e}){let t=(0,i.v9)(({users:e})=>e,i.wU);return(0,r.jsx)(s,{value:t,children:e})}},141648:(e,t,n)=>{"use strict";n.d(t,{default:()=>k});var i=n(667294),a=n(782677),l=n(883119),r=n(252071),s=n(801925),o=n(144326),d=n(240760),c=n(338623),u=n(127566),p=n(765211),m=n(571729),g=n(785893);let h=e=>({duration:5e3,thumbnail:(0,g.jsx)(l.xu,{"data-test-id":"pin-save-toast",height:48,width:48,children:(0,g.jsx)(m.Z,{boardId:e})})});var _=n(476198),y=n(383399);function f({boardId:e,hideToast:t,pinId:n,originalPinId:i}){let a=(0,o.ZP)(),r=(0,y.Z)();return(0,g.jsx)(_.ZP,{duration:5e3,onHide:t,primaryAction:{accessibilityLabel:a._('Change saved Pin button', 'RepinRequest.a11yChangeButton', 'Change saved Pin button'),href:`/pin/${n}/repin/?isEditingPin=true&pinBoardId=${e??""}&&isFromToast=true&&originalPinId=${i??""}`,label:a._('Change', 'RepinRequest.ChangeButton', 'Change saved Pin button'),size:"lg",onClick:t,role:"link"},text:(0,g.jsxs)(l.xv,{children:[(0,g.jsx)(l.xv,{inline:!0,children:a._('Saved to ', 'RepinRequest.ProfileSaveToastText', 'Toast for successfully saving to profile')}),(0,g.jsx)(l.xv,{inline:!0,weight:"bold",children:(0,g.jsx)(l.rU,{display:"inlineBlock",href:r.isAuth?`/${r.username}/_saved`:"/",target:"self",underline:"hover",children:a._('Profile', 'RepinRequest.ProfileSaveToastText.Profile', 'referring to pinner profile where pin was saved')})})]}),thumbnail:{icon:(0,g.jsx)(l.JO,{accessibilityLabel:a._('Profile', 'RepinRequest.ProfileIcon', 'Icon signifying Pin was saved to profile without a board'),icon:"history",size:22})}})}var x=n(612719),b=n(517989);let v="RepinResource",P=({board:e,section:t})=>{let n=(0,o.ZP)(),a="quick_saves"===e.layout?n._('Profile', 'EditPin.Quicksaves.BoardName', 'Name for Quicksaves board that we want to surface to users'):e.name;return t?(0,d.nk)(n._('Saved to {{sectionName}} in {{boardName}}', 'Toast for successfully saving to a section within a board', 'Toast for successfully saving to a section within a board'),{sectionName:t&&t.title,boardName:e.name}).join(""):(0,g.jsxs)(i.Fragment,{children:[(0,g.jsx)(l.xv,{color:"default",children:n._('Saved to', 'Saved to {{ boardName }}', 'Saved to {{ boardName }}')}),(0,g.jsx)(l.xv,{color:"default",weight:"bold",children:a})]})};class k{constructor({boardId:e,dispatch:t,history:n,isOneTapSave:i=!1,isQuickSave:l=!1,onSuccess:r,originalPinId:s,pinId:o,section:d,showNewUserSavetoProfileAnimation:c=!1,showRepinToasts:p,trackingParams:m,userId:g,viewParameter:h,viewType:_,historyPush:y,suggestedBoardIds:f,savePinId:x,eventContext:P=null,pinData:{trackingParams:k,viewParameter:S,pinnedToBoardId:w}}){var I,T,A;I="_getNormalizedResponse",T=e=>(0,a.Fv)(e.resource_response.data,b.Z[v]),(I="symbol"==typeof(A=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(I,"string"))?A:A+"")in this?Object.defineProperty(this,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):this[I]=T,this.boardId=e,this.trackingParams=m,this.clientTrackingParams=(0,u.Z)(m.clientTrackingParams||"",k),this.dispatch=t,this.history=n,this.onSuccess=r,this.originalPinId=s,this.pinId=o,this.pinnedToBoardId=m.pinnedToBoardId||(w??""),this.showNewUserSavetoProfileAnimation=c,this.showRepinToasts=p,this.section=d,this.isOneTapSave=i,this.isQuickSave=l,this.userId=g,this.viewParameter=h,this.viewType=_??3,this.historyPush=y,this.suggestedBoardIds=f,this.savePinId=x,this.pinViewParameter=S,this.eventContext=P}get resourceOptions(){return{pin_id:this.pinId,board_id:this.boardId,section:this.section?.id,clientTrackingParams:this.clientTrackingParams,user_id:this.userId}}get trackingData(){let e=4079===this.viewParameter;return{event_type:5,element:this.isOneTapSave?e?15946:10599:void 0,view_type:this.viewType,component:this.isOneTapSave?0:7,view_parameter:this.isOneTapSave?e?4079: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(){let e=null!==this.eventContext&&void 0!==this.eventContext?{...this.resourceOptions,eventContext:this.eventContext}:this.resourceOptions;return r.Z.create(v,{...e,disable_event_log_info:!0}).callCreate()}processRepin(e){return this._createRepin().then(t=>{this.onSuccess&&this.onSuccess();let n=t.resource_response.data,{board:i}=n,{isQuickSave:a,originalPinId:r,showNewUserSavetoProfileAnimation:d}=this,u=this._getNormalizedResponse(t);if(this.dispatch((0,c.XM)(v,this.resourceOptions,t,u)),this.savePinId(this.resourceOptions.pin_id,n.id),this.originalPinId&&this.originalPinId!==this.resourceOptions.pin_id){let e={...this.resourceOptions,pin_id:this.originalPinId};this.dispatch((0,c.XM)(v,e,t,u)),this.savePinId(this.originalPinId||"",n.id)}this.dispatch((0,x.M)(n.id,i.id,this.section?this.section.id:void 0,this.userId));let{showRepinToasts:m}=this;return m&&m(({hideToast:e})=>{if(a&&!d)return(0,g.jsx)(f,{boardId:n.board.id,hideToast:e,originalPinId:r,pinId:n.id});let{thumbnail:t}=h(i.id);return(0,g.jsx)(p.Z,{button:d&&(0,g.jsx)(o.oz,{children:e=>(0,g.jsx)(l.zx,{fullWidth:!0,onClick:({event:e})=>{e.preventDefault(),e.stopPropagation(),this.historyPush(`/pin/${n.id}/repin/?isEditingPin=true&pinBoardId=${i.id}&&isFromToast=true&&originalPinId=${r??""}`)},text:e._('Organize', 'RepinRequest.OrganizeButton', 'Button to allow users to organize saved pins')})}),href:this.section?`${i.url}${this.section.slug??""}`:i.url,isRepinToExistingBoard:!0,onHide:e,text:(0,g.jsx)(P,{board:i,section:this.section}),thumbnail:t})}),this.dispatch((0,s.fO)({event_type:5,pin_id:this.originalPinId||this.pinId,new_pin_id:n.id,did_repin:!0})),e(this.trackingData),n})}}},483871:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var i,a=n(667294),l=n(545007);n(167912);var r=n(883119),s=n(865706),o=n(47848),d=n(144326),c=n(730212),u=n(750077),p=n(154785),m=n(833764),g=n(410150),h=n(793874),_=n(758339),y=n(225771),f=n(785893);function x({showFullScreenInfo:e,isOpen:t,interstitialUpsellDismissed:n,children:i}){let a=(0,d.ZP)(),l=(0,g.HG)(),s=(0,g.Wb)();return s||l?(0,f.jsx)(_.ZP,{accessibilityModalLabel:"",closeOnOutsideClick:!1,isOpen:e&&!s,mobileHideCloseIcon:!0,mobileIsFullscreen:!0,onDismiss:()=>{},children:(0,f.jsx)(r.xu,{color:(0,h.Yc)()?"dark":"default",dangerouslySetInlineStyle:{__style:{border:(0,h.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:l?"100vw":"100%",zIndex:new r.Ry(1),children:(0,f.jsx)(r.xu,{bottom:!0,left:!0,marginTop:n?0:12,overflow:"scroll",padding:5,position:"fixed",right:!0,top:!0,children:i})})}):(0,f.jsx)(y.default,{accessibilityModalLabel:a._('Close', 'Close modal window', 'Close modal window'),isOpen:t,mobileAccessibilityCloseIconLabel:a._('Close', 'Close modal window', 'Close modal window'),onDismiss:()=>{},children:i})}let b=(0,a.lazy)(()=>n.e(24626).then(n.bind(n,924626))),v=void 0!==i?i:i=n(331930);function P({componentType:e,dedupeVisualAnnotations:t,isAuth:n,isMainPin:i,onClickTitleOrDomain:h,pinCreditPrefix:_,pinKey:y,renderOnlyHiddenSEOContent:P=!1,size:k,shoppingKlpUrls:S,userAvatarImageUrl:w,viewObjectId:I,viewParameter:T,viewType:A}){let E=(0,d.ZP)(),C=(0,p.Z)(),{isBot:j}=(0,c.B)(),{unauthInterstitialDismissed:F}=(0,l.v9)(({session:e})=>e),[L,D]=(0,a.useState)(!1),R=(0,g.HG)(),O=(0,g.Wb)(),Z=(0,m.Z)(),M=!O&&!n,K=(0,o.Z)(v,y),N=K?.entityId,z=(0,f.jsxs)(r.xu,{dangerouslySetInlineStyle:M?{__style:{paddingTop:0,paddingBottom:30}}:void 0,padding:5,children:[(0,f.jsx)(r.xu,{color:"default","data-test-id":"close-seo-vase-see-more-button",left:!0,padding:4,position:"absolute",top:!0,children:(0,f.jsx)(r.hU,{accessibilityLabel:E._('Cancel', 'close modal icon', 'close modal icon'),icon:"cancel",iconColor:"gray",onClick:()=>{C({action:"dismiss",item:"close-see-more-button",within:"seo-vase"}),D(!1),i&&C({action:"click",item:"see-more-main-pin-button",within:"seo-vase"})},size:"sm"})}),(0,f.jsx)(r.xu,{marginBottom:M?0:8,children:(0,f.jsx)(r.xv,{align:M?"start":"center",size:"400",weight:M?void 0:"bold",children:M?null:E._('More information', 'more information label', 'more information label')})}),(0,f.jsx)(u.Z,{children:(0,f.jsx)(b,{componentType:e,dedupeVisualAnnotations:t,onClickTitleOrDomain:h,pinCreditPrefix:_,pinKey:K,shoppingKlpUrls:S,userAvatarImageUrl:w,viewObjectId:I,viewParameter:T,viewType:A})})]});return P?(0,f.jsx)(r.xu,{display:"none",children:z}):(0,f.jsxs)(r.xu,{dangerouslySetInlineStyle:{__style:{float:"right"}},"data-test-id":"SeoVaseSeeMoreButton",right:!0,children:[(0,f.jsx)(r.hU,{accessibilityLabel:E._('See more', 'more information icon', 'more information icon'),icon:"ellipsis",iconColor:"darkGray",onClick:({event:a})=>{a.stopPropagation(),i?C({action:"click",item:"see-more-main-pin-button",within:"seo-vase"}):C({action:"click",item:"see-more-related-pin-button",within:"seo-vase"}),O||n?(D(!0),i&&C({action:"click",item:"see-more-main-pin-button",within:"seo-vase"})):Z({pinId:N||"",location:i?"main-pin-more-information":"non-main-pin-more-information",vaseSection:(0,f.jsx)(u.Z,{children:(0,f.jsx)(b,{componentType:e,dedupeVisualAnnotations:t,onClickTitleOrDomain:h,pinCreditPrefix:_,pinKey:K,shoppingKlpUrls:S,userAvatarImageUrl:w,viewObjectId:I,viewParameter:T,viewType:A})})})},padding:1,size:k||"md"}),j&&!R?(0,f.jsx)(r.xu,{display:L?"flex":"none",children:z}):(0,f.jsx)(x,{interstitialUpsellDismissed:!!F,isOpen:L&&!O,showFullScreenInfo:L,children:z}),O&&L&&(0,f.jsx)(s.default,{accessibilityModalLabel:"test",onDismiss:()=>{},children:z})]})}},101736:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(667294),a=n(883119),l=n(803611),r=n(758339),s=n(144326),o=n(297728),d=n(115642),c=n(613756),u=n(785893);let p=new a.Ry(3);function m({anchor:e,children:t,displayOptions:n,onFlyoutDismiss:i}){let l=(0,s.ZP)(),{closeupWithinMasonryEnabled:c}=(0,d.x4)(),{checkExperiment:m}=(0,o.F)(),g=m("sg_dweb_sharesheet_update").anyEnabled?r.b7:void 0;return n?.shownWithinMasonry||n?.shownWithinProfileHeader?(0,u.jsx)(a.mh,{zIndex:n.shownWithinProfileHeader||c&&n?.shownWithinMasonry?p:g,children:(0,u.jsx)(a.xu,{position:n.inModal?"absolute":void 0,top:!!n.inModal||void 0,zIndex:n.inModal?r.b7:void 0,children:(0,u.jsx)(a.J2,{_deprecatedShowCaret:n.showCaret,accessibilityLabel:l._('Share Menu', 'SendShareController.ShareMenu.accessibilityLabel', 'Accessbililty label for the share menu.'),anchor:e,forceDirection:n.forceDirection??!1,idealDirection:n.idealDirection??"down",onDismiss:()=>{i()},positionRelativeToAnchor:!1,size:"flexible",children:t})})}):(0,u.jsx)(a.J2,{_deprecatedShowCaret:n?.showCaret,accessibilityLabel:l._('Share Menu', 'SendShareController.ShareMenu.accessibilityLabel', 'Accessbililty label for the share menu.'),anchor:e,forceDirection:n?.forceDirection??!1,idealDirection:n?.idealDirection??"down",onDismiss:()=>{i()},size:"flexible",children:t})}function g({children:e,flyoutDisplayOptions:t,isFlyoutOpen:n,loggingOptions:r,onClick:s,onFlyoutDismiss:o,onToggleFlyout:p,sendObject:g}){let h=(0,i.useRef)(null),{clientTrackingParams:_}=(0,d.x4)(),y=(0,l.Z)();return(0,u.jsxs)(a.xu,{ref:h,dangerouslySetInlineStyle:{__style:{pointerEvents:"auto"}},children:[(0,u.jsx)(a.xu,{children:e({handleSendShareFlyoutButtonClick:()=>{if(y){y();return}p()}})}),n&&(0,u.jsx)(m,{anchor:h.current,displayOptions:t,onFlyoutDismiss:o,children:(0,u.jsx)(c.Z,{clientTrackingParams:_,component:r.component,element:r.element,onExternalSend:r.onExternalSend,onHide:()=>{s?.(),o()},sendType:g.type,sharedObject:{...g,type:"user"===g.type?"pinner":g.type},viewParameter:r.viewParameter,viewType:r.viewType})})]})}},844819:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c}),n(167912);var i,a=n(883119),l=n(47848),r=n(786890),s=n(483871),o=n(785893);let d=void 0!==i?i:i=n(416129);function c({dedupeVisualAnnotations:e,pinKey:t,userAvatarImageUrl:n,viewObjectId:i,componentType:c,viewType:u,viewParameter:p}){let m=(0,l.Z)(d,t),{description:g,gridTitle:h,richMetadata:_,richSummary:y,storyPinDataId:f,storyPinData:x,title:b}=m,v=(0,r.fs)({pinTitle:b,gridTitle:h,richSummaryDisplayName:y?.displayName,richMetadataTitle:_?.title,storyPinDataId:f,storyPinDataMetadataPinTitle:x?.metadata?.pinTitle})||g;return(0,o.jsxs)(a.xu,{display:"flex",marginBottom:-1,paddingX:2,children:[(0,o.jsx)(a.xu,{flex:"grow",maxHeight:32,minHeight:12,overflow:"hidden",width:142,children:(0,o.jsx)(a.xv,{lineClamp:2,size:"100",weight:"bold",children:v})}),(0,o.jsx)(a.xu,{children:(0,o.jsx)(s.default,{componentType:c,dedupeVisualAnnotations:e,pinKey:m,size:"sm",userAvatarImageUrl:n,viewObjectId:i,viewParameter:p,viewType:u})})]})}},638966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_,s:()=>h});var i=n(667294),a=n(498490),l=n(608575),r=n(883119),s=n(758339),o=n(144326),d=n(240760),c=n(785893);let u=()=>{let e=(0,o.ZP)(),{dismissWarning:t}=h()??{};return(0,c.jsx)(r.xu,{paddingX:3,children:(0,c.jsx)(r.zx,{color:"red",fullWidth:!0,onClick:t,text:e._('Okay', 'Dismiss a modal stating that clicking through to a link has been blocked', 'Dismiss a modal stating that clicking through to a link has been blocked')})})},p=()=>{let e=(0,o.ZP)();return(0,c.jsx)(r.xv,{inline:!0,weight:"bold",children:(0,c.jsx)(r.rU,{display:"inlineBlock",href:"https://policy.pinterest.com/community-guidelines#section-spam",target:"blank",underline:"hover",children:e._('Learn more', 'Link text leading to policy website', 'Link text leading to policy website')})})},m=({message:e,sanitized_url:t})=>{let n=(0,o.ZP)(),{dismissWarning:i}=h()??{};return(0,c.jsx)(s.ZP,{accessibilityModalLabel:n._('We have blocked this link', 'Modal label when clicking a spammy link', 'Modal label when clicking a spammy link'),footer:(0,c.jsx)(u,{}),heading:n._('Heads up!', 'Modal heading when clicking through to a link has been blocked', 'Modal heading when clicking through to a link has been blocked'),onDismiss:i,children:(0,c.jsxs)(r.xu,{padding:6,children:[(0,c.jsx)(r.xv,{children:(0,d.nk)("{{ message }} {{ learnMore }}",{message:e,learnMore:(0,c.jsx)(p,{},"learnMoreLink")})}),(0,c.jsxs)(r.xu,{alignItems:"center",display:"flex",marginTop:4,children:[(0,c.jsx)(r.xu,{marginEnd:3,children:(0,c.jsx)(r.JO,{accessibilityLabel:n._('Blocked link address', 'Icon label preceding a block url', 'Icon label preceding a block url'),color:"error",icon:"report",inline:!0,size:24})}),(0,c.jsx)(r.xv,{inline:!0,lineClamp:1,weight:"bold",children:l.parse(t).hostname})]})]})})},{Provider:g,useMaybeHook:h}=(0,a.Z)("SpammyClickthrough");function _({children:e}){let[t,n]=(0,i.useState)(null),a=(0,i.useCallback)(()=>{n(null)},[n]),l=(0,i.useCallback)(e=>{n(e)},[n]),r=(0,i.useMemo)(()=>({dismissWarning:a,showWarning:l}),[a,l]);return(0,c.jsxs)(g,{value:r,children:[t&&(0,c.jsx)(m,{...t}),e]})}},381783:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d,j:()=>o});var i=n(883119),a=n(144326),l=n(240760),r=n(297728),s=n(785893);let o=[0,2,3];function d({hasAffiliatedProducts:e,isPromoted:t,sponsorName:n,sponsorshipStatus:d,textColor:c}){let u;let p=(0,a.ZP)(),m=(0,r.F)().checkExperiment("mweb_web_android_ios_clbc_eu_ad_string").anyEnabled;return t?u=(0,l.nk)(p._('Promoted by {{ name }}', 'sponsorship.sponsorshipText.promotedByBrand', 'indicating the username of the person who promoted the pin'),{name:n}):d||0===d?n&&!o.includes(d)?u=(0,l.nk)(p._('Paid partnership with {{ name }}', 'closeup.creator.sponsoredPinTitle', 'Subtext of closeup creator card when sponsored by a brand'),{name:n}):2!==d&&(u=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&&(u=p._('Paid link', 'sponsorship.sponsorshipText.affiliatedProducts', 'Subtext of pincard attribution for a pin with affiliated products')),(0,s.jsxs)(i.xv,{color:c,size:"100",children:[m&&!t&&"Ad • "||"",(0,s.jsx)(l.r7,{text:u})]})}},837373:(e,t,n)=>{"use strict";n.d(t,{UK:()=>P,ZP:()=>k});var i,a=n(667294);n(167912);var l=n(883119),r=n(573706),s=n(47848),o=n(144326),d=n(788388),c=n(512541),u=n(786890),p=n(730212),m=n(1006),g=n(154785),h=n(410150),_=n(573065),y=n(785893);let f=`
div::-webkit-scrollbar {
  display: none;
}
`,x=void 0!==i?i:i=n(590606);function b({direction:e,handleClick:t,testId:n,isRTL:i}){let a=(0,o.ZP)(),r=(0,g.Z)(),s=i?["arrow-back","arrow-forward"]:["arrow-forward","arrow-back"];return(0,y.jsx)("div",{"aria-hidden":"true","aria-label":"arrow","data-test-id":n,onClick:e=>{r({action:"click",item:"board-pills-arrow"}),t(e)},role:"button",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"}},tabIndex:-1,children:(0,y.jsx)(l.xu,{borderStyle:"none",left:"left"===e,position:"absolute",right:"right"===e,children:(0,y.jsx)(l.xu,{"data-test-id":"board-pills-arrow",children:(0,y.jsx)(l.JO,{accessibilityLabel:a._('Scroll', 'annotations.scrollArrow', 'Accessibility label for scroll arrow button'),color:"subtle",icon:"left"!==e?s[0]:s[1],size:12})})})})}function v({componentType:e,name:t,pinId:n,url:i,slotIndex:s,viewParameter:o,viewType:c,viewObjectId:u}){let[_,f]=(0,a.useState)(!1),x=(0,g.Z)(),{country:b,locale:v}=(0,p.B)(),P=(0,h.HG)(),k=(0,d.Z)({slotIndex:s,viewData:{view_object_id:u},impressionType:"VaseAnnotation",loggingId:i,viewParameter:o,viewType:c,componentType:e,impressionAuxFields:{pinId:n}}),{logContextEvent:S}=(0,r.v)();return(0,y.jsx)(l.xu,{ref:k,color:"secondary",dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap"}},"data-test-id":"vase-tag",display:"inlineBlock",marginEnd:1,marginTop:1,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),paddingX:2,paddingY:1,rounding:8,children:(0,y.jsx)(l.xv,{color:_?"subtle":"default",inline:!0,overflow:"breakWord",size:"100",weight:"bold",children:i?(0,y.jsx)(l.rU,{display:"inlineBlock",href:i,onClick:()=>{x({action:"click",item:"vase-tag"}),i.split("/").length>=2&&"shopping"===i.split("/")[1]&&(0,m.My)(`${P?"dweb":"mweb"}.vase.shoppingKlp.click`,{country:b,locale:v}),S({view_type:c,view_parameter:o,component:e,event_type:102,element:1116,view_data:{view_object_id:u},event_data:{slot_index:s},aux_data:{pin_id:n,url:i}})},rounding:8,tapStyle:"compress",underline:"hover",children:t}):t})})}let P=({pinId:e,shoppingKlpUrls:t,pinJoinVisualAnnotation:n,pinJoinAnnotationsWithLinks:i,dedupeVisualAnnotations:a})=>{if(a&&(n=a({pinId:e,visualAnnotations:n})),n.length<1)return[];let{annotationsWithLinks:l}=(0,u.eK)({pinJoinVisualAnnotation:n,pinJoinAnnotationsWithLinks:i});l.map(e=>e.name||"");let r=[...l];return t&&(r=t.reduce((e,t)=>(e.push({name:t.split("/")[2].split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),url:t}),e),r)),r};function k({componentType:e,mode:t,shoppingKlpUrls:n,pinKey:i,dedupeVisualAnnotations:r,viewObjectId:o,viewParameter:d,viewType:u}){let m=(0,s.Z)(x,i),h=(0,_.Z)(m),k=m?.pinJoin?.visualAnnotation||[],S=(0,a.useRef)(null),[w,I]=(0,a.useState)(!1),[T,A]=(0,a.useState)(!1),E=(0,g.Z)(),{isRTL:C}=(0,p.B)();(0,a.useEffect)(()=>{let e=S.current,n=()=>{if("inlineWithScrollArrows"===t&&S.current){let e=S.current,t=Math.abs(e.scrollLeft||0),n=Math.abs(e.scrollWidth||0),i=t>4,a=t+e.clientWidth<n-4,l=C?i:a,r=C?a:i;I(l),A(r)}else I(!1),A(!1)};return n(),e?.addEventListener("scroll",n),()=>{e?.removeEventListener("scroll",n)}},[t,C]);let j=e=>t=>{t.preventDefault(),t.stopPropagation(),"right"===e&&E({action:"click",item:"board-pills-arrow-button-right"});let n=S.current;if(!n)return;let i=("left"===e?-1:1)*n.clientWidth*.5;n.scrollBy(i,0)},F=P({pinId:m?.entityId||"",shoppingKlpUrls:n,pinJoinVisualAnnotation:k,pinJoinAnnotationsWithLinks:h,dedupeVisualAnnotations:r});return(0,y.jsx)(l.kC,{alignItems:"center",justifyContent:"end",children:(0,y.jsxs)(l.xu,{"data-test-id":"vase-carousel",display:"flex",overflow:"hidden",position:"relative",width:"100%",children:[(0,y.jsx)(c.Z,{unsafeCSS:f}),T&&(0,y.jsx)(b,{direction:"left",handleClick:j("left"),isRTL:C,testId:"left-scroll-arrow"}),(0,y.jsx)(l.xu,{ref:S,dangerouslySetInlineStyle:{__style:{scrollBehavior:"smooth",scrollbarWidth:"none",whiteSpace:"nowrap"}},overflow:"auto",padding:0,children:F.map(({name:t,url:n},i)=>(0,y.jsx)(v,{componentType:e,name:t,pinId:m?.entityId,slotIndex:i,url:n,viewObjectId:o,viewParameter:d,viewType:u},n||t))}),w&&(0,y.jsx)(l.xu,{"data-test-id":"board-pills-arrow-button-right",children:(0,y.jsx)(b,{direction:"right",handleClick:j("right"),isRTL:C,testId:"right-scroll-arrow"})})]})})}},107950:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h,s:()=>g});var i=n(667294),a=n(883119),l=n(144326),r=n(240760),s=n(730212),o=n(961754),d=n(383399),c=n(816933),u=n(331725),p=n(424583),m=n(785893);let g={DIGITAL_CAPTURE:0,NEGATIVE_FILM:1,POSITIVE_FILM:2,PRINT:3,MINOR_HUMAN_EDITS:4,COMPOSITE_CAPTURE:5,ALGORITHMICALLY_ENHANCED:6,DATA_DRIVEN_MEDIA:7,DIGITAL_ART:8,VIRTUAL_RECORDING:9,COMPOSITE_SYNTHETIC:10,TRAINED_ALGORITHMIC_MEDIA:11,COMPOSITE_WITH_TRAINED_ALGORITHMIC_MEDIA:12,ALGORITHMIC_MEDIA:13,SOFTWARE_IMAGE:14,MULTI_PIN_TRAINED_ALGORITHMIC_MEDIA:15};function h({promoterFullName:e,geoRegionAttribute:t,geoPostalCodeAttribute:n,isCustomerListMatched:g,isActalikeMatched:h,isEngagementMatched:_,isFromGPSLocation:y,matchedAgeBucket:f,matchedGender:x,matchedLocale:b,matchedDevice:v,matchedKeyword:P,isFirstPartyAdPersonalizationEnabled:k,isThirdPartyAdPersonalizationEnabled:S}){let w=(0,l.ZP)(),{id:I}=(0,d.Z)(),T=(0,p.mN)()(I??""),A=T?.gender??"",E=(0,u.zn)(x,w);E="unspecified"===A?"":E;let C=(0,u.nn)(v,w),{locale:j}=(0,s.B)(),F=(0,o.Z)({name:"LocalesResource"}),{country:L=""}=(0,d.Z)(),D=(0,o.Z)({name:"CountriesResource",options:{hasEmptyState:!0}}),R=(0,u.K1)(D.data??[],L),O=""!==f||""!==x&&"unspecified"!==A||!k&&""!==R||""!==C||""!==b||k&&_||k&&h||""!==t||k&&""!==n;return(0,m.jsx)(a.xu,{"data-test-id":"waista",children:(0,m.jsxs)(a.kC,{direction:"column",flex:"none",gap:{row:0,column:4},children:[!k&&(0,m.jsx)(c.Z,{icon:"pinterest",iconAccessibilityLabel:w._('Icon for ad targeting context', 'waista.modal.criteria.list.contexticon', 'Icon for ad targeting context'),text:(0,r.XB)({text:w._('Based on the context of the content you see in a session <strong id="1">on Pinterest</strong>', 'waista.modal.criteria.list.context', 'Ad explanation for targeting context of content, onPinterest: on Pinterest Platform'),jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-platform-bucket")}})}),""!==P&&(0,m.jsx)(c.Z,{icon:"search",iconAccessibilityLabel:w._('Icon for ad targeting keyword search', 'waista.modal.criteria.list.keywordSearchIcon', 'Icon for ad targeting keyword search'),text:(0,r.XB)({text:w._('Because you searched for <strong id="1">{{ keyword }}</strong>', 'waista.modal.criteria.list.keywordSearch', 'Ad explanation for targeting keyword search. keyword: Search keyword'),markers:{keyword:P??""},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-keyword-bucket")}})}),(k||S)&&(0,m.jsx)(c.Z,{icon:"cog",iconAccessibilityLabel:w._('Icon for ad targeting user settings', 'waista.modal.criteria.list.settings', 'Icon for ad targeting user settings'),text:w._('Depending on your privacy settings, because of your activities on and/or off Pinterest', 'waista.modal.criteria.list.settings', 'Ad explanation for targeting user settings')}),O&&(0,m.jsx)(c.Z,{icon:"person",iconAccessibilityLabel:w._('Icon for ad targeting advertiser name', 'waista.modal.criteria.list.advertiserName', 'Icon for ad targeting advertiser name'),text:(0,r.XB)({text:w._('Because <strong id="1">{{ advertiserName }}</strong> is trying to reach people:', 'waista.modal.criteria.list.advertiserName', 'Ad explanation for targeting advertiser name, advertiserName: advertiser name'),markers:{advertiserName:e},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-advertiserName-bucket")}})}),(0,m.jsx)(a.xu,{marginStart:8,children:(0,m.jsxs)(a.aV,{label:(0,m.jsx)(a.xv,{children:(0,r.XB)({text:w._('Because {{ advertiserName }} is trying to reach people:', 'waista.modal.criteria.list.advertiserName', 'Ad explanation for targeting advertiser name, advertiserName: advertiser name'),markers:{advertiserName:e}})}),labelDisplay:"hidden",type:"unordered",children:[""!==f&&(0,m.jsx)(a.aV.Item,{text:(0,m.jsx)(a.xv,{children:(0,r.XB)({text:w._('Who have set their age within the <strong id="1">{{ ageBucketMatch }}</strong> age range', 'waista.modal.criteria.list.ageBucketRangeMatch', 'Ad explanation for targeting age range, ageBucketMatch: Users age range'),markers:{ageBucketMatch:f??""},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-age-bucket")}})})}),!k&&""!==b&&(0,m.jsxs)(i.Fragment,{children:[(0,m.jsx)(a.aV.Item,{text:(0,m.jsx)(a.xv,{children:(0,r.XB)({text:w._('Who have set their language to <strong id="1">{{ language }}</strong>', 'waista.modal.criteria.list.languageMatch', 'Ad explanation for targeting language, language: Users language'),markers:{language:(0,u.we)(F.data??[],j)},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-language")}})})}),(0,m.jsx)(a.aV.Item,{text:(0,m.jsx)(a.xv,{children:(0,r.XB)({text:w._('Who have set their language to <strong id="1">{{ language }}</strong>', 'waista.modal.criteria.list.languageMatch', 'Ad explanation for targeting language, language: Users language, bulletPoint: leading bullet point'),markers:{language:(0,u.we)(F.data??[],j)},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-language")}})})})]}),k&&""!==b&&(0,m.jsx)(a.aV.Item,{text:(0,m.jsx)(a.xv,{children:(0,r.XB)({text:w._('Primary language is <strong id="1">{{ language }}</strong>', 'waista.modal.criteria.list.primarylLanguageMatch', 'Ad explanation for targeting language, language: Users languag'),markers:{language:(0,u.we)(F.data??[],j)},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-language")}})})}),!k&&""!==x&&""!==E&&(0,m.jsx)(a.aV.Item,{text:(0,m.jsx)(a.xv,{children:(0,r.XB)({text:w._('Who have set their gender to <strong id="1">{{ gender }}</strong>', 'waista.modal.criteria.list.setGenderMatch', 'Ad explanation for targeting gender, gender: the user\'s gender'),markers:{gender:E},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-gender")}})})}),k&&""!==x&&""!==E&&(0,m.jsx)(a.aV.Item,{text:(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:E})}),""!==C&&(0,m.jsx)(a.aV.Item,{text:w._('With your device type', 'waista.modal.criteria.list.deviceMatch', 'Ad explanation for targeting device')}),!k&&""!==t&&(0,m.jsx)(a.aV.Item,{text:(0,m.jsx)(a.xv,{children:(0,r.XB)({text:w._('In <strong id="1">{{ country }}</strong>', 'waista.modal.criteria.list.countryMatch', 'Ad explanation for targeting country, country: the user\'s country'),markers:{country:L},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-country")}})})}),k&&""!==t&&(0,m.jsx)(a.aV.Item,{text:(0,m.jsx)(a.xv,{children:(0,r.XB)({text:w._('Based in <strong id="1">{{ geoRegion }}</strong>', 'waista.modal.criteria.list.geoRegionMatch', 'Ad explanation for targeting geoRegion, geoRegion: Users geoRegion'),markers:{geoRegion:t??""},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-geoRegion")}})})}),k&&""!==n&&(0,m.jsx)(a.aV.Item,{text:(0,m.jsx)(a.xv,{children:(0,r.XB)({text:w._('Based in <strong id="1">{{ geoPostalCodeAttribute }}</strong>', 'waista.modal.criteria.list.geoPostalCodeAttributeMatch', 'Ad explanation for targeting geoPostalCodeAttribute, geoPostalCodeAttribute: Users geoPostalCodeAttribute'),markers:{geoPostalCodeAttribute:n??""},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-geoPostalCodeAttribute")}})})}),k&&_&&(0,m.jsx)(a.aV.Item,{text:w._('Who have interacted with their content on Pinterest', 'waista.modal.criteria.list.engagementMatch', 'Ad explanation for targeting engagement')}),k&&h&&(0,m.jsx)(a.aV.Item,{text:(0,m.jsx)(a.xv,{children:(0,r.XB)({text:w._('With similar demographic or interests as other <strong id="1">{{ brandName }}</strong> customers', 'waista.modal.criteria.list.actAlikeMatch', 'Ad explanation for targeting act alike, brandName: brand name'),markers:{brandName:e??""},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-act-alike")}})})})]})}),k&&g&&(0,m.jsx)(c.Z,{icon:"menu",iconAccessibilityLabel:w._('Icon for ad targeting user on an audience list', 'waista.modal.criteria.list.listIcon', 'Icon for ad targeting customer list'),text:(0,r.XB)({text:w._('Because you are on a list provided by <strong id="1">{{ brandName }}</strong>', 'waista.modal.criteria.list.onCustomerListTargeting', 'Ad explanation for targeting customer list , brandName: promoter name'),markers:{brandName:e??""},jsxReplacements:{1:({innerHtmlStrings:e})=>(0,m.jsx)(a.xv,{inline:!0,weight:"bold",children:e},"waista-customer-list")}})}),k&&y&&(0,m.jsx)(c.Z,{icon:"location",iconAccessibilityLabel:w._('Icon for ad targeting user on GPS', 'waista.modal.criteria.list.GPS', 'Icon for ad targeting GPS'),text:w._('Because of your GPS Location', 'waista.modal.criteria.list.GPSLocation', 'Ad explanation for targeting GPS')})]})})}},463057:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(282999);function a(e,t){return"/"===e.pathname?"/":(0,i.am)(e)&&t?`board/${e.pathname.substr(1)}`:e.pathname.substr(1)}},999836:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(545007);let a=()=>(0,i.v9)(({session:{canUseNativeApp:e}})=>e)},713660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(383399);function a(e){return e===(0,i.Z)().id}},98988:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(383399);function a(e){return(0,i.Z)().isAuth&&e}},115642:(e,t,n)=>{"use strict";n.d(t,{Nb:()=>s,Of:()=>o,YO:()=>r,ZP:()=>u,x4:()=>c});var i=n(667294),a=n(753652),l=n(590045);let r=({showProductDetailPage:e,isLargerPane:t,showCloseupContentRight:n})=>e&&t?n?l.Uj:l.zT:1,s=(0,a.qe)(({paneWidth:e,pdpCarouselSlotToPaneRatio:t,showCloseupContentRight:n,showProductDetailPage:i,viewportSize:a,maxWidth:l,descriptionPaneWidth:r,inCommentFooterRedesignExp:s,isCloseupRelatedPinsAboveTheFoldEnabled:o,isCommentAttachmentSelectorOpen:d,isCommentThreadExpanded:c,isMediaViewerOpen:u,isPinNoteExpanded:p,isProductDetailsExpanded:m,isShoppingModuleExpanded:g,setIsCommentAttachmentSelectorOpen:h,setIsCommentThreadExpanded:_,setIsMediaViewerOpen:y,setIsPinNoteExpanded:f,setIsProductDetailsExpanded:x,setIsShoppingModuleExpanded:b,closeupWithinMasonryEnabled:v,peekCloseupEnabled:P,isInRemoveMagnifyingGlassVariant:k,setAbortNoActionPlacementTimeout:S,clientTrackingParams:w,isCloseupMediaViewerOpen:I,setIsCloseupMediaViewerOpen:T,calculatedImageHeight:A,setCalculatedImageHeight:E})=>({paneWidth:e,pdpCarouselSlotToPaneRatio:t,showCloseupContentRight:n,showProductDetailPage:i,viewportSize:a,maxWidth:l,descriptionPaneWidth:r,isCommentAttachmentSelectorOpen:d,inCommentFooterRedesignExp:s,isCloseupRelatedPinsAboveTheFoldEnabled:o,isCommentThreadExpanded:c,isCloseupMediaViewerOpen:I,isMediaViewerOpen:u,isPinNoteExpanded:p,isProductDetailsExpanded:m,isShoppingModuleExpanded:g,setIsCommentAttachmentSelectorOpen:h,setIsCommentThreadExpanded:_,setIsCloseupMediaViewerOpen:T,setIsMediaViewerOpen:y,setIsPinNoteExpanded:f,setIsProductDetailsExpanded:x,setIsShoppingModuleExpanded:b,closeupWithinMasonryEnabled:v,peekCloseupEnabled:P,isInRemoveMagnifyingGlassVariant:k,setAbortNoActionPlacementTimeout:S,clientTrackingParams:w,calculatedImageHeight:A,setCalculatedImageHeight:E})),o={showCloseupContentRight:!0,showProductDetailPage:!1,viewportSize:"lg",paneWidth:l.Gg,pdpCarouselSlotToPaneRatio:1,maxWidth:l.u6,descriptionPaneWidth:l.u6-l.Gg,inCommentFooterRedesignExp:!1,isCloseupRelatedPinsAboveTheFoldEnabled:!1,isCommentAttachmentSelectorOpen:!1,isCommentThreadExpanded:!1,isCloseupMediaViewerOpen:!1,isMediaViewerOpen:!1,isPinNoteExpanded:!1,isShoppingModuleExpanded:!1,closeupWithinMasonryEnabled:!1,peekCloseupEnabled:!1,isInRemoveMagnifyingGlassVariant:!1,calculatedImageHeight:0,setAbortNoActionPlacementTimeout:()=>{},setIsCloseupMediaViewerOpen:()=>{},setIsCommentAttachmentSelectorOpen:()=>{},setIsMediaViewerOpen:()=>{},setIsShoppingModuleExpanded:()=>{},setCalculatedImageHeight:()=>{}},d=(0,i.createContext)(o);function c(){let e=(0,i.useContext)(d);if(!e)throw Error("useCloseupContext must be used within CloseupContextProvider");return e}let u=d},590045:(e,t,n)=>{"use strict";n.d(t,{$T:()=>f,CI:()=>r,Ch:()=>o,ER:()=>y,Gb:()=>d,Gg:()=>a,Hf:()=>v,Ie:()=>m,KP:()=>g,Kn:()=>s,O5:()=>x,Uj:()=>c,bx:()=>h,d2:()=>p,g9:()=>_,iB:()=>P,rv:()=>b,u6:()=>l,zT:()=>u});var i=n(883119);let a=508,l=1016,r=488,s=992,o=672,d=1176,c=.6,u=.84,p=40,m=72,g=740,h=912,_=32,y=16,f=24,x=2,b=1,v=new i.Ry(5),P={ARTICLE:"https://schema.org/Article",BRAND:"https://schema.org/Brand",PRODUCT:"https://schema.org/Product",RECIPE:"https://schema.org/Recipe",OFFER:"https://schema.org/Offer",OUT_OF_STOCK:"https://schema.org/OutOfStock",PERSON:"https://schema.org/Person"}},920217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(883119),a=n(716259);let l=new i.H3([a.eu])},407277:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var i,a=n(667294);n(167912);var l=n(883119),r=n(793874),s=n(47848),o=n(144326),d=n(730212),c=n(750077),u=n(1006),p=n(154785),m=n(833764),g=n(410150),h=n(991868),_=n(785893);let y=(0,a.lazy)(()=>Promise.all([n.e(36075),n.e(70156)]).then(n.bind(n,153504))),f=(0,a.lazy)(()=>n.e(24626).then(n.bind(n,924626))),x=void 0!==i?i:i=n(942852);function b({pinCreditPrefix:e,clickthroughInterstitialExperience:t,forcePrimaryContent:n,onMobileTap:i,pinKey:b,overlayingPinImage:v=!1,hoveringInFeed:P,onSendButtonClick:k=()=>{},viewParameter:S}){let w=(0,o.ZP)(),I=(0,p.Z)(),T=(0,m.Z)(),A=(0,a.useRef)(),E=(0,g.HG)(),C=(0,g.Wb)(),{isAuthenticated:j}=(0,d.B)(),F=(0,r.vs)(),[L,D]=(0,a.useState)(!1),R=(0,s.Z)(x,b),O=(0,h.Z)({clickthroughInterstitialExperience:t,pinKey:R,viewParameter:S}),Z=R?.entityId,M=R?.pinJoin?.shoppingKlpUrls||[];(0,a.useEffect)(()=>{let e=()=>{n?.(!1),D(!1),(0,u.My)("dweb.unauth.context_menu.click_away")};return L&&document.addEventListener("click",e),()=>{L&&document.removeEventListener("click",e)}},[L,n]);let K=v?"white":"darkGray",N=v||F?"transparent":"white";E&&(N=P?"transparent":"white",N="white");let z=F?r.t4:"white";return(0,_.jsxs)(a.Fragment,{children:[(0,_.jsx)(l.xu,{ref:A,dangerouslySetInlineStyle:{__style:{...E?"":{backgroundColor:z}}},rounding:"circle",children:(0,_.jsx)(l.hU,{accessibilityLabel:w._('more', 'Pin more button', 'Pin more button'),bgColor:P?"lightGray":N,icon:"ellipsis",iconColor:K,onClick:({event:t})=>{j||E?(I({action:"click",item:"ellipsis-button",within:"contextual-menu-modal"}),E?(t.stopPropagation(),t.preventDefault(),(0,u.My)("dweb.ellipsis_button.context_menu.open"),n?.(!0),D(!0),L&&(D(!1),n?.(!1))):i&&i(t)):Z&&R?.pinner?T({pinId:Z,location:"main-pin-overflow",vaseSection:!C&&(0,_.jsx)(c.Z,{children:(0,_.jsx)(f,{dedupeVisualAnnotations:null,onClickTitleOrDomain:O,pinCreditPrefix:e,pinKey:R,shoppingKlpUrls:M,viewObjectId:R.entityId,viewParameter:S,viewType:3})})}):i&&i(t)},selected:!E&&v,size:P?"sm":"lg"})}),L&&E&&Z&&R?.pinner&&(0,_.jsx)(c.Z,{children:(0,_.jsx)(y,{anchor:A.current,hoveringInFeed:!!P,onSendButtonClick:k,pinKey:R})})]})}},120271:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(883119),a=n(144326),l=n(730212),r=n(785893);let s=({onSendButtonClick:e,trackShareTap:t,color:n,size:s,bgColor:o})=>{let d=(0,a.ZP)(),{userAgent:{platform:c}}=(0,l.B)();return(0,r.jsx)(i.hU,{accessibilityLabel:d._('Send', 'Board.Pin.SendButton', 'Accessible label for button to send a pin or a board'),bgColor:o||"transparent",icon:"android"===c?"android-share":"share",iconColor:n||"darkGray",onClick:({event:n})=>{e(n),t()},size:s||"lg"})}},563646:(e,t,n)=>{"use strict";n.d(t,{w:()=>o,z:()=>s});var i=n(667294),a=n(498490),l=n(785893);let{Provider:r,useMaybeHook:s}=(0,a.Z)("CloseupPreviewContext");function o({children:e}){let[t,n]=(0,i.useState)(Object.freeze({})),a=(0,i.useMemo)(()=>({setData:(e,t)=>n(n=>({...n,[e]:t})),getData:e=>t[e]}),[t]);return(0,l.jsx)(r,{value:a,children:e})}},716259:(e,t,n)=>{"use strict";n.d(t,{eu:()=>l,sp:()=>r,xh:()=>a});var i=n(883119);let a=2,l=new i.Ry(1),r=new i.Ry(1)},943438:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(790661);let a=e=>{let t=(0,i.Z)({url:e.location.search});switch(e.action){case"PUSH":if("news_hub"===t.entrySource)return"deeplink";return"click";case"REPLACE":return"click";case"POP":if(!e.location.key)return"deeplink";return"click";default:return null}}},991868:(e,t,n)=>{"use strict";n.d(t,{Z:()=>F});var i,a=n(545007);n(167912);var l=n(616550),r=n(488792),s=n(801925),o=n(47848),d=n(89393),c=n(264147),u=n(256277),p=n(26473),m=n(891985),g=n(593078),h=n(730212),_=n(154785),y=n(868808),f=n(943438),x=n(400416),b=n(1006);let v=async({pinId:e,link:t,mobileLink:n,origImageUrl:i,trackedLink:a,clientTrackingParams:l})=>{let r=await (0,x.Z)({url:"/v3/offsite/",data:{check_only:!0,client_tracking_params:l,pin_id:e??null,url:(0,m.Zt)({link:t,mobileLink:n,origImageUrl:i,trackedLink:a})??""}});if(!r||!r.resource_response||r.resource_response.error)return"error";{let{redirect_status:e}=r.resource_response.data;return e}},P=e=>{v(e).then(e=>(0,b.My)(`mweb.unauth.clickthrough_quality.${e}`))};var k=n(127566),S=n(905592),w=n(720802),I=n(814779);let T=void 0!==i?i:i=n(111476),A=({commerceData:e,isPromoted:t,imageSignature:n,location:i,pinId:a,trackingParams:l,viewParameter:r})=>({object_id_str:a,component:4,element:35,view_type:3,view_parameter:r,clientTrackingParams:(0,k.Z)((i.state||{}).trackingParams,l),aux_data:{commerce_data:e,image_signature:n,is_promoted:t}}),E=()=>navigator.onLine,C=({context:{completeExperience:e,dispatch:t,history:n,isAuthenticated:i,isBot:a,isSocialBot:l,location:r,logContextEvent:o,shouldUpsellHomePage:d,trackInteraction:g,userIsNew:h,viewExperience:_,unauthUserStateDispatch:x},data:{category:b,clickthroughInterstitialExperience:v,commerceData:k,domain:S,embedSrc:w,embedType:I,hasPromoter:T,isPromoted:C,imageSignature:j,imagesUrls:F,link:L,linkDomainOfficialUserImageMediumUrl:D,linklessOptions:R,mobileLink:O,pinId:Z,trackedLink:M,trackingParams:K,viewParameter:N}})=>()=>{let z=A({commerceData:k,imageSignature:j,isPromoted:C,location:r,pinId:Z,trackingParams:K,viewParameter:N});g({action:"click",item:"clickthrough"}),i||P({pinId:Z,link:L,mobileLink:O,origImageUrl:F?.orig,trackedLink:M,clientTrackingParams:z.clientTrackingParams}),o({event_type:12,...z}),o({event_type:8948,view_type:3,view_parameter:N,object_id_str:Z,clientTrackingParams:z.clientTrackingParams,aux_data:{image_signature:j,closeup_navigation_type:(0,f.Z)(n),click_type:"clickthrough",cosmic_ray_count:"1",is_promoted:C}}),!i&&j&&S&&L&&x({type:"ADD_UNAUTH_CLICKTHROUGH_PIN",payload:{imageSignature:j,pinId:Z,domain:S,link:L}});let B=(0,m.Zt)({link:L,mobileLink:O,origImageUrl:F?.orig,trackedLink:M})??"",U={pin:Z,client_tracking_params:z.clientTrackingParams};if(R){if(!R.actionBarIsMinifiedToMainPinImage){let e=new XMLHttpRequest;e.open("GET",(0,c.Z)(B,{queryParams:U})),e.send()}R.onTap();return}let H=!T&&(h||d);if(H&&t((0,s.kd)(1000162)),H&&v){t(_(v.placement_id,v.experience_id)),t(e(v.placement_id,v.experience_id));let n=(0,c.Z)(B,{queryParams:U}),i=(0,p.Z)({imagesUrls:F,embedSrc:w,embedType:I,excludeOriginals:!a&&!l}),s=r.pathname+r.search;if(!E())return;window.open((0,y.ru)("/pin_redirect",{domain:S??"",domainImageUrl:D??"",origin:s,pinCategory:b,pinImageUrl:i,redirectUrl:n}),"_blank")}else{if(!E())return;(0,u.Z)(B,{queryParams:U})}},j=()=>{let e=(0,l.k6)(),t=(0,l.TH)(),n=(0,a.I0)(),{unauthUserStateDispatch:i}=(0,w.R)(),o=(0,I.S)(),c=(0,a.v9)(({users:e,session:t})=>(0,d.Z)(e[t.userId].created_at)),{isAuthenticated:u,isBot:p,isSocialBot:m}=(0,h.B)(),g=(0,r.Z)();return{history:e,location:t,dispatch:n,shouldUpsellHomePage:o,userIsNew:c,isAuthenticated:u,isBot:p,isSocialBot:m,logContextEvent:g,trackInteraction:(0,_.Z)(),completeExperience:(0,s.be)(),viewExperience:(0,s.Ig)(),unauthUserStateDispatch:i}},F=({clickthroughInterstitialExperience:e,linklessOptions:t,pinKey:n,viewParameter:i})=>{let a=(0,o.Z)(T,n),l=(0,g.Z)(a),r=(0,S.Z)(a),s=j();return a?C({context:s,data:{hasPromoter:!!(a.promoter&&!a.isDownstreamPromotion),viewParameter:i,clickthroughInterstitialExperience:e,linklessOptions:t,pinId:a.entityId,commerceData:r,imageSignature:a.imageSignature,mobileLink:a.mobileLink,trackingParams:a.trackingParams,link:a.link,trackedLink:a.trackedLink,imagesUrls:l,embedSrc:a.embed?.src,embedType:a.embed?.type,category:a.category,domain:a.domain,linkDomainOfficialUserImageMediumUrl:a.linkDomain?.officialUser?.imageMediumUrl,isPromoted:a.isPromoted}}):()=>null}},243583:(e,t,n)=>{"use strict";n.d(t,{Yg:()=>o,ib:()=>c,nF:()=>p,xX:()=>u});var i=n(297728),a=n(730212),l=n(410150),r=n(415787);let s=({checkExperiment:e})=>{let{group:t}=e("auth_mweb_graphql_pin_page",{dangerouslySkipActivation:!0});return{logStat:(e,n)=>(0,r.nP)("webapp.graphql.debug_auth_mweb_graphql_pin_page",{sampleRate:1,tags:{event:e,group:t,...n}})}},o=()=>{let{isAuthenticated:e}=(0,a.B)(),t=(0,l.HG)(),{checkExperiment:n}=(0,i.F)();return e&&!t?s({checkExperiment:n}):{logStat:()=>{}}},d=0,c=({checkExperiment:e,isAuthMweb:t})=>{if(!t)return;let{logStat:n}=s({checkExperiment:e});(d+=1)<10&&n(`repin_${d}`)};function u({checkExperiment:e,isDesktop:t,isAuthenticated:n}){if(!n)return{isGraphQLEnabledInGeneral:!0,isGraphQLEnabledForRelatedPins:!0,closeupPageSuspenseBehavior:"SuspendOnMissingData",isImpressionFixEnabled:!1,addRelatedPinsLatency:!1};if(t){let{anyEnabled:t}=e("auth_dweb_graphql_pin_page");return{isGraphQLEnabledForRelatedPins:t,isGraphQLEnabledInGeneral:t,closeupPageSuspenseBehavior:null,isImpressionFixEnabled:!1,addRelatedPinsLatency:!1}}{let{anyEnabled:t,group:n}=e("auth_mweb_graphql_pin_page");switch(n){case"control":return{isGraphQLEnabledInGeneral:!1,isGraphQLEnabledForRelatedPins:!1,closeupPageSuspenseBehavior:null,isImpressionFixEnabled:!1,addRelatedPinsLatency:!1};case"only_impression_fix":return{isGraphQLEnabledInGeneral:!1,isGraphQLEnabledForRelatedPins:!1,closeupPageSuspenseBehavior:null,isImpressionFixEnabled:!0,addRelatedPinsLatency:!1};case"enabled":return{isGraphQLEnabledInGeneral:!0,isGraphQLEnabledForRelatedPins:!0,closeupPageSuspenseBehavior:"SuspendOnMissingData",isImpressionFixEnabled:!1,addRelatedPinsLatency:!1};case"enabled_and_impression_fix":return{isGraphQLEnabledInGeneral:!0,isGraphQLEnabledForRelatedPins:!0,closeupPageSuspenseBehavior:"SuspendOnMissingData",isImpressionFixEnabled:!0,addRelatedPinsLatency:!1};case"only_related_pins":return{isGraphQLEnabledInGeneral:!1,isGraphQLEnabledForRelatedPins:!0,closeupPageSuspenseBehavior:null,isImpressionFixEnabled:!1,addRelatedPinsLatency:!1};case"only_related_pins_and_impression_fix":return{isGraphQLEnabledInGeneral:!1,isGraphQLEnabledForRelatedPins:!0,closeupPageSuspenseBehavior:null,isImpressionFixEnabled:!0,addRelatedPinsLatency:!1};case"should_render_with_missing_data":return{isGraphQLEnabledInGeneral:!0,isGraphQLEnabledForRelatedPins:!0,closeupPageSuspenseBehavior:"RenderWithMissingData",isImpressionFixEnabled:!1,addRelatedPinsLatency:!1};case"render_and_subscribe":return{isGraphQLEnabledInGeneral:!0,isGraphQLEnabledForRelatedPins:!0,closeupPageSuspenseBehavior:"RenderWithMissingDataAndSubscribe",isImpressionFixEnabled:!1,addRelatedPinsLatency:!1};case"add_related_pins_latency":return{isGraphQLEnabledInGeneral:!1,isGraphQLEnabledForRelatedPins:!1,closeupPageSuspenseBehavior:null,isImpressionFixEnabled:!1,addRelatedPinsLatency:!0};default:return{isGraphQLEnabledInGeneral:t,isGraphQLEnabledForRelatedPins:t,closeupPageSuspenseBehavior:t?"SuspendOnMissingData":null,isImpressionFixEnabled:!1,addRelatedPinsLatency:!1}}}}function p(){let{checkExperiment:e}=(0,i.F)(),t=(0,l.HG)(),{isAuthenticated:n}=(0,a.B)();return u({checkExperiment:e,isDesktop:t,isAuthenticated:n})}},166124:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i,a=n(545007);n(167912);var l=n(883119),r=n(129666),s=n(47848),o=n(115642),d=n(359422),c=n(409065),u=n(785893);let p=void 0!==i?i:i=n(11475);function m({carouselData:e,carouselIndex:t,componentType:n,contextLogData:i,enablePagination:m=!1,handleCarouselSwipe:g,isCloseup:h,isEditMode:_,itemsPerPage:y,pinKey:f,viewParameter:x,viewType:b,variant:v}){let P=(0,s.Z)(p,f),k=(0,d.Z)(P),S=(0,r.Z)(P),w=e||S&&{carouselSlots:S.carouselSlots.map(({slotId:e,title:t})=>({id:e,title:t})),entityId:S.carouselId??"",index:S.index},I=(0,a.I0)();if(!w)return null;let T=(e,t,a)=>{_||void 0===c.yR||(e.preventDefault(),e.stopPropagation(),I((0,c.yR)(P?.entityId??"",a))),void 0!==g&&g(a),k({pinId:P?.entityId??"",currentIndex:t??0,nextIndex:a,carouselData:{carouselSlots:w.carouselSlots?.map(e=>({id:e.id})),entityId:w.entityId},viewParameter:x,viewType:b,componentType:n,contextLogData:i,isEditMode:_})},{carouselSlots:A,index:E}=w,C="number"==typeof t?t:E,j=A?.length&&y?Math.ceil(A?.length/y):void 0,F="default"===v,L=F?"white":"#555",D=F?"rgba(255, 255, 255, 0.5)":"lightGray",R=(e,t)=>(0,u.jsx)(l.xu,{paddingX:1,children:(0,u.jsx)(l.iP,{accessibilityLabel:(e||{}).title??"",fullWidth:!1,onTap:({event:e})=>T(e,C,t),rounding:"circle",children:(0,u.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:t===C?L:D}},"data-test-id":"ellipsis-size",height:8,rounding:"circle",width:8})})},`${e?.id}-${t}`);return(0,u.jsx)(o.ZP.Consumer,{children:({closeupWithinMasonryEnabled:e,viewportSize:t})=>"sm"===t&&(e&&14339!==n&&14394!==n||!e)?null:A&&(0,u.jsx)(l.xu,{alignItems:"center","data-test-id":"carousel-ellipsis",display:"flex",justifyContent:h?"end":"center",paddingY:_?1:0,children:m?y&&[...Array(j).keys()].map(e=>R(A[e*y],e*y)):[...Array(A.length).keys()].map(e=>R(A[e],e))})})}},993422:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i,a=n(545007);n(167912);var l=n(883119),r=n(129666),s=n(47848),o=n(144326),d=n(166124),c=n(359422),u=n(409065),p=n(785893);let m={cursor:"pointer",padding:"30px 16px",position:"relative",zIndex:1},g=(e,t,n,i,a,l)=>{l||void 0===i||(e.preventDefault(),e.stopPropagation(),i(t,n)),void 0!==a&&a(n)},h=void 0!==i?i:i=n(357289);function _({addEllipsis:e,alwaysShowNavigationArrows:t,carouselIndex:n,carouselData:i,ellipsisVariant:_,handleCarouselSwipe:y,height:f,isShowingLastSlide:x,pinKey:b,contextLogData:v,viewParameter:P,viewType:k,componentType:S,isEditMode:w,storyType:I,itemsPerPage:T,forwardNode:A,backNode:E,sliderStyleOverride:C,hideNavigationArrows:j}){let F=(0,o.ZP)(),L=(0,a.I0)(),D=(0,s.Z)(h,b),R=(0,c.Z)(D),O=(0,r.Z)(D),Z=i||O&&{carouselSlots:O.carouselSlots.map(({slotId:e,title:t})=>({id:e,title:t})),entityId:O.carouselId??"",index:O.index};if(!Z)return null;let M=(e,t)=>L((0,u.yR)(e,t)),{carouselSlots:K,index:N}=Z,z=void 0!==n?n:N??0,B=Math.max(0,z-(T??1)),U=Math.min((K??[]).length-1,z+(T??1)),H=0===z,G=x||z===(K??[]).length-1,V=(e,t)=>{let n=t<z?9315:9316,i="search_3p_ad_only_module"===I;g(e,D?.entityId??"",t,M,y,w),R({pinId:D?.entityId??"",currentIndex:z,nextIndex:t,carouselData:{carouselSlots:K?.map(({id:e})=>({id:e})),entityId:Z.entityId},viewParameter:P,viewType:k,storyType:I,componentType:S,contextLogData:v,isEditMode:w,isEligibleForPdp:D?.isEligibleForPdp??!1,swipeEvent:i?n:108})},W=E||(0,p.jsx)(l.JO,{accessibilityLabel:F._('View Previous', 'Button to advance carousel to the previous image', 'Button to advance carousel to the previous image'),color:"inverse",icon:"arrow-back"}),$=j?null:A||(0,p.jsx)(l.JO,{accessibilityLabel:F._('View Next', 'Button to advance carousel to the next image', 'Button to advance carousel to the next image'),color:"inverse",icon:"arrow-forward"});return(0,p.jsxs)(l.xu,{alignItems:"center",bottom:!f,"data-test-id":"carousel-sliders",display:"flex",height:f,justifyContent:j?"center":"between",left:!0,position:"absolute",right:!0,top:!0,children:[!j&&(0,p.jsx)("div",{"data-test-id":"carousel-slider-left",onClick:e=>{V(e,B)},onKeyUp:e=>{V(e,B)},role:"presentation",style:{...m,...C,pointerEvents:H?"none":"auto"},children:(0,p.jsx)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{visibility:H&&!t?"hidden":"visible",opacity:H&&t?"50%":"100%"}},"data-test-id":"carousel-slider-left-box",display:"flex",height:"100%",justifyContent:"center",width:"100%",children:W})}),e&&(0,p.jsx)(d.default,{carouselData:{carouselSlots:Z.carouselSlots?.map(({id:e,title:t})=>({id:e,title:t})),entityId:Z.entityId,index:Z.index},carouselIndex:n,componentType:S,handleCarouselSwipe:y,itemsPerPage:T,pinKey:D,variant:_||"default",viewParameter:P,viewType:k}),!j&&(0,p.jsx)("div",{"data-test-id":"carousel-slider-right",onClick:e=>{V(e,U)},onKeyUp:e=>{V(e,U)},role:"presentation",style:{...m,...C,pointerEvents:G?"none":"auto"},children:(0,p.jsx)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{visibility:G&&!t?"hidden":"visible",opacity:G&&t?"50%":"100%"}},"data-test-id":"carousel-slider-right-box",display:"flex",height:"100%",justifyContent:"center",width:"100%",children:$})})]})}},359422:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o}),n(167912);var i,a=n(573706),l=n(47848),r=n(151958);let s=void 0!==i?i:i=n(107414);function o(e){let{logContextEvent:t}=(0,a.v)(),n=(0,l.Z)(s,e),i=(0,r.Z)(n);return function({pinId:e,currentIndex:n,nextIndex:a,carouselData:l,viewParameter:r,viewType:s,storyType:o,componentType:d,contextLogData:c,isEditMode:u,swipeEvent:p}){if(!u){let{carouselSlots:u,entityId:m}=l,{objectIdStr:g,...h}=c??{};t({event_type:p??108,object_id_str:e??g,component:d,view_type:s,view_parameter:r,event_data:{pinCarouselSlotEventData:{carouselSlotId:u?.[n]&&Number(u[n].id),carouselDataId:Number(m),carouselSlotIndex:n,toCarouselSlotIndex:a}},aux_data:{story_type:o,...h,...i()}})}}}},193836:(e,t,n)=>{"use strict";n.d(t,{_l:()=>x,cO:()=>f,t2:()=>b,w2:()=>v,xM:()=>y});var i=n(667294),a=n(616550),l=n(252071),r=n(282999),s=n(868808),o=n(410150),d=n(383399),c=n(785893);let u="UnauthDesktopSocialPinLandingPageContext",p="AthDesktopSocialPinLandingPageContext",m="AuthMobileSocialPinLandingPageContext",g=(0,i.createContext)(),h=({children:e})=>{let[t,n]=(0,i.useState)(!1),[a,l]=(0,i.useState)(!1),r=(0,i.useMemo)(()=>({hasSeenAuthMobileLandingToast:t,setHasSeenAuthMobileLandingToast:n,hasSeenAuthDesktopLandingToast:a,setHasSeenAuthDesktopLandingToast:l}),[t,n,a,l]);return(0,c.jsx)(g.Provider,{value:r,children:e})},_=(0,i.createContext)({key:"",data:null}),y=({children:e})=>{let t=(0,a.TH)(),n=(0,d.Z)(),g=n&&n.isAuth,y=(0,o.HG)(),f=(0,i.useRef)((0,r.fY)(t)&&(0,s.mB)(t.search).invite_code||null),x=(0,a.LX)(t.pathname,{path:"/pin/:id"}),b=x&&x.params.id||"",[v,P]=(0,i.useState)({key:"",data:null});return(0,i.useEffect)(()=>{(async function(){let e=f.current;if(e)try{let t=l.Z.create("InviteCodeMetadataResource",{invite_code:e}),i=(await t.callGet()).resource_response.data;if(i){let e=i.sender??null,t=g&&e.id!==n.id&&e?.should_show_messaging&&n.should_show_messaging;!g&&y?P({key:u,data:{inviter:e,popoverData:e&&![5,9,12,16].includes(i.invite_channel)?{inviterAvatarUrl:e.image_medium_url||"",inviterName:e.first_name||e.full_name}:null}}):t&&!y?P({key:m,data:{toastData:{inviter:{inviterAvatarUrl:e.image_medium_url||"",inviterName:e.first_name||e.full_name,inviterId:e.id},viewer:{viewerId:n.id||""},pin:{pinId:b}}}}):t&&y&&P({key:p,data:{toastData:{inviter:{inviterAvatarUrl:e.image_medium_url||"",inviterName:e.first_name||e.full_name,inviterId:e.id},viewer:{viewerId:n.id||""},pin:{pinId:b}}}})}else P({key:"",data:null})}catch{P({key:"",data:null})}})()},[g,y,n.id,b,n.should_show_messaging]),(0,c.jsx)(h,{children:(0,c.jsx)(_.Provider,{value:v,children:e})})},f=()=>{let e=(0,i.useContext)(_);return e.key===u?e:null},x=()=>{let e=(0,i.useContext)(_);return e.key===m?e:null},b=()=>{let e=(0,i.useContext)(_);return e.key===p?e:null},v=()=>(0,i.useContext)(g)},563027:(e,t,n)=>{"use strict";function i({isEligibleForPdp:e,isOosProduct:t,isStaleProduct:n,pinShoppingFlags:i}){if(i)return JSON.stringify({pin_is_shop_the_look:i.includes(2),pin_show_pdp:e||t||n,is_available:i.includes(1),is_product_pin_v2:i.includes(5),is_rich_product_pin:i.includes(6)})}n.d(t,{Z:()=>i})},127566:(e,t,n)=>{"use strict";function i(e,t){return e||`${t||""}~0`}n.d(t,{Z:()=>i})},905592:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(167912);var i,a=n(47848),l=n(563027);let r=void 0!==i?i:i=n(219952);function s(e){let t=(0,a.Z)(r,e);return t?(0,l.Z)({isEligibleForPdp:t.isEligibleForPdp,isOosProduct:t.isOosProduct,isStaleProduct:t.isStaleProduct,pinShoppingFlags:t.shoppingFlags}):null}},970067:(e,t,n)=>{"use strict";n.d(t,{G3:()=>c,Rp:()=>d,kp:()=>s});var i=n(967232),a=n(786525),l=n(978993);let r=14*i.F4,s=(e,t)=>{let n=function(){let e=Date.now(),t=Number((0,a.qn)("appUpsell"));return{currentTime:e,firstUpsellTime:Number((0,a.qn)("firstUpsellTime")),lastUpsellTime:t,showedAppUpsellCurrentSession:!!(0,l.qn)("showedAppUpsellCurrentSession")}}();return e?function(e,t,n){let{currentTime:i,firstUpsellTime:l,lastUpsellTime:s,showedAppUpsellCurrentSession:o}=e;return(n=n||r,!l||i<l+t)?!o:i-s>n&&((0,a.L_)("firstUpsellTime"),!0)}(n,i.F4):function(e,t){let{currentTime:n,lastUpsellTime:i}=e;return t=t||r,!i||n-i>t}(n,t)},o=e=>{let t=(e=e.toLowerCase()).match(/android\s([0-9\.]*)/i);return t?t[1]:void 0},d=({isBot:e,platform:t,userAgent:n})=>{try{return!e&&"android"===t&&7>parseFloat(o(n))}catch(e){return!1}},c=e=>(e.startsWith("zh")||e.startsWith("ar")?e:e.slice(0,2)).toUpperCase()},151385:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,CK:()=>d,Fc:()=>s,Wj:()=>r,Xe:()=>l,kb:()=>o,wS:()=>a,zX:()=>u});var i=n(107950);let a=(e,t,n,i)=>t||(e?e.official_user:n||i);function l({hasLinkDomain:e,hasNativeCreator:t,hasOriginPinner:n,pinDomain:i,sourceUserUsername:a,sourceUserFullName:l}){return!t&&(e||n)&&a?{pinCreditLink:`/${a}/`,pinCredit:l}:{pinCreditLink:void 0,pinCredit:!t&&e?i:""}}let r=({i18n:e,hasLinkDomain:t,hasRichMetadataArticle:n,hasRichMetadataRecipeCategorizedIngredients:i,hasRichMetadataTutorial:a,richMetadataRecipeFromAggregatedData:l})=>(!t||l)&&e._('Saved by ', 'Closeup pin annotation', 'Closeup pin annotation')||a&&e._('Saved from ', 'pin annotation', 'pin annotation')||i&&e._('Recipe from ', 'pin annotation', 'pin annotation')||n&&e._('Article from ', 'pin annotation', 'pin annotation')||e._('From ', 'Closeup pin annotation', 'Closeup pin annotation');function s({i18n:e,hasRichMetadataProductOfferSummary:t,richMetadataProductName:n,richSummaryProductName:i,hasRichSummaryProductOfferSummary:a}){return t&&n||!t&&i&&a?e._('Product sold by ', 'pin annotation', 'pin annotation'):""}let o=({hasLinkDomain:e,richMetadata:t,richSummary:n})=>e&&!t?.recipe?.fromAggregatedData&&t?.products&&t.products[0]&&t.products[0].name&&t.products[0].offerSummary?t.products[0].offerSummary:n?.products&&n.products[0]&&n.products[0].name&&n.products[0].offerSummary?n.products[0].offerSummary:void 0,d=({hasRichMetadata:e,hasRichMetadataProducts:t,hasRichMetadataArticle:n,hasRichMetadataRecipe:i})=>e?t?144:n?141:i?145:139:140,c=e=>!!e&&!e.startsWith("https://i.pinimg.com"),u=e=>!!e&&[i.s.TRAINED_ALGORITHMIC_MEDIA,i.s.COMPOSITE_WITH_TRAINED_ALGORITHMIC_MEDIA].includes(e)},720802:(e,t,n)=>{"use strict";n.d(t,{M:()=>C,R:()=>A});var i=n(667294),a=n(609326),l=n(817578),r=n(498490),s=n(864723),o=n(969119),d=n(640498),c=n(842909);let u=()=>(0,s.M0)().getItem(a.Vb)||[],p=({pinId:e,link:t,imageSignature:n,domain:i})=>{let l=[...u()],r=l.length,o=r?l[0].pinId:"";if(!r||e!==o){let l=(0,c.Z)({pinId:e,link:t,imageSignature:n,domain:i});(0,s.M0)().prependItem(a.Vb,l,d.LG)}},m=()=>(0,s.M0)().getItem(a.ny)||[],g=({query:e,rs:t,scope:n,rg:i})=>{let l=[...m()],r=l.length,o=r?l[0].query:"";if(!r||e!==o){let l=(0,c.Z)({query:e,rs:t,scope:n,rg:i});(0,s.M0)().prependItem(a.ny,l,d.LG)}},h=({query:e})=>{let t=[...m()].filter(t=>t.query!==e);(0,s.M0)().setItem(a.ny,t)};function _(e,t,n){if(e>=n)return`${n}+`;if(e<=0)return"0";let i=e.toString();if(e>t){let n=Math.floor(e/t);i=`${n*t}+`}return i}var y=n(333289),f=n(445330),x=n(927371),b=n(785893);let v=()=>(0,s.M0)().getItem(a.s1)??[],P=()=>parseInt((0,s.M0)().getItem(a.rN)||0,10),k=e=>_(e,5,20),S=(e,t,n)=>t.reduce((t,n)=>(Array.isArray(e[n])&&(t[n+"Count"]=k(e[n].length)),t),n),w=e=>({...e,_updateUnauthUserAggregateDefinitions:function(){let{completedSearches:t,closeupPins:n,clickthroughPins:i,downloadedPinsCount:a}=e;e.isQUS=Number(t.length>=1||n.length>=3||i.length>=1||a>=1)},_getDaysSinceLastRevisitation:function(){let{revisitationState:t}=e,{ts:n}=t,i=new Date,a=new Date(n||i),l=Math.max(Math.floor(Number(((i.getTime()-a.getTime())/864e5).toFixed(2))),0),r=_(l,7,84);return[l,r]},getStatslogData:function(){return{core:S(e,[],{isQUS:e.isQUS.toString(),isAllowedCountry:e.isAllowedCountry.toString(),daysSinceLastRevisitationBucket:e.daysSinceLastRevisitationBucket}),counts:S(e,["closeupPins","completedSearches","clickthroughPins","savedPins","invitesRedeemed"],{revisitationCount:k(e.revisitationState.count||1),downloadedPinsCount:k(e.downloadedPinsCount)})}}}),I=({isAuthenticated:e,countryFromIp:t,countryFromHostName:n})=>{let i={isAuthenticated:Number(e),countryFromIp:t||"",countryFromHostName:n||"",closeupPins:[],completedSearches:[],clickthroughPins:[],downloadedPinsCount:0,savedPins:[],invitesRedeemed:[],isQUS:0,revisitationState:(0,f.K7)(),daysSinceLastRevisitation:0,daysSinceLastRevisitationBucket:"0",isAllowedCountry:Number((0,l.j)(t||"")&&(0,l.j)(n||""))};if(e||!i.isAllowedCountry)return Object.freeze({...w(i),...i});i.closeupPins=(0,x.Z)(),i.completedSearches=m(),i.clickthroughPins=u(),i.downloadedPinsCount=P(),i.savedPins=v(),i.invitesRedeemed=(0,y.SL)(),i.revisitationState=(0,f.iU)();let a=w(i),[r,s]=a._getDaysSinceLastRevisitation();return i.daysSinceLastRevisitation=r,i.daysSinceLastRevisitationBucket=s,a._updateUnauthUserAggregateDefinitions(),Object.freeze({...a,...i})},{Provider:T,useHook:A}=(0,r.Z)("UnauthUserStateContext");function E(e,t){let{isAuthenticated:n,countryFromIp:i,countryFromHostName:a,isAllowedCountry:l}=e;if(n||!l)return e;switch(t.type){case"UPDATE":break;case"ADD_UNAUTH_COMPLETED_SEARCH":g(t.payload);break;case"REMOVE_UNAUTH_COMPLETED_SEARCH":h(t.payload);break;case"ADD_UNAUTH_CLICKTHROUGH_PIN":p(t.payload);break;default:return e}return I({isAuthenticated:n,countryFromIp:i,countryFromHostName:a})}function C({children:e,initialState:t}){let[n,a]=(0,i.useReducer)(E,t,I);(0,o.Z)(()=>{a({type:"UPDATE"})});let l=(0,i.useMemo)(()=>({unauthUserState:n,unauthUserStateDispatch:a}),[n,a]);return(0,b.jsx)(T,{value:l,children:e})}},842909:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=function(e){return{...e,ts:Date.now()}}},333289:(e,t,n)=>{"use strict";n.d(t,{Lp:()=>d,SL:()=>s,nR:()=>o});var i=n(609326),a=n(640498),l=n(864723),r=n(842909);let s=()=>(0,l.M0)().getItem(i.nF)??[],o=()=>(0,l.M0)().getItem(i.T6)??"",d=e=>{if(!e)return;let t=(0,r.Z)({inviteCode:e}),n=(0,l.M0)();n.setItem(i.T6,t),n.prependItem(i.nF,t,a.LG)}},445330:(e,t,n)=>{"use strict";n.d(t,{K7:()=>r,Vd:()=>o,iU:()=>s});var i=n(609326),a=n(864723),l=n(842909);let r=()=>({count:1,time:0,ts:Date.now()}),s=()=>{try{let{count:e,time:t,ts:n}=(0,a.M0)().getItem(i.SI)??{};if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return{count:e,time:t,ts:n};throw Error("Invalid revisitation data")}catch(e){return r()}},o=e=>{(0,a.M0)().setItem(i.SI,(0,l.Z)(e))}},217649:(e,t,n)=>{"use strict";n.d(t,{CC:()=>c,H$:()=>p,Mt:()=>o,dp:()=>u,p9:()=>m});var i=n(609326),a=n(192820),l=n(640498),r=n(864723),s=n(166408);let o=({key:e,lastVisitedPage:t,imageSignature:n,pinId:i,imageInfo:a,pinDescription:s,pinInviteCode:o})=>{let d=(0,r.M0)().getItem(e)??[];if(!d[0]||d[0].path!==t){let d=[{path:t,ts:Date.now(),pin_id:i||0,first_pin_image_signature:n||"",first_pin_id:i||"",image_info:a||"",pin_description:s||"",is_shared:!!o,pin_invite_code:o}];(0,r.M0)().prependItem(e,d,l.LG)}},d=()=>{let e;let t=(0,s.Nl)().getItem(a.N_);if(!t)return[];try{e=JSON.parse(t)}catch(t){e=[]}return e},c=({path:e,image:t,dominant_color:n,pin_description:i,pin_id:l})=>{let r=d();r[0]&&r[0].path===e||(0,s.Nl)().setItem(a.N_,[{path:e,image:t,pin_description:i??"",dominant_color:n||"",pin_id:l||""}].concat(r))};function u(e,t,n,a,l,r){o({key:i.uc,lastVisitedPage:e,imageSignature:t,pinId:n,imageInfo:a,pinDescription:l,pinInviteCode:r})}let p=(e,t,n,a,l)=>{o({key:i.hI,lastVisitedPage:e,imageSignature:t,pinId:n,imageInfo:a,pinDescription:l??""})};function m(e,t,n,a,l){o({key:i.tH,lastVisitedPage:e,imageSignature:t,pinId:n,imageInfo:a,pinDescription:l??""})}},814779:(e,t,n)=>{"use strict";n.d(t,{E:()=>r,S:()=>s});var i=n(667294),a=n(786525);let l="_loggingInNotHome",r=e=>{e?(0,a.Nh)(l,1):(0,a.L_)(l)},s=()=>{let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t(!0)},[]),e&&(0,a.qn)(l)}},505746:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,x:()=>c});var i=n(667294),a=n(1006),l=n(785893);let r=(0,i.createContext)(()=>{}),s=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="hidden")},o=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="unset")},d=()=>(0,i.useEffect)(()=>o,[]),c=({children:e})=>{let[t,n]=(0,i.useState)(null);d();let c=(0,i.useCallback)(e=>{(0,a.My)("dweb.unauth.context_menu.open_menu"),s(),n(e)},[]),u=!!t;return(0,i.useEffect)(()=>{let e=()=>{n(null),o(),(0,a.My)("dweb.unauth.context_menu.click_away")};return u&&document.addEventListener("click",e),()=>{u&&document.removeEventListener("click",e)}},[u]),(0,l.jsx)(r.Provider,{value:c,children:(0,l.jsxs)(i.Fragment,{children:[e,t]})})},u=()=>(0,i.useContext)(r)},897791:(e,t,n)=>{"use strict";n.d(t,{$:()=>d,Z:()=>p});var i=n(609326),a=n(192820),l=n(730212),r=n(993754),s=n(864723),o=n(166408);let d=2,c=e=>e?.pins??[],u=e=>e.length?{pins:e}:null,p=()=>{let{isAuthenticated:e,countryFromHostName:t,countryFromIp:n}=(0,l.B)(),p=(0,r.Z)({countryFromHostName:t||"",countryFromIp:n||"",isAuthenticated:e}),m=(0,s.M0)(),g=c(p?m.getItem(i.s1):o.ZP.getItem(a.w3)),h=e=>p?m.setItem(i.s1,u(e)):o.ZP.setItem(a.w3,u(e)),_=()=>g.length<d;return{pins:g,save:e=>{_()&&h(g.filter(({id:t})=>t!==e.id).concat([e]))},unsave:e=>h(g.filter(({id:t})=>t!==e)),isSaved:e=>g.some(({id:t})=>t===e),clear:()=>h([]),canSaveMore:_}}},754143:(e,t,n)=>{"use strict";n.d(t,{H:()=>a,o:()=>i});let{Provider:i,useHook:a}=(0,n(498490).Z)("LimitedLogin")},578406:(e,t,n)=>{"use strict";n.d(t,{N4:()=>l,Wh:()=>i,hr:()=>a});let i=e=>e._('Log in to continue', 'limitedLogin.modalHeader.default', 'Default title on mobile web limited login modal'),a=e=>e._('You\'re almost there! Log in to access all of Pinterest', 'loginModal.limitedLogin.subheader', 'Subheader text on personalized login modal/flyout to remind users to log in'),l=({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.')},947506:(e,t,n)=>{"use strict";n.d(t,{Bb:()=>h,Bx:()=>s,F4:()=>r,Qj:()=>o,_6:()=>g,gv:()=>l,hg:()=>d,is:()=>p,jP:()=>m,lt:()=>a,oM:()=>c,wI:()=>u});var i=n(868808);let a=e=>e._('Log in to continue', 'limitedLogin.modalHeader.default', 'Default title on mobile web limited login modal'),l=({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'),r=e=>{let t=(0,i.mB)(e.search).board_url;if(t){let e=(0,i.Jx)(t),n=(0,i.XP)({accept_invite:!0,seamless:!0});return e.includes("?")?`${e}&${n}`:`${e}?${n}`}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.'),o=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},d=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.'),u=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},p=e=>e._('Log in to create a Pin or board', 'limitedLogin.modalHeader.create', 'Title on mobile web limited login modal to prompt users to login to create a Pin or board.'),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.'),g=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.'),h=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.')},934648:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(144326),a=n(410150),l=n(754143),r=n(578406);let s=()=>{let e=(0,i.ZP)(),t=(0,a.HG)(),{viewer:n,loginForMore:s,limitedLoginModalSubheader:o,limitedLoginModalNextLocation:d}=(0,l.H)();return"LIMITED_LOGIN"===n.type?({modalHeader:n,nextLocation:i})=>a=>{let l=null;a&&(a.nativeEvent&&a.nativeEvent instanceof Event?l=a:a.event&&(l=a.event)),l&&(l.preventDefault&&l.preventDefault(),l.stopPropagation&&l.stopPropagation()),s?.setVisible(!0),o?.setText(n||(t?r.hr(e):r.Wh(e))),i&&d?.setRoute(i)}:({fn:e})=>e}},70339:(e,t,n)=>{"use strict";n.d(t,{Du:()=>P,HY:()=>v,Hn:()=>u,Jw:()=>y,L7:()=>i,Qc:()=>a,Tt:()=>x,UF:()=>d,UV:()=>r,W1:()=>l,Ws:()=>p,ZW:()=>o,cK:()=>f,cy:()=>_,k:()=>g,o4:()=>m,pK:()=>b,tr:()=>c,uO:()=>h,vF:()=>s});let i=1,a=2,l="female",r="male",s="unspecified",o="en-US",d="US",c=3,u="has_done_closeup",p="Gender",m="InterestPicker",g="UseCase",h="PinPicker",_="LoadingStep",y="AppInstall",f={NUX_GENDER_STEP_NAME:p,NUX_INTEREST_PICKER_STEP_NAME:m,NUX_USE_CASE_STEP_NAME:g,NUX_PIN_PICKER_STEP_NAME:h,NUX_LOADING_STEP_NAME:_,NUX_APP_INSTALL_STEP_NAME:y},x=2500,b=3,v=3,P=5e3},765211:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var i=n(667294),a=n(376030),l=n(883119),r=n(144326),s=n(272109),o=n(969119),d=n(512541),c=n(785893);let u=`
@keyframes baseEduToastIconScale {
  0% {
    transform: scale(0)
  }
  30% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1);
  }
}
`;function p({addedStyles:e,button:t,headerText:n,icon:a,iconOverride:r,minHeight:s,subHeaderText:o}){return(0,c.jsx)(l.xu,{display:"flex",justifyContent:"center",paddingX:2,width:"100vw",children:(0,c.jsxs)(l.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:s||75,padding:6,position:"relative",rounding:4,width:"100%",children:[(()=>{let e=r||(0,c.jsxs)(i.Fragment,{children:[(0,c.jsx)(d.Z,{unsafeCSS:u}),(0,c.jsx)(l.xu,{alignItems:"center",color:"education",dangerouslySetInlineStyle:{__style:{animation:"baseEduToastIconScale 3s"}},"data-test-id":"pin-save-toast",direction:"column",display:"flex",height:60,justifyContent:"center",minHeight:60,minWidth:60,rounding:"circle",width:60,children:(0,c.jsx)(l.JO,{accessibilityLabel:a.accessibilityLabel,color:a.color,dangerouslySetSvgPath:a.dangerouslySetSvgPath,icon:a.icon,inline:a.inline,size:a.size})})]});return(0,c.jsx)(l.xu,{marginEnd:4,children:e})})(),(0,c.jsxs)(l.xu,{"data-test-id":"pin-save-toast-header",marginEnd:"auto",children:[(0,c.jsx)(l.xv,{color:"default",weight:"bold",children:n}),!!o&&(0,c.jsx)(l.xu,{paddingY:1,children:(0,c.jsx)(l.xv,{color:"default",size:"300",children:o})})]}),(0,c.jsx)(l.xu,{display:"flex",flex:"shrink",marginStart:2,children:t})]})})}var m=n(575250);function g(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let h="cubicBezier(0.25, 0.1, 0.25, 1)",_="encourageToastIconContainer",y="encourageToastIconRadiateBg",f="encourageToastIconRadiateRing",x={targets:`#${_}`,duration:300,scale:1.4,easing:h},b={targets:`#${_}`,duration:300,scale:1,easing:h,endDelay:1e3},v={targets:`#${_}`,duration:300,scale:.42,easing:h},P={targets:`#${y}`,duration:400,opacity:0,scale:1.6,easing:h},k={targets:`#${f}`,duration:650,opacity:0,scale:2,easing:h};class S extends i.PureComponent{constructor(...e){super(...e),g(this,"delayTimer",null),g(this,"requestAnimationFrameId",null),g(this,"playAnimation",()=>{this.requestAnimationFrameId=window.requestAnimationFrame(()=>{(0,a.Z)(P),(0,a.Z)(k),(0,a.Z)(x).finished.then(()=>{(0,a.Z)(b).finished.then(()=>{a.Z.set(`#${_}`,{transformOrigin:"top right"}),(0,a.Z)(v)})})})}),g(this,"getHeaderText",()=>{let{text:e}=this.props;return Array.isArray(e)?e[0]:e}),g(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})),g(this,"getSubHeaderText",()=>{let{text:e}=this.props;return e instanceof Array&&e.length>1&&e[1]?e[1]:""}),g(this,"renderAnimatedIcon",()=>(0,c.jsxs)(l.xu,{height:68,position:"relative",width:68,children:[(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{left:"4px",top:"4px"}},"data-test-id":"pin-save-toast",height:60,overflow:"hidden",position:"absolute",rounding:4,width:60,children:this.props.thumbnail}),(0,c.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:{transform:"scale(0)"}},height:68,id:_,position:"absolute",width:68,children:[(0,c.jsx)(l.xu,{color:"infoBase",dangerouslySetInlineStyle:{__style:{left:"0px",top:"0px",transform:"scale(0)"}},height:68,id:y,position:"absolute",rounding:"circle",width:68}),(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{borderWidth:"2px",borderStyle:"solid",borderColor:"#0074e8",left:"1px",top:"1px",transform:"scale(0)"}},height:66,id:f,opacity:1,position:"absolute",rounding:"circle",width:66}),(0,c.jsx)(l.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,c.jsx)(l.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,c.jsx)(p,{button:t,headerText:this.getHeaderText(),icon:this.getIconProps(),iconOverride:e?void 0:this.renderAnimatedIcon(),subHeaderText:this.getSubHeaderText()})}}function w(e){let{duration:t,onHide:n}=e,a=(0,r.ZP)(),[d,u]=(0,i.useState)(!1),[p,g]=(0,i.useState)(!1),h=(0,i.useRef)(),_=()=>{u(!0),h.current=setTimeout(n,200)},y=()=>{h.current&&clearTimeout(h.current)},f=()=>{h.current=setTimeout(_,t||m.w)};(0,o.Z)(()=>(setTimeout(()=>g(!0),100),f(),y));let x=(0,c.jsx)(S,{...e,i18n:a});return e.href&&(x=(0,c.jsx)(l.rU,{href:e.href,onClick:_,rounding:"pill",tapStyle:"none",children:x})),(0,c.jsx)(s.Z,{children:(0,c.jsx)(l.mh,{children:(0,c.jsx)(l.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})}},display:"flex",justifyContent:"center",position:"fixed",width:"100%",zIndex:m.k,children:x})})})}},430965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(609326),a=n(864723);function l(){let e=a.ZP.getItem(i.gM);return e?new Map(JSON.parse(e)):new Map}},677035:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(545007),a=n(901450),l=n(70339),r=n(335108);function s(){let e=(0,i.I0)(),{showToast:t,showOneToast:n}=(0,a.F9)();return{showToast:t,showOneToast:n,showRepinConfirmation:(n,i)=>{i||e((0,r.WF)()),setTimeout(()=>{i||e((0,r.a5)()),t(n)},l.Tt)}}}},993641:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>o,tY:()=>u,Xt:()=>d,$7:()=>p,Yh:()=>c});var i=n(545007),a=n(297728),l=n(961754),r=n(383399);let s={SAVE_TO_PROFILE:0,SHOW_BOARD_PICKER:1};function o(e){let t=(0,r.Z)(),n=t.isAuth&&t.id===e,{checkExperiment:i}=(0,a.F)(),s=(0,l.Z)(!t.isAuth||n?null:{name:"UserResource",options:{field_set_key:"quicksave",user_id:e}});return{showEnabledSaveBehavior:n&&t.has_quicksave_board||!!(t.isAuth&&(s??{}).data?.has_quicksave_board)||(n||t.isAuth)&&!t.has_quicksave_board&&!(s??{}).data?.has_quicksave_board&&i("profile_saves_for_all").anyEnabled}}function d(e){let t=(0,r.Z)(),n=t.isAuth&&t.id===e,i=(0,l.Z)(!t.isAuth||n?null:{name:"UserResource",options:{field_set_key:"quicksave",user_id:e}});return{boardlessPinsEnabled:n&&t.has_quicksave_board||!!(t.isAuth&&(i??{}).data?.has_quicksave_board)}}function c(e){let t=(0,i.I0)(),n=(0,r.Z)(),a=n.isAuth&&!!n.boardCount&&n.boardCount<5&&e,s=(0,l.Z)(a&&e?{name:"UserResource",options:{field_set_key:"save_behavior",user_id:n.isAuth&&n.id}}:null);return n.isAuth&&void 0===n.save_behavior&&s&&s.data?.id&&t({type:"UPDATE_USER_SAVE_BEHAVIOR",payload:{saveBehavior:s.data.save_behavior}}),{showEnabledSaveBehavior:a}}function u(e){let t;let n=(0,r.Z)();return e&&(n.save_behavior===s.SAVE_TO_PROFILE?t={type:"classic"}:n.save_behavior===s.SHOW_BOARD_PICKER&&(t={type:"inline"})),{saveBehaviorType:t}}function p(){let e=(0,r.Z)();return e.isAuth&&(e?.secretBoardCount??0)>0}},599911:(e,t,n)=>{"use strict";function i(e,t,n,a=!1,l){return{privacy_filter:t?"secret":"public",sort:n||"last_pinned_to",field_set_key:"profile_grid_item",username:e,isRetrievalHub:a,filter_types:l}}n.d(t,{Z:()=>i})},35486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=(e,t)=>`${e}:${t||""}`},831355:(e,t,n)=>{"use strict";n.d(t,{O:()=>s,Q:()=>o});var i=n(338623),a=n(35486),l=n(701842);let r=["alphabetical","last_pinned_to","oldest","newest","group_boards_at_top","custom"],s={name:"BoardsResource",key:"boardsResource",options:({boardOrder:e,filterStories:t,mixPublicSecret:n,username:i,privacyFilter:a="all",filterAllPins:l=!1,filterShoppingList:r=!1,includeArchived:s=!0},o)=>({privacy_filter:a,sort:e||"last_pinned_to",field_set_key:"profile_grid_item",filter_stories:t,username:i,page_size:25,group_by:n?"mix_public_private":"visibility",include_archived:s,redux_normalize_feed:!0,filter_all_pins:l,filter_shopping_list:r,...o?{orbac_subject_id:o}:Object.freeze({})})},o=e=>r.reduce((t,n)=>{let r=[(0,l.N8)("profileBoards",(0,a.Z)(e,n))];return[!0,!1].forEach(t=>{[!0,!1].forEach(a=>{r.push((0,i.jB)(s.name,s.options({username:e,boardOrder:n,mixPublicSecret:t,filterStories:a})))})}),t.concat(r)},[])},119437:(e,t,n)=>{"use strict";n.d(t,{Br:()=>c,Cr:()=>y,K8:()=>g,L1:()=>I,YQ:()=>w,ZP:()=>f,aX:()=>x,eo:()=>p,md:()=>u,oG:()=>m,oL:()=>b,of:()=>h,xQ:()=>_,xR:()=>S,yT:()=>d});var i=n(252071),a=n(640498),l=n(468808),r=n(338623),s=n(599911),o=n(831355);function d(e){return{type:"BOARD_UPDATE_COMPLETE",payload:{board:e}}}function c(e){return{type:"BOARD_PIN_COUNT_CHANGED",payload:e}}function u(e,t){return{type:"BOARD_FOLLOW",payload:{boardId:e,value:t}}}function p({viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:i}){return{type:"BOARD_DELETE",payload:{viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:i}}}let m=(e,t)=>n=>n((0,l.U)("BoardResource",{options:{board_id:e,field_set_key:t}}));function g(e){return t=>{e&&(0,o.Q)(e).forEach(e=>{t(e)})}}let h=e=>({type:"BOARD_DISMISS_SENSITIVITY_SCREEN",payload:{boardId:e}}),_=e=>m(e,"pin_count"),y=(e,t)=>({type:"BOARD_COVER_IMAGE_UPDATED",payload:{boardId:e,coverPin:t}}),f=e=>({type:"BOARD_DISABLE_MORE_IDEAS_BADGING",payload:{boardId:e}});function x(e,t,n){let l={name:e,privacy:a.ZP.BoardPrivacy.PUBLIC,username:t,...n?{orbac_subject_id:n}:Object.freeze({})};return e=>i.Z.create("BoardResource",l).callCreate().then(n=>{let i=n.resource_response.data;return e(t&&(0,r.jB)("BoardsResource",(0,s.Z)(t,!1))),i})}function b(e={},t,n){return{type:"BOARD_CREATE_COMPLETE",payload:{options:e,board:t},error:n}}let v=(e,t)=>({type:"BOARD_INVITE_DENIED_BY_VIEWER",payload:{boardId:e,userId:t}}),P=(e,t,n)=>({type:"BOARD_COLLABORATOR_DELETE",payload:{boardId:e,userId:t,viewingUser:n}}),k=(e,t,n,i)=>({type:"BOARD_COLLABORATOR_ADD",payload:{boardId:e,viewingUser:t,status:n,collaboratingUsers:i}}),S=(e,t,n)=>async a=>{a(v(e,t));let l=await i.Z.create("BoardInviteResource",{board_id:e,invited_user_id:t}).callDelete();return l.resource_response.error||n({event_type:29,object_id_str:e}),l},w=(e,t,n,a,l,r)=>async s=>{s(P(e,a?.id??"",n));try{(await i.Z.create("accepted"===t?"BoardCollaboratorResource":"BoardInviteResource",{board_id:e,field_set_key:"boardEdit",invited_user_id:a?.id??"",...r?{orbac_subject_id:r}:{}}).callDelete()).resource_response.error||l({event_type:"accepted"===t?25:29,object_id_str:e})}catch(i){s(k(e,n,t,[a]))}},I=(e,t,n,a)=>l=>{let r=i.Z.create("BoardResource",{board_id:n}).callDelete();return l(p({viewingUserId:e,viewingUsername:t,boardId:n,boardPinCount:a})),r}},701842:(e,t,n)=>{"use strict";function i(e){return{type:"FEED_ITEM_REORDERED",payload:e}}function a(e,t){return{type:"FEED_INVALIDATE",payload:{feedType:e,feedId:t}}}n.d(t,{EX:()=>r,N8:()=>a,Qv:()=>l,_f:()=>i,vX:()=>s});let l=(e,t,n=Object.freeze({}))=>({type:"APPEND_FEED_ITEMS",payload:{id:e,options:n,items:t}});function r(e){return{type:"FEED_ITEMS_REMOVED",payload:e}}function s(e){return{type:"FEED_ITEMS_ADDED",payload:e}}},672400:(e,t,n)=>{"use strict";n.d(t,{a:()=>i,k:()=>a});let i=e=>({type:"ONE_TAP_SAVE",payload:e}),a=e=>({type:"ONE_TAP_UNSAVE",payload:e})},409065:(e,t,n)=>{"use strict";function i(e,t){return{type:"CHANGE_CAROUSEL_SLOT_INDEX",payload:{id:e,index:t}}}function a(e,t){return{type:"SET_PIN_COMMENTS_DISABLED",payload:{id:e,pinCommentsDisabled:t}}}function l(e){return{type:"PIN_SAVE",payload:e}}function r(e,t){return{type:"PIN_UNSAVE",payload:{id:e,nodeId:t}}}function s(e){return{type:"PIN_SHOW_SUGGESTED_CREATOR_RECS",payload:{id:e,value:!0}}}function o({id:e,nodeId:t}){return{type:"PIN_SHOW_FEEDBACK",payload:{id:e,value:!1,nodeId:t}}}function d({id:e,text:t,nodeId:n}){return{type:"PIN_SHOW_FEEDBACK",payload:{id:e,value:!0,text:t,nodeId:n}}}function c({id:e,nodeId:t}){return{type:"PIN_SHOW_FEEDBACK_OVERLAY",payload:{id:e,value:!0,nodeId:t}}}function u({id:e,nodeId:t}){return{type:"PIN_SHOW_FEEDBACK_OVERLAY",payload:{id:e,value:!1,nodeId:t}}}function p(e){return{type:"PIN_SHOW_AD_REASONS_MODAL",payload:{id:e,value:!0}}}function m(e){return{payload:{id:e,value:!1},type:"PIN_SHOW_AD_REASONS_MODAL"}}n.d(t,{Gb:()=>r,I1:()=>o,Ib:()=>c,Ur:()=>l,Vw:()=>s,b9:()=>p,i0:()=>u,mO:()=>a,q1:()=>d,yR:()=>i,yj:()=>m})},612719:(e,t,n)=>{"use strict";n.d(t,{M:()=>o,i:()=>u});var i=n(782677),a=n(252071),l=n(338623),r=n(900492),s=n(517989);let o=(e,t,n,i)=>({type:"PIN_ADD",payload:{pinId:e,boardId:t,boardSectionId:n,pinnerId:i}}),d=({imageBase64:e,imageUrl:t})=>new Promise(n=>{e?(0,r.eR)(e).then(e=>{n(e)}):n(t)}),c=e=>async t=>{let{boardId:n,guid:r,imageBase64:d,imageUrl:c,method:u,sectionId:p}=e,m={...e,board_id:n,method:"button"!==u||r?u:"button_external",image_url:c,image_base64:d,section:p},g="PinResource",h=await a.Z.create(g,m).callCreate(),_=(0,i.Fv)(h.resource_response.data,s.Z[g]);t((0,l.XM)(g,m,h,_));let y=h.resource_response.data,{pinner:{id:f}}=y;return t(o(y.id,n,p,f)),h},u=e=>async t=>{let{checkExperiment:n,imageBase64:i,imageUrl:a}=e,l=n("mweb_pin_create_metadata_retention").anyEnabled;return await t(c({...e,imageUrl:l?a:await d({imageBase64:i,imageUrl:a}),imageBase64:l?i:void 0}))}},719535:(e,t,n)=>{"use strict";n.d(t,{L:()=>s,q:()=>d});var i=n(252071),a=n(119437),l=n(701842),r=n(403764);function s(e){return t=>{let{inSelectAll:n,selectedPinIds:s,orbacSubjectId:o,source:{boardId:d,sectionId:c}}=e;return t((0,a.xQ)(d)),t((0,l.EX)({feedId:c||d,feedType:c?r.Z.BOARD_SECTION_PINS:r.Z.BOARDFEED,inverseSelection:n,itemIds:s,itemType:"pin"})),i.Z.create(n?"BulkEditSelectAllResource":"BulkEditResource",{board_id:d,section_id:c,pin_ids:s,orbac_subject_id:o}).callDelete()}}let o=(e,t,n,i)=>({type:"PIN_DELETE",payload:{pinId:e,boardId:t,boardSectionId:n,userId:i}}),d=({pinId:e,boardId:t,boardSectionId:n,clientTrackingParams:a})=>(l,r)=>{let s=i.Z.create("PinResource",{id:e,client_tracking_params:a}).callDelete(),{session:{userId:d}}=r();return l(o(e,t,n,d)),s}},369114:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var i=n(243583),a=n(701842),l=n(141648),r=n(963509);let s=({pinId:e,boardId:t,checkExperiment:n,i18n:s,isQuickSave:o,logContextEvent:d,onSuccess:c,originalPinId:u,showNewUserSavetoProfileAnimation:p,showRepinConfirmation:m,showToast:g,section:h,trackingParams:_,isOneTapSave:y,viewParameter:f,viewType:x,historyPush:b,suggestedBoardIds:v,savePinId:P})=>(k,S)=>{let{pins:w,session:I,feeds:T}=S(),A=w[e];t&&((A?.shopping_flags??[])?.length>0||A?.rich_summary&&(A?.rich_summary?.products??[])?.length>0)&&(T[`board-shop-saved-preview:${t}`]&&k((0,a.Qv)(`board-shop-saved-preview:${t}`,[A],{isPrepend:!0})),T[`board-shop-saved:${t}`]&&k((0,a.Qv)(`board-shop-saved:${t}`,[A],{isPrepend:!0})));let E=new l.default({boardId:t,dispatch:k,i18n:s,isOneTapSave:y,isQuickSave:o,onSuccess:c,originalPinId:u,pinId:A.id,section:h,showNewUserSavetoProfileAnimation:p,showRepinToasts:e=>m?m(e):g?g(e):void 0,trackingParams:_,userId:I.userId,viewParameter:f,viewType:x,historyPush:b,suggestedBoardIds:v,savePinId:P,pinData:{trackingParams:A.tracking_params,viewParameter:(0,r.A)({hasRichMetadata:!!A.rich_metadata,hasRichMetadataProducts:!!A.rich_metadata?.products,hasRichMetadataArticle:!!A.rich_metadata?.article,hasRichMetadataRecipe:!!A.rich_metadata?.recipe}),pinnedToBoardId:A.pinned_to_board?.id}});return(0,i.ib)({checkExperiment:n,isAuthMweb:I.isAuthenticated&&(I.isMobile||I.isTablet)}),E.processRepin(d)}},335108:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>d,FK:()=>o,H5:()=>b,MI:()=>h,O0:()=>g,QZ:()=>s,W:()=>f,WF:()=>u,Wz:()=>v,a5:()=>p,dz:()=>y,e0:()=>m,e2:()=>r,iW:()=>x,n1:()=>l,rm:()=>c,xu:()=>_});var i=n(282999),a=n(812477);let l=()=>({type:"DISMISS_UNAUTH_SAVE"}),r=()=>({type:"COMPLETE_UNAUTH_SAVE_ACTION"}),s=e=>({type:"SET_UNAUTH_SAVE_PIN_ID",payload:{unauthSavePinId:e}}),o=()=>({type:"HIDE_NAV_FOOTER"}),d=()=>({type:"SHOW_NAV_FOOTER"}),c=e=>({type:"SET_LOGIN_SIGNUP_FROM",payload:{from:e}}),u=()=>({type:"SHOW_REPIN_ANIMATION"}),p=()=>({type:"HIDE_REPIN_ANIMATION"}),m=e=>({type:"SET_NUM_SIGNUP_STEPS",payload:{steps:e}}),g=()=>({type:"SET_OWN_PROFILE_PINS_REFRESH"}),h=e=>({type:"SHOW_BIZ_NUX_HOMEFEED_LOADER",payload:e}),_=e=>({type:"SET_VIEWED_IMAGE",payload:{viewedImageSignature:e}}),y=e=>({type:"SET_VIEWED_SHARED_PINS",payload:{pins:e}}),f=()=>({type:"DISMISS_UNAUTH_APP_UPSELL"}),x=e=>e?{type:"LOGGED_OUT_USER_INFO_FOUND",payload:e}:{type:"LOGGED_OUT_USER_INFO_NOT_FOUND"},b=e=>({type:"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX",payload:e}),v=(e,t)=>({type:"SET_LANDING_PAGE_TYPE",payload:e?(0,i.bo)(e)?"today":(0,i.dr)(e)?"ideas":t&&(0,i.dZ)(e,t)?"own_section":t&&(0,i.J)(e,t)?"own_board":(0,i.OJ)(e)?"section":(0,i.am)(e)?"board":(0,i.L6)(e)?"closeup":(0,i.C$)(e)?"home":(0,a.Z)(e)?"profile":(0,i.En)(e)?"search":(0,i.$V)(e)?"topic":"":""})},900492:(e,t,n)=>{"use strict";n.d(t,{Ge:()=>d,JS:()=>r,OF:()=>b,P_:()=>s,Q_:()=>p,b8:()=>m,eR:()=>x,h2:()=>c,h6:()=>u});var i=n(252071),a=n(400416),l=n(235581);function r(e){return{type:"UPDATE_USER_PIN_COUNT",payload:e}}let s=(e,t)=>({type:"USER_FOLLOW",payload:{id:e,value:t}}),o=(e,t)=>({type:"USER_BLOCK",payload:{id:e,value:t}}),d=({id:e,orbacSubjectId:t,blockSource:n,blockContext:a,logContextEvent:l})=>async r=>{r(o(e,!0));let s=await i.Z.create("UserBlockResource",{blocked_user_id:e,orbac_subject_id:t,block_source:n,block_context:a}).callCreate().catch(()=>r(o(e,!1)));return l({event_type:54,object_id_str:e}),s},c=(e,t)=>async n=>{n(o(e,!1));let a=await i.Z.create("UserBlockResource",{blocked_user_id:e}).callDelete().catch(()=>n(o(e,!0)));return t({event_type:55,object_id_str:e}),a};function u(e){return{type:"UPDATE_USER_SCHEDULED_PIN_COUNT",payload:e}}let p=(e,t)=>()=>i.Z.create("UserStateResource",{state:e,value:t}).callCreate(),m=(e,t,n)=>(i,r)=>{(0,a.Z)({url:"/v3/users/me/",method:"POST"}).then(()=>{n({event_type:48,object_id_str:r().session.userId}),e(),(0,l.Z)()},t)},g=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`||"",_=async(e,t,n)=>{let a=await i.Z.create("VIPResource",{upload_ids:[e]}).callGet();if(a.resource_response.data[e]){let{status:i,signature:l}=a.resource_response.data[e];"processing"===i||"registered"===i?setTimeout(async()=>{_(e,t,n)},5e3):"succeeded"===i?t(h(l)):n()}else n()},y=(e,t,n,a,l)=>(new FormData().append("img",e),i.Z.create("VIPResource",{type:t}).callCreate().then(t=>{if(t.resource_response.data){let{upload_id:i,upload_url:r,upload_parameters:s}=t.resource_response.data,o=new XMLHttpRequest;o.open("POST",r,!0),o.onload=()=>{g(o.status)?(n(100),_(i,a,l)):l()},o.upload.onprogress=e=>{n(Math.round(100*e.loaded/e.total))};let d=new FormData;for(let e in s)d.append(e,s[e]);d.append("file",e),o.send(d)}},()=>{l()})),f=e=>new Promise((t,n)=>{y(e,"pinimage",()=>{},e=>{t(e)},e=>{n(e)})}),x=e=>new Promise((t,n)=>{"string"==typeof e?e.startsWith("data")&&f(function(e,t=512){let n=e.split(";"),i=n[0].split(":")[1],a=atob(n[1].split(",")[1]),l=[];for(let e=0;e<a.length;e+=t){let n=a.slice(e,e+t),i=Array(n.length);for(let e=0;e<n.length;e+=1)i[e]=n.charCodeAt(e);let r=new Uint8Array(i);l.push(r)}return new Blob(l,{type:i})}(e)).then(e=>t(e)):n("Invalid Image")}),b=e=>(0,a.Z)({url:"/v3/register/exists/",data:{email:e}})},403764:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i={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",USE_CASE_TAB:"useCaseFeed",TRIED_IT_FEED:"trieditfeed"}},343267:(e,t,n)=>{"use strict";function i(){return"angled-pin"}n.d(t,{f:()=>i})},963509:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let i=({hasRichMetadata:e,hasRichMetadataProducts:t,hasRichMetadataArticle:n,hasRichMetadataRecipe:i})=>e?t?144:n?141:i?145:139:140},466304:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(252071),a=n(243583),l=n(963509);function r({checkExperiment:e,history:t,i18n:r,logContextEvent:s,onSuccess:o,originalPinId:d,pinId:c,trackingParams:u,disableRepinAnimation:p,showNewUserSavetoProfileAnimation:m,showRepinConfirmation:g,historyPush:h,savePinId:_,eventContext:y=null}){return(f,x)=>{let{pins:b,session:v}=x(),{userId:P}=v,k=b[c],S=r._('Quick Saves', 'quickSave.boardName', 'Name of the auto-created board in quicksave experience.');return i.Z.create("BoardResource",{name:S,layout:"quick_saves",protected:!1,return_existing:!0,user_id:P}).callCreate().then(async i=>{let x=i.resource_response.data;(0,a.ib)({checkExperiment:e,isAuthMweb:v.isAuthenticated&&(v.isMobile||v.isTablet)});let{default:b}=await n.e(41648).then(n.bind(n,141648));return new b({boardId:x.id,dispatch:f,isQuickSave:!0,history:t,i18n:r,onSuccess:o,originalPinId:d,pinId:c,section:void 0,showNewUserSavetoProfileAnimation:m,showRepinToasts:e=>g?g(e,p):void 0,trackingParams:u,userId:v.userId,historyPush:h,savePinId:_,eventContext:y,pinData:{trackingParams:k?k.tracking_params:void 0,viewParameter:k?(0,l.A)({hasRichMetadata:!!k.rich_metadata,hasRichMetadataProducts:!!k.rich_metadata?.products,hasRichMetadataArticle:!!k.rich_metadata?.article,hasRichMetadataRecipe:!!k.rich_metadata?.recipe}):void 0,pinnedToBoardId:k?k.pinned_to_board?.id:void 0}}).processRepin(s)})}}},479825:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,Q:()=>o});var i=n(667294),a=n(498490),l=n(785893);let{Provider:r,useMaybeHook:s}=(0,a.Z)("RepinContext");function o({children:e}){let[t,n]=(0,i.useState)(Object.freeze({})),a=(0,i.useMemo)(()=>({getSavedPinId:e=>t[e],isSaved:e=>!!t[e],save:(e,t)=>n(n=>({...n,[e]:t})),unsave:e=>n(t=>({...t,[e]:null}))}),[t]);return(0,l.jsx)(r,{value:a,children:e})}},613756:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(667294),a=n(883119),l=n(602185),r=n(144326),s=n(750077),o=n(785893);let d=(0,i.lazy)(()=>Promise.all([n.e(36075),n.e(36060),n.e(61116)]).then(n.bind(n,126317)));function c(e){let t=(0,r.ZP)();return(0,o.jsx)(l.Z,{name:"SafeSuspense_SendObjectLoader_SendObjectWrapper",children:(0,o.jsx)(s.Z,{fallback:(0,o.jsx)(a.xu,{alignItems:"center",display:"flex",justifyContent:"center",padding:2,width:"100%",children:(0,o.jsx)(a.$j,{accessibilityLabel:t._('Loading sharing', 'Accessibility label for loading sharing UI', 'Accessibility label for loading sharing UI'),show:!0})}),children:(0,o.jsx)(d,{...e})})})}},861673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var i,a=n(667294);n(422578);var l=n(883119),r=n(609326),s=n(934980),o=n(488792),d=n(477058),c=n(803611),u=n(47848),p=n(144326),m=n(512541),g=n(730212),h=n(864723),_=n(154785),y=n(410150),f=n(969119),x=n(261037),b=n(120271),v=n(193836),P=n(101736),k=n(649046),S=n(785893);let w=void 0!==i?i:i=n(845566),I="#ffffff",T="ANIMATE_SHARE",A=()=>{let e=`${T}_default {
      from: {
        opacity: 1;
        visibility:visible;
      }
      7% {
        fill: ${I};
        opacity: 0;
        visibility:hidden;
      }
      89% {
        fill: ${I};
        opacity: 0;
        visibility:hidden;
      }
      93% {
        opacity: 0.5;
        visibility:visible;
      }
      to {
        fill: #111111;
        opacity: 1;
        visibility:visible;
      }
    }`,t=`${T}_upsellApp {
      from {
        opacity: 0;
        fill: ${I};
      }
      7% {
        fill: ${I};
        transform: scale(1.25);
        opacity: 1;
      }
      11% {
        transform: scale(1);
        opacity: 1;
      }
      89% {
        fill: ${I};
        transform: scale(1);
        opacity: 1;
      }
      93% {
        transform: scale(1.25);
        opacity: 1;
      }
      to {
        fill: ${I};
        opacity: 0;
      }
    }`;return(0,s.Ll)([e,t])},E=e=>({animation:`${T}_${e} ${k.zn}ms ease-in-out`,WebkitAnimation:`${T}_${e} ${k.zn}ms ease-in-out`}),C=({children:e,handleShareTap:t,upsellIcon:n})=>{let i=(0,p.ZP)();return n?((0,h.M0)().setItem(r.pV,Date.now()),(0,S.jsxs)(l.xu,{children:[(0,S.jsx)(m.Z,{unsafeCSS:A()}),(0,S.jsxs)(l.xu,{alignItems:"center",borderStyle:"none",dangerouslySetInlineStyle:{__style:{borderRadius:"22px",...E("container")}},display:"flex",height:48,justifyContent:"center",width:48,children:[(0,S.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:E("upsellApp")},opacity:0,position:"absolute",children:(0,S.jsx)(l.iP,{accessibilityLabel:i._('Send', 'Board.Pin.SendButton', 'Accessible label for button to send a pin or a board'),onTap:({event:e})=>t(e),children:n})}),(0,S.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:E("default")},position:"absolute",children:e})]})]})):e},j=({clientTrackingParams:e,onDefaultSendButtonClick:t,sendButtonColor:i,sendButtonBgColor:r,viewParameter:s,hoveringInFeed:p,pinId:m,pinKey:h,onClick:I,size:T})=>{let A=(0,u.Z)(w,h),E=(0,y.HG)(),{isAuthenticated:j}=(0,g.B)(),F=(0,c.Z)(),L=(0,o.Z)(),D=(0,_.Z)(),{country:R,userAgent:{platform:O}}=(0,g.B)(),Z=O===x.RL||O===x.s4,[M,K]=(0,a.useState)(),[N,z]=(0,a.useState)(!1),B=(0,v._l)(),{hasSeenAuthMobileLandingToast:U}=(0,v.w2)()||{},{viewType:H}=(0,d.SU)(),G=()=>{D({action:"click",item:"share-button"}),L({component:194,element:46,event_type:102,view_type:3,view_parameter:s})};return((0,f.Z)(()=>{E||setTimeout(async()=>{let{default:e}=await n.e(47411).then(n.bind(n,947411)),t=e({country:R,isAppleDevice:Z});t&&K(t)},k.W_)}),j&&E&&m&&A)?(0,S.jsx)(P.Z,{flyoutDisplayOptions:{inModal:!1,shownWithinMasonry:!0},isFlyoutOpen:N,loggingOptions:{component:14353,element:72,viewType:H},onClick:I,onFlyoutDismiss:()=>z(!1),onToggleFlyout:()=>z(!N),sendObject:{type:"pin",id:m,imageUrl:A.imageSpec_236x?.url,ownerId:A.pinner?.entityId??void 0,url:`/pin/${m}/`,clientTrackingParams:e},children:({handleSendShareFlyoutButtonClick:e})=>(0,S.jsx)(l.xu,{"data-test-id":"share-icon-button",children:(0,S.jsx)(b.Z,{bgColor:r,color:i,onSendButtonClick:t=>{t.stopPropagation(),F?F():e()},size:T||"sm",trackShareTap:G})})}):B&&!U?(0,S.jsx)(l.xu,{"data-test-id":"share-button-no-animation",children:(0,S.jsx)(b.Z,{bgColor:r,color:i,onSendButtonClick:t,trackShareTap:G})}):(0,S.jsx)(C,{handleShareTap:e=>{G(),t(e)},upsellIcon:M,children:(0,S.jsx)(l.xu,{"data-test-id":"share-button-no-animation",children:(0,S.jsx)(b.Z,{bgColor:r,color:i,onSendButtonClick:t,size:p?"sm":void 0,trackShareTap:G})})})}},649046:(e,t,n)=>{"use strict";n.d(t,{F6:()=>o,VZ:()=>i,W_:()=>l,bm:()=>a,iS:()=>d,rO:()=>s,zn:()=>r});let i=44,a=9e5,l=4e3,r=5e3,s=new Set([12,3,11]),o=new Set([11,12]),d=new Map([["AU",6],["CA",6],["DK",6],["DZ",6],["GE",6],["HU",6],["LT",6],["NO",6],["NP",6],["NZ",6],["PH",6],["PL",6],["SK",6],["TN",6],["US",6],["JP",8],["TW",8],["TH",8],["IQ",20],["KH",20],["MM",20],["UZ",20],["BA",22],["BG",22],["BY",22],["CY",22],["GR",22],["MD",22],["RS",22],["UA",22]])},743023:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(883119),a=n(144326),l=n(183159),r=n(785893);function s({isPinRep:e}){let t=(0,a.ZP)(),n=e?"default":"inverse",s=(0,r.jsx)(i.xu,{"data-test-id":"unavailable-pin",padding:e?1:0,children:(0,r.jsx)(i.xu,{color:e?"secondary":"dark",height:e?314:"100vh",position:e?"static":"absolute",rounding:e?4:0,top:!0,width:"100%",children:(0,r.jsxs)(i.kC,{alignItems:"center",direction:"column",height:"100%",justifyContent:"center",children:[(0,r.jsx)(i.xu,{paddingY:4,children:(0,r.jsx)(i.JO,{accessibilityLabel:t._('Pin not available', 'story-pin.Closeup.UnavailableStoryPin.icon.accessibilityLabel', 'Accessibility label on icon'),color:n,icon:"alert",size:20})}),(0,r.jsx)(i.xv,{align:"center",color:n,weight:"bold",children:t._('Unavailable', 'story-pin.Closeup.UnavailableStoryPin.Unavailable', 'Text on an unavailable idea Pin that has been deleted')}),(0,r.jsx)(i.xu,{paddingY:1,children:(0,r.jsx)(i.xv,{align:"center",color:n,children:t._('Removed by the creator', 'story-pin.Closeup.UnavailableStoryPin.Removed', 'Text on an unavailable idea Pin explaining it has been removed by its creator')})})]})})});return e?s:(0,r.jsx)(i.xu,{height:"100vh",children:(0,r.jsx)(l.Z,{children:s})})}},571729:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(883119),a=n(845873),l=n(785893);function r({boardId:e}){let t=(0,a.gC)()(e),n=t?.images&&t.images["170x"]?t.images["170x"][0]:void 0;return e&&n?(0,l.jsx)(i.Ee,{alt:"Pin image",color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:n.url??""}):null}},575250:(e,t,n)=>{"use strict";n.d(t,{k:()=>r,w:()=>l});var i=n(883119),a=n(265691);let l=2e3,r=new i.H3([a.Z])},927371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(640498),a=n(623722),l=n(592305);let r=e=>{let t=new Date,n=new Date(new Date().setDate(t.getDate()-i.ZB));return e.filter(e=>"closeup"===e.pageType&&new Date(e.ts)>=n)},s=()=>r((0,l.ZP)()).map(e=>({...e,id:(0,a.Z)(e.path)||""}))},592305:(e,t,n)=>{"use strict";n.d(t,{Z4:()=>d,ZP:()=>c,t_:()=>s});var i=n(609326),a=n(640498),l=n(864723),r=n(842909);let s=()=>{let e=(0,l.M0)().getItem(i.pm);return null!==e?JSON.stringify(e):""},o=()=>(0,l.M0)().getItem(i.pm)??[],d=(e,t)=>{let n=[...o()],s=n.length,d=s?n[0].path:"";if(!s||e!==d){let n=(0,r.Z)({path:e,pageType:t});(0,l.M0)().prependItem(i.pm,n,a.LG)}},c=o},573065:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i,a=n(667294);n(167912);var l=n(47848);let r=void 0!==i?i:i=n(822087),s=e=>{let t=(0,l.Z)(r,e),n=t?.pinJoin?.annotationsWithLinksArray;return(0,a.useMemo)(()=>n?.reduce((e,{name:t,url:n})=>t?{...e,[t]:{name:t,url:n}}:e,{}),[n])}},933834:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(667294),a=n(883119),l=n(358399),r=n(785893);let s=function({badgeSize:e,badgeSpacing:t,fullName:n,verifiedType:s,truncate:o=!1}){let d=n.split(" "),c=d.slice(0,d.length-1).join(" "),u=" ".concat(d[d.length-1]);return o?(0,r.jsxs)(a.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,r.jsx)(a.xv,{lineClamp:1,weight:"bold",children:n}),(0,r.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{top:t}},flex:"none",paddingX:1,position:"relative",children:(0,r.jsx)(l.Z,{isVerifiedMerchant:"verifiedMerchant"===s,showVerifiedIdentity:"verifiedIdentity"===s,size:e})})]}):(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("span",{children:c}),(0,r.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[u," ",(0,r.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{top:t}},display:"inlineBlock",flex:"none",position:"relative",children:(0,r.jsx)(l.Z,{isVerifiedMerchant:"verifiedMerchant"===s,showVerifiedIdentity:"verifiedIdentity"===s,size:e})})]})]})}},748327:(e,t,n)=>{"use strict";function i(e){let[t,n]=e.split(/\/(.*)+/);return{filepath:n||"",site:t||""}}function a(e,t){return t?`${e||""}/${t}`:`/${e||""}`}n.d(t,{ac:()=>i,ke:()=>a})},855746:(e,t,n)=>{"use strict";n.d(t,{MM:()=>r,uo:()=>s,wH:()=>l});var i=n(498490),a=n(748327);let{Provider:l,useHook:r}=(0,i.Z)("HandlerId");function s(){let e=r();return(0,a.ac)(e).site}},653296:(e,t,n)=>{"use strict";n.d(t,{I:()=>r,t:()=>l});var i=n(667294),a=n(616550);let l=(0,i.createContext)(null);function r(){return(0,a.TH)()===(0,i.useContext)(l)}},288294:e=>{"use strict";e.exports="https://s.pinimg.com/webapp/searchVR-baff6247.svg"},204942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(383997);function a(e,t,n){return(t=(0,i.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},601413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(204942);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},383997:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(671002);function a(e){var t=function(e,t){if("object"!=(0,i.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,i.Z)(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,i.Z)(t)?t:t+""}},671002:(e,t,n)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>i})}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/DefaultPinRep-3b6575fcbdc8358a.mjs.map