@everymatrix/cashier-verifications 1.76.3 → 1.76.4

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.
@@ -21,14 +21,14 @@ function j(t) {
21
21
  function Q(t) {
22
22
  return typeof t == "function";
23
23
  }
24
- function bt(t, e) {
24
+ function wt(t, e) {
25
25
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
26
26
  }
27
27
  let T;
28
28
  function de(t, e) {
29
29
  return t === e ? !0 : (T || (T = document.createElement("a")), T.href = e, t === T.href);
30
30
  }
31
- function wt(t) {
31
+ function bt(t) {
32
32
  return Object.keys(t).length === 0;
33
33
  }
34
34
  function xt(t, ...e) {
@@ -240,8 +240,8 @@ function it(t, e, n, i, s, r, l, o = 0) {
240
240
  let u = `{
241
241
  `;
242
242
  for (let $ = 0; $ <= 1; $ += f) {
243
- const w = e + (n - e) * r($);
244
- u += $ * 100 + `%{${l(w, 1 - w)}}
243
+ const b = e + (n - e) * r($);
244
+ u += $ * 100 + `%{${l(b, 1 - b)}}
245
245
  `;
246
246
  }
247
247
  const _ = u + `100% {${l(n, 1 - n)}}
@@ -335,17 +335,17 @@ function V(t, e, n) {
335
335
  t.dispatchEvent(Pt(`${e ? "intro" : "outro"}${n}`));
336
336
  }
337
337
  const q = /* @__PURE__ */ new Set();
338
- let b;
338
+ let w;
339
339
  function Gt() {
340
- b = {
340
+ w = {
341
341
  r: 0,
342
342
  c: [],
343
- p: b
343
+ p: w
344
344
  // parent group
345
345
  };
346
346
  }
347
347
  function Kt() {
348
- b.r || j(b.c), b = b.p;
348
+ w.r || j(w.c), w = w.p;
349
349
  }
350
350
  function B(t, e) {
351
351
  t && t.i && (q.delete(t), t.i(e));
@@ -354,7 +354,7 @@ function K(t, e, n, i) {
354
354
  if (t && t.o) {
355
355
  if (q.has(t))
356
356
  return;
357
- q.add(t), b.c.push(() => {
357
+ q.add(t), w.c.push(() => {
358
358
  q.delete(t), i && (n && t.d(1), i());
359
359
  }), t.o(e);
360
360
  } else
@@ -385,29 +385,29 @@ function rt(t, e, n, i) {
385
385
  const {
386
386
  delay: h = 0,
387
387
  duration: $ = 300,
388
- easing: w = lt,
388
+ easing: b = lt,
389
389
  tick: A = k,
390
390
  css: d
391
391
  } = r || Qt, F = {
392
392
  start: Mt() + h,
393
393
  b: c
394
394
  };
395
- c || (F.group = b, b.r += 1), "inert" in t && (c ? _ !== void 0 && (t.inert = _) : (_ = /** @type {HTMLElement} */
396
- t.inert, t.inert = !0)), o || f ? f = F : (d && (a(), u = it(t, l, c, $, h, w, d)), c && A(0, 1), o = g(F, $), S(() => V(t, c, "start")), kt((R) => {
395
+ c || (F.group = w, w.r += 1), "inert" in t && (c ? _ !== void 0 && (t.inert = _) : (_ = /** @type {HTMLElement} */
396
+ t.inert, t.inert = !0)), o || f ? f = F : (d && (a(), u = it(t, l, c, $, h, b, d)), c && A(0, 1), o = g(F, $), S(() => V(t, c, "start")), kt((R) => {
397
397
  if (f && R > f.start && (o = g(f, $), f = null, V(t, o.b, "start"), d && (a(), u = it(
398
398
  t,
399
399
  l,
400
400
  o.b,
401
401
  o.duration,
402
402
  0,
403
- w,
403
+ b,
404
404
  r.css
405
405
  ))), o) {
406
406
  if (R >= o.end)
407
407
  A(l = o.b, 1 - l), V(t, o.b, "end"), f || (o.b ? a() : --o.group.r || j(o.group.c)), o = null;
408
408
  else if (R >= o.start) {
409
409
  const yt = R - o.start;
410
- l = o.a + o.d * w(yt / o.duration), A(l, 1 - l);
410
+ l = o.a + o.d * b(yt / o.duration), A(l, 1 - l);
411
411
  }
412
412
  }
413
413
  return !!(o || f);
@@ -697,7 +697,7 @@ class ie {
697
697
  * @returns {void}
698
698
  */
699
699
  $set(e) {
700
- this.$$set && !wt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
700
+ this.$$set && !bt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
701
701
  }
702
702
  }
703
703
  const se = "4";
@@ -735,7 +735,7 @@ function ot(t, { delay: e = 0, duration: n = 400, easing: i = lt } = {}) {
735
735
  };
736
736
  }
737
737
  function ue(t) {
738
- St(t, "svelte-f275jp", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@media(max-width: 475px){#Modal{align-items:start}.ModalContainer{margin-top:50%;max-width:90%}}");
738
+ St(t, "svelte-2w7akv", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@container (max-width: 475px){#Modal{display:grid;place-items:center start;grid-template-rows:minmax(10vh, 1fr) auto minmax(5vh, 1fr)}.ModalContainer{grid-row:2;max-width:90%;max-height:80vh;overflow-y:auto;margin:auto}}");
739
739
  }
740
740
  const le = (t) => ({}), ct = (t) => ({});
741
741
  function ut(t) {
@@ -860,7 +860,7 @@ function ae(t, e, n) {
860
860
  m = d, n(6, m);
861
861
  });
862
862
  }
863
- function w() {
863
+ function b() {
864
864
  a = this.clientWidth, g = this.clientHeight, n(0, a), n(1, g);
865
865
  }
866
866
  function A(d) {
@@ -890,7 +890,7 @@ function ae(t, e, n) {
890
890
  s,
891
891
  i,
892
892
  $,
893
- w,
893
+ b,
894
894
  A
895
895
  ];
896
896
  }
@@ -901,7 +901,7 @@ class mt extends ie {
901
901
  e,
902
902
  ae,
903
903
  fe,
904
- bt,
904
+ wt,
905
905
  {
906
906
  mbsource: 8,
907
907
  clientstyling: 9,
@@ -970,35 +970,35 @@ const pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
970
970
  default: mt
971
971
  }, Symbol.toStringTag, { value: "Module" }));
972
972
  export {
973
- $t as A,
974
- ge as B,
973
+ oe as A,
974
+ ce as B,
975
975
  re as C,
976
976
  pe as D,
977
977
  ie as S,
978
- bt as a,
978
+ xt as a,
979
979
  ee as b,
980
980
  ne as c,
981
981
  St as d,
982
- C as e,
982
+ O as e,
983
983
  p as f,
984
- y as g,
985
- tt as h,
984
+ tt as g,
985
+ C as h,
986
986
  Q as i,
987
- O as j,
987
+ y as j,
988
988
  he as k,
989
989
  W as l,
990
- oe as m,
990
+ $e as m,
991
991
  k as n,
992
992
  Ut as o,
993
- ce as p,
994
- ye as q,
993
+ ye as p,
994
+ _e as q,
995
995
  j as r,
996
- xt as s,
996
+ wt as s,
997
997
  me as t,
998
- Ot as u,
999
- de as v,
1000
- $e as w,
1001
- x,
1002
- _e as y,
1003
- Z as z
998
+ de as u,
999
+ x as v,
1000
+ Ot as w,
1001
+ Z as x,
1002
+ ge as y,
1003
+ $t as z
1004
1004
  };
@@ -1,4 +1,4 @@
1
- "use strict";var Pt=Object.defineProperty,Rt=Object.defineProperties;var Tt=Object.getOwnPropertyDescriptors;var st=Object.getOwnPropertySymbols;var Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var K=(t,e,n)=>e in t?Pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rt=(t,e)=>{for(var n in e||(e={}))Ht.call(e,n)&&K(t,n,e[n]);if(st)for(var n of st(e))qt.call(e,n)&&K(t,n,e[n]);return t},ot=(t,e)=>Rt(t,Tt(e));var p=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n);var ct=(t,e,n)=>new Promise((i,s)=>{var r=f=>{try{o(n.next(f))}catch(l){s(l)}},c=f=>{try{o(n.throw(f))}catch(l){s(l)}},o=f=>f.done?i(f.value):Promise.resolve(f.value).then(r,c);o((n=n.apply(t,e)).next())});function E(){}const gt=t=>t;function Ut(t,e){for(const n in e)t[n]=e[n];return t}function mt(t){return t()}function lt(){return Object.create(null)}function L(t){t.forEach(mt)}function V(t){return typeof t=="function"}function yt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let q;function It(t,e){return t===e?!0:(q||(q=document.createElement("a")),q.href=e,t===q.href)}function Wt(t){return Object.keys(t).length===0}function pt(t,...e){if(t==null){for(const i of e)i(void 0);return E}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Dt(t,e,n){t.$$.on_destroy.push(pt(e,n))}function Ft(t,e,n,i){if(t){const s=bt(t,e,n,i);return t[0](s)}}function bt(t,e,n,i){return t[1]&&i?Ut(n.ctx.slice(),t[1](i(e))):n.ctx}function Jt(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const r=[],c=Math.max(e.dirty.length,s.length);for(let o=0;o<c;o+=1)r[o]=e.dirty[o]|s[o];return r}return e.dirty|s}return e.dirty}function Vt(t,e,n,i,s,r){if(s){const c=bt(e,n,i,r);t.p(c,s)}}function Zt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}const wt=typeof window!="undefined";let Gt=wt?()=>window.performance.now():()=>Date.now(),et=wt?t=>requestAnimationFrame(t):E;const j=new Set;function xt(t){j.forEach(e=>{e.c(t)||(j.delete(e),e.f())}),j.size!==0&&et(xt)}function Kt(t){let e;return j.size===0&&et(xt),{promise:new Promise(n=>{j.add(e={c:t,f:n})}),abort(){j.delete(e)}}}function C(t,e){t.appendChild(e)}function Ct(t,e,n){const i=nt(t);if(!i.getElementById(e)){const s=v("style");s.id=e,s.textContent=n,vt(i,s)}}function nt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Qt(t){const e=v("style");return e.textContent="/* empty */",vt(nt(t),e),e.sheet}function vt(t,e){return C(t.head||t,e),e.sheet}function Z(t,e,n){t.insertBefore(e,n||null)}function M(t){t.parentNode&&t.parentNode.removeChild(t)}function Xt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function v(t){return document.createElement(t)}function ut(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function it(t){return document.createTextNode(t)}function Et(){return it(" ")}function Yt(){return it("")}function D(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function y(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function te(t,e,n){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:y(t,e,n)}function ee(t){return Array.from(t.childNodes)}function ne(t,e){e=""+e,t.data!==e&&(t.data=e)}let U;function ie(){if(U===void 0){U=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){U=!0}}return U}function se(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const i=v("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const s=ie();let r;return s?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=D(window,"message",c=>{c.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{r=D(i.contentWindow,"resize",e),e()}),C(t,i),()=>{(s||r&&i.contentWindow)&&r(),M(i)}}function re(t,e,n){t.classList.toggle(e,!!n)}function oe(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function ce(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}const F=new Map;let J=0;function le(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ue(t,e){const n={stylesheet:Qt(e),rules:{}};return F.set(t,n),n}function ft(t,e,n,i,s,r,c,o=0){const f=16.666/i;let l=`{
2
- `;for(let $=0;$<=1;$+=f){const x=e+(n-e)*r($);l+=$*100+`%{${c(x,1-x)}}
1
+ "use strict";var Pt=Object.defineProperty,Rt=Object.defineProperties;var Tt=Object.getOwnPropertyDescriptors;var st=Object.getOwnPropertySymbols;var Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var K=(t,e,n)=>e in t?Pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rt=(t,e)=>{for(var n in e||(e={}))Ht.call(e,n)&&K(t,n,e[n]);if(st)for(var n of st(e))qt.call(e,n)&&K(t,n,e[n]);return t},ot=(t,e)=>Rt(t,Tt(e));var p=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n);var ct=(t,e,n)=>new Promise((i,s)=>{var r=f=>{try{o(n.next(f))}catch(l){s(l)}},c=f=>{try{o(n.throw(f))}catch(l){s(l)}},o=f=>f.done?i(f.value):Promise.resolve(f.value).then(r,c);o((n=n.apply(t,e)).next())});function E(){}const $t=t=>t;function Ut(t,e){for(const n in e)t[n]=e[n];return t}function mt(t){return t()}function lt(){return Object.create(null)}function L(t){t.forEach(mt)}function V(t){return typeof t=="function"}function yt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let q;function It(t,e){return t===e?!0:(q||(q=document.createElement("a")),q.href=e,t===q.href)}function Wt(t){return Object.keys(t).length===0}function pt(t,...e){if(t==null){for(const i of e)i(void 0);return E}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Dt(t,e,n){t.$$.on_destroy.push(pt(e,n))}function Ft(t,e,n,i){if(t){const s=bt(t,e,n,i);return t[0](s)}}function bt(t,e,n,i){return t[1]&&i?Ut(n.ctx.slice(),t[1](i(e))):n.ctx}function Jt(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const r=[],c=Math.max(e.dirty.length,s.length);for(let o=0;o<c;o+=1)r[o]=e.dirty[o]|s[o];return r}return e.dirty|s}return e.dirty}function Vt(t,e,n,i,s,r){if(s){const c=bt(e,n,i,r);t.p(c,s)}}function Zt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}const wt=typeof window!="undefined";let Gt=wt?()=>window.performance.now():()=>Date.now(),et=wt?t=>requestAnimationFrame(t):E;const j=new Set;function xt(t){j.forEach(e=>{e.c(t)||(j.delete(e),e.f())}),j.size!==0&&et(xt)}function Kt(t){let e;return j.size===0&&et(xt),{promise:new Promise(n=>{j.add(e={c:t,f:n})}),abort(){j.delete(e)}}}function C(t,e){t.appendChild(e)}function Ct(t,e,n){const i=nt(t);if(!i.getElementById(e)){const s=v("style");s.id=e,s.textContent=n,vt(i,s)}}function nt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Qt(t){const e=v("style");return e.textContent="/* empty */",vt(nt(t),e),e.sheet}function vt(t,e){return C(t.head||t,e),e.sheet}function Z(t,e,n){t.insertBefore(e,n||null)}function M(t){t.parentNode&&t.parentNode.removeChild(t)}function Xt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function v(t){return document.createElement(t)}function ut(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function it(t){return document.createTextNode(t)}function Et(){return it(" ")}function Yt(){return it("")}function D(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function y(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function te(t,e,n){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:y(t,e,n)}function ee(t){return Array.from(t.childNodes)}function ne(t,e){e=""+e,t.data!==e&&(t.data=e)}let U;function ie(){if(U===void 0){U=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){U=!0}}return U}function se(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const i=v("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const s=ie();let r;return s?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=D(window,"message",c=>{c.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{r=D(i.contentWindow,"resize",e),e()}),C(t,i),()=>{(s||r&&i.contentWindow)&&r(),M(i)}}function re(t,e,n){t.classList.toggle(e,!!n)}function oe(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function ce(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}const F=new Map;let J=0;function le(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ue(t,e){const n={stylesheet:Qt(e),rules:{}};return F.set(t,n),n}function ft(t,e,n,i,s,r,c,o=0){const f=16.666/i;let l=`{
2
+ `;for(let g=0;g<=1;g+=f){const x=e+(n-e)*r(g);l+=g*100+`%{${c(x,1-x)}}
3
3
  `}const _=l+`100% {${c(n,1-n)}}
4
- }`,a=`__svelte_${le(_)}_${o}`,g=nt(t),{stylesheet:m,rules:u}=F.get(g)||ue(g,t);u[a]||(u[a]=!0,m.insertRule(`@keyframes ${a} ${_}`,m.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${a} ${i}ms linear ${s}ms 1 both`,J+=1,a}function fe(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),s=n.length-i.length;s&&(t.style.animation=i.join(", "),J-=s,J||ae())}function ae(){et(()=>{J||(F.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&M(e)}),F.clear())})}let R;function B(t){R=t}function de(){if(!R)throw new Error("Function called outside component initialization");return R}function Lt(t){de().$$.on_mount.push(t)}const k=[],T=[];let O=[];const at=[],he=Promise.resolve();let Y=!1;function _e(){Y||(Y=!0,he.then(b))}function A(t){O.push(t)}const Q=new Set;let S=0;function b(){if(S!==0)return;const t=R;do{try{for(;S<k.length;){const e=k[S];S++,B(e),$e(e.$$)}}catch(e){throw k.length=0,S=0,e}for(B(null),k.length=0,S=0;T.length;)T.pop()();for(let e=0;e<O.length;e+=1){const n=O[e];Q.has(n)||(Q.add(n),n())}O.length=0}while(k.length);for(;at.length;)at.pop()();Y=!1,Q.clear(),B(t)}function $e(t){if(t.fragment!==null){t.update(),L(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(A)}}function ge(t){const e=[],n=[];O.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),O=e}let z;function me(){return z||(z=Promise.resolve(),z.then(()=>{z=null})),z}function X(t,e,n){t.dispatchEvent(oe(`${e?"intro":"outro"}${n}`))}const I=new Set;let w;function ye(){w={r:0,c:[],p:w}}function pe(){w.r||L(w.c),w=w.p}function P(t,e){t&&t.i&&(I.delete(t),t.i(e))}function tt(t,e,n,i){if(t&&t.o){if(I.has(t))return;I.add(t),w.c.push(()=>{I.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const be={duration:0};function dt(t,e,n,i){let r=e(t,n,{direction:"both"}),c=i?0:1,o=null,f=null,l=null,_;function a(){l&&fe(t,l)}function g(u,h){const $=u.b-c;return h*=Math.abs($),{a:c,b:u.b,d:$,duration:h,start:u.start,end:u.start+h,group:u.group}}function m(u){const{delay:h=0,duration:$=300,easing:x=gt,tick:N=E,css:d}=r||be,G={start:Gt()+h,b:u};u||(G.group=w,w.r+=1),"inert"in t&&(u?_!==void 0&&(t.inert=_):(_=t.inert,t.inert=!0)),o||f?f=G:(d&&(a(),l=ft(t,c,u,$,h,x,d)),u&&N(0,1),o=g(G,$),A(()=>X(t,u,"start")),Kt(H=>{if(f&&H>f.start&&(o=g(f,$),f=null,X(t,o.b,"start"),d&&(a(),l=ft(t,c,o.b,o.duration,0,x,r.css))),o){if(H>=o.end)N(c=o.b,1-c),X(t,o.b,"end"),f||(o.b?a():--o.group.r||L(o.group.c)),o=null;else if(H>=o.start){const Bt=H-o.start;c=o.a+o.d*x(Bt/o.duration),N(c,1-c)}}return!!(o||f)}))}return{run(u){V(r)?me().then(()=>{r=r({direction:u?"in":"out"}),m(u)}):m(u)},end(){a(),o=f=null}}}function we(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function xe(t,e,n){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,n),A(()=>{const r=t.$$.on_mount.map(mt).filter(V);t.$$.on_destroy?t.$$.on_destroy.push(...r):L(r),t.$$.on_mount=[]}),s.forEach(A)}function Ce(t,e){const n=t.$$;n.fragment!==null&&(ge(n.after_update),L(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ve(t,e){t.$$.dirty[0]===-1&&(k.push(t),_e(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Mt(t,e,n,i,s,r,c=null,o=[-1]){const f=R;B(t);const l=t.$$={fragment:null,ctx:[],props:r,update:E,not_equal:s,bound:lt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:lt(),dirty:o,skip_bound:!1,root:e.target||f.$$.root};c&&c(l.root);let _=!1;if(l.ctx=n?n(t,e.props||{},(a,g,...m)=>{const u=m.length?m[0]:g;return l.ctx&&s(l.ctx[a],l.ctx[a]=u)&&(!l.skip_bound&&l.bound[a]&&l.bound[a](u),_&&ve(t,a)),g}):[],l.update(),_=!0,L(l.before_update),l.fragment=i?i(l.ctx):!1,e.target){if(e.hydrate){const a=ee(e.target);l.fragment&&l.fragment.l(a),a.forEach(M)}else l.fragment&&l.fragment.c();e.intro&&P(t.$$.fragment),xe(t,e.target,e.anchor),b()}B(f)}let St;typeof HTMLElement=="function"&&(St=class extends HTMLElement{constructor(e,n,i){super();p(this,"$$ctor");p(this,"$$s");p(this,"$$c");p(this,"$$cn",!1);p(this,"$$d",{});p(this,"$$r",!1);p(this,"$$p_d",{});p(this,"$$l",{});p(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(e,n,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const s=this.$$c.$on(e,n);this.$$l_u.set(n,s)}super.addEventListener(e,n,i)}removeEventListener(e,n,i){if(super.removeEventListener(e,n,i),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}connectedCallback(){return ct(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let c;return{c:function(){c=v("slot"),r!=="default"&&y(c,"name",r)},m:function(l,_){Z(l,c,_)},d:function(l){l&&M(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ce(this);for(const r of this.$$s)r in i&&(n[r]=[e(r)]);for(const r of this.attributes){const c=this.$$g_p(r.name);c in this.$$d||(this.$$d[c]=W(c,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ot(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const c=W(r,this.$$d[r],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,c)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const r in this.$$l)for(const c of this.$$l[r]){const o=this.$$c.$on(r,c);this.$$l_u.set(c,o)}this.$$l={}}})}attributeChangedCallback(e,n,i){var s;this.$$r||(e=this.$$g_p(e),this.$$d[e]=W(e,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function W(t,e,n,i){var r;const s=(r=n[t])==null?void 0:r.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function kt(t,e,n,i,s,r){let c=class extends St{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(o=>(e[o].attribute||o).toLowerCase())}};return Object.keys(e).forEach(o=>{Object.defineProperty(c.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){var l;f=W(o,f,e),this.$$d[o]=f,(l=this.$$c)==null||l.$set({[o]:f})}})}),i.forEach(o=>{Object.defineProperty(c.prototype,o,{get(){var f;return(f=this.$$c)==null?void 0:f[o]}})}),t.element=c,c}class jt{constructor(){p(this,"$$");p(this,"$$set")}$destroy(){Ce(this,1),this.$destroy=E}$on(e,n){if(!V(n))return E;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!Wt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ee="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ee);function Ot(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function At(t,e){const n=new URL(e);fetch(n.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,t&&t.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Nt(t,e,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,s=>{i.innerHTML=s,t&&t.appendChild(i)})}}function ht(t,{delay:e=0,duration:n=400,easing:i=gt}={}){const s=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:r=>`opacity: ${r*s}`}}function Le(t){Ct(t,"svelte-f275jp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@media(max-width: 475px){#Modal{align-items:start}.ModalContainer{margin-top:50%;max-width:90%}}")}const Me=t=>({}),_t=t=>({});function $t(t){let e,n,i,s,r,c,o,f,l,_,a,g;const m=t[12].content,u=Ft(m,t,t[11],_t);return{c(){e=v("div"),n=v("div"),i=v("div"),s=ut("svg"),r=ut("path"),c=Et(),u&&u.c(),y(r,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),y(r,"fill","#111111"),y(s,"xmlns","http://www.w3.org/2000/svg"),y(s,"width","13"),y(s,"height","13"),y(s,"viewBox","0 0 13 13"),y(s,"fill","none"),y(s,"class","CloseButton"),y(i,"class","ModalContainer"),y(i,"style",o=t[3]==="true"?"height: 70%":"height: auto"),y(n,"id","Modal"),A(()=>t[14].call(n))},m(h,$){Z(h,e,$),C(e,n),C(n,i),C(i,s),C(s,r),C(i,c),u&&u.m(i,null),t[13](n),f=se(n,t[14].bind(n)),t[15](e),_=!0,a||(g=D(s,"click",t[7]),a=!0)},p(h,$){t=h,u&&u.p&&(!_||$&2048)&&Vt(u,m,t,t[11],_?Jt(m,t[11],$,Me):Zt(t[11]),_t),(!_||$&8&&o!==(o=t[3]==="true"?"height: 70%":"height: auto"))&&y(i,"style",o)},i(h){_||(P(u,h),h&&A(()=>{_&&(l||(l=dt(n,ht,t[4],!0)),l.run(1))}),_=!0)},o(h){tt(u,h),h&&(l||(l=dt(n,ht,t[4],!1)),l.run(0)),_=!1},d(h){h&&M(e),u&&u.d(h),t[13](null),f(),h&&l&&l.end(),t[15](null),a=!1,g()}}}function Se(t){let e,n,i=t[2]==="true"&&$t(t);return{c(){i&&i.c(),e=Yt()},m(s,r){i&&i.m(s,r),Z(s,e,r),n=!0},p(s,[r]){s[2]==="true"?i?(i.p(s,r),r&4&&P(i,1)):(i=$t(s),i.c(),P(i,1),i.m(e.parentNode,e)):i&&(ye(),tt(i,1,1,()=>{i=null}),pe())},i(s){n||(P(i),n=!0)},o(s){tt(i),n=!1},d(s){s&&M(e),i&&i.d(s)}}}function ke(t,e,n){let{$$slots:i={},$$scope:s}=e,{mbsource:r}=e,{clientstyling:c}=e,{clientstylingurl:o}=e,{show:f}=e,{isvideo:l=""}=e,{duration:_=200}=e,{width:a}=e,{height:g}=e,m,u;const h=()=>{window.postMessage({type:"CloseModal"},window.location.href)};Lt(()=>()=>{});function $(d){T[d?"unshift":"push"](()=>{m=d,n(6,m)})}function x(){a=this.clientWidth,g=this.clientHeight,n(0,a),n(1,g)}function N(d){T[d?"unshift":"push"](()=>{u=d,n(5,u)})}return t.$$set=d=>{"mbsource"in d&&n(8,r=d.mbsource),"clientstyling"in d&&n(9,c=d.clientstyling),"clientstylingurl"in d&&n(10,o=d.clientstylingurl),"show"in d&&n(2,f=d.show),"isvideo"in d&&n(3,l=d.isvideo),"duration"in d&&n(4,_=d.duration),"width"in d&&n(0,a=d.width),"height"in d&&n(1,g=d.height),"$$scope"in d&&n(11,s=d.$$scope)},t.$$.update=()=>{t.$$.dirty&544&&c&&u&&Ot(u,c),t.$$.dirty&1056&&o&&u&&At(u,o),t.$$.dirty&288&&r&&u&&Nt(u,`${r}.Style`)},[a,g,f,l,_,u,m,h,r,c,o,s,i,$,x,N]}class zt extends jt{constructor(e){super(),Mt(this,e,ke,Se,yt,{mbsource:8,clientstyling:9,clientstylingurl:10,show:2,isvideo:3,duration:4,width:0,height:1},Le)}get mbsource(){return this.$$.ctx[8]}set mbsource(e){this.$$set({mbsource:e}),b()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),b()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),b()}get show(){return this.$$.ctx[2]}set show(e){this.$$set({show:e}),b()}get isvideo(){return this.$$.ctx[3]}set isvideo(e){this.$$set({isvideo:e}),b()}get duration(){return this.$$.ctx[4]}set duration(e){this.$$set({duration:e}),b()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),b()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),b()}}kt(zt,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},isvideo:{},duration:{},width:{},height:{}},["content"],[],!0);const je=Object.freeze(Object.defineProperty({__proto__:null,default:zt},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=je;exports.SvelteComponent=jt;exports.append=C;exports.append_styles=Ct;exports.attr=y;exports.binding_callbacks=T;exports.component_subscribe=Dt;exports.create_custom_element=kt;exports.destroy_each=Xt;exports.detach=M;exports.element=v;exports.ensure_array_like=we;exports.flush=b;exports.init=Mt;exports.insert=Z;exports.is_function=V;exports.listen=D;exports.noop=E;exports.onMount=Lt;exports.run_all=L;exports.safe_not_equal=yt;exports.setClientStyling=Ot;exports.setClientStylingURL=At;exports.setStreamStyling=Nt;exports.set_custom_element_data=te;exports.set_data=ne;exports.space=Et;exports.src_url_equal=It;exports.subscribe=pt;exports.text=it;exports.toggle_class=re;
4
+ }`,a=`__svelte_${le(_)}_${o}`,$=nt(t),{stylesheet:m,rules:u}=F.get($)||ue($,t);u[a]||(u[a]=!0,m.insertRule(`@keyframes ${a} ${_}`,m.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${a} ${i}ms linear ${s}ms 1 both`,J+=1,a}function fe(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),s=n.length-i.length;s&&(t.style.animation=i.join(", "),J-=s,J||ae())}function ae(){et(()=>{J||(F.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&M(e)}),F.clear())})}let R;function B(t){R=t}function de(){if(!R)throw new Error("Function called outside component initialization");return R}function Lt(t){de().$$.on_mount.push(t)}const k=[],T=[];let O=[];const at=[],he=Promise.resolve();let Y=!1;function _e(){Y||(Y=!0,he.then(b))}function A(t){O.push(t)}const Q=new Set;let S=0;function b(){if(S!==0)return;const t=R;do{try{for(;S<k.length;){const e=k[S];S++,B(e),ge(e.$$)}}catch(e){throw k.length=0,S=0,e}for(B(null),k.length=0,S=0;T.length;)T.pop()();for(let e=0;e<O.length;e+=1){const n=O[e];Q.has(n)||(Q.add(n),n())}O.length=0}while(k.length);for(;at.length;)at.pop()();Y=!1,Q.clear(),B(t)}function ge(t){if(t.fragment!==null){t.update(),L(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(A)}}function $e(t){const e=[],n=[];O.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),O=e}let z;function me(){return z||(z=Promise.resolve(),z.then(()=>{z=null})),z}function X(t,e,n){t.dispatchEvent(oe(`${e?"intro":"outro"}${n}`))}const I=new Set;let w;function ye(){w={r:0,c:[],p:w}}function pe(){w.r||L(w.c),w=w.p}function P(t,e){t&&t.i&&(I.delete(t),t.i(e))}function tt(t,e,n,i){if(t&&t.o){if(I.has(t))return;I.add(t),w.c.push(()=>{I.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const be={duration:0};function dt(t,e,n,i){let r=e(t,n,{direction:"both"}),c=i?0:1,o=null,f=null,l=null,_;function a(){l&&fe(t,l)}function $(u,h){const g=u.b-c;return h*=Math.abs(g),{a:c,b:u.b,d:g,duration:h,start:u.start,end:u.start+h,group:u.group}}function m(u){const{delay:h=0,duration:g=300,easing:x=$t,tick:N=E,css:d}=r||be,G={start:Gt()+h,b:u};u||(G.group=w,w.r+=1),"inert"in t&&(u?_!==void 0&&(t.inert=_):(_=t.inert,t.inert=!0)),o||f?f=G:(d&&(a(),l=ft(t,c,u,g,h,x,d)),u&&N(0,1),o=$(G,g),A(()=>X(t,u,"start")),Kt(H=>{if(f&&H>f.start&&(o=$(f,g),f=null,X(t,o.b,"start"),d&&(a(),l=ft(t,c,o.b,o.duration,0,x,r.css))),o){if(H>=o.end)N(c=o.b,1-c),X(t,o.b,"end"),f||(o.b?a():--o.group.r||L(o.group.c)),o=null;else if(H>=o.start){const Bt=H-o.start;c=o.a+o.d*x(Bt/o.duration),N(c,1-c)}}return!!(o||f)}))}return{run(u){V(r)?me().then(()=>{r=r({direction:u?"in":"out"}),m(u)}):m(u)},end(){a(),o=f=null}}}function we(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function xe(t,e,n){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,n),A(()=>{const r=t.$$.on_mount.map(mt).filter(V);t.$$.on_destroy?t.$$.on_destroy.push(...r):L(r),t.$$.on_mount=[]}),s.forEach(A)}function Ce(t,e){const n=t.$$;n.fragment!==null&&($e(n.after_update),L(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ve(t,e){t.$$.dirty[0]===-1&&(k.push(t),_e(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Mt(t,e,n,i,s,r,c=null,o=[-1]){const f=R;B(t);const l=t.$$={fragment:null,ctx:[],props:r,update:E,not_equal:s,bound:lt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:lt(),dirty:o,skip_bound:!1,root:e.target||f.$$.root};c&&c(l.root);let _=!1;if(l.ctx=n?n(t,e.props||{},(a,$,...m)=>{const u=m.length?m[0]:$;return l.ctx&&s(l.ctx[a],l.ctx[a]=u)&&(!l.skip_bound&&l.bound[a]&&l.bound[a](u),_&&ve(t,a)),$}):[],l.update(),_=!0,L(l.before_update),l.fragment=i?i(l.ctx):!1,e.target){if(e.hydrate){const a=ee(e.target);l.fragment&&l.fragment.l(a),a.forEach(M)}else l.fragment&&l.fragment.c();e.intro&&P(t.$$.fragment),xe(t,e.target,e.anchor),b()}B(f)}let St;typeof HTMLElement=="function"&&(St=class extends HTMLElement{constructor(e,n,i){super();p(this,"$$ctor");p(this,"$$s");p(this,"$$c");p(this,"$$cn",!1);p(this,"$$d",{});p(this,"$$r",!1);p(this,"$$p_d",{});p(this,"$$l",{});p(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(e,n,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const s=this.$$c.$on(e,n);this.$$l_u.set(n,s)}super.addEventListener(e,n,i)}removeEventListener(e,n,i){if(super.removeEventListener(e,n,i),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}connectedCallback(){return ct(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let c;return{c:function(){c=v("slot"),r!=="default"&&y(c,"name",r)},m:function(l,_){Z(l,c,_)},d:function(l){l&&M(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ce(this);for(const r of this.$$s)r in i&&(n[r]=[e(r)]);for(const r of this.attributes){const c=this.$$g_p(r.name);c in this.$$d||(this.$$d[c]=W(c,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ot(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const c=W(r,this.$$d[r],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,c)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const r in this.$$l)for(const c of this.$$l[r]){const o=this.$$c.$on(r,c);this.$$l_u.set(c,o)}this.$$l={}}})}attributeChangedCallback(e,n,i){var s;this.$$r||(e=this.$$g_p(e),this.$$d[e]=W(e,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function W(t,e,n,i){var r;const s=(r=n[t])==null?void 0:r.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function kt(t,e,n,i,s,r){let c=class extends St{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(o=>(e[o].attribute||o).toLowerCase())}};return Object.keys(e).forEach(o=>{Object.defineProperty(c.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){var l;f=W(o,f,e),this.$$d[o]=f,(l=this.$$c)==null||l.$set({[o]:f})}})}),i.forEach(o=>{Object.defineProperty(c.prototype,o,{get(){var f;return(f=this.$$c)==null?void 0:f[o]}})}),t.element=c,c}class jt{constructor(){p(this,"$$");p(this,"$$set")}$destroy(){Ce(this,1),this.$destroy=E}$on(e,n){if(!V(n))return E;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!Wt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ee="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ee);function Ot(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function At(t,e){const n=new URL(e);fetch(n.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,t&&t.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Nt(t,e,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,s=>{i.innerHTML=s,t&&t.appendChild(i)})}}function ht(t,{delay:e=0,duration:n=400,easing:i=$t}={}){const s=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:r=>`opacity: ${r*s}`}}function Le(t){Ct(t,"svelte-2w7akv","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@container (max-width: 475px){#Modal{display:grid;place-items:center start;grid-template-rows:minmax(10vh, 1fr) auto minmax(5vh, 1fr)}.ModalContainer{grid-row:2;max-width:90%;max-height:80vh;overflow-y:auto;margin:auto}}")}const Me=t=>({}),_t=t=>({});function gt(t){let e,n,i,s,r,c,o,f,l,_,a,$;const m=t[12].content,u=Ft(m,t,t[11],_t);return{c(){e=v("div"),n=v("div"),i=v("div"),s=ut("svg"),r=ut("path"),c=Et(),u&&u.c(),y(r,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),y(r,"fill","#111111"),y(s,"xmlns","http://www.w3.org/2000/svg"),y(s,"width","13"),y(s,"height","13"),y(s,"viewBox","0 0 13 13"),y(s,"fill","none"),y(s,"class","CloseButton"),y(i,"class","ModalContainer"),y(i,"style",o=t[3]==="true"?"height: 70%":"height: auto"),y(n,"id","Modal"),A(()=>t[14].call(n))},m(h,g){Z(h,e,g),C(e,n),C(n,i),C(i,s),C(s,r),C(i,c),u&&u.m(i,null),t[13](n),f=se(n,t[14].bind(n)),t[15](e),_=!0,a||($=D(s,"click",t[7]),a=!0)},p(h,g){t=h,u&&u.p&&(!_||g&2048)&&Vt(u,m,t,t[11],_?Jt(m,t[11],g,Me):Zt(t[11]),_t),(!_||g&8&&o!==(o=t[3]==="true"?"height: 70%":"height: auto"))&&y(i,"style",o)},i(h){_||(P(u,h),h&&A(()=>{_&&(l||(l=dt(n,ht,t[4],!0)),l.run(1))}),_=!0)},o(h){tt(u,h),h&&(l||(l=dt(n,ht,t[4],!1)),l.run(0)),_=!1},d(h){h&&M(e),u&&u.d(h),t[13](null),f(),h&&l&&l.end(),t[15](null),a=!1,$()}}}function Se(t){let e,n,i=t[2]==="true"&&gt(t);return{c(){i&&i.c(),e=Yt()},m(s,r){i&&i.m(s,r),Z(s,e,r),n=!0},p(s,[r]){s[2]==="true"?i?(i.p(s,r),r&4&&P(i,1)):(i=gt(s),i.c(),P(i,1),i.m(e.parentNode,e)):i&&(ye(),tt(i,1,1,()=>{i=null}),pe())},i(s){n||(P(i),n=!0)},o(s){tt(i),n=!1},d(s){s&&M(e),i&&i.d(s)}}}function ke(t,e,n){let{$$slots:i={},$$scope:s}=e,{mbsource:r}=e,{clientstyling:c}=e,{clientstylingurl:o}=e,{show:f}=e,{isvideo:l=""}=e,{duration:_=200}=e,{width:a}=e,{height:$}=e,m,u;const h=()=>{window.postMessage({type:"CloseModal"},window.location.href)};Lt(()=>()=>{});function g(d){T[d?"unshift":"push"](()=>{m=d,n(6,m)})}function x(){a=this.clientWidth,$=this.clientHeight,n(0,a),n(1,$)}function N(d){T[d?"unshift":"push"](()=>{u=d,n(5,u)})}return t.$$set=d=>{"mbsource"in d&&n(8,r=d.mbsource),"clientstyling"in d&&n(9,c=d.clientstyling),"clientstylingurl"in d&&n(10,o=d.clientstylingurl),"show"in d&&n(2,f=d.show),"isvideo"in d&&n(3,l=d.isvideo),"duration"in d&&n(4,_=d.duration),"width"in d&&n(0,a=d.width),"height"in d&&n(1,$=d.height),"$$scope"in d&&n(11,s=d.$$scope)},t.$$.update=()=>{t.$$.dirty&544&&c&&u&&Ot(u,c),t.$$.dirty&1056&&o&&u&&At(u,o),t.$$.dirty&288&&r&&u&&Nt(u,`${r}.Style`)},[a,$,f,l,_,u,m,h,r,c,o,s,i,g,x,N]}class zt extends jt{constructor(e){super(),Mt(this,e,ke,Se,yt,{mbsource:8,clientstyling:9,clientstylingurl:10,show:2,isvideo:3,duration:4,width:0,height:1},Le)}get mbsource(){return this.$$.ctx[8]}set mbsource(e){this.$$set({mbsource:e}),b()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),b()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),b()}get show(){return this.$$.ctx[2]}set show(e){this.$$set({show:e}),b()}get isvideo(){return this.$$.ctx[3]}set isvideo(e){this.$$set({isvideo:e}),b()}get duration(){return this.$$.ctx[4]}set duration(e){this.$$set({duration:e}),b()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),b()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),b()}}kt(zt,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},isvideo:{},duration:{},width:{},height:{}},["content"],[],!0);const je=Object.freeze(Object.defineProperty({__proto__:null,default:zt},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=je;exports.SvelteComponent=jt;exports.append=C;exports.append_styles=Ct;exports.attr=y;exports.binding_callbacks=T;exports.component_subscribe=Dt;exports.create_custom_element=kt;exports.destroy_each=Xt;exports.detach=M;exports.element=v;exports.ensure_array_like=we;exports.flush=b;exports.init=Mt;exports.insert=Z;exports.is_function=V;exports.listen=D;exports.noop=E;exports.onMount=Lt;exports.run_all=L;exports.safe_not_equal=yt;exports.setClientStyling=Ot;exports.setClientStylingURL=At;exports.setStreamStyling=Nt;exports.set_custom_element_data=te;exports.set_data=ne;exports.space=Et;exports.src_url_equal=It;exports.subscribe=pt;exports.text=it;exports.toggle_class=re;