@everymatrix/cashier-iframe-redirect 1.73.0 → 1.73.2

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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierHeader-C4g3EugX.cjs");function y(i,t){e.addMessages(i,t)}function B(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const p={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(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-C4g3EugX.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-DOg7wLjc.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}function R(i){e.append_styles(i,"svelte-wuv80u",".CashierRedirectIframe{height:inherit;width:inherit}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}.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}")}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" 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,"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" 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,"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 q(i){let t,n,s,f,m,d,h,g,_,o=!!i[3]&&i[3]!=="false"&&L(i),a=(!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(),a&&a.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(r,c){e.insert(r,t,c),e.append(t,n),o&&o.m(n,null),e.append(n,s),a&&a.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(r,[c]){r[3]&&r[3]!=="false"?o?o.p(r,c):(o=L(r),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!r[3]||r[3]==="false"?a?a.p(r,c):(a=v(r),a.c(),a.m(n,null)):a&&(a.d(1),a=null),c&1&&e.set_custom_element_data(n,"lang",r[0]),c&4&&e.set_custom_element_data(n,"translationurl",r[2]),c&128&&e.set_custom_element_data(n,"title",r[7]),c&8&&e.set_custom_element_data(n,"showbackbutton",r[3]),c&64&&e.set_custom_element_data(n,"clientstylingurl",r[6]),c&32&&e.set_custom_element_data(n,"clientstyling",r[5]),c&16&&e.set_custom_element_data(n,"mbsource",r[4]),r[9]?u?u.p(r,c):(u=k(r),u.c(),u.m(t,m)):u&&(u.d(1),u=null),c&2&&!e.src_url_equal(d.src,h=r[1])&&e.attr(d,"src",h)},i:e.noop,o:e.noop,d(r){r&&e.detach(t),o&&o.d(),a&&a.d(),u&&u.d(),i[13](null),g=!1,_()}}}function D(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,a,u=!0;const r=()=>{let l=m;if(l)return fetch(l).then(b=>b.json()).then(b=>{Object.keys(b).forEach(C=>{y(C,b[C])})}).catch(b=>{console.log(b)})};Object.keys(p).forEach(l=>{y(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"](()=>{a=l,n(8,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),"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&&r(),i.$$.dirty&288&&g&&a&&e.setClientStyling(a,g),i.$$.dirty&320&&_&&a&&e.setClientStylingURL(a,_),i.$$.dirty&272&&h&&a&&e.setStreamStyling(a,`${h}.Style`)},[s,f,m,d,h,g,_,o,a,u,H,w,M,S]}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},R)}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 z, i as A, $ as N, c as Z, S as F, b as P, s as G, f as b, d as J, n as _, e as k, g as a, h as R, j as w, k as v, l as L, m as H, o as p, p as E, q as K, r as Q } from "./CashierHeader-B7Cx4dkg.js";
2
- function S(i, e) {
3
- z(i, e);
1
+ import { a as A, i as N, $ as U, c as Z, S as P, b as F, s as G, f as b, d as J, n as L, e as v, g as a, h as S, j as w, k, l as _, m as H, o as p, p as E, q as K, r as Q, t as V, u as W, v as X } from "./CashierHeader-C9SV7Lec.js";
2
+ function R(i, e) {
3
+ A(i, e);
4
4
  }
5
- function V(i) {
6
- A({
5
+ function Y(i) {
6
+ N({
7
7
  fallbackLocale: "en"
8
- }), N.set(i);
8
+ }), U.set(i);
9
9
  }
10
- const T = {
10
+ const D = {
11
11
  en: {
12
12
  redirectHeader: "Deposit redirect"
13
13
  },
@@ -24,29 +24,6 @@ const T = {
24
24
  redirectHeader: "Deposit redirect"
25
25
  }
26
26
  };
27
- function W(i, e) {
28
- if (i) {
29
- const t = document.createElement("style");
30
- t.innerHTML = e, i.appendChild(t);
31
- }
32
- }
33
- function X(i, e) {
34
- const t = new URL(e);
35
- fetch(t.href).then((n) => n.text()).then((n) => {
36
- const o = document.createElement("style");
37
- o.innerHTML = n, i && i.appendChild(o);
38
- }).catch((n) => {
39
- console.error("There was an error while trying to load client styling from URL", n);
40
- });
41
- }
42
- function Y(i, e, t) {
43
- if (window.emMessageBus) {
44
- const n = document.createElement("style");
45
- window.emMessageBus.subscribe(e, (o) => {
46
- n.innerHTML = o, i && i.appendChild(n);
47
- });
48
- }
49
- }
50
27
  if (typeof window < "u") {
51
28
  let i = function(e) {
52
29
  return function(...t) {
@@ -59,7 +36,7 @@ if (typeof window < "u") {
59
36
  }
60
37
  };
61
38
  };
62
- customElements.define = i(customElements.define), import("./CashierHeader-B7Cx4dkg.js").then((e) => e.C).then(({ default: e }) => {
39
+ customElements.define = i(customElements.define), import("./CashierHeader-C9SV7Lec.js").then((e) => e.C).then(({ default: e }) => {
63
40
  !customElements.get("cashier-header") && customElements.define("cashier-header", e.element);
64
41
  });
65
42
  }
@@ -75,54 +52,54 @@ if (typeof window < "u") {
75
52
  }
76
53
  };
77
54
  };
78
- customElements.define = i(customElements.define), import("./CashierSpinner-D-aDesBN.js").then(({ default: e }) => {
55
+ customElements.define = i(customElements.define), import("./CashierSpinner-DAYJJPhO.js").then(({ default: e }) => {
79
56
  !customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
80
57
  });
81
58
  }
82
59
  function x(i) {
83
60
  J(i, "svelte-wuv80u", ".CashierRedirectIframe{height:inherit;width:inherit}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}.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}");
84
61
  }
85
- function D(i) {
62
+ function j(i) {
86
63
  let e, t, n;
87
64
  return {
88
65
  c() {
89
66
  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>', w(e, "slot", "leftButton"), w(e, "class", "CashierHeaderLeftButton");
90
67
  },
91
- m(o, h) {
92
- v(o, e, h), t || (n = H(
68
+ m(f, h) {
69
+ k(f, e, h), t || (n = H(
93
70
  e,
94
71
  "click",
95
72
  /*close*/
96
73
  i[10]
97
74
  ), t = !0);
98
75
  },
99
- p: _,
100
- d(o) {
101
- o && k(e), t = !1, n();
76
+ p: L,
77
+ d(f) {
78
+ f && v(e), t = !1, n();
102
79
  }
103
80
  };
104
81
  }
105
- function j(i) {
82
+ function I(i) {
106
83
  let e, t, n;
107
84
  return {
108
85
  c() {
109
86
  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>', w(e, "slot", "rightButton"), w(e, "class", "CashierHeaderRightButton");
110
87
  },
111
- m(o, h) {
112
- v(o, e, h), t || (n = H(
88
+ m(f, h) {
89
+ k(f, e, h), t || (n = H(
113
90
  e,
114
91
  "click",
115
92
  /*close*/
116
93
  i[10]
117
94
  ), t = !0);
118
95
  },
119
- p: _,
120
- d(o) {
121
- o && k(e), t = !1, n();
96
+ p: L,
97
+ d(f) {
98
+ f && v(e), t = !1, n();
122
99
  }
123
100
  };
124
101
  }
125
- function I(i) {
102
+ function O(i) {
126
103
  let e;
127
104
  return {
128
105
  c() {
@@ -144,7 +121,7 @@ function I(i) {
144
121
  );
145
122
  },
146
123
  m(t, n) {
147
- v(t, e, n);
124
+ k(t, e, n);
148
125
  },
149
126
  p(t, n) {
150
127
  n & /*clientstylingurl*/
@@ -168,22 +145,22 @@ function I(i) {
168
145
  );
169
146
  },
170
147
  d(t) {
171
- t && k(e);
148
+ t && v(e);
172
149
  }
173
150
  };
174
151
  }
175
152
  function $(i) {
176
- let e, t, n, o, h, m, d, g, C, c = !!/*showbackbutton*/
153
+ let e, t, n, f, h, m, d, g, C, o = !!/*showbackbutton*/
177
154
  i[3] && /*showbackbutton*/
178
- i[3] !== "false" && D(i), r = (!/*showbackbutton*/
155
+ i[3] !== "false" && j(i), r = (!/*showbackbutton*/
179
156
  i[3] || /*showbackbutton*/
180
- i[3] === "false") && j(i), u = (
157
+ i[3] === "false") && I(i), c = (
181
158
  /*isLoading*/
182
- i[9] && I(i)
159
+ i[9] && O(i)
183
160
  );
184
161
  return {
185
162
  c() {
186
- e = p("div"), t = p("cashier-header"), c && c.c(), n = E(), r && r.c(), o = E(), u && u.c(), h = E(), m = p("iframe"), a(
163
+ e = p("div"), t = p("cashier-header"), o && o.c(), n = E(), r && r.c(), f = E(), c && c.c(), h = E(), m = p("iframe"), a(
187
164
  t,
188
165
  "lang",
189
166
  /*lang*/
@@ -218,136 +195,136 @@ function $(i) {
218
195
  "mbsource",
219
196
  /*mbsource*/
220
197
  i[4]
221
- ), R(m.src, d = /*iframeurl*/
198
+ ), S(m.src, d = /*iframeurl*/
222
199
  i[1]) || w(m, "src", d), w(m, "frameborder", "0"), w(e, "class", "CashierRedirectIframe");
223
200
  },
224
- m(l, f) {
225
- v(l, e, f), L(e, t), c && c.m(t, null), L(t, n), r && r.m(t, null), L(e, o), u && u.m(e, null), L(e, h), L(e, m), i[13](e), g || (C = H(
201
+ m(l, u) {
202
+ k(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 = H(
226
203
  m,
227
204
  "load",
228
205
  /*load_handler*/
229
206
  i[12]
230
207
  ), g = !0);
231
208
  },
232
- p(l, [f]) {
209
+ p(l, [u]) {
233
210
  /*showbackbutton*/
234
211
  l[3] && /*showbackbutton*/
235
- l[3] !== "false" ? c ? c.p(l, f) : (c = D(l), c.c(), c.m(t, n)) : c && (c.d(1), c = null), !/*showbackbutton*/
212
+ l[3] !== "false" ? o ? o.p(l, u) : (o = j(l), o.c(), o.m(t, n)) : o && (o.d(1), o = null), !/*showbackbutton*/
236
213
  l[3] || /*showbackbutton*/
237
- l[3] === "false" ? r ? r.p(l, f) : (r = j(l), r.c(), r.m(t, null)) : r && (r.d(1), r = null), f & /*lang*/
214
+ l[3] === "false" ? r ? r.p(l, u) : (r = I(l), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u & /*lang*/
238
215
  1 && a(
239
216
  t,
240
217
  "lang",
241
218
  /*lang*/
242
219
  l[0]
243
- ), f & /*translationurl*/
220
+ ), u & /*translationurl*/
244
221
  4 && a(
245
222
  t,
246
223
  "translationurl",
247
224
  /*translationurl*/
248
225
  l[2]
249
- ), f & /*title*/
226
+ ), u & /*title*/
250
227
  128 && a(
251
228
  t,
252
229
  "title",
253
230
  /*title*/
254
231
  l[7]
255
- ), f & /*showbackbutton*/
232
+ ), u & /*showbackbutton*/
256
233
  8 && a(
257
234
  t,
258
235
  "showbackbutton",
259
236
  /*showbackbutton*/
260
237
  l[3]
261
- ), f & /*clientstylingurl*/
238
+ ), u & /*clientstylingurl*/
262
239
  64 && a(
263
240
  t,
264
241
  "clientstylingurl",
265
242
  /*clientstylingurl*/
266
243
  l[6]
267
- ), f & /*clientstyling*/
244
+ ), u & /*clientstyling*/
268
245
  32 && a(
269
246
  t,
270
247
  "clientstyling",
271
248
  /*clientstyling*/
272
249
  l[5]
273
- ), f & /*mbsource*/
250
+ ), u & /*mbsource*/
274
251
  16 && a(
275
252
  t,
276
253
  "mbsource",
277
254
  /*mbsource*/
278
255
  l[4]
279
256
  ), /*isLoading*/
280
- l[9] ? u ? u.p(l, f) : (u = I(l), u.c(), u.m(e, h)) : u && (u.d(1), u = null), f & /*iframeurl*/
281
- 2 && !R(m.src, d = /*iframeurl*/
257
+ l[9] ? c ? c.p(l, u) : (c = O(l), c.c(), c.m(e, h)) : c && (c.d(1), c = null), u & /*iframeurl*/
258
+ 2 && !S(m.src, d = /*iframeurl*/
282
259
  l[1]) && w(m, "src", d);
283
260
  },
284
- i: _,
285
- o: _,
261
+ i: L,
262
+ o: L,
286
263
  d(l) {
287
- l && k(e), c && c.d(), r && r.d(), u && u.d(), i[13](null), g = !1, C();
264
+ l && v(e), o && o.d(), r && r.d(), c && c.d(), i[13](null), g = !1, C();
288
265
  }
289
266
  };
290
267
  }
291
268
  function ee(i, e, t) {
292
- let { lang: n = "en" } = e, { iframeurl: o } = e, { translationurl: h = "" } = e, { showbackbutton: m = "" } = e, { mbsource: d } = e, { clientstyling: g } = e, { clientstylingurl: C } = e, { title: c = "" } = e, r, u = !0;
269
+ 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;
293
270
  const l = () => {
294
271
  let s = h;
295
272
  if (s)
296
273
  return fetch(s).then((y) => y.json()).then((y) => {
297
- Object.keys(y).forEach((B) => {
298
- S(B, y[B]);
274
+ Object.keys(y).forEach((M) => {
275
+ R(M, y[M]);
299
276
  });
300
277
  }).catch((y) => {
301
278
  console.log(y);
302
279
  });
303
280
  };
304
- Object.keys(T).forEach((s) => {
305
- S(s, T[s]);
281
+ Object.keys(D).forEach((s) => {
282
+ R(s, D[s]);
306
283
  });
307
- const f = () => {
308
- V(n);
309
- }, O = () => {
284
+ const u = () => {
285
+ Y(n);
286
+ }, T = () => {
310
287
  window.postMessage({ type: "CloseIframe" }, window.location.href);
311
- }, M = (s) => {
312
- s.target.src && t(9, u = !1);
288
+ }, B = (s) => {
289
+ s.target.src && t(9, c = !1);
313
290
  };
314
291
  K(() => () => {
315
292
  });
316
- const U = (s) => M(s);
317
- function q(s) {
293
+ const q = (s) => B(s);
294
+ function z(s) {
318
295
  Q[s ? "unshift" : "push"](() => {
319
296
  r = s, t(8, r);
320
297
  });
321
298
  }
322
299
  return i.$$set = (s) => {
323
- "lang" in s && t(0, n = s.lang), "iframeurl" in s && t(1, o = 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, c = s.title);
300
+ "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);
324
301
  }, i.$$.update = () => {
325
302
  i.$$.dirty & /*lang*/
326
- 1 && n && f(), i.$$.dirty & /*translationurl*/
303
+ 1 && n && u(), i.$$.dirty & /*translationurl*/
327
304
  4 && h && l(), i.$$.dirty & /*clientstyling, customStylingContainer*/
328
- 288 && g && r && W(r, g), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
329
- 320 && C && r && X(r, C), i.$$.dirty & /*mbsource, customStylingContainer*/
330
- 272 && d && r && Y(r, `${d}.Style`);
305
+ 288 && g && r && V(r, g), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
306
+ 320 && C && r && W(r, C), i.$$.dirty & /*mbsource, customStylingContainer*/
307
+ 272 && d && r && X(r, `${d}.Style`);
331
308
  }, [
332
309
  n,
333
- o,
310
+ f,
334
311
  h,
335
312
  m,
336
313
  d,
337
314
  g,
338
315
  C,
339
- c,
316
+ o,
340
317
  r,
341
- u,
342
- O,
343
- M,
344
- U,
345
- q
318
+ c,
319
+ T,
320
+ B,
321
+ q,
322
+ z
346
323
  ];
347
324
  }
348
- class te extends F {
325
+ class te extends P {
349
326
  constructor(e) {
350
- super(), P(
327
+ super(), F(
351
328
  this,
352
329
  e,
353
330
  ee,
@@ -417,8 +394,5 @@ class te extends F {
417
394
  }
418
395
  Z(te, { lang: {}, iframeurl: {}, translationurl: {}, showbackbutton: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, title: {} }, [], [], !0);
419
396
  export {
420
- te as C,
421
- X as a,
422
- Y as b,
423
- W as s
397
+ te as C
424
398
  };