@everymatrix/cashier-pagination 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/CashierPagination-CTEjanNX.js +745 -0
- package/components/CashierPagination-DcUVRfJ-.cjs +3 -0
- package/components/CashierPagination-DfPKulTl.js +782 -0
- package/es2015/cashier-pagination.cjs +1 -0
- package/es2015/cashier-pagination.js +16 -0
- package/esnext/cashier-pagination.js +14 -0
- package/package.json +25 -0
|
@@ -0,0 +1,745 @@
|
|
|
1
|
+
function B() {
|
|
2
|
+
}
|
|
3
|
+
function st(t) {
|
|
4
|
+
return t();
|
|
5
|
+
}
|
|
6
|
+
function Q() {
|
|
7
|
+
return /* @__PURE__ */ Object.create(null);
|
|
8
|
+
}
|
|
9
|
+
function H(t) {
|
|
10
|
+
t.forEach(st);
|
|
11
|
+
}
|
|
12
|
+
function ot(t) {
|
|
13
|
+
return typeof t == "function";
|
|
14
|
+
}
|
|
15
|
+
function ct(t, e) {
|
|
16
|
+
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
17
|
+
}
|
|
18
|
+
function ut(t) {
|
|
19
|
+
return Object.keys(t).length === 0;
|
|
20
|
+
}
|
|
21
|
+
function p(t, e) {
|
|
22
|
+
t.appendChild(e);
|
|
23
|
+
}
|
|
24
|
+
function ft(t, e, n) {
|
|
25
|
+
const s = dt(t);
|
|
26
|
+
if (!s.getElementById(e)) {
|
|
27
|
+
const i = v("style");
|
|
28
|
+
i.id = e, i.textContent = n, at(s, i);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function dt(t) {
|
|
32
|
+
if (!t)
|
|
33
|
+
return document;
|
|
34
|
+
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
35
|
+
return e && /** @type {ShadowRoot} */
|
|
36
|
+
e.host ? (
|
|
37
|
+
/** @type {ShadowRoot} */
|
|
38
|
+
e
|
|
39
|
+
) : t.ownerDocument;
|
|
40
|
+
}
|
|
41
|
+
function at(t, e) {
|
|
42
|
+
return p(
|
|
43
|
+
/** @type {Document} */
|
|
44
|
+
t.head || t,
|
|
45
|
+
e
|
|
46
|
+
), e.sheet;
|
|
47
|
+
}
|
|
48
|
+
function x(t, e, n) {
|
|
49
|
+
t.insertBefore(e, n || null);
|
|
50
|
+
}
|
|
51
|
+
function C(t) {
|
|
52
|
+
t.parentNode && t.parentNode.removeChild(t);
|
|
53
|
+
}
|
|
54
|
+
function ht(t, e) {
|
|
55
|
+
for (let n = 0; n < t.length; n += 1)
|
|
56
|
+
t[n] && t[n].d(e);
|
|
57
|
+
}
|
|
58
|
+
function v(t) {
|
|
59
|
+
return document.createElement(t);
|
|
60
|
+
}
|
|
61
|
+
function U(t) {
|
|
62
|
+
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
63
|
+
}
|
|
64
|
+
function T(t) {
|
|
65
|
+
return document.createTextNode(t);
|
|
66
|
+
}
|
|
67
|
+
function I() {
|
|
68
|
+
return T(" ");
|
|
69
|
+
}
|
|
70
|
+
function R(t, e, n, s) {
|
|
71
|
+
return t.addEventListener(e, n, s), () => t.removeEventListener(e, n, s);
|
|
72
|
+
}
|
|
73
|
+
function d(t, e, n) {
|
|
74
|
+
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
75
|
+
}
|
|
76
|
+
function $t(t) {
|
|
77
|
+
return Array.from(t.childNodes);
|
|
78
|
+
}
|
|
79
|
+
function rt(t, e) {
|
|
80
|
+
e = "" + e, t.data !== e && (t.data = /** @type {string} */
|
|
81
|
+
e);
|
|
82
|
+
}
|
|
83
|
+
function W(t, e, n) {
|
|
84
|
+
t.classList.toggle(e, !!n);
|
|
85
|
+
}
|
|
86
|
+
function gt(t) {
|
|
87
|
+
const e = {};
|
|
88
|
+
return t.childNodes.forEach(
|
|
89
|
+
/** @param {Element} node */
|
|
90
|
+
(n) => {
|
|
91
|
+
e[n.slot || "default"] = !0;
|
|
92
|
+
}
|
|
93
|
+
), e;
|
|
94
|
+
}
|
|
95
|
+
let F;
|
|
96
|
+
function P(t) {
|
|
97
|
+
F = t;
|
|
98
|
+
}
|
|
99
|
+
function _t() {
|
|
100
|
+
if (!F)
|
|
101
|
+
throw new Error("Function called outside component initialization");
|
|
102
|
+
return F;
|
|
103
|
+
}
|
|
104
|
+
function mt(t) {
|
|
105
|
+
_t().$$.on_mount.push(t);
|
|
106
|
+
}
|
|
107
|
+
const A = [], J = [];
|
|
108
|
+
let N = [];
|
|
109
|
+
const X = [], bt = /* @__PURE__ */ Promise.resolve();
|
|
110
|
+
let q = !1;
|
|
111
|
+
function pt() {
|
|
112
|
+
q || (q = !0, bt.then(O));
|
|
113
|
+
}
|
|
114
|
+
function G(t) {
|
|
115
|
+
N.push(t);
|
|
116
|
+
}
|
|
117
|
+
const D = /* @__PURE__ */ new Set();
|
|
118
|
+
let S = 0;
|
|
119
|
+
function O() {
|
|
120
|
+
if (S !== 0)
|
|
121
|
+
return;
|
|
122
|
+
const t = F;
|
|
123
|
+
do {
|
|
124
|
+
try {
|
|
125
|
+
for (; S < A.length; ) {
|
|
126
|
+
const e = A[S];
|
|
127
|
+
S++, P(e), yt(e.$$);
|
|
128
|
+
}
|
|
129
|
+
} catch (e) {
|
|
130
|
+
throw A.length = 0, S = 0, e;
|
|
131
|
+
}
|
|
132
|
+
for (P(null), A.length = 0, S = 0; J.length; )
|
|
133
|
+
J.pop()();
|
|
134
|
+
for (let e = 0; e < N.length; e += 1) {
|
|
135
|
+
const n = N[e];
|
|
136
|
+
D.has(n) || (D.add(n), n());
|
|
137
|
+
}
|
|
138
|
+
N.length = 0;
|
|
139
|
+
} while (A.length);
|
|
140
|
+
for (; X.length; )
|
|
141
|
+
X.pop()();
|
|
142
|
+
q = !1, D.clear(), P(t);
|
|
143
|
+
}
|
|
144
|
+
function yt(t) {
|
|
145
|
+
if (t.fragment !== null) {
|
|
146
|
+
t.update(), H(t.before_update);
|
|
147
|
+
const e = t.dirty;
|
|
148
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(G);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function wt(t) {
|
|
152
|
+
const e = [], n = [];
|
|
153
|
+
N.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), N = e;
|
|
154
|
+
}
|
|
155
|
+
const kt = /* @__PURE__ */ new Set();
|
|
156
|
+
function vt(t, e) {
|
|
157
|
+
t && t.i && (kt.delete(t), t.i(e));
|
|
158
|
+
}
|
|
159
|
+
function Y(t) {
|
|
160
|
+
return t?.length !== void 0 ? t : Array.from(t);
|
|
161
|
+
}
|
|
162
|
+
function Et(t, e, n) {
|
|
163
|
+
const { fragment: s, after_update: i } = t.$$;
|
|
164
|
+
s && s.m(e, n), G(() => {
|
|
165
|
+
const o = t.$$.on_mount.map(st).filter(ot);
|
|
166
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...o) : H(o), t.$$.on_mount = [];
|
|
167
|
+
}), i.forEach(G);
|
|
168
|
+
}
|
|
169
|
+
function Ct(t, e) {
|
|
170
|
+
const n = t.$$;
|
|
171
|
+
n.fragment !== null && (wt(n.after_update), H(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
172
|
+
}
|
|
173
|
+
function xt(t, e) {
|
|
174
|
+
t.$$.dirty[0] === -1 && (A.push(t), pt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
175
|
+
}
|
|
176
|
+
function Lt(t, e, n, s, i, o, r = null, l = [-1]) {
|
|
177
|
+
const c = F;
|
|
178
|
+
P(t);
|
|
179
|
+
const u = t.$$ = {
|
|
180
|
+
fragment: null,
|
|
181
|
+
ctx: [],
|
|
182
|
+
// state
|
|
183
|
+
props: o,
|
|
184
|
+
update: B,
|
|
185
|
+
not_equal: i,
|
|
186
|
+
bound: Q(),
|
|
187
|
+
// lifecycle
|
|
188
|
+
on_mount: [],
|
|
189
|
+
on_destroy: [],
|
|
190
|
+
on_disconnect: [],
|
|
191
|
+
before_update: [],
|
|
192
|
+
after_update: [],
|
|
193
|
+
context: new Map(e.context || (c ? c.$$.context : [])),
|
|
194
|
+
// everything else
|
|
195
|
+
callbacks: Q(),
|
|
196
|
+
dirty: l,
|
|
197
|
+
skip_bound: !1,
|
|
198
|
+
root: e.target || c.$$.root
|
|
199
|
+
};
|
|
200
|
+
r && r(u.root);
|
|
201
|
+
let y = !1;
|
|
202
|
+
if (u.ctx = n(t, e.props || {}, (_, E, ...w) => {
|
|
203
|
+
const h = w.length ? w[0] : E;
|
|
204
|
+
return u.ctx && i(u.ctx[_], u.ctx[_] = h) && (!u.skip_bound && u.bound[_] && u.bound[_](h), y && xt(t, _)), E;
|
|
205
|
+
}), u.update(), y = !0, H(u.before_update), u.fragment = s(u.ctx), e.target) {
|
|
206
|
+
if (e.hydrate) {
|
|
207
|
+
const _ = $t(e.target);
|
|
208
|
+
u.fragment && u.fragment.l(_), _.forEach(C);
|
|
209
|
+
} else
|
|
210
|
+
u.fragment && u.fragment.c();
|
|
211
|
+
e.intro && vt(t.$$.fragment), Et(t, e.target, e.anchor), O();
|
|
212
|
+
}
|
|
213
|
+
P(c);
|
|
214
|
+
}
|
|
215
|
+
let lt;
|
|
216
|
+
typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
217
|
+
/** The Svelte component constructor */
|
|
218
|
+
$$ctor;
|
|
219
|
+
/** Slots */
|
|
220
|
+
$$s;
|
|
221
|
+
/** The Svelte component instance */
|
|
222
|
+
$$c;
|
|
223
|
+
/** Whether or not the custom element is connected */
|
|
224
|
+
$$cn = !1;
|
|
225
|
+
/** Component props data */
|
|
226
|
+
$$d = {};
|
|
227
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
228
|
+
$$r = !1;
|
|
229
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
230
|
+
$$p_d = {};
|
|
231
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
232
|
+
$$l = {};
|
|
233
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
234
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
235
|
+
constructor(t, e, n) {
|
|
236
|
+
super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
|
|
237
|
+
}
|
|
238
|
+
addEventListener(t, e, n) {
|
|
239
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
240
|
+
const s = this.$$c.$on(t, e);
|
|
241
|
+
this.$$l_u.set(e, s);
|
|
242
|
+
}
|
|
243
|
+
super.addEventListener(t, e, n);
|
|
244
|
+
}
|
|
245
|
+
removeEventListener(t, e, n) {
|
|
246
|
+
if (super.removeEventListener(t, e, n), this.$$c) {
|
|
247
|
+
const s = this.$$l_u.get(e);
|
|
248
|
+
s && (s(), this.$$l_u.delete(e));
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
async connectedCallback() {
|
|
252
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
253
|
+
let t = function(i) {
|
|
254
|
+
return () => {
|
|
255
|
+
let o;
|
|
256
|
+
return {
|
|
257
|
+
c: function() {
|
|
258
|
+
o = v("slot"), i !== "default" && d(o, "name", i);
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
* @param {HTMLElement} target
|
|
262
|
+
* @param {HTMLElement} [anchor]
|
|
263
|
+
*/
|
|
264
|
+
m: function(c, u) {
|
|
265
|
+
x(c, o, u);
|
|
266
|
+
},
|
|
267
|
+
d: function(c) {
|
|
268
|
+
c && C(o);
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
274
|
+
return;
|
|
275
|
+
const e = {}, n = gt(this);
|
|
276
|
+
for (const i of this.$$s)
|
|
277
|
+
i in n && (e[i] = [t(i)]);
|
|
278
|
+
for (const i of this.attributes) {
|
|
279
|
+
const o = this.$$g_p(i.name);
|
|
280
|
+
o in this.$$d || (this.$$d[o] = z(o, i.value, this.$$p_d, "toProp"));
|
|
281
|
+
}
|
|
282
|
+
for (const i in this.$$p_d)
|
|
283
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
284
|
+
this.$$c = new this.$$ctor({
|
|
285
|
+
target: this.shadowRoot || this,
|
|
286
|
+
props: {
|
|
287
|
+
...this.$$d,
|
|
288
|
+
$$slots: e,
|
|
289
|
+
$$scope: {
|
|
290
|
+
ctx: []
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
const s = () => {
|
|
295
|
+
this.$$r = !0;
|
|
296
|
+
for (const i in this.$$p_d)
|
|
297
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
298
|
+
const o = z(
|
|
299
|
+
i,
|
|
300
|
+
this.$$d[i],
|
|
301
|
+
this.$$p_d,
|
|
302
|
+
"toAttribute"
|
|
303
|
+
);
|
|
304
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
305
|
+
}
|
|
306
|
+
this.$$r = !1;
|
|
307
|
+
};
|
|
308
|
+
this.$$c.$$.after_update.push(s), s();
|
|
309
|
+
for (const i in this.$$l)
|
|
310
|
+
for (const o of this.$$l[i]) {
|
|
311
|
+
const r = this.$$c.$on(i, o);
|
|
312
|
+
this.$$l_u.set(o, r);
|
|
313
|
+
}
|
|
314
|
+
this.$$l = {};
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
318
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
319
|
+
attributeChangedCallback(t, e, n) {
|
|
320
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = z(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
321
|
+
}
|
|
322
|
+
disconnectedCallback() {
|
|
323
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
324
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
$$g_p(t) {
|
|
328
|
+
return Object.keys(this.$$p_d).find(
|
|
329
|
+
(e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
|
|
330
|
+
) || t;
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
function z(t, e, n, s) {
|
|
334
|
+
const i = n[t]?.type;
|
|
335
|
+
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
|
|
336
|
+
return e;
|
|
337
|
+
if (s === "toAttribute")
|
|
338
|
+
switch (i) {
|
|
339
|
+
case "Object":
|
|
340
|
+
case "Array":
|
|
341
|
+
return e == null ? null : JSON.stringify(e);
|
|
342
|
+
case "Boolean":
|
|
343
|
+
return e ? "" : null;
|
|
344
|
+
case "Number":
|
|
345
|
+
return e ?? null;
|
|
346
|
+
default:
|
|
347
|
+
return e;
|
|
348
|
+
}
|
|
349
|
+
else
|
|
350
|
+
switch (i) {
|
|
351
|
+
case "Object":
|
|
352
|
+
case "Array":
|
|
353
|
+
return e && JSON.parse(e);
|
|
354
|
+
case "Boolean":
|
|
355
|
+
return e;
|
|
356
|
+
case "Number":
|
|
357
|
+
return e != null ? +e : e;
|
|
358
|
+
default:
|
|
359
|
+
return e;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
function jt(t, e, n, s, i, o) {
|
|
363
|
+
let r = class extends lt {
|
|
364
|
+
constructor() {
|
|
365
|
+
super(t, n, i), this.$$p_d = e;
|
|
366
|
+
}
|
|
367
|
+
static get observedAttributes() {
|
|
368
|
+
return Object.keys(e).map(
|
|
369
|
+
(l) => (e[l].attribute || l).toLowerCase()
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
return Object.keys(e).forEach((l) => {
|
|
374
|
+
Object.defineProperty(r.prototype, l, {
|
|
375
|
+
get() {
|
|
376
|
+
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
377
|
+
},
|
|
378
|
+
set(c) {
|
|
379
|
+
c = z(l, c, e), this.$$d[l] = c, this.$$c?.$set({ [l]: c });
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
}), s.forEach((l) => {
|
|
383
|
+
Object.defineProperty(r.prototype, l, {
|
|
384
|
+
get() {
|
|
385
|
+
return this.$$c?.[l];
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}), t.element = /** @type {any} */
|
|
389
|
+
r, r;
|
|
390
|
+
}
|
|
391
|
+
class St {
|
|
392
|
+
/**
|
|
393
|
+
* ### PRIVATE API
|
|
394
|
+
*
|
|
395
|
+
* Do not use, may change at any time
|
|
396
|
+
*
|
|
397
|
+
* @type {any}
|
|
398
|
+
*/
|
|
399
|
+
$$ = void 0;
|
|
400
|
+
/**
|
|
401
|
+
* ### PRIVATE API
|
|
402
|
+
*
|
|
403
|
+
* Do not use, may change at any time
|
|
404
|
+
*
|
|
405
|
+
* @type {any}
|
|
406
|
+
*/
|
|
407
|
+
$$set = void 0;
|
|
408
|
+
/** @returns {void} */
|
|
409
|
+
$destroy() {
|
|
410
|
+
Ct(this, 1), this.$destroy = B;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* @template {Extract<keyof Events, string>} K
|
|
414
|
+
* @param {K} type
|
|
415
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
416
|
+
* @returns {() => void}
|
|
417
|
+
*/
|
|
418
|
+
$on(e, n) {
|
|
419
|
+
if (!ot(n))
|
|
420
|
+
return B;
|
|
421
|
+
const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
422
|
+
return s.push(n), () => {
|
|
423
|
+
const i = s.indexOf(n);
|
|
424
|
+
i !== -1 && s.splice(i, 1);
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* @param {Partial<Props>} props
|
|
429
|
+
* @returns {void}
|
|
430
|
+
*/
|
|
431
|
+
$set(e) {
|
|
432
|
+
this.$$set && !ut(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
const At = "4";
|
|
436
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(At);
|
|
437
|
+
function Ot(t, e) {
|
|
438
|
+
if (t) {
|
|
439
|
+
const n = document.createElement("style");
|
|
440
|
+
n.innerHTML = e, t.appendChild(n);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
function Nt(t, e) {
|
|
444
|
+
const n = new URL(e);
|
|
445
|
+
fetch(n.href).then((s) => s.text()).then((s) => {
|
|
446
|
+
const i = document.createElement("style");
|
|
447
|
+
i.innerHTML = s, t && t.appendChild(i);
|
|
448
|
+
}).catch((s) => {
|
|
449
|
+
console.error("There was an error while trying to load client styling from URL", s);
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
function Bt(t, e, n) {
|
|
453
|
+
if (window.emMessageBus) {
|
|
454
|
+
const s = document.createElement("style");
|
|
455
|
+
window.emMessageBus.subscribe(e, (i) => {
|
|
456
|
+
s.innerHTML = i, t && t.appendChild(s);
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
function Mt(t) {
|
|
461
|
+
ft(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)}");
|
|
462
|
+
}
|
|
463
|
+
function Z(t, e, n) {
|
|
464
|
+
const s = t.slice();
|
|
465
|
+
return s[15] = e[n], s;
|
|
466
|
+
}
|
|
467
|
+
function tt(t) {
|
|
468
|
+
let e, n, s, i;
|
|
469
|
+
return {
|
|
470
|
+
c() {
|
|
471
|
+
e = v("button"), e.textContent = "1", n = T(`
|
|
472
|
+
...`);
|
|
473
|
+
},
|
|
474
|
+
m(o, r) {
|
|
475
|
+
x(o, e, r), x(o, n, r), s || (i = R(
|
|
476
|
+
e,
|
|
477
|
+
"click",
|
|
478
|
+
/*click_handler_1*/
|
|
479
|
+
t[9]
|
|
480
|
+
), s = !0);
|
|
481
|
+
},
|
|
482
|
+
p: B,
|
|
483
|
+
d(o) {
|
|
484
|
+
o && (C(e), C(n)), s = !1, i();
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
function et(t) {
|
|
489
|
+
let e, n = (
|
|
490
|
+
/*page*/
|
|
491
|
+
t[15] + ""
|
|
492
|
+
), s, i, o;
|
|
493
|
+
function r() {
|
|
494
|
+
return (
|
|
495
|
+
/*click_handler_2*/
|
|
496
|
+
t[10](
|
|
497
|
+
/*page*/
|
|
498
|
+
t[15]
|
|
499
|
+
)
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
return {
|
|
503
|
+
c() {
|
|
504
|
+
e = v("button"), s = T(n), W(
|
|
505
|
+
e,
|
|
506
|
+
"selected",
|
|
507
|
+
/*page*/
|
|
508
|
+
t[15] === /*currentPage*/
|
|
509
|
+
t[2]
|
|
510
|
+
);
|
|
511
|
+
},
|
|
512
|
+
m(l, c) {
|
|
513
|
+
x(l, e, c), p(e, s), i || (o = R(e, "click", r), i = !0);
|
|
514
|
+
},
|
|
515
|
+
p(l, c) {
|
|
516
|
+
t = l, c & /*visiblePages*/
|
|
517
|
+
8 && n !== (n = /*page*/
|
|
518
|
+
t[15] + "") && rt(s, n), c & /*visiblePages, currentPage*/
|
|
519
|
+
12 && W(
|
|
520
|
+
e,
|
|
521
|
+
"selected",
|
|
522
|
+
/*page*/
|
|
523
|
+
t[15] === /*currentPage*/
|
|
524
|
+
t[2]
|
|
525
|
+
);
|
|
526
|
+
},
|
|
527
|
+
d(l) {
|
|
528
|
+
l && C(e), i = !1, o();
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
function nt(t) {
|
|
533
|
+
let e, n, s, i, o;
|
|
534
|
+
return {
|
|
535
|
+
c() {
|
|
536
|
+
e = T(`...
|
|
537
|
+
`), n = v("button"), s = T(
|
|
538
|
+
/*totalpages*/
|
|
539
|
+
t[0]
|
|
540
|
+
);
|
|
541
|
+
},
|
|
542
|
+
m(r, l) {
|
|
543
|
+
x(r, e, l), x(r, n, l), p(n, s), i || (o = R(
|
|
544
|
+
n,
|
|
545
|
+
"click",
|
|
546
|
+
/*click_handler_3*/
|
|
547
|
+
t[11]
|
|
548
|
+
), i = !0);
|
|
549
|
+
},
|
|
550
|
+
p(r, l) {
|
|
551
|
+
l & /*totalpages*/
|
|
552
|
+
1 && rt(
|
|
553
|
+
s,
|
|
554
|
+
/*totalpages*/
|
|
555
|
+
r[0]
|
|
556
|
+
);
|
|
557
|
+
},
|
|
558
|
+
d(r) {
|
|
559
|
+
r && (C(e), C(n)), i = !1, o();
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
function Pt(t) {
|
|
564
|
+
let e, n, s, i, o, r, l, c = !/*visiblePages*/
|
|
565
|
+
t[3].includes(1), u, y, _ = !/*visiblePages*/
|
|
566
|
+
t[3].includes(+/*totalpages*/
|
|
567
|
+
t[0]), E, w, h, M, L, a, V, m = c && tt(t), j = Y(
|
|
568
|
+
/*visiblePages*/
|
|
569
|
+
t[3]
|
|
570
|
+
), g = [];
|
|
571
|
+
for (let f = 0; f < j.length; f += 1)
|
|
572
|
+
g[f] = et(Z(t, j, f));
|
|
573
|
+
let b = _ && nt(t);
|
|
574
|
+
return {
|
|
575
|
+
c() {
|
|
576
|
+
e = v("div"), n = v("nav"), s = v("button"), i = U("svg"), o = U("polyline"), l = I(), m && m.c(), u = I();
|
|
577
|
+
for (let f = 0; f < g.length; f += 1)
|
|
578
|
+
g[f].c();
|
|
579
|
+
y = I(), b && b.c(), E = I(), w = v("button"), h = U("svg"), M = U("polyline"), d(o, "points", "15 18 9 12 15 6"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "24"), d(i, "height", "24"), d(i, "viewBox", "0 0 24 24"), d(i, "fill", "none"), d(i, "stroke", "currentColor"), d(i, "stroke-width", "2"), d(i, "stroke-linecap", "round"), d(i, "stroke-linejoin", "round"), d(i, "class", "feather feather-chevron-left"), d(s, "class", "nav-btn"), s.disabled = r = /*currentPage*/
|
|
580
|
+
t[2] === 1, d(M, "points", "9 18 15 12 9 6"), d(h, "xmlns", "http://www.w3.org/2000/svg"), d(h, "width", "24"), d(h, "height", "24"), d(h, "viewBox", "0 0 24 24"), d(h, "fill", "none"), d(h, "stroke", "currentColor"), d(h, "stroke-width", "2"), d(h, "stroke-linecap", "round"), d(h, "stroke-linejoin", "round"), d(h, "class", "feather feather-chevron-right"), d(w, "class", "nav-btn"), w.disabled = L = /*currentPage*/
|
|
581
|
+
t[2] === /*totalpages*/
|
|
582
|
+
t[0], d(n, "class", "pagination");
|
|
583
|
+
},
|
|
584
|
+
m(f, k) {
|
|
585
|
+
x(f, e, k), p(e, n), p(n, s), p(s, i), p(i, o), p(n, l), m && m.m(n, null), p(n, u);
|
|
586
|
+
for (let $ = 0; $ < g.length; $ += 1)
|
|
587
|
+
g[$] && g[$].m(n, null);
|
|
588
|
+
p(n, y), b && b.m(n, null), p(n, E), p(n, w), p(w, h), p(h, M), t[13](e), a || (V = [
|
|
589
|
+
R(
|
|
590
|
+
s,
|
|
591
|
+
"click",
|
|
592
|
+
/*click_handler*/
|
|
593
|
+
t[8]
|
|
594
|
+
),
|
|
595
|
+
R(
|
|
596
|
+
w,
|
|
597
|
+
"click",
|
|
598
|
+
/*click_handler_4*/
|
|
599
|
+
t[12]
|
|
600
|
+
)
|
|
601
|
+
], a = !0);
|
|
602
|
+
},
|
|
603
|
+
p(f, [k]) {
|
|
604
|
+
if (k & /*currentPage*/
|
|
605
|
+
4 && r !== (r = /*currentPage*/
|
|
606
|
+
f[2] === 1) && (s.disabled = r), k & /*visiblePages*/
|
|
607
|
+
8 && (c = !/*visiblePages*/
|
|
608
|
+
f[3].includes(1)), c ? m ? m.p(f, k) : (m = tt(f), m.c(), m.m(n, u)) : m && (m.d(1), m = null), k & /*visiblePages, currentPage, goToPage*/
|
|
609
|
+
28) {
|
|
610
|
+
j = Y(
|
|
611
|
+
/*visiblePages*/
|
|
612
|
+
f[3]
|
|
613
|
+
);
|
|
614
|
+
let $;
|
|
615
|
+
for ($ = 0; $ < j.length; $ += 1) {
|
|
616
|
+
const K = Z(f, j, $);
|
|
617
|
+
g[$] ? g[$].p(K, k) : (g[$] = et(K), g[$].c(), g[$].m(n, y));
|
|
618
|
+
}
|
|
619
|
+
for (; $ < g.length; $ += 1)
|
|
620
|
+
g[$].d(1);
|
|
621
|
+
g.length = j.length;
|
|
622
|
+
}
|
|
623
|
+
k & /*visiblePages, totalpages*/
|
|
624
|
+
9 && (_ = !/*visiblePages*/
|
|
625
|
+
f[3].includes(+/*totalpages*/
|
|
626
|
+
f[0])), _ ? b ? b.p(f, k) : (b = nt(f), b.c(), b.m(n, E)) : b && (b.d(1), b = null), k & /*currentPage, totalpages*/
|
|
627
|
+
5 && L !== (L = /*currentPage*/
|
|
628
|
+
f[2] === /*totalpages*/
|
|
629
|
+
f[0]) && (w.disabled = L);
|
|
630
|
+
},
|
|
631
|
+
i: B,
|
|
632
|
+
o: B,
|
|
633
|
+
d(f) {
|
|
634
|
+
f && C(e), m && m.d(), ht(g, f), b && b.d(), t[13](null), a = !1, H(V);
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
function it(t, e) {
|
|
639
|
+
const s = [];
|
|
640
|
+
if (e <= 5) {
|
|
641
|
+
for (let r = 1; r <= e; r++)
|
|
642
|
+
s.push(r);
|
|
643
|
+
return s;
|
|
644
|
+
}
|
|
645
|
+
let i = t - 1, o = t + 1;
|
|
646
|
+
i < 1 && (o += 1 - i, i = 1), o > e && (i -= o - e, o = e), i = Math.max(1, i);
|
|
647
|
+
for (let r = i; r <= o; r++)
|
|
648
|
+
s.push(r);
|
|
649
|
+
return s;
|
|
650
|
+
}
|
|
651
|
+
function Tt(t, e, n) {
|
|
652
|
+
let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, { mbsource: o } = e, { totalpages: r = 5 } = e, l, c = 1, u;
|
|
653
|
+
u = it(c, r), mt(() => () => {
|
|
654
|
+
});
|
|
655
|
+
function y(a) {
|
|
656
|
+
if (a >= 1 && a <= r) {
|
|
657
|
+
n(2, c = a);
|
|
658
|
+
const V = new CustomEvent(
|
|
659
|
+
"pageChange",
|
|
660
|
+
{
|
|
661
|
+
detail: { page: a },
|
|
662
|
+
bubbles: !0,
|
|
663
|
+
composed: !0
|
|
664
|
+
}
|
|
665
|
+
);
|
|
666
|
+
document.dispatchEvent(V);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
const _ = () => y(c - 1), E = () => y(1), w = (a) => y(a), h = () => y(+r), M = () => y(c + 1);
|
|
670
|
+
function L(a) {
|
|
671
|
+
J[a ? "unshift" : "push"](() => {
|
|
672
|
+
l = a, n(1, l);
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
return t.$$set = (a) => {
|
|
676
|
+
"clientstyling" in a && n(5, s = a.clientstyling), "clientstylingurl" in a && n(6, i = a.clientstylingurl), "mbsource" in a && n(7, o = a.mbsource), "totalpages" in a && n(0, r = a.totalpages);
|
|
677
|
+
}, t.$$.update = () => {
|
|
678
|
+
t.$$.dirty & /*currentPage, totalpages*/
|
|
679
|
+
5 && n(3, u = it(c, r)), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
680
|
+
34 && s && l && Ot(l, s), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
681
|
+
66 && i && l && Nt(l, i), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
682
|
+
130 && o && l && Bt(l, `${o}.Style`);
|
|
683
|
+
}, [
|
|
684
|
+
r,
|
|
685
|
+
l,
|
|
686
|
+
c,
|
|
687
|
+
u,
|
|
688
|
+
y,
|
|
689
|
+
s,
|
|
690
|
+
i,
|
|
691
|
+
o,
|
|
692
|
+
_,
|
|
693
|
+
E,
|
|
694
|
+
w,
|
|
695
|
+
h,
|
|
696
|
+
M,
|
|
697
|
+
L
|
|
698
|
+
];
|
|
699
|
+
}
|
|
700
|
+
class Rt extends St {
|
|
701
|
+
constructor(e) {
|
|
702
|
+
super(), Lt(
|
|
703
|
+
this,
|
|
704
|
+
e,
|
|
705
|
+
Tt,
|
|
706
|
+
Pt,
|
|
707
|
+
ct,
|
|
708
|
+
{
|
|
709
|
+
clientstyling: 5,
|
|
710
|
+
clientstylingurl: 6,
|
|
711
|
+
mbsource: 7,
|
|
712
|
+
totalpages: 0
|
|
713
|
+
},
|
|
714
|
+
Mt
|
|
715
|
+
);
|
|
716
|
+
}
|
|
717
|
+
get clientstyling() {
|
|
718
|
+
return this.$$.ctx[5];
|
|
719
|
+
}
|
|
720
|
+
set clientstyling(e) {
|
|
721
|
+
this.$$set({ clientstyling: e }), O();
|
|
722
|
+
}
|
|
723
|
+
get clientstylingurl() {
|
|
724
|
+
return this.$$.ctx[6];
|
|
725
|
+
}
|
|
726
|
+
set clientstylingurl(e) {
|
|
727
|
+
this.$$set({ clientstylingurl: e }), O();
|
|
728
|
+
}
|
|
729
|
+
get mbsource() {
|
|
730
|
+
return this.$$.ctx[7];
|
|
731
|
+
}
|
|
732
|
+
set mbsource(e) {
|
|
733
|
+
this.$$set({ mbsource: e }), O();
|
|
734
|
+
}
|
|
735
|
+
get totalpages() {
|
|
736
|
+
return this.$$.ctx[0];
|
|
737
|
+
}
|
|
738
|
+
set totalpages(e) {
|
|
739
|
+
this.$$set({ totalpages: e }), O();
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
jt(Rt, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, totalpages: {} }, [], [], !0);
|
|
743
|
+
export {
|
|
744
|
+
Rt as C
|
|
745
|
+
};
|