@everymatrix/cashier-page-nd 1.69.132 → 1.69.133

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.
Files changed (25) hide show
  1. package/components/{CashierMethodDetails-DNWs6rPH.js → CashierMethodDetails-BRJPBn_N.js} +83 -79
  2. package/components/{CashierMethodDetails-BkhgqmCu.js → CashierMethodDetails-Crq228Ry.js} +6 -2
  3. package/components/{CashierMethodDetails-Dw1YKiRX.cjs → CashierMethodDetails-L_ijIgeh.cjs} +3 -3
  4. package/components/{CashierMethodsList-YyRWpuZm.js → CashierMethodsList-BGAY6E7_.js} +2 -1
  5. package/components/{CashierMethodsList-CS5eLjbC.cjs → CashierMethodsList-CkhSDE8u.cjs} +1 -1
  6. package/components/{CashierMethodsList-DtW54mlF.js → CashierMethodsList-DYI_KX8P.js} +2 -1
  7. package/components/{CashierPage-DbixRRNC.js → CashierPage-5P9tXJmN.js} +6 -6
  8. package/components/{CashierPage-CV-G2aoS.js → CashierPage-D-XUNMVM.js} +6 -6
  9. package/components/{CashierPage-C1hPxR19.cjs → CashierPage-bMKwWt9h.cjs} +1 -1
  10. package/components/{CashierReceiptPage-D4CTc8gY.js → CashierReceiptPage-BNWmfu-w.js} +1 -1
  11. package/components/{CashierReceiptPage-CfDBI_5U.cjs → CashierReceiptPage-C2V8acxk.cjs} +1 -1
  12. package/components/{CashierReceiptPage-Bi3SZ64s.js → CashierReceiptPage-DtpWieuH.js} +1 -1
  13. package/components/{CashierSessionExpirationModal-DyuXm-7Y.js → CashierSessionExpirationModal-2Tb4ccUV.js} +2 -2
  14. package/components/{CashierSessionExpirationModal-Ch9CMXjA.cjs → CashierSessionExpirationModal-C6mJVbAe.cjs} +1 -1
  15. package/components/{CashierSessionExpirationModal-LZBxjmeO.js → CashierSessionExpirationModal-hXsw6K30.js} +2 -2
  16. package/components/{CashierTransactionHistory-BdxcfVAX.js → CashierTransactionHistory-C4-ymgSG.js} +2 -2
  17. package/components/{CashierTransactionHistory-DfG7lFfj.js → CashierTransactionHistory-CBw_mWQW.js} +2 -2
  18. package/components/{CashierTransactionHistory-h5D2AnAV.cjs → CashierTransactionHistory-CeMwPAX5.cjs} +1 -1
  19. package/components/{CashierVerifications-azGuR52u.cjs → CashierVerifications-B8ACgjqu.cjs} +1 -1
  20. package/components/{CashierVerifications-CZUjmaOW.js → CashierVerifications-BdAT9MAz.js} +1 -1
  21. package/components/{CashierVerifications-CWxQQOwk.js → CashierVerifications-Cd_ox3Dr.js} +1 -1
  22. package/es2015/cashier-page.cjs +1 -1
  23. package/es2015/cashier-page.js +1 -1
  24. package/esnext/cashier-page.js +1 -1
  25. package/package.json +1 -1
@@ -735,7 +735,7 @@ if (typeof window != "undefined") {
735
735
  }
736
736
  };
737
737
  };
738
- customElements.define = t(customElements.define), import("./CashierReceiptPage-D4CTc8gY.js").then((n) => n.C).then(({ default: n }) => {
738
+ customElements.define = t(customElements.define), import("./CashierReceiptPage-BNWmfu-w.js").then((n) => n.C).then(({ default: n }) => {
739
739
  !customElements.get("cashier-receipt-page-nd") && customElements.define("cashier-receipt-page-nd", n.element);
740
740
  });
741
741
  }
@@ -1270,8 +1270,8 @@ function Ai(t, n) {
1270
1270
  e.amPM !== void 0 && (o = f(o, e.amPM.textContent));
1271
1271
  var b = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && dn(e.latestSelectedDateObj, e.config.minDate, !0) === 0, O = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && dn(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
1272
1272
  if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
1273
- var j = Jt(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), ne = Jt(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), U = Jt(o, u, m);
1274
- if (U > ne && U < j) {
1273
+ var j = Jt(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), ee = Jt(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), U = Jt(o, u, m);
1274
+ if (U > ee && U < j) {
1275
1275
  var ue = _i(j);
1276
1276
  o = ue[0], u = ue[1], m = ue[2];
1277
1277
  }
@@ -1384,7 +1384,7 @@ function Ai(t, n) {
1384
1384
  }
1385
1385
  function Ce(o) {
1386
1386
  for (var u = o > 0 ? 0 : e.config.showMonths - 1, m = o > 0 ? e.config.showMonths : -1, b = u; b != m; b += o)
1387
- for (var O = e.daysContainer.children[b], j = o > 0 ? 0 : O.children.length - 1, ne = o > 0 ? O.children.length : -1, U = j; U != ne; U += o) {
1387
+ for (var O = e.daysContainer.children[b], j = o > 0 ? 0 : O.children.length - 1, ee = o > 0 ? O.children.length : -1, U = j; U != ee; U += o) {
1388
1388
  var ue = O.children[U];
1389
1389
  if (ue.className.indexOf("hidden") === -1 && De(ue.dateObj))
1390
1390
  return ue;
@@ -1392,8 +1392,8 @@ function Ai(t, n) {
1392
1392
  }
1393
1393
  function Pe(o, u) {
1394
1394
  for (var m = o.className.indexOf("Month") === -1 ? o.dateObj.getMonth() : e.currentMonth, b = u > 0 ? e.config.showMonths : -1, O = u > 0 ? 1 : -1, j = m - e.currentMonth; j != b; j += O)
1395
- for (var ne = e.daysContainer.children[j], U = m - e.currentMonth === j ? o.$i + u : u < 0 ? ne.children.length - 1 : 0, ue = ne.children.length, V = U; V >= 0 && V < ue && V != (u > 0 ? ue : -1); V += O) {
1396
- var $ = ne.children[V];
1395
+ for (var ee = e.daysContainer.children[j], U = m - e.currentMonth === j ? o.$i + u : u < 0 ? ee.children.length - 1 : 0, ue = ee.children.length, V = U; V >= 0 && V < ue && V != (u > 0 ? ue : -1); V += O) {
1396
+ var $ = ee.children[V];
1397
1397
  if ($.className.indexOf("hidden") === -1 && De($.dateObj) && Math.abs(o.$i - V) >= Math.abs(u))
1398
1398
  return le($);
1399
1399
  }
@@ -1404,7 +1404,7 @@ function Ai(t, n) {
1404
1404
  O === void 0 ? e._input.focus() : b ? Pe(O, u) : le(O);
1405
1405
  }
1406
1406
  function Q(o, u) {
1407
- for (var m = (new Date(o, u, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, b = e.utils.getDaysInMonth((u - 1 + 12) % 12, o), O = e.utils.getDaysInMonth(u, o), j = window.document.createDocumentFragment(), ne = e.config.showMonths > 1, U = ne ? "prevMonthDay hidden" : "prevMonthDay", ue = ne ? "nextMonthDay hidden" : "nextMonthDay", V = b + 1 - m, $ = 0; V <= b; V++, $++)
1407
+ for (var m = (new Date(o, u, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, b = e.utils.getDaysInMonth((u - 1 + 12) % 12, o), O = e.utils.getDaysInMonth(u, o), j = window.document.createDocumentFragment(), ee = e.config.showMonths > 1, U = ee ? "prevMonthDay hidden" : "prevMonthDay", ue = ee ? "nextMonthDay hidden" : "nextMonthDay", V = b + 1 - m, $ = 0; V <= b; V++, $++)
1408
1408
  j.appendChild(X("flatpickr-day " + U, new Date(o, u - 1, V), V, $));
1409
1409
  for (V = 1; V <= O; V++, $++)
1410
1410
  j.appendChild(X("flatpickr-day", new Date(o, u, V), V, $));
@@ -1438,8 +1438,8 @@ function Ai(t, n) {
1438
1438
  }
1439
1439
  function W() {
1440
1440
  var o = Te("div", "flatpickr-month"), u = window.document.createDocumentFragment(), m;
1441
- e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? m = Te("span", "cur-month") : (e.monthsDropdownContainer = Te("select", "flatpickr-monthDropdown-months"), e.monthsDropdownContainer.setAttribute("aria-label", e.l10n.monthAriaLabel), p(e.monthsDropdownContainer, "change", function(ne) {
1442
- var U = ln(ne), ue = parseInt(U.value, 10);
1441
+ e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? m = Te("span", "cur-month") : (e.monthsDropdownContainer = Te("select", "flatpickr-monthDropdown-months"), e.monthsDropdownContainer.setAttribute("aria-label", e.l10n.monthAriaLabel), p(e.monthsDropdownContainer, "change", function(ee) {
1442
+ var U = ln(ee), ue = parseInt(U.value, 10);
1443
1443
  e.changeMonth(ue - e.currentMonth), Ne("onMonthChange");
1444
1444
  }), Ee(), m = e.monthsDropdownContainer);
1445
1445
  var b = Tt("cur-year", { tabindex: "-1" }), O = b.getElementsByTagName("input")[0];
@@ -1597,8 +1597,8 @@ function Ai(t, n) {
1597
1597
  }
1598
1598
  function de(o) {
1599
1599
  if (e.isOpen && !e.config.inline) {
1600
- var u = ln(o), m = ke(u), b = u === e.input || u === e.altInput || e.element.contains(u) || o.path && o.path.indexOf && (~o.path.indexOf(e.input) || ~o.path.indexOf(e.altInput)), O = !b && !m && !ke(o.relatedTarget), j = !e.config.ignoredFocusElements.some(function(ne) {
1601
- return ne.contains(u);
1600
+ var u = ln(o), m = ke(u), b = u === e.input || u === e.altInput || e.element.contains(u) || o.path && o.path.indexOf && (~o.path.indexOf(e.input) || ~o.path.indexOf(e.altInput)), O = !b && !m && !ke(o.relatedTarget), j = !e.config.ignoredFocusElements.some(function(ee) {
1601
+ return ee.contains(u);
1602
1602
  });
1603
1603
  O && j && (e.config.allowInput && e.setDate(e._input.value, !1, e.config.altInput ? e.config.altFormat : e.config.dateFormat), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0 && e.input.value !== "" && e.input.value !== void 0 && d(), e.close(), e.config && e.config.mode === "range" && e.selectedDates.length === 1 && e.clear(!1));
1604
1604
  }
@@ -1619,8 +1619,8 @@ function Ai(t, n) {
1619
1619
  return !0;
1620
1620
  if (b === void 0)
1621
1621
  return !1;
1622
- for (var O = !!e.config.enable, j = (m = e.config.enable) !== null && m !== void 0 ? m : e.config.disable, ne = 0, U = void 0; ne < j.length; ne++) {
1623
- if (U = j[ne], typeof U == "function" && U(b))
1622
+ for (var O = !!e.config.enable, j = (m = e.config.enable) !== null && m !== void 0 ? m : e.config.disable, ee = 0, U = void 0; ee < j.length; ee++) {
1623
+ if (U = j[ee], typeof U == "function" && U(b))
1624
1624
  return O;
1625
1625
  if (U instanceof Date && b !== void 0 && U.getTime() === b.getTime())
1626
1626
  return O;
@@ -1646,10 +1646,10 @@ function Ai(t, n) {
1646
1646
  return e.setDate(e._input.value, !0, u === e.altInput ? e.config.altFormat : e.config.dateFormat), e.close(), u.blur();
1647
1647
  e.open();
1648
1648
  } else if (ke(u) || O || j) {
1649
- var ne = !!e.timeContainer && e.timeContainer.contains(u);
1649
+ var ee = !!e.timeContainer && e.timeContainer.contains(u);
1650
1650
  switch (o.keyCode) {
1651
1651
  case 13:
1652
- ne ? (o.preventDefault(), d(), ze()) : tn(o);
1652
+ ee ? (o.preventDefault(), d(), ze()) : tn(o);
1653
1653
  break;
1654
1654
  case 27:
1655
1655
  o.preventDefault(), ze();
@@ -1660,7 +1660,7 @@ function Ai(t, n) {
1660
1660
  break;
1661
1661
  case 37:
1662
1662
  case 39:
1663
- if (!ne && !m) {
1663
+ if (!ee && !m) {
1664
1664
  o.preventDefault();
1665
1665
  var U = i();
1666
1666
  if (e.daysContainer !== void 0 && (b === !1 || U && Oe(U))) {
@@ -1674,10 +1674,10 @@ function Ai(t, n) {
1674
1674
  case 40:
1675
1675
  o.preventDefault();
1676
1676
  var V = o.keyCode === 40 ? 1 : -1;
1677
- e.daysContainer && u.$i !== void 0 || u === e.input || u === e.altInput ? o.ctrlKey ? (o.stopPropagation(), Le(e.currentYear - V), ae(Ce(1), 0)) : ne || ae(void 0, V * 7) : u === e.currentYearElement ? Le(e.currentYear - V) : e.config.enableTime && (!ne && e.hourElement && e.hourElement.focus(), d(o), e._debouncedChange());
1677
+ e.daysContainer && u.$i !== void 0 || u === e.input || u === e.altInput ? o.ctrlKey ? (o.stopPropagation(), Le(e.currentYear - V), ae(Ce(1), 0)) : ee || ae(void 0, V * 7) : u === e.currentYearElement ? Le(e.currentYear - V) : e.config.enableTime && (!ee && e.hourElement && e.hourElement.focus(), d(o), e._debouncedChange());
1678
1678
  break;
1679
1679
  case 9:
1680
- if (ne) {
1680
+ if (ee) {
1681
1681
  var $ = [
1682
1682
  e.hourElement,
1683
1683
  e.minuteElement,
@@ -1710,8 +1710,8 @@ function Ai(t, n) {
1710
1710
  }
1711
1711
  function ge(o, u) {
1712
1712
  if (u === void 0 && (u = "flatpickr-day"), !(e.selectedDates.length !== 1 || o && (!o.classList.contains(u) || o.classList.contains("flatpickr-disabled")))) {
1713
- for (var m = o ? o.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), b = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), O = Math.min(m, e.selectedDates[0].getTime()), j = Math.max(m, e.selectedDates[0].getTime()), ne = !1, U = 0, ue = 0, V = O; V < j; V += Ci.DAY)
1714
- De(new Date(V), !0) || (ne = ne || V > O && V < j, V < b && (!U || V > U) ? U = V : V > b && (!ue || V < ue) && (ue = V));
1713
+ for (var m = o ? o.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), b = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), O = Math.min(m, e.selectedDates[0].getTime()), j = Math.max(m, e.selectedDates[0].getTime()), ee = !1, U = 0, ue = 0, V = O; V < j; V += Ci.DAY)
1714
+ De(new Date(V), !0) || (ee = ee || V > O && V < j, V < b && (!U || V > U) ? U = V : V > b && (!ue || V < ue) && (ue = V));
1715
1715
  var $ = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + u));
1716
1716
  $.forEach(function(he) {
1717
1717
  var Ze = he.dateObj, Re = Ze.getTime(), We = U > 0 && Re < U || ue > 0 && Re > ue;
@@ -1720,7 +1720,7 @@ function Ai(t, n) {
1720
1720
  he.classList.remove(vn);
1721
1721
  });
1722
1722
  return;
1723
- } else if (ne && !We)
1723
+ } else if (ee && !We)
1724
1724
  return;
1725
1725
  ["startRange", "inRange", "endRange", "notAllowed"].forEach(function(vn) {
1726
1726
  he.classList.remove(vn);
@@ -1807,7 +1807,7 @@ function Ai(t, n) {
1807
1807
  },
1808
1808
  set: Ue("max")
1809
1809
  });
1810
- var ne = function($) {
1810
+ var ee = function($) {
1811
1811
  return function(he) {
1812
1812
  e.config[$ === "min" ? "_minTime" : "_maxTime"] = e.parseDate(he, "H:i:S");
1813
1813
  };
@@ -1816,12 +1816,12 @@ function Ai(t, n) {
1816
1816
  get: function() {
1817
1817
  return e.config._minTime;
1818
1818
  },
1819
- set: ne("min")
1819
+ set: ee("min")
1820
1820
  }), Object.defineProperty(e.config, "maxTime", {
1821
1821
  get: function() {
1822
1822
  return e.config._maxTime;
1823
1823
  },
1824
- set: ne("max")
1824
+ set: ee("max")
1825
1825
  }), u.mode === "time" && (e.config.noCalendar = !0, e.config.enableTime = !0), Object.assign(e.config, m, u);
1826
1826
  for (var U = 0; U < o.length; U++)
1827
1827
  e.config[o[U]] = e.config[o[U]] === !0 || e.config[o[U]] === "true";
@@ -1852,10 +1852,10 @@ function Ai(t, n) {
1852
1852
  Ne("onPreCalendarPosition");
1853
1853
  var u = o || e._positionElement, m = Array.prototype.reduce.call(e.calendarContainer.children, function(Dn, Gn) {
1854
1854
  return Dn + Gn.offsetHeight;
1855
- }, 0), b = e.calendarContainer.offsetWidth, O = e.config.position.split(" "), j = O[0], ne = O.length > 1 ? O[1] : null, U = u.getBoundingClientRect(), ue = window.innerHeight - U.bottom, V = j === "above" || j !== "below" && ue < m && U.top > m, $ = window.pageYOffset + U.top + (V ? -m - 2 : u.offsetHeight + 2);
1855
+ }, 0), b = e.calendarContainer.offsetWidth, O = e.config.position.split(" "), j = O[0], ee = O.length > 1 ? O[1] : null, U = u.getBoundingClientRect(), ue = window.innerHeight - U.bottom, V = j === "above" || j !== "below" && ue < m && U.top > m, $ = window.pageYOffset + U.top + (V ? -m - 2 : u.offsetHeight + 2);
1856
1856
  if (Xe(e.calendarContainer, "arrowTop", !V), Xe(e.calendarContainer, "arrowBottom", V), !e.config.inline) {
1857
1857
  var he = window.pageXOffset + U.left, Ze = !1, Re = !1;
1858
- ne === "center" ? (he -= (b - U.width) / 2, Ze = !0) : ne === "right" && (he -= b - U.width, Re = !0), Xe(e.calendarContainer, "arrowLeft", !Ze && !Re), Xe(e.calendarContainer, "arrowCenter", Ze), Xe(e.calendarContainer, "arrowRight", Re);
1858
+ ee === "center" ? (he -= (b - U.width) / 2, Ze = !0) : ee === "right" && (he -= b - U.width, Re = !0), Xe(e.calendarContainer, "arrowLeft", !Ze && !Re), Xe(e.calendarContainer, "arrowCenter", Ze), Xe(e.calendarContainer, "arrowRight", Re);
1859
1859
  var We = window.document.body.offsetWidth - (window.pageXOffset + U.right), vn = he + b > window.document.body.offsetWidth, Kn = We + b > window.document.body.offsetWidth;
1860
1860
  if (Xe(e.calendarContainer, "rightMost", vn), !e.config.static)
1861
1861
  if (e.calendarContainer.style.top = $ + "px", !vn)
@@ -1907,8 +1907,8 @@ function Ai(t, n) {
1907
1907
  if (e.selectedDateElem = b, e.config.mode === "single")
1908
1908
  e.selectedDates = [O];
1909
1909
  else if (e.config.mode === "multiple") {
1910
- var ne = bn(O);
1911
- ne ? e.selectedDates.splice(parseInt(ne), 1) : e.selectedDates.push(O);
1910
+ var ee = bn(O);
1911
+ ee ? e.selectedDates.splice(parseInt(ee), 1) : e.selectedDates.push(O);
1912
1912
  } else
1913
1913
  e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = O, e.selectedDates.push(O), dn(O, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function($, he) {
1914
1914
  return $.getTime() - he.getTime();
@@ -2077,10 +2077,10 @@ function Ai(t, n) {
2077
2077
  o.preventDefault();
2078
2078
  var u = o.type === "keydown", m = ln(o), b = m;
2079
2079
  e.amPM !== void 0 && m === e.amPM && (e.amPM.textContent = e.l10n.amPM[mn(e.amPM.textContent === e.l10n.amPM[0])]);
2080
- var O = parseFloat(b.getAttribute("min")), j = parseFloat(b.getAttribute("max")), ne = parseFloat(b.getAttribute("step")), U = parseInt(b.value, 10), ue = o.delta || (u ? o.which === 38 ? 1 : -1 : 0), V = U + ne * ue;
2080
+ var O = parseFloat(b.getAttribute("min")), j = parseFloat(b.getAttribute("max")), ee = parseFloat(b.getAttribute("step")), U = parseInt(b.value, 10), ue = o.delta || (u ? o.which === 38 ? 1 : -1 : 0), V = U + ee * ue;
2081
2081
  if (typeof b.value != "undefined" && b.value.length === 2) {
2082
2082
  var $ = b === e.hourElement, he = b === e.minuteElement;
2083
- V < O ? (V = j + V + mn(!$) + (mn($) && mn(!e.amPM)), he && G(void 0, -1, e.hourElement)) : V > j && (V = b === e.hourElement ? V - j - mn(!e.amPM) : O, he && G(void 0, 1, e.hourElement)), e.amPM && $ && (ne === 1 ? V + U === 23 : Math.abs(V - U) > ne) && (e.amPM.textContent = e.l10n.amPM[mn(e.amPM.textContent === e.l10n.amPM[0])]), b.value = nn(V);
2083
+ V < O ? (V = j + V + mn(!$) + (mn($) && mn(!e.amPM)), he && G(void 0, -1, e.hourElement)) : V > j && (V = b === e.hourElement ? V - j - mn(!e.amPM) : O, he && G(void 0, 1, e.hourElement)), e.amPM && $ && (ee === 1 ? V + U === 23 : Math.abs(V - U) > ee) && (e.amPM.textContent = e.l10n.amPM[mn(e.amPM.textContent === e.l10n.amPM[0])]), b.value = nn(V);
2084
2084
  }
2085
2085
  }
2086
2086
  return a(), e;
@@ -4353,7 +4353,7 @@ var qt = { exports: {} };
4353
4353
  b.l10ns.my = O, b.l10ns;
4354
4354
  var j = typeof window != "undefined" && window.flatpickr !== void 0 ? window.flatpickr : {
4355
4355
  l10ns: {}
4356
- }, ne = {
4356
+ }, ee = {
4357
4357
  weekdays: {
4358
4358
  shorthand: ["zo", "ma", "di", "wo", "do", "vr", "za"],
4359
4359
  longhand: [
@@ -4406,7 +4406,7 @@ var qt = { exports: {} };
4406
4406
  return ye === 1 || ye === 8 || ye >= 20 ? "ste" : "de";
4407
4407
  }
4408
4408
  };
4409
- j.l10ns.nl = ne, j.l10ns;
4409
+ j.l10ns.nl = ee, j.l10ns;
4410
4410
  var U = typeof window != "undefined" && window.flatpickr !== void 0 ? window.flatpickr : {
4411
4411
  l10ns: {}
4412
4412
  }, ue = {
@@ -5568,7 +5568,7 @@ var qt = { exports: {} };
5568
5568
  mn: o,
5569
5569
  ms: m,
5570
5570
  my: O,
5571
- nl: ne,
5571
+ nl: ee,
5572
5572
  nn: ue,
5573
5573
  no: $,
5574
5574
  pa: Ze,
@@ -8529,10 +8529,10 @@ function oo(t, n, e) {
8529
8529
  var Ae;
8530
8530
  if (!k)
8531
8531
  return;
8532
- const L = JSON.parse(k.dataset.field), Y = Et.get(L.Placeholder), ee = L.Type === Z.DateTime ? Et.get((Ae = L.Placeholder) == null ? void 0 : Ae.split(" ")[1]) : Y;
8532
+ const L = JSON.parse(k.dataset.field), Y = Et.get(L.Placeholder), ne = L.Type === Z.DateTime ? Et.get((Ae = L.Placeholder) == null ? void 0 : Ae.split(" ")[1]) : Y;
8533
8533
  Be(k, jt(En({}, s[L.Type]), {
8534
8534
  dateFormat: Y,
8535
- time_24hr: ee === "H:i",
8535
+ time_24hr: ne === "H:i",
8536
8536
  maxDate: L.maxValue,
8537
8537
  minDate: L.minValue,
8538
8538
  defaultDate: L.defaultValue,
@@ -8558,30 +8558,30 @@ function oo(t, n, e) {
8558
8558
  Tags: { UserAgent: window.navigator.userAgent }
8559
8559
  })
8560
8560
  };
8561
- fetch(k, Y).then((ee) => {
8562
- const Ae = ee.headers.get("X-Payment-Session-Token");
8563
- return Ae && ut.set(Ae), ee.json();
8564
- }).then((ee) => {
8561
+ fetch(k, Y).then((ne) => {
8562
+ const Ae = ne.headers.get("X-Payment-Session-Token");
8563
+ return Ae && ut.set(Ae), ne.json();
8564
+ }).then((ne) => {
8565
8565
  if (!s.aborted) {
8566
- if (ee.error) {
8566
+ if (ne.error) {
8567
8567
  window.postMessage(
8568
8568
  {
8569
8569
  type: "ShowSessionError",
8570
- error: ee.error
8570
+ error: ne.error
8571
8571
  },
8572
8572
  window.location.href
8573
8573
  );
8574
8574
  return;
8575
8575
  }
8576
- if (ee.ResponseCode === un.PlayerSessionIsNotValid || ee.ResponseCode === un.Maintenance || ee.ResponseCode === un.JwtTokenError) {
8577
- e(39, x = ee.ResponseCode), kn();
8576
+ if (ne.ResponseCode === un.PlayerSessionIsNotValid || ne.ResponseCode === un.Maintenance || ne.ResponseCode === un.JwtTokenError) {
8577
+ e(39, x = ne.ResponseCode), kn();
8578
8578
  return;
8579
8579
  }
8580
- if (ee.ResponseCode !== un.Success) {
8581
- e(39, x = ee.ResponseCode);
8580
+ if (ne.ResponseCode !== un.Success) {
8581
+ e(39, x = ne.ResponseCode);
8582
8582
  return;
8583
8583
  }
8584
- e(28, S = ee.PaymentMethod), T = ee, e(52, Bn = S.PredefinedAmounts), E = vi(T), Re(), e(38, me = Number(P) || null), S.HideAmountField ? e(24, Ge = "") : Mn(), De = lr.get(S.RedirectionMode) || lr.get("Default"), e(42, An = (S == null ? void 0 : S.Logos.find((se) => se.LogoType === "Desktop")) || {}), e(43, Yn = (S == null ? void 0 : S.Logos.find((se) => se.LogoType === "Mobile")) || {}), e(78, z = S.Fields && S.Fields.map((se) => new Gt(se)));
8584
+ e(28, S = ne.PaymentMethod), T = ne, e(52, Bn = S.PredefinedAmounts), E = vi(T), Re(), e(38, me = Number(P) || null), S.HideAmountField ? e(24, Ge = "") : Mn(), De = lr.get(S.RedirectionMode) || lr.get("Default"), e(42, An = (S == null ? void 0 : S.Logos.find((se) => se.LogoType === "Desktop")) || {}), e(43, Yn = (S == null ? void 0 : S.Logos.find((se) => se.LogoType === "Mobile")) || {}), e(78, z = S.Fields && S.Fields.map((se) => new Gt(se)));
8585
8585
  let Ae = !1, Ie = !1;
8586
8586
  z.forEach((se) => {
8587
8587
  (se == null ? void 0 : se.name) == "PaymentAccountToken" && (Ae = !0), "isPrimaryField" in se && (Ie = !0), (se == null ? void 0 : se.type) === Z.Lookup && (se == null ? void 0 : se.values.length) == 1 && se.values[0].Name == "AddNewPaymentAccount" && (q[se.name] = se.values[0].Value, e(29, H[se.name] = se.values[0].Value, H), We(se.name, se.values[0].Name)), se != null && se.defaultValue && (q[se.name] = se.defaultValue, e(29, H[se.name] = se.defaultValue, H), S.Name === "Trustly" && se.type === Z.Lookup && e(44, cn = se.values.map(() => !1))), Je(se);
@@ -8598,22 +8598,26 @@ function oo(t, n, e) {
8598
8598
  });
8599
8599
  }, O = (s) => Object.entries(s).filter(([k, L]) => L != null && L !== "").map(([k, L]) => ({ Key: k, Value: L })), j = () => Yt(this, null, function* () {
8600
8600
  return new Promise((s, k) => {
8601
- H.PaymentAccountToken != "AddNewPaymentAccount" && s(), e(33, pe = !0);
8601
+ if (H.PaymentAccountToken != "AddNewPaymentAccount") {
8602
+ s(), ee("save");
8603
+ return;
8604
+ }
8605
+ e(33, pe = !0);
8602
8606
  const L = new URL(`${l}/api/v1/mm/card/paymentAccount/register`), Y = new Headers();
8603
8607
  Y.append("accept", "application/json"), Y.append("Content-Type", "application/json"), Y.append("X-Client-Request-Timestamp", Cn.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), Y.append("X-SessionId", `${d}`), Y.append("X-Payment-Session-Token", `${c || a}`);
8604
- let ee = En({}, q);
8608
+ let ne = En({}, q);
8605
8609
  if (H.PaymentAccountToken == "AddNewPaymentAccount") {
8606
8610
  let Ve = [];
8607
8611
  S.Fields.forEach((en) => {
8608
8612
  en.Type == Z.Boolean && Ve.push(en.Name);
8609
8613
  }), Ve.forEach((en) => {
8610
- ee[en] || (ee[en] = !1);
8614
+ ne[en] || (ne[en] = !1);
8611
8615
  });
8612
8616
  }
8613
8617
  let Ae = {
8614
8618
  Card: {
8615
8619
  PaymentMethod: S.Name,
8616
- Data: O(ee)
8620
+ Data: O(ne)
8617
8621
  }
8618
8622
  };
8619
8623
  const Ie = {
@@ -8656,14 +8660,14 @@ function oo(t, n, e) {
8656
8660
  console.log("e", en);
8657
8661
  }
8658
8662
  else
8659
- Ve.ResponseCode == 12100 ? (e(39, x = "12100"), kn(), k()) : (ne("save"), s());
8663
+ Ve.ResponseCode == 12100 ? (e(39, x = "12100"), kn(), k()) : (ee("save"), s());
8660
8664
  });
8661
8665
  });
8662
- }), ne = (s = "") => Yt(this, null, function* () {
8666
+ }), ee = (s = "") => Yt(this, null, function* () {
8663
8667
  e(33, pe = !0);
8664
8668
  const k = new URL(`${l}/v2/player/${A}/payment/GetPaymentPrepare`), L = new Headers();
8665
8669
  L.append("accept", "application/json"), L.append("Content-Type", "application/json"), L.append("X-Client-Request-Timestamp", Cn.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), L.append("X-SessionId", `${d}`), L.append("X-Payment-Session-Token", `${c || a}`), Dn();
8666
- let Y = "", ee = {
8670
+ let Y = "", ne = {
8667
8671
  Transaction: {
8668
8672
  PaymentMethod: S.Name,
8669
8673
  Amount: me || Number(P),
@@ -8675,7 +8679,7 @@ function oo(t, n, e) {
8675
8679
  Tags: { UserAgent: window.navigator.userAgent }
8676
8680
  };
8677
8681
  try {
8678
- Y = JSON.stringify(ee);
8682
+ Y = JSON.stringify(ne);
8679
8683
  } catch (He) {
8680
8684
  console.error("There was an error trying to build the body for GetPaymentPrepare request");
8681
8685
  }
@@ -8764,8 +8768,8 @@ function oo(t, n, e) {
8764
8768
  body: JSON.stringify({})
8765
8769
  };
8766
8770
  fetch(s, L).then((Y) => {
8767
- const ee = Y.headers.get("X-Payment-Session-Token");
8768
- return ee && ut.set(ee), Y.json();
8771
+ const ne = Y.headers.get("X-Payment-Session-Token");
8772
+ return ne && ut.set(ne), Y.json();
8769
8773
  }).then((Y) => {
8770
8774
  if (Y.ResponseCode !== un.Success) {
8771
8775
  e(33, pe = !1), Dn(), de == null || de.close(), Y.ResponseCode === un.PlayerSessionIsNotValid || Y.ResponseCode === un.Maintenance || Y.ResponseCode === un.JwtTokenError ? kn() : (e(46, Tn = !0), window.dispatchEvent(new CustomEvent(
@@ -8843,14 +8847,14 @@ function oo(t, n, e) {
8843
8847
  };
8844
8848
  let he;
8845
8849
  const Ze = (s, k) => {
8846
- var L, Y, ee;
8847
- return (L = s == null ? void 0 : s.field) != null && L.Name && ((ee = (Y = s == null ? void 0 : s.field) == null ? void 0 : Y.Name) != null && ee.toLowerCase().includes("bonus")) ? (e(20, W = "true"), !1) : s.correlationValue ? s.correlationValue.indexOf(",") !== -1 ? s.correlationValue.split(",").indexOf(k) >= 0 : k === s.correlationValue : !0;
8850
+ var L, Y, ne;
8851
+ return (L = s == null ? void 0 : s.field) != null && L.Name && ((ne = (Y = s == null ? void 0 : s.field) == null ? void 0 : Y.Name) != null && ne.toLowerCase().includes("bonus")) ? (e(20, W = "true"), !1) : s.correlationValue ? s.correlationValue.indexOf(",") !== -1 ? s.correlationValue.split(",").indexOf(k) >= 0 : k === s.correlationValue : !0;
8848
8852
  }, Re = () => {
8849
8853
  const s = /* @__PURE__ */ new Set(), k = (L, Y = null) => {
8850
- const ee = L.field.Name;
8854
+ const ne = L.field.Name;
8851
8855
  if (Ze(L, Y)) {
8852
- s.add(ee);
8853
- const Ae = N[ee];
8856
+ s.add(ne);
8857
+ const Ae = N[ne];
8854
8858
  for (let Ie in L.children)
8855
8859
  k(L.children[Ie], Ae);
8856
8860
  }
@@ -8863,10 +8867,10 @@ function oo(t, n, e) {
8863
8867
  }, vn = () => {
8864
8868
  if (!(S != null && S.Fields))
8865
8869
  return [];
8866
- const s = [], k = /* @__PURE__ */ new Set(), L = (Y, ee = 0) => {
8870
+ const s = [], k = /* @__PURE__ */ new Set(), L = (Y, ne = 0) => {
8867
8871
  const Ae = Y.field;
8868
- Ae && F.has(Ae.name) && !k.has(Ae.name) && (s.push(jt(En({}, Ae), { level: ee })), k.add(Ae.name)), Object.keys(Y.children).forEach((Ie) => {
8869
- L(Y.children[Ie], ee + 1);
8872
+ Ae && F.has(Ae.name) && !k.has(Ae.name) && (s.push(jt(En({}, Ae), { level: ne })), k.add(Ae.name)), Object.keys(Y.children).forEach((Ie) => {
8873
+ L(Y.children[Ie], ne + 1);
8870
8874
  });
8871
8875
  };
8872
8876
  return Object.keys(E).forEach((Y) => {
@@ -8882,13 +8886,13 @@ function oo(t, n, e) {
8882
8886
  return;
8883
8887
  }
8884
8888
  s.stopPropagation(), ge = s.composedPath()[0];
8885
- const L = ge.getBoundingClientRect(), Y = ce.getBoundingClientRect(), ee = L.y, Ae = 200;
8886
- window.innerHeight - ee < Ae || Y.bottom - L.bottom < Ae, L.top - Y.top - L.height, Y.bottom - L.bottom - L.height, e(34, ie = k);
8889
+ const L = ge.getBoundingClientRect(), Y = ce.getBoundingClientRect(), ne = L.y, Ae = 200;
8890
+ window.innerHeight - ne < Ae || Y.bottom - L.bottom < Ae, L.top - Y.top - L.height, Y.bottom - L.bottom - L.height, e(34, ie = k);
8887
8891
  };
8888
8892
  let sn = !1, yn = !1;
8889
8893
  const Rn = () => {
8890
- H.PaymentAccountToken == "AddNewPaymentAccount" && (yn = !0), yn && !sn && j(), !yn && !sn && ne(), sn && an == "newPayment" && ne(), yn && sn && an != "newPayment" && (sn = !1, j().then(() => {
8891
- ne("save");
8894
+ H.PaymentAccountToken == "AddNewPaymentAccount" && (yn = !0), yn && !sn && j(), !yn && !sn && ee(), sn && an == "newPayment" && ee(), yn && sn && an != "newPayment" && (sn = !1, j().then(() => {
8895
+ ee("save");
8892
8896
  }));
8893
8897
  }, kn = () => {
8894
8898
  window.postMessage(
@@ -8966,7 +8970,7 @@ function oo(t, n, e) {
8966
8970
  );
8967
8971
  }, bt = (s, k) => {
8968
8972
  var Y;
8969
- return k ? (k ? (Y = s.find((ee) => ee.Name === k)) == null ? void 0 : Y.Value : "") || k : "-";
8973
+ return k ? (k ? (Y = s.find((ne) => ne.Name === k)) == null ? void 0 : Y.Value : "") || k : "-";
8970
8974
  }, rt = (s) => {
8971
8975
  if (!s.correlationFieldName)
8972
8976
  return !0;
@@ -9008,8 +9012,8 @@ function oo(t, n, e) {
9008
9012
  }, Mn = () => {
9009
9013
  S.IsAmountConfigurable && !S.HideAmountField && e(24, Ge = vt() || yt() || kt() || Dt() || Mt() || _t());
9010
9014
  }, Fn = (s) => {
9011
- const k = q[s.Name], L = s.Placeholder, Y = Cn(k, L), ee = Cn(s.MaxValue, L), Ae = Cn(s.MinValue, L);
9012
- if (Y.isBefore(Ae) || Y.isAfter(ee)) {
9015
+ const k = q[s.Name], L = s.Placeholder, Y = Cn(k, L), ne = Cn(s.MaxValue, L), Ae = Cn(s.MinValue, L);
9016
+ if (Y.isBefore(Ae) || Y.isAfter(ne)) {
9013
9017
  e(25, be[s.name] = r("invalidFieldError", { values: { field: s.label } }), be);
9014
9018
  return;
9015
9019
  }
@@ -9025,8 +9029,8 @@ function oo(t, n, e) {
9025
9029
  e(25, be[s.name] = pn(s, L), be);
9026
9030
  else {
9027
9031
  if (s.inputMask) {
9028
- const Y = sr.extractCleanInput(L), ee = sr.format(Y, s.inputMask);
9029
- q[s.name] = Y, e(29, H[s.name] = ee, H);
9032
+ const Y = sr.extractCleanInput(L), ne = sr.format(Y, s.inputMask);
9033
+ q[s.name] = Y, e(29, H[s.name] = ne, H);
9030
9034
  } else
9031
9035
  q[s.name] = L;
9032
9036
  e(
@@ -9039,15 +9043,15 @@ function oo(t, n, e) {
9039
9043
  let k = 0;
9040
9044
  if (s.length !== 7)
9041
9045
  return !1;
9042
- const L = s.split("").map(Number), Y = i.reduce((ee, Ae, Ie) => ee + L[Ie] * Ae, 0);
9046
+ const L = s.split("").map(Number), Y = i.reduce((ne, Ae, Ie) => ne + L[Ie] * Ae, 0);
9043
9047
  for (; (Y + k) % 10 !== 0; )
9044
9048
  k++;
9045
9049
  return k;
9046
9050
  }, pn = (s, k) => {
9047
9051
  if (!/^\d{16}$/.test(k) && !/^\d{24}$/.test(k))
9048
9052
  return r("invalidFieldError", { values: { field: s.label } });
9049
- const L = k.slice(0, 7), Y = parseInt(k[7], 10), ee = k.slice(8, 15), Ae = parseInt(k[15], 10);
9050
- if (Y != ye(L) || Ae != ye(ee))
9053
+ const L = k.slice(0, 7), Y = parseInt(k[7], 10), ne = k.slice(8, 15), Ae = parseInt(k[15], 10);
9054
+ if (Y != ye(L) || Ae != ye(ne))
9051
9055
  return r("invalidFieldError", { values: { field: s.label } });
9052
9056
  if (k.length === 24) {
9053
9057
  const Ie = k.slice(16, 23);
@@ -9059,10 +9063,10 @@ function oo(t, n, e) {
9059
9063
  }, st = () => {
9060
9064
  const s = new URL(`${l}/v1/bonus/applicable`), k = new Headers();
9061
9065
  k.append("X-SessionID", d), s.searchParams.append("language", f), fetch(s, { method: "GET", headers: k }).then((Y) => Y.json()).then((Y) => {
9062
- var ee;
9066
+ var ne;
9063
9067
  if (Y.total > 0) {
9064
9068
  let Ae = [];
9065
- e(48, rn = (ee = Y == null ? void 0 : Y.bonuses) == null ? void 0 : ee.map((Ie) => (Ae.push(!1), {
9069
+ e(48, rn = (ne = Y == null ? void 0 : Y.bonuses) == null ? void 0 : ne.map((Ie) => (Ae.push(!1), {
9066
9070
  code: Ie.code,
9067
9071
  name: Ie.presentation.name.content,
9068
9072
  description: Ie.presentation.description.content,
@@ -9086,7 +9090,7 @@ function oo(t, n, e) {
9086
9090
  }
9087
9091
  ));
9088
9092
  }, Zn = (s, k, L) => {
9089
- q[L.name] = k.Name, e(44, cn = cn.map((Y, ee) => s === ee));
9093
+ q[L.name] = k.Name, e(44, cn = cn.map((Y, ne) => s === ne));
9090
9094
  };
9091
9095
  let Zt = window.innerWidth;
9092
9096
  const Xt = () => {
@@ -705,7 +705,7 @@ if (typeof window < "u") {
705
705
  }
706
706
  };
707
707
  };
708
- customElements.define = t(customElements.define), import("./CashierReceiptPage-Bi3SZ64s.js").then((n) => n.C).then(({ default: n }) => {
708
+ customElements.define = t(customElements.define), import("./CashierReceiptPage-DtpWieuH.js").then((n) => n.C).then(({ default: n }) => {
709
709
  !customElements.get("cashier-receipt-page-nd") && customElements.define("cashier-receipt-page-nd", n.element);
710
710
  });
711
711
  }
@@ -8565,7 +8565,11 @@ function Zi(t, n, e) {
8565
8565
  e(41, Ye = Ye && l.aborted);
8566
8566
  });
8567
8567
  }, O = (l) => Object.entries(l).filter(([D, N]) => N != null && N !== "").map(([D, N]) => ({ Key: D, Value: N })), j = async () => new Promise((l, D) => {
8568
- z.PaymentAccountToken != "AddNewPaymentAccount" && l(), e(33, fe = !0);
8568
+ if (z.PaymentAccountToken != "AddNewPaymentAccount") {
8569
+ l(), ee("save");
8570
+ return;
8571
+ }
8572
+ e(33, fe = !0);
8569
8573
  const N = new URL(`${s}/api/v1/mm/card/paymentAccount/register`), H = new Headers();
8570
8574
  H.append("accept", "application/json"), H.append("Content-Type", "application/json"), H.append("X-Client-Request-Timestamp", Cn.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), H.append("X-SessionId", `${d}`), H.append("X-Payment-Session-Token", `${c || a}`);
8571
8575
  let oe = { ...q };