@everymatrix/cashier-page 1.93.60 → 1.93.65
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/{CashierCarousel-DMrMmClP.cjs → CashierCarousel-BM-KceW7.cjs} +6 -6
- package/components/{CashierCarousel-DwrGzk7c.js → CashierCarousel-CwYg_hFh.js} +1004 -967
- package/components/{CashierCarousel-DJXsZKF9.js → CashierCarousel-DcUyAcwc.js} +950 -913
- package/components/CashierError-BeL8YqKx.cjs +1 -0
- package/components/CashierError-CfKKb6JV.js +831 -0
- package/components/CashierError-dD8Ujs5i.js +847 -0
- package/components/CashierHeader-BcMI_JFJ.cjs +1 -0
- package/components/CashierHeader-C7A_llUb.js +409 -0
- package/components/CashierHeader-DHBbF3Fw.js +409 -0
- package/components/{CashierIframeRedirect-CF8dL6ee.js → CashierIframeRedirect-BUfajkxx.js} +107 -95
- package/components/CashierIframeRedirect-cI2gXg_a.cjs +1 -0
- package/components/{CashierIframeRedirect-CbC9sVb1.js → CashierIframeRedirect-pWxVJsqa.js} +107 -95
- package/components/{CashierMethodDetails-DU55y4Rq.js → CashierMethodDetails-CyiT2xsa.js} +4410 -3877
- package/components/CashierMethodDetails-p9l4Iluu.cjs +85 -0
- package/components/{CashierMethodDetails-BrlBDyIX.js → CashierMethodDetails-vTXZEUgh.js} +4327 -3794
- package/components/{CashierMethodsList-CsZkLAGV.js → CashierMethodsList-By3SBa7K.js} +307 -264
- package/components/CashierMethodsList-CUErZLfD.cjs +1 -0
- package/components/{CashierMethodsList-DuiE7pDZ.js → CashierMethodsList-CZdQjuPQ.js} +308 -265
- package/components/{CashierModal-ZV_9oeml.js → CashierModal-CkZf2u_p.js} +20 -20
- package/components/{CashierModal-BLrymidc.cjs → CashierModal-DCXxFKAW.cjs} +1 -1
- package/components/{CashierModal-CV1Fn4BP.js → CashierModal-Sl2X44Qr.js} +19 -19
- package/components/{CashierNotifications-C_xReVni.js → CashierNotifications-6zJqvaK5.js} +18 -18
- package/components/{CashierNotifications-B8bRZMac.cjs → CashierNotifications-BJ9m5MR5.cjs} +1 -1
- package/components/{CashierNotifications-DHKh64xU.js → CashierNotifications-CI9LFS0z.js} +18 -18
- package/components/CashierPage-9HFOkmPt.cjs +1 -0
- package/components/CashierPage-CBLhCGtM.js +4851 -0
- package/components/CashierPage-ChksZ7x2.js +4811 -0
- package/components/CashierReceiptPage-C9vc8Tdq.js +1892 -0
- package/components/CashierReceiptPage-D7uA7grn.cjs +26 -0
- package/components/CashierReceiptPage-DiyMd0oq.js +1912 -0
- package/components/{CashierSessionExpirationModal-DlbWG4xD.js → CashierSessionExpirationModal-DsVCou9W.js} +514 -487
- package/components/CashierSessionExpirationModal-TeGdT9SY.cjs +2 -0
- package/components/{CashierSessionExpirationModal-C0KV3SHR.js → CashierSessionExpirationModal-u83AoXvo.js} +490 -463
- package/components/{CashierSpinner-D3HhhmOb.js → CashierSpinner-CxccWP9P.js} +9 -9
- package/components/{CashierSpinner-DKYO0FtD.cjs → CashierSpinner-D6QJrkuJ.cjs} +1 -1
- package/components/{CashierSpinner-DyemUXs_.js → CashierSpinner-h23y-7eM.js} +9 -9
- package/components/CashierStepUp-BaKfagWu.js +1204 -0
- package/components/CashierStepUp-Bwo5aVPT.cjs +1 -0
- package/components/CashierStepUp-cTf7L6t4.js +1165 -0
- package/components/CashierTransactionHistory-Dd5ydbYM.js +1394 -0
- package/components/CashierTransactionHistory-Dx7mVKOh.cjs +1 -0
- package/components/CashierTransactionHistory-JR1DrsVh.js +1394 -0
- package/components/CashierVerifications-0enYZZLD.js +683 -0
- package/components/CashierVerifications-C_73oFvm.cjs +1 -0
- package/components/CashierVerifications-clMzLemr.js +687 -0
- package/components/{TxnStatusIcon-ssLhQR5N.js → TxnStatusIcon-BdmgpoFK.js} +5 -5
- package/components/{TxnStatusIcon-CWkyVMIU.cjs → TxnStatusIcon-BuY_lIOK.cjs} +1 -1
- package/components/{TxnStatusIcon-BwvCa-Ig.js → TxnStatusIcon-DdHua6_u.js} +5 -5
- package/components/{TxnTypeIcons-CTQXT_j5.cjs → TxnTypeIcons-BOR9sqs3.cjs} +1 -1
- package/components/{TxnTypeIcons-B84nFRMh.js → TxnTypeIcons-Dj4BEiZD.js} +1 -1
- package/components/{TxnTypeIcons-DhwUYw-o.js → TxnTypeIcons-GA3AS07V.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierError-BL_rmfvV.cjs +0 -1
- package/components/CashierError-Bqtyy8-q.js +0 -638
- package/components/CashierError-D054pa3k.js +0 -654
- package/components/CashierHeader-BNDmkX5f.js +0 -397
- package/components/CashierHeader-DJYOdmdi.js +0 -397
- package/components/CashierHeader-PvXFHPzQ.cjs +0 -1
- package/components/CashierIframeRedirect-C0AQ3pLh.cjs +0 -1
- package/components/CashierMethodDetails-DLCEFTpO.cjs +0 -85
- package/components/CashierMethodsList-D6dEg4zv.cjs +0 -1
- package/components/CashierPage-BtrYOlrz.js +0 -4584
- package/components/CashierPage-XewFlLFL.js +0 -4550
- package/components/CashierPage-ZwlEVQK1.cjs +0 -1
- package/components/CashierReceiptPage-BHUK-JH2.js +0 -1784
- package/components/CashierReceiptPage-Ur_cm9GB.cjs +0 -26
- package/components/CashierReceiptPage-ooyhUTMT.js +0 -1764
- package/components/CashierSessionExpirationModal-WrH-ardc.cjs +0 -2
- package/components/CashierStepUp-CSZd5C7z.js +0 -1130
- package/components/CashierStepUp-CmTcFbG9.js +0 -1091
- package/components/CashierStepUp-DKytvkqu.cjs +0 -1
- package/components/CashierTransactionHistory-DSJAL5H2.js +0 -1341
- package/components/CashierTransactionHistory-Dk0b66AC.cjs +0 -1
- package/components/CashierTransactionHistory-Dt-gnylu.js +0 -1341
- package/components/CashierVerifications-BUcxHXrG.js +0 -627
- package/components/CashierVerifications-Byj-MslV.js +0 -623
- package/components/CashierVerifications-f5t-nR--.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-BM-KceW7.cjs"),b=typeof window!="undefined"&&window.__EMWCashierI18n||{dictionary:t.$dictionary,locale:t.$locale,init:t.init,addMessages:t.addMessages,format:t.$format};typeof window!="undefined"&&!window.__EMWCashierI18n&&(window.__EMWCashierI18n=b);const N=b.format;function B(i,e){b.addMessages(i,e)}function O(i){b.init({fallbackLocale:"en"}),b.locale.set(i)}const F={en:{"FE.headerGeneral":"Cashier","FE.headerDeposit":"Deposit","FE.headerWithdraw":"Withdraw"},tr:{"FE.headerGeneral":"Cashier","FE.headerDeposit":"Para Yatır","FE.headerWithdraw":"Çekim"},fr:{"FE.headerGeneral":"Caisse","FE.headerDeposit":"Dépôt","FE.headerWithdraw":"Retrait"},da:{"FE.headerGeneral":"Kasse","FE.headerDeposit":"Indbetaling","FE.headerWithdraw":"Udbetaling"},de:{"FE.headerGeneral":"Kasse","FE.headerDeposit":"Einzahlung","FE.headerWithdraw":"Auszahlung"},nl:{"FE.headerGeneral":"Kassa","FE.headerDeposit":"Storting","FE.headerWithdraw":"Opname"}};function R(i){t.append_styles(i,"svelte-1p7ag40",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}")}const K=i=>({}),E=i=>({}),U=i=>({}),v=i=>({}),q=i=>({}),L=i=>({});function M(i){let e,n,o;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"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>',t.attr(e,"class","CashierHeaderLeftButton")},m(s,f){t.insert(s,e,f),n||(o=t.listen(e,"click",i[6]),n=!0)},p:t.noop,d(s){s&&t.detach(e),n=!1,o()}}}function x(i){let e,n=i[1]&&M(i);return{c(){n&&n.c(),e=t.empty()},m(o,s){n&&n.m(o,s),t.insert(o,e,s)},p(o,s){o[1]?n?n.p(o,s):(n=M(o),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(o){o&&t.detach(e),n&&n.d(o)}}}function P(i){let e,n=i[4](i[2])+"",o;return{c(){e=t.element("span"),o=t.text(n),t.attr(e,"class","CashierHeaderTitle")},m(s,f){t.insert(s,e,f),t.append(e,o)},p(s,f){f&20&&n!==(n=s[4](s[2])+"")&&t.set_data(o,n)},d(s){s&&t.detach(e)}}}function H(i){let e,n,o;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"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"></path></svg>',t.attr(e,"class","CashierHeaderRightButton")},m(s,f){t.insert(s,e,f),n||(o=t.listen(e,"click",i[5]),n=!0)},p:t.noop,d(s){s&&t.detach(e),n=!1,o()}}}function Z(i){let e,n=i[3]&&H(i);return{c(){n&&n.c(),e=t.empty()},m(o,s){n&&n.m(o,s),t.insert(o,e,s)},p(o,s){o[3]?n?n.p(o,s):(n=H(o),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(o){o&&t.detach(e),n&&n.d(o)}}}function Y(i){let e,n,o,s;const f=i[16].leftButton,m=t.create_slot(f,i,i[15],L),r=m||x(i),w=i[16].title,d=t.create_slot(w,i,i[15],v),c=d||P(i),g=i[16].rightButton,_=t.create_slot(g,i,i[15],E),h=_||Z(i);return{c(){e=t.element("div"),r&&r.c(),n=t.space(),c&&c.c(),o=t.space(),h&&h.c(),t.attr(e,"class","CashierHeader")},m(l,u){t.insert(l,e,u),r&&r.m(e,null),t.append(e,n),c&&c.m(e,null),t.append(e,o),h&&h.m(e,null),i[17](e),s=!0},p(l,[u]){m?m.p&&(!s||u&32768)&&t.update_slot_base(m,f,l,l[15],s?t.get_slot_changes(f,l[15],u,q):t.get_all_dirty_from_scope(l[15]),L):r&&r.p&&(!s||u&2)&&r.p(l,s?u:-1),d?d.p&&(!s||u&32768)&&t.update_slot_base(d,w,l,l[15],s?t.get_slot_changes(w,l[15],u,U):t.get_all_dirty_from_scope(l[15]),v):c&&c.p&&(!s||u&20)&&c.p(l,s?u:-1),_?_.p&&(!s||u&32768)&&t.update_slot_base(_,g,l,l[15],s?t.get_slot_changes(g,l[15],u,K):t.get_all_dirty_from_scope(l[15]),E):h&&h.p&&(!s||u&8)&&h.p(l,s?u:-1)},i(l){s||(t.transition_in(r,l),t.transition_in(c,l),t.transition_in(h,l),s=!0)},o(l){t.transition_out(r,l),t.transition_out(c,l),t.transition_out(h,l),s=!1},d(l){l&&t.detach(e),r&&r.d(l),c&&c.d(l),h&&h.d(l),i[17](null)}}}function J(i,e,n){let o;t.component_subscribe(i,N,a=>n(4,o=a));let{$$slots:s={},$$scope:f}=e,{clientstyling:m=""}=e,{clientstylingurl:r=""}=e,{translationurl:w=""}=e,{showbackbutton:d=""}=e,{title:c="FE.headerGeneral"}=e,{lang:g="en"}=e,{showclosebutton:_=""}=e,{mbsource:h=""}=e,l,u,p=!1,C,y=!1;const T=()=>{fetch(w).then(a=>a.json()).then(a=>{Object.keys(a).forEach(k=>{B(k,a[k])})}).catch(a=>{console.log(a)})};Object.keys(F).forEach(a=>{B(a,F[a])});const W=()=>{O(g)},D=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},G=()=>{window.postMessage({type:"BackCashier"},window.location.href)},z=()=>{n(1,p=!!d&&d!=="false")},j=()=>{n(3,y=!!_&&_!=="false")},A=()=>{n(2,C=c||"FE.headerGeneral")};t.onMount(()=>()=>{});function I(a){t.binding_callbacks[a?"unshift":"push"](()=>{l=a,n(0,l)})}return i.$$set=a=>{"clientstyling"in a&&n(7,m=a.clientstyling),"clientstylingurl"in a&&n(8,r=a.clientstylingurl),"translationurl"in a&&n(9,w=a.translationurl),"showbackbutton"in a&&n(10,d=a.showbackbutton),"title"in a&&n(11,c=a.title),"lang"in a&&n(12,g=a.lang),"showclosebutton"in a&&n(13,_=a.showclosebutton),"mbsource"in a&&n(14,h=a.mbsource),"$$scope"in a&&n(15,f=a.$$scope)},i.$$.update=()=>{i.$$.dirty&4096&&g&&W(),i.$$.dirty&6144&&g&&c&&A(),i.$$.dirty&129&&m&&l&&t.setClientStyling(l,m),i.$$.dirty&257&&r&&l&&t.setClientStylingURL(l,r),i.$$.dirty&16385&&h&&l&&t.setStreamStyling(l,`${h}.Style`,u),i.$$.dirty&4608&&g&&w&&T(),i.$$.dirty&1024&&d&&z(),i.$$.dirty&8192&&_&&j()},[l,p,C,y,o,D,G,m,r,w,d,c,g,_,h,f,s,I]}class S extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,J,Y,t.safe_not_equal,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},R)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get title(){return this.$$.ctx[11]}set title(e){this.$$set({title:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(e){this.$$set({showclosebutton:e}),t.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(S,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);exports.default=S;
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { $, a as tt, i as et, b as st, c as nt, S as it, d as lt, f as m, s as at, G as ot, e as rt, g as F, h as b, t as B, j as E, u as v, k as L, l as H, m as C, n as M, o as y, p as T, q as k, r as ct, v as ht, w as O, x as ut, y as ft, A as dt, H as K, z as U, D as gt, E as _t, F as wt } from "./CashierCarousel-DcUyAcwc.js";
|
|
2
|
+
const p = typeof window < "u" && window.__EMWCashierI18n || { dictionary: nt, locale: st, init: et, addMessages: tt, format: $ };
|
|
3
|
+
typeof window < "u" && !window.__EMWCashierI18n && (window.__EMWCashierI18n = p);
|
|
4
|
+
const mt = p.format;
|
|
5
|
+
function z(s, t) {
|
|
6
|
+
p.addMessages(s, t);
|
|
7
|
+
}
|
|
8
|
+
function bt(s) {
|
|
9
|
+
p.init({
|
|
10
|
+
fallbackLocale: "en"
|
|
11
|
+
}), p.locale.set(s);
|
|
12
|
+
}
|
|
13
|
+
const A = {
|
|
14
|
+
en: {
|
|
15
|
+
"FE.headerGeneral": "Cashier",
|
|
16
|
+
"FE.headerDeposit": "Deposit",
|
|
17
|
+
"FE.headerWithdraw": "Withdraw"
|
|
18
|
+
},
|
|
19
|
+
tr: {
|
|
20
|
+
"FE.headerGeneral": "Cashier",
|
|
21
|
+
"FE.headerDeposit": "Para Yatır",
|
|
22
|
+
"FE.headerWithdraw": "Çekim"
|
|
23
|
+
},
|
|
24
|
+
fr: {
|
|
25
|
+
"FE.headerGeneral": "Caisse",
|
|
26
|
+
"FE.headerDeposit": "Dépôt",
|
|
27
|
+
"FE.headerWithdraw": "Retrait"
|
|
28
|
+
},
|
|
29
|
+
da: {
|
|
30
|
+
"FE.headerGeneral": "Kasse",
|
|
31
|
+
"FE.headerDeposit": "Indbetaling",
|
|
32
|
+
"FE.headerWithdraw": "Udbetaling"
|
|
33
|
+
},
|
|
34
|
+
de: {
|
|
35
|
+
"FE.headerGeneral": "Kasse",
|
|
36
|
+
"FE.headerDeposit": "Einzahlung",
|
|
37
|
+
"FE.headerWithdraw": "Auszahlung"
|
|
38
|
+
},
|
|
39
|
+
nl: {
|
|
40
|
+
"FE.headerGeneral": "Kassa",
|
|
41
|
+
"FE.headerDeposit": "Storting",
|
|
42
|
+
"FE.headerWithdraw": "Opname"
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
function Ct(s) {
|
|
46
|
+
rt(s, "svelte-1p7ag40", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}");
|
|
47
|
+
}
|
|
48
|
+
const pt = (s) => ({}), j = (s) => ({}), yt = (s) => ({}), I = (s) => ({}), kt = (s) => ({}), N = (s) => ({});
|
|
49
|
+
function R(s) {
|
|
50
|
+
let t, e, l;
|
|
51
|
+
return {
|
|
52
|
+
c() {
|
|
53
|
+
t = y("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>', k(t, "class", "CashierHeaderLeftButton");
|
|
54
|
+
},
|
|
55
|
+
m(n, u) {
|
|
56
|
+
C(n, t, u), e || (l = U(
|
|
57
|
+
t,
|
|
58
|
+
"click",
|
|
59
|
+
/*back*/
|
|
60
|
+
s[6]
|
|
61
|
+
), e = !0);
|
|
62
|
+
},
|
|
63
|
+
p: K,
|
|
64
|
+
d(n) {
|
|
65
|
+
n && b(t), e = !1, l();
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function Ft(s) {
|
|
70
|
+
let t, e = (
|
|
71
|
+
/*backButton*/
|
|
72
|
+
s[1] && R(s)
|
|
73
|
+
);
|
|
74
|
+
return {
|
|
75
|
+
c() {
|
|
76
|
+
e && e.c(), t = O();
|
|
77
|
+
},
|
|
78
|
+
m(l, n) {
|
|
79
|
+
e && e.m(l, n), C(l, t, n);
|
|
80
|
+
},
|
|
81
|
+
p(l, n) {
|
|
82
|
+
/*backButton*/
|
|
83
|
+
l[1] ? e ? e.p(l, n) : (e = R(l), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
84
|
+
},
|
|
85
|
+
d(l) {
|
|
86
|
+
l && b(t), e && e.d(l);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function Bt(s) {
|
|
91
|
+
let t, e = (
|
|
92
|
+
/*$_*/
|
|
93
|
+
s[4](
|
|
94
|
+
/*titleText*/
|
|
95
|
+
s[2]
|
|
96
|
+
) + ""
|
|
97
|
+
), l;
|
|
98
|
+
return {
|
|
99
|
+
c() {
|
|
100
|
+
t = y("span"), l = ft(e), k(t, "class", "CashierHeaderTitle");
|
|
101
|
+
},
|
|
102
|
+
m(n, u) {
|
|
103
|
+
C(n, t, u), M(t, l);
|
|
104
|
+
},
|
|
105
|
+
p(n, u) {
|
|
106
|
+
u & /*$_, titleText*/
|
|
107
|
+
20 && e !== (e = /*$_*/
|
|
108
|
+
n[4](
|
|
109
|
+
/*titleText*/
|
|
110
|
+
n[2]
|
|
111
|
+
) + "") && ut(l, e);
|
|
112
|
+
},
|
|
113
|
+
d(n) {
|
|
114
|
+
n && b(t);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function x(s) {
|
|
119
|
+
let t, e, l;
|
|
120
|
+
return {
|
|
121
|
+
c() {
|
|
122
|
+
t = y("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"></path></svg>', k(t, "class", "CashierHeaderRightButton");
|
|
123
|
+
},
|
|
124
|
+
m(n, u) {
|
|
125
|
+
C(n, t, u), e || (l = U(
|
|
126
|
+
t,
|
|
127
|
+
"click",
|
|
128
|
+
/*close*/
|
|
129
|
+
s[5]
|
|
130
|
+
), e = !0);
|
|
131
|
+
},
|
|
132
|
+
p: K,
|
|
133
|
+
d(n) {
|
|
134
|
+
n && b(t), e = !1, l();
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function Et(s) {
|
|
139
|
+
let t, e = (
|
|
140
|
+
/*closeButton*/
|
|
141
|
+
s[3] && x(s)
|
|
142
|
+
);
|
|
143
|
+
return {
|
|
144
|
+
c() {
|
|
145
|
+
e && e.c(), t = O();
|
|
146
|
+
},
|
|
147
|
+
m(l, n) {
|
|
148
|
+
e && e.m(l, n), C(l, t, n);
|
|
149
|
+
},
|
|
150
|
+
p(l, n) {
|
|
151
|
+
/*closeButton*/
|
|
152
|
+
l[3] ? e ? e.p(l, n) : (e = x(l), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
153
|
+
},
|
|
154
|
+
d(l) {
|
|
155
|
+
l && b(t), e && e.d(l);
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function vt(s) {
|
|
160
|
+
let t, e, l, n;
|
|
161
|
+
const u = (
|
|
162
|
+
/*#slots*/
|
|
163
|
+
s[16].leftButton
|
|
164
|
+
), _ = F(
|
|
165
|
+
u,
|
|
166
|
+
s,
|
|
167
|
+
/*$$scope*/
|
|
168
|
+
s[15],
|
|
169
|
+
N
|
|
170
|
+
), o = _ || Ft(s), w = (
|
|
171
|
+
/*#slots*/
|
|
172
|
+
s[16].title
|
|
173
|
+
), f = F(
|
|
174
|
+
w,
|
|
175
|
+
s,
|
|
176
|
+
/*$$scope*/
|
|
177
|
+
s[15],
|
|
178
|
+
I
|
|
179
|
+
), r = f || Bt(s), d = (
|
|
180
|
+
/*#slots*/
|
|
181
|
+
s[16].rightButton
|
|
182
|
+
), g = F(
|
|
183
|
+
d,
|
|
184
|
+
s,
|
|
185
|
+
/*$$scope*/
|
|
186
|
+
s[15],
|
|
187
|
+
j
|
|
188
|
+
), c = g || Et(s);
|
|
189
|
+
return {
|
|
190
|
+
c() {
|
|
191
|
+
t = y("div"), o && o.c(), e = T(), r && r.c(), l = T(), c && c.c(), k(t, "class", "CashierHeader");
|
|
192
|
+
},
|
|
193
|
+
m(i, h) {
|
|
194
|
+
C(i, t, h), o && o.m(t, null), M(t, e), r && r.m(t, null), M(t, l), c && c.m(t, null), s[17](t), n = !0;
|
|
195
|
+
},
|
|
196
|
+
p(i, [h]) {
|
|
197
|
+
_ ? _.p && (!n || h & /*$$scope*/
|
|
198
|
+
32768) && v(
|
|
199
|
+
_,
|
|
200
|
+
u,
|
|
201
|
+
i,
|
|
202
|
+
/*$$scope*/
|
|
203
|
+
i[15],
|
|
204
|
+
n ? H(
|
|
205
|
+
u,
|
|
206
|
+
/*$$scope*/
|
|
207
|
+
i[15],
|
|
208
|
+
h,
|
|
209
|
+
kt
|
|
210
|
+
) : L(
|
|
211
|
+
/*$$scope*/
|
|
212
|
+
i[15]
|
|
213
|
+
),
|
|
214
|
+
N
|
|
215
|
+
) : o && o.p && (!n || h & /*backButton*/
|
|
216
|
+
2) && o.p(i, n ? h : -1), f ? f.p && (!n || h & /*$$scope*/
|
|
217
|
+
32768) && v(
|
|
218
|
+
f,
|
|
219
|
+
w,
|
|
220
|
+
i,
|
|
221
|
+
/*$$scope*/
|
|
222
|
+
i[15],
|
|
223
|
+
n ? H(
|
|
224
|
+
w,
|
|
225
|
+
/*$$scope*/
|
|
226
|
+
i[15],
|
|
227
|
+
h,
|
|
228
|
+
yt
|
|
229
|
+
) : L(
|
|
230
|
+
/*$$scope*/
|
|
231
|
+
i[15]
|
|
232
|
+
),
|
|
233
|
+
I
|
|
234
|
+
) : r && r.p && (!n || h & /*$_, titleText*/
|
|
235
|
+
20) && r.p(i, n ? h : -1), g ? g.p && (!n || h & /*$$scope*/
|
|
236
|
+
32768) && v(
|
|
237
|
+
g,
|
|
238
|
+
d,
|
|
239
|
+
i,
|
|
240
|
+
/*$$scope*/
|
|
241
|
+
i[15],
|
|
242
|
+
n ? H(
|
|
243
|
+
d,
|
|
244
|
+
/*$$scope*/
|
|
245
|
+
i[15],
|
|
246
|
+
h,
|
|
247
|
+
pt
|
|
248
|
+
) : L(
|
|
249
|
+
/*$$scope*/
|
|
250
|
+
i[15]
|
|
251
|
+
),
|
|
252
|
+
j
|
|
253
|
+
) : c && c.p && (!n || h & /*closeButton*/
|
|
254
|
+
8) && c.p(i, n ? h : -1);
|
|
255
|
+
},
|
|
256
|
+
i(i) {
|
|
257
|
+
n || (E(o, i), E(r, i), E(c, i), n = !0);
|
|
258
|
+
},
|
|
259
|
+
o(i) {
|
|
260
|
+
B(o, i), B(r, i), B(c, i), n = !1;
|
|
261
|
+
},
|
|
262
|
+
d(i) {
|
|
263
|
+
i && b(t), o && o.d(i), r && r.d(i), c && c.d(i), s[17](null);
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
function Lt(s, t, e) {
|
|
268
|
+
let l;
|
|
269
|
+
ct(s, mt, (a) => e(4, l = a));
|
|
270
|
+
let { $$slots: n = {}, $$scope: u } = t, { clientstyling: _ = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: w = "" } = t, { showbackbutton: f = "" } = t, { title: r = "FE.headerGeneral" } = t, { lang: d = "en" } = t, { showclosebutton: g = "" } = t, { mbsource: c = "" } = t, i, h, S = !1, W, D = !1;
|
|
271
|
+
const q = () => {
|
|
272
|
+
fetch(w).then((a) => a.json()).then((a) => {
|
|
273
|
+
Object.keys(a).forEach((G) => {
|
|
274
|
+
z(G, a[G]);
|
|
275
|
+
});
|
|
276
|
+
}).catch((a) => {
|
|
277
|
+
console.log(a);
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
Object.keys(A).forEach((a) => {
|
|
281
|
+
z(a, A[a]);
|
|
282
|
+
});
|
|
283
|
+
const Z = () => {
|
|
284
|
+
bt(d);
|
|
285
|
+
}, P = () => {
|
|
286
|
+
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
287
|
+
}, Y = () => {
|
|
288
|
+
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
289
|
+
}, J = () => {
|
|
290
|
+
e(1, S = !!f && f !== "false");
|
|
291
|
+
}, Q = () => {
|
|
292
|
+
e(3, D = !!g && g !== "false");
|
|
293
|
+
}, V = () => {
|
|
294
|
+
e(2, W = r || "FE.headerGeneral");
|
|
295
|
+
};
|
|
296
|
+
ht(() => () => {
|
|
297
|
+
});
|
|
298
|
+
function X(a) {
|
|
299
|
+
dt[a ? "unshift" : "push"](() => {
|
|
300
|
+
i = a, e(0, i);
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
return s.$$set = (a) => {
|
|
304
|
+
"clientstyling" in a && e(7, _ = a.clientstyling), "clientstylingurl" in a && e(8, o = a.clientstylingurl), "translationurl" in a && e(9, w = a.translationurl), "showbackbutton" in a && e(10, f = a.showbackbutton), "title" in a && e(11, r = a.title), "lang" in a && e(12, d = a.lang), "showclosebutton" in a && e(13, g = a.showclosebutton), "mbsource" in a && e(14, c = a.mbsource), "$$scope" in a && e(15, u = a.$$scope);
|
|
305
|
+
}, s.$$.update = () => {
|
|
306
|
+
s.$$.dirty & /*lang*/
|
|
307
|
+
4096 && d && Z(), s.$$.dirty & /*lang, title*/
|
|
308
|
+
6144 && d && r && V(), s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
309
|
+
129 && _ && i && gt(i, _), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
310
|
+
257 && o && i && _t(i, o), s.$$.dirty & /*mbsource, customStylingContainer*/
|
|
311
|
+
16385 && c && i && wt(i, `${c}.Style`, h), s.$$.dirty & /*lang, translationurl*/
|
|
312
|
+
4608 && d && w && q(), s.$$.dirty & /*showbackbutton*/
|
|
313
|
+
1024 && f && J(), s.$$.dirty & /*showclosebutton*/
|
|
314
|
+
8192 && g && Q();
|
|
315
|
+
}, [
|
|
316
|
+
i,
|
|
317
|
+
S,
|
|
318
|
+
W,
|
|
319
|
+
D,
|
|
320
|
+
l,
|
|
321
|
+
P,
|
|
322
|
+
Y,
|
|
323
|
+
_,
|
|
324
|
+
o,
|
|
325
|
+
w,
|
|
326
|
+
f,
|
|
327
|
+
r,
|
|
328
|
+
d,
|
|
329
|
+
g,
|
|
330
|
+
c,
|
|
331
|
+
u,
|
|
332
|
+
n,
|
|
333
|
+
X
|
|
334
|
+
];
|
|
335
|
+
}
|
|
336
|
+
class Ht extends it {
|
|
337
|
+
constructor(t) {
|
|
338
|
+
super(), lt(
|
|
339
|
+
this,
|
|
340
|
+
t,
|
|
341
|
+
Lt,
|
|
342
|
+
vt,
|
|
343
|
+
at,
|
|
344
|
+
{
|
|
345
|
+
clientstyling: 7,
|
|
346
|
+
clientstylingurl: 8,
|
|
347
|
+
translationurl: 9,
|
|
348
|
+
showbackbutton: 10,
|
|
349
|
+
title: 11,
|
|
350
|
+
lang: 12,
|
|
351
|
+
showclosebutton: 13,
|
|
352
|
+
mbsource: 14
|
|
353
|
+
},
|
|
354
|
+
Ct
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
get clientstyling() {
|
|
358
|
+
return this.$$.ctx[7];
|
|
359
|
+
}
|
|
360
|
+
set clientstyling(t) {
|
|
361
|
+
this.$$set({ clientstyling: t }), m();
|
|
362
|
+
}
|
|
363
|
+
get clientstylingurl() {
|
|
364
|
+
return this.$$.ctx[8];
|
|
365
|
+
}
|
|
366
|
+
set clientstylingurl(t) {
|
|
367
|
+
this.$$set({ clientstylingurl: t }), m();
|
|
368
|
+
}
|
|
369
|
+
get translationurl() {
|
|
370
|
+
return this.$$.ctx[9];
|
|
371
|
+
}
|
|
372
|
+
set translationurl(t) {
|
|
373
|
+
this.$$set({ translationurl: t }), m();
|
|
374
|
+
}
|
|
375
|
+
get showbackbutton() {
|
|
376
|
+
return this.$$.ctx[10];
|
|
377
|
+
}
|
|
378
|
+
set showbackbutton(t) {
|
|
379
|
+
this.$$set({ showbackbutton: t }), m();
|
|
380
|
+
}
|
|
381
|
+
get title() {
|
|
382
|
+
return this.$$.ctx[11];
|
|
383
|
+
}
|
|
384
|
+
set title(t) {
|
|
385
|
+
this.$$set({ title: t }), m();
|
|
386
|
+
}
|
|
387
|
+
get lang() {
|
|
388
|
+
return this.$$.ctx[12];
|
|
389
|
+
}
|
|
390
|
+
set lang(t) {
|
|
391
|
+
this.$$set({ lang: t }), m();
|
|
392
|
+
}
|
|
393
|
+
get showclosebutton() {
|
|
394
|
+
return this.$$.ctx[13];
|
|
395
|
+
}
|
|
396
|
+
set showclosebutton(t) {
|
|
397
|
+
this.$$set({ showclosebutton: t }), m();
|
|
398
|
+
}
|
|
399
|
+
get mbsource() {
|
|
400
|
+
return this.$$.ctx[14];
|
|
401
|
+
}
|
|
402
|
+
set mbsource(t) {
|
|
403
|
+
this.$$set({ mbsource: t }), m();
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
ot(Ht, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
407
|
+
export {
|
|
408
|
+
Ht as default
|
|
409
|
+
};
|