@everymatrix/cashier-method-details 1.50.1 → 1.52.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/CashierHeader-BENTNpJ3.cjs +1 -0
- package/components/{CashierHeader-DbRR0QTY.js → CashierHeader-Q8JuzuVk.js} +23 -16
- package/components/{CashierIframeRedirect-D6F8M-Ja.js → CashierIframeRedirect-B4imEacT.js} +19 -16
- package/components/CashierIframeRedirect-i5PAPezc.cjs +1 -0
- package/components/{CashierMethodDetails-BjGuKBMt.cjs → CashierMethodDetails-BB7-XMUx.cjs} +2 -2
- package/components/{CashierMethodDetails-Cp0bYD6T.js → CashierMethodDetails-CjRW00lD.js} +139 -139
- package/components/CashierReceiptPage-7t2oQ25c.cjs +1 -0
- package/components/{CashierReceiptPage-DgfxvIG7.js → CashierReceiptPage-CRawcUcd.js} +224 -160
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-hln6e7BX.cjs +0 -1
- package/components/CashierIframeRedirect-QK9nrv4Y.cjs +0 -1
- package/components/CashierReceiptPage-9TYGYUvp.cjs +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-BeEK5pGj.cjs"),C=require("./CashierError-CjbdWO_N.cjs");function k(l,t){C.addMessages(l,t)}function D(l){C.init({fallbackLocale:"en"}),C.$locale.set(l)}const B={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}},"en-us":{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}}};function P(l){e.append_styles(l,"svelte-bbilb",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}const W=l=>({}),L=l=>({}),Z=l=>({}),v=l=>({}),F=l=>({}),H=l=>({});function T(l){let t,n,s;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',e.attr(t,"class","CashierHeaderLeftButton")},m(i,h){e.insert(i,t,h),n||(s=e.listen(t,"click",l[6]),n=!0)},p:e.noop,d(i){i&&e.detach(t),n=!1,s()}}}function I(l){let t,n=l[1]&&T(l);return{c(){n&&n.c(),t=e.empty()},m(s,i){n&&n.m(s,i),e.insert(s,t,i)},p(s,i){s[1]?n?n.p(s,i):(n=T(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(s){s&&e.detach(t),n&&n.d(s)}}}function Y(l){let t,n=l[4](l[2])+"",s;return{c(){t=e.element("span"),s=e.text(n),e.attr(t,"class","CashierHeaderTitle")},m(i,h){e.insert(i,t,h),e.append(t,s)},p(i,h){h&20&&n!==(n=i[4](i[2])+"")&&e.set_data(s,n)},d(i){i&&e.detach(t)}}}function M(l){let t,n,s;return{c(){t=e.element("span"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>',e.attr(t,"class","CashierHeaderRightButton")},m(i,h){e.insert(i,t,h),n||(s=e.listen(t,"click",l[5]),n=!0)},p:e.noop,d(i){i&&e.detach(t),n=!1,s()}}}function G(l){let t,n=l[3]&&M(l);return{c(){n&&n.c(),t=e.empty()},m(s,i){n&&n.m(s,i),e.insert(s,t,i)},p(s,i){s[3]?n?n.p(s,i):(n=M(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(s){s&&e.detach(t),n&&n.d(s)}}}function J(l){let t,n,s,i;const h=l[15].leftButton,m=e.create_slot(h,l,l[14],H),u=m||I(l),p=l[15].title,g=e.create_slot(p,l,l[14],v),f=g||Y(l),_=l[15].rightButton,d=e.create_slot(_,l,l[14],L),r=d||G(l);return{c(){t=e.element("div"),u&&u.c(),n=e.space(),f&&f.c(),s=e.space(),r&&r.c(),e.attr(t,"class","CashierHeader")},m(o,c){e.insert(o,t,c),u&&u.m(t,null),e.append(t,n),f&&f.m(t,null),e.append(t,s),r&&r.m(t,null),l[16](t),i=!0},p(o,[c]){m?m.p&&(!i||c&16384)&&e.update_slot_base(m,h,o,o[14],i?e.get_slot_changes(h,o[14],c,F):e.get_all_dirty_from_scope(o[14]),H):u&&u.p&&(!i||c&2)&&u.p(o,i?c:-1),g?g.p&&(!i||c&16384)&&e.update_slot_base(g,p,o,o[14],i?e.get_slot_changes(p,o[14],c,Z):e.get_all_dirty_from_scope(o[14]),v):f&&f.p&&(!i||c&20)&&f.p(o,i?c:-1),d?d.p&&(!i||c&16384)&&e.update_slot_base(d,_,o,o[14],i?e.get_slot_changes(_,o[14],c,W):e.get_all_dirty_from_scope(o[14]),L):r&&r.p&&(!i||c&8)&&r.p(o,i?c:-1)},i(o){i||(e.transition_in(u,o),e.transition_in(f,o),e.transition_in(r,o),i=!0)},o(o){e.transition_out(u,o),e.transition_out(f,o),e.transition_out(r,o),i=!1},d(o){o&&e.detach(t),u&&u.d(o),f&&f.d(o),r&&r.d(o),l[16](null)}}}function K(l,t,n){let s;e.component_subscribe(l,C.$format,a=>n(4,s=a));let{$$slots:i={},$$scope:h}=t,{clientstyling:m=""}=t,{clientstylingurl:u=""}=t,{translationurl:p=""}=t,{showbackbutton:g=""}=t,{title:f="header.general"}=t,{lang:_="en"}=t,{showclosebutton:d=""}=t,r,o=!1,c,y=!1;const S=()=>{let a=p;a&&fetch(a).then(w=>w.json()).then(w=>{Object.keys(w).forEach(b=>{k(b,w[b])})}).catch(w=>{console.log(w)})};Object.keys(B).forEach(a=>{k(a,B[a])});const j=()=>{let a=document.createElement("style");a.innerHTML=m,r.appendChild(a)},N=()=>{let a=new URL(u),w=document.createElement("style");fetch(a.href).then(b=>b.text()).then(b=>{w.innerHTML=b,setTimeout(()=>{r.appendChild(w)},1)})},R=()=>{D(_)},z=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},O=()=>{window.postMessage({type:"BackCashier"},window.location.href)},q=()=>{n(1,o=!!g&&g!=="false")},A=()=>{n(3,y=!!d&&d!=="false")},U=()=>{n(2,c=f||"header.general")};function x(a){e.binding_callbacks[a?"unshift":"push"](()=>{r=a,n(0,r)})}return l.$$set=a=>{"clientstyling"in a&&n(7,m=a.clientstyling),"clientstylingurl"in a&&n(8,u=a.clientstylingurl),"translationurl"in a&&n(9,p=a.translationurl),"showbackbutton"in a&&n(10,g=a.showbackbutton),"title"in a&&n(11,f=a.title),"lang"in a&&n(12,_=a.lang),"showclosebutton"in a&&n(13,d=a.showclosebutton),"$$scope"in a&&n(14,h=a.$$scope)},l.$$.update=()=>{l.$$.dirty&4096&&_&&R(),l.$$.dirty&6144&&_&&f&&U(),l.$$.dirty&129&&m&&r&&j(),l.$$.dirty&257&&u&&r&&N(),l.$$.dirty&4608&&_&&p&&S(),l.$$.dirty&1024&&g&&q(),l.$$.dirty&8192&&d&&A()},[r,o,c,y,s,z,O,m,u,p,g,f,_,d,h,i,x]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,K,J,e.safe_not_equal,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13},P)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),e.flush()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),e.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),e.flush()}}e.create_custom_element(E,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{}},["leftButton","title","rightButton"],[],!0);exports.default=E;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { S as $, b as tt, f as b, c as et, a as nt, d as st, e as L, g as y, h as z, j as B, k as C, l as S, u as v, m as H, o as T, t as M, p as E, v as k, w as lt, x as
|
1
|
+
import { S as $, b as tt, f as b, c as et, a as nt, d as st, e as L, g as y, h as z, j as B, k as C, l as S, u as v, m as H, o as T, t as M, p as E, v as k, w as lt, x as W, y as it, z as ot, C as at, A as Z, n as q } from "./CashierConfirmModal-Ccz0Sdnq.js";
|
2
2
|
import { a as rt, i as ct, $ as ft, b as ut } from "./CashierError-DHY1mLRH.js";
|
3
3
|
function N(n, t) {
|
4
4
|
rt(n, t);
|
@@ -22,6 +22,13 @@ const R = {
|
|
22
22
|
deposit: "Para Yatır",
|
23
23
|
withdraw: "Çekim"
|
24
24
|
}
|
25
|
+
},
|
26
|
+
"en-us": {
|
27
|
+
header: {
|
28
|
+
general: "Cashier",
|
29
|
+
deposit: "Deposit",
|
30
|
+
withdraw: "Withdraw"
|
31
|
+
}
|
25
32
|
}
|
26
33
|
};
|
27
34
|
function gt(n) {
|
@@ -35,14 +42,14 @@ function U(n) {
|
|
35
42
|
t = y("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', B(t, "class", "CashierHeaderLeftButton");
|
36
43
|
},
|
37
44
|
m(s, u) {
|
38
|
-
C(s, t, u), e || (l =
|
45
|
+
C(s, t, u), e || (l = Z(
|
39
46
|
t,
|
40
47
|
"click",
|
41
48
|
/*back*/
|
42
49
|
n[6]
|
43
50
|
), e = !0);
|
44
51
|
},
|
45
|
-
p:
|
52
|
+
p: q,
|
46
53
|
d(s) {
|
47
54
|
s && k(t), e = !1, l();
|
48
55
|
}
|
@@ -55,7 +62,7 @@ function wt(n) {
|
|
55
62
|
);
|
56
63
|
return {
|
57
64
|
c() {
|
58
|
-
e && e.c(), t =
|
65
|
+
e && e.c(), t = W();
|
59
66
|
},
|
60
67
|
m(l, s) {
|
61
68
|
e && e.m(l, s), C(l, t, s);
|
@@ -97,21 +104,21 @@ function bt(n) {
|
|
97
104
|
}
|
98
105
|
};
|
99
106
|
}
|
100
|
-
function
|
107
|
+
function D(n) {
|
101
108
|
let t, e, l;
|
102
109
|
return {
|
103
110
|
c() {
|
104
111
|
t = y("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>', B(t, "class", "CashierHeaderRightButton");
|
105
112
|
},
|
106
113
|
m(s, u) {
|
107
|
-
C(s, t, u), e || (l =
|
114
|
+
C(s, t, u), e || (l = Z(
|
108
115
|
t,
|
109
116
|
"click",
|
110
117
|
/*close*/
|
111
118
|
n[5]
|
112
119
|
), e = !0);
|
113
120
|
},
|
114
|
-
p:
|
121
|
+
p: q,
|
115
122
|
d(s) {
|
116
123
|
s && k(t), e = !1, l();
|
117
124
|
}
|
@@ -120,18 +127,18 @@ function Z(n) {
|
|
120
127
|
function pt(n) {
|
121
128
|
let t, e = (
|
122
129
|
/*closeButton*/
|
123
|
-
n[3] &&
|
130
|
+
n[3] && D(n)
|
124
131
|
);
|
125
132
|
return {
|
126
133
|
c() {
|
127
|
-
e && e.c(), t =
|
134
|
+
e && e.c(), t = W();
|
128
135
|
},
|
129
136
|
m(l, s) {
|
130
137
|
e && e.m(l, s), C(l, t, s);
|
131
138
|
},
|
132
139
|
p(l, s) {
|
133
140
|
/*closeButton*/
|
134
|
-
l[3] ? e ? e.p(l, s) : (e =
|
141
|
+
l[3] ? e ? e.p(l, s) : (e = D(l), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
135
142
|
},
|
136
143
|
d(l) {
|
137
144
|
l && k(t), e && e.d(l);
|
@@ -250,7 +257,7 @@ function kt(n, t, e) {
|
|
250
257
|
let l;
|
251
258
|
lt(n, ut, (o) => e(4, l = o));
|
252
259
|
let { $$slots: s = {}, $$scope: u } = t, { clientstyling: _ = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: w = "" } = t, { showbackbutton: h = "" } = t, { title: f = "header.general" } = t, { lang: g = "en" } = t, { showclosebutton: d = "" } = t, a, i = !1, r, j = !1;
|
253
|
-
const
|
260
|
+
const F = () => {
|
254
261
|
let o = w;
|
255
262
|
o && fetch(o).then((m) => m.json()).then((m) => {
|
256
263
|
Object.keys(m).forEach((p) => {
|
@@ -263,10 +270,10 @@ function kt(n, t, e) {
|
|
263
270
|
Object.keys(R).forEach((o) => {
|
264
271
|
N(o, R[o]);
|
265
272
|
});
|
266
|
-
const
|
273
|
+
const I = () => {
|
267
274
|
let o = document.createElement("style");
|
268
275
|
o.innerHTML = _, a.appendChild(o);
|
269
|
-
},
|
276
|
+
}, P = () => {
|
270
277
|
let o = new URL(c), m = document.createElement("style");
|
271
278
|
fetch(o.href).then((p) => p.text()).then((p) => {
|
272
279
|
m.innerHTML = p, setTimeout(
|
@@ -300,9 +307,9 @@ function kt(n, t, e) {
|
|
300
307
|
n.$$.dirty & /*lang*/
|
301
308
|
4096 && g && Y(), n.$$.dirty & /*lang, title*/
|
302
309
|
6144 && g && f && V(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
303
|
-
129 && _ && a &&
|
304
|
-
257 && c && a &&
|
305
|
-
4608 && g && w &&
|
310
|
+
129 && _ && a && I(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
311
|
+
257 && c && a && P(), n.$$.dirty & /*lang, translationurl*/
|
312
|
+
4608 && g && w && F(), n.$$.dirty & /*showbackbutton*/
|
306
313
|
1024 && h && K(), n.$$.dirty & /*showclosebutton*/
|
307
314
|
8192 && d && Q();
|
308
315
|
}, [
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { S as U, b as q, f as C, c as Z, a as F, d as P, g as
|
1
|
+
import { S as U, b as q, f as C, c as Z, a as F, d as P, g as y, h as H, E as c, D as R, j as b, k, l as L, A as M, n as v, v as E, C as G } from "./CashierConfirmModal-Ccz0Sdnq.js";
|
2
2
|
import { a as J, i as K, $ as Q } from "./CashierError-DHY1mLRH.js";
|
3
3
|
function T(i, e) {
|
4
4
|
J(i, e);
|
@@ -8,7 +8,7 @@ function V(i) {
|
|
8
8
|
fallbackLocale: "en"
|
9
9
|
}), Q.set(i);
|
10
10
|
}
|
11
|
-
const
|
11
|
+
const D = {
|
12
12
|
en: {
|
13
13
|
redirectHeader: "Deposit redirect"
|
14
14
|
},
|
@@ -20,6 +20,9 @@ const S = {
|
|
20
20
|
},
|
21
21
|
tr: {
|
22
22
|
redirectHeader: "Para yatırma yönlendirmesi"
|
23
|
+
},
|
24
|
+
"en-us": {
|
25
|
+
redirectHeader: "Deposit redirect"
|
23
26
|
}
|
24
27
|
};
|
25
28
|
if (typeof window != "undefined") {
|
@@ -34,7 +37,7 @@ if (typeof window != "undefined") {
|
|
34
37
|
}
|
35
38
|
};
|
36
39
|
};
|
37
|
-
customElements.define = i(customElements.define), import("./CashierHeader-
|
40
|
+
customElements.define = i(customElements.define), import("./CashierHeader-Q8JuzuVk.js").then(({ default: e }) => {
|
38
41
|
!customElements.get("cashier-header") && customElements.define("cashier-header", e.element);
|
39
42
|
});
|
40
43
|
}
|
@@ -57,11 +60,11 @@ if (typeof window != "undefined") {
|
|
57
60
|
function W(i) {
|
58
61
|
P(i, "svelte-10xutbi", ".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 40px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
59
62
|
}
|
60
|
-
function
|
63
|
+
function S(i) {
|
61
64
|
let e, t, l;
|
62
65
|
return {
|
63
66
|
c() {
|
64
|
-
e =
|
67
|
+
e = y("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', b(e, "slot", "leftButton"), b(e, "class", "CashierHeaderLeftButton");
|
65
68
|
},
|
66
69
|
m(u, h) {
|
67
70
|
k(u, e, h), t || (l = M(
|
@@ -81,7 +84,7 @@ function j(i) {
|
|
81
84
|
let e, t, l;
|
82
85
|
return {
|
83
86
|
c() {
|
84
|
-
e =
|
87
|
+
e = y("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>', b(e, "slot", "rightButton"), b(e, "class", "CashierHeaderRightButton");
|
85
88
|
},
|
86
89
|
m(u, h) {
|
87
90
|
k(u, e, h), t || (l = M(
|
@@ -101,7 +104,7 @@ function I(i) {
|
|
101
104
|
let e;
|
102
105
|
return {
|
103
106
|
c() {
|
104
|
-
e =
|
107
|
+
e = y("cashier-spinner"), c(
|
105
108
|
e,
|
106
109
|
"clientstylingurl",
|
107
110
|
/*clientstylingurl*/
|
@@ -139,7 +142,7 @@ function I(i) {
|
|
139
142
|
function X(i) {
|
140
143
|
let e, t, l, u, h, d, g, w, _, a = !!/*showbackbutton*/
|
141
144
|
i[3] && /*showbackbutton*/
|
142
|
-
i[3] !== "false" &&
|
145
|
+
i[3] !== "false" && S(i), r = (!/*showbackbutton*/
|
143
146
|
i[3] || /*showbackbutton*/
|
144
147
|
i[3] === "false") && j(i), o = (
|
145
148
|
/*isLoading*/
|
@@ -147,7 +150,7 @@ function X(i) {
|
|
147
150
|
);
|
148
151
|
return {
|
149
152
|
c() {
|
150
|
-
e =
|
153
|
+
e = y("div"), t = y("cashier-header"), a && a.c(), l = H(), r && r.c(), u = H(), o && o.c(), h = H(), d = y("iframe"), c(
|
151
154
|
t,
|
152
155
|
"lang",
|
153
156
|
/*lang*/
|
@@ -191,7 +194,7 @@ function X(i) {
|
|
191
194
|
p(s, [f]) {
|
192
195
|
/*showbackbutton*/
|
193
196
|
s[3] && /*showbackbutton*/
|
194
|
-
s[3] !== "false" ? a ? a.p(s, f) : (a =
|
197
|
+
s[3] !== "false" ? a ? a.p(s, f) : (a = S(s), a.c(), a.m(t, l)) : a && (a.d(1), a = null), !/*showbackbutton*/
|
195
198
|
s[3] || /*showbackbutton*/
|
196
199
|
s[3] === "false" ? r ? r.p(s, f) : (r = j(s), r.c(), r.m(t, null)) : r && (r.d(1), r = null), f & /*lang*/
|
197
200
|
1 && c(
|
@@ -247,15 +250,15 @@ function Y(i, e, t) {
|
|
247
250
|
let n = h;
|
248
251
|
if (n)
|
249
252
|
return fetch(n).then((m) => m.json()).then((m) => {
|
250
|
-
Object.keys(m).forEach((
|
251
|
-
T(
|
253
|
+
Object.keys(m).forEach((p) => {
|
254
|
+
T(p, m[p]);
|
252
255
|
});
|
253
256
|
}).catch((m) => {
|
254
257
|
console.log(m);
|
255
258
|
});
|
256
259
|
};
|
257
|
-
Object.keys(
|
258
|
-
T(n,
|
260
|
+
Object.keys(D).forEach((n) => {
|
261
|
+
T(n, D[n]);
|
259
262
|
});
|
260
263
|
const s = () => {
|
261
264
|
V(l);
|
@@ -264,8 +267,8 @@ function Y(i, e, t) {
|
|
264
267
|
n.innerHTML = g, r.appendChild(n);
|
265
268
|
}, O = () => {
|
266
269
|
let n = new URL(w), m = document.createElement("style");
|
267
|
-
fetch(n.href).then((
|
268
|
-
m.innerHTML =
|
270
|
+
fetch(n.href).then((p) => p.text()).then((p) => {
|
271
|
+
m.innerHTML = p, setTimeout(
|
269
272
|
() => {
|
270
273
|
r.appendChild(m);
|
271
274
|
},
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BeEK5pGj.cjs"),C=require("./CashierError-CjbdWO_N.cjs");function y(i,e){C.addMessages(i,e)}function S(i){C.init({fallbackLocale:"en"}),C.$locale.set(i)}const L={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"},"en-us":{redirectHeader:"Deposit redirect"}};if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-BENTNpJ3.cjs")).then(({default:e})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",e.element)})}if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-BYRAyXQ3.cjs")).then(({default:e})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",e.element)})}function q(i){t.append_styles(i,"svelte-10xutbi",".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 40px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}function v(i){let e,n,s;return{c(){e=t.element("div"),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',t.attr(e,"slot","leftButton"),t.attr(e,"class","CashierHeaderLeftButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function k(i){let e,n,s;return{c(){e=t.element("div"),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>',t.attr(e,"slot","rightButton"),t.attr(e,"class","CashierHeaderRightButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function E(i){let e;return{c(){e=t.element("cashier-spinner"),t.set_custom_element_data(e,"clientstylingurl",i[5]),t.set_custom_element_data(e,"clientstyling",i[4])},m(n,s){t.insert(n,e,s)},p(n,s){s&32&&t.set_custom_element_data(e,"clientstylingurl",n[5]),s&16&&t.set_custom_element_data(e,"clientstyling",n[4])},d(n){n&&t.detach(e)}}}function D(i){let e,n,s,f,m,d,g,_,w,o=!!i[3]&&i[3]!=="false"&&v(i),a=(!i[3]||i[3]==="false")&&k(i),c=i[8]&&E(i);return{c(){e=t.element("div"),n=t.element("cashier-header"),o&&o.c(),s=t.space(),a&&a.c(),f=t.space(),c&&c.c(),m=t.space(),d=t.element("iframe"),t.set_custom_element_data(n,"lang",i[0]),t.set_custom_element_data(n,"translationurl",i[2]),t.set_custom_element_data(n,"title",i[6]),t.set_custom_element_data(n,"showbackbutton",i[3]),t.set_custom_element_data(n,"clientstylingurl",i[5]),t.set_custom_element_data(n,"clientstyling",i[4]),t.src_url_equal(d.src,g=i[1])||t.attr(d,"src",g),t.attr(d,"frameborder","0"),t.attr(e,"class","CashierRedirectIframe")},m(r,u){t.insert(r,e,u),t.append(e,n),o&&o.m(n,null),t.append(n,s),a&&a.m(n,null),t.append(e,f),c&&c.m(e,null),t.append(e,m),t.append(e,d),i[12](e),_||(w=t.listen(d,"load",i[11]),_=!0)},p(r,[u]){r[3]&&r[3]!=="false"?o?o.p(r,u):(o=v(r),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!r[3]||r[3]==="false"?a?a.p(r,u):(a=k(r),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u&1&&t.set_custom_element_data(n,"lang",r[0]),u&4&&t.set_custom_element_data(n,"translationurl",r[2]),u&64&&t.set_custom_element_data(n,"title",r[6]),u&8&&t.set_custom_element_data(n,"showbackbutton",r[3]),u&32&&t.set_custom_element_data(n,"clientstylingurl",r[5]),u&16&&t.set_custom_element_data(n,"clientstyling",r[4]),r[8]?c?c.p(r,u):(c=E(r),c.c(),c.m(e,m)):c&&(c.d(1),c=null),u&2&&!t.src_url_equal(d.src,g=r[1])&&t.attr(d,"src",g)},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o&&o.d(),a&&a.d(),c&&c.d(),i[12](null),_=!1,w()}}}function O(i,e,n){let{lang:s="en"}=e,{iframeurl:f}=e,{translationurl:m=""}=e,{showbackbutton:d=""}=e,{clientstyling:g=""}=e,{clientstylingurl:_=""}=e,{title:w=""}=e,o=!0,a;const c=()=>{let l=m;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(p=>{y(p,h[p])})}).catch(h=>{console.log(h)})};Object.keys(L).forEach(l=>{y(l,L[l])});const r=()=>{S(s)},u=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},M=()=>{let l=new URL(_),h=document.createElement("style");fetch(l.href).then(p=>p.text()).then(p=>{h.innerHTML=p,setTimeout(()=>{a.appendChild(h)},1)})},B=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},b=l=>{l.target.src&&n(8,o=!1)},R=l=>b(l);function T(l){t.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(7,a)})}return i.$$set=l=>{"lang"in l&&n(0,s=l.lang),"iframeurl"in l&&n(1,f=l.iframeurl),"translationurl"in l&&n(2,m=l.translationurl),"showbackbutton"in l&&n(3,d=l.showbackbutton),"clientstyling"in l&&n(4,g=l.clientstyling),"clientstylingurl"in l&&n(5,_=l.clientstylingurl),"title"in l&&n(6,w=l.title)},i.$$.update=()=>{i.$$.dirty&1&&s&&r(),i.$$.dirty&4&&m&&c(),i.$$.dirty&144&&g&&a&&u(),i.$$.dirty&160&&_&&a&&M()},[s,f,m,d,g,_,w,a,o,B,b,R,T]}class H extends t.SvelteComponent{constructor(e){super(),t.init(this,e,O,D,t.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},q)}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),t.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(e){this.$$set({iframeurl:e}),t.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get title(){return this.$$.ctx[6]}set title(e){this.$$set({title:e}),t.flush()}}t.create_custom_element(H,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=H;
|