@everymatrix/cashier-method-details 1.45.0 → 1.45.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.
- package/components/CashierConfirmModal-BsoB5fQM.cjs +4 -0
- package/components/{CashierConfirmModal-B-t1-wAt.js → CashierConfirmModal-Dw8BnUfp.js} +168 -168
- package/components/{CashierError-DaumM6Zr.js → CashierError-B_iMgTfr.js} +28 -27
- package/components/CashierError-ClzxZoH7.cjs +5 -0
- package/components/CashierHeader-BU_vM2lH.cjs +1 -0
- package/components/CashierHeader-VE5z702l.js +360 -0
- package/components/{CashierIframeRedirect-Bilctj-5.js → CashierIframeRedirect-CUdjcENK.js} +72 -73
- package/components/CashierIframeRedirect-DSYHz0IC.cjs +1 -0
- package/components/{CashierMethodDetails-CJU3RjOA.js → CashierMethodDetails-5wGvaaR0.js} +674 -675
- package/components/CashierMethodDetails-DPowLei9.cjs +18 -0
- package/components/CashierModal-BFlGJozz.js +221 -0
- package/components/CashierModal-DljNagOg.cjs +1 -0
- package/components/CashierNotifications-BhCyEcyg.js +136 -0
- package/components/CashierNotifications-FlAVIynI.cjs +1 -0
- package/components/{CashierReceiptPage-DT7FhfRz.js → CashierReceiptPage-CY8dJVSv.js} +242 -243
- package/components/CashierReceiptPage-gWSm3RqW.cjs +1 -0
- package/components/CashierSpinner-DREUPtXI.js +71 -0
- package/components/CashierSpinner-DUwdQyI3.cjs +1 -0
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/package.json +2 -2
- package/components/CashierConfirmModal-O8Y6vOPF.cjs +0 -4
- package/components/CashierError-CnDiY61e.cjs +0 -5
- package/components/CashierHeader-4ARwc1sM.cjs +0 -1
- package/components/CashierHeader-CYcLko5g.js +0 -361
- package/components/CashierIframeRedirect-BOPLcueW.cjs +0 -1
- package/components/CashierMethodDetails-7O4DrJHq.cjs +0 -18
- package/components/CashierModal-CdNYc0Aj.js +0 -220
- package/components/CashierModal-DjXj2L6b.cjs +0 -1
- package/components/CashierNotifications-BVX2JvTh.cjs +0 -1
- package/components/CashierNotifications-DOgyzpyH.js +0 -136
- package/components/CashierReceiptPage-D9_BjYHP.cjs +0 -1
- package/components/CashierSpinner-BUe-mWNE.js +0 -71
- package/components/CashierSpinner-C7awkOxo.cjs +0 -1
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-O8Y6vOPF.cjs"),b=require("./CashierError-CnDiY61e.cjs");b.init({fallbackLocale:"en"});function v(l,e){b.addMessages(l,e)}function O(l){b.$locale.set(l)}const y={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}}};function q(l){t.append_styles(l,"svelte-jm1409",".CashierHeader.svelte-jm1409.svelte-jm1409.svelte-jm1409{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 32px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton.svelte-jm1409.svelte-jm1409.svelte-jm1409{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.svelte-jm1409 svg.svelte-jm1409 path.svelte-jm1409{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderTitle.svelte-jm1409.svelte-jm1409.svelte-jm1409{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);line-height:var(--emw--font-line-height-medium, 18px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton.svelte-jm1409.svelte-jm1409.svelte-jm1409{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}const A=l=>({}),k=l=>({}),U=l=>({}),j=l=>({}),P=l=>({}),L=l=>({});function B(l){let e,n,a;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" class="svelte-jm1409"></path></svg>',t.attr(e,"class","CashierHeaderLeftButton svelte-jm1409")},m(s,u){t.insert(s,e,u),n||(a=t.listen(e,"click",l[5]),n=!0)},p:t.noop,d(s){s&&t.detach(e),n=!1,a()}}}function Z(l){let e,n=l[1]&&B(l);return{c(){n&&n.c(),e=t.empty()},m(a,s){n&&n.m(a,s),t.insert(a,e,s)},p(a,s){a[1]?n?n.p(a,s):(n=B(a),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(a){a&&t.detach(e),n&&n.d(a)}}}function D(l){let e,n=l[3](l[2])+"",a;return{c(){e=t.element("span"),a=t.text(n),t.attr(e,"class","CashierHeaderTitle svelte-jm1409")},m(s,u){t.insert(s,e,u),t.append(e,a)},p(s,u){u&12&&n!==(n=s[3](s[2])+"")&&t.set_data(a,n)},d(s){s&&t.detach(e)}}}function F(l){let e,n,a;return{c(){e=t.element("span"),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none" class="svelte-jm1409"><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" class="svelte-jm1409"></path></svg>',t.attr(e,"class","CashierHeaderRightButton svelte-jm1409")},m(s,u){t.insert(s,e,u),n||(a=t.listen(e,"click",l[4]),n=!0)},p:t.noop,d(s){s&&t.detach(e),n=!1,a()}}}function I(l){let e,n,a,s;const u=l[13].leftButton,d=t.create_slot(u,l,l[12],L),r=d||Z(l),w=l[13].title,m=t.create_slot(w,l,l[12],j),c=m||D(l),_=l[13].rightButton,h=t.create_slot(_,l,l[12],k),g=h||F(l);return{c(){e=t.element("div"),r&&r.c(),n=t.space(),c&&c.c(),a=t.space(),g&&g.c(),t.attr(e,"class","CashierHeader svelte-jm1409")},m(i,f){t.insert(i,e,f),r&&r.m(e,null),t.append(e,n),c&&c.m(e,null),t.append(e,a),g&&g.m(e,null),l[14](e),s=!0},p(i,[f]){d?d.p&&(!s||f&4096)&&t.update_slot_base(d,u,i,i[12],s?t.get_slot_changes(u,i[12],f,P):t.get_all_dirty_from_scope(i[12]),L):r&&r.p&&(!s||f&2)&&r.p(i,s?f:-1),m?m.p&&(!s||f&4096)&&t.update_slot_base(m,w,i,i[12],s?t.get_slot_changes(w,i[12],f,U):t.get_all_dirty_from_scope(i[12]),j):c&&c.p&&(!s||f&12)&&c.p(i,s?f:-1),h&&h.p&&(!s||f&4096)&&t.update_slot_base(h,_,i,i[12],s?t.get_slot_changes(_,i[12],f,A):t.get_all_dirty_from_scope(i[12]),k)},i(i){s||(t.transition_in(r,i),t.transition_in(c,i),t.transition_in(g,i),s=!0)},o(i){t.transition_out(r,i),t.transition_out(c,i),t.transition_out(g,i),s=!1},d(i){i&&t.detach(e),r&&r.d(i),c&&c.d(i),g&&g.d(i),l[14](null)}}}function W(l,e,n){let a;t.component_subscribe(l,b.$format,o=>n(3,a=o));let{$$slots:s={},$$scope:u}=e,{clientstyling:d=""}=e,{clientstylingurl:r=""}=e,{translationurl:w=""}=e,{showbackbutton:m=""}=e,{title:c="header.general"}=e,{lang:_="en"}=e,h,g=!1,i;const f=()=>{let o=w;o&&fetch(o).then(p=>p.json()).then(p=>{Object.keys(p).forEach(C=>{v(C,p[C])})}).catch(p=>{console.log(p)})};Object.keys(y).forEach(o=>{v(o,y[o])});const T=()=>{let o=document.createElement("style");o.innerHTML=d,h.appendChild(o)},M=()=>{let o=new URL(r),p=document.createElement("style");fetch(o.href).then(C=>C.text()).then(C=>{p.innerHTML=C,setTimeout(()=>{h.appendChild(p)},1)})},E=()=>{O(_)},S=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},x=()=>{window.postMessage({type:"BackCashier"},window.location.href)},R=()=>{n(1,g=!!m&&m!=="false")},z=()=>{n(2,i=c||"header.general")};function N(o){t.binding_callbacks[o?"unshift":"push"](()=>{h=o,n(0,h)})}return l.$$set=o=>{"clientstyling"in o&&n(6,d=o.clientstyling),"clientstylingurl"in o&&n(7,r=o.clientstylingurl),"translationurl"in o&&n(8,w=o.translationurl),"showbackbutton"in o&&n(9,m=o.showbackbutton),"title"in o&&n(10,c=o.title),"lang"in o&&n(11,_=o.lang),"$$scope"in o&&n(12,u=o.$$scope)},l.$$.update=()=>{l.$$.dirty&2048&&_&&E(),l.$$.dirty&3072&&_&&c&&z(),l.$$.dirty&65&&d&&h&&T(),l.$$.dirty&129&&r&&h&&M(),l.$$.dirty&2304&&_&&w&&f(),l.$$.dirty&512&&m&&R()},[h,g,i,a,S,x,d,r,w,m,c,_,u,s,N]}class H extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,I,t.safe_not_equal,{clientstyling:6,clientstylingurl:7,translationurl:8,showbackbutton:9,title:10,lang:11},q)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[9]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get title(){return this.$$.ctx[10]}set title(e){this.$$set({title:e}),t.flush()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),t.flush()}}t.create_custom_element(H,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{}},["leftButton","title","rightButton"],[],!0);exports.default=H;
         | 
| @@ -1,361 +0,0 @@ | |
| 1 | 
            -
            import { S as J, b as K, f as C, c as Q, a as V, d as X, e as j, g as y, h as E, j as k, k as v, l as x, u as L, m as B, o as H, t as T, p as M, v as b, w as $, x as tt, y as et, z as lt, C as st, A as U, n as Z } from "./CashierConfirmModal-B-t1-wAt.js";
         | 
| 2 | 
            -
            import { i as nt, a as it, $ as at, b as ot } from "./CashierError-DaumM6Zr.js";
         | 
| 3 | 
            -
            nt({
         | 
| 4 | 
            -
              fallbackLocale: "en"
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            function S(e, t) {
         | 
| 7 | 
            -
              it(e, t);
         | 
| 8 | 
            -
            }
         | 
| 9 | 
            -
            function rt(e) {
         | 
| 10 | 
            -
              at.set(e);
         | 
| 11 | 
            -
            }
         | 
| 12 | 
            -
            const z = {
         | 
| 13 | 
            -
              en: {
         | 
| 14 | 
            -
                header: {
         | 
| 15 | 
            -
                  general: "Cashier",
         | 
| 16 | 
            -
                  deposit: "Deposit",
         | 
| 17 | 
            -
                  withdraw: "Withdraw"
         | 
| 18 | 
            -
                }
         | 
| 19 | 
            -
              },
         | 
| 20 | 
            -
              tr: {
         | 
| 21 | 
            -
                header: {
         | 
| 22 | 
            -
                  general: "Cashier",
         | 
| 23 | 
            -
                  deposit: "Para Yatır",
         | 
| 24 | 
            -
                  withdraw: "Çekim"
         | 
| 25 | 
            -
                }
         | 
| 26 | 
            -
              }
         | 
| 27 | 
            -
            };
         | 
| 28 | 
            -
            function ct(e) {
         | 
| 29 | 
            -
              X(e, "svelte-jm1409", ".CashierHeader.svelte-jm1409.svelte-jm1409.svelte-jm1409{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 32px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton.svelte-jm1409.svelte-jm1409.svelte-jm1409{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.svelte-jm1409 svg.svelte-jm1409 path.svelte-jm1409{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderTitle.svelte-jm1409.svelte-jm1409.svelte-jm1409{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);line-height:var(--emw--font-line-height-medium, 18px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton.svelte-jm1409.svelte-jm1409.svelte-jm1409{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}");
         | 
| 30 | 
            -
            }
         | 
| 31 | 
            -
            const ft = (e) => ({}), R = (e) => ({}), ut = (e) => ({}), A = (e) => ({}), ht = (e) => ({}), N = (e) => ({});
         | 
| 32 | 
            -
            function O(e) {
         | 
| 33 | 
            -
              let t, l, a;
         | 
| 34 | 
            -
              return {
         | 
| 35 | 
            -
                c() {
         | 
| 36 | 
            -
                  t = y("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111" class="svelte-jm1409"></path></svg>', k(t, "class", "CashierHeaderLeftButton svelte-jm1409");
         | 
| 37 | 
            -
                },
         | 
| 38 | 
            -
                m(s, c) {
         | 
| 39 | 
            -
                  v(s, t, c), l || (a = U(
         | 
| 40 | 
            -
                    t,
         | 
| 41 | 
            -
                    "click",
         | 
| 42 | 
            -
                    /*back*/
         | 
| 43 | 
            -
                    e[5]
         | 
| 44 | 
            -
                  ), l = !0);
         | 
| 45 | 
            -
                },
         | 
| 46 | 
            -
                p: Z,
         | 
| 47 | 
            -
                d(s) {
         | 
| 48 | 
            -
                  s && b(t), l = !1, a();
         | 
| 49 | 
            -
                }
         | 
| 50 | 
            -
              };
         | 
| 51 | 
            -
            }
         | 
| 52 | 
            -
            function gt(e) {
         | 
| 53 | 
            -
              let t, l = (
         | 
| 54 | 
            -
                /*backButton*/
         | 
| 55 | 
            -
                e[1] && O(e)
         | 
| 56 | 
            -
              );
         | 
| 57 | 
            -
              return {
         | 
| 58 | 
            -
                c() {
         | 
| 59 | 
            -
                  l && l.c(), t = tt();
         | 
| 60 | 
            -
                },
         | 
| 61 | 
            -
                m(a, s) {
         | 
| 62 | 
            -
                  l && l.m(a, s), v(a, t, s);
         | 
| 63 | 
            -
                },
         | 
| 64 | 
            -
                p(a, s) {
         | 
| 65 | 
            -
                  /*backButton*/
         | 
| 66 | 
            -
                  a[1] ? l ? l.p(a, s) : (l = O(a), l.c(), l.m(t.parentNode, t)) : l && (l.d(1), l = null);
         | 
| 67 | 
            -
                },
         | 
| 68 | 
            -
                d(a) {
         | 
| 69 | 
            -
                  a && b(t), l && l.d(a);
         | 
| 70 | 
            -
                }
         | 
| 71 | 
            -
              };
         | 
| 72 | 
            -
            }
         | 
| 73 | 
            -
            function mt(e) {
         | 
| 74 | 
            -
              let t, l = (
         | 
| 75 | 
            -
                /*$_*/
         | 
| 76 | 
            -
                e[3](
         | 
| 77 | 
            -
                  /*titleText*/
         | 
| 78 | 
            -
                  e[2]
         | 
| 79 | 
            -
                ) + ""
         | 
| 80 | 
            -
              ), a;
         | 
| 81 | 
            -
              return {
         | 
| 82 | 
            -
                c() {
         | 
| 83 | 
            -
                  t = y("span"), a = et(l), k(t, "class", "CashierHeaderTitle svelte-jm1409");
         | 
| 84 | 
            -
                },
         | 
| 85 | 
            -
                m(s, c) {
         | 
| 86 | 
            -
                  v(s, t, c), x(t, a);
         | 
| 87 | 
            -
                },
         | 
| 88 | 
            -
                p(s, c) {
         | 
| 89 | 
            -
                  c & /*$_, titleText*/
         | 
| 90 | 
            -
                  12 && l !== (l = /*$_*/
         | 
| 91 | 
            -
                  s[3](
         | 
| 92 | 
            -
                    /*titleText*/
         | 
| 93 | 
            -
                    s[2]
         | 
| 94 | 
            -
                  ) + "") && lt(a, l);
         | 
| 95 | 
            -
                },
         | 
| 96 | 
            -
                d(s) {
         | 
| 97 | 
            -
                  s && b(t);
         | 
| 98 | 
            -
                }
         | 
| 99 | 
            -
              };
         | 
| 100 | 
            -
            }
         | 
| 101 | 
            -
            function dt(e) {
         | 
| 102 | 
            -
              let t, l, a;
         | 
| 103 | 
            -
              return {
         | 
| 104 | 
            -
                c() {
         | 
| 105 | 
            -
                  t = y("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none" class="svelte-jm1409"><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" class="svelte-jm1409"></path></svg>', k(t, "class", "CashierHeaderRightButton svelte-jm1409");
         | 
| 106 | 
            -
                },
         | 
| 107 | 
            -
                m(s, c) {
         | 
| 108 | 
            -
                  v(s, t, c), l || (a = U(
         | 
| 109 | 
            -
                    t,
         | 
| 110 | 
            -
                    "click",
         | 
| 111 | 
            -
                    /*close*/
         | 
| 112 | 
            -
                    e[4]
         | 
| 113 | 
            -
                  ), l = !0);
         | 
| 114 | 
            -
                },
         | 
| 115 | 
            -
                p: Z,
         | 
| 116 | 
            -
                d(s) {
         | 
| 117 | 
            -
                  s && b(t), l = !1, a();
         | 
| 118 | 
            -
                }
         | 
| 119 | 
            -
              };
         | 
| 120 | 
            -
            }
         | 
| 121 | 
            -
            function _t(e) {
         | 
| 122 | 
            -
              let t, l, a, s;
         | 
| 123 | 
            -
              const c = (
         | 
| 124 | 
            -
                /*#slots*/
         | 
| 125 | 
            -
                e[13].leftButton
         | 
| 126 | 
            -
              ), d = j(
         | 
| 127 | 
            -
                c,
         | 
| 128 | 
            -
                e,
         | 
| 129 | 
            -
                /*$$scope*/
         | 
| 130 | 
            -
                e[12],
         | 
| 131 | 
            -
                N
         | 
| 132 | 
            -
              ), o = d || gt(e), w = (
         | 
| 133 | 
            -
                /*#slots*/
         | 
| 134 | 
            -
                e[13].title
         | 
| 135 | 
            -
              ), g = j(
         | 
| 136 | 
            -
                w,
         | 
| 137 | 
            -
                e,
         | 
| 138 | 
            -
                /*$$scope*/
         | 
| 139 | 
            -
                e[12],
         | 
| 140 | 
            -
                A
         | 
| 141 | 
            -
              ), r = g || mt(e), m = (
         | 
| 142 | 
            -
                /*#slots*/
         | 
| 143 | 
            -
                e[13].rightButton
         | 
| 144 | 
            -
              ), u = j(
         | 
| 145 | 
            -
                m,
         | 
| 146 | 
            -
                e,
         | 
| 147 | 
            -
                /*$$scope*/
         | 
| 148 | 
            -
                e[12],
         | 
| 149 | 
            -
                R
         | 
| 150 | 
            -
              ), h = u || dt(e);
         | 
| 151 | 
            -
              return {
         | 
| 152 | 
            -
                c() {
         | 
| 153 | 
            -
                  t = y("div"), o && o.c(), l = E(), r && r.c(), a = E(), h && h.c(), k(t, "class", "CashierHeader svelte-jm1409");
         | 
| 154 | 
            -
                },
         | 
| 155 | 
            -
                m(n, f) {
         | 
| 156 | 
            -
                  v(n, t, f), o && o.m(t, null), x(t, l), r && r.m(t, null), x(t, a), h && h.m(t, null), e[14](t), s = !0;
         | 
| 157 | 
            -
                },
         | 
| 158 | 
            -
                p(n, [f]) {
         | 
| 159 | 
            -
                  d ? d.p && (!s || f & /*$$scope*/
         | 
| 160 | 
            -
                  4096) && L(
         | 
| 161 | 
            -
                    d,
         | 
| 162 | 
            -
                    c,
         | 
| 163 | 
            -
                    n,
         | 
| 164 | 
            -
                    /*$$scope*/
         | 
| 165 | 
            -
                    n[12],
         | 
| 166 | 
            -
                    s ? H(
         | 
| 167 | 
            -
                      c,
         | 
| 168 | 
            -
                      /*$$scope*/
         | 
| 169 | 
            -
                      n[12],
         | 
| 170 | 
            -
                      f,
         | 
| 171 | 
            -
                      ht
         | 
| 172 | 
            -
                    ) : B(
         | 
| 173 | 
            -
                      /*$$scope*/
         | 
| 174 | 
            -
                      n[12]
         | 
| 175 | 
            -
                    ),
         | 
| 176 | 
            -
                    N
         | 
| 177 | 
            -
                  ) : o && o.p && (!s || f & /*backButton*/
         | 
| 178 | 
            -
                  2) && o.p(n, s ? f : -1), g ? g.p && (!s || f & /*$$scope*/
         | 
| 179 | 
            -
                  4096) && L(
         | 
| 180 | 
            -
                    g,
         | 
| 181 | 
            -
                    w,
         | 
| 182 | 
            -
                    n,
         | 
| 183 | 
            -
                    /*$$scope*/
         | 
| 184 | 
            -
                    n[12],
         | 
| 185 | 
            -
                    s ? H(
         | 
| 186 | 
            -
                      w,
         | 
| 187 | 
            -
                      /*$$scope*/
         | 
| 188 | 
            -
                      n[12],
         | 
| 189 | 
            -
                      f,
         | 
| 190 | 
            -
                      ut
         | 
| 191 | 
            -
                    ) : B(
         | 
| 192 | 
            -
                      /*$$scope*/
         | 
| 193 | 
            -
                      n[12]
         | 
| 194 | 
            -
                    ),
         | 
| 195 | 
            -
                    A
         | 
| 196 | 
            -
                  ) : r && r.p && (!s || f & /*$_, titleText*/
         | 
| 197 | 
            -
                  12) && r.p(n, s ? f : -1), u && u.p && (!s || f & /*$$scope*/
         | 
| 198 | 
            -
                  4096) && L(
         | 
| 199 | 
            -
                    u,
         | 
| 200 | 
            -
                    m,
         | 
| 201 | 
            -
                    n,
         | 
| 202 | 
            -
                    /*$$scope*/
         | 
| 203 | 
            -
                    n[12],
         | 
| 204 | 
            -
                    s ? H(
         | 
| 205 | 
            -
                      m,
         | 
| 206 | 
            -
                      /*$$scope*/
         | 
| 207 | 
            -
                      n[12],
         | 
| 208 | 
            -
                      f,
         | 
| 209 | 
            -
                      ft
         | 
| 210 | 
            -
                    ) : B(
         | 
| 211 | 
            -
                      /*$$scope*/
         | 
| 212 | 
            -
                      n[12]
         | 
| 213 | 
            -
                    ),
         | 
| 214 | 
            -
                    R
         | 
| 215 | 
            -
                  );
         | 
| 216 | 
            -
                },
         | 
| 217 | 
            -
                i(n) {
         | 
| 218 | 
            -
                  s || (T(o, n), T(r, n), T(h, n), s = !0);
         | 
| 219 | 
            -
                },
         | 
| 220 | 
            -
                o(n) {
         | 
| 221 | 
            -
                  M(o, n), M(r, n), M(h, n), s = !1;
         | 
| 222 | 
            -
                },
         | 
| 223 | 
            -
                d(n) {
         | 
| 224 | 
            -
                  n && b(t), o && o.d(n), r && r.d(n), h && h.d(n), e[14](null);
         | 
| 225 | 
            -
                }
         | 
| 226 | 
            -
              };
         | 
| 227 | 
            -
            }
         | 
| 228 | 
            -
            function wt(e, t, l) {
         | 
| 229 | 
            -
              let a;
         | 
| 230 | 
            -
              $(e, ot, (i) => l(3, a = i));
         | 
| 231 | 
            -
              let { $$slots: s = {}, $$scope: c } = t, { clientstyling: d = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: w = "" } = t, { showbackbutton: g = "" } = t, { title: r = "header.general" } = t, { lang: m = "en" } = t, u, h = !1, n;
         | 
| 232 | 
            -
              const f = () => {
         | 
| 233 | 
            -
                let i = w;
         | 
| 234 | 
            -
                i && fetch(i).then((_) => _.json()).then((_) => {
         | 
| 235 | 
            -
                  Object.keys(_).forEach((p) => {
         | 
| 236 | 
            -
                    S(p, _[p]);
         | 
| 237 | 
            -
                  });
         | 
| 238 | 
            -
                }).catch((_) => {
         | 
| 239 | 
            -
                  console.log(_);
         | 
| 240 | 
            -
                });
         | 
| 241 | 
            -
              };
         | 
| 242 | 
            -
              Object.keys(z).forEach((i) => {
         | 
| 243 | 
            -
                S(i, z[i]);
         | 
| 244 | 
            -
              });
         | 
| 245 | 
            -
              const q = () => {
         | 
| 246 | 
            -
                let i = document.createElement("style");
         | 
| 247 | 
            -
                i.innerHTML = d, u.appendChild(i);
         | 
| 248 | 
            -
              }, D = () => {
         | 
| 249 | 
            -
                let i = new URL(o), _ = document.createElement("style");
         | 
| 250 | 
            -
                fetch(i.href).then((p) => p.text()).then((p) => {
         | 
| 251 | 
            -
                  _.innerHTML = p, setTimeout(
         | 
| 252 | 
            -
                    () => {
         | 
| 253 | 
            -
                      u.appendChild(_);
         | 
| 254 | 
            -
                    },
         | 
| 255 | 
            -
                    1
         | 
| 256 | 
            -
                  );
         | 
| 257 | 
            -
                });
         | 
| 258 | 
            -
              }, F = () => {
         | 
| 259 | 
            -
                rt(m);
         | 
| 260 | 
            -
              }, I = () => {
         | 
| 261 | 
            -
                window.postMessage({ type: "CloseCashier" }, window.location.href);
         | 
| 262 | 
            -
              }, P = () => {
         | 
| 263 | 
            -
                window.postMessage({ type: "BackCashier" }, window.location.href);
         | 
| 264 | 
            -
              }, W = () => {
         | 
| 265 | 
            -
                l(1, h = !!g && g !== "false");
         | 
| 266 | 
            -
              }, Y = () => {
         | 
| 267 | 
            -
                l(2, n = r || "header.general");
         | 
| 268 | 
            -
              };
         | 
| 269 | 
            -
              function G(i) {
         | 
| 270 | 
            -
                st[i ? "unshift" : "push"](() => {
         | 
| 271 | 
            -
                  u = i, l(0, u);
         | 
| 272 | 
            -
                });
         | 
| 273 | 
            -
              }
         | 
| 274 | 
            -
              return e.$$set = (i) => {
         | 
| 275 | 
            -
                "clientstyling" in i && l(6, d = i.clientstyling), "clientstylingurl" in i && l(7, o = i.clientstylingurl), "translationurl" in i && l(8, w = i.translationurl), "showbackbutton" in i && l(9, g = i.showbackbutton), "title" in i && l(10, r = i.title), "lang" in i && l(11, m = i.lang), "$$scope" in i && l(12, c = i.$$scope);
         | 
| 276 | 
            -
              }, e.$$.update = () => {
         | 
| 277 | 
            -
                e.$$.dirty & /*lang*/
         | 
| 278 | 
            -
                2048 && m && F(), e.$$.dirty & /*lang, title*/
         | 
| 279 | 
            -
                3072 && m && r && Y(), e.$$.dirty & /*clientstyling, customStylingContainer*/
         | 
| 280 | 
            -
                65 && d && u && q(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
         | 
| 281 | 
            -
                129 && o && u && D(), e.$$.dirty & /*lang, translationurl*/
         | 
| 282 | 
            -
                2304 && m && w && f(), e.$$.dirty & /*showbackbutton*/
         | 
| 283 | 
            -
                512 && g && W();
         | 
| 284 | 
            -
              }, [
         | 
| 285 | 
            -
                u,
         | 
| 286 | 
            -
                h,
         | 
| 287 | 
            -
                n,
         | 
| 288 | 
            -
                a,
         | 
| 289 | 
            -
                I,
         | 
| 290 | 
            -
                P,
         | 
| 291 | 
            -
                d,
         | 
| 292 | 
            -
                o,
         | 
| 293 | 
            -
                w,
         | 
| 294 | 
            -
                g,
         | 
| 295 | 
            -
                r,
         | 
| 296 | 
            -
                m,
         | 
| 297 | 
            -
                c,
         | 
| 298 | 
            -
                s,
         | 
| 299 | 
            -
                G
         | 
| 300 | 
            -
              ];
         | 
| 301 | 
            -
            }
         | 
| 302 | 
            -
            class pt extends J {
         | 
| 303 | 
            -
              constructor(t) {
         | 
| 304 | 
            -
                super(), K(
         | 
| 305 | 
            -
                  this,
         | 
| 306 | 
            -
                  t,
         | 
| 307 | 
            -
                  wt,
         | 
| 308 | 
            -
                  _t,
         | 
| 309 | 
            -
                  V,
         | 
| 310 | 
            -
                  {
         | 
| 311 | 
            -
                    clientstyling: 6,
         | 
| 312 | 
            -
                    clientstylingurl: 7,
         | 
| 313 | 
            -
                    translationurl: 8,
         | 
| 314 | 
            -
                    showbackbutton: 9,
         | 
| 315 | 
            -
                    title: 10,
         | 
| 316 | 
            -
                    lang: 11
         | 
| 317 | 
            -
                  },
         | 
| 318 | 
            -
                  ct
         | 
| 319 | 
            -
                );
         | 
| 320 | 
            -
              }
         | 
| 321 | 
            -
              get clientstyling() {
         | 
| 322 | 
            -
                return this.$$.ctx[6];
         | 
| 323 | 
            -
              }
         | 
| 324 | 
            -
              set clientstyling(t) {
         | 
| 325 | 
            -
                this.$$set({ clientstyling: t }), C();
         | 
| 326 | 
            -
              }
         | 
| 327 | 
            -
              get clientstylingurl() {
         | 
| 328 | 
            -
                return this.$$.ctx[7];
         | 
| 329 | 
            -
              }
         | 
| 330 | 
            -
              set clientstylingurl(t) {
         | 
| 331 | 
            -
                this.$$set({ clientstylingurl: t }), C();
         | 
| 332 | 
            -
              }
         | 
| 333 | 
            -
              get translationurl() {
         | 
| 334 | 
            -
                return this.$$.ctx[8];
         | 
| 335 | 
            -
              }
         | 
| 336 | 
            -
              set translationurl(t) {
         | 
| 337 | 
            -
                this.$$set({ translationurl: t }), C();
         | 
| 338 | 
            -
              }
         | 
| 339 | 
            -
              get showbackbutton() {
         | 
| 340 | 
            -
                return this.$$.ctx[9];
         | 
| 341 | 
            -
              }
         | 
| 342 | 
            -
              set showbackbutton(t) {
         | 
| 343 | 
            -
                this.$$set({ showbackbutton: t }), C();
         | 
| 344 | 
            -
              }
         | 
| 345 | 
            -
              get title() {
         | 
| 346 | 
            -
                return this.$$.ctx[10];
         | 
| 347 | 
            -
              }
         | 
| 348 | 
            -
              set title(t) {
         | 
| 349 | 
            -
                this.$$set({ title: t }), C();
         | 
| 350 | 
            -
              }
         | 
| 351 | 
            -
              get lang() {
         | 
| 352 | 
            -
                return this.$$.ctx[11];
         | 
| 353 | 
            -
              }
         | 
| 354 | 
            -
              set lang(t) {
         | 
| 355 | 
            -
                this.$$set({ lang: t }), C();
         | 
| 356 | 
            -
              }
         | 
| 357 | 
            -
            }
         | 
| 358 | 
            -
            Q(pt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {} }, ["leftButton", "title", "rightButton"], [], !0);
         | 
| 359 | 
            -
            export {
         | 
| 360 | 
            -
              pt as default
         | 
| 361 | 
            -
            };
         | 
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-O8Y6vOPF.cjs"),b=require("./CashierError-CnDiY61e.cjs");b.init({fallbackLocale:"en"});function w(l,t){b.addMessages(l,t)}function S(l){b.$locale.set(l)}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 l=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-4ARwc1sM.cjs")).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-C7awkOxo.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}function q(l){e.append_styles(l,"svelte-ovvc53",".CashierRedirectIframe.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{height:inherit;width:inherit}iframe.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{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.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{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.svelte-ovvc53 svg.svelte-ovvc53 path.svelte-ovvc53{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{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(l){let t,n,i;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" class="svelte-ovvc53"></path></svg>',e.attr(t,"slot","leftButton"),e.attr(t,"class","CashierHeaderLeftButton svelte-ovvc53")},m(f,m){e.insert(f,t,m),n||(i=e.listen(t,"click",l[9]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,i()}}}function k(l){let t,n,i;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" class="svelte-ovvc53"><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" class="svelte-ovvc53"></path></svg>',e.attr(t,"slot","rightButton"),e.attr(t,"class","CashierHeaderRightButton svelte-ovvc53")},m(f,m){e.insert(f,t,m),n||(i=e.listen(t,"click",l[9]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,i()}}}function E(l){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",l[5]),e.set_custom_element_data(t,"clientstyling",l[4])},m(n,i){e.insert(n,t,i)},p(n,i){i&32&&e.set_custom_element_data(t,"clientstylingurl",n[5]),i&16&&e.set_custom_element_data(t,"clientstyling",n[4])},d(n){n&&e.detach(t)}}}function D(l){let t,n,i,f,m,d,g,v,p,o=!!l[3]&&l[3]!=="false"&&L(l),a=(!l[3]||l[3]==="false")&&k(l),c=l[8]&&E(l);return{c(){t=e.element("div"),n=e.element("cashier-header"),o&&o.c(),i=e.space(),a&&a.c(),f=e.space(),c&&c.c(),m=e.space(),d=e.element("iframe"),e.set_custom_element_data(n,"lang",l[0]),e.set_custom_element_data(n,"translationurl",l[2]),e.set_custom_element_data(n,"title",l[6]),e.set_custom_element_data(n,"showbackbutton",l[3]),e.set_custom_element_data(n,"clientstylingurl",l[5]),e.set_custom_element_data(n,"clientstyling",l[4]),e.src_url_equal(d.src,g=l[1])||e.attr(d,"src",g),e.attr(d,"frameborder","0"),e.attr(d,"class","svelte-ovvc53"),e.attr(t,"class","CashierRedirectIframe svelte-ovvc53")},m(r,u){e.insert(r,t,u),e.append(t,n),o&&o.m(n,null),e.append(n,i),a&&a.m(n,null),e.append(t,f),c&&c.m(t,null),e.append(t,m),e.append(t,d),l[12](t),v||(p=e.listen(d,"load",l[11]),v=!0)},p(r,[u]){r[3]&&r[3]!=="false"?o?o.p(r,u):(o=L(r),o.c(),o.m(n,i)):o&&(o.d(1),o=null),!r[3]||r[3]==="false"?a?a.p(r,u):(a=k(r),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u&1&&e.set_custom_element_data(n,"lang",r[0]),u&4&&e.set_custom_element_data(n,"translationurl",r[2]),u&64&&e.set_custom_element_data(n,"title",r[6]),u&8&&e.set_custom_element_data(n,"showbackbutton",r[3]),u&32&&e.set_custom_element_data(n,"clientstylingurl",r[5]),u&16&&e.set_custom_element_data(n,"clientstyling",r[4]),r[8]?c?c.p(r,u):(c=E(r),c.c(),c.m(t,m)):c&&(c.d(1),c=null),u&2&&!e.src_url_equal(d.src,g=r[1])&&e.attr(d,"src",g)},i:e.noop,o:e.noop,d(r){r&&e.detach(t),o&&o.d(),a&&a.d(),c&&c.d(),l[12](null),v=!1,p()}}}function O(l,t,n){let{lang:i="en"}=t,{iframeurl:f}=t,{translationurl:m=""}=t,{showbackbutton:d=""}=t,{clientstyling:g=""}=t,{clientstylingurl:v=""}=t,{title:p=""}=t,o=!0,a;e.createEventDispatcher();const c=()=>{let s=m;if(s)return fetch(s).then(h=>h.json()).then(h=>{Object.keys(h).forEach(_=>{w(_,h[_])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(s=>{w(s,y[s])});const r=()=>{S(i)},u=()=>{let s=document.createElement("style");s.innerHTML=g,a.appendChild(s)},M=()=>{let s=new URL(v),h=document.createElement("style");fetch(s.href).then(_=>_.text()).then(_=>{h.innerHTML=_,setTimeout(()=>{a.appendChild(h)},1)})},B=()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},C=s=>{s.target.src&&n(8,o=!1)},R=s=>C(s);function T(s){e.binding_callbacks[s?"unshift":"push"](()=>{a=s,n(7,a)})}return l.$$set=s=>{"lang"in s&&n(0,i=s.lang),"iframeurl"in s&&n(1,f=s.iframeurl),"translationurl"in s&&n(2,m=s.translationurl),"showbackbutton"in s&&n(3,d=s.showbackbutton),"clientstyling"in s&&n(4,g=s.clientstyling),"clientstylingurl"in s&&n(5,v=s.clientstylingurl),"title"in s&&n(6,p=s.title)},l.$$.update=()=>{l.$$.dirty&1&&i&&r(),l.$$.dirty&4&&m&&c(),l.$$.dirty&144&&g&&a&&u(),l.$$.dirty&160&&v&&a&&M()},[i,f,m,d,g,v,p,a,o,B,C,R,T]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,O,D,e.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},q)}get lang(){return this.$$.ctx[0]}set lang(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 clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get title(){return this.$$.ctx[6]}set title(t){this.$$set({title:t}),e.flush()}}e.create_custom_element(H,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=H;
         |