/*! For license information please see 6594.8def288e.chunk.js.LICENSE.txt */ "use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[6594],{13377:(e,t,n)=>{n.d(t,{n:()=>u});var r=n(45458),i=n(91622),o=n(8075),a=n(25225),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHomepagePosts_user"},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:"useShowAuthorNewsletterV3Promo_user"}}]}}].concat((0,r.A)(i.V.definitions))},u={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHomepagePosts_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:"homepagePostsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paging"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"homepagePostsLimit"}}},{kind:"ObjectField",name:{kind:"Name",value:"from"},value:{kind:"Variable",name:{kind:"Name",value:"homepagePostsFrom"}}}]}},{kind:"Argument",name:{kind:"Name",value:"includeDistributedResponses"},value:{kind:"Variable",name:{kind:"Name",value:"includeDistributedResponses"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StreamPostPreview_post"}},{kind:"Field",name:{kind:"Name",value:"pinnedByCreatorAt"}},{kind:"Field",name:{kind:"Name",value:"pinnedAt"}}]}},{kind:"Field",name:{kind:"Name",value:"pagingInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"next"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"from"}},{kind:"Field",name:{kind:"Name",value:"limit"}}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"NewsletterV3Promo_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHomepagePosts_user"}}]}}].concat((0,r.A)(o.Y.definitions),(0,r.A)(a.JJ.definitions),(0,r.A)(l.definitions))}},90866:(e,t,n)=>{n.d(t,{e:()=>x});var r=n(82284),i=n(64467),o=n(10467),a=n(96540),l=n(5244),u=n(13846),c=n(27721),s=n(21335),d=n(30142),m=n(52290),h=n(28072),f=n(72130),v=n(49287),p=n(44929),g=n(86527),y=n(39160),k=n(46879),w=n(94644),b=function(e){var t=e.viewerIsPublisher,n=e.authorName,r=e.viewerBlockedAuthor,i=(0,y.d4)((function(e){return e.config.authDomain}));return t?a.createElement(a.Fragment,null,"Have something to share?"," ",a.createElement(p.D,{type:"link",href:(0,k.HUU)(i),inline:!0,linkStyle:"OBVIOUS"},"Write your first story.")):r?a.createElement(a.Fragment,null,(0,w.PK)(n)," stories are not available because you have blocked them."," ",a.createElement(g.N,{href:k.dZ2,inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"Learn more")):a.createElement(a.Fragment,null,n," hasn't written any stories yet.")},N=n(36557),S=function(e){var t=e.viewerIsPublisher,n=e.authorName,r=e.viewerBlockedAuthor;return a.createElement(m.a,{marginLeft:"auto",marginRight:"auto",paddingTop:"80px",textAlign:"center"},a.createElement(N.kZ,{scale:"L"},a.createElement(b,{viewerIsPublisher:t,authorName:n,viewerBlockedAuthor:r})))},E=n(35642);function P(){P=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",f="suspendedYield",v="executing",p="completed",g={};function y(){}function k(){}function w(){}var b={};s(b,l,(function(){return this}));var N=Object.getPrototypeOf,S=N&&N(N(V([])));S&&S!==n&&i.call(S,l)&&(b=S);var E=w.prototype=y.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function F(e,t){function n(o,a,l,u){var c=m(e[o],e,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==(0,r.A)(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,u)}),(function(e){n("throw",e,l,u)})):t.resolve(d).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,u)}))}u(c.arg)}var a;o(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function x(t,n,r){var i=h;return function(o,a){if(i===v)throw new Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var u=L(l,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=m(t,n,r);if("normal"===c.type){if(i=r.done?p:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function L(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=m(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function V(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:V(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t{n.d(t,{V:()=>r});var r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"useShowAuthorNewsletterV3Promo_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:"newsletterV3"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"showPromo"}},{kind:"Field",name:{kind:"Name",value:"slug"}}]}}]}}]}},13846:(e,t,n)=>{n.d(t,{F:()=>a});var r=n(96540),i=n(11321),o=n(21335),a=function(e){var t,n,a,l=(0,o.cd)(e),u=l.viewerEdge,c=l.loading,s=r.useRef(null),d=(0,i.h)({newsletterSlug:null==e||null===(t=e.newsletterV3)||void 0===t?void 0:t.slug,username:null==e?void 0:e.username}),m=d.viewerEdge,h=d.loading;return(a=null!==s.current?{value:s.current}:c||h?{loading:!0}:null!=e&&null!==(n=e.newsletterV3)&&void 0!==n&&n.showPromo?{value:!(!(null!=u&&u.isUser||null==m)&&m.isSubscribed)}:{value:!1}).loading||void 0===a.value||null!==s.current||(s.current=a.value),a}}}]); //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/6594.8def288e.chunk.js.map