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

2 lines
21 KiB
JavaScript

"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[8393],{23448:(e,n,t)=>{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},r.apply(null,arguments)}const o=function(e){return a.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:25,height:25,fill:"none",viewBox:"0 0 25 25"},e),i||(i=a.createElement("path",{fill:"currentColor",d:"M18 2.5a.5.5 0 0 1 1 0V5h2.5a.5.5 0 0 1 0 1H19v2.5a.5.5 0 1 1-1 0V6h-2.5a.5.5 0 0 1 0-1H18zM7 7a1 1 0 0 1 1-1h3.5a.5.5 0 0 0 0-1H8a2 2 0 0 0-2 2v14a.5.5 0 0 0 .805.396L12.5 17l5.695 4.396A.5.5 0 0 0 19 21v-8.5a.5.5 0 0 0-1 0v7.485l-5.195-4.012a.5.5 0 0 0-.61 0L7 19.985z"})))}},79766:(e,n,t)=>{t.d(n,{c:()=>r});var i=t(96540),a=t(39160);function r(e){var n=e.disabled,t=e.message,r=void 0===t?"Changes you made may not be saved.":t,o=(0,a.d4)((function(e){return e.client.hydrated}));i.useEffect((function(){if(!n&&o)return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)};function e(e){return e.preventDefault(),e.returnValue=r,r}}),[n,r,o])}},93948:(e,n,t)=>{t.d(n,{f:()=>ce});var i,a=t(58168),r=t(80045),o=t(80296),l=t(39181),d=t(96540),c=t(64467),s=t(45458),u=t(22554),v=t(11818),p=t(52290),g=t(86527),m=t(36557),f=t(44402),k=t(91830),b=t(30142),y=t(77662),h=t(53424),w=t(42976);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},C.apply(null,arguments)}const O=function(e){return d.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",width:10,height:13,fill:"none",viewBox:"0 0 10 13"},e),i||(i=d.createElement("path",{fill:"#A8A8A8",fillRule:"evenodd",d:"M2.727 3.082C2.727 1.905 3.74.935 5 .935s2.273.973 2.273 2.147v2.436H2.727zM8.19 5.518h-.007V3.082C8.182 1.378 6.747 0 5 0 3.252 0 1.818 1.373 1.818 3.082v2.436h-.007c-.48.002-.941.2-1.28.55S0 6.892 0 7.387v3.744c0 .246.045.489.136.715.09.227.224.433.392.607s.368.311.588.405.457.142.695.142h6.378c.48-.002.941-.2 1.28-.55s.53-.824.531-1.319V7.387c0-.246-.045-.489-.136-.715a1.9 1.9 0 0 0-.392-.607 1.8 1.8 0 0 0-.588-.405 1.8 1.8 0 0 0-.695-.142",clipRule:"evenodd"})))};var E=t(15371),P=t(5521);function I(e){var n,t,i=e.children,a=e.target,r=e.kind,l=e.catalog,c=e.viewer,s=d.useMemo((function(){if(l.predefined){var e,n=null===(e=a.viewerEdge.catalogsConnection)||void 0===e?void 0:e.predefinedContainingThis.find((function(e){return e.predefined===l.predefined}));return[!!n,null==n?void 0:n.catalogItemIds]}var t,i=null===(t=a.viewerEdge.catalogsConnection)||void 0===t?void 0:t.catalogsContainingThis.find((function(e){return e.catalogId===l.id}));return[!!i,null==i?void 0:i.catalogItemIds]}),[l.predefined,l.id,a.viewerEdge]),u=(0,o.A)(s,2),v=u[0],p=u[1],g=(0,P.EH)(c.id,l.id,l.version,a.id,r,null!==(n=l.predefined)&&void 0!==n?n:void 0),m=(0,o.A)(g,2),f=m[0],k=m[1].loading,b=(0,P.$O)(c.id,l.id,l.version,[{entityId:a.id,entityType:r,catalogItemIds:p||[]}],null!==(t=l.predefined)&&void 0!==t?t:void 0),y=(0,o.A)(b,2),h=y[0],w=y[1].loading;return i({toggleInsideCatalog:v?h:f,isInsideCatalog:v,loading:k||w})}var N={display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:"16px",paddingRight:"5px"},S=function(e){return{marginBottom:"1px","& path":{fill:e.colorTokens.border.neutral.secondary.base}}};function T(e){var n=e.catalog,t=e.target,i=e.kind,a=e.viewer,r=(0,f.l)();return d.createElement(I,{viewer:a,target:t,kind:i,catalog:n},(function(e){var t=e.toggleInsideCatalog,i=e.isInsideCatalog,a=e.loading,o=n.predefined?(0,E.cm)(n.predefined):n.name;return d.createElement("div",{className:r(N)},d.createElement(h.S,{key:n.id,checked:i,checkboxStyle:"OBVIOUS",onChange:t,disabled:a||n.visibility===w.y_.LOCKED,textScale:"L",clampText:1},o),n.visibility!==w.y_.PUBLIC&&d.createElement(p.a,{paddingLeft:"8px"},d.createElement(O,{className:r(S)})))}))}function j(e){var n=e.target,t=e.kind,i=e.catalogs,a=e.isLoading,r=e.viewer,o=e.fetchMore,l=e.scrollableEl;return a?d.createElement(p.a,{display:"flex",justifyContent:"center",padding:"40px 0"},d.createElement(m.kZ,{color:"DARKER",scale:"L",tag:"div"},d.createElement(y.k,null))):i?d.createElement(b.i,{fetchMore:o,scrollableEl:l},i.map((function(e){return d.createElement(T,{viewer:r,key:e.id,catalog:e,target:n,kind:t})}))):null}function A(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?A(Object(t),!0).forEach((function(n){(0,c.A)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x={maxHeight:"240px",overflowY:"auto",padding:"24px 20px 16px 24px"};function F(e){var n,t,i,a=e.target,r=e.kind,o=e.showCreateModal,c=e.hidePanel,b=e.viewer,y=e.addToPredefinedLoading,h=d.useRef(null),w=(0,f.l)(),C=(0,u.e1)({limit:u.eB,userId:b.id}),O=(0,k.zF)(),E=(0,l.I)(v.j,{variables:C,skip:y}),P=E.data,I=E.error,N=E.loading,S=E.fetchMore,T=y||N;d.useEffect((function(){I&&O({toastStyle:"RETRYABLE_ERROR",duration:4e3})}),[I]);var A,F=d.useCallback((function(){o(),c()}),[o,c]),V=null==P?void 0:P.catalogsByUser.catalogs;return V&&"Catalog"===(null==P||null===(n=P.readingList)||void 0===n?void 0:n.__typename)&&(V=[P.readingList].concat((0,s.A)(V))),null!=P&&null!==(t=P.catalogsByUser)&&void 0!==t&&null!==(i=t.paging)&&void 0!==i&&i.nextPageCursor&&(A=function(){return S({variables:D(D({},C),{},{pagingOptions:D(D({},C.pagingOptions),{},{cursor:{id:P.catalogsByUser.paging.nextPageCursor.id}})})})}),d.createElement(p.a,{width:"300px"},d.createElement("div",{className:w(x),ref:h},d.createElement(j,{target:a,kind:r,viewer:b,catalogs:V,isLoading:T,fetchMore:A,scrollableEl:h.current})),!T&&d.createElement(p.a,{borderTop:"neutral.primary",padding:"20px 24px 24px"},d.createElement(m.kZ,{color:"ACCENT",scale:"L"},d.createElement(g.N,{onClick:F},"Create new list"))))}var V=t(86595),B=t(88055),L=t.n(B),_=t(95420),R=t(678),M=t(72130),H=t(97249),U=t(20631);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,c.A)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var K,q="temp-catalog-id",Q=t(24960),Y=t(85864),$=t(60603),Z=t(94405);function W(){return W=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},W.apply(null,arguments)}const X=function(e){return d.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),K||(K=d.createElement("path",{fill:"#000",d:"M17.5 1.25a.5.5 0 0 1 1 0v2.5H21a.5.5 0 0 1 0 1h-2.5v2.5a.5.5 0 0 1-1 0v-2.5H15a.5.5 0 0 1 0-1h2.5zm-11 4.5a1 1 0 0 1 1-1H11a.5.5 0 0 0 0-1H7.5a2 2 0 0 0-2 2v14a.5.5 0 0 0 .8.4l5.7-4.4 5.7 4.4a.5.5 0 0 0 .8-.4v-8.5a.5.5 0 0 0-1 0v7.48l-5.2-4a.5.5 0 0 0-.6 0l-5.2 4z"})))};var J;function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ee.apply(null,arguments)}const ne=function(e){return d.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),J||(J=d.createElement("path",{fill:"#000",d:"M7.5 3.75a2 2 0 0 0-2 2v14a.5.5 0 0 0 .8.4l5.7-4.4 5.7 4.4a.5.5 0 0 0 .8-.4v-14a2 2 0 0 0-2-2z"})))};var te=function(e){return{"& path":{fill:e.colorTokens.border.neutral.secondary.base}}},ie=function(e){return{"& path":{fill:e.colorTokens.foreground.neutral.primary.hover}}},ae=function(){var e=(0,f.l)();return d.createElement(X,{className:e(te)})},re=function(){var e=(0,f.l)();return d.createElement(ne,{className:e(ie)})};function oe(e){return e.insideACatalog?d.createElement(re,null):d.createElement(ae,null)}var le=["viewer","defaultToBookmarkIcon"];function de(e){var n=e.children,t=e.isPanelVisible,i=e.hidePanel,a=e.togglePanel,r=e.target,l=e.kind,c=e.viewer,s=e.bookmarkIcon,u=e.isInACatalog,v=e.isInReadingList,p=e.catalogsCount,g=e.popoverDisplay,m=(0,$.e)(!1),f=(0,o.A)(m,3),k=f[0],b=f[1],y=f[2],h=function(e,n,t,i){var a=(0,M.$L)(),r=(0,_.n)(U.M,{variables:{type:n,operation:{preprend:{type:i,id:t}}},optimisticResponse:{addToPredefinedCatalog:{__typename:"AddToPredefinedCatalogSucces",version:P.Xj,insertedItem:{__typename:"CatalogItemV2",catalogId:q,catalogItemId:P.ue}}},onCompleted:function(e){if("AddToPredefinedCatalogSucces"===e.addToPredefinedCatalog.__typename&&i===w.Bd.POST){var n=e.addToPredefinedCatalog.insertedItem;a.event("post.addToList",{listId:n.catalogId,postId:n.catalogItemId})}},update:function(a,r){var o,l=null===(o=r.data)||void 0===o?void 0:o.addToPredefinedCatalog;if("AddToPredefinedCatalogSucces"===(null==l?void 0:l.__typename)){var d,c,s=l.insertedItem,u=l.version;if(s.catalogId!==q&&((0,R.eq)(a,s.catalogId,u),(0,R.VP)(a,s.catalogId,[s.catalogItemId],i)),i===w.Bd.POST){d="PostViewerEdge:".concat((0,H.N)(t,e)),c=U.W;var v=a.readFragment({id:d,fragment:c});if(null!=v&&v.catalogsConnection){var p=L()(v.catalogsConnection.predefinedContainingThis),g=p.findIndex((function(e){return e.predefined===n}));if(-1!==g)p[g].catalogItemIds.push(s.catalogItemId);else{var m={catalogId:s.catalogId,predefined:n,version:u,catalogItemIds:[s.catalogItemId]};p.push(m)}a.writeFragment({id:d,fragment:c,data:G(G({},v),{},{catalogsConnection:G(G({},v.catalogsConnection),{},{predefinedContainingThis:p})})})}}}}}),l=(0,o.A)(r,2);return{addToPredefined:l[0],addToPredefinedLoading:l[1].loading}}(c.id,w.cA.READING_LIST,r.id,l),C=h.addToPredefined,O=h.addToPredefinedLoading,E=d.useCallback((function(){a(),v||u||C()}),[a,u,v,C]);return d.createElement(Q.A,{isVisible:t,popoverRenderFn:function(){return d.createElement(F,{showCreateModal:b,hidePanel:i,target:r,kind:l,viewer:c,addToPredefinedLoading:O})},hide:i,targetDistance:15,display:g},d.createElement(V.a,{isVisible:k,hide:y,target:r,kind:l,viewer:c}),null==n?void 0:n({onClick:E,bookmarkIcon:s,catalogsCount:p,isPanelVisible:t}))}function ce(e){var n,t,i,o=e.viewer,c=e.defaultToBookmarkIcon,s=(0,r.A)(e,le),u=d.useMemo((function(){return s.kind===w.Bd.POST?{postId:s.target.id,isPostKind:!0}:{postId:"",isPostKind:!1}}),[s.kind,s.target]),v=(0,l.I)(Z.jq,{ssr:!1,variables:u}).data,p=null,g=null;"Post"===(null==v||null===(n=v.postResult)||void 0===n?void 0:n.__typename)&&(p=v.postResult.viewerEdge.catalogsConnection,g=v.postResult);var m=(null===(t=p)||void 0===t?void 0:t.catalogsContainingThis)&&p.catalogsContainingThis.length>0,f=d.useMemo((function(){var e,n;return!!(null===(e=p)||void 0===e||null===(n=e.predefinedContainingThis)||void 0===n?void 0:n.find((function(e){return e.predefined===w.cA.READING_LIST})))}),[p]),k=d.useMemo((function(){var e;return((null===(e=p)||void 0===e?void 0:e.catalogsContainingThis.length)||0)+(f?1:0)}),[null===(i=p)||void 0===i?void 0:i.catalogsContainingThis.length,f]),b=d.createElement(oe,{insideACatalog:!!m||f});return u.isPostKind?o&&p&&g?d.createElement(Y.B,null,(function(e){var n=e.isVisible,t=e.toggle,i=e.hide;return d.createElement(de,(0,a.A)({},s,{target:g,viewer:o,isPanelVisible:n,togglePanel:t,hidePanel:i,bookmarkIcon:b,isInACatalog:!!m,isInReadingList:f,catalogsCount:k}))})):c||!s.children?b:s.children({onClick:function(){return null},bookmarkIcon:b,catalogsCount:k,isPanelVisible:!1,isDisabled:!0}):null}},62464:(e,n,t)=>{t.d(n,{Q:()=>w});var i=t(58168),a=t(80045),r=t(64467),o=t(96540),l=t(27721),d=t(43634),c=t(28993),s=t(5600),u=t(44402),v=t(42976),p=t(23448),g=t(93948),m=["susiEntry","susiActionUrl","rules","testId","targetDistance"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}var k=function(e){return{color:e.colorTokens.foreground.neutral.secondary.base,"&:hover":{color:e.colorTokens.foreground.neutral.primary.hover}}},b=function(e,n){return function(t){var i=t.colorTokens.foreground.neutral.primary.hover,a=t.colorTokens.foreground.neutral.secondary.base;return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.A)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({padding:"8px 2px",":hover:not(:disabled) svg path":{fill:n?a:i},":focus svg path":{fill:n?a:i},cursor:n?"not-allowed":"pointer",opacity:n?.3:void 0,"& svg path":{fill:a}},e)}},y="Add to list bookmark button",h=function(e){var n=e.bookmarkIcon,t=e.onClick,i=e.isPanelVisible,a=e.rules,r=e.disabled,l=e.testId;return o.createElement(c.P,{ariaControls:"addToCatalogBookmarkButton",ariaLabel:y,ariaExpanded:i?"true":"false",onClick:t,rules:b(a),disabled:r,testId:l},n)};function w(e){var n=e.susiEntry,t=void 0===n?"list":n,r=e.susiActionUrl,c=e.rules,f=e.testId,w=e.targetDistance,C=void 0===w?10:w,O=(0,a.A)(e,m),E=(0,u.l)(),P=(0,l.R)().value,I=O.kind===v.Bd.POST,N=I?O.target.isPublished:void 0;return I&&!N?o.createElement(s.G,{placement:"top",targetDistance:C,tooltipText:"You cannot Save a draft"},o.createElement("div",{className:E(b(c,!0)),"data-testid":f},o.createElement(p.A,{className:E(k),"aria-label":y,disabled:!0}))):P?o.createElement(s.G,{placement:"top",targetDistance:C,tooltipText:"Save"},o.createElement(g.f,(0,i.A)({},O,{viewer:P}),(function(e){var n=e.onClick,t=e.bookmarkIcon,i=e.isPanelVisible,a=e.isDisabled;return o.createElement(h,{bookmarkIcon:t,onClick:n,isPanelVisible:i,rules:c,disabled:a,testId:f})}))):o.createElement(s.G,{placement:"top",targetDistance:C,tooltipText:"Save"},o.createElement(d.r,{operation:"register",susiEntry:t,actionUrl:r,testId:f,post:I?O.target:void 0},o.createElement(p.A,{className:E([k,c]),"aria-label":y})))}},96783:(e,n,t)=>{t.d(n,{T:()=>d});var i=t(96540),a=t(62464),r=t(42976),o=t(39160),l=t(46879);function d(e){var n=e.post,t=e.susiEntry,d=e.rules,c=e.targetDistance,s=e.testId,u=n.id,v=n.visibility,p=(0,o.d4)((function(e){return e.config.authDomain}));return v===r.dL.UNLISTED?null:i.createElement(a.Q,{kind:r.Bd.POST,target:n,rules:d,susiEntry:t,susiActionUrl:(0,l.are)(p,u),targetDistance:c,testId:s})}},1491:(e,n,t)=>{t.d(n,{f:()=>u});var i=t(64467),a=t(80296),r=t(95420),o=t(96540),l=t(97249),d=t(80721);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,i.A)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var u=function(){var e=(0,r.n)(d.w$),n=(0,a.A)(e,1)[0];return(0,o.useCallback)((function(e,t,i,a){var r;return n({variables:{targetPostId:e.id,userId:t,numClaps:i},optimisticResponse:{clap:s(s({__typename:"Post"},e),{},{clapCount:(null!==(r=e.clapCount)&&void 0!==r?r:0)+i,viewerEdge:{__typename:"PostViewerEdge",id:(0,l.N)(e.id,t),clapCount:i}})},update:function(n,r){var o,d=null==r||null===(o=r.data)||void 0===o?void 0:o.clap;d&&(n.modify({id:"Post:".concat(d.id),fields:{clapCount:function(){var n;return(null!==(n=e.clapCount)&&void 0!==n?n:0)+i}}}),n.modify({id:"PostViewerEdge:".concat((0,l.N)(d.id,t)),fields:{clapCount:function(){return((null==a?void 0:a.clapCount)||0)+i}}}))}})}),[])}},11517:(e,n,t)=>{t.d(n,{N:()=>o});var i=t(39181),a=t(69547),r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ClapCountQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeFirstBoostedAt"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"postResult"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],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:"id"}},{kind:"Field",name:{kind:"Name",value:"clapCount"}},{kind:"Field",name:{kind:"Name",value:"firstBoostedAt"},directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeFirstBoostedAt"}}}]}]}]}}]}}]}}]},o=function(e){var n=e.post.id,t=e.includeFirstBoostedAt,o=void 0!==t&&t,l=(0,i.I)(r,{fetchPolicy:"network-only",nextFetchPolicy:"cache-first",ssr:!1,variables:{postId:n,includeFirstBoostedAt:o}}),d=l.data,c=l.loading,s=null==d?void 0:d.postResult;return d&&(0,a.t)(s)?{clapCount:s.clapCount,clapCountLoading:c,firstBoostedAt:s.firstBoostedAt}:{clapCount:null,clapCountLoading:c,firstBoostedAt:void 0}}},74938:(e,n,t)=>{t.d(n,{q:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"auroraHooks_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:"isAuroraEligible"}},{kind:"Field",name:{kind:"Name",value:"isAuroraVisible"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isEditor"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isAuroraVisible"}}]}}]}}]}},1722:(e,n,t)=>{t.d(n,{h:()=>r});var i=t(39181),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PostViewerEdgeQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},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:"clapCount"}},{kind:"Field",name:{kind:"Name",value:"readingList"}},{kind:"Field",name:{kind:"Name",value:"shareKey"}},{kind:"Field",name:{kind:"Name",value:"creatorPartnerProgramEnrollmentStatus"}}]}}]}}]}}]}}]},r=function(e){var n,t=(0,i.I)(a,{variables:{postId:(null==e?void 0:e.id)||""},ssr:!1,skip:!(null!=e&&e.id)}),r=t.loading,o=t.error,l=t.data;return r?{loading:r}:o?{error:o}:{viewerEdge:null==l||null===(n=l.post)||void 0===n?void 0:n.viewerEdge}}},65550:(e,n,t)=>{t.d(n,{L:()=>o});var i=t(80296),a=t(96540),r=t(61333),o=function(){var e=a.useState(!1),n=(0,i.A)(e,2),t=n[0],o=n[1];return a.useEffect((function(){o((0,r.Gz)(navigator.userAgent))}),[]),t}},51771:(e,n,t)=>{function i(e,n,t){return!!n&&e[n.id]||{clapCount:(null==n?void 0:n.clapCount)||0,viewerClapCount:(null==t?void 0:t.clapCount)||0,viewerHasClappedSinceFetch:!1}}t.d(n,{F:()=>i})}}]);
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/8393.826a25fb.chunk.js.map