@everymatrix/cashier-iframe-redirect 1.86.20 → 1.86.21
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.
- package/components/CashierIframeRedirect-BJ5Lsp2u.cjs +1 -0
- package/components/{CashierIframeRedirect-BsxMBzJT.js → CashierIframeRedirect-CLzIN4JD.js} +60 -59
- package/components/{CashierIframeRedirect-DmWbmi10.js → CashierIframeRedirect-DAzo2bfi.js} +60 -59
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/esnext/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierIframeRedirect-CDDNSIYo.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierHeader-DF3Mljkl.cjs");function p(i,t){e.addMessages(i,t)}function R(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const C={en:{redirectHeader:"Deposit redirect"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.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-DF3Mljkl.cjs")).then(t=>t.CashierHeader_ce).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.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-l6siWw78.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}function j(i){e.append_styles(i,"svelte-14e65vo",".CashierRedirectIframe{height:100%;width:100%;position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box;width:100%;height:100%;background-color:var(--emw--color-background, #F9FAFF)}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.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;fill:var(--emw--color-primary, #F9C405)}")}function v(i){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"><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"></path></svg>',e.attr(t,"slot","leftButton"),e.attr(t,"class","CashierHeaderLeftButton")},m(m,f){e.insert(m,t,f),n||(s=e.listen(t,"click",i[10]),n=!0)},p:e.noop,d(m){m&&e.detach(t),n=!1,s()}}}function L(i){let t,n,s;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>',e.attr(t,"slot","rightButton"),e.attr(t,"class","CashierHeaderRightButton")},m(m,f){e.insert(m,t,f),n||(s=e.listen(t,"click",i[10]),n=!0)},p:e.noop,d(m){m&&e.detach(t),n=!1,s()}}}function k(i){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",i[6]),e.set_custom_element_data(t,"clientstyling",i[5]),e.set_custom_element_data(t,"mbsource",i[4])},m(n,s){e.insert(n,t,s)},p(n,s){s&64&&e.set_custom_element_data(t,"clientstylingurl",n[6]),s&32&&e.set_custom_element_data(t,"clientstyling",n[5]),s&16&&e.set_custom_element_data(t,"mbsource",n[4])},d(n){n&&e.detach(t)}}}function q(i){let t,n,s,m,f,d,h,g,_,o=!!i[3]&&i[3]!=="false"&&v(i),r=(!i[3]||i[3]==="false")&&L(i),c=i[9]&&k(i);return{c(){t=e.element("div"),n=e.element("cashier-header"),o&&o.c(),s=e.space(),r&&r.c(),m=e.space(),c&&c.c(),f=e.space(),d=e.element("iframe"),e.set_custom_element_data(n,"lang",i[0]),e.set_custom_element_data(n,"translationurl",i[2]),e.set_custom_element_data(n,"title",i[7]),e.set_custom_element_data(n,"showbackbutton",i[3]),e.set_custom_element_data(n,"clientstylingurl",i[6]),e.set_custom_element_data(n,"clientstyling",i[5]),e.set_custom_element_data(n,"mbsource",i[4]),e.src_url_equal(d.src,h=i[1])||e.attr(d,"src",h),e.attr(d,"frameborder","0"),e.attr(t,"class","CashierRedirectIframe")},m(a,u){e.insert(a,t,u),e.append(t,n),o&&o.m(n,null),e.append(n,s),r&&r.m(n,null),e.append(t,m),c&&c.m(t,null),e.append(t,f),e.append(t,d),i[13](t),g||(_=e.listen(d,"load",i[12]),g=!0)},p(a,[u]){a[3]&&a[3]!=="false"?o?o.p(a,u):(o=v(a),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!a[3]||a[3]==="false"?r?r.p(a,u):(r=L(a),r.c(),r.m(n,null)):r&&(r.d(1),r=null),u&1&&e.set_custom_element_data(n,"lang",a[0]),u&4&&e.set_custom_element_data(n,"translationurl",a[2]),u&128&&e.set_custom_element_data(n,"title",a[7]),u&8&&e.set_custom_element_data(n,"showbackbutton",a[3]),u&64&&e.set_custom_element_data(n,"clientstylingurl",a[6]),u&32&&e.set_custom_element_data(n,"clientstyling",a[5]),u&16&&e.set_custom_element_data(n,"mbsource",a[4]),a[9]?c?c.p(a,u):(c=k(a),c.c(),c.m(t,f)):c&&(c.d(1),c=null),u&2&&!e.src_url_equal(d.src,h=a[1])&&e.attr(d,"src",h)},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o&&o.d(),r&&r.d(),c&&c.d(),i[13](null),g=!1,_()}}}function D(i,t,n){let{lang:s="en"}=t,{iframeurl:m}=t,{translationurl:f=""}=t,{showbackbutton:d=""}=t,{mbsource:h}=t,{clientstyling:g}=t,{clientstylingurl:_}=t,{title:o=""}=t,r,c=!0;const a=()=>{let l=f;if(l)return fetch(l).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{p(y,b[y])})}).catch(b=>{console.log(b)})};Object.keys(C).forEach(l=>{p(l,C[l])});const u=()=>{R(s)},S=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},w=l=>{l.target.src&&n(9,c=!1)},M=()=>window.postMessage({type:"DisableScroll"},window.location.href),H=()=>window.postMessage({type:"EnableScroll"},window.location.href);e.onMount(()=>(M(),()=>{H()}));const B=l=>w(l);function F(l){e.binding_callbacks[l?"unshift":"push"](()=>{r=l,n(8,r)})}return i.$$set=l=>{"lang"in l&&n(0,s=l.lang),"iframeurl"in l&&n(1,m=l.iframeurl),"translationurl"in l&&n(2,f=l.translationurl),"showbackbutton"in l&&n(3,d=l.showbackbutton),"mbsource"in l&&n(4,h=l.mbsource),"clientstyling"in l&&n(5,g=l.clientstyling),"clientstylingurl"in l&&n(6,_=l.clientstylingurl),"title"in l&&n(7,o=l.title)},i.$$.update=()=>{i.$$.dirty&1&&s&&u(),i.$$.dirty&4&&f&&a(),i.$$.dirty&288&&g&&r&&e.setClientStyling(r,g),i.$$.dirty&320&&_&&r&&e.setClientStylingURL(r,_),i.$$.dirty&272&&h&&r&&e.setStreamStyling(r,`${h}.Style`)},[s,m,f,d,h,g,_,o,r,c,S,w,B,F]}class E extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,D,q,e.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,mbsource:4,clientstyling:5,clientstylingurl:6,title:7},j)}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(t){this.$$set({iframeurl:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(t){this.$$set({showbackbutton:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}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 title(){return this.$$.ctx[7]}set title(t){this.$$set({title:t}),e.flush()}}e.create_custom_element(E,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},mbsource:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=E;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { a as N, i as U, $ as Z, S as P, b as G, f as b, s as J, c as K, d as Q, n as L, e as k, g as a, h as H, j as w, k as v, l as _, m as S, o as p, p as E, q as V, r as W, t as X, u as Y, v as x } from "./CashierHeader-D2XHA52H.js";
|
|
2
|
+
function F(i, e) {
|
|
3
|
+
N(i, e);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
5
|
+
function $(i) {
|
|
6
|
+
U({
|
|
7
7
|
fallbackLocale: "en"
|
|
8
|
-
}),
|
|
8
|
+
}), Z.set(i);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const R = {
|
|
11
11
|
en: {
|
|
12
12
|
redirectHeader: "Deposit redirect"
|
|
13
13
|
},
|
|
@@ -47,17 +47,17 @@ if (typeof window != "undefined") {
|
|
|
47
47
|
!customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function ee(i) {
|
|
51
|
+
Q(i, "svelte-14e65vo", ".CashierRedirectIframe{height:100%;width:100%;position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box;width:100%;height:100%;background-color:var(--emw--color-background, #F9FAFF)}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.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;fill:var(--emw--color-primary, #F9C405)}");
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function j(i) {
|
|
54
54
|
let e, t, n;
|
|
55
55
|
return {
|
|
56
56
|
c() {
|
|
57
57
|
e = p("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><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"></path></svg>', w(e, "slot", "leftButton"), w(e, "class", "CashierHeaderLeftButton");
|
|
58
58
|
},
|
|
59
59
|
m(f, h) {
|
|
60
|
-
|
|
60
|
+
v(f, e, h), t || (n = S(
|
|
61
61
|
e,
|
|
62
62
|
"click",
|
|
63
63
|
/*close*/
|
|
@@ -66,18 +66,18 @@ function D(i) {
|
|
|
66
66
|
},
|
|
67
67
|
p: L,
|
|
68
68
|
d(f) {
|
|
69
|
-
f &&
|
|
69
|
+
f && k(e), t = !1, n();
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function D(i) {
|
|
74
74
|
let e, t, n;
|
|
75
75
|
return {
|
|
76
76
|
c() {
|
|
77
77
|
e = p("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>', w(e, "slot", "rightButton"), w(e, "class", "CashierHeaderRightButton");
|
|
78
78
|
},
|
|
79
79
|
m(f, h) {
|
|
80
|
-
|
|
80
|
+
v(f, e, h), t || (n = S(
|
|
81
81
|
e,
|
|
82
82
|
"click",
|
|
83
83
|
/*close*/
|
|
@@ -86,11 +86,11 @@ function I(i) {
|
|
|
86
86
|
},
|
|
87
87
|
p: L,
|
|
88
88
|
d(f) {
|
|
89
|
-
f &&
|
|
89
|
+
f && k(e), t = !1, n();
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function I(i) {
|
|
94
94
|
let e;
|
|
95
95
|
return {
|
|
96
96
|
c() {
|
|
@@ -112,7 +112,7 @@ function O(i) {
|
|
|
112
112
|
);
|
|
113
113
|
},
|
|
114
114
|
m(t, n) {
|
|
115
|
-
|
|
115
|
+
v(t, e, n);
|
|
116
116
|
},
|
|
117
117
|
p(t, n) {
|
|
118
118
|
n & /*clientstylingurl*/
|
|
@@ -136,18 +136,18 @@ function O(i) {
|
|
|
136
136
|
);
|
|
137
137
|
},
|
|
138
138
|
d(t) {
|
|
139
|
-
t &&
|
|
139
|
+
t && k(e);
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
let e, t, n, f, h, m,
|
|
143
|
+
function te(i) {
|
|
144
|
+
let e, t, n, f, h, m, d, g, y, o = !!/*showbackbutton*/
|
|
145
145
|
i[3] && /*showbackbutton*/
|
|
146
|
-
i[3] !== "false" &&
|
|
146
|
+
i[3] !== "false" && j(i), r = (!/*showbackbutton*/
|
|
147
147
|
i[3] || /*showbackbutton*/
|
|
148
|
-
i[3] === "false") &&
|
|
148
|
+
i[3] === "false") && D(i), c = (
|
|
149
149
|
/*isLoading*/
|
|
150
|
-
i[9] &&
|
|
150
|
+
i[9] && I(i)
|
|
151
151
|
);
|
|
152
152
|
return {
|
|
153
153
|
c() {
|
|
@@ -186,23 +186,23 @@ function $(i) {
|
|
|
186
186
|
"mbsource",
|
|
187
187
|
/*mbsource*/
|
|
188
188
|
i[4]
|
|
189
|
-
), H(m.src,
|
|
190
|
-
i[1]) || w(m, "src",
|
|
189
|
+
), H(m.src, d = /*iframeurl*/
|
|
190
|
+
i[1]) || w(m, "src", d), w(m, "frameborder", "0"), w(e, "class", "CashierRedirectIframe");
|
|
191
191
|
},
|
|
192
192
|
m(l, u) {
|
|
193
|
-
|
|
193
|
+
v(l, e, u), _(e, t), o && o.m(t, null), _(t, n), r && r.m(t, null), _(e, f), c && c.m(e, null), _(e, h), _(e, m), i[13](e), g || (y = S(
|
|
194
194
|
m,
|
|
195
195
|
"load",
|
|
196
196
|
/*load_handler*/
|
|
197
197
|
i[12]
|
|
198
|
-
),
|
|
198
|
+
), g = !0);
|
|
199
199
|
},
|
|
200
200
|
p(l, [u]) {
|
|
201
201
|
/*showbackbutton*/
|
|
202
202
|
l[3] && /*showbackbutton*/
|
|
203
|
-
l[3] !== "false" ? o ? o.p(l, u) : (o =
|
|
203
|
+
l[3] !== "false" ? o ? o.p(l, u) : (o = j(l), o.c(), o.m(t, n)) : o && (o.d(1), o = null), !/*showbackbutton*/
|
|
204
204
|
l[3] || /*showbackbutton*/
|
|
205
|
-
l[3] === "false" ? r ? r.p(l, u) : (r =
|
|
205
|
+
l[3] === "false" ? r ? r.p(l, u) : (r = D(l), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u & /*lang*/
|
|
206
206
|
1 && a(
|
|
207
207
|
t,
|
|
208
208
|
"lang",
|
|
@@ -245,82 +245,83 @@ function $(i) {
|
|
|
245
245
|
/*mbsource*/
|
|
246
246
|
l[4]
|
|
247
247
|
), /*isLoading*/
|
|
248
|
-
l[9] ? c ? c.p(l, u) : (c =
|
|
249
|
-
2 && !H(m.src,
|
|
250
|
-
l[1]) && w(m, "src",
|
|
248
|
+
l[9] ? c ? c.p(l, u) : (c = I(l), c.c(), c.m(e, h)) : c && (c.d(1), c = null), u & /*iframeurl*/
|
|
249
|
+
2 && !H(m.src, d = /*iframeurl*/
|
|
250
|
+
l[1]) && w(m, "src", d);
|
|
251
251
|
},
|
|
252
252
|
i: L,
|
|
253
253
|
o: L,
|
|
254
254
|
d(l) {
|
|
255
|
-
l &&
|
|
255
|
+
l && k(e), o && o.d(), r && r.d(), c && c.d(), i[13](null), g = !1, y();
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
let { lang: n = "en" } = e, { iframeurl: f } = e, { translationurl: h = "" } = e, { showbackbutton: m = "" } = e, { mbsource:
|
|
259
|
+
function ie(i, e, t) {
|
|
260
|
+
let { lang: n = "en" } = e, { iframeurl: f } = e, { translationurl: h = "" } = e, { showbackbutton: m = "" } = e, { mbsource: d } = e, { clientstyling: g } = e, { clientstylingurl: y } = e, { title: o = "" } = e, r, c = !0;
|
|
261
261
|
const l = () => {
|
|
262
262
|
let s = h;
|
|
263
263
|
if (s)
|
|
264
264
|
return fetch(s).then((C) => C.json()).then((C) => {
|
|
265
|
-
Object.keys(C).forEach((
|
|
266
|
-
|
|
265
|
+
Object.keys(C).forEach((B) => {
|
|
266
|
+
F(B, C[B]);
|
|
267
267
|
});
|
|
268
268
|
}).catch((C) => {
|
|
269
269
|
console.log(C);
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
|
-
Object.keys(
|
|
273
|
-
|
|
272
|
+
Object.keys(R).forEach((s) => {
|
|
273
|
+
F(s, R[s]);
|
|
274
274
|
});
|
|
275
275
|
const u = () => {
|
|
276
|
-
|
|
277
|
-
},
|
|
276
|
+
$(n);
|
|
277
|
+
}, O = () => {
|
|
278
278
|
window.postMessage({ type: "CloseIframe" }, window.location.href);
|
|
279
279
|
}, M = (s) => {
|
|
280
280
|
s.target.src && t(9, c = !1);
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
}, T = () => window.postMessage({ type: "DisableScroll" }, window.location.href), A = () => window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
282
|
+
V(() => (T(), () => {
|
|
283
|
+
A();
|
|
284
|
+
}));
|
|
284
285
|
const q = (s) => M(s);
|
|
285
286
|
function z(s) {
|
|
286
|
-
|
|
287
|
+
W[s ? "unshift" : "push"](() => {
|
|
287
288
|
r = s, t(8, r);
|
|
288
289
|
});
|
|
289
290
|
}
|
|
290
291
|
return i.$$set = (s) => {
|
|
291
|
-
"lang" in s && t(0, n = s.lang), "iframeurl" in s && t(1, f = s.iframeurl), "translationurl" in s && t(2, h = s.translationurl), "showbackbutton" in s && t(3, m = s.showbackbutton), "mbsource" in s && t(4,
|
|
292
|
+
"lang" in s && t(0, n = s.lang), "iframeurl" in s && t(1, f = s.iframeurl), "translationurl" in s && t(2, h = s.translationurl), "showbackbutton" in s && t(3, m = s.showbackbutton), "mbsource" in s && t(4, d = s.mbsource), "clientstyling" in s && t(5, g = s.clientstyling), "clientstylingurl" in s && t(6, y = s.clientstylingurl), "title" in s && t(7, o = s.title);
|
|
292
293
|
}, i.$$.update = () => {
|
|
293
294
|
i.$$.dirty & /*lang*/
|
|
294
295
|
1 && n && u(), i.$$.dirty & /*translationurl*/
|
|
295
296
|
4 && h && l(), i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
296
|
-
288 &&
|
|
297
|
-
320 && y && r &&
|
|
298
|
-
272 &&
|
|
297
|
+
288 && g && r && X(r, g), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
298
|
+
320 && y && r && Y(r, y), i.$$.dirty & /*mbsource, customStylingContainer*/
|
|
299
|
+
272 && d && r && x(r, `${d}.Style`);
|
|
299
300
|
}, [
|
|
300
301
|
n,
|
|
301
302
|
f,
|
|
302
303
|
h,
|
|
303
304
|
m,
|
|
304
|
-
g,
|
|
305
305
|
d,
|
|
306
|
+
g,
|
|
306
307
|
y,
|
|
307
308
|
o,
|
|
308
309
|
r,
|
|
309
310
|
c,
|
|
310
|
-
|
|
311
|
+
O,
|
|
311
312
|
M,
|
|
312
313
|
q,
|
|
313
314
|
z
|
|
314
315
|
];
|
|
315
316
|
}
|
|
316
|
-
class
|
|
317
|
+
class ne extends P {
|
|
317
318
|
constructor(e) {
|
|
318
|
-
super(),
|
|
319
|
+
super(), G(
|
|
319
320
|
this,
|
|
320
321
|
e,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
ie,
|
|
323
|
+
te,
|
|
324
|
+
J,
|
|
324
325
|
{
|
|
325
326
|
lang: 0,
|
|
326
327
|
iframeurl: 1,
|
|
@@ -331,7 +332,7 @@ class te extends Z {
|
|
|
331
332
|
clientstylingurl: 6,
|
|
332
333
|
title: 7
|
|
333
334
|
},
|
|
334
|
-
|
|
335
|
+
ee
|
|
335
336
|
);
|
|
336
337
|
}
|
|
337
338
|
get lang() {
|
|
@@ -383,7 +384,7 @@ class te extends Z {
|
|
|
383
384
|
this.$$set({ title: e }), b();
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
|
-
|
|
387
|
+
K(ne, { lang: {}, iframeurl: {}, translationurl: {}, showbackbutton: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, title: {} }, [], [], !0);
|
|
387
388
|
export {
|
|
388
|
-
|
|
389
|
+
ne as default
|
|
389
390
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { a as N, i as U, $ as Z, c as P, S as G, b as J, s as K, f as b, d as Q, n as L, e as k, g as a, h as H, j as w, k as v, l as _, m as S, o as p, p as E, q as V, r as W, t as X, u as Y, v as x } from "./CashierHeader-Dn37_6Lk.js";
|
|
2
|
+
function F(i, e) {
|
|
3
|
+
N(i, e);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
5
|
+
function $(i) {
|
|
6
|
+
U({
|
|
7
7
|
fallbackLocale: "en"
|
|
8
|
-
}),
|
|
8
|
+
}), Z.set(i);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const R = {
|
|
11
11
|
en: {
|
|
12
12
|
redirectHeader: "Deposit redirect"
|
|
13
13
|
},
|
|
@@ -47,17 +47,17 @@ if (typeof window < "u") {
|
|
|
47
47
|
!customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function ee(i) {
|
|
51
|
+
Q(i, "svelte-14e65vo", ".CashierRedirectIframe{height:100%;width:100%;position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box;width:100%;height:100%;background-color:var(--emw--color-background, #F9FAFF)}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.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;fill:var(--emw--color-primary, #F9C405)}");
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function j(i) {
|
|
54
54
|
let e, t, n;
|
|
55
55
|
return {
|
|
56
56
|
c() {
|
|
57
57
|
e = p("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><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"></path></svg>', w(e, "slot", "leftButton"), w(e, "class", "CashierHeaderLeftButton");
|
|
58
58
|
},
|
|
59
59
|
m(f, h) {
|
|
60
|
-
|
|
60
|
+
v(f, e, h), t || (n = S(
|
|
61
61
|
e,
|
|
62
62
|
"click",
|
|
63
63
|
/*close*/
|
|
@@ -66,18 +66,18 @@ function D(i) {
|
|
|
66
66
|
},
|
|
67
67
|
p: L,
|
|
68
68
|
d(f) {
|
|
69
|
-
f &&
|
|
69
|
+
f && k(e), t = !1, n();
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function D(i) {
|
|
74
74
|
let e, t, n;
|
|
75
75
|
return {
|
|
76
76
|
c() {
|
|
77
77
|
e = p("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>', w(e, "slot", "rightButton"), w(e, "class", "CashierHeaderRightButton");
|
|
78
78
|
},
|
|
79
79
|
m(f, h) {
|
|
80
|
-
|
|
80
|
+
v(f, e, h), t || (n = S(
|
|
81
81
|
e,
|
|
82
82
|
"click",
|
|
83
83
|
/*close*/
|
|
@@ -86,11 +86,11 @@ function I(i) {
|
|
|
86
86
|
},
|
|
87
87
|
p: L,
|
|
88
88
|
d(f) {
|
|
89
|
-
f &&
|
|
89
|
+
f && k(e), t = !1, n();
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function I(i) {
|
|
94
94
|
let e;
|
|
95
95
|
return {
|
|
96
96
|
c() {
|
|
@@ -112,7 +112,7 @@ function O(i) {
|
|
|
112
112
|
);
|
|
113
113
|
},
|
|
114
114
|
m(t, n) {
|
|
115
|
-
|
|
115
|
+
v(t, e, n);
|
|
116
116
|
},
|
|
117
117
|
p(t, n) {
|
|
118
118
|
n & /*clientstylingurl*/
|
|
@@ -136,18 +136,18 @@ function O(i) {
|
|
|
136
136
|
);
|
|
137
137
|
},
|
|
138
138
|
d(t) {
|
|
139
|
-
t &&
|
|
139
|
+
t && k(e);
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
let e, t, n, f, h, m,
|
|
143
|
+
function te(i) {
|
|
144
|
+
let e, t, n, f, h, m, d, g, C, o = !!/*showbackbutton*/
|
|
145
145
|
i[3] && /*showbackbutton*/
|
|
146
|
-
i[3] !== "false" &&
|
|
146
|
+
i[3] !== "false" && j(i), r = (!/*showbackbutton*/
|
|
147
147
|
i[3] || /*showbackbutton*/
|
|
148
|
-
i[3] === "false") &&
|
|
148
|
+
i[3] === "false") && D(i), c = (
|
|
149
149
|
/*isLoading*/
|
|
150
|
-
i[9] &&
|
|
150
|
+
i[9] && I(i)
|
|
151
151
|
);
|
|
152
152
|
return {
|
|
153
153
|
c() {
|
|
@@ -186,23 +186,23 @@ function $(i) {
|
|
|
186
186
|
"mbsource",
|
|
187
187
|
/*mbsource*/
|
|
188
188
|
i[4]
|
|
189
|
-
), H(m.src,
|
|
190
|
-
i[1]) || w(m, "src",
|
|
189
|
+
), H(m.src, d = /*iframeurl*/
|
|
190
|
+
i[1]) || w(m, "src", d), w(m, "frameborder", "0"), w(e, "class", "CashierRedirectIframe");
|
|
191
191
|
},
|
|
192
192
|
m(l, u) {
|
|
193
|
-
|
|
193
|
+
v(l, e, u), _(e, t), o && o.m(t, null), _(t, n), r && r.m(t, null), _(e, f), c && c.m(e, null), _(e, h), _(e, m), i[13](e), g || (C = S(
|
|
194
194
|
m,
|
|
195
195
|
"load",
|
|
196
196
|
/*load_handler*/
|
|
197
197
|
i[12]
|
|
198
|
-
),
|
|
198
|
+
), g = !0);
|
|
199
199
|
},
|
|
200
200
|
p(l, [u]) {
|
|
201
201
|
/*showbackbutton*/
|
|
202
202
|
l[3] && /*showbackbutton*/
|
|
203
|
-
l[3] !== "false" ? o ? o.p(l, u) : (o =
|
|
203
|
+
l[3] !== "false" ? o ? o.p(l, u) : (o = j(l), o.c(), o.m(t, n)) : o && (o.d(1), o = null), !/*showbackbutton*/
|
|
204
204
|
l[3] || /*showbackbutton*/
|
|
205
|
-
l[3] === "false" ? r ? r.p(l, u) : (r =
|
|
205
|
+
l[3] === "false" ? r ? r.p(l, u) : (r = D(l), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u & /*lang*/
|
|
206
206
|
1 && a(
|
|
207
207
|
t,
|
|
208
208
|
"lang",
|
|
@@ -245,82 +245,83 @@ function $(i) {
|
|
|
245
245
|
/*mbsource*/
|
|
246
246
|
l[4]
|
|
247
247
|
), /*isLoading*/
|
|
248
|
-
l[9] ? c ? c.p(l, u) : (c =
|
|
249
|
-
2 && !H(m.src,
|
|
250
|
-
l[1]) && w(m, "src",
|
|
248
|
+
l[9] ? c ? c.p(l, u) : (c = I(l), c.c(), c.m(e, h)) : c && (c.d(1), c = null), u & /*iframeurl*/
|
|
249
|
+
2 && !H(m.src, d = /*iframeurl*/
|
|
250
|
+
l[1]) && w(m, "src", d);
|
|
251
251
|
},
|
|
252
252
|
i: L,
|
|
253
253
|
o: L,
|
|
254
254
|
d(l) {
|
|
255
|
-
l &&
|
|
255
|
+
l && k(e), o && o.d(), r && r.d(), c && c.d(), i[13](null), g = !1, C();
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
let { lang: n = "en" } = e, { iframeurl: f } = e, { translationurl: h = "" } = e, { showbackbutton: m = "" } = e, { mbsource:
|
|
259
|
+
function ie(i, e, t) {
|
|
260
|
+
let { lang: n = "en" } = e, { iframeurl: f } = e, { translationurl: h = "" } = e, { showbackbutton: m = "" } = e, { mbsource: d } = e, { clientstyling: g } = e, { clientstylingurl: C } = e, { title: o = "" } = e, r, c = !0;
|
|
261
261
|
const l = () => {
|
|
262
262
|
let s = h;
|
|
263
263
|
if (s)
|
|
264
264
|
return fetch(s).then((y) => y.json()).then((y) => {
|
|
265
|
-
Object.keys(y).forEach((
|
|
266
|
-
|
|
265
|
+
Object.keys(y).forEach((B) => {
|
|
266
|
+
F(B, y[B]);
|
|
267
267
|
});
|
|
268
268
|
}).catch((y) => {
|
|
269
269
|
console.log(y);
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
|
-
Object.keys(
|
|
273
|
-
|
|
272
|
+
Object.keys(R).forEach((s) => {
|
|
273
|
+
F(s, R[s]);
|
|
274
274
|
});
|
|
275
275
|
const u = () => {
|
|
276
|
-
|
|
277
|
-
},
|
|
276
|
+
$(n);
|
|
277
|
+
}, O = () => {
|
|
278
278
|
window.postMessage({ type: "CloseIframe" }, window.location.href);
|
|
279
279
|
}, M = (s) => {
|
|
280
280
|
s.target.src && t(9, c = !1);
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
}, T = () => window.postMessage({ type: "DisableScroll" }, window.location.href), A = () => window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
282
|
+
V(() => (T(), () => {
|
|
283
|
+
A();
|
|
284
|
+
}));
|
|
284
285
|
const q = (s) => M(s);
|
|
285
286
|
function z(s) {
|
|
286
|
-
|
|
287
|
+
W[s ? "unshift" : "push"](() => {
|
|
287
288
|
r = s, t(8, r);
|
|
288
289
|
});
|
|
289
290
|
}
|
|
290
291
|
return i.$$set = (s) => {
|
|
291
|
-
"lang" in s && t(0, n = s.lang), "iframeurl" in s && t(1, f = s.iframeurl), "translationurl" in s && t(2, h = s.translationurl), "showbackbutton" in s && t(3, m = s.showbackbutton), "mbsource" in s && t(4,
|
|
292
|
+
"lang" in s && t(0, n = s.lang), "iframeurl" in s && t(1, f = s.iframeurl), "translationurl" in s && t(2, h = s.translationurl), "showbackbutton" in s && t(3, m = s.showbackbutton), "mbsource" in s && t(4, d = s.mbsource), "clientstyling" in s && t(5, g = s.clientstyling), "clientstylingurl" in s && t(6, C = s.clientstylingurl), "title" in s && t(7, o = s.title);
|
|
292
293
|
}, i.$$.update = () => {
|
|
293
294
|
i.$$.dirty & /*lang*/
|
|
294
295
|
1 && n && u(), i.$$.dirty & /*translationurl*/
|
|
295
296
|
4 && h && l(), i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
296
|
-
288 &&
|
|
297
|
-
320 && C && r &&
|
|
298
|
-
272 &&
|
|
297
|
+
288 && g && r && X(r, g), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
298
|
+
320 && C && r && Y(r, C), i.$$.dirty & /*mbsource, customStylingContainer*/
|
|
299
|
+
272 && d && r && x(r, `${d}.Style`);
|
|
299
300
|
}, [
|
|
300
301
|
n,
|
|
301
302
|
f,
|
|
302
303
|
h,
|
|
303
304
|
m,
|
|
304
|
-
g,
|
|
305
305
|
d,
|
|
306
|
+
g,
|
|
306
307
|
C,
|
|
307
308
|
o,
|
|
308
309
|
r,
|
|
309
310
|
c,
|
|
310
|
-
|
|
311
|
+
O,
|
|
311
312
|
M,
|
|
312
313
|
q,
|
|
313
314
|
z
|
|
314
315
|
];
|
|
315
316
|
}
|
|
316
|
-
class
|
|
317
|
+
class ne extends G {
|
|
317
318
|
constructor(e) {
|
|
318
|
-
super(),
|
|
319
|
+
super(), J(
|
|
319
320
|
this,
|
|
320
321
|
e,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
ie,
|
|
323
|
+
te,
|
|
324
|
+
K,
|
|
324
325
|
{
|
|
325
326
|
lang: 0,
|
|
326
327
|
iframeurl: 1,
|
|
@@ -331,7 +332,7 @@ class te extends F {
|
|
|
331
332
|
clientstylingurl: 6,
|
|
332
333
|
title: 7
|
|
333
334
|
},
|
|
334
|
-
|
|
335
|
+
ee
|
|
335
336
|
);
|
|
336
337
|
}
|
|
337
338
|
get lang() {
|
|
@@ -383,7 +384,7 @@ class te extends F {
|
|
|
383
384
|
this.$$set({ title: e }), b();
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
|
-
|
|
387
|
+
P(ne, { lang: {}, iframeurl: {}, translationurl: {}, showbackbutton: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, title: {} }, [], [], !0);
|
|
387
388
|
export {
|
|
388
|
-
|
|
389
|
+
ne as C
|
|
389
390
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierIframeRedirect-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierIframeRedirect-BJ5Lsp2u.cjs")).then(({default:t})=>{!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierIframeRedirect-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierIframeRedirect-CLzIN4JD.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-iframe-redirect") && customElements.define("cashier-iframe-redirect", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierHeader-DF3Mljkl.cjs");function C(i,t){e.addMessages(i,t)}function B(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const p={en:{redirectHeader:"Deposit redirect"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.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-DF3Mljkl.cjs")).then(t=>t.CashierHeader_ce).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.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-l6siWw78.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}function q(i){e.append_styles(i,"svelte-1ex0q4o",".CashierRedirectIframe{height:100%;width:100%;position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box;width:100%;height:100%}.CashierHeaderLeftButton{color:var(--emw--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(--emw--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;fill:var(--emw--color-primary, #F9C405)}")}function L(i){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"><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"></path></svg>',e.attr(t,"slot","leftButton"),e.attr(t,"class","CashierHeaderLeftButton")},m(f,m){e.insert(f,t,m),n||(s=e.listen(t,"click",i[10]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,s()}}}function v(i){let t,n,s;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>',e.attr(t,"slot","rightButton"),e.attr(t,"class","CashierHeaderRightButton")},m(f,m){e.insert(f,t,m),n||(s=e.listen(t,"click",i[10]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,s()}}}function k(i){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",i[6]),e.set_custom_element_data(t,"clientstyling",i[5]),e.set_custom_element_data(t,"mbsource",i[4])},m(n,s){e.insert(n,t,s)},p(n,s){s&64&&e.set_custom_element_data(t,"clientstylingurl",n[6]),s&32&&e.set_custom_element_data(t,"clientstyling",n[5]),s&16&&e.set_custom_element_data(t,"mbsource",n[4])},d(n){n&&e.detach(t)}}}function R(i){let t,n,s,f,m,d,h,g,_,o=!!i[3]&&i[3]!=="false"&&L(i),r=(!i[3]||i[3]==="false")&&v(i),u=i[9]&&k(i);return{c(){t=e.element("div"),n=e.element("cashier-header"),o&&o.c(),s=e.space(),r&&r.c(),f=e.space(),u&&u.c(),m=e.space(),d=e.element("iframe"),e.set_custom_element_data(n,"lang",i[0]),e.set_custom_element_data(n,"translationurl",i[2]),e.set_custom_element_data(n,"title",i[7]),e.set_custom_element_data(n,"showbackbutton",i[3]),e.set_custom_element_data(n,"clientstylingurl",i[6]),e.set_custom_element_data(n,"clientstyling",i[5]),e.set_custom_element_data(n,"mbsource",i[4]),e.src_url_equal(d.src,h=i[1])||e.attr(d,"src",h),e.attr(d,"frameborder","0"),e.attr(t,"class","CashierRedirectIframe")},m(a,c){e.insert(a,t,c),e.append(t,n),o&&o.m(n,null),e.append(n,s),r&&r.m(n,null),e.append(t,f),u&&u.m(t,null),e.append(t,m),e.append(t,d),i[13](t),g||(_=e.listen(d,"load",i[12]),g=!0)},p(a,[c]){a[3]&&a[3]!=="false"?o?o.p(a,c):(o=L(a),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!a[3]||a[3]==="false"?r?r.p(a,c):(r=v(a),r.c(),r.m(n,null)):r&&(r.d(1),r=null),c&1&&e.set_custom_element_data(n,"lang",a[0]),c&4&&e.set_custom_element_data(n,"translationurl",a[2]),c&128&&e.set_custom_element_data(n,"title",a[7]),c&8&&e.set_custom_element_data(n,"showbackbutton",a[3]),c&64&&e.set_custom_element_data(n,"clientstylingurl",a[6]),c&32&&e.set_custom_element_data(n,"clientstyling",a[5]),c&16&&e.set_custom_element_data(n,"mbsource",a[4]),a[9]?u?u.p(a,c):(u=k(a),u.c(),u.m(t,m)):u&&(u.d(1),u=null),c&2&&!e.src_url_equal(d.src,h=a[1])&&e.attr(d,"src",h)},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o&&o.d(),r&&r.d(),u&&u.d(),i[13](null),g=!1,_()}}}function j(i,t,n){let{lang:s="en"}=t,{iframeurl:f}=t,{translationurl:m=""}=t,{showbackbutton:d=""}=t,{mbsource:h}=t,{clientstyling:g}=t,{clientstylingurl:_}=t,{title:o=""}=t,r,u=!0;const a=()=>{let l=m;if(l)return fetch(l).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{C(y,b[y])})}).catch(b=>{console.log(b)})};Object.keys(p).forEach(l=>{C(l,p[l])});const c=()=>{B(s)},H=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},w=l=>{l.target.src&&n(9,u=!1)};e.onMount(()=>()=>{});const M=l=>w(l);function S(l){e.binding_callbacks[l?"unshift":"push"](()=>{r=l,n(8,r)})}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),"mbsource"in l&&n(4,h=l.mbsource),"clientstyling"in l&&n(5,g=l.clientstyling),"clientstylingurl"in l&&n(6,_=l.clientstylingurl),"title"in l&&n(7,o=l.title)},i.$$.update=()=>{i.$$.dirty&1&&s&&c(),i.$$.dirty&4&&m&&a(),i.$$.dirty&288&&g&&r&&e.setClientStyling(r,g),i.$$.dirty&320&&_&&r&&e.setClientStylingURL(r,_),i.$$.dirty&272&&h&&r&&e.setStreamStyling(r,`${h}.Style`)},[s,f,m,d,h,g,_,o,r,u,H,w,M,S]}class E extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,j,R,e.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,mbsource:4,clientstyling:5,clientstylingurl:6,title:7},q)}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(t){this.$$set({iframeurl:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(t){this.$$set({showbackbutton:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}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 title(){return this.$$.ctx[7]}set title(t){this.$$set({title:t}),e.flush()}}e.create_custom_element(E,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},mbsource:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=E;
|