PageSourceSearch

https://app.alldamnlife.com/static/js/13.4f4d4e00.chunk.js

js alldamnlife.com collected 2026-10-08 19:53:54 UTC 12,615 bytes, 2 lines download raw bytes

1(this.webpackJsonpalldamnlife=this.webpackJsonpalldamnlife||[]).push([[13],{138:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(0),a=n(8),c=function(e,t){var n=t.keyframes,c=t.timing,s=Object(r.useState)(),l=Object(a.a)(s,2),i=l[0],o=l[1];return Object(r.useEffect)((function(){if(e&&e.current){var t=e.current.animate(n,c);o(t)}}),[]),i},s=n(5),l=[{offset:0,strokeDasharray:"1, 150",strokeDashoffset:0},{offset:.5,strokeDasharray:"90, 150",strokeDashoffset:-35},{offset:1,strokeDasharray:"90, 150",strokeDashoffset:-124}],i=[{offset:0,transform:"rotate(0deg)"},{offset:1,transform:"rotate(360deg)"}],o={duration:2e3,iterations:1/0,easing:"linear"},u={duration:1500,iterations:1/0,easing:"ease-in-out"};function d(e){var t=e.className,n=void 0===t?"ml-2 w-5 z-10 inline spinner":t,a=Object(r.createRef)(),d=Object(r.createRef)();return c(a,{keyframes:i,timing:o}),c(d,{keyframes:l,timing:u}),Object(s.jsx)("svg",{className:n,ref:a,viewBox:"0 0 50 50",children:Object(s.jsx)("circle",{className:"path",style:{stroke:"rgb(31, 41, 55)",strokeLinecap:"round"},ref:d,cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"})})}},139:function(e,t,n){"use strict";var r=n(14),a=n(5),c={type:"",text:"Default text",disabled:!1,className:["rounded-full","border","px-4","py-1","disabled:border-gray-400","disabled:text-gray-400","focus:outline-none","hover:border-white","hover:bg-alldamnlife","hover:text-white","font-bold"].join(" "),textColor:"text-white"},s=function(e){return Object(a.jsx)("button",Object(r.a)({},{onClick:(t=e).onClick,type:t.type,children:t.children,disabled:t.disabled,className:c.className.split(" ").concat(t.className,t.textColor||c.textColor).join(" ")}));var t};s.defaultProps=c,t.a=s},140:function(e,t,n){"use strict";var r=n(5);t.a=function(){return Object(r.jsx)("div",{className:"text-teal-500 w-5 align-top h-5 inline-block",children:Object(r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Object(r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}},141:function(e,t,n){var r={"./ADL_PASSWORD_MANAGER.png":[150,34],"./ADN_STREAMING.png":[151,35],"./APPLE_MUSIC_FAMILLE.png":[152,36],"./APPLE_MUSIC_VOICE.png":[153,37],"./BEIN_SPORTS_CONNECT_1M.png":[154,38],"./CANAL_P
1LUS_SERIES_3M.png":[155,39],"./CARTE_SESAME.png":[156,40],"./COACHCLUB.png":[157,41],"./DEEZER_1PROFIL.png":[158,42],"./DEEZER_BASIC.png":[159,43],"./DEEZER_PREMIUM.png":[160,44],"./DISNEY_PLUS.png":[161,45],"./DISNEY_PLUS_12M.png":[162,46],"./DISNEY_PLUS_3M.png":[163,47],"./DOORS.png":[164,48],"./DOORS_platform.png":[165,49],"./EPRESSE.png":[166,50],"./FILMOTV.png":[167,51],"./M365_BUSINESS_12M.png":[168,52],"./M365_FAMILY_12M.png":[169,53],"./M365_PERSONAL_12M.png":[170,54],"./NETFLIX_ESSENTIAL.png":[171,55],"./NETFLIX_PREMIUM.png":[172,56],"./NETFLIX_PREMIUM_FR.png":[173,57],"./NETFLIX_STANDARD.png":[174,58],"./NORDVPN.png":[175,59],"./OCS_GO.png":[176,60],"./OCS_GO_CAST_TV.png":[177,61],"./ROCAMBOLE.png":[178,62],"./SALTO_4M.png":[179,63],"./SONY_12MOIS.png":[180,64],"./SONY_3MOIS.png":[181,65],"./SPOTIFY_10EUR.png":[182,66],"./SPOTIFY_30EUR.png":[183,67],"./SPOTIFY_60EUR.png":[184,68],"./XBOX_10EUROS.png":[185,69],"./XBOX_25EUROS.png":[186,70],"./XBOX_50EUROS.png":[187,71],"./XBOX_GAME_PASS_1M.png":[188,72],"./XBOX_GAME_PASS_3M.png":[189,73]};function a(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],a=t[0];return n.e(t[1]).then((function(){return n(a)}))}a.keys=function(){return Object.keys(r)},a.id=141,e.exports=a},142:function(e,t,n){"use strict";var r=n(8),a=n(0),c=n(5),s=function(e){var t=e.className,n=e.color;return Object(c.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:Object(c.jsx)("path",{fillRule:"evenodd",fill:n,d:"M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})};n(143),t.a=function(e){var t=e.name,l=e.actif,i=e.onClick,o=Object(a.useState)(null),u=Object(r.a)(o,2),d=u[0],j=u[1];return Object(a.useEffect)((function(){n(141)("./".concat(t,".png")).then((function(e){j(e.default)})).catch((function(){return console.log("The provider image ".concat(t,".png doesn't exist. Please report issue"))}))}),[d,t]),d&&Object(c.jsx)("div",{children:Object(c.jsx)("div",{className:"service-icon relative ".concat(l?"actif":""),style:{backgroundPosition:"50% 50%",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundColor:"rgba(0,0,0,0)",backgroundImage:"url(".concat(d,")")},onClick:i,children:l?Object(c.jsx)(s,{color:"green"}):null})})}},143:function(e,t,n){},202:function(e,t,n){"use strict";var r=n(4),a=n(8),c=n(1),s=n.n(c),l=n(192),i=n(2),o=n(139),u=n(138),d=n(0),j=n(5);t.a=function(){var e=Object(l.useStripe)(),t=Object(l.useElements)(),n=Object(d.useState)(!1),c=Object(a.a)(n,2),f=c[0],b=c[1],m=function(){var n=Object(r.a)(s.a.mark((function n(r){var a;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.preventDefault(),b(!0),e&&t){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,e.confirmPayment({elements:t,confirmParams:{return_url:"".concat(i.j,"/verify")}});case 6:(a=n.sent).error&&console.log(a.error.message);case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return Object(j.jsxs)("form",{onSubmit:m,children:[Object(j.jsx)(l.PaymentElement,{}),Object(j.jsx)(o.a,{className:"w-full mt-2 cols-span-1 border-alldamnlife",textColor:"text-alldamnlife",disabled:!e,children:f?Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)("span",{children:"Paiement en cours "}),Object(j.jsx)(u.a,{})]}):"Payer"})]})}},203:function(e,t,n){"use strict";var r=n(4),a=n(8),c=n(1),s=n.n(c),l=n(192),i=n(2),o=n(139),u=n(138),d=n(0),j=n(5);t.a=function(){var e=Object(l.useStripe)(),t=Object(l.useElements)(),n=Object(d.useState)(!1),c=Object(a.a)(n,2),f=c[0],b=c[1],m=function(){var n=Object(r.a)(s.a.mark((function n(r){var a;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.preventDefault(),b(!0),e&&t){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,e.confirmSetup({elements:t,confirmParams:{return_url:"".concat(i.j,"/verifySetupIntent")}});case 6:(a=n.sent).error&&console.log(a.error.message);case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return Object(j.jsxs)("form",{onSubmit:m,children:[Object(j.jsx)(l.PaymentElement,{}),Object(j.jsx)(o.a,{className:"w-full mt-2 cols-span-1 border-alldamnlife",textColor:"text-alldamnlife",disabled:!e,children:f?Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)("span",{children:"Sauvegarde en cours"}
1),Object(j.jsx)(u.a,{})]}):"Sauvegarder ma carte"})]})}},263:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return E}));var r=n(4),a=n(8),c=n(1),s=n.n(c),l=n(0),i=n(35),o=n(48),u=n(142),d=n(139),j=n(26),f=n(47),b=n(140),m=n(192),p=n(207),O=n(202),x=n(203),g=n(138),h=n(2),v=n(5),S="Not Found",N=Object(p.a)(h.p);function E(){var e=Object(j.a)(),t=e.accountData,n=e.refreshAccount,c=Object(l.useState)([]),p=Object(a.a)(c,2),h=p[0],E=p[1],_=Object(l.useState)(null),w=Object(a.a)(_,2),k=w[0],y=w[1],M=Object(l.useState)(!1),P=Object(a.a)(M,2),C=P[0],R=P[1],A=Object(l.useState)(!1),I=Object(a.a)(A,2),L=I[0],D=I[1],F=Object(l.useState)(!1),T=Object(a.a)(F,2),U=T[0],B=T[1],X=Object(l.useState)(""),z=Object(a.a)(X,2),Y=z[0],G=z[1],V=Object(l.useState)(!1),q=Object(a.a)(V,2),W=q[0],Z=q[1],J=Object(l.useState)({clientSecret:""}),H=Object(a.a)(J,2),K=H[0],Q=H[1];Object(l.useEffect)((function(){document.title="ADL - Migration vers Stripe"}),[]),Object(f.a)(Object(r.a)(s.a.mark((function e(){var n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D(!1),e.next=3,o.e.getPendingMigrateOrder(t);case 3:n=e.sent,B(!0);try{n.clientSecret&&(r={clientSecret:n.clientSecret},Q(r),D(!0),B(!1),G(n.orderData.montant_ttc)),E(n.services)}catch(k){S===k.message&&y(S)}case 6:case"end":return e.stop()}}),e)}))));var $=function(){var e=Object(r.a)(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Z(!0),e.next=4,o.e.launchMigration();case 4:return e.next=6,n();case 6:document.location.reload(),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),i.b.error("Erreur lors de la migration, rapprochez-vous d'un administrateur via le chat.");case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();return Object(v.jsx)("div",{className:"p-8 md:p-16 w-full rounded-3xl bg-white shadow-sm h-full flex flex-col flex-1 justify-between",children:Object(v.jsxs)("div",{className:"flex flex-col lg:h-full w-full flex-1",children:[Object(v.jsx)("div",{className:"text-2xl font-bold py-4 mb-2 border-b text-teal-500",children:Object(v.jsx)("h1",{className:"subtitle",children:"Migration de votre moyen de paiement"})}),Object(v.jsx)("div",{className:"flex-1 flex-shrink px-4",children:Object(v.jsx)("div",{className:"row",children:Object(v.jsxs)("div",{className:"container mx-auto px-4 lg:pt-6",children:[C?Object(v.jsx)(v.Fragment,{children:Object(v.jsxs)("h1",{className:"text px-4 mb-2",children:[Object(v.jsx)(b.a,{})," ","Bienvenue sur la page pour migrer votre moyen de paiement. En cliquant sur ce bouton ci-dessous, vous allez \xeatre amen\xe9 \xe0 renseigner vos informations de carte bleu pour payer dor\xe9navant via Stripe."]})}):Object(v.jsx)(v.Fragment,{children:Object(v.jsx)("div",{className:"flex flex-wrap text-center justify-center",children:Object(v.jsxs)("div",{className:"w-full  px-4",children:[Object(v.jsx)("h2",{className:"text-4xl font-semibold text-black",children:"Rappel : Liste des services choisis"}),Object(v.jsx)("p",{className:"text-lg leading-relaxed mt-4 mb-4 text-gray-500",children:"Ci-dessous les services que vous avez actuellement et pour lesquels le renouvellement sera effectif. Attention : le fait de migrer votre compte va lancer le renouvellement \xe0 ce jour et changer la date de renouvellement de votre pack. Nous vous recommandons d'attendre le dernier jour avant de lancer le renouvellement."})]})})}),Object(v.jsx)("div",{className:"flex flex-wrap mt-1 justify-center mb-3",children:Object(v.jsx)(v.Fragment,{children:C?Object(v.jsx)(m.Elements,{stripe:N,options:K,children:0!=Y?Object(v.jsx)(O.a,{}):Object(v.jsx)(x.a,{})}):Object(v.jsx)(v.Fragment,{children:h.length>0?Object(v.jsx)("div",{className:"flex flex-col gap-4",children:Object(v.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4",children:h.map((function(e,t){return Object(v.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[Object(v.jsx)("div",{className:"text-right",children:Object(v.jsx)(u.a,{showTooltip:!1,name:e.code},e.code)}),Object(v.jsx)("div",{className:"pt-1",children:Object(v.jsx)("h3",{className:"font-semibold text-black",children:e.name})})]},t)}))})}):null!==k?Object(v.jsx)("div",{className:"right-1/2 bottom-1/2 transform translate-y-1/2",children:"Une erreur s'est produite"}):Object(v.jsx)("div",{className:"right-1/2 bottom-1/2 transform translate-y-1/2",children:"Vous pouvez lancer le paiement ci-dessous !"})})})})]})})}),Object(v.jsx)("div",{className:"flex flex-col items-center sm:flex-row sm:justify-evenly p-4 mb-16",children:C?Object(v.jsx)(v.Fragment,{}):U?Object(v.jsx)(v.Fragment,{children:Object(v.jsx)(d.a,{onClick:function(){return $()},className:"w-full sm:w-2/6 2xl:w-1/6 cols-span-1 border-alldamnlife",textColor:"text-alldamnlife",children:W?Object(v.jsxs)(v.Fragment,{children:[Object(v.jsx)("span",{children:"Traitement en cours "}),Object(v.jsx)(g.a,{})]}):"Lancer la migration"})}):L?Object(v.jsx)(v.Fragment,{children:Object(v.jsx)(d.a,{onClick:function(){return R(!0)},className:"w-full sm:w-2/6 2xl:w-1/6 cols-span-1 border-alldamnlife",textColor:"text-alldamnlife",children:Object(v.jsx)("strong",{children:"Payer"})})}):void 0})]})})}}}]);
2//# sourceMappingURL=13.4f4d4e00.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.