"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[839],{68037:(e,n,t)=>{t.d(n,{x:()=>o});var a=t(45458),r=t(59265),l=t(77485),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserInListDialog_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"bio"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}}]}}].concat((0,a.A)(r.v0.definitions),(0,a.A)(l.R.definitions))}},14281:(e,n,t)=>{t.d(n,{B:()=>m});var a=t(96540),r=t(23393),l=t(52290),o=t(86527),c=t(56942),i=t(36557),s=t(56774),u=t(39160),d=t(46879),m=function(e){var n=e.user,t=e.followButton,m=e.badge,p=e.trackingV2,f=(0,u.d4)((function(e){return e.config.authDomain})),v=n.username,g=n.name,h=n.bio,b=void 0===h?"":h,E=(0,s.X)({entity:n,trackingV2:p});return g&&v?a.createElement(l.a,{padding:"12px 0",ref:E},a.createElement(l.a,{display:"flex",alignItems:"flex-start",justifyContent:"space-between"},a.createElement(l.a,{display:"flex",alignItems:"flex-start"},a.createElement(l.a,{marginRight:"20px"},a.createElement(r.H8,{user:n,scale:"S"}),m),a.createElement(l.a,{display:"flex",flexDirection:"column",alignItems:"flex-start"},a.createElement(o.N,{href:(0,d.EpC)(n,f)},a.createElement(c.DZ,{scale:"XS"},g," ")),a.createElement(i.kZ,{scale:"S"},b))),a.createElement(l.a,{marginLeft:"48px"},t))):null}},74346:(e,n,t)=>{t.d(n,{S:()=>h});var a=t(64467),r=t(96540),l=t(37661),o=t(44402),c=t(18642),i=t(15578),s=5,u=360/s,d={position:"absolute",pointerEvents:"none",top:"-2px",left:"0",width:"25px",height:"36px"},m={"0%":{opacity:"0",transform:"scale(1)"},"32%":{opacity:"1"},"100%":{opacity:"0",transform:"scale(1.5)"}},p={"0%":{opacity:"0",transform:"scale(1)"},"32%":{opacity:"1",transform:"scale(1.3)"},"100%":{opacity:"0",transform:"scale(1.6)"}},f=function(e){return(0,a.A)({animation:"370ms ease-out 1 ".concat(e),opacity:"0"},(0,i.Oe)("reduce"),{animationDuration:"0.1ms"})},v=function(){return{position:"absolute",top:"".concat(48,"%"),left:"".concat(-5,"px"),transformOrigin:"".concat(18,"px"),width:"".concat(2,"px"),height:"".concat(2,"px"),borderRadius:"50%",backgroundColor:c.nN}},g=function(){return{position:"absolute",top:"".concat(44,"%"),left:"".concat(-9,"px"),transformOrigin:"".concat(22,"px"),width:"0",height:"0",borderTop:"2px solid transparent",borderBottom:"2px solid transparent",borderLeft:"".concat(6,"px solid ").concat(c.vz)}};function h(e){var n=e.offset,t=e.onBurstEnd,a=(0,o.l)(),c=a(d);return r.createElement(l.w,{keyframes:{dotKeyframesName:m,triangleKeyframesName:p}},(function(e){for(var l=e.dotKeyframesName,o=e.triangleKeyframesName,i=[],d=[],m=0;m{t.d(n,{g:()=>D});var a,r=t(96540),l=t(5600),o=t(44402);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n svg":{pointerEvents:"none"},":active":{borderStyle:"none"},WebkitUserSelect:"none"}}}({buttonColor:p,isDisabled:l,isLoading:i})}),[p,l,i]),b=function(e){var n=e.callback,t=e.ms,a=void 0===t?300:t,l=e.callImmediately,o=void 0===l||l,c=(0,r.useState)(!1),i=(0,A.A)(c,2),s=i[0],u=i[1];(0,S.$)(n,s?a:null);var d=(0,r.useCallback)((function(e){"touchstart"===e.type&&(N=!0),("mousedown"!==e.type||!N&&function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.userAgent;return 0===e.button&&!((0,z.cX)(n)&&e.ctrlKey)}(e))&&(o&&n(),u(!0))}),[n,o]),m=(0,r.useCallback)((function(){u(!1)}),[]);return(0,R.E)((function(){if(s)return document.addEventListener("mouseup",m),function(){return document.removeEventListener("mouseup",m)}}),[s]),{onMouseDown:d,onTouchStart:d,onTouchEnd:m}}({callback:null!=d?d:function(){},ms:200}),E=b.onMouseDown,x=b.onTouchStart,y=b.onTouchEnd;return!d||l||i?r.createElement("div",{className:v(h)},g):r.createElement("button",{className:v(h),onMouseDown:E,onTouchStart:x,onTouchEnd:y,"data-testid":f},g)},D=function(e){var n=e.buttonColor,t=e.disableReason,a=e.isFilled,o=e.isLoading,c=void 0!==o&&o,i=e.onClickAndHold,s=e.scale,u=e.shouldHideClapsText,d=e.testId,m=!!t;return c||!m&&!u?r.createElement(T,{buttonColor:n,isFilled:a,isLoading:c,onClickAndHold:i,scale:s,testId:d}):r.createElement(l.G,{tooltipText:t||"Clap",targetDistance:15},r.createElement(T,{buttonColor:n,isDisabled:m,isFilled:a,isLoading:c,onClickAndHold:i,scale:s,testId:d}))}},22213:(e,n,t)=>{t.d(n,{R:()=>o});var a=t(96540),r=t(52290),l=t(78693),o=function(e){var n=e.verticalClapsText,t=e.children;return a.createElement(r.a,{display:"flex",alignItems:"center",flexDirection:n?"column":"row",zIndex:l.Ay.elevatedLink},t)}},32318:(e,n,t)=>{t.d(n,{q:()=>p});var a=t(55127),r=t.n(a),l=t(96540),o=t(62262),c=t(86527),i=t(36557),s=t(44402),u=t(27715),d={cursor:"progress"},m=function(e){return function(n){return{textAlign:"left",":hover":{color:"LIGHTER"===e?n.colorTokens.foreground.neutral.primary.hover:n.colorTokens.foreground.neutral.secondary.base}}}},p=function(e){var n=e.showVoters,t=e.shouldShowResponsiveLabelText,a=e.shouldHideClapsText,p=e.hasLabel,f=e.clapCount,v=e.showFullNumber,g=e.countColor,h=e.countScale,b=void 0===h?"M":h,E=e.isLoading,x=void 0!==E&&E,y=(0,s.l)(),w=v?(0,u.fw)(f):(0,u.Ct)(f),k=p&&!a?" ".concat(r()("clap",f)):"";return g||(g=t||p||a?"DARKER":"LIGHTER"),l.createElement(i.kZ,{color:g,scale:b},x?l.createElement("span",{className:y(d)},"--"):n?l.createElement(c.N,{onClick:n,rules:m(g)},w,t?l.createElement(o.F,null,k):k):w)}},69650:(e,n,t)=>{t.d(n,{u:()=>v});var a=t(64467),r=t(96540),l=t(37661),o=t(44402),c=t(15578),i={"0%":{transform:"matrix(0.97, 0, 0, 1, 0, 12)",opacity:"0"},"20%":{transform:"matrix(0.99, 0, 0, 1, 0, 2)",opacity:".7"},"40%":{transform:"matrix(1, 0, 0, 1, 0, -1)",opacity:"1"},"70%":{transform:"matrix(1, 0, 0, 1, 0, 0)",opacity:"1"},"100%":{transform:"matrix(1, 0, 0, 1, 0, 0)",opacity:"1"}},s={"0%":{opacity:"1",transform:"translateY(0px)"},"10%":{opacity:"1",transform:"translateY(-3px)"},"100%":{opacity:"0",transform:"translateY(-50px)"}},u="400ms ease-out 500ms",d={"0%":{transform:"scale(1)"},"15%":{transform:"scale(1.1)"},"100%":{transform:"scale(1)"}},m="500ms",p=function(e){return function(n){return(0,a.A)({backgroundColor:n.colorTokens.background.neutral.quaternary.base,bottom:"39px",color:n.backgroundColor,borderRadius:"50%",fontSize:"15px",height:"35px",left:"-4px",lineHeight:"35px",position:"absolute",textAlign:"center",width:"35px",animation:"".concat(e," 400ms ease-out")},(0,c.Oe)("reduce"),{animationDuration:"0.1ms !important"})}},f=function(e,n){e&&(e.style.animation=n,e.scrollTop)};function v(e){var n=e.clappedAt,t=e.count,a=e.onFloatEnd,c=(0,o.l)(),v=(0,r.useRef)(n),g=(0,r.useRef)({enter:"",exit:"",pop:""}),h=(0,r.useRef)(null),b=(0,r.useCallback)((function(e){var n=g.current;e.animationName===n.enter||e.animationName===n.pop?f(h.current,"".concat(n.exit," ").concat(u)):e.animationName===n.exit&&(h.current&&(h.current.style.opacity="0"),a())}),[a]);return(0,r.useEffect)((function(){v.current!==n&&(f(h.current,""),f(h.current,"".concat(g.current.pop," ").concat(m)),v.current=n)}),[n]),r.createElement(l.w,{keyframes:{enter:i,exit:s,pop:d}},(function(e){return g.current=e,r.createElement("div",{ref:h,className:c([p(e.enter)]),onAnimationEnd:b},"+".concat(t))}))}},12600:(e,n,t)=>{t.d(n,{O:()=>l});var a=t(96540),r=t(44402),l=function(e){var n=e.children,t=e.buttonStyle,l=e.hasClaps,o=(0,r.l)(),c=function(e){return"SUBTLE_MARGIN"===e?"0px":"8px"}(t);return a.createElement("div",{className:"pw-multi-vote-icon ".concat(o((function(){return{position:"relative",marginRight:l?"4px":"0px",marginLeft:{xs:c,sm:c,md:void 0,lg:void 0,xl:void 0},WebkitUserSelect:"none"}})))},n)}},72541:(e,n,t)=>{t.d(n,{T:()=>o});var a=t(96540),r=t(80182),l=t(52290),o=function(e){var n=e.children,t=e.buttonStyle,o={marginTop:r.Ve[t]},c={marginRight:"SUBTLE_MARGIN"===t?"0px":"16px",marginTop:"0px"};return a.createElement(l.a,{xs:c,sm:c,md:o,lg:o,xl:o,playwrightClassName:"pw-multi-vote-count"},n)}},11828:(e,n,t)=>{t.d(n,{s:()=>u});var a=t(64467),r=t(96540),l=t(37661),o=t(44402),c=t(15578),i={"0%":{transform:"scale(1)"},"50%":{transform:"scale(1.1)"},"100%":{transform:"scale(1)"}},s=function(e){return(0,a.A)({animation:"".concat(e," 500ms 1")},(0,c.Oe)("reduce"),{animationDuration:"0.1ms"})};function u(e){var n=e.isPopping,t=void 0!==n&&n,a=e.onPopEnd,c=e.children,u=(0,o.l)();return r.createElement(l.w,{keyframes:{popAnimation:i}},(function(e){var n=e.popAnimation;return r.createElement("div",{className:t?u(s(n)):"",onAnimationEnd:a},c)}))}},1037:(e,n,t)=>{t.d(n,{X:()=>d});var a=t(55127),r=t.n(a),l=t(96540),o=t(3005),c=t(52290),i=t(99731),s=t(56942),u=function(e){var n=e.isVisible,t=e.hide,a=e.users,r=e.fetchMore,u=e.title,d=e.showMoreLabel,m=e.loading;return l.createElement(o.l,{isVisible:n,hide:t,withAnimation:!0},l.createElement(c.a,{maxWidth:"550px",sm:{paddingTop:"0"},paddingTop:"88px"},l.createElement(c.a,{display:"flex",flexDirection:"column",marginBottom:"24px",textAlign:"center"},l.createElement(s.DZ,{scale:"S"},u)),a,r&&l.createElement(c.a,{display:"flex",flexDirection:"column",margin:"24px",alignItems:"center"},l.createElement(i.$n,{buttonStyle:"SOCIAL",size:"SMALL",onClick:r,disabled:m},d))))},d=function(e){var n=e.isVisible,t=e.hide,a=e.voters,o=e.fetchMore,c=e.voterCount,i=e.title,s=e.clapCount,d=e.loading;return l.createElement(u,{isVisible:n,hide:t,fetchMore:o,users:a,title:"".concat(s," ").concat(r()("clap",s)," from ").concat(c," ").concat(1===c?"person":"people",' for "\n ').concat(i,'"'),showMoreLabel:"Show more claps",loading:d})}},22541:(e,n,t)=>{t.d(n,{_:()=>m});var a,r=t(96540),l=t(26061),o=t(39);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{Ve:()=>o,et:()=>r,gr:()=>a,vP:()=>c});var a=500,r=50,l={SUBTLE:"S",SUBTLE_MARGIN:"S",SUBTLE_PADDED:"M"},o={SUBTLE:"5px",SUBTLE_MARGIN:"0px",SUBTLE_PADDED:"0px"},c=function(e,n){return{alwaysShowClapsLabel:n,hasClapsLabel:n,buttonScale:l[e]}}},80074:(e,n,t)=>{t.d(n,{s:()=>c});var a=t(45458),r=t(80296),l=t(96540),o=t(80182),c=function(e){var n=e.onIncrementClaps,t=e.onSubmitClapsAccumulated,c=(0,l.useRef)(),i=(0,l.useState)(0),s=(0,r.A)(i,2),u=s[0],d=s[1],m=(0,l.useState)([]),p=(0,r.A)(m,2),f=p[0],v=p[1],g=(0,l.useState)(!1),h=(0,r.A)(g,2),b=h[0],E=h[1],x=(0,l.useState)(!1),y=(0,r.A)(x,2),w=y[0],k=y[1],L=(0,l.useState)(0),C=(0,r.A)(L,2),M=C[0],A=C[1],S=(0,l.useCallback)((function(){n()||d((function(e){return e+1}))}),[n]),R=(0,l.useCallback)((function(){v((function(e){for(var n=360*Math.random();-1!==e.indexOf(n);)n+=360;return[].concat((0,a.A)(e),[n])})),A(Date.now()),E(!0),k(!0),S()}),[S]),z=(0,l.useCallback)((function(){E(!1)}),[]),N=(0,l.useCallback)((function(){k(!1)}),[]),T=(0,l.useCallback)((function(e){v((function(n){return n.filter((function(n){return n!==e}))}))}),[]),D=(0,l.useCallback)((function(){var e=c.current;e&&clearTimeout(e)}),[]),O=(0,l.useCallback)((function(e){D(),c.current=0!==e?setTimeout((function(){t(e),d(0)}),o.gr):void 0}),[t]);return(0,l.useEffect)((function(){O(u)}),[u]),(0,l.useEffect)((function(){return function(){D()}}),[]),{isShowingViewerClapCount:b,isPopping:w,clappedAt:M,burstOffsets:f,clap:R,onFloatEnd:z,onPopEnd:N,removeBurst:T}}},62262:(e,n,t)=>{t.d(n,{F:()=>s,U:()=>u});var a=t(58168),r=t(80045),l=t(96540),o=t(52290),c=["xs","sm","children"],i=["xs","sm","children"],s=function(e){var n=e.xs,t=e.sm,i=e.children,s=(0,r.A)(e,c);return l.createElement(o.a,(0,a.A)({xs:{display:"none"},sm:{display:n?"inline-block":"none"},md:{display:n||t?"inline-block":"none"},lg:{display:"inline-block"},xl:{display:"inline-block"},tag:"span"},s),i)},u=function(e){var n=e.xs,t=e.sm,c=e.children,s=(0,r.A)(e,i);return l.createElement(o.a,(0,a.A)({xs:{display:"inline-block"},sm:{display:n?"none":"inline-block"},md:{display:n||t?"none":"inline-block"},lg:{display:"none"},xl:{display:"none"},tag:"span"},s),c)}},67900:(e,n,t)=>{t.d(n,{$:()=>r});var a=t(96540);function r(e,n){var t=a.useRef(e);function r(){t.current&&t.current()}a.useEffect((function(){t.current=e}),[e]),a.useEffect((function(){if(null!==n){var e=setInterval(r,n);return function(){clearInterval(e)}}}),[n])}}}]); //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/839.ca7937c2.chunk.js.map