(self.webpackChunklite=self.webpackChunklite||[]).push([[7225],{9419:(e,n,t)=>{"use strict";t.d(n,{B:()=>s,S:()=>u});var i=t(87329),r=t(27048),a=t(68216),o=[{kind:"FragmentDefinition",name:{kind:"Name",value:"EntityPresentationRankedModulePublishingTracker_entity"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RankedModulePublishingEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}],l=t(18821),c=t(84683),d=t(19308),u={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"EntityFollowList_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"algoliaObjectId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"bio"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"EntityPresentationRankedModulePublishingTracker_entity"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}}]}}].concat((0,i.Z)(r.W.definitions),(0,i.Z)(a.$m.definitions),(0,i.Z)(o),(0,i.Z)(l.H.definitions))},s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"EntityFollowList_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"algoliaObjectId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionAvatar_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionFollowButton_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"EntityPresentationRankedModulePublishingTracker_entity"}}]}}].concat((0,i.Z)(c.d.definitions),(0,i.Z)(d.I.definitions),(0,i.Z)(o))}},52262:(e,n,t)=>{"use strict";t.d(n,{T:()=>U});var i=t(67294),r=t(78757),a=t(65968),o=t(64238),l=t(71652),c=t(82405),d=t(25550),u=t(61095),s=t(17193),m=t(32317),p=t(77355),y=t(93310),k=t(52069),f=t(87691),g=t(18627),v=t(66411),E=t(96156),S=t(14646),b=t(18122),h=t(77280),F=t(43487);function w(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 x(e){for(var n=1;n{"use strict";t.d(n,{y:()=>a});var i=t(67294),r=t(77355),a=function(e){var n=e.children,t=e.marginTop,a=void 0===t?"40px":t,o=e.paddingBottom,l=void 0===o?"0px":o,c=e.showBorderBottom,d=void 0!==c&&c;return i.createElement(r.x,{marginTop:a,paddingBottom:l,borderBottom:d?"neutral.primary":"NONE"},n)}},78757:(e,n,t)=>{"use strict";t.d(n,{P:()=>a});var i=t(68427),r=t(84739),a=function(e){var n=(0,i.B)(),t=(0,r.I)();return"Collection"===e.__typename?n(e):"User"===e.__typename?t(e):""}},986:(e,n,t)=>{"use strict";t.d(n,{c:()=>u});var i=t(22122),r=t(67294),a=t(52439),o=t(89636),l=t(64959),c=t(77355),d=t(35010),u=function(e){var n=e.children,t=e.innerPadding,u=void 0===t?{}:t,s=e.footerPadding,m=e.display,p=void 0===m?"block":m,y=(0,r.useRef)(0),k=(0,r.useRef)(null),f=(0,r.useRef)("stickyToTop"),g=(0,r.useRef)(null),v=(0,o.v)(),E=v.fullNavbarHeight,S=v.topNavUpsellHeight,b=v.addHeightChangeHandler,h=v.removeHeightChangeHandler;return(0,d.L)((function(){var e=function(e){var n=e.currentHeight;k.current&&g.current&&("notSticky"!==f.current&&(k.current.style.top="".concat(n,"px")),g.current.style.minHeight="calc(100vh - ".concat(n,"px)"))};return b(e),function(){h(e)}}),[]),(0,d.L)((function(){var e=function(){if(k.current){var e=window.scrollY>y.current;y.current=window.scrollY;var n=window.innerHeight,t=k.current.offsetHeight-n,i=l.fp;t<=20||(e?("notSticky"===f.current&&window.scrollY>=k.current.offsetTop+t+i+S&&(f.current="stickyToBottom",k.current.style.position="sticky",k.current.style.top="".concat(-t,"px")),"stickyToTop"===f.current&&(f.current="notSticky",k.current.style.position="relative",k.current.style.top="0px",k.current.style.marginTop="0px",k.current.style.marginTop="".concat(Math.max(y.current-k.current.offsetTop,0),"px"))):("notSticky"===f.current&&window.scrollY<=k.current.offsetTop&&(f.current="stickyToTop",k.current.style.position="sticky",k.current.style.top="".concat(i+S,"px"),k.current.style.marginTop="0px"),"stickyToBottom"===f.current&&(f.current="notSticky",k.current.style.position="relative",k.current.style.top="0px",k.current.style.marginTop="0px",k.current.style.marginTop="".concat(y.current-t-k.current.offsetTop-i-S,"px"))))}};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[S]),r.createElement(c.x,{position:"sticky",top:"".concat(E,"px"),ref:k,display:p},r.createElement(c.x,(0,i.Z)({display:"flex",flexDirection:"column",minHeight:"calc(100vh - ".concat(E,"px)"),ref:g},u),r.createElement(c.x,{flexGrow:"1"},n),r.createElement(a.q,{detailScale:"XS",spacing:"XS",padding:s})))}}}]); //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/7225.ad71ba28.chunk.js.map