@everymatrix/cashier-receipt-page 1.60.1 → 1.60.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { a as De, i as Ze, $ as Se, c as ke, g as Ee, S as Re, b as xe, f as W, d as Qe, s as Ue, e as Ge, h as E, j as V, k as re, l as J, m as S, n as M, o as ae, p as H, q as Ce, r as Oe, t as Fe, u as pe, v as $, w as ee, x as le, y as te, z as Pe, A as qe, B as Ye, C as Ke } from "./CashierError-BVB4Lg9u.js";
1
+ import { a as De, i as Ze, $ as Se, c as ke, g as Ee, S as Re, b as xe, f as W, s as Qe, d as Ue, e as Ge, n as ae, h as H, j as S, k as Ce, l as M, m as E, o as V, p as re, q as J, r as Oe, t as Fe, u as pe, v as ee, w as le, x as te, y as $, z as Pe, A as qe, B as Ye, C as Ke } from "./CashierError-DOWV3YvK.js";
2
2
  if (typeof window != "undefined") {
3
3
  let f = function(e) {
4
4
  return function(...t) {
@@ -11,7 +11,7 @@ if (typeof window != "undefined") {
11
11
  }
12
12
  };
13
13
  };
14
- customElements.define = f(customElements.define), import("./CashierError-BVB4Lg9u.js").then((e) => e.D).then(({ default: e }) => {
14
+ customElements.define = f(customElements.define), import("./CashierError-DOWV3YvK.js").then((e) => e.D).then(({ default: e }) => {
15
15
  !customElements.get("cashier-error") && customElements.define("cashier-error", e.element);
16
16
  });
17
17
  }
@@ -692,7 +692,7 @@ var Be = { exports: {} };
692
692
  });
693
693
  })(Be);
694
694
  var it = Be.exports;
695
- const ft = /* @__PURE__ */ Ee(it), { document: rt } = Fe;
695
+ const ft = /* @__PURE__ */ Ee(it), { document: rt } = Ce;
696
696
  function st(f) {
697
697
  Ge(f, "svelte-n81r8p", ".CashierReceiptPageWidget{height:100%}.CashierReceiptPage{border-radius:var(--mmw--border-radius-medium-plus, 6px);background:var(--emw--color-background, #fff);padding:0 0 var(--emw--spacing-small-minus, 10px) 0;margin:0 auto;position:relative;word-wrap:break-word}.ReceiptWrapper{width:100%;height:200px;border-bottom:1px solid var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;align-items:flex-end;flex-direction:row-reverse;position:relative}.TitleWrapper{display:flex;position:absolute;left:0;bottom:11px;flex-direction:column;justify-content:flex-end;flex-shrink:0}.Title{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-x-large-plus, 26px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;line-height:var(--emw--font-size-x-large-plus, 26px)}.SubTitle{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);color:var(--mmw--color-grey-290, #666);margin-top:var(--emw--spacing-small, 12px)}.Text{padding:var(--emw--spacing-small, 12px) 0;font-size:var(--emw--font-size-medium, 16px);color:var(--mmw--color-grey-10, #111)}.CashierErrorText{color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:130%;text-align:center}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.Reference{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);margin:0}.PrimaryButton{color:var(--emw--color-white, #FFF);border:none;background:var(--emw--color-primary, #7EC51E);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 5px);height:36px;font-size:var(--emw--font-size-medium, 16px);font-family:inherit;margin:var(--emw--spacing-large, 20px) 0;width:100%}.PrimaryButton:hover{background:var(--emw--color-hover, #71B11B)}.PrimaryButton:active{background:var(--emw--color-active, #5C950F)}.HeaderButtonContainer{position:absolute;z-index:1;right:0;top:0;display:flex;align-items:baseline;gap:var(--emw--spacing-small, 12px);padding:var(--emw--spacing-small, 12px) 0}.HeaderButtonContainer>span{cursor:pointer}.ReceiptField{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-150, #666);margin:var(--emw--spacing-small, 12px)}");
698
698
  }
@@ -799,16 +799,16 @@ function ct(f) {
799
799
  );
800
800
  return {
801
801
  c() {
802
- e = E("div"), D && D.c(), t = V(), y && y.c(), n = V(), i = E("div"), s = E("img"), m = V(), l = E("div"), T = E("h2"), j = ee(
802
+ e = E("div"), D && D.c(), t = V(), y && y.c(), n = V(), i = E("div"), s = E("img"), m = V(), l = E("div"), T = E("h2"), j = te(
803
803
  /*title*/
804
804
  f[12]
805
- ), B = V(), Z = E("div"), X = ee(
805
+ ), B = V(), Z = E("div"), X = te(
806
806
  /*subTitle*/
807
807
  f[11]
808
- ), N = V(), v = E("div"), x = ee(
808
+ ), N = V(), v = E("div"), x = te(
809
809
  /*text*/
810
810
  f[13]
811
- ), O = V(), z && z.c(), q = V(), L && L.c(), h = V(), K = E("button"), w = ee(F), J(e, "class", "HeaderButtonContainer"), re(s.src, c = /*statusImageUrl*/
811
+ ), O = V(), z && z.c(), q = V(), L && L.c(), h = V(), K = E("button"), w = te(F), J(e, "class", "HeaderButtonContainer"), re(s.src, c = /*statusImageUrl*/
812
812
  f[14]) || J(s, "src", c), J(s, "class", "StatusLogo"), J(T, "class", "Title"), J(Z, "class", "SubTitle"), J(l, "class", "TitleWrapper"), J(i, "class", "ReceiptWrapper"), J(v, "class", "Text"), J(K, "class", "PrimaryButton");
813
813
  },
814
814
  m(p, a) {
@@ -827,17 +827,17 @@ function ct(f) {
827
827
  p[0] !== "false" ? y ? y.p(p, a) : (y = Ne(p), y.c(), y.m(e, null)) : y && (y.d(1), y = null), a[0] & /*statusImageUrl*/
828
828
  16384 && !re(s.src, c = /*statusImageUrl*/
829
829
  p[14]) && J(s, "src", c), a[0] & /*title*/
830
- 4096 && te(
830
+ 4096 && ee(
831
831
  j,
832
832
  /*title*/
833
833
  p[12]
834
834
  ), a[0] & /*subTitle*/
835
- 2048 && te(
835
+ 2048 && ee(
836
836
  X,
837
837
  /*subTitle*/
838
838
  p[11]
839
839
  ), a[0] & /*text*/
840
- 8192 && te(
840
+ 8192 && ee(
841
841
  x,
842
842
  /*text*/
843
843
  p[13]
@@ -845,7 +845,7 @@ function ct(f) {
845
845
  p[9].referenceId ? z ? z.p(p, a) : (z = Me(p), z.c(), z.m(q.parentNode, q)) : z && (z.d(1), z = null), /*receiptFields*/
846
846
  p[10].length ? L ? L.p(p, a) : (L = je(p), L.c(), L.m(h.parentNode, h)) : L && (L.d(1), L = null), a[0] & /*$_*/
847
847
  262144 && F !== (F = /*$_*/
848
- p[18]("close") + "") && te(w, F);
848
+ p[18]("close") + "") && ee(w, F);
849
849
  },
850
850
  d(p) {
851
851
  p && (H(e), H(n), H(i), H(N), H(v), H(O), H(q), H(h), H(K)), D && D.d(), y && y.d(), z && z.d(p), L && L.d(p), I = !1, _();
@@ -869,7 +869,7 @@ function be(f) {
869
869
  let B = j(f), Z = B(f);
870
870
  return {
871
871
  c() {
872
- e = E("div"), Z.c(), t = V(), n = E("span"), s = ee(i), c = V(), m = E("span"), T = ee(l), J(e, "slot", "icon"), J(n, "slot", "title"), J(n, "class", "CashierErrorTitle"), J(m, "slot", "text"), J(m, "class", "CashierErrorText");
872
+ e = E("div"), Z.c(), t = V(), n = E("span"), s = te(i), c = V(), m = E("span"), T = te(l), J(e, "slot", "icon"), J(n, "slot", "title"), J(n, "class", "CashierErrorTitle"), J(m, "slot", "text"), J(m, "class", "CashierErrorText");
873
873
  },
874
874
  m(X, N) {
875
875
  M(X, e, N), Z.m(e, null), M(X, t, N), M(X, n, N), S(n, s), M(X, c, N), M(X, m, N), S(m, T);
@@ -877,9 +877,9 @@ function be(f) {
877
877
  p(X, N) {
878
878
  B === (B = j(X)) && Z ? Z.p(X, N) : (Z.d(1), Z = B(X), Z && (Z.c(), Z.m(e, null))), N[0] & /*$_*/
879
879
  262144 && i !== (i = /*$_*/
880
- X[18]("receipt.maintenance.title") + "") && te(s, i), N[0] & /*$_*/
880
+ X[18]("receipt.maintenance.title") + "") && ee(s, i), N[0] & /*$_*/
881
881
  262144 && l !== (l = /*$_*/
882
- X[18]("receipt.maintenance.text") + "") && te(T, l);
882
+ X[18]("receipt.maintenance.text") + "") && ee(T, l);
883
883
  },
884
884
  d(X) {
885
885
  X && (H(e), H(t), H(n), H(c), H(m)), Z.d();
@@ -973,7 +973,7 @@ function Me(f) {
973
973
  ), n;
974
974
  return {
975
975
  c() {
976
- e = E("div"), n = ee(t), J(e, "class", "Reference");
976
+ e = E("div"), n = te(t), J(e, "class", "Reference");
977
977
  },
978
978
  m(i, s) {
979
979
  M(i, e, s), S(e, n);
@@ -986,7 +986,7 @@ function Me(f) {
986
986
  /*txnInfo*/
987
987
  i[9].referenceId
988
988
  ) }
989
- }) + "") && te(n, t);
989
+ }) + "") && ee(n, t);
990
990
  },
991
991
  d(i) {
992
992
  i && H(e);
@@ -1004,7 +1004,7 @@ function je(f) {
1004
1004
  c() {
1005
1005
  for (let i = 0; i < n.length; i += 1)
1006
1006
  n[i].c();
1007
- e = qe();
1007
+ e = Ye();
1008
1008
  },
1009
1009
  m(i, s) {
1010
1010
  for (let c = 0; c < n.length; c += 1)
@@ -1029,7 +1029,7 @@ function je(f) {
1029
1029
  }
1030
1030
  },
1031
1031
  d(i) {
1032
- i && H(e), Ye(n, i);
1032
+ i && H(e), qe(n, i);
1033
1033
  }
1034
1034
  };
1035
1035
  }
@@ -1040,7 +1040,7 @@ function At(f) {
1040
1040
  ), n;
1041
1041
  return {
1042
1042
  c() {
1043
- e = E("span"), n = ee(t), J(e, "class", "Label");
1043
+ e = E("span"), n = te(t), J(e, "class", "Label");
1044
1044
  },
1045
1045
  m(i, s) {
1046
1046
  M(i, e, s), S(e, n);
@@ -1048,7 +1048,7 @@ function At(f) {
1048
1048
  p(i, s) {
1049
1049
  s[0] & /*receiptFields*/
1050
1050
  1024 && t !== (t = /*field*/
1051
- i[46].defaultValue + "") && te(n, t);
1051
+ i[46].defaultValue + "") && ee(n, t);
1052
1052
  },
1053
1053
  d(i) {
1054
1054
  i && H(e);
@@ -1065,7 +1065,7 @@ function ut(f) {
1065
1065
  ), m, l;
1066
1066
  return {
1067
1067
  c() {
1068
- e = E("span"), n = ee(t), i = V(), s = E("a"), m = ee(c), J(s, "href", l = /*field*/
1068
+ e = E("span"), n = te(t), i = V(), s = E("a"), m = te(c), J(s, "href", l = /*field*/
1069
1069
  f[46].defaultValue), J(s, "target", "_blank"), J(s, "rel", "noopener noreferrer");
1070
1070
  },
1071
1071
  m(T, j) {
@@ -1074,9 +1074,9 @@ function ut(f) {
1074
1074
  p(T, j) {
1075
1075
  j[0] & /*receiptFields*/
1076
1076
  1024 && t !== (t = /*field*/
1077
- T[46].description + "") && te(n, t), j[0] & /*receiptFields*/
1077
+ T[46].description + "") && ee(n, t), j[0] & /*receiptFields*/
1078
1078
  1024 && c !== (c = /*field*/
1079
- T[46].Name + "") && te(m, c), j[0] & /*receiptFields*/
1079
+ T[46].Name + "") && ee(m, c), j[0] & /*receiptFields*/
1080
1080
  1024 && l !== (l = /*field*/
1081
1081
  T[46].defaultValue) && J(s, "href", l);
1082
1082
  },
@@ -1146,7 +1146,7 @@ function mt(f) {
1146
1146
  }
1147
1147
  return {
1148
1148
  c() {
1149
- e = E("div"), t = E("div"), i = ee(n), J(e, "class", "QRCode");
1149
+ e = E("div"), t = E("div"), i = te(n), J(e, "class", "QRCode");
1150
1150
  },
1151
1151
  m(l, T) {
1152
1152
  M(l, e, T), S(e, t), S(t, i), f[29](t), s || (c = le(e, "click", m), s = !0);
@@ -1154,7 +1154,7 @@ function mt(f) {
1154
1154
  p(l, T) {
1155
1155
  f = l, T[0] & /*receiptFields*/
1156
1156
  1024 && n !== (n = /*field*/
1157
- f[46].defaultValue + "") && te(i, n);
1157
+ f[46].defaultValue + "") && ee(i, n);
1158
1158
  },
1159
1159
  d(l) {
1160
1160
  l && H(e), f[29](null), s = !1, c();
@@ -1234,7 +1234,7 @@ function Tt(f) {
1234
1234
  let zt = "https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js", pt = "_blank";
1235
1235
  function Pt(f, e, t) {
1236
1236
  let n;
1237
- Ce(f, Ke, (r) => t(18, n = r)), ye.extend(ft);
1237
+ Oe(f, Ke, (r) => t(18, n = r)), ye.extend(ft);
1238
1238
  let { endpoint: i } = e, { session: s } = e, { lang: c = "en" } = e, { local: m = "en-US" } = e, { showerrors: l = "true" } = e, { showclosebutton: T = "false" } = e, { showcontactbutton: j = "false" } = e, { translationurl: B } = e, { assetsurl: Z = "" } = e, { customerid: X } = e, { transactionid: N } = e, { clientstyling: v = "" } = e, { clientstylingurl: x = "" } = e;
1239
1239
  var O;
1240
1240
  (function(r) {
@@ -1284,7 +1284,7 @@ function Pt(f, e, t) {
1284
1284
  const d = () => {
1285
1285
  Ie(c);
1286
1286
  };
1287
- Oe(() => (window.addEventListener("message", A, !1), () => {
1287
+ Fe(() => (window.addEventListener("message", A, !1), () => {
1288
1288
  window.removeEventListener("message", A);
1289
1289
  }));
1290
1290
  const A = (r) => {
@@ -1453,7 +1453,7 @@ class gt extends Re {
1453
1453
  e,
1454
1454
  Pt,
1455
1455
  Tt,
1456
- Ue,
1456
+ Qe,
1457
1457
  {
1458
1458
  endpoint: 22,
1459
1459
  session: 23,
@@ -1552,7 +1552,7 @@ class gt extends Re {
1552
1552
  this.$$set({ clientstylingurl: e }), W();
1553
1553
  }
1554
1554
  }
1555
- Qe(gt, { endpoint: {}, session: {}, lang: {}, local: {}, showerrors: {}, showclosebutton: {}, showcontactbutton: {}, translationurl: {}, assetsurl: {}, customerid: {}, transactionid: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
1555
+ Ue(gt, { endpoint: {}, session: {}, lang: {}, local: {}, showerrors: {}, showclosebutton: {}, showcontactbutton: {}, translationurl: {}, assetsurl: {}, customerid: {}, transactionid: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
1556
1556
  export {
1557
1557
  gt as default
1558
1558
  };