@everymatrix/cashier-header 1.85.17 → 1.85.19

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.
@@ -300,8 +300,8 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
300
300
  }
301
301
  q(l);
302
302
  }
303
- let Pt;
304
- typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
303
+ let Ct;
304
+ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
305
305
  constructor(t, r, n) {
306
306
  super();
307
307
  /** The Svelte component constructor */
@@ -452,7 +452,7 @@ function he(e, t, r, n) {
452
452
  }
453
453
  }
454
454
  function Or(e, t, r, n, i, s) {
455
- let a = class extends Pt {
455
+ let a = class extends Ct {
456
456
  constructor() {
457
457
  super(e, r, i), this.$$p_d = t;
458
458
  }
@@ -482,7 +482,7 @@ function Or(e, t, r, n, i, s) {
482
482
  }), e.element = /** @type {any} */
483
483
  a, a;
484
484
  }
485
- class Pr {
485
+ class Cr {
486
486
  constructor() {
487
487
  /**
488
488
  * ### PRIVATE API
@@ -528,8 +528,8 @@ class Pr {
528
528
  this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
529
529
  }
530
530
  }
531
- const Cr = "4";
532
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
531
+ const Pr = "4";
532
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
533
533
  const D = [];
534
534
  function Lr(e, t) {
535
535
  return {
@@ -635,7 +635,7 @@ function kr(e) {
635
635
  function nt(e) {
636
636
  return Object.keys(e).concat(kr(e));
637
637
  }
638
- function Ct(e, t) {
638
+ function Pt(e, t) {
639
639
  try {
640
640
  return t in e;
641
641
  } catch (r) {
@@ -643,14 +643,14 @@ function Ct(e, t) {
643
643
  }
644
644
  }
645
645
  function Vr(e, t) {
646
- return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
646
+ return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
647
647
  }
648
648
  function Xr(e, t, r) {
649
649
  var n = {};
650
650
  return r.isMergeableObject(e) && nt(e).forEach(function(i) {
651
651
  n[i] = K(e[i], r);
652
652
  }), nt(t).forEach(function(i) {
653
- Vr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
653
+ Vr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
654
654
  }), n;
655
655
  }
656
656
  function j(e, t, r) {
@@ -755,7 +755,7 @@ var en = function() {
755
755
  create: function() {
756
756
  return new tn();
757
757
  }
758
- }, Pe = {
758
+ }, Ce = {
759
759
  variadic: Kr
760
760
  }, me = function() {
761
761
  return me = Object.assign || function(t) {
@@ -2578,7 +2578,7 @@ function dn(e) {
2578
2578
  var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
2579
2579
  return i[0];
2580
2580
  }
2581
- var Ce, bn = new RegExp("^".concat(Ft.source, "*")), gn = new RegExp("".concat(Ft.source, "*$"));
2581
+ var Pe, bn = new RegExp("^".concat(Ft.source, "*")), gn = new RegExp("".concat(Ft.source, "*$"));
2582
2582
  function b(e, t) {
2583
2583
  return { start: e, end: t };
2584
2584
  }
@@ -2587,7 +2587,7 @@ var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String
2587
2587
  }, De = !0;
2588
2588
  try {
2589
2589
  var wn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2590
- De = ((Ce = wn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2590
+ De = ((Pe = wn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2591
2591
  } catch (e) {
2592
2592
  De = !1;
2593
2593
  }
@@ -2764,7 +2764,7 @@ var On = (
2764
2764
  return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
2765
2765
  }, e.prototype.parseTagName = function() {
2766
2766
  var t = this.offset();
2767
- for (this.bump(); !this.isEOF() && Cn(this.char()); )
2767
+ for (this.bump(); !this.isEOF() && Pn(this.char()); )
2768
2768
  this.bump();
2769
2769
  return this.message.slice(t, this.offset());
2770
2770
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2793,7 +2793,7 @@ var On = (
2793
2793
  };
2794
2794
  }, e.prototype.tryParseLeftAngleBracket = function() {
2795
2795
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2796
- !Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
2796
+ !Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2797
2797
  }, e.prototype.tryParseQuote = function(t) {
2798
2798
  if (this.isEOF() || this.char() !== 39)
2799
2799
  return null;
@@ -2908,9 +2908,9 @@ var On = (
2908
2908
  pattern: O,
2909
2909
  location: u.styleLocation,
2910
2910
  parsedOptions: this.shouldParseSkeletons ? an(O) : {}
2911
- }, P = o === "date" ? y.date : y.time;
2911
+ }, C = o === "date" ? y.date : y.time;
2912
2912
  return {
2913
- val: { type: P, value: n, location: _, style: m },
2913
+ val: { type: C, value: n, location: _, style: m },
2914
2914
  err: null
2915
2915
  };
2916
2916
  }
@@ -3138,10 +3138,10 @@ var On = (
3138
3138
  function je(e) {
3139
3139
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3140
3140
  }
3141
- function Pn(e) {
3141
+ function Cn(e) {
3142
3142
  return je(e) || e === 47;
3143
3143
  }
3144
- function Cn(e) {
3144
+ function Pn(e) {
3145
3145
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3146
3146
  }
3147
3147
  function zt(e) {
@@ -3287,10 +3287,10 @@ function le(e, t, r, n, i, s, a) {
3287
3287
  var f = h.children, _ = h.value, v = i[_];
3288
3288
  if (!Rn(v))
3289
3289
  throw new In(_, "function", a);
3290
- var O = le(f, t, r, n, i, s), P = v(O.map(function(A) {
3290
+ var O = le(f, t, r, n, i, s), C = v(O.map(function(A) {
3291
3291
  return A.value;
3292
3292
  }));
3293
- Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(A) {
3293
+ Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(A) {
3294
3294
  return {
3295
3295
  type: typeof A == "string" ? x.literal : x.object,
3296
3296
  value: A
@@ -3358,7 +3358,7 @@ function Gn(e) {
3358
3358
  return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
3359
3359
  }, {
3360
3360
  cache: Le(e.number),
3361
- strategy: Pe.variadic
3361
+ strategy: Ce.variadic
3362
3362
  }),
3363
3363
  getDateTimeFormat: Oe(function() {
3364
3364
  for (var t, r = [], n = 0; n < arguments.length; n++)
@@ -3366,7 +3366,7 @@ function Gn(e) {
3366
3366
  return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
3367
3367
  }, {
3368
3368
  cache: Le(e.dateTime),
3369
- strategy: Pe.variadic
3369
+ strategy: Ce.variadic
3370
3370
  }),
3371
3371
  getPluralRules: Oe(function() {
3372
3372
  for (var t, r = [], n = 0; n < arguments.length; n++)
@@ -3374,7 +3374,7 @@ function Gn(e) {
3374
3374
  return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
3375
3375
  }, {
3376
3376
  cache: Le(e.pluralRules),
3377
- strategy: Pe.variadic
3377
+ strategy: Ce.variadic
3378
3378
  })
3379
3379
  };
3380
3380
  }
@@ -3511,11 +3511,11 @@ function Fn(e, t) {
3511
3511
  n = void 0;
3512
3512
  return n;
3513
3513
  }
3514
- const C = {}, jn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Qt = (e, t) => {
3514
+ const P = {}, jn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), Qt = (e, t) => {
3515
3515
  if (t == null)
3516
3516
  return;
3517
- if (t in C && e in C[t])
3518
- return C[t][e];
3517
+ if (t in P && e in P[t])
3518
+ return P[t][e];
3519
3519
  const r = ie(t);
3520
3520
  for (let n = 0; n < r.length; n++) {
3521
3521
  const i = r[n], s = Vn(i, e);
@@ -3548,7 +3548,7 @@ function Xn(e) {
3548
3548
  }
3549
3549
  }
3550
3550
  function qt(e, ...t) {
3551
- delete C[e], ne.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
3551
+ delete P[e], ne.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
3552
3552
  }
3553
3553
  z(
3554
3554
  [ne],
@@ -3862,6 +3862,8 @@ function Ti(e, t) {
3862
3862
  }
3863
3863
  }
3864
3864
  function wi(e, t) {
3865
+ if (!e || !t)
3866
+ return;
3865
3867
  const r = new URL(t);
3866
3868
  fetch(r.href).then((n) => n.text()).then((n) => {
3867
3869
  const i = document.createElement("style");
@@ -3879,14 +3881,14 @@ function Si(e, t, r) {
3879
3881
  }
3880
3882
  }
3881
3883
  function Ai(e) {
3882
- cr(e, "svelte-brbf89", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);width:100%;padding:10px 0}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #3854FF);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}");
3884
+ cr(e, "svelte-1p7ag40", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}");
3883
3885
  }
3884
- const Oi = (e) => ({}), yt = (e) => ({}), Pi = (e) => ({}), Et = (e) => ({}), Ci = (e) => ({}), xt = (e) => ({});
3886
+ const Oi = (e) => ({}), yt = (e) => ({}), Ci = (e) => ({}), Et = (e) => ({}), Pi = (e) => ({}), xt = (e) => ({});
3885
3887
  function vt(e) {
3886
3888
  let t, r, n;
3887
3889
  return {
3888
3890
  c() {
3889
- t = W("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', re(t, "class", "CashierHeaderLeftButton");
3891
+ t = W("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>', re(t, "class", "CashierHeaderLeftButton");
3890
3892
  },
3891
3893
  m(i, s) {
3892
3894
  M(i, t, s), r || (n = Ot(
@@ -3955,7 +3957,7 @@ function Ht(e) {
3955
3957
  let t, r, n;
3956
3958
  return {
3957
3959
  c() {
3958
- t = W("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>', re(t, "class", "CashierHeaderRightButton");
3960
+ t = W("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path 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"></path></svg>', re(t, "class", "CashierHeaderRightButton");
3959
3961
  },
3960
3962
  m(i, s) {
3961
3963
  M(i, t, s), r || (n = Ot(
@@ -4042,7 +4044,7 @@ function Mi(e) {
4042
4044
  /*$$scope*/
4043
4045
  f[15],
4044
4046
  _,
4045
- Ci
4047
+ Pi
4046
4048
  ) : Te(
4047
4049
  /*$$scope*/
4048
4050
  f[15]
@@ -4061,7 +4063,7 @@ function Mi(e) {
4061
4063
  /*$$scope*/
4062
4064
  f[15],
4063
4065
  _,
4064
- Pi
4066
+ Ci
4065
4067
  ) : Te(
4066
4068
  /*$$scope*/
4067
4069
  f[15]
@@ -4104,7 +4106,7 @@ function $i(e, t, r) {
4104
4106
  let n;
4105
4107
  fr(e, Hi, (g) => r(4, n = g));
4106
4108
  let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _ = !1, v, O = !1;
4107
- const P = () => {
4109
+ const C = () => {
4108
4110
  fetch(l).then((g) => g.json()).then((g) => {
4109
4111
  Object.keys(g).forEach((Qe) => {
4110
4112
  gt(Qe, g[Qe]);
@@ -4145,7 +4147,7 @@ function $i(e, t, r) {
4145
4147
  129 && a && f && Ti(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4146
4148
  257 && o && f && wi(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4147
4149
  16385 && p && f && Si(f, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
4148
- 4608 && c && l && P(), e.$$.dirty & /*showbackbutton*/
4150
+ 4608 && c && l && C(), e.$$.dirty & /*showbackbutton*/
4149
4151
  1024 && u && R(), e.$$.dirty & /*showclosebutton*/
4150
4152
  8192 && m && se();
4151
4153
  }, [
@@ -4169,7 +4171,7 @@ function $i(e, t, r) {
4169
4171
  nr
4170
4172
  ];
4171
4173
  }
4172
- class Ri extends Pr {
4174
+ class Ri extends Cr {
4173
4175
  constructor(t) {
4174
4176
  super(), Ar(
4175
4177
  this,
@@ -107,7 +107,7 @@ function nr(e, t) {
107
107
  function I(e, t, r) {
108
108
  e.insertBefore(t, r || null);
109
109
  }
110
- function C(e) {
110
+ function P(e) {
111
111
  e.parentNode && e.parentNode.removeChild(e);
112
112
  }
113
113
  function X(e) {
@@ -264,7 +264,7 @@ function gr(e, t, r, n, i, s, u = null, o = [-1]) {
264
264
  }) : [], a.update(), h = !0, ee(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
265
265
  if (t.hydrate) {
266
266
  const c = ir(t.target);
267
- a.fragment && a.fragment.l(c), c.forEach(C);
267
+ a.fragment && a.fragment.l(c), c.forEach(P);
268
268
  } else
269
269
  a.fragment && a.fragment.c();
270
270
  t.intro && ae(e.$$.fragment), pr(e, t.target, t.anchor), T();
@@ -324,7 +324,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
324
324
  I(l, s, a);
325
325
  },
326
326
  d: function(l) {
327
- l && C(s);
327
+ l && P(s);
328
328
  }
329
329
  };
330
330
  };
@@ -579,12 +579,12 @@ function Or(e) {
579
579
  function Y(e, t) {
580
580
  return t.clone !== !1 && t.isMergeableObject(e) ? F(Or(e), e, t) : e;
581
581
  }
582
- function Pr(e, t, r) {
582
+ function Cr(e, t, r) {
583
583
  return e.concat(t).map(function(n) {
584
584
  return Y(n, r);
585
585
  });
586
586
  }
587
- function Cr(e, t) {
587
+ function Pr(e, t) {
588
588
  if (!t.customMerge)
589
589
  return F;
590
590
  var r = t.customMerge(e);
@@ -613,11 +613,11 @@ function Ir(e, t, r) {
613
613
  return r.isMergeableObject(e) && qe(e).forEach(function(i) {
614
614
  n[i] = Y(e[i], r);
615
615
  }), qe(t).forEach(function(i) {
616
- Nr(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Cr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
616
+ Nr(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
617
617
  }), n;
618
618
  }
619
619
  function F(e, t, r) {
620
- r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = Y;
620
+ r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = Y;
621
621
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
622
622
  return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : Y(t, r);
623
623
  }
@@ -754,10 +754,10 @@ function At(e) {
754
754
  function Ot(e) {
755
755
  return e.type === y.date;
756
756
  }
757
- function Pt(e) {
757
+ function Ct(e) {
758
758
  return e.type === y.time;
759
759
  }
760
- function Ct(e) {
760
+ function Pt(e) {
761
761
  return e.type === y.select;
762
762
  }
763
763
  function Lt(e) {
@@ -3115,11 +3115,11 @@ function xn(e) {
3115
3115
  }
3116
3116
  function Fe(e) {
3117
3117
  e.forEach(function(t) {
3118
- if (delete t.location, Ct(t) || Lt(t))
3118
+ if (delete t.location, Pt(t) || Lt(t))
3119
3119
  for (var r in t.options)
3120
3120
  delete t.options[r].location, Fe(t.options[r].value);
3121
3121
  else
3122
- At(t) && It(t.style) || (Ot(t) || Pt(t)) && $e(t.style) ? delete t.style.location : Nt(t) && Fe(t.children);
3122
+ At(t) && It(t.style) || (Ot(t) || Ct(t)) && $e(t.style) ? delete t.style.location : Nt(t) && Fe(t.children);
3123
3123
  });
3124
3124
  }
3125
3125
  function vn(e, t) {
@@ -3230,7 +3230,7 @@ function he(e, t, r, n, i, s, u) {
3230
3230
  });
3231
3231
  continue;
3232
3232
  }
3233
- if (Pt(h)) {
3233
+ if (Ct(h)) {
3234
3234
  var p = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
3235
3235
  o.push({
3236
3236
  type: x.literal,
@@ -3260,7 +3260,7 @@ function he(e, t, r, n, i, s, u) {
3260
3260
  };
3261
3261
  }));
3262
3262
  }
3263
- if (Ct(h)) {
3263
+ if (Pt(h)) {
3264
3264
  var H = h.options[m] || h.options.other;
3265
3265
  if (!H)
3266
3266
  throw new st(h.value, m, Object.keys(h.options), u);
@@ -3295,7 +3295,7 @@ function An(e, t) {
3295
3295
  return r[n] = Sn(e[n], t[n]), r;
3296
3296
  }, w({}, e)) : e;
3297
3297
  }
3298
- function Pe(e) {
3298
+ function Ce(e) {
3299
3299
  return {
3300
3300
  create: function() {
3301
3301
  return {
@@ -3320,7 +3320,7 @@ function On(e) {
3320
3320
  r[n] = arguments[n];
3321
3321
  return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
3322
3322
  }, {
3323
- cache: Pe(e.number),
3323
+ cache: Ce(e.number),
3324
3324
  strategy: Ae.variadic
3325
3325
  }),
3326
3326
  getDateTimeFormat: Se(function() {
@@ -3328,7 +3328,7 @@ function On(e) {
3328
3328
  r[n] = arguments[n];
3329
3329
  return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
3330
3330
  }, {
3331
- cache: Pe(e.dateTime),
3331
+ cache: Ce(e.dateTime),
3332
3332
  strategy: Ae.variadic
3333
3333
  }),
3334
3334
  getPluralRules: Se(function() {
@@ -3336,7 +3336,7 @@ function On(e) {
3336
3336
  r[n] = arguments[n];
3337
3337
  return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
3338
3338
  }, {
3339
- cache: Pe(e.pluralRules),
3339
+ cache: Ce(e.pluralRules),
3340
3340
  strategy: Ae.variadic
3341
3341
  })
3342
3342
  };
@@ -3453,7 +3453,7 @@ var jt = (
3453
3453
  }, e;
3454
3454
  }()
3455
3455
  );
3456
- function Pn(e, t) {
3456
+ function Cn(e, t) {
3457
3457
  if (t == null)
3458
3458
  return;
3459
3459
  if (t in e)
@@ -3474,16 +3474,16 @@ function Pn(e, t) {
3474
3474
  n = void 0;
3475
3475
  return n;
3476
3476
  }
3477
- const P = {}, Cn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), kt = (e, t) => {
3477
+ const C = {}, Pn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), kt = (e, t) => {
3478
3478
  if (t == null)
3479
3479
  return;
3480
- if (t in P && e in P[t])
3481
- return P[t][e];
3480
+ if (t in C && e in C[t])
3481
+ return C[t][e];
3482
3482
  const r = ne(t);
3483
3483
  for (let n = 0; n < r.length; n++) {
3484
3484
  const i = r[n], s = Nn(i, e);
3485
3485
  if (s)
3486
- return Cn(e, t, s);
3486
+ return Pn(e, t, s);
3487
3487
  }
3488
3488
  };
3489
3489
  let Xe;
@@ -3498,7 +3498,7 @@ function Nn(e, t) {
3498
3498
  if (!Vt(e))
3499
3499
  return null;
3500
3500
  const r = Ln(e);
3501
- return Pn(r, t);
3501
+ return Cn(r, t);
3502
3502
  }
3503
3503
  function In(e) {
3504
3504
  if (e == null)
@@ -3511,7 +3511,7 @@ function In(e) {
3511
3511
  }
3512
3512
  }
3513
3513
  function Xt(e, ...t) {
3514
- delete P[e], re.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
3514
+ delete C[e], re.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
3515
3515
  }
3516
3516
  W(
3517
3517
  [re],
@@ -3633,7 +3633,7 @@ function Vn(e) {
3633
3633
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3634
3634
  )), Object.assign(Q, n, { initialLocale: i }), r && ("number" in r && Object.assign(Q.formats.number, r.number), "date" in r && Object.assign(Q.formats.date, r.date), "time" in r && Object.assign(Q.formats.time, r.time)), M.set(i);
3635
3635
  }
3636
- const Ce = be(!1);
3636
+ const Pe = be(!1);
3637
3637
  var Xn = Object.defineProperty, Wn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
3638
3638
  for (var r in t || (t = {}))
3639
3639
  Zn.call(t, r) && ut(e, r, t[r]);
@@ -3662,12 +3662,12 @@ const Yn = (e) => {
3662
3662
  const { loadingDelay: t } = V();
3663
3663
  let r;
3664
3664
  return typeof window < "u" && L() != null && t ? r = window.setTimeout(
3665
- () => Ce.set(!0),
3665
+ () => Pe.set(!0),
3666
3666
  t
3667
- ) : Ce.set(!0), zt(e).then(() => {
3667
+ ) : Pe.set(!0), zt(e).then(() => {
3668
3668
  pe.set(e);
3669
3669
  }).finally(() => {
3670
- clearTimeout(r), Ce.set(!1);
3670
+ clearTimeout(r), Pe.set(!1);
3671
3671
  });
3672
3672
  }
3673
3673
  return pe.set(e);
@@ -3825,6 +3825,8 @@ function pi(e, t) {
3825
3825
  }
3826
3826
  }
3827
3827
  function di(e, t) {
3828
+ if (!e || !t)
3829
+ return;
3828
3830
  const r = new URL(t);
3829
3831
  fetch(r.href).then((n) => n.text()).then((n) => {
3830
3832
  const i = document.createElement("style");
@@ -3842,14 +3844,14 @@ function bi(e, t, r) {
3842
3844
  }
3843
3845
  }
3844
3846
  function gi(e) {
3845
- tr(e, "svelte-brbf89", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);width:100%;padding:10px 0}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #3854FF);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}");
3847
+ tr(e, "svelte-1p7ag40", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}");
3846
3848
  }
3847
3849
  const _i = (e) => ({}), mt = (e) => ({}), yi = (e) => ({}), pt = (e) => ({}), Ei = (e) => ({}), dt = (e) => ({});
3848
3850
  function bt(e) {
3849
3851
  let t, r, n;
3850
3852
  return {
3851
3853
  c() {
3852
- t = X("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderLeftButton");
3854
+ t = X("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>', te(t, "class", "CashierHeaderLeftButton");
3853
3855
  },
3854
3856
  m(i, s) {
3855
3857
  I(i, t, s), r || (n = Ht(
@@ -3861,7 +3863,7 @@ function bt(e) {
3861
3863
  },
3862
3864
  p: B,
3863
3865
  d(i) {
3864
- i && C(t), r = !1, n();
3866
+ i && P(t), r = !1, n();
3865
3867
  }
3866
3868
  };
3867
3869
  }
@@ -3882,7 +3884,7 @@ function xi(e) {
3882
3884
  n[1] ? r ? r.p(n, i) : (r = bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3883
3885
  },
3884
3886
  d(n) {
3885
- n && C(t), r && r.d(n);
3887
+ n && P(t), r && r.d(n);
3886
3888
  }
3887
3889
  };
3888
3890
  }
@@ -3910,7 +3912,7 @@ function vi(e) {
3910
3912
  ) + "") && sr(n, r);
3911
3913
  },
3912
3914
  d(i) {
3913
- i && C(t);
3915
+ i && P(t);
3914
3916
  }
3915
3917
  };
3916
3918
  }
@@ -3918,7 +3920,7 @@ function gt(e) {
3918
3920
  let t, r, n;
3919
3921
  return {
3920
3922
  c() {
3921
- t = X("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderRightButton");
3923
+ t = X("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path 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"></path></svg>', te(t, "class", "CashierHeaderRightButton");
3922
3924
  },
3923
3925
  m(i, s) {
3924
3926
  I(i, t, s), r || (n = Ht(
@@ -3930,7 +3932,7 @@ function gt(e) {
3930
3932
  },
3931
3933
  p: B,
3932
3934
  d(i) {
3933
- i && C(t), r = !1, n();
3935
+ i && P(t), r = !1, n();
3934
3936
  }
3935
3937
  };
3936
3938
  }
@@ -3951,7 +3953,7 @@ function Hi(e) {
3951
3953
  n[3] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3952
3954
  },
3953
3955
  d(n) {
3954
- n && C(t), r && r.d(n);
3956
+ n && P(t), r && r.d(n);
3955
3957
  }
3956
3958
  };
3957
3959
  }
@@ -4059,7 +4061,7 @@ function Bi(e) {
4059
4061
  Te(o, f), Te(h, f), Te(p, f), i = !1;
4060
4062
  },
4061
4063
  d(f) {
4062
- f && C(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
4064
+ f && P(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
4063
4065
  }
4064
4066
  };
4065
4067
  }
@@ -2,4 +2,4 @@
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
3
  `,V.MISSING_INTL_API,a);var I=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));H=h.options[I]||h.options.other}if(!H)throw new ft(h.value,m,Object.keys(h.options),a);o.push.apply(o,le(H.value,t,r,n,i,m-(h.offset||0)));continue}}return Rn(o)}function Dn(e,t){return t?S(S(S({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=S(S({},e[n]),t[n]||{}),r},{})):e}function Gn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Dn(e[n],t[n]),r},S({},e)):e}function Le(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Fn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Oe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ae([void 0],r,!1)))},{cache:Le(e.number),strategy:Pe.variadic}),getDateTimeFormat:Oe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ae([void 0],r,!1)))},{cache:Le(e.dateTime),strategy:Pe.variadic}),getPluralRules:Oe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ae([void 0],r,!1)))},{cache:Le(e.pluralRules),strategy:Pe.variadic})}}var Zt=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var h=u.reduce(function(c,m){return!c.length||m.type!==x.literal||typeof c[c.length-1]!="string"?c.push(m.value):c[c.length-1]+=m.value,c},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return le(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=Jr(a,["formatters"]);this.ast=e.__parse(t,S(S({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Gn(e.formats,n),this.formatters=i&&i.formatters||Fn(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=In,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function jn(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const C={},kn=(e,t,r)=>r&&(t in C||(C[t]={}),e in C[t]||(C[t][e]=r),r),Qt=(e,t)=>{if(t==null)return;if(t in C&&e in C[t])return C[t][e];const r=ie(t);for(let n=0;n<r.length;n++){const i=r[n],s=Xn(i,e);if(s)return kn(e,t,s)}};let ze;const ne=ge({});function Vn(e){return ze[e]||null}function Jt(e){return e in ze}function Xn(e,t){if(!Jt(e))return null;const r=Vn(e);return jn(r,t)}function Wn(e){if(e==null)return;const t=ie(e);for(let r=0;r<t.length;r++){const n=t[r];if(Jt(n))return n}}function qt(e,...t){delete C[e],ne.update(r=>(r[e]=Qr.all([r[e]||{},...t]),r))}z([ne],([e])=>Object.keys(e));ne.subscribe(e=>ze=e);const fe={};function zn(e,t){fe[e].delete(t),fe[e].size===0&&delete fe[e]}function Yt(e){return fe[e]}function Zn(e){return ie(e).map(t=>{const r=Yt(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function pe(e){return e==null?!1:ie(e).some(t=>{var r;return(r=Yt(t))==null?void 0:r.size})}function Qn(e,t){return Promise.all(t.map(n=>(zn(e,n),n().then(i=>i.default||i)))).then(n=>qt(e,...n))}const Q={};function Kt(e){if(!pe(e))return e in Q?Q[e]:Promise.resolve();const t=Zn(e);return Q[e]=Promise.all(t.map(([r,n])=>Qn(r,n))).then(()=>{if(pe(e))return Kt(e);delete Q[e]}),Q[e]}var ct=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Yn=(e,t)=>{var r={};for(var n in e)Jn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ct)for(var n of ct(e))t.indexOf(n)<0&&qn.call(e,n)&&(r[n]=e[n]);return r};const Kn={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function ei({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${ie(e).join('", "')}".${pe(N())?`
4
4
 
5
- Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ti={fallbackLocale:null,loadingDelay:200,formats:Kn,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},J=ti;function X(){return J}function ri(e){const t=e,{formats:r}=t,n=Yn(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Zt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=ei:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(J,n,{initialLocale:i}),r&&("number"in r&&Object.assign(J.formats.number,r.number),"date"in r&&Object.assign(J.formats.date,r.date),"time"in r&&Object.assign(J.formats.time,r.time)),$.set(i)}const Ne=ge(!1);var ni=Object.defineProperty,ii=Object.defineProperties,si=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable,pt=(e,t,r)=>t in e?ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ui=(e,t)=>{for(var r in t||(t={}))oi.call(t,r)&&pt(e,r,t[r]);if(mt)for(var r of mt(t))ai.call(t,r)&&pt(e,r,t[r]);return e},hi=(e,t)=>ii(e,si(t));let Ve;const de=ge(null);function dt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ie(e,t=X().fallbackLocale){const r=dt(e);return t?[...new Set([...r,...dt(t)])]:r}function N(){return Ve!=null?Ve:void 0}de.subscribe(e=>{Ve=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const li=e=>{if(e&&Wn(e)&&pe(e)){const{loadingDelay:t}=X();let r;return typeof window!="undefined"&&N()!=null&&t?r=window.setTimeout(()=>Ne.set(!0),t):Ne.set(!0),Kt(e).then(()=>{de.set(e)}).finally(()=>{clearTimeout(r),Ne.set(!1)})}return de.set(e)},$=hi(ui({},de),{set:li}),Ee=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var fi=Object.defineProperty,be=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,bt=(e,t,r)=>t in e?fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ze=(e,t)=>{for(var r in t||(t={}))er.call(t,r)&&bt(e,r,t[r]);if(be)for(var r of be(t))tr.call(t,r)&&bt(e,r,t[r]);return e},Z=(e,t)=>{var r={};for(var n in e)er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&be)for(var n of be(e))t.indexOf(n)<0&&tr.call(e,n)&&(r[n]=e[n]);return r};const ee=(e,t)=>{const{formats:r}=X();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ci=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=ee("number",n)),new Intl.NumberFormat(r,i)}),mi=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=ee("date",n):Object.keys(i).length===0&&(i=ee("date","short")),new Intl.DateTimeFormat(r,i)}),pi=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=ee("time",n):Object.keys(i).length===0&&(i=ee("time","short")),new Intl.DateTimeFormat(r,i)}),di=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return ci(Ze({locale:r},n))},bi=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return mi(Ze({locale:r},n))},gi=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return pi(Ze({locale:r},n))},_i=Ee((e,t=N())=>new Zt(e,t,X().formats,{ignoreTag:X().ignoreTag})),yi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=N(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Qt(e,l);if(!h)h=(s=(i=(n=(r=X()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let c=h;try{c=_i(h,l).format(o)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return c},Ei=(e,t)=>gi(t).format(e),xi=(e,t)=>bi(t).format(e),vi=(e,t)=>di(t).format(e),Hi=(e,t=N())=>Qt(e,t),Bi=z([$,ne],()=>yi);z([$],()=>Ei);z([$],()=>xi);z([$],()=>vi);z([$,ne],()=>Hi);function gt(e,t){qt(e,t)}function Ti(e){ri({fallbackLocale:"en"}),$.set(e)}const _t={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}},"en-us":{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}}};function wi(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Si(e,t){const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Ai(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function Oi(e){mr(e,"svelte-brbf89",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);width:100%;padding:10px 0}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #3854FF);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}")}const Pi=e=>({}),yt=e=>({}),Ci=e=>({}),Et=e=>({}),Li=e=>({}),xt=e=>({});function vt(e){let t,r,n;return{c(){t=W("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',re(t,"class","CashierHeaderLeftButton")},m(i,s){M(i,t,s),r||(n=Ot(t,"click",e[6]),r=!0)},p:T,d(i){i&&L(t),r=!1,n()}}}function Ni(e){let t,r=e[1]&&vt(e);return{c(){r&&r.c(),t=At()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[1]?r?r.p(n,i):(r=vt(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function Ii(e){let t,r=e[4](e[2])+"",n;return{c(){t=W("span"),n=We(r),re(t,"class","CashierHeaderTitle")},m(i,s){M(i,t,s),ce(t,n)},p(i,s){s&20&&r!==(r=i[4](i[2])+"")&&gr(n,r)},d(i){i&&L(t)}}}function Ht(e){let t,r,n;return{c(){t=W("span"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>',re(t,"class","CashierHeaderRightButton")},m(i,s){M(i,t,s),r||(n=Ot(t,"click",e[5]),r=!0)},p:T,d(i){i&&L(t),r=!1,n()}}}function Mi(e){let t,r=e[3]&&Ht(e);return{c(){r&&r.c(),t=At()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[3]?r?r.p(n,i):(r=Ht(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function $i(e){let t,r,n,i;const s=e[16].leftButton,a=ve(s,e,e[15],xt),o=a||Ni(e),l=e[16].title,u=ve(l,e,e[15],Et),h=u||Ii(e),c=e[16].rightButton,m=ve(c,e,e[15],yt),p=m||Mi(e);return{c(){t=W("div"),o&&o.c(),r=tt(),h&&h.c(),n=tt(),p&&p.c(),re(t,"class","CashierHeader")},m(f,_){M(f,t,_),o&&o.m(t,null),ce(t,r),h&&h.m(t,null),ce(t,n),p&&p.m(t,null),e[17](t),i=!0},p(f,[_]){a?a.p&&(!i||_&32768)&&Be(a,s,f,f[15],i?He(s,f[15],_,Li):Te(f[15]),xt):o&&o.p&&(!i||_&2)&&o.p(f,i?_:-1),u?u.p&&(!i||_&32768)&&Be(u,l,f,f[15],i?He(l,f[15],_,Ci):Te(f[15]),Et):h&&h.p&&(!i||_&20)&&h.p(f,i?_:-1),m?m.p&&(!i||_&32768)&&Be(m,c,f,f[15],i?He(c,f[15],_,Pi):Te(f[15]),yt):p&&p.p&&(!i||_&8)&&p.p(f,i?_:-1)},i(f){i||(ue(o,f),ue(h,f),ue(p,f),i=!0)},o(f){Se(o,f),Se(h,f),Se(p,f),i=!1},d(f){f&&L(t),o&&o.d(f),h&&h.d(f),p&&p.d(f),e[17](null)}}}function Ri(e,t,r){let n;cr(e,Bi,g=>r(4,n=g));let{$$slots:i={},$$scope:s}=t,{clientstyling:a=""}=t,{clientstylingurl:o=""}=t,{translationurl:l=""}=t,{showbackbutton:u=""}=t,{title:h="header.general"}=t,{lang:c="en"}=t,{showclosebutton:m=""}=t,{mbsource:p=""}=t,f,_=!1,v,O=!1;const P=()=>{fetch(l).then(g=>g.json()).then(g=>{Object.keys(g).forEach(Qe=>{gt(Qe,g[Qe])})}).catch(g=>{console.log(g)})};Object.keys(_t).forEach(g=>{gt(g,_t[g])});const H=()=>{Ti(c)},I=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},A=()=>{window.postMessage({type:"BackCashier"},window.location.href)},R=()=>{r(1,_=!!u&&u!=="false")},se=()=>{r(3,O=!!m&&m!=="false")},nr=()=>{r(2,v=h||"header.general")};Er(()=>()=>{});function ir(g){Ie[g?"unshift":"push"](()=>{f=g,r(0,f)})}return e.$$set=g=>{"clientstyling"in g&&r(7,a=g.clientstyling),"clientstylingurl"in g&&r(8,o=g.clientstylingurl),"translationurl"in g&&r(9,l=g.translationurl),"showbackbutton"in g&&r(10,u=g.showbackbutton),"title"in g&&r(11,h=g.title),"lang"in g&&r(12,c=g.lang),"showclosebutton"in g&&r(13,m=g.showclosebutton),"mbsource"in g&&r(14,p=g.mbsource),"$$scope"in g&&r(15,s=g.$$scope)},e.$$.update=()=>{e.$$.dirty&4096&&c&&H(),e.$$.dirty&6144&&c&&h&&nr(),e.$$.dirty&129&&a&&f&&wi(f,a),e.$$.dirty&257&&o&&f&&Si(f,o),e.$$.dirty&16385&&p&&f&&Ai(f,`${p}.Style`),e.$$.dirty&4608&&c&&l&&P(),e.$$.dirty&1024&&u&&R(),e.$$.dirty&8192&&m&&se()},[f,_,v,O,n,I,A,a,o,l,u,h,c,m,p,s,i,ir]}class rr extends Cr{constructor(t){super(),Or(this,t,Ri,$i,Tt,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},Oi)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),w()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),w()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),w()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),w()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),w()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),w()}}Pr(rr,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);exports.default=rr;
5
+ Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ti={fallbackLocale:null,loadingDelay:200,formats:Kn,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},J=ti;function X(){return J}function ri(e){const t=e,{formats:r}=t,n=Yn(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Zt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=ei:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(J,n,{initialLocale:i}),r&&("number"in r&&Object.assign(J.formats.number,r.number),"date"in r&&Object.assign(J.formats.date,r.date),"time"in r&&Object.assign(J.formats.time,r.time)),$.set(i)}const Ne=ge(!1);var ni=Object.defineProperty,ii=Object.defineProperties,si=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable,pt=(e,t,r)=>t in e?ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ui=(e,t)=>{for(var r in t||(t={}))oi.call(t,r)&&pt(e,r,t[r]);if(mt)for(var r of mt(t))ai.call(t,r)&&pt(e,r,t[r]);return e},hi=(e,t)=>ii(e,si(t));let Ve;const de=ge(null);function dt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ie(e,t=X().fallbackLocale){const r=dt(e);return t?[...new Set([...r,...dt(t)])]:r}function N(){return Ve!=null?Ve:void 0}de.subscribe(e=>{Ve=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const li=e=>{if(e&&Wn(e)&&pe(e)){const{loadingDelay:t}=X();let r;return typeof window!="undefined"&&N()!=null&&t?r=window.setTimeout(()=>Ne.set(!0),t):Ne.set(!0),Kt(e).then(()=>{de.set(e)}).finally(()=>{clearTimeout(r),Ne.set(!1)})}return de.set(e)},$=hi(ui({},de),{set:li}),Ee=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var fi=Object.defineProperty,be=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,bt=(e,t,r)=>t in e?fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ze=(e,t)=>{for(var r in t||(t={}))er.call(t,r)&&bt(e,r,t[r]);if(be)for(var r of be(t))tr.call(t,r)&&bt(e,r,t[r]);return e},Z=(e,t)=>{var r={};for(var n in e)er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&be)for(var n of be(e))t.indexOf(n)<0&&tr.call(e,n)&&(r[n]=e[n]);return r};const ee=(e,t)=>{const{formats:r}=X();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ci=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=ee("number",n)),new Intl.NumberFormat(r,i)}),mi=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=ee("date",n):Object.keys(i).length===0&&(i=ee("date","short")),new Intl.DateTimeFormat(r,i)}),pi=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=ee("time",n):Object.keys(i).length===0&&(i=ee("time","short")),new Intl.DateTimeFormat(r,i)}),di=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return ci(Ze({locale:r},n))},bi=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return mi(Ze({locale:r},n))},gi=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return pi(Ze({locale:r},n))},_i=Ee((e,t=N())=>new Zt(e,t,X().formats,{ignoreTag:X().ignoreTag})),yi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=N(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Qt(e,l);if(!h)h=(s=(i=(n=(r=X()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let c=h;try{c=_i(h,l).format(o)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return c},Ei=(e,t)=>gi(t).format(e),xi=(e,t)=>bi(t).format(e),vi=(e,t)=>di(t).format(e),Hi=(e,t=N())=>Qt(e,t),Bi=z([$,ne],()=>yi);z([$],()=>Ei);z([$],()=>xi);z([$],()=>vi);z([$,ne],()=>Hi);function gt(e,t){qt(e,t)}function Ti(e){ri({fallbackLocale:"en"}),$.set(e)}const _t={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}},"en-us":{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}}};function wi(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Si(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Ai(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function Oi(e){mr(e,"svelte-1p7ag40",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}")}const Pi=e=>({}),yt=e=>({}),Ci=e=>({}),Et=e=>({}),Li=e=>({}),xt=e=>({});function vt(e){let t,r,n;return{c(){t=W("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>',re(t,"class","CashierHeaderLeftButton")},m(i,s){M(i,t,s),r||(n=Ot(t,"click",e[6]),r=!0)},p:T,d(i){i&&L(t),r=!1,n()}}}function Ni(e){let t,r=e[1]&&vt(e);return{c(){r&&r.c(),t=At()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[1]?r?r.p(n,i):(r=vt(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function Ii(e){let t,r=e[4](e[2])+"",n;return{c(){t=W("span"),n=We(r),re(t,"class","CashierHeaderTitle")},m(i,s){M(i,t,s),ce(t,n)},p(i,s){s&20&&r!==(r=i[4](i[2])+"")&&gr(n,r)},d(i){i&&L(t)}}}function Ht(e){let t,r,n;return{c(){t=W("span"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path 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"></path></svg>',re(t,"class","CashierHeaderRightButton")},m(i,s){M(i,t,s),r||(n=Ot(t,"click",e[5]),r=!0)},p:T,d(i){i&&L(t),r=!1,n()}}}function Mi(e){let t,r=e[3]&&Ht(e);return{c(){r&&r.c(),t=At()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[3]?r?r.p(n,i):(r=Ht(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function $i(e){let t,r,n,i;const s=e[16].leftButton,a=ve(s,e,e[15],xt),o=a||Ni(e),l=e[16].title,u=ve(l,e,e[15],Et),h=u||Ii(e),c=e[16].rightButton,m=ve(c,e,e[15],yt),p=m||Mi(e);return{c(){t=W("div"),o&&o.c(),r=tt(),h&&h.c(),n=tt(),p&&p.c(),re(t,"class","CashierHeader")},m(f,_){M(f,t,_),o&&o.m(t,null),ce(t,r),h&&h.m(t,null),ce(t,n),p&&p.m(t,null),e[17](t),i=!0},p(f,[_]){a?a.p&&(!i||_&32768)&&Be(a,s,f,f[15],i?He(s,f[15],_,Li):Te(f[15]),xt):o&&o.p&&(!i||_&2)&&o.p(f,i?_:-1),u?u.p&&(!i||_&32768)&&Be(u,l,f,f[15],i?He(l,f[15],_,Ci):Te(f[15]),Et):h&&h.p&&(!i||_&20)&&h.p(f,i?_:-1),m?m.p&&(!i||_&32768)&&Be(m,c,f,f[15],i?He(c,f[15],_,Pi):Te(f[15]),yt):p&&p.p&&(!i||_&8)&&p.p(f,i?_:-1)},i(f){i||(ue(o,f),ue(h,f),ue(p,f),i=!0)},o(f){Se(o,f),Se(h,f),Se(p,f),i=!1},d(f){f&&L(t),o&&o.d(f),h&&h.d(f),p&&p.d(f),e[17](null)}}}function Ri(e,t,r){let n;cr(e,Bi,g=>r(4,n=g));let{$$slots:i={},$$scope:s}=t,{clientstyling:a=""}=t,{clientstylingurl:o=""}=t,{translationurl:l=""}=t,{showbackbutton:u=""}=t,{title:h="header.general"}=t,{lang:c="en"}=t,{showclosebutton:m=""}=t,{mbsource:p=""}=t,f,_=!1,v,O=!1;const P=()=>{fetch(l).then(g=>g.json()).then(g=>{Object.keys(g).forEach(Qe=>{gt(Qe,g[Qe])})}).catch(g=>{console.log(g)})};Object.keys(_t).forEach(g=>{gt(g,_t[g])});const H=()=>{Ti(c)},I=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},A=()=>{window.postMessage({type:"BackCashier"},window.location.href)},R=()=>{r(1,_=!!u&&u!=="false")},se=()=>{r(3,O=!!m&&m!=="false")},nr=()=>{r(2,v=h||"header.general")};Er(()=>()=>{});function ir(g){Ie[g?"unshift":"push"](()=>{f=g,r(0,f)})}return e.$$set=g=>{"clientstyling"in g&&r(7,a=g.clientstyling),"clientstylingurl"in g&&r(8,o=g.clientstylingurl),"translationurl"in g&&r(9,l=g.translationurl),"showbackbutton"in g&&r(10,u=g.showbackbutton),"title"in g&&r(11,h=g.title),"lang"in g&&r(12,c=g.lang),"showclosebutton"in g&&r(13,m=g.showclosebutton),"mbsource"in g&&r(14,p=g.mbsource),"$$scope"in g&&r(15,s=g.$$scope)},e.$$.update=()=>{e.$$.dirty&4096&&c&&H(),e.$$.dirty&6144&&c&&h&&nr(),e.$$.dirty&129&&a&&f&&wi(f,a),e.$$.dirty&257&&o&&f&&Si(f,o),e.$$.dirty&16385&&p&&f&&Ai(f,`${p}.Style`),e.$$.dirty&4608&&c&&l&&P(),e.$$.dirty&1024&&u&&R(),e.$$.dirty&8192&&m&&se()},[f,_,v,O,n,I,A,a,o,l,u,h,c,m,p,s,i,ir]}class rr extends Cr{constructor(t){super(),Or(this,t,Ri,$i,Tt,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},Oi)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),w()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),w()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),w()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),w()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),w()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),w()}}Pr(rr,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);exports.default=rr;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierHeader-hToGmWhi.cjs")).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierHeader-qRXDwu2A.cjs")).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierHeader-DT75qMz_.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierHeader-Psawz10D.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-header") && customElements.define("cashier-header", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierHeader-CPK9fluf.js";
1
+ import { C as n } from "../components/CashierHeader-TEnnwd4g.js";
2
2
  function r(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-header",
3
- "version": "1.85.17",
3
+ "version": "1.85.19",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-header.cjs",
6
6
  "module": "esnext/cashier-header.js",