@everymatrix/cashier-page 1.98.30 → 1.98.50
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-CUtNMhZV.js +5858 -0
- package/components/CashierCarousel-MBtvTbcb.cjs +23 -0
- package/components/CashierCarousel-Tx0f5-LG.js +5896 -0
- package/components/CashierError-C7eQzwUP.cjs +1 -0
- package/components/{CashierError-CE7_mcoB.js → CashierError-Dyxg1sq3.js} +6 -7
- package/components/{CashierError-C2laBAxm.js → CashierError-kl-Hjy3m.js} +6 -7
- package/components/CashierHeader-BKcZqENP.js +432 -0
- package/components/CashierHeader-ByWJ_k92.cjs +1 -0
- package/components/CashierHeader-WI5T8myo.js +432 -0
- package/components/{CashierIframeRedirect-CbkM19jX.js → CashierIframeRedirect-C_1-xORQ.js} +87 -72
- package/components/{CashierIframeRedirect-C77nD3AG.js → CashierIframeRedirect-D5wLT4Ip.js} +81 -66
- package/components/CashierIframeRedirect-EU2aPm8u.cjs +1 -0
- package/components/{CashierMethodDetails-CmCUjtZZ.js → CashierMethodDetails-BREpDnlu.js} +4458 -3677
- package/components/CashierMethodDetails-CYwLk7rR.cjs +287 -0
- package/components/{CashierMethodDetails-g-EHhr4t.js → CashierMethodDetails-Cob_AEyz.js} +4289 -3516
- package/components/{CashierMethodsList-kwzWzUdM.js → CashierMethodsList-C1JyivW4.js} +31 -31
- package/components/CashierMethodsList-CcO-EerQ.cjs +1 -0
- package/components/{CashierMethodsList-DgEtoxRa.js → CashierMethodsList-DU64oEyD.js} +32 -32
- package/components/CashierModal-BHWX0DmT.cjs +1 -0
- package/components/{CashierModal-Bpf1W4TW.js → CashierModal-C4PU5_PU.js} +34 -35
- package/components/{CashierModal-DfBiGe-Y.js → CashierModal-Cpxd5bJQ.js} +52 -53
- package/components/{CashierNotifications-CXsZaMzr.js → CashierNotifications-B-OQoaFK.js} +27 -27
- package/components/CashierNotifications-BRQYroR0.cjs +1 -0
- package/components/{CashierNotifications-LH8DhGDl.js → CashierNotifications-Bedwtk72.js} +29 -29
- package/components/CashierPage-BgoraPRn.js +4853 -0
- package/components/CashierPage-BsAuSvEP.cjs +1 -0
- package/components/CashierPage-D9Eoq0xv.js +4887 -0
- package/components/{CashierReceiptPage-A54bEgRe.js → CashierReceiptPage-Bs1-A5oO.js} +88 -87
- package/components/{CashierReceiptPage-BHkIMd6B.js → CashierReceiptPage-CKEro91e.js} +105 -104
- package/components/CashierReceiptPage-DJG1aNbY.cjs +29 -0
- package/components/{CashierSessionExpirationModal-C8EUenjL.js → CashierSessionExpirationModal-CdSUe7hK.js} +59 -58
- package/components/{CashierSessionExpirationModal-DqUoBpXM.js → CashierSessionExpirationModal-CePqbW5W.js} +83 -82
- package/components/CashierSessionExpirationModal-ChfT0Imk.cjs +2 -0
- package/components/CashierSpinner-C1fzGsEh.cjs +1 -0
- package/components/{CashierSpinner-B3ab9--E.js → CashierSpinner-D1qQLxEW.js} +18 -19
- package/components/{CashierSpinner-xkYSSmKN.js → CashierSpinner-wvDbhkcq.js} +14 -15
- package/components/{CashierStepUp-CgG4aO_s.js → CashierStepUp-8viDm0qd.js} +104 -105
- package/components/{CashierStepUp-DNo6sy36.js → CashierStepUp-BJ3ojmDK.js} +6 -7
- package/components/CashierStepUp-V1DZKhrx.cjs +1 -0
- package/components/CashierTransactionHistory-Blt88-F-.cjs +1 -0
- package/components/{CashierTransactionHistory-oApbxEt2.js → CashierTransactionHistory-C_HP2wr2.js} +61 -60
- package/components/{CashierTransactionHistory-Ca3FNiKJ.js → CashierTransactionHistory-c3jwP7YJ.js} +61 -60
- package/components/{CashierVerifications-DR7dYjc4.js → CashierVerifications-B8AtaT5B.js} +125 -141
- package/components/CashierVerifications-CMRN3aAD.cjs +1 -0
- package/components/{CashierVerifications-CzTI2EZ4.js → CashierVerifications-PeSLRi-g.js} +121 -137
- package/components/TxnStatusIcon-CL30ATPa.cjs +1 -0
- package/components/{TxnStatusIcon-DPf3O_DU.js → TxnStatusIcon-CUxVvL_p.js} +12 -12
- package/components/{TxnStatusIcon-Clv1k2Ma.js → TxnStatusIcon-ipRjsjNx.js} +1 -1
- package/components/{TxnTypeIcons-36d9TALW.js → TxnTypeIcons-B6Ue3pUq.js} +1 -1
- package/components/TxnTypeIcons-Cksp3nqd.cjs +1 -0
- package/components/{TxnTypeIcons-DYUOz_RG.js → TxnTypeIcons-CufWq1r7.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/CashierCarousel-3bBExAfX.js +0 -735
- package/components/CashierCarousel-C0iOhcfu.js +0 -732
- package/components/CashierCarousel-DACE1tKH.cjs +0 -1
- package/components/CashierError-D5O8VRb7.cjs +0 -1
- package/components/CashierHeader-C1q5WV57.js +0 -491
- package/components/CashierHeader-CHEzsRF0.cjs +0 -1
- package/components/CashierHeader-Dm7TURe3.js +0 -491
- package/components/CashierIframeRedirect-CnDLsDYN.cjs +0 -1
- package/components/CashierMethodDetails-DcHxycYB.cjs +0 -238
- package/components/CashierMethodsList-BaUQBBIX.cjs +0 -1
- package/components/CashierModal-D8_Y0ZU6.cjs +0 -1
- package/components/CashierNotifications-ZtPfOc6V.cjs +0 -1
- package/components/CashierPage-BOWMSZ9v.cjs +0 -23
- package/components/CashierPage-CiyPlHzj.js +0 -10334
- package/components/CashierPage-DdCmt2zp.js +0 -10387
- package/components/CashierReceiptPage-CeVo2qP_.cjs +0 -29
- package/components/CashierSessionExpirationModal-CT28y-Dy.cjs +0 -2
- package/components/CashierSpinner-DTiIwXJs.cjs +0 -1
- package/components/CashierStepUp-C4aK_vrD.cjs +0 -1
- package/components/CashierTransactionHistory-2O9iJlJI.cjs +0 -1
- package/components/CashierVerifications-CcDH-3z5.cjs +0 -1
- package/components/TxnStatusIcon-i-LsiwNC.cjs +0 -1
- package/components/TxnTypeIcons-D4tuuQoe.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-MBtvTbcb.cjs");function k(i,e){t.addMessages(i,e)}function x(i){t.init({fallbackLocale:"en"}),t.$locale.set(i)}const B={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}},fr:{header:{general:"Caisse",deposit:"Dépôt",withdraw:"Retrait"}},da:{header:{general:"Kasse",deposit:"Indbetaling",withdraw:"Udbetaling"}},de:{header:{general:"Kasse",deposit:"Einzahlung",withdraw:"Auszahlung"}},nl:{header:{general:"Kassa",deposit:"Storting",withdraw:"Opname"}},ru:{header:{general:"Касса",deposit:"Депозит",withdraw:"Вывод"}},az:{header:{general:"Kassa",deposit:"Depozit",withdraw:"Çıxarış"}}};function D(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 E=i=>({}),v=i=>({}),U=i=>({}),L=i=>({}),q=i=>({}),H=i=>({});function S(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 I(i){let e,n=i[1]&&S(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=S(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 M(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]&&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[3]?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 W(i){let e,n,o,s;const f=i[16].leftButton,m=t.create_slot(f,i,i[15],H),r=m||I(i),w=i[16].title,g=t.create_slot(w,i,i[15],L),c=g||P(i),d=i[16].rightButton,_=t.create_slot(d,i,i[15],v),u=_||Z(i);return{c(){e=t.element("div"),r&&r.c(),n=t.space(),c&&c.c(),o=t.space(),u&&u.c(),t.attr(e,"class","CashierHeader")},m(l,h){t.insert(l,e,h),r&&r.m(e,null),t.append(e,n),c&&c.m(e,null),t.append(e,o),u&&u.m(e,null),i[17](e),s=!0},p(l,[h]){m?m.p&&(!s||h&32768)&&t.update_slot_base(m,f,l,l[15],s?t.get_slot_changes(f,l[15],h,q):t.get_all_dirty_from_scope(l[15]),H):r&&r.p&&(!s||h&2)&&r.p(l,s?h:-1),g?g.p&&(!s||h&32768)&&t.update_slot_base(g,w,l,l[15],s?t.get_slot_changes(w,l[15],h,U):t.get_all_dirty_from_scope(l[15]),L):c&&c.p&&(!s||h&20)&&c.p(l,s?h:-1),_?_.p&&(!s||h&32768)&&t.update_slot_base(_,d,l,l[15],s?t.get_slot_changes(d,l[15],h,E):t.get_all_dirty_from_scope(l[15]),v):u&&u.p&&(!s||h&8)&&u.p(l,s?h:-1)},i(l){s||(t.transition_in(r,l),t.transition_in(c,l),t.transition_in(u,l),s=!0)},o(l){t.transition_out(r,l),t.transition_out(c,l),t.transition_out(u,l),s=!1},d(l){l&&t.detach(e),r&&r.d(l),c&&c.d(l),u&&u.d(l),i[17](null)}}}function Y(i,e,n){let o;t.component_subscribe(i,t.$format,a=>n(4,o=a));let{$$slots:s={},$$scope:f}=e,{clientstyling:m=""}=e,{clientstylingurl:r=""}=e,{translationurl:w=""}=e,{showbackbutton:g=""}=e,{title:c="header.general"}=e,{lang:d="en"}=e,{showclosebutton:_=""}=e,{mbsource:u=""}=e,l,h,b=!1,p,C=!1;const z=()=>{fetch(w).then(a=>a.json()).then(a=>{Object.keys(a).forEach(y=>{k(y,a[y])})}).catch(a=>{console.log(a)})};Object.keys(B).forEach(a=>{k(a,B[a])});const F=()=>{x(d)},j=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},A=()=>{window.postMessage({type:"BackCashier"},window.location.href)},N=()=>{n(1,b=!!g&&g!=="false")},O=()=>{n(3,C=!!_&&_!=="false")},R=()=>{n(2,p=c||"header.general")};t.onMount(()=>()=>{});function K(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,g=a.showbackbutton),"title"in a&&n(11,c=a.title),"lang"in a&&n(12,d=a.lang),"showclosebutton"in a&&n(13,_=a.showclosebutton),"mbsource"in a&&n(14,u=a.mbsource),"$$scope"in a&&n(15,f=a.$$scope)},i.$$.update=()=>{i.$$.dirty&4096&&d&&F(),i.$$.dirty&6144&&d&&c&&R(),i.$$.dirty&129&&m&&l&&t.setClientStyling(l,m),i.$$.dirty&257&&r&&l&&t.setClientStylingURL(l,r),i.$$.dirty&16385&&u&&l&&t.setStreamStyling(l,`${u}.Style`,h),i.$$.dirty&4608&&d&&w&&z(),i.$$.dirty&1024&&g&&N(),i.$$.dirty&8192&&_&&O()},[l,b,p,C,o,j,A,m,r,w,g,c,d,_,u,f,s,K]}class T extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,Y,W,t.safe_not_equal,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},D)}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(T,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);exports.default=T;
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
import { a as X, i as $, $ as tt, S as et, b as st, s as it, f as m, c as nt, n as y, d as b, t as B, e as v, u as L, p as H, q as S, j as p, r as z, k as C, v as j, l as k, m as lt, o as at, x as I, y as ot, z as rt, w as ct, I as U, A as q, D as ut, E as ft, F as ht, G as gt, H as dt } from "./CashierCarousel-Tx0f5-LG.js";
|
|
2
|
+
function x(s, t) {
|
|
3
|
+
X(s, t);
|
|
4
|
+
}
|
|
5
|
+
function wt(s) {
|
|
6
|
+
$({
|
|
7
|
+
fallbackLocale: "en"
|
|
8
|
+
}), tt.set(s);
|
|
9
|
+
}
|
|
10
|
+
const N = {
|
|
11
|
+
en: {
|
|
12
|
+
header: {
|
|
13
|
+
general: "Cashier",
|
|
14
|
+
deposit: "Deposit",
|
|
15
|
+
withdraw: "Withdraw"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
tr: {
|
|
19
|
+
header: {
|
|
20
|
+
general: "Cashier",
|
|
21
|
+
deposit: "Para Yatır",
|
|
22
|
+
withdraw: "Çekim"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
fr: {
|
|
26
|
+
header: {
|
|
27
|
+
general: "Caisse",
|
|
28
|
+
deposit: "Dépôt",
|
|
29
|
+
withdraw: "Retrait"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
da: {
|
|
33
|
+
header: {
|
|
34
|
+
general: "Kasse",
|
|
35
|
+
deposit: "Indbetaling",
|
|
36
|
+
withdraw: "Udbetaling"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
de: {
|
|
40
|
+
header: {
|
|
41
|
+
general: "Kasse",
|
|
42
|
+
deposit: "Einzahlung",
|
|
43
|
+
withdraw: "Auszahlung"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
nl: {
|
|
47
|
+
header: {
|
|
48
|
+
general: "Kassa",
|
|
49
|
+
deposit: "Storting",
|
|
50
|
+
withdraw: "Opname"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
ru: {
|
|
54
|
+
header: {
|
|
55
|
+
general: "Касса",
|
|
56
|
+
deposit: "Депозит",
|
|
57
|
+
withdraw: "Вывод"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
az: {
|
|
61
|
+
header: {
|
|
62
|
+
general: "Kassa",
|
|
63
|
+
deposit: "Depozit",
|
|
64
|
+
withdraw: "Çıxarış"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
function _t(s) {
|
|
69
|
+
nt(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)}");
|
|
70
|
+
}
|
|
71
|
+
const mt = (s) => ({}), R = (s) => ({}), bt = (s) => ({}), D = (s) => ({}), pt = (s) => ({}), E = (s) => ({});
|
|
72
|
+
function K(s) {
|
|
73
|
+
let t, e, l;
|
|
74
|
+
return {
|
|
75
|
+
c() {
|
|
76
|
+
t = C("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");
|
|
77
|
+
},
|
|
78
|
+
m(i, f) {
|
|
79
|
+
p(i, t, f), e || (l = q(
|
|
80
|
+
t,
|
|
81
|
+
"click",
|
|
82
|
+
/*back*/
|
|
83
|
+
s[6]
|
|
84
|
+
), e = !0);
|
|
85
|
+
},
|
|
86
|
+
p: U,
|
|
87
|
+
d(i) {
|
|
88
|
+
i && b(t), e = !1, l();
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function Ct(s) {
|
|
93
|
+
let t, e = (
|
|
94
|
+
/*backButton*/
|
|
95
|
+
s[1] && K(s)
|
|
96
|
+
);
|
|
97
|
+
return {
|
|
98
|
+
c() {
|
|
99
|
+
e && e.c(), t = I();
|
|
100
|
+
},
|
|
101
|
+
m(l, i) {
|
|
102
|
+
e && e.m(l, i), p(l, t, i);
|
|
103
|
+
},
|
|
104
|
+
p(l, i) {
|
|
105
|
+
/*backButton*/
|
|
106
|
+
l[1] ? e ? e.p(l, i) : (e = K(l), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
107
|
+
},
|
|
108
|
+
d(l) {
|
|
109
|
+
l && b(t), e && e.d(l);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function kt(s) {
|
|
114
|
+
let t, e = (
|
|
115
|
+
/*$_*/
|
|
116
|
+
s[4](
|
|
117
|
+
/*titleText*/
|
|
118
|
+
s[2]
|
|
119
|
+
) + ""
|
|
120
|
+
), l;
|
|
121
|
+
return {
|
|
122
|
+
c() {
|
|
123
|
+
t = C("span"), l = rt(e), k(t, "class", "CashierHeaderTitle");
|
|
124
|
+
},
|
|
125
|
+
m(i, f) {
|
|
126
|
+
p(i, t, f), z(t, l);
|
|
127
|
+
},
|
|
128
|
+
p(i, f) {
|
|
129
|
+
f & /*$_, titleText*/
|
|
130
|
+
20 && e !== (e = /*$_*/
|
|
131
|
+
i[4](
|
|
132
|
+
/*titleText*/
|
|
133
|
+
i[2]
|
|
134
|
+
) + "") && ot(l, e);
|
|
135
|
+
},
|
|
136
|
+
d(i) {
|
|
137
|
+
i && b(t);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function O(s) {
|
|
142
|
+
let t, e, l;
|
|
143
|
+
return {
|
|
144
|
+
c() {
|
|
145
|
+
t = C("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");
|
|
146
|
+
},
|
|
147
|
+
m(i, f) {
|
|
148
|
+
p(i, t, f), e || (l = q(
|
|
149
|
+
t,
|
|
150
|
+
"click",
|
|
151
|
+
/*close*/
|
|
152
|
+
s[5]
|
|
153
|
+
), e = !0);
|
|
154
|
+
},
|
|
155
|
+
p: U,
|
|
156
|
+
d(i) {
|
|
157
|
+
i && b(t), e = !1, l();
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
function yt(s) {
|
|
162
|
+
let t, e = (
|
|
163
|
+
/*closeButton*/
|
|
164
|
+
s[3] && O(s)
|
|
165
|
+
);
|
|
166
|
+
return {
|
|
167
|
+
c() {
|
|
168
|
+
e && e.c(), t = I();
|
|
169
|
+
},
|
|
170
|
+
m(l, i) {
|
|
171
|
+
e && e.m(l, i), p(l, t, i);
|
|
172
|
+
},
|
|
173
|
+
p(l, i) {
|
|
174
|
+
/*closeButton*/
|
|
175
|
+
l[3] ? e ? e.p(l, i) : (e = O(l), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
176
|
+
},
|
|
177
|
+
d(l) {
|
|
178
|
+
l && b(t), e && e.d(l);
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
function Bt(s) {
|
|
183
|
+
let t, e, l, i;
|
|
184
|
+
const f = (
|
|
185
|
+
/*#slots*/
|
|
186
|
+
s[16].leftButton
|
|
187
|
+
), w = y(
|
|
188
|
+
f,
|
|
189
|
+
s,
|
|
190
|
+
/*$$scope*/
|
|
191
|
+
s[15],
|
|
192
|
+
E
|
|
193
|
+
), o = w || Ct(s), _ = (
|
|
194
|
+
/*#slots*/
|
|
195
|
+
s[16].title
|
|
196
|
+
), h = y(
|
|
197
|
+
_,
|
|
198
|
+
s,
|
|
199
|
+
/*$$scope*/
|
|
200
|
+
s[15],
|
|
201
|
+
D
|
|
202
|
+
), r = h || kt(s), g = (
|
|
203
|
+
/*#slots*/
|
|
204
|
+
s[16].rightButton
|
|
205
|
+
), d = y(
|
|
206
|
+
g,
|
|
207
|
+
s,
|
|
208
|
+
/*$$scope*/
|
|
209
|
+
s[15],
|
|
210
|
+
R
|
|
211
|
+
), c = d || yt(s);
|
|
212
|
+
return {
|
|
213
|
+
c() {
|
|
214
|
+
t = C("div"), o && o.c(), e = j(), r && r.c(), l = j(), c && c.c(), k(t, "class", "CashierHeader");
|
|
215
|
+
},
|
|
216
|
+
m(n, u) {
|
|
217
|
+
p(n, t, u), o && o.m(t, null), z(t, e), r && r.m(t, null), z(t, l), c && c.m(t, null), s[17](t), i = !0;
|
|
218
|
+
},
|
|
219
|
+
p(n, [u]) {
|
|
220
|
+
w ? w.p && (!i || u & /*$$scope*/
|
|
221
|
+
32768) && L(
|
|
222
|
+
w,
|
|
223
|
+
f,
|
|
224
|
+
n,
|
|
225
|
+
/*$$scope*/
|
|
226
|
+
n[15],
|
|
227
|
+
i ? S(
|
|
228
|
+
f,
|
|
229
|
+
/*$$scope*/
|
|
230
|
+
n[15],
|
|
231
|
+
u,
|
|
232
|
+
pt
|
|
233
|
+
) : H(
|
|
234
|
+
/*$$scope*/
|
|
235
|
+
n[15]
|
|
236
|
+
),
|
|
237
|
+
E
|
|
238
|
+
) : o && o.p && (!i || u & /*backButton*/
|
|
239
|
+
2) && o.p(n, i ? u : -1), h ? h.p && (!i || u & /*$$scope*/
|
|
240
|
+
32768) && L(
|
|
241
|
+
h,
|
|
242
|
+
_,
|
|
243
|
+
n,
|
|
244
|
+
/*$$scope*/
|
|
245
|
+
n[15],
|
|
246
|
+
i ? S(
|
|
247
|
+
_,
|
|
248
|
+
/*$$scope*/
|
|
249
|
+
n[15],
|
|
250
|
+
u,
|
|
251
|
+
bt
|
|
252
|
+
) : H(
|
|
253
|
+
/*$$scope*/
|
|
254
|
+
n[15]
|
|
255
|
+
),
|
|
256
|
+
D
|
|
257
|
+
) : r && r.p && (!i || u & /*$_, titleText*/
|
|
258
|
+
20) && r.p(n, i ? u : -1), d ? d.p && (!i || u & /*$$scope*/
|
|
259
|
+
32768) && L(
|
|
260
|
+
d,
|
|
261
|
+
g,
|
|
262
|
+
n,
|
|
263
|
+
/*$$scope*/
|
|
264
|
+
n[15],
|
|
265
|
+
i ? S(
|
|
266
|
+
g,
|
|
267
|
+
/*$$scope*/
|
|
268
|
+
n[15],
|
|
269
|
+
u,
|
|
270
|
+
mt
|
|
271
|
+
) : H(
|
|
272
|
+
/*$$scope*/
|
|
273
|
+
n[15]
|
|
274
|
+
),
|
|
275
|
+
R
|
|
276
|
+
) : c && c.p && (!i || u & /*closeButton*/
|
|
277
|
+
8) && c.p(n, i ? u : -1);
|
|
278
|
+
},
|
|
279
|
+
i(n) {
|
|
280
|
+
i || (v(o, n), v(r, n), v(c, n), i = !0);
|
|
281
|
+
},
|
|
282
|
+
o(n) {
|
|
283
|
+
B(o, n), B(r, n), B(c, n), i = !1;
|
|
284
|
+
},
|
|
285
|
+
d(n) {
|
|
286
|
+
n && b(t), o && o.d(n), r && r.d(n), c && c.d(n), s[17](null);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function vt(s, t, e) {
|
|
291
|
+
let l;
|
|
292
|
+
lt(s, dt, (a) => e(4, l = a));
|
|
293
|
+
let { $$slots: i = {}, $$scope: f } = t, { clientstyling: w = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: _ = "" } = t, { showbackbutton: h = "" } = t, { title: r = "header.general" } = t, { lang: g = "en" } = t, { showclosebutton: d = "" } = t, { mbsource: c = "" } = t, n, u, F = !1, M, T = !1;
|
|
294
|
+
const Z = () => {
|
|
295
|
+
fetch(_).then((a) => a.json()).then((a) => {
|
|
296
|
+
Object.keys(a).forEach((A) => {
|
|
297
|
+
x(A, a[A]);
|
|
298
|
+
});
|
|
299
|
+
}).catch((a) => {
|
|
300
|
+
console.log(a);
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
Object.keys(N).forEach((a) => {
|
|
304
|
+
x(a, N[a]);
|
|
305
|
+
});
|
|
306
|
+
const G = () => {
|
|
307
|
+
wt(g);
|
|
308
|
+
}, P = () => {
|
|
309
|
+
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
310
|
+
}, W = () => {
|
|
311
|
+
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
312
|
+
}, Y = () => {
|
|
313
|
+
e(1, F = !!h && h !== "false");
|
|
314
|
+
}, J = () => {
|
|
315
|
+
e(3, T = !!d && d !== "false");
|
|
316
|
+
}, Q = () => {
|
|
317
|
+
e(2, M = r || "header.general");
|
|
318
|
+
};
|
|
319
|
+
at(() => () => {
|
|
320
|
+
});
|
|
321
|
+
function V(a) {
|
|
322
|
+
ct[a ? "unshift" : "push"](() => {
|
|
323
|
+
n = a, e(0, n);
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
return s.$$set = (a) => {
|
|
327
|
+
"clientstyling" in a && e(7, w = a.clientstyling), "clientstylingurl" in a && e(8, o = a.clientstylingurl), "translationurl" in a && e(9, _ = a.translationurl), "showbackbutton" in a && e(10, h = a.showbackbutton), "title" in a && e(11, r = a.title), "lang" in a && e(12, g = a.lang), "showclosebutton" in a && e(13, d = a.showclosebutton), "mbsource" in a && e(14, c = a.mbsource), "$$scope" in a && e(15, f = a.$$scope);
|
|
328
|
+
}, s.$$.update = () => {
|
|
329
|
+
s.$$.dirty & /*lang*/
|
|
330
|
+
4096 && g && G(), s.$$.dirty & /*lang, title*/
|
|
331
|
+
6144 && g && r && Q(), s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
332
|
+
129 && w && n && ut(n, w), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
333
|
+
257 && o && n && ft(n, o), s.$$.dirty & /*mbsource, customStylingContainer*/
|
|
334
|
+
16385 && c && n && ht(n, `${c}.Style`, u), s.$$.dirty & /*lang, translationurl*/
|
|
335
|
+
4608 && g && _ && Z(), s.$$.dirty & /*showbackbutton*/
|
|
336
|
+
1024 && h && Y(), s.$$.dirty & /*showclosebutton*/
|
|
337
|
+
8192 && d && J();
|
|
338
|
+
}, [
|
|
339
|
+
n,
|
|
340
|
+
F,
|
|
341
|
+
M,
|
|
342
|
+
T,
|
|
343
|
+
l,
|
|
344
|
+
P,
|
|
345
|
+
W,
|
|
346
|
+
w,
|
|
347
|
+
o,
|
|
348
|
+
_,
|
|
349
|
+
h,
|
|
350
|
+
r,
|
|
351
|
+
g,
|
|
352
|
+
d,
|
|
353
|
+
c,
|
|
354
|
+
f,
|
|
355
|
+
i,
|
|
356
|
+
V
|
|
357
|
+
];
|
|
358
|
+
}
|
|
359
|
+
class Lt extends et {
|
|
360
|
+
constructor(t) {
|
|
361
|
+
super(), st(
|
|
362
|
+
this,
|
|
363
|
+
t,
|
|
364
|
+
vt,
|
|
365
|
+
Bt,
|
|
366
|
+
it,
|
|
367
|
+
{
|
|
368
|
+
clientstyling: 7,
|
|
369
|
+
clientstylingurl: 8,
|
|
370
|
+
translationurl: 9,
|
|
371
|
+
showbackbutton: 10,
|
|
372
|
+
title: 11,
|
|
373
|
+
lang: 12,
|
|
374
|
+
showclosebutton: 13,
|
|
375
|
+
mbsource: 14
|
|
376
|
+
},
|
|
377
|
+
_t
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
get clientstyling() {
|
|
381
|
+
return this.$$.ctx[7];
|
|
382
|
+
}
|
|
383
|
+
set clientstyling(t) {
|
|
384
|
+
this.$$set({ clientstyling: t }), m();
|
|
385
|
+
}
|
|
386
|
+
get clientstylingurl() {
|
|
387
|
+
return this.$$.ctx[8];
|
|
388
|
+
}
|
|
389
|
+
set clientstylingurl(t) {
|
|
390
|
+
this.$$set({ clientstylingurl: t }), m();
|
|
391
|
+
}
|
|
392
|
+
get translationurl() {
|
|
393
|
+
return this.$$.ctx[9];
|
|
394
|
+
}
|
|
395
|
+
set translationurl(t) {
|
|
396
|
+
this.$$set({ translationurl: t }), m();
|
|
397
|
+
}
|
|
398
|
+
get showbackbutton() {
|
|
399
|
+
return this.$$.ctx[10];
|
|
400
|
+
}
|
|
401
|
+
set showbackbutton(t) {
|
|
402
|
+
this.$$set({ showbackbutton: t }), m();
|
|
403
|
+
}
|
|
404
|
+
get title() {
|
|
405
|
+
return this.$$.ctx[11];
|
|
406
|
+
}
|
|
407
|
+
set title(t) {
|
|
408
|
+
this.$$set({ title: t }), m();
|
|
409
|
+
}
|
|
410
|
+
get lang() {
|
|
411
|
+
return this.$$.ctx[12];
|
|
412
|
+
}
|
|
413
|
+
set lang(t) {
|
|
414
|
+
this.$$set({ lang: t }), m();
|
|
415
|
+
}
|
|
416
|
+
get showclosebutton() {
|
|
417
|
+
return this.$$.ctx[13];
|
|
418
|
+
}
|
|
419
|
+
set showclosebutton(t) {
|
|
420
|
+
this.$$set({ showclosebutton: t }), m();
|
|
421
|
+
}
|
|
422
|
+
get mbsource() {
|
|
423
|
+
return this.$$.ctx[14];
|
|
424
|
+
}
|
|
425
|
+
set mbsource(t) {
|
|
426
|
+
this.$$set({ mbsource: t }), m();
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
gt(Lt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
430
|
+
export {
|
|
431
|
+
Lt as default
|
|
432
|
+
};
|