@everymatrix/cashier-page 1.69.3 → 1.69.69

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 (121) hide show
  1. package/components/CashierCarousel-D5kSWky0.cjs +23 -0
  2. package/components/CashierCarousel-DYqTne2y.js +5414 -0
  3. package/components/CashierCarousel-dZ9EcCOe.js +5377 -0
  4. package/components/CashierError-B5w8w6dD.js +438 -0
  5. package/components/CashierError-DNuC45d1.cjs +1 -0
  6. package/components/CashierError-eMZ_Y8Lb.js +438 -0
  7. package/components/CashierHeader-BHNvb1-z.js +397 -0
  8. package/components/CashierHeader-BovGOLQY.js +397 -0
  9. package/components/CashierHeader-DdCbhGSh.cjs +1 -0
  10. package/components/CashierIframeRedirect-BEiwv80W.js +398 -0
  11. package/components/CashierIframeRedirect-BXHKd8sC.cjs +1 -0
  12. package/components/CashierIframeRedirect-ZwVoUTMf.js +398 -0
  13. package/components/CashierMethodDetails-9BeLdmpe.js +8885 -0
  14. package/components/CashierMethodDetails-CW7C8Yvb.js +8904 -0
  15. package/components/CashierMethodDetails-DUa6HCpd.cjs +85 -0
  16. package/components/CashierMethodsList-BTVaeHdg.js +745 -0
  17. package/components/CashierMethodsList-DylKurFC.cjs +1 -0
  18. package/components/CashierMethodsList-PWU1R3Tc.js +733 -0
  19. package/components/CashierModal-C8mj7URo.js +268 -0
  20. package/components/CashierModal-D9NmY7iy.js +268 -0
  21. package/components/CashierModal-R8kFj8iv.cjs +1 -0
  22. package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BngpK8X4.js} +11 -11
  23. package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-CX7SdGzZ.js} +12 -12
  24. package/components/CashierNotifications-CkPy_2A7.cjs +1 -0
  25. package/components/CashierPage-C6pByXUA.cjs +1 -0
  26. package/components/CashierPage-CstDhtmy.js +2674 -0
  27. package/components/CashierPage-DNab5cLz.js +2674 -0
  28. package/components/CashierReceiptPage-BvZCrXxs.js +1693 -0
  29. package/components/CashierReceiptPage-DsXAwatG.cjs +26 -0
  30. package/components/CashierReceiptPage-unBbB_Jc.js +1689 -0
  31. package/components/CashierSessionExpirationModal-BkVXKSAN.js +1184 -0
  32. package/components/CashierSessionExpirationModal-CpXjSA8u.cjs +2 -0
  33. package/components/CashierSessionExpirationModal-DoZltJgp.js +1184 -0
  34. package/components/CashierSpinner-BEoR90rw.js +78 -0
  35. package/components/CashierSpinner-Bkz2A3Ui.cjs +1 -0
  36. package/components/CashierSpinner-CrIWXsSn.js +78 -0
  37. package/components/CashierTransactionHistory-CnEbhq5N.cjs +1 -0
  38. package/components/CashierTransactionHistory-G-40651N.js +1305 -0
  39. package/components/CashierTransactionHistory-gR1A2f4c.js +1305 -0
  40. package/components/CashierVerifications-4yAcpmBG.js +597 -0
  41. package/components/CashierVerifications-DWfYckzB.cjs +1 -0
  42. package/components/CashierVerifications-dp3vSO1J.js +601 -0
  43. package/components/TxnStatusIcon-Bgj9uqou.cjs +1 -0
  44. package/components/TxnStatusIcon-DPAn1ZlZ.js +142 -0
  45. package/components/TxnStatusIcon-DqWUwgBR.js +142 -0
  46. package/components/TxnTypeIcons-BveshEiq.js +101 -0
  47. package/components/TxnTypeIcons-C4h0GmqA.js +101 -0
  48. package/components/TxnTypeIcons-CBpa5s-y.cjs +1 -0
  49. package/es2015/cashier-page.cjs +1 -1
  50. package/es2015/cashier-page.js +1 -1
  51. package/esnext/cashier-page.js +1 -1
  52. package/package.json +1 -1
  53. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  54. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
  55. package/stencil/{index-97d17652-D6HPqRtr.js → index-97d17652--F7PvMq9.js} +2 -2
  56. package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
  57. package/stencil/{index-97d17652-B0NIExnR.js → index-97d17652-CCFHkzJw.js} +2 -2
  58. package/stencil/index-b2193545-B8kMF2bI.cjs +1 -0
  59. package/stencil/index-b2193545-BoSqyMpB.js +519 -0
  60. package/stencil/index-b2193545-D4dOaNlR.js +503 -0
  61. package/stencil/{ui-image-DfVgiF6v.js → ui-image-BWJXFWH1.js} +2 -2
  62. package/stencil/{ui-image-DJSOH8ZL.cjs → ui-image-ByEXiBzx.cjs} +1 -1
  63. package/stencil/{ui-image-BY8ZO6br.js → ui-image-DIEeZy5u.js} +2 -2
  64. package/stencil/{ui-image-b7b48fe5-BXmf73Ou.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
  65. package/stencil/{ui-image-b7b48fe5-c0NIgcTj.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
  66. package/stencil/{ui-image-b7b48fe5-DaWM2RbJ.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
  67. package/stencil/{ui-image_2-L-CYescb.js → ui-image_2-Bm97-wkj.js} +2 -2
  68. package/stencil/{ui-image_2-Cdo33umq.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
  69. package/stencil/{ui-image_2-DbQ7SENq.js → ui-image_2-qO3reSlr.js} +2 -2
  70. package/stencil/ui-skeleton-4-zrLsIW.js +11 -0
  71. package/stencil/ui-skeleton-9boHSjtG.js +29 -0
  72. package/stencil/ui-skeleton-_yJvAdAL.cjs +1 -0
  73. package/stencil/ui-skeleton-ae35c6f2-8tYGV8SR.js +155 -0
  74. package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +55 -0
  75. package/stencil/ui-skeleton-ae35c6f2-IN_dPA5_.js +155 -0
  76. package/components/CashierConfirmModal-4RYp7Eiq.js +0 -1120
  77. package/components/CashierConfirmModal-DMmJumcl.cjs +0 -4
  78. package/components/CashierConfirmModal-untxGhsx.js +0 -1083
  79. package/components/CashierError-B3QY-Z04.js +0 -3800
  80. package/components/CashierError-B9QN5m8g.cjs +0 -5
  81. package/components/CashierError-lJcr3S9j.js +0 -3800
  82. package/components/CashierHeader-0a_PwGVg.js +0 -401
  83. package/components/CashierHeader-6fDSkiu1.js +0 -401
  84. package/components/CashierHeader-BWRxu_17.cjs +0 -1
  85. package/components/CashierIframeRedirect-2c-BnFeJ.js +0 -378
  86. package/components/CashierIframeRedirect-Bxe3aDw_.js +0 -378
  87. package/components/CashierIframeRedirect-DnE9lXCw.cjs +0 -1
  88. package/components/CashierMethodDetails-C-Ut2IGe.js +0 -8295
  89. package/components/CashierMethodDetails-CoqrsZpI.cjs +0 -83
  90. package/components/CashierMethodDetails-rfZY5K0e.js +0 -8281
  91. package/components/CashierMethodsList-BamQMAO0.js +0 -864
  92. package/components/CashierMethodsList-C6e55bjb.js +0 -852
  93. package/components/CashierMethodsList-Cr6mhrvJ.cjs +0 -1
  94. package/components/CashierModal-BrwIBn9a.js +0 -232
  95. package/components/CashierModal-BuM2Yq-y.cjs +0 -1
  96. package/components/CashierModal-ZfKvGxFq.js +0 -232
  97. package/components/CashierNotifications-BLJS7gpv.cjs +0 -1
  98. package/components/CashierPage-BJlHrw66.js +0 -2202
  99. package/components/CashierPage-BoEfCJ8r.cjs +0 -1
  100. package/components/CashierPage-CaP6odYj.js +0 -2202
  101. package/components/CashierReceiptPage-B2GSh9vv.js +0 -1172
  102. package/components/CashierReceiptPage-BVS0odD-.cjs +0 -1
  103. package/components/CashierReceiptPage-BlVH86DW.js +0 -1174
  104. package/components/CashierSessionExpirationModal-BicBzpY2.cjs +0 -2
  105. package/components/CashierSessionExpirationModal-BxNZq7Gf.js +0 -1208
  106. package/components/CashierSessionExpirationModal-DSBOAXLu.js +0 -1208
  107. package/components/CashierSpinner-BAfTKICK.js +0 -71
  108. package/components/CashierSpinner-BhmndmKG.cjs +0 -1
  109. package/components/CashierSpinner-y6HodxHT.js +0 -71
  110. package/components/CashierTransactionHistory-BJNXnfke.js +0 -569
  111. package/components/CashierTransactionHistory-CuT5mUVX.js +0 -569
  112. package/components/CashierTransactionHistory-xR2Md4Br.cjs +0 -1
  113. package/components/CashierVerifications-CTbLuZeN.js +0 -623
  114. package/components/CashierVerifications-DbJJiIau.cjs +0 -1
  115. package/components/CashierVerifications-DnLBDkUg.js +0 -619
  116. package/components/CashierVideoModal-BZg_b6bd.cjs +0 -1
  117. package/components/CashierVideoModal-CVDvqrcy.js +0 -202
  118. package/components/CashierVideoModal-DHNu0BQz.js +0 -202
  119. package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
  120. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
  121. package/stencil/index-97d17652-DNpK20ur.cjs +0 -1
@@ -1,619 +0,0 @@
1
- import { S as Te, b as Oe, s as Me, f as y, c as Be, n as J, e as D, J as T, l as C, o as w, q as V, v as Z, K as X, L as Le, C as b, p as A, z as xe, m as k, A as U, x as qe, y as Fe, E as ze } from "./CashierConfirmModal-untxGhsx.js";
2
- import { a as Ie, i as Ee, $ as Re, b as Ue } from "./CashierError-B3QY-Z04.js";
3
- import { d as Q, u as He, x as Ne } from "./CashierMethodDetails-rfZY5K0e.js";
4
- function $(t, i) {
5
- Ie(t, i);
6
- }
7
- function je(t) {
8
- Ee({
9
- fallbackLocale: "en"
10
- }), Re.set(t);
11
- }
12
- const ee = {
13
- en: {
14
- "verification.video.how-to": "How to verify yourself",
15
- "verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
16
- "verification.message.failed": "We apologize, but we were unable to verify your account. Please contact support team",
17
- "verification.idenfy.link-name": "link",
18
- "verification.idenfy.in-progress": "To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification",
19
- "verification.shuftipro.in-progress.Biometric": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.",
20
- "verification.shuftipro.in-progress.Biometric.Documents": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.",
21
- "verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.",
22
- "verification.shuftipro.in-progress.Biometric.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.",
23
- "verification.shuftipro.in-progress.Documents": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.",
24
- "verification.shuftipro.in-progress.Documents.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.",
25
- "verification.shuftipro.in-progress.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.",
26
- "verification.shuftipro.link-name.Biometric": "Biometric",
27
- "verification.shuftipro.link-name.Documents": "Documents",
28
- "verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
29
- "verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
30
- },
31
- tr: {
32
- "verification.video.how-to": "Kimlik doğrulama nasıl yapılır",
33
- "verification.idenfy.referred-awaiting": "Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz",
34
- "verification.message.failed": "Döküman doğrulama başarısız, hesabınız doğrulanamadı",
35
- "verification.idenfy.link-name": "link",
36
- "verification.idenfy.in-progress": "Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın",
37
- "verification.shuftipro.in-progress.Biometric": "İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}",
38
- "verification.shuftipro.in-progress.Biometric.Documents": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.",
39
- "verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.",
40
- "verification.shuftipro.in-progress.Biometric.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.",
41
- "verification.shuftipro.in-progress.Documents": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.",
42
- "verification.shuftipro.in-progress.Documents.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.",
43
- "verification.shuftipro.in-progress.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.",
44
- "verification.shuftipro.link-name.Biometric": "Doğrulama Yap",
45
- "verification.shuftipro.link-name.Documents": "Documents",
46
- "verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
47
- "verification.shuftipro.validations-started": "Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"
48
- },
49
- hr: {
50
- "verification.video.how-to": "How to verify yourself",
51
- "verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
52
- "verification.message.failed": "We apologize, but we were unable to verify your account. Please contact support team",
53
- "verification.idenfy.link-name": "link",
54
- "verification.idenfy.in-progress": "To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification",
55
- "verification.shuftipro.in-progress.Biometric": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.",
56
- "verification.shuftipro.in-progress.Biometric.Documents": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.",
57
- "verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.",
58
- "verification.shuftipro.in-progress.Biometric.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.",
59
- "verification.shuftipro.in-progress.Documents": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.",
60
- "verification.shuftipro.in-progress.Documents.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.",
61
- "verification.shuftipro.in-progress.ProofOfAddress": "To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.",
62
- "verification.shuftipro.link-name.Biometric": "Biometric",
63
- "verification.shuftipro.link-name.Documents": "Documents",
64
- "verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
65
- "verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
66
- }
67
- };
68
- if (typeof window < "u") {
69
- let t = function(i) {
70
- return function(...o) {
71
- try {
72
- return i.apply(this, o);
73
- } catch (n) {
74
- if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
75
- return !1;
76
- throw n;
77
- }
78
- };
79
- };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-CVDvqrcy.js").then(({ default: i }) => {
81
- !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
82
- });
83
- }
84
- function We(t) {
85
- Be(t, "svelte-1emynn4", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
86
- }
87
- function ie(t, i, o) {
88
- const n = t.slice();
89
- return n[52] = i[o], n[54] = o, n;
90
- }
91
- function te(t) {
92
- let i, o, n, c, d = X(
93
- /*displayMessages*/
94
- t[4]
95
- ), f = [];
96
- for (let a = 0; a < d.length; a += 1)
97
- f[a] = re(ie(t, d, a));
98
- let h = (
99
- /*videoExists*/
100
- t[7] && se(t)
101
- );
102
- return {
103
- c() {
104
- i = w("div");
105
- for (let a = 0; a < f.length; a += 1)
106
- f[a].c();
107
- o = A(), h && h.c(), n = A(), c = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), b(
108
- c,
109
- "clientstylingurl",
110
- /*clientstylingurl*/
111
- t[1]
112
- ), b(
113
- c,
114
- "clientstyling",
115
- /*clientstyling*/
116
- t[0]
117
- ), b(
118
- c,
119
- "ismobileview",
120
- /*ismobileview*/
121
- t[2]
122
- ), b(
123
- c,
124
- "videosrc",
125
- /*videoSrc*/
126
- t[8]
127
- );
128
- },
129
- m(a, u) {
130
- C(a, i, u);
131
- for (let s = 0; s < f.length; s += 1)
132
- f[s] && f[s].m(i, null);
133
- C(a, o, u), h && h.m(a, u), C(a, n, u), C(a, c, u);
134
- },
135
- p(a, u) {
136
- if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
137
- 1072) {
138
- d = X(
139
- /*displayMessages*/
140
- a[4]
141
- );
142
- let s;
143
- for (s = 0; s < d.length; s += 1) {
144
- const P = ie(a, d, s);
145
- f[s] ? f[s].p(P, u) : (f[s] = re(P), f[s].c(), f[s].m(i, null));
146
- }
147
- for (; s < f.length; s += 1)
148
- f[s].d(1);
149
- f.length = d.length;
150
- }
151
- /*videoExists*/
152
- a[7] ? h ? h.p(a, u) : (h = se(a), h.c(), h.m(n.parentNode, n)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
153
- 2 && b(
154
- c,
155
- "clientstylingurl",
156
- /*clientstylingurl*/
157
- a[1]
158
- ), u[0] & /*clientstyling*/
159
- 1 && b(
160
- c,
161
- "clientstyling",
162
- /*clientstyling*/
163
- a[0]
164
- ), u[0] & /*ismobileview*/
165
- 4 && b(
166
- c,
167
- "ismobileview",
168
- /*ismobileview*/
169
- a[2]
170
- ), u[0] & /*videoSrc*/
171
- 256 && b(
172
- c,
173
- "videosrc",
174
- /*videoSrc*/
175
- a[8]
176
- );
177
- },
178
- d(a) {
179
- a && (D(i), D(o), D(n), D(c)), Le(f, a), h && h.d(a);
180
- }
181
- };
182
- }
183
- function oe(t) {
184
- let i, o, n;
185
- function c(...d) {
186
- return (
187
- /*click_handler*/
188
- t[19](
189
- /*index*/
190
- t[54],
191
- ...d
192
- )
193
- );
194
- }
195
- return {
196
- c() {
197
- i = w("span"), i.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', V(i, "class", "CashierVerificationChevron");
198
- },
199
- m(d, f) {
200
- C(d, i, f), o || (n = U(i, "click", c), o = !0);
201
- },
202
- p(d, f) {
203
- t = d;
204
- },
205
- d(d) {
206
- d && D(i), o = !1, n();
207
- }
208
- };
209
- }
210
- function re(t) {
211
- let i, o, n, c, d = (
212
- /*message*/
213
- t[52] + ""
214
- ), f, h, a, u, s = (
215
- /*displayMessages*/
216
- t[4].length > 1 && /*index*/
217
- t[54] === 0 && oe(t)
218
- );
219
- function P(...p) {
220
- return (
221
- /*click_handler_1*/
222
- t[20](
223
- /*index*/
224
- t[54],
225
- ...p
226
- )
227
- );
228
- }
229
- return {
230
- c() {
231
- i = w("div"), o = w("div"), o.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', n = A(), c = w("p"), f = A(), s && s.c(), h = A(), V(o, "class", "IconVerification"), V(c, "class", "text"), V(i, "class", "CashierVerificationMessage"), T(
232
- i,
233
- "ShowAll",
234
- /*allVerificationsVisible*/
235
- t[5]
236
- );
237
- },
238
- m(p, g) {
239
- C(p, i, g), k(i, o), k(i, n), k(i, c), c.innerHTML = d, k(i, f), s && s.m(i, null), k(i, h), a || (u = U(i, "click", P), a = !0);
240
- },
241
- p(p, g) {
242
- t = p, g[0] & /*displayMessages*/
243
- 16 && d !== (d = /*message*/
244
- t[52] + "") && (c.innerHTML = d), /*displayMessages*/
245
- t[4].length > 1 && /*index*/
246
- t[54] === 0 ? s ? s.p(t, g) : (s = oe(t), s.c(), s.m(i, h)) : s && (s.d(1), s = null), g[0] & /*allVerificationsVisible*/
247
- 32 && T(
248
- i,
249
- "ShowAll",
250
- /*allVerificationsVisible*/
251
- t[5]
252
- );
253
- },
254
- d(p) {
255
- p && D(i), s && s.d(), a = !1, u();
256
- }
257
- };
258
- }
259
- function se(t) {
260
- let i, o, n, c, d = (
261
- /*$_*/
262
- t[9]("verification.video.how-to") + ""
263
- ), f, h, a;
264
- return {
265
- c() {
266
- i = w("div"), o = w("div"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', n = A(), c = w("div"), f = Fe(d), V(o, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), T(
267
- c,
268
- "CashierVerificationVideoLinkDesktop",
269
- /*desktopView*/
270
- t[6]
271
- ), V(i, "class", "CashierVerificationVideo");
272
- },
273
- m(u, s) {
274
- C(u, i, s), k(i, o), k(i, n), k(i, c), k(c, f), h || (a = U(
275
- c,
276
- "click",
277
- /*click_handler_2*/
278
- t[21]
279
- ), h = !0);
280
- },
281
- p(u, s) {
282
- s[0] & /*$_*/
283
- 512 && d !== (d = /*$_*/
284
- u[9]("verification.video.how-to") + "") && qe(f, d), s[0] & /*desktopView*/
285
- 64 && T(
286
- c,
287
- "CashierVerificationVideoLinkDesktop",
288
- /*desktopView*/
289
- u[6]
290
- );
291
- },
292
- d(u) {
293
- u && D(i), h = !1, a();
294
- }
295
- };
296
- }
297
- function Ke(t) {
298
- let i, o = (
299
- /*displayMessages*/
300
- t[4] && te(t)
301
- );
302
- return {
303
- c() {
304
- i = w("div"), o && o.c(), V(i, "class", "CashierVerifications"), T(
305
- i,
306
- "CashierVerificationsDesktop",
307
- /*desktopView*/
308
- t[6]
309
- );
310
- },
311
- m(n, c) {
312
- C(n, i, c), o && o.m(i, null), t[22](i);
313
- },
314
- p(n, c) {
315
- /*displayMessages*/
316
- n[4] ? o ? o.p(n, c) : (o = te(n), o.c(), o.m(i, null)) : o && (o.d(1), o = null), c[0] & /*desktopView*/
317
- 64 && T(
318
- i,
319
- "CashierVerificationsDesktop",
320
- /*desktopView*/
321
- n[6]
322
- );
323
- },
324
- i: J,
325
- o: J,
326
- d(n) {
327
- n && D(i), o && o.d(), t[22](null);
328
- }
329
- };
330
- }
331
- const Ye = "verification_explanation_video_widgets.MP4";
332
- function Ge(t, i, o) {
333
- let n, c;
334
- Z(t, Ue, (e) => o(9, n = e)), Z(t, Ne, (e) => o(28, c = e)), Q.extend(He);
335
- let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: s = "" } = i, { customerid: P = "" } = i, { ismobileview: p = "" } = i, { playersession: g = "" } = i, S, H = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set(), B, L, q, F = !0, j = !0, z = !1, I = "";
336
- var O;
337
- (function(e) {
338
- e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
339
- })(O || (O = {}));
340
- var E;
341
- (function(e) {
342
- e.Requested = "Requested";
343
- })(E || (E = {}));
344
- var m;
345
- (function(e) {
346
- e.Unknown = "Unknown", e.Unverified = "Unverified", e.InProgress = "InProgress", e.Failed = "Failed", e.Verified = "Verified", e.Referred = "Referred", e.True = "True", e.False = "False", e.AwaitingForResponse = "AwaitingForResponse";
347
- })(m || (m = {}));
348
- var M;
349
- (function(e) {
350
- e.Unknown = "Unknown", e.Documents = "Documents", e.Age = "Age", e.Pep = "Pep", e.Sanction = "Sanction", e.Aml = "Aml", e.ProofOfAddress = "ProofOfAddress", e.SourceOfWealth = "SourceOfWealth", e.SocialMedia = "SocialMedia", e.Biometric = "Biometric";
351
- })(M || (M = {}));
352
- const ne = [
353
- m.InProgress,
354
- m.Referred,
355
- m.AwaitingForResponse
356
- ], ae = () => {
357
- let e = h;
358
- if (e)
359
- return fetch(e).then((r) => r.json()).then((r) => {
360
- Object.keys(r).forEach((l) => {
361
- $(l, r[l]);
362
- });
363
- }).catch((r) => {
364
- console.log(r);
365
- });
366
- };
367
- Object.keys(ee).forEach((e) => {
368
- $(e, ee[e]);
369
- });
370
- const le = () => {
371
- je(f);
372
- }, ce = () => {
373
- let e = document.createElement("style");
374
- e.innerHTML = a, S.appendChild(e);
375
- }, fe = () => {
376
- let e = new URL(u), r = document.createElement("style");
377
- fetch(e.href).then((l) => l.text()).then((l) => {
378
- r.innerHTML = l, setTimeout(
379
- () => {
380
- S.appendChild(r);
381
- },
382
- 1
383
- );
384
- });
385
- }, W = () => {
386
- o(18, L = ue());
387
- const e = new URL(`${d}/v1/player/${P}/verification/GetKYCCustomerStatus?language=${f}`), r = new Headers();
388
- r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("x-sessionid", `${g}`), r.append("X-Client-Request-Timestamp", Q.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
389
- const l = {
390
- method: "POST",
391
- headers: r,
392
- body: JSON.stringify({})
393
- };
394
- fetch(e, l).then((v) => v.json()).then((v) => {
395
- B = he(v.Verifications), B.VerificationStatuses.forEach((x) => {
396
- x.VerificationUrlType !== "Widget" && H.add(x.Vendor);
397
- }), o(4, q = Y());
398
- });
399
- }, de = () => {
400
- c && W();
401
- }, ue = () => {
402
- let e = (s || c).split(".")[1];
403
- if (e) {
404
- let r = JSON.parse(atob(e));
405
- return r.cdn + "/cashier/operator-assets/" + r?.mid;
406
- }
407
- return "";
408
- }, he = (e) => {
409
- if (!e || !e.length)
410
- return {
411
- VerificationSummaryStatus: m.Unverified,
412
- VerificationStatuses: []
413
- };
414
- const r = pe(e);
415
- if (r && r.length) {
416
- const l = me(r);
417
- return {
418
- VerificationSummaryStatus: l.Status,
419
- VerificationUrl: l.Flags?.DeferredUrlKey,
420
- VerificationStatuses: K(r, l.Status)
421
- };
422
- } else
423
- return {
424
- VerificationSummaryStatus: e.some((v) => v.Status === m.Failed) ? m.Failed : m.Verified,
425
- VerificationStatuses: K(e, [m.Failed])
426
- };
427
- }, me = (e) => e.reduce(
428
- (r, l) => r ? new Date(r) < new Date(l) ? l : r : l,
429
- 0
430
- ), K = (e, r) => e.filter((l) => r.includes(l.Status)).map((l) => ({
431
- Type: l.Type,
432
- Vendor: l.VendorName,
433
- VerificationDocuments: l.Documents ? [...l.Documents] : [],
434
- VerificationUrlType: l.FlowInfo?.Type,
435
- VerificationUrl: l.FlowInfo?.Url
436
- })), pe = (e) => e.filter((r) => ne.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || ge(r) || ve(r) : !1), ge = (e) => {
437
- const r = e.Documents && e.VendorName === O.Manual, l = e.Documents && e.Documents.some((v) => v.Status === E.Requested);
438
- return r && l;
439
- }, ve = (e) => e.VendorName === O.ShuftiPro && e.Status === m.Referred, Y = () => {
440
- switch (B.VerificationSummaryStatus) {
441
- case m.InProgress:
442
- const e = [];
443
- return H.forEach((r) => {
444
- e.push(we(r));
445
- }), e;
446
- case m.Referred:
447
- return [n("verification.idenfy.referred-awaiting")];
448
- case m.Failed:
449
- return [n("verification.message.failed")];
450
- }
451
- }, we = (e) => {
452
- const r = B.VerificationStatuses.filter((l) => l.Vendor === e);
453
- if (e === O.ShuftiPro)
454
- return ye(r);
455
- {
456
- const l = n("verification.idenfy.link-name"), v = {
457
- link: `<a href="${r[0].VerificationUrl}" target="_blank">${l}</a>`
458
- };
459
- return n("verification.idenfy.in-progress", { values: v });
460
- }
461
- }, ye = (e) => {
462
- const r = [], l = {}, v = [
463
- M.Biometric,
464
- M.Documents,
465
- M.ProofOfAddress
466
- ];
467
- e.forEach((_) => {
468
- v.includes(_.Type) && (r.push(_.Type), l[_.Type] = ke(_, Ve(_.Type)));
469
- });
470
- let x = r.every((_) => N.has(_)), Ae = `verification.shuftipro.in-progress.${r.sort().join(".")}`;
471
- return x ? n("verification.shuftipro.validations-started") : n(Ae, { values: l });
472
- }, ke = (e, r) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${r}</a>`, Ve = (e) => n(`verification.shuftipro.link-name.${e}`), R = (e, r) => {
473
- if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
474
- if (e.target.closest(".verificationLink")) {
475
- const l = e.target.className.split(" ")[1];
476
- N.add(l), o(4, q = Y());
477
- }
478
- return;
479
- }
480
- r === 0 && o(5, F = !F);
481
- }, Pe = () => {
482
- o(6, j = p === "false");
483
- }, be = () => {
484
- o(8, I = L + "/" + f + "/" + Ye);
485
- try {
486
- fetch(I, { method: "HEAD" }).then((e) => {
487
- o(7, z = e.ok);
488
- });
489
- } catch {
490
- o(7, z = !1);
491
- }
492
- }, G = () => {
493
- window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
494
- }, De = (e, r) => R(r, e), Ce = (e, r) => R(r, e), Se = () => G();
495
- function _e(e) {
496
- xe[e ? "unshift" : "push"](() => {
497
- S = e, o(3, S);
498
- });
499
- }
500
- return t.$$set = (e) => {
501
- "endpoint" in e && o(12, d = e.endpoint), "lang" in e && o(13, f = e.lang), "translationurl" in e && o(14, h = e.translationurl), "clientstyling" in e && o(0, a = e.clientstyling), "clientstylingurl" in e && o(1, u = e.clientstylingurl), "session" in e && o(15, s = e.session), "customerid" in e && o(16, P = e.customerid), "ismobileview" in e && o(2, p = e.ismobileview), "playersession" in e && o(17, g = e.playersession);
502
- }, t.$$.update = () => {
503
- t.$$.dirty[0] & /*lang*/
504
- 8192 && f && le(), t.$$.dirty[0] & /*endpoint, session, playersession*/
505
- 167936 && d && s && g && W(), t.$$.dirty[0] & /*endpoint, session, playersession*/
506
- 167936 && d && !s && g && de(), t.$$.dirty[0] & /*translationurl*/
507
- 16384 && h && ae(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
508
- 9 && a && S && ce(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
509
- 10 && u && S && fe(), t.$$.dirty[0] & /*ismobileview*/
510
- 4 && p && Pe(), t.$$.dirty[0] & /*staticCdnUrl*/
511
- 262144 && L && be();
512
- }, [
513
- a,
514
- u,
515
- p,
516
- S,
517
- q,
518
- F,
519
- j,
520
- z,
521
- I,
522
- n,
523
- R,
524
- G,
525
- d,
526
- f,
527
- h,
528
- s,
529
- P,
530
- g,
531
- L,
532
- De,
533
- Ce,
534
- Se,
535
- _e
536
- ];
537
- }
538
- class Je extends Te {
539
- constructor(i) {
540
- super(), Oe(
541
- this,
542
- i,
543
- Ge,
544
- Ke,
545
- Me,
546
- {
547
- endpoint: 12,
548
- lang: 13,
549
- translationurl: 14,
550
- clientstyling: 0,
551
- clientstylingurl: 1,
552
- session: 15,
553
- customerid: 16,
554
- ismobileview: 2,
555
- playersession: 17
556
- },
557
- We,
558
- [-1, -1]
559
- );
560
- }
561
- get endpoint() {
562
- return this.$$.ctx[12];
563
- }
564
- set endpoint(i) {
565
- this.$$set({ endpoint: i }), y();
566
- }
567
- get lang() {
568
- return this.$$.ctx[13];
569
- }
570
- set lang(i) {
571
- this.$$set({ lang: i }), y();
572
- }
573
- get translationurl() {
574
- return this.$$.ctx[14];
575
- }
576
- set translationurl(i) {
577
- this.$$set({ translationurl: i }), y();
578
- }
579
- get clientstyling() {
580
- return this.$$.ctx[0];
581
- }
582
- set clientstyling(i) {
583
- this.$$set({ clientstyling: i }), y();
584
- }
585
- get clientstylingurl() {
586
- return this.$$.ctx[1];
587
- }
588
- set clientstylingurl(i) {
589
- this.$$set({ clientstylingurl: i }), y();
590
- }
591
- get session() {
592
- return this.$$.ctx[15];
593
- }
594
- set session(i) {
595
- this.$$set({ session: i }), y();
596
- }
597
- get customerid() {
598
- return this.$$.ctx[16];
599
- }
600
- set customerid(i) {
601
- this.$$set({ customerid: i }), y();
602
- }
603
- get ismobileview() {
604
- return this.$$.ctx[2];
605
- }
606
- set ismobileview(i) {
607
- this.$$set({ ismobileview: i }), y();
608
- }
609
- get playersession() {
610
- return this.$$.ctx[17];
611
- }
612
- set playersession(i) {
613
- this.$$set({ playersession: i }), y();
614
- }
615
- }
616
- ze(Je, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
617
- export {
618
- Je as default
619
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-DMmJumcl.cjs");function M(n){e.append_styles(n,"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 m(n){let t,i,l,o,r,f,u,c=!n[2]&&C(n),s=n[2]&&w(n);return{c(){t=e.element("div"),c&&c.c(),i=e.space(),l=e.element("div"),s&&s.c(),o=e.space(),r=e.element("video"),f=e.element("source"),e.src_url_equal(f.src,u=n[0])||e.attr(f,"src",u),r.autoplay=!0,r.controls=!0,e.attr(r,"controlslist","nodownload"),e.attr(r,"disablepictureinpicture",""),e.attr(l,"class","CashierVideo"),e.attr(t,"class","CashierVideoWrapper"),e.attr(t,"part","CustomStylingContainer"),e.toggle_class(t,"CashierVideoWrapperDesktop",n[2])},m(d,p){e.insert(d,t,p),c&&c.m(t,null),e.append(t,i),e.append(t,l),s&&s.m(l,null),e.append(l,o),e.append(l,r),e.append(r,f),n[10](t)},p(d,p){d[2]?c&&(c.d(1),c=null):c?c.p(d,p):(c=C(d),c.c(),c.m(t,i)),d[2]?s?s.p(d,p):(s=w(d),s.c(),s.m(l,o)):s&&(s.d(1),s=null),p&1&&!e.src_url_equal(f.src,u=d[0])&&e.attr(f,"src",u),p&4&&e.toggle_class(t,"CashierVideoWrapperDesktop",d[2])},d(d){d&&e.detach(t),c&&c.d(),s&&s.d(),n[10](null)}}}function C(n){let t,i,l,o,r;return{c(){t=e.element("div"),i=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"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(l,"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,u){e.insert(f,t,u),e.append(t,i),e.append(i,l),o||(r=e.listen(i,"click",n[8]),o=!0)},p:e.noop,d(f){f&&e.detach(t),o=!1,r()}}}function w(n){let t,i,l,o;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(r,f){e.insert(r,t,f),e.append(t,i),l||(o=e.listen(t,"click",n[9]),l=!0)},p:e.noop,d(r){r&&e.detach(t),l=!1,o()}}}function S(n){let t,i=n[3]&&m(n);return{c(){i&&i.c(),t=e.empty()},m(l,o){i&&i.m(l,o),e.insert(l,t,o)},p(l,[o]){l[3]?i?i.p(l,o):(i=m(l),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),i&&i.d(l)}}}function H(n,t,i){let{clientstyling:l=""}=t,{clientstylingurl:o=""}=t,{ismobileview:r}=t,{videosrc:f}=t,u=!0,c=!1,s;const d=()=>{i(3,c=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},p=a=>{a.data.type=="ShowCashierVideoModal"&&(i(3,c=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierVideoModal"&&d()},_=()=>{i(2,u=r==="false")},y=()=>{let a=document.createElement("style");a.innerHTML=l,s.appendChild(a)},L=()=>{let a=new URL(o),g=document.createElement("style");fetch(a.href).then(h=>h.text()).then(h=>{g.innerHTML=h,setTimeout(()=>{s.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)}));const b=()=>d(),k=()=>d();function V(a){e.binding_callbacks[a?"unshift":"push"](()=>{s=a,i(1,s)})}return n.$$set=a=>{"clientstyling"in a&&i(5,l=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)},n.$$.update=()=>{n.$$.dirty&128&&r&&_(),n.$$.dirty&34&&l&&s&&y(),n.$$.dirty&66&&o&&s&&L()},[f,s,u,c,d,l,o,r,b,k,V]}class v extends e.SvelteComponent{constructor(t){super(),e.init(this,t,H,S,e.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0},M)}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()}}e.create_custom_element(v,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{}},[],[],!0);exports.default=v;