@everymatrix/cashier-page 1.50.304 → 1.50.305
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-C4JyxSzk.cjs +1 -0
- package/components/CashierCarousel-CdH773Mk.js +735 -0
- package/components/CashierCarousel-yUi4680j.js +732 -0
- package/components/CashierError-Cdf8I6Og.js +953 -0
- package/components/CashierError-DGx9BFEl.cjs +1 -0
- package/components/CashierError-DMbuN8NJ.js +953 -0
- package/components/CashierHeader-4vhfKK08.cjs +1 -0
- package/components/CashierHeader-DlSadVkU.js +491 -0
- package/components/CashierHeader-DrNC7nBA.js +491 -0
- package/components/CashierIframeRedirect-CGk9QqTZ.cjs +1 -0
- package/components/CashierIframeRedirect-Cf6o5h5t.js +393 -0
- package/components/CashierIframeRedirect-_UPoA5lm.js +393 -0
- package/components/CashierMethodDetails-BRpFF_eR.cjs +248 -0
- package/components/CashierMethodDetails-CKLydMS-.js +12217 -0
- package/components/CashierMethodDetails-CubxRA6g.js +12287 -0
- package/components/CashierMethodsList-2qjA3aPh.js +993 -0
- package/components/CashierMethodsList-CEVlgLj9.cjs +1 -0
- package/components/CashierMethodsList-DmdXDzuf.js +979 -0
- package/components/CashierModal-B8TqQTD_.js +402 -0
- package/components/CashierModal-CBeHpvlK.cjs +1 -0
- package/components/CashierModal-CWQNVCs9.js +386 -0
- package/components/CashierNotifications-AywdFbkx.js +129 -0
- package/components/CashierNotifications-DwenxerS.js +129 -0
- package/components/CashierNotifications-rtm-9wki.cjs +1 -0
- package/components/CashierPage-BKEUBLq4.cjs +23 -0
- package/components/CashierPage-C9fgQcpG.js +10333 -0
- package/components/CashierPage-hdlCcEMS.js +10386 -0
- package/components/CashierReceiptPage-CFCZejZe.js +2247 -0
- package/components/CashierReceiptPage-D732pgQh.cjs +29 -0
- package/components/CashierReceiptPage-DkW-nM17.js +2227 -0
- package/components/CashierSessionExpirationModal-BCmKKrur.js +1228 -0
- package/components/CashierSessionExpirationModal-COInHjK3.js +1228 -0
- package/components/CashierSessionExpirationModal-DBByQcJ8.cjs +2 -0
- package/components/CashierSpinner-Cn86jq8V.js +79 -0
- package/components/CashierSpinner-Dbkf4wI2.cjs +1 -0
- package/components/CashierSpinner-Y3hEo9hR.js +79 -0
- package/components/CashierStepUp-DbrJ8Nfq.cjs +1 -0
- package/components/CashierStepUp-Dixcv2qu.js +1247 -0
- package/components/CashierStepUp-ukl3xU6x.js +1207 -0
- package/components/CashierTransactionHistory-CFpprc1b.cjs +1 -0
- package/components/CashierTransactionHistory-CuzXI0rA.js +1465 -0
- package/components/CashierTransactionHistory-DjNcuT2S.js +1465 -0
- package/components/CashierVerifications-CPk_PIOk.js +772 -0
- package/components/CashierVerifications-DMUfOmko.js +768 -0
- package/components/CashierVerifications-a4hvMt9c.cjs +1 -0
- package/components/TxnStatusIcon-C0AHRmDR.js +142 -0
- package/components/TxnStatusIcon-CNyjMAuB.cjs +1 -0
- package/components/TxnStatusIcon-Ct3mDGnL.js +142 -0
- package/components/TxnTypeIcons-BNyvM3id.cjs +1 -0
- package/components/TxnTypeIcons-aoMmDl_K.js +101 -0
- package/components/TxnTypeIcons-sI42ATps.js +101 -0
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./CashierPage-BKEUBLq4.cjs");function k(s,e){n.addMessages(s,e)}function I(s){n.init({fallbackLocale:"en"}),n.$locale.set(s)}const L={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ış"}}},b="__WIDGET_GLOBAL_STYLE_CACHE__";function A(s,e){if(s){const t=document.createElement("style");t.innerHTML=e,s.appendChild(t)}}function R(s,e){if(!s||!e)return;const t=new URL(e);fetch(t.href).then(l=>l.text()).then(l=>{const i=document.createElement("style");i.innerHTML=l,s&&s.appendChild(i)}).catch(l=>{console.error("There was an error while trying to load client styling from URL",l)})}function z(s,e,t,l=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!l)return t=P(s,e),t;window[b]||(window[b]={}),t=q(s,e);const a=t.unsubscribe.bind(t),d=()=>{if(window[b][e]){const c=window[b][e];c.refCount>1?c.refCount=c.refCount-1:delete window[b][e]}a()};return t.unsubscribe=d,t}function P(s,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,l=>{s&&(t.innerHTML=l,s.appendChild(t))})}function q(s,e){return window.emMessageBus.subscribe(e,t=>{if(!s)return;const l=s.getRootNode(),i=window[b];let a=i[e]&&i[e].sheet;a?i[e].refCount=i[e].refCount+1:(a=new CSSStyleSheet,a.replaceSync(t),i[e]={sheet:a,refCount:1});const d=l.adoptedStyleSheets||[];d.includes(a)||(l.adoptedStyleSheets=[...d,a])})}function G(s){n.append_styles(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)}")}const W=s=>({}),B=s=>({}),Y=s=>({}),v=s=>({}),Z=s=>({}),H=s=>({});function T(s){let e,t,l;return{c(){e=n.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>',n.attr(e,"class","CashierHeaderLeftButton")},m(i,a){n.insert(i,e,a),t||(l=n.listen(e,"click",s[6]),t=!0)},p:n.noop,d(i){i&&n.detach(e),t=!1,l()}}}function J(s){let e,t=s[1]&&T(s);return{c(){t&&t.c(),e=n.empty()},m(l,i){t&&t.m(l,i),n.insert(l,e,i)},p(l,i){l[1]?t?t.p(l,i):(t=T(l),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(l){l&&n.detach(e),t&&t.d(l)}}}function Q(s){let e,t=s[4](s[2])+"",l;return{c(){e=n.element("span"),l=n.text(t),n.attr(e,"class","CashierHeaderTitle")},m(i,a){n.insert(i,e,a),n.append(e,l)},p(i,a){a&20&&t!==(t=i[4](i[2])+"")&&n.set_data(l,t)},d(i){i&&n.detach(e)}}}function M(s){let e,t,l;return{c(){e=n.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>',n.attr(e,"class","CashierHeaderRightButton")},m(i,a){n.insert(i,e,a),t||(l=n.listen(e,"click",s[5]),t=!0)},p:n.noop,d(i){i&&n.detach(e),t=!1,l()}}}function V(s){let e,t=s[3]&&M(s);return{c(){t&&t.c(),e=n.empty()},m(l,i){t&&t.m(l,i),n.insert(l,e,i)},p(l,i){l[3]?t?t.p(l,i):(t=M(l),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(l){l&&n.detach(e),t&&t.d(l)}}}function X(s){let e,t,l,i;const a=s[16].leftButton,d=n.create_slot(a,s,s[15],H),c=d||J(s),p=s[16].title,g=n.create_slot(p,s,s[15],v),u=g||Q(s),_=s[16].rightButton,w=n.create_slot(_,s,s[15],B),h=w||V(s);return{c(){e=n.element("div"),c&&c.c(),t=n.space(),u&&u.c(),l=n.space(),h&&h.c(),n.attr(e,"class","CashierHeader")},m(o,f){n.insert(o,e,f),c&&c.m(e,null),n.append(e,t),u&&u.m(e,null),n.append(e,l),h&&h.m(e,null),s[17](e),i=!0},p(o,[f]){d?d.p&&(!i||f&32768)&&n.update_slot_base(d,a,o,o[15],i?n.get_slot_changes(a,o[15],f,Z):n.get_all_dirty_from_scope(o[15]),H):c&&c.p&&(!i||f&2)&&c.p(o,i?f:-1),g?g.p&&(!i||f&32768)&&n.update_slot_base(g,p,o,o[15],i?n.get_slot_changes(p,o[15],f,Y):n.get_all_dirty_from_scope(o[15]),v):u&&u.p&&(!i||f&20)&&u.p(o,i?f:-1),w?w.p&&(!i||f&32768)&&n.update_slot_base(w,_,o,o[15],i?n.get_slot_changes(_,o[15],f,W):n.get_all_dirty_from_scope(o[15]),B):h&&h.p&&(!i||f&8)&&h.p(o,i?f:-1)},i(o){i||(n.transition_in(c,o),n.transition_in(u,o),n.transition_in(h,o),i=!0)},o(o){n.transition_out(c,o),n.transition_out(u,o),n.transition_out(h,o),i=!1},d(o){o&&n.detach(e),c&&c.d(o),u&&u.d(o),h&&h.d(o),s[17](null)}}}function $(s,e,t){let l;n.component_subscribe(s,n.$format,r=>t(4,l=r));let{$$slots:i={},$$scope:a}=e,{clientstyling:d=""}=e,{clientstylingurl:c=""}=e,{translationurl:p=""}=e,{showbackbutton:g=""}=e,{title:u="header.general"}=e,{lang:_="en"}=e,{showclosebutton:w=""}=e,{mbsource:h=""}=e,o,f,m=!1,C,y=!1;const F=()=>{fetch(p).then(r=>r.json()).then(r=>{Object.keys(r).forEach(S=>{k(S,r[S])})}).catch(r=>{console.log(r)})};Object.keys(L).forEach(r=>{k(r,L[r])});const O=()=>{I(_)},j=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},U=()=>{window.postMessage({type:"BackCashier"},window.location.href)},N=()=>{t(1,m=!!g&&g!=="false")},D=()=>{t(3,y=!!w&&w!=="false")},K=()=>{t(2,C=u||"header.general")};n.onMount(()=>()=>{});function x(r){n.binding_callbacks[r?"unshift":"push"](()=>{o=r,t(0,o)})}return s.$$set=r=>{"clientstyling"in r&&t(7,d=r.clientstyling),"clientstylingurl"in r&&t(8,c=r.clientstylingurl),"translationurl"in r&&t(9,p=r.translationurl),"showbackbutton"in r&&t(10,g=r.showbackbutton),"title"in r&&t(11,u=r.title),"lang"in r&&t(12,_=r.lang),"showclosebutton"in r&&t(13,w=r.showclosebutton),"mbsource"in r&&t(14,h=r.mbsource),"$$scope"in r&&t(15,a=r.$$scope)},s.$$.update=()=>{s.$$.dirty&4096&&_&&O(),s.$$.dirty&6144&&_&&u&&K(),s.$$.dirty&129&&d&&o&&A(o,d),s.$$.dirty&257&&c&&o&&R(o,c),s.$$.dirty&16385&&h&&o&&z(o,`${h}.Style`,f),s.$$.dirty&4608&&_&&p&&F(),s.$$.dirty&1024&&g&&N(),s.$$.dirty&8192&&w&&D()},[o,m,C,y,l,j,U,d,c,p,g,u,_,w,h,a,i,x]}class E extends n.SvelteComponent{constructor(e){super(),n.init$1(this,e,$,X,n.safe_not_equal,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},G)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),n.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),n.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),n.flush()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(e){this.$$set({showbackbutton:e}),n.flush()}get title(){return this.$$.ctx[11]}set title(e){this.$$set({title:e}),n.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),n.flush()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(e){this.$$set({showclosebutton:e}),n.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(e){this.$$set({mbsource:e}),n.flush()}}n.create_custom_element(E,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);const ee=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"}));exports.CashierHeader_ce=ee;exports.setClientStyling=A;exports.setClientStylingURL=R;exports.setStreamStyling=z;
|
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
import { a as ee, i as te, $ as se, S as ne, b as ie, s as le, f as b, c as oe, d as S, e as p, t as B, g as L, u as v, h as H, j as T, k as C, l as M, m as y, n as F, o as k, p as ae, q as re, r as I, v as ce, w as ue, x as fe, y as q, z as G, A as he, B as de } from "./CashierPage-hdlCcEMS.js";
|
|
2
|
+
function O(s, e) {
|
|
3
|
+
ee(s, e);
|
|
4
|
+
}
|
|
5
|
+
function ge(s) {
|
|
6
|
+
te({
|
|
7
|
+
fallbackLocale: "en"
|
|
8
|
+
}), se.set(s);
|
|
9
|
+
}
|
|
10
|
+
const R = {
|
|
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
|
+
}, m = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
68
|
+
function we(s, e) {
|
|
69
|
+
if (s) {
|
|
70
|
+
const t = document.createElement("style");
|
|
71
|
+
t.innerHTML = e, s.appendChild(t);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function _e(s, e) {
|
|
75
|
+
if (!s || !e)
|
|
76
|
+
return;
|
|
77
|
+
const t = new URL(e);
|
|
78
|
+
fetch(t.href).then((i) => i.text()).then((i) => {
|
|
79
|
+
const n = document.createElement("style");
|
|
80
|
+
n.innerHTML = i, s && s.appendChild(n);
|
|
81
|
+
}).catch((i) => {
|
|
82
|
+
console.error("There was an error while trying to load client styling from URL", i);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function be(s, e, t, i = !1) {
|
|
86
|
+
if (!window.emMessageBus)
|
|
87
|
+
return;
|
|
88
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !i)
|
|
89
|
+
return t = me(s, e), t;
|
|
90
|
+
window[m] || (window[m] = {}), t = pe(s, e);
|
|
91
|
+
const a = t.unsubscribe.bind(t), h = () => {
|
|
92
|
+
if (window[m][e]) {
|
|
93
|
+
const r = window[m][e];
|
|
94
|
+
r.refCount > 1 ? r.refCount = r.refCount - 1 : delete window[m][e];
|
|
95
|
+
}
|
|
96
|
+
a();
|
|
97
|
+
};
|
|
98
|
+
return t.unsubscribe = h, t;
|
|
99
|
+
}
|
|
100
|
+
function me(s, e) {
|
|
101
|
+
const t = document.createElement("style");
|
|
102
|
+
return window.emMessageBus.subscribe(e, (i) => {
|
|
103
|
+
s && (t.innerHTML = i, s.appendChild(t));
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function pe(s, e) {
|
|
107
|
+
return window.emMessageBus.subscribe(e, (t) => {
|
|
108
|
+
if (!s)
|
|
109
|
+
return;
|
|
110
|
+
const i = s.getRootNode(), n = window[m];
|
|
111
|
+
let a = n[e] && n[e].sheet;
|
|
112
|
+
a ? n[e].refCount = n[e].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(t), n[e] = {
|
|
113
|
+
sheet: a,
|
|
114
|
+
refCount: 1
|
|
115
|
+
});
|
|
116
|
+
const h = i.adoptedStyleSheets || [];
|
|
117
|
+
h.includes(a) || (i.adoptedStyleSheets = [...h, a]);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function Ce(s) {
|
|
121
|
+
oe(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)}");
|
|
122
|
+
}
|
|
123
|
+
const ye = (s) => ({}), x = (s) => ({}), ke = (s) => ({}), N = (s) => ({}), Se = (s) => ({}), U = (s) => ({});
|
|
124
|
+
function D(s) {
|
|
125
|
+
let e, t, i;
|
|
126
|
+
return {
|
|
127
|
+
c() {
|
|
128
|
+
e = y("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>', k(e, "class", "CashierHeaderLeftButton");
|
|
129
|
+
},
|
|
130
|
+
m(n, a) {
|
|
131
|
+
C(n, e, a), t || (i = G(
|
|
132
|
+
e,
|
|
133
|
+
"click",
|
|
134
|
+
/*back*/
|
|
135
|
+
s[6]
|
|
136
|
+
), t = !0);
|
|
137
|
+
},
|
|
138
|
+
p: q,
|
|
139
|
+
d(n) {
|
|
140
|
+
n && p(e), t = !1, i();
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function Be(s) {
|
|
145
|
+
let e, t = (
|
|
146
|
+
/*backButton*/
|
|
147
|
+
s[1] && D(s)
|
|
148
|
+
);
|
|
149
|
+
return {
|
|
150
|
+
c() {
|
|
151
|
+
t && t.c(), e = I();
|
|
152
|
+
},
|
|
153
|
+
m(i, n) {
|
|
154
|
+
t && t.m(i, n), C(i, e, n);
|
|
155
|
+
},
|
|
156
|
+
p(i, n) {
|
|
157
|
+
/*backButton*/
|
|
158
|
+
i[1] ? t ? t.p(i, n) : (t = D(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
|
159
|
+
},
|
|
160
|
+
d(i) {
|
|
161
|
+
i && p(e), t && t.d(i);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
function Le(s) {
|
|
166
|
+
let e, t = (
|
|
167
|
+
/*$_*/
|
|
168
|
+
s[4](
|
|
169
|
+
/*titleText*/
|
|
170
|
+
s[2]
|
|
171
|
+
) + ""
|
|
172
|
+
), i;
|
|
173
|
+
return {
|
|
174
|
+
c() {
|
|
175
|
+
e = y("span"), i = ue(t), k(e, "class", "CashierHeaderTitle");
|
|
176
|
+
},
|
|
177
|
+
m(n, a) {
|
|
178
|
+
C(n, e, a), M(e, i);
|
|
179
|
+
},
|
|
180
|
+
p(n, a) {
|
|
181
|
+
a & /*$_, titleText*/
|
|
182
|
+
20 && t !== (t = /*$_*/
|
|
183
|
+
n[4](
|
|
184
|
+
/*titleText*/
|
|
185
|
+
n[2]
|
|
186
|
+
) + "") && ce(i, t);
|
|
187
|
+
},
|
|
188
|
+
d(n) {
|
|
189
|
+
n && p(e);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function K(s) {
|
|
194
|
+
let e, t, i;
|
|
195
|
+
return {
|
|
196
|
+
c() {
|
|
197
|
+
e = y("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>', k(e, "class", "CashierHeaderRightButton");
|
|
198
|
+
},
|
|
199
|
+
m(n, a) {
|
|
200
|
+
C(n, e, a), t || (i = G(
|
|
201
|
+
e,
|
|
202
|
+
"click",
|
|
203
|
+
/*close*/
|
|
204
|
+
s[5]
|
|
205
|
+
), t = !0);
|
|
206
|
+
},
|
|
207
|
+
p: q,
|
|
208
|
+
d(n) {
|
|
209
|
+
n && p(e), t = !1, i();
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function ve(s) {
|
|
214
|
+
let e, t = (
|
|
215
|
+
/*closeButton*/
|
|
216
|
+
s[3] && K(s)
|
|
217
|
+
);
|
|
218
|
+
return {
|
|
219
|
+
c() {
|
|
220
|
+
t && t.c(), e = I();
|
|
221
|
+
},
|
|
222
|
+
m(i, n) {
|
|
223
|
+
t && t.m(i, n), C(i, e, n);
|
|
224
|
+
},
|
|
225
|
+
p(i, n) {
|
|
226
|
+
/*closeButton*/
|
|
227
|
+
i[3] ? t ? t.p(i, n) : (t = K(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
|
228
|
+
},
|
|
229
|
+
d(i) {
|
|
230
|
+
i && p(e), t && t.d(i);
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
function He(s) {
|
|
235
|
+
let e, t, i, n;
|
|
236
|
+
const a = (
|
|
237
|
+
/*#slots*/
|
|
238
|
+
s[16].leftButton
|
|
239
|
+
), h = S(
|
|
240
|
+
a,
|
|
241
|
+
s,
|
|
242
|
+
/*$$scope*/
|
|
243
|
+
s[15],
|
|
244
|
+
U
|
|
245
|
+
), r = h || Be(s), _ = (
|
|
246
|
+
/*#slots*/
|
|
247
|
+
s[16].title
|
|
248
|
+
), d = S(
|
|
249
|
+
_,
|
|
250
|
+
s,
|
|
251
|
+
/*$$scope*/
|
|
252
|
+
s[15],
|
|
253
|
+
N
|
|
254
|
+
), c = d || Le(s), g = (
|
|
255
|
+
/*#slots*/
|
|
256
|
+
s[16].rightButton
|
|
257
|
+
), w = S(
|
|
258
|
+
g,
|
|
259
|
+
s,
|
|
260
|
+
/*$$scope*/
|
|
261
|
+
s[15],
|
|
262
|
+
x
|
|
263
|
+
), u = w || ve(s);
|
|
264
|
+
return {
|
|
265
|
+
c() {
|
|
266
|
+
e = y("div"), r && r.c(), t = F(), c && c.c(), i = F(), u && u.c(), k(e, "class", "CashierHeader");
|
|
267
|
+
},
|
|
268
|
+
m(l, f) {
|
|
269
|
+
C(l, e, f), r && r.m(e, null), M(e, t), c && c.m(e, null), M(e, i), u && u.m(e, null), s[17](e), n = !0;
|
|
270
|
+
},
|
|
271
|
+
p(l, [f]) {
|
|
272
|
+
h ? h.p && (!n || f & /*$$scope*/
|
|
273
|
+
32768) && v(
|
|
274
|
+
h,
|
|
275
|
+
a,
|
|
276
|
+
l,
|
|
277
|
+
/*$$scope*/
|
|
278
|
+
l[15],
|
|
279
|
+
n ? T(
|
|
280
|
+
a,
|
|
281
|
+
/*$$scope*/
|
|
282
|
+
l[15],
|
|
283
|
+
f,
|
|
284
|
+
Se
|
|
285
|
+
) : H(
|
|
286
|
+
/*$$scope*/
|
|
287
|
+
l[15]
|
|
288
|
+
),
|
|
289
|
+
U
|
|
290
|
+
) : r && r.p && (!n || f & /*backButton*/
|
|
291
|
+
2) && r.p(l, n ? f : -1), d ? d.p && (!n || f & /*$$scope*/
|
|
292
|
+
32768) && v(
|
|
293
|
+
d,
|
|
294
|
+
_,
|
|
295
|
+
l,
|
|
296
|
+
/*$$scope*/
|
|
297
|
+
l[15],
|
|
298
|
+
n ? T(
|
|
299
|
+
_,
|
|
300
|
+
/*$$scope*/
|
|
301
|
+
l[15],
|
|
302
|
+
f,
|
|
303
|
+
ke
|
|
304
|
+
) : H(
|
|
305
|
+
/*$$scope*/
|
|
306
|
+
l[15]
|
|
307
|
+
),
|
|
308
|
+
N
|
|
309
|
+
) : c && c.p && (!n || f & /*$_, titleText*/
|
|
310
|
+
20) && c.p(l, n ? f : -1), w ? w.p && (!n || f & /*$$scope*/
|
|
311
|
+
32768) && v(
|
|
312
|
+
w,
|
|
313
|
+
g,
|
|
314
|
+
l,
|
|
315
|
+
/*$$scope*/
|
|
316
|
+
l[15],
|
|
317
|
+
n ? T(
|
|
318
|
+
g,
|
|
319
|
+
/*$$scope*/
|
|
320
|
+
l[15],
|
|
321
|
+
f,
|
|
322
|
+
ye
|
|
323
|
+
) : H(
|
|
324
|
+
/*$$scope*/
|
|
325
|
+
l[15]
|
|
326
|
+
),
|
|
327
|
+
x
|
|
328
|
+
) : u && u.p && (!n || f & /*closeButton*/
|
|
329
|
+
8) && u.p(l, n ? f : -1);
|
|
330
|
+
},
|
|
331
|
+
i(l) {
|
|
332
|
+
n || (L(r, l), L(c, l), L(u, l), n = !0);
|
|
333
|
+
},
|
|
334
|
+
o(l) {
|
|
335
|
+
B(r, l), B(c, l), B(u, l), n = !1;
|
|
336
|
+
},
|
|
337
|
+
d(l) {
|
|
338
|
+
l && p(e), r && r.d(l), c && c.d(l), u && u.d(l), s[17](null);
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
function Te(s, e, t) {
|
|
343
|
+
let i;
|
|
344
|
+
ae(s, de, (o) => t(4, i = o));
|
|
345
|
+
let { $$slots: n = {}, $$scope: a } = e, { clientstyling: h = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: _ = "" } = e, { showbackbutton: d = "" } = e, { title: c = "header.general" } = e, { lang: g = "en" } = e, { showclosebutton: w = "" } = e, { mbsource: u = "" } = e, l, f, A = !1, z, j = !1;
|
|
346
|
+
const W = () => {
|
|
347
|
+
fetch(_).then((o) => o.json()).then((o) => {
|
|
348
|
+
Object.keys(o).forEach((E) => {
|
|
349
|
+
O(E, o[E]);
|
|
350
|
+
});
|
|
351
|
+
}).catch((o) => {
|
|
352
|
+
console.log(o);
|
|
353
|
+
});
|
|
354
|
+
};
|
|
355
|
+
Object.keys(R).forEach((o) => {
|
|
356
|
+
O(o, R[o]);
|
|
357
|
+
});
|
|
358
|
+
const Y = () => {
|
|
359
|
+
ge(g);
|
|
360
|
+
}, Z = () => {
|
|
361
|
+
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
362
|
+
}, J = () => {
|
|
363
|
+
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
364
|
+
}, Q = () => {
|
|
365
|
+
t(1, A = !!d && d !== "false");
|
|
366
|
+
}, V = () => {
|
|
367
|
+
t(3, j = !!w && w !== "false");
|
|
368
|
+
}, X = () => {
|
|
369
|
+
t(2, z = c || "header.general");
|
|
370
|
+
};
|
|
371
|
+
re(() => () => {
|
|
372
|
+
});
|
|
373
|
+
function $(o) {
|
|
374
|
+
fe[o ? "unshift" : "push"](() => {
|
|
375
|
+
l = o, t(0, l);
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
return s.$$set = (o) => {
|
|
379
|
+
"clientstyling" in o && t(7, h = o.clientstyling), "clientstylingurl" in o && t(8, r = o.clientstylingurl), "translationurl" in o && t(9, _ = o.translationurl), "showbackbutton" in o && t(10, d = o.showbackbutton), "title" in o && t(11, c = o.title), "lang" in o && t(12, g = o.lang), "showclosebutton" in o && t(13, w = o.showclosebutton), "mbsource" in o && t(14, u = o.mbsource), "$$scope" in o && t(15, a = o.$$scope);
|
|
380
|
+
}, s.$$.update = () => {
|
|
381
|
+
s.$$.dirty & /*lang*/
|
|
382
|
+
4096 && g && Y(), s.$$.dirty & /*lang, title*/
|
|
383
|
+
6144 && g && c && X(), s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
384
|
+
129 && h && l && we(l, h), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
385
|
+
257 && r && l && _e(l, r), s.$$.dirty & /*mbsource, customStylingContainer*/
|
|
386
|
+
16385 && u && l && be(l, `${u}.Style`, f), s.$$.dirty & /*lang, translationurl*/
|
|
387
|
+
4608 && g && _ && W(), s.$$.dirty & /*showbackbutton*/
|
|
388
|
+
1024 && d && Q(), s.$$.dirty & /*showclosebutton*/
|
|
389
|
+
8192 && w && V();
|
|
390
|
+
}, [
|
|
391
|
+
l,
|
|
392
|
+
A,
|
|
393
|
+
z,
|
|
394
|
+
j,
|
|
395
|
+
i,
|
|
396
|
+
Z,
|
|
397
|
+
J,
|
|
398
|
+
h,
|
|
399
|
+
r,
|
|
400
|
+
_,
|
|
401
|
+
d,
|
|
402
|
+
c,
|
|
403
|
+
g,
|
|
404
|
+
w,
|
|
405
|
+
u,
|
|
406
|
+
a,
|
|
407
|
+
n,
|
|
408
|
+
$
|
|
409
|
+
];
|
|
410
|
+
}
|
|
411
|
+
class P extends ne {
|
|
412
|
+
constructor(e) {
|
|
413
|
+
super(), ie(
|
|
414
|
+
this,
|
|
415
|
+
e,
|
|
416
|
+
Te,
|
|
417
|
+
He,
|
|
418
|
+
le,
|
|
419
|
+
{
|
|
420
|
+
clientstyling: 7,
|
|
421
|
+
clientstylingurl: 8,
|
|
422
|
+
translationurl: 9,
|
|
423
|
+
showbackbutton: 10,
|
|
424
|
+
title: 11,
|
|
425
|
+
lang: 12,
|
|
426
|
+
showclosebutton: 13,
|
|
427
|
+
mbsource: 14
|
|
428
|
+
},
|
|
429
|
+
Ce
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
get clientstyling() {
|
|
433
|
+
return this.$$.ctx[7];
|
|
434
|
+
}
|
|
435
|
+
set clientstyling(e) {
|
|
436
|
+
this.$$set({ clientstyling: e }), b();
|
|
437
|
+
}
|
|
438
|
+
get clientstylingurl() {
|
|
439
|
+
return this.$$.ctx[8];
|
|
440
|
+
}
|
|
441
|
+
set clientstylingurl(e) {
|
|
442
|
+
this.$$set({ clientstylingurl: e }), b();
|
|
443
|
+
}
|
|
444
|
+
get translationurl() {
|
|
445
|
+
return this.$$.ctx[9];
|
|
446
|
+
}
|
|
447
|
+
set translationurl(e) {
|
|
448
|
+
this.$$set({ translationurl: e }), b();
|
|
449
|
+
}
|
|
450
|
+
get showbackbutton() {
|
|
451
|
+
return this.$$.ctx[10];
|
|
452
|
+
}
|
|
453
|
+
set showbackbutton(e) {
|
|
454
|
+
this.$$set({ showbackbutton: e }), b();
|
|
455
|
+
}
|
|
456
|
+
get title() {
|
|
457
|
+
return this.$$.ctx[11];
|
|
458
|
+
}
|
|
459
|
+
set title(e) {
|
|
460
|
+
this.$$set({ title: e }), b();
|
|
461
|
+
}
|
|
462
|
+
get lang() {
|
|
463
|
+
return this.$$.ctx[12];
|
|
464
|
+
}
|
|
465
|
+
set lang(e) {
|
|
466
|
+
this.$$set({ lang: e }), b();
|
|
467
|
+
}
|
|
468
|
+
get showclosebutton() {
|
|
469
|
+
return this.$$.ctx[13];
|
|
470
|
+
}
|
|
471
|
+
set showclosebutton(e) {
|
|
472
|
+
this.$$set({ showclosebutton: e }), b();
|
|
473
|
+
}
|
|
474
|
+
get mbsource() {
|
|
475
|
+
return this.$$.ctx[14];
|
|
476
|
+
}
|
|
477
|
+
set mbsource(e) {
|
|
478
|
+
this.$$set({ mbsource: e }), b();
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
he(P, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
482
|
+
const Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
483
|
+
__proto__: null,
|
|
484
|
+
default: P
|
|
485
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
486
|
+
export {
|
|
487
|
+
Ae as C,
|
|
488
|
+
_e as a,
|
|
489
|
+
be as b,
|
|
490
|
+
we as s
|
|
491
|
+
};
|