straumur-web-component 1.1.2 → 1.1.3-alpha.2

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.mjs CHANGED
@@ -1,13 +1,13 @@
1
- import{h as T,render as ge}from"preact";function g(e,{insertAt:r}={}){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",r==="top"&&t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}g(`: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%}
2
- `);var Gr=()=>({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"}),ae=Gr();function Ce(e){switch(e){case"test":return ae.STAGING_BASE_URL;case"live":return ae.PRODUCTION_BASE_URL;default:throw new Error(`Unknown environment: ${e}`)}}function or(e,r){return fetch(`${Ce(e)}/${ae.GET_PAYMENT_METHODS_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}function Q(e,r){return fetch(`${Ce(e)}/${ae.POST_PAYMENT_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}function V(e,r){return fetch(`${Ce(e)}/${ae.POST_DETAILS_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}function ar(e,r){return fetch(`${Ce(e)}/${ae.POST_DISABLE_TOKEN_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}async function je(e,r){try{let t=await or(e,{sessionId:r});if(!t.ok){let l=t.headers.get("content-type"),s="error.failedToInitializePaymentMethods";return l&&l.includes("application/json")&&(s=(await t.json()).errorMessage),{resultCode:"Error",error:s}}return{resultCode:"Success",...await t.json()}}catch{return{resultCode:"Error",error:"error.failedToInitializePaymentMethods"}}}import{h as oe}from"preact";import{h as X}from"preact";import{useState as ht}from"preact/hooks";g(`.straumur__card-component{position:relative;cursor:pointer;background:var(--straumur__color-white);border-radius:var(--straumur__border-radius-lg);transition:all .3s ease;padding:var(--straumur__space-xxlg) var(--straumur__space-5xlg)}.straumur__card-component__radio-selector{position:absolute;opacity:0;cursor:pointer}.straumur__card-component__content{display:grid;grid-template-columns:26px 40px auto 1fr;align-items:center;gap:var(--straumur__space-lg);transition:background-color .3s ease}.straumur__card-component__radio-selector:checked+.straumur__card-component__content{padding-bottom:var(--straumur__space-xxlg)}.straumur__card-component--circle{width:var(--straumur__space-5xlg);height:var(--straumur__space-5xlg);border:1px solid var(--straumur__color-cosmos-blue-gamma);background:var(--straumur__color-secondary-gamma);border-radius:50%;position:relative;transition:all .3s ease}.straumur__card-component__content:hover .straumur__card-component--circle{border:1px solid var(--straumur__color-cosmos-blue-delta)}.straumur__card-component--circle:after{content:"";position:absolute;width:100%;height:100%;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:transform .2s ease}.straumur__card-component__radio-selector:checked+.straumur__card-component__content .straumur__card-component--circle{background:var(--straumur__color-blue-beta);border-color:var(--straumur__color-transparent)}.straumur__card-component__radio-selector:checked+.straumur__card-component__content .straumur__card-component--circle:after{transform:translate(-50%,-50%) scale(1);background:var(--straumur__color-primary);height:var(--straumur__space-md);width:var(--straumur__space-md)}.straumur__card-component--text{color:#213547;font-size:1rem;user-select:none}.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);max-height:0;overflow:hidden;transition:all .3s ease;opacity:0}.straumur__card-component__loading-text{display:flex;justify-content:center}.straumur__card-component__radio-selector:checked~.straumur__card-component__expandable{max-height:600px;opacity:1}.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
- `);import{h as Or}from"preact";import{createContext as jr}from"preact";import{useState as ne,useContext as Vr}from"preact/hooks";var nr=jr(void 0),Kr={card:!1,storedcard:!1,googlepay:!1,applepay:!1},sr=({children:e,initialValue:r})=>{let[t,n]=ne(r),[l,s]=ne(null),[a,i]=ne(!1),[w,P]=ne(Kr),[_,B]=ne({}),[C,G]=ne(null),[H,F]=ne(null),U=(p,j)=>{P(d=>({...d,[p]:j}))},J=(p,j)=>{B(d=>({...d,[p]:j}))},E=p=>{F(p)},O=p=>{G(p)};return Or(nr.Provider,{value:{activePaymentMethod:t,setActivePaymentMethod:n,activeStoredPaymentMethodId:l,setActiveStoredPaymentMethodId:s,isPaymentMethodInitialized:w,updatePaymentMethodInitialization:U,isStoredCardInitialized:_,updateStoredCardInitialization:J,handleSuccess:O,success:C,handleError:E,error:H,threeDSecureActive:a,setThreeDSecureActive:i}},e)},S=()=>{let e=Vr(nr);if(e===void 0)throw new Error("usePaymentMethodGroup must be used within a PaymentMethodGroup");return e};import{h as Jr}from"preact";import{createContext as $r}from"preact";import{useContext as Wr}from"preact/hooks";var ir=$r(void 0),cr=({children:e,i18nService:r,onLanguageChange:t})=>{let n=l=>{r.setLanguage(l),t?.(l)};return Jr(ir.Provider,{value:{i18n:r,changeLanguage:n}},e)},L=()=>{let e=Wr(ir);if(!e)throw new Error("useI18n must be used within an I18nProvider");return e};import{h as Ve}from"preact";var Xr=()=>Ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",viewBox:"0 0 24 24",fill:"none"},Ve("path",{d:"M24 11H0V7H24V11Z",fill:"#002649"}),Ve("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"})),lr=Xr;import{Fragment as yr,h as z}from"preact";import{h as ve}from"preact";var qr=({opacity:e=1})=>ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",viewBox:"0 0 40 26",opacity:e},ve("path",{fill:"#fff",d:"M0 0h40v26H0z"}),ve("path",{fill:"#F06022",d:"M16.13 19.29h7.74V6.7h-7.74v12.58z"}),ve("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"}),ve("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"})),dr=qr;import{h as Ke}from"preact";var Qr=({opacity:e=1})=>Ke("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:e},Ke("path",{fill:"#fff",d:"M0 0h40v26H0z"}),Ke("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"})),mr=Qr;import{h as ye}from"preact";var Yr=({opacity:e=1})=>ye("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:e},ye("path",{fill:"#fff",d:"M0 0h40v26H0z"}),ye("path",{fill:"#7773B4",d:"M16.13 19.29h7.74V6.7h-7.74v12.58z"}),ye("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"}),ye("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"})),ur=Yr;import{h as Je}from"preact";var et=({opacity:e=1})=>Je("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 26",width:"40",height:"26",opacity:e},Je("path",{fill:"#016FD0",d:"M0 26h40V0H0v26z"}),Je("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"})),pr=et;import{h as m}from"preact";var rt=({opacity:e=1})=>m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:e},m("g",{"clip-path":"url(#a)"},m("path",{fill:"#fff",d:"M0 0h40v26H0V0Z"}),m("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"}),m("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"}),m("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"}),m("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"}),m("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"}),m("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"})),m("defs",null,m("linearGradient",{id:"b",x1:"25.52",x2:"34.75",y1:"14.38",y2:"14.38",gradientUnits:"userSpaceOnUse"},m("stop",{offset:"0","stop-color":"#007940"}),m("stop",{offset:".23","stop-color":"#00873F"}),m("stop",{offset:".74","stop-color":"#40A737"}),m("stop",{offset:"1","stop-color":"#5CB531"})),m("linearGradient",{id:"c",x1:"25.52",x2:"34.75",y1:"12.94",y2:"12.94",gradientUnits:"userSpaceOnUse"},m("stop",{offset:"0","stop-color":"#007940"}),m("stop",{offset:".23","stop-color":"#00873F"}),m("stop",{offset:".74","stop-color":"#40A737"}),m("stop",{offset:"1","stop-color":"#5CB531"})),m("linearGradient",{id:"d",x1:"25.52",x2:"34.75",y1:"11.37",y2:"11.37",gradientUnits:"userSpaceOnUse"},m("stop",{offset:"0","stop-color":"#007940"}),m("stop",{offset:".23","stop-color":"#00873F"}),m("stop",{offset:".74","stop-color":"#40A737"}),m("stop",{offset:"1","stop-color":"#5CB531"})),m("linearGradient",{id:"e",x1:"4.86",x2:"14.24",y1:"12.94",y2:"12.94",gradientUnits:"userSpaceOnUse"},m("stop",{offset:"0","stop-color":"#1F286F"}),m("stop",{offset:".48","stop-color":"#004E94"}),m("stop",{offset:".83","stop-color":"#0066B1"}),m("stop",{offset:"1","stop-color":"#006FBC"})),m("linearGradient",{id:"f",x1:"15.15",x2:"24.25",y1:"12.94",y2:"12.94",gradientUnits:"userSpaceOnUse"},m("stop",{offset:"0","stop-color":"#6C2C2F"}),m("stop",{offset:".17","stop-color":"#882730"}),m("stop",{offset:".57","stop-color":"#BE1833"}),m("stop",{offset:".86","stop-color":"#DC0436"}),m("stop",{offset:"1","stop-color":"#E60039"})),m("clipPath",{id:"a"},m("path",{fill:"#fff",d:"M0 0h40v26H0z"})))),_r=rt;import{h as k}from"preact";var tt=({opacity:e=1})=>k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 26",width:"40",height:"26",opacity:e},k("path",{fill:"#fff",d:"M0 0h40v26H0z"}),k("g",{fill:"#1a1918"},k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"})),k("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"}),k("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"})),fr=tt;import{h as o}from"preact";var ot=({opacity:e=1})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:e},o("path",{fill:"#fff",d:"M0 0h40v26H0z"}),o("g",{"clip-path":"url(#a)"},o("g",{"clip-path":"url(#b)"},o("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"})),o("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"}),o("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"}),o("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"}),o("mask",{id:"e",width:"6",height:"6",x:"18",y:"10",maskUnits:"userSpaceOnUse",style:"mask-type:luminance"},o("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"})),o("g",{mask:"url(#e)"},o("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"}))),o("g",{"clip-path":"url(#g)"},o("g",{"clip-path":"url(#h)"},o("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"})),o("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"}),o("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"}),o("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"}),o("mask",{id:"k",width:"6",height:"6",x:"18",y:"10",maskUnits:"userSpaceOnUse",style:"mask-type:luminance"},o("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"})),o("g",{mask:"url(#k)"},o("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"}))),o("defs",null,o("linearGradient",{id:"c",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F59F00"}),o("stop",{offset:".19","stop-color":"#F49B00"}),o("stop",{offset:".37","stop-color":"#F29101"}),o("stop",{offset:".5","stop-color":"#F08302"}),o("stop",{offset:".6","stop-color":"#EE7905"}),o("stop",{offset:".76","stop-color":"#EC7008"}),o("stop",{offset:"1","stop-color":"#EC6D09"})),o("linearGradient",{id:"d",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),o("stop",{offset:".04","stop-color":"#F48C1C","stop-opacity":".08"}),o("stop",{offset:".2","stop-color":"#F77314","stop-opacity":".32"}),o("stop",{offset:".35","stop-color":"#F95D0E","stop-opacity":".53"}),o("stop",{offset:".5","stop-color":"#FB4B09","stop-opacity":".7"}),o("stop",{offset:".64","stop-color":"#FD3D05","stop-opacity":".83"}),o("stop",{offset:".77","stop-color":"#FE3302","stop-opacity":".92"}),o("stop",{offset:".9","stop-color":"#FF2D01","stop-opacity":".98"}),o("stop",{offset:"1","stop-color":"#FF2B00"})),o("radialGradient",{id:"f",cx:"0",cy:"0",r:"1",gradientTransform:"rotate(4.24 -167.26 291.02) scale(3.3208)",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),o("stop",{offset:".45","stop-color":"#EA8D1D","stop-opacity":".05"}),o("stop",{offset:".66","stop-color":"#CA7618","stop-opacity":".2"}),o("stop",{offset:".83","stop-color":"#924D10","stop-opacity":".48"}),o("stop",{offset:".96","stop-color":"#441304","stop-opacity":".87"}),o("stop",{offset:".99","stop-color":"#2F0401","stop-opacity":".97"})),o("linearGradient",{id:"i",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F59F00"}),o("stop",{offset:".19","stop-color":"#F49B00"}),o("stop",{offset:".37","stop-color":"#F29101"}),o("stop",{offset:".5","stop-color":"#F08302"}),o("stop",{offset:".6","stop-color":"#EE7905"}),o("stop",{offset:".76","stop-color":"#EC7008"}),o("stop",{offset:"1","stop-color":"#EC6D09"})),o("linearGradient",{id:"j",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),o("stop",{offset:".04","stop-color":"#F48C1C","stop-opacity":".08"}),o("stop",{offset:".2","stop-color":"#F77314","stop-opacity":".32"}),o("stop",{offset:".35","stop-color":"#F95D0E","stop-opacity":".53"}),o("stop",{offset:".5","stop-color":"#FB4B09","stop-opacity":".7"}),o("stop",{offset:".64","stop-color":"#FD3D05","stop-opacity":".83"}),o("stop",{offset:".77","stop-color":"#FE3302","stop-opacity":".92"}),o("stop",{offset:".9","stop-color":"#FF2D01","stop-opacity":".98"}),o("stop",{offset:"1","stop-color":"#FF2B00"})),o("radialGradient",{id:"l",cx:"0",cy:"0",r:"1",gradientTransform:"rotate(4.24 -167.26 291.02) scale(3.3208)",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),o("stop",{offset:".45","stop-color":"#EA8D1D","stop-opacity":".05"}),o("stop",{offset:".66","stop-color":"#CA7618","stop-opacity":".2"}),o("stop",{offset:".83","stop-color":"#924D10","stop-opacity":".48"}),o("stop",{offset:".96","stop-color":"#441304","stop-opacity":".87"}),o("stop",{offset:".99","stop-color":"#2F0401","stop-opacity":".97"})),o("clipPath",{id:"a"},o("path",{fill:"#fff",d:"M0 0h33v5.55H0z",transform:"translate(3.5 10)"})),o("clipPath",{id:"b"},o("path",{fill:"#fff",d:"M0 0h33v5.86H0z",transform:"translate(3.5 10)"})),o("clipPath",{id:"g"},o("path",{fill:"#fff",d:"M0 0h33v5.55H0z",transform:"translate(3.5 10)"})),o("clipPath",{id:"h"},o("path",{fill:"#fff",d:"M0 0h33v5.86H0z",transform:"translate(3.5 10)"})))),hr=ot;import{h as me}from"preact";var at=({opacity:e=1})=>me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 26",width:"40",height:"26",opacity:e},me("rect",{width:"45.3",height:"27",x:"-3.3",y:"-.79",fill:"#fff",rx:"2.82"}),me("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"}),me("rect",{width:"20.38",height:"29.02",x:"-4",y:"-.79",fill:"#dc1f2b",rx:"2.82"}),me("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"}),me("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"})),vr=at;import{h as $e}from"preact";g(`.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
- `);import{useRef as nt,useState as st}from"preact/hooks";var ue=({children:e,content:r})=>{let[t,n]=st(!1),l=nt(null);return $e("div",{style:{position:"relative"}},$e("div",{ref:l,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)}},e),t&&l&&$e("div",{className:"straumur__tooltip__content"},r))};import{useEffect as it,useState as ct}from"preact/hooks";function We(e){let r=()=>window.matchMedia(e).matches,[t,n]=ct(r);return it(()=>{let l=window.matchMedia(e),s=a=>n(a.matches);return n(l.matches),l.addEventListener("change",s),()=>{l.removeEventListener("change",s)}},[e]),t}function Pe({brands:e,brandHidden:r=[],limit:t=3}){let n=We("(max-width: 380px)"),s=We("(max-width: 335px)")?1:n?2:t,a=e.filter(i=>{let{brand:w}=i;return!r.some(_=>_.brand===w)});return z(yr,null,a.map(({brand:i},w)=>w>=Math.min(t,s)?w===Math.min(t,s)?z(ue,{content:z("span",{style:{display:"flex",gap:"4px",overflow:"visible"}},a.slice(Math.min(t,s)).map(({brand:P})=>z(xe,{key:P,brand:P})))},z("span",{key:i,className:"straumur__render-brand-icons__overflow"},"+",a.length-Math.min(t,s))):null:z(xe,{key:i,brand:i})))}var xe=({brand:e,defaultToBrandName:r=!0})=>{switch(e){case"visa":return z(mr,null);case"mc":return z(dr,null);case"maestro":return z(ur,null);case"amex":return z(pr,null);case"jcb":return z(_r,null);case"diners":return z(fr,null);case"discover":return z(hr,null);case"cup":return z(vr,null);default:return r?z("span",null,e):z(yr,null)}};import{Fragment as ut,h as f}from"preact";import{useRef as ke,useState as ce,useEffect as Xe}from"preact/hooks";import{AdyenCheckout as pt,CustomCard as _t}from"@adyen/adyen-web";import{h as se}from"preact";var lt=()=>se("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},se("g",{"clip-path":"url(#clip0_10626_39119)"},se("path",{d:"M10.6641 7.5C11.3543 7.5 11.9141 6.94023 11.9141 6.25C11.9141 5.55977 11.3543 5 10.6641 5C9.97383 5 9.41406 5.55859 9.41406 6.25C9.41406 6.94141 9.97266 7.5 10.6641 7.5ZM12.2266 13.125H11.6016V9.6875C11.6016 9.17188 11.1836 8.75 10.6641 8.75H9.41406C8.89844 8.75 8.47656 9.17188 8.47656 9.6875C8.47656 10.2031 8.89844 10.625 9.41406 10.625H9.72656V13.125H9.10156C8.58594 13.125 8.16406 13.5469 8.16406 14.0625C8.16406 14.5781 8.58594 15 9.10156 15H12.2266C12.7441 15 13.1641 14.5801 13.1641 14.0625C13.1641 13.5449 12.7461 13.125 12.2266 13.125Z",fill:"#002649"}),se("path",{opacity:"0.4",d:"M10.6641 0C5.14062 0 0.664062 4.47656 0.664062 10C0.664062 15.5234 5.14062 20 10.6641 20C16.1875 20 20.6641 15.5234 20.6641 10C20.6641 4.47656 16.1875 0 10.6641 0ZM10.6641 5C11.3543 5 11.9141 5.55977 11.9141 6.25C11.9141 6.94023 11.3543 7.5 10.6641 7.5C9.97383 7.5 9.41406 6.94141 9.41406 6.25C9.41406 5.55859 9.97266 5 10.6641 5ZM12.2266 15H9.10156C8.58594 15 8.16406 14.582 8.16406 14.0625C8.16406 13.543 8.58398 13.125 9.10156 13.125H9.72656V10.625H9.41406C8.89648 10.625 8.47656 10.2051 8.47656 9.6875C8.47656 9.16992 8.89844 8.75 9.41406 8.75H10.6641C11.1816 8.75 11.6016 9.16992 11.6016 9.6875V13.125H12.2266C12.7441 13.125 13.1641 13.5449 13.1641 14.0625C13.1641 14.5801 12.7461 15 12.2266 15Z",fill:"#002649"})),se("defs",null,se("clipPath",{id:"clip0_10626_39119"},se("rect",{width:"20",height:"20",fill:"white",transform:"translate(0.664062)"})))),Se=lt;import{h as pe}from"preact";var dt=()=>pe("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",stroke:"#002649"},pe("g",{fill:"none","fill-rule":"evenodd"},pe("g",{transform:"translate(2 2)","stroke-width":"4"},pe("circle",{"stroke-opacity":".3",cx:"18",cy:"18",r:"18"}),pe("path",{d:"M36 18c0-9.94-8.06-18-18-18"},pe("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),K=dt;import{h as gr}from"preact";var mt=({color:e="var(--straumur__color-primary)"})=>gr("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"13",viewBox:"0 0 16 13",fill:"none"},gr("path",{d:"M2 7L6 11L14 2",stroke:e,"stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})),we=mt;import{h as ie}from"preact";function br({brand:e,brandName:r,isSelected:t,onBrandClick:n}){return ie("span",{className:"straumur__card-component__dual-branding--logo"+(t?" straumur__card-component__dual-branding--logo--selected":""),title:e,"data-value":e,onClick:n},ie("div",{className:"straumur__card-component__dual-branding--logo--item"},ie(xe,{brand:e,defaultToBrandName:!1}),"\xA0",r??""),t&&ie(we,{color:"var(--straumur__color-neon-green-zeta)"}))}function Cr({dualBrandConfiguration:e,selectedBrand:r,onBrandClick:t}){return ie("div",{className:"straumur__card-component__dual-branding"},ie(br,{brand:e.brand1,brandName:e.brand1Name,isSelected:r===e.brand1,onBrandClick:t}),ie(br,{brand:e.brand2,brandName:e.brand2Name,isSelected:r===e.brand2,onBrandClick:t}))}function ft({configuration:e,paymentMethods:r,onBrandHidden:t}){let n=ke(null),l=ke(),s=ke(),{i18n:a}=L(),[i,w]=ce(!0),[P,_]=ce("required"),[B,C]=ce(!1),[G,H]=ce(!1),[F,U]=ce(null),[J,E]=ce(null),O=ke(!1),[p,j]=ce({encryptedCardNumber:{visible:!1},encryptedExpiryDate:{visible:!1},encryptedSecurityCode:{visible:!1}}),d=r.paymentMethods.paymentMethods?.some(c=>c.type==="scheme"),{activePaymentMethod:h,isPaymentMethodInitialized:v,updatePaymentMethodInitialization:M,handleSuccess:I,handleError:x,setThreeDSecureActive:R,threeDSecureActive:N}=S();if(!d||h!=="card"&&N)return null;let _e=r.paymentMethods.paymentMethods.find(c=>c.type==="scheme").brands,be=async()=>{l.current=await pt({clientKey:r.clientKey,environment:e.environment,locale:e.locale,countryCode:"IS",paymentMethodsResponse:r.paymentMethods,amount:{value:r.minorUnitsAmount,currency:r.currency},onSubmit:Le,onAdditionalDetails:Ge,onError:He,onPaymentCompleted:b,onPaymentFailed:Z}),s.current=new _t(l.current,{brands:_e,placeholders:e.placeholders,challengeWindowSize:"05",onBinLookup:c=>{c.supportedBrandsRaw&&c.supportedBrandsRaw.length>1&&(H(!0),U({brand1:c.supportedBrandsRaw[0].brand,brand1Name:c.supportedBrandsRaw[0].localeBrand,brand1ImageUrl:c.supportedBrandsRaw[0].brandImageUrl,brand2:c.supportedBrandsRaw[1].brand,brand2Name:c.supportedBrandsRaw[1].localeBrand,brand2ImageUrl:c.supportedBrandsRaw[1].brandImageUrl}))},onBrand:c=>{if(_(c.cvcPolicy),c.brand==="card"){t([]),E(null);return}let A=_e.filter(y=>y!==c.brand).map(y=>({brand:y}));t(A),_e.filter(y=>y===c.brand).map(y=>({brand:y})).length===1&&E(c.brand)},onConfigSuccess(){M("card",!0)},onValidationError:c=>{let A={encryptedCardNumber:{visible:!1,message:void 0},encryptedExpiryDate:{visible:!1,message:void 0},encryptedSecurityCode:{visible:!1,message:void 0}};c.filter(y=>y.error).forEach(y=>{A[y.fieldType].visible=!0,A[y.fieldType].message=y.errorI18n}),j(A)},onAllValid:c=>{w(!c.allValid)}}),n.current&&s.current.mount(n.current)};if(Xe(()=>{h==="card"&&!v.card&&be()},[e,h]),Xe(()=>{s.current&&v.card&&(be(),j({encryptedCardNumber:{visible:!1,message:void 0},encryptedExpiryDate:{visible:!1,message:void 0},encryptedSecurityCode:{visible:!1,message:void 0}}))},[e]),r.paymentMethods?.paymentMethods?.length===0)return null;function Ue(c){s.current.dualBrandingChangeHandler(c)}function Ze(c){C(c.currentTarget.checked)}function He(c,A){x("error.unknownError")}Xe(()=>{O.current=B},[B]);async function Le(c,A,y){let $={...c.data,storePaymentMethod:O.current,sessionId:e.sessionId},W=await Q(e.environment,$);if(!W.ok){y.reject(),x("error.failedToSubmitPayment");return}let fe=await W.json();if(!fe.resultCode){y.reject(),x("error.paymentFailed");return}let{resultCode:he,action:Oe}=fe;(he==="ChallengeShopper"||he==="IdentifyShopper")&&R(!0),y.resolve({resultCode:he,action:Oe})}async function Ge(c,A,y){let $={...c.data,sessionId:e.sessionId},W=await V(e.environment,$);if(!W.ok){y.reject(),x("error.failedToSubmitPaymentDetails");return}let fe=await W.json();if(!fe.resultCode){y.reject(),x("error.paymentDetailsFailed");return}let{resultCode:he,action:Oe}=fe;y.resolve({resultCode:he,action:Oe})}function b(c,A){c.resultCode==="Authorised"?I("success.paymentAuthorized"):x("error.paymentUnsuccessful"),e.onPaymentCompleted?.({resultCode:c.resultCode})}function Z(c,A){c?(c.resultCode==="Authorised"?I("success.paymentAuthorized"):x("error.paymentUnsuccessful"),e.onPaymentFailed?.({resultCode:c.resultCode})):e.onPaymentFailed?.()}function D(){s.current&&s.current.submit()}return f("div",{className:"straumur__card-component__expandable",ref:n,style:{height:N?"600px":"auto",minWidth:N?"350px":"auto"}},!v.card&&f("div",{className:"straumur__card-component__loading-text"},f(K,null)),f("div",{className:"straumur__card-component__form",style:{opacity:v.card&&!N?1:0,position:v.card&&!N?"relative":"absolute",transition:"opacity 0.3s ease-in-out"}},f("div",{className:"straumur__card-component__form--wrapper"},f("label",{className:`straumur__card-component__form--wrapper--label ${p.encryptedCardNumber.visible?"straumur__card-component__form--wrapper--label--error":""}`},a.t("cards.cardNumber")),f("span",{className:`straumur__card-component__form--wrapper--input ${p.encryptedCardNumber.visible?"straumur__card-component__form--wrapper--input--error":""}`,"data-cse":"encryptedCardNumber"}),p.encryptedCardNumber.visible&&f("span",{className:"straumur__card-component__form--wrapper--error"},p.encryptedCardNumber.message)),f("div",{className:"straumur__card-component__form--field-wrapper"},f("div",{className:"straumur__card-component__form--wrapper"},f("label",{className:`straumur__card-component__form--wrapper--label ${p.encryptedExpiryDate.visible?"straumur__card-component__form--wrapper--label--error":""}`},a.t("cards.expiryDate")),f("span",{className:`straumur__card-component__form--wrapper--input ${p.encryptedExpiryDate.visible?"straumur__card-component__form--wrapper--input--error":""}`,"data-cse":"encryptedExpiryDate"}),p.encryptedExpiryDate.visible&&f("span",{className:"straumur__card-component__form--wrapper--error"},p.encryptedExpiryDate.message)),f("div",{className:"straumur__card-component__form--wrapper"},(P==="optional"||P==="required")&&f(ut,null,f("label",{className:`straumur__card-component__form--wrapper--label ${p.encryptedSecurityCode.visible?"straumur__card-component__form--wrapper--label--error":""}`},P==="optional"?a.t("cards.securityCode3DigitsOptional"):a.t("cards.securityCode3Digits")),f("span",{className:`straumur__card-component__form--wrapper--input ${p.encryptedSecurityCode.visible?"straumur__card-component__form--wrapper--input--error":""}`,"data-cse":"encryptedSecurityCode"}),p.encryptedSecurityCode.visible&&f("span",{className:"straumur__card-component__form--wrapper--error"},p.encryptedSecurityCode.message),f("div",{className:"straumur__card-component__form--wrapper--label--info"},f(ue,{content:f("span",null,a.t("cards.securityCode3DigitsInfo"))},f(Se,null)))))),G&&F&&f(Cr,{dualBrandConfiguration:F,selectedBrand:J,onBrandClick:Ue}),r.enableStoreDetails==="AskForConsent"&&f("label",{className:"straumur__card-component__form--wrapper--label-checkbox"},f("div",{className:`straumur__card-component__form--wrapper--label-checkbox--checkmark ${B?"straumur__card-component__form--wrapper--label-checkbox--checkmark--checked":""}`},f("div",{className:`straumur__card-component__form--wrapper--label-checkbox--checkmark--icon ${B?"straumur__card-component__form--wrapper--label-checkbox--checkmark--icon--checked":""}`},f(we,null))),f("input",{type:"checkbox",className:"straumur__card-component__form--wrapper--label-checkbox--checkbox",checked:B,onChange:Ze}),a.t("cards.storePaymentMethod")),f("button",{className:"straumur__card-component__submit-button",disabled:i,onClick:D},r.formattedAmount)))}var xr=ft;function vt({configuration:e,paymentMethods:r}){let{i18n:t}=L(),[n,l]=ht([]),{activePaymentMethod:s,setActivePaymentMethod:a,threeDSecureActive:i}=S();if(!r.paymentMethods.paymentMethods?.some(C=>C.type==="scheme")||s!=="card"&&i)return null;let _=r.paymentMethods.paymentMethods.find(C=>C.type==="scheme").brands.map(C=>({brand:C,brandFullName:C}));return X("label",{className:"straumur__card-component"},X("input",{type:"radio",className:"straumur__card-component__radio-selector",checked:s==="card",onChange:()=>{a("card")}}),X("span",{className:"straumur__card-component__content"},X("span",{className:"straumur__card-component--circle"}),X(lr,null),X("span",{className:"straumur__card-component--text"},t.t("cards.title")),X("span",{className:"straumur__card-component--brands"},X(Pe,{brands:_,brandHidden:n}))),X(xr,{configuration:e,paymentMethods:r,onBrandHidden:l}))}var Pr=vt;import{h as ee}from"preact";g(`.straumur__google-pay-component{position:relative;cursor:pointer;background:var(--straumur__color-white);border-radius:var(--straumur__border-radius-lg);transition:all .3s ease;padding:var(--straumur__space-xxlg) var(--straumur__space-5xlg)}.straumur__google-pay-component__radio-selector{position:absolute;opacity:0;cursor:pointer}.straumur__google-pay-component__content{display:flex;align-items:center;gap:var(--straumur__space-lg);transition:background-color .3s ease}.straumur__google-pay-component__radio-selector:checked+.straumur__google-pay-component__content{padding-bottom:var(--straumur__space-xxlg)}.straumur__google-pay-component--circle{width:var(--straumur__space-5xlg);height:var(--straumur__space-5xlg);border:1px solid var(--straumur__color-cosmos-blue-gamma);background:var(--straumur__color-secondary-gamma);border-radius:50%;position:relative;transition:all .3s ease}.straumur__google-pay-component__content:hover .straumur__google-pay-component--circle{border:1px solid var(--straumur__color-cosmos-blue-delta)}.straumur__google-pay-component--circle:after{content:"";position:absolute;width:100%;height:100%;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:transform .2s ease}.straumur__google-pay-component__radio-selector:checked+.straumur__google-pay-component__content .straumur__google-pay-component--circle{background:var(--straumur__color-blue-beta);border-color:var(--straumur__color-transparent)}.straumur__google-pay-component__radio-selector:checked+.straumur__google-pay-component__content .straumur__google-pay-component--circle:after{transform:translate(-50%,-50%) scale(1);background:var(--straumur__color-primary);height:var(--straumur__space-md);width:var(--straumur__space-md)}.straumur__google-pay-component--text{color:#213547;font-size:1rem;user-select:none}.straumur__google-pay-component__expandable{background:var(--straumur__color-white);max-height:0;overflow:hidden;transition:all .3s ease;opacity:0}.straumur__google-pay-component__radio-selector:checked~.straumur__google-pay-component__expandable{max-height:600px;opacity:1}.straumur__google-pay-component__expandable p{margin:0;color:#213547;font-size:.9rem}.adyen-checkout__paywithgoogle{height:var(--straumur__space-8xlg)}
5
- `);import{h as Y}from"preact";var yt=()=>Y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26"},Y("path",{fill:"#fff",d:"M29.13 2.41H10.87C5.17 2.41.5 7.18.5 13.01a10.5 10.5 0 0 0 10.37 10.58h18.26c5.7 0 10.37-4.76 10.37-10.59 0-5.82-4.67-10.59-10.37-10.59Z"}),Y("path",{fill:"#3C4043",d:"M29.13 3.27c1.28 0 2.52.26 3.7.77a9.6 9.6 0 0 1 5.08 5.19 9.78 9.78 0 0 1 0 7.55 9.83 9.83 0 0 1-5.08 5.18 9.26 9.26 0 0 1-3.7.77H10.87a9.24 9.24 0 0 1-3.7-.77 9.6 9.6 0 0 1-5.08-5.18 9.78 9.78 0 0 1 0-7.55 9.83 9.83 0 0 1 5.08-5.19 9.24 9.24 0 0 1 3.7-.77h18.26Zm0-.86H10.87C5.17 2.41.5 7.18.5 13.01a10.5 10.5 0 0 0 10.37 10.58h18.26c5.7 0 10.37-4.76 10.37-10.59 0-5.82-4.67-10.59-10.37-10.59Z"}),Y("path",{fill:"#3C4043",d:"M19.1 13.75v3.2h-1v-7.9h2.64c.67 0 1.24.23 1.7.68.49.46.72 1.01.72 1.67a2.2 2.2 0 0 1-.71 1.68c-.46.45-1.03.67-1.7.67H19.1Zm0-3.73v2.76h1.66c.4 0 .73-.14.99-.4.26-.28.4-.6.4-.98 0-.36-.14-.68-.4-.95a1.28 1.28 0 0 0-.99-.42H19.1Zm6.67 1.35c.73 0 1.31.2 1.74.6.42.4.64.95.64 1.65v3.34h-.95v-.76h-.04a1.9 1.9 0 0 1-1.65.93 2.1 2.1 0 0 1-1.46-.53c-.4-.35-.6-.8-.6-1.32 0-.56.21-1 .63-1.34.41-.33.97-.5 1.66-.5.59 0 1.07.12 1.45.34v-.23c0-.36-.13-.65-.4-.9a1.4 1.4 0 0 0-.97-.37c-.56 0-1 .24-1.32.72l-.88-.56a2.42 2.42 0 0 1 2.15-1.07Zm-1.29 3.92c0 .27.11.5.33.67.22.17.48.26.78.26.42 0 .79-.16 1.12-.48.32-.31.49-.68.49-1.11a2.02 2.02 0 0 0-1.3-.38c-.4 0-.74.1-1.01.3a.9.9 0 0 0-.4.74Zm9.08-3.75-3.32 7.8h-1.02l1.23-2.73-2.19-5.07h1.09l1.57 3.89h.02l1.54-3.89h1.08Z"}),Y("path",{fill:"#4285F4",d:"M15.14 13.1c0-.32-.03-.64-.09-.95h-4.17v1.75h2.4a2.1 2.1 0 0 1-.89 1.4v1.14h1.43a4.49 4.49 0 0 0 1.32-3.33Z"}),Y("path",{fill:"#34A853",d:"M12.4 15.3a2.66 2.66 0 0 1-4-1.44H6.9v1.18a4.43 4.43 0 0 0 6.91 1.4l-1.43-1.13Z"}),Y("path",{fill:"#FABB05",d:"M8.25 13c0-.3.05-.59.14-.86v-1.17H6.9a4.59 4.59 0 0 0 0 4.07l1.48-1.17a2.79 2.79 0 0 1-.14-.86Z"}),Y("path",{fill:"#E94235",d:"M10.88 10.27c.66 0 1.24.23 1.7.68l1.27-1.3a4.22 4.22 0 0 0-2.97-1.18 4.44 4.44 0 0 0-3.97 2.5l1.48 1.17a2.66 2.66 0 0 1 2.5-1.87Z"})),Sr=yt;g(`.straumur__google-pay-button__loading{display:flex;justify-content:center}
6
- `);import{Fragment as gt,h as Ee}from"preact";import{useEffect as wr,useRef as qe}from"preact/hooks";import{AdyenCheckout as bt,GooglePay as Ct}from"@adyen/adyen-web";var Ie="CANCEL";function xt({configuration:e,paymentMethods:r,showPaymentButton:t,isInstantPayment:n}){let l=qe(null),s=qe(),a=qe(),{isPaymentMethodInitialized:i,updatePaymentMethodInitialization:w,handleSuccess:P,handleError:_,setThreeDSecureActive:B,threeDSecureActive:C,setActivePaymentMethod:G,activePaymentMethod:H}=S(),F=async()=>{s.current=await bt({clientKey:r.clientKey,environment:e.environment,locale:r.locale,countryCode:"IS",paymentMethodsResponse:r.paymentMethods,amount:{value:r.minorUnitsAmount,currency:r.currency},onError:U,onAdditionalDetails:E,onPaymentCompleted:O,onPaymentFailed:p});let h=r.paymentMethods.paymentMethods.find(M=>M.type==="googlepay").configuration,v={amount:{value:r.minorUnitsAmount,currency:r.currency},challengeWindowSize:"05",countryCode:"IS",environment:e.environment,onSubmit:J,buttonSizeMode:"fill",configuration:{...h,merchantName:r.merchantName}};a.current=new Ct(s.current,v),a.current.isAvailable().then(()=>{a.current.mount(l.current),w("googlepay",!0)}).catch(()=>{_("error.googlePayNotAvailable")})};wr(()=>{t&&!i.googlepay&&F()},[e,t]),wr(()=>{a.current&&i.googlepay&&(a.current.remove(),F())},[e]);function U(d,h){d.name!==Ie&&_("error.unknownError")}async function J(d,h,v){n&&G("googlepay");let M={...d.data,sessionId:e.sessionId},I=await Q(e.environment,M);if(!I.ok){v.reject(),_("error.failedToSubmitPayment");return}let x=await I.json();if(!x.resultCode){v.reject(),_("error.paymentFailed");return}let{resultCode:R,action:N}=x;(R==="ChallengeShopper"||R==="IdentifyShopper")&&B(!0),v.resolve({resultCode:R,action:N})}async function E(d,h,v){let M={...d.data,sessionId:e.sessionId},I=await V(e.environment,M);if(!I.ok){v.reject(),_("error.failedToSubmitPaymentDetails");return}let x=await I.json();if(!x.resultCode){v.reject(),_("error.paymentDetailsFailed");return}let{resultCode:R,action:N}=x;v.resolve({resultCode:R,action:N})}function O(d,h){d.resultCode==="Authorised"?P("success.paymentAuthorized"):_("error.paymentUnsuccessful"),e.onPaymentCompleted?.({resultCode:d.resultCode})}function p(d,h){d?(d.resultCode==="Authorised"?P("success.paymentAuthorized"):_("error.paymentUnsuccessful"),e.onPaymentFailed?.({resultCode:d.resultCode})):e.onPaymentFailed?.()}return!r.paymentMethods.paymentMethods?.some(d=>d.type==="googlepay")||H!=="googlepay"&&C?null:Ee(gt,null,i.googlepay===!1&&Ee("div",{className:"straumur__google-pay-button__loading"},Ee(K,null)),Ee("div",{ref:l,style:{height:C?"600px":"auto",minWidth:C?"350px":"auto",position:i.googlepay?"static":"absolute"}}))}var Me=xt;function Pt({configuration:e,paymentMethods:r}){let{i18n:t}=L(),{activePaymentMethod:n,setActivePaymentMethod:l,threeDSecureActive:s}=S(),a=()=>{l("googlepay")};return e.instantPayments&&e.instantPayments.some(i=>i==="googlepay")||n!=="googlepay"&&s?null:ee("label",{className:"straumur__google-pay-component"},ee("input",{type:"radio",className:"straumur__google-pay-component__radio-selector",checked:n==="googlepay",onChange:a}),ee("span",{className:"straumur__google-pay-component__content"},ee("span",{className:"straumur__google-pay-component--circle"}),ee(Sr,null),ee("span",{className:"straumur__google-pay-component--text"},t.t("googlePay.title"))),ee("div",{className:"straumur__google-pay-component__expandable"},ee(Me,{configuration:e,paymentMethods:r,showPaymentButton:n==="googlepay",isInstantPayment:!1})))}var kr=Pt;import{h as re}from"preact";g(`.straumur__apple-pay-component{position:relative;cursor:pointer;background:var(--straumur__color-white);border-radius:var(--straumur__border-radius-lg);transition:all .3s ease;padding:var(--straumur__space-xxlg) var(--straumur__space-5xlg)}.straumur__apple-pay-component__radio-selector{position:absolute;opacity:0;cursor:pointer}.straumur__apple-pay-component__content{display:flex;align-items:center;gap:var(--straumur__space-lg);transition:background-color .3s ease}.straumur__apple-pay-component__radio-selector:checked+.straumur__apple-pay-component__content{padding-bottom:var(--straumur__space-xxlg)}.straumur__apple-pay-component--circle{width:var(--straumur__space-5xlg);height:var(--straumur__space-5xlg);border:1px solid var(--straumur__color-cosmos-blue-gamma);background:var(--straumur__color-secondary-gamma);border-radius:50%;position:relative;transition:all .3s ease}.straumur__apple-pay-component__content:hover .straumur__apple-pay-component--circle{border:1px solid var(--straumur__color-cosmos-blue-delta)}.straumur__apple-pay-component--circle:after{content:"";position:absolute;width:100%;height:100%;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:transform .2s ease}.straumur__apple-pay-component__radio-selector:checked+.straumur__apple-pay-component__content .straumur__apple-pay-component--circle{background:var(--straumur__color-blue-beta);border-color:var(--straumur__color-transparent)}.straumur__apple-pay-component__radio-selector:checked+.straumur__apple-pay-component__content .straumur__apple-pay-component--circle:after{transform:translate(-50%,-50%) scale(1);background:var(--straumur__color-primary);height:var(--straumur__space-md);width:var(--straumur__space-md)}.straumur__apple-pay-component--text{color:#213547;font-size:1rem;user-select:none}.straumur__apple-pay-component__expandable{background:var(--straumur__color-white);max-height:0;overflow:hidden;transition:all .3s ease;opacity:0}.straumur__apple-pay-component__radio-selector:checked~.straumur__apple-pay-component__expandable{max-height:600px;opacity:1}.straumur__apple-pay-component__expandable p{margin:0;color:#213547;font-size:.9rem}
7
- `);import{h as De}from"preact";var St=()=>De("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26"},De("path",{fill:"#000",d:"M36.42 0H3.58a69.25 69.25 0 0 0-.75 0c-.25.01-.5.03-.76.07a2.51 2.51 0 0 0-1.32.7A2.43 2.43 0 0 0 .07 2.1 5.14 5.14 0 0 0 0 3.22v19.91c.01.25.03.51.07.76a2.6 2.6 0 0 0 .68 1.35 2.39 2.39 0 0 0 1.32.69 4.98 4.98 0 0 0 1.1.07h34a5 5 0 0 0 .76-.07 2.5 2.5 0 0 0 1.32-.7 2.44 2.44 0 0 0 .68-1.34 5.13 5.13 0 0 0 .07-1.11V2.87a6.5 6.5 0 0 0-.07-.76 2.58 2.58 0 0 0-.68-1.35 2.4 2.4 0 0 0-1.32-.69 4.96 4.96 0 0 0-1.1-.07h-.41Z"}),De("path",{fill:"#fff",d:"M36.42.87h.73c.2 0 .42.02.62.06a1.67 1.67 0 0 1 .88.44 1.58 1.58 0 0 1 .44.89 4.38 4.38 0 0 1 .06.97v19.55a14.67 14.67 0 0 1-.06.96 1.7 1.7 0 0 1-.44.89 1.54 1.54 0 0 1-.87.44 4.27 4.27 0 0 1-.96.06H2.85a3.7 3.7 0 0 1-.63-.06 1.66 1.66 0 0 1-.87-.45 1.56 1.56 0 0 1-.44-.88 4.35 4.35 0 0 1-.06-.97V2.9c.01-.2.02-.42.06-.63.03-.18.08-.34.16-.49A1.56 1.56 0 0 1 2.22.93a4.2 4.2 0 0 1 .96-.06h33.24"}),De("path",{fill:"#000",d:"M10.92 8.61c.34-.43.57-1 .51-1.59a2.21 2.21 0 0 0-1.99 2.3c.56.04 1.12-.3 1.48-.7Zm.51.81c-.82-.05-1.52.46-1.9.46-.4 0-1-.43-1.64-.42-.84 0-1.62.48-2.05 1.24-.88 1.52-.23 3.76.62 5 .42.6.92 1.27 1.58 1.25.62-.02.86-.4 1.62-.4.75 0 .97.4 1.63.39.69-.01 1.11-.61 1.53-1.22.47-.7.67-1.37.68-1.4-.01-.02-1.32-.52-1.33-2.02-.01-1.26 1.03-1.85 1.07-1.9a2.34 2.34 0 0 0-1.81-.98Zm7.11-1.7a2.87 2.87 0 0 1 3.02 3c0 1.8-1.27 3.03-3.06 3.03h-1.97v3.12h-1.42V7.72h3.43Zm-2 4.83h1.62c1.24 0 1.94-.66 1.94-1.82 0-1.15-.7-1.81-1.93-1.81h-1.64v3.63Zm5.39 2.43c0-1.17.9-1.89 2.48-1.98l1.83-.1v-.52c0-.74-.5-1.18-1.34-1.18-.8 0-1.3.38-1.41.97h-1.3c.08-1.2 1.1-2.09 2.76-2.09 1.62 0 2.65.86 2.65 2.2v4.6h-1.31v-1.1h-.04a2.38 2.38 0 0 1-2.1 1.2c-1.3 0-2.22-.8-2.22-2Zm4.3-.6v-.53l-1.64.1c-.82.06-1.28.42-1.28.99 0 .58.48.96 1.22.96.96 0 1.7-.66 1.7-1.52Zm2.61 4.95v-1.11c.1.03.33.03.44.03.64 0 .98-.27 1.19-.96l.12-.4-2.41-6.69h1.48l1.7 5.43h.02l1.69-5.43h1.44l-2.5 7.02c-.57 1.62-1.23 2.14-2.61 2.14a5.3 5.3 0 0 1-.56-.03Z"})),Ir=St;g(`.straumur__apple-pay-button__loading{display:flex;justify-content:center}
8
- `);import{Fragment as wt,h as Ae}from"preact";import{useEffect as Er,useRef as Qe}from"preact/hooks";import{AdyenCheckout as kt,ApplePay as It}from"@adyen/adyen-web";function Et({configuration:e,paymentMethods:r,showPaymentButton:t,isInstantPayment:n}){let l=Qe(null),s=Qe(),a=Qe(),{isPaymentMethodInitialized:i,updatePaymentMethodInitialization:w,handleSuccess:P,handleError:_,setThreeDSecureActive:B,threeDSecureActive:C,setActivePaymentMethod:G,activePaymentMethod:H}=S(),F=async()=>{s.current=await kt({clientKey:r.clientKey,environment:e.environment,locale:r.locale,countryCode:"IS",paymentMethodsResponse:r.paymentMethods,amount:{value:r.minorUnitsAmount,currency:r.currency},onError:U,onAdditionalDetails:E,onPaymentCompleted:O,onPaymentFailed:p});let h=r.paymentMethods.paymentMethods.find(M=>M.type==="applepay").configuration,v={amount:{value:r.minorUnitsAmount,currency:r.currency},environment:e.environment,onSubmit:J,configuration:{...h,merchantName:r.merchantName}};a.current=new It(s.current,v),a.current.isAvailable().then(()=>{a.current.mount(l.current),w("applepay",!0)}).catch(()=>{_("error.applePayNotAvailable")})};Er(()=>{t&&!i.applepay&&F()},[e,t]),Er(()=>{a.current&&i.applepay&&(a.current.remove(),F())},[e]);function U(d,h){d.name!==Ie&&_("error.unknownError")}async function J(d,h,v){n&&G("applepay");let M={...d.data,sessionId:e.sessionId},I=await Q(e.environment,M);if(!I.ok){v.reject(),_("error.failedToSubmitPayment");return}let x=await I.json();if(!x.resultCode){v.reject(),_("error.paymentFailed");return}let{resultCode:R,action:N}=x;(R==="ChallengeShopper"||R==="IdentifyShopper")&&B(!0),v.resolve({resultCode:R,action:N})}async function E(d,h,v){let M={...d.data,sessionId:e.sessionId},I=await V(e.environment,M);if(!I.ok){v.reject(),_("error.failedToSubmitPaymentDetails");return}let x=await I.json();if(!x.resultCode){v.reject(),_("error.paymentDetailsFailed");return}let{resultCode:R,action:N}=x;v.resolve({resultCode:R,action:N})}function O(d,h){d.resultCode==="Authorised"?P("success.paymentAuthorized"):_("error.paymentUnsuccessful"),e.onPaymentCompleted?.({resultCode:d.resultCode})}function p(d,h){d?(d.resultCode==="Authorised"?P("success.paymentAuthorized"):_("error.paymentUnsuccessful"),e.onPaymentFailed?.({resultCode:d.resultCode})):e.onPaymentFailed?.()}return!r.paymentMethods.paymentMethods?.some(d=>d.type==="applepay")||H!=="applepay"&&C?null:Ae(wt,null,i.applepay===!1&&Ae("div",{className:"straumur__apple-pay-button__loading"},Ae(K,null)),Ae("div",{ref:l,style:{height:C?"600px":"auto",minWidth:C?"350px":"auto",position:i.applepay?"static":"absolute"}}))}var ze=Et;function Mt({configuration:e,paymentMethods:r}){let{i18n:t}=L(),{activePaymentMethod:n,setActivePaymentMethod:l,threeDSecureActive:s}=S(),a=()=>{l("applepay")};return e.instantPayments&&e.instantPayments.some(i=>i==="applepay")||n!=="applepay"&&s?null:re("label",{className:"straumur__apple-pay-component"},re("input",{type:"radio",className:"straumur__apple-pay-component__radio-selector",checked:n==="applepay",onChange:a}),re("span",{className:"straumur__apple-pay-component__content"},re("span",{className:"straumur__apple-pay-component--circle"}),re(Ir,null),re("span",{className:"straumur__apple-pay-component--text"},t.t("applePay.title"))),re("div",{className:"straumur__apple-pay-component__expandable"},re(ze,{configuration:e,paymentMethods:r,showPaymentButton:n==="applepay",isInstantPayment:!1})))}var Mr=Mt;import{Fragment as Tt,h as zr}from"preact";import{Fragment as At,h as u}from"preact";import{useEffect as Ye,useRef as er,useState as Re}from"preact/hooks";g(`.straumur__stored-card-component{position:relative;background:var(--straumur__color-white);border-radius:var(--straumur__border-radius-lg);transition:all .3s ease;padding:var(--straumur__space-xxlg) var(--straumur__space-5xlg);cursor:pointer}.straumur__stored-card-component:has(.straumur__stored-card-component__radio-selector:checked){cursor:default}.straumur__stored-card-component__radio-selector{position:absolute;opacity:0}.straumur__stored-card-component__content{display:flex;align-items:center;gap:var(--straumur__space-lg);transition:background-color .3s ease}.straumur__stored-card-component__radio-selector:checked+.straumur__stored-card-component__content{padding-bottom:var(--straumur__space-xxlg);cursor:default}.straumur__stored-card-component--circle{width:var(--straumur__space-5xlg);height:var(--straumur__space-5xlg);border:1px solid var(--straumur__color-cosmos-blue-gamma);background:var(--straumur__color-secondary-gamma);border-radius:50%;position:relative;transition:all .3s ease}.straumur__stored-card-component__content:hover .straumur__stored-card-component--circle{border:1px solid var(--straumur__color-cosmos-blue-delta)}.straumur__stored-card-component--circle:after{content:"";position:absolute;width:100%;height:100%;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:transform .2s ease}.straumur__stored-card-component__radio-selector:checked+.straumur__stored-card-component__content .straumur__stored-card-component--circle{background:var(--straumur__color-blue-beta);border-color:var(--straumur__color-transparent)}.straumur__stored-card-component__radio-selector:checked+.straumur__stored-card-component__content .straumur__stored-card-component--circle:after{transform:translate(-50%,-50%) scale(1);background:var(--straumur__color-primary);height:var(--straumur__space-md);width:var(--straumur__space-md)}.straumur__stored-card-component--text{color:#213547;font-size:1rem;user-select:none}.straumur__stored-card-component--brands{display:flex;margin-left:auto;align-items:center;gap:var(--straumur__space-xxs)}.straumur__stored-card-component--brands>svg{transition:all .2s ease}.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__expandable{background:var(--straumur__color-white);max-height:0;overflow:hidden;transition:all .3s ease;opacity:0}.straumur__stored-card-component__loading-text{display:flex;justify-content:center}.straumur__stored-card-component__radio-selector:checked~.straumur__stored-card-component__expandable{max-height:600px;opacity:1}.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}
9
- `);import{AdyenCheckout as zt,CustomCard as Rt}from"@adyen/adyen-web";import{h as le}from"preact";var Dt=()=>le("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},le("g",{"clip-path":"url(#clip0_10650_34968)"},le("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"}),le("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"})),le("defs",null,le("clipPath",{id:"clip0_10650_34968"},le("rect",{width:"24",height:"24",fill:"white"})))),Dr=Dt;function Nt({configuration:e,paymentMethods:r,storedPaymentMethod:t,onStoredCardRemoved:n}){let l=er(null),s=er(),a=er(),{i18n:i}=L(),[w,P]=Re(!0),[_,B]=Re("required"),[C,G]=Re(!1),[H,F]=Re({encryptedSecurityCode:{visible:!1}}),{activePaymentMethod:U,setActivePaymentMethod:J,activeStoredPaymentMethodId:E,setActiveStoredPaymentMethodId:O,isStoredCardInitialized:p,updateStoredCardInitialization:j,handleSuccess:d,handleError:h,setThreeDSecureActive:v,threeDSecureActive:M}=S(),I=async()=>{s.current=await zt({clientKey:r.clientKey,environment:e.environment,locale:e.locale,countryCode:"IS",amount:{value:r.minorUnitsAmount,currency:r.currency},paymentMethodsResponse:r.paymentMethods,onError:be,onPaymentCompleted:He,onPaymentFailed:Le}),a.current=new Rt(s.current,{brands:[t.brand],onSubmit:Ue,onAdditionalDetails:Ze,onConfigSuccess(){j(t.id,!0)},onBrand:b=>{B(b.cvcPolicy)},onValidationError:b=>{let Z={encryptedSecurityCode:{visible:!1,message:void 0}};b.filter(D=>D.error).forEach(D=>{Z[D.fieldType].visible=!0,Z[D.fieldType].message=D.errorI18n}),F(Z)},onAllValid:b=>{P(!b.allValid)},placeholders:e.placeholders,challengeWindowSize:"05"}),l.current&&a.current.mount(l.current)};Ye(()=>{U==="storedcard"&&E===t.id&&!p[E]&&I()},[e,U,E]),Ye(()=>{a.current&&p[E]&&(I(),F({encryptedSecurityCode:{visible:!1,message:void 0}}))},[e]),Ye(()=>{G(!1)},[U,E]);function x(){J("storedcard"),O(t.id)}function R(){G(!0)}function N(){G(!1)}async function _e(){let b={storedPaymentMethodId:t.id,sessionId:e.sessionId},Z=await ar(e.environment,b);if(!Z.ok){h("error.failedToSubmitRemoveStoredPaymentCard");return}if(!(await Z.json()).success){h("error.failedToRemoveStoredPaymentCard");return}n(t.id)}function be(b,Z){h("error.unknownError")}async function Ue(b,Z,D){let c={...b.data,sessionId:e.sessionId,paymentMethod:{...b.data.paymentMethod,storedPaymentMethodId:t.id}},A=await Q(e.environment,c);if(!A.ok){D.reject(),h("error.failedToSubmitPayment");return}let y=await A.json();if(!y.resultCode){D.reject(),h("error.paymentFailed");return}let{resultCode:$,action:W}=y;($==="ChallengeShopper"||$==="IdentifyShopper")&&v(!0),D.resolve({resultCode:$,action:W})}async function Ze(b,Z,D){let c={...b.data,sessionId:e.sessionId},A=await V(e.environment,c);if(!A.ok){D.reject(),h("error.failedToSubmitPaymentDetails");return}let y=await A.json();if(!y.resultCode){D.reject(),h("error.paymentDetailsFailed");return}let{resultCode:$,action:W}=y;D.resolve({resultCode:$,action:W})}function He(b,Z){b.resultCode==="Authorised"?d("success.paymentAuthorized"):h("error.paymentUnsuccessful"),e.onPaymentCompleted?.({resultCode:b.resultCode})}function Le(b,Z){b?(b.resultCode==="Authorised"?d("success.paymentAuthorized"):h("error.paymentUnsuccessful"),e.onPaymentFailed?.({resultCode:b.resultCode})):e.onPaymentFailed?.()}function Ge(){a.current&&a.current.submit()}return u("label",{className:"straumur__stored-card-component"},u("input",{type:"radio",className:"straumur__stored-card-component__radio-selector",checked:U==="storedcard"&&E===t.id,onChange:x}),u("span",{className:"straumur__stored-card-component__content"},u("span",{className:"straumur__stored-card-component--circle"}),u(Pe,{brands:[{brand:t.brand,brandFullName:t.name}]}),u("span",{className:"straumur__stored-card-component--text"},"\u2022\u2022\u2022\u2022 ",t.lastFour),U==="storedcard"&&E===t.id&&p[t.id]&&u("div",{className:"straumur__stored-card-component__remove-stored-card-button"},u("button",{onClick:R,className:"straumur__stored-card-component__remove-stored-card-button--text",disabled:C},i.t("stored-cards.removeStoredCard")))),u("div",{className:`straumur__stored-card-component__confirm-remove-stored-card ${C?"straumur__stored-card-component__confirm-remove-stored-card--expanded":""}`},u("div",{className:"straumur__stored-card-component__confirm-remove-stored-card--header"},u(Dr,null),u("span",{className:"straumur__stored-card-component__confirm-remove-stored-card--header--title"},i.t("stored-cards.removeStoredCardQuestion"))),u("div",{className:"straumur__stored-card-component__confirm-remove-stored-card--actions"},u("button",{className:"straumur__stored-card-component__confirm-remove-stored-card--actions--button",onClick:_e},i.t("stored-cards.removeStoredCardQuestionYesRemove")),u("button",{className:"straumur__stored-card-component__confirm-remove-stored-card--actions--button",onClick:N},i.t("stored-cards.removeStoredCardQuestionCancel")))),u("div",{className:"straumur__stored-card-component__expandable",ref:l,style:{height:M?"600px":"auto",minWidth:M?"350px":"auto"}},!p[t.id]&&u("div",{className:"straumur__stored-card-component__loading-text"},u(K,null)),u("div",{className:"straumur__stored-card-component__form",style:{opacity:p[t.id]?1:0,position:p[t.id]?"relative":"absolute",transition:"opacity 0.3s ease-in-out"}},u("div",{className:"straumur__stored-card-component__form--field-wrapper"},u("div",{className:"straumur__stored-card-component__form--wrapper"},u("label",{className:"straumur__stored-card-component__form--wrapper--label straumur__stored-card-component__form--wrapper--label--readonly"},i.t("stored-cards.expiryDate")),u("span",{className:"straumur__stored-card-component__form--wrapper--input straumur__stored-card-component__form--wrapper--input--readonly"},t.expiryMonth,"/",t.expiryYear)),u("div",{className:"straumur__stored-card-component__form--wrapper"},(_==="optional"||_==="required")&&u(At,null,u("label",{className:`straumur__stored-card-component__form--wrapper--label ${H.encryptedSecurityCode.visible?"straumur__stored-card-component__form--wrapper--label--error":""}`},_==="optional"?i.t("stored-cards.securityCode3DigitsOptional"):i.t("stored-cards.securityCode3Digits")),u("span",{className:`straumur__stored-card-component__form--wrapper--input ${H.encryptedSecurityCode.visible?"straumur__stored-card-component__form--wrapper--input--error":""}`,"data-cse":"encryptedSecurityCode"},u("div",{className:"straumur__stored-card-component__form--wrapper--label--info"},u(ue,{content:i.t("stored-cards.securityCode3DigitsInfo")},u(Se,null))))),H.encryptedSecurityCode.visible&&u("span",{className:"straumur__stored-card-component__form--wrapper--error"},H.encryptedSecurityCode.message))),u("button",{className:"straumur__stored-card-component__submit-button",disabled:w,onClick:Ge},r.formattedAmount))))}var Ar=Nt;import{useState as Bt}from"preact/hooks";function Ft({configuration:e,paymentMethods:r}){let[t,n]=Bt(r.paymentMethods.storedPaymentMethods??[]),{activePaymentMethod:l,threeDSecureActive:s}=S();if(!t||t?.length===0||l!=="storedcard"&&s)return null;function a(i){n(w=>w.filter(P=>P.id!==i))}return zr(Tt,null,t?.map(i=>zr(Ar,{key:i.id,configuration:e,storedPaymentMethod:i,paymentMethods:r,onStoredCardRemoved:a})))}var Rr=Ft;import{h as Nr}from"preact";g(`.straumur__payment-method-group{display:flex;flex-direction:column;gap:var(--straumur__space-xxlg);width:100%}
10
- `);function Ut({children:e,initialValue:r}){return Nr(sr,{initialValue:r},Nr("div",{className:"straumur__payment-method-group"},e))}var Tr=Ut;import{Fragment as Br,h as de}from"preact";g(`.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}
11
- `);import{h as te}from"preact";var Zt=()=>te("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 120 120"},te("circle",{cx:"60",cy:"60",r:"50",fill:"none",stroke:"#5b8206","stroke-width":"5","stroke-dasharray":"314","stroke-dashoffset":"314"},te("animate",{attributeName:"stroke-dashoffset",from:"314",to:"0",dur:"1s",fill:"freeze"})),te("g",{transform:"translate(60,60)"},te("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"},te("animate",{attributeName:"stroke-dashoffset",from:"100",to:"0",dur:"0.5s",begin:"1s",fill:"freeze"}),te("animateTransform",{attributeName:"transform",type:"scale",from:"1 1",to:"1.2 1.2",begin:"1.5s",dur:"0.2s",fill:"freeze",additive:"sum"}),te("animateTransform",{attributeName:"transform",type:"scale",from:"1.2 1.2",to:"1 1",begin:"1.7s",dur:"0.2s",fill:"freeze",additive:"sum"})))),Ne=Zt;import{h as q}from"preact";var Ht=()=>q("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 120 120"},q("circle",{cx:"60",cy:"60",r:"50",fill:"none",stroke:"#d03e00","stroke-width":"5","stroke-dasharray":"314","stroke-dashoffset":"314"},q("animate",{attributeName:"stroke-dashoffset",from:"314",to:"0",dur:"1s",fill:"freeze"})),q("g",{transform:"translate(60,60)"},q("g",{id:"crossGroup"},q("line",{x1:"-20",y1:"-20",x2:"20",y2:"20",stroke:"#d03e00","stroke-width":"6","stroke-linecap":"round","stroke-dasharray":"57","stroke-dashoffset":"57"},q("animate",{attributeName:"stroke-dashoffset",from:"57",to:"0",dur:"0.3s",begin:"1s",fill:"freeze"})),q("line",{x1:"20",y1:"-20",x2:"-20",y2:"20",stroke:"#d03e00","stroke-width":"6","stroke-linecap":"round","stroke-dasharray":"57","stroke-dashoffset":"57"},q("animate",{attributeName:"stroke-dashoffset",from:"57",to:"0",dur:"0.3s",begin:"1.3s",fill:"freeze"}))))),Te=Ht;function Lt(){let{error:e,success:r}=S(),{i18n:t}=L();return!e&&!r?null:de("div",{className:"straumur__result-component"},e&&de(Br,null,de(Te,null),de("p",{className:"straumur__result-component__error--message"},t.t(e))),r&&de(Br,null,de(Ne,null),de("p",{className:"straumur__result-component__success--message"},t.t(r))))}var Fr=Lt;import{Fragment as Gt,h as Ot}from"preact";function jt({children:e}){let{error:r,success:t}=S();return r||t?null:Ot(Gt,null,e)}var Ur=jt;import{h as rr}from"preact";g(`.instant-payments{display:grid;gap:var(--straumur__space-md);grid-template-columns:1fr 1fr}.instant-payments--single{grid-template-columns:1fr}
12
- `);function Vt({configuration:e,paymentMethods:r}){if(!e.instantPayments)return null;let t=["googlepay","applepay"],n=e.instantPayments.filter(a=>t.includes(a)),l=r.paymentMethods.paymentMethods?.filter(a=>a.type==="applepay"||a.type==="googlepay")||[],s=n.filter(a=>l.some(i=>i.type===a));return s.length===0?null:rr("div",{class:`instant-payments ${s.length>1?"instant-payments--multiple":"instant-payments--single"}`},s.map(a=>a==="googlepay"?rr(Me,{key:a,configuration:e,paymentMethods:r,showPaymentButton:!0,isInstantPayment:!0}):a==="applepay"?rr(ze,{key:a,configuration:e,paymentMethods:r,showPaymentButton:!0,isInstantPayment:!0}):null))}var Zr=Vt;function Kt({configuration:e,paymentMethods:r}){return oe(Tr,{initialValue:null},oe(Ur,null,oe(Zr,{configuration:e,paymentMethods:r}),oe(Rr,{configuration:e,paymentMethods:r}),oe(Pr,{configuration:e,paymentMethods:r}),oe(kr,{configuration:e,paymentMethods:r}),oe(Mr,{configuration:e,paymentMethods:r})),oe(Fr,null))}var Hr=Kt;import{AdyenCheckout as Jt}from"@adyen/adyen-web";var Lr={"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 Be=class{constructor(r,t){this.language=r;this.customLocalizations=t}t(r){return this.customLocalizations?.[this.language]?.[r]||Lr[this.language][r]||r}setLanguage(r){this.language=r}updateCustomLocalizations(r){this.customLocalizations=r}};var tr=class{configuration;paymentMethods=null;mountElement=null;i18n;constructor(r){this.configuration={...r,locale:t(r.locale),customLocalizations:r.localizations},this.i18n=new Be(this.configuration.locale,this.configuration.customLocalizations);function t(n){switch(n){case"is":return"is-IS";case"en":return"en-US";default:return"is-IS"}}}async mount(r){try{if(this.mountElement=typeof r=="string"?document.querySelector(r):r,!this.mountElement){this.handleError("error.failedToInitializeStraumurWebComponent");return}ge(T(Fe,null,T("div",{className:"straumur__component"},T(K,null))),this.mountElement);let t=await je(this.configuration.environment,this.configuration.sessionId);if(t.resultCode==="Error"){this.handleError(t.error);return}this.paymentMethods=t,this.configuration.locale=this.configuration.locale||this.paymentMethods.locale,this.renderComponent()}catch{}}renderComponent(){this.mountElement&&ge(T(Fe,null,T(cr,{i18nService:this.i18n,onLanguageChange:r=>{this.configuration.locale=r,this.renderComponent()}},T(Hr,{configuration:this.configuration,paymentMethods:this.paymentMethods}))),this.mountElement)}handleSuccess(r){ge(T(Fe,null,T("div",{className:"straumur__component"},T(Ne,null),T("p",null,this.i18n.t(r)))),this.mountElement)}handleError(r){ge(T(Fe,null,T("div",{className:"straumur__component"},T(Te,null),T("p",null,this.i18n.t(r)))),this.mountElement)}async submitDetails(r){let t=await je(this.configuration.environment,this.configuration.sessionId);if(t.resultCode==="Error"){this.handleError(t.error);return}(await Jt({environment:this.configuration.environment,clientKey:t.clientKey,paymentMethodsResponse:t.paymentMethods,countryCode:"IS",onAdditionalDetails:this.handleOnSubmitAdditionalData})).submitDetails({details:{redirectResult:r}})}async handleOnSubmitAdditionalData(r,t,n){let l={...r.data,sessionId:this.configuration.sessionId},s=await V(this.configuration.environment,l);if(!s.ok){n.reject(),this.handleError("error.failedToSubmitPaymentDetails");return}let a=await s.json();if(!a.resultCode){n.reject(),this.handleError("error.paymentDetailsFailed");return}let{resultCode:i,action:w}=a;n.resolve({resultCode:i,action:w}),i==="Authorised"?this.handleSuccess("success.paymentAuthorized"):this.handleError("error.paymentUnsuccessful")}updateConfig(r){this.configuration={...this.configuration,...r},r.locale&&this.i18n.setLanguage(r.locale),r.customLocalizations&&this.i18n.updateCustomLocalizations(r.customLocalizations),this.mountElement&&this.renderComponent()}setLanguage(r){this.updateConfig({locale:r})}destroy(){this.mountElement&&(ge(null,this.mountElement),this.mountElement=null)}},$t=tr;function Fe({children:e}){return T("div",{className:"straumur__root-component"},e)}export{$t as StraumurCheckout};
1
+ import{h as T,render as _e}from"preact";function I(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}I(`: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%}
2
+ `);var Vt=()=>({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"}),re=Vt();function ge(e){switch(e){case"test":return re.STAGING_BASE_URL;case"live":return re.PRODUCTION_BASE_URL;default:throw new Error(`Unknown environment: ${e}`)}}function st(e,t){return fetch(`${ge(e)}/${re.GET_PAYMENT_METHODS_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}function q(e,t){return fetch(`${ge(e)}/${re.POST_PAYMENT_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}function V(e,t){return fetch(`${ge(e)}/${re.POST_DETAILS_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}function it(e,t){return fetch(`${ge(e)}/${re.POST_DISABLE_TOKEN_URL}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function Ve(e,t){try{let r=await st(e,{sessionId:t});if(!r.ok){let i=r.headers.get("content-type"),n="error.failedToInitializePaymentMethods";return i&&i.includes("application/json")&&(n=(await r.json()).errorMessage),{resultCode:"Error",error:n}}return{resultCode:"Success",...await r.json()}}catch{return{resultCode:"Error",error:"error.failedToInitializePaymentMethods"}}}import{h as te}from"preact";import{h as ve}from"preact";import{useState as br}from"preact/hooks";I(`.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
+ `);import{h as Jt}from"preact";import{createContext as Kt}from"preact";import{useState as oe,useContext as $t}from"preact/hooks";var lt=Kt(void 0),Xt={card:!1,storedcard:!1,googlepay:!1,applepay:!1},ct=({children:e,initialValue:t,isSolePaymentMethod:r,hasCard:a,hasGooglePay:i,hasApplePay:n,hasStoredPaymentMethods:s})=>{let[l,c]=oe(t),[f,v]=oe(null),[d,D]=oe(!1),[R,B]=oe(Xt),[F,U]=oe({}),[K,N]=oe(null),[O,x]=oe(null),j=(b,P)=>{B(w=>({...w,[b]:P}))},p=(b,P)=>{U(w=>({...w,[b]:P}))},_=b=>{x(b)},S=b=>{N(b)};return Jt(lt.Provider,{value:{activePaymentMethod:l,setActivePaymentMethod:c,activeStoredPaymentMethodId:f,setActiveStoredPaymentMethodId:v,isPaymentMethodInitialized:R,updatePaymentMethodInitialization:j,isStoredCardInitialized:F,updateStoredCardInitialization:p,handleSuccess:S,success:K,handleError:_,error:O,threeDSecureActive:d,setThreeDSecureActive:D,isSolePaymentMethod:r,hasCard:a,hasGooglePay:i,hasApplePay:n,hasStoredPaymentMethods:s}},e)},M=()=>{let e=$t(lt);if(e===void 0)throw new Error("usePaymentMethodGroup must be used within a PaymentMethodGroup");return e};import{h as Wt}from"preact";import{createContext as qt}from"preact";import{useContext as Qt}from"preact/hooks";var dt=qt(void 0),mt=({children:e,i18nService:t,onLanguageChange:r})=>{let a=i=>{t.setLanguage(i),r?.(i)};return Wt(dt.Provider,{value:{i18n:t,changeLanguage:a}},e)},Z=()=>{let e=Qt(dt);if(!e)throw new Error("useI18n must be used within an I18nProvider");return e};import{h as Je}from"preact";var Yt=()=>Je("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",viewBox:"0 0 24 24",fill:"none"},Je("path",{d:"M24 11H0V7H24V11Z",fill:"#002649"}),Je("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"})),ut=Yt;import{Fragment as Ct,h as z}from"preact";import{h as he}from"preact";var er=({opacity:e=1})=>he("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",viewBox:"0 0 40 26",opacity:e},he("path",{fill:"#fff",d:"M0 0h40v26H0z"}),he("path",{fill:"#F06022",d:"M16.13 19.29h7.74V6.7h-7.74v12.58z"}),he("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"}),he("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"})),pt=er;import{h as Ke}from"preact";var tr=({opacity:e=1})=>Ke("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:e},Ke("path",{fill:"#fff",d:"M0 0h40v26H0z"}),Ke("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"})),ht=tr;import{h as fe}from"preact";var rr=({opacity:e=1})=>fe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:e},fe("path",{fill:"#fff",d:"M0 0h40v26H0z"}),fe("path",{fill:"#7773B4",d:"M16.13 19.29h7.74V6.7h-7.74v12.58z"}),fe("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"}),fe("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"})),ft=rr;import{h as $e}from"preact";var or=({opacity:e=1})=>$e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 26",width:"40",height:"26",opacity:e},$e("path",{fill:"#016FD0",d:"M0 26h40V0H0v26z"}),$e("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"})),vt=or;import{h as u}from"preact";var ar=({opacity:e=1})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:e},u("g",{"clip-path":"url(#a)"},u("path",{fill:"#fff",d:"M0 0h40v26H0V0Z"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"})),u("defs",null,u("linearGradient",{id:"b",x1:"25.52",x2:"34.75",y1:"14.38",y2:"14.38",gradientUnits:"userSpaceOnUse"},u("stop",{offset:"0","stop-color":"#007940"}),u("stop",{offset:".23","stop-color":"#00873F"}),u("stop",{offset:".74","stop-color":"#40A737"}),u("stop",{offset:"1","stop-color":"#5CB531"})),u("linearGradient",{id:"c",x1:"25.52",x2:"34.75",y1:"12.94",y2:"12.94",gradientUnits:"userSpaceOnUse"},u("stop",{offset:"0","stop-color":"#007940"}),u("stop",{offset:".23","stop-color":"#00873F"}),u("stop",{offset:".74","stop-color":"#40A737"}),u("stop",{offset:"1","stop-color":"#5CB531"})),u("linearGradient",{id:"d",x1:"25.52",x2:"34.75",y1:"11.37",y2:"11.37",gradientUnits:"userSpaceOnUse"},u("stop",{offset:"0","stop-color":"#007940"}),u("stop",{offset:".23","stop-color":"#00873F"}),u("stop",{offset:".74","stop-color":"#40A737"}),u("stop",{offset:"1","stop-color":"#5CB531"})),u("linearGradient",{id:"e",x1:"4.86",x2:"14.24",y1:"12.94",y2:"12.94",gradientUnits:"userSpaceOnUse"},u("stop",{offset:"0","stop-color":"#1F286F"}),u("stop",{offset:".48","stop-color":"#004E94"}),u("stop",{offset:".83","stop-color":"#0066B1"}),u("stop",{offset:"1","stop-color":"#006FBC"})),u("linearGradient",{id:"f",x1:"15.15",x2:"24.25",y1:"12.94",y2:"12.94",gradientUnits:"userSpaceOnUse"},u("stop",{offset:"0","stop-color":"#6C2C2F"}),u("stop",{offset:".17","stop-color":"#882730"}),u("stop",{offset:".57","stop-color":"#BE1833"}),u("stop",{offset:".86","stop-color":"#DC0436"}),u("stop",{offset:"1","stop-color":"#E60039"})),u("clipPath",{id:"a"},u("path",{fill:"#fff",d:"M0 0h40v26H0z"})))),_t=ar;import{h as E}from"preact";var nr=({opacity:e=1})=>E("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 26",width:"40",height:"26",opacity:e},E("path",{fill:"#fff",d:"M0 0h40v26H0z"}),E("g",{fill:"#1a1918"},E("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"}),E("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"}),E("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"}),E("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"}),E("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"}),E("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"}),E("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"}),E("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"}),E("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"}),E("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"}),E("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"}),E("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"}),E("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"}),E("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"})),E("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"}),E("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"})),yt=nr;import{h as o}from"preact";var sr=({opacity:e=1})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26",opacity:e},o("path",{fill:"#fff",d:"M0 0h40v26H0z"}),o("g",{"clip-path":"url(#a)"},o("g",{"clip-path":"url(#b)"},o("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"})),o("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"}),o("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"}),o("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"}),o("mask",{id:"e",width:"6",height:"6",x:"18",y:"10",maskUnits:"userSpaceOnUse",style:"mask-type:luminance"},o("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"})),o("g",{mask:"url(#e)"},o("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"}))),o("g",{"clip-path":"url(#g)"},o("g",{"clip-path":"url(#h)"},o("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"})),o("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"}),o("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"}),o("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"}),o("mask",{id:"k",width:"6",height:"6",x:"18",y:"10",maskUnits:"userSpaceOnUse",style:"mask-type:luminance"},o("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"})),o("g",{mask:"url(#k)"},o("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"}))),o("defs",null,o("linearGradient",{id:"c",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F59F00"}),o("stop",{offset:".19","stop-color":"#F49B00"}),o("stop",{offset:".37","stop-color":"#F29101"}),o("stop",{offset:".5","stop-color":"#F08302"}),o("stop",{offset:".6","stop-color":"#EE7905"}),o("stop",{offset:".76","stop-color":"#EC7008"}),o("stop",{offset:"1","stop-color":"#EC6D09"})),o("linearGradient",{id:"d",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),o("stop",{offset:".04","stop-color":"#F48C1C","stop-opacity":".08"}),o("stop",{offset:".2","stop-color":"#F77314","stop-opacity":".32"}),o("stop",{offset:".35","stop-color":"#F95D0E","stop-opacity":".53"}),o("stop",{offset:".5","stop-color":"#FB4B09","stop-opacity":".7"}),o("stop",{offset:".64","stop-color":"#FD3D05","stop-opacity":".83"}),o("stop",{offset:".77","stop-color":"#FE3302","stop-opacity":".92"}),o("stop",{offset:".9","stop-color":"#FF2D01","stop-opacity":".98"}),o("stop",{offset:"1","stop-color":"#FF2B00"})),o("radialGradient",{id:"f",cx:"0",cy:"0",r:"1",gradientTransform:"rotate(4.24 -167.26 291.02) scale(3.3208)",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),o("stop",{offset:".45","stop-color":"#EA8D1D","stop-opacity":".05"}),o("stop",{offset:".66","stop-color":"#CA7618","stop-opacity":".2"}),o("stop",{offset:".83","stop-color":"#924D10","stop-opacity":".48"}),o("stop",{offset:".96","stop-color":"#441304","stop-opacity":".87"}),o("stop",{offset:".99","stop-color":"#2F0401","stop-opacity":".97"})),o("linearGradient",{id:"i",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F59F00"}),o("stop",{offset:".19","stop-color":"#F49B00"}),o("stop",{offset:".37","stop-color":"#F29101"}),o("stop",{offset:".5","stop-color":"#F08302"}),o("stop",{offset:".6","stop-color":"#EE7905"}),o("stop",{offset:".76","stop-color":"#EC7008"}),o("stop",{offset:"1","stop-color":"#EC6D09"})),o("linearGradient",{id:"j",x1:"22.25",x2:"19.35",y1:"15.06",y2:"10.42",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),o("stop",{offset:".04","stop-color":"#F48C1C","stop-opacity":".08"}),o("stop",{offset:".2","stop-color":"#F77314","stop-opacity":".32"}),o("stop",{offset:".35","stop-color":"#F95D0E","stop-opacity":".53"}),o("stop",{offset:".5","stop-color":"#FB4B09","stop-opacity":".7"}),o("stop",{offset:".64","stop-color":"#FD3D05","stop-opacity":".83"}),o("stop",{offset:".77","stop-color":"#FE3302","stop-opacity":".92"}),o("stop",{offset:".9","stop-color":"#FF2D01","stop-opacity":".98"}),o("stop",{offset:"1","stop-color":"#FF2B00"})),o("radialGradient",{id:"l",cx:"0",cy:"0",r:"1",gradientTransform:"rotate(4.24 -167.26 291.02) scale(3.3208)",gradientUnits:"userSpaceOnUse"},o("stop",{offset:"0","stop-color":"#F3941E","stop-opacity":"0"}),o("stop",{offset:".45","stop-color":"#EA8D1D","stop-opacity":".05"}),o("stop",{offset:".66","stop-color":"#CA7618","stop-opacity":".2"}),o("stop",{offset:".83","stop-color":"#924D10","stop-opacity":".48"}),o("stop",{offset:".96","stop-color":"#441304","stop-opacity":".87"}),o("stop",{offset:".99","stop-color":"#2F0401","stop-opacity":".97"})),o("clipPath",{id:"a"},o("path",{fill:"#fff",d:"M0 0h33v5.55H0z",transform:"translate(3.5 10)"})),o("clipPath",{id:"b"},o("path",{fill:"#fff",d:"M0 0h33v5.86H0z",transform:"translate(3.5 10)"})),o("clipPath",{id:"g"},o("path",{fill:"#fff",d:"M0 0h33v5.55H0z",transform:"translate(3.5 10)"})),o("clipPath",{id:"h"},o("path",{fill:"#fff",d:"M0 0h33v5.86H0z",transform:"translate(3.5 10)"})))),gt=sr;import{h as ce}from"preact";var ir=({opacity:e=1})=>ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 26",width:"40",height:"26",opacity:e},ce("rect",{width:"45.3",height:"27",x:"-3.3",y:"-.79",fill:"#fff",rx:"2.82"}),ce("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"}),ce("rect",{width:"20.38",height:"29.02",x:"-4",y:"-.79",fill:"#dc1f2b",rx:"2.82"}),ce("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"}),ce("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"})),bt=ir;import{h as Xe}from"preact";I(`.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
+ `);import{useRef as lr,useState as cr}from"preact/hooks";var de=({children:e,content:t})=>{let[r,a]=cr(!1),i=lr(null);return Xe("div",{style:{position:"relative"}},Xe("div",{ref:i,onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)}},e),r&&i&&Xe("div",{className:"straumur__tooltip__content"},t))};import{useEffect as dr,useState as mr}from"preact/hooks";function We(e){let t=()=>window.matchMedia(e).matches,[r,a]=mr(t);return dr(()=>{let i=window.matchMedia(e),n=s=>a(s.matches);return a(i.matches),i.addEventListener("change",n),()=>{i.removeEventListener("change",n)}},[e]),r}function Ce({brands:e,brandHidden:t=[],limit:r=3}){let a=We("(max-width: 380px)"),n=We("(max-width: 335px)")?1:a?2:r,s=e.filter(l=>{let{brand:c}=l;return!t.some(v=>v.brand===c)});return z(Ct,null,s.map(({brand:l},c)=>c>=Math.min(r,n)?c===Math.min(r,n)?z(de,{content:z("span",{style:{display:"flex",gap:"4px",overflow:"visible"}},s.slice(Math.min(r,n)).map(({brand:f})=>z(be,{key:f,brand:f})))},z("span",{key:l,className:"straumur__render-brand-icons__overflow"},"+",s.length-Math.min(r,n))):null:z(be,{key:l,brand:l})))}var be=({brand:e,defaultToBrandName:t=!0})=>{switch(e){case"visa":return z(ht,null);case"mc":return z(pt,null);case"maestro":return z(ft,null);case"amex":return z(vt,null);case"jcb":return z(_t,null);case"diners":return z(yt,null);case"discover":return z(gt,null);case"cup":return z(bt,null);default:return t?z("span",null,e):z(Ct,null)}};import{Fragment as fr,h as g}from"preact";import{useRef as Se,useState as se,useEffect as qe}from"preact/hooks";import{AdyenCheckout as vr,CustomCard as _r}from"@adyen/adyen-web";import{h as ae}from"preact";var ur=()=>ae("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ae("g",{"clip-path":"url(#clip0_10626_39119)"},ae("path",{d:"M10.6641 7.5C11.3543 7.5 11.9141 6.94023 11.9141 6.25C11.9141 5.55977 11.3543 5 10.6641 5C9.97383 5 9.41406 5.55859 9.41406 6.25C9.41406 6.94141 9.97266 7.5 10.6641 7.5ZM12.2266 13.125H11.6016V9.6875C11.6016 9.17188 11.1836 8.75 10.6641 8.75H9.41406C8.89844 8.75 8.47656 9.17188 8.47656 9.6875C8.47656 10.2031 8.89844 10.625 9.41406 10.625H9.72656V13.125H9.10156C8.58594 13.125 8.16406 13.5469 8.16406 14.0625C8.16406 14.5781 8.58594 15 9.10156 15H12.2266C12.7441 15 13.1641 14.5801 13.1641 14.0625C13.1641 13.5449 12.7461 13.125 12.2266 13.125Z",fill:"#002649"}),ae("path",{opacity:"0.4",d:"M10.6641 0C5.14062 0 0.664062 4.47656 0.664062 10C0.664062 15.5234 5.14062 20 10.6641 20C16.1875 20 20.6641 15.5234 20.6641 10C20.6641 4.47656 16.1875 0 10.6641 0ZM10.6641 5C11.3543 5 11.9141 5.55977 11.9141 6.25C11.9141 6.94023 11.3543 7.5 10.6641 7.5C9.97383 7.5 9.41406 6.94141 9.41406 6.25C9.41406 5.55859 9.97266 5 10.6641 5ZM12.2266 15H9.10156C8.58594 15 8.16406 14.582 8.16406 14.0625C8.16406 13.543 8.58398 13.125 9.10156 13.125H9.72656V10.625H9.41406C8.89648 10.625 8.47656 10.2051 8.47656 9.6875C8.47656 9.16992 8.89844 8.75 9.41406 8.75H10.6641C11.1816 8.75 11.6016 9.16992 11.6016 9.6875V13.125H12.2266C12.7441 13.125 13.1641 13.5449 13.1641 14.0625C13.1641 14.5801 12.7461 15 12.2266 15Z",fill:"#002649"})),ae("defs",null,ae("clipPath",{id:"clip0_10626_39119"},ae("rect",{width:"20",height:"20",fill:"white",transform:"translate(0.664062)"})))),Pe=ur;import{h as me}from"preact";var pr=()=>me("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",stroke:"#002649"},me("g",{fill:"none","fill-rule":"evenodd"},me("g",{transform:"translate(2 2)","stroke-width":"4"},me("circle",{"stroke-opacity":".3",cx:"18",cy:"18",r:"18"}),me("path",{d:"M36 18c0-9.94-8.06-18-18-18"},me("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),J=pr;import{h as Pt}from"preact";var hr=({color:e="var(--straumur__color-primary)"})=>Pt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"13",viewBox:"0 0 16 13",fill:"none"},Pt("path",{d:"M2 7L6 11L14 2",stroke:e,"stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})),xe=hr;import{h as ne}from"preact";function xt({brand:e,brandName:t,isSelected:r,onBrandClick:a}){return ne("span",{className:"straumur__card-component__dual-branding--logo"+(r?" straumur__card-component__dual-branding--logo--selected":""),title:e,"data-value":e,onClick:a},ne("div",{className:"straumur__card-component__dual-branding--logo--item"},ne(be,{brand:e,defaultToBrandName:!1}),"\xA0",t??""),r&&ne(xe,{color:"var(--straumur__color-neon-green-zeta)"}))}function St({dualBrandConfiguration:e,selectedBrand:t,onBrandClick:r}){return ne("div",{className:"straumur__card-component__dual-branding"},ne(xt,{brand:e.brand1,brandName:e.brand1Name,isSelected:t===e.brand1,onBrandClick:r}),ne(xt,{brand:e.brand2,brandName:e.brand2Name,isSelected:t===e.brand2,onBrandClick:r}))}function yr({configuration:e,paymentMethods:t,onBrandHidden:r}){let a=Se(null),i=Se(),n=Se(),{i18n:s}=Z(),[l,c]=se(!0),[f,v]=se("required"),[d,D]=se(!1),[R,B]=se(!1),[F,U]=se(null),[K,N]=se(null),O=Se(!1),[x,j]=se({encryptedCardNumber:{visible:!1},encryptedExpiryDate:{visible:!1},encryptedSecurityCode:{visible:!1}}),{activePaymentMethod:p,isPaymentMethodInitialized:_,updatePaymentMethodInitialization:S,handleSuccess:b,handleError:P,setThreeDSecureActive:w,threeDSecureActive:k,hasCard:H}=M();if(!H||p!=="card"&&k)return null;let pe=t.paymentMethods.paymentMethods.find(m=>m.type==="scheme").brands,ye=async()=>{i.current=await vr({clientKey:t.clientKey,environment:e.environment,locale:e.locale,countryCode:"IS",paymentMethodsResponse:t.paymentMethods,amount:{value:t.minorUnitsAmount,currency:t.currency},onSubmit:Ze,onAdditionalDetails:He,onError:Ne,onPaymentCompleted:Le,onPaymentFailed:Ge}),n.current=new _r(i.current,{brands:pe,placeholders:e.placeholders,challengeWindowSize:"05",onBinLookup:m=>{m.supportedBrandsRaw&&m.supportedBrandsRaw.length>1&&(B(!0),U({brand1:m.supportedBrandsRaw[0].brand,brand1Name:m.supportedBrandsRaw[0].localeBrand,brand1ImageUrl:m.supportedBrandsRaw[0].brandImageUrl,brand2:m.supportedBrandsRaw[1].brand,brand2Name:m.supportedBrandsRaw[1].localeBrand,brand2ImageUrl:m.supportedBrandsRaw[1].brandImageUrl}))},onBrand:m=>{if(v(m.cvcPolicy),m.brand==="card"){r([]),N(null);return}let y=pe.filter(h=>h!==m.brand).map(h=>({brand:h}));r(y),pe.filter(h=>h===m.brand).map(h=>({brand:h})).length===1&&N(m.brand)},onConfigSuccess(){S("card",!0)},onValidationError:m=>{let y={encryptedCardNumber:{visible:!1,message:void 0},encryptedExpiryDate:{visible:!1,message:void 0},encryptedSecurityCode:{visible:!1,message:void 0}};m.filter(h=>h.error).forEach(h=>{y[h.fieldType].visible=!0,y[h.fieldType].message=h.errorI18n}),j(y)},onAllValid:m=>{c(!m.allValid)}}),a.current&&n.current.mount(a.current)};if(qe(()=>{p==="card"&&!_.card&&ye()},[e,p]),qe(()=>{n.current&&_.card&&(ye(),j({encryptedCardNumber:{visible:!1,message:void 0},encryptedExpiryDate:{visible:!1,message:void 0},encryptedSecurityCode:{visible:!1,message:void 0}}))},[e]),t.paymentMethods?.paymentMethods?.length===0)return null;function Fe(m){n.current.dualBrandingChangeHandler(m)}function Ue(m){D(m.currentTarget.checked)}function Ne(m,y){P("error.unknownError")}qe(()=>{O.current=d},[d]);async function Ze(m,y,h){let A={...m.data,storePaymentMethod:O.current,sessionId:e.sessionId},$=await q(e.environment,A);if(!$.ok){h.reject(),P("error.failedToSubmitPayment");return}let L=await $.json();if(!L.resultCode){h.reject(),P("error.paymentFailed");return}let{resultCode:G,action:X}=L;(G==="ChallengeShopper"||G==="IdentifyShopper")&&w(!0),h.resolve({resultCode:G,action:X})}async function He(m,y,h){let A={...m.data,sessionId:e.sessionId},$=await V(e.environment,A);if(!$.ok){h.reject(),P("error.failedToSubmitPaymentDetails");return}let L=await $.json();if(!L.resultCode){h.reject(),P("error.paymentDetailsFailed");return}let{resultCode:G,action:X}=L;h.resolve({resultCode:G,action:X})}function Le(m,y){m.resultCode==="Authorised"?b("success.paymentAuthorized"):P("error.paymentUnsuccessful"),e.onPaymentCompleted?.({resultCode:m.resultCode})}function Ge(m,y){m?(m.resultCode==="Authorised"?b("success.paymentAuthorized"):P("error.paymentUnsuccessful"),e.onPaymentFailed?.({resultCode:m.resultCode})):e.onPaymentFailed?.()}function Oe(){n.current&&n.current.submit()}return g("div",{className:"straumur__card-component__expandable",ref:a,style:{height:k?"600px":"auto",minWidth:k?"350px":"auto"}},!_.card&&g("div",{className:"straumur__card-component__loading-text"},g(J,null)),g("div",{className:"straumur__card-component__form",style:{opacity:_.card&&!k?1:0,position:_.card&&!k?"relative":"absolute",transition:"opacity 0.3s ease-in-out"}},g("div",{className:"straumur__card-component__form--wrapper"},g("label",{className:`straumur__card-component__form--wrapper--label ${x.encryptedCardNumber.visible?"straumur__card-component__form--wrapper--label--error":""}`},s.t("cards.cardNumber")),g("span",{className:`straumur__card-component__form--wrapper--input ${x.encryptedCardNumber.visible?"straumur__card-component__form--wrapper--input--error":""}`,"data-cse":"encryptedCardNumber"}),x.encryptedCardNumber.visible&&g("span",{className:"straumur__card-component__form--wrapper--error"},x.encryptedCardNumber.message)),g("div",{className:"straumur__card-component__form--field-wrapper"},g("div",{className:"straumur__card-component__form--wrapper"},g("label",{className:`straumur__card-component__form--wrapper--label ${x.encryptedExpiryDate.visible?"straumur__card-component__form--wrapper--label--error":""}`},s.t("cards.expiryDate")),g("span",{className:`straumur__card-component__form--wrapper--input ${x.encryptedExpiryDate.visible?"straumur__card-component__form--wrapper--input--error":""}`,"data-cse":"encryptedExpiryDate"}),x.encryptedExpiryDate.visible&&g("span",{className:"straumur__card-component__form--wrapper--error"},x.encryptedExpiryDate.message)),g("div",{className:"straumur__card-component__form--wrapper"},(f==="optional"||f==="required")&&g(fr,null,g("label",{className:`straumur__card-component__form--wrapper--label ${x.encryptedSecurityCode.visible?"straumur__card-component__form--wrapper--label--error":""}`},f==="optional"?s.t("cards.securityCode3DigitsOptional"):s.t("cards.securityCode3Digits")),g("span",{className:`straumur__card-component__form--wrapper--input ${x.encryptedSecurityCode.visible?"straumur__card-component__form--wrapper--input--error":""}`,"data-cse":"encryptedSecurityCode"}),x.encryptedSecurityCode.visible&&g("span",{className:"straumur__card-component__form--wrapper--error"},x.encryptedSecurityCode.message),g("div",{className:"straumur__card-component__form--wrapper--label--info"},g(de,{content:g("span",null,s.t("cards.securityCode3DigitsInfo"))},g(Pe,null)))))),R&&F&&g(St,{dualBrandConfiguration:F,selectedBrand:K,onBrandClick:Fe}),t.enableStoreDetails==="AskForConsent"&&g("label",{className:"straumur__card-component__form--wrapper--label-checkbox"},g("div",{className:`straumur__card-component__form--wrapper--label-checkbox--checkmark ${d?"straumur__card-component__form--wrapper--label-checkbox--checkmark--checked":""}`},g("div",{className:`straumur__card-component__form--wrapper--label-checkbox--checkmark--icon ${d?"straumur__card-component__form--wrapper--label-checkbox--checkmark--icon--checked":""}`},g(xe,null))),g("input",{type:"checkbox",className:"straumur__card-component__form--wrapper--label-checkbox--checkbox",checked:d,onChange:Ue}),s.t("cards.storePaymentMethod")),g("button",{className:"straumur__card-component__submit-button",disabled:l,onClick:Oe},t.formattedAmount)))}var It=yr;import{h as ue}from"preact";I(`.straumur__payment-method-item{position:relative;cursor:pointer;background:var(--straumur__color-white);border-radius:var(--straumur__border-radius-lg);transition:all .3s ease;padding:var(--straumur__space-xxlg) var(--straumur__space-5xlg)}.straumur__payment-method-item--sole{cursor:default}.straumur__payment-method-item:has(.straumur__payment-method-item__radio-selector:checked){cursor:default}.straumur__payment-method-item__radio-selector{position:absolute;opacity:0;cursor:pointer}.straumur__payment-method-item__content{display:flex;align-items:center;gap:var(--straumur__space-lg);transition:background-color .3s ease}.straumur__payment-method-item__radio-selector:checked+.straumur__payment-method-item__content{padding-bottom:var(--straumur__space-xxlg)}.straumur__payment-method-item__content--expanded{padding-bottom:var(--straumur__space-xxlg)}.straumur__payment-method-item--circle{width:var(--straumur__space-5xlg);height:var(--straumur__space-5xlg);border:1px solid var(--straumur__color-cosmos-blue-gamma);background:var(--straumur__color-secondary-gamma);border-radius:50%;position:relative;transition:all .3s ease;flex-shrink:0}.straumur__payment-method-item__content:hover .straumur__payment-method-item--circle{border:1px solid var(--straumur__color-cosmos-blue-delta)}.straumur__payment-method-item--circle:after{content:"";position:absolute;width:100%;height:100%;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:transform .2s ease}.straumur__payment-method-item__radio-selector:checked+.straumur__payment-method-item__content .straumur__payment-method-item--circle{background:var(--straumur__color-blue-beta);border-color:var(--straumur__color-transparent)}.straumur__payment-method-item__radio-selector:checked+.straumur__payment-method-item__content .straumur__payment-method-item--circle:after{transform:translate(-50%,-50%) scale(1);background:var(--straumur__color-primary);height:var(--straumur__space-md);width:var(--straumur__space-md)}.straumur__payment-method-item--title{color:#213547;font-size:1rem;user-select:none}.straumur__payment-method-item__expandable{background:var(--straumur__color-white);max-height:0;overflow:hidden;transition:all .3s ease;opacity:0}.straumur__payment-method-item__radio-selector:checked~.straumur__payment-method-item__expandable{max-height:600px;opacity:1}.straumur__payment-method-item__expandable--visible{max-height:600px;opacity:1}
5
+ `);function gr({icon:e,title:t,isActive:r,isSole:a,onChange:i,children:n,headerRight:s,confirmSection:l}){return ue("label",{className:`straumur__payment-method-item${a?" straumur__payment-method-item--sole":""}`},!a&&ue("input",{type:"radio",className:"straumur__payment-method-item__radio-selector",checked:r,onChange:i}),ue("span",{className:`straumur__payment-method-item__content${a?" straumur__payment-method-item__content--expanded":""}`},!a&&ue("span",{className:"straumur__payment-method-item--circle"}),e,ue("span",{className:"straumur__payment-method-item--title"},t),s),l,ue("div",{className:`straumur__payment-method-item__expandable${a?" straumur__payment-method-item__expandable--visible":""}`},n))}var Q=gr;function Cr({configuration:e,paymentMethods:t}){let{i18n:r}=Z(),[a,i]=br([]),{activePaymentMethod:n,setActivePaymentMethod:s,threeDSecureActive:l,isSolePaymentMethod:c,hasCard:f}=M();if(!f||n!=="card"&&l)return null;let d=t.paymentMethods.paymentMethods.find(D=>D.type==="scheme").brands.map(D=>({brand:D,brandFullName:D}));return ve(Q,{icon:ve(ut,null),title:r.t("cards.title"),isActive:n==="card",isSole:c,onChange:()=>s("card"),headerRight:ve("span",{className:"straumur__card-component--brands"},ve(Ce,{brands:d,brandHidden:a}))},ve(It,{configuration:e,paymentMethods:t,onBrandHidden:i}))}var wt=Cr;import{h as Ye}from"preact";import{useState as Mr}from"preact/hooks";I(`.adyen-checkout__paywithgoogle{height:var(--straumur__space-8xlg)}
6
+ `);import{h as Y}from"preact";var Pr=()=>Y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26"},Y("path",{fill:"#fff",d:"M29.13 2.41H10.87C5.17 2.41.5 7.18.5 13.01a10.5 10.5 0 0 0 10.37 10.58h18.26c5.7 0 10.37-4.76 10.37-10.59 0-5.82-4.67-10.59-10.37-10.59Z"}),Y("path",{fill:"#3C4043",d:"M29.13 3.27c1.28 0 2.52.26 3.7.77a9.6 9.6 0 0 1 5.08 5.19 9.78 9.78 0 0 1 0 7.55 9.83 9.83 0 0 1-5.08 5.18 9.26 9.26 0 0 1-3.7.77H10.87a9.24 9.24 0 0 1-3.7-.77 9.6 9.6 0 0 1-5.08-5.18 9.78 9.78 0 0 1 0-7.55 9.83 9.83 0 0 1 5.08-5.19 9.24 9.24 0 0 1 3.7-.77h18.26Zm0-.86H10.87C5.17 2.41.5 7.18.5 13.01a10.5 10.5 0 0 0 10.37 10.58h18.26c5.7 0 10.37-4.76 10.37-10.59 0-5.82-4.67-10.59-10.37-10.59Z"}),Y("path",{fill:"#3C4043",d:"M19.1 13.75v3.2h-1v-7.9h2.64c.67 0 1.24.23 1.7.68.49.46.72 1.01.72 1.67a2.2 2.2 0 0 1-.71 1.68c-.46.45-1.03.67-1.7.67H19.1Zm0-3.73v2.76h1.66c.4 0 .73-.14.99-.4.26-.28.4-.6.4-.98 0-.36-.14-.68-.4-.95a1.28 1.28 0 0 0-.99-.42H19.1Zm6.67 1.35c.73 0 1.31.2 1.74.6.42.4.64.95.64 1.65v3.34h-.95v-.76h-.04a1.9 1.9 0 0 1-1.65.93 2.1 2.1 0 0 1-1.46-.53c-.4-.35-.6-.8-.6-1.32 0-.56.21-1 .63-1.34.41-.33.97-.5 1.66-.5.59 0 1.07.12 1.45.34v-.23c0-.36-.13-.65-.4-.9a1.4 1.4 0 0 0-.97-.37c-.56 0-1 .24-1.32.72l-.88-.56a2.42 2.42 0 0 1 2.15-1.07Zm-1.29 3.92c0 .27.11.5.33.67.22.17.48.26.78.26.42 0 .79-.16 1.12-.48.32-.31.49-.68.49-1.11a2.02 2.02 0 0 0-1.3-.38c-.4 0-.74.1-1.01.3a.9.9 0 0 0-.4.74Zm9.08-3.75-3.32 7.8h-1.02l1.23-2.73-2.19-5.07h1.09l1.57 3.89h.02l1.54-3.89h1.08Z"}),Y("path",{fill:"#4285F4",d:"M15.14 13.1c0-.32-.03-.64-.09-.95h-4.17v1.75h2.4a2.1 2.1 0 0 1-.89 1.4v1.14h1.43a4.49 4.49 0 0 0 1.32-3.33Z"}),Y("path",{fill:"#34A853",d:"M12.4 15.3a2.66 2.66 0 0 1-4-1.44H6.9v1.18a4.43 4.43 0 0 0 6.91 1.4l-1.43-1.13Z"}),Y("path",{fill:"#FABB05",d:"M8.25 13c0-.3.05-.59.14-.86v-1.17H6.9a4.59 4.59 0 0 0 0 4.07l1.48-1.17a2.79 2.79 0 0 1-.14-.86Z"}),Y("path",{fill:"#E94235",d:"M10.88 10.27c.66 0 1.24.23 1.7.68l1.27-1.3a4.22 4.22 0 0 0-2.97-1.18 4.44 4.44 0 0 0-3.97 2.5l1.48 1.17a2.66 2.66 0 0 1 2.5-1.87Z"})),Mt=Pr;I(`.straumur__google-pay-button__loading{display:flex;justify-content:center}
7
+ `);import{Fragment as xr,h as we}from"preact";import{useEffect as kt,useRef as Qe}from"preact/hooks";import{AdyenCheckout as Sr,GooglePay as Ir}from"@adyen/adyen-web";var Ie="CANCEL";function wr({configuration:e,paymentMethods:t,showPaymentButton:r,isInstantPayment:a,onUnavailable:i}){let n=Qe(null),s=Qe(),l=Qe(),{isPaymentMethodInitialized:c,updatePaymentMethodInitialization:f,handleSuccess:v,handleError:d,setThreeDSecureActive:D,threeDSecureActive:R,setActivePaymentMethod:B,activePaymentMethod:F}=M(),U=async()=>{s.current=await Sr({clientKey:t.clientKey,environment:e.environment,locale:t.locale,countryCode:"IS",paymentMethodsResponse:t.paymentMethods,amount:{value:t.minorUnitsAmount,currency:t.currency},onError:K,onAdditionalDetails:O,onPaymentCompleted:x,onPaymentFailed:j});let _=t.paymentMethods.paymentMethods.find(b=>b.type==="googlepay").configuration,S={amount:{value:t.minorUnitsAmount,currency:t.currency},challengeWindowSize:"05",countryCode:"IS",environment:e.environment,onSubmit:N,buttonSizeMode:"fill",configuration:{..._,merchantName:t.merchantName}};l.current=new Ir(s.current,S),l.current.isAvailable().then(()=>{l.current.mount(n.current),f("googlepay",!0)}).catch(()=>{f("googlepay",!0),F==="googlepay"&&B(null),i?.()})};kt(()=>{r&&!c.googlepay&&U()},[e,r]),kt(()=>{l.current&&c.googlepay&&(l.current.remove(),U())},[e]);function K(p,_){p.name!==Ie&&d("error.unknownError")}async function N(p,_,S){a&&B("googlepay");let b={...p.data,sessionId:e.sessionId},P=await q(e.environment,b);if(!P.ok){S.reject(),d("error.failedToSubmitPayment");return}let w=await P.json();if(!w.resultCode){S.reject(),d("error.paymentFailed");return}let{resultCode:k,action:H}=w;(k==="ChallengeShopper"||k==="IdentifyShopper")&&D(!0),S.resolve({resultCode:k,action:H})}async function O(p,_,S){let b={...p.data,sessionId:e.sessionId},P=await V(e.environment,b);if(!P.ok){S.reject(),d("error.failedToSubmitPaymentDetails");return}let w=await P.json();if(!w.resultCode){S.reject(),d("error.paymentDetailsFailed");return}let{resultCode:k,action:H}=w;S.resolve({resultCode:k,action:H})}function x(p,_){p.resultCode==="Authorised"?v("success.paymentAuthorized"):d("error.paymentUnsuccessful"),e.onPaymentCompleted?.({resultCode:p.resultCode})}function j(p,_){p?(p.resultCode==="Authorised"?v("success.paymentAuthorized"):d("error.paymentUnsuccessful"),e.onPaymentFailed?.({resultCode:p.resultCode})):e.onPaymentFailed?.()}return F!=="googlepay"&&R?null:we(xr,null,c.googlepay===!1&&we("div",{className:"straumur__google-pay-button__loading"},we(J,null)),we("div",{ref:n,style:{height:R?"600px":"auto",minWidth:R?"350px":"auto",position:c.googlepay?"static":"absolute"}}))}var Me=wr;function kr({configuration:e,paymentMethods:t}){let{i18n:r}=Z(),{activePaymentMethod:a,setActivePaymentMethod:i,threeDSecureActive:n,isSolePaymentMethod:s,hasGooglePay:l}=M(),[c,f]=Mr(!1);return!l||c||e.instantPayments&&e.instantPayments.some(v=>v==="googlepay")||a!=="googlepay"&&n?null:Ye(Q,{icon:Ye(Mt,null),title:r.t("googlePay.title"),isActive:a==="googlepay",isSole:s,onChange:()=>i("googlepay")},Ye(Me,{configuration:e,paymentMethods:t,showPaymentButton:a==="googlepay",isInstantPayment:!1,onUnavailable:()=>f(!0)}))}var Et=kr;import{h as tt}from"preact";import{useState as Tr}from"preact/hooks";I("");import{h as ke}from"preact";var Er=()=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"26",fill:"none",viewBox:"0 0 40 26"},ke("path",{fill:"#000",d:"M36.42 0H3.58a69.25 69.25 0 0 0-.75 0c-.25.01-.5.03-.76.07a2.51 2.51 0 0 0-1.32.7A2.43 2.43 0 0 0 .07 2.1 5.14 5.14 0 0 0 0 3.22v19.91c.01.25.03.51.07.76a2.6 2.6 0 0 0 .68 1.35 2.39 2.39 0 0 0 1.32.69 4.98 4.98 0 0 0 1.1.07h34a5 5 0 0 0 .76-.07 2.5 2.5 0 0 0 1.32-.7 2.44 2.44 0 0 0 .68-1.34 5.13 5.13 0 0 0 .07-1.11V2.87a6.5 6.5 0 0 0-.07-.76 2.58 2.58 0 0 0-.68-1.35 2.4 2.4 0 0 0-1.32-.69 4.96 4.96 0 0 0-1.1-.07h-.41Z"}),ke("path",{fill:"#fff",d:"M36.42.87h.73c.2 0 .42.02.62.06a1.67 1.67 0 0 1 .88.44 1.58 1.58 0 0 1 .44.89 4.38 4.38 0 0 1 .06.97v19.55a14.67 14.67 0 0 1-.06.96 1.7 1.7 0 0 1-.44.89 1.54 1.54 0 0 1-.87.44 4.27 4.27 0 0 1-.96.06H2.85a3.7 3.7 0 0 1-.63-.06 1.66 1.66 0 0 1-.87-.45 1.56 1.56 0 0 1-.44-.88 4.35 4.35 0 0 1-.06-.97V2.9c.01-.2.02-.42.06-.63.03-.18.08-.34.16-.49A1.56 1.56 0 0 1 2.22.93a4.2 4.2 0 0 1 .96-.06h33.24"}),ke("path",{fill:"#000",d:"M10.92 8.61c.34-.43.57-1 .51-1.59a2.21 2.21 0 0 0-1.99 2.3c.56.04 1.12-.3 1.48-.7Zm.51.81c-.82-.05-1.52.46-1.9.46-.4 0-1-.43-1.64-.42-.84 0-1.62.48-2.05 1.24-.88 1.52-.23 3.76.62 5 .42.6.92 1.27 1.58 1.25.62-.02.86-.4 1.62-.4.75 0 .97.4 1.63.39.69-.01 1.11-.61 1.53-1.22.47-.7.67-1.37.68-1.4-.01-.02-1.32-.52-1.33-2.02-.01-1.26 1.03-1.85 1.07-1.9a2.34 2.34 0 0 0-1.81-.98Zm7.11-1.7a2.87 2.87 0 0 1 3.02 3c0 1.8-1.27 3.03-3.06 3.03h-1.97v3.12h-1.42V7.72h3.43Zm-2 4.83h1.62c1.24 0 1.94-.66 1.94-1.82 0-1.15-.7-1.81-1.93-1.81h-1.64v3.63Zm5.39 2.43c0-1.17.9-1.89 2.48-1.98l1.83-.1v-.52c0-.74-.5-1.18-1.34-1.18-.8 0-1.3.38-1.41.97h-1.3c.08-1.2 1.1-2.09 2.76-2.09 1.62 0 2.65.86 2.65 2.2v4.6h-1.31v-1.1h-.04a2.38 2.38 0 0 1-2.1 1.2c-1.3 0-2.22-.8-2.22-2Zm4.3-.6v-.53l-1.64.1c-.82.06-1.28.42-1.28.99 0 .58.48.96 1.22.96.96 0 1.7-.66 1.7-1.52Zm2.61 4.95v-1.11c.1.03.33.03.44.03.64 0 .98-.27 1.19-.96l.12-.4-2.41-6.69h1.48l1.7 5.43h.02l1.69-5.43h1.44l-2.5 7.02c-.57 1.62-1.23 2.14-2.61 2.14a5.3 5.3 0 0 1-.56-.03Z"})),At=Er;I(`.straumur__apple-pay-button__loading{display:flex;justify-content:center}
8
+ `);import{Fragment as Ar,h as Ee}from"preact";import{useEffect as Dt,useRef as et}from"preact/hooks";import{AdyenCheckout as Dr,ApplePay as zr}from"@adyen/adyen-web";function Rr({configuration:e,paymentMethods:t,showPaymentButton:r,isInstantPayment:a,onUnavailable:i}){let n=et(null),s=et(),l=et(),{isPaymentMethodInitialized:c,updatePaymentMethodInitialization:f,handleSuccess:v,handleError:d,setThreeDSecureActive:D,threeDSecureActive:R,setActivePaymentMethod:B,activePaymentMethod:F}=M(),U=async()=>{s.current=await Dr({clientKey:t.clientKey,environment:e.environment,locale:t.locale,countryCode:"IS",paymentMethodsResponse:t.paymentMethods,amount:{value:t.minorUnitsAmount,currency:t.currency},onError:K,onAdditionalDetails:O,onPaymentCompleted:x,onPaymentFailed:j});let _=t.paymentMethods.paymentMethods.find(b=>b.type==="applepay").configuration,S={amount:{value:t.minorUnitsAmount,currency:t.currency},environment:e.environment,onSubmit:N,configuration:{..._,merchantName:t.merchantName}};l.current=new zr(s.current,S),l.current.isAvailable().then(()=>{l.current.mount(n.current),f("applepay",!0)}).catch(()=>{f("applepay",!0),F==="applepay"&&B(null),i?.()})};Dt(()=>{r&&!c.applepay&&U()},[e,r]),Dt(()=>{l.current&&c.applepay&&(l.current.remove(),U())},[e]);function K(p,_){p.name!==Ie&&d("error.unknownError")}async function N(p,_,S){a&&B("applepay");let b={...p.data,sessionId:e.sessionId},P=await q(e.environment,b);if(!P.ok){S.reject(),d("error.failedToSubmitPayment");return}let w=await P.json();if(!w.resultCode){S.reject(),d("error.paymentFailed");return}let{resultCode:k,action:H}=w;(k==="ChallengeShopper"||k==="IdentifyShopper")&&D(!0),S.resolve({resultCode:k,action:H})}async function O(p,_,S){let b={...p.data,sessionId:e.sessionId},P=await V(e.environment,b);if(!P.ok){S.reject(),d("error.failedToSubmitPaymentDetails");return}let w=await P.json();if(!w.resultCode){S.reject(),d("error.paymentDetailsFailed");return}let{resultCode:k,action:H}=w;S.resolve({resultCode:k,action:H})}function x(p,_){p.resultCode==="Authorised"?v("success.paymentAuthorized"):d("error.paymentUnsuccessful"),e.onPaymentCompleted?.({resultCode:p.resultCode})}function j(p,_){p?(p.resultCode==="Authorised"?v("success.paymentAuthorized"):d("error.paymentUnsuccessful"),e.onPaymentFailed?.({resultCode:p.resultCode})):e.onPaymentFailed?.()}return F!=="applepay"&&R?null:Ee(Ar,null,c.applepay===!1&&Ee("div",{className:"straumur__apple-pay-button__loading"},Ee(J,null)),Ee("div",{ref:n,style:{height:R?"600px":"auto",minWidth:R?"350px":"auto",position:c.applepay?"static":"absolute"}}))}var Ae=Rr;function Br({configuration:e,paymentMethods:t}){let{i18n:r}=Z(),{activePaymentMethod:a,setActivePaymentMethod:i,threeDSecureActive:n,isSolePaymentMethod:s,hasApplePay:l}=M(),[c,f]=Tr(!1);return!l||c||e.instantPayments&&e.instantPayments.some(v=>v==="applepay")||a!=="applepay"&&n?null:tt(Q,{icon:tt(At,null),title:r.t("applePay.title"),isActive:a==="applepay",isSole:s,onChange:()=>i("applepay")},tt(Ae,{configuration:e,paymentMethods:t,showPaymentButton:a==="applepay",isInstantPayment:!1,onUnavailable:()=>f(!0)}))}var zt=Br;import{Fragment as Lr,h as Bt}from"preact";import{Fragment as Ur,h as C}from"preact";import{useEffect as rt,useRef as ot,useState as De}from"preact/hooks";I(`.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}
9
+ `);import{AdyenCheckout as Nr,CustomCard as Zr}from"@adyen/adyen-web";import{h as ie}from"preact";var Fr=()=>ie("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie("g",{"clip-path":"url(#clip0_10650_34968)"},ie("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"}),ie("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"})),ie("defs",null,ie("clipPath",{id:"clip0_10650_34968"},ie("rect",{width:"24",height:"24",fill:"white"})))),Rt=Fr;function Hr({configuration:e,paymentMethods:t,storedPaymentMethod:r,onStoredCardRemoved:a}){let i=ot(null),n=ot(),s=ot(),{i18n:l}=Z(),[c,f]=De(!0),[v,d]=De("required"),[D,R]=De(!1),[B,F]=De({encryptedSecurityCode:{visible:!1}}),{activePaymentMethod:U,setActivePaymentMethod:K,activeStoredPaymentMethodId:N,setActiveStoredPaymentMethodId:O,isStoredCardInitialized:x,updateStoredCardInitialization:j,handleSuccess:p,handleError:_,setThreeDSecureActive:S,threeDSecureActive:b,isSolePaymentMethod:P}=M(),w=P?U==="storedcard":U==="storedcard"&&N===r.id;if(b&&!w)return null;let k=async()=>{n.current=await Nr({clientKey:t.clientKey,environment:e.environment,locale:e.locale,countryCode:"IS",amount:{value:t.minorUnitsAmount,currency:t.currency},paymentMethodsResponse:t.paymentMethods,onError:Ue,onAdditionalDetails:Ze,onPaymentCompleted:He,onPaymentFailed:Le}),s.current=new Zr(n.current,{brands:[r.brand],onSubmit:Ne,onConfigSuccess(){j(r.id,!0)},onBrand:y=>{d(y.cvcPolicy)},onValidationError:y=>{let h={encryptedSecurityCode:{visible:!1,message:void 0}};y.filter(A=>A.error).forEach(A=>{h[A.fieldType].visible=!0,h[A.fieldType].message=A.errorI18n}),F(h)},onAllValid:y=>{f(!y.allValid)},placeholders:e.placeholders,challengeWindowSize:"05"}),i.current&&s.current.mount(i.current)};rt(()=>{w&&!x[r.id]&&k()},[e,w]),rt(()=>{s.current&&x[N]&&(k(),F({encryptedSecurityCode:{visible:!1,message:void 0}}))},[e]),rt(()=>{R(!1)},[U,N]);function H(){K("storedcard"),O(r.id)}function pe(){R(!0)}function ye(){R(!1)}async function Fe(){let y={storedPaymentMethodId:r.id,sessionId:e.sessionId},h=await it(e.environment,y);if(!h.ok){_("error.failedToSubmitRemoveStoredPaymentCard");return}if(!(await h.json()).success){_("error.failedToRemoveStoredPaymentCard");return}a(r.id)}function Ue(y,h){_("error.unknownError")}async function Ne(y,h,A){let $={...y.data,sessionId:e.sessionId,paymentMethod:{...y.data.paymentMethod,storedPaymentMethodId:r.id}},L=await q(e.environment,$);if(!L.ok){A.reject(),_("error.failedToSubmitPayment");return}let G=await L.json();if(!G.resultCode){A.reject(),_("error.paymentFailed");return}let{resultCode:X,action:je}=G;(X==="ChallengeShopper"||X==="IdentifyShopper")&&S(!0),A.resolve({resultCode:X,action:je})}async function Ze(y,h,A){let $={...y.data,sessionId:e.sessionId},L=await V(e.environment,$);if(!L.ok){A.reject(),_("error.failedToSubmitPaymentDetails");return}let G=await L.json();if(!G.resultCode){A.reject(),_("error.paymentDetailsFailed");return}let{resultCode:X,action:je}=G;A.resolve({resultCode:X,action:je})}function He(y,h){y.resultCode==="Authorised"?p("success.paymentAuthorized"):_("error.paymentUnsuccessful"),e.onPaymentCompleted?.({resultCode:y.resultCode})}function Le(y,h){y?(y.resultCode==="Authorised"?p("success.paymentAuthorized"):_("error.paymentUnsuccessful"),e.onPaymentFailed?.({resultCode:y.resultCode})):e.onPaymentFailed?.()}function Ge(){s.current&&s.current.submit()}let Oe=w&&x[r.id]?C("div",{className:"straumur__stored-card-component__remove-stored-card-button"},C("button",{onClick:pe,className:"straumur__stored-card-component__remove-stored-card-button--text",disabled:D},l.t("stored-cards.removeStoredCard"))):null,m=C("div",{className:`straumur__stored-card-component__confirm-remove-stored-card ${D?"straumur__stored-card-component__confirm-remove-stored-card--expanded":""}`},C("div",{className:"straumur__stored-card-component__confirm-remove-stored-card--header"},C(Rt,null),C("span",{className:"straumur__stored-card-component__confirm-remove-stored-card--header--title"},l.t("stored-cards.removeStoredCardQuestion"))),C("div",{className:"straumur__stored-card-component__confirm-remove-stored-card--actions"},C("button",{className:"straumur__stored-card-component__confirm-remove-stored-card--actions--button",onClick:Fe},l.t("stored-cards.removeStoredCardQuestionYesRemove")),C("button",{className:"straumur__stored-card-component__confirm-remove-stored-card--actions--button",onClick:ye},l.t("stored-cards.removeStoredCardQuestionCancel"))));return C(Q,{icon:C(Ce,{brands:[{brand:r.brand,brandFullName:r.name}]}),title:`\u2022\u2022\u2022\u2022 ${r.lastFour}`,isActive:w,isSole:P,onChange:H,headerRight:Oe,confirmSection:m},C("div",{ref:i,style:{height:b?"600px":"auto",minWidth:b?"350px":"auto"}},!x[r.id]&&C("div",{className:"straumur__stored-card-component__loading-text"},C(J,null)),C("div",{className:"straumur__stored-card-component__form",style:{opacity:x[r.id]&&!b?1:0,position:x[r.id]&&!b?"relative":"absolute",transition:"opacity 0.3s ease-in-out"}},C("div",{className:"straumur__stored-card-component__form--field-wrapper"},C("div",{className:"straumur__stored-card-component__form--wrapper"},C("label",{className:"straumur__stored-card-component__form--wrapper--label straumur__stored-card-component__form--wrapper--label--readonly"},l.t("stored-cards.expiryDate")),C("span",{className:"straumur__stored-card-component__form--wrapper--input straumur__stored-card-component__form--wrapper--input--readonly"},r.expiryMonth,"/",r.expiryYear)),C("div",{className:"straumur__stored-card-component__form--wrapper"},(v==="optional"||v==="required")&&C(Ur,null,C("label",{className:`straumur__stored-card-component__form--wrapper--label ${B.encryptedSecurityCode.visible?"straumur__stored-card-component__form--wrapper--label--error":""}`},v==="optional"?l.t("stored-cards.securityCode3DigitsOptional"):l.t("stored-cards.securityCode3Digits")),C("span",{className:`straumur__stored-card-component__form--wrapper--input ${B.encryptedSecurityCode.visible?"straumur__stored-card-component__form--wrapper--input--error":""}`,"data-cse":"encryptedSecurityCode"},C("div",{className:"straumur__stored-card-component__form--wrapper--label--info"},C(de,{content:l.t("stored-cards.securityCode3DigitsInfo")},C(Pe,null))))),B.encryptedSecurityCode.visible&&C("span",{className:"straumur__stored-card-component__form--wrapper--error"},B.encryptedSecurityCode.message))),C("button",{className:"straumur__stored-card-component__submit-button",disabled:c,onClick:Ge},t.formattedAmount))))}var Tt=Hr;import{useState as Gr}from"preact/hooks";function Or({configuration:e,paymentMethods:t}){let[r,a]=Gr(t.paymentMethods.storedPaymentMethods??[]),{activePaymentMethod:i,threeDSecureActive:n,hasStoredPaymentMethods:s}=M();if(!s||i!=="storedcard"&&n)return null;function l(c){a(f=>f.filter(v=>v.id!==c))}return Bt(Lr,null,r?.map(c=>Bt(Tt,{key:c.id,configuration:e,storedPaymentMethod:c,paymentMethods:t,onStoredCardRemoved:l})))}var Ft=Or;import{h as Ut}from"preact";I(`.straumur__payment-method-group{display:flex;flex-direction:column;gap:var(--straumur__space-xxlg);width:100%}
10
+ `);function jr({children:e,initialValue:t,isSolePaymentMethod:r,hasCard:a,hasGooglePay:i,hasApplePay:n,hasStoredPaymentMethods:s}){return Ut(ct,{initialValue:t,isSolePaymentMethod:r,hasCard:a,hasGooglePay:i,hasApplePay:n,hasStoredPaymentMethods:s},Ut("div",{className:"straumur__payment-method-group"},e))}var Nt=jr;import{Fragment as Zt,h as le}from"preact";I(`.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}
11
+ `);import{h as ee}from"preact";var Vr=()=>ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 120 120"},ee("circle",{cx:"60",cy:"60",r:"50",fill:"none",stroke:"#5b8206","stroke-width":"5","stroke-dasharray":"314","stroke-dashoffset":"314"},ee("animate",{attributeName:"stroke-dashoffset",from:"314",to:"0",dur:"1s",fill:"freeze"})),ee("g",{transform:"translate(60,60)"},ee("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"},ee("animate",{attributeName:"stroke-dashoffset",from:"100",to:"0",dur:"0.5s",begin:"1s",fill:"freeze"}),ee("animateTransform",{attributeName:"transform",type:"scale",from:"1 1",to:"1.2 1.2",begin:"1.5s",dur:"0.2s",fill:"freeze",additive:"sum"}),ee("animateTransform",{attributeName:"transform",type:"scale",from:"1.2 1.2",to:"1 1",begin:"1.7s",dur:"0.2s",fill:"freeze",additive:"sum"})))),ze=Vr;import{h as W}from"preact";var Jr=()=>W("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 120 120"},W("circle",{cx:"60",cy:"60",r:"50",fill:"none",stroke:"#d03e00","stroke-width":"5","stroke-dasharray":"314","stroke-dashoffset":"314"},W("animate",{attributeName:"stroke-dashoffset",from:"314",to:"0",dur:"1s",fill:"freeze"})),W("g",{transform:"translate(60,60)"},W("g",{id:"crossGroup"},W("line",{x1:"-20",y1:"-20",x2:"20",y2:"20",stroke:"#d03e00","stroke-width":"6","stroke-linecap":"round","stroke-dasharray":"57","stroke-dashoffset":"57"},W("animate",{attributeName:"stroke-dashoffset",from:"57",to:"0",dur:"0.3s",begin:"1s",fill:"freeze"})),W("line",{x1:"20",y1:"-20",x2:"-20",y2:"20",stroke:"#d03e00","stroke-width":"6","stroke-linecap":"round","stroke-dasharray":"57","stroke-dashoffset":"57"},W("animate",{attributeName:"stroke-dashoffset",from:"57",to:"0",dur:"0.3s",begin:"1.3s",fill:"freeze"}))))),Re=Jr;function Kr(){let{error:e,success:t}=M(),{i18n:r}=Z();return!e&&!t?null:le("div",{className:"straumur__result-component"},e&&le(Zt,null,le(Re,null),le("p",{className:"straumur__result-component__error--message"},r.t(e))),t&&le(Zt,null,le(ze,null),le("p",{className:"straumur__result-component__success--message"},r.t(t))))}var Ht=Kr;import{Fragment as $r,h as Xr}from"preact";function Wr({children:e}){let{error:t,success:r}=M();return t||r?null:Xr($r,null,e)}var Lt=Wr;import{h as at}from"preact";import{useState as qr}from"preact/hooks";I(`.instant-payments{display:grid;gap:var(--straumur__space-md);grid-template-columns:1fr 1fr}.instant-payments--single{grid-template-columns:1fr}
12
+ `);function Qr({configuration:e,paymentMethods:t}){let{hasGooglePay:r,hasApplePay:a}=M(),[i,n]=qr(new Set),s=d=>{n(D=>new Set(D).add(d))};if(!e.instantPayments)return null;let l=["googlepay","applepay"],f=e.instantPayments.filter(d=>l.includes(d)).filter(d=>d==="googlepay"?r:a),v=f.filter(d=>!i.has(d));return f.length===0?null:at("div",{class:`instant-payments ${v.length>1?"instant-payments--multiple":"instant-payments--single"}`,style:{display:v.length===0?"none":void 0}},f.map(d=>d==="googlepay"?at(Me,{key:d,configuration:e,paymentMethods:t,showPaymentButton:!0,isInstantPayment:!0,onUnavailable:()=>s("googlepay")}):d==="applepay"?at(Ae,{key:d,configuration:e,paymentMethods:t,showPaymentButton:!0,isInstantPayment:!0,onUnavailable:()=>s("applepay")}):null))}var Gt=Qr;function Yr(e,t,r,a,i){let n=t&&!i?.some(c=>c==="googlepay"),s=r&&!i?.some(c=>c==="applepay");return a+(e?1:0)+(n?1:0)+(s?1:0)!==1?{initialPaymentMethod:null,isSolePaymentMethod:!1}:a===1?{initialPaymentMethod:"storedcard",isSolePaymentMethod:!0}:e?{initialPaymentMethod:"card",isSolePaymentMethod:!0}:n?{initialPaymentMethod:"googlepay",isSolePaymentMethod:!0}:s?{initialPaymentMethod:"applepay",isSolePaymentMethod:!0}:{initialPaymentMethod:null,isSolePaymentMethod:!1}}function eo({configuration:e,paymentMethods:t}){let r=t.paymentMethods.paymentMethods??[],a=t.paymentMethods.storedPaymentMethods??[],i=r.some(v=>v.type==="scheme"),n=r.some(v=>v.type==="googlepay"),s=r.some(v=>v.type==="applepay"),l=a.length>0,{initialPaymentMethod:c,isSolePaymentMethod:f}=Yr(i,n,s,a.length,e.instantPayments);return te(Nt,{initialValue:c,isSolePaymentMethod:f,hasCard:i,hasGooglePay:n,hasApplePay:s,hasStoredPaymentMethods:l},te(Lt,null,te(Gt,{configuration:e,paymentMethods:t}),te(Ft,{configuration:e,paymentMethods:t}),te(wt,{configuration:e,paymentMethods:t}),te(Et,{configuration:e,paymentMethods:t}),te(zt,{configuration:e,paymentMethods:t})),te(Ht,null))}var Ot=eo;import{AdyenCheckout as to}from"@adyen/adyen-web";var jt={"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 Te=class{constructor(t,r){this.language=t;this.customLocalizations=r}t(t){return this.customLocalizations?.[this.language]?.[t]||jt[this.language][t]||t}setLanguage(t){this.language=t}updateCustomLocalizations(t){this.customLocalizations=t}};var nt=class{configuration;paymentMethods=null;mountElement=null;i18n;constructor(t){this.configuration={...t,locale:r(t.locale),customLocalizations:t.localizations},this.i18n=new Te(this.configuration.locale,this.configuration.customLocalizations);function r(a){switch(a){case"is":return"is-IS";case"en":return"en-US";default:return"is-IS"}}}async mount(t){try{if(this.mountElement=typeof t=="string"?document.querySelector(t):t,!this.mountElement){this.handleError("error.failedToInitializeStraumurWebComponent");return}_e(T(Be,null,T("div",{className:"straumur__component"},T(J,null))),this.mountElement);let r=await Ve(this.configuration.environment,this.configuration.sessionId);if(r.resultCode==="Error"){this.handleError(r.error);return}this.paymentMethods=r,this.configuration.locale=this.configuration.locale||this.paymentMethods.locale,this.renderComponent()}catch{}}renderComponent(){this.mountElement&&_e(T(Be,null,T(mt,{i18nService:this.i18n,onLanguageChange:t=>{this.configuration.locale=t,this.renderComponent()}},T(Ot,{configuration:this.configuration,paymentMethods:this.paymentMethods}))),this.mountElement)}handleSuccess(t){_e(T(Be,null,T("div",{className:"straumur__component"},T(ze,null),T("p",null,this.i18n.t(t)))),this.mountElement)}handleError(t){_e(T(Be,null,T("div",{className:"straumur__component"},T(Re,null),T("p",null,this.i18n.t(t)))),this.mountElement)}async submitDetails(t){let r=await Ve(this.configuration.environment,this.configuration.sessionId);if(r.resultCode==="Error"){this.handleError(r.error);return}(await to({environment:this.configuration.environment,clientKey:r.clientKey,paymentMethodsResponse:r.paymentMethods,countryCode:"IS",onAdditionalDetails:this.handleOnSubmitAdditionalData})).submitDetails({details:{redirectResult:t}})}async handleOnSubmitAdditionalData(t,r,a){let i={...t.data,sessionId:this.configuration.sessionId},n=await V(this.configuration.environment,i);if(!n.ok){a.reject(),this.handleError("error.failedToSubmitPaymentDetails");return}let s=await n.json();if(!s.resultCode){a.reject(),this.handleError("error.paymentDetailsFailed");return}let{resultCode:l,action:c}=s;a.resolve({resultCode:l,action:c}),l==="Authorised"?this.handleSuccess("success.paymentAuthorized"):this.handleError("error.paymentUnsuccessful")}updateConfig(t){this.configuration={...this.configuration,...t},t.locale&&this.i18n.setLanguage(t.locale),t.customLocalizations&&this.i18n.updateCustomLocalizations(t.customLocalizations),this.mountElement&&this.renderComponent()}setLanguage(t){this.updateConfig({locale:t})}destroy(){this.mountElement&&(_e(null,this.mountElement),this.mountElement=null)}},ro=nt;function Be({children:e}){return T("div",{className:"straumur__root-component"},e)}export{ro as StraumurCheckout};
13
13
  //# sourceMappingURL=index.mjs.map