/*! For license information please see HomeLoLegacyPage.MainContent.6e05974e.chunk.js.LICENSE.txt */ (self.webpackChunklite=self.webpackChunklite||[]).push([[4445],{45226:(e,n,t)=>{"use strict";t.r(n),t.d(n,{MainContent:()=>Hn});var i=t(67294),a=t(96156),r=t(70405),o=t(19424),l=t(43487),d=function(){var e=(0,l.v9)((function(e){return e.cache.enableLohpFocused})),n=!1,t=!1;switch(e){case"group_1":n=!0;break;case"group_2":t=!0}return{shouldOnlyShowTrending:n,shouldOnlyShowTopModule:t,focusGroup:e}},c=t(52439),m=t(90484),s=t(92137),u=t(64718),p=t(92030),k=t(26829),f=t(1180),g=t(14813),v=t(77355),h=t(17583),x=t(34699),E=t(91175),y=t.n(E),S=t(35989),N=t(45700),b=t(17235),w=t(63459),F=t(7578),C={width:100,height:100},_={width:150,height:100},P={width:200,height:134},T={width:200,height:134},D={width:200,height:134},O=t(31889),I=t(18704),L=t(50455),R=t(73279),A=t(4381),M=t(94124),B=t(93310),Z=t(87691),X=t(52069),V=t(90586),j=t(14646),H=t(13663),W=t(75221),G=t(46696),U={whiteSpace:"nowrap"},z=function(e){var n=e.post,t=e.windowWidth,a=e.setDismissedPostId,r=e.showPublishDateInHeader,o=void 0!==r&&r,d=function(e){var n=(0,O.F)(),t=C;return e>=n.breakpoints.xl?t=D:n.breakpoints.lg<=e&&e=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var d=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(d&&c){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),T(t),v}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var i=t.completion;if("throw"===i.type){var a=i.arg;T(t)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,i){return this.delegate={iterator:O(n),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),v}},n}var me=function(){var e,n,t,a=(0,u.a)(le,{variables:{paging:{limit:10}}}),r=a.data,o=a.loading,l=a.error,d=a.fetchMore,c=null==r||null===(e=r.staffPicksFeed)||void 0===e||null===(n=e.pagingInfo)||void 0===n||null===(t=n.next)||void 0===t?void 0:t.from,m=(0,i.useCallback)((0,s.Z)(ce().mark((function e(){return ce().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",d({variables:{paging:{from:c,limit:10}}}));case 3:case"end":return e.stop()}}),e)}))),[d,c]),x=(0,h.s)(),E="xs"===x||"sm"===x||"md"===x;if(o)return i.createElement(k.a,null);if(l)return i.createElement(p.C,{error:l});if(null==r||!r.staffPicksFeed)return null;var y=r.staffPicksFeed;return i.createElement(v.x,null,i.createElement(g.P,{fetchMore:c?m:null,disabled:E,fetchMoreText:"Load more stories",fetchingPlaceholder:i.createElement(f.u,{numPlaceholders:2})},i.createElement(de,{feedItems:i.createElement(Y,{items:(null==y?void 0:y.items)||[]})})))},se=t(68356),ue=t.n(se),pe=t(26350),ke=t(96370),fe=t(54945),ge=t(50742),ve=t(12104),he=ue()({loading:function(){return null},loader:function(){return Promise.all([t.e(1248),t.e(1826)]).then(t.bind(t,34598))},modules:["./LOHomeAnimation"],webpack:function(){return[34598]},render:(0,ge.n)("LOHomeAnimation")}),xe=function(e){var n;return n={},(0,a.Z)(n,ve.xs(e),{paddingTop:"123px",paddingBottom:"48px"}),(0,a.Z)(n,ve.sm(e),{paddingTop:"123px",paddingBottom:"48px"}),n},Ee=function(e){return(0,a.Z)({},ve.xl(e),{paddingTop:"93px",paddingBottom:void 0})},ye=function(e){var n;return n={height:"100%",display:"flex",flexDirection:"column",zIndex:2},(0,a.Z)(n,ve.xs(e),{paddingBottom:"92px",paddingTop:"168px"}),(0,a.Z)(n,ve.sm(e),{paddingBottom:"92px",paddingTop:"168px"}),(0,a.Z)(n,ve.md(e),{paddingBottom:"92px",paddingTop:"168px"}),(0,a.Z)(n,ve.lg(e),{paddingBottom:"92px",paddingTop:"168px"}),(0,a.Z)(n,ve.xl(e),{paddingBottom:"92px",paddingTop:"168px"}),n},Se=function(){var e=(0,j.I)(),n=(0,O.F)(),t=(0,i.useState)(!1),a=(0,x.Z)(t,2),r=a[0],o=a[1],c=d(),m=c.shouldOnlyShowTrending,s=c.shouldOnlyShowTopModule,u=c.focusGroup,p=(0,l.v9)((function(e){return e.cache.enableMobileLohpShortHero})),k="experiment"===p,f=(0,i.useCallback)((function(){var e="control"===u?n.breakpoints.md:n.breakpoints.lg;o(window.innerWidth>e)}),[u]);(0,i.useEffect)((function(){return q.V6.on("resize",f),f(),function(){return q.V6.off("resize",f)}}),[]);var g=[ye];return m?g.push(Ee):k&&g.push(xe),i.createElement(v.x,{position:"relative",overflow:"hidden",width:"100%",height:"100%",minHeight:k?void 0:"463px"},r&&i.createElement(he,null),i.createElement(ke.P,{rules:{height:"100%",alignItems:"center"}},i.createElement(v.x,{display:"flex",flexDirection:"row",flexGrow:"1"},i.createElement("div",{className:e(g)},i.createElement(v.x,{marginBottom:s?{xs:"32px",sm:"32px",md:"32px",lg:"48px",xl:"48px"}:"35px"},i.createElement(Ne,{focusedBucket:u,enableMobileLohpShortHero:k})),i.createElement(v.x,{width:{xs:"100%",sm:"80%",md:"80%",lg:"80%",xl:"80%"},marginBottom:s?{xs:"50px",sm:"50px",md:"48px",lg:"64px",xl:"64px"}:"50px"},i.createElement("span",{className:e(p?Fe:we)},i.createElement(V.QE,{scale:"M",color:"DARKER"},"Discover stories, thinking, and expertise from writers on any topic."))),i.createElement("div",{className:e(be)},i.createElement(pe.R,{operation:"register",isButton:!0,buttonSize:"LARGE",buttonStyle:"BRAND",susiEntry:"lohp_hero_writing",buttonWidth:"213px"},"Start reading"))))))},Ne=function(e){var n=e.focusedBucket,t=void 0===n?"control":n,a=e.enableMobileLohpShortHero,r=(0,j.I)();return"group_2"===t?i.createElement("span",{className:r(Ce)},i.createElement(fe.H2,{scale:{xs:"XXL",sm:"XXXL",md:"XXXXL",lg:"XXXXL",xl:"XXXXL"}},"Stay curious.")):a?i.createElement("span",{className:r(_e)},i.createElement(fe.H2,{scale:{xs:"XXL",sm:"XXXL",md:"XXXXL",lg:"XXXXL",xl:"XXXXL"}},"Stay curious.")):i.createElement(fe.H2,{scale:{xs:"XXL",sm:"XXXL",md:"XXXL",lg:"XXXXL",xl:"XXXXL"}},"Stay curious.")},be=function(){return{"& button":{fontSize:"20px"}}},we=function(){return{"& h3":{fontSize:"24px"}}},Fe=function(){return{"@media all and (max-width:727px)":{"& h3":{fontSize:"20px"}},"& h3":{fontSize:"24px"}}},Ce=function(){return{"@media all and (min-width:904px)":{"& h2":{fontSize:"120px"}}}},_e=function(){return{"@media all and (max-width:727px)":{"& h2":{fontSize:"62px",lineHeight:"64px"}}}},Pe=t(55447),Te=t(18634),De=t(18627),Oe=t(51556),Ie=t(37734),Le=t(50458),Re=t(72055),Ae=t(31865),Me="75px",Be=Oe.E,Ze="lo_home_nav",Xe=function(e){return function(n){return(0,a.Z)({zIndex:10,backgroundColor:e?n.colorTokens.background.neutral.primary.base:Be,width:"100%",borderBottom:"solid 1px ".concat(n.colorTokens.border.neutral.secondary.base),position:"fixed",top:"0",left:"0",right:"0"},(0,Ie.nk)("no-preference"),{transition:"background-color 300ms linear"})}},Ve=function(e){var n=e.href,t=e.children,a=e.eventName,r=(0,De.A)();return i.createElement(B.r,{href:n,onClick:function(){return r.event(a,{locationId:"nav_full"})}},t)},je=function(e){return{marginRight:e?"0":"25px",marginLeft:e?"16px":"0","& button":{border:"none"}}},He=function(){var e=(0,j.I)(),n=i.useState(!1),t=(0,x.Z)(n,2),r=t[0],o=t[1],d=(0,l.v9)((function(e){return e.config.authDomain})),c=(0,l.v9)((function(e){return e.config.productName})),m=(0,l.v9)((function(e){return e.cache.enableLohpWithSearch})),s="experiment"===(0,l.v9)((function(e){return e.cache.enableSpamBuster})),u=(0,De.A)(),p="experiment"===m;return(0,i.useEffect)((function(){var e=function(){window.scrollY>370&&!r&&o(!0),window.scrollY<=370&&r&&o(!1)};return e(),q.V6.on("scroll",e),function(){q.V6.off("scroll",e)}}),[r,o]),i.useEffect((function(){u.event("homepage.nav.membershipLinkViewed",{locationId:"nav_full"})}),[]),i.createElement("div",{className:e(Xe(r))},i.createElement(ke.P,null,i.createElement(v.x,{display:"flex",flexDirection:"row",height:Me,padding:"25px 0"},i.createElement(v.x,null,i.createElement(B.r,{href:"/",onClick:function(){return window.location.reload()}},i.createElement(Pe.Rv,{size:"S"}))),p&&i.createElement(v.x,{display:"flex",alignItems:"center"},i.createElement(Te.y,{md:!0,lg:!0,xl:!0,marginLeft:"16px"},i.createElement(Ae.o,null))),i.createElement(v.x,{flexGrow:"1"}),i.createElement(v.x,{display:"flex",flexDirection:"row",alignItems:"center"},i.createElement(v.x,{display:{xs:"none",sm:"none",md:p?"none":"inline-block",lg:p?"none":"inline-block",xl:"inline-block"}},i.createElement(v.x,{marginRight:"25px"},i.createElement(Z.F,{scale:"M",color:"DARKER"},i.createElement(Ve,{href:(0,Le.jQ)({authDomain:d}),eventName:"homepage.nav.aboutClicked"},"Our story")))),i.createElement(v.x,{display:{xs:"none",sm:"none",md:p?"none":"inline-block",lg:p?"none":"inline-block",xl:"inline-block"}},i.createElement(v.x,{marginRight:"25px"},i.createElement(Z.F,{scale:"M",color:"DARKER"},i.createElement(Ve,{href:(0,Le.OA)(d),eventName:"homepage.nav.membershipClicked"},"Membership")))),i.createElement(v.x,{display:{xs:"none",sm:"none",md:p?"none":"inline-block",lg:p?"none":"inline-block",xl:"inline-block"}},i.createElement(v.x,{marginRight:"25px"},i.createElement(Z.F,{scale:"M",color:"DARKER"},i.createElement(Ve,{href:(0,Le.GM)(d,c),eventName:"homepage.nav.creatorsClicked"},"Write")))),i.createElement(v.x,{display:{xs:"none",sm:p?"none":"inline-block",md:"inline-block",lg:"inline-block",xl:"inline-block"}},!s&&i.createElement("div",{className:e(je(s))},i.createElement(Z.F,{scale:"M",color:"DARKER"},i.createElement(pe.R,{operation:"login",susiEntry:Ze,isButton:!0,buttonStyle:"SUBTLE"},"Sign in")))),p&&i.createElement(Te.y,{xs:!0,sm:!0},i.createElement(Re.O,{routeName:"ShowSearch",testId:"headerSearchButton",marginRight:{xs:"8px",sm:"24px",md:"24px",lg:"24px",xl:"24px"}})),i.createElement("div",{className:e({"& button":(0,a.Z)({},(0,Ie.nk)("no-preference"),{transition:"background-color 300ms linear, color 300ms linear"})})},i.createElement(pe.R,{operation:"register",susiEntry:Ze,isButton:!0,buttonSize:"REGULAR",buttonStyle:r?"STRONG":"BRAND"},"Get started")),i.createElement(v.x,{display:{xs:"none",sm:p?"none":"inline-block",md:"inline-block",lg:"inline-block",xl:"inline-block"}},s&&i.createElement("div",{className:e(je(s))},i.createElement(Z.F,{scale:"M",color:"DARKER"},i.createElement(pe.R,{operation:"login",susiEntry:Ze,isButton:!0,buttonStyle:"SUBTLE"},"Sign in"))))))))},We=function(){return i.createElement(v.x,{background:Be,borderBottom:"neutral.secondary",display:"flex",flexGrow:"1",alignItems:"center",width:"100%"},i.createElement(He,null),i.createElement(v.x,{height:Me}),i.createElement(Se,null))},Ge=t(43158),Ue=t(92780),ze=t(21372),Ke=function(e){var n=e.post,t=e.index,a=n||{},r=a.id,o=a.title,d=a.firstPublishedAt,c=a.readingTime,m=a.mediumUrl,s=(0,j.I)(),u=(0,l.v9)((function(e){return e.client.isSafariMobile})),p=(0,Ue.n)({name:"heading",scale:"L",fontWeight:"NORMAL",color:"NORMAL"});return r&&o&&m?i.createElement(Ge.P,{size:{xs:12,sm:12,md:6,lg:6,xl:4}},i.createElement(H.o,{post:n,presentationContext:"POST_PREVIEW"},i.createElement(v.x,{width:"100%",height:"100%",display:"flex",marginBottom:"24px",alignItems:"flex-start",playwrightClassName:"pw-trending-post"},i.createElement(v.x,{marginRight:"16px",position:"relative",top:"-10px",width:"40px",flexShrink:"0"},i.createElement("span",{className:s([p,function(e){return{color:e.colorTokens.border.neutral.primary.base}}])},(0,ze.vX)(t+1))),i.createElement(v.x,{display:"flex",flexDirection:"column"},i.createElement(v.x,{marginBottom:"8px"},i.createElement(F.q,{post:n,showAuthorCard:!0})),i.createElement(v.x,{marginBottom:"8px"},i.createElement(B.r,{href:m},i.createElement("div",{className:s((function(e){var n={};return u&&(n[(0,Ie.ZB)(e.breakpoints.lg-.02)]={"-webkit-text-size-adjust":"none"}),n}))},i.createElement(X.Dx,{scale:"XS",clamp:2},o)))),i.createElement(Z.F,{scale:"S",tag:"span"},i.createElement(v.x,{display:"flex",alignItems:"center"},i.createElement(w.Ej,{timestamp:null!=d?d:0}),i.createElement(v.x,{paddingLeft:"6px",paddingRight:"6px",ariaHidden:"true"},i.createElement(R.O,null)),i.createElement(I.N,{readingTime:c}),n.visibility===W.Wn.LOCKED?i.createElement(S.U,{padding:"0 0 0 4px",post:n,hideLabelDesktop:!0}):null)))))):null},qe=t(47459),Qe=t(20113);function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{_:()=>c});var i=t(67294),a=t(70405),r=t(86706),o=t(68254),l=t.n(o),d=t(50458),c=(0,r.$j)((function(e){return{isCustomDomain:e.client.isCustomDomain}}))((function(e){var n=e.isCustomDomain,t=e.isHomePage,r=e.imageUrl,o=e.card,c=void 0===o?r?"summary_large_image":"summary":o,m=e.title,s=e.description,u=e.seoTitle,p=e.seoDescription,k=e.pageUrl,f=e.publicationName,g=e.publicationTwitterHandle,v=void 0===g?"@Medium":g,h=e.creatorTwitterHandle,x=void 0===h?v:h,E=e.pageType,y=e.noIndex,S={"@context":"http://schema.org","@type":"Organization",url:"https://medium.com",name:"Medium",description:p||s,publishingPrinciples:d.oH,logo:{"@type":"ImageObject",url:"https://miro.medium.com/v2/resize:fit:968/1*F6SrJR7_s95r6oCF3ugMZw.png",width:484,height:168}};return i.createElement(a.ql,null,i.createElement("title",null,u||m),i.createElement("meta",{name:"title",content:u||m}),p||s?i.createElement("meta",{name:"description",content:p||s}):null,!n&&t&&i.createElement(i.Fragment,null,i.createElement("script",{type:"application/ld+json"},l()(S,{isJSON:!0})),i.createElement("link",{rel:"canonical",href:k})),y&&i.createElement("meta",{name:"robots",content:"noindex,follow"}),i.createElement("meta",{name:"twitter:card",content:c}),i.createElement("meta",{name:"twitter:creator",content:x}),s?i.createElement("meta",{name:"twitter:description",content:s}):null,r?i.createElement("meta",{name:"twitter:image:src",content:r}):null,i.createElement("meta",{name:"twitter:site",content:v}),i.createElement("meta",{name:"twitter:title",content:m}),s?i.createElement("meta",{property:"og:description",content:s}):null,r?i.createElement("meta",{property:"og:image",content:r}):null,i.createElement("meta",{property:"og:site_name",content:f}),i.createElement("meta",{property:"og:title",content:m}),i.createElement("meta",{property:"og:type",content:E}),i.createElement("meta",{property:"og:url",content:k}))}))},80536:(e,n,t)=>{"use strict";t.d(n,{l:()=>c});var i=t(87329),a=t(38487),r=t(57477),o=t(67912),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ExplicitSignalMenuOptions_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NegativeSignalModal_post"}}]}}].concat((0,i.Z)(o.d.definitions))},d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OverflowMenu_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"OverflowMenuItemUndoClaps_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"AddToCatalogBase_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ExplicitSignalMenuOptions_post"}}]}}].concat((0,i.Z)(a.g.definitions),(0,i.Z)(r._C.definitions),(0,i.Z)(l.definitions))},c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OverflowMenuButton_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"FragmentSpread",name:{kind:"Name",value:"OverflowMenu_post"}}]}}].concat((0,i.Z)(d.definitions))}},68427:(e,n,t)=>{"use strict";t.d(n,{B:()=>l,R:()=>d});var i=t(8575),a=t(67294),r=t(43487),o=t(78870),l=function(){var e=(0,r.v9)((function(e){return e.navigation.currentLocation})),n=(0,r.v9)((function(e){return e.config.authDomain})),t=(0,o.rp)();return(0,a.useCallback)((function(a){var r=a.id,o=a.domain,l=function(e){var n=e.id,t=e.slug;return t?"/".concat(t):"/c/".concat(n)}({id:r,domain:o,slug:a.slug});if(t)return"https://".concat(n).concat(l);var d=(0,i.parse)(e).port;return o?"https://".concat(o).concat(d?":".concat(d):""):"https://".concat(n).concat(l)}),[t])},d=function(e){return l()(e)}},84683:(e,n,t)=>{"use strict";t.d(n,{d:()=>r});var i=t(87329),a=t(68216),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionAvatar_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"avatar"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}}]}}].concat((0,i.Z)(a.nf.definitions))}},71652:(e,n,t)=>{"use strict";t.d(n,{v:()=>s});var i=t(67294),a=t(68427),r=t(14818),o=t(4381),l=t(27323),d=t(29746),c=t(46696),m=function(e){return function(n){return{borderRadius:(0,d.a)(n.borderRadius.regular),width:(0,d.a)(e),height:(0,d.a)(e)}}},s=function(e){var n=e.circular,t=e.collection,d=e.size,s=void 0===d?60:d,u=e.link,p=e.showHoverState,k=(0,a.R)(t);if(!t||!t.avatar||!t.avatar.id)return null;var f=t.avatar.id,g=t.name||"Publication avatar",v=n?i.createElement(r.z,{miroId:f,alt:g,diameter:s,freezeGifs:!1,showHoverState:p}):i.createElement(o.UV,{rules:[m(s)],miroId:f,alt:g,width:s,height:s,strategy:c._S.Crop});return u?i.createElement(l.P,{href:k},v):v}},1180:(e,n,t)=>{"use strict";t.d(n,{u:()=>l});var i=t(67294),a=t(77355),r=t(60600),o=function(){return i.createElement(a.x,{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"16px",width:"100%"},i.createElement(a.x,{width:"100%"},i.createElement(a.x,{display:"flex",flexDirection:"row",alignItems:"center",marginBottom:"20px"},i.createElement(a.x,{height:"20px",width:"20px",backgroundColor:"BASE_NORMAL",borderRadius:"10px",marginRight:"8px"}),i.createElement(a.x,{height:"8px",width:"82px",backgroundColor:"BASE_NORMAL"})),i.createElement(a.x,{width:"80%",height:"16px",marginBottom:"12px",backgroundColor:"BASE_NORMAL"}),i.createElement(a.x,{width:"65%",height:"16px",marginBottom:"12px",backgroundColor:"BASE_NORMAL"})),i.createElement(a.x,{height:"133px",width:"200px",backgroundColor:"BASE_NORMAL"}))},l=function(e){var n=e.numPlaceholders,t=void 0===n?4:n;return i.createElement(r.f,{itemPlaceholder:o,numPlaceholders:t})}},24825:(e,n,t)=>{"use strict";t.d(n,{d:()=>d});var i=t(87329),a=t(84683),r=t(27048),o=t(68216),l=t(18821),d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewAvatar_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionAvatar_collection"}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}}]}}]}}].concat((0,i.Z)(a.d.definitions),(0,i.Z)(r.W.definitions),(0,i.Z)(o.$m.definitions),(0,i.Z)(l.H.definitions))}},7578:(e,n,t)=>{"use strict";t.d(n,{q:()=>F});var i=t(67294),a=t(68427),r=t(84739),o=t(65968),l=t(64238),d=t(71652),c=t(34699),m=t(64718),s=t(28695),u=t(77355),p=t(69992),k=t(31889),f=t(87329),g=t(54341),v={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AuthorCardQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserMentionTooltip_user"}}]}}]}}].concat((0,f.Z)(g.O.definitions))},h=function(e){var n=e.userId,t=(0,m.a)(v,{ssr:!1,variables:{id:n}}),a=t.loading,r=t.data,o=t.error,l=null==r?void 0:r.user;return a||o||!l?i.createElement(s.u,null):i.createElement(s.K,{user:l})},x=function(e){var n=e.children,t=e.creatorId,a=e.showAuthorCard,r=void 0!==a&&a,o=i.useState(0),l=(0,c.Z)(o,2),d=l[0],m=l[1],s=(0,k.F)();i.useEffect((function(){d||m(window.innerWidth)}),[]);var f=d<=s.breakpoints.sm;return r&&t&&!f?i.createElement(u.x,{height:"16px"},i.createElement(p.$,{placement:"right",targetDistance:15,mouseLeaveDelay:200,popoverRenderFn:function(){return i.createElement(h,{userId:t})},display:"block"},n)):n},E=t(17193),y=t(93310),S=t(66216),N=t(88018),b=t(14646),w=function(e){var n=e.clamp,t=e.children,a=e.rules,r=e.tag,o=void 0===r?"h4":r,l=(0,b.I)(),d=(0,k.F)(),c=d.newFonts.detail,m=[{fontFamily:c.family,fontWeight:"500"},(0,N.M)({fontConfig:c,scale:"S"}),n?(0,S.V)({clamp:n,lineHeight:16}):void 0,{lineHeight:"16px",color:d.colorTokens.foreground.neutral.primary.base},a];return i.createElement(o,{className:l(m)},t)};function F(e){var n,t=e.post,c=e.showAuthorCard,m=e.withAvatar,s=void 0===m||m,p=e.avatarTag,f=e.allowCollectionAvatar,g=void 0===f||f,v=t.creator,h=t.collection,S=(0,k.F)(),N=(0,r.I)(),b=(0,a.B)(),F=(0,l.o)(v);if(!v)return null;var C,_,P=v.name,T=N(v);return null!=h&&h.id&&(null==h?void 0:h.name)!==v.name&&(C=b(h),_=h.name),i.createElement(u.x,{display:"flex",flexDirection:"row",alignItems:"center"},s?null!=h&&h.id&&g?i.createElement(d.v,{collection:h,size:20,link:!0}):i.createElement(E.Yt,{user:v,scale:"XXXS",link:!0}):null,i.createElement(u.x,{marginLeft:s?"8px":"0",display:"flex",flexWrap:"wrap",alignItems:"center"},i.createElement(x,{creatorId:null===(n=t.creator)||void 0===n?void 0:n.id,showAuthorCard:c},i.createElement(u.x,{display:"flex",alignItems:"center"},i.createElement(y.r,{href:T},i.createElement(w,{clamp:1,rules:{paddingRight:"2px"},tag:p},P)),F&&i.createElement(u.x,{marginRight:"3px"},i.createElement(o._,{size:"S"})))),_&&i.createElement(u.x,{display:"flex"},i.createElement(w,{rules:{paddingRight:"2px",color:S.colorTokens.foreground.neutral.secondary.base},tag:p},"in"),i.createElement(y.r,{href:C,display:"inline-block"},i.createElement(w,{clamp:1,tag:p},_)))))}},18704:(e,n,t)=>{"use strict";t.d(n,{N:()=>l});var i=t(67294),a=t(87691),r=t(21372),o="S";function l(e){var n=e.readingTime,t=e.scale,l=void 0===t?o:t,d=e.includeRead,c=void 0===d||d,m=e.color,s=e.tag,u=void 0===s?"span":s,p=c?" read":"";return i.createElement(a.F,{scale:l,color:m,tag:u,playwrightClassName:"pw-reading-time"},"".concat((0,r.Vd)(n||0)," min").concat(p))}},46732:(e,n,t)=>{"use strict";t.d(n,{JP:()=>r,cZ:()=>o});var i=t(87329),a=t(1877),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ClapMutation_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"clapCount"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MultiVoteCount_post"}}]}}].concat((0,i.Z)(a.U.definitions))},o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ClapMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"numClaps"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clap"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPostId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"numClaps"},value:{kind:"Variable",name:{kind:"Name",value:"numClaps"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ClapMutation_viewerEdge"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ClapMutation_post"}}]}}]}}].concat((0,i.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"ClapMutation_viewerEdge"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PostViewerEdge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"clapCount"}}]}}]),(0,i.Z)(r.definitions))}},13195:(e,n,t)=>{"use strict";t.d(n,{C:()=>s});var i=t(96156),a=t(34699),r=t(21919),o=t(67294),l=t(11462),d=t(46732);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function m(e){for(var n=1;n{"use strict";t.d(n,{U:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MultiVoteCount_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},39507:(e,n,t)=>{"use strict";t.d(n,{T:()=>r});var i=t(64718),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PostViewerEdgeQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"clapCount"}},{kind:"Field",name:{kind:"Name",value:"readingList"}},{kind:"Field",name:{kind:"Name",value:"shareKey"}},{kind:"Field",name:{kind:"Name",value:"creatorPartnerProgramEnrollmentStatus"}}]}}]}}]}}]}}]},r=function(e){var n,t=(0,i.a)(a,{variables:{postId:(null==e?void 0:e.id)||""},ssr:!1,skip:!(null!=e&&e.id)}),r=t.loading,o=t.error,l=t.data;return r?{loading:r}:o?{error:o}:{viewerEdge:null==l||null===(n=l.post)||void 0===n?void 0:n.viewerEdge}}},98007:(e,n,t)=>{"use strict";t.d(n,{Os:()=>r,qU:()=>o,Vm:()=>l,GB:()=>d});var i=t(87329),a=t(20121),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiClickable_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_collection"}}]}}].concat((0,i.Z)(a.Hr.definitions))},o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiClickable_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"mediumUrl"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_post"}}]}}].concat((0,i.Z)(a.qt.definitions))},l=([{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiClickable_topic"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Topic"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_topic"}}]}}].concat((0,i.Z)(a.Uh.definitions)),{kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiClickable_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_user"}}]}}].concat((0,i.Z)(a.Zd.definitions))}),d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiClickable_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_newsletterV3"}}]}}].concat((0,i.Z)(a.gs.definitions))};[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SusiClickableAccountTokenQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_query"}}]}}].concat((0,i.Z)(a.Zz.definitions))},88264:(e,n,t)=>{"use strict";t.d(n,{H:()=>c});var i=t(67294),a=t(4381),r=t(93310),o=t(18627),l=t(46696),d=t(50458),c=function(e){var n=e.entryPoint,t=e.height,c=void 0===t?41:t,m=e.width,s=void 0===m?135:m,u=(0,o.A)();return i.createElement(r.r,{href:(0,d._A)(),onClick:function(){u.event("googlePlay.appStoreButtonClicked",{entryPoint:n})}},i.createElement(a.UV,{miroId:"1*W_RAPQ62h0em559zluJLdQ.png",width:s,height:c,strategy:l._S.Resample,alt:"A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store"}))}},52370:(e,n,t)=>{"use strict";t.d(n,{E:()=>s});var i=t(67294),a=t(4381),r=t(93310),o=t(18627),l=t(66411),d=t(46696),c=t(78870),m=t(50458),s=function(e){var n=e.entryPoint,t=e.height,s=void 0===t?41:t,u=e.width,p=void 0===u?135:u,k=(0,o.A)(),f=(0,l.Qi)(),g=(0,c.Rk)((0,m.dT)(),{ct:f});return i.createElement(r.r,{href:g,onClick:function(){k.event("apple.appStoreButtonClicked",{entryPoint:n})}},i.createElement(a.UV,{miroId:"1*Crl55Tm6yDNMoucPo1tvDg.png",width:p,height:s,strategy:d._S.Resample,alt:"A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store"}))}},81281:(e,n,t)=>{"use strict";t.d(n,{V:()=>r});var i=t(67294),a=t(14646),r=function(e){var n=e.styleRules,t=(0,a.I)();return i.createElement("hr",{className:t(n),"aria-hidden":"true"})}},16793:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});const i=t(3863).N.Consumer},15013:(e,n,t)=>{"use strict";t.d(n,{h:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPresentationTracker_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"previewContent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isFullContent"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"slug"}}]}}]}}]}},13663:(e,n,t)=>{"use strict";t.d(n,{o:()=>m});var i=t(67294),a=function(e){switch(e){case"PUBLIC":return 0;case"UNLISTED":return 1;case"LOCKED":return 2;default:return}},r=t(18627),o=t(66411),l=t(14646),d=t(18122),c={width:"100%",height:"100%"};function m(e){var n=e.post,t=e.presentationContext,m=e.suppressedEvents,s=e.children,u=e.isDisplayingFullPost,p=e.reportClientViewedOnFullPost,k=e.postClientViewedContext,f=e.pinned,g=e.shouldReportClientViewed,v=void 0===g||g,h=e.referrerSource,x=(0,l.I)(),E=(0,r.A)(),y=(0,o.pK)(),S=i.useCallback((function(){if(n&&"ALL"!==m){var e=n.visibility,i=n.previewContent,r=n.collection,o=null!==u?u:i&&i.isFullContent,l=h?{referrerSource:h}:void 0;"PRESENTED"!==m&&E.event("post.clientPresented",{postId:n.id,source:y,collectionId:r?r.id:null,isFullPost:o,pinned:f,postVisibility:a(e),context:"POST_PREVIEW"!==t?t.toLowerCase():null},l),p&&o&&"VIEWED"!==m&&v&&E.event("post.clientViewed",{postId:n.id,source:y,collectionId:r?r.id:null,collectionSlug:r?r.slug:null,context:k,isFriendLink:!1,pinned:f})}}),[n,m,t,f,h,y]),N=(0,d.g)({onPresentedFn:S});return i.createElement("div",{className:x(c),ref:N},s)}},75096:(e,n,t)=>{"use strict";t.d(n,{K:()=>l});var i=t(34699),a=t(21919),r=t(67294),o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"LogExperimentExposure"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LogExperimentExposureInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"logExperimentExposure"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"}}]}}]}}]},l=function(e,n,t){var l=(0,a.D)(o,{variables:{input:{experimentId:e,postId:n,publicationId:t}}}),d=(0,i.Z)(l,1)[0];return(0,r.useCallback)((function(){return d()}),[])}},51681:(e,n,t)=>{"use strict";function i(e,n,t){return!!n&&e[n.id]||{clapCount:(null==n?void 0:n.clapCount)||0,viewerClapCount:(null==t?void 0:t.clapCount)||0,viewerHasClappedSinceFetch:!1}}t.d(n,{l:()=>i})}}]); //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/HomeLoLegacyPage.MainContent.6e05974e.chunk.js.map