@everymatrix/cashier-page 1.63.2 → 1.64.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 (70) hide show
  1. package/components/{CashierConfirmModal-sI8AKckC.js → CashierConfirmModal-4RYp7Eiq.js} +285 -304
  2. package/components/CashierConfirmModal-DMmJumcl.cjs +4 -0
  3. package/components/{CashierConfirmModal-D-5CwHBA.js → CashierConfirmModal-untxGhsx.js} +152 -171
  4. package/components/{CashierError-ChvIhij4.cjs → CashierError-BD3PpAT9.cjs} +3 -3
  5. package/components/{CashierError-7Ot8GFHL.js → CashierError-DHzuwwQu.js} +4 -3
  6. package/components/{CashierError-Dcf1i1i-.js → CashierError-bKWdh6zs.js} +4 -3
  7. package/components/{CashierHeader-DnmOCyY5.js → CashierHeader-BDMjFf0S.js} +2 -2
  8. package/components/{CashierHeader-Btl5G1aW.js → CashierHeader-C85_EOkn.js} +2 -2
  9. package/components/{CashierHeader-xBZmd3xD.cjs → CashierHeader-DUIiJ1ma.cjs} +1 -1
  10. package/components/{CashierIframeRedirect-iRpGhBuO.js → CashierIframeRedirect-BZxYVcmF.js} +4 -4
  11. package/components/{CashierIframeRedirect-lBzX1iUX.cjs → CashierIframeRedirect-C3fjCJfm.cjs} +1 -1
  12. package/components/{CashierIframeRedirect-_jhy32eh.js → CashierIframeRedirect-CptFS2B0.js} +4 -4
  13. package/components/{CashierMethodDetails-DatXAL1v.js → CashierMethodDetails-B8ZN94ja.js} +2548 -2559
  14. package/components/{CashierMethodDetails-jk5GNqET.js → CashierMethodDetails-L1ZnAwA1.js} +2015 -1998
  15. package/components/CashierMethodDetails-lGOSlmya.cjs +18 -0
  16. package/components/CashierMethodsList-BcBzNfKT.cjs +1 -0
  17. package/components/CashierMethodsList-CNCrMZ4g.js +882 -0
  18. package/components/CashierMethodsList-CmF_WTB-.js +871 -0
  19. package/components/{CashierModal-BoglqxPv.js → CashierModal-BrwIBn9a.js} +14 -14
  20. package/components/{CashierModal-BhCdxWcE.cjs → CashierModal-BuM2Yq-y.cjs} +1 -1
  21. package/components/{CashierModal-6CTryAQJ.js → CashierModal-ZfKvGxFq.js} +11 -11
  22. package/components/{CashierNotifications-BVAanyOB.cjs → CashierNotifications-BLJS7gpv.cjs} +1 -1
  23. package/components/{CashierNotifications-GwlCZVnm.js → CashierNotifications-C48iLynX.js} +1 -1
  24. package/components/{CashierNotifications-BFj3fQud.js → CashierNotifications-dn6rnyK_.js} +1 -1
  25. package/components/CashierPage-B453tZx8.cjs +1 -0
  26. package/components/{CashierPage-V2NAWvNg.js → CashierPage-ClJcMBDB.js} +1128 -1109
  27. package/components/{CashierPage-B1G7PQOG.js → CashierPage-D8D89xo-.js} +1128 -1109
  28. package/components/{CashierReceiptPage-BA00H-2d.cjs → CashierReceiptPage-BO4QXf-M.cjs} +1 -1
  29. package/components/{CashierReceiptPage-CG0IVSDJ.js → CashierReceiptPage-BPED3qt4.js} +21 -27
  30. package/components/{CashierReceiptPage-D4IgTNIg.js → CashierReceiptPage-otjaMyRe.js} +21 -27
  31. package/components/{CashierSessionExpirationModal-CHPU1aRa.js → CashierSessionExpirationModal-BQFyVDBj.js} +430 -428
  32. package/components/CashierSessionExpirationModal-Ckg5tH-9.cjs +2 -0
  33. package/components/{CashierSessionExpirationModal-DV8r-804.js → CashierSessionExpirationModal-DAWM1xQ6.js} +452 -450
  34. package/components/{CashierSpinner-DO1yLcR1.js → CashierSpinner-C-ubAde7.js} +1 -1
  35. package/components/{CashierSpinner-H763izjz.cjs → CashierSpinner-D-uP0nCc.cjs} +1 -1
  36. package/components/{CashierSpinner-bxbp3WK6.js → CashierSpinner-tLPMJx6q.js} +1 -1
  37. package/components/{CashierTransactionHistory-DyQIw9U2.cjs → CashierTransactionHistory-BiM02fXh.cjs} +1 -1
  38. package/components/{CashierTransactionHistory-Dxq24rfR.js → CashierTransactionHistory-Bugs_tmN.js} +13 -13
  39. package/components/{CashierTransactionHistory-DuD_IPSM.js → CashierTransactionHistory-Cd3pN70W.js} +13 -13
  40. package/components/{CashierVerifications-CLeYFnf-.cjs → CashierVerifications-4hUquQj9.cjs} +1 -1
  41. package/components/{CashierVerifications-BXoRLAWe.js → CashierVerifications-BL3E_m40.js} +191 -194
  42. package/components/{CashierVerifications-AI2HHaYS.js → CashierVerifications-Ckv8ml82.js} +208 -211
  43. package/components/CashierVideoModal-BZg_b6bd.cjs +1 -0
  44. package/components/{CashierVideoModal-CVEk7pqo.js → CashierVideoModal-CVDvqrcy.js} +17 -17
  45. package/components/{CashierVideoModal-BGKXfmt9.js → CashierVideoModal-DHNu0BQz.js} +17 -17
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/stencil/{index-97d17652-C616IYj2.js → index-97d17652-BEnqZAxL.js} +1 -1
  51. package/stencil/{index-97d17652-C9Ph2JiE.cjs → index-97d17652-D5_8Vwfn.cjs} +1 -1
  52. package/stencil/{index-97d17652-B8yQdy7J.js → index-97d17652-WK_DbPS4.js} +1 -1
  53. package/stencil/{ui-image-Bz0nQwNJ.cjs → ui-image-CMb1eK44.cjs} +1 -1
  54. package/stencil/{ui-image-DX8NqsyA.js → ui-image-CQQDA5b0.js} +1 -1
  55. package/stencil/{ui-image-o9dMcntc.js → ui-image-CmwNU-jf.js} +1 -1
  56. package/stencil/{ui-image-7da92f1f-26DzsVFt.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +6 -6
  57. package/stencil/ui-image-b7b48fe5-DCck2kk1.cjs +1 -0
  58. package/stencil/{ui-image-7da92f1f-BAghvEDf.js → ui-image-b7b48fe5-V9vp4faA.js} +6 -6
  59. package/stencil/{ui-image_2-Cyqb4u7k.js → ui-image_2-B56t6kXT.js} +2 -2
  60. package/stencil/{ui-image_2-BXgptLvl.js → ui-image_2-BncuYpLi.js} +2 -2
  61. package/stencil/{ui-image_2-Cctik3aF.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
  62. package/components/CashierConfirmModal-BVT51ZOp.cjs +0 -4
  63. package/components/CashierMethodDetails-DLhEFjxf.cjs +0 -18
  64. package/components/CashierMethodsList-C0IZmP3U.js +0 -760
  65. package/components/CashierMethodsList-DfKVl2ns.js +0 -749
  66. package/components/CashierMethodsList-PDEbBRc7.cjs +0 -1
  67. package/components/CashierPage-DuVl1Vzu.cjs +0 -1
  68. package/components/CashierSessionExpirationModal-B3thCy2R.cjs +0 -2
  69. package/components/CashierVideoModal-CjR0Fzuu.cjs +0 -1
  70. package/stencil/ui-image-7da92f1f-BiVBd_OW.cjs +0 -1
@@ -1,760 +0,0 @@
1
- var A2 = Object.defineProperty, T2 = Object.defineProperties;
2
- var P2 = Object.getOwnPropertyDescriptors;
3
- var r2 = Object.getOwnPropertySymbols;
4
- var F2 = Object.prototype.hasOwnProperty, H2 = Object.prototype.propertyIsEnumerable;
5
- var c2 = (t, e, s) => e in t ? A2(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, t2 = (t, e) => {
6
- for (var s in e || (e = {}))
7
- F2.call(e, s) && c2(t, s, e[s]);
8
- if (r2)
9
- for (var s of r2(e))
10
- H2.call(e, s) && c2(t, s, e[s]);
11
- return t;
12
- }, s2 = (t, e) => T2(t, P2(e));
13
- import { S as N2, b as U2, s as B2, f as S, c as z2, n as o2, e as T, m as P, q as E, x as O2, w as j2, Q as W2, H as G2, D as b, p as g, K as m2, L as I2, o as p, v as f, y as x, z as A, A as R2, r as V2, C as Y, J as $, B as i2, E as q2 } from "./CashierConfirmModal-sI8AKckC.js";
14
- import { a as Y2, i as J2, $ as X2, b as K2 } from "./CashierError-Dcf1i1i-.js";
15
- import { d as p2, u as Q2 } from "./CashierMethodDetails-DatXAL1v.js";
16
- function d2(t, e) {
17
- Y2(t, e);
18
- }
19
- function $2(t) {
20
- J2({
21
- fallbackLocale: "en"
22
- }), X2.set(t);
23
- }
24
- const f2 = {
25
- en: {
26
- generalMin: "Min",
27
- generalMax: "Max",
28
- showAll: "SHOW ALL",
29
- showLess: "SHOW LESS",
30
- error: "Error",
31
- noPaymentMethods: "No payment methods available"
32
- },
33
- uk: {
34
- generalMin: "Мін",
35
- generalMax: "Макс"
36
- },
37
- hr: {
38
- generalMin: "Minimalno",
39
- generalMax: "Maksimalno",
40
- showAll: "Prikaži sve",
41
- showLess: "Prikaži manje"
42
- },
43
- tr: {
44
- generalMin: "Min",
45
- generalMax: "Maks",
46
- showAll: "HEPSİNİ GÖSTER",
47
- showLess: "DAHA AZ GÖSTER",
48
- error: "Hata",
49
- noPaymentMethods: "Hiçbir ödeme yöntemi mevcut değil"
50
- },
51
- "en-us": {
52
- generalMin: "Min",
53
- generalMax: "Max",
54
- showAll: "SHOW ALL",
55
- showLess: "SHOW LESS"
56
- }
57
- }, e0 = "data:image/svg+xml,%3csvg%20width='337'%20height='182'%20viewBox='0%200%20337%20182'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3810_1046)'%3e%3cmask%20id='mask0_3810_1046'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='337'%20height='182'%3e%3cpath%20d='M337%200H0V182H337V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3810_1046)'%3e%3cpath%20opacity='0.16'%20d='M309.269%20229.727C361.939%20177.104%20362.219%2092.0651%20309.895%2039.7875C257.571%20-12.49%20172.456%20-12.21%20119.786%2040.413C67.1163%2093.0359%2066.836%20178.075%20119.16%20230.352C171.484%20282.63%20256.599%20282.35%20309.269%20229.727Z'%20fill='url(%23paint0_linear_3810_1046)'/%3e%3cpath%20d='M306.91%2085.1765C306.739%2085.2338%20302.567%2086.122%20302.567%2086.122L303.5%2091.4846C303.248%2093.837%20303.341%2096.6725%20303.844%2099.6755C304.373%20102.836%20305.272%20105.672%20306.347%20107.862L307.255%20113.083C307.255%20113.083%20311.566%20111.854%20311.731%20111.798C314.285%20110.94%20315.276%20104.285%20313.945%2096.9328C312.614%2089.5809%20309.464%2084.317%20306.91%2085.1751V85.1765Z'%20fill='%23EFED85'/%3e%3cpath%20d='M306.685%20113.272C309.314%20112.85%20310.469%20106.436%20309.264%2098.9468C308.06%2091.4575%20304.952%2085.7283%20302.323%2086.1504C299.695%2086.5724%20298.54%2092.9859%20299.745%20100.475C300.949%20107.965%20304.057%20113.694%20306.685%20113.272Z'%20fill='white'/%3e%3cpath%20d='M305.827%20108.917C307.296%20108.672%20307.819%20104.485%20306.996%2099.565C306.173%2094.6451%20304.315%2090.8556%20302.847%2091.1009C301.378%2091.3461%20300.855%2095.5332%20301.678%20100.453C302.501%20105.373%20304.359%20109.162%20305.827%20108.917Z'%20fill='%23F4F3AC'/%3e%3cpath%20d='M304.62%20105.084L304.075%20103.589C303.619%20102.177%20303.262%20101.098%20302.642%20100.459L302.04%2099.8406L302.288%2099.5744C302.849%2098.9733%20303.198%2097.6789%20303.232%2095.9681L303.248%2095.1577L303.659%2096.3726C304.164%2097.8677%20304.895%2099.1162%20305.724%2099.851L306.266%20100.447L305.602%20100.9C304.866%20101.503%20304.705%20102.631%20304.648%20104.26L304.619%20105.084H304.62Z'%20fill='white'/%3e%3cpath%20opacity='0.72'%20d='M200.267%20126.95L215.345%20130.531L220.921%20107.008L213.789%20105.314L200.267%20126.95Z'%20fill='%23335176'/%3e%3cpath%20opacity='0.72'%20d='M206.435%2099.1181L221.513%20102.699L227.089%2079.1759L219.957%2077.4819L206.435%2099.1181Z'%20fill='%23335176'/%3e%3cpath%20opacity='0.72'%20d='M264.663%2061.4345L235.427%2055.1773L236.027%2047.2476L267.382%2054.2159L264.663%2061.4345Z'%20fill='%23C9C9CD'/%3e%3cpath%20d='M267.172%2054.3082L236.177%2047.334L241.326%2039.9707L265.402%2045.3879L267.172%2054.3082Z'%20fill='%23E5E8EB'/%3e%3cpath%20opacity='0.72'%20d='M255.482%20116.025L251.839%20139.685L247.535%20137.953L251.822%20114.85L255.482%20116.025ZM259.581%2088.2698L254.196%20110.232L256.849%20111.475L262.769%2088.2698H259.581ZM269.145%2060.0598L265.72%2059.8086L260.923%2082.2169L263.224%2083.7198L269.145%2060.0598Z'%20fill='%23335176'/%3e%3cpath%20opacity='0.72'%20d='M226.752%2081.0609L226.682%2081.044L219.685%20110.601L219.612%20110.584L213.828%20135.857L218.236%20138.931L240.91%20144.235L246.268%20142.965L251.838%20118.626L251.91%20118.643L258.982%2088.7745L259.052%2088.7913L266.134%2058.8773L233.824%2051.1924L226.752%2081.0609Z'%20fill='%23C9C9CD'/%3e%3cpath%20d='M227.064%2079.4609L226.994%2079.444L220.404%20107.182L220.33%20107.165L213.535%20135.791L246.258%20142.963L252.849%20115.225L252.923%20115.242L259.583%2087.2109L259.653%2087.2277L266.323%2059.1542L233.724%2051.4297L227.064%2079.4609Z'%20fill='white'/%3e%3cpath%20d='M226.947%2079.7684L226.879%2079.7525L220.297%20107.492L220.225%20107.476L213.438%20136.104L245.311%20143.084L251.893%20115.344L251.965%20115.361L258.617%2087.3278L258.685%2087.3441L265.347%2059.2688L233.599%2051.7358L226.947%2079.7684Z'%20fill='white'/%3e%3cpath%20opacity='0.5'%20d='M226.961%2079.7714L226.892%2079.755L220.304%20107.494L220.23%20107.476L213.438%20136.104L245.879%20143.212L252.467%20115.473L252.54%20115.49L259.197%2087.4582L259.267%2087.4745L265.934%2059.4006L233.618%2051.7397L226.961%2079.7714Z'%20fill='url(%23paint1_linear_3810_1046)'/%3e%3cpath%20opacity='0.72'%20d='M213.147%2071.0995L228.225%2074.6808L233.801%2051.1573L226.67%2049.4634L213.147%2071.0995Z'%20fill='%23335176'/%3e%3cpath%20d='M211.385%20104.483L217.562%20105.962L210.465%20129.564L197.406%20126.436L211.385%20104.483H211.385ZM205.464%2099.2332L218.524%20102.36L224.158%2078.2259L217.981%2076.7471L205.465%2099.2332H205.464ZM212.126%2071.2034L225.186%2074.3306L230.819%2050.1965L224.643%2048.7173L212.126%2071.2034H212.126Z'%20fill='white'/%3e%3cpath%20d='M211.385%20104.483L217.562%20105.962L210.465%20129.564L197.406%20126.436L211.385%20104.483H211.385ZM205.464%2099.2332L218.524%20102.36L224.158%2078.2259L217.981%2076.7471L205.465%2099.2332H205.464ZM212.126%2071.2034L225.186%2074.3306L230.819%2050.1965L224.643%2048.7173L212.126%2071.2034H212.126Z'%20fill='url(%23paint2_linear_3810_1046)'/%3e%3cpath%20d='M264.464%20143.146L251.404%20140.022L255.781%20115.769L261.958%20117.247L264.464%20143.146ZM268.656%2089.5355L262.479%2088.0577L256.557%20112.123L269.617%20115.247L268.656%2089.5355ZM275.428%2061.5321L269.251%2060.0547L263.329%2084.1201L276.389%2087.2441L275.428%2061.5321Z'%20fill='white'/%3e%3cpath%20d='M264.464%20143.146L251.404%20140.022L255.781%20115.769L261.958%20117.247L264.464%20143.146ZM268.656%2089.5355L262.479%2088.0577L256.557%20112.123L269.617%20115.247L268.656%2089.5355ZM275.428%2061.5321L269.251%2060.0547L263.329%2084.1201L276.389%2087.2441L275.428%2061.5321Z'%20fill='url(%23paint3_linear_3810_1046)'/%3e%3cpath%20d='M232.837%20135.937C239.26%20135.937%20244.468%20130.734%20244.468%20124.316C244.468%20117.898%20239.26%20112.695%20232.837%20112.695C226.413%20112.695%20221.205%20117.898%20221.205%20124.316C221.205%20130.734%20226.413%20135.937%20232.837%20135.937Z'%20fill='white'/%3e%3cg%20opacity='0.31'%3e%3cpath%20d='M232.966%20133.318C238.149%20133.318%20242.351%20129.12%20242.351%20123.941C242.351%20118.763%20238.149%20114.564%20232.966%20114.564C227.783%20114.564%20223.581%20118.763%20223.581%20123.941C223.581%20129.12%20227.783%20133.318%20232.966%20133.318Z'%20fill='%237EC51E'/%3e%3c/g%3e%3cpath%20d='M239.767%20108.582C246.191%20108.582%20251.399%20103.379%20251.399%2096.961C251.399%2090.5428%20246.191%2085.3398%20239.767%2085.3398C233.343%2085.3398%20228.136%2090.5428%20228.136%2096.961C228.136%20103.379%20233.343%20108.582%20239.767%20108.582Z'%20fill='white'/%3e%3cg%20opacity='0.4'%3e%3cpath%20d='M239.897%20105.963C245.08%20105.963%20249.282%20101.765%20249.282%2096.5861C249.282%2091.4075%20245.08%2087.2095%20239.897%2087.2095C234.714%2087.2095%20230.512%2091.4075%20230.512%2096.5861C230.512%20101.765%20234.714%20105.963%20239.897%20105.963Z'%20fill='%23EFED85'/%3e%3c/g%3e%3cpath%20d='M247.767%2080.7623C254.191%2080.7623%20259.399%2075.5594%20259.399%2069.1412C259.399%2062.723%20254.191%2057.52%20247.767%2057.52C241.343%2057.52%20236.136%2062.723%20236.136%2069.1412C236.136%2075.5594%20241.343%2080.7623%20247.767%2080.7623Z'%20fill='white'/%3e%3cg%20opacity='0.47'%3e%3cpath%20d='M248.022%2085.2495C256.699%2085.2495%20263.734%2078.2215%20263.734%2069.552C263.734%2060.8825%20256.699%2053.8545%20248.022%2053.8545C239.345%2053.8545%20232.311%2060.8825%20232.311%2069.552C232.311%2078.2215%20239.345%2085.2495%20248.022%2085.2495Z'%20fill='%23FFE5BE'/%3e%3c/g%3e%3cg%20opacity='0.4'%3e%3cpath%20d='M247.472%2080.0554C253.318%2080.0554%20258.057%2075.3206%20258.057%2069.4799C258.057%2063.6391%20253.318%2058.9043%20247.472%2058.9043C241.626%2058.9043%20236.887%2063.6391%20236.887%2069.4799C236.887%2075.3206%20241.626%2080.0554%20247.472%2080.0554Z'%20fill='%23FFA726'/%3e%3c/g%3e%3cpath%20d='M225.426%2037.6665L189.408%2042.7698L187.953%2036.5627L225.233%2031.4321L225.426%2037.6665Z'%20fill='%23DDF0C4'/%3e%3cpath%20d='M187.957%2036.5846L190.505%2032.4892L215.212%2028.6162L225.294%2031.3844L187.957%2036.5846Z'%20fill='%23ECF5E2'/%3e%3cpath%20opacity='0.56'%20d='M201.065%2030.5759L203.025%2034.1504L204.17%2040.6892L211.068%2039.8502L210.023%2033.7673L206.24%2029.731L201.065%2030.5759Z'%20fill='white'/%3e%3cpath%20d='M160.588%2079.8823L165.616%2087.0722L151.713%20102.497L145.829%2096.1782L160.588%2079.8823Z'%20fill='%23D4ECB5'/%3e%3cpath%20d='M171.11%20133.02L172.813%20127.332L196.181%20140.808L192.506%20144.839L171.11%20133.02Z'%20fill='%23D4ECB5'/%3e%3cpath%20d='M258.894%20156.181L262.412%20148.881L278.337%20162.727L273.605%20168.398L258.894%20156.181Z'%20fill='%23D4ECB5'/%3e%3cpath%20d='M207.241%20153.371L212.273%20153.509C212.273%20153.509%20219.934%20160.635%20222.834%20164.031C225.734%20167.426%20229.899%20173.527%20229.899%20173.527L232.334%20181.542L220.067%20166.246L207.241%20153.371Z'%20fill='%23DDF0C4'/%3e%3cpath%20d='M227.172%20185.145L215.896%20170.61L202.893%20158.016L207.257%20153.355L220.673%20166.876L232.261%20181.518L227.172%20185.145Z'%20fill='%23ECF5E2'/%3e%3cpath%20opacity='0.56'%20d='M220.887%20161.734L218.801%20164.233L213.988%20168.822L218.523%20174.095L223.012%20169.843L224.701%20166.281L220.887%20161.734Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_3810_1046'%20x1='377.71'%20y1='128.355'%20x2='109.138'%20y2='100.506'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.294'%20stop-color='%237EC51E'%20stop-opacity='0.8'/%3e%3cstop%20offset='0.306'%20stop-color='%237EC51E'%20stop-opacity='0.788'/%3e%3cstop%20offset='0.735'%20stop-color='%237EC51E'%20stop-opacity='0.367'/%3e%3cstop%20offset='0.931'%20stop-color='%237EC51E'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_3810_1046'%20x1='222.977'%20y1='93.7971'%20x2='256.48'%20y2='101.349'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D0D2D3'%20stop-opacity='0'/%3e%3cstop%20offset='0.147'%20stop-color='%23CED2D4'%20stop-opacity='0.175'/%3e%3cstop%20offset='0.332'%20stop-color='%23CDD2D5'%20stop-opacity='0.362'/%3e%3cstop%20offset='0.513'%20stop-color='%23CDD2D5'%20stop-opacity='0.51'/%3e%3cstop%20offset='0.688'%20stop-color='%23CCD2D6'%20stop-opacity='0.615'/%3e%3cstop%20offset='0.853'%20stop-color='%23CCD2D6'%20stop-opacity='0.678'/%3e%3cstop%20offset='1'%20stop-color='%23CCD2D7'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_3810_1046'%20x1='231.03'%20y1='58.5166'%20x2='200.367'%20y2='123.696'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23BBBCC1'%20stop-opacity='0.8'/%3e%3cstop%20offset='0.25'%20stop-color='%23C1C4C9'%20stop-opacity='0.564'/%3e%3cstop%20offset='0.5'%20stop-color='%23C7CBD0'%20stop-opacity='0.366'/%3e%3cstop%20offset='0.702'%20stop-color='%23CAD0D5'%20stop-opacity='0.244'/%3e%3cstop%20offset='0.83'%20stop-color='%23CCD2D7'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_3810_1046'%20x1='245.954'%20y1='83.3307'%20x2='285.109'%20y2='122.52'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.207'%20stop-color='%23BBBCC1'%20stop-opacity='0.8'/%3e%3cstop%20offset='0.432'%20stop-color='%23C1C4C9'%20stop-opacity='0.564'/%3e%3cstop%20offset='0.656'%20stop-color='%23C7CBD0'%20stop-opacity='0.366'/%3e%3cstop%20offset='0.837'%20stop-color='%23CAD0D5'%20stop-opacity='0.244'/%3e%3cstop%20offset='0.952'%20stop-color='%23CCD2D7'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_3810_1046'%3e%3crect%20width='337'%20height='182'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
58
- function t0(t) {
59
- z2(t, "svelte-17o07ba", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.EmptyContentMessageWrapper{position:relative;display:flex;justify-content:flex-end}.EmptyContentMessageContent{display:flex;flex-direction:column;row-gap:var(--emw--spacing-small, 12px);position:absolute;bottom:10%;left:5%;width:calc(100% - 125px)}.EmptyContentMessageImg{width:250px}.EmptyContentMessageImg img{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) 0;height:100%;width:100%}.EmptyContentMessageTitle{font-size:var(--emw--font-size-small, 16px);font-weight:var(--emw--font-weight-semibold, 500);line-height:calc(var(--emw--font-size-medium, 16px) + 4px)}.EmptyContentMessageText{word-break:break-word;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--mmw--color-grey-290, #666)}.EmptyContentMessageDesktop{justify-content:flex-start}.EmptyContentMessageDesktop .EmptyContentMessageContent{top:50%;left:250px;bottom:auto;transform:translateY(-50%);padding:0 10px 0 5px;width:calc(100% - 250px);margin-top:10px}.EmptyContentMessageDesktop .EmptyContentMessageImg{width:auto}.EmptyContentMessageDesktop .EmptyContentMessageImg img{transform:scaleX(-1)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
60
- }
61
- function h2(t, e, s) {
62
- const l = t.slice();
63
- return l[48] = e[s], l[50] = s, l;
64
- }
65
- function u2(t) {
66
- let e;
67
- return {
68
- c() {
69
- e = g("cashier-spinner"), b(
70
- e,
71
- "clientstylingurl",
72
- /*clientstylingurl*/
73
- t[4]
74
- ), b(
75
- e,
76
- "clientstyling",
77
- /*clientstyling*/
78
- t[3]
79
- );
80
- },
81
- m(s, l) {
82
- P(s, e, l);
83
- },
84
- p(s, l) {
85
- l[0] & /*clientstylingurl*/
86
- 16 && b(
87
- e,
88
- "clientstylingurl",
89
- /*clientstylingurl*/
90
- s[4]
91
- ), l[0] & /*clientstyling*/
92
- 8 && b(
93
- e,
94
- "clientstyling",
95
- /*clientstyling*/
96
- s[3]
97
- );
98
- },
99
- d(s) {
100
- s && T(e);
101
- }
102
- };
103
- }
104
- function g2(t) {
105
- let e, s, l, i, a = m2(
106
- /*paymentMethodsToShow*/
107
- t[8]
108
- ), r = [];
109
- for (let m = 0; m < a.length; m += 1)
110
- r[m] = L2(h2(t, a, m));
111
- let n = (
112
- /*noPaymentMethodsAvailable*/
113
- t[13] && !/*showSpinner*/
114
- t[12] && y2(t)
115
- ), c = (
116
- /*methodsButtonToggleText*/
117
- t[7] && w2(t)
118
- );
119
- return {
120
- c() {
121
- e = g("div"), s = g("div");
122
- for (let m = 0; m < r.length; m += 1)
123
- r[m].c();
124
- l = E(), n && n.c(), i = E(), c && c.c(), f(s, "class", "CashierMethodList"), f(e, "class", "CashierMethodListWidget");
125
- },
126
- m(m, w) {
127
- P(m, e, w), p(e, s);
128
- for (let d = 0; d < r.length; d += 1)
129
- r[d] && r[d].m(s, null);
130
- p(s, l), n && n.m(s, null), p(e, i), c && c.m(e, null), t[27](e);
131
- },
132
- p(m, w) {
133
- if (w[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
134
- 115008) {
135
- a = m2(
136
- /*paymentMethodsToShow*/
137
- m[8]
138
- );
139
- let d;
140
- for (d = 0; d < a.length; d += 1) {
141
- const _ = h2(m, a, d);
142
- r[d] ? r[d].p(_, w) : (r[d] = L2(_), r[d].c(), r[d].m(s, l));
143
- }
144
- for (; d < r.length; d += 1)
145
- r[d].d(1);
146
- r.length = a.length;
147
- }
148
- /*noPaymentMethodsAvailable*/
149
- m[13] && !/*showSpinner*/
150
- m[12] ? n ? n.p(m, w) : (n = y2(m), n.c(), n.m(s, null)) : n && (n.d(1), n = null), /*methodsButtonToggleText*/
151
- m[7] ? c ? c.p(m, w) : (c = w2(m), c.c(), c.m(e, null)) : c && (c.d(1), c = null);
152
- },
153
- d(m) {
154
- m && T(e), I2(r, m), n && n.d(), c && c.d(), t[27](null);
155
- }
156
- };
157
- }
158
- function L2(t) {
159
- let e, s, l, i, a, r, n, c, m = (
160
- /*payMeth*/
161
- (t[48].Label || /*payMeth*/
162
- t[48].Name) + ""
163
- ), w, d, _, M, L = (
164
- /*$_*/
165
- t[14]("generalMin") + ""
166
- ), u, y, D = (
167
- /*formatter*/
168
- t[15].format(
169
- /*payMeth*/
170
- t[48].DisplayCurrency.MinAmountLimit
171
- ) + ""
172
- ), H, N, k = (
173
- /*payMeth*/
174
- t[48].DisplayCurrency.Name + ""
175
- ), U, J, Z, B = (
176
- /*$_*/
177
- t[14]("generalMax") + ""
178
- ), z, G, O = (
179
- /*formatter*/
180
- t[15].format(
181
- /*payMeth*/
182
- t[48].DisplayCurrency.MaxAmountLimit
183
- ) + ""
184
- ), j, X, I = (
185
- /*payMeth*/
186
- t[48].DisplayCurrency.Name + ""
187
- ), V, q, K;
188
- function Q() {
189
- return (
190
- /*click_handler*/
191
- t[25](
192
- /*payMeth*/
193
- t[48]
194
- )
195
- );
196
- }
197
- return {
198
- c() {
199
- e = g("div"), s = g("div"), l = g("img"), r = E(), n = g("div"), c = g("span"), w = A(m), d = E(), _ = g("div"), M = g("span"), u = A(L), y = E(), H = A(D), N = E(), U = A(k), J = E(), Z = g("span"), z = A(B), G = E(), j = A(O), X = E(), V = A(I), Y(l.src, i = /*payMeth*/
200
- t[48].LogoUrl) || f(l, "src", i), f(l, "alt", a = /*payMeth*/
201
- t[48].Label), f(s, "class", "MethodLogo"), f(n, "class", "MethodTitle"), f(M, "class", "Limits"), f(Z, "class", "Limits"), f(_, "class", "MethodLimits"), f(e, "class", "SelectorWrapper"), $(
202
- e,
203
- "checked",
204
- /*selectedPaymentMethod*/
205
- t[6] === /*payMeth*/
206
- t[48].Name
207
- );
208
- },
209
- m(W, v) {
210
- P(W, e, v), p(e, s), p(s, l), p(e, r), p(e, n), p(n, c), p(c, w), p(e, d), p(e, _), p(_, M), p(M, u), p(M, y), p(M, H), p(M, N), p(M, U), p(_, J), p(_, Z), p(Z, z), p(Z, G), p(Z, j), p(Z, X), p(Z, V), q || (K = [
211
- i2(e, "click", Q),
212
- i2(e, "keyup", l0)
213
- ], q = !0);
214
- },
215
- p(W, v) {
216
- t = W, v[0] & /*paymentMethodsToShow*/
217
- 256 && !Y(l.src, i = /*payMeth*/
218
- t[48].LogoUrl) && f(l, "src", i), v[0] & /*paymentMethodsToShow*/
219
- 256 && a !== (a = /*payMeth*/
220
- t[48].Label) && f(l, "alt", a), v[0] & /*paymentMethodsToShow*/
221
- 256 && m !== (m = /*payMeth*/
222
- (t[48].Label || /*payMeth*/
223
- t[48].Name) + "") && x(w, m), v[0] & /*$_*/
224
- 16384 && L !== (L = /*$_*/
225
- t[14]("generalMin") + "") && x(u, L), v[0] & /*paymentMethodsToShow*/
226
- 256 && D !== (D = /*formatter*/
227
- t[15].format(
228
- /*payMeth*/
229
- t[48].DisplayCurrency.MinAmountLimit
230
- ) + "") && x(H, D), v[0] & /*paymentMethodsToShow*/
231
- 256 && k !== (k = /*payMeth*/
232
- t[48].DisplayCurrency.Name + "") && x(U, k), v[0] & /*$_*/
233
- 16384 && B !== (B = /*$_*/
234
- t[14]("generalMax") + "") && x(z, B), v[0] & /*paymentMethodsToShow*/
235
- 256 && O !== (O = /*formatter*/
236
- t[15].format(
237
- /*payMeth*/
238
- t[48].DisplayCurrency.MaxAmountLimit
239
- ) + "") && x(j, O), v[0] & /*paymentMethodsToShow*/
240
- 256 && I !== (I = /*payMeth*/
241
- t[48].DisplayCurrency.Name + "") && x(V, I), v[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
242
- 320 && $(
243
- e,
244
- "checked",
245
- /*selectedPaymentMethod*/
246
- t[6] === /*payMeth*/
247
- t[48].Name
248
- );
249
- },
250
- d(W) {
251
- W && T(e), q = !1, V2(K);
252
- }
253
- };
254
- }
255
- function y2(t) {
256
- let e, s, l, i, a, r = (
257
- /*$_*/
258
- t[14]("error") + ""
259
- ), n, c, m, w = (
260
- /*$_*/
261
- t[14]("noPaymentMethods") + ""
262
- ), d;
263
- function _(u, y) {
264
- return (
265
- /*assetsurl*/
266
- u[1] ? o0 : s0
267
- );
268
- }
269
- let M = _(t), L = M(t);
270
- return {
271
- c() {
272
- e = g("div"), s = g("div"), L.c(), l = E(), i = g("div"), a = g("p"), n = A(r), c = E(), m = g("p"), d = A(w), f(s, "class", "EmptyContentMessageImg"), f(a, "class", "EmptyContentMessageTitle"), f(m, "class", "EmptyContentMessageText"), f(i, "class", "EmptyContentMessageContent"), f(e, "class", "EmptyContentMessageWrapper"), $(
273
- e,
274
- "EmptyContentMessageDesktop",
275
- /*desktopView*/
276
- t[11]
277
- );
278
- },
279
- m(u, y) {
280
- P(u, e, y), p(e, s), L.m(s, null), p(e, l), p(e, i), p(i, a), p(a, n), p(i, c), p(i, m), p(m, d);
281
- },
282
- p(u, y) {
283
- M === (M = _(u)) && L ? L.p(u, y) : (L.d(1), L = M(u), L && (L.c(), L.m(s, null))), y[0] & /*$_*/
284
- 16384 && r !== (r = /*$_*/
285
- u[14]("error") + "") && x(n, r), y[0] & /*$_*/
286
- 16384 && w !== (w = /*$_*/
287
- u[14]("noPaymentMethods") + "") && x(d, w), y[0] & /*desktopView*/
288
- 2048 && $(
289
- e,
290
- "EmptyContentMessageDesktop",
291
- /*desktopView*/
292
- u[11]
293
- );
294
- },
295
- d(u) {
296
- u && T(e), L.d();
297
- }
298
- };
299
- }
300
- function s0(t) {
301
- let e, s;
302
- return {
303
- c() {
304
- e = g("img"), Y(e.src, s = e0) || f(e, "src", s), f(e, "alt", "empty-payment-method-list");
305
- },
306
- m(l, i) {
307
- P(l, e, i);
308
- },
309
- p: o2,
310
- d(l) {
311
- l && T(e);
312
- }
313
- };
314
- }
315
- function o0(t) {
316
- let e, s;
317
- return {
318
- c() {
319
- e = g("img"), Y(e.src, s = `${/*assetsurl*/
320
- t[1]}/empty-pay-meth-list.png`) || f(e, "src", s), f(e, "width", "300px"), f(e, "alt", "empty-payment-method-list");
321
- },
322
- m(l, i) {
323
- P(l, e, i);
324
- },
325
- p(l, i) {
326
- i[0] & /*assetsurl*/
327
- 2 && !Y(e.src, s = `${/*assetsurl*/
328
- l[1]}/empty-pay-meth-list.png`) && f(e, "src", s);
329
- },
330
- d(l) {
331
- l && T(e);
332
- }
333
- };
334
- }
335
- function w2(t) {
336
- let e, s, l, i;
337
- return {
338
- c() {
339
- e = g("div"), s = A(
340
- /*methodsButtonToggleText*/
341
- t[7]
342
- ), f(e, "class", "ShowAllButton");
343
- },
344
- m(a, r) {
345
- P(a, e, r), p(e, s), l || (i = i2(
346
- e,
347
- "click",
348
- /*click_handler_1*/
349
- t[26]
350
- ), l = !0);
351
- },
352
- p(a, r) {
353
- r[0] & /*methodsButtonToggleText*/
354
- 128 && x(
355
- s,
356
- /*methodsButtonToggleText*/
357
- a[7]
358
- );
359
- },
360
- d(a) {
361
- a && T(e), l = !1, i();
362
- }
363
- };
364
- }
365
- function C2(t) {
366
- let e, s, l;
367
- return {
368
- c() {
369
- e = g("cashier-error"), s = g("span"), l = A(
370
- /*errorMessage*/
371
- t[10]
372
- ), f(s, "slot", "text"), b(
373
- e,
374
- "lang",
375
- /*lang*/
376
- t[0]
377
- ), b(
378
- e,
379
- "assetsurl",
380
- /*assetsurl*/
381
- t[1]
382
- ), b(
383
- e,
384
- "translationurl",
385
- /*translationurl*/
386
- t[2]
387
- ), b(
388
- e,
389
- "clientstylingurl",
390
- /*clientstylingurl*/
391
- t[4]
392
- ), b(
393
- e,
394
- "clientstyling",
395
- /*clientstyling*/
396
- t[3]
397
- ), b(e, "hidebuttons", "true");
398
- },
399
- m(i, a) {
400
- P(i, e, a), p(e, s), p(s, l);
401
- },
402
- p(i, a) {
403
- a[0] & /*errorMessage*/
404
- 1024 && x(
405
- l,
406
- /*errorMessage*/
407
- i[10]
408
- ), a[0] & /*lang*/
409
- 1 && b(
410
- e,
411
- "lang",
412
- /*lang*/
413
- i[0]
414
- ), a[0] & /*assetsurl*/
415
- 2 && b(
416
- e,
417
- "assetsurl",
418
- /*assetsurl*/
419
- i[1]
420
- ), a[0] & /*translationurl*/
421
- 4 && b(
422
- e,
423
- "translationurl",
424
- /*translationurl*/
425
- i[2]
426
- ), a[0] & /*clientstylingurl*/
427
- 16 && b(
428
- e,
429
- "clientstylingurl",
430
- /*clientstylingurl*/
431
- i[4]
432
- ), a[0] & /*clientstyling*/
433
- 8 && b(
434
- e,
435
- "clientstyling",
436
- /*clientstyling*/
437
- i[3]
438
- );
439
- },
440
- d(i) {
441
- i && T(e);
442
- }
443
- };
444
- }
445
- function i0(t) {
446
- let e, s, l, i = (
447
- /*showSpinner*/
448
- t[12] && u2(t)
449
- ), a = (
450
- /*showMethodsList*/
451
- (t[9] || /*desktopView*/
452
- t[11]) && g2(t)
453
- ), r = (
454
- /*errorMessage*/
455
- t[10] && C2(t)
456
- );
457
- return {
458
- c() {
459
- i && i.c(), e = E(), a && a.c(), s = E(), r && r.c(), l = O2();
460
- },
461
- m(n, c) {
462
- i && i.m(n, c), P(n, e, c), a && a.m(n, c), P(n, s, c), r && r.m(n, c), P(n, l, c);
463
- },
464
- p(n, c) {
465
- /*showSpinner*/
466
- n[12] ? i ? i.p(n, c) : (i = u2(n), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null), /*showMethodsList*/
467
- n[9] || /*desktopView*/
468
- n[11] ? a ? a.p(n, c) : (a = g2(n), a.c(), a.m(s.parentNode, s)) : a && (a.d(1), a = null), /*errorMessage*/
469
- n[10] ? r ? r.p(n, c) : (r = C2(n), r.c(), r.m(l.parentNode, l)) : r && (r.d(1), r = null);
470
- },
471
- i: o2,
472
- o: o2,
473
- d(n) {
474
- n && (T(e), T(s), T(l)), i && i.d(n), a && a.d(n), r && r.d(n);
475
- }
476
- };
477
- }
478
- const l0 = () => {
479
- };
480
- function n0(t, e, s) {
481
- let l;
482
- j2(t, K2, (o) => s(14, l = o)), p2.extend(Q2);
483
- let { lang: i = "en" } = e, { local: a = "en-US" } = e, { endpoint: r } = e, { session: n } = e, { customerid: c } = e, { assetsurl: m } = e, { currency: w } = e, { numberofmethodsshown: d } = e, { translationurl: _ = "" } = e, { clientstyling: M = "" } = e, { clientstylingurl: L = "" } = e, { ismobileview: u } = e, y = [], D, H, N = "", k = [], U = !0, J = new Intl.NumberFormat(a, { minimumFractionDigits: 2 }), Z = "", B, z = !0, G = !1, O = !1;
484
- var j;
485
- (function(o) {
486
- o.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", o.Success = "Success", o.JwtTokenError = "JwtTokenError";
487
- })(j || (j = {})), W2();
488
- const X = () => {
489
- let o = _;
490
- if (o)
491
- return fetch(o).then((h) => h.json()).then((h) => {
492
- Object.keys(h).forEach((F) => {
493
- d2(F, h[F]);
494
- });
495
- }).catch((h) => {
496
- console.log(h);
497
- });
498
- };
499
- Object.keys(f2).forEach((o) => {
500
- d2(o, f2[o]);
501
- });
502
- const I = () => {
503
- $2(i);
504
- }, V = () => {
505
- s(12, G = !0);
506
- const o = new URL(`${r}/v1/player/${c}/payment/GetPaymentMetadata`), h = new Headers();
507
- h.append("accept", "application/json"), h.append("Content-Type", "application/json"), h.append("X-Client-Request-Timestamp", p2.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
508
- const F = {
509
- method: "POST",
510
- headers: h,
511
- body: JSON.stringify({
512
- XPaymentSessionToken: n,
513
- Currency: w,
514
- Tags: { UserAgent: window.navigator.userAgent }
515
- })
516
- };
517
- fetch(o, F).then((C) => C.json()).then((C) => {
518
- var R;
519
- if (C.error) {
520
- s(10, Z = C.error);
521
- return;
522
- }
523
- if (C.ResponseCode !== j.Success) {
524
- B = C.ResponseCode, W();
525
- return;
526
- }
527
- y = (R = C.PaymentMethods) != null && R.Ordering ? q(C) : K(C), s(7, N = d && +d > 0 && y.length > +d ? l("showAll") : ""), s(8, k = N ? y.slice(0, +d) : y), s(13, O = !k.length), window.postMessage(
528
- {
529
- type: "StartSessionCountdown",
530
- paymentMethodName: y[0].Name,
531
- xPaymentSessionToken: C.XPaymentSessionToken
532
- },
533
- window.location.href
534
- ), window.postMessage({ type: "DataLoading", isDataLoaded: !1 });
535
- }).finally(() => {
536
- s(12, G = !1), window.postMessage({ type: "DataLoading", isDataLoaded: !0 });
537
- });
538
- }, q = (o) => {
539
- const h = [];
540
- return o.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((F) => {
541
- const C = o.PaymentMethods.PaymentMethods.find((R) => R.Name === F);
542
- if (C) {
543
- const R = (C == null ? void 0 : C.Logos.find((e2) => e2.LogoType === "Desktop")) || {}, x2 = (C == null ? void 0 : C.Logos.find((e2) => e2.LogoType === "Mobile")) || {}, a2 = z ? R : x2;
544
- h.push(s2(t2({}, C), {
545
- LogoUrl: a2.LogoUrl ? `https:${a2.LogoUrl}` : ""
546
- }));
547
- }
548
- }), h;
549
- }, K = (o) => o.PaymentMethods.PaymentMethods.map((h) => s2(t2({}, h), {
550
- LogoUrl: h.Logos && h.Logos.length && h.Logos[0].LogoUrl ? `https:${h.Logos[0].LogoUrl}` : ""
551
- })), Q = (o) => {
552
- s(6, H = o.Name), window.postMessage({ type: "SelectPayMeth", details: o }, window.location.href), dispatchEvent(new CustomEvent(
553
- "selectPayMeth",
554
- {
555
- detail: o,
556
- bubbles: !0,
557
- cancelable: !0,
558
- composed: !0
559
- }
560
- ));
561
- }, W = () => {
562
- window.postMessage(
563
- {
564
- type: "ErrorResponseCode",
565
- errorResponseCode: B
566
- },
567
- window.location.href
568
- );
569
- }, v = () => {
570
- s(11, z = u === "false");
571
- }, l2 = () => {
572
- k == y ? _2() : M2();
573
- }, M2 = () => {
574
- s(8, k = y), s(7, N = l("showLess"));
575
- }, _2 = () => {
576
- s(8, k = y.slice(0, +d)), H && !k.find((o) => o.Name === H) && k.splice(0, 0, y.find((o) => o.Name === H)), s(7, N = l("showAll"));
577
- }, b2 = () => {
578
- s(9, U = !0);
579
- }, v2 = (o) => {
580
- s(9, U = !o.hideMethodsList);
581
- }, k2 = () => {
582
- let o = document.createElement("style");
583
- o.innerHTML = M, D.appendChild(o);
584
- }, E2 = () => {
585
- let o = new URL(L), h = document.createElement("style");
586
- fetch(o.href).then((F) => F.text()).then((F) => {
587
- h.innerHTML = F, setTimeout(
588
- () => {
589
- D.appendChild(h);
590
- },
591
- 1
592
- ), setTimeout(
593
- () => {
594
- },
595
- 500
596
- );
597
- });
598
- };
599
- G2(() => (window.addEventListener("message", n2, !1), () => {
600
- window.removeEventListener("message", n2, !1);
601
- }));
602
- const n2 = (o) => {
603
- switch (o.data.type) {
604
- case "BackToMethodList":
605
- b2();
606
- break;
607
- case "HideMethodsList":
608
- v2(o.data.details);
609
- break;
610
- }
611
- }, D2 = (o) => Q(o), S2 = () => l2();
612
- function Z2(o) {
613
- R2[o ? "unshift" : "push"](() => {
614
- D = o, s(5, D);
615
- });
616
- }
617
- return t.$$set = (o) => {
618
- "lang" in o && s(0, i = o.lang), "local" in o && s(18, a = o.local), "endpoint" in o && s(19, r = o.endpoint), "session" in o && s(20, n = o.session), "customerid" in o && s(21, c = o.customerid), "assetsurl" in o && s(1, m = o.assetsurl), "currency" in o && s(22, w = o.currency), "numberofmethodsshown" in o && s(23, d = o.numberofmethodsshown), "translationurl" in o && s(2, _ = o.translationurl), "clientstyling" in o && s(3, M = o.clientstyling), "clientstylingurl" in o && s(4, L = o.clientstylingurl), "ismobileview" in o && s(24, u = o.ismobileview);
619
- }, t.$$.update = () => {
620
- t.$$.dirty[0] & /*endpoint, session, customerid*/
621
- 3670016 && r && n && c && V(), t.$$.dirty[0] & /*lang*/
622
- 1 && i && I(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
623
- 40 && M && D && k2(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
624
- 48 && L && D && E2(), t.$$.dirty[0] & /*ismobileview*/
625
- 16777216 && u && v(), t.$$.dirty[0] & /*lang, translationurl*/
626
- 5 && i && _ && X();
627
- }, [
628
- i,
629
- m,
630
- _,
631
- M,
632
- L,
633
- D,
634
- H,
635
- N,
636
- k,
637
- U,
638
- Z,
639
- z,
640
- G,
641
- O,
642
- l,
643
- J,
644
- Q,
645
- l2,
646
- a,
647
- r,
648
- n,
649
- c,
650
- w,
651
- d,
652
- u,
653
- D2,
654
- S2,
655
- Z2
656
- ];
657
- }
658
- class a0 extends N2 {
659
- constructor(e) {
660
- super(), U2(
661
- this,
662
- e,
663
- n0,
664
- i0,
665
- B2,
666
- {
667
- lang: 0,
668
- local: 18,
669
- endpoint: 19,
670
- session: 20,
671
- customerid: 21,
672
- assetsurl: 1,
673
- currency: 22,
674
- numberofmethodsshown: 23,
675
- translationurl: 2,
676
- clientstyling: 3,
677
- clientstylingurl: 4,
678
- ismobileview: 24
679
- },
680
- t0,
681
- [-1, -1]
682
- );
683
- }
684
- get lang() {
685
- return this.$$.ctx[0];
686
- }
687
- set lang(e) {
688
- this.$$set({ lang: e }), S();
689
- }
690
- get local() {
691
- return this.$$.ctx[18];
692
- }
693
- set local(e) {
694
- this.$$set({ local: e }), S();
695
- }
696
- get endpoint() {
697
- return this.$$.ctx[19];
698
- }
699
- set endpoint(e) {
700
- this.$$set({ endpoint: e }), S();
701
- }
702
- get session() {
703
- return this.$$.ctx[20];
704
- }
705
- set session(e) {
706
- this.$$set({ session: e }), S();
707
- }
708
- get customerid() {
709
- return this.$$.ctx[21];
710
- }
711
- set customerid(e) {
712
- this.$$set({ customerid: e }), S();
713
- }
714
- get assetsurl() {
715
- return this.$$.ctx[1];
716
- }
717
- set assetsurl(e) {
718
- this.$$set({ assetsurl: e }), S();
719
- }
720
- get currency() {
721
- return this.$$.ctx[22];
722
- }
723
- set currency(e) {
724
- this.$$set({ currency: e }), S();
725
- }
726
- get numberofmethodsshown() {
727
- return this.$$.ctx[23];
728
- }
729
- set numberofmethodsshown(e) {
730
- this.$$set({ numberofmethodsshown: e }), S();
731
- }
732
- get translationurl() {
733
- return this.$$.ctx[2];
734
- }
735
- set translationurl(e) {
736
- this.$$set({ translationurl: e }), S();
737
- }
738
- get clientstyling() {
739
- return this.$$.ctx[3];
740
- }
741
- set clientstyling(e) {
742
- this.$$set({ clientstyling: e }), S();
743
- }
744
- get clientstylingurl() {
745
- return this.$$.ctx[4];
746
- }
747
- set clientstylingurl(e) {
748
- this.$$set({ clientstylingurl: e }), S();
749
- }
750
- get ismobileview() {
751
- return this.$$.ctx[24];
752
- }
753
- set ismobileview(e) {
754
- this.$$set({ ismobileview: e }), S();
755
- }
756
- }
757
- q2(a0, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
758
- export {
759
- a0 as default
760
- };