@alma/widgets 2.2.1 → 2.2.5
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/CHANGELOG.md +28 -0
- package/dist/widgets.css +1 -1
- 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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [2.2.5](https://github.com/alma/widgets/compare/v2.2.4...v2.2.5) (2021-12-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update spanish translations ([6c9cf7d](https://github.com/alma/widgets/commit/6c9cf7d3f26cd310d59f3a412a8bb453fedd6a5e))
|
|
7
|
+
|
|
8
|
+
## [2.2.4](https://github.com/alma/widgets/compare/v2.2.3...v2.2.4) (2021-12-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* z-index issue with prestashop header ([e9b2ffe](https://github.com/alma/widgets/commit/e9b2ffef6ad7baf6352916a48cabdfcbd6dbb62b))
|
|
14
|
+
|
|
15
|
+
## [2.2.3](https://github.com/alma/widgets/compare/v2.2.2...v2.2.3) (2021-12-15)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **payment-plan-button:** add prevent default on click ([3c228e5](https://github.com/alma/widgets/commit/3c228e5c96c4316fd915b5877ebf533a3d831cd4))
|
|
21
|
+
|
|
22
|
+
## [2.2.2](https://github.com/alma/widgets/compare/v2.2.1...v2.2.2) (2021-12-15)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **eligibility:** handle deferred days and months in eligibility request ([48a3e96](https://github.com/alma/widgets/commit/48a3e96f67e776a6aaa73142e3c9799966454592))
|
|
28
|
+
|
|
1
29
|
## [2.2.1](https://github.com/alma/widgets/compare/v2.2.0...v2.2.1) (2021-12-14)
|
|
2
30
|
|
|
3
31
|
|
package/dist/widgets.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;600&family=Work+Sans:wght@700&display=swap");*{padding:0;margin:0;box-sizing:border-box}:root{--white:#fff;--blue-100:#588fe1;--blue-300:#00425d;--blue-400:#003951;--blue-500:#337b99;--blue-600:#042736;--red-100:#ffedee;--red-300:#ff414d;--orange:#ff7e55;--orange-100:#fff3ee;--orange-300:#fcd4b5;--yellow-100:#fff5de;--yellow-300:#fb3;--beige:#fff7f0;--gray-100:#f7f9fb;--gray-200:#f4f6f6;--gray-300:#e1e4e6;--gray-400:#c2d0d8;--gray-500:#b2bbc0;--gray-600:#819098;--gray-700:#454f54;--gray-800:#2e3538;--green-100:#ddf8f1;--green-300:#1dcda3}@font-face{font-family:Eina04;src:url(assets/fonts/Eina04-Light.eot?#iefix) format("embedded-opentype"),url(assets/fonts/Eina04-Light.woff) format("woff"),url(assets/fonts/Eina04-Light.ttf) format("truetype"),url(assets/fonts/Eina04-Light.svg#Eina04-Light) format("svg");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:Eina04;src:url(assets/fonts/Eina04-Regular.eot?#iefix) format("embedded-opentype"),url(assets/fonts/Eina04-Regular.woff) format("woff"),url(assets/fonts/Eina04-Regular.ttf) format("truetype"),url(assets/fonts/Eina04-Regular.svg#Eina04-Regular) format("svg");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Eina04;src:url(assets/fonts/Eina04-RegularItalic.eot?#iefix) format("embedded-opentype"),url(assets/fonts/Eina04-RegularItalic.woff) format("woff"),url(assets/fonts/Eina04-RegularItalic.ttf) format("truetype"),url(assets/fonts/Eina04-RegularItalic.svg#Eina04-RegularItalic) format("svg");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:Eina04;src:url(assets/fonts/Eina04-SemiBold.eot?#iefix) format("embedded-opentype"),url(assets/fonts/Eina04-SemiBold.woff) format("woff"),url(assets/fonts/Eina04-SemiBold.ttf) format("truetype"),url(assets/fonts/Eina04-SemiBold.svg#Eina04-SemiBold) format("svg");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Eina04;src:url(assets/fonts/Eina04-SemiboldItalic.eot?#iefix) format("embedded-opentype"),url(assets/fonts/Eina04-SemiboldItalic.woff) format("woff"),url(assets/fonts/Eina04-SemiboldItalic.ttf) format("truetype"),url(assets/fonts/Eina04-SemiboldItalic.svg#Eina04-SemiboldItalic) format("svg");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:Eina04;src:url(assets/fonts/Eina04-Bold.eot?#iefix) format("embedded-opentype"),url(assets/fonts/Eina04-Bold.woff) format("woff"),url(assets/fonts/Eina04-Bold.ttf) format("truetype"),url(assets/fonts/Eina04-Bold.svg#Eina04-Bold) format("svg");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:Public Sans;src:url(assets/fonts/PublicSans-VariableFont_wght.ttf);font-style:normal;font-display:swap}
|
|
2
2
|
._2SwwZ{display:flex;flex-direction:column;align-items:flex-start;width:100%}._2qODo{width:100%;height:20px}._2qODo,._2YO01{background-color:#f7f9fb;border-radius:2px}._2YO01{width:60%;height:15px;margin-top:16px}
|
|
3
|
-
._D8SjB{border:none;background-color:var(--white);max-height:100%;position:relative}._D8SjB,._ocM9x{width:100%;height:100%}._ocM9x{padding:24px}._1GP2F{overflow-y:auto}._1yxCb{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.3);z-index:
|
|
3
|
+
._D8SjB{border:none;background-color:var(--white);max-height:100%;position:relative}._D8SjB,._ocM9x{width:100%;height:100%}._ocM9x{padding:24px}._1GP2F{overflow-y:auto}._1yxCb{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.3);z-index:99999}._12LLh{display:flex;justify-content:flex-end;position:absolute;top:24px;right:24px;z-index:1}._3YRro{border:0;background-color:var(--blue-300);border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:4px}@media screen and (min-width:800px){._D8SjB{border-radius:8px;width:800px;height:550px}._1GP2F{max-height:100vh;overflow:hidden}._ocM9x{padding:32px}}
|
|
4
4
|
._tUqYt{color:var(--blue-300);height:100%;display:flex;flex-direction:column}._2xmiY{font-family:Eina04;font-weight:600;font-size:18px;line-height:150%;margin:24px 0;color:var(--blue-400);text-align:center}._2xmiY>span{background-color:rgba(253,175,111,.5);border-radius:2px;padding:8px 4px 2px}._3Iopr{flex-wrap:wrap;flex-direction:row;margin-bottom:24px}._3Iopr,._3Iopr>button{display:flex;justify-content:center}._3Iopr>button{position:relative;height:50px;width:50px;margin:0 4px 8px;border:1px solid var(--gray-300);border-radius:8px;font-family:Eina04;font-size:18px;line-height:150%;font-weight:600;color:var(--blue-400);align-items:center;overflow:hidden;cursor:pointer;background-color:var(--white);transition:all .1s ease}._3Iopr>button:after{content:"";width:100%;height:4px;position:absolute;bottom:0}._3Iopr>button._Hak_D{background-color:var(--blue-300);color:var(--white);border:0}._3Iopr>button._Hak_D:after{background-color:var(--red-300)}._1v5LL{display:flex;flex-direction:column;margin-bottom:40px;padding:0 24px}._8qF-d{margin-bottom:16px;line-height:180%}._3iUVQ,._8qF-d{display:flex;align-items:center}._3iUVQ{flex:0 0 30px;height:30px;line-height:30px;justify-content:center;border-radius:50%;background-color:var(--blue-300);color:var(--white);margin-right:16px}._2Qzr7{padding:32px 24px;margin-bottom:40px;border-top:1px solid var(--gray-300);border-bottom:1px solid var(--gray-300)}._jPe3S{display:flex;justify-content:space-between;line-height:150%;margin-bottom:4px}._naxaQ{font-size:18px}._naxaQ,._YJM5O{font-family:Eina04;font-weight:600}._YJM5O{font-size:14px;margin-bottom:24px}._3iZif{margin-top:8px}._HqglP{width:100%;display:flex;align-items:flex-end;justify-content:center;padding-bottom:64px}._BgGo9{display:none}@media (min-width:800px){._tUqYt{flex-wrap:wrap;align-items:flex-start;min-height:396px;max-width:633px;max-height:100%}._2xmiY{order:1;max-width:270px;margin:0 24px 32px 0;font-size:24px;text-align:start}._1v5LL{order:2;max-width:270px;margin:0;padding:0}._3Iopr{order:5}._2Qzr7,._3Iopr{width:calc(100% - 190px)}._2Qzr7{max-height:404px;overflow-y:auto;order:6;margin:0;border-bottom:1px solid transparent}._HqglP{width:270px;order:3;padding:0;flex:1}._BgGo9{display:initial;content:"";order:4;width:0;height:100%}}
|
|
5
5
|
._1ShhM{width:368px;max-width:100%;background-color:transparent;border:1px solid var(--gray-300);display:flex;flex-direction:column;align-items:flex-start;padding:16px}._1ShhM:focus,._1ShhM:focus-visible{outline:none}._1pqvZ{color:var(--blue-300);margin-right:12px}._3PxP3,._Q7H0F{display:flex;flex-direction:row;align-items:flex-start}._3PxP3{max-width:310px;flex-wrap:wrap}._1Pf7z{font-size:14px;font-family:Eina04;font-weight:600;color:var(--blue-300);line-height:20px;display:flex;flex-direction:column;align-items:center;text-align:center;height:23px;width:30px;margin:0 4px}._1Pf7z._3aD09{border-bottom:3px solid var(--blue-300)}._1Pf7z._3aD09._3BUl_{border-bottom-color:var(--gray-600)}._2TfhX{font-family:Public Sans;font-style:normal;font-weight:400;font-size:14px;line-height:180%;color:var(--blue-300);text-align:left}._3BUl_{color:var(--gray-600)}._33bdr{overflow:hidden}._33bdr,._mt7nc{align-items:center}._mt7nc{line-height:100%}._22FJU{font-family:Public Sans;font-style:normal;font-weight:400;font-size:14px;color:var(--blue-300)}._3Mb83{cursor:pointer;text-decoration:underline}._OaY-w{align-items:center}
|
package/dist/widgets.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=require("react"),n=e(t),r=require("react-intl"),i=require("react-dom"),a=e(require("classnames")),l=require("date-fns"),o=e(require("react-modal")),s=e(require("no-scroll")),u=Math.ceil,c=Math.floor,m=function(e){return isNaN(e=+e)?0:(e>0?c:u)(e)},d=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},f=function(e){return function(t,n){var r,i,a=String(d(t)),l=m(n),o=a.length;return l<0||l>=o?e?"":void 0:(r=a.charCodeAt(l))<55296||r>56319||l+1===o||(i=a.charCodeAt(l+1))<56320||i>57343?e?a.charAt(l):r:e?a.slice(l,l+2):i-56320+(r-55296<<10)+65536}},g={codeAt:f(!1),charAt:f(!0)},p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(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 h=function(e){return e&&e.Math==Math&&e},v=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof p&&p)||function(){return this}()||Function("return this")(),b=function(e){try{return!!e()}catch(e){return!0}},E=!b(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),A=function(e){return"object"==typeof e?null!==e:"function"==typeof e},C=v.document,_=A(C)&&A(C.createElement),w=function(e){return _?C.createElement(e):{}},O=!E&&!b(function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a}),S=function(e){if(!A(e))throw TypeError(String(e)+" is not an object");return e},N=function(e,t){if(!A(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!A(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!A(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!A(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},D=Object.defineProperty,j={f:E?D:function(e,t,n){if(S(e),t=N(t,!0),S(n),O)try{return D(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},M=E?function(e,t,n){return j.f(e,t,P(1,n))}:function(e,t,n){return e[t]=n,e},x=function(e,t){try{M(v,e,t)}catch(n){v[e]=t}return t},L=v["__core-js_shared__"]||x("__core-js_shared__",{}),T=Function.toString;"function"!=typeof L.inspectSource&&(L.inspectSource=function(e){return T.call(e)});var I,k,F,R=L.inspectSource,z=v.WeakMap,V="function"==typeof z&&/native code/.test(R(z)),U={}.hasOwnProperty,q=function(e,t){return U.call(e,t)},G=y(function(e){(e.exports=function(e,t){return L[e]||(L[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.1",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),H=0,B=Math.random(),J=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++H+B).toString(36)},W=G("keys"),Z=function(e){return W[e]||(W[e]=J(e))},Y={};if(V){var K=L.state||(L.state=new(0,v.WeakMap)),Q=K.get,X=K.has,$=K.set;I=function(e,t){return t.facade=e,$.call(K,e,t),t},k=function(e){return Q.call(K,e)||{}},F=function(e){return X.call(K,e)}}else{var ee=Z("state");Y[ee]=!0,I=function(e,t){return t.facade=e,M(e,ee,t),t},k=function(e){return q(e,ee)?e[ee]:{}},F=function(e){return q(e,ee)}}var te,ne,re,ie={set:I,get:k,has:F,enforce:function(e){return F(e)?k(e):I(e,{})},getterFor:function(e){return function(t){var n;if(!A(t)||(n=k(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ae={}.propertyIsEnumerable,le=Object.getOwnPropertyDescriptor,oe={f:le&&!ae.call({1:2},1)?function(e){var t=le(this,e);return!!t&&t.enumerable}:ae},se={}.toString,ue=function(e){return se.call(e).slice(8,-1)},ce="".split,me=b(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==ue(e)?ce.call(e,""):Object(e)}:Object,de=function(e){return me(d(e))},fe=Object.getOwnPropertyDescriptor,ge={f:E?fe:function(e,t){if(e=de(e),t=N(t,!0),O)try{return fe(e,t)}catch(e){}if(q(e,t))return P(!oe.f.call(e,t),e[t])}},pe=y(function(e){var t=ie.get,n=ie.enforce,r=String(String).split("String");(e.exports=function(e,t,i,a){var l,o=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||q(i,"name")||M(i,"name",t),(l=n(i)).source||(l.source=r.join("string"==typeof t?t:""))),e!==v?(o?!u&&e[t]&&(s=!0):delete e[t],s?e[t]=i:M(e,t,i)):s?e[t]=i:x(t,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||R(this)})}),ye=v,he=function(e){return"function"==typeof e?e:void 0},ve=function(e,t){return arguments.length<2?he(ye[e])||he(v[e]):ye[e]&&ye[e][t]||v[e]&&v[e][t]},be=Math.min,Ee=function(e){return e>0?be(m(e),9007199254740991):0},Ae=Math.max,Ce=Math.min,_e=function(e){return function(t,n,r){var i,a=de(t),l=Ee(a.length),o=function(e,t){var n=m(e);return n<0?Ae(n+t,0):Ce(n,t)}(r,l);if(e&&n!=n){for(;l>o;)if((i=a[o++])!=i)return!0}else for(;l>o;o++)if((e||o in a)&&a[o]===n)return e||o||0;return!e&&-1}},we=(_e(!0),_e(!1)),Oe=function(e,t){var n,r=de(e),i=0,a=[];for(n in r)!q(Y,n)&&q(r,n)&&a.push(n);for(;t.length>i;)q(r,n=t[i++])&&(~we(a,n)||a.push(n));return a},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ne=Se.concat("length","prototype"),De={f:Object.getOwnPropertyNames||function(e){return Oe(e,Ne)}},je={f:Object.getOwnPropertySymbols},Pe=ve("Reflect","ownKeys")||function(e){var t=De.f(S(e)),n=je.f;return n?t.concat(n(e)):t},Me=function(e,t){for(var n=Pe(t),r=j.f,i=ge.f,a=0;a<n.length;a++){var l=n[a];q(e,l)||r(e,l,i(t,l))}},xe=/#|\.prototype\./,Le=function(e,t){var n=Ie[Te(e)];return n==Fe||n!=ke&&("function"==typeof t?b(t):!!t)},Te=Le.normalize=function(e){return String(e).replace(xe,".").toLowerCase()},Ie=Le.data={},ke=Le.NATIVE="N",Fe=Le.POLYFILL="P",Re=Le,ze=ge.f,Ve=function(e,t){var n,r,i,a,l,o=e.target,s=e.global,u=e.stat;if(n=s?v:u?v[o]||x(o,{}):(v[o]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(l=ze(n,r))&&l.value:n[r],!Re(s?r:o+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Me(a,i)}(e.sham||i&&i.sham)&&M(a,"sham",!0),pe(n,r,a,e)}},Ue=function(e){return Object(d(e))},qe=!b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ge=Z("IE_PROTO"),He=Object.prototype,Be=qe?Object.getPrototypeOf:function(e){return e=Ue(e),q(e,Ge)?e[Ge]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?He:null},Je=!!Object.getOwnPropertySymbols&&!b(function(){return!String(Symbol())}),We=Je&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ze=G("wks"),Ye=v.Symbol,Ke=We?Ye:Ye&&Ye.withoutSetter||J,Qe=function(e){return q(Ze,e)||(Ze[e]=Je&&q(Ye,e)?Ye[e]:Ke("Symbol."+e)),Ze[e]},Xe=Qe("iterator"),$e=!1;[].keys&&("next"in(re=[].keys())?(ne=Be(Be(re)))!==Object.prototype&&(te=ne):$e=!0),null==te&&(te={}),q(te,Xe)||M(te,Xe,function(){return this});var et,tt={IteratorPrototype:te,BUGGY_SAFARI_ITERATORS:$e},nt=Object.keys||function(e){return Oe(e,Se)},rt=E?Object.defineProperties:function(e,t){S(e);for(var n,r=nt(t),i=r.length,a=0;i>a;)j.f(e,n=r[a++],t[n]);return e},it=ve("document","documentElement"),at=Z("IE_PROTO"),lt=function(){},ot=function(e){return"<script>"+e+"<\/script>"},st=function(){try{et=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;st=et?function(e){e.write(ot("")),e.close();var t=e.parentWindow.Object;return e=null,t}(et):((t=w("iframe")).style.display="none",it.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ot("document.F=Object")),e.close(),e.F);for(var n=Se.length;n--;)delete st.prototype[Se[n]];return st()};Y[at]=!0;var ut=Object.create||function(e,t){var n;return null!==e?(lt.prototype=S(e),n=new lt,lt.prototype=null,n[at]=e):n=st(),void 0===t?n:rt(n,t)},ct=j.f,mt=Qe("toStringTag"),dt=function(e,t,n){e&&!q(e=n?e:e.prototype,mt)&&ct(e,mt,{configurable:!0,value:t})},ft={},gt=tt.IteratorPrototype,pt=function(){return this},yt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return S(n),function(e){if(!A(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),ht=tt.IteratorPrototype,vt=tt.BUGGY_SAFARI_ITERATORS,bt=Qe("iterator"),Et=function(){return this},At=g.charAt,Ct=ie.set,_t=ie.getterFor("String Iterator");!function(e,t,n,r,i,a,l){!function(e,t,n){e.prototype=ut(gt,{next:P(1,function(){var e,t=_t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=At(n,r),t.index+=e.length,{value:e,done:!1})})}),dt(e,"String Iterator",!1),ft["String Iterator"]=pt}(n);var o,s,u,c=function(e){if(void 0===e&&f)return f;if(!vt&&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[bt]||m["@@iterator"]||void 0,f=!vt&&d||c(void 0);if(d&&(o=Be(d.call(new e)),ht!==Object.prototype&&o.next&&(Be(o)!==ht&&(yt?yt(o,ht):"function"!=typeof o[bt]&&M(o,bt,Et)),dt(o,"String Iterator",!0))),m[bt]!==f&&M(m,bt,f),void(ft.String=f))if(void(s={values:c("values"),keys:c("keys"),entries:c("entries")}))for(u in s)(vt||!(u in m))&&pe(m,u,s[u]);else Ve({target:"String",proto:!0,forced:vt||!1},s)}(String,0,function(e){Ct(this,{type:"String Iterator",string:String(e),index:0})});var wt=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Ot=function(e,t,n,r){try{return r?t(S(n)[0],n[1]):t(n)}catch(t){throw function(e){var t=e.return;void 0!==t&&S(t.call(e))}(e),t}},St=Qe("iterator"),Nt=Array.prototype,Dt=function(e){return void 0!==e&&(ft.Array===e||Nt[St]===e)},jt=function(e,t,n){var r=N(t);r in e?j.f(e,r,P(0,n)):e[r]=n},Pt={};Pt[Qe("toStringTag")]="z";var Mt="[object z]"===String(Pt),xt=Qe("toStringTag"),Lt="Arguments"==ue(function(){return arguments}()),Tt=Mt?ue:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),xt))?n:Lt?ue(t):"Object"==(r=ue(t))&&"function"==typeof t.callee?"Arguments":r},It=Qe("iterator"),kt=function(e){if(null!=e)return e[It]||e["@@iterator"]||ft[Tt(e)]},Ft=Qe("iterator"),Rt=!1;try{var zt=0,Vt={next:function(){return{done:!!zt++}},return:function(){Rt=!0}};Vt[Ft]=function(){return this},Array.from(Vt,function(){throw 2})}catch(e){}var Ut,qt,Gt,Ht,Bt=!function(e,t){if(!Rt)return!1;var n=!1;try{var r={};r[Ft]=function(){return{next:function(){return{done:n=!0}}}},Array.from(r)}catch(e){}return n}();function Jt(e){return Number((e/100).toFixed(2))}Ve({target:"Array",stat:!0,forced:Bt},{from:function(e){var t,n,r,i,a,l,o=Ue(e),s="function"==typeof this?this:Array,u=arguments.length,c=u>1?arguments[1]:void 0,m=void 0!==c,d=kt(o),f=0;if(m&&(c=wt(c,u>2?arguments[2]:void 0,2)),null==d||s==Array&&Dt(d))for(n=new s(t=Ee(o.length));t>f;f++)l=m?c(o[f],f):o[f],jt(n,f,l);else for(a=(i=d.call(o)).next,n=new s;!(r=a.call(i)).done;f++)l=m?Ot(i,c,[r.value,f],!0):r.value,jt(n,f,l);return n.length=f,n}}),function(e){e.PaymentPlans="PaymentPlans"}(Ut||(Ut={})),function(e){e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed"}(qt||(qt={})),function(e){e.en="en",e.fr="fr",e.de="de",e.it="it",e.es="es",e["nl-NL"]="nl-NL",e["nl-BE"]="nl-BE"}(Gt||(Gt={})),"function"!=typeof(Ht=window.Element.prototype).matches&&(Ht.matches=Ht.msMatchesSelector||Ht.mozMatchesSelector||Ht.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 Ht.closest&&(Ht.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,r=/[\11\12\14\15\40]/,i=0,a=function(e,t){if(""===t)throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided must not be empty.");if(-1!==(i=t.search(r)))throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided ('"+t[i]+"') contains HTML space characters, which are not valid in tokens.")};"function"!=typeof DOMTokenList&&function(e){var t=e.document,n=e.Object,i=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 i=t.srcElement,a=i[" uCLp"],o=""+i[n],u=o.trim().split(r),c=i["classList"===n?" uCL":"classList"],m=a.length;e:for(var d=0,f=a.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,i.classList=c,i.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,i=new t;e:for(var a=e.className.trim().split(r),m=0,d=a.length,f=0;m!==d;++m){for(var g=0;g!==m;++g)if(a[g]===a[m]){f++;continue e}this[m-f]=a[m]}n.length=d-f,n.value=e.className,n[" uCL"]=e,l?(l(e,"classList",{enumerable:1,get:function(){return i},configurable:0,set:function(t){s=1,e.className=n.value=t+="",s=0;var a=t.trim().split(r),l=n.length;e:for(var o=0,u=n.length=a.length,c=0;o!==u;++o){for(var m=0;m!==o;++m)if(a[m]===a[o]){c++;continue e}i[o-c]=a[o]}for(var d=u-c;d<l;++d)delete i[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=i,e[" uCL"]=i,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="",r=this[" uCL"],i=r[" uCLp"];e!==t;++e){a("add",n=arguments[e]+"");for(var l=0,o=i.length,u=n;l!==o;++l){if(this[l]===n)continue e;u+=" "+this[l]}this[o]=n,i.length+=1,i.value=u}s=1,r.className=i.value,s=0},u.prototype.remove=function(){for(var e=0,t=arguments.length,n="",r=this[" uCL"],i=r[" uCLp"];e!==t;++e){a("remove",n=arguments[e]+"");for(var l=0,o=i.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],i.length-=1,i.value=u)}s=1,r.className=i.value,s=0},e.DOMTokenList=u;try{e.Object.defineProperty(e.Element.prototype,"classList",{enumerable:1,get:function(e){return i.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){a("replace",e),a("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 r=arguments[1];t!==n;++t)e.call(r,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 Wt={"eligibility-modal.bullet-1":"Wählen Sie an der Kasse <strong>Alma</strong> .","eligibility-modal.bullet-2":"Füllen Sie die <strong>angeforderten</strong> Informationen aus.","eligibility-modal.bullet-3":"Die Bestätigung Ihrer Zahlung <strong>sofort</strong> !","eligibility-modal.cost":"Davon Kosten","eligibility-modal.credit-commitment":"Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.","eligibility-modal.credit-cost":"Davon Kreditkosten","eligibility-modal.credit-cost-amount":"{creditCost} (APR {TAEG})","eligibility-modal.title":"<highlighted>Bezahlen Sie in Raten</highlighted> oder später per Kreditkarte mit Alma.","eligibility-modal.total":"Insgesamt","installments.today":"Heutzutage","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Bezahlen Sie in 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.multiple-installments":"{firstInstallmentAmount} dann {numberOfRemainingInstallments, plural, one {# Monatsrate} other {# Monatsraten}} von {othersInstallmentAmount}"},Zt={"eligibility-modal.bullet-1":"Choose <strong>Alma</strong> at checkout.","eligibility-modal.bullet-2":"Fill in the <strong>information</strong> requested.","eligibility-modal.bullet-3":"Validation of your payment <strong>instantaneous</strong>!","eligibility-modal.cost":"Of which costs","eligibility-modal.credit-commitment":"A loan commits you and must be repaid. Check your ability to repay before committing yourself.","eligibility-modal.credit-cost":"Of which cost of credit","eligibility-modal.credit-cost-amount":"{creditCost} (APR {TAEG})","eligibility-modal.title":"<highlighted>Pay in installments</highlighted> or later by credit card with Alma.","eligibility-modal.total":"Total","installments.today":"Today","payment-plan-strings.day-abbreviation":"T{numberOfDeferredDays}","payment-plan-strings.default-message":"Pay in installments with Alma","payment-plan-strings.deferred":"{totalAmount} to be paid on {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Until {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"From {minAmount}","payment-plan-strings.multiple-installments":"{firstInstallmentAmount} then {numberOfRemainingInstallments, plural, one {# monthly installment} other {# monthly installment}} of {othersInstallmentAmount}"},Yt={"eligibility-modal.bullet-1":"Elige <strong>Alma</strong> en el momento de la compra.","eligibility-modal.bullet-2":"Renseignez les <strong>informations</strong> demandées.","eligibility-modal.bullet-3":"¡Validación de su pago <strong>instantánea</strong>!","eligibility-modal.cost":"De los cuales, los costes","eligibility-modal.credit-commitment":"Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad de repago antes de comprometerte.","eligibility-modal.credit-cost":"De los cuales el coste del crédito","eligibility-modal.credit-cost-amount":"{creditCost} (TAE {TAEG})","eligibility-modal.title":"<highlighted>Paga a plazos</highlighted> o posteriormente con tarjeta de crédito con Alma.","eligibility-modal.total":"Total","installments.today":"Hoy","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Pagar a plazos con Alma","payment-plan-strings.deferred":"{totalAmount} a pagar en {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Hasta que {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"De {minAmount}","payment-plan-strings.multiple-installments":"{firstInstallmentAmount} entonces {numberOfRemainingInstallments, plural, one {# ¡facturación mensual} other {# ¡facturación mensual de}} de {othersInstallmentAmount}"},Kt={"eligibility-modal.bullet-1":"Choisissez <strong>Alma</strong> au moment du paiement.","eligibility-modal.bullet-2":"Renseignez les <strong>informations</strong> demandées.","eligibility-modal.bullet-3":"La validation de votre paiement <strong>instantanée</strong> !","eligibility-modal.cost":"Dont frais","eligibility-modal.credit-commitment":"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.","eligibility-modal.credit-cost":"Dont coût du crédit","eligibility-modal.credit-cost-amount":"{creditCost} (TAEG {TAEG})","eligibility-modal.title":"<highlighted>Payez en plusieurs fois</highlighted> ou plus tard par carte bancaire avec Alma.","eligibility-modal.total":"Total","installments.today":"Aujourd'hui","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","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.multiple-installments":"{firstInstallmentAmount} puis {numberOfRemainingInstallments, plural, one {# mensualité} other {# mensualités}} de {othersInstallmentAmount}"},Qt={"eligibility-modal.bullet-1":"Scegliete <strong>Alma</strong> alla cassa.","eligibility-modal.bullet-2":"Compila le informazioni <strong></strong> richieste.","eligibility-modal.bullet-3":"Convalida del vostro pagamento <strong>istantaneo</strong>!","eligibility-modal.cost":"Di cui costi","eligibility-modal.credit-commitment":"Un prestito ti impegna e deve essere ripagato. Controllate la vostra capacità di rimborso prima di impegnarvi.","eligibility-modal.credit-cost":"Di cui costo del credito","eligibility-modal.credit-cost-amount":"{creditCost} (APR {TAEG})","eligibility-modal.title":"<highlighted>Paga a rate</highlighted> o successivamente con carta di credito con Alma.","eligibility-modal.total":"Totale","installments.today":"Oggi","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Paga a rate con Alma","payment-plan-strings.deferred":"{totalAmount} da pagare su {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Fino a {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Da {minAmount}","payment-plan-strings.multiple-installments":"{firstInstallmentAmount} allora {numberOfRemainingInstallments, plural, one {# rate mensili} other {# rate mensili}} di {othersInstallmentAmount}"},Xt={"eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen.","eligibility-modal.bullet-2":"Vul de <strong>gevraagde informatie</strong> in.","eligibility-modal.bullet-3":"Validatie van uw betaling <strong>onmiddellijk</strong>!","eligibility-modal.cost":"Waarvan kosten","eligibility-modal.credit-commitment":"Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.","eligibility-modal.credit-cost":"Waarvan kosten van krediet","eligibility-modal.credit-cost-amount":"{creditCost} (APR {TAEG})","eligibility-modal.title":"<highlighted>Betaal in termijnen</highlighted> of later per credit card met Alma.","eligibility-modal.total":"Totaal","installments.today":"Tegenwoordig","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Betaal in termijnen met Alma","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":"Van {minAmount}","payment-plan-strings.multiple-installments":"{firstInstallmentAmount} dan {numberOfRemainingInstallments, plural, one {# maandelijkse termijnen} other {# maandelijkse termijnen}} van {othersInstallmentAmount}"},$t={"eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen.","eligibility-modal.bullet-2":"Vul de <strong>gevraagde informatie</strong> in.","eligibility-modal.bullet-3":"Validatie van uw betaling <strong>onmiddellijk</strong>!","eligibility-modal.cost":"Waarvan kosten","eligibility-modal.credit-commitment":"Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.","eligibility-modal.credit-cost":"Waarvan kosten van krediet","eligibility-modal.credit-cost-amount":"{creditCost} (APR {TAEG})","eligibility-modal.title":"<highlighted>Betaal in termijnen</highlighted> of later per credit card met Alma.","eligibility-modal.total":"Totaal","installments.today":"Tegenwoordig","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Betaal in termijnen met Alma","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":"Van {minAmount}","payment-plan-strings.multiple-installments":"{firstInstallmentAmount} dan {numberOfRemainingInstallments, plural, one {# maandelijkse termijnen} other {# maandelijkse termijnen}} van {othersInstallmentAmount}"},en=function(e){switch(e){case Gt.fr:return Kt;case Gt.en:return Zt;case Gt.es:return Yt;case Gt.it:return Qt;case Gt.de:return Wt;case Gt["nl-BE"]:return Xt;case Gt["nl-NL"]:return $t;default:return Zt}},tn=function(e){var t=e.children,i=e.locale;return n.createElement(r.IntlProvider,{messages:en(i),locale:i,defaultLocale:"en"},t)};function nn(e){var t=e.color,r=void 0===t?"#00425D":t,i=e.underlineColor,a=void 0===i?"#00425D":i;return n.createElement("svg",{className:e.className,width:"40",height:"23",viewBox:"0 0 40 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M6.38546 10.1313V10.029H4.92542C4.23835 10.029 3.72877 10.0972 3.39668 10.2337C3.07605 10.3587 2.91573 10.6374 2.91573 11.0695C2.91573 11.7177 3.37378 12.0418 4.28988 12.0418C5.05711 12.0418 5.59532 11.8826 5.9045 11.5642C6.22514 11.2344 6.38546 10.7568 6.38546 10.1313ZM3.72304 13.9182C2.64663 13.9182 1.85076 13.6567 1.33546 13.1335C0.820153 12.599 0.5625 11.911 0.5625 11.0695C0.5625 10.0574 0.894586 9.32958 1.55876 8.88606C2.22293 8.43118 3.23636 8.20374 4.59906 8.20374H6.38546V7.82846C6.38546 6.98693 5.84725 6.56616 4.77083 6.56616C3.80893 6.56616 3.27644 6.93007 3.17338 7.65788H0.768622C0.848781 6.78223 1.21522 6.04873 1.86794 5.45738C2.52066 4.86603 3.50547 4.57036 4.82236 4.57036C6.1278 4.57036 7.11261 4.86035 7.77678 5.44032C8.44095 6.0203 8.77304 6.83909 8.77304 7.89669V13.7135H6.60875V12.7241C6.09345 13.5202 5.13155 13.9182 3.72304 13.9182Z",fill:r}),n.createElement("path",{d:"M14.2554 11.6324V13.6965C14.0149 13.7306 13.763 13.7476 13.4996 13.7476C12.5492 13.7476 11.8736 13.5486 11.4728 13.1506C11.072 12.7412 10.8716 12.0873 10.8716 11.1889V0.919922H13.3107V11.0183C13.3107 11.2344 13.3508 11.3936 13.4309 11.496C13.5111 11.5983 13.6771 11.6495 13.929 11.6495C13.9863 11.6495 14.0493 11.6495 14.118 11.6495C14.1982 11.6381 14.244 11.6324 14.2554 11.6324Z",fill:r}),n.createElement("path",{d:"M23.8943 8.63019V13.7135H21.4552V8.40844C21.4552 7.23711 20.9742 6.65145 20.0123 6.65145C19.4512 6.65145 19.0161 6.82203 18.7069 7.16319C18.4092 7.50436 18.2603 7.9763 18.2603 8.57902V13.7135H15.8212V4.77506H18.0714V5.86678C18.5409 5.0025 19.4054 4.57036 20.6651 4.57036C21.856 4.57036 22.7263 4.99113 23.2759 5.83266C24.0432 4.99113 25.0394 4.57036 26.2647 4.57036C27.3182 4.57036 28.1255 4.89446 28.6867 5.54267C29.2478 6.19088 29.5283 7.05516 29.5283 8.13551V13.7135H27.0892V8.40844C27.0892 7.23711 26.6083 6.65145 25.6464 6.65145C25.0738 6.65145 24.6386 6.82772 24.3409 7.18025C24.0432 7.52141 23.8943 8.00473 23.8943 8.63019Z",fill:r}),n.createElement("path",{d:"M37.0321 10.1313V10.029H35.572C34.885 10.029 34.3754 10.0972 34.0433 10.2337C33.7227 10.3587 33.5623 10.6374 33.5623 11.0695C33.5623 11.7177 34.0204 12.0418 34.9365 12.0418C35.7037 12.0418 36.2419 11.8826 36.5511 11.5642C36.8717 11.2344 37.0321 10.7568 37.0321 10.1313ZM34.3696 13.9182C33.2932 13.9182 32.4974 13.6567 31.9821 13.1335C31.4668 12.599 31.2091 11.911 31.2091 11.0695C31.2091 10.0574 31.5412 9.32958 32.2054 8.88606C32.8695 8.43118 33.883 8.20374 35.2457 8.20374H37.0321V7.82846C37.0321 6.98693 36.4939 6.56616 35.4174 6.56616C34.4555 6.56616 33.923 6.93007 33.82 7.65788H31.4152C31.4954 6.78223 31.8618 6.04873 32.5145 5.45738C33.1673 4.86603 34.1521 4.57036 35.469 4.57036C36.7744 4.57036 37.7592 4.86035 38.4234 5.44032C39.0876 6.0203 39.4196 6.83909 39.4196 7.89669V13.7135H37.2554V12.7241C36.7401 13.5202 35.7781 13.9182 34.3696 13.9182Z",fill:r}),n.createElement("rect",{y:"20",width:"40",height:"3",fill:a}))}var rn=function(e){return n.createElement("div",{className:a("_2SwwZ",e.className),"data-testid":"loader"},n.createElement("div",{className:"_2qODo"}),n.createElement("div",{className:"_2YO01"}))};function an(){return(an=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ln=function(e){var t=e.installments_count,i=e.deferred_days+30*e.deferred_months;return 1===t?n.createElement(r.FormattedMessage,{id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{numberOfDeferredDays}",values:{numberOfDeferredDays:i>0?"+"+i:""}}):t+"x"};function on(e){var t=e.color;return n.createElement("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.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===t?"#fff":t}))}var sn,un,cn,mn=function(e){var t,r=e.children,i=e.isOpen,l=e.onClose,u=e.className,c=e.contentClassName,m=e.scrollable,d=void 0!==m&&m,f=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(e,["children","isOpen","onClose","className","contentClassName","scrollable"]);return o.setAppElement("body"),n.createElement(o,Object.assign({className:a("_D8SjB",u),overlayClassName:"_1yxCb",onAfterOpen:function(){s.on()},onAfterClose:function(){s.off()},onRequestClose:l,isOpen:i,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0},f),n.createElement("div",{className:"_12LLh"},n.createElement("button",{onClick:l,className:"_3YRro","data-testid":"modal-close-button"},n.createElement(on,null))),n.createElement("div",{className:a("_ocM9x",c,(t={},t._1GP2F=d,t))},r))},dn=function(e){var i=e.isOpen,o=e.onClose,s=e.eligibilityPlans,u=r.useIntl(),c=t.useState(0),m=c[0],d=c[1],f=s[m],g=f&&Jt(f.purchase_amount+f.customer_total_cost_amount),p=f?Jt(f.customer_total_cost_amount):0,y=(null==f?void 0:f.annual_interest_rate)&&f.annual_interest_rate/1e4,h=Jt(f?f.customer_total_cost_amount:0),v=f&&f.installments_count>4;return n.createElement(mn,{isOpen:i,onClose:o,scrollable:!0,ariaHideApp:!1},n.createElement("div",{className:"_tUqYt"},n.createElement("div",{className:"_2xmiY","data-testid":"modal-title-element"},n.createElement(r.FormattedMessage,{id:"eligibility-modal.title",defaultMessage:"<highlighted>Payez en plusieurs fois</highlighted> ou plus tard par carte bancaire avec Alma.",values:{highlighted:function(){return n.createElement("span",null,[].slice.call(arguments))}}})),n.createElement("div",{className:"_3Iopr"},s.map(function(e,t){var r;return n.createElement("button",{key:t,className:a((r={},r._Hak_D=t===m,r)),onClick:function(){return d(t)}},ln(e))})),n.createElement("div",{className:"_2Qzr7","data-testid":"modal-installments-element"},n.createElement("div",{className:a("_jPe3S","_naxaQ")},n.createElement("span",null,n.createElement(r.FormattedMessage,{id:"eligibility-modal.total",defaultMessage:"Total"})),n.createElement("span",null,n.createElement(r.FormattedNumber,{value:g,style:"currency",currency:"EUR"}))),n.createElement("div",{className:a("_jPe3S","_YJM5O")},n.createElement("span",null,n.createElement(r.FormattedMessage,v?{id:"eligibility-modal.credit-cost",defaultMessage:"Dont coût du crédit"}:{id:"eligibility-modal.cost",defaultMessage:"Dont frais"})),n.createElement("span",null,v?n.createElement(r.FormattedMessage,{id:"eligibility-modal.credit-cost-amount",defaultMessage:"{creditCost} (TAEG {TAEG})",values:{creditCost:u.formatNumber(p,{style:"currency",currency:"EUR"}),TAEG:u.formatNumber(null!=y?y:0,{style:"percent",maximumFractionDigits:2})}}):n.createElement(r.FormattedNumber,{value:h,style:"currency",currency:"EUR"}))),((null==f?void 0:f.payment_plan)||[]).map(function(e,t){return n.createElement("div",{className:"_jPe3S",key:t},n.createElement("span",null,l.isToday(1e3*e.due_date)?n.createElement(r.FormattedMessage,{id:"installments.today",defaultMessage:"Aujourd'hui"}):n.createElement(r.FormattedDate,{value:1e3*e.due_date,day:"numeric",month:"long",year:"numeric"})),n.createElement("span",null,n.createElement(r.FormattedNumber,{value:Jt(e.total_amount),style:"currency",currency:"EUR"})))}),v&&n.createElement("p",{className:"_3iZif"},n.createElement(r.FormattedMessage,{id:"eligibility-modal.credit-commitment",defaultMessage:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement\n avant de vous engager."}))),n.createElement("div",{className:"_1v5LL","data-testid":"modal-info-element"},n.createElement("div",{className:"_8qF-d"},n.createElement("div",{className:"_3iUVQ"},"1"),n.createElement("div",null,n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-1",defaultMessage:"Choisissez <strong>Alma</strong> au moment du paiement.",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}}))),n.createElement("div",{className:"_8qF-d"},n.createElement("div",{className:"_3iUVQ"},"2"),n.createElement("div",null,n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-2",defaultMessage:"Renseignez les <strong>informations</strong> demandées.",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}}))),n.createElement("div",{className:"_8qF-d"},n.createElement("div",{className:"_3iUVQ"},"3"),n.createElement("div",null,n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-3",defaultMessage:"La validation de votre paiement <strong>instantanée</strong> !",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}})))),n.createElement("div",{className:"_HqglP"},n.createElement(nn,{underlineColor:"#FF414D"})),n.createElement("div",{className:"_BgGo9"})))},fn=function(e){var i,o,s,u,c,m,d,f,g=e.transitionDelay,p=e.hideIfNotEligible,y=function(e,n,r){var i,a,l,o=n.domain,s=n.merchantId,u=t.useState([]),c=u[0],m=u[1],d=t.useState(qt.PENDING),f=d[0],g=d[1],p=null==r?void 0:r.map(function(e){return{installments_count:e.installmentsCount}});return t.useEffect(function(){f===qt.PENDING&&function(e,t,n){void 0===e&&(e="");try{return Promise.resolve(fetch(e,{method:"POST",headers:an({"Content-Type":"application/json"},n),body:JSON.stringify(t)})).then(function(e){return e.json()})}catch(e){return Promise.reject(e)}}(o+"/v2/payments/eligibility",{purchase_amount:e,queries:p},{Authorization:"Alma-Merchant-Auth "+s}).then(function(e){g(qt.SUCCESS),m(e)}).catch(function(){g(qt.FAILED)})},[f]),[(i=c,a=r,l=i.filter(function(e){return!(1===e.installments_count&&0===e.deferred_days&&0===e.deferred_months)}),a?l.map(function(e){var t=30*(e.deferred_months?e.deferred_months:0)+(e.deferred_days?e.deferred_days:0),n=a.find(function(n){return e.installments_count===n.installmentsCount&&t===30*(n.deferredMonths?n.deferredMonths:0)+(n.deferredDays?n.deferredDays:0)});return an({},e,{eligible:!!n&&e.purchase_amount>=(null==n?void 0:n.minAmount)&&e.purchase_amount<=(null==n?void 0:n.maxAmount),minAmount:null==n?void 0:n.minAmount,maxAmount:null==n?void 0:n.maxAmount})}):l),f]}(e.purchaseAmount,e.apiData,e.configPlans),h=y[0],v=y[1],b=h.filter(function(e){return!0===e.eligible}),E=t.useState(!1),A=E[0],C=E[1],_=function(e,n){var r=t.useState(0),i=r[0],a=r[1],l=t.useState(!0),o=l[0],s=l[1];return t.useEffect(function(){var t=!0;return 0!==e.length&&(!e.includes(i)&&o&&a(e[0]),setTimeout(function(){o&&t&&a(e[e.includes(i)?(e.indexOf(i)+1)%e.length:0])},n)),function(){t=!1}},[e,i]),{current:i,onHover:function(e){a(e),s(!1)},onLeave:function(){s(!0)}}}(h.map(function(e,t){if(e.eligible)return t}).filter(function(e){return void 0!==e}),g||5500),w=_.current,O=_.onHover,S=_.onLeave;return v===qt.PENDING?n.createElement("div",{className:a("_1ShhM","_OaY-w")},n.createElement(rn,null)):p&&0==b.length||0===h.length||v===qt.FAILED?null:n.createElement(n.Fragment,null,n.createElement("button",{onClick:function(){b.length>0&&C(!0)},className:"_1ShhM",style:{cursor:b.length>0?"pointer":"initial"},"data-testid":"widget-button"},n.createElement("div",{className:"_Q7H0F"},n.createElement(nn,{className:"_1pqvZ"}),n.createElement("div",{className:"_3PxP3"},h.map(function(e,t){var r;return n.createElement("div",{onMouseOver:function(){return O(t)},onMouseOut:function(){return S()},key:t,className:a("_1Pf7z",(r={},r._3aD09=w===t,r._3BUl_=!e.eligible,r))},ln(e))}))),n.createElement("div",{className:a("_2TfhX",(i={},i._3BUl_=h[w]&&!h[w].eligible,i))},0!==h.length&&(s=(o=h[w]).installments_count,u=o.purchase_amount,m=void 0===(c=o.minAmount)?0:c,f=void 0===(d=o.maxAmount)?0:d,n.createElement(r.FormattedMessage,o.eligible?0!==o.deferred_days+30*o.deferred_months&&1===s?{id:"payment-plan-strings.deferred",defaultMessage:"{totalAmount} à payer le {dueDate}",values:{totalAmount:n.createElement(r.FormattedNumber,{value:Jt(o.payment_plan[0].total_amount),style:"currency",currency:"EUR"}),dueDate:n.createElement(r.FormattedDate,{value:l.secondsToMilliseconds(o.payment_plan[0].due_date),day:"numeric",month:"long",year:"numeric"})}}:s>0?{id:"payment-plan-strings.multiple-installments",defaultMessage:"{firstInstallmentAmount} puis {numberOfRemainingInstallments, plural, one {# mensualité} other {# mensualités}} de {othersInstallmentAmount}",values:{firstInstallmentAmount:n.createElement(r.FormattedNumber,{value:Jt(o.payment_plan[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:s-1,othersInstallmentAmount:n.createElement(r.FormattedNumber,{value:Jt(o.payment_plan[1].total_amount),style:"currency",currency:"EUR"})}}:{id:"payment-plan-strings.default-message",defaultMessage:"Payez en plusieurs fois avec Alma"}:u>f?{id:"payment-plan-strings.ineligible-greater-than-max",defaultMessage:"Jusqu'à {maxAmount}",values:{maxAmount:n.createElement(r.FormattedNumber,{value:Jt(f),style:"currency",currency:"EUR"})}}:{id:"payment-plan-strings.ineligible-lower-than-min",defaultMessage:"À partir de {minAmount}",values:{minAmount:n.createElement(r.FormattedNumber,{value:Jt(m),style:"currency",currency:"EUR"})}})))),n.createElement(dn,{isOpen:A,onClose:function(){return C(!1)},eligibilityPlans:h.filter(function(e){return e.eligible})}))},gn=function(){function e(e){this.apiData=e}return e.prototype.add=function(e,t){if(e===Ut.PaymentPlans){var r=t.container,a=t.purchaseAmount,l=t.plans,o=t.transitionDelay,s=t.hideIfNotEligible,u=t.locale,c=void 0===u?Gt.en:u,m=document.querySelector(r);m&&(i.unmountComponentAtNode(m),i.render(n.createElement(tn,{locale:c},n.createElement(fn,{purchaseAmount:a,apiData:this.apiData,configPlans:l,transitionDelay:o,hideIfNotEligible:s})),document.querySelector(r)))}},e}();(sn=exports.ApiMode||(exports.ApiMode={})).LIVE="https://api.getalma.eu",sn.TEST="https://api.sandbox.getalma.eu",(un=exports.Widgets||(exports.Widgets={})).initialize=function(e,t){return new gn({domain:t,merchantId:e})},un.PaymentPlans=Ut.PaymentPlans,(cn=exports.Utils||(exports.Utils={})).priceToCents=function(e){return Math.round(100*e)},cn.priceFromCents=Jt,cn.formatCents=function(e){return String(Jt(e)).replace(".",",")};
|
|
1
|
+
function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=require("react"),n=e(t),r=require("react-intl"),i=require("react-dom"),a=e(require("classnames")),l=require("date-fns"),o=e(require("react-modal")),s=e(require("no-scroll")),u=Math.ceil,c=Math.floor,m=function(e){return isNaN(e=+e)?0:(e>0?c:u)(e)},d=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},f=function(e){return function(t,n){var r,i,a=String(d(t)),l=m(n),o=a.length;return l<0||l>=o?e?"":void 0:(r=a.charCodeAt(l))<55296||r>56319||l+1===o||(i=a.charCodeAt(l+1))<56320||i>57343?e?a.charAt(l):r:e?a.slice(l,l+2):i-56320+(r-55296<<10)+65536}},g={codeAt:f(!1),charAt:f(!0)},p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(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 h=function(e){return e&&e.Math==Math&&e},v=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof p&&p)||function(){return this}()||Function("return this")(),b=function(e){try{return!!e()}catch(e){return!0}},E=!b(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),A=function(e){return"object"==typeof e?null!==e:"function"==typeof e},C=v.document,_=A(C)&&A(C.createElement),w=function(e){return _?C.createElement(e):{}},O=!E&&!b(function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a}),S=function(e){if(!A(e))throw TypeError(String(e)+" is not an object");return e},N=function(e,t){if(!A(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!A(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!A(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!A(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},D=Object.defineProperty,j={f:E?D:function(e,t,n){if(S(e),t=N(t,!0),S(n),O)try{return D(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},M=E?function(e,t,n){return j.f(e,t,P(1,n))}:function(e,t,n){return e[t]=n,e},x=function(e,t){try{M(v,e,t)}catch(n){v[e]=t}return t},L=v["__core-js_shared__"]||x("__core-js_shared__",{}),T=Function.toString;"function"!=typeof L.inspectSource&&(L.inspectSource=function(e){return T.call(e)});var I,k,F,R=L.inspectSource,z=v.WeakMap,V="function"==typeof z&&/native code/.test(R(z)),U={}.hasOwnProperty,G=function(e,t){return U.call(e,t)},q=y(function(e){(e.exports=function(e,t){return L[e]||(L[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.1",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),H=0,B=Math.random(),W=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++H+B).toString(36)},Z=q("keys"),J=function(e){return Z[e]||(Z[e]=W(e))},Y={};if(V){var K=L.state||(L.state=new(0,v.WeakMap)),Q=K.get,X=K.has,$=K.set;I=function(e,t){return t.facade=e,$.call(K,e,t),t},k=function(e){return Q.call(K,e)||{}},F=function(e){return X.call(K,e)}}else{var ee=J("state");Y[ee]=!0,I=function(e,t){return t.facade=e,M(e,ee,t),t},k=function(e){return G(e,ee)?e[ee]:{}},F=function(e){return G(e,ee)}}var te,ne,re,ie={set:I,get:k,has:F,enforce:function(e){return F(e)?k(e):I(e,{})},getterFor:function(e){return function(t){var n;if(!A(t)||(n=k(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ae={}.propertyIsEnumerable,le=Object.getOwnPropertyDescriptor,oe={f:le&&!ae.call({1:2},1)?function(e){var t=le(this,e);return!!t&&t.enumerable}:ae},se={}.toString,ue=function(e){return se.call(e).slice(8,-1)},ce="".split,me=b(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==ue(e)?ce.call(e,""):Object(e)}:Object,de=function(e){return me(d(e))},fe=Object.getOwnPropertyDescriptor,ge={f:E?fe:function(e,t){if(e=de(e),t=N(t,!0),O)try{return fe(e,t)}catch(e){}if(G(e,t))return P(!oe.f.call(e,t),e[t])}},pe=y(function(e){var t=ie.get,n=ie.enforce,r=String(String).split("String");(e.exports=function(e,t,i,a){var l,o=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||G(i,"name")||M(i,"name",t),(l=n(i)).source||(l.source=r.join("string"==typeof t?t:""))),e!==v?(o?!u&&e[t]&&(s=!0):delete e[t],s?e[t]=i:M(e,t,i)):s?e[t]=i:x(t,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||R(this)})}),ye=v,he=function(e){return"function"==typeof e?e:void 0},ve=function(e,t){return arguments.length<2?he(ye[e])||he(v[e]):ye[e]&&ye[e][t]||v[e]&&v[e][t]},be=Math.min,Ee=function(e){return e>0?be(m(e),9007199254740991):0},Ae=Math.max,Ce=Math.min,_e=function(e){return function(t,n,r){var i,a=de(t),l=Ee(a.length),o=function(e,t){var n=m(e);return n<0?Ae(n+t,0):Ce(n,t)}(r,l);if(e&&n!=n){for(;l>o;)if((i=a[o++])!=i)return!0}else for(;l>o;o++)if((e||o in a)&&a[o]===n)return e||o||0;return!e&&-1}},we=(_e(!0),_e(!1)),Oe=function(e,t){var n,r=de(e),i=0,a=[];for(n in r)!G(Y,n)&&G(r,n)&&a.push(n);for(;t.length>i;)G(r,n=t[i++])&&(~we(a,n)||a.push(n));return a},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ne=Se.concat("length","prototype"),De={f:Object.getOwnPropertyNames||function(e){return Oe(e,Ne)}},je={f:Object.getOwnPropertySymbols},Pe=ve("Reflect","ownKeys")||function(e){var t=De.f(S(e)),n=je.f;return n?t.concat(n(e)):t},Me=function(e,t){for(var n=Pe(t),r=j.f,i=ge.f,a=0;a<n.length;a++){var l=n[a];G(e,l)||r(e,l,i(t,l))}},xe=/#|\.prototype\./,Le=function(e,t){var n=Ie[Te(e)];return n==Fe||n!=ke&&("function"==typeof t?b(t):!!t)},Te=Le.normalize=function(e){return String(e).replace(xe,".").toLowerCase()},Ie=Le.data={},ke=Le.NATIVE="N",Fe=Le.POLYFILL="P",Re=Le,ze=ge.f,Ve=function(e,t){var n,r,i,a,l,o=e.target,s=e.global,u=e.stat;if(n=s?v:u?v[o]||x(o,{}):(v[o]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(l=ze(n,r))&&l.value:n[r],!Re(s?r:o+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Me(a,i)}(e.sham||i&&i.sham)&&M(a,"sham",!0),pe(n,r,a,e)}},Ue=function(e){return Object(d(e))},Ge=!b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),qe=J("IE_PROTO"),He=Object.prototype,Be=Ge?Object.getPrototypeOf:function(e){return e=Ue(e),G(e,qe)?e[qe]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?He:null},We=!!Object.getOwnPropertySymbols&&!b(function(){return!String(Symbol())}),Ze=We&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Je=q("wks"),Ye=v.Symbol,Ke=Ze?Ye:Ye&&Ye.withoutSetter||W,Qe=function(e){return G(Je,e)||(Je[e]=We&&G(Ye,e)?Ye[e]:Ke("Symbol."+e)),Je[e]},Xe=Qe("iterator"),$e=!1;[].keys&&("next"in(re=[].keys())?(ne=Be(Be(re)))!==Object.prototype&&(te=ne):$e=!0),null==te&&(te={}),G(te,Xe)||M(te,Xe,function(){return this});var et,tt={IteratorPrototype:te,BUGGY_SAFARI_ITERATORS:$e},nt=Object.keys||function(e){return Oe(e,Se)},rt=E?Object.defineProperties:function(e,t){S(e);for(var n,r=nt(t),i=r.length,a=0;i>a;)j.f(e,n=r[a++],t[n]);return e},it=ve("document","documentElement"),at=J("IE_PROTO"),lt=function(){},ot=function(e){return"<script>"+e+"<\/script>"},st=function(){try{et=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;st=et?function(e){e.write(ot("")),e.close();var t=e.parentWindow.Object;return e=null,t}(et):((t=w("iframe")).style.display="none",it.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ot("document.F=Object")),e.close(),e.F);for(var n=Se.length;n--;)delete st.prototype[Se[n]];return st()};Y[at]=!0;var ut=Object.create||function(e,t){var n;return null!==e?(lt.prototype=S(e),n=new lt,lt.prototype=null,n[at]=e):n=st(),void 0===t?n:rt(n,t)},ct=j.f,mt=Qe("toStringTag"),dt=function(e,t,n){e&&!G(e=n?e:e.prototype,mt)&&ct(e,mt,{configurable:!0,value:t})},ft={},gt=tt.IteratorPrototype,pt=function(){return this},yt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return S(n),function(e){if(!A(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),ht=tt.IteratorPrototype,vt=tt.BUGGY_SAFARI_ITERATORS,bt=Qe("iterator"),Et=function(){return this},At=g.charAt,Ct=ie.set,_t=ie.getterFor("String Iterator");!function(e,t,n,r,i,a,l){!function(e,t,n){e.prototype=ut(gt,{next:P(1,function(){var e,t=_t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=At(n,r),t.index+=e.length,{value:e,done:!1})})}),dt(e,"String Iterator",!1),ft["String Iterator"]=pt}(n);var o,s,u,c=function(e){if(void 0===e&&f)return f;if(!vt&&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[bt]||m["@@iterator"]||void 0,f=!vt&&d||c(void 0);if(d&&(o=Be(d.call(new e)),ht!==Object.prototype&&o.next&&(Be(o)!==ht&&(yt?yt(o,ht):"function"!=typeof o[bt]&&M(o,bt,Et)),dt(o,"String Iterator",!0))),m[bt]!==f&&M(m,bt,f),void(ft.String=f))if(void(s={values:c("values"),keys:c("keys"),entries:c("entries")}))for(u in s)(vt||!(u in m))&&pe(m,u,s[u]);else Ve({target:"String",proto:!0,forced:vt||!1},s)}(String,0,function(e){Ct(this,{type:"String Iterator",string:String(e),index:0})});var wt=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Ot=function(e,t,n,r){try{return r?t(S(n)[0],n[1]):t(n)}catch(t){throw function(e){var t=e.return;void 0!==t&&S(t.call(e))}(e),t}},St=Qe("iterator"),Nt=Array.prototype,Dt=function(e){return void 0!==e&&(ft.Array===e||Nt[St]===e)},jt=function(e,t,n){var r=N(t);r in e?j.f(e,r,P(0,n)):e[r]=n},Pt={};Pt[Qe("toStringTag")]="z";var Mt="[object z]"===String(Pt),xt=Qe("toStringTag"),Lt="Arguments"==ue(function(){return arguments}()),Tt=Mt?ue:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),xt))?n:Lt?ue(t):"Object"==(r=ue(t))&&"function"==typeof t.callee?"Arguments":r},It=Qe("iterator"),kt=function(e){if(null!=e)return e[It]||e["@@iterator"]||ft[Tt(e)]},Ft=Qe("iterator"),Rt=!1;try{var zt=0,Vt={next:function(){return{done:!!zt++}},return:function(){Rt=!0}};Vt[Ft]=function(){return this},Array.from(Vt,function(){throw 2})}catch(e){}var Ut,Gt,qt,Ht,Bt=!function(e,t){if(!Rt)return!1;var n=!1;try{var r={};r[Ft]=function(){return{next:function(){return{done:n=!0}}}},Array.from(r)}catch(e){}return n}();function Wt(e){return Number((e/100).toFixed(2))}Ve({target:"Array",stat:!0,forced:Bt},{from:function(e){var t,n,r,i,a,l,o=Ue(e),s="function"==typeof this?this:Array,u=arguments.length,c=u>1?arguments[1]:void 0,m=void 0!==c,d=kt(o),f=0;if(m&&(c=wt(c,u>2?arguments[2]:void 0,2)),null==d||s==Array&&Dt(d))for(n=new s(t=Ee(o.length));t>f;f++)l=m?c(o[f],f):o[f],jt(n,f,l);else for(a=(i=d.call(o)).next,n=new s;!(r=a.call(i)).done;f++)l=m?Ot(i,c,[r.value,f],!0):r.value,jt(n,f,l);return n.length=f,n}}),function(e){e.PaymentPlans="PaymentPlans"}(Ut||(Ut={})),function(e){e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed"}(Gt||(Gt={})),function(e){e.en="en",e.fr="fr",e.de="de",e.it="it",e.es="es",e["nl-NL"]="nl-NL",e["nl-BE"]="nl-BE"}(qt||(qt={})),"function"!=typeof(Ht=window.Element.prototype).matches&&(Ht.matches=Ht.msMatchesSelector||Ht.mozMatchesSelector||Ht.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 Ht.closest&&(Ht.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,r=/[\11\12\14\15\40]/,i=0,a=function(e,t){if(""===t)throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided must not be empty.");if(-1!==(i=t.search(r)))throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided ('"+t[i]+"') contains HTML space characters, which are not valid in tokens.")};"function"!=typeof DOMTokenList&&function(e){var t=e.document,n=e.Object,i=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 i=t.srcElement,a=i[" uCLp"],o=""+i[n],u=o.trim().split(r),c=i["classList"===n?" uCL":"classList"],m=a.length;e:for(var d=0,f=a.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,i.classList=c,i.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,i=new t;e:for(var a=e.className.trim().split(r),m=0,d=a.length,f=0;m!==d;++m){for(var g=0;g!==m;++g)if(a[g]===a[m]){f++;continue e}this[m-f]=a[m]}n.length=d-f,n.value=e.className,n[" uCL"]=e,l?(l(e,"classList",{enumerable:1,get:function(){return i},configurable:0,set:function(t){s=1,e.className=n.value=t+="",s=0;var a=t.trim().split(r),l=n.length;e:for(var o=0,u=n.length=a.length,c=0;o!==u;++o){for(var m=0;m!==o;++m)if(a[m]===a[o]){c++;continue e}i[o-c]=a[o]}for(var d=u-c;d<l;++d)delete i[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=i,e[" uCL"]=i,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="",r=this[" uCL"],i=r[" uCLp"];e!==t;++e){a("add",n=arguments[e]+"");for(var l=0,o=i.length,u=n;l!==o;++l){if(this[l]===n)continue e;u+=" "+this[l]}this[o]=n,i.length+=1,i.value=u}s=1,r.className=i.value,s=0},u.prototype.remove=function(){for(var e=0,t=arguments.length,n="",r=this[" uCL"],i=r[" uCLp"];e!==t;++e){a("remove",n=arguments[e]+"");for(var l=0,o=i.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],i.length-=1,i.value=u)}s=1,r.className=i.value,s=0},e.DOMTokenList=u;try{e.Object.defineProperty(e.Element.prototype,"classList",{enumerable:1,get:function(e){return i.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){a("replace",e),a("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 r=arguments[1];t!==n;++t)e.call(r,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 Zt={"eligibility-modal.bullet-1":"Wählen Sie an der Kasse <strong>Alma</strong> .","eligibility-modal.bullet-2":"Füllen Sie die <strong>angeforderten</strong> Informationen aus.","eligibility-modal.bullet-3":"Die Bestätigung Ihrer Zahlung <strong>sofort</strong> !","eligibility-modal.cost":"Davon Kosten","eligibility-modal.credit-commitment":"Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.","eligibility-modal.credit-cost":"Davon Kreditkosten","eligibility-modal.credit-cost-amount":"{creditCost} (APR {TAEG})","eligibility-modal.title":"<highlighted>Bezahlen Sie in Raten</highlighted> oder später per Kreditkarte mit Alma.","eligibility-modal.total":"Insgesamt","installments.today":"Heutzutage","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Bezahlen Sie in 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.multiple-installments":"{firstInstallmentAmount} dann {numberOfRemainingInstallments, plural, one {# Monatsrate} other {# Monatsraten}} von {othersInstallmentAmount}"},Jt={"eligibility-modal.bullet-1":"Choose <strong>Alma</strong> at checkout.","eligibility-modal.bullet-2":"Fill in the <strong>information</strong> requested.","eligibility-modal.bullet-3":"Validation of your payment <strong>instantaneous</strong>!","eligibility-modal.cost":"Of which costs","eligibility-modal.credit-commitment":"A loan commits you and must be repaid. Check your ability to repay before committing yourself.","eligibility-modal.credit-cost":"Of which cost of credit","eligibility-modal.credit-cost-amount":"{creditCost} (APR {TAEG})","eligibility-modal.title":"<highlighted>Pay in installments</highlighted> or later by credit card with Alma.","eligibility-modal.total":"Total","installments.today":"Today","payment-plan-strings.day-abbreviation":"T{numberOfDeferredDays}","payment-plan-strings.default-message":"Pay in installments with Alma","payment-plan-strings.deferred":"{totalAmount} to be paid on {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Until {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"From {minAmount}","payment-plan-strings.multiple-installments":"{firstInstallmentAmount} then {numberOfRemainingInstallments, plural, one {# monthly installment} other {# monthly installment}} of {othersInstallmentAmount}"},Yt={"eligibility-modal.bullet-1":"Elige <strong>Alma</strong> como método de pago.","eligibility-modal.bullet-2":"Completa la <strong>información</strong> solicitada.","eligibility-modal.bullet-3":"¡Validación <strong>inmediata</strong> de tu pago!","eligibility-modal.cost":"Gastos (incl. en el total)","eligibility-modal.credit-commitment":"Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.","eligibility-modal.credit-cost":"Coste de crédito (incl. en el total)","eligibility-modal.credit-cost-amount":"{creditCost} (TAE {TAEG})","eligibility-modal.title":"<highlighted>Paga a plazos</highlighted> o más adelante con tu tarjeta, a través de Alma.","eligibility-modal.total":"Total","installments.today":"Hoy","payment-plan-strings.day-abbreviation":"D{numberOfDeferredDays}","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.multiple-installments":"{firstInstallmentAmount} después {numberOfRemainingInstallments, plural, one {#mensualidad} other {# mensualidades}} de {othersInstallmentAmount}"},Kt={"eligibility-modal.bullet-1":"Choisissez <strong>Alma</strong> au moment du paiement.","eligibility-modal.bullet-2":"Renseignez les <strong>informations</strong> demandées.","eligibility-modal.bullet-3":"La validation de votre paiement <strong>instantanée</strong> !","eligibility-modal.cost":"Dont frais","eligibility-modal.credit-commitment":"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.","eligibility-modal.credit-cost":"Dont coût du crédit","eligibility-modal.credit-cost-amount":"{creditCost} (TAEG {TAEG})","eligibility-modal.title":"<highlighted>Payez en plusieurs fois</highlighted> ou plus tard par carte bancaire avec Alma.","eligibility-modal.total":"Total","installments.today":"Aujourd'hui","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","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.multiple-installments":"{firstInstallmentAmount} puis {numberOfRemainingInstallments, plural, one {# mensualité} other {# mensualités}} de {othersInstallmentAmount}"},Qt={"eligibility-modal.bullet-1":"Scegliete <strong>Alma</strong> alla cassa.","eligibility-modal.bullet-2":"Compila le informazioni <strong></strong> richieste.","eligibility-modal.bullet-3":"Convalida del vostro pagamento <strong>istantaneo</strong>!","eligibility-modal.cost":"Di cui costi","eligibility-modal.credit-commitment":"Un prestito ti impegna e deve essere ripagato. Controllate la vostra capacità di rimborso prima di impegnarvi.","eligibility-modal.credit-cost":"Di cui costo del credito","eligibility-modal.credit-cost-amount":"{creditCost} (APR {TAEG})","eligibility-modal.title":"<highlighted>Paga a rate</highlighted> o successivamente con carta di credito con Alma.","eligibility-modal.total":"Totale","installments.today":"Oggi","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Paga a rate con Alma","payment-plan-strings.deferred":"{totalAmount} da pagare su {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Fino a {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Da {minAmount}","payment-plan-strings.multiple-installments":"{firstInstallmentAmount} allora {numberOfRemainingInstallments, plural, one {# rate mensili} other {# rate mensili}} di {othersInstallmentAmount}"},Xt={"eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen.","eligibility-modal.bullet-2":"Vul de <strong>gevraagde informatie</strong> in.","eligibility-modal.bullet-3":"Validatie van uw betaling <strong>onmiddellijk</strong>!","eligibility-modal.cost":"Waarvan kosten","eligibility-modal.credit-commitment":"Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.","eligibility-modal.credit-cost":"Waarvan kosten van krediet","eligibility-modal.credit-cost-amount":"{creditCost} (APR {TAEG})","eligibility-modal.title":"<highlighted>Betaal in termijnen</highlighted> of later per credit card met Alma.","eligibility-modal.total":"Totaal","installments.today":"Tegenwoordig","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Betaal in termijnen met Alma","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":"Van {minAmount}","payment-plan-strings.multiple-installments":"{firstInstallmentAmount} dan {numberOfRemainingInstallments, plural, one {# maandelijkse termijnen} other {# maandelijkse termijnen}} van {othersInstallmentAmount}"},$t={"eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen.","eligibility-modal.bullet-2":"Vul de <strong>gevraagde informatie</strong> in.","eligibility-modal.bullet-3":"Validatie van uw betaling <strong>onmiddellijk</strong>!","eligibility-modal.cost":"Waarvan kosten","eligibility-modal.credit-commitment":"Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.","eligibility-modal.credit-cost":"Waarvan kosten van krediet","eligibility-modal.credit-cost-amount":"{creditCost} (APR {TAEG})","eligibility-modal.title":"<highlighted>Betaal in termijnen</highlighted> of later per credit card met Alma.","eligibility-modal.total":"Totaal","installments.today":"Tegenwoordig","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Betaal in termijnen met Alma","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":"Van {minAmount}","payment-plan-strings.multiple-installments":"{firstInstallmentAmount} dan {numberOfRemainingInstallments, plural, one {# maandelijkse termijnen} other {# maandelijkse termijnen}} van {othersInstallmentAmount}"},en=function(e){switch(e){case qt.fr:return Kt;case qt.en:return Jt;case qt.es:return Yt;case qt.it:return Qt;case qt.de:return Zt;case qt["nl-BE"]:return Xt;case qt["nl-NL"]:return $t;default:return Jt}},tn=function(e){var t=e.children,i=e.locale;return n.createElement(r.IntlProvider,{messages:en(i),locale:i,defaultLocale:"en"},t)};function nn(e){var t=e.color,r=void 0===t?"#00425D":t,i=e.underlineColor,a=void 0===i?"#00425D":i;return n.createElement("svg",{className:e.className,width:"40",height:"23",viewBox:"0 0 40 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M6.38546 10.1313V10.029H4.92542C4.23835 10.029 3.72877 10.0972 3.39668 10.2337C3.07605 10.3587 2.91573 10.6374 2.91573 11.0695C2.91573 11.7177 3.37378 12.0418 4.28988 12.0418C5.05711 12.0418 5.59532 11.8826 5.9045 11.5642C6.22514 11.2344 6.38546 10.7568 6.38546 10.1313ZM3.72304 13.9182C2.64663 13.9182 1.85076 13.6567 1.33546 13.1335C0.820153 12.599 0.5625 11.911 0.5625 11.0695C0.5625 10.0574 0.894586 9.32958 1.55876 8.88606C2.22293 8.43118 3.23636 8.20374 4.59906 8.20374H6.38546V7.82846C6.38546 6.98693 5.84725 6.56616 4.77083 6.56616C3.80893 6.56616 3.27644 6.93007 3.17338 7.65788H0.768622C0.848781 6.78223 1.21522 6.04873 1.86794 5.45738C2.52066 4.86603 3.50547 4.57036 4.82236 4.57036C6.1278 4.57036 7.11261 4.86035 7.77678 5.44032C8.44095 6.0203 8.77304 6.83909 8.77304 7.89669V13.7135H6.60875V12.7241C6.09345 13.5202 5.13155 13.9182 3.72304 13.9182Z",fill:r}),n.createElement("path",{d:"M14.2554 11.6324V13.6965C14.0149 13.7306 13.763 13.7476 13.4996 13.7476C12.5492 13.7476 11.8736 13.5486 11.4728 13.1506C11.072 12.7412 10.8716 12.0873 10.8716 11.1889V0.919922H13.3107V11.0183C13.3107 11.2344 13.3508 11.3936 13.4309 11.496C13.5111 11.5983 13.6771 11.6495 13.929 11.6495C13.9863 11.6495 14.0493 11.6495 14.118 11.6495C14.1982 11.6381 14.244 11.6324 14.2554 11.6324Z",fill:r}),n.createElement("path",{d:"M23.8943 8.63019V13.7135H21.4552V8.40844C21.4552 7.23711 20.9742 6.65145 20.0123 6.65145C19.4512 6.65145 19.0161 6.82203 18.7069 7.16319C18.4092 7.50436 18.2603 7.9763 18.2603 8.57902V13.7135H15.8212V4.77506H18.0714V5.86678C18.5409 5.0025 19.4054 4.57036 20.6651 4.57036C21.856 4.57036 22.7263 4.99113 23.2759 5.83266C24.0432 4.99113 25.0394 4.57036 26.2647 4.57036C27.3182 4.57036 28.1255 4.89446 28.6867 5.54267C29.2478 6.19088 29.5283 7.05516 29.5283 8.13551V13.7135H27.0892V8.40844C27.0892 7.23711 26.6083 6.65145 25.6464 6.65145C25.0738 6.65145 24.6386 6.82772 24.3409 7.18025C24.0432 7.52141 23.8943 8.00473 23.8943 8.63019Z",fill:r}),n.createElement("path",{d:"M37.0321 10.1313V10.029H35.572C34.885 10.029 34.3754 10.0972 34.0433 10.2337C33.7227 10.3587 33.5623 10.6374 33.5623 11.0695C33.5623 11.7177 34.0204 12.0418 34.9365 12.0418C35.7037 12.0418 36.2419 11.8826 36.5511 11.5642C36.8717 11.2344 37.0321 10.7568 37.0321 10.1313ZM34.3696 13.9182C33.2932 13.9182 32.4974 13.6567 31.9821 13.1335C31.4668 12.599 31.2091 11.911 31.2091 11.0695C31.2091 10.0574 31.5412 9.32958 32.2054 8.88606C32.8695 8.43118 33.883 8.20374 35.2457 8.20374H37.0321V7.82846C37.0321 6.98693 36.4939 6.56616 35.4174 6.56616C34.4555 6.56616 33.923 6.93007 33.82 7.65788H31.4152C31.4954 6.78223 31.8618 6.04873 32.5145 5.45738C33.1673 4.86603 34.1521 4.57036 35.469 4.57036C36.7744 4.57036 37.7592 4.86035 38.4234 5.44032C39.0876 6.0203 39.4196 6.83909 39.4196 7.89669V13.7135H37.2554V12.7241C36.7401 13.5202 35.7781 13.9182 34.3696 13.9182Z",fill:r}),n.createElement("rect",{y:"20",width:"40",height:"3",fill:a}))}var rn=function(e){return n.createElement("div",{className:a("_2SwwZ",e.className),"data-testid":"loader"},n.createElement("div",{className:"_2qODo"}),n.createElement("div",{className:"_2YO01"}))};function an(){return(an=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ln=function(e){var t=e.installments_count,i=e.deferred_days+30*e.deferred_months;return 1===t?n.createElement(r.FormattedMessage,{id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{numberOfDeferredDays}",values:{numberOfDeferredDays:i>0?"+"+i:""}}):t+"x"};function on(e){var t=e.color;return n.createElement("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.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===t?"#fff":t}))}var sn,un,cn,mn=function(e){var t,r=e.children,i=e.isOpen,l=e.onClose,u=e.className,c=e.contentClassName,m=e.scrollable,d=void 0!==m&&m,f=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(e,["children","isOpen","onClose","className","contentClassName","scrollable"]);return o.setAppElement("body"),n.createElement(o,Object.assign({className:a("_D8SjB",u),overlayClassName:"_1yxCb",onAfterOpen:function(){s.on()},onAfterClose:function(){s.off()},onRequestClose:l,isOpen:i,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0},f),n.createElement("div",{className:"_12LLh"},n.createElement("button",{onClick:l,className:"_3YRro","data-testid":"modal-close-button"},n.createElement(on,null))),n.createElement("div",{className:a("_ocM9x",c,(t={},t._1GP2F=d,t))},r))},dn=function(e){var i=e.isOpen,o=e.onClose,s=e.eligibilityPlans,u=r.useIntl(),c=t.useState(0),m=c[0],d=c[1],f=s[m],g=f&&Wt(f.purchase_amount+f.customer_total_cost_amount),p=f?Wt(f.customer_total_cost_amount):0,y=(null==f?void 0:f.annual_interest_rate)&&f.annual_interest_rate/1e4,h=Wt(f?f.customer_total_cost_amount:0),v=f&&f.installments_count>4;return n.createElement(mn,{isOpen:i,onClose:o,scrollable:!0,ariaHideApp:!1},n.createElement("div",{className:"_tUqYt"},n.createElement("div",{className:"_2xmiY","data-testid":"modal-title-element"},n.createElement(r.FormattedMessage,{id:"eligibility-modal.title",defaultMessage:"<highlighted>Payez en plusieurs fois</highlighted> ou plus tard par carte bancaire avec Alma.",values:{highlighted:function(){return n.createElement("span",null,[].slice.call(arguments))}}})),n.createElement("div",{className:"_3Iopr"},s.map(function(e,t){var r;return n.createElement("button",{key:t,className:a((r={},r._Hak_D=t===m,r)),onClick:function(){return d(t)}},ln(e))})),n.createElement("div",{className:"_2Qzr7","data-testid":"modal-installments-element"},n.createElement("div",{className:a("_jPe3S","_naxaQ")},n.createElement("span",null,n.createElement(r.FormattedMessage,{id:"eligibility-modal.total",defaultMessage:"Total"})),n.createElement("span",null,n.createElement(r.FormattedNumber,{value:g,style:"currency",currency:"EUR"}))),n.createElement("div",{className:a("_jPe3S","_YJM5O")},n.createElement("span",null,n.createElement(r.FormattedMessage,v?{id:"eligibility-modal.credit-cost",defaultMessage:"Dont coût du crédit"}:{id:"eligibility-modal.cost",defaultMessage:"Dont frais"})),n.createElement("span",null,v?n.createElement(r.FormattedMessage,{id:"eligibility-modal.credit-cost-amount",defaultMessage:"{creditCost} (TAEG {TAEG})",values:{creditCost:u.formatNumber(p,{style:"currency",currency:"EUR"}),TAEG:u.formatNumber(null!=y?y:0,{style:"percent",maximumFractionDigits:2})}}):n.createElement(r.FormattedNumber,{value:h,style:"currency",currency:"EUR"}))),((null==f?void 0:f.payment_plan)||[]).map(function(e,t){return n.createElement("div",{className:"_jPe3S",key:t},n.createElement("span",null,l.isToday(1e3*e.due_date)?n.createElement(r.FormattedMessage,{id:"installments.today",defaultMessage:"Aujourd'hui"}):n.createElement(r.FormattedDate,{value:1e3*e.due_date,day:"numeric",month:"long",year:"numeric"})),n.createElement("span",null,n.createElement(r.FormattedNumber,{value:Wt(e.total_amount),style:"currency",currency:"EUR"})))}),v&&n.createElement("p",{className:"_3iZif"},n.createElement(r.FormattedMessage,{id:"eligibility-modal.credit-commitment",defaultMessage:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement\n avant de vous engager."}))),n.createElement("div",{className:"_1v5LL","data-testid":"modal-info-element"},n.createElement("div",{className:"_8qF-d"},n.createElement("div",{className:"_3iUVQ"},"1"),n.createElement("div",null,n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-1",defaultMessage:"Choisissez <strong>Alma</strong> au moment du paiement.",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}}))),n.createElement("div",{className:"_8qF-d"},n.createElement("div",{className:"_3iUVQ"},"2"),n.createElement("div",null,n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-2",defaultMessage:"Renseignez les <strong>informations</strong> demandées.",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}}))),n.createElement("div",{className:"_8qF-d"},n.createElement("div",{className:"_3iUVQ"},"3"),n.createElement("div",null,n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-3",defaultMessage:"La validation de votre paiement <strong>instantanée</strong> !",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}})))),n.createElement("div",{className:"_HqglP"},n.createElement(nn,{underlineColor:"#FF414D"})),n.createElement("div",{className:"_BgGo9"})))},fn=function(e){var i,o,s,u,c,m,d,f,g=e.transitionDelay,p=e.hideIfNotEligible,y=function(e,n,r){var i,a,l,o=n.domain,s=n.merchantId,u=t.useState([]),c=u[0],m=u[1],d=t.useState(Gt.PENDING),f=d[0],g=d[1],p=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 t.useEffect(function(){f===Gt.PENDING&&function(e,t,n){void 0===e&&(e="");try{return Promise.resolve(fetch(e,{method:"POST",headers:an({"Content-Type":"application/json"},n),body:JSON.stringify(t)})).then(function(e){return e.json()})}catch(e){return Promise.reject(e)}}(o+"/v2/payments/eligibility",{purchase_amount:e,queries:p},{Authorization:"Alma-Merchant-Auth "+s}).then(function(e){g(Gt.SUCCESS),m(e)}).catch(function(){g(Gt.FAILED)})},[f]),[(i=c,a=r,l=i.filter(function(e){return!(1===e.installments_count&&0===e.deferred_days&&0===e.deferred_months)}),a?l.map(function(e){var t=30*(e.deferred_months?e.deferred_months:0)+(e.deferred_days?e.deferred_days:0),n=a.find(function(n){return e.installments_count===n.installmentsCount&&t===30*(n.deferredMonths?n.deferredMonths:0)+(n.deferredDays?n.deferredDays:0)});return an({},e,{eligible:!!n&&e.purchase_amount>=(null==n?void 0:n.minAmount)&&e.purchase_amount<=(null==n?void 0:n.maxAmount),minAmount:null==n?void 0:n.minAmount,maxAmount:null==n?void 0:n.maxAmount})}):l),f]}(e.purchaseAmount,e.apiData,e.configPlans),h=y[0],v=y[1],b=h.filter(function(e){return!0===e.eligible}),E=t.useState(!1),A=E[0],C=E[1],_=function(e,n){var r=t.useState(0),i=r[0],a=r[1],l=t.useState(!0),o=l[0],s=l[1];return t.useEffect(function(){var t=!0;return 0!==e.length&&(!e.includes(i)&&o&&a(e[0]),setTimeout(function(){o&&t&&a(e[e.includes(i)?(e.indexOf(i)+1)%e.length:0])},n)),function(){t=!1}},[e,i]),{current:i,onHover:function(e){a(e),s(!1)},onLeave:function(){s(!0)}}}(h.map(function(e,t){if(e.eligible)return t}).filter(function(e){return void 0!==e}),g||5500),w=_.current,O=_.onHover,S=_.onLeave;return v===Gt.PENDING?n.createElement("div",{className:a("_1ShhM","_OaY-w")},n.createElement(rn,null)):p&&0==b.length||0===h.length||v===Gt.FAILED?null:n.createElement(n.Fragment,null,n.createElement("button",{onClick:function(e){e.preventDefault(),b.length>0&&C(!0)},className:"_1ShhM",style:{cursor:b.length>0?"pointer":"initial"},"data-testid":"widget-button"},n.createElement("div",{className:"_Q7H0F"},n.createElement(nn,{className:"_1pqvZ"}),n.createElement("div",{className:"_3PxP3"},h.map(function(e,t){var r;return n.createElement("div",{onMouseOver:function(){return O(t)},onMouseOut:function(){return S()},key:t,className:a("_1Pf7z",(r={},r._3aD09=w===t,r._3BUl_=!e.eligible,r))},ln(e))}))),n.createElement("div",{className:a("_2TfhX",(i={},i._3BUl_=h[w]&&!h[w].eligible,i))},0!==h.length&&(s=(o=h[w]).installments_count,u=o.purchase_amount,m=void 0===(c=o.minAmount)?0:c,f=void 0===(d=o.maxAmount)?0:d,n.createElement(r.FormattedMessage,o.eligible?0!==o.deferred_days+30*o.deferred_months&&1===s?{id:"payment-plan-strings.deferred",defaultMessage:"{totalAmount} à payer le {dueDate}",values:{totalAmount:n.createElement(r.FormattedNumber,{value:Wt(o.payment_plan[0].total_amount),style:"currency",currency:"EUR"}),dueDate:n.createElement(r.FormattedDate,{value:l.secondsToMilliseconds(o.payment_plan[0].due_date),day:"numeric",month:"long",year:"numeric"})}}:s>0?{id:"payment-plan-strings.multiple-installments",defaultMessage:"{firstInstallmentAmount} puis {numberOfRemainingInstallments, plural, one {# mensualité} other {# mensualités}} de {othersInstallmentAmount}",values:{firstInstallmentAmount:n.createElement(r.FormattedNumber,{value:Wt(o.payment_plan[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:s-1,othersInstallmentAmount:n.createElement(r.FormattedNumber,{value:Wt(o.payment_plan[1].total_amount),style:"currency",currency:"EUR"})}}:{id:"payment-plan-strings.default-message",defaultMessage:"Payez en plusieurs fois avec Alma"}:u>f?{id:"payment-plan-strings.ineligible-greater-than-max",defaultMessage:"Jusqu'à {maxAmount}",values:{maxAmount:n.createElement(r.FormattedNumber,{value:Wt(f),style:"currency",currency:"EUR"})}}:{id:"payment-plan-strings.ineligible-lower-than-min",defaultMessage:"À partir de {minAmount}",values:{minAmount:n.createElement(r.FormattedNumber,{value:Wt(m),style:"currency",currency:"EUR"})}})))),n.createElement(dn,{isOpen:A,onClose:function(){return C(!1)},eligibilityPlans:h.filter(function(e){return e.eligible})}))},gn=function(){function e(e){this.apiData=e}return e.prototype.add=function(e,t){if(e===Ut.PaymentPlans){var r=t.container,a=t.purchaseAmount,l=t.plans,o=t.transitionDelay,s=t.hideIfNotEligible,u=t.locale,c=void 0===u?qt.en:u,m=document.querySelector(r);m&&(i.unmountComponentAtNode(m),i.render(n.createElement(tn,{locale:c},n.createElement(fn,{purchaseAmount:a,apiData:this.apiData,configPlans:l,transitionDelay:o,hideIfNotEligible:s})),document.querySelector(r)))}},e}();(sn=exports.ApiMode||(exports.ApiMode={})).LIVE="https://api.getalma.eu",sn.TEST="https://api.sandbox.getalma.eu",(un=exports.Widgets||(exports.Widgets={})).initialize=function(e,t){return new gn({domain:t,merchantId:e})},un.PaymentPlans=Ut.PaymentPlans,(cn=exports.Utils||(exports.Utils={})).priceToCents=function(e){return Math.round(100*e)},cn.priceFromCents=Wt,cn.formatCents=function(e){return String(Wt(e)).replace(".",",")};
|
|
2
2
|
//# sourceMappingURL=widgets.js.map
|