@arche-mc2/vue-ui-lib 1.2.45 → 1.2.46

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 s1, openBlock as b, createElementBlock as S, mergeProps as g3, toDisplayString as q, ref as Z, computed as W, normalizeStyle as w1, normalizeClass as J, unref as S1, createCommentVNode as F, createElementVNode as I, createBlock as i1, renderSlot as J1, h as pe, Fragment as h1, Teleport as Ze, useModel as k4, watch as x1, withDirectives as Na, vModelCheckbox as D4, createVNode as t1, mergeModels as I4, resolveDynamicComponent as ja, normalizeProps as V4, withCtx as C1, onMounted as _3, nextTick as v3, getCurrentScope as B4, onScopeDispose as R4, getCurrentInstance as Ua, toRef as T4, readonly as H4, customRef as L4, shallowRef as $1, toValue as I1, useTemplateRef as De, renderList as E1, createTextVNode as x3, useSlots as Ka, onBeforeUnmount as Pa, withModifiers as Wa, onUnmounted as Qa, Transition as O4, watchEffect as F4, inject as a6 } from "vue";
1
+ import { defineComponent as s1, openBlock as b, createElementBlock as S, mergeProps as g3, toDisplayString as q, ref as Z, computed as P, normalizeStyle as w1, normalizeClass as J, unref as S1, createCommentVNode as F, createElementVNode as I, createBlock as i1, renderSlot as J1, h as pe, Fragment as h1, Teleport as Ze, useModel as k4, watch as x1, withDirectives as Na, vModelCheckbox as D4, createVNode as t1, mergeModels as I4, resolveDynamicComponent as ja, normalizeProps as V4, withCtx as C1, onMounted as _3, nextTick as v3, getCurrentScope as B4, onScopeDispose as R4, getCurrentInstance as Ua, toRef as T4, readonly as H4, customRef as L4, shallowRef as $1, toValue as I1, useTemplateRef as De, renderList as E1, createTextVNode as x3, useSlots as Ka, onBeforeUnmount as Pa, withModifiers as Wa, onUnmounted as Qa, Transition as O4, watchEffect as F4, inject as a6 } from "vue";
2
2
  const N4 = ["src", "alt"], j4 = {
3
3
  key: 1,
4
4
  class: "amc2-avatar__initials"
@@ -53,7 +53,7 @@ const G4 = ["width", "height", "fill"], J4 = { key: 0 }, _4 = ["href", "id"], Z4
53
53
  id: {}
54
54
  },
55
55
  setup(a) {
56
- const e = a, t = e.classIcon ?? "icon-container", i = Z(!1), n = W(() => ({
56
+ const e = a, t = e.classIcon ?? "icon-container", i = Z(!1), n = P(() => ({
57
57
  "--icon-color-primary": i.value && e.colorHover || e.color,
58
58
  "--icon-color-secondary": i.value && e.colorSecondaryHover || e.colorSecondary
59
59
  }));
@@ -96,7 +96,7 @@ const G4 = ["width", "height", "fill"], J4 = { key: 0 }, _4 = ["href", "id"], Z4
96
96
  style: t
97
97
  }));
98
98
  }
99
- }), tl = ["disabled", "inert", "id"], Ih = /* @__PURE__ */ s1({
99
+ }), tl = ["disabled", "inert", "id"], Vh = /* @__PURE__ */ s1({
100
100
  name: "ButtonBase",
101
101
  __name: "ButtonBase",
102
102
  props: {
@@ -4629,8 +4629,8 @@ function p7(a, e, t, i) {
4629
4629
  }
4630
4630
  let B = n.eventStore;
4631
4631
  for (let x of y.allows) {
4632
- let H = Object.assign(Object.assign({}, t), { range: g.range, allDay: w.allDay }), T = B.defs[w.defId], X = B.instances[m], P;
4633
- if (T ? P = new A1(e, T, X) : P = new A1(e, w), !x(k2(H, e), P))
4632
+ let H = Object.assign(Object.assign({}, t), { range: g.range, allDay: w.allDay }), T = B.defs[w.defId], X = B.instances[m], W;
4633
+ if (T ? W = new A1(e, T, X) : W = new A1(e, w), !x(k2(H, e), W))
4634
4634
  return !1;
4635
4635
  }
4636
4636
  }
@@ -8959,10 +8959,10 @@ class Dc extends c1 {
8959
8959
  null,
8960
8960
  this.renderHiddenGroups(z, e),
8961
8961
  w.map((v) => {
8962
- let { seg: B, rect: x } = v, H = B.eventRange.instance.instanceId, T = p || !!(!t[H] && x), X = It(x && x.span), P = !p && x ? this.computeSegHStyle(x) : { left: 0, right: 0 }, K = !!x && x.stackForward > 0, l1 = !!x && x.span.end - x.span.start < o;
8962
+ let { seg: B, rect: x } = v, H = B.eventRange.instance.instanceId, T = p || !!(!t[H] && x), X = It(x && x.span), W = !p && x ? this.computeSegHStyle(x) : { left: 0, right: 0 }, K = !!x && x.stackForward > 0, l1 = !!x && x.span.end - x.span.start < o;
8963
8963
  return A(
8964
8964
  "div",
8965
- { className: "fc-timegrid-event-harness" + (K ? " fc-timegrid-event-harness-inset" : ""), key: s || H, style: Object.assign(Object.assign({ visibility: T ? "" : "hidden" }, X), P) },
8965
+ { className: "fc-timegrid-event-harness" + (K ? " fc-timegrid-event-harness-inset" : ""), key: s || H, style: Object.assign(Object.assign({ visibility: T ? "" : "hidden" }, X), W) },
8966
8966
  A(jn, Object.assign({ seg: B, isDragging: i, isResizing: n, isDateSelecting: l, isSelected: H === h, isShort: l1 }, k3(B, m, g)))
8967
8967
  );
8968
8968
  })
@@ -9546,11 +9546,11 @@ function oa(a) {
9546
9546
  }
9547
9547
  if (n === U1 || (n === j1 || n === Z1) && l === O0) {
9548
9548
  z = X1;
9549
- var P = d && x === B && B.visualViewport ? B.visualViewport.width : (
9549
+ var W = d && x === B && B.visualViewport ? B.visualViewport.width : (
9550
9550
  // $FlowFixMe[prop-missing]
9551
9551
  x[T]
9552
9552
  );
9553
- h -= P - i.width, h *= o ? 1 : -1;
9553
+ h -= W - i.width, h *= o ? 1 : -1;
9554
9554
  }
9555
9555
  }
9556
9556
  var K = Object.assign({
@@ -9770,7 +9770,7 @@ function F0(a, e) {
9770
9770
  reference: x,
9771
9771
  element: z,
9772
9772
  placement: n
9773
- }), T = a2(Object.assign({}, z, H)), X = f === S0 ? T : x, P = {
9773
+ }), T = a2(Object.assign({}, z, H)), X = f === S0 ? T : x, W = {
9774
9774
  top: B.top - X.top + y.top,
9775
9775
  bottom: X.bottom - B.bottom + y.bottom,
9776
9776
  left: B.left - X.left + y.left,
@@ -9778,12 +9778,12 @@ function F0(a, e) {
9778
9778
  }, K = a.modifiersData.offset;
9779
9779
  if (f === S0 && K) {
9780
9780
  var l1 = K[n];
9781
- Object.keys(P).forEach(function(N) {
9781
+ Object.keys(W).forEach(function(N) {
9782
9782
  var R = [X1, Z1].indexOf(N) >= 0 ? 1 : -1, C = [j1, Z1].indexOf(N) >= 0 ? "y" : "x";
9783
- P[N] += l1[C] * R;
9783
+ W[N] += l1[C] * R;
9784
9784
  });
9785
9785
  }
9786
- return P;
9786
+ return W;
9787
9787
  }
9788
9788
  function S8(a, e) {
9789
9789
  e === void 0 && (e = {});
@@ -9823,8 +9823,8 @@ function k8(a) {
9823
9823
  flipVariations: m,
9824
9824
  allowedAutoPlacements: g
9825
9825
  }) : g1);
9826
- }, []), B = e.rects.reference, x = e.rects.popper, H = /* @__PURE__ */ new Map(), T = !0, X = v[0], P = 0; P < v.length; P++) {
9827
- var K = v[P], l1 = r3(K), N = g0(K) === p0, R = [j1, Z1].indexOf(l1) >= 0, C = R ? "width" : "height", k = F0(e, {
9826
+ }, []), B = e.rects.reference, x = e.rects.popper, H = /* @__PURE__ */ new Map(), T = !0, X = v[0], W = 0; W < v.length; W++) {
9827
+ var K = v[W], l1 = r3(K), N = g0(K) === p0, R = [j1, Z1].indexOf(l1) >= 0, C = R ? "width" : "height", k = F0(e, {
9828
9828
  placement: K,
9829
9829
  boundary: c,
9830
9830
  rootBoundary: d,
@@ -9959,7 +9959,7 @@ function F8(a) {
9959
9959
  altBoundary: c
9960
9960
  }), y = r3(e.placement), w = g0(e.placement), z = !w, v = q2(y), B = O8(v), x = e.modifiersData.popperOffsets, H = e.rects.reference, T = e.rects.popper, X = typeof g == "function" ? g(Object.assign({}, e.rects, {
9961
9961
  placement: e.placement
9962
- })) : g, P = typeof X == "number" ? {
9962
+ })) : g, W = typeof X == "number" ? {
9963
9963
  mainAxis: X,
9964
9964
  altAxis: X
9965
9965
  } : Object.assign({
@@ -9974,11 +9974,11 @@ function F8(a) {
9974
9974
  var N, R = v === "y" ? j1 : U1, C = v === "y" ? Z1 : X1, k = v === "y" ? "height" : "width", V = x[v], D = V + p[R], L = V - p[C], j = h ? -T[k] / 2 : 0, $ = w === p0 ? H[k] : T[k], o1 = w === p0 ? -T[k] : -H[k], f1 = e.elements.arrow, p1 = h && f1 ? Y2(f1) : {
9975
9975
  width: 0,
9976
9976
  height: 0
9977
- }, g1 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : qn(), k1 = g1[R], O1 = g1[C], R1 = V0(0, H[k], p1[k]), F1 = z ? H[k] / 2 - j - R1 - k1 - P.mainAxis : $ - R1 - k1 - P.mainAxis, y1 = z ? -H[k] / 2 + j + R1 + O1 + P.mainAxis : o1 + R1 + O1 + P.mainAxis, T1 = e.elements.arrow && Y0(e.elements.arrow), a3 = T1 ? v === "y" ? T1.clientTop || 0 : T1.clientLeft || 0 : 0, i3 = (N = K?.[v]) != null ? N : 0, J0 = V + F1 - i3 - a3, _0 = V + y1 - i3, w0 = V0(h ? Ye(D, J0) : D, V, h ? W3(L, _0) : L);
9977
+ }, g1 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : qn(), k1 = g1[R], O1 = g1[C], R1 = V0(0, H[k], p1[k]), F1 = z ? H[k] / 2 - j - R1 - k1 - W.mainAxis : $ - R1 - k1 - W.mainAxis, y1 = z ? -H[k] / 2 + j + R1 + O1 + W.mainAxis : o1 + R1 + O1 + W.mainAxis, T1 = e.elements.arrow && Y0(e.elements.arrow), a3 = T1 ? v === "y" ? T1.clientTop || 0 : T1.clientLeft || 0 : 0, i3 = (N = K?.[v]) != null ? N : 0, J0 = V + F1 - i3 - a3, _0 = V + y1 - i3, w0 = V0(h ? Ye(D, J0) : D, V, h ? W3(L, _0) : L);
9978
9978
  x[v] = w0, l1[v] = w0 - V;
9979
9979
  }
9980
9980
  if (r) {
9981
- var E0, Z0 = v === "x" ? j1 : U1, X0 = v === "x" ? Z1 : X1, d3 = x[B], z3 = B === "y" ? "height" : "width", z0 = d3 + p[Z0], T3 = d3 - p[X0], C0 = [j1, U1].indexOf(y) !== -1, $0 = (E0 = K?.[B]) != null ? E0 : 0, ee = C0 ? z0 : d3 - H[z3] - T[z3] - $0 + P.altAxis, te = C0 ? d3 + H[z3] + T[z3] - $0 - P.altAxis : T3, ae = h && C0 ? o8(ee, d3, te) : V0(h ? ee : z0, d3, h ? te : T3);
9981
+ var E0, Z0 = v === "x" ? j1 : U1, X0 = v === "x" ? Z1 : X1, d3 = x[B], z3 = B === "y" ? "height" : "width", z0 = d3 + p[Z0], T3 = d3 - p[X0], C0 = [j1, U1].indexOf(y) !== -1, $0 = (E0 = K?.[B]) != null ? E0 : 0, ee = C0 ? z0 : d3 - H[z3] - T[z3] - $0 + W.altAxis, te = C0 ? d3 + H[z3] + T[z3] - $0 - W.altAxis : T3, ae = h && C0 ? o8(ee, d3, te) : V0(h ? ee : z0, d3, h ? te : T3);
9982
9982
  x[B] = ae, l1[B] = ae - d3;
9983
9983
  }
9984
9984
  e.modifiersData[i] = l1;
@@ -10123,8 +10123,8 @@ function G8(a) {
10123
10123
  c.rects = {
10124
10124
  reference: P8(w, Y0(z), c.options.strategy === "fixed"),
10125
10125
  popper: Y2(z)
10126
- }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(P) {
10127
- return c.modifiersData[P.name] = Object.assign({}, P.data);
10126
+ }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(W) {
10127
+ return c.modifiersData[W.name] = Object.assign({}, W.data);
10128
10128
  });
10129
10129
  for (var v = 0; v < c.orderedModifiers.length; v++) {
10130
10130
  if (c.reset === !0) {
@@ -10590,12 +10590,12 @@ function C9(a, e) {
10590
10590
  }), x.addEventListener("mouseleave", function() {
10591
10591
  v.props.interactive && v.props.trigger.indexOf("mouseenter") >= 0 && R().addEventListener("mousemove", m);
10592
10592
  }), v;
10593
- function P() {
10593
+ function W() {
10594
10594
  var M = v.props.touch;
10595
10595
  return Array.isArray(M) ? M : [M, 0];
10596
10596
  }
10597
10597
  function K() {
10598
- return P()[0] === "hold";
10598
+ return W()[0] === "hold";
10599
10599
  }
10600
10600
  function l1() {
10601
10601
  var M;
@@ -10853,7 +10853,7 @@ function C9(a, e) {
10853
10853
  }
10854
10854
  function z0(M) {
10855
10855
  v.clearDelayTimeouts(), M && D("onTrigger", [v, M]), g1();
10856
- var O = k(!0), G = P(), u1 = G[0], r1 = G[1];
10856
+ var O = k(!0), G = W(), u1 = G[0], r1 = G[1];
10857
10857
  l3.isTouch && u1 === "hold" && r1 && (O = r1), O ? i = setTimeout(function() {
10858
10858
  v.show();
10859
10859
  }, O) : v.show();
@@ -10991,7 +10991,7 @@ Object.assign({}, Wn, {
10991
10991
  q0.setDefaultProps({
10992
10992
  render: o4
10993
10993
  });
10994
- const Vh = /* @__PURE__ */ s1({
10994
+ const Bh = /* @__PURE__ */ s1({
10995
10995
  __name: "CalendarBase",
10996
10996
  props: {
10997
10997
  events: {},
@@ -11001,7 +11001,7 @@ const Vh = /* @__PURE__ */ s1({
11001
11001
  },
11002
11002
  emits: ["onSelectDate", "onClickEvent", "onChangeView"],
11003
11003
  setup(a, { emit: e }) {
11004
- const t = a, i = e, n = W(() => {
11004
+ const t = a, i = e, n = P(() => {
11005
11005
  switch (t.initialView) {
11006
11006
  case "day":
11007
11007
  return "timeGridDay";
@@ -11012,7 +11012,7 @@ const Vh = /* @__PURE__ */ s1({
11012
11012
  default:
11013
11013
  return "dayGridMonth";
11014
11014
  }
11015
- }), l = W(() => t.btnToday ? "today" : ""), s = W(() => t.btnViewOption ? "dayGridMonth,timeGridWeek,timeGridDay" : ""), r = (d) => {
11015
+ }), l = P(() => t.btnToday ? "today" : ""), s = P(() => t.btnViewOption ? "dayGridMonth,timeGridWeek,timeGridDay" : ""), r = (d) => {
11016
11016
  i("onSelectDate", { start: d.startStr, end: d.endStr });
11017
11017
  }, o = (d) => {
11018
11018
  i("onClickEvent", {
@@ -11026,7 +11026,7 @@ const Vh = /* @__PURE__ */ s1({
11026
11026
  start: d.startStr,
11027
11027
  end: d.endStr
11028
11028
  });
11029
- }, c = W(() => ({
11029
+ }, c = P(() => ({
11030
11030
  plugins: [O5, lc, Wc],
11031
11031
  initialView: n.value,
11032
11032
  locale: Qc,
@@ -11192,7 +11192,7 @@ function A0(a) {
11192
11192
  function Ma(...a) {
11193
11193
  const e = [], t = () => {
11194
11194
  e.forEach((r) => r()), e.length = 0;
11195
- }, i = (r, o, u, c) => (r.addEventListener(o, u, c), () => r.removeEventListener(o, u, c)), n = W(() => {
11195
+ }, i = (r, o, u, c) => (r.addEventListener(o, u, c), () => r.removeEventListener(o, u, c)), n = P(() => {
11196
11196
  const r = Q3(I1(a[0])).filter((o) => o != null);
11197
11197
  return r.every((o) => typeof o != "string") ? r : void 0;
11198
11198
  }), l = u4(
@@ -11234,14 +11234,14 @@ function T9() {
11234
11234
  // @__NO_SIDE_EFFECTS__
11235
11235
  function d4(a) {
11236
11236
  const e = /* @__PURE__ */ T9();
11237
- return W(() => (e.value, !!a()));
11237
+ return P(() => (e.value, !!a()));
11238
11238
  }
11239
11239
  function H9(a, e, t = {}) {
11240
11240
  const { window: i = $2, ...n } = t;
11241
11241
  let l;
11242
11242
  const s = /* @__PURE__ */ d4(() => i && "MutationObserver" in i), r = () => {
11243
11243
  l && (l.disconnect(), l = void 0);
11244
- }, o = W(() => {
11244
+ }, o = P(() => {
11245
11245
  const f = I1(a), h = Q3(f).map(A0).filter(k9);
11246
11246
  return new Set(h);
11247
11247
  }), u = x1(
@@ -11264,7 +11264,7 @@ function L9(a, e, t = {}) {
11264
11264
  let l;
11265
11265
  const s = /* @__PURE__ */ d4(() => i && "ResizeObserver" in i), r = () => {
11266
11266
  l && (l.disconnect(), l = void 0);
11267
- }, o = W(() => {
11267
+ }, o = P(() => {
11268
11268
  const d = I1(a);
11269
11269
  return Array.isArray(d) ? d.map((f) => A0(f)) : [A0(d)];
11270
11270
  }), u = x1(
@@ -11330,7 +11330,7 @@ function x0(a) {
11330
11330
  function Ee(...a) {
11331
11331
  const e = [], t = () => {
11332
11332
  e.forEach((r) => r()), e.length = 0;
11333
- }, i = (r, o, u, c) => (r.addEventListener(o, u, c), () => r.removeEventListener(o, u, c)), n = W(() => {
11333
+ }, i = (r, o, u, c) => (r.addEventListener(o, u, c), () => r.removeEventListener(o, u, c)), n = P(() => {
11334
11334
  const r = Q3(I1(a[0])).filter((o) => o != null);
11335
11335
  return r.every((o) => typeof o != "string") ? r : void 0;
11336
11336
  }), l = u4(
@@ -11491,7 +11491,7 @@ function N9(a, e = !1) {
11491
11491
  const r = Lt(I1(a));
11492
11492
  !r || !t.value || (r2 && i?.(), r.style.overflow = n, Ot.delete(r), t.value = !1);
11493
11493
  };
11494
- return G0(s), W({
11494
+ return G0(s), P({
11495
11495
  get() {
11496
11496
  return t.value;
11497
11497
  },
@@ -11525,10 +11525,10 @@ const U9 = { class: "flyout-menu-container" }, K9 = {
11525
11525
  },
11526
11526
  emits: ["close"],
11527
11527
  setup(a, { emit: e }) {
11528
- const t = a, i = e, n = Z(!1), l = De("contentWrapper"), s = De("menuContainer"), r = Z({}), o = W(() => {
11528
+ const t = a, i = e, n = Z(!1), l = De("contentWrapper"), s = De("menuContainer"), r = Z({}), o = P(() => {
11529
11529
  const { bottom: m, top: g } = Ge(t.displayEl);
11530
11530
  return { bottom: m, top: g };
11531
- }), u = W(() => {
11531
+ }), u = P(() => {
11532
11532
  const { bottom: m, top: g } = Ge(l);
11533
11533
  return { bottom: m, top: g };
11534
11534
  }), c = () => {
@@ -11547,7 +11547,7 @@ const U9 = { class: "flyout-menu-container" }, K9 = {
11547
11547
  };
11548
11548
  }
11549
11549
  }));
11550
- }, h = W(() => `flyout-${t.position || "bottom"}`);
11550
+ }, h = P(() => `flyout-${t.position || "bottom"}`);
11551
11551
  return (m, g) => (b(), S("div", null, [
11552
11552
  I("div", U9, [
11553
11553
  I("div", {
@@ -11588,7 +11588,7 @@ const U9 = { class: "flyout-menu-container" }, K9 = {
11588
11588
  },
11589
11589
  emits: ["update:modelValue"],
11590
11590
  setup(a, { emit: e }) {
11591
- const t = a, i = e, n = W(() => ({ ...t.theme ?? {} })), l = (s) => {
11591
+ const t = a, i = e, n = P(() => ({ ...t.theme ?? {} })), l = (s) => {
11592
11592
  const r = s.target;
11593
11593
  i("update:modelValue", r.checked);
11594
11594
  };
@@ -11632,7 +11632,7 @@ const U9 = { class: "flyout-menu-container" }, K9 = {
11632
11632
  setup(a) {
11633
11633
  const e = a, t = Z(!1), i = Z({}), n = Z(null), l = Z(null), s = Z(!1);
11634
11634
  let r = null;
11635
- const o = Ka(), u = W(() => {
11635
+ const o = Ka(), u = P(() => {
11636
11636
  const h = o.content?.();
11637
11637
  return h && h?.length > 0 && h[0].children.length > 0 ? "visible" : "hidden";
11638
11638
  }), c = async () => {
@@ -14105,13 +14105,13 @@ function b4() {
14105
14105
  x[$] = C, D = $;
14106
14106
  }
14107
14107
  return !V && D && (B = D), D || !V && B;
14108
- }, P = function(R, C) {
14108
+ }, W = function(R, C) {
14109
14109
  if (T(R)) return R.clone();
14110
14110
  var k = typeof C == "object" ? C : {};
14111
14111
  return k.date = R, k.args = arguments, new l1(k);
14112
14112
  }, K = v;
14113
14113
  K.l = X, K.i = T, K.w = function(R, C) {
14114
- return P(R, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
14114
+ return W(R, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
14115
14115
  };
14116
14116
  var l1 = (function() {
14117
14117
  function R(k) {
@@ -14141,12 +14141,12 @@ function b4() {
14141
14141
  }, C.isValid = function() {
14142
14142
  return this.$d.toString() !== g;
14143
14143
  }, C.isSame = function(k, V) {
14144
- var D = P(k);
14144
+ var D = W(k);
14145
14145
  return this.startOf(V) <= D && D <= this.endOf(V);
14146
14146
  }, C.isAfter = function(k, V) {
14147
- return P(k) < this.startOf(V);
14147
+ return W(k) < this.startOf(V);
14148
14148
  }, C.isBefore = function(k, V) {
14149
- return this.endOf(V) < P(k);
14149
+ return this.endOf(V) < W(k);
14150
14150
  }, C.$g = function(k, V, D) {
14151
14151
  return K.u(k) ? this[V] : this.set(D, k);
14152
14152
  }, C.unix = function() {
@@ -14197,7 +14197,7 @@ function b4() {
14197
14197
  var D, L = this;
14198
14198
  k = Number(k);
14199
14199
  var j = K.p(V), $ = function(p1) {
14200
- var g1 = P(L);
14200
+ var g1 = W(L);
14201
14201
  return K.w(g1.date(g1.date() + Math.round(p1 * k)), L);
14202
14202
  };
14203
14203
  if (j === d) return this.set(d, this.$M + k);
@@ -14277,7 +14277,7 @@ function b4() {
14277
14277
  }, C.utcOffset = function() {
14278
14278
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
14279
14279
  }, C.diff = function(k, V, D) {
14280
- var L, j = this, $ = K.p(V), o1 = P(k), f1 = (o1.utcOffset() - this.utcOffset()) * i, p1 = this - o1, g1 = function() {
14280
+ var L, j = this, $ = K.p(V), o1 = W(k), f1 = (o1.utcOffset() - this.utcOffset()) * i, p1 = this - o1, g1 = function() {
14281
14281
  return K.m(j, o1);
14282
14282
  };
14283
14283
  switch ($) {
@@ -14329,15 +14329,15 @@ function b4() {
14329
14329
  return this.$d.toUTCString();
14330
14330
  }, R;
14331
14331
  })(), N = l1.prototype;
14332
- return P.prototype = N, [["$ms", l], ["$s", s], ["$m", r], ["$H", o], ["$W", u], ["$M", d], ["$y", h], ["$D", m]].forEach((function(R) {
14332
+ return W.prototype = N, [["$ms", l], ["$s", s], ["$m", r], ["$H", o], ["$W", u], ["$M", d], ["$y", h], ["$D", m]].forEach((function(R) {
14333
14333
  N[R[1]] = function(C) {
14334
14334
  return this.$g(C, R[0], R[1]);
14335
14335
  };
14336
- })), P.extend = function(R, C) {
14337
- return R.$i || (R(C, l1, P), R.$i = !0), P;
14338
- }, P.locale = X, P.isDayjs = T, P.unix = function(R) {
14339
- return P(1e3 * R);
14340
- }, P.en = x[B], P.Ls = x, P.p = {}, P;
14336
+ })), W.extend = function(R, C) {
14337
+ return R.$i || (R(C, l1, W), R.$i = !0), W;
14338
+ }, W.locale = X, W.isDayjs = T, W.unix = function(R) {
14339
+ return W(1e3 * R);
14340
+ }, W.en = x[B], W.Ls = x, W.p = {}, W;
14341
14341
  }));
14342
14342
  })(Ce)), Ce.exports;
14343
14343
  }
@@ -14466,12 +14466,12 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14466
14466
  },
14467
14467
  emits: ["updateNavDate", "updateNavType"],
14468
14468
  setup(a, { emit: e }) {
14469
- const t = a, i = e, n = Z(t.navigationDate), l = W(() => d1(t.navigationDate).format("MMMM")), s = W(() => d1(t.navigationDate).format("YYYY")), r = W(() => {
14469
+ const t = a, i = e, n = Z(t.navigationDate), l = P(() => d1(t.navigationDate).format("MMMM")), s = P(() => d1(t.navigationDate).format("YYYY")), r = P(() => {
14470
14470
  const c = Number(s.value);
14471
14471
  return `${c - 8} - ${c + 7}`;
14472
- }), o = W(
14472
+ }), o = P(
14473
14473
  () => [z1.Day, z1.Month].includes(t.navType)
14474
- ), u = W(() => (c) => {
14474
+ ), u = P(() => (c) => {
14475
14475
  const d = (f) => c === "left" ? -f : f;
14476
14476
  switch (t.navType) {
14477
14477
  case z1.Day:
@@ -14552,7 +14552,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14552
14552
  setup(a, { emit: e }) {
14553
14553
  const t = a, i = e, n = Z(t.navigationDate), l = Mu(void 0, { dayFormat: "ddd" }).map(({ day: p }) => p), s = (p) => t.min === void 0 || p.isAfter(d1(t.min).startOf("day")), r = (p) => t.max === void 0 || p.isBefore(d1(t.max).endOf("day")), o = (p) => s(p) && r(p), u = (p) => {
14554
14554
  n.value = p;
14555
- }, c = W(() => {
14555
+ }, c = P(() => {
14556
14556
  const p = [];
14557
14557
  let y = parseInt(Eu(t.navigationDate));
14558
14558
  y === 0 && (y = 7);
@@ -14570,7 +14570,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14570
14570
  });
14571
14571
  }
14572
14572
  return p.reverse(), p;
14573
- }), d = W(() => {
14573
+ }), d = P(() => {
14574
14574
  const p = [];
14575
14575
  for (let y = 1; y <= zu(t.navigationDate); y++) {
14576
14576
  const w = d1(t.navigationDate).date(y), z = t.selectedDate !== void 0 && Cu(t.selectedDate, w.toDate()), v = o(d1(t.navigationDate).date(y));
@@ -14585,10 +14585,10 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14585
14585
  });
14586
14586
  }
14587
14587
  return p;
14588
- }), f = W(() => [
14588
+ }), f = P(() => [
14589
14589
  ...c.value,
14590
14590
  ...d.value
14591
- ]), h = W(() => {
14591
+ ]), h = P(() => {
14592
14592
  const p = [];
14593
14593
  let y = [];
14594
14594
  f.value.forEach((z, v) => {
@@ -14625,7 +14625,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14625
14625
  p[z] = v;
14626
14626
  }
14627
14627
  return p;
14628
- }), m = W(() => [...Array(4).keys()].map((w) => {
14628
+ }), m = P(() => [...Array(4).keys()].map((w) => {
14629
14629
  const z = w * 3;
14630
14630
  return Su.slice(z, z + 3).map((B, x) => {
14631
14631
  const H = d1(t.navigationDate).month(z + x);
@@ -14634,7 +14634,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14634
14634
  onClick: () => u(H.toDate())
14635
14635
  };
14636
14636
  });
14637
- })), g = W(() => {
14637
+ })), g = P(() => {
14638
14638
  const z = Number(xu(t.navigationDate)) - 8, v = [];
14639
14639
  for (let B = z; B < z + 16; B++)
14640
14640
  v.push(B);
@@ -14773,7 +14773,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14773
14773
  date: "Date"
14774
14774
  }, l = e, s = Z(t.modelValue ?? ""), r = Z(s.value !== ""), o = Z(!1), u = Z(!1), c = Z(null), d = Z({}), f = Z([]), h = Z(!1), m = Z(null);
14775
14775
  let g = null;
14776
- const p = W(() => t.type === "password" ? i.value ? "text" : "password" : t.type === "date" ? "text" : t.type ?? "text"), y = W(() => i.value ? "eye-off" : "eye"), w = W(() => t.clearable === !0 && t.modelValue !== "" && !t.disabled), z = W(() => t.passwordControl && t.type === "password" && t.modelValue !== ""), v = W(() => t.label && t.modelValue === "" ? "absolute" : "relative"), B = () => {
14776
+ const p = P(() => t.type === "password" ? i.value ? "text" : "password" : t.type === "date" ? "text" : t.type ?? "text"), y = P(() => i.value ? "eye-off" : "eye"), w = P(() => t.clearable === !0 && t.modelValue !== "" && !t.disabled), z = P(() => t.passwordControl && t.type === "password" && t.modelValue !== ""), v = P(() => t.label && t.modelValue === "" ? "absolute" : "relative"), B = () => {
14777
14777
  if (!t.suggestions) return;
14778
14778
  const V = String(s.value).toLowerCase();
14779
14779
  f.value = t.suggestions.filter(
@@ -14812,7 +14812,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14812
14812
  year: "numeric"
14813
14813
  });
14814
14814
  u.value = !1, l("update:modelValue", D), g && (g.value = D);
14815
- }, P = () => {
14815
+ }, W = () => {
14816
14816
  r.value = !0, t.type === "date" && g && (u.value = !0, g.updateOptions({ lazy: !1 })), h.value = !0;
14817
14817
  }, K = () => {
14818
14818
  setTimeout(() => {
@@ -14828,7 +14828,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14828
14828
  return !isNaN($.getTime()) && $.getFullYear() === j && $.getMonth() === L - 1 && $.getDate() === D;
14829
14829
  }, N = () => {
14830
14830
  t.type === "date" && (o.value = !1, r.value = !1, g?.updateOptions({ lazy: !0 })), l("update:modelValue", "");
14831
- }, R = W(() => t.label !== void 0 && t.placeholder === void 0 && t.iconName === void 0 && (t.modelValue === "" || t.modelValue === void 0)), C = () => {
14831
+ }, R = P(() => t.label !== void 0 && t.placeholder === void 0 && t.iconName === void 0 && (t.modelValue === "" || t.modelValue === void 0)), C = () => {
14832
14832
  i.value = !i.value;
14833
14833
  }, k = () => t.placeholder ? t.placeholder : t.label ? "" : n[t.type ?? "text"] ?? "Saisissez une valeur";
14834
14834
  return _3(() => {
@@ -14877,7 +14877,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14877
14877
  placeholder: k(),
14878
14878
  autocomplete: "off",
14879
14879
  onInput: T,
14880
- onFocus: P,
14880
+ onFocus: W,
14881
14881
  onBlur: K
14882
14882
  }, null, 40, qu)) : (b(), S("input", {
14883
14883
  key: 1,
@@ -14888,7 +14888,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14888
14888
  placeholder: k(),
14889
14889
  autocomplete: "off",
14890
14890
  onInput: T,
14891
- onFocus: P,
14891
+ onFocus: W,
14892
14892
  onBlur: K
14893
14893
  }, null, 40, Gu)),
14894
14894
  I("div", {
@@ -14917,7 +14917,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14917
14917
  t1(a1, {
14918
14918
  class: J(["amc2-input-icon", o.value ? "alert-circle" : "calendar"]),
14919
14919
  iconName: o.value ? "alert-circle" : "calendar",
14920
- onClick: P
14920
+ onClick: W
14921
14921
  }, null, 8, ["class", "iconName"])
14922
14922
  ])) : F("", !0)
14923
14923
  ], 2),
@@ -14973,7 +14973,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14973
14973
  }, ud = { class: "datagrid-settings-header" }, dd = { class: "col-selection-container" }, hd = { class: "col-selection-options" }, fd = { class: "col-selection-option-text" }, pd = {
14974
14974
  key: 0,
14975
14975
  class: "datagrid-tbody-cell datagrid-cell datagrid-checkbox-col"
14976
- }, vd = { class: "datagrid-action-menu-container" }, md = { class: "datagrid-loader" }, Oa = 1500, Bh = /* @__PURE__ */ s1({
14976
+ }, vd = { class: "datagrid-action-menu-container" }, md = { class: "datagrid-loader" }, Oa = 1500, Rh = /* @__PURE__ */ s1({
14977
14977
  __name: "DataGrid",
14978
14978
  props: {
14979
14979
  headers: {},
@@ -14988,14 +14988,14 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
14988
14988
  },
14989
14989
  emits: ["loadMore", "updateCheckItem", "updateCheckAll"],
14990
14990
  setup(a, { expose: e, emit: t }) {
14991
- const i = a, n = t, l = Z(), s = Z(), r = { height: "17", width: "17" }, o = De("displayContainer"), u = De("settingsCol"), c = Z(""), { right: d, update: f } = Ge(l), { right: h, update: m } = Ge(u), g = W(
14991
+ const i = a, n = t, l = Z(), s = Z(), r = { height: "17", width: "17" }, o = De("displayContainer"), u = De("settingsCol"), c = Z(""), { right: d, update: f } = Ge(l), { right: h, update: m } = Ge(u), g = P(
14992
14992
  () => i.headers.filter((N) => N.visibility.isShown)
14993
- ), p = W(
14993
+ ), p = P(
14994
14994
  () => i.headers.filter((N) => {
14995
14995
  const R = Da(N.label), C = Da(c.value);
14996
14996
  return R.toLowerCase().includes(C.toLowerCase());
14997
14997
  })
14998
- ), y = W(() => {
14998
+ ), y = P(() => {
14999
14999
  let N = g.value.length + (i.selection ? 2 : 1);
15000
15000
  return (i.displaySettings || i.displaySettingsHeader) && N++, { gridColumn: `1 / ${N}` };
15001
15001
  }), w = (N) => {
@@ -15035,7 +15035,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15035
15035
  n("updateCheckItem", N.id, N.isSelected);
15036
15036
  }, B = (N) => {
15037
15037
  n("updateCheckAll", N.target.checked);
15038
- }, x = W(() => {
15038
+ }, x = P(() => {
15039
15039
  const N = h.value - d.value, R = N <= 0;
15040
15040
  return {
15041
15041
  isFullyVisible: R,
@@ -15053,7 +15053,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15053
15053
  }
15054
15054
  ), T = () => {
15055
15055
  s.value && H.observe(s.value);
15056
- }, X = () => o.value?.scrollTo(0, 0), P = async () => {
15056
+ }, X = () => o.value?.scrollTo(0, 0), W = async () => {
15057
15057
  await v3(), l.value && l.value.scrollTo({
15058
15058
  left: l.value.scrollWidth - l.value.clientWidth,
15059
15059
  behavior: "instant"
@@ -15178,7 +15178,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15178
15178
  modelValue: C.visibility.isShown,
15179
15179
  "onUpdate:modelValue": (k) => C.visibility.isShown = k,
15180
15180
  onChange: () => {
15181
- C.visibility.update(C.visibility.isShown), P();
15181
+ C.visibility.update(C.visibility.isShown), W();
15182
15182
  }
15183
15183
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "onChange"])
15184
15184
  ]))), 128))
@@ -15309,15 +15309,15 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15309
15309
  },
15310
15310
  emits: ["update:modelValue"],
15311
15311
  setup(a, { emit: e }) {
15312
- const t = a, i = e, n = Z(""), l = W({
15312
+ const t = a, i = e, n = Z(""), l = P({
15313
15313
  get: () => t.modelValue,
15314
15314
  set: (c) => i("update:modelValue", c)
15315
- }), s = (c) => l.value.some((d) => d.value === c), r = W(() => {
15315
+ }), s = (c) => l.value.some((d) => d.value === c), r = P(() => {
15316
15316
  const c = n.value.toLowerCase();
15317
15317
  return t.options.filter(
15318
15318
  (d) => d.label.toString().toLowerCase().includes(c)
15319
15319
  );
15320
- }), o = W({
15320
+ }), o = P({
15321
15321
  get: () => r.value.length > 0 && r.value.every(
15322
15322
  (c) => l.value.some((d) => d.value === c.value)
15323
15323
  ),
@@ -15403,7 +15403,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15403
15403
  ], 2)
15404
15404
  ]));
15405
15405
  }
15406
- }), Md = { class: "modal" }, Sd = { class: "header-title" }, xd = { class: "modal-content" }, Rh = /* @__PURE__ */ s1({
15406
+ }), Md = { class: "modal" }, Sd = { class: "header-title" }, xd = { class: "modal-content" }, Th = /* @__PURE__ */ s1({
15407
15407
  __name: "ModalBase",
15408
15408
  props: {
15409
15409
  visible: { type: Boolean },
@@ -15430,7 +15430,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15430
15430
  ])
15431
15431
  ], 2)) : F("", !0);
15432
15432
  }
15433
- }), kd = ["disabled", "checked"], Dd = { key: 1 }, Th = /* @__PURE__ */ s1({
15433
+ }), kd = ["disabled", "checked"], Dd = { key: 1 }, Hh = /* @__PURE__ */ s1({
15434
15434
  __name: "RadioBase",
15435
15435
  props: {
15436
15436
  label: {},
@@ -15443,7 +15443,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15443
15443
  },
15444
15444
  emits: ["update:modelValue"],
15445
15445
  setup(a, { emit: e }) {
15446
- const t = a, i = e, n = W(() => ({
15446
+ const t = a, i = e, n = P(() => ({
15447
15447
  ...t.theme
15448
15448
  })), l = () => {
15449
15449
  t.disabled || i("update:modelValue", t.value);
@@ -15466,7 +15466,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15466
15466
  a.label ? (b(), S("span", Dd, q(a.label), 1)) : F("", !0)
15467
15467
  ], 6));
15468
15468
  }
15469
- }), Id = { class: "slot-container" }, Vd = ["disabled"], Bd = { class: "slot-container" }, Rd = ["disabled"], Td = { class: "slot-container" }, Hd = ["disabled"], Hh = /* @__PURE__ */ s1({
15469
+ }), Id = { class: "slot-container" }, Vd = ["disabled"], Bd = { class: "slot-container" }, Rd = ["disabled"], Td = { class: "slot-container" }, Hd = ["disabled"], Lh = /* @__PURE__ */ s1({
15470
15470
  __name: "SegmentedButton",
15471
15471
  props: {
15472
15472
  iconLeft: { default: "arrow-down-a-z" },
@@ -15486,7 +15486,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15486
15486
  setup(a, { emit: e }) {
15487
15487
  const t = a, i = e, n = (s) => {
15488
15488
  t.disabled || i("update:modelValue", s);
15489
- }, l = W(() => ({
15489
+ }, l = P(() => ({
15490
15490
  "--on-color": t.theme?.["amc2-segmented-button-on-color"],
15491
15491
  "--on-hover-color": t.theme?.["amc2-segmented-button-on-hover-color"],
15492
15492
  "--off-color": t.theme?.["amc2-segmented-button-off-color"],
@@ -15578,7 +15578,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15578
15578
  },
15579
15579
  emits: ["update:modelValue", "clear"],
15580
15580
  setup(a, { emit: e }) {
15581
- const t = a, i = e, n = W(() => t.modelValue !== null);
15581
+ const t = a, i = e, n = P(() => t.modelValue !== null);
15582
15582
  function l() {
15583
15583
  i("update:modelValue", null), i("clear");
15584
15584
  }
@@ -15614,9 +15614,9 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15614
15614
  },
15615
15615
  emits: ["update:modelValue", "clearAll", "clear"],
15616
15616
  setup(a, { emit: e }) {
15617
- const t = a, i = e, n = Z(null), l = Z(null), s = Z(t.modelValue.length), r = W(
15617
+ const t = a, i = e, n = Z(null), l = Z(null), s = Z(t.modelValue.length), r = P(
15618
15618
  () => t.modelValue.slice(0, s.value)
15619
- ), o = W(() => t.modelValue.slice(s.value)), u = W(() => !t.disabled && t.clearable && t.modelValue.length > 0);
15619
+ ), o = P(() => t.modelValue.slice(s.value)), u = P(() => !t.disabled && t.clearable && t.modelValue.length > 0);
15620
15620
  function c(h) {
15621
15621
  const m = [...t.modelValue], g = m[h];
15622
15622
  m.splice(h, 1), i("update:modelValue", m), i("clear", g);
@@ -15714,7 +15714,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15714
15714
  }), Wd = {
15715
15715
  key: 0,
15716
15716
  class: "amc2-select-oneitem"
15717
- }, Qd = { class: "amc2-select-label-container" }, Lh = /* @__PURE__ */ s1({
15717
+ }, Qd = { class: "amc2-select-label-container" }, Oh = /* @__PURE__ */ s1({
15718
15718
  __name: "SelectBase",
15719
15719
  props: {
15720
15720
  options: {},
@@ -15728,7 +15728,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15728
15728
  },
15729
15729
  emits: ["update:modelValue"],
15730
15730
  setup(a, { emit: e }) {
15731
- const t = a, i = e, n = Z(!1), l = W({
15731
+ const t = a, i = e, n = Z(!1), l = P({
15732
15732
  get: () => t.modelValue,
15733
15733
  set: (h) => i("update:modelValue", h)
15734
15734
  }), s = Z(null), r = Z(null), o = Z({}), u = Z("down");
@@ -15828,7 +15828,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15828
15828
  }), Yd = { class: "side-menu" }, qd = ["onClick"], Gd = { class: "side-menu-item-label" }, Jd = { class: "side-menu-chevron-container" }, _d = {
15829
15829
  key: 0,
15830
15830
  class: "side-menu-submenu"
15831
- }, Zd = ["onClick"], Oh = /* @__PURE__ */ s1({
15831
+ }, Zd = ["onClick"], Fh = /* @__PURE__ */ s1({
15832
15832
  __name: "SideMenu",
15833
15833
  props: {
15834
15834
  items: {},
@@ -15913,7 +15913,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15913
15913
  ], 2))), 128))
15914
15914
  ]));
15915
15915
  }
15916
- }), Xd = { class: "tabbar-container" }, $d = { class: "tabbar-menu" }, eh = ["onClick"], Fh = /* @__PURE__ */ s1({
15916
+ }), Xd = { class: "tabbar-container" }, $d = { class: "tabbar-menu" }, eh = ["onClick"], Nh = /* @__PURE__ */ s1({
15917
15917
  __name: "TabBar",
15918
15918
  props: {
15919
15919
  listItems: {},
@@ -15950,7 +15950,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
15950
15950
  class: ["history-badge", `history-badge--${a.type}`]
15951
15951
  }), q(e[a.type]), 17));
15952
15952
  }
15953
- }), Nh = /* @__PURE__ */ s1({
15953
+ }), jh = /* @__PURE__ */ s1({
15954
15954
  __name: "HistoryFilter",
15955
15955
  props: {
15956
15956
  type: {},
@@ -16008,11 +16008,14 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16008
16008
  ], 64))
16009
16009
  ], 16));
16010
16010
  }
16011
- }), rh = ["aria-expanded", "aria-label"], oh = { class: "history-item__header" }, ch = { class: "history-item__timestamp" }, uh = { class: "history-item__date" }, dh = { class: "history-item__author" }, hh = { class: "history-item__author-name" }, fh = {
16011
+ }), rh = ["aria-expanded", "aria-label"], oh = { class: "history-item__header" }, ch = { class: "history-item__badge-col" }, uh = { class: "history-item__timestamp" }, dh = { class: "history-item__date" }, hh = {
16012
+ key: 0,
16013
+ class: "history-item__author"
16014
+ }, fh = { class: "history-item__author-name" }, ph = {
16012
16015
  key: 0,
16013
16016
  class: "history-item__details",
16014
16017
  role: "region"
16015
- }, ph = { class: "history-item__label" }, jh = /* @__PURE__ */ s1({
16018
+ }, vh = { class: "history-item__label" }, Uh = /* @__PURE__ */ s1({
16016
16019
  name: "HistoryItem",
16017
16020
  inheritAttrs: !1,
16018
16021
  __name: "HistoryItem",
@@ -16029,30 +16032,35 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16029
16032
  const t = a, i = e, n = Z(t.open);
16030
16033
  x1(
16031
16034
  () => t.open,
16032
- (o) => {
16033
- n.value = o;
16035
+ (u) => {
16036
+ n.value = u;
16034
16037
  }
16035
16038
  );
16036
16039
  const l = {
16037
16040
  modification: "Modification",
16038
16041
  creation: "Création",
16039
16042
  suppression: "Suppression"
16040
- }, s = W(() => {
16041
- const o = [l[t.type]];
16042
- return t.author && o.push(`par ${t.author}`), t.date && o.push(`le ${t.date}`), o.join(" ");
16043
- }), r = () => {
16043
+ }, s = P(() => {
16044
+ const u = t.initials.trim();
16045
+ return t.author.trim() !== "" || u !== "" && u !== "?";
16046
+ }), r = P(() => {
16047
+ const u = [l[t.type]];
16048
+ return t.author && u.push(`par ${t.author}`), t.date && u.push(`le ${t.date}`), u.join(" ");
16049
+ }), o = () => {
16044
16050
  n.value = !n.value, i("update:open", n.value), i("toggle", n.value);
16045
16051
  };
16046
- return (o, u) => (b(), S("button", g3(o.$attrs, {
16052
+ return (u, c) => (b(), S("button", g3(u.$attrs, {
16047
16053
  class: ["history-item", `history-item--${a.type}`],
16048
16054
  type: "button",
16049
16055
  "aria-expanded": n.value,
16050
- "aria-label": s.value,
16051
- onClick: r
16056
+ "aria-label": r.value,
16057
+ onClick: o
16052
16058
  }), [
16053
16059
  I("span", oh, [
16054
- t1(th, { type: a.type }, null, 8, ["type"]),
16055
16060
  I("span", ch, [
16061
+ t1(th, { type: a.type }, null, 8, ["type"])
16062
+ ]),
16063
+ I("span", uh, [
16056
16064
  t1(a1, {
16057
16065
  "icon-name": "history",
16058
16066
  width: "16",
@@ -16061,16 +16069,16 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16061
16069
  "class-icon": "history-item__timestamp-icon",
16062
16070
  "aria-hidden": "true"
16063
16071
  }),
16064
- I("span", uh, q(a.date), 1)
16072
+ I("span", dh, q(a.date), 1)
16065
16073
  ]),
16066
- I("span", dh, [
16074
+ s.value ? (b(), S("span", hh, [
16067
16075
  t1(U4, {
16068
16076
  initials: a.initials,
16069
16077
  size: "sm",
16070
16078
  color: "primary"
16071
16079
  }, null, 8, ["initials"]),
16072
- I("span", hh, q(a.author), 1)
16073
- ]),
16080
+ I("span", fh, q(a.author), 1)
16081
+ ])) : F("", !0),
16074
16082
  t1(a1, {
16075
16083
  "icon-name": "chevron-down",
16076
16084
  width: "24",
@@ -16080,22 +16088,22 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16080
16088
  "aria-hidden": "true"
16081
16089
  })
16082
16090
  ]),
16083
- n.value && a.fields.length ? (b(), S("span", fh, [
16084
- (b(!0), S(h1, null, E1(a.fields, (c, d) => (b(), S("span", {
16085
- key: d,
16091
+ n.value && a.fields.length ? (b(), S("span", ph, [
16092
+ (b(!0), S(h1, null, E1(a.fields, (d, f) => (b(), S("span", {
16093
+ key: f,
16086
16094
  class: "history-item__row"
16087
16095
  }, [
16088
- I("span", ph, q(c.label), 1),
16096
+ I("span", vh, q(d.label), 1),
16089
16097
  t1(sh, {
16090
16098
  kind: a.type,
16091
- "old-value": c.oldValue,
16092
- "new-value": c.newValue
16099
+ "old-value": d.oldValue,
16100
+ "new-value": d.newValue
16093
16101
  }, null, 8, ["kind", "old-value", "new-value"])
16094
16102
  ]))), 128))
16095
16103
  ])) : F("", !0)
16096
16104
  ], 16, rh));
16097
16105
  }
16098
- }), vh = ["disabled"], mh = ["disabled"], Uh = /* @__PURE__ */ s1({
16106
+ }), mh = ["disabled"], gh = ["disabled"], Kh = /* @__PURE__ */ s1({
16099
16107
  __name: "ToggleAdvanced",
16100
16108
  props: {
16101
16109
  labelLeft: {},
@@ -16108,9 +16116,9 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16108
16116
  },
16109
16117
  emits: ["update:modelValue"],
16110
16118
  setup(a, { emit: e }) {
16111
- const t = a, i = e, n = W(() => t.modelValue ?? !1), l = () => {
16119
+ const t = a, i = e, n = P(() => t.modelValue ?? !1), l = () => {
16112
16120
  t.disabled || i("update:modelValue", !n.value);
16113
- }, s = W(() => ({ ...t.theme ?? {} }));
16121
+ }, s = P(() => ({ ...t.theme ?? {} }));
16114
16122
  return (r, o) => (b(), S("div", {
16115
16123
  style: w1(s.value),
16116
16124
  class: J(["amc2-advanced-toggle-container", { disabled: a.disabled }])
@@ -16127,7 +16135,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16127
16135
  width: "24"
16128
16136
  }, null, 8, ["icon-name"])) : F("", !0),
16129
16137
  I("span", null, q(a.labelLeft), 1)
16130
- ], 10, vh),
16138
+ ], 10, mh),
16131
16139
  I("button", {
16132
16140
  class: J(["amc2-toggle-btn right", { active: !n.value }]),
16133
16141
  onClick: l,
@@ -16140,10 +16148,10 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16140
16148
  width: "24"
16141
16149
  }, null, 8, ["icon-name"])) : F("", !0),
16142
16150
  I("span", null, q(a.labelRight), 1)
16143
- ], 10, mh)
16151
+ ], 10, gh)
16144
16152
  ], 6));
16145
16153
  }
16146
- }), gh = { class: "toast-container" }, Ah = { class: "toast-content" }, yh = { class: "toast-close" }, Kh = /* @__PURE__ */ s1({
16154
+ }), Ah = { class: "toast-container" }, yh = { class: "toast-content" }, bh = { class: "toast-close" }, Ph = /* @__PURE__ */ s1({
16147
16155
  __name: "ToastBase",
16148
16156
  setup(a) {
16149
16157
  const e = a6("toasts"), t = a6("removeToast"), i = (s) => {
@@ -16176,12 +16184,12 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16176
16184
  return i6;
16177
16185
  }
16178
16186
  };
16179
- return (s, r) => (b(), S("div", gh, [
16187
+ return (s, r) => (b(), S("div", Ah, [
16180
16188
  (b(!0), S(h1, null, E1(S1(e), (o) => (b(), S("div", {
16181
16189
  key: o.id,
16182
16190
  class: J(["toast", "show", o.intent])
16183
16191
  }, [
16184
- I("div", Ah, [
16192
+ I("div", yh, [
16185
16193
  t1(a1, {
16186
16194
  "icon-name": n(o.intent),
16187
16195
  color: l(o.intent),
@@ -16189,7 +16197,7 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16189
16197
  height: "30px"
16190
16198
  }, null, 8, ["icon-name", "color"]),
16191
16199
  I("span", null, q(o.message), 1),
16192
- I("div", yh, [
16200
+ I("div", bh, [
16193
16201
  t1(a1, {
16194
16202
  "icon-name": "close",
16195
16203
  onClick: (u) => i(o.id)
@@ -16199,19 +16207,19 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16199
16207
  ], 2))), 128))
16200
16208
  ]));
16201
16209
  }
16202
- }), bh = {
16210
+ }), wh = {
16203
16211
  key: 0,
16204
16212
  class: "widget-header"
16205
- }, wh = { class: "widget-body" }, Eh = {
16213
+ }, Eh = { class: "widget-body" }, zh = {
16206
16214
  key: 0,
16207
16215
  class: "widget-empty"
16208
- }, zh = {
16216
+ }, Ch = {
16209
16217
  key: 1,
16210
16218
  class: "widget-loader"
16211
- }, Ch = {
16219
+ }, Mh = {
16212
16220
  key: 1,
16213
16221
  class: "widget-footer"
16214
- }, Mh = /* @__PURE__ */ s1({
16222
+ }, Sh = /* @__PURE__ */ s1({
16215
16223
  __name: "WidgetBase",
16216
16224
  props: {
16217
16225
  width: { default: "50%" },
@@ -16220,13 +16228,13 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16220
16228
  isLoading: { type: Boolean }
16221
16229
  },
16222
16230
  setup(a) {
16223
- const e = Ka(), t = W(() => {
16231
+ const e = Ka(), t = P(() => {
16224
16232
  const l = e.header?.();
16225
16233
  return !(l && l?.length > 0);
16226
- }), i = W(() => {
16234
+ }), i = P(() => {
16227
16235
  const l = e.body?.();
16228
16236
  return !(l && l?.length > 0);
16229
- }), n = W(() => {
16237
+ }), n = P(() => {
16230
16238
  const l = e.footer?.();
16231
16239
  return !(l && l?.length > 0);
16232
16240
  });
@@ -16238,11 +16246,11 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16238
16246
  backgroundColor: a.color
16239
16247
  })
16240
16248
  }, [
16241
- t.value ? F("", !0) : (b(), S("header", bh, [
16249
+ t.value ? F("", !0) : (b(), S("header", wh, [
16242
16250
  J1(l.$slots, "header", {}, void 0, !0)
16243
16251
  ])),
16244
- I("main", wh, [
16245
- i.value ? (b(), S("div", Eh, [
16252
+ I("main", Eh, [
16253
+ i.value ? (b(), S("div", zh, [
16246
16254
  t1(a1, {
16247
16255
  iconName: "no_data",
16248
16256
  width: "50",
@@ -16251,36 +16259,36 @@ const ku = { class: "datepicker-navigation-container" }, Du = { class: "datepick
16251
16259
  }),
16252
16260
  s[0] || (s[0] = I("p", null, "Aucune donnée à afficher", -1))
16253
16261
  ])) : F("", !0),
16254
- a.isLoading ? (b(), S("div", zh, [
16262
+ a.isLoading ? (b(), S("div", Ch, [
16255
16263
  t1(c2)
16256
16264
  ])) : J1(l.$slots, "body", { key: 2 }, void 0, !0)
16257
16265
  ]),
16258
- n.value ? F("", !0) : (b(), S("footer", Ch, [
16266
+ n.value ? F("", !0) : (b(), S("footer", Mh, [
16259
16267
  J1(l.$slots, "footer", {}, void 0, !0)
16260
16268
  ]))
16261
16269
  ], 6));
16262
16270
  }
16263
- }), Ph = /* @__PURE__ */ qa(Mh, [["__scopeId", "data-v-1129d550"]]);
16264
- let Sh = 0;
16271
+ }), Wh = /* @__PURE__ */ qa(Sh, [["__scopeId", "data-v-1129d550"]]);
16272
+ let xh = 0;
16265
16273
  const u0 = Z([]);
16266
- function xh(a, e = "info", t = 3e3) {
16267
- const i = ++Sh;
16274
+ function kh(a, e = "info", t = 3e3) {
16275
+ const i = ++xh;
16268
16276
  u0.value.push({ id: i, message: a, intent: e }), setTimeout(() => {
16269
16277
  u0.value = u0.value.filter((n) => n.id !== i);
16270
16278
  }, t);
16271
16279
  }
16272
- function kh(a) {
16280
+ function Dh(a) {
16273
16281
  u0.value = u0.value.filter((e) => e.id !== a);
16274
16282
  }
16275
- function Wh() {
16283
+ function Qh() {
16276
16284
  return {
16277
- show: xh
16285
+ show: kh
16278
16286
  };
16279
16287
  }
16280
- function Qh(a) {
16281
- a.provide("toasts", u0), a.provide("removeToast", kh);
16288
+ function Yh(a) {
16289
+ a.provide("toasts", u0), a.provide("removeToast", Dh);
16282
16290
  }
16283
- const Yh = [
16291
+ const qh = [
16284
16292
  "NFC-Phone",
16285
16293
  "NFC-card",
16286
16294
  "accounting",
@@ -16816,35 +16824,35 @@ const Yh = [
16816
16824
  ];
16817
16825
  export {
16818
16826
  U4 as AvatarBase,
16819
- Ih as ButtonBase,
16820
- Vh as CalendarBase,
16827
+ Vh as ButtonBase,
16828
+ Bh as CalendarBase,
16821
16829
  s2 as CheckboxBase,
16822
- Bh as DataGrid,
16830
+ Rh as DataGrid,
16823
16831
  Wu as DatePicker,
16824
16832
  sh as DiffValue,
16825
16833
  ka as FlyoutMenu,
16826
16834
  th as HistoryBadge,
16827
- Nh as HistoryFilter,
16828
- jh as HistoryItem,
16835
+ jh as HistoryFilter,
16836
+ Uh as HistoryItem,
16829
16837
  w4 as InputBase,
16830
16838
  Cd as ListWithSearch,
16831
16839
  c2 as LoaderBase,
16832
- Rh as ModalBase,
16840
+ Th as ModalBase,
16833
16841
  z1 as NavType,
16834
- Th as RadioBase,
16835
- Hh as SegmentedButton,
16836
- Lh as SelectBase,
16842
+ Hh as RadioBase,
16843
+ Lh as SegmentedButton,
16844
+ Oh as SelectBase,
16837
16845
  Pd as SelectionGroup,
16838
- Oh as SideMenu,
16846
+ Fh as SideMenu,
16839
16847
  a1 as SvgIcon,
16840
- Fh as TabBar,
16848
+ Nh as TabBar,
16841
16849
  q9 as TagBase,
16842
- Kh as ToastBase,
16843
- Uh as ToggleAdvanced,
16850
+ Ph as ToastBase,
16851
+ Kh as ToggleAdvanced,
16844
16852
  Q9 as ToggleBase,
16845
16853
  c0 as TooltipBase,
16846
- Ph as WidgetBase,
16847
- Yh as iconNames,
16848
- Qh as provideToast,
16849
- Wh as useToast
16854
+ Wh as WidgetBase,
16855
+ qh as iconNames,
16856
+ Yh as provideToast,
16857
+ Qh as useToast
16850
16858
  };