(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[109,608],{"+wdc":function(e,t,n){var r,o,i,a;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,d=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(f,0),n}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(f,0))},o=function(e,t){d=setTimeout(e,t)},i=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,b=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,y=-1,j=5,v=0;t.unstable_shouldYield=function(){return t.unstable_now()>=v},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,w=_.port2;_.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();v=e+j;try{g(!0,e)?w.postMessage(null):(m=!1,g=null)}catch(n){throw w.postMessage(null),n}}else m=!1},r=function(e){g=e,m||(m=!0,w.postMessage(null))},o=function(e,n){y=p((function(){e(t.unstable_now())}),n)},i=function(){b(y),y=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function x(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>C(a,n))void 0!==c&&0>C(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>C(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],E=[],P=1,I=null,T=3,A=!1,$=!1,B=!1;function M(e){for(var t=x(E);null!==t;){if(null===t.callback)S(E);else{if(!(t.startTime<=e))break;S(E),t.sortIndex=t.expirationTime,O(k,t)}t=x(E)}}function F(e){if(B=!1,M(e),!$)if(null!==x(k))$=!0,r(R);else{var t=x(E);null!==t&&o(F,t.startTime-e)}}function R(e,n){$=!1,B&&(B=!1,i()),A=!0;var r=T;try{for(M(n),I=x(k);null!==I&&(!(I.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=I.callback;if("function"==typeof a){I.callback=null,T=I.priorityLevel;var s=a(I.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?I.callback=s:I===x(k)&&S(k),M(n)}else S(k);I=x(k)}if(null!==I)var c=!0;else{var l=x(E);null!==l&&o(F,l.startTime-n),c=!1}return c}finally{I=null,T=r,A=!1}}var D=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){$||A||($=!0,r(R))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(k)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>s?(e.sortIndex=a,O(E,e),null===x(k)&&e===x(E)&&(B?i():B=!0,o(F,a-s))):(e.sortIndex=c,O(k,e),$||A||($=!0,r(R))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"0K1N":function(e,t,n){t.a=e=>`//connect.facebook.net/${(e=>{const t=e.replace(/-/g,"_");if(t.startsWith("es"))return"es_LA";if(t.startsWith("ar"))return"ar_AR";switch(t){case"de":return"de_DE";case"fr":return"fr_FR";case"it":return"it_IT";case"ja":return"ja_JP";case"nl":return"nl_NL";case"tr":return"tr_TR";case"en_AU":return"en_US";default:return t}})(e)}/sdk.js`},"2hay":function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"c",(function(){return b}));var r=n("0K1N"),o=n("37no");const i="274266067164",a=["picture.type(large)","id","first_name","last_name","email","gender","birthday"],s=["public_profile","email","user_birthday","user_friends"],c=()=>{"undefined"!=typeof window&&window.FB&&window.FB.init({appId:i,status:!0,xfbml:!0,version:"v2.7"})},l=e=>Object(o.c)(Object(r.a)(e),o.a.FACEBOOK).then(c),u=()=>new Promise(e=>{"undefined"!=typeof window&&window.FB&&window.FB.getLoginStatus(e)}),d=(e,t={},n)=>new Promise((r,o)=>{if("connected"===e.status){n&&n("success");const{authResponse:{userID:o,accessToken:i}}=e,s={facebook_id:o,facebook_token:i,facebook_autologin:t.autologin||!1},c="/me?fields="+a.join(",");window.FB.api(c,e=>{r({creds:s,data:{...e,...s,...e.picture&&!e.picture.data.is_silhouette?{image_url:e.picture.data.url}:{}}})})}else{const t=e.status||"unknown";n&&n("failure."+t),o({status:t})}}),f=(e,t)=>{const n=e.data;e.isTrusted&&"string"==typeof n&&0===n.indexOf("_FB_")&&-1!==n.indexOf("type=login_button_dialog_open")&&t&&t("facebook_connect.login_button_dialog_open")},p=()=>new Promise(e=>{window.FB.login(e,{scope:s.join(",")})}).then(d),b=e=>new Promise((t,n)=>{window.FB.api("/me/permissions",r=>{const o=r.data;if(o){const n=o.find(t=>t.permission===e&&"granted"===t.status);return t({hasPerm:!!n})}return n(Error("Failed to call facebook to get permission"))})})},"2mql":function(e,t,n){var r=n("r36Y"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,b=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(b){var o=p(n);o&&o!==b&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=c(t),h=c(n),m=0;m<a.length;++m){var g=a[m];if(!(i[g]||r&&r[g]||h&&h[g]||s&&s[g])){var y=f(n,g);try{l(t,g,y)}catch(j){}}}}return t}},"2oSX":function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"g",(function(){return f}));var r=n("8ThB"),o=n("28DW");let i;const a=()=>{const e=i.getState().session;if(!e.isMobile&&!e.isTablet)return"desktop";switch(e.userAgentPlatform){case"ios":return"iphone";case"android":return e.isTablet?"android_tablet":"android";case"ipad":return"ipad";default:return"mobile_other"}},s=(e,t)=>{const n=4===t?3456:3455;return e===r.b?n:3050},c=({action:e,type:t,isCrossDomain:n,isMultipleAccounts:r,trigger:i})=>{Object(o.l)(`new_mweb_${e}.${a()}${r?".multipleAccounts":""}`,{referrer:Object(o.d)(),type:t,cctld:n}),Object(o.a)(`mweb_${e}.${a()}.${Object(o.d)()}.${t}${n?".cctld":""}${r?".multipleAccounts":""}`),Object(o.g)({action:e,event:"success",type:t,trigger:i})},l=({action:e,type:t,error:n,isCrossDomain:r,isMultipleAccounts:i,trigger:s})=>{const c=i?".multipleAccounts":"",l=r?".cctld":"",u={type:t};Object(o.l)(`new_mweb_${e}_error.${a()}${c}${l}`,u),Object(o.k)(`mweb_${e}_error.${a()}.${Object(o.d)()}.${t}${l}${c}`,{error:n}),Object(o.g)({action:e,event:"fail",type:t,trigger:s})},u=({action:e,placement:t,isAuthenticated:n})=>{Object(o.a)(`mweb_${e}.${String(t)}.is_auth_${String(n)}`)},d=e=>{i=e},f=e=>{Object(o.a)(e)}},"37no":function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var r=n("7w6Q");const o=.01,i=Object.freeze({OTHER:0,FACEBOOK:1,GPLUS_ONE:2,GSI:3});function a(e){return new Promise((t,n)=>{if(document.querySelector(`script[src="${e}"]`))return void t();const r=document.createElement("script");r.src=e,r.async=!0,r.addEventListener("load",t),r.addEventListener("error",n),document.getElementsByTagName("head")[0].appendChild(r)})}function s(e,t=i.OTHER,n=!1){const a=n?"web":"mweb";return new Promise((n,s)=>{if(document.querySelector(`script[src="${e}"]`)){let e=0;if(t===i.GPLUS_ONE)if(window.gapi)n();else{const t=setInterval(()=>{window.gapi||20===e?(clearInterval(t),n()):(e+=1,r.a.increment(`${a}.loadScript.gplus_one.tries_${e}`,o))},100)}else if(t===i.FACEBOOK)if(window.FB)n();else{const t=setInterval(()=>{window.FB||20===e?(clearInterval(t),n()):(e+=1,r.a.increment(`${a}.loadScript.facebook.tries_${e}`,o))},100)}else if(t===i.GSI)if(window.google)n();else{const t=setInterval(()=>{window.google||20===e?(clearInterval(t),n()):(e+=1,r.a.increment(`${a}.loadScript.gsi.tries_${e}`,o))},100)}else n()}else{const t=document.createElement("script");t.src=e,t.async=!0,t.addEventListener("load",n),t.addEventListener("error",s),document.getElementsByTagName("head")[0].appendChild(t)}})}},"7XhJ":function(e,t,n){var r=n("q1tI"),o=n("/MKj"),i=n("FDmi"),a=n("fgXV"),s=n("6adH"),c=n("ANjH"),l=n("OadL"),u=n("wlJ7"),d=n("go3G"),f=n("yweb"),p=n("n6mq"),b=n("nKUr");function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends r.PureComponent{constructor(...e){var t;super(...e),t=this,h(this,"state",{isSent:!1}),h(this,"onInlineSend",(async function(){const{inviteCollaborator:e,viewingUser:{id:n},boardId:r,recipient:{id:o},showToast:i}=t.props;t.setState({isSent:!0});try{await e(r,o,n),i({text:t.props.i18n._("1 invite sent!","BoardCollabSuggestionCell.onInlineSend.confirmationToast","Toast message after sending out an invitation to collaborate on a board.")})}catch(a){t.setState({isSent:!1}),i({isError:!0,text:a.message||t.props.i18n._("Sorry! There was an error adding collaborators","Toast for adding collaborator error","Toast for adding collaborator error")})}}))}render(){const{invite:e,legoBoardModalsEnabled:t,recipient:n}=this.props,{isSent:r}=this.state,o=!(!r&&!e);return Object(b.jsxs)(p.f,{position:"relative",direction:"row",display:"flex",width:"100%",alignItems:"center",paddingY:2,children:[Object(b.jsx)(p.f,{children:Object(b.jsx)(i.a,{size:"md",src:n.image_large_url,name:n.full_name})}),Object(b.jsx)(p.f,{paddingX:2,flex:"grow",children:t?Object(b.jsxs)(p.f,{children:[Object(b.jsx)(p.v,{size:"sm",lineClamp:1,children:n.full_name}),Object(b.jsx)(p.cb,{color:"gray",size:"sm",lineClamp:1,children:n.username})]}):Object(b.jsx)(p.cb,{weight:"bold",lineClamp:1,children:n.full_name})}),Object(b.jsx)(p.f,{right:!0,flex:"none",marginStart:2,children:o?Object(b.jsx)(p.f,{marginEnd:2,children:Object(b.jsx)(p.cb,{size:"lg",color:"gray",weight:"bold",children:this.props.i18n._("Invited","Disabled button after a user invites someone else","Disabled button after a user invites someone else")})}):Object(b.jsx)(p.g,{disabled:o,size:"lg",color:"red",text:this.props.i18n._("Invite","Button to invite a contact to collaborate on a group board","Button to invite a contact to collaborate on a group board"),onClick:()=>{this.onInlineSend()}})})]})}}var g=Object(c.compose)(s.a,Object(a.a)({name:"BoardInviteResource",key:"resource",options:e=>({board_id:e.boardId,invited_user_id:e.recipient.id}),mapState:(e,t)=>{const n=Object(u.a)({board:t.boardId,invited_user:t.recipient.id});return{invite:Object(l.l)(e)[n]}}}),Object(o.connect)((e,t)=>({viewingUser:e.users[e.session.userId]}),(e,t)=>({inviteCollaborator:(t,n,r)=>e(Object(d.l)(t,[n],r))})))((function(e){const t=Object(f.c)();return Object(b.jsx)(m,{...e,i18n:t})})),y=n("1Mlj"),j=n("HKT2"),v=n("7w6Q"),_=n("eOdZ"),w=n("DzJC"),O=n.n(w),x=n("zmYE"),S=n("AGnR");function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k={boxShadow:"0 6px 8px -4px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"};class E extends r.PureComponent{constructor(e){super(e),C(this,"state",{value:"",showScrollShadow:!1,defaultSuggestions:[]}),C(this,"onSearchChange",({value:e})=>{const{userId:t,searchContacts:n}=this.props,r={options:{user:t,term:e}};this.setState({value:e},n(r))}),C(this,"getContactSuggestions",()=>{const{suggestions:e,userId:t,users:n}=this.props,{value:r,defaultSuggestions:o}=this.state;if(!r)return o.filter(e=>n[e.id])||[];const i=`share-suggestions:${t}:${r}`,a=`share-suggestions:${t}:${r.slice(0,-1)}`;return e[i]||e[a]||[]}),C(this,"renderContactSuggestions",()=>{const{fetching:e,users:t,boardId:n,legoBoardModalsEnabled:r,userId:o,isFullHeight:i}=this.props,a=this.getContactSuggestions(),s=Math.min(a.length,4),c=i?"100%":`calc(8.5vh * ${s})`;return e?Object(b.jsx)(p.f,{paddingY:2,height:c,children:Object(b.jsx)(p.U,{show:!0,accessibilityLabel:this.props.i18n._("Searching for contacts","Placeholder text for spinner on share menu","Placeholder text for spinner on share menu")})}):0===a.length?i&&Object(b.jsx)(p.f,{marginTop:4,children:Object(b.jsx)(p.cb,{align:"center",children:this.props.i18n._("Sorry, we can't find anyone by that name.","Text to show empty state when a contact can not be found","Text to show empty state when a contact can not be found")})}):Object(b.jsx)(p.f,{height:c,children:a.map(e=>Object(b.jsx)(g,{boardId:n,legoBoardModalsEnabled:r,recipient:t[e.id],userId:o},e.id))})}),this.scrollerRef=Object(r.createRef)()}componentDidUpdate(e){const{fetching:t}=e,{value:n}=this.state,r=t&&!this.props.fetching,o=this.getContactSuggestions();if(!n&&r){const e=o.length>0?7511:7512;Object(S.e)({event_type:e,view_type:5,view_parameter:3059})}}componentDidMount(){_.d.create("ShareSuggestionsResource",{suggestion_type:"group_board"}).callGet().then(e=>{var t;const n=null===(t=e.resource_response)||void 0===t?void 0:t.data;this.setState({defaultSuggestions:n})}).catch(e=>{v.a.increment("mweb_share_menu_load_suggestions.fail.board_invite",1)})}render(){const{showScrollShadow:e}=this.state,{isFullHeight:t,expandContactsList:n}=this.props,r=O()(()=>{const e=this.scrollerRef.current;e&&!Number.isNaN(e.scrollTop)&&this.setState({showScrollShadow:e.scrollTop>0})},100);return Object(b.jsxs)(p.f,{color:"white",display:"flex",direction:"column",paddingX:0,height:"90%",children:[Object(b.jsx)(p.f,{paddingY:2,color:"white",paddingX:4,dangerouslySetInlineStyle:{__style:e?k:null},children:Object(b.jsx)(j.a,{accessibilityLabel:this.props.i18n._("search contact","Accessibility label for searchbar on share menu","Accessibility label for searchbar on share menu"),id:"contactsSuggestSearchField",onChange:this.onSearchChange,onFocus:n,placeholder:this.props.i18n._("Search by name or email","Placeholder text for searchbar on share menu","Placeholder text for searchbar on share menu"),value:this.state.value,autoFocus:t})}),Object(b.jsx)(p.f,{display:"flex",direction:"column",paddingY:1,overflow:"scrollY",paddingX:4,onScroll:r,ref:this.scrollerRef,children:this.renderContactSuggestions()})]})}}var P=Object(a.a)({name:"ShareSuggestionsTypeaheadResource",key:"shareSuggestionsTypeaheadResource",options:({userId:e})=>({term:"",user:e}),mapState:(e,t)=>({conversations:e.conversations,fetching:Object.keys(e.resources.ShareSuggestionsTypeaheadResource||{}).some(t=>e.resources.ShareSuggestionsTypeaheadResource[t].fetching),suggestions:Object(l.p)(e,t),userId:e.session.userId,users:e.users}),mapDispatch:e=>({searchContacts:t=>{Object(y.a)(e(Object(x.e)("ShareSuggestionsTypeaheadResource",t)),200)}})})((function(e){const t=Object(f.c)();return Object(b.jsx)(E,{...e,i18n:t})})),I=n("lnd8"),T=n("hynY"),A=n("U8BH"),$=n("k30i"),B=n("H0yz"),M=n("mp1x"),F=n("WM6B"),R=n("u8aF"),D=n("6B7f"),L=n("QAzJ"),N=n("2hay"),z=n("EC67");function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const q=({text:e})=>Object(b.jsx)(p.cb,{align:"center",size:"sm",children:Object(b.jsx)(F.a,{maxWidthPx:70,maxHeightPx:30,children:e})}),K=({heading:e,legoBoardModalsEnabled:t,onDismiss:n})=>{const r=Object(f.c)();return Object(b.jsxs)(p.u,{alignItems:"center",flex:"grow",justifyContent:"start",children:[Object(b.jsx)(p.f,{display:"flex",alignItems:"center",padding:2,children:Object(b.jsx)(p.x,{accessibilityLabel:r._("Close","close share menu","close share menu"),icon:"cancel",onClick:n,size:t?"lg":"sm",iconColor:"darkGray",padding:4})}),Object(b.jsx)(p.f,{display:"flex",flex:"grow",alignItems:"center",justifyContent:"center",marginEnd:12,children:Object(b.jsx)(p.cb,{align:"center",weight:"bold",children:Object(b.jsx)("span",{className:"deprecatedTextSizeXL",children:e})})})]})},H=({children:e,isOpen:t,legoBoardModalsEnabled:n,onDismiss:r,shouldRenderFullHeight:o})=>{const i=Object(f.c)(),a=i._("Invite collaborators","mweb.inviteSheet.header.label","Heading for the add collaborators sharesheet"),s={accessibilityCloseIconLabel:i._("close send modal"),heading:a,isOpen:t,legoBoardModalsEnabled:n,onDismiss:r,type:"board_collab_share_menu",childPaddingY:0,childPaddingX:0};return o?Object(b.jsxs)(A.a,{isOpen:t,onDismiss:r,pauseImpression:!1,children:[Object(b.jsx)(K,{heading:a,legoBoardModalsEnabled:n,onDismiss:r}),e]}):Object(b.jsx)(M.a,{...s,children:e})};class W extends r.PureComponent{constructor(...e){super(...e),U(this,"state",{invitePath:"",inviteCode:null,Clipboard:null,fbLoaded:!1}),U(this,"setClipboard",e=>{const{Clipboard:t}=this.state;if(this.copyButtonRef=e,!e||!t)return;const n=new t(e,{text:()=>this.state.invitePath});n.on("success",e=>{this.showCopyToast(e)}),n.on("error",e=>{throw new Error("<ShareMenu /> error: copy command failed")})}),U(this,"handleSelect",e=>{const t=e.currentTarget;this.isiOS()&&this.state.invitePath?t.setSelectionRange(0,this.state.invitePath.length):t.select()}),U(this,"handleFocus",e=>{this.isiOS()||e.currentTarget.select()}),U(this,"showCopyToast",e=>{this.logShare(12),this.props.onDismiss(e),this.props.showToast({text:this.props.i18n._("Copied link to your clipboard to share","url link was copied to user clipboard","url link was copied to user clipboard")})}),U(this,"handleMessengerClick",()=>{this.logShare(6),this.fetchFreshInviteCode(6)}),U(this,"handleTwitterClick",()=>{this.logShare(9),this.fetchFreshInviteCode(9)}),U(this,"handleWhatsappClick",()=>{this.logShare(10),this.fetchFreshInviteCode(10)}),U(this,"handleFacebookClick",e=>{e.preventDefault();const{inviteCode:t,invitePath:n,fbLoaded:r}=this.state;r&&window.FB.ui({method:"share",mobile_iframe:!0,href:n},e=>{e&&!e.error_message&&this.logShare(5,t)}),this.fetchFreshInviteCode(5)}),U(this,"copyButtonRef",null)}componentDidMount(){this.fetchFreshInviteCode(12),Object(N.f)("en_US").then(()=>{this.setState({fbLoaded:!0})}),n.e("clipboardLibrary").then(n.t.bind(null,"sxGJ",7)).then(({default:e})=>{e.isSupported()&&(this.setState({Clipboard:e}),this.setClipboard(this.copyButtonRef))}),Object(S.e)({event_type:7120,view_type:5,view_parameter:3059})}componentDidUpdate({objectId:e}){const{objectId:t}=this.props;e!==t&&this.fetchFreshInviteCode(12)}fetchFreshInviteCode(e){const{objectId:t,objectType:n}=this.props;_.d.create("CreateExternalInviteResource",{invite_type:{invite_category:4,invite_object:n,invite_channel:e},object_id:t}).callCreate().then(e=>{const t=e.resource_response.data,n=t.invite_url,r=t.invite_code;n&&this.setState({invitePath:n}),r&&this.setState({inviteCode:r})})}isiOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}logShare(e,t=this.state.inviteCode){const{objectId:n,objectType:r}=this.props;_.d.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:4,invite_object:r,invite_channel:e},invite_code:t,object_id:n}).callCreate()}render(){const{boardCollabPermissionsSetting:e,history:t,legoBoardModalsEnabled:n,objectId:o,onExpand:i,shouldRenderFullHeight:a}=this.props,{invitePath:s}=this.state,c=`fb-messenger://share/?link=${encodeURIComponent(s)}&app_id=${N.a}`,l="twitter://post?message="+encodeURIComponent(s),u="whatsapp://send?text="+encodeURIComponent(s),d=({children:e,marginEnd:t})=>Object(b.jsx)(p.f,{display:"flex",direction:"column",width:n?void 0:78,marginEnd:t,children:e}),f=({children:e})=>Object(b.jsx)(p.f,{display:"flex",justifyContent:"center",paddingX:n?void 0:3,children:e}),h=this.props.i18n._("Copy link","Copy link icon","Copy link icon"),m=this.props.i18n._("Messenger","Facebook Messenger App","Facebook Messenger App"),g=n?"44":"48";return Object(b.jsxs)(r.Fragment,{children:[!a&&Object(b.jsxs)(p.f,{children:[Object(b.jsx)(p.f,{height:4}),[0,1].includes(e)&&Object(b.jsx)(p.bb,{onTap:()=>t.push(`/board/${o}/permissions`),children:Object(b.jsxs)(p.f,{marginBottom:8,paddingX:4,children:[Object(b.jsx)(p.f,{paddingY:2,children:Object(b.jsx)(p.cb,{size:"sm",children:this.props.i18n._("Collaborators can...","boardEdit.EditCollaborators","Text before showing collaborator permissions on a board")})}),Object(b.jsxs)(p.u,{alignItems:"start",justifyContent:"between",children:[Object(b.jsx)(p.f,{width:"60%",children:Object(b.jsx)(I.a,{setting:e})}),Object(b.jsx)(p.w,{accessibilityLabel:this.props.i18n._("See permission options","boardEdit.EditCollaborators","accessibility label on button"),icon:"arrow-forward"})]})]})}),Object(b.jsxs)(p.f,{display:"flex",justifyContent:"around",marginStart:4,marginEnd:4,overflow:"scrollX",width:"100%",children:[Object(b.jsxs)(d,{marginEnd:2,children:[Object(b.jsx)(f,{children:Object(b.jsx)(p.f,{ref:this.setClipboard,children:Object(b.jsx)($.a,{size:g,color:"#333333"})})}),Object(b.jsx)(q,{text:h})]}),Object(b.jsxs)(d,{marginEnd:2,children:[Object(b.jsx)(f,{children:Object(b.jsx)("a",{href:c,onClick:this.handleMessengerClick,children:Object(b.jsx)(B.a,{size:g})})}),Object(b.jsx)(q,{text:m})]}),Object(b.jsxs)(d,{marginEnd:2,children:[Object(b.jsx)(f,{children:Object(b.jsx)("a",{href:u,onClick:this.handleWhatsappClick,children:Object(b.jsx)(D.a,{size:g})})}),Object(b.jsx)(q,{text:this.props.i18n._("WhatsApp","WhatsApp App","WhatsApp App")})]}),Object(b.jsxs)(d,{marginEnd:2,children:[Object(b.jsx)(f,{children:Object(b.jsx)("a",{href:"#",onClick:this.handleFacebookClick,children:Object(b.jsx)(T.a,{size:g})})}),Object(b.jsx)(q,{text:this.props.i18n._("Facebook","Facebook App","Facebook App")})]}),Object(b.jsxs)(d,{children:[Object(b.jsx)(f,{children:Object(b.jsx)("a",{href:l,onClick:this.handleTwitterClick,children:Object(b.jsx)(R.a,{size:g})})}),Object(b.jsx)(q,{text:this.props.i18n._("Twitter","Twitter App","Twitter App")})]})]}),Object(b.jsx)(p.f,{height:16})]}),Object(b.jsx)(P,{boardId:o,expandContactsList:i,isFullHeight:a,legoBoardModalsEnabled:n})]})}}const Y=Object(c.compose)(z.l,s.a)((function(e){const t=Object(f.c)();return Object(b.jsx)(W,{...e,i18n:t})}));t.a=({boardCollabPermissionsSetting:e,isOpen:t,onDismiss:n,objectId:o,objectType:i})=>{const[a,s]=Object(r.useState)(!1),c=Object(L.a)("mweb_board_modals")().anyEnabled,l=e=>{a&&!c?s(!1):n(e)};return Object(b.jsx)(H,{isOpen:t,legoBoardModalsEnabled:c,onDismiss:l,shouldRenderFullHeight:a||c,children:Object(b.jsx)(Y,{boardCollabPermissionsSetting:e,legoBoardModalsEnabled:c,objectId:o,objectType:i,onDismiss:l,onExpand:()=>s(!0),shouldRenderFullHeight:a||c})})}},"8ThB":function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));const r=0,o=1},Copi:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case c:case s:case b:return e;default:switch(e=e&&e.$$typeof){case u:case p:case l:return e;default:return t}}case m:case h:case i:return t}}}function y(e){return g(e)===f}t.typeOf=g,t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=h,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=b,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===c||e===s||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p)},t.isAsyncMode=function(e){return y(e)||g(e)===d},t.isConcurrentMode=y,t.isContextConsumer=function(e){return g(e)===u},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return g(e)===p},t.isFragment=function(e){return g(e)===a},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===h},t.isPortal=function(e){return g(e)===i},t.isProfiler=function(e){return g(e)===c},t.isStrictMode=function(e){return g(e)===s},t.isSuspense=function(e){return g(e)===b}},MKeS:function(e,t,n){n.d(t,"b",(function(){return k}));var r=n("q1tI"),o=n.n(r);function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=n("TOwV"),l=n("2mql"),u=n.n(l);function d(e,t){if(!e){var n=new Error("loadable: "+t);throw n.framesToPop=1,n.name="Invariant Violation",n}}function f(e){console.warn("loadable: "+e)}var p=o.a.createContext();function b(e){return e+"__LOADABLE_REQUIRED_CHUNKS__"}var h={initialChunks:{}},m="PENDING",g="REJECTED";var y=function(e){return e};function j(e){var t=e.defaultResolveComponent,n=void 0===t?y:t,r=e.render,l=e.onLoad;function f(e,t){void 0===t&&(t={});var f=function(e){return"function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),b={};function y(e){return t.cacheKey?t.cacheKey(e):f.resolve?f.resolve(e):"static"}function j(e,r,o){var i=t.resolveComponent?t.resolveComponent(e,r):n(e);if(t.resolveComponent&&!Object(c.isValidElementType)(i))throw new Error("resolveComponent returned something that is not a React component!");return u()(o,i,{preload:!0}),i}var v,_=function(e){var n,o;function c(n){var r;return(r=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:y(n)},d(!n.__chunkExtractor||f.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===t.ssr||(f.requireAsync(n).catch((function(){return null})),r.loadSync(),n.__chunkExtractor.addChunk(f.chunkName(n))),s(r)):(!1!==t.ssr&&(f.isReady&&f.isReady(n)||f.chunkName&&h.initialChunks[f.chunkName(n)])&&r.loadSync(),r)}o=e,(n=c).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o,c.getDerivedStateFromProps=function(e,t){var n=y(e);return a({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var u=c.prototype;return u.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===g&&this.setCache(),this.state.loading&&this.loadAsync()},u.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},u.componentWillUnmount=function(){this.mounted=!1},u.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},u.getCacheKey=function(){return y(this.props)},u.getCache=function(){return b[this.getCacheKey()]},u.setCache=function(e){void 0===e&&(e=void 0),b[this.getCacheKey()]=e},u.triggerOnLoad=function(){var e=this;l&&setTimeout((function(){l(e.state.result,e.props)}))},u.loadSync=function(){if(this.state.loading)try{var e=j(f.requireSync(this.props),this.props,O);this.state.result=e,this.state.loading=!1}catch(t){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:f.resolve(this.props),chunkName:f.chunkName(this.props),error:t?t.message:t}),this.state.error=t}},u.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then((function(t){var n=j(t,e.props,{Loadable:O});e.safeSetState({result:n,loading:!1},(function(){return e.triggerOnLoad()}))})).catch((function(t){return e.safeSetState({error:t,loading:!1})})),t},u.resolveAsync=function(){var e=this,t=this.props,n=(t.__chunkExtractor,t.forwardedRef,i(t,["__chunkExtractor","forwardedRef"])),r=this.getCache();return r||((r=f.requireAsync(n)).status=m,this.setCache(r),r.then((function(){r.status="RESOLVED"}),(function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:f.resolve(e.props),chunkName:f.chunkName(e.props),error:t?t.message:t}),r.status=g}))),r},u.render=function(){var e=this.props,n=e.forwardedRef,o=e.fallback,s=(e.__chunkExtractor,i(e,["forwardedRef","fallback","__chunkExtractor"])),c=this.state,l=c.error,u=c.loading,d=c.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===m)throw this.loadAsync();if(l)throw l;var f=o||t.fallback||null;return u?f:r({fallback:f,result:d,options:t,props:a({},s,{ref:n})})},c}(o.a.Component),w=(v=_,function(e){return o.a.createElement(p.Consumer,null,(function(t){return o.a.createElement(v,Object.assign({__chunkExtractor:t},e))}))}),O=o.a.forwardRef((function(e,t){return o.a.createElement(w,Object.assign({forwardedRef:t},e))}));return O.preload=function(e){f.requireAsync(e)},O.load=function(e){return f.requireAsync(e)},O}return{loadable:f,lazy:function(e,t){return f(e,a({},t,{suspense:!0}))}}}var v=j({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return o.a.createElement(t,n)}}),_=v.loadable,w=v.lazy,O=j({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,n=e.props;return n.children?n.children(t):null}}),x=O.loadable,S=O.lazy,C="undefined"!=typeof window;function k(e,t){void 0===e&&(e=function(){});var n=(void 0===t?{}:t).namespace,r=void 0===n?"":n;if(!C)return f("`loadableReady()` must be called in browser only"),e(),Promise.resolve();var o=null;if(C){var i=b(r),a=document.getElementById(i);if(a){o=JSON.parse(a.textContent);var s=document.getElementById(i+"_ext");if(!s)throw new Error("loadable-component: @loadable/server does not match @loadable/component");JSON.parse(s.textContent).namedChunks.forEach((function(e){h.initialChunks[e]=!0}))}}if(!o)return f("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),e(),Promise.resolve();var c=!1;return new Promise((function(e){window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[];var t=window.__LOADABLE_LOADED_CHUNKS__,n=t.push.bind(t);function r(){o.every((function(e){return t.some((function(t){return t[0].indexOf(e)>-1}))}))&&(c||(c=!0,e()))}t.push=function(){n.apply(void 0,arguments),r()},r()})).then(e)}var E=_;E.lib=x,w.lib=S;t.a=E},MgzW:function(e,t,n){var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))o.call(n,u)&&(c[u]=n[u]);if(r){s=r(n);for(var d=0;d<s.length;d++)i.call(n,s[d])&&(c[s[d]]=n[s[d]])}}return c}},OadL:function(e,t,n){n.d(t,"r",(function(){return s})),n.d(t,"i",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"p",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"l",(function(){return p})),n.d(t,"n",(function(){return b})),n.d(t,"d",(function(){return h})),n.d(t,"o",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"s",(function(){return y})),n.d(t,"q",(function(){return v})),n.d(t,"g",(function(){return _})),n.d(t,"b",(function(){return w})),n.d(t,"e",(function(){return O})),n.d(t,"c",(function(){return x})),n.d(t,"f",(function(){return S})),n.d(t,"h",(function(){return k})),n.d(t,"u",(function(){return E})),n.d(t,"t",(function(){return P}));var r=n("peh1");const o=e=>(t,n)=>t.feeds[((e,t)=>"string"==typeof e?e:e(t))(e,n)],i=e=>e.boards,a=e=>e.invites,s=e=>e.users,c=e=>e.users[e.session.userId]||null,l=e=>o(e),u=Object(r.createSelector)(e=>e.feeds,e=>Object.keys(e).filter(e=>e.includes("share-suggestions")).reduce((t,n)=>({...t,[n]:e[n]}),{})),d=Object(r.createSelector)(a,e=>Object.keys(e).reduce((t,n)=>{const r=n.split(":")[0],o=t[r]||{notPendingOwnerAction:[],pendingOwnerAction:[]};return e[n]&&"not_invited"!==e[n].status&&("pending_approval"===e[n].status?o.pendingOwnerAction.push(n):o.notPendingOwnerAction.push(n),t[r]=o),t},{})),f=Object(r.createSelector)(a,e=>Object.keys(e).reduce((t,n)=>{const r=n.split(":"),o=t[r[0]]||[];return e[n]&&"not_invited"!==e[n].status&&(o.push(n),t[r[0]]=o),t},{})),p=Object(r.createSelector)(a,e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return t[n]=r,t},{})),b=Object(r.createSelector)(c,a,(e,t)=>Object.keys(t).reduce((n,r)=>{const o=r.split(":"),i=o[0],a=o[1],s=e.id===a,c=t[r]&&["new","contact_request_not_approved"].includes(t[r].status);return s&&c&&(n[i]=r),n},{})),h=Object(r.createSelector)(s,a,(e,t)=>Object.keys(t).reduce((n,r)=>{const o=t[r]||{};return n[r]=e[o.invited_by_user],n},{})),m=Object(r.createSelector)(o("notifications"),e=>e.notifications,(e=[],t)=>e.map(({id:e})=>t[e])),g=Object(r.createSelector)(e=>e.topics,e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return t[r.slug]=r,t[n]=r,t},{})),y=Object(r.createSelector)(s,e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return t[r.username]=r,t},{})),j=Object(r.createSelector)(c,i,(e,t)=>Object.keys(t).reduce((n,r)=>{const o=t[r];return!o.archived_by_me_at&&(o.owner===e.id||o.collaborating_users&&o.collaborating_users.includes(e.id))&&o.cover_images?n.concat([o]):n},[])),v=Object(r.createSelector)(j,e=>e.sort((e,t)=>e.name.localeCompare(t.name))),_=Object(r.createSelector)((e,t)=>e.users[t.user_id]||null,i,(e,t)=>Object.keys(t).reduce((n,r)=>{const o=t[r];return!o.archived_by_me_at&&e&&(o.owner===e.id||o.collaborating_users&&o.collaborating_users.includes(e.id))&&n.push(o),n},[])),w=(Object(r.createSelector)(s,o("suggested-creator-follows"),(e,t)=>t?t.filter(({id:t})=>{const n=e[t];return n&&n.explicitly_followed_by_me}):[]),Object(r.createSelector)(i,e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return t[r.url]=r,r.oldSlugUrl&&(t[r.oldSlugUrl]=r),t},{}))),O=Object(r.createSelector)(e=>e.boardsections,e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return t[`${r.board}_${r.slug}`]=r,t},{})),x=Object(r.createSelector)(s,(e,t)=>t,(e,t)=>t?[t.owner,...t.collaborating_users||[]].map(t=>e[t]).filter(Boolean):[]),S=l(({boardId:e})=>"board-sections:"+e),C=(l(({boardId:e})=>"board-collaborators:"+e),l(({pinId:e})=>"call-to-create-pins:"+e)),k=Object(r.createSelector)(e=>e.pins,C,(e=[],t=[])=>t.map(t=>e[t.id])),E=e=>e.experiences[40001]&&(40002===e.experiences[40001].experience_id||500450===e.experiences[40001].experience_id),P=e=>e.experiences[40001]&&500681===e.experiences[40001].experience_id},PaNI:function(e,t,n){n.d(t,"a",(function(){return f}));var r=n("/MKj"),o=n("hLPq"),i=n("28DW"),a=n("yweb"),s=n("isp9"),c=n("2oSX"),l=n("AGnR"),u=n("EC67"),d=n("nKUr");function f({alignIconLeft:e,bgColor:t,color:n,disableRedirect:f=!1,fallbackUrl:p,icon:b="arrow-back",onTouch:h,padding:m,placement:g,shouldUseFallbackUrl:y,size:j="lg",viewParameter:v,viewType:_}){const w=Object(a.c)(),O=Object(u.h)(),x=Object(u.i)(),S=Object(r.useSelector)(e=>e.session.isAuthenticated);return Object(d.jsx)(o.a,{accessibilityLabel:w._("Back","navigation button","navigation button"),bgColor:t,color:n,icon:b,onTouch:()=>{if(Object(c.d)({action:"back_button_click",placement:g,isAuthenticated:S}),_&&v&&Object(l.h)({view_type:_,view_parameter:v,element:34}),h&&h(),!f){const e=Object(s.b)(document.referrer);!e&&(!x.key||x.state&&"redirect"===x.state.referrer||y)&&p?O.replace(p):e?(Object(i.a)("unauth.backButton.sendToDuploNotAmp"),O.replace(e)):x.pathname.includes("/password/reset/")&&x.search&&x.search.includes("?nativeShouldDismiss=true")?O.push("/login/?dismissWebview=true"):O.goBack()}},padding:m||2,size:j,containerStyle:e?{display:"flex",alignItems:"center",marginLeft:"cancel"===b?"-4px":"-8px",width:"48px",height:"48px"}:{}})}},QCnb:function(e,t,n){e.exports=n("+wdc")},TOwV:function(e,t,n){e.exports=n("qT12")},WM6B:function(e,t,n){var r=n("q1tI"),o=n("n6mq"),i=n("nKUr");class a extends r.Component{constructor(e){var t,n,o;super(e),o={manualTruncate:!1},(n="state")in(t=this)?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,this.ref=Object(r.createRef)()}componentDidMount(){const{maxHeightPx:e,shaveOptions:t={}}=this.props,r=this.ref&&this.ref.current;if(!r)return;const o=void 0===r.textContent?"innerText":"textContent",i=r[o];("boolean"!=typeof t.spaces||t.spaces?i.split(" "):i).length<2?this.setState({manualTruncate:!0}):n.e("ShaveLibrary").then(n.bind(null,"eh6K")).then(({default:n})=>{n(r,e,t)})}render(){const{maxWidthPx:e,maxHeightPx:t,inline:n=!1}=this.props,{manualTruncate:r}=this.state,a={maxWidth:e,maxHeight:t},s=n?{display:"inline",...a}:{...a};return r?Object(i.jsx)(o.f,{overflow:"hidden",dangerouslySetInlineStyle:{__style:s},ref:this.ref,children:this.props.children}):Object(i.jsx)(o.f,{ref:this.ref,dangerouslySetInlineStyle:{__style:s},children:this.props.children})}}t.a=a},lnd8:function(e,t,n){n.d(t,"a",(function(){return c}));var r=n("q1tI"),o=n("yweb"),i=n("QAzJ"),a=n("n6mq"),s=n("nKUr");function c({setting:e,viewerIsOwner:t}){const n=Object(i.a)("mweb_board_modals")().anyEnabled,c=Object(o.c)(),l={0:{name:c._("Do (almost) everything","save.board.BoardPage.ModalContents.BoardCollabSettings","Heading explaining collaborator permission setting"),description:c._("Add, move or delete Pins and sections, comment and react","save.board.BoardPage.ModalContents.BoardCollabSettings","Text explaining collaborator permission setting")},1:{name:c._("Save and comment","save.board.BoardPage.ModalContents.BoardCollabSettings","Heading explaining collaborator permission setting"),description:t?c._("Save Pins, organize them, comment and react","save.board.BoardPage.ModalContents.BoardCollabSettings","Text explaining collaborator permission setting"):c._("Save Pins, organize them, comment, and react. For more permissions, reach out to the board owner!","save.board.BoardPage.ModalContents.BoardPermissionDescription.SaveOnly.Collab","Text explaining collaborator permission setting")},INVITE_SETTING:{name:c._("Invite other people","save.board.BoardPage.ModalContents.BoardCollabSettings","Heading explaining collaborator permission setting"),description:c._("Collaborators can invite others to this board","save.board.BoardPage.ModalContents.BoardCollabSettings","Text explaining collaborator permission setting")}};return Object(s.jsxs)(r.Fragment,{children:[n?Object(s.jsx)(a.v,{size:"sm",children:l[e].name}):Object(s.jsx)(a.cb,{color:"darkGray",size:"lg",weight:"bold",children:l[e].name}),Object(s.jsx)(a.f,{paddingY:1,children:Object(s.jsx)(a.cb,{color:"gray",size:"lg",children:l[e].description})})]})}},oS0z:function(e,t,n){n.d(t,"a",(function(){return o}));var r=n("r92k");function o(e){return e===Object(r.b)().getState().session.userId}},peh1:function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){return e===t}function i(e){var t=arguments.length<=1||void 0===arguments[1]?o:arguments[1],n=null,r=null;return function(){for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return null!==n&&n.length===i.length&&i.every((function(e,r){return t(e,n[r])}))||(r=e.apply(void 0,i)),n=i,r}}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];var s=0,c=o.pop(),l=a(o),u=e.apply(void 0,[function(){return s++,c.apply(void 0,arguments)}].concat(n)),d=function(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var a=l.map((function(n){return n.apply(void 0,[e,t].concat(o))}));return u.apply(void 0,r(a))};return d.resultFunc=c,d.recomputations=function(){return s},d.resetRecomputations=function(){return s=0},d}}t.__esModule=!0,t.defaultMemoize=i,t.createSelectorCreator=s,t.createStructuredSelector=function(e){var t=arguments.length<=1||void 0===arguments[1]?c:arguments[1];if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t,r){return e[n[r]]=t,e}),{})}))};var c=t.createSelector=s(i)},q3Ga:function(e,t,n){var r=n("mp1x"),o=n("qpbZ"),i=n("QAzJ"),a=n("yweb"),s=n("n6mq"),c=n("nKUr");const l="archive",u="delete",d="deleteSection",f="leave",p="remove",b="unarchive",h=(e,t,n)=>e===f?n._("If you leave this board, it won't show up on your\n    profile and you won't be able to save Pins to it anymore.","the effect of leaving a board","the effect of leaving a board"):e===u?n._("You won't be able to get it back.","the effect of deleting a board","the effect of deleting a board"):e===d?n._("Once you delete a section and all its Pins, you can't undo it!"):e===l?Object(o.b)(n._("If you archive {{ boardName }}, we'll hide it from your profile and you won't be able to save new Pins to it. If you change your mind, you can unarchive it."),{boardName:Object(c.jsx)(s.cb,{inline:!0,weight:"bold",children:t},t)}):e===b?Object(o.b)(n._("If you unarchive {{ boardName }}, it will show up on your profile and you'll be able to save new Pins to it."),{boardName:Object(c.jsx)(s.cb,{inline:!0,weight:"bold",children:t},t)}):null,m=(e,t)=>e===u?t._("Delete"):e===f?t._("Leave board"):e===p?t._("Remove"):e===d?t._("Delete section"):e===l?t._("Archive","button label on confirming board archive","button label on confirming board archive"):e===b?t._("Unarchive","button label on confirming board unarchive","button label on confirming board unarchive"):"",g=(e,t,n)=>e===u?n._("Delete Board?","confirmation of the act of deleting a board","confirmation of the act of deleting a board"):e===f?n._("Leave this Board?","confirmation of the act of leaving a board","confirmation of the act of leaving a board"):e===p?Object(o.b)(n._("Are you sure you want to remove {{ fullName }}?"),{fullName:t}):e===d?n._("Delete section?"):e===l?n._("Archive this board?","modal heading for board archive confirmation","modal heading for board archive confirmation"):e===b?n._("Unarchive this board?","modal heading for board unarchive confirmation","modal heading for board unarchive confirmation"):null;t.a=({type:e,fullName:t,isOpen:n,onConfirm:o,onDismiss:l})=>{const u=Object(a.c)(),d=Object(i.a)("mweb_board_modals")().anyEnabled;return Object(c.jsx)(r.a,{accessibilityCloseIconLabel:u._("Close","Close modal window","Close modal window"),hideCloseIcon:d,isOpen:n,legoBoardModalsEnabled:d,onDismiss:l,type:"edit_wraning_modal",children:Object(c.jsxs)(s.f,{marginBottom:d?2:void 0,marginTop:d?3:void 0,children:[Object(c.jsx)(s.f,{children:Object(c.jsx)(s.v,{align:d?"center":void 0,overflow:"normal",size:d?"md":"sm",children:g(e,t,u)})}),Object(c.jsx)(s.f,{marginBottom:d?8:6,marginTop:d?2:6,children:Object(c.jsx)(s.cb,{align:d?"center":void 0,children:h(e,t,u)})}),Object(c.jsxs)(s.f,{alignItems:d?"center":void 0,dangerouslySetInlineStyle:{__style:{flexDirection:d?"row-reverse":void 0}},display:d?"flex":void 0,justifyContent:d?"center":void 0,children:[Object(c.jsx)(s.f,{dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap"}},paddingX:d?1:void 0,paddingY:1,"data-test-id":"confirmButtonContainer",width:d?"100%":void 0,children:Object(c.jsx)(s.g,{fullWidth:!0,color:"red",onClick:o,size:d?"lg":void 0,text:m(e,u)})}),Object(c.jsx)(s.f,{dangerouslySetInlineStyle:{__style:{whiteSpace:"no-wrap"}},paddingX:d?1:void 0,paddingY:1,width:d?"100%":void 0,children:Object(c.jsx)(s.g,{fullWidth:!0,onClick:l,size:d?"lg":void 0,text:u._("Cancel")})})]})]})})}},qT12:function(e,t,n){var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,j=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case c:case s:case b:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function O(e){return w(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=b,t.isAsyncMode=function(e){return O(e)||w(e)===d},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===c},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===c||e===s||e===b||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===j||e.$$typeof===v||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},r36Y:function(e,t,n){e.exports=n("Copi")}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/109-e2baa7e1ee1b925a5183.mjs.map