(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[243],{"++39":function(e,t,n){n.d(t,"a",(function(){return d}));var o=n("q1tI"),i=n("/MKj"),r=n("pLLR"),a=n("n6mq"),s=n("nKUr");const c=Object(o.forwardRef)(({boardTool:{icon:e,link:t,text:n}},i)=>{const[c,l]=Object(o.useState)(!1),{isRTL:d}=Object(r.d)();return Object(s.jsx)(a.bb,{accessibilityLabel:n,href:t,onFocus:()=>l(!0),onBlur:()=>l(!1),ref:i,role:"link",rounding:6,children:Object(s.jsxs)(a.f,{display:"flex",direction:"column",justifyContent:"center",dangerouslySetInlineStyle:{__style:{paddingBottom:"1px"}},children:[Object(s.jsx)(a.f,{alignItems:"center",color:c?"lightWash":"lightGray",display:"flex",height:72,justifyContent:"center",rounding:6,width:72,children:Object(s.jsx)(a.w,{accessibilityLabel:n,color:"darkGray",icon:"text-align-left"===e&&d?"text-align-right":e,size:24})}),Object(s.jsx)(a.f,{paddingY:1,width:72,children:Object(s.jsx)(a.cb,{align:"center",size:"sm",weight:"bold",children:n})})]})})});c.displayName="BoardTool";var l=c;function d({boardId:e,sectionId:t}){const n=Object(o.useRef)(),r=Object(o.useRef)(),c=Object(o.useRef)(),d=Object(o.useRef)();let b="";t?b=t:e&&(b=e);const u=!!t?"section-tools:"+b:"board-tools:"+b,j=Object(i.useSelector)(({feeds:e})=>e[u])||[];if(j.length<1)return null;const h=[n,r,c,d],p=j.map(({id:e})=>{const t=e.split("-");return t&&t.length>1?Number(t[1]):-1});return j?Object(s.jsx)(a.u,{alignItems:"center",justifyContent:"center",width:"100%",children:Object(s.jsx)(a.u,{alignItems:"stretch",justifyContent:"start",children:j.map((e,t)=>{const n=p?p[t]:-1;return Object(s.jsx)(a.f,{padding:1,children:Object(s.jsx)(l,{boardTool:e,ref:h[n]})},e.id)})})}):null}},"+ZRO":function(e,t,n){n.d(t,"a",(function(){return a}));var o=n("28DW"),i=n("n6mq"),r=n("nKUr");function a({interest:e,shouldWrapText:t}){var n,a,s;const{name:c,url:l,image:d}=e;return d&&d["474x"]?Object(r.jsx)(i.C,{onClick:()=>{Object(o.k)("mweb.unauth.suggested_interests_pill.plp.touch",{interest:c}),Object(o.i)({action:"click",page:"board",item:"suggested-interest-pill"})},rounding:"pill",hoverStyle:"none",href:l,children:Object(r.jsx)(i.f,{display:"flex",marginBottom:1,marginStart:1,overflow:"hidden",position:"relative",rounding:"pill","data-test-id":"suggested-interest-pill",children:Object(r.jsxs)(i.f,{alignItems:"center",color:"lightGray",display:"flex",height:50,width:"100%",children:[Object(r.jsx)(i.f,{height:42,margin:1,minWidth:42,overflow:"hidden",rounding:"circle",width:42,children:Object(r.jsx)(i.y,{alt:c,fit:"cover",naturalHeight:null!==(n=d["474x"].height)&&void 0!==n?n:1,naturalWidth:null!==(a=d["474x"].width)&&void 0!==a?a:1,src:null!==(s=d["474x"].url)&&void 0!==s?s:""})}),Object(r.jsx)(i.f,{marginEnd:4,marginStart:1,children:Object(r.jsx)(i.cb,{align:"center",overflow:t?"normal":"noWrap",size:"md",weight:"bold",children:c})})]})})}):null}},"1xPy":function(e,t,n){n.d(t,"b",(function(){return r}));var o=n("q1tI");const i=Object(o.createContext)(!0);function r(){return Object(o.useContext)(i)}t.a=i},"6CFY":function(e,t,n){var o=n("q1tI"),i=n("BcvT"),r=n("n6mq"),a=n("nKUr");const s=new r.t(669),c={1:"up",2:"right",3:"down",4:"left"};t.a=({anchors:e={},complete:t,dismiss:n,displayData:l,idealDirection:d,onCompleteByAnchor:b={},platform:u,positionRelativeToAnchor:j=!0,touchToDismiss:h=!0,useMasonryFlyout:p=!1})=>{var g;const{anchors_by_platform:f={},button_text:O,button_uri:m,display_type:x,flyout_direction:v,scroll_to_dismiss:y,scroll_to_dismiss_delay_in_seconds:w=0,text:_}=l||{},C=null===(g=f[u])||void 0===g?void 0:g.anchor,S=e[C],I=Object(o.useCallback)(()=>{y&&(window.removeEventListener("scroll",I),window.removeEventListener("touchmove",I)),h&&S&&S.removeEventListener("click",I),setTimeout(()=>n(),1e3*w)},[S]);if(Object(o.useEffect)(()=>{S&&(y&&(window.addEventListener("scroll",I),window.addEventListener("touchmove",I)),h&&S.addEventListener("click",I))},[S]),!S)return null;const{FLYOUT:B,PULSAR:k}={FLYOUT:1,PULSAR:2},A=({children:e})=>{if(p)return Object(a.jsx)(r.A,{zIndex:s,children:e});if(x===k){const t={};if(j)t.top=S.offsetTop,t.left=S.offsetLeft,t.width=S.offsetWidth,t.height=S.offsetHeight;else{const e=S.getBoundingClientRect();t.top=e.top+window.pageYOffset,t.left=e.left+window.pageXOffset,t.width=e.width,t.height=e.height}return Object(a.jsx)(r.f,{position:"absolute",top:!0,left:!0,zIndex:s,dangerouslySetInlineStyle:{__style:t},children:e})}return Object(a.jsx)(r.f,{zIndex:s,children:e})},T=c[v],L=m&&(m.startsWith("https://")||m.startsWith("http://")),D=(b||{})[C],R=()=>{y&&(window.removeEventListener("scroll",I),window.removeEventListener("touchmove",I)),h&&S.removeEventListener("click",I),t()};return Object(a.jsxs)(o.Fragment,{children:[x===k&&Object(a.jsx)(A,{children:Object(a.jsx)(i.a,{anchor:S,onTouch:()=>{R(),D?D():S instanceof HTMLElement&&S.click()},zIndex:670})}),x===B&&Object(a.jsx)(A,{children:Object(a.jsx)(r.L,{anchor:S,color:"blue",idealDirection:T||d||"down",onDismiss:I,positionRelativeToAnchor:!p&&j,shouldFocus:!1,showCaret:!0,size:"md",children:Object(a.jsxs)(r.f,{padding:4,width:"220px",children:[Object(a.jsx)(r.cb,{align:"center",color:"white",weight:"bold",children:_}),O?Object(a.jsx)(r.f,{display:"flex",justifyContent:"center",marginTop:4,children:Object(a.jsx)(r.f,{column:8,children:m?Object(a.jsx)(r.g,{fullWidth:!0,color:"white",href:m,onClick:({disableOnNavigation:e})=>{e(),R()},role:"link",size:"md",target:L?"blank":null,text:O}):Object(a.jsx)(r.g,{fullWidth:!0,color:"white",onClick:R,size:"md",text:O})})}):null]})})})]})}},"88U9":function(e,t,n){t.a=({boardCollaboratorCount:e,collaborators:t})=>{const n=e?e+1:t.length,o=n>3,i=t.slice(0,o?2:3);return{displayedCollaborators:i,nonDisplayedCollaboratorCount:o?n-i.length:0}}},AvID:function(e,t,n){n.d(t,"a",(function(){return i}));var o=n("r92k");function i(e){return Object(o.b)().getState().session.isAuthenticated&&e}},BcvT:function(e,t,n){var o=n("q1tI"),i=n("n6mq"),r=n("nKUr");function a({anchor:e,children:t,zIndex:n}){const a=Object(o.useRef)(null),[s,c]=Object(o.useState)(0),[l,d]=Object(o.useState)(0),{height:b,width:u}=e.getBoundingClientRect();return Object(o.useEffect)(()=>{const{current:t}=a;if(e&&t){const{height:e,width:n}=t.getBoundingClientRect(),{horizontalOffset:o,verticalOffset:i}=((e,t,n,o)=>({horizontalOffset:-(o/2-t/2),verticalOffset:-(n/2-e/2)}))(b,u,e,n);c(o),d(i)}},[b,u,a.current]),Object(r.jsx)(i.f,{position:"absolute",zIndex:n?new i.t(n):void 0,dangerouslySetInlineStyle:{__style:{left:s,top:l}},ref:a,children:t})}t.a=function(e){const{anchor:t,onTouch:n,onMouseEnter:o,paused:s,size:c,zIndex:l}=e;return t?Object(r.jsx)(a,{anchor:t,zIndex:l,children:Object(r.jsx)(i.bb,{fullWidth:!1,onTap:({event:e})=>n(e),onMouseEnter:o,rounding:"circle",children:Object(r.jsx)(i.M,{paused:s,size:c})})}):null}},"GX0+":function(e,t,n){n.d(t,"a",(function(){return b}));var o=n("q1tI"),i=n("yweb"),r=n("S1na"),a=n("qpbZ"),s=n("pLLR"),c=n("l70D"),l=n("n6mq"),d=n("nKUr");function b({addButtonRef:e,nonDisplayedCollaboratorCount:t,displayedCollaborators:n,onClick:b,pileRef:u,showAddButton:j}){const[h,p]=Object(o.useState)(!1),g=Object(i.c)(),f=Object(r.a)(),{locale:O}=Object(s.d)(),m=g._("Invite collaborators.","DeprecatedBoardCollaboratorFacepile.accessibilityLabel.inviteCollaborators","It informs the users that they can invite other collaborators."),x=Object(a.c)(g.ngettext("Collaborators: {{ userNames }} and {{ leftCount }} more.","Collaborators: {{ userNames }} and {{ leftCount }} more.",t,"DeprecatedBoardCollaboratorFacepile.accessibilityLabel","Accessibility label that lists the names of collaborators and a final count of non-displayed avatars"),{userNames:n.map(e=>e.name).join(", "),leftCount:""+t}),v=({children:e,hovered:t})=>Object(d.jsxs)(l.f,{position:"relative",children:[Object(d.jsx)(l.f,{bottom:!0,dangerouslySetInlineStyle:{__style:t?{zIndex:1,backgroundColor:"rgba(0,0,0,0.06)"}:{}},left:!0,position:"absolute",right:!0,rounding:"pill",top:!0}),e]}),y=n.map(({name:e,src:t},n)=>Object(d.jsx)(l.f,{"aria-hidden":"true",marginStart:0!==n?-4:void 0,children:Object(d.jsx)(v,{hovered:h&&!!b,children:Object(d.jsx)(l.f,{color:"white",height:c.a,width:c.a,rounding:"circle",children:Object(d.jsx)(l.b,{name:e,outline:!0,src:t})})})},"face-"+n));return y.length>1&&t&&y.push(Object(d.jsx)(l.f,{"aria-hidden":"true",dangerouslySetInlineStyle:{__style:{zIndex:1}},children:Object(d.jsx)(l.f,{marginStart:-4,children:Object(d.jsx)(v,{hovered:h&&!!b,children:Object(d.jsx)(l.f,{dangerouslySetInlineStyle:{__style:{boxShadow:"0 0 0 1px #fff"}},rounding:"circle",children:Object(d.jsx)(l.f,{alignItems:"center",color:"lightGray",display:"flex",height:c.a,justifyContent:"center",position:"relative",rounding:"circle",width:c.a,children:Object(d.jsx)(l.cb,{size:"lg",weight:"bold",children:f(O,t,{shortform:!0})})})})})})},"additionalCount")),y.length>1&&j&&y.push(Object(d.jsx)(l.f,{"aria-hidden":"true",dangerouslySetInlineStyle:{__style:{zIndex:1}},ref:e,children:Object(d.jsx)(l.f,{marginStart:-4,children:Object(d.jsx)(v,{hovered:h,children:Object(d.jsx)(l.f,{dangerouslySetInlineStyle:{__style:{boxShadow:"0 0 0 1px #fff"}},rounding:"circle",children:Object(d.jsx)(l.f,{alignItems:"center",color:"lightGray",display:"flex",height:c.a,justifyContent:"center",rounding:"circle",width:c.a,children:Object(d.jsx)(l.w,{accessibilityLabel:"Add",icon:"add",color:"darkGray",size:20})})})})})},"addIcon")),Object(d.jsx)(l.u,{alignItems:"center",children:Object(d.jsx)(l.bb,{accessibilityLabel:j?`${x} ${m}`:""+x,ref:u,onTap:b,rounding:"pill",onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:Object(d.jsx)(l.u,{alignItems:"center",justifyContent:"start",children:y})})})}},H5qz:function(e,t,n){n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return d}));var o=n("q1tI"),i=n("DzJC"),r=n.n(i),a=n("1dBE"),s=n("nKUr");const{Provider:c,Consumer:l,useHook:d}=Object(a.c)("HeaderShadow");function b({children:e}){const[t,n]=Object(o.useState)(!1),[i,a]=Object(o.useState)(!1),[l,d]=Object(o.useState)(0),[b,u]=Object(o.useState)(null),j=r()(()=>{t&&(a(window.scrollY>0),d(window.scrollY))},50);return Object(o.useEffect)(()=>(n(!0),()=>{n(!1)}),[]),Object(o.useEffect)(()=>(window.addEventListener("scroll",j),()=>{window.removeEventListener("scroll",j)}),[t]),Object(s.jsx)(c,{value:{currentScrollPosition:l,isScrolled:i,setSubheaderShadow:u,subheaderShadow:b},children:e})}},JYeC:function(e,t,n){var o=n("q1tI"),i=n("/MKj"),r=n("i2lo"),a=n("4kAQ"),s=n("nKUr");const c=[502321,502322];class l extends o.Component{componentDidMount(){const{experience:e,completeExperience:t}=this.props;e&&c.includes(e.experience_id)&&t(e.placement_id,e.experience_id,!0)}render(){return Object(s.jsx)(r.a,{experience:this.props.experience,eligibleIds:c,children:Object(s.jsx)("span",{})})}}t.a=Object(i.connect)(null,(e,t)=>({completeExperience:(t,n,o)=>e(Object(a.a)(t,n,o))}))(l)},JiWI:function(e,t,n){n.d(t,"a",(function(){return o}));const o={"424605139807765557":!0,"487022215893335585":!0,"681802899776795712":!0,"605945393553266792":!0,"394065104834583533":!0,"681802899776795712":!0,"458452505757193282":!0,"568509221651063083":!0,"842314005246059316":!0,"684547280799527239":!0,"407294428740033573":!0,"681802899776805483":!0,"618119186295994269":!0,"424605139807777368":!0,"681802899776839770":!0,"487022215893349902":!0,"394065104834663920":!0,"842314005246096517":!0,"568509221651073933":!0,"458452505757203385":!0,"684547280799786717":!0,"605945393553311206":!0,"406238897577381755":!0,"618119186296081237":!0,"424605139807777372":!0,"424605139807777369":!0,"487022215893349904":!0,"568509221651073934":!0,"407294428740048526":!0,"424605139807777374":!0,"646125946478825462":!0,"646125946478866602":!0,"646125946478883676":!0,"646125946478883661":!0,"646125946478879471":!0,"394065104834692263":!0,"394065104834692264":!0,"394065104834692261":!0,"618119186296089811":!0,"487022215892656630":!0}},MCFh:function(e,t,n){n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return b}));var o=n("eOdZ"),i=n("2hay");const r="lastUsedSocialShare",a=[6,10,12,5];function s({invitePath:e,objectType:t,i18n:n,isDesktop:o}){let r=n._("A Pin for you","shareMenu.message.title","Messaging title when sharing a pin to a friend");8===t&&(r=n._("Check out this article on Pinterest!","shareMenu.message.title","Messaging title when sharing a today article to a friend"));const a=`mailto:?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(e)}`,s=`fb-messenger://share/?link=${encodeURIComponent(e)}&app_id=${i.a}`,c=o?"https://twitter.com/intent/tweet?via=pinterest&url="+encodeURIComponent(e):"twitter://post?message="+encodeURIComponent(e),l=o?"https://web.whatsapp.com/send?text="+encodeURIComponent(e):"whatsapp://send?text="+encodeURIComponent(e),d="line://msg/text/?"+encodeURIComponent(e),b="viber://forward?text="+encodeURIComponent(e);return{emailShareLink:a,messengerShareLink:s,twitterShareLink:c,whatsappShareLink:l,lineShareLink:d,telegramShareLink:"tg://msg?text="+encodeURIComponent(e),viberShareLink:b}}function c(e,t,n,o){e&&window.FB&&window.FB.ui&&window.FB.ui({method:"share",mobile_iframe:!0,href:t},e=>{e&&!e.error_message&&o&&o()})}function l(e,t,n,o){if(!n||!t)return;const i=new t(n,{text:()=>e});i.on("success",e=>{o&&o(e)}),i.on("error",e=>{throw new Error("<ShareMenu /> error: copy command failed")})}async function d(e,t,n){const i=o.d.create("CreateExternalInviteResource",{invite_type:{invite_category:3,invite_object:n,invite_channel:e},object_id:t}),r=await i.callCreate(),{invite_url:a,invite_code:s}=r.resource_response.data;return{inviteCode:s,invitePath:a}}async function b(e,t,n,i){o.d.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:3,invite_object:i,invite_channel:e},invite_code:t,object_id:n}).callCreate()}},Ofms:function(e,t,n){n.d(t,"a",(function(){return r}));var o=n("n6mq"),i=n("nKUr");function r(e){const{children:t,display:n,id:r}=e;return Object(i.jsx)(o.f,{"data-test-id":r,display:n,children:t})}},QvDk:function(e,t,n){n.d(t,"a",(function(){return u}));var o=n("n6mq"),i=n("nKUr");function r({action:e,alignCenter:t}){const{title:n,description:r,button:a}=e,s=n&&n.text,c=r&&r.text,l=a&&a.text||"",d=a&&a.link||"";return Object(i.jsxs)(o.u,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[!!s&&Object(i.jsx)(o.cb,{align:t?"center":"start",weight:"bold",children:s}),!!c&&Object(i.jsx)(o.cb,{align:t?"center":"start",children:c}),!!(a&&l&&d)&&Object(i.jsx)(o.f,{paddingY:3,children:Object(i.jsx)(o.g,{fullWidth:!0,onClick:()=>window.location.replace(d),text:l,color:"white"})})]})}var a=n("hZxF"),s=n("eyT9"),c=n("AGnR");const l={boxShadow:"0 4px 16px rgba(0, 0, 0, 0.04)"},d={backgroundColor:"#DDF3F2",...l},b={backgroundColor:"#21374B",...l};function u({alignCenter:e,notice:t,viewType:n,viewParameter:l,query:u,sensitivity:j}){const{title:h,description:p,actions:g=[]}=t,f=p&&p.text||"",O=function(e,t){const n=[];let r=0;for(let a=0;a<t.length;a+=1){const s=t[a];if(5===s.tag_type&&s.link){const t=e.substring(s.offset,s.offset+s.length),a=Object(i.jsx)(o.C,{inline:!0,target:"blank",href:s.link,onClick:({disableOnNavigation:e})=>e(),children:Object(i.jsx)(o.cb,{inline:!0,weight:"bold",children:t})},t);n.push(Object(i.jsx)(o.cb,{inline:!0,children:e.substring(r,s.offset)})),n.push(a),r=s.offset+s.length}}return r>0&&n.push(Object(i.jsx)(o.cb,{inline:!0,children:e.substring(r)})),0===n.length?[Object(i.jsx)("span",{children:e})]:n}(f,p&&p.text_tags||[]);return Object(a.a)(()=>{n&&Object(c.e)({event_type:120,view_type:n,component:13367,view_parameter:l,aux_data:{entered_query:u,advisory_details:null==j?void 0:j.advisory_details,advisory_level:null==j?void 0:j.advisory,severity_level:null==j?void 0:j.severity}})}),Object(i.jsxs)(o.f,{rounding:2,padding:6,dangerouslySetInlineStyle:{__style:Object(s.e)()?b:d},children:[!!h&&Object(i.jsx)(o.f,{marginBottom:3,display:"flex",justifyContent:e?"center":void 0,children:Object(i.jsx)(o.v,{size:"md",children:h})}),!!f&&Object(i.jsx)(o.f,{marginBottom:4,children:Object(i.jsx)(o.cb,{size:"sm",children:O})}),g.map(t=>Object(i.jsx)(o.f,{paddingY:g.length>1?2:0,children:Object(i.jsx)(r,{action:t,alignCenter:e})},t.id))]})}},Tn2K:function(e,t,n){n.d(t,"a",(function(){return $e})),n.d(t,"b",(function(){return Qe})),n.d(t,"c",(function(){return Ve}));var o=n("q1tI"),i=n("/MKj"),r=n("PaNI"),a=n("7XhJ"),s=n("Ofms"),c=n("y6OW"),l=n("yweb"),d=n("S1na"),b=n("qpbZ"),u=n("g6r8"),j=n("pLLR"),h=n("n6mq"),p=n("nKUr");function g({followerCount:e,isAuthenticated:t,lastModified:n,pinCount:i}){const r=Object(l.c)(),a=Object(d.a)(),g=Object(c.a)(),{locale:f}=Object(j.d)(),O=Object(u.c)(),m=!!i&&!t,x=e>5;return Object(p.jsxs)(h.u,{alignItems:"center",direction:O?"column":"row",justifyContent:"start",children:[Object(p.jsxs)(h.u,{alignItems:"center",direction:"row",justifyContent:"start",children:[m&&Object(p.jsx)(s.a,{id:"pin-count",children:Object(p.jsx)(h.cb,{children:Object(b.b)(r.ngettext("{{ pinCount }} Pin","{{ pinCount }} Pins",i,"boardPage.header.attribution.pinCount","Label for the number of pins belonging to a board"),{pinCount:a(f,i,{})})})}),x&&m&&Object(p.jsx)(h.f,{paddingX:1,children:Object(p.jsx)(h.cb,{inline:!0,children:"·"})}),x&&Object(p.jsx)(s.a,{id:"follower-count",children:Object(p.jsx)(h.cb,{children:Object(b.b)(r.ngettext("{{ followerCount }} follower","{{ followerCount }} followers",e,"boardPage.header.attribution.followerCount","Label displayingthe number of followers following a board"),{followerCount:a(f,e,{})})})})]}),!t&&Object(p.jsxs)(o.Fragment,{children:[!O&&(m||x)&&Object(p.jsx)(h.f,{paddingX:1,children:Object(p.jsx)(h.cb,{inline:!0,children:"·"})}),Object(p.jsx)(h.f,{alignItems:"center",direction:"row",display:"flex","data-test-id":"last-updated-date",children:Object(p.jsx)(h.cb,{children:Object(b.b)(r._("Last updated {{ lastModifiedDate }}","boardPage.header.attribution.lastModified","Label displaying how many days ago the board was last modified"),{lastModifiedDate:g(n)})})})]})]})}var f=n("Lr1Z");function O({user:e}){return Object(p.jsx)("span",{"data-test-id":"user-rep",children:Object(p.jsx)(f.a,{inline:!0,pressState:"compress",to:`/${e.username}/`,children:Object(p.jsx)(h.cb,{weight:"bold",children:e.full_name})})})}function m({collaborators:e,boardOwnerId:t,collaboratorsAmount:n}){const o=Object(l.c)(),r=Object(d.a)(),{locale:a,userId:s}=Object(i.useSelector)(({session:e})=>e);if(!e.length)return null;const c=[...e.filter(({id:e})=>e===t),...e.filter(({id:e})=>e===s&&e!==t),...e.filter(({id:e})=>![t,s].includes(e))],u=c[0],j=c[1],g=c.length;if(g>3)return Object(b.b)(o._("Collection by {{ownerName}}, {{ secondCollaborator}} and {{collaboratorCount}}","BoardHeaderDescriptionNames.Redesign.CollabNamesMoreThan3","Name of board owner and number of collaborators"),{ownerName:Object(p.jsx)(O,{user:u},u.id),secondCollaborator:Object(p.jsx)(O,{user:j},j.id),collaboratorCount:Object(p.jsx)(h.cb,{weight:"bold",inline:!0,children:Object(b.b)(o.ngettext("{{collaboratorsCount}} other","{{collaboratorsCount}} others",null!=n?n:c.length-1,"BoardHeaderDescriptionNames.CollabNamesMoreThan2Text","Name of board owner and number of other collaborators"),{collaboratorsCount:r(a,c.length-1,{})})})});if(3===g){const e=c[2];return Object(b.b)(o._("Collection by {{ownerName}}, {{ secondCollaborator}} and {{ thirdCollaborator }}","BoardHeaderDescriptionNames.Redesign.CollabNames3","Names of board collaborators"),{ownerName:Object(p.jsx)(O,{user:u},u.id),secondCollaborator:Object(p.jsx)(O,{user:j},j.id),thirdCollaborator:Object(p.jsx)(O,{user:e},e.id)})}return 2===g?Object(b.b)(o._("Collection by {{ownerName}} and {{ secondCollaborator}}","BoardHeaderDescriptionNames.Redesign.CollabNames2","Names of board collaborators"),{ownerName:Object(p.jsx)(O,{user:u},u.id),secondCollaborator:Object(p.jsx)(O,{user:j},j.id)}):Object(b.b)(o._("Collection by {{ownerName}}","BoardHeaderDescriptionNames.Redesign.CollabNames1","Names of board owner"),{ownerName:Object(p.jsx)(O,{user:u},u.id)})}var x=n("I1Y6");function v({boardOwnerId:e,collaborators:t,description:n,collaboratorsAmount:i}){const r=Object(l.c)(),[a,s]=Object(o.useState)(!1),c=Object(x.a)(n,160),d=((null==n?void 0:n.length)||0)>160;return Object(p.jsx)(h.u,{alignItems:"center",direction:"column",justifyContent:"start",wrap:!0,children:Object(p.jsxs)(h.cb,{size:"lg",inline:!0,align:"center",children:[Object(p.jsx)(m,{boardOwnerId:e,collaborators:t,collaboratorsAmount:i}),t.length>0&&!!n&&Object(p.jsx)(h.f,{display:"inlineBlock",paddingX:1,children:Object(p.jsx)(h.cb,{inline:!0,children:"·"})}),!!n&&Object(p.jsxs)(o.Fragment,{children:[Object(p.jsx)(h.cb,{align:"center",inline:!0,children:a?n:c}),d&&Object(p.jsx)(h.f,{display:"inlineBlock",marginStart:1,children:Object(p.jsx)(h.bb,{fullWidth:!1,onTap:()=>{s(!a)},children:Object(p.jsx)(h.cb,{inline:!0,weight:"bold",children:a?r._("Less","boardPage.header.description.truncateDescription","Text for cta to show less text for the board description"):r._("More","boardPage.header.description.expandDescription","Text for cta to show full text for the board description")})})})]})]})})}var y=n("8ifP"),w=n("q3Ga"),_=n("hLPq"),C=n("mp1x"),S=n("EC67"),I=n("YWAn"),B=n("go3G");function k({board:e,isSensitive:t,isViewerOrCollaborator:n,openSendBoardModal:r,user:a}){const c=Object(l.c)(),d=Object(S.h)(),u=Object(i.useDispatch)(),{showToast:j}=Object(I.c)(),[g,f]=Object(o.useState)(!1),[O,m]=Object(o.useState)(!1),x=!!e.archived_by_me_at,v=()=>f(!1),k=()=>m(!1),A=x?Object(b.b)(c._("Unarchived {{ boardName }}","boardHeaderOverflowMenu.onBoardUnarchive.toast","Toast text on complete unarchiving board"),{boardName:e.name}).join(""):Object(b.b)(c._("Archived {{ boardName }}","boardHeaderOverflowMenu.onBoardArchive.toast","Toast text on complete archiving board"),{boardName:e.name}).join(""),T=Object(p.jsx)(h.f,{width:54,height:54,children:Object(p.jsx)(y.a,{boardId:e.id,type:"thumbnail"})}),L=()=>{u(Object(B.c)(e.id,a.username)).then(()=>{j({text:A,thumbnail:T})}),k(),v()},D=()=>{u(Object(B.p)(e.id,a.username)).then(()=>{j({text:A,thumbnail:T})}),k(),v()},R=x?c._("Unarchive","boardHeaderOverflowMenu.archiveOptionTitle.UnarchiveBoard","Title for option UnarchiveBoard on Edit Board page"):c._("Archive","boardHeaderOverflowMenu.archiveOptionTitle.ArchiveBoard","Title for option ArchiveBoard on Edit Board page");return Object(p.jsxs)(o.Fragment,{children:[Object(p.jsx)(_.a,{accessibilityLabel:c._("More board options","boardHeaderOverflowMenu.iconButton.accessibilityLabel","Accessibility label for more board options overflow menu button"),bgColor:"lightGray",color:"darkGray",icon:"ellipsis",onTouch:()=>f(!0),padding:2,size:"sm"}),Object(p.jsx)(C.a,{hideCloseIcon:!0,isOpen:g,onDismiss:v,type:"block_button",children:Object(p.jsx)(h.f,{paddingX:2,paddingY:3,children:Object(p.jsxs)(h.u,{direction:"column",gap:2,children:[Object(p.jsx)(h.cb,{children:c._("Board options","boardHeaderOverflowMenu.boardOptions","Options heading on Modal on own board")}),n&&Object(p.jsx)(h.bb,{fullWidth:!1,onTap:()=>{d.replace(`/board/${e.id}/edit/`)},rounding:"circle",children:Object(p.jsx)(s.a,{id:"editBoard",children:Object(p.jsx)(h.v,{size:"sm",children:c._("Edit board","boardHeaderOverflowMenu.boardOptions.editButton","Button to edit board")})})}),"secret"!==e.privacy&&!t&&Object(p.jsx)(h.bb,{fullWidth:!1,onTap:r,rounding:"circle",children:Object(p.jsx)(s.a,{id:"sendBoard",children:Object(p.jsx)(h.v,{size:"sm",children:c._("Share","boardHeaderOverflowMenu.boardOptions.shareBoardButton","Button to share board")})})}),n&&Object(p.jsx)(h.bb,{fullWidth:!1,onTap:()=>m(!0),rounding:"circle",children:Object(p.jsx)(s.a,{id:"archiveBoard",children:Object(p.jsx)(h.v,{size:"sm",children:R})})}),Object(p.jsx)(h.f,{"data-test-id":"closeBoardOptions",display:"flex",justifyContent:"center",marginTop:3,children:Object(p.jsx)(h.g,{color:"gray",onClick:v,size:"lg",text:c._("Close","boardHeaderOverflowMenu.boardOptions.closeModal","Accessibility label for close button on Modal on a own board")})}),Object(p.jsx)(w.a,{fullName:e.name,isOpen:O,onConfirm:O?x?D:L:()=>{},onDismiss:()=>k(),type:e.archived_by_me_at?"unarchive":"archive"})]})})})]})}var A=Object(i.connect)(null,(function(e,t){const{isRequestedByMe:n,boardId:o}=t;return{toggle:()=>{e(n?Object(B.e)(o):Object(B.n)(o))}}}))((function(e){const t=Object(l.c)(),{isRequestedByMe:n,toggle:o,size:i}=e,r=n?t._("Cancel request","[Button] Cancel request to join a group board as a collaborator","[Button] Cancel request to join a group board as a collaborator"):t._("Join","BoardJoinButton.RequestToJoinText","[Button] Request to join a group board as a collaborator");return Object(p.jsx)(h.g,{fullWidth:!0,onClick:o,text:r,size:i})})),T=n("l70D"),L=n("88U9"),D=n("GX0+"),R=n("c+w5"),N=n("28DW");var E=({board:e,experience:t,onAddCollab:n,collaborators:r,boardOwnerId:a,canAddCollaborators:s})=>{const{userId:c}=Object(i.useSelector)(({session:e})=>e),l=Object(S.h)(),d=Object(o.useRef)(null),b=[...r.filter(({id:e})=>e===a),...r.filter(({id:e})=>e===c&&e!==a),...r.filter(({id:e})=>![a,c].includes(e))],{displayedCollaborators:u,nonDisplayedCollaboratorCount:j}=Object(L.a)({boardCollaboratorCount:e.collaborator_count,collaborators:b}),g=u.map(e=>{var t,n;return{name:null!==(t=e.username)&&void 0!==t?t:"",src:"https://s.pinimg.com/images/user/default_75.png"===e.image_medium_url?"":null!==(n=e.image_medium_url)&&void 0!==n?n:""}}),f=()=>{e.id&&l.push(s?`/board/${e.id}/edit/collaborators/`:`/board/${e.id}/collaborators/`)};return Object(p.jsxs)(h.f,{display:"flex",justifyContent:"center",flex:"none",marginTop:2,children:[j<=99?Object(p.jsx)(T.b,{addButtonRef:d,collaboratorCount:r.length-1,nonDisplayedCollaboratorCount:j,displayedCollaborators:g,onClick:()=>{var e;Object(N.i)({action:"click",page:"board",item:"user-rep-avatar"}),b.length>1||s?f():l.push(null!==(e="/"+b[0].username)&&void 0!==e?e:"/")},showAddButton:s}):Object(p.jsx)(D.a,{addButtonRef:d,nonDisplayedCollaboratorCount:j,displayedCollaborators:g,onClick:f,showAddButton:s}),Object(p.jsx)(R.a,{anchors:{4002:d.current},onCompleteByAnchor:{4002:n},experience:t,positionRelativeToAnchor:!1})]})},U=n("ihsa"),P=n("IaND"),z=n("n+mC"),F=n("lIsI");const M="BoardPageSkeletonLoader__";var H=()=>Object(p.jsxs)(o.Fragment,{children:[Object(p.jsx)(U.a,{unsafeCSS:[{name:M+"board_title",width:280,height:51},{name:M+"profile_pic",width:51,height:51}].map(({name:e,width:t,height:n})=>Object(z.a)({name:e,width:t,height:n})).join("")}),Object(p.jsxs)(h.f,{paddingX:F.a,paddingY:3,children:[Object(p.jsxs)(h.f,{display:"flex",direction:"row",justifyContent:"between",alignItems:"center",marginBottom:6,children:[Object(p.jsx)(h.f,{children:Object(p.jsx)("div",{className:M+"board_title"})}),Object(p.jsx)(h.f,{children:Object(p.jsx)("div",{className:M+"profile_pic"})})]}),Object(p.jsx)(P.a,{})]})]});const q="https://i.pinimg.com/originals/94/04/8b/94048b080ab1f22a75043b03c3fbcbe1.png";class G extends o.PureComponent{render(){const{seasonalBlob:e}=this.props,{alt:t,color:n,background_image:o=q,display:i,textColor:r="white"}=e;return Object(p.jsx)(h.f,{marginEnd:-3,marginStart:-4,height:"168px",width:"100vw",children:Object(p.jsx)(h.y,{alt:t,color:n,naturalHeight:1,naturalWidth:1,fit:"cover",src:o,children:Object(p.jsx)(h.f,{position:"relative",width:"100%",height:"100%",dangerouslySetInlineStyle:{__style:{background:"rgba(0, 0, 0, 0.03)"}},children:Object(p.jsx)(h.f,{display:"flex",flex:"grow",position:"relative",maxWidth:"71vw",left:!0,dangerouslySetInlineStyle:{__style:{paddingLeft:"14px",top:"20%"}},children:Object(p.jsx)(h.v,{color:r,children:i})})})})})}}var W=n("++39"),K=n("d6rY"),Y=n("i2lo"),X=n("JYeC"),J=n("uKg+"),$=n("NwG/"),Z=n("4kAQ"),Q=n("2NiC");function V({experience:e}){const t=Object(l.c)(),n=Object(S.i)(),{complete:o,dismiss:i}=Object(Z.m)(e);return Object(p.jsx)(C.a,{isOpen:!0,maskFadeInDuration:"0.25s",slideUpDuration:"0.5s",type:"group_board_app_upsell",onDismiss:i,children:Object(p.jsxs)(h.f,{display:"flex",direction:"column",alignItems:"center",padding:3,position:"relative",children:[Object(p.jsx)(h.f,{position:"absolute",right:!0,top:!0,children:Object(p.jsx)(h.x,{accessibilityLabel:t._("Close upsell","groupBoardAppUpsell.render.closeIconAccessibilityLabel","Accessibility label for close icon in group board app upsell"),icon:"cancel",iconColor:"gray",onClick:i,size:"xs"})}),Object(p.jsx)(h.f,{marginBottom:4,children:Object(p.jsx)(h.w,{accessibilityLabel:t._("Pinterest","groupBoardAppUpsell.render.pinterestIconAccessibilityLabel","Accessibility label for pinterest icon in group board app upsell"),color:"red",icon:"pinterest",size:30})}),Object(p.jsx)(h.f,{marginBottom:7,children:Object(p.jsx)(h.cb,{align:"center",size:"lg",weight:"bold",children:t._("Our app gives you more features that make your group boards even better.","groupBoardAppUpsell.render.text","Text in mweb group board upsell for installing pinterest app")})}),Object(p.jsx)(Q.a,{children:e=>Object(p.jsx)(h.g,{fullWidth:!0,color:"red",type:"submit",text:t._("Let’s go","groupBoardAppUpsell.renderAppButton.buttonText","Text for installing app button on app upsell in mweb group board page."),onClick:()=>{o(),e(n.pathname.substr(1))},accessibilityLabel:t._("Download the Pinterest App","groupBoardAppUpsell.renderAppButton.buttonAccessibilityLabel","Accessibility label for install app button on app upsell in mweb group board page.")})})]})})}var ee=n("D2p8"),te=n("oS0z"),ne=n("AvID"),oe=n("xKh6"),ie=n("7w6Q"),re=n("Bb4+"),ae=n("o+5w"),se=n("lnDX"),ce=n("HFJg"),le=n("QvDk"),de=n("AGnR");function be({handleGoBack:e,hideSensitivityScreen:t,sensitivityScreenAuxData:n}){const i=Object(l.c)();return Object(o.useEffect)(()=>{Object(de.e)({component:13860,event_type:13,view_type:5,aux_data:n})},[]),Object(p.jsx)(h.f,{dangerouslySetInlineStyle:{__style:{background:"rgba(0,0,0,0.8)",paddingTop:260}},display:"flex",height:"100%",justifyContent:"center",position:"fixed",top:!0,width:"100%",zIndex:new h.t(1),children:Object(p.jsxs)(h.u,{alignItems:"center",direction:"column",gap:8,maxWidth:500,children:[Object(p.jsx)(h.v,{align:"center",color:"white",children:i._("This board may contain sensitive content","board.sensitivityScreen.heading","Warning text on board that may have sensitive content")}),Object(p.jsxs)(h.u,{gap:6,children:[Object(p.jsx)(h.g,{color:"red",onClick:e,size:"lg",text:i._("Go back","board.sensitivityScreen.backButton","Text on button that lets user go back to previous page")}),Object(p.jsx)(h.g,{color:"white",onClick:t,size:"lg",text:i._("View anyway","board.sensitivityScreen.viewButton","Text on button that allows user to dismiss sensitivity screen and view board")})]}),Object(p.jsx)(h.f,{padding:4,children:Object(p.jsx)(h.cb,{align:"center",color:"white",overflow:"normal",size:"md",children:Object(b.b)(i._('If you see anything that violates our {{communityGuidelines}}, please report it to us by clicking the "..." button at the bottom of any Pin',"board.sensitivityScreen.text","Text telling user how to report a Pin"),{communityGuidelines:Object(p.jsx)("a",{href:"https://policy.pinterest.com/en/community-guidelines",target:"_blank",rel:"noreferrer",children:Object(p.jsx)(h.cb,{color:"white",inline:!0,size:"md",underline:!0,children:i._("Community Guidelines","board.sensitivityScreen.communityGuidelines","Text that links to the community guidelines page")})})})})})]})})}var ue=n("DlC4"),je=n("bP9D"),he=n("fgPB"),pe=n("hFTz"),ge=n("r8+8"),fe=n("0G5S"),Oe=n("H5qz"),me=n("PmFr"),xe=n("3/Bf"),ve=n("JiWI"),ye=n("ulr2"),we=n("QAzJ"),_e=n("pivO"),Ce=n("1xPy"),Se=n("xfna"),Ie=n("FDmi"),Be=n("eOdZ");const ke=e=>{var t,n;const o=Object(l.c)(),{user:i,invitedByUser:r,inviterFirstName:a}=e;return Object(p.jsxs)(h.f,{width:"100%",paddingX:4,paddingY:4,rounding:5,marginStart:-1,marginEnd:-1,marginBottom:3,display:"flex",direction:"row",alignItems:"center",borderStyle:"sm",children:[Object(p.jsx)(h.f,{marginTop:-3,rounding:"circle",borderStyle:"lg",dangerouslySetInlineStyle:{__style:{borderColor:"#ffffff",zIndex:-1}},children:Object(p.jsx)(h.f,{height:34,width:34,children:Object(p.jsx)(Ie.a,{name:i?i.username:"",src:i&&null!==(t=i.image_medium_url)&&void 0!==t?t:""})})}),Object(p.jsx)(h.f,{marginTop:3,marginStart:-3,rounding:"circle",borderStyle:"lg",dangerouslySetInlineStyle:{__style:{borderColor:"#ffffff",zIndex:-2}},children:Object(p.jsx)(h.f,{height:34,width:34,children:Object(p.jsx)(Ie.a,{name:r?r.username:"",src:r&&null!==(n=r.image_medium_url)&&void 0!==n?n:""})})}),Object(p.jsxs)(h.f,{marginStart:4,children:[Object(p.jsx)(h.cb,{weight:"bold",children:o._("You're in!","Text showing that a user has accepted the board invite and is now a part of the board","Text showing that a user has accepted the board invite and is now a part of the board")}),Object(p.jsx)(h.cb,{children:Object(b.b)(o._("Start collaborating with {{ invitedByUserName }} on this board"),{invitedByUserName:a})})]})]})};function Ae({boardId:e,inviteCode:t,inviterFirstName:n,invitedByUser:i,isSeamlessLanding:r,onAccept:a,showToast:s,user:c}){const d=Object(l.c)(),[b,u]=Object(o.useState)(!1),j={user:c,inviterFirstName:n,invitedByUser:i};return Object(o.useEffect)(()=>{if(a){Be.d.create("BoardInviteResource",{board_id:e,invited_user_id:c&&c.id,invite_code:t}).callGet().then(()=>{const e=a();e&&e.then(()=>{u(!0),r&&ie.a.increment("mweb.social.group_board.seamless.accepted")}).catch(e=>{s({isError:!0,text:e.message||d._("Oops! Something went wrong…","Error during board page accepting","Error during board page accepting")})})}).catch(e=>{s({isError:!0,text:e.message||d._("Oops! Something went wrong…","Error during board page accepting","Error during board page accepting")})})}},[]),b?Object(p.jsx)(ke,{...j}):null}var Te=n("eTKx"),Le=n("wlJ7"),De=n("0HhX"),Re=n("OadL"),Ne=n("ykUP"),Ee=n("RNo4");function Ue({inviteCreationDatetime:e,invitedByUser:t,inviterFirstName:n,onAccept:o,onDismiss:i}){var r;const a=Object(l.c)(),s=Object(c.a)(),d=Object(S.i)(),{showToast:u}=Object(I.c)(),j="/"+((null==t?void 0:t.username)||""),g=Object(Te.a)(),O=g({fn:({event:e})=>{e.stopPropagation&&e.stopPropagation(),i()},modalHeader:Object(Ne.h)({firstName:n,i18n:a}),nextLocation:Object(Ne.i)(d)}),m=g({fn:({event:e})=>{e.stopPropagation&&e.stopPropagation(),o(),u({duration:4e3,text:a._("You're in! Save Pins, plan with collaborators, and more!","GroupBoardInviteBanner.handleAcceptButtonClick.acceptInviteToastForAuthUser","Toast text after accepting board collaborator invite.")})},modalHeader:Object(Ne.h)({firstName:n,i18n:a}),nextLocation:Object(Ne.i)(d)});return Object(p.jsxs)(h.f,{color:"white",rounding:6,padding:6,marginTop:2,marginBottom:2,maxWidth:400,dangerouslySetInlineStyle:{__style:{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"}},display:"flex",alignItems:"start",children:[Object(p.jsx)(h.f,{marginEnd:2,children:Object(p.jsx)(f.a,{to:j,pressState:"none",children:Object(p.jsx)(Ie.a,{size:"md",name:n,src:null!==(r=null==t?void 0:t.image_large_url)&&void 0!==r?r:void 0})})}),Object(p.jsxs)(h.f,{marginBottom:0,children:[Object(p.jsx)(h.cb,{color:"darkGray",weight:"normal",children:Object(b.b)(a._("{{ name }} invited you to collaborate on this board  {{age}}","mweb.board.inviteCard.inviteCopy","Invite copy in board page"),{name:Object(p.jsx)(f.a,{to:j,pressState:"none",inline:!0,children:Object(p.jsx)(h.cb,{weight:"bold",children:" "+((null==t?void 0:t.full_name)||"")})}),age:Object(p.jsx)(h.cb,{inline:!0,color:"gray",children:e&&s(e,!0)})})}),Object(p.jsxs)(h.u,{alignItems:"stretch",justifyContent:"start",children:[Object(p.jsx)(h.f,{display:"inlineBlock",marginTop:2,marginEnd:2,children:Object(p.jsx)(h.g,{fullWidth:!0,color:"gray",text:a._("Decline","decline board collaborator invite or request","decline board collaborator invite or request"),onClick:O,size:"lg"})}),Object(p.jsx)(h.f,{display:"inlineBlock",marginTop:2,children:Object(p.jsx)(h.g,{fullWidth:!0,text:a._("Accept","accept board invite","accept board invite"),onClick:m,color:"red",size:"lg"})})]})]})]})}function Pe(){const e=Object(S.i)(),{inviter_first_name:t,board_url:n,invite_code:i}=Object(Ee.l)(e.search),[r,a]=Object(o.useState)(Boolean(t&&n)),s=Object(S.h)();return r?Object(p.jsx)(Ue,{inviterFirstName:t,onAccept:()=>{const t=Object(Ee.b)("/",{next:i?"/invited/"+e.search:n});s.push(t)},onDismiss:()=>a(!1)}):null}const ze=e=>Boolean(Object(Ee.l)(e.search).accept_invite);function Fe({boardId:e}){const t=Object(S.i)(),n=Object(i.useDispatch)(),{showToast:o}=Object(I.c)(),r=Object(i.useSelector)(({session:e})=>e.userId),{invite_code:a,seamless:s}=Object(Ee.l)(t.search),c=Object(Le.a)({board:e,invited_user:r}),l=Object(i.useSelector)(({session:e,users:t})=>t[e.userId]);Object(De.b)({name:"BoardInvitesResource",options:{current_user:!0,field_set_key:"news"}});const d=Object(i.useSelector)(e=>{var t;return(null===(t=Object(Re.l)(e)[c])||void 0===t?void 0:t.created_at)||void 0});Object(De.b)({name:"BoardInviteResource",options:{field_set_key:"boardEdit",board_id:e,invite_code:a,invited_user_id:r}});const b=Object(i.useSelector)(t=>{const n=Object(Re.n)(t)[e];return n?Object(Re.l)(t)[n]:void 0}),u=Object(i.useSelector)(e=>Object(Re.d)(e)[c]||{});if(!b||!u)return null;const j=u.first_name,h=()=>n(Object(B.a)(e,r));return ze(t)?Object(p.jsx)(Ae,{boardId:e,user:l,inviteCode:a,onAccept:h,showToast:o,inviterFirstName:j,invitedByUser:u,isSeamlessLanding:Boolean(s)}):Object(p.jsx)(Ue,{inviteCreationDatetime:d,invitedByUser:u,inviterFirstName:j,onAccept:h,onDismiss:()=>n(Object(B.i)(e,r))})}var Me=({isAuthenticated:e,boardId:t})=>e?Object(p.jsx)(Fe,{boardId:t}):Object(p.jsx)(Pe,{}),He=n("lGFD"),qe=n("bUAJ"),Ge=n("0b9w");function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ke=({boardId:e,children:t,hasFixedHeader:n,viewParameter:o})=>Object(p.jsx)(Oe.a,{children:Object(p.jsx)(ae.a,{viewType:5,viewParameter:o,objectIdStr:e,children:Object(p.jsx)(pe.a,{view:5,viewParameter:o,objectId:e,children:Object(p.jsx)(re.b,{dataLayoutShiftBoundaryId:"BoardPageContainer",hasFixedHeader:n,children:t})})})}),Ye=({board:e,children:t,experience:n,isAuthenticated:s,location:c,stickyHeaderRef:d,user:b})=>{var j,f,O,m,x;const y=Object(S.h)(),w=Object(Ce.b)(),_=Object(l.c)(),[C,I]=Object(o.useState)(!1),[T,L]=Object(o.useState)(!1),D=Object(i.useDispatch)(),{canUseNativeApp:R,boardPageSharingOptions:N}=Object(i.useSelector)(({session:e})=>e),U=Object(i.useSelector)(t=>Object(Re.c)(t,e)),P=Object(u.b)(),z=Object(ne.a)(Boolean(e.collaborated_by_me)),F={board_id:e.id,reason:(null===(j=e.sensitivity_screen)||void 0===j?void 0:j.reason)||""};s||((e,t)=>{var n;const o=Object(fe.a)(me.i),[i]=o?JSON.parse(o):[];if(!(i&&i.path===t.pathname||null!==(n=t.state)&&void 0!==n&&n.isFromNavFooterPage)){const n=e.cover_pin,o=null==n?void 0:n.pin_id,i=e.cover_images,r=n&&n.image_signature||null,a=i&&i["222x"]||null;Object(qe.d)(t.pathname,r,o,a,"board")}})(e,c);const M=t=>{t&&t.stopPropagation&&t.stopPropagation(),e.isSocialSeasonalBoard&&D(Object(ye.y)(!0,"board",e.id)),L(!0)};Object(o.useEffect)(()=>{"t"===Object(Ee.l)(c.search).open_share&&M()},[]);const H=!P&&(s||!R),{board_order_modified_at:q,follower_count:Z,pin_count:Q,isSocialSeasonalBoard:ee}=e,oe=(e.access||[]).includes("write")&&!ee,ie=Object(te.a)(e.owner),re=Object(He.c)(e.sensitivity),ae=(null===(f=e.seo_related_interests)||void 0===f?void 0:f.slice(0,5))||[];ae.sort((e,t)=>e.name&&t.name?e.name.length-t.name.length:-1);const se=Object(we.a)("mweb_board_sensitivity_screen"),he=!ie&&!z&&se().anyEnabled,[pe,Oe]=Object(o.useState)(!(null===(O=e.sensitivity_screen)||void 0===O||!O.show_warning)&&he),xe=pe?{filter:"blur(20px)"}:{},ve=ie?3069:3070;return Object(p.jsxs)(Ke,{boardId:e.id,hasFixedHeader:H,viewParameter:ve,children:[n&&Object(p.jsx)(Y.a,{experience:n,eligibleIds:[502059],children:Object(p.jsx)(V,{experience:n})}),n&&Object(p.jsx)(X.a,{experience:n}),Object(p.jsxs)(h.f,{dangerouslySetInlineStyle:{__style:xe},children:[H&&Object(p.jsx)(K.a,{position:"sticky",children:Object(p.jsx)(ge.d,{paddingY:2,children:Object(p.jsxs)(h.f,{alignItems:"center",column:12,"data-test-id":"boardHeader",display:"flex",height:"100%",ref:d,wrap:!0,children:[Object(p.jsx)(h.u,{children:Object(p.jsx)(r.a,{color:"darkGray",fallbackUrl:"/",padding:3,shouldUseFallbackUrl:ze(c),size:"sm"})}),Object(p.jsx)(h.f,{flex:"grow"}),Object(p.jsx)(h.f,{flex:"none",paddingX:2,children:Object(p.jsx)(k,{board:e,isViewerOrCollaborator:z||ie,isSensitive:re,openSendBoardModal:M,user:b})}),s&&!oe&&!ee&&Object(p.jsxs)(h.u,{alignItems:"center",justifyContent:"start",children:[!b.blocked_by_me&&e.collaborator_requests_enabled&&s&&Object(p.jsx)(h.f,{paddingX:1,flex:"none",children:Object(p.jsx)(A,{boardId:e.id,isRequestedByMe:Boolean(e.viewer_collaborator_join_requested),size:"lg"})}),Object(p.jsx)(h.f,{paddingX:1,flex:"none",children:Object(p.jsx)($.a,{disabled:b.blocked_by_me,onFollow:e=>D(Object(B.k)(e)),id:e.id,onUnfollow:e=>D(Object(B.q)(e)),size:"lg",isFollowed:e.followed_by_me,followEventType:26,unfollowEventType:27,viewParameter:3070,viewType:5,showPulsar:c.state&&c.state.showPulsar})})]})]})})}),!ee&&Object(p.jsx)(Me,{boardId:e.id,isAuthenticated:s}),s&&Object(p.jsxs)(o.Fragment,{children:[Object(p.jsx)(ue.default,{objectType:ee&&N&&"pin"===N.objectType?1:2,isOpen:ee&&N?!!N.isShareMenuOpen:T,onDismiss:t=>{t&&t.stopPropagation&&t.stopPropagation(),ee&&D(Object(ye.y)(!1,"board",e.id)),L(!1)},objectId:String(ee&&N?N.objectId:e.id)}),!ee&&C&&Object(p.jsx)(a.a,{boardCollabPermissionsSetting:ie&&e.collaborator_permissions_setting,objectType:2,isOpen:C,onDismiss:()=>I(!1),objectId:e.id})]}),ee?Object(p.jsx)(G,{seasonalBlob:{alt:null!==(m=e.name)&&void 0!==m?m:"",color:e.socialHeaderBgColor,background_image:e.socialHeaderBgImage,display:null!==(x=e.name)&&void 0!==x?x:"",textColor:e.textIconColor}}):Object(p.jsx)(h.u,{alignItems:"center",justifyContent:"start",children:Object(p.jsxs)(h.f,{"data-test-id":"board-header",column:12,marginTop:2,marginBottom:4,children:[Object(p.jsx)(h.f,{"data-test-id":"board-title",marginBottom:1,children:Object(p.jsx)(h.v,{align:"center",overflow:"breakWord",children:e.name})}),!re&&Object(p.jsx)(E,{board:e,boardOwnerId:e.owner,canAddCollaborators:ie||z&&e.collaborator_invites_enabled,canEdit:oe,collaborators:U,experience:n,onAddCollab:()=>I(!0)}),Object(p.jsx)(h.f,{display:"flex",alignItems:"center",wrap:!0,justifyContent:"center",marginTop:2,children:Object(p.jsx)(v,{boardOwnerId:e.owner,collaborators:U,collaboratorsAmount:e.collaborator_count,description:e.description})}),Object(p.jsx)(h.f,{alignItems:"center",display:"flex",justifyContent:"center",marginTop:2,"data-test-id":"board-count-info",children:Object(p.jsx)(g,{followerCount:null!=Z?Z:0,isAuthenticated:s,lastModified:q,pinCount:null!=Q?Q:0})}),Object(p.jsxs)(h.u,{alignContent:"center",alignItems:"stretch",direction:"row",justifyContent:"center",children:["secret"===e.privacy&&Object(p.jsxs)(h.f,{marginTop:2,display:"flex",direction:"row",children:[Object(p.jsx)(h.f,{marginEnd:1,children:Object(p.jsx)(ce.a,{backgroundColor:"white",iconColor:"darkGray",iconSize:16,size:16})}),Object(p.jsx)(h.cb,{color:"gray",size:"lg",children:_._("Secret board","boardPage.fixedHeader.secretBoardText","subtitle on board page for secret boards")})]}),e.archived_by_me_at&&Object(p.jsx)(h.f,{marginTop:2,display:"flex",direction:"row",children:"secret"!==e.privacy?Object(p.jsx)(h.cb,{size:"lg",align:"center",color:"gray",children:_._("Archived board","boardPage.fixedHeader.archivedBoardText","subtitle on board page for archived boards")}):Object(p.jsxs)(o.Fragment,{children:[Object(p.jsx)(h.f,{paddingX:1,children:Object(p.jsx)(h.cb,{color:"gray",children:"·"})}),Object(p.jsx)(h.cb,{size:"lg",align:"center",color:"gray",children:_._("Archived","boardPage.fixedHeader.archivedBoardAndSecretText","subtitle on board page for archived boards")})]})})]})]})}),!s&&ae.length>0&&Object(p.jsx)(je.a,{seoRelatedInterests:ae,componentStyle:"pills",isDesktop:!1}),re&&Object(He.b)(e.sensitivity)&&e.sensitivity&&Object(p.jsx)(h.f,{paddingY:2,children:Object(p.jsx)(le.a,{notice:e.sensitivity.notice||e.sensitivity.notices[0],viewType:5,viewParameter:ve,sensitivity:e.sensitivity})}),(ie||z)&&Object(p.jsx)(W.a,{boardId:e.id}),Object(p.jsx)(h.f,{children:t}),ie&&Object(p.jsx)(J.a,{boardId:e.id,surface:"board"})]}),pe&&Object(p.jsx)(h.f,{marginStart:-2,children:Object(p.jsx)(be,{handleGoBack:()=>{Object(de.e)({event_type:101,component:13860,element:73,view_type:5,aux_data:F}),w&&y.replace("/"),y.goBack()},hideSensitivityScreen:()=>{D(Object(B.d)(e.id)),Object(de.e)({event_type:101,component:13860,element:12448,view_type:5,aux_data:F}),Oe(!1)},sensitivityScreenAuxData:F})})]})};class Xe extends o.Component{constructor(...e){super(...e),We(this,"stickyHeaderRef",Object(o.createRef)()),We(this,"logScrollEvent",Object(he.a)(e=>{const t=this.props.board?this.props.board.id:0;Object(de.e)({event_type:110,view_type:5,view_parameter:3070,aux_data:{unauth_page_board_id:t}})},300))}componentDidMount(){const{board:e,dispatch:t,isAuthenticated:n,location:o,pwtStaticContext:i}=this.props;if(e){let n="other";Object(te.a)(e.owner)?n="own":Object(ne.a)(Boolean(e.collaborated_by_me))&&(n="collaborator"),t(Object(Z.h)([1000251],{board_id:e.id,board_ownership:n}))}Object(oe.a)(),n?Object(Ee.l)(o.search).seamless&&ie.a.increment("mweb.social.group_board.seamless.land"):(Object(qe.b)(o.pathname,null),window.addEventListener("scroll",this.logScrollEvent),Object(xe.d)({appLoadName:"board_page_interactive",clientNavName:"client_route_push_unauth_board"},i)),this.stickyHeaderRef&&this.stickyHeaderRef.current&&ee.c.addObstruction("top",this.stickyHeaderRef.current)}componentWillUnmount(){this.props.isAuthenticated||window.removeEventListener("scroll",this.logScrollEvent);const{board:e,boardPageSharingOptions:t,dispatch:n}=this.props;t&&t.isShareMenuOpen&&e&&e.isSocialSeasonalBoard&&n(Object(ye.y)(!1,"board",e.id)),this.stickyHeaderRef&&this.stickyHeaderRef.current&&ee.c.removeObstruction("top",this.stickyHeaderRef.current)}componentDidUpdate({board:e}){const{board:t,dispatch:n,isAuthenticated:o}=this.props;!e&&t&&t.id&&ve.a[t.id]&&n(Object(B.o)(t.id,o?"auth":"unauth"))}render(){const{board:e,i18n:t,isAuthenticated:n,user:o}=this.props;return e&&o?Object(p.jsx)(Ye,{...this.props,board:e,stickyHeaderRef:this.stickyHeaderRef}):Object(p.jsx)(h.f,{column:12,paddingY:2,children:n?Object(p.jsx)(h.U,{accessibilityLabel:t._("Loading feed"),show:!0}):Object(p.jsx)(H,{})})}}const Je=({boardId:e})=>{const{slug:t,username:n}=Object(S.j)();return Object(De.b)({name:"BoardInvitesResource",options:{...e?{board_id:e}:{username:n,slug:t},status_filters:"new,contact_request_not_approved",sort:"viewer_first",include_inactive:!0}}),null};function $e({children:e}){const t=Object(l.c)(),n=Object(Se.c)(),r=Object(S.i)(),{slug:a,username:s}=Object(S.j)(),c=Object(i.useDispatch)(),{boardPageSharingOptions:d,isAuthenticated:b}=Object(i.useSelector)(({session:e})=>e),u=`/${s||""}/${Object(Ge.b)(a||"")}/`,j=Object(i.useSelector)(e=>Object(Re.b)(e)[u]),h=Object(i.useSelector)(e=>Object(Re.s)(e)[s]),g=Object(_e.b)({id:1000251});return Object(p.jsxs)(o.Fragment,{children:[j&&(j.access||[]).includes("write")&&!j.isSocialSeasonalBoard&&Object(p.jsx)(Je,{boardId:j.id}),Object(p.jsx)(se.a,{surface:"board",measureGridVisuallyComplete:!0,children:Object(p.jsx)(Xe,{board:j,boardPageSharingOptions:d,dispatch:c,experience:g,i18n:t,isAuthenticated:b,location:r,pwtStaticContext:n,user:h,children:e})})]})}const Ze=({username:e,slug:t,getPageMetadata:n})=>({field_set_key:"profile_grid_item",is_mobile_fork:!0,username:e,slug:t,get_page_metadata:n});function Qe({children:e}){const t=Object(l.c)(),{isAuthenticated:n,isSeoBot:o}=Object(i.useSelector)(({session:e})=>e),r=Object(S.i)(),{slug:a,username:s}=Object(S.j)(),{showToast:c}=Object(I.c)(),{error:d}=Object(De.b)({name:"BoardResource",options:Ze({username:s||"",slug:Object(Ge.a)(a||"")})}),b=d?n?{pathname:r.pathname.match(/\/[^\/]*\//g),search:r.search}:{pathname:"/",search:Object(Ee.b)(r.search,{next:r.pathname})}:null,u=Object(De.b)({dangerouslyDisableFetch:o,name:"UserResource",options:{field_set_key:"profile",username:s}}),j=!o&&Object(De.a)(u);return b?(c({duration:7e3,text:n?t._("We couldn't find that Pinner's board but here are some of their other boards!","Error text when a user attempts to go to a board that doesn't exist or they don't have access to","Error text when a user attempts to go to a board that doesn't exist or they don't have access to"):t._("We can't find that board. Please log in and give it another try!","Error text when a user attempts to go to a board that doesn't exist or they don't have access to","Error text when a user attempts to go to a board that doesn't exist or they don't have access to"),isError:!0}),Object(p.jsx)(S.b,{to:b})):j?Object(p.jsx)(S.b,{to:j}):e}function Ve({children:e}){return Object(p.jsx)(Qe,{children:Object(p.jsx)($e,{children:e})})}},WQfn:function(e,t,n){n.d(t,"a",(function(){return l}));var o=n("ihsa"),i=n("+ZRO"),r=n("28DW"),a=n("n6mq"),s=n("nKUr");function c({interest:e}){var t,n,o;const{name:i,url:c,cover_image:l}=e;return l&&l["474x"]?Object(s.jsx)(a.C,{onClick:()=>{Object(r.k)("mweb.unauth.suggested_interests.plp.touch",{interest:i}),Object(r.i)({action:"click",page:"board",item:"suggested-interest-pill"})},rounding:4,href:c,hoverStyle:"none",children:Object(s.jsxs)(a.f,{display:"flex",marginBottom:2,marginEnd:1,marginStart:1,overflow:"hidden",position:"relative",rounding:4,"data-test-id":"suggested-interest-pill",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:[Object(s.jsx)(a.f,{height:128,width:128,children:Object(s.jsx)(a.D,{height:"100%",wash:!0,width:"100%",children:Object(s.jsx)(a.y,{alt:i,fit:"cover",naturalHeight:null!==(t=l["474x"].height)&&void 0!==t?t:1,naturalWidth:null!==(n=l["474x"].width)&&void 0!==n?n:1,src:null!==(o=l["474x"].url)&&void 0!==o?o:""})})}),Object(s.jsx)(a.f,{alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(0, 0, 0, 0.4)"}},display:"flex",height:128,justifyContent:"center",left:!0,position:"absolute",top:!0,width:128,children:Object(s.jsx)(a.cb,{align:"center",color:"white",size:"md",weight:"bold",children:i})})]})}):null}function l({interests:e,componentStyle:t,shouldLeftAlign:n}){const r="cluster"===t||"pills"===t,l="cluster"===t;return Object(s.jsxs)(a.f,{children:[Object(s.jsx)(o.a,{unsafeCSS:"\n  .interest-row {\n    -ms-overflow-style: none;\n    scrollbar-width: none;\n  }\n  ::-webkit-scrollbar {\n    display: none;\n  }\n"}),Object(s.jsx)("div",{className:"interest-row",children:Object(s.jsx)(a.f,{"data-test-id":"suggested-interest-container",display:"flex",marginEnd:-6,marginStart:-6,overflow:"scrollX",children:Object(s.jsxs)(a.f,{alignItems:"center",justifyContent:l&&!n?"center":void 0,display:"flex",margin:n?0:"auto",paddingX:4,paddingY:2,wrap:l,children:[!r&&e.map((e,t)=>Object(s.jsx)(c,{interest:e},t)),r&&e.map((e,t)=>Object(s.jsx)(i.a,{interest:e},t))]})})})]})}},bP9D:function(e,t,n){n.d(t,"a",(function(){return c}));var o=n("q1tI"),i=n("WQfn"),r=n("yweb"),a=n("n6mq"),s=n("nKUr");function c({seoRelatedInterests:e,componentStyle:t,isDesktop:n}){const c=Object(r.c)(),l=n;return Object(s.jsx)(a.f,{display:"flex",alignContent:"center",direction:"column","data-test-id":"suggested-interests",padding:l?0:4,marginTop:n?4:0,children:e&&e.length>0&&Object(s.jsxs)(o.Fragment,{children:[n?Object(s.jsx)(a.cb,{align:"start",weight:"bold",size:"lg",children:c._("Similar ideas popular now","unauth.plp.suggested_ideas","title on Pin Page suggesting related topics to the topic of the current pin")}):Object(s.jsx)(a.v,{align:"center",size:"sm",children:c._("Similar ideas popular now","unauth.plp.suggested_ideas","title on Pin Page suggesting related topics to the topic of the current pin")}),Object(s.jsx)(i.a,{interests:e,componentStyle:t,shouldLeftAlign:l})]})})}},"c+w5":function(e,t,n){var o=n("i2lo"),i=n("6CFY"),r=n("nKUr");t.a=({anchors:e,experience:t,idealDirection:n,onCompleteByAnchor:a={},placementId:s,positionRelativeToAnchor:c,touchToDismiss:l,useMasonryFlyout:d})=>Object(r.jsx)(o.a,{experience:t,placementId:s,predicate:t=>{const{display_data:n,placement_id:o}=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:i}=t.web_mobile;return i===o&&n in e}}return!1},children:({complete:t,dismiss:o,experience:s})=>Object(r.jsx)(i.a,{anchors:e,complete:()=>t(1),dismiss:o,displayData:null==s?void 0:s.display_data,idealDirection:n,onCompleteByAnchor:a,platform:"web_mobile",positionRelativeToAnchor:c,touchToDismiss:l,useMasonryFlyout:d})})},d6rY:function(e,t,n){n.d(t,"a",(function(){return c}));var o=n("q1tI"),i=n("H5qz"),r=n("n6mq"),a=n("nKUr");const s={boxShadow:"0px 8px 8px -8px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"};function c({children:e,forwardRef:t,position:n="static",shouldShowShadow:c=!1,top:l}){const{currentScrollPosition:d,isScrolled:b,setSubheaderShadow:u}=Object(i.b)();Object(o.useEffect)(()=>(c&&u("contentHeader"),()=>{c&&u(null)}),[c]);let j=!1;"pending"!==l&&(j=null!=l?d>=l:b);const h=Object(a.jsx)(r.f,{ref:t,dangerouslySetInlineStyle:{__style:{position:n,...j&&c&&{...s,zIndex:499}}},children:e});return"sticky"===n?Object(a.jsx)(r.W,{top:0,children:h}):h}},l70D:function(e,t,n){n.d(t,"a",(function(){return l}));var o=n("q1tI"),i=n("yweb"),r=n("qpbZ"),a=n("pLLR"),s=n("n6mq"),c=n("nKUr");const l=48,d=Object(o.forwardRef)((e,t)=>{const{addButtonRef:n,collaboratorCount:o,nonDisplayedCollaboratorCount:d,displayedCollaborators:b,onClick:u,showAddButton:j}=e,h=Object(i.c)(),{isRTL:p}=Object(a.d)(),g=b.map(e=>e.name);let f="";switch(d?"default":g.length){case 3:f=Object(r.c)(h._("{{ first }}, {{ second }}, and {{ last }}","BoardAvatarGroup.AvatarGroup.accessibilityLabel.usernames.ThreeAvatars","List of three usernames"),{first:""+g[0],second:""+g[1],last:""+g[2]});break;case 2:f=Object(r.c)(h._("{{ first }} and {{ second }}","BoardAvatarGroup.AvatarGroup.accessibilityLabel.usernames.TwoAvatars","List of two usernames."),{first:""+g[0],second:""+g[1]});break;default:f=g.join(", ")}const O=d?Object(r.c)(h.ngettext("Collaborators: {{ userNames }} and {{ leftCount }} more.","Collaborators: {{ userNames }} and {{ leftCount }} more.",d,"BoardAvatarGroup.AvatarGroup.accessibilityLabel.aboveTwoCollaborators","Accessibility label that lists the names of collaborators and a final count of non-displayed avatars"),{userNames:f,leftCount:""+d}):Object(r.c)(h._("Collaborators: {{ userNames }}.","BoardAvatarGroup.AvatarGroup.accessibilityLabel.notAboveTwoCollaborators","Accessibility label that lists the names of collaborators"),{userNames:f}),m=b.length>1?[...b,...Array(d).fill({name:"",src:""})]:b,x=(b.length>1||0===o)&&j,v=h._("Invite collaborators.","BoardAvatarGroup.AvatarGroup.accessibilityLabel.inviteCollaborators","It informs the users that they can invite other collaborators.");return Object(c.jsxs)(s.f,{position:"relative",rounding:"pill","data-test-id":"user-rep-avatar",children:[x?Object(c.jsx)(s.f,{height:l,position:"absolute",left:p,ref:n,right:!p,rounding:"circle",top:!0,width:l}):null,Object(c.jsx)(s.c,{accessibilityLabel:x?`${O} ${v}`:""+O,addCollaborators:x,collaborators:m,onClick:u,ref:t,role:"button",size:"md"})]})});d.displayName="BoardAvatarGroup",t.b=d},lGFD:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r}));const o={ABUSIVE:0,SENSITIVE:1,BRAND_UNSAFE:2};function i(e){return null!=e&&(!!e.notice||!!e.notices&&e.notices.length>0)}function r(e){return!!e&&e.severity===o.ABUSIVE}},"uKg+":function(e,t,n){n.d(t,"a",(function(){return a}));var o=n("MSUY"),i=n("n6mq"),r=n("nKUr");function a({boardId:e,surface:t}){return Object(r.jsx)(i.f,{bottom:!0,marginBottom:4,position:"fixed",rounding:"circle",width:56,dangerouslySetInlineStyle:{__style:{boxShadow:"0px 0px 20px rgba(0, 0, 0, 0.1)",left:"50%",right:"50%",transform:"translate(-50%)"}},children:Object(r.jsx)(o.b,{boardId:e,bgColor:"white",iconButtonColor:"darkGray",iconButtonSize:"xl",buttonPadding:4,viewType:"board"===t?5:164,elementType:10643})})}},xKh6:function(e,t,n){var o=n("eOdZ");var i=e=>o.d.create("InviteAttributionResource",{invite_code:e}).callCreate(),r=n("RNo4");t.a=(e=(e=>{}))=>{const t=Object(r.l)(window.location.search),n=t.invite_code;n?i(n):e(t)}}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/243-7217d3927ea1c8c2686e.mjs.map