(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([["www/[username]/_saved-mobile","www/[username]/pins-mobile"],{"+wdc":function(e,t,n){var r,o,i,s;if("object"==typeof performance&&"function"==typeof performance.now){var c=performance;t.unstable_now=function(){return c.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,d=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(f,0),n}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(f,0))},o=function(e,t){d=setTimeout(e,t)},i=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var b=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,y=null,j=-1,O=5,v=0;t.unstable_shouldYield=function(){return t.unstable_now()>=v},s=function(){},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};var g=new MessageChannel,w=g.port2;g.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();v=e+O;try{y(!0,e)?w.postMessage(null):(m=!1,y=null)}catch(n){throw w.postMessage(null),n}}else m=!1},r=function(e){y=e,m||(m=!0,w.postMessage(null))},o=function(e,n){j=b((function(){e(t.unstable_now())}),n)},i=function(){p(j),j=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<P(o,t)))break e;e[r]=t,e[n]=o,n=r}}function x(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,s=e[i],c=i+1,a=e[c];if(void 0!==s&&0>P(s,n))void 0!==a&&0>P(a,s)?(e[r]=a,e[c]=n,r=c):(e[r]=s,e[i]=n,r=i);else{if(!(void 0!==a&&0>P(a,n)))break e;e[r]=a,e[c]=n,r=c}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],k=[],A=1,E=null,T=3,L=!1,I=!1,R=!1;function F(e){for(var t=x(k);null!==t;){if(null===t.callback)S(k);else{if(!(t.startTime<=e))break;S(k),t.sortIndex=t.expirationTime,_(C,t)}t=x(k)}}function B(e){if(R=!1,F(e),!I)if(null!==x(C))I=!0,r($);else{var t=x(k);null!==t&&o(B,t.startTime-e)}}function $(e,n){I=!1,R&&(R=!1,i()),L=!0;var r=T;try{for(F(n),E=x(C);null!==E&&(!(E.expirationTime>n)||e&&!t.unstable_shouldYield());){var s=E.callback;if("function"==typeof s){E.callback=null,T=E.priorityLevel;var c=s(E.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?E.callback=c:E===x(C)&&S(C),F(n)}else S(C);E=x(C)}if(null!==E)var a=!0;else{var l=x(k);null!==l&&o(B,l.startTime-n),a=!1}return a}finally{E=null,T=r,L=!1}}var M=s;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(){I||L||(I=!0,r($))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(C)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,s){var c=t.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?c+s:c:s=c,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 e={id:A++,callback:n,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>c?(e.sortIndex=s,_(k,e),null===x(C)&&e===x(k)&&(R?i():R=!0,o(B,s-c))):(e.sortIndex=a,_(C,e),I||L||(I=!0,r($))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"1Qfp":function(e,t,n){var r=n("q1tI");t.a=()=>{const[e,t]=Object(r.useState)(!1);return Object(r.useEffect)(()=>{t(!0)},[]),e}},"1xPy":function(e,t,n){n.d(t,"b",(function(){return i}));var r=n("q1tI");const o=Object(r.createContext)(!0);function i(){return Object(r.useContext)(o)}t.a=o},"2mql":function(e,t,n){var r=n("r36Y"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function a(e){return r.isMemo(e)?s:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=s;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=b(n);o&&o!==p&&e(t,o,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var c=a(t),h=a(n),m=0;m<s.length;++m){var y=s[m];if(!(i[y]||r&&r[y]||h&&h[y]||c&&c[y])){var j=f(n,y);try{l(t,y,j)}catch(O){}}}}return t}},"5ks/":function(e,t,n){var r=n("1Qfp"),o=n("1xPy");t.a=()=>{const e=Object(o.b)(),t=Object(r.a)();return e&&!t}},"6CFY":function(e,t,n){var r=n("q1tI"),o=n("BcvT"),i=n("n6mq"),s=n("nKUr");const c=new i.t(669),a={1:"up",2:"right",3:"down",4:"left"};t.a=({anchors:e={},complete:t,dismiss:n,displayData:l,idealDirection:u,onCompleteByAnchor:d={},platform:f,positionRelativeToAnchor:b=!0,touchToDismiss:p=!0,useMasonryFlyout:h=!1})=>{var m;const{anchors_by_platform:y={},button_text:j,button_uri:O,display_type:v,flyout_direction:g,scroll_to_dismiss:w,scroll_to_dismiss_delay_in_seconds:_=0,text:x}=l||{},S=null===(m=y[f])||void 0===m?void 0:m.anchor,P=e[S],C=Object(r.useCallback)(()=>{w&&(window.removeEventListener("scroll",C),window.removeEventListener("touchmove",C)),p&&P&&P.removeEventListener("click",C),setTimeout(()=>n(),1e3*_)},[P]);if(Object(r.useEffect)(()=>{P&&(w&&(window.addEventListener("scroll",C),window.addEventListener("touchmove",C)),p&&P.addEventListener("click",C))},[P]),!P)return null;const{FLYOUT:k,PULSAR:A}={FLYOUT:1,PULSAR:2},E=({children:e})=>{if(h)return Object(s.jsx)(i.A,{zIndex:c,children:e});if(v===A){const t={};if(b)t.top=P.offsetTop,t.left=P.offsetLeft,t.width=P.offsetWidth,t.height=P.offsetHeight;else{const e=P.getBoundingClientRect();t.top=e.top+window.pageYOffset,t.left=e.left+window.pageXOffset,t.width=e.width,t.height=e.height}return Object(s.jsx)(i.f,{position:"absolute",top:!0,left:!0,zIndex:c,dangerouslySetInlineStyle:{__style:t},children:e})}return Object(s.jsx)(i.f,{zIndex:c,children:e})},T=a[g],L=O&&(O.startsWith("https://")||O.startsWith("http://")),I=(d||{})[S],R=()=>{w&&(window.removeEventListener("scroll",C),window.removeEventListener("touchmove",C)),p&&P.removeEventListener("click",C),t()};return Object(s.jsxs)(r.Fragment,{children:[v===A&&Object(s.jsx)(E,{children:Object(s.jsx)(o.a,{anchor:P,onTouch:()=>{R(),I?I():P instanceof HTMLElement&&P.click()},zIndex:670})}),v===k&&Object(s.jsx)(E,{children:Object(s.jsx)(i.L,{anchor:P,color:"blue",idealDirection:T||u||"down",onDismiss:C,positionRelativeToAnchor:!h&&b,shouldFocus:!1,showCaret:!0,size:"md",children:Object(s.jsxs)(i.f,{padding:4,width:"220px",children:[Object(s.jsx)(i.cb,{align:"center",color:"white",weight:"bold",children:x}),j?Object(s.jsx)(i.f,{display:"flex",justifyContent:"center",marginTop:4,children:Object(s.jsx)(i.f,{column:8,children:O?Object(s.jsx)(i.g,{fullWidth:!0,color:"white",href:O,onClick:({disableOnNavigation:e})=>{e(),R()},role:"link",size:"md",target:L?"blank":null,text:j}):Object(s.jsx)(i.g,{fullWidth:!0,color:"white",onClick:R,size:"md",text:j})})}):null]})})})]})}},BcvT:function(e,t,n){var r=n("q1tI"),o=n("n6mq"),i=n("nKUr");function s({anchor:e,children:t,zIndex:n}){const s=Object(r.useRef)(null),[c,a]=Object(r.useState)(0),[l,u]=Object(r.useState)(0),{height:d,width:f}=e.getBoundingClientRect();return Object(r.useEffect)(()=>{const{current:t}=s;if(e&&t){const{height:e,width:n}=t.getBoundingClientRect(),{horizontalOffset:r,verticalOffset:o}=((e,t,n,r)=>({horizontalOffset:-(r/2-t/2),verticalOffset:-(n/2-e/2)}))(d,f,e,n);a(r),u(o)}},[d,f,s.current]),Object(i.jsx)(o.f,{position:"absolute",zIndex:n?new o.t(n):void 0,dangerouslySetInlineStyle:{__style:{left:c,top:l}},ref:s,children:t})}t.a=function(e){const{anchor:t,onTouch:n,onMouseEnter:r,paused:c,size:a,zIndex:l}=e;return t?Object(i.jsx)(s,{anchor:t,zIndex:l,children:Object(i.jsx)(o.bb,{fullWidth:!1,onTap:({event:e})=>n(e),onMouseEnter:r,rounding:"circle",children:Object(i.jsx)(o.M,{paused:c,size:a})})}):null}},Copi:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,b=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case s:case a:case c:case p:return e;default:switch(e=e&&e.$$typeof){case u:case b:case l:return e;default:return t}}case m:case h:case i:return t}}}function j(e){return y(e)===f}t.typeOf=y,t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=b,t.Fragment=s,t.Lazy=m,t.Memo=h,t.Portal=i,t.Profiler=a,t.StrictMode=c,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===f||e===a||e===c||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===b)},t.isAsyncMode=function(e){return j(e)||y(e)===d},t.isConcurrentMode=j,t.isContextConsumer=function(e){return y(e)===u},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return y(e)===b},t.isFragment=function(e){return y(e)===s},t.isLazy=function(e){return y(e)===m},t.isMemo=function(e){return y(e)===h},t.isPortal=function(e){return y(e)===i},t.isProfiler=function(e){return y(e)===a},t.isStrictMode=function(e){return y(e)===c},t.isSuspense=function(e){return y(e)===p}},MKeS:function(e,t,n){n.d(t,"b",(function(){return C}));var r=n("q1tI"),o=n.n(r);function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var a=n("TOwV"),l=n("2mql"),u=n.n(l);function d(e,t){if(!e){var n=new Error("loadable: "+t);throw n.framesToPop=1,n.name="Invariant Violation",n}}function f(e){console.warn("loadable: "+e)}var b=o.a.createContext();function p(e){return e+"__LOADABLE_REQUIRED_CHUNKS__"}var h={initialChunks:{}},m="PENDING",y="REJECTED";var j=function(e){return e};function O(e){var t=e.defaultResolveComponent,n=void 0===t?j:t,r=e.render,l=e.onLoad;function f(e,t){void 0===t&&(t={});var f=function(e){return"function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),p={};function j(e){return t.cacheKey?t.cacheKey(e):f.resolve?f.resolve(e):"static"}function O(e,r,o){var i=t.resolveComponent?t.resolveComponent(e,r):n(e);if(t.resolveComponent&&!Object(a.isValidElementType)(i))throw new Error("resolveComponent returned something that is not a React component!");return u()(o,i,{preload:!0}),i}var v,g=function(e){var n,o;function a(n){var r;return(r=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:j(n)},d(!n.__chunkExtractor||f.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===t.ssr||(f.requireAsync(n).catch((function(){return null})),r.loadSync(),n.__chunkExtractor.addChunk(f.chunkName(n))),c(r)):(!1!==t.ssr&&(f.isReady&&f.isReady(n)||f.chunkName&&h.initialChunks[f.chunkName(n)])&&r.loadSync(),r)}o=e,(n=a).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o,a.getDerivedStateFromProps=function(e,t){var n=j(e);return s({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var u=a.prototype;return u.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===y&&this.setCache(),this.state.loading&&this.loadAsync()},u.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},u.componentWillUnmount=function(){this.mounted=!1},u.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},u.getCacheKey=function(){return j(this.props)},u.getCache=function(){return p[this.getCacheKey()]},u.setCache=function(e){void 0===e&&(e=void 0),p[this.getCacheKey()]=e},u.triggerOnLoad=function(){var e=this;l&&setTimeout((function(){l(e.state.result,e.props)}))},u.loadSync=function(){if(this.state.loading)try{var e=O(f.requireSync(this.props),this.props,_);this.state.result=e,this.state.loading=!1}catch(t){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:f.resolve(this.props),chunkName:f.chunkName(this.props),error:t?t.message:t}),this.state.error=t}},u.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then((function(t){var n=O(t,e.props,{Loadable:_});e.safeSetState({result:n,loading:!1},(function(){return e.triggerOnLoad()}))})).catch((function(t){return e.safeSetState({error:t,loading:!1})})),t},u.resolveAsync=function(){var e=this,t=this.props,n=(t.__chunkExtractor,t.forwardedRef,i(t,["__chunkExtractor","forwardedRef"])),r=this.getCache();return r||((r=f.requireAsync(n)).status=m,this.setCache(r),r.then((function(){r.status="RESOLVED"}),(function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:f.resolve(e.props),chunkName:f.chunkName(e.props),error:t?t.message:t}),r.status=y}))),r},u.render=function(){var e=this.props,n=e.forwardedRef,o=e.fallback,c=(e.__chunkExtractor,i(e,["forwardedRef","fallback","__chunkExtractor"])),a=this.state,l=a.error,u=a.loading,d=a.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===m)throw this.loadAsync();if(l)throw l;var f=o||t.fallback||null;return u?f:r({fallback:f,result:d,options:t,props:s({},c,{ref:n})})},a}(o.a.Component),w=(v=g,function(e){return o.a.createElement(b.Consumer,null,(function(t){return o.a.createElement(v,Object.assign({__chunkExtractor:t},e))}))}),_=o.a.forwardRef((function(e,t){return o.a.createElement(w,Object.assign({forwardedRef:t},e))}));return _.preload=function(e){f.requireAsync(e)},_.load=function(e){return f.requireAsync(e)},_}return{loadable:f,lazy:function(e,t){return f(e,s({},t,{suspense:!0}))}}}var v=O({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return o.a.createElement(t,n)}}),g=v.loadable,w=v.lazy,_=O({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,n=e.props;return n.children?n.children(t):null}}),x=_.loadable,S=_.lazy,P="undefined"!=typeof window;function C(e,t){void 0===e&&(e=function(){});var n=(void 0===t?{}:t).namespace,r=void 0===n?"":n;if(!P)return f("`loadableReady()` must be called in browser only"),e(),Promise.resolve();var o=null;if(P){var i=p(r),s=document.getElementById(i);if(s){o=JSON.parse(s.textContent);var c=document.getElementById(i+"_ext");if(!c)throw new Error("loadable-component: @loadable/server does not match @loadable/component");JSON.parse(c.textContent).namedChunks.forEach((function(e){h.initialChunks[e]=!0}))}}if(!o)return f("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),e(),Promise.resolve();var a=!1;return new Promise((function(e){window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[];var t=window.__LOADABLE_LOADED_CHUNKS__,n=t.push.bind(t);function r(){o.every((function(e){return t.some((function(t){return t[0].indexOf(e)>-1}))}))&&(a||(a=!0,e()))}t.push=function(){n.apply(void 0,arguments),r()},r()})).then(e)}var k=g;k.lib=x,w.lib=S;t.a=k},MgzW:function(e,t,n){var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,c,a=s(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))o.call(n,u)&&(a[u]=n[u]);if(r){c=r(n);for(var d=0;d<c.length;d++)i.call(n,c[d])&&(a[c[d]]=n[c[d]])}}return a}},OadL:function(e,t,n){n.d(t,"r",(function(){return c})),n.d(t,"i",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"p",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"l",(function(){return b})),n.d(t,"n",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"o",(function(){return m})),n.d(t,"k",(function(){return y})),n.d(t,"s",(function(){return j})),n.d(t,"q",(function(){return v})),n.d(t,"g",(function(){return g})),n.d(t,"b",(function(){return w})),n.d(t,"e",(function(){return _})),n.d(t,"c",(function(){return x})),n.d(t,"f",(function(){return S})),n.d(t,"h",(function(){return C})),n.d(t,"u",(function(){return k})),n.d(t,"t",(function(){return A}));var r=n("peh1");const o=e=>(t,n)=>t.feeds[((e,t)=>"string"==typeof e?e:e(t))(e,n)],i=e=>e.boards,s=e=>e.invites,c=e=>e.users,a=e=>e.users[e.session.userId]||null,l=e=>o(e),u=Object(r.createSelector)(e=>e.feeds,e=>Object.keys(e).filter(e=>e.includes("share-suggestions")).reduce((t,n)=>({...t,[n]:e[n]}),{})),d=Object(r.createSelector)(s,e=>Object.keys(e).reduce((t,n)=>{const r=n.split(":")[0],o=t[r]||{notPendingOwnerAction:[],pendingOwnerAction:[]};return e[n]&&"not_invited"!==e[n].status&&("pending_approval"===e[n].status?o.pendingOwnerAction.push(n):o.notPendingOwnerAction.push(n),t[r]=o),t},{})),f=Object(r.createSelector)(s,e=>Object.keys(e).reduce((t,n)=>{const r=n.split(":"),o=t[r[0]]||[];return e[n]&&"not_invited"!==e[n].status&&(o.push(n),t[r[0]]=o),t},{})),b=Object(r.createSelector)(s,e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return t[n]=r,t},{})),p=Object(r.createSelector)(a,s,(e,t)=>Object.keys(t).reduce((n,r)=>{const o=r.split(":"),i=o[0],s=o[1],c=e.id===s,a=t[r]&&["new","contact_request_not_approved"].includes(t[r].status);return c&&a&&(n[i]=r),n},{})),h=Object(r.createSelector)(c,s,(e,t)=>Object.keys(t).reduce((n,r)=>{const o=t[r]||{};return n[r]=e[o.invited_by_user],n},{})),m=Object(r.createSelector)(o("notifications"),e=>e.notifications,(e=[],t)=>e.map(({id:e})=>t[e])),y=Object(r.createSelector)(e=>e.topics,e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return t[r.slug]=r,t[n]=r,t},{})),j=Object(r.createSelector)(c,e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return t[r.username]=r,t},{})),O=Object(r.createSelector)(a,i,(e,t)=>Object.keys(t).reduce((n,r)=>{const o=t[r];return!o.archived_by_me_at&&(o.owner===e.id||o.collaborating_users&&o.collaborating_users.includes(e.id))&&o.cover_images?n.concat([o]):n},[])),v=Object(r.createSelector)(O,e=>e.sort((e,t)=>e.name.localeCompare(t.name))),g=Object(r.createSelector)((e,t)=>e.users[t.user_id]||null,i,(e,t)=>Object.keys(t).reduce((n,r)=>{const o=t[r];return!o.archived_by_me_at&&e&&(o.owner===e.id||o.collaborating_users&&o.collaborating_users.includes(e.id))&&n.push(o),n},[])),w=(Object(r.createSelector)(c,o("suggested-creator-follows"),(e,t)=>t?t.filter(({id:t})=>{const n=e[t];return n&&n.explicitly_followed_by_me}):[]),Object(r.createSelector)(i,e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return t[r.url]=r,r.oldSlugUrl&&(t[r.oldSlugUrl]=r),t},{}))),_=Object(r.createSelector)(e=>e.boardsections,e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return t[`${r.board}_${r.slug}`]=r,t},{})),x=Object(r.createSelector)(c,(e,t)=>t,(e,t)=>t?[t.owner,...t.collaborating_users||[]].map(t=>e[t]).filter(Boolean):[]),S=l(({boardId:e})=>"board-sections:"+e),P=(l(({boardId:e})=>"board-collaborators:"+e),l(({pinId:e})=>"call-to-create-pins:"+e)),C=Object(r.createSelector)(e=>e.pins,P,(e=[],t=[])=>t.map(t=>e[t.id])),k=e=>e.experiences[40001]&&(40002===e.experiences[40001].experience_id||500450===e.experiences[40001].experience_id),A=e=>e.experiences[40001]&&500681===e.experiences[40001].experience_id},QCnb:function(e,t,n){e.exports=n("+wdc")},T9xC:function(e,t,n){n.d(t,"a",(function(){return o}));var r=n("/MKj");function o(){return Object(r.useSelector)(({session:e})=>e.isAuthenticated)}},TOwV:function(e,t,n){e.exports=n("qT12")},"c+w5":function(e,t,n){var r=n("i2lo"),o=n("6CFY"),i=n("nKUr");t.a=({anchors:e,experience:t,idealDirection:n,onCompleteByAnchor:s={},placementId:c,positionRelativeToAnchor:a,touchToDismiss:l,useMasonryFlyout:u})=>Object(i.jsx)(r.a,{experience:t,placementId:c,predicate:t=>{const{display_data:n,placement_id:r}=t;if(2===(null==n?void 0:n.component_type)){const{anchors_by_platform:t}=n;if(null!=t&&t.web_mobile){const{anchor:n,placement:o}=t.web_mobile;return o===r&&n in e}}return!1},children:({complete:t,dismiss:r,experience:c})=>Object(i.jsx)(o.a,{anchors:e,complete:()=>t(1),dismiss:r,displayData:null==c?void 0:c.display_data,idealDirection:n,onCompleteByAnchor:s,platform:"web_mobile",positionRelativeToAnchor:a,touchToDismiss:l,useMasonryFlyout:u})})},h4OA:function(e,t,n){n.r(t),n.d(t,"getProfilePinsResourceOptions",(function(){return _})),n.d(t,"ProfilePinsFeed",(function(){return x}));var r=n("q1tI"),o=n("/MKj"),i=n("r+rM"),s=n("kerF"),c=n("SvRC"),a=n("o+5w"),l=n("vf2D"),u=n("hFTz"),d=n("T9xC"),f=n("ANjH"),b=n("OadL"),p=n("qpbZ"),h=n("ulr2"),m=n("yweb"),y=n("S1na"),j=n("n6mq"),O=n("EC67"),v=n("nKUr");const g={shortform:!1,shortform_maximum_fraction_digits:1},w=({isOwnProfile:e})=>{const t=Object(m.c)(),n=e?Object(v.jsx)(s.a,{name:"mweb_empty_profile_tabs_redirect_home",children:({anyEnabled:e})=>Object(v.jsx)(i.a,{message:t._("You haven't saved any ideas yet. Find ideas you love...","you have no pins","you have no pins"),icon:"arrow-circle-forward",iconLabel:e?t._("Go to home feed","profile.pins.redirectButtonLabel","Redirect to home feed for more ideas, when user has no pins"):t._("Go to search","profile.pins.redirectButtonLabel","Redirect to search for more ideas, when user has no pins"),url:e?"/":"/search/"})}):Object(v.jsx)(i.a,{message:t._("This Pinner hasn't saved any ideas yet.","user has no boards and pins","user has no boards and pins")});return Object(v.jsx)(j.f,{paddingY:4,children:n})},_=({username:e,isAuthenticated:t,isOwnProfile:n})=>({add_vase:!t,field_set_key:"mobile_grid_item",is_own_profile_pins:n,username:e}),x=({isOwnProfile:e,isProfilePinsStale:t,username:n})=>{const r=Object(d.a)();return Object(v.jsx)(c.c,{feedKey:"profile-pins:"+n,trafficSource:"user_pins",resourceConfig:{name:"UserPinsResource",options:_({isAuthenticated:r,isOwnProfile:e,username:n}),noCache:!e||t},feedItemProps:{viewParameter:e?3106:3107,viewType:4},emptyState:Object(v.jsx)(w,{isOwnProfile:e})})};class S extends r.PureComponent{componentWillUnmount(){this.props.setProfilePinsRefreshed()}render(){var e,t,n;const{match:r,location:o,user:i,viewerId:s,isProfilePinsStale:c}=this.props;if(!i||!i.id)return Object(v.jsx)(l.d,{location:o,match:r});const{username:d}=r.params,f=i&&i.id===s,b=f?3106:3107,h=(null!==(e=i.pin_count)&&void 0!==e?e:0)>0;return Object(v.jsx)(l.d,{location:o,match:r,children:d&&Object(v.jsx)(a.a,{objectIdStr:i.id,viewType:4,viewParameter:74,children:Object(v.jsx)(u.a,{objectId:i.id,view:4,viewParameter:b,component:210,children:Object(v.jsxs)(j.f,{children:[h&&Object(v.jsx)(j.f,{marginBottom:1,children:Object(v.jsx)(j.cb,{color:"gray",size:"sm",weight:"bold",children:Object(p.b)(this.props.i18n.ngettext("1 pin","{{ numPins }} pins",null!==(t=i.pin_count)&&void 0!==t?t:0,"number of pins user has","number of pins user has"),{numPins:this.props.prettyNumberFormat(this.props.locale,null!==(n=i.pin_count)&&void 0!==n?n:0,g)})})}),Object(v.jsx)(x,{isOwnProfile:f,isProfilePinsStale:!!c,username:d})]})})})})}}t.default=Object(f.compose)(O.l,Object(o.connect)((e,t)=>({isProfilePinsStale:e.session.isProfilePinsStale,user:Object(b.s)(e)[t.match.params.username],viewerId:e.session.userId}),e=>({setProfilePinsRefreshed:()=>e(Object(h.w)())})))((function(e){const t=Object(m.c)(),{locale:n}=Object(o.useSelector)(({session:e})=>e),r=Object(y.a)();return Object(v.jsx)(S,{...e,i18n:t,locale:n,prettyNumberFormat:r})}))},peh1:function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){return e===t}function i(e){var t=arguments.length<=1||void 0===arguments[1]?o:arguments[1],n=null,r=null;return function(){for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return null!==n&&n.length===i.length&&i.every((function(e,r){return t(e,n[r])}))||(r=e.apply(void 0,i)),n=i,r}}function s(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function c(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];var c=0,a=o.pop(),l=s(o),u=e.apply(void 0,[function(){return c++,a.apply(void 0,arguments)}].concat(n)),d=function(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var s=l.map((function(n){return n.apply(void 0,[e,t].concat(o))}));return u.apply(void 0,r(s))};return d.resultFunc=a,d.recomputations=function(){return c},d.resetRecomputations=function(){return c=0},d}}t.__esModule=!0,t.defaultMemoize=i,t.createSelectorCreator=c,t.createStructuredSelector=function(e){var t=arguments.length<=1||void 0===arguments[1]?a:arguments[1];if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t,r){return e[n[r]]=t,e}),{})}))};var a=t.createSelector=c(i)},qT12:function(e,t,n){var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,b=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,j=r?Symbol.for("react.block"):60121,O=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case s:case a:case c:case p:return e;default:switch(e=e&&e.$$typeof){case u:case b:case y:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return w(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=b,t.Fragment=s,t.Lazy=y,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=c,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||w(e)===d},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===b},t.isFragment=function(e){return w(e)===s},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===f||e===a||e===c||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===b||e.$$typeof===O||e.$$typeof===v||e.$$typeof===g||e.$$typeof===j)},t.typeOf=w},"r+rM":function(e,t,n){var r=n("Lr1Z"),o=n("n6mq"),i=n("nKUr");t.a=({icon:e,iconLabel:t,message:n,url:s,onTouch:c})=>{const a=Object(i.jsxs)(o.f,{alignItems:e?"center":void 0,color:"darkGray",display:e?"flex":"inlineBlock",justifyContent:e?"between":void 0,padding:2,rounding:2,children:[Object(i.jsx)(o.f,{marginEnd:e?2:0,children:Object(i.jsx)(o.cb,{color:"white",overflow:"normal",weight:"bold",children:n})}),e&&t&&Object(i.jsx)(o.f,{flex:"none",children:Object(i.jsx)(o.w,{icon:e,color:"white",accessibilityLabel:t,size:32})})]});return Object(i.jsx)(o.f,{paddingX:2,children:s?Object(i.jsx)(r.a,{to:s,rounding:2,pressState:"background",onTouch:c,children:a}):a})}},r36Y:function(e,t,n){e.exports=n("Copi")},rhr9:function(e,t,n){n.r(t),n.d(t,"getBoardsFeedResourceOptions",(function(){return N})),n.d(t,"default",(function(){return K}));var r=n("q1tI"),o=n("/MKj"),i=n("5xeR"),s=n("Lr1Z"),c=n("y6OW"),a=n("yweb"),l=n("S1na"),u=n("4nuT"),d=n("OadL"),f=n("qpbZ"),b=n("EC67"),p=n("n6mq"),h=n("nKUr");const m="133%";function y(e){const{isRTL:t}=Object(o.useSelector)(({session:e})=>e),n=t?-1:1,{borderRadius:r=16,containerBackgroundColor:i="white",images:s}=e,c=Array(5).fill();return Object(h.jsxs)(p.f,{"aria-hidden":!0,display:"flex",direction:"row",width:"100%",children:[Object(h.jsx)(p.m,{span:6,children:Object(h.jsx)(p.f,{position:"relative",children:c.map((e,t)=>{const o=s[t];return Object(h.jsx)(p.f,{color:"lightGray",dangerouslySetInlineStyle:{__style:{paddingBottom:m,borderRadius:r,transform:`translateX(${25*n*t}%)`,zIndex:100-t}},left:!0,position:0===t?"relative":"absolute",top:!0,width:"100%",children:Object(h.jsx)(p.f,{position:"absolute",top:!0,bottom:!0,right:!0,left:!0,dangerouslySetInlineStyle:{__style:{border:"1px solid "+i,borderRadius:r}},overflow:"hidden",children:Object(h.jsx)(p.y,{alt:o?o.name:"placeholder",color:"#efefef",fit:"cover",naturalHeight:133,naturalWidth:100,src:o?o.url:""})})},t)})})}),Object(h.jsx)(p.m,{span:6})]})}var j=n("28DW");function O({storyId:e}){var t;const n=Object(a.c)(),r=Object(c.a)(),m=Object(l.a)(),O=Object(b.j)(),v=Object(o.useSelector)(e=>e),{isAuthenticated:g,locale:w}=v.session,_=v.stories[e],{username:x}=O,{last_pin_save_time:S,pin_count:P}=Object(d.s)(v)[O.username],C=`/${null!=x?x:""}/pins/`,k=null!==(t=null==_?void 0:_.objects.map(e=>{var t;return{name:"AllPins",url:null!==(t=e.image_medium_url)&&void 0!==t?t:""}}))&&void 0!==t?t:[];return Object(h.jsx)(p.f,{height:"100%","data-test-id":"board-card-all-pins",children:Object(h.jsx)(s.a,{to:C,rounding:2,pressState:["compress","background"],inline:!1,onTouch:()=>{g||(Object(j.h)("click_go_to_board"),Object(j.i)({action:"click",page:"profile",item:"board-card-all-pins"}))},children:Object(h.jsx)(p.f,{paddingY:3,children:Object(h.jsxs)(p.f,{height:"100%",position:"relative",width:"100%",children:[Object(h.jsx)(y,{images:k}),Object(h.jsxs)(p.f,{display:"block",height:u.a,marginTop:1,paddingX:2,children:[Object(h.jsx)(p.u,{alignItems:"center",flex:"grow",justifyContent:"between",children:Object(h.jsx)(p.cb,{lineClamp:1,weight:"bold",children:n._("All Pins","allPinsCard.heading","Label for component leading to a page that shows all Pins of a user")})}),Object(h.jsx)(p.f,{alignItems:"center",direction:"row",display:"flex",marginTop:1,children:P?Object(h.jsxs)(p.cb,{size:"sm",lineClamp:1,children:[Object(h.jsx)(i.b,{}),Object(f.b)(n.ngettext("{{ count }} Pin","{{ count }} Pins",P,"profile.ProfilePage.allPins.AllPinsCard.PinsCount","label for n amount of pins"),{count:m(w,P,{})}),Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{display:"inline",paddingLeft:7}},children:Object(h.jsxs)(p.cb,{color:"gray",inline:!0,size:"sm",lineClamp:1,children:[Object(h.jsx)(i.b,{}),r(S,!0)]})})]}):Object(h.jsxs)(p.cb,{color:"gray",inline:!0,size:"sm",lineClamp:1,children:[Object(h.jsx)(i.b,{}),r(S,!0)]})})]})]})})})})}var v=n("8ifP"),g=n("gLeT");function w({isOwnProfile:e,username:t}){const n=Object(a.c)();return Object(h.jsx)(p.f,{alignItems:"center",direction:"column",display:"flex",marginEnd:"auto",marginStart:"auto",maxWidth:240,paddingY:4,children:e?Object(h.jsxs)(r.Fragment,{children:[Object(h.jsx)(p.cb,{align:"center",children:n._("You haven’t saved any Pins yet","profile.boards.pinner.OwnProfile.NoSavedIdeas","User own profile empty state, when there`re no pins saved")}),Object(h.jsx)(p.f,{marginBottom:1,marginTop:4,children:Object(h.jsx)(g.a,{fullWidth:!0,href:"/",size:"lg",text:n._("Find ideas","profile.boards.OwnProfile.EmptyStateLego.Button","User own profile empty state button, when there`re no pins saved, to redirect user to homefeed")})})]}):Object(h.jsx)(p.cb,{align:"center",children:Object(f.b)(n._("{{ username }} hasn’t saved any Pins yet","profile.boards.Pinner.EmptyStateLego","Other user profile empty state, when there`re no pins saved"),{username:t})})})}var _=n("c+w5"),x=n("SvRC"),S=n("K/ae"),P=n("o+5w"),C=n("0HhX");const k="archived-boards";function A({renderBoard:e}){const t=Object(a.c)(),{isFetching:n,fetchMore:i}=Object(C.c)({name:"BoardArchiveResource",options:{}}),s=Object(o.useSelector)(({feeds:e})=>e[k]||[]);return Object(h.jsxs)(r.Fragment,{children:[s.length>0&&Object(h.jsx)(p.f,{dangerouslySetInlineStyle:{__style:{backgroundColor:"#f6f6f6",marginBottom:-68,paddingBottom:86}},marginEnd:-4,marginStart:-4,children:Object(h.jsx)(p.f,{paddingX:6,paddingY:1,children:Object(h.jsx)(S.a,{cacheKey:k,columnWidth:300,comp:e,gutterWidth:6,items:s,layout:"MasonryUniformRowLayout",loadItems:i,minCols:2})})}),n&&Object(h.jsx)(p.f,{margin:5,children:Object(h.jsx)(p.U,{accessibilityLabel:t._("Loading user boards","Loading state for the user boards page","Loading state for the user boards page"),show:!0})})]})}var E=n("lnDX"),T=n("hFTz"),L=n("5ks/"),I=n("h4OA"),R=n("44UH"),F=n("QAzJ"),B=n("g6r8"),$=n("vf2D");const M=Object(d.a)("archived-boards"),z=e=>"profile-boards:"+e,D=({hasBoards:e,isOwnProfile:t,userId:n,username:o})=>{const i=Object(a.c)(),s=Object(b.h)();return Object(h.jsxs)(r.Fragment,{children:[e&&Object(h.jsxs)(r.Fragment,{children:[Object(h.jsx)(p.f,{paddingY:6,children:Object(h.jsx)(p.q,{})}),t&&Object(h.jsxs)(p.f,{alignItems:"center",marginBottom:4,display:"flex",justifyContent:"between",children:[Object(h.jsx)(p.v,{size:"sm",children:i._("Unorganized ideas","ProfileBoards.UnorganizedIdeasHeading","Heading above Boardless pins")}),Object(h.jsx)(p.g,{onClick:()=>s.push(`/${o}/organize/`),text:i._("Organize","ProfileBoards.UnorganizedIdeasOrganizeButton","Organize button to organize Boardless pins")})]})]}),Object(h.jsx)(x.c,{resourceConfig:{name:"BoardlessPinsResource",options:{field_set_key:"mobile",userId:n}},feedItemProps:{viewType:5,viewParameter:t?3106:3107},feedKey:"boardless-pins:"+n,trafficSource:"user"})]})},q=Object(r.createContext)({isForArchivedBoards:!1});function U({data:e,itemIdx:t}){const n=Object(a.c)(),i=Object(F.a)("mweb_collab_existing_board"),c=Object(b.k)(),l=Object(o.useSelector)(e=>(Object(d.i)(e)||{}).username===c.params.username),{isForArchivedBoards:u,firstBoard:f}=Object(r.useContext)(q);return"story"===e.type?Object(h.jsx)(p.f,{marginEnd:1,children:Object(h.jsx)(O,{storyId:e.id})}):Object(h.jsxs)(p.f,{marginEnd:t%2==0?1:void 0,marginStart:t%2==1?1:void 0,"data-test-id":"board-card",children:[Object(h.jsx)(v.a,{boardId:e.id,containerBackgroundColor:u?"#f6f6f6":void 0,forwardedRef:f&&e.id===f.id?f.ref:void 0,showFollowButton:!1,type:"full",viewParameter:49,viewType:4}),l&&i().anyEnabled&&Object(h.jsx)(p.f,{display:"flex",alignItems:"center",marginTop:-8,marginBottom:8,marginEnd:2,justifyContent:"end",children:Object(h.jsx)(p.f,{position:"absolute",rounding:"circle",children:Object(h.jsx)(s.a,{to:`/board/${e.id}/edit/add_collaborators/`,rounding:"circle",pressState:"border",children:Object(h.jsx)(p.f,{alignItems:"center",color:"lightGray",display:"flex",direction:"column",height:36,justifyContent:"center",rounding:"circle",width:36,children:Object(h.jsx)(p.w,{accessibilityLabel:n._("add collaborators","Accessibility label for add collaborator icon","Accessibility label for add collaborator icon"),color:"gray",icon:"person-add",size:20})})})})})]})}const N=({username:e})=>({field_set_key:"profile_grid_item",filter_stories:!1,sort:"last_pinned_to",username:e});function K(){var e;const t=Object(a.c)(),n=Object(b.i)(),i=Object(b.k)(),s=Object(B.b)(),c=Object(r.useRef)(null),{isAuthenticated:l,isProfilePinsStale:u}=Object(o.useSelector)(e=>e.session),m=i.params.username||"";Object(C.b)({dangerouslyDisableFetch:!l,name:"UserResource",options:{username:m,field_set_key:"quicksave"}});const y=Object(C.b)({name:"BoardsFeedResource",options:N({username:m})}),j=Object(o.useSelector)(e=>M(e,{match:i})||[]),O=Object(o.useSelector)(({feeds:e})=>{const t=e[z(m||"")]||[],n=t.some(({type:e})=>"board"===e);return!s&&n?t:t.filter(({type:e})=>"story"!==e)}),v=Object(o.useSelector)(e=>(Object(d.i)(e)||{}).username===m),g=Object(o.useSelector)(e=>(Object(d.s)(e)[m]||{}).id),x=Object(o.useSelector)(e=>e.users[g]),k=Object(L.a)(),K=Object(F.a)("mweb_boardless_pins"),W=Object(F.a)(R.a),Y=l&&!(null==x||!x.has_quicksave_board)&&(K().anyEnabled||W().anyEnabled),H=null===(e=O.find(e=>"board"===e.type))||void 0===e?void 0:e.id;return Object(h.jsx)(E.a,{surface:v?"own_profile":"other_profile",children:Object(h.jsx)($.d,{headerTab:$.a,location:n,match:i,children:Object(h.jsx)(P.a,{objectIdStr:g,viewType:4,viewParameter:49,children:Object(h.jsx)(T.a,{objectId:g,view:4,viewParameter:v?3106:3107,component:209,children:Object(h.jsxs)(p.f,{children:[Object(h.jsxs)(p.f,{marginTop:-3,"data-test-id":"grid",children:[O.length>0&&Object(h.jsx)(q.Provider,{value:{isForArchivedBoards:!1,firstBoard:H?{id:H,ref:c}:null},children:Object(h.jsx)(S.a,{cacheKey:z(m),columnWidth:s?256:300,comp:U,items:O,layout:"MasonryUniformRowLayout",id:"profileBoardsFeed",loadItems:y.fetchMore,minCols:2,serverRender:!0})}),Object(h.jsx)(_.a,{anchors:{4011:c.current},placementId:1000312,positionRelativeToAnchor:!1}),!k&&y.isFetching&&Object(h.jsx)(p.f,{margin:5,children:Object(h.jsx)(p.U,{accessibilityLabel:t._("Loading user boards","Loading state for the user boards page","Loading state for the user boards page"),show:!0})})]}),!k&&y.isAtEnd&&Object(h.jsxs)(r.Fragment,{children:[Y?Object(h.jsx)(D,{hasBoards:O.length>0||j.length>0,isOwnProfile:v,userId:g,username:m}):0===O.length&&Object(h.jsx)(w,{isOwnProfile:v,username:m}),v&&Object(h.jsx)(q.Provider,{value:{isForArchivedBoards:!0},children:Object(h.jsx)(A,{renderBoard:U})}),O.length>0&&!l&&Object(h.jsxs)(p.f,{children:[Object(h.jsx)(p.f,{marginTop:s?6:3,marginBottom:s?6:3,children:Object(h.jsx)(p.v,{align:"center",overflow:"breakWord",size:s?"md":"sm",children:Object(h.jsx)(p.f,{children:Object(f.b)(t._("More ideas from {{user}}","heading to display more pins on user profile","heading to display more pins on user profile"),{user:x.full_name||m})})})}),Object(h.jsx)(I.ProfilePinsFeed,{isOwnProfile:v,isProfilePinsStale:!!u,username:m})]})]})]})})})})})}}},[["rhr9","runtime","vendor-react",0,5,6,7,8,16,17,18,19,68,86]]]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/www/[username]/_saved-mobile-fe3272f733c979a07ac1.mjs.map