(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[75690,39395],{827896:(e,t,i)=>{i.d(t,{Z:()=>n});var o=i(768559),s=i(350118),r=i(276775);function n(){const e=(0,s.S6)(),t=(0,r.useLocation)();return(i,s)=>{let r;const n=e(i);if(null!=s&&s.shouldTrackForPrevLocation){const e=(null==n?void 0:n.tracking_params_map)||{},t=Object.keys(e).find((e=>"PinResource"!==e));n&&(r=t?e[t]:e.PinResource)}else if(n){var a,l;r=(0,o.Z)({boardUrl:null===(a=n.board)||void 0===a?void 0:a.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:t,pinId:n.id,pinnerUserName:null===(l=n.pinner)||void 0===l?void 0:l.username,storyPinDataId:n.story_pin_data_id,trackingParams:n.tracking_params,trackingParamsMap:n.tracking_params_map})}return r}}},720247:(e,t,i)=>{function o(e){let t=!1;return{promise:new Promise(((i,o)=>{e.then((e=>t?o({isCanceled:!0}):i(e)),(e=>o(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}}i.d(t,{Z:()=>o})},730447:(e,t,i)=>{i.d(t,{Z:()=>r});var o=i(667294),s=i(254469);function r({allowSearchOnMount:e,children:t,onTypeaheadSuggestionsChange:i,resourceName:r,resourceOptions:n,value:a}){const l=(0,s.Z)({allowSearchOnMount:e,resourceName:r,resourceOptions:n,value:a});return(0,o.useEffect)((()=>{null!=l&&l.length&&i(l)}),[l]),t||null}},984206:(e,t,i)=>{i.d(t,{Z:()=>o});const o=2},140582:(e,t,i)=>{function o(e,t){if(!t)return e;const i=new RegExp(/http(s?):/);if(!i.test(e)){const o=i.exec(t);if(o&&o.length){e=o[0]+e}}return e}i.d(t,{Z:()=>o})},342877:(e,t,i)=>{i.d(t,{Z:()=>r});var o=i(667294),s=i(720247);function r(){const e=(0,o.useRef)([]),t=(0,o.useRef)({});return(0,o.useEffect)((()=>()=>{[...Object.keys(t.current).map((e=>t.current[e])),...e.current].forEach((e=>e()))}),[]),function(i,o){if(o){const e=t.current[o];e&&(e(),delete t.current[o])}const{cancel:r,promise:n}=(0,s.Z)(i);return o?t.current[o]=r:e.current.push(r),n}}},134906:(e,t,i)=>{i.d(t,{Bh:()=>c,C9:()=>v,CB:()=>p,CU:()=>n,FU:()=>A,GT:()=>a,Gy:()=>g,J_:()=>j,Jx:()=>_,MZ:()=>b,VC:()=>h,VG:()=>l,ZA:()=>d,Zt:()=>m,a3:()=>w,aH:()=>r,h7:()=>C,nw:()=>x,oR:()=>y,qA:()=>u,qp:()=>I,sG:()=>f,vd:()=>P,xk:()=>S});var o=i(89254);const s=e=>{const t={"０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","　":" "},i=String(e).split("");return i.forEach(((e,o)=>{const s=t[e];s&&(i[o]=s)})),i.join("")};function r(e){return function(t,i){const o=[];t&&/\S/.test(t)||o.push(e.message);const s={errors:o,warnings:[]};return i&&i(s),s}}const n=new RegExp(["(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*",'|^"([\\001-\\010\\013\\014\\016-\\037!#-\\[\\]-\\177]|\\\\[\\001-\\011\\013\\014\\016-\\177])*"',")@((?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\.)+[A-Z]{2,20}$)","|\\[(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}\\]$"].join(""),"i");function a(e){return function(t,i){const o=[];(t=t&&t.trim()).match(n)||o.push(e.message);const s={errors:o,warnings:[]};return i&&i(s),s}}function l(e){return function(t,i){const o=[];(t=t&&t.trim()).match(/^[^0-9].*$/)||o.push(e.message);const s={errors:o,warnings:[]};return i&&i(s),s}}function d(e){return function(t,i){const o=[];if(t){const i=parseInt(t,10);Number.isNaN(i)?o.push(e.invalidAgeString):(e.ageTooShortString&&i<10&&o.push(e.ageTooShortString),i<=0||i>120?o.push(e.invalidAgeString):e.checkUnderAgeWithString&&i<13&&o.push(e.checkUnderAgeWithString))}const s={errors:o,warnings:[]};return i&&i(s),s}}function c(e){return function(t,i){const o=(t=t&&t.trim()).replace(/[\(\)\+\-\. ]/g,""),s=[],r=!1!==e.checkLength&&o.length<7;!t||t.match(/^(\(?\+?[0-9]*\)?)?[0-9_\- \.\(\)]*$/g)&&!r||s.push(e.message);const n={errors:s,warnings:[]};return i&&i(n),n}}function u(e){return function(t,i){const o=/^\d+$/,r=[];"number"==typeof t||"string"==typeof t&&(t=t&&t.trim(),(t=s(t))&&!t.match(o)&&r.push(e.message));const n={errors:r,warnings:[]};return i&&i(n),n}}function h(e){return function(t,i){const o=/^[\d\ -]+$/,r=[];"number"==typeof t||"string"==typeof t&&(t=t&&t.trim(),(t=s(t))&&!t.match(o)&&r.push(e.message));const n={errors:r,warnings:[]};return i&&i(n),n}}const p=e=>!!e.match(/^(https?:\/\/){0,1}[a-z0-9_\-]+\..+/gi);function _(e){return function(t,i){const o=[];t&&!p(t)&&o.push(e.message);const s={errors:o,warnings:[]};return i&&i(s),s}}function m(e){return function(t,i){const s=[];if(t)try{const i=(0,o.Z)(t);i&&i.protocol&&("http"!==i.protocol||"localhost"===i.hostname)||s.push(e.message)}catch(n){s.push(e.message)}const r={errors:s,warnings:[]};return i&&i(r),r}}function g(e){return function(t,i){const o=[];(e.should_trim||!1)&&(t=t&&t.trim());const s=t.length;e.min&&s<e.min?o.push(e.minErrorString):e.max&&s>e.max&&o.push(e.maxErrorString);const r={errors:o,warnings:[]};return i&&i(r),r}}function b(e){return function(t,i){const o=!e.checkExclusion,s=e.substrings,r=[];(o&&!s.some((e=>t.includes(e)))||!o&&s.some((e=>t.includes(e))))&&r.push(e.message);const n={errors:r,warnings:[]};return i&&i(n),n}}function f(e){return function(t,i){const o=[];t!==(e&&e.targetValue)&&o.push(e.message);const s={errors:o,warnings:[]};return i&&i(s),s}}function x(e){return function(t,i){const o=[];(t?parseFloat(t):0)<e.value&&o.push(e.message);const s={errors:o,warnings:[]};return i&&i(s),s}}function v(e){return function(t,i){const o=new Date(t),s=[];e.date instanceof Date&&o instanceof Date&&e.date<o&&s.push(e.message);const r={errors:s,warnings:[]};return i&&i(r),r}}function y(e){return function(t,i){const o=[];/^[\040-\176]*$/.test(t)||o.push(e.message);const s={errors:o,warnings:[]};return i&&i(s),s}}function S(e){return function(t,i){let o=2;if(e.hasFractionalCents)o=3;else if(e.currencyCode){const{maximumFractionDigits:t}=new Intl.NumberFormat(void 0,{style:"currency",currency:e.currencyCode}).resolvedOptions();o=t}const s=new RegExp(o?`^\\d*(\\.\\d{1,${o}})?$`:"^\\d*$"),r=[];"number"==typeof t&&(t=t.toString()),t&&!t.match(s)&&(t=t&&t.trim(),r.push(e.message));const n={errors:r,warnings:[]};return i&&i(n),n}}function C(e){return function(t,i){const o=[];Number(t)>=1e13&&o.push(e.message);const s={errors:o,warnings:[]};return i&&i(s),s}}function j(e){return function(t,i){t=t&&t.trim();const o=[],s=new Date(t);t&&!s.getTime()&&o.push(e.message);const r={errors:o,warnings:[]};return i&&i(r),r}}function I(e){return function(t,i){const o=t&&t.trim(),s=[];o&&!o.match(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/)&&s.push(e.message);const r={errors:s,warnings:[]};return i&&i(r),r}}function P(e){return function(t,i){const o=[];e.pattern.test(t)||o.push(e.message);const s={errors:o,warnings:[]};return i&&i(s),s}}function A(e,t){const i=e.map((e=>e(t).errors));return[].concat(...i)}function w(e,t){let i="";return t.some((t=>{const o=t(e);return o.errors.length>0&&(i=o.errors[0],!0)})),i}},869899:(e,t,i)=>{i.r(t),i.d(t,{RoleBasedAccessControlProvider:()=>x,useRoleBasedAccessControlContext:()=>f});var o=i(667294),s=i(389643),r=i(784590),n=i(19121),a=i(773285),l=i(425288),d=i(70061);const c=e=>{const t={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&("object"!=typeof e[i]||null===e[i]||Array.isArray(e[i])?t[(0,d.Z)(i)]=e[i]:t[(0,d.Z)(i)]=c(e[i]));return t},u=(e,t)=>{const i=[];for(const r in e)r!==t&&i.push({id:r,...c(e[r])});const o=i.sort((({user:{businessName:e}},{user:{businessName:t}})=>e.localeCompare(t))),s=new Map;for(const r of o)s.set(r.id,r);return s};var h=i(622096);const p={profiles:new Map,headerVisible:!1,orbacVisibility:!1,activeProfile:void 0,disableProfileChanger:!1},_=(e,t)=>{switch(t.type){case"LOAD_PROFILES":return{...e,profiles:t.payload};case"SET_ACTIVE_PROFILE":return{...e,activeProfile:t.payload};case"TOGGLE_HEADER_VISIBILITY":return{...e,headerVisible:t.payload};case"TOGGLE_ORBAC_VISIBILITY":return{...e,orbacVisibility:t.payload};case"TOGGLE_DISABLE_PROFILE_CHANGER":return{...e,disableProfileChanger:t.payload};default:return e}},m=e=>{const[t,i]=(0,o.useReducer)(_,p),s=(({dispatch:e,isEnabled:t,state:i})=>{const{orbacVisibility:s,disableProfileChanger:r,headerVisible:n}=i;return{changeProfile:(0,o.useCallback)((i=>{t&&e({type:"SET_ACTIVE_PROFILE",payload:i})}),[t,e]),toggleORBACVisibility:(0,o.useCallback)((i=>{t&&e({type:"TOGGLE_ORBAC_VISIBILITY",payload:null!=i?i:!s})}),[t,e,s]),toggleDisableProfileChanger:(0,o.useCallback)((i=>{t&&e({type:"TOGGLE_DISABLE_PROFILE_CHANGER",payload:null!=i?i:!r})}),[t,e,r]),toggleHeaderVisibility:(0,o.useCallback)((i=>{t&&e({type:"TOGGLE_HEADER_VISIBILITY",payload:null!=i?i:!n})}),[t,e,n])}})({dispatch:i,isEnabled:e,state:t}),{activeProfile:r,orbacVisibility:n}=t;(0,o.useEffect)((()=>{const e=(0,h.qn)("orbacActiveProfile",!1);e&&i({type:"SET_ACTIVE_PROFILE",payload:e})}),[]),(0,o.useEffect)((()=>{const e=(0,h.qn)("orbacVisibilty",!1);e&&i({type:"TOGGLE_ORBAC_VISIBILITY",payload:e})}),[]),(0,o.useEffect)((()=>{(0,h.Nh)("orbacVisibility",n)}),[n]),(0,o.useEffect)((()=>{(0,h.Nh)("orbacActiveProfile",r)}),[r]);return{state:t,actions:s,receiveProfiles:(0,o.useCallback)(((e,t)=>{i({type:"LOAD_PROFILES",payload:u(e,t)})}),[i])}};var g=i(785893);const{Provider:b,useMaybeHook:f}=(0,l.Z)("RoleBasedAccessControlContext"),x=({children:e})=>{const{checkExperiment:t}=(0,a.F)(),i=(0,n.Z)(),l=Boolean(i.isAuth&&i.isPartner&&t("web_m10n_business_access_orbac_www").anyEnabled),{state:d,actions:c,receiveProfiles:u}=m(l),{activeProfile:h,headerVisible:p,profiles:_=[]}=d,f=_?Array.from(_.values()):[],x=(0,s.Z)(f),v=!!(i.isAuth&&f.length>0)&&x,y=i.isAuth?i.id:"",S=i.isAuth?i.username:"",{changeProfile:C,toggleORBACVisibility:j,toggleDisableProfileChanger:I,toggleHeaderVisibility:P}=c;(0,o.useEffect)((()=>{l&&("string"!=typeof x?h||C(y):C(x))}),[x,y,l,C,h]),(0,o.useEffect)((()=>{l&&(v&&!p&&P(!0),!v&&p&&P(!1))}),[P,v,l,p,_]);const{data:A}=(0,r.Z)(l?{name:"ApiResource",options:{url:"/vx/business_access/profiles/",disable_auth_failure_redirect:!0}}:null),w=null==A?void 0:A.profiles;let B;i&&i.isAuth&&d.activeProfile===i.id?B={id:i.id,permissions:["OWNER"],user:{username:S,businessName:i.fullName,imgUrl:i.imageSmallUrl}}:h&&d.profiles&&(B=d.profiles.get(h)),(0,o.useEffect)((()=>{w&&u(w,y)}),[u,w,y]);const E=d.profiles?Array.from(d.profiles.values()):[];return(0,g.jsx)(b,{value:{profiles:E,headerVisible:d.headerVisible,activeProfile:B,changeProfile:C,toggleORBACVisibility:j,toggleDisableProfileChanger:I,toggleHeaderVisibility:P},children:e})}},717615:(e,t,i)=>{i.d(t,{Z:()=>n});var o=i(389643),s=i(773285),r=i(869899);const n=()=>{const{checkExperiment:e}=(0,s.F)(),t=(0,r.useRoleBasedAccessControlContext)(),{activeProfile:i}=t||{},n=e("web_m10n_business_access_orbac_www").anyEnabled,a=(0,o.Z)((null==t?void 0:t.profiles)||[]),{anyEnabled:l}=e("useorbacroutematcher_in_useorbacactingas");return n?l&&!a?Object.freeze({}):i&&(i.viewerMeetsMfaRequirement||(i.permissions||[]).includes("OWNER"))?i:Object.freeze({}):Object.freeze({})}},389643:(e,t,i)=>{i.d(t,{Z:()=>l});var o=i(702664),s=i(19121),r=i(773285),n=i(53987),a=i(276775);const l=e=>{var t;const i=(0,a.useLocation)(),l=(0,s.Z)(),{anyEnabled:d}=(0,r.F)().checkExperiment("web_m10n_business_access_orbac_www"),c=(0,a.useRouteMatch)("/:username"),u=null==c||null===(t=c.params)||void 0===t?void 0:t.username,h=(0,a.useRouteMatch)("/pin/:id"),p=(0,o.useSelector)((e=>{var t,i,o,s;return!(null==h||null===(t=h.params)||void 0===t||!t.id)&&(null==e||null===(i=e.pins)||void 0===i||null===(o=i[h.params.id])||void 0===o||null===(s=o.pinner)||void 0===s?void 0:s.id)}));if((0,n.ej)(i))return!1;if((0,n.RU)(i))return!0;if((0,n.mY)(i))return d;const _=e.concat(l.isAuth?{user:{username:l.username},id:l.id}:{}).find((e=>{const{user:t={},id:i}=e||{},{username:o}=t;return!!(o&&u||p&&i)&&(o===u||p===i)}));return!!_&&_.id}},231947:(e,t,i)=>{i.d(t,{D3:()=>d,DX:()=>a,KY:()=>c,Ms:()=>o,N1:()=>u,_P:()=>n,lJ:()=>r,nl:()=>s,q6:()=>l});const o=(e,t)=>{let i=e&&e.isAuth?e.username:"";return e&&t&&t.user&&t.user.username&&(i=t.user.username),i},s=(e,t)=>Boolean(t&&t.user&&e&&e.isAuth&&t.id!==e.id?t.user.eligibleForStlTool:e&&e.isAuth&&e.eligibleForStlTool),r=(e,t)=>e&&e.isAuth&&t&&t.id&&t.id!==e.id?t.id:"",n=(e,t,i)=>{var o;return i&&i.user&&t&&t.isAuth&&i.id!==t.id?i.user.merchantId:null===(o=e.advertiser)||void 0===o?void 0:o.merchant_id},a=(e,t,i)=>i&&i.user&&e.isAuth&&i.id!==e.id?i.user.scheduledPinCount||0:e.isAuth&&t&&t.scheduled_pin_count||0,l=(e,t,i)=>!!(e&&e.isAuth&&i&&i.id&&i.id!==e.id&&i.id===t),d=(e,t,i)=>!!(l(e,t,i)||e&&e.isAuth&&t===e.id),c=(e,t,i)=>{const o=t&&t.owner&&t.owner.id||"";return d(e,o,i)};function u(e,t,i){const o=t?t.id:"";return d(e,o,i)}},763594:(e,t,i)=>{i.d(t,{Z:()=>b});var o=i(667294),s=i(149230),r=i(112690),n=i(901787),a=i(883119),l=i(785893);function d({action:e,alignCenter:t}){const i=(0,r.Z)(),{title:o,description:d,button:c}=e,u=o&&o.text,h=d&&d.text,p=c&&c.text||"",_=c&&c.link||"",m=c&&c.link?c.link.replace(/^(?:https?:\/\/)?(?:www\.)?/i,"").replace("/",""):"",g=c&&p&&_.startsWith("http"),b=(0,s.Z)({url:_}),f=g&&b?"nofollow":"none";return g?(0,l.jsxs)(a.xu,{children:[(0,l.jsx)(a.xu,{marginBottom:1,children:(0,l.jsx)(a.xv,{align:t?"center":"start",weight:"bold",children:""!==p?p:"Visit"})}),(0,l.jsx)(a.xu,{marginBottom:1,children:(0,l.jsx)(a.rU,{rel:f,href:_,onClick:()=>{(0,n.AY)(i,_)},children:(0,l.jsx)(a.xv,{align:t?"center":"start",lineClamp:1,weight:"normal",underline:!0,children:m})})})]}):(0,l.jsxs)(a.xu,{children:[!!u&&(0,l.jsx)(a.xu,{marginBottom:1,children:(0,l.jsx)(a.xv,{align:t?"center":"start",weight:"bold",children:u})}),!!h&&(0,l.jsx)(a.xu,{marginBottom:1,children:(0,l.jsx)(a.xv,{align:t?"center":"start",children:h})})]})}function c(e,t){const i=[];let o=0;for(let s=0;s<t.length;s+=1){const r=t[s];if(5===r.tag_type&&r.link){const t=e.substring(r.offset,r.offset+r.length),s=(0,l.jsx)(a.xv,{inline:!0,weight:"bold",children:(0,l.jsx)(a.rU,{display:"inlineBlock",target:"blank",href:r.link,underline:"hover",children:t},t)});i.push((0,l.jsx)("span",{children:e.substring(o,r.offset)})),i.push(s),o=r.offset+r.length}}return o>0&&i.push((0,l.jsx)("span",{children:e.substring(o)})),0===i.length?[(0,l.jsx)("span",{children:e})]:i}const u={backgroundColor:"#E1F8F7",boxShadow:"0 4px 16px rgba(0, 0, 0, 0.04)"},h={boxShadow:"0 4px 16px rgba(0, 0, 0, 0.04)"};function p({inModal:e,notice:t}){const{title:i,description:o,actions:s=[]}=t,r=o&&o.text||"",n=o&&o.text_tags||[],p=1===s.length,_=c(r,n);return(0,l.jsxs)(a.xu,{rounding:2,padding:6,dangerouslySetInlineStyle:{__style:e?h:u},children:[!!i&&!e&&(0,l.jsx)(a.xu,{marginBottom:2,display:"flex",children:(0,l.jsx)(a.X6,{size:"500",children:i})}),!!r&&(0,l.jsx)(a.xu,{marginBottom:4,children:(0,l.jsx)("span",{style:{whiteSpace:"pre-wrap"},children:(0,l.jsx)(a.xv,{overflow:"normal",align:e?"center":"start",children:_})})}),!!s.length&&(0,l.jsx)(a.xu,{display:"flex",wrap:!0,marginStart:-2,marginEnd:-2,direction:e?"column":"row",children:s.map((t=>(0,l.jsx)(a.xu,{column:e||p?12:6,paddingY:1,paddingX:2,children:(0,l.jsx)(d,{action:t,alignCenter:e||p})},JSON.stringify(t))))})]})}function _({notice:e}){const t=(0,r.Z)(),{actions:i=[],description:o,footer:s}=e,d=c(o&&o.text||"",o&&o.text_tags||[]),u={color:"#004b91",display:"block",fontSize:"28px",WebkitFontSmoothing:"antialiased"};return(0,l.jsxs)(a.xu,{width:"100%",display:"flex",direction:"column",alignItems:"center",marginBottom:3,children:[(0,l.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:"#86d1ce"}},display:"flex",justifyContent:"center",width:656,rounding:8,children:(0,l.jsxs)(a.xu,{height:"100%",width:"100%",padding:10,children:[(0,l.jsx)("span",{style:u,children:d}),(0,l.jsx)(a.xu,{marginTop:6,children:i.map((e=>{var i;const o=null===(i=e.button)||void 0===i?void 0:i.link;var s,r,d;return o&&o.startsWith("tel")?(0,l.jsxs)(a.xu,{children:[(0,l.jsx)("span",{style:{fontWeight:"600",...u},children:null===(s=e.title)||void 0===s?void 0:s.text}),(0,l.jsx)("span",{style:u,children:null===(r=e.description)||void 0===r?void 0:r.text})]}):(0,l.jsx)(a.rU,{href:o||"",onClick:()=>{(0,n.AY)(t,o||"")},children:(0,l.jsx)(a.xu,{display:"inlineBlock",children:(0,l.jsx)(a.xu,{alignItems:"center",color:"infoBase",display:"flex",justifyContent:"center",height:44,rounding:"pill",paddingX:12,children:(0,l.jsx)(a.xv,{color:"inverse",weight:"bold",children:(null===(d=e.button)||void 0===d?void 0:d.text)||""})})})})}))})]})}),!!s&&(0,l.jsx)(a.xu,{paddingY:2,width:540,children:(0,l.jsx)(a.rU,{href:s.link,display:"inlineBlock",onClick:()=>{(0,n.AY)(t,s.link)},target:"blank",underline:"hover",children:(0,l.jsx)(a.xv,{align:"center",color:"subtle",size:"100",children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:s.text}})})},s.link)})]})}var m=i(829407),g=i(407043);function b({inModal:e,notices:t,viewType:i,query:s,sensitivity:r}){const{logContextEvent:n}=(0,g.v)();return(0,m.Z)((()=>{i&&n({event_type:120,component:13367,view_type:i,aux_data:{entered_query:s,advisory_details:null==r?void 0:r.advisory_details,advisory_level:null==r?void 0:r.advisory,severity_level:null==r?void 0:r.severity}})})),(0,l.jsx)(o.Fragment,{children:t.map((t=>2===t.style?(0,l.jsx)(_,{notice:t}):(0,l.jsx)(p,{notice:t,inModal:e})))})}},901787:(e,t,i)=>{i.d(t,{AY:()=>n,IR:()=>s,St:()=>o,Uz:()=>r});const o={CONDITIONAL:0,EMOTIONAL_DISDRESS_OR_SUICIDE:4},s={ABUSIVE:0,SENSITIVE:1,BRAND_UNSAFE:2};function r(e){return!!e&&e.severity===s.ABUSIVE}function n(e,t){e({aux_data:{url:t},component:13367,element:11180,event_type:101,view_parameter:43,view_type:2})}},825067:(e,t,i)=>{i.d(t,{H:()=>s,W:()=>r});var o=i(425288);const{Provider:s,useMaybeHook:r}=(0,o.Z)("PinCreateDeleteContext")},513770:(e,t,i)=>{i.d(t,{Z:()=>b});var o=i(667294),s=i(507016),r=i(538716),n=i(887831),a=i(898781),l=i(883119),d=i(785893);function c(e){const t=(0,a.ZP)(),{buttonLabel:i,hasHoverState:o,name:s,onClick:r}=e,{isHovering:c,hoverHandlers:u}=(0,n.Z)(),h=s||i||t.bt("Create board", "Create board", " - ", undefined, true);return(0,d.jsx)(l.iP,{onMouseEnter:u.onMouseOver,onMouseLeave:u.onMouseLeave,onTap:r,children:(0,d.jsxs)(l.xu,{alignItems:"center",color:o&&c?"secondary":"default",display:"flex",padding:4,height:"100%",width:"100%",children:[(0,d.jsx)(l.xu,{rounding:2,dangerouslySetInlineStyle:{__style:{padding:"14px"}},marginEnd:2,color:"secondary",children:(0,d.jsx)(l.JO,{accessibilityLabel:"",size:20,icon:"add",color:"default"})}),s?(0,d.jsx)(l.xu,{margin:1,children:(0,d.jsxs)(l.xv,{inline:!0,overflow:"normal",children:[" ",t.bt("Create: ", "Create: ", " - ", undefined, true)," "]})}):null,(0,d.jsxs)(l.xv,{align:"center",inline:!0,lineClamp:1,weight:"bold",children:[" ",h," "]})]})})}var u=i(176020),h=i(33897),p=i(960260),_=i(129291);function m(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class g extends o.Component{constructor(...e){super(...e),m(this,"state",{searchQuery:""}),m(this,"handleSelectItem",(e=>{const{onCreate:t,onSelected:i}=this.props;if(!e&&t){const{searchQuery:e}=this.state;t(e)}else e&&i(e);(t||e)&&this.setState({searchQuery:""})})),m(this,"handleSearchQueryInput",(e=>{this.setState({searchQuery:e})})),m(this,"renderSectionHeader",(e=>e.title?(0,d.jsx)(l.xu,{children:(0,d.jsx)(l.xu,{paddingX:3,paddingY:1,children:(0,d.jsx)(l.xv,{size:"200",children:e.title})})}):null)),m(this,"renderRow",(({item:e,hovered:t,sectionProps:i={}})=>{const{boardSavedTo:o,isSelectMode:r,disabledRowId:n}=this.props,{searchQuery:a}=this.state,{inSectionSelection:l=!1}=i,c=o&&o.board===e.id?o&&o.state:null,u="board_section"===e.type;return(0,d.jsx)(s.Z,{disabled:e.id===n&&l,isSection:u,isSelectMode:r,isWithinSectionPicker:l,item:e,saveState:c,searchQuery:a,selected:t})}))}componentDidUpdate(e){if(!e.isLoaded&&this.props.isLoaded){const{boardPickerStopwatch:e,hasLoadError:t}=this.props;e&&(t?e.error():e.stop())}}render(){const{boardSavedTo:e,createButtonLabel:t,hasLowBoardCount:i,getSections:o,isLoaded:s,onCreate:n,pinId:a}=this.props;if(s){const{searchQuery:s}=this.state,_=o(s);return this.indexManager=new u.Z(_.map((e=>e.items))),this.indexManager.setSelectItem(this.handleSelectItem),(0,d.jsxs)(l.xu,{minHeight:0,flex:"grow",height:"100%",overflow:"auto",display:"flex",direction:"column",dangerouslySetInlineStyle:{__style:{zIndex:0}},children:[!i&&(0,d.jsx)(l.xu,{children:(0,d.jsx)(l.xu,{paddingX:3,marginBottom:4,marginTop:1,children:(0,d.jsx)(h.Z,{disabled:!!e,indexManager:this.indexManager,onChange:this.handleSearchQueryInput,value:s})})}),(0,d.jsx)(p.Z,{disabled:!!e,grow:!i&&!s,indexManager:this.indexManager,onSelectItem:this.handleSelectItem,renderItem:this.renderRow,renderSectionHeader:this.renderSectionHeader,sections:_}),n&&(0,d.jsx)(l.xu,{borderStyle:_.length>1?"shadow":"none",children:(0,d.jsx)(c,{buttonLabel:t,hasHoverState:!0,name:s,onClick:()=>n(s)})}),i&&n&&a&&(0,d.jsx)(r.Z,{onBoardSelected:n,pinId:a})]})}return(0,d.jsx)(l.xu,{paddingY:5,children:(0,d.jsx)(l.$j,{accessibilityLabel:this.props.i18n.bt("loading section picker", "loading section picker", "accessibility label for the loading spinner the repin picker", undefined, true),show:!0})})}}function b(e){const t=(0,a.ZP)(),i=(0,_.iN)();return(0,d.jsx)(g,{...e,boardPickerStopwatch:i,i18n:t})}},615298:(e,t,i)=>{i.d(t,{j:()=>r});const o={"á":"a","à":"a","â":"a","ä":"a","ã":"a","å":"a","æ":"a","ç":"c","é":"e","è":"e","ê":"e","ë":"e","í":"i","ì":"i","î":"i","ï":"i","ñ":"n","ó":"o","ò":"o","ô":"o","ö":"o","õ":"o","ø":"o","œ":"o","ß":"s","ú":"u","ù":"u","û":"u","ü":"u"},s=e=>{if(!e)return"";let t="";for(let i=0;i<e.length;i+=1)t+=o[e.charAt(i)]||e.charAt(i);return t},r=(e,t,i="name")=>{const o=t.toLowerCase();return e.filter((e=>((e,t)=>{const i=t.split(" "),o=e.split(" ");let r=0;for(let n=0;n<o.length;n+=1)(s(o[n]).includes(i[r])||o[n].includes(i[r]))&&(r+=1);return r===i.length})(e[i].toLowerCase(),o)))}},425480:(e,t,i)=>{i.d(t,{Z:()=>n});var o=i(667294),s=i(700380);function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class n extends o.PureComponent{constructor(...e){super(...e),r(this,"setContainerRef",(e=>{this.containerRef=e})),r(this,"fetchMoreIfNecessary",(0,s.Z)((()=>{const{fetchMore:e,scrollBuffer:t}=this.props;e&&this.containerRef&&(({scrollTop:e,clientHeight:t,scrollHeight:i},o)=>e+t+(o?o(t):2*t)>i)(this.containerRef,t)&&e()}),200))}componentDidMount(){setTimeout(this.fetchMoreIfNecessary)}componentDidUpdate(){this.fetchMoreIfNecessary()}render(){const{children:e}=this.props;return e({onScroll:this.fetchMoreIfNecessary,setRef:this.setContainerRef})}}},486746:(e,t,i)=>{i.d(t,{Z:()=>l});var o=i(488769),s=i(758119),r=i(883119),n=i(785893);const a=({collaborator_count:e,useLegoLayout:t,type:i})=>t?(0,n.jsx)(r.xu,{marginEnd:e?2:0,children:(0,n.jsx)(o.Z,{type:i})}):(0,n.jsx)(o.Z,{type:i}),l=({board:e,showCollaborativeIcon:t,showPrivateIcon:i,showProtectedIcon:l,showSectionsIcon:d,useLegoLayout:c})=>{var u;const h=(null==e||null===(u=e.collaborating_users)||void 0===u?void 0:u.length)||0;return t||i||l||d?(0,n.jsxs)(r.xu,{display:"flex",direction:"row",marginEnd:c?0:5,dangerouslySetInlineStyle:{__style:{paddingLeft:8}},alignItems:"center",children:[i&&(0,n.jsx)(a,{collaborator_count:h,useLegoLayout:c,type:"secret"}),l&&(0,n.jsx)(a,{collaborator_count:h,useLegoLayout:c,type:"protected"}),t&&(c?(0,n.jsx)(s.Z,{board:e,isCompact:!0,ownerOnly:!1}):(0,n.jsx)(o.Z,{type:"group"})),d&&(0,n.jsx)(o.Z,{type:"sections"})]}):null}},24886:(e,t,i)=>{i.d(t,{Z:()=>r});var o=i(883119),s=i(785893);const r=({image_url:e,naturalHeight:t,naturalWidth:i})=>(0,s.jsx)(o.xu,{"aria-hidden":"true",marginBottom:1,marginEnd:2,marginTop:1,overflow:"hidden",width:48,height:48,children:(0,s.jsx)(o.zd,{wash:!0,width:48,height:48,rounding:2,children:(0,s.jsx)(o.Ee,{src:e,alt:"",naturalHeight:t,naturalWidth:i})})})},176558:(e,t,i)=>{i.d(t,{Z:()=>f});var o=i(667294),s=i(883119),r=i(785893);function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const a=["#0074e8","#0FA573","#B469EB","#F13535","#E2780D"],l=(e,t)=>Math.random()*((e||1)-(t||0))+(t||0),d=e=>e*(Math.PI/180);class c extends o.PureComponent{constructor(...e){super(...e),n(this,"animationTimer",null),n(this,"canvasRemovalTimer",null),n(this,"containerRef",(0,o.createRef)()),n(this,"buildCanvas",(()=>{if(!this.containerRef.current)return null;const{height:e,width:t}=this.containerRef.current.getBoundingClientRect(),i=2.5*e,o=document.createElement("canvas");return o.style.position="absolute",o.style.left=0-(i-t)/2+"px",o.style.top=0-(i-e)/2+"px",o.style.pointerEvents="none",o.style.width=`${i}px`,o.style.height=`${i}px`,o.style.overflow="visible",o.width=i,o.height=i,o})),n(this,"explode",(()=>{const e=this.buildCanvas(),t=this.containerRef.current;if(!e||!t)return;const i=e.getContext("2d");t.prepend(e);const o=Array.from(Array(120)).map((()=>({x:e.width/2,y:e.height/2,radius:Math.round(l(10,30)),color:a[Math.floor(Math.random()*a.length)],degree:Number(l(0,360).toFixed(1)),speed:Math.round(l(0,25)),friction:.9,opacity:Number(l(0,.5).toFixed(1)),yVel:0,gravity:.04}))),s=(e,t,i,o)=>{window.requestAnimationFrame((()=>s(e,t,i,o))),t.clearRect(0,0,i,o),e.forEach(((e,i)=>{e.x+=e.speed*Math.cos(d(e.degree)),e.y+=e.speed*Math.sin(d(e.degree)),e.opacity-=.01,e.speed*=e.friction,e.radius*=e.friction,e.yVel+=e.gravity,e.y+=e.yVel,e.opacity<0||e.radius<0||(t.beginPath(),t.globalAlpha=e.opacity,t.fillStyle=e.color,t.arc(e.x,e.y,e.radius,0,2*Math.PI,!1),t.fill())}))};s(o,i,e.width,e.height),this.canvasRemovalTimer=setTimeout((()=>{t.removeChild(e)}),(this.props.delay||0)+800)}))}componentDidUpdate(e){const{delay:t,startAnimation:i}=this.props,{startAnimation:o}=e;i&&o!==i&&(this.animationTimer=setTimeout(this.explode,t))}componentWillUnmount(){this.animationTimer&&clearTimeout(this.animationTimer),this.canvasRemovalTimer&&clearTimeout(this.canvasRemovalTimer)}render(){return(0,r.jsx)(s.xu,{ref:this.containerRef,position:"relative",children:this.props.children})}}n(c,"defaultProps",{delay:0});const u=c;var h=i(349700),p=i(898781);function _(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const m=e=>({opacity:e?1:0,WebkitTransition:"opacity .5s ease-in-out .75s",transition:"opacity .5s ease-in-out .75s",overflow:"visible"}),g=e=>({opacity:e?1:0,WebkitTransform:e?"translateY(0)":"translateY(20%)",transform:e?"translateY(0)":"translateY(20%)",WebkitTransition:"all .5s ease-in-out .75s",transition:"all .5s ease-in-out .75s",textAlign:"center",marginTop:"24px"});class b extends o.PureComponent{constructor(...e){super(...e),_(this,"state",{isInitialized:!1}),_(this,"containerRef",(0,o.createRef)()),_(this,"pinDestinationRef",(0,o.createRef)())}componentDidMount(){window.requestAnimationFrame((()=>{this.setState({isInitialized:!0})}))}componentWillUnmount(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}componentDidUpdate(e,t){const{isInitialized:i}=this.state,{onDismiss:o}=this.props;i&&o&&!this.dismissTimeout&&(this.dismissTimeout=setTimeout(o,2600))}render(){const{firstRepin:e,pin:t,pinImageRef:i,selectedBoardName:n}=this.props,{description:a="",images:l}=t,{height:d=0,width:c=0,url:p=""}=(null==l?void 0:l["236x"])||{},{isInitialized:_}=this.state,{mask:b,imageContainer:f}=((e,t,i,o)=>{var s,r,n;let a,l,d={};const c=null===(s=i.current)||void 0===s?void 0:s.getBoundingClientRect(),u=null===(r=t.current)||void 0===r?void 0:r.getBoundingClientRect(),h=null===(n=o.current)||void 0===n?void 0:n.getBoundingClientRect();if(u&&c&&h){d={left:c.left-u.left,top:c.top-u.top};const e={x:h.left-c.left,y:h.top-c.top},t={x:(h.width-c.width)/2,y:(h.height-c.height)/2};a=`translate(${e.x}px, ${e.y}px)`,l=`translate(${t.x}px, ${t.y}px)`}return{mask:{position:"absolute",left:d.left,top:d.top,width:e?null==h?void 0:h.width:null==c?void 0:c.width,height:e?null==h?void 0:h.height:null==c?void 0:c.height,WebkitTransformOrigin:"left top",transformOrigin:"left top",WebkitTransform:e?a:"none",transform:e?a:"none",WebkitTransition:"all .5s ease-in-out .25s",transition:"all .5s ease-in-out .25s",borderRadius:e?"8px 0px 0px 8px":"8px",zIndex:2},imageContainer:{width:null==c?void 0:c.width,height:null==c?void 0:c.height,WebkitTransformOrigin:"left top",transformOrigin:"left top",WebkitTransform:e?l:"none",transform:e?l:"none",WebkitTransition:"all .5s ease-in-out .25s",transition:"all .5s ease-in-out .25s"}}})(_,this.containerRef,i,this.pinDestinationRef);return(0,r.jsx)(o.Fragment,{children:(0,r.jsxs)(s.xu,{position:"absolute",top:!0,bottom:!0,right:!0,left:!0,ref:this.containerRef,children:[(0,r.jsx)(s.xu,{maxHeight:335,overflow:"hidden",dangerouslySetInlineStyle:{__style:b},children:(0,r.jsx)(s.xu,{dangerouslySetInlineStyle:{__style:f},children:(0,r.jsx)(s.Ee,{alt:null!=a?a:"",src:p||"",naturalHeight:d||1,naturalWidth:c||1})})}),(0,r.jsx)(s.xu,{color:"default",position:"absolute",top:!0,bottom:!0,right:!0,left:!0,dangerouslySetInlineStyle:{__style:(x=_,{pointerEvents:"none",opacity:x?1:0,WebkitTransition:"opacity .3s ease-in-out",transition:"opacity .3s ease-in-out",zIndex:1})},children:(0,r.jsxs)(s.xu,{display:"flex",justifyContent:"center",alignItems:"center",direction:"column",height:"100%",dangerouslySetInlineStyle:{__style:m(_)},children:[(0,r.jsx)(u,{delay:1250,startAnimation:_,children:(0,r.jsx)(s.zd,{rounding:2,width:270,height:180,children:(0,r.jsxs)(s.kC,{alignItems:"stretch",justifyContent:"start",height:"100%",width:"100%",children:[(0,r.jsx)(s.xu,{ref:this.pinDestinationRef,color:"transparent",marginEnd:1,flex:"grow",height:"100%"}),(0,r.jsxs)(s.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",width:80,children:[(0,r.jsx)(s.xu,{color:"secondary",flex:"grow",marginBottom:1}),(0,r.jsx)(s.xu,{color:"secondary",flex:"grow"})]})]})})}),(0,r.jsx)(s.xu,{paddingX:2,dangerouslySetInlineStyle:{__style:g(_)},children:(0,r.jsx)(s.X6,{align:"center",children:e?(0,h.nk)(this.props.i18n.bt("You saved your first Pin to {{ selectedBoardName }}!", "You saved your first Pin to {{ selectedBoardName }}!", "First board create confirmation message", undefined, true),{selectedBoardName:null!=n?n:""}):(0,h.nk)(this.props.i18n.bt("You saved this Pin to {{ selectedBoardName }}!", "You saved this Pin to {{ selectedBoardName }}!", "Board create confirmation message", undefined, true),{selectedBoardName:null!=n?n:""})})})]})})]})});var x}}function f(e){const t=(0,p.ZP)();return(0,r.jsx)(b,{...e,i18n:t})}_(b,"defaultProps",{firstRepin:!1})},758119:(e,t,i)=>{i.d(t,{Z:()=>u});var o=i(189734),s=i.n(o),r=i(898781),n=i(19121),a=i(883119),l=i(349700),d=i(785893);function c(e){var t,i,o,s;const r=null!==(t=null!==(i=null==e?void 0:e.imageMediumUrl)&&void 0!==i?i:null==e?void 0:e.image_medium_url)&&void 0!==t?t:"";return{name:null!==(o=null!==(s=null==e?void 0:e.fullName)&&void 0!==s?s:null==e?void 0:e.full_name)&&void 0!==o?o:"",src:"https://s.pinimg.com/images/user/default_75.png"===r?void 0:r}}function u({board:e,forceViewer:t,isCompact:i,ownerOnly:o}){var u,h,p,_,m;const g=(0,r.ZP)(),b=(0,n.Z)(),f=o?[c(null==e?void 0:e.owner)]:function(e,t,i){const{collaborated_by_me:o,collaborating_users:r,owner:n}=null!=e?e:{},a=null!=r?r:[],l=[n];if(o||i){const e=a.findIndex((e=>t.isAuth&&e.id===t.id));if(-1!==e){const t=a.splice(e,1)[0];l.push(t)}else l.push(t)}const d=s()(a,"full_name");return[...l,...d]}(e,b,t).map(c),x=f.slice(0,3).map((e=>e.name));let v="";switch(f.length){case 3:v=(0,l.Wc)(`${g.bt("{{ first }}, {{ second }} and {{ last }}", "{{ first }}, {{ second }}, and {{ last }}", "CollaboratorsFacePile.AvatarGroup.accessibilityLabel.usernames.ThreeAvatars", undefined, true)}`,{first:`${null!==(u=x[0])&&void 0!==u?u:""}`,second:`${null!==(h=x[1])&&void 0!==h?h:""}`,last:`${null!==(p=x[2])&&void 0!==p?p:""}`});break;case 2:v=(0,l.Wc)(`${g.bt("{{ first }} and {{ second }}", "{{ first }} and {{ second }}", "CollaboratorsFacePile.AvatarGroup.accessibilityLabel.usernames.TwoAvatars", undefined, true)}`,{first:`${null!==(_=x[0])&&void 0!==_?_:""}`,second:`${null!==(m=x[1])&&void 0!==m?m:""}`});break;default:v=x.join(", ")}const y=f.length>3?(0,l.Wc)(`, ${g.nbt(["Collaborators: {{ userNames }} and {{ leftCount }} more.", "Collaborators: {{ userNames }} and {{ leftCount }} more."], f.length - 3, "CollaboratorsFacePile.AvatarGroup.accessibilityLabel.aboveThree", true)}`,{userNames:v,leftCount:""+(f.length-3)}):(0,l.Wc)(`, ${g.bt("Collaborators: {{ userNames }}.", "Collaborators: {{ userNames }}.", "CollaboratorsFacePile.AvatarGroup.accessibilityLabel.notAboveThree", undefined, true)}`,{userNames:v});return(0,d.jsx)(a.HE,{accessibilityLabel:y,collaborators:f,size:i?"xs":"sm"})}},239682:(e,t,i)=>{function o(e,t,i){return{privacy_filter:t?"secret":"public",sort:i||"last_pinned_to",field_set_key:"profile_grid_item",username:e}}i.d(t,{Z:()=>o})},240265:(e,t,i)=>{i.d(t,{O:()=>a,Q:()=>l});var o=i(59644),s=i(414327),r=i(956800);const n=["alphabetical","last_pinned_to","oldest","newest","group_boards_at_top","custom"],a={name:"BoardsResource",key:"boardsResource",options:({boardOrder:e,filterStories:t,mixPublicSecret:i,username:o},s)=>({privacy_filter:"all",sort:e||"last_pinned_to",field_set_key:"profile_grid_item",filter_stories:t,username:o,page_size:25,group_by:i?"mix_public_private":"visibility",include_archived:!0,redux_normalize_feed:!0,...s?{orbac_subject_id:s}:Object.freeze({})})},l=e=>n.reduce(((t,i)=>{const n=[(0,r.N8)("profileBoards",(0,o.Z)(e,i))];return[!0,!1].forEach((t=>{[!0,!1].forEach((o=>{n.push((0,s.jB)(a.name,a.options({username:e,boardOrder:i,mixPublicSecret:t,filterStories:o})))}))})),t.concat(n)}),[])},678638:(e,t,i)=>{i.d(t,{$n:()=>f,A4:()=>S,CE:()=>p,ET:()=>A,F$:()=>b,Kw:()=>I,Nv:()=>j,PA:()=>y,X_:()=>P,d9:()=>x,e1:()=>h,o4:()=>C,vB:()=>m});var o=i(563339),s=i(483025),r=i(254176),n=i(422946),a=i(379725),l=i(782677),d=i(6637),c=i(956800),u=i(414327);function h(e){return t=>{const{boardId:i,sectionIdBefore:o,sectionIdAfter:s,sourceSectionId:r,targetSectionId:a}=e;t((0,c._f)({feedType:n.DV.BOARD_SECTIONS,feedId:i,itemType:"board_section",sourceItemId:r,targetItemId:a}));const l={section_id:r,section_before:o||void 0,section_after:s||void 0};return d.Z.create("BoardSectionsReorderResource",l).callUpdate({showError:!1})}}function p(e,t){return i=>i((0,a.U)("BoardSectionResource",{options:{field_set_key:t||"board_page",section_id:e}}))}function _(e,t){return{type:"SECTION_ADDED",payload:{boardId:e,section:t}}}function m({boardId:e,name:t,nameSource:i,pinImport:s,initialPinIds:a=[]},l,h){let p=0;"RECOMMENDATION"===i?p=1:"EDITED_RECOMMENDATION"===i&&(p=2);const m={board_id:e,initial_pins:s&&!s.all?s.pinIds:a,name:t,name_source:p,...h?{orbac_subject_id:h}:Object.freeze({})};return t=>d.Z.create("BoardSectionResource",m).callCreate({showError:!1}).then((({resource_response:{data:i}})=>{t(_(e,i)),t((0,c.vX)({feedId:e,feedType:n.DV.BOARD_SECTIONS,itemIds:[i.id],itemType:"board_section"})),t((0,r.Tq)(e,"pin_count")),t((0,u.jB)("BoardSectionsRepinResource",{board_id:e}));const{all:a,pinIds:d}=s||{all:!1,pinIds:[]};return a?new Promise(((s,r)=>t((0,o.Z)({inverseSelection:!0,selectedPinIds:d,source:{boardId:e,sectionId:null},target:{boardId:e,sectionId:i.id}},l)).then((()=>s(i))).catch(r))):(d.length>0&&t((0,c.N8)(n.DV.BOARDFEED,e)),i)}))}function g(e,t){return{type:"SECTION_DELETED",payload:{boardId:e,sectionId:t}}}function b(e,t,i){return o=>d.Z.create("BoardSectionEditResource",{section_id:t,...i?{orbac_subject_id:i}:Object.freeze({})}).callDelete({showError:!1}).then((()=>Promise.all([o(g(e,t)),o((0,c.EX)({feedId:e,feedType:n.DV.BOARD_SECTIONS,itemIds:[t],itemType:"board_section"})),o((0,r.Tq)(e,"pin_count")),o((0,u.jB)("BoardSectionsRepinResource",{board_id:e}))])))}function f(e,t,i,o){return s=>d.Z.create("BoardSectionEditResource",{section_id:t,title:i,...o?{orbac_subject_id:o}:Object.freeze({})}).callCreate({showError:!1}).then((t=>{const i=t.resource_response.data;return s(function(e,t){return i=>{const o=t.board;var s,a,l,d,u;o&&o.id!==e?(i(g(e,null!==(s=t.id)&&void 0!==s?s:"")),i((0,c.EX)({feedId:e,feedType:n.DV.BOARD_SECTIONS,itemIds:[null!==(a=t.id)&&void 0!==a?a:""],itemType:"board_section"})),i((0,r.Tq)(e,"pin_count")),i(_(null!==(l=o.id)&&void 0!==l?l:"",t)),i((0,c.vX)({feedId:null!==(d=o.id)&&void 0!==d?d:"",feedType:n.DV.BOARD_SECTIONS,itemIds:[null!==(u=t.id)&&void 0!==u?u:""],itemType:"board_section"})),i((0,r.Tq)(e,"pin_count"))):i({type:"SECTION_UPDATED",payload:{boardId:e,section:t}})}}(e,i)),s((0,u.jB)("BoardSectionsRepinResource",{board_id:e})),i}))}function x(e,t,i){return o=>d.Z.create("BoardSectionsMergeResource",{source_section_id:t,target_section_id:i}).callUpdate({showError:!1}).then((s=>Promise.all([o(g(e,t)),o((0,u.jB)("BoardSectionsRepinResource",{board_id:e})),o(p(i)),o((0,c.N8)(n.DV.BOARD_SECTION_PINS,i))]).then((()=>s))))}const v=(e,t)=>({type:"BOARD_SECTION_EDIT",payload:t}),y=(e,t)=>i=>d.Z.create("BoardSectionEditResource",{...t,section_id:e}).callCreate().then((e=>(i(v(0,t)),e.resource_response.data))),S=e=>t=>{const i={section_id:e};return d.Z.create("BoardSectionResource",i).callGet().then((e=>{var i;const o=(null===(i=e.resource_response)||void 0===i?void 0:i.data)||{id:"",title:""};return t(v(0,o)),e}))},C=(e,t,i,o)=>s=>{const r=d.Z.create("BoardSectionEditResource",{section_id:t}).callDelete();return s(((e,t,i,o)=>({type:"BOARD_SECTION_DELETE",payload:{userId:e,boardSectionId:t,boardId:i,pinCount:o}}))(e,t,i,o)),r},j=(e,t,i)=>o=>{const r={board_id:e,initial_pins:t,name:i},n="BoardSectionResource";return d.Z.create(n,r).callCreate().then((i=>{const a=i.resource_response.data,d=(0,l.Fv)(a,s.Z[n]);return o((0,u.XM)(n,r,i,d)),t.length&&o({type:"PINS_MOVE",payload:{source:{boardId:e},target:{boardId:e,sectionId:a.id},pinIds:t}}),i}))},I=e=>t=>{const{source:i,target:o,pinIds:r}=e;if(t({type:"PINS_MOVE",payload:e}),i.boardlessPins||o.boardId!==i.boardId){const e={board_id:o.boardId,pin_ids:r,section_id:o.sectionId},t="BulkEditResource";return d.Z.create(t,e).callUpdate()}if(o.sectionId){const e={section_id:o.sectionId,pins:r},i="BoardSectionEditResource";return d.Z.create(i,e).callUpdate().then((o=>{const r=(0,l.Fv)(o.resource_response.data,s.Z[i]);return t((0,u.XM)(i,e,o,r)),o}))}const n={section_id:i.sectionId,pins:r};return d.Z.create("BoardSectionPinsResource",n).callDelete()},P=e=>t=>{t({type:"PINS_MOVE_ALL",payload:e});const{source:i,target:o,excludePinIds:s}=e,r={board_id:i.boardId,new_board_id:o.boardId,pin_ids:s,old_section_id:i.sectionId,new_section_id:o.sectionId};return d.Z.create("BulkEditSelectAllResource",r).callUpdate()},A=(e,t,i,o)=>s=>s(j(e,[],t)).then((t=>{const r=t.resource_response.data.id;return s(P({source:{boardId:e,sectionId:o},target:{boardId:e,sectionId:r},excludePinIds:i}))}))},254176:(e,t,i)=>{i.d(t,{$z:()=>z,Br:()=>p,Cr:()=>P,K8:()=>x,KQ:()=>O,L1:()=>Z,OA:()=>D,Tq:()=>b,Xi:()=>R,YQ:()=>k,YV:()=>I,ZP:()=>A,aX:()=>w,eo:()=>m,fJ:()=>L,md:()=>_,oG:()=>g,oL:()=>B,of:()=>v,xH:()=>f,xQ:()=>y,xR:()=>T,xk:()=>C,yT:()=>h,zS:()=>N});var o=i(27255),s=i(239682),r=i(172071),n=i(422946),a=i(379725),l=i(240265),d=i(414327),c=i(6637),u=i(956800);function h(e){return{type:"BOARD_UPDATE_COMPLETE",payload:{board:e}}}function p(e){return{type:"BOARD_PIN_COUNT_CHANGED",payload:e}}function _(e,t){return{type:"BOARD_FOLLOW",payload:{boardId:e,value:t}}}function m({viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:o}){return{type:"BOARD_DELETE",payload:{viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:o}}}const g=(e,t)=>i=>i((0,a.U)("BoardResource",{options:{board_id:e,field_set_key:t}}));function b(e,t,i){return(0,a.U)("BoardResource",{options:{board_id:e,field_set_key:t,...i?{orbac_subject_id:i}:{}}})}function f(e,t,i){return o=>c.Z.create("BoardsMergeResource",{source_board_id:e,target_board_id:t,...i?{orbac_subject_id:i}:{}}).callUpdate().then((()=>Promise.all([o(m({boardId:e})),o(b(t,"pin_count")),o((0,u.N8)(n.DV.BOARD_SECTIONS,t))])))}function x(e){return t=>{e&&(0,l.Q)(e).forEach((e=>{t(e)}))}}const v=e=>({type:"BOARD_DISMISS_SENSITIVITY_SCREEN",payload:{boardId:e}}),y=e=>g(e,"pin_count");function S(e,t){return{type:"BOARD_ARCHIVE",payload:{boardId:e,username:t}}}function C(e,t){return i=>(i(S(e)),c.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callUpdate())}function j(e){return{type:"BOARD_UNARCHIVE",payload:{boardId:e}}}function I(e,t){return i=>(i(j(e)),c.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callDelete())}const P=(e,t)=>({type:"BOARD_COVER_IMAGE_UPDATED",payload:{boardId:e,coverPin:t}}),A=e=>({type:"BOARD_DISABLE_MORE_IDEAS_BADGING",payload:{boardId:e}});function w(e,t,i){const r={name:e,privacy:o.Z.BoardPrivacy.PUBLIC,username:t,...i?{orbac_subject_id:i}:Object.freeze({})};return e=>c.Z.create("BoardResource",r).callCreate().then((i=>{const o=i.resource_response.data;return e(t&&(0,d.jB)("BoardsResource",(0,s.Z)(t,!1))),o}))}function B(e={},t,i){return{type:"BOARD_CREATE_COMPLETE",payload:{options:e,board:t},error:i}}const E=(e,t,i,o)=>({type:"BOARD_COLLABORATOR_ADD",payload:{boardId:e,viewingUser:t,status:i,collaboratingUsers:o}}),R=(e,t=!1,i)=>o=>(o(((e,t,i)=>({type:"BOARD_INVITE_APPROVED_BY_VIEWER",payload:{boardId:e,isRequestToJoin:t,collaboratingUser:i}}))(e,t,i)),c.Z.create("BoardInviteResource",{board_id:e,invited_user_id:null==i?void 0:i.id}).callUpdate()),T=(e,t)=>i=>(i(((e,t)=>({type:"BOARD_INVITE_DENIED_BY_VIEWER",payload:{boardId:e,userId:t}}))(e,t)),c.Z.create("BoardInviteResource",{board_id:e,invited_user_id:t}).callDelete()),z=(e,t,i)=>o=>(o(E(e,t,"new",i)),c.Z.create("BoardInviteResource",{board_id:e,invited_user_ids:i.map((({id:e})=>e))}).callCreate()),k=(e,t,i,o,s)=>r=>{var n,a;const l="accepted"===t?"BoardCollaboratorResource":"BoardInviteResource";return r(((e,t,i)=>({type:"BOARD_COLLABORATOR_DELETE",payload:{boardId:e,userId:t,viewingUser:i}}))(e,null!==(n=null==o?void 0:o.id)&&void 0!==n?n:"",i)),c.Z.create(l,{board_id:e,field_set_key:"boardEdit",invited_user_id:null!==(a=null==o?void 0:o.id)&&void 0!==a?a:"",...s?{orbac_subject_id:s}:{}}).callDelete().catch((()=>r(E(e,i,t,[o]))))},O=(e,t)=>i=>c.Z.create("SocialSearchCampaignResource",{boardId:e}).callGet().then((o=>{if(!o||!o.resource_response)return{};const s=o.resource_response.data||{},n=(s.model||{}).custom_properties||{},{campaign_id:a="unknown"}=n,l=s.display_data||{},d=!!s.display_data,c=l.header_image_mobile,u=l.header_background_color,h=l.text_icon_color,p={boardId:e,isSocialSeasonalBoard:d,socialHeaderBgImage:c,socialHeaderBgColor:u,textIconColor:h};return r.Z.increment(`mweb.seasonal_board.${a}.${t}.land`),i((e=>({type:"SET_SOCIAL_SEASONAL_BOARD",payload:e}))(p))})),D=(e,t)=>()=>c.Z.create("BoardEmailInviteResource",{board_id:e,emails:t}).callCreate(),Z=(e,t,i,o)=>s=>{const r=c.Z.create("BoardResource",{board_id:i}).callDelete();return s(m({viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:o})),r},N=(e,t)=>i=>c.Z.create("BoardArchiveResource",{boardId:e}).callUpdate().then((o=>(i((0,u.Qv)("archived-boards",[{id:e,type:"board"}])),i(S(e,t)),o))),L=(e,t)=>i=>c.Z.create("BoardArchiveResource",{boardId:e}).callDelete().then((o=>(i((0,u.Qv)(`profile-boards:${t}`,[{id:e,type:"board"}])),i(j(e)),o)))},563339:(e,t,i)=>{i.d(t,{Z:()=>p,S:()=>h});var o=i(6637),s=i(254176),r=i(422946),n=i(678638),a=i(124237);const l=e=>t=>{a.Z.showError(function(e,t){switch(e.api_error_code){case 2171:case 2172:case 2173:return t.bt("Please wait until the previous board action finishes.", "Please wait until the previous board action finishes.", " - ", undefined, true);default:return e.message}}(t,e))};var d=i(956800);const c=e=>(0,d.N8)(e.sectionId?r.DV.BOARD_SECTION_PINS:r.DV.BOARDFEED,e.sectionId||e.boardId);function u(e,t){const{source:i,target:o}=e;o.boardId!==i.boardId?(t((0,s.Tq)(i.boardId,"pin_count")),t((0,s.Tq)(o.boardId,"pin_count"))):i.sectionId&&o.sectionId||t((0,s.Tq)(o.boardId,"pin_count")),i.sectionId&&t((0,n.CE)(i.sectionId)),o.sectionId&&t((0,n.CE)(o.sectionId))}function h(e){return t=>{const{selectedPinIds:i,source:o,target:s}=e;t((0,d.EX)({feedId:o.sectionId||o.boardId,feedType:o.sectionId?r.DV.BOARD_SECTION_PINS:r.DV.BOARDFEED,itemIds:i,itemType:"pin"})),t((0,d.vX)({feedId:s.sectionId||s.boardId,feedType:s.sectionId?r.DV.BOARD_SECTION_PINS:r.DV.BOARDFEED,itemIds:i,itemType:"pin"})),u(e,t)}}function p(e,t){return i=>function(e,t,i){const{inverseSelection:s,selectedPinIds:n,source:a,target:u,orbacSubjectId:h}=e;if(a.boardId===u.boardId&&(a.sectionId||null)===(u.sectionId||null))return Promise.reject();if(s){const e={board_id:a.boardId,new_board_id:u.boardId,old_section_id:a.sectionId||void 0,new_section_id:u.sectionId||void 0,pin_ids:n,orbac_subject_id:h};return o.Z.create("BulkEditSelectAllResource",e).callUpdate({showError:!1}).then((()=>Promise.all([t(c(a)),t(c(u))]))).catch(l(i))}{const e=(e,i)=>{t((0,d.EX)({feedId:e.sectionId||e.boardId,feedType:e.sectionId?r.DV.BOARD_SECTION_PINS:r.DV.BOARDFEED,itemIds:n,itemType:"pin"})),t((0,d.vX)({feedId:i.sectionId||i.boardId,feedType:i.sectionId?r.DV.BOARD_SECTION_PINS:r.DV.BOARDFEED,itemIds:n,itemType:"pin"}))};e(a,u);const s=()=>e(u,a);if(u.boardId===a.boardId){if(u.sectionId){const e={section_id:u.sectionId,pins:n,orbac_subject_id:h};return o.Z.create("BoardSectionEditResource",e).callUpdate({showError:!1}).catch((e=>{s(),l(i)(e)}))}{const e={section_id:a.sectionId,pins:n,orbac_subject_id:h};return o.Z.create("BoardSectionPinsResource",e).callDelete({showError:!1}).catch((e=>{s(),l(i)(e)}))}}{const e={board_id:u.boardId,section_id:u.sectionId||void 0,pin_ids:n,orbac_subject_id:h};return o.Z.create("BulkEditResource",e).callUpdate({showError:!1}).catch((e=>{s(),l(i)(e)}))}}}(e,i,t).then((()=>u(e,i)))}},488769:(e,t,i)=>{i.d(t,{Z:()=>n});var o=i(898781),s=i(883119),r=i(785893);const n=function({type:e}){const t=(0,o.ZP)(),i={group:{accessibilityLabel:t.bt("group board", "group board", "Board picker group board icon", undefined, true),icon:"people"},protected:{accessibilityLabel:t.bt("protected board", "protected board", "Board picker protected board icon", undefined, true),icon:"protect"},secret:{accessibilityLabel:t.bt("Secret board", "secret board", "Board picker secret board icon", undefined, true),icon:"lock"},sections:{accessibilityLabel:t.bt("board with sections", "board with sections", "Board picker board with sections icon", undefined, true),icon:"arrow-forward"},sectionsInline:{accessibilityLabel:t.bt("board with sections", "board with sections", "Board picker board with sections icon", undefined, true),icon:"arrow-down"}}[e];return(0,r.jsx)(s.xu,{marginStart:1,children:(0,r.jsx)(s.xu,{marginStart:2,children:"sections"===e||"sectionsInline"===e?(0,r.jsx)(s.JO,{accessibilityLabel:i.accessibilityLabel,icon:i.icon,size:"12",color:"default"}):(0,r.jsx)(s.JO,{accessibilityLabel:i.accessibilityLabel,icon:i.icon,size:16,color:"default"})})})}},538716:(e,t,i)=>{i.d(t,{Z:()=>h});var o=i(667294),s=i(883119),r=i(785893);function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class a extends o.Component{constructor(...e){super(...e),n(this,"state",{isHovering:!1}),n(this,"onHover",(()=>{this.setState({isHovering:!0})})),n(this,"offHover",(()=>{this.setState({isHovering:!1})}))}render(){const{name:e,selected:t,image:i,inFlyoutExp:o}=this.props;var n,a,l;return o?(0,r.jsxs)(s.xu,{alignItems:"center",color:this.state.isHovering?"secondary":"transparent",direction:"row",display:"flex",paddingX:4,paddingY:2,onMouseOver:this.onHover,onMouseOut:this.offHover,children:[(0,r.jsx)(s.xu,{children:(0,r.jsx)(s.zd,{height:40,width:40,rounding:2,children:this.state.isHovering&&i?(0,r.jsx)(s.Ee,{alt:"",color:"",fit:"cover",naturalHeight:null!==(n=i.height)&&void 0!==n?n:1,naturalWidth:null!==(a=i.width)&&void 0!==a?a:1,src:null!==(l=i.url)&&void 0!==l?l:""}):(0,r.jsx)(s.xu,{color:"secondary",height:40,width:40})})}),(0,r.jsx)(s.xu,{padding:2,children:(0,r.jsx)(s.X6,{size:"400",children:e})})]}):(0,r.jsxs)(s.xu,{alignItems:"center",color:t?"secondary":"transparent",direction:"row",display:"flex",paddingX:6,paddingY:2,children:[(0,r.jsx)(s.xu,{children:(0,r.jsx)(s.JO,{color:t?"default":"subtle",icon:"add",accessibilityLabel:""})}),(0,r.jsx)(s.xu,{marginStart:3,children:(0,r.jsx)(s.xv,{color:t?"default":"subtle",weight:"bold",children:e})})]})}}var l=i(898781),d=i(784590),c=i(129291),u=i(407043);const h=({inFlyoutExp:e,inFirstBoardCreateGestaltExp:t,pinId:i,image:n,minHeight:h,onBoardSelected:p})=>{const{logContextEvent:_}=(0,u.v)(),m=(0,l.ZP)(),[g,b]=(0,o.useState)(-1),f=(0,c.iN)(),{data:x=[],error:v,isLoaded:y}=(0,d.Z)({name:"BoardTitleSuggestionsResource",options:{pin_id:i}}),S=(C=x,(0,o.useMemo)((()=>C&&C.length?C.map((e=>e.title)):[]),[C]));var C;(0,o.useEffect)((()=>{y&&t&&f&&(v?f.error():f.stop())}),[y]);const j=()=>{b(-1)},I=(t,i)=>{const o=g===i;return(0,r.jsx)("li",{children:(0,r.jsx)(s.iP,{onMouseEnter:()=>(e=>{b(e)})(i),onMouseLeave:j,onTap:()=>(e=>{p(S[e],!1),_({event_type:101,component:13025,element:23})})(i),children:(0,r.jsx)(a,{selected:o,name:t,inFlyoutExp:e,image:n})})},i)};return y?S&&S.length?e?(0,r.jsx)(s.xu,{children:(0,r.jsx)("ul",{children:S.map(I)})}):t?(0,r.jsxs)(s.xu,{children:[(0,r.jsx)(s.xu,{marginTop:5,marginStart:6,marginBottom:3,children:(0,r.jsx)(s.xv,{children:m.bt("Suggested board names", "Suggested board names", "text above suggested board names list", undefined, true)})}),(0,r.jsx)("ul",{children:S.map(I)})]}):(0,r.jsxs)(s.xu,{children:[(0,r.jsx)(s.xu,{marginTop:2,paddingX:5,children:(0,r.jsx)(s.xv,{children:m.bt("Suggested board names", "Suggested board names", " - ", undefined, true)})}),(0,r.jsx)("ul",{children:S.map(I)})]}):null:(0,r.jsx)(s.kC,{alignItems:"center",height:"100%",justifyContent:"center",minHeight:h||"",children:(0,r.jsx)(s.$j,{accessibilityLabel:m.bt("Loading board suggestions", "Loading board suggestions", "Accesibility label for loading board suggestions", undefined, true),show:!0})})}},553751:(e,t,i)=>{i.d(t,{Z:()=>g});var o=i(667294),s=i(702664),r=i(755742),n=i(274495),a=i(717615),l=i(19121),d=i(678638),c=i(231947),u=i(898781),h=i(883119),p=i(785893);function _(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class m extends o.Component{constructor(e){super(e),_(this,"onCreateSection",(()=>{const{board:e,dispatch:t,completeCreateSectionAction:i,pinImport:o,viewer:s,orbacActingAs:r}=this.props,n=(0,c.lJ)(s,r);return this.setState({isSaving:!0}),t((0,d.vB)({boardId:e.id,name:this.state.inputName.trim(),pinImport:o},this.props.i18n,n)).then((e=>{this.setState({isSaving:!1}),i(e)})).catch((e=>{this.setState({createError:e.message_detail||e.message,isSaving:!1})}))})),_(this,"handleKeyDown",(({event:e,value:t})=>{const{createError:i,inputName:o}=this.state;[r.Z.ENTER,r.Z.NUMPAD_ENTER].includes(e.which)&&!i&&o.trim()&&this.onCreateSection()})),_(this,"handleChangeName",(({value:e})=>{this.setState({createError:null,inputName:e})})),_(this,"handleInputRef",(e=>{this.setState({inputRef:e})})),this.state={createError:null,inputName:e.initialName||"",inputRef:null,isSaving:!1}}componentDidUpdate(e,t){const{createError:i,inputRef:o}=this.state;!o||t.inputRef&&!i||o.focus()}render(){const{showTitle:e,positionRelative:t}=this.props,{createError:i,inputName:o,isSaving:s}=this.state,r=!!o.trim()&&!i;return(0,p.jsxs)(h.xu,{display:"flex",direction:"column",color:"default",flex:"grow",top:!0,bottom:!0,right:!0,position:t?"relative":"absolute",rounding:2,width:"100%",dangerouslySetInlineStyle:{__style:{borderLeft:"1px solid #f5f5f5"}},children:[e&&(0,p.jsx)(h.xu,{marginTop:3,paddingX:6,paddingY:3,children:(0,p.jsx)(h.X6,{size:"400",children:this.props.i18n.bt("Add section", "Add section", "Title in the add section modal", undefined, true)})}),(0,p.jsxs)(h.xu,{padding:4,children:[(0,p.jsx)(h.xu,{marginBottom:2,children:(0,p.jsx)(h.__,{htmlFor:"sectionEditName",children:(0,p.jsx)(h.xv,{size:"200",color:i?"error":"subtle",children:this.props.i18n.bt("Name", "Name", "Board section name", undefined, true)})})}),(0,p.jsx)(h.xu,{children:(0,p.jsx)(h.xu,{ref:this.handleInputRef,children:(0,p.jsx)(h.nv,{errorMessage:i||"",id:"sectionEditName",name:"sectionName",onChange:this.handleChangeName,onKeyDown:this.handleKeyDown,placeholder:this.props.i18n.bt("Like \"Lighting\"", "Like \"Lighting\"", "Placeholder for board section name", undefined, true),size:"lg",type:"text",value:o})})})]}),(0,p.jsx)(h.kC,{alignItems:"stretch",justifyContent:"start",flex:"grow"}),(0,p.jsx)(h.xu,{padding:4,children:(0,p.jsx)(h.kC,{alignItems:"stretch",justifyContent:"end",children:(0,p.jsx)(n.Z,{disabled:!r||s,onClick:this.onCreateSection,submitting:s,text:this.props.i18n.bt("Add", "Add", "add a new section", undefined, true)})})})]})}}const g=(0,s.connect)()((function(e){const t=(0,u.ZP)(),i=(0,l.Z)(),o=(0,a.Z)();return(0,p.jsx)(m,{...e,i18n:t,viewer:i,orbacActingAs:o})}))},818747:(e,t,i)=>{i.d(t,{Z:()=>n});var o=i(89254),s=i(883119),r=i(785893);function n({url:e,description:t,color:i}){return i=i||"#8fa7bf",(0,r.jsx)(s.xu,{rounding:2,height:216,width:"100%",dangerouslySetInlineStyle:{__style:{background:i}},children:(0,r.jsxs)(s.xu,{maxHeight:200,padding:4,overflow:"hidden",children:[e&&(0,r.jsx)(s.xu,{marginBottom:2,children:(0,r.jsx)(s.xv,{color:"inverse",size:"100",children:(0,o.Z)(e).hostname||e})}),(0,r.jsx)(s.xu,{maxHeight:144,children:(0,r.jsx)(s.xv,{color:"inverse",overflow:"normal",weight:"bold",children:t})})]})})}},851577:(e,t,i)=>{i.d(t,{Z:()=>_});var o=i(667294),s=i(755742),r=i(694379),n=i(6637),a=i(342877),l=i(349700),d=i(898781),c=i(883119),u=i(785893);function h(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class p extends o.Component{constructor(...e){super(...e),h(this,"state",{recommendations:[],selectedIndex:0,resourceLoaded:!1}),h(this,"onDismiss",(()=>{})),h(this,"mounted",!1),h(this,"addHashtag",(e=>{this.props.addHashtag(e),this.setState({recommendations:[]})})),h(this,"handleKeyDown",(e=>{e.keyCode===s.Z.UP?this.handlePrevHashtag(e):e.keyCode===s.Z.DOWN?this.handleNextHashtag(e):e.keyCode===s.Z.ESCAPE?this.handleClose(e):e.keyCode===s.Z.ENTER&&this.handleSubmit(e)})),h(this,"handlePrevHashtag",(e=>{e.preventDefault(),this.state.selectedIndex>0&&this.setState((e=>({selectedIndex:e.selectedIndex-1})))})),h(this,"handleNextHashtag",(e=>{e.preventDefault(),this.state.selectedIndex<this.state.recommendations.length-1&&this.setState((e=>({selectedIndex:e.selectedIndex+1})))})),h(this,"handleClose",(e=>{e.preventDefault(),this.setState({recommendations:[]})})),h(this,"handleSubmit",(e=>{e.preventDefault(),this.addHashtag(this.state.recommendations[this.state.selectedIndex].query)})),h(this,"callResource",(e=>{const{makeCancelablePromise:t}=this.props;t(n.Z.create("HashtagTypeaheadResource",{query:e,showPinCount:!0}).callGet(),"typeahead").then((e=>{if(!this.mounted)return;const t=e.resource_response.data;this.setState({recommendations:t.slice(0,5),resourceLoaded:!0})})).catch((({isCanceled:e})=>{e||this.setState({resourceLoaded:!1})}))}))}componentDidMount(){this.mounted=!0,this.callResource(this.props.query),window.addEventListener("keydown",this.handleKeyDown)}componentDidUpdate(e){this.props.query!==e.query&&""!==this.props.query&&this.callResource(this.props.query)}componentWillUnmount(){window.removeEventListener("keydown",this.handleKeyDown),this.mounted=!1}render(){const{recommendations:e,resourceLoaded:t,selectedIndex:i}=this.state,{anchor:o,idealDirection:s}=this.props,n=e.filter((e=>e.query)),a=s||"down",d="flyout_"+n.length;return t&&n.length>0?(0,u.jsx)(c.J2,{anchor:o,idealDirection:a,onDismiss:this.onDismiss,size:"sm",children:(0,u.jsx)(c.xu,{width:"100%",zIndex:new c.Ry(3),children:n.length>0?n.map(((e,t)=>(0,u.jsx)(c.iP,{fullWidth:!1,onTap:()=>this.addHashtag(e.query),children:(0,u.jsxs)(c.xu,{display:"flex",justifyContent:"between",alignItems:"center",color:t===i?"secondary":"transparent",padding:1,children:[(0,u.jsx)(c.xu,{flex:"grow",children:(0,u.jsx)(c.xv,{inline:!0,size:"200",weight:"bold",children:e.query})}),(0,u.jsx)(c.xu,{flex:"none",children:(0,u.jsx)(c.xv,{inline:!0,size:"100",children:(0,l.nk)(this.props.i18n.nbt(["{{ count }} Pin", "{{ count }} Pins"], Number(e.pin_count), "label for n pins in hashtag flyout", true),{count:(0,u.jsx)(r.Z,{value:Number(e.pin_count)},"pinCount")})})})]})},e.query))):null})},d):null}}function _(e){const t=(0,d.ZP)(),i=(0,a.Z)();return(0,u.jsx)(p,{...e,makeCancelablePromise:i,i18n:t})}},457323:(e,t,i)=>{i.d(t,{Z:()=>m});var o=i(667294),s=i(898781),r=i(784590),n=i(349700),a=i(883119),l=i(785893);function d({pin:e}){const t=(0,s.ZP)(),{data:i}=(0,r.Z)({name:"ApiResource",options:{url:`/v3/pins/${e.id}/`,field_sets:["pin.board()","pin.id","pin.pinned_to_board()","pin.type","pin.via_pinner()"]},noCache:!0});return i&&i.pinned_to_board&&"quick_creates"!==i.pinned_to_board.layout?(0,l.jsxs)(a.xu,{children:[(0,l.jsx)(a.xu,{color:"errorBase","data-test-id":"already-pinned",display:"flex",padding:3,rounding:2,width:185,children:(0,l.jsx)(a.xv,{align:"center",color:"inverse",size:"200",weight:"bold",children:(0,n.nk)(t.bt("Psst! You've already saved this Pin to {{ board_name }} ", "Psst! You already saved this Pin to {{ board_name }} ", "Toast for already having repinned pin", undefined, true),{board_name:(i.pinned_to_board||{}).name}).join(" ")})}),(0,l.jsx)(a.xu,{display:"flex",justifyContent:"center",marginTop:-3,children:(0,l.jsx)(a.JO,{accessibilityLabel:"",color:"error",icon:"heart",size:26})})]}):null}var c=i(851577),u=i(818747),h=i(407043);function p(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class _ extends o.Component{constructor(...e){super(...e),p(this,"state",{flyoutCursorIndex:-1,description:this.props.pin&&this.props.pin.description&&this.props.pin.description.trim()||"",editing:!1,hashtagQuery:"",isHashtagFlyoutOpen:!1,flyoutOpened:!1}),p(this,"updateDescription",(e=>{this.props.updateDescription&&this.props.updateDescription(e)})),p(this,"handleDescriptionBlur",(e=>{const t=e.target.value.trim(),{isHashtagFlyoutOpen:i}=this.state;this.updateDescription(t),this.setState({description:t,editing:i})})),p(this,"handleDescriptionEdit",(()=>{this.setState({editing:!0})})),p(this,"handleHashtagAddition",(e=>{const{pin:t}=this.props;this.props.logContextEvent({event_type:101,component:208,element:10249,object_id_str:t.id,aux_data:{hashtags:e}});const i=this.state.flyoutCursorIndex,o=Number(i+this.state.hashtagQuery.length),s=this.state.description.slice(0,i)+e+" "+this.state.description.slice(o);this.updateDescription(s),this.setState({description:s,editing:!0,hashtagQuery:"",isHashtagFlyoutOpen:!1})}))}render(){const{color:e,isFirstPin:t,pin:i,pinImageRef:o}=this.props,{description:s,editing:r,flyoutOpened:n,hashtagQuery:h,isHashtagFlyoutOpen:p}=this.state,{images:_,link:m}=i,g=_&&_["236x"],b=g&&g.url||i.image_base64;return(0,l.jsxs)(a.xu,{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",width:t?"50%":"",dangerouslySetInlineStyle:{__style:n&&r?{transform:"translateY(-75px)"}:{}},children:[(0,l.jsxs)(a.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[i&&i.id&&(0,l.jsx)(d,{pin:i}),(0,l.jsx)(a.xu,{paddingY:t?9:0,width:240,children:(0,l.jsx)(a.xu,{ref:o,maxHeight:n&&r?220:335,rounding:4,overflow:"hidden",children:b?(0,l.jsx)(a.Ee,{alt:s,src:b,naturalHeight:(null==g?void 0:g.height)||1,naturalWidth:(null==g?void 0:g.width)||1}):!!m&&(0,l.jsx)(u.Z,{color:e||"",description:s,url:m})})})]}),this.anchor&&p?(0,l.jsx)(c.Z,{addHashtag:this.handleHashtagAddition,anchor:this.anchor,query:h}):null]})}}function m(e){const{logContextEvent:t}=(0,h.v)();return(0,l.jsx)(_,{...e,logContextEvent:t})}},38004:(e,t,i)=>{i.d(t,{K:()=>k});var o=i(667294),s=i(702664),r=i(124237),n=i(768559),a=i(140582),l=i(6637),d=i(499128),c=i(19121),u=i(332611),h=i(379725),p=(i(27255),i(985913)),_=i(883119),m=i(785893);const g=(e,t,i)=>{var s;return i?(0,p.Z)(e.bt("Saved to {{sectionName}} in {{boardName}}", "Saved to {{sectionName}} in {{boardName}}", "Toast for successfully saving to a section within a board", undefined, true),{sectionName:null!==(s=i.title)&&void 0!==s?s:"",boardName:null!=t?t:""}):(0,m.jsxs)(o.Fragment,{children:[(0,m.jsx)(_.xv,{children:e.bt("Saved to", "Saved to", " - ", undefined, true)}),(0,m.jsx)(_.xv,{weight:"bold",children:t})]})};var b=i(349700),f=i(447948),x=i(90326),v=i(407043),y=i(883521),S=i(825067),C=i(898781),j=i(920912),I=i(129291),P=i(343341),A=i(254176),w=i(558068),B=i(830065),E=i(276775);function R(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const T=/#[^(\-\\.\s#,\/$%\^&\*;:{}=\`~()\[\]@|<>…)]+/gi;class z extends o.Component{constructor(...e){super(...e),R(this,"state",{boardSavedTo:null,displaySuccessAnimation:!1,newPin:null,modalTitle:this.getModalTitle(this.props.showCreate,!!this.props.boardWithSection),pinDescription:this.props.pin&&this.props.pin.description||"",resolve:void 0,sharing:{facebook:!1,twitter:!1}}),R(this,"unmounted",!1),R(this,"setModalTitle",(e=>this.safeSetState({modalTitle:e}))),R(this,"updateDescription",(e=>{this.safeSetState({pinDescription:e})})),R(this,"close",(()=>{const{onClose:e,boardPickerStopwatch:t}=this.props;e&&e(),t&&t.abort("boardPickerClose"),this.props.logContextEvent({event_type:2502,component:5,element:610})})),R(this,"safeSetState",((e,t)=>{this.unmounted?t&&t():this.setState(e,t)})),R(this,"getPinResource",((e,t,i)=>{var o,s;const{color:r,location:d,pin:c,method:u,guid:h,additionalCreateFields:p,advertiser_id:_,previousHistory:m}=this.props;let g;var b,f;c.id&&(g=(0,n.Z)({boardUrl:null===(b=c.board)||void 0===b?void 0:b.url,callToCreateSourcePinId:c.call_to_create_source_pin_id,location:d,pinId:c.id,pinnerUserName:null===(f=c.pinner)||void 0===f?void 0:f.username,previousHistory:m,storyPinDataId:c.story_pin_data_id,trackingParams:c.tracking_params,trackingParamsMap:c.tracking_params_map})||`${c.tracking_params||""}~0`);const x=c.id?"RepinResource":"PinResource",v=!c.id&&c.image_url?(0,a.Z)(c.image_url,c.link):(null===(o=c.images)||void 0===o||null===(s=o.orig)||void 0===s?void 0:s.url)||"",y={...p,board_id:t||"",color:r||"",clientTrackingParams:g,description:this.state.pinDescription,guid:h||"",link:c.link,image_base64:c.image_base64,image_url:v,is_buyable_pin:!1,is_removable:c.promoted_is_removable,media_upload_id:c.media_upload_id,method:u||"",pin_id:c.id||"",section:i,title:c.title||"",..._?{advertiser_id:_}:Object.freeze({})};if(!e){const{facebook:e,twitter:t}=this.state.sharing;y.share_facebook=e,y.share_twitter=t}return l.Z.create(x,y)})),R(this,"triggerPubSubs",(e=>{this.props.onPinCreate&&this.props.onPinCreate({boardId:e.board.id,pinId:e.id})})),R(this,"makeCancelablePromise",(e=>{let t=!1;return{promise:new Promise(((i,o)=>{e.then((e=>t?o({isCanceled:!0}):i(e))),e.catch((e=>o(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}})),R(this,"handleLogToastClick",(()=>{this.props.logContextEvent({event_type:101,component:20,view_type:52})})),R(this,"showSuggestedBoardToast",((e,t,i,o)=>{const{toastManagerContext:s,shouldShowToast:r}=this.props;if(r&&e){const{name:t,url:i,image_thumbnail_url:o}=e;s.showOneToast((({hideToast:e})=>(0,m.jsx)(d.ZP,{duration:j.A,onHide:e,text:(0,m.jsx)(_.xv,{children:(0,b.nk)(this.props.i18n.bt("You might also like {{ suggestion }}", "You might also like {{ suggestion }}", "PinSaveRequest.Toast.Suggestion", undefined, true),{suggestion:(0,m.jsx)(_.xv,{weight:"bold",children:t})})}),href:i,imageUrl:o,onClick:this.handleLogToastClick})))}})),R(this,"showBoardSavedToast",((e,t)=>{const{toastManagerContext:i,i18n:o}=this.props;i.showToast((({hideToast:i})=>{var s,r,n;return(0,m.jsx)(d.ZP,{duration:j.A,onHide:i,text:g(o,e.name,t),href:t?`${null!==(s=e.url)&&void 0!==s?s:""}${null!==(r=t.slug)&&void 0!==r?r:""}`:e.url,imageUrl:null!==(n=e.image_cover_url)&&void 0!==n?n:"",onClick:this.handleLogToastClick})}))})),R(this,"dismissModal",(e=>{const{resolve:t,newPin:i}=this.state;t&&t(i)})),R(this,"fetchBoardRecommendation",(e=>l.Z.create("RelatedBoardForPinRandomFeedResource",{pin:e.id,page_size:1}).callGet({showError:!1}).then((e=>Promise.resolve(e.resource_response.error?null:e.resource_response.data[0]))))),R(this,"handleBoardSaveSuccess",((e,t,i,o)=>{var s,r;const{action:n,saveToBoard:a,dispatch:l,hideSuccessAnimation:d,pin:c,setCompletionPromise:p,shouldShowToast:_,showRepinAnimation:m,viewerUserId:g}=this.props;l((0,u.fO)());const b=e.resource_response.data,v=this.makeCancelablePromise(new Promise(((e,s)=>{this.triggerPubSubs(b);const r=this.state.pinDescription.match(T)||[];r.length>0&&this.props.logContextEvent({event_type:2,element:10273,object_id_str:this.props.pin.id,aux_data:{hashtags:JSON.stringify(r)}});const a=d?()=>{}:()=>{_&&this.showBoardSavedToast(t,i),this.safeSetState({displaySuccessAnimation:!0,modalTitle:this.props.i18n.bt("Board created", "Board created", "Modal title after creating a new board", undefined, true),newPin:b,resolve:e})};"repin"===n?(this.fetchBoardRecommendation(b).then((e=>{this.showSuggestedBoardToast(e,b,i,o)})),o?a():e(b)):o?a():e(b)})));if(o||m(c.id),p(v),a(t),l((0,A.Br)({boardId:t.id,sectionId:i&&i.id,increment:1})),g&&(l((0,x.JS)({userId:g,increment:1})),l((0,u.fO)())),i||!t.image_cover_url){const{image_url:e,images:i}=c;t.image_cover_url=e||i&&i["236x"]&&i["236x"].url||"",l((0,A.yT)(t))}i&&l((0,h.U)("BoardSectionResource",{options:{field_set_key:"board_page",section_id:i.id}})),l((0,f.Ur)(c.id,t.id,null!==(s=t.name)&&void 0!==s?s:"",null!==(r=t.url)&&void 0!==r?r:"",b.id))})),R(this,"handleSaveToBoard",((e,t,i)=>{const{boardPickerStopwatch:o,onToggleModal:s,shouldShowToast:n}=this.props;o&&o.abort("boardPickerSubmit"),n&&!i&&(this.close(),this.showBoardSavedToast(e,t));const a="secret"===(e.privacy||""),l={board:t?t.id:e.id,state:j.S.LOADING};this.safeSetState({boardSavedTo:l},(()=>{this.getPinResource(a,e.id,(t||{}).id).callCreate({showError:!1}).then((o=>{this.safeSetState({boardSavedTo:Object.assign(l,{state:j.S.SUCCESS})},(()=>this.handleBoardSaveSuccess(o,e,t,i))),s&&!i&&s(!1)})).catch((e=>{this.unmounted||this.safeSetState({boardSavedTo:null}),r.Z.showError(e.message_detail||e.message);const t=this.makeCancelablePromise(Promise.reject(e));this.props.setCompletionPromise(t),s&&s(!1)}))}))})),R(this,"handleNewBoardAnimationCompletion",(()=>{const{pin:e,showRepinAnimation:t}=this.props;t(e.id)}))}getModalTitle(e,t){return e?t?this.props.i18n.bt("Create section", "Create section", "modal title for create section pane", undefined, true):this.props.i18n.bt("Create board", "Create board", "Repin title for making a new board", undefined, true):t?this.props.i18n.bt("Choose section", "Choose section", "modal title for choose section", undefined, true):this.props.i18n.bt("Choose board", "Choose board", "Repin title for choosing a board", undefined, true)}componentDidUpdate(e){const{boardWithSection:t,showCreate:i,pin:o,description:s}=this.props,r={};o===e.pin&&s===e.description||(r.pinDescription=o.description||s||""),i===e.showCreate&&t===e.boardWithSection||(r.modalTitle=this.getModalTitle(i,!!t)),Object.keys(r).length>0&&this.safeSetState(r)}componentWillUnmount(){this.unmounted=!0}render(){const{close:e,dismissModal:t,handleNewBoardAnimationCompletion:i,handleSaveToBoard:o,setModalTitle:s,updateDescription:r}=this,{boardSavedTo:n,displaySuccessAnimation:a,modalTitle:l,newPin:d}=this.state,{color:c,pin:u}=this.props;return this.props.children({boardSavedTo:n,color:c,dismissModal:t,displaySuccessAnimation:a,handleAbort:e,handleNewBoardAnimationCompletion:i,handleSaveToBoard:o,modalTitle:l,newPin:d,pin:u,setModalTitle:s,updateDescription:r})}}function k(e){var t;const{saveToBoard:i}=(0,B.N)(),{logContextEvent:o}=(0,v.v)(),r=null===(t=(0,S.W)())||void 0===t?void 0:t.onPinCreate,n=(0,C.ZP)(),a=(0,I.iN)(),l=(0,E.useLocation)(),d=(0,c.Z)(),u=(0,P.F9)(),h=(0,s.useDispatch)(),{updateHeaderState:p}=(0,y.J)(),_=(0,s.useSelector)((({advertiser:e})=>d.isAuth&&e&&e.owner_user_id!==d.id?e.id:void 0)),{previous:g}=(0,w.Hv)();return(0,m.jsx)(z,{...e,advertiser_id:_,boardPickerStopwatch:a,saveToBoard:i,dispatch:h,location:l,onPinCreate:r,previousHistory:g,showRepinAnimation:e=>p({type:"showRepinAnimation",payload:e}),toastManagerContext:u,viewerUserId:d.isAuth?d.id:void 0,i18n:n,logContextEvent:o})}},715582:(e,t,i)=>{i.d(t,{Z:()=>Y});var o=i(667294),s=i(176558),r=i(702664),n=i(27255),a=i(274495),l=i(898781),d=i(32579),c=i(780280),u=i(936776),h=i(116303),p=i(985913),_=i(883119),m=i(785893);function g(e){const t=(0,l.ZP)(),{body:i,img:o,onClick:s,selected:r,title:n,username:a,valid:d}=e,c=a||i;return(0,m.jsx)(_.xu,{marginBottom:4,children:(0,m.jsx)(_.iP,{onTap:s,children:(0,m.jsxs)(_.kC,{alignItems:"center",direction:"row",justifyContent:"start",width:"100%",children:[o,(0,m.jsxs)(_.xu,{flex:"grow",marginEnd:2,marginStart:3,children:[(0,m.jsx)(_.xu,{marginBottom:1,children:(0,m.jsx)(_.xv,{lineClamp:1,weight:"bold",children:n})}),(0,m.jsx)(_.xv,{size:"100",lineClamp:1,children:c})]}),(0,m.jsx)(_.xu,{marginStart:2,children:(u=r,h=d,a?u?(0,m.jsx)(_.JO,{accessibilityLabel:t.bt("Confirmation an invite will be sent", "Confirmation an invite will be sent", "Alt tags on a check box on the board create flow for board invites", undefined, true),color:"error",icon:"check-circle",size:32}):(0,m.jsx)(_.xu,{dangerouslySetInlineStyle:{__style:{border:"solid 1px #B5B5B5"}},height:32,rounding:"circle",width:32}):(0,m.jsx)(_.zx,{color:"gray",disabled:!!u||Boolean(!h),size:"sm",text:u?t.bt("Sent", "Sent", "Sent a board collaborator invite", undefined, true):t.bt("Invite", "Invite", "Add board collaborator invite", undefined, true)}))})]})})});var u,h}var b=i(6637),f=i(730447),x=i(784590);function v(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function y(e,t,i){const{id:o}=e;return t===i.findIndex((e=>e.id===o))}function S(e,t){b.Z.create("BoardEmailInviteResource",{board_id:e,emails:t}).callCreate()}function C(e,t){b.Z.create("BoardInviteResource",{board_id:e,invited_user_ids:t}).callCreate()}class j extends o.Component{constructor(...e){super(...e),v(this,"state",{selectedCollaborators:this.props.preselectedCollaborators||[],typeaheadSuggestions:[],value:""}),v(this,"isIdSelected",{}),v(this,"handleTextFieldChange",(({value:e})=>{this.setState({value:e})})),v(this,"handleCollaboratorClick",(e=>{const{id:t,type:i}=e;this.isIdSelected[t]=!this.isIdSelected[t];const{selectedCollaborators:o}=this.state,s=o.concat([e]),r="email"===i?S:C;this.props.onSelectedCollaboratorsChange({id:t,resource:r}),this.setState({selectedCollaborators:s})})),v(this,"handleTypeaheadSuggestionsChange",(e=>{this.setState({typeaheadSuggestions:e})}))}componentDidMount(){this.props.preselectedCollaborators&&this.props.preselectedCollaborators.map((e=>{const{id:t,type:i}=e;this.isIdSelected[t]=!this.isIdSelected[t];const o="email"===i?S:C;return this.props.onSelectedCollaboratorsChange({id:t,resource:o}),null}))}render(){const{value:e}=this.state,{shareSuggestionsResource:{data:t}}=this.props,i=t||[],o=(""===e?this.state.selectedCollaborators.concat(i).filter(y):this.state.selectedCollaborators.concat(this.state.typeaheadSuggestions).concat({type:"email",id:e,valid:(0,u.Z)(e)}).concat(i).filter(y)).map((e=>function(e,t,i,o){if("user_share_suggestion"===e.type||"user"===e.type){const o=(0,m.jsx)(h.Z,{name:e.title||e.full_name,size:"sm",src:e.image_medium_url||e.image_large_url});return(0,m.jsx)(g,{img:o,onClick:()=>i(e),selected:t,title:e.full_name,username:e.username})}if("email"===e.type){const{id:s,valid:r}=e,n=(0,m.jsx)(_.xu,{alignItems:"center",color:"secondary",display:"flex",height:40,justifyContent:"center",rounding:"circle",width:40,children:(0,m.jsx)(_.JO,{accessibilityLabel:o.bt("Email icon", "Email icon", "Email icon on board create modal", undefined, true),color:"default",icon:"envelope",size:20})}),a=(0,p.Z)(o.bt("Email {{ email }}", "Email {{ email }}", " - ", undefined, true),{email:s});let l,d;return t?(l=o.bt("Done.", "Done!", "Text that lets the user know we sent the board invite email", undefined, true),d=()=>{}):(l=r?o.bt("Click to send", "Click to send!", "Text that lets the user know they can successfully send a board invite email", undefined, true):o.bt("Keep typing!", "Keep typing!", "Text that lets a user know the email they are typing is not valid yet", undefined, true),d=()=>r?i(e):void 0),(0,m.jsx)(g,{body:l,img:n,onClick:d,selected:t,title:a,valid:r})}}(e,this.isIdSelected[e.id],this.handleCollaboratorClick,this.props.i18n))).map(((e,t)=>(0,m.jsx)("li",{children:e},t)));return(0,m.jsxs)(_.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",height:"100%",children:[(0,m.jsx)(_.xu,{paddingX:3,paddingY:2,children:(0,m.jsx)(_.xv,{size:"100",children:this.props.i18n.bt("Add collaborators (optional)", "Add collaborators (optional)", "Optional field to add collaborators to a board on board create", undefined, true)})}),(0,m.jsx)(_.xu,{marginBottom:4,marginTop:2,paddingX:3,width:"100%",children:(0,m.jsx)(_.xu,{flex:"grow",children:(0,m.jsx)(f.Z,{onTypeaheadSuggestionsChange:this.handleTypeaheadSuggestionsChange,resourceName:"ShareSuggestionsTypeaheadResource",value:e,children:(0,m.jsx)(_.Um,{accessibilityLabel:this.props.i18n.bt("Search for collaborators by name or email address", "Search for collaborators by name or email", " - ", undefined, true),id:"CollaboratorInviteSearchField",onChange:this.handleTextFieldChange,placeholder:this.props.i18n.bt("Search by name or email address", "Search by name or email", " - ", undefined, true),size:"lg",value:e})})})}),(0,m.jsx)(_.xu,{overflow:"scrollY",paddingX:3,children:(0,m.jsx)("ul",{children:o})})]})}}function I(e){const t=(0,l.ZP)(),i=(0,x.Z)({name:"ShareSuggestionsResource",noCache:!0});return(0,m.jsx)(j,{...e,i18n:t,shareSuggestionsResource:i})}const P=(0,d.Z)((function({createBoardError:e,inputName:t,nameValidatorErrors:i,onBoardCreate:s,onCancel:r,onChangeBoardName:d,onChangeBoardPrivacy:u,onInvite:h,privacy:p,preselectedCollaborators:g,saving:b,showTitle:f,isAdAccountOwner:x}){const v=(0,l.ZP)(),{isRTL:y}=(0,c.B)(),S=0===i.length,C=p===n.Z.BoardPrivacy.SECRET;return(0,m.jsx)(_.xu,{color:"default",height:"100%",left:!0,position:"absolute",top:!0,width:"100%",children:(0,m.jsx)("form",{onSubmit:e=>{e.preventDefault(),s()},style:{height:"100%"},children:(0,m.jsxs)(_.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",height:"100%",children:[f&&(0,m.jsx)(_.xu,{display:"flex",marginTop:3,paddingX:6,paddingY:3,children:(0,m.jsx)(_.X6,{size:"400",children:v.bt("Create board", "Create board", " - ", undefined, true)})}),(0,m.jsxs)(_.xu,{padding:3,children:[(0,m.jsx)(_.xu,{marginBottom:2,children:(0,m.jsx)(_.__,{htmlFor:"boardEditName",children:(0,m.jsx)(_.xv,{size:"100",children:v.bt("Name", "Name", " - ", undefined, true)})})}),(0,m.jsx)(_.xu,{children:(0,m.jsx)(_.nv,{errorMessage:i.join(", "),id:"boardEditName",name:"boardName",onChange:({value:e})=>d(e),placeholder:v.bt("E.g. \"Places to go\" or \"Recipes to make\"", "Like \"Places to Go\" or \"Recipes to Make\"", " - ", undefined, true),size:"lg",value:t})})]}),x&&(0,m.jsxs)(o.Fragment,{children:[(0,m.jsxs)(_.xu,{padding:3,children:[(0,m.jsx)(_.xu,{marginBottom:2,children:(0,m.jsx)(_.__,{htmlFor:"secret",children:(0,m.jsx)(_.xv,{size:"100",children:v.bt("Secret", "Secret", "secret board", undefined, true)})})}),(0,m.jsx)(_.xu,{children:(0,m.jsx)(_.rs,{id:"secret",onChange:u,switched:C})})]}),(0,m.jsx)(_.kC,{alignItems:"stretch",justifyContent:"start",flex:"grow",overflow:"hidden",children:(0,m.jsx)(_.xu,{width:"100%",children:(0,m.jsx)(I,{onSelectedCollaboratorsChange:h,preselectedCollaborators:g})})})]}),!x&&(0,m.jsx)(o.Fragment,{children:(0,m.jsxs)(_.xu,{padding:3,children:[(0,m.jsx)(_.xu,{marginBottom:2,children:(0,m.jsx)(_.__,{htmlFor:"protected",children:(0,m.jsx)(_.xv,{size:"100",children:v.bt("Protected board (not listed on user's profile)", "Protected board (not listed on user's profile)", "protected board", undefined, true)})})}),(0,m.jsx)(_.xu,{children:(0,m.jsx)(_.rs,{disabled:!0,id:"protected",onChange:()=>{},switched:!0})})]})}),(0,m.jsxs)(_.xu,{borderStyle:"shadow",dangerouslySetInlineStyle:{__style:{borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px"}},bottom:!0,color:"default",display:"flex",justifyContent:"between",left:y,paddingX:4,paddingY:2,position:"absolute",right:!y,width:720,children:[(0,m.jsx)(_.kC,{children:(0,m.jsx)(_.zx,{onClick:r,text:v.bt("Cancel", "Cancel", "cancel board create", undefined, true)})}),(0,m.jsxs)(_.kC,{alignItems:"stretch",justifyContent:"end",children:[!!e&&(0,m.jsx)(_.xu,{paddingX:2,children:(0,m.jsx)(_.xv,{align:"center",color:"error",size:"200",weight:"bold",children:e})}),(0,m.jsx)(a.Z,{disabled:!t.trim()||!S||!!e||b,submitting:b,text:v.bt("Create", "Create", "create a new board", undefined, true)})]})]})]})})})}));var A=i(553751),w=i(513770),B=i(984206),E=i(615298);class R extends o.Component{constructor(...e){var t,i,o;super(...e),o=e=>{const{board:t,i18n:i,sectionsResource:{data:o}}=this.props,s=i.bt("Board", "Board", "PinSaveButton.RepinPicker.SectionListBoardTitle", undefined, true),r=i.bt("Section", "Section", "PinSaveButton.BoardFlyout.SectionListSectionTitle", undefined, true);return e.length>=B.Z?[{items:(0,E.j)([t],e),customProps:{inSectionSelection:!0}},{items:(0,E.j)(null!=o?o:[],e,"title")}]:[{items:[t],customProps:{inSectionSelection:!0},title:s},{items:null!=o?o:[],title:r}]},(i="getSections")in(t=this)?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o}render(){const{sectionsResource:{error:e,isLoaded:t},boardSavedTo:i,isSelectMode:o,onSectionCreate:s,onSectionSelected:r,pinId:n}=this.props;return(0,m.jsx)(w.Z,{isSelectMode:o,boardSavedTo:i,createButtonLabel:this.props.i18n.bt("Add section", "Add section", "Button for creating a board section", undefined, true),hasLoadError:!!e,isLoaded:t,getSections:this.getSections,onCreate:s,onSelected:r,pinId:n})}}function T(e){const t=(0,l.ZP)(),i=(0,x.Z)({name:"BoardSectionsRepinResource",options:{board_id:e.board.id}});return(0,m.jsx)(R,{...e,i18n:t,sectionsResource:i})}var z=i(414327),k=i(407043),O=i(19121);function D(e,t,i){return{...e?{pin_id:e}:Object.freeze({}),...t?{username:t}:Object.freeze({}),...i?{advertiser_id:i,filter:"protected"}:Object.freeze({}),field_set_key:"board_picker",limit:undefined,shortlist_suggestions:2}}class Z extends o.Component{constructor(...e){var t,i,o;super(...e),o=e=>{const{boardResource:{data:t}}=this.props;if(!t)return[];const{all_boards:i,boards_shortlist:o}=t,s=(e=>{const t=[],i=[];return e.forEach((e=>{var o;null!==(o=e.name)&&void 0!==o&&o.match(/^\d/)?i.push(e):t.push(e)})),[...t,...i]})(i);return s.length<=3?[{items:s}]:e.length>=B.Z?[{items:(0,E.j)(s,e)}]:[o.length?{items:o,title:this.props.i18n.bt("Top choices", "Top choices", " - ", undefined, true)}:{items:[]},{items:s,title:this.props.i18n.bt("All boards", "All boards", "title for board picker all boards section", undefined, true)}]},(i="getSections")in(t=this)?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o}render(){const{boardResource:{data:e,error:t,isLoaded:i},boardSavedTo:o,isSelectMode:s,onBoardCreate:r,onBoardSelected:n,pinId:a}=this.props,l=i&&!!e&&e.all_boards.length<=3;return(0,m.jsx)(w.Z,{isSelectMode:s,boardSavedTo:o,hasLoadError:!!t,hasLowBoardCount:l,isLoaded:i,getSections:this.getSections,onCreate:r,onSelected:n,pinId:a})}}function N(e){const t=(0,l.ZP)(),i=(0,O.Z)(),o=(0,r.useSelector)((({advertiser:e})=>{if(i.isAuth&&e&&e.owner_user_id!==i.id)return e.id})),s=(0,r.useSelector)((({advertiser:e})=>{if(i.isAuth&&e&&e.owner_user_id!==i.id)return e.owner_user_id})),n=(0,x.Z)({name:"BoardPickerBoardsResource",options:D(e.pinId,s,o)});return(0,m.jsx)(Z,{...e,boardResource:n,i18n:t})}function L(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class M extends o.Component{constructor(...e){super(...e),L(this,"state",{inviteQueue:{},newName:"",selectedSectionBoard:this.props.boardWithSection||null,showCreate:this.props.showCreate||!1}),L(this,"close",(()=>{const{selectedSectionBoard:e,showCreate:t}=this.state,{onClose:i}=this.props;t&&e?this.setState({showCreate:!1},this.manageModalTitle):e?this.setState({selectedSectionBoard:null},this.manageModalTitle):i()})),L(this,"sendInvites",(e=>{const{inviteQueue:t}=this.state;Object.keys(t).forEach((i=>{var o;t[i].resource(null!==(o=e.id)&&void 0!==o?o:"",[i])}))})),L(this,"handleInvite",(e=>{const{inviteQueue:t}=this.state;if(t[e.id]){const i={...t};delete i[e.id],this.setState({inviteQueue:i})}else{const i={...t,[e.id]:e};this.setState({inviteQueue:i})}})),L(this,"handleBoardCreate",(e=>{const{onBoardCreated:t}=this.props;this.handleBoardSave(e,!0),t&&t(e)})),L(this,"handleBoardSave",((e,t)=>{const{selectedSectionBoard:i}=this.state,{onBoardSave:o,invalidatePinBetterSaveResource:s,invalidateResource:r}=this.props;if(r(),s(),i&&"board_section"===e.type){return o(i,e,t)}const n=e,{section_count:a=0}=n;!i&&"number"==typeof a&&a>0?this.setState({selectedSectionBoard:n},this.manageModalTitle):(this.sendInvites(e),o(n,void 0,t))})),L(this,"handleCreate",(e=>t=>{t=t||"",this.setState({newName:t,showCreate:!0},this.manageModalTitle);const i=e?13105:13025,o=e?10306:249;this.props.logContextEvent({event_type:101,component:i,element:o})})),L(this,"manageModalTitle",(()=>{const{setModalTitle:e}=this.props,{selectedSectionBoard:t,showCreate:i}=this.state;e&&e(i&&t?this.props.i18n.bt("Add section", "Add section", "Repin title for making a board section", undefined, true):i&&!t?this.props.i18n.bt("Create board", "Create board", "Repin title for making a new board", undefined, true):t&&!i?this.props.i18n.bt("Choose section", "Choose section", "Repin title for choosing a board section", undefined, true):this.props.i18n.bt("Choose board", "Choose board", "Repin title for choosing a board", undefined, true))}))}render(){const{boardSavedTo:e,isRepin:t,isSelectMode:i,onToggleFlyout:o,pinId:s,preselectedCollaborators:r,setModalTitle:n,suggestedBoardTitle:a}=this.props,{newName:l,selectedSectionBoard:d,showCreate:c}=this.state,u=!!d,h=!n;return(0,m.jsxs)(_.xu,{display:"flex",position:"relative",width:"100%",children:[!c&&(0,m.jsx)(_.xu,{direction:"column",display:"flex",marginTop:4,width:"100%",children:d?(0,m.jsx)(T,{board:d,boardSavedTo:e,isSelectMode:i,onSectionCreate:this.handleCreate(u),onSectionSelected:this.handleBoardSave}):(0,m.jsx)(N,{boardSavedTo:e,isSelectMode:i,onBoardCreate:this.handleCreate(u),onBoardSelected:this.handleBoardSave,pinId:s})}),c&&!d&&(0,m.jsx)(P,{onCancel:this.close,onCreate:this.handleBoardCreate,onInvite:this.handleInvite,onToggleFlyout:o,pinId:s,prefilledName:l||a,preselectedCollaborators:r,showTitle:h}),c&&d&&(0,m.jsx)(A.Z,{board:d,completeCreateSectionAction:this.handleBoardSave,initialName:l,isRepin:t,onClearModal:this.close,showTitle:h})]})}}const F=(0,r.connect)(null,(function(e,t){return{invalidateResource:()=>{e((0,z.jB)("BoardPickerBoardsResource",D(t.pinId)))},invalidatePinBetterSaveResource:()=>{e((0,z.jB)("BoardPickerBoardsResource",{field_set_key:"board_picker"}))}}}))((function(e){const{logContextEvent:t}=(0,k.v)(),i=(0,l.ZP)();return(0,m.jsx)(M,{...e,i18n:i,logContextEvent:t})}));var U=i(121151),H=i(457323),V=i(678638);const W=({board:e,completeCreateSectionAction:t,height:i,onClose:s,pinImport:n,url:a,width:d})=>{const u=(0,l.ZP)(),{isRTL:h}=(0,c.B)(),p=(0,r.useDispatch)(),[g,b]=(0,o.useState)(""),[f,x]=(0,o.useState)(!1),[v,y]=(0,o.useState)(null);return(0,m.jsx)(U.ZP,{accessibilityModalLabel:u.bt("Repin modal", "Repin modal", "save.pinToBoard.modal.label", undefined, true),heading:(0,m.jsx)(_.xu,{paddingY:8,children:(0,m.jsxs)(_.kC,{justifyContent:"center",children:[(0,m.jsx)(_.xu,{maxWidth:400,children:(0,m.jsx)(_.X6,{align:"center",size:"500",children:u.bt("Add section", "Add section", "sectionCreateModal.title", undefined, true)})}),(0,m.jsx)(_.xu,{left:h,padding:8,position:"absolute",right:!h,top:!0,children:(0,m.jsx)(_.hU,{icon:"cancel",accessibilityLabel:u.bt("Close", "Close", "sectionCreateModal.closeButton", undefined, true),size:"md",iconColor:"darkGray",onClick:s})})]})}),footer:(0,m.jsx)(_.kC,{children:(0,m.jsx)(_.xu,{marginStart:"auto",children:(0,m.jsx)(_.zx,{fullWidth:!0,text:u.bt("Add", "Add", "sectionCreateModal.add.button", undefined, true),color:"red",onClick:()=>{e&&(x(!0),p((0,V.vB)({boardId:e.id,name:g.trim(),pinImport:n},u)).then((i=>{t(e,i,!1)})).catch((e=>{y(e.message_detail||e.message)})).finally((()=>{x(!1)})))},disabled:f||!g.trim()||!!v,size:"lg"})})}),onDismiss:s,size:"sm",children:(0,m.jsx)(_.xu,{padding:8,children:(0,m.jsxs)(_.kC,{children:[(0,m.jsx)(_.zd,{rounding:4,height:i,width:d,children:(0,m.jsx)(_.Ee,{alt:"",fit:"cover",src:a||"",naturalHeight:null!=i?i:1,naturalWidth:null!=d?d:1})}),(0,m.jsx)(_.xu,{marginStart:8,dangerouslySetInlineStyle:{__style:{width:d?`calc(100% - ${d}px)`:"100%"}},children:(0,m.jsx)(_.nv,{errorMessage:v,id:"sectionEditName",onChange:e=>{b(e.value),y(null)},placeholder:u.bt("Such as 'Lighting'", "Like \"Lighting\"", "sectionCreateModal.boardSection.name", undefined, true),label:u.bt("Name", "Name", "section.create.label", undefined, true),size:"lg",type:"text",value:g})})]})})})};var $=i(763594);function G(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class X extends o.PureComponent{constructor(...e){super(...e),G(this,"state",{isFlyoutOpen:!1}),G(this,"pinImageRef",(0,o.createRef)()),G(this,"handleSavePinToBoard",((e,t,i)=>{const{handleSaveToBoard:o}=this.props;o(e,t,i)})),G(this,"handleToggleFlyout",(()=>this.setState((({isFlyoutOpen:e})=>({isFlyoutOpen:!e}))))),G(this,"close",(()=>{const{isFlyoutOpen:e}=this.state,{handleAbort:t}=this.props;e||t()})),G(this,"dismissModal",(e=>{const{dismissModal:t}=this.props;t&&t()}))}render(){const{boardSavedTo:e,boardWithSection:t,color:i,displaySuccessAnimation:r,handleNewBoardAnimationCompletion:n,isInModal:a,newPin:l,pin:d,preselectedCollaborators:c,onBoardCreated:u,sensitiveContentNotice:h,setModalTitle:p,showCreate:g,shouldRenderContent:b,suggestedBoardTitle:f,updateDescription:x}=this.props;if(!d||!d&&!d.resourceLoaded||!b)return null;if(g&&t){var v;const{url:e,width:i,height:o}=(null===(v=d.images)||void 0===v?void 0:v["236x"])||{};return(0,m.jsx)(W,{board:t,url:e,height:o,width:i,onClose:this.close,completeCreateSectionAction:this.handleSavePinToBoard})}let y=null;l&&l.board&&(y=l.board.name);const S=h&&h.title||this.props.modalTitle,C=h?(0,m.jsx)($.Z,{inModal:!0,notices:[h]}):(0,m.jsx)(_.kC,{alignItems:"stretch",height:"calc(90vh - 97px)",justifyContent:"center",maxHeight:"703px",width:"100%",children:(0,m.jsxs)(o.Fragment,{children:[(0,m.jsxs)(_.xu,{color:"default",display:"flex",height:"100%",overflow:"hidden",position:"relative",rounding:2,width:"100%",children:[(0,m.jsx)(_.kC,{alignItems:"stretch",direction:"column",justifyContent:"between",width:"40%",children:(0,m.jsx)(_.xu,{alignItems:"center",direction:"column",display:"flex",flex:"grow",justifyContent:"start",marginTop:3,children:(0,m.jsx)(H.Z,{color:i,pin:d,pinImageRef:this.pinImageRef,updateDescription:x})})}),(0,m.jsx)(_.kC,{alignItems:"stretch",width:"60%",children:(0,m.jsx)(F,{boardSavedTo:e,boardWithSection:t,isRepin:!0,onBoardCreated:u,onBoardSave:this.handleSavePinToBoard,onClose:this.close,onToggleFlyout:this.handleToggleFlyout,pinId:d.id,preselectedCollaborators:c,setModalTitle:a?p:void 0,showCreate:g,suggestedBoardTitle:f})})]}),r&&(0,m.jsx)(s.Z,{onDismiss:()=>{n(),this.dismissModal()},pin:d,pinImageRef:this.pinImageRef,selectedBoardName:y})]})});return a?(0,m.jsx)(U.ZP,{accessibilityModalLabel:S||this.props.i18n.bt("Repin modal", "Repin modal", "save.pin-to-board.PinToBoard.PinToBoard", undefined, true),heading:S,onDismiss:this.close,size:"md",children:C}):C}}G(X,"defaultProps",{pwtAuxData:{}});const Y=function(e){const t=(0,l.ZP)(),i=(0,O.Z)();return(0,m.jsx)(X,{...e,i18n:t,viewer:i})}},920912:(e,t,i)=>{i.d(t,{A:()=>o,S:()=>s});const o=4e3,s={LOADING:"loading",SUCCESS:"success"}},32579:(e,t,i)=>{i.d(t,{Z:()=>m});var o=i(667294),s=i(702664),r=i(27255),n=i(239682),a=i(19121),l=i(414327),d=i(109892),c=i(898781),u=i(349700),h=i(134906),p=i(785893);function _(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function m(e){class t extends o.Component{constructor(...e){super(...e),_(this,"state",{createBoardError:null,inputName:this.props.prefilledName||"",nameValidators:[(0,h.aH)({message:this.props.i18n.bt("Don't forget to name your board!", "Don't forget to name your board!", " - ", undefined, true)}),(0,h.Gy)({max:r.Z.MAX_CHARS_FOR_BOARD_TITLE,maxErrorString:(0,u.nk)(this.props.i18n.bt("Please enter no more than {{ maxLength }} characters.", "Please enter no more than {{ maxLength }} characters.", "Validation error when a user input is too long", undefined, true),{maxLength:r.Z.MAX_CHARS_FOR_BOARD_TITLE}).join("")})],nameValidatorErrors:[],privacy:this.props.isAdAccountOwner?r.Z.BoardPrivacy.PUBLIC:r.Z.BoardPrivacy.PROTECTED,saving:!1}),_(this,"invalidateResource",(e=>{const{dispatch:t,viewer:i}=this.props;t((0,l.jB)("BoardsResource",(0,n.Z)(i.isAuth?i.username:"",e===r.Z.BoardPrivacy.SECRET)))})),_(this,"handleChangeName",((e,t)=>{this.setState((({nameValidators:t})=>({inputName:e,nameValidatorErrors:(0,h.FU)(t,e),createBoardError:null})),(()=>{t&&this.handleCreate()}))})),_(this,"handleChangePrivacy",(()=>{this.setState((({privacy:e})=>({privacy:e===r.Z.BoardPrivacy.SECRET?r.Z.BoardPrivacy.PUBLIC:r.Z.BoardPrivacy.SECRET})))})),_(this,"handleCreate",(()=>{const{inputName:e,privacy:t}=this.state,{createBoard:i,isAdAccountOwner:o,onCreate:s,advertiser_id:r}=this.props;this.setState({saving:!0,createBoardError:null}),i({boardCreateOptions:{name:e,privacy:t,...!o&&r?{advertiser_id:r}:Object.freeze({})}}).then((e=>{this.setState({saving:!1}),s(e)})).catch((e=>{let t=this.props.i18n.bt("Something went wrong.", "Uh oh! Something went wrong.", " - ", undefined, true);if("string"==typeof e)t=e;else if(e.message){const{message:i,message_detail:o}=e;t=o?`${i} ${o}`:i}this.setState({saving:!1,createBoardError:t})})),this.invalidateResource(t)}))}render(){return(0,p.jsx)(e,{onBoardCreate:this.handleCreate,onChangeBoardName:this.handleChangeName,onChangeBoardPrivacy:this.handleChangePrivacy,...this.props,...this.state})}}return _(t,"displayName",`WithBoardCreatePane(${e.displayName||e.name})`),function(e){const i=(0,c.ZP)(),o=(0,s.useSelector)((({advertiser:e})=>e)),r=(0,s.useDispatch)(),n=(0,a.Z)(),l=!o||n.isAuth&&o.owner_user_id===n.id,u=o&&o.id,h=(0,d.Z)();return(0,p.jsx)(t,{...e,createBoard:h,i18n:i,viewer:n,isAdAccountOwner:l,advertiser_id:null!=u?u:void 0,dispatch:r})}}},109892:(e,t,i)=>{i.d(t,{Z:()=>c});var o=i(702664),s=i(6637),r=i(332611),n=i(886858),a=i(379725),l=i(414327),d=i(782677);function c(){const e=(0,o.useDispatch)(),t=(0,o.useSelector)((e=>e.resources));return async function({boardCreateOptions:i,deprecatedSchemaForNormalization:o}){var c,u;const h=await s.Z.create("BoardResource",i).callCreate(),p=null===(c=h.resource_response)||void 0===c?void 0:c.data,_=o?(0,d.Fv)(p,o):void 0;e((0,l.XM)("BoardResource",i,h,_)),e((0,r.fO)({event_type:20})),null!==(u=p.owner)&&void 0!==u&&u.id&&e((0,a.b)("UserResource",{options:{user_id:p.owner.id,field_set_key:"save_behavior"}}));const m=t.BoardsResource||{},g=t.BoardsFeedResource||{};return Object.keys(m).forEach((t=>{var i;(0,n.k)(t).username===(null===(i=p.owner)||void 0===i?void 0:i.username)&&e((0,l.jB)("BoardsResource",t))})),Object.keys(g).forEach((t=>{var i;(0,n.k)(t).username===(null===(i=p.owner)||void 0===i?void 0:i.username)&&e((0,l.jB)("BoardsFeedResource",t))})),p}}}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/75690.en_AU-e667edba672cbeec.mjs.map