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

2 lines
10 KiB
JavaScript

"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[3591],{42593:(e,n,i)=>{i.d(n,{h:()=>c});var t=i(96540),a=i(52290),l=i(99731),d=i(44402),r=i(98761),o={from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},m=function(e){return function(n){return{width:"20px",height:"20px",borderRadius:"50%",borderWidth:"1px",borderStyle:"solid",borderColor:"".concat(n.colorTokens.border.neutral.tertiary.base," transparent ").concat(n.colorTokens.border.neutral.tertiary.base," ").concat(n.colorTokens.border.neutral.tertiary.base),animation:"".concat(e," 1s infinite linear;")}}},c=function(e){var n=e.buttonSize,i=void 0===n?"LARGE":n,c=e.buttonStyle,u=void 0===c?"STRONG":c,s=e.width,k=void 0===s?"100%":s,p=(0,d.l)(),v=function(){var e=(0,r.h)({keyframesName:o}).keyframesName;return t.createElement("div",{className:p(m(e))})},N=function(){return t.createElement(a.a,null,t.createElement(a.a,{display:"inline-block",float:"left",marginRight:"8px"},t.createElement(v,null)),t.createElement(a.a,{float:"left"},"Loading.."))};return t.createElement("div",{style:{cursor:"wait"}},t.createElement(l.$n,{buttonStyle:u,onClick:function(){return null},size:i,width:k,disabled:!0},t.createElement(N,null)))}},75967:(e,n,i)=>{i.d(n,{_:()=>r});var t=i(45458),a=i(62742),l=i(4124),d=i(53301),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"NewsletterV3SubscribeButton_newsletterV3"},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:"name"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",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:"username"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionDefaultBackgroundTheme_collection"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_newsletterV3"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useNewsletterV3Subscription_newsletterV3"}}]}}].concat((0,t.A)(a.Km.definitions),(0,t.A)(l.Ge.definitions),(0,t.A)(a.ei.definitions),(0,t.A)(d.oY.definitions))}},85912:(e,n,i)=>{i.d(n,{D:()=>d});var t=i(45458),a=i(4124),l=i(59265),d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"NewsletterV3SubscribeByEmail_newsletterV3"},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:"slug"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",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:"username"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"collectionDefaultBackgroundTheme_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}}]}}]}}].concat((0,t.A)(a.Ge.definitions),(0,t.A)(l.dl.definitions))}},76540:(e,n,i)=>{i.d(n,{d:()=>t});var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SendNewsletterSubscriptionAcctAuthEmailMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"newsletterV3Id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"redirect"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"captchaValue"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"operation"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendNewsletterSubscriptionAcctAuthEmail"},arguments:[{kind:"Argument",name:{kind:"Name",value:"newsletterV3Id"},value:{kind:"Variable",name:{kind:"Name",value:"newsletterV3Id"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"redirect"},value:{kind:"Variable",name:{kind:"Name",value:"redirect"}}},{kind:"Argument",name:{kind:"Name",value:"captchaValue"},value:{kind:"Variable",name:{kind:"Name",value:"captchaValue"}}},{kind:"Argument",name:{kind:"Name",value:"operation"},value:{kind:"Variable",name:{kind:"Name",value:"operation"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SusiMethod"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BadRequest"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FailedChallenge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NotFound"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]}},48312:(e,n,i)=>{i.d(n,{K:()=>R});var t,a,l=i(80296),d=i(64467),r=i(39181),o=i(95420),m=i(96540),c=i(26390),u=i(42593),s=i(65802),k=i(85836),p=i(11334),v=i(52290),N=i(46844),S=i(27049),f=i(36557),g=i(49287),b=i(20239),y=i(67033),h=i(42976),E=i(39160),x=i(37317),A=i(46963),T=i(46879),F=i(40064),w=i(76540),V=i(5197),D=i(51999);function O(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function C(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?O(Object(i),!0).forEach((function(n){(0,d.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):O(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var _=(t={},(0,d.A)(t,S.i.xl,"425px"),(0,d.A)(t,S.i.lg,"425px"),(0,d.A)(t,S.i.md,"375px"),(0,d.A)(t,S.i.sm,"100%"),(0,d.A)(t,S.i.xs,"100%"),t),j=(a={},(0,d.A)(a,S.i.xl,"375px"),(0,d.A)(a,S.i.lg,"375px"),(0,d.A)(a,S.i.md,"325px"),(0,d.A)(a,S.i.sm,"100%"),(0,d.A)(a,S.i.xs,"100%"),a),R=function(e){var n=e.centerContent,i=void 0!==n&&n,t=e.newsletterV3,a=e.isVertical,d=e.handleClick,O=(0,b.D)(),R=(0,g.jI)(),I=(0,g.Zj)(),P=(0,E.d4)((function(e){return e.config.authDomain})),B=(0,E.d4)((function(e){return e.navigation.currentLocation})),L=(0,E.d4)((function(e){return e.config.productName})),U=m.useState(""),G=(0,l.A)(U,2),q=G[0],M=G[1],W=m.useState(""),Y=(0,l.A)(W,2),$=Y[0],K=Y[1],Z=m.useState(!1),z=(0,l.A)(Z,2),H=z[0],J=z[1],X=m.useState(!1),Q=(0,l.A)(X,2),ee=Q[0],ne=Q[1],ie=m.useState(!1),te=(0,l.A)(ie,2),ae=te[0],le=te[1],de=m.useState(""),re=(0,l.A)(de,2),oe=re[0],me=re[1],ce="register",ue=t.type===h.$J.NEWSLETTER_TYPE_AUTHOR?"Subscribe":"Get this newsletter",se=null==B.match("http[s]?://[^/]*".concat(P)),ke=t.collection,pe=t.id,ve=t.slug,Ne=t.user,Se=(0,T.gj9)(pe),fe=ke?(0,T.Lpe)(ve,P,ke,(null==Ne?void 0:Ne.username)||""):B;(0,r.I)(D.fS,{fetchPolicy:"no-cache",skip:!Se||se,onCompleted:function(e){var n=e.accountToken;return n&&me((0,k.$q)(fe,R,I,Se,n))}});var ge=function(e){M(e),J(!1),ne(!1)},be=function(){(0,x.x)($)?(ne(!0),J(!0)):ge("Enter a valid email address.")},ye=function(){ge("We couldn't process your request. Try again, or contact our support team.")},he=(0,o.n)(w.d,{onCompleted:function(e){switch(e.sendNewsletterSubscriptionAcctAuthEmail.__typename){case"SusiMethod":K($),le(!0),d&&d();break;case"BadRequest":ge("Enter a valid email address.");break;default:ye()}},onError:ye}),Ee=(0,l.A)(he,1)[0],xe={newsletterV3Id:pe,email:$,operation:ce,redirect:oe},Ae=(0,A.U)()||S.i.lg,Te=t.type===h.$J.NEWSLETTER_TYPE_AUTHOR?_:j;return m.createElement(p.N,{theme:(0,F.vU)(ke,O)},m.createElement(v.a,{alignItems:i?"center":"flex-start",display:"flex",flexDirection:"column",justifyContent:i?"center":"flex-start"},m.createElement(s.n,{callback:function(e){Ee({variables:C({captchaValue:e},xe)})},shouldExecuteRecaptcha:H,action:"mailing_list_signup"}),m.createElement(v.a,{display:ae?"none":"inline"},m.createElement(v.a,{alignItems:a?"flex-start":"center",display:"flex",justifyContent:"space-between",flexDirection:a?"column":"row",sm:{alignItems:i?"center":"flex-start",flexDirection:"column",paddingTop:"16px"}},m.createElement(v.a,{marginTop:q?{lg:"25px",xl:"25px",md:"25px",sm:"0",xs:"0"}:void 0,width:a?"100%":{lg:void 0,xl:void 0,md:void 0,sm:"100%",xs:"100%"}},m.createElement(N.A,{description:q,onChange:function(e){K(e.target.value.trim())},onSubmit:be,placeholder:"Your email",scale:"S",status:q?"ERROR":void 0,type:"email",value:$,width:a?"100%":Te[Ae]})),m.createElement(v.a,{marginBottom:"auto",marginLeft:a?"0":"15px",sm:{marginLeft:"0px",marginTop:"24px"},marginTop:a?"24px":void 0,flexShrink:"0"},ee?m.createElement(u.h,{newsletterV3Id:pe}):m.createElement(y.b,{eventData:{operation:ce}},m.createElement(c.k,{onClick:be,buttonText:ue,buttonStyle:"SUBTLE"})))),m.createElement(v.a,{marginTop:q?"10px":"20px",sm:{marginTop:"20px"}},m.createElement(f.kZ,{scale:"XS"},m.createElement(V.d,null)))),m.createElement(v.a,{display:ae?"inline":"none",marginBottom:"15px",marginTop:"5px",height:"75px"},m.createElement(f.kZ,{color:"DARKER",scale:"M"},L," sent you an email at ",$," to complete your subscription."))))}}}]);
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/3591.8b4ac29e.chunk.js.map