treqit-ui-library 1.4.12 → 1.4.13

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.
@@ -1,13 +1,13 @@
1
- import { computed as m, createElementBlock as i, openBlock as n, normalizeStyle as _, normalizeClass as v, renderSlot as w, createCommentVNode as r, toDisplayString as b, createElementVNode as d, resolveComponent as q, withModifiers as z, createVNode as x, defineComponent as L, createTextVNode as X, createBlock as N, watch as A, onUnmounted as D, Teleport as R, Transition as T, withCtx as M, ref as I, withDirectives as U, vShow as W, Fragment as F, renderList as O, inject as Y, getCurrentInstance as K, onMounted as J } from "vue";
2
- const p = (e, t) => {
3
- const a = e.__vccOpts || e;
4
- for (const [l, o] of t)
5
- a[l] = o;
6
- return a;
7
- }, Q = {
1
+ import { computed as m, createElementBlock as i, openBlock as n, normalizeStyle as _, normalizeClass as h, renderSlot as w, createCommentVNode as d, toDisplayString as b, createElementVNode as u, resolveComponent as D, withModifiers as C, createVNode as x, defineComponent as L, createTextVNode as G, createBlock as B, watch as A, onUnmounted as E, Teleport as F, Transition as N, withCtx as T, ref as V, withDirectives as U, vShow as X, Fragment as O, renderList as R, inject as W, getCurrentInstance as Y, onMounted as K } from "vue";
2
+ const p = (e, a) => {
3
+ const t = e.__vccOpts || e;
4
+ for (const [l, o] of a)
5
+ t[l] = o;
6
+ return t;
7
+ }, J = {
8
8
  key: 0,
9
9
  class: "avatar-initials"
10
- }, Z = {
10
+ }, Q = {
11
11
  __name: "Avatar",
12
12
  props: {
13
13
  size: {
@@ -30,33 +30,33 @@ const p = (e, t) => {
30
30
  }
31
31
  },
32
32
  setup(e) {
33
- const t = e, a = m(() => [
33
+ const a = e, t = m(() => [
34
34
  "avatar",
35
35
  {
36
- "avatar--rounded-sm": t.rounded === "sm",
37
- "avatar--rounded-lg": t.rounded === "lg"
36
+ "avatar--rounded-sm": a.rounded === "sm",
37
+ "avatar--rounded-lg": a.rounded === "lg"
38
38
  }
39
39
  ]), l = m(() => {
40
40
  const o = {
41
- width: `${t.size}px`,
42
- height: `${t.size}px`,
43
- backgroundColor: t.color
41
+ width: `${a.size}px`,
42
+ height: `${a.size}px`,
43
+ backgroundColor: a.color
44
44
  };
45
- return t.rounded === !0 || t.rounded === "" ? o.borderRadius = "50%" : t.rounded === !1 || t.rounded === 0 || t.rounded === "0" ? o.borderRadius = "0px" : typeof t.rounded == "number" && (o.borderRadius = `${t.rounded}px`), o;
45
+ return a.rounded === !0 || a.rounded === "" ? o.borderRadius = "50%" : a.rounded === !1 || a.rounded === 0 || a.rounded === "0" ? o.borderRadius = "0px" : typeof a.rounded == "number" && (o.borderRadius = `${a.rounded}px`), o;
46
46
  });
47
47
  return (o, s) => (n(), i("div", {
48
- class: v(a.value),
48
+ class: h(t.value),
49
49
  style: _(l.value)
50
50
  }, [
51
51
  w(o.$slots, "default", {}, () => [
52
- e.initials ? (n(), i("span", Q, b(e.initials), 1)) : r("", !0)
52
+ e.initials ? (n(), i("span", J, b(e.initials), 1)) : d("", !0)
53
53
  ], !0)
54
54
  ], 6));
55
55
  }
56
- }, ee = /* @__PURE__ */ p(Z, [["__scopeId", "data-v-2e02a766"]]), te = ["type", "disabled"], ae = {
56
+ }, Z = /* @__PURE__ */ p(Q, [["__scopeId", "data-v-2e02a766"]]), ee = ["type", "disabled"], te = {
57
57
  key: 0,
58
58
  class: "btn-loader"
59
- }, le = {
59
+ }, ae = {
60
60
  __name: "Button",
61
61
  props: {
62
62
  variant: {
@@ -90,39 +90,39 @@ const p = (e, t) => {
90
90
  },
91
91
  emits: ["click"],
92
92
  setup(e) {
93
- const t = e, a = m(() => [
93
+ const a = e, t = m(() => [
94
94
  "btn",
95
- `btn--${t.variant}`,
96
- `btn--${t.size === "sm" ? "small" : t.size}`,
95
+ `btn--${a.variant}`,
96
+ `btn--${a.size === "sm" ? "small" : a.size}`,
97
97
  {
98
- "btn--loading": t.loading,
99
- "btn--full": t.full
98
+ "btn--loading": a.loading,
99
+ "btn--full": a.full
100
100
  }
101
101
  ]);
102
102
  return (l, o) => (n(), i("button", {
103
103
  type: e.type,
104
- class: v(a.value),
104
+ class: h(t.value),
105
105
  disabled: e.disabled || e.loading,
106
106
  onClick: o[0] || (o[0] = (s) => l.$emit("click"))
107
107
  }, [
108
- e.loading ? (n(), i("div", ae, [...o[1] || (o[1] = [
109
- d("div", { class: "simple-spinner" }, null, -1)
110
- ])])) : r("", !0),
111
- d("span", {
112
- class: v(["btn-content", { "content-hidden": e.loading }])
108
+ e.loading ? (n(), i("div", te, [...o[1] || (o[1] = [
109
+ u("div", { class: "simple-spinner" }, null, -1)
110
+ ])])) : d("", !0),
111
+ u("span", {
112
+ class: h(["btn-content", { "content-hidden": e.loading }])
113
113
  }, [
114
114
  w(l.$slots, "default", {}, void 0, !0)
115
115
  ], 2)
116
- ], 10, te));
116
+ ], 10, ee));
117
117
  }
118
- }, ne = /* @__PURE__ */ p(le, [["__scopeId", "data-v-8db92d47"]]), oe = { class: "card" }, se = {
118
+ }, le = /* @__PURE__ */ p(ae, [["__scopeId", "data-v-8db92d47"]]), ne = { class: "card" }, oe = {
119
119
  __name: "Card",
120
120
  setup(e) {
121
- return (t, a) => (n(), i("div", oe, [
122
- w(t.$slots, "default", {}, void 0, !0)
121
+ return (a, t) => (n(), i("div", ne, [
122
+ w(a.$slots, "default", {}, void 0, !0)
123
123
  ]));
124
124
  }
125
- }, ie = /* @__PURE__ */ p(se, [["__scopeId", "data-v-09430cb2"]]), re = {
125
+ }, se = /* @__PURE__ */ p(oe, [["__scopeId", "data-v-09430cb2"]]), ie = {
126
126
  __name: "Chip",
127
127
  props: {
128
128
  variant: {
@@ -138,20 +138,20 @@ const p = (e, t) => {
138
138
  },
139
139
  emits: ["remove"],
140
140
  setup(e) {
141
- const t = e, a = m(() => [
141
+ const a = e, t = m(() => [
142
142
  "chip",
143
- `chip--${t.variant}`
143
+ `chip--${a.variant}`
144
144
  ]);
145
145
  return (l, o) => {
146
- const s = q("Icon");
146
+ const s = D("Icon");
147
147
  return n(), i("div", {
148
- class: v(a.value)
148
+ class: h(t.value)
149
149
  }, [
150
150
  w(l.$slots, "default", {}, void 0, !0),
151
151
  e.removable ? (n(), i("button", {
152
152
  key: 0,
153
153
  class: "remove-btn",
154
- onClick: o[0] || (o[0] = z((c) => l.$emit("remove"), ["stop"])),
154
+ onClick: o[0] || (o[0] = C((r) => l.$emit("remove"), ["stop"])),
155
155
  "aria-label": "Remove"
156
156
  }, [
157
157
  x(s, {
@@ -159,11 +159,11 @@ const p = (e, t) => {
159
159
  size: "14",
160
160
  "stroke-width": "2.5"
161
161
  })
162
- ])) : r("", !0)
162
+ ])) : d("", !0)
163
163
  ], 2);
164
164
  };
165
165
  }
166
- }, de = /* @__PURE__ */ p(re, [["__scopeId", "data-v-6b6b7ae9"]]), ce = /* @__PURE__ */ L({
166
+ }, re = /* @__PURE__ */ p(ie, [["__scopeId", "data-v-6b6b7ae9"]]), de = /* @__PURE__ */ L({
167
167
  __name: "Column",
168
168
  props: {
169
169
  cols: { type: [String, Number], default: null },
@@ -174,7 +174,7 @@ const p = (e, t) => {
174
174
  xl: { type: [String, Number], default: null }
175
175
  },
176
176
  setup(e) {
177
- const t = e, a = m(() => {
177
+ const a = e, t = m(() => {
178
178
  const l = ["col"], o = {
179
179
  cols: "col-",
180
180
  xs: "col-xs-",
@@ -184,16 +184,16 @@ const p = (e, t) => {
184
184
  xl: "col-xl-"
185
185
  };
186
186
  for (const s in o)
187
- t[s] && l.push(`${o[s]}${t[s]}`);
187
+ a[s] && l.push(`${o[s]}${a[s]}`);
188
188
  return l;
189
189
  });
190
190
  return (l, o) => (n(), i("div", {
191
- class: v(a.value)
191
+ class: h(t.value)
192
192
  }, [
193
193
  w(l.$slots, "default", {}, void 0, !0)
194
194
  ], 2));
195
195
  }
196
- }), ue = /* @__PURE__ */ p(ce, [["__scopeId", "data-v-a5db8165"]]), me = {
196
+ }), ue = /* @__PURE__ */ p(de, [["__scopeId", "data-v-a5db8165"]]), ce = {
197
197
  __name: "Icon",
198
198
  props: {
199
199
  icon: {
@@ -210,36 +210,36 @@ const p = (e, t) => {
210
210
  }
211
211
  },
212
212
  setup(e) {
213
- const t = e, a = {
213
+ const a = e, t = {
214
214
  "x-small": 12,
215
215
  small: 16,
216
216
  medium: 24,
217
217
  large: 32,
218
218
  "x-large": 40
219
- }, l = m(() => t.icon ? ["icon", "mdi", t.icon] : ["icon"]), o = m(() => {
220
- let s = t.size;
221
- typeof t.size == "string" && a[t.size] && (s = a[t.size]);
222
- const c = {
219
+ }, l = m(() => a.icon ? ["icon", "mdi", a.icon] : ["icon"]), o = m(() => {
220
+ let s = a.size;
221
+ typeof a.size == "string" && t[a.size] && (s = t[a.size]);
222
+ const r = {
223
223
  fontSize: `${s}px`
224
224
  };
225
- return t.color && (c.color = t.color), c;
225
+ return a.color && (r.color = a.color), r;
226
226
  });
227
- return (s, c) => (n(), i("i", {
228
- class: v(l.value),
227
+ return (s, r) => (n(), i("i", {
228
+ class: h(l.value),
229
229
  style: _(o.value),
230
230
  "aria-hidden": "true"
231
231
  }, null, 6));
232
232
  }
233
- }, H = /* @__PURE__ */ p(me, [["__scopeId", "data-v-4a07735a"]]), fe = ["for"], pe = {
233
+ }, q = /* @__PURE__ */ p(ce, [["__scopeId", "data-v-4a07735a"]]), me = ["for"], fe = {
234
234
  key: 0,
235
235
  class: "date-picker__required"
236
- }, he = { class: "date-picker__input-wrapper" }, ve = ["id", "value", "disabled", "readonly", "min", "max", "required"], ye = {
236
+ }, pe = { class: "date-picker__input-wrapper" }, ye = ["id", "value", "disabled", "readonly", "min", "max", "required"], he = {
237
237
  key: 1,
238
238
  class: "date-picker__error"
239
- }, ge = {
239
+ }, ve = {
240
240
  key: 2,
241
241
  class: "date-picker__help"
242
- }, be = /* @__PURE__ */ L({
242
+ }, ge = /* @__PURE__ */ L({
243
243
  __name: "DatePicker",
244
244
  props: {
245
245
  modelValue: { default: "" },
@@ -257,46 +257,46 @@ const p = (e, t) => {
257
257
  showIcon: { type: Boolean, default: !0 }
258
258
  },
259
259
  emits: ["update:modelValue", "change", "blur", "focus"],
260
- setup(e, { emit: t }) {
261
- const a = e, l = t, o = m(() => `date-picker-${Math.random().toString(36).substr(2, 9)}`), s = m(() => [
260
+ setup(e, { emit: a }) {
261
+ const t = e, l = a, o = m(() => `date-picker-${Math.random().toString(36).substr(2, 9)}`), s = m(() => [
262
262
  "date-picker",
263
- `date-picker--${a.size}`,
264
- `date-picker--${a.variant}`,
263
+ `date-picker--${t.size}`,
264
+ `date-picker--${t.variant}`,
265
265
  {
266
- "date-picker--disabled": a.disabled,
267
- "date-picker--readonly": a.readonly,
268
- "date-picker--error": a.errorMessage,
269
- "date-picker--required": a.required
266
+ "date-picker--disabled": t.disabled,
267
+ "date-picker--readonly": t.readonly,
268
+ "date-picker--error": t.errorMessage,
269
+ "date-picker--required": t.required
270
270
  }
271
- ]), c = m(() => [
271
+ ]), r = m(() => [
272
272
  "date-picker__input",
273
273
  {
274
- "date-picker__input--with-icon": a.showIcon
274
+ "date-picker__input--with-icon": t.showIcon
275
275
  }
276
- ]), u = (g) => {
277
- const S = g.target;
278
- l("update:modelValue", S.value);
279
- }, f = (g) => {
280
- const S = g.target;
281
- l("change", S.value);
282
- }, y = (g) => {
276
+ ]), f = (g) => {
277
+ const k = g.target;
278
+ l("update:modelValue", k.value);
279
+ }, c = (g) => {
280
+ const k = g.target;
281
+ l("change", k.value);
282
+ }, v = (g) => {
283
283
  l("blur", g);
284
284
  }, $ = (g) => {
285
285
  l("focus", g);
286
286
  };
287
- return (g, S) => (n(), i("div", {
288
- class: v(["date-picker", s.value])
287
+ return (g, k) => (n(), i("div", {
288
+ class: h(["date-picker", s.value])
289
289
  }, [
290
290
  e.label ? (n(), i("label", {
291
291
  key: 0,
292
292
  for: o.value,
293
293
  class: "date-picker__label"
294
294
  }, [
295
- X(b(e.label) + " ", 1),
296
- e.required ? (n(), i("span", pe, "*")) : r("", !0)
297
- ], 8, fe)) : r("", !0),
298
- d("div", he, [
299
- d("input", {
295
+ G(b(e.label) + " ", 1),
296
+ e.required ? (n(), i("span", fe, "*")) : d("", !0)
297
+ ], 8, me)) : d("", !0),
298
+ u("div", pe, [
299
+ u("input", {
300
300
  id: o.value,
301
301
  type: "date",
302
302
  value: e.modelValue,
@@ -305,29 +305,29 @@ const p = (e, t) => {
305
305
  min: e.min,
306
306
  max: e.max,
307
307
  required: e.required,
308
- class: v(c.value),
309
- onInput: u,
310
- onChange: f,
311
- onBlur: y,
308
+ class: h(r.value),
309
+ onInput: f,
310
+ onChange: c,
311
+ onBlur: v,
312
312
  onFocus: $
313
- }, null, 42, ve),
314
- e.showIcon ? (n(), N(H, {
313
+ }, null, 42, ye),
314
+ e.showIcon ? (n(), B(q, {
315
315
  key: 0,
316
316
  icon: "mdi-calendar",
317
317
  class: "date-picker__icon"
318
- })) : r("", !0)
318
+ })) : d("", !0)
319
319
  ]),
320
- e.errorMessage ? (n(), i("div", ye, b(e.errorMessage), 1)) : r("", !0),
321
- e.helpText && !e.errorMessage ? (n(), i("div", ge, b(e.helpText), 1)) : r("", !0)
320
+ e.errorMessage ? (n(), i("div", he, b(e.errorMessage), 1)) : d("", !0),
321
+ e.helpText && !e.errorMessage ? (n(), i("div", ve, b(e.helpText), 1)) : d("", !0)
322
322
  ], 2));
323
323
  }
324
- }), xe = /* @__PURE__ */ p(be, [["__scopeId", "data-v-f09e8bb1"]]), we = ["aria-labelledby"], $e = {
324
+ }), be = /* @__PURE__ */ p(ge, [["__scopeId", "data-v-f09e8bb1"]]), xe = ["aria-labelledby"], we = {
325
325
  key: 0,
326
326
  class: "dialog-header"
327
- }, Se = {
327
+ }, $e = {
328
328
  id: "dialog-title",
329
329
  class: "dialog-title"
330
- }, _e = {
330
+ }, Se = {
331
331
  __name: "Dialog",
332
332
  props: {
333
333
  modelValue: {
@@ -361,41 +361,41 @@ const p = (e, t) => {
361
361
  }
362
362
  },
363
363
  emits: ["update:modelValue", "ok"],
364
- setup(e, { emit: t }) {
365
- const a = e, l = t, o = () => {
364
+ setup(e, { emit: a }) {
365
+ const t = e, l = a, o = () => {
366
366
  l("update:modelValue", !1);
367
367
  }, s = () => {
368
- a.persistent || o();
369
- }, c = m(() => a.width ? "" : `dialog-content--${a.size}`), u = m(() => {
370
- const f = {};
371
- return a.width && (f.maxWidth = typeof a.width == "number" || !isNaN(Number(a.width)) ? `${a.width}px` : a.width, f.width = f.maxWidth), f;
368
+ t.persistent || o();
369
+ }, r = m(() => t.width ? "" : `dialog-content--${t.size}`), f = m(() => {
370
+ const c = {};
371
+ return t.width && (c.maxWidth = typeof t.width == "number" || !isNaN(Number(t.width)) ? `${t.width}px` : t.width, c.width = c.maxWidth), c;
372
372
  });
373
- return A(() => a.modelValue, (f) => {
374
- typeof document < "u" && (document.body.style.overflow = f ? "hidden" : "");
375
- }), D(() => {
373
+ return A(() => t.modelValue, (c) => {
374
+ typeof document < "u" && (document.body.style.overflow = c ? "hidden" : "");
375
+ }), E(() => {
376
376
  typeof document < "u" && (document.body.style.overflow = "");
377
- }), (f, y) => {
378
- const $ = q("Icon");
379
- return n(), N(R, { to: "body" }, [
380
- x(T, { name: "dialog-fade" }, {
381
- default: M(() => [
377
+ }), (c, v) => {
378
+ const $ = D("Icon");
379
+ return n(), B(F, { to: "body" }, [
380
+ x(N, { name: "dialog-fade" }, {
381
+ default: T(() => [
382
382
  e.modelValue ? (n(), i("div", {
383
383
  key: 0,
384
384
  class: "dialog-overlay",
385
385
  onClick: s
386
386
  }, [
387
- d("div", {
388
- class: v(["dialog-content", c.value]),
389
- style: _(u.value),
387
+ u("div", {
388
+ class: h(["dialog-content", r.value]),
389
+ style: _(f.value),
390
390
  role: "dialog",
391
391
  "aria-modal": "true",
392
392
  "aria-labelledby": e.title ? "dialog-title" : void 0,
393
- onClick: y[0] || (y[0] = z(() => {
393
+ onClick: v[0] || (v[0] = C(() => {
394
394
  }, ["stop"]))
395
395
  }, [
396
- e.title ? (n(), i("header", $e, [
397
- d("h2", Se, b(e.title), 1),
398
- d("button", {
396
+ e.title ? (n(), i("header", we, [
397
+ u("h2", $e, b(e.title), 1),
398
+ u("button", {
399
399
  onClick: o,
400
400
  class: "dialog-close-btn",
401
401
  "aria-label": "Close dialog"
@@ -405,21 +405,21 @@ const p = (e, t) => {
405
405
  size: "24"
406
406
  })
407
407
  ])
408
- ])) : r("", !0),
409
- d("main", {
410
- class: v(["dialog-body", { scrollable: e.scrollable }])
408
+ ])) : d("", !0),
409
+ u("main", {
410
+ class: h(["dialog-body", { scrollable: e.scrollable }])
411
411
  }, [
412
- w(f.$slots, "default", {}, void 0, !0)
412
+ w(c.$slots, "default", {}, void 0, !0)
413
413
  ], 2)
414
- ], 14, we)
415
- ])) : r("", !0)
414
+ ], 14, xe)
415
+ ])) : d("", !0)
416
416
  ]),
417
417
  _: 3
418
418
  })
419
419
  ]);
420
420
  };
421
421
  }
422
- }, ke = /* @__PURE__ */ p(_e, [["__scopeId", "data-v-b9e605dc"]]), Ie = {
422
+ }, _e = /* @__PURE__ */ p(Se, [["__scopeId", "data-v-b9e605dc"]]), ke = {
423
423
  __name: "Divider",
424
424
  props: {
425
425
  vertical: {
@@ -432,26 +432,26 @@ const p = (e, t) => {
432
432
  }
433
433
  },
434
434
  setup(e) {
435
- const t = e, a = m(() => [
435
+ const a = e, t = m(() => [
436
436
  "divider",
437
- t.vertical ? "divider--vertical" : "divider--horizontal"
438
- ]), l = m(() => t.vertical ? {} : { height: `${t.height}px` });
437
+ a.vertical ? "divider--vertical" : "divider--horizontal"
438
+ ]), l = m(() => a.vertical ? {} : { height: `${a.height}px` });
439
439
  return (o, s) => (n(), i("hr", {
440
- class: v(a.value),
440
+ class: h(t.value),
441
441
  style: _(l.value)
442
442
  }, null, 6));
443
443
  }
444
- }, Ve = /* @__PURE__ */ p(Ie, [["__scopeId", "data-v-cbf66f89"]]), Ce = { class: "spinner-container" }, Be = {
444
+ }, Ie = /* @__PURE__ */ p(ke, [["__scopeId", "data-v-cbf66f89"]]), Ve = { class: "spinner-container" }, Ce = {
445
445
  __name: "ProgressSpinner",
446
446
  setup(e) {
447
- return (t, a) => (n(), i("div", Ce, [...a[0] || (a[0] = [
448
- d("div", { class: "spinner" }, null, -1)
447
+ return (a, t) => (n(), i("div", Ve, [...t[0] || (t[0] = [
448
+ u("div", { class: "spinner" }, null, -1)
449
449
  ])]));
450
450
  }
451
- }, j = /* @__PURE__ */ p(Be, [["__scopeId", "data-v-69bc6c98"]]), ze = {
451
+ }, H = /* @__PURE__ */ p(Ce, [["__scopeId", "data-v-69bc6c98"]]), Be = {
452
452
  key: 0,
453
453
  class: "placeholder"
454
- }, Ne = ["src", "alt"], Te = {
454
+ }, ze = ["src", "alt"], Ne = {
455
455
  __name: "Image",
456
456
  props: {
457
457
  src: {
@@ -481,56 +481,56 @@ const p = (e, t) => {
481
481
  }
482
482
  },
483
483
  setup(e) {
484
- const t = e, a = I(!0), l = I(!1), o = () => {
485
- a.value = !1, l.value = !1;
484
+ const a = e, t = V(!0), l = V(!1), o = () => {
485
+ t.value = !1, l.value = !1;
486
486
  }, s = () => {
487
- a.value = !1, l.value = !0;
487
+ t.value = !1, l.value = !0;
488
488
  };
489
- A(() => t.src, () => {
490
- a.value = !0, l.value = !1;
489
+ A(() => a.src, () => {
490
+ t.value = !0, l.value = !1;
491
491
  }, { immediate: !0 });
492
- const c = m(() => ({
493
- width: t.width,
494
- height: t.height,
495
- minWidth: t.width,
496
- minHeight: t.height,
497
- maxHeight: t.maxHeight
492
+ const r = m(() => ({
493
+ width: a.width,
494
+ height: a.height,
495
+ minWidth: a.width,
496
+ minHeight: a.height,
497
+ maxHeight: a.maxHeight
498
498
  }));
499
- return (u, f) => {
500
- const y = q("Icon");
499
+ return (f, c) => {
500
+ const v = D("Icon");
501
501
  return n(), i("div", {
502
502
  class: "image-container",
503
- style: _(c.value)
503
+ style: _(r.value)
504
504
  }, [
505
- a.value || l.value ? (n(), i("div", ze, [
506
- a.value ? (n(), N(j, { key: 0 })) : r("", !0),
507
- l.value ? (n(), N(y, {
505
+ t.value || l.value ? (n(), i("div", Be, [
506
+ t.value ? (n(), B(H, { key: 0 })) : d("", !0),
507
+ l.value ? (n(), B(v, {
508
508
  key: 1,
509
509
  name: "image-off",
510
510
  size: 48
511
- })) : r("", !0)
512
- ])) : r("", !0),
513
- U(d("img", {
511
+ })) : d("", !0)
512
+ ])) : d("", !0),
513
+ U(u("img", {
514
514
  src: e.src,
515
515
  alt: e.alt,
516
516
  class: "image",
517
517
  style: _({ objectFit: e.fit, maxHeight: e.maxHeight }),
518
518
  onLoad: o,
519
519
  onError: s
520
- }, null, 44, Ne), [
521
- [W, !a.value && !l.value]
520
+ }, null, 44, ze), [
521
+ [X, !t.value && !l.value]
522
522
  ])
523
523
  ], 4);
524
524
  };
525
525
  }
526
- }, Me = /* @__PURE__ */ p(Te, [["__scopeId", "data-v-a3997b8b"]]), qe = ["src"], Ae = {
526
+ }, Te = /* @__PURE__ */ p(Ne, [["__scopeId", "data-v-a3997b8b"]]), Me = ["src"], qe = {
527
527
  key: 0,
528
528
  class: "slideshow-text-content"
529
- }, De = {
529
+ }, Ae = {
530
530
  key: 0,
531
531
  class: "slideshow-title"
532
- }, Ee = ["innerHTML"], Pe = {
533
- __name: "ImageSlideshow",
532
+ }, De = ["innerHTML"], Ee = {
533
+ __name: "ImageSlideShow",
534
534
  props: {
535
535
  modelValue: {
536
536
  type: Boolean,
@@ -551,103 +551,104 @@ const p = (e, t) => {
551
551
  description: {
552
552
  type: String,
553
553
  default: ""
554
+ },
555
+ baseUrl: {
556
+ type: String,
557
+ default: ""
554
558
  }
555
559
  },
556
560
  emits: ["update:modelValue"],
557
- setup(e, { emit: t }) {
558
- const a = useRuntimeConfig(), l = e, o = t, s = I(0), c = I(0), u = I(l.startIndex);
559
- A(() => l.modelValue, (h) => {
560
- h ? (u.value = l.startIndex, window.addEventListener("keydown", S), document.body.style.overflow = "hidden") : (window.removeEventListener("keydown", S), document.body.style.overflow = "");
561
+ setup(e, { emit: a }) {
562
+ const t = e, l = a, o = V(0), s = V(0), r = V(t.startIndex);
563
+ A(() => t.modelValue, (y) => {
564
+ y ? (r.value = t.startIndex, window.addEventListener("keydown", g), document.body.style.overflow = "hidden") : (window.removeEventListener("keydown", g), document.body.style.overflow = "");
561
565
  });
562
566
  const f = m(() => {
563
- if (!l.images || l.images.length === 0) return "";
564
- const h = l.images[u.value];
565
- return `${a.public.s3BaseUrl}${h}.jpg`;
566
- }), y = () => {
567
- o("update:modelValue", !1);
567
+ if (!t.images || t.images.length === 0) return "";
568
+ const y = t.images[r.value];
569
+ return `${t.baseUrl}${y}.jpg`;
570
+ }), c = () => {
571
+ l("update:modelValue", !1);
572
+ }, v = () => {
573
+ r.value = (r.value + 1) % t.images.length;
568
574
  }, $ = () => {
569
- u.value = (u.value + 1) % l.images.length;
570
- }, g = () => {
571
- u.value = (u.value - 1 + l.images.length) % l.images.length;
572
- }, S = (h) => {
573
- h.key === "Escape" && y(), h.key === "ArrowRight" && $(), h.key === "ArrowLeft" && g();
574
- }, E = (h) => {
575
- s.value = h.touches[0].clientX, c.value = h.touches[0].clientY;
576
- }, V = (h) => {
577
- const C = h.changedTouches[0].clientX, B = h.changedTouches[0].clientY, P = C - s.value, G = B - c.value;
578
- Math.abs(P) > Math.abs(G) && (P > 50 ? g() : P < -50 && $());
575
+ r.value = (r.value - 1 + t.images.length) % t.images.length;
576
+ }, g = (y) => {
577
+ y.key === "Escape" && c(), y.key === "ArrowRight" && v(), y.key === "ArrowLeft" && $();
578
+ }, k = (y) => {
579
+ o.value = y.touches[0].clientX, s.value = y.touches[0].clientY;
580
+ }, P = (y) => {
581
+ const S = y.changedTouches[0].clientX, z = y.changedTouches[0].clientY, M = S - o.value, j = z - s.value;
582
+ Math.abs(M) > Math.abs(j) && (M > 50 ? $() : M < -50 && v());
579
583
  };
580
- return D(() => {
581
- window.removeEventListener("keydown", S), document.body.style.overflow = "";
582
- }), (h, C) => {
583
- const B = q("Icon");
584
- return n(), N(R, { to: "body" }, [
585
- x(T, { name: "slideshow-fade" }, {
586
- default: M(() => [
587
- e.modelValue ? (n(), i("div", {
588
- key: 0,
589
- class: "slideshow-overlay",
590
- onClick: z(y, ["self"])
584
+ return E(() => {
585
+ window.removeEventListener("keydown", g), document.body.style.overflow = "";
586
+ }), (y, S) => (n(), B(F, { to: "body" }, [
587
+ x(N, { name: "slideshow-fade" }, {
588
+ default: T(() => [
589
+ e.modelValue ? (n(), i("div", {
590
+ key: 0,
591
+ class: "slideshow-overlay",
592
+ onClick: C(c, ["self"])
593
+ }, [
594
+ u("button", {
595
+ class: "slideshow-close-btn",
596
+ onClick: C(c, ["stop"]),
597
+ "aria-label": "Close slideshow"
591
598
  }, [
592
- d("button", {
593
- class: "slideshow-close-btn",
594
- onClick: z(y, ["stop"]),
595
- "aria-label": "Close slideshow"
599
+ x(q, {
600
+ icon: "mdi-close",
601
+ size: "48"
602
+ })
603
+ ]),
604
+ u("div", {
605
+ class: "slideshow-content",
606
+ onTouchstartPassive: k,
607
+ onTouchendPassive: P
608
+ }, [
609
+ u("button", {
610
+ class: "slideshow-nav-btn prev",
611
+ onClick: C($, ["stop"]),
612
+ "aria-label": "Previous image",
613
+ style: { fontSize: "48px" }
596
614
  }, [
597
- x(B, {
598
- icon: "mdi-close",
599
- size: "48"
615
+ x(q, {
616
+ icon: "mdi-chevron-left",
617
+ size: "80"
600
618
  })
601
619
  ]),
602
- d("div", {
603
- class: "slideshow-content",
604
- onTouchstartPassive: E,
605
- onTouchendPassive: V
620
+ u("img", {
621
+ src: f.value,
622
+ class: "slideshow-image",
623
+ alt: "Slideshow image"
624
+ }, null, 8, Me),
625
+ u("button", {
626
+ class: "slideshow-nav-btn next",
627
+ onClick: C(v, ["stop"]),
628
+ "aria-label": "Next image",
629
+ style: { fontSize: "48px" }
606
630
  }, [
607
- d("button", {
608
- class: "slideshow-nav-btn prev",
609
- onClick: z(g, ["stop"]),
610
- "aria-label": "Previous image",
611
- style: { fontSize: "48px" }
612
- }, [
613
- x(B, {
614
- icon: "mdi-chevron-left",
615
- size: "80"
616
- })
617
- ]),
618
- d("img", {
619
- src: f.value,
620
- class: "slideshow-image",
621
- alt: "Slideshow image"
622
- }, null, 8, qe),
623
- d("button", {
624
- class: "slideshow-nav-btn next",
625
- onClick: z($, ["stop"]),
626
- "aria-label": "Next image",
627
- style: { fontSize: "48px" }
628
- }, [
629
- x(B, {
630
- icon: "mdi-chevron-right",
631
- size: "80"
632
- })
633
- ]),
634
- e.name || e.description ? (n(), i("div", Ae, [
635
- e.name ? (n(), i("h3", De, b(e.name), 1)) : r("", !0),
636
- e.description ? (n(), i("div", {
637
- key: 1,
638
- class: "slideshow-description",
639
- innerHTML: e.description
640
- }, null, 8, Ee)) : r("", !0)
641
- ])) : r("", !0)
642
- ], 32)
643
- ])) : r("", !0)
644
- ]),
645
- _: 1
646
- })
647
- ]);
648
- };
631
+ x(q, {
632
+ icon: "mdi-chevron-right",
633
+ size: "80"
634
+ })
635
+ ]),
636
+ e.name || e.description ? (n(), i("div", qe, [
637
+ e.name ? (n(), i("h3", Ae, b(e.name), 1)) : d("", !0),
638
+ e.description ? (n(), i("div", {
639
+ key: 1,
640
+ class: "slideshow-description",
641
+ innerHTML: e.description
642
+ }, null, 8, De)) : d("", !0)
643
+ ])) : d("", !0)
644
+ ], 32)
645
+ ])) : d("", !0)
646
+ ]),
647
+ _: 1
648
+ })
649
+ ]));
649
650
  }
650
- }, Le = /* @__PURE__ */ p(Pe, [["__scopeId", "data-v-93d78bf4"]]), Re = ["for"], Fe = { class: "input-container" }, Oe = ["id", "type", "value", "placeholder", "disabled"], He = {
651
+ }, Pe = /* @__PURE__ */ p(Ee, [["__scopeId", "data-v-ff74117f"]]), Le = ["for"], Fe = { class: "input-container" }, Oe = ["id", "type", "value", "placeholder", "disabled"], Re = {
651
652
  __name: "Input",
652
653
  props: {
653
654
  modelValue: {
@@ -680,20 +681,20 @@ const p = (e, t) => {
680
681
  }
681
682
  },
682
683
  emits: ["update:modelValue"],
683
- setup(e, { emit: t }) {
684
- const a = e, l = t, o = (s) => {
684
+ setup(e, { emit: a }) {
685
+ const t = e, l = a, o = (s) => {
685
686
  l("update:modelValue", s.target.value);
686
687
  };
687
- return (s, c) => (n(), i("div", {
688
- class: v(["input-wrapper", a.class])
688
+ return (s, r) => (n(), i("div", {
689
+ class: h(["input-wrapper", t.class])
689
690
  }, [
690
691
  e.label ? (n(), i("label", {
691
692
  key: 0,
692
693
  for: e.id,
693
694
  class: "input-label"
694
- }, b(e.label), 9, Re)) : r("", !0),
695
- d("div", Fe, [
696
- d("input", {
695
+ }, b(e.label), 9, Le)) : d("", !0),
696
+ u("div", Fe, [
697
+ u("input", {
697
698
  id: e.id,
698
699
  type: e.type,
699
700
  value: e.modelValue,
@@ -705,7 +706,7 @@ const p = (e, t) => {
705
706
  ])
706
707
  ], 2));
707
708
  }
708
- }, je = /* @__PURE__ */ p(He, [["__scopeId", "data-v-9c7a100f"]]), Ge = {
709
+ }, He = /* @__PURE__ */ p(Re, [["__scopeId", "data-v-9c7a100f"]]), je = {
709
710
  __name: "NavigationDrawer",
710
711
  props: {
711
712
  modelValue: {
@@ -724,51 +725,51 @@ const p = (e, t) => {
724
725
  }
725
726
  },
726
727
  emits: ["update:modelValue"],
727
- setup(e, { emit: t }) {
728
- const a = e, l = t, o = () => {
728
+ setup(e, { emit: a }) {
729
+ const t = e, l = a, o = () => {
729
730
  l("update:modelValue", !1);
730
731
  }, s = m(() => [
731
732
  "navigation-drawer",
732
- `navigation-drawer--${a.location}`
733
- ]), c = m(() => ({
734
- width: `${a.width}px`
735
- })), u = m(() => `slide-from-${a.location}`);
736
- return A(() => a.modelValue, (f) => {
737
- typeof document < "u" && (f ? document.body.style.overflow = "hidden" : document.body.style.overflow = "");
738
- }), D(() => {
733
+ `navigation-drawer--${t.location}`
734
+ ]), r = m(() => ({
735
+ width: `${t.width}px`
736
+ })), f = m(() => `slide-from-${t.location}`);
737
+ return A(() => t.modelValue, (c) => {
738
+ typeof document < "u" && (c ? document.body.style.overflow = "hidden" : document.body.style.overflow = "");
739
+ }), E(() => {
739
740
  typeof document < "u" && (document.body.style.overflow = "");
740
- }), (f, y) => (n(), N(R, { to: "body" }, [
741
- x(T, { name: "fade" }, {
742
- default: M(() => [
741
+ }), (c, v) => (n(), B(F, { to: "body" }, [
742
+ x(N, { name: "fade" }, {
743
+ default: T(() => [
743
744
  e.modelValue ? (n(), i("div", {
744
745
  key: 0,
745
746
  class: "overlay",
746
747
  onClick: o,
747
748
  "aria-hidden": "true"
748
- })) : r("", !0)
749
+ })) : d("", !0)
749
750
  ]),
750
751
  _: 1
751
752
  }),
752
- x(T, { name: u.value }, {
753
- default: M(() => [
753
+ x(N, { name: f.value }, {
754
+ default: T(() => [
754
755
  e.modelValue ? (n(), i("aside", {
755
756
  key: 0,
756
- class: v(s.value),
757
- style: _(c.value),
757
+ class: h(s.value),
758
+ style: _(r.value),
758
759
  role: "dialog",
759
760
  "aria-modal": "true"
760
761
  }, [
761
- w(f.$slots, "default", {}, void 0, !0)
762
- ], 6)) : r("", !0)
762
+ w(c.$slots, "default", {}, void 0, !0)
763
+ ], 6)) : d("", !0)
763
764
  ]),
764
765
  _: 3
765
766
  }, 8, ["name"])
766
767
  ]));
767
768
  }
768
- }, Xe = /* @__PURE__ */ p(Ge, [["__scopeId", "data-v-a13e59a5"]]), Ue = ["aria-valuenow"], We = ["width", "height", "viewBox"], Ye = ["cx", "cy", "r", "stroke-width"], Ke = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Je = {
769
+ }, Ge = /* @__PURE__ */ p(je, [["__scopeId", "data-v-a13e59a5"]]), Ue = ["aria-valuenow"], Xe = ["width", "height", "viewBox"], We = ["cx", "cy", "r", "stroke-width"], Ye = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ke = {
769
770
  key: 0,
770
771
  class: "progress-circular__content"
771
- }, k = 44, Qe = {
772
+ }, I = 44, Je = {
772
773
  __name: "Progress",
773
774
  props: {
774
775
  modelValue: {
@@ -794,13 +795,13 @@ const p = (e, t) => {
794
795
  }
795
796
  },
796
797
  setup(e) {
797
- const t = e, a = m(() => (k - t.width) / 2), l = m(() => 2 * Math.PI * a.value), o = m(() => ({
798
- width: `${t.size}px`,
799
- height: `${t.size}px`,
800
- color: t.color === "primary" ? "#3C9273" : t.color
798
+ const a = e, t = m(() => (I - a.width) / 2), l = m(() => 2 * Math.PI * t.value), o = m(() => ({
799
+ width: `${a.size}px`,
800
+ height: `${a.size}px`,
801
+ color: a.color === "primary" ? "#3C9273" : a.color
801
802
  // Use primary green color
802
- })), s = m(() => t.width / t.size * k), c = m(() => t.indeterminate ? null : l.value * (1 - t.modelValue / 100));
803
- return (u, f) => (n(), i("div", {
803
+ })), s = m(() => a.width / a.size * I), r = m(() => a.indeterminate ? null : l.value * (1 - a.modelValue / 100));
804
+ return (f, c) => (n(), i("div", {
804
805
  class: "progress-circular",
805
806
  style: _(o.value),
806
807
  role: "progressbar",
@@ -812,33 +813,33 @@ const p = (e, t) => {
812
813
  xmlns: "http://www.w3.org/2000/svg",
813
814
  width: e.size,
814
815
  height: e.size,
815
- viewBox: `0 0 ${k} ${k}`
816
+ viewBox: `0 0 ${I} ${I}`
816
817
  }, [
817
- d("circle", {
818
+ u("circle", {
818
819
  class: "progress-circular__underlay",
819
820
  fill: "transparent",
820
- cx: k / 2,
821
- cy: k / 2,
822
- r: a.value,
821
+ cx: I / 2,
822
+ cy: I / 2,
823
+ r: t.value,
823
824
  "stroke-width": s.value
824
- }, null, 8, Ye),
825
- d("circle", {
825
+ }, null, 8, We),
826
+ u("circle", {
826
827
  class: "progress-circular__overlay",
827
828
  fill: "transparent",
828
- cx: k / 2,
829
- cy: k / 2,
830
- r: a.value,
829
+ cx: I / 2,
830
+ cy: I / 2,
831
+ r: t.value,
831
832
  "stroke-width": s.value,
832
833
  "stroke-dasharray": l.value,
833
- "stroke-dashoffset": c.value
834
- }, null, 8, Ke)
835
- ], 8, We)),
836
- u.$slots.default ? (n(), i("div", Je, [
837
- w(u.$slots, "default", {}, void 0, !0)
838
- ])) : r("", !0)
834
+ "stroke-dashoffset": r.value
835
+ }, null, 8, Ye)
836
+ ], 8, Xe)),
837
+ f.$slots.default ? (n(), i("div", Ke, [
838
+ w(f.$slots, "default", {}, void 0, !0)
839
+ ])) : d("", !0)
839
840
  ], 12, Ue));
840
841
  }
841
- }, Ze = /* @__PURE__ */ p(Qe, [["__scopeId", "data-v-bdb14b7f"]]), et = {
842
+ }, Qe = /* @__PURE__ */ p(Je, [["__scopeId", "data-v-bdb14b7f"]]), Ze = {
842
843
  __name: "Row",
843
844
  props: {
844
845
  justify: {
@@ -862,24 +863,24 @@ const p = (e, t) => {
862
863
  }
863
864
  },
864
865
  setup(e) {
865
- const t = e, a = m(() => ({
866
- justifyContent: t.justify,
867
- alignItems: t.align,
868
- gap: t.gap,
869
- flexWrap: t.wrap ? "wrap" : "nowrap"
866
+ const a = e, t = m(() => ({
867
+ justifyContent: a.justify,
868
+ alignItems: a.align,
869
+ gap: a.gap,
870
+ flexWrap: a.wrap ? "wrap" : "nowrap"
870
871
  }));
871
872
  return (l, o) => (n(), i("div", {
872
873
  class: "flex-row",
873
- style: _(a.value)
874
+ style: _(t.value)
874
875
  }, [
875
876
  w(l.$slots, "default", {}, void 0, !0)
876
877
  ], 4));
877
878
  }
878
- }, tt = /* @__PURE__ */ p(et, [["__scopeId", "data-v-fc69ad3e"]]), at = ["for"], lt = { class: "select-container" }, nt = ["id", "value", "disabled", "multiple"], ot = ["selected"], st = ["value"], it = {
879
+ }, et = /* @__PURE__ */ p(Ze, [["__scopeId", "data-v-fc69ad3e"]]), tt = ["for"], at = { class: "select-container" }, lt = ["id", "value", "disabled", "multiple"], nt = ["selected"], ot = ["value"], st = {
879
880
  key: 0,
880
881
  class: "select-icon",
881
882
  "aria-hidden": "true"
882
- }, rt = {
883
+ }, it = {
883
884
  __name: "Select",
884
885
  props: {
885
886
  modelValue: {
@@ -920,48 +921,48 @@ const p = (e, t) => {
920
921
  }
921
922
  },
922
923
  emits: ["update:modelValue"],
923
- setup(e, { emit: t }) {
924
- const a = e, l = t;
925
- m(() => !a.options || a.options.length === 0 ? [] : typeof a.options[0] == "string" ? a.options.map((s) => ({ text: s, value: s })) : a.options);
924
+ setup(e, { emit: a }) {
925
+ const t = e, l = a;
926
+ m(() => !t.options || t.options.length === 0 ? [] : typeof t.options[0] == "string" ? t.options.map((s) => ({ text: s, value: s })) : t.options);
926
927
  const o = (s) => {
927
- if (a.multiple) {
928
- const c = Array.from(s.target.selectedOptions).map((u) => u.value);
929
- l("update:modelValue", c);
928
+ if (t.multiple) {
929
+ const r = Array.from(s.target.selectedOptions).map((f) => f.value);
930
+ l("update:modelValue", r);
930
931
  } else
931
932
  l("update:modelValue", s.target.value);
932
933
  };
933
- return (s, c) => {
934
- const u = q("Icon");
934
+ return (s, r) => {
935
+ const f = D("Icon");
935
936
  return n(), i("div", {
936
- class: v(["select-wrapper", a.class])
937
+ class: h(["select-wrapper", t.class])
937
938
  }, [
938
939
  e.label ? (n(), i("label", {
939
940
  key: 0,
940
941
  for: e.id,
941
942
  class: "select-label"
942
- }, b(e.label), 9, at)) : r("", !0),
943
- d("div", lt, [
944
- d("select", {
943
+ }, b(e.label), 9, tt)) : d("", !0),
944
+ u("div", at, [
945
+ u("select", {
945
946
  id: e.id,
946
947
  value: e.modelValue,
947
948
  onChange: o,
948
949
  disabled: e.disabled,
949
950
  multiple: e.multiple,
950
- class: v([{ "no-arrow": e.hideArrow }, "select-input"])
951
+ class: h([{ "no-arrow": e.hideArrow }, "select-input"])
951
952
  }, [
952
953
  e.placeholder ? (n(), i("option", {
953
954
  key: 0,
954
955
  value: "",
955
956
  disabled: "",
956
957
  selected: !e.modelValue
957
- }, b(e.placeholder), 9, ot)) : r("", !0),
958
- (n(!0), i(F, null, O(e.options, (f) => (n(), i("option", {
959
- key: f.value,
960
- value: f.value
961
- }, b(f.text), 9, st))), 128))
962
- ], 42, nt),
963
- e.hideArrow ? r("", !0) : (n(), i("div", it, [
964
- x(u, {
958
+ }, b(e.placeholder), 9, nt)) : d("", !0),
959
+ (n(!0), i(O, null, R(e.options, (c) => (n(), i("option", {
960
+ key: c.value,
961
+ value: c.value
962
+ }, b(c.text), 9, ot))), 128))
963
+ ], 42, lt),
964
+ e.hideArrow ? d("", !0) : (n(), i("div", st, [
965
+ x(f, {
965
966
  icon: "mdi-chevron-down",
966
967
  size: "20"
967
968
  })
@@ -970,15 +971,15 @@ const p = (e, t) => {
970
971
  ], 2);
971
972
  };
972
973
  }
973
- }, dt = /* @__PURE__ */ p(rt, [["__scopeId", "data-v-d4f9136e"]]), ct = { class: "spacer" }, ut = {
974
+ }, rt = /* @__PURE__ */ p(it, [["__scopeId", "data-v-d4f9136e"]]), dt = { class: "spacer" }, ut = {
974
975
  __name: "Spacer",
975
976
  setup(e) {
976
- return (t, a) => (n(), i("div", ct));
977
+ return (a, t) => (n(), i("div", dt));
977
978
  }
978
- }, mt = /* @__PURE__ */ p(ut, [["__scopeId", "data-v-370a82d1"]]), ft = { class: "textarea-wrapper" }, pt = ["for"], ht = ["id", "value", "placeholder", "rows", "maxlength"], vt = {
979
+ }, ct = /* @__PURE__ */ p(ut, [["__scopeId", "data-v-370a82d1"]]), mt = { class: "textarea-wrapper" }, ft = ["for"], pt = ["id", "value", "placeholder", "rows", "maxlength"], yt = {
979
980
  key: 1,
980
981
  class: "error-message"
981
- }, yt = {
982
+ }, ht = {
982
983
  __name: "TextArea",
983
984
  props: {
984
985
  id: {
@@ -1012,51 +1013,51 @@ const p = (e, t) => {
1012
1013
  },
1013
1014
  emits: ["update:modelValue"],
1014
1015
  setup(e) {
1015
- return (t, a) => (n(), i("div", ft, [
1016
+ return (a, t) => (n(), i("div", mt, [
1016
1017
  e.label ? (n(), i("label", {
1017
1018
  key: 0,
1018
1019
  for: e.id,
1019
1020
  class: "textarea-label"
1020
- }, b(e.label), 9, pt)) : r("", !0),
1021
- d("textarea", {
1021
+ }, b(e.label), 9, ft)) : d("", !0),
1022
+ u("textarea", {
1022
1023
  id: e.id,
1023
1024
  value: e.modelValue,
1024
1025
  placeholder: e.placeholder,
1025
1026
  rows: e.rows,
1026
1027
  maxlength: e.maxlength,
1027
- onInput: a[0] || (a[0] = (l) => t.$emit("update:modelValue", l.target.value)),
1028
- class: v(["textarea-input", { "has-error": e.error }])
1029
- }, null, 42, ht),
1030
- e.error ? (n(), i("p", vt, b(e.error), 1)) : r("", !0)
1028
+ onInput: t[0] || (t[0] = (l) => a.$emit("update:modelValue", l.target.value)),
1029
+ class: h(["textarea-input", { "has-error": e.error }])
1030
+ }, null, 42, pt),
1031
+ e.error ? (n(), i("p", yt, b(e.error), 1)) : d("", !0)
1031
1032
  ]));
1032
1033
  }
1033
- }, gt = /* @__PURE__ */ p(yt, [["__scopeId", "data-v-a2a785c2"]]);
1034
- class bt {
1034
+ }, vt = /* @__PURE__ */ p(ht, [["__scopeId", "data-v-a2a785c2"]]);
1035
+ class gt {
1035
1036
  static newGuid() {
1036
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
1037
- const a = Math.random() * 16 | 0;
1038
- return (t == "x" ? a : a & 3 | 8).toString(16);
1037
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(a) {
1038
+ const t = Math.random() * 16 | 0;
1039
+ return (a == "x" ? t : t & 3 | 8).toString(16);
1039
1040
  });
1040
1041
  }
1041
1042
  static isValidGuid() {
1042
- const t = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
1043
- return function(a) {
1044
- return a && t.test(a);
1043
+ const a = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
1044
+ return function(t) {
1045
+ return t && a.test(t);
1045
1046
  };
1046
1047
  }
1047
- static isEmptyGuid(t) {
1048
- return t === "00000000-0000-0000-0000-000000000000";
1048
+ static isEmptyGuid(a) {
1049
+ return a === "00000000-0000-0000-0000-000000000000";
1049
1050
  }
1050
1051
  static emptyGuid() {
1051
1052
  return "00000000-0000-0000-0000-000000000000";
1052
1053
  }
1053
1054
  }
1054
- const xt = { class: "input-container" }, wt = ["id", "type", "value", "autocomplete", "maxlength"], $t = ["for"], St = { class: "error-container" }, _t = /* @__PURE__ */ L({
1055
+ const bt = { class: "input-container" }, xt = ["id", "type", "value", "autocomplete", "maxlength"], wt = ["for"], $t = { class: "error-container" }, St = /* @__PURE__ */ L({
1055
1056
  __name: "TextField",
1056
1057
  props: {
1057
1058
  id: {
1058
1059
  type: String,
1059
- default: () => `textfield-${bt.newGuid()}`
1060
+ default: () => `textfield-${gt.newGuid()}`
1060
1061
  },
1061
1062
  label: {
1062
1063
  type: String,
@@ -1092,76 +1093,76 @@ const xt = { class: "input-container" }, wt = ["id", "type", "value", "autocompl
1092
1093
  }
1093
1094
  },
1094
1095
  emits: ["update:modelValue"],
1095
- setup(e, { expose: t, emit: a }) {
1096
- const l = e, o = a, s = I([]), c = I(!0), u = Y("form", null), f = K(), y = async () => {
1096
+ setup(e, { expose: a, emit: t }) {
1097
+ const l = e, o = t, s = V([]), r = V(!0), f = W("form", null), c = Y(), v = async () => {
1097
1098
  s.value = [];
1098
- let V = !0;
1099
- for (const h of l.rules) {
1100
- const C = h(l.modelValue);
1101
- C !== !0 && (V = !1, s.value.push(C));
1099
+ let y = !0;
1100
+ for (const S of l.rules) {
1101
+ const z = S(l.modelValue);
1102
+ z !== !0 && (y = !1, s.value.push(z));
1102
1103
  }
1103
- return { valid: V, errors: s.value };
1104
+ return { valid: y, errors: s.value };
1104
1105
  }, $ = () => {
1105
1106
  o("update:modelValue", ""), g();
1106
1107
  }, g = () => {
1107
- s.value = [], c.value = !0;
1108
- }, S = (V) => {
1109
- const h = V.target;
1110
- o("update:modelValue", h.value), c.value || y();
1111
- }, E = () => {
1112
- c.value = !1, l.trim && typeof l.modelValue == "string" && o("update:modelValue", l.modelValue.trim()), y();
1108
+ s.value = [], r.value = !0;
1109
+ }, k = (y) => {
1110
+ const S = y.target;
1111
+ o("update:modelValue", S.value), r.value || v();
1112
+ }, P = () => {
1113
+ r.value = !1, l.trim && typeof l.modelValue == "string" && o("update:modelValue", l.modelValue.trim()), v();
1113
1114
  };
1114
- return J(() => {
1115
- u && f && u.register({
1115
+ return K(() => {
1116
+ f && c && f.register({
1116
1117
  id: l.id,
1117
- validate: y,
1118
+ validate: v,
1118
1119
  reset: $,
1119
1120
  resetValidation: g
1120
1121
  });
1121
- }), D(() => {
1122
- u && f && u.unregister({ id: l.id });
1123
- }), t({
1124
- validate: y,
1122
+ }), E(() => {
1123
+ f && c && f.unregister({ id: l.id });
1124
+ }), a({
1125
+ validate: v,
1125
1126
  reset: $,
1126
1127
  resetValidation: g,
1127
1128
  id: l.id,
1128
1129
  errors: s
1129
- }), (V, h) => (n(), i("div", {
1130
- class: v(["text-field-wrapper", { "has-value": e.modelValue }])
1130
+ }), (y, S) => (n(), i("div", {
1131
+ class: h(["text-field-wrapper", { "has-value": e.modelValue }])
1131
1132
  }, [
1132
- d("div", xt, [
1133
- d("input", {
1133
+ u("div", bt, [
1134
+ u("input", {
1134
1135
  id: e.id,
1135
1136
  type: e.type,
1136
1137
  value: e.modelValue,
1137
1138
  placeholder: " ",
1138
- onInput: S,
1139
- onBlur: E,
1139
+ onInput: k,
1140
+ onBlur: P,
1140
1141
  class: "text-field-input",
1141
1142
  autocomplete: e.autocomplete,
1142
1143
  maxlength: e.maxlength
1143
- }, null, 40, wt),
1144
+ }, null, 40, xt),
1144
1145
  e.label ? (n(), i("label", {
1145
1146
  key: 0,
1146
1147
  for: e.id,
1147
1148
  class: "text-field-label"
1148
- }, b(e.placeholder ? e.placeholder : e.label), 9, $t)) : r("", !0),
1149
- d("fieldset", {
1149
+ }, b(e.placeholder ? e.placeholder : e.label), 9, wt)) : d("", !0),
1150
+ u("fieldset", {
1150
1151
  "aria-hidden": "true",
1151
- class: v(["text-field-fieldset", { "has-error": s.value.length > 0 }])
1152
- }, [...h[0] || (h[0] = [
1153
- d("legend", { class: "text-field-legend" }, null, -1)
1152
+ class: h(["text-field-fieldset", { "has-error": s.value.length > 0 }])
1153
+ }, [...S[0] || (S[0] = [
1154
+ u("legend", { class: "text-field-legend" }, null, -1)
1154
1155
  ])], 2)
1155
1156
  ]),
1156
- d("div", St, [
1157
- (n(!0), i(F, null, O(s.value, (C, B) => (n(), i("p", {
1158
- key: B,
1157
+ u("div", $t, [
1158
+ (n(!0), i(O, null, R(s.value, (z, M) => (n(), i("p", {
1159
+ key: M,
1159
1160
  class: "error-message"
1160
- }, b(C), 1))), 128))
1161
+ }, b(z), 1))), 128))
1161
1162
  ])
1162
1163
  ], 2));
1163
1164
  }
1164
- }), kt = /* @__PURE__ */ p(_t, [["__scopeId", "data-v-02dabc6c"]]), It = ["aria-label"], Vt = { class: "tooltip-content" }, Ct = {
1165
+ }), _t = /* @__PURE__ */ p(St, [["__scopeId", "data-v-02dabc6c"]]), kt = ["aria-label"], It = { class: "tooltip-content" }, Vt = {
1165
1166
  __name: "Tooltip",
1166
1167
  props: {
1167
1168
  text: {
@@ -1180,15 +1181,15 @@ const xt = { class: "input-container" }, wt = ["id", "type", "value", "autocompl
1180
1181
  }
1181
1182
  },
1182
1183
  setup(e) {
1183
- const t = e, a = I(!1), l = () => {
1184
- t.disabled || (a.value = !0);
1184
+ const a = e, t = V(!1), l = () => {
1185
+ a.disabled || (t.value = !0);
1185
1186
  }, o = () => {
1186
- a.value = !1;
1187
+ t.value = !1;
1187
1188
  }, s = m(() => [
1188
1189
  "tooltip",
1189
- `tooltip--${t.location}`
1190
+ `tooltip--${a.location}`
1190
1191
  ]);
1191
- return (c, u) => (n(), i("div", {
1192
+ return (r, f) => (n(), i("div", {
1192
1193
  class: "tooltip-container",
1193
1194
  onMouseenter: l,
1194
1195
  onMouseleave: o,
@@ -1197,22 +1198,22 @@ const xt = { class: "input-container" }, wt = ["id", "type", "value", "autocompl
1197
1198
  role: "tooltip",
1198
1199
  "aria-label": e.text
1199
1200
  }, [
1200
- w(c.$slots, "default", {}, void 0, !0),
1201
- x(T, { name: "tooltip-fade" }, {
1202
- default: M(() => [
1203
- a.value ? (n(), i("div", {
1201
+ w(r.$slots, "default", {}, void 0, !0),
1202
+ x(N, { name: "tooltip-fade" }, {
1203
+ default: T(() => [
1204
+ t.value ? (n(), i("div", {
1204
1205
  key: 0,
1205
- class: v(s.value)
1206
+ class: h(s.value)
1206
1207
  }, [
1207
- d("div", Vt, b(e.text), 1),
1208
- u[0] || (u[0] = d("div", { class: "tooltip-arrow" }, null, -1))
1209
- ], 2)) : r("", !0)
1208
+ u("div", It, b(e.text), 1),
1209
+ f[0] || (f[0] = u("div", { class: "tooltip-arrow" }, null, -1))
1210
+ ], 2)) : d("", !0)
1210
1211
  ]),
1211
1212
  _: 1
1212
1213
  })
1213
- ], 40, It));
1214
+ ], 40, kt));
1214
1215
  }
1215
- }, Bt = /* @__PURE__ */ p(Ct, [["__scopeId", "data-v-a7533144"]]), zt = {
1216
+ }, Ct = /* @__PURE__ */ p(Vt, [["__scopeId", "data-v-a7533144"]]), Bt = {
1216
1217
  __name: "Overlay",
1217
1218
  props: {
1218
1219
  modelValue: {
@@ -1225,52 +1226,52 @@ const xt = { class: "input-container" }, wt = ["id", "type", "value", "autocompl
1225
1226
  }
1226
1227
  },
1227
1228
  emits: ["update:modelValue"],
1228
- setup(e, { emit: t }) {
1229
- const a = e, l = t;
1229
+ setup(e, { emit: a }) {
1230
+ const t = e, l = a;
1230
1231
  function o() {
1231
1232
  l("update:modelValue", !1);
1232
1233
  }
1233
- return A(() => a.modelValue, (s) => {
1234
- !a.contained && typeof document < "u" && (document.body.style.overflow = s ? "hidden" : "");
1235
- }), (s, c) => (n(), N(T, { name: "overlay-fade" }, {
1236
- default: M(() => [
1234
+ return A(() => t.modelValue, (s) => {
1235
+ !t.contained && typeof document < "u" && (document.body.style.overflow = s ? "hidden" : "");
1236
+ }), (s, r) => (n(), B(N, { name: "overlay-fade" }, {
1237
+ default: T(() => [
1237
1238
  e.modelValue ? (n(), i("div", {
1238
1239
  key: 0,
1239
- class: v(["overlay", { "overlay--contained": e.contained }]),
1240
- onClick: z(o, ["self"])
1240
+ class: h(["overlay", { "overlay--contained": e.contained }]),
1241
+ onClick: C(o, ["self"])
1241
1242
  }, [
1242
1243
  w(s.$slots, "default", {}, void 0, !0)
1243
- ], 2)) : r("", !0)
1244
+ ], 2)) : d("", !0)
1244
1245
  ]),
1245
1246
  _: 3
1246
1247
  }));
1247
1248
  }
1248
- }, Nt = /* @__PURE__ */ p(zt, [["__scopeId", "data-v-11b69f56"]]), Tt = (e) => {
1249
- e.component("Avatar", ee), e.component("Button", ne), e.component("Card", ie), e.component("Chip", de), e.component("Column", ue), e.component("DatePicker", xe), e.component("Dialog", ke), e.component("Divider", Ve), e.component("Icon", H), e.component("Overlay", Nt), e.component("Image", Me), e.component("ImageSlideShow", Le), e.component("Input", je), e.component("NavigationDrawer", Xe), e.component("Progress", Ze), e.component("ProgressSpinner", j), e.component("Row", tt), e.component("Select", dt), e.component("Spacer", mt), e.component("TextArea", gt), e.component("TextField", kt), e.component("Tooltip", Bt);
1250
- }, qt = { install: Tt };
1249
+ }, zt = /* @__PURE__ */ p(Bt, [["__scopeId", "data-v-11b69f56"]]), Nt = (e) => {
1250
+ e.component("Avatar", Z), e.component("Button", le), e.component("Card", se), e.component("Chip", re), e.component("Column", ue), e.component("DatePicker", be), e.component("Dialog", _e), e.component("Divider", Ie), e.component("Icon", q), e.component("Overlay", zt), e.component("Image", Te), e.component("ImageSlideShow", Pe), e.component("Input", He), e.component("NavigationDrawer", Ge), e.component("Progress", Qe), e.component("ProgressSpinner", H), e.component("Row", et), e.component("Select", rt), e.component("Spacer", ct), e.component("TextArea", vt), e.component("TextField", _t), e.component("Tooltip", Ct);
1251
+ }, Mt = { install: Nt };
1251
1252
  export {
1252
- ee as Avatar,
1253
- ne as Button,
1254
- ie as Card,
1255
- de as Chip,
1253
+ Z as Avatar,
1254
+ le as Button,
1255
+ se as Card,
1256
+ re as Chip,
1256
1257
  ue as Column,
1257
- xe as DatePicker,
1258
- ke as Dialog,
1259
- Ve as Divider,
1260
- H as Icon,
1261
- Me as Image,
1262
- Le as ImageSlideShow,
1263
- je as Input,
1264
- Xe as NavigationDrawer,
1265
- Nt as Overlay,
1266
- Ze as Progress,
1267
- j as ProgressSpinner,
1268
- tt as Row,
1269
- dt as Select,
1270
- mt as Spacer,
1271
- gt as TextArea,
1272
- kt as TextField,
1273
- Bt as Tooltip,
1274
- qt as default,
1275
- Tt as install
1258
+ be as DatePicker,
1259
+ _e as Dialog,
1260
+ Ie as Divider,
1261
+ q as Icon,
1262
+ Te as Image,
1263
+ Pe as ImageSlideshow,
1264
+ He as Input,
1265
+ Ge as NavigationDrawer,
1266
+ zt as Overlay,
1267
+ Qe as Progress,
1268
+ H as ProgressSpinner,
1269
+ et as Row,
1270
+ rt as Select,
1271
+ ct as Spacer,
1272
+ vt as TextArea,
1273
+ _t as TextField,
1274
+ Ct as Tooltip,
1275
+ Mt as default,
1276
+ Nt as install
1276
1277
  };