2 lines
40 KiB
JavaScript
2 lines
40 KiB
JavaScript
"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[1676],{52752:(e,n,i)=>{i.d(n,{A:()=>d});var a,l=i(96540);function t(){return t=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},t.apply(null,arguments)}const d=function(e){return l.createElement("svg",t({width:25,height:25,className:"svgIcon-use"},e),a||(a=l.createElement("path",{fillRule:"evenodd",d:"M5 12.5q0 .828.586 1.414.585.585 1.414.586.828 0 1.414-.586.585-.586.586-1.414 0-.828-.586-1.414A1.93 1.93 0 0 0 7 10.5q-.828 0-1.414.586-.585.586-.586 1.414m5.617 0q0 .828.586 1.414.587.585 1.414.586.828 0 1.414-.586t.586-1.414-.586-1.414a1.93 1.93 0 0 0-1.414-.586q-.827 0-1.414.586-.586.586-.586 1.414m5.6 0q0 .828.586 1.414.585.585 1.432.586.827 0 1.413-.586t.587-1.414q0-.828-.587-1.414a1.93 1.93 0 0 0-1.413-.586q-.847 0-1.432.586t-.587 1.414z"})))}},83611:(e,n,i)=>{i.d(n,{J:()=>y});var a=i(45458),l=i(74984),t=i(4124),d=i(59265),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderBackground_customStyleSheet"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomStyleSheet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"global"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"colorPalette"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"background"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rgb"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"header"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headerScale"}},{kind:"Field",name:{kind:"Name",value:"backgroundImageDisplayMode"}},{kind:"Field",name:{kind:"Name",value:"backgroundImageVerticalAlignment"}},{kind:"Field",name:{kind:"Name",value:"backgroundColorDisplayMode"}},{kind:"Field",name:{kind:"Name",value:"backgroundColor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"alpha"}},{kind:"Field",name:{kind:"Name",value:"rgb"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getHexFromColorValue_colorValue"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getOpaqueHexFromColorValue_colorValue"}}]}},{kind:"Field",name:{kind:"Name",value:"secondaryBackgroundColor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"getHexFromColorValue_colorValue"}}]}},{kind:"Field",name:{kind:"Name",value:"postBackgroundColor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"getHexFromColorValue_colorValue"}}]}},{kind:"Field",name:{kind:"Name",value:"backgroundImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}}]}}]}}]}}].concat((0,a.A)(l.V4.definitions),(0,a.A)(l.Sz.definitions))},r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderBackground_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"customStyleSheet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderBackground_customStyleSheet"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"colorPalette"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tintBackgroundSpectrum"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"backgroundColor"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isAuroraVisible"}},{kind:"Field",name:{kind:"Name",value:"legacyHeaderBackgroundImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}},{kind:"Field",name:{kind:"Name",value:"focusPercentX"}},{kind:"Field",name:{kind:"Name",value:"focusPercentY"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionTintBackgroundTheme_collection"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"publisherUrl_publisher"}}]}}].concat((0,a.A)(o.definitions),(0,a.A)(t.Ei.definitions),(0,a.A)(d.DW.definitions))},m=i(7541),u=i(55918),s=i(91052),c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderName_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"customStyleSheet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"header"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appNameColor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"getHexFromColorValue_colorValue"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserPronouns_user"}}]}}]}}].concat((0,a.A)(l.V4.definitions),(0,a.A)(u.s.definitions),(0,a.A)(s.k.definitions))},k=i(30898),g={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"useLogo_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"customStyleSheet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"header"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"logoImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"useLogo_imageMetadata"}}]}},{kind:"Field",name:{kind:"Name",value:"appNameTreatment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isAuroraVisible"}},{kind:"Field",name:{kind:"Name",value:"logo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"useLogo_imageMetadata"}}]}}]}}]}}].concat((0,a.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"useLogo_imageMetadata"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageMetadata"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"originalHeight"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}}]}}]))},p={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderNameplate_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherAvatar_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderLogo_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderName_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherFollowersCount_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useLogo_publisher"}}]}}].concat((0,a.A)(m.j.definitions),(0,a.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderLogo_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"logo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]),(0,a.A)(c.definitions),(0,a.A)(k.c.definitions),(0,a.A)(g.definitions))},v=i(45977),S={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"newsletterV3"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"MutePopoverOptions_collection"}}]}}].concat((0,a.A)(v._.definitions))},h={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher_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:"FragmentSpread",name:{kind:"Name",value:"MutePopoverOptions_creator"}}]}}].concat((0,a.A)(v.o.definitions))},N={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},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:"FragmentSpread",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher_collection"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher_user"}}]}}]}}].concat((0,a.A)(S.definitions),(0,a.A)(h.definitions))},f={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderMenu_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher"}}]}}].concat((0,a.A)(N.definitions))},b=i(3545),F=i(8686),E={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderActions_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderMenu_publisher"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionFollowButton_collection"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FollowAndSubscribeButtons_user"}}]}}]}}].concat((0,a.A)(f.definitions),(0,a.A)(b.f.definitions),(0,a.A)(F.W.definitions))},_={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderNav_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"customStyleSheet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"navigation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"navItems"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderNavLink_headerNavigationItem"}}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderNavLink_publisher"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"isAuroraVisible"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"navItems"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tagSlug"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"url"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customDomainState"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"live"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"domain"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"hasSubdomain"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",alias:{kind:"Name",value:"homePostsPublished"},name:{kind:"Name",value:"homepagePostsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paging"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"1"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}}]}}]}}].concat((0,a.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderNavLink_headerNavigationItem"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HeaderNavigationItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"normalizedTagSlug"}}]}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]),(0,a.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderNavLink_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}}]}}]),(0,a.A)(u.s.definitions))},y={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeader_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderBackground_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderNameplate_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderActions_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderNav_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderMenu_publisher"}}]}}].concat((0,a.A)(r.definitions),(0,a.A)(p.definitions),(0,a.A)(E.definitions),(0,a.A)(_.definitions),(0,a.A)(f.definitions))}},26500:(e,n,i)=>{i.d(n,{w:()=>o});var a=i(96540),l=i(54239),t=i(42976),d=i(39289),o=function(){var e=(0,l.zy)(),n=(0,d.i)();return a.useCallback((function(i){var a,l;return i.type===t.Fo.NAV_TYPE_LINK?n(null!==(a=i.href)&&void 0!==a?a:""):i.type===t.Fo.NAV_TYPE_TAG&&!(null===(l=i.tagSlugs)||void 0===l||!l.length)&&e.pathname.includes("tagged/".concat(i.tagSlugs[0]))}),[e.pathname,n])}},65866:(e,n,i)=>{i.d(n,{s:()=>Ae});var a,l,t,d,o=i(96540),r=i(1620),m=i(28072),u=i(52290),s=i(20239),c=function(e){return{xs:"24px 0",sm:"24px 0",md:"".concat(r.Fr,"px 0 ").concat(e||r.xb,"px"),lg:"".concat(r.Fr,"px 0 ").concat(e||r.xb,"px"),xl:"".concat(r.Fr,"px 0 ").concat(e||r.xb,"px")}},k=function(e){var n=e.profileInfos,i=e.navbar,a=e.withBoxShadow,l=void 0===a||a,t=e.headerMarginBottom,d=(0,s.D)();return o.createElement(m.P,{size:"app"},o.createElement(u.a,{boxShadow:l?"inset 0 -1px 0 ".concat(d.colorTokens.border.neutral.primary.base):void 0,margin:c(t)},o.createElement(u.a,{alignItems:{xs:"flex-start",sm:"flex-start",md:"flex-start",lg:"center",xl:"center"},display:"flex",flexWrap:{xs:"wrap",sm:"wrap",md:"nowrap",lg:"nowrap",xl:"nowrap"},justifyContent:{xs:"space-between",sm:"space-between",md:"flex-end",lg:"flex-end",xl:"flex-end"},marginBottom:{xs:"24px",sm:"24px",md:"40px",lg:"40px",xl:"40px"}},n),i))},g=i(87147),p=i(21335),v=i(33735),S=i(85050),h=i(80296),N=i(24670),f=i(58285),b=i(27721),F=i(86329),E=i(5419),_=i(19228),y=i(14782),A=i(59348),x=i(88308),C=i(86527),T=i(24960),I=i(28993),D=i(27049),P=i(44402),w=i(51260),M=i(39160),L=i(52752),V=i(46963),R=i(60603),H=i(46879),O=function(e){var n=e.copyUrl,i=e.hidePopover,a=e.copySource,l=e.collection,t=e.author,d=l?{collectionId:l.id}:{authorId:null==t?void 0:t.id};return o.createElement(y.q3,null,o.createElement(E.X,{url:n,onClick:i,reportData:d,source:a,copyStyle:"TEXT"},l?"Copy link to publication":"Copy link to profile"))},U=function(e){var n=e.publisher,i=e.hideAboutLink,a=void 0!==i&&i,l=(0,o.useRef)(null),t=(0,M.d4)((function(e){return e.config.authDomain})),d=(0,P.l)(),r="Collection"===n.__typename?n:null,m=null==r?void 0:r.slug,s=(0,w.om)(),c=(0,w.au)(),k=(0,R.e)(!1),g=(0,h.A)(k,3),p=g[0],v=g[1],S=g[2],E=(0,V.U)(),U=E===D.i.xs||E===D.i.sm,B="User"===n.__typename?n:null,Y=(B||{}).id,G="publisherMenu",q=(0,F.J)(r),W=q.loading,X=q.viewerEdge,z=null==X?void 0:X.isEditor,j=(0,R.e)(!1),Z=(0,h.A)(j,4),K=Z[0],J=Z[2],$=Z[3],Q=(0,o.useCallback)((function(){J(),setTimeout((function(){l.current&&l.current.focus()}))}),[J,l]),ee=o.useCallback((function(){U&&v()}),[U]),ne=(0,b.R)().value,ie=!!ne&&B&&Y===ne.id,ae=r?"collection_home":"user_profile_page",le=null==B?void 0:B.username,te=r?c("ShowCollectionHome",{collectionSlug:null!=m?m:""}):c("ShowUser",{username:null!=le?le:""});return W?null:o.createElement(_.Cq,null,o.createElement(T.A,{ariaId:G,isVisible:K,hide:Q,popoverRenderFn:function(){return o.createElement(y.Ni,null,!!r&&function(e){var n=e.newsletterV3?(0,H.Lpe)(e.newsletterV3.slug,t,e):(0,H.AEe)(e,t);return o.createElement(o.Fragment,null,o.createElement(O,{copyUrl:te,hidePopover:Q,copySource:ae,collection:e,author:B}),!a&&!z&&o.createElement(y.q3,null,o.createElement(C.N,{href:s("ShowCollectionMasthead",{collectionSlug:m||""})},"About ",null==e?void 0:e.name)),ne&&e&&o.createElement(f.J,{hidePopover:Q,collection:e}),z&&o.createElement(o.Fragment,null,o.createElement(y.q3,null,o.createElement(C.N,{href:(0,H.TGb)(e,t)},"Stories")),o.createElement(y.q3,null,o.createElement(C.N,{href:c("FetchCollectionStats",{collectionSlug:e.slug||""})},"View Stats")),o.createElement(y.q3,null,o.createElement(C.N,{href:(0,H.aNC)(e,t)},"Design your publication")),o.createElement(y.q3,null,o.createElement(C.N,{href:n},"Newsletter")),o.createElement(y.q3,null,o.createElement(C.N,{href:(0,H.JAD)(e,t)},"Settings"))))}(r),ne&&B&&Y&&(e=B,ie?o.createElement(o.Fragment,null,o.createElement(O,{copyUrl:te,hidePopover:Q,copySource:ae,collection:r,author:B}),o.createElement(y.q3,null,o.createElement(C.N,{href:U?void 0:(0,H.pC7)(t),onClick:ee},"Design your profile"),o.createElement(N.c,{hide:S,isVisible:p}))):o.createElement(o.Fragment,null,o.createElement(O,{copyUrl:te,hidePopover:Q,copySource:ae,collection:r,author:B}),o.createElement(f.J,{hidePopover:Q,creator:e}),o.createElement(A.U,{hidePopover:Q,creator:e,viewer:ne}),o.createElement(x.U,{hidePopover:Q,creator:e,viewer:ne}))));var e},display:"flex",targetDistance:15},o.createElement(I.P,{onClick:$,"aria-controls":G,ariaExpanded:K?"true":"false",ariaLabel:"Publisher Menu",ref:l},o.createElement(u.a,{padding:"4px",ariaHidden:"true"},o.createElement(L.A,{className:d((function(e){return{fill:e.colorTokens.foreground.neutral.secondary.base,":hover":{fill:e.colorTokens.foreground.neutral.primary.hover}}}))})))))},B=function(e){var n=e.publisher,i=e.xs,a=e.sm,l=e.md,t=e.lg,d=e.xl,r=!!(0,b.R)().value,m="User"===n.__typename;return r?o.createElement(S.V,{xs:i,sm:a,md:l,lg:t,xl:d,marginLeft:"12px"},o.createElement(U,{publisher:n,hideAboutLink:m})):null},Y=function(e){var n=e.publisher,i="User"===n.__typename,a=(0,p.cd)({id:i?n.id:""}),l=a.viewerEdge,t=a.loading;return o.createElement(o.Fragment,null,!t&&(!i||!(null!=l&&l.isUser))&&!(null!=l&&l.isBlocking)&&o.createElement(S.V,{xs:!0,sm:!0,md:!0,displayValue:"flex",flexBasis:{xs:"100%",sm:"100%",md:"content",lg:"content",xl:void 0},justifyContent:{xs:"space-between",sm:"space-between",md:"flex-end",lg:"flex-end",xl:void 0},marginTop:{xs:"20px",sm:"20px",md:void 0,lg:void 0,xl:void 0},width:"100%"},"User"===n.__typename?o.createElement(v.m,{creator:n,followButtonSize:"REGULAR",susiEntry:"follow_profile",showMembershipUpsellModal:!0,width:"100%",trackingV2:!0}):o.createElement(g.E,{buttonSize:"REGULAR",collection:n,susiEntry:"follow_header",trackingV2:!0})),o.createElement(B,{publisher:n,md:!0,lg:!0}))},G=i(64467),q=i(80545),W=i(39931),X=i(6068),z=i(34626),j=i(42976),Z=i(90383),K=i(40064),J=(a={},(0,G.A)(a,j.C1.START,"top"),(0,G.A)(a,j.C1.END,"bottom"),(0,G.A)(a,j.C1.CENTER,"center"),a),$=function(e){var n,i,a,l,t,d,r,m,u,s,c,k,g,p,v,S,h,N,f,b=e.publisher,F=(0,P.l)(),E=b.customStyleSheet,_=null!=E?E:{},y=_.global,A=_.header,x=(0,W.p)(b),T=null!==(n="Collection"===b.__typename&&!b.isAuroraVisible&&b.legacyHeaderBackgroundImage)&&void 0!==n?n:null,I=null!==(i=null==A?void 0:A.backgroundImage)&&void 0!==i?i:T,D=!("Collection"!==b.__typename||b.isAuroraVisible||null==b||null===(a=b.colorPalette)||void 0===a||null===(l=a.tintBackgroundSpectrum)||void 0===l||!l.backgroundColor||null!=b&&null!==(t=b.colorPalette)&&void 0!==t&&null!==(d=t.tintBackgroundSpectrum)&&void 0!==d&&d.backgroundColor.includes("#FFFFFF")||I),w=null!==(r=null==E||null===(m=E.header)||void 0===m?void 0:m.backgroundImageDisplayMode)&&void 0!==r?r:z.XN.backgroundImageDisplayMode,M=null!==(u=null==E||null===(s=E.header)||void 0===s?void 0:s.backgroundColorDisplayMode)&&void 0!==u?u:z.XN.backgroundColorDisplayMode,L=I?(f=I,(0,Z.rP)({miroId:f.id,width:f.originalWidth||2e3,strategy:Z.qY.Resample,freezeGifs:!1})):"",V=o.useMemo((function(){return function(e){var n=(0,X.M9)(null==A?void 0:A.backgroundColor),i=(0,X.M9)(null==A?void 0:A.secondaryBackgroundColor),a={display:"flex",flexDirection:"column",height:"150px"},l=[];if("Collection"===b.__typename&&D?a.backgroundColor=(0,K.ty)(b,e).backgroundColor:M===j.ZE.COLOR_DISPLAY_MODE_SOLID?l.push("linear-gradient(to bottom, ".concat(n||"transparent",", ").concat(n||"transparent",")")):M===j.ZE.COLOR_DISPLAY_MODE_VERTICAL_GRADIENT&&l.push("linear-gradient(to bottom, ".concat(n||"transparent",", ").concat(i||"transparent",")")),I){var t,d;l.push("url(".concat(L,")"));var o=null!==(t=null==E||null===(d=E.header)||void 0===d?void 0:d.backgroundImageVerticalAlignment)&&void 0!==t?t:z.XN.backgroundImageVerticalAlignment,r=J[o];if(a.backgroundPosition=r,T){var m=T.focusPercentX,u=T.focusPercentY;a.backgroundPosition=m&&u?"".concat(T.focusPercentX,"% ").concat(T.focusPercentY,"%"):J[j.C1.CENTER]}switch(w){case j.pV.IMAGE_DISPLAY_MODE_FILL:a.backgroundSize="cover";break;case j.pV.IMAGE_DISPLAY_MODE_TILE:a.backgroundRepeat="repeat",a.backgroundSize="auto";break;case j.pV.IMAGE_DISPLAY_MODE_FIT:a.backgroundRepeat="no-repeat",a.backgroundSize="contain";break;case j.pV.IMAGE_DISPLAY_MODE_AUTO:a.backgroundRepeat="no-repeat",a.backgroundSize="auto"}}return l.length>0&&(a.backgroundImage=l.join(", ")),a}}),[E,L]),R=!(null!=A&&A.backgroundColor)||"00"===(null==A||null===(c=A.backgroundColor)||void 0===c?void 0:c.alpha)||(null==A||null===(k=A.backgroundColor)||void 0===k?void 0:k.rgb)===(null==y||null===(g=y.colorPalette)||void 0===g||null===(p=g.background)||void 0===p?void 0:p.rgb),H=!(null!=A&&A.secondaryBackgroundColor)||"00"===(null==A||null===(v=A.secondaryBackgroundColor)||void 0===v?void 0:v.alpha)||(null==A||null===(S=A.secondaryBackgroundColor)||void 0===S?void 0:S.rgb)===(null==y||null===(h=y.colorPalette)||void 0===h||null===(N=h.background)||void 0===N?void 0:N.rgb),O=(!A||(null==A?void 0:A.backgroundColorDisplayMode)===j.ZE.COLOR_DISPLAY_MODE_SOLID)&&R,U=(!A||(null==A?void 0:A.backgroundColorDisplayMode)===j.ZE.COLOR_DISPLAY_MODE_VERTICAL_GRADIENT)&&R&&H;return L||!O&&!U||D?o.createElement(o.Fragment,null,L&&o.createElement(q.mg,null,o.createElement("link",{rel:"preload",href:L,as:"image"})),o.createElement(C.N,{href:x},o.createElement("div",{className:F(V)}))):null},Q=i(10974),ee=i(26073),ne=i(36557),ie=i(90280),ae=(l={},(0,G.A)(l,j.g4.HEADER_SCALE_SMALL,{small:{width:175,height:70},large:{width:175,height:70}}),(0,G.A)(l,j.g4.HEADER_SCALE_MEDIUM,{small:{width:225,height:90},large:{width:225,height:90}}),(0,G.A)(l,j.g4.HEADER_SCALE_LARGE,{small:{width:275,height:110},large:{width:275,height:110}}),l),le=(t={},(0,G.A)(t,j.g4.HEADER_SCALE_SMALL,{small:{width:160,height:32},large:{width:240,height:48}}),(0,G.A)(t,j.g4.HEADER_SCALE_MEDIUM,{small:{width:280,height:56},large:{width:360,height:72}}),(0,G.A)(t,j.g4.HEADER_SCALE_LARGE,{small:{width:280,height:64},large:{width:520,height:104}}),t),te=(d={},(0,G.A)(d,j.g4.HEADER_SCALE_SMALL,{small:{width:280,height:24},large:{width:320,height:32}}),(0,G.A)(d,j.g4.HEADER_SCALE_MEDIUM,{small:{width:280,height:40},large:{width:600,height:60}}),(0,G.A)(d,j.g4.HEADER_SCALE_LARGE,{small:{width:280,height:60},large:{width:680,height:80}}),d),de=function(e,n){var i,a,l=null!==(i=null==n?void 0:n.originalWidth)&&void 0!==i?i:0,t=null!==(a=null==n?void 0:n.originalHeight)&&void 0!==a?a:0,d=Math.min(e.width/l,e.height/t);return{width:Math.floor(d*l),height:Math.floor(d*t)}},oe=function(e){var n=e.publisher,i=e.logo;if(!i)return null;var a=function(e,n){if(null==n||!n.originalWidth||null==n||!n.originalHeight)return ae[e];var i=n.originalWidth/n.originalHeight;return i<=2.5?ae[e]:i<5?le[e]:te[e]}(j.g4.HEADER_SCALE_MEDIUM,i),l=de(a.small,i),t=de(a.large,i);return o.createElement(ie.pg,{miroId:i.id,alt:n.name||"Publication logo",width:t.width,height:t.height,strategy:Z.qY.Resample,rules:{width:{xs:"".concat(l.width,"px"),sm:"".concat(l.width,"px"),md:"".concat(t.width,"px"),lg:"".concat(t.width,"px"),xl:"".concat(t.width,"px")},height:{xs:"".concat(l.height,"px"),sm:"".concat(l.height,"px"),md:"".concat(t.height,"px"),lg:"".concat(t.height,"px"),xl:"".concat(t.height,"px")}}})},re=i(70600),me=i(36469),ue=i(88474),se=i(39),ce=function(e){var n,i=e.publisher,a=(0,P.l)(),l=i.customStyleSheet,t="User"===i.__typename,d=(0,ue.E)(t?i:null),r=(null!==(n=null==l?void 0:l.header)&&void 0!==n?n:{}).appNameColor,m=(0,X.M9)(r),s=(0,se.Z)({name:"heading",scale:{xs:"M",sm:"M",md:"M",lg:"XL",xl:"XL"},fontWeight:"NORMAL",clamp:{xs:4,sm:4,md:4,lg:1,xl:1},color:"NORMAL"}),c=t&&i.pronouns&&i.pronouns.length>0,k=c?"wrap":"nowrap",g=c?"baseline":void 0;return o.createElement(u.a,{display:"flex",flexWrap:{xs:k,sm:k,md:k,lg:"nowrap",xl:"nowrap"},alignItems:{xs:g,sm:g,md:g,lg:void 0,xl:void 0}},o.createElement("span",{className:a([s,function(e){return{color:m||e.baseColor.text.dark}},{wordBreak:"break-word",paddingRight:"8px"}])},i.name),o.createElement(u.a,{display:"flex",alignItems:"center",marginTop:"2px"},c&&o.createElement(S.V,{xs:!0,sm:!0,md:!0},o.createElement(re.U,{user:i,scale:"M"})),d&&o.createElement(u.a,{marginLeft:"5px",marginTop:{xs:c?void 0:"2px",sm:c?void 0:"3px",md:c?void 0:"3px",lg:"3px",xl:"3px"}},o.createElement(me.b,{size:"L",mobileSize:"M"}))))},ke=function(e){var n=e.publisher,i=function(e){var n,i,a,l=e.customStyleSheet,t=null==l||null===(n=l.header)||void 0===n?void 0:n.logoImage,d=null!==(i=null==l||null===(a=l.header)||void 0===a?void 0:a.appNameTreatment)&&void 0!==i?i:z.XN.nameTreatment,o=void 0!==t,r="Collection"===e.__typename?e.logo:null,m=o?t:r,u="Collection"===e.__typename&&!e.isAuroraVisible&&!(null==r||!r.id);return{logo:m,shouldShowLogo:!(null==m||!m.id)&&(d===j.wo.NAME_TREATMENT_LOGO||u)}}(n),a=i.logo,l=i.shouldShowLogo,t=(0,V.U)(),d=!("User"===n.__typename&&(t===D.i.xs||t===D.i.sm||t===D.i.md))&&!!a&&l;return o.createElement(u.a,{display:"flex",alignItems:"center",justifyContent:"flex-start",flexGrow:"1",flexShrink:"1",marginRight:{xs:"0",sm:"0",md:"16px",lg:"16px",xl:"0"}},!d&&o.createElement(S.V,{xs:!0,sm:!0,md:!0,marginRight:"20px",alignSelf:"flex-start"},o.createElement(ee.K,{publisher:n})),o.createElement(u.a,null,d?o.createElement(oe,{publisher:n,logo:a}):o.createElement(ce,{publisher:n}),o.createElement(S.V,{xs:!0,sm:!0,md:!0,marginTop:"8px"},o.createElement(ne.kZ,{scale:"L"},o.createElement(Q.T,{publisher:n})))))},ge=i(45458),pe=i(7367),ve=i(25909),Se=i(36541),he=function(e){var n=e.navItem,i=e.publisher,a=(0,M.d4)((function(e){return e.config.authDomain})),l=(0,M.d4)((function(e){return e.navigation.hostname})),t=function(e){var n=e.navItem,i=e.publisher,a=(0,w.au)();if(n.type===j.Fo.NAV_TYPE_LINK)return n.href||"#";if(n.type===j.Fo.NAV_TYPE_TAG){var l,t=null===(l=n.tags)||void 0===l?void 0:l[0],d=(null==t?void 0:t.normalizedTagSlug)||(null==t?void 0:t.id)||"";return"Collection"===i.__typename&&i.slug?a("ShowCollectionTagged",{collectionSlug:i.slug,tagSlug:d}):a("ShowTagPosts",{tagSlug:d})}return"#"}({navItem:n,publisher:i}),d=t.startsWith("/")||t.startsWith("#")||t.includes(a)||t.includes(l);if(!n.name)return null;var r=o.createElement(Se.X,{text:n.name,href:t,target:d?void 0:"_blank"});return n.dismissibleFlag?o.createElement(ve.Z,{flag:n.dismissibleFlag.flag,text:n.dismissibleFlag.popoverText,dismissText:n.dismissibleFlag.dismissText,placement:"bottom",targetDistance:5,preventParentClick:!0,styleOverrides:{left:"-16px",top:"-6px"}},r):r},Ne=i(60213),fe=i(64122),be=i(2550),Fe=i(53612),Ee=i(26500),_e=function(e){var n,i,a=e.publisher,l=(0,s.D)(),t=(null!=a?a:{}).customStyleSheet,d=(0,w.au)(),r=(0,fe.W)(),m=(0,Ne.u)(),c=(0,be.A)().viewerId,k=(0,ue.E)("User"===a.__typename?a:null),g=(0,Fe.X)({id:"User"===a.__typename&&a.id?a.id:""}).data,p=[{name:"Home",href:"User"===a.__typename?r(a):m(a),tagSlugs:[],tags:[],type:j.Fo.NAV_TYPE_LINK}];if("User"===a.__typename&&a.username){var v,S,h=(null===(v=a.homePostsPublished)||void 0===v?void 0:v.posts)&&a.homePostsPublished.posts.length>0,N="User"===(null==g||null===(S=g.userResult)||void 0===S?void 0:S.__typename)&&g.userResult.viewerEdge.hasList;k&&p.push({name:"Books",href:d("ShowUserBooks",{username:a.username}),tagSlugs:[],tags:[],type:j.Fo.NAV_TYPE_LINK}),h&&N&&p.push({name:"Lists",href:d("ShowUserLists",{username:a.username}),tagSlugs:[],tags:[],type:j.Fo.NAV_TYPE_LINK}),p.push({name:"About",href:d("ShowUserAbout",{username:a.username}),tagSlugs:[],tags:[],type:j.Fo.NAV_TYPE_LINK,dismissibleFlag:c===a.id?{flag:j.bT.TOOLTIP_ABOUT_EDITOR,popoverText:"You can now style text and images on your about page"}:void 0})}else"Collection"===a.__typename&&a.slug&&p.push({name:"About",href:d("ShowCollectionMasthead",{collectionSlug:a.slug}),tagSlugs:[],tags:[],type:j.Fo.NAV_TYPE_LINK});var f=(null!==(n=null==t||null===(i=t.navigation)||void 0===i?void 0:i.navItems)&&void 0!==n?n:[]).filter((function(e){var n;return!(null===(n=e.name)||void 0===n||!n.trim())}));"Collection"!==a.__typename||a.isAuroraVisible||(f=a.navItems.map((function(e){return{name:e.title,href:e.url,tags:[],type:j.Fo.NAV_TYPE_LINK}})));var b=[].concat(p,(0,ge.A)(f)),F=(0,Ee.w)(),E=!1;return o.createElement(u.a,{position:"relative",overflow:"hidden",tag:"nav",boxShadow:"inset 0 -1px 0 ".concat(l.colorTokens.border.neutral.primary.base)},o.createElement(pe.x5,null,b.map((function(e,n){return F(e)&&!E&&(E=!0),e.name?o.createElement(u.a,{tag:"span",key:"".concat(e.name,"-").concat(n),minWidth:"-webkit-max-content"},o.createElement(he,{navItem:e,publisher:a})):null}))))},ye=function(e){var n=e.publisher,i=e.includeBackground,a=void 0===i||i,l=e.headerMarginBottom;return o.createElement(u.a,null,a&&o.createElement($,{publisher:n}),o.createElement(k,{profileInfos:o.createElement(o.Fragment,null,o.createElement(u.a,{display:"flex",width:"100%",alignItems:{xs:"flex-start",sm:"flex-start",md:"flex-start",lg:"center",xl:"center"}},o.createElement(ke,{publisher:n}),o.createElement(B,{publisher:n,xs:!0,sm:!0,xl:!0})),o.createElement(Y,{publisher:n})),navbar:o.createElement(_e,{publisher:n}),headerMarginBottom:l}))},Ae=(0,o.memo)(ye)},24670:(e,n,i)=>{i.d(n,{c:()=>u});var a=i(96540),l=i(64314),t=i(52290),d=i(27049),o=i(56942),r=i(36557),m=i(46963),u=function(e){var n=e.hide,i=e.isVisible,u=(0,m.U)();return a.createElement(l.m,{isVisible:i,hide:n,confirmText:"Okay, got it",showCancelButton:!1},a.createElement(t.a,{textAlign:"center"},a.createElement(o.DZ,{scale:u===d.i.xs?"M":"L"},"Only available on desktop"),a.createElement(t.a,{margin:"8px 0 30px"},a.createElement(r.kZ,{scale:"L"},"To design your profile, view this page from a desktop web browser."))))}},74984:(e,n,i)=>{i.d(n,{Sz:()=>l,V4:()=>a});var a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getHexFromColorValue_colorValue"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ColorValue"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rgb"}},{kind:"Field",name:{kind:"Name",value:"alpha"}}]}}]},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getOpaqueHexFromColorValue_colorValue"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ColorValue"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rgb"}}]}}]}},6068:(e,n,i)=>{i.d(n,{BG:()=>c,Gc:()=>s,M9:()=>u,Sb:()=>g});var a=i(82284),l=i(80296),t=i(2404),d=i.n(t),o=i(56449),r=i.n(o),m=/^#?([0-9a-fA-F]{6})([0-9a-fA-F]{2})?$|^#?([0-9a-fA-F]{3})([0-9a-fA-F]{1})?$/,u=function(e){if(!e)return e;var n=e.rgb,i=e.alpha,a="#".concat(n).concat(i||"");return m.exec(a)?a:null},s=function(e){var n=m.exec(e);if(!n)return null;var i=(0,l.A)(n,5),a=i[1],t=i[2],d=i[3],o=i[4];return{rgb:a||d,alpha:t||o||null}},c=function(e){if(!e)return null;var n=/rgba?\((\d+),(\d+),(\d+),?(\d*\.?\d+)?\)/.exec(e.replace(/\s+/g,""))||[],i=(0,l.A)(n,5),a=[i[1],i[2],i[3],i[4]];return a[3]=a[3]?Math.round(255*+a[3]).toString():"255",{rgb:(a=a.map((function(e){return(+e).toString(16).padStart(2,"0")}))).slice(0,3).join(""),alpha:a[3]||null}},k=function e(n){if("object"===(0,a.A)(n)&&null!==n){for(var i=0,l=Object.values(n);i<l.length;i++)if(!e(l[i]))return!1;return!0}return null==n||""===n},g=function e(n,i){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!n&&!i)return k(n)&&k(i);if(!i)return k(n);if(!n)return k(i);if("object"!==(0,a.A)(n))return n===i;if(r()(n)&&r()(i))return d()(n,i);for(var o=0,m=Object.entries(n);o<m.length;o++){var u=(0,l.A)(m[o],2),s=u[0],c=u[1];if(!t.includes(s)&&!e(c,i[s]))return!1}return!0}},34626:(e,n,i)=>{i.d(n,{XN:()=>l,gp:()=>d,ii:()=>r,yV:()=>t});var a=i(42976),l={horizontalAlignment:a.C1.START,headerScale:a.g4.HEADER_SCALE_SMALL,logoScale:a.g4.HEADER_SCALE_MEDIUM,backgroundColorDisplayMode:a.ZE.COLOR_DISPLAY_MODE_SOLID,backgroundImageDisplayMode:a.pV.IMAGE_DISPLAY_MODE_FILL,backgroundImageVerticalAlignment:a.C1.START,appNameTreatment:a.wo.NAME_TREATMENT_TEXT,postNameTreatment:a.wo.NAME_TREATMENT_LOGO,taglineTreatment:a.vK.TAGLINE_TREATMENT_SIDEBAR,backgroundColor:null,secondaryBackgroundColor:null,postBackgroundColor:null,taglineColor:null,backgroundImage:null,logoImage:null,appNameColor:null,nameColor:null,nameTreatment:a.wo.NAME_TREATMENT_TEXT},t=function(){return l},d=function(){return o()},o=function(){return{font1:{name:a.H_.SANS_SERIF_1},font2:{name:a.H_.SANS_SERIF_1},font3:{name:a.H_.SERIF_2}}},r=function(){return m()},m=function(){return{visibility:a.c6.BLOGROLL_VISIBILITY_SIDEBAR}}},25909:(e,n,i)=>{i.d(n,{X:()=>a,Z:()=>F});var a,l=i(58168),t=i(80296),d=i(80045),o=i(95420),r=i(96540),m=i(20663),u=i(27721),s=i(48011),c=i(52290),k=i(86527),g=i(24960),p=i(36557),v=i(12378),S=i(72130),h=i(44402),N=["children","flag","text","renderFn","viewer","padding","placement","darkTheme","dismissText","onDismiss","preventParentClick","autoDismissFlag"],f=["children","flag","isVisible"];!function(e){e.CTA="CTA",e.DISMISSED="DISMISSED"}(a||(a={}));var b=function(e){var n=e.children,i=e.flag,m=e.text,u=e.renderFn,f=e.viewer,b=e.padding,F=void 0===b?16:b,E=e.placement,_=e.darkTheme,y=e.dismissText,A=void 0===y?"Got it":y,x=e.onDismiss,C=e.preventParentClick,T=e.autoDismissFlag,I=(0,d.A)(e,N),D=(0,S.$L)(),P=(0,r.useState)(!1),w=(0,t.A)(P,2),M=w[0],L=w[1],V=(0,r.useRef)(!1),R=(0,o.n)(s.x,{variables:{userId:f.id,flag:i}}),H=(0,t.A)(R,1)[0],O=(0,h.l)(),U=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.DISMISSED;L(!1),H(),x&&x(),V.current=!0,D.event("user.dismissedPopover",{flag:i,action:e})}),[M,x]);(0,r.useEffect)((function(){return L(!0)}),[]),(0,r.useEffect)((function(){if(T)return function(){V.current||H()}}),[]);var B=(0,r.useCallback)((function(){return r.createElement(c.a,{width:"200px",padding:(0,v.c)(F)},r.createElement(p.kZ,{scale:"S",color:"WHITE"},m),r.createElement(c.a,{marginTop:"8px"},r.createElement(p.kZ,{scale:"S",color:_?"WHITE":void 0},r.createElement(k.N,{onClick:function(e){C&&e.preventDefault(),U(a.DISMISSED)}},r.createElement("span",{className:O(g.j)},A)))))}),[U,F,m,C]);return r.createElement(g.A,(0,l.A)({disablePortalOverlay:!0,hide:U,isVisible:M,popoverRenderFn:u?u(U):B,darkTheme:!0,placement:E},I),n)},F=function(e){var n=e.children,i=e.flag,a=e.isVisible,t=void 0===a||a,o=(0,d.A)(e,f),s=(0,m.r)().isWorkingPreview,c=(0,u.R)().value;return s||null!=c&&c.dismissableFlags.includes(i)||!c||!t?n:r.createElement(b,(0,l.A)({flag:i,viewer:c},o),n)}},53612:(e,n,i)=>{i.d(n,{X:()=>t});var a=i(39181),l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserHasListQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"username"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userResult"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"username"},value:{kind:"Variable",name:{kind:"Name",value:"username"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",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:"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:"hasList"}}]}}]}}]}}]}}]},t=function(e){var n=e.id,i=void 0===n?"":n,t=e.username,d=void 0===t?"":t;return(0,a.I)(l,{variables:{id:i,username:d},skip:!i&&!d})}}}]);
|
|
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/1676.a57f3b03.chunk.js.map
|