@everymatrix/cashier-method-details 1.87.23 → 1.87.24

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.
@@ -801,8 +801,8 @@ const Fo = (n, t, e, r) => {
801
801
  try {
802
802
  if (!Cn)
803
803
  return new Intl.NumberFormat(Un, i).format(n);
804
- const o = new Intl.NumberFormat(Un, i).formatToParts(n), l = o.find(({ type: m = "" } = {}) => m === "currency") || {}, c = o.filter(({ type: m = "" } = {}) => m !== "currency").map(({ value: m = "" } = {}) => m).join("");
805
- return Cn === "before" ? `${l.value || i.currency || ""} ${c}` : `${c} ${l.value || i.currency || ""}`;
804
+ const o = new Intl.NumberFormat(Un, i).formatToParts(n), { currencyPart: l = "", amountPart: c = "" } = o.reduce((m, _) => (_.type === "currency" ? m.currencyPart = _ : m.amountPart += _.value, m), { currencyPart: "", amountPart: "" });
805
+ return Cn === "before" ? `${l || i.currency || ""} ${c}` : `${c} ${l || i.currency || ""}`;
806
806
  } catch (a) {
807
807
  console.info(a);
808
808
  const o = new Intl.NumberFormat(Un, {
@@ -1325,7 +1325,7 @@ if (typeof window < "u") {
1325
1325
  }
1326
1326
  };
1327
1327
  };
1328
- customElements.define = n(customElements.define), import("./CashierReceiptPage-CNC7tmlI.js").then(({ default: t }) => {
1328
+ customElements.define = n(customElements.define), import("./CashierReceiptPage-FCPBrZm8.js").then(({ default: t }) => {
1329
1329
  !customElements.get("cashier-receipt-page-nd") && customElements.define("cashier-receipt-page-nd", t.element);
1330
1330
  });
1331
1331
  }