orgmode-to-gemini-blog/exports/html/L’aventure Superphénix🔥. Superphénix… s’il est un réacteur… _ by Dragonfeu _ Medium_fichiers/3735.afb7e926.chunk.js
2024-11-03 11:06:34 +01:00

2 lines
19 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[3735],{16647:(e,t,n)=>{n.d(t,{h:()=>g});var i=n(64467),r=n(80296),l=n(55364),o=n.n(l),a=n(95420),s=n(96540),u=n(75636),c=n(11321),d=n(21335),m=n(72130),b=n(49287),v=n(91830),p=n(53301),w=n(99766);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=function(e){var t=e.newsletterV3,n=e.creator,i=e.newsletterName,l=e.hideLinkInConfirmationToast,f=void 0!==l&&l,g=t||{},S=g.id,E=g.type,k=g.slug,y=g.collection,V=(null==t?void 0:t.user)||n,N=null!=i?i:null==t?void 0:t.name,O=s.useState(!1),x=(0,r.A)(O,2),T=x[0],A=x[1],P=(0,c.h)({newsletterSlug:k,collectionSlug:null==y?void 0:y.slug,username:null==V?void 0:V.username}),C=P.viewerEdge,D=P.loading,R=(0,u.z)({name:"enable_auto_follow_on_subscribe",placeholder:!1}),M=s.useState(!1),U=(0,r.A)(M,2),I=U[0],F=U[1];s.useEffect((function(){F(!(null==C||!C.isSubscribed))}),[null==C?void 0:C.isSubscribed]);var j=(0,m.$L)(),_=(0,b.jI)(),B=(0,v.zF)();T&&j.event("newsletterV3.subscribe.error",{newsletterV3Id:S});var L=function(e,t,n){if(n){var i={id:"User:".concat(null==V?void 0:V.id),fragment:p.fh,fragmentName:"useNewsletterV3Subscription_user"},r=e.readFragment(i);r&&e.writeFragment(h(h({},i),{},{data:h(h({},r),{},{newsletterV3:n})}))}if(C){var l=e.readQuery({query:w.k,variables:{newsletterSlug:k||"",collectionSlug:(null==y?void 0:y.slug)||null,username:(null==V?void 0:V.username)||null}}),a=o()({},l,{newsletterV3:{viewerEdge:{isSubscribed:t}}});e.writeQuery({query:w.k,variables:{newsletterSlug:k||"",collectionSlug:(null==y?void 0:y.slug)||null,username:(null==V?void 0:V.username)||null},data:a})}t&&null!=V&&V.id&&R&&(0,d.YG)(e,V.id,{isFollowing:!0})},z=(0,a.n)(p.yS,{optimisticResponse:{subscribeNewsletterV3:!0},onCompleted:function(e){var t=e.subscribeNewsletterV3;A(!t),t&&(j.event("newsletterV3.subscribeClicked",{newsletterV3Id:S,source:_}),F(!0))},update:function(e){L(e,!0)}}),G=(0,r.A)(z,1)[0],W=(0,a.n)(p.H$,{optimisticResponse:{unsubscribeNewsletterV3:!0},onCompleted:function(e){var t=e.unsubscribeNewsletterV3;A(!t),t&&(F(!1),B({duration:f?5e3:"NEXTPAGE",toastStyle:"NEWSLETTER_UNSUBSCRIBE",extraParams:{newsletterName:N||null,newsletterType:E||null,unsubscribeFn:function(){return F(!1)},hideEmailSettingsLink:f,hideCloseButton:f}}))},update:function(e){L(e,!1)}}),H=(0,r.A)(W,1)[0],$=(0,a.n)(p.vw,{onCompleted:function(e){var t=e.fetchOrLazilyCreateNewsletterV3AndMaybeSubscribe;A(!t),t&&(j.event("newsletterV3.subscribeClicked",{newsletterV3Id:t.id,source:_}),F(!0))},update:function(e,t){var n,i=h({},null===(n=t.data)||void 0===n?void 0:n.fetchOrLazilyCreateNewsletterV3AndMaybeSubscribe);L(e,!0,i)}}),q=(0,r.A)($,1)[0];return{isSubscribed:I,hasError:T,setSubscribe:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];A(!1),e&&!t&&null!=n&&n.id?q({variables:{userId:null==n?void 0:n.id}}):e&&null!=t&&t.id?G({variables:{newsletterV3Id:null==t?void 0:t.id,shouldRecordConsent:i}}):null!=t&&t.id?H({variables:{newsletterV3Id:null==t?void 0:t.id}}):A(!0)},loading:D}}},99766:(e,t,n)=>{n.d(t,{k:()=>r});var i=n(45458),r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"NewsletterV3ViewerEdge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"newsletterSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionSlug"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"username"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newsletterV3"},arguments:[{kind:"Argument",name:{kind:"Name",value:"newsletterSlug"},value:{kind:"Variable",name:{kind:"Name",value:"newsletterSlug"}}},{kind:"Argument",name:{kind:"Name",value:"collectionSlug"},value:{kind:"Variable",name:{kind:"Name",value:"collectionSlug"}}},{kind:"Argument",name:{kind:"Name",value:"username"},value:{kind:"Variable",name:{kind:"Name",value:"username"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NewsletterV3ViewerEdge_newsletterV3ViewerEdge"}}]}}]}}]}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"NewsletterV3ViewerEdge_newsletterV3ViewerEdge"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3ViewerEdge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isSubscribed"}}]}}]))}},11321:(e,t,n)=>{n.d(t,{h:()=>l});var i=n(39181),r=n(99766),l=function(e){var t,n=e.newsletterSlug,l=void 0===n?"":n,o=e.collectionSlug,a=void 0===o?null:o,s=e.username,u=void 0===s?null:s,c=(0,i.I)(r.k,{variables:{newsletterSlug:l,collectionSlug:a,username:u},ssr:!1,skip:!l&&!u}),d=c.loading,m=c.error,b=c.data;return d?{loading:d}:m?{error:m}:{viewerEdge:null==b||null===(t=b.newsletterV3)||void 0===t?void 0:t.viewerEdge}}},30572:(e,t,n)=>{n.d(t,{a:()=>b});var i=n(64467),r=n(96540),l=n(69733),o=n(99731),a=n(86527),s=n(72130),u=n(49287),c=n(46879);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=(0,l.Ng)((function(e){return{authDomain:e.config.authDomain}}))((function(e){var t=e.authDomain,n=e.buttonSize,i=e.buttonStyle,l=e.children,d=e.eventData,b=void 0===d?{}:d,v=e.inline,p=void 0!==v&&v,w=e.isButton,f=void 0!==w&&w,h=e.linkStyle,g=void 0===h?"SUBTLE":h,S=e.post,E=e.redirectUrl,k=e.width,y=e.id,V=e.onClick,N=E||(0,c.Icz)(t),O=(0,s.$L)(),x=(0,u.Fo)(),T=function(){var e,t;O.event("upsell.clicked",m(m({},b),{},{dimension:null==x?void 0:x.dimension,locationId:null==x?void 0:x.dimension,postId:null==S?void 0:S.id,authorId:null==S||null===(e=S.creator)||void 0===e?void 0:e.id,sequenceId:(null==S||null===(t=S.sequence)||void 0===t?void 0:t.sequenceId)||""}))};return f?r.createElement(o.$n,{buttonStyle:i,href:N,onClick:function(){null==V||V(),T()},size:n,width:k,id:y},l):r.createElement(a.N,{onClick:function(){null==V||V(),T()},href:N,linkStyle:g,inline:p,id:y},l)}))},33735:(e,t,n)=>{n.d(t,{m:()=>re});var i,r,l=n(80296),o=n(96540),a=n(54654),s=n(95420),u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateUserPostSubscribeMembershipUpsellShownAt"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userUpdatePostSubscribeMembershipUpsellShownAt"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"postSubscribeMembershipUpsellShownAt"}}]}}]}}]},c=n(27721),d=n(7580),m=n(64314),b=n(52290),v=n(95107),p=n(36557),w=n(72130),f=n(49287),h=n(39160),g=n(42600),S=n(79959),E=n(46879),k="after_subscribe_membership_upsell",y=function(e){var t=e.user,n=e.isVisible,i=e.hide,r=(0,h.d4)((function(e){return e.config.authDomain})),a=(0,w.$L)(),y=(0,c.R)(),V=y.value,N=y.loading;o.useEffect((function(){var e;N||null!=V&&V.postSubscribeMembershipUpsellShownAt||(a.event("newsletterV3.postSubscribeMembershipUpsellViewed",{newsletterV3Id:null===(e=t.newsletterV3)||void 0===e?void 0:e.id,source:k}),x())}),[N]);var O=(0,s.n)(u,{optimisticResponse:{userUpdatePostSubscribeMembershipUpsellShownAt:{__typename:"User",id:(null==V?void 0:V.id)||"",postSubscribeMembershipUpsellShownAt:(new Date).getTime()}}}),x=(0,l.A)(O,1)[0];return o.createElement(f.Ne,{source:{name:k}},o.createElement(m.m,{isVisible:n,hide:i,withCloseButton:!0,withAnimation:!0,buttonStyle:"STRONG",buttonSize:"REGULAR",cancelText:"Not now",confirmText:"Become a member",onConfirm:function(){var e,n;a.event("newsletterV3.postSubscribeMembershipUpsellClicked",{newsletterV3Id:null===(e=t.newsletterV3)||void 0===e?void 0:e.id,source:k}),n=(0,S.ST)((0,E.Qok)(r),{subscribeToUserId:t.id,source:k}),window.location.href=n},showCancelButton:!0,isDestructiveAction:!1},o.createElement(b.a,{marginBottom:"24px"},o.createElement(d.r,{miroId:t.imageId||g._3,alt:t.name||"",diameter:80,freezeGifs:!1})),o.createElement(b.a,{marginBottom:{xs:"8px",sm:"8px",md:"16px",lg:"16px",xl:"16px"}},o.createElement(v.mz,{scale:{xs:"S",sm:"S",md:"L",lg:"L",xl:"L"}},"Youre subscribed to get email updates. Become a member for more.")),o.createElement(b.a,{marginBottom:"32px"},o.createElement(p.kZ,{tag:"span",scale:{xs:"M",sm:"M",md:"L",lg:"L",xl:"L"},color:"DARKER"},"Your membership fee directly supports ",t.name," and other writers you read. Get full access to every story on Medium."))))},V=n(50684),N=n(16647),O=n(78493),x=n(20663),T=n(43634),A=n(30572),P=n(99731),C=n(24960),D=n(41299),R=n(46445),M=n(5600),U=n(44402),I=n(20239),F=n(66305),j=n(42976),_=n(91830);function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},B.apply(null,arguments)}const L=function(e){return o.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",width:23,height:23,fill:"none",viewBox:"0 0 23 23"},e),i||(i=o.createElement("path",{d:"M14 7.286 15.6 9 18 6M11.622 7.036H7a1 1 0 0 0-1 1v7.135a1 1 0 0 0 1 1h8.54a1 1 0 0 0 1-1v-3.216"})),r||(r=o.createElement("path",{d:"m6 8.441 5.27 3.865 1.406-1.054.702-.527"})))};var z,G;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},W.apply(null,arguments)}const H=function(e){return o.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:38,height:38,fill:"none",viewBox:"0 0 38 38"},e),z||(z=o.createElement("path",{d:"m24 13 2 2 3-3.5M19.5 12.5h-7a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1v-5"})),G||(G=o.createElement("path",{d:"M11.5 14.5 19 20l4-3"})))};var $,q;function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Y.apply(null,arguments)}const Q=function(e){return o.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",width:23,height:23,fill:"none",viewBox:"0 0 23 23"},e),$||($=o.createElement("path",{d:"M14.581 6.887H18.5M16.392 8.995V5.076M11.622 7.036H7a1 1 0 0 0-1 1v7.135a1 1 0 0 0 1 1h8.54a1 1 0 0 0 1-1v-3.216"})),q||(q=o.createElement("path",{d:"m6 8.441 5.27 3.865 2.811-2.108"})))};var Z,J,K,X;function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ee.apply(null,arguments)}const te=function(e){return o.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",width:38,height:38,fill:"none",viewBox:"0 0 38 38"},e),Z||(Z=o.createElement("rect",{width:.5,height:6.5,x:26.25,y:9.25,rx:.25})),J||(J=o.createElement("rect",{width:.5,height:6.5,x:29.75,y:12.25,rx:.25,transform:"rotate(90 29.75 12.25)"})),K||(K=o.createElement("path",{d:"M19.5 12.5h-7a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1v-5"})),X||(X=o.createElement("path",{d:"M11.5 14.5 19 20l4-3"})))};var ne=n(60603),ie=function(e){var t=e.user,n=e.showMembershipUpsellModal,i=void 0!==n&&n,r=e.showPostFollowSubscribeTooltip,a=void 0!==r&&r,s=e.hidePostFollowSubscribeTooltip,u=e.isVisible,d=void 0===u||u,m=e.isCompact,v=void 0!==m&&m,g=e.buttonStyleFn,k=void 0===g?function(e){return e?"OBVIOUS":"STRONG"}:g,B=o.useRef(null),z=(0,U.l)(),G=(0,I.D)(),W=(0,c.R)().value,$=(0,ne.e)(!1),q=(0,l.A)($,3),Y=q[0],Z=q[1],J=q[2],K=t.newsletterV3,X=(0,_.zF)(),ee=(0,w.$L)(),ie=(0,f.jI)(),re=(0,f.W9)(),le=(0,V.MW)(),oe=(0,N.h)({newsletterV3:K,creator:t,newsletterName:t.name||void 0}),ae=oe.isSubscribed,se=oe.hasError,ue=oe.loading,ce=oe.setSubscribe,de=(0,h.d4)((function(e){return e.config.authDomain})),me=(0,S.ST)((0,E.Qok)(de),{subscribeToUserId:t.id,source:re}),be=!(null==W||!W.membership),ve=o.useState(!1),pe=(0,l.A)(ve,2),we=pe[0],fe=pe[1],he=o.useState(!1),ge=(0,l.A)(he,2),Se=ge[0],Ee=ge[1],ke=(0,f.PJ)(le||"").susiEntry,ye=void 0===ke?"":ke,Ve=["newsletter_v3_promo","writer_subscription_landing"].includes(ye),Ne=["newsletter_v3_promo"].includes(ye),Oe=(0,O.XF)({membershipType:O.yV.Monthly}),xe=!1,Te=function(){var e;!xe&&d&&Ae()&&(ee.event("newsletterV3.subscribePresented",{newsletterV3Id:(null===(e=t.newsletterV3)||void 0===e?void 0:e.id)||"",source:ie}),xe=!0)},Ae=function(){var e;if(!B.current)return!1;var t=null===(e=B.current)||void 0===e?void 0:e.getBoundingClientRect(),n=t.top+t.height/2;return n>=0&&n<=window.innerHeight};o.useEffect((function(){return Te(),window&&F.R5.on("scroll",Te),function(){F.R5.off("scroll",Te)}}),[]),o.useEffect((function(){Te()}),[d]);var Pe=(0,ne.e)(!1),Ce=(0,l.A)(Pe,3),De=Ce[0],Re=Ce[1],Me=Ce[2],Ue=function(e,t){var n=(0,c.R)(),i=n.value,r=n.loading,l=o.useRef(null),a=!(null==i||!i.membership),s=(0,V.MW)(),u=(0,f.PJ)(s||"").susiEntry,d=["newsletter_v3_promo","writer_subscription_landing","subscribe_user"].includes(void 0===u?"":u);if(r)return!1;if(null!==l.current)return l.current;var m=d&&!a&&!e.viewerEdge.isUser&&!!e.isPartnerProgramEnrolled&&!(null!=i&&i.postSubscribeMembershipUpsellShownAt);return l.current=m,m}(t),Ie=o.useState(!1),Fe=(0,l.A)(Ie,2),je=Fe[0],_e=Fe[1];o.useEffect((function(){i&&ae&&!je&&Ue?Re():Me()}),[ae,je,Ue]),o.useEffect((function(){le&&!Ue&&Ve&&ae&&(!Ne&&re===ye||Ne)&&X({duration:"NEXTPAGE",toastStyle:"NEWSLETTER_SUBSCRIBE",extraParams:{newsletterName:t.name,newsletterType:j.$J.NEWSLETTER_TYPE_AUTHOR,unsubscribeFn:function(){return ce(!1)}}})}),[le,ae]),o.useEffect((function(){if(ae&&Se&&K){var e=!be&&!!t.isPartnerProgramEnrolled;e&&ee.event("newsletterV3.postSubscribeMembershipUpsellViewed",{newsletterV3Id:K.id,source:ie}),fe(e),Ee(!1)}}),[ae,Se,K]);var Be=(0,x.r)().isWorkingPreview;if(se||t.viewerEdge.isUser&&!Be)return null;var Le,ze=k(!!ae),Ge=function(e,t){return function(n){return{stroke:t?n.colorTokens.background.neutral.secondary.base:e,height:v?"23px":"36px",width:v?"23px":"36px"}}},We=z(Ge("OBVIOUS"===ze?G.colorTokens.background.accent.primary.base:G.baseColor.fill.dark,ue)),He=z(Ge("STRONG"===ze?G.colorTokens.background.neutral.primary.base:G.backgroundColor,ue));Le=ae?v?o.createElement(L,{className:We}):o.createElement(H,{className:We}):v?o.createElement(Q,{className:He}):o.createElement(te,{className:He});var $e=o.createElement(P.$n,{loading:ue,buttonStyle:ze,onClick:function(){var e;Ee(!ae),W?ae?ce(!1):W&&W.allowEmailAddressSharingEditorWriter?ce(!0,!1):Z():null!==(e=t.newsletterV3)&&void 0!==e&&e.id?ee.event("newsletterV3.subscribeClicked",{newsletterV3Id:t.newsletterV3.id,source:ie}):ee.event("user.LOSubscribeClicked",{targetUserId:t.id,source:ie})},padding:"0","aria-label":"Subscribe"},Le),qe=function(){return o.createElement(b.a,{padding:"14px 12px 20px",maxWidth:"220px"},o.createElement(p.kZ,{tag:"div",scale:"S",color:"DARKER"},o.createElement("strong",null,"You're subscribed to ",t.name,". Become a member for more.")," Get full access to every story on Medium for ",Oe," a month."),o.createElement(b.a,{paddingTop:"8px"},o.createElement(A.a,{isButton:!0,buttonStyle:"STRONG",buttonSize:"SMALL",redirectUrl:me,width:"150px",onClick:function(){ee.event("newsletterV3.postSubscribeMembershipUpsellClicked",{newsletterV3Id:K.id,source:ie})}},o.createElement(b.a,{textAlign:"center"},o.createElement(p.kZ,{scale:"S",color:"WHITE"},"Become a member")))))},Ye=function(){return o.createElement(b.a,{padding:"10px 12px",maxWidth:"166px"},o.createElement(p.kZ,{tag:"div",scale:"S",color:"DARKER"},"Subscribe to get an email whenever ",t.name," publishes."))},Qe=function(e){var t=e.children;return o.createElement(C.A,{isVisible:!!s&&!ae,hide:s,placement:"bottom",popoverRenderFn:Ye,targetDistance:10,role:"tooltip"},t)},Ze=function(e){var t=e.children;return o.createElement(C.A,{isVisible:!ue&&we,hide:function(){return fe(!1)},placement:"bottom",popoverRenderFn:qe,targetDistance:10,role:"tooltip"},t)},Je=function(e){var t=e.children;return o.createElement(D.R,{isVisible:!ue&&!ae,hideOnClick:!0,noPortal:!0,mouseEnterDelay:500,mouseLeaveDelay:0,placement:"bottom",popoverRenderFn:Ye,role:"tooltip",targetDistance:10},t)},Ke=function(e){var t=e.children;return a&&!ae?o.createElement(Qe,null,t):we?o.createElement(Ze,null,t):ae?o.createElement(M.G,{tooltipText:"Subscribed",targetDistance:10},t):o.createElement(Je,null,t)};return o.createElement("div",{ref:B},o.createElement(Ke,null,o.createElement(b.a,null,W&&o.createElement(R.T,{onConfirm:function(){ce(!0,!0)},isVisible:Y,hide:J,titleText:"Confirm your subscription to ".concat(t.name),confirmText:"Confirm now",buttonStyle:"STRONG",buttonSize:"LARGE",showCancelButton:!1,withCloseButton:!1,isDestructiveAction:!1},"When you subscribe to a writer or publication, your email address will be shared with them so they can stay in contact with you outside of Medium. Opt out any time by unsubscribing in Settings."),W?$e:o.createElement(T.r,{operation:"register",newsletterV3:K,user:t,actionUrl:K?(0,E.gj9)(K.id):(0,E.Yrp)(t.id),susiEntry:"subscribe_user"},$e))),De&&o.createElement(y,{user:t,isVisible:De,hide:function(){_e(!0),Me()}}))},re=function(e){var t=e.creator,n=e.followButtonSize,i=void 0===n?"REGULAR":n,r=e.shouldHideTooltip,s=void 0!==r&&r,u=e.post,c=e.showMembershipUpsellModal,d=e.susiEntry,m=e.isVisible,v=e.width,p=e.isSubscribeCompact,w=void 0!==p&&p,f=e.buttonStyleFn,h=e.trackingV2,g=o.useState(!1),S=(0,l.A)(g,2),E=S[0],k=S[1];return o.createElement(o.Fragment,null,o.createElement(a.P,{buttonSize:i,onClick:function(){t.viewerEdge.isFollowing||k(!0)},post:u,user:t,susiEntry:d,width:v,buttonStyleFn:f,trackingV2:h}),o.createElement(b.a,{marginLeft:w?"4px":"8px"},o.createElement(ie,{user:t,showMembershipUpsellModal:c,showPostFollowSubscribeTooltip:E&&!s,hidePostFollowSubscribeTooltip:function(){return k(!1)},isVisible:m,isCompact:w,buttonStyleFn:f})))}}}]);
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/3735.afb7e926.chunk.js.map