2 lines
26 KiB
JavaScript
2 lines
26 KiB
JavaScript
"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<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(null,arguments)}const a=function(e){return l.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r||(r=l.createElement("path",{fill:"#6B6B6B",fillRule:"evenodd",d:"m3.672 10.167 2.138 2.14h-.002c1.726 1.722 4.337 2.436 5.96.81 1.472-1.45 1.806-3.68.76-5.388l-1.815-3.484c-.353-.524-.849-1.22-1.337-.958-.49.261 0 1.56 0 1.56l.78 1.932L6.43 2.866c-.837-.958-1.467-1.108-1.928-.647-.33.33-.266.856.477 1.598.501.503 1.888 1.957 1.888 1.957.17.174.083.485-.093.655a.56.56 0 0 1-.34.163.43.43 0 0 1-.317-.135s-2.4-2.469-2.803-2.87c-.344-.346-.803-.54-1.194-.15-.408.406-.273 1.065.11 1.447.345.346 2.31 2.297 2.685 2.67l.062.06c.17.175.269.628.093.8-.193.188-.453.33-.678.273a.9.9 0 0 1-.446-.273S2.501 6.84 1.892 6.23c-.407-.406-.899-.333-1.229 0-.525.524.263 1.28 1.73 2.691.384.368.814.781 1.279 1.246m8.472-7.219c.372-.29.95-.28 1.303.244V3.19l1.563 3.006.036.074c.885 1.87.346 4.093-.512 5.159l-.035.044c-.211.264-.344.43-.74.61 1.382-1.855.963-3.478-.248-5.456L11.943 3.88l-.002-.037c-.017-.3-.039-.71.203-.895",clipRule:"evenodd"})))}},7380:(e,t,n)=>{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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=function(){return{width:"100%","& a":{position:"relative",zIndex:a.Ay.elevatedLink},"& button":{position:"relative",zIndex:a.Ay.elevatedLink}}},u=function(e){var t=e.rules,n=e.children,r=(0,o.l)();return l.createElement("div",{className:r([t,s])},n)},p=function(e){return{"& a":c({position:"static","&::before":{content:'""',position:"absolute",zIndex:a.Ay.expandedLink,top:0,left:0,bottom:0,right:0}},e)}},d=function(e){var t=e.anchorStyles,n=e.children,r=(0,o.l)();return l.createElement("div",{className:r(p(t))},n)}},54204:(e,t,n)=>{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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){var t=e.post,n=e.index,r=e.presentationTrackerReferrerSource,p=e.children,m=e.isFullHeight,f=d(d({},(0,i.Fo)()),{},{index:n}),g=(0,o.g)()(t),h=l.useRef(null);(0,s.n)(h,t);var E=t.pinnedAt,v=t.extendedPreviewContent,w=!(null==v||!v.isFullContent),b=(0,c.l)(),x=m?"100%":void 0;return l.createElement(i.Ne,{source:f},l.createElement("article",{className:b({height:x})},l.createElement(a.a,{boxSizing:"content-box",height:x},l.createElement(u.V,{post:t,presentationContext:"POST_PREVIEW",isFullPost:w,suppressedEvents:w?"VIEWED":void 0,shouldReportClientViewed:!1,reportClientViewedOnFullPost:!0,postClientViewedContext:2,pinned:!!E,referrerSource:r},l.createElement(a.a,{ref:h,height:x},p({postUrl:g}))))))}var f=(0,l.memo)(m,(function(e,t){return e.post.id===t.post.id&&e.index===t.index}))},65648:(e,t,n)=>{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<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(null,arguments)}const M=function(e){return o.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),k||(k=o.createElement("path",{fill:"#6B6B6B",d:"M12.344 11.458A5.28 5.28 0 0 0 14 7.526C14 4.483 11.391 2 8.051 2S2 4.483 2 7.527c0 3.051 2.712 5.526 6.059 5.526a6.6 6.6 0 0 0 1.758-.236q.255.223.554.414c.784.51 1.626.768 2.512.768a.37.37 0 0 0 .355-.214.37.37 0 0 0-.03-.384 4.7 4.7 0 0 1-.857-1.958v.014z"})))};var j,F=n(27715),_=["tooltipText"],U=function(){return{position:"relative",maxWidth:"200px",height:"16px",display:"flex",alignItems:"center"}},G=function(e){return{position:"absolute",opacity:e?1:0,transition:"opacity 300ms ease-out",display:"flex",alignItems:"center",gap:"16px"}},W=function(e){var t=e.label,n=e.icon,r=e.gap,l=void 0===r?"4px":r,i=(0,D.D)();return o.createElement(a.a,{display:"flex",alignItems:"center",gap:l},"BOOST"===n&&o.createElement(N.A,null),"CLAP"===n&&o.createElement(V.A,null),"RESPONSE"===n&&o.createElement(M,{fill:i.colorTokens.foreground.neutral.secondary.base}),o.createElement("span",null,t))},z=function(e){var t=e.tooltipText,n=(0,L.A)(e,_);return o.createElement(g.G,{tooltipText:t,targetDistance:10,display:"flex"},o.createElement(W,n))},H=function(e){var t,n=e.post,r=e.postUrl,l=e.showAllMeta,i=e.includeBoostLabel,c=(0,h.l)(),u=(0,R.R)({post:n}).publishedAt,p=(0,C.N)({post:n,includeFirstBoostedAt:i}),d=p.clapCount,m=p.clapCountLoading,f=p.firstBoostedAt,g=n.isLocked,E=(null===(t=n.postResponses)||void 0===t?void 0:t.count)||0;return o.createElement(a.a,{display:"flex",alignItems:"center",gap:"16px"},g&&o.createElement(A.F,{post:n,hideLabelDesktop:!0,showLabelMobile:!1}),!f&&u&&o.createElement(T.c,{timestamp:u,isShorthand:!0}),o.createElement(s.V,{xs:l.xs,sm:l.sm,md:l.md,lg:l.lg,xl:l.xl},o.createElement("div",{className:c(U)},o.createElement("div",{className:c(G(m))},o.createElement(a.a,{width:"80px",height:"16px",marginLeft:"16px",backgroundColor:"BASE_NORMAL"})),o.createElement(P.D,{href:r,className:c(G(!m)),tabIndex:-1},o.createElement(o.Fragment,null,f?o.createElement(W,{gap:"6px",icon:"BOOST",label:"Boosted"}):o.createElement(o.Fragment,null,!!d&&o.createElement(z,{tooltipText:"".concat((0,F.Ct)(d)," ").concat(O()("clap",d)),icon:"CLAP",label:(0,F.Ct)(d)}),!!E&&o.createElement(z,{tooltipText:"".concat(E," ").concat(O()("responses",E)),icon:"RESPONSE",label:"".concat(E)})))))))},K=n(80296),J=n(66305),X=n(93694);!function(e){e.GRID="GRID",e.STREAM="STREAM"}(j||(j={}));var Z=function(e){var t=e.type,n=e.post,r=e.postUrl,i=e.scales,c=e.prependOverflowMenuItems,s=e.showExplicitSignalTooltip,u=e.showNegativeSignalIcon,p=e.includeBoostLabel,d=e.trackingV2,m=function(){var e=(0,o.useRef)(null),t=(0,o.useState)(0),n=(0,K.A)(t,2),r=n[0],l=n[1],a=(0,o.useState)(0),i=(0,K.A)(a,2),c=i[0],s=i[1],u=function(){l(window.innerWidth)};return(0,o.useEffect)((function(){return u(),J.R5.on("resize",u),function(){return J.R5.off("resize",u)}}),[]),(0,o.useEffect)((function(){var t=e.current;t&&s(t.offsetWidth)}),[r]),{footerRef:e,footerWidth:c}}(),f=m.footerRef,g=m.footerWidth,h=(0,X.Lk)(function(e,t,n){var r=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<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(null,arguments)}const U=function(e){return r.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),w||(w=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.965 10.85 4.27-7.7L9.356 1l-4.27 7.701zm-.405.726-1.077 1.945-1.027.443L5.88 15l-3.114-.71 1.007-1.815-.165-1.108 1.078-1.944 3.873 2.146z",clipRule:"evenodd"})))};var G;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}const z=function(e){return r.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),G||(G=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.788 1.027a.5.5 0 1 0-.707.707l.59.589-3.32 3.319a2.17 2.17 0 0 1-1.346.626l-2.442.21a.833.833 0 0 0-.518 1.42l2.676 2.675-3.418 3.417a.5.5 0 1 0 .707.707l3.418-3.417 2.675 2.675a.833.833 0 0 0 1.42-.518l.209-2.441c.044-.51.266-.986.627-1.347l3.318-3.32.59.59a.5.5 0 0 0 .707-.707l-.943-.943-3.3-3.3zm-3.653 9.546 2.422 2.422.179-2.085c.063-.743.388-1.44.916-1.968l3.318-3.32-2.593-2.592L7.06 6.349a3.17 3.17 0 0 1-1.969.916l-2.084.178 2.422 2.422z",clipRule:"evenodd"})))};var H=n(46083),K=n(46879);function J(e){var t=e.reason;switch(t.reason){case M.dJ.CLAPPED_BY_NETWORK:return r.createElement(q,{users:t.interactedUsers,reason:t.reason,interaction:"clapped"});case M.dJ.HIGHLIGHTED_BY_NETWORK:return r.createElement(q,{users:t.interactedUsers,reason:t.reason,interaction:"highlighted"});case M.dJ.CURATED_IN_TAG:if(t.tagObject)return r.createElement(Z,{reason:t.reason},r.createElement(a.a,{flexShrink:"0"},"Because you follow "),r.createElement(ee,{tag:t.tagObject}))}return null}var X=function(){return r.createElement(Z,{reason:"PINNED"},"Pinned")};function Z(e){var t=e.reason,n=e.children,l=(0,B.l)(),o=(0,V.Z)({name:"detail",scale:"S",color:"LIGHTER"});return r.createElement(r.Fragment,null,r.createElement(a.a,{marginLeft:"2px",display:"flex",gap:"10px",alignItems:"center",marginBottom:"PINNED"===t?"20px":void 0},r.createElement($,{reason:t}),r.createElement("div",{className:l([o,{display:"flex",whiteSpace:"pre-wrap",overflow:"hidden"}])},n)),"PINNED"!==t&&r.createElement(a.a,{margin:"12px 0",width:"20px",display:"flex",justifyContent:"center"},r.createElement(a.a,{borderLeft:"neutral.tertiary",height:"12px"})))}var Y=function(e){return{color:e.colorTokens.foreground.neutral.secondary.base,flex:"0 0 auto"}};function $(e){var t=e.reason,n=(0,B.l)();switch(t){case M.dJ.CLAPPED_BY_NETWORK:return r.createElement(F.A,{className:n(Y)});case M.dJ.HIGHLIGHTED_BY_NETWORK:return r.createElement(U,{className:n(Y)});case M.dJ.CURATED_IN_TAG:return r.createElement(H.A,{className:n(Y)});case"PINNED":return r.createElement(z,{className:n(Y)})}return null}function q(e){var t=e.users,n=e.reason,l=e.interaction;return null!=t&&t.length&&t[0]?r.createElement(Z,{reason:n},r.createElement(Q,{user:t[0]}),r.createElement(a.a,{flexShrink:"0"}," ".concat(l))):null}function Q(e){var t=e.user,n=(0,T.f)(t),l=(0,r.useCallback)((function(){return r.createElement(P.J,{user:t})}),[t]);return r.createElement(D.R,{targetDistance:C.f,mouseLeaveDelay:100,mouseEnterDelay:N.A,placement:"top",role:"tooltip",display:"block",hoverableRules:{overflow:"hidden"},noArrow:!0,popoverRenderFn:l},r.createElement(te,{href:n},t.name))}function ee(e){var t=e.tag,n=(0,j.d4)((function(e){return e.config.authDomain})),l=(0,K.Lsb)(t.normalizedTagSlug||"",n);return r.createElement(te,{href:l},t.displayTitle)}function te(e){var t=e.href,n=e.children;return r.createElement(i.N,{display:"block",href:t,color:"NORMAL",linkStyle:"SUBTLE",inline:!0,rules:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}},n)}function ne(e){var t=e.post,n=e.index,l=e.presentationTrackerReferrerSource,o=e.scale,a=e.lastIndex,i=e.showCollectionName,c=e.dividerColor,s=e.prependOverflowMenuItems,u=e.webp,p=e.reason,d=e.children,m=e.showExplicitSignalTooltip,f=e.showPinned,g=e.showNegativeSignalIcon,E=e.includeBoostLabel,v=e.showCollectionBylineOnly,w=e.trackingV2,b="string"==typeof o?(0,h.Kb)(o):o;return r.createElement(R._,{post:t,index:n,presentationTrackerReferrerSource:l},(function(e){var l=e.postUrl;return r.createElement(r.Fragment,null,f?r.createElement(X,null):p?r.createElement(J,{reason:p}):null,r.createElement(A,{post:t,postUrl:l,scales:b,showDivider:n!==a,showCollectionName:i,dividerColor:c,prependOverflowMenuItems:s,webp:u,showExplicitSignalTooltip:m,showNegativeSignalIcon:g,includeBoostLabel:E,showCollectionBylineOnly:v,trackingV2:w},d))}))}},73682:(e,t,n)=>{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
|