maz-ui 3.26.0 → 3.27.0

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.
@@ -0,0 +1,924 @@
1
+ import "../assets/MazAccordion.css";
2
+ import { defineComponent as te, ref as N, onMounted as ie, watch as we, useCssVars as he, computed as ee, onUnmounted as Me, openBlock as X, createElementBlock as ne, normalizeClass as pe, normalizeStyle as le, createElementVNode as K, renderSlot as G, defineAsyncComponent as be, onBeforeUnmount as De, createBlock as me, TransitionGroup as Se, withCtx as ae, nextTick as ce, useSlots as _e, Fragment as ke, renderList as xe, createVNode as de, unref as fe, withDirectives as ze, vShow as Oe } from "vue";
3
+ import "chart.js";
4
+ import "libphonenumber-js";
5
+ const ue = (c, i) => {
6
+ const D = c.__vccOpts || c;
7
+ for (const [y, t] of i)
8
+ D[y] = t;
9
+ return D;
10
+ }, ve = "--backdrop-present", Ce = () => {
11
+ document.documentElement.classList.add(ve);
12
+ }, Le = async () => {
13
+ document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(ve);
14
+ };
15
+ te({
16
+ inheritAttrs: !1,
17
+ props: {
18
+ modelValue: { type: Boolean, default: !1 },
19
+ teleportSelector: { type: String, default: "body" },
20
+ beforeClose: {
21
+ // eslint-disable-next-line @typescript-eslint/ban-types
22
+ type: Function,
23
+ default: void 0
24
+ },
25
+ persistent: { type: Boolean, default: !1 },
26
+ noCloseOnEscKey: { type: Boolean, default: !1 },
27
+ transitionName: { type: String, default: "backdrop-anim" },
28
+ backdropClass: { type: [Array, String, Object], default: void 0 },
29
+ backdropContentClass: {
30
+ type: [Array, String, Object],
31
+ default: void 0
32
+ }
33
+ },
34
+ emits: ["open", "before-close", "close", "update:model-value"],
35
+ setup(c, { emit: i }) {
36
+ const D = N(c.modelValue), y = () => {
37
+ t(!1);
38
+ }, t = async (w) => {
39
+ var z;
40
+ w || (i("before-close"), await ((z = c.beforeClose) == null ? void 0 : z.call(c))), D.value = w;
41
+ }, p = () => {
42
+ i("open");
43
+ }, m = () => {
44
+ i("update:model-value", !1), i("close"), g();
45
+ }, f = () => {
46
+ c.persistent || y();
47
+ }, $ = (w) => {
48
+ !c.noCloseOnEscKey && w.key === "Escape" && !c.persistent && y();
49
+ }, v = () => {
50
+ Ce(), document.addEventListener("keyup", $, !1);
51
+ }, g = () => {
52
+ document.removeEventListener("keyup", $), Le();
53
+ };
54
+ return ie(() => {
55
+ c.modelValue ? v() : g();
56
+ }), we(
57
+ () => c.modelValue,
58
+ (w) => {
59
+ D.value = w, w ? v() : g();
60
+ }
61
+ ), {
62
+ onBackdropAnimationEnter: p,
63
+ onBackdropAnimationLeave: m,
64
+ onBackdropClicked: f,
65
+ close: y,
66
+ present: D,
67
+ toggleModal: t,
68
+ onKeyPress: $
69
+ };
70
+ }
71
+ });
72
+ const Ye = { class: "inner" }, Ae = { class: "content" }, Ee = /* @__PURE__ */ te({
73
+ __name: "MazCardSpotlight",
74
+ props: {
75
+ noElevation: { type: Boolean, default: !1 },
76
+ color: { default: "primary" }
77
+ },
78
+ setup(c) {
79
+ he((f) => ({
80
+ "8087774c": m.value,
81
+ "92a5d5c8": p.value
82
+ }));
83
+ const i = c, D = N(), y = N();
84
+ function t(f) {
85
+ var v, g, w;
86
+ const $ = (v = y.value) == null ? void 0 : v.getBoundingClientRect();
87
+ $ && ((w = (g = D.value) == null ? void 0 : g.animate) == null || w.call(
88
+ g,
89
+ [
90
+ {
91
+ transform: `translate(${f.clientX - $.left - $.width / 2}px,${f.clientY - $.top - $.height / 2}px)`
92
+ }
93
+ ],
94
+ {
95
+ duration: 300,
96
+ fill: "forwards"
97
+ }
98
+ ));
99
+ }
100
+ const p = ee(() => `var(--maz-color-${i.color}-alpha)`), m = ee(() => `var(--maz-color-${i.color}-alpha-20)`);
101
+ return ie(() => {
102
+ window.addEventListener("mousemove", t);
103
+ }), Me(() => {
104
+ window.removeEventListener("mousemove", t);
105
+ }), (f, $) => (X(), ne(
106
+ "div",
107
+ {
108
+ class: pe(["card", { "maz-elevation": !f.noElevation }]),
109
+ style: le({ backgroundColor: m.value })
110
+ },
111
+ [
112
+ K("div", Ye, [
113
+ K("div", Ae, [
114
+ G(f.$slots, "default", {}, void 0, !0)
115
+ ])
116
+ ]),
117
+ K(
118
+ "div",
119
+ {
120
+ ref_key: "blobElement",
121
+ ref: D,
122
+ class: "blob",
123
+ style: le({ backgroundColor: p.value })
124
+ },
125
+ null,
126
+ 4
127
+ /* STYLE */
128
+ ),
129
+ K(
130
+ "div",
131
+ {
132
+ ref_key: "fakeblobElement",
133
+ ref: y,
134
+ class: "fakeblob"
135
+ },
136
+ null,
137
+ 512
138
+ /* NEED_PATCH */
139
+ )
140
+ ],
141
+ 6
142
+ /* CLASS, STYLE */
143
+ ));
144
+ }
145
+ }), Fe = /* @__PURE__ */ ue(Ee, [["__scopeId", "data-v-2171527b"]]);
146
+ N();
147
+ N([]);
148
+ const Te = be(() => import("./MazSpinner-7bjzmspR.mjs")), Be = `<div class="dz-preview dz-file-preview maz-flex-1">
149
+ <div class="dz-image">
150
+ <div data-dz-thumbnail-bg></div>
151
+ </div>
152
+ <div class="dz-details">
153
+ <div class="dz-filename"><span data-dz-name></span></div>
154
+ <div class="dz-size"><span data-dz-size></span></div>
155
+ </div>
156
+ <div class="dz-progress">
157
+ <span class="dz-upload" data-dz-uploadprogress></span>
158
+ </div>
159
+ <div class="dz-success-mark">
160
+ <svg class="material-icons" xmlns="http://www.w3.org/2000/svg" height="6rem" viewBox="0 0 24 24" width="6rem" fill="currentColor"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>
161
+ </div>
162
+ <div class="dz-error-mark">
163
+ <svg class="material-icons" xmlns="http://www.w3.org/2000/svg" height="6rem" viewBox="0 0 24 24" width="6rem" fill="currentColor"><path d="M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg>
164
+ </div>
165
+ </div>`;
166
+ te({
167
+ name: "MazDropzone",
168
+ components: { MazSpinner: Te },
169
+ props: {
170
+ options: { type: Object, required: !0 },
171
+ height: {
172
+ type: [Number, String],
173
+ default: "245px"
174
+ },
175
+ width: {
176
+ type: [Number, String],
177
+ default: "100%"
178
+ },
179
+ noDestroyOnUnmount: { type: Boolean, default: !1 }
180
+ },
181
+ emits: [
182
+ "thumbnail",
183
+ "error",
184
+ "drop",
185
+ "dragstart",
186
+ "dragend",
187
+ "dragenter",
188
+ "dragover",
189
+ "dragleave",
190
+ "paste",
191
+ "addedfile",
192
+ "addedfiles",
193
+ "removedfile",
194
+ "success",
195
+ "processing",
196
+ "processingmultiple",
197
+ "uploadprogress",
198
+ "totaluploadprogress",
199
+ "sending",
200
+ "sendingmultiple",
201
+ "canceled",
202
+ "canceledmultiple",
203
+ "complete",
204
+ "completemultiple",
205
+ "maxfilesexceeded",
206
+ "maxfilesreached",
207
+ "queuecomplete",
208
+ "reset"
209
+ ],
210
+ setup(c, { emit: i }) {
211
+ const D = N(), y = N(!1);
212
+ let t;
213
+ const p = N(), m = ee(() => ({
214
+ width: typeof c.width == "number" ? `${c.width}px` : c.width,
215
+ height: typeof c.height == "number" ? `${c.height}px` : c.height
216
+ })), f = (l, _) => {
217
+ i("thumbnail", { file: l, dataUrl: _ });
218
+ let e;
219
+ l.previewElement.classList.remove("dz-file-preview"), l.previewElement.querySelectorAll("[data-dz-thumbnail-bg]").forEach((s) => {
220
+ e = s, e.alt = l.name, e.style.backgroundImage = `url('${_}')`;
221
+ }), l.status === "success" && t.emit("complete", l);
222
+ }, $ = (l, _, e) => {
223
+ i("error", { file: l, message: _, xhr: e }), t.options.autoRemoveOnError && setTimeout(() => t.removeFile(l), 3e3);
224
+ }, v = (l, _, e) => {
225
+ i("error", { files: l, message: _, xhr: e }), t.options.autoRemoveOnError && setTimeout(() => {
226
+ for (const n of l)
227
+ t.removeFile(n);
228
+ }, 3e3);
229
+ };
230
+ ie(async () => {
231
+ const l = {
232
+ parallelUploads: c.options.maxFiles,
233
+ previewTemplate: Be,
234
+ addRemoveLinks: !0
235
+ };
236
+ if (D.value) {
237
+ const { default: _ } = await import("dropzone");
238
+ t = new _(D.value, {
239
+ ...l,
240
+ ...c.options
241
+ }), t && (p.value = t.options, y.value = !0, t.on("thumbnail", f), t.on("error", $), t.on("errormultiple", v), t.on("drop", (e) => i("drop", e)), t.on("dragstart", (e) => i("dragstart", e)), t.on("dragend", (e) => i("dragend", e)), t.on("dragenter", (e) => i("dragenter", e)), t.on("dragover", (e) => i("dragover", e)), t.on("dragleave", (e) => i("dragleave", e)), t.on("paste", (e) => i("paste", e)), t.on("addedfile", (e) => i("addedfile", e)), t.on("addedfiles", (e) => i("addedfiles", e)), t.on("removedfile", (e) => i("removedfile", e)), t.on(
242
+ "success",
243
+ (e, n) => i("success", { file: e, response: n })
244
+ ), t.on(
245
+ "successmultiple",
246
+ (e, n) => i("success", { files: e, responseText: n })
247
+ ), t.on("processing", (e) => i("processing", e)), t.on(
248
+ "processingmultiple",
249
+ (e) => i("processingmultiple", e)
250
+ ), t.on(
251
+ "uploadprogress",
252
+ (e, n, s) => i("uploadprogress", { file: e, progress: n, bytesSent: s })
253
+ ), t.on(
254
+ "totaluploadprogress",
255
+ (e, n, s) => i("totaluploadprogress", {
256
+ totalProgress: e,
257
+ totalBytes: n,
258
+ totalBytesSent: s
259
+ })
260
+ ), t.on(
261
+ "sending",
262
+ (e, n, s) => i("sending", { file: e, xhr: n, formData: s })
263
+ ), t.on(
264
+ "sendingmultiple",
265
+ (e, n, s) => i("sendingmultiple", { files: e, xhr: n, formData: s })
266
+ ), t.on("canceled", (e) => i("canceled", e)), t.on(
267
+ "canceledmultiple",
268
+ (e) => i("canceledmultiple", e)
269
+ ), t.on("complete", (e) => i("complete", e)), t.on(
270
+ "completemultiple",
271
+ (e) => i("completemultiple", e)
272
+ ), t.on("maxfilesexceeded", (e) => i("maxfilesexceeded", e)), t.on(
273
+ "maxfilesreached",
274
+ (e) => i("maxfilesreached", e)
275
+ ), t.on("queuecomplete", () => {
276
+ T().every((e) => e.manuallyAdded) || i("queuecomplete");
277
+ }), t.on("reset", () => i("reset")));
278
+ }
279
+ });
280
+ const g = (l, _) => (t.options = {
281
+ ...t.options,
282
+ [l]: _
283
+ }, t.options), w = (l, _) => {
284
+ t.emit("addedfile", l), t.emit("thumbnail", l, _), t.files.push(l);
285
+ }, z = (l) => t.removeAllFiles(l), V = () => t.processQueue(), Z = () => t.destroy(), d = () => t.disable(), M = () => t.enable(), k = (l, _) => t.accept(l, _), x = (l) => t.addFile(l), E = (l, _, e, n, s) => t.resizeImage(l, _, e, n, s), U = (l) => t.cancelUpload(l), T = () => t.getAcceptedFiles(), A = () => t.getRejectedFiles(), B = () => t.getFilesWithStatus(status), F = () => t.getQueuedFiles(), j = () => t.getUploadingFiles(), S = () => t.getAddedFiles(), h = () => t.getActiveFiles();
286
+ return De(() => {
287
+ c.noDestroyOnUnmount || t.destroy();
288
+ }), {
289
+ ButtonElement: D,
290
+ dropzoneReady: y,
291
+ dropzoneOptions: p,
292
+ dropzoneStyle: m,
293
+ setOption: g,
294
+ manuallyAddFile: w,
295
+ removeAllFiles: z,
296
+ processQueue: V,
297
+ destroy: Z,
298
+ disable: d,
299
+ enable: M,
300
+ accept: k,
301
+ addFile: x,
302
+ resizeImage: E,
303
+ cancelUpload: U,
304
+ getAcceptedFiles: T,
305
+ getRejectedFiles: A,
306
+ getFilesWithStatus: B,
307
+ getQueuedFiles: F,
308
+ getUploadingFiles: j,
309
+ getAddedFiles: S,
310
+ getActiveFiles: h
311
+ };
312
+ }
313
+ });
314
+ N("system");
315
+ N("system");
316
+ var se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
317
+ function ge(c) {
318
+ return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
319
+ }
320
+ var ye = { exports: {} };
321
+ (function(c, i) {
322
+ (function(D, y) {
323
+ c.exports = y();
324
+ })(se, function() {
325
+ var D = 1e3, y = 6e4, t = 36e5, p = "millisecond", m = "second", f = "minute", $ = "hour", v = "day", g = "week", w = "month", z = "quarter", V = "year", Z = "date", d = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, x = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(e) {
326
+ var n = ["th", "st", "nd", "rd"], s = e % 100;
327
+ return "[" + e + (n[(s - 20) % 10] || n[s] || n[0]) + "]";
328
+ } }, E = function(e, n, s) {
329
+ var r = String(e);
330
+ return !r || r.length >= n ? e : "" + Array(n + 1 - r.length).join(s) + e;
331
+ }, U = { s: E, z: function(e) {
332
+ var n = -e.utcOffset(), s = Math.abs(n), r = Math.floor(s / 60), o = s % 60;
333
+ return (n <= 0 ? "+" : "-") + E(r, 2, "0") + ":" + E(o, 2, "0");
334
+ }, m: function e(n, s) {
335
+ if (n.date() < s.date())
336
+ return -e(s, n);
337
+ var r = 12 * (s.year() - n.year()) + (s.month() - n.month()), o = n.clone().add(r, w), a = s - o < 0, u = n.clone().add(r + (a ? -1 : 1), w);
338
+ return +(-(r + (s - o) / (a ? o - u : u - o)) || 0);
339
+ }, a: function(e) {
340
+ return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
341
+ }, p: function(e) {
342
+ return { M: w, y: V, w: g, d: v, D: Z, h: $, m: f, s: m, ms: p, Q: z }[e] || String(e || "").toLowerCase().replace(/s$/, "");
343
+ }, u: function(e) {
344
+ return e === void 0;
345
+ } }, T = "en", A = {};
346
+ A[T] = x;
347
+ var B = "$isDayjsObject", F = function(e) {
348
+ return e instanceof l || !(!e || !e[B]);
349
+ }, j = function e(n, s, r) {
350
+ var o;
351
+ if (!n)
352
+ return T;
353
+ if (typeof n == "string") {
354
+ var a = n.toLowerCase();
355
+ A[a] && (o = a), s && (A[a] = s, o = a);
356
+ var u = n.split("-");
357
+ if (!o && u.length > 1)
358
+ return e(u[0]);
359
+ } else {
360
+ var b = n.name;
361
+ A[b] = n, o = b;
362
+ }
363
+ return !r && o && (T = o), o || !r && T;
364
+ }, S = function(e, n) {
365
+ if (F(e))
366
+ return e.clone();
367
+ var s = typeof n == "object" ? n : {};
368
+ return s.date = e, s.args = arguments, new l(s);
369
+ }, h = U;
370
+ h.l = j, h.i = F, h.w = function(e, n) {
371
+ return S(e, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
372
+ };
373
+ var l = function() {
374
+ function e(s) {
375
+ this.$L = j(s.locale, null, !0), this.parse(s), this.$x = this.$x || s.x || {}, this[B] = !0;
376
+ }
377
+ var n = e.prototype;
378
+ return n.parse = function(s) {
379
+ this.$d = function(r) {
380
+ var o = r.date, a = r.utc;
381
+ if (o === null)
382
+ return /* @__PURE__ */ new Date(NaN);
383
+ if (h.u(o))
384
+ return /* @__PURE__ */ new Date();
385
+ if (o instanceof Date)
386
+ return new Date(o);
387
+ if (typeof o == "string" && !/Z$/i.test(o)) {
388
+ var u = o.match(M);
389
+ if (u) {
390
+ var b = u[2] - 1 || 0, O = (u[7] || "0").substring(0, 3);
391
+ return a ? new Date(Date.UTC(u[1], b, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, O)) : new Date(u[1], b, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, O);
392
+ }
393
+ }
394
+ return new Date(o);
395
+ }(s), this.init();
396
+ }, n.init = function() {
397
+ var s = this.$d;
398
+ this.$y = s.getFullYear(), this.$M = s.getMonth(), this.$D = s.getDate(), this.$W = s.getDay(), this.$H = s.getHours(), this.$m = s.getMinutes(), this.$s = s.getSeconds(), this.$ms = s.getMilliseconds();
399
+ }, n.$utils = function() {
400
+ return h;
401
+ }, n.isValid = function() {
402
+ return this.$d.toString() !== d;
403
+ }, n.isSame = function(s, r) {
404
+ var o = S(s);
405
+ return this.startOf(r) <= o && o <= this.endOf(r);
406
+ }, n.isAfter = function(s, r) {
407
+ return S(s) < this.startOf(r);
408
+ }, n.isBefore = function(s, r) {
409
+ return this.endOf(r) < S(s);
410
+ }, n.$g = function(s, r, o) {
411
+ return h.u(s) ? this[r] : this.set(o, s);
412
+ }, n.unix = function() {
413
+ return Math.floor(this.valueOf() / 1e3);
414
+ }, n.valueOf = function() {
415
+ return this.$d.getTime();
416
+ }, n.startOf = function(s, r) {
417
+ var o = this, a = !!h.u(r) || r, u = h.p(s), b = function(I, Y) {
418
+ var W = h.w(o.$u ? Date.UTC(o.$y, Y, I) : new Date(o.$y, Y, I), o);
419
+ return a ? W : W.endOf(v);
420
+ }, O = function(I, Y) {
421
+ return h.w(o.toDate()[I].apply(o.toDate("s"), (a ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Y)), o);
422
+ }, C = this.$W, L = this.$M, H = this.$D, J = "set" + (this.$u ? "UTC" : "");
423
+ switch (u) {
424
+ case V:
425
+ return a ? b(1, 0) : b(31, 11);
426
+ case w:
427
+ return a ? b(1, L) : b(0, L + 1);
428
+ case g:
429
+ var P = this.$locale().weekStart || 0, q = (C < P ? C + 7 : C) - P;
430
+ return b(a ? H - q : H + (6 - q), L);
431
+ case v:
432
+ case Z:
433
+ return O(J + "Hours", 0);
434
+ case $:
435
+ return O(J + "Minutes", 1);
436
+ case f:
437
+ return O(J + "Seconds", 2);
438
+ case m:
439
+ return O(J + "Milliseconds", 3);
440
+ default:
441
+ return this.clone();
442
+ }
443
+ }, n.endOf = function(s) {
444
+ return this.startOf(s, !1);
445
+ }, n.$set = function(s, r) {
446
+ var o, a = h.p(s), u = "set" + (this.$u ? "UTC" : ""), b = (o = {}, o[v] = u + "Date", o[Z] = u + "Date", o[w] = u + "Month", o[V] = u + "FullYear", o[$] = u + "Hours", o[f] = u + "Minutes", o[m] = u + "Seconds", o[p] = u + "Milliseconds", o)[a], O = a === v ? this.$D + (r - this.$W) : r;
447
+ if (a === w || a === V) {
448
+ var C = this.clone().set(Z, 1);
449
+ C.$d[b](O), C.init(), this.$d = C.set(Z, Math.min(this.$D, C.daysInMonth())).$d;
450
+ } else
451
+ b && this.$d[b](O);
452
+ return this.init(), this;
453
+ }, n.set = function(s, r) {
454
+ return this.clone().$set(s, r);
455
+ }, n.get = function(s) {
456
+ return this[h.p(s)]();
457
+ }, n.add = function(s, r) {
458
+ var o, a = this;
459
+ s = Number(s);
460
+ var u = h.p(r), b = function(L) {
461
+ var H = S(a);
462
+ return h.w(H.date(H.date() + Math.round(L * s)), a);
463
+ };
464
+ if (u === w)
465
+ return this.set(w, this.$M + s);
466
+ if (u === V)
467
+ return this.set(V, this.$y + s);
468
+ if (u === v)
469
+ return b(1);
470
+ if (u === g)
471
+ return b(7);
472
+ var O = (o = {}, o[f] = y, o[$] = t, o[m] = D, o)[u] || 1, C = this.$d.getTime() + s * O;
473
+ return h.w(C, this);
474
+ }, n.subtract = function(s, r) {
475
+ return this.add(-1 * s, r);
476
+ }, n.format = function(s) {
477
+ var r = this, o = this.$locale();
478
+ if (!this.isValid())
479
+ return o.invalidDate || d;
480
+ var a = s || "YYYY-MM-DDTHH:mm:ssZ", u = h.z(this), b = this.$H, O = this.$m, C = this.$M, L = o.weekdays, H = o.months, J = o.meridiem, P = function(Y, W, R, Q) {
481
+ return Y && (Y[W] || Y(r, a)) || R[W].slice(0, Q);
482
+ }, q = function(Y) {
483
+ return h.s(b % 12 || 12, Y, "0");
484
+ }, I = J || function(Y, W, R) {
485
+ var Q = Y < 12 ? "AM" : "PM";
486
+ return R ? Q.toLowerCase() : Q;
487
+ };
488
+ return a.replace(k, function(Y, W) {
489
+ return W || function(R) {
490
+ switch (R) {
491
+ case "YY":
492
+ return String(r.$y).slice(-2);
493
+ case "YYYY":
494
+ return h.s(r.$y, 4, "0");
495
+ case "M":
496
+ return C + 1;
497
+ case "MM":
498
+ return h.s(C + 1, 2, "0");
499
+ case "MMM":
500
+ return P(o.monthsShort, C, H, 3);
501
+ case "MMMM":
502
+ return P(H, C);
503
+ case "D":
504
+ return r.$D;
505
+ case "DD":
506
+ return h.s(r.$D, 2, "0");
507
+ case "d":
508
+ return String(r.$W);
509
+ case "dd":
510
+ return P(o.weekdaysMin, r.$W, L, 2);
511
+ case "ddd":
512
+ return P(o.weekdaysShort, r.$W, L, 3);
513
+ case "dddd":
514
+ return L[r.$W];
515
+ case "H":
516
+ return String(b);
517
+ case "HH":
518
+ return h.s(b, 2, "0");
519
+ case "h":
520
+ return q(1);
521
+ case "hh":
522
+ return q(2);
523
+ case "a":
524
+ return I(b, O, !0);
525
+ case "A":
526
+ return I(b, O, !1);
527
+ case "m":
528
+ return String(O);
529
+ case "mm":
530
+ return h.s(O, 2, "0");
531
+ case "s":
532
+ return String(r.$s);
533
+ case "ss":
534
+ return h.s(r.$s, 2, "0");
535
+ case "SSS":
536
+ return h.s(r.$ms, 3, "0");
537
+ case "Z":
538
+ return u;
539
+ }
540
+ return null;
541
+ }(Y) || u.replace(":", "");
542
+ });
543
+ }, n.utcOffset = function() {
544
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
545
+ }, n.diff = function(s, r, o) {
546
+ var a, u = this, b = h.p(r), O = S(s), C = (O.utcOffset() - this.utcOffset()) * y, L = this - O, H = function() {
547
+ return h.m(u, O);
548
+ };
549
+ switch (b) {
550
+ case V:
551
+ a = H() / 12;
552
+ break;
553
+ case w:
554
+ a = H();
555
+ break;
556
+ case z:
557
+ a = H() / 3;
558
+ break;
559
+ case g:
560
+ a = (L - C) / 6048e5;
561
+ break;
562
+ case v:
563
+ a = (L - C) / 864e5;
564
+ break;
565
+ case $:
566
+ a = L / t;
567
+ break;
568
+ case f:
569
+ a = L / y;
570
+ break;
571
+ case m:
572
+ a = L / D;
573
+ break;
574
+ default:
575
+ a = L;
576
+ }
577
+ return o ? a : h.a(a);
578
+ }, n.daysInMonth = function() {
579
+ return this.endOf(w).$D;
580
+ }, n.$locale = function() {
581
+ return A[this.$L];
582
+ }, n.locale = function(s, r) {
583
+ if (!s)
584
+ return this.$L;
585
+ var o = this.clone(), a = j(s, r, !0);
586
+ return a && (o.$L = a), o;
587
+ }, n.clone = function() {
588
+ return h.w(this.$d, this);
589
+ }, n.toDate = function() {
590
+ return new Date(this.valueOf());
591
+ }, n.toJSON = function() {
592
+ return this.isValid() ? this.toISOString() : null;
593
+ }, n.toISOString = function() {
594
+ return this.$d.toISOString();
595
+ }, n.toString = function() {
596
+ return this.$d.toUTCString();
597
+ }, e;
598
+ }(), _ = l.prototype;
599
+ return S.prototype = _, [["$ms", p], ["$s", m], ["$m", f], ["$H", $], ["$W", v], ["$M", w], ["$y", V], ["$D", Z]].forEach(function(e) {
600
+ _[e[1]] = function(n) {
601
+ return this.$g(n, e[0], e[1]);
602
+ };
603
+ }), S.extend = function(e, n) {
604
+ return e.$i || (e(n, l, S), e.$i = !0), S;
605
+ }, S.locale = j, S.isDayjs = F, S.unix = function(e) {
606
+ return S(1e3 * e);
607
+ }, S.en = A[T], S.Ls = A, S.p = {}, S;
608
+ });
609
+ })(ye);
610
+ var je = ye.exports;
611
+ const He = /* @__PURE__ */ ge(je);
612
+ var Ve = { exports: {} };
613
+ (function(c, i) {
614
+ (function(D, y) {
615
+ c.exports = y();
616
+ })(se, function() {
617
+ var D = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, y = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, t = /\d\d/, p = /\d\d?/, m = /\d*[^-_:/,()\s\d]+/, f = {}, $ = function(d) {
618
+ return (d = +d) + (d > 68 ? 1900 : 2e3);
619
+ }, v = function(d) {
620
+ return function(M) {
621
+ this[d] = +M;
622
+ };
623
+ }, g = [/[+-]\d\d:?(\d\d)?|Z/, function(d) {
624
+ (this.zone || (this.zone = {})).offset = function(M) {
625
+ if (!M || M === "Z")
626
+ return 0;
627
+ var k = M.match(/([+-]|\d\d)/g), x = 60 * k[1] + (+k[2] || 0);
628
+ return x === 0 ? 0 : k[0] === "+" ? -x : x;
629
+ }(d);
630
+ }], w = function(d) {
631
+ var M = f[d];
632
+ return M && (M.indexOf ? M : M.s.concat(M.f));
633
+ }, z = function(d, M) {
634
+ var k, x = f.meridiem;
635
+ if (x) {
636
+ for (var E = 1; E <= 24; E += 1)
637
+ if (d.indexOf(x(E, 0, M)) > -1) {
638
+ k = E > 12;
639
+ break;
640
+ }
641
+ } else
642
+ k = d === (M ? "pm" : "PM");
643
+ return k;
644
+ }, V = { A: [m, function(d) {
645
+ this.afternoon = z(d, !1);
646
+ }], a: [m, function(d) {
647
+ this.afternoon = z(d, !0);
648
+ }], S: [/\d/, function(d) {
649
+ this.milliseconds = 100 * +d;
650
+ }], SS: [t, function(d) {
651
+ this.milliseconds = 10 * +d;
652
+ }], SSS: [/\d{3}/, function(d) {
653
+ this.milliseconds = +d;
654
+ }], s: [p, v("seconds")], ss: [p, v("seconds")], m: [p, v("minutes")], mm: [p, v("minutes")], H: [p, v("hours")], h: [p, v("hours")], HH: [p, v("hours")], hh: [p, v("hours")], D: [p, v("day")], DD: [t, v("day")], Do: [m, function(d) {
655
+ var M = f.ordinal, k = d.match(/\d+/);
656
+ if (this.day = k[0], M)
657
+ for (var x = 1; x <= 31; x += 1)
658
+ M(x).replace(/\[|\]/g, "") === d && (this.day = x);
659
+ }], M: [p, v("month")], MM: [t, v("month")], MMM: [m, function(d) {
660
+ var M = w("months"), k = (w("monthsShort") || M.map(function(x) {
661
+ return x.slice(0, 3);
662
+ })).indexOf(d) + 1;
663
+ if (k < 1)
664
+ throw new Error();
665
+ this.month = k % 12 || k;
666
+ }], MMMM: [m, function(d) {
667
+ var M = w("months").indexOf(d) + 1;
668
+ if (M < 1)
669
+ throw new Error();
670
+ this.month = M % 12 || M;
671
+ }], Y: [/[+-]?\d+/, v("year")], YY: [t, function(d) {
672
+ this.year = $(d);
673
+ }], YYYY: [/\d{4}/, v("year")], Z: g, ZZ: g };
674
+ function Z(d) {
675
+ var M, k;
676
+ M = d, k = f && f.formats;
677
+ for (var x = (d = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(j, S, h) {
678
+ var l = h && h.toUpperCase();
679
+ return S || k[h] || D[h] || k[l].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(_, e, n) {
680
+ return e || n.slice(1);
681
+ });
682
+ })).match(y), E = x.length, U = 0; U < E; U += 1) {
683
+ var T = x[U], A = V[T], B = A && A[0], F = A && A[1];
684
+ x[U] = F ? { regex: B, parser: F } : T.replace(/^\[|\]$/g, "");
685
+ }
686
+ return function(j) {
687
+ for (var S = {}, h = 0, l = 0; h < E; h += 1) {
688
+ var _ = x[h];
689
+ if (typeof _ == "string")
690
+ l += _.length;
691
+ else {
692
+ var e = _.regex, n = _.parser, s = j.slice(l), r = e.exec(s)[0];
693
+ n.call(S, r), j = j.replace(r, "");
694
+ }
695
+ }
696
+ return function(o) {
697
+ var a = o.afternoon;
698
+ if (a !== void 0) {
699
+ var u = o.hours;
700
+ a ? u < 12 && (o.hours += 12) : u === 12 && (o.hours = 0), delete o.afternoon;
701
+ }
702
+ }(S), S;
703
+ };
704
+ }
705
+ return function(d, M, k) {
706
+ k.p.customParseFormat = !0, d && d.parseTwoDigitYear && ($ = d.parseTwoDigitYear);
707
+ var x = M.prototype, E = x.parse;
708
+ x.parse = function(U) {
709
+ var T = U.date, A = U.utc, B = U.args;
710
+ this.$u = A;
711
+ var F = B[1];
712
+ if (typeof F == "string") {
713
+ var j = B[2] === !0, S = B[3] === !0, h = j || S, l = B[2];
714
+ S && (l = B[2]), f = this.$locale(), !j && l && (f = k.Ls[l]), this.$d = function(s, r, o) {
715
+ try {
716
+ if (["x", "X"].indexOf(r) > -1)
717
+ return new Date((r === "X" ? 1e3 : 1) * s);
718
+ var a = Z(r)(s), u = a.year, b = a.month, O = a.day, C = a.hours, L = a.minutes, H = a.seconds, J = a.milliseconds, P = a.zone, q = /* @__PURE__ */ new Date(), I = O || (u || b ? 1 : q.getDate()), Y = u || q.getFullYear(), W = 0;
719
+ u && !b || (W = b > 0 ? b - 1 : q.getMonth());
720
+ var R = C || 0, Q = L || 0, oe = H || 0, re = J || 0;
721
+ return P ? new Date(Date.UTC(Y, W, I, R, Q, oe, re + 60 * P.offset * 1e3)) : o ? new Date(Date.UTC(Y, W, I, R, Q, oe, re)) : new Date(Y, W, I, R, Q, oe, re);
722
+ } catch {
723
+ return /* @__PURE__ */ new Date("");
724
+ }
725
+ }(T, F, A), this.init(), l && l !== !0 && (this.$L = this.locale(l).$L), h && T != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), f = {};
726
+ } else if (F instanceof Array)
727
+ for (var _ = F.length, e = 1; e <= _; e += 1) {
728
+ B[1] = F[e - 1];
729
+ var n = k.apply(this, B);
730
+ if (n.isValid()) {
731
+ this.$d = n.$d, this.$L = n.$L, this.init();
732
+ break;
733
+ }
734
+ e === _ && (this.$d = /* @__PURE__ */ new Date(""));
735
+ }
736
+ else
737
+ E.call(this, U);
738
+ };
739
+ };
740
+ });
741
+ })(Ve);
742
+ var Ue = { exports: {} };
743
+ (function(c, i) {
744
+ (function(D, y) {
745
+ c.exports = y();
746
+ })(se, function() {
747
+ return function(D, y, t) {
748
+ y.prototype.isBetween = function(p, m, f, $) {
749
+ var v = t(p), g = t(m), w = ($ = $ || "()")[0] === "(", z = $[1] === ")";
750
+ return (w ? this.isAfter(v, f) : !this.isBefore(v, f)) && (z ? this.isBefore(g, f) : !this.isAfter(g, f)) || (w ? this.isBefore(v, f) : !this.isAfter(v, f)) && (z ? this.isAfter(g, f) : !this.isBefore(g, f));
751
+ };
752
+ };
753
+ });
754
+ })(Ue);
755
+ var $e = { exports: {} };
756
+ (function(c, i) {
757
+ (function(D, y) {
758
+ c.exports = y();
759
+ })(se, function() {
760
+ return function(D, y) {
761
+ y.prototype.weekday = function(t) {
762
+ var p = this.$locale().weekStart || 0, m = this.$W, f = (m < p ? m + 7 : m) - p;
763
+ return this.$utils().u(t) ? f : this.subtract(f, "day").add(t, "day");
764
+ };
765
+ };
766
+ });
767
+ })($e);
768
+ var We = $e.exports;
769
+ const Ie = /* @__PURE__ */ ge(We);
770
+ He.extend(Ie);
771
+ const Ne = /* @__PURE__ */ te({
772
+ __name: "MazTransitionExpand",
773
+ props: {
774
+ animationDuration: { default: "300ms" }
775
+ },
776
+ setup(c) {
777
+ he((t) => ({
778
+ "05585d49": t.animationDuration
779
+ }));
780
+ const i = (t) => {
781
+ const p = getComputedStyle(t).width;
782
+ t.style.width = p, t.style.position = "absolute", t.style.visibility = "hidden", t.style.height = "auto", t.style.top = "bottom";
783
+ const m = getComputedStyle(t).height;
784
+ t.style.width = "", t.style.position = "", t.style.visibility = "", t.style.height = "0px", getComputedStyle(t).height, ce(() => {
785
+ t.style.height = m;
786
+ });
787
+ }, D = (t) => {
788
+ t.style.height = "auto";
789
+ }, y = (t) => {
790
+ const p = getComputedStyle(t).height;
791
+ t.style.height = p, getComputedStyle(t).height, ce(() => {
792
+ t.style.height = "0px";
793
+ });
794
+ };
795
+ return (t, p) => (X(), me(Se, {
796
+ class: "m-transition-expand",
797
+ name: "maz-expand",
798
+ tag: "div",
799
+ onEnter: p[0] || (p[0] = (m) => i(m)),
800
+ onAfterEnter: p[1] || (p[1] = (m) => D(m)),
801
+ onLeave: p[2] || (p[2] = (m) => y(m))
802
+ }, {
803
+ default: ae(() => [
804
+ G(t.$slots, "default", {}, void 0, !0)
805
+ ]),
806
+ _: 3
807
+ /* FORWARDED */
808
+ }));
809
+ }
810
+ }), Ze = /* @__PURE__ */ ue(Ne, [["__scopeId", "data-v-a751ae58"]]), Pe = {
811
+ xmlns: "http://www.w3.org/2000/svg",
812
+ width: "1em",
813
+ height: "1em",
814
+ fill: "none",
815
+ viewBox: "0 0 24 24"
816
+ }, qe = /* @__PURE__ */ K(
817
+ "path",
818
+ {
819
+ stroke: "currentColor",
820
+ "stroke-linecap": "round",
821
+ "stroke-linejoin": "round",
822
+ "stroke-width": "1.5",
823
+ d: "M12 4.5v15m7.5-7.5h-15"
824
+ },
825
+ null,
826
+ -1
827
+ /* HOISTED */
828
+ ), Re = [
829
+ qe
830
+ ];
831
+ function Je(c, i) {
832
+ return X(), ne("svg", Pe, [...Re]);
833
+ }
834
+ const Qe = { render: Je }, Ke = { class: "m-accordion" }, Xe = ["onClick"], Ge = { class: "maz-p-4" }, et = /* @__PURE__ */ te({
835
+ __name: "MazAccordion",
836
+ props: {
837
+ modelValue: { default: 0 }
838
+ },
839
+ emits: ["update:model-value"],
840
+ setup(c, { emit: i }) {
841
+ const D = c, y = i, t = _e(), p = ee(
842
+ () => Object.keys(t).filter((g) => g.startsWith("title-")).length
843
+ ), m = N(D.modelValue), f = ee({
844
+ get: () => D.modelValue || m.value,
845
+ set: (g) => {
846
+ m.value = g, y("update:model-value", g);
847
+ }
848
+ });
849
+ function $(g) {
850
+ return f.value === g;
851
+ }
852
+ function v(g) {
853
+ f.value === g ? (m.value = 0, y("update:model-value", 0)) : (m.value = g, y("update:model-value", g));
854
+ }
855
+ return (g, w) => (X(), ne("div", Ke, [
856
+ (X(!0), ne(
857
+ ke,
858
+ null,
859
+ xe(p.value, (z) => (X(), me(
860
+ Fe,
861
+ {
862
+ key: z,
863
+ class: "spotlight"
864
+ },
865
+ {
866
+ default: ae(() => [
867
+ K("button", {
868
+ class: "header",
869
+ onClick: (V) => v(z)
870
+ }, [
871
+ G(g.$slots, `title-${z}`, {
872
+ isOpen: $(z)
873
+ }, void 0, !0),
874
+ de(fe(Qe), {
875
+ class: pe(["header-icon", { "--rotate": $(z) }])
876
+ }, null, 8, ["class"])
877
+ ], 8, Xe),
878
+ de(
879
+ fe(Ze),
880
+ { "animation-duration": "300ms" },
881
+ {
882
+ default: ae(() => [
883
+ ze(K(
884
+ "div",
885
+ null,
886
+ [
887
+ K("div", Ge, [
888
+ G(g.$slots, "content", {
889
+ isOpen: $(z)
890
+ }, void 0, !0),
891
+ G(g.$slots, `content-${z}`, {
892
+ isOpen: $(z)
893
+ }, void 0, !0)
894
+ ])
895
+ ],
896
+ 512
897
+ /* NEED_PATCH */
898
+ ), [
899
+ [Oe, $(z)]
900
+ ])
901
+ ]),
902
+ _: 2
903
+ /* DYNAMIC */
904
+ },
905
+ 1024
906
+ /* DYNAMIC_SLOTS */
907
+ )
908
+ ]),
909
+ _: 2
910
+ /* DYNAMIC */
911
+ },
912
+ 1024
913
+ /* DYNAMIC_SLOTS */
914
+ ))),
915
+ 128
916
+ /* KEYED_FRAGMENT */
917
+ ))
918
+ ]));
919
+ }
920
+ }), at = /* @__PURE__ */ ue(et, [["__scopeId", "data-v-f31e7cc0"]]);
921
+ export {
922
+ at as M,
923
+ ue as _
924
+ };