@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 ke, i as Ee, $ as Le, c as Ne, g as Me, b as Be, S as De, d as Ze, s as Se, f as W, e as Re, h as k, j as V, k as re, l as J, m as S, n as N, o as ae, p as b, q as xe, r as Qe, t as Ue, u as ve, v as $, w as ee, x as le, y as te, z as me, A as Ge, B as Ce, C as Oe } from "./CashierError-9frk6vIk.js";
1
+ import { a as ke, i as Ee, $ as Le, c as Ne, g as Me, b as Be, S as De, d as Ze, s as Se, f as W, e as Re, n as ae, h as b, j as S, k as N, l as k, m as V, o as re, p as J, q as xe, r as Qe, t as ve, u as ee, v as le, w as te, x as $, y as me, z as Ue, A as Ge, B as Ce, C as Oe } from "./CashierError-DU9mMZLE.js";
2
2
  if (typeof window < "u") {
3
3
  let f = function(e) {
4
4
  return function(...t) {
@@ -11,7 +11,7 @@ if (typeof window < "u") {
11
11
  }
12
12
  };
13
13
  };
14
- customElements.define = f(customElements.define), import("./CashierError-9frk6vIk.js").then((e) => e.D).then(({ default: e }) => {
14
+ customElements.define = f(customElements.define), import("./CashierError-DU9mMZLE.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 we = { exports: {} };
692
692
  });
693
693
  })(we);
694
694
  var $e = we.exports;
695
- const et = /* @__PURE__ */ Me($e), { document: tt } = Ue;
695
+ const et = /* @__PURE__ */ Me($e), { document: tt } = Ce;
696
696
  function nt(f) {
697
697
  Re(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 ft(f) {
799
799
  );
800
800
  return {
801
801
  c() {
802
- e = k("div"), D && D.c(), t = V(), y && y.c(), n = V(), i = k("div"), s = k("img"), m = V(), l = k("div"), T = k("h2"), M = ee(
802
+ e = k("div"), D && D.c(), t = V(), y && y.c(), n = V(), i = k("div"), s = k("img"), m = V(), l = k("div"), T = k("h2"), M = te(
803
803
  /*title*/
804
804
  f[12]
805
- ), B = V(), Z = k("div"), X = ee(
805
+ ), B = V(), Z = k("div"), X = te(
806
806
  /*subTitle*/
807
807
  f[11]
808
- ), H = V(), v = k("div"), x = ee(
808
+ ), H = V(), v = k("div"), x = te(
809
809
  /*text*/
810
810
  f[13]
811
- ), O = V(), z && z.c(), q = V(), E && E.c(), h = V(), K = k("button"), j = ee(F), J(e, "class", "HeaderButtonContainer"), re(s.src, c = /*statusImageUrl*/
811
+ ), O = V(), z && z.c(), q = V(), E && E.c(), h = V(), K = k("button"), j = 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 ft(f) {
827
827
  p[0] !== "false" ? y ? y.p(p, a) : (y = ye(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
  M,
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 ft(f) {
845
845
  p[9].referenceId ? z ? z.p(p, a) : (z = Xe(p), z.c(), z.m(q.parentNode, q)) : z && (z.d(1), z = null), /*receiptFields*/
846
846
  p[10].length ? E ? E.p(p, a) : (E = be(p), E.c(), E.m(h.parentNode, h)) : E && (E.d(1), E = null), a[0] & /*$_*/
847
847
  262144 && F !== (F = /*$_*/
848
- p[18]("close") + "") && te(j, F);
848
+ p[18]("close") + "") && ee(j, F);
849
849
  },
850
850
  d(p) {
851
851
  p && (b(e), b(n), b(i), b(H), b(v), b(O), b(q), b(h), b(K)), D && D.d(), y && y.d(), z && z.d(p), E && E.d(p), I = !1, _();
@@ -869,7 +869,7 @@ function he(f) {
869
869
  let B = M(f), Z = B(f);
870
870
  return {
871
871
  c() {
872
- e = k("div"), Z.c(), t = V(), n = k("span"), s = ee(i), c = V(), m = k("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 = k("div"), Z.c(), t = V(), n = k("span"), s = te(i), c = V(), m = k("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, H) {
875
875
  N(X, e, H), Z.m(e, null), N(X, t, H), N(X, n, H), S(n, s), N(X, c, H), N(X, m, H), S(m, T);
@@ -877,9 +877,9 @@ function he(f) {
877
877
  p(X, H) {
878
878
  B === (B = M(X)) && Z ? Z.p(X, H) : (Z.d(1), Z = B(X), Z && (Z.c(), Z.m(e, null))), H[0] & /*$_*/
879
879
  262144 && i !== (i = /*$_*/
880
- X[18]("receipt.maintenance.title") + "") && te(s, i), H[0] & /*$_*/
880
+ X[18]("receipt.maintenance.title") + "") && ee(s, i), H[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 && (b(e), b(t), b(n), b(c), b(m)), Z.d();
@@ -973,7 +973,7 @@ function Xe(f) {
973
973
  ), n;
974
974
  return {
975
975
  c() {
976
- e = k("div"), n = ee(t), J(e, "class", "Reference");
976
+ e = k("div"), n = te(t), J(e, "class", "Reference");
977
977
  },
978
978
  m(i, s) {
979
979
  N(i, e, s), S(e, n);
@@ -986,7 +986,7 @@ function Xe(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 && b(e);
@@ -1029,7 +1029,7 @@ function be(f) {
1029
1029
  }
1030
1030
  },
1031
1031
  d(i) {
1032
- i && b(e), Ce(n, i);
1032
+ i && b(e), Ue(n, i);
1033
1033
  }
1034
1034
  };
1035
1035
  }
@@ -1040,7 +1040,7 @@ function ot(f) {
1040
1040
  ), n;
1041
1041
  return {
1042
1042
  c() {
1043
- e = k("span"), n = ee(t), J(e, "class", "Label");
1043
+ e = k("span"), n = te(t), J(e, "class", "Label");
1044
1044
  },
1045
1045
  m(i, s) {
1046
1046
  N(i, e, s), S(e, n);
@@ -1048,7 +1048,7 @@ function ot(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 && b(e);
@@ -1065,7 +1065,7 @@ function ct(f) {
1065
1065
  ), m, l;
1066
1066
  return {
1067
1067
  c() {
1068
- e = k("span"), n = ee(t), i = V(), s = k("a"), m = ee(c), J(s, "href", l = /*field*/
1068
+ e = k("span"), n = te(t), i = V(), s = k("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, M) {
@@ -1074,9 +1074,9 @@ function ct(f) {
1074
1074
  p(T, M) {
1075
1075
  M[0] & /*receiptFields*/
1076
1076
  1024 && t !== (t = /*field*/
1077
- T[46].description + "") && te(n, t), M[0] & /*receiptFields*/
1077
+ T[46].description + "") && ee(n, t), M[0] & /*receiptFields*/
1078
1078
  1024 && c !== (c = /*field*/
1079
- T[46].Name + "") && te(m, c), M[0] & /*receiptFields*/
1079
+ T[46].Name + "") && ee(m, c), M[0] & /*receiptFields*/
1080
1080
  1024 && l !== (l = /*field*/
1081
1081
  T[46].defaultValue) && J(s, "href", l);
1082
1082
  },
@@ -1146,7 +1146,7 @@ function At(f) {
1146
1146
  }
1147
1147
  return {
1148
1148
  c() {
1149
- e = k("div"), t = k("div"), i = ee(n), J(e, "class", "QRCode");
1149
+ e = k("div"), t = k("div"), i = te(n), J(e, "class", "QRCode");
1150
1150
  },
1151
1151
  m(l, T) {
1152
1152
  N(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 At(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 && b(e), f[29](null), s = !1, c();
@@ -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/CashierReceiptPage-BuiBR9Aj.cjs")).then(({default:t})=>{!customElements.get("cashier-receipt-page")&&customElements.define("cashier-receipt-page",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/CashierReceiptPage-C1xIGgTK.cjs")).then(({default:t})=>{!customElements.get("cashier-receipt-page")&&customElements.define("cashier-receipt-page",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierReceiptPage-BiP5bt2E.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierReceiptPage-BmvvfSxQ.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-receipt-page") && customElements.define("cashier-receipt-page", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierReceiptPage-DkD_xhVD.js";
1
+ import { C as n } from "../components/CashierReceiptPage-QuLJBgc2.js";
2
2
  function i(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-receipt-page",
3
- "version": "1.60.1",
3
+ "version": "1.60.2",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-receipt-page.cjs",
6
6
  "module": "esnext/cashier-receipt-page.js",