2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[3561],{10974:(e,n,t)=>{t.d(n,{T:()=>m,e:()=>d});var a=t(96540),i=t(60213),l=t(64122),o=t(86527),r=t(36557),c=t(27715),d=function(e){var n,t,a=null!==(n="Collection"===e.__typename?e.subscriberCount:null===(t=e.socialStats)||void 0===t?void 0:t.followerCount)&&void 0!==n?n:0;return{followerCount:a,isFollowerCountVisible:a>0}},m=function(e){var n=e.disableLink,t=void 0!==n&&n,m=e.scale,s=void 0===m?"L":m,u=e.publisher,k=e.color,p=e.linkStyle,v=void 0===p?"SUBTLE":p,f=e.inline,N=e.showWhenZero,S=(0,i.u)(),w=(0,l.W)(),h=d(u),g=h.followerCount,F=h.isFollowerCountVisible;if(!N&&!F)return null;var y="".concat((0,c.Ct)(g)," Follower").concat(1===g?"":"s");return a.createElement(r.kZ,{playwrightClassName:"pw-follower-count",tag:"span",scale:s,color:k},g>0&&!t?a.createElement(o.N,{href:"".concat("Collection"===u.__typename?S(u):w(u),"/followers"),linkStyle:v,inline:f},y):y)}},39931:(e,n,t)=>{t.d(n,{p:()=>l});var a=t(60213),i=t(64122),l=function(e){var n=(0,a.u)(),t=(0,i.W)();return"Collection"===e.__typename?n(e):"User"===e.__typename?t(e):""}},7541:(e,n,t)=>{t.d(n,{j:()=>o});var a=t(45458),i=t(82567),l=t(77485),o={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)(i.$.definitions),(0,a.A)(l.R.definitions))}},26073:(e,n,t)=>{t.d(n,{K:()=>o});var a=t(96540),i=t(28899),l=t(23393),o=function(e){var n=e.link,t=void 0!==n&&n,o=e.scale,r=void 0===o?"M":o,c=e.publisher;switch(c.__typename){case"User":return a.createElement(l.H8,{link:t,scale:r,user:c});case"Collection":return a.createElement(i.u,{link:t,size:l.eV[r],collection:c});default:return null}}},8686:(e,n,t)=>{t.d(n,{W:()=>o});var a=t(45458),i=t(52897),l=t(27830),o={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)(i.l.definitions),(0,a.A)(l.E.definitions))}},34075:(e,n,t)=>{var a;t.d(n,{B:()=>a}),function(e){e.Overview="overview",e.Latest="latest",e.Series="series",e.Claps="has-recommended",e.Highlights="highlights",e.Responses="responses"}(a||(a={}))},27830:(e,n,t)=>{t.d(n,{E:()=>l});var a=t(45458),i=t(53301),l={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)(i.oY.definitions),(0,a.A)(i.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"}}]}}]}}]))}},91339:(e,n,t)=>{t.d(n,{G:()=>o,P:()=>l});var a=t(45458),i=t(59265),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserProfileMetadataHelmet_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"Field",name:{kind:"Name",value:"twitterScreenName"}},{kind:"Field",name:{kind:"Name",value:"navItems"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}}]}}]}}]},o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserProfileMetadata_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:"name"}},{kind:"Field",name:{kind:"Name",value:"bio"}},{kind:"Field",name:{kind:"Name",value:"socialStats"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"followerCount"}},{kind:"Field",name:{kind:"Name",value:"followingCount"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserProfileMetadataHelmet_user"}}]}}].concat((0,a.A)(i.v0.definitions),(0,a.A)(l.definitions))}},54119:(e,n,t)=>{t.d(n,{D:()=>k,y:()=>u});var a=t(96540),i=t(80545),l=t(34075),o=t(51260),r=t(39160),c=t(90383),d=t(27715),m=t(46879),s=150;function u(e){var n,t,i,c,u=e.tab,p=e.user,v=p.username,f=p.socialStats,N=p.customDomainState,S=p.name,w=p.bio,h=(0,r.d4)((function(e){return e.config.authDomain})),g=(0,r.d4)((function(e){return e.config.productName})),F=(0,o.om)();S=S||"Unknown",(w=w||"")&&(w=w.match(/\.$/)?w:"".concat(w,"."));var y=null;switch(u){case l.B.Series:t="Series written by ".concat(S," – ").concat(g),i="Read the latest series written by ".concat(S," on ").concat(g,". ").concat(w),c=v?(0,m.O6f)(v):null;break;case l.B.Claps:t="Stories ".concat(S," clapped for – ").concat(g),i="Discover all stories ".concat(S," clapped for on ").concat(g,". ").concat(w),c=v?(0,m.ce9)(v):null;break;case l.B.Highlights:t="Story highlights by ".concat(S," – ").concat(g),i="Read all highlights by ".concat(S," on ").concat(g,". ").concat(w),c=v?(0,m.eAi)(v):null;break;case l.B.Responses:t="Responses – ".concat(S," – ").concat(g),i="Responses published by ".concat(S," on ").concat(g,". ").concat(w),c=v?(0,m.D5P)(v):null;break;default:case l.B.Overview:t="".concat(S," – ").concat(g),(i="Read writing from ".concat(S," on ").concat(g,". ").concat(w)).length<s&&(i="".concat(i," Every day, ").concat(S," and thousands of other voices read, write, and share important stories on ").concat(g,".")),c=v?"/@".concat(v):null,null!=N&&null!==(n=N.live)&&void 0!==n&&n.domain&&(y=(0,m.EpC)(p,h));break;case"about":t="About – ".concat(S," – ").concat(g),i="About ".concat(S," on ").concat(g,". ").concat(w),c=v?(0,m.sl6)(v):null;break;case"followers":var b=null!=f&&f.followerCount?(0,d.fw)(f.followerCount):0;t="People following ".concat(S),i="".concat(b," people follow ").concat(S," on ").concat(g,"."),c=v?(0,m.Eol)(v):null;break;case"following":var E=null!=f&&f.followingCount?(0,d.fw)(f.followingCount):0;t="People followed by ".concat(S),i="".concat(S," follows ").concat(E," people on ").concat(g,"."),c=v?(0,m.QI8)(v):null;break;case"books":t="Books – ".concat(S," – ").concat(g),i="Books by ".concat(S," on ").concat(g),c=v?F("ShowUserBooks",{username:v}):null}return a.createElement(k,{user:p,path:c,url:y,title:t,description:i})}var k=function(e){var n=e.user,t=e.path,l=e.url,o=e.title,d=e.description,s=(0,r.d4)((function(e){return e.config.authDomain})),u=n.username,k=n.imageId,p=n.twitterScreenName,v=n.navItems,f=n.name;f=f||"Unknown";var N="https://".concat(s).concat(t);null!==t&&null===l&&(l=N);var S=t?"medium:/".concat(t):null,w=t?"medium:/".concat(t):null,h=k?(0,c.rP)({miroId:k,width:1200,strategy:c.qY.Resample,height:NaN}):null,g=f.split(" "),F=1===g.length?f:g[0],y=g.length>1?g.slice(1).join(" "):null;return a.createElement(i.mg,null,a.createElement("title",null,o),a.createElement("meta",{property:"og:title",content:o}),a.createElement("meta",{name:"description",content:d}),a.createElement("meta",{property:"og:description",content:d}),a.createElement("meta",{name:"twitter:description",content:d}),v&&0===v.length?a.createElement("meta",{name:"robots",content:"noindex,follow"}):null,l?a.createElement("link",{rel:"canonical",href:l}):null,l?a.createElement("meta",{property:"og:url",content:l}):null,l?a.createElement("meta",{property:"al:web:url",content:l}):null,S?a.createElement("meta",{property:"al:ios:url",content:S}):null,S?a.createElement("meta",{name:"twitter:app:url:iphone",content:S}):null,w?a.createElement("meta",{property:"al:android:url",content:w}):null,l?a.createElement("link",{rel:"alternate",href:(0,m.pNp)(N)}):null,t?a.createElement("link",{id:"feedLink",rel:"alternate",type:"application/rss+xml",title:"RSS",href:"https://medium.com/feed".concat(t)}):null,h?a.createElement("meta",{property:"og:image",content:h}):null,h?a.createElement("meta",{name:"twitter:image:src",content:h}):null,p?a.createElement("link",{rel:"me",href:"https://twitter.com/".concat(p)}):null,u?a.createElement("meta",{property:"profile:username",content:u}):null,F?a.createElement("meta",{property:"profile:first_name",content:F}):null,y?a.createElement("meta",{property:"profile:last_name",content:y}):null,a.createElement("meta",{property:"og:type",content:"profile"}),a.createElement("meta",{name:"twitter:card",content:"summary"}))}}}]);
|
||
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/3561.c365f1ea.chunk.js.map
|