@everymatrix/cashier-page 1.72.1 → 1.73.0

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 (87) hide show
  1. package/components/{CashierConfirmModal-4RYp7Eiq.js → CashierConfirmModal-BCk4hvRj.js} +3 -3
  2. package/components/{CashierConfirmModal-untxGhsx.js → CashierConfirmModal-DXlKhIue.js} +3 -3
  3. package/components/{CashierError-Zu3Whx-d.js → CashierError-BydkW7s_.js} +2 -2
  4. package/components/{CashierError-DfpdiheS.cjs → CashierError-Dpt_Z7yL.cjs} +1 -1
  5. package/components/{CashierError-yts9rF-i.js → CashierError-Dz_HsnJl.js} +2 -2
  6. package/components/{CashierHeader-BX6LLGb8.js → CashierHeader-86wrgmgP.js} +2 -2
  7. package/components/{CashierHeader-B9cdsOYh.cjs → CashierHeader-BXKYku0i.cjs} +1 -1
  8. package/components/{CashierHeader-C9V5_NVw.js → CashierHeader-DtS_U-De.js} +2 -2
  9. package/components/CashierIframeRedirect-BARMuRTc.cjs +1 -0
  10. package/components/CashierIframeRedirect-CmqcfGcT.js +429 -0
  11. package/components/CashierIframeRedirect-Xzpx4Rjk.js +429 -0
  12. package/components/CashierMethodDetails-Cf6KUGlj.cjs +99 -0
  13. package/components/{CashierMethodDetails-BC_DBHGl.js → CashierMethodDetails-DaUlJ18Q.js} +3452 -2899
  14. package/components/{CashierMethodDetails-ziDw_Jnc.js → CashierMethodDetails-oVkmdGDk.js} +3543 -2990
  15. package/components/CashierMethodsList-BKtn4kYZ.js +859 -0
  16. package/components/CashierMethodsList-BmNbGD7c.cjs +1 -0
  17. package/components/{CashierMethodsList-BSyNYqdF.js → CashierMethodsList-bnXzA9E8.js} +397 -402
  18. package/components/CashierModal-B4b12-Am.js +229 -0
  19. package/components/CashierModal-C-yyjQ8m.cjs +1 -0
  20. package/components/CashierModal-DCgiaC4V.js +229 -0
  21. package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BZCaBrRm.js} +1 -1
  22. package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-CWqwdi55.js} +1 -1
  23. package/components/{CashierPage-eEYSJ1Ow.js → CashierPage-BhUYgsyn.js} +628 -475
  24. package/components/CashierPage-K6Sfcy3_.cjs +1 -0
  25. package/components/{CashierPage-TiCjNJq3.js → CashierPage-qGww6KeO.js} +629 -476
  26. package/components/CashierReceiptPage-B5GxOKJ9.cjs +1 -0
  27. package/components/CashierReceiptPage-BePAYhQV.js +1451 -0
  28. package/components/CashierReceiptPage-Hvc3tNuq.js +1453 -0
  29. package/components/CashierSessionExpirationModal-BCKPn-ln.cjs +2 -0
  30. package/components/CashierSessionExpirationModal-C24hf-_h.js +1205 -0
  31. package/components/CashierSessionExpirationModal-DfMX7unr.js +1205 -0
  32. package/components/CashierSpinner-BdeNFm1c.js +79 -0
  33. package/components/CashierSpinner-COjPdCUV.js +79 -0
  34. package/components/CashierSpinner-CpkB8Zoj.cjs +1 -0
  35. package/components/CashierTransactionHistory-BgDq7hN9.js +614 -0
  36. package/components/CashierTransactionHistory-BtkomNSc.js +614 -0
  37. package/components/CashierTransactionHistory-siYwxijY.cjs +1 -0
  38. package/components/{CashierVerifications-7iTWQJHM.js → CashierVerifications-7QimQj7T.js} +324 -277
  39. package/components/CashierVerifications-CjEiYZ7G.cjs +1 -0
  40. package/components/{CashierVerifications-DMXkMmMm.js → CashierVerifications-tYl7M23B.js} +332 -285
  41. package/components/{CashierVideoModal-CVDvqrcy.js → CashierVideoModal-CM_ySf75.js} +91 -94
  42. package/components/CashierVideoModal-CZSRGjh-.cjs +1 -0
  43. package/components/{CashierVideoModal-DHNu0BQz.js → CashierVideoModal-D4tXmX3D.js} +91 -94
  44. package/es2015/cashier-page.cjs +1 -1
  45. package/es2015/cashier-page.js +1 -1
  46. package/esnext/cashier-page.js +1 -1
  47. package/package.json +1 -1
  48. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  49. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
  50. package/stencil/index-b2193545-B8kMF2bI.cjs +1 -0
  51. package/stencil/index-b2193545-BoSqyMpB.js +519 -0
  52. package/stencil/index-b2193545-D4dOaNlR.js +503 -0
  53. package/stencil/{ui-image-C7s6Uvn5.js → ui-image-BWJXFWH1.js} +1 -1
  54. package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-ByEXiBzx.cjs} +1 -1
  55. package/stencil/{ui-image-CHeV8e9p.js → ui-image-DIEeZy5u.js} +1 -1
  56. package/stencil/ui-skeleton-4-zrLsIW.js +11 -0
  57. package/stencil/ui-skeleton-9boHSjtG.js +29 -0
  58. package/stencil/ui-skeleton-_yJvAdAL.cjs +1 -0
  59. package/stencil/ui-skeleton-ae35c6f2-8tYGV8SR.js +155 -0
  60. package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +55 -0
  61. package/stencil/ui-skeleton-ae35c6f2-IN_dPA5_.js +155 -0
  62. package/components/CashierIframeRedirect-3Ttb1Wdk.js +0 -378
  63. package/components/CashierIframeRedirect-BIMJNSib.js +0 -378
  64. package/components/CashierIframeRedirect-NF0DKl7A.cjs +0 -1
  65. package/components/CashierMethodDetails-BprYcCjn.cjs +0 -84
  66. package/components/CashierMethodsList-B_95Nh79.js +0 -864
  67. package/components/CashierMethodsList-DYPLv5X8.cjs +0 -1
  68. package/components/CashierModal-BrwIBn9a.js +0 -232
  69. package/components/CashierModal-BuM2Yq-y.cjs +0 -1
  70. package/components/CashierModal-ZfKvGxFq.js +0 -232
  71. package/components/CashierPage-CLnWIWI0.cjs +0 -1
  72. package/components/CashierReceiptPage-B_Pn8b0K.cjs +0 -1
  73. package/components/CashierReceiptPage-CCt-NEa3.js +0 -1174
  74. package/components/CashierReceiptPage-XKvPw6Kc.js +0 -1172
  75. package/components/CashierSessionExpirationModal-BTK1_Bln.js +0 -1208
  76. package/components/CashierSessionExpirationModal-CH6Jq1b5.js +0 -1208
  77. package/components/CashierSessionExpirationModal-NsD2ZKK4.cjs +0 -2
  78. package/components/CashierSpinner-BAfTKICK.js +0 -71
  79. package/components/CashierSpinner-BhmndmKG.cjs +0 -1
  80. package/components/CashierSpinner-y6HodxHT.js +0 -71
  81. package/components/CashierTransactionHistory-CAZZIa-n.js +0 -569
  82. package/components/CashierTransactionHistory-CSbp2Y4-.js +0 -569
  83. package/components/CashierTransactionHistory-DeOc9EpW.cjs +0 -1
  84. package/components/CashierVerifications-CWGsoL5R.cjs +0 -1
  85. package/components/CashierVideoModal-BZg_b6bd.cjs +0 -1
  86. package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
  87. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
@@ -1,202 +1,199 @@
1
- import { S as T, b as N, s as R, f as p, c as U, n as m, e as v, l as _, w as Z, H as j, B as b, q as n, J as k, m as g, o as C, p as V, z as A, A as x, N as w, E as F } from "./CashierConfirmModal-untxGhsx.js";
2
- function J(s) {
3
- U(s, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
1
+ import { S as A, b as B, s as N, f as m, c as Z, n as w, e as b, m as _, x as j, F, C as L, v as l, J as k, o as h, p as C, q as V, A as J, B as H, N as v, E as R } from "./CashierConfirmModal-BCk4hvRj.js";
2
+ import { s as U, a as G, b as I } from "./CashierIframeRedirect-CmqcfGcT.js";
3
+ import { i as M } from "./CashierMethodDetails-oVkmdGDk.js";
4
+ function K(s) {
5
+ Z(s, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
4
6
  }
5
- function M(s) {
6
- let e, i, t, o, r, f, u, c = !/*desktopView*/
7
- s[2] && S(s), l = (
7
+ function S(s) {
8
+ let e, i, t, o, n, u, g, r = !/*desktopView*/
9
+ s[2] && x(s), a = (
8
10
  /*desktopView*/
9
- s[2] && H(s)
11
+ s[2] && z(s)
10
12
  );
11
13
  return {
12
14
  c() {
13
- e = C("div"), c && c.c(), i = V(), t = C("div"), l && l.c(), o = V(), r = C("video"), f = C("source"), b(f.src, u = /*videosrc*/
14
- s[0]) || n(f, "src", u), r.autoplay = !0, r.controls = !0, n(r, "controlslist", "nodownload"), n(r, "disablepictureinpicture", ""), n(t, "class", "CashierVideo"), n(e, "class", "CashierVideoWrapper"), n(e, "part", "CustomStylingContainer"), k(
15
+ e = C("div"), r && r.c(), i = V(), t = C("div"), a && a.c(), o = V(), n = C("video"), u = C("source"), L(u.src, g = /*videosrc*/
16
+ s[0]) || l(u, "src", g), n.autoplay = !0, n.controls = !0, l(n, "controlslist", "nodownload"), l(n, "disablepictureinpicture", ""), l(t, "class", "CashierVideo"), l(e, "class", "CashierVideoWrapper"), k(
15
17
  e,
16
18
  "CashierVideoWrapperDesktop",
17
19
  /*desktopView*/
18
20
  s[2]
19
21
  );
20
22
  },
21
- m(d, h) {
22
- _(d, e, h), c && c.m(e, null), g(e, i), g(e, t), l && l.m(t, null), g(t, o), g(t, r), g(r, f), s[10](e);
23
+ m(c, d) {
24
+ _(c, e, d), r && r.m(e, null), h(e, i), h(e, t), a && a.m(t, null), h(t, o), h(t, n), h(n, u), s[11](e);
23
25
  },
24
- p(d, h) {
26
+ p(c, d) {
25
27
  /*desktopView*/
26
- d[2] ? c && (c.d(1), c = null) : c ? c.p(d, h) : (c = S(d), c.c(), c.m(e, i)), /*desktopView*/
27
- d[2] ? l ? l.p(d, h) : (l = H(d), l.c(), l.m(t, o)) : l && (l.d(1), l = null), h & /*videosrc*/
28
- 1 && !b(f.src, u = /*videosrc*/
29
- d[0]) && n(f, "src", u), h & /*desktopView*/
28
+ c[2] ? r && (r.d(1), r = null) : r ? r.p(c, d) : (r = x(c), r.c(), r.m(e, i)), /*desktopView*/
29
+ c[2] ? a ? a.p(c, d) : (a = z(c), a.c(), a.m(t, o)) : a && (a.d(1), a = null), d & /*videosrc*/
30
+ 1 && !L(u.src, g = /*videosrc*/
31
+ c[0]) && l(u, "src", g), d & /*desktopView*/
30
32
  4 && k(
31
33
  e,
32
34
  "CashierVideoWrapperDesktop",
33
35
  /*desktopView*/
34
- d[2]
36
+ c[2]
35
37
  );
36
38
  },
37
- d(d) {
38
- d && v(e), c && c.d(), l && l.d(), s[10](null);
39
+ d(c) {
40
+ c && b(e), r && r.d(), a && a.d(), s[11](null);
39
41
  }
40
42
  };
41
43
  }
42
- function S(s) {
43
- let e, i, t, o, r;
44
+ function x(s) {
45
+ let e, i, t, o, n;
44
46
  return {
45
47
  c() {
46
- e = C("div"), i = w("svg"), t = w("path"), n(t, "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"), n(t, "fill", "#111111"), n(i, "xmlns", "http://www.w3.org/2000/svg"), n(i, "width", "13"), n(i, "height", "13"), n(i, "viewBox", "0 0 13 13"), n(i, "fill", "none"), n(e, "class", "CashierVideoHeader");
48
+ e = C("div"), i = v("svg"), t = v("path"), l(t, "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"), l(t, "fill", "#111111"), l(i, "xmlns", "http://www.w3.org/2000/svg"), l(i, "width", "13"), l(i, "height", "13"), l(i, "viewBox", "0 0 13 13"), l(i, "fill", "none"), l(e, "class", "CashierVideoHeader");
47
49
  },
48
- m(f, u) {
49
- _(f, e, u), g(e, i), g(i, t), o || (r = x(
50
+ m(u, g) {
51
+ _(u, e, g), h(e, i), h(i, t), o || (n = H(
50
52
  i,
51
53
  "click",
52
54
  /*click_handler*/
53
- s[8]
55
+ s[9]
54
56
  ), o = !0);
55
57
  },
56
- p: m,
57
- d(f) {
58
- f && v(e), o = !1, r();
58
+ p: w,
59
+ d(u) {
60
+ u && b(e), o = !1, n();
59
61
  }
60
62
  };
61
63
  }
62
- function H(s) {
64
+ function z(s) {
63
65
  let e, i, t, o;
64
66
  return {
65
67
  c() {
66
- e = w("svg"), i = w("path"), n(i, "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"), n(i, "fill", "#111111"), n(e, "xmlns", "http://www.w3.org/2000/svg"), n(e, "width", "13"), n(e, "height", "13"), n(e, "viewBox", "0 0 13 13"), n(e, "fill", "none");
68
+ e = v("svg"), i = v("path"), l(i, "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"), l(i, "fill", "#111111"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "width", "13"), l(e, "height", "13"), l(e, "viewBox", "0 0 13 13"), l(e, "fill", "none");
67
69
  },
68
- m(r, f) {
69
- _(r, e, f), g(e, i), t || (o = x(
70
+ m(n, u) {
71
+ _(n, e, u), h(e, i), t || (o = H(
70
72
  e,
71
73
  "click",
72
74
  /*click_handler_1*/
73
- s[9]
75
+ s[10]
74
76
  ), t = !0);
75
77
  },
76
- p: m,
77
- d(r) {
78
- r && v(e), t = !1, o();
78
+ p: w,
79
+ d(n) {
80
+ n && b(e), t = !1, o();
79
81
  }
80
82
  };
81
83
  }
82
- function G(s) {
84
+ function O(s) {
83
85
  let e, i = (
84
86
  /*show*/
85
- s[3] && M(s)
87
+ s[3] && S(s)
86
88
  );
87
89
  return {
88
90
  c() {
89
- i && i.c(), e = Z();
91
+ i && i.c(), e = j();
90
92
  },
91
93
  m(t, o) {
92
94
  i && i.m(t, o), _(t, e, o);
93
95
  },
94
96
  p(t, [o]) {
95
97
  /*show*/
96
- t[3] ? i ? i.p(t, o) : (i = M(t), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
98
+ t[3] ? i ? i.p(t, o) : (i = S(t), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
97
99
  },
98
- i: m,
99
- o: m,
100
+ i: w,
101
+ o: w,
100
102
  d(t) {
101
- t && v(e), i && i.d(t);
103
+ t && b(e), i && i.d(t);
102
104
  }
103
105
  };
104
106
  }
105
- function I(s, e, i) {
106
- let { clientstyling: t = "" } = e, { clientstylingurl: o = "" } = e, { ismobileview: r } = e, { videosrc: f } = e, u = !0, c = !1, l;
107
- const d = () => {
107
+ function P(s, e, i) {
108
+ let { clientstyling: t = "" } = e, { clientstylingurl: o = "" } = e, { ismobileview: n } = e, { videosrc: u } = e, { mbsource: g = "" } = e, r = window.navigator.userAgent, a = !0, c = !1, d;
109
+ const p = () => {
108
110
  i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
109
- }, h = (a) => {
110
- a.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
111
- }, z = () => {
112
- i(2, u = r === "false");
113
- }, E = () => {
114
- let a = document.createElement("style");
115
- a.innerHTML = t, l.appendChild(a);
111
+ }, y = (f) => {
112
+ f.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), f.data.type == "HideCashierVideoModal" && p();
116
113
  }, D = () => {
117
- let a = new URL(o), L = document.createElement("style");
118
- fetch(a.href).then((y) => y.text()).then((y) => {
119
- L.innerHTML = y, setTimeout(
120
- () => {
121
- l.appendChild(L);
122
- },
123
- 1
124
- );
125
- });
114
+ i(2, a = !M(r));
126
115
  };
127
- j(() => (window.addEventListener("message", h, !1), () => {
128
- window.removeEventListener("message", h);
116
+ F(() => (window.addEventListener("message", y, !1), () => {
117
+ window.removeEventListener("message", y);
129
118
  }));
130
- const W = () => d(), q = () => d();
131
- function B(a) {
132
- A[a ? "unshift" : "push"](() => {
133
- l = a, i(1, l);
119
+ const E = () => p(), W = () => p();
120
+ function q(f) {
121
+ J[f ? "unshift" : "push"](() => {
122
+ d = f, i(1, d);
134
123
  });
135
124
  }
136
- return s.$$set = (a) => {
137
- "clientstyling" in a && i(5, t = a.clientstyling), "clientstylingurl" in a && i(6, o = a.clientstylingurl), "ismobileview" in a && i(7, r = a.ismobileview), "videosrc" in a && i(0, f = a.videosrc);
125
+ return s.$$set = (f) => {
126
+ "clientstyling" in f && i(5, t = f.clientstyling), "clientstylingurl" in f && i(6, o = f.clientstylingurl), "ismobileview" in f && i(7, n = f.ismobileview), "videosrc" in f && i(0, u = f.videosrc), "mbsource" in f && i(8, g = f.mbsource);
138
127
  }, s.$$.update = () => {
139
- s.$$.dirty & /*ismobileview*/
140
- 128 && r && z(), s.$$.dirty & /*clientstyling, customStylingContainer*/
141
- 34 && t && l && E(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
142
- 66 && o && l && D();
143
- }, [
144
- f,
145
- l,
128
+ s.$$.dirty & /*clientstyling, customStylingContainer*/
129
+ 34 && t && d && U(d, t), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
130
+ 66 && o && d && G(d, o), s.$$.dirty & /*mbsource, customStylingContainer*/
131
+ 258 && g && d && I(d, `${g}.Style`);
132
+ }, M(r) && D(), [
146
133
  u,
147
- c,
148
134
  d,
135
+ a,
136
+ c,
137
+ p,
149
138
  t,
150
139
  o,
151
- r,
140
+ n,
141
+ g,
142
+ E,
152
143
  W,
153
- q,
154
- B
144
+ q
155
145
  ];
156
146
  }
157
- class K extends T {
147
+ class Q extends A {
158
148
  constructor(e) {
159
- super(), N(
149
+ super(), B(
160
150
  this,
161
151
  e,
162
- I,
163
- G,
164
- R,
152
+ P,
153
+ O,
154
+ N,
165
155
  {
166
156
  clientstyling: 5,
167
157
  clientstylingurl: 6,
168
158
  ismobileview: 7,
169
- videosrc: 0
159
+ videosrc: 0,
160
+ mbsource: 8
170
161
  },
171
- J
162
+ K
172
163
  );
173
164
  }
174
165
  get clientstyling() {
175
166
  return this.$$.ctx[5];
176
167
  }
177
168
  set clientstyling(e) {
178
- this.$$set({ clientstyling: e }), p();
169
+ this.$$set({ clientstyling: e }), m();
179
170
  }
180
171
  get clientstylingurl() {
181
172
  return this.$$.ctx[6];
182
173
  }
183
174
  set clientstylingurl(e) {
184
- this.$$set({ clientstylingurl: e }), p();
175
+ this.$$set({ clientstylingurl: e }), m();
185
176
  }
186
177
  get ismobileview() {
187
178
  return this.$$.ctx[7];
188
179
  }
189
180
  set ismobileview(e) {
190
- this.$$set({ ismobileview: e }), p();
181
+ this.$$set({ ismobileview: e }), m();
191
182
  }
192
183
  get videosrc() {
193
184
  return this.$$.ctx[0];
194
185
  }
195
186
  set videosrc(e) {
196
- this.$$set({ videosrc: e }), p();
187
+ this.$$set({ videosrc: e }), m();
188
+ }
189
+ get mbsource() {
190
+ return this.$$.ctx[8];
191
+ }
192
+ set mbsource(e) {
193
+ this.$$set({ mbsource: e }), m();
197
194
  }
198
195
  }
199
- F(K, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
196
+ R(Q, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {}, mbsource: {} }, [], [], !0);
200
197
  export {
201
- K as default
198
+ Q as default
202
199
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-DMmJumcl.cjs"),m=require("./CashierIframeRedirect-BARMuRTc.cjs"),C=require("./CashierMethodDetails-Cf6KUGlj.cjs");function V(l){e.append_styles(l,"svelte-1d17c9c",".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}")}function w(l){let t,i,s,n,o,f,h,r=!l[2]&&v(l),a=l[2]&&_(l);return{c(){t=e.element("div"),r&&r.c(),i=e.space(),s=e.element("div"),a&&a.c(),n=e.space(),o=e.element("video"),f=e.element("source"),e.src_url_equal(f.src,h=l[0])||e.attr(f,"src",h),o.autoplay=!0,o.controls=!0,e.attr(o,"controlslist","nodownload"),e.attr(o,"disablepictureinpicture",""),e.attr(s,"class","CashierVideo"),e.attr(t,"class","CashierVideoWrapper"),e.toggle_class(t,"CashierVideoWrapperDesktop",l[2])},m(c,d){e.insert(c,t,d),r&&r.m(t,null),e.append(t,i),e.append(t,s),a&&a.m(s,null),e.append(s,n),e.append(s,o),e.append(o,f),l[11](t)},p(c,d){c[2]?r&&(r.d(1),r=null):r?r.p(c,d):(r=v(c),r.c(),r.m(t,i)),c[2]?a?a.p(c,d):(a=_(c),a.c(),a.m(s,n)):a&&(a.d(1),a=null),d&1&&!e.src_url_equal(f.src,h=c[0])&&e.attr(f,"src",h),d&4&&e.toggle_class(t,"CashierVideoWrapperDesktop",c[2])},d(c){c&&e.detach(t),r&&r.d(),a&&a.d(),l[11](null)}}}function v(l){let t,i,s,n,o;return{c(){t=e.element("div"),i=e.svg_element("svg"),s=e.svg_element("path"),e.attr(s,"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"),e.attr(s,"fill","#111111"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","13"),e.attr(i,"height","13"),e.attr(i,"viewBox","0 0 13 13"),e.attr(i,"fill","none"),e.attr(t,"class","CashierVideoHeader")},m(f,h){e.insert(f,t,h),e.append(t,i),e.append(i,s),n||(o=e.listen(i,"click",l[9]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,o()}}}function _(l){let t,i,s,n;return{c(){t=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"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"),e.attr(i,"fill","#111111"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"width","13"),e.attr(t,"height","13"),e.attr(t,"viewBox","0 0 13 13"),e.attr(t,"fill","none")},m(o,f){e.insert(o,t,f),e.append(t,i),s||(n=e.listen(t,"click",l[10]),s=!0)},p:e.noop,d(o){o&&e.detach(t),s=!1,n()}}}function S(l){let t,i=l[3]&&w(l);return{c(){i&&i.c(),t=e.empty()},m(s,n){i&&i.m(s,n),e.insert(s,t,n)},p(s,[n]){s[3]?i?i.p(s,n):(i=w(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(s){s&&e.detach(t),i&&i.d(s)}}}function q(l,t,i){let{clientstyling:s=""}=t,{clientstylingurl:n=""}=t,{ismobileview:o}=t,{videosrc:f}=t,{mbsource:h=""}=t,r=window.navigator.userAgent,a=!0,c=!1,d;const g=()=>{i(3,c=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},p=u=>{u.data.type=="ShowCashierVideoModal"&&(i(3,c=!0),window.postMessage({type:"DisableScroll"},window.location.href)),u.data.type=="HideCashierVideoModal"&&g()},y=()=>{i(2,a=!C.isMobile(r))};e.onMount(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)}));const L=()=>g(),k=()=>g();function M(u){e.binding_callbacks[u?"unshift":"push"](()=>{d=u,i(1,d)})}return l.$$set=u=>{"clientstyling"in u&&i(5,s=u.clientstyling),"clientstylingurl"in u&&i(6,n=u.clientstylingurl),"ismobileview"in u&&i(7,o=u.ismobileview),"videosrc"in u&&i(0,f=u.videosrc),"mbsource"in u&&i(8,h=u.mbsource)},l.$$.update=()=>{l.$$.dirty&34&&s&&d&&m.setClientStyling(d,s),l.$$.dirty&66&&n&&d&&m.setClientStylingURL(d,n),l.$$.dirty&258&&h&&d&&m.setStreamStyling(d,`${h}.Style`)},C.isMobile(r)&&y(),[f,d,a,c,g,s,n,o,h,L,k,M]}class b extends e.SvelteComponent{constructor(t){super(),e.init(this,t,q,S,e.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0,mbsource:8},V)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),e.flush()}get mbsource(){return this.$$.ctx[8]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(b,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{},mbsource:{}},[],[],!0);exports.default=b;
@@ -1,202 +1,199 @@
1
- import { S as T, b as N, s as R, f as p, c as U, n as m, e as v, m as _, x as Z, H as j, C as b, v as n, J as k, o as g, p as C, q as V, A, B as H, N as w, E as F } from "./CashierConfirmModal-4RYp7Eiq.js";
2
- function J(s) {
3
- U(s, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
1
+ import { S as A, b as B, s as N, f as m, c as Z, n as p, e as b, l as _, w as j, F, B as L, q as l, J as k, m as h, o as C, p as V, z as J, A as H, N as v, E as R } from "./CashierConfirmModal-DXlKhIue.js";
2
+ import { s as U, a as G, b as I } from "./CashierIframeRedirect-Xzpx4Rjk.js";
3
+ import { i as M } from "./CashierMethodDetails-DaUlJ18Q.js";
4
+ function K(s) {
5
+ Z(s, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
4
6
  }
5
- function M(s) {
6
- let e, i, t, o, r, f, u, c = !/*desktopView*/
7
- s[2] && S(s), l = (
7
+ function S(s) {
8
+ let e, i, t, o, n, u, g, r = !/*desktopView*/
9
+ s[2] && x(s), a = (
8
10
  /*desktopView*/
9
- s[2] && x(s)
11
+ s[2] && z(s)
10
12
  );
11
13
  return {
12
14
  c() {
13
- e = C("div"), c && c.c(), i = V(), t = C("div"), l && l.c(), o = V(), r = C("video"), f = C("source"), b(f.src, u = /*videosrc*/
14
- s[0]) || n(f, "src", u), r.autoplay = !0, r.controls = !0, n(r, "controlslist", "nodownload"), n(r, "disablepictureinpicture", ""), n(t, "class", "CashierVideo"), n(e, "class", "CashierVideoWrapper"), n(e, "part", "CustomStylingContainer"), k(
15
+ e = C("div"), r && r.c(), i = V(), t = C("div"), a && a.c(), o = V(), n = C("video"), u = C("source"), L(u.src, g = /*videosrc*/
16
+ s[0]) || l(u, "src", g), n.autoplay = !0, n.controls = !0, l(n, "controlslist", "nodownload"), l(n, "disablepictureinpicture", ""), l(t, "class", "CashierVideo"), l(e, "class", "CashierVideoWrapper"), k(
15
17
  e,
16
18
  "CashierVideoWrapperDesktop",
17
19
  /*desktopView*/
18
20
  s[2]
19
21
  );
20
22
  },
21
- m(d, h) {
22
- _(d, e, h), c && c.m(e, null), g(e, i), g(e, t), l && l.m(t, null), g(t, o), g(t, r), g(r, f), s[10](e);
23
+ m(c, d) {
24
+ _(c, e, d), r && r.m(e, null), h(e, i), h(e, t), a && a.m(t, null), h(t, o), h(t, n), h(n, u), s[11](e);
23
25
  },
24
- p(d, h) {
26
+ p(c, d) {
25
27
  /*desktopView*/
26
- d[2] ? c && (c.d(1), c = null) : c ? c.p(d, h) : (c = S(d), c.c(), c.m(e, i)), /*desktopView*/
27
- d[2] ? l ? l.p(d, h) : (l = x(d), l.c(), l.m(t, o)) : l && (l.d(1), l = null), h & /*videosrc*/
28
- 1 && !b(f.src, u = /*videosrc*/
29
- d[0]) && n(f, "src", u), h & /*desktopView*/
28
+ c[2] ? r && (r.d(1), r = null) : r ? r.p(c, d) : (r = x(c), r.c(), r.m(e, i)), /*desktopView*/
29
+ c[2] ? a ? a.p(c, d) : (a = z(c), a.c(), a.m(t, o)) : a && (a.d(1), a = null), d & /*videosrc*/
30
+ 1 && !L(u.src, g = /*videosrc*/
31
+ c[0]) && l(u, "src", g), d & /*desktopView*/
30
32
  4 && k(
31
33
  e,
32
34
  "CashierVideoWrapperDesktop",
33
35
  /*desktopView*/
34
- d[2]
36
+ c[2]
35
37
  );
36
38
  },
37
- d(d) {
38
- d && v(e), c && c.d(), l && l.d(), s[10](null);
39
+ d(c) {
40
+ c && b(e), r && r.d(), a && a.d(), s[11](null);
39
41
  }
40
42
  };
41
43
  }
42
- function S(s) {
43
- let e, i, t, o, r;
44
+ function x(s) {
45
+ let e, i, t, o, n;
44
46
  return {
45
47
  c() {
46
- e = C("div"), i = w("svg"), t = w("path"), n(t, "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"), n(t, "fill", "#111111"), n(i, "xmlns", "http://www.w3.org/2000/svg"), n(i, "width", "13"), n(i, "height", "13"), n(i, "viewBox", "0 0 13 13"), n(i, "fill", "none"), n(e, "class", "CashierVideoHeader");
48
+ e = C("div"), i = v("svg"), t = v("path"), l(t, "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"), l(t, "fill", "#111111"), l(i, "xmlns", "http://www.w3.org/2000/svg"), l(i, "width", "13"), l(i, "height", "13"), l(i, "viewBox", "0 0 13 13"), l(i, "fill", "none"), l(e, "class", "CashierVideoHeader");
47
49
  },
48
- m(f, u) {
49
- _(f, e, u), g(e, i), g(i, t), o || (r = H(
50
+ m(u, g) {
51
+ _(u, e, g), h(e, i), h(i, t), o || (n = H(
50
52
  i,
51
53
  "click",
52
54
  /*click_handler*/
53
- s[8]
55
+ s[9]
54
56
  ), o = !0);
55
57
  },
56
- p: m,
57
- d(f) {
58
- f && v(e), o = !1, r();
58
+ p,
59
+ d(u) {
60
+ u && b(e), o = !1, n();
59
61
  }
60
62
  };
61
63
  }
62
- function x(s) {
64
+ function z(s) {
63
65
  let e, i, t, o;
64
66
  return {
65
67
  c() {
66
- e = w("svg"), i = w("path"), n(i, "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"), n(i, "fill", "#111111"), n(e, "xmlns", "http://www.w3.org/2000/svg"), n(e, "width", "13"), n(e, "height", "13"), n(e, "viewBox", "0 0 13 13"), n(e, "fill", "none");
68
+ e = v("svg"), i = v("path"), l(i, "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"), l(i, "fill", "#111111"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "width", "13"), l(e, "height", "13"), l(e, "viewBox", "0 0 13 13"), l(e, "fill", "none");
67
69
  },
68
- m(r, f) {
69
- _(r, e, f), g(e, i), t || (o = H(
70
+ m(n, u) {
71
+ _(n, e, u), h(e, i), t || (o = H(
70
72
  e,
71
73
  "click",
72
74
  /*click_handler_1*/
73
- s[9]
75
+ s[10]
74
76
  ), t = !0);
75
77
  },
76
- p: m,
77
- d(r) {
78
- r && v(e), t = !1, o();
78
+ p,
79
+ d(n) {
80
+ n && b(e), t = !1, o();
79
81
  }
80
82
  };
81
83
  }
82
- function G(s) {
84
+ function O(s) {
83
85
  let e, i = (
84
86
  /*show*/
85
- s[3] && M(s)
87
+ s[3] && S(s)
86
88
  );
87
89
  return {
88
90
  c() {
89
- i && i.c(), e = Z();
91
+ i && i.c(), e = j();
90
92
  },
91
93
  m(t, o) {
92
94
  i && i.m(t, o), _(t, e, o);
93
95
  },
94
96
  p(t, [o]) {
95
97
  /*show*/
96
- t[3] ? i ? i.p(t, o) : (i = M(t), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
98
+ t[3] ? i ? i.p(t, o) : (i = S(t), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
97
99
  },
98
- i: m,
99
- o: m,
100
+ i: p,
101
+ o: p,
100
102
  d(t) {
101
- t && v(e), i && i.d(t);
103
+ t && b(e), i && i.d(t);
102
104
  }
103
105
  };
104
106
  }
105
- function I(s, e, i) {
106
- let { clientstyling: t = "" } = e, { clientstylingurl: o = "" } = e, { ismobileview: r } = e, { videosrc: f } = e, u = !0, c = !1, l;
107
- const d = () => {
107
+ function P(s, e, i) {
108
+ let { clientstyling: t = "" } = e, { clientstylingurl: o = "" } = e, { ismobileview: n } = e, { videosrc: u } = e, { mbsource: g = "" } = e, r = window.navigator.userAgent, a = !0, c = !1, d;
109
+ const w = () => {
108
110
  i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
109
- }, h = (a) => {
110
- a.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
111
- }, E = () => {
112
- i(2, u = r === "false");
113
- }, z = () => {
114
- let a = document.createElement("style");
115
- a.innerHTML = t, l.appendChild(a);
111
+ }, y = (f) => {
112
+ f.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), f.data.type == "HideCashierVideoModal" && w();
116
113
  }, D = () => {
117
- let a = new URL(o), L = document.createElement("style");
118
- fetch(a.href).then((y) => y.text()).then((y) => {
119
- L.innerHTML = y, setTimeout(
120
- () => {
121
- l.appendChild(L);
122
- },
123
- 1
124
- );
125
- });
114
+ i(2, a = !M(r));
126
115
  };
127
- j(() => (window.addEventListener("message", h, !1), () => {
128
- window.removeEventListener("message", h);
116
+ F(() => (window.addEventListener("message", y, !1), () => {
117
+ window.removeEventListener("message", y);
129
118
  }));
130
- const W = () => d(), q = () => d();
131
- function B(a) {
132
- A[a ? "unshift" : "push"](() => {
133
- l = a, i(1, l);
119
+ const E = () => w(), W = () => w();
120
+ function q(f) {
121
+ J[f ? "unshift" : "push"](() => {
122
+ d = f, i(1, d);
134
123
  });
135
124
  }
136
- return s.$$set = (a) => {
137
- "clientstyling" in a && i(5, t = a.clientstyling), "clientstylingurl" in a && i(6, o = a.clientstylingurl), "ismobileview" in a && i(7, r = a.ismobileview), "videosrc" in a && i(0, f = a.videosrc);
125
+ return s.$$set = (f) => {
126
+ "clientstyling" in f && i(5, t = f.clientstyling), "clientstylingurl" in f && i(6, o = f.clientstylingurl), "ismobileview" in f && i(7, n = f.ismobileview), "videosrc" in f && i(0, u = f.videosrc), "mbsource" in f && i(8, g = f.mbsource);
138
127
  }, s.$$.update = () => {
139
- s.$$.dirty & /*ismobileview*/
140
- 128 && r && E(), s.$$.dirty & /*clientstyling, customStylingContainer*/
141
- 34 && t && l && z(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
142
- 66 && o && l && D();
143
- }, [
144
- f,
145
- l,
128
+ s.$$.dirty & /*clientstyling, customStylingContainer*/
129
+ 34 && t && d && U(d, t), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
130
+ 66 && o && d && G(d, o), s.$$.dirty & /*mbsource, customStylingContainer*/
131
+ 258 && g && d && I(d, `${g}.Style`);
132
+ }, M(r) && D(), [
146
133
  u,
147
- c,
148
134
  d,
135
+ a,
136
+ c,
137
+ w,
149
138
  t,
150
139
  o,
151
- r,
140
+ n,
141
+ g,
142
+ E,
152
143
  W,
153
- q,
154
- B
144
+ q
155
145
  ];
156
146
  }
157
- class K extends T {
147
+ class Q extends A {
158
148
  constructor(e) {
159
- super(), N(
149
+ super(), B(
160
150
  this,
161
151
  e,
162
- I,
163
- G,
164
- R,
152
+ P,
153
+ O,
154
+ N,
165
155
  {
166
156
  clientstyling: 5,
167
157
  clientstylingurl: 6,
168
158
  ismobileview: 7,
169
- videosrc: 0
159
+ videosrc: 0,
160
+ mbsource: 8
170
161
  },
171
- J
162
+ K
172
163
  );
173
164
  }
174
165
  get clientstyling() {
175
166
  return this.$$.ctx[5];
176
167
  }
177
168
  set clientstyling(e) {
178
- this.$$set({ clientstyling: e }), p();
169
+ this.$$set({ clientstyling: e }), m();
179
170
  }
180
171
  get clientstylingurl() {
181
172
  return this.$$.ctx[6];
182
173
  }
183
174
  set clientstylingurl(e) {
184
- this.$$set({ clientstylingurl: e }), p();
175
+ this.$$set({ clientstylingurl: e }), m();
185
176
  }
186
177
  get ismobileview() {
187
178
  return this.$$.ctx[7];
188
179
  }
189
180
  set ismobileview(e) {
190
- this.$$set({ ismobileview: e }), p();
181
+ this.$$set({ ismobileview: e }), m();
191
182
  }
192
183
  get videosrc() {
193
184
  return this.$$.ctx[0];
194
185
  }
195
186
  set videosrc(e) {
196
- this.$$set({ videosrc: e }), p();
187
+ this.$$set({ videosrc: e }), m();
188
+ }
189
+ get mbsource() {
190
+ return this.$$.ctx[8];
191
+ }
192
+ set mbsource(e) {
193
+ this.$$set({ mbsource: e }), m();
197
194
  }
198
195
  }
199
- F(K, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
196
+ R(Q, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {}, mbsource: {} }, [], [], !0);
200
197
  export {
201
- K as default
198
+ Q as default
202
199
  };