@everymatrix/transaction-history-page 0.0.1
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/CashierHeader-5zy8g8OM.js +4500 -0
- package/components/CashierHeader-D8XyDtbQ.js +4463 -0
- package/components/CashierHeader-WepsG79s.cjs +21 -0
- package/components/CashierPagination-BAxf9S89.js +287 -0
- package/components/CashierPagination-DS04u5aL.js +287 -0
- package/components/CashierPagination-OH0bY8kI.cjs +3 -0
- package/components/CashierTransactionHistory-ByYI6h3-.js +1606 -0
- package/components/CashierTransactionHistory-DDHBkAnM.js +1606 -0
- package/components/CashierTransactionHistory-cF3SrkZI.cjs +1 -0
- package/components/EmptyStateIcon-BKTXVMxl.js +27 -0
- package/components/EmptyStateIcon-BXdFAthb.cjs +1 -0
- package/components/EmptyStateIcon-BmntjMXF.js +27 -0
- package/components/Tooltip-CH7HmcK4.cjs +1 -0
- package/components/Tooltip-WAE69Wpz.js +113 -0
- package/components/Tooltip-XvNWUv3X.js +113 -0
- package/components/TransactionHistoryCalendar-CGecBXnr.js +5166 -0
- package/components/TransactionHistoryCalendar-DqleOuPE.cjs +22 -0
- package/components/TransactionHistoryCalendar-p3Cm8jjd.js +5137 -0
- package/components/TransactionHistoryPage-C3CWZ4Id.js +898 -0
- package/components/TransactionHistoryPage-CvCPQkSZ.cjs +1 -0
- package/components/TransactionHistoryPage-eMkQW27N.js +880 -0
- package/components/TxnStatusIcon-BkEEMoFp.js +142 -0
- package/components/TxnStatusIcon-CknmbHtX.cjs +1 -0
- package/components/TxnStatusIcon-ajCxZslH.js +142 -0
- package/components/TxnTypeIcons-D70zalMR.js +101 -0
- package/components/TxnTypeIcons-DevbhR7w.cjs +1 -0
- package/components/TxnTypeIcons-ETOHW7Tq.js +101 -0
- package/es2015/transaction-history-page.cjs +1 -0
- package/es2015/transaction-history-page.js +16 -0
- package/esnext/transaction-history-page.js +14 -0
- package/package.json +25 -0
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/index-97d17652-C7V2DWFg.js +542 -0
- package/stencil/index-97d17652-DIpvPU9H.js +558 -0
- package/stencil/ui-image-CYuYAlOX.js +7 -0
- package/stencil/ui-image-D3_FGUyo.js +25 -0
- package/stencil/ui-image-DJWD4G-S.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-B-k0kWgx.js +39 -0
- package/stencil/ui-image-b7b48fe5-D8-wEkoZ.js +39 -0
- package/stencil/ui-image-b7b48fe5-yceZ9WkN.cjs +1 -0
- package/stencil/ui-image_2-CzFe50WB.js +157 -0
- package/stencil/ui-image_2-Ha_4GYwN.cjs +55 -0
- package/stencil/ui-image_2-z5LhXZY2.js +157 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { S as P, i as Q, f as M, c as W, s as X, a as Y, e as D, b as k, d as z, g as L, h as a, j as S, k as _, l as V, n as T, m as j, o as Z, r as x, p as $, t as R, q as G, u as O, v as ee, w as te, x as le, y as ne } from "./CashierHeader-5zy8g8OM.js";
|
|
2
|
+
function ie(t) {
|
|
3
|
+
Y(t, "svelte-1rkxa9f", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.pagination{display:flex;gap:4px;align-items:center;justify-content:center;flex-wrap:wrap}button{padding:6px;border:1px solid var(--emw--color-grey-10, #F8F8F8);background:transparent;cursor:pointer;border-radius:4px;color:var(--emw--color-grey-10, #111);min-width:30px}button:hover:not(:disabled):not(.selected){border-color:var(--emw--color-grey-105, #E8E9EB)}button:disabled{color:var(--emw--color-grey-105, #E8E9EB);cursor:not-allowed}.nav-btn{display:flex;align-items:center;gap:4px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-primary, #4A975C);height:30px;width:30px}.selected{color:var(--emw--color-primary, #4A975C);font-weight:var(--emw--font-weight-bold, 700);border-color:var(--emw--color-primary, #4A975C)}");
|
|
4
|
+
}
|
|
5
|
+
function H(t, e, l) {
|
|
6
|
+
const i = t.slice();
|
|
7
|
+
return i[15] = e[l], i;
|
|
8
|
+
}
|
|
9
|
+
function I(t) {
|
|
10
|
+
let e, l, i, n;
|
|
11
|
+
return {
|
|
12
|
+
c() {
|
|
13
|
+
e = k("button"), e.textContent = "1", l = R(`
|
|
14
|
+
...`);
|
|
15
|
+
},
|
|
16
|
+
m(r, s) {
|
|
17
|
+
S(r, e, s), S(r, l, s), i || (n = V(
|
|
18
|
+
e,
|
|
19
|
+
"click",
|
|
20
|
+
/*click_handler_1*/
|
|
21
|
+
t[9]
|
|
22
|
+
), i = !0);
|
|
23
|
+
},
|
|
24
|
+
p: T,
|
|
25
|
+
d(r) {
|
|
26
|
+
r && (j(e), j(l)), i = !1, n();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function J(t) {
|
|
31
|
+
let e, l = (
|
|
32
|
+
/*page*/
|
|
33
|
+
t[15] + ""
|
|
34
|
+
), i, n, r;
|
|
35
|
+
function s() {
|
|
36
|
+
return (
|
|
37
|
+
/*click_handler_2*/
|
|
38
|
+
t[10](
|
|
39
|
+
/*page*/
|
|
40
|
+
t[15]
|
|
41
|
+
)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
c() {
|
|
46
|
+
e = k("button"), i = R(l), G(
|
|
47
|
+
e,
|
|
48
|
+
"selected",
|
|
49
|
+
/*page*/
|
|
50
|
+
t[15] === /*currentPage*/
|
|
51
|
+
t[2]
|
|
52
|
+
);
|
|
53
|
+
},
|
|
54
|
+
m(c, d) {
|
|
55
|
+
S(c, e, d), _(e, i), n || (r = V(e, "click", s), n = !0);
|
|
56
|
+
},
|
|
57
|
+
p(c, d) {
|
|
58
|
+
t = c, d & /*visiblePages*/
|
|
59
|
+
8 && l !== (l = /*page*/
|
|
60
|
+
t[15] + "") && O(i, l), d & /*visiblePages, currentPage*/
|
|
61
|
+
12 && G(
|
|
62
|
+
e,
|
|
63
|
+
"selected",
|
|
64
|
+
/*page*/
|
|
65
|
+
t[15] === /*currentPage*/
|
|
66
|
+
t[2]
|
|
67
|
+
);
|
|
68
|
+
},
|
|
69
|
+
d(c) {
|
|
70
|
+
c && j(e), n = !1, r();
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function K(t) {
|
|
75
|
+
let e, l, i, n, r;
|
|
76
|
+
return {
|
|
77
|
+
c() {
|
|
78
|
+
e = R(`...
|
|
79
|
+
`), l = k("button"), i = R(
|
|
80
|
+
/*totalpages*/
|
|
81
|
+
t[0]
|
|
82
|
+
);
|
|
83
|
+
},
|
|
84
|
+
m(s, c) {
|
|
85
|
+
S(s, e, c), S(s, l, c), _(l, i), n || (r = V(
|
|
86
|
+
l,
|
|
87
|
+
"click",
|
|
88
|
+
/*click_handler_3*/
|
|
89
|
+
t[11]
|
|
90
|
+
), n = !0);
|
|
91
|
+
},
|
|
92
|
+
p(s, c) {
|
|
93
|
+
c & /*totalpages*/
|
|
94
|
+
1 && O(
|
|
95
|
+
i,
|
|
96
|
+
/*totalpages*/
|
|
97
|
+
s[0]
|
|
98
|
+
);
|
|
99
|
+
},
|
|
100
|
+
d(s) {
|
|
101
|
+
s && (j(e), j(l)), n = !1, r();
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function se(t) {
|
|
106
|
+
let e, l, i, n, r, s, c, d = !/*visiblePages*/
|
|
107
|
+
t[3].includes(1), v, p, B = !/*visiblePages*/
|
|
108
|
+
t[3].includes(+/*totalpages*/
|
|
109
|
+
t[0]), A, y, g, F, C, u, q, b = d && I(t), E = D(
|
|
110
|
+
/*visiblePages*/
|
|
111
|
+
t[3]
|
|
112
|
+
), h = [];
|
|
113
|
+
for (let o = 0; o < E.length; o += 1)
|
|
114
|
+
h[o] = J(H(t, E, o));
|
|
115
|
+
let m = B && K(t);
|
|
116
|
+
return {
|
|
117
|
+
c() {
|
|
118
|
+
e = k("div"), l = k("nav"), i = k("button"), n = z("svg"), r = z("polyline"), c = L(), b && b.c(), v = L();
|
|
119
|
+
for (let o = 0; o < h.length; o += 1)
|
|
120
|
+
h[o].c();
|
|
121
|
+
p = L(), m && m.c(), A = L(), y = k("button"), g = z("svg"), F = z("polyline"), a(r, "points", "15 18 9 12 15 6"), a(n, "xmlns", "http://www.w3.org/2000/svg"), a(n, "width", "24"), a(n, "height", "24"), a(n, "viewBox", "0 0 24 24"), a(n, "fill", "none"), a(n, "stroke", "currentColor"), a(n, "stroke-width", "2"), a(n, "stroke-linecap", "round"), a(n, "stroke-linejoin", "round"), a(n, "class", "feather feather-chevron-left"), a(i, "class", "nav-btn"), i.disabled = s = /*currentPage*/
|
|
122
|
+
t[2] === 1, a(F, "points", "9 18 15 12 9 6"), a(g, "xmlns", "http://www.w3.org/2000/svg"), a(g, "width", "24"), a(g, "height", "24"), a(g, "viewBox", "0 0 24 24"), a(g, "fill", "none"), a(g, "stroke", "currentColor"), a(g, "stroke-width", "2"), a(g, "stroke-linecap", "round"), a(g, "stroke-linejoin", "round"), a(g, "class", "feather feather-chevron-right"), a(y, "class", "nav-btn"), y.disabled = C = /*currentPage*/
|
|
123
|
+
t[2] === /*totalpages*/
|
|
124
|
+
t[0], a(l, "class", "pagination");
|
|
125
|
+
},
|
|
126
|
+
m(o, w) {
|
|
127
|
+
S(o, e, w), _(e, l), _(l, i), _(i, n), _(n, r), _(l, c), b && b.m(l, null), _(l, v);
|
|
128
|
+
for (let f = 0; f < h.length; f += 1)
|
|
129
|
+
h[f] && h[f].m(l, null);
|
|
130
|
+
_(l, p), m && m.m(l, null), _(l, A), _(l, y), _(y, g), _(g, F), t[13](e), u || (q = [
|
|
131
|
+
V(
|
|
132
|
+
i,
|
|
133
|
+
"click",
|
|
134
|
+
/*click_handler*/
|
|
135
|
+
t[8]
|
|
136
|
+
),
|
|
137
|
+
V(
|
|
138
|
+
y,
|
|
139
|
+
"click",
|
|
140
|
+
/*click_handler_4*/
|
|
141
|
+
t[12]
|
|
142
|
+
)
|
|
143
|
+
], u = !0);
|
|
144
|
+
},
|
|
145
|
+
p(o, [w]) {
|
|
146
|
+
if (w & /*currentPage*/
|
|
147
|
+
4 && s !== (s = /*currentPage*/
|
|
148
|
+
o[2] === 1) && (i.disabled = s), w & /*visiblePages*/
|
|
149
|
+
8 && (d = !/*visiblePages*/
|
|
150
|
+
o[3].includes(1)), d ? b ? b.p(o, w) : (b = I(o), b.c(), b.m(l, v)) : b && (b.d(1), b = null), w & /*visiblePages, currentPage, goToPage*/
|
|
151
|
+
28) {
|
|
152
|
+
E = D(
|
|
153
|
+
/*visiblePages*/
|
|
154
|
+
o[3]
|
|
155
|
+
);
|
|
156
|
+
let f;
|
|
157
|
+
for (f = 0; f < E.length; f += 1) {
|
|
158
|
+
const U = H(o, E, f);
|
|
159
|
+
h[f] ? h[f].p(U, w) : (h[f] = J(U), h[f].c(), h[f].m(l, p));
|
|
160
|
+
}
|
|
161
|
+
for (; f < h.length; f += 1)
|
|
162
|
+
h[f].d(1);
|
|
163
|
+
h.length = E.length;
|
|
164
|
+
}
|
|
165
|
+
w & /*visiblePages, totalpages*/
|
|
166
|
+
9 && (B = !/*visiblePages*/
|
|
167
|
+
o[3].includes(+/*totalpages*/
|
|
168
|
+
o[0])), B ? m ? m.p(o, w) : (m = K(o), m.c(), m.m(l, A)) : m && (m.d(1), m = null), w & /*currentPage, totalpages*/
|
|
169
|
+
5 && C !== (C = /*currentPage*/
|
|
170
|
+
o[2] === /*totalpages*/
|
|
171
|
+
o[0]) && (y.disabled = C);
|
|
172
|
+
},
|
|
173
|
+
i: T,
|
|
174
|
+
o: T,
|
|
175
|
+
d(o) {
|
|
176
|
+
o && j(e), b && b.d(), Z(h, o), m && m.d(), t[13](null), u = !1, x(q);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
function N(t, e) {
|
|
181
|
+
const i = [];
|
|
182
|
+
if (e <= 5) {
|
|
183
|
+
for (let s = 1; s <= e; s++)
|
|
184
|
+
i.push(s);
|
|
185
|
+
return i;
|
|
186
|
+
}
|
|
187
|
+
let n = t - 1, r = t + 1;
|
|
188
|
+
n < 1 && (r += 1 - n, n = 1), r > e && (n -= r - e, r = e), n = Math.max(1, n);
|
|
189
|
+
for (let s = n; s <= r; s++)
|
|
190
|
+
i.push(s);
|
|
191
|
+
return i;
|
|
192
|
+
}
|
|
193
|
+
function oe(t, e, l) {
|
|
194
|
+
let { clientstyling: i = "" } = e, { clientstylingurl: n = "" } = e, { mbsource: r } = e, { totalpages: s = 5 } = e, c, d = 1, v;
|
|
195
|
+
v = N(d, s), $(() => () => {
|
|
196
|
+
});
|
|
197
|
+
function p(u) {
|
|
198
|
+
if (u >= 1 && u <= s) {
|
|
199
|
+
l(2, d = u);
|
|
200
|
+
const q = new CustomEvent(
|
|
201
|
+
"pageChange",
|
|
202
|
+
{
|
|
203
|
+
detail: { page: u },
|
|
204
|
+
bubbles: !0,
|
|
205
|
+
composed: !0
|
|
206
|
+
}
|
|
207
|
+
);
|
|
208
|
+
document.dispatchEvent(q);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
const B = () => p(d - 1), A = () => p(1), y = (u) => p(u), g = () => p(+s), F = () => p(d + 1);
|
|
212
|
+
function C(u) {
|
|
213
|
+
ee[u ? "unshift" : "push"](() => {
|
|
214
|
+
c = u, l(1, c);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
return t.$$set = (u) => {
|
|
218
|
+
"clientstyling" in u && l(5, i = u.clientstyling), "clientstylingurl" in u && l(6, n = u.clientstylingurl), "mbsource" in u && l(7, r = u.mbsource), "totalpages" in u && l(0, s = u.totalpages);
|
|
219
|
+
}, t.$$.update = () => {
|
|
220
|
+
t.$$.dirty & /*currentPage, totalpages*/
|
|
221
|
+
5 && l(3, v = N(d, s)), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
222
|
+
34 && i && c && te(c, i), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
223
|
+
66 && n && c && le(c, n), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
224
|
+
130 && r && c && ne(c, `${r}.Style`);
|
|
225
|
+
}, [
|
|
226
|
+
s,
|
|
227
|
+
c,
|
|
228
|
+
d,
|
|
229
|
+
v,
|
|
230
|
+
p,
|
|
231
|
+
i,
|
|
232
|
+
n,
|
|
233
|
+
r,
|
|
234
|
+
B,
|
|
235
|
+
A,
|
|
236
|
+
y,
|
|
237
|
+
g,
|
|
238
|
+
F,
|
|
239
|
+
C
|
|
240
|
+
];
|
|
241
|
+
}
|
|
242
|
+
class re extends P {
|
|
243
|
+
constructor(e) {
|
|
244
|
+
super(), Q(
|
|
245
|
+
this,
|
|
246
|
+
e,
|
|
247
|
+
oe,
|
|
248
|
+
se,
|
|
249
|
+
X,
|
|
250
|
+
{
|
|
251
|
+
clientstyling: 5,
|
|
252
|
+
clientstylingurl: 6,
|
|
253
|
+
mbsource: 7,
|
|
254
|
+
totalpages: 0
|
|
255
|
+
},
|
|
256
|
+
ie
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
get clientstyling() {
|
|
260
|
+
return this.$$.ctx[5];
|
|
261
|
+
}
|
|
262
|
+
set clientstyling(e) {
|
|
263
|
+
this.$$set({ clientstyling: e }), M();
|
|
264
|
+
}
|
|
265
|
+
get clientstylingurl() {
|
|
266
|
+
return this.$$.ctx[6];
|
|
267
|
+
}
|
|
268
|
+
set clientstylingurl(e) {
|
|
269
|
+
this.$$set({ clientstylingurl: e }), M();
|
|
270
|
+
}
|
|
271
|
+
get mbsource() {
|
|
272
|
+
return this.$$.ctx[7];
|
|
273
|
+
}
|
|
274
|
+
set mbsource(e) {
|
|
275
|
+
this.$$set({ mbsource: e }), M();
|
|
276
|
+
}
|
|
277
|
+
get totalpages() {
|
|
278
|
+
return this.$$.ctx[0];
|
|
279
|
+
}
|
|
280
|
+
set totalpages(e) {
|
|
281
|
+
this.$$set({ totalpages: e }), M();
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
W(re, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, totalpages: {} }, [], [], !0);
|
|
285
|
+
export {
|
|
286
|
+
re as default
|
|
287
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierHeader-WepsG79s.cjs");function z(n){e.append_styles(n,"svelte-1rkxa9f","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.pagination{display:flex;gap:4px;align-items:center;justify-content:center;flex-wrap:wrap}button{padding:6px;border:1px solid var(--emw--color-grey-10, #F8F8F8);background:transparent;cursor:pointer;border-radius:4px;color:var(--emw--color-grey-10, #111);min-width:30px}button:hover:not(:disabled):not(.selected){border-color:var(--emw--color-grey-105, #E8E9EB)}button:disabled{color:var(--emw--color-grey-105, #E8E9EB);cursor:not-allowed}.nav-btn{display:flex;align-items:center;gap:4px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-primary, #4A975C);height:30px;width:30px}.selected{color:var(--emw--color-primary, #4A975C);font-weight:var(--emw--font-weight-bold, 700);border-color:var(--emw--color-primary, #4A975C)}")}function A(n,t,l){const r=n.slice();return r[15]=t[l],r}function F(n){let t,l,r,i;return{c(){t=e.element("button"),t.textContent="1",l=e.text(`
|
|
2
|
+
...`)},m(a,o){e.insert(a,t,o),e.insert(a,l,o),r||(i=e.listen(t,"click",n[9]),r=!0)},p:e.noop,d(a){a&&(e.detach(t),e.detach(l)),r=!1,i()}}}function M(n){let t,l=n[15]+"",r,i,a;function o(){return n[10](n[15])}return{c(){t=e.element("button"),r=e.text(l),e.toggle_class(t,"selected",n[15]===n[2])},m(c,f){e.insert(c,t,f),e.append(t,r),i||(a=e.listen(t,"click",o),i=!0)},p(c,f){n=c,f&8&&l!==(l=n[15]+"")&&e.set_data(r,l),f&12&&e.toggle_class(t,"selected",n[15]===n[2])},d(c){c&&e.detach(t),i=!1,a()}}}function V(n){let t,l,r,i,a;return{c(){t=e.text(`...
|
|
3
|
+
`),l=e.element("button"),r=e.text(n[0])},m(o,c){e.insert(o,t,c),e.insert(o,l,c),e.append(l,r),i||(a=e.listen(l,"click",n[11]),i=!0)},p(o,c){c&1&&e.set_data(r,o[0])},d(o){o&&(e.detach(t),e.detach(l)),i=!1,a()}}}function H(n){let t,l,r,i,a,o,c,f=!n[3].includes(1),v,b,C=!n[3].includes(+n[0]),S,y,g,E,w,u,j,h=f&&F(n),k=e.ensure_array_like(n[3]),p=[];for(let s=0;s<k.length;s+=1)p[s]=M(A(n,k,s));let m=C&&V(n);return{c(){t=e.element("div"),l=e.element("nav"),r=e.element("button"),i=e.svg_element("svg"),a=e.svg_element("polyline"),c=e.space(),h&&h.c(),v=e.space();for(let s=0;s<p.length;s+=1)p[s].c();b=e.space(),m&&m.c(),S=e.space(),y=e.element("button"),g=e.svg_element("svg"),E=e.svg_element("polyline"),e.attr(a,"points","15 18 9 12 15 6"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","24"),e.attr(i,"height","24"),e.attr(i,"viewBox","0 0 24 24"),e.attr(i,"fill","none"),e.attr(i,"stroke","currentColor"),e.attr(i,"stroke-width","2"),e.attr(i,"stroke-linecap","round"),e.attr(i,"stroke-linejoin","round"),e.attr(i,"class","feather feather-chevron-left"),e.attr(r,"class","nav-btn"),r.disabled=o=n[2]===1,e.attr(E,"points","9 18 15 12 9 6"),e.attr(g,"xmlns","http://www.w3.org/2000/svg"),e.attr(g,"width","24"),e.attr(g,"height","24"),e.attr(g,"viewBox","0 0 24 24"),e.attr(g,"fill","none"),e.attr(g,"stroke","currentColor"),e.attr(g,"stroke-width","2"),e.attr(g,"stroke-linecap","round"),e.attr(g,"stroke-linejoin","round"),e.attr(g,"class","feather feather-chevron-right"),e.attr(y,"class","nav-btn"),y.disabled=w=n[2]===n[0],e.attr(l,"class","pagination")},m(s,_){e.insert(s,t,_),e.append(t,l),e.append(l,r),e.append(r,i),e.append(i,a),e.append(l,c),h&&h.m(l,null),e.append(l,v);for(let d=0;d<p.length;d+=1)p[d]&&p[d].m(l,null);e.append(l,b),m&&m.m(l,null),e.append(l,S),e.append(l,y),e.append(y,g),e.append(g,E),n[13](t),u||(j=[e.listen(r,"click",n[8]),e.listen(y,"click",n[12])],u=!0)},p(s,[_]){if(_&4&&o!==(o=s[2]===1)&&(r.disabled=o),_&8&&(f=!s[3].includes(1)),f?h?h.p(s,_):(h=F(s),h.c(),h.m(l,v)):h&&(h.d(1),h=null),_&28){k=e.ensure_array_like(s[3]);let d;for(d=0;d<k.length;d+=1){const B=A(s,k,d);p[d]?p[d].p(B,_):(p[d]=M(B),p[d].c(),p[d].m(l,b))}for(;d<p.length;d+=1)p[d].d(1);p.length=k.length}_&9&&(C=!s[3].includes(+s[0])),C?m?m.p(s,_):(m=V(s),m.c(),m.m(l,S)):m&&(m.d(1),m=null),_&5&&w!==(w=s[2]===s[0])&&(y.disabled=w)},i:e.noop,o:e.noop,d(s){s&&e.detach(t),h&&h.d(),e.destroy_each(p,s),m&&m.d(),n[13](null),u=!1,e.run_all(j)}}}function q(n,t){const r=[];if(t<=5){for(let o=1;o<=t;o++)r.push(o);return r}let i=n-1,a=n+1;i<1&&(a+=1-i,i=1),a>t&&(i-=a-t,a=t),i=Math.max(1,i);for(let o=i;o<=a;o++)r.push(o);return r}function L(n,t,l){let{clientstyling:r=""}=t,{clientstylingurl:i=""}=t,{mbsource:a}=t,{totalpages:o=5}=t,c,f=1,v;v=q(f,o),e.onMount(()=>()=>{});function b(u){if(u>=1&&u<=o){l(2,f=u);const j=new CustomEvent("pageChange",{detail:{page:u},bubbles:!0,composed:!0});document.dispatchEvent(j)}}const C=()=>b(f-1),S=()=>b(1),y=u=>b(u),g=()=>b(+o),E=()=>b(f+1);function w(u){e.binding_callbacks[u?"unshift":"push"](()=>{c=u,l(1,c)})}return n.$$set=u=>{"clientstyling"in u&&l(5,r=u.clientstyling),"clientstylingurl"in u&&l(6,i=u.clientstylingurl),"mbsource"in u&&l(7,a=u.mbsource),"totalpages"in u&&l(0,o=u.totalpages)},n.$$.update=()=>{n.$$.dirty&5&&l(3,v=q(f,o)),n.$$.dirty&34&&r&&c&&e.setClientStyling(c,r),n.$$.dirty&66&&i&&c&&e.setClientStylingURL(c,i),n.$$.dirty&130&&a&&c&&e.setStreamStyling(c,`${a}.Style`)},[o,c,f,v,b,r,i,a,C,S,y,g,E,w]}class T extends e.SvelteComponent{constructor(t){super(),e.init(this,t,L,H,e.safe_not_equal,{clientstyling:5,clientstylingurl:6,mbsource:7,totalpages:0},z)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get totalpages(){return this.$$.ctx[0]}set totalpages(t){this.$$set({totalpages:t}),e.flush()}}e.create_custom_element(T,{clientstyling:{},clientstylingurl:{},mbsource:{},totalpages:{}},[],[],!0);exports.default=T;
|