orgmode-to-gemini-blog/exports/html/Récapitulatif de mon contenu twitter - Dragonfeu - Medium_fichiers/6594.8def288e.chunk.js
2024-11-03 11:06:34 +01:00

3 lines
13 KiB
JavaScript

/*! 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<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError((0,r.A)(t)+" is not iterable")}return k.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:k,configurable:!0}),k.displayName=s(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},O(F.prototype),s(F.prototype,u,(function(){return this})),t.AsyncIterator=F,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new F(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(E),s(E,c,"Generator"),s(E,l,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=V,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;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<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e){var t=e.publisher,n=e.fetchMore,r=(0,f.$L)(),i=(0,v.Fo)(),p=(0,c.R)().value,g=(0,s.cd)({id:(null==t?void 0:t.id)||""}).viewerEdge,y=!(null==g||!g.isBlocking),k=(null==p?void 0:p.id)===t.id,w=t.homepagePostsConnection,b=null==w?void 0:w.posts,N="User"===t.__typename,O=N?t:null,x=(0,u.F)(O),L=a.useCallback((0,o.A)(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(N||r.event("collection.loadMore",{source:F(F({},i),{},{collectionId:t.id})}),n){e.next=3;break}return e.abrupt("return",null);case 3:return e.abrupt("return",n());case 4:case"end":return e.stop()}}),e)}))),[n]);return b?null!=b&&b.length||!N?a.createElement(m.a,{padding:"8px 0"},a.createElement(d.i,{fetchMore:n?L:null},b.map((function(e,n){var r=x.value&&(1===n||1===(null==b?void 0:b.length)),i="User"===(null==t?void 0:t.__typename)?!!e.pinnedByCreatorAt:!!e.pinnedAt;return a.createElement(h.P,{size:"app",key:"".concat(e.id,"-").concat(r)},a.createElement(m.a,{marginTop:n?"32px":void 0,width:"100%"},a.createElement(E.$,{post:e,index:n,showPinned:i,showCollectionName:N,scale:{xs:"M",sm:"M",md:"L",lg:"L",xl:"L"},showCollectionBylineOnly:N,trackingV2:!0},r&&a.createElement(m.a,{marginTop:"56px",marginBottom:"7px"},a.createElement(l.U,{publisher:t})))))})))):a.createElement(S,{viewerIsPublisher:k,authorName:t.name,viewerBlockedAuthor:y}):null}},91622:(e,t,n)=>{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