(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[72],{"+zF7":function(e,t,n){var i=n("LqyK"),a=n("x12c"),r=n("eOdZ"),o=n("G35+"),s=n("dwea"),c=n("mBfy");function l(){}Object.assign(l.prototype,{handleConnect(e,t,n){if(t&&!c.default.isLimitedLogin()){const a={success:function(i){const a={network:e,data:i};this._internalConnectNetwork(t,a,n)}.bind(this),error(e){n.error&&n.error(e)},complete(){n.complete&&n.complete()},windowOptions:void 0};"dropbox"===e?a.windowOptions="width=600,height=800":"instagram"===e?a.windowOptions=i.default.getWindowOptions(580,580):"etsy"===e?a.windowOptions=i.default.getWindowOptions(580,775):"youtube"===e&&(a.windowOptions=i.default.getWindowOptions(605,640)),this._externalConnectNetwork(e,t,a)}else{const i={network:e};this._internalConnectNetwork(t,i,n)}},updateConnectStatus(){r.a.create("UserResource",{user_id:c.default.get("id"),username:c.default.get("username"),field_set_key:"social_connect"}).callGet().then(e=>{var t;const n=null===(t=e.resource_response)||void 0===t?void 0:t.data;c.default.set(n),a.a.instance.publish("currentUser","socialNetworkUpdated",n)})},_externalConnectNetwork(e,t,n){t?o.a.instance().connect(e,n):n.success&&n.success({})},_internalConnectNetwork(e,t,n){const i=r.a.create("UserSocialNetworkResource",t);(e?i.callCreate():i.callDelete()).then(e=>{this.updateConnectStatus(),n.success&&n.success(e)},e=>{n.error&&e instanceof Object&&n.error(e)}).finally(()=>{n.complete&&n.complete()})},_getResourceNameForNetworkFriends(e){let t=null;switch(e){case o.a.FACEBOOK:t="UserFacebookFriendsResource";break;case o.a.TWITTER:t="UserTwitterFriendsResource";break;case o.a.GOOGLE:t="UserGmailFriendsResource";break;case o.a.MICROSOFT:t="UserMicrosoftFriendsResource";break;default:return}return t},pollForFriends(e,t){const n=(t=t||{}).resourceOptions||{},i=this._getResourceNameForNetworkFriends(e);if(!i)return;const a=r.a.create(i,n);a.callGet({showError:!1}).then(()=>{const e=t.success;e&&e(a)},n=>{if(110===n.api_error_code)s.a.setTimeout(()=>{this.pollForFriends(e,t)},1e3);else{const e=t.error;e&&e()}})}});let d=null;l.instance=function(){return d||(d=new l),d},t.a=l},"/zJj":function(e,t,n){n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"h",(function(){return u})),n.d(t,"g",(function(){return h}));const i=508,a=2*i,r=488,o=2*r,s=40,c=72,l=740,d=60,u=912,h={ARTICLE:"https://schema.org/Article",BRAND:"https://schema.org/Brand",PRODUCT:"https://schema.org/Product",RECIPE:"https://schema.org/Recipe",OFFER:"https://schema.org/Offer",OUT_OF_STOCK:"https://schema.org/OutOfStock",PERSON:"https://schema.org/Person"}},"0S8y":function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return l}));var i=n("VBRM"),a=n("YWqT"),r=n("F08S");function o(e){const t={},n=e.trim();n.length>0&&(t.full_name=n);const i=n.split(/ (.+)/);return""===i[0]&&i.shift(),i.length>0&&(t.first_name=i[0]||""),i.length>1&&(t.last_name=i[1]||""),t}function s({user:e,days:t=28}){if(!e||!e.createdAt)return!1;const n=new Date(e.createdAt),i=Object(r.a)(-t,n),o=new Date;return!Object(a.a)(o,i)}function c({user:e,days:t=28}){if(!e.resurrectionInfo)return!1;const n=e.resurrectionInfo.resurrectionDate,r=new Date,o=n?new Date(n):r,s=Object(i.a)(o,t);return Object(a.a)(s,r)}function l(e){return e&&e[1000069]&&500417===e[1000069].experience_id}},"1Nkp":function(e,t,n){var i=n("kmwA"),a=n("28DW");const r={scope:"profile email",client_id:i.a.settings.GPLUS_CLIENT_ID,app_package_name:i.a.settings.GPLUS_APP_PACKAGE_NAME,access_type:"offline",cookie_policy:"single_host_origin"},o=e=>(Object(a.a)("unauth_web.gapi_auth2_load.success"),e()),s=e=>{Object(a.a)("unauth_web.init_google.sdk."+e)};t.a=(e=r)=>new Promise((t,n)=>{s("start"),window.gapi.auth2?(s("exists"),window.gapi.auth2.init(e).then(()=>o(t))):(s("load"),window.gapi.load("auth2",{callback:()=>{s("load_success"),window.gapi.auth2.init(e).then(()=>o(t))},onerror:()=>{s("load_error"),n()},timeout:15e3,ontimeout:()=>{s("load_timeout"),n()}}))})},"4cTg":function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o}));var i=n("q1tI"),a=n("dKiF");const r=Object(a.d)(({showCloseupContentRight:e,showPdp:t,updateCloseupBodyContainerHeight:n,viewportSize:i,width:a})=>({showCloseupContentRight:e,showPdp:t,updateCloseupBodyContainerHeight:n,viewportSize:i,width:a})),o={showCloseupContentRight:!0,showPdp:!1,updateCloseupBodyContainerHeight:()=>{},viewportSize:"lg",width:null};t.b=Object(i.createContext)(o)},"4cpq":function(e,t,n){n.d(t,"a",(function(){return r}));var i=n("n6mq"),a=n("nKUr");function r(e){const{children:t,display:n,id:r}=e;return Object(a.jsx)(i.f,{"data-test-id":r,display:n,children:t})}},"7jH2":function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a.a})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return h})),n.d(t,"k",(function(){return b})),n.d(t,"l",(function(){return f})),n.d(t,"m",(function(){return g})),n.d(t,"n",(function(){return j})),n.d(t,"i",(function(){return m})),n.d(t,"j",(function(){return O})),n.d(t,"o",(function(){return v})),n.d(t,"p",(function(){return y})),n.d(t,"q",(function(){return x.a})),n.d(t,"r",(function(){return _})),n.d(t,"s",(function(){return C})),n.d(t,"t",(function(){return k})),n.d(t,"u",(function(){return L})),n.d(t,"v",(function(){return I})),n.d(t,"w",(function(){return E})),n.d(t,"x",(function(){return P})),n.d(t,"y",(function(){return D})),n.d(t,"z",(function(){return R})),n.d(t,"A",(function(){return F})),n.d(t,"B",(function(){return A}));var i=({closeupPaneWidth:e,imgSrc:t,isGif:n,pin:i})=>{const a=v(Object(x.a)({pin:i})),{image564x:r={}}=f(a)||{},{imageOrig:o={}}=j(a)||{},s=0===Object.keys(r).length?o:r,c=s.height,l=s.width,{image236x:d={}}=b(v(Object(x.a)({pin:i})))||{},u=d.url,h=Math.max(Math.min(l,e),60),p=h/l*c;return{alt:i.description,src:n?t:u,naturalHeight:p,naturalWidth:h}},a=n("Nle8");function r(e){return!e.is_promoted}var o=e=>{const t=(e||[]).reduce((e,t)=>t.name?e.concat({name:t.name}):e,[]);return t.length>0?t:null};function s(e){if(e&&e.pin){const t=e.pin.rich_metadata;if(t)return t.products?144:t.article?141:t.recipe?145:139;if(e.pin.story_pin_data)return 157}return 140}var c=n("pOug");var l=Object(c.a)(e=>{const{richMetadata:t}=e,{article:n}=t,{name:i,description:a,authors:r,date_published:s}=n||{};return i?{...e,article:{name:i,description:a,authors:o(r),datePublished:s&&new Date(s)||void 0}}:null});var d=Object(c.a)(e=>{const{attribution:t}=e.pin,{author_url:n,url:i,author_name:a,title:r,provider_name:o,cc_url:s,embed:c}=t||{};return o&&i?{...e,attribution:{providerUrl:i,providerName:o,title:r,authorUrl:n,authorName:a,ccUrl:s,embed:c}}:null});var u=Object(c.a)(e=>{const{categorizedIngredients:t}=e.recipe;return t&&t.length>0?{...e,categorizedIngredients:t}:null});var h=Object(c.a)(e=>{const{display_name:t}=e.richSummary;return t?{...e,displayName:t}:null});const p=e=>t=>{const{images:n}=t,i=n[e],{url:a,width:r,height:o}=i||{};return a&&r&&o?{url:a,width:r,height:o}:null},b=Object(c.a)(e=>{const t=p("236x")(e);return t&&{...e,image236x:t}}),f=Object(c.a)(e=>{const t=p("564x")(e);return t&&{...e,image564x:t}}),g=Object(c.a)(e=>{const t=p("736x")(e);return t&&{...e,image736x:t}});var j=Object(c.a)(e=>{const{images:t}=e,n=t.orig,{url:i,width:a,height:r}=n||{};return i&&a&&r?{...e,imageOrig:{url:i,width:a,height:r}}:null});var m=Object(c.a)(e=>{const{embed:t}=e.pin,{type:n,src:i,subtype:a}=t||{},{attribution:r={}}=d(e)||{},{embed:o={}}=r,{src:s}=o,c=i||s;return c?{...e,embed:{type:n,src:c,subtype:a}}:null});var O=Object(c.a)(e=>{const{embed:t}=m(Object(x.a)(e))||{};return!(!t||!t.src||"pinstory"===t.subtype||"gif"===t.type)?{...e,embed:{...t}}:null});var v=Object(c.a)(e=>{const{pin:t}=e,{images:n}=t,i=Object.keys(n||{}).reduce((e,t)=>{const i=n[t],{url:a,width:r,height:o}=i;return e&&a&&r&&o?{...e,[t]:{url:a,width:r,height:o}}:null},{});return i&&Object.keys(i).length>0?{...e,images:i}:null});var y=Object(c.a)(e=>{const{products:t=null}=k(e)&&_(k(e))||{},{pin:n}=e,{tracked_link:i,link:a,method:r}=n,o=i||a,s=o&&("catalog_bulk_create"===r||!!t)?decodeURIComponent(o):o;return s?{...e,link:s}:null}),x=n("O1y+");Object(c.a)(e=>{const{pin:t}=e,{aggregated_pin_data:n}=t,{pin_tags:i}=n||{};return i?{...e,pinTags:i}:null});var _=Object(c.a)(e=>{const{pin:t,richMetadata:n}=e,{buyable_availability:i}=t,{products:a}=n,r=Array.isArray(a)?a.map(e=>{const{name:t,offer_summary:n}=e,{in_stock:a,min_price:r,max_price:o,price:s}=n||{};let c=null;return void 0!==r&&void 0!==o?c=`${r} - ${o}`:void 0!==s&&(c=""+s),t?{name:t,outOfStock:!1===i||!1===a,priceText:c}:null}).filter(e=>null!==e):[];return r.length>0?{...e,products:{first:r[0],rest:r.slice(1)}}:null}),w=n("PsyL");const S=e=>{const{h:t,m:n}=e||{},i={hours:t||0,minutes:n||0};return void 0!==t||void 0!==n?{h:t,m:n,time:i,isoDuration:Object(w.a)(i)}:null};var C=Object(c.a)(e=>{const{richMetadata:t}=e,{recipe:n}=t,{name:i,categorized_ingredients:a,diets:r,from_aggregated_data:o,cook_times:s,servings_summary:c}=n||{},{total:l,cook:d,prep:u}=s||{},{summary:h}=c||{},p=S(u),b=S(d),f=S(l);return i?{...e,recipe:{name:i,categorizedIngredients:a,diets:r,fromAggregatedData:o,prepTime:p,cookTime:b,totalTime:f,servingSummary:h}}:null});var k=Object(c.a)(e=>{const{rich_metadata:t}=e.pin;return t?{...e,richMetadata:t}:null});var L=Object(c.a)(e=>{const{rich_summary:t}=e.pin;return t?{...e,richSummary:t}:null});var I=Object(c.a)(e=>{const{title:t}=e.richMetadata;return t?{...e,title:t}:null});var E=Object(c.a)(e=>{const{pin:t,inChangeTitlesExp:n}=e,{carousel_data:i,title:a,closeup_unified_title:r}=t;let o=n?r:a;if(i){const{carousel_slots:e=[],index:t}=i;e[t]&&e[t].title&&(o=e[t].title)}return o?{...e,title:o}:null});var P=Object(c.a)(e=>{const{richMetadata:t}=e,{tutorial:n}=t,{name:i,description:a,from_aggregated_data:r}=n||{};return n&&i?{...e,tutorial:{name:i,description:a,fromAggregatedData:r}}:null}),T=n("2i+x");var D=Object(c.a)(e=>{const{videos:t}=e.pin,{id:n,video_list:i={}}=t||{},{V_720P:a,V_HLSV4:r,V_HLSV3_MOBILE:o}=i,s=Object(T.a)(r),c=Object(T.a)(o),l=Object(T.a)(a),d=l||s||c;return n&&d?{...e,video:{id:n,hasVideo:d,mp4:l||void 0,hls:s||void 0,hlsv3:c||void 0}}:null});var R=Object(c.a)(e=>{const{video:t}=D(Object(x.a)(e))||{},{embed:n}=m(Object(x.a)(e))||{},i=!(!t||!(e=>{var t,n;const{hlsv3:i,hls:a}=e,r=i||a;return Boolean(!!r&&(null!==(t=r.width)&&void 0!==t?t:0)>(null!==(n=r.height)&&void 0!==n?n:0))})(t))||!(!n||!n.src||"pinstory"===n.subtype||"gif"===n.type);return{...e,isWideVideo:i}});function F({pin:e,boardCount:t}){return(!e.content_sensitivity||!e.content_sensitivity.is_sensitive_content)&&(void 0!==t&&t>=1)}var M=n("Zygf"),A=e=>!(e&&e.pinner&&e.pinner.blocked_by_me||e&&Object(M.a)(e))},"8vQR":function(e,t,n){n.d(t,"a",(function(){return l}));var i=n("Ye/N"),a=n("7w6Q"),r=n("eOdZ"),o=n("n6mq"),s=n("U4JR"),c=n("nKUr");function l(e){const{identifier:t,onHide:n}=e,l=()=>{r.a.create("ShareSuggestionsHideResource",{user_identifier:t}).callCreate().then(()=>{n(),(()=>{const{component:t,element:n}=e;Object(s.b)(101,{component:t,element:n}),a.a.increment("web_contacts.suggestions.hide",1,{surface:t})})()})};return Object(c.jsx)(o.w,{icon:"cancel",iconColor:"darkGray",onClick:({event:e})=>{e.stopPropagation(),l()},accessibilityLabel:i.a._("Remove contact","SendObject.SendObjectSuggestionItem","accessibility label for removing contact suggestion"),size:"xs"})}},AHhP:function(e,t){const n={},i=function(e,t){let n=!1;return function(...i){n||(n=!0,e.apply(this,i),t&&t())}},a=function(e,t){e.__listeners=t},r=function(e,t){return!e.__listeners&&t&&a(e,[]),e.__listeners},o=function(e,t){return!e.__handlers&&t&&(e.__handlers={}),e.__handlers},s=function e(t,n,i){let a,r,o=[];if("string"==typeof t)for(a=t.split(" "),r=0;r<a.length;r+=1)o.push({name:a[r],callback:n,originalCallback:n,context:i});else"object"==typeof t&&t&&Object.keys(t).forEach(a=>{o=o.concat(e(a,t[a],i||n))});return o},c=function(e,t,n,i){const a=s(e,t,n);for(let r=0;r<a.length;r+=1)i(a[r])},l=function(e,t){const n=o(e,!0);void 0===n[t.name]?n[t.name]=[t]:n[t.name].push(t)},d=function(e,t,n){const i=r(e,!0);for(let a=0;a<n.length;a+=1){const e=n[a];if(!e.callback)return;l(t,e),i.push({obj:t,event:e,originalCallback:e.originalCallback})}};n.on=function(e,t,n){return c(e,t,n,e=>{e.callback&&l(this,e)}),this},n.off=function(e,t,n){const i=o(this,!1);if(void 0===i)return this;const a=Object.keys(i);let r=s(e,t,n);0===r.length&&(r=[{name:null,callback:t,context:n}]);for(let o=0;o<r.length;o+=1){const e=r[o];let t;t=e.name?[e.name]:a;for(let n=0;n<t.length;n+=1){const a=t[n],r=i[a];if(void 0!==r){const t=[];for(let n=0;n<r.length;n+=1){const i=r[n];(e.callback&&i.originalCallback!==e.callback&&i.callback!==e.callback||e.context&&i.context!==e.context)&&t.push(i)}i[a]=t}}}return this},n.trigger=function(e,...t){const n=o(this,!1);if(void 0===n)return this;let i,a,r;const s=e.split(" ");for(i=0;i<s.length;i+=1){let e=[];const o=n.all,c=s[i],l=n[c];if(void 0!==l)for(a=0;a<l.length;a+=1)if(r=l[a],"function"==typeof r.callback)e.push({fn:r.callback,context:r.context||this,args:t});else if(r.callback)throw new Error("Callbacks must be functions");if(void 0!==o)for(a=0;a<o.length;a+=1)if(r=o[a],"function"==typeof r.callback)e.push({fn:r.callback,context:r.context||this,args:[c].concat(t)});else if(r.callback)throw new Error("Callbacks must be functions");for(a=0;a<e.length;a+=1)r=e[a],r.fn.apply(r.context,r.args);e=[]}return this},n.once=function(e,t,n){return c(e,t,n,e=>{"function"==typeof e.originalCallback&&(e.callback=i(e.originalCallback,()=>{this.off(e.name,e.callback,e.context)}),l(this,e))}),this},n.listenTo=function(e,t,n){return d(this,e,s(t,n,this)),this},n.listenToOnce=function(e,t,n){const a=s(t,n,this).map(t=>(t.originalCallback&&(t.callback=i(t.originalCallback,()=>{this.stopListening(e,t.name,t.originalCallback,t.context)})),t));return d(this,e,a),this},n.stopListening=function(e,t,n){const i=r(this,!1);let o,c,l;if(!i)return this;const d=[],u=void 0===t?void 0:s(t,n,this);for(c=0;c<i.length;c+=1)if(o=i[c],o.obj!==e&&e)d.push(o);else if(t){let e=!1;for(l=0;l<u.length&&!1===e;l+=1){const t=u[l];o.event.name===t.name&&o.originalCallback===t.callback&&(e=!0)}e?o.obj.off(o.event.name,o.event.callback,o.event.context):d.push(o)}else o.obj.off(o.event.name,o.event.callback,o.event.context);return a(this,d),this},e.exports=n},"CgR/":function(e,t,n){n.d(t,"a",(function(){return b}));var i=n("q1tI"),a=n("geGc"),r=n("Sp3T"),o=n("TqAR"),s=n("TgLd"),c=n("oVol"),l=n("U4JR"),d=n("n6mq"),u=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}const p=({children:e})=>e(Object(r.a)());class b extends i.Component{constructor(...e){super(...e),h(this,"handleDismiss",()=>{const{onFlyoutDismiss:e}=this.props;e()}),h(this,"onHide",()=>{this.props.onClick(),this.handleDismiss()}),h(this,"flyoutProps",()=>{const{gridDescription:e,idealDirection:t,imageSrc:n,pinId:i,userId:r,board:s,sendType:l,url:d,fullName:h,profileUrl:p,viewParameter:b,viewType:f,onExternalSend:g,showCaret:j,todayArticle:m}=this.props;let O={description:e,id:i,imageUrl:n,name:"",type:c.a.PIN,url:`/pin/${i}/`},v=c.a.PIN;switch(l){case"user":O={description:e,id:r,imageUrl:n,name:h,type:c.a.PINNER,url:p},v=c.a.USER;break;case"board":O=s&&{description:s.description,id:s.id,imageUrl:s.imageUrl,name:s.name,type:c.a.BOARD,url:s.url},v=c.a.BOARD;break;case"today_article":O=m&&{description:m.subtitle||"",id:m.id,imageUrl:n,name:m.title,type:c.a.TODAY_ARTICLE,url:Object(o.i)(m)},v=c.a.TODAY_ARTICLE;break;case"search":O={...O,type:c.a.SEARCH,url:d},v=c.a.SEARCH}const y={isFlyout:!0,onHide:this.onHide,onExternalSend:g,sendType:v,sharedObject:O,viewParameter:b,viewType:f};return{anchor:this.flyoutAnchor,idealDirection:t,onDismiss:this.handleDismiss,showCaret:j,children:Object(u.jsx)(a.default,{...y})}})}static makeSendShareButton(e){return t=>Object(u.jsx)(this,{ref:t.shareButtonRef,Subject:e,...t})}toggle(){const{onToggleFlyout:e,sendType:t,userId:n}=this.props;"user"===t&&Object(l.b)(101,{component:13675,element:1079,objectId:n,view:4,viewParameter:3107}),e()}render(){const{Subject:e,inModal:t,isFlyoutOpen:n,shownWithinMasonry:i}=this.props,{anchor:a,idealDirection:r,onDismiss:o,showCaret:c,children:l}=this.flyoutProps();return Object(u.jsxs)("div",{style:{pointerEvents:"auto"},children:[Object(u.jsx)(d.f,{ref:e=>{e&&(this.flyoutAnchor=e)},children:Object(u.jsx)(p,{children:t=>Object(u.jsx)(e,{handleSendShareFlyoutButtonClick:e=>t(()=>{null!=e&&e.stopPropagation&&e.stopPropagation(),this.toggle()}),...this.props})})}),n&&(i?Object(u.jsx)(d.z,{children:Object(u.jsx)(d.f,{zIndex:t?s.a:void 0,position:t?"absolute":void 0,top:!!t||void 0,children:Object(u.jsx)(d.L,{anchor:a,idealDirection:r,onDismiss:o,showCaret:c,size:"xl",positionRelativeToAnchor:!1,children:l})})}):Object(u.jsx)(d.L,{anchor:a,idealDirection:r,onDismiss:o,showCaret:c,size:"xl",children:l}))]})}}h(b,"defaultProps",{idealDirection:"down",onClick:()=>{}})},ENhS:function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var i=n("1dBE");const{Provider:a,Consumer:r,useHook:o}=Object(i.c)("SurfaceContext",{surface:"Unknown"})},Ep0g:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u}));var i=n("BUdX");const a=["AU","CA","GB","IE","NZ","US","FR","DE","AT","IT","ES","NL","BE","PT","CH","NL","BE","PT","CH","SE","NO","DK","FI"],r=["BR","CY","CZ","GR","HU","LU","MT","MX","RO","SK"],o=["AU","AT","BE","BR","CA","CY","CZ","DK","FI","FR","DE","GR","HU","IE","IT","LU","MT","NL","NZ","NO","PL","PT","RO","SK","ES","SE","CH","GB","US"],s=["US","CA"],c=e=>{if(r.includes(e.toUpperCase())){const e=i.a.fromGlobalContext(),{anyEnabled:t}=e.experiments.getWithActivation("advertiser_growth_qp_expansion");return t}return a.includes(e.toUpperCase())},l=e=>o.includes(e.toUpperCase()),d=(e,t,n)=>{const i={numDays:n},a=e[n]||{},r=e[2*n]||{};return t.forEach(e=>{const t=a[e]||0,n=r[e]?r[e]-t:0;i[e]={total:t,trend:n?(t-n)/n:0}}),i},u=e=>!!e&&s.includes(e.toUpperCase())},F08S:function(e,t,n){t.a=(e,t)=>{const n=t.getUTCDate()-e,i=new Date(t);return i.setUTCDate(n),i}},FZoo:function(e,t,n){var i=n("MrPd"),a=n("4uTw"),r=n("wJg7"),o=n("GoyQ"),s=n("9Nap");e.exports=function(e,t,n,c){if(!o(e))return e;for(var l=-1,d=(t=a(t,e)).length,u=d-1,h=e;null!=h&&++l<d;){var p=s(t[l]),b=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(l!=u){var f=h[p];void 0===(b=c?c(f,p,h):void 0)&&(b=o(f)?f:r(t[l+1])?[]:{})}i(h,p,b),h=h[p]}return e}},FfPP:function(e,t,n){var i=n("idmN"),a=n("hgQt");e.exports=function(e,t){return i(e,t,(function(t,n){return a(e,n)}))}},"G35+":function(e,t,n){var i=n("AHhP"),a=n.n(i),r=n("1inl"),o=n("K316"),s=n("fZ0m"),c=n("YYM5"),l=n("Ye/N"),d=n("1Nkp"),u=n("dwea"),h=n("28DW");function p(){}let b;Object.assign(p.prototype,a.a),Object.assign(p.prototype,{connect(e,t){t=Object.assign({},{success(){},error(){},complete(){}},t),Object(h.a)(`auth_web.social_connect.${e}.${Object(c.a)()}`),t.rerequest_facebook_email?Promise.resolve().then(n.bind(null,"TvzZ")).then(({default:e})=>{e(e=>{e.login(e=>{const n=e.authResponse;let i,a;n&&(i=n.grantedScopes,i=i?i.split(","):[],a=n.userID);const r=i.find(e=>"email"===e),o={id:a};"connected"===e.status&&r?t.success(o):t.error(o),t.complete()},{scope:"email",auth_type:"rerequest",return_scopes:!0})},o.a)}):"gplus"===e||"google"===e?s.a.get(e=>{Object(d.a)().then(()=>{e.auth2.getAuthInstance().grantOfflineAccess().then(e=>{t.success({one_time_code:e.code,redirect_uri:"postmessage"})}).catch(e=>{t.error(e)})})}):Promise.resolve().then(n.bind(null,"LqyK")).then(({default:n})=>{const i=t.windowOptions||n.getWindowOptions(),a=window.open("/connect/"+e+"/","",i);if(!a)return r.a.showError(l.a._("You must enable popups!")),void t.error({network:e,alertedUpstream:!0});const o=u.a.setInterval(()=>{a.closed&&(clearInterval(o),this.handleComplete({network:e,error_message:"Window closed."}))},1e3);this.once("connect:"+e,e=>{clearInterval(o),e.error_message?t.error(e):t.success(e),t.complete()})})},complete(e){this.handleComplete(e)},handleComplete(e){const t="connect:"+e.network;if("facebook"===e.network){const t=e.id;t&&"string"!=typeof t&&(e.error_message="Facebook id must be of string type")}this.trigger(t,e)}}),Object.assign(p,{instance:()=>(b||(b=new p),b),FACEBOOK:"facebook",TWITTER:"twitter",GOOGLE:"google",YOUTUBE:"youtube",GPLUS:"gplus",MICROSOFT:"microsoft",ETSY:"etsy",DROPBOX:"dropbox"}),window.addEventListener("message",e=>{const t=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");e.origin===t&&e.data&&"social-connect-complete"===e.data.type&&p.instance().complete(e.data)}),t.a=p},HGDa:function(e,t,n){n.d(t,"e",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return c}));const i=1e3,a=60*i,r=60*a,o=24*r,s=30*o,c=365*o},JRj3:function(e,t,n){n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n("BUdX");const a=()=>{var e;return null===(e=window)||void 0===e||!e.devicePixelRatio||window.devicePixelRatio<=1?"1x":"2x"};function r(e){const t=i.a.fromGlobalContext().experiments.v2ActivateExperiment("web_higher_quality_mp4")||"",{downloadSpeedGroup:n,screenDimension:r}=(()=>{var e,t;const n="undefined"!=typeof window?null===(e=window.navigator)||void 0===e||null===(t=e.connection)||void 0===t?void 0:t.effectiveType:void 0;let i,r=a();return n?"4g"===n?i="40-80":(r="1x",i="0-1"):i="unknown",{downloadSpeedGroup:i,screenDimension:r}})(),o={"1x":e.V_EXP5,"2x":e.V_EXP5},s={"1x":e.V_EXP3,"2x":e.V_EXP5},c={"1x":e.V_EXP7,"2x":e.V_EXP7};return{unknown:"enabled_unknown"===t||"enabled_both"===t?o:s,"0-1":"enabled_lowend"===t||"enabled_both"===t?o:s,"1-5":{"1x":e.V_EXP4,"2x":e.V_EXP5},"5-10":{"1x":e.V_EXP5,"2x":e.V_EXP5},"10-20":{"1x":e.V_EXP6,"2x":e.V_EXP6},"20-40":c,"40-80":c,"80_or_above":c}[n][r]||e.V_720P||void 0}function o(e){const{video_list:t={}}=e,n=r(t),i=t.V_HLSV3_MOBILE||void 0;return n?{hlsv3:i,mp4:n}:{hlsv3:i}}},JZM8:function(e,t,n){var i=n("FfPP"),a=n("xs/l")((function(e,t){return null==e?{}:i(e,t)}));e.exports=a},LqyK:function(e,t,n){n.r(t);var i=n("d7ng"),a=n("+NLT"),r=n("K316"),o=n("TvzZ"),s=n("Jr++"),c=n("JZM8"),l=n.n(c),d=n("eOdZ"),u=n("zwad");const h={open(e){const t=l()(e,h._validParams),n=h._getDialogType(e),a=h.generateFbRef(),c=e.object_type&&e.object_id&&"feed"===n;let p=Object(i.a)(e.path);const b=Object(s.a)();if(b.ptrf&&(p=u.a.appendQueryString(p,{ptrf:b.ptrf})),c&&(p=u.a.appendQueryString(p,{fb_ref:a})),t.method=n,"feed"===t.method){const n=h.getWindowOptions(e.width||580,e.height||400);let i="http://www.facebook.com/sharer/sharer.php?u="+p;t.picture&&(i+="&picture="+t.picture),t.name&&(i+="&title="+t.name),t.description&&(i+="&description="+t.description),t.caption&&(i+="&caption="+t.caption),window.open(encodeURI(i),"sharer",n)}else"send"===t.method?t.link=p:"share"===t.method&&(t.href=p),Object(o.default)(n=>{n.getLoginStatus(()=>{if("send"===t.method){n.ui(t);let i,a=10;const r=setInterval(()=>{i=function(){if(!document)return;const e=Array.from(document.querySelectorAll(".fb_dialog_iframe iframe"));if(!e.length)return;if(1===e.length)return e[0];const t=e.splice(0,e.length-1);for(let n=0;n<t.length;n+=1){const e=t[n].parentNode;e&&e.removeChild(t[n])}return e[0]}(),!i&&a||(clearInterval(r),i&&h.executeMessengerCallback(i,e.callback)),a-=1},1e3)}else"share"===t.method&&n.ui(t,t=>{c&&t&&!t.error_message&&d.a.create("LogFacebookFeedShare",{object_type:e.object_type,object_id:e.object_id,fb_ref:a}).callCreate({showError:!1}),e.callback&&e.callback(t)})})},r.a)},_validParams:["description","name","picture","to","href","caption","display"],_validOptions:["send","feed","share"],executeMessengerCallback(e,t){let n=10;const i=setInterval(()=>{"0px"!==e.style.width&&n||(clearInterval(i),e.style.width="575px"),n-=1},1e3);t&&t()},generateFbRef(){let e="";for(;e.length<20;)e+=Math.floor(65535*Math.random()).toString(16);return a.a.instance.unauth_id+":"+e},_getDialogType:e=>h._validOptions.includes(e.type)?e.type:"feed",getWindowOptions(e,t){const n=e||580,i=t||400,a=window.screen.width,r=window.screen.height;return"scrollbars=yes,resizable=yes,toolbar=no,location=yes,width="+n+",height="+i+",left="+Math.round((a-n)/2)+",top="+(r>i?Math.round((r-i)/2):0)}};t.default=h},MhBu:function(e,t,n){function i(e){return{type:"FEED_ITEMS_REMOVED",payload:e}}n.d(t,"a",(function(){return i}))},Nle8:function(e,t,n){n.d(t,"a",(function(){return r}));var i=n("ajUs"),a=n("zpPL");function r(e,t){const n=a.a.instance;let r;if(n){const a=n.getState();if(a.pins&&e){const n=a.pins[e],o=a.location;if(null!=t&&t.shouldTrackForPrevLocation){const e=(null==n?void 0:n.tracking_params_map)||{},t=Object.keys(e).find(e=>"PinResource"!==e);n&&(r=t?e[t]:e.PinResource)}else n&&(r=Object(i.a)(n,o))}}return r}},"O1y+":function(e,t,n){var i=n("pOug");const a=Object(i.a)(e=>e.pin&&e.pin.id?{...e,id:e.id,aggregatedPinData:e.pin.aggregated_pin_data}:null);t.a=a},RHD0:function(e,t,n){n.d(t,"f",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return u}));n("UA0U");var i=n("RNo4"),a=n("Ep0g"),r=(n("HGDa"),n("0S8y"));const o=(e,t)=>Object.keys(t).filter(n=>{const i=t[String(n)];return(i.pinner||{}).id===e.id&&!i.is_repin}).map(e=>t[e]),s=Object.freeze({NOT_ANSWERED:0,YES:1,NO:2,NOT_SURE:3}),c=(e,t)=>!(!e||!e.isAuth)&&Object(a.e)(e.country),l=e=>e.isAuth&&!e.isPartner&&!Object(r.d)({user:e})&&!Object(r.c)({user:e}),d=({requestContext:e,history:t,pinId:n})=>{((e,t)=>{const n=Object(i.b)("/business/convert",{next:t});e.push(n)})(t,(e=>e?"/business/ad_create?pinId="+e:"/business/ad_create")(n))},u=e=>{const t=e.trim().split(" ").filter(e=>!!e);return{firstName:t.length>0?t[0]:"",lastName:t.length>1?t.slice(1).join(" "):""}}},SNfw:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("nKUr");function a({size:e,iconColor:t,backgroundColor:n,grayscale:a=!1}){const r=t||(a?"#333333":"#8E8E8E"),o=n||"#EFEFEF";return Object(i.jsx)("svg",{width:e,height:e,viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Object(i.jsxs)("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Object(i.jsx)("circle",{id:"Oval",fill:o,cx:"18",cy:"18",r:"18"}),Object(i.jsx)("g",{transform:"translate(9.000000, 12.000000)",fill:r,fillRule:"nonzero",children:Object(i.jsx)("path",{d:"M16.7972727,2.052 L10.5905455,8.14909091 C10.152,8.57945455 9.576,8.79545455 9,8.79545455 C8.424,8.79545455 7.848,8.57945455 7.40863636,8.14909091 L1.20190909,2.052 C0.962181818,1.81636364 0.962181818,1.43427273 1.20190909,1.19863636 C1.44163636,0.963818182 1.83027273,0.963818182 2.07,1.19863636 L8.27672727,7.29572727 C8.67518182,7.68845455 9.324,7.68845455 9.72327273,7.29572727 L15.9291818,1.19863636 C16.1689091,0.963818182 16.5575455,0.963818182 16.7972727,1.19863636 C17.037,1.43427273 17.037,1.81636364 16.7972727,2.052 Z M0,11.4545455 L18,11.4545455 L18,0 L0,0 L0,11.4545455 Z"})})]})})}},Sp3T:function(e,t,n){var i=n("aOj9");t.a=()=>{const{loginForMore:e,viewer:t}=Object(i.d)();return n=>{"AUTH"===t.type?n():e&&e.setVisible(!0)}}},TgLd:function(e,t,n){n.d(t,"a",(function(){return c}));var i=n("q1tI"),a=n("D2p8"),r=n("LT60"),o=n("n6mq"),s=n("nKUr");const c=new o.s(1e3),l=Object(i.forwardRef)(({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n,allowClickAndDrag:l,allowMediaPlay:d,allowScroll:u,children:h,closeOnOutsideClick:p,footer:b,heading:f,onDismiss:g,role:j,size:m,subHeading:O},v)=>{Object(i.useEffect)(()=>(a.c.pause(),function(){a.c.resume()}),[]);return Object(s.jsx)(o.z,{zIndex:c,children:Object(s.jsx)(r.a,{allowClickAndDrag:l,allowEsc:!0,allowMediaPlay:d,allowScroll:u,children:Object(s.jsx)(o.G,{_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:n,closeOnOutsideClick:p,heading:f,footer:b,onDismiss:()=>{a.c.resume(),g()},ref:v,role:j,size:m,subHeading:O,children:h})})})});l.displayName="Modal",t.b=l},TvzZ:function(e,t,n){n.r(t);var i=n("0K1N"),a=n("eOdZ"),r=n("kmwA"),o=n("37no");let s=!1;const c=(e,t,n="en-US")=>{Object(o.c)(Object(i.a)(n),o.a.FACEBOOK).then(()=>{const n=window.FB;n&&(s||(n.init({appId:r.a.settings.FACEBOOK_API_KEY,status:!0,version:"v2.2"}),FB.Event.subscribe("auth.statusChange",()=>{t()&&c(e=>{if(!e.getUserID())return;const t=e.getAccessToken();if(t){a.a.create("UserSocialNetworkResource",{facebook_token:t}).callUpdate({showError:!1})}},t)}),s=!0,window.fb_init=2),e(n))}),window.fb_init=1};t.default=c},UA0U:function(e,t,n){var i=n("HGDa");t.a=e=>{const t=new Date(e)-new Date,n=Math.abs(t);return{year:Math.floor(n/i.f),month:Math.floor(n%i.f/i.d),day:Math.floor(n%i.d/i.a),hour:Math.floor(n%i.a/i.b),minute:Math.floor(n%i.b/i.c),milli:t,ms:n}}},VBRM:function(e,t,n){t.a=(e,t)=>{const n=new Date(e);return n.setDate(e.getDate()+t),n}},VpfY:function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return u})),n.d(t,"g",(function(){return h})),n.d(t,"b",(function(){return p}));var i=n("RHD0"),a=(n("7jH2"),n("Y8Sn"));function r(e){var t;return(null===(t=e.closeup_attribution)||void 0===t?void 0:t.id)||null}function o(e){var t,n;return!Object(a.i)(e.videos)&&!Object(a.h)(e)&&0!==Object.keys((null===(t=e.aggregated_pin_data)||void 0===t||null===(n=t.creator_analytics)||void 0===n?void 0:n["30d_realtime"])||{}).length}function s(e){var t;return 0!==Object.keys((null===(t=e.creator_analytics)||void 0===t?void 0:t["30d_realtime"])||{}).length}function c(e){var t,n;return!(null===(t=e.creator_analytics)||void 0===t||null===(n=t["30d_realtime"])||void 0===n||!n.is_realtime)}function l(e){const t=e.aggregated_pin_data||{};return t.is_shop_the_look||t.is_stela}function d(e){const{native_creator:t,pinner:n,domain:i}=e;return(e.link_user_website&&e.link_user_website.official_user||e.link_domain&&e.link_domain.official_user||!!e.third_party_pin_owner||!!n&&n.domain_verified&&n.domain_url===i)&&!e.is_promoted||t}function u(e){if(!e.story_pin_data_id)return;const{story_pin_data:{metadata:t,pages:n=[]}={}}=e;return{metadata:t,detailsPage:n[1]}}const h=({viewer:e,pin:t})=>Object(i.b)(e)&&t.is_quick_promotable_by_pinner;function p(e){var t;return e.story_pin_data_id&&(null===(t=e.themes)||void 0===t?void 0:t.length)>0?e.themes[0]:null}},Vt0H:function(e,t,n){var i=n("q1tI"),a=n("/MKj"),r=n("PioT"),o=n("Ye/N"),s=n("51gp"),c=n("XtwW"),l=n("9pre"),d=n("JRj3"),u=n("vZlu"),h=n("QAzJ"),p=n("ptXI"),b=n("WnLB"),f=n("y2Ga"),g=n("pf20"),j=n("n6mq"),m=n("nKUr");function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class v extends i.Component{constructor(...e){super(...e),O(this,"state",{controls:!1,duration:0,fullscreen:!1,playing:!r.b.isSafari()&&!!this.props.autoplay,ready:!1,seeking:!1,showEndCard:!1,volume:this.props.muted?0:1}),O(this,"setVideoPwtLoadingStop",(e=!1)=>{if(!c.a)return;const{storyPinStepStopwatch:t,pinId:n,pwtSurfaceContext:i}=this.props;t&&(e||t.addAnnotation("video.startup.end"),t.addBinaryAnnotation("pin.id",n,"STRING"),t.addBinaryAnnotation("video",!0,"BOOL"),t.addBinaryAnnotation("preload",e,"BOOL"),t.addSubspan({name:"perceived_video_load",endTime:c.a.now()}),t.stop()),i&&(e||i.addAnnotation("video.startup.end"),i.addBinaryAnnotation("pin.id",n,"STRING"),i.addBinaryAnnotation("video",!0,"BOOL"),i.markConstraintComplete(b.e),i.addSubspan("perceived_video_load",null,c.a.now()),i.metricId.segment===b.d&&i.removeConstraint(b.c))}),O(this,"componentDidMount",()=>{const{customThumbnail:e,video:t,preferMp4:n}=this.props,i=t.mp4,a=t.hlsv3||t.hls||null,{thumbnail:r}=n&&i||a||{},o=(s=e||r)&&document.querySelector(`video[poster="${s}"]`)||null;var s;4===(null==o?void 0:o.ready)&&(this.setState({ready:!0}),this.props.autoplay&&this.setVideoPwtLoadingStop(!0))}),O(this,"componentDidUpdate",(e,t)=>{!1===e.isPlaying&&this.props.isPlaying&&this.setState({playing:!0,controls:!0}),e.isPlaying&&!1===this.props.isPlaying&&this.props.showControls&&this.setState({playing:!1}),e.autoplay!==this.props.autoplay&&(this.setState({playing:!!this.props.autoplay}),this.props.autoplay&&this.state.ready&&this.setVideoPwtLoadingStop(!0)),e.muted!==this.props.muted&&this.setState({volume:this.props.muted?0:1})}),O(this,"handleTouch",()=>{const{seeking:e}=this.state;e||this.setState(e=>({playing:!e.playing}))}),O(this,"handleShowControls",()=>this.setState({controls:!0})),O(this,"handleHideControls",()=>this.setState({controls:!1})),O(this,"handleReady",()=>{const{ready:e}=this.state,{autoplay:t}=this.props;t&&!e&&this.setVideoPwtLoadingStop(),this.setState({ready:!0})}),O(this,"handleEnded",({event:e})=>{const{customThumbnail:t,pinId:n,setCurrentVideo:i,loop:a,onEnded:r}=this.props;var o;e.stopPropagation(),a||(this.setState({playing:!1}),(o=t)&&o.endsWith(".gif")||(this.setState({showEndCard:!0}),i({pinId:n,isPromoted:!1,currentTime:0})),this.state.fullscreen&&this.exitFullscreen()),r&&r()}),O(this,"handlePause",({event:e})=>{e.stopPropagation(),this.setState({playing:!1})}),O(this,"handlePlay",({event:e})=>{e.stopPropagation(),this.setState({playing:!0})}),O(this,"handleDurationChange",({duration:e})=>{this.setState({duration:e})}),O(this,"handleFullscreenChange",({event:e,fullscreen:t})=>{e.stopPropagation(),this.setState({fullscreen:t})}),O(this,"handlePlayheadDown",({event:e})=>{this.setState({seeking:!0})}),O(this,"handlePlayheadUp",({event:e})=>{setTimeout(()=>{this.setState({seeking:!1})},500)}),O(this,"handleRestartVideo",({event:e})=>{e.stopPropagation(),this.setState({playing:!0,showEndCard:!1})}),O(this,"handleShareRestartVideo",({event:e})=>{e.stopPropagation(),this.setState({playing:!0,showEndCard:!1})}),O(this,"handleVolumeChange",({event:e,volume:t})=>{e.stopPropagation(),this.setState({volume:t})}),O(this,"exitFullscreen",()=>{const e=window.document;(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())}),O(this,"renderCloseupVideoEndCard",(e,t,n,i)=>{const a={backgroundImage:e,naturalHeight:t,naturalWidth:n,onRestartVideo:this.handleShareRestartVideo},r={backgroundImage:e,naturalHeight:t,naturalWidth:n,onRestartVideo:this.handleRestartVideo},{flyoutShareProps:o}=this.props,s={gridDescription:o?o.gridDescription:"",imageSrc:o?o.imageSrc:"",isFlyoutOpen:!!o&&o.isFlyoutOpen,onFlyoutDismiss:o?o.onFlyoutDismiss:()=>{},onToggleFlyout:o?o.onToggleFlyout:()=>{},pinId:o?o.pinId:""};return i?Object(m.jsx)(p.b,{...r}):Object(m.jsx)(p.a,{...s,...a})})}render(){const{contextLogData:e={component:179,is_closeup_video:!0,objectId:this.props.pinId,view:3,viewParameter:156},customThumbnail:t,isPromoted:n,loop:i,onTimeChange:a,objectFit:c,preferMp4:d,preload:u,showControls:h,startLevel:p,variant:b,video:f,videoStartTime:g}=this.props,{controls:O,fullscreen:v,playing:y,showEndCard:x,volume:_}=this.state,w=r.b.isSafari(),S=f.hlsv3||f.hls||null;if(!S&&!f.mp4)return null;const C=f.mp4,k=!d&&S?[{type:"video/m3u8",src:S.url}]:(C||{}).url,{height:L,thumbnail:I,width:E}=d&&C||S||{},P=t||I;return Object(m.jsx)(j.C,{willChangeTransform:!(w&&v),rounding:"default"===b?0:2,wash:!0,children:x?this.renderCloseupVideoEndCard(null!=P?P:"",null!=L?L:1,null!=E?E:1,n):Object(m.jsx)(j.bb,{onMouseEnter:h?this.handleShowControls:void 0,onMouseLeave:h?this.handleHideControls:void 0,onTap:this.handleTouch,rounding:2,children:Object(m.jsx)(s.a,{contextLogData:{...e,video_id:this.props.video.id},accessibilityMaximizeLabel:o.a._("Maximize","Maximize button on video","Maximize button on video"),accessibilityMinimizeLabel:o.a._("Minimize","Minimize button on video","Minimize button on video"),accessibilityMuteLabel:o.a._("Mute","Mute button on video","Mute button on video"),accessibilityPauseLabel:o.a._("Pause","Pause button on video","Pause button on video"),accessibilityPlayLabel:o.a._("Play","Play button on video","Play button on video"),accessibilityUnmuteLabel:o.a._("Unmute","Unmute button on video","Unmute button on video"),aspectRatio:(null!=E?E:1)/(null!=L?L:1),captions:"",controls:O,hlsConfig:{startLevel:"number"==typeof p?p:l.a},objectFit:c,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onPause:this.handlePause,onPlay:this.handlePlay,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onTimeChange:a,onVolumeChange:this.handleVolumeChange,preferMp4:d,playing:y,preload:u,poster:P,src:k,videoStartTime:g,volume:_,loop:i})})})}}O(v,"defaultProps",{loop:!1,showControls:!0});t.a=Object(a.connect)((e,t)=>{const{pinId:n,isPromoted:i}=t,a=e.ui.app?e.ui.app.videosAutoplaying:{organicVideosAutoplaying:{},promotedVideosAutoplaying:{}},{organicVideosAutoplaying:r,promotedVideosAutoplaying:o}=a;let s=null;return s=i?o[n]:r[n],{videoStartTime:s?s.currentTime:null,isPlaying:!s||!s.paused}},(e,t)=>({setCurrentVideo:t=>e(Object(u.c)(t))}))((function(e){const t=Object(g.b)(),n=Object(f.c)(),i=Object(d.c)(),a=Object(h.b)("web_hls_start_level")().group;let r=null;if(a.startsWith("enabled")&&"2x"===i)r=4;else if("enabled_level_2"===a)r=2;else if("enabled_level_3"===a)r=3;else if("enabled_adaptive"===a){var o,s;const e="undefined"!=typeof window?null===(o=window.navigator)||void 0===o||null===(s=o.connection)||void 0===s?void 0:s.effectiveType:void 0;e?"4g"===e?r=3:"3g"===e?r=2:e.includes("2g")&&(r=0):r=3}return Object(m.jsx)(v,{...e,pwtSurfaceContext:n,startLevel:r,storyPinStepStopwatch:t})}))},WM6B:function(e,t,n){var i=n("q1tI"),a=n("nKUr");class r extends i.Component{constructor(e){var t,n,a;super(e),a={manualTruncate:!1},(n="state")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,this.ref=Object(i.createRef)()}componentDidMount(){const{maxHeightPx:e,shaveOptions:t={}}=this.props,i=this.ref&&this.ref.current;if(!i)return;const a=void 0===i.textContent?"innerText":"textContent",r=i[a];("boolean"!=typeof t.spaces||t.spaces?r.split(" "):r).length<2?this.setState({manualTruncate:!0}):n.e("ShaveLibrary").then(n.bind(null,"eh6K")).then(({default:n})=>{n(i,e,t)})}render(){const{maxWidthPx:e,maxHeightPx:t,inline:n=!1}=this.props,{manualTruncate:i}=this.state,r={maxWidth:e,maxHeight:t},o=n?{display:"inline",...r}:{...r};return i?Object(a.jsx)("div",{ref:this.ref,style:{...o,overflow:"hidden"},children:this.props.children}):Object(a.jsx)("div",{ref:this.ref,style:o,children:this.props.children})}}t.a=r},WnLB:function(e,t,n){n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return s}));const i="story_pin",a="closefakemodal",r="button",o="video",s="image"},XPo3:function(e,t,n){n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"h",(function(){return o})),n.d(t,"i",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return u}));const i=424,a=800,r=508,o=424,s=278,c=640,l=508,d=1016,u=508},YWqT:function(e,t,n){t.a=(e,t)=>e.getTime()>t.getTime()},ZdHo:function(e,t,n){n.d(t,"f",(function(){return a})),n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"d",(function(){return u}));var i=n("eOdZ");function a(e){return{type:"CONVERSATION_SHOW",payload:{id:e}}}function r(e,t=!1,n=""){return{type:"CONVERSATION_OPEN",payload:{id:e,isPreview:t,contactRequestId:n}}}function o(e,t="",n=!1){return{type:"CONVERSATION_CLOSE",payload:{id:e,contactRequestId:t,isDeclined:n}}}function s(e){return{type:"CONVERSATION_CREATE",payload:e}}function c(e){return{type:"CONVERSATION_DELETE",payload:{id:e}}}const l=(()=>{let e=0;return()=>e++})();function d(e,t,n){let a;const r=new Promise((o,c)=>{a=(a,r)=>{const{text:d,pinId:u,boardId:h,userId:p,didItId:b}=t,f=r();function g(){const t=i.a.create("ConversationMessagesResource",{conversation_id:e,text:d,pin:u,board:h,user:p,user_did_it_data:b,source:n}),r=""+l();a(function(e,t){return{type:"MESSAGE_SEND_PENDING",payload:{id:e,message:t}}}(e,{text:d,sender:f.viewer,created_at:(new Date).toString(),created_ms:Date.now(),id:r,board:null,event_type:null,pin:u?f.pins[u]:null,type:"message",user_did_it_data:null,user:null})),t.callCreate().then(t=>{var n,i,s;a((n=e,i=r,s=t.resource_response.data.id,{type:"MESSAGE_SEND_PENDING_CLEAR",payload:{id:n,messageId:i,newMessageId:s}})),o()}).catch(c)}f.conversations.data[e]?g():i.a.create("ConversationResource",{conversation_id:e}).callGet().then(e=>{const t=e&&e.resource_response&&e.resource_response.data;a(s(t)),g()})},a.getPromise=()=>r});return a}const u=(e,t,n)=>a=>i.a.create("ConversationsResource",{user_ids:e,emails:t,text:""}).callCreate().then(e=>{const t=e&&e.resource_response.data;a(r(t.id))}).catch(e=>{const t=e.message_detail||e.message||"";n(t)})},ZtJp:function(e,t,n){n.d(t,"a",(function(){return a}));var i=n("nKUr");function a({size:e,iconColor:t,backgroundColor:n,grayscale:a=!1}){const r=t||(a?"#333333":"#8E8E8E"),o=n||"#EFEFEF";return Object(i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 36 36",version:"1.1",children:Object(i.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Object(i.jsx)("circle",{fill:o,cx:"18",cy:"18",r:"18"}),Object(i.jsx)("g",{id:"Icons/link",transform:"translate(9.000000, 9.000000)",fill:r,fillRule:"nonzero",children:Object(i.jsx)("path",{d:"M15.75075,5.43075 L12.711,8.46975 L11.916,7.67475 L12.42,7.17075 C12.8595,6.732 12.8595,6.0195 12.42,5.58 C11.9805,5.14125 11.268,5.14125 10.82925,5.58 L10.326,6.084 L9.53025,5.289 L12.56925,2.25 L15.75075,5.43075 Z M8.46975,12.71175 L5.43075,15.75075 L2.24925,12.57 L5.289,9.53025 L6.08325,10.32525 L5.58,10.82925 C5.14125,11.26875 5.14125,11.9805 5.58,12.42 C6.01875,12.8595 6.732,12.85875 7.17075,12.42 L7.674,11.916 L8.46975,12.71175 Z M10.97925,0.65925 L7.9395,3.69825 C7.06125,4.5765 7.06125,6.00075 7.9395,6.87975 L8.73525,7.67475 L7.674,8.73525 L6.879,7.9395 C6.00075,7.06125 4.5765,7.06125 3.69825,7.9395 L0.65925,10.9785 C-0.21975,11.8575 -0.21975,13.28175 0.65925,14.16 L3.84,17.3415 C4.71825,18.21975 6.1425,18.21975 7.02075,17.3415 L10.0605,14.3025 C10.93875,13.4235 10.93875,11.99925 10.0605,11.121 L9.2655,10.32525 L10.326,9.2655 L11.121,10.0605 C11.99925,10.93875 13.4235,10.93875 14.30175,10.0605 L17.34075,7.0215 C18.21975,6.14325 18.21975,4.719 17.34075,3.84 L14.16,0.65925 C13.28175,-0.21975 11.8575,-0.21975 10.97925,0.65925 Z",id:"path-1"})})]})})}},Zxas:function(e,t,n){n.d(t,"a",(function(){return i}));function i(e,t=80,n="…",i=false){let a;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||i)a=e.substring(0,t);else{const n=e.lastIndexOf(" ",t);a=e.substring(0,n)}return a=a.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""),a+n}},Zygf:function(e,t,n){function i(e){return Boolean(e.promoted_is_removable)}n.d(t,"a",(function(){return i}))},exCO:function(e,t,n){n.d(t,"a",(function(){return r}));var i=n("gTC0"),a=n("nKUr");function r({accessibilityLabel:e,handleClick:t,icon:n,iconColor:r,isSVG:o,iconOnly:s}){return Object(a.jsx)(i.a,{accessibilityLabel:e,color:r,onClick:t,icon:n,isSVG:o,iconOnly:s})}},fZ0m:function(e,t,n){const i={get(e){const t="gplus";n.e("ScriptCommon").then(n.bind(null,"6tKR")).then(({default:n})=>{n.load([],"https://apis.google.com/js/client:platform.js",t),n.ready(t,()=>{e(window.gapi)})})}};t.a=i},fZbY:function(e,t,n){const i=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i;t.a=e=>i.test(e)},fepT:function(e,t,n){n.r(t),n.d(t,"SendButton",(function(){return u}));var i=n("exCO"),a=n("7pfs"),r=n("n6mq"),o=n("nKUr");const s={boxShadow:"0 0 0 4px rgba(0, 132, 255, 0.5)",outline:0};function c({accessibilityLabel:e,buttonColor:t,buttonText:n,handleClick:i,icon:c}){return Object(o.jsx)(a.a,{children:({active:a,focused:l,hovered:d,onBlur:u,onFocus:h,onMouseDown:p,onMouseEnter:b,onMouseLeave:f,onMouseUp:g})=>{let j={borderRadius:24};if(d){const e="red"===t?"rgb(216,0,33)":"rgb(226, 226, 226)";j={...j,backgroundColor:e}}if(a){const e="red"===t?"rgb(207,0,31)":"rgb(218, 218, 218)";j={...j,backgroundColor:e}}return l&&(j={...j,...s}),Object(o.jsx)("button",{"aria-label":e,style:{display:"block",border:"none",padding:0,cursor:"pointer",background:"transparent",outline:"none"},onBlur:u,onFocus:h,onMouseDown:p,onMouseEnter:b,onMouseLeave:f,onMouseUp:g,onClick:i,children:Object(o.jsx)(r.f,{color:t,rounding:2,dangerouslySetInlineStyle:{__style:j},children:Object(o.jsxs)(r.f,{display:"flex",minHeight:40,dangerouslySetInlineStyle:{__style:{padding:"10px 14px"}},children:["share"===c&&Object(o.jsxs)(r.f,{children:[Object(o.jsx)(r.v,{accessibilityLabel:"",icon:"share",color:"darkGray",size:18}),Object(o.jsx)(r.f,{paddingX:3})]}),Object(o.jsx)(r.cb,{align:"center",color:"red"===t?"white":"darkGray",weight:"bold",children:n})]})})})}})}var l=n("Ye/N"),d=n("CgR/");const u=({buttonType:e,iconColor:t,handleSendShareFlyoutButtonClick:n,svgPath:a,isSVG:r,iconOnly:s})=>{const d="icon"===e,u=r&&a?a:"share",h={accessibilityLabel:l.a._("Send","Accessible label for button to send this pin","Accessible label for button to send this pin"),handleClick:n,icon:u};return d?Object(o.jsx)(i.a,{...h,isSVG:r,iconOnly:s,iconColor:t}):Object(o.jsx)(c,{...h,buttonColor:"lightGray",buttonText:l.a._("Send","Text for button to send this pin","Text for button to send this pin")})};t.default=d.a.makeSendShareButton(u)},fhk9:function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o}));const i={type:"OPEN_CONVERSATIONS_DROPDOWN"},a={type:"CLOSE_CONVERSATIONS_DROPDOWN"},r=e=>({updateBadgeCount:t=>{e({type:"UPDATE_BADGE_COUNT",payload:t})}}),o=e=>({openConversationsDropdown:()=>e(i),closeConversationsDropdown:()=>e(a)})},gTC0:function(e,t,n){var i=n("1Vso"),a=n("n6mq"),r=n("nKUr");const o="rgb(255,255,255)",s={boxShadow:"0 0 0 4px rgba(0, 132, 255, 0.5)",outline:0},c=({accessibilityLabel:e,active:t,color:n="darkGray",focused:i,hovered:c,icon:l,isSVG:d,iconOnly:u})=>{const h="darkGray"===n?{hovered:{backgroundColor:"rgb(226, 226, 226)"},active:{backgroundColor:"rgb(218, 218, 218)"},focused:s,iconOnly:{backgroundColor:o}}:{hovered:{backgroundColor:"rgba(255,255,255,0.4)"},active:{backgroundColor:o},focused:s,iconOnly:{backgroundColor:"rgba(255,255,255,0.0)"}},p=u?{...h.iconOnly}:{...c?h.hovered:Object.freeze({}),...t?h.active:Object.freeze({}),...i?h.focused:Object.freeze({})},b="white"===n&&t?"darkGray":n;return Object(r.jsx)(a.f,{"data-test-id":"lego-icon-wrapper",color:"transparent",rounding:"circle",dangerouslySetInlineStyle:{__style:p},children:Object(r.jsx)(a.f,{display:"flex",justifyContent:"center",alignItems:"center",dangerouslySetInlineStyle:{__style:{minHeight:u?30:48,minWidth:u?30:48}},children:d?Object(r.jsx)(a.v,{accessibilityLabel:e,dangerouslySetSvgPath:{__path:l},color:b,inline:!0,size:u?16:20}):Object(r.jsx)(a.v,{accessibilityLabel:e,icon:l,color:b,inline:!0,size:u?16:20})})})};t.a=e=>{const{accessibilityLabel:t,color:n="darkGray",onClick:a,icon:o,isSVG:s,shadowType:l,iconOnly:d}=e;return Object(r.jsx)(i.a,{accessibilityLabel:t,className:l||"",dataTestId:"lego-button",onClick:a,style:{display:"block",border:"none",padding:0,cursor:"pointer",background:"transparent",outline:"none",borderRadius:"50%"},children:({active:e,hovered:i,focused:a})=>Object(r.jsx)(c,{active:e,accessibilityLabel:t,color:n,hovered:i,focused:a,icon:o,isSVG:s,iconOnly:d})})}},geGc:function(e,t,n){n.r(t),n.d(t,"default",(function(){return xe}));var i=n("q1tI"),a=n("/MKj"),r=n("Ye/N"),o=n("FDmi"),s=n("hFfv"),c=n("v/Q4"),l=n("oVol"),d=n("n6mq"),u=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 p extends i.Component{constructor(...e){super(...e),h(this,"state",{textValue:this.props.initialTextValue||""}),h(this,"handleSendMessage",()=>{this.props.onSendMessage(this.props.recipient,this.state.textValue)}),h(this,"handleTextValueChange",({value:e})=>{this.setState({textValue:e})})}render(){const{isFlyout:e,onCancelDraft:t,viewerId:n}=this.props,i=this.props.recipient||{},a="conversation_share_suggestion"===i.type,c=a?(i.users||[]).filter(e=>e.id!==n):[];return Object(u.jsxs)(d.f,{paddingX:4,width:360,children:[Object(u.jsxs)(d.f,{alignItems:"center",display:"flex",paddingY:4,children:[Object(u.jsx)(d.f,{height:48,paddingX:1,width:56,children:a?Object(u.jsx)(s.a,{collaborators:c.map(e=>({name:e.full_name||e.first_name,src:e.image_large_url}))}):Object(u.jsx)(o.a,{name:i.full_name||i.email||" ",src:i.image_large_url})}),Object(u.jsxs)(d.f,{direction:"column",flex:"grow",marginStart:1,children:[Object(u.jsx)(d.cb,{weight:"bold",children:a?c.map(e=>e.first_name||e.full_name).join(", "):i.full_name||i.email}),Object(u.jsx)(d.cb,{color:"gray",size:"sm",children:a||i.username?i.username:r.a._("Invite by email","shareSheet.SendObjectDraft.inviteByEmailSubheader","Subheader shown when username is not avaible")})]}),e?Object(u.jsx)(d.w,{accessibilityLabel:r.a._("Cancel share to user","shareSheet.SendObjectDraft.cancelButton","Accessibility label for close button"),icon:"cancel",iconColor:"darkGray",onClick:t,size:"sm"}):null]}),Object(u.jsxs)(d.f,{children:[Object(u.jsx)(d.f,{paddingX:1,children:Object(u.jsx)(d.db,{id:"sendObjectMessage",onChange:this.handleTextValueChange,placeholder:r.a._("Add a message","shareSheet.SendObjectDraft.textareaPlaceholder","Placeholder that tells user this is where they can add a messaage"),value:this.state.textValue||""})}),Object(u.jsx)(d.f,{alignItems:"center",display:"flex",justifyContent:"center",paddingY:4,children:Object(u.jsx)(d.g,{color:"red",inline:!0,onClick:this.handleSendMessage,size:"lg",text:r.a._("Send","shareSheet.SendObjectDraft.sendButton","Button that sends out to email"),type:"submit"})})]})]})}}function b(e){const t=Object(c.a)();return Object(u.jsx)(p,{...e,viewerId:t.isAuth?t.id:""})}var f=n("fZbY");function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class j extends i.Component{constructor(...e){super(...e),g(this,"state",{textValue:this.props.initialTextValue||"",emailValue:""}),g(this,"handleSendEmail",(e,t)=>{if(e){const n={email:e,full_name:e,id:"",image_large_url:"",username:""};this.props.onSendMessage(n,t)}}),g(this,"handleTextValueChange",({value:e})=>{this.setState({textValue:e})}),g(this,"handleEmailValueChange",({value:e})=>{this.setState({emailValue:e})})}render(){const{isFlyout:e,onCancelDraft:t}=this.props;return Object(u.jsxs)(d.f,{display:"flex",direction:"column",column:12,paddingX:4,width:360,children:[Object(u.jsxs)(d.f,{display:"flex",alignItems:"center",paddingY:4,children:[Object(u.jsx)(d.f,{flex:"grow",children:Object(u.jsx)(d.cb,{weight:"bold",children:r.a._("Send to","shareSheet.SendToEmail.label","Send to label")})}),e?Object(u.jsx)(d.w,{accessibilityLabel:r.a._("Cancel share to user","accessibility label for close button","accessibility label for close button"),icon:"cancel",onClick:t,size:"sm"}):null]}),Object(u.jsxs)(d.f,{display:"flex",direction:"column",children:[Object(u.jsx)(d.f,{paddingY:1,marginBottom:4,children:Object(u.jsx)(d.db,{id:"email",onChange:this.handleEmailValueChange,placeholder:r.a._("Enter email address","Email address to send to","Email address to send to"),value:this.state.emailValue||"",rows:1})}),Object(u.jsx)(d.db,{id:"sendObjectMessage",onChange:this.handleTextValueChange,placeholder:r.a._("Add a message","shareSheet.SendToEmail.textareaPlaceholder","Placeholder that tells user this is where they can add a messaage"),value:this.state.textValue||""}),Object(u.jsx)(d.f,{paddingY:4,display:"flex",justifyContent:"center",children:Object(u.jsx)(d.g,{inline:!0,size:"lg",color:"red",onClick:()=>this.handleSendEmail(this.state.emailValue||"",this.state.textValue||""),type:"submit",text:r.a._("Send","shareSheet.SendToEmail.sendButton","Button that sends out to email"),disabled:!Object(f.a)(this.state.emailValue)})})]})]})}}var m=n("vvax");function O({email:e,isValid:t,onClick:n,showSendEmailText:i}){const a=t?r.a._("Click to send!","SendObject.sendToEmail.sendToSubheader","Subeader that indicates user to click in order to send an object"):r.a._("Keep typing!","SendObject.sendToEmail.sendToSubheader","Subeader that indicates user to keep typing until the email address is valid"),s=i?Object(m.b)(r.a._("Email {{ email }}","SendObject.sendToEmail.sendToHeader","Header that indicates user the email address typed in the search field"),{email:e}):Object(m.b)(r.a._("Invite {{ email }}","SendObject.sendToEmail.sendToHeader","Header that indicates user the search query typed in the search field"),{email:e});return Object(u.jsx)(d.f,{marginBottom:4,children:Object(u.jsx)(d.bb,{onTap:()=>{t&&n()},children:Object(u.jsxs)(d.f,{display:"flex",children:[Object(u.jsx)(d.f,{height:48,width:48,children:Object(u.jsx)(o.a,{name:e})}),Object(u.jsxs)(d.f,{paddingX:3,display:"flex",justifyContent:"center",direction:"column",children:[Object(u.jsx)(d.cb,{weight:"bold",size:"lg",children:s}),Object(u.jsx)(d.cb,{size:"sm",color:"gray",children:a})]})]})})})}var v=n("iS6d"),y=n("w1Xl"),x=n("8vQR"),_=n("4cpq");function w(e){const{shouldShowViewChat:t,isSent:n,onClickSend:i,onViewConversation:a}=e;return Object(u.jsx)(d.f,{display:"flex",children:t?Object(u.jsx)(d.bb,{mouseCursor:"pointer",onTap:({event:e})=>{e.stopPropagation(),a()},children:Object(u.jsxs)(d.f,{alignItems:"center","data-test-id":"sharesheet-viewchat-link",display:"flex",children:[Object(u.jsx)(d.cb,{color:"darkGray",size:"md",truncate:!0,weight:"bold",children:r.a._("View chat","SendObject.contactList.viewChatLink","View chat with last sent item")}),Object(u.jsx)(d.f,{marginStart:1,children:Object(u.jsx)(d.v,{accessibilityLabel:r.a._("View chat forward icon","SendObject.contactList.viewChatLink","View chat with last sent item"),color:"darkGray",icon:"arrow-forward",size:14})})]})}):Object(u.jsx)(_.a,{id:n?"sharesheet-viewchat-link":"sharesheet-send-button",children:Object(u.jsx)(d.g,{color:n?"gray":"red",disabled:n,inline:!0,onClick:i,size:"lg",text:n?r.a._("Sent","SendObject.LEGOSendObjectTypeahead","Pin is sent to current contact"):r.a._("Send","SendObject.LEGOSendObjectTypeahead","Send pin to current contact")})})})}var S=n("U4JR");function C(e){var t,n,a;const{item:r,textFieldValue:l,onSendMessage:h,onShowSendDraft:p,onViewConversation:b,sentHistory:f}=e,[g,j]=Object(i.useState)(!1),[m,O]=Object(i.useState)(!1),[_,C]=Object(i.useState)(!1),k=r.id||"string"==typeof r.email&&r.email||"",L=k in f,I=""!==l,E=null!==(t=f[k])&&void 0!==t?t:"",P=Object(c.a)().id||"",T="conversation_share_suggestion"===r.type,D=T?(r.users||[]).filter(e=>e.id!==P):[],R=r.debug_reason&&r.debug_reason.readable_reason;let F="";"string"!=typeof r.full_name||r.full_name.match(/^\s*$/)?"string"!=typeof r.email||r.email.match(/^\s*$/)||(F=r.email):F=r.full_name;return g?Object(u.jsx)(d.f,{alignItems:"center",display:"flex",position:"relative",width:"100%",paddingY:2,children:Object(u.jsx)(y.a,{identifier:null!==(n=r.id)&&void 0!==n?n:r.email,onUndoHide:()=>j(!1),component:13029,element:11918,isGroupChat:D.length>1})}):Object(u.jsxs)(d.f,{alignItems:"center","data-test-id":"sharesheet-contact-item",display:"flex",paddingY:2,position:"relative",width:"100%",children:[Object(u.jsx)(d.bb,{mouseCursor:"pointer",onTap:({event:e})=>{e.stopPropagation(),p(r)},children:Object(u.jsx)(d.j,{onMouseEnter:()=>{O(!(I||_&&L))},onMouseLeave:()=>O(!1),children:Object(u.jsxs)(d.f,{alignItems:"center",display:"flex",children:[Object(u.jsx)(d.f,{height:48,width:48,children:T?Object(u.jsx)(s.a,{collaborators:D.map(e=>({name:e.full_name||e.first_name,src:e.image_medium_url}))}):Object(u.jsx)(o.a,{accessibilityLabel:"",name:F,src:r.image_medium_url})}),Object(u.jsxs)(d.f,{alignItems:"center",display:"flex",flex:"grow",height:"100%",width:"100%",children:[Object(u.jsxs)(d.f,{alignItems:"center",dangerouslySetInlineStyle:{__style:{paddingLeft:8,paddingRight:16}},flex:"grow",children:[Object(u.jsx)(d.f,{marginBottom:1,children:Object(u.jsx)(d.cb,{color:"darkGray",truncate:!0,weight:"bold",children:T?D.map(e=>e.first_name||e.full_name).join(", "):F})}),I&&R?Object(u.jsx)(d.cb,{color:"gray",size:"sm",children:R}):"string"==typeof r.username&&Object(u.jsx)(d.cb,{color:"gray",size:"sm",children:r.username})]}),Object(u.jsxs)(d.f,{flex:"none",display:"flex",justifyContent:"end",alignItems:"center",children:[m&&Object(u.jsx)(d.f,{display:"flex",marginEnd:2,children:Object(u.jsx)(x.a,{identifier:null!==(a=r.id)&&void 0!==a?a:r.email,onHide:()=>j(!0),component:13029,element:11917})}),Object(u.jsx)(w,{shouldShowViewChat:L,isSent:_,onClickSend:({event:t})=>{t.stopPropagation(),(()=>{var t;const{idx:n}=e,i=l?1044:1039;Object(S.b)(101,{component:13029,element:i,entered_query:l,result_index:n+1,rs:null===(t=r.debug_reason)||void 0===t?void 0:t.reason})})(),C(!0),h(r),O(!1)},onViewConversation:()=>b(E)})]})]})]})})}),Object(u.jsx)(v.a.Consumer,{children:e=>{var t;return e?Object(u.jsx)(d.f,{dangerouslySetInlineStyle:{__style:{pointerEvents:"none",backgroundColor:"rgba(255,255,255,0.5)"}},position:"absolute",right:!0,top:!0,children:Object(u.jsx)(d.u,{color:"blue",size:"sm",children:null===(t=r.debug_reason)||void 0===t?void 0:t.reason})}):null}})]})}var k=n("ANjH"),L=n("ZdHo"),I=n("fhk9"),E=n("w70y");var P=Object(k.compose)(Object(E.b)({name:"ShareSuggestionsResource",key:"shareSuggestionsResource",options:{field_set_key:"default"},allowStale:!1}),Object(E.b)({name:"ShareSuggestionsTypeaheadResource",key:"shareSuggestionsTypeaheadResource",options:e=>({field_set_key:"default",term:e.value||"default"}),allowStale:!1}))((function(e){const{onChange:t,onSendMessage:n,onShowSendDraft:o,onShowImportContacts:s,sentHistory:c,value:l,shareSuggestionsResource:{isLoaded:h},shareSuggestionsTypeaheadResource:{isLoaded:p},paddingX:b}=e,g=Object(a.useSelector)(e=>e.social.shareSuggestions[l]||[]);Object(i.useEffect)(()=>{if(!l&&h){const e=g.length>0?7511:7512;Object(S.b)(e,{component:56,view:70,viewParameter:256})}},[h]);const j=Object(a.useDispatch)(),m=t=>{const{isFlyout:n,onHide:i}=e;!n&&i&&i(),(e=>{j(Object(L.e)(e))})(t),j(I.a)},v=g.map((e,t)=>{const i=`${t}-${l?"search":"suggestion"}`,a={item:e,idx:t,onSendMessage:n,onShowSendDraft:o,onViewConversation:m,sentHistory:c,textFieldValue:l};return Object(u.jsx)(C,{...a},i)}),y=0===g.length&&(""===l&&!h||""!==l&&!p);return Object(u.jsxs)(d.f,{children:[Object(u.jsx)(d.f,{display:"flex",paddingX:b,position:"relative",children:Object(u.jsx)(d.f,{"data-test-id":"sharesheet-search-user",width:"100%",children:Object(u.jsx)(d.Q,{accessibilityLabel:r.a._("Search for a name or email","SendObject.searchbar.accesibilityLabel","accessible label"),id:"search",onChange:t,placeholder:r.a._("Name or email","SendObject.searchbar.placeholder","Placeholder text on search bar for searching contacts on sharesheet"),size:"lg",value:l})})}),Object(u.jsx)(d.f,{dangerouslySetInlineStyle:{__style:{overflowY:"scroll",overflowX:"hidden",zIndex:1e3}},height:185,marginBottom:4,marginTop:2,children:Object(u.jsxs)(d.f,{paddingX:b,children:[Object(u.jsx)(d.f,{paddingY:y?2:0,children:Object(u.jsx)(d.U,{accessibilityLabel:r.a._("Loading Conversation Messages","SendObject.contactList.spinner","Spinner that indicates then the contact list is being loaded"),show:y})}),Object(u.jsxs)(d.f,{children:[v,l&&Object(u.jsxs)(d.f,{children:[Object(u.jsx)(d.j,{children:Object(u.jsx)(O,{email:l,isSend:!0,isValid:Object(f.a)(l),onClick:()=>o({email:l,full_name:l}),showSendEmailText:!1})}),!y&&Object(u.jsx)(d.f,{width:"100%",children:Object(u.jsx)(d.j,{children:Object(u.jsx)(d.bb,{onTap:s,children:Object(u.jsxs)(d.f,{alignItems:"center",direction:"row",display:"flex",children:[Object(u.jsx)(d.f,{alignItems:"center",color:"lightGray",display:"flex",height:48,justifyContent:"center",rounding:"circle",width:48,children:Object(u.jsx)(d.v,{accessibilityLabel:"people",color:"darkGray",icon:"people",size:24})}),Object(u.jsx)(d.f,{paddingX:3,children:Object(u.jsx)(d.cb,{weight:"bold",children:r.a._("Choose from contacts","SendObject.typeahead.contactHeader","Header that indicates user to choose from contact list")})})]})})})})]})]})]})})]})})),T=n("d7ng"),D=n("ZtJp"),R=n("WM6B");var F=({text:e})=>Object(u.jsx)(d.cb,{align:"center",size:"sm",children:Object(u.jsx)(R.a,{maxWidthPx:128,maxHeightPx:50,children:e})});var M=({iconSize:e,marginEnd:t,children:n})=>Object(u.jsx)(d.f,{alignItems:"center",direction:"column",display:"flex",marginEnd:t?2:0,width:e+24,children:n});const A=()=>n.e("clipboardLibrary").then(n.t.bind(null,"sxGJ",7));var B=({onClick:e,iconColor:t,iconSize:n,backgroundColor:a,invitePath:o,marginEnd:s})=>{const[c,l]=Object(i.useState)(!1),h=Object(i.useRef)(null);return Object(i.useEffect)(()=>{A().then(({default:e})=>{e.isSupported()&&(e=>{if(!h.current||!A)return;new e(h.current,{text:()=>o}).on("error",e=>{throw new Error("<ShareSocialBar /> error: copy command failed")})})(e)})},[o]),Object(u.jsx)(M,{iconSize:n,marginEnd:s||!1,children:Object(u.jsxs)(d.f,{ref:h,children:[Object(u.jsx)(d.bb,{onTap:()=>{e(),l(!0),setTimeout(()=>{l(!1)},3e3)},children:Object(u.jsx)(d.f,{alignItems:"center",direction:"column",display:"flex",justifyContent:"center",children:Object(u.jsx)(D.a,{backgroundColor:a,iconColor:t,size:n})})}),Object(u.jsx)(F,{text:c?r.a._("Link copied!","shareSheet.socialBar.copyLinkButton.LinkCopied","Notification link was copied to clipboard"):r.a._("Copy link","shareSheet.socialBar.copyLinkButton.CopyLink","Copy Pin URL to clipboard")})]})})},N=n("SNfw"),U=n("K316"),V=n("TvzZ");function z({size:e=48,iconColor:t,backgroundColor:n,grayscale:i=!1}){const a=t||(i?"#333333":"#8E8E8E"),r=n||"#EFEFEF";return Object(u.jsx)("svg",{viewBox:`0 0 ${e} ${e}`,width:e,height:e,xmlns:"http://www.w3.org/2000/svg",children:Object(u.jsxs)("g",{fill:"none",strokeWidth:"1",stroke:"none",fillRule:"evenodd",children:[Object(u.jsx)("circle",{fill:r,cx:"24",cy:"24",r:"24",stroke:"none"}),Object(u.jsxs)("g",{transform:"translate(14.000000, 14.000000)",fill:a,children:[Object(u.jsx)("circle",{cx:"10",cy:"10",r:"6"}),Object(u.jsx)("circle",{cx:"17",cy:"3",r:"2"}),Object(u.jsx)("circle",{cx:"17",cy:"17",r:"2"}),Object(u.jsx)("circle",{cx:"19",cy:"10",r:"1"}),Object(u.jsx)("circle",{cx:"10",cy:"19",r:"1"}),Object(u.jsx)("circle",{cx:"1",cy:"10",r:"1"}),Object(u.jsx)("circle",{cx:"10",cy:"1",r:"1"}),Object(u.jsx)("circle",{cx:"3",cy:"17",r:"2"}),Object(u.jsx)("circle",{cx:"3",cy:"3",r:"2"})]})]})})}function H({sharedObject:e,onCreatePincodeClick:t,iconColor:n,iconSize:i,backgroundColor:a}){const o=Object(c.a)();return t&&[l.a.BOARD,l.a.PINNER,l.a.USER].includes(e.type)&&o.isAuth&&(e.id===o.id||o.isEmployee)?Object(u.jsxs)(M,{iconSize:i,marginEnd:!0,children:[Object(u.jsx)(d.bb,{fullWidth:!1,onTap:t,children:Object(u.jsx)(z,{backgroundColor:a,iconColor:n,size:i})}),Object(u.jsx)(F,{text:r.a._("Pincode","Share via pincode","Share via pincode")})]},"pincode"):null}var G=n("mBfy"),W=n("QAzJ"),q=n("udob");const Z="#EFEFEF",K="#333333";function Y({size:e=48,grayscale:t=!1}){const n=t?K:"#FFFFFF",i=t?Z:"#1877f2";return Object(u.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${e} ${e}`,width:e,height:e,children:[Object(u.jsx)("title",{children:"f_logo_RGB-Blue_1024"}),Object(u.jsxs)("g",{id:"surface1",children:[Object(u.jsx)("path",{style:{fill:i,stroke:"transparent"},d:"M 48 24 C 48 10.746094 37.253906 0 24 0 C 10.746094 0 0 10.746094 0 24 C 0 35.980469 8.777344 45.90625 20.25 47.707031 L 20.25 30.9375 L 14.15625 30.9375 L 14.15625 24 L 20.25 24 L 20.25 18.710938 C 20.25 12.699219 23.832031 9.375 29.316406 9.375 C 31.941406 9.375 34.6875 9.84375 34.6875 9.84375 L 34.6875 15.75 L 31.660156 15.75 C 28.679688 15.75 27.75 17.601562 27.75 19.5 L 27.75 24 L 34.40625 24 L 33.34375 30.9375 L 27.75 30.9375 L 27.75 47.707031 C 39.222656 45.90625 48 35.980469 48 24 Z M 48 24 "}),Object(u.jsx)("path",{style:{fill:n,stroke:"transparent"},d:"M 33.34375 30.9375 L 34.40625 24 L 27.75 24 L 27.75 19.5 C 27.75 17.601562 28.679688 15.75 31.660156 15.75 L 34.6875 15.75 L 34.6875 9.84375 C 34.6875 9.84375 31.941406 9.375 29.316406 9.375 C 23.832031 9.375 20.25 12.699219 20.25 18.710938 L 20.25 24 L 14.15625 24 L 14.15625 30.9375 L 20.25 30.9375 L 20.25 47.707031 C 22.734375 48.097656 25.265625 48.097656 27.75 47.707031 L 27.75 30.9375 Z M 33.34375 30.9375 "})]})]})}function X({size:e=48,grayscale:t=!1}){const n=t?K:"#FFFFFF",i=t?Z:"#0DC2FF";return Object(u.jsx)("svg",{viewBox:`0 0 ${e} ${e}`,width:e,height:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(u.jsxs)("g",{id:"surface1",children:[Object(u.jsx)("path",{style:{fill:i,stroke:"transparent"},d:"M 48 24 C 48 37.253906 37.253906 48 24 48 C 10.746094 48 0 37.253906 0 24 C 0 10.746094 10.746094 0 24 0 C 37.253906 0 48 10.746094 48 24 Z M 48 24 "}),Object(u.jsx)("path",{style:{fill:n,stroke:"transparent"},d:"M 19.609375 36.660156 C 30.253906 36.660156 36.070312 27.839844 36.070312 20.195312 C 36.070312 19.945312 36.070312 19.691406 36.058594 19.453125 C 37.1875 18.636719 38.171875 17.617188 38.953125 16.453125 C 37.921875 16.90625 36.804688 17.21875 35.628906 17.363281 C 36.828125 16.644531 37.738281 15.515625 38.171875 14.160156 C 37.054688 14.820312 35.820312 15.300781 34.5 15.5625 C 33.445312 14.4375 31.945312 13.738281 30.277344 13.738281 C 27.085938 13.738281 24.492188 16.332031 24.492188 19.523438 C 24.492188 19.980469 24.539062 20.425781 24.648438 20.84375 C 19.835938 20.605469 15.574219 18.300781 12.71875 14.796875 C 12.226562 15.648438 11.941406 16.644531 11.941406 17.699219 C 11.941406 19.703125 12.960938 21.480469 14.519531 22.511719 C 13.570312 22.488281 12.683594 22.222656 11.902344 21.792969 C 11.902344 21.816406 11.902344 21.839844 11.902344 21.863281 C 11.902344 24.671875 13.894531 27 16.546875 27.539062 C 16.066406 27.671875 15.550781 27.742188 15.023438 27.742188 C 14.652344 27.742188 14.292969 27.707031 13.933594 27.636719 C 14.664062 29.941406 16.800781 31.609375 19.332031 31.65625 C 17.351562 33.203125 14.855469 34.128906 12.144531 34.128906 C 11.675781 34.128906 11.21875 34.105469 10.765625 34.042969 C 13.296875 35.699219 16.34375 36.660156 19.609375 36.660156 "})]})})}function $({size:e=48,grayscale:t=!1}){const n=t?K:"#FFFFFF",i=t?Z:"#25d366";return Object(u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${e} ${e}`,width:e,height:e,version:"1.1",children:Object(u.jsxs)("g",{id:"surface1",children:[Object(u.jsx)("path",{style:{fill:i,stroke:"transparent"},d:"M 48 24 C 48 37.253906 37.253906 48 24 48 C 10.746094 48 0 37.253906 0 24 C 0 10.746094 10.746094 0 24 0 C 37.253906 0 48 10.746094 48 24 Z M 48 24 "}),Object(u.jsx)("path",{style:{fill:n,stroke:"transparent"},d:"M 33.851562 13.910156 C 28.871094 9.039062 21.070312 8.566406 15.539062 12.800781 C 10.011719 17.039062 8.4375 24.695312 11.851562 30.769531 L 9.871094 38 L 17.28125 36 C 19.332031 37.148438 21.644531 37.757812 24 37.769531 C 31.730469 37.769531 38 31.503906 38 23.769531 C 38.019531 20.058594 36.542969 16.496094 33.910156 13.878906 M 24 35.410156 C 21.921875 35.410156 19.878906 34.851562 18.089844 33.789062 L 17.671875 33.539062 L 13.269531 34.699219 L 14.441406 30.410156 L 14.128906 30 C 11.304688 25.523438 11.863281 19.707031 15.484375 15.847656 C 19.109375 11.992188 24.886719 11.074219 29.527344 13.621094 C 34.167969 16.164062 36.5 21.523438 35.199219 26.652344 C 33.898438 31.785156 29.292969 35.386719 24 35.410156 M 30.371094 26.710938 C 30.019531 26.539062 28.300781 25.710938 27.980469 25.578125 C 27.660156 25.449219 27.429688 25.398438 27.199219 25.75 C 26.96875 26.101562 26.300781 26.890625 26.089844 27.121094 C 25.878906 27.351562 25.679688 27.378906 25.328125 27.210938 C 24.304688 26.792969 23.359375 26.203125 22.53125 25.46875 C 21.765625 24.765625 21.109375 23.953125 20.578125 23.058594 C 20.378906 22.710938 20.578125 22.519531 20.738281 22.339844 C 20.898438 22.160156 21.089844 21.929688 21.261719 21.730469 C 21.40625 21.554688 21.523438 21.359375 21.609375 21.148438 C 21.71875 20.960938 21.71875 20.730469 21.609375 20.539062 C 21.519531 20.359375 20.820312 18.640625 20.53125 17.941406 C 20.238281 17.238281 19.960938 17.351562 19.75 17.339844 L 19 17.339844 C 18.640625 17.351562 18.304688 17.511719 18.070312 17.78125 C 17.269531 18.53125 16.820312 19.589844 16.839844 20.691406 C 16.957031 22.007812 17.453125 23.261719 18.269531 24.300781 C 19.773438 26.554688 21.84375 28.375 24.269531 29.578125 C 24.921875 29.859375 25.589844 30.105469 26.269531 30.308594 C 26.980469 30.527344 27.734375 30.578125 28.46875 30.449219 C 29.453125 30.25 30.308594 29.648438 30.828125 28.789062 C 31.058594 28.269531 31.128906 27.691406 31.03125 27.128906 C 30.941406 26.988281 30.710938 26.898438 30.359375 26.71875 "})]})})}function J({size:e=48,grayscale:t=!1}){const n=t?K:"#fff",i=t?Z:"#00b900";return Object(u.jsx)("svg",{width:e,height:e,viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Object(u.jsxs)("g",{id:"FULL_COLOR_ICON","data-name":"FULL COLOR ICON",children:[Object(u.jsx)("path",{style:{fill:i,stroke:"transparent"},d:"M18,35.97644h0a18.05292,18.05292,0,0,1-18-18H0a18.05292,18.05292,0,0,1,18-18h0a18.05292,18.05292,0,0,1,18,18h0A17.9886,17.9886,0,0,1,18,35.97644Z",transform:"translate(0 0.02356)"}),Object(u.jsxs)("g",{id:"TYPE_A","data-name":"TYPE A",children:[Object(u.jsx)("path",{style:{fill:n,stroke:"transparent"},d:"M28.5,17.05606c0-4.7-4.7-8.5-10.5-8.5s-10.5,3.8-10.5,8.5c0,4.2,3.7,7.7,8.8,8.4.3.1.8.2.9.5a1.37864,1.37864,0,0,1,0,.9s-.1.7-.1.9c0,.3-.2,1,.9.6a36.05491,36.05491,0,0,0,8.2-6.1h0a7.86275,7.86275,0,0,0,2.3-5.2",transform:"translate(0 0.02356)"}),Object(u.jsx)("path",{style:{fill:i,stroke:"transparent"},d:"M15.8,14.75606h-.7a.21508.21508,0,0,0-.2.2v4.6a.21508.21508,0,0,0,.2.2h.7a.21508.21508,0,0,0,.2-.2v-4.6c0-.1,0-.2-.2-.2",transform:"translate(0 0.02356)"}),Object(u.jsx)("path",{style:{fill:i,stroke:"transparent"},d:"M20.9,14.75606h-.7a.21508.21508,0,0,0-.2.2v2.7l-2.1-2.8H17a.21508.21508,0,0,0-.2.2v4.6a.21508.21508,0,0,0,.2.2h.7a.21508.21508,0,0,0,.2-.2v-2.7l2.1,2.8.1.1h.8a.21508.21508,0,0,0,.2-.2v-4.6c0-.2-.1-.3-.2-.3",transform:"translate(0 0.02356)"}),Object(u.jsx)("path",{style:{fill:i,stroke:"transparent"},d:"M14.1,18.55606h-2v-3.6a.21508.21508,0,0,0-.2-.2h-.7a.21508.21508,0,0,0-.2.2v4.6h0c0,.1,0,.1.1.1h0l.1.1h2.9a.21508.21508,0,0,0,.2-.2v-.7c0-.2-.1-.3-.2-.3",transform:"translate(0 0.02356)"}),Object(u.jsx)("path",{style:{fill:i,stroke:"transparent"},d:"M25,15.85606a.21508.21508,0,0,0,.2-.2v-.7a.21508.21508,0,0,0-.2-.2H22c-.1,0-.1,0-.1.1h0l-.1.1h0v4.6h0c0,.1,0,.1.1.1h0l.1.1h3a.21508.21508,0,0,0,.2-.2v-.7a.21508.21508,0,0,0-.2-.2H23v-.8h2a.21508.21508,0,0,0,.2-.2v-.7a.21508.21508,0,0,0-.2-.2H23v-.8h2Z",transform:"translate(0 0.02356)"})]})]})})}var Q=n("nGHF");function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const te=48,ne="#111111",ie="#EFEFEF",ae={backgroundColor:"#ffffff",border:"none",padding:0},re=e=>{Object(V.default)(t=>{t&&(t.getUserID()?e():t.login(()=>{e()}))},U.a)};class oe extends i.Component{constructor(...e){super(...e),ee(this,"state",{invitePath:"",whatsappInviteData:null,inviteData:null,whatsappURL:"",whatsAppLogged:!1,copyLinkLogged:!1}),ee(this,"mounted",!1),ee(this,"logShareInviteLink",()=>{const{copyLinkLogged:e,inviteData:t}=this.state,n=this.getShareOptions(12);e||(q.a.logShareInvite(n,t),this.setState({copyLinkLogged:!0}))}),ee(this,"createShareInviteLink",()=>{const e=this.getShareOptions(12),{inviteData:t}=this.state;t||q.a.createShareInviteData(e).then(e=>{const t=e.invite_url;t?this.setState({invitePath:t,inviteData:e}):this.setState({inviteData:e})})}),ee(this,"selectText",e=>{e.target.select()})}componentDidMount(){this.mounted=!0,this.getWhatsAppURL(),this.createShareInviteLink()}componentWillUnmount(){this.mounted=!1}getShareOptions(e){const{sharedObject:t}=this.props;return{invite_category:t.type===l.a.SEARCH?10:3,invite_channel:e,object_type:t.type,object_id:t.id,name:t.name,description:t.description||"",path:t.url,picture:t.imageUrl}}getSendDisplayText(e){switch(e){case l.a.BOARD:return r.a._("Send this board","Sharesheet.ShareSocialBar","social media sharing board");case l.a.PIN:return r.a._("Send this Pin","Sharesheet.ShareSocialBar","social media sharing Pin");case l.a.PINNER:return r.a._("Send this profile","Sharesheet.ShareSocialBar","social media sharing pinner profile");default:return""}}getWhatsAppURL(){const e=this.getShareOptions(10);q.a.createShareInviteData(e).then(e=>{const t=e.message;if(t){const n=encodeURIComponent(t);this.setState({whatsappInviteData:e,whatsappURL:"https://web.whatsapp.com/send?text="+n})}else this.setState({whatsappURL:"https://web.whatsapp.com/send?text="+Object(T.a)(this.props.sharedObject.url)})})}checkWritePermissions(){return!!G.default.isWriteBanned()}handleSocialShareClick(e){if(this.checkWritePermissions())return;let t=46;"facebook"===e?(this.openFacebookDialog(),t=257):"twitter"===e?(this.openTwitterDialog(),t=256):"messenger"===e?(this.openFbMessengerDialog(),t=950):"whatsapp"===e?(this.openWhatsAppDialog(),t=951):"pincode"===e?this.props.onCreatePincodeClick&&this.props.onCreatePincodeClick():"copylink"===e?(this.openShareUrlLink(),t=100):"email"===e?(this.openEmailDialog(),t=258):"line"===e&&(this.openLineDialog(),t=952),this.props.onExternalSend&&this.props.onExternalSend(),Object(S.b)(101,{component:153,element:t})}openEmailDialog(){this.props.onEmailIconClick()}openFacebookDialog(){re(()=>{q.a.shareFacebookInvite(this.getShareOptions(5))})}openFbMessengerDialog(){re(()=>{q.a.shareFbMessengerInvite(this.getShareOptions(6))})}openWhatsAppDialog(){const e=this.getShareOptions(10);this.state.whatsAppLogged||(q.a.logShareInvite(e,this.state.whatsappInviteData),this.setState({whatsAppLogged:!0}))}openShareUrlLink(){this.logShareInviteLink()}openTwitterDialog(){q.a.shareTwitterInvite(this.getShareOptions(9))}openLineDialog(){q.a.shareLineInvite(this.getShareOptions(8))}renderShareOptions(){const{sharedObject:e,onCreatePincodeClick:t,showLineShare:n}=this.props;return Object(u.jsxs)(i.Fragment,{children:[Object(u.jsxs)(d.f,{display:"flex",justifyContent:"around",children:[n&&Object(u.jsxs)(M,{iconSize:te,marginEnd:!0,children:[Object(u.jsx)("button",{"aria-label":r.a._("Share on LINE","sharesheet.shareSocialBar.ShareLine","Button that will share via Line"),onClick:()=>this.handleSocialShareClick("line"),style:ae,children:Object(u.jsx)(J,{size:48})}),Object(u.jsx)(F,{text:r.a._("LINE","sharesheet.shareSocialBar.ShareLineLabel","Line button label")})]}),Object(u.jsxs)(M,{iconSize:te,marginEnd:!0,children:[Object(u.jsx)("button",{"aria-label":r.a._("Share on WhatsApp","sharesheet.shareSocialBar.ShareWhatsapp","Button that will share via WhatsApp"),onClick:()=>this.handleSocialShareClick("whatsapp"),style:ae,tabIndex:"-1",children:Object(u.jsx)("a",{href:this.state.whatsappURL,rel:"noopener noreferrer",target:"_blank",children:Object(u.jsx)($,{size:te})})}),Object(u.jsx)(F,{text:r.a._("WhatsApp","sharesheet.shareSocialBar.ShareWhatsappLabel","WhatsApp button label")})]}),Object(u.jsxs)(M,{iconSize:te,marginEnd:!0,children:[Object(u.jsx)("button",{"aria-label":r.a._("Share on Facebook","sharesheet.shareSocialBar.ShareFacebook","Button that will share via Facebook"),onClick:()=>this.handleSocialShareClick("facebook"),style:ae,children:Object(u.jsx)(Y,{size:te})}),Object(u.jsx)(F,{text:r.a._("Facebook","sharesheet.shareSocialBar.ShareFacebookLabel","Facebook button label")})]}),Object(u.jsxs)(M,{iconSize:te,marginEnd:!n,children:[Object(u.jsx)("button",{"aria-label":r.a._("Share on Twitter","sharesheet.shareSocialBar.ShareTwitter","Button that will share via Twitter"),onClick:()=>this.handleSocialShareClick("twitter"),style:ae,children:Object(u.jsx)(X,{size:te})}),Object(u.jsx)(F,{text:r.a._("Twitter","sharesheet.shareSocialBar.ShareTwitterLabel","Twitter button label")})]}),!n&&Object(u.jsx)(M,{iconSize:te,marginEnd:!1,children:this.renderEmail()})]}),Object(u.jsxs)(d.f,{display:"flex",paddingY:4,children:[Object(u.jsx)(H,{backgroundColor:ie,iconColor:ne,iconSize:te,onCreatePincodeClick:t,sharedObject:e}),Object(u.jsx)(B,{backgroundColor:ie,iconColor:ne,iconSize:te,invitePath:this.state.invitePath,onClick:()=>this.handleSocialShareClick("copylink"),marginEnd:n},"copylink"),n&&this.renderEmail()]})]})}renderEmail(){return Object(u.jsxs)(M,{iconSize:te,marginEnd:!0,children:[Object(u.jsx)(d.f,{display:"inlineBlock",children:Object(u.jsx)("button",{"aria-label":r.a._("Share on Email","sharesheet.shareSocialBar.ShareEmail","Button that will share via Email"),onClick:()=>this.handleSocialShareClick("email"),style:ae,children:Object(u.jsx)(N.a,{backgroundColor:ie,iconColor:ne,size:te})})}),Object(u.jsx)(F,{text:r.a._("Email","Share via email","Share via email")})]},"email")}render(){const{sharedObject:e,paddingX:t}=this.props;return Object(u.jsxs)(d.f,{paddingX:t,children:[Object(u.jsx)(d.f,{alignContent:"center",alignItems:"center",display:"flex",height:64,justifyContent:"center",children:Object(u.jsx)(d.cb,{size:"lg",weight:"bold",children:this.getSendDisplayText(e.type)})}),Object(u.jsx)(d.f,{paddingX:2,children:this.renderShareOptions()})]})}}function se(e){const t=Object(W.b)("web_auth_line_share"),n=Object(c.a)().isAuth&&t().anyEnabled;return Object(u.jsx)(oe,{...e,toastManagerContext:Object(Q.b)(),viewer:Object(c.a)(),showLineShare:n})}var ce=n("7w6Q"),le=n("eOdZ"),de=n("M1Uz");function ue(e){switch(e){case"AuthHomefeed":return 13;case"BaseBoardPinGrid":case"BoardActivityThreadItem":return 5;case"BoardMoreIdeasTabContent":return 23;case"ConversationView":return 19;case"FollowingFeedGrid":return 21;case"ProfilePromotablePinCard":return 1;case"RelatedPinGrid":case"RelatedProductsFeed":return 14;case"RelatedProductsExploreTab":return 4;case"ShoppingPackageItem":case"ShoppingSquareGridHomefeedBoth":case"ShoppingSquareGridPdp":case"ShoppingSquareGridRelatedProducts":case"ShoppingSquareGridRelatedProductsBoth":case"ProductPinsFeed":return 27;case"StoryPinFeedGrid":return 28;case"TodayArticleFeed":return 20;case"UserProfilePinGrid":default:return e}}var he=n("ENhS");const pe=(e,t)=>{const n={};return e.forEach(e=>{n[e]=t}),n};var be=Object(a.connect)(null,e=>({createConversation:t=>e(Object(L.b)(t)),sendMessage:t=>e(t)}))((function(e){const[t,n]=Object(i.useState)(!1),[a,o]=Object(i.useState)(null),[s,c]=Object(i.useState)({}),[h,p]=Object(i.useState)(""),[f]=Object(i.useState)((e=>"today_article"===e?r.a._("Check out this article on Pinterest!","sendObject.initialTextValue.todayArticle","pre-populated share message when a user tries to send a Today Article"):"")(e.sendType)),{showOneToast:g}=Object(Q.b)(),{surface:m}=Object(he.b)(),O=(t,i)=>{n(!1),e.onMessageSent(),((t,n)=>{const{sharedObject:i}=e,a=i.id;ce.a.increment("web.sharesheet.internal.send",1,{status:"success"}),Object(S.b)(180,{element:276,objectId:a,conversation_id:t,pin_id:n})})(t,i)},v=e=>{ce.a.increment("web.sharesheet.internal.send",1,{status:"fail"});const t=e.message_detail||e.message;t&&g(({onHide:e})=>Object(u.jsx)(de.a,{color:"red",duration:5e3,onHide:e,text:t}))},y=async(t,n,i)=>{const{createConversation:a,sharedObject:r,sendType:o}=e,l=r.id,d={emails:n,user_ids:t,text:i,source:ue(m)};d[o]=l;const u=le.a.create("ConversationsResource",d);try{const e=await u.callCreate(),i=e&&e.resource_response.data;a(i),O(i.id,"pin"===o?l:null),t.length>0?c({...s,...pe(t,i.id)}):c({...s,...pe(n,i.id)})}catch(h){v(h)}},x=(t,n)=>{"conversation_share_suggestion"===t.type?((t,n,i)=>{const{sendMessage:a,sharedObject:r,sendType:o}=e;let l;switch(o){case"pin":l="pinId";break;case"board":l="boardId";break;case"did_it":l="didItId";break;case"user":case"pinner":l="userId"}const d=l?Object(L.g)(t,{text:n,[l]:r.id,source:ue(m)}):void 0;d&&(a(d),d.getPromise().then(()=>{O(t,"pin"===o?r.id:null),c({...s,[t]:t})}).catch(e=>{v(e)}))})(t.id,n):"contact_share_suggestion"!==t.type&&"user_share_suggestion"!==t.type&&"user"!==t.type||!t.username?y([],[t.email],n):y([t.id],[],n),Object(S.b)(101,{component:56,element:276})},_=(t,n)=>{e.sendType!==l.a.SEARCH||n?x(t,n):le.a.create("ShareLinkResource",{invite_category:10,url:e.sharedObject.url}).callCreate().then(e=>Promise.resolve(e.resource_response.data),e=>Promise.reject(e)).then(e=>{const n=e.message;x(t,n)})},w=()=>{n(!1),o(null)},{onCreatePincodeClick:C,onShowImport:k,sendType:I,sharedObject:E,isFlyout:T,onHide:D,onExternalSend:R}=e,F="email"===a?Object(u.jsx)(j,{initialTextValue:f,isFlyout:T,objectId:E.id,objectType:I,onCancelDraft:w,onHide:D,onSendMessage:_}):Object(u.jsx)(b,{initialTextValue:f,isFlyout:T,objectId:E.id,objectType:I,onCancelDraft:w,onHide:D,onSendMessage:_,recipient:"object"==typeof a?a:void 0});return t?F:Object(u.jsxs)(d.f,{color:"white",children:[Object(u.jsx)(se,{onCreatePincodeClick:C,onEmailIconClick:()=>{n(!0),o("email")},onExternalSend:R,onHide:D,paddingX:4,sharedObject:E}),Object(u.jsx)(d.f,{children:Object(u.jsx)(P,{isFlyout:T,onChange:({value:e})=>{p(e),Object(S.b)(4113,{component:13029,element:1043})},onHide:D,onSendMessage:_,onShowImportContacts:k,onShowSendDraft:e=>{n(!0),o(e),p("")},paddingX:4,sentHistory:s,value:h})})]})})),fe=n("TSYQ"),ge=n.n(fe),je=n("+zF7");const me=["facebook","google"];function Oe(e){return"facebook"===e?r.a._("Facebook"):"twitter"===e?r.a._("Twitter"):"google"===e?r.a._("Google"):r.a._("Other")}function ve(e){const t=ge()("sendShare",e.network),n=(i=e.network,a=e.email,"facebook"===i?r.a._("Friends who are on Pinterest"):"google"===i&&a&&-1!==a.indexOf("@gmail")?a:null);var i,a;return Object(u.jsx)("a",{onClick:e.onClick,role:"button",children:Object(u.jsxs)("div",{className:t,children:[Object(u.jsx)("em",{className:"icon"}),Object(u.jsxs)("div",{className:"networkInfo",children:[Object(u.jsx)("h4",{className:"title",children:Oe(e.network)}),n?Object(u.jsx)("div",{className:"subtitle",children:n}):null]})]})})}function ye({onBack:e}){const t=Object(c.a)(),n=t.isAuth?t.email:null,i=me.filter(e=>!t.isAuth||!1===t.socialNetwork[e].connected);return Object(u.jsxs)("div",{className:"SocialConnectPanel sendShare",children:[Object(u.jsxs)("div",{className:"header",children:[Object(u.jsx)("div",{className:"backNav",children:Object(u.jsxs)("a",{onClick:e,role:"button",children:[Object(u.jsx)("span",{className:"icon"}),Object(u.jsx)("span",{className:"label",children:r.a._("Back")})]})}),Object(u.jsx)("div",{className:"prompt",children:r.a._("Upload contacts from...")})]}),Object(u.jsx)("ul",{className:"socialConnectOptions",children:i.map(e=>Object(u.jsx)("li",{style:{borderLeft:"none"},children:Object(u.jsx)(ve,{email:n,network:e,onClick:()=>function(e){je.a.instance().handleConnect(e,!0,{})}(e)})},e))})]})}function xe({classNames:e="",isFlyout:t=!1,onCreatePincodeClick:n,onExternalSend:a,onHide:r,sendType:o,sharedObject:s,viewType:c,viewParameter:l}){const[h,p]=Object(i.useState)(!1),[b,f]=Object(i.useState)(!1);Object(i.useEffect)(()=>(Object(S.b)(7120,{objectId:s.id,view:c,viewParameter:l}),()=>{Object(S.b)(7121,{objectId:s.id,view:c,viewParameter:l});const e=b?7493:7492;Object(S.b)(e,{view:c,viewParameter:l})}),[]);const g=()=>{p(!0)},j=()=>{p(!1)},m=()=>{f(!0)};return h?(()=>{const e=t?"Module SendObjectBase sendShare":"";return Object(u.jsx)("div",{className:e,children:Object(u.jsx)(ye,{onBack:j})})})():Object(u.jsx)(d.f,{overflow:"hidden",children:Object(u.jsx)(be,{isFlyout:t,onCreatePincodeClick:n,onHide:r,onShowImport:g,onMessageSent:m,onExternalSend:a,sendType:o,sharedObject:s})})}},hFfv:function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("n6mq"),a=n("nKUr");const r=e=>{const{size:t,name:n,textLayout:r}=e,o=`calc(${Math.sin((s=45,s*(Math.PI/180)))} * (${t}) / 2)`;var s;const c=Object(a.jsx)(i.b,{name:n?[...n][0].toUpperCase():""});switch(r){case"bottomLeft":return Object(a.jsx)(i.f,{"aria-label":n,color:"lightGray",height:"100%",display:"flex",alignItems:"end",dangerouslySetInlineStyle:{__style:{paddingBottom:o,paddingRight:o}},children:c});case"topLeft":return Object(a.jsx)(i.f,{"aria-label":n,color:"lightGray",height:"100%",display:"flex",alignItems:"start",dangerouslySetInlineStyle:{__style:{paddingTop:o,paddingRight:o}},children:c});default:return Object(a.jsx)(i.f,{"aria-label":n,color:"lightGray",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",children:c})}};function o(e){const{collaborators:t,outline:n=!1,size:o="fit"}=e,{colorGray0:s,colorGray100:c}=Object(i.kb)(),l="fit"===o?"100%":32,d="fit"===o?"":32,u=((e,t)=>{switch(e){case 0:case 1:return[{top:0,left:0,width:t,height:t,textLayout:"center"}];case 2:return[{top:0,left:0,width:"calc(50% - 1px)",height:t,textLayout:"center"},{top:0,left:"calc(50% + 1px)",width:"calc(50% - 1px)",height:t,textLayout:"center"}];default:return[{top:0,left:0,width:"calc(50% - 1px)",height:t,textLayout:"center"},{top:0,left:"calc(50% + 1px)",width:"calc(50%)",height:"calc(50% - 1px)",textLayout:"topLeft"},{top:"calc(50% + 1px)",left:"calc(50% + 1px)",width:"calc(50%)",height:"calc(50% - 1px)",textLayout:"bottomLeft"}]}})(t.length,l).map((e,n)=>[e,t[n]]);return Object(a.jsxs)(i.f,{color:"white",overflow:"hidden",rounding:"circle",width:l,height:d,position:"relative",dangerouslySetInlineStyle:{__style:{...n?{boxShadow:"0 0 0 2px "+s}:{},willChange:"transform"}},children:[Object(a.jsx)(i.f,{dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}}}),u.map(([e,t={name:"",src:void 0}],n)=>{const{width:o,height:s,top:l,left:d,textLayout:u}=e,{name:h,src:p}=t;return Object(a.jsxs)(i.f,{position:"absolute",width:o,height:s,dangerouslySetInlineStyle:{__style:{top:l,left:d}},children:[null!=p?Object(a.jsx)(i.x,{alt:h,color:c,src:p,naturalWidth:1,naturalHeight:1,fit:"cover"}):Object(a.jsx)(r,{name:h,textLayout:u,size:s}),Object(a.jsx)(i.f,{position:"absolute",top:!0,bottom:!0,right:!0,left:!0,dangerouslySetInlineStyle:{__style:{background:"rgba(0, 0, 0, 0.03)","pointer-events":"none"}}})]},n)})]})}},iS6d:function(e,t,n){var i=n("q1tI");t.a=Object(i.createContext)(!1)},"iYS+":function(e,t,n){n.d(t,"a",(function(){return c}));var i=n("q1tI"),a=n("n6mq"),r=n("nKUr");function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s={__path:"M8.134 8.116a1.25 1.25 0 0 0-1.768 0L4.25 10.232 2.134 8.116A1.25 1.25 0 0 0 .366 9.884L2.483 12 .366 14.116a1.25 1.25 0 0 0 1.768 1.768l2.116-2.117 2.116 2.117a1.248 1.248 0 0 0 1.768 0 1.25 1.25 0 0 0 0-1.768L6.018 12l2.116-2.116a1.25 1.25 0 0 0 0-1.768M24 8v8a2.5 2.5 0 0 1-2.5 2.5h-8A2.5 2.5 0 0 1 11 16V8a2.5 2.5 0 0 1 2.5-2.5h8A2.5 2.5 0 0 1 24 8"};class c extends i.PureComponent{constructor(...e){super(...e),o(this,"state",{hovered:!1}),o(this,"handleMouseEnter",()=>this.setState({hovered:!0})),o(this,"handleMouseLeave",()=>this.setState({hovered:!1}))}render(){const{bold:e,icon:t,text:n,description:i,descriptionColor:o="darkGray",compact:c}=this.props,l=Array.isArray(n)?n.join(""):n;return Object(r.jsx)("div",{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:Object(r.jsxs)(a.f,{alignItems:"start",color:this.state.hovered?"lightGray":"transparent",direction:"row",display:"flex",marginEnd:-1,marginStart:-1,overflow:"hidden",paddingX:4,paddingY:2,title:l,children:[!c&&t&&Object(r.jsx)(a.f,{alignSelf:"center",flex:"none",padding:1,children:"unfollow"===t?Object(r.jsx)(a.v,{accessibilityLabel:"",color:"darkGray",dangerouslySetSvgPath:s,size:16}):Object(r.jsx)(a.v,{accessibilityLabel:"",color:"darkGray",icon:t,size:16})}),Object(r.jsxs)(a.f,{alignItems:c?"center":"start",direction:c?"row":"column",display:"flex",flex:"grow",padding:1,width:"100%",children:[Object(r.jsx)(a.cb,{color:"darkGray",size:c?"sm":"md",weight:e?"bold":"normal",children:n}),Object(r.jsx)(a.f,{alignItems:"center",display:"flex",children:!c&&i&&Object(r.jsx)(a.f,{marginBottom:2,marginTop:1,children:Object(r.jsx)(a.cb,{color:o,overflow:"normal",size:"sm",children:i})})})]})]})})}}o(c,"defaultProps",{bold:!0})},idmN:function(e,t,n){var i=n("ZWtO"),a=n("FZoo"),r=n("4uTw");e.exports=function(e,t,n){for(var o=-1,s=t.length,c={};++o<s;){var l=t[o],d=i(e,l);n(d,l)&&a(c,r(l,e),d)}return c}},oVol:function(e,t,n){n.d(t,"a",(function(){return i}));const i={BOARD:"board",PIN:"pin",DID_IT:"did_it",PINNER:"pinner",USER:"user",TODAY_ARTICLE:"today_article",SEARCH:"search"}},pOug:function(e,t,n){t.a=function(e){return function(t){return null!=t?e(t):null}}},pf20:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n("F4HH");const{Provider:a,useHook:r}=Object(i.a)({name:"story_pin_step",v2LoggerMetricName:701,sampleRate:1}),o=a,s=r},ptXI:function(e,t,n){n.d(t,"a",(function(){return p}));var i=n("q1tI"),a=n("Ye/N"),r=n("7w6Q"),o=n("fepT"),s=n("U4JR"),c=(n("CgR/"),n("n6mq")),l=n("nKUr");function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={__path:"M12 18.5A6.508 6.508 0 0 1 5.5 12c0-1.706.689-3.307 1.835-4.5H6.5a1 1 0 1 1 0-2h4.185v4.474a1 1 0 0 1-2 0V8.972A4.505 4.505 0 0 0 7.5 12c0 2.481 2.019 4.5 4.5 4.5s4.5-2.019 4.5-4.5a4.49 4.49 0 0 0-3.112-4.283 1 1 0 1 1 .615-1.902A6.482 6.482 0 0 1 18.5 12c0 3.584-2.916 6.5-6.5 6.5M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0"},h={overlay:{__style:{backgroundColor:"#000"}}};class p extends i.PureComponent{constructor(...e){super(...e),d(this,"setSendButton",e=>{this.sendButton=e}),d(this,"handleRestartVideo",({event:e})=>{e&&e.stopPropagation&&e.stopPropagation();const{onRestartVideo:t}=this.props;t&&t({event:e}),r.a.increment("web.video.endcard.share",1,{status:"restart",variant:"enabled_send_first"})}),d(this,"handleShareVideo",()=>{const{onToggleFlyout:e,isFlyoutOpen:t,pinId:n}=this.props;e&&e(),t&&r.a.increment("web.video.endcard.share",1,{status:"shareSheetOpen",variant:"enabled_send_first"}),Object(s.b)(101,{component:179,objectId:n,view:3,viewParameter:156,element:11731})}),d(this,"handleExternalSend",()=>{r.a.increment("web.video.endcard.share",1,{status:"shareSheetOpen",variant:"enabled_send_first"})}),d(this,"renderReplayButton",()=>Object(l.jsx)(c.bb,{onTap:this.handleRestartVideo,rounding:2,children:Object(l.jsxs)(c.f,{alignItems:"center",display:"flex",padding:2,children:[Object(l.jsx)(c.v,{accessibilityLabel:a.a._("Watch again","Button when pressed restarts the video","Button when pressed restarts the video"),color:"white",dangerouslySetSvgPath:u,size:30}),Object(l.jsx)(c.f,{margin:1}),Object(l.jsx)(c.u,{color:"white",overflow:"normal",size:"sm",children:a.a._("Watch again","Clickable label when pressed restarts the video","Clickable label when pressed restarts the video")})]})})),d(this,"renderShareButton",()=>{const{gridDescription:e,imageSrc:t,isFlyoutOpen:n,onFlyoutDismiss:i,pinId:r}=this.props;return Object(l.jsxs)(c.f,{alignItems:"center",display:"flex",padding:2,children:[Object(l.jsx)(o.default,{buttonType:"icon",gridDescription:e,imageSrc:t,isFlyoutOpen:n,onExternalSend:this.handleExternalSend,onFlyoutDismiss:i,onToggleFlyout:this.handleShareVideo,pinId:r,sendType:"pin",shareButtonRef:this.setSendButton,shownWithinMasonry:!0,iconOnly:!0}),Object(l.jsx)(c.f,{margin:1}),Object(l.jsx)(c.bb,{onTap:this.handleShareVideo,rounding:2,children:Object(l.jsx)(c.u,{color:"white",overflow:"normal",size:"sm",children:a.a._("Send","end.video.send.icon.label","Clickable label when pressed opens share sheet after video is finished")})})]})})}componentDidMount(){const{pinId:e}=this.props;r.a.increment("web.video.endcard.share",1,{status:"land",variant:"enabled_send_first"}),Object(s.b)(13,{component:179,objectId:e,view:3,viewParameter:156,element:11731})}render(){const{backgroundImage:e,naturalHeight:t,naturalWidth:n,pinTitle:i}=this.props;return Object(l.jsx)(c.f,{children:Object(l.jsxs)(c.x,{alt:i||"",naturalHeight:t,naturalWidth:n,src:e,children:[Object(l.jsx)(c.f,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,dangerouslySetInlineStyle:h.overlay}),Object(l.jsx)(c.f,{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",top:!0,left:!0,height:"100%",width:"100%",direction:"column",children:Object(l.jsxs)(c.f,{alignItems:"center",justifyContent:"center",position:"absolute",direction:"column",children:[Object(l.jsx)(c.f,{children:this.renderShareButton()}),Object(l.jsx)(c.f,{alignSelf:"center",children:this.renderReplayButton()})]})})]})})}}t.b=({backgroundImage:e,naturalHeight:t,naturalWidth:n,onRestartVideo:i,pinTitle:r})=>Object(l.jsx)(c.f,{children:Object(l.jsxs)(c.x,{alt:r||"",naturalHeight:t,naturalWidth:n,src:e,children:[Object(l.jsx)(c.f,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.8,dangerouslySetInlineStyle:h.overlay}),Object(l.jsx)(c.f,{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",top:!0,left:!0,height:"100%",width:"100%",children:Object(l.jsx)(c.f,{children:Object(l.jsx)(c.bb,{onTap:i,rounding:2,children:Object(l.jsxs)(c.f,{alignItems:"center",display:"flex",padding:2,children:[Object(l.jsx)(c.v,{accessibilityLabel:a.a._("Watch again","Button when pressed restarts the video","Button when pressed restarts the video"),color:"white",dangerouslySetSvgPath:u,size:30}),Object(l.jsx)(c.f,{margin:1}),Object(l.jsx)(c.u,{color:"white",overflow:"normal",size:"sm",children:a.a._("Watch again","Clickable label when pressed restarts the video","Clickable label when pressed restarts the video")})]})})})})]})})},udob:function(e,t,n){var i=n("LqyK"),a=n("d7ng"),r=n("4dcN"),o=n("zwad"),s=n("mBfy");const c={};c.open=function(e,t,n){const i=function(e,t){const n=window.screen.width,i=window.screen.height;return"scrollbars=yes,resizable=yes,toolbar=no,location=yes,width="+e+",height="+t+",left="+Math.round((n-e)/2)+",top="+(i>t?Math.round((i-t)/2):0)}(t,n);window.open(e,void 0,i)},c.shrinkWrap=function(){!function(e){const t=document.documentElement;let n=t?t.scrollWidth-t.clientWidth:0,i=t?t.scrollHeight-t.clientHeight:0;e&&(n=Math.max(n,0),i=Math.max(i,0)),s.default.isAuthenticated()||(i=340),window.resizeBy(n,i)}(!1)};var l=c;const d={DIALOG_WIDTH:510,DIALOG_HEIGHT:525,openDialog(e){r.a.trackEvent("share_line","click");const t=d._getWindowUrl(e.share_path,e.share_text);l.open(t,d.DIALOG_WIDTH,d.DIALOG_HEIGHT)},_getWindowUrl:(e,t)=>o.a.appendQueryString("https://social-plugins.line.me/lineit/share",{url:e?Object(a.a)(e):void 0,text:t})};var u=d,h=n("eOdZ");const p={DIALOG_WIDTH:550,DIALOG_HEIGHT:420,openDialog(e){const t=e.ga_category||"share_twitter";r.a.trackEvent(t,"click");const n=p._getWindowUrl(e.tweet_path,e.tweet_text);l.open(n,p.DIALOG_WIDTH,p.DIALOG_HEIGHT)},_getWindowUrl:(e,t)=>o.a.appendQueryString("https://twitter.com/intent/tweet",{via:"pinterest",url:e?Object(a.a)(e):void 0,text:t||void 0})};var b=p;const f={ObjectTypeToInviteObject:{pin:1,board:2,pinner:3,article:5,did_it:6,today_article:8,search:0},_convertToInviteObject(e){return this.ObjectTypeToInviteObject[e]||0},_logShareInvite(e,t){const n=this._convertToInviteObject(e.object_type),i=e.invite_channel,a=null==e.invite_category?3:e.invite_category,r=e.object_id;return h.a.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:a,invite_object:n,invite_channel:i},invite_code:t,object_id:r}).callCreate()},createAndLogShareInvite:e=>f.createShareInviteData(e).then(t=>(f._logShareInvite(e,t.invite_code),Promise.resolve(t)),e=>Promise.reject(e)),createShareInviteData(e){const t=this._convertToInviteObject(e.object_type),n=e.invite_channel,i=null==e.invite_category?3:e.invite_category;if(10===i&&e.path){return h.a.create("ShareLinkResource",{invite_category:i,url:e.path}).callCreate().then(e=>Promise.resolve(e.resource_response.data),e=>Promise.reject(e))}{const a=e.object_id;return h.a.create("CreateExternalInviteResource",{invite_type:{invite_category:i,invite_object:t,invite_channel:n},object_id:a}).callCreate().then(e=>Promise.resolve(e.resource_response.data),e=>Promise.reject(e))}},logShareInvite(e,t){t&&f._logShareInvite(e,t.invite_code)},shareFacebookInvite:e=>f.createShareInviteData(e).then(t=>{const n=t.invite_url,a=t.invite_code;return n&&i.default.open({type:"share",object_type:e.object_type,object_id:e.object_id,name:e.name,caption:t.title,description:e.description,path:n,picture:e.picture,callback(t){t&&!t.error_message&&f._logShareInvite(e,a)}}),Promise.resolve(t)},e=>Promise.reject(e)),shareTwitterInvite(e){const t=this._convertToInviteObject(e.object_type);return f.createShareInviteData(e).then(n=>{const i=n.invite_url,a=n.invite_code;let r=e.description;return 6===t&&e.name&&(r=e.name),i&&b.openDialog({tweet_path:i,tweet_text:r}),f._logShareInvite(e,a),Promise.resolve(n)},e=>Promise.reject(e))},shareLineInvite(e){const t=this._convertToInviteObject(e.object_type);return f.createShareInviteData(e).then(n=>{const i=n.invite_url,a=n.invite_code;let r=e.description;return 6===t&&e.name&&(r=e.name),r||(r=n.title),i&&u.openDialog({share_path:i,share_text:r}),f._logShareInvite(e,a),Promise.resolve(n)},e=>Promise.reject(e))},shareFbMessengerInvite:e=>f.createShareInviteData(e).then(t=>{const n=t.invite_url,a=t.invite_code;return n&&i.default.open({type:"send",object_type:e.object_type,object_id:e.object_id,name:e.name,caption:t.title,description:e.description,path:n,picture:e.picture,callback(t){t&&t.success&&f._logShareInvite(e,a)}}),Promise.resolve(t)},e=>Promise.reject(e))};t.a=f},w1Xl:function(e,t,n){n.d(t,"a",(function(){return l}));var i=n("Ye/N"),a=n("7w6Q"),r=n("eOdZ"),o=n("U4JR"),s=n("n6mq"),c=n("nKUr");function l(e){const{identifier:t,onUndoHide:n,isGroupChat:l}=e,d=async()=>{const i=r.a.create("ShareSuggestionsHideResource",{user_identifier:t});await i.callDelete(),n(),(()=>{const{component:t,element:n}=e;Object(o.b)(101,{component:t,element:n}),a.a.increment("web_contacts.suggestions.undo_hide",1,{surface:t})})()};return Object(c.jsxs)(s.f,{display:"flex",children:[Object(c.jsx)(s.f,{alignItems:"center",display:"flex",flex:"grow",height:"100%",width:"80%",children:Object(c.jsx)(s.cb,{inline:!0,color:"gray",children:l?i.a._("Ok! We won't suggest this group again.","SendObject.SendObjectSuggestionItem.HideContactBanner","Warning message after user hide a contact"):i.a._("Ok! We won't suggest this contact again.","SendObject.SendObjectSuggestionItem.HideContactBanner","Warning message after user hide a contact")})}),Object(c.jsx)(s.f,{flex:"none",display:"flex",justifyContent:"end",alignItems:"center",children:Object(c.jsx)(s.g,{onClick:({event:e})=>{e.stopPropagation(),d()},text:i.a._("Undo","SendObject.SendObjectSuggestionItem.HideContactUndoButton","Undo button after user hide a contact"),size:"lg",type:"button",inline:!0})})]})}}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/72-d8235ad8bfecc1410bd3.mjs.map