"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[5642],{27732:(e,t,n)=>{n.d(t,{A:()=>a});var r,l=n(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.d(t,{o:()=>d,p:()=>u});var r=n(64467),l=n(96540),o=n(44402),a=n(78693);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{n.d(t,{O:()=>k});var r=n(96540),l=n(83812),o=n(77206),a=n(52290),i=n(36557),c=n(64122),s=n(36469),u=n(88474),p=n(29977),d=n(22841),m=n(41299),f=n(86527),g=n(5600),h=function(e){var t=e.author,n=e.size;return(0,u.E)(t)?r.createElement(a.a,{marginLeft:"2px",marginTop:"2px"},r.createElement(s.b,{size:n})):null},E=function(e){var t=e.user,n=e.includeVerifiedAuthorBadge,l=e.clamp,o=e.popoverPlacement,a=void 0===o?"top":o,s=e.scale,u=void 0===s?"S":s,E=e.badgeSize,v=void 0===E?"S":E,w=e.testId,b=e.trackingV2,x=(0,c.W)()(t),S=(0,r.useCallback)((function(){return r.createElement(d.J,{user:t,trackingV2:b})}),[t,b]);return r.createElement(m.R,{targetDistance:p.f,mouseLeaveDelay:100,mouseEnterDelay:g.A,placement:a,role:"tooltip",noArrow:!0,popoverRenderFn:S,display:"block"},r.createElement(f.N,{href:x,linkStyle:"SUBTLE",inline:!0,display:"flex",rules:{alignItems:"center"},"data-testid":w},r.createElement(i.kZ,{scale:u,color:"DARKER",clamp:l},t.name),n&&r.createElement(h,{author:t,size:v})))},v=n(23393),w=function(e){var t=e.user,n=e.includeAvatar,l=e.trackingV2,o=(0,r.useCallback)((function(){return r.createElement(d.J,{user:t,trackingV2:l})}),[t,l]);return r.createElement(r.Fragment,null,n&&r.createElement(a.a,{marginRight:"8px"},r.createElement(m.R,{targetDistance:p.f,mouseLeaveDelay:100,mouseEnterDelay:g.A,placement:"top",role:"tooltip",noArrow:!0,popoverRenderFn:o,display:"block"},r.createElement(v.H8,{scale:"XXXS",user:t,link:!0,showHoverState:!0,skipTab:!0}))),r.createElement(E,{user:t,clamp:1,trackingV2:l,includeVerifiedAuthorBadge:!0}))},b=n(18599),x=n(28899),S=n(43002),y=function(e){var t=e.collection,n=e.includeAvatar,l=e.label,o=e.trackingV2,c=(0,r.useCallback)((function(){return r.createElement(b.a,{collection:t,trackingV2:o})}),[t,o]);return r.createElement(r.Fragment,null,n&&r.createElement(a.a,{marginRight:"8px"},r.createElement(m.R,{targetDistance:b.r,mouseLeaveDelay:100,mouseEnterDelay:g.A,placement:"top",role:"tooltip",noArrow:!0,popoverRenderFn:c,display:"block"},r.createElement(x.u,{size:20,collection:t,link:!0,showHoverState:!0}))),r.createElement(a.a,{paddingRight:"4px"},r.createElement(i.kZ,{scale:"S",color:"LIGHTER"},l)),r.createElement(a.a,null,r.createElement(S.w,{collection:t,clamp:1,trackingV2:o,popoverPlacement:"top",scale:"S"})))},k=function(e){var t=e.post,n=e.showCollectionName,c=void 0===n||n,s=e.marginBottom,u=e.showCollectionBylineOnly,p=e.trackingV2,d=(0,l._)();return!t.creator||d&&u&&!t.collection?null:r.createElement(a.a,{marginBottom:s,display:"flex",alignItems:"center"},d?r.createElement(r.Fragment,null,c&&t.collection&&r.createElement(r.Fragment,null,r.createElement(y,{collection:t.collection,label:u?"Published in":"In",trackingV2:p,includeAvatar:!0}),!u&&r.createElement(a.a,{padding:"0 4px"},r.createElement(i.kZ,{scale:"S",color:"LIGHTER"},"by"))),!u&&r.createElement(w,{user:t.creator,includeAvatar:!t.collection||!c,trackingV2:p})):r.createElement(o.V,{author:t.creator,collection:c?t.collection:void 0,includeAvatar:!0,includeVerifiedAuthorBadge:!0,skipTab:!0,trackingV2:p}))}},98237:(e,t,n)=>{n.d(t,{_:()=>f});var r=n(64467),l=n(96540),o=n(67459),a=n(52290),i=n(49287),c=n(44402),s=n(58262),u=n(21771);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{n.d(t,{u:()=>Z,E:()=>j});var r=n(73916),l=n.n(r),o=n(96540),a=n(52290),i=n(96783),c=n(27721),s=n(85050),u=n(49287),p=n(46963),d=n(43849),m=n(34507),f=n(86527),g=n(5600),h=n(44402),E=n(49470),v=function(e){return{"& path":{stroke:e.colorTokens.foreground.neutral.secondary.base},":hover > path":{stroke:e.colorTokens.foreground.neutral.primary.hover}}},w="Show less like this";function b(e){var t=e.postId,n=(0,h.l)(),r=(0,d.$)().animateShowLess,l=(0,m.K)(t,"cache-only").showLess,a=(0,o.useCallback)((function(){l(),null==r||r()}),[l,r]);return o.createElement(g.G,{placement:"top",targetDistance:10,tooltipText:w},o.createElement(f.N,{onClick:a,"aria-label":w,rules:{padding:"12px"}},o.createElement(E.A,{className:n(v)})))}var x=n(28160),S={padding:"12px"};function y(e){var t=e.post,n=e.prependMenuItems,r=e.showSaveIcon,l=e.showSaveInMenu,d=e.showExplicitSignalTooltip,m=e.showNegativeSignalIcon,f=e.trackingV2,g=(0,c.R)().value,h=(0,p.U)();return o.createElement(a.a,{alignItems:"center",display:"flex",justifyContent:"flex-end",flexShrink:"0",flexBasis:"0"},m&&o.createElement(u.Ne,{source:{dimension:"post_preview"},extendSource:!0},o.createElement(b,{postId:t.id})),o.createElement(s.V,{xs:!r||r.xs,sm:!r||r.sm,md:!r||r.md,lg:!r||r.lg,xl:!r||r.xl},o.createElement(i.T,{post:t,susiEntry:"bookmark_preview",targetDistance:15,rules:S})),g&&o.createElement(a.a,{marginRight:"-12px"},o.createElement(x.G,{post:t,prependMenuItems:n,rules:S,showAddToList:l,showExplicitSignalTooltip:d&&l&&h&&l[h],trackingV2:f})))}var k,L=n(80045),I=n(55127),O=n.n(I),A=n(39204),R=n(73682),T=n(66356),C=n(11517),P=n(86975),D=n(20239),N=n(92679),V=n(27732);function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t=320;return{S:{showSaveIcon:!n&&r&&e===j.GRID,showAllMeta:r&&e===j.GRID},M:{showSaveIcon:!n&&r,showAllMeta:r},L:{showSaveIcon:n?t>=360:r,showAllMeta:r}}}(t,g,u),i),E=l()(h,(function(e){return e.showSaveIcon})),v=l()(h,(function(e){return!e.showSaveIcon})),w=l()(h,(function(e){return e.showAllMeta}));return o.createElement(a.a,{display:"flex",justifyContent:"space-between",flexGrow:"1",height:"48px",ref:f},o.createElement(H,{post:n,postUrl:r,showAllMeta:w,includeBoostLabel:p}),o.createElement(y,{post:n,prependMenuItems:c,showSaveIcon:E,showSaveInMenu:v,showExplicitSignalTooltip:s,showNegativeSignalIcon:u,trackingV2:d}))}},93694:(e,t,n)=>{n.d(t,{Kb:()=>i,Lk:()=>a,y2:()=>o});var r=n(96540),l=n(27049);function o(e){return r.useMemo((function(){return Object.keys(e).reduce((function(t,n){var r=e[n];return t[r]&&t[r].push(n),t}),{S:[],M:[],L:[]})}),[e])}function a(e,t){return{xs:e[t.xs],sm:e[t.sm],md:e[t.md],lg:e[t.lg],xl:e[t.xl]}}function i(e){var t={};for(var n in l.i)t[n]=e;return t}},35642:(e,t,n)=>{n.d(t,{$:()=>ne});var r=n(96540),l=n(73916),o=n.n(l),a=n(52290),i=n(86527),c=n(85050),s=n(39410),u=n(27622),p=n(36557),d=n(49287),m=n(79959),f=n(88726),g=n(20239),h=n(93694),E={S:"12px",M:"20px",L:"20px"};function v(e){var t=e.scales,n=e.dividerColor,l=(0,g.D)(),o=E,a=(0,h.Lk)(o,t);return r.createElement(f.i,{marginTop:a,borderColor:null!=n?n:l.colorTokens.border.neutral.primary.base})}var w,b=n(90280),x=n(90383),S=function(e){return{backgroundColor:e.colorTokens.background.neutral.tertiary.base,borderRadius:"2px"}},y={S:{height:53,width:80},M:{height:53,width:80},L:{height:107,width:160}},k=function(e){var t=e.post,n=e.scales,l=e.webp,o=void 0!==l&&l,a=(0,h.y2)(n),i=t.previewImage,s=t.title,u=null==i?void 0:i.id;if(!u)return null;var p=i.alt||s||"";return r.createElement("div",{"aria-label":p||"Post Preview Image"},Object.keys(a).map((function(e){var t=a[e];return t.length?r.createElement(c.V,{xs:t.includes("xs"),sm:t.includes("sm"),md:t.includes("md"),lg:t.includes("lg"),xl:t.includes("xl"),key:"stream-image-".concat(e)},r.createElement(b.pg,{alt:p,miroId:u,width:y[e].width,height:y[e].height,strategy:x.qY.Crop,focusPercentX:i.focusPercentX,focusPercentY:i.focusPercentY,rules:S,webp:o})):null})))},L=n(7380),I=n(54204),O=n(65648),A=function(e){var t,n,l=e.post,f=e.postUrl,g=e.scales,E=e.showDivider,w=e.showCollectionName,b=e.dividerColor,x=e.prependOverflowMenuItems,S=e.webp,A=void 0!==S&&S,R=e.children,T=e.showExplicitSignalTooltip,C=e.showNegativeSignalIcon,P=e.includeBoostLabel,D=e.showCollectionBylineOnly,N=e.trackingV2,V=l.title,B=null==l||null===(t=l.extendedPreviewContent)||void 0===t?void 0:t.subtitle,M=null===(n=l.previewImage)||void 0===n?void 0:n.id,j=(0,d.jI)(),F=(0,h.Lk)({S:{footerLocation:"content",showSubtitle:!1,bylineSpacing:"12px",titleScale:"XS",titleClamp:4,imageMarginLeft:"24px",footerSpacing:"0",footerWidth:"100%"},M:{footerLocation:"bottom",showSubtitle:!0,bylineSpacing:"16px",titleScale:"S",titleClamp:4,imageMarginLeft:"24px",footerSpacing:"2px",footerWidth:"100%"},L:{footerLocation:"content",showSubtitle:!0,bylineSpacing:"16px",titleScale:"M",titleClamp:3,imageMarginLeft:"56px",footerSpacing:"10px",footerWidth:M?"100%":"calc(100% - (".concat(y.L.width,"px + 56px))")}},g),_=o()(F,(function(e){return e.bylineSpacing})),U=o()(F,(function(e){return e.footerSpacing})),G=o()(F,(function(e){return e.titleScale})),W=o()(F,(function(e){return e.titleClamp})),z=o()(F,(function(e){return e.imageMarginLeft})),H=o()(F,(function(e){return e.footerWidth}));return r.createElement(a.a,{width:"100%"},r.createElement("div",{style:{position:"relative",display:"flex"},role:"link","data-href":f,tabIndex:0,onKeyDown:function(e){e&&"Enter"===e.key&&window.location.assign((0,m.ST)(f,{source:j}))}},r.createElement(L.p,null,r.createElement(r.Fragment,null,r.createElement(a.a,{display:"flex"},r.createElement(I.O,{post:l,marginBottom:_,showCollectionName:w,showCollectionBylineOnly:D,trackingV2:N})),r.createElement(a.a,{display:"flex"},r.createElement(a.a,{flexGrow:"1",flexShrink:"1",wordBreak:"break-word"},r.createElement(L.o,{anchorStyles:{display:"flex",flexDirection:"column"}},r.createElement(i.N,{href:f},V&&r.createElement(s.hE,{scale:G,clamp:W},V),B&&r.createElement(c.V,{xs:F.xs.showSubtitle,sm:F.sm.showSubtitle,md:F.md.showSubtitle,lg:F.lg.showSubtitle,xl:F.xl.showSubtitle,paddingTop:"8px"},r.createElement(u.Pd,{scale:"S",clamp:2},B)))),r.createElement(c.V,{xs:"content"===F.xs.footerLocation,sm:"content"===F.sm.footerLocation,md:"content"===F.md.footerLocation,lg:"content"===F.lg.footerLocation,xl:"content"===F.xl.footerLocation},r.createElement(a.a,{paddingTop:U,width:H},r.createElement(p.kZ,{scale:"S",tag:"span"},r.createElement(O.u,{type:O.E.STREAM,post:l,postUrl:f,scales:g,prependOverflowMenuItems:x,showExplicitSignalTooltip:T,showNegativeSignalIcon:C,includeBoostLabel:P,trackingV2:N}))))),!!M&&r.createElement(a.a,{marginLeft:z},r.createElement(k,{post:l,scales:g,webp:A}))),r.createElement(c.V,{xs:"bottom"===F.xs.footerLocation,sm:"bottom"===F.sm.footerLocation,md:"bottom"===F.md.footerLocation,lg:"bottom"===F.lg.footerLocation,xl:"bottom"===F.xl.footerLocation,paddingTop:"12px"},r.createElement(p.kZ,{scale:"S",tag:"span"},r.createElement(O.u,{type:O.E.STREAM,post:l,postUrl:f,scales:g,prependOverflowMenuItems:x,showExplicitSignalTooltip:T,showNegativeSignalIcon:C,includeBoostLabel:P,trackingV2:N})))))),R,E&&r.createElement(v,{scales:g,dividerColor:b}))},R=n(98237),T=n(64122),C=n(29977),P=n(22841),D=n(41299),N=n(5600),V=n(39),B=n(44402),M=n(42976),j=n(39160),F=n(27732);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.d(t,{R:()=>r});var r=function(e){var t=e.post,n=t.firstPublishedAt,r=t.latestPublishedAt,l=!!t.pinnedAt&&!!r;return{isUpdatedPost:l,publishedAt:l?r:n}}},83812:(e,t,n)=>{n.d(t,{_:()=>o});var r=n(19723),l=n(39160),o=function(){var e=(0,r.iT)("enable_publication_hierarchy"),t=e.loading,n=e.value;return(0,l.d4)((function(e){return e.cache.publicationHierarchyEnabled}))||!t&&!!n}},77206:(e,t,n)=>{n.d(t,{V:()=>E});var r=n(96540),l=n(64122),o=n(36469),a=n(88474),i=n(43002),c=n(23393),s=n(22841),u=n(52290),p=n(41299),d=n(86527),m=n(5600),f=n(36557),g=n(29977),h=function(e){var t=e.author;return(0,a.E)(t)?r.createElement(u.a,{marginLeft:"2px",marginTop:"2px"},r.createElement(o.b,{size:"S"})):null},E=function(e){var t,n=(0,l.W)()(e.author),o=(0,r.useCallback)((function(){return e.author&&r.createElement(s.J,{user:e.author,trackingV2:e.trackingV2})}),[e.author,e.trackingV2]);return r.createElement(r.Fragment,null,e.includeAvatar&&r.createElement(u.a,{marginRight:"8px"},r.createElement(p.R,{targetDistance:g.f,mouseLeaveDelay:100,mouseEnterDelay:m.A,placement:"top",role:"tooltip",noArrow:!0,popoverRenderFn:o,display:"block"},r.createElement(c.H8,{scale:"XXXS",user:e.author,link:!0,showHoverState:!0,skipTab:e.skipTab}))),r.createElement(u.a,{paddingRight:"4px"},r.createElement(p.R,{targetDistance:g.f,mouseLeaveDelay:100,mouseEnterDelay:m.A,placement:"top",role:"tooltip",noArrow:!0,popoverRenderFn:o,display:"block"},r.createElement(d.N,{href:n,linkStyle:"SUBTLE",inline:!0,display:"flex",rules:{alignItems:"center"}},r.createElement(f.kZ,{scale:"S",color:"DARKER",clamp:1},e.author.name),e.includeVerifiedAuthorBadge&&r.createElement(h,{author:e.author})))),(null===(t=e.collection)||void 0===t?void 0:t.name)&&r.createElement(r.Fragment,null,r.createElement(u.a,{paddingRight:"4px"},r.createElement(f.kZ,{scale:"S",color:"LIGHTER"},"in")),r.createElement(u.a,null,r.createElement(i.w,{collection:e.collection,clamp:1,popoverPlacement:"top",scale:"S",trackingV2:e.trackingV2}))))}},21771:(e,t,n)=>{n.d(t,{V:()=>u});var r=n(96540),l=function(e){switch(e){case"PUBLIC":return 0;case"UNLISTED":return 1;case"LOCKED":return 2;default:return}},o=n(72130),a=n(49287),i=n(44402),c=n(79429),s={width:"100%",height:"100%"};function u(e){var t=e.post,n=e.presentationContext,u=e.suppressedEvents,p=e.children,d=e.isFullPost,m=e.reportClientViewedOnFullPost,f=e.postClientViewedContext,g=e.pinned,h=e.shouldReportClientViewed,E=void 0===h||h,v=e.referrerSource,w=(0,i.l)(),b=(0,o.$L)(),x=(0,a.jI)(),S=r.useCallback((function(){if(t&&"ALL"!==u){var e=t.visibility,r=t.collection,o=v?{referrerSource:v}:void 0;"PRESENTED"!==u&&b.event("post.clientPresented",{postId:t.id,source:x,collectionId:r?r.id:null,isFullPost:d,pinned:g,postVisibility:l(e),context:"POST_PREVIEW"!==n?n.toLowerCase():null},o),m&&d&&"VIEWED"!==u&&E&&b.event("post.clientViewed",{postId:t.id,source:x,collectionId:r?r.id:null,collectionSlug:r?r.slug:null,context:f,isFriendLink:!1,pinned:g})}}),[t,u,n,g,v,x]),y=(0,c.s)({onPresentedFn:S});return r.createElement("div",{className:w(s),ref:y},p)}},58262:(e,t,n)=>{n.d(t,{n:()=>p});var r=n(7350),l=n.n(r),o=n(96540),a=n(72130),i=n(49287),c=n(66305),s=n(74169),u=1e3;function p(e,t,n){var r=(0,a.$L)(),p=(0,i.W9)(),d=Date.now(),m=null,f=o.useCallback(l()((function(){if(e.current){var n=(0,s.G9)(e.current);if((0,s.zN)(n)){var l=Date.now(),o=(0,s.$5)(n),a=(0,s.bb)(),i=(0,s.$S)(),c=Math.round(o.top),u=Math.round(o.top+o.height),f=a.top,g=a.top+i.height,h=a.height,E={postIds:[t.id],collectionIds:[t.collection?t.collection.id:""],sequenceIds:[t.sequence?t.sequence.sequenceId:""],sources:[p],tops:[c],bottoms:[u],areFullPosts:[!0],loggedAt:l,timeDiff:null!==m?Math.round(l-m):0,scrollTop:f,scrollBottom:g,scrollableHeight:h,viewStartedAt:d};r.event("post.streamScrolled",E),m=l}}}),u),[t]);o.useEffect((function(){f();var e=null!=n&&n.current?(0,c.$U)(null==n?void 0:n.current):c.R5;return e.on("scroll_end",f),function(){e.off("scroll_end",f)}}),[f])}}}]); //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/5642.cee3e6b2.chunk.js.map