"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["7822"],{67844:function(){},76511:function(){},66782:function(e,t,i){i.d(t,{Z:()=>n});let n={themeButton:"themeButton-ORTHZZ",imageBg:"imageBg-g08ncu",inner:"inner-ntFns3",selected:"selected-YSP54X"}},97522:function(e,t,i){i.d(t,{Z:()=>n});let n={imageContainer:"imageContainer-Pqu0QT",imageContainerFullHeight:"imageContainerFullHeight-w5ZyNq",overlay:"overlay-CNJsTg",image:"image-rvNlD8",downloadButton:"downloadButton-dhZJCf",loading:"loading-VylEq3",link:"link-_29D1v"}},30279:function(){},6114:function(e,t,i){i.d(t,{Z:()=>n});let n={menu:"menu-sPR2Yu",submenu:"submenu-kccqXE",floatingContainer:"floatingContainer-SiCBnk",menuItem:"menuItem-AADi97",disabled:"disabled-Q9za9D",priority_primary:"priority_primary-oAX5mN",priorityPrimary:"priority_primary-oAX5mN",priority_destructive:"priority_destructive-ayiS14",priorityDestructive:"priority_destructive-ayiS14",priority_secondary:"priority_secondary-A4gq_6",prioritySecondary:"priority_secondary-A4gq_6",relative:"relative-Qkdqwp",icon:"icon-HOkFAd",text:"text-DCgRW4",transition:"transition-lyUTv9",show:"show-yWHKyA",hide:"hide-Zl_8Aa",actionSheetTransition:"actionSheetTransition-FqigoZ",actionSheetShow:"actionSheetShow-D8Iizn",actionSheetHide:"actionSheetHide-Kzcnug"}},28657:function(e,t,i){i.d(t,{Z:()=>n});let n={track:"track-e0UsGc",sm:"sm-NTA_dM",md:"md-t9_OLv",enabled:"enabled-z80ktY",checked:"checked-shaJTW",unchecked:"unchecked-xbnGJz",disabled:"disabled-HU7KbB",nub:"nub-sJTvJy",animate:"animate-HqAcLR",theme_accent:"theme_accent-jLc1V8",themeAccent:"theme_accent-jLc1V8",theme_success:"theme_success-OT7UOf",themeSuccess:"theme_success-OT7UOf",theme_error:"theme_error-iKFnqH",themeError:"theme_error-iKFnqH",theme_select:"theme_select-ZrBXM7",themeSelect:"theme_select-ZrBXM7"}},4373:function(e,t,i){i.d(t,{C:()=>p,a:()=>m});var n=i(16584),l=i(95441),r=i(90099),a=i(94874),o=i(15771),d=i(19081),s=i(58175),c=i(63651),u=i(47929),h=i(45537);function m(e){let{pub:t,subdomain:i}=e,{iString:r}=(0,l.M1)();return(0,n.BX)(d.tu,{className:h.Z.webContainer,alignItems:"center",border:"detail-themed",radius:"md",padding:20,gap:16,as:"a",href:Z(i),target:"_blank","data-component-name":"CommunityChatEmbed",children:[(0,n.tZ)(a.qE,{size:64,photoUrl:(0,c.zF4)(t.author_photo_url)}),(0,n.BX)(d.tu,{gap:4,alignItems:"center",children:[(0,n.BX)(s.xv.H3,{translated:!0,as:"div",color:"pub-primary-text",children:["Join ",I18N.p(t.author_name),"’s subscriber chat"]}),(0,n.tZ)(s.xv.B4,{translated:!0,color:"pub-secondary-text",children:"Available in the Substack app and on web"})]}),(0,n.tZ)(d.tu,{alignSelf:"stretch",children:(0,n.tZ)(o.zx,{priority:"primary",href:Z(i),children:r("Join chat")})})]})}function p(e){let{pub:t,subdomain:i}=e,{iString:a}=(0,l.M1)();return(0,n.tZ)("a",{className:h.Z.emailWrapper,href:Z(i),"data-component-name":"EmailCommunityChatEmbed",children:(0,n.BX)("div",{className:h.Z.container,children:[(0,n.tZ)(r.NS,{size:64,src:(0,c.zF4)(t.author_photo_url),framed:!0}),(0,n.BX)("div",{className:h.Z.text,children:[(0,n.BX)(s.xv.H3,{translated:!0,className:h.Z.title,as:"div",color:"pub-primary-text",children:["Join ",I18N.p(t.author_name),"’s subscriber chat"]}),(0,n.tZ)(s.xv.B4,{translated:!0,color:"pub-secondary-text",children:"Available in the Substack app and on web"})]}),(0,n.tZ)(r.Bj,{tableClassName:h.Z.button,children:a("Join chat")})]})})}function Z(e){return(0,c.ZVW)({pubKey:e,utm_source:u.b3.chatEmbed})}},62049:function(e,t,i){i.d(t,{V:()=>C,s:()=>k});var n=i(7409),l=i(99282),r=i(16584),a=i(93974),o=i(2564),d=i(12281),s=i(90099);i(71068);var c=i(58175);i(60308);var u=i(63651),h=i(84864);let m={bubble:"bubble-ufWvfM",img:"img-cbG6oW",linkImg:"linkImg-_n19TI",paywallBubble:"paywallBubble-VDFuNU bubble-ufWvfM"};function p(e){var t,i,n;let{communityPost:l,author:u,cta:m,withAttribution:p,attributionText:f,hideReply:y,truncateBodyAt:_}=e,w=!l,N=null==l?void 0:null===(i=l.threadMediaUploads)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.mediaUpload,x=null;return!w&&l.body&&(x=_?(0,h.truncateText)(l.body,_):l.body),(0,r.BX)(s.zK,{gap:12,verticalAlign:"top",children:[(0,r.tZ)(s.NS,{src:null!==(n=null==u?void 0:u.photo_url)&&void 0!==n?n:"",size:40}),(0,r.BX)(s.i$,{gap:4,style:{lineHeight:0},children:[p&&(0,r.tZ)(a.xn,{isStatic:!0,text:f||"From ".concat((null==u?void 0:u.name)?(0,h.possessive)(u.name):"Substack user"," subscriber chat")}),w?(0,r.tZ)(g,{}):["media"===l.type&&l.media_assets?l.media_assets.slice(0,1).map(e=>(0,r.tZ)(v,{asset:e},e.url)):"link"===l.type&&(0,r.tZ)(b,{communityPost:l}),N&&(0,r.tZ)(d.L,{mediaUpload:N}),x&&(0,r.tZ)(Z,{children:(0,r.BX)("span",{children:[(0,r.tZ)(c.xv,{as:"span",weight:"bold",children:u?u.name:"Substack writer"})," ",x]})})],!y&&(0,r.tZ)(Z,{children:(0,r.tZ)(s.YF,{children:(0,r.BX)("tr",{children:[(0,r.tZ)("td",{align:"left",children:(0,r.tZ)(c.xv,{as:"span",color:"secondary",children:"Reply..."})}),(0,r.tZ)("td",{align:"right",children:(0,r.tZ)(o.Z,{size:20,stroke:"var(--color-secondary}"})})]})})}),m&&(0,r.tZ)(s.b9,{fullWidth:!0,href:m.url,children:m.text}),m&&m.blurb&&(0,r.tZ)("div",{children:(0,r.tZ)(c.xv,{color:"secondary",align:"center",size:14,lineHeight:20,children:m.blurb})})]})]})}function Z(e){return(0,r.tZ)("div",(0,n._)({className:m.bubble},e))}function g(){return(0,r.tZ)("div",{className:m.paywallBubble,style:{backgroundImage:"url(".concat((0,u.zF4)("/img/community/paywall-pixels-light.png"),")")},children:(0,r.tZ)(c.xv.Meta,{children:"SUBSCRIBERS ONLY"})})}function v(e){var t;let{asset:i}=e;return(0,r.tZ)("img",{className:m.img,width:400,src:(0,u.zF4)(null!==(t=i.url)&&void 0!==t?t:"",800,{crop:"limit",height:800})})}function b(e){var t,i;let n,{communityPost:l}=e,{link_metadata:a,link_url:o}=l,d=null!==(i=null!==(t=null==a?void 0:a.url)&&void 0!==t?t:o)&&void 0!==i?i:"";try{let e=new URL(d);n="".concat(e.host).concat(e.pathname).concat(e.search).concat(e.hash)}catch(e){n=d}return(0,r.tZ)(Z,{children:(0,r.tZ)(s.YF,{style:{width:"400px"},children:(0,r.BX)("tr",{children:[(0,r.BX)("td",{align:"left",style:{verticalAlign:"top"},children:[(null==a?void 0:a.title)&&(0,r.tZ)(c.xv,{font:"serif",lineHeight:24,children:a.title}),(0,r.tZ)(c.xv.Meta,{color:"secondary",children:n})]}),(0,r.tZ)("td",{width:"16"}),(0,r.tZ)("td",{align:"right",children:(null==a?void 0:a.image)&&(0,r.tZ)("img",{className:m.linkImg,src:(0,u.zF4)(a.image,144,{height:144,smartCrop:!0})})})]})})})}var f=i(68833),y=i(48980),_=i(7882),w=i(9682),N=i(19081),x=i(47929),B=i(18427);function C(e){var t,i,n,l,o;let d,{postId:s}=e,[{path:c}]=(0,w.tv)();"undefined"!=typeof window&&(d=c.startsWith("/inbox/post/")?Number(c.split("/post/")[1]):"post"in window._preloads?null===(o=window._preloads)||void 0===o?void 0:null===(l=o.post)||void 0===l?void 0:l.id:void 0);let{error:h,result:m}=(0,_.ib)({pathname:"/api/v1/community/posts/".concat(s),auto:!0,deps:[s]}),p=h instanceof y.kp&&402===h.response.status&&((null===(t=h.body)||void 0===t?void 0:t.status)==="PAID_SUBSCRIPTION_REQUIRED"||(null===(i=h.body)||void 0===i?void 0:i.status)==="FOUNDING_SUBSCRIPTION_REQUIRED"||(null===(n=h.body)||void 0===n?void 0:n.status)==="FREE_SUBSCRIPTION_REQUIRED")?h.body:null;return(0,r.tZ)(N.hs,{as:"a",className:B.Z.container,target:"_blank",href:(0,u._5K)({postId:s,utm_source:x.b3.threadEmbed}),"data-component-name":"CommunityPostEmbed",onClick:()=>(0,f.j)(f.FP.EMBEDDED_COMMUNITY_POST_CLICKED,{post_id:d,community_post_id:s}),children:p?"FREE_SUBSCRIPTION_REQUIRED"===p.status&&p.communityPost?(0,r.tZ)(a.Jg,{author:p.user,communityPost:p.communityPost,surface:"community_post_embed",communityPostEmbedPostId:d,useClientSideRouting:!1,withAttribution:!0,isReadOnly:!0,utmSource:x.b3.threadEmbed}):(0,r.tZ)(a.V8,{author:p.user,audience:"FREE_SUBSCRIPTION_REQUIRED"===p.status?"all_subscribers":"PAID_SUBSCRIPTION_REQUIRED"===p.status?"only_paid":"only_founding"}):h?"Could not load chat message: Click to view":m&&(0,r.tZ)(a.Jg,{author:m.user,communityPost:m.communityPost,surface:"community_post_embed",communityPostEmbedPostId:d,utmSource:x.b3.threadEmbed,useClientSideRouting:!1,withAttribution:!0,isReadOnly:!0})})}function k(e){let{postId:t}=e;return(0,r.tZ)("a",{className:B.Z.emailWrapper,href:(0,u._5K)({postId:t,utm_source:x.b3.threadEmbed,modal:"1"}),"data-component-name":"EmailCommunityPostEmbed",children:(0,r.tZ)("div",{className:B.Z.container,children:(0,r.tZ)(p,(0,l._)((0,n._)({},e),{withAttribution:!0}))})})}},22582:function(e,t,i){i.d(t,{hJ:()=>w,yW:()=>N});var n=i(7409),l=i(99282),r=i(16584),a=i(30396),o=i(94184),d=i.n(o),s=i(59543),c=i(86790),u=i(2563),h=i(20888),m=i(80026),p=i(19081),Z=i(63651),g=i(81567);let v=(e,t)=>1===t?"large":2===t||4===t?"medium":t%3==0?"small":5===t||7===t?e<=2?"small":"medium":e<=5?"small":"medium",b={small:237,medium:360,large:728},f=e=>{let{src:t,size:i,onSelectImage:n,useViewer:l=!1,alt:a}=e;return(0,r.tZ)(h.e,{src:t,alt:a,maxWidth:2*b[i],className:d()(g.Z.image,g.Z[i],l&&g.Z.zoom,(0,m.oB)({pressable:"lg"})),onClick:()=>{l&&n()}})},y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=[];for(let l in e){let r=e[l],{height:a=0,width:o=0}=r&&(0,Z.zJH)(r.src)||{},d="(".concat(Number(l)+1," of ").concat(e.length,")"),s={src:r.src,height:a,width:o,alt:"".concat(i," ").concat(d),title:"".concat(t," ").concat(d)};n.push({attrs:s})}return n},_=e=>{let{onEditGallery:t,editGalleryRef:i}=e;return(0,r.tZ)(p.hs,{justifyContent:"center",alignItems:"center",className:g.Z.editGalleryWrap,children:(0,r.tZ)(c.Fx,{ref:i,noList:!0,children:(0,r.tZ)(p.tu,{onClick:t,justifyContent:"center",alignItems:"center",className:g.Z.editGallery,children:(0,r.tZ)(s.Z,{height:20})})})})},w=e=>{let{node:t,editor:i}=e,{gallery:o}=t.attrs,s=t.attrs.isEditor||i,{caption:c,alt:h}=o,m=o.images.map((e,t)=>(0,l._)((0,n._)({},e),{idx:t})),Z="undefined"!=typeof window&&!window.location.pathname.startsWith("/publish"),[b,w]=(0,a.eJ)(!1),[N,x]=(0,a.eJ)(0),B=(0,a.sO)(null),C=1===m.length,k=y(m,c),I=e=>{x(e),w(!0)};if(0===m.length)return null;let S=e=>{var t,i;s&&(e?null===(t=B.current)||void 0===t||t.open():null===(i=B.current)||void 0===i||i.close())},E=function e(t){let i=4===t.length?2:3,n=[t.slice(0,i)],l=t.slice(i);return l.length>0&&(n=n.concat(e(l))),n}(m);return(0,r.BX)("figure",{className:d()(g.Z.imageGallery,s&&g.Z.canEdit),onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),"data-drag-handle":!0,"data-component-name":"ImageGallery",children:[s&&o&&(0,r.tZ)(_,{onEditGallery:()=>{document.dispatchEvent(new Event("editSelectedImageGallery"))},editGalleryRef:B}),(0,r.BX)(p.tu,{gap:8,children:[C?(0,r.tZ)(f,{src:m[0].src,alt:h,caption:c,size:v(0,1),onSelectImage:()=>I(0),useViewer:Z}):E.map(e=>(0,r.tZ)(p.hs,{className:d()(g.Z.imageRow,g.Z["length-".concat(e.length)]),gap:8,children:e.map(e=>(0,r.tZ)(f,{src:e.src,alt:h,caption:c,size:v(e.idx,m.length),onSelectImage:()=>I(e.idx),useViewer:Z}))})),c&&(0,r.tZ)("figcaption",{className:g.Z.imageCaption,children:c})]}),(0,r.tZ)(u.ImageViewerModal,{showModal:b,modalContent:k,onClose:()=>w(!1),step:N})]})},N=e=>{let{node:t}=e,{gallery:i}=t.attrs;if(!i)return null;let{alt:n,staticGalleryImage:l,caption:a}=i;return l?(0,r.BX)("div",{className:d()(g.Z.static,g.Z.imageGallery),"data-component-name":"ImageGalleryStatic",children:[(0,r.tZ)("img",{src:(0,Z.zF4)(l.src,2*b.large),alt:n}),a&&(0,r.tZ)("div",{className:d()(g.Z.imageCaption,g.Z.static),children:a})]}):null}},13723:function(e,t,i){i.d(t,{$:()=>p,c:()=>Z});var n=i(16584),l=i(94184),r=i.n(l),a=i(67749),o=i(94442),d=i(14952),s=i(60807),c=i(90099),u=i(19081),h=i(58175),m=i(71075);let p=e=>{var t;let{disableLinks:i,href:l,includeUfi:c=!1,paddingBottom:p=0,paddingTop:Z=0,post:g}=e,v=(0,s.aF)(),b=(0,d.Ij)();return(0,n.BX)(u.gq,{alignItems:"center",gap:16,paddingBottom:p,paddingTop:Z,children:[c&&b&&v&&g&&(0,n.BX)(u.gq,{className:"post-ufi",gap:8,children:[(0,n.tZ)(o.RY,{post:g,pub:b,user:v}),(0,n.tZ)(o.L9,{post:g,pub:b}),(0,n.tZ)(o.pD,{labelStyle:"cta",post:g,pub:b,style:"button",user:v})]}),(0,n.tZ)(h.xv.B4,{align:"center",as:"a",className:r()({[null!==(t=m.Z.disableLink)&&void 0!==t?t:""]:i}),href:l,weight:"medium",children:(0,n.BX)(u.gq,{alignItems:"center",className:m.Z.link,gap:8,children:[(0,n.tZ)(h.xv.B4,{as:"span",color:"accent",size:14,weight:"semibold",children:"Read full story"}),(0,n.tZ)(a.Z,{size:16})]})})]})},Z=e=>{let{href:t,paddingTop:i=0,paddingBottom:l=0}=e;return(0,n.tZ)(c.zK,{gap:16,style:{paddingTop:i,paddingBottom:l},children:(0,n.tZ)(h.xv.B4,{align:"center",as:"a",href:t,weight:"medium",children:(0,n.tZ)(c.zK,{gap:8,children:(0,n.tZ)(h.xv.B4,{as:"span",className:m.Z.link,color:"accent",size:14,children:"Read full story"})})})})}},57336:function(e,t,i){i.d(t,{I:()=>p,h:()=>m});var n=i(16584),l=i(94184),r=i.n(l),a=i(1548),o=i(90099),d=i(98914),s=i(19081),c=i(58175),u=i(63651),h=i(71075);let m=e=>{let{bylines:t,date:i,disableLinks:l}=e;return(0,n.BX)(s.gq,{alignItems:"center",gap:4,children:[(null==t?void 0:t.length)?(0,n.BX)(n.HY,{children:[(0,n.tZ)(c.xv.Meta,{className:r()({[h.Z.disableLink]:l}),color:"pub-secondary-text",children:(0,n.tZ)(a.M,{array:t||[],formatter:e=>{let{id:t,name:i}=e;return(0,n.tZ)("a",{className:h.Z.inheritColor,href:(0,u.GR3)(t,i),children:i})},limit:3})}),(0,n.tZ)(c.xv,{color:"pub-secondary-text",children:"\xb7"})]}):null,(0,n.tZ)(c.xv.Meta,{color:"pub-secondary-text",children:(0,d.Po)(i)})]})},p=e=>{let{bylines:t,date:i}=e;return(0,n.BX)(o.zK,{gap:4,children:[(null==t?void 0:t.length)?(0,n.BX)(o.zK,{gap:4,children:[(0,n.tZ)(c.xv.Meta,{color:"pub-secondary-text",children:(0,n.tZ)(a.M,{array:t||[],formatter:e=>{let{id:t,name:i}=e;return(0,n.tZ)("a",{className:h.Z.inheritColor,href:(0,u.GR3)(t,i),children:i})},limit:3})}),(0,n.tZ)(c.xv,{color:"pub-secondary-text",children:"\xb7"})]}):null,(0,n.tZ)(c.xv.Meta,{color:"pub-secondary-text",children:(0,d.Po)(i)})]})}},77116:function(e,t,i){i.d(t,{_:()=>v,a:()=>g});var n=i(16584),l=i(94184),r=i.n(l),a=i(19691),o=i(13723),d=i(57336),s=i(26522),c=i(20888),u=i(71068),h=i(19081),m=i(58175),p=i(91400),Z=i(71075);let g=e=>{var t,i,l;let{caption:s,disableLinks:g,post:v,isEditingCaption:b,onEditCaption:f,onSaveCaption:y,onCancelCaption:_}=e,{publishedBylines:w,title:N,canonical_url:x,post_date:B,section_name:C,cover_image:k,cover_image_alt:I}=v,S=(0,p.XA)();return(0,n.BX)(h.tu,{children:[C&&(0,n.tZ)("a",{className:r()({[null!==(t=Z.Z.disableLink)&&void 0!==t?t:""]:g}),href:x,rel:"noopener",target:"_blank",children:(0,n.tZ)(m.xv.Meta,{color:"pub-primary-text",paddingBottom:8,children:C})}),(0,n.tZ)("a",{className:r()({[null!==(i=Z.Z.disableLink)&&void 0!==i?i:""]:g}),href:x,rel:"noopener",target:"_blank",children:(0,n.tZ)(m.xv.H2,{color:"pub-primary-text",children:N})}),(0,n.tZ)(d.h,{bylines:w,date:B,disableLinks:g}),(0,n.BX)(h.hs,{direction:{mobile:"column",desktop:"row"},gap:16,paddingTop:16,children:[k&&(0,n.tZ)(u.xu,{style:{width:S?"unset":140},children:(0,n.tZ)("a",{className:r()({[null!==(l=Z.Z.disableLink)&&void 0!==l?l:""]:g}),href:x,rel:"noopener",target:"_blank",children:(0,n.tZ)(c.e,{alt:null!=I?I:N,className:S?Z.Z.fullWidth:Z.Z.mdSquare,imageProps:{height:Math.round(S?1300:280),smartCrop:!0},maxWidth:S?1300:280,src:k})})}),(0,n.BX)(h.tu,{flex:"grow",children:[b&&y&&_?(0,n.tZ)(a.Z,{initialCaption:s,onCancel:_,onSave:y}):(0,n.tZ)("p",{className:Z.Z.caption,dangerouslySetInnerHTML:{__html:s},onClick:null!=f?f:void 0}),(0,n.tZ)(o.$,{disableLinks:g,href:x,post:v})]})]})]})},v=e=>{let{post:t,children:i}=e;return(0,n.tZ)(s.Y,{children:i,post:t})}},57219:function(e,t,i){i.d(t,{o:()=>Z,u:()=>p});var n=i(16584),l=i(94184),r=i.n(l),a=i(13723),o=i(57336),d=i(20888),s=i(90099),c=i(71068),u=i(19081),h=i(58175),m=i(71075);let p=e=>{var t;let{post:i,disableLinks:l}=e,{publishedBylines:s,title:p,canonical_url:Z,post_date:g,cover_image:v,cover_image_alt:b}=i;return(0,n.tZ)("a",{className:r()({[null!==(t=m.Z.disableLink)&&void 0!==t?t:""]:l}),href:Z,rel:"noopener",target:"_blank",children:(0,n.BX)(u.gq,{gap:16,children:[v&&(0,n.tZ)(c.xu,{style:{width:70,height:70},children:(0,n.tZ)(d.e,{alt:null!=b?b:p,className:m.Z.smSquare,imageProps:{height:Math.round(140),smartCrop:!0},maxWidth:140,src:v})}),(0,n.BX)(u.tu,{children:[(0,n.tZ)(h.xv.H4,{color:"pub-primary-text",children:p}),(0,n.tZ)(o.h,{bylines:s,date:g,disableLinks:l}),(0,n.tZ)(a.$,{disableLinks:l,href:Z,includeUfi:!1,post:i})]})]})})},Z=e=>{let{post:t}=e,{publishedBylines:i,title:l,canonical_url:r,post_date:u,cover_image:p,cover_image_alt:Z}=t;return(0,n.BX)(s.zK,{gap:16,children:[p&&(0,n.tZ)(c.xu,{style:{width:70},children:(0,n.tZ)("a",{href:r,children:(0,n.tZ)(d.e,{alt:null!=Z?Z:l,className:m.Z.smSquare,imageProps:{height:140,smartCrop:!0},maxWidth:140,src:p})})}),(0,n.BX)(s.i$,{children:[(0,n.tZ)(h.xv.H4,{color:"pub-primary-text",children:(0,n.tZ)("a",{href:r,children:l})}),(0,n.tZ)(o.I,{bylines:i,date:u}),(0,n.tZ)(a.c,{href:r})]})]})}},78435:function(e,t,i){i.d(t,{kq:()=>F,n_:()=>M,v8:()=>V});var n=i(7409),l=i(99282),r=i(58865),a=i(16584),o=i(30396),d=i(94184),s=i.n(d),c=i(99869),u=i(47976),h=i(72183),m=i(38724),p=i(77216),Z=i(38735),g=i(52573),v=i(47906),b=i(54917),f=i(67434),y=i(60437),_=i(45823),w=i(95441),N=i(14952),x=i(60807),B=i(90099),C=i(98914),k=i(19081),I=i(58175),S=i(70379),E=i(98012),H=i(6070),R=i(60308);function X(){let e=(0,r._)(["Option ",""]);return X=function(){return e},e}let V=(e,t)=>{let{iTemplate:i}=I18N.i(t);return i(X(),e+1)},M=e=>{var t,i;let{id:r,isEditor:d,post:B,isVersionView:X}=e,{iString:M,language:F}=(0,w.M1)(),L=(0,N.Ij)(),P=(0,_.K)(),[W,z]=(0,o.eJ)(!1),[A,T]=(0,o.eJ)(!1),U=(0,o.sO)(null),D=(0,S.pm)(),O=(0,x.aF)()||{},q=(0,H.HD)({pub:L}),Y=(0,o.I4)(()=>{z(!1)},[]),{error:J,loading:j,poll:K,savePoll:G,voteForOption:Q}=(0,v.B)({isEditor:d,isVersionView:!!X,pollId:r,post:B,onFinishSaving:Y}),$=!!(null==K?void 0:K.is_published),ee=K&&K.published_at&&(0,E.Z)(K.published_at).add(K.expiry,"hour"),et=(0,E.Z)(),ei=!!$&&!!ee&&ee.isBefore(et),en=ee?ee.diff(et,"hour"):0,el=d&&((null==K?void 0:K.post_type)!=="adhoc_email"||!$),er=!!K&&K.options.some(e=>e.my_vote),ea=(null==K?void 0:K.audience)==="only_paid"?!!O.is_subscribed:!!(O.is_free_subscribed||P),eo=!er&&$&&!ei&&ea&&(!d||(null==K?void 0:K.post_type)==="adhoc_email"),ed=d?null:"".concat((0,R.uRy)(L,B),"#poll-").concat(r),es=el?Array(Math.max(2,(null==K?void 0:null===(t=K.options)||void 0===t?void 0:t.length)||0)).fill("").map((e,t)=>{var i,n,l;return K&&(null===(i=K.options)||void 0===i?void 0:i.length)>t?null!==(l=null===(n=K.options[t])||void 0===n?void 0:n.label)&&void 0!==l?l:"":V(t,F)}):null==K?void 0:null===(i=K.options)||void 0===i?void 0:i.map(e=>e.label),ec=(0,o.I4)(async e=>{if(!d&&!ei&&$){if(!ea){var t;null===(t=U.current)||void 0===t||t.open();return}await Q(e)}},[ea,d,ei,$,Q]);return null===J||K?(0,a.BX)(k.tu,{className:s()("poll-wrapper poll-web",{"poll-wrapper--thefp":q}),"data-component-name":"Poll",gap:24,children:[ed&&(0,a.tZ)("div",{className:"poll-anchor-target",id:"poll-".concat(r),children:(0,a.tZ)("div",{className:"poll-anchor-copy-button",onClick:e=>{var t;(null===(t=location)||void 0===t?void 0:t.href)&&(e.preventDefault(),(0,C.vQ)(ed),D.popToast(e=>(0,a.tZ)(S.FN,(0,l._)((0,n._)({},e),{Icon:c.Z,text:M("Copied link to clipboard")}))))},children:(0,a.tZ)("a",{href:ed,children:(0,a.tZ)(c.Z,{size:20})})})}),el&&K&&(0,a.tZ)(h.Z,{isOpen:W,isPublished:$,poll:K,shouldShowAudiencePicker:"adhoc_email"!==K.post_type,onClose:()=>{z(!1)},onSave:G}),!d&&K&&L&&(0,a.tZ)(m.Z,{ref:U,audience:K.audience,className:"poll-dialog",noCloseButton:!0,pollId:K.id,post:B,pub:L,user:O}),j?(0,a.tZ)(k.tu,{alignItems:"center",gap:8,justifyContent:"center",paddingY:48,children:(0,a.tZ)(I.xv.Meta,{translated:!0,children:"Loading..."})}):(0,a.BX)(a.HY,{children:[el&&(0,a.tZ)("button",{className:"poll-edit",disabled:j,onClick:()=>{z(!0)},children:(0,a.tZ)(u.Z,{height:20})}),q?(0,a.tZ)(b.y,{poll:K}):(0,a.tZ)(p.Z,{poll:K}),null!==J&&(0,a.tZ)("div",{className:"poll-error",children:J}),(0,a.tZ)(k.tu,{className:s()("poll-options",{"no-margins":!$}),gap:q?16:12,children:es&&es.map((e,t)=>{var i,n,l,r,o,d;return q?(0,a.tZ)(y.g,{currentVotes:(null==K?void 0:null===(i=K.options[t])||void 0===i?void 0:i.votes)||0,hasVoted:er,id:(null==K?void 0:null===(n=K.options[t])||void 0===n?void 0:n.id)||null,index:t,myVote:(null==K?void 0:null===(l=K.options[t])||void 0===l?void 0:l.my_vote)||!1,showVotes:er||ei||!!(O.is_contributor||O.is_admin||O.is_author)&&A,text:e,totalVotes:(null==K?void 0:K.total_votes)||0,onVote:ec}):(0,a.tZ)(g.w,{canVote:eo,currentVotes:(null==K?void 0:null===(r=K.options[t])||void 0===r?void 0:r.votes)||0,id:(null==K?void 0:null===(o=K.options[t])||void 0===o?void 0:o.id)||null,myVote:(null==K?void 0:null===(d=K.options[t])||void 0===d?void 0:d.my_vote)||!1,showVotes:er||ei||!!(O.is_contributor||O.is_admin||O.is_author)&&A,text:e,totalVotes:(null==K?void 0:K.total_votes)||0,onVote:ec})})}),$&&K&&(q?(0,a.tZ)(f.r,{hasVoted:er,poll:K,user:O}):(0,a.tZ)(Z.k,{hasVoted:er,isExpired:ei,poll:K,remainingHours:en,showResults:A,user:O,onToggleShowResults:()=>{T(!A)}}))]})]}):(0,a.tZ)("div",{className:"poll-wrapper poll-web",children:(0,a.tZ)("div",{className:"poll-error",children:J})})},F=e=>{let{id:t,embeddedPolls:i,pub:n}=e,l=i.find(e=>e.id===t),{iString:r,language:o}=(0,w.M1)(),d=(0,H.HD)({pub:n});return l?(0,a.tZ)(B.YF,{className:s()("poll-email-wrapper",{"poll-email-wrapper--thefp":d}),"data-component-name":"StaticPoll",children:(0,a.tZ)("tr",{children:(0,a.tZ)("td",{children:(0,a.BX)(B.YF,{width:"100%",children:[!d&&(0,a.tZ)("tr",{children:(0,a.tZ)("td",{className:"poll-header",children:r((null==l?void 0:l.audience)==="only_paid"?"SUBSCRIBER-ONLY POLL":"POLL")})}),(0,a.tZ)("tr",{className:"poll-question",width:"100%",children:(0,a.tZ)("td",{children:l.question||r("New Poll")})}),l.description&&(0,a.tZ)("tr",{className:"poll-description",width:"100%",children:(0,a.tZ)("td",{children:l.description})}),(0,a.tZ)("tr",{children:(0,a.tZ)("td",{children:(0,a.tZ)(B.YF,{className:"poll-options",width:"100%",children:l.options.map((e,t)=>{let{label:i,id:n}=e;return(0,a.tZ)("tr",{children:(0,a.tZ)("td",{className:"poll-option",width:"100%",children:(0,a.tZ)("a",{className:"poll-vote-link",href:"%%poll_vote_option_".concat(n,"_url%%"),width:"100%",children:(0,a.tZ)("div",{className:"poll-vote-contents",children:i||V(t,o)})})})})})})})})]})})})}):(0,a.tZ)("table",{className:"poll-wrapper","data-component-name":"StaticPollError",children:r("Something went wrong.")})}},81094:function(e,t,i){i.d(t,{Z:()=>o});var n=i(7409),l=i(99282),r=i(16584),a=i(64515);let o=e=>(0,r.BX)(a.l,(0,l._)((0,n._)({},e),{name:"AuthorBadgeIcon",svgParams:{height:15,width:12,viewBox:"0 0 12 15"},children:[(0,r.tZ)("path",{d:"M3.50002 2.58453C3.33335 3.58454 2.50001 5.58455 1 7.08456L6 14.5",strokeWidth:"1",strokeLinecap:"round","stroke-linejoin":"round"}),(0,r.tZ)("circle",{cx:"6.00019",cy:"8.58503",r:"1.00001",strokeWidth:"1"}),(0,r.tZ)("path",{d:"M3 0.5V2.58469H9.00004V0.5",strokeWidth:"1",strokeLinecap:"round","stroke-linejoin":"round"}),(0,r.tZ)("path",{d:"M8.49998 2.58453C8.66665 3.58454 9.49999 5.58455 11 7.08456L6 14.5",strokeWidth:"1",strokeLinecap:"round","stroke-linejoin":"round"}),(0,r.tZ)("path",{d:"M6.00012 9.58484L6.00012 14.5849",strokeWidth:"1"})]}))},88216:function(e,t,i){i.d(t,{Z:()=>s});var n=i(7409),l=i(99282),r=i(98848),a=i(16584),o=i(64515),d=i(24476);let s=e=>{var{isHovered:t}=e,i=(0,r._)(e,["isHovered"]);let s=t?d.t.brightOrange.hex:d.t.lightGray.hex,c=d.t.offWhite.hex;return(0,a.BX)(o.l,(0,l._)((0,n._)({},i),{name:"FPPdfIcon",svgParams:{width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"none"},children:[(0,a.tZ)("path",{d:"M4 2V0H18V1H19V2H20V3H21V4H22V22H20V24H4V22H2V2H4Z",fill:s}),(0,a.tZ)("rect",{x:"5",y:"8",width:"0.999999",height:"14",transform:"rotate(-90 5 8)",fill:c}),(0,a.tZ)("rect",{x:"5",y:"11",width:"0.999999",height:"14",transform:"rotate(-90 5 11)",fill:c}),(0,a.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 13V18.3845H6.0769V16.2307H8.2307V15.1538H9.3076V14.0769H8.2307V13H5ZM6.0769 14.0769H8.2307V15.1538H6.0769V14.0769Z",fill:c}),(0,a.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3843 13V18.3845H13.615V17.3076H14.6919V14.0769H13.615V13H10.3843ZM11.4612 14.0769H13.615V17.3076H11.4612V14.0769Z",fill:c}),(0,a.tZ)("path",{d:"M15.7693 13H19V14.0769H16.8462V15.1538H19V16.2307H16.8462V18.3845H15.7693V13Z",fill:c}),(0,a.tZ)("path",{d:"M17 0H18V1H19V2H20V3H21V4H22V5H17V0Z",fill:c}),(0,a.tZ)("rect",{x:"21",y:"4",width:"1",height:"1",fill:s}),(0,a.tZ)("rect",{x:"20",y:"3",width:"1",height:"1",fill:s}),(0,a.tZ)("rect",{x:"19",y:"2",width:"1",height:"1",fill:s}),(0,a.tZ)("rect",{x:"18",y:"1",width:"1",height:"1",fill:s}),(0,a.tZ)("rect",{x:"17",width:"1",height:"1",fill:s})]}))}},41193:function(e,t,i){i.d(t,{Z:()=>s});var n=i(92002),l=i(73580),r=i(7409),a=i(99282),o=i(16584),d=i(64515);let s=e=>{var t=(0,n._)({},(0,l._)(e));return(0,o.tZ)(d.l,(0,a._)((0,r._)({},t),{name:"FPPlayIcon",svgParams:{width:25,height:25,viewBox:"0 0 25 24",fill:"none",stroke:"none"},children:(0,o.BX)("g",{id:"play-circle",children:[(0,o.tZ)("path",{id:"Icon",d:"M12.5 22C18.0228 22 22.5 17.5228 22.5 12C22.5 6.47715 18.0228 2 12.5 2C6.97715 2 2.5 6.47715 2.5 12C2.5 17.5228 6.97715 22 12.5 22Z",stroke:"#F2312C",strokeWidth:"2",strokeLinecap:"round"}),(0,o.tZ)("path",{id:"Icon_2",d:"M10 8.96533C10 8.58446 10 7.5 10 7.5C10 7.5 10.8311 8.03429 11.2326 8.29239L15.9532 11.3271C16.2555 11.5214 17 12 17 12C17 12 16.3016 12.449 15.9532 12.6729L11.2326 15.7076C10.8311 15.9657 10 16.5 10 16.5C10 16.5 10 15.4155 10 15.0347V8.96533Z",fill:"#F2312C",stroke:"#F2312C",strokeWidth:"2",strokeLinecap:"round"})]})}))}},91355:function(e,t,i){i.d(t,{Z:()=>d});var n=i(7409),l=i(99282),r=i(16584),a=i(31131),o=i(64515);let d=e=>(0,r.tZ)(o.l,(0,l._)((0,n._)({},e),{name:"LucideShare2",svgParams:{height:24,width:24},children:(0,r.tZ)(a.Z,{height:24,stroke:e.stroke,fill:e.fill,strokeWidth:e.strokeWidth})}))},84881:function(e,t,i){i.d(t,{S:()=>f,y:()=>b});var n=i(16584),l=i(30396),r=i(80569),a=i.n(r),o=i(60826),d=i(20145),s=i(95441),c=i(90099),u=i(19081),h=i(38841),m=i(58175),p=i(18967),Z=i(60308),g=i(47929),v=i(34009);let b=e=>{let{tierNumber:t,rewardDescription:i,numReferralsRequired:r,pub:o}=e,[c,g]=(0,l.eJ)([]),v=async()=>{let{body:e}=await a().get("/api/v1/reader_referrals/tiers");g(e.tiers)},{iString:b}=(0,s.M1)();if((0,l.d4)(()=>{v()},[]),!t||!o.id)return(0,n.tZ)("div",{"data-component-name":"ReferralsTierCardError"});let f=c[t-1],y=f?"custom"===f.reward_type?f.reward_description:b(p.ML[f.reward_type]):i,_=f?f.num_referrals_required:r;return _?(0,n.BX)(u.tu,{"data-component-name":"ReferralsTierCard",className:"milestone-tier-card",justifyContent:"start",border:"detail-themed",radius:"md",padding:20,gap:16,children:[(0,n.tZ)("div",{className:"tier-stars-container",children:Array(t).fill(0).map((e,t)=>(0,n.tZ)(d.Z,{width:20,height:20,strokeWidth:2,stroke:o.theme_var_background_pop||"#FF6719",fill:o.theme_var_background_pop||"#FF6719"},t))}),(0,n.BX)(u.tu,{gap:4,children:[(0,n.tZ)(m.xv.H4,{children:y}),(0,n.BX)(m.xv.Meta,{translated:!0,children:["Tier ",I18N.p(t)," reward - ",I18N.p(_)," Referrals"]})]}),(0,n.BX)(u.gq,{alignItems:"center",children:[(0,n.tZ)(h.wk,{pub:o,size:24}),(0,n.tZ)(m.xv.Meta,{color:"primary",as:"a",href:(0,Z.SVA)(o),decoration:"none",weight:"bold",children:o.name})]})]}):(0,n.tZ)("div",{"data-component-name":"ReferralsTierCardError"})},f=e=>{let{tierNumber:t,pub:i}=e;return t&&i.id?(0,n.tZ)("a",{href:"".concat(o.W.LEADERBOARD_URL,"&utm_source=").concat(g.b3.rewardEmail),className:v.Z.referralsTierCard,children:(0,n.BX)(c.i$,{gap:16,children:[(0,n.tZ)(c.zK,{style:{lineHeight:0},gap:4,children:Array(t).fill(0).map((e,t)=>(0,n.tZ)(d.Z,{width:20,height:20,strokeWidth:2,stroke:i.theme_var_background_pop||"#FF6719",fill:i.theme_var_background_pop||"#FF6719",isStatic:!0},t))}),(0,n.BX)(c.i$,{gap:4,children:[(0,n.tZ)(m.xv.H4,{children:o.W.REWARD_DESCRIPTION}),(0,n.BX)(m.xv.Meta,{translated:!0,children:["Tier ",I18N.p(t)," reward - ",I18N.p(o.W.NUM_REFERRALS_REQUIRED)," Referrals"]})]}),(0,n.BX)(c.zK,{verticalAlign:"middle",children:[(0,n.tZ)(h.CN,{pub:i,size:24}),(0,n.tZ)(m.xv.Meta,{color:"primary",as:"a",href:(0,Z.SVA)(i),decoration:"none",weight:"bold",children:i.name})]})]})}):(0,n.tZ)("div",{})}},13693:function(e,t,i){i.d(t,{O:()=>v,V:()=>g});var n=i(16584),l=i(94184),r=i.n(l),a=i(60826),o=i(60807),d=i(90099),s=i(19081),c=i(58175),u=i(71106),h=i(60308),m=i(63651),p=i(37175),Z=i(24718);let g=e=>{var t;let{campaign:i,pub:l,isEditor:a,dataAttrs:o}=e;return(0,n.tZ)("div",{className:r()("sponsorship-campaign-embed",{"sponsorship-campaign-embed-structured":"structured"===i.campaign_type,[null!==(t=Z.Z.editorBorder)&&void 0!==t?t:""]:a}),dataAttrs:o,children:"structured"===i.campaign_type?(0,n.tZ)(b,{campaign:i,pub:l,isEditor:a}):(0,n.tZ)(_,{campaign:i,pub:l,isEditor:a})})},v=e=>{let{campaign:t,pub:i}=e;return(0,n.tZ)("table",{className:"sponsorship-campaign-embed",width:"100%",children:(0,n.tZ)("tbody",{children:(0,n.tZ)("tr",{children:(0,n.tZ)("td",{children:"structured"===t.campaign_type?(0,n.tZ)(f,{campaign:t,pub:i}):(0,n.tZ)(w,{campaign:t,pub:i})})})})})},b=e=>{var t,i;let{campaign:l,pub:r,isEditor:a}=e,d=(0,o.aF)();return(0,n.BX)(s.gq,{className:Z.Z.sponsorshipCampaign,alignItems:"center",justifyContent:"center",borderTop:"detail",borderBottom:"detail",paddingY:8,gap:16,as:"a",href:a?"#":(0,h.l5Q)({campaignId:l.id,medium:"web",pubId:null!==(t=null==r?void 0:r.id)&&void 0!==t?t:0,userId:null==d?void 0:d.id}),children:[l.short_text&&(0,n.tZ)("span",{className:Z.Z.presentedBy,children:l.short_text}),l.image_url&&(0,n.tZ)("div",{className:Z.Z.imageContainer,children:(0,n.tZ)("img",{alt:null!==(i=l.image_alt_text)&&void 0!==i?i:"",className:Z.Z.image,src:(0,m.zF4)(l.image_url,300)})})]})},f=e=>{var t;let{campaign:i,pub:l}=e;return(0,n.tZ)("a",{href:(0,h.l5Q)({campaignId:i.id,medium:"email",pubId:null!==(t=null==l?void 0:l.id)&&void 0!==t?t:0,userId:a.W.USER_ID}),style:{textDecoration:"none"},children:(0,n.tZ)(d.YF,{className:Z.Z.emailWrapper,"data-component-name":"StaticSponsorshipCampaignBlock",children:(0,n.tZ)("tr",{children:(0,n.BX)("td",{style:{padding:"8px 0",textAlign:"center"},children:[i.short_text&&(0,n.tZ)("span",{className:Z.Z.presentedByEmail,style:{verticalAlign:"middle",marginRight:"16px"},children:i.short_text}),i.image_url&&(0,n.tZ)("img",{style:{display:"inline-block",maxWidth:"100px",maxHeight:"80px",width:"auto",height:"auto",verticalAlign:"middle"},width:"100",height:"80",src:(0,m.zF4)(i.image_url,300)})]})})})})},y=e=>{let{html:t,campaign:i,pub:n,userId:l}=e;return t.replace(/href="([^"]*)"/g,(e,t)=>{var r;let a=(0,h.l5Q)({campaignId:i.id,medium:"web",pubId:null!==(r=null==n?void 0:n.id)&&void 0!==r?r:0,userId:l,url:t});return'href="'.concat(a,'"')})},_=e=>{let{campaign:t,pub:i,isEditor:l}=e,r=(0,o.aF)();if(!i)return null;let a=p.toHtml(t.doc_content,!1,{pubId:i.id}),d=l?a:y({html:(0,u.A)(a,{pub:i,user:r}),campaign:t,pub:i,userId:String(null==r?void 0:r.id),medium:"web"}),s=(0,n.tZ)("div",{className:Z.Z.docContentWrapper,dangerouslySetInnerHTML:{__html:d}});return l?(0,n.BX)("div",{className:Z.Z.editorWrapper,children:[(0,n.BX)(c.xv.Digit,{color:"secondary",className:Z.Z.editorHelperText,children:["paid"===t.exclude_audience_minimum?"Sponsored content (free subscribers only)":"Sponsored content",i&&(0,n.BX)(n.HY,{children:[" - ",(0,n.tZ)("a",{href:(0,h.p$H)({campaignId:t.id,pub:i}),children:"Edit"})]})]}),s]}):s},w=e=>{let{campaign:t,pub:i}=e;if(!i)return null;let l=y({html:p.toHtml(t.doc_content,!0,{pubId:i.id}),campaign:t,pub:i,userId:a.W.USER_ID,medium:"email"});return(0,n.tZ)("div",{className:Z.Z.docContentWrapperEmail,dangerouslySetInnerHTML:{__html:l}})}},86603:function(e,t,i){i.d(t,{Z:()=>l});var n=i(30396);function l(){let{root:e=null,threshold:t=0,rootMargin:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof window||"undefined"==typeof IntersectionObserver)return[null,null];let[l,r]=(0,n.eJ)(null),[a,o]=(0,n.eJ)(null),d=(0,n.sO)(new IntersectionObserver(e=>{let[t]=e;return r(t)},{root:e,threshold:t,rootMargin:i}));return(0,n.d4)(()=>{var e;let t=(null==a?void 0:null===(e=a.base)||void 0===e?void 0:e.addEventListener)?a.base:(null==a?void 0:a.addEventListener)?a:null,{current:i}=d;return i.disconnect(),t&&i.observe(t),()=>i.disconnect()},[a]),[o,l]}},90099:function(e,t,i){i.d(t,{Bj:()=>p,NS:()=>h.N,YF:()=>b,_i:()=>m,b9:()=>Z,i$:()=>g,zK:()=>v});var n=i(7409),l=i(99282),r=i(98848),a=i(16584),o=i(6400),d=i(94184),s=i.n(d);i(39693),i(1548),i(82621),i(83165),i(75081),i(15165),i(66436),i(38841);var c=i(66611);i(24791),i(6070),i(60308),i(84864);var u=i(98143);i(24750);var h=i(24421);function m(e){let{children:t,href:i,testId:n,tableClassName:l,tdClassName:r,aClassName:o,download:d,target:c,style:u,aStyle:h,disableTracking:m}=e;return(0,a.tZ)(b,{className:l,style:u,children:(0,a.tZ)("tr",{children:(0,a.tZ)("td",{className:r,align:"center",children:i?(0,a.tZ)("a",{href:i,className:s()(o),style:h,"data-test-id":n,download:d,target:c,"disable-tracking":m?"true":void 0,children:t}):(0,a.tZ)("span",{className:o,"data-test-id":n,children:t})})})})}function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{children:"",noUnderline:!1};return(0,a.tZ)(m,(0,l._)((0,n._)({},e),{aClassName:"email-button-a",tdClassName:"email-button-td"}))}function Z(e){var{fullWidth:t,priority:i="primary",size:o="md",aStyle:d,aClassName:c,tdClassName:h}=e,p=(0,r._)(e,["fullWidth","priority","size","aStyle","aClassName","tdClassName"]);return(0,a.tZ)(m,(0,l._)((0,n._)({},p),{tableClassName:t?u.Z.fullWidth:void 0,aClassName:s()(t&&u.Z.fullWidth,u.Z.emailButtonA,c,u.Z["size_".concat(o)]),tdClassName:s()(t&&u.Z.fullWidth,u.Z.emailButtonTd,h,u.Z["priority_".concat(i)]),aStyle:d}))}function g(e){let{children:t,gap:i=0,style:n,className:l}=e,r=(0,o.toChildArray)(t).flatMap(e=>"object"==typeof e&&e.type===o.Fragment?(0,o.toChildArray)(e.props.children):e),d=[];for(let e of r.slice(0,-1))d.push((0,a.tZ)("tr",{children:(0,a.tZ)("td",{children:e})})),i>0&&d.push((0,a.tZ)("tr",{height:i,children:(0,a.tZ)("td",{})}));let s=r[r.length-1];return s&&d.push((0,a.tZ)("tr",{children:(0,a.tZ)("td",{children:s})})),(0,a.tZ)(b,{style:n,className:l,children:d})}function v(e){let{cellWidth:t,children:i,gap:l=0,style:r,verticalAlign:d="middle",growLastChild:s,className:c}=e,u=(0,o.toChildArray)(i),h=[];for(let e of u.slice(0,-1))h.push((0,a.tZ)("td",{style:(0,n._)({verticalAlign:d},t?{width:t}:null),children:e})),l>0&&h.push((0,a.tZ)("td",{width:l,style:"min-width: ".concat(l,"px")}));let m=u[u.length-1];if(m){let e=(0,n._)({verticalAlign:d},t?{width:t}:null);s&&(e.width="100%"),h.push((0,a.tZ)("td",{style:e,children:m}))}return(0,a.tZ)(b,{style:r,className:c,children:(0,a.tZ)("tr",{children:h})})}function b(e){var{children:t}=e,i=(0,r._)(e,["children"]);return(0,a.tZ)("table",(0,l._)((0,n._)({role:"presentation",width:"auto",border:"0",cellspacing:"0",cellpadding:"0"},i),{children:t}))}(0,c.L)("email-text-button","a"),(0,c.L)("email-text-b4 email-text-secondary","div")},83786:function(e,t,i){i.d(t,{M:()=>r});var n=i(98661);let l=0;function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,n.useMemo)(()=>(l=++l>Number.MAX_SAFE_INTEGER?1:l,"".concat(e).concat(l)),t)}},52384:function(e,t,i){i.d(t,{Q:()=>d});var n=i(7409),l=i(98848),r=i(80569),a=i.n(r),o=i(7882);function d(e){var{auto:t,initialResult:i,deps:r}=e,d=(0,l._)(e,["auto","initialResult","deps"]);return(0,o.Wf)(async e=>{var{signal:t}=e,i=(0,l._)(e,["signal"]);let{pathname:r="",query:o,body:s,method:c="get"}=(0,n._)({},d,i),u=a()(c.toUpperCase(),r);o&&u.query(o),s&&u.send(s),t.addEventListener("abort",()=>{u.abort()});let h=await u;if(t.aborted)return;let m=h.error;if(m)throw m;return h.body},r||[],{auto:t,initialResult:i})}},55706:function(e,t,i){i.d(t,{R:()=>m,W:()=>h});var n=i(16584),l=i(95441),r=i(90099),a=i(98914),o=i(94874),d=i(15771),s=i(19081),c=i(58175),u=i(54991);let h=e=>{let{avatarUrl:t,name:i,url:a}=e,{iString:o}=(0,l.M1)();return(0,n.BX)(r.i$,{gap:12,style:{padding:"16px",border:"1px solid #E0E0E0",borderRadius:"8px",margin:"0 auto 20px"},children:[(0,n.BX)(r.zK,{gap:12,children:[(0,n.tZ)(r.NS,{src:t,size:40}),(0,n.BX)(r.i$,{children:[(0,n.BX)(c.xv.H4,{translated:!0,size:14,paddingBottom:4,color:"pub-primary-text",children:["Book a meeting with ",I18N.p(i)]}),(0,n.tZ)(c.xv.B4,{translated:!0,color:"pub-secondary-text",children:"Schedule a meeting"})]})]}),(0,n.tZ)(r.Bj,{tableClassName:u.Z.emailButton,href:a,children:o("Book meeting")})]})},m=e=>{let{avatarUrl:t,name:i,url:r}=e,{iString:h}=(0,l.M1)();return(0,n.BX)(s.hs,{direction:{mobile:"column",desktop:"row"},radius:"md",padding:24,alignItems:"center",className:u.Z.container,justifyContent:"space-between","data-component-name":"MeetingEmbed",children:[(0,n.BX)(s.gq,{className:u.Z.header,gap:16,paddingBottom:{mobile:20,desktop:0},children:[(0,n.tZ)(o.qE,{photoUrl:t,size:40}),(0,n.BX)("div",{children:[(0,n.BX)(c.xv.H4,{translated:!0,paddingBottom:4,color:"pub-primary-text",children:["Book a meeting with ",I18N.p(i)]}),(0,n.tZ)(c.xv.B4,{translated:!0,color:"pub-secondary-text",children:"Schedule a meeting"})]})]}),(0,n.tZ)(d.zx,{className:u.Z.cta,priority:"primary",onClick:()=>{(0,a.uX)(r,{newTab:!0})},children:h("Book meeting")})]})}},60684:function(e,t,i){i.d(t,{V:()=>g});var n=i(16584),l=i(19425),r=i(94184),a=i.n(r),o=i(71375),d=i(98661),s=i(20160),c=i(15771),u=i(80026),h=i(19081),m=i(58175);let p="show-xTDs8w",Z="hide-F0u6Dg",g=(0,d.forwardRef)((e,t)=>{let{title:i,onClose:r,children:d,className:g,paddingY:v=8}=e;return(0,n.tZ)(h.tu,{className:"root-BnqjqA",onClick:r,children:(0,n.tZ)(l.u.Child,{appear:!0,className:"transition-yWeLc7",enterFrom:Z,enterTo:p,leaveFrom:p,leaveTo:Z,children:(0,n.tZ)(s.W,{children:(0,n.BX)(h.tu,{className:a()("sheet-dvfhcO",g),padding:8,ref:t,onClick:e=>{e.stopPropagation()},children:[!!i&&(0,n.BX)(n.HY,{children:[(0,n.BX)(h.hs,{justifyContent:"space-between",alignItems:"center",paddingX:8,paddingTop:8,paddingBottom:16,children:[(0,n.tZ)(h.tu,{gap:4,justifyContent:"center",children:(0,n.tZ)(m.xv.B3,{weight:"semibold",children:i})}),(0,n.tZ)(c.hU,{priority:"tertiary",onClick:()=>{r()},children:(0,n.tZ)(o.Z,{size:20})})]}),(0,n.tZ)(u.iz,{paddingX:8})]}),(0,n.tZ)(h.tu,{gap:8,paddingY:v,overflowY:"auto",children:d})]})})})})})},14775:function(e,t,i){i.d(t,{F:()=>h});var n=i(7409),l=i(98848),r=i(16584),a=i(94184),o=i.n(a),d=i(98661),s=i(19081),c=i(4615),u=i(6114);let h=(0,d.forwardRef)((e,t)=>{var{className:i,padding:a=4}=e,d=(0,l._)(e,["className","padding"]);return(0,r.tZ)(c.Sf,{children:(0,r.tZ)(s.tu,(0,n._)({className:o()(u.Z.menu,"elevated",i),bg:"elevated",shadow:"md",border:"detail",radius:"sm",sizing:"border-box",showFocus:!0,gap:2,padding:a,ref:t},d))})})},10903:function(e,t,i){i.d(t,{x:()=>d});var n=i(7409),l=i(99282),r=i(98661),a=i(62372),o=i(83786);let d=function(){let{layerOptions:e,hideOnScroll:t,onClose:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[d,s]=(0,r.useState)(!1),{triggerProps:c,layerProps:u,renderLayer:h}=(0,a.sJ)((0,n._)({isOpen:d,placement:"bottom-center",preferY:"bottom",triggerOffset:10,onOutsideClick:()=>{i&&i(),s(!1)}},e)),m=(0,o.M)("trigger"),p=(0,o.M)("dialog");return(0,r.useEffect)(()=>{if(t){let e=()=>{requestAnimationFrame(()=>{open&&t&&s(!1)})};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}},[t]),{triggerProps:(0,l._)((0,n._)({},c),{id:m,"aria-expanded":d,"aria-haspopup":"dialog","aria-controls":p}),layerProps:(0,l._)((0,n._)({},u),{id:p,role:"dialog",tabIndex:0,"aria-labeledby":m}),renderLayer:h,isOpen:d,setOpen:s}}},67836:function(e,t,i){i.d(t,{a:()=>n});let n=(e,t,i)=>{var n;return(null!==(n=null==i?void 0:i.duration)&&void 0!==n?n:0)>0||["everyone","only_free"].includes(t.audience)||["only_paid"].includes(t.audience)&&(null==e?void 0:e.is_subscribed)||["founding"].includes(t.audience)&&(null==e?void 0:e.is_founding)}}}]);