2 lines
8.3 KiB
JavaScript
2 lines
8.3 KiB
JavaScript
"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[1781],{1422:(e,n,i)=>{i.d(n,{I:()=>l});var a=i(45458),t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CatalogCovers_catalogEntity"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CatalogEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CatalogCover_catalogEntity"}}]}}].concat((0,a.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"CatalogCover_catalogEntity"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CatalogEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"previewImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"alt"}}]}}]}}]}}]))},d=i(59265),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CatalogPreview_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"postItemsCount"}},{kind:"Field",name:{kind:"Name",value:"predefined"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"username"}}]}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"followersCount"}}]}},{kind:"Field",name:{kind:"Name",value:"itemsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"pagingOptions"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"5"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogItemId"}},{kind:"Field",name:{kind:"Name",value:"entity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CatalogCovers_catalogEntity"}}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"catalogUrl_catalog"}}]}}].concat((0,a.A)(t.definitions),(0,a.A)(d.Rm.definitions))}},85259:(e,n,i)=>{i.d(n,{W:()=>h});var a=i(55127),t=i.n(a),d=i(96540),l=i(52290),o=i(44402),m=i(90280),r=i(77865),k=i(20239),s=i(90383),c=function(e){var n,i,a=e.entity,t=e.size,o=(0,k.D)(),c="".concat(t,"px");return i="Post"===(null==a?void 0:a.__typename)&&null!==(n=a.previewImage)&&void 0!==n&&n.id?d.createElement(m.pg,{miroId:a.previewImage.id,alt:a.previewImage.alt||"",width:t,height:t,strategy:s.qY.Crop,loading:r.u.LAZY}):d.createElement(l.a,{height:c,width:c,background:o.colorTokens.background.neutral.quaternary.base},d.createElement(l.a,{borderRadius:"50%",width:"100%",height:"100%",background:o.colorTokens.foreground.neutral.secondary.base})),d.createElement(l.a,{borderRadius:"2px",height:c,overflow:"hidden"},i)},u=function(e,n){return function(i){var a=.75*n,t=1===e?"-".concat(.5*n,"px"):2===e?"-".concat(a,"px"):void 0;return{position:"relative",borderRadius:"2px",borderRight:e<2?"".concat(3,"px solid ").concat(i.colorTokens.background.neutral.tertiary.base):void 0,backgroundColor:i.colorTokens.background.neutral.tertiary.base,zIndex:3-e,marginLeft:t}}},v=function(e){var n=e.entities,i=e.size,a=(0,o.l)(),t=3*(i+3)-.5*i-.75*i;return d.createElement(l.a,{display:"flex",overflow:"hidden",width:"".concat(t,"px"),borderRadius:"0 3px 3px 0",position:"relative",flexShrink:"0"},n.slice(0,3).map((function(e,n){return d.createElement("div",{key:n,className:a(u(n,i))},d.createElement(c,{entity:e,size:i}))})))},N=i(85764),p=i(5562),S=i(86527),g=i(56942),F=i(39),f=i(39160),y=i(15371),b=i(46879),C={display:"flex",marginBottom:"16px",alignItems:"flex-start"},h=function(e){var n=e.catalog,i=e.titleMargin,a=(0,o.l)(),m=(0,f.d4)((function(e){return e.config.authDomain})),r=(0,F.Z)({name:"detail",scale:"S",color:"LIGHTER"}),k=(0,b.n1u)(n,m),s=n.itemsConnection.items.map((function(e){return e.entity})),c=n.viewerEdge.followersCount;return d.createElement(S.N,{href:k,rules:C},d.createElement(v,{entities:s,size:48}),d.createElement(l.a,{marginLeft:"16px"},d.createElement(g.DZ,{clamp:2,scale:"XS"},n.predefined?(0,y.cm)(n.predefined):n.name),d.createElement("div",{className:a([r,{display:"flex",marginTop:i}])},(0,N.b5)(n),c?d.createElement(d.Fragment,null,d.createElement(p.d,{margin:"0 8px"}),c," ",t()("save",c)):null)))}},33487:(e,n,i)=>{i.d(n,{l:()=>a});var a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherName_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},7541:(e,n,i)=>{i.d(n,{j:()=>l});var a=i(45458),t=i(82567),d=i(77485),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherAvatar_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:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionAvatar_collection"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}}]}}]}}].concat((0,a.A)(t.$.definitions),(0,a.A)(d.R.definitions))}},8686:(e,n,i)=>{i.d(n,{W:()=>l});var a=i(45458),t=i(52897),d=i(27830),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FollowAndSubscribeButtons_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserFollowButton_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserSubscribeButton_user"}}]}}].concat((0,a.A)(t.l.definitions),(0,a.A)(d.E.definitions))}},27830:(e,n,i)=>{i.d(n,{E:()=>d});var a=i(45458),t=i(53301),d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserSubscribeButton_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:"isPartnerProgramEnrolled"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isFollowing"}},{kind:"Field",name:{kind:"Name",value:"isUser"}}]}},{kind:"Field",name:{kind:"Name",value:"viewerIsUser"}},{kind:"Field",name:{kind:"Name",value:"newsletterV3"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useNewsletterV3Subscription_newsletterV3"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"useNewsletterV3Subscription_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MembershipUpsellModal_user"}}]}}].concat((0,a.A)(t.oY.definitions),(0,a.A)(t.fh.definitions),(0,a.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"MembershipUpsellModal_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:"name"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"Field",name:{kind:"Name",value:"postSubscribeMembershipUpsellShownAt"}},{kind:"Field",name:{kind:"Name",value:"newsletterV3"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]))}}}]);
|
|
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/1781.db373833.chunk.js.map
|