@everymatrix/cashier-iframe-redirect 1.45.14 → 1.46.1
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-B66UeJWY.cjs +1 -0
- package/components/{CashierIframeRedirect-BZfd-KB_.js → CashierIframeRedirect-BPnoyFKd.js} +21 -21
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierIframeRedirect-jOwz6cTa.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierHeader-DjERnafG.cjs");function C(i,e){t.addMessages(i,e)}function T(i){t.init({fallbackLocale:"en"}),t.$locale.set(i)}const y={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};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-DjERnafG.cjs")).then(e=>e.CashierHeader_ce).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-Ds1-FcQu.cjs")).then(({default:e})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",e.element)})}function S(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 L(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 v(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 k(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 q(i){let e,n,s,f,m,d,g,_,w,o=!!i[3]&&i[3]!=="false"&&L(i),r=(!i[3]||i[3]==="false")&&v(i),c=i[8]&&k(i);return{c(){e=t.element("div"),n=t.element("cashier-header"),o&&o.c(),s=t.space(),r&&r.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(a,u){t.insert(a,e,u),t.append(e,n),o&&o.m(n,null),t.append(n,s),r&&r.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(a,[u]){a[3]&&a[3]!=="false"?o?o.p(a,u):(o=L(a),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!a[3]||a[3]==="false"?r?r.p(a,u):(r=v(a),r.c(),r.m(n,null)):r&&(r.d(1),r=null),u&1&&t.set_custom_element_data(n,"lang",a[0]),u&4&&t.set_custom_element_data(n,"translationurl",a[2]),u&64&&t.set_custom_element_data(n,"title",a[6]),u&8&&t.set_custom_element_data(n,"showbackbutton",a[3]),u&32&&t.set_custom_element_data(n,"clientstylingurl",a[5]),u&16&&t.set_custom_element_data(n,"clientstyling",a[4]),a[8]?c?c.p(a,u):(c=k(a),c.c(),c.m(e,m)):c&&(c.d(1),c=null),u&2&&!t.src_url_equal(d.src,g=a[1])&&t.attr(d,"src",g)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),o&&o.d(),r&&r.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,r;const c=()=>{let l=m;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(p=>{C(p,h[p])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(l=>{C(l,y[l])});const a=()=>{T(s)},u=()=>{let l=document.createElement("style");l.innerHTML=g,r.appendChild(l)},H=()=>{let l=new URL(_),h=document.createElement("style");fetch(l.href).then(p=>p.text()).then(p=>{h.innerHTML=p,setTimeout(()=>{r.appendChild(h)},1)})},M=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},b=l=>{l.target.src&&n(8,o=!1)},B=l=>b(l);function R(l){t.binding_callbacks[l?"unshift":"push"](()=>{r=l,n(7,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),"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&&a(),i.$$.dirty&4&&m&&c(),i.$$.dirty&144&&g&&r&&u(),i.$$.dirty&160&&_&&r&&H()},[s,f,m,d,g,_,w,r,o,M,b,B,R]}class E extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,O,q,t.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},S)}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(E,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=E;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as N, i as U, $ as Z, S as F, b as P, f as
|
|
1
|
+
import { a as N, i as U, $ as Z, S as F, b as P, f as C, c as G, s as J, d as K, e as p, g as H, h as c, j as R, k as b, l as v, m as L, n as M, o as k, p as E, q as Q } from "./CashierHeader-DyNtJk3n.js";
|
|
2
2
|
function T(i, e) {
|
|
3
3
|
N(i, e);
|
|
4
4
|
}
|
|
@@ -54,23 +54,23 @@ if (typeof window != "undefined") {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
function W(i) {
|
|
57
|
-
K(i, "svelte-
|
|
57
|
+
K(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}");
|
|
58
58
|
}
|
|
59
59
|
function j(i) {
|
|
60
60
|
let e, t, l;
|
|
61
61
|
return {
|
|
62
62
|
c() {
|
|
63
|
-
e = p("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>',
|
|
63
|
+
e = p("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");
|
|
64
64
|
},
|
|
65
65
|
m(u, h) {
|
|
66
|
-
|
|
66
|
+
v(u, e, h), t || (l = M(
|
|
67
67
|
e,
|
|
68
68
|
"click",
|
|
69
69
|
/*close*/
|
|
70
70
|
i[9]
|
|
71
71
|
), t = !0);
|
|
72
72
|
},
|
|
73
|
-
p:
|
|
73
|
+
p: k,
|
|
74
74
|
d(u) {
|
|
75
75
|
u && E(e), t = !1, l();
|
|
76
76
|
}
|
|
@@ -80,17 +80,17 @@ function D(i) {
|
|
|
80
80
|
let e, t, l;
|
|
81
81
|
return {
|
|
82
82
|
c() {
|
|
83
|
-
e = p("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>',
|
|
83
|
+
e = p("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");
|
|
84
84
|
},
|
|
85
85
|
m(u, h) {
|
|
86
|
-
|
|
86
|
+
v(u, e, h), t || (l = M(
|
|
87
87
|
e,
|
|
88
88
|
"click",
|
|
89
89
|
/*close*/
|
|
90
90
|
i[9]
|
|
91
91
|
), t = !0);
|
|
92
92
|
},
|
|
93
|
-
p:
|
|
93
|
+
p: k,
|
|
94
94
|
d(u) {
|
|
95
95
|
u && E(e), t = !1, l();
|
|
96
96
|
}
|
|
@@ -113,7 +113,7 @@ function I(i) {
|
|
|
113
113
|
);
|
|
114
114
|
},
|
|
115
115
|
m(t, l) {
|
|
116
|
-
|
|
116
|
+
v(t, e, l);
|
|
117
117
|
},
|
|
118
118
|
p(t, l) {
|
|
119
119
|
l & /*clientstylingurl*/
|
|
@@ -177,10 +177,10 @@ function X(i) {
|
|
|
177
177
|
/*clientstyling*/
|
|
178
178
|
i[4]
|
|
179
179
|
), R(d.src, g = /*iframeurl*/
|
|
180
|
-
i[1]) ||
|
|
180
|
+
i[1]) || b(d, "src", g), b(d, "frameborder", "0"), b(e, "class", "CashierRedirectIframe");
|
|
181
181
|
},
|
|
182
182
|
m(s, f) {
|
|
183
|
-
|
|
183
|
+
v(s, e, f), L(e, t), a && a.m(t, null), L(t, l), r && r.m(t, null), L(e, u), o && o.m(e, null), L(e, h), L(e, d), i[12](e), w || (_ = M(
|
|
184
184
|
d,
|
|
185
185
|
"load",
|
|
186
186
|
/*load_handler*/
|
|
@@ -231,10 +231,10 @@ function X(i) {
|
|
|
231
231
|
), /*isLoading*/
|
|
232
232
|
s[8] ? o ? o.p(s, f) : (o = I(s), o.c(), o.m(e, h)) : o && (o.d(1), o = null), f & /*iframeurl*/
|
|
233
233
|
2 && !R(d.src, g = /*iframeurl*/
|
|
234
|
-
s[1]) &&
|
|
234
|
+
s[1]) && b(d, "src", g);
|
|
235
235
|
},
|
|
236
|
-
i:
|
|
237
|
-
o:
|
|
236
|
+
i: k,
|
|
237
|
+
o: k,
|
|
238
238
|
d(s) {
|
|
239
239
|
s && E(e), a && a.d(), r && r.d(), o && o.d(), i[12](null), w = !1, _();
|
|
240
240
|
}
|
|
@@ -329,43 +329,43 @@ class x extends F {
|
|
|
329
329
|
return this.$$.ctx[0];
|
|
330
330
|
}
|
|
331
331
|
set lang(e) {
|
|
332
|
-
this.$$set({ lang: e }),
|
|
332
|
+
this.$$set({ lang: e }), C();
|
|
333
333
|
}
|
|
334
334
|
get iframeurl() {
|
|
335
335
|
return this.$$.ctx[1];
|
|
336
336
|
}
|
|
337
337
|
set iframeurl(e) {
|
|
338
|
-
this.$$set({ iframeurl: e }),
|
|
338
|
+
this.$$set({ iframeurl: e }), C();
|
|
339
339
|
}
|
|
340
340
|
get translationurl() {
|
|
341
341
|
return this.$$.ctx[2];
|
|
342
342
|
}
|
|
343
343
|
set translationurl(e) {
|
|
344
|
-
this.$$set({ translationurl: e }),
|
|
344
|
+
this.$$set({ translationurl: e }), C();
|
|
345
345
|
}
|
|
346
346
|
get showbackbutton() {
|
|
347
347
|
return this.$$.ctx[3];
|
|
348
348
|
}
|
|
349
349
|
set showbackbutton(e) {
|
|
350
|
-
this.$$set({ showbackbutton: e }),
|
|
350
|
+
this.$$set({ showbackbutton: e }), C();
|
|
351
351
|
}
|
|
352
352
|
get clientstyling() {
|
|
353
353
|
return this.$$.ctx[4];
|
|
354
354
|
}
|
|
355
355
|
set clientstyling(e) {
|
|
356
|
-
this.$$set({ clientstyling: e }),
|
|
356
|
+
this.$$set({ clientstyling: e }), C();
|
|
357
357
|
}
|
|
358
358
|
get clientstylingurl() {
|
|
359
359
|
return this.$$.ctx[5];
|
|
360
360
|
}
|
|
361
361
|
set clientstylingurl(e) {
|
|
362
|
-
this.$$set({ clientstylingurl: e }),
|
|
362
|
+
this.$$set({ clientstylingurl: e }), C();
|
|
363
363
|
}
|
|
364
364
|
get title() {
|
|
365
365
|
return this.$$.ctx[6];
|
|
366
366
|
}
|
|
367
367
|
set title(e) {
|
|
368
|
-
this.$$set({ title: e }),
|
|
368
|
+
this.$$set({ title: e }), C();
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
G(x, { lang: {}, iframeurl: {}, translationurl: {}, showbackbutton: {}, clientstyling: {}, clientstylingurl: {}, title: {} }, [], [], !0);
|
|
@@ -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-B66UeJWY.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-BPnoyFKd.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 t=require("./CashierHeader-DjERnafG.cjs");function b(i,e){t.addMessages(i,e)}function T(i){t.init({fallbackLocale:"en"}),t.$locale.set(i)}const y={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};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-DjERnafG.cjs")).then(e=>e.CashierHeader_ce).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-Ds1-FcQu.cjs")).then(({default:e})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",e.element)})}function S(i){t.append_styles(i,"svelte-mxoveh",".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, 32px));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 L(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 v(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 k(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 q(i){let e,n,s,f,m,d,g,_,w,o=!!i[3]&&i[3]!=="false"&&L(i),r=(!i[3]||i[3]==="false")&&v(i),c=i[8]&&k(i);return{c(){e=t.element("div"),n=t.element("cashier-header"),o&&o.c(),s=t.space(),r&&r.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(a,u){t.insert(a,e,u),t.append(e,n),o&&o.m(n,null),t.append(n,s),r&&r.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(a,[u]){a[3]&&a[3]!=="false"?o?o.p(a,u):(o=L(a),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!a[3]||a[3]==="false"?r?r.p(a,u):(r=v(a),r.c(),r.m(n,null)):r&&(r.d(1),r=null),u&1&&t.set_custom_element_data(n,"lang",a[0]),u&4&&t.set_custom_element_data(n,"translationurl",a[2]),u&64&&t.set_custom_element_data(n,"title",a[6]),u&8&&t.set_custom_element_data(n,"showbackbutton",a[3]),u&32&&t.set_custom_element_data(n,"clientstylingurl",a[5]),u&16&&t.set_custom_element_data(n,"clientstyling",a[4]),a[8]?c?c.p(a,u):(c=k(a),c.c(),c.m(e,m)):c&&(c.d(1),c=null),u&2&&!t.src_url_equal(d.src,g=a[1])&&t.attr(d,"src",g)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),o&&o.d(),r&&r.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,r;const c=()=>{let l=m;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(p=>{b(p,h[p])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(l=>{b(l,y[l])});const a=()=>{T(s)},u=()=>{let l=document.createElement("style");l.innerHTML=g,r.appendChild(l)},H=()=>{let l=new URL(_),h=document.createElement("style");fetch(l.href).then(p=>p.text()).then(p=>{h.innerHTML=p,setTimeout(()=>{r.appendChild(h)},1)})},M=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},C=l=>{l.target.src&&n(8,o=!1)},B=l=>C(l);function R(l){t.binding_callbacks[l?"unshift":"push"](()=>{r=l,n(7,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),"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&&a(),i.$$.dirty&4&&m&&c(),i.$$.dirty&144&&g&&r&&u(),i.$$.dirty&160&&_&&r&&H()},[s,f,m,d,g,_,w,r,o,M,C,B,R]}class E extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,O,q,t.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},S)}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(E,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=E;
|