banko-ai-assistant 1.0.0__py3-none-any.whl → 1.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- banko_ai/static/creditcard_files/0dbda187ceb472a466dff54b7015b1d4.jpg +0 -0
- banko_ai/static/creditcard_files/10903-7f8736e237ced107.mjs +2 -0
- banko_ai/static/creditcard_files/10966-809952783184ae4b.mjs +4 -0
- banko_ai/static/creditcard_files/13351-8a7dda060266efff.mjs +2 -0
- banko_ai/static/creditcard_files/1342-c79d3d17da82f23c.mjs +11 -0
- banko_ai/static/creditcard_files/16142-bdecf7bfdd6d70ae.mjs +2 -0
- banko_ai/static/creditcard_files/16550-e89f65017860221d.mjs +2 -0
- banko_ai/static/creditcard_files/17492-942c70b114fdcce1.mjs +10 -0
- banko_ai/static/creditcard_files/18352-481d67e871cc6985.mjs +2 -0
- banko_ai/static/creditcard_files/18555-0d9763eb744f7a77.mjs +2 -0
- banko_ai/static/creditcard_files/19437-575ba467ea85e866.mjs +2 -0
- banko_ai/static/creditcard_files/1aca1669c3b4a07f0966c4733c939d6d.jpg +0 -0
- banko_ai/static/creditcard_files/20126-602c15db592cf3c4.mjs +26 -0
- banko_ai/static/creditcard_files/20224-b6de2c08cc8ad497.mjs +66 -0
- banko_ai/static/creditcard_files/2029a63f9af76541f860b6a6a4ec0c90.jpg +0 -0
- banko_ai/static/creditcard_files/21662-1214728138c72aa2.css +1 -0
- banko_ai/static/creditcard_files/22517-5f7ab2631d424b77.mjs +9 -0
- banko_ai/static/creditcard_files/23019-be3b8956cee94725.mjs +2 -0
- banko_ai/static/creditcard_files/26067-cb77f2673c5f757c.mjs +2 -0
- banko_ai/static/creditcard_files/27405-880a12623820964d.mjs +9 -0
- banko_ai/static/creditcard_files/27503-82078c18034012ed.mjs +38 -0
- banko_ai/static/creditcard_files/28090-8e4b5fd6c88f8eb2.mjs +6 -0
- banko_ai/static/creditcard_files/2c66dacf04db64cc1099835f2e2328d5.jpg +0 -0
- banko_ai/static/creditcard_files/30090868cb2b559a7093999fec5fbcc8.jpg +0 -0
- banko_ai/static/creditcard_files/30102-608e861dccc907f1.mjs +2 -0
- banko_ai/static/creditcard_files/31600-ca2e152d871d51d5.mjs +2 -0
- banko_ai/static/creditcard_files/31d5156a9cc5fe5fd780c2d9e59db98f.jpg +0 -0
- banko_ai/static/creditcard_files/34713-54729fd9c7517d50.mjs +2 -0
- banko_ai/static/creditcard_files/35074-d765c14dc3e8eafc.mjs +77 -0
- banko_ai/static/creditcard_files/38230-4d6eb1a608eecdeb.mjs +7 -0
- banko_ai/static/creditcard_files/40566-e2dbb4226dd2ab42.mjs +6 -0
- banko_ai/static/creditcard_files/42298-668aa166e1146c6c.mjs +2 -0
- banko_ai/static/creditcard_files/43203-3a1e46e5259313c8.mjs +14 -0
- banko_ai/static/creditcard_files/44429-6534f772a6bd895b.mjs +13 -0
- banko_ai/static/creditcard_files/48327-48fb70091d7ac731.mjs +2 -0
- banko_ai/static/creditcard_files/49923-dc71193d54a0b99c.mjs +2 -0
- banko_ai/static/creditcard_files/49c3cac3c5a09ca104a2efea48536d14.jpg +0 -0
- banko_ai/static/creditcard_files/50040-3c27b1fe14ca588b.mjs +2 -0
- banko_ai/static/creditcard_files/5047473e06297bbccfae9c43ca36bd93.jpg +0 -0
- banko_ai/static/creditcard_files/51531-253e8d8f8f527d9c.mjs +26 -0
- banko_ai/static/creditcard_files/58103-d6be57f2d624e7b4.mjs +2 -0
- banko_ai/static/creditcard_files/58822-d1779ebe9d4fab59.mjs +51 -0
- banko_ai/static/creditcard_files/61b440e4366b35d7213172be53d3864e.jpg +0 -0
- banko_ai/static/creditcard_files/61d121a699367070f3988f633ed6ac7d.jpg +0 -0
- banko_ai/static/creditcard_files/65610-15f55d146aa3cc6f.mjs +2 -0
- banko_ai/static/creditcard_files/65662-2b7065d2ddcf6a0c.mjs +2 -0
- banko_ai/static/creditcard_files/67631-9d4d7f4aab06e79c.mjs +2 -0
- banko_ai/static/creditcard_files/68445-8aae26e83c03d9bc.mjs +7 -0
- banko_ai/static/creditcard_files/6863-da15e99ca946f07a.mjs +2 -0
- banko_ai/static/creditcard_files/71526-518cf6126a32651b.mjs +2 -0
- banko_ai/static/creditcard_files/72268-8f69a6e8585b9af2.mjs +2 -0
- banko_ai/static/creditcard_files/76f1a52015cf2a243ed085586f3d44e8.jpg +0 -0
- banko_ai/static/creditcard_files/80538-65bd348271403336.mjs +2 -0
- banko_ai/static/creditcard_files/81505-387f6ddb644ae967.mjs +38 -0
- banko_ai/static/creditcard_files/8151-1a0cf04ea45ad513.mjs +2 -0
- banko_ai/static/creditcard_files/83119-1cf7ca2f5ba0e1ab.mjs +9 -0
- banko_ai/static/creditcard_files/83485-27ce97f9e7369ed7.mjs +5 -0
- banko_ai/static/creditcard_files/8575-e1977ceb3b34da9c.mjs +2 -0
- banko_ai/static/creditcard_files/8962-664b3c9b21ec2e0f.mjs +2 -0
- banko_ai/static/creditcard_files/90123-40fd5c2d5dc1c0a1.mjs +2 -0
- banko_ai/static/creditcard_files/91846-55cc5635c18159a0.mjs +47 -0
- banko_ai/static/creditcard_files/91936-56d11562a38b3f77.mjs +2 -0
- banko_ai/static/creditcard_files/96833-fbcb1ab8436924d4.mjs +36 -0
- banko_ai/static/creditcard_files/99246-889e96fc0a42e07a.mjs +2 -0
- banko_ai/static/creditcard_files/99961-ee8d9a1207a9db7a.mjs +2 -0
- banko_ai/static/creditcard_files/DefaultPinRep-78e567622e9cb382.mjs +27 -0
- banko_ai/static/creditcard_files/DesktopUnauthPageWrapper-26b3c2c050f09d27.css +1 -0
- banko_ai/static/creditcard_files/DesktopUnauthPageWrapper-a120f0b0faa773a2.mjs +252 -0
- banko_ai/static/creditcard_files/KkWFeSURekXGycdprVC-UY6ED-ZF5ll2JCMiHhJE2Rk.js +1 -0
- banko_ai/static/creditcard_files/MobileAndUnauthPinPage-0083f61f79e906d2.mjs +400 -0
- banko_ai/static/creditcard_files/UnauthCloseupRelatedPins-d98c713ac2e141a7.mjs +2 -0
- banko_ai/static/creditcard_files/[id]-87f8f6f1f81e3a8a.mjs +2 -0
- banko_ai/static/creditcard_files/_client-49638f60bdf5658e.mjs +43 -0
- banko_ai/static/creditcard_files/a7ee24644496b7a3131cd4e13b8c6edb.jpg +0 -0
- banko_ai/static/creditcard_files/a8ada9395c00dffc8fb81a7b76bd34b5.jpg +0 -0
- banko_ai/static/creditcard_files/abbf5a82906bef8c6be49ab38eaeea7c.jpg +0 -0
- banko_ai/static/creditcard_files/ad910641231bb413f6a985e4e9961efb.jpg +0 -0
- banko_ai/static/creditcard_files/anchor.html +186 -0
- banko_ai/static/creditcard_files/b6083df3cfa26856caef114c51a8d21e.jpg +0 -0
- banko_ai/static/creditcard_files/b957829ac112a8c28b313307e5ff0df6.jpg +0 -0
- banko_ai/static/creditcard_files/bb2d3d28e3421d901d8d431c33f0c6ed.jpg +0 -0
- banko_ai/static/creditcard_files/bb2d3d28e3421d901d8d431c33f0c6ed.png +0 -0
- banko_ai/static/creditcard_files/c3031b4a938377789e00d3d2f3b2438c.jpg +0 -0
- banko_ai/static/creditcard_files/client +300 -0
- banko_ai/static/creditcard_files/ct.html +3 -0
- banko_ai/static/creditcard_files/d03e6db9649ea3479b799d5a21008ac2.jpg +0 -0
- banko_ai/static/creditcard_files/d3d38fd9aa0c808a28ff5bd9ae5b5576.jpg +0 -0
- banko_ai/static/creditcard_files/de7cb9e198b4ebc9430824132ccfce2e.jpg +0 -0
- banko_ai/static/creditcard_files/e4330b4a4e71a3f77dd0682b99037cad.jpg +0 -0
- banko_ai/static/creditcard_files/ecdf72d4d54e70608e9416020f8ad67d.jpg +0 -0
- banko_ai/static/creditcard_files/eef64355b9f10e89c355b138adbae1e9.jpg +0 -0
- banko_ai/static/creditcard_files/enterprise.js +1 -0
- banko_ai/static/creditcard_files/f1354f6bb993409ea12235a01a978936.jpg +0 -0
- banko_ai/static/creditcard_files/f7c30e2615fe0e57d9ab6e41aac5e738.jpg +0 -0
- banko_ai/static/creditcard_files/fa72fa1ae9bb3ec93f41595333d22d16.jpg +0 -0
- banko_ai/static/creditcard_files/fb09ce3b0feb4931402867cf109cd618.jpg +0 -0
- banko_ai/static/creditcard_files/i +0 -0
- banko_ai/static/creditcard_files/locale-en_US-lite-js-d0d346142714beb1.mjs +2 -0
- banko_ai/static/creditcard_files/login-3c695aa28fdc27a5.mjs +161 -0
- banko_ai/static/creditcard_files/login-e161a84cea9cd0a3.css +1 -0
- banko_ai/static/creditcard_files/packages-rich-snippet-LeafSnippet-b7f61038a4431021.mjs +2 -0
- banko_ai/static/creditcard_files/polyfills-c5ca6e711f8975ec.mjs +2 -0
- banko_ai/static/creditcard_files/recaptcha__en.js +1011 -0
- banko_ai/static/creditcard_files/repin-62bbd4d7c8e22f17.css +1 -0
- banko_ai/static/creditcard_files/repin-d49f19d89ddd3cbe.mjs +292 -0
- banko_ai/static/creditcard_files/runtime-505e4380476a458b.mjs +2 -0
- banko_ai/static/creditcard_files/saved_resource(1).html +7 -0
- banko_ai/static/creditcard_files/saved_resource(2).html +3 -0
- banko_ai/static/creditcard_files/saved_resource.html +3 -0
- banko_ai/static/creditcard_files/sdk(1).js +22 -0
- banko_ai/static/creditcard_files/sdk.js +228 -0
- banko_ai/static/creditcard_files/select.html +387 -0
- banko_ai/static/creditcard_files/style +1 -0
- banko_ai/static/creditcard_files/styles__ltr.css +1 -0
- banko_ai/static/creditcard_files/unnamed.jpg +0 -0
- banko_ai/static/creditcard_files/vendor-react-76e71fd67c83934b.mjs +54 -0
- banko_ai/static/creditcard_files/visual-search-fe95849c7568d600.mjs +123 -0
- banko_ai/static/css/style.css +1274 -0
- banko_ai/templates/dashboard.html +5 -5
- banko_ai/templates/index.html +6 -6
- banko_ai/web/app.py +18 -4
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/METADATA +2 -2
- banko_ai_assistant-1.0.3.dist-info/RECORD +164 -0
- banko_ai_assistant-1.0.0.dist-info/RECORD +0 -46
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/WHEEL +0 -0
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/entry_points.txt +0 -0
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {banko_ai_assistant-1.0.0.dist-info → banko_ai_assistant-1.0.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[51531],{560053:(e,t)=>{/**
|
2
|
+
* @license React
|
3
|
+
* scheduler.production.min.js
|
4
|
+
*
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/function r(e,t){var r=e.length;for(e.push(t);0<r;){var i=r-1>>>1,n=e[i];if(0<l(n,t))e[i]=t,e[r]=n,r=i;else break}}function i(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;for(var i=0,n=e.length,o=n>>>1;i<o;){var a=2*(i+1)-1,s=e[a],d=a+1,c=e[d];if(0>l(s,r))d<n&&0>l(c,s)?(e[i]=c,e[d]=r,i=d):(e[i]=s,e[a]=r,i=a);else if(d<n&&0>l(c,r))e[i]=c,e[d]=r,i=d;else break}}return t}function l(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o,a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,d=s.now();t.unstable_now=function(){return s.now()-d}}var c=[],u=[],_=1,p=null,h=3,f=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=i(u);null!==t;){if(null===t.callback)n(u);else if(t.startTime<=e)n(u),t.sortIndex=t.expirationTime,r(c,t);else break;t=i(u)}}function w(e){if(g=!1,x(e),!m){if(null!==i(c))m=!0,R(P);else{var t=i(u);null!==t&&L(w,t.startTime-e)}}}function P(e,r){m=!1,g&&(g=!1,v(k),k=-1),f=!0;var l=h;try{for(x(r),p=i(c);null!==p&&(!(p.expirationTime>r)||e&&!I());){var o=p.callback;if("function"==typeof o){p.callback=null,h=p.priorityLevel;var a=o(p.expirationTime<=r);r=t.unstable_now(),"function"==typeof a?p.callback=a:p===i(c)&&n(c),x(r)}else n(c);p=i(c)}if(null!==p)var s=!0;else{var d=i(u);null!==d&&L(w,d.startTime-r),s=!1}return s}finally{p=null,h=l,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,A=null,k=-1,E=5,j=-1;function I(){return!(t.unstable_now()-j<E)}function T(){if(null!==A){var e=t.unstable_now();j=e;var r=!0;try{r=A(!0,e)}finally{r?o():(S=!1,A=null)}}else S=!1}if("function"==typeof y)o=function(){y(T)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,C=O.port2;O.port1.onmessage=T,o=function(){C.postMessage(null)}}else o=function(){b(T,0)};function R(e){A=e,S||(S=!0,o())}function L(e,r){k=b(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,R(P))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return i(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var r=h;h=t;try{return e()}finally{h=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=h;h=e;try{return t()}finally{h=r}},t.unstable_scheduleCallback=function(e,n,l){var o=t.unstable_now();switch(l="object"==typeof l&&null!==l&&"number"==typeof(l=l.delay)&&0<l?o+l:o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=l+a,e={id:_++,callback:n,priorityLevel:e,startTime:l,expirationTime:a,sortIndex:-1},l>o?(e.sortIndex=l,r(u,e),null===i(c)&&e===i(u)&&(g?(v(k),k=-1):g=!0,L(w,l-o))):(e.sortIndex=a,r(c,e),m||f||(m=!0,R(P))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},363840:(e,t,r)=>{e.exports=r(560053)},653250:(e,t,r)=>{/**
|
10
|
+
* @license React
|
11
|
+
* use-sync-external-store-shim.production.min.js
|
12
|
+
*
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
14
|
+
*
|
15
|
+
* This source code is licensed under the MIT license found in the
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
17
|
+
*/var i=r(667294),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=i.useState,o=i.useEffect,a=i.useLayoutEffect,s=i.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),i=l({inst:{value:r,getSnapshot:t}}),n=i[0].inst,c=i[1];return a(function(){n.value=r,n.getSnapshot=t,d(n)&&c({inst:n})},[e,r,t]),o(function(){return d(n)&&c({inst:n}),e(function(){d(n)&&c({inst:n})})},[e]),s(r),r};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},950139:(e,t,r)=>{/**
|
18
|
+
* @license React
|
19
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
20
|
+
*
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
22
|
+
*
|
23
|
+
* This source code is licensed under the MIT license found in the
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
25
|
+
*/var i=r(667294),n=r(61688),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,a=i.useRef,s=i.useEffect,d=i.useMemo,c=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,i,n){var u=a(null);if(null===u.current){var _={hasValue:!1,value:null};u.current=_}else _=u.current;var p=o(e,(u=d(function(){function e(e){if(!s){if(s=!0,o=e,e=i(e),void 0!==n&&_.hasValue){var t=_.value;if(n(t,e))return a=t}return a=e}if(t=a,l(o,e))return t;var r=i(e);return void 0!==n&&n(t,r)?t:(o=e,a=r)}var o,a,s=!1,d=void 0===r?null:r;return[function(){return e(t())},null===d?void 0:function(){return e(d())}]},[t,r,i,n]))[0],u[1]);return s(function(){_.hasValue=!0,_.value=p},[p]),c(p),p}},61688:(e,t,r)=>{e.exports=r(653250)},552798:(e,t,r)=>{e.exports=r(950139)},84928:e=>{var t,r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FollowButton_pin",selections:[{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null}],type:"Pin",abstractKey:null};r.hash="cabaa35ed7d59dee006897bf3ef32e3d",e.exports=r},237693:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(667294),n=r(883119),l=r(898781),o=r(773285),a=r(780280),s=r(785893);function d({collapsed:e,displayViewState:t,forceTappableHeader:r,headerPaddingRight:d,headerPreview:c,heading:u,onClick:_,showArrow:p}){let h=(0,l.ZP)(),{checkExperiment:f}=(0,o.F)(),{isAuthenticated:m}=(0,a.B)(),g=m?f("auth_closeup_redesign").anyEnabled:f("unauth_closeup_redesign").anyEnabled;return(0,s.jsx)(i.Fragment,{children:r||null!==t?(0,s.jsx)(n.iP,{onTap:_,children:(0,s.jsxs)(n.kC,{alignItems:"center",dataTestId:"collapsible-header",direction:"row",flex:"grow",justifyContent:"between",children:[(0,s.jsx)(n.X6,{align:"start",size:g?"300":"400",accessibilityLevel:2,id:"comments-heading",children:u}),(0,s.jsxs)(n.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{paddingRight:d}},direction:"row",display:"flex",children:[e&&c,p&&(0,s.jsx)(n.xu,{"data-test-id":"collapse-button",display:"flex",marginStart:c?4:0,width:48,alignItems:"center",justifyContent:"center",children:(0,s.jsx)(n.JO,{accessibilityLabel:h._('Expand icon', 'accordion.actionButton', 'accessibility label on accordion'),color:"default",icon:e?"arrow-down":"arrow-up"})})]})]})}):(0,s.jsx)(n.X6,{align:"start",size:"400",accessibilityLevel:2,id:"comments-heading",children:u})})}},485710:(e,t,r)=>{r.d(t,{Z:()=>c});var i=r(667294),n=r(883119),l=r(237693),o=r(773285),a=r(780280),s=r(50286),d=r(785893);function c({children:e,displayViewState:t,forceTappableHeader:r,headerPaddingRight:c,headerPreview:u,heading:_,collapseByDefault:p=!0}){let h=(0,s.ml)(),{checkExperiment:f}=(0,o.F)(),{isAuthenticated:m,isBot:g}=(0,a.B)(),b=h&&f(m?"closeup_auth_mweb_collapsable_modules":"closeup_unauth_mweb_collapsable_modules").group||"",v=["no_collapse_by_default","collapse_by_default"].includes(b),y="collapse_by_default"===b,[x,w]=(0,i.useState)(v&&!g&&y&&p||[1,2].includes(t));return(0,d.jsxs)(n.kC,{direction:"column",dataTestId:"collapsible-layout",gap:v?4:0,children:[(0,d.jsx)(l.Z,{collapsed:x,displayViewState:t,forceTappableHeader:r,headerPaddingRight:c,headerPreview:u,heading:_,onClick:()=>{w(!x)},showArrow:!0}),!x&&(0,d.jsx)(n.xu,{children:e})]})}},288889:(e,t,r)=>{r.d(t,{n:()=>i});let i="300"},319530:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(667294),n=r(883119),l=r(288889),o=r(643010),a=r(898781),s=r(785893);function d({children:e,maxLines:t=10}){let r=(0,i.useRef)(null),[d,c]=(0,i.useState)({isFirstLoad:!0,isTruncated:!1}),u=(0,a.ZP)(),_=(0,o.vs)(),p=_?"#111":"#fff",{isFirstLoad:h,isTruncated:f}=d;return(0,i.useEffect)(()=>{var e;h&&r.current&&((e=r.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&c({isFirstLoad:!1,isTruncated:!0})},[h,f]),(0,s.jsxs)(n.xu,{position:"relative","data-test-id":"truncated-text",children:[(0,s.jsx)(n.xv,{ref:r,lineClamp:h||f?t:0,inline:!0,children:e}),f&&(0,s.jsx)(n.xu,{position:"absolute",display:"block",width:"100%",bottom:!0,children:(0,s.jsxs)(n.kC,{flex:"grow",children:[(0,s.jsx)(n.xu,{display:"inlineBlock",width:"120px",height:"14px"}),(0,s.jsx)(n.xu,{"data-test-id":"more-button",display:"inlineBlock",dangerouslySetInlineStyle:{__style:{paddingLeft:15,background:`linear-gradient(90deg, transparent 0%, ${p} 15%)`}},children:(0,s.jsx)(n.iP,{fullWidth:!1,onTap:()=>c({...d,isTruncated:!1}),children:(0,s.jsx)(n.xv,{inline:!0,size:l.n,weight:"bold",children:u._(' \u2026 more', 'closeup.TruncatedTextContent.moreLabel', 'Expand content label')})})}),(0,s.jsx)(n.xu,{display:"inlineBlock",flex:"grow",dangerouslySetInlineStyle:{__style:{background:p}}})]})})]})}},512176:(e,t,r)=>{r.d(t,{Z:()=>c});var i=r(667294),n=r(883119),l=r(112690),o=r(898781),a=r(967181),s=r(785893);let d={sm:12,md:16,lg:20,xl:24};function c({isVerifiedMerchant:e,size:t,showText:r,showVerifiedIdentity:c,inspirationalBadges:u,inspirationalBadgesColor:_}){let p=(0,o.ZP)(),[h,f]=(0,i.useState)(!1),{dangerousInlineStyle:m,iconColor:g}=(0,a.W)(!!e),b=(0,l.Z)();return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(n.iP,{onTap:()=>{b({component:13534,element:11717,event_type:102}),f(!0)},rounding:"circle",children:(0,s.jsxs)(n.xu,{alignItems:"center",dangerouslySetInlineStyle:m,display:"flex","data-test-id":"verified-badge-icon",children:[(0,s.jsx)(n.JO,{accessibilityLabel:e?p._('Merchant verification badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'):p._('Badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'),icon:"workflow-status-ok",color:g,inline:!0,size:d[t]}),r&&!c&&(0,s.jsx)(n.xu,{marginStart:2,children:(0,s.jsx)(n.xv,{color:"shopping",inline:!0,weight:"bold",children:(0,s.jsx)(n.xu,{dangerouslySetInlineStyle:m,children:p._('Verified merchant', 'creator.header.verifiedMerchant', 'this merchant is a verified merchant')})})})]})}),(e||r&&!c)&&(0,s.jsx)(a.Z,{showModal:h,setShowModal:f,inspirationalBadges:u,inspirationalBadgesColor:_})]})}},967181:(e,t,r)=>{r.d(t,{W:()=>u,Z:()=>_});var i=r(667294),n=r(883119),l=r(752403),o=r(112690),a=r(121151),s=r(898781),d=r(966113),c=r(785893);let u=e=>{let t=e?"shopping":"error";return{iconColor:t,dangerousInlineStyle:{__style:{color:t}}}};function _({inspirationalBadges:e=[],inspirationalBadgesColor:t,showModal:r,setShowModal:_}){let p=(0,s.ZP)(),[h,f]=(0,i.useState)(!0),{dangerousInlineStyle:m,iconColor:g}=u(!0),b=(0,o.Z)();return(0,i.useEffect)(()=>{r&&h&&(f(!1),b({event_type:13,component:13534}))},[r]),(0,c.jsx)(a.ZP,{accessibilityModalLabel:p._('Verified merchant information', 'creator.verifiedMerchant.accessibilityModalLabel', 'Accessibility label for modal informing about a verified merchant'),isOpen:r,mobileAccessibilityCloseIconLabel:p._('Close', 'Close modal window', 'Close modal'),onDismiss:()=>{b({component:13534,element:11716,event_type:102}),_(!1)},type:"verified_merchant_modal",children:(0,c.jsx)(n.xu,{padding:3,children:(0,c.jsxs)(n.xu,{display:"flex",direction:"column",padding:2,"data-test-id":"verified-badge-modal",children:[(0,c.jsx)(n.xu,{display:"flex",dangerouslySetInlineStyle:m,justifyContent:"center",children:(0,c.jsx)(n.JO,{accessibilityLabel:p._('Merchant verification badge icon', 'creator.verifiedMerchant.modalIcon', 'Badge indicating that a merchant or user is verified'),color:g,icon:"workflow-status-ok",size:24})}),(0,c.jsx)(n.xu,{marginTop:4,children:(0,c.jsx)(n.xv,{color:"shopping",weight:"bold",align:"center",children:(0,c.jsx)(n.xu,{dangerouslySetInlineStyle:m,children:p._('Verified merchant', 'creator.verifiedMerchant.modalHeader', 'this merchant is a verified merchant')})})}),(0,c.jsx)(n.xu,{marginTop:4,marginBottom:4,children:(0,c.jsx)(n.xv,{align:"center",overflow:"normal",children:p._('This retailer meets Pinterest\'s Merchant Guidelines', 'creator.verifiedMerchant.modalText.', 'this merchant is a verified merchant')})}),e.map(e=>(0,c.jsxs)(n.xu,{display:"flex",direction:"column",marginTop:4,children:[(0,c.jsx)(n.kC,{alignItems:"stretch",justifyContent:"center",children:(0,c.jsx)(n.xv,{overflow:"noWrap",size:"100",weight:"bold",children:(0,c.jsx)(n.xu,{display:"inlineBlock",rounding:1,paddingX:2,paddingY:2,dangerouslySetInlineStyle:{__style:(0,l.ym)(t)},"data-test-id":"verified-badge-modal-inspirational-badge",children:e.label})})}),(0,c.jsx)(n.xu,{marginTop:2,children:(0,c.jsx)(n.xv,{align:"center",overflow:"normal",children:e.description})})]},e.id)),(0,c.jsx)(n.xu,{display:"flex",marginTop:8,justifyContent:"center",width:"100%","data-test-id":"verified-badge-modal-learn-more",children:(0,c.jsx)(n.ZP,{accessibilityLabel:p._('Learn more', 'creator.verifiedMerchant.buttonText', 'learn more about the verified merchant program by visiting help.pinterest.com'),target:"blank",size:"lg",href:d.vBy,text:p._('Learn more', 'creator.verifiedMerchant.buttonText', 'learn more about the verified merchant program by visiting help.pinterest.com')})})]})})})}},100183:(e,t,r)=>{r.d(t,{CC:()=>n,Ll:()=>o,XF:()=>l});let i=(e,t,r)=>({x:Math.floor(e*Math.cos(r)),y:Math.floor(t*Math.sin(r))}),n=(e,t)=>i(t/2,e/2,2*Math.random()*Math.PI),l=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,o=e=>["@-webkit-keyframes","@keyframes"].map(t=>e.map(e=>t+" "+e).join("\n")).join("\n")},792182:(e,t,r)=>{r.d(t,{Z:()=>s});var i=r(667294);function n(e){return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}function l(){return window.innerWidth}function o(){return window.innerHeight}function a(){return null}function s(){let e=(0,i.useSyncExternalStore)(n,o,a),t=(0,i.useSyncExternalStore)(n,l,a);return null!==e&&null!==t?{height:e,width:t}:null}},752403:(e,t,r)=>{r.d(t,{Bu:()=>h,Dm:()=>a,I:()=>g,NG:()=>_,QP:()=>c,S4:()=>d,Xe:()=>u,_f:()=>p,eT:()=>f,hm:()=>m,yQ:()=>s,ym:()=>b});var i=r(642345);let n=Object.freeze({AFRICAN_AMERICAN_OR_BLACK:"african_american_or_black",BLACK_AFRICAN_DIASPORA:"black_african_diaspora",HISPANIC_OR_LATINX:"hispanic_or_latinx",NATIVE_OR_INDIGENOUS:"native_or_indigenous",ABORIGINAL_OR_INDIGENOUS:"aboriginal_or_indigenous",NATIVE_AMERICAN_OR_ALASKA_NATIVE_OR_INDIGENOUS_PEOPLES:"native_american_or_alaska_native_or_indigenous_peoples",ASIAN_OR_PACIFIC_ISLANDERS:"asian_or_pacific_islanders",ASIAN:"asian",LGBTQ:"lgbtq",MIDDLE_EASTERN:"middle_eastern",TURKISH:"turkish",ROMA:"roma",MIDDLE_EASTERN_TURKISH_ROMA:"middle_eastern_turkish_roma",NORTH_AFRICAN:"north_african",MIDDLE_EASTERN_OR_NORTH_AFRICAN:"middle_eastern_or_north_african",NONE:"none"}),l=Object.freeze({PERSON_OF_COLOR:"person_of_color",LGBTQ:"lgbtq",DISABILITY:"disability",WOMAN:"woman",NONE:"none"}),o=Object.freeze({INVESTED_IN_GOOD:"invested_in_good",ECO_FRIENDLY:"eco_friendly",RESPONSIBLY_SOURCED:"responsibly_sourced",INCLUSIVE:"inclusive",PERSONAL_TOUCH:"personal_touch"}),a=[...Object.keys(n).map(e=>n[e]),...Object.keys(l).map(e=>l[e])],s=[...Object.keys(o).map(e=>o[e])],d=3,c=["#EFEFEF","#F8E3D1","#F6F1C1","#DDEEAF","#C9F2EE","#DBD5F4","#EFBCEE"],u={business_diversity_labels:[],created_at:"",disapproval_reasons:[],is_inspirational:!1,review_criteria:[],review_labels:[],updated_at:"",inspirational_badge_selection:{badgeColor:c[0],badgeOptOut:[]},is_eligible_for_storefront_badges:!1,badge_details:[],profile_badges:[]},_="https://help.pinterest.com/article/merchant-details",p="https://help.pinterest.com/business/article/add-merchant-details-to-your-profile";function h({verifiedMerchant:e}){var t,r;let i=null==e?void 0:e.isVerifiedMerchant,n=null==e?void 0:null===(t=e.inspirational_signal)||void 0===t?void 0:t.is_inspirational,l=null==e?void 0:null===(r=e.inspirational_signal)||void 0===r?void 0:r.is_eligible_for_storefront_badges;return!!(i&&n&&l)}function f(e){return e.badge_details?e.badge_details.map(e=>e.id):[]}function m(e){return(null==e?void 0:e.profile_badges)||[]}function g(e,t,r){return t&&r?t.map(e=>r.find(t=>t.id===e.trim())).filter(Boolean):[]}function b(e){let t=e||c[0];return{backgroundColor:t,color:function(e){let t=(0,i.oo)(e);if(!t)return"white";let[r,n,l]=t,o=(0,i.DW)(r,n,l);return o<=i.I?"white":"black"}(t)}}},41861:(e,t,r)=>{r.d(t,{Z:()=>i});function i(e){return function e(t,r){let i;if(null==t||"object"!=typeof t&&"function"!=typeof t)return t;let n=r.find(e=>e.value===t);if(n)return n.result;let l=Object.prototype.toString.call(t);switch(l){case"[object Array]":i=Array(t.length);break;case"[object Set]":i=new Set;break;case"[object Object]":case"[object Arguments]":i={};break;case"[object Map]":i=new Map;break;default:return t}let o=[...r,{value:t,result:i}];switch(l){case"[object Array]":t.forEach((t,r)=>{i[r]=e(t,o)});break;case"[object Set]":t.forEach(t=>{i.add(e(t,o))});break;case"[object Object]":case"[object Arguments]":Object.entries(t).forEach(([t,r])=>{i[t]=e(r,o)});break;case"[object Map]":t.forEach((t,r)=>{i.set(r,e(t,o))})}return i}(e,[])}},642345:(e,t,r)=>{r.d(t,{DW:()=>l,I:()=>n,oo:()=>i,zI:()=>o});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)]},n=.18,l=(e,t,r)=>.2126*(e/255)**2.2+.7151*(t/255)**2.2+.0721*(r/255)**2.2,o=e=>{let t=e.replace("#",""),r=parseInt(t.substr(0,2),16),i=parseInt(t.substr(2,2),16),n=parseInt(t.substr(4,2),16);return(299*r+587*i+114*n)/1e3<155}},594736:(e,t,r)=>{function i(e,t,r){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i+=1)if(!l(e[i],t[i],r+1))return!1;return!0}function n(e,t,r){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],r+1))return!1;return!0}function l(e,t,r){if(r>=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),o=Object.prototype.toString.call(t);if(l!==o)return!1;switch(l){case"[object Array]":return i(e,t,r);case"[object Set]":return i(Array.from(e).sort(),Array.from(t).sort(),r);case"[object Object]":case"[object Arguments]":return n(e,t,r);case"[object Map]":return n(Object.fromEntries(e),Object.fromEntries(t),r);case"[object RegExp]":return e+""==t+"";case"[object Error]":return e.name===t.name&&e.message===t.message;default:return!1}}function o(e,t){return l(e,t,0)}r.d(t,{ZP:()=>o})},722767:(e,t,r)=>{r.d(t,{Z:()=>a});var i=r(667294),n=r(973935);function l(e,t,r){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends i.Component{constructor(...e){super(...e),l(this,"observer",null),l(this,"handleVisibilityChanged",(e,t)=>{this.props.onVisibilityChange(e,t)})}componentDidMount(){let e=n.findDOMNode(this);e instanceof HTMLElement&&(this.node=e),this.node&&(this.observer=new window.IntersectionObserver(this.handleVisibilityChanged,this.props.options),this.observer.observe(this.node))}componentWillUnmount(){this.observer&&(this.observer.unobserve(this.node),delete this.observer)}render(){return i.Children.only(this.props.children)}}let a=o},375571:(e,t,r)=>{r.d(t,{Z:()=>a});var i=r(667294),n=r(395164),l=r(67347);function o(e,t,r){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class a extends i.Component{constructor(...e){super(...e),o(this,"state",{error:null,info:null}),o(this,"resetError",()=>{this.setState({error:null,info:null})})}componentDidCatch(e,t){try{var r;let{name:t}=this.props,i=this.props.type||"secondary";(0,n.T)({extraData:null!==(r=e.extraData)&&void 0!==r?r:{},errorBoundary:t,errorBoundaryType:i,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:r}=this.state;return t&&r?e?e({error:t,info:r,resetError:this.resetError}):null:this.props.children}}},319915:(e,t,r)=>{r.d(t,{Z:()=>n});var i=r(375571);let n=i.Z},332611:(e,t,r)=>{let i;r.d(t,{Am:()=>g,Ig:()=>f,N:()=>x,Sd:()=>b,YX:()=>y,be:()=>m,fO:()=>_,kd:()=>v,pz:()=>p});var n=r(667294),l=r(214494),o=r(112690),a=r(764990),s=r(957191),d=r(186656),c=r(67347);let u=(e,t,r={})=>(0,c.nP)(`${e}.${t}`,{sampleRate:1,tags:r}),_=(e,t)=>r=>{let i=t?{extra_context:e,targeting:t}:{extra_context:e};return l.Z.create("UserExperiencePlatformResource",i).callGet().then(e=>e.resource_response?r((0,s.OD)(e.resource_response.data)):void 0)},p=(e,t,r,n)=>(o,d)=>{if(t)return Promise.resolve();if(n&&(i=n),1===e.length){let t=e[0],i=d().experiences,n=i[t],l=(null==n?void 0:n.extraContext)||null;if(JSON.stringify(l)===JSON.stringify(r)||(0,a.E3)(n)&&!(r&&Object.keys(r).length>0))return Promise.resolve()}return l.Z.create("UserExperienceResource",{placement_ids:e,extra_context:r||null,targeting:n}).callGet().then(e=>e.resource_response?o((0,s.cL)(e.resource_response.data)):void 0)},h=(e,t,r,n)=>(o,a,d,c=!1,u,p)=>(h,f)=>{let{experiences:m,experiencesMulti:g}=f(),b=null,v=!0;if(!c){var y;b=(v=m[o]&&m[o].experience_id===a)?m[o]:Array.isArray(g[o])&&(null===(y=g[o])||void 0===y?void 0:y.find(e=>e.experience_id===a))}if(b&&b.experience_id===a||c&&o&&a){let c=l.Z.create(e,{placed_experience_id:`${o}%3A${a}`,extra_context:null!=u?u:{},targeting:p}),f=v?s.Yb:s.xW;switch(t){case"dismissed":return c.callDelete().then(()=>{h(f(o,a,t)),h(_(void 0,i)),r&&n&&r({event_type:n,object_id_str:a.toString()})});case"completed":return c.callUpdate().then(()=>{!d&&(h(f(o,a,t)),h(_(void 0,i)),r&&n&&r({event_type:n,object_id_str:a.toString()}))});case"viewed":return h(f(o,a,t)),c.callUpdate().then(()=>{1000162===o&&h(_()),r&&n&&r({event_type:n,object_id_str:a.toString()})});case"completedWithoutHomefeed":return c.callUpdate().then(()=>{d||h(f(o,a,t)),r&&n&&r({event_type:n,object_id_str:a.toString()})})}}return Promise.resolve()},f=()=>{let e=(0,o.Z)(),t=(0,n.useCallback)(h("UserExperienceViewedResource","viewed",e,4503),[e]);return t},m=()=>{let e=(0,o.Z)(),t=(0,n.useCallback)(h("UserExperienceCompletedResource","completed",e,6567),[e]);return t},g=()=>{let e=(0,o.Z)(),t=(0,n.useCallback)(h("UserExperienceResource","dismissed",e,6568),[e]);return t},b=()=>{let e=(0,o.Z)(),t=(0,n.useCallback)(h("UserExperienceCompletedResource","completedWithoutHomefeed",e,6567),[e]);return t},v=(e,t)=>(r,i)=>{let{experiences:n}=i(),l=n[e];l&&l.triggerable_placed_exps&&l.triggerable_placed_exps.length&&l.triggerable_placed_exps.forEach(r=>{let[,i]=r.split(":"),n=t;l.metadata&&l.metadata[i]&&(n={...t,...l.metadata[i]}),(0,d.Z)({url:`/v3/experiences/${r.replace(":","%3A")}/trigger/`,method:"PUT",data:n?{extra_context:JSON.stringify(n,null,1)}:{}}).then(()=>{u("experienceservice","experimentTriggerCall.1",{placement_id:e,experience_id:i})})})},y=e=>(t,r)=>{t(v(e));let{experiences:i}=r();return i[e]},x=(e,t,r)=>n=>{r&&(i=r),n(v(e,t)),t&&Object.keys(t).length>0&&n(p([e],!1,t,r))}},764990:(e,t,r)=>{r.d(t,{A0:()=>s,E3:()=>o,MQ:()=>a,fL:()=>d});var i=r(883119),n=r(149230),l=r(785893);function o(e){return!!e&&0!==e.type}let a=(e,t,r)=>{let i=e[r];return t[r]&&o(i)?i:null};function s(e){var t;return null===(t=e.display_data)||void 0===t?void 0:t.anchor}let d=e=>{var t;let r=new DOMParser,o=r.parseFromString(e,"text/html"),a=[...(null===(t=o.body)||void 0===t?void 0:t.childNodes)||[]].map(e=>{if("A"!==e.nodeName)return(0,l.jsx)(i.xv,{inline:!0,children:e.textContent});{let t=e.href||"",r=(0,n.Z)({url:t});return(0,l.jsx)(i.rU,{href:t,display:"inline",externalLinkIcon:r?"default":"none",target:"blank",rel:r?"nofollow":"none",children:e.textContent})}});return(0,l.jsx)(i.xv,{inline:!0,children:a})}},207737:(e,t,r)=>{r.d(t,{$S:()=>i,V$:()=>n,_4:()=>o,iY:()=>a,mR:()=>l});let i="REFRESH_ALL_EXPERIENCES_MULTI",n="UPDATE_EXPERIENCE_MULTI",l="FETCH_EXPERIENCES",o="REFRESH_ALL_EXPERIENCES",a="UPDATE_EXPERIENCE"},957191:(e,t,r)=>{r.d(t,{NW:()=>a,OD:()=>d,Yb:()=>s,cL:()=>c,xW:()=>o});var i=r(214494),n=r(207737);let l=e=>({type:n.$S,payload:{experiencesMulti:e}}),o=(e,t,r)=>({type:n.V$,payload:{placementId:e,experienceId:t,status:r}}),a=e=>t=>i.Z.create("UserExperiencePlatformResource",{extra_context:e,multiExperiencePlatform:!0}).callGet().then(e=>e.resource_response?t(l(e.resource_response.data)):void 0),s=(e,t,r)=>({type:n.iY,payload:{placementId:e,experienceId:t,status:r}}),d=e=>({type:n._4,payload:{experiences:e}}),c=e=>({type:n.mR,payload:{experiences:e}})},579014:(e,t,r)=>{r.d(t,{B1:()=>n,Md:()=>c,iX:()=>d,lI:()=>l,op:()=>s,uZ:()=>o,wN:()=>i,z_:()=>a});let i="var(--color-background-default)",n="var(--color-background-inverse-base)",l="var(--color-background-secondary-base)",o="var(--color-background-error-base)",a="var(--color-background-info-weak)",s="var(--color-border-error)",d="var(--color-border-container)",c="var(--color-text-subtle)"},858472:(e,t,r)=>{r.d(t,{$$:()=>g,C5:()=>E,CZ:()=>m,EX:()=>l,FZ:()=>i,HH:()=>a,KK:()=>P,Kp:()=>h,Ln:()=>f,Mv:()=>A,OX:()=>o,P6:()=>j,Rb:()=>x,Xn:()=>y,YX:()=>u,bu:()=>d,cO:()=>b,ci:()=>s,fM:()=>v,k6:()=>S,oY:()=>n,sX:()=>k,vZ:()=>_,wA:()=>w,x7:()=>c,xE:()=>p});let i="var(--color-transparent)",n="var(--color-black-cosmicore-900)",l="var(--color-blue-skycicle-900)",o="var(--color-red-pushpin-50)",a="var(--color-red-pushpin-100)",s="var(--color-red-pushpin-200)",d="var(--color-red-pushpin-300)",c="var(--color-red-pushpin-450)",u="var(--color-red-pushpin-500)",_="var(--color-red-pushpin-600)",p="var(--color-red-pushpin-700)",h="var(--color-red-pushpin-800)",f="var(--color-pink-flaminglow-0)",m="var(--color-white-mochimalist-0)",g="var(--color-gray-roboflow-50)",b="var(--color-gray-roboflow-200)",v="var(--color-gray-roboflow-300)",y="var(--color-gray-roboflow-400)",x="var(--color-gray-roboflow-500)",w="var(--color-gray-roboflow-600)",P="var(--color-gray-roboflow-700)",S="var(--color-purple-mysticool-200)",A="var(--color-purple-mysticool-300)",k="var(--color-purple-mysticool-500)",E="var(--color-teal-spabattical-100)",j="var(--color-yellow-caramellow-300)"},934494:(e,t,r)=>{r.d(t,{Z:()=>o});var i=r(667294),n=r(995228),l=r(785893);function o({useGraphQLAdapter:e,useLegacyAdapter:t}){let r=({children:t,data:r})=>t({enabled:!0,data:e(r)}),o=({children:e,data:r})=>e({enabled:!1,data:t(r)});return function({children:e,input:t}){var a;let s=t.enabled?(0,l.jsx)(r,{data:t.data,children:e}):(0,l.jsx)(o,{data:t.data,children:e}),d=null!==(a=t.suspense)&&void 0!==a&&a.dangerouslyServerRender?i.Suspense:n.Z;return t.suspense?(0,l.jsx)(d,{fallback:t.suspense.fallback,children:s}):s}}},298361:(e,t,r)=>{r.d(t,{Z:()=>o});var i=r(202139),n=r(898781),l=r(349700);function o(){let e=(0,n.ZP)();return function(t,r){let n=new Date(t),o=new Date,a=o-n,s=Math.floor(a/i.FS),d=Math.floor(a/i.UK),c=Math.floor(a/i.F4),u=Math.floor(a/i.VL),_=Math.floor(a/i.N1),p=e.ngettext('{{ minutes }} minute ago', '{{ minutes }} minutes ago', s, ' - ', ' -- '),h=e.ngettext('{{ hours }} hour ago', '{{ hours }} hours ago', d, ' - ', ' -- '),f=e.ngettext('{{ days }} day ago', '{{ days }} days ago', c, ' - ', ' -- '),m=e.ngettext('{{ weeks }} week ago', '{{ weeks }} weeks ago', u, ' - ', ' -- '),g=e.ngettext('{{ years }} year ago', '{{ years }} years ago', _, ' - ', ' -- '),b=e.ngettext('{{ minutes }}m', '{{ minutes }}m', s, 'minutes ago abbreviated', 'minutes ago abbreviated'),v=e.ngettext('{{ hours }}h', '{{ hours }}h', d, 'hours ago abbreviated', 'hours ago abbreviated'),y=e.ngettext('{{ days }}d', '{{ days }}d', c, 'days ago abbreviated', 'days ago abbreviated'),x=e.ngettext('{{ weeks }}w', '{{ weeks }}w', u, 'weeks ago abbreviated', 'weeks ago abbreviated'),w=e.ngettext('{{ years }}y', '{{ years }}y', _, 'years ago abbreviated', 'years ago abbreviated');return _>0?(0,l.nk)(r?w:g,{years:_}).join(""):u>0?(0,l.nk)(r?x:m,{weeks:u}).join(""):c>0?(0,l.nk)(r?y:f,{days:c}).join(""):d>0?(0,l.nk)(r?v:h,{hours:d}).join(""):s>0?(0,l.nk)(r?b:p,{minutes:s}).join(""):e._('Just now', ' - ', ' -- ')}}},926275:(e,t,r)=>{r.d(t,{Z:()=>i});function i(e){if(!e)return!1;let t=new Date(e);return t.setDate(t.getDate()+28),new Date().getTime()<t.getTime()}},313047:(e,t,r)=>{r.r(t),r.d(t,{DEFAULT_HEIGHT:()=>_,DEFAULT_PADDING_Y:()=>p,FixedFooter:()=>m,FixedHeader:()=>f});var i=r(667294),n=r(883119),l=r(643010),o=r(579014),a=r(858472),s=r(124580),d=r(834256),c=r(773285),u=r(785893);let _=64,p=3;function h({children:e,footerConfig:t,headerConfig:r,height:d,hideOnScroll:h,hideOnScrollState:{isHidden:f,updateHiddenState:m},noPadding:g,paddingY:b=p,type:v,zIndex:y}){let x,w;let{headerLimitedOverflow:P,ignoreObstructions:S,zIndexForGestaltBug:A}=r||{},{appUpsellFooterConfig:k,footerInLego:E,navFooterConfig:j}=t||{},I=!!k,T="header"===v?"top":"bottom",{anyEnabled:O}=(0,c.F)().checkExperiment("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),C=(0,l.vs)(),R=O?C:(0,l.Yc)(),L=(0,i.useRef)(null),Z=(0,i.useRef)(null);(0,i.useEffect)(()=>{try{if(!S){let e=L.current;Z.current=P&&e&&Array.isArray(e.children)?e.children[0]:e,Z.current instanceof HTMLElement&&s.Z.addObstruction(T,Z.current)}}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}return()=>{!S&&Z.current instanceof HTMLElement&&s.Z.removeObstruction(T,Z.current)}},[S,P,T,R]);let z="top"===T?"relative":"fixed",D=(null!=d?d:_)+((null==r?void 0:r.overrideTop)||0),N=h||j?{transition:E?"transform 300ms ease-in-out, opacity 300ms ease-in-out":"transform 200ms linear",...f?{transform:`translateY(${"top"===T?-D:D}px)`,opacity:E?0:1}:Object.freeze({})}:{},U="relative"!==z||null!=r&&r.noGutter?0:2,F=U?-U:0,M=R?"rgba(0,0,0,.95)":"rgba(255,255,255,.95)";return R&&("header"===v?x=-1:w=-1),(0,u.jsx)(n.xu,{ref:L,dangerouslySetInlineStyle:{__style:{top:x,bottomStyle:w,...!y||A?{zIndex:A||1}:Object.freeze({}),...P?{background:"transparent",overflow:"hidden",paddingBottom:100,marginBottom:-100,pointerEvents:"none"}:Object.freeze({}),...null!=r&&r.hasBorder?{borderBottom:"1px solid #efefef"}:Object.freeze({}),...null!=t&&t.hasTopShadow?{boxShadow:"0 -2px 4px 1px rgba(0, 0, 0, 0.08)"}:Object.freeze({}),...N}},zIndex:A?void 0:y,"data-test-id":v,display:I?"flex":void 0,height:d&&!E?d:void 0,position:z,bottom:"footer"===v,top:"header"===v,left:!0,right:!0,marginStart:E?"auto":F,marginEnd:E?"auto":F,onTransitionEnd:()=>{(h||j)&&Z.current&&(f?s.Z.removeObstruction(T,Z.current):s.Z.addObstruction(T,Z.current))},width:E||"fixed"!==z?void 0:"100%",children:(0,u.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:(null==r?void 0:r.isTranslucent)&&M||(null==r?void 0:r.isTransparentBackground)&&a.FZ||o.wN,height:E?I?void 0:null!=d?d:_:"100%",boxShadow:E?"0px 0px 8px rgba(0, 0, 0, 0.1)":void 0,marginBottom:E&&!(null!=j&&j.docked)?16:void 0,...P?{pointerEvents:"auto"}:Object.freeze({}),...null!=r&&r.useRoundedCorners?{zIndex:5,borderTopRightRadius:17,borderTopLeftRadius:17,borderBottomRightRadius:0,borderBottomLeftRadius:0}:Object.freeze({})}},paddingX:("footer"!==v||g?0:4)+U,paddingY:g?0:b,position:"relative",width:j?j.footerWidth:I?void 0:"100%",rounding:E&&!(null!=j&&j.docked)?"pill":void 0,display:E||null!=t&&t.alignCenter?"flex":void 0,marginStart:E?"auto":void 0,marginEnd:E?"auto":void 0,alignItems:null!=t&&t.alignCenter?"center":void 0,children:"function"==typeof e?e({updateHiddenState:m}):e})})}function f({hasBorder:e,headerLimitedOverflow:t,ignoreObstructions:r,isTranslucent:i,isTransparentBackground:l,noGutter:o,overrideTop:a,useRoundedCorners:s,zIndexForGestaltBug:c,..._}){let{noPadding:f,paddingY:m=p,zIndex:g}=_;return(0,u.jsx)(n.Le,{top:a||0,height:t?44+8*(f?0:m):void 0,zIndex:g||void 0,children:(0,u.jsx)(d.Z,{hideOnScroll:_.hideOnScroll,children:n=>(0,u.jsx)(h,{..._,hideOnScrollState:n,type:"header",headerConfig:{isTranslucent:i,isTransparentBackground:l,headerLimitedOverflow:t,hasBorder:e,ignoreObstructions:r,noGutter:o,overrideTop:a,zIndexForGestaltBug:c,useRoundedCorners:s}})})})}function m({alignCenter:e,appUpsellFooterConfig:t,footerInLego:r,hasTopShadow:i,navFooterConfig:n,...l}){return(0,u.jsx)(d.Z,{appUpsellFooterConfig:t,hideOnScroll:l.hideOnScroll,navFooterConfig:null==n?void 0:n.scrollConfig,children:o=>(0,u.jsx)(h,{...l,hideOnScrollState:o,type:"footer",footerConfig:{alignCenter:e,appUpsellFooterConfig:t,footerInLego:r,hasTopShadow:i,navFooterConfig:n}})})}},834256:(e,t,r)=>{r.d(t,{Z:()=>a,m:()=>o});var i=r(667294),n=r(700380);function l(e,t,r){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let o=20;class a extends i.Component{constructor(...e){var t;super(...e),l(this,"state",{isHidden:!!this.props.appUpsellFooterConfig||!!(null!==(t=this.props.navFooterConfig)&&void 0!==t&&t.isDockedNavOnPlp)}),l(this,"lastScrollPos",0),l(this,"updateHiddenState",e=>{this.reqAnimationId=window.requestAnimationFrame(()=>{this.setState({isHidden:e})})}),l(this,"handleScroll",(0,n.Z)(()=>{var e;let{appUpsellFooterConfig:t,navFooterConfig:r}=this.props,{isHidden:i}=this.state,n=window.scrollY,l=n-this.lastScrollPos,a="none",{scrollHeight:s,clientHeight:d}=document.documentElement||{};if(!Number.isNaN(s)&&!Number.isNaN(d)){if(l<0){let e=window.scrollMinY||0;a=n<=Math.abs(e+Math.max(l,o))?"start":"none"}else{let e=window.scrollMaxY||s-d;a=n>=e-Math.max(l,o)?"end":"none"}}let c=null!=r&&r.isModal?0:55;if(t){if(l>o&&i&&n>=500){let e=t.shouldShowAfterScroll();e&&(this.updateHiddenState(!1),null==r||r.onScroll(!1))}else(l<-o&&!i||n<=c)&&(this.updateHiddenState(!0),null==r||r.onScroll(!0))}else null!==(e=this.props.navFooterConfig)&&void 0!==e&&e.isDockedNavOnPlp?"start"===a&&!i||n<=c?(this.updateHiddenState(!0),null==r||r.onScroll(!0)):(n>c||"end"===a)&&i&&(this.updateHiddenState(!1),null==r||r.onScroll(!1)):(l<-o||"start"===a)&&i||n<=c?(this.updateHiddenState(!1),null==r||r.onScroll(!1)):(l>o||"end"===a)&&!i&&(this.updateHiddenState(!0),null==r||r.onScroll(!0));this.lastScrollPos=n},30))}componentDidMount(){try{var e;(this.props.hideOnScroll||null!==(e=this.props.navFooterConfig)&&void 0!==e&&e.isDockedNavOnPlp)&&window.addEventListener("scroll",this.handleScroll)}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}}componentWillUnmount(){var e;(this.props.hideOnScroll||null!==(e=this.props.navFooterConfig)&&void 0!==e&&e.isDockedNavOnPlp)&&window.removeEventListener("scroll",this.handleScroll),this.reqAnimationId&&(window.cancelAnimationFrame(this.reqAnimationId),this.reqAnimationId=null)}componentDidUpdate(e){var t,r,i,n;!e.hideOnScroll&&this.props.hideOnScroll||!(null!==(t=e.navFooterConfig)&&void 0!==t&&t.isDockedNavOnPlp)&&null!==(r=this.props.navFooterConfig)&&void 0!==r&&r.isDockedNavOnPlp?(this.updateHiddenState(!0),window.addEventListener("scroll",this.handleScroll)):(e.hideOnScroll&&!this.props.hideOnScroll||null!==(i=e.navFooterConfig)&&void 0!==i&&i.isDockedNavOnPlp&&!(null!==(n=this.props.navFooterConfig)&&void 0!==n&&n.isDockedNavOnPlp))&&(this.updateHiddenState(!1),window.removeEventListener("scroll",this.handleScroll))}render(){let{children:e,navFooterConfig:t}=this.props,{isHidden:r}=this.state,i=!(null!=t&&t.forceShow)&&r;return e({isHidden:i,updateHiddenState:this.updateHiddenState})}}},48714:(e,t,r)=>{r.d(t,{Se:()=>g,iw:()=>v,gV:()=>f,G3:()=>y,Gj:()=>b,Jd:()=>h,$3:()=>m});var i=r(56641),n=r(231486),l=r(226198),o=r(186656),a=r(250059);let s=e=>"string"!=typeof e&&e?e.state:null;var d=r(643913),c=r(547239),u=r(508847),_=r(579164),p=r(333155);let h=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},f=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),m=({location:e,pinId:t,surface:r})=>!!r&&!p.ZF.includes(r)||e.pathname.includes(t),g=(e,t)=>{var r,i;let o=Math.round(1e3*Math.random())+"",a=Math.round(1e3*Math.random())+"";n.t8((0,l.GS)(o),a);let s={token:`${o}-${a}`,url:e,...t&&!t.params?t.queryParams:(null==t?void 0:t.params)&&{pin:null!==(r=t.params.pinId)&&void 0!==r?r:void 0,isThirdPartyAd:null!==(i=t.params.isThirdPartyAd)&&void 0!==i?i:void 0,csr:t.params.csrId&&!t.params.pinId?t.params.csrId:void 0,client_tracking_params:t.params.clientTrackingParams,aux_data:t.params.auxData?JSON.stringify(t.params.auxData):void 0}};return`/offsite/?${(0,d.Z)(s)}`},b=(e,t)=>{(0,i.Z)(g(e,t),!0,null==t?void 0:t.features)},v=async({clientTrackingParams:e,href:t,isMounted:r,pinId:i,spamCheckCallback:n})=>{let l=await (0,o.Z)({url:"/v3/offsite/",data:{check_only:!0,client_tracking_params:e,pin_id:i,url:t}});if(!l.resource_response.error&&r){let e=l.resource_response.data||{},{message:t,redirect_status:r,url:i}=e,o=["blocked","suspicious","porn"].includes(r);n({blocked:o,message:t,redirectStatus:r,sanitized_url:i})}},y=({event:e,onHistoryChange:t,href:r,history:n,target:l})=>{let o=(0,a.Z)(r),d=s(r),p=(0,c.Z)(o);p===_.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===l?(0,i.Z)(o,"blank"===l):n&&p===_.Z.SAME_ORIGIN&&(n.push((0,u.Z)({url:o}),null!=d?d:{}),t&&t({event:e}))}},287072:(e,t,r)=>{r.d(t,{Z:()=>_});var i=r(667294),n=r(616550),l=r(768559),o=r(48714),a=r(188335),s=r(250059),d=r(149230),c=r(108234),u=r(67347);function _(e){var t,r,_;let{externalData:p,href:h,onHistoryChange:f,target:m}=e,[g,b]=(0,i.useState)(null),[v,y]=(0,i.useState)(!1),x=(0,n.useHistory)(),w=(0,n.useLocation)(),P=(0,s.Z)(h),S=(0,d.Z)({url:P}),{showWarning:A}=null!==(t=(0,c.s)())&&void 0!==t?t:{},{pin:k,surface:E}=p||{},j=k?(0,l.Z)({boardUrl:null===(r=k.board)||void 0===r?void 0:r.url,location:w,pinId:k.entityId,pinnerUserName:null===(_=k.pinner)||void 0===_?void 0:_.username,storyPinDataId:k.storyPinDataId,trackingParams:k.trackingParams,trackingParamsMap:k.trackingParamsMap}):null,I=(0,a.Z)();return(0,i.useEffect)(()=>(y(!0),()=>{y(!1)}),[]),(0,i.useEffect)(()=>{S&&k&&null===g&&v&&(!k.promoter||k.isDownstreamPromotion)&&(0,o.$3)({location:w,pinId:k.entityId,surface:E})&&(0,o.iw)({clientTrackingParams:j,isMounted:v,pinId:k.entityId,spamCheckCallback:e=>b(e),href:P})},[j,k,E,P,S,v,w,g]),({event:e})=>{if(!(0,o.gV)({isOffsiteUrl:S,event:e})){if(e.preventDefault(),!h||"string"==typeof h&&h.startsWith("#")){(0,u.nP)("link_navigation_empty_href",{sampleRate:1,tags:{route:w.pathname,href:h}});return}if(S||null!=p&&p.dangerouslyForceOffsiteUrl){var t;I({auxData:null==p?void 0:p.auxData,clientTrackingParams:j,pin:(null==p?void 0:p.pin)&&{attributionSourceId:p.pin.attributionSourceId,campaignId:p.pin.campaignId,isPromoted:p.pin.isPromoted,pinPromotionId:p.pin.pinPromotionId,isThirdPartyAd:p.pin.isThirdPartyAd,advertiserId:p.pin.advertiserId},pinId:null==p?void 0:null===(t=p.pin)||void 0===t?void 0:t.entityId,queryParams:null==p?void 0:p.queryParams,showWarning:A,spamCheck:g,url:P})}else(0,o.G3)({event:e,href:h,history:x,onHistoryChange:f,target:"blank"===m?"blank":null})}}}},188335:(e,t,r)=>{r.d(t,{Z:()=>p});var i=r(983722),n=r(619937),l=r(337815),o=r(366284),a=r(407043),s=r(48714),d=r(43760);let c=(e,t,r)=>{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(n.$N.ATTRIBUTION_SOURCE_ID,e),i.setAttribute(n.$N.ATTRIBUTE_DESTINATION,r),i.setAttribute(n.$N.ATTRIBUTE_ON,r),i.click()},u=(e,t,r,i,o)=>{let a=(0,l.m_)(e,r,!0,i,o),s=document.createElement("a");s.setAttribute("href",t),s.setAttribute("target","_blank"),s.setAttribute("rel","noopener nofollow noreferrer"),s.style.cursor="pointer",s.style.display="block",s.setAttribute(n.NR.SOURCE,a),s.click()},_=()=>{let{logContextEvent:e}=(0,a.v)();return({attributionSourceId:t,auxData:r,campaignId:n,clientTrackingParams:l,href:a,isPromoted:d,pinId:_,pinPromotionId:p,isThirdPartyAd:h,advertiserId:f})=>{var m,g,b;if(!d)return!1;let v=(0,i.Z)(),y=(0,s.Se)(a,{params:{pinId:_,csrId:null,clientTrackingParams:l,auxData:r,isThirdPartyAd:h}}),x=null!==(m=null==v?void 0:v.userAgent.browserName)&&void 0!==m?m:"";if((0,o.G6)(x)){let{group:r}=null!==(g=null==v?void 0:v.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==g?g:{},i=null!=v&&v.userAgent.browserVersion?v.userAgent.browserVersion:"0.0",o=parseFloat(i.split(".")[0]+"."+i.split(".")[1]);if(t&&o>=14.1&&["enabled_safari"].includes(r))return c(t,y,a),e({event_type:101,clientTrackingParams:l,object_id_str:_||"",aux_data:{pin_id:_||"",click_measurement_ppid:p||"",click_measurement_campaign_id:n||"",is_pcm:!0,attribution_source_id:t,page_url:a}}),!0}else if((0,o.i7)(x)&&null!==(b=window.document.featurePolicy)&&void 0!==b&&b.allowsFeature("attribution-reporting"))return u(t,y,a,n,f),e({event_type:101,clientTrackingParams:l,object_id_str:_||"",aux_data:{pin_id:_||"",click_measurement_ppid:p||"",click_measurement_campaign_id:n||"",is_arapi:!0,attribution_source_id:t,page_url:a}}),!0;return!1}},p=e=>{let t=_();return({auxData:r,clientTrackingParams:i,pin:n,pinId:l,queryParams:o,showWarning:a,spamCheck:c,url:u})=>{if("undefined"!=typeof window&&window.Windows){(0,d.Z)(u,{clientTrackingParams:i,pinId:l,hasPin:!!n,auxData:r,isThirdPartyAd:null==n?void 0:n.isThirdPartyAd});return}if(!n&&!(null!=e&&e.isFromClickthroughLink)){(0,s.Gj)(u,o?{queryParams:o}:{params:{pinId:l}});return}if(null!=c&&c.blocked){null==a||a(c);return}n&&t({attributionSourceId:n.attributionSourceId,auxData:r,campaignId:n.campaignId?String(n.campaignId):null,clientTrackingParams:i,href:u,isPromoted:n.isPromoted,pinId:l,pinPromotionId:n.pinPromotionId?String(n.pinPromotionId):null,isThirdPartyAd:n.isThirdPartyAd,advertiserId:n.advertiserId?n.advertiserId:null})||(0,s.Gj)(u,{params:{clientTrackingParams:i,auxData:r,pinId:l,isThirdPartyAd:null==n?void 0:n.isThirdPartyAd}})}}},767546:(e,t,r)=>{r.d(t,{Z:()=>function e(t,r,i=()=>void 0){let n=i(t,r);return void 0!==n?n:void 0===r?t:Array.isArray(t)&&Array.isArray(r)?r.reduce((t,n,l)=>(t[l]=e(t[l],r[l],i),t),[...t]):t&&"object"==typeof t&&r&&"object"==typeof r?Object.keys(r).reduce((t,n)=>(t[n]=e(t[n],r[n],i),t),{...t}):r}})},992750:(e,t,r)=>{r.d(t,{eg:()=>o,kt:()=>f,rw:()=>p,fs:()=>c,eK:()=>u,Ly:()=>_,BY:()=>h,bN:()=>m,RC:()=>s,EU:()=>d});let i=/\s\s+/g,n=e=>e.replace(i," ");var l=r(883561);let o=Object.freeze(new Set(["sensitive_raw_pin_text","is_sensitive_rich_pin_description","is_sensitive_rich_pin_title","is_sensitive_board_title"])),a=e=>"string"==typeof e?e:"",s=({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:r,richMetadataTitle:i,storyPinDataId:n,storyPinDataMetadataPinTitle:l})=>{let o=l||e,a=d(t,200);return a||r||i||(n&&o?o:null)},u=e=>{let{richSummaryDisplayName:t}=e,r=e.pinJoinVisualAnnotation||[],i=e.pinJoinAnnotationsWithLinks||{},o=e.richMetadataDescription||"",a=e.closeupUnifiedDescription||"",s=r.map(e=>(i||{})[e]||{name:e,url:""}),d="",c=(t||"").toLocaleLowerCase().trim(),u=o.toLocaleLowerCase().trim(),_=a.toLocaleLowerCase().trim();return a&&a.length>3&&_!==c?d=a:o&&o.length>3&&u!==c&&(d=o),d&&(d=n((0,l.ZP)(d,496)).trim()),{description:d,annotationsWithLinks:s}},_=({pinTitle:e,gridTitle:t,richSummaryDisplayName:r,richMetadataTitle:i,storyPinDataId:n,storyPinDataMetadataPinTitle:l,pinJoinVisualAnnotation:a,seoNoindexReason:s,seoTitle:d})=>o.has(null!=s?s:"")?d:c({pinTitle:e,gridTitle:t,richSummaryDisplayName:r,richMetadataTitle:i,storyPinDataId:n,storyPinDataMetadataPinTitle:l})||(null==a?void 0:a[0])||e,p=(e,t,r,i,n)=>{let l=a(e).trim(),o=(e,t)=>t&&t.length>0?`${e} ${t.join(", ")}`:e;return i&&i.trim().length?o(i.trim(),r):n&&n.trim().length?n.trim():l?o(l,r):r?r.join(", "):""},h=e=>`/pin/${e}/`,f=(e,t)=>{let r=`Pinterest video from ${t}: `.concat(e);return""===t?e:r},m=({pinId:e,seoUrl:t})=>t&&"string"==typeof t?t:h(e)},561195:(e,t,r)=>{r.d(t,{A:()=>o,Z:()=>a});var i=r(667294),n=r(883119),l=r(785893);let o=({fill:e,width:t})=>{let r="half"===e?(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(n.xu,{position:"absolute",children:(0,l.jsx)(n.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:12})}),(0,l.jsx)(n.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:12})]}):(0,l.jsx)(n.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:12});return(0,l.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock","data-test-id":`rating-star-${e}`,children:r})};function a({max_rating:e,rating:t,width:r}){var i;let a=[],s=parseFloat(e)||5,d=5*(i=(i=parseFloat(t)||0)<=s?i:s)/s;if(Number.isNaN(d))return null;let c=Math.floor(d),u=d-c;return[...Array(c).keys()].forEach(e=>a.push((0,l.jsx)(o,{fill:"full",width:r},e))),u>=.75?a.push((0,l.jsx)(o,{fill:"full",width:r},a.length)):u>=.25&&a.push((0,l.jsx)(o,{fill:"half",width:r},a.length)),[...Array(5-a.length).keys()].forEach(()=>a.push((0,l.jsx)(o,{fill:"empty",width:r},a.length))),(0,l.jsx)(n.xu,{position:"relative",display:"inlineBlock",width:15*s,children:a})}},220306:(e,t,r)=>{r.d(t,{Z:()=>_});var i=r(667294),n=r(883119),l=r(485710),o=r(288889),a=r(319530),s=r(898781),d=r(785893);function c({category:e,ingredients:t,textSize:r="300"}){return(0,d.jsxs)(n.xu,{children:[e&&(0,d.jsx)(n.xu,{children:(0,d.jsx)(n.xv,{weight:"bold",size:r,children:e})}),(0,d.jsx)("ul",{children:t.map((e,t)=>(0,d.jsx)("li",{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",children:(0,d.jsx)(n.xu,{marginTop:1,children:(0,d.jsxs)(n.xv,{size:r,children:["• ",e.amt||null," ",e.name]})})},t))})]})}var u=r(134185);function _({recipeProps:e,marginOverrides:t}){let r=(0,s.ZP)(),{image:_,name:p,categorizedIngredients:h}=e.recipe,f=r._('Ingredients', 'Ingredients title and count in closeup recipe description', 'Ingredients title and count in closeup recipe description');if(h&&h.length){let e=[];h.forEach(t=>e.push(t.ingredients))}return(0,d.jsx)(n.xu,{marginTop:8,children:(0,d.jsxs)(u.Z,{itemScope:!0,itemType:"https://schema.org/Recipe",children:[(0,d.jsx)("meta",{content:p,itemProp:"name"}),(0,d.jsx)("meta",{content:_,itemProp:"image"}),(0,d.jsx)(l.Z,{heading:f,children:(0,d.jsx)(a.Z,{children:(0,d.jsx)(n.xu,{marginTop:4,children:h.map(({category:e,ingredients:r},l)=>{let a=`ingredient-${l}`;return(0,d.jsx)(i.Fragment,{children:(0,d.jsx)(n.xu,{marginBottom:(null==t?void 0:t.ingredientMarginBottom)||4,children:(0,d.jsx)(c,{category:e,ingredients:r,textSize:o.n})})},a)})})})})]})})}},784590:(e,t,r)=>{r.d(t,{Z:()=>_});var i=r(667294),n=r(702664),l=r(616550),o=r(886858),a=r(780280),s=r(248327),d=r(718368);let c={},u=({httpStatus:e})=>!e||e>=500;function _(e){let{enabledRouteRefresh:t,__unstableEnableSuspenseSupport:r,headers:_,name:p,noCache:h,options:f,schema:m}=null!=e?e:{name:"DisabledResource",options:null},g=!e,b=(0,n.useDispatch)(),v=(0,o.Z)(f),y=(0,i.useRef)(null),x=(0,i.useRef)(),w=(0,l.useHistory)(),P=w&&"POP"!==w.action,S=e=>(e[p]||c)[v]||c,A=(0,n.useSelector)(({resources:e})=>S(e).nextBookmark),k=(0,n.useSelector)(({resources:e})=>S(e).data),E=(0,n.useSelector)(({resources:e})=>S(e).auxData),j=(0,n.useSelector)(({resources:e})=>S(e).error),I=(0,n.useSelector)(({resources:e})=>!!S(e).fetching),T="object"==typeof E&&"string"==typeof(null==E?void 0:E.pagination_group)?E.pagination_group:void 0,O=!!j||void 0!==k,C=O&&!I&&A===d.q,R=!!(O&&t&&P&&!g),[L,Z]=(0,i.useState)(R),z=(0,i.useCallback)((e,t)=>{y.current=b((0,s.U)(p,{options:f,schema:m,bookmark:e,headers:_,paginationGroup:t}))},[b,p,v,m,_]),D=()=>{y.current=b((0,s.b)(p,{options:f,schema:m,headers:_}))},{isBot:N}=(0,a.B)(),U=()=>{if(!g&&x.current!==v){let e=void 0===x.current;x.current=v,!O&&!I||e&&j&&u(j)?z():(!N&&h||R)&&D()}};(0,i.useEffect)(()=>{r||U()}),r&&U();let F=(0,i.useCallback)(()=>{g||(D(),Z(!0))},[g,s.b,p,v,_,Z]),M=(0,i.useCallback)(()=>{!A||C||I||g||z(A,T)},[g,z,A,C,I,T]);if(y.current){if(O&&!I)y.current=null;else if(r)throw y.current}let B=(0,i.useRef)({auxData:void 0,data:void 0,error:void 0,fetchMore:M,isAtEnd:!1,isFetching:!1,isLoaded:!1,isRefreshing:!1,nextBookmark:void 0,refresh:F}),H={auxData:E,data:k,error:j,fetchMore:M,isAtEnd:C,isFetching:I,isLoaded:O,isRefreshing:L,nextBookmark:A,refresh:F};return(0,n.shallowEqual)(H,B.current)||(L&&(B.current.data||!R)&&!(0,n.shallowEqual)(H.data,B.current.data)&&(H.isRefreshing=!1,Z(!1)),B.current=H),B.current}},134185:(e,t,r)=>{r.d(t,{Z:()=>n});var i=r(785893);let n=e=>{let t=e.itemType?{itemScope:!0,itemType:e.itemType}:{};return(0,i.jsx)("div",{"data-test-id":"rich-pin-information",...t,children:e.children||null})}},995228:(e,t,r)=>{r.d(t,{Z:()=>l});var i=r(667294),n=r(785893);function l({children:e,fallback:t}){return(0,n.jsx)(i.Suspense,{fallback:t||null,children:e})}},595371:(e,t,r)=>{r.d(t,{i:()=>i});let i={AC:"ac",AUTOCOMPLETE:"autocomplete",DIRECT_NAVIGATION:"direct_navigation",FILTER:"filter",GUIDED_SEARCH_ENTRY:"guided_search_entry",GUIDED_SEARCH_LANDING:"guided_search_landing",HASHTAG_CLOSEUP:"hashtag_closeup",HASHTAG_PINREP:"hashtag_pinrep",HOMEFEED_BUBBLE:"homefeed_bubble",HUB_PAGE:"hub_page",IMAGE_ONLY_ATTRIBUTION:"image_only_attribution",LANDING_PAGE_STORY:"landing_page_story",NO_RESULTS_SEARCH_STORY:"no_results_search_story",PRODUCT:"product",REMOVE:"remove",RS:"rs",SITELINKS_SEARCHBOX:"sitelinks_searchbox",SLP_REC_CURATED:"slp_rec_curated",SLP_REC_TRENDING:"slp_rec_trending",SRS:"srs",STRUCTURED_GUIDE:"structured_guide",TRENDING:"trending",TYPED:"typed",TYPO_AUTO_ORIGINAL:"typo_auto_original",TYPO_SUGGESTION:"typo_suggestion",UNKNOWN:"Unknown",VANILLA_GUIDE:"guide",VIDEO:"video"}},883561:(e,t,r)=>{r.d(t,{ZP:()=>i});function i(e,t=80,r="…",i=!1){let n;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||i)n=e.substring(0,t);else{let r=e.lastIndexOf(" ",t);n=e.substring(0,r)}return(n=n.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""))+r}},430323:(e,t,r)=>{r.d(t,{Z:()=>b});var i=r(667294),n=r(722767),l=r(558068),o=r(780280),a=r(239745),s=r(245474),d=r(425288);let{Provider:c,useMaybeHook:u}=(0,d.Z)("timeSpentContext");var _=r(790123),p=r(350118),h=r(785893);function f(e,t,r){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class m extends i.Component{constructor(e){super(e),f(this,"componentWillUnmount",()=>{this.unregisterComponent()}),f(this,"getContext",()=>{let{clientTrackingParams:e,component:t,element:r,objectId:i,timeSpentContext:n,view:l,viewParameter:o}=this.props;return{view:l||(null==n?void 0:n.view),viewParameter:o||(null==n?void 0:n.viewParameter),component:t||(null==n?void 0:n.component),element:r,objectId:i||(null==n?void 0:n.objectId),clientTrackingParams:e||(null==n?void 0:n.clientTrackingParams),getParentUuid:()=>this.getUuid(),getGrandparentUuid:()=>this.getParentId()}}),f(this,"getLoggerContext",()=>{let e={...this.getContext()};return delete e.getParentUuid,e}),f(this,"getParentId",()=>{let{timeSpentContext:e,shouldUseGrandparentId:t=!1}=this.props;if(t&&e&&e.getGrandparentUuid){let t=e.getGrandparentUuid();if(t)return t}return e&&e.getParentUuid?e.getParentUuid():void 0}),f(this,"getUuid",()=>this.state.timedPair?this.state.timedPair.uuid:void 0),f(this,"getTimedPair",()=>this.state.timedPair),f(this,"setTimedPair",e=>this.setState({timedPair:e})),f(this,"isRegistered",!1),f(this,"registerComponent",()=>{this.props.timeSpentManager.registerComponent(this),this.isRegistered=!0}),f(this,"unregisterComponent",()=>{this.isRegistered&&(this.props.timeSpentManager.unregisterComponent(this),this.isRegistered=!1)}),f(this,"handleVisibilityChange",e=>{let{intersectionRatio:t}=e[0],{bottom:r,left:i,right:n,top:l}=e[0].intersectionRect;t>0?this.registerComponent():0===t&&(0===r&&0===i&&0===n&&0===l?this.unregisterComponent():this.registerComponent())}),this.state={timedPair:new s.Z(this.getLoggerContext())}}componentDidUpdate(e){!this.isRegistered||e.view===this.props.view&&e.viewParameter===this.props.viewParameter&&e.component===this.props.component&&e.element===this.props.element&&e.objectId===this.props.objectId&&(0,a.Z)(e.auxData,this.props.auxData)&&(0,a.Z)(e.viewData,this.props.viewData)||(this.unregisterComponent(),setTimeout(this.registerComponent))}render(){let{children:e}=this.props;return(0,h.jsx)(c,{value:this.getContext(),children:(0,h.jsx)(n.Z,{options:{threshold:0},onVisibilityChange:this.handleVisibilityChange,children:i.Children.only(e)})})}}function g(e){var t;let r=(0,l.Hv)(),n=u(),a=(0,_.w)(),s=(0,p.H0)(),{requestIdentifier:d=""}=(0,o.B)(),c={app_instance_id:d.slice(0,8),...null!==(t=e.auxData)&&void 0!==t?t:{}};return(0,i.useEffect)(()=>{null==a||a.setHistoryStackContext(r)},[r,a]),(0,i.useEffect)(()=>{null==a||a.setPins(null!=s?s:{})},[s,a]),a?(0,h.jsx)(m,{...e,auxData:c,timeSpentContext:n,timeSpentManager:a,children:e.children}):e.children}g.displayName="TimeSpent";let b=g},948618:(e,t,r)=>{r.d(t,{Z:()=>l});var i=r(883119),n=r(785893);function l({ariaHidden:e=!1,color:t="darkGray",size:r}){return(0,n.jsx)("span",{"aria-hidden":e,style:{padding:"0 4px"},children:(0,n.jsx)(i.xv,{color:t,inline:!0,size:null!=r?r:"200",children:"\xb7"})})}},250059:(e,t,r)=>{r.d(t,{Z:()=>i});let i=e=>e?"string"==typeof e?e:e.pathname?e.pathname:"":""},149230:(e,t,r)=>{r.d(t,{Z:()=>n});var i=r(954931);let n=({url:e})=>!!(e&&e.match(/^https{0,1}:\/\//)&&!(0,i.Z)(e))},508847:(e,t,r)=>{r.d(t,{Z:()=>l});let i=(e,t)=>0===e.lastIndexOf(t,0);var n=r(567831);let l=({url:e})=>{let t=(0,n.Z)("/");return i(e,t)?e.substr(t.length-1):e}},43760:(e,t,r)=>{r.d(t,{Z:()=>l});var i=r(186656),n=r(48714);function l(e,t){let{auxData:r,clientTrackingParams:l,hasPin:o,pinId:a,isThirdPartyAd:s}=t||{},d={pin_id:a,check_only:!0,client_tracking_params:o?l:void 0,url:e,aux_data:JSON.stringify(r)};s&&(d.third_party_ad=a,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:r,url:i}=e.data,n=["blocked","suspicious","porn"].includes(r);if(!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,n.Gj)(e,{params:o?{pinId:a,clientTrackingParams:l,auxData:r,isThirdPartyAd:s}:{pinId:a}})})}},965900:(e,t,r)=>{r.d(t,{g:()=>_,I:()=>u});var i=r(667294),n=r(425288),l=r(567450),o=r(41861);let a={appInFocus:!0,footerPlusButtonVisible:!0,isAutoplay:!1,showTypeaheadOverlay:!1,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,organicVideosAutoplaying:{},promotedVideosAutoplaying:{}},viewportSize:"lg"},s=(e=a,t)=>{if("TOGGLE_TYPEAHEAD_OVERLAY"===t.type)return{...e,showTypeaheadOverlay:t.payload};if("SET_CURRENT_VIDEO"===t.type){let{payload:r}=t,{pinId:i,isPromoted:n,currentTime:l}=r,{videosAutoplaying:a}=e,{currentlyPlayingOrganicVideoId:s,promotedVideosAutoplaying:d,organicVideosAutoplaying:c}=a,u=(0,o.Z)(d),_=(0,o.Z)(c);return!n&&s?e:(n?u[i]={pinId:i,currentTime:l,paused:!1}:_[i]={pinId:i,currentTime:l,paused:!1},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:n?s:i,promotedVideosAutoplaying:u,organicVideosAutoplaying:_}})}if("SET_IS_AUTOPLAY"===t.type)return{...e,isAutoplay:t.payload};if("PAUSE_CURRENT_VIDEO"===t.type){let{payload:r}=t,{pinId:i,isPromoted:n,currentTime:l}=r,{videosAutoplaying:a}=e,{promotedVideosAutoplaying:s,organicVideosAutoplaying:d}=a,c=(0,o.Z)(s),u=(0,o.Z)(d);return n?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)return{...e,appInFocus:t.payload};if("SET_VIEWPORT_SIZE"===t.type)return{...e,viewportSize:t.payload};if("SET_FOOTER_VISIBILITY_STATE"===t.type)return{...e,footerPlusButtonVisible:t.payload};return e};var d=r(785893);let{Provider:c,useHook:u}=(0,n.Z)("AppUI");function _({children:e}){let[t,r]=(0,i.useReducer)(s,a),n=(0,i.useCallback)(e=>r({type:"PAUSE_CURRENT_VIDEO",payload:e}),[]),o=(0,i.useCallback)(e=>r({type:"SET_APP_FOCUS_STATE",payload:e}),[]),u=(0,i.useCallback)(e=>r({type:"SET_CURRENT_VIDEO",payload:e}),[]),_=(0,i.useCallback)(e=>r({type:"SET_FOOTER_VISIBILITY_STATE",payload:e}),[]),p=(0,i.useCallback)(e=>r({type:"SET_IS_AUTOPLAY",payload:e}),[]),h=(0,i.useCallback)(e=>r({type:"SET_VIEWPORT_SIZE",payload:e}),[]),f=(0,i.useCallback)(e=>r({type:"TOGGLE_TYPEAHEAD_OVERLAY",payload:e}),[]),m=(0,i.useMemo)(()=>({pauseAutoplay:n,setCurrentVideo:u,setFooterPlusButtonVisible:_,setIsAutoplay:p,setViewportSize:h,toggleTypeaheadOverlay:f,setAppFocusState:o,appUI:t}),[n,u,_,p,h,f,o,t]);return(0,i.useEffect)(()=>{l.Z.onSessionResume(()=>{o(!0)}).onSessionPause(()=>{o(!1)})},[o]),(0,d.jsx)(c,{value:m,children:e})}},333155:(e,t,r)=>{r.d(t,{UP:()=>a,Wv:()=>n,ZF:()=>i,zI:()=>l,zl:()=>o});let i=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],n=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],l=[...n,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],o=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingGridShippedMetadataWithVisitButton"],a=["BaseBoardPinGrid"]},815613:(e,t,r)=>{r.d(t,{Z:()=>A}),r(167912);var i,n=r(883119),l=r(112690),o=r(357998),a=r(898781),s=r(773285),d=r(667679),c=r(867820),u=r(52022),_=r(343341),p=r(50286),h=r(829407),f=r(19121),m=r(945698),g=r(927383),b=r(698330),v=r(201155),y=r(640064),x=r(785893);let w=({children:e,pulsar:t,testId:r})=>t.show?(0,x.jsx)(n.xu,{position:"relative","data-test-id":r,children:(0,x.jsxs)(n.iP,{tapStyle:"none",onTap:t.onClick,children:[(0,x.jsx)(n.xu,{position:"absolute",marginTop:-5,dangerouslySetInlineStyle:{__style:{marginLeft:"-75px"}},children:e}),(0,x.jsx)(n.xu,{position:"absolute",marginTop:-12,dangerouslySetInlineStyle:{__style:{marginLeft:"-83px"}},children:(0,x.jsx)(n.o3,{})})]})}):(0,x.jsx)(n.xu,{"data-test-id":r,children:e}),P=void 0!==i?i:i=r(84928),S=e=>({linkDomain:e.link_domain&&{officialUser:e.link_domain.official_user&&{imageMediumUrl:e.link_domain.official_user.image_medium_url,username:e.link_domain.official_user.username}},nativeCreator:e.native_creator&&{imageMediumUrl:e.native_creator.image_medium_url,username:e.native_creator.username},originPinner:e.origin_pinner&&{imageMediumUrl:e.origin_pinner.image_medium_url,username:e.origin_pinner.username},pinner:e.pinner&&{imageMediumUrl:e.pinner.image_medium_url,username:e.pinner.username}});function A({auxData:e,disabled:t,disableLog:r,followEventType:i,id:A,inline:k,invertColors:E,isFollowed:j,isIdeaPin:I,isLegoEnabled:T,isSecondaryButton:O,isUserFollowButton:C,isUserMe:R,onFollow:L,onUnfollow:Z,pinKey:z,shouldUseLegoColors:D,showPulsar:N,size:U,textType:F="FollowFollowing",unfollowEventType:M,viewParameter:B,viewType:H,clientTrackingParams:G}){let V;let W=(0,a.ZP)(),Y=(0,p.HG)(),{showToast:$}=(0,_.F9)(),K=(0,u.Z)(),X=(0,l.Z)(),q=(0,d.Z)(),{checkExperiment:J}=(0,s.F)(),Q=(0,g.Z)(),ee=(0,f.Z)(),et=ee&&ee.isAuth,{unauthFollowUserId:er,setUnauthFollowUserId:ei}=(0,y.f)(),en=(0,b.mN)()(A),el=en&&{imageMediumUrl:en.image_medium_url,username:en.username},{data:eo}=(0,o.Q)(P,z,{useLegacyAdapter:S}),ea=null==eo?void 0:eo.linkDomain,es=null==eo?void 0:eo.nativeCreator,ed=null==eo?void 0:eo.originPinner,ec=null==eo?void 0:eo.pinner;V=es||(ea?ea.officialUser:ed||ec);let eu=null!=el?el:V;(0,h.Z)(()=>{!Y&&et&&er&&A&&er===A&&L(A)});let e_=Q({fn:()=>{et?j?(Z(A),r||X({event_type:M,view_type:H,view_parameter:B,object_id_str:A,aux_data:e,clientTrackingParams:G})):(L(A),C&&$(({hideToast:e})=>{if(!eu)return null;let t=eu.username?`/${eu.username}/`:"";return(0,x.jsx)(v.Z,{handleHide:e,text:W._('Following! Their created Pins will show up in your home feed!', 'followButton.follow.informationalToastText', 'Text explaining that a creator\'s Pins will show up in home feed after follow'),userId:A,href:t,imageUrl:eu.imageMediumUrl})}),r||X({event_type:i,view_type:H,view_parameter:B,object_id_str:A,aux_data:e,clientTrackingParams:G})):((0,c.My)(`mweb_unauth_follow_button.tap.${String(H)}`),5===H&&26===i&&(0,c.My)("mweb_unauth_board_page_follow_button.tap"),(0,c.NC)(j?"press_profile_unfollow":"press_profile_follow"),K({action:"click",item:"board-follow-button"}),q({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:I?"click_idea_pin_follow":"click_follow",desktopOptions:{modalType:"signup",modalOptions:Y&&J("pcons_dweb_contextual_follow_modal").anyEnabled?{source:"followButton",container:"follow"}:void 0},mobileOptions:!Y&&J("pcons_mweb_contextual_follow_modal").anyEnabled?{headingType:"follow"}:void 0}),Y||ei(null!=A?A:""),(0,c.NC)("clickthrough"))},modalHeader:(0,m.N4)({i18n:W,toFollow:!j})}),ep=!j&&!!N,eh=()=>{if(R)return W._('That\'s you!', 'Follow button is disabled because this is you', 'Follow button is disabled because this is you');if("AddRemove"===F)return j?W._('Remove', 'unfollowButton.removeText', 'Follow button label - followed state, so user can click to "remove" the follow'):W._('Add', 'followButton.addText', 'Follow button label - unfollowed state, so user can click to "add" the follow');let e="FollowUnfollow"===F?W._('Unfollow', 'unfollowButton.unfollowText', 'Follow button label - followed state, so user can click to "unfollow" the follow'):W._('Following', 'Follow button label - followed state', 'Follow button label - followed state');return j?e:W._('Follow', 'Follow button label - unfollowed state', 'Follow button label - unfollowed state')};return(0,x.jsx)(w,{pulsar:ep?{show:!0,onClick:e_}:{show:!1},testId:R||j?"board-unfollow-button":"board-follow-button",children:(0,x.jsx)(n.zx,{color:D||"AddRemove"===F||!T&&O||j?"gray":"red",disabled:R||t,fullWidth:k,onClick:ep?void 0:({event:t})=>{t.preventDefault(),t.stopPropagation(),r||X({event_type:101,component:13672,element:11951,object_id_str:A,view_type:H,view_parameter:B,aux_data:e,clientTrackingParams:G}),e_()},selected:E?!j:D&&j||!!j&&O,size:U,text:eh(),accessibilityLabel:eh()})})}},698330:(e,t,r)=>{r.d(t,{Tt:()=>u,cm:()=>c,kW:()=>s,kY:()=>_,mN:()=>d});var i=r(702664),n=r(425288),l=r(19121),o=r(785893);let{Provider:a,useHook:s}=(0,n.Z)("Users");function d(){let e=s();return t=>e[t]}function c(){let e=s();return t=>{let r=Object.keys(e).find(r=>e[r].username===t);return e[null!=r?r:""]}}function u(){let{id:e}=(0,l.Z)(),t=s();return t[null!=e?e:""]}function _({children:e}){let t=(0,i.useSelector)(({users:e})=>e,i.shallowEqual);return(0,o.jsx)(a,{value:t,children:e})}},108234:(e,t,r)=>{r.d(t,{Z:()=>m,s:()=>f});var i=r(667294),n=r(425288),l=r(608575),o=r(883119),a=r(121151),s=r(898781),d=r(349700),c=r(785893);let u=()=>{var e;let t=(0,s.ZP)(),{dismissWarning:r}=null!==(e=f())&&void 0!==e?e:{};return(0,c.jsx)(o.xu,{paddingX:3,children:(0,c.jsx)(o.zx,{fullWidth:!0,color:"red",onClick:r,text:t._('Okay', 'Dismiss a modal stating that clicking through to a link has been blocked', 'Dismiss a modal stating that clicking through to a link has been blocked')})})},_=()=>{let e=(0,s.ZP)();return(0,c.jsx)(o.xv,{inline:!0,weight:"bold",children:(0,c.jsx)(o.rU,{target:"blank",href:"https://policy.pinterest.com/community-guidelines#section-spam",display:"inlineBlock",underline:"hover",children:e._('Learn more', 'Link text leading to policy website', 'Link text leading to policy website')})})},p=({message:e,sanitized_url:t})=>{var r;let i=(0,s.ZP)(),{dismissWarning:n}=null!==(r=f())&&void 0!==r?r:{};return(0,c.jsx)(a.ZP,{accessibilityModalLabel:i._('We have blocked this link', 'Modal label when clicking a spammy link', 'Modal label when clicking a spammy link'),onDismiss:n,heading:i._('Heads up!', 'Modal heading when clicking through to a link has been blocked', 'Modal heading when clicking through to a link has been blocked'),footer:(0,c.jsx)(u,{}),children:(0,c.jsxs)(o.xu,{padding:6,children:[(0,c.jsx)(o.xv,{children:(0,d.nk)("{{ message }} {{ learnMore }}",{message:e,learnMore:(0,c.jsx)(_,{},"learnMoreLink")})}),(0,c.jsxs)(o.xu,{alignItems:"center",display:"flex",marginTop:4,children:[(0,c.jsx)(o.xu,{marginEnd:3,children:(0,c.jsx)(o.JO,{accessibilityLabel:i._('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)(o.xv,{inline:!0,lineClamp:1,weight:"bold",children:l.parse(t).hostname})]})]})})},{Provider:h,useMaybeHook:f}=(0,n.Z)("SpammyClickthrough");function m({children:e}){let[t,r]=(0,i.useState)(null),n=(0,i.useCallback)(()=>{r(null)},[r]),l=(0,i.useCallback)(e=>{r(e)},[r]),o=(0,i.useMemo)(()=>({dismissWarning:n,showWarning:l}),[n,l]);return(0,c.jsxs)(h,{value:o,children:[t&&(0,c.jsx)(p,{...t}),e]})}},640064:(e,t,r)=>{r.d(t,{f:()=>a,w:()=>s});var i=r(667294),n=r(425288),l=r(785893);let{Provider:o,useHook:a}=(0,n.Z)("Session");function s({children:e}){let[t,r]=(0,i.useState)(void 0),n=(0,i.useCallback)(()=>r(void 0),[]),a=(0,i.useMemo)(()=>({unauthFollowUserId:t,setUnauthFollowUserId:r,removeUnauthFollowUserId:n}),[t,n]);return(0,l.jsx)(o,{value:a,children:e})}},865607:(e,t,r)=>{r.d(t,{O:()=>d,Z:()=>c});var i=r(667294),n=r(883119),l=r(898781),o=r(966113),a=r(785893);let s={xs:12,sm:16,md:20,lg:24};function d({children:e}){let t=(0,l.ZP)();return(0,a.jsx)(n.u,{link:(0,a.jsx)(n.rU,{href:o.vBy,target:"blank",children:(0,a.jsx)(n.xv,{color:"inverse",size:"100",weight:"bold",children:t._('Learn more', 'verifiedBadge.tooltip.link', 'Learn more about Pinterest\'s Merchant Guidelines')})}),text:t._('This retailer meets Pinterest\'s Merchant Guidelines', 'merchantVerification.badge.tooltip', 'Badge indicating that a merchant or user is verified'),children:e})}function c({hasVerifiedIdentity:e,iconOnly:t,isVerifiedMerchant:r,showText:o,size:c}){let u=(0,l.ZP)(),_=(0,a.jsxs)(n.kC,{alignItems:"center",justifyContent:"start",children:[(0,a.jsx)(n.JO,{accessibilityLabel:u._('Merchant verification badge icon', 'merchantVerification.badge.icon', 'Badge indicating that a merchant or user is verified'),color:"shopping",icon:"workflow-status-ok",inline:!0,size:s[c]}),o&&(0,a.jsx)(n.xu,{marginStart:2,children:(0,a.jsx)(n.xv,{color:"shopping",inline:!0,weight:"bold",children:u._('Verified merchant', 'creator.header.verifiedMerchant', 'this merchant is a verified merchant')})})]});return(0,a.jsxs)(i.Fragment,{children:[r&&!t&&(0,a.jsx)(d,{children:_}),r&&t&&_,e&&!r&&(0,a.jsx)(n.JO,{accessibilityLabel:u._('Domain verification icon', 'domainVerification.badge.icon', 'Badge indicating that a merchant or user is verified'),color:"error",icon:"check-circle",size:s[c]})]})}},987318:(e,t,r)=>{r.d(t,{H:()=>l,o:()=>n});var i=r(425288);let{Provider:n,useHook:l}=(0,i.Z)("LimitedLogin")},945698:(e,t,r)=>{r.d(t,{N4:()=>l,Wh:()=>i,hr:()=>n});let i=e=>e._('Log in to continue', 'limitedLogin.modalHeader.default', 'Default title on mobile web limited login modal'),n=e=>e._('You\'re almost there! Log in to access all of Pinterest', 'loginModal.limitedLogin.subheader', 'Subheader text on personalized login modal/flyout to remind users to log in'),l=({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.')},461773:(e,t,r)=>{r.d(t,{KF:()=>c,ZN:()=>a,fv:()=>d,kE:()=>_,yA:()=>s});var i=r(214494),n=r(186656),l=r(90326);function o(e,t,r,n){return i.Z.create("UserFollowResource",{user_id:e,invite_code:n||void 0,aux_data:t?{pin_id:t}:void 0,client_tracking_params:r})}function a(e,t=null,r,i){return n=>{o(e,t,r,i).callCreate().catch(()=>n((0,l.P_)(e,!1))),n((0,l.P_)(e,!0))}}function s(e,t=null,r,i){return async n=>{n((0,l.P_)(e,!0)),await o(e,t,r,i).callCreate().catch(t=>{throw n((0,l.P_)(e,!1)),t})}}function d(e,t=null,r){return i=>{o(e,t,r).callDelete().catch(()=>i((0,l.P_)(e,!0))),i((0,l.P_)(e,!1))}}function c(e,t=null,r){return async i=>{i((0,l.P_)(e,!1)),await o(e,t,r).callDelete().catch(t=>{throw i((0,l.P_)(e,!0)),t})}}let u=(e,t)=>({type:"USER_BULK_FOLLOW",payload:{ids:e,value:t}}),_=e=>t=>{e.length>0&&((0,n.Z)({url:"/v3/users/follow/",method:"PUT",data:{followee_ids:e.join(",")}}).catch(()=>t(u(e,!1))),t(u(e,!0)))}},90326:(e,t,r)=>{r.d(t,{Ge:()=>d,JS:()=>o,OF:()=>y,P_:()=>a,Q_:()=>_,b8:()=>p,eR:()=>v,h2:()=>c,h6:()=>u});var i=r(214494),n=r(186656),l=r(735422);function o(e){return{type:"UPDATE_USER_PIN_COUNT",payload:e}}let a=(e,t)=>({type:"USER_FOLLOW",payload:{id:e,value:t}}),s=(e,t)=>({type:"USER_BLOCK",payload:{id:e,value:t}}),d=({id:e,orbacSubjectId:t,blockSource:r,blockContext:n,logContextEvent:l})=>async o=>{o(s(e,!0));let a=await i.Z.create("UserBlockResource",{blocked_user_id:e,orbac_subject_id:t,block_source:r,block_context:n}).callCreate().catch(()=>o(s(e,!1)));return l({event_type:54,object_id_str:e}),a},c=(e,t)=>async r=>{r(s(e,!1));let n=await i.Z.create("UserBlockResource",{blocked_user_id:e}).callDelete().catch(()=>r(s(e,!0)));return t({event_type:55,object_id_str:e}),n};function u(e){return{type:"UPDATE_USER_SCHEDULED_PIN_COUNT",payload:e}}let _=(e,t)=>()=>{let r=i.Z.create("UserStateResource",{state:e,value:t});return r.callCreate()},p=(e,t,r)=>(i,o)=>{(0,n.Z)({url:"/v3/users/me/",method:"POST"}).then(()=>{r({event_type:48,object_id_str:o().session.userId}),e(),(0,l.Dm)()},t)},h=e=>e>=200&&e<400,f=(e,t="150x150")=>e&&`https://i.pinimg.com/${t}/${e.substring(0,2)}/${e.substring(2,4)}/${e.substring(4,6)}/${e}.jpg`||"",m=async(e,t,r)=>{let n=await i.Z.create("VIPResource",{upload_ids:[e]}).callGet();if(n.resource_response.data[e]){let i=n.resource_response.data[e],{status:l,signature:o}=i;if("processing"===l||"registered"===l)setTimeout(async()=>{m(e,t,r)},5e3);else if("succeeded"===l){let e=f(o);t(e)}else r()}else r()},g=(e,t,r,n,l)=>{let o=new FormData;return o.append("img",e),i.Z.create("VIPResource",{type:t}).callCreate().then(t=>{if(t.resource_response.data){let{upload_id:i,upload_url:o,upload_parameters:a}=t.resource_response.data,s=new XMLHttpRequest;s.open("POST",o,!0),s.onload=()=>{h(s.status)?(r(100),m(i,n,l)):l()},s.upload.onprogress=e=>{let t=Math.round(100*e.loaded/e.total);r(t)};let d=new FormData;for(let e in a)d.append(e,a[e]);d.append("file",e),s.send(d)}},()=>{l()})},b=e=>new Promise((t,r)=>{g(e,"pinimage",()=>{},e=>{t(e)},e=>{r(e)})}),v=e=>new Promise((t,r)=>{"string"==typeof e?e.startsWith("data")&&b(function(e,t=512){let r=e.split(";"),i=r[0].split(":")[1],n=r[1].split(",")[1],l=atob(n),o=[];for(let e=0;e<l.length;e+=t){let r=l.slice(e,e+t),i=Array(r.length);for(let e=0;e<r.length;e+=1)i[e]=r.charCodeAt(e);let n=new Uint8Array(i);o.push(n)}let a=new Blob(o,{type:i});return a}(e)).then(e=>t(e)):r("Invalid Image")}),y=e=>()=>(0,n.Z)({url:"/v3/register/exists/",data:{email:e}})},201155:(e,t,r)=>{r.d(t,{Z:()=>c});var i=r(883119),n=r(499128),l=r(898781),o=r(784590),a=r(50286),s=r(785893);function d({ideaPinImages:e}){let t=e.map((e,t)=>{var r,n,l;return(0,s.jsx)(i.xu,{height:48,width:28,color:"default",borderStyle:"sm",overflow:"hidden",rounding:2,dangerouslySetInlineStyle:{__style:{borderColor:"white",marginInlineEnd:"-17px",WebkitMaskImage:"-webkit-radial-gradient(white, black)",zIndex:t}},children:(0,s.jsx)(i.Ee,{alt:"",src:null!==(r=null==e?void 0:e.url)&&void 0!==r?r:"",color:"#696969",fit:"cover",naturalHeight:null!==(n=null==e?void 0:e.height)&&void 0!==n?n:1,naturalWidth:null!==(l=null==e?void 0:e.width)&&void 0!==l?l:1})},t)});return(0,s.jsx)(i.kC,{justifyContent:"center",children:(0,s.jsx)(i.kC,{justifyContent:"start",width:{1:28,2:40,3:48}[e.length],children:t})})}function c({handleHide:e,text:t,userId:r,href:c,imageUrl:u}){let _=(0,l.ZP)(),p=(0,a.HG)(),h=(0,o.Z)({name:"UserStoryPinsFeedResource",options:{data:{filter_version:2,public_only:!0},field_set_key:"partner_grid_item",user_id:r}}),f=Array.isArray(t)?t.join(" "):t;if(0===(h.data||[]).length)return(0,s.jsx)(n.ZP,{duration:5e3,onHide:e,text:f,href:c,thumbnail:u?{image:(0,s.jsx)(i.Ee,{alt:_._('Image of who you followed', 'userFollowingToast.thumbnail.userImage', 'Profile thumbnail of the user you followed'),fit:"cover",naturalHeight:1,naturalWidth:1,src:u})}:void 0});let m=(h.data||[]).slice(0,3).map(e=>{var t;return null===(t=e.images)||void 0===t?void 0:t[p?"236x":"170x"]}),g=(0,s.jsx)(d,{ideaPinImages:m});return(0,s.jsx)(n.ZP,{href:c,duration:5e3,onHide:e,_dangerouslySetThumbnail:g,text:f})}}}]);
|
26
|
+
//# sourceMappingURL=https://sm.pinimg.com/webapp/51531-253e8d8f8f527d9c.mjs.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[58103],{994320:(e,t,a)=>{a.d(t,{W:()=>n,r:()=>l});var i=a(667294),r=a(425288),s=a(785893);let{Provider:o,useHook:l}=(0,r.Z)("VideoPlayer");function n({children:e}){let[t,a]=(0,i.useState)(!1),r=(0,i.useMemo)(()=>({captionsEnabled:t,setCaptionsEnabled:a}),[t]);return(0,s.jsx)(o,{value:r,children:e})}},158103:(e,t,a)=>{a.r(t),a.d(t,{VideoWrapper:()=>E,default:()=>C,getPlaylistSourceSrc:()=>T});var i=a(667294),r=a(883119),s=a(366284),o=a(780280),l=a(858416),n=a(562559),d=a(994320),h=a(965900),c=a(407043),u=a(391254),p=a(773285),y=a(19121),m=a(969315),S=a(179888),P=a(539766),v=a(785893);function b(e,t,a){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function f(e,t){if(!e||void 0===e)return"undefined";if("string"==typeof e){let a=e;return t&&(a=e.replace("v1.pinimg.com","control"===t?"v3.pinimg.com":"v2.pinimg.com")),a}if(Array.isArray(e)&&e[0].src){let a=e[0].src;return t&&(a=a.replace("v1.pinimg.com","control"===t?"v3.pinimg.com":"v2.pinimg.com")),a}return`unsupported_type_${typeof e}`}class g extends i.Component{constructor(...e){super(...e),b(this,"state",{canPlayVideo:!1,playbackState:S.Cy.DEFAULT,videoStartTime:this.props.seekTime?this.props.seekTime:this.props.videoStartTime||0}),b(this,"errorRetryCount",2),b(this,"hasSegmentStarted",!1),b(this,"hasPlaybackStarted",!1),b(this,"hasVideoSessionStarted",!1),b(this,"hasVideoSessionEnded",!1),b(this,"lastStallTime",null),b(this,"lastPauseTime",null),b(this,"logSessionStartOnNextPlay",!1),b(this,"playerId",""),b(this,"videoSessionId",""),b(this,"videoVisibleTime",null),b(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:f(this.props.src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0}),b(this,"componentDidMount",()=>{var e,t;let{contextLogData:a={},playing:i}=this.props,{is_closeup_video:r=!1}=a;(0,m.tE)("videoMounted",!1,r),i&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(S.DR,{initiator:"mount"}));let s=null===(e=this.videoPlayerRef)||void 0===e?void 0:null===(t=e.video)||void 0===t?void 0:t.textTracks[0];s&&s.addEventListener("cuechange",()=>{let e=s.activeCues[0];e&&e.line&&(e.line=-6,e.size=88)})}),b(this,"componentDidUpdate",e=>{var t,a;let{playing:i,visible:r,appInFocus:s,seekTime:o,captionsEnabled:l}=this.props;o&&o!==e.seekTime&&this.setState({videoStartTime:o});let n=null===(t=this.videoPlayerRef)||void 0===t?void 0:null===(a=t.video)||void 0===a?void 0:a.textTracks[0];n&&(l?n.mode="showing":n.mode="disabled"),e.appInFocus&&!s&&(this.logPlaybackPerformance(S.$f,{initiator:"update"}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===r&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(S.$f,{initiator:"update"})),!1===e.visible&&!0===r&&(this.videoVisibleTime=this.videoVisibleTime||new Date,i?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(S.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),i&&s&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(S.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)}),b(this,"addSegment",()=>{let{canPlayTime:e,loadStartTime:t,segments:a,srcString:i}=this.playbackPerformance,r=-1;e&&t&&0===a.length&&(r=e>t?e-t:0);let s=this.videoPlayerRef&&this.videoPlayerRef.video,o={indicatedKbps:-1,duration:s&&s.duration*S.gJ||-1,lastStartPlayTime:null,level:-1,numServerAddressChange:-1,observedKbps:-1,playbackStartDate:null,serverAddress:"",sourceWidth:-1,sourceHeight:-1,startupTimeMs:r,switchBitrateKbps:-1,uri:i,viewportWidth:s&&s.clientWidth||-1,viewportHeight:s&&s.clientHeight||-1,watchedDurationMs:0};a.push(o)}),b(this,"getCurrentVideoTime",()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*S.gJ:0),b(this,"getVideoResourceTiming",()=>{var e,t;if(null!==(e=window)&&void 0!==e&&null!==(t=e.performance)&&void 0!==t&&t.getEntriesByName&&this.playbackPerformance.srcString){let e=window.performance.getEntriesByName(this.playbackPerformance.srcString);return e.length>0&&e[0]||null}return null}),b(this,"handleCanPlayVideo",e=>{let{contextLogData:t={},onReady:a,playing:i}=this.props,{is_closeup_video:r=!1}=t,{canPlayVideo:s}=this.state;(0,m.tE)("handleCanPlayVideo",!1,r,{firstCanPlayEvent:!s,playing:i}),this.playbackPerformance.hasFatalError=!1,s||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),a&&a(e)}),b(this,"handleEnded",e=>{let{loop:t,onEnded:a}=this.props,{segments:i}=this.playbackPerformance,r=i&&i[i.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),r&&(r.lastStartPlayTime=0),this.hasSegmentStarted=!1):t||this.logPlaybackPerformance(S.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:S.Cy.ENDED}),a&&a(e)}),b(this,"handleError",()=>{var e,t,a,i,r,s,o,l;let{contextLogData:n={}}=this.props,{is_closeup_video:d=!1}=n,h=this.videoPlayerRef&&this.videoPlayerRef.video;(null==h?void 0:null===(e=h.error)||void 0===e?void 0:e.code)!==S.lG.MEDIA_ERR_ABORTED&&(this.playbackPerformance.hasFatalError=!0),this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${(null==h?void 0:null===(t=h.error)||void 0===t?void 0:t.message)||""}`,this.playbackPerformance.errorCode=(null==h?void 0:null===(a=h.error)||void 0===a?void 0:a.code)||0,this.playbackPerformance.errorName=(null==h?void 0:null===(i=h.error)||void 0===i?void 0:null===(r=i.message)||void 0===r?void 0:r.slice(0,100))||"unknown",this.playbackPerformance.errorReason=(null==h?void 0:null===(s=h.error)||void 0===s?void 0:null===(o=s.message)||void 0===o?void 0:o.slice(0,100))||"unknown";let c={errorName:this.playbackPerformance.errorCode,errorReason:this.playbackPerformance.errorName,errorRetryCount:this.errorRetryCount,playbackState:this.state.playbackState,networkState:(null==h?void 0:h.networkState)||"unknown"};switch((0,m.tE)("fatalError",!1,d,c),null==h?void 0:null===(l=h.error)||void 0===l?void 0:l.code){case S.lG.MEDIA_ERR_ABORTED:break;case S.lG.MEDIA_ERR_NETWORK:case S.lG.MEDIA_ERR_DECODE:case S.lG.MEDIA_ERR_SRC_NOT_SUPPORTED:default:this.errorRetryCount>0&&(null==h||h.load(),this.errorRetryCount-=1)}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:S.Cy.FAILED})}),b(this,"handleLoadedMetadata",()=>{this.setState({playbackState:S.Cy.LOADED_METADATA})}),b(this,"handleLoadStart",()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:S.Cy.LOAD_START})}),b(this,"handleLoadedData",()=>{this.setState({playbackState:S.Cy.LOADED_DATA})}),b(this,"handlePlaying",()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.hasSegmentStarted||this.addSegment(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:S.Cy.PLAYING}),this.props.clearSeekTime&&this.props.clearSeekTime()}),b(this,"handleUserPause",({event:e})=>{let{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t({event:e})}),b(this,"handleVideoPause",()=>{this.state.playbackState===S.Cy.STALLING||this.state.playbackState===S.Cy.SEEKING||(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:S.Cy.PAUSED})}),b(this,"handleSeeking",()=>{this.playbackPerformance.numberOfSeeks+=1;let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==S.Cy.ENDED&&this.setState({playbackState:S.Cy.SEEKING})}),b(this,"handleStalled",()=>{null===this.lastStallTime&&this.state.playbackState!==S.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1,this.setState({playbackState:S.Cy.STALLING}))}),b(this,"handleTimeUpdate",e=>{let{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===S.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())}),b(this,"resetPlaybackMetrics",()=>{this.hasSegmentStarted=!0,this.hasPlaybackStarted=!1,this.hasVideoSessionStarted=!1,this.hasVideoSessionEnded=!0,this.lastStallTime=null,this.lastPauseTime=null,this.videoSessionId="",this.videoVisibleTime=null,this.logSessionStartOnNextPlay=!1;let e=this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],t={...e,lastStartPlayTime:null,playbackStartDate:null,watchedDurationMs:0};this.playbackPerformance.detailedErrors="",this.playbackPerformance.errorCode=0,this.playbackPerformance.errorName="",this.playbackPerformance.errorReason="",this.playbackPerformance.hasFatalError=!1,this.playbackPerformance.numberOfStalls=0,this.playbackPerformance.numberOfSeeks=0,this.playbackPerformance.playbackStartTimestamp=null,this.playbackPerformance.totalStallDurationMs=0,this.playbackPerformance.segments=[t]}),b(this,"setLastSegmentStartPlayTime",()=>{let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())}),b(this,"setLastSegmentPlaybackStartDate",()=>{let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())}),b(this,"setPlaybackStartTime",()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)}),b(this,"setVideoPlayerRef",e=>{let{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){let e=this.videoPlayerRef.video;e.addEventListener("loadedmetadata",this.handleLoadedMetadata),e.addEventListener("loadeddata",this.handleLoadedData),e.addEventListener("pause",this.handleVideoPause),e.readyState>=3&&(this.setState({canPlayVideo:!0}),this.playbackPerformance.canPlayTime=new Date)}}),b(this,"updateStallDuration",()=>{if(null!==this.lastStallTime){let{lastStallTime:e}=this;this.playbackPerformance.totalStallDurationMs+=new Date-e,this.lastStallTime=null}}),b(this,"updatePauseDuration",()=>{if(null!==this.lastPauseTime){let{lastPauseTime:e}=this;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}}),b(this,"updateWatchDurationForCurrentSegment",()=>{let{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],a=t?t.lastStartPlayTime:null,i=this.getCurrentVideoTime();if(t&&null!==a&&"number"==typeof i&&"number"==typeof a){let e=i-a;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}}),b(this,"logPlaybackPerformance",(e,t)=>{let{contextLogData:a={},userId:i,isAutoPlay:r,logContextEvent:s,preload:o}=this.props,{is_closeup_video:l=!1}=a,{canPlayTime:n,detailedErrors:d,errorCode:h,errorName:c,errorReason:u,hasFatalError:p,loadStartTime:y,totalPauseDurationMs:P,totalStallDurationMs:v,numberOfStalls:b,numberOfSeeks:f,playbackStartTimestamp:g,segments:k,srcString:D}=this.playbackPerformance,T=this.videoPlayerRef&&this.videoPlayerRef.video,E=e===S.DR,C=E&&!this.hasVideoSessionStarted,R=!E&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(T&&(C||R)){var V;let C=-1;n&&y&&(C=n>y?n-y:0);let R=-1;n&&this.videoVisibleTime&&(R=n>this.videoVisibleTime?n-this.videoVisibleTime:0),E&&(this.videoSessionId=(0,S.Y7)(i),this.playerId=this.playerId||(0,S.EB)());let w=this.getVideoResourceTiming(),L={averageVideoKbps:-1,autoplaying:r,detailedErrors:d,downloadedKiloBytes:"number"==typeof(null==w?void 0:w.decodedBodySize)&&w.decodedBodySize/S.Fm||0,errorCode:h,errorName:c,errorReason:u,fatalError:p,isCellular:!1,nativeVideoDurationMs:T.duration*S.gJ||-1,numberOfStalls:b,numberOfSeeks:f,overallPausedDurationMs:P,overallBufferDurationMs:v,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:g||-1,segments:[],sessionMark:e,screenPixelScale:null!==(V=window)&&void 0!==V&&V.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:T.clientWidth,startupPlayerHeight:T.clientHeight,startupTimeMs:C,startupLatencyMs:R,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:T.videoWidth,startupVariantHeight:T.videoHeight,videoUrl:D,wasVideoPreloaded:"auto"===o};if(!E){this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();let e=k.reduce((e,t)=>e+(t.watchedDurationMs||0),0);L.overallWatchedDurationMs=e,L.startupVariantWatchedDurationMs=e,L.segments=this.playbackPerformance.segments,0===e?(L.errorName="invalid_watch_duration",L.rebufferRate=-1):L.rebufferRate=v/e}(0,m.ZP)(L,!1,l,{playbackState:this.state.playbackState,...t});let{view:_,viewParameter:A,component:I,element:O,objectId:x,...N}=a;s({event_type:3606,event_data:{videoPerformanceData:L},view_type:_,view_parameter:A,component:I,element:O,object_id_str:x,aux_data:{...N,is_closeup_video:l,playback_session_id:this.videoSessionId}}),E?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,m.tE)(E?"sessionStart":"sessionEnd",!1,l,{playbackState:this.state.playbackState,...t})}})}componentWillUnmount(){let{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(S.$f,{initiator:"unmount",loop:e})}render(){let{aspectRatio:e,captions:t,controls:a,loop:s,loopOverride:o,objectFit:l,onDurationChange:n,onFullscreenChange:d,onLoadedChange:h,onControlsPlay:c,onPlayheadDown:p,onPlayheadUp:y,onSeek:m,onVolumeChange:S,playbackRate:b,playing:g,playsInline:k,poster:D,preload:T,src:E,volume:C}=this.props,{canPlayVideo:R,videoStartTime:V}=this.state;return(0,v.jsxs)(i.Fragment,{children:[(0,v.jsx)(u.Z,{unsafeCSS:P.P}),(0,v.jsx)(r.nk,{autoplay:R&&g,aspectRatio:e,captions:t,controls:a,loop:void 0===o?s:o,objectFit:l,onDurationChange:n,onEnded:this.handleEnded,onError:this.handleError,onFullscreenChange:d,onLoadedChange:h,onLoadStart:this.handleLoadStart,onControlsPause:this.handleUserPause,onControlsPlay:c,onPlaying:this.handlePlaying,onPlayheadDown:p,onPlayheadUp:y,onReady:this.handleCanPlayVideo,onSeek:m,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:S,onWaiting:this.handleStalled,playbackRate:b,onPlay:()=>{},onPlayError:()=>{},playing:R&&g,playsInline:k,poster:D,preload:T,ref:this.setVideoPlayerRef,src:f(E,this.props.quicExpGroup),startTime:V||void 0,volume:C})]})}}let k=(0,i.memo)(function(e){let{logContextEvent:t}=(0,c.v)(),{country:a,isAuthenticated:i,isBot:r,isSocialBot:s,unauthId:n,userAgent:d}=(0,o.B)(),{browserName:u,browserVersion:S,isMobile:P}=d,{contextLogData:b={}}=e,{is_closeup_video:f=!1,view:k,viewParameter:D}=b,{appUI:{appInFocus:T}}=(0,h.I)(),{checkExperiment:E}=(0,p.F)(),{clearSeekTime:C}=(0,l.RC)(),R=null;i&&(R=E("web_video_quic").group.length?E("web_video_quic").group:null);let V=(0,y.Z)();return(0,m.r$)({browserName:u,browserVersion:S,country:a,isAuthenticated:i,isBot:r,is_closeup_video:f,isMobile:P,isSocialBot:s,view:k,viewParameter:D}),(0,v.jsx)(g,{...e,userId:V.id||n,appInFocus:T,quicExpGroup:R,logContextEvent:t,clearSeekTime:C})});function D(e,t,a){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}let T=e=>{if(Array.isArray(e)){let t=e.find(e=>"video/m3u8"===e.type);return t?t.src:void 0}return/m3u8$/.test(e)?e:void 0};class E extends i.PureComponent{constructor(e){super(e),D(this,"componentDidUpdate",e=>{var t;e.videoStartTime&&this.props.videoStartTime&&e.videoStartTime<this.props.videoStartTime&&null!==(t=this.videoPlayerRef)&&void 0!==t&&t.video&&(this.videoPlayerRef.video.currentTime=this.props.videoStartTime)}),D(this,"setVideoPlayerRef",e=>{e&&(this.videoPlayerRef=e)}),D(this,"handleOnEnded",({event:e})=>{let{loop:t,onLoop:a,onEnded:i}=this.props;i&&(i({event:e}),this.videoPlayerRef&&this.videoPlayerRef.video&&t&&(this.videoPlayerRef.video.play(),a&&a()))});let t=T(e.src);this.state={useHlsVideo:!e.preferMp4&&!(0,s.G6)(e.requestContext.userAgent.browserName)&&!!t}}render(){let{aspectRatio:e,appInFocus:t,backgroundColor:a,captions:i,toggleCaptions:r,clearSeekTime:s,contextLogData:o,controls:l,hlsConfig:d,isAutoPlay:h,loop:c,objectFit:u,onDurationChange:p,onEnded:y,onFullscreenChange:m,onLoadedChange:S,onControlsPause:P,onControlsPlay:b,onPlayheadDown:f,onPlayheadUp:g,onReady:D,onSeek:E,onTimeChange:C,onVolumeChange:R,playbackRate:V,playing:w,playsInline:L,poster:_,preferMp4:A,preload:I,seekTime:O,src:x,videoStartTime:N,visible:M,volume:F}=this.props,{useHlsVideo:W}=this.state,j=T(x),U={...d,startPosition:N||-1},G=!y&&c;return W&&j?(0,v.jsx)(n.Z,{aspectRatio:e,appInFocus:t,backgroundColor:a,captions:i,clearSeekTime:s,contextLogData:o,controls:l,hlsConfig:U,isAutoPlay:h,loop:c,loopOverride:G,objectFit:u,onDurationChange:p,onEnded:this.handleOnEnded,onFullscreenChange:m,onLoadedChange:S,onControlsPause:P,onControlsPlay:b,onPlayheadDown:f,onPlayheadUp:g,onReady:D,onSeek:E,onTimeChange:C,onVolumeChange:R,playbackRate:V,onPlay:()=>{},onPlayError:()=>{},playing:w,playsInline:L,poster:_,preload:I,seekTime:O,setVideoRef:this.setVideoPlayerRef,src:j,visible:M,volume:F,captionsEnabled:r}):(0,v.jsx)(k,{aspectRatio:e,captions:i,captionsEnabled:r,clearSeekTime:s,contextLogData:o,controls:l,isAutoPlay:h,loop:c,loopOverride:G,objectFit:u,onDurationChange:p,onEnded:this.handleOnEnded,onFullscreenChange:m,onLoadedChange:S,onControlsPause:P,onControlsPlay:b,onPlayheadDown:f,onPlayheadUp:g,onReady:D,onSeek:E,onTimeChange:C,onVolumeChange:R,playbackRate:V,onPlay:()=>{},onPlayError:()=>{},playing:w,playsInline:L,poster:_,preload:I,seekTime:O,setVideoRef:this.setVideoPlayerRef,src:A?x:j||x,videoStartTime:N,visible:M,volume:F})}}function C(e){let{appUI:{appInFocus:t}}=(0,h.I)(),{seekTime:a}=(0,l.Hx)(),{captionsEnabled:i}=(0,d.r)(),{clearSeekTime:r}=(0,l.RC)(),s=(0,o.B)();return(0,v.jsx)(E,{...e,appInFocus:t,requestContext:s,clearSeekTime:r,toggleCaptions:i,seekTime:a})}}}]);
|
2
|
+
//# sourceMappingURL=https://sm.pinimg.com/webapp/58103-d6be57f2d624e7b4.mjs.map
|
@@ -0,0 +1,51 @@
|
|
1
|
+
(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[58822,24661],{240684:(e,t,r)=>{"use strict";r.d(t,{TA:()=>R,ZP:()=>w});var n=r(667294),i=r(263366),o=r(487462),a=r(497326),s=r(894578),l=r(659864),c=r(108679),u=r.n(c);function d(e){console.warn("loadable: "+e)}var _=n.createContext(),p={initialChunks:{}},f="PENDING",m="REJECTED",h=function(e){return e};function y(e){var t=e.defaultResolveComponent,r=void 0===t?h:t,c=e.render,d=e.onLoad;function y(e,t){void 0===t&&(t={});var h,y="function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e,v={};function E(e){return t.cacheKey?t.cacheKey(e):y.resolve?y.resolve(e):"static"}function g(e,n,i){var o=t.resolveComponent?t.resolveComponent(e,n):r(e);if(t.resolveComponent&&!(0,l.isValidElementType)(o))throw Error("resolveComponent returned something that is not a React component!");return u()(i,o,{preload:!0}),o}var b=(h=function(e){function r(r){var n;return((n=e.call(this,r)||this).state={result:null,error:null,loading:!0,cacheKey:E(r)},function(e,t){if(!e){var r=Error("loadable: "+t);throw r.framesToPop=1,r.name="Invariant Violation",r}}(!r.__chunkExtractor||y.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),r.__chunkExtractor)?(!1===t.ssr||(y.requireAsync(r).catch(function(){return null}),n.loadSync(),r.__chunkExtractor.addChunk(y.chunkName(r))),(0,a.Z)(n)):(!1!==t.ssr&&(y.isReady&&y.isReady(r)||y.chunkName&&p.initialChunks[y.chunkName(r)])&&n.loadSync(),n)}(0,s.Z)(r,e),r.getDerivedStateFromProps=function(e,t){var r=E(e);return(0,o.Z)({},t,{cacheKey:r,loading:t.loading||t.cacheKey!==r})};var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===m&&this.setCache(),this.state.loading&&this.loadAsync()},n.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},n.componentWillUnmount=function(){this.mounted=!1},n.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},n.getCacheKey=function(){return E(this.props)},n.getCache=function(){return v[this.getCacheKey()]},n.setCache=function(e){void 0===e&&(e=void 0),v[this.getCacheKey()]=e},n.triggerOnLoad=function(){var e=this;d&&setTimeout(function(){d(e.state.result,e.props)})},n.loadSync=function(){if(this.state.loading)try{var e=y.requireSync(this.props),t=g(e,this.props,S);this.state.result=t,this.state.loading=!1}catch(e){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:y.resolve(this.props),chunkName:y.chunkName(this.props),error:e?e.message:e}),this.state.error=e}},n.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then(function(t){var r=g(t,e.props,{Loadable:S});e.safeSetState({result:r,loading:!1},function(){return e.triggerOnLoad()})}).catch(function(t){return e.safeSetState({error:t,loading:!1})}),t},n.resolveAsync=function(){var e=this,t=this.props,r=(t.__chunkExtractor,t.forwardedRef,(0,i.Z)(t,["__chunkExtractor","forwardedRef"])),n=this.getCache();return n||((n=y.requireAsync(r)).status=f,this.setCache(n),n.then(function(){n.status="RESOLVED"},function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:y.resolve(e.props),chunkName:y.chunkName(e.props),error:t?t.message:t}),n.status=m})),n},n.render=function(){var e=this.props,r=e.forwardedRef,n=e.fallback,a=(e.__chunkExtractor,(0,i.Z)(e,["forwardedRef","fallback","__chunkExtractor"])),s=this.state,l=s.error,u=s.loading,d=s.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===f)throw this.loadAsync();if(l)throw l;var _=n||t.fallback||null;return u?_:c({fallback:_,result:d,options:t,props:(0,o.Z)({},a,{ref:r})})},r}(n.Component),function(e){return n.createElement(_.Consumer,null,function(t){return n.createElement(h,Object.assign({__chunkExtractor:t},e))})}),S=n.forwardRef(function(e,t){return n.createElement(b,Object.assign({forwardedRef:t},e))});return S.preload=function(e){y.requireAsync(e)},S.load=function(e){return y.requireAsync(e)},S}return{loadable:y,lazy:function(e,t){return y(e,(0,o.Z)({},t,{suspense:!0}))}}}var v=y({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,r=e.props;return n.createElement(t,r)}}),E=v.loadable,g=v.lazy,b=y({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,r=e.props;return r.children?r.children(t):null}}),S=b.loadable,P=b.lazy,A="undefined"!=typeof window;function R(e,t){void 0===e&&(e=function(){});var r=(void 0===t?{}:t).namespace;if(!A)return d("`loadableReady()` must be called in browser only"),e(),Promise.resolve();var n=null;if(A){var i=""+(void 0===r?"":r)+"__LOADABLE_REQUIRED_CHUNKS__",o=document.getElementById(i);if(o){n=JSON.parse(o.textContent);var a=document.getElementById(i+"_ext");if(a)JSON.parse(a.textContent).namedChunks.forEach(function(e){p.initialChunks[e]=!0});else throw Error("loadable-component: @loadable/server does not match @loadable/component")}}if(!n)return d("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),e(),Promise.resolve();var s=!1;return new Promise(function(e){window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[];var t=window.__LOADABLE_LOADED_CHUNKS__,r=t.push.bind(t);function i(){n.every(function(e){return t.some(function(t){return t[0].indexOf(e)>-1})})&&!s&&(s=!0,e())}t.push=function(){r.apply(void 0,arguments),i()},i()}).then(e)}E.lib=S,g.lib=P;let w=E},294184:(e,t)=>{var r;/*!
|
2
|
+
Copyright (c) 2017 Jed Watson.
|
3
|
+
Licensed under the MIT License (MIT), see
|
4
|
+
http://jedwatson.github.io/classnames
|
5
|
+
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0!==(r=(function(){return i}).apply(t,[]))&&(e.exports=r)}()},108679:(e,t,r)=>{"use strict";var n=r(121296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,_=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=p(r);i&&i!==f&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),h=0;h<a.length;++h){var y=a[h];if(!o[y]&&!(n&&n[y])&&!(m&&m[y])&&!(s&&s[y])){var v=_(r,y);try{c(t,y,v)}catch(e){}}}}return t}},396103:(e,t)=>{"use strict";/** @license React v16.8.4
|
6
|
+
* react-is.production.min.js
|
7
|
+
*
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
9
|
+
*
|
10
|
+
* This source code is licensed under the MIT license found in the
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
12
|
+
*/Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,_=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116;function h(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case _:case l:return e;default:return t}}case m:case f:case i:return t}}}function y(e){return h(e)===d}t.typeOf=h,t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=_,t.Fragment=o,t.Lazy=m,t.Memo=f,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===_)},t.isAsyncMode=function(e){return y(e)||h(e)===u},t.isConcurrentMode=y,t.isContextConsumer=function(e){return h(e)===c},t.isContextProvider=function(e){return h(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return h(e)===_},t.isFragment=function(e){return h(e)===o},t.isLazy=function(e){return h(e)===m},t.isMemo=function(e){return h(e)===f},t.isPortal=function(e){return h(e)===i},t.isProfiler=function(e){return h(e)===s},t.isStrictMode=function(e){return h(e)===a},t.isSuspense=function(e){return h(e)===p}},121296:(e,t,r)=>{"use strict";e.exports=r(396103)},441143:e=>{"use strict";e.exports=function(e,t,r,n,i,o,a,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,a,s],u=0;(l=Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},869921:(e,t)=>{"use strict";/** @license React v16.13.1
|
13
|
+
* react-is.production.min.js
|
14
|
+
*
|
15
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
16
|
+
*
|
17
|
+
* This source code is licensed under the MIT license found in the
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
19
|
+
*/var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,_=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,E=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case _:case h:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return b(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=_,t.Fragment=o,t.Lazy=h,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||b(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return b(e)===c},t.isContextProvider=function(e){return b(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return b(e)===_},t.isFragment=function(e){return b(e)===o},t.isLazy=function(e){return b(e)===h},t.isMemo=function(e){return b(e)===m},t.isPortal=function(e){return b(e)===i},t.isProfiler=function(e){return b(e)===s},t.isStrictMode=function(e){return b(e)===a},t.isSuspense=function(e){return b(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===_||e.$$typeof===v||e.$$typeof===E||e.$$typeof===g||e.$$typeof===y)},t.typeOf=b},659864:(e,t,r)=>{"use strict";e.exports=r(869921)},560053:(e,t)=>{"use strict";/**
|
20
|
+
* @license React
|
21
|
+
* scheduler.production.min.js
|
22
|
+
*
|
23
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
24
|
+
*
|
25
|
+
* This source code is licensed under the MIT license found in the
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
27
|
+
*/function r(e,t){var r=e.length;for(e.push(t);0<r;){var n=r-1>>>1,i=e[n];if(0<o(i,t))e[n]=t,e[r]=i,r=n;else break}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,r))c<i&&0>o(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else if(c<i&&0>o(u,r))e[n]=u,e[c]=r,n=c;else break}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a,s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var u=[],d=[],_=1,p=null,f=3,m=!1,h=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,E="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=n(d);null!==t;){if(null===t.callback)i(d);else if(t.startTime<=e)i(d),t.sortIndex=t.expirationTime,r(u,t);else break;t=n(d)}}function S(e){if(y=!1,b(e),!h){if(null!==n(u))h=!0,k(P);else{var t=n(d);null!==t&&D(S,t.startTime-e)}}}function P(e,r){h=!1,y&&(y=!1,E(w),w=-1),m=!0;var o=f;try{for(b(r),p=n(u);null!==p&&(!(p.expirationTime>r)||e&&!I());){var a=p.callback;if("function"==typeof a){p.callback=null,f=p.priorityLevel;var s=a(p.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?p.callback=s:p===n(u)&&i(u),b(r)}else i(u);p=n(u)}if(null!==p)var l=!0;else{var c=n(d);null!==c&&D(S,c.startTime-r),l=!1}return l}finally{p=null,f=o,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var A=!1,R=null,w=-1,O=5,T=-1;function I(){return!(t.unstable_now()-T<O)}function C(){if(null!==R){var e=t.unstable_now();T=e;var r=!0;try{r=R(!0,e)}finally{r?a():(A=!1,R=null)}}else A=!1}if("function"==typeof g)a=function(){g(C)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,x=N.port2;N.port1.onmessage=C,a=function(){x.postMessage(null)}}else a=function(){v(C,0)};function k(e){R=e,A||(A=!0,a())}function D(e,r){w=v(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,k(P))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=f;f=e;try{return t()}finally{f=r}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=o+s,e={id:_++,callback:i,priorityLevel:e,startTime:o,expirationTime:s,sortIndex:-1},o>a?(e.sortIndex=o,r(d,e),null===n(u)&&e===n(d)&&(y?(E(w),w=-1):y=!0,D(S,o-a))):(e.sortIndex=s,r(u,e),h||m||(h=!0,k(P))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}},363840:(e,t,r)=>{"use strict";e.exports=r(560053)},653250:(e,t,r)=>{"use strict";/**
|
28
|
+
* @license React
|
29
|
+
* use-sync-external-store-shim.production.min.js
|
30
|
+
*
|
31
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
32
|
+
*
|
33
|
+
* This source code is licensed under the MIT license found in the
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
35
|
+
*/var n=r(667294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return s(function(){i.value=r,i.getSnapshot=t,c(i)&&u({inst:i})},[e,r,t]),a(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},950139:(e,t,r)=>{"use strict";/**
|
36
|
+
* @license React
|
37
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
38
|
+
*
|
39
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
40
|
+
*
|
41
|
+
* This source code is licensed under the MIT license found in the
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
43
|
+
*/var n=r(667294),i=r(61688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=n.useRef,l=n.useEffect,c=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=s(null);if(null===d.current){var _={hasValue:!1,value:null};d.current=_}else _=d.current;var p=a(e,(d=c(function(){function e(e){if(!l){if(l=!0,a=e,e=n(e),void 0!==i&&_.hasValue){var t=_.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(a=e,s=r)}var a,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]))[0],d[1]);return l(function(){_.hasValue=!0,_.value=p},[p]),u(p),p}},61688:(e,t,r)=>{"use strict";e.exports=r(653250)},552798:(e,t,r)=>{"use strict";e.exports=r(950139)},391254:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o}),r(441143);var n=r(785893);class i{static factory(e){return e instanceof i?e:new i(String(e))}constructor(e){this._private_safe_value=e.trim().replace(">",">").replace("<","<").replace("&","&").replace('"','"').replace("'","'")}toString(){return this._private_safe_value}}function o(e){let{css:t,unsafeCSS:r,...o}=e,a=String(t||"")||r||"",s=!!a;return s?(0,n.jsx)("style",{...o,dangerouslySetInnerHTML:{__html:String(i.factory(a))}}):null}},619937:(e,t,r)=>{"use strict";r.d(t,{$N:()=>f,Cu:()=>h,GY:()=>c,MZ:()=>a,NR:()=>d,Vn:()=>u,bC:()=>m,fm:()=>n,kM:()=>o,q6:()=>i,qp:()=>l,uV:()=>_,ug:()=>p,xL:()=>s});let n={DOWNLOAD_TEMPLATE:"DOWNLOAD_TEMPLATE",UPLOAD_TEMPLATE:"UPLOAD_TEMPLATE",HISTORY:"HISTORY",RESOURCES:"RESOURCES"},i={GENERAL:"GENERAL",CAMPAIGNS:"CAMPAIGNS",AD_GROUPS:"AD_GROUPS",ADS:"ADS",KEYWORDS:"KEYWORDS",PRODUCT_GROUPS:"PRODUCT_GROUPS",ERROR_CODES:"ERROR_CODES"},o={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"},a={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"},s={GTM:"GTM",SHOPIFY:"SHOPIFY",WORDPRESS:"WORDPRESS",WOOCOMMERCE:"WOOCOMMERCE",TEALIUM:"TEALIUM"},l={PINTEREST_TAG:"PINTEREST_TAG",PINTEREST_TAG_MANUAL_SETUP_FLOW:"PINTEREST_TAG_MANUAL_SETUP_FLOW",PINTEREST_TEST_EVENTS:"PINTEREST_TEST_EVENTS",PINTEREST_TAG_EVENTS:"PINTEREST_TAG_EVENTS",PINTEREST_TAG_HEALTH:"PINTEREST_TAG_HEALTH",CONVERSION_HEALTH:"CONVERSION_HEALTH",CONVERSION_UPLOAD:"CONVERSION_UPLOAD",UPLOAD_HISTORY:"UPLOAD_HISTORY",PCA_UPLOAD_HISTORY:"PCA_UPLOAD_HISTORY",PCA_UPLOAD:"PCA_UPLOAD",CONVERSIONS_API:"CONVERSIONS_API",CONVERSIONS_API_ACCESS_TOKEN:"CONVERSIONS_API_ACCESS_TOKEN",CONVERSIONS_API_DEDUPLICATION:"CONVERSIONS_API_DEDUPLICATION",CONVERSIONS_API_PARTNER_SETUP_FLOW:"CONVERSIONS_API_PARTNER_SETUP_FLOW",CONVERSIONS_API_MANUAL_SETUP_FLOW:"CONVERSIONS_API_MANUAL_SETUP_FLOW",PINTEREST_EVENTS_OVERVIEW:"PINTEREST_EVENTS_OVERVIEW",PINTEREST_EVENT_HISTORY:"PINTEREST_EVENT_HISTORY",PAYLOAD_HELPER:"PAYLOAD_HELPER",CONVERSIONS:"CONVERSIONS",PINTEREST_EVENTS_OVERVIEW_BEFORE_SETUP:"PINTEREST_EVENTS_OVERVIEW_BEFORE_SETUP",PINTEREST_SETUP_API:"PINTEREST_SETUP_API"},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={UNREAD:"UNREAD",READ:"READ",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",DISMISSED:"DISMISSED",INVALID:"INVALID",MUTED:"MUTED",SNOOZED:"SNOOZED",PMP_REPORTED:"PMP_REPORTED",EMAILED:"EMAILED",BULK_DOWNLOADED:"BULK_DOWNLOADED",FILTERED:"FILTERED",PUSHED:"PUSHED"},d={DESTINATION:"destination",EXPIRY:"expiry",SOURCE:"attributionsrc",SOURCE_EVENT_ID:"source_event_id",SOURCE_EVENT_TYPE:"source_event_type",PRIORITY:"priority",CLICK_PRIORITY:"2",VIEW_PRIORITY:"1",CAMPAIGN_ID:"campaign_id",ADVERTISER_ID:"advertiser_id"},_="604800",p="86400",f={ATTRIBUTION_SOURCE_ID:"attributionsourceid",ATTRIBUTE_DESTINATION:"attributiondestination",ATTRIBUTE_ON:"attributeon"},m="click",h="view"},337815:(e,t,r)=>{"use strict";r.d(t,{YS:()=>a,eF:()=>s,m_:()=>o});var n=r(619937),i=r(67347);function o(e,t,r,i,o){let a=new URLSearchParams,s=null!=e?e:"0";return a.append(n.NR.SOURCE_EVENT_ID,s),a.append(n.NR.DESTINATION,function(e){let t;try{t=decodeURIComponent(e)}catch(r){t=e}t.startsWith("http")?t.startsWith("http://")&&(t=t.replace("http://","https://")):t="https://"+t;try{return new URL(t).origin}catch(n){let r=t.match(/^(https?:\/\/[^\/]+)(\/|$)/);if(r&&r.length>1)return r[1];return e}}(t)||""),a.append(n.NR.EXPIRY,r?n.uV:n.ug),a.append(n.NR.PRIORITY,r?n.NR.CLICK_PRIORITY:n.NR.VIEW_PRIORITY),o&&a.append(n.NR.ADVERTISER_ID,o),i&&a.append(n.NR.CAMPAIGN_ID,i),a.append(n.NR.SOURCE_EVENT_TYPE,r?n.bC:n.Cu),"/attribution_source/?"+a.toString()}async function a(e,t,r,n,a,s,l){let{appType:c,osType:u}=s||{};if(["Pin","pinImpressions"].includes(e)&&t&&n){(0,i.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"start",appType:c,osType:u}});try{var d;if(!(null!==(d=window.document.featurePolicy)&&void 0!==d&&d.allowsFeature("attribution-reporting"))){(0,i.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"skipped",message:"attribution-reporting is not enabled",appType:c,osType:u}});return}let e=o(r,n||"",!1,a,l),t=await window.fetch(e,{keepalive:!0,attributionReporting:{eventSourceEligible:!0,triggerEligible:!1}});if(!t.ok)throw Error("server request failed.");(0,i.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"success",appType:c,osType:u}})}catch(e){(0,i.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"failed",error:e.name,appType:c,osType:u}})}}else(0,i.nP)("webapp.arapi.view.funnel",{sampleRate:.1,tags:{status:"missing_param",appType:c,osType:u}})}function s(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}},366284:(e,t,r)=>{"use strict";r.d(t,{G6:()=>o,i7:()=>a,oi:()=>n,u$:()=>i,un:()=>l,vU:()=>s});let n=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),i=e=>e?e.includes("Chrome")?n.CHROME:e.includes("Safari")?n.SAFARI:e.includes("Firefox")?n.FIREFOX:e.includes("Opera")?n.OPERA:e.includes("IE")?n.IE:e.includes("Edge")?n.EDGE:n.OTHER:n.OTHER;function o(e){return i(e)===n.SAFARI}function a(e){return i(e)===n.CHROME}function s(e){return i(e)===n.FIREFOX}function l(e){return i(e)===n.EDGE}},78714:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(56641),i=r(867820),o=r(954931);let a=(e,t)=>{null!=t&&t.disableOriginCheck||(0,o.Z)(e)||(e="/",(0,i.My)("url_reset")),(0,n.Z)(e)}},768559:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(826067);let i=/\/today\/(article|best|trending)\/[\w-]+\/(\d+)/,o=(e,t)=>t?e.substring(t.length).split("/")[0]:e,a=({boardUrl:e,path:t,pinId:r,pinnerUserName:a,query:s,search:l,storyPinDataId:c})=>{var u;if(!t)return"";let d="";switch(t){case"/":case"/homefeed/":return"UserHomefeedResource";case a&&`/${a}/pins/`:return"UserPinsResource";case a&&`/${a}/`:case/\/_activity\//.test(t)&&t:return"UserActivityPinsResource";case/\/_created\//.test(t)&&t:return c?"UserStoryPinsFeedResource":"UserActivityPinsResource";case/\/_community\//.test(t)&&t:return"UserDiscoveredPinsResource";case/\/_saved\//.test(t)&&t:return"BoardlessPinsResource";case a&&`/${a}/_shopping_list/`:return"ShoppingListFeedResource";case/\/visual-search\//.test(t)&&t:return"VisualLiveSearchResource";case/\/pin\//.test(t)&&t:d="/pin/";let _=o(t,d);if(r!==_)return`RelatedPinFeedResource_${_}`;break;case/\/search\//.test(t)&&t:if(l){let e=(0,n.mB)(l,{shouldDecode:!1}).q||"";return`SearchResource_${e.toLowerCase()}`}if(s)return`SearchResource_${encodeURIComponent(s.q||"").toLowerCase()}`;break;case/\/categories\//.test(t)&&t:d="/categories/";let p=o(t,d);return`CategoryFeedResource_${p}`;case/\/discover\/topics\//.test(t)&&t:return"CategoryFeedResource";case/\/news_hub\//.test(t)&&t:d="/news_hub/";let f=o(t,d);return`NewsHubDetailsResource_${f}`;case/\/_tools\/more-ideas\//.test(t)&&t:return"BoardContentRecommendationResource";case/\/topics\//.test(t)&&t:d="/topics/";let m=o(t,d);return`TopicFeedResource_${m}`;case/\/source\//.test(t)&&t:d="/source/";let h=o(t,d);return`DomainFeedResource_${h}`;case/\/explore\//.test(t)&&t:d="/explore/";let y=o(t,d);return`SearchResource_${y}`;case e:case!!e&&/\/more_ideas\//.test(t)&&t:return"BoardFeedResource";case e&&t.indexOf(e)>-1&&t:return"BoardSectionPinsResource";case/\/brand_catalog\//.test(t)&&t:return"BrandCatalogFeedResource";case i.test(t)&&t:let v=(null===(u=t.match(i))||void 0===u?void 0:u[2])||"unknown";return`TodayArticleFeedResource_${v}`;case/\/today\//.test(t):return"TodayTabResource";case/\story_feed\//.test(t)&&t:if(l){let{feed_type:e,request_params:t}=(0,n.mB)(l);return`StoryFeedResource_${e}_${t}`}}return""},s=e=>{let t=null==e?void 0:e.pathname;return t?(t.match(/\/search\//)&&null!=e&&e.search&&(t+=e.search),t.toLowerCase()):""},l=({boardUrl:e,location:t,pinId:r,pinnerUserName:n,previousHistory:i,storyPinDataId:o,trackingParams:l,trackingParamsMap:c={}})=>{let u,d;if(!r||!l||!t)return;if(!c)return`${null!=l?l:""}~0`;let{pathname:_,search:p,query:f}=t,m=a({boardUrl:e,path:_,pinId:r,pinnerUserName:n,query:f,search:p,storyPinDataId:o,trackingParams:l,trackingParamsMap:c}),h=Object.keys(c),y=(_||"").startsWith("/pin/");if(y){let e=h.find(e=>"PinResource"!==e);u=e?c[e]:c.PinResource}else u=c[m];if(!u&&i&&i.length){let t=s(i[i.length-1].location);d=a({boardUrl:e,path:t,pinId:r,pinnerUserName:n,query:f,search:p,storyPinDataId:o,trackingParams:l,trackingParamsMap:c}),u=c[d]}return u||(u=`${l||""}~0`),u}},81636:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l,Z:()=>c});var n=r(667294),i=r(112690),o=r(385740),a=r(767546),s=r(780280);function l(e,t){let{setViewContextData:r}=(0,o.sV)(),{requestIdentifier:l}=(0,s.B)(),c=(0,i.Z)(),{viewData:u}=(0,o.SU)();(0,n.useEffect)(()=>{if(e){var t;r({viewType:null!==(t=e.view_type)&&void 0!==t?t:1,viewParameter:e.view_parameter,viewData:e.view_data?(0,a.Z)(u,e.view_data):u,component:e.component,element:e.element,objectIdStr:e.object_id_str,auxData:e.aux_data,clientTrackingParams:e.clientTrackingParams}),c({...e,event_type:13,request_identifier:l})}},[t])}function c(e){let{children:t,log:r}=e;return l(r),t||null}},407043:(e,t,r)=>{"use strict";r.d(t,{B:()=>l,v:()=>s});var n=r(385740),i=r(425288),o=r(785893);let{Provider:a,useHook:s}=(0,i.Z)("ContextLogger");function l({children:e,value:t}){let{setViewContextData:r}=(0,n.sV)();return t.injectSetViewContextDataFromHook=r,(0,o.jsx)(a,{value:t,children:e})}},112690:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(407043);let i=()=>(0,n.v)().logContextEvent},385740:(e,t,r)=>{"use strict";let n;r.d(t,{BE:()=>c,Ih:()=>u,SU:()=>d,sV:()=>l});var i=r(667294),o=r(425288),a=r(785893);let{Provider:s,useHook:l}=(0,o.Z)("View");function c(){return n}function u({children:e,initialState:t={}}){let[r,o]=(0,i.useState)(t),l=(0,i.useCallback)(()=>{n={},o({})},[]),c=(0,i.useCallback)(e=>{n={...n,...e},o(t=>({...t,...e}))},[]),u=(0,i.useMemo)(()=>({viewContextData:r,clearViewContextData:l,setViewContextData:c}),[r,c,l]);return(0,a.jsx)(i.Fragment,{children:(0,a.jsx)(s,{value:u,children:e})})}function d(){let{viewContextData:e}=l();return e}},425288:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(667294);function i(e,t){let r="consumer"===t?`${e}Consumer`:`use${e}`;return`
|
44
|
+
${r} must be used within a ${e}Provider.
|
45
|
+
Please see https://pdocs.pinadmin.com/docs/webapp/docs/testing-jest#createhydra-errors for more information.
|
46
|
+
`}function o(e,t){let r=(0,n.createContext)(t),{messageDisplayName:o}=function(e,t){let r=e.slice(1);if(r=r.endsWith("Context")?r:`${r}Context`,t){let n=`with${e[0].toUpperCase()}${r}(${t})`;return{hocDisplayName:n}}let n=`${e[0].toLowerCase()}${r}`,i=`${e[0].toUpperCase()}${r}`;return{propsDisplayName:n,messageDisplayName:i}}(e);r.displayName=o;let{Provider:a}=r,s=({children:e})=>{let t=(0,n.useContext)(r);if(void 0===t)throw Error(i(o,"consumer"));return e(t)},l=()=>(0,n.useContext)(r);return a.displayName=`${o}Provider`,s.displayName=`${o}Consumer`,{Provider:a,Consumer:s,MaybeConsumer:({children:e})=>{let t=(0,n.useContext)(r);return e(t)},useMaybeHook:l,useHook:function(){let e=l();if(void 0===e)throw Error(i(o,"hook"));return e}}}},643010:(e,t,r)=>{"use strict";r.d(t,{F6:()=>d,Hs:()=>u,Yc:()=>l,vs:()=>c});var n=r(667294),i=r(844974),o=r(867820);let a="theme",s="dark"===(0,i.qn)(a),l=()=>s;function c(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(l())},[t]),e}let u=()=>{(0,i.Nh)(a,"dark"),(0,o.My)("mweb.dark_mode.enable"),window.location.reload()},d=()=>{(0,i.L_)(a),(0,o.My)("mweb.dark_mode.disable"),window.location.reload()}},816068:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=e=>Math.floor(new Date(e).getTime()/1e3)},780679:(e,t,r)=>{"use strict";r.d(t,{g:()=>a,t:()=>o});var n=r(667294);let i=(0,n.createContext)(null),o=i.Provider,a=()=>(0,n.useContext)(i)},207737:(e,t,r)=>{"use strict";r.d(t,{$S:()=>n,V$:()=>i,_4:()=>a,iY:()=>s,mR:()=>o});let n="REFRESH_ALL_EXPERIENCES_MULTI",i="UPDATE_EXPERIENCE_MULTI",o="FETCH_EXPERIENCES",a="REFRESH_ALL_EXPERIENCES",s="UPDATE_EXPERIENCE"},957191:(e,t,r)=>{"use strict";r.d(t,{NW:()=>s,OD:()=>c,Yb:()=>l,cL:()=>u,xW:()=>a});var n=r(214494),i=r(207737);let o=e=>({type:i.$S,payload:{experiencesMulti:e}}),a=(e,t,r)=>({type:i.V$,payload:{placementId:e,experienceId:t,status:r}}),s=e=>t=>n.Z.create("UserExperiencePlatformResource",{extra_context:e,multiExperiencePlatform:!0}).callGet().then(e=>e.resource_response?t(o(e.resource_response.data)):void 0),l=(e,t,r)=>({type:i.iY,payload:{placementId:e,experienceId:t,status:r}}),c=e=>({type:i._4,payload:{experiences:e}}),u=e=>({type:i.mR,payload:{experiences:e}})},121151:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>c,b7:()=>a.b7,bN:()=>s,p4:()=>l});var n=r(240684),i=r(50286),o=r(785893),a=r(968121);let s=(0,n.ZP)({resolved:{},chunkName:()=>"DesktopModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e(51879).then(r.bind(r,373420)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return r(t)},resolve:()=>373420}),l=(0,n.ZP)({resolved:{},chunkName:()=>"MobileModal",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e(72430).then(r.bind(r,430322)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return r(t)},resolve:()=>430322});function c(e){let t=(0,i.ZP)(),r=void 0===e.isOpen||e.isOpen;if("desktop"===t&&r){let{isOpen:t,mobileAccessibilityCloseIconLabel:r,mobileAllowScroll:n,mobileHideCloseIcon:i,mobileIsFullscreen:a,mobileIsSlideUp:l,type:c,mobileIsFooter:u,zIndex:d,..._}=e;return(0,o.jsx)(s,{..._})}let{allowMediaPlay:n,allowScroll:a,role:c,size:u,_dangerouslyDisableScrollBoundaryContainer:d,..._}=e;return(0,o.jsx)(l,{..._,isOpen:r})}},968121:(e,t,r)=>{"use strict";r.d(t,{JN:()=>c,Vf:()=>u,ZM:()=>s,b7:()=>a,i_:()=>l});var n=r(883119),i=r(643010),o=r(379764);let a=new n.Ry(1e3),s=new n.H3([o.Z]),l=12,c=({variant:e})=>({__style:"fullscreen"===e?{touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"90vw",height:"70vh",borderRadius:"8px",zIndex:1,left:"5vw",bottom:"13vh",overflowY:"hidden"}:"tablet"===e?{border:void 0,borderRadius:"32px",top:"50%",left:"50%",minWidth:"350px",touchAction:"none",transform:"translate(-50%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1}:"footer"===e?{border:(0,i.Yc)()?void 0:"1px solid #efefef",bottom:0,boxShadow:"0 0 16px rgba(0,0,0, 0.16)",left:0,touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100vw",zIndex:1}:"signup"===e?{border:void 0,borderRadius:"32px",top:"50%",touchAction:"none",transform:"translate(0%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1,left:"8px",right:"8px",background:"#FFFFFF"}:{border:(0,i.Yc)()?void 0:"1px solid #efefef",touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100vw",zIndex:1,left:"0px",bottom:0,boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",overflow:"hidden",borderRadius:"32px 32px 0 0"}}),u=({isFullscreen:e,isTablet:t,isShowing:r,isRelatedInterestsModal:n})=>{let o={border:(0,i.Yc)()?void 0:"1px solid #efefef",touchAction:"none",width:"100vw",height:"",zIndex:1,left:0,bottom:0,borderRadius:"32px 32px 0px 0px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"},a=r?"translateY(0)":"translateY(100vh)";return o.height=e?"100vh":"",t&&n&&(o={...o,width:425,left:"50%",transform:"translateX(-50%)"},a=r?"translate(-50%, 0)":"translate(-50%, 100vh)"),{__style:{...o,transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:a}}}},499128:(e,t,r)=>{"use strict";r.d(t,{UZ:()=>c,Vg:()=>l,ZP:()=>u});var n=r(667294),i=r(883119),o=r(50286),a=r(829407),s=r(785893);let l=200,c=({deviceType:e,hiding:t,visible:r})=>{let n="desktop"===e,i=0,o=n?"translateY(200px)":"translateY(-200px)",a="opacity 0.1s ease-in-out",s="hidden";return r&&!t&&(i=1,o="translateY(0)",a="all 0.7s cubic-bezier(.19, 1.15, .48, 1)",s="visible"),r&&t&&(o="scale(1.1)",a="opacity transform 0.2s"),{opacity:i,pointerEvents:"auto",position:"relative",marginTop:n?10:0,transform:o,transition:a,visibility:s}};function u({_dangerouslySetThumbnail:e,_dangerouslySetPrimaryAction:t,text:r,primaryAction:u,dismissButton:d,helperLink:_,thumbnail:p,type:f,dataTestId:m,duration:h=2e3,onHide:y,href:v,onClick:E,openNewPage:g,imageUrl:b}){var S;let P;let A=(0,o.ZP)(),[R,w]=(0,n.useState)(!1),[O,T]=(0,n.useState)(!1),I=(0,n.useRef)(),C=()=>{w(!0),I.current=setTimeout(y,l)},N=()=>{I.current=setTimeout(C,h)},x=()=>{I.current&&clearTimeout(I.current)};(0,a.Z)(()=>(setTimeout(()=>T(!0),100),N(),x)),b&&(P={image:(0,s.jsx)(i.Ee,{alt:"string"==typeof r?r:`${r[0]} ${r[1]}`,fit:"cover",naturalHeight:1,naturalWidth:1,src:b})});let k=(0,s.jsx)(i.FN,{_dangerouslySetThumbnail:e,_dangerouslySetPrimaryAction:t,primaryAction:u,text:r,thumbnail:null!==(S=P)&&void 0!==S?S:p,type:f,dismissButton:d,helperLink:_}),{marginTop:D,opacity:L,pointerEvents:U,position:M,transform:j,transition:F,visibility:Z}=c({deviceType:A,hiding:R,visible:O});return(0,s.jsx)(i.xu,{dangerouslySetInlineStyle:{__style:{transform:j,transition:F,visibility:Z,pointerEvents:U}},"data-test-id":null!=m?m:"toast",onMouseEnter:x,onMouseLeave:N,opacity:L,position:M,marginTop:D,display:"flex",children:v?(0,s.jsx)(i.Tg,{href:v,onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{v.startsWith("#")&&(e.preventDefault(),t()),null==E||E(e)},target:g?"blank":null,rounding:"pill",children:k}):k})}},356997:(e,t,r)=>{"use strict";r.d(t,{qE:()=>s,u_:()=>l.ZP});var n=r(883119),i=r(785893);let o=(e,t)=>{let r=null==e?void 0:e.includes("images/user/default");return!!(r&&t)};function a({accessibilityLabel:e,name:t,outline:r,size:a,src:s,verified:l}){return(0,i.jsx)(n.qE,{accessibilityLabel:e,name:t,outline:r,size:a,src:o(s,t)?void 0:s,verified:l})}a.displayName="Avatar";let s=a;var l=r(121151);r(499128)},444445:(e,t,r)=>{"use strict";r.d(t,{$H:()=>a,$q:()=>E,D6:()=>c,KN:()=>b,Lo:()=>i,OS:()=>p,P2:()=>h,Wv:()=>g,ZZ:()=>d,g5:()=>_,jC:()=>s,lX:()=>m,nW:()=>f,oX:()=>y,qG:()=>v,tG:()=>o,yF:()=>n,yc:()=>u,yt:()=>l});let n=236,i=2*n/3,o=175,a=24,s=4,l=8,c=2,u=2,d=14,_=16,p=5,f=12,m=16,h=24,y=16,v=-1,E=(e=!1,t=!1)=>e?t?m:f:h,g=({contentVisibleItemCount:e,gap:t,width:r})=>e||r?(r-(e-1)*t)/e:n,b=(e,t,r,n,i=d)=>{let o=e+i,a=`
|
47
|
+
@media (min-width: ${t*o}px) and (max-width: ${(r+1)*o-1}px) {
|
48
|
+
${n}
|
49
|
+
}
|
50
|
+
`;return a}},898781:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>s,oz:()=>o,q6:()=>i});var n=r(425288);let{Provider:i,Consumer:o,useHook:a}=(0,n.Z)("i18n"),s=a},349700:(e,t,r)=>{"use strict";r.d(t,{Wc:()=>l,bF:()=>u,nk:()=>s,r7:()=>d});var n=r(667294),i=r(785893);function o(e,t,r){return e.split(r).map(e=>{if(e.match(r)){let r=e.replace(/[\{\}]/g,"").trim();if(Object.prototype.hasOwnProperty.call(t,r))return t[r]}return e})}let a=/(\{\{\s*\w+\s*\}\})/g;function s(e,t){return o(e,t,a)}function l(e,t){return o(e,t,a).join("")}let c=/(\{\s*\w+\s*\})/g;function u(e,t){return o(e,t,c)}let d=({text:e})=>Array.isArray(e)?e.map((e,t)=>(0,i.jsx)(n.Fragment,{children:e},t)):e},995081:(e,t,r)=>{"use strict";r.d(t,{Rq:()=>o,Vf:()=>a,ab:()=>c,jd:()=>s,k8:()=>d,nw:()=>u,oy:()=>l});var n=r(231486),i=r(226198);let o=e=>"ios"===e&&(window.devicePixelRatio||1)*window.screen.height==2436,a=28,s=e=>window.innerHeight>=748&&o(e),l=function(){return"undefined"!=typeof window&&!!window.navigator&&(/iPad/.test(navigator.platform)||navigator.maxTouchPoints>1&&"MacIntel"===navigator.platform)},c=()=>{n.t8(i.oj,String(!0),(0,n.kZ)(i.oj))},u=()=>!!n.U2(i.oj),d=e=>{if(l()){let t=u();e.experimentsClient.flush(),t||(c(),"undefined"!=typeof window&&window.location.reload(!0))}}},542554:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(883119),i=r(444445),o=r(995081),a=r(134879),s=r(780280),l=r(785893);let c=({children:e,dataLayoutShiftBoundaryId:t,hasFixedHeader:r=!1,hasGutter:c=!0,height:u,showKeychainError:d=!1,useViewport:_=!1})=>{let p=(0,s.B)(),f=(0,o.jd)(p.userAgent.platform)?o.Vf:0;return(0,l.jsx)(n.xu,{"data-layout-shift-boundary-id":t||"PageContainer",height:_?`calc(100vh - ${f}px)`:u,paddingX:c?i.D6:void 0,paddingY:r||d?void 0:3,children:(0,l.jsx)(a.C,{value:!!c,children:e})})}},134879:(e,t,r)=>{"use strict";r.d(t,{C:()=>o,V:()=>a});var n=r(667294);let i=(0,n.createContext)(!1),o=i.Provider,a=()=>(0,n.useContext)(i)},48714:(e,t,r)=>{"use strict";r.d(t,{Se:()=>y,iw:()=>E,gV:()=>m,G3:()=>g,Gj:()=>v,Jd:()=>f,$3:()=>h});var n=r(56641),i=r(231486),o=r(226198),a=r(186656),s=r(250059);let l=e=>"string"!=typeof e&&e?e.state:null;var c=r(643913),u=r(547239),d=r(508847),_=r(579164),p=r(333155);let f=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},m=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),h=({location:e,pinId:t,surface:r})=>!!r&&!p.ZF.includes(r)||e.pathname.includes(t),y=(e,t)=>{var r,n;let a=Math.round(1e3*Math.random())+"",s=Math.round(1e3*Math.random())+"";i.t8((0,o.GS)(a),s);let l={token:`${a}-${s}`,url:e,...t&&!t.params?t.queryParams:(null==t?void 0:t.params)&&{pin:null!==(r=t.params.pinId)&&void 0!==r?r:void 0,isThirdPartyAd:null!==(n=t.params.isThirdPartyAd)&&void 0!==n?n:void 0,csr:t.params.csrId&&!t.params.pinId?t.params.csrId:void 0,client_tracking_params:t.params.clientTrackingParams,aux_data:t.params.auxData?JSON.stringify(t.params.auxData):void 0}};return`/offsite/?${(0,c.Z)(l)}`},v=(e,t)=>{(0,n.Z)(y(e,t),!0,null==t?void 0:t.features)},E=async({clientTrackingParams:e,href:t,isMounted:r,pinId:n,spamCheckCallback:i})=>{let o=await (0,a.Z)({url:"/v3/offsite/",data:{check_only:!0,client_tracking_params:e,pin_id:n,url:t}});if(!o.resource_response.error&&r){let e=o.resource_response.data||{},{message:t,redirect_status:r,url:n}=e,a=["blocked","suspicious","porn"].includes(r);i({blocked:a,message:t,redirectStatus:r,sanitized_url:n})}},g=({event:e,onHistoryChange:t,href:r,history:i,target:o})=>{let a=(0,s.Z)(r),c=l(r),p=(0,u.Z)(a);p===_.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===o?(0,n.Z)(a,"blank"===o):i&&p===_.Z.SAME_ORIGIN&&(i.push((0,d.Z)({url:a}),null!=c?c:{}),t&&t({event:e}))}},287072:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n=r(667294),i=r(616550),o=r(768559),a=r(48714),s=r(188335),l=r(250059),c=r(149230),u=r(108234),d=r(67347);function _(e){var t,r,_;let{externalData:p,href:f,onHistoryChange:m,target:h}=e,[y,v]=(0,n.useState)(null),[E,g]=(0,n.useState)(!1),b=(0,i.useHistory)(),S=(0,i.useLocation)(),P=(0,l.Z)(f),A=(0,c.Z)({url:P}),{showWarning:R}=null!==(t=(0,u.s)())&&void 0!==t?t:{},{pin:w,surface:O}=p||{},T=w?(0,o.Z)({boardUrl:null===(r=w.board)||void 0===r?void 0:r.url,location:S,pinId:w.entityId,pinnerUserName:null===(_=w.pinner)||void 0===_?void 0:_.username,storyPinDataId:w.storyPinDataId,trackingParams:w.trackingParams,trackingParamsMap:w.trackingParamsMap}):null,I=(0,s.Z)();return(0,n.useEffect)(()=>(g(!0),()=>{g(!1)}),[]),(0,n.useEffect)(()=>{A&&w&&null===y&&E&&(!w.promoter||w.isDownstreamPromotion)&&(0,a.$3)({location:S,pinId:w.entityId,surface:O})&&(0,a.iw)({clientTrackingParams:T,isMounted:E,pinId:w.entityId,spamCheckCallback:e=>v(e),href:P})},[T,w,O,P,A,E,S,y]),({event:e})=>{if(!(0,a.gV)({isOffsiteUrl:A,event:e})){if(e.preventDefault(),!f||"string"==typeof f&&f.startsWith("#")){(0,d.nP)("link_navigation_empty_href",{sampleRate:1,tags:{route:S.pathname,href:f}});return}if(A||null!=p&&p.dangerouslyForceOffsiteUrl){var t;I({auxData:null==p?void 0:p.auxData,clientTrackingParams:T,pin:(null==p?void 0:p.pin)&&{attributionSourceId:p.pin.attributionSourceId,campaignId:p.pin.campaignId,isPromoted:p.pin.isPromoted,pinPromotionId:p.pin.pinPromotionId,isThirdPartyAd:p.pin.isThirdPartyAd,advertiserId:p.pin.advertiserId},pinId:null==p?void 0:null===(t=p.pin)||void 0===t?void 0:t.entityId,queryParams:null==p?void 0:p.queryParams,showWarning:R,spamCheck:y,url:P})}else(0,a.G3)({event:e,href:f,history:b,onHistoryChange:m,target:"blank"===h?"blank":null})}}}},188335:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(983722),i=r(619937),o=r(337815),a=r(366284),s=r(407043),l=r(48714),c=r(43760);let u=(e,t,r)=>{let n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener nofollow noreferrer"),n.style.cursor="pointer",n.style.display="block",n.setAttribute(i.$N.ATTRIBUTION_SOURCE_ID,e),n.setAttribute(i.$N.ATTRIBUTE_DESTINATION,r),n.setAttribute(i.$N.ATTRIBUTE_ON,r),n.click()},d=(e,t,r,n,a)=>{let s=(0,o.m_)(e,r,!0,n,a),l=document.createElement("a");l.setAttribute("href",t),l.setAttribute("target","_blank"),l.setAttribute("rel","noopener nofollow noreferrer"),l.style.cursor="pointer",l.style.display="block",l.setAttribute(i.NR.SOURCE,s),l.click()},_=()=>{let{logContextEvent:e}=(0,s.v)();return({attributionSourceId:t,auxData:r,campaignId:i,clientTrackingParams:o,href:s,isPromoted:c,pinId:_,pinPromotionId:p,isThirdPartyAd:f,advertiserId:m})=>{var h,y,v;if(!c)return!1;let E=(0,n.Z)(),g=(0,l.Se)(s,{params:{pinId:_,csrId:null,clientTrackingParams:o,auxData:r,isThirdPartyAd:f}}),b=null!==(h=null==E?void 0:E.userAgent.browserName)&&void 0!==h?h:"";if((0,a.G6)(b)){let{group:r}=null!==(y=null==E?void 0:E.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==y?y:{},n=null!=E&&E.userAgent.browserVersion?E.userAgent.browserVersion:"0.0",a=parseFloat(n.split(".")[0]+"."+n.split(".")[1]);if(t&&a>=14.1&&["enabled_safari"].includes(r))return u(t,g,s),e({event_type:101,clientTrackingParams:o,object_id_str:_||"",aux_data:{pin_id:_||"",click_measurement_ppid:p||"",click_measurement_campaign_id:i||"",is_pcm:!0,attribution_source_id:t,page_url:s}}),!0}else if((0,a.i7)(b)&&null!==(v=window.document.featurePolicy)&&void 0!==v&&v.allowsFeature("attribution-reporting"))return d(t,g,s,i,m),e({event_type:101,clientTrackingParams:o,object_id_str:_||"",aux_data:{pin_id:_||"",click_measurement_ppid:p||"",click_measurement_campaign_id:i||"",is_arapi:!0,attribution_source_id:t,page_url:s}}),!0;return!1}},p=e=>{let t=_();return({auxData:r,clientTrackingParams:n,pin:i,pinId:o,queryParams:a,showWarning:s,spamCheck:u,url:d})=>{if("undefined"!=typeof window&&window.Windows){(0,c.Z)(d,{clientTrackingParams:n,pinId:o,hasPin:!!i,auxData:r,isThirdPartyAd:null==i?void 0:i.isThirdPartyAd});return}if(!i&&!(null!=e&&e.isFromClickthroughLink)){(0,l.Gj)(d,a?{queryParams:a}:{params:{pinId:o}});return}if(null!=u&&u.blocked){null==s||s(u);return}i&&t({attributionSourceId:i.attributionSourceId,auxData:r,campaignId:i.campaignId?String(i.campaignId):null,clientTrackingParams:n,href:d,isPromoted:i.isPromoted,pinId:o,pinPromotionId:i.pinPromotionId?String(i.pinPromotionId):null,isThirdPartyAd:i.isThirdPartyAd,advertiserId:i.advertiserId?i.advertiserId:null})||(0,l.Gj)(d,{params:{clientTrackingParams:n,auxData:r,pinId:o,isThirdPartyAd:null==i?void 0:i.isThirdPartyAd}})}}},713930:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(67347);function i(e,t){return new Promise((r,i)=>{if(document.querySelector(`script[src="${e}"]`)){let e=0;if("FACEBOOK"===t){if(window.FB)r();else{let t=setInterval(()=>{window.FB||20===e?(clearInterval(t),r()):(e+=1,(0,n.nP)(`mweb.loadScript.facebook.tries_${e}`,{sampleRate:.01}))},100)}}else if("GSI"===t){if(window.google)r();else{let t=setInterval(()=>{window.google||20===e?(clearInterval(t),r()):(e+=1,(0,n.nP)(`mweb.loadScript.gsi.tries_${e}`,{sampleRate:.01}))},100)}}else r()}else{let t=document.createElement("script");t.src=e,t.async=!0,t.addEventListener("load",()=>r()),t.addEventListener("error",i),document.getElementsByTagName("head")[0].appendChild(t)}})}},539278:(e,t,r)=>{"use strict";r.d(t,{Di:()=>_,Jl:()=>c,R:()=>u,ZP:()=>y,aU:()=>p,j2:()=>d,pN:()=>f,rL:()=>v,vW:()=>h});var n=r(883119),i=r(356997),o=r(499128),a=r(349700),s=r(826067),l=r(785893);let c=7e3,u="permanent_account_closure",d="account_deletion_email_sent",_="account_deactivated",p="unlink_successful",f="account_switch_to_settings";function m(e,t,r){return(0,l.jsx)(n.xv,{align:r||"center",children:(0,a.nk)(e,{username:(0,l.jsx)(n.xv,{inline:!0,weight:"bold",children:t})})})}function h({i18n:e,message:t,multipleAccounts:r,username:n=""}){switch(t){case u:return e._('Your account has been deleted. We\'re sad to see you go', 'unauthLoginPage.accountDeletedToast.message', 'Confirmation message after a user has successfully deleted their account');case d:if(r)return m(e._('An email has been sent with final steps to delete your account, {{username}} and its linked accounts', 'accountDeletedEmailToast.message.multipleAccounts', 'Confirmation message after a user has successfully requested multiple accounts deletion'),n);return m(e._('An email has been sent with final steps to delete your account, {{username}}', 'accountDeletedEmailToast.message.singleAccount', 'Confirmation message after a user has successfully requested a single account deletion'),n);case _:return m(r?e._('The account, {{username}}, and its associated linked accounts have been deactivated', 'unauthLoginPage.deactivatedToast.message.multipleAccounts', 'Confirmation message after a user has successfully deactivated multiple accounts'):e._('The account, {{username}}, has been deactivated', 'unauthLoginPage.deactivatedToast.message.singleAccount', 'Confirmation message after a user has successfully deactivated a single account'),n);case p:return m(e._('Success! You\'ve unlinked this business account. You are currently in {{username}}.', 'authHomeFeedPage.unlinkAccountToast.message', 'Confirmation message after a user has successfully unlinked business account'),n,"start");case f:return m(e._('You\'ve switched into and are currently in the account {{username}}', 'accountSettings.switchAccountToAccountChanges', 'Confirmation message after a user has successfully switched accounts and got redirected to Account Changes'),n,"start");default:return""}}function y(e,t,r=""){if(!(t&&t.search))return"";let{message:n}=(0,s.mB)(t.search),i=(0,s.mB)(t.search).username||r,o="true"===(0,s.mB)(t.search).multiple_accounts;return h({i18n:e,message:n,multipleAccounts:o,username:i})}function v({showOneToast:e,i18n:t,location:r,history:n,username:a,fullName:u,avatarUrl:d}){if(!(r&&r.search))return;let _=y(t,r,a||""),{message:m}=(0,s.mB)(r.search),h=m===f||m===p;_&&(e(({hideToast:e})=>(0,l.jsx)(o.ZP,{duration:c,onHide:e,text:_,thumbnail:h?{avatar:(0,l.jsx)(i.qE,{name:u||"",src:d||"",size:"md"})}:void 0})),n.replace(r.hash?`${r.pathname}${r.hash}`:r.pathname))}},767546:(e,t,r)=>{"use strict";r.d(t,{Z:()=>function e(t,r,n=()=>void 0){let i=n(t,r);return void 0!==i?i:void 0===r?t:Array.isArray(t)&&Array.isArray(r)?r.reduce((t,i,o)=>(t[o]=e(t[o],r[o],n),t),[...t]):t&&"object"==typeof t&&r&&"object"==typeof r?Object.keys(r).reduce((t,i)=>(t[i]=e(t[i],r[i],n),t),{...t}):r}})},7893:(e,t,r)=>{"use strict";r.d(t,{Kw:()=>s,RD:()=>l,dD:()=>u});var n=r(214494),i=r(186656),o=r(884732);let a=["partner.biz_ownership_email","partner.business_name","partner.contact_email","partner.contact_phone","partner.contact_phone_country()","partner.enable_profile_address","partner.enable_profile_message","partner.is_linked_business","partner.profile_place()","place.country","place.extra_street","place.locality","place.postal_code","place.region","place.street","user.businesses()","user.email","user.fast_advertiser_info_has_any_managed_advertisers","user.full_name","user.id","user.image_medium_url","user.owners()","user.partner()","user.username"],s=async()=>{var e;let t=await n.Z.create("UserSessionResource",{session_accounts:!0}).callCreate();return(null===(e=t.resource_response.data)||void 0===e?void 0:e.session_accounts)||{}},l=(e,t)=>{let r=Object.freeze({});try{r=(0,o.rl)()}catch(r){e(`${t}.removeAccountDataFromLocalStorage.jsonParseFailed`)}let n=Object.keys(r);if(e(`${t}.removeAccountDataFromLocalStorage.start`),0===n.length||r[n[0]].logged_in){e(`${t}.removeAccountDataFromLocalStorage.early_return`);return}let i=n.reduce((e,t)=>({...e,[t]:{logged_in:!0}}),{});(0,o.r8)(i),e(`${t}.removeAccountDataFromLocalStorage.updated`)},c=e=>{var t,r,n,i;return{id:e.id,username:e.username,email:e.email,fullName:e.full_name,imageMediumUrl:e.image_medium_url,imageLargeUrl:e.image_large_url||"",owners:e.owners||null,partner:e.partner?{bizContactEmail:(null===(t=e.partner)||void 0===t?void 0:t.contact_email)||"",bizOwnershipEmail:(null===(r=e.partner)||void 0===r?void 0:r.biz_ownership_email)||e.email||"",businessName:null===(n=e.partner)||void 0===n?void 0:n.business_name,isLinkedBusiness:null===(i=e.partner)||void 0===i?void 0:i.is_linked_business}:null,businesses:((null==e?void 0:e.businesses)||[]).map(t=>{var r,n,i,o;return{...c(t),partner:{bizContactEmail:(null===(r=t.partner)||void 0===r?void 0:r.contact_email)||"",bizOwnershipEmail:(null===(n=t.partner)||void 0===n?void 0:n.biz_ownership_email)||e.email||"",businessName:null===(i=t.partner)||void 0===i?void 0:i.business_name,isLinkedBusiness:null===(o=t.partner)||void 0===o?void 0:o.is_linked_business}}})}},u=async e=>{let t=await s(),r=e.id;t[r]||(t[r]={logged_in:!0});let n=Object.keys(t||{}),o=n.map(e=>({uri:`v3/users/${e}/`,method:"GET",params:{fields:a.join(",")}})),l=await (0,i.Z)({url:"/v3/batch/",method:"POST",data:{requests:JSON.stringify(o)}}),u=l.resource_response.data;if(u&&Object.keys(u).length>0){let e=Object.keys(u),t=e.filter(e=>"success"===u[e].status).map(e=>c(u[e].data));return function(e){let t=e.every(e=>!!e.fullName),r=t?"fullName":"username";return[...e].sort((e,t)=>e[r]>t[r]?1:t[r]>e[r]?-1:0)}(t)}return[]}},467570:(e,t,r)=>{"use strict";r.d(t,{GH:()=>l,JF:()=>y,Jb:()=>p,MI:()=>m,_V:()=>c,sl:()=>d,we:()=>_});var n=r(816068),i=r(186656),o=r(713930),a=r(935879),s=r(867820);let l="274266067164",c=()=>["public_profile","email","user_friends"],u=["picture.type(large)","id","first_name","last_name","email","gender"],d=e=>{e&&(0,s.dy)({event:"load_script_success",provider:"facebook"}),"undefined"!=typeof window&&window.FB?(e&&(0,s.dy)({event:"initialize_library",provider:"facebook"}),window.FB.init({appId:l,status:!0,xfbml:!0,version:"v2.7"})):e?(0,s.dy)({event:"global_object_not_found",provider:"facebook"}):(0,s.My)("pcons.non_autologin.fb.global_object_not_found")},_=(e,t)=>{t&&(0,s.dy)({event:"load_script_start",provider:"facebook"});let r=(0,o.Z)((0,a.Z)(e),"FACEBOOK");return r.then(()=>d(t))},p=()=>new Promise(e=>{"undefined"!=typeof window&&window.FB&&window.FB.getLoginStatus(e)}),f=({userID:e,accessToken:t,data:{birthday:r,email:i,first_name:o,gender:a,last_name:s,picture:l}})=>({type:"facebook",facebook_id:e,facebook_token:t,birthday:r?(0,n.Z)(r):void 0,email:i,first_name:o,gender:a,image_url:l&&!l.data.is_silhouette?l.data.url:void 0,last_name:s});async function m(e){let t=await (0,i.Z)({url:"/v3/facebook/profile_data/",method:"POST",data:{access_token:e,pii_safe_birthday:!0,fields:u}}),r=t.resource_response.data||{};return(0,s.My)(r?"pcons.facebook_user.non_empty_user_data_returned":"pcons.facebook_user.empty_user_data_returned"),{access_token:e,birthday:r.birthday,email:r.email,first_name:r.first_name,gender:r.gender,id:r.id,last_name:r.last_name,picture:r.picture}}let h=(e,t)=>new Promise((r,n)=>{if("connected"!==e.status){n({status:e.status||"unknown"});return}let{userID:i,accessToken:o}=e.authResponse;m(o).then(e=>{r({creds:{facebook_id:i,facebook_token:o,facebook_autologin:(null==t?void 0:t.autologin)||!1},signupOptions:f({userID:i,accessToken:o,data:e})})},n)}),y=()=>new Promise(e=>{window.FB.login(e,{scope:c().join(",")})}).then(e=>h(e))},935879:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});let n=e=>{let t=e.replace(/-/g,"_");if(t.startsWith("es"))return"es_LA";if(t.startsWith("ar"))return"ar_AR";switch(t){case"de":return"de_DE";case"fr":return"fr_FR";case"it":return"it_IT";case"ja":return"ja_JP";case"nl":return"nl_NL";case"tr":return"tr_TR";case"en_AU":return"en_US";default:return t}},i=e=>`//connect.facebook.net/${n(e)}/sdk.js`},290148:(e,t,r)=>{"use strict";r.d(t,{Ny:()=>d,ZP:()=>p,eD:()=>m,lp:()=>f,nY:()=>h});var n=r(78714),i=r(432300),o=r(957161),a=r(966113),s=r(867820),l=r(794230),c=r(704115),u=r(709113);let d=Object.freeze({SOFT_BANNED:0,RATE_LIMITED:1,LOGIN_ASSISTANCE:2,PASSWORD_RESET_SENT:3,PREVENT_FACEBOOK_REGISTER:4,PREVENT_GOOGLE_REGISTER:5,SUSPENDED:6});class _{static defaultLoginRedirectUrl(){return window.location.pathname===a.lfe||window.location.pathname===a.ZEf||window.location.pathname.startsWith(a.rOJ)?"/":window.location.pathname+window.location.search}static defaultSocialLoginRedirectUrl(){return window.location.pathname.startsWith(a.rOJ)?"/":window.location.pathname}static isExceedRecaptchaLocalLimit(){let e=o.Z.getItem(u.kl);if(e&&e.indexOf("|")>-1){let t=e.split("|");return 3===t.length&&new Date().getTime()/1e3-parseInt(t[0],10)<=3600}return!1}static updateRecaptchaTimeStamp(){let e=o.Z.getItem(u.kl),t=[];e&&3===(t=e.split("|")).length&&t.shift();let r=(new Date().getTime()/1e3).toString();t.push(r);let n=t.join("|");o.Z.setItem(u.kl,n)}static isFullyLoggedIn(e,t){return e&&t===i.Z.DEFAULT}static handleRedirect(e){if(!e){e="/";let t=(0,c.Z)();if(t){let r=t.next;r&&(e=r,delete t.next),e=(0,l.Z)(e,t)}}(0,n.Z)(e)}static handleRedirectWithFallbackWindowLocation(){this.handleRedirect(this.defaultLoginRedirectUrl())}static handleSignupRedirect(e,t){o.Z.setItem(u.F6,Date.now()),!t&&e&&"/"!==e?_.handleRedirect(e):_.handleRedirect("/")}static storeLoginCredentialsToBrowser(e){let t=window.navigator.credentials;if(t&&e.username_or_email)try{let r=new window.PasswordCredential({id:e.username_or_email,password:e.password});t.store(r).then(()=>{(0,s.My)("navigatorCredentials.store.success")})}catch(e){(0,s.My)("navigatorCredentials.store.error")}}static handleLoginMfa(e,t,r){(0,s.My)("multi_step_login"),_.storeLoginCredentialsToBrowser(e),r?r(e,t):(0,s.My)("unauth.login.error.CLIENT_ERROR.null_mfa_handler")}}let p=_;function f(e){return e.facebook_id?"facebook":e.google_open_id_token?"google_one_tap":e.line_id_token?"line":e.username_or_email?"email":"other"}function m(e){return e.mfa_token?"mfa_token":e.mfa_resend?"mfa_resend":f(e)}function h(e){return e.facebook_id?"facebook":e.google_open_id_token?"google":e.username_or_email?"email":"other"}},884732:(e,t,r)=>{"use strict";r.d(t,{M3:()=>c,PE:()=>a,Q:()=>u,lv:()=>s,r8:()=>o,rl:()=>i,yW:()=>l});var n=r(844974);let i=()=>{try{let e=(0,n.qn)("MULTIPLE_ACCOUNTS");return e?JSON.parse(e):Object.freeze({})}catch(e){return Object.freeze({})}},o=e=>(0,n.Nh)("MULTIPLE_ACCOUNTS",JSON.stringify(e)),a=()=>!!(0,n.qn)("MULTIPLE_ACCOUNTS"),s=()=>Object.keys(i()).length,l=()=>{try{let e=(0,n.qn)("MULTIPLE_ACCOUNTS_GROUP");return e?JSON.parse(e):null}catch(e){return null}},c=e=>(0,n.Nh)("MULTIPLE_ACCOUNTS_GROUP",JSON.stringify(e)),u=()=>({multipleAccountMap:i(),multipleAccountGroupId:l()})},773285:(e,t,r)=>{"use strict";r.d(t,{F:()=>o,a:()=>i});var n=r(425288);let{Provider:i,useHook:o}=(0,n.Z)("ExperimentContext")},780280:(e,t,r)=>{"use strict";r.d(t,{B:()=>d,LC:()=>c,P2:()=>l,fH:()=>u,gf:()=>_});var n=r(667294),i=r(608832),o=r(239745),a=r(785893);let s=(0,n.createContext)();function l({children:e,initialValue:t}){let[r,l]=(0,n.useState)(t),c=(0,n.useMemo)(()=>({requestContext:r,updateRequestContext:e=>{let t={...r,...e};(0,o.Z)(r,e)||l(t),(0,i.J)(t)}}),[r]);return(0,a.jsx)(s.Provider,{value:c,children:e})}let c=({children:e})=>{let t=(0,n.useContext)(s);if(!t)throw Error("RequestContextConsumer must be used within a RequestContextProvider");return e(t.requestContext)},u=({children:e})=>{let t=(0,n.useContext)(s);if(!t)throw Error("RequestContextConsumer must be used within a RequestContextProvider");return e(t.requestContext)};function d(){let e=(0,n.useContext)(s);if(!e)throw Error("useRequestContext must be used within a RequestContextProvider");return e.requestContext}function _(){let e=(0,n.useContext)(s);if(!e)throw Error("useUpdateRequestContext must be used within a RequestContextProvider");return e.updateRequestContext}},608832:(e,t,r)=>{"use strict";let n;function i(e){n=e}function o(){return n}r.d(t,{J:()=>i,l:()=>o})},239745:(e,t,r)=>{"use strict";function n(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(r=>e[r]===t[r])}r.d(t,{Z:()=>n})},458882:(e,t,r)=>{"use strict";r.d(t,{l:()=>o,r:()=>a});var n=r(667294);let i=(0,n.createContext)(null),o=()=>(0,n.useContext)(i),a=i.Provider},619277:(e,t,r)=>{"use strict";r.d(t,{o$:()=>i,ty:()=>o,vE:()=>a});var n=r(425288);let{Provider:i,MaybeConsumer:o,useMaybeHook:a}=(0,n.Z)("inviteContext")},52022:(e,t,r)=>{"use strict";r.d(t,{S:()=>s,Z:()=>l});var n=r(667294),i=r(616550),o=r(53987),a=r(867820);let s=e=>(0,o.L6)(e)?"pin":(0,o.am)(e)?"board":(0,o.Xn)(e)?"login":(0,o.C$)(e)?"home":(0,o.cD)(e)?"profile":(0,o.dr)(e)?"ideas":(0,o.gT)(e)?"ideas-root":(0,o.tZ)(e)?"videos":(0,o.Q0)(e)?"videos-category":(0,o.$Y)(e)?"article":(0,o.E0)(e)?"shopping-spotlight":(0,o.Zz)(e)?"today":(0,o.j8)(e)?"unauth-profile":(0,o.f1)(e)?"shopping-root":(0,o.OX)(e)?"shopping-category":"other";function l(){let e=(0,i.useLocation)();return(0,n.useCallback)(({action:t,item:r,within:n})=>{let i=s(e);(0,a.My)(`logged_out_product.interaction.${i}.${t}`,{item:r||"none",within:n||"none"})},[e])}},343341:(e,t,r)=>{"use strict";r.d(t,{F9:()=>o,Zo:()=>i});var n=r(425288);let{Provider:i,useHook:o}=(0,n.Z)("toastManagerContext")},250059:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=e=>e?"string"==typeof e?e:e.pathname?e.pathname:"":""},149230:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(954931);let i=({url:e})=>!!(e&&e.match(/^https{0,1}:\/\//)&&!(0,n.Z)(e))},508847:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});let n=(e,t)=>0===e.lastIndexOf(t,0);var i=r(567831);let o=({url:e})=>{let t=(0,i.Z)("/");return n(e,t)?e.substr(t.length-1):e}},50286:(e,t,r)=>{"use strict";r.d(t,{HG:()=>d,Kf:()=>a,Mq:()=>i,Wb:()=>u,ZP:()=>_,dA:()=>s,ds:()=>l,ml:()=>c});var n=r(780280);function i(e){let{isMobile:t,isTablet:r}=e.userAgent;return r?"tablet":t?"phone":"desktop"}let o=()=>{let e=(0,n.B)();return i(e)},a=e=>"phone"===e,s=e=>"tablet"===e,l=e=>"desktop"===e,c=()=>a(o()),u=()=>s(o()),d=()=>l(o()),_=o},829407:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(667294);let i=e=>{(0,n.useEffect)(e,[])}},19121:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,Z:()=>a});var n=r(425288);let{Provider:i,useHook:o}=(0,n.Z)("viewer"),a=o},43760:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(186656),i=r(48714);function o(e,t){let{auxData:r,clientTrackingParams:o,hasPin:a,pinId:s,isThirdPartyAd:l}=t||{},c={pin_id:s,check_only:!0,client_tracking_params:a?o:void 0,url:e,aux_data:JSON.stringify(r)};l&&(c.third_party_ad=s,delete c.pin_id),(0,n.Z)({url:"/v3/offsite/",data:c}).then(t=>{if(t&&t.resource_response&&!t.resource_response.error){let{resource_response:e}=t,{redirect_status:r,url:n}=e.data,i=["blocked","suspicious","porn"].includes(r);if(!i){if(window.Windows.Foundation&&window.Windows.System&&window.Windows.System.Launcher&&window.Windows.System.Launcher.launchUriAsync){let e=new window.Windows.Foundation.Uri(n);window.Windows.System.Launcher.launchUriAsync(e)}return}}(0,i.Gj)(e,{params:a?{pinId:s,clientTrackingParams:o,auxData:r,isThirdPartyAd:l}:{pinId:s}})})}},333155:(e,t,r)=>{"use strict";r.d(t,{UP:()=>s,Wv:()=>i,ZF:()=>n,zI:()=>o,zl:()=>a});let n=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],i=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],o=[...i,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],a=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingGridShippedMetadataWithVisitButton"],s=["BaseBoardPinGrid"]},379764:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(883119),i=r(633988);let o=new n.H3([i.Z]),a=o},108234:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h,s:()=>m});var n=r(667294),i=r(425288),o=r(608575),a=r(883119),s=r(121151),l=r(898781),c=r(349700),u=r(785893);let d=()=>{var e;let t=(0,l.ZP)(),{dismissWarning:r}=null!==(e=m())&&void 0!==e?e:{};return(0,u.jsx)(a.xu,{paddingX:3,children:(0,u.jsx)(a.zx,{fullWidth:!0,color:"red",onClick:r,text:t._('Okay', 'Dismiss a modal stating that clicking through to a link has been blocked', 'Dismiss a modal stating that clicking through to a link has been blocked')})})},_=()=>{let e=(0,l.ZP)();return(0,u.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,u.jsx)(a.rU,{target:"blank",href:"https://policy.pinterest.com/community-guidelines#section-spam",display:"inlineBlock",underline:"hover",children:e._('Learn more', 'Link text leading to policy website', 'Link text leading to policy website')})})},p=({message:e,sanitized_url:t})=>{var r;let n=(0,l.ZP)(),{dismissWarning:i}=null!==(r=m())&&void 0!==r?r:{};return(0,u.jsx)(s.ZP,{accessibilityModalLabel:n._('We have blocked this link', 'Modal label when clicking a spammy link', 'Modal label when clicking a spammy link'),onDismiss:i,heading:n._('Heads up!', 'Modal heading when clicking through to a link has been blocked', 'Modal heading when clicking through to a link has been blocked'),footer:(0,u.jsx)(d,{}),children:(0,u.jsxs)(a.xu,{padding:6,children:[(0,u.jsx)(a.xv,{children:(0,c.nk)("{{ message }} {{ learnMore }}",{message:e,learnMore:(0,u.jsx)(_,{},"learnMoreLink")})}),(0,u.jsxs)(a.xu,{alignItems:"center",display:"flex",marginTop:4,children:[(0,u.jsx)(a.xu,{marginEnd:3,children:(0,u.jsx)(a.JO,{accessibilityLabel:n._('Blocked link address', 'Icon label preceding a block url', 'Icon label preceding a block url'),color:"error",icon:"report",inline:!0,size:24})}),(0,u.jsx)(a.xv,{inline:!0,lineClamp:1,weight:"bold",children:o.parse(t).hostname})]})]})})},{Provider:f,useMaybeHook:m}=(0,i.Z)("SpammyClickthrough");function h({children:e}){let[t,r]=(0,n.useState)(null),i=(0,n.useCallback)(()=>{r(null)},[r]),o=(0,n.useCallback)(e=>{r(e)},[r]),a=(0,n.useMemo)(()=>({dismissWarning:i,showWarning:o}),[i,o]);return(0,u.jsxs)(f,{value:a,children:[t&&(0,u.jsx)(p,{...t}),e]})}},398061:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s,e:()=>a});var n=r(883119),i=r(780280),o=r(785893);let a=new n.Ry(1);function s({children:e,isImagePinForUnauthOnTablet:t}){let{isAuthenticated:r}=(0,i.B)();return(0,o.jsxs)(n.xu,{alignItems:"center",bottom:!0,dangerouslySetInlineStyle:{__style:{cursor:"pointer",width:t?"40vw":void 0}},zIndex:r?void 0:a,display:"flex",justifyContent:"center",left:!0,position:"absolute",right:!t||void 0,top:!0,children:[(0,o.jsx)(n.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"#000",borderRadius:"6px 6px 0 0",WebkitTransition:"opacity .04s linear",transition:"opacity .04s linear"}},left:!0,opacity:.4,position:"absolute",right:!0,top:!0}),e]})}},633988:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(883119),i=r(398061);let o=new n.H3([i.e]),a=o},116485:(e,t,r)=>{"use strict";r.d(t,{AA:()=>o,E9:()=>h,EU:()=>E,IO:()=>v,KH:()=>u,Lg:()=>p,QR:()=>c,Uw:()=>i,ZR:()=>g,dy:()=>l,eA:()=>_,eV:()=>f,fo:()=>m,k7:()=>a,rT:()=>y,tz:()=>d,u9:()=>b,zR:()=>s,zu:()=>n});let n="OPEN_UNAUTH",i="openUnauthType",o="_isAfterLogin",a="_lastVisitedPages",s="_lastVisitedPagesBeforeLogin",l="_lastVisitedBoardPages",c="_lastVisitedPagesBeforeNavPage",u="_lastVisitedSessionPages",d="_unauthVisitedPages",_=20,p="_inviteCodeRedemption",f="_paidTrafficLand",m="_unauthReferrerString",h="unauthTopicsFollowed",y=["US","CA","NZ","AU"],v=new Set(["GB","IE"]),E=new Set(["AT","BE","CH","DE","DK","ES","FR","IT","NL","NO","PT","SE"]),g=new Set(["BR","MX","AR","CL","CO","PE"]),b="ad_img"},534427:(e,t,r)=>{"use strict";r.d(t,{E:()=>a,S:()=>s});var n=r(667294),i=r(844974);let o="_loggingInNotHome",a=e=>{e?(0,i.Nh)(o,1):(0,i.L_)(o)},s=()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!0)},[]),e&&(0,i.qn)(o)}},639952:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>l,FK:()=>s,H5:()=>E,MI:()=>f,O0:()=>p,QZ:()=>a,W:()=>y,WF:()=>u,Wz:()=>g,a5:()=>d,dz:()=>h,e0:()=>_,e2:()=>o,iW:()=>v,n1:()=>i,rm:()=>c,xu:()=>m});var n=r(53987);let i=()=>({type:"DISMISS_UNAUTH_SAVE"}),o=()=>({type:"COMPLETE_UNAUTH_SAVE_ACTION"}),a=e=>({type:"SET_UNAUTH_SAVE_PIN_ID",payload:{unauthSavePinId:e}}),s=()=>({type:"HIDE_NAV_FOOTER"}),l=()=>({type:"SHOW_NAV_FOOTER"}),c=e=>({type:"SET_LOGIN_SIGNUP_FROM",payload:{from:e}}),u=()=>({type:"SHOW_REPIN_ANIMATION"}),d=()=>({type:"HIDE_REPIN_ANIMATION"}),_=e=>({type:"SET_NUM_SIGNUP_STEPS",payload:{steps:e}}),p=()=>({type:"SET_OWN_PROFILE_PINS_REFRESH"}),f=e=>({type:"SHOW_BIZ_NUX_HOMEFEED_LOADER",payload:e}),m=e=>({type:"SET_VIEWED_IMAGE",payload:{viewedImageSignature:e}}),h=e=>({type:"SET_VIEWED_SHARED_PINS",payload:{pins:e}}),y=()=>({type:"DISMISS_UNAUTH_APP_UPSELL"}),v=e=>e?{type:"LOGGED_OUT_USER_INFO_FOUND",payload:e}:{type:"LOGGED_OUT_USER_INFO_NOT_FOUND"},E=e=>({type:"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX",payload:e}),g=(e,t)=>({type:"SET_LANDING_PAGE_TYPE",payload:e?(0,n.bo)(e)?"today":(0,n.dr)(e)?"ideas":t&&(0,n.dZ)(e,t)?"own_section":t&&(0,n.J)(e,t)?"own_board":(0,n.OJ)(e)?"section":(0,n.am)(e)?"board":(0,n.L6)(e)?"closeup":(0,n.C$)(e)?"home":(0,n.cD)(e)?"profile":(0,n.En)(e)?"search":(0,n.$V)(e)?"topic":"":""})},404508:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(702664),i=r(616550),o=r(883119),a=r(112690),s=r(385740),l=r(898781),c=r(773285),u=r(957161),d=r(867820),_=r(52022),p=r(50286),f=r(709113),m=r(785893);function h({alignIconLeft:e,bgColor:t,color:r,disableRedirect:h=!1,fallbackUrl:y,icon:v="arrow-back",onTouch:E,padding:g,placement:b,shouldUseFallbackUrl:S,size:P="lg",viewParameter:A,viewType:R,fallbackUrlForExp:w}){let O=(0,l.ZP)(),T=(0,p.HG)(),{checkExperiment:I}=(0,c.F)(),C=(0,i.useHistory)(),N=(0,i.useLocation)(),x=(0,n.useSelector)(e=>e.session.isAuthenticated),k=(0,a.Z)(),D=(0,_.Z)(),L=!x&&w&&"/ideas"===y,{viewType:U,viewParameter:M}=(0,s.SU)(),[j,F]=R?[R,A]:[U,M],Z=()=>N.search&&N.search.includes("?nativeShouldDismiss=true"),$=()=>{let e=u.Z.getItem(f.pm);N.key||"/ideas"!==y?(0,d.My)(`pinner_conversion.back_button.${String(null==e?void 0:e[0].pageType)}`):(0,d.My)("pinner_conversion.back_button.no_history"),(0,d.My)(`web_back_button_click.${String(b)}.is_auth_${String(x)}`),D({action:"click",item:"back-button"}),j&&k({view_type:j,view_parameter:F,element:34,event_type:102}),E&&E(),h||((!N.key||N.state&&"redirect"===N.state.referrer||S)&&y?L?T&&I("web_unauth_backbutton_navigation").anyEnabled?(C.push(w||y),(0,d.My)("web.unauth.back_button.l1interest")):!T&&I("mweb_unauth_backbutton_navigation").anyEnabled?(C.push(w||y),(0,d.My)("mweb.unauth.back_button.l1interest")):C.push(y):C.push(y):N.pathname.includes("/password/reset/")&&Z()?C.push("/login/?dismissWebview=true"):C.goBack())};return(0,m.jsx)(o.xu,{"data-test-id":"back-button",children:e?(0,m.jsx)(o.xu,{display:"flex",width:48,height:48,alignItems:"center",marginStart:"cancel"===v?-1:-2,children:(0,m.jsx)(o.hU,{accessibilityLabel:O._('Back', 'navigation button', 'navigation button'),bgColor:t,iconColor:!r&&(!t||["white","lightGray","transparent"].includes(t))?"gray":r,icon:v,onClick:$,padding:"auto"!==g?g:2,size:P})}):(0,m.jsx)(o.hU,{accessibilityLabel:O._('Back', 'navigation button', 'navigation button'),bgColor:t,iconColor:!r&&(!t||["white","lightGray","transparent"].includes(t))?"gray":r,icon:v,onClick:$,padding:"auto"!==g?g:2,size:P})})}},424578:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(883119),i=r(112690),o=r(898781),a=r(867820),s=r(101331),l=r(785893);let c=({marginTop:e=4,marginBottom:t=0})=>{let r=(0,o.ZP)(),c=(0,i.Z)(),{trackConversionUpsell:u}=(0,s.Z)();return(0,l.jsxs)(n.xu,{display:"flex",justifyContent:"center",alignItems:"baseline",marginTop:e,marginBottom:t,children:[(0,l.jsx)(n.xu,{display:"flex",marginEnd:1,justifyContent:"center",children:(0,l.jsx)(n.xv,{align:"center",inline:!0,children:r._('Are you a business?', 'Prompt for business signup', 'Prompt for business signup')})}),(0,l.jsx)(n.xu,{display:"flex",justifyContent:"center","data-test-id":"create-business",children:(0,l.jsx)(n.rU,{display:"inlineBlock",target:"blank",href:"/business/create",onClick:()=>{(0,a.NC)("click_business_signup"),c({element:10281,event_type:102,view_type:10,view_parameter:3146}),u({viewParameter:47,viewType:10,eventType:14689,element:10281})},underline:"hover",children:(0,l.jsx)(n.xv,{align:"center",weight:"bold",children:r._('Get started here!', 'Prompt for signing up', 'Prompt for signing up')})})})]})}},542837:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(883119),i=r(112690),o=r(385740),a=r(898781),s=r(349700),l=r(966113),c=r(52022),u=r(785893);function d({isMobileHomepage:e,isBusiness:t=!1,alignText:r="center",modernizedUI:d}){let _=(0,a.ZP)(),p=(0,i.Z)(),f=(0,c.Z)(),{viewType:m,viewParameter:h}=(0,o.SU)(),y=l.R_9,v=l.cvl,E=t?l.V$B:l.U5h;return(0,u.jsx)(n.xu,{display:"flex",alignItems:"left"===r?"start":"center",alignSelf:"center",direction:"row",justifyContent:"center",paddingX:4,wrap:!0,children:(0,u.jsx)(n.xv,{color:e?"inverse":"subtle",align:"left"===r?"start":"center",size:"100",overflow:"normal",inline:!0,children:(0,s.nk)(_._('By continuing, you agree to Pinterest\'s {{ termsOfService }} and acknowledge you\'ve read our {{ privacyPolicy }}. {{ noticeAtCollection }}.', ' - ', ' -- '),{termsOfService:(0,u.jsx)(n.xu,{display:"inlineBlock","data-test-id":"business-tos",children:(0,u.jsx)(n.xv,{color:d&&"default"||e&&"inverse"||"subtle",inline:!0,size:"100",weight:"bold",children:(0,u.jsx)(n.rU,{href:E,display:"inlineBlock",target:"blank",onClick:()=>{f({action:"click",item:"business-tos"}),m&&p({view_type:m,view_parameter:h,element:8012,event_type:102})},underline:"hover",children:t?_._('Business Terms of Service', 'Mobile web business terms of service link for partners', 'Mobile web business terms of service link for partners'):_._('Terms of Service', 'Mobile web terms of service link', 'Mobile web terms of service link')})})},"termsOfService"),privacyPolicy:(0,u.jsx)(n.xu,{display:"inlineBlock","data-test-id":"privacy",children:(0,u.jsx)(n.xv,{color:d&&"default"||e&&"inverse"||"subtle",inline:!0,size:"100",weight:"bold",children:(0,u.jsx)(n.rU,{href:y,display:"inlineBlock",target:"blank",onClick:()=>{f({action:"click",item:"privacy-policy"}),m&&p({view_type:m,view_parameter:h,element:8004,event_type:102})},underline:"hover",children:_._('Privacy Policy', 'Mobile web privacy policy link', 'Mobile web privacy policy link')})})},"privacyPolicy"),noticeAtCollection:(0,u.jsx)(n.xu,{display:"inlineBlock","data-test-id":"noticeAtCollection",children:(0,u.jsx)(n.xv,{color:e?"inverse":"subtle",inline:!0,size:"100",weight:"bold",children:(0,u.jsx)(n.rU,{href:v,display:"inlineBlock",target:"blank",onClick:()=>{f({action:"click",item:"notice-at-collection"})},underline:"hover",children:_._('Notice at collection', 'Mobile web notice at collection link', 'termOfService.link.noticeAtCollection')})})},"noticeAtCollection")})})})}},562647:(e,t,r)=>{"use strict";function n(e){let[t,r]=e.split(/\/(.*)+/);return{filepath:r,site:t}}function i(e,t){return t?`${e||""}/${t}`:`/${e||""}`}r.d(t,{ac:()=>n,ke:()=>i})},597897:(e,t,r)=>{"use strict";r.d(t,{U:()=>o,Z:()=>a});var n=r(667294);let i=(0,n.createContext)();function o(){return(0,n.useContext)(i)}let a=i},497326:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:()=>n})},487462:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:()=>n})},894578:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(589611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.Z)(e,t)}},263366:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r.d(t,{Z:()=>n})},589611:(e,t,r)=>{"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}r.d(t,{Z:()=>n})}}]);
|
51
|
+
//# sourceMappingURL=https://sm.pinimg.com/webapp/58822-d1779ebe9d4fab59.mjs.map
|
Binary file
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[65610],{411938:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e,t,n=28){let r;if(!(e||{}).resurrection_info&&!(t||{}).resurrectionInfo)return!1;r=t?((t||{}).resurrectionInfo||{}).resurrectionDate:((e||{}).resurrection_info||{}).resurrection_dt;let o=new Date,i=r?new Date(r):o;return i.setDate(i.getDate()+n),new Date().getTime()<i.getTime()}},88307:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(186656),o=n(867820),i=n(529195);async function a(e){let t=(0,i.i$)(),n=(0,i.nR)(),a=(0,i.di)(),l=t?t.map(({pageType:e,...t})=>t):null,s={is_register:null!=e&&e};if(l&&(s.unauth_visited_pages=JSON.stringify(l)),n&&(s.invite_redemption=JSON.stringify(n)),a&&(s.paid_landing=JSON.stringify(a)),l||n||a){let e=await (0,r.Z)({url:"/v3/orientation/user_landing_signals/",method:"POST",data:s});(0,o.My)(`landing_signals.flush.${e.status}`),(0,i.z$)()}}},524172:(e,t,n)=>{n.d(t,{M:()=>m,Z:()=>P});var r=n(667294),o=n(366284),i=n(425288),a=n(83969),l=n(914772),s=n(773285),u=n(780280),_=n(867820),c=n(50286),d=n(785893);let g=["dweb_google_chrome_fedcm_eap_button_gesture","dweb_google_chrome_fedcm_eap_exempt_idp"],p=["mweb_google_chrome_fedcm_eap_button_gesture","mweb_google_chrome_fedcm_eap_exempt_idp"],f={dweb_google_chrome_fedcm_eap_exempt_idp:121,mweb_google_chrome_fedcm_eap_exempt_idp:121},{Provider:h,useMaybeHook:m}=(0,i.Z)("GoogleSignInApi"),b=()=>{let e=(0,c.HG)(),{checkExperiment:t}=(0,s.F)();return t(e?"web_google_disabled":"mweb_google_disabled").anyEnabled},w=()=>{let{userAgent:e}=(0,u.B)(),{browserName:t,platform:n}=e,r=null!=t?t:"";return(0,o.G6)(r)||"ios"===n},v=(e,t,n,r)=>e.some(e=>{let o=f[e]||116,i=n>=o;return(0,_.My)(`${r}.is_chrome.is_ver_at_least_${o}_${String(i)}`),i&&t(e).anyEnabled}),y=()=>{var e;let t=(0,c.HG)(),{checkExperiment:n}=(0,s.F)(),{userAgent:r}=(0,u.B)(),i=r.browserVersion?parseInt(r.browserVersion.split(".")[0],10):0,a=(0,o.i7)(null!==(e=r.browserName)&&void 0!==e?e:"");return a&&(t&&v(g,n,i,t?"dweb":"mweb")||!t&&"android"===r.platform&&v(p,n,i,t?"dweb":"mweb"))};function P({children:e}){let t=b(),n=w(),o=y(),i=(0,r.useRef)(null),s=(0,r.useRef)(new Set),g=(0,r.useRef)(new Set),p=(0,r.useRef)(null),{language:f}=(0,u.B)(),m=(0,c.HG)(),v=m?"dweb":"mweb",P=(0,r.useRef)(!1),E=(0,r.useCallback)(()=>{if(P.current)return;P.current=!0;let e=!1,t=()=>{let t=(0,a.Fm)();t&&!e&&(e=!0,(0,l.Z)({type:"loadScript",status:"success"}),(0,l.Z)({type:"apiClient",valid:!!t}),p.current=t,(0,a.OY)({autoSelect:!0,itpSupport:n,isFedCMEnabled:o},e=>{if((0,l.Z)({type:"response",valid:!!e}),!e)return;(0,_.My)(`${v}.google_sign_in.select_by.${e.select_by}`);let t=(0,a.PL)(e.select_by);if("SIGN_IN_WITH_GOOGLE_BUTTON"===t){let t=Array.from(s.current),n=t[t.length-1],r=i.current;n?n(e):r&&r(e)}else{var n;null===(n=i.current)||void 0===n||n.call(i,e)}}),g.current.forEach(e=>{e()}),g.current.clear())};window.onGoogleLibraryLoad=()=>t(),(0,l.Z)({type:"loadScript",status:"start"}),(0,a.Px)(void 0,f).then(()=>{t()}).catch(()=>{})},[n,f,o,v]);(0,r.useEffect)(()=>{t?(s.current.clear(),g.current.clear()):E()},[t,E]);let O=(0,r.useRef)({ensureInit:(e,t)=>(E(),"button"===e?s.current.add(t):i.current=t,new Promise(e=>{let t=!!p.current;t?e():g.current.add(e)})),removeButtonCallback:e=>{s.current.delete(e)}});return(0,d.jsx)(h,{value:O.current,children:e})}},83969:(e,t,n)=>{n.d(t,{Fm:()=>a,OY:()=>s,PL:()=>_,Px:()=>l,mK:()=>c,ru:()=>u});var r=n(713930),o=n(966113),i=n(867820);let a=()=>{var e,t,n;return null===(e=window)||void 0===e?void 0:null===(t=e.google)||void 0===t?void 0:null===(n=t.accounts)||void 0===n?void 0:n.id},l=(e,t)=>(0,r.Z)("https://accounts.google.com/gsi/client"+(t?`?hl=${t}`:""),null!=e&&e.unsafe?null:"GSI"),s=({autoSelect:e,itpSupport:t,isFedCMEnabled:n},r)=>{var i;null===(i=a())||void 0===i||i.initialize({auto_select:null!=e&&e,client_id:o.v3o,callback:r,cancel_on_tap_outside:!1,context:"use",itp_support:t,use_fedcm_for_prompt:n})},u=({buttonRef:e,isDesktop:t,locale:n,logo_alignment:r})=>{let o=a();if(o&&e.current){let t=e.current.offsetWidth;o.renderButton(e.current,{locale:n,size:"large",shape:"pill",text:"continue_with",theme:"outline",width:t+"px",logo_alignment:r,click_listener:()=>(0,i.EX)({event:"start",provider:"google"})})}else(0,i.My)((t?"unauth_web":"unauth_mweb")+".gsi_button.not_initialized")},_=e=>["auto","fedcm_auto"].includes(e)?"AUTO_LOGIN":e.startsWith("btn")?"SIGN_IN_WITH_GOOGLE_BUTTON":"ONE_TAP_PROMPT",c=e=>{switch(e){case"SIGN_IN_WITH_GOOGLE_BUTTON":return"gsi_btn";case"ONE_TAP_PROMPT":return"onetap_btn";default:return"other"}}},45169:(e,t,n)=>{n.d(t,{E_:()=>u,Eh:()=>i,du:()=>s,yV:()=>a});var r=n(109322),o=n(116485);let i=(e,t)=>"DEPRECATED_CHECK_EXISTS"===t?"facebook_id"in e&&"facebook"||"google_open_id_token"in e&&"google"||"line_id_token"in e&&"line"||"email":"DEPRECATED_CHECK_TRUTHY"===t?e.facebook_id?"facebook":e.google_open_id_token?"google":e.line_id_token?"line":"email":e.type,a=e=>{let t=i(e,"DEPRECATED_CHECK_TRUTHY");return"google"===t?"google_one_tap":t},l=(e="")=>e in r.i5,s=e=>o.rT.includes(e)||o.ZR.has(e)||l(e),u={GOOGLE:"g",FACEBOOK:"fb",PINTEREST:"p",APPLE:"apl",LINE:"ln",UNKNOWN:"unk"}},914772:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(701563),o=n(867820);let i=e=>(0,o.dy)({event:e,provider:"google"}),a=e=>(0,r.RP)("google_autologin",e),l=e=>(0,r.M3)("google_autologin",e),s=e=>{switch(e.type){case"loadScript":"start"===e.status?(i("start"),i("load_script_start"),l("autoLoginGoogleStart")):"success"===e.status?i("load_script_success"):i("load_script_failure");break;case"apiClient":e.valid?(i("initialize_library"),l("autoLoginGoogleInitEnd")):(a("noAccountFound"),i("global_object_not_found"));break;case"response":e.valid?(i("receive_credential_response_from_provider"),(0,o.EX)({event:"receive_credential_response_from_provider",provider:"google"})):(a("noResponse"),(0,o.EX)({event:"receive_no_credential_response_from_provider",provider:"google"}));break;case"autologin":"start"===e.status?(i("pinterest_login_start"),(0,o.NC)("press_google_one_tap_other"),(0,r.M3)("google_autologin","autoLoginGoogleEnd"),(0,r.PA)("google_autologin")):("success"===e.status?i("pinterest_login_success"):i("pinterest_login_failure"),i("end"));break;case"manualLoginAttempt":(0,o.NC)(e.fromConnectButton?"press_google_one_tap_button":"press_google_one_tap"),(0,r.PA)("google_autologin")}}},383690:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(667294),o=n(773285);let i=()=>{let e=(0,o.F)();return(0,r.useCallback)(()=>{e.flush()},[e])}},701563:(e,t,n)=>{n.d(t,{M3:()=>h,PA:()=>m,RP:()=>f,gq:()=>g});var r=n(991067),o=n(790348),i=n(543059),a=n(638089),l=n(558775),s=n(729524),u=n(358864),_=n(985271);let c=({name:e,pwtStaticContext:t})=>{if(!_.Z||!(0,r.Z)())return null;let n={type:"stopwatch",name:e},o=[],i=!0;return{abort:e=>{i&&(i=!1,(0,l.Z)({metricId:n,pwtStaticContext:t,result:{type:"ABORT",reason:e}}))},annotate:e=>{i&&o.push({label:e,timestamp:_.Z.now()})},stop:()=>{if(!i)return;i=!1;let e={type:"COMPLETE",traceId:(0,u.Z)(),startTime:0,endTime:_.Z.now(),spans:[],annotationMap:(0,s.Z)(o),binaryAnnotationMap:(0,a.ng)({metricId:n,pwtStaticContext:t})};(0,l.Z)({metricId:n,pwtStaticContext:t,result:e})}}},d={},g=(e,t)=>{t.forEach(t=>{d[t]=c({name:t,pwtStaticContext:e})})},p=e=>d[e],f=(e,t)=>{let n=p(e);if(n)try{n.abort(t)}catch(t){(0,o.H)("app_load_stopwatch_error",{name:e,result:"abort"})}},h=(e,t)=>{let n=p(e);n&&(n.annotate(t),(0,i.ZP)(`stopwatch_${e}_${t}`))},m=e=>{let t=p(e);if(t)try{t.stop()}catch(t){(0,o.H)("app_load_stopwatch_error",{name:e,result:"complete"})}}},729524:(e,t,n)=>{n.d(t,{Z:()=>r});let r=e=>{let t={};e.forEach(({label:e,timestamp:n})=>{t={...t,[e]:(t[e]||[]).concat([n])}});let n=Object.freeze({});return Object.keys(t).forEach(e=>{(t[e]||[]).forEach((t,r)=>{let o=r?`${e}_${r+1}`:e;n={...n,[o]:t}})}),n}},932046:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(826067);function o(){let e=(0,r.mB)(window.location.search);if("31"===e.utm_source)return"email";if(e.utm_pai)return"paid";let t=document.referrer;return t?t.includes("/t.co/")?"twitter":t.includes("cdn.ampproject.org")?"amp":t.includes("google.")?"google":t.includes("bing.")?"bing":t.includes("facebook.")?"facebook":"other":"direct"}},69642:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(667294),o=n(932046),i=n(867820);function a(){return(0,r.useCallback)(e=>{e.action&&e.event?(0,i.My)("pinner_conversion",{...e,type:e.type||"none",trigger:e.trigger||"other",referrer:(0,o.Z)()}):(0,i.My)("pinner_conversion.missing_tags")},[])}},348584:(e,t,n)=>{n.d(t,{D:()=>u,Z:()=>_});var r=n(667294),o=n(616550),i=n(826067),a=n(785893);let l=(0,r.createContext)(!1),s=()=>{var e,t;let n=(0,o.useLocation)(),r=(0,o.useHistory)();return(null===(e=r.location.state)||void 0===e?void 0:e.isAppFactoryOAuth)||(null!==(t=(0,i.mB)(n.search).next)&&void 0!==t?t:"").startsWith("/app-factory-oauth/")};function u({children:e}){let t=s(),[n,o]=(0,r.useState)(t);return(0,r.useEffect)(()=>{t&&o(!0)},[t]),(0,a.jsx)(l.Provider,{value:n,children:e})}function _(){return(0,r.useContext)(l)}},529195:(e,t,n)=>{n.d(t,{Cb:()=>L,Ff:()=>B,Lp:()=>w,O0:()=>C,OJ:()=>E,PW:()=>x,S2:()=>P,Yi:()=>k,Yy:()=>$,Z4:()=>h,ZN:()=>d,dc:()=>T,di:()=>v,i$:()=>p,nR:()=>m,oQ:()=>Z,t_:()=>g,z$:()=>N});var r=n(214494),o=n(231486),i=n(226198),a=n(844974),l=n(339363),s=n(867820),u=n(826067),_=n(116485),c=n(332215);let d=["utm_pai","utm_source","invite_code"],g=()=>(0,a.qn)(_.tz,""),p=()=>{let e;let t=g();try{e=JSON.parse(t)}catch(t){e=[]}return e},f=()=>(0,a.L_)(_.tz),h=(e,t)=>{let n=p(),r=n.length,o=r?n[0].path:"";if(r<_.eA&&(!r||e!==o)){let r={path:e,pageType:t,ts:Date.now()};(0,a.Nh)(_.tz,JSON.stringify([r].concat(n)))}},m=()=>{let e;let t=(0,a.qn)(_.Lg,"");try{e=JSON.parse(t)}catch(t){e=null}return e},b=()=>(0,a.L_)(_.Lg),w=e=>{if(!e)return;let t={inviteCode:e,ts:Date.now()};(0,a.Nh)(_.Lg,JSON.stringify(t))},v=()=>{let e;let t=(0,a.qn)(_.eV,"");try{e=JSON.parse(t)}catch(t){e=null}return e},y=()=>(0,a.L_)(_.Lg),P=(e,t)=>{if(!e)return;let n={...!!t&&{adImageUrl:t},campaignId:e,ts:Date.now()};(0,a.Nh)(_.eV,JSON.stringify(n))},E=()=>(0,a.qn)(_.fo,""),O=()=>(0,a.L_)(_.fo),L=e=>{(0,a.Nh)(_.fo,e)},N=()=>{g()&&f(),m()&&b(),v()&&y(),E()&&O()};function T(){let e=p();return e.filter(e=>"closeup"===e.pageType).length}function k(){let e=r.Z.create("UnauthUserDataResource");return new Promise((t,n)=>{e.callGet().then(e=>{let r=e.resource_response.data,a=!!o.U2(i.x3);return r?((0,c.Wn)(r.medium_image_url)&&(r.medium_image_url=""),(0,s.My)(`mweb.unauth.personalized_login.fetch_user_info.info.user_info_found.logged_out_cookie_${a?"true":"false"}`),t(r)):((0,s.My)(`mweb.unauth.personalized_login.fetch_user_info.info.no_user_info.logged_out_cookie_${a?"true":"false"}`),n({}))}).catch(e=>{if(e&&e.message){let t=e.message.replace(/\s/g,"_").toLowerCase();(0,s.My)(`mweb.unauth.personalized_login.fetch_user_info.error.${t}`)}else(0,s.My)("mweb.unauth.personalized_login.fetch_user_info.error.unknown");return n(e)})})}function S({i18n:e,location:t}){let n;let r=t.pathname.startsWith("/signup"),o=t.pathname.startsWith("/login");if(!r&&!o)return{showPLPBanner:!1,pinForBanner:null};try{n=JSON.parse((0,l.qn)(_.KH))}catch(e){n=[]}if(n&&n.length>0){let t=n[0];if(t)return t.bannerCopy=e._('More ideas like this await', 'page banner with pin image that was signed up from', 'page banner with pin image that was signed up from'),{showPLPBanner:!!t.image,pinForBanner:t}}return{showPLPBanner:!1,pinForBanner:null}}let $=e=>e.search&&e.search.startsWith("?next=")?e.search.split("?next=")[1]:null;function A({i18n:e,location:t}){var n;let r=(null===(n=t.state)||void 0===n?void 0:n.next)||$(t);if(r){let t=r.indexOf("?"),n=(0,u.mB)(r.substring(t));if(n.url&&n.media)return{showPLPBanner:!0,pinForBanner:{image:{url:(0,u.Jx)(n.media),height:1,width:1},pinDescription:n.description,bannerCopy:e._('Save this idea and discover more inspiration like it.', 'page banner with pin image that was signed up from', 'page banner with pin image that was signed up from')}}}return{showPLPBanner:!1,pinForBanner:null}}function B({i18n:e,location:t}){return A({i18n:e,location:t}).showPLPBanner?A({i18n:e,location:t}):S({i18n:e,location:t}).showPLPBanner?S({i18n:e,location:t}):{showPLPBanner:!1,pinForBanner:null}}let Z=(e,t)=>e?`https://i.pinimg.com/${t||"474x"}/${e.substr(0,2)}/${e.substr(2,2)}/${e.substr(4,2)}/${e}.jpg`:"",C=e=>e?`https://i.pinimg.com/75x75/${e.substr(0,2)}/${e.substr(2,2)}/${e.substr(4,2)}/${e}.jpg`:"",x=e=>e?`https://i.pinimg.com/236x/${e.substr(0,2)}/${e.substr(2,2)}/${e.substr(4,2)}/${e}.jpg`:""},332215:(e,t,n)=>{function r(e){return!!(null==e?void 0:e.is_matured_new_user)}n.d(t,{IR:()=>a,V0:()=>r,Wn:()=>i,xT:()=>o});let o=e=>!!e&&2===e.login_state,i=e=>!!(e&&e.match(/\/static\/images\/user\/default_\d+\.png$/));function a(e){return!e||void 0===e.third_party_marketing_tracking_enabled||null===e.third_party_marketing_tracking_enabled||e.third_party_marketing_tracking_enabled}}}]);
|
2
|
+
//# sourceMappingURL=https://sm.pinimg.com/webapp/65610-15f55d146aa3cc6f.mjs.map
|