@prefabs.tech/vue3-ui 0.16.0 → 0.18.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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as _, useSlots as Se, createElementBlock as p, createCommentVNode as k, unref as Z, openBlock as d, normalizeClass as N, Fragment as H, renderList as le, createElementVNode as h, createVNode as re, withDirectives as bt, vShow as Ct, toDisplayString as O, Transition as gn, withCtx as q, createBlock as F, resolveDynamicComponent as _e, computed as W, renderSlot as I, createTextVNode as Q, onMounted as yt, nextTick as Je, getCurrentInstance as qt, watch as Ve, getCurrentScope as Vn, onScopeDispose as zn, hasInjectionContext as mn, inject as jn, toValue as Ce, shallowRef as Vt, watchEffect as Rn, onBeforeUnmount as vn, normalizeStyle as Ne, mergeProps as fe, createSlots as Hn, resolveComponent as bn, h as Qt, withModifiers as Zn } from "vue";
1
+ import { defineComponent as P, ref as B, useSlots as Se, createElementBlock as p, createCommentVNode as k, unref as Z, openBlock as d, normalizeClass as N, Fragment as H, renderList as le, createElementVNode as h, createVNode as re, withDirectives as bt, vShow as Ct, toDisplayString as O, Transition as gn, withCtx as q, createBlock as F, resolveDynamicComponent as Be, computed as W, renderSlot as I, createTextVNode as Q, onMounted as yt, nextTick as Je, getCurrentInstance as qt, watch as Ve, getCurrentScope as Vn, onScopeDispose as zn, hasInjectionContext as mn, inject as jn, toValue as Ce, shallowRef as Vt, watchEffect as Rn, onBeforeUnmount as vn, normalizeStyle as Ne, mergeProps as fe, createSlots as Hn, resolveComponent as bn, h as Qt, withModifiers as Zn } from "vue";
2
2
  const Gn = ["aria-orientation"], qn = ["data-expanded"], Wn = ["aria-expanded", "onClick"], Yn = ["src"], Un = {
3
3
  key: 0,
4
4
  class: "pane",
@@ -25,7 +25,7 @@ const Gn = ["aria-orientation"], qn = ["data-expanded"], Wn = ["aria-expanded",
25
25
  }
26
26
  },
27
27
  setup(e) {
28
- const t = e, n = _(t.defaultIndex), o = (l) => {
28
+ const t = e, n = B(t.defaultIndex), o = (l) => {
29
29
  !t.canSelfCollapse || n.value !== l ? n.value = l : n.value = -1;
30
30
  }, i = Se(), a = i?.default ? i.default().filter((l) => l?.props?.title) : null;
31
31
  return (l, r) => Z(a) ? (d(), p("div", {
@@ -59,7 +59,7 @@ const Gn = ["aria-orientation"], qn = ["data-expanded"], Wn = ["aria-expanded",
59
59
  }, {
60
60
  default: q(() => [
61
61
  u === n.value ? (d(), p("div", Un, [
62
- (d(), F(_e(s)))
62
+ (d(), F(Be(s)))
63
63
  ])) : k("", !0)
64
64
  ]),
65
65
  _: 2
@@ -228,7 +228,7 @@ const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef
228
228
  function s() {
229
229
  n("click");
230
230
  }
231
- return (u, f) => (d(), F(_e(e.to ? "a" : "button"), {
231
+ return (u, f) => (d(), F(Be(e.to ? "a" : "button"), {
232
232
  "aria-label": e.ariaLabel,
233
233
  class: N(a.value),
234
234
  disabled: !e.to && r.value,
@@ -389,9 +389,9 @@ const Et = /* @__PURE__ */ new WeakMap(), Lo = (...e) => {
389
389
  return o && Et.has(o) && n in Et.get(o) ? Et.get(o)[n] : jn(...e);
390
390
  }, Cn = typeof window < "u" && typeof document < "u";
391
391
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
392
- const Oo = Object.prototype.toString, Mo = (e) => Oo.call(e) === "[object Object]", Be = () => {
393
- }, _o = /* @__PURE__ */ Bo();
394
- function Bo() {
392
+ const Oo = Object.prototype.toString, Mo = (e) => Oo.call(e) === "[object Object]", _e = () => {
393
+ }, Bo = /* @__PURE__ */ _o();
394
+ function _o() {
395
395
  var e, t;
396
396
  return Cn && ((e = window?.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window?.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
397
397
  }
@@ -462,11 +462,11 @@ let en = !1;
462
462
  function Wt(e, t, n = {}) {
463
463
  const { window: o = St, ignore: i = [], capture: a = !0, detectIframe: l = !1, controls: r = !1 } = n;
464
464
  if (!o)
465
- return r ? { stop: Be, cancel: Be, trigger: Be } : Be;
466
- if (_o && !en) {
465
+ return r ? { stop: _e, cancel: _e, trigger: _e } : _e;
466
+ if (Bo && !en) {
467
467
  en = !0;
468
468
  const E = { passive: !0 };
469
- Array.from(o.document.body.children).forEach((D) => De(D, "click", Be, E)), De(o.document.documentElement, "click", Be, E);
469
+ Array.from(o.document.body.children).forEach((D) => De(D, "click", _e, E)), De(o.document.documentElement, "click", _e, E);
470
470
  }
471
471
  let s = !0;
472
472
  const u = (E) => Ce(i).some((D) => {
@@ -540,7 +540,7 @@ function zo() {
540
540
  return typeof e == "number" ? e : void 0;
541
541
  }
542
542
  function jo(e, t = {}) {
543
- const { window: n = St, ssrWidth: o = zo() } = t, i = Fo(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = _(typeof o == "number"), l = Vt(), r = Vt(!1), s = (u) => {
543
+ const { window: n = St, ssrWidth: o = zo() } = t, i = Fo(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = B(typeof o == "number"), l = Vt(), r = Vt(!1), s = (u) => {
544
544
  r.value = u.matches;
545
545
  };
546
546
  return Rn(() => {
@@ -565,7 +565,7 @@ function kt(e = {}) {
565
565
  listenOrientation: i = !0,
566
566
  includeScrollbar: a = !0,
567
567
  type: l = "inner"
568
- } = e, r = _(n), s = _(o), u = () => {
568
+ } = e, r = B(n), s = B(o), u = () => {
569
569
  if (t)
570
570
  if (l === "outer")
571
571
  r.value = t.outerWidth, s.value = t.outerHeight;
@@ -605,7 +605,7 @@ const Ro = { class: "modal-wrapper" }, Ho = {
605
605
  },
606
606
  emits: ["on:confirm", "on:close"],
607
607
  setup(e, { emit: t }) {
608
- const n = t, o = e, i = _();
608
+ const n = t, o = e, i = B();
609
609
  Wt(i, (s) => {
610
610
  r();
611
611
  });
@@ -738,7 +738,7 @@ const Ro = { class: "modal-wrapper" }, Ho = {
738
738
  }, Ko = (e) => e === "sessionStorage" ? sessionStorage : localStorage;
739
739
  let Tt = null;
740
740
  function Qo(e, t) {
741
- const n = _();
741
+ const n = B();
742
742
  return new Promise((o) => {
743
743
  Ve(
744
744
  () => e,
@@ -771,7 +771,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
771
771
  },
772
772
  emits: ["onClickOutside"],
773
773
  setup(e, { expose: t, emit: n }) {
774
- const o = e, i = n, a = Se(), l = _(null), r = _(null), s = _(null), u = _(!1), f = _("bottom"), c = _({ top: "0", left: "0" }), v = _([]), { width: $, height: w } = kt(), M = W(() => !!a.content);
774
+ const o = e, i = n, a = Se(), l = B(null), r = B(null), s = B(null), u = B(!1), f = B("bottom"), c = B({ top: "0", left: "0" }), v = B([]), { width: $, height: w } = kt(), M = W(() => !!a.content);
775
775
  vn(() => {
776
776
  window.removeEventListener("scroll", D), window.removeEventListener("resize", D), v.value.forEach(({ element: b, listener: C }) => {
777
777
  b.removeEventListener("scroll", C);
@@ -880,7 +880,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
880
880
  },
881
881
  emits: ["select"],
882
882
  setup(e, { emit: t }) {
883
- const n = e, o = t, i = _(), a = W(
883
+ const n = e, o = t, i = B(), a = W(
884
884
  () => n.menu.filter((r) => r.display !== !1)
885
885
  ), l = (r) => {
886
886
  r.disabled || (o("select", r), i.value.isVisible = !1);
@@ -1105,13 +1105,13 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
1105
1105
  }, Mi = {
1106
1106
  key: 1,
1107
1107
  class: "last-downloaded-at"
1108
- }, _i = {
1108
+ }, Bi = {
1109
1109
  key: 0,
1110
1110
  class: "file-actions"
1111
- }, Bi = {
1111
+ }, _i = {
1112
1112
  name: "FileCard"
1113
1113
  }, Ii = /* @__PURE__ */ P({
1114
- ...Bi,
1114
+ ..._i,
1115
1115
  props: {
1116
1116
  actionButtonsVisibility: {
1117
1117
  default: () => ({
@@ -1148,6 +1148,10 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
1148
1148
  type: Object,
1149
1149
  required: !0
1150
1150
  },
1151
+ locale: {
1152
+ default: void 0,
1153
+ type: String
1154
+ },
1151
1155
  messages: {
1152
1156
  default: () => {
1153
1157
  },
@@ -1191,7 +1195,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
1191
1195
  "on:view"
1192
1196
  ],
1193
1197
  setup(e, { emit: t }) {
1194
- const n = e, o = t, i = _(!1), a = _(!1), l = (f) => f.uploadedBy ? f.uploadedBy.givenName || f.uploadedBy.lastName ? `${f.uploadedBy.givenName || ""} ${f.uploadedBy.lastName || ""}` : f.uploadedBy.email : "—", r = (f) => {
1198
+ const n = e, o = t, i = B(!1), a = B(!1), l = (f) => f.uploadedBy ? f.uploadedBy.givenName || f.uploadedBy.lastName ? `${f.uploadedBy.givenName || ""} ${f.uploadedBy.lastName || ""}` : f.uploadedBy.email : "—", r = (f) => {
1195
1199
  switch (f) {
1196
1200
  case "archive":
1197
1201
  case "delete":
@@ -1265,7 +1269,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
1265
1269
  ])) : k("", !0),
1266
1270
  e.visibilityDetail.uploadedAt ? (d(), p("div", xi, [
1267
1271
  h("span", null, O(e.messages?.uploadedAtHeader || "Uploaded at"), 1),
1268
- h("span", null, O(Z(Xo)(e.file.uploadedAt)), 1)
1272
+ h("span", null, O(Z(Xo)(e.file.uploadedAt, e.locale)), 1)
1269
1273
  ])) : k("", !0)
1270
1274
  ])) : k("", !0),
1271
1275
  e.visibilityDetail.downloadCount || e.visibilityDetail.lastDownloadedAt ? (d(), p("div", Li, [
@@ -1275,13 +1279,13 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
1275
1279
  ])) : k("", !0),
1276
1280
  e.visibilityDetail.lastDownloadedAt ? (d(), p("div", Mi, [
1277
1281
  h("span", null, O(e.messages?.lastDownloadedAtHeader || "Last download:"), 1),
1278
- h("span", null, O(Z(Uo)(Number(e.file.lastDownloadedAt))), 1)
1282
+ h("span", null, O(Z(Uo)(Number(e.file.lastDownloadedAt), e.locale)), 1)
1279
1283
  ])) : k("", !0)
1280
1284
  ])) : k("", !0)
1281
1285
  ])) : k("", !0)
1282
1286
  ])
1283
1287
  ]),
1284
- e.visibilityDetail.actions ? (d(), p("div", _i, [
1288
+ e.visibilityDetail.actions ? (d(), p("div", Bi, [
1285
1289
  e.actionButtonsVisibility.archive ? (d(), F(ue, fe({ key: 0 }, e.archiveButtonProps, {
1286
1290
  label: e.messages?.archiveAction || "Archive",
1287
1291
  size: "small",
@@ -1456,6 +1460,10 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
1456
1460
  required: !0,
1457
1461
  type: Array
1458
1462
  },
1463
+ locale: {
1464
+ default: void 0,
1465
+ type: String
1466
+ },
1459
1467
  messages: {
1460
1468
  default: () => {
1461
1469
  },
@@ -1519,6 +1527,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
1519
1527
  "download-button-props": e.downloadButtonProps,
1520
1528
  "edit-description-button-props": e.editDescriptionButtonProps,
1521
1529
  file: l,
1530
+ locale: e.locale,
1522
1531
  messages: e.messages,
1523
1532
  "share-button-props": e.shareButtonProps,
1524
1533
  "show-thumbnail": e.showThumbnail,
@@ -1538,7 +1547,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
1538
1547
  ]),
1539
1548
  key: "0"
1540
1549
  } : void 0
1541
- ]), 1032, ["action-buttons-visibility", "allow-edit-description", "archive-button-props", "delete-button-props", "download-button-props", "edit-description-button-props", "file", "messages", "share-button-props", "show-thumbnail", "view-button-props", "visibility-detail", "onClick:editDescription", "onOn:archive", "onOn:delete", "onOn:download", "onOn:share", "onOn:view"]))), 128))
1550
+ ]), 1032, ["action-buttons-visibility", "allow-edit-description", "archive-button-props", "delete-button-props", "download-button-props", "edit-description-button-props", "file", "locale", "messages", "share-button-props", "show-thumbnail", "view-button-props", "visibility-detail", "onClick:editDescription", "onOn:archive", "onOn:delete", "onOn:download", "onOn:share", "onOn:view"]))), 128))
1542
1551
  ]));
1543
1552
  }
1544
1553
  }), Ni = { class: "field debounce-input" }, Fi = ["aria-label", "disabled", "placeholder", "type", "value"], Vi = {
@@ -1650,7 +1659,7 @@ const X0 = /* @__PURE__ */ et(zi, [["render", Ri]]), Hi = {
1650
1659
  },
1651
1660
  emits: ["close"],
1652
1661
  setup(e, { emit: t }) {
1653
- const n = t, o = Se(), i = _(!0), a = () => {
1662
+ const n = t, o = Se(), i = B(!0), a = () => {
1654
1663
  i.value = !1, n("close");
1655
1664
  };
1656
1665
  return (l, r) => bt((d(), p("div", {
@@ -1720,7 +1729,7 @@ const X0 = /* @__PURE__ */ et(zi, [["render", Ri]]), Hi = {
1720
1729
  },
1721
1730
  emits: ["on:close"],
1722
1731
  setup(e, { emit: t }) {
1723
- const n = _(), o = t, i = e, a = Se();
1732
+ const n = B(), o = t, i = e, a = Se();
1724
1733
  Wt(n, (r) => {
1725
1734
  i.dismissOnClickOut && l();
1726
1735
  });
@@ -1811,7 +1820,7 @@ const X0 = /* @__PURE__ */ et(zi, [["render", Ri]]), Hi = {
1811
1820
  h("div", n2, [
1812
1821
  h("div", o2, [
1813
1822
  h("div", i2, [
1814
- e.title ? (d(), F(_e(e.titleElement), { key: 0 }, {
1823
+ e.title ? (d(), F(Be(e.titleElement), { key: 0 }, {
1815
1824
  default: q(() => [
1816
1825
  Q(O(e.title), 1)
1817
1826
  ]),
@@ -1979,7 +1988,7 @@ var ke = ye(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), tt = ye(/E
1979
1988
  function A(e, t, n) {
1980
1989
  e.addEventListener(t, n, !ke && $n);
1981
1990
  }
1982
- function B(e, t, n) {
1991
+ function _(e, t, n) {
1983
1992
  e.removeEventListener(t, n, !ke && $n);
1984
1993
  }
1985
1994
  function ht(e, t) {
@@ -2326,8 +2335,8 @@ var T2 = ["evt"], te = function(t, n) {
2326
2335
  oldDraggableIndex: Xe,
2327
2336
  newIndex: ie,
2328
2337
  newDraggableIndex: Ee,
2329
- hideGhostForTarget: _n,
2330
- unhideGhostForTarget: Bn,
2338
+ hideGhostForTarget: Bn,
2339
+ unhideGhostForTarget: _n,
2331
2340
  cloneNowHidden: function() {
2332
2341
  Te = !0;
2333
2342
  },
@@ -2355,7 +2364,7 @@ function ee(e) {
2355
2364
  newDraggableIndex: Ee
2356
2365
  }, e));
2357
2366
  }
2358
- var m, j, L, z, Me, ut, R, Te, Fe, ie, Xe, Ee, it, X, Pe = !1, pt = !1, gt = [], Le, ce, Ot, Mt, un, dn, Ge, Ae, Ke, Qe = !1, at = !1, dt, K, _t = [], zt = !1, mt = [], $t = typeof document < "u", lt = kn, cn = tt || ke ? "cssFloat" : "float", x2 = $t && !b2 && !kn && "draggable" in document.createElement("div"), Ln = function() {
2367
+ var m, j, L, z, Me, ut, R, Te, Fe, ie, Xe, Ee, it, X, Pe = !1, pt = !1, gt = [], Le, ce, Ot, Mt, un, dn, Ge, Ae, Ke, Qe = !1, at = !1, dt, K, Bt = [], zt = !1, mt = [], $t = typeof document < "u", lt = kn, cn = tt || ke ? "cssFloat" : "float", x2 = $t && !b2 && !kn && "draggable" in document.createElement("div"), Ln = function() {
2359
2368
  if ($t) {
2360
2369
  if (ke)
2361
2370
  return !1;
@@ -2406,9 +2415,9 @@ var m, j, L, z, Me, ut, R, Te, Fe, ie, Xe, Ee, it, X, Pe = !1, pt = !1, gt = [],
2406
2415
  (!i || st(i) != "object") && (i = {
2407
2416
  name: i
2408
2417
  }), o.name = i.name, o.checkPull = n(i.pull, !0), o.checkPut = n(i.put), o.revertClone = i.revertClone, t.group = o;
2409
- }, _n = function() {
2410
- !Ln && L && T(L, "display", "none");
2411
2418
  }, Bn = function() {
2419
+ !Ln && L && T(L, "display", "none");
2420
+ }, _n = function() {
2412
2421
  !Ln && L && T(L, "display", "");
2413
2422
  };
2414
2423
  $t && document.addEventListener("click", function(e) {
@@ -2554,7 +2563,7 @@ x.prototype = /** @lends Sortable.prototype */
2554
2563
  originalEvent: t
2555
2564
  }), oe(m, l.chosenClass, !0);
2556
2565
  }, l.ignore.split(",").forEach(function(f) {
2557
- En(m, f.trim(), Bt);
2566
+ En(m, f.trim(), _t);
2558
2567
  }), A(r, "dragover", Oe), A(r, "mousemove", Oe), A(r, "touchmove", Oe), A(r, "mouseup", i._onDrop), A(r, "touchend", i._onDrop), A(r, "touchcancel", i._onDrop), an && this.nativeDraggable && (this.options.touchStartThreshold = 4, m.draggable = !0), te("delayStart", this, {
2559
2568
  evt: t
2560
2569
  }), l.delay && (!l.delayOnTouchOnly || n) && (!this.nativeDraggable || !(tt || ke))) {
@@ -2572,11 +2581,11 @@ x.prototype = /** @lends Sortable.prototype */
2572
2581
  Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2573
2582
  },
2574
2583
  _disableDelayedDrag: function() {
2575
- m && Bt(m), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2584
+ m && _t(m), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2576
2585
  },
2577
2586
  _disableDelayedDragEvents: function() {
2578
2587
  var t = this.el.ownerDocument;
2579
- B(t, "mouseup", this._disableDelayedDrag), B(t, "touchend", this._disableDelayedDrag), B(t, "touchcancel", this._disableDelayedDrag), B(t, "mousemove", this._delayedDragTouchMoveHandler), B(t, "touchmove", this._delayedDragTouchMoveHandler), B(t, "pointermove", this._delayedDragTouchMoveHandler);
2588
+ _(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
2580
2589
  },
2581
2590
  _triggerDragStart: function(t, n) {
2582
2591
  n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? A(document, "pointermove", this._onTouchMove) : n ? A(document, "touchmove", this._onTouchMove) : A(document, "mousemove", this._onTouchMove) : (A(m, "dragend", this), A(z, "dragstart", this._onDragStart));
@@ -2603,7 +2612,7 @@ x.prototype = /** @lends Sortable.prototype */
2603
2612
  },
2604
2613
  _emulateDragOver: function() {
2605
2614
  if (ce) {
2606
- this._lastX = ce.clientX, this._lastY = ce.clientY, _n();
2615
+ this._lastX = ce.clientX, this._lastY = ce.clientY, Bn();
2607
2616
  for (var t = document.elementFromPoint(ce.clientX, ce.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(ce.clientX, ce.clientY), t !== n); )
2608
2617
  n = t;
2609
2618
  if (m.parentNode[ae]._isOutsideThisEl(t), n)
@@ -2620,12 +2629,12 @@ x.prototype = /** @lends Sortable.prototype */
2620
2629
  }
2621
2630
  t = n;
2622
2631
  } while (n = n.parentNode);
2623
- Bn();
2632
+ _n();
2624
2633
  }
2625
2634
  },
2626
2635
  _onTouchMove: function(t) {
2627
2636
  if (Le) {
2628
- var n = this.options, o = n.fallbackTolerance, i = n.fallbackOffset, a = t.touches ? t.touches[0] : t, l = L && ze(L, !0), r = L && l && l.a, s = L && l && l.d, u = lt && K && sn(K), f = (a.clientX - Le.clientX + i.x) / (r || 1) + (u ? u[0] - _t[0] : 0) / (r || 1), c = (a.clientY - Le.clientY + i.y) / (s || 1) + (u ? u[1] - _t[1] : 0) / (s || 1);
2637
+ var n = this.options, o = n.fallbackTolerance, i = n.fallbackOffset, a = t.touches ? t.touches[0] : t, l = L && ze(L, !0), r = L && l && l.a, s = L && l && l.d, u = lt && K && sn(K), f = (a.clientX - Le.clientX + i.x) / (r || 1) + (u ? u[0] - Bt[0] : 0) / (r || 1), c = (a.clientY - Le.clientY + i.y) / (s || 1) + (u ? u[1] - Bt[1] : 0) / (s || 1);
2629
2638
  if (!x.active && !Pe) {
2630
2639
  if (o && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < o)
2631
2640
  return;
@@ -2652,7 +2661,7 @@ x.prototype = /** @lends Sortable.prototype */
2652
2661
  if (lt) {
2653
2662
  for (K = t; T(K, "position") === "static" && T(K, "transform") === "none" && K !== document; )
2654
2663
  K = K.parentNode;
2655
- K !== document.body && K !== document.documentElement ? (K === document && (K = ge()), n.top += K.scrollTop, n.left += K.scrollLeft) : K = ge(), _t = sn(K);
2664
+ K !== document.body && K !== document.documentElement ? (K === document && (K = ge()), n.top += K.scrollTop, n.left += K.scrollLeft) : K = ge(), Bt = sn(K);
2656
2665
  }
2657
2666
  L = m.cloneNode(!0), oe(L, o.ghostClass, !1), oe(L, o.fallbackClass, !0), oe(L, o.dragClass, !0), T(L, "transition", ""), T(L, "transform", ""), T(L, "box-sizing", "border-box"), T(L, "margin", 0), T(L, "top", n.top), T(L, "left", n.left), T(L, "width", n.width), T(L, "height", n.height), T(L, "opacity", "0.8"), T(L, "position", lt ? "absolute" : "fixed"), T(L, "zIndex", "100000"), T(L, "pointerEvents", "none"), x.ghost = L, t.appendChild(L), T(L, "transform-origin", un / parseInt(L.style.width) * 100 + "% " + dn / parseInt(L.style.height) * 100 + "%");
2658
2667
  }
@@ -2670,7 +2679,7 @@ x.prototype = /** @lends Sortable.prototype */
2670
2679
  sortable: o,
2671
2680
  name: "clone"
2672
2681
  }));
2673
- }), !n && oe(m, a.dragClass, !0), n ? (pt = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (B(document, "mouseup", o._onDrop), B(document, "touchend", o._onDrop), B(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", a.setData && a.setData.call(o, i, m)), A(document, "drop", o), T(m, "transform", "translateZ(0)")), Pe = !0, o._dragStartId = ct(o._dragStarted.bind(o, n, t)), A(document, "selectstart", o), Ge = !0, Ye && T(document.body, "user-select", "none");
2682
+ }), !n && oe(m, a.dragClass, !0), n ? (pt = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (_(document, "mouseup", o._onDrop), _(document, "touchend", o._onDrop), _(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", a.setData && a.setData.call(o, i, m)), A(document, "drop", o), T(m, "transform", "translateZ(0)")), Pe = !0, o._dragStartId = ct(o._dragStarted.bind(o, n, t)), A(document, "selectstart", o), Ge = !0, Ye && T(document.body, "user-select", "none");
2674
2683
  },
2675
2684
  // Returns true - if no further action is needed (either inserted or another condition)
2676
2685
  _onDragOver: function(t) {
@@ -2751,7 +2760,7 @@ x.prototype = /** @lends Sortable.prototype */
2751
2760
  $e = y === 1;
2752
2761
  var ot = rt(z, n, m, i, o, a, t, $e);
2753
2762
  if (ot !== !1)
2754
- return (ot === 1 || ot === -1) && ($e = ot === 1), zt = !0, setTimeout(B2, 30), D(), $e && !Re ? n.appendChild(m) : o.parentNode.insertBefore(m, $e ? Re : o), ne && Tn(ne, 0, ve - ne.scrollTop), j = m.parentNode, V !== void 0 && !at && (dt = Math.abs(V - Y(o)[he])), C(), b(!0);
2763
+ return (ot === 1 || ot === -1) && ($e = ot === 1), zt = !0, setTimeout(_2, 30), D(), $e && !Re ? n.appendChild(m) : o.parentNode.insertBefore(m, $e ? Re : o), ne && Tn(ne, 0, ve - ne.scrollTop), j = m.parentNode, V !== void 0 && !at && (dt = Math.abs(V - Y(o)[he])), C(), b(!0);
2755
2764
  }
2756
2765
  if (n.contains(m))
2757
2766
  return b(!1);
@@ -2760,11 +2769,11 @@ x.prototype = /** @lends Sortable.prototype */
2760
2769
  },
2761
2770
  _ignoreWhileAnimating: null,
2762
2771
  _offMoveEvents: function() {
2763
- B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover", Oe), B(document, "mousemove", Oe), B(document, "touchmove", Oe);
2772
+ _(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Oe), _(document, "mousemove", Oe), _(document, "touchmove", Oe);
2764
2773
  },
2765
2774
  _offUpEvents: function() {
2766
2775
  var t = this.el.ownerDocument;
2767
- B(t, "mouseup", this._onDrop), B(t, "touchend", this._onDrop), B(t, "pointerup", this._onDrop), B(t, "touchcancel", this._onDrop), B(document, "selectstart", this);
2776
+ _(t, "mouseup", this._onDrop), _(t, "touchend", this._onDrop), _(t, "pointerup", this._onDrop), _(t, "touchcancel", this._onDrop), _(document, "selectstart", this);
2768
2777
  },
2769
2778
  _onDrop: function(t) {
2770
2779
  var n = this.el, o = this.options;
@@ -2774,7 +2783,7 @@ x.prototype = /** @lends Sortable.prototype */
2774
2783
  this._nulling();
2775
2784
  return;
2776
2785
  }
2777
- Pe = !1, at = !1, Qe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), jt(this.cloneId), jt(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ye && T(document.body, "user-select", ""), T(m, "transform", ""), t && (Ge && (t.cancelable && t.preventDefault(), !o.dropBubble && t.stopPropagation()), L && L.parentNode && L.parentNode.removeChild(L), (z === j || X && X.lastPutMode !== "clone") && R && R.parentNode && R.parentNode.removeChild(R), m && (this.nativeDraggable && B(m, "dragend", this), Bt(m), m.style["will-change"] = "", Ge && !Pe && oe(m, X ? X.options.ghostClass : this.options.ghostClass, !1), oe(m, this.options.chosenClass, !1), ee({
2786
+ Pe = !1, at = !1, Qe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), jt(this.cloneId), jt(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ye && T(document.body, "user-select", ""), T(m, "transform", ""), t && (Ge && (t.cancelable && t.preventDefault(), !o.dropBubble && t.stopPropagation()), L && L.parentNode && L.parentNode.removeChild(L), (z === j || X && X.lastPutMode !== "clone") && R && R.parentNode && R.parentNode.removeChild(R), m && (this.nativeDraggable && _(m, "dragend", this), _t(m), m.style["will-change"] = "", Ge && !Pe && oe(m, X ? X.options.ghostClass : this.options.ghostClass, !1), oe(m, this.options.chosenClass, !1), ee({
2778
2787
  sortable: this,
2779
2788
  name: "unchoose",
2780
2789
  toEl: j,
@@ -2833,7 +2842,7 @@ x.prototype = /** @lends Sortable.prototype */
2833
2842
  break;
2834
2843
  case "dragenter":
2835
2844
  case "dragover":
2836
- m && (this._onDragOver(t), _2(t));
2845
+ m && (this._onDragOver(t), B2(t));
2837
2846
  break;
2838
2847
  case "selectstart":
2839
2848
  t.preventDefault();
@@ -2897,7 +2906,7 @@ x.prototype = /** @lends Sortable.prototype */
2897
2906
  destroy: function() {
2898
2907
  te("destroy", this);
2899
2908
  var t = this.el;
2900
- t[ae] = null, B(t, "mousedown", this._onTapStart), B(t, "touchstart", this._onTapStart), B(t, "pointerdown", this._onTapStart), this.nativeDraggable && (B(t, "dragover", this), B(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
2909
+ t[ae] = null, _(t, "mousedown", this._onTapStart), _(t, "touchstart", this._onTapStart), _(t, "pointerdown", this._onTapStart), this.nativeDraggable && (_(t, "dragover", this), _(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
2901
2910
  n.removeAttribute("draggable");
2902
2911
  }), this._onDrop(), this._disableDelayedDragEvents(), gt.splice(gt.indexOf(this.el), 1), this.el = t = null;
2903
2912
  },
@@ -2918,7 +2927,7 @@ x.prototype = /** @lends Sortable.prototype */
2918
2927
  }
2919
2928
  }
2920
2929
  };
2921
- function _2(e) {
2930
+ function B2(e) {
2922
2931
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
2923
2932
  }
2924
2933
  function rt(e, t, n, o, i, a, l, r) {
@@ -2928,10 +2937,10 @@ function rt(e, t, n, o, i, a, l, r) {
2928
2937
  cancelable: !0
2929
2938
  }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = e, s.dragged = n, s.draggedRect = o, s.related = i || t, s.relatedRect = a || Y(t), s.willInsertAfter = r, s.originalEvent = l, e.dispatchEvent(s), f && (c = f.call(u, s, l)), c;
2930
2939
  }
2931
- function Bt(e) {
2940
+ function _t(e) {
2932
2941
  e.draggable = !1;
2933
2942
  }
2934
- function B2() {
2943
+ function _2() {
2935
2944
  zt = !1;
2936
2945
  }
2937
2946
  function I2(e, t, n) {
@@ -2981,7 +2990,7 @@ $t && A(document, "touchmove", function(e) {
2981
2990
  });
2982
2991
  x.utils = {
2983
2992
  on: A,
2984
- off: B,
2993
+ off: _,
2985
2994
  css: T,
2986
2995
  find: En,
2987
2996
  is: function(t, n) {
@@ -3037,7 +3046,7 @@ function z2() {
3037
3046
  !this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
3038
3047
  },
3039
3048
  drop: function() {
3040
- this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), fn(), ft(), S2();
3049
+ this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), fn(), ft(), S2();
3041
3050
  },
3042
3051
  nulling: function() {
3043
3052
  vt = Rt = qe = Ht = We = It = At = null, G.length = 0;
@@ -3473,7 +3482,7 @@ const Q2 = {
3473
3482
  ])
3474
3483
  ], -1)),
3475
3484
  h("div", null, [
3476
- l.render ? (d(), F(_e(l.render(l.data)), { key: 0 })) : (d(), p(H, { key: 1 }, [
3485
+ l.render ? (d(), F(Be(l.render(l.data)), { key: 0 })) : (d(), p(H, { key: 1 }, [
3477
3486
  Q(O(l.data), 1)
3478
3487
  ], 64))
3479
3488
  ])
@@ -3627,7 +3636,7 @@ const Q2 = {
3627
3636
  },
3628
3637
  emits: ["complete"],
3629
3638
  setup(e, { emit: t }) {
3630
- const n = e, o = t, i = _(0), a = _(!1), l = _(!0), r = () => {
3639
+ const n = e, o = t, i = B(0), a = B(!1), l = B(!0), r = () => {
3631
3640
  i.value < n.steps.length - 1 ? (i.value++, l.value = !1) : o("complete");
3632
3641
  }, s = () => {
3633
3642
  i.value > 0 && (i.value--, a.value = !1), i.value || (l.value = !0);
@@ -3710,7 +3719,7 @@ const Q2 = {
3710
3719
  }
3711
3720
  },
3712
3721
  setup(e) {
3713
- const t = Se(), n = e, o = _(n.defaultIndex), i = (r) => {
3722
+ const t = Se(), n = e, o = B(n.defaultIndex), i = (r) => {
3714
3723
  o.value = r;
3715
3724
  }, a = t?.default ? t.default().filter((r) => r?.props?.title) : [], l = W(() => a[o.value]);
3716
3725
  return (r, s) => Z(a).length ? (d(), p("div", {
@@ -3748,7 +3757,7 @@ const Q2 = {
3748
3757
  }, {
3749
3758
  default: q(() => [
3750
3759
  h("div", k0, [
3751
- (d(), F(_e(l.value)))
3760
+ (d(), F(Be(l.value)))
3752
3761
  ])
3753
3762
  ]),
3754
3763
  _: 1
@@ -3771,10 +3780,10 @@ const Q2 = {
3771
3780
  break;
3772
3781
  }
3773
3782
  return t;
3774
- }, D0 = ["id"], T0 = ["aria-orientation"], x0 = ["id", "aria-label", "aria-selected", "onClick"], L0 = ["src"], O0 = ["title"], M0 = ["onClick"], _0 = { role: "tabpanel" }, B0 = {
3783
+ }, D0 = ["id"], T0 = ["aria-orientation"], x0 = ["id", "aria-label", "aria-selected", "onClick"], L0 = ["src"], O0 = ["title"], M0 = ["onClick"], B0 = { role: "tabpanel" }, _0 = {
3775
3784
  name: "TabView"
3776
3785
  }, aa = /* @__PURE__ */ P({
3777
- ...B0,
3786
+ ..._0,
3778
3787
  props: {
3779
3788
  activeKey: {
3780
3789
  type: String,
@@ -3820,7 +3829,7 @@ const Q2 = {
3820
3829
  "update:visibleTabs"
3821
3830
  ],
3822
3831
  setup(e, { expose: t, emit: n }) {
3823
- const o = e, i = n, a = Se(), l = _(o.activeKey), r = _(!1), s = _(
3832
+ const o = e, i = n, a = Se(), l = B(o.activeKey), r = B(!1), s = B(
3824
3833
  o.visibleTabs?.length ? o.visibleTabs : o.tabs.map((g) => g.key)
3825
3834
  ), u = W(() => c.value.find((g) => g.key === l.value)?.children || $.value.find(
3826
3835
  (g) => typeof g == "object" && g !== null && "props" in g && g.props?.key === l.value
@@ -3931,13 +3940,13 @@ const Q2 = {
3931
3940
  ]), 8, M0)) : k("", !0)
3932
3941
  ], 10, x0))), 128))
3933
3942
  ], 8, T0),
3934
- h("div", _0, [
3943
+ h("div", B0, [
3935
3944
  typeof u.value == "string" ? (d(), p(H, { key: 0 }, [
3936
3945
  Q(O(u.value), 1)
3937
3946
  ], 64)) : (d(), p(H, { key: 1 }, [
3938
3947
  e.lazy ? (d(), p(H, { key: 1 }, [
3939
- u.value ? (d(), F(_e(u.value), { key: 0 })) : k("", !0)
3940
- ], 64)) : (d(!0), p(H, { key: 0 }, le($.value, (y, V) => bt((d(), F(_e(y), {
3948
+ u.value ? (d(), F(Be(u.value), { key: 0 })) : k("", !0)
3949
+ ], 64)) : (d(!0), p(H, { key: 0 }, le($.value, (y, V) => bt((d(), F(Be(y), {
3941
3950
  key: `slot-component-${V}`
3942
3951
  })), [
3943
3952
  [Ct, y === u.value]
@@ -3976,7 +3985,7 @@ const Q2 = {
3976
3985
  }
3977
3986
  },
3978
3987
  setup(e) {
3979
- const t = e, n = _(null), o = _(null), i = _(null), a = _(!1), l = _(), r = _({ top: "0", left: "0" }), s = _([]), u = _(!1), f = _(null), c = Se(), { width: v, height: $ } = kt(), w = W(() => !!c.content);
3988
+ const t = e, n = B(null), o = B(null), i = B(null), a = B(!1), l = B(), r = B({ top: "0", left: "0" }), s = B([]), u = B(!1), f = B(null), c = Se(), { width: v, height: $ } = kt(), w = W(() => !!c.content);
3980
3989
  vn(() => {
3981
3990
  window.removeEventListener("resize", D), s.value.forEach(({ element: C, listener: g }) => {
3982
3991
  C.removeEventListener("scroll", g);
@@ -1,4 +1,4 @@
1
- (function(N,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(N=typeof globalThis<"u"?globalThis:N||self,e(N.PrefabsTechVue3UI={},N.Vue))})(this,function(N,e){"use strict";const Cn=["aria-orientation"],bn=["data-expanded"],yn=["aria-expanded","onClick"],wn=["src"],kn={key:0,class:"pane",role:"region"},En={name:"Accordion"},Bn=e.defineComponent({...En,props:{canSelfCollapse:{default:!1,required:!1,type:Boolean},defaultIndex:{default:0,required:!1,type:Number},direction:{default:"vertical",required:!1,type:String}},setup(t){const n=t,o=e.ref(n.defaultIndex),i=r=>{!n.canSelfCollapse||o.value!==r?o.value=r:o.value=-1},a=e.useSlots(),l=a?.default?a.default().filter(r=>r?.props?.title):null;return(r,s)=>e.unref(l)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["accordion",n.direction]),"aria-orientation":n.direction},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(c,d)=>(e.openBlock(),e.createElementBlock("section",{key:d,"data-expanded":d===o.value},[e.createElementVNode("header",null,[e.createElementVNode("button",{tabindex:"0",type:"button","aria-expanded":d===o.value,onClick:u=>i(d)},[e.withDirectives(e.createElementVNode("img",{src:c?.props?.icon,class:"icon"},null,8,wn),[[e.vShow,c?.props?.icon]]),e.createElementVNode("span",null,e.toDisplayString(c?.props?.title),1)],8,yn)]),e.createVNode(e.Transition,{appear:"",name:"expand"},{default:e.withCtx(()=>[d===o.value?(e.openBlock(),e.createElementBlock("div",kn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c)))])):e.createCommentVNode("",!0)]),_:2},1024)],8,bn))),128))],10,Cn)):e.createCommentVNode("",!0)}}),Sn={key:0,class:"icon-left"},Dn={key:1,class:"label"},Nn={key:2,class:"icon-right"},Vn={name:"BadgeComponent"},Vt=e.defineComponent({...Vn,props:{iconLeft:{default:null,type:String},iconRight:{default:null,type:String},label:{default:null,type:String},rounded:Boolean,severity:{default:"primary",type:String,validator:t=>["primary","secondary","alternate","success","danger","warning"].includes(t)}},setup(t){const n=t,o=e.useSlots(),i=e.computed(()=>["badge",n.rounded&&"rounded",n.severity].filter(Boolean).join(" "));return(a,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(i.value)},[t.iconLeft||e.unref(o).iconLeft?(e.openBlock(),e.createElementBlock("span",Sn,[e.renderSlot(a.$slots,"iconLeft",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(t.iconLeft)},null,2)])])):e.createCommentVNode("",!0),t.label?(e.openBlock(),e.createElementBlock("div",Dn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.iconRight||e.unref(o).iconRight?(e.openBlock(),e.createElementBlock("span",Nn,[e.renderSlot(a.$slots,"iconRight",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(t.iconRight)},null,2)])])):e.createCommentVNode("",!0)],2))}}),$n={name:"LoadingIcon"},ke=(t,n)=>{const o=t.__vccOpts||t;for(const[i,a]of n)o[i]=a;return o},Tn={class:"loading"};function vn(t,n,o,i,a,l){return e.openBlock(),e.createElementBlock("div",Tn,"Loading")}const Ee=ke($n,[["render",vn],["__scopeId","data-v-4c97cef5"]]),Ln={key:0,class:"icon-left"},xn={key:1,class:"label"},On={key:2,class:"icon-right"},Mn={name:"ButtonElement"},H=e.defineComponent({...Mn,props:{ariaLabel:{default:"button",type:String},disabled:{default:!1,type:Boolean},iconLeft:{default:null,type:[String,Boolean]},iconRight:{default:null,type:[String,Boolean]},label:{default:null,type:String},loading:{default:!1,type:Boolean},rounded:{default:!1,type:Boolean},severity:{default:"primary",type:String,validator:t=>["primary","secondary","alternate","success","danger","warning"].includes(t)},size:{default:"medium",type:String,validator:t=>["small","medium","large"].includes(t)},to:{default:null,type:String},title:{default:null,type:String},variant:{default:"filled",type:String,validator:t=>["outlined","filled","textOnly"].includes(t)}},emits:["click"],setup(t,{emit:n}){const o=n,i=t,a=e.useSlots(),l=e.computed(()=>["button",i.severity,i.size,i.variant==="textOnly"?"text-only":i.variant,!(i.label||a.label)&&"icon-only",i.loading&&"loading",i.rounded&&"rounded",s.value&&"disabled"].filter(Boolean).join(" ")),r=e.computed(()=>i.to?"link":"button"),s=e.computed(()=>i.disabled||i.loading);function c(){o("click")}return(d,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.to?"a":"button"),{"aria-label":t.ariaLabel,class:e.normalizeClass(l.value),disabled:!t.to&&s.value,href:t.to&&!s.value?t.to:null,role:r.value,title:t.title,onClick:u[0]||(u[0]=f=>!t.to&&c())},{default:e.withCtx(()=>[t.iconLeft||e.unref(a).iconLeft?(e.openBlock(),e.createElementBlock("span",Ln,[e.renderSlot(d.$slots,"iconLeft",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(t.iconLeft)},null,2)])])):e.createCommentVNode("",!0),d.$slots.label||t.label?(e.openBlock(),e.createElementBlock("div",xn,[e.renderSlot(d.$slots,"label",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])])):e.createCommentVNode("",!0),t.iconRight||e.unref(a).iconRight?(e.openBlock(),e.createElementBlock("span",On,[e.renderSlot(d.$slots,"iconRight",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(t.iconRight)},null,2)])])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(Ee,{key:3,class:"loading-button"})):e.createCommentVNode("",!0)]),_:3},8,["aria-label","class","disabled","href","role","title"]))}}),_n={class:"card"},In={key:0,class:"card-header"},Pn={class:"card-title"},An={class:"card-body"},Fn={key:1,class:"card-footer"},zn={name:"Card"},$t=e.defineComponent({...zn,props:{title:{type:String,default:void 0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",_n,[n.$slots.header||t.title?(e.openBlock(),e.createElementBlock("header",In,[e.renderSlot(n.$slots,"header",{},()=>[e.createElementVNode("h3",Pn,e.toDisplayString(t.title),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",An,[e.renderSlot(n.$slots,"default")]),n.$slots.footer?(e.openBlock(),e.createElementBlock("footer",Fn,[e.renderSlot(n.$slots,"footer")])):e.createCommentVNode("",!0)]))}}),jn={class:"label"},Rn={class:"value"},Hn={name:"DataElement"},Zn=e.defineComponent({...Hn,props:{caption:{type:String,required:!0},direction:{default:"vertical",type:String,validator:t=>["horizontal","vertical"].includes(t)},mode:{default:"attr",type:String,validator:t=>["attr","stat"].includes(t)},value:{default:"",type:[String,Number]}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["data",{"data-stat":t.mode==="stat"},`direction-${t.direction}`])},[e.createElementVNode("div",jn,[e.renderSlot(n.$slots,"caption",{},()=>[e.createTextVNode(e.toDisplayString(t.caption),1)])]),e.createElementVNode("div",Rn,[e.renderSlot(n.$slots,"value",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)])])],2))}}),Gn=["disabled"],qn={class:"label"},Wn={name:"LoadingButton"},Yn=e.defineComponent({...Wn,props:{disabled:{type:Boolean,default:!1},label:{type:String,required:!0},loading:{type:Boolean,default:!1}},emits:["click"],setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("button",{disabled:t.disabled||t.loading,class:e.normalizeClass(["loading-button",{loading:t.loading}]),onClick:o[0]||(o[0]=i=>n.$emit("click"))},[e.createElementVNode("div",qn,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)]),t.loading?(e.openBlock(),e.createBlock(Ee,{key:0})):e.createCommentVNode("",!0)],10,Gn))}}),Tt=ke(Yn,[["__scopeId","data-v-3fdbc7b3"]]),Un={name:"SubPane"},Xn={class:"sub-pane"};function Kn(t,n,o,i,a,l){return e.openBlock(),e.createElementBlock("div",Xn)}const Qn=ke(Un,[["render",Kn],["__scopeId","data-v-bf8003ec"]]);function Jn(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}const et=new WeakMap,eo=(...t)=>{var n;const o=t[0],i=(n=e.getCurrentInstance())==null?void 0:n.proxy;if(i==null&&!e.hasInjectionContext())throw new Error("injectLocal must be called in setup");return i&&et.has(i)&&o in et.get(i)?et.get(i)[o]:e.inject(...t)},vt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const to=Object.prototype.toString,no=t=>to.call(t)==="[object Object]",he=()=>{},oo=io();function io(){var t,n;return vt&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window?.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Lt(t){return t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t)}function ao(t){return e.getCurrentInstance()}function tt(t){return Array.isArray(t)?t:[t]}function lo(t,n=!0,o){ao()?e.onMounted(t,o):n?t():e.nextTick(t)}function ro(t,n,o){return e.watch(t,n,{...o,immediate:!0})}const Ie=vt?window:void 0;function Be(t){var n;const o=e.toValue(t);return(n=o?.$el)!=null?n:o}function le(...t){const n=[],o=()=>{n.forEach(s=>s()),n.length=0},i=(s,c,d,u)=>(s.addEventListener(c,d,u),()=>s.removeEventListener(c,d,u)),a=e.computed(()=>{const s=tt(e.toValue(t[0])).filter(c=>c!=null);return s.every(c=>typeof c!="string")?s:void 0}),l=ro(()=>{var s,c;return[(c=(s=a.value)==null?void 0:s.map(d=>Be(d)))!=null?c:[Ie].filter(d=>d!=null),tt(e.toValue(a.value?t[1]:t[0])),tt(e.unref(a.value?t[2]:t[1])),e.toValue(a.value?t[3]:t[2])]},([s,c,d,u])=>{if(o(),!s?.length||!c?.length||!d?.length)return;const f=no(u)?{...u}:u;n.push(...s.flatMap(p=>c.flatMap(k=>d.map(y=>i(p,k,y,f)))))},{flush:"post"}),r=()=>{l(),o()};return Jn(o),r}let xt=!1;function nt(t,n,o={}){const{window:i=Ie,ignore:a=[],capture:l=!0,detectIframe:r=!1,controls:s=!1}=o;if(!i)return s?{stop:he,cancel:he,trigger:he}:he;if(oo&&!xt){xt=!0;const E={passive:!0};Array.from(i.document.body.children).forEach(D=>le(D,"click",he,E)),le(i.document.documentElement,"click",he,E)}let c=!0;const d=E=>e.toValue(a).some(D=>{if(typeof D=="string")return Array.from(i.document.querySelectorAll(D)).some(g=>g===E.target||E.composedPath().includes(g));{const g=Be(D);return g&&(E.target===g||E.composedPath().includes(g))}});function u(E){const D=e.toValue(E);return D&&D.$.subTree.shapeFlag===16}function f(E,D){const g=e.toValue(E),C=g.$.subTree&&g.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(m=>m.el===D.target||D.composedPath().includes(m.el))}const p=E=>{const D=Be(t);if(E.target!=null&&!(!(D instanceof Element)&&u(t)&&f(t,E))&&!(!D||D===E.target||E.composedPath().includes(D))){if("detail"in E&&E.detail===0&&(c=!d(E)),!c){c=!0;return}n(E)}};let k=!1;const y=[le(i,"click",E=>{k||(k=!0,setTimeout(()=>{k=!1},0),p(E))},{passive:!0,capture:l}),le(i,"pointerdown",E=>{const D=Be(t);c=!d(E)&&!!(D&&!E.composedPath().includes(D))},{passive:!0}),r&&le(i,"blur",E=>{setTimeout(()=>{var D;const g=Be(t);((D=i.document.activeElement)==null?void 0:D.tagName)==="IFRAME"&&!g?.contains(i.document.activeElement)&&n(E)},0)},{passive:!0})].filter(Boolean),$=()=>y.forEach(E=>E());return s?{stop:$,cancel:()=>{c=!1},trigger:E=>{c=!0,p(E),c=!1}}:$}function so(){const t=e.shallowRef(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function co(t){const n=so();return e.computed(()=>(n.value,!!t()))}const fo=Symbol("vueuse-ssr-width");function uo(){const t=e.hasInjectionContext()?eo(fo,null):null;return typeof t=="number"?t:void 0}function mo(t,n={}){const{window:o=Ie,ssrWidth:i=uo()}=n,a=co(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function"),l=e.ref(typeof i=="number"),r=e.shallowRef(),s=e.shallowRef(!1),c=d=>{s.value=d.matches};return e.watchEffect(()=>{if(l.value){l.value=!a.value;const d=e.toValue(t).split(",");s.value=d.some(u=>{const f=u.includes("not all"),p=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),k=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let y=!!(p||k);return p&&y&&(y=i>=Lt(p[1])),k&&y&&(y=i<=Lt(k[1])),f?!y:y});return}a.value&&(r.value=o.matchMedia(e.toValue(t)),s.value=r.value.matches)}),le(r,"change",c,{passive:!0}),e.computed(()=>s.value)}function Pe(t={}){const{window:n=Ie,initialWidth:o=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0,type:r="inner"}=t,s=e.ref(o),c=e.ref(i),d=()=>{if(n)if(r==="outer")s.value=n.outerWidth,c.value=n.outerHeight;else if(r==="visual"&&n.visualViewport){const{width:f,height:p,scale:k}=n.visualViewport;s.value=Math.round(f*k),c.value=Math.round(p*k)}else l?(s.value=n.innerWidth,c.value=n.innerHeight):(s.value=n.document.documentElement.clientWidth,c.value=n.document.documentElement.clientHeight)};d(),lo(d);const u={passive:!0};if(le("resize",d,u),n&&r==="visual"&&n.visualViewport&&le(n.visualViewport,"resize",d,u),a){const f=mo("(orientation: portrait)");e.watch(f,()=>d())}return{width:s,height:c}}const ho={class:"modal-wrapper"},po={key:0,class:"modal-body"},go={class:"modal-footer"},Co={name:"ConfirmationModal"},ot=e.defineComponent({...Co,props:{divider:{default:!1,type:Boolean},disableBody:{default:!1,type:Boolean},disableHeader:{default:!1,type:Boolean}},emits:["on:confirm","on:close"],setup(t,{emit:n}){const o=n,i=t,a=e.ref();nt(a,c=>{s()});const l=e.computed(()=>["modal",i.divider&&"divided-modal"].filter(Boolean).join(" "));function r(){o("on:confirm")}function s(){o("on:close")}return(c,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.createElementVNode("div",ho,[e.createElementVNode("div",{ref_key:"dzangolabVueModal",ref:a,class:"modal-container"},[e.createElementVNode("div",{class:e.normalizeClass(["modal-header",{"disabled-header":t.disableHeader}])},[t.disableHeader?e.createCommentVNode("",!0):e.renderSlot(c.$slots,"header",{key:0},()=>[d[3]||(d[3]=e.createElementVNode("span",null,"Confirmation required",-1))]),(e.openBlock(),e.createElementBlock("svg",{"aria-label":"close modal",height:"1em",tabindex:"0",width:"1em",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",onClick:d[0]||(d[0]=u=>s())},d[4]||(d[4]=[e.createElementVNode("path",{fill:"currentColor",d:"M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94z"},null,-1)])))],2),t.disableBody?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",po,[e.renderSlot(c.$slots,"body",{},()=>[d[5]||(d[5]=e.createElementVNode("p",null,"Are you sure you want to proceed?",-1))])])),e.createElementVNode("div",go,[e.renderSlot(c.$slots,"footer",{},()=>[e.createVNode(H,{size:"small",label:"Cancel",severity:"secondary",onClick:d[1]||(d[1]=u=>s())}),e.createVNode(H,{size:"small",label:"Confirm",severity:"primary",onClick:d[2]||(d[2]=u=>r())})])])],512)])],2))}}),bo=["data-aria-orientation"],yo={name:"DividerElement"},wo=e.defineComponent({...yo,props:{orientation:{default:"horizontal",type:String,validator:t=>["horizontal","vertical"].includes(t)}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{"data-aria-orientation":t.orientation,class:"divider",role:"separator"},null,8,bo))}}),Ot={year:"numeric",month:"short",day:"numeric"},ko={...Ot,hour:"numeric",minute:"numeric",hour12:!0},Mt=(t,n,o)=>{if(!t)return null;const i={...Ot,...o},a=new Date(t).toLocaleDateString(n||"en-GB",i);return a==="Invalid Date"?null:a},_t=(t,n,o)=>{if(!t)return null;const i={...ko,...o},a=new Date(t).toLocaleDateString(n||"en-GB",i);return a==="Invalid Date"?null:a},Eo=t=>{const n=Math.floor(t/60).toString(),o=(t%60).toString().padStart(2,"0");return`${n}:${o}`},it=t=>{const{width:n,height:o}=Pe(),i={top:t.top,bottom:o.value-t.bottom,left:t.left,right:n.value-t.right},a=Math.max(...Object.values(i));return Object.keys(i).find(l=>i[l]===a)||"bottom"},at=t=>{const n=[];let o=t.parentElement;for(;o;){const i=window.getComputedStyle(o);(["auto","scroll"].includes(i.overflow)||["auto","scroll"].includes(i.overflowX)||["auto","scroll"].includes(i.overflowY))&&n.push(o),o=o.parentElement}return n},It=t=>t==="sessionStorage"?sessionStorage:localStorage;let lt=null;function Pt(t,n){const o=e.ref();return new Promise(i=>{e.watch(()=>t,a=>{lt&&clearTimeout(lt),lt=setTimeout(()=>{o.value=a,i(o)},n)},{immediate:!0})})}const Bo=["aria-expanded","aria-label"],So={name:"Popup"},At=e.defineComponent({...So,props:{ariaLabel:{default:"popup",type:String},offset:{type:Number,default:10},position:{type:String,default:null}},emits:["onClickOutside"],setup(t,{expose:n,emit:o}){const i=t,a=o,l=e.useSlots(),r=e.ref(null),s=e.ref(null),c=e.ref(null),d=e.ref(!1),u=e.ref("bottom"),f=e.ref({top:"0",left:"0"}),p=e.ref([]),{width:k,height:y}=Pe(),$=e.computed(()=>!!l.content);e.onBeforeUnmount(()=>{window.removeEventListener("scroll",D),window.removeEventListener("resize",D),p.value.forEach(({element:g,listener:C})=>{g.removeEventListener("scroll",C)})});const E=()=>{d.value=!d.value,d.value?e.nextTick(()=>{D(),window.addEventListener("scroll",D),window.addEventListener("resize",D),r.value&&at(r.value).forEach(C=>{const m=()=>D();C.addEventListener("scroll",m),p.value.push({element:C,listener:m})})}):(window.removeEventListener("scroll",D),window.removeEventListener("resize",D),p.value.forEach(({element:g,listener:C})=>{g.removeEventListener("scroll",C)}),p.value=[])},D=()=>{if(!c.value||!s.value)return;const g=c.value.getBoundingClientRect(),C=s.value.getBoundingClientRect();let m=0,w=0;const b=i.position||it(g),L=k.value-g.right<100,j=y.value-(g.bottom+C.height+i.offset)>=0,A=g.top-C.height-i.offset>=0;switch(b){case"top":m=A?g.top-C.height-i.offset:g.bottom+i.offset,w=L?g.right-C.width:g.left;break;case"bottom":m=j?g.bottom+i.offset:g.top-C.height-i.offset,w=L?g.right-C.width:g.left;break;case"left":w=g.left-C.width-i.offset,m=g.top;break;case"right":w=g.left+g.width+i.offset,m=g.top;break}const ee=y.value-(m+C.height),W=m;if(d.value=W>=0&&ee>=0,b==="right"||b==="left")w=Math.max(0,w);else{w+C.width>k.value&&(w=k.value-C.width),w=Math.max(0,w);const ie=y.value-C.height;m=Math.min(Math.max(m,0),ie)}f.value={top:`${m}px`,left:`${w}px`},u.value=b};return nt(r,()=>{d.value=!1,a("onClickOutside")}),n({isVisible:d,togglePopup:E}),(g,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dzangolabVueUIPopup",ref:r,class:"popup-container"},[e.createElementVNode("div",{ref_key:"dzangolabVueUIPopupTrigger",ref:c,"aria-expanded":!!d.value,"aria-label":t.ariaLabel,class:"popup-trigger",onClick:E},[e.renderSlot(g.$slots,"default")],8,Bo),d.value&&$.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dzangolabVueUIPopupContent",ref:s,class:e.normalizeClass(["popup-content",u.value]),style:e.normalizeStyle(f.value)},[e.renderSlot(g.$slots,"content")],6)):e.createCommentVNode("",!0)],512))}}),Do=["aria-label"],No={key:1,fill:"#0f0f0f",height:"1.5rem",stroke:"#0f0f0f",width:"1.5rem","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1792 1792"},Vo=["aria-label"],$o=["aria-disabled","onClick"],To={class:"menu-item"},vo={name:"Dropdown"},Ft=e.defineComponent({...vo,props:{icon:{default:void 0,type:String},label:{type:String,default:null},menu:{required:!0,type:Array}},emits:["select"],setup(t,{emit:n}){const o=t,i=n,a=e.ref(),l=e.computed(()=>o.menu.filter(s=>s.display!==!1)),r=s=>{s.disabled||(i("select",s),a.value.isVisible=!1)};return(s,c)=>(e.openBlock(),e.createBlock(At,{ref_key:"popup",ref:a,class:"dropdown-menu",position:"bottom",tabindex:"0"},{content:e.withCtx(()=>[e.createElementVNode("ul",{class:"dropdown-menu","aria-label":t.label+"dropdown menu",tabindex:"0"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,d=>(e.openBlock(),e.createElementBlock("li",{key:d.label,"aria-disabled":d.disabled?"true":"false",class:e.normalizeClass([[{disabled:d.disabled},d.class],"menu-item"]),tabindex:"0",onClick:u=>r(d)},[e.createElementVNode("span",To,[e.renderSlot(s.$slots,"`icon-${menuItem.key}`",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(d.icon)},null,2)]),e.createTextVNode(" "+e.toDisplayString(d.label),1)])],10,$o))),128))],8,Vo)]),default:e.withCtx(()=>[e.createElementVNode("div",{"aria-label":(t.label??"")+" dropdown",class:e.normalizeClass([{triggered:a.value?.isVisible},"dropdown-menu-trigger"])},[e.renderSlot(s.$slots,"default",{},()=>[t.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString(t.label),1),c[0]||(c[0]=e.createElementVNode("svg",{class:"dropdown-icon",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"stroke-width":"0"}),e.createElementVNode("g",{"stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M5.70711 9.71069C5.31658 10.1012 5.31658 10.7344 5.70711 11.1249L10.5993 16.0123C11.3805 16.7927 12.6463 16.7924 13.4271 16.0117L18.3174 11.1213C18.708 10.7308 18.708 10.0976 18.3174 9.70708C17.9269 9.31655 17.2937 9.31655 16.9032 9.70708L12.7176 13.8927C12.3271 14.2833 11.6939 14.2832 11.3034 13.8927L7.12132 9.71069C6.7308 9.32016 6.09763 9.32016 5.70711 9.71069Z",fill:"#0F0F0F"})])],-1))],64)):(e.openBlock(),e.createElementBlock("svg",No,c[1]||(c[1]=[e.createElementVNode("g",{"stroke-width":"0"},null,-1),e.createElementVNode("g",{"stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:"321.4",cy:"896.2",r:"171.2"}),e.createElementVNode("circle",{cx:"898.3",cy:"896.2",r:"171.2"}),e.createElementVNode("circle",{cx:"1469",cy:"896.2",r:"171.2"})],-1)])))])],10,Do)]),_:3},512))}}),Lo={class:"error"},xo={class:"code"},Oo={name:"Error"},zt=e.defineComponent({...Oo,props:{error:{required:!0,type:Object}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("p",Lo,[e.createTextVNode(e.toDisplayString(t.error.message)+" ",1),e.createElementVNode("span",xo,"("+e.toDisplayString(t.error.code)+")",1)]))}}),Mo={class:"errors"},_o={key:1},Io={name:"Errors"},Po=e.defineComponent({...Io,props:{errors:{required:!0,type:Array}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",Mo,[t.errors.length===1?(e.openBlock(),e.createBlock(zt,{key:0,error:t.errors[0]},null,8,["error"])):(e.openBlock(),e.createElementBlock("ul",_o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.errors,(i,a)=>(e.openBlock(),e.createElementBlock("li",{key:a},[e.createVNode(zt,{error:i},null,8,["error"])]))),128))]))]))}}),Ao={class:"confirmation-file-actions"},Fo={name:"ConfirmationFileActions"},zo=e.defineComponent({...Fo,props:{archiveConfirmationHeader:{default:"Archive file?",type:String},archiveConfirmationMessage:{default:"Are you sure you want to archive this file?",type:String},deleteConfirmationHeader:{default:"Delete file?",type:String},deleteConfirmationMessage:{default:"Are you sure you want to delete this file?",type:String},showArchiveConfirmation:Boolean,showDeleteConfirmation:Boolean},emits:["on:closeArchive","on:closeDelete","on:confirmArchive","on:confirmDelete"],setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",Ao,[t.showArchiveConfirmation?(e.openBlock(),e.createBlock(ot,{key:0,"onOn:close":o[0]||(o[0]=i=>n.$emit("on:closeArchive")),"onOn:confirm":o[1]||(o[1]=i=>n.$emit("on:confirmArchive"))},{header:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.archiveConfirmationHeader),1)]),body:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.archiveConfirmationMessage),1)]),_:1})):e.createCommentVNode("",!0),t.showDeleteConfirmation?(e.openBlock(),e.createBlock(ot,{key:1,"onOn:close":o[2]||(o[2]=i=>n.$emit("on:closeDelete")),"onOn:confirm":o[3]||(o[3]=i=>n.$emit("on:confirmDelete"))},{header:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.deleteConfirmationHeader),1)]),body:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.deleteConfirmationMessage),1)]),_:1})):e.createCommentVNode("",!0)]))}}),jo={class:"file-thumbnail-details-wrapper"},Ro={key:0,class:"file-thumbnail"},Ho={class:"details-wrapper"},Zo={class:"name-description-details-wrapper"},Go={key:0,class:"name"},qo={key:1,class:"file-size"},Wo={key:0,class:"description-wrapper-details"},Yo={key:0,class:"file-upload-download-details-wrapper"},Uo={key:0,class:"file-upload-details"},Xo={key:0,class:"uploaded-by"},Ko={key:1,class:"uploaded-at"},Qo={key:1,class:"file-download-details"},Jo={key:0,class:"download-count"},ei={key:1,class:"last-downloaded-at"},ti={key:0,class:"file-actions"},ni={name:"FileCard"},jt=e.defineComponent({...ni,props:{actionButtonsVisibility:{default:()=>({archive:!0,delete:!0,download:!0,share:!0,view:!0}),type:Object},allowEditDescription:Boolean,archiveButtonProps:{default:()=>{},type:Object},deleteButtonProps:{default:()=>{},type:Object},downloadButtonProps:{default:()=>{},type:Object},editDescriptionButtonProps:{default:()=>{},type:Object},file:{type:Object,required:!0},messages:{default:()=>{},type:Object},shareButtonProps:{default:()=>{},type:Object},showThumbnail:{default:!0,type:Boolean},viewButtonProps:{default:()=>({severity:"secondary"}),type:Object},visibilityDetail:{default:()=>({actions:!0,description:!0,downloadCount:!0,lastDownloadedAt:!0,originalFileName:!0,size:!0,uploadedAt:!0,uploadedBy:!0}),type:Object}},emits:["click:editDescription","on:archive","on:delete","on:download","on:share","on:view"],setup(t,{emit:n}){const o=t,i=n,a=e.ref(!1),l=e.ref(!1),r=u=>u.uploadedBy?u.uploadedBy.givenName||u.uploadedBy.lastName?`${u.uploadedBy.givenName||""} ${u.uploadedBy.lastName||""}`:u.uploadedBy.email:"—",s=u=>{switch(u){case"archive":case"delete":case"download":case"share":case"view":i(`on:${u}`,o.file);break}},c=()=>{s("archive"),a.value=!1},d=()=>{s("delete"),l.value=!1};return(u,f)=>(e.openBlock(),e.createBlock($t,{class:"file-card"},{default:e.withCtx(()=>[e.createElementVNode("div",jo,[t.showThumbnail||u.$slots.thumbnail?(e.openBlock(),e.createElementBlock("div",Ro,[e.renderSlot(u.$slots,"thumbnail",{},()=>[f[8]||(f[8]=e.createElementVNode("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.53 9L13 3.47C12.8595 3.32931 12.6688 3.25018 12.47 3.25H8C7.27065 3.25 6.57118 3.53973 6.05546 4.05546C5.53973 4.57118 5.25 5.27065 5.25 6V18C5.25 18.7293 5.53973 19.4288 6.05546 19.9445C6.57118 20.4603 7.27065 20.75 8 20.75H16C16.7293 20.75 17.4288 20.4603 17.9445 19.9445C18.4603 19.4288 18.75 18.7293 18.75 18V9.5C18.7421 9.3116 18.6636 9.13309 18.53 9ZM13.25 5.81L16.19 8.75H13.25V5.81ZM16 19.25H8C7.66848 19.25 7.35054 19.1183 7.11612 18.8839C6.8817 18.6495 6.75 18.3315 6.75 18V6C6.75 5.66848 6.8817 5.35054 7.11612 5.11612C7.35054 4.8817 7.66848 4.75 8 4.75H11.75V9.5C11.7526 9.69811 11.8324 9.88737 11.9725 10.0275C12.1126 10.1676 12.3019 10.2474 12.5 10.25H17.25V18C17.25 18.3315 17.1183 18.6495 16.8839 18.8839C16.6495 19.1183 16.3315 19.25 16 19.25Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M13.49 14.85C12.8751 14.4642 12.4124 13.8778 12.18 13.19C12.3953 12.5467 12.4603 11.8625 12.37 11.19C12.3412 11.0206 12.2586 10.865 12.1344 10.7462C12.0102 10.6274 11.8511 10.5518 11.6806 10.5305C11.5101 10.5092 11.3372 10.5433 11.1876 10.6279C11.038 10.7125 10.9197 10.843 10.85 11C10.7362 11.8085 10.822 12.6325 11.1 13.4C10.7202 14.2873 10.2963 15.1551 9.83001 16C9.12001 16.4 8.15001 17 8.00001 17.69C7.88001 18.25 8.93001 19.69 10.72 16.57C11.5159 16.2746 12.3312 16.034 13.16 15.85C13.7727 16.2003 14.4561 16.4088 15.16 16.46C15.3216 16.4642 15.4809 16.4206 15.6178 16.3345C15.7546 16.2484 15.863 16.1238 15.9292 15.9764C15.9955 15.8289 16.0167 15.6651 15.9901 15.5056C15.9636 15.3462 15.8905 15.1981 15.78 15.08C15.36 14.65 14.11 14.77 13.49 14.85ZM8.71001 17.85C8.99025 17.3705 9.36034 16.9495 9.80001 16.61C9.12001 17.69 8.71001 17.88 8.71001 17.86V17.85ZM11.63 11.04C11.89 11.04 11.87 12.19 11.69 12.5C11.5544 12.0285 11.5338 11.5312 11.63 11.05V11.04ZM10.76 15.92C11.0988 15.3019 11.3929 14.6602 11.64 14C11.9049 14.493 12.2734 14.9229 12.72 15.26C12.0491 15.4281 11.3934 15.6522 10.76 15.93V15.92ZM15.46 15.74C15.46 15.74 15.28 15.96 14.13 15.46C15.38 15.38 15.59 15.67 15.46 15.75V15.74Z",fill:"currentColor"})],-1))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Ho,[e.createElementVNode("div",Zo,[e.createElementVNode("div",null,[t.visibilityDetail.originalFileName?(e.openBlock(),e.createElementBlock("span",Go,e.toDisplayString(t.file.originalFileName),1)):e.createCommentVNode("",!0),t.file.size&&t.visibilityDetail.size?(e.openBlock(),e.createElementBlock("span",qo," ("+e.toDisplayString(t.file.size)+") ",1)):e.createCommentVNode("",!0)]),t.file.description&&t.visibilityDetail.description?(e.openBlock(),e.createElementBlock("div",Wo,[e.createElementVNode("span",null,e.toDisplayString(t.file.description),1),t.allowEditDescription?(e.openBlock(),e.createBlock(H,e.mergeProps({key:0},t.editDescriptionButtonProps,{size:"small",variant:"outlined",onClick:f[0]||(f[0]=p=>u.$emit("click:editDescription"))}),{iconLeft:e.withCtx(()=>f[9]||(f[9]=[e.createElementVNode("svg",{fill:"none",width:"20",viewBox:"0 -0.5 25 25",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2942 7.95881C13.5533 7.63559 13.5013 7.16358 13.178 6.90453C12.8548 6.64549 12.3828 6.6975 12.1238 7.02072L13.2942 7.95881ZM6.811 14.8488L7.37903 15.3385C7.38489 15.3317 7.39062 15.3248 7.39623 15.3178L6.811 14.8488ZM6.64 15.2668L5.89146 15.2179L5.8908 15.2321L6.64 15.2668ZM6.5 18.2898L5.7508 18.2551C5.74908 18.2923 5.75013 18.3296 5.75396 18.3667L6.5 18.2898ZM7.287 18.9768L7.31152 19.7264C7.36154 19.7247 7.41126 19.7181 7.45996 19.7065L7.287 18.9768ZM10.287 18.2658L10.46 18.9956L10.4716 18.9927L10.287 18.2658ZM10.672 18.0218L11.2506 18.4991L11.2571 18.491L10.672 18.0218ZM17.2971 10.959C17.5562 10.6358 17.5043 10.1638 17.1812 9.90466C16.8581 9.64552 16.386 9.69742 16.1269 10.0206L17.2971 10.959ZM12.1269 7.02052C11.8678 7.34365 11.9196 7.81568 12.2428 8.07484C12.5659 8.33399 13.0379 8.28213 13.2971 7.95901L12.1269 7.02052ZM14.3 5.50976L14.8851 5.97901C14.8949 5.96672 14.9044 5.95412 14.9135 5.94123L14.3 5.50976ZM15.929 5.18976L16.4088 4.61332C16.3849 4.59344 16.3598 4.57507 16.3337 4.5583L15.929 5.18976ZM18.166 7.05176L18.6968 6.52192C18.6805 6.50561 18.6635 6.49007 18.6458 6.47532L18.166 7.05176ZM18.5029 7.87264L19.2529 7.87676V7.87676L18.5029 7.87264ZM18.157 8.68976L17.632 8.15412C17.6108 8.17496 17.5908 8.19704 17.5721 8.22025L18.157 8.68976ZM16.1271 10.0203C15.8678 10.3433 15.9195 10.8153 16.2425 11.0746C16.5655 11.3339 17.0376 11.2823 17.2969 10.9593L16.1271 10.0203ZM13.4537 7.37862C13.3923 6.96898 13.0105 6.68666 12.6009 6.74805C12.1912 6.80943 11.9089 7.19127 11.9703 7.60091L13.4537 7.37862ZM16.813 11.2329C17.2234 11.1772 17.5109 10.7992 17.4552 10.3888C17.3994 9.97834 17.0215 9.69082 16.611 9.74659L16.813 11.2329ZM12.1238 7.02072L6.22577 14.3797L7.39623 15.3178L13.2942 7.95881L12.1238 7.02072ZM6.24297 14.359C6.03561 14.5995 5.91226 14.9011 5.89159 15.218L7.38841 15.3156C7.38786 15.324 7.38457 15.3321 7.37903 15.3385L6.24297 14.359ZM5.8908 15.2321L5.7508 18.2551L7.2492 18.3245L7.3892 15.3015L5.8908 15.2321ZM5.75396 18.3667C5.83563 19.1586 6.51588 19.7524 7.31152 19.7264L7.26248 18.2272C7.25928 18.2273 7.25771 18.2268 7.25669 18.2264C7.25526 18.2259 7.25337 18.2249 7.25144 18.2232C7.2495 18.2215 7.24825 18.2198 7.24754 18.2185C7.24703 18.2175 7.24637 18.216 7.24604 18.2128L5.75396 18.3667ZM7.45996 19.7065L10.46 18.9955L10.114 17.536L7.11404 18.247L7.45996 19.7065ZM10.4716 18.9927C10.7771 18.9151 11.05 18.7422 11.2506 18.499L10.0934 17.5445C10.0958 17.5417 10.0989 17.5397 10.1024 17.5388L10.4716 18.9927ZM11.2571 18.491L17.2971 10.959L16.1269 10.0206L10.0869 17.5526L11.2571 18.491ZM13.2971 7.95901L14.8851 5.97901L13.7149 5.04052L12.1269 7.02052L13.2971 7.95901ZM14.9135 5.94123C15.0521 5.74411 15.3214 5.6912 15.5243 5.82123L16.3337 4.5583C15.4544 3.99484 14.2873 4.2241 13.6865 5.0783L14.9135 5.94123ZM15.4492 5.7662L17.6862 7.6282L18.6458 6.47532L16.4088 4.61332L15.4492 5.7662ZM17.6352 7.58161C17.7111 7.6577 17.7535 7.761 17.7529 7.86852L19.2529 7.87676C19.2557 7.36905 19.0555 6.88127 18.6968 6.52192L17.6352 7.58161ZM17.7529 7.86852C17.7524 7.97604 17.7088 8.07886 17.632 8.15412L18.682 9.22541C19.0446 8.87002 19.2501 8.38447 19.2529 7.87676L17.7529 7.86852ZM17.5721 8.22025L16.1271 10.0203L17.2969 10.9593L18.7419 9.15928L17.5721 8.22025ZM11.9703 7.60091C12.3196 9.93221 14.4771 11.5503 16.813 11.2329L16.611 9.74659C15.0881 9.95352 13.6815 8.89855 13.4537 7.37862L11.9703 7.60091Z",fill:"currentColor"})],-1)])),_:1},16)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),t.visibilityDetail.uploadedAt||t.visibilityDetail.uploadedBy||t.visibilityDetail.lastDownloadedAt||t.visibilityDetail.downloadCount?(e.openBlock(),e.createElementBlock("div",Yo,[t.visibilityDetail.uploadedAt||t.visibilityDetail.uploadedBy?(e.openBlock(),e.createElementBlock("div",Uo,[t.visibilityDetail.uploadedBy?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("span",null,e.toDisplayString(t.messages?.uploadedByHeader||"Uploaded by"),1),e.createElementVNode("span",null,e.toDisplayString(r(t.file)),1)])):e.createCommentVNode("",!0),t.visibilityDetail.uploadedAt?(e.openBlock(),e.createElementBlock("div",Ko,[e.createElementVNode("span",null,e.toDisplayString(t.messages?.uploadedAtHeader||"Uploaded at"),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(_t)(t.file.uploadedAt)),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.visibilityDetail.downloadCount||t.visibilityDetail.lastDownloadedAt?(e.openBlock(),e.createElementBlock("div",Qo,[t.visibilityDetail.downloadCount?(e.openBlock(),e.createElementBlock("div",Jo,[e.createElementVNode("span",null,e.toDisplayString(t.messages?.downloadCountHeader||"Downloads:"),1),e.createElementVNode("span",null,e.toDisplayString(t.file.downloadCount),1)])):e.createCommentVNode("",!0),t.visibilityDetail.lastDownloadedAt?(e.openBlock(),e.createElementBlock("div",ei,[e.createElementVNode("span",null,e.toDisplayString(t.messages?.lastDownloadedAtHeader||"Last download:"),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(Mt)(Number(t.file.lastDownloadedAt))),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),t.visibilityDetail.actions?(e.openBlock(),e.createElementBlock("div",ti,[t.actionButtonsVisibility.archive?(e.openBlock(),e.createBlock(H,e.mergeProps({key:0},t.archiveButtonProps,{label:t.messages?.archiveAction||"Archive",size:"small",onClick:f[1]||(f[1]=p=>a.value=!0)}),{iconLeft:e.withCtx(()=>f[10]||(f[10]=[e.createElementVNode("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M4 19V6.2C4 5.0799 4 4.51984 4.21799 4.09202C4.40973 3.71569 4.71569 3.40973 5.09202 3.21799C5.51984 3 6.0799 3 7.2 3H16.8C17.9201 3 18.4802 3 18.908 3.21799C19.2843 3.40973 19.5903 3.71569 19.782 4.09202C20 4.51984 20 5.0799 20 6.2V17H6C4.89543 17 4 17.8954 4 19ZM4 19C4 20.1046 4.89543 21 6 21H20M9 7H15M9 11H15M19 17V21",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"})],-1)])),_:1},16,["label"])):e.createCommentVNode("",!0),t.actionButtonsVisibility.delete?(e.openBlock(),e.createBlock(H,e.mergeProps({key:1},t.deleteButtonProps,{label:t.messages?.deleteAction||"Delete",size:"small",onClick:f[2]||(f[2]=p=>l.value=!0)}),{iconLeft:e.withCtx(()=>f[11]||(f[11]=[e.createElementVNode("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6M18 6V16.2C18 17.8802 18 18.7202 17.673 19.362C17.3854 19.9265 16.9265 20.3854 16.362 20.673C15.7202 21 14.8802 21 13.2 21H10.8C9.11984 21 8.27976 21 7.63803 20.673C7.07354 20.3854 6.6146 19.9265 6.32698 19.362C6 18.7202 6 17.8802 6 16.2V6M14 10V17M10 10V17",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"})],-1)])),_:1},16,["label"])):e.createCommentVNode("",!0),t.actionButtonsVisibility.download?(e.openBlock(),e.createBlock(H,e.mergeProps({key:2},t.downloadButtonProps,{label:t.messages?.downloadAction||"Download",size:"small",onClick:f[3]||(f[3]=p=>s("download"))}),{iconLeft:e.withCtx(()=>f[12]||(f[12]=[e.createElementVNode("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.5535 16.5061C12.4114 16.6615 12.2106 16.75 12 16.75C11.7894 16.75 11.5886 16.6615 11.4465 16.5061L7.44648 12.1311C7.16698 11.8254 7.18822 11.351 7.49392 11.0715C7.79963 10.792 8.27402 10.8132 8.55352 11.1189L11.25 14.0682V3C11.25 2.58579 11.5858 2.25 12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V14.0682L15.4465 11.1189C15.726 10.8132 16.2004 10.792 16.5061 11.0715C16.8118 11.351 16.833 11.8254 16.5535 12.1311L12.5535 16.5061Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M3.75 15C3.75 14.5858 3.41422 14.25 3 14.25C2.58579 14.25 2.25 14.5858 2.25 15V15.0549C2.24998 16.4225 2.24996 17.5248 2.36652 18.3918C2.48754 19.2919 2.74643 20.0497 3.34835 20.6516C3.95027 21.2536 4.70814 21.5125 5.60825 21.6335C6.47522 21.75 7.57754 21.75 8.94513 21.75H15.0549C16.4225 21.75 17.5248 21.75 18.3918 21.6335C19.2919 21.5125 20.0497 21.2536 20.6517 20.6516C21.2536 20.0497 21.5125 19.2919 21.6335 18.3918C21.75 17.5248 21.75 16.4225 21.75 15.0549V15C21.75 14.5858 21.4142 14.25 21 14.25C20.5858 14.25 20.25 14.5858 20.25 15C20.25 16.4354 20.2484 17.4365 20.1469 18.1919C20.0482 18.9257 19.8678 19.3142 19.591 19.591C19.3142 19.8678 18.9257 20.0482 18.1919 20.1469C17.4365 20.2484 16.4354 20.25 15 20.25H9C7.56459 20.25 6.56347 20.2484 5.80812 20.1469C5.07435 20.0482 4.68577 19.8678 4.40901 19.591C4.13225 19.3142 3.9518 18.9257 3.85315 18.1919C3.75159 17.4365 3.75 16.4354 3.75 15Z",fill:"currentColor"})],-1)])),_:1},16,["label"])):e.createCommentVNode("",!0),t.actionButtonsVisibility.share?(e.openBlock(),e.createBlock(H,e.mergeProps({key:3},t.shareButtonProps,{label:t.messages?.shareAction||"Share",size:"small",onClick:f[4]||(f[4]=p=>s("share"))}),{iconLeft:e.withCtx(()=>f[13]||(f[13]=[e.createElementVNode("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"M16.5 2.25C14.7051 2.25 13.25 3.70507 13.25 5.5C13.25 5.69591 13.2673 5.88776 13.3006 6.07412L8.56991 9.38558C8.54587 9.4024 8.52312 9.42038 8.50168 9.43939C7.94993 9.00747 7.25503 8.75 6.5 8.75C4.70507 8.75 3.25 10.2051 3.25 12C3.25 13.7949 4.70507 15.25 6.5 15.25C7.25503 15.25 7.94993 14.9925 8.50168 14.5606C8.52312 14.5796 8.54587 14.5976 8.56991 14.6144L13.3006 17.9259C13.2673 18.1122 13.25 18.3041 13.25 18.5C13.25 20.2949 14.7051 21.75 16.5 21.75C18.2949 21.75 19.75 20.2949 19.75 18.5C19.75 16.7051 18.2949 15.25 16.5 15.25C15.4472 15.25 14.5113 15.7506 13.9174 16.5267L9.43806 13.3911C9.63809 12.9694 9.75 12.4978 9.75 12C9.75 11.5022 9.63809 11.0306 9.43806 10.6089L13.9174 7.4733C14.5113 8.24942 15.4472 8.75 16.5 8.75C18.2949 8.75 19.75 7.29493 19.75 5.5C19.75 3.70507 18.2949 2.25 16.5 2.25ZM14.75 5.5C14.75 4.5335 15.5335 3.75 16.5 3.75C17.4665 3.75 18.25 4.5335 18.25 5.5C18.25 6.4665 17.4665 7.25 16.5 7.25C15.5335 7.25 14.75 6.4665 14.75 5.5ZM6.5 10.25C5.5335 10.25 4.75 11.0335 4.75 12C4.75 12.9665 5.5335 13.75 6.5 13.75C7.4665 13.75 8.25 12.9665 8.25 12C8.25 11.0335 7.4665 10.25 6.5 10.25ZM16.5 16.75C15.5335 16.75 14.75 17.5335 14.75 18.5C14.75 19.4665 15.5335 20.25 16.5 20.25C17.4665 20.25 18.25 19.4665 18.25 18.5C18.25 17.5335 17.4665 16.75 16.5 16.75Z",fill:"currentColor","fill-rule":"evenodd"})],-1)])),_:1},16,["label"])):e.createCommentVNode("",!0),t.actionButtonsVisibility.view?(e.openBlock(),e.createBlock(H,e.mergeProps({key:4},t.viewButtonProps,{label:t.messages?.viewAction||"View",size:"small",onClick:f[5]||(f[5]=p=>s("view"))}),{iconLeft:e.withCtx(()=>f[14]||(f[14]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M15.0007 12C15.0007 13.6569 13.6576 15 12.0007 15C10.3439 15 9.00073 13.6569 9.00073 12C9.00073 10.3431 10.3439 9 12.0007 9C13.6576 9 15.0007 10.3431 15.0007 12Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"}),e.createElementVNode("path",{d:"M12.0012 5C7.52354 5 3.73326 7.94288 2.45898 12C3.73324 16.0571 7.52354 19 12.0012 19C16.4788 19 20.2691 16.0571 21.5434 12C20.2691 7.94291 16.4788 5 12.0012 5Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"})],-1)])),_:1},16,["label"])):e.createCommentVNode("",!0),e.createVNode(zo,{"archive-confirmation-header":t.messages?.archiveConfirmationHeader,"archive-confirmation-message":t.messages?.archiveConfirmationMessage,"delete-confirmation-header":t.messages?.deleteConfirmationHeader,"delete-confirmation-message":t.messages?.deleteConfirmationMessage,"show-archive-confirmation":a.value,"show-delete-confirmation":l.value,"onOn:closeArchive":f[6]||(f[6]=p=>a.value=!1),"onOn:closeDelete":f[7]||(f[7]=p=>l.value=!1),"onOn:confirmArchive":c,"onOn:confirmDelete":d},null,8,["archive-confirmation-header","archive-confirmation-message","delete-confirmation-header","delete-confirmation-message","show-archive-confirmation","show-delete-confirmation"])])):e.createCommentVNode("",!0)]),_:3}))}}),oi={class:"file-list-wrapper"},ii={name:"FilesList"},ai=e.defineComponent({...ii,props:{actionButtonsVisibility:{default:()=>({archive:!0,delete:!0,download:!0,edit:!0,share:!0,view:!0}),type:Object},archiveButtonProps:{default:()=>{},type:Object},deleteButtonProps:{default:()=>{},type:Object},downloadButtonProps:{default:()=>{},type:Object},editDescriptionButtonProps:{default:()=>{},type:Object},files:{required:!0,type:Array},messages:{default:()=>{},type:Object},shareButtonProps:{default:()=>{},type:Object},showThumbnail:{default:!0,type:Boolean},viewButtonProps:{default:void 0,type:Object},fileDetailVisibility:{default:()=>({actions:!0,description:!0,downloadCount:!0,lastDownloadedAt:!0,originalFileName:!0,size:!0,uploadedAt:!0,uploadedBy:!0}),type:Object}},emits:["action:archive","action:delete","action:download","action:edit","action:share","action:view"],setup(t,{emit:n}){const o=n,i=(a,l)=>{switch(a){case"archive":case"delete":case"download":case"edit":case"share":case"view":o(`action:${a}`,l);break}};return(a,l)=>(e.openBlock(),e.createElementBlock("div",oi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.files,r=>(e.openBlock(),e.createBlock(jt,{key:r.originalFileName,"action-buttons-visibility":t.actionButtonsVisibility,"allow-edit-description":t.actionButtonsVisibility?.edit,"archive-button-props":t.archiveButtonProps,"delete-button-props":t.deleteButtonProps,"download-button-props":t.downloadButtonProps,"edit-description-button-props":t.editDescriptionButtonProps,file:r,messages:t.messages,"share-button-props":t.shareButtonProps,"show-thumbnail":t.showThumbnail,"view-button-props":t.viewButtonProps,"visibility-detail":t.fileDetailVisibility,"onClick:editDescription":s=>i("edit",r),"onOn:archive":s=>i("archive",r),"onOn:delete":s=>i("delete",r),"onOn:download":s=>i("download",r),"onOn:share":s=>i("share",r),"onOn:view":s=>i("view",r)},e.createSlots({_:2},[a.$slots.thumbnail?{name:"thumbnail",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"thumbnail")]),key:"0"}:void 0]),1032,["action-buttons-visibility","allow-edit-description","archive-button-props","delete-button-props","download-button-props","edit-description-button-props","file","messages","share-button-props","show-thumbnail","view-button-props","visibility-detail","onClick:editDescription","onOn:archive","onOn:delete","onOn:download","onOn:share","onOn:view"]))),128))]))}}),li={class:"field debounce-input"},ri=["aria-label","disabled","placeholder","type","value"],si={name:"DebouncedInput"},ci=e.defineComponent({...si,props:{ariaLabel:{default:"input",type:String},debounceTime:{default:500,required:!1,type:Number},disabled:{default:!1,type:Boolean},modelValue:{default:"",required:!1,type:[String,Number]},placeholder:{default:"Search...",required:!1,type:String},type:{default:"text",required:!1,type:String}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,i=n,a=l=>{const r=l.target.value;Pt(r,o.debounceTime).then(()=>{i("update:modelValue",r)})};return(l,r)=>(e.openBlock(),e.createElementBlock("div",li,[e.createElementVNode("input",{"aria-label":t.ariaLabel??t.placeholder,disabled:t.disabled,placeholder:t.placeholder,type:t.type,value:t.modelValue,class:"input-field",onInput:a},null,40,ri)]))}}),di={name:"GridContainer"},fi={class:"grid-container"};function ui(t,n,o,i,a,l){return e.openBlock(),e.createElementBlock("div",fi,[e.renderSlot(t.$slots,"default")])}const mi=ke(di,[["render",ui]]),hi={key:0,class:"loading-page"},pi={name:"LoadingPage"},Rt=e.defineComponent({...pi,props:{loading:{default:!1,type:Boolean}},setup(t){return(n,o)=>t.loading?(e.openBlock(),e.createElementBlock("div",hi,[e.createVNode(Ee,{class:"loading-icon"})])):e.createCommentVNode("",!0)}}),gi={class:"message-content"},Ci={key:1},bi={name:"Message"},yi=e.defineComponent({...bi,props:{enableClose:{default:!0,type:Boolean},icon:{default:null,type:String},message:{required:!0,type:String||Array},severity:{type:String,default:"info",validator:t=>["danger","info","success","tip","warning"].includes(t)},showIcon:{default:!0,type:Boolean}},emits:["close"],setup(t,{emit:n}){const o=n,i=e.useSlots(),a=e.ref(!0),l=()=>{a.value=!1,o("close")};return(r,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message",t.severity])},[t.icon||e.unref(i).icon||t.showIcon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["icon",{default:!t.icon&&!e.unref(i).icon&&t.showIcon}])},[(t.icon||e.unref(i).icon)&&t.showIcon?e.renderSlot(r.$slots,"icon",{key:0},()=>[e.createElementVNode("i",{class:e.normalizeClass(t.icon)},null,2)]):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",gi,[e.renderSlot(r.$slots,"default",{},()=>[Array.isArray(t.message)?t.message.length?(e.openBlock(),e.createElementBlock("ul",Ci,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.message,(c,d)=>(e.openBlock(),e.createElementBlock("li",{key:`message-${d}`},e.toDisplayString(c),1))),128))])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.message),1)],64))])]),t.enableClose?(e.openBlock(),e.createElementBlock("span",{key:1,class:"close-message",onClick:s[0]||(s[0]=c=>l())})):e.createCommentVNode("",!0)],2)),[[e.vShow,a.value]])}}),wi={class:"modal overlay"},ki={class:"header"},Ei={key:0,role:"heading"},Bi={key:0,class:"content"},Si={key:1,class:"footer"},Di={name:"Modal"},Ni=e.defineComponent({...Di,props:{dismissOnClickOut:{default:!0,type:Boolean},show:{default:!1,type:Boolean},size:{default:"medium",type:String,validator:t=>["auto","medium","large"].includes(t)},title:{default:"",type:String}},emits:["on:close"],setup(t,{emit:n}){const o=e.ref(),i=n,a=t,l=e.useSlots();nt(o,s=>{a.dismissOnClickOut&&r()});const r=()=>{i("on:close")};return(s,c)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",wi,[e.createElementVNode("div",{ref_key:"dzangolabVueModal",ref:o,class:e.normalizeClass(["dialog",t.size,{active:t.show}])},[e.createElementVNode("div",ki,[e.renderSlot(s.$slots,"header",{},()=>[t.title?(e.openBlock(),e.createElementBlock("span",Ei,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)]),(e.openBlock(),e.createElementBlock("svg",{"aria-label":"close modal",height:"1.5rem",tabindex:"0",width:"1.5rem",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",onClick:c[0]||(c[0]=d=>r())},c[1]||(c[1]=[e.createElementVNode("path",{fill:"currentColor",d:"M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94z"},null,-1)])))]),e.unref(l).default?(e.openBlock(),e.createElementBlock("div",Bi,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0),e.unref(l).footer?(e.openBlock(),e.createElementBlock("div",Si,[e.renderSlot(s.$slots,"footer")])):e.createCommentVNode("",!0)],2)],512)),[[e.vShow,t.show]])}}),Vi=["data-centered"],$i={class:"page-header"},Ti={class:"page-title-wrapper"},vi={class:"title"},Li={key:0,class:"title-tag"},xi={key:0},Oi={class:"page-toolbar"},Mi={class:"page-content"},_i={name:"Page"},Ht=e.defineComponent({..._i,props:{centered:Boolean,loading:Boolean,subTitle:{default:void 0,required:!1,type:String},title:{default:void 0,required:!1,type:String},titleElement:{default:"h1",type:String,validator:t=>["h1","h2","h3","h4","h5","h6"].includes(t)},titleTag:{default:void 0,type:String},toolbarActionsMenu:{default:()=>[],type:Array}},emits:["action:click"],setup(t,{emit:n}){const{width:o}=Pe(),i=t,a=n,l=e.computed(()=>o.value>576),r=e.computed(()=>i.toolbarActionsMenu.filter(c=>c.display!==!1)),s=c=>{a("action:click",c)};return(c,d)=>(e.openBlock(),e.createElementBlock("div",{class:"page","data-centered":t.centered},[e.createElementVNode("div",$i,[e.createElementVNode("div",Ti,[e.createElementVNode("div",vi,[t.title?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.titleElement),{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1})):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"titleTag",{},()=>[t.titleTag?(e.openBlock(),e.createElementBlock("span",Li,[e.createVNode(Vt,{label:t.titleTag},null,8,["label"])])):e.createCommentVNode("",!0)])]),e.renderSlot(c.$slots,"subtitle",{},()=>[t.subTitle?(e.openBlock(),e.createElementBlock("small",xi,e.toDisplayString(t.subTitle),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Oi,[e.renderSlot(c.$slots,"toolbar",{},()=>[r.value?.length&&!l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.value?.length>1?(e.openBlock(),e.createBlock(Ft,{key:0,menu:r.value,onSelect:d[0]||(d[0]=u=>s(u))},null,8,["menu"])):(e.openBlock(),e.createBlock(H,e.mergeProps({key:1},r.value[0],{"icon-left":String(r.value[0]?.icon??r.value[0]?.iconLeft),onClick:d[1]||(d[1]=u=>s(r.value[0]))}),null,16,["icon-left"]))],64)):r.value?.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(r.value,(u,f)=>(e.openBlock(),e.createBlock(H,e.mergeProps({ref_for:!0},u,{key:`${u?.label}-${f}`,"icon-left":String(u?.icon??u?.iconLeft),onClick:p=>s(u)}),null,16,["icon-left","onClick"]))),128)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Mi,[e.renderSlot(c.$slots,"default"),e.createVNode(Rt,{loading:t.loading},null,8,["loading"])])],8,Vi))}}),Ii={class:"menu"},Pi=["onClick"],Ai={name:"ResponsiveMenu"},Fi=e.defineComponent({...Ai,props:{routes:{required:!0,type:Array},activeRoute:{default:"",required:!1,type:String}},emits:["change-route"],setup(t){return(n,o)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("nav",Ii,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.routes,(a,l)=>(e.openBlock(),e.createElementBlock("li",{key:l,class:e.normalizeClass({active:t.activeRoute===a.route}),onClick:r=>n.$emit("change-route",a.route)},[e.createVNode(i,{to:{name:a.route}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.name),1)]),_:2},1032,["to"])],10,Pi))),128))])])}}});/*!
1
+ (function(N,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(N=typeof globalThis<"u"?globalThis:N||self,e(N.PrefabsTechVue3UI={},N.Vue))})(this,function(N,e){"use strict";const Cn=["aria-orientation"],bn=["data-expanded"],yn=["aria-expanded","onClick"],wn=["src"],kn={key:0,class:"pane",role:"region"},En={name:"Accordion"},Bn=e.defineComponent({...En,props:{canSelfCollapse:{default:!1,required:!1,type:Boolean},defaultIndex:{default:0,required:!1,type:Number},direction:{default:"vertical",required:!1,type:String}},setup(t){const n=t,o=e.ref(n.defaultIndex),i=r=>{!n.canSelfCollapse||o.value!==r?o.value=r:o.value=-1},a=e.useSlots(),l=a?.default?a.default().filter(r=>r?.props?.title):null;return(r,s)=>e.unref(l)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["accordion",n.direction]),"aria-orientation":n.direction},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(c,d)=>(e.openBlock(),e.createElementBlock("section",{key:d,"data-expanded":d===o.value},[e.createElementVNode("header",null,[e.createElementVNode("button",{tabindex:"0",type:"button","aria-expanded":d===o.value,onClick:u=>i(d)},[e.withDirectives(e.createElementVNode("img",{src:c?.props?.icon,class:"icon"},null,8,wn),[[e.vShow,c?.props?.icon]]),e.createElementVNode("span",null,e.toDisplayString(c?.props?.title),1)],8,yn)]),e.createVNode(e.Transition,{appear:"",name:"expand"},{default:e.withCtx(()=>[d===o.value?(e.openBlock(),e.createElementBlock("div",kn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c)))])):e.createCommentVNode("",!0)]),_:2},1024)],8,bn))),128))],10,Cn)):e.createCommentVNode("",!0)}}),Sn={key:0,class:"icon-left"},Dn={key:1,class:"label"},Nn={key:2,class:"icon-right"},Vn={name:"BadgeComponent"},Vt=e.defineComponent({...Vn,props:{iconLeft:{default:null,type:String},iconRight:{default:null,type:String},label:{default:null,type:String},rounded:Boolean,severity:{default:"primary",type:String,validator:t=>["primary","secondary","alternate","success","danger","warning"].includes(t)}},setup(t){const n=t,o=e.useSlots(),i=e.computed(()=>["badge",n.rounded&&"rounded",n.severity].filter(Boolean).join(" "));return(a,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(i.value)},[t.iconLeft||e.unref(o).iconLeft?(e.openBlock(),e.createElementBlock("span",Sn,[e.renderSlot(a.$slots,"iconLeft",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(t.iconLeft)},null,2)])])):e.createCommentVNode("",!0),t.label?(e.openBlock(),e.createElementBlock("div",Dn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.iconRight||e.unref(o).iconRight?(e.openBlock(),e.createElementBlock("span",Nn,[e.renderSlot(a.$slots,"iconRight",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(t.iconRight)},null,2)])])):e.createCommentVNode("",!0)],2))}}),$n={name:"LoadingIcon"},ke=(t,n)=>{const o=t.__vccOpts||t;for(const[i,a]of n)o[i]=a;return o},Tn={class:"loading"};function vn(t,n,o,i,a,l){return e.openBlock(),e.createElementBlock("div",Tn,"Loading")}const Ee=ke($n,[["render",vn],["__scopeId","data-v-4c97cef5"]]),Ln={key:0,class:"icon-left"},xn={key:1,class:"label"},On={key:2,class:"icon-right"},Mn={name:"ButtonElement"},H=e.defineComponent({...Mn,props:{ariaLabel:{default:"button",type:String},disabled:{default:!1,type:Boolean},iconLeft:{default:null,type:[String,Boolean]},iconRight:{default:null,type:[String,Boolean]},label:{default:null,type:String},loading:{default:!1,type:Boolean},rounded:{default:!1,type:Boolean},severity:{default:"primary",type:String,validator:t=>["primary","secondary","alternate","success","danger","warning"].includes(t)},size:{default:"medium",type:String,validator:t=>["small","medium","large"].includes(t)},to:{default:null,type:String},title:{default:null,type:String},variant:{default:"filled",type:String,validator:t=>["outlined","filled","textOnly"].includes(t)}},emits:["click"],setup(t,{emit:n}){const o=n,i=t,a=e.useSlots(),l=e.computed(()=>["button",i.severity,i.size,i.variant==="textOnly"?"text-only":i.variant,!(i.label||a.label)&&"icon-only",i.loading&&"loading",i.rounded&&"rounded",s.value&&"disabled"].filter(Boolean).join(" ")),r=e.computed(()=>i.to?"link":"button"),s=e.computed(()=>i.disabled||i.loading);function c(){o("click")}return(d,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.to?"a":"button"),{"aria-label":t.ariaLabel,class:e.normalizeClass(l.value),disabled:!t.to&&s.value,href:t.to&&!s.value?t.to:null,role:r.value,title:t.title,onClick:u[0]||(u[0]=f=>!t.to&&c())},{default:e.withCtx(()=>[t.iconLeft||e.unref(a).iconLeft?(e.openBlock(),e.createElementBlock("span",Ln,[e.renderSlot(d.$slots,"iconLeft",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(t.iconLeft)},null,2)])])):e.createCommentVNode("",!0),d.$slots.label||t.label?(e.openBlock(),e.createElementBlock("div",xn,[e.renderSlot(d.$slots,"label",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])])):e.createCommentVNode("",!0),t.iconRight||e.unref(a).iconRight?(e.openBlock(),e.createElementBlock("span",On,[e.renderSlot(d.$slots,"iconRight",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(t.iconRight)},null,2)])])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(Ee,{key:3,class:"loading-button"})):e.createCommentVNode("",!0)]),_:3},8,["aria-label","class","disabled","href","role","title"]))}}),_n={class:"card"},In={key:0,class:"card-header"},Pn={class:"card-title"},An={class:"card-body"},Fn={key:1,class:"card-footer"},zn={name:"Card"},$t=e.defineComponent({...zn,props:{title:{type:String,default:void 0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",_n,[n.$slots.header||t.title?(e.openBlock(),e.createElementBlock("header",In,[e.renderSlot(n.$slots,"header",{},()=>[e.createElementVNode("h3",Pn,e.toDisplayString(t.title),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",An,[e.renderSlot(n.$slots,"default")]),n.$slots.footer?(e.openBlock(),e.createElementBlock("footer",Fn,[e.renderSlot(n.$slots,"footer")])):e.createCommentVNode("",!0)]))}}),jn={class:"label"},Rn={class:"value"},Hn={name:"DataElement"},Zn=e.defineComponent({...Hn,props:{caption:{type:String,required:!0},direction:{default:"vertical",type:String,validator:t=>["horizontal","vertical"].includes(t)},mode:{default:"attr",type:String,validator:t=>["attr","stat"].includes(t)},value:{default:"",type:[String,Number]}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["data",{"data-stat":t.mode==="stat"},`direction-${t.direction}`])},[e.createElementVNode("div",jn,[e.renderSlot(n.$slots,"caption",{},()=>[e.createTextVNode(e.toDisplayString(t.caption),1)])]),e.createElementVNode("div",Rn,[e.renderSlot(n.$slots,"value",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)])])],2))}}),Gn=["disabled"],qn={class:"label"},Wn={name:"LoadingButton"},Yn=e.defineComponent({...Wn,props:{disabled:{type:Boolean,default:!1},label:{type:String,required:!0},loading:{type:Boolean,default:!1}},emits:["click"],setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("button",{disabled:t.disabled||t.loading,class:e.normalizeClass(["loading-button",{loading:t.loading}]),onClick:o[0]||(o[0]=i=>n.$emit("click"))},[e.createElementVNode("div",qn,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)]),t.loading?(e.openBlock(),e.createBlock(Ee,{key:0})):e.createCommentVNode("",!0)],10,Gn))}}),Tt=ke(Yn,[["__scopeId","data-v-3fdbc7b3"]]),Un={name:"SubPane"},Xn={class:"sub-pane"};function Kn(t,n,o,i,a,l){return e.openBlock(),e.createElementBlock("div",Xn)}const Qn=ke(Un,[["render",Kn],["__scopeId","data-v-bf8003ec"]]);function Jn(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}const et=new WeakMap,eo=(...t)=>{var n;const o=t[0],i=(n=e.getCurrentInstance())==null?void 0:n.proxy;if(i==null&&!e.hasInjectionContext())throw new Error("injectLocal must be called in setup");return i&&et.has(i)&&o in et.get(i)?et.get(i)[o]:e.inject(...t)},vt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const to=Object.prototype.toString,no=t=>to.call(t)==="[object Object]",he=()=>{},oo=io();function io(){var t,n;return vt&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window?.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Lt(t){return t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t)}function ao(t){return e.getCurrentInstance()}function tt(t){return Array.isArray(t)?t:[t]}function lo(t,n=!0,o){ao()?e.onMounted(t,o):n?t():e.nextTick(t)}function ro(t,n,o){return e.watch(t,n,{...o,immediate:!0})}const Ie=vt?window:void 0;function Be(t){var n;const o=e.toValue(t);return(n=o?.$el)!=null?n:o}function le(...t){const n=[],o=()=>{n.forEach(s=>s()),n.length=0},i=(s,c,d,u)=>(s.addEventListener(c,d,u),()=>s.removeEventListener(c,d,u)),a=e.computed(()=>{const s=tt(e.toValue(t[0])).filter(c=>c!=null);return s.every(c=>typeof c!="string")?s:void 0}),l=ro(()=>{var s,c;return[(c=(s=a.value)==null?void 0:s.map(d=>Be(d)))!=null?c:[Ie].filter(d=>d!=null),tt(e.toValue(a.value?t[1]:t[0])),tt(e.unref(a.value?t[2]:t[1])),e.toValue(a.value?t[3]:t[2])]},([s,c,d,u])=>{if(o(),!s?.length||!c?.length||!d?.length)return;const f=no(u)?{...u}:u;n.push(...s.flatMap(p=>c.flatMap(k=>d.map(y=>i(p,k,y,f)))))},{flush:"post"}),r=()=>{l(),o()};return Jn(o),r}let xt=!1;function nt(t,n,o={}){const{window:i=Ie,ignore:a=[],capture:l=!0,detectIframe:r=!1,controls:s=!1}=o;if(!i)return s?{stop:he,cancel:he,trigger:he}:he;if(oo&&!xt){xt=!0;const E={passive:!0};Array.from(i.document.body.children).forEach(D=>le(D,"click",he,E)),le(i.document.documentElement,"click",he,E)}let c=!0;const d=E=>e.toValue(a).some(D=>{if(typeof D=="string")return Array.from(i.document.querySelectorAll(D)).some(g=>g===E.target||E.composedPath().includes(g));{const g=Be(D);return g&&(E.target===g||E.composedPath().includes(g))}});function u(E){const D=e.toValue(E);return D&&D.$.subTree.shapeFlag===16}function f(E,D){const g=e.toValue(E),C=g.$.subTree&&g.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(m=>m.el===D.target||D.composedPath().includes(m.el))}const p=E=>{const D=Be(t);if(E.target!=null&&!(!(D instanceof Element)&&u(t)&&f(t,E))&&!(!D||D===E.target||E.composedPath().includes(D))){if("detail"in E&&E.detail===0&&(c=!d(E)),!c){c=!0;return}n(E)}};let k=!1;const y=[le(i,"click",E=>{k||(k=!0,setTimeout(()=>{k=!1},0),p(E))},{passive:!0,capture:l}),le(i,"pointerdown",E=>{const D=Be(t);c=!d(E)&&!!(D&&!E.composedPath().includes(D))},{passive:!0}),r&&le(i,"blur",E=>{setTimeout(()=>{var D;const g=Be(t);((D=i.document.activeElement)==null?void 0:D.tagName)==="IFRAME"&&!g?.contains(i.document.activeElement)&&n(E)},0)},{passive:!0})].filter(Boolean),$=()=>y.forEach(E=>E());return s?{stop:$,cancel:()=>{c=!1},trigger:E=>{c=!0,p(E),c=!1}}:$}function so(){const t=e.shallowRef(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function co(t){const n=so();return e.computed(()=>(n.value,!!t()))}const fo=Symbol("vueuse-ssr-width");function uo(){const t=e.hasInjectionContext()?eo(fo,null):null;return typeof t=="number"?t:void 0}function mo(t,n={}){const{window:o=Ie,ssrWidth:i=uo()}=n,a=co(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function"),l=e.ref(typeof i=="number"),r=e.shallowRef(),s=e.shallowRef(!1),c=d=>{s.value=d.matches};return e.watchEffect(()=>{if(l.value){l.value=!a.value;const d=e.toValue(t).split(",");s.value=d.some(u=>{const f=u.includes("not all"),p=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),k=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let y=!!(p||k);return p&&y&&(y=i>=Lt(p[1])),k&&y&&(y=i<=Lt(k[1])),f?!y:y});return}a.value&&(r.value=o.matchMedia(e.toValue(t)),s.value=r.value.matches)}),le(r,"change",c,{passive:!0}),e.computed(()=>s.value)}function Pe(t={}){const{window:n=Ie,initialWidth:o=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0,type:r="inner"}=t,s=e.ref(o),c=e.ref(i),d=()=>{if(n)if(r==="outer")s.value=n.outerWidth,c.value=n.outerHeight;else if(r==="visual"&&n.visualViewport){const{width:f,height:p,scale:k}=n.visualViewport;s.value=Math.round(f*k),c.value=Math.round(p*k)}else l?(s.value=n.innerWidth,c.value=n.innerHeight):(s.value=n.document.documentElement.clientWidth,c.value=n.document.documentElement.clientHeight)};d(),lo(d);const u={passive:!0};if(le("resize",d,u),n&&r==="visual"&&n.visualViewport&&le(n.visualViewport,"resize",d,u),a){const f=mo("(orientation: portrait)");e.watch(f,()=>d())}return{width:s,height:c}}const ho={class:"modal-wrapper"},po={key:0,class:"modal-body"},go={class:"modal-footer"},Co={name:"ConfirmationModal"},ot=e.defineComponent({...Co,props:{divider:{default:!1,type:Boolean},disableBody:{default:!1,type:Boolean},disableHeader:{default:!1,type:Boolean}},emits:["on:confirm","on:close"],setup(t,{emit:n}){const o=n,i=t,a=e.ref();nt(a,c=>{s()});const l=e.computed(()=>["modal",i.divider&&"divided-modal"].filter(Boolean).join(" "));function r(){o("on:confirm")}function s(){o("on:close")}return(c,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.createElementVNode("div",ho,[e.createElementVNode("div",{ref_key:"dzangolabVueModal",ref:a,class:"modal-container"},[e.createElementVNode("div",{class:e.normalizeClass(["modal-header",{"disabled-header":t.disableHeader}])},[t.disableHeader?e.createCommentVNode("",!0):e.renderSlot(c.$slots,"header",{key:0},()=>[d[3]||(d[3]=e.createElementVNode("span",null,"Confirmation required",-1))]),(e.openBlock(),e.createElementBlock("svg",{"aria-label":"close modal",height:"1em",tabindex:"0",width:"1em",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",onClick:d[0]||(d[0]=u=>s())},d[4]||(d[4]=[e.createElementVNode("path",{fill:"currentColor",d:"M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94z"},null,-1)])))],2),t.disableBody?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",po,[e.renderSlot(c.$slots,"body",{},()=>[d[5]||(d[5]=e.createElementVNode("p",null,"Are you sure you want to proceed?",-1))])])),e.createElementVNode("div",go,[e.renderSlot(c.$slots,"footer",{},()=>[e.createVNode(H,{size:"small",label:"Cancel",severity:"secondary",onClick:d[1]||(d[1]=u=>s())}),e.createVNode(H,{size:"small",label:"Confirm",severity:"primary",onClick:d[2]||(d[2]=u=>r())})])])],512)])],2))}}),bo=["data-aria-orientation"],yo={name:"DividerElement"},wo=e.defineComponent({...yo,props:{orientation:{default:"horizontal",type:String,validator:t=>["horizontal","vertical"].includes(t)}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{"data-aria-orientation":t.orientation,class:"divider",role:"separator"},null,8,bo))}}),Ot={year:"numeric",month:"short",day:"numeric"},ko={...Ot,hour:"numeric",minute:"numeric",hour12:!0},Mt=(t,n,o)=>{if(!t)return null;const i={...Ot,...o},a=new Date(t).toLocaleDateString(n||"en-GB",i);return a==="Invalid Date"?null:a},_t=(t,n,o)=>{if(!t)return null;const i={...ko,...o},a=new Date(t).toLocaleDateString(n||"en-GB",i);return a==="Invalid Date"?null:a},Eo=t=>{const n=Math.floor(t/60).toString(),o=(t%60).toString().padStart(2,"0");return`${n}:${o}`},it=t=>{const{width:n,height:o}=Pe(),i={top:t.top,bottom:o.value-t.bottom,left:t.left,right:n.value-t.right},a=Math.max(...Object.values(i));return Object.keys(i).find(l=>i[l]===a)||"bottom"},at=t=>{const n=[];let o=t.parentElement;for(;o;){const i=window.getComputedStyle(o);(["auto","scroll"].includes(i.overflow)||["auto","scroll"].includes(i.overflowX)||["auto","scroll"].includes(i.overflowY))&&n.push(o),o=o.parentElement}return n},It=t=>t==="sessionStorage"?sessionStorage:localStorage;let lt=null;function Pt(t,n){const o=e.ref();return new Promise(i=>{e.watch(()=>t,a=>{lt&&clearTimeout(lt),lt=setTimeout(()=>{o.value=a,i(o)},n)},{immediate:!0})})}const Bo=["aria-expanded","aria-label"],So={name:"Popup"},At=e.defineComponent({...So,props:{ariaLabel:{default:"popup",type:String},offset:{type:Number,default:10},position:{type:String,default:null}},emits:["onClickOutside"],setup(t,{expose:n,emit:o}){const i=t,a=o,l=e.useSlots(),r=e.ref(null),s=e.ref(null),c=e.ref(null),d=e.ref(!1),u=e.ref("bottom"),f=e.ref({top:"0",left:"0"}),p=e.ref([]),{width:k,height:y}=Pe(),$=e.computed(()=>!!l.content);e.onBeforeUnmount(()=>{window.removeEventListener("scroll",D),window.removeEventListener("resize",D),p.value.forEach(({element:g,listener:C})=>{g.removeEventListener("scroll",C)})});const E=()=>{d.value=!d.value,d.value?e.nextTick(()=>{D(),window.addEventListener("scroll",D),window.addEventListener("resize",D),r.value&&at(r.value).forEach(C=>{const m=()=>D();C.addEventListener("scroll",m),p.value.push({element:C,listener:m})})}):(window.removeEventListener("scroll",D),window.removeEventListener("resize",D),p.value.forEach(({element:g,listener:C})=>{g.removeEventListener("scroll",C)}),p.value=[])},D=()=>{if(!c.value||!s.value)return;const g=c.value.getBoundingClientRect(),C=s.value.getBoundingClientRect();let m=0,w=0;const b=i.position||it(g),L=k.value-g.right<100,j=y.value-(g.bottom+C.height+i.offset)>=0,A=g.top-C.height-i.offset>=0;switch(b){case"top":m=A?g.top-C.height-i.offset:g.bottom+i.offset,w=L?g.right-C.width:g.left;break;case"bottom":m=j?g.bottom+i.offset:g.top-C.height-i.offset,w=L?g.right-C.width:g.left;break;case"left":w=g.left-C.width-i.offset,m=g.top;break;case"right":w=g.left+g.width+i.offset,m=g.top;break}const ee=y.value-(m+C.height),W=m;if(d.value=W>=0&&ee>=0,b==="right"||b==="left")w=Math.max(0,w);else{w+C.width>k.value&&(w=k.value-C.width),w=Math.max(0,w);const ie=y.value-C.height;m=Math.min(Math.max(m,0),ie)}f.value={top:`${m}px`,left:`${w}px`},u.value=b};return nt(r,()=>{d.value=!1,a("onClickOutside")}),n({isVisible:d,togglePopup:E}),(g,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dzangolabVueUIPopup",ref:r,class:"popup-container"},[e.createElementVNode("div",{ref_key:"dzangolabVueUIPopupTrigger",ref:c,"aria-expanded":!!d.value,"aria-label":t.ariaLabel,class:"popup-trigger",onClick:E},[e.renderSlot(g.$slots,"default")],8,Bo),d.value&&$.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dzangolabVueUIPopupContent",ref:s,class:e.normalizeClass(["popup-content",u.value]),style:e.normalizeStyle(f.value)},[e.renderSlot(g.$slots,"content")],6)):e.createCommentVNode("",!0)],512))}}),Do=["aria-label"],No={key:1,fill:"#0f0f0f",height:"1.5rem",stroke:"#0f0f0f",width:"1.5rem","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1792 1792"},Vo=["aria-label"],$o=["aria-disabled","onClick"],To={class:"menu-item"},vo={name:"Dropdown"},Ft=e.defineComponent({...vo,props:{icon:{default:void 0,type:String},label:{type:String,default:null},menu:{required:!0,type:Array}},emits:["select"],setup(t,{emit:n}){const o=t,i=n,a=e.ref(),l=e.computed(()=>o.menu.filter(s=>s.display!==!1)),r=s=>{s.disabled||(i("select",s),a.value.isVisible=!1)};return(s,c)=>(e.openBlock(),e.createBlock(At,{ref_key:"popup",ref:a,class:"dropdown-menu",position:"bottom",tabindex:"0"},{content:e.withCtx(()=>[e.createElementVNode("ul",{class:"dropdown-menu","aria-label":t.label+"dropdown menu",tabindex:"0"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,d=>(e.openBlock(),e.createElementBlock("li",{key:d.label,"aria-disabled":d.disabled?"true":"false",class:e.normalizeClass([[{disabled:d.disabled},d.class],"menu-item"]),tabindex:"0",onClick:u=>r(d)},[e.createElementVNode("span",To,[e.renderSlot(s.$slots,"`icon-${menuItem.key}`",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(d.icon)},null,2)]),e.createTextVNode(" "+e.toDisplayString(d.label),1)])],10,$o))),128))],8,Vo)]),default:e.withCtx(()=>[e.createElementVNode("div",{"aria-label":(t.label??"")+" dropdown",class:e.normalizeClass([{triggered:a.value?.isVisible},"dropdown-menu-trigger"])},[e.renderSlot(s.$slots,"default",{},()=>[t.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString(t.label),1),c[0]||(c[0]=e.createElementVNode("svg",{class:"dropdown-icon",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"stroke-width":"0"}),e.createElementVNode("g",{"stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M5.70711 9.71069C5.31658 10.1012 5.31658 10.7344 5.70711 11.1249L10.5993 16.0123C11.3805 16.7927 12.6463 16.7924 13.4271 16.0117L18.3174 11.1213C18.708 10.7308 18.708 10.0976 18.3174 9.70708C17.9269 9.31655 17.2937 9.31655 16.9032 9.70708L12.7176 13.8927C12.3271 14.2833 11.6939 14.2832 11.3034 13.8927L7.12132 9.71069C6.7308 9.32016 6.09763 9.32016 5.70711 9.71069Z",fill:"#0F0F0F"})])],-1))],64)):(e.openBlock(),e.createElementBlock("svg",No,c[1]||(c[1]=[e.createElementVNode("g",{"stroke-width":"0"},null,-1),e.createElementVNode("g",{"stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:"321.4",cy:"896.2",r:"171.2"}),e.createElementVNode("circle",{cx:"898.3",cy:"896.2",r:"171.2"}),e.createElementVNode("circle",{cx:"1469",cy:"896.2",r:"171.2"})],-1)])))])],10,Do)]),_:3},512))}}),Lo={class:"error"},xo={class:"code"},Oo={name:"Error"},zt=e.defineComponent({...Oo,props:{error:{required:!0,type:Object}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("p",Lo,[e.createTextVNode(e.toDisplayString(t.error.message)+" ",1),e.createElementVNode("span",xo,"("+e.toDisplayString(t.error.code)+")",1)]))}}),Mo={class:"errors"},_o={key:1},Io={name:"Errors"},Po=e.defineComponent({...Io,props:{errors:{required:!0,type:Array}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",Mo,[t.errors.length===1?(e.openBlock(),e.createBlock(zt,{key:0,error:t.errors[0]},null,8,["error"])):(e.openBlock(),e.createElementBlock("ul",_o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.errors,(i,a)=>(e.openBlock(),e.createElementBlock("li",{key:a},[e.createVNode(zt,{error:i},null,8,["error"])]))),128))]))]))}}),Ao={class:"confirmation-file-actions"},Fo={name:"ConfirmationFileActions"},zo=e.defineComponent({...Fo,props:{archiveConfirmationHeader:{default:"Archive file?",type:String},archiveConfirmationMessage:{default:"Are you sure you want to archive this file?",type:String},deleteConfirmationHeader:{default:"Delete file?",type:String},deleteConfirmationMessage:{default:"Are you sure you want to delete this file?",type:String},showArchiveConfirmation:Boolean,showDeleteConfirmation:Boolean},emits:["on:closeArchive","on:closeDelete","on:confirmArchive","on:confirmDelete"],setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",Ao,[t.showArchiveConfirmation?(e.openBlock(),e.createBlock(ot,{key:0,"onOn:close":o[0]||(o[0]=i=>n.$emit("on:closeArchive")),"onOn:confirm":o[1]||(o[1]=i=>n.$emit("on:confirmArchive"))},{header:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.archiveConfirmationHeader),1)]),body:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.archiveConfirmationMessage),1)]),_:1})):e.createCommentVNode("",!0),t.showDeleteConfirmation?(e.openBlock(),e.createBlock(ot,{key:1,"onOn:close":o[2]||(o[2]=i=>n.$emit("on:closeDelete")),"onOn:confirm":o[3]||(o[3]=i=>n.$emit("on:confirmDelete"))},{header:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.deleteConfirmationHeader),1)]),body:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.deleteConfirmationMessage),1)]),_:1})):e.createCommentVNode("",!0)]))}}),jo={class:"file-thumbnail-details-wrapper"},Ro={key:0,class:"file-thumbnail"},Ho={class:"details-wrapper"},Zo={class:"name-description-details-wrapper"},Go={key:0,class:"name"},qo={key:1,class:"file-size"},Wo={key:0,class:"description-wrapper-details"},Yo={key:0,class:"file-upload-download-details-wrapper"},Uo={key:0,class:"file-upload-details"},Xo={key:0,class:"uploaded-by"},Ko={key:1,class:"uploaded-at"},Qo={key:1,class:"file-download-details"},Jo={key:0,class:"download-count"},ei={key:1,class:"last-downloaded-at"},ti={key:0,class:"file-actions"},ni={name:"FileCard"},jt=e.defineComponent({...ni,props:{actionButtonsVisibility:{default:()=>({archive:!0,delete:!0,download:!0,share:!0,view:!0}),type:Object},allowEditDescription:Boolean,archiveButtonProps:{default:()=>{},type:Object},deleteButtonProps:{default:()=>{},type:Object},downloadButtonProps:{default:()=>{},type:Object},editDescriptionButtonProps:{default:()=>{},type:Object},file:{type:Object,required:!0},locale:{default:void 0,type:String},messages:{default:()=>{},type:Object},shareButtonProps:{default:()=>{},type:Object},showThumbnail:{default:!0,type:Boolean},viewButtonProps:{default:()=>({severity:"secondary"}),type:Object},visibilityDetail:{default:()=>({actions:!0,description:!0,downloadCount:!0,lastDownloadedAt:!0,originalFileName:!0,size:!0,uploadedAt:!0,uploadedBy:!0}),type:Object}},emits:["click:editDescription","on:archive","on:delete","on:download","on:share","on:view"],setup(t,{emit:n}){const o=t,i=n,a=e.ref(!1),l=e.ref(!1),r=u=>u.uploadedBy?u.uploadedBy.givenName||u.uploadedBy.lastName?`${u.uploadedBy.givenName||""} ${u.uploadedBy.lastName||""}`:u.uploadedBy.email:"—",s=u=>{switch(u){case"archive":case"delete":case"download":case"share":case"view":i(`on:${u}`,o.file);break}},c=()=>{s("archive"),a.value=!1},d=()=>{s("delete"),l.value=!1};return(u,f)=>(e.openBlock(),e.createBlock($t,{class:"file-card"},{default:e.withCtx(()=>[e.createElementVNode("div",jo,[t.showThumbnail||u.$slots.thumbnail?(e.openBlock(),e.createElementBlock("div",Ro,[e.renderSlot(u.$slots,"thumbnail",{},()=>[f[8]||(f[8]=e.createElementVNode("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.53 9L13 3.47C12.8595 3.32931 12.6688 3.25018 12.47 3.25H8C7.27065 3.25 6.57118 3.53973 6.05546 4.05546C5.53973 4.57118 5.25 5.27065 5.25 6V18C5.25 18.7293 5.53973 19.4288 6.05546 19.9445C6.57118 20.4603 7.27065 20.75 8 20.75H16C16.7293 20.75 17.4288 20.4603 17.9445 19.9445C18.4603 19.4288 18.75 18.7293 18.75 18V9.5C18.7421 9.3116 18.6636 9.13309 18.53 9ZM13.25 5.81L16.19 8.75H13.25V5.81ZM16 19.25H8C7.66848 19.25 7.35054 19.1183 7.11612 18.8839C6.8817 18.6495 6.75 18.3315 6.75 18V6C6.75 5.66848 6.8817 5.35054 7.11612 5.11612C7.35054 4.8817 7.66848 4.75 8 4.75H11.75V9.5C11.7526 9.69811 11.8324 9.88737 11.9725 10.0275C12.1126 10.1676 12.3019 10.2474 12.5 10.25H17.25V18C17.25 18.3315 17.1183 18.6495 16.8839 18.8839C16.6495 19.1183 16.3315 19.25 16 19.25Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M13.49 14.85C12.8751 14.4642 12.4124 13.8778 12.18 13.19C12.3953 12.5467 12.4603 11.8625 12.37 11.19C12.3412 11.0206 12.2586 10.865 12.1344 10.7462C12.0102 10.6274 11.8511 10.5518 11.6806 10.5305C11.5101 10.5092 11.3372 10.5433 11.1876 10.6279C11.038 10.7125 10.9197 10.843 10.85 11C10.7362 11.8085 10.822 12.6325 11.1 13.4C10.7202 14.2873 10.2963 15.1551 9.83001 16C9.12001 16.4 8.15001 17 8.00001 17.69C7.88001 18.25 8.93001 19.69 10.72 16.57C11.5159 16.2746 12.3312 16.034 13.16 15.85C13.7727 16.2003 14.4561 16.4088 15.16 16.46C15.3216 16.4642 15.4809 16.4206 15.6178 16.3345C15.7546 16.2484 15.863 16.1238 15.9292 15.9764C15.9955 15.8289 16.0167 15.6651 15.9901 15.5056C15.9636 15.3462 15.8905 15.1981 15.78 15.08C15.36 14.65 14.11 14.77 13.49 14.85ZM8.71001 17.85C8.99025 17.3705 9.36034 16.9495 9.80001 16.61C9.12001 17.69 8.71001 17.88 8.71001 17.86V17.85ZM11.63 11.04C11.89 11.04 11.87 12.19 11.69 12.5C11.5544 12.0285 11.5338 11.5312 11.63 11.05V11.04ZM10.76 15.92C11.0988 15.3019 11.3929 14.6602 11.64 14C11.9049 14.493 12.2734 14.9229 12.72 15.26C12.0491 15.4281 11.3934 15.6522 10.76 15.93V15.92ZM15.46 15.74C15.46 15.74 15.28 15.96 14.13 15.46C15.38 15.38 15.59 15.67 15.46 15.75V15.74Z",fill:"currentColor"})],-1))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Ho,[e.createElementVNode("div",Zo,[e.createElementVNode("div",null,[t.visibilityDetail.originalFileName?(e.openBlock(),e.createElementBlock("span",Go,e.toDisplayString(t.file.originalFileName),1)):e.createCommentVNode("",!0),t.file.size&&t.visibilityDetail.size?(e.openBlock(),e.createElementBlock("span",qo," ("+e.toDisplayString(t.file.size)+") ",1)):e.createCommentVNode("",!0)]),t.file.description&&t.visibilityDetail.description?(e.openBlock(),e.createElementBlock("div",Wo,[e.createElementVNode("span",null,e.toDisplayString(t.file.description),1),t.allowEditDescription?(e.openBlock(),e.createBlock(H,e.mergeProps({key:0},t.editDescriptionButtonProps,{size:"small",variant:"outlined",onClick:f[0]||(f[0]=p=>u.$emit("click:editDescription"))}),{iconLeft:e.withCtx(()=>f[9]||(f[9]=[e.createElementVNode("svg",{fill:"none",width:"20",viewBox:"0 -0.5 25 25",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2942 7.95881C13.5533 7.63559 13.5013 7.16358 13.178 6.90453C12.8548 6.64549 12.3828 6.6975 12.1238 7.02072L13.2942 7.95881ZM6.811 14.8488L7.37903 15.3385C7.38489 15.3317 7.39062 15.3248 7.39623 15.3178L6.811 14.8488ZM6.64 15.2668L5.89146 15.2179L5.8908 15.2321L6.64 15.2668ZM6.5 18.2898L5.7508 18.2551C5.74908 18.2923 5.75013 18.3296 5.75396 18.3667L6.5 18.2898ZM7.287 18.9768L7.31152 19.7264C7.36154 19.7247 7.41126 19.7181 7.45996 19.7065L7.287 18.9768ZM10.287 18.2658L10.46 18.9956L10.4716 18.9927L10.287 18.2658ZM10.672 18.0218L11.2506 18.4991L11.2571 18.491L10.672 18.0218ZM17.2971 10.959C17.5562 10.6358 17.5043 10.1638 17.1812 9.90466C16.8581 9.64552 16.386 9.69742 16.1269 10.0206L17.2971 10.959ZM12.1269 7.02052C11.8678 7.34365 11.9196 7.81568 12.2428 8.07484C12.5659 8.33399 13.0379 8.28213 13.2971 7.95901L12.1269 7.02052ZM14.3 5.50976L14.8851 5.97901C14.8949 5.96672 14.9044 5.95412 14.9135 5.94123L14.3 5.50976ZM15.929 5.18976L16.4088 4.61332C16.3849 4.59344 16.3598 4.57507 16.3337 4.5583L15.929 5.18976ZM18.166 7.05176L18.6968 6.52192C18.6805 6.50561 18.6635 6.49007 18.6458 6.47532L18.166 7.05176ZM18.5029 7.87264L19.2529 7.87676V7.87676L18.5029 7.87264ZM18.157 8.68976L17.632 8.15412C17.6108 8.17496 17.5908 8.19704 17.5721 8.22025L18.157 8.68976ZM16.1271 10.0203C15.8678 10.3433 15.9195 10.8153 16.2425 11.0746C16.5655 11.3339 17.0376 11.2823 17.2969 10.9593L16.1271 10.0203ZM13.4537 7.37862C13.3923 6.96898 13.0105 6.68666 12.6009 6.74805C12.1912 6.80943 11.9089 7.19127 11.9703 7.60091L13.4537 7.37862ZM16.813 11.2329C17.2234 11.1772 17.5109 10.7992 17.4552 10.3888C17.3994 9.97834 17.0215 9.69082 16.611 9.74659L16.813 11.2329ZM12.1238 7.02072L6.22577 14.3797L7.39623 15.3178L13.2942 7.95881L12.1238 7.02072ZM6.24297 14.359C6.03561 14.5995 5.91226 14.9011 5.89159 15.218L7.38841 15.3156C7.38786 15.324 7.38457 15.3321 7.37903 15.3385L6.24297 14.359ZM5.8908 15.2321L5.7508 18.2551L7.2492 18.3245L7.3892 15.3015L5.8908 15.2321ZM5.75396 18.3667C5.83563 19.1586 6.51588 19.7524 7.31152 19.7264L7.26248 18.2272C7.25928 18.2273 7.25771 18.2268 7.25669 18.2264C7.25526 18.2259 7.25337 18.2249 7.25144 18.2232C7.2495 18.2215 7.24825 18.2198 7.24754 18.2185C7.24703 18.2175 7.24637 18.216 7.24604 18.2128L5.75396 18.3667ZM7.45996 19.7065L10.46 18.9955L10.114 17.536L7.11404 18.247L7.45996 19.7065ZM10.4716 18.9927C10.7771 18.9151 11.05 18.7422 11.2506 18.499L10.0934 17.5445C10.0958 17.5417 10.0989 17.5397 10.1024 17.5388L10.4716 18.9927ZM11.2571 18.491L17.2971 10.959L16.1269 10.0206L10.0869 17.5526L11.2571 18.491ZM13.2971 7.95901L14.8851 5.97901L13.7149 5.04052L12.1269 7.02052L13.2971 7.95901ZM14.9135 5.94123C15.0521 5.74411 15.3214 5.6912 15.5243 5.82123L16.3337 4.5583C15.4544 3.99484 14.2873 4.2241 13.6865 5.0783L14.9135 5.94123ZM15.4492 5.7662L17.6862 7.6282L18.6458 6.47532L16.4088 4.61332L15.4492 5.7662ZM17.6352 7.58161C17.7111 7.6577 17.7535 7.761 17.7529 7.86852L19.2529 7.87676C19.2557 7.36905 19.0555 6.88127 18.6968 6.52192L17.6352 7.58161ZM17.7529 7.86852C17.7524 7.97604 17.7088 8.07886 17.632 8.15412L18.682 9.22541C19.0446 8.87002 19.2501 8.38447 19.2529 7.87676L17.7529 7.86852ZM17.5721 8.22025L16.1271 10.0203L17.2969 10.9593L18.7419 9.15928L17.5721 8.22025ZM11.9703 7.60091C12.3196 9.93221 14.4771 11.5503 16.813 11.2329L16.611 9.74659C15.0881 9.95352 13.6815 8.89855 13.4537 7.37862L11.9703 7.60091Z",fill:"currentColor"})],-1)])),_:1},16)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),t.visibilityDetail.uploadedAt||t.visibilityDetail.uploadedBy||t.visibilityDetail.lastDownloadedAt||t.visibilityDetail.downloadCount?(e.openBlock(),e.createElementBlock("div",Yo,[t.visibilityDetail.uploadedAt||t.visibilityDetail.uploadedBy?(e.openBlock(),e.createElementBlock("div",Uo,[t.visibilityDetail.uploadedBy?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("span",null,e.toDisplayString(t.messages?.uploadedByHeader||"Uploaded by"),1),e.createElementVNode("span",null,e.toDisplayString(r(t.file)),1)])):e.createCommentVNode("",!0),t.visibilityDetail.uploadedAt?(e.openBlock(),e.createElementBlock("div",Ko,[e.createElementVNode("span",null,e.toDisplayString(t.messages?.uploadedAtHeader||"Uploaded at"),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(_t)(t.file.uploadedAt,t.locale)),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.visibilityDetail.downloadCount||t.visibilityDetail.lastDownloadedAt?(e.openBlock(),e.createElementBlock("div",Qo,[t.visibilityDetail.downloadCount?(e.openBlock(),e.createElementBlock("div",Jo,[e.createElementVNode("span",null,e.toDisplayString(t.messages?.downloadCountHeader||"Downloads:"),1),e.createElementVNode("span",null,e.toDisplayString(t.file.downloadCount),1)])):e.createCommentVNode("",!0),t.visibilityDetail.lastDownloadedAt?(e.openBlock(),e.createElementBlock("div",ei,[e.createElementVNode("span",null,e.toDisplayString(t.messages?.lastDownloadedAtHeader||"Last download:"),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(Mt)(Number(t.file.lastDownloadedAt),t.locale)),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),t.visibilityDetail.actions?(e.openBlock(),e.createElementBlock("div",ti,[t.actionButtonsVisibility.archive?(e.openBlock(),e.createBlock(H,e.mergeProps({key:0},t.archiveButtonProps,{label:t.messages?.archiveAction||"Archive",size:"small",onClick:f[1]||(f[1]=p=>a.value=!0)}),{iconLeft:e.withCtx(()=>f[10]||(f[10]=[e.createElementVNode("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M4 19V6.2C4 5.0799 4 4.51984 4.21799 4.09202C4.40973 3.71569 4.71569 3.40973 5.09202 3.21799C5.51984 3 6.0799 3 7.2 3H16.8C17.9201 3 18.4802 3 18.908 3.21799C19.2843 3.40973 19.5903 3.71569 19.782 4.09202C20 4.51984 20 5.0799 20 6.2V17H6C4.89543 17 4 17.8954 4 19ZM4 19C4 20.1046 4.89543 21 6 21H20M9 7H15M9 11H15M19 17V21",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"})],-1)])),_:1},16,["label"])):e.createCommentVNode("",!0),t.actionButtonsVisibility.delete?(e.openBlock(),e.createBlock(H,e.mergeProps({key:1},t.deleteButtonProps,{label:t.messages?.deleteAction||"Delete",size:"small",onClick:f[2]||(f[2]=p=>l.value=!0)}),{iconLeft:e.withCtx(()=>f[11]||(f[11]=[e.createElementVNode("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6M18 6V16.2C18 17.8802 18 18.7202 17.673 19.362C17.3854 19.9265 16.9265 20.3854 16.362 20.673C15.7202 21 14.8802 21 13.2 21H10.8C9.11984 21 8.27976 21 7.63803 20.673C7.07354 20.3854 6.6146 19.9265 6.32698 19.362C6 18.7202 6 17.8802 6 16.2V6M14 10V17M10 10V17",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"})],-1)])),_:1},16,["label"])):e.createCommentVNode("",!0),t.actionButtonsVisibility.download?(e.openBlock(),e.createBlock(H,e.mergeProps({key:2},t.downloadButtonProps,{label:t.messages?.downloadAction||"Download",size:"small",onClick:f[3]||(f[3]=p=>s("download"))}),{iconLeft:e.withCtx(()=>f[12]||(f[12]=[e.createElementVNode("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.5535 16.5061C12.4114 16.6615 12.2106 16.75 12 16.75C11.7894 16.75 11.5886 16.6615 11.4465 16.5061L7.44648 12.1311C7.16698 11.8254 7.18822 11.351 7.49392 11.0715C7.79963 10.792 8.27402 10.8132 8.55352 11.1189L11.25 14.0682V3C11.25 2.58579 11.5858 2.25 12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V14.0682L15.4465 11.1189C15.726 10.8132 16.2004 10.792 16.5061 11.0715C16.8118 11.351 16.833 11.8254 16.5535 12.1311L12.5535 16.5061Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M3.75 15C3.75 14.5858 3.41422 14.25 3 14.25C2.58579 14.25 2.25 14.5858 2.25 15V15.0549C2.24998 16.4225 2.24996 17.5248 2.36652 18.3918C2.48754 19.2919 2.74643 20.0497 3.34835 20.6516C3.95027 21.2536 4.70814 21.5125 5.60825 21.6335C6.47522 21.75 7.57754 21.75 8.94513 21.75H15.0549C16.4225 21.75 17.5248 21.75 18.3918 21.6335C19.2919 21.5125 20.0497 21.2536 20.6517 20.6516C21.2536 20.0497 21.5125 19.2919 21.6335 18.3918C21.75 17.5248 21.75 16.4225 21.75 15.0549V15C21.75 14.5858 21.4142 14.25 21 14.25C20.5858 14.25 20.25 14.5858 20.25 15C20.25 16.4354 20.2484 17.4365 20.1469 18.1919C20.0482 18.9257 19.8678 19.3142 19.591 19.591C19.3142 19.8678 18.9257 20.0482 18.1919 20.1469C17.4365 20.2484 16.4354 20.25 15 20.25H9C7.56459 20.25 6.56347 20.2484 5.80812 20.1469C5.07435 20.0482 4.68577 19.8678 4.40901 19.591C4.13225 19.3142 3.9518 18.9257 3.85315 18.1919C3.75159 17.4365 3.75 16.4354 3.75 15Z",fill:"currentColor"})],-1)])),_:1},16,["label"])):e.createCommentVNode("",!0),t.actionButtonsVisibility.share?(e.openBlock(),e.createBlock(H,e.mergeProps({key:3},t.shareButtonProps,{label:t.messages?.shareAction||"Share",size:"small",onClick:f[4]||(f[4]=p=>s("share"))}),{iconLeft:e.withCtx(()=>f[13]||(f[13]=[e.createElementVNode("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"M16.5 2.25C14.7051 2.25 13.25 3.70507 13.25 5.5C13.25 5.69591 13.2673 5.88776 13.3006 6.07412L8.56991 9.38558C8.54587 9.4024 8.52312 9.42038 8.50168 9.43939C7.94993 9.00747 7.25503 8.75 6.5 8.75C4.70507 8.75 3.25 10.2051 3.25 12C3.25 13.7949 4.70507 15.25 6.5 15.25C7.25503 15.25 7.94993 14.9925 8.50168 14.5606C8.52312 14.5796 8.54587 14.5976 8.56991 14.6144L13.3006 17.9259C13.2673 18.1122 13.25 18.3041 13.25 18.5C13.25 20.2949 14.7051 21.75 16.5 21.75C18.2949 21.75 19.75 20.2949 19.75 18.5C19.75 16.7051 18.2949 15.25 16.5 15.25C15.4472 15.25 14.5113 15.7506 13.9174 16.5267L9.43806 13.3911C9.63809 12.9694 9.75 12.4978 9.75 12C9.75 11.5022 9.63809 11.0306 9.43806 10.6089L13.9174 7.4733C14.5113 8.24942 15.4472 8.75 16.5 8.75C18.2949 8.75 19.75 7.29493 19.75 5.5C19.75 3.70507 18.2949 2.25 16.5 2.25ZM14.75 5.5C14.75 4.5335 15.5335 3.75 16.5 3.75C17.4665 3.75 18.25 4.5335 18.25 5.5C18.25 6.4665 17.4665 7.25 16.5 7.25C15.5335 7.25 14.75 6.4665 14.75 5.5ZM6.5 10.25C5.5335 10.25 4.75 11.0335 4.75 12C4.75 12.9665 5.5335 13.75 6.5 13.75C7.4665 13.75 8.25 12.9665 8.25 12C8.25 11.0335 7.4665 10.25 6.5 10.25ZM16.5 16.75C15.5335 16.75 14.75 17.5335 14.75 18.5C14.75 19.4665 15.5335 20.25 16.5 20.25C17.4665 20.25 18.25 19.4665 18.25 18.5C18.25 17.5335 17.4665 16.75 16.5 16.75Z",fill:"currentColor","fill-rule":"evenodd"})],-1)])),_:1},16,["label"])):e.createCommentVNode("",!0),t.actionButtonsVisibility.view?(e.openBlock(),e.createBlock(H,e.mergeProps({key:4},t.viewButtonProps,{label:t.messages?.viewAction||"View",size:"small",onClick:f[5]||(f[5]=p=>s("view"))}),{iconLeft:e.withCtx(()=>f[14]||(f[14]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M15.0007 12C15.0007 13.6569 13.6576 15 12.0007 15C10.3439 15 9.00073 13.6569 9.00073 12C9.00073 10.3431 10.3439 9 12.0007 9C13.6576 9 15.0007 10.3431 15.0007 12Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"}),e.createElementVNode("path",{d:"M12.0012 5C7.52354 5 3.73326 7.94288 2.45898 12C3.73324 16.0571 7.52354 19 12.0012 19C16.4788 19 20.2691 16.0571 21.5434 12C20.2691 7.94291 16.4788 5 12.0012 5Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"})],-1)])),_:1},16,["label"])):e.createCommentVNode("",!0),e.createVNode(zo,{"archive-confirmation-header":t.messages?.archiveConfirmationHeader,"archive-confirmation-message":t.messages?.archiveConfirmationMessage,"delete-confirmation-header":t.messages?.deleteConfirmationHeader,"delete-confirmation-message":t.messages?.deleteConfirmationMessage,"show-archive-confirmation":a.value,"show-delete-confirmation":l.value,"onOn:closeArchive":f[6]||(f[6]=p=>a.value=!1),"onOn:closeDelete":f[7]||(f[7]=p=>l.value=!1),"onOn:confirmArchive":c,"onOn:confirmDelete":d},null,8,["archive-confirmation-header","archive-confirmation-message","delete-confirmation-header","delete-confirmation-message","show-archive-confirmation","show-delete-confirmation"])])):e.createCommentVNode("",!0)]),_:3}))}}),oi={class:"file-list-wrapper"},ii={name:"FilesList"},ai=e.defineComponent({...ii,props:{actionButtonsVisibility:{default:()=>({archive:!0,delete:!0,download:!0,edit:!0,share:!0,view:!0}),type:Object},archiveButtonProps:{default:()=>{},type:Object},deleteButtonProps:{default:()=>{},type:Object},downloadButtonProps:{default:()=>{},type:Object},editDescriptionButtonProps:{default:()=>{},type:Object},files:{required:!0,type:Array},locale:{default:void 0,type:String},messages:{default:()=>{},type:Object},shareButtonProps:{default:()=>{},type:Object},showThumbnail:{default:!0,type:Boolean},viewButtonProps:{default:void 0,type:Object},fileDetailVisibility:{default:()=>({actions:!0,description:!0,downloadCount:!0,lastDownloadedAt:!0,originalFileName:!0,size:!0,uploadedAt:!0,uploadedBy:!0}),type:Object}},emits:["action:archive","action:delete","action:download","action:edit","action:share","action:view"],setup(t,{emit:n}){const o=n,i=(a,l)=>{switch(a){case"archive":case"delete":case"download":case"edit":case"share":case"view":o(`action:${a}`,l);break}};return(a,l)=>(e.openBlock(),e.createElementBlock("div",oi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.files,r=>(e.openBlock(),e.createBlock(jt,{key:r.originalFileName,"action-buttons-visibility":t.actionButtonsVisibility,"allow-edit-description":t.actionButtonsVisibility?.edit,"archive-button-props":t.archiveButtonProps,"delete-button-props":t.deleteButtonProps,"download-button-props":t.downloadButtonProps,"edit-description-button-props":t.editDescriptionButtonProps,file:r,locale:t.locale,messages:t.messages,"share-button-props":t.shareButtonProps,"show-thumbnail":t.showThumbnail,"view-button-props":t.viewButtonProps,"visibility-detail":t.fileDetailVisibility,"onClick:editDescription":s=>i("edit",r),"onOn:archive":s=>i("archive",r),"onOn:delete":s=>i("delete",r),"onOn:download":s=>i("download",r),"onOn:share":s=>i("share",r),"onOn:view":s=>i("view",r)},e.createSlots({_:2},[a.$slots.thumbnail?{name:"thumbnail",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"thumbnail")]),key:"0"}:void 0]),1032,["action-buttons-visibility","allow-edit-description","archive-button-props","delete-button-props","download-button-props","edit-description-button-props","file","locale","messages","share-button-props","show-thumbnail","view-button-props","visibility-detail","onClick:editDescription","onOn:archive","onOn:delete","onOn:download","onOn:share","onOn:view"]))),128))]))}}),li={class:"field debounce-input"},ri=["aria-label","disabled","placeholder","type","value"],si={name:"DebouncedInput"},ci=e.defineComponent({...si,props:{ariaLabel:{default:"input",type:String},debounceTime:{default:500,required:!1,type:Number},disabled:{default:!1,type:Boolean},modelValue:{default:"",required:!1,type:[String,Number]},placeholder:{default:"Search...",required:!1,type:String},type:{default:"text",required:!1,type:String}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,i=n,a=l=>{const r=l.target.value;Pt(r,o.debounceTime).then(()=>{i("update:modelValue",r)})};return(l,r)=>(e.openBlock(),e.createElementBlock("div",li,[e.createElementVNode("input",{"aria-label":t.ariaLabel??t.placeholder,disabled:t.disabled,placeholder:t.placeholder,type:t.type,value:t.modelValue,class:"input-field",onInput:a},null,40,ri)]))}}),di={name:"GridContainer"},fi={class:"grid-container"};function ui(t,n,o,i,a,l){return e.openBlock(),e.createElementBlock("div",fi,[e.renderSlot(t.$slots,"default")])}const mi=ke(di,[["render",ui]]),hi={key:0,class:"loading-page"},pi={name:"LoadingPage"},Rt=e.defineComponent({...pi,props:{loading:{default:!1,type:Boolean}},setup(t){return(n,o)=>t.loading?(e.openBlock(),e.createElementBlock("div",hi,[e.createVNode(Ee,{class:"loading-icon"})])):e.createCommentVNode("",!0)}}),gi={class:"message-content"},Ci={key:1},bi={name:"Message"},yi=e.defineComponent({...bi,props:{enableClose:{default:!0,type:Boolean},icon:{default:null,type:String},message:{required:!0,type:String||Array},severity:{type:String,default:"info",validator:t=>["danger","info","success","tip","warning"].includes(t)},showIcon:{default:!0,type:Boolean}},emits:["close"],setup(t,{emit:n}){const o=n,i=e.useSlots(),a=e.ref(!0),l=()=>{a.value=!1,o("close")};return(r,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message",t.severity])},[t.icon||e.unref(i).icon||t.showIcon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["icon",{default:!t.icon&&!e.unref(i).icon&&t.showIcon}])},[(t.icon||e.unref(i).icon)&&t.showIcon?e.renderSlot(r.$slots,"icon",{key:0},()=>[e.createElementVNode("i",{class:e.normalizeClass(t.icon)},null,2)]):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",gi,[e.renderSlot(r.$slots,"default",{},()=>[Array.isArray(t.message)?t.message.length?(e.openBlock(),e.createElementBlock("ul",Ci,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.message,(c,d)=>(e.openBlock(),e.createElementBlock("li",{key:`message-${d}`},e.toDisplayString(c),1))),128))])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.message),1)],64))])]),t.enableClose?(e.openBlock(),e.createElementBlock("span",{key:1,class:"close-message",onClick:s[0]||(s[0]=c=>l())})):e.createCommentVNode("",!0)],2)),[[e.vShow,a.value]])}}),wi={class:"modal overlay"},ki={class:"header"},Ei={key:0,role:"heading"},Bi={key:0,class:"content"},Si={key:1,class:"footer"},Di={name:"Modal"},Ni=e.defineComponent({...Di,props:{dismissOnClickOut:{default:!0,type:Boolean},show:{default:!1,type:Boolean},size:{default:"medium",type:String,validator:t=>["auto","medium","large"].includes(t)},title:{default:"",type:String}},emits:["on:close"],setup(t,{emit:n}){const o=e.ref(),i=n,a=t,l=e.useSlots();nt(o,s=>{a.dismissOnClickOut&&r()});const r=()=>{i("on:close")};return(s,c)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",wi,[e.createElementVNode("div",{ref_key:"dzangolabVueModal",ref:o,class:e.normalizeClass(["dialog",t.size,{active:t.show}])},[e.createElementVNode("div",ki,[e.renderSlot(s.$slots,"header",{},()=>[t.title?(e.openBlock(),e.createElementBlock("span",Ei,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)]),(e.openBlock(),e.createElementBlock("svg",{"aria-label":"close modal",height:"1.5rem",tabindex:"0",width:"1.5rem",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",onClick:c[0]||(c[0]=d=>r())},c[1]||(c[1]=[e.createElementVNode("path",{fill:"currentColor",d:"M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94z"},null,-1)])))]),e.unref(l).default?(e.openBlock(),e.createElementBlock("div",Bi,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0),e.unref(l).footer?(e.openBlock(),e.createElementBlock("div",Si,[e.renderSlot(s.$slots,"footer")])):e.createCommentVNode("",!0)],2)],512)),[[e.vShow,t.show]])}}),Vi=["data-centered"],$i={class:"page-header"},Ti={class:"page-title-wrapper"},vi={class:"title"},Li={key:0,class:"title-tag"},xi={key:0},Oi={class:"page-toolbar"},Mi={class:"page-content"},_i={name:"Page"},Ht=e.defineComponent({..._i,props:{centered:Boolean,loading:Boolean,subTitle:{default:void 0,required:!1,type:String},title:{default:void 0,required:!1,type:String},titleElement:{default:"h1",type:String,validator:t=>["h1","h2","h3","h4","h5","h6"].includes(t)},titleTag:{default:void 0,type:String},toolbarActionsMenu:{default:()=>[],type:Array}},emits:["action:click"],setup(t,{emit:n}){const{width:o}=Pe(),i=t,a=n,l=e.computed(()=>o.value>576),r=e.computed(()=>i.toolbarActionsMenu.filter(c=>c.display!==!1)),s=c=>{a("action:click",c)};return(c,d)=>(e.openBlock(),e.createElementBlock("div",{class:"page","data-centered":t.centered},[e.createElementVNode("div",$i,[e.createElementVNode("div",Ti,[e.createElementVNode("div",vi,[t.title?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.titleElement),{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1})):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"titleTag",{},()=>[t.titleTag?(e.openBlock(),e.createElementBlock("span",Li,[e.createVNode(Vt,{label:t.titleTag},null,8,["label"])])):e.createCommentVNode("",!0)])]),e.renderSlot(c.$slots,"subtitle",{},()=>[t.subTitle?(e.openBlock(),e.createElementBlock("small",xi,e.toDisplayString(t.subTitle),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Oi,[e.renderSlot(c.$slots,"toolbar",{},()=>[r.value?.length&&!l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.value?.length>1?(e.openBlock(),e.createBlock(Ft,{key:0,menu:r.value,onSelect:d[0]||(d[0]=u=>s(u))},null,8,["menu"])):(e.openBlock(),e.createBlock(H,e.mergeProps({key:1},r.value[0],{"icon-left":String(r.value[0]?.icon??r.value[0]?.iconLeft),onClick:d[1]||(d[1]=u=>s(r.value[0]))}),null,16,["icon-left"]))],64)):r.value?.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(r.value,(u,f)=>(e.openBlock(),e.createBlock(H,e.mergeProps({ref_for:!0},u,{key:`${u?.label}-${f}`,"icon-left":String(u?.icon??u?.iconLeft),onClick:p=>s(u)}),null,16,["icon-left","onClick"]))),128)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Mi,[e.renderSlot(c.$slots,"default"),e.createVNode(Rt,{loading:t.loading},null,8,["loading"])])],8,Vi))}}),Ii={class:"menu"},Pi=["onClick"],Ai={name:"ResponsiveMenu"},Fi=e.defineComponent({...Ai,props:{routes:{required:!0,type:Array},activeRoute:{default:"",required:!1,type:String}},emits:["change-route"],setup(t){return(n,o)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("nav",Ii,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.routes,(a,l)=>(e.openBlock(),e.createElementBlock("li",{key:l,class:e.normalizeClass({active:t.activeRoute===a.route}),onClick:r=>n.$emit("change-route",a.route)},[e.createVNode(i,{to:{name:a.route}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.name),1)]),_:2},1032,["to"])],10,Pi))),128))])])}}});/*!
2
2
  * vue-draggable-next v2.2.0
3
3
  * (c) 2023 Anish George
4
4
  * @license MIT
@@ -32,6 +32,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
32
32
  type: PropType<IFile>;
33
33
  required: true;
34
34
  };
35
+ locale: {
36
+ default: undefined;
37
+ type: StringConstructor;
38
+ };
35
39
  messages: {
36
40
  default: () => void;
37
41
  type: PropType<FileMessages>;
@@ -95,6 +99,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
95
99
  type: PropType<IFile>;
96
100
  required: true;
97
101
  };
102
+ locale: {
103
+ default: undefined;
104
+ type: StringConstructor;
105
+ };
98
106
  messages: {
99
107
  default: () => void;
100
108
  type: PropType<FileMessages>;
@@ -140,6 +148,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
140
148
  deleteButtonProps: Record<string, any>;
141
149
  downloadButtonProps: Record<string, any>;
142
150
  editDescriptionButtonProps: Record<string, any>;
151
+ locale: string;
143
152
  messages: FileMessages;
144
153
  shareButtonProps: Record<string, any>;
145
154
  showThumbnail: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/FileCard/Index.vue.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoJhB,QAAQ,CAAC,KAAK,CAAC;;;;;cAKf,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cALtB,QAAQ,CAAC,KAAK,CAAC;;;;;cAKf,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAqlB/B,CAAC,CAAC,IAAgB,KAAK,GAAG;;AA3uBrC,wBAmwBc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/FileCard/Index.vue.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwJhB,QAAQ,CAAC,KAAK,CAAC;;;;;;;;;cASf,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cATtB,QAAQ,CAAC,KAAK,CAAC;;;;;;;;;cASf,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAulB/B,CAAC,CAAC,IAAgB,KAAK,GAAG;;AArvBrC,wBA6wBc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
@@ -32,6 +32,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
32
32
  required: true;
33
33
  type: PropType<IFile[]>;
34
34
  };
35
+ locale: {
36
+ default: undefined;
37
+ type: StringConstructor;
38
+ };
35
39
  messages: {
36
40
  default: () => void;
37
41
  type: PropType<FileMessages>;
@@ -93,6 +97,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
93
97
  required: true;
94
98
  type: PropType<IFile[]>;
95
99
  };
100
+ locale: {
101
+ default: undefined;
102
+ type: StringConstructor;
103
+ };
96
104
  messages: {
97
105
  default: () => void;
98
106
  type: PropType<FileMessages>;
@@ -135,6 +143,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
135
143
  deleteButtonProps: Record<string, any>;
136
144
  downloadButtonProps: Record<string, any>;
137
145
  editDescriptionButtonProps: Record<string, any>;
146
+ locale: string;
138
147
  messages: FileMessages;
139
148
  shareButtonProps: Record<string, any>;
140
149
  showThumbnail: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/FilesList/Index.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwHtC,QAAQ,CAAC,KAAK,EAAE,CAAC;;;;cAIhB,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAJvB,QAAQ,CAAC,KAAK,EAAE,CAAC;;;;cAIhB,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAsJ/B,CAAC,CAAC,IAAiB,KAAK,GAAG;;AA/QtC,wBA8Rc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/FilesList/Index.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4HtC,QAAQ,CAAC,KAAK,EAAE,CAAC;;;;;;;;cAQhB,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cARvB,QAAQ,CAAC,KAAK,EAAE,CAAC;;;;;;;;cAQhB,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAsJ/B,CAAC,CAAC,IAAiB,KAAK,GAAG;;AAvRtC,wBAsSc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefabs.tech/vue3-ui",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "Vue3 UI Component Library",
5
5
  "type": "module",
6
6
  "exports": {