@club-employes/utopia 4.129.0 → 4.131.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,5 +1,5 @@
1
1
  import { computed as F, ref as $, watch as vs, defineComponent as ds, openBlock as u, createElementBlock as y, normalizeStyle as Os, normalizeClass as V, useSlots as re, Fragment as ns, createBlock as O, createCommentVNode as _, renderSlot as us, createElementVNode as D, createVNode as K, toDisplayString as H, unref as z, withDirectives as ke, vModelDynamic as Ce, createTextVNode as Ls, nextTick as ks, onMounted as ie, onUnmounted as ae, renderList as Fs, withCtx as ws, withModifiers as bs, Teleport as ce, Transition as Gs, resolveDynamicComponent as Se, mergeProps as _e } from "vue";
2
- import { unrefElement as Ae, tryOnScopeDispose as Fe, useMediaQuery as xe, useScrollLock as Te, useEventListener as Be } from "@vueuse/core";
2
+ import { useBreakpoints as Ae, unrefElement as Fe, tryOnScopeDispose as xe, useScrollLock as Te, useEventListener as Be } from "@vueuse/core";
3
3
  const Pe = (o, e, s) => {
4
4
  const t = o[e];
5
5
  return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((c, i) => {
@@ -601,49 +601,60 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
601
601
  ], 2)) : _("", !0)
602
602
  ], 2));
603
603
  }
604
- }), lo = /* @__PURE__ */ hs(po, [["__scopeId", "data-v-c9890bfc"]]), uo = ["for"], vo = { class: "utopia-dropdown__container" }, mo = ["id", "disabled", "aria-expanded"], go = { key: 0 }, fo = {
604
+ }), lo = /* @__PURE__ */ hs(po, [["__scopeId", "data-v-c9890bfc"]]), uo = {
605
+ mobile: 768,
606
+ tablet: 1024,
607
+ desktop: 1200
608
+ }, vo = () => {
609
+ const { smallerOrEqual: o, between: e, greaterOrEqual: s } = Ae(uo);
610
+ return {
611
+ isMobile: o("mobile"),
612
+ isTablet: e("tablet", "desktop"),
613
+ isDesktop: s("desktop")
614
+ };
615
+ }, mo = ["for"], go = { class: "utopia-dropdown__container" }, fo = ["id", "disabled", "aria-expanded"], ho = { key: 0 }, bo = {
605
616
  key: 0,
606
617
  class: "utopia-dropdown__chips-shadow utopia-dropdown__chips-shadow--left"
607
- }, ho = {
618
+ }, yo = {
608
619
  key: 0,
609
620
  class: "utopia-dropdown__more"
610
- }, bo = {
621
+ }, wo = {
611
622
  key: 1,
612
623
  class: "utopia-dropdown__chips-shadow utopia-dropdown__chips-shadow--right"
613
- }, yo = { key: "placeholder" }, wo = {
624
+ }, ko = { key: "placeholder" }, Co = {
614
625
  key: 1,
615
626
  class: "utopia-dropdown__state-icon"
616
- }, ko = ["id", "aria-multiselectable"], Co = {
627
+ }, So = ["id", "aria-multiselectable"], _o = {
617
628
  key: 0,
618
629
  class: "utopia-dropdown__search"
619
- }, So = {
630
+ }, Ao = {
620
631
  class: "utopia-dropdown__options",
621
632
  role: "group"
622
- }, _o = ["aria-selected", "aria-disabled", "onClick", "onMouseenter"], Ao = {
633
+ }, Fo = ["aria-selected", "aria-disabled", "onClick", "onMouseenter"], xo = {
623
634
  key: 0,
624
635
  class: "utopia-dropdown__checkbox-container"
625
- }, Fo = ["onClick"], xo = {
636
+ }, To = ["onClick"], Bo = {
626
637
  key: 1,
627
638
  class: "utopia-dropdown__category-spacer"
628
- }, To = ["title", "onClick"], Bo = { class: "utopia-dropdown__checkbox-label" }, Po = {
639
+ }, Po = ["title", "onClick"], Mo = { class: "utopia-dropdown__checkbox-label" }, Lo = {
629
640
  key: 0,
630
641
  class: "utopia-dropdown__secondary-label"
631
- }, Mo = ["title"], Lo = ["onClick"], Eo = { class: "utopia-dropdown__option-label" }, Do = {
642
+ }, Eo = ["title"], Do = ["onClick"], Ro = { class: "utopia-dropdown__option-label" }, Io = {
632
643
  key: 1,
633
644
  class: "utopia-dropdown__secondary-label"
634
- }, Ro = ["aria-selected", "aria-disabled", "onClick"], Io = {
645
+ }, No = ["aria-selected", "aria-disabled", "onClick"], $o = {
635
646
  key: 0,
636
647
  class: "utopia-dropdown__checkbox-container"
637
- }, No = ["title"], $o = { class: "utopia-dropdown__checkbox-label" }, zo = {
648
+ }, zo = ["title"], Vo = { class: "utopia-dropdown__checkbox-label" }, Oo = {
638
649
  key: 0,
639
650
  class: "utopia-dropdown__secondary-label"
640
- }, Vo = ["title"], Oo = { class: "utopia-dropdown__option-label" }, qo = {
651
+ }, qo = ["title"], Go = { class: "utopia-dropdown__option-label" }, Uo = {
641
652
  key: 0,
642
653
  class: "utopia-dropdown__secondary-label"
643
- }, Go = {
654
+ }, Ho = {
644
655
  key: 0,
645
656
  class: "utopia-dropdown__no-results"
646
- }, Uo = /* @__PURE__ */ ds({
657
+ }, Wo = /* @__PURE__ */ ds({
647
658
  __name: "DropDown",
648
659
  props: {
649
660
  modelValue: { type: [String, Number, Boolean, Array], default: void 0 },
@@ -878,8 +889,8 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
878
889
  key: 0,
879
890
  class: "utopia-dropdown__label",
880
891
  for: X.value
881
- }, H(o.label), 9, uo)) : _("", !0),
882
- D("div", vo, [
892
+ }, H(o.label), 9, mo)) : _("", !0),
893
+ D("div", go, [
883
894
  D("button", {
884
895
  id: X.value,
885
896
  ref_key: "triggerRef",
@@ -902,7 +913,7 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
902
913
  class: "utopia-dropdown__chips-wrapper",
903
914
  key: `chips-${Z.value.length}`
904
915
  }, [
905
- g.value && ls.value ? (u(), y("div", fo)) : _("", !0),
916
+ g.value && ls.value ? (u(), y("div", bo)) : _("", !0),
906
917
  D("div", {
907
918
  ref_key: "chipsScrollRef",
908
919
  ref: l,
@@ -922,11 +933,11 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
922
933
  ]),
923
934
  _: 2
924
935
  }, 1032, ["onRemove"]))), 128)),
925
- Z.value.length > J.value ? (u(), y("span", ho, " +" + H(Z.value.length - J.value) + " autres ", 1)) : _("", !0)
936
+ Z.value.length > J.value ? (u(), y("span", yo, " +" + H(Z.value.length - J.value) + " autres ", 1)) : _("", !0)
926
937
  ], 544),
927
- v.value && ls.value ? (u(), y("div", bo)) : _("", !0)
928
- ])) : (u(), y("span", yo, H(o.placeholder), 1))
929
- ], 64)) : (u(), y("span", go, H(M.value), 1))
938
+ v.value && ls.value ? (u(), y("div", wo)) : _("", !0)
939
+ ])) : (u(), y("span", ko, H(o.placeholder), 1))
940
+ ], 64)) : (u(), y("span", ho, H(M.value), 1))
930
941
  ], 2),
931
942
  o.clearable && U.value && !o.disabled ? (u(), y("div", {
932
943
  key: 0,
@@ -952,7 +963,7 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
952
963
  "stroke-width": "2"
953
964
  })
954
965
  ], 2),
955
- o.state === "valid" || o.state === "error" ? (u(), y("div", wo, [
966
+ o.state === "valid" || o.state === "error" ? (u(), y("div", Co, [
956
967
  o.state === "valid" ? (u(), O(z(N), {
957
968
  key: 0,
958
969
  name: "Check",
@@ -967,7 +978,7 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
967
978
  color: "danger"
968
979
  })) : _("", !0)
969
980
  ])) : _("", !0)
970
- ], 42, mo),
981
+ ], 42, fo),
971
982
  (u(), O(ce, { to: "body" }, [
972
983
  K(Gs, { name: "utopia-dropdown-fade" }, {
973
984
  default: ws(() => [
@@ -986,7 +997,7 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
986
997
  role: "listbox",
987
998
  "aria-multiselectable": o.multiple
988
999
  }, [
989
- o.searchable ? (u(), y("div", Co, [
1000
+ o.searchable ? (u(), y("div", _o, [
990
1001
  K(z(lo), {
991
1002
  ref_key: "searchRef",
992
1003
  ref: r,
@@ -1000,7 +1011,7 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
1000
1011
  onInput: ge
1001
1012
  }, null, 8, ["modelValue"])
1002
1013
  ])) : _("", !0),
1003
- D("div", So, [
1014
+ D("div", Ao, [
1004
1015
  (u(!0), y(ns, null, Fs(W.value, (a, I) => (u(), y(ns, {
1005
1016
  key: `option-${a.value}-${I}`
1006
1017
  }, [
@@ -1018,7 +1029,7 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
1018
1029
  onClick: (w) => a.children && a.children.length > 0 ? R(a, w) : ts(a),
1019
1030
  onMouseenter: (w) => C.value = I
1020
1031
  }, [
1021
- o.multiple ? (u(), y("div", Ao, [
1032
+ o.multiple ? (u(), y("div", xo, [
1022
1033
  a.children && a.children.length > 0 ? (u(), y("div", {
1023
1034
  key: 0,
1024
1035
  class: V(["utopia-dropdown__category-chevron", { "utopia-dropdown__category-chevron--expanded": S(a) }]),
@@ -1029,7 +1040,7 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
1029
1040
  "stroke-width": "2",
1030
1041
  size: "small"
1031
1042
  })
1032
- ], 10, Fo)) : (u(), y("div", xo)),
1043
+ ], 10, To)) : (u(), y("div", Bo)),
1033
1044
  K(z(Zs), {
1034
1045
  modelValue: f(a.value),
1035
1046
  disabled: a.disabled,
@@ -1042,9 +1053,9 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
1042
1053
  title: a.secondaryLabel ? `${a.label} ${a.secondaryLabel}` : a.label,
1043
1054
  onClick: bs((w) => ts(a), ["stop"])
1044
1055
  }, [
1045
- D("div", Bo, H(a.label), 1),
1046
- a.secondaryLabel ? (u(), y("div", Po, H(a.secondaryLabel), 1)) : _("", !0)
1047
- ], 8, To)
1056
+ D("div", Mo, H(a.label), 1),
1057
+ a.secondaryLabel ? (u(), y("div", Lo, H(a.secondaryLabel), 1)) : _("", !0)
1058
+ ], 8, Po)
1048
1059
  ])) : (u(), y("div", {
1049
1060
  key: 1,
1050
1061
  class: "utopia-dropdown__option-label-container",
@@ -1060,11 +1071,11 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
1060
1071
  "stroke-width": "2",
1061
1072
  size: "small"
1062
1073
  })
1063
- ], 10, Lo)) : _("", !0),
1064
- D("div", Eo, H(a.label), 1),
1065
- a.secondaryLabel ? (u(), y("div", Do, H(a.secondaryLabel), 1)) : _("", !0)
1066
- ], 8, Mo))
1067
- ], 42, _o),
1074
+ ], 10, Do)) : _("", !0),
1075
+ D("div", Ro, H(a.label), 1),
1076
+ a.secondaryLabel ? (u(), y("div", Io, H(a.secondaryLabel), 1)) : _("", !0)
1077
+ ], 8, Eo))
1078
+ ], 42, Fo),
1068
1079
  a.children && a.children.length > 0 && (S(a) || o.searchable && m.value.trim()) ? (u(!0), y(ns, { key: 0 }, Fs(a.children, (w, Q) => (u(), y("div", {
1069
1080
  key: `child-${w.value}-${Q}`,
1070
1081
  class: V(["utopia-dropdown__option utopia-dropdown__option--child", [
@@ -1077,7 +1088,7 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
1077
1088
  onClick: (cs) => ts(w),
1078
1089
  onMouseenter: b[2] || (b[2] = (cs) => C.value = -1)
1079
1090
  }, [
1080
- o.multiple ? (u(), y("div", Io, [
1091
+ o.multiple ? (u(), y("div", $o, [
1081
1092
  b[3] || (b[3] = D("div", { class: "utopia-dropdown__category-spacer" }, null, -1)),
1082
1093
  K(z(Zs), {
1083
1094
  modelValue: f(w.value),
@@ -1089,22 +1100,22 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
1089
1100
  class: "utopia-dropdown__option-label-container",
1090
1101
  title: w.secondaryLabel ? `${w.label} ${w.secondaryLabel}` : w.label
1091
1102
  }, [
1092
- D("div", $o, H(w.label), 1),
1093
- w.secondaryLabel ? (u(), y("div", zo, H(w.secondaryLabel), 1)) : _("", !0)
1094
- ], 8, No)
1103
+ D("div", Vo, H(w.label), 1),
1104
+ w.secondaryLabel ? (u(), y("div", Oo, H(w.secondaryLabel), 1)) : _("", !0)
1105
+ ], 8, zo)
1095
1106
  ])) : (u(), y("div", {
1096
1107
  key: 1,
1097
1108
  class: "utopia-dropdown__option-label-container",
1098
1109
  title: w.secondaryLabel ? `${w.label} ${w.secondaryLabel}` : w.label
1099
1110
  }, [
1100
- D("div", Oo, H(w.label), 1),
1101
- w.secondaryLabel ? (u(), y("div", qo, H(w.secondaryLabel), 1)) : _("", !0)
1102
- ], 8, Vo))
1103
- ], 42, Ro))), 128)) : _("", !0)
1111
+ D("div", Go, H(w.label), 1),
1112
+ w.secondaryLabel ? (u(), y("div", Uo, H(w.secondaryLabel), 1)) : _("", !0)
1113
+ ], 8, qo))
1114
+ ], 42, No))), 128)) : _("", !0)
1104
1115
  ], 64))), 128)),
1105
- W.value.length === 0 ? (u(), y("div", Go, " Aucun résultat trouvé ")) : _("", !0)
1116
+ W.value.length === 0 ? (u(), y("div", Ho, " Aucun résultat trouvé ")) : _("", !0)
1106
1117
  ])
1107
- ], 12, ko)) : _("", !0)
1118
+ ], 12, So)) : _("", !0)
1108
1119
  ]),
1109
1120
  _: 1
1110
1121
  })
@@ -1129,12 +1140,12 @@ const Ue = ["aria-label", "innerHTML"], He = /* @__PURE__ */ ds({
1129
1140
  ], 2)) : _("", !0)
1130
1141
  ], 2));
1131
1142
  }
1132
- }), $t = /* @__PURE__ */ hs(Uo, [["__scopeId", "data-v-de0d71d4"]]);
1143
+ }), Vt = /* @__PURE__ */ hs(Wo, [["__scopeId", "data-v-de0d71d4"]]);
1133
1144
  function Ys(o) {
1134
1145
  return typeof o == "function" ? o() : z(o);
1135
1146
  }
1136
1147
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1137
- const Ho = (o) => o != null;
1148
+ const jo = (o) => o != null;
1138
1149
  var ne = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], Is = /* @__PURE__ */ ne.join(","), pe = typeof Element > "u", fs = pe ? function() {
1139
1150
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ns = !pe && Element.prototype.getRootNode ? function(o) {
1140
1151
  var e;
@@ -1148,7 +1159,7 @@ var ne = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1148
1159
  // lookup upward, in case it is not defined.
1149
1160
  (typeof e.closest == "function" ? e.closest("[inert]") : $s(e.parentNode));
1150
1161
  return r;
1151
- }, Wo = function(e) {
1162
+ }, Ko = function(e) {
1152
1163
  var s, t = e == null || (s = e.getAttribute) === null || s === void 0 ? void 0 : s.call(e, "contenteditable");
1153
1164
  return t === "" || t === "true";
1154
1165
  }, de = function(e, s, t) {
@@ -1187,26 +1198,26 @@ var ne = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1187
1198
  }, gs = function(e) {
1188
1199
  if (!e)
1189
1200
  throw new Error("No node provided");
1190
- return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Wo(e)) && !le(e) ? 0 : e.tabIndex;
1191
- }, jo = function(e, s) {
1201
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Ko(e)) && !le(e) ? 0 : e.tabIndex;
1202
+ }, Xo = function(e, s) {
1192
1203
  var t = gs(e);
1193
1204
  return t < 0 && s && !le(e) ? 0 : t;
1194
- }, Ko = function(e, s) {
1205
+ }, Zo = function(e, s) {
1195
1206
  return e.tabIndex === s.tabIndex ? e.documentOrder - s.documentOrder : e.tabIndex - s.tabIndex;
1196
1207
  }, ue = function(e) {
1197
1208
  return e.tagName === "INPUT";
1198
- }, Xo = function(e) {
1209
+ }, Yo = function(e) {
1199
1210
  return ue(e) && e.type === "hidden";
1200
- }, Zo = function(e) {
1211
+ }, Qo = function(e) {
1201
1212
  var s = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(t) {
1202
1213
  return t.tagName === "SUMMARY";
1203
1214
  });
1204
1215
  return s;
1205
- }, Yo = function(e, s) {
1216
+ }, Jo = function(e, s) {
1206
1217
  for (var t = 0; t < e.length; t++)
1207
1218
  if (e[t].checked && e[t].form === s)
1208
1219
  return e[t];
1209
- }, Qo = function(e) {
1220
+ }, st = function(e) {
1210
1221
  if (!e.name)
1211
1222
  return !0;
1212
1223
  var s = e.form || Ns(e), t = function(l) {
@@ -1220,13 +1231,13 @@ var ne = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1220
1231
  } catch (r) {
1221
1232
  return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", r.message), !1;
1222
1233
  }
1223
- var i = Yo(c, e.form);
1234
+ var i = Jo(c, e.form);
1224
1235
  return !i || i === e;
1225
- }, Jo = function(e) {
1226
- return ue(e) && e.type === "radio";
1227
- }, st = function(e) {
1228
- return Jo(e) && !Qo(e);
1229
1236
  }, et = function(e) {
1237
+ return ue(e) && e.type === "radio";
1238
+ }, ot = function(e) {
1239
+ return et(e) && !st(e);
1240
+ }, tt = function(e) {
1230
1241
  var s, t = e && Ns(e), c = (s = t) === null || s === void 0 ? void 0 : s.host, i = !1;
1231
1242
  if (t && t !== e) {
1232
1243
  var r, l, g;
@@ -1239,7 +1250,7 @@ var ne = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1239
1250
  }, Qs = function(e) {
1240
1251
  var s = e.getBoundingClientRect(), t = s.width, c = s.height;
1241
1252
  return t === 0 && c === 0;
1242
- }, ot = function(e, s) {
1253
+ }, rt = function(e, s) {
1243
1254
  var t = s.displayCheck, c = s.getShadowRoot;
1244
1255
  if (t === "full-native" && "checkVisibility" in e) {
1245
1256
  var i = e.checkVisibility({
@@ -1274,14 +1285,14 @@ var ne = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1274
1285
  }
1275
1286
  e = g;
1276
1287
  }
1277
- if (et(e))
1288
+ if (tt(e))
1278
1289
  return !e.getClientRects().length;
1279
1290
  if (t !== "legacy-full")
1280
1291
  return !0;
1281
1292
  } else if (t === "non-zero-area")
1282
1293
  return Qs(e);
1283
1294
  return !1;
1284
- }, tt = function(e) {
1295
+ }, it = function(e) {
1285
1296
  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
1286
1297
  for (var s = e.parentElement; s; ) {
1287
1298
  if (s.tagName === "FIELDSET" && s.disabled) {
@@ -1296,17 +1307,17 @@ var ne = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1296
1307
  }
1297
1308
  return !1;
1298
1309
  }, Vs = function(e, s) {
1299
- return !(s.disabled || Xo(s) || ot(s, e) || // For a details element with a summary, the summary element gets the focus
1300
- Zo(s) || tt(s));
1310
+ return !(s.disabled || Yo(s) || rt(s, e) || // For a details element with a summary, the summary element gets the focus
1311
+ Qo(s) || it(s));
1301
1312
  }, Us = function(e, s) {
1302
- return !(st(s) || gs(s) < 0 || !Vs(e, s));
1303
- }, rt = function(e) {
1313
+ return !(ot(s) || gs(s) < 0 || !Vs(e, s));
1314
+ }, at = function(e) {
1304
1315
  var s = parseInt(e.getAttribute("tabindex"), 10);
1305
1316
  return !!(isNaN(s) || s >= 0);
1306
1317
  }, ve = function(e) {
1307
1318
  var s = [], t = [];
1308
1319
  return e.forEach(function(c, i) {
1309
- var r = !!c.scopeParent, l = r ? c.scopeParent : c, g = jo(l, r), v = r ? ve(c.candidates) : l;
1320
+ var r = !!c.scopeParent, l = r ? c.scopeParent : c, g = Xo(l, r), v = r ? ve(c.candidates) : l;
1310
1321
  g === 0 ? r ? s.push.apply(s, v) : s.push(l) : t.push({
1311
1322
  documentOrder: i,
1312
1323
  tabIndex: g,
@@ -1314,19 +1325,19 @@ var ne = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1314
1325
  isScope: r,
1315
1326
  content: v
1316
1327
  });
1317
- }), t.sort(Ko).reduce(function(c, i) {
1328
+ }), t.sort(Zo).reduce(function(c, i) {
1318
1329
  return i.isScope ? c.push.apply(c, i.content) : c.push(i.content), c;
1319
1330
  }, []).concat(s);
1320
- }, it = function(e, s) {
1331
+ }, ct = function(e, s) {
1321
1332
  s = s || {};
1322
1333
  var t;
1323
1334
  return s.getShadowRoot ? t = zs([e], s.includeContainer, {
1324
1335
  filter: Us.bind(null, s),
1325
1336
  flatten: !1,
1326
1337
  getShadowRoot: s.getShadowRoot,
1327
- shadowRootFilter: rt
1338
+ shadowRootFilter: at
1328
1339
  }) : t = de(e, s.includeContainer, Us.bind(null, s)), ve(t);
1329
- }, at = function(e, s) {
1340
+ }, nt = function(e, s) {
1330
1341
  s = s || {};
1331
1342
  var t;
1332
1343
  return s.getShadowRoot ? t = zs([e], s.includeContainer, {
@@ -1338,17 +1349,17 @@ var ne = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1338
1349
  if (s = s || {}, !e)
1339
1350
  throw new Error("No node provided");
1340
1351
  return fs.call(e, Is) === !1 ? !1 : Us(s, e);
1341
- }, ct = /* @__PURE__ */ ne.concat("iframe:not([inert]):not([inert] *)").join(","), qs = function(e, s) {
1352
+ }, pt = /* @__PURE__ */ ne.concat("iframe:not([inert]):not([inert] *)").join(","), qs = function(e, s) {
1342
1353
  if (s = s || {}, !e)
1343
1354
  throw new Error("No node provided");
1344
- return fs.call(e, ct) === !1 ? !1 : Vs(s, e);
1355
+ return fs.call(e, pt) === !1 ? !1 : Vs(s, e);
1345
1356
  };
1346
1357
  function Hs(o, e) {
1347
1358
  (e == null || e > o.length) && (e = o.length);
1348
1359
  for (var s = 0, t = Array(e); s < e; s++) t[s] = o[s];
1349
1360
  return t;
1350
1361
  }
1351
- function nt(o) {
1362
+ function dt(o) {
1352
1363
  if (Array.isArray(o)) return Hs(o);
1353
1364
  }
1354
1365
  function Js(o, e) {
@@ -1398,18 +1409,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1398
1409
  }
1399
1410
  };
1400
1411
  }
1401
- function pt(o, e, s) {
1402
- return (e = mt(e)) in o ? Object.defineProperty(o, e, {
1412
+ function lt(o, e, s) {
1413
+ return (e = ft(e)) in o ? Object.defineProperty(o, e, {
1403
1414
  value: s,
1404
1415
  enumerable: !0,
1405
1416
  configurable: !0,
1406
1417
  writable: !0
1407
1418
  }) : o[e] = s, o;
1408
1419
  }
1409
- function dt(o) {
1420
+ function ut(o) {
1410
1421
  if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null) return Array.from(o);
1411
1422
  }
1412
- function lt() {
1423
+ function vt() {
1413
1424
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1414
1425
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1415
1426
  }
@@ -1427,17 +1438,17 @@ function ee(o) {
1427
1438
  for (var e = 1; e < arguments.length; e++) {
1428
1439
  var s = arguments[e] != null ? arguments[e] : {};
1429
1440
  e % 2 ? se(Object(s), !0).forEach(function(t) {
1430
- pt(o, t, s[t]);
1441
+ lt(o, t, s[t]);
1431
1442
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(s)) : se(Object(s)).forEach(function(t) {
1432
1443
  Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(s, t));
1433
1444
  });
1434
1445
  }
1435
1446
  return o;
1436
1447
  }
1437
- function ut(o) {
1438
- return nt(o) || dt(o) || me(o) || lt();
1448
+ function mt(o) {
1449
+ return dt(o) || ut(o) || me(o) || vt();
1439
1450
  }
1440
- function vt(o, e) {
1451
+ function gt(o, e) {
1441
1452
  if (typeof o != "object" || !o) return o;
1442
1453
  var s = o[Symbol.toPrimitive];
1443
1454
  if (s !== void 0) {
@@ -1447,8 +1458,8 @@ function vt(o, e) {
1447
1458
  }
1448
1459
  return (e === "string" ? String : Number)(o);
1449
1460
  }
1450
- function mt(o) {
1451
- var e = vt(o, "string");
1461
+ function ft(o) {
1462
+ var e = gt(o, "string");
1452
1463
  return typeof e == "symbol" ? e : e + "";
1453
1464
  }
1454
1465
  function me(o, e) {
@@ -1485,15 +1496,15 @@ var ps = {
1485
1496
  var s = ps.getActiveTrap(e);
1486
1497
  s && !s._isManuallyPaused() && s._setPausedState(!1);
1487
1498
  }
1488
- }, gt = function(e) {
1499
+ }, ht = function(e) {
1489
1500
  return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
1490
- }, ft = function(e) {
1501
+ }, bt = function(e) {
1491
1502
  return e?.key === "Escape" || e?.key === "Esc" || e?.keyCode === 27;
1492
1503
  }, Ts = function(e) {
1493
1504
  return e?.key === "Tab" || e?.keyCode === 9;
1494
- }, ht = function(e) {
1505
+ }, yt = function(e) {
1495
1506
  return Ts(e) && !e.shiftKey;
1496
- }, bt = function(e) {
1507
+ }, wt = function(e) {
1497
1508
  return Ts(e) && e.shiftKey;
1498
1509
  }, oe = function(e) {
1499
1510
  return setTimeout(e, 0);
@@ -1503,14 +1514,14 @@ var ps = {
1503
1514
  return typeof e == "function" ? e.apply(void 0, t) : e;
1504
1515
  }, Ms = function(e) {
1505
1516
  return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
1506
- }, yt = [], wt = function(e, s) {
1507
- var t = s?.document || document, c = s?.trapStack || yt, i = ee({
1517
+ }, kt = [], Ct = function(e, s) {
1518
+ var t = s?.document || document, c = s?.trapStack || kt, i = ee({
1508
1519
  returnFocusOnDeactivate: !0,
1509
1520
  escapeDeactivates: !0,
1510
1521
  delayInitialFocus: !0,
1511
1522
  isolateSubtrees: !1,
1512
- isKeyForward: ht,
1513
- isKeyBackward: bt
1523
+ isKeyForward: yt,
1524
+ isKeyBackward: wt
1514
1525
  }, s), r = {
1515
1526
  // containers given to createFocusTrap()
1516
1527
  /** @type {Array<HTMLElement>} */
@@ -1567,7 +1578,7 @@ var ps = {
1567
1578
  });
1568
1579
  }, h = function(p) {
1569
1580
  var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = d.hasFallback, B = f === void 0 ? !1 : f, x = d.params, L = x === void 0 ? [] : x, A = i[p];
1570
- if (typeof A == "function" && (A = A.apply(void 0, ut(L))), A === !0 && (A = void 0), !A) {
1581
+ if (typeof A == "function" && (A = A.apply(void 0, mt(L))), A === !0 && (A = void 0), !A) {
1571
1582
  if (A === void 0 || A === !1)
1572
1583
  return A;
1573
1584
  throw new Error("`".concat(p, "` was specified but was not a node, or did not return a node"));
@@ -1602,7 +1613,7 @@ var ps = {
1602
1613
  return p;
1603
1614
  }, C = function() {
1604
1615
  if (r.containerGroups = r.containers.map(function(p) {
1605
- var d = it(p, i.tabbableOptions), f = at(p, i.tabbableOptions), B = d.length > 0 ? d[0] : void 0, x = d.length > 0 ? d[d.length - 1] : void 0, L = f.find(function(E) {
1616
+ var d = ct(p, i.tabbableOptions), f = nt(p, i.tabbableOptions), B = d.length > 0 ? d[0] : void 0, x = d.length > 0 ? d[d.length - 1] : void 0, L = f.find(function(E) {
1606
1617
  return ys(E);
1607
1618
  }), A = f.slice().reverse().find(function(E) {
1608
1619
  return ys(E);
@@ -1667,7 +1678,7 @@ var ps = {
1667
1678
  }
1668
1679
  p.focus({
1669
1680
  preventScroll: !!i.preventScroll
1670
- }), r.mostRecentlyFocusedNode = p, gt(p) && p.select();
1681
+ }), r.mostRecentlyFocusedNode = p, ht(p) && p.select();
1671
1682
  }
1672
1683
  }, X = function(p) {
1673
1684
  var d = h("setReturnFocus", {
@@ -1764,7 +1775,7 @@ var ps = {
1764
1775
  }, ss = function(p) {
1765
1776
  (i.isKeyForward(p) || i.isKeyBackward(p)) && ls(p, i.isKeyBackward(p));
1766
1777
  }, es = function(p) {
1767
- ft(p) && As(i.escapeDeactivates, p) !== !1 && (p.preventDefault(), l.deactivate());
1778
+ bt(p) && As(i.escapeDeactivates, p) !== !1 && (p.preventDefault(), l.deactivate());
1768
1779
  }, is = function(p) {
1769
1780
  var d = Ms(p);
1770
1781
  v(d, p) >= 0 || As(i.clickOutsideDeactivates, p) || As(i.allowOutsideClick, p) || (p.preventDefault(), p.stopImmediatePropagation());
@@ -1929,7 +1940,7 @@ var ps = {
1929
1940
  }
1930
1941
  }), l.updateContainerElements(e), l;
1931
1942
  };
1932
- function kt(o, e = {}) {
1943
+ function St(o, e = {}) {
1933
1944
  let s;
1934
1945
  const { immediate: t, ...c } = e, i = $(!1), r = $(!1), l = (C) => s && s.activate(C), g = (C) => s && s.deactivate(C), v = () => {
1935
1946
  s && (s.pause(), r.value = !0);
@@ -1939,13 +1950,13 @@ function kt(o, e = {}) {
1939
1950
  const C = Ys(o);
1940
1951
  return (Array.isArray(C) ? C : [C]).map((T) => {
1941
1952
  const q = Ys(T);
1942
- return typeof q == "string" ? q : Ae(q);
1943
- }).filter(Ho);
1953
+ return typeof q == "string" ? q : Fe(q);
1954
+ }).filter(jo);
1944
1955
  });
1945
1956
  return vs(
1946
1957
  m,
1947
1958
  (C) => {
1948
- C.length && (s = wt(C, {
1959
+ C.length && (s = Ct(C, {
1949
1960
  ...c,
1950
1961
  onActivate() {
1951
1962
  i.value = !0, e.onActivate && e.onActivate();
@@ -1956,7 +1967,7 @@ function kt(o, e = {}) {
1956
1967
  }), t && l());
1957
1968
  },
1958
1969
  { flush: "post" }
1959
- ), Fe(() => g()), {
1970
+ ), xe(() => g()), {
1960
1971
  hasFocus: i,
1961
1972
  isPaused: r,
1962
1973
  activate: l,
@@ -1965,13 +1976,13 @@ function kt(o, e = {}) {
1965
1976
  unpause: h
1966
1977
  };
1967
1978
  }
1968
- const Ct = ["aria-hidden"], St = ["aria-labelledby"], _t = {
1979
+ const _t = ["aria-hidden"], At = ["aria-labelledby"], Ft = {
1969
1980
  key: 0,
1970
1981
  class: "utopia-modal__header"
1971
- }, At = { class: "utopia-modal__bar utopia-modal__bar--header" }, Ft = ["id"], xt = { class: "utopia-modal__content utopia-scrollbar" }, Tt = {
1982
+ }, xt = { class: "utopia-modal__bar utopia-modal__bar--header" }, Tt = ["id"], Bt = { class: "utopia-modal__content utopia-scrollbar" }, Pt = {
1972
1983
  key: 2,
1973
1984
  class: "utopia-modal__bar utopia-modal__bar--footer"
1974
- }, Bt = { class: "utopia-modal__footer-inner" }, Pt = /* @__PURE__ */ ds({
1985
+ }, Mt = { class: "utopia-modal__footer-inner" }, Lt = /* @__PURE__ */ ds({
1975
1986
  __name: "Modal",
1976
1987
  props: {
1977
1988
  open: { type: Boolean },
@@ -1993,7 +2004,7 @@ const Ct = ["aria-hidden"], St = ["aria-labelledby"], _t = {
1993
2004
  },
1994
2005
  emits: ["update:open", "openChange"],
1995
2006
  setup(o, { emit: e }) {
1996
- const s = o, t = e, c = xe("(max-width: 768px)"), i = F(() => c.value && s.mobileBehavior === "bottom-sheet"), r = F(() => {
2007
+ const s = o, t = e, { isMobile: c } = vo(), i = F(() => c.value && s.mobileBehavior === "bottom-sheet"), r = F(() => {
1997
2008
  if (i.value)
1998
2009
  return "utopia-bottom-sheet";
1999
2010
  switch (s.animation) {
@@ -2013,7 +2024,7 @@ const Ct = ["aria-hidden"], St = ["aria-labelledby"], _t = {
2013
2024
  md: "medium",
2014
2025
  lg: "large",
2015
2026
  full: "large"
2016
- })[s.size]), X = $(null), U = $(null), Z = typeof document < "u" ? document.body : null, J = Te(Z), { activate: ls, deactivate: ss } = kt(X, {
2027
+ })[s.size]), X = $(null), U = $(null), Z = typeof document < "u" ? document.body : null, J = Te(Z), { activate: ls, deactivate: ss } = St(X, {
2017
2028
  immediate: !1,
2018
2029
  escapeDeactivates: !1,
2019
2030
  returnFocusOnDeactivate: !0,
@@ -2096,14 +2107,14 @@ const Ct = ["aria-hidden"], St = ["aria-labelledby"], _t = {
2096
2107
  "aria-labelledby": C.value || void 0,
2097
2108
  tabindex: "-1"
2098
2109
  }, [
2099
- h.value ? (u(), y("header", _t, [
2100
- D("div", At, [
2110
+ h.value ? (u(), y("header", Ft, [
2111
+ D("div", xt, [
2101
2112
  us(M.$slots, "header", {}, () => [
2102
2113
  o.title ? (u(), y("h3", {
2103
2114
  key: 0,
2104
2115
  class: "utopia-modal__title",
2105
2116
  id: C.value
2106
- }, H(o.title), 9, Ft)) : _("", !0)
2117
+ }, H(o.title), 9, Tt)) : _("", !0)
2107
2118
  ], !0),
2108
2119
  o.showCloseButton ? (u(), O(Xs, {
2109
2120
  key: 0,
@@ -2154,22 +2165,22 @@ const Ct = ["aria-hidden"], St = ["aria-labelledby"], _t = {
2154
2165
  ]),
2155
2166
  _: 1
2156
2167
  }, 512)) : _("", !0),
2157
- D("div", xt, [
2168
+ D("div", Bt, [
2158
2169
  us(M.$slots, "default", {}, void 0, !0)
2159
2170
  ]),
2160
- o.showFooter && M.$slots.footer ? (u(), y("footer", Tt, [
2161
- D("div", Bt, [
2171
+ o.showFooter && M.$slots.footer ? (u(), y("footer", Pt, [
2172
+ D("div", Mt, [
2162
2173
  us(M.$slots, "footer", {}, void 0, !0)
2163
2174
  ])
2164
2175
  ])) : _("", !0)
2165
- ], 10, St)) : _("", !0)
2176
+ ], 10, At)) : _("", !0)
2166
2177
  ]),
2167
2178
  _: 3
2168
2179
  }, 8, ["name"])
2169
- ], 10, Ct)
2180
+ ], 10, _t)
2170
2181
  ]));
2171
2182
  }
2172
- }), zt = /* @__PURE__ */ hs(Pt, [["__scopeId", "data-v-1da355ee"]]), te = /* @__PURE__ */ ds({
2183
+ }), Ot = /* @__PURE__ */ hs(Lt, [["__scopeId", "data-v-0d817491"]]), te = /* @__PURE__ */ ds({
2173
2184
  __name: "Tab",
2174
2185
  props: {
2175
2186
  label: {},
@@ -2184,7 +2195,7 @@ const Ct = ["aria-hidden"], St = ["aria-labelledby"], _t = {
2184
2195
  ]));
2185
2196
  }
2186
2197
  });
2187
- function Mt(o, e, s) {
2198
+ function Et(o, e, s) {
2188
2199
  const t = $({}), c = F(() => s.value.map((l) => l.props).filter((l) => l && l.id)), i = (l) => {
2189
2200
  l.isDisabled || l.id !== o.modelValue && (e("update:modelValue", l.id), e("tabChange", l.id));
2190
2201
  }, r = (l, g) => {
@@ -2226,11 +2237,11 @@ function Mt(o, e, s) {
2226
2237
  handleKeyDown: r
2227
2238
  };
2228
2239
  }
2229
- const Lt = ["aria-label"], Et = {
2240
+ const Dt = ["aria-label"], Rt = {
2230
2241
  role: "tablist",
2231
2242
  class: "tabs-header-inner",
2232
2243
  "aria-orientation": "horizontal"
2233
- }, Dt = ["id", "aria-controls", "aria-selected", "tabindex", "disabled", "onClick", "onKeydown"], Rt = { class: "tabs-content" }, Vt = /* @__PURE__ */ ds({
2244
+ }, It = ["id", "aria-controls", "aria-selected", "tabindex", "disabled", "onClick", "onKeydown"], Nt = { class: "tabs-content" }, qt = /* @__PURE__ */ ds({
2234
2245
  __name: "Tabs",
2235
2246
  props: {
2236
2247
  modelValue: { default: "" },
@@ -2258,7 +2269,7 @@ const Lt = ["aria-label"], Et = {
2258
2269
  tabRefs: r,
2259
2270
  updateActiveTab: l,
2260
2271
  handleKeyDown: g
2261
- } = Mt(s, t, i);
2272
+ } = Et(s, t, i);
2262
2273
  return (v, h) => (u(), y("div", {
2263
2274
  class: V(["tabs-container", { "w-full": s.fullWidth }])
2264
2275
  }, [
@@ -2269,7 +2280,7 @@ const Lt = ["aria-label"], Et = {
2269
2280
  D("div", {
2270
2281
  class: V(["tabs-header-scroll", { "tabs-fullwidth": s.fullWidth }])
2271
2282
  }, [
2272
- D("div", Et, [
2283
+ D("div", Rt, [
2273
2284
  (u(!0), y(ns, null, Fs(i.value, (m, C) => (u(), y("button", {
2274
2285
  key: m.props?.id,
2275
2286
  ref_for: !0,
@@ -2299,11 +2310,11 @@ const Lt = ["aria-label"], Et = {
2299
2310
  color: m.props?.iconColor
2300
2311
  }, null, 8, ["name", "size", "strokeWidth", "color"])) : _("", !0),
2301
2312
  Ls(" " + H(m.props?.label), 1)
2302
- ], 42, Dt))), 128))
2313
+ ], 42, It))), 128))
2303
2314
  ])
2304
2315
  ], 2)
2305
- ], 10, Lt),
2306
- D("div", Rt, [
2316
+ ], 10, Dt),
2317
+ D("div", Nt, [
2307
2318
  (u(!0), y(ns, null, Fs(i.value, (m) => (u(), y(ns, null, [
2308
2319
  m.props?.id === s.modelValue && m.type === te ? (u(), O(Se(m), _e({
2309
2320
  key: m.props?.id
@@ -2321,19 +2332,20 @@ const Lt = ["aria-label"], Et = {
2321
2332
  export {
2322
2333
  Xs as B,
2323
2334
  oo as C,
2324
- $t as D,
2335
+ Vt as D,
2325
2336
  N as I,
2326
- zt as M,
2337
+ Ot as M,
2327
2338
  Pe as _,
2328
2339
  hs as a,
2329
2340
  lo as b,
2330
- kt as c,
2341
+ St as c,
2331
2342
  Zs as d,
2332
- te as e,
2333
- Vt as f,
2334
- Le as g,
2335
- Me as h,
2336
- De as i,
2337
- Ee as j,
2343
+ vo as e,
2344
+ te as f,
2345
+ qt as g,
2346
+ Le as h,
2347
+ Me as i,
2348
+ De as j,
2349
+ Ee as k,
2338
2350
  Ws as u
2339
2351
  };