straumur-web-component 1.1.3 → 1.1.4-alpha.1

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var StraumurWeb=(()=>{var ms=Object.defineProperty;var ud=Object.getOwnPropertyDescriptor;var md=Object.getOwnPropertyNames;var hd=Object.prototype.hasOwnProperty;var fd=(t,e)=>{for(var o in e)ms(t,o,{get:e[o],enumerable:!0})},_d=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of md(e))!hd.call(t,s)&&s!==o&&ms(t,s,{get:()=>e[s],enumerable:!(r=ud(e,s))||r.enumerable});return t};var yd=t=>_d(ms({},"__esModule",{value:!0}),t);var Wp={};fd(Wp,{StraumurCheckout:()=>pd});var Wo,j,kn,gd,St,Dn,Nn,On,Mn,gs,hs,fs,Fn,uo={},Ln=[],Cd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zo=Array.isArray;function Ke(t,e){for(var o in e)t[o]=e[o];return t}function Cs(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function a(t,e,o){var r,s,n,i={};for(n in e)n=="key"?r=e[n]:n=="ref"?s=e[n]:i[n]=e[n];if(arguments.length>2&&(i.children=arguments.length>3?Wo.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)i[n]===void 0&&(i[n]=t.defaultProps[n]);return zo(t,i,r,s,null)}function zo(t,e,o,r,s){var n={type:t,props:e,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++kn,__i:-1,__u:0};return s==null&&j.vnode!=null&&j.vnode(n),n}function Q(t){return t.children}function $o(t,e){this.props=t,this.context=e}function Vt(t,e){if(e==null)return t.__?Vt(t.__,t.__i+1):null;for(var o;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null)return o.__e;return typeof t.type=="function"?Vt(t):null}function Un(t){var e,o;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null){t.__e=t.__c.base=o.__e;break}return Un(t)}}function _s(t){(!t.__d&&(t.__d=!0)&&St.push(t)&&!Ko.__r++||Dn!=j.debounceRendering)&&((Dn=j.debounceRendering)||Nn)(Ko)}function Ko(){for(var t,e,o,r,s,n,i,c=1;St.length;)St.length>c&&St.sort(On),t=St.shift(),c=St.length,t.__d&&(o=void 0,r=void 0,s=(r=(e=t).__v).__e,n=[],i=[],e.__P&&((o=Ke({},r)).__v=r.__v+1,j.vnode&&j.vnode(o),vs(e.__P,o,r,e.__n,e.__P.namespaceURI,32&r.__u?[s]:null,n,s??Vt(r),!!(32&r.__u),i),o.__v=r.__v,o.__.__k[o.__i]=o,Hn(n,o,i),r.__e=r.__=null,o.__e!=s&&Un(o)));Ko.__r=0}function Bn(t,e,o,r,s,n,i,c,d,p,u){var l,h,m,g,E,v,y,_=r&&r.__k||Ln,V=e.length;for(d=vd(o,e,_,d,V),l=0;l<V;l++)(m=o.__k[l])!=null&&(h=m.__i==-1?uo:_[m.__i]||uo,m.__i=l,v=vs(t,m,h,s,n,i,c,d,p,u),g=m.__e,m.ref&&h.ref!=m.ref&&(h.ref&&Es(h.ref,null,m),u.push(m.ref,m.__c||g,m)),E==null&&g!=null&&(E=g),(y=!!(4&m.__u))||h.__k===m.__k?d=Vn(m,d,t,y):typeof m.type=="function"&&v!==void 0?d=v:g&&(d=g.nextSibling),m.__u&=-7);return o.__e=E,d}function vd(t,e,o,r,s){var n,i,c,d,p,u=o.length,l=u,h=0;for(t.__k=new Array(s),n=0;n<s;n++)(i=e[n])!=null&&typeof i!="boolean"&&typeof i!="function"?(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?i=t.__k[n]=zo(null,i,null,null,null):Zo(i)?i=t.__k[n]=zo(Q,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?i=t.__k[n]=zo(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):t.__k[n]=i,d=n+h,i.__=t,i.__b=t.__b+1,c=null,(p=i.__i=Ed(i,o,d,l))!=-1&&(l--,(c=o[p])&&(c.__u|=2)),c==null||c.__v==null?(p==-1&&(s>u?h--:s<u&&h++),typeof i.type!="function"&&(i.__u|=4)):p!=d&&(p==d-1?h--:p==d+1?h++:(p>d?h--:h++,i.__u|=4))):t.__k[n]=null;if(l)for(n=0;n<u;n++)(c=o[n])!=null&&(2&c.__u)==0&&(c.__e==r&&(r=Vt(c)),jn(c,c));return r}function Vn(t,e,o,r){var s,n;if(typeof t.type=="function"){for(s=t.__k,n=0;s&&n<s.length;n++)s[n]&&(s[n].__=t,e=Vn(s[n],e,o,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=Vt(t)),o.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Ed(t,e,o,r){var s,n,i,c=t.key,d=t.type,p=e[o],u=p!=null&&(2&p.__u)==0;if(p===null&&c==null||u&&c==p.key&&d==p.type)return o;if(r>(u?1:0)){for(s=o-1,n=o+1;s>=0||n<e.length;)if((p=e[i=s>=0?s--:n++])!=null&&(2&p.__u)==0&&c==p.key&&d==p.type)return i}return-1}function wn(t,e,o){e[0]=="-"?t.setProperty(e,o??""):t[e]=o==null?"":typeof o!="number"||Cd.test(e)?o:o+"px"}function Go(t,e,o,r,s){var n,i;e:if(e=="style")if(typeof o=="string")t.style.cssText=o;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)o&&e in o||wn(t.style,e,"");if(o)for(e in o)r&&o[e]==r[e]||wn(t.style,e,o[e])}else if(e[0]=="o"&&e[1]=="n")n=e!=(e=e.replace(Mn,"$1")),i=e.toLowerCase(),e=i in t||e=="onFocusOut"||e=="onFocusIn"?i.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+n]=o,o?r?o.u=r.u:(o.u=gs,t.addEventListener(e,n?fs:hs,n)):t.removeEventListener(e,n?fs:hs,n);else{if(s=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&o==1?"":o))}}function xn(t){return function(e){if(this.l){var o=this.l[e.type+t];if(e.t==null)e.t=gs++;else if(e.t<o.u)return;return o(j.event?j.event(e):e)}}}function vs(t,e,o,r,s,n,i,c,d,p){var u,l,h,m,g,E,v,y,_,V,P,b,F,R,Y,D,T,w=e.type;if(e.constructor!==void 0)return null;128&o.__u&&(d=!!(32&o.__u),n=[c=e.__e=o.__e]),(u=j.__b)&&u(e);e:if(typeof w=="function")try{if(y=e.props,_="prototype"in w&&w.prototype.render,V=(u=w.contextType)&&r[u.__c],P=u?V?V.props.value:u.__:r,o.__c?v=(l=e.__c=o.__c).__=l.__E:(_?e.__c=l=new w(y,P):(e.__c=l=new $o(y,P),l.constructor=w,l.render=Sd),V&&V.sub(l),l.state||(l.state={}),l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),_&&l.__s==null&&(l.__s=l.state),_&&w.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Ke({},l.__s)),Ke(l.__s,w.getDerivedStateFromProps(y,l.__s))),m=l.props,g=l.state,l.__v=e,h)_&&w.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),_&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(_&&w.getDerivedStateFromProps==null&&y!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,P),e.__v==o.__v||!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,P)===!1){for(e.__v!=o.__v&&(l.props=y,l.state=l.__s,l.__d=!1),e.__e=o.__e,e.__k=o.__k,e.__k.some(function(q){q&&(q.__=e)}),b=0;b<l._sb.length;b++)l.__h.push(l._sb[b]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,P),_&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,g,E)})}if(l.context=P,l.props=y,l.__P=t,l.__e=!1,F=j.__r,R=0,_){for(l.state=l.__s,l.__d=!1,F&&F(e),u=l.render(l.props,l.state,l.context),Y=0;Y<l._sb.length;Y++)l.__h.push(l._sb[Y]);l._sb=[]}else do l.__d=!1,F&&F(e),u=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++R<25);l.state=l.__s,l.getChildContext!=null&&(r=Ke(Ke({},r),l.getChildContext())),_&&!h&&l.getSnapshotBeforeUpdate!=null&&(E=l.getSnapshotBeforeUpdate(m,g)),D=u,u!=null&&u.type===Q&&u.key==null&&(D=Yn(u.props.children)),c=Bn(t,Zo(D)?D:[D],e,o,r,s,n,i,c,d,p),l.base=e.__e,e.__u&=-161,l.__h.length&&i.push(l),v&&(l.__E=l.__=null)}catch(q){if(e.__v=null,d||n!=null)if(q.then){for(e.__u|=d?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;n[n.indexOf(c)]=null,e.__e=c}else{for(T=n.length;T--;)Cs(n[T]);ys(e)}else e.__e=o.__e,e.__k=o.__k,q.then||ys(e);j.__e(q,e,o)}else n==null&&e.__v==o.__v?(e.__k=o.__k,e.__e=o.__e):c=e.__e=bd(o.__e,e,o,r,s,n,i,d,p);return(u=j.diffed)&&u(e),128&e.__u?void 0:c}function ys(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(ys)}function Hn(t,e,o){for(var r=0;r<o.length;r++)Es(o[r],o[++r],o[++r]);j.__c&&j.__c(e,t),t.some(function(s){try{t=s.__h,s.__h=[],t.some(function(n){n.call(s)})}catch(n){j.__e(n,s.__v)}})}function Yn(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:Zo(t)?t.map(Yn):Ke({},t)}function bd(t,e,o,r,s,n,i,c,d){var p,u,l,h,m,g,E,v=o.props||uo,y=e.props,_=e.type;if(_=="svg"?s="http://www.w3.org/2000/svg":_=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),n!=null){for(p=0;p<n.length;p++)if((m=n[p])&&"setAttribute"in m==!!_&&(_?m.localName==_:m.nodeType==3)){t=m,n[p]=null;break}}if(t==null){if(_==null)return document.createTextNode(y);t=document.createElementNS(s,_,y.is&&y),c&&(j.__m&&j.__m(e,n),c=!1),n=null}if(_==null)v===y||c&&t.data==y||(t.data=y);else{if(n=n&&Wo.call(t.childNodes),!c&&n!=null)for(v={},p=0;p<t.attributes.length;p++)v[(m=t.attributes[p]).name]=m.value;for(p in v)if(m=v[p],p!="children"){if(p=="dangerouslySetInnerHTML")l=m;else if(!(p in y)){if(p=="value"&&"defaultValue"in y||p=="checked"&&"defaultChecked"in y)continue;Go(t,p,null,m,s)}}for(p in y)m=y[p],p=="children"?h=m:p=="dangerouslySetInnerHTML"?u=m:p=="value"?g=m:p=="checked"?E=m:c&&typeof m!="function"||v[p]===m||Go(t,p,m,v[p],s);if(u)c||l&&(u.__html==l.__html||u.__html==t.innerHTML)||(t.innerHTML=u.__html),e.__k=[];else if(l&&(t.innerHTML=""),Bn(e.type=="template"?t.content:t,Zo(h)?h:[h],e,o,r,_=="foreignObject"?"http://www.w3.org/1999/xhtml":s,n,i,n?n[0]:o.__k&&Vt(o,0),c,d),n!=null)for(p=n.length;p--;)Cs(n[p]);c||(p="value",_=="progress"&&g==null?t.removeAttribute("value"):g!=null&&(g!==t[p]||_=="progress"&&!g||_=="option"&&g!=v[p])&&Go(t,p,g,v[p],s),p="checked",E!=null&&E!=t[p]&&Go(t,p,E,v[p],s))}return t}function Es(t,e,o){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(s){j.__e(s,o)}}function jn(t,e,o){var r,s;if(j.unmount&&j.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||Es(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){j.__e(n,e)}r.base=r.__P=null}if(r=t.__k)for(s=0;s<r.length;s++)r[s]&&jn(r[s],e,o||typeof t.type!="function");o||Cs(t.__e),t.__c=t.__=t.__e=void 0}function Sd(t,e,o){return this.constructor(t,o)}function Ht(t,e,o){var r,s,n,i;e==document&&(e=document.documentElement),j.__&&j.__(t,e),s=(r=typeof o=="function")?null:o&&o.__k||e.__k,n=[],i=[],vs(e,t=(!r&&o||e).__k=a(Q,null,[t]),s||uo,uo,e.namespaceURI,!r&&o?[o]:s?null:e.firstChild?Wo.call(e.childNodes):null,n,!r&&o?o:s?s.__e:e.firstChild,r,i),Hn(n,t,i)}function qo(t){function e(o){var r,s;return this.getChildContext||(r=new Set,(s={})[e.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&r.forEach(function(i){i.__e=!0,_s(i)})},this.sub=function(n){r.add(n);var i=n.componentWillUnmount;n.componentWillUnmount=function(){r&&r.delete(n),i&&i.call(n)}}),o.children}return e.__c="__cC"+Fn++,e.__=t,e.Provider=e.__l=(e.Consumer=function(o,r){return o.children(r)}).contextType=e,e}Wo=Ln.slice,j={__e:function(t,e,o,r){for(var s,n,i;e=e.__;)if((s=e.__c)&&!s.__)try{if((n=s.constructor)&&n.getDerivedStateFromError!=null&&(s.setState(n.getDerivedStateFromError(t)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,r||{}),i=s.__d),i)return s.__E=s}catch(c){t=c}throw t}},kn=0,gd=function(t){return t!=null&&t.constructor===void 0},$o.prototype.setState=function(t,e){var o;o=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ke({},this.state),typeof t=="function"&&(t=t(Ke({},o),this.props)),t&&Ke(o,t),t!=null&&this.__v&&(e&&this._sb.push(e),_s(this))},$o.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),_s(this))},$o.prototype.render=Q,St=[],Nn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,On=function(t,e){return t.__v.__b-e.__v.__b},Ko.__r=0,Mn=/(PointerCapture)$|Capture$/i,gs=0,hs=xn(!1),fs=xn(!0),Fn=0;function $(t,{insertAt:e}={}){if(!t||typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}$(`:root{--straumur__color-primary: #002649;--straumur__color-secondary: #72889d;--straumur__color-secondary-gamma: #eef0f2;--straumur__color-blue-beta: #bce6f3;--straumur__color-blue-gamma: #eff8fa;--straumur__color-neon-green-zeta: #88a64e;--straumur__color-red-beta: #d96666;--straumur__color-red-gamma: #fff8f5;--straumur__color-gray-epsilon: #e7e7e7;--straumur__color-cosmos-blue-delta: #cdd8e2;--straumur__color-cosmos-blue-gamma: #e6ebef;--straumur__color-white: #ffffff;--straumur__color-transparent: transparent;--straumur__border-radius-xxs: 4px;--straumur__border-radius-xs: 6px;--straumur__border-radius-s: 8px;--straumur__border-radius-md: 10px;--straumur__border-radius-lg: 12px;--straumur__border-radius-xlg: 14px;--straumur__border-radius-xxlg: 16px;--straumur__space-xxs: 4px;--straumur__space-xs: 6px;--straumur__space-s: 8px;--straumur__space-md: 10px;--straumur__space-lg: 12px;--straumur__space-xlg: 14px;--straumur__space-xxlg: 16px;--straumur__space-3xlg: 18px;--straumur__space-4xlg: 20px;--straumur__space-5xlg: 24px;--straumur__space-6xlg: 32px;--straumur__space-7xlg: 40px;--straumur__space-8xlg: 48px;--apple-pay-button-width: 100%;--apple-pay-button-height: 48px;--apple-pay-button-border-radius: 4px}.straumur__root-component{font-family:AkzidenzGroteskPro,sans-serif;max-width:440px;min-width:320px}.straumur__component *{font-family:inherit}.straumur__render-brand-icons__overflow{color:#72889d}.straumur__component{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:300px;background-color:var(--straumur__color-white);border-radius:var(--straumur__border-radius-xxlg)}.js-iframe{border:none;color-scheme:auto;height:100%;overflow:hidden;width:100%}.adyen-checkout__threeds2__challenge.adyen-checkout__threeds2__challenge--05{background-color:transparent;display:block;height:inherit;min-height:400px;overflow:hidden;position:relative;width:100%}
1
+ "use strict";var StraumurWeb=(()=>{var ms=Object.defineProperty;var ud=Object.getOwnPropertyDescriptor;var md=Object.getOwnPropertyNames;var hd=Object.prototype.hasOwnProperty;var fd=(t,e)=>{for(var o in e)ms(t,o,{get:e[o],enumerable:!0})},_d=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of md(e))!hd.call(t,s)&&s!==o&&ms(t,s,{get:()=>e[s],enumerable:!(r=ud(e,s))||r.enumerable});return t};var yd=t=>_d(ms({},"__esModule",{value:!0}),t);var Wp={};fd(Wp,{StraumurCheckout:()=>pd});var Wo,j,kn,gd,St,Dn,Nn,On,Mn,gs,hs,fs,Fn,uo={},Ln=[],Cd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zo=Array.isArray;function Ke(t,e){for(var o in e)t[o]=e[o];return t}function Cs(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function a(t,e,o){var r,s,n,i={};for(n in e)n=="key"?r=e[n]:n=="ref"?s=e[n]:i[n]=e[n];if(arguments.length>2&&(i.children=arguments.length>3?Wo.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)i[n]===void 0&&(i[n]=t.defaultProps[n]);return zo(t,i,r,s,null)}function zo(t,e,o,r,s){var n={type:t,props:e,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++kn,__i:-1,__u:0};return s==null&&j.vnode!=null&&j.vnode(n),n}function Q(t){return t.children}function $o(t,e){this.props=t,this.context=e}function Vt(t,e){if(e==null)return t.__?Vt(t.__,t.__i+1):null;for(var o;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null)return o.__e;return typeof t.type=="function"?Vt(t):null}function Un(t){var e,o;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null){t.__e=t.__c.base=o.__e;break}return Un(t)}}function _s(t){(!t.__d&&(t.__d=!0)&&St.push(t)&&!Ko.__r++||Dn!=j.debounceRendering)&&((Dn=j.debounceRendering)||Nn)(Ko)}function Ko(){for(var t,e,o,r,s,n,i,c=1;St.length;)St.length>c&&St.sort(On),t=St.shift(),c=St.length,t.__d&&(o=void 0,r=void 0,s=(r=(e=t).__v).__e,n=[],i=[],e.__P&&((o=Ke({},r)).__v=r.__v+1,j.vnode&&j.vnode(o),vs(e.__P,o,r,e.__n,e.__P.namespaceURI,32&r.__u?[s]:null,n,s??Vt(r),!!(32&r.__u),i),o.__v=r.__v,o.__.__k[o.__i]=o,Hn(n,o,i),r.__e=r.__=null,o.__e!=s&&Un(o)));Ko.__r=0}function Bn(t,e,o,r,s,n,i,c,d,p,u){var l,h,m,g,E,v,y,_=r&&r.__k||Ln,V=e.length;for(d=vd(o,e,_,d,V),l=0;l<V;l++)(m=o.__k[l])!=null&&(h=m.__i==-1?uo:_[m.__i]||uo,m.__i=l,v=vs(t,m,h,s,n,i,c,d,p,u),g=m.__e,m.ref&&h.ref!=m.ref&&(h.ref&&Es(h.ref,null,m),u.push(m.ref,m.__c||g,m)),E==null&&g!=null&&(E=g),(y=!!(4&m.__u))||h.__k===m.__k?d=Vn(m,d,t,y):typeof m.type=="function"&&v!==void 0?d=v:g&&(d=g.nextSibling),m.__u&=-7);return o.__e=E,d}function vd(t,e,o,r,s){var n,i,c,d,p,u=o.length,l=u,h=0;for(t.__k=new Array(s),n=0;n<s;n++)(i=e[n])!=null&&typeof i!="boolean"&&typeof i!="function"?(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?i=t.__k[n]=zo(null,i,null,null,null):Zo(i)?i=t.__k[n]=zo(Q,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?i=t.__k[n]=zo(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):t.__k[n]=i,d=n+h,i.__=t,i.__b=t.__b+1,c=null,(p=i.__i=Ed(i,o,d,l))!=-1&&(l--,(c=o[p])&&(c.__u|=2)),c==null||c.__v==null?(p==-1&&(s>u?h--:s<u&&h++),typeof i.type!="function"&&(i.__u|=4)):p!=d&&(p==d-1?h--:p==d+1?h++:(p>d?h--:h++,i.__u|=4))):t.__k[n]=null;if(l)for(n=0;n<u;n++)(c=o[n])!=null&&(2&c.__u)==0&&(c.__e==r&&(r=Vt(c)),jn(c,c));return r}function Vn(t,e,o,r){var s,n;if(typeof t.type=="function"){for(s=t.__k,n=0;s&&n<s.length;n++)s[n]&&(s[n].__=t,e=Vn(s[n],e,o,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=Vt(t)),o.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Ed(t,e,o,r){var s,n,i,c=t.key,d=t.type,p=e[o],u=p!=null&&(2&p.__u)==0;if(p===null&&c==null||u&&c==p.key&&d==p.type)return o;if(r>(u?1:0)){for(s=o-1,n=o+1;s>=0||n<e.length;)if((p=e[i=s>=0?s--:n++])!=null&&(2&p.__u)==0&&c==p.key&&d==p.type)return i}return-1}function wn(t,e,o){e[0]=="-"?t.setProperty(e,o??""):t[e]=o==null?"":typeof o!="number"||Cd.test(e)?o:o+"px"}function Go(t,e,o,r,s){var n,i;e:if(e=="style")if(typeof o=="string")t.style.cssText=o;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)o&&e in o||wn(t.style,e,"");if(o)for(e in o)r&&o[e]==r[e]||wn(t.style,e,o[e])}else if(e[0]=="o"&&e[1]=="n")n=e!=(e=e.replace(Mn,"$1")),i=e.toLowerCase(),e=i in t||e=="onFocusOut"||e=="onFocusIn"?i.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+n]=o,o?r?o.u=r.u:(o.u=gs,t.addEventListener(e,n?fs:hs,n)):t.removeEventListener(e,n?fs:hs,n);else{if(s=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&o==1?"":o))}}function xn(t){return function(e){if(this.l){var o=this.l[e.type+t];if(e.t==null)e.t=gs++;else if(e.t<o.u)return;return o(j.event?j.event(e):e)}}}function vs(t,e,o,r,s,n,i,c,d,p){var u,l,h,m,g,E,v,y,_,V,P,b,F,R,Y,D,T,w=e.type;if(e.constructor!==void 0)return null;128&o.__u&&(d=!!(32&o.__u),n=[c=e.__e=o.__e]),(u=j.__b)&&u(e);e:if(typeof w=="function")try{if(y=e.props,_="prototype"in w&&w.prototype.render,V=(u=w.contextType)&&r[u.__c],P=u?V?V.props.value:u.__:r,o.__c?v=(l=e.__c=o.__c).__=l.__E:(_?e.__c=l=new w(y,P):(e.__c=l=new $o(y,P),l.constructor=w,l.render=Sd),V&&V.sub(l),l.state||(l.state={}),l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),_&&l.__s==null&&(l.__s=l.state),_&&w.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Ke({},l.__s)),Ke(l.__s,w.getDerivedStateFromProps(y,l.__s))),m=l.props,g=l.state,l.__v=e,h)_&&w.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),_&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(_&&w.getDerivedStateFromProps==null&&y!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,P),e.__v==o.__v||!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,P)===!1){for(e.__v!=o.__v&&(l.props=y,l.state=l.__s,l.__d=!1),e.__e=o.__e,e.__k=o.__k,e.__k.some(function(q){q&&(q.__=e)}),b=0;b<l._sb.length;b++)l.__h.push(l._sb[b]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,P),_&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,g,E)})}if(l.context=P,l.props=y,l.__P=t,l.__e=!1,F=j.__r,R=0,_){for(l.state=l.__s,l.__d=!1,F&&F(e),u=l.render(l.props,l.state,l.context),Y=0;Y<l._sb.length;Y++)l.__h.push(l._sb[Y]);l._sb=[]}else do l.__d=!1,F&&F(e),u=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++R<25);l.state=l.__s,l.getChildContext!=null&&(r=Ke(Ke({},r),l.getChildContext())),_&&!h&&l.getSnapshotBeforeUpdate!=null&&(E=l.getSnapshotBeforeUpdate(m,g)),D=u,u!=null&&u.type===Q&&u.key==null&&(D=Yn(u.props.children)),c=Bn(t,Zo(D)?D:[D],e,o,r,s,n,i,c,d,p),l.base=e.__e,e.__u&=-161,l.__h.length&&i.push(l),v&&(l.__E=l.__=null)}catch(q){if(e.__v=null,d||n!=null)if(q.then){for(e.__u|=d?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;n[n.indexOf(c)]=null,e.__e=c}else{for(T=n.length;T--;)Cs(n[T]);ys(e)}else e.__e=o.__e,e.__k=o.__k,q.then||ys(e);j.__e(q,e,o)}else n==null&&e.__v==o.__v?(e.__k=o.__k,e.__e=o.__e):c=e.__e=bd(o.__e,e,o,r,s,n,i,d,p);return(u=j.diffed)&&u(e),128&e.__u?void 0:c}function ys(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(ys)}function Hn(t,e,o){for(var r=0;r<o.length;r++)Es(o[r],o[++r],o[++r]);j.__c&&j.__c(e,t),t.some(function(s){try{t=s.__h,s.__h=[],t.some(function(n){n.call(s)})}catch(n){j.__e(n,s.__v)}})}function Yn(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:Zo(t)?t.map(Yn):Ke({},t)}function bd(t,e,o,r,s,n,i,c,d){var p,u,l,h,m,g,E,v=o.props||uo,y=e.props,_=e.type;if(_=="svg"?s="http://www.w3.org/2000/svg":_=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),n!=null){for(p=0;p<n.length;p++)if((m=n[p])&&"setAttribute"in m==!!_&&(_?m.localName==_:m.nodeType==3)){t=m,n[p]=null;break}}if(t==null){if(_==null)return document.createTextNode(y);t=document.createElementNS(s,_,y.is&&y),c&&(j.__m&&j.__m(e,n),c=!1),n=null}if(_==null)v===y||c&&t.data==y||(t.data=y);else{if(n=n&&Wo.call(t.childNodes),!c&&n!=null)for(v={},p=0;p<t.attributes.length;p++)v[(m=t.attributes[p]).name]=m.value;for(p in v)if(m=v[p],p!="children"){if(p=="dangerouslySetInnerHTML")l=m;else if(!(p in y)){if(p=="value"&&"defaultValue"in y||p=="checked"&&"defaultChecked"in y)continue;Go(t,p,null,m,s)}}for(p in y)m=y[p],p=="children"?h=m:p=="dangerouslySetInnerHTML"?u=m:p=="value"?g=m:p=="checked"?E=m:c&&typeof m!="function"||v[p]===m||Go(t,p,m,v[p],s);if(u)c||l&&(u.__html==l.__html||u.__html==t.innerHTML)||(t.innerHTML=u.__html),e.__k=[];else if(l&&(t.innerHTML=""),Bn(e.type=="template"?t.content:t,Zo(h)?h:[h],e,o,r,_=="foreignObject"?"http://www.w3.org/1999/xhtml":s,n,i,n?n[0]:o.__k&&Vt(o,0),c,d),n!=null)for(p=n.length;p--;)Cs(n[p]);c||(p="value",_=="progress"&&g==null?t.removeAttribute("value"):g!=null&&(g!==t[p]||_=="progress"&&!g||_=="option"&&g!=v[p])&&Go(t,p,g,v[p],s),p="checked",E!=null&&E!=t[p]&&Go(t,p,E,v[p],s))}return t}function Es(t,e,o){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(s){j.__e(s,o)}}function jn(t,e,o){var r,s;if(j.unmount&&j.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||Es(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){j.__e(n,e)}r.base=r.__P=null}if(r=t.__k)for(s=0;s<r.length;s++)r[s]&&jn(r[s],e,o||typeof t.type!="function");o||Cs(t.__e),t.__c=t.__=t.__e=void 0}function Sd(t,e,o){return this.constructor(t,o)}function Ht(t,e,o){var r,s,n,i;e==document&&(e=document.documentElement),j.__&&j.__(t,e),s=(r=typeof o=="function")?null:o&&o.__k||e.__k,n=[],i=[],vs(e,t=(!r&&o||e).__k=a(Q,null,[t]),s||uo,uo,e.namespaceURI,!r&&o?[o]:s?null:e.firstChild?Wo.call(e.childNodes):null,n,!r&&o?o:s?s.__e:e.firstChild,r,i),Hn(n,t,i)}function qo(t){function e(o){var r,s;return this.getChildContext||(r=new Set,(s={})[e.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&r.forEach(function(i){i.__e=!0,_s(i)})},this.sub=function(n){r.add(n);var i=n.componentWillUnmount;n.componentWillUnmount=function(){r&&r.delete(n),i&&i.call(n)}}),o.children}return e.__c="__cC"+Fn++,e.__=t,e.Provider=e.__l=(e.Consumer=function(o,r){return o.children(r)}).contextType=e,e}Wo=Ln.slice,j={__e:function(t,e,o,r){for(var s,n,i;e=e.__;)if((s=e.__c)&&!s.__)try{if((n=s.constructor)&&n.getDerivedStateFromError!=null&&(s.setState(n.getDerivedStateFromError(t)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,r||{}),i=s.__d),i)return s.__E=s}catch(c){t=c}throw t}},kn=0,gd=function(t){return t!=null&&t.constructor===void 0},$o.prototype.setState=function(t,e){var o;o=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ke({},this.state),typeof t=="function"&&(t=t(Ke({},o),this.props)),t&&Ke(o,t),t!=null&&this.__v&&(e&&this._sb.push(e),_s(this))},$o.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),_s(this))},$o.prototype.render=Q,St=[],Nn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,On=function(t,e){return t.__v.__b-e.__v.__b},Ko.__r=0,Mn=/(PointerCapture)$|Capture$/i,gs=0,hs=xn(!1),fs=xn(!0),Fn=0;function $(t,{insertAt:e}={}){if(!t||typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}$(`:root{--straumur__color-primary: #002649;--straumur__color-secondary: #72889d;--straumur__color-secondary-gamma: #eef0f2;--straumur__color-blue-beta: #bce6f3;--straumur__color-blue-gamma: #eff8fa;--straumur__color-neon-green-zeta: #88a64e;--straumur__color-red-beta: #d96666;--straumur__color-red-gamma: #fff8f5;--straumur__color-gray-epsilon: #e7e7e7;--straumur__color-cosmos-blue-delta: #cdd8e2;--straumur__color-cosmos-blue-gamma: #e6ebef;--straumur__color-white: #ffffff;--straumur__color-transparent: transparent;--straumur__border-radius-xxs: 4px;--straumur__border-radius-xs: 6px;--straumur__border-radius-s: 8px;--straumur__border-radius-md: 10px;--straumur__border-radius-lg: 12px;--straumur__border-radius-xlg: 14px;--straumur__border-radius-xxlg: 16px;--straumur__space-xxs: 4px;--straumur__space-xs: 6px;--straumur__space-s: 8px;--straumur__space-md: 10px;--straumur__space-lg: 12px;--straumur__space-xlg: 14px;--straumur__space-xxlg: 16px;--straumur__space-3xlg: 18px;--straumur__space-4xlg: 20px;--straumur__space-5xlg: 24px;--straumur__space-6xlg: 32px;--straumur__space-7xlg: 40px;--straumur__space-8xlg: 48px;--apple-pay-button-width: 100%;--apple-pay-button-height: 48px;--apple-pay-button-border-radius: 4px}.straumur__root-component{font-family:AkzidenzGroteskPro,sans-serif;max-width:676px;min-width:320px}.straumur__component *{font-family:inherit}.straumur__render-brand-icons__overflow{color:#72889d}.straumur__component{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:300px;background-color:var(--straumur__color-white);border-radius:var(--straumur__border-radius-xxlg)}.js-iframe{border:none;color-scheme:auto;height:100%;overflow:hidden;width:100%}.adyen-checkout__threeds2__challenge.adyen-checkout__threeds2__challenge--05{background-color:transparent;display:block;height:inherit;min-height:400px;overflow:hidden;position:relative;width:100%}
2
2
  `);var Pd=()=>({STAGING_BASE_URL:"https://checkout-api.staging.straumur.is/api/v1/embeddedcheckout",PRODUCTION_BASE_URL:"https://greidslugatt.straumur.is/api/v1/embeddedcheckout",GET_PAYMENT_METHODS_URL:"payment-methods",POST_PAYMENT_URL:"payment",POST_DETAILS_URL:"details",POST_DISABLE_TOKEN_URL:"disable-token"}),Pt=Pd();function Xo(t){switch(t){case"test":return Pt.STAGING_BASE_URL;case"live":return Pt.PRODUCTION_BASE_URL;default:throw new Error(`Unknown environment: ${t}`)}}function Gn(t,e){return fetch(`${Xo(t)}/${Pt.GET_PAYMENT_METHODS_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}function ot(t,e){return fetch(`${Xo(t)}/${Pt.POST_PAYMENT_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}function Fe(t,e){return fetch(`${Xo(t)}/${Pt.POST_DETAILS_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}function zn(t,e){return fetch(`${Xo(t)}/${Pt.POST_DISABLE_TOKEN_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function bs(t,e){try{let o=await Gn(t,{sessionId:e});if(!o.ok){let s=o.headers.get("content-type"),n="error.failedToInitializePaymentMethods";return s&&s.includes("application/json")&&(n=(await o.json()).errorMessage),{resultCode:"Error",error:n}}return{resultCode:"Success",...await o.json()}}catch{return{resultCode:"Error",error:"error.failedToInitializePaymentMethods"}}}var Yt,X,Ss,$n,Qo=0,ea=[],ne=j,Kn=ne.__b,Wn=ne.__r,Zn=ne.diffed,qn=ne.__c,Xn=ne.unmount,Jn=ne.__;function er(t,e){ne.__h&&ne.__h(X,t,Qo||e),Qo=0;var o=X.__H||(X.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({}),o.__[t]}function U(t){return Qo=1,Rd(oa,t)}function Rd(t,e,o){var r=er(Yt++,2);if(r.t=t,!r.__c&&(r.__=[o?o(e):oa(void 0,e),function(c){var d=r.__N?r.__N[0]:r.__[0],p=r.t(d,c);d!==p&&(r.__N=[p,r.__[1]],r.__c.setState({}))}],r.__c=X,!X.__f)){var s=function(c,d,p){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(h){return!!h.__c});if(u.every(function(h){return!h.__N}))return!n||n.call(this,c,d,p);var l=r.__c.props!==c;return u.forEach(function(h){if(h.__N){var m=h.__[0];h.__=h.__N,h.__N=void 0,m!==h.__[0]&&(l=!0)}}),n&&n.call(this,c,d,p)||l};X.__f=!0;var n=X.shouldComponentUpdate,i=X.componentWillUpdate;X.componentWillUpdate=function(c,d,p){if(this.__e){var u=n;n=void 0,s(c,d,p),n=u}i&&i.call(this,c,d,p)},X.shouldComponentUpdate=s}return r.__N||r.__}function me(t,e){var o=er(Yt++,3);!ne.__s&&ta(o.__H,e)&&(o.__=t,o.u=e,X.__H.__h.push(o))}function le(t){return Qo=5,Td(function(){return{current:t}},[])}function Td(t,e){var o=er(Yt++,7);return ta(o.__H,e)&&(o.__=t(),o.__H=e,o.__h=t),o.__}function tr(t){var e=X.context[t.__c],o=er(Yt++,9);return o.c=t,e?(o.__==null&&(o.__=!0,e.sub(X)),e.props.value):t.__}function Ad(){for(var t;t=ea.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Jo),t.__H.__h.forEach(Ps),t.__H.__h=[]}catch(e){t.__H.__h=[],ne.__e(e,t.__v)}}ne.__b=function(t){X=null,Kn&&Kn(t)},ne.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Jn&&Jn(t,e)},ne.__r=function(t){Wn&&Wn(t),Yt=0;var e=(X=t.__c).__H;e&&(Ss===X?(e.__h=[],X.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):(e.__h.forEach(Jo),e.__h.forEach(Ps),e.__h=[],Yt=0)),Ss=X},ne.diffed=function(t){Zn&&Zn(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(ea.push(e)!==1&&$n===ne.requestAnimationFrame||(($n=ne.requestAnimationFrame)||Id)(Ad)),e.__H.__.forEach(function(o){o.u&&(o.__H=o.u),o.u=void 0})),Ss=X=null},ne.__c=function(t,e){e.some(function(o){try{o.__h.forEach(Jo),o.__h=o.__h.filter(function(r){return!r.__||Ps(r)})}catch(r){e.some(function(s){s.__h&&(s.__h=[])}),e=[],ne.__e(r,o.__v)}}),qn&&qn(t,e)},ne.unmount=function(t){Xn&&Xn(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(r){try{Jo(r)}catch(s){e=s}}),o.__H=void 0,e&&ne.__e(e,o.__v))};var Qn=typeof requestAnimationFrame=="function";function Id(t){var e,o=function(){clearTimeout(r),Qn&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(o,35);Qn&&(e=requestAnimationFrame(o))}function Jo(t){var e=X,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),X=e}function Ps(t){var e=X;t.__c=t.__(),X=e}function ta(t,e){return!t||t.length!==e.length||e.some(function(o,r){return o!==t[r]})}function oa(t,e){return typeof e=="function"?e(t):e}$(`.straumur__card-component--brands{display:flex;margin-left:auto;align-items:center;gap:var(--straumur__space-xxs)}.straumur__card-component__expandable{background:var(--straumur__color-white)}.straumur__card-component__loading-text{display:flex;justify-content:center}.straumur__card-component__form{display:flex;padding-top:var(--straumur__space-xxlg);flex-direction:column;gap:var(--straumur__space-5xlg)}.straumur__card-component__form--wrapper{display:flex;flex-direction:column;justify-items:start;position:relative;width:100%}.straumur__card-component__form--wrapper--error{color:var(--straumur__color-red-beta);font-size:12px}.straumur__card-component__form--wrapper--label{transform:translate(var(--straumur__space-md)) translateY(-50%);z-index:1;background:linear-gradient(to top,var(--straumur__color-secondary-gamma) 53%,var(--straumur__color-transparent) 50%);position:absolute;font-weight:500;font-size:14px;padding:0 var(--straumur__space-xxs)}.straumur__card-component__form--wrapper--label--error{color:var(--straumur__color-red-beta);background:linear-gradient(to top,var(--straumur__color-red-gamma) 53%,var(--straumur__color-transparent) 50%)}.straumur__card-component__form--wrapper--label--info{position:absolute;top:33%;right:var(--straumur__space-md)}.straumur__card-component__form--wrapper--input{background:var(--straumur__color-secondary-gamma);color:#00112c;display:block;font-family:inherit;border:1px solid var(--straumur__color-transparent);border-radius:var(--straumur__border-radius-s);font-size:1rem;height:48px;outline:none;padding-left:var(--straumur__space-lg);transition:border .2s ease-out,box-shadow .2s ease-out}.straumur__card-component__form--wrapper--input:hover{border:1px solid var(--straumur__color-cosmos-blue-delta)}.straumur__card-component__form--wrapper--input--error{background:var(--straumur__color-red-gamma);border:1px solid var(--straumur__color-red-beta)}.straumur__card-component__form--wrapper--input--error:hover{border:1px solid var(--straumur__color-red-beta)}.straumur__card-component__form--field-wrapper{display:flex;width:100%;gap:var(--straumur__space-5xlg)}.straumur__card-component__submit-button{background:var(--straumur__color-primary);border:none;border-radius:var(--straumur__border-radius-s);color:var(--straumur__color-white);cursor:pointer;font-size:1rem;height:40px;outline:none;padding:0 var(--straumur__space-xxlg);transition:background .2s ease-out;width:100%}.straumur__card-component__submit-button:hover{background:var(--straumur__color-primary);border:1px solid #dbdee2}.straumur__card-component__submit-button:disabled{background:#72889d;border:1px solid #dbdee2;cursor:not-allowed}.straumur__card-component__form--wrapper--label-checkbox{height:38px;display:flex;align-items:center;padding:8px;gap:var(--straumur__space-s);border-radius:var(--straumur__border-radius-s);cursor:pointer;user-select:none;transition:background-color .25s ease-in-out}.straumur__card-component__form--wrapper--label-checkbox:hover{background-color:var(--straumur__color-blue-gamma)}.straumur__card-component__form--wrapper--label-checkbox:hover .straumur__card-component__form--wrapper--label-checkbox--checkmark{border:1px solid var(--straumur__color-cosmos-blue-delta)}.straumur__card-component__form--wrapper--label-checkbox--checkmark{height:var(--straumur__space-5xlg);width:var(--straumur__space-5xlg);background-color:var(--straumur__color-secondary-gamma);border-radius:var(--straumur__border-radius-xxs);flex-shrink:0;border:1px solid var(--straumur__color-transparent);transition:all .2s ease-in}.straumur__card-component__form--wrapper--label-checkbox:hover .straumur__card-component__form--wrapper--label-checkbox--checkmark.straumur__card-component__form--wrapper--label-checkbox--checkmark--checked{border:1px solid var(--straumur__color-transparent)}.straumur__card-component__form--wrapper--label-checkbox--checkmark--checked{background-color:var(--straumur__color-blue-beta)}.straumur__card-component__form--wrapper--label-checkbox--checkmark--icon{height:100%;display:flex;justify-content:center;align-items:center;font-size:9px;opacity:0;visibility:hidden;transition:all .2s ease-in}.straumur__card-component__form--wrapper--label-checkbox--checkmark--icon--checked{opacity:1;visibility:visible}.straumur__card-component__form--wrapper--label-checkbox--checkbox{display:none}.js-iframe{border:none;color-scheme:auto;height:100%;overflow:hidden;width:100%}.straumur__card-component__dual-branding{display:grid;grid-template-columns:1fr 1fr;gap:var(--straumur__space-5xlg)}.straumur__card-component__dual-branding--logo{display:flex;align-items:center;padding:var(--straumur__space-xs);border:1px solid var(--straumur__color-secondary-gamma);border-radius:var(--straumur__border-radius-s)}.straumur__card-component__dual-branding--logo--item{display:flex;pointer-events:none}.straumur__card-component__dual-branding--logo--selected{border:1px solid var(--straumur__color-cosmos-blue-delta);justify-content:space-between}
3
3
  `);var ra=qo(void 0),Dd={card:!1,storedcard:!1,googlepay:!1,applepay:!1},sa=({children:t,initialValue:e,isSolePaymentMethod:o,hasCard:r,hasGooglePay:s,hasApplePay:n,hasStoredPaymentMethods:i})=>{let[c,d]=U(e),[p,u]=U(null),[l,h]=U(!1),[m,g]=U(Dd),[E,v]=U({}),[y,_]=U(null),[V,P]=U(null),b=(D,T)=>{g(w=>({...w,[D]:T}))},F=(D,T)=>{v(w=>({...w,[D]:T}))},R=D=>{P(D)},Y=D=>{_(D)};return a(ra.Provider,{value:{activePaymentMethod:c,setActivePaymentMethod:d,activeStoredPaymentMethodId:p,setActiveStoredPaymentMethodId:u,isPaymentMethodInitialized:m,updatePaymentMethodInitialization:b,isStoredCardInitialized:E,updateStoredCardInitialization:F,handleSuccess:Y,success:y,handleError:R,error:V,threeDSecureActive:l,setThreeDSecureActive:h,isSolePaymentMethod:o,hasCard:r,hasGooglePay:s,hasApplePay:n,hasStoredPaymentMethods:i}},t)},ee=()=>{let t=tr(ra);if(t===void 0)throw new Error("usePaymentMethodGroup must be used within a PaymentMethodGroup");return t};var na=qo(void 0),aa=({children:t,i18nService:e,onLanguageChange:o})=>{let r=s=>{e.setLanguage(s),o?.(s)};return a(na.Provider,{value:{i18n:e,changeLanguage:r}},t)},be=()=>{let t=tr(na);if(!t)throw new Error("useI18n must be used within an I18nProvider");return t};var wd=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",viewBox:"0 0 24 24",fill:"none"},a("path",{d:"M24 11H0V7H24V11Z",fill:"#002649"}),a("path",{opacity:"0.4",d:"M21.3333 3C22.8042 3 24 4.19375 24 5.66667V7H0V5.66667C0 4.19375 1.19375 3 2.66667 3H21.3333ZM24 19C24 20.4708 22.8042 21.6667 21.3333 21.6667H2.66667C1.19375 21.6667 0 20.4708 0 19V11H24V19ZM4.66667 16.3333C4.3 16.3333 4 16.6333 4 17C4 17.3667 4.3 17.6667 4.66667 17.6667H7.33333C7.7 17.6667 8 17.3667 8 17C8 16.6333 7.7 16.3333 7.33333 16.3333H4.66667ZM10 17.6667H15.3333C15.7 17.6667 16 17.3667 16 17C16 16.6333 15.7 16.3333 15.3333 16.3333H10C9.63333 16.3333 9.33333 16.6333 9.33333 17C9.33333 17.3667 9.63333 17.6667 10 17.6667Z",fill:"#002649"})),ia=wd;var xd=({opacity:t=1})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",viewBox:"0 0 40 26",opacity:t},a("path",{fill:"#fff",d:"M0 0h40v26H0z"}),a("path",{fill:"#F06022",d:"M16.13 19.29h7.74V6.7h-7.74v12.58z"}),a("path",{fill:"#EA1D25",d:"M16.93 13A7.93 7.93 0 0 1 20 6.71a8.02 8.02 0 0 0-10.65.65 7.96 7.96 0 0 0 0 11.28 8.02 8.02 0 0 0 10.65.65A8.02 8.02 0 0 1 16.93 13"}),a("path",{fill:"#F79D1D",d:"M33 13c0 2.12-.84 4.15-2.34 5.65a8.1 8.1 0 0 1-10.66.64A8.05 8.05 0 0 0 23.07 13 7.96 7.96 0 0 0 20 6.71a8.02 8.02 0 0 1 10.66.64A7.93 7.93 0 0 1 33 13"})),la=xd;var kd=({opacity:t=1})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:t},a("path",{fill:"#fff",d:"M0 0h40v26H0z"}),a("path",{fill:"#1434CB",d:"m15.9 7.7-4.43 10.6h-2.9l-2.2-8.47c-.13-.52-.25-.71-.65-.93C5.05 8.55 3.96 8.2 3 8l.07-.32h4.67c.6 0 1.13.4 1.27 1.09l1.15 6.14 2.86-7.23h2.89Zm11.39 7.15c0-2.8-3.88-2.96-3.85-4.21 0-.38.37-.79 1.16-.9a5.2 5.2 0 0 1 2.71.48l.48-2.25a7.4 7.4 0 0 0-2.57-.47c-2.71 0-4.62 1.44-4.64 3.51-.02 1.53 1.36 2.38 2.4 2.9 1.08.51 1.44.85 1.43 1.31 0 .71-.85 1.03-1.64 1.04-1.39.02-2.19-.37-2.82-.67l-.5 2.33c.64.29 1.82.55 3.05.56 2.89 0 4.78-1.42 4.79-3.63Zm7.17 3.46H37L34.78 7.7h-2.34c-.53 0-.98.3-1.17.78l-4.12 9.84h2.88l.57-1.58h3.53l.33 1.58Zm-3.07-3.76 1.45-3.99.83 4H31.4ZM19.83 7.7l-2.27 10.62h-2.74L17.09 7.7h2.74Z"})),ca=kd;var Nd=({opacity:t=1})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:t},a("path",{fill:"#fff",d:"M0 0h40v26H0z"}),a("path",{fill:"#7773B4",d:"M16.13 19.29h7.74V6.7h-7.74v12.58z"}),a("path",{fill:"#EA1D25",d:"M16.93 13A7.93 7.93 0 0 1 20 6.71a8.02 8.02 0 0 0-10.65.65 7.96 7.96 0 0 0 0 11.28 8.02 8.02 0 0 0 10.65.65A8.02 8.02 0 0 1 16.93 13"}),a("path",{fill:"#139FDA",d:"M33 13c0 2.12-.84 4.15-2.34 5.65a8.1 8.1 0 0 1-10.66.64A8.05 8.05 0 0 0 23.07 13 7.96 7.96 0 0 0 20 6.71a8.02 8.02 0 0 1 10.66.64A7.93 7.93 0 0 1 33 13"})),da=Nd;var Od=({opacity:t=1})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 26",width:"40",height:"26",opacity:t},a("path",{fill:"#016FD0",d:"M0 26h40V0H0v26z"}),a("path",{fill:"#fff","fill-rule":"evenodd",d:"M30.69 13.63v1.64h-4.17v1.14h4.07v1.64h-4.07v1.12h4.17v1.66l3.38-3.6-3.38-3.6zm-1.1-6.14-1.4-3.19h-4l-4.1 9.32h3.33v8.27l10.28.01 1.61-1.8 1.63 1.8H40v-2.63l-1.92-2.06L40 15.16v-2.59l-1.93.01V7.6l-1.81 4.98H34.5l-1.86-5v5h-4.2l-.6-1.46h-3.3l-.6 1.46h-2.22l3.23-7.27V5.3h2.55l3.19 7.21V5.3l3.1.01 1.6 4.47 1.62-4.48H40v-1h-3.77l-.85 2.39-.85-2.39h-4.94v3.19zm-5.06 6.11v7.27h6.16v-.01h2.54l2.1-2.32 2.12 2.32H40v-.1l-3.34-3.53L40 13.65v-.05h-2.52l-2.1 2.3-2.08-2.3h-8.77zm.7-4.11.96-2.31.97 2.31h-1.93z"})),pa=Od;var Md=({opacity:t=1})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:t},a("g",{"clip-path":"url(#a)"},a("path",{fill:"#fff",d:"M0 0h40v26H0V0Z"}),a("path",{fill:"#fff",d:"M36.6 20.66a5.22 5.22 0 0 1-5.22 5.22H3V5.22A5.22 5.22 0 0 1 8.22 0H36.6v20.66Z"}),a("path",{fill:"url(#b)",d:"M27.36 15.36h2.15l.27-.02a.96.96 0 0 0 .76-.96 1 1 0 0 0-.76-.97c-.06-.02-.19-.02-.27-.02h-2.15v1.97Z"}),a("path",{fill:"url(#c)",d:"M29.27 1.75a3.74 3.74 0 0 0-3.74 3.73v3.89h5.28c.12 0 .26 0 .37.02 1.19.06 2.07.67 2.07 1.74 0 .84-.6 1.56-1.7 1.7v.05c1.2.08 2.13.76 2.13 1.8 0 1.13-1.03 1.87-2.38 1.87h-5.8v7.6H31a3.74 3.74 0 0 0 3.73-3.74V1.75h-5.46Z"}),a("path",{fill:"url(#d)",d:"M30.27 11.38c0-.5-.35-.82-.76-.89l-.2-.02h-1.95v1.81h1.95c.06 0 .18 0 .2-.02a.87.87 0 0 0 .76-.88Z"}),a("path",{fill:"url(#e)",d:"M8.6 1.75a3.74 3.74 0 0 0-3.73 3.73v9.22a7.4 7.4 0 0 0 3.22.85c1.3 0 2-.78 2-1.85V9.34h3.2v4.34c0 1.68-1.05 3.06-4.6 3.06-2.16 0-3.84-.47-3.84-.47v7.86h5.48a3.74 3.74 0 0 0 3.74-3.74V1.75H8.6Z"}),a("path",{fill:"url(#f)",d:"M18.94 1.75a3.74 3.74 0 0 0-3.74 3.73v4.9c.94-.8 2.59-1.32 5.24-1.2 1.41.06 2.93.45 2.93.45v1.58a7.1 7.1 0 0 0-2.83-.82c-2.01-.14-3.23.84-3.23 2.57 0 1.74 1.22 2.73 3.23 2.57a7.46 7.46 0 0 0 2.83-.82v1.58s-1.5.39-2.93.45c-2.65.12-4.3-.4-5.24-1.2v8.63h5.48a3.74 3.74 0 0 0 3.74-3.74V1.75h-5.48Z"})),a("defs",null,a("linearGradient",{id:"b",x1:"25.52",x2:"34.75",y1:"14.38",y2:"14.38",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#007940"}),a("stop",{offset:".23","stop-color":"#00873F"}),a("stop",{offset:".74","stop-color":"#40A737"}),a("stop",{offset:"1","stop-color":"#5CB531"})),a("linearGradient",{id:"c",x1:"25.52",x2:"34.75",y1:"12.94",y2:"12.94",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#007940"}),a("stop",{offset:".23","stop-color":"#00873F"}),a("stop",{offset:".74","stop-color":"#40A737"}),a("stop",{offset:"1","stop-color":"#5CB531"})),a("linearGradient",{id:"d",x1:"25.52",x2:"34.75",y1:"11.37",y2:"11.37",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#007940"}),a("stop",{offset:".23","stop-color":"#00873F"}),a("stop",{offset:".74","stop-color":"#40A737"}),a("stop",{offset:"1","stop-color":"#5CB531"})),a("linearGradient",{id:"e",x1:"4.86",x2:"14.24",y1:"12.94",y2:"12.94",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#1F286F"}),a("stop",{offset:".48","stop-color":"#004E94"}),a("stop",{offset:".83","stop-color":"#0066B1"}),a("stop",{offset:"1","stop-color":"#006FBC"})),a("linearGradient",{id:"f",x1:"15.15",x2:"24.25",y1:"12.94",y2:"12.94",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#6C2C2F"}),a("stop",{offset:".17","stop-color":"#882730"}),a("stop",{offset:".57","stop-color":"#BE1833"}),a("stop",{offset:".86","stop-color":"#DC0436"}),a("stop",{offset:"1","stop-color":"#E60039"})),a("clipPath",{id:"a"},a("path",{fill:"#fff",d:"M0 0h40v26H0z"})))),ua=Md;var Fd=({opacity:t=1})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 26",width:"40",height:"26",opacity:t},a("path",{fill:"#fff",d:"M0 0h40v26H0z"}),a("g",{fill:"#1a1918"},a("path",{d:"M5.96 15.58c0-.56-.3-.52-.58-.53v-.16H7.2a2.28 2.28 0 0 1 2.5 2.2c0 .61-.36 2.17-2.57 2.17H5.38v-.16c.38-.04.56-.05.58-.48zm.61 2.94c0 .49.35.54.65.54a1.75 1.75 0 0 0 1.8-1.95 1.88 1.88 0 0 0-1.96-2.02c-.26 0-.37.02-.49.02zm3.36.58h.12c.17 0 .3 0 .3-.2v-1.7c0-.28-.1-.32-.33-.44v-.1l.67-.23a.22.22 0 0 1 .11-.03c.03 0 .05.04.05.09v2.4c0 .21.13.21.3.21h.11v.16H9.93zm.67-3.67a.3.3 0 0 1 0-.61.3.3 0 0 1 .3.3.31.31 0 0 1-.3.31zm1.26 1.8c0-.23-.07-.3-.36-.41v-.12a8.44 8.44 0 0 0 .82-.3c.02 0 .04.01.04.06v.4a1.83 1.83 0 0 1 1.08-.46c.53 0 .72.39.72.88v1.61c0 .21.14.21.31.21h.12v.16h-1.34v-.16h.11c.18 0 .3 0 .3-.2v-1.63c0-.36-.22-.53-.57-.53a1.66 1.66 0 0 0-.73.3v1.85c0 .21.14.21.31.21h.12v.16h-1.34v-.16h.1c.18 0 .3 0 .3-.2v-1.67m3.21.3a1.55 1.55 0 0 0 0 .37 1.05 1.05 0 0 0 .92 1.08 1.2 1.2 0 0 0 .85-.42l.08.09a1.47 1.47 0 0 1-1.15.7 1.26 1.26 0 0 1-1.2-1.36c0-1.23.83-1.6 1.27-1.6a1 1 0 0 1 1.05 1 .74.74 0 0 1 0 .1l-.06.04zm1.11-.2c.16 0 .18-.08.18-.16a.53.53 0 0 0-.55-.57c-.38 0-.64.28-.72.73zm.86 1.77h.17c.17 0 .3 0 .3-.2v-1.77c0-.2-.23-.23-.33-.28v-.1c.46-.19.7-.35.77-.35.03 0 .05.02.05.08v.56H18c.16-.24.42-.64.8-.64a.34.34 0 0 1 .36.33.3.3 0 0 1-.3.32c-.19 0-.19-.15-.4-.15a.53.53 0 0 0-.46.52v1.47c0 .21.12.21.3.21h.35v.16h-.88a26 26 0 0 0-.74 0zm2.41-.7a.83.83 0 0 0 .78.76.44.44 0 0 0 .51-.45c0-.74-1.36-.5-1.36-1.5a.86.86 0 0 1 .97-.81 1.64 1.64 0 0 1 .71.18l.04.64h-.14a.64.64 0 0 0-.68-.62.44.44 0 0 0-.49.41c0 .74 1.45.51 1.45 1.5 0 .4-.33.85-1.07.85a1.64 1.64 0 0 1-.77-.22l-.07-.72.12-.03m7.44-2.37h-.15A1.2 1.2 0 0 0 25.39 15a1.79 1.79 0 0 0-1.77 2 2.04 2.04 0 0 0 1.87 2.17 1.27 1.27 0 0 0 1.25-1.09l.15.04-.15.91a3.5 3.5 0 0 1-1.38.34A2.23 2.23 0 0 1 22.97 17a2.3 2.3 0 0 1 2.37-2.2 4.5 4.5 0 0 1 1.48.33l.06.9m.22 3.07h.13c.17 0 .3 0 .3-.2v-3.5c0-.4-.1-.42-.34-.49v-.1a3.96 3.96 0 0 0 .65-.27.66.66 0 0 1 .14-.07c.03 0 .05.04.05.1v4.32c0 .21.13.21.3.21h.12v.16H27.1zm4.02-.18c0 .11.07.12.18.12h.25v.12a6.33 6.33 0 0 0-.9.2l-.03-.02v-.5a1.69 1.69 0 0 1-1.11.52.68.68 0 0 1-.69-.75v-1.6c0-.17-.02-.32-.37-.35v-.12l.8-.05c.07 0 .07.05.07.18v1.62c0 .19 0 .73.55.73a1.4 1.4 0 0 0 .75-.38v-1.7c0-.12-.3-.18-.52-.25v-.11c.56-.04.91-.09.97-.09.05 0 .05.05.05.11zm1.25-2.07a1.58 1.58 0 0 1 .93-.45 1.22 1.22 0 0 1 1.16 1.31 1.58 1.58 0 0 1-1.5 1.65 1.84 1.84 0 0 1-.86-.22l-.19.14-.13-.07a7.37 7.37 0 0 0 .09-1.11v-2.7c0-.4-.1-.42-.33-.49v-.1a3.93 3.93 0 0 0 .64-.27.67.67 0 0 1 .14-.07c.04 0 .05.04.05.1zm0 1.7a.67.67 0 0 0 .64.64c.67 0 .95-.65.95-1.21a1.2 1.2 0 0 0-1-1.24.96.96 0 0 0-.6.3v1.51zM5.38 22.91h.04c.13 0 .26-.02.26-.2v-1.78c0-.18-.13-.2-.26-.2h-.04v-.1l.5.01.54-.01v.1h-.05c-.12 0-.25.02-.25.2v1.79c0 .17.13.19.25.19h.05v.1L5.88 23l-.5.01z"}),a("path",{d:"M6.42 23.03 5.88 23l-.5.02h-.02v-.14h.06c.13 0 .24 0 .24-.17v-1.8c0-.16-.11-.17-.24-.17h-.06v-.13h1.07v.13h-.06c-.13 0-.24.01-.24.18v1.79c0 .16.11.17.24.17h.06v.14zM6.4 23v-.08h-.03c-.12 0-.27-.02-.27-.2v-1.8c0-.18.15-.2.27-.2h.03v-.07h-1v.07h.03c.13 0 .27.02.27.2v1.8c0 .18-.14.2-.27.2H5.4V23l.49-.02.52.02zm2.35-.66h.01v-1.29a.28.28 0 0 0-.3-.32H8.4v-.1l.48.01.42-.01v.1h-.06c-.14 0-.3.03-.3.44v1.55a2.27 2.27 0 0 0 .02.34h-.13L7.07 21.1v1.41c0 .3.06.4.32.4h.06v.1L7 23l-.47.01v-.1h.05c.24 0 .3-.16.3-.43v-1.44a.3.3 0 0 0-.3-.3h-.05v-.11l.4.01.3-.01 1.51 1.71"}),a("path",{d:"M8.95 23.08h-.14l-1.73-1.94v1.37c0 .3.05.38.3.38h.08v.14h-.01L7 23l-.47.02h-.01v-.14h.06c.23 0 .3-.14.3-.41v-1.44a.3.3 0 0 0-.3-.3h-.06v-.12h.72l1.5 1.69v-1.26c0-.27-.19-.3-.29-.3h-.09v-.13h.94v.13h-.07c-.14 0-.28.01-.28.42v1.55a2.27 2.27 0 0 0 .02.34v.02zm-.13-.03h.11a2.3 2.3 0 0 1-.01-.33v-1.55c0-.41.17-.45.31-.45h.04v-.07H8.4v.07h.06a.3.3 0 0 1 .32.33v1.3h-.02v.01l-1.52-1.71h-.68v.07h.03a.32.32 0 0 1 .32.32v1.44c0 .27-.07.44-.32.45h-.03V23l.45-.02.42.02v-.07H7.4c-.27 0-.34-.12-.34-.42v-1.44l1.77 1.98zm-.07-.71.01-.01v.01zm0 0v-.01zM9.8 20.8c-.26 0-.27.06-.32.31h-.1l.04-.29a2.04 2.04 0 0 0 .02-.29h.08c.03.1.11.1.2.1h1.76c.1 0 .18 0 .18-.1h.09l-.04.28v.28l-.11.04c0-.13-.02-.33-.25-.33h-.56v1.82c0 .26.12.29.28.29h.07v.1l-.56-.01-.57.01v-.1h.06c.19 0 .28-.02.28-.29V20.8z"}),a("path",{d:"m11.14 23.03-.56-.02-.57.02h-.02v-.14h.08c.19 0 .26 0 .27-.27v-1.8H9.8v-.03h.57v1.83c0 .28-.11.3-.3.3h-.05V23l.56-.02.54.02v-.07h-.05c-.16 0-.3-.05-.3-.31v-1.83h.58c.23 0 .26.2.26.32l.08-.03a3.96 3.96 0 0 1 .04-.53h-.05c-.02.1-.11.1-.2.1H9.71c-.08 0-.17 0-.2-.1h-.06a2.04 2.04 0 0 1-.02.27c0 .1-.02.19-.04.28h.08c.04-.24.07-.32.33-.31v.03c-.26 0-.25.04-.3.3h-.14v-.01l.04-.3a1.93 1.93 0 0 0 .02-.28v-.01h.11c.03.1.09.1.18.1h1.77c.1 0 .16 0 .17-.1v-.01h.02l.1.02-.01.01-.04.28v.28h-.01l-.12.05v-.02c-.01-.13-.03-.31-.24-.31h-.55v1.8c0 .25.11.27.27.27h.08v.14zm.71-.12h.05c.12 0 .25-.02.25-.2v-1.78c0-.18-.13-.2-.25-.2h-.05v-.1l.85.01.87-.01.01.52-.1.03c-.02-.22-.06-.4-.42-.4h-.47v.9h.4c.2 0 .25-.12.27-.3h.1v.78l-.1.02c-.02-.2-.03-.33-.26-.33h-.4v.79c0 .22.19.22.4.22.41 0 .6-.03.7-.41l.1.02a7.7 7.7 0 0 0-.12.54l-.92-.01-.9.01v-.1"}),a("path",{d:"m13.68 23.03-.92-.02-.9.02h-.02v-.14h.06c.13 0 .24 0 .24-.17v-1.8c0-.16-.11-.17-.24-.17h-.06v-.13h1.75v.01a4.18 4.18 0 0 0 0 .52v.01l-.13.04v-.02c-.02-.22-.05-.38-.4-.38h-.46v.86h.4c.2 0 .23-.1.25-.29v-.01h.13v.01a8.08 8.08 0 0 0 0 .8h-.01l-.12.03v-.02c-.02-.2-.03-.32-.25-.32h-.4v.78c0 .2.18.2.4.2.42 0 .58-.02.68-.4v-.01h.02l.1.03v.01a7.8 7.8 0 0 0-.11.54v.02zm-.02-.03.11-.52-.06-.02c-.1.39-.3.42-.7.42-.22 0-.43 0-.44-.24v-.8H13c.24-.01.26.13.28.33l.07-.02a7.25 7.25 0 0 1 0-.76h-.07c-.02.18-.08.3-.29.3h-.42v-.92h.5c.35 0 .4.18.42.4l.07-.03a5.76 5.76 0 0 1 0-.5l-.86.02-.83-.01v.07h.03c.12 0 .27.02.27.2v1.8c0 .18-.15.2-.27.2h-.03V23l.89-.02zm.59-2c0-.26-.14-.27-.24-.27h-.06v-.1l.53.01.54-.01c.43 0 .81.12.81.6a.64.64 0 0 1-.47.6l.58.87a.38.38 0 0 0 .33.21v.1l-.33-.01-.32.01a9.45 9.45 0 0 1-.7-1.1h-.23v.73c0 .26.12.27.28.27h.06v.1l-.59-.01-.5.01v-.1h.07c.13 0 .24-.06.24-.18v-1.74zm.44.78h.16c.34 0 .53-.13.53-.53a.47.47 0 0 0-.5-.5 1.65 1.65 0 0 0-.2.02v1.01z"}),a("path",{d:"m16.27 23.03-.33-.02c-.1 0-.21.02-.33.01a9.54 9.54 0 0 1-.7-1.1h-.2v.72c0 .25.1.25.26.25h.07v.14h-.01l-.59-.02-.5.02v-.14H14c.12 0 .22-.05.23-.16v-1.74c0-.24-.13-.24-.23-.24h-.08v-.13h1.09c.43 0 .83.11.83.61a.65.65 0 0 1-.47.6l.57.87a.37.37 0 0 0 .32.2h.02v.13zm-1.58-1.14h.23a10.55 10.55 0 0 0 .7 1.1h.64v-.07a.39.39 0 0 1-.33-.2l-.6-.9h.02a.63.63 0 0 0 .47-.59c0-.47-.37-.58-.8-.58h-1.06v.07h.05c.1 0 .26.02.26.27v1.74c0 .13-.13.2-.26.2h-.05V23l.48-.02.57.02v-.07h-.04c-.16 0-.3-.02-.3-.3v-.74zm0-.1h-.02v-1.04h.01a1.63 1.63 0 0 1 .2-.01.48.48 0 0 1 .51.51c0 .4-.2.55-.54.55zm.16-.02c.34 0 .51-.12.51-.52a.45.45 0 0 0-.48-.48 1.33 1.33 0 0 0-.18.01v.99zm3.73.57h.01v-1.29a.28.28 0 0 0-.3-.32h-.07v-.1l.48.01.42-.01v.1h-.06c-.14 0-.3.03-.3.44v1.55a2.27 2.27 0 0 0 .02.34h-.13L16.9 21.1v1.41c0 .3.06.4.32.4h.06v.1l-.44-.01-.47.01v-.1h.05c.24 0 .3-.16.3-.43v-1.44a.3.3 0 0 0-.3-.3h-.05v-.11l.4.01.3-.01z"}),a("path",{d:"M18.78 23.08h-.14l-1.73-1.94v1.37c0 .3.05.38.3.38h.08v.14h-.01l-.44-.02-.47.02h-.01v-.14h.06c.23 0 .3-.14.3-.41v-1.44a.3.3 0 0 0-.3-.3h-.06v-.12h.71l1.5 1.69v-1.26c0-.27-.18-.3-.28-.3h-.09v-.13h.93v.13h-.07c-.14 0-.28.01-.28.42v1.55a2.15 2.15 0 0 0 .02.34v.02zm-.13-.03h.11a2.34 2.34 0 0 1-.01-.33v-1.55c0-.41.17-.45.31-.45h.04v-.07h-.87v.07h.06a.3.3 0 0 1 .32.33v1.3h-.02v.01l-1.52-1.71h-.68v.07h.03a.32.32 0 0 1 .32.32v1.44c0 .27-.07.44-.32.45h-.03V23l.45-.02.42.02v-.07h-.04c-.27 0-.34-.12-.34-.42v-1.44zm-.07-.71.01-.01v.01zm0 0v-.01zm1.08.18a1.38 1.38 0 0 0-.07.27c0 .1.14.12.25.12h.04v.1a7.72 7.72 0 0 0-.78 0v-.1h.02a.3.3 0 0 0 .3-.22l.54-1.57a2.87 2.87 0 0 0 .13-.42 1.73 1.73 0 0 0 .3-.15.08.08 0 0 1 .04 0 .02.02 0 0 1 .02 0l.03.1.63 1.78.12.34a.22.22 0 0 0 .23.14h.02v.1a9.66 9.66 0 0 0-.98 0v-.1h.03c.08 0 .22-.01.22-.1a1.1 1.1 0 0 0-.07-.25l-.14-.4h-.77l-.1.36zm.5-1.5-.32.96h.63l-.31-.97z"}),a("path",{d:"M21.48 23.03 21 23l-.51.02h-.02v-.14h.05c.08 0 .2-.01.2-.08a1.1 1.1 0 0 0-.07-.24l-.13-.39h-.75l-.1.35a1.41 1.41 0 0 0-.08.26c0 .08.13.1.24.1h.06v.14h-.02l-.41-.02-.37.02h-.01v-.14h.03a.3.3 0 0 0 .28-.2l.55-1.57a4.05 4.05 0 0 0 .13-.44 1.75 1.75 0 0 0 .31-.14.09.09 0 0 1 .03-.01.04.04 0 0 1 .04.02l.03.09.63 1.78c.04.12.08.25.13.35a.2.2 0 0 0 .2.12h.04v.14h-.01zM20.5 23l.5-.02.45.02v-.07a.23.23 0 0 1-.24-.15c-.05-.1-.09-.23-.13-.35l-.62-1.78-.03-.09h-.02a.08.08 0 0 0-.01 0 1.26 1.26 0 0 1-.3.14 2.83 2.83 0 0 1-.13.43l-.55 1.56a.32.32 0 0 1-.3.24h-.01V23l.35-.02.4.02v-.07h-.03c-.1 0-.26-.02-.27-.14a1.35 1.35 0 0 1 .08-.27h.01-.01l.11-.36h.8l.13.4a1.04 1.04 0 0 1 .07.25c0 .1-.15.11-.23.12h-.02zm-.7-1 .33-1h.03l.32 1zm.05-.04h.6l-.3-.91zm.28-.94h.01zm1.5-.22c-.26 0-.27.06-.32.31h-.1l.04-.29a2.1 2.1 0 0 0 .02-.29h.08c.03.1.11.1.2.1h1.76c.1 0 .18 0 .19-.1h.08l-.04.28v.28l-.1.04c-.02-.13-.03-.33-.26-.33h-.56v1.82c0 .26.12.29.28.29h.07v.1L22.4 23l-.57.01v-.1h.06c.19 0 .29-.02.29-.29V20.8h-.56"}),a("path",{d:"M22.97 23.03 22.4 23l-.57.02h-.02v-.14h.08c.19 0 .27 0 .27-.27v-1.8h-.54v-.03h.57v1.83c0 .28-.11.3-.3.3h-.05V23l.56-.02.54.02v-.07h-.05c-.16 0-.3-.05-.3-.31v-1.83h.58c.23 0 .26.2.26.32l.08-.03v-.27l.04-.26h-.05c-.02.1-.11.1-.2.1h-1.77c-.08 0-.17 0-.2-.1h-.06a2 2 0 0 1-.02.27c0 .1-.02.19-.04.28h.08c.04-.24.07-.32.33-.31v.03c-.26 0-.25.04-.3.3h-.14v-.01l.04-.29a1.98 1.98 0 0 0 .02-.29v-.01h.11c.03.1.1.1.18.1h1.77c.1 0 .17 0 .17-.1v-.01h.02l.1.02v.01l-.05.28v.28h-.01l-.12.05v-.02c-.01-.13-.03-.31-.24-.31h-.54v1.8c0 .25.1.27.26.27h.08v.14h-.01m.74-.12h.05c.12 0 .25-.02.25-.2v-1.78c0-.18-.13-.2-.25-.2h-.05v-.1l.5.01.54-.01v.1h-.05c-.12 0-.25.02-.25.2v1.79c0 .17.13.19.25.19h.05v.1L24.2 23l-.5.01z"}),a("path",{d:"M24.74 23.03 24.2 23l-.5.02h-.01v-.14h.06c.12 0 .24 0 .24-.17v-1.8c0-.16-.12-.17-.24-.17h-.06v-.13h1.07v.13h-.07c-.12 0-.23.01-.23.18v1.79c0 .16.1.17.23.17h.07v.14zm-.01-.03v-.07h-.04c-.12 0-.26-.03-.26-.21v-1.8c0-.18.14-.2.26-.2h.04v-.07H23.7v.07h.04c.12 0 .27.02.27.2v1.8c0 .18-.15.2-.27.2h-.03V23l.48-.02.53.02zm1.37-2.42a1.2 1.2 0 0 1 1.3 1.18 1.25 1.25 0 0 1-1.28 1.3 1.2 1.2 0 0 1-1.28-1.22 1.24 1.24 0 0 1 1.26-1.26m.05 2.33c.66 0 .78-.58.78-1.08s-.27-1.1-.84-1.1c-.6 0-.77.53-.77.99 0 .6.28 1.2.83 1.2"}),a("path",{d:"M24.83 21.84a1.26 1.26 0 0 1 1.27-1.28v.03a1.23 1.23 0 0 0-1.24 1.25 1.19 1.19 0 0 0 1.26 1.2 1.24 1.24 0 0 0 1.27-1.28 1.18 1.18 0 0 0-1.3-1.17v-.03a1.21 1.21 0 0 1 1.33 1.2 1.27 1.27 0 0 1-1.3 1.32 1.22 1.22 0 0 1-1.3-1.24m.48-.12c0-.46.18-1 .8-1 .57 0 .84.61.84 1.11s-.12 1.1-.79 1.1v-.03c.65 0 .76-.57.76-1.07s-.26-1.08-.82-1.09c-.58 0-.75.52-.76.98 0 .6.28 1.18.82 1.18v.03c-.56 0-.84-.6-.85-1.21m4.4.62v-1.29a.28.28 0 0 0-.3-.32h-.07v-.1l.48.01.42-.01v.1h-.05c-.15 0-.3.03-.3.44v1.55a2.2 2.2 0 0 0 .01.34h-.12L28 21.1v1.41c0 .3.06.4.32.4h.06v.1l-.44-.01-.46.01v-.1h.05c.23 0 .3-.16.3-.43v-1.44a.3.3 0 0 0-.3-.3h-.05v-.11l.39.01.3-.01 1.52 1.71"}),a("path",{d:"M29.9 23.08h-.15l-1.72-1.94v1.37c0 .3.05.38.3.38h.07v.14h-.01l-.44-.02-.46.02h-.02v-.14h.07c.22 0 .28-.14.29-.41v-1.44a.3.3 0 0 0-.3-.3h-.06v-.12h.72l1.5 1.69v-1.26c0-.27-.18-.3-.28-.3h-.1v-.13h.94v.13h-.06c-.14 0-.29.01-.3.42v1.55a2.26 2.26 0 0 0 .03.34v.02zm-.13-.03h.1a2.42 2.42 0 0 1-.01-.33v-1.55c0-.41.17-.45.32-.45h.03v-.07h-.86v.07h.06a.3.3 0 0 1 .3.33v1.3l-.01.01-1.52-1.71h-.68v.07h.03a.32.32 0 0 1 .33.32v1.44c0 .27-.08.44-.32.45h-.04V23l.45-.02.43.02v-.07h-.05c-.27 0-.33-.12-.33-.42v-1.44zm-.07-.71v-.01zm-.01 0v-.01zm1.09.18a1.43 1.43 0 0 0-.08.27c0 .1.14.12.26.12h.03v.1a7.71 7.71 0 0 0-.78 0v-.1h.02a.3.3 0 0 0 .3-.22l.55-1.57a2.79 2.79 0 0 0 .12-.42 1.75 1.75 0 0 0 .31-.15.07.07 0 0 1 .03 0 .02.02 0 0 1 .02 0l.03.1.63 1.78c.04.11.08.24.13.34a.22.22 0 0 0 .22.14h.02v.1a9.66 9.66 0 0 0-.98 0v-.1h.04c.08 0 .2-.01.2-.1a1.1 1.1 0 0 0-.06-.25l-.13-.4h-.78zm.5-1.5h-.01l-.32.96h.64l-.32-.97z"}),a("path",{d:"m32.59 23.03-.47-.02-.5.02h-.02v-.14h.05c.08 0 .2-.01.2-.08a1.06 1.06 0 0 0-.07-.24l-.13-.39h-.76l-.1.35a1.44 1.44 0 0 0-.07.26c0 .08.12.1.24.1H31v.14h-.02l-.4-.02-.38.02h-.01v-.14h.03a.3.3 0 0 0 .29-.2l.54-1.57a4.27 4.27 0 0 0 .14-.44 1.85 1.85 0 0 0 .3-.14.08.08 0 0 1 .04 0 .04.04 0 0 1 .04.01l.03.09.62 1.78c.04.12.08.25.13.35a.2.2 0 0 0 .2.12h.04v.14h-.01zm-.97-.03.5-.02.46.02v-.08h-.01a.23.23 0 0 1-.24-.14l-.12-.35-.63-1.78a3.61 3.61 0 0 1-.03-.09h-.01a.06.06 0 0 0-.02 0 1.3 1.3 0 0 1-.3.14 2.94 2.94 0 0 1-.13.43l-.55 1.56a.32.32 0 0 1-.3.24h-.01V23l.35-.02.4.02v-.07h-.02c-.11 0-.27-.02-.27-.14a1.42 1.42 0 0 1 .07-.27h.02-.02l.11-.36h.8l.13.4a1.07 1.07 0 0 1 .07.25c0 .1-.15.11-.22.12h-.03zm-.7-1 .34-1h.02l.33 1zm.05-.04h.6l-.3-.91zm2.48.72c0 .13.1.18.2.19a2.47 2.47 0 0 0 .45 0 .48.48 0 0 0 .33-.2.78.78 0 0 0 .1-.24h.1l-.12.58-.9-.01-.9.01v-.1h.05c.12 0 .25-.02.25-.23v-1.75c0-.18-.13-.2-.25-.2h-.05v-.1l.54.01.51-.01v.1h-.08c-.13 0-.23 0-.23.19z"}),a("path",{d:"m34.5 23.03-.9-.02-.9.02v-.14h.06c.12 0 .24 0 .24-.2v-1.76c0-.17-.12-.18-.24-.18h-.07v-.13h1.09v.13h-.1c-.13 0-.21 0-.22.17v1.76c0 .13.09.16.2.17l.18.01a2.46 2.46 0 0 0 .26-.01.48.48 0 0 0 .32-.18.77.77 0 0 0 .1-.24v-.01h.13v.02l-.13.58zm0-.03.11-.55h-.07a.77.77 0 0 1-.1.24.5.5 0 0 1-.34.19 2.6 2.6 0 0 1-.26.01h-.19c-.11-.02-.22-.07-.22-.21v-1.76c0-.2.12-.2.25-.2h.07v-.07h-1.03v.07h.04c.12 0 .27.02.27.2v1.76c0 .22-.15.24-.27.24h-.04V23l.89-.02.88.02zm.1-2.47a.36.36 0 1 1-.37.36.35.35 0 0 1 .36-.36zm0 .66a.3.3 0 1 0-.3-.3.29.29 0 0 0 .3.3zm-.19-.1v-.02c.05-.01.05 0 .05-.04v-.26c0-.04 0-.05-.05-.05v-.02h.19c.06 0 .12.03.12.1a.11.11 0 0 1-.09.1l.06.09a.38.38 0 0 0 .08.08v.01h-.07c-.03 0-.06-.07-.13-.16h-.04v.12c0 .02.01.02.06.03v.01zm.12-.2h.05c.04 0 .06-.03.06-.09s-.03-.08-.07-.08h-.04z"})),a("path",{fill:"#fff",d:"M13.33 8.58a5.77 5.77 0 1 1 5.76 5.78 5.77 5.77 0 0 1-5.76-5.78"}),a("path",{fill:"#154a78",d:"M22.58 8.47a3.48 3.48 0 0 0-2.23-3.24v6.48a3.48 3.48 0 0 0 2.23-3.24zm-4.7 3.24V5.23a3.47 3.47 0 0 0 0 6.48zM19.1 3a5.48 5.48 0 1 0 5.47 5.48A5.47 5.47 0 0 0 19.11 3zm0 11.48a5.99 5.99 0 0 1-6.03-5.94A5.9 5.9 0 0 1 19.1 2.5h1.55a6.1 6.1 0 0 1 6.24 6.03 6.22 6.22 0 0 1-6.24 5.94z"})),ma=Fd;var Ld=({opacity:t=1})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:t},a("path",{fill:"#fff",d:"M0 0h40v26H0z"}),a("g",{"clip-path":"url(#a)"},a("g",{"clip-path":"url(#b)"},a("path",{fill:"#000",d:"M3.5 19.56a1.6 1.6 0 0 1 1.54-1.6h.06a1.52 1.52 0 0 1 1.42.77l-.43.25a1.02 1.02 0 0 0-.99-.59 1.13 1.13 0 0 0-1.14 1.11v.03a1.05 1.05 0 0 0 .99 1.14h.1a.94.94 0 0 0 1.04-.83H5.01v-.43h1.51v1.66h-.46v-.49l.03-.12a1.08 1.08 0 0 1-1.08.64 1.49 1.49 0 0 1-1.51-1.48v-.06Zm3.58-1.79h.46v3.33h-.46v-3.33Zm.92 2.2a1.2 1.2 0 1 1 .74 1.11A1.19 1.19 0 0 1 8 19.96Zm1.91 0a.74.74 0 1 0-1.48.06.72.72 0 0 0 .74.7.74.74 0 0 0 .74-.77Zm1.36.8v.33h-.46v-3.36h.46v1.4a.98.98 0 0 1 .77-.38 1.19 1.19 0 0 1 0 2.38.9.9 0 0 1-.77-.37Zm1.48-.8a.75.75 0 1 0-1.5-.04v.03a.76.76 0 1 0 1.5 0Zm.8.55c0-.46.28-.65.9-.74.43-.06.58-.1.58-.25s-.12-.37-.46-.37a.54.54 0 0 0-.58.43l-.44-.18a1.01 1.01 0 0 1 1.02-.65c.59 0 .96.3.96.86v1.48h-.43v-.33a.75.75 0 0 1-.74.4c-.5 0-.8-.28-.8-.65Zm1.33.06a.5.5 0 0 0 .19-.4v-.19c0 .1-.16.13-.5.16-.4.06-.55.15-.55.34 0 .15.15.28.37.28.18 0 .35-.07.49-.19Zm1.14-2.8h.46v3.32h-.46v-3.33Zm2.04.24h.5l1.53 2.34v-2.34h.47v3.12h-.47l-1.57-2.41v2.4h-.46v-3.11Zm2.96 1.94a1.18 1.18 0 0 1 1.17-1.2h.03a1.14 1.14 0 0 1 1.17 1.11v.25h-1.94a.77.77 0 0 0 .96.58c.2-.05.37-.17.49-.34l.37.22a1.18 1.18 0 0 1-1.05.56 1.15 1.15 0 0 1-1.2-1.11v-.07Zm.46-.21h1.45a.67.67 0 0 0-.7-.56.7.7 0 0 0-.75.56Zm2.56.61v-1.14h-.46v-.4h.46v-.5l.46-.3v.8h.62v.4h-.65v1.14c0 .25.13.37.31.37.12 0 .24-.03.34-.09v.43a.82.82 0 0 1-.37.1c-.46 0-.71-.25-.71-.8Zm1.36-1.54h.46l.52 1.67.62-1.67h.43l.62 1.67.55-1.67h.47l-.8 2.28h-.44l-.61-1.66-.65 1.7h-.46l-.71-2.32Zm3.88 1.14a1.2 1.2 0 1 1 .74 1.12 1.19 1.19 0 0 1-.74-1.12Zm1.92 0a.74.74 0 1 0-1.48.07.72.72 0 0 0 .74.7.74.74 0 0 0 .74-.77Zm.89-1.14h.46v.4a.72.72 0 0 1 .65-.4h.19v.46h-.28c-.37 0-.56.16-.56.6v1.22h-.46v-2.28Zm2.59 1.24-.4.43v.58h-.46v-3.3h.46V20l1.08-1.17h.55l-.89.96.92 1.32h-.52l-.74-1.04ZM5.2 10.16H3.72v5.18H5.2c.66.03 1.32-.18 1.85-.59a2.56 2.56 0 0 0 .92-1.97c0-1.54-1.14-2.62-2.77-2.62Zm1.2 3.88c-.3.28-.74.4-1.39.4h-.28v-3.39h.28a1.88 1.88 0 0 1 1.39.43 1.73 1.73 0 0 1 .55 1.3c0 .48-.2.93-.55 1.26Zm2.03-3.88h1.02v5.18H8.43v-5.18Zm3.49 2c-.62-.22-.77-.37-.77-.65 0-.34.3-.58.74-.58a.97.97 0 0 1 .8.43l.53-.68a2.32 2.32 0 0 0-1.52-.59 1.52 1.52 0 0 0-1.6 1.42v.06c0 .71.34 1.08 1.26 1.42.25.08.49.18.71.31a.64.64 0 0 1 .31.53.75.75 0 0 1-.74.74h-.03a1.29 1.29 0 0 1-1.1-.68l-.66.61a2 2 0 0 0 1.8 1 1.68 1.68 0 0 0 1.78-1.7c-.03-.87-.37-1.24-1.51-1.64Zm1.82.59a2.66 2.66 0 0 0 2.65 2.68h.06c.44 0 .88-.1 1.27-.3v-1.18a1.54 1.54 0 0 1-1.2.55 1.69 1.69 0 0 1-1.73-1.63v-.15a1.72 1.72 0 0 1 1.66-1.8h.03a1.64 1.64 0 0 1 1.27.6v-1.15c-.38-.2-.8-.31-1.23-.3a2.69 2.69 0 0 0-2.78 2.68Zm11.97.9-1.4-3.5h-1.07l2.19 5.31h.52l2.25-5.3h-1.1l-1.4 3.48Zm2.96 1.69h2.83v-.87h-1.85v-1.41h1.8v-.87h-1.8v-1.14h1.85v-.9h-2.83v5.19Zm6.84-3.64c0-.96-.68-1.51-1.82-1.51h-1.48v5.18h1.02v-2.1h.12l1.4 2.07h1.23l-1.64-2.2a1.36 1.36 0 0 0 1.17-1.44Zm-2.03.86h-.31V11h.3c.62 0 .96.28.96.77.03.52-.3.8-.95.8Zm2.84-2.13c0-.09-.07-.15-.19-.15h-.15v.46h.12v-.15l.12.18h.13l-.13-.21c.06 0 .1-.06.1-.13Zm-.19.07-.03-.13h.03c.06 0 .1.03.1.06-.04.07-.07.07-.1.07Z"})),a("path",{fill:"#000",d:"M36.16 10.13a.4.4 0 0 0-.4.4.4.4 0 1 0 .8 0 .4.4 0 0 0-.4-.4Zm0 .74a.32.32 0 0 1-.34-.31.32.32 0 0 1 .65-.03.34.34 0 0 1-.3.34Z"}),a("path",{fill:"url(#c)",d:"M18.06 12.75a2.75 2.75 0 1 0 5.49 0 2.75 2.75 0 0 0-5.5 0Z"}),a("path",{fill:"url(#d)",d:"M18.06 12.75a2.75 2.75 0 1 0 5.49 0 2.75 2.75 0 0 0-5.5 0Z"}),a("mask",{id:"e",width:"6",height:"6",x:"18",y:"10",maskUnits:"userSpaceOnUse",style:"mask-type:luminance"},a("path",{fill:"#fff",d:"M18.06 12.75a2.74 2.74 0 1 0 5.49 0 2.74 2.74 0 0 0-5.5 0Z"})),a("g",{mask:"url(#e)"},a("path",{fill:"url(#f)",d:"M17.75 12.87a3.36 3.36 0 1 0 6.72 0 3.36 3.36 0 0 0-6.72 0Z"}))),a("g",{"clip-path":"url(#g)"},a("g",{"clip-path":"url(#h)"},a("path",{fill:"#000",d:"M3.5 19.56a1.6 1.6 0 0 1 1.54-1.6h.06a1.52 1.52 0 0 1 1.42.77l-.43.25a1.02 1.02 0 0 0-.99-.59 1.13 1.13 0 0 0-1.14 1.11v.03a1.05 1.05 0 0 0 .99 1.14h.1a.94.94 0 0 0 1.04-.83H5.01v-.43h1.51v1.66h-.46v-.49l.03-.12a1.08 1.08 0 0 1-1.08.64 1.49 1.49 0 0 1-1.51-1.48v-.06Zm3.58-1.79h.46v3.33h-.46v-3.33Zm.92 2.2a1.2 1.2 0 1 1 .74 1.11A1.19 1.19 0 0 1 8 19.96Zm1.91 0a.74.74 0 1 0-1.48.06.72.72 0 0 0 .74.7.74.74 0 0 0 .74-.77Zm1.36.8v.33h-.46v-3.36h.46v1.4a.98.98 0 0 1 .77-.38 1.19 1.19 0 0 1 0 2.38.9.9 0 0 1-.77-.37Zm1.48-.8a.75.75 0 1 0-1.5-.04v.03a.76.76 0 1 0 1.5 0Zm.8.55c0-.46.28-.65.9-.74.43-.06.58-.1.58-.25s-.12-.37-.46-.37a.54.54 0 0 0-.58.43l-.44-.18a1.01 1.01 0 0 1 1.02-.65c.59 0 .96.3.96.86v1.48h-.43v-.33a.75.75 0 0 1-.74.4c-.5 0-.8-.28-.8-.65Zm1.33.06a.5.5 0 0 0 .19-.4v-.19c0 .1-.16.13-.5.16-.4.06-.55.15-.55.34 0 .15.15.28.37.28.18 0 .35-.07.49-.19Zm1.14-2.8h.46v3.32h-.46v-3.33Zm2.04.24h.5l1.53 2.34v-2.34h.47v3.12h-.47l-1.57-2.41v2.4h-.46v-3.11Zm2.96 1.94a1.18 1.18 0 0 1 1.17-1.2h.03a1.14 1.14 0 0 1 1.17 1.11v.25h-1.94a.77.77 0 0 0 .96.58c.2-.05.37-.17.49-.34l.37.22a1.18 1.18 0 0 1-1.05.56 1.15 1.15 0 0 1-1.2-1.11v-.07Zm.46-.21h1.45a.67.67 0 0 0-.7-.56.7.7 0 0 0-.75.56Zm2.56.61v-1.14h-.46v-.4h.46v-.5l.46-.3v.8h.62v.4h-.65v1.14c0 .25.13.37.31.37.12 0 .24-.03.34-.09v.43a.82.82 0 0 1-.37.1c-.46 0-.71-.25-.71-.8Zm1.36-1.54h.46l.52 1.67.62-1.67h.43l.62 1.67.55-1.67h.47l-.8 2.28h-.44l-.61-1.66-.65 1.7h-.46l-.71-2.32Zm3.88 1.14a1.2 1.2 0 1 1 .74 1.12 1.19 1.19 0 0 1-.74-1.12Zm1.92 0a.74.74 0 1 0-1.48.07.72.72 0 0 0 .74.7.74.74 0 0 0 .74-.77Zm.89-1.14h.46v.4a.72.72 0 0 1 .65-.4h.19v.46h-.28c-.37 0-.56.16-.56.6v1.22h-.46v-2.28Zm2.59 1.24-.4.43v.58h-.46v-3.3h.46V20l1.08-1.17h.55l-.89.96.92 1.32h-.52l-.74-1.04ZM5.2 10.16H3.72v5.18H5.2c.66.03 1.32-.18 1.85-.59a2.56 2.56 0 0 0 .92-1.97c0-1.54-1.14-2.62-2.77-2.62Zm1.2 3.88c-.3.28-.74.4-1.39.4h-.28v-3.39h.28a1.88 1.88 0 0 1 1.39.43 1.73 1.73 0 0 1 .55 1.3c0 .48-.2.93-.55 1.26Zm2.03-3.88h1.02v5.18H8.43v-5.18Zm3.49 2c-.62-.22-.77-.37-.77-.65 0-.34.3-.58.74-.58a.97.97 0 0 1 .8.43l.53-.68a2.32 2.32 0 0 0-1.52-.59 1.52 1.52 0 0 0-1.6 1.42v.06c0 .71.34 1.08 1.26 1.42.25.08.49.18.71.31a.64.64 0 0 1 .31.53.75.75 0 0 1-.74.74h-.03a1.29 1.29 0 0 1-1.1-.68l-.66.61a2 2 0 0 0 1.8 1 1.68 1.68 0 0 0 1.78-1.7c-.03-.87-.37-1.24-1.51-1.64Zm1.82.59a2.66 2.66 0 0 0 2.65 2.68h.06c.44 0 .88-.1 1.27-.3v-1.18a1.54 1.54 0 0 1-1.2.55 1.69 1.69 0 0 1-1.73-1.63v-.15a1.72 1.72 0 0 1 1.66-1.8h.03a1.64 1.64 0 0 1 1.27.6v-1.15c-.38-.2-.8-.31-1.23-.3a2.69 2.69 0 0 0-2.78 2.68Zm11.97.9-1.4-3.5h-1.07l2.19 5.31h.52l2.25-5.3h-1.1l-1.4 3.48Zm2.96 1.69h2.83v-.87h-1.85v-1.41h1.8v-.87h-1.8v-1.14h1.85v-.9h-2.83v5.19Zm6.84-3.64c0-.96-.68-1.51-1.82-1.51h-1.48v5.18h1.02v-2.1h.12l1.4 2.07h1.23l-1.64-2.2a1.36 1.36 0 0 0 1.17-1.44Zm-2.03.86h-.31V11h.3c.62 0 .96.28.96.77.03.52-.3.8-.95.8Zm2.84-2.13c0-.09-.07-.15-.19-.15h-.15v.46h.12v-.15l.12.18h.13l-.13-.21c.06 0 .1-.06.1-.13Zm-.19.07-.03-.13h.03c.06 0 .1.03.1.06-.04.07-.07.07-.1.07Z"})),a("path",{fill:"#000",d:"M36.16 10.13a.4.4 0 0 0-.4.4.4.4 0 1 0 .8 0 .4.4 0 0 0-.4-.4Zm0 .74a.32.32 0 0 1-.34-.31.32.32 0 0 1 .65-.03.34.34 0 0 1-.3.34Z"}),a("path",{fill:"url(#i)",d:"M18.06 12.75a2.75 2.75 0 1 0 5.49 0 2.75 2.75 0 0 0-5.5 0Z"}),a("path",{fill:"url(#j)",d:"M18.06 12.75a2.75 2.75 0 1 0 5.49 0 2.75 2.75 0 0 0-5.5 0Z"}),a("mask",{id:"k",width:"6",height:"6",x:"18",y:"10",maskUnits:"userSpaceOnUse",style:"mask-type:luminance"},a("path",{fill:"#fff",d:"M18.06 12.75a2.74 2.74 0 1 0 5.49 0 2.74 2.74 0 0 0-5.5 0Z"})),a("g",{mask:"url(#k)"},a("path",{fill:"url(#l)",d:"M17.75 12.87a3.36 3.36 0 1 0 6.72 0 3.36 3.36 0 0 0-6.72 0Z"}))),a("defs",null,a("linearGradient",{id:"c",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#F59F00"}),a("stop",{offset:".19","stop-color":"#F49B00"}),a("stop",{offset:".37","stop-color":"#F29101"}),a("stop",{offset:".5","stop-color":"#F08302"}),a("stop",{offset:".6","stop-color":"#EE7905"}),a("stop",{offset:".76","stop-color":"#EC7008"}),a("stop",{offset:"1","stop-color":"#EC6D09"})),a("linearGradient",{id:"d",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),a("stop",{offset:".04","stop-color":"#F48C1C","stop-opacity":".08"}),a("stop",{offset:".2","stop-color":"#F77314","stop-opacity":".32"}),a("stop",{offset:".35","stop-color":"#F95D0E","stop-opacity":".53"}),a("stop",{offset:".5","stop-color":"#FB4B09","stop-opacity":".7"}),a("stop",{offset:".64","stop-color":"#FD3D05","stop-opacity":".83"}),a("stop",{offset:".77","stop-color":"#FE3302","stop-opacity":".92"}),a("stop",{offset:".9","stop-color":"#FF2D01","stop-opacity":".98"}),a("stop",{offset:"1","stop-color":"#FF2B00"})),a("radialGradient",{id:"f",cx:"0",cy:"0",r:"1",gradientTransform:"rotate(4.24 -167.26 291.02) scale(3.3208)",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),a("stop",{offset:".45","stop-color":"#EA8D1D","stop-opacity":".05"}),a("stop",{offset:".66","stop-color":"#CA7618","stop-opacity":".2"}),a("stop",{offset:".83","stop-color":"#924D10","stop-opacity":".48"}),a("stop",{offset:".96","stop-color":"#441304","stop-opacity":".87"}),a("stop",{offset:".99","stop-color":"#2F0401","stop-opacity":".97"})),a("linearGradient",{id:"i",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#F59F00"}),a("stop",{offset:".19","stop-color":"#F49B00"}),a("stop",{offset:".37","stop-color":"#F29101"}),a("stop",{offset:".5","stop-color":"#F08302"}),a("stop",{offset:".6","stop-color":"#EE7905"}),a("stop",{offset:".76","stop-color":"#EC7008"}),a("stop",{offset:"1","stop-color":"#EC6D09"})),a("linearGradient",{id:"j",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),a("stop",{offset:".04","stop-color":"#F48C1C","stop-opacity":".08"}),a("stop",{offset:".2","stop-color":"#F77314","stop-opacity":".32"}),a("stop",{offset:".35","stop-color":"#F95D0E","stop-opacity":".53"}),a("stop",{offset:".5","stop-color":"#FB4B09","stop-opacity":".7"}),a("stop",{offset:".64","stop-color":"#FD3D05","stop-opacity":".83"}),a("stop",{offset:".77","stop-color":"#FE3302","stop-opacity":".92"}),a("stop",{offset:".9","stop-color":"#FF2D01","stop-opacity":".98"}),a("stop",{offset:"1","stop-color":"#FF2B00"})),a("radialGradient",{id:"l",cx:"0",cy:"0",r:"1",gradientTransform:"rotate(4.24 -167.26 291.02) scale(3.3208)",gradientUnits:"userSpaceOnUse"},a("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),a("stop",{offset:".45","stop-color":"#EA8D1D","stop-opacity":".05"}),a("stop",{offset:".66","stop-color":"#CA7618","stop-opacity":".2"}),a("stop",{offset:".83","stop-color":"#924D10","stop-opacity":".48"}),a("stop",{offset:".96","stop-color":"#441304","stop-opacity":".87"}),a("stop",{offset:".99","stop-color":"#2F0401","stop-opacity":".97"})),a("clipPath",{id:"a"},a("path",{fill:"#fff",d:"M0 0h33v5.55H0z",transform:"translate(3.5 10)"})),a("clipPath",{id:"b"},a("path",{fill:"#fff",d:"M0 0h33v5.86H0z",transform:"translate(3.5 10)"})),a("clipPath",{id:"g"},a("path",{fill:"#fff",d:"M0 0h33v5.55H0z",transform:"translate(3.5 10)"})),a("clipPath",{id:"h"},a("path",{fill:"#fff",d:"M0 0h33v5.86H0z",transform:"translate(3.5 10)"})))),ha=Ld;var Ud=({opacity:t=1})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 26",width:"40",height:"26",opacity:t},a("rect",{width:"45.3",height:"27",x:"-3.3",y:"-.79",fill:"#fff",rx:"2.82"}),a("path",{fill:"#01798a",d:"M27.27-.79a4.06 4.06 0 0 0-3.6 2.8l-4.96 23.42a2.14 2.14 0 0 0 2 2.8h18.35a2.81 2.81 0 0 0 2.8-2.82V1.15A2.25 2.25 0 0 0 40-.8"}),a("rect",{width:"20.38",height:"29.02",x:"-4",y:"-.79",fill:"#dc1f2b",rx:"2.82"}),a("path",{fill:"#1a4580",d:"M24.37 2.02a3.98 3.98 0 0 1 3.48-2.8H14.18a3.97 3.97 0 0 0-3.5 2.8l-4.85 23.4a2.13 2.13 0 0 0 1.94 2.81h13.7a2.13 2.13 0 0 1-1.94-2.8z"}),a("path",{fill:"#fff",d:"M16.63 15.04h.18a.32.32 0 0 0 .32-.17l.46-.7h1.24l-.26.47h1.49l-.2.7H18.1a.82.82 0 0 1-.75.44h-.92zm-.2 1h3.25l-.21.77h-1.3l-.2.74h1.27l-.21.77h-1.27l-.3 1.09c-.07.18.02.26.29.24h1.03l-.19.71H16.6q-.57 0-.39-.65l.38-1.4h-.81l.2-.76h.82l.2-.74h-.78l.2-.76zm5.19-1.87-.06.45a2.37 2.37 0 0 1 1.18-.47h2.05l-.78 2.88q-.1.5-.84.5h-2.34l-.54 2.01c-.03.11.01.17.13.17h.46l-.17.62h-1.17q-.67 0-.56-.4l1.54-5.76zm1.74.81h-1.84l-.22.78a1.52 1.52 0 0 1 .82-.23h1.1zm-.67 1.8c.14.02.22-.03.22-.16l.12-.4h-1.84l-.16.57zm-1.24.93h1.06l-.02.47h.29c.14 0 .2-.05.2-.14l.1-.3h.87l-.11.44a.76.76 0 0 1-.8.57h-.56v.8c-.01.12.1.18.33.18h.53l-.17.63H21.9c-.36.02-.53-.15-.53-.52zM8.6 10.34a2.62 2.62 0 0 1-1 1.64 3.24 3.24 0 0 1-1.98.58 2.16 2.16 0 0 1-1.68-.59 1.54 1.54 0 0 1-.37-1.06 2.86 2.86 0 0 1 .06-.57l.87-4.2h1.3l-.85 4.15a1.35 1.35 0 0 0-.04.32.82.82 0 0 0 .16.52.89.89 0 0 0 .75.3 1.56 1.56 0 0 0 1-.3 1.37 1.37 0 0 0 .5-.84l.84-4.15h1.3zm5.47-1.65h1.02l-.8 3.74h-1.02zm.32-1.37h1.03l-.2.91H14.2l.19-.9M16 12.15a1.39 1.39 0 0 1-.41-1.05 2.45 2.45 0 0 1 .01-.25l.04-.27a2.55 2.55 0 0 1 .78-1.45 2.07 2.07 0 0 1 1.43-.54 1.5 1.5 0 0 1 1.1.39 1.4 1.4 0 0 1 .4 1.06 2.59 2.59 0 0 1-.02.26l-.05.28a2.48 2.48 0 0 1-.77 1.42 2.08 2.08 0 0 1-1.43.53 1.5 1.5 0 0 1-1.09-.38m1.95-.74a1.84 1.84 0 0 0 .38-.9.58.58 0 0 0 .03-.19 1.74 1.74 0 0 0 .01-.17.76.76 0 0 0-.17-.54.64.64 0 0 0-.5-.2.89.89 0 0 0-.7.3 1.9 1.9 0 0 0-.38.92l-.03.18a1.36 1.36 0 0 0-.01.17.75.75 0 0 0 .17.54.64.64 0 0 0 .5.18.9.9 0 0 0 .7-.3m8.02 3.67.25-.87h1.24l-.05.32a3.1 3.1 0 0 1 1.09-.32h1.54l-.25.87h-.24l-1.16 4.12h.24l-.23.82h-.24l-.1.36h-1.2l.1-.36h-2.38l.23-.82h.24l1.16-4.12zm1.34 0L27 16.2a5.13 5.13 0 0 1 1-.27c.1-.4.24-.85.24-.85zm-.46 1.64-.32 1.17a3.44 3.44 0 0 1 1.01-.33l.24-.84zm.23 2.48.24-.84h-.93l-.24.84zm3.01-5.05h1.17l.05.44c0 .11.06.16.2.16h.2l-.2.74h-.87c-.32.02-.5-.1-.5-.38zm-.34 1.59h3.79l-.23.79h-1.2l-.2.74h1.2l-.23.79h-1.34l-.3.46h.65l.16.93c.01.09.1.13.23.13h.2l-.2.77h-.73c-.37.02-.57-.1-.58-.38l-.18-.85-.6.9a.65.65 0 0 1-.65.36h-1.1l.22-.77h.34a.46.46 0 0 0 .36-.19l.94-1.36h-1.2l.22-.8h1.3l.21-.73h-1.3l.22-.8zM9.8 8.69h.92l-.1.54.12-.16a1.43 1.43 0 0 1 1.1-.48 1 1 0 0 1 .83.34 1.15 1.15 0 0 1 .14.95l-.5 2.56h-.95l.46-2.32a.74.74 0 0 0-.04-.53.44.44 0 0 0-.4-.17.88.88 0 0 0-.62.23 1.14 1.14 0 0 0-.34.63L10 12.44h-.94zm10.55 0h.92l-.1.54.13-.16a1.43 1.43 0 0 1 1.08-.48.99.99 0 0 1 .85.34 1.14 1.14 0 0 1 .13.95l-.5 2.56h-.95l.46-2.32a.75.75 0 0 0-.04-.53.45.45 0 0 0-.4-.17.89.89 0 0 0-.62.23 1.12 1.12 0 0 0-.33.63l-.43 2.16h-.94zm4.55-2.33h2.67a1.8 1.8 0 0 1 1.19.35 1.25 1.25 0 0 1 .4 1v.02a3.77 3.77 0 0 1-.06.59 2.38 2.38 0 0 1-.81 1.4 2.29 2.29 0 0 1-1.5.52h-1.44l-.44 2.2h-1.24zm.67 2.82h1.19a1.14 1.14 0 0 0 .73-.21 1.14 1.14 0 0 0 .36-.67l.03-.15v-.13a.52.52 0 0 0-.22-.47 1.35 1.35 0 0 0-.72-.15h-1zm9.15 3.98a5.91 5.91 0 0 1-.98 1.56 1.99 1.99 0 0 1-1.7.71l.08-.64c.89-.27 1.36-1.51 1.64-2.06l-.33-4.03.68-.01h.58l.06 2.53 1.07-2.53h1.09zM31.68 9l-.43.3a1.35 1.35 0 0 0-1.66-.21c-1.08.5-1.98 4.4 1 3.11l.17.2 1.17.04.77-3.54zm-.66 1.92c-.2.56-.61.94-.94.83-.33-.1-.45-.64-.26-1.2.19-.57.61-.94.94-.83.33.1.45.64.26 1.2"})),fa=Ud;$(`.straumur__tooltip__content{position:absolute;z-index:50;padding:var(--straumur__space-s);border-radius:var(--straumur__border-radius-s);right:40%;top:100%;width:max-content;color:var(--straumur__color-white);background-color:var(--straumur__color-primary);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}
4
4
  `);var jt=({children:t,content:e})=>{let[o,r]=U(!1),s=le(null);return a("div",{style:{position:"relative"}},a("div",{ref:s,onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)}},t),o&&s&&a("div",{className:"straumur__tooltip__content"},e))};function Rs(t){let e=()=>window.matchMedia(t).matches,[o,r]=U(e);return me(()=>{let s=window.matchMedia(t),n=i=>r(i.matches);return r(s.matches),s.addEventListener("change",n),()=>{s.removeEventListener("change",n)}},[t]),o}function rr({brands:t,brandHidden:e=[],limit:o=3}){let r=Rs("(max-width: 380px)"),n=Rs("(max-width: 335px)")?1:r?2:o,i=t.filter(c=>{let{brand:d}=c;return!e.some(u=>u.brand===d)});return a(Q,null,i.map(({brand:c},d)=>d>=Math.min(o,n)?d===Math.min(o,n)?a(jt,{content:a("span",{style:{display:"flex",gap:"4px",overflow:"visible"}},i.slice(Math.min(o,n)).map(({brand:p})=>a(or,{key:p,brand:p})))},a("span",{key:c,className:"straumur__render-brand-icons__overflow"},"+",i.length-Math.min(o,n))):null:a(or,{key:c,brand:c})))}var or=({brand:t,defaultToBrandName:e=!0})=>{switch(t){case"visa":return a(ca,null);case"mc":return a(la,null);case"maestro":return a(da,null);case"amex":return a(pa,null);case"jcb":return a(ua,null);case"diners":return a(ma,null);case"discover":return a(ha,null);case"cup":return a(fa,null);default:return e?a("span",null,t):a(Q,null)}};var ir,W,Ca,Rt,_a,va,Ts,xs,As,Is,Ea,mo={},ba=[],Bd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,lr=Array.isArray;function rt(t,e){for(var o in e)t[o]=e[o];return t}function Sa(t){var e=t.parentNode;e&&e.removeChild(t)}function f(t,e,o){var r,s,n,i={};for(n in e)n=="key"?r=e[n]:n=="ref"?s=e[n]:i[n]=e[n];if(arguments.length>2&&(i.children=arguments.length>3?ir.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)i[n]===void 0&&(i[n]=t.defaultProps[n]);return nr(t,i,r,s,null)}function nr(t,e,o,r,s){var n={type:t,props:e,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++Ca,__i:-1,__u:0};return s==null&&W.vnode!=null&&W.vnode(n),n}function st(t){return t.children}function G(t,e){this.props=t,this.context=e}function Tt(t,e){if(e==null)return t.__?Tt(t.__,t.__i+1):null;for(var o;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null)return o.__e;return typeof t.type=="function"?Tt(t):null}function Pa(t){var e,o;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null){t.__e=t.__c.base=o.__e;break}return Pa(t)}}function Ds(t){(!t.__d&&(t.__d=!0)&&Rt.push(t)&&!ar.__r++||_a!==W.debounceRendering)&&((_a=W.debounceRendering)||va)(ar)}function ar(){var t,e,o,r,s,n,i,c;for(Rt.sort(Ts);t=Rt.shift();)t.__d&&(e=Rt.length,r=void 0,n=(s=(o=t).__v).__e,i=[],c=[],o.__P&&((r=rt({},s)).__v=s.__v+1,W.vnode&&W.vnode(r),Ns(o.__P,r,s,o.__n,o.__P.namespaceURI,32&s.__u?[n]:null,i,n??Tt(s),!!(32&s.__u),c),r.__v=s.__v,r.__.__k[r.__i]=r,Aa(i,r,c),r.__e!=n&&Pa(r)),Rt.length>e&&Rt.sort(Ts));ar.__r=0}function Ra(t,e,o,r,s,n,i,c,d,p,u){var l,h,m,g,E,v=r&&r.__k||ba,y=e.length;for(o.__d=d,Vd(o,e,v),d=o.__d,l=0;l<y;l++)(m=o.__k[l])!=null&&typeof m!="boolean"&&typeof m!="function"&&(h=m.__i===-1?mo:v[m.__i]||mo,m.__i=l,Ns(t,m,h,s,n,i,c,d,p,u),g=m.__e,m.ref&&h.ref!=m.ref&&(h.ref&&Os(h.ref,null,m),u.push(m.ref,m.__c||g,m)),E==null&&g!=null&&(E=g),65536&m.__u||h.__k===m.__k?(d&&typeof m.type=="string"&&!t.contains(d)&&(d=Tt(h)),d=Ta(m,d,t)):typeof m.type=="function"&&m.__d!==void 0?d=m.__d:g&&(d=g.nextSibling),m.__d=void 0,m.__u&=-196609);o.__d=d,o.__e=E}function Vd(t,e,o){var r,s,n,i,c,d=e.length,p=o.length,u=p,l=0;for(t.__k=[],r=0;r<d;r++)i=r+l,(s=t.__k[r]=(s=e[r])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?nr(null,s,null,null,null):lr(s)?nr(st,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?nr(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=t,s.__b=t.__b+1,c=Hd(s,o,i,u),s.__i=c,n=null,c!==-1&&(u--,(n=o[c])&&(n.__u|=131072)),n==null||n.__v===null?(c==-1&&l--,typeof s.type!="function"&&(s.__u|=65536)):c!==i&&(c==i-1?l=c-i:c==i+1?l++:c>i?u>d-i?l+=c-i:l--:c<i&&l++,c!==r+l&&(s.__u|=65536))):(n=o[i])&&n.key==null&&n.__e&&!(131072&n.__u)&&(n.__e==t.__d&&(t.__d=Tt(n)),ws(n,n,!1),o[i]=null,u--);if(u)for(r=0;r<p;r++)(n=o[r])!=null&&!(131072&n.__u)&&(n.__e==t.__d&&(t.__d=Tt(n)),ws(n,n))}function Ta(t,e,o){var r,s;if(typeof t.type=="function"){for(r=t.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=t,e=Ta(r[s],e,o));return e}t.__e!=e&&(o.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function ks(t,e){return e=e||[],t==null||typeof t=="boolean"||(lr(t)?t.some(function(o){ks(o,e)}):e.push(t)),e}function Hd(t,e,o,r){var s=t.key,n=t.type,i=o-1,c=o+1,d=e[o];if(d===null||d&&s==d.key&&n===d.type&&!(131072&d.__u))return o;if(r>(d==null||131072&d.__u?0:1))for(;i>=0||c<e.length;){if(i>=0){if((d=e[i])&&!(131072&d.__u)&&s==d.key&&n===d.type)return i;i--}if(c<e.length){if((d=e[c])&&!(131072&d.__u)&&s==d.key&&n===d.type)return c;c++}}return-1}function ya(t,e,o){e[0]==="-"?t.setProperty(e,o??""):t[e]=o==null?"":typeof o!="number"||Bd.test(e)?o:o+"px"}function sr(t,e,o,r,s){var n;e:if(e==="style")if(typeof o=="string")t.style.cssText=o;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)o&&e in o||ya(t.style,e,"");if(o)for(e in o)r&&o[e]===r[e]||ya(t.style,e,o[e])}else if(e[0]==="o"&&e[1]==="n")n=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+n]=o,o?r?o.u=r.u:(o.u=xs,t.addEventListener(e,n?Is:As,n)):t.removeEventListener(e,n?Is:As,n);else{if(s=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&o==1?"":o))}}function ga(t){return function(e){if(this.l){var o=this.l[e.type+t];if(e.t==null)e.t=xs++;else if(e.t<o.u)return;return o(W.event?W.event(e):e)}}}function Ns(t,e,o,r,s,n,i,c,d,p){var u,l,h,m,g,E,v,y,_,V,P,b,F,R,Y,D,T=e.type;if(e.constructor!==void 0)return null;128&o.__u&&(d=!!(32&o.__u),n=[c=e.__e=o.__e]),(u=W.__b)&&u(e);e:if(typeof T=="function")try{if(y=e.props,_="prototype"in T&&T.prototype.render,V=(u=T.contextType)&&r[u.__c],P=u?V?V.props.value:u.__:r,o.__c?v=(l=e.__c=o.__c).__=l.__E:(_?e.__c=l=new T(y,P):(e.__c=l=new G(y,P),l.constructor=T,l.render=jd),V&&V.sub(l),l.props=y,l.state||(l.state={}),l.context=P,l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),_&&l.__s==null&&(l.__s=l.state),_&&T.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=rt({},l.__s)),rt(l.__s,T.getDerivedStateFromProps(y,l.__s))),m=l.props,g=l.state,l.__v=e,h)_&&T.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),_&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(_&&T.getDerivedStateFromProps==null&&y!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,P),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,P)===!1||e.__v===o.__v)){for(e.__v!==o.__v&&(l.props=y,l.state=l.__s,l.__d=!1),e.__e=o.__e,e.__k=o.__k,e.__k.forEach(function(w){w&&(w.__=e)}),b=0;b<l._sb.length;b++)l.__h.push(l._sb[b]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,P),_&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,g,E)})}if(l.context=P,l.props=y,l.__P=t,l.__e=!1,F=W.__r,R=0,_){for(l.state=l.__s,l.__d=!1,F&&F(e),u=l.render(l.props,l.state,l.context),Y=0;Y<l._sb.length;Y++)l.__h.push(l._sb[Y]);l._sb=[]}else do l.__d=!1,F&&F(e),u=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++R<25);l.state=l.__s,l.getChildContext!=null&&(r=rt(rt({},r),l.getChildContext())),_&&!h&&l.getSnapshotBeforeUpdate!=null&&(E=l.getSnapshotBeforeUpdate(m,g)),Ra(t,lr(D=u!=null&&u.type===st&&u.key==null?u.props.children:u)?D:[D],e,o,r,s,n,i,c,d,p),l.base=e.__e,e.__u&=-161,l.__h.length&&i.push(l),v&&(l.__E=l.__=null)}catch(w){e.__v=null,d||n!=null?(e.__e=c,e.__u|=d?160:32,n[n.indexOf(c)]=null):(e.__e=o.__e,e.__k=o.__k),W.__e(w,e,o)}else n==null&&e.__v===o.__v?(e.__k=o.__k,e.__e=o.__e):e.__e=Yd(o.__e,e,o,r,s,n,i,d,p);(u=W.diffed)&&u(e)}function Aa(t,e,o){e.__d=void 0;for(var r=0;r<o.length;r++)Os(o[r],o[++r],o[++r]);W.__c&&W.__c(e,t),t.some(function(s){try{t=s.__h,s.__h=[],t.some(function(n){n.call(s)})}catch(n){W.__e(n,s.__v)}})}function Yd(t,e,o,r,s,n,i,c,d){var p,u,l,h,m,g,E,v=o.props,y=e.props,_=e.type;if(_==="svg"?s="http://www.w3.org/2000/svg":_==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),n!=null){for(p=0;p<n.length;p++)if((m=n[p])&&"setAttribute"in m==!!_&&(_?m.localName===_:m.nodeType===3)){t=m,n[p]=null;break}}if(t==null){if(_===null)return document.createTextNode(y);t=document.createElementNS(s,_,y.is&&y),n=null,c=!1}if(_===null)v===y||c&&t.data===y||(t.data=y);else{if(n=n&&ir.call(t.childNodes),v=o.props||mo,!c&&n!=null)for(v={},p=0;p<t.attributes.length;p++)v[(m=t.attributes[p]).name]=m.value;for(p in v)if(m=v[p],p!="children"){if(p=="dangerouslySetInnerHTML")l=m;else if(p!=="key"&&!(p in y)){if(p=="value"&&"defaultValue"in y||p=="checked"&&"defaultChecked"in y)continue;sr(t,p,null,m,s)}}for(p in y)m=y[p],p=="children"?h=m:p=="dangerouslySetInnerHTML"?u=m:p=="value"?g=m:p=="checked"?E=m:p==="key"||c&&typeof m!="function"||v[p]===m||sr(t,p,m,v[p],s);if(u)c||l&&(u.__html===l.__html||u.__html===t.innerHTML)||(t.innerHTML=u.__html),e.__k=[];else if(l&&(t.innerHTML=""),Ra(t,lr(h)?h:[h],e,o,r,_==="foreignObject"?"http://www.w3.org/1999/xhtml":s,n,i,n?n[0]:o.__k&&Tt(o,0),c,d),n!=null)for(p=n.length;p--;)n[p]!=null&&Sa(n[p]);c||(p="value",g!==void 0&&(g!==t[p]||_==="progress"&&!g||_==="option"&&g!==v[p])&&sr(t,p,g,v[p],s),p="checked",E!==void 0&&E!==t[p]&&sr(t,p,E,v[p],s))}return t}function Os(t,e,o){try{typeof t=="function"?t(e):t.current=e}catch(r){W.__e(r,o)}}function ws(t,e,o){var r,s;if(W.unmount&&W.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Os(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){W.__e(n,e)}r.base=r.__P=null}if(r=t.__k)for(s=0;s<r.length;s++)r[s]&&ws(r[s],e,o||typeof t.type!="function");o||t.__e==null||Sa(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function jd(t,e,o){return this.constructor(t,o)}function Ms(t,e,o){var r,s,n;W.__&&W.__(t,e),r=e.__k,s=[],n=[],Ns(e,t=e.__k=f(st,null,[t]),r||mo,mo,e.namespaceURI,r?null:e.firstChild?ir.call(e.childNodes):null,s,r?r.__e:e.firstChild,!1,n),Aa(s,t,n)}function Ia(t,e){var o={__c:e="__cC"+Ea++,__:t,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,n;return this.getChildContext||(s=[],(n={})[e]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(function(c){c.__e=!0,Ds(c)})},this.sub=function(i){s.push(i);var c=i.componentWillUnmount;i.componentWillUnmount=function(){s&&s.splice(s.indexOf(i),1),c&&c.call(i)}}),r.children}};return o.Provider.__=o.Consumer.contextType=o}ir=ba.slice,W={__e:function(t,e,o,r){for(var s,n,i;e=e.__;)if((s=e.__c)&&!s.__)try{if((n=s.constructor)&&n.getDerivedStateFromError!=null&&(s.setState(n.getDerivedStateFromError(t)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,r||{}),i=s.__d),i)return s.__E=s}catch(c){t=c}throw t}},Ca=0,G.prototype.setState=function(t,e){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=rt({},this.state),typeof t=="function"&&(t=t(rt({},o),this.props)),t&&rt(o,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ds(this))},G.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ds(this))},G.prototype.render=st,Rt=[],va=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ts=function(t,e){return t.__v.__b-e.__v.__b},ar.__r=0,xs=0,As=ga(!1),Is=ga(!0),Ea=0;var Gt,J,Fs,Da,ho=0,La=[],ae=W,wa=ae.__b,xa=ae.__r,ka=ae.diffed,Na=ae.__c,Oa=ae.unmount,Ma=ae.__;function dr(t,e){ae.__h&&ae.__h(J,t,ho||e),ho=0;var o=J.__H||(J.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({}),o.__[t]}function ye(t){return ho=1,Gd(Ha,t)}function Gd(t,e,o){var r=dr(Gt++,2);if(r.t=t,!r.__c&&(r.__=[o?o(e):Ha(void 0,e),function(c){var d=r.__N?r.__N[0]:r.__[0],p=r.t(d,c);d!==p&&(r.__N=[p,r.__[1]],r.__c.setState({}))}],r.__c=J,!J.u)){var s=function(c,d,p){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(h){return!!h.__c});if(u.every(function(h){return!h.__N}))return!n||n.call(this,c,d,p);var l=!1;return u.forEach(function(h){if(h.__N){var m=h.__[0];h.__=h.__N,h.__N=void 0,m!==h.__[0]&&(l=!0)}}),!(!l&&r.__c.props===c)&&(!n||n.call(this,c,d,p))};J.u=!0;var n=J.shouldComponentUpdate,i=J.componentWillUpdate;J.componentWillUpdate=function(c,d,p){if(this.__e){var u=n;n=void 0,s(c,d,p),n=u}i&&i.call(this,c,d,p)},J.shouldComponentUpdate=s}return r.__N||r.__}function We(t,e){var o=dr(Gt++,3);!ae.__s&&Va(o.__H,e)&&(o.__=t,o.i=e,J.__H.__h.push(o))}function nt(t){return ho=5,pr(function(){return{current:t}},[])}function pr(t,e){var o=dr(Gt++,7);return Va(o.__H,e)&&(o.__=t(),o.__H=e,o.__h=t),o.__}function Ua(t,e){return ho=8,pr(function(){return t},e)}function Ba(t){var e=J.context[t.__c],o=dr(Gt++,9);return o.c=t,e?(o.__==null&&(o.__=!0,e.sub(J)),e.props.value):t.__}function zd(){for(var t;t=La.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(cr),t.__H.__h.forEach(Ls),t.__H.__h=[]}catch(e){t.__H.__h=[],ae.__e(e,t.__v)}}ae.__b=function(t){J=null,wa&&wa(t)},ae.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Ma&&Ma(t,e)},ae.__r=function(t){xa&&xa(t),Gt=0;var e=(J=t.__c).__H;e&&(Fs===J?(e.__h=[],J.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.i=o.__N=void 0})):(e.__h.forEach(cr),e.__h.forEach(Ls),e.__h=[],Gt=0)),Fs=J},ae.diffed=function(t){ka&&ka(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(La.push(e)!==1&&Da===ae.requestAnimationFrame||((Da=ae.requestAnimationFrame)||$d)(zd)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.i=void 0})),Fs=J=null},ae.__c=function(t,e){e.some(function(o){try{o.__h.forEach(cr),o.__h=o.__h.filter(function(r){return!r.__||Ls(r)})}catch(r){e.some(function(s){s.__h&&(s.__h=[])}),e=[],ae.__e(r,o.__v)}}),Na&&Na(t,e)},ae.unmount=function(t){Oa&&Oa(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(r){try{cr(r)}catch(s){e=s}}),o.__H=void 0,e&&ae.__e(e,o.__v))};var Fa=typeof requestAnimationFrame=="function";function $d(t){var e,o=function(){clearTimeout(r),Fa&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(o,100);Fa&&(e=requestAnimationFrame(o))}function cr(t){var e=J,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),J=e}function Ls(t){var e=J;t.__c=t.__(),J=e}function Va(t,e){return!t||t.length!==e.length||e.some(function(o,r){return o!==t[r]})}function Ha(t,e){return typeof e=="function"?e(t):e}var Ya="encrypted",k="encryptedCardNumber",O="encryptedExpiryDate",L="encryptedExpiryMonth",I="encryptedExpiryYear",x="encryptedSecurityCode",fe="encryptedPassword",fo="encryptedSecurityCode3digits",_o="encryptedSecurityCode4digits",yo="giftcard",ja="6.0.0",At=["amex","mc","visa"],Ga=[yo],Kd=[k,O,L,I,x,fe],ur=Kd,za=["bcmc"],$a="required",mr="optional",hr="hidden",Le=$a,go=mr,Co=hr,De=$a,vo=mr,It=hr,Ka="data-cse",Wa="data-info",Za="data-uid",qa=["accel","pulse","star","nyce"];var Dt={[k]:"cardNumber",[O]:"expiryDate",[x]:"securityCode",[L]:"expiryMonth",[I]:"expiryYear",[fe]:"password",[fo]:"securityCodeThreeDigits",[_o]:"securityCodeFourDigits"},Xa=6e3;var we=(t,e)=>e.split(".").reduce((o,r)=>o&&o[r]?o[r]:void 0,t);var Ze="field.error.required";var fr="invalid.format.expects",Ja="creditCard.holderName.invalid",Qa="creditCard.taxNumber.invalid",ei="boleto.socialSecurityNumber.invalid",wt=(function(t){return t.CC_NUM="cc.num",t.CC_DAT="cc.dat",t.CC_MTH="cc.mth",t.CC_YR="cc.yr",t.CC_CVC="cc.cvc",t.KCP_PWD="kcp.pwd",t})({}),zt=(function(t){return t.ERROR_MSG_INCOMPLETE_FIELD="err.gen.9100",t.ERROR_MSG_INVALID_FIELD="err.gen.9101",t.ERROR_MSG_LUHN_CHECK_FAILED="cc.num.902",t.ERROR_MSG_EMPTY_PAN="cc.num.900",t.ERROR_MSG_UNSUPPORTED_CARD_ENTERED="cc.num.903",t.ERROR_MSG_INCORRECTLY_FILLED_PAN="cc.num.901",t.ERROR_MSG_CARD_TOO_OLD="cc.dat.912",t.ERROR_MSG_CARD_TOO_FAR_IN_FUTURE="cc.dat.913",t.ERROR_MSG_CARD_EXPIRES_TOO_SOON="cc.dat.914",t.ERROR_MSG_EMPTY_DATE="cc.dat.910",t.ERROR_MSG_INCORRECTLY_FILLED__DATE="cc.dat.911",t.ERROR_MSG_EMPTY_YEAR="cc.yr.917",t.ERROR_MSG_INCORRECTLY_FILLED_YEAR="cc.yr.918",t.ERROR_MSG_EMPTY_MONTH="cc.mth.915",t.ERROR_MSG_EMPTY_CVC="cc.cvc.920",t.ERROR_MSG_INCORRECTLY_FILLED_CVC="cc.cvc.921",t.ERROR_MSG_EMPTY_KCP_PWD="kcp.pwd.940",t.ERROR_MSG_INCORRECTLY_FILLED_KCP_PWD="kcp.pwd.941",t})({}),ti={[k]:"cc.num.900",[O]:"cc.dat.910",[L]:"cc.mth.915",[I]:"cc.yr.917",[x]:"cc.cvc.920",[fe]:"kcp.pwd.940"};var oi=t=>t?Array.prototype.slice.call(t.querySelectorAll('[data-cse*="encrypted"]')).map(e=>e.getAttribute("data-cse")):[],ri=(t,e)=>(e===O?(t[L]=!1,t[I]=!1):t[e]=!1,t),si=(t,e)=>(o,r)=>{let s=e.valid[r]!==!0?((n,i)=>i!==1||n!==L&&n!==I?n:O)(r,t):null;return s=((n,i,c)=>{let{isFieldOfType:d,fieldIsValid:p}=c.reduce((m,g)=>(m.isFieldOfType||(m.isFieldOfType=n===g,m.fieldIsValid=!i.errors[g]),m),{isFieldOfType:!1,fieldIsValid:!1}),u=n===x?"cvcPolicy":"expiryDatePolicy",l=u==="cvcPolicy"?go:vo,h=u==="cvcPolicy"?Co:It;return(i[u]===l||i[u]===h)&&p&&d?null:n})(s,e,[x,O,L,I]),s&&!o.includes(s)&&o.push(s),o},ni=(t,e,o)=>({rootNode:e,fieldType:t,error:we(o,`errors.${t}`)||ti[t],type:"card"});function M(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var _r=class{constructor(e){M(this,"callbacks",void 0),M(this,"config",void 0),M(this,"props",void 0),M(this,"state",void 0),M(this,"validateForm",void 0),M(this,"handleBrandFromBinLookup",void 0),M(this,"callbacksHandler",void 0),M(this,"configHandler",void 0),M(this,"createCardSecuredFields",void 0),M(this,"createNonCardSecuredFields",void 0),M(this,"createSecuredFields",void 0),M(this,"destroySecuredFields",void 0),M(this,"handleIOSTouchEvents",void 0),M(this,"destroyTouchendListener",void 0),M(this,"destroyTouchstartListener",void 0),M(this,"handleBinValue",void 0),M(this,"handleEncryption",void 0),M(this,"handleFocus",void 0),M(this,"handleIframeConfigFeedback",void 0),M(this,"handleValidation",void 0),M(this,"handleSFShiftTab",void 0),M(this,"handleShiftTab",void 0),M(this,"isConfigured",void 0),M(this,"postMessageToAllIframes",void 0),M(this,"processAutoComplete",void 0),M(this,"processBrand",void 0),M(this,"sendBrandToCardSF",void 0),M(this,"sendExpiryDatePolicyToSF",void 0),M(this,"setFocusOnFrame",void 0),M(this,"setupSecuredField",void 0),M(this,"touchendListener",void 0),M(this,"touchstartListener",void 0),M(this,"hasGenuineTouchEvents",void 0),M(this,"encryptedAttrName",void 0),M(this,"hasRedundantCVCField",void 0),M(this,"isSingleBrandedCard",void 0),M(this,"securityCode",void 0),this.props=e,this.state={},this.config={},this.callbacks={}}};var ai=Object.prototype.toString;function Eo(t){return typeof t=="object"&&t!==null&&Object.prototype.toString.call(t)==="[object Array]"}function ge(t){return t!=null}function bo(t){return t!==!1&&ge(t)}function Us(t){return!!t&&typeof t=="object"}function ii(t){return!bo(t)||!(!(typeof(e=t)=="number"||Us(e)&&ai.call(e)==="[object Number]")||t!==0&&!Number.isNaN(t))||!(!Eo(t)&&!(function(o){return typeof o=="string"||Us(o)&&ai.call(o)==="[object String]"})(t)||t.length!==0)||!(!Us(t)||Object.keys(t).length!==0);var e}function xt(...t){let e=Eo(t[0])?t[0]:t;return{from:o=>e.map(r=>r in o?{[r]:o[r]}:{}).reduce((r,s)=>({...r,...s}),{})}}function li(...t){let e=Eo(t[0])?t[0]:t;return{from:o=>xt(...Object.keys(o).filter(r=>!e.includes(r))).from(o)}}var ci=t=>Eo(t)&&t.length?t:At;var So=typeof window<"u"&&window.console&&window.console.error&&window.console.error.bind(window.console);typeof window<"u"&&window.console&&window.console.info&&window.console.info.bind(window.console);var yr=typeof window<"u"&&window.console&&window.console.log&&window.console.log.bind(window.console),Se=typeof window<"u"&&window.console&&window.console.warn&&window.console.warn.bind(window.console);function di(t){this.config.cardGroupTypes=ci(t.cardGroupTypes);let e=t.loadingContext;if(!e)return void Se("WARNING Config :: no loadingContext has been specified!");var o;this.config.loadingContext=(o=e).charAt(o.length-1)==="/"?e:`${e}/`,this.config.isCreditCardType=Ga.includes(t.type)===!1,this.config.iframeUIConfig=t.iframeUIConfig??{},this.config.autoFocus=!(t.autoFocus===!1||t.autoFocus==="false"),this.config.showWarnings=t.showWarnings===!0||t.showWarnings==="true",this.config.trimTrailingSeparator=!(t.trimTrailingSeparator===!1||t.trimTrailingSeparator==="false"),this.config.keypadFix=!(t.keypadFix===!1||t.keypadFix==="false"),this.config.legacyInputMode=t.legacyInputMode||null,this.config.minimumExpiryDate=t.minimumExpiryDate||null,this.config.sfLogAtStart=window._b$dl===!0;let r=this.config.isCreditCardType?"card":t.type,s=btoa(window.location.origin),n=`${r}${!this.config.loadingContext.includes("live")&&t.forceCompat?"Compat":""}`;this.config.iframeSrc=`${this.config.loadingContext}securedfields/${t.clientKey}/${ja}/securedFields.html?type=${n}&d=${s}`}var ve=()=>{};function pi(t={}){this.callbacks.onLoad=t.onLoad?t.onLoad:ve,this.callbacks.onConfigSuccess=t.onConfigSuccess?t.onConfigSuccess:ve,this.callbacks.onFieldValid=t.onFieldValid?t.onFieldValid:ve,this.callbacks.onAllValid=t.onAllValid?t.onAllValid:ve,this.callbacks.onBrand=t.onBrand?t.onBrand:ve,this.callbacks.onError=t.onError?t.onError:ve,this.callbacks.onFocus=t.onFocus?t.onFocus:ve,this.callbacks.onBinValue=t.onBinValue?t.onBinValue:ve,this.callbacks.onAutoComplete=t.onAutoComplete?t.onAutoComplete:ve,this.callbacks.onAdditionalSFConfig=t.onAdditionalSFConfig?t.onAdditionalSFConfig:ve,this.callbacks.onAdditionalSFRemoved=t.onAdditionalSFRemoved?t.onAdditionalSFRemoved:ve,this.callbacks.onTouchstartIOS=t.onTouchstartIOS?t.onTouchstartIOS:ve,this.callbacks.onKeyPressed=t.onKeyPressed?t.onKeyPressed:ve}var ui=({fieldType:t,encryptedFieldName:e,uuid:o,isValid:r,txVariant:s,rootNode:n})=>({fieldType:t,encryptedFieldName:e,uid:o,valid:r,type:s,rootNode:n}),mi=({fieldType:t,txVariant:e,rootNode:o})=>{let r=t===O,s=[],n=["encryptedExpiryMonth","encryptedExpiryYear"],i,c,d,p,u=r?2:1;for(i=0;i<u;i+=1){d=r?n[i]:t,c=`${e}-encrypted-${d}`,p=r?d:t;let l=ui({fieldType:t,encryptedFieldName:p,uuid:c,isValid:!1,txVariant:e,rootNode:o});s.push(l)}return s},hi=({fieldType:t,txVariant:e,rootNode:o,encryptedObjArr:r})=>{let s,n,i,c,d,p=[];for(s=0;s<r.length;s+=1){i=r[s],c=i.encryptedFieldName,n=`${e}-encrypted-${c}`,d=i.blob;let u=ui({fieldType:t,encryptedFieldName:c,uuid:n,isValid:!0,txVariant:e,rootNode:o});u.blob=d,p.push(u)}return p};function S(t={},e){return Object.prototype.hasOwnProperty.call(t,e)}var gr=(t,e,o,r,s)=>{if(!S(t,"error"))return null;let n=e,i={rootNode:r,fieldType:t.fieldType,error:null,type:null},c=t.error!=="";return c||n.hasError?(i.error=c?t.error:"",i.type=o,n.hasError=c,n.errorType=i.error,s(i),i):null};function fi(t){let e,o=t.fieldType;if(this.state.type==="card"&&S(t,"cvcPolicy")&&ge(t.cvcPolicy)&&S(this.state.securedFields,x)&&(this.state.securedFields[x].cvcPolicy=t.cvcPolicy),gr(t,this.state.securedFields[o],this.state.type,this.props.rootNode,this.callbacks.onError),this.state.securedFields[o].isEncrypted){e=mi({fieldType:o,txVariant:this.state.type,rootNode:this.props.rootNode}),o===k&&(e[0].endDigits="");for(let r=0,s=e.length;r<s;r+=1)this.callbacks.onFieldValid(e[r]);this.state.securedFields[o].isEncrypted=!1}this.validateForm(),S(t,"brand")&&this.processBrand(t)}var ie=(t,e,o)=>{if(e){let r=JSON.stringify(t);e.postMessage(r,o)}};function de(t,e){return t.securedFields[e]?.iframeContentWindow||null}function _i(t){let e=t.fieldType,o,r;this.config.autoFocus&&(t.type!=="year"&&e!==I||this.setFocusOnFrame(x),e===L&&this.setFocusOnFrame(I));let s=t[e];this.state.securedFields[e].isEncrypted=!0,gr({error:"",fieldType:e},this.state.securedFields[e],this.state.type,this.props.rootNode,this.callbacks.onError);let n=hi({fieldType:e,txVariant:this.state.type,rootNode:this.props.rootNode,encryptedObjArr:s});if(e===L&&S(this.state.securedFields,I)){let i={txVariant:this.state.type,code:t.code,blob:s[0].blob,fieldType:I,numKey:this.state.securedFields[I].numKey};ie(i,de(this.state,I),this.config.loadingContext)}for(e===k&&bo(t.endDigits)&&(n[0].endDigits=t.endDigits),e===k&&bo(t.issuerBin)&&(n[0].issuerBin=+t.issuerBin),e===O&&bo(t.expiryDate)&&(n[1].expiryDate=t.expiryDate),o=0,r=n.length;o<r;o+=1)this.callbacks.onFieldValid(n[o]);this.validateForm()}var Cr=(t,e)=>{let o=[];return t&&typeof t.querySelectorAll=="function"&&(o=[].slice.call(t.querySelectorAll(e))),o},xe=(t,e)=>{if(t)return t.querySelector(e)},Po=(t,e)=>{if(t)return t.getAttribute(e)},yi=t=>{for(;t.firstChild;)t.removeChild(t.firstChild)};var Bs,A={__NO_BRAND:"noBrand",cards:[]};A.cards.push({cardType:"mc",startingRules:[51,52,53,54,55,22,23,24,25,26,27],permittedLengths:[16],pattern:/^(5[1-5][0-9]{0,14}|2[2-7][0-9]{0,14})$/,securityCode:"CVC"}),A.cards.push({cardType:"visadankort",startingRules:[4571],permittedLengths:[16],pattern:/^(4571)[0-9]{0,12}$/}),A.cards.push({cardType:"visa",startingRules:[4],permittedLengths:[13,16,19],pattern:/^4[0-9]{0,18}$/,securityCode:"CVV"}),A.cards.push({cardType:"amex",startingRules:[34,37],permittedLengths:[15],pattern:/^3[47][0-9]{0,13}$/,securityCode:"CID"}),A.cards.push({cardType:"diners",startingRules:[36],permittedLengths:[14,15,16,17,18,19],pattern:/^(36)[0-9]{0,12}$/}),A.cards.push({cardType:"maestrouk",startingRules:[6759],permittedLengths:[16,18,19],pattern:/^(6759)[0-9]{0,15}$/}),A.cards.push({cardType:"solo",startingRules:[6767],permittedLengths:[16,18,19],pattern:/^(6767)[0-9]{0,15}$/}),A.cards.push({cardType:"laser",startingRules:[6304,6706,677117,677120],permittedLengths:[16,17,18,19],pattern:/^(6304|6706|6709|6771)[0-9]{0,15}$/,cvcPolicy:"optional"}),A.cards.push({cardType:"discover",startingRules:[6011,644,645,646,647,648,649,65],permittedLengths:[16,17,18,19],pattern:/^(6011[0-9]{0,12}|(644|645|646|647|648|649)[0-9]{0,13}|65[0-9]{0,14})$/}),A.cards.push({cardType:"jcb",startingRules:[3528,3529,353,354,355,356,357,358],permittedLengths:[16,19],pattern:/^(352[8,9]{1}[0-9]{0,15}|35[4-8]{1}[0-9]{0,16})$/,securityCode:"CAV"}),A.cards.push({cardType:"bcmc",startingRules:[6703,479658,606005],permittedLengths:[16,17,18,19],pattern:/^((6703)[0-9]{0,15}|(479658|606005)[0-9]{0,13})$/,cvcPolicy:"hidden"}),A.cards.push({cardType:"bijcard",startingRules:[5100081],permittedLengths:[16],pattern:/^(5100081)[0-9]{0,9}$/}),A.cards.push({cardType:"dankort",startingRules:[5019],permittedLengths:[16],pattern:/^(5019)[0-9]{0,12}$/}),A.cards.push({cardType:"hipercard",startingRules:[606282],permittedLengths:[16],pattern:/^(606282)[0-9]{0,10}$/}),A.cards.push({cardType:"cup",startingRules:[62,81],permittedLengths:[14,15,16,17,18,19],pattern:/^(62|81)[0-9]{0,17}$/}),A.cards.push({cardType:"maestro",startingRules:[50,56,57,58,6],permittedLengths:[16,17,18,19],pattern:/^(5[0|6-8][0-9]{0,17}|6[0-9]{0,18})$/,cvcPolicy:"optional"}),A.cards.push({cardType:"elo",startingRules:[506699,50670,50671,50672,50673,50674,50675,50676,506770,506771,506772,506773,506774,506775,506776,506777,506778,401178,438935,451416,457631,457632,504175,627780,636297,636368],permittedLengths:[16],pattern:/^((((506699)|(506770)|(506771)|(506772)|(506773)|(506774)|(506775)|(506776)|(506777)|(506778)|(401178)|(438935)|(451416)|(457631)|(457632)|(504175)|(627780)|(636368)|(636297))[0-9]{0,10})|((50676)|(50675)|(50674)|(50673)|(50672)|(50671)|(50670))[0-9]{0,11})$/}),A.cards.push({cardType:"uatp",startingRules:[1],permittedLengths:[15],pattern:/^1[0-9]{0,14}$/,cvcPolicy:"optional"}),A.cards.push({cardType:"cartebancaire",startingRules:[4,5,6],permittedLengths:[16],pattern:/^[4-6][0-9]{0,15}$/}),A.cards.push({cardType:"visaalphabankbonus",startingRules:[450903],permittedLengths:[16],pattern:/^(450903)[0-9]{0,10}$/}),A.cards.push({cardType:"mcalphabankbonus",startingRules:[510099],permittedLengths:[16],pattern:/^(510099)[0-9]{0,10}$/}),A.cards.push({cardType:"hiper",startingRules:[637095,637568,637599,637609,637612],permittedLengths:[16],pattern:/^(637095|637568|637599|637609|637612)[0-9]{0,10}$/}),A.cards.push({cardType:"oasis",startingRules:[982616],permittedLengths:[16],pattern:/^(982616)[0-9]{0,10}$/,cvcPolicy:"optional"}),A.cards.push({cardType:"karenmillen",startingRules:[98261465],permittedLengths:[16],pattern:/^(98261465)[0-9]{0,8}$/,cvcPolicy:"optional"}),A.cards.push({cardType:"warehouse",startingRules:[982633],permittedLengths:[16],pattern:/^(982633)[0-9]{0,10}$/,cvcPolicy:"optional"}),A.cards.push({cardType:"mir",startingRules:[220],permittedLengths:[16,17,18,19],pattern:/^(220)[0-9]{0,16}$/}),A.cards.push({cardType:"codensa",startingRules:[590712],permittedLengths:[16],pattern:/^(590712)[0-9]{0,10}$/}),A.cards.push({cardType:"naranja",startingRules:[377798,377799,402917,402918,527571,527572,589562],permittedLengths:[16,17,18,19],pattern:/^(37|40|5[28])([279])\d*$/}),A.cards.push({cardType:"cabal",startingRules:[589657,600691,603522,6042,6043,636908],permittedLengths:[16,17,18,19],pattern:/^(58|6[03])([03469])\d*$/}),A.cards.push({cardType:"shopping",startingRules:[2799,589407,603488],permittedLengths:[16,17,18,19],pattern:/^(27|58|60)([39])\d*$/}),A.cards.push({cardType:"argencard",startingRules:[501],permittedLengths:[16,17,18,19],pattern:/^(50)(1)\d*$/}),A.cards.push({cardType:"troy",startingRules:[9792],permittedLengths:[16],pattern:/^(97)(9)\d*$/}),A.cards.push({cardType:"forbrugsforeningen",startingRules:[600722],permittedLengths:[16],pattern:/^(60)(0)\d*$/}),A.cards.push({cardType:"vpay",startingRules:[401,408,413,434,435,437,439,441,442,443,444,446,447,455,458,460,461,463,466,471,479,482,483,487],permittedLengths:[13,14,15,16,17,18,19],pattern:/^(40[1,8]|413|43[4,5]|44[1,2,3,4,6,7]|45[5,8]|46[0,1,3,6]|47[1,9]|48[2,3,7])[0-9]{0,16}$/}),A.cards.push({cardType:"rupay",startingRules:[508528],permittedLengths:[16],pattern:/^(100003|508(2|[5-9])|60(69|[7-8])|652(1[5-9]|[2-5][0-9]|8[5-9])|65300[3-4]|8172([0-1]|[3-5]|7|9)|817(3[3-8]|40[6-9]|410)|35380([0-2]|[5-6]|9))[0-9]{0,12}$/}),A.cards.push({cardType:"ticket",expiryDatePolicy:"hidden"});var $t={detectCard:(t,e)=>{let o,r,s;if(e){if(o=A.cards.filter(n=>e.includes(n.cardType)).filter(n=>S(n,"pattern")&&t.match(n.pattern)),o.length){if(o.length===1)return o[0];for(r=0,s=o.length;r<s;r+=1)if(!o[r].longestRule){let n=o[r].startingRules.reduce((i,c)=>i>c?i:c);o[r].longestRule=String(n).length}return o.reduce((n,i)=>n.longestRule>=i.longestRule?n:i)}return{cardType:A.__NO_BRAND}}return{cardType:A.__NO_BRAND}},detectCardLength:(t,e)=>{let o,r,s=0,n=!1,i=e,c=t.cardType!==A.__NO_BRAND?t.permittedLengths[t.permittedLengths.length-1]:0;if(c&&i>c&&(s=i.length-c,s>0&&(i=i.substring(0,i.length-s),r=i)),t.permittedLengths.forEach(d=>{i.length===d&&(n=!0)}),i.length===c){let d=Math.floor(i.length/4);o=c+(i.length%4>0?d:d-1),t.cardType.toLowerCase()==="amex"&&(o=c+2)}return{shortenedNewValue:r,maxLength:o,reachedValidLength:n}},getShortestPermittedCardLength:()=>{if(!Bs){let t=[];A.cards.forEach(e=>{t=t.concat(e.permittedLengths??[])}),Bs=Math.min.apply(null,t)}return Bs},getCardByBrand:t=>A.cards.filter(e=>e.cardType===t)[0],isGenericCardType:t=>{if(!t)throw new Error("Error: isGenericCardType: type param has not been specified");return t==="card"||t==="scheme"},__NO_BRAND:A.__NO_BRAND,allCards:A.cards};function gi({src:t,title:e="iframe element",policy:o="origin"}){let r=document.createElement("iframe");r.setAttribute("src",t),r.classList.add("js-iframe"),e===""||e.trim().length===0||e==="none"?r.setAttribute("role","presentation"):r.setAttribute("title",e),r.setAttribute("allowtransparency","true"),r.setAttribute("referrerpolicy",o);let s=document.createTextNode("<p>Your browser does not support iframes.</p>");return r.appendChild(s),r}var qe=(t,e,o,r=!1)=>!(!t||typeof t.addEventListener!="function")&&(t.addEventListener(e,o,r),!0),at=(t,e,o,r=!1)=>!(!t||typeof t.removeEventListener!="function")&&(t.removeEventListener(e,o,r),!0);var Ci=(t,e,o)=>{let r=t.origin,s=e.indexOf("/checkoutshopper/"),n=s>-1?e.substring(0,s):e,i=n.length-1;return n.charAt(i)==="/"&&(n=n.substring(0,i)),r===n||(o&&Se(`WARNING postMessageValidation: postMessage listener for iframe::origin mismatch!
@@ -11,7 +11,7 @@ About to set up securedField:`,n),await this.setupSecuredField(n,e,o).catch(i=>{
11
11
  `);function Mp({configuration:t,paymentMethods:e,isInstantPayment:o,onUnavailable:r}){let s=le(null),n=le(),i=le(),{isPaymentMethodInitialized:c,updatePaymentMethodInitialization:d,handleSuccess:p,handleError:u,setThreeDSecureActive:l,threeDSecureActive:h,setActivePaymentMethod:m,activePaymentMethod:g}=ee(),E=async()=>{n.current=await Ee({clientKey:e.clientKey,environment:t.environment,locale:e.locale,countryCode:"IS",paymentMethodsResponse:e.paymentMethods,amount:{value:e.minorUnitsAmount,currency:e.currency},onError:v,onAdditionalDetails:_,onPaymentCompleted:V,onPaymentFailed:P});let F=e.paymentMethods.paymentMethods.find(Y=>Y.type==="applepay").configuration,R={amount:{value:e.minorUnitsAmount,currency:e.currency},environment:t.environment,onSubmit:y,configuration:{...F,merchantName:e.merchantName}};i.current=new Lt(n.current,R),i.current.isAvailable().then(()=>{i.current.mount(s.current),d("applepay",!0)}).catch(()=>{d("applepay",!0),g==="applepay"&&m(null),r?.()})};me(()=>{c.applepay||E()},[t]),me(()=>{i.current&&c.applepay&&(i.current.remove(),E())},[t]);function v(b,F){b.name!==qr&&u("error.unknownError")}async function y(b,F,R){o&&m("applepay");let Y={...b.data,sessionId:t.sessionId},D=await ot(t.environment,Y);if(!D.ok){R.reject(),u("error.failedToSubmitPayment");return}let T=await D.json();if(!T.resultCode){R.reject(),u("error.paymentFailed");return}let{resultCode:w,action:q}=T;(w==="ChallengeShopper"||w==="IdentifyShopper")&&l(!0),R.resolve({resultCode:w,action:q})}async function _(b,F,R){let Y={...b.data,sessionId:t.sessionId},D=await Fe(t.environment,Y);if(!D.ok){R.reject(),u("error.failedToSubmitPaymentDetails");return}let T=await D.json();if(!T.resultCode){R.reject(),u("error.paymentDetailsFailed");return}let{resultCode:w,action:q}=T;R.resolve({resultCode:w,action:q})}function V(b,F){b.resultCode==="Authorised"?p("success.paymentAuthorized"):u("error.paymentUnsuccessful"),t.onPaymentCompleted?.({resultCode:b.resultCode})}function P(b,F){b?(b.resultCode==="Authorised"?p("success.paymentAuthorized"):u("error.paymentUnsuccessful"),t.onPaymentFailed?.({resultCode:b.resultCode})):t.onPaymentFailed?.()}return g!=="applepay"&&h?null:a(Q,null,c.applepay===!1&&a("div",{className:"straumur__apple-pay-button__loading"},a(Ge,null)),a("div",{ref:s,style:{height:h?"600px":"auto",minWidth:h?"350px":"auto",position:c.applepay?"static":"absolute"}}))}var Jr=Mp;function Fp({configuration:t,paymentMethods:e}){let{i18n:o}=be(),{activePaymentMethod:r,setActivePaymentMethod:s,threeDSecureActive:n,isSolePaymentMethod:i,hasApplePay:c}=ee(),[d,p]=U(!1);return!c||d||t.instantPayments&&t.instantPayments.some(u=>u==="applepay")||r!=="applepay"&&n?null:a(bt,{icon:a(ed,null),title:o.t("applePay.title"),isActive:r==="applepay",isSole:i,onChange:()=>s("applepay")},a(Jr,{configuration:t,paymentMethods:e,isInstantPayment:!1,onUnavailable:()=>p(!0)}))}var td=Fp;$(`.straumur__stored-card-component__remove-stored-card-button{margin-left:auto}.straumur__stored-card-component__remove-stored-card-button--text{color:#d03e00;text-decoration:none;background:none;border:none;cursor:pointer;transition:all .2s ease}.straumur__stored-card-component__remove-stored-card-button--text:disabled{cursor:not-allowed;color:#72889d}.straumur__stored-card-component__confirm-remove-stored-card{background-color:#fff7db;border-radius:var(--straumur__border-radius-s);max-height:0;overflow:hidden;transition:all .3s ease;opacity:0}.straumur__stored-card-component__confirm-remove-stored-card--expanded{padding:var(--straumur__space-xxlg);max-height:600px;opacity:1}.straumur__stored-card-component__confirm-remove-stored-card--header{display:flex;align-items:center;gap:var(--straumur__space-lg);color:#262b31;padding-bottom:var(--straumur__space-xxlg)}.straumur__stored-card-component__confirm-remove-stored-card--actions{display:flex;gap:var(--straumur__space-lg);justify-content:end}.straumur__stored-card-component__confirm-remove-stored-card--actions--button{color:#775d00;background:none;border:none;cursor:pointer;text-decoration:none;font-weight:700}.straumur__stored-card-component__loading-text{display:flex;justify-content:center}.straumur__stored-card-component__form{display:flex;padding-top:var(--straumur__space-xxlg);flex-direction:column;gap:var(--straumur__space-5xlg)}.straumur__stored-card-component__form--wrapper{display:flex;flex-direction:column;justify-items:start;position:relative;width:100%}.straumur__stored-card-component__form--wrapper--error{color:var(--straumur__color-red-beta);font-size:12px}.straumur__stored-card-component__form--wrapper--label{transform:translate(10px) translateY(-50%);z-index:1;background:linear-gradient(to top,var(--straumur__color-secondary-gamma) 53%,var(--straumur__color-transparent) 50%);position:absolute;font-weight:500;font-size:14px;padding:0 var(--straumur__space-xxs)}.straumur__stored-card-component__form--wrapper--label--readonly{background:linear-gradient(to top,var(--straumur__color-gray-epsilon) 53%,var(--straumur__color-transparent) 50%)}.straumur__stored-card-component__form--wrapper--label--error{color:var(--straumur__color-red-beta);background:linear-gradient(to top,var(--straumur__color-red-gamma) 53%,var(--straumur__color-transparent) 50%);font-size:13px;font-weight:500}.straumur__stored-card-component__form--wrapper--label--info{position:absolute;top:33%;right:var(--straumur__space-md)}.straumur__stored-card-component__form--wrapper--input{background:var(--straumur__color-secondary-gamma);color:#00112c;display:flex;align-items:center;border:1px solid var(--straumur__color-transparent);border-radius:var(--straumur__border-radius-s);font-size:1rem;height:48px;outline:none;padding-left:var(--straumur__space-lg);transition:border .2s ease-out,box-shadow .2s ease-out;position:relative}.straumur__stored-card-component__form--wrapper--input--readonly{background-color:var(--straumur__color-gray-epsilon)}.straumur__stored-card-component__form--wrapper--input:hover{border:1px solid var(--straumur__color-cosmos-blue-delta)}.straumur__stored-card-component__form--wrapper--input--readonly:hover{border:1px solid var(--straumur__color-transparent)}.straumur__stored-card-component__form--wrapper--input--error{background:var(--straumur__color-red-gamma);border:1px solid var(--straumur__color-red-beta)}.straumur__stored-card-component__form--wrapper--input--error:hover{border:1px solid var(--straumur__color-red-beta)}.straumur__stored-card-component__form--field-wrapper{display:flex;width:100%;gap:var(--straumur__space-5xlg)}.straumur__stored-card-component__submit-button{background:var(--straumur__color-primary);border:none;border-radius:var(--straumur__border-radius-s);color:var(--straumur__color-white);cursor:pointer;font-size:1rem;height:40px;outline:none;padding:0 var(--straumur__space-xxlg);transition:background .2s ease-out;width:100%}.straumur__stored-card-component__submit-button:hover{background:var(--straumur__color-primary);border:1px solid #dbdee2}.straumur__stored-card-component__submit-button:disabled{background:#72889d;border:1px solid #dbdee2;cursor:not-allowed}
12
12
  `);var Lp=()=>a("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("g",{"clip-path":"url(#clip0_10650_34968)"},a("path",{d:"M12.0011 15C12.6245 15 13.1261 14.4984 13.1261 13.875V7.875C13.1261 7.25391 12.6222 6.75 12.0433 6.75C11.4644 6.75 10.8761 7.25625 10.8761 7.875V13.875C10.8761 14.4984 11.3823 15 12.0011 15ZM12.0011 16.5516C11.1873 16.5516 10.5273 17.2116 10.5273 18.0253C10.5292 18.8391 11.1855 19.5 12.0011 19.5C12.8167 19.5 13.4748 18.84 13.4748 18.0262C13.473 17.2125 12.8167 16.5516 12.0011 16.5516Z",fill:"#DFAE00"}),a("path",{opacity:"0.4",d:"M23.7312 19.5469L13.7328 2.48438C12.9673 1.17188 11.0356 1.17188 10.2649 2.48438L0.271188 19.5469C-0.49803 20.8547 0.460048 22.5 2.00181 22.5H21.9987C23.5343 22.5 24.4953 20.8594 23.7312 19.5469ZM10.8734 7.875C10.8734 7.25391 11.3773 6.75 11.9984 6.75C12.6195 6.75 13.1234 7.25625 13.1234 7.875V13.875C13.1234 14.4961 12.6195 15 12.0406 15C11.4617 15 10.8734 14.4984 10.8734 13.875V7.875ZM11.9984 19.5C11.1846 19.5 10.5246 18.84 10.5246 18.0262C10.5246 17.2125 11.1842 16.5525 11.9984 16.5525C12.8126 16.5525 13.4721 17.2125 13.4721 18.0262C13.4703 18.8391 12.814 19.5 11.9984 19.5Z",fill:"#DFAE00"})),a("defs",null,a("clipPath",{id:"clip0_10650_34968"},a("rect",{width:"24",height:"24",fill:"white"})))),od=Lp;function Up({configuration:t,paymentMethods:e,storedPaymentMethod:o,onStoredCardRemoved:r}){let s=le(null),n=le(),i=le(),{i18n:c}=be(),[d,p]=U(!0),[u,l]=U("required"),[h,m]=U(!1),[g,E]=U({encryptedSecurityCode:{visible:!1}}),{activePaymentMethod:v,setActivePaymentMethod:y,activeStoredPaymentMethodId:_,setActiveStoredPaymentMethodId:V,isStoredCardInitialized:P,updateStoredCardInitialization:b,handleSuccess:F,handleError:R,setThreeDSecureActive:Y,threeDSecureActive:D,isSolePaymentMethod:T}=ee(),w=T?v==="storedcard":v==="storedcard"&&_===o.id;if(D&&!w)return null;let q=async()=>{n.current=await Ee({clientKey:e.clientKey,environment:t.environment,locale:t.locale,countryCode:"IS",amount:{value:e.minorUnitsAmount,currency:e.currency},paymentMethodsResponse:e.paymentMethods,onError:ns,onAdditionalDetails:is,onPaymentCompleted:ls,onPaymentFailed:cs}),i.current=new Ye(n.current,{brands:[o.brand],onSubmit:as,onConfigSuccess(){b(o.id,!0)},onBrand:H=>{l(H.cvcPolicy)},onValidationError:H=>{let B={encryptedSecurityCode:{visible:!1,message:void 0}};H.filter(ce=>ce.error).forEach(ce=>{B[ce.fieldType].visible=!0,B[ce.fieldType].message=ce.errorI18n}),E(B)},onAllValid:H=>{p(!H.allValid)},placeholders:t.placeholders,challengeWindowSize:"05"}),s.current&&i.current.mount(s.current)};me(()=>{w&&!P[o.id]&&q()},[t,w]),me(()=>{i.current&&P[_]&&(q(),E({encryptedSecurityCode:{visible:!1,message:void 0}}))},[t]),me(()=>{m(!1)},[v,_]);function rs(){y("storedcard"),V(o.id)}function po(){m(!0)}function jo(){m(!1)}async function ss(){let H={storedPaymentMethodId:o.id,sessionId:t.sessionId},B=await zn(t.environment,H);if(!B.ok){R("error.failedToSubmitRemoveStoredPaymentCard");return}if(!(await B.json()).success){R("error.failedToRemoveStoredPaymentCard");return}r(o.id)}function ns(H,B){R("error.unknownError")}async function as(H,B,ce){let ze={...H.data,sessionId:t.sessionId,paymentMethod:{...H.data.paymentMethod,storedPaymentMethodId:o.id}},Ae=await ot(t.environment,ze);if(!Ae.ok){ce.reject(),R("error.failedToSubmitPayment");return}let Ie=await Ae.json();if(!Ie.resultCode){ce.reject(),R("error.paymentFailed");return}let{resultCode:$e,action:us}=Ie;($e==="ChallengeShopper"||$e==="IdentifyShopper")&&Y(!0),ce.resolve({resultCode:$e,action:us})}async function is(H,B,ce){let ze={...H.data,sessionId:t.sessionId},Ae=await Fe(t.environment,ze);if(!Ae.ok){ce.reject(),R("error.failedToSubmitPaymentDetails");return}let Ie=await Ae.json();if(!Ie.resultCode){ce.reject(),R("error.paymentDetailsFailed");return}let{resultCode:$e,action:us}=Ie;ce.resolve({resultCode:$e,action:us})}function ls(H,B){H.resultCode==="Authorised"?F("success.paymentAuthorized"):R("error.paymentUnsuccessful"),t.onPaymentCompleted?.({resultCode:H.resultCode})}function cs(H,B){H?(H.resultCode==="Authorised"?F("success.paymentAuthorized"):R("error.paymentUnsuccessful"),t.onPaymentFailed?.({resultCode:H.resultCode})):t.onPaymentFailed?.()}function ds(){i.current&&i.current.submit()}let ps=w&&P[o.id]?a("div",{className:"straumur__stored-card-component__remove-stored-card-button"},a("button",{onClick:po,className:"straumur__stored-card-component__remove-stored-card-button--text",disabled:h},c.t("stored-cards.removeStoredCard"))):null,N=a("div",{className:`straumur__stored-card-component__confirm-remove-stored-card ${h?"straumur__stored-card-component__confirm-remove-stored-card--expanded":""}`},a("div",{className:"straumur__stored-card-component__confirm-remove-stored-card--header"},a(od,null),a("span",{className:"straumur__stored-card-component__confirm-remove-stored-card--header--title"},c.t("stored-cards.removeStoredCardQuestion"))),a("div",{className:"straumur__stored-card-component__confirm-remove-stored-card--actions"},a("button",{className:"straumur__stored-card-component__confirm-remove-stored-card--actions--button",onClick:ss},c.t("stored-cards.removeStoredCardQuestionYesRemove")),a("button",{className:"straumur__stored-card-component__confirm-remove-stored-card--actions--button",onClick:jo},c.t("stored-cards.removeStoredCardQuestionCancel"))));return a(bt,{icon:a(rr,{brands:[{brand:o.brand,brandFullName:o.name}]}),title:`\u2022\u2022\u2022\u2022 ${o.lastFour}`,isActive:w,isSole:T,onChange:rs,headerRight:ps,confirmSection:N},a("div",{ref:s,style:{height:D?"600px":"auto",minWidth:D?"350px":"auto"}},!P[o.id]&&a("div",{className:"straumur__stored-card-component__loading-text"},a(Ge,null)),a("div",{className:"straumur__stored-card-component__form",style:{opacity:P[o.id]&&!D?1:0,position:P[o.id]&&!D?"relative":"absolute",transition:"opacity 0.3s ease-in-out"}},a("div",{className:"straumur__stored-card-component__form--field-wrapper"},a("div",{className:"straumur__stored-card-component__form--wrapper"},a("label",{className:"straumur__stored-card-component__form--wrapper--label straumur__stored-card-component__form--wrapper--label--readonly"},c.t("stored-cards.expiryDate")),a("span",{className:"straumur__stored-card-component__form--wrapper--input straumur__stored-card-component__form--wrapper--input--readonly"},o.expiryMonth,"/",o.expiryYear)),a("div",{className:"straumur__stored-card-component__form--wrapper"},(u==="optional"||u==="required")&&a(Q,null,a("label",{className:`straumur__stored-card-component__form--wrapper--label ${g.encryptedSecurityCode.visible?"straumur__stored-card-component__form--wrapper--label--error":""}`},u==="optional"?c.t("stored-cards.securityCode3DigitsOptional"):c.t("stored-cards.securityCode3Digits")),a("span",{className:`straumur__stored-card-component__form--wrapper--input ${g.encryptedSecurityCode.visible?"straumur__stored-card-component__form--wrapper--input--error":""}`,"data-cse":"encryptedSecurityCode"},a("div",{className:"straumur__stored-card-component__form--wrapper--label--info"},a(jt,{content:c.t("stored-cards.securityCode3DigitsInfo")},a(Wr,null))))),g.encryptedSecurityCode.visible&&a("span",{className:"straumur__stored-card-component__form--wrapper--error"},g.encryptedSecurityCode.message))),a("button",{className:"straumur__stored-card-component__submit-button",disabled:d,onClick:ds},e.formattedAmount))))}var rd=Up;function Bp({configuration:t,paymentMethods:e}){let[o,r]=U(e.paymentMethods.storedPaymentMethods??[]),{activePaymentMethod:s,threeDSecureActive:n,hasStoredPaymentMethods:i}=ee();if(!i||s!=="storedcard"&&n)return null;function c(d){r(p=>p.filter(u=>u.id!==d))}return a(Q,null,o?.map(d=>a(rd,{key:d.id,configuration:t,storedPaymentMethod:d,paymentMethods:e,onStoredCardRemoved:c})))}var sd=Bp;$(`.straumur__payment-method-group{display:flex;flex-direction:column;gap:var(--straumur__space-xxlg);width:100%}
13
13
  `);function Vp({children:t,initialValue:e,isSolePaymentMethod:o,hasCard:r,hasGooglePay:s,hasApplePay:n,hasStoredPaymentMethods:i}){return a(sa,{initialValue:e,isSolePaymentMethod:o,hasCard:r,hasGooglePay:s,hasApplePay:n,hasStoredPaymentMethods:i},a("div",{className:"straumur__payment-method-group"},t))}var nd=Vp;$(`.straumur__result-component{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:300px;background-color:var(--straumur__color-white);border-radius:16px}
14
- `);var Hp=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 120 120"},a("circle",{cx:"60",cy:"60",r:"50",fill:"none",stroke:"#5b8206","stroke-width":"5","stroke-dasharray":"314","stroke-dashoffset":"314"},a("animate",{attributeName:"stroke-dashoffset",from:"314",to:"0",dur:"1s",fill:"freeze"})),a("g",{transform:"translate(60,60)"},a("path",{d:"M-25 5 L-5 25 L25 -15",fill:"none",stroke:"#5b8206","stroke-width":"6","stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":"100","stroke-dashoffset":"100"},a("animate",{attributeName:"stroke-dashoffset",from:"100",to:"0",dur:"0.5s",begin:"1s",fill:"freeze"}),a("animateTransform",{attributeName:"transform",type:"scale",from:"1 1",to:"1.2 1.2",begin:"1.5s",dur:"0.2s",fill:"freeze",additive:"sum"}),a("animateTransform",{attributeName:"transform",type:"scale",from:"1.2 1.2",to:"1 1",begin:"1.7s",dur:"0.2s",fill:"freeze",additive:"sum"})))),Qr=Hp;var Yp=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 120 120"},a("circle",{cx:"60",cy:"60",r:"50",fill:"none",stroke:"#d03e00","stroke-width":"5","stroke-dasharray":"314","stroke-dashoffset":"314"},a("animate",{attributeName:"stroke-dashoffset",from:"314",to:"0",dur:"1s",fill:"freeze"})),a("g",{transform:"translate(60,60)"},a("g",{id:"crossGroup"},a("line",{x1:"-20",y1:"-20",x2:"20",y2:"20",stroke:"#d03e00","stroke-width":"6","stroke-linecap":"round","stroke-dasharray":"57","stroke-dashoffset":"57"},a("animate",{attributeName:"stroke-dashoffset",from:"57",to:"0",dur:"0.3s",begin:"1s",fill:"freeze"})),a("line",{x1:"20",y1:"-20",x2:"-20",y2:"20",stroke:"#d03e00","stroke-width":"6","stroke-linecap":"round","stroke-dasharray":"57","stroke-dashoffset":"57"},a("animate",{attributeName:"stroke-dashoffset",from:"57",to:"0",dur:"0.3s",begin:"1.3s",fill:"freeze"}))))),es=Yp;function jp(){let{error:t,success:e}=ee(),{i18n:o}=be();return!t&&!e?null:a("div",{className:"straumur__result-component"},t&&a(Q,null,a(es,null),a("p",{className:"straumur__result-component__error--message"},o.t(t))),e&&a(Q,null,a(Qr,null),a("p",{className:"straumur__result-component__success--message"},o.t(e))))}var ad=jp;function Gp({children:t}){let{error:e,success:o}=ee();return e||o?null:a(Q,null,t)}var id=Gp;$(`.instant-payments{display:grid;gap:var(--straumur__space-md);grid-template-columns:1fr 1fr}.instant-payments--single{grid-template-columns:1fr}
14
+ `);var Hp=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 120 120"},a("circle",{cx:"60",cy:"60",r:"50",fill:"none",stroke:"#5b8206","stroke-width":"5","stroke-dasharray":"314","stroke-dashoffset":"314"},a("animate",{attributeName:"stroke-dashoffset",from:"314",to:"0",dur:"1s",fill:"freeze"})),a("g",{transform:"translate(60,60)"},a("path",{d:"M-25 5 L-5 25 L25 -15",fill:"none",stroke:"#5b8206","stroke-width":"6","stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":"100","stroke-dashoffset":"100"},a("animate",{attributeName:"stroke-dashoffset",from:"100",to:"0",dur:"0.5s",begin:"1s",fill:"freeze"}),a("animateTransform",{attributeName:"transform",type:"scale",from:"1 1",to:"1.2 1.2",begin:"1.5s",dur:"0.2s",fill:"freeze",additive:"sum"}),a("animateTransform",{attributeName:"transform",type:"scale",from:"1.2 1.2",to:"1 1",begin:"1.7s",dur:"0.2s",fill:"freeze",additive:"sum"})))),Qr=Hp;var Yp=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 120 120"},a("circle",{cx:"60",cy:"60",r:"50",fill:"none",stroke:"#d03e00","stroke-width":"5","stroke-dasharray":"314","stroke-dashoffset":"314"},a("animate",{attributeName:"stroke-dashoffset",from:"314",to:"0",dur:"1s",fill:"freeze"})),a("g",{transform:"translate(60,60)"},a("g",{id:"crossGroup"},a("line",{x1:"-20",y1:"-20",x2:"20",y2:"20",stroke:"#d03e00","stroke-width":"6","stroke-linecap":"round","stroke-dasharray":"57","stroke-dashoffset":"57"},a("animate",{attributeName:"stroke-dashoffset",from:"57",to:"0",dur:"0.3s",begin:"1s",fill:"freeze"})),a("line",{x1:"20",y1:"-20",x2:"-20",y2:"20",stroke:"#d03e00","stroke-width":"6","stroke-linecap":"round","stroke-dasharray":"57","stroke-dashoffset":"57"},a("animate",{attributeName:"stroke-dashoffset",from:"57",to:"0",dur:"0.3s",begin:"1.3s",fill:"freeze"}))))),es=Yp;function jp(){let{error:t,success:e}=ee(),{i18n:o}=be();return!t&&!e?null:a("div",{className:"straumur__result-component"},t&&a(Q,null,a(es,null),a("p",{className:"straumur__result-component__error--message"},o.t(t))),e&&a(Q,null,a(Qr,null),a("p",{className:"straumur__result-component__success--message"},o.t(e))))}var ad=jp;function Gp({children:t}){let{error:e,success:o}=ee();return e||o?null:a(Q,null,t)}var id=Gp;$(`.instant-payments{display:grid;gap:var(--straumur__space-md);grid-template-columns:1fr 1fr}.instant-payments--single{grid-template-columns:1fr}@media(max-width:527px){.instant-payments{grid-template-columns:1fr}}
15
15
  `);function zp({configuration:t,paymentMethods:e}){let{hasGooglePay:o,hasApplePay:r}=ee(),[s,n]=U(new Set),i=l=>{n(h=>new Set(h).add(l))};if(!t.instantPayments)return null;let c=["googlepay","applepay"],p=t.instantPayments.filter(l=>c.includes(l)).filter(l=>l==="googlepay"?o:r),u=p.filter(l=>!s.has(l));return p.length===0?null:a("div",{class:`instant-payments ${u.length>1?"instant-payments--multiple":"instant-payments--single"}`,style:{display:u.length===0?"none":void 0}},p.map(l=>l==="googlepay"?a(Xr,{key:l,configuration:t,paymentMethods:e,showPaymentButton:!0,isInstantPayment:!0,onUnavailable:()=>i("googlepay")}):l==="applepay"?a(Jr,{key:l,configuration:t,paymentMethods:e,showPaymentButton:!0,isInstantPayment:!0,onUnavailable:()=>i("applepay")}):null))}var ld=zp;function $p(t,e,o,r,s){let n=e&&!s?.some(d=>d==="googlepay"),i=o&&!s?.some(d=>d==="applepay");return r+(t?1:0)+(n?1:0)+(i?1:0)!==1?{initialPaymentMethod:null,isSolePaymentMethod:!1}:r===1?{initialPaymentMethod:"storedcard",isSolePaymentMethod:!0}:t?{initialPaymentMethod:"card",isSolePaymentMethod:!0}:n?{initialPaymentMethod:"googlepay",isSolePaymentMethod:!0}:i?{initialPaymentMethod:"applepay",isSolePaymentMethod:!0}:{initialPaymentMethod:null,isSolePaymentMethod:!1}}function Kp({configuration:t,paymentMethods:e}){let o=e.paymentMethods.paymentMethods??[],r=e.paymentMethods.storedPaymentMethods??[],s=o.some(u=>u.type==="scheme"),n=o.some(u=>u.type==="googlepay"),i=o.some(u=>u.type==="applepay"),c=r.length>0,{initialPaymentMethod:d,isSolePaymentMethod:p}=$p(s,n,i,r.length,t.instantPayments);return a(nd,{initialValue:d,isSolePaymentMethod:p,hasCard:s,hasGooglePay:n,hasApplePay:i,hasStoredPaymentMethods:c},a(id,null,a(ld,{configuration:t,paymentMethods:e}),a(sd,{configuration:t,paymentMethods:e}),a(Xc,{configuration:t,paymentMethods:e}),a(Qc,{configuration:t,paymentMethods:e}),a(td,{configuration:t,paymentMethods:e})),a(ad,null))}var cd=Kp;var dd={"en-US":{"cards.title":"Card payment","cards.cardNumber":"Card number","cards.expiryDate":"Expiry date","cards.securityCode3Digits":"Security code","cards.securityCode3DigitsOptional":"Security code (optional)","cards.securityCode3DigitsInfo":"3-digit on the back of the card","cards.securityCode4DigitsInfo":"4-digit on the back of the card","cards.storePaymentMethod":"Store payment information","googlePay.title":"Google Pay","applePay.title":"Apple Pay","stored-cards.expiryDate":"Expiry date","stored-cards.securityCode3Digits":"Security code","stored-cards.securityCode3DigitsOptional":"Security code (optional)","stored-cards.securityCode3DigitsInfo":"3-digit on the back of the card","stored-cards.securityCode4DigitsInfo":"4-digit on the back of the card","stored-cards.removeStoredCard":"Remove","stored-cards.removeStoredCardQuestion":"Remove stored payment method?","stored-cards.removeStoredCardQuestionYesRemove":"Yes, remove","stored-cards.removeStoredCardQuestionCancel":"Cancel","success.paymentAuthorized":"Payment authorized","error.unknownError":"Unknown error occurred","error.failedToInitializeStraumurWebComponent":"Failed to initialize Straumur Web component","error.failedToInitializePaymentMethods":"Failed to initialize payment methods","error.failedToSubmitPayment":"Failed to submit payment","error.paymentFailed":"Payment failed","error.paymentUnsuccessful":"Payment unsuccessful","error.failedToSubmitPaymentDetails":"Failed to submit payment details","error.paymentDetailsFailed":"Payment details failed","error.googlePayNotAvailable":"Google Pay not available","error.applePayNotAvailable":"Apple Pay not available","error.failedToSubmitRemoveStoredPaymentCard":"Failed to remove stored payment card","error.failedToRemoveStoredPaymentCard":"Stored payment card was not removed"},"is-IS":{"cards.title":"Grei\xF0a me\xF0 korti","cards.cardNumber":"Kortan\xFAmer","cards.expiryDate":"Gildisdagur","cards.securityCode3Digits":"\xD6ryggisk\xF3\xF0i","cards.securityCode3DigitsOptional":"\xD6ryggisk\xF3\xF0i (valkv\xE6tt)","cards.securityCode3DigitsInfo":"3 t\xF6lustafir aftan \xE1 kortinu","cards.securityCode4DigitsInfo":"4 t\xF6lustafir aftan \xE1 kortinu","cards.storePaymentMethod":"Vista grei\xF0sluuppl\xFDsingar","googlePay.title":"Google Pay","applePay.title":"Apple Pay","stored-cards.expiryDate":"Gildisdagur","stored-cards.securityCode3Digits":"\xD6ryggisk\xF3\xF0i","stored-cards.securityCode3DigitsOptional":"\xD6ryggisk\xF3\xF0i (valkv\xE6tt)","stored-cards.securityCode3DigitsInfo":"3 t\xF6lustafir aftan \xE1 kortinu","stored-cards.securityCode4DigitsInfo":"4 t\xF6lustafir aftan \xE1 kortinu","stored-cards.removeStoredCard":"Fjarl\xE6gja","stored-cards.removeStoredCardQuestion":"Fjarl\xE6gja geymdan grei\xF0slum\xE1ta?","stored-cards.removeStoredCardQuestionYesRemove":"J\xE1, fjarl\xE6gja","stored-cards.removeStoredCardQuestionCancel":"H\xE6tta vi\xF0","success.paymentAuthorized":"Grei\xF0sla sam\xFEykkt","error.unknownError":"\xD3\xFEekkt villa kom upp","error.failedToInitializeStraumurWebComponent":"Mist\xF3kst a\xF0 s\xE6kja Straumur Web hluta","error.failedToInitializePaymentMethods":"Mist\xF3kst a\xF0 s\xE6kja grei\xF0slum\xE1ta","error.failedToSubmitPayment":"Mist\xF3kst a\xF0 senda grei\xF0slu","error.paymentFailed":"Grei\xF0sla mist\xF3kst","error.paymentUnsuccessful":"Grei\xF0sla ekki tekin","error.failedToSubmitPaymentDetails":"Mist\xF3kst a\xF0 senda grei\xF0sluuppl\xFDsingar","error.paymentDetailsFailed":"Mist\xF3kst a\xF0 s\xE6kja grei\xF0sluuppl\xFDsingar","error.googlePayNotAvailable":"Google Pay ekki \xED bo\xF0i","error.applePayNotAvailable":"Apple Pay ekki \xED bo\xF0i","error.failedToSubmitRemoveStoredPaymentCard":"Mist\xF3kst a\xF0 fjarl\xE6gja geymdan grei\xF0slum\xE1ta","error.failedToRemoveStoredPaymentCard":"Geymdur grei\xF0slum\xE1ti var ekki fjarl\xE6g\xF0ur"}};var ts=class{constructor(e,o){this.language=e;this.customLocalizations=o}t(e){return this.customLocalizations?.[this.language]?.[e]||dd[this.language][e]||e}setLanguage(e){this.language=e}updateCustomLocalizations(e){this.customLocalizations=e}};var In=class{configuration;paymentMethods=null;mountElement=null;i18n;constructor(e){this.configuration={...e,locale:o(e.locale),customLocalizations:e.localizations},this.i18n=new ts(this.configuration.locale,this.configuration.customLocalizations);function o(r){switch(r){case"is":return"is-IS";case"en":return"en-US";default:return"is-IS"}}}async mount(e){try{if(this.mountElement=typeof e=="string"?document.querySelector(e):e,!this.mountElement){this.handleError("error.failedToInitializeStraumurWebComponent");return}Ht(a(os,null,a("div",{className:"straumur__component"},a(Ge,null))),this.mountElement);let o=await bs(this.configuration.environment,this.configuration.sessionId);if(o.resultCode==="Error"){this.handleError(o.error);return}this.paymentMethods=o,this.configuration.locale=this.configuration.locale||this.paymentMethods.locale,this.renderComponent()}catch{}}renderComponent(){this.mountElement&&Ht(a(os,null,a(aa,{i18nService:this.i18n,onLanguageChange:e=>{this.configuration.locale=e,this.renderComponent()}},a(cd,{configuration:this.configuration,paymentMethods:this.paymentMethods}))),this.mountElement)}handleSuccess(e){Ht(a(os,null,a("div",{className:"straumur__component"},a(Qr,null),a("p",null,this.i18n.t(e)))),this.mountElement)}handleError(e){Ht(a(os,null,a("div",{className:"straumur__component"},a(es,null),a("p",null,this.i18n.t(e)))),this.mountElement)}async submitDetails(e){let o=await bs(this.configuration.environment,this.configuration.sessionId);if(o.resultCode==="Error"){this.handleError(o.error);return}(await Ee({environment:this.configuration.environment,clientKey:o.clientKey,paymentMethodsResponse:o.paymentMethods,countryCode:"IS",onAdditionalDetails:this.handleOnSubmitAdditionalData})).submitDetails({details:{redirectResult:e}})}async handleOnSubmitAdditionalData(e,o,r){let s={...e.data,sessionId:this.configuration.sessionId},n=await Fe(this.configuration.environment,s);if(!n.ok){r.reject(),this.handleError("error.failedToSubmitPaymentDetails");return}let i=await n.json();if(!i.resultCode){r.reject(),this.handleError("error.paymentDetailsFailed");return}let{resultCode:c,action:d}=i;r.resolve({resultCode:c,action:d}),c==="Authorised"?this.handleSuccess("success.paymentAuthorized"):this.handleError("error.paymentUnsuccessful")}updateConfig(e){this.configuration={...this.configuration,...e},e.locale&&this.i18n.setLanguage(e.locale),e.customLocalizations&&this.i18n.updateCustomLocalizations(e.customLocalizations),this.mountElement&&this.renderComponent()}setLanguage(e){this.updateConfig({locale:e})}destroy(){this.mountElement&&(Ht(null,this.mountElement),this.mountElement=null)}},pd=In;function os({children:t}){return a("div",{className:"straumur__root-component"},t)}return yd(Wp);})();
16
16
  /*! Bundled license information:
17
17