@alma/widgets 3.3.12 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/raw/widgets-wc.umd.js +131 -67
- package/dist/raw/widgets-wc.umd.js.map +0 -0
- package/dist/raw/widgets.css +26 -6
- package/dist/raw/widgets.js +131 -67
- package/dist/raw/widgets.js.map +1 -1
- package/dist/raw/widgets.m.js +131 -67
- package/dist/raw/widgets.m.js.map +1 -1
- package/dist/raw/widgets.modern.js +138 -74
- package/dist/raw/widgets.modern.js.map +1 -1
- package/dist/raw/widgets.umd.js +131 -67
- package/dist/raw/widgets.umd.js.map +1 -1
- package/dist/widgets-wc.umd.js +1 -1
- package/dist/widgets-wc.umd.js.map +0 -1
- package/dist/widgets.css +4 -3
- package/dist/widgets.js +1 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.m.js +1 -1
- package/dist/widgets.m.js.map +1 -1
- package/dist/widgets.modern.js +1 -1
- package/dist/widgets.modern.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/widgets.m.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useState as t,useEffect as n}from"react";import{IntlProvider as a,useIntl as r,FormattedMessage as i,FormattedNumber as l,FormattedDate as o}from"react-intl";import{unmountComponentAtNode as s,render as u}from"react-dom";import c from"classnames";import m from"react-modal";import d from"no-scroll";import{useMediaQuery as f}from"react-responsive";import{secondsToMilliseconds as g,isToday as p}from"date-fns";var y=function(e){try{return!!e()}catch(e){return!0}},h=!y(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),v=Function.prototype,b=v.call,E=h&&v.bind.bind(b,b),A=h?E:function(e){return function(){return b.apply(e,arguments)}},w=Math.ceil,C=Math.floor,P=Math.trunc||function(e){var t=+e;return(t>0?C:w)(t)},O=function(e){var t=+e;return t!=t||0===t?0:P(t)},_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var x,I,M=function(e){return e&&e.Math===Math&&e},j=M("object"==typeof globalThis&&globalThis)||M("object"==typeof window&&window)||M("object"==typeof self&&self)||M("object"==typeof _&&_)||M("object"==typeof _&&_)||function(){return this}()||Function("return this")(),N=Object.defineProperty,D=function(e,t){try{N(j,e,{value:t,configurable:!0,writable:!0})}catch(n){j[e]=t}return t},z=S(function(e){var t=e.exports=j["__core-js_shared__"]||D("__core-js_shared__",{});(t.versions||(t.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),L=function(e,t){return z[e]||(z[e]=t||{})},k=function(e){return null==e},T=TypeError,R=function(e){if(k(e))throw new T("Can't call method on "+e);return e},F=Object,B=function(e){return F(R(e))},H=A({}.hasOwnProperty),U=Object.hasOwn||function(e,t){return H(B(e),t)},V=0,G=Math.random(),q=A(1..toString),Z=function(e){return"Symbol("+(void 0===e?"":e)+")_"+q(++V+G,36)},J="undefined"!=typeof navigator&&String(navigator.userAgent)||"",W=j.process,K=j.Deno,X=W&&W.versions||K&&K.version,Y=X&&X.v8;Y&&(I=(x=Y.split("."))[0]>0&&x[0]<4?1:+(x[0]+x[1])),!I&&J&&(!(x=J.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=J.match(/Chrome\/(\d+)/))&&(I=+x[1]);var $=I,Q=j.String,ee=!!Object.getOwnPropertySymbols&&!y(function(){var e=Symbol("symbol detection");return!Q(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$&&$<41}),te=ee&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ne=j.Symbol,ae=L("wks"),re=te?ne.for||ne:ne&&ne.withoutSetter||Z,ie=function(e){return U(ae,e)||(ae[e]=ee&&U(ne,e)?ne[e]:re("Symbol."+e)),ae[e]},le={};le[ie("toStringTag")]="z";var oe,se,ue,ce="[object z]"===String(le),me="object"==typeof document&&document.all,de=void 0===me&&void 0!==me?function(e){return"function"==typeof e||e===me}:function(e){return"function"==typeof e},fe=A({}.toString),ge=A("".slice),pe=function(e){return ge(fe(e),8,-1)},ye=ie("toStringTag"),he=Object,ve="Arguments"===pe(function(){return arguments}()),be=ce?pe:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=he(e),ye))?n:ve?pe(t):"Object"===(a=pe(t))&&de(t.callee)?"Arguments":a},Ee=String,Ae=function(e){if("Symbol"===be(e))throw new TypeError("Cannot convert a Symbol value to a string");return Ee(e)},we=A("".charAt),Ce=A("".charCodeAt),Pe=A("".slice),Oe=function(e){return function(t,n){var a,r,i=Ae(R(t)),l=O(n),o=i.length;return l<0||l>=o?e?"":void 0:(a=Ce(i,l))<55296||a>56319||l+1===o||(r=Ce(i,l+1))<56320||r>57343?e?we(i,l):a:e?Pe(i,l,l+2):r-56320+(a-55296<<10)+65536}},_e={codeAt:Oe(!1),charAt:Oe(!0)},Se=j.WeakMap,xe=de(Se)&&/native code/.test(String(Se)),Ie=function(e){return"object"==typeof e?null!==e:de(e)},Me=!y(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),je=j.document,Ne=Ie(je)&&Ie(je.createElement),De=function(e){return Ne?je.createElement(e):{}},ze=!Me&&!y(function(){return 7!==Object.defineProperty(De("div"),"a",{get:function(){return 7}}).a}),Le=Me&&y(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),ke=String,Te=TypeError,Re=function(e){if(Ie(e))return e;throw new Te(ke(e)+" is not an object")},Fe=Function.prototype.call,Be=h?Fe.bind(Fe):function(){return Fe.apply(Fe,arguments)},He=function(e){return de(e)?e:void 0},Ue=function(e,t){return arguments.length<2?He(j[e]):j[e]&&j[e][t]},Ve=A({}.isPrototypeOf),Ge=Object,qe=te?function(e){return"symbol"==typeof e}:function(e){var t=Ue("Symbol");return de(t)&&Ve(t.prototype,Ge(e))},Ze=String,Je=function(e){try{return Ze(e)}catch(e){return"Object"}},We=TypeError,Ke=function(e){if(de(e))return e;throw new We(Je(e)+" is not a function")},Xe=function(e,t){var n=e[t];return k(n)?void 0:Ke(n)},Ye=TypeError,$e=TypeError,Qe=ie("toPrimitive"),et=function(e){var t=function(e,t){if(!Ie(e)||qe(e))return e;var n,a=Xe(e,Qe);if(a){if(void 0===t&&(t="default"),n=Be(a,e,t),!Ie(n)||qe(n))return n;throw new $e("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&de(n=e.toString)&&!Ie(a=Be(n,e)))return a;if(de(n=e.valueOf)&&!Ie(a=Be(n,e)))return a;if("string"!==t&&de(n=e.toString)&&!Ie(a=Be(n,e)))return a;throw new Ye("Can't convert object to primitive value")}(e,t)}(e,"string");return qe(t)?t:t+""},tt=TypeError,nt=Object.defineProperty,at=Object.getOwnPropertyDescriptor,rt={f:Me?Le?function(e,t,n){if(Re(e),t=et(t),Re(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var a=at(e,t);a&&a.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:a.configurable,enumerable:"enumerable"in n?n.enumerable:a.enumerable,writable:!1})}return nt(e,t,n)}:nt:function(e,t,n){if(Re(e),t=et(t),Re(n),ze)try{return nt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new tt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},it=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lt=Me?function(e,t,n){return rt.f(e,t,it(1,n))}:function(e,t,n){return e[t]=n,e},ot=L("keys"),st=function(e){return ot[e]||(ot[e]=Z(e))},ut={},ct=j.TypeError;if(xe||z.state){var mt=z.state||(z.state=new(0,j.WeakMap));mt.get=mt.get,mt.has=mt.has,mt.set=mt.set,oe=function(e,t){if(mt.has(e))throw new ct("Object already initialized");return t.facade=e,mt.set(e,t),t},se=function(e){return mt.get(e)||{}},ue=function(e){return mt.has(e)}}else{var dt=st("state");ut[dt]=!0,oe=function(e,t){if(U(e,dt))throw new ct("Object already initialized");return t.facade=e,lt(e,dt,t),t},se=function(e){return U(e,dt)?e[dt]:{}},ue=function(e){return U(e,dt)}}var ft={set:oe,get:se,has:ue,enforce:function(e){return ue(e)?se(e):oe(e,{})},getterFor:function(e){return function(t){var n;if(!Ie(t)||(n=se(t)).type!==e)throw new ct("Incompatible receiver, "+e+" required");return n}}},gt={}.propertyIsEnumerable,pt=Object.getOwnPropertyDescriptor,yt={f:pt&&!gt.call({1:2},1)?function(e){var t=pt(this,e);return!!t&&t.enumerable}:gt},ht=Object,vt=A("".split),bt=y(function(){return!ht("z").propertyIsEnumerable(0)})?function(e){return"String"===pe(e)?vt(e,""):ht(e)}:ht,Et=function(e){return bt(R(e))},At=Object.getOwnPropertyDescriptor,wt={f:Me?At:function(e,t){if(e=Et(e),t=et(t),ze)try{return At(e,t)}catch(e){}if(U(e,t))return it(!Be(yt.f,e,t),e[t])}},Ct=Function.prototype,Pt=Me&&Object.getOwnPropertyDescriptor,Ot=U(Ct,"name"),_t={EXISTS:Ot,PROPER:Ot&&"something"===function(){}.name,CONFIGURABLE:Ot&&(!Me||Me&&Pt(Ct,"name").configurable)},St=A(Function.toString);de(z.inspectSource)||(z.inspectSource=function(e){return St(e)});var xt,It=z.inspectSource,Mt=S(function(e){var t=_t.CONFIGURABLE,n=ft.enforce,a=ft.get,r=String,i=Object.defineProperty,l=A("".slice),o=A("".replace),s=A([].join),u=Me&&!y(function(){return 8!==i(function(){},"length",{value:8}).length}),c=String(String).split("String"),m=e.exports=function(e,a,m){"Symbol("===l(r(a),0,7)&&(a="["+o(r(a),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),m&&m.getter&&(a="get "+a),m&&m.setter&&(a="set "+a),(!U(e,"name")||t&&e.name!==a)&&(Me?i(e,"name",{value:a,configurable:!0}):e.name=a),u&&m&&U(m,"arity")&&e.length!==m.arity&&i(e,"length",{value:m.arity});try{m&&U(m,"constructor")&&m.constructor?Me&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return U(d,"source")||(d.source=s(c,"string"==typeof a?a:"")),e};Function.prototype.toString=m(function(){return de(this)&&a(this).source||It(this)},"toString")}),jt=function(e,t,n,a){a||(a={});var r=a.enumerable,i=void 0!==a.name?a.name:t;if(de(n)&&Mt(n,i,a),a.global)r?e[t]=n:D(t,n);else{try{a.unsafe?e[t]&&(r=!0):delete e[t]}catch(e){}r?e[t]=n:rt.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e},Nt=Math.max,Dt=Math.min,zt=Math.min,Lt=function(e){return(t=O(e.length))>0?zt(t,9007199254740991):0;var t},kt=function(e){return function(t,n,a){var r=Et(t),i=Lt(r);if(0===i)return!e&&-1;var l,o=function(e,t){var n=O(e);return n<0?Nt(n+t,0):Dt(n,t)}(a,i);if(e&&n!=n){for(;i>o;)if((l=r[o++])!=l)return!0}else for(;i>o;o++)if((e||o in r)&&r[o]===n)return e||o||0;return!e&&-1}},Tt=(kt(!0),kt(!1)),Rt=A([].push),Ft=function(e,t){var n,a=Et(e),r=0,i=[];for(n in a)!U(ut,n)&&U(a,n)&&Rt(i,n);for(;t.length>r;)U(a,n=t[r++])&&(~Tt(i,n)||Rt(i,n));return i},Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ht=Bt.concat("length","prototype"),Ut={f:Object.getOwnPropertyNames||function(e){return Ft(e,Ht)}},Vt={f:Object.getOwnPropertySymbols},Gt=A([].concat),qt=Ue("Reflect","ownKeys")||function(e){var t=Ut.f(Re(e)),n=Vt.f;return n?Gt(t,n(e)):t},Zt=function(e,t,n){for(var a=qt(t),r=rt.f,i=wt.f,l=0;l<a.length;l++){var o=a[l];U(e,o)||n&&U(n,o)||r(e,o,i(t,o))}},Jt=/#|\.prototype\./,Wt=function(e,t){var n=Xt[Kt(e)];return n===$t||n!==Yt&&(de(t)?y(t):!!t)},Kt=Wt.normalize=function(e){return String(e).replace(Jt,".").toLowerCase()},Xt=Wt.data={},Yt=Wt.NATIVE="N",$t=Wt.POLYFILL="P",Qt=Wt,en=wt.f,tn=function(e,t){var n,a,r,i,l,o=e.target,s=e.global,u=e.stat;if(n=s?j:u?j[o]||D(o,{}):j[o]&&j[o].prototype)for(a in t){if(i=t[a],r=e.dontCallGetSet?(l=en(n,a))&&l.value:n[a],!Qt(s?a:o+(u?".":"#")+a,e.forced)&&void 0!==r){if(typeof i==typeof r)continue;Zt(i,r)}(e.sham||r&&r.sham)&<(i,"sham",!0),jt(n,a,i,e)}},nn=Object.keys||function(e){return Ft(e,Bt)},an={f:Me&&!Le?Object.defineProperties:function(e,t){Re(e);for(var n,a=Et(t),r=nn(t),i=r.length,l=0;i>l;)rt.f(e,n=r[l++],a[n]);return e}},rn=Ue("document","documentElement"),ln=st("IE_PROTO"),on=function(){},sn=function(e){return"<script>"+e+"<\/script>"},un=function(e){e.write(sn("")),e.close();var t=e.parentWindow.Object;return e=null,t},cn=function(){try{xt=new ActiveXObject("htmlfile")}catch(e){}var e,t;cn="undefined"!=typeof document?document.domain&&xt?un(xt):((t=De("iframe")).style.display="none",rn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(sn("document.F=Object")),e.close(),e.F):un(xt);for(var n=Bt.length;n--;)delete cn.prototype[Bt[n]];return cn()};ut[ln]=!0;var mn,dn,fn,gn=Object.create||function(e,t){var n;return null!==e?(on.prototype=Re(e),n=new on,on.prototype=null,n[ln]=e):n=cn(),void 0===t?n:an.f(n,t)},pn=!y(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),yn=st("IE_PROTO"),hn=Object,vn=hn.prototype,bn=pn?hn.getPrototypeOf:function(e){var t=B(e);if(U(t,yn))return t[yn];var n=t.constructor;return de(n)&&t instanceof n?n.prototype:t instanceof hn?vn:null},En=ie("iterator"),An=!1;[].keys&&("next"in(fn=[].keys())?(dn=bn(bn(fn)))!==Object.prototype&&(mn=dn):An=!0),(!Ie(mn)||y(function(){var e={};return mn[En].call(e)!==e}))&&(mn={}),de(mn[En])||jt(mn,En,function(){return this});var wn={IteratorPrototype:mn,BUGGY_SAFARI_ITERATORS:An},Cn=rt.f,Pn=ie("toStringTag"),On=function(e,t,n){e&&!n&&(e=e.prototype),e&&!U(e,Pn)&&Cn(e,Pn,{configurable:!0,value:t})},_n={},Sn=wn.IteratorPrototype,xn=function(){return this},In=String,Mn=TypeError,jn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e,t,n){try{return A(Ke(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return R(n),function(e){if(function(e){return Ie(e)||null===e}(e))return e;throw new Mn("Can't set "+In(e)+" as a prototype")}(a),Ie(n)?(t?e(n,a):n.__proto__=a,n):n}}():void 0),Nn=wn.IteratorPrototype,Dn=wn.BUGGY_SAFARI_ITERATORS,zn=ie("iterator"),Ln=function(){return this},kn=function(e,t){return{value:e,done:t}},Tn=_e.charAt,Rn=ft.set,Fn=ft.getterFor("String Iterator");!function(e,t,n,a,r,i,l){!function(e,t,n,a){e.prototype=gn(Sn,{next:it(1,function(){var e,t=Fn(this),n=t.string,a=t.index;return a>=n.length?kn(void 0,!0):(e=Tn(n,a),t.index+=e.length,kn(e,!1))})}),On(e,"String Iterator",!1),_n["String Iterator"]=xn}(n);var o,s,u,c=function(e){if(void 0===e&&f)return f;if(!Dn&&e&&e in m)return m[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},m=e.prototype,d=m[zn]||m["@@iterator"]||void 0,f=!Dn&&d||c(void 0);if(void(d&&(o=bn(d.call(new e)))!==Object.prototype&&o.next&&(bn(o)!==Nn&&(jn?jn(o,Nn):de(o[zn])||jt(o,zn,Ln)),On(o,"String Iterator",!0))))if(void(s={values:c("values"),keys:c("keys"),entries:c("entries")}))for(u in s)(Dn||!(u in m))&&jt(m,u,s[u]);else tn({target:"String",proto:!0,forced:Dn||!1},s);m[zn]!==f&&jt(m,zn,f,{name:void 0}),_n.String=f}(String,0,function(e){Rn(this,{type:"String Iterator",string:Ae(e),index:0})});var Bn=function(e){if("Function"===pe(e))return A(e)},Hn=Bn(Bn.bind),Un=function(e,t){return Ke(e),void 0===t?e:h?Hn(e,t):function(){return e.apply(t,arguments)}},Vn=function(e,t,n,a){try{return a?t(Re(n)[0],n[1]):t(n)}catch(t){!function(e,t,n){var a;Re(e);try{if(!(a=Xe(e,"return")))throw n;a=Be(a,e)}catch(e){a=e}throw n}(e,0,t)}},Gn=ie("iterator"),qn=Array.prototype,Zn=function(e){return void 0!==e&&(_n.Array===e||qn[Gn]===e)},Jn=function(){},Wn=Ue("Reflect","construct"),Kn=/^\s*(?:class|function)\b/,Xn=A(Kn.exec),Yn=!Kn.test(Jn),$n=function(e){if(!de(e))return!1;try{return Wn(Jn,[],e),!0}catch(e){return!1}},Qn=function(e){if(!de(e))return!1;switch(be(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yn||!!Xn(Kn,It(e))}catch(e){return!0}};Qn.sham=!0;var ea=!Wn||y(function(){var e;return $n($n.call)||!$n(Object)||!$n(function(){e=!0})||e})?Qn:$n,ta=function(e,t,n){Me?rt.f(e,t,it(0,n)):e[t]=n},na=ie("iterator"),aa=function(e){if(!k(e))return Xe(e,na)||Xe(e,"@@iterator")||_n[be(e)]},ra=TypeError,ia=function(e,t){var n=arguments.length<2?aa(e):t;if(Ke(n))return Re(Be(n,e));throw new ra(Je(e)+" is not iterable")},la=Array,oa=ie("iterator"),sa=!1;try{var ua=0,ca={next:function(){return{done:!!ua++}},return:function(){sa=!0}};ca[oa]=function(){return this},Array.from(ca,function(){throw 2})}catch(e){}var ma,da,fa,ga=!function(e,t){try{if(!sa)return!1}catch(e){return!1}var n=!1;try{var a={};a[oa]=function(){return{next:function(){return{done:n=!0}}}},Array.from(a)}catch(e){}return n}();function pa(e){return Math.round(100*e)}function ya(e){return Number((e/100).toFixed(2))}function ha(e){return String(ya(e)).replace(".",",")}tn({target:"Array",stat:!0,forced:ga},{from:function(e){var t=B(e),n=ea(this),a=arguments.length,r=a>1?arguments[1]:void 0,i=void 0!==r;i&&(r=Un(r,a>2?arguments[2]:void 0));var l,o,s,u,c,m,d=aa(t),f=0;if(!d||this===la&&Zn(d))for(l=Lt(t),o=n?new this(l):la(l);l>f;f++)m=i?r(t[f],f):t[f],ta(o,f,m);else for(o=n?new this:[],c=(u=ia(t,d)).next;!(s=Be(c,u)).done;f++)m=i?Vn(u,r,[s.value,f],!0):s.value,ta(o,f,m);return o.length=f,o}}),function(e){e.PaymentPlans="PaymentPlans",e.Modal="Modal"}(ma||(ma={})),function(e){e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed"}(da||(da={})),function(e){e.en="en",e["fr-FR"]="fr-FR",e.fr="fr",e["de-DE"]="de-DE",e.de="de",e.it="it",e["it-IT"]="it-IT",e.es="es",e["es-ES"]="es-ES",e.pt="pt",e["pt-PT"]="pt-PT",e.nl="nl",e["nl-NL"]="nl-NL",e["nl-BE"]="nl-BE"}(fa||(fa={}));var va,ba=function(e){return 1===(null==e?void 0:e.installments_count)&&0===(null==e?void 0:e.deferred_days)&&0===(null==e?void 0:e.deferred_months)};"function"!=typeof(va=window.Element.prototype).matches&&(va.matches=va.msMatchesSelector||va.mozMatchesSelector||va.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof va.closest&&(va.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null}),"".trim||(String.prototype.trim=function(){return this.replace(/^[\s]+|[\s]+$/g,"")}),function(e){e.DOMException||((DOMException=function(e){this.message=e}).prototype=new Error);var t,n,a=/[\11\12\14\15\40]/,r=0,i=function(e,t){if(""===t)throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided must not be empty.");if(-1!==(r=t.search(a)))throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided ('"+t[r]+"') contains HTML space characters, which are not valid in tokens.")};"function"!=typeof DOMTokenList&&function(e){var t=e.document,n=e.Object,r=n.prototype.hasOwnProperty,l=n.defineProperty,o=0,s=0,u=function(){if(!o)throw TypeError("Illegal constructor")};function c(){var t=e.event,n=t.propertyName;if(!s&&("className"===n||"classList"===n&&!l)){var r=t.srcElement,i=r[" uCLp"],o=""+r[n],u=o.trim().split(a),c=r["classList"===n?" uCL":"classList"],m=i.length;e:for(var d=0,f=i.length=u.length,g=0;d!==f;++d){for(var p=0;p!==d;++p)if(u[p]===u[d]){g++;continue e}c[d-g]=u[d]}for(var y=f-g;y<m;++y)delete c[y];if("classList"!==n)return;s=1,r.classList=c,r.className=o,s=0,c.length=u.length-g}}function m(e){if(!e||!("innerHTML"in e))throw TypeError("Illegal invocation");e.detachEvent("onpropertychange",c),o=1;try{var t=function(){};t.prototype=new u}finally{o=0}var n=t.prototype,r=new t;e:for(var i=e.className.trim().split(a),m=0,d=i.length,f=0;m!==d;++m){for(var g=0;g!==m;++g)if(i[g]===i[m]){f++;continue e}this[m-f]=i[m]}n.length=d-f,n.value=e.className,n[" uCL"]=e,l?(l(e,"classList",{enumerable:1,get:function(){return r},configurable:0,set:function(t){s=1,e.className=n.value=t+="",s=0;var i=t.trim().split(a),l=n.length;e:for(var o=0,u=n.length=i.length,c=0;o!==u;++o){for(var m=0;m!==o;++m)if(i[m]===i[o]){c++;continue e}r[o-c]=i[o]}for(var d=u-c;d<l;++d)delete r[d]}}),l(e," uCLp",{enumerable:0,configurable:0,writeable:0,value:t.prototype}),l(n," uCL",{enumerable:0,configurable:0,writeable:0,value:e})):(e.classList=r,e[" uCL"]=r,e[" uCLp"]=t.prototype),e.attachEvent("onpropertychange",c)}u.prototype.toString=u.prototype.toLocaleString=function(){return this.value},u.prototype.add=function(){e:for(var e=0,t=arguments.length,n="",a=this[" uCL"],r=a[" uCLp"];e!==t;++e){i("add",n=arguments[e]+"");for(var l=0,o=r.length,u=n;l!==o;++l){if(this[l]===n)continue e;u+=" "+this[l]}this[o]=n,r.length+=1,r.value=u}s=1,a.className=r.value,s=0},u.prototype.remove=function(){for(var e=0,t=arguments.length,n="",a=this[" uCL"],r=a[" uCLp"];e!==t;++e){i("remove",n=arguments[e]+"");for(var l=0,o=r.length,u="",c=0;l!==o;++l)c?this[l-1]=this[l]:this[l]!==n?u+=this[l]+" ":c=1;c&&(delete this[o],r.length-=1,r.value=u)}s=1,a.className=r.value,s=0},e.DOMTokenList=u;try{e.Object.defineProperty(e.Element.prototype,"classList",{enumerable:1,get:function(e){return r.call(this,"classList")||m(this),this.classList},configurable:0,set:function(e){this.className=e}})}catch(n){e[" uCL"]=m,t.documentElement.firstChild.appendChild(t.createElement("style")).styleSheet.cssText='_*{x-uCLp:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}[class]{x-uCLp/**/:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}'}}(e),t=e.DOMTokenList.prototype,n=e.document.createElement("div").classList,t.item||(t.item=function(e){return void 0===(t=this[e])?null:t;var t}),t.toggle&&!1===n.toggle("a",0)||(t.toggle=function(e){if(arguments.length>1)return this[arguments[1]?"add":"remove"](e),!!arguments[1];var t=this.value;return this.remove(t),t===this.value&&(this.add(e),!0)}),t.replace&&"boolean"==typeof n.replace("a","b")||(t.replace=function(e,t){i("replace",e),i("replace",t);var n=this.value;return this.remove(e),this.value!==n&&(this.add(t),!0)}),t.contains||(t.contains=function(e){for(var t=0,n=this.length;t!==n;++t)if(this[t]===e)return!0;return!1}),t.forEach||(t.forEach=function(e){if(1===arguments.length)for(var t=0,n=this.length;t!==n;++t)e(this[t],t,this);else{t=0,n=this.length;for(var a=arguments[1];t!==n;++t)e.call(a,this[t],t,this)}}),t.entries||(t.entries=function(){var e=this;return{next:function(){return 0<e.length?{value:[0,e[0]],done:!1}:{done:!0}}}}),t.values||(t.values=function(){var e=this;return{next:function(){return 0<e.length?{value:e[0],done:!1}:{done:!0}}}}),t.keys||(t.keys=function(){var e=this;return{next:function(){return 0<e.length?{value:0,done:!1}:{done:!0}}}})}(window);var Ea={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.","credit-features.total-credit-cost":"Davon Kreditkosten","eligibility-modal.bullet-1":"Wählen Sie <strong>Alma</strong> beim Check-out. ","eligibility-modal.bullet-2":"Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>","eligibility-modal.bullet-3":"<strong>Behalten Sie die Kontrolle</strong> , indem Sie Ihre Fälligkeitstermine in Ihrem eigenen Tempo vor- oder zurückverlegen.","eligibility-modal.no-eligibility":"Ups, die Prüfung hat anscheinend nicht funktioniert.","eligibility-modal.p1x-bullet-1":"Wählen Sie <strong>Alma - Jetzt bezahlen</strong> zum Zeitpunkt der Zahlung.","eligibility-modal.p1x-bullet-2":"Tragen Sie Ihre <strong>Kreditkarteninformationen ein.</strong>","eligibility-modal.p1x-bullet-3":"<strong> Die Bestätigung </strong> Ihrer Zahlung erfolgt sofort !","eligibility-modal.title-deferred-plan":"Zahlen Sie mit Alma in Raten oder später.","eligibility-modal.title-normal":"Zahlen Sie mit Alma in mehreren Raten.","eligibility-modal.title-pay-now":"Bezahlen Sie auf einmal mit Alma per Kreditkarte.","installments.today":"Heute","installments.total-amount":"Gesamtsumme","installments.total-fees":"Davon Kosten","payment-plan-strings.day-abbreviation":"T{deferredDays}","payment-plan-strings.default-message":"Bezahlen Sie zinsfrei in mehreren Raten mit Alma.","payment-plan-strings.deferred":"{totalAmount} zu zahlen am {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Bis zu {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Ab {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(0% Finanzierung)","payment-plan-strings.pay-now":"Zahlen Sie jetzt {totalAmount}","payment-plan-strings.pay.now.button":"Jetzt bezahlen"},Aa={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"A loan commits you and must be repaid. Check your ability to repay before committing yourself.","credit-features.total-credit-cost":"Of which cost of credit","eligibility-modal.bullet-1":"Choose <strong>Alma</strong> at checkout.","eligibility-modal.bullet-2":"Let us guide you and validate your payment in <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Stay in control</strong> by advancing or postponing your deadlines at your own pace.","eligibility-modal.no-eligibility":"Oops, looks like the simulation didn't work.","eligibility-modal.p1x-bullet-1":"Choose <strong>Alma - Pay now</strong> at checkout.","eligibility-modal.p1x-bullet-2":"Enter your <strong>credit card details.</strong>","eligibility-modal.p1x-bullet-3":"<strong>Your payment is instantly validated at </strong> !","eligibility-modal.title-deferred-plan":"Pay in installments or later by credit card with Alma.","eligibility-modal.title-normal":"Pay in installments by credit card with Alma.","eligibility-modal.title-pay-now":"Pay cash by credit card with Alma.","installments.today":"Today","installments.total-amount":"Total","installments.total-fees":"Of which costs (incl. VAT)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pay in installments with Alma","payment-plan-strings.deferred":"{totalAmount} to pay the {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Until {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"From {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(free of charge)","payment-plan-strings.pay-now":"Pay now {totalAmount}","payment-plan-strings.pay.now.button":"Pay now"},wa={"credit-features.credit-cost-display":"{creditCost} (TAE {taegPercentage})","credit-features.information":"Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.","credit-features.total-credit-cost":"Coste de crédito (incl. en el total)","eligibility-modal.bullet-1":"Elige <strong>Alma</strong> como método de pago.","eligibility-modal.bullet-2":"Déjate guiar y válida tu pago en <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantén el control</strong> adelantando o aplazando los plazos a su propio ritmo.","eligibility-modal.no-eligibility":"Uy, parece que la simulación no ha funcionado.","eligibility-modal.p1x-bullet-1":"Elije <strong>Alma - Pagar ahora</strong> al momento de la compra.","eligibility-modal.p1x-bullet-2":"Introduce los datos de tu tarjeta bancaria en <strong>.</strong>","eligibility-modal.p1x-bullet-3":"<strong>¡La validación </strong> de tu pago es instantánea!","eligibility-modal.title-deferred-plan":"Paga a plazos o posteriormente con tarjeta bancaria con Alma.","eligibility-modal.title-normal":"Pagar a plazos con tarjeta bancaria con Alma.","eligibility-modal.title-pay-now":"Paga de contado con tu tarjeta bancaria a través de alma.","installments.today":"Hoy","installments.total-amount":"Total","installments.total-fees":"De los cuales, costes (IVA incluido)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagar a plazos con Alma","payment-plan-strings.deferred":"{totalAmount} a pagar el {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Hasta {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Desde {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidad de {othersInstallmentAmount}} other {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidades de {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} plazos de {totalAmount}","payment-plan-strings.no-fee":"(sin intereses)","payment-plan-strings.pay-now":"Pague ahora {totalAmount}","payment-plan-strings.pay.now.button":"Pagar ahora"},Ca={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.","credit-features.total-credit-cost":"Dont coût du crédit","eligibility-modal.bullet-1":"Choisissez <strong>Alma</strong> au moment du paiement.","eligibility-modal.bullet-2":"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.","eligibility-modal.no-eligibility":"Oups, il semblerait que la simulation n'ait pas fonctionné.","eligibility-modal.p1x-bullet-1":"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.","eligibility-modal.p1x-bullet-2":"Renseignez les informations de votre <strong>carte bancaire.</strong>","eligibility-modal.p1x-bullet-3":"<strong>La validation </strong> de votre paiement est instantanée !","eligibility-modal.title-deferred-plan":"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.","eligibility-modal.title-normal":"Payez en plusieurs fois par carte bancaire avec Alma.","eligibility-modal.title-pay-now":"Payez comptant par carte bancaire avec Alma.","installments.today":"Aujourd'hui","installments.total-amount":"Total","installments.total-fees":"Dont frais (TTC)","payment-plan-strings.day-abbreviation":"J{deferredDays}","payment-plan-strings.default-message":"Payez en plusieurs fois avec Alma","payment-plan-strings.deferred":"{totalAmount} à payer le {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Jusqu'à {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"À partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sans frais)","payment-plan-strings.pay-now":"Payer maintenant {totalAmount}","payment-plan-strings.pay.now.button":"Payer maintenant"},Pa={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua disponibilità finanziaria prima di impegnarti.","credit-features.total-credit-cost":"Di cui commissioni","eligibility-modal.bullet-1":"Seleziona <strong>Alma</strong> come metodo di pagamento.","eligibility-modal.bullet-2":"Segui le istruzioni e completa l'acquisto <strong>in meno di 2 minuti.</strong>","eligibility-modal.bullet-3":"<strong>Gestisci il tuo piano di pagamento</strong> e modifica le scadenze secondo le tue esigenze.","eligibility-modal.no-eligibility":"Ops, sembra che qualcosa non abbia funzionato.","eligibility-modal.p1x-bullet-1":"Scegli <strong>Alma - Paga ora</strong> alla cassa.","eligibility-modal.p1x-bullet-2":"Inserisci i dati della tua <strong>carta bancaria.</strong>","eligibility-modal.p1x-bullet-3":"Ricevi la <strong>conferma di pagamento</strong> istantaneamente!","eligibility-modal.title-deferred-plan":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-normal":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-pay-now":"Paga ora con carta tramite Alma.","installments.today":"Oggi","installments.total-amount":"Totale","installments.total-fees":"Di cui commissioni","payment-plan-strings.day-abbreviation":"G{deferredDays}","payment-plan-strings.default-message":"Paga a rate con Alma, senza registrazione.","payment-plan-strings.deferred":"{totalAmount} da pagare il {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Disponibile fino a {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Pagamento rateale disponibile a partire da {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {Oggi paghi {firstInstallmentAmount} poi tra {numberOfRemainingInstallments} mese {othersInstallmentAmount}} other {Oggi paghi {firstInstallmentAmount} poi {numberOfRemainingInstallments} rate mensili di {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"In {installmentsCount} rate mensili di {totalAmount}","payment-plan-strings.no-fee":"(senza interessi)","payment-plan-strings.pay-now":"Paga ora {totalAmount}","payment-plan-strings.pay.now.button":"Paga ora"},Oa={"credit-features.credit-cost-display":"{creditCost} (gemiddeld rente percentage {taegPercentage})","credit-features.information":"Een lening is bindend en moet worden terugbetaald. Ga na of je het kunt terugbetalen voordat je jezelf vastlegt.","credit-features.total-credit-cost":"Waarvan kredietkosten","eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.","eligibility-modal.bullet-2":"Betaal gemakkelijk <strong>binnen 1 minuut </strong>. Je hebt hier geen account voor nodig.","eligibility-modal.bullet-3":"<strong>Behoud de controle </strong> en bepaal je eigen tempo. Bij Alma schuif je de deadlines gemakkelijk vooruit of achteruit. Zonder bijkomende kosten.","eligibility-modal.no-eligibility":"Oeps, het lijkt erop dat de simulatie niet werkte.","eligibility-modal.p1x-bullet-1":"Kies <strong>Alma - Betaal nu</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.","eligibility-modal.p1x-bullet-2":"Vul je <strong>gegevens </strong> in","eligibility-modal.p1x-bullet-3":"<strong>De bevestiging </strong> van jouw betaling is direct!","eligibility-modal.title-deferred-plan":"Betaal in termijnen bij Alma - helemaal rentevrij.","eligibility-modal.title-normal":"Betaal in termijnen bij Alma - helemaal rentevrij.","eligibility-modal.title-pay-now":"Betaal met iDEAL of per creditcard bij Alma.","installments.today":"Vandaag","installments.total-amount":"Totaal","installments.total-fees":"Waarvan kosten (incl. BTW)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Betaal in termijnen bij Alma - helemaal rentevrij","payment-plan-strings.deferred":"{totalAmount} te betalen op {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Tot {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Vanaf {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(zonder kosten)","payment-plan-strings.pay-now":"Betaal nu {totalAmount}","payment-plan-strings.pay.now.button":"Betaal nu"},_a={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.","credit-features.total-credit-cost":"Incluindo comissões de crédito","eligibility-modal.bullet-1":"Seleccionar <strong>Alma - Pay Now</strong> no final da compra.","eligibility-modal.bullet-2":"Siga as instruções e valide o seu pagamento em <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantenha o controlo</strong> adiando as datas de pagamento ao seu próprio ritmo.","eligibility-modal.no-eligibility":"Ups, parece que a simulação não funcionou.","eligibility-modal.p1x-bullet-1":"Escolha <strong>Alma - Pague agora</strong> no checkout.","eligibility-modal.p1x-bullet-2":"Preencha os dados do seu <strong>cartão de bancário.</strong>","eligibility-modal.p1x-bullet-3":"<strong>A validação </strong> do seu pagamento é instantânea!","eligibility-modal.title-deferred-plan":"Pagar em prestações ou mais tarde por cartão de crédito com Alma.","eligibility-modal.title-normal":"Pagar em prestações por cartão bancário com a Alma.","eligibility-modal.title-pay-now":"Pague na integralidade com a Alma por cartão bancário.","installments.today":"Hoje","installments.total-amount":"Total","installments.total-fees":"Das quais comissões (incl. IVA)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagamento em prestações com a Alma","payment-plan-strings.deferred":"{totalAmount} a pagar em {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Até {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"A partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sem encargos)","payment-plan-strings.pay-now":"Pagar agora {totalAmount}","payment-plan-strings.pay.now.button":"Pagar agora"},Sa=function(e){switch(e.slice(0,2)){case fa.fr:return Ca;case fa.es:return wa;case fa.it:return Pa;case fa.de:return Ea;case fa.pt:return _a;case fa.nl:return Oa;case fa.en:default:return Aa}},xa=function(t){var n=t.children,r=t.locale;return e.createElement(a,{messages:Sa(r),locale:r,defaultLocale:"en"},n)};function Ia(){return(Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function Ma(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var ja=function(e,t){return!!e.eligible&&!!t&&e.purchase_amount>=(null==t?void 0:t.minAmount)&&e.purchase_amount<=(null==t?void 0:t.maxAmount)},Na=function(e,a,r,i,l){var o,s,u,c,m,d=a.domain,f=a.merchantId,g=t([]),p=g[0],y=g[1],h=t(da.PENDING),v=h[0],b=h[1],E=function(e){var t=sessionStorage.getItem(e)||"";return t?JSON.parse(t):null},A=function(e){var t=e.plans,n=e.customerBillingCountry,a=e.customerShippingCountry;return(""+e.purchaseAmount.toString()+JSON.stringify(t)+n+a).split("").reduce(function(e,t){return(e<<5)-e+t.charCodeAt(0)|0},0).toString().replace("-","A")}({purchaseAmount:e,plans:r,customerBillingCountry:i,customerShippingCountry:l}),w=null==(o=E(A))?void 0:o.value,C=null==(s=E(A))?void 0:s.timestamp,P=C&&(u=C,Date.now()-u>=36e5),O=null==r?void 0:r.map(function(e){return{installments_count:e.installmentsCount,deferred_days:null==e?void 0:e.deferredDays,deferred_months:null==e?void 0:e.deferredMonths}});return n(function(){if(v===da.PENDING){var t=null;i&&(t={country:i});var n=null;l&&(n={country:l}),w&&!P&&(y(w),b(da.SUCCESS)),w&&!P||function(e,t,n){void 0===e&&(e="");try{return Promise.resolve(fetch(e,{method:"POST",headers:Ia({"Content-Type":"application/json"},n),cache:"force-cache",body:JSON.stringify(t)})).then(function(e){return e.json()})}catch(e){return Promise.reject(e)}}(d+"/v2/payments/eligibility",{purchase_amount:e,queries:O,billing_address:t,shipping_address:n},{Authorization:"Alma-Merchant-Auth "+f,"X-Alma-Agent":"Alma Widget/v3.3.12"}).then(function(e){(function(e,t){var n=Date.now();sessionStorage.setItem(e,JSON.stringify({value:t,timestamp:n}))})(A,e),y(e),b(da.SUCCESS)}).catch(function(){b(da.FAILED)})}},[v,e,A]),[(c=p,m=r,m?c.map(function(e){var t=30*(e.deferred_months?e.deferred_months:0)+(e.deferred_days?e.deferred_days:0),n=m.find(function(n){return e.installments_count===n.installmentsCount&&t===30*(n.deferredMonths?n.deferredMonths:0)+(n.deferredDays?n.deferredDays:0)});return Ia({},e,{eligible:ja(e,n)},function(e,t){var n,a=null==(n=e.constraints)?void 0:n.purchase_amount;return a&&t?{minAmount:Math.max(t.minAmount,null==a?void 0:a.minimum),maxAmount:Math.min(t.maxAmount,null==a?void 0:a.maximum)}:null!=t?t:{}}(e,n))}):c.filter(function(e){return!(1===e.installments_count&&0===e.deferred_days&&0===e.deferred_months)})),v]},Da="alma-eligibility-modal",za={desktopModal:Da+"-desktop-modal",mobileModal:Da+"-mobile-modal",leftSide:Da+"-left-side",bullet:Da+"-bullet",rightSide:Da+"-right-side",title:Da+"-title",info:Da+"-info",infoMessage:Da+"-info-message",eligibilityOptions:Da+"-eligibility-options",activeOption:Da+"-active-option",closeButton:Da+"-close-button",scheduleDetails:Da+"-schedule-details",scheduleTotal:Da+"-schedule-total",scheduleCredit:Da+"-schedule-credit",cardContainer:Da+"-card-logos",summary:Da+"-summary"},La=function(t){var n=t.currentPlan,a=r(),o=ya(n.purchase_amount+n.customer_total_cost_amount),s=ya(n.customer_total_cost_amount),u=(null==n?void 0:n.annual_interest_rate)&&n.annual_interest_rate/1e4||0,m=ya(n.customer_total_cost_amount),d=n.installments_count>4;return e.createElement("div",{className:c("_GTTk7",za.summary),"data-testid":"modal-summary"},e.createElement("div",{className:c("_34s2g",za.scheduleTotal)},e.createElement(i,{tagName:"div",id:"installments.total-amount",defaultMessage:"Total"}),e.createElement(l,{value:o||0,style:"currency",currency:"EUR"})),e.createElement("div",{className:c("_W7qIA",za.scheduleCredit)},d?e.createElement(e.Fragment,null,e.createElement(i,{id:"credit-features.total-credit-cost",defaultMessage:"Dont coût du crédit"}),e.createElement("span",{className:"_24KmE"},e.createElement(i,{id:"credit-features.credit-cost-display",defaultMessage:"{creditCost} (TAEG {taegPercentage})",values:{creditCost:a.formatNumber(s,{style:"currency",currency:"EUR"}),taegPercentage:a.formatNumber(u,{style:"percent",maximumFractionDigits:2})}}))):e.createElement(e.Fragment,null,e.createElement(i,{id:"installments.total-fees",defaultMessage:"Dont frais (TTC)",tagName:"div"}),e.createElement("div",null,e.createElement(l,{value:m,style:"currency",currency:"EUR"})))))},ka=function(t){return e.createElement("div",{className:c("_31lrj",t.className),"data-testid":"loader"},e.createElement("svg",{width:"120",height:"134",viewBox:"0 0 120 134",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M83.8164 41.0325C79.1708 22.8241 69.3458 17 59.9939 17C50.642 17 40.8171 22.8241 36.1715 41.0325L16 117H35.8804C39.119 104.311 49.1016 97.2436 59.9939 97.2436C70.8863 97.2436 80.8689 104.324 84.1075 117H104L83.8164 41.0325ZM59.9939 79.5428C53.6623 79.5428 47.925 82.0552 43.6918 86.1283L55.0936 41.9207C56.1853 37.6953 57.7985 36.3503 60.0061 36.3503C62.2136 36.3503 63.8269 37.6953 64.9185 41.9207L76.3082 86.1283C72.075 82.0552 66.3256 79.5428 59.9939 79.5428Z",fill:"#FA5022"})))};function Ta(t){var n=t.color;return e.createElement("svg",{className:t.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.5964 11.404L9.41445 8.22205L12.5964 5.04007C12.7732 4.86329 12.7732 4.50974 12.5964 4.33296L11.8893 3.62585C11.6904 3.42698 11.359 3.44908 11.1822 3.62585L8.00023 6.80783L4.81825 3.62585C4.61938 3.42698 4.28792 3.44908 4.11114 3.62585L3.40404 4.33296C3.20516 4.53183 3.20516 4.84119 3.40404 5.04007L6.58602 8.22205L3.40404 11.404C3.20516 11.6029 3.20517 11.9123 3.40404 12.1111L4.11115 12.8182C4.28792 12.995 4.61938 13.0171 4.81825 12.8182L8.00023 9.63626L11.1822 12.8182C11.359 12.995 11.6904 13.0171 11.8893 12.8182L12.5964 12.1111C12.7732 11.9344 12.7732 11.5808 12.5964 11.404Z",fill:void 0===n?"#fff":n}))}var Ra,Fa,Ba,Ha=["children","isOpen","onClose","className","contentClassName","scrollable"],Ua=function(t){var n,a=t.children,r=t.isOpen,i=t.onClose,l=t.className,o=t.contentClassName,s=t.scrollable,u=void 0!==s&&s,f=Ma(t,Ha);return m.setAppElement("body"),e.createElement(m,Object.assign({className:c("_D8SjB",l),overlayClassName:"_1yxCb",onAfterOpen:function(){d.on()},onAfterClose:function(){d.off()},onRequestClose:i,isOpen:r,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0},f),e.createElement("div",{className:"_12LLh"},e.createElement("button",{onClick:i,className:c("_3YRro",za.closeButton),"data-testid":"modal-close-button"},e.createElement(Ta,null))),e.createElement("div",{className:c("_ocM9x",o,(n={},n._1GP2F=u,n))},a))},Va=function(t){var n=t.deferred_days,a=t.deferred_months,r=t.installments_count;return 1!==r||n||a?1===r&&n?e.createElement(i,{id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{deferredDays}",values:{deferredDays:"+"+n}}):1===r&&a?e.createElement(i,{id:"payment-plan-strings.month-abbreviation",defaultMessage:"M{deferredMonths}",values:{deferredMonths:"+"+a}}):r+"x":e.createElement(i,{id:"payment-plan-strings.pay.now.button",defaultMessage:"Payer maintenant"})},Ga=function(t){var n;if(null!=(n=t.payment_plan)&&n.every(function(e){return 0===e.customer_fee&&0===e.customer_interest}))return e.createElement(e.Fragment,null," ",e.createElement(i,{id:"payment-plan-strings.no-fee",defaultMessage:"(sans frais)"}))},qa=function(t){var n=t.eligibilityPlans,a=t.currentPlanIndex,r=t.setCurrentPlanIndex;return e.createElement("div",{className:c("_1l2Oa",za.eligibilityOptions)},n.map(function(t,n){var i;return e.createElement("button",{key:n,className:c((i={},i[c("_3rue7",za.activeOption)]=n===a,i)),onClick:function(){return r(n)}},e.createElement("span",{className:"_2T78a"},Va(t)))}))},Za=function(t){var n,a,r=t.installment,s=t.index;return e.createElement("div",{className:"_z2Uiv","data-testid":"installment-"+s},e.createElement("div",{className:"_2lJQy"},e.createElement("div",{className:c("_1Z9wr",(n={},n._2Nmkl=0===s,n))}),p(1e3*r.due_date)?e.createElement(i,{id:"installments.today",defaultMessage:"Aujourd'hui",tagName:"strong"}):e.createElement(o,{value:1e3*r.due_date,day:"numeric",month:"long",year:"numeric"})),e.createElement("div",{className:c((a={},a["_ezY-3"]=0===s,a))},e.createElement(l,{value:r.total_amount/100,style:"currency",currency:"EUR"})))},Ja=function(t){var n=t.currentPlan,a=n.installments_count>4;return e.createElement(e.Fragment,null,e.createElement("div",{className:c("_MPKjS",za.scheduleDetails),"data-testid":"modal-installments-element"},((null==n?void 0:n.payment_plan)||[]).map(function(t,n){return e.createElement(Za,{key:1e3*t.due_date,installment:t,index:n})}),a&&e.createElement("div",{className:"_3a7er"},e.createElement(i,{id:"credit-features.information",defaultMessage:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager."}))))},Wa=["color"],Ka=function(t){var n=t.color,a=void 0===n?"#FA5022":n,r=Ma(t,Wa);return e.createElement("svg",Object.assign({width:"50",height:"25",viewBox:"0 0 360 109",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),e.createElement("path",{d:"M333.24 28.3462V38.4459C327.504 31.1018 319.176 26.5132 309.288 26.5132C290.208 26.5132 275.424 43.5497 275.424 64.5757C275.424 85.6018 290.208 102.638 309.288 102.638C319.872 102.638 328.668 97.3908 334.416 89.1241V100.817H352.668V28.3462H333.24ZM314.028 84.4876C303.42 84.4876 294.828 75.574 294.828 64.5757C294.828 53.5775 303.42 44.6639 314.028 44.6639C324.636 44.6639 333.228 53.5775 333.228 64.5757C333.228 75.574 324.636 84.4876 314.028 84.4876ZM109.5 8.23073H128.916V100.805H109.5V8.23073ZM151.248 59.7356C151.248 39.8117 163.5 26.5252 180.468 26.5252C191.004 26.5252 199.332 31.1976 204.348 39.1648C209.376 31.1976 217.692 26.5252 228.228 26.5252C245.196 26.5252 257.448 39.8117 257.448 59.7356V100.817H238.032V57.639C238.032 49.8635 232.872 44.7957 226.044 44.7957C219.216 44.7957 214.056 49.8755 214.056 57.639V100.817H194.64V57.639C194.64 49.8635 189.48 44.7957 182.652 44.7957C175.824 44.7957 170.664 49.8755 170.664 57.639V100.817H151.248V59.7356ZM74.34 29.101C69.744 11.9088 60.0241 6.40967 50.772 6.40967C41.5201 6.40967 31.8 11.9088 27.204 29.101L7.24805 100.829H26.916C30.12 88.8485 39.996 82.1753 50.772 82.1753C61.548 82.1753 71.424 88.8605 74.6281 100.829H94.3081L74.34 29.101ZM50.772 65.4623C44.508 65.4623 38.8321 67.8345 34.6441 71.6803L45.924 29.9397C47.0041 25.9501 48.6001 24.6802 50.784 24.6802C52.9681 24.6802 54.5641 25.9501 55.6441 29.9397L66.912 71.6803C62.724 67.8345 57.036 65.4623 50.772 65.4623Z",fill:a}))},Xa=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},e.createElement("defs",null,e.createElement("linearGradient",{id:"cardamex",x1:"10.914%",x2:"87.432%",y1:"86.279%",y2:"15.035%"},e.createElement("stop",{offset:"0%",stopColor:"#3FA9F5"}),e.createElement("stop",{offset:"100%",stopColor:"#0071BC"}))),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"url(#cardamex)",fillRule:"nonzero",d:"M22.559 16H1.379C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.441 1.338z"}),e.createElement("g",{fill:"#FFF"},e.createElement("path",{d:"M10.115 8.711L8.889 6.044H7.295v3.852L5.517 6.044H4.17l-1.778 4.03h1.103l.368-.889h2.023l.368.89h2.084V7.11l1.349 2.963h.92l1.348-2.904v2.904h.98v-4.03H11.28l-1.165 2.667zm-5.272-.474H4.23l.613-1.422v.06l.613 1.362h-.613z"}),e.createElement("path",{fillRule:"nonzero",d:"M19.372 7.94l.735-.77 1.042-1.185h-1.287L18.697 7.23l-1.164-1.245h-3.985v3.97h3.923l1.226-1.303 1.165 1.304h1.287L20.107 8.71l-.735-.77zM16.92 9.186h-2.33v-.77h2.268v-.77H14.59v-.712h2.33L18.084 8 16.92 9.185z"}))))},Ya=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{fill:"#FCFCFC",d:"M22.684 16H1.38C.627 16 0 15.39 0 14.656V1.344C0 .61.627 0 1.379 0H22.62C23.373 0 24 .61 24 1.344v13.374c0 .671-.564 1.282-1.316 1.282z"})," ",e.createElement("path",{fill:"#005098",d:"M8.889 10.726l.948-5.393h1.482l-.949 5.393zM15.704 5.452a3.658 3.658 0 0 0-1.304-.237c-1.481 0-2.489.71-2.489 1.778 0 .77.711 1.185 1.304 1.481.592.237.77.415.77.652 0 .355-.474.533-.889.533-.592 0-.889-.059-1.363-.296l-.177-.06-.178 1.186c.355.178 1.007.296 1.659.296 1.54 0 2.548-.71 2.548-1.837 0-.592-.415-1.067-1.244-1.481-.534-.237-.83-.415-.83-.652 0-.237.237-.474.83-.474.474 0 .83.118 1.126.178l.118.059.119-1.126M19.496 5.333H18.37c-.355 0-.592.119-.77.474l-2.193 4.919h1.541s.237-.652.296-.83h1.897c.059.178.178.83.178.83h1.362l-1.185-5.393zM17.66 8.77l.593-1.481s.118-.296.178-.533l.118.474s.296 1.303.356 1.54h-1.245zM7.644 5.333L6.222 9.007l-.178-.77C5.748 7.348 4.92 6.459 4.03 5.985l1.303 4.682h1.541l2.311-5.393h-1.54"}),e.createElement("path",{fill:"#F6A500",d:"M4.919 5.333h-2.37v.119c1.836.474 3.08 1.54 3.555 2.844L5.57 5.807c-.118-.414-.355-.474-.651-.474"}),e.createElement("path",{fill:"#0A5296",d:"M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z"}),e.createElement("path",{fill:"#F4A428",d:"M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z"})))},$a=function(){return e.createElement("svg",{width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{id:"Parcours-1C-B",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.createElement("g",{id:"mobile-1C-Paiement-V1",transform:"translate(-269.000000, -313.000000)"},e.createElement("g",{id:"mastercard",transform:"translate(269.000000, 313.000000)"},e.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"0",y:"0",width:"24",height:"16",rx:"1"}),e.createElement("g",{id:"Group-6",transform:"translate(4.000000, 3.000000)"},e.createElement("circle",{id:"Oval-4-Copy",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}),e.createElement("circle",{id:"Oval-4",fillOpacity:"0.25",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),e.createElement("circle",{id:"Oval-4-Copy-2",fillOpacity:"0.9",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),e.createElement("circle",{id:"Oval-4-Copy-3",fillOpacity:"0.3",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}))))))},Qa=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},e.createElement("defs",null,e.createElement("linearGradient",{id:"cardcb",x1:"5.842%",x2:"95.393%",y1:"81.753%",y2:"17.344%"},e.createElement("stop",{offset:"0%",stopColor:"#39B54A"})," ",e.createElement("stop",{offset:"100%",stopColor:"#0A5296"}))),e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{fill:"url(#cardcb)",d:"M22.621 16H1.38C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.379 1.338z"}),e.createElement("g",{fill:"#FFF"},e.createElement("path",{d:"M19.094 4.03h-6.437V8h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.066-.98-1.955-2.145-1.955zM19.094 8.593h-6.437v3.97h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.067-.98-1.955-2.145-1.955zM7.017 8.06h4.966c-.245-2.371-2.391-4.267-4.966-4.267-2.758 0-5.027 2.074-5.027 4.681s2.269 4.682 5.027 4.682c2.698 0 4.904-2.015 5.027-4.563H7.017v-.534z"}))))},er={cardContainer:"_1N3yO"},tr=function(t){var n=Array.from(new Set(t.cards));return e.createElement("div",{"data-testid":"card-logos",className:c(er.cardContainer,za.cardContainer)},n.map(function(t){return e.createElement("div",{key:t,className:er.card,"data-testid":"card-logo-"+t},"cb"===t&&e.createElement(Qa,null),"amex"===t&&e.createElement(Xa,null),"mastercard"===t&&e.createElement($a,null),"visa"===t&&e.createElement(Ya,null))}))},nr=function(t){var n=t.isCurrentPlanP1X;return e.createElement("div",{className:c("_180ro",za.info),"data-testid":"modal-info-element"},e.createElement("div",{className:"_1HqCO"},e.createElement("div",{className:c("_3B8wx",za.bullet)},"1"),e.createElement("div",{className:za.infoMessage},e.createElement(i,n?{id:"eligibility-modal.p1x-bullet-1",defaultMessage:"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-1",defaultMessage:"Choisissez <strong>Alma</strong> au moment du paiement.",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}))),e.createElement("div",{className:"_1HqCO"},e.createElement("div",{className:c("_3B8wx",za.bullet)},"2"),e.createElement("div",{className:za.infoMessage},e.createElement(i,n?{id:"eligibility-modal.p1x-bullet-2",defaultMessage:"Renseignez les informations de votre <strong>carte bancaire.</strong>",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-2",defaultMessage:"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}))),e.createElement("div",{className:"_1HqCO"},e.createElement("div",{className:c("_3B8wx",za.bullet)},"3"),e.createElement("div",{className:za.infoMessage},e.createElement(i,n?{id:"eligibility-modal.p1x-bullet-3",defaultMessage:"<strong>La validation </strong> de votre paiement est instantanée !",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-3",defaultMessage:"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}))))},ar=function(t){var n=t.isSomePlanDeferred,a=t.isCurrentPlanP1X;return e.createElement("div",{className:c("_3ERx-",za.title),"data-testid":"modal-title-element"},e.createElement(i,n?{id:"eligibility-modal.title-deferred-plan",defaultMessage:"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."}:a?{id:"eligibility-modal.title-pay-now",defaultMessage:"Payez comptant par carte bancaire avec Alma."}:{id:"eligibility-modal.title-normal",defaultMessage:"Payez en plusieurs fois par carte bancaire avec Alma."}))},rr=function(t){var n=t.children,a=t.isSomePlanDeferred,r=t.cards,i=t.isCurrentPlanP1X;return e.createElement("div",{className:c("_21g6u",za.desktopModal),"data-testid":"modal-container"},e.createElement("aside",{className:c(["_3zaP5","_2SBRC",za.leftSide])},e.createElement(ar,{isSomePlanDeferred:a,isCurrentPlanP1X:i}),e.createElement(nr,{isCurrentPlanP1X:i}),r&&e.createElement(tr,{cards:r}),e.createElement(Ka,{className:"_xW3wt",width:"75"})),e.createElement("div",{className:c("_3zaP5",za.rightSide)},n))},ir=function(t){var n=t.children,a=t.isSomePlanDeferred,r=t.cards,i=t.isCurrentPlanP1X;return e.createElement("div",{className:c("_2G7Ch",za.mobileModal),"data-testid":"modal-container"},e.createElement(ar,{isSomePlanDeferred:a,isCurrentPlanP1X:i}),n,e.createElement(nr,{isCurrentPlanP1X:i}),r&&e.createElement(tr,{cards:r}),e.createElement(Ka,{className:"_2779r",width:"75"}))},lr=function(n){var a=n.onClose,r=n.eligibilityPlans,l=n.status,o=n.cards,s=t(n.initialPlanIndex||0),u=s[0],c=s[1],m=f({minWidth:800})?rr:ir,d=r.filter(function(e){return e.eligible}),g=d[u],p=r.some(function(e){return e.deferred_days>0||e.deferred_months>0});return e.createElement(Ua,{onClose:a,ariaHideApp:!1,scrollable:!0,isOpen:!0},e.createElement(m,{isSomePlanDeferred:p,cards:o,isCurrentPlanP1X:ba(g)},l===da.PENDING&&e.createElement("div",{className:"_2oTJq"},e.createElement(ka,null)),l===da.SUCCESS&&0===d.length&&e.createElement("div",{className:"_17qNJ"},e.createElement(i,{id:"eligibility-modal.no-eligibility",defaultMessage:"Oups, il semblerait que la simulation n'ait pas fonctionné."})),l===da.SUCCESS&&d.length>=1&&e.createElement(e.Fragment,null,e.createElement(qa,{eligibilityPlans:d,currentPlanIndex:u,setCurrentPlanIndex:c}),e.createElement("div",{className:"_2u9rj"},e.createElement("div",{className:"_VRdAU"}),e.createElement(Ja,{currentPlan:g}),e.createElement(La,{currentPlan:g})))))},or=function(t){var n=t.onClose,a=t.cards,r=Na(t.purchaseAmount,t.apiData,t.configPlans,t.customerBillingCountry,t.customerShippingCountry);return e.createElement(lr,{initialPlanIndex:0,onClose:n,eligibilityPlans:r[0],status:r[1],cards:a})},sr=function(t){return e.createElement("div",{className:c("_2SwwZ",t.className),"data-testid":"loader"},e.createElement("div",{className:"_2qODo"}),e.createElement("div",{className:"_2YO01"}))},ur="alma-payment-plans",cr={container:ur+"-container",eligibilityLine:ur+"-eligibility-line",eligibilityOptions:ur+"-eligibility-options",notEligibleOption:ur+"-not-eligible-option",paymentInfo:ur+"-payment-info",activeOption:ur+"-active-option"},mr=function(a){var r,s,u,m,d=a.hideIfNotEligible,f=a.monochrome,p=a.suggestedPaymentPlan,y=a.cards,h=a.transitionDelay,v=a.hideBorder,b=void 0!==v&&v,E=a.onModalClose,A=Na(a.purchaseAmount,a.apiData,a.configPlans,a.customerBillingCountry,a.customerShippingCountry),w=A[0],C=A[1],P=w.filter(function(e){return e.eligible}),O=function(e){var t,n=e.suggestedPaymentPlan,a=e.eligibilityPlans,r=Array.isArray(n)?n:[n],i=function(){var e=r[l],t=a.findIndex(function(t){return t.installments_count===e&&t.eligible&&!t.deferred_days&&!t.deferred_months});if(-1!==t)return{v:t}};for(var l in r)if(t=i())return t.v;return 0}({eligibilityPlans:w,suggestedPaymentPlan:null!=p?p:0}),_=void 0!==p,S=void 0!==h,x=t(!1),I=x[0],M=x[1],j=w.reduce(function(e,t,n){return t.eligible?[].concat(e,[n]):e},[]),N=function(e,a){var r=t(0),i=r[0],l=r[1],o=t(!0),s=o[0],u=o[1];return n(function(){var t,n=!0;if(-1!==a)return 0!==e.length&&(!e.includes(i)&&s&&l(e[0]),t=setTimeout(function(){s&&n&&l(e[e.includes(i)?(e.indexOf(i)+1)%e.length:0])},a)),function(){n=!1,clearTimeout(t)}},[e,i]),{current:i,onHover:function(e){l(e),u(!1)},onLeave:function(){u(!0)}}}(j,S?null!=h?h:5500:_?36e5:5500),D=N.current,z=N.onHover,L=N.onLeave;return n(function(){C===da.SUCCESS&&_&&(z(O),L())},[C]),C===da.PENDING?e.createElement("div",{className:c("_TSkFv","_1ZDMS")},e.createElement(sr,null)):d&&0===P.length||0===w.length||C===da.FAILED?null:e.createElement(e.Fragment,null,e.createElement("div",{onClick:function(e){e.preventDefault(),P.length>0&&M(!0)},className:c("_TSkFv",(r={},r._UksZa=P.length>0,r["_1lr-q"]=0===P.length,r._3_qcn=b,r),cr.container),"data-testid":"widget-button"},e.createElement("div",{className:c("_bMClc",cr.eligibilityLine)},e.createElement(Ka,{className:"_LJ4nZ",color:f?"var(--off-black)":void 0}),e.createElement("div",{className:c("_17c_S",cr.eligibilityOptions)},w.map(function(t,n){var a,r=n===D;return e.createElement("div",{key:n,onMouseEnter:function(){return z(n)},onTouchStart:function(){return z(n)},onMouseOut:L,onTouchEnd:L,className:c("_2Kqjn",(a={},a[c("_3dG_J",cr.activeOption)]=r,a._2hx83=f&&r,a[c("_3O1bg",cr.notEligibleOption)]=!t.eligible,a))},Va(t))}))),e.createElement("div",{className:c("_25GrF",(s={},s[c("_3O1bg",cr.notEligibleOption)]=w[D]&&!w[D].eligible,s),cr.paymentInfo)},0!==w.length&&function(t){var n=t.installments_count,a=t.minAmount,r=void 0===a?0:a,s=t.maxAmount,u=void 0===s?0:s,c=t.payment_plan,m=t.deferred_days+30*t.deferred_months;if(!t.eligible)return e.createElement(i,t.purchase_amount>u?{id:"payment-plan-strings.ineligible-greater-than-max",defaultMessage:"Jusqu'à {maxAmount}",values:{maxAmount:e.createElement(l,{value:ya(u),style:"currency",currency:"EUR"})}}:{id:"payment-plan-strings.ineligible-lower-than-min",defaultMessage:"À partir de {minAmount}",values:{minAmount:e.createElement(l,{value:ya(r),style:"currency",currency:"EUR"})}});if(!c)throw Error("No payment plan provided for payment in "+n+" installments. Please contact us if you see this error.");if(0!==m&&1===n)return e.createElement(e.Fragment,null,e.createElement(i,{id:"payment-plan-strings.deferred",defaultMessage:"{totalAmount} à payer le {dueDate}",values:{totalAmount:e.createElement(l,{value:ya(c[0].total_amount),style:"currency",currency:"EUR"}),dueDate:e.createElement(o,{value:g(c[0].due_date),day:"numeric",month:"long",year:"numeric"})}}),Ga(t));if(n>0){var d=null==c?void 0:c.every(function(e,t){return 0===t||e.total_amount===c[0].total_amount});return ba(t)?e.createElement(e.Fragment,null,e.createElement(i,{id:"payment-plan-strings.pay-now",defaultMessage:"Payer maintenant {totalAmount}",values:{totalAmount:e.createElement(l,{value:ya(c[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:n}}),Ga(t)):e.createElement(e.Fragment,null,e.createElement(i,d?{id:"payment-plan-strings.multiple-installments-same-amount",defaultMessage:"{installmentsCount} x {totalAmount}",values:{totalAmount:e.createElement(l,{value:ya(c[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:n}}:{id:"payment-plan-strings.multiple-installments",defaultMessage:"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",values:{firstInstallmentAmount:e.createElement(l,{value:ya(c[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:n-1,othersInstallmentAmount:e.createElement(l,{value:ya(c[1].total_amount),style:"currency",currency:"EUR"})}}),Ga(t))}return e.createElement(i,{id:"payment-plan-strings.default-message",defaultMessage:"Payez en plusieurs fois avec Alma"})}(w[D]))),I&&e.createElement(lr,{initialPlanIndex:(u=D,m=j.findIndex(function(e){return e===u}),-1===m?0:m),onClose:function(e){M(!1),E&&E(e)},eligibilityPlans:P,status:C,cards:y}))},dr=function(){function t(e){this.apiData=e}return t.prototype.add=function(t,n){var a=this,r=document.querySelector(n.container);if(r&&s(r),t===ma.PaymentPlans){var i=n.container,l=n.hideBorder,o=n.monochrome,c=n.locale;r&&u(e.createElement(xa,{locale:void 0===c?fa.en:c},e.createElement(mr,{apiData:this.apiData,configPlans:n.plans,hideIfNotEligible:n.hideIfNotEligible,monochrome:void 0===o||o,purchaseAmount:n.purchaseAmount,suggestedPaymentPlan:n.suggestedPaymentPlan,cards:n.cards,customerBillingCountry:n.customerBillingCountry,customerShippingCountry:n.customerShippingCountry,transitionDelay:n.transitionDelay,hideBorder:void 0!==l&&l,onModalClose:n.onModalClose})),document.querySelector(i))}if(t===ma.Modal){var m,d=n.container,f=n.clickableSelector,g=n.purchaseAmount,p=n.plans,y=n.locale,h=void 0===y?fa.en:y,v=n.customerBillingCountry,b=n.customerShippingCountry,E=n.cards,A=n.onClose,w=function(e){r&&(s(r),A&&A(e))},C=function(){u(e.createElement(xa,{locale:h},e.createElement(or,{purchaseAmount:g,apiData:a.apiData,configPlans:p,customerBillingCountry:v,customerShippingCountry:b,onClose:w,cards:E})),document.querySelector(d))};return f&&(null==(m=document.querySelector(f))||m.addEventListener("click",C,!1)),{open:C,close:w}}},t}();!function(e){e.LIVE="https://api.getalma.eu",e.TEST="https://api.sandbox.getalma.eu"}(Ra||(Ra={})),function(e){e.initialize=function(e,t){return new dr({domain:t,merchantId:e})},e.PaymentPlans=ma.PaymentPlans,e.Modal=ma.Modal}(Fa||(Fa={})),function(e){e.priceToCents=pa,e.priceFromCents=ya,e.formatCents=ha}(Ba||(Ba={}));export{Ra as ApiMode,Ba as Utils,Fa as Widgets};
|
|
1
|
+
import e,{useState as t,useEffect as n}from"react";import{IntlProvider as a,useIntl as r,FormattedMessage as i,FormattedNumber as l,FormattedDate as o}from"react-intl";import{unmountComponentAtNode as s,render as u}from"react-dom";import c from"classnames";import m from"react-modal";import d from"no-scroll";import{useMediaQuery as p}from"react-responsive";import{secondsToMilliseconds as f,isToday as g}from"date-fns";var y=function(e){try{return!!e()}catch(e){return!0}},h=!y(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),v=Function.prototype,b=v.call,E=h&&v.bind.bind(b,b),C=h?E:function(e){return function(){return b.apply(e,arguments)}},A=Math.ceil,w=Math.floor,P=Math.trunc||function(e){var t=+e;return(t>0?w:A)(t)},S=function(e){var t=+e;return t!=t||0===t?0:P(t)},_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function O(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var x,I,M=function(e){return e&&e.Math===Math&&e},N=M("object"==typeof globalThis&&globalThis)||M("object"==typeof window&&window)||M("object"==typeof self&&self)||M("object"==typeof _&&_)||M("object"==typeof _&&_)||function(){return this}()||Function("return this")(),j=Object.defineProperty,z=function(e,t){try{j(N,e,{value:t,configurable:!0,writable:!0})}catch(n){N[e]=t}return t},k=O(function(e){var t=e.exports=N["__core-js_shared__"]||z("__core-js_shared__",{});(t.versions||(t.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),L=function(e,t){return k[e]||(k[e]=t||{})},D=function(e){return null==e},F=TypeError,R=function(e){if(D(e))throw new F("Can't call method on "+e);return e},T=Object,B=function(e){return T(R(e))},W=C({}.hasOwnProperty),H=Object.hasOwn||function(e,t){return W(B(e),t)},q=0,V=Math.random(),U=C(1..toString),G=function(e){return"Symbol("+(void 0===e?"":e)+")_"+U(++q+V,36)},Z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",K=N.process,J=N.Deno,X=K&&K.versions||J&&J.version,Y=X&&X.v8;Y&&(I=(x=Y.split("."))[0]>0&&x[0]<4?1:+(x[0]+x[1])),!I&&Z&&(!(x=Z.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=Z.match(/Chrome\/(\d+)/))&&(I=+x[1]);var $=I,Q=N.String,ee=!!Object.getOwnPropertySymbols&&!y(function(){var e=Symbol("symbol detection");return!Q(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$&&$<41}),te=ee&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ne=N.Symbol,ae=L("wks"),re=te?ne.for||ne:ne&&ne.withoutSetter||G,ie=function(e){return H(ae,e)||(ae[e]=ee&&H(ne,e)?ne[e]:re("Symbol."+e)),ae[e]},le={};le[ie("toStringTag")]="z";var oe,se,ue,ce="[object z]"===String(le),me="object"==typeof document&&document.all,de=void 0===me&&void 0!==me?function(e){return"function"==typeof e||e===me}:function(e){return"function"==typeof e},pe=C({}.toString),fe=C("".slice),ge=function(e){return fe(pe(e),8,-1)},ye=ie("toStringTag"),he=Object,ve="Arguments"===ge(function(){return arguments}()),be=ce?ge:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=he(e),ye))?n:ve?ge(t):"Object"===(a=ge(t))&&de(t.callee)?"Arguments":a},Ee=String,Ce=function(e){if("Symbol"===be(e))throw new TypeError("Cannot convert a Symbol value to a string");return Ee(e)},Ae=C("".charAt),we=C("".charCodeAt),Pe=C("".slice),Se=function(e){return function(t,n){var a,r,i=Ce(R(t)),l=S(n),o=i.length;return l<0||l>=o?e?"":void 0:(a=we(i,l))<55296||a>56319||l+1===o||(r=we(i,l+1))<56320||r>57343?e?Ae(i,l):a:e?Pe(i,l,l+2):r-56320+(a-55296<<10)+65536}},_e={codeAt:Se(!1),charAt:Se(!0)},Oe=N.WeakMap,xe=de(Oe)&&/native code/.test(String(Oe)),Ie=function(e){return"object"==typeof e?null!==e:de(e)},Me=!y(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),Ne=N.document,je=Ie(Ne)&&Ie(Ne.createElement),ze=function(e){return je?Ne.createElement(e):{}},ke=!Me&&!y(function(){return 7!==Object.defineProperty(ze("div"),"a",{get:function(){return 7}}).a}),Le=Me&&y(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),De=String,Fe=TypeError,Re=function(e){if(Ie(e))return e;throw new Fe(De(e)+" is not an object")},Te=Function.prototype.call,Be=h?Te.bind(Te):function(){return Te.apply(Te,arguments)},We=function(e){return de(e)?e:void 0},He=function(e,t){return arguments.length<2?We(N[e]):N[e]&&N[e][t]},qe=C({}.isPrototypeOf),Ve=Object,Ue=te?function(e){return"symbol"==typeof e}:function(e){var t=He("Symbol");return de(t)&&qe(t.prototype,Ve(e))},Ge=String,Ze=function(e){try{return Ge(e)}catch(e){return"Object"}},Ke=TypeError,Je=function(e){if(de(e))return e;throw new Ke(Ze(e)+" is not a function")},Xe=function(e,t){var n=e[t];return D(n)?void 0:Je(n)},Ye=TypeError,$e=TypeError,Qe=ie("toPrimitive"),et=function(e){var t=function(e,t){if(!Ie(e)||Ue(e))return e;var n,a=Xe(e,Qe);if(a){if(void 0===t&&(t="default"),n=Be(a,e,t),!Ie(n)||Ue(n))return n;throw new $e("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&de(n=e.toString)&&!Ie(a=Be(n,e)))return a;if(de(n=e.valueOf)&&!Ie(a=Be(n,e)))return a;if("string"!==t&&de(n=e.toString)&&!Ie(a=Be(n,e)))return a;throw new Ye("Can't convert object to primitive value")}(e,t)}(e,"string");return Ue(t)?t:t+""},tt=TypeError,nt=Object.defineProperty,at=Object.getOwnPropertyDescriptor,rt={f:Me?Le?function(e,t,n){if(Re(e),t=et(t),Re(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var a=at(e,t);a&&a.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:a.configurable,enumerable:"enumerable"in n?n.enumerable:a.enumerable,writable:!1})}return nt(e,t,n)}:nt:function(e,t,n){if(Re(e),t=et(t),Re(n),ke)try{return nt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new tt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},it=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lt=Me?function(e,t,n){return rt.f(e,t,it(1,n))}:function(e,t,n){return e[t]=n,e},ot=L("keys"),st=function(e){return ot[e]||(ot[e]=G(e))},ut={},ct=N.TypeError;if(xe||k.state){var mt=k.state||(k.state=new(0,N.WeakMap));mt.get=mt.get,mt.has=mt.has,mt.set=mt.set,oe=function(e,t){if(mt.has(e))throw new ct("Object already initialized");return t.facade=e,mt.set(e,t),t},se=function(e){return mt.get(e)||{}},ue=function(e){return mt.has(e)}}else{var dt=st("state");ut[dt]=!0,oe=function(e,t){if(H(e,dt))throw new ct("Object already initialized");return t.facade=e,lt(e,dt,t),t},se=function(e){return H(e,dt)?e[dt]:{}},ue=function(e){return H(e,dt)}}var pt={set:oe,get:se,has:ue,enforce:function(e){return ue(e)?se(e):oe(e,{})},getterFor:function(e){return function(t){var n;if(!Ie(t)||(n=se(t)).type!==e)throw new ct("Incompatible receiver, "+e+" required");return n}}},ft={}.propertyIsEnumerable,gt=Object.getOwnPropertyDescriptor,yt={f:gt&&!ft.call({1:2},1)?function(e){var t=gt(this,e);return!!t&&t.enumerable}:ft},ht=Object,vt=C("".split),bt=y(function(){return!ht("z").propertyIsEnumerable(0)})?function(e){return"String"===ge(e)?vt(e,""):ht(e)}:ht,Et=function(e){return bt(R(e))},Ct=Object.getOwnPropertyDescriptor,At={f:Me?Ct:function(e,t){if(e=Et(e),t=et(t),ke)try{return Ct(e,t)}catch(e){}if(H(e,t))return it(!Be(yt.f,e,t),e[t])}},wt=Function.prototype,Pt=Me&&Object.getOwnPropertyDescriptor,St=H(wt,"name"),_t={EXISTS:St,PROPER:St&&"something"===function(){}.name,CONFIGURABLE:St&&(!Me||Me&&Pt(wt,"name").configurable)},Ot=C(Function.toString);de(k.inspectSource)||(k.inspectSource=function(e){return Ot(e)});var xt,It=k.inspectSource,Mt=O(function(e){var t=_t.CONFIGURABLE,n=pt.enforce,a=pt.get,r=String,i=Object.defineProperty,l=C("".slice),o=C("".replace),s=C([].join),u=Me&&!y(function(){return 8!==i(function(){},"length",{value:8}).length}),c=String(String).split("String"),m=e.exports=function(e,a,m){"Symbol("===l(r(a),0,7)&&(a="["+o(r(a),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),m&&m.getter&&(a="get "+a),m&&m.setter&&(a="set "+a),(!H(e,"name")||t&&e.name!==a)&&(Me?i(e,"name",{value:a,configurable:!0}):e.name=a),u&&m&&H(m,"arity")&&e.length!==m.arity&&i(e,"length",{value:m.arity});try{m&&H(m,"constructor")&&m.constructor?Me&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return H(d,"source")||(d.source=s(c,"string"==typeof a?a:"")),e};Function.prototype.toString=m(function(){return de(this)&&a(this).source||It(this)},"toString")}),Nt=function(e,t,n,a){a||(a={});var r=a.enumerable,i=void 0!==a.name?a.name:t;if(de(n)&&Mt(n,i,a),a.global)r?e[t]=n:z(t,n);else{try{a.unsafe?e[t]&&(r=!0):delete e[t]}catch(e){}r?e[t]=n:rt.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e},jt=Math.max,zt=Math.min,kt=Math.min,Lt=function(e){return(t=S(e.length))>0?kt(t,9007199254740991):0;var t},Dt=function(e){return function(t,n,a){var r=Et(t),i=Lt(r);if(0===i)return!e&&-1;var l,o=function(e,t){var n=S(e);return n<0?jt(n+t,0):zt(n,t)}(a,i);if(e&&n!=n){for(;i>o;)if((l=r[o++])!=l)return!0}else for(;i>o;o++)if((e||o in r)&&r[o]===n)return e||o||0;return!e&&-1}},Ft=(Dt(!0),Dt(!1)),Rt=C([].push),Tt=function(e,t){var n,a=Et(e),r=0,i=[];for(n in a)!H(ut,n)&&H(a,n)&&Rt(i,n);for(;t.length>r;)H(a,n=t[r++])&&(~Ft(i,n)||Rt(i,n));return i},Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wt=Bt.concat("length","prototype"),Ht={f:Object.getOwnPropertyNames||function(e){return Tt(e,Wt)}},qt={f:Object.getOwnPropertySymbols},Vt=C([].concat),Ut=He("Reflect","ownKeys")||function(e){var t=Ht.f(Re(e)),n=qt.f;return n?Vt(t,n(e)):t},Gt=function(e,t,n){for(var a=Ut(t),r=rt.f,i=At.f,l=0;l<a.length;l++){var o=a[l];H(e,o)||n&&H(n,o)||r(e,o,i(t,o))}},Zt=/#|\.prototype\./,Kt=function(e,t){var n=Xt[Jt(e)];return n===$t||n!==Yt&&(de(t)?y(t):!!t)},Jt=Kt.normalize=function(e){return String(e).replace(Zt,".").toLowerCase()},Xt=Kt.data={},Yt=Kt.NATIVE="N",$t=Kt.POLYFILL="P",Qt=Kt,en=At.f,tn=function(e,t){var n,a,r,i,l,o=e.target,s=e.global,u=e.stat;if(n=s?N:u?N[o]||z(o,{}):N[o]&&N[o].prototype)for(a in t){if(i=t[a],r=e.dontCallGetSet?(l=en(n,a))&&l.value:n[a],!Qt(s?a:o+(u?".":"#")+a,e.forced)&&void 0!==r){if(typeof i==typeof r)continue;Gt(i,r)}(e.sham||r&&r.sham)&<(i,"sham",!0),Nt(n,a,i,e)}},nn=Object.keys||function(e){return Tt(e,Bt)},an={f:Me&&!Le?Object.defineProperties:function(e,t){Re(e);for(var n,a=Et(t),r=nn(t),i=r.length,l=0;i>l;)rt.f(e,n=r[l++],a[n]);return e}},rn=He("document","documentElement"),ln=st("IE_PROTO"),on=function(){},sn=function(e){return"<script>"+e+"<\/script>"},un=function(e){e.write(sn("")),e.close();var t=e.parentWindow.Object;return e=null,t},cn=function(){try{xt=new ActiveXObject("htmlfile")}catch(e){}var e,t;cn="undefined"!=typeof document?document.domain&&xt?un(xt):((t=ze("iframe")).style.display="none",rn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(sn("document.F=Object")),e.close(),e.F):un(xt);for(var n=Bt.length;n--;)delete cn.prototype[Bt[n]];return cn()};ut[ln]=!0;var mn,dn,pn,fn=Object.create||function(e,t){var n;return null!==e?(on.prototype=Re(e),n=new on,on.prototype=null,n[ln]=e):n=cn(),void 0===t?n:an.f(n,t)},gn=!y(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),yn=st("IE_PROTO"),hn=Object,vn=hn.prototype,bn=gn?hn.getPrototypeOf:function(e){var t=B(e);if(H(t,yn))return t[yn];var n=t.constructor;return de(n)&&t instanceof n?n.prototype:t instanceof hn?vn:null},En=ie("iterator"),Cn=!1;[].keys&&("next"in(pn=[].keys())?(dn=bn(bn(pn)))!==Object.prototype&&(mn=dn):Cn=!0),(!Ie(mn)||y(function(){var e={};return mn[En].call(e)!==e}))&&(mn={}),de(mn[En])||Nt(mn,En,function(){return this});var An={IteratorPrototype:mn,BUGGY_SAFARI_ITERATORS:Cn},wn=rt.f,Pn=ie("toStringTag"),Sn=function(e,t,n){e&&!n&&(e=e.prototype),e&&!H(e,Pn)&&wn(e,Pn,{configurable:!0,value:t})},_n={},On=An.IteratorPrototype,xn=function(){return this},In=String,Mn=TypeError,Nn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e,t,n){try{return C(Je(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return R(n),function(e){if(function(e){return Ie(e)||null===e}(e))return e;throw new Mn("Can't set "+In(e)+" as a prototype")}(a),Ie(n)?(t?e(n,a):n.__proto__=a,n):n}}():void 0),jn=An.IteratorPrototype,zn=An.BUGGY_SAFARI_ITERATORS,kn=ie("iterator"),Ln=function(){return this},Dn=function(e,t){return{value:e,done:t}},Fn=_e.charAt,Rn=pt.set,Tn=pt.getterFor("String Iterator");!function(e,t,n,a,r,i,l){!function(e,t,n,a){e.prototype=fn(On,{next:it(1,function(){var e,t=Tn(this),n=t.string,a=t.index;return a>=n.length?Dn(void 0,!0):(e=Fn(n,a),t.index+=e.length,Dn(e,!1))})}),Sn(e,"String Iterator",!1),_n["String Iterator"]=xn}(n);var o,s,u,c=function(e){if(void 0===e&&p)return p;if(!zn&&e&&e in m)return m[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},m=e.prototype,d=m[kn]||m["@@iterator"]||void 0,p=!zn&&d||c(void 0);if(void(d&&(o=bn(d.call(new e)))!==Object.prototype&&o.next&&(bn(o)!==jn&&(Nn?Nn(o,jn):de(o[kn])||Nt(o,kn,Ln)),Sn(o,"String Iterator",!0))))if(void(s={values:c("values"),keys:c("keys"),entries:c("entries")}))for(u in s)(zn||!(u in m))&&Nt(m,u,s[u]);else tn({target:"String",proto:!0,forced:zn||!1},s);m[kn]!==p&&Nt(m,kn,p,{name:void 0}),_n.String=p}(String,0,function(e){Rn(this,{type:"String Iterator",string:Ce(e),index:0})});var Bn=function(e){if("Function"===ge(e))return C(e)},Wn=Bn(Bn.bind),Hn=function(e,t){return Je(e),void 0===t?e:h?Wn(e,t):function(){return e.apply(t,arguments)}},qn=function(e,t,n,a){try{return a?t(Re(n)[0],n[1]):t(n)}catch(t){!function(e,t,n){var a;Re(e);try{if(!(a=Xe(e,"return")))throw n;a=Be(a,e)}catch(e){a=e}throw n}(e,0,t)}},Vn=ie("iterator"),Un=Array.prototype,Gn=function(e){return void 0!==e&&(_n.Array===e||Un[Vn]===e)},Zn=function(){},Kn=He("Reflect","construct"),Jn=/^\s*(?:class|function)\b/,Xn=C(Jn.exec),Yn=!Jn.test(Zn),$n=function(e){if(!de(e))return!1;try{return Kn(Zn,[],e),!0}catch(e){return!1}},Qn=function(e){if(!de(e))return!1;switch(be(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yn||!!Xn(Jn,It(e))}catch(e){return!0}};Qn.sham=!0;var ea=!Kn||y(function(){var e;return $n($n.call)||!$n(Object)||!$n(function(){e=!0})||e})?Qn:$n,ta=function(e,t,n){Me?rt.f(e,t,it(0,n)):e[t]=n},na=ie("iterator"),aa=function(e){if(!D(e))return Xe(e,na)||Xe(e,"@@iterator")||_n[be(e)]},ra=TypeError,ia=function(e,t){var n=arguments.length<2?aa(e):t;if(Je(n))return Re(Be(n,e));throw new ra(Ze(e)+" is not iterable")},la=Array,oa=ie("iterator"),sa=!1;try{var ua=0,ca={next:function(){return{done:!!ua++}},return:function(){sa=!0}};ca[oa]=function(){return this},Array.from(ca,function(){throw 2})}catch(e){}var ma,da,pa,fa=!function(e,t){try{if(!sa)return!1}catch(e){return!1}var n=!1;try{var a={};a[oa]=function(){return{next:function(){return{done:n=!0}}}},Array.from(a)}catch(e){}return n}();function ga(e){return Math.round(100*e)}function ya(e){return Number((e/100).toFixed(2))}function ha(e){return String(ya(e)).replace(".",",")}tn({target:"Array",stat:!0,forced:fa},{from:function(e){var t=B(e),n=ea(this),a=arguments.length,r=a>1?arguments[1]:void 0,i=void 0!==r;i&&(r=Hn(r,a>2?arguments[2]:void 0));var l,o,s,u,c,m,d=aa(t),p=0;if(!d||this===la&&Gn(d))for(l=Lt(t),o=n?new this(l):la(l);l>p;p++)m=i?r(t[p],p):t[p],ta(o,p,m);else for(o=n?new this:[],c=(u=ia(t,d)).next;!(s=Be(c,u)).done;p++)m=i?qn(u,r,[s.value,p],!0):s.value,ta(o,p,m);return o.length=p,o}}),function(e){e.PaymentPlans="PaymentPlans",e.Modal="Modal"}(ma||(ma={})),function(e){e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed"}(da||(da={})),function(e){e.en="en",e["fr-FR"]="fr-FR",e.fr="fr",e["de-DE"]="de-DE",e.de="de",e.it="it",e["it-IT"]="it-IT",e.es="es",e["es-ES"]="es-ES",e.pt="pt",e["pt-PT"]="pt-PT",e.nl="nl",e["nl-NL"]="nl-NL",e["nl-BE"]="nl-BE"}(pa||(pa={}));var va,ba=function(e){return 1===(null==e?void 0:e.installments_count)&&0===(null==e?void 0:e.deferred_days)&&0===(null==e?void 0:e.deferred_months)};"function"!=typeof(va=window.Element.prototype).matches&&(va.matches=va.msMatchesSelector||va.mozMatchesSelector||va.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof va.closest&&(va.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null}),"".trim||(String.prototype.trim=function(){return this.replace(/^[\s]+|[\s]+$/g,"")}),function(e){e.DOMException||((DOMException=function(e){this.message=e}).prototype=new Error);var t,n,a=/[\11\12\14\15\40]/,r=0,i=function(e,t){if(""===t)throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided must not be empty.");if(-1!==(r=t.search(a)))throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided ('"+t[r]+"') contains HTML space characters, which are not valid in tokens.")};"function"!=typeof DOMTokenList&&function(e){var t=e.document,n=e.Object,r=n.prototype.hasOwnProperty,l=n.defineProperty,o=0,s=0,u=function(){if(!o)throw TypeError("Illegal constructor")};function c(){var t=e.event,n=t.propertyName;if(!s&&("className"===n||"classList"===n&&!l)){var r=t.srcElement,i=r[" uCLp"],o=""+r[n],u=o.trim().split(a),c=r["classList"===n?" uCL":"classList"],m=i.length;e:for(var d=0,p=i.length=u.length,f=0;d!==p;++d){for(var g=0;g!==d;++g)if(u[g]===u[d]){f++;continue e}c[d-f]=u[d]}for(var y=p-f;y<m;++y)delete c[y];if("classList"!==n)return;s=1,r.classList=c,r.className=o,s=0,c.length=u.length-f}}function m(e){if(!e||!("innerHTML"in e))throw TypeError("Illegal invocation");e.detachEvent("onpropertychange",c),o=1;try{var t=function(){};t.prototype=new u}finally{o=0}var n=t.prototype,r=new t;e:for(var i=e.className.trim().split(a),m=0,d=i.length,p=0;m!==d;++m){for(var f=0;f!==m;++f)if(i[f]===i[m]){p++;continue e}this[m-p]=i[m]}n.length=d-p,n.value=e.className,n[" uCL"]=e,l?(l(e,"classList",{enumerable:1,get:function(){return r},configurable:0,set:function(t){s=1,e.className=n.value=t+="",s=0;var i=t.trim().split(a),l=n.length;e:for(var o=0,u=n.length=i.length,c=0;o!==u;++o){for(var m=0;m!==o;++m)if(i[m]===i[o]){c++;continue e}r[o-c]=i[o]}for(var d=u-c;d<l;++d)delete r[d]}}),l(e," uCLp",{enumerable:0,configurable:0,writeable:0,value:t.prototype}),l(n," uCL",{enumerable:0,configurable:0,writeable:0,value:e})):(e.classList=r,e[" uCL"]=r,e[" uCLp"]=t.prototype),e.attachEvent("onpropertychange",c)}u.prototype.toString=u.prototype.toLocaleString=function(){return this.value},u.prototype.add=function(){e:for(var e=0,t=arguments.length,n="",a=this[" uCL"],r=a[" uCLp"];e!==t;++e){i("add",n=arguments[e]+"");for(var l=0,o=r.length,u=n;l!==o;++l){if(this[l]===n)continue e;u+=" "+this[l]}this[o]=n,r.length+=1,r.value=u}s=1,a.className=r.value,s=0},u.prototype.remove=function(){for(var e=0,t=arguments.length,n="",a=this[" uCL"],r=a[" uCLp"];e!==t;++e){i("remove",n=arguments[e]+"");for(var l=0,o=r.length,u="",c=0;l!==o;++l)c?this[l-1]=this[l]:this[l]!==n?u+=this[l]+" ":c=1;c&&(delete this[o],r.length-=1,r.value=u)}s=1,a.className=r.value,s=0},e.DOMTokenList=u;try{e.Object.defineProperty(e.Element.prototype,"classList",{enumerable:1,get:function(e){return r.call(this,"classList")||m(this),this.classList},configurable:0,set:function(e){this.className=e}})}catch(n){e[" uCL"]=m,t.documentElement.firstChild.appendChild(t.createElement("style")).styleSheet.cssText='_*{x-uCLp:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}[class]{x-uCLp/**/:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}'}}(e),t=e.DOMTokenList.prototype,n=e.document.createElement("div").classList,t.item||(t.item=function(e){return void 0===(t=this[e])?null:t;var t}),t.toggle&&!1===n.toggle("a",0)||(t.toggle=function(e){if(arguments.length>1)return this[arguments[1]?"add":"remove"](e),!!arguments[1];var t=this.value;return this.remove(t),t===this.value&&(this.add(e),!0)}),t.replace&&"boolean"==typeof n.replace("a","b")||(t.replace=function(e,t){i("replace",e),i("replace",t);var n=this.value;return this.remove(e),this.value!==n&&(this.add(t),!0)}),t.contains||(t.contains=function(e){for(var t=0,n=this.length;t!==n;++t)if(this[t]===e)return!0;return!1}),t.forEach||(t.forEach=function(e){if(1===arguments.length)for(var t=0,n=this.length;t!==n;++t)e(this[t],t,this);else{t=0,n=this.length;for(var a=arguments[1];t!==n;++t)e.call(a,this[t],t,this)}}),t.entries||(t.entries=function(){var e=this;return{next:function(){return 0<e.length?{value:[0,e[0]],done:!1}:{done:!0}}}}),t.values||(t.values=function(){var e=this;return{next:function(){return 0<e.length?{value:e[0],done:!1}:{done:!0}}}}),t.keys||(t.keys=function(){var e=this;return{next:function(){return 0<e.length?{value:0,done:!1}:{done:!0}}}})}(window);var Ea={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Überprüfen Sie Ihre Rückzahlungsmöglichkeiten, bevor Sie eine Verpflichtung eingehen.","credit-features.information.title":"Ein Kredit verpflichtet Sie und muss zurückgezahlt werden.","credit-features.legal-text":"Kredit in Höhe von {totalWithoutFirstInstallment} zu einem festen Sollzinssatz von {taegPercentage} über eine Laufzeit von {installmeentsCountWithoutFirst} Monaten. Ermöglicht, zusätzlich zu einer Anzahlung von {firstInstallmentAmount}, die Finanzierung eines Kaufs in Höhe von {productPriceWithoutCreditCost}. Vorbehaltlich der Prüfung und Annahme durch Alma. Gesetzliche Widerrufsfrist von 14 Tagen. Simulation präsentiert von Alma, eingetragen im RCS Nanterre unter der Nummer 839 100 575, Zahlungsinstitut und Finanzierungsgesellschaft, zugelassen von der ACPR unter der Nummer 17408 (IPC-Nummer / Bankcode).","credit-features.total-credit-cost":"Davon Kreditkosten","eligibility-modal.bullet-1":"Wählen Sie <strong>Alma</strong> beim Check-out. ","eligibility-modal.bullet-2":"Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>","eligibility-modal.bullet-3":"<strong>Behalten Sie die Kontrolle</strong> , indem Sie Ihre Fälligkeitstermine in Ihrem eigenen Tempo vor- oder zurückverlegen.","eligibility-modal.no-eligibility":"Ups, die Prüfung hat anscheinend nicht funktioniert.","eligibility-modal.p1x-bullet-1":"Wählen Sie <strong>Alma - Jetzt bezahlen</strong> zum Zeitpunkt der Zahlung.","eligibility-modal.p1x-bullet-2":"Tragen Sie Ihre <strong>Kreditkarteninformationen ein.</strong>","eligibility-modal.p1x-bullet-3":"<strong> Die Bestätigung </strong> Ihrer Zahlung erfolgt sofort !","eligibility-modal.title-deferred-plan":"Zahlen Sie mit Alma in Raten oder später.","eligibility-modal.title-normal":"Zahlen Sie mit Alma in mehreren Raten.","eligibility-modal.title-pay-now":"Bezahlen Sie auf einmal mit Alma per Kreditkarte.","installments.today":"Heute","installments.total-amount":"Gesamtsumme","installments.total-fees":"Davon Kosten","payment-plan-strings.credit":"Klicken Sie, um mehr zu erfahren","payment-plan-strings.day-abbreviation":"T{deferredDays}","payment-plan-strings.default-message":"Bezahlen Sie zinsfrei in mehreren Raten mit Alma.","payment-plan-strings.deferred":"{totalAmount} zu zahlen am {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Bis zu {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Ab {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(0% Finanzierung)","payment-plan-strings.pay-now":"Zahlen Sie jetzt {totalAmount}","payment-plan-strings.pay.now.button":"Jetzt bezahlen"},Ca={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Check your repayment capacity before committing yourself.","credit-features.information.title":"Credit is a commitment and must be repaid.","credit-features.legal-text":"Loan of {totalWithoutFirstInstallment} at a fixed interest rate of {taegPercentage} over a period of {installmeentsCountWithoutFirst} months. In addition to a down payment of {firstInstallmentAmount}, this loan can be used to finance a purchase of {productPriceWithoutCreditCost}. Subject to review and acceptance by Alma. Legal cooling-off period of 14 days. Simulation presented by Alma, registered with the RCS Nanterre under number 839 100 575, payment and finance company approved by the ACPR under number 17408 (CIB number / Bank code).","credit-features.total-credit-cost":"Of which cost of credit","eligibility-modal.bullet-1":"Choose <strong>Alma</strong> at checkout.","eligibility-modal.bullet-2":"Let us guide you and validate your payment in <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Stay in control</strong> by advancing or postponing your deadlines at your own pace.","eligibility-modal.no-eligibility":"Oops, looks like the simulation didn't work.","eligibility-modal.p1x-bullet-1":"Choose <strong>Alma - Pay now</strong> at checkout.","eligibility-modal.p1x-bullet-2":"Enter your <strong>credit card details.</strong>","eligibility-modal.p1x-bullet-3":"<strong>Your payment is instantly validated at </strong> !","eligibility-modal.title-deferred-plan":"Pay in installments or later by credit card with Alma.","eligibility-modal.title-normal":"Pay in installments by credit card with Alma.","eligibility-modal.title-pay-now":"Pay cash by credit card with Alma.","installments.today":"Today","installments.total-amount":"Total","installments.total-fees":"Of which costs (incl. VAT)","payment-plan-strings.credit":"Click to find out more","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pay in installments with Alma","payment-plan-strings.deferred":"{totalAmount} to pay the {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Until {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"From {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(free of charge)","payment-plan-strings.pay-now":"Pay now {totalAmount}","payment-plan-strings.pay.now.button":"Pay now"},Aa={"credit-features.credit-cost-display":"{creditCost} (TAE {taegPercentage})","credit-features.information":"Compruebe tu capacidad de reembolso antes de comprometerte.","credit-features.information.title":"El crédito y/o pago a plazos es un compromiso y debe devolverse.","credit-features.legal-text":"{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Préstamo de a un tipo deudor fijo de a lo largo de un periodo de meses. {firstInstallmentAmount} {productPriceWithoutCreditCost}Además de un depósito de , esto le permitirá financiar una compra de . Sujeto a revisión y aceptación por parte de Alma. Plazo legal de retractación de 14 días. Simulación presentada por Alma, inscrita en el Registro Mercantil de Nanterre con el número 839 100 575, sociedad de pago y financiación autorizada por la ACPR con el número 17408 (número CIB / código bancario).","credit-features.total-credit-cost":"Coste de crédito (incl. en el total)","eligibility-modal.bullet-1":"Elige <strong>Alma</strong> como método de pago.","eligibility-modal.bullet-2":"Déjate guiar y válida tu pago en <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantén el control</strong> adelantando o aplazando los plazos a su propio ritmo.","eligibility-modal.no-eligibility":"Uy, parece que la simulación no ha funcionado.","eligibility-modal.p1x-bullet-1":"Elije <strong>Alma - Pagar ahora</strong> al momento de la compra.","eligibility-modal.p1x-bullet-2":"Introduce los datos de tu tarjeta bancaria en <strong>.</strong>","eligibility-modal.p1x-bullet-3":"<strong>¡La validación </strong> de tu pago es instantánea!","eligibility-modal.title-deferred-plan":"Paga a plazos o posteriormente con tarjeta bancaria con Alma.","eligibility-modal.title-normal":"Pagar a plazos con tarjeta bancaria con Alma.","eligibility-modal.title-pay-now":"Paga de contado con tu tarjeta bancaria a través de alma.","installments.today":"Hoy","installments.total-amount":"Total","installments.total-fees":"De los cuales, costes (IVA incluido)","payment-plan-strings.credit":"Haz click para más información","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagar a plazos con Alma","payment-plan-strings.deferred":"{totalAmount} a pagar el {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Hasta {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Desde {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidad de {othersInstallmentAmount}} other {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidades de {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} plazos de {totalAmount}","payment-plan-strings.no-fee":"(sin intereses)","payment-plan-strings.pay-now":"Pague ahora {totalAmount}","payment-plan-strings.pay.now.button":"Pagar ahora"},wa={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Vérifiez vos capacités de remboursement avant de vous engager.","credit-features.information.title":"Un crédit vous engage et doit être remboursé.","credit-features.legal-text":"Crédit d'un montant de {totalWithoutFirstInstallment} au taux débiteur fixe de {taegPercentage} sur une durée de {installmeentsCountWithoutFirst} mois. Permettant, en complément d'un acompte de {firstInstallmentAmount}, de financer un achat d'un montant de {productPriceWithoutCreditCost}. Sous réserve d'étude et d'acceptation par Alma. Délai légal de rétractation de 14 jours. Simulation présentée par Alma, immatriculée au RCS Nanterre sous le numéro 839 100 575, établissement de paiement et société de financement agréée par l’ACPR sous le n° 17408 (numéro CIB / Code banque).","credit-features.total-credit-cost":"Dont coût du crédit","eligibility-modal.bullet-1":"Choisissez <strong>Alma</strong> au moment du paiement.","eligibility-modal.bullet-2":"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.","eligibility-modal.no-eligibility":"Oups, il semblerait que la simulation n'ait pas fonctionné.","eligibility-modal.p1x-bullet-1":"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.","eligibility-modal.p1x-bullet-2":"Renseignez les informations de votre <strong>carte bancaire.</strong>","eligibility-modal.p1x-bullet-3":"<strong>La validation </strong> de votre paiement est instantanée !","eligibility-modal.title-deferred-plan":"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.","eligibility-modal.title-normal":"Payez en plusieurs fois par carte bancaire avec Alma.","eligibility-modal.title-pay-now":"Payez comptant par carte bancaire avec Alma.","installments.today":"Aujourd'hui","installments.total-amount":"Total","installments.total-fees":"Dont frais (TTC)","payment-plan-strings.credit":"Cliquez pour en savoir plus","payment-plan-strings.day-abbreviation":"J{deferredDays}","payment-plan-strings.default-message":"Payez en plusieurs fois avec Alma","payment-plan-strings.deferred":"{totalAmount} à payer le {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Jusqu'à {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"À partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sans frais)","payment-plan-strings.pay-now":"Payer maintenant {totalAmount}","payment-plan-strings.pay.now.button":"Payer maintenant"},Pa={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Verificate la vostra capacità di rimborso prima di prendere un impegno.","credit-features.information.title":"Il credito è un impegno e deve essere ripagato.","credit-features.legal-text":"{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Prestito a tasso fisso per un periodo di mesi. {firstInstallmentAmount} {productPriceWithoutCreditCost}Oltre a un deposito di , questo vi permetterà di finanziare un acquisto di . Soggetto a revisione e accettazione da parte di Alma. Periodo di recesso legale di 14 giorni. Simulazione presentata da Alma, iscritta al Registro del Commercio e delle Imprese di Nanterre con il numero 839 100 575, società di pagamento e di finanziamento approvata dall'ACPR con il numero 17408 (numero CIB / codice bancario).","credit-features.total-credit-cost":"Di cui commissioni","eligibility-modal.bullet-1":"Seleziona <strong>Alma</strong> come metodo di pagamento.","eligibility-modal.bullet-2":"Segui le istruzioni e completa l'acquisto <strong>in meno di 2 minuti.</strong>","eligibility-modal.bullet-3":"<strong>Gestisci il tuo piano di pagamento</strong> e modifica le scadenze secondo le tue esigenze.","eligibility-modal.no-eligibility":"Ops, sembra che qualcosa non abbia funzionato.","eligibility-modal.p1x-bullet-1":"Scegli <strong>Alma - Paga ora</strong> alla cassa.","eligibility-modal.p1x-bullet-2":"Inserisci i dati della tua <strong>carta bancaria.</strong>","eligibility-modal.p1x-bullet-3":"Ricevi la <strong>conferma di pagamento</strong> istantaneamente!","eligibility-modal.title-deferred-plan":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-normal":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-pay-now":"Paga ora con carta tramite Alma.","installments.today":"Oggi","installments.total-amount":"Totale","installments.total-fees":"Di cui commissioni","payment-plan-strings.credit":"Clicca qui per saperne di più","payment-plan-strings.day-abbreviation":"G{deferredDays}","payment-plan-strings.default-message":"Paga a rate con Alma, senza registrazione.","payment-plan-strings.deferred":"{totalAmount} da pagare il {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Disponibile fino a {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Pagamento rateale disponibile a partire da {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {Oggi paghi {firstInstallmentAmount} poi tra {numberOfRemainingInstallments} mese {othersInstallmentAmount}} other {Oggi paghi {firstInstallmentAmount} poi {numberOfRemainingInstallments} rate mensili di {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"In {installmentsCount} rate mensili di {totalAmount}","payment-plan-strings.no-fee":"(senza interessi)","payment-plan-strings.pay-now":"Paga ora {totalAmount}","payment-plan-strings.pay.now.button":"Paga ora"},Sa={"credit-features.credit-cost-display":"{creditCost} (gemiddeld rente percentage {taegPercentage})","credit-features.information":"Controleer uw terugbetalingscapaciteit voordat u een toezegging doet.","credit-features.information.title":"Krediet is een verplichting en moet worden terugbetaald.","credit-features.legal-text":"{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Lening van tegen een vaste rentevoet van over een periode van maanden. {firstInstallmentAmount} {productPriceWithoutCreditCost}Naast een aanbetaling van , kun je hiermee een aankoop financieren van . Onder voorbehoud van beoordeling en aanvaarding door Alma. Wettelijke herroepingstermijn van 14 dagen. Simulatie aangeboden door Alma, ingeschreven in het handels- en bedrijvenregister van Nanterre onder nummer 839 100 575, betalings- en financieringsmaatschappij erkend door de ACPR onder nummer 17408 (CIB-nummer / bankcode).","credit-features.total-credit-cost":"Waarvan kredietkosten","eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.","eligibility-modal.bullet-2":"Betaal gemakkelijk <strong>binnen 1 minuut </strong>. Je hebt hier geen account voor nodig.","eligibility-modal.bullet-3":"<strong>Behoud de controle </strong> en bepaal je eigen tempo. Bij Alma schuif je de deadlines gemakkelijk vooruit of achteruit. Zonder bijkomende kosten.","eligibility-modal.no-eligibility":"Oeps, het lijkt erop dat de simulatie niet werkte.","eligibility-modal.p1x-bullet-1":"Kies <strong>Alma - Betaal nu</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.","eligibility-modal.p1x-bullet-2":"Vul je <strong>gegevens </strong> in","eligibility-modal.p1x-bullet-3":"<strong>De bevestiging </strong> van jouw betaling is direct!","eligibility-modal.title-deferred-plan":"Betaal in termijnen bij Alma - helemaal rentevrij.","eligibility-modal.title-normal":"Betaal in termijnen bij Alma - helemaal rentevrij.","eligibility-modal.title-pay-now":"Betaal met iDEAL of per creditcard bij Alma.","installments.today":"Vandaag","installments.total-amount":"Totaal","installments.total-fees":"Waarvan kosten (incl. BTW)","payment-plan-strings.credit":"Klik hier voor meer informatie","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Betaal in termijnen bij Alma - helemaal rentevrij","payment-plan-strings.deferred":"{totalAmount} te betalen op {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Tot {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Vanaf {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(zonder kosten)","payment-plan-strings.pay-now":"Betaal nu {totalAmount}","payment-plan-strings.pay.now.button":"Betaal nu"},_a={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Verifique a sua capacidade de reembolso antes de assumir um compromisso.","credit-features.information.title":"O crédito é um compromisso e deve ser reembolsado.","credit-features.legal-text":"{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Empréstimo de a uma taxa de juro fixa de durante um período de meses. {firstInstallmentAmount} {productPriceWithoutCreditCost}Para além de um depósito de , isto permitir-lhe-á financiar uma compra de . Sujeito a análise e aceitação pela Alma. Prazo legal de retratação de 14 dias. Simulação apresentada pela Alma, inscrita na Conservatória do Registo Comercial e das Sociedades de Nanterre sob o número 839 100 575, sociedade de pagamento e de financiamento aprovada pela ACPR sob o número 17408 (número CIB / código bancário).","credit-features.total-credit-cost":"Incluindo comissões de crédito","eligibility-modal.bullet-1":"Seleccionar <strong>Alma - Pay Now</strong> no final da compra.","eligibility-modal.bullet-2":"Siga as instruções e valide o seu pagamento em <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantenha o controlo</strong> adiando as datas de pagamento ao seu próprio ritmo.","eligibility-modal.no-eligibility":"Ups, parece que a simulação não funcionou.","eligibility-modal.p1x-bullet-1":"Escolha <strong>Alma - Pague agora</strong> no checkout.","eligibility-modal.p1x-bullet-2":"Preencha os dados do seu <strong>cartão de bancário.</strong>","eligibility-modal.p1x-bullet-3":"<strong>A validação </strong> do seu pagamento é instantânea!","eligibility-modal.title-deferred-plan":"Pagar em prestações ou mais tarde por cartão de crédito com Alma.","eligibility-modal.title-normal":"Pagar em prestações por cartão bancário com a Alma.","eligibility-modal.title-pay-now":"Pague na integralidade com a Alma por cartão bancário.","installments.today":"Hoje","installments.total-amount":"Total","installments.total-fees":"Das quais comissões (incl. IVA)","payment-plan-strings.credit":"Clique aqui para saber mais","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagamento em prestações com a Alma","payment-plan-strings.deferred":"{totalAmount} a pagar em {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Até {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"A partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sem encargos)","payment-plan-strings.pay-now":"Pagar agora {totalAmount}","payment-plan-strings.pay.now.button":"Pagar agora"},Oa=function(e){switch(e.slice(0,2)){case pa.fr:return wa;case pa.es:return Aa;case pa.it:return Pa;case pa.de:return Ea;case pa.pt:return _a;case pa.nl:return Sa;case pa.en:default:return Ca}},xa=function(t){var n=t.children,r=t.locale;return e.createElement(a,{messages:Oa(r),locale:r,defaultLocale:"en"},n)};function Ia(){return(Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function Ma(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var Na=function(e,t){return!!e.eligible&&!!t&&e.purchase_amount>=(null==t?void 0:t.minAmount)&&e.purchase_amount<=(null==t?void 0:t.maxAmount)},ja=function(e,a,r,i,l){var o,s,u,c,m,d=a.domain,p=a.merchantId,f=t([]),g=f[0],y=f[1],h=t(da.PENDING),v=h[0],b=h[1],E=function(e){var t=sessionStorage.getItem(e)||"";return t?JSON.parse(t):null},C=function(e){var t=e.plans,n=e.customerBillingCountry,a=e.customerShippingCountry;return(""+e.purchaseAmount.toString()+JSON.stringify(t)+n+a).split("").reduce(function(e,t){return(e<<5)-e+t.charCodeAt(0)|0},0).toString().replace("-","A")}({purchaseAmount:e,plans:r,customerBillingCountry:i,customerShippingCountry:l}),A=null==(o=E(C))?void 0:o.value,w=null==(s=E(C))?void 0:s.timestamp,P=w&&(u=w,Date.now()-u>=36e5),S=null==r?void 0:r.map(function(e){return{installments_count:e.installmentsCount,deferred_days:null==e?void 0:e.deferredDays,deferred_months:null==e?void 0:e.deferredMonths}});return n(function(){if(v===da.PENDING){var t=null;i&&(t={country:i});var n=null;l&&(n={country:l}),A&&!P&&(y(A),b(da.SUCCESS)),A&&!P||function(e,t,n){void 0===e&&(e="");try{return Promise.resolve(fetch(e,{method:"POST",headers:Ia({"Content-Type":"application/json"},n),cache:"force-cache",body:JSON.stringify(t)})).then(function(e){return e.json()})}catch(e){return Promise.reject(e)}}(d+"/v2/payments/eligibility",{purchase_amount:e,queries:S,billing_address:t,shipping_address:n},{Authorization:"Alma-Merchant-Auth "+p,"X-Alma-Agent":"Alma Widget/v3.4.0"}).then(function(e){(function(e,t){var n=Date.now();sessionStorage.setItem(e,JSON.stringify({value:t,timestamp:n}))})(C,e),y(e),b(da.SUCCESS)}).catch(function(){b(da.FAILED)})}},[v,e,C]),[(c=g,m=r,m?c.map(function(e){var t=30*(e.deferred_months?e.deferred_months:0)+(e.deferred_days?e.deferred_days:0),n=m.find(function(n){return e.installments_count===n.installmentsCount&&t===30*(n.deferredMonths?n.deferredMonths:0)+(n.deferredDays?n.deferredDays:0)});return Ia({},e,{eligible:Na(e,n)},function(e,t){var n,a=null==(n=e.constraints)?void 0:n.purchase_amount;return a&&t?{minAmount:Math.max(t.minAmount,null==a?void 0:a.minimum),maxAmount:Math.min(t.maxAmount,null==a?void 0:a.maximum)}:null!=t?t:{}}(e,n))}):c.filter(function(e){return!(1===e.installments_count&&0===e.deferred_days&&0===e.deferred_months)})),v]},za="alma-eligibility-modal",ka={desktopModal:za+"-desktop-modal",mobileModal:za+"-mobile-modal",leftSide:za+"-left-side",bullet:za+"-bullet",rightSide:za+"-right-side",title:za+"-title",info:za+"-info",infoMessage:za+"-info-message",eligibilityOptions:za+"-eligibility-options",activeOption:za+"-active-option",closeButton:za+"-close-button",scheduleDetails:za+"-schedule-details",scheduleTotal:za+"-schedule-total",scheduleCredit:za+"-schedule-credit",cardContainer:za+"-card-logos",summary:za+"-summary"},La=function(t){var n,a,o,s,u=t.currentPlan,m=r(),d=ya(u.purchase_amount+u.customer_total_cost_amount),p=ya(u.customer_total_cost_amount),f=(null==u?void 0:u.annual_interest_rate)&&u.annual_interest_rate/1e4||0,g=ya(u.customer_total_cost_amount),y=u.installments_count>4,h=ya(null!=(n=null==(a=u.payment_plan)||null==(a=a[0])?void 0:a.total_amount)?n:0),v=ya(u.purchase_amount+u.customer_total_cost_amount-(null!=(o=null==(s=u.payment_plan)||null==(s=s[0])?void 0:s.total_amount)?o:0));return e.createElement(e.Fragment,null,y&&e.createElement("div",{className:"_15KNd"},e.createElement("span",{className:"_3T0mA"},e.createElement(i,{id:"credit-features.information.title",defaultMessage:"Un crédit vous engage et doit être remboursé."})),e.createElement("br",null),e.createElement(i,{id:"credit-features.information",defaultMessage:"Vérifiez vos capacités de remboursement avant de vous engager."})),e.createElement("div",{className:c("_GTTk7",ka.summary),"data-testid":"modal-summary"},e.createElement("div",{className:c("_34s2g",ka.scheduleTotal)},e.createElement(i,{tagName:"div",id:"installments.total-amount",defaultMessage:"Total"}),e.createElement(l,{value:d||0,style:"currency",currency:"EUR"})),e.createElement("div",{className:c("_W7qIA",ka.scheduleCredit)},y?e.createElement(e.Fragment,null,e.createElement(i,{id:"credit-features.total-credit-cost",defaultMessage:"Dont coût du crédit"}),e.createElement("span",{className:"_24KmE"},e.createElement(i,{id:"credit-features.credit-cost-display",defaultMessage:"{creditCost} (TAEG {taegPercentage})",values:{creditCost:m.formatNumber(p,{style:"currency",currency:"EUR"}),taegPercentage:m.formatNumber(f,{style:"percent",maximumFractionDigits:2})}}))):e.createElement(e.Fragment,null,e.createElement(i,{id:"installments.total-fees",defaultMessage:"Dont frais (TTC)",tagName:"div"}),e.createElement("div",null,e.createElement(l,{value:g,style:"currency",currency:"EUR"})))),y&&e.createElement("div",{className:"_2e3lw"},e.createElement(i,{id:"credit-features.legal-text",defaultMessage:"Crédit d'un montant de {totalWithoutFirstInstallment} au taux débiteur fixe de {taegPercentage} sur une durée de {installmeentsCountWithoutFirst} mois. Permettant, en complément d'un acompte de {firstInstallmentAmount}, de financer un achat d'un montant de {productPriceWithoutCreditCost}. Sous réserve d'étude et d'acceptation par Alma. Délai légal de rétractation de 14 jours. Simulation présentée par Alma, immatriculée au RCS Nanterre sous le numéro 839 100 575, établissement de paiement et société de financement agréée par l’ACPR sous le n° 17408 (numéro CIB / Code banque).",values:{totalWithoutFirstInstallment:m.formatNumber(v,{style:"currency",currency:"EUR"}),taegPercentage:m.formatNumber(f,{style:"percent",maximumFractionDigits:2}),installmeentsCountWithoutFirst:u.installments_count-1,firstInstallmentAmount:m.formatNumber(h,{style:"currency",currency:"EUR"}),productPriceWithoutCreditCost:m.formatNumber(d-p,{style:"currency",currency:"EUR"})}}))))},Da=function(t){return e.createElement("div",{className:c("_31lrj",t.className),"data-testid":"loader"},e.createElement("svg",{width:"120",height:"134",viewBox:"0 0 120 134",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M83.8164 41.0325C79.1708 22.8241 69.3458 17 59.9939 17C50.642 17 40.8171 22.8241 36.1715 41.0325L16 117H35.8804C39.119 104.311 49.1016 97.2436 59.9939 97.2436C70.8863 97.2436 80.8689 104.324 84.1075 117H104L83.8164 41.0325ZM59.9939 79.5428C53.6623 79.5428 47.925 82.0552 43.6918 86.1283L55.0936 41.9207C56.1853 37.6953 57.7985 36.3503 60.0061 36.3503C62.2136 36.3503 63.8269 37.6953 64.9185 41.9207L76.3082 86.1283C72.075 82.0552 66.3256 79.5428 59.9939 79.5428Z",fill:"#FA5022"})))};function Fa(t){var n=t.color;return e.createElement("svg",{className:t.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.5964 11.404L9.41445 8.22205L12.5964 5.04007C12.7732 4.86329 12.7732 4.50974 12.5964 4.33296L11.8893 3.62585C11.6904 3.42698 11.359 3.44908 11.1822 3.62585L8.00023 6.80783L4.81825 3.62585C4.61938 3.42698 4.28792 3.44908 4.11114 3.62585L3.40404 4.33296C3.20516 4.53183 3.20516 4.84119 3.40404 5.04007L6.58602 8.22205L3.40404 11.404C3.20516 11.6029 3.20517 11.9123 3.40404 12.1111L4.11115 12.8182C4.28792 12.995 4.61938 13.0171 4.81825 12.8182L8.00023 9.63626L11.1822 12.8182C11.359 12.995 11.6904 13.0171 11.8893 12.8182L12.5964 12.1111C12.7732 11.9344 12.7732 11.5808 12.5964 11.404Z",fill:void 0===n?"#fff":n}))}var Ra,Ta,Ba,Wa=["children","isOpen","onClose","className","contentClassName","scrollable"],Ha=function(t){var n,a=t.children,r=t.isOpen,i=t.onClose,l=t.className,o=t.contentClassName,s=t.scrollable,u=void 0!==s&&s,p=Ma(t,Wa);return m.setAppElement("body"),e.createElement(m,Object.assign({className:c("_D8SjB",l),overlayClassName:"_1yxCb",onAfterOpen:function(){d.on()},onAfterClose:function(){d.off()},onRequestClose:i,isOpen:r,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0},p),e.createElement("div",{className:"_12LLh"},e.createElement("button",{onClick:i,className:c("_3YRro",ka.closeButton),"data-testid":"modal-close-button"},e.createElement(Fa,null))),e.createElement("div",{className:c("_ocM9x",o,(n={},n._1GP2F=u,n))},a))},qa=function(t){var n=t.deferred_days,a=t.deferred_months,r=t.installments_count;return 1!==r||n||a?1===r&&n?e.createElement(i,{id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{deferredDays}",values:{deferredDays:"+"+n}}):1===r&&a?e.createElement(i,{id:"payment-plan-strings.month-abbreviation",defaultMessage:"M{deferredMonths}",values:{deferredMonths:"+"+a}}):r+"x":e.createElement(i,{id:"payment-plan-strings.pay.now.button",defaultMessage:"Payer maintenant"})},Va=function(t){var n;if(null!=(n=t.payment_plan)&&n.every(function(e){return 0===e.customer_fee&&0===e.customer_interest}))return e.createElement(e.Fragment,null," ",e.createElement(i,{id:"payment-plan-strings.no-fee",defaultMessage:"(sans frais)"}))},Ua=function(t){var n=t.eligibilityPlans,a=t.currentPlanIndex,r=t.setCurrentPlanIndex;return e.createElement("div",{className:c("_1l2Oa",ka.eligibilityOptions)},n.map(function(t,n){var i;return e.createElement("button",{key:n,className:c((i={},i[c("_3rue7",ka.activeOption)]=n===a,i)),onClick:function(){return r(n)}},e.createElement("span",{className:"_2T78a"},qa(t)))}))},Ga=function(t){var n,a,r=t.installment,s=t.index;return e.createElement("div",{className:"_z2Uiv","data-testid":"installment-"+s},e.createElement("div",{className:"_2lJQy"},e.createElement("div",{className:c("_1Z9wr",(n={},n._2Nmkl=0===s,n))}),g(1e3*r.due_date)?e.createElement(i,{id:"installments.today",defaultMessage:"Aujourd'hui",tagName:"strong"}):e.createElement(o,{value:1e3*r.due_date,day:"numeric",month:"long",year:"numeric"})),e.createElement("div",{className:c((a={},a["_ezY-3"]=0===s,a))},e.createElement(l,{value:r.total_amount/100,style:"currency",currency:"EUR"})))},Za=function(t){var n=t.currentPlan;return e.createElement(e.Fragment,null,e.createElement("div",{className:c("_MPKjS",ka.scheduleDetails),"data-testid":"modal-installments-element"},((null==n?void 0:n.payment_plan)||[]).map(function(t,n){return e.createElement(Ga,{key:1e3*t.due_date,installment:t,index:n})})))},Ka=["color"],Ja=function(t){var n=t.color,a=void 0===n?"#FA5022":n,r=Ma(t,Ka);return e.createElement("svg",Object.assign({width:"50",height:"25",viewBox:"0 0 360 109",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),e.createElement("path",{d:"M333.24 28.3462V38.4459C327.504 31.1018 319.176 26.5132 309.288 26.5132C290.208 26.5132 275.424 43.5497 275.424 64.5757C275.424 85.6018 290.208 102.638 309.288 102.638C319.872 102.638 328.668 97.3908 334.416 89.1241V100.817H352.668V28.3462H333.24ZM314.028 84.4876C303.42 84.4876 294.828 75.574 294.828 64.5757C294.828 53.5775 303.42 44.6639 314.028 44.6639C324.636 44.6639 333.228 53.5775 333.228 64.5757C333.228 75.574 324.636 84.4876 314.028 84.4876ZM109.5 8.23073H128.916V100.805H109.5V8.23073ZM151.248 59.7356C151.248 39.8117 163.5 26.5252 180.468 26.5252C191.004 26.5252 199.332 31.1976 204.348 39.1648C209.376 31.1976 217.692 26.5252 228.228 26.5252C245.196 26.5252 257.448 39.8117 257.448 59.7356V100.817H238.032V57.639C238.032 49.8635 232.872 44.7957 226.044 44.7957C219.216 44.7957 214.056 49.8755 214.056 57.639V100.817H194.64V57.639C194.64 49.8635 189.48 44.7957 182.652 44.7957C175.824 44.7957 170.664 49.8755 170.664 57.639V100.817H151.248V59.7356ZM74.34 29.101C69.744 11.9088 60.0241 6.40967 50.772 6.40967C41.5201 6.40967 31.8 11.9088 27.204 29.101L7.24805 100.829H26.916C30.12 88.8485 39.996 82.1753 50.772 82.1753C61.548 82.1753 71.424 88.8605 74.6281 100.829H94.3081L74.34 29.101ZM50.772 65.4623C44.508 65.4623 38.8321 67.8345 34.6441 71.6803L45.924 29.9397C47.0041 25.9501 48.6001 24.6802 50.784 24.6802C52.9681 24.6802 54.5641 25.9501 55.6441 29.9397L66.912 71.6803C62.724 67.8345 57.036 65.4623 50.772 65.4623Z",fill:a}))},Xa=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},e.createElement("defs",null,e.createElement("linearGradient",{id:"cardamex",x1:"10.914%",x2:"87.432%",y1:"86.279%",y2:"15.035%"},e.createElement("stop",{offset:"0%",stopColor:"#3FA9F5"}),e.createElement("stop",{offset:"100%",stopColor:"#0071BC"}))),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"url(#cardamex)",fillRule:"nonzero",d:"M22.559 16H1.379C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.441 1.338z"}),e.createElement("g",{fill:"#FFF"},e.createElement("path",{d:"M10.115 8.711L8.889 6.044H7.295v3.852L5.517 6.044H4.17l-1.778 4.03h1.103l.368-.889h2.023l.368.89h2.084V7.11l1.349 2.963h.92l1.348-2.904v2.904h.98v-4.03H11.28l-1.165 2.667zm-5.272-.474H4.23l.613-1.422v.06l.613 1.362h-.613z"}),e.createElement("path",{fillRule:"nonzero",d:"M19.372 7.94l.735-.77 1.042-1.185h-1.287L18.697 7.23l-1.164-1.245h-3.985v3.97h3.923l1.226-1.303 1.165 1.304h1.287L20.107 8.71l-.735-.77zM16.92 9.186h-2.33v-.77h2.268v-.77H14.59v-.712h2.33L18.084 8 16.92 9.185z"}))))},Ya=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{fill:"#FCFCFC",d:"M22.684 16H1.38C.627 16 0 15.39 0 14.656V1.344C0 .61.627 0 1.379 0H22.62C23.373 0 24 .61 24 1.344v13.374c0 .671-.564 1.282-1.316 1.282z"})," ",e.createElement("path",{fill:"#005098",d:"M8.889 10.726l.948-5.393h1.482l-.949 5.393zM15.704 5.452a3.658 3.658 0 0 0-1.304-.237c-1.481 0-2.489.71-2.489 1.778 0 .77.711 1.185 1.304 1.481.592.237.77.415.77.652 0 .355-.474.533-.889.533-.592 0-.889-.059-1.363-.296l-.177-.06-.178 1.186c.355.178 1.007.296 1.659.296 1.54 0 2.548-.71 2.548-1.837 0-.592-.415-1.067-1.244-1.481-.534-.237-.83-.415-.83-.652 0-.237.237-.474.83-.474.474 0 .83.118 1.126.178l.118.059.119-1.126M19.496 5.333H18.37c-.355 0-.592.119-.77.474l-2.193 4.919h1.541s.237-.652.296-.83h1.897c.059.178.178.83.178.83h1.362l-1.185-5.393zM17.66 8.77l.593-1.481s.118-.296.178-.533l.118.474s.296 1.303.356 1.54h-1.245zM7.644 5.333L6.222 9.007l-.178-.77C5.748 7.348 4.92 6.459 4.03 5.985l1.303 4.682h1.541l2.311-5.393h-1.54"}),e.createElement("path",{fill:"#F6A500",d:"M4.919 5.333h-2.37v.119c1.836.474 3.08 1.54 3.555 2.844L5.57 5.807c-.118-.414-.355-.474-.651-.474"}),e.createElement("path",{fill:"#0A5296",d:"M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z"}),e.createElement("path",{fill:"#F4A428",d:"M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z"})))},$a=function(){return e.createElement("svg",{width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{id:"Parcours-1C-B",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.createElement("g",{id:"mobile-1C-Paiement-V1",transform:"translate(-269.000000, -313.000000)"},e.createElement("g",{id:"mastercard",transform:"translate(269.000000, 313.000000)"},e.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"0",y:"0",width:"24",height:"16",rx:"1"}),e.createElement("g",{id:"Group-6",transform:"translate(4.000000, 3.000000)"},e.createElement("circle",{id:"Oval-4-Copy",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}),e.createElement("circle",{id:"Oval-4",fillOpacity:"0.25",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),e.createElement("circle",{id:"Oval-4-Copy-2",fillOpacity:"0.9",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),e.createElement("circle",{id:"Oval-4-Copy-3",fillOpacity:"0.3",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}))))))},Qa=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},e.createElement("defs",null,e.createElement("linearGradient",{id:"cardcb",x1:"5.842%",x2:"95.393%",y1:"81.753%",y2:"17.344%"},e.createElement("stop",{offset:"0%",stopColor:"#39B54A"})," ",e.createElement("stop",{offset:"100%",stopColor:"#0A5296"}))),e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{fill:"url(#cardcb)",d:"M22.621 16H1.38C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.379 1.338z"}),e.createElement("g",{fill:"#FFF"},e.createElement("path",{d:"M19.094 4.03h-6.437V8h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.066-.98-1.955-2.145-1.955zM19.094 8.593h-6.437v3.97h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.067-.98-1.955-2.145-1.955zM7.017 8.06h4.966c-.245-2.371-2.391-4.267-4.966-4.267-2.758 0-5.027 2.074-5.027 4.681s2.269 4.682 5.027 4.682c2.698 0 4.904-2.015 5.027-4.563H7.017v-.534z"}))))},er={cardContainer:"_1N3yO"},tr=function(t){var n=Array.from(new Set(t.cards));return e.createElement("div",{"data-testid":"card-logos",className:c(er.cardContainer,ka.cardContainer)},n.map(function(t){return e.createElement("div",{key:t,className:er.card,"data-testid":"card-logo-"+t},"cb"===t&&e.createElement(Qa,null),"amex"===t&&e.createElement(Xa,null),"mastercard"===t&&e.createElement($a,null),"visa"===t&&e.createElement(Ya,null))}))},nr=function(t){var n=t.isCurrentPlanP1X;return e.createElement("div",{className:c("_180ro",ka.info),"data-testid":"modal-info-element"},e.createElement("div",{className:"_1HqCO"},e.createElement("div",{className:c("_3B8wx",ka.bullet)},"1"),e.createElement("div",{className:ka.infoMessage},e.createElement(i,n?{id:"eligibility-modal.p1x-bullet-1",defaultMessage:"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-1",defaultMessage:"Choisissez <strong>Alma</strong> au moment du paiement.",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}))),e.createElement("div",{className:"_1HqCO"},e.createElement("div",{className:c("_3B8wx",ka.bullet)},"2"),e.createElement("div",{className:ka.infoMessage},e.createElement(i,n?{id:"eligibility-modal.p1x-bullet-2",defaultMessage:"Renseignez les informations de votre <strong>carte bancaire.</strong>",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-2",defaultMessage:"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}))),e.createElement("div",{className:"_1HqCO"},e.createElement("div",{className:c("_3B8wx",ka.bullet)},"3"),e.createElement("div",{className:ka.infoMessage},e.createElement(i,n?{id:"eligibility-modal.p1x-bullet-3",defaultMessage:"<strong>La validation </strong> de votre paiement est instantanée !",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-3",defaultMessage:"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",values:{strong:function(){return e.createElement("strong",null,[].slice.call(arguments))}}}))))},ar=function(t){var n=t.isSomePlanDeferred,a=t.isCurrentPlanP1X;return e.createElement("div",{className:c("_3ERx-",ka.title),"data-testid":"modal-title-element"},e.createElement(i,n?{id:"eligibility-modal.title-deferred-plan",defaultMessage:"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."}:a?{id:"eligibility-modal.title-pay-now",defaultMessage:"Payez comptant par carte bancaire avec Alma."}:{id:"eligibility-modal.title-normal",defaultMessage:"Payez en plusieurs fois par carte bancaire avec Alma."}))},rr=function(t){var n=t.children,a=t.isSomePlanDeferred,r=t.cards,i=t.isCurrentPlanP1X;return e.createElement("div",{className:c("_21g6u",ka.desktopModal),"data-testid":"modal-container"},e.createElement("aside",{className:c(["_3zaP5","_2SBRC",ka.leftSide])},e.createElement(ar,{isSomePlanDeferred:a,isCurrentPlanP1X:i}),e.createElement(nr,{isCurrentPlanP1X:i}),r&&e.createElement(tr,{cards:r}),e.createElement(Ja,{className:"_xW3wt",width:"75"})),e.createElement("div",{className:c("_3zaP5",ka.rightSide)},n))},ir=function(t){var n=t.children,a=t.isSomePlanDeferred,r=t.cards,i=t.isCurrentPlanP1X;return e.createElement("div",{className:c("_2G7Ch",ka.mobileModal),"data-testid":"modal-container"},e.createElement(ar,{isSomePlanDeferred:a,isCurrentPlanP1X:i}),n,e.createElement(nr,{isCurrentPlanP1X:i}),r&&e.createElement(tr,{cards:r}),e.createElement(Ja,{className:"_2779r",width:"75"}))},lr=function(n){var a=n.onClose,r=n.eligibilityPlans,l=n.status,o=n.cards,s=t(n.initialPlanIndex||0),u=s[0],c=s[1],m=p({minWidth:800})?rr:ir,d=r.filter(function(e){return e.eligible}),f=d[u],g=r.some(function(e){return e.deferred_days>0||e.deferred_months>0});return e.createElement(Ha,{onClose:a,ariaHideApp:!1,scrollable:!0,isOpen:!0},e.createElement(m,{isSomePlanDeferred:g,cards:o,isCurrentPlanP1X:ba(f)},l===da.PENDING&&e.createElement("div",{className:"_2oTJq"},e.createElement(Da,null)),l===da.SUCCESS&&0===d.length&&e.createElement("div",{className:"_17qNJ"},e.createElement(i,{id:"eligibility-modal.no-eligibility",defaultMessage:"Oups, il semblerait que la simulation n'ait pas fonctionné."})),l===da.SUCCESS&&d.length>=1&&e.createElement(e.Fragment,null,e.createElement(Ua,{eligibilityPlans:d,currentPlanIndex:u,setCurrentPlanIndex:c}),e.createElement("div",{className:"_2u9rj"},e.createElement("div",{className:"_VRdAU"}),e.createElement(Za,{currentPlan:f}),e.createElement(La,{currentPlan:f})))))},or=function(t){var n=t.onClose,a=t.cards,r=ja(t.purchaseAmount,t.apiData,t.configPlans,t.customerBillingCountry,t.customerShippingCountry);return e.createElement(lr,{initialPlanIndex:0,onClose:n,eligibilityPlans:r[0],status:r[1],cards:a})},sr=function(t){return e.createElement("div",{className:c("_2SwwZ",t.className),"data-testid":"loader"},e.createElement("div",{className:"_2qODo"}),e.createElement("div",{className:"_2YO01"}))},ur="alma-payment-plans",cr={container:ur+"-container",eligibilityLine:ur+"-eligibility-line",eligibilityOptions:ur+"-eligibility-options",notEligibleOption:ur+"-not-eligible-option",paymentInfo:ur+"-payment-info",activeOption:ur+"-active-option"},mr=function(a){var r,s,u,m,d=a.hideIfNotEligible,p=a.monochrome,g=a.suggestedPaymentPlan,y=a.cards,h=a.transitionDelay,v=a.hideBorder,b=void 0!==v&&v,E=a.onModalClose,C=ja(a.purchaseAmount,a.apiData,a.configPlans,a.customerBillingCountry,a.customerShippingCountry),A=C[0],w=C[1],P=A.filter(function(e){return e.eligible}),S=function(e){var t,n=e.suggestedPaymentPlan,a=e.eligibilityPlans,r=Array.isArray(n)?n:[n],i=function(){var e=r[l],t=a.findIndex(function(t){return t.installments_count===e&&t.eligible&&!t.deferred_days&&!t.deferred_months});if(-1!==t)return{v:t}};for(var l in r)if(t=i())return t.v;return 0}({eligibilityPlans:A,suggestedPaymentPlan:null!=g?g:0}),_=void 0!==g,O=void 0!==h,x=t(!1),I=x[0],M=x[1],N=A.reduce(function(e,t,n){return t.eligible?[].concat(e,[n]):e},[]),j=function(e,a){var r=t(0),i=r[0],l=r[1],o=t(!0),s=o[0],u=o[1];return n(function(){var t,n=!0;if(-1!==a)return 0!==e.length&&(!e.includes(i)&&s&&l(e[0]),t=setTimeout(function(){s&&n&&l(e[e.includes(i)?(e.indexOf(i)+1)%e.length:0])},a)),function(){n=!1,clearTimeout(t)}},[e,i]),{current:i,onHover:function(e){l(e),u(!1)},onLeave:function(){u(!0)}}}(N,O?null!=h?h:5500:_?36e5:5500),z=j.current,k=j.onHover,L=j.onLeave;return n(function(){w===da.SUCCESS&&_&&(k(S),L())},[w]),w===da.PENDING?e.createElement("div",{className:c("_TSkFv","_1ZDMS")},e.createElement(sr,null)):d&&0===P.length||0===A.length||w===da.FAILED?null:e.createElement(e.Fragment,null,e.createElement("div",{onClick:function(e){e.preventDefault(),P.length>0&&M(!0)},className:c("_TSkFv",(r={},r._UksZa=P.length>0,r["_1lr-q"]=0===P.length,r._3_qcn=b,r),cr.container),"data-testid":"widget-button"},e.createElement("div",{className:c("_bMClc",cr.eligibilityLine)},e.createElement(Ja,{className:"_LJ4nZ",color:p?"var(--off-black)":void 0}),e.createElement("div",{className:c("_17c_S",cr.eligibilityOptions)},A.map(function(t,n){var a,r=n===z;return e.createElement("div",{key:n,onMouseEnter:function(){return k(n)},onTouchStart:function(){return k(n)},onMouseOut:L,onTouchEnd:L,className:c("_2Kqjn",(a={},a[c("_3dG_J",cr.activeOption)]=r,a._2hx83=p&&r,a[c("_3O1bg",cr.notEligibleOption)]=!t.eligible,a))},qa(t))}))),e.createElement("div",{className:c("_25GrF",(s={},s[c("_3O1bg",cr.notEligibleOption)]=A[z]&&!A[z].eligible,s),cr.paymentInfo)},0!==A.length&&function(t){var n=t.installments_count,a=t.minAmount,r=void 0===a?0:a,s=t.maxAmount,u=void 0===s?0:s,c=t.payment_plan,m=t.deferred_days+30*t.deferred_months;if(!t.eligible)return e.createElement(i,t.purchase_amount>u?{id:"payment-plan-strings.ineligible-greater-than-max",defaultMessage:"Jusqu'à {maxAmount}",values:{maxAmount:e.createElement(l,{value:ya(u),style:"currency",currency:"EUR"})}}:{id:"payment-plan-strings.ineligible-lower-than-min",defaultMessage:"À partir de {minAmount}",values:{minAmount:e.createElement(l,{value:ya(r),style:"currency",currency:"EUR"})}});if(!c)throw Error("No payment plan provided for payment in "+n+" installments. Please contact us if you see this error.");if(0!==m&&1===n)return e.createElement(e.Fragment,null,e.createElement(i,{id:"payment-plan-strings.deferred",defaultMessage:"{totalAmount} à payer le {dueDate}",values:{totalAmount:e.createElement(l,{value:ya(c[0].total_amount),style:"currency",currency:"EUR"}),dueDate:e.createElement(o,{value:f(c[0].due_date),day:"numeric",month:"long",year:"numeric"})}}),Va(t));if(n>0){var d=null==c?void 0:c.every(function(e,t){return 0===t||e.total_amount===c[0].total_amount});return n>4?e.createElement("span",{className:"_bplXm"},e.createElement(i,{id:"payment-plan-strings.credit",defaultMessage:"Cliquez pour en savoir plus",description:"Link to credit details"})):ba(t)?e.createElement(e.Fragment,null,e.createElement(i,{id:"payment-plan-strings.pay-now",defaultMessage:"Payer maintenant {totalAmount}",values:{totalAmount:e.createElement(l,{value:ya(c[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:n}}),Va(t)):e.createElement(e.Fragment,null,e.createElement(i,d?{id:"payment-plan-strings.multiple-installments-same-amount",defaultMessage:"{installmentsCount} x {totalAmount}",values:{totalAmount:e.createElement(l,{value:ya(c[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:n}}:{id:"payment-plan-strings.multiple-installments",defaultMessage:"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",values:{firstInstallmentAmount:e.createElement(l,{value:ya(c[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:n-1,othersInstallmentAmount:e.createElement(l,{value:ya(c[1].total_amount),style:"currency",currency:"EUR"})}}),Va(t))}return e.createElement(i,{id:"payment-plan-strings.default-message",defaultMessage:"Payez en plusieurs fois avec Alma"})}(A[z]))),I&&e.createElement(lr,{initialPlanIndex:(u=z,m=N.findIndex(function(e){return e===u}),-1===m?0:m),onClose:function(e){M(!1),E&&E(e)},eligibilityPlans:P,status:w,cards:y}))},dr=function(){function t(e){this.apiData=e}return t.prototype.add=function(t,n){var a=this,r=document.querySelector(n.container);if(r&&s(r),t===ma.PaymentPlans){var i=n.container,l=n.hideBorder,o=n.monochrome,c=n.locale;r&&u(e.createElement(xa,{locale:void 0===c?pa.en:c},e.createElement(mr,{apiData:this.apiData,configPlans:n.plans,hideIfNotEligible:n.hideIfNotEligible,monochrome:void 0===o||o,purchaseAmount:n.purchaseAmount,suggestedPaymentPlan:n.suggestedPaymentPlan,cards:n.cards,customerBillingCountry:n.customerBillingCountry,customerShippingCountry:n.customerShippingCountry,transitionDelay:n.transitionDelay,hideBorder:void 0!==l&&l,onModalClose:n.onModalClose})),document.querySelector(i))}if(t===ma.Modal){var m,d=n.container,p=n.clickableSelector,f=n.purchaseAmount,g=n.plans,y=n.locale,h=void 0===y?pa.en:y,v=n.customerBillingCountry,b=n.customerShippingCountry,E=n.cards,C=n.onClose,A=function(e){r&&(s(r),C&&C(e))},w=function(){u(e.createElement(xa,{locale:h},e.createElement(or,{purchaseAmount:f,apiData:a.apiData,configPlans:g,customerBillingCountry:v,customerShippingCountry:b,onClose:A,cards:E})),document.querySelector(d))};return p&&(null==(m=document.querySelector(p))||m.addEventListener("click",w,!1)),{open:w,close:A}}},t}();!function(e){e.LIVE="https://api.getalma.eu",e.TEST="https://api.sandbox.getalma.eu"}(Ra||(Ra={})),function(e){e.initialize=function(e,t){return new dr({domain:t,merchantId:e})},e.PaymentPlans=ma.PaymentPlans,e.Modal=ma.Modal}(Ta||(Ta={})),function(e){e.priceToCents=ga,e.priceFromCents=ya,e.formatCents=ha}(Ba||(Ba={}));export{Ra as ApiMode,Ba as Utils,Ta as Widgets};
|
|
2
2
|
//# sourceMappingURL=widgets.m.js.map
|