@choosemycompany/ui 0.19.2 → 0.19.4

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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, ref as ee, shallowRef as vt, onMounted as _t, watch as wt, onUnmounted as xt, h as J, nextTick as Wt, computed as x, createBlock as W, openBlock as L, unref as D, normalizeClass as b, createElementBlock as h, createElementVNode as I, renderSlot as T, createCommentVNode as P, toDisplayString as z, createVNode as A, mergeProps as Yt, withCtx as xe, createTextVNode as St, Fragment as E, renderList as H, mergeModels as K, useModel as le, useSlots as Jt, withDirectives as Se, vModelDynamic as e0, useId as Me, vModelCheckbox as Mt, normalizeStyle as oe, createStaticVNode as Re, withModifiers as Ge, resolveDynamicComponent as t0, vModelSelect as n0, isRef as o0, watchEffect as r0, withKeys as de } from "vue";
1
+ import { defineComponent as b, ref as ee, shallowRef as vt, onMounted as _t, watch as wt, onUnmounted as xt, h as J, nextTick as Wt, computed as x, createBlock as W, openBlock as L, unref as D, normalizeClass as $, createElementBlock as h, createElementVNode as I, renderSlot as T, createCommentVNode as P, toDisplayString as z, createVNode as A, mergeProps as Yt, withCtx as xe, createTextVNode as St, Fragment as E, renderList as H, mergeModels as K, useModel as ie, useSlots as Jt, withDirectives as Se, vModelDynamic as e0, useId as Me, vModelCheckbox as Mt, normalizeStyle as oe, createStaticVNode as Re, withModifiers as Ge, resolveDynamicComponent as t0, vModelSelect as n0, isRef as o0, watchEffect as r0, withKeys as fe } from "vue";
2
2
  import './assets/index.css';const l0 = {
3
3
  primary: "primary",
4
4
  secondary: "secondary"
@@ -40,7 +40,7 @@ import './assets/index.css';const l0 = {
40
40
  primary: "primary",
41
41
  secondary: "secondary",
42
42
  light: "light"
43
- }, $t = /^[a-z0-9]+(-[a-z0-9]+)*$/, $e = (e, n, t, o = "") => {
43
+ }, bt = /^[a-z0-9]+(-[a-z0-9]+)*$/, be = (e, n, t, o = "") => {
44
44
  const r = e.split(":");
45
45
  if (e.slice(0, 1) === "@") {
46
46
  if (r.length < 2 || r.length > 3)
@@ -78,7 +78,7 @@ import './assets/index.css';const l0 = {
78
78
  return null;
79
79
  }, ye = (e, n) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
80
80
  // Check name: cannot be empty
81
- ((n && e.prefix === "" || e.prefix) && e.name) : !1, bt = Object.freeze(
81
+ ((n && e.prefix === "" || e.prefix) && e.name) : !1, $t = Object.freeze(
82
82
  {
83
83
  left: 0,
84
84
  top: 0,
@@ -89,11 +89,11 @@ import './assets/index.css';const l0 = {
89
89
  rotate: 0,
90
90
  vFlip: !1,
91
91
  hFlip: !1
92
- }), be = Object.freeze({
93
- ...bt,
92
+ }), $e = Object.freeze({
93
+ ...$t,
94
94
  ...we
95
95
  }), He = Object.freeze({
96
- ...be,
96
+ ...$e,
97
97
  body: "",
98
98
  hidden: !1
99
99
  });
@@ -152,7 +152,7 @@ const g0 = {
152
152
  provider: "",
153
153
  aliases: {},
154
154
  not_found: {},
155
- ...bt
155
+ ...$t
156
156
  };
157
157
  function Fe(e, n) {
158
158
  for (const t in n)
@@ -205,7 +205,7 @@ function d0(e, n) {
205
205
  missing: /* @__PURE__ */ new Set()
206
206
  };
207
207
  }
208
- function re(e, n) {
208
+ function le(e, n) {
209
209
  const t = it[e] || (it[e] = /* @__PURE__ */ Object.create(null));
210
210
  return t[n] || (t[n] = d0(e, n));
211
211
  }
@@ -222,28 +222,28 @@ function f0(e, n, t) {
222
222
  }
223
223
  return !1;
224
224
  }
225
- let ge = !1;
225
+ let de = !1;
226
226
  function zt(e) {
227
- return typeof e == "boolean" && (ge = e), ge;
227
+ return typeof e == "boolean" && (de = e), de;
228
228
  }
229
229
  function p0(e) {
230
- const n = typeof e == "string" ? $e(e, !0, ge) : e;
230
+ const n = typeof e == "string" ? be(e, !0, de) : e;
231
231
  if (n) {
232
- const t = re(n.provider, n.prefix), o = n.name;
232
+ const t = le(n.provider, n.prefix), o = n.name;
233
233
  return t.icons[o] || (t.missing.has(o) ? null : void 0);
234
234
  }
235
235
  }
236
236
  function m0(e, n) {
237
- const t = $e(e, !0, ge);
237
+ const t = be(e, !0, de);
238
238
  if (!t)
239
239
  return !1;
240
- const o = re(t.provider, t.prefix);
240
+ const o = le(t.provider, t.prefix);
241
241
  return n ? f0(o, t.name, n) : (o.missing.add(t.name), !0);
242
242
  }
243
243
  function C0(e, n) {
244
244
  if (typeof e != "object")
245
245
  return !1;
246
- if (typeof n != "string" && (n = e.provider || ""), ge && !n && !e.prefix) {
246
+ if (typeof n != "string" && (n = e.provider || ""), de && !n && !e.prefix) {
247
247
  let r = !1;
248
248
  return Ft(e) && (e.prefix = "", It(e, (l, i) => {
249
249
  m0(l, i) && (r = !0);
@@ -255,7 +255,7 @@ function C0(e, n) {
255
255
  name: "a"
256
256
  }))
257
257
  return !1;
258
- const o = re(n, t);
258
+ const o = le(n, t);
259
259
  return !!Pt(o, e);
260
260
  }
261
261
  const Vt = Object.freeze({
@@ -317,7 +317,7 @@ function _0(e, n, t) {
317
317
  const w0 = (e) => e === "unset" || e === "undefined" || e === "none";
318
318
  function x0(e, n) {
319
319
  const t = {
320
- ...be,
320
+ ...$e,
321
321
  ...e
322
322
  }, o = {
323
323
  ...kt,
@@ -377,7 +377,7 @@ function x0(e, n) {
377
377
  }
378
378
  const S0 = /\sid="(\S+)"/g, M0 = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
379
379
  let R0 = 0;
380
- function $0(e, n = M0) {
380
+ function b0(e, n = M0) {
381
381
  const t = [];
382
382
  let o;
383
383
  for (; o = S0.exec(e); )
@@ -396,7 +396,7 @@ function $0(e, n = M0) {
396
396
  }), e = e.replace(new RegExp(r, "g"), ""), e;
397
397
  }
398
398
  const Be = /* @__PURE__ */ Object.create(null);
399
- function b0(e, n) {
399
+ function $0(e, n) {
400
400
  Be[e] = n;
401
401
  }
402
402
  function Ne(e) {
@@ -427,12 +427,12 @@ function We(e) {
427
427
  dataAfterTimeout: e.dataAfterTimeout !== !1
428
428
  };
429
429
  }
430
- const Ye = /* @__PURE__ */ Object.create(null), ie = [
430
+ const Ye = /* @__PURE__ */ Object.create(null), se = [
431
431
  "https://api.simplesvg.com",
432
432
  "https://api.unisvg.com"
433
433
  ], ve = [];
434
- for (; ie.length > 0; )
435
- ie.length === 1 || Math.random() > 0.5 ? ve.push(ie.shift()) : ve.push(ie.pop());
434
+ for (; se.length > 0; )
435
+ se.length === 1 || Math.random() > 0.5 ? ve.push(se.shift()) : ve.push(se.pop());
436
436
  Ye[""] = We({
437
437
  resources: ["https://api.iconify.design"].concat(ve)
438
438
  });
@@ -563,7 +563,7 @@ function A0(e) {
563
563
  if (o.name === r.name && o.prefix === r.prefix && o.provider === r.provider)
564
564
  return;
565
565
  o = r;
566
- const l = r.provider, i = r.prefix, s = r.name, a = t[l] || (t[l] = /* @__PURE__ */ Object.create(null)), u = a[i] || (a[i] = re(l, i));
566
+ const l = r.provider, i = r.prefix, s = r.name, a = t[l] || (t[l] = /* @__PURE__ */ Object.create(null)), u = a[i] || (a[i] = le(l, i));
567
567
  let g;
568
568
  s in u.icons ? g = n.loaded : i === "" || u.missing.has(s) ? g = n.missing : g = n.pending;
569
569
  const f = {
@@ -636,7 +636,7 @@ function T0(e, n, t) {
636
636
  function G0(e, n = !0, t = !1) {
637
637
  const o = [];
638
638
  return e.forEach((r) => {
639
- const l = typeof r == "string" ? $e(r, n, t) : r;
639
+ const l = typeof r == "string" ? be(r, n, t) : r;
640
640
  l && o.push(l);
641
641
  }), o;
642
642
  }
@@ -827,13 +827,13 @@ function q0(e) {
827
827
  function j0(e) {
828
828
  const n = [], t = [];
829
829
  return e.forEach((o) => {
830
- (o.match($t) ? n : t).push(o);
830
+ (o.match(bt) ? n : t).push(o);
831
831
  }), {
832
832
  valid: n,
833
833
  invalid: t
834
834
  };
835
835
  }
836
- function se(e, n, t) {
836
+ function ae(e, n, t) {
837
837
  function o() {
838
838
  const r = e.pendingIcons;
839
839
  n.forEach((l) => {
@@ -869,7 +869,7 @@ function K0(e, n) {
869
869
  gt(
870
870
  e.loadIcons(r, o, t),
871
871
  (g) => {
872
- se(e, r, g);
872
+ ae(e, r, g);
873
873
  }
874
874
  );
875
875
  return;
@@ -884,22 +884,22 @@ function K0(e, n) {
884
884
  [g]: d
885
885
  }
886
886
  } : null;
887
- se(e, [g], c);
887
+ ae(e, [g], c);
888
888
  });
889
889
  });
890
890
  return;
891
891
  }
892
892
  const { valid: i, invalid: s } = j0(r);
893
- if (s.length && se(e, s, null), !i.length)
893
+ if (s.length && ae(e, s, null), !i.length)
894
894
  return;
895
- const a = o.match($t) ? Ne(t) : null;
895
+ const a = o.match(bt) ? Ne(t) : null;
896
896
  if (!a) {
897
- se(e, i, null);
897
+ ae(e, i, null);
898
898
  return;
899
899
  }
900
900
  a.prepare(t, o, i).forEach((g) => {
901
901
  U0(t, g, (f) => {
902
- se(e, g.icons, f);
902
+ ae(e, g.icons, f);
903
903
  });
904
904
  });
905
905
  }));
@@ -925,11 +925,11 @@ const X0 = (e, n) => {
925
925
  const { provider: u, prefix: g } = a;
926
926
  if (g === s && u === i)
927
927
  return;
928
- i = u, s = g, l.push(re(u, g));
928
+ i = u, s = g, l.push(le(u, g));
929
929
  const f = r[u] || (r[u] = /* @__PURE__ */ Object.create(null));
930
930
  f[g] || (f[g] = []);
931
931
  }), o.pending.forEach((a) => {
932
- const { provider: u, prefix: g, name: f } = a, d = re(u, g), c = d.pendingIcons || (d.pendingIcons = /* @__PURE__ */ new Set());
932
+ const { provider: u, prefix: g, name: f } = a, d = le(u, g), c = d.pendingIcons || (d.pendingIcons = /* @__PURE__ */ new Set());
933
933
  c.has(f) || (c.add(f), r[u][g].push(f));
934
934
  }), l.forEach((a) => {
935
935
  const u = r[a.provider][a.prefix];
@@ -1085,7 +1085,7 @@ const Ct = (e, n) => {
1085
1085
  ...s
1086
1086
  }, Object.assign(o, u);
1087
1087
  let m = 0, C = n.id;
1088
- return typeof C == "string" && (C = C.replace(/-/g, "_")), o.innerHTML = $0(a.body, C ? () => C + "ID" + m++ : "iconifyVue"), J("svg", o);
1088
+ return typeof C == "string" && (C = C.replace(/-/g, "_")), o.innerHTML = b0(a.body, C ? () => C + "ID" + m++ : "iconifyVue"), J("svg", o);
1089
1089
  }
1090
1090
  const { body: g, width: f, height: d } = e, c = r === "mask" || (r === "bg" ? !1 : g.indexOf("currentColor") !== -1), p = en(g, {
1091
1091
  ...u,
@@ -1103,7 +1103,7 @@ const Ct = (e, n) => {
1103
1103
  }, J("span", o);
1104
1104
  };
1105
1105
  zt(!0);
1106
- b0("", Z0);
1106
+ $0("", Z0);
1107
1107
  if (typeof document < "u" && typeof window < "u") {
1108
1108
  const e = window;
1109
1109
  if (e.IconifyPreload !== void 0) {
@@ -1136,9 +1136,9 @@ if (typeof document < "u" && typeof window < "u") {
1136
1136
  }
1137
1137
  }
1138
1138
  const sn = {
1139
- ...be,
1139
+ ...$e,
1140
1140
  body: ""
1141
- }, an = $((e, { emit: n }) => {
1141
+ }, an = b((e, { emit: n }) => {
1142
1142
  const t = ee(null);
1143
1143
  function o() {
1144
1144
  t.value && (t.value.abort?.(), t.value = null);
@@ -1151,7 +1151,7 @@ const sn = {
1151
1151
  data: u
1152
1152
  };
1153
1153
  let g;
1154
- if (typeof u != "string" || (g = $e(u, !1, !0)) === null)
1154
+ if (typeof u != "string" || (g = be(u, !1, !0)) === null)
1155
1155
  return null;
1156
1156
  let f = p0(g);
1157
1157
  if (!f) {
@@ -1190,7 +1190,7 @@ const sn = {
1190
1190
  ...e,
1191
1191
  class: u.classes.join(" ")
1192
1192
  }), Ct({
1193
- ...be,
1193
+ ...$e,
1194
1194
  ...u.data
1195
1195
  }, g);
1196
1196
  };
@@ -1220,7 +1220,7 @@ const sn = {
1220
1220
  "title"
1221
1221
  ],
1222
1222
  emits: ["load"]
1223
- }), un = /* @__PURE__ */ $({
1223
+ }), un = /* @__PURE__ */ b({
1224
1224
  name: "CmcIcon",
1225
1225
  __name: "CmcIcon",
1226
1226
  props: {
@@ -1235,7 +1235,7 @@ const sn = {
1235
1235
  () => rt[n.name]
1236
1236
  );
1237
1237
  return (r, l) => (L(), W(D(an), {
1238
- class: b(t.value),
1238
+ class: $(t.value),
1239
1239
  icon: o.value
1240
1240
  }, null, 8, ["class", "icon"]));
1241
1241
  }
@@ -1244,7 +1244,7 @@ const sn = {
1244
1244
  for (const [o, r] of n)
1245
1245
  t[o] = r;
1246
1246
  return t;
1247
- }, X = /* @__PURE__ */ R(un, [["__scopeId", "data-v-88444d6f"]]), cn = ["disabled"], gn = { class: "button__icon" }, dn = /* @__PURE__ */ $({
1247
+ }, X = /* @__PURE__ */ R(un, [["__scopeId", "data-v-88444d6f"]]), cn = ["disabled"], gn = { class: "button__icon" }, dn = /* @__PURE__ */ b({
1248
1248
  name: "CmcButton",
1249
1249
  __name: "CmcButton",
1250
1250
  props: {
@@ -1268,7 +1268,7 @@ const sn = {
1268
1268
  };
1269
1269
  return (s, a) => (L(), h("button", {
1270
1270
  type: "button",
1271
- class: b(r.value),
1271
+ class: $(r.value),
1272
1272
  onClick: i,
1273
1273
  disabled: t.disabled
1274
1274
  }, [
@@ -1284,7 +1284,7 @@ const sn = {
1284
1284
  }), fn = /* @__PURE__ */ R(dn, [["__scopeId", "data-v-690eb48c"]]), pn = { class: "alert-content" }, mn = { class: "alert-text" }, Cn = { class: "title" }, Ln = { class: "message" }, hn = {
1285
1285
  key: 0,
1286
1286
  class: "alert-button"
1287
- }, yn = /* @__PURE__ */ $({
1287
+ }, yn = /* @__PURE__ */ b({
1288
1288
  name: "CmcAlert",
1289
1289
  __name: "CmcAlert",
1290
1290
  props: {
@@ -1300,7 +1300,7 @@ const sn = {
1300
1300
  [`alert-box--${t.status}`]: !0
1301
1301
  }));
1302
1302
  return (l, i) => (L(), h("div", {
1303
- class: b(r.value)
1303
+ class: $(r.value)
1304
1304
  }, [
1305
1305
  I("div", pn, [
1306
1306
  I("div", mn, [
@@ -1320,7 +1320,7 @@ const sn = {
1320
1320
  ])
1321
1321
  ], 2));
1322
1322
  }
1323
- }), mr = /* @__PURE__ */ R(yn, [["__scopeId", "data-v-a0456582"]]), vn = { class: "breadcrumb-item" }, _n = /* @__PURE__ */ $({
1323
+ }), mr = /* @__PURE__ */ R(yn, [["__scopeId", "data-v-a0456582"]]), vn = { class: "breadcrumb-item" }, _n = /* @__PURE__ */ b({
1324
1324
  __name: "BreadcrumbItem",
1325
1325
  props: {
1326
1326
  item: {}
@@ -1341,7 +1341,7 @@ const sn = {
1341
1341
  }), wn = /* @__PURE__ */ R(_n, [["__scopeId", "data-v-4496ccd5"]]), xn = {
1342
1342
  class: "breadcrumb",
1343
1343
  "aria-label": "breadcrumb"
1344
- }, Sn = /* @__PURE__ */ $({
1344
+ }, Sn = /* @__PURE__ */ b({
1345
1345
  name: "CmcBreadcrumb",
1346
1346
  __name: "CmcBreadcrumb",
1347
1347
  props: {
@@ -1366,17 +1366,17 @@ const sn = {
1366
1366
  number: "number",
1367
1367
  date: "date",
1368
1368
  search: "search"
1369
- }, fe = {
1369
+ }, re = {
1370
1370
  outlined: "outlined",
1371
1371
  filled: "filled",
1372
1372
  underline: "underline"
1373
1373
  }, Mn = ["for"], Rn = {
1374
1374
  key: 1,
1375
1375
  class: "input__description"
1376
- }, $n = { class: "input__wrapper" }, bn = ["id", "type", "placeholder", "required", "disabled", "aria-invalid", "min", "max"], In = {
1376
+ }, bn = { class: "input__wrapper" }, $n = ["id", "type", "placeholder", "required", "disabled", "aria-invalid", "min", "max"], In = {
1377
1377
  key: 2,
1378
1378
  class: "input__error-message"
1379
- }, Fn = /* @__PURE__ */ $({
1379
+ }, Fn = /* @__PURE__ */ b({
1380
1380
  name: "CmcInput",
1381
1381
  __name: "CmcInput",
1382
1382
  props: /* @__PURE__ */ K({
@@ -1387,7 +1387,7 @@ const sn = {
1387
1387
  disabled: { type: Boolean, default: !1 },
1388
1388
  errorMessage: {},
1389
1389
  type: { default: ze.text },
1390
- variant: { default: fe.underline },
1390
+ variant: { default: re.outlined },
1391
1391
  size: { default: Ot.medium },
1392
1392
  description: {},
1393
1393
  min: {},
@@ -1398,20 +1398,20 @@ const sn = {
1398
1398
  }),
1399
1399
  emits: /* @__PURE__ */ K(["update:modelValue"], ["update:modelValue"]),
1400
1400
  setup(e, { emit: n }) {
1401
- const t = e, o = n, r = le(e, "modelValue"), l = x(() => !!t.errorMessage), i = x(() => l.value), s = Jt(), a = x(() => !!s.right), u = x(() => !!s.left), g = x(() => ({
1401
+ const t = e, o = n, r = ie(e, "modelValue"), l = x(() => !!t.errorMessage), i = x(() => l.value), s = Jt(), a = x(() => !!s.right), u = x(() => !!s.left), g = x(() => ({
1402
1402
  input: !0,
1403
1403
  [`input--${t.size}`]: !0,
1404
1404
  "input--required": t.required,
1405
1405
  "input--disabled": t.disabled,
1406
1406
  "input--error": l.value,
1407
- "input--outlined": t.variant === fe.outlined,
1408
- "input--underline": t.variant === fe.underline,
1409
- "input--filled": t.variant === fe.filled,
1407
+ "input--outlined": t.variant === re.outlined,
1408
+ "input--underline": t.variant === re.underline,
1409
+ "input--filled": t.variant === re.filled,
1410
1410
  "input--with-right-slot": a.value,
1411
1411
  "input--with-left-slot": u.value
1412
1412
  }));
1413
1413
  return (f, d) => (L(), h("div", {
1414
- class: b(g.value)
1414
+ class: $(g.value)
1415
1415
  }, [
1416
1416
  t.label ? (L(), h("label", {
1417
1417
  key: 0,
@@ -1419,7 +1419,7 @@ const sn = {
1419
1419
  class: "input__label"
1420
1420
  }, z(t.label), 9, Mn)) : P("", !0),
1421
1421
  t.description ? (L(), h("div", Rn, z(t.description), 1)) : P("", !0),
1422
- I("div", $n, [
1422
+ I("div", bn, [
1423
1423
  T(f.$slots, "left", {}, void 0, !0),
1424
1424
  Se(I("input", {
1425
1425
  "onUpdate:modelValue": d[0] || (d[0] = (c) => r.value = c),
@@ -1432,7 +1432,7 @@ const sn = {
1432
1432
  min: t.type === D(ze).number ? t.min : void 0,
1433
1433
  max: t.type === D(ze).number ? t.max : void 0,
1434
1434
  onBlur: d[1] || (d[1] = (c) => o("update:modelValue", r.value))
1435
- }, null, 40, bn), [
1435
+ }, null, 40, $n), [
1436
1436
  [e0, r.value]
1437
1437
  ]),
1438
1438
  T(f.$slots, "right", {}, void 0, !0)
@@ -1440,7 +1440,7 @@ const sn = {
1440
1440
  l.value ? (L(), h("div", In, z(t.errorMessage), 1)) : P("", !0)
1441
1441
  ], 2));
1442
1442
  }
1443
- }), Dt = /* @__PURE__ */ R(Fn, [["__scopeId", "data-v-84c6d266"]]), Pn = { key: 1 }, zn = /* @__PURE__ */ $({
1443
+ }), Dt = /* @__PURE__ */ R(Fn, [["__scopeId", "data-v-ea022780"]]), Pn = { key: 1 }, zn = /* @__PURE__ */ b({
1444
1444
  __name: "HighlightText",
1445
1445
  props: {
1446
1446
  text: {},
@@ -1473,7 +1473,7 @@ const sn = {
1473
1473
  return (o, r) => (L(!0), h(E, null, H(t(n.text, n.searchTerm), (l, i) => (L(), h(E, { key: i }, [
1474
1474
  l.isHighlighted ? (L(), h("span", {
1475
1475
  key: 0,
1476
- class: b(["highlight__match", e.highlightClass])
1476
+ class: $(["highlight__match", e.highlightClass])
1477
1477
  }, z(l.text), 3)) : (L(), h("span", Pn, z(l.text), 1))
1478
1478
  ], 64))), 128));
1479
1479
  }
@@ -1484,7 +1484,7 @@ const sn = {
1484
1484
  }, En = { key: 1 }, Zn = ["onClick"], An = {
1485
1485
  key: 2,
1486
1486
  class: "autocomplete__list--no-results"
1487
- }, On = /* @__PURE__ */ $({
1487
+ }, On = /* @__PURE__ */ b({
1488
1488
  name: "CmcAutocomplete",
1489
1489
  __name: "CmcAutocomplete",
1490
1490
  props: /* @__PURE__ */ K({
@@ -1499,7 +1499,7 @@ const sn = {
1499
1499
  }),
1500
1500
  emits: /* @__PURE__ */ K(["update:modelValue"], ["update:modelValue"]),
1501
1501
  setup(e, { emit: n }) {
1502
- const t = e, o = n, r = le(e, "modelValue"), l = ee(t.label || ""), i = ee(!1), s = ee(null), a = x(() => `cmc-autocomplete-${Me()}`), u = x(() => r.value ? t.items.filter(
1502
+ const t = e, o = n, r = ie(e, "modelValue"), l = ee(t.label || ""), i = ee(!1), s = ee(null), a = x(() => `cmc-autocomplete-${Me()}`), u = x(() => r.value ? t.items.filter(
1503
1503
  (y) => y.toLowerCase().includes(r.value.toLowerCase())
1504
1504
  ) : t.items);
1505
1505
  function g(y) {
@@ -1533,7 +1533,7 @@ const sn = {
1533
1533
  return (y, w) => (L(), h("div", {
1534
1534
  ref_key: "autocompleteRef",
1535
1535
  ref: s,
1536
- class: b(m.value),
1536
+ class: $(m.value),
1537
1537
  onKeydown: d
1538
1538
  }, [
1539
1539
  A(Dt, {
@@ -1551,7 +1551,7 @@ const sn = {
1551
1551
  }, {
1552
1552
  right: xe(() => [
1553
1553
  A(X, {
1554
- class: b(C.value),
1554
+ class: $(C.value),
1555
1555
  "aria-hidden": "true",
1556
1556
  color: "light",
1557
1557
  name: "chevronDown",
@@ -1582,7 +1582,7 @@ const sn = {
1582
1582
  ])) : P("", !0)
1583
1583
  ], 34));
1584
1584
  }
1585
- }), Lr = /* @__PURE__ */ R(On, [["__scopeId", "data-v-625d6ca4"]]), Dn = { class: "badge-text" }, Tn = /* @__PURE__ */ $({
1585
+ }), Lr = /* @__PURE__ */ R(On, [["__scopeId", "data-v-625d6ca4"]]), Dn = { class: "badge-text" }, Tn = /* @__PURE__ */ b({
1586
1586
  name: "CmcBadgePill",
1587
1587
  __name: "CmcBadgePill",
1588
1588
  props: {
@@ -1597,14 +1597,14 @@ const sn = {
1597
1597
  [`badge-pill--${n.variant}`]: !0
1598
1598
  }));
1599
1599
  return (o, r) => (L(), h("div", {
1600
- class: b(t.value)
1600
+ class: $(t.value)
1601
1601
  }, [
1602
1602
  I("span", Dn, z(e.label), 1)
1603
1603
  ], 2));
1604
1604
  }
1605
1605
  }), hr = /* @__PURE__ */ R(Tn, [["__scopeId", "data-v-2eabf0ca"]]), Tt = {
1606
1606
  medium: "medium"
1607
- }, Gn = /* @__PURE__ */ $({
1607
+ }, Gn = /* @__PURE__ */ b({
1608
1608
  name: "CmcButtonGroup",
1609
1609
  __name: "CmcButtonGroup",
1610
1610
  props: {
@@ -1616,7 +1616,7 @@ const sn = {
1616
1616
  [`button-group-gap--${n.gap}`]: !0
1617
1617
  }));
1618
1618
  return (o, r) => (L(), h("div", {
1619
- class: b(t.value)
1619
+ class: $(t.value)
1620
1620
  }, [
1621
1621
  T(o.$slots, "default", {}, void 0, !0)
1622
1622
  ], 2));
@@ -1917,7 +1917,7 @@ const sn = {
1917
1917
  gold: "gold",
1918
1918
  platinum: "platinum",
1919
1919
  unranked: "unranked"
1920
- }, Nn = "#111118", Un = "#0302F5", qn = "#E6007E", jn = "#FC435C", Kn = "#19BAA3", Xn = "#009FE3", Qn = "#739099", Wn = "#82368C", Yn = ["innerHTML"], yr = /* @__PURE__ */ $({
1920
+ }, Nn = "#111118", Un = "#0302F5", qn = "#E6007E", jn = "#FC435C", Kn = "#19BAA3", Xn = "#009FE3", Qn = "#739099", Wn = "#82368C", Yn = ["innerHTML"], yr = /* @__PURE__ */ b({
1921
1921
  name: "CmcCertificate",
1922
1922
  __name: "CmcCertificate",
1923
1923
  props: {
@@ -1998,7 +1998,7 @@ function t1(e, n) {
1998
1998
  }, null, -1)
1999
1999
  ])]);
2000
2000
  }
2001
- const n1 = /* @__PURE__ */ R(Jn, [["render", t1]]), o1 = ["id", "disabled", "required"], r1 = /* @__PURE__ */ $({
2001
+ const n1 = /* @__PURE__ */ R(Jn, [["render", t1]]), o1 = ["id", "disabled", "required"], r1 = /* @__PURE__ */ b({
2002
2002
  name: "CmcCheckbox",
2003
2003
  __name: "CmcCheckbox",
2004
2004
  props: /* @__PURE__ */ K({
@@ -2011,13 +2011,13 @@ const n1 = /* @__PURE__ */ R(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
2011
2011
  }),
2012
2012
  emits: ["update:modelValue"],
2013
2013
  setup(e) {
2014
- const n = e, t = le(e, "modelValue"), o = x(() => n.id || `cmc-checkbox-${Me()}`), r = x(() => ({
2014
+ const n = e, t = ie(e, "modelValue"), o = x(() => n.id || `cmc-checkbox-${Me()}`), r = x(() => ({
2015
2015
  checkbox: !0,
2016
2016
  "checkbox--disabled": n.disabled,
2017
2017
  "checkbox--required": n.required
2018
2018
  }));
2019
2019
  return (l, i) => (L(), h("div", {
2020
- class: b(r.value)
2020
+ class: $(r.value)
2021
2021
  }, [
2022
2022
  Se(I("input", {
2023
2023
  "onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
@@ -2041,7 +2041,7 @@ const n1 = /* @__PURE__ */ R(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
2041
2041
  h3: "h3",
2042
2042
  h4: "h4",
2043
2043
  h5: "h5"
2044
- }, l1 = /* @__PURE__ */ $({
2044
+ }, l1 = /* @__PURE__ */ b({
2045
2045
  name: "CmcHeading",
2046
2046
  __name: "CmcHeading",
2047
2047
  props: {
@@ -2058,42 +2058,42 @@ const n1 = /* @__PURE__ */ R(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
2058
2058
  return (o, r) => (L(), h(E, null, [
2059
2059
  D(Y).h1 === n.level ? (L(), h("h1", {
2060
2060
  key: 0,
2061
- class: b(t.value),
2061
+ class: $(t.value),
2062
2062
  style: oe({ color: n.color })
2063
2063
  }, [
2064
2064
  T(o.$slots, "default", {}, void 0, !0)
2065
2065
  ], 6)) : P("", !0),
2066
2066
  D(Y).h2 === n.level ? (L(), h("h2", {
2067
2067
  key: 1,
2068
- class: b(t.value),
2068
+ class: $(t.value),
2069
2069
  style: oe({ color: n.color })
2070
2070
  }, [
2071
2071
  T(o.$slots, "default", {}, void 0, !0)
2072
2072
  ], 6)) : P("", !0),
2073
2073
  D(Y).h3 === n.level ? (L(), h("h3", {
2074
2074
  key: 2,
2075
- class: b(t.value),
2075
+ class: $(t.value),
2076
2076
  style: oe({ color: n.color })
2077
2077
  }, [
2078
2078
  T(o.$slots, "default", {}, void 0, !0)
2079
2079
  ], 6)) : P("", !0),
2080
2080
  D(Y).h4 === n.level ? (L(), h("h4", {
2081
2081
  key: 3,
2082
- class: b(t.value),
2082
+ class: $(t.value),
2083
2083
  style: oe({ color: n.color })
2084
2084
  }, [
2085
2085
  T(o.$slots, "default", {}, void 0, !0)
2086
2086
  ], 6)) : P("", !0),
2087
2087
  D(Y).h5 === n.level ? (L(), h("h5", {
2088
2088
  key: 4,
2089
- class: b(t.value),
2089
+ class: $(t.value),
2090
2090
  style: oe({ color: n.color })
2091
2091
  }, [
2092
2092
  T(o.$slots, "default", {}, void 0, !0)
2093
2093
  ], 6)) : P("", !0)
2094
2094
  ], 64));
2095
2095
  }
2096
- }), i1 = /* @__PURE__ */ R(l1, [["__scopeId", "data-v-f0cf556a"]]), s1 = "https://cmc-ui-assets.s3.fr-par.scw.cloud/", a1 = ["src"], u1 = /* @__PURE__ */ $({
2096
+ }), i1 = /* @__PURE__ */ R(l1, [["__scopeId", "data-v-f0cf556a"]]), s1 = "https://cmc-ui-assets.s3.fr-par.scw.cloud/", a1 = ["src"], u1 = /* @__PURE__ */ b({
2097
2097
  name: "CmcLoading",
2098
2098
  __name: "CmcLoading",
2099
2099
  setup(e) {
@@ -2101,7 +2101,7 @@ const n1 = /* @__PURE__ */ R(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
2101
2101
  loading: !0
2102
2102
  }));
2103
2103
  return (o, r) => (L(), h("img", {
2104
- class: b(t.value),
2104
+ class: $(t.value),
2105
2105
  alt: "CMC Logo Loader",
2106
2106
  src: n.value
2107
2107
  }, null, 10, a1));
@@ -2145,23 +2145,23 @@ function S1(e, n) {
2145
2145
  }
2146
2146
  const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2147
2147
  color: "color"
2148
- }, $1 = {
2149
- fr_FR: "fr_FR"
2150
2148
  }, b1 = {
2149
+ fr_FR: "fr_FR"
2150
+ }, $1 = {
2151
2151
  medium: "medium"
2152
2152
  }, I1 = {
2153
2153
  fr_FR_color: f1,
2154
2154
  fr_FR_white: L1,
2155
2155
  en_US_color: _1,
2156
2156
  en_US_white: M1
2157
- }, F1 = ["href"], P1 = /* @__PURE__ */ $({
2157
+ }, F1 = ["href"], P1 = /* @__PURE__ */ b({
2158
2158
  name: "CmcLogo",
2159
2159
  __name: "CmcLogo",
2160
2160
  props: {
2161
2161
  href: {},
2162
2162
  variant: { default: R1.color },
2163
- language: { default: $1.fr_FR },
2164
- size: { default: b1.medium }
2163
+ language: { default: b1.fr_FR },
2164
+ size: { default: $1.medium }
2165
2165
  },
2166
2166
  emits: ["click"],
2167
2167
  setup(e, { emit: n }) {
@@ -2173,7 +2173,7 @@ const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2173
2173
  };
2174
2174
  return (a, u) => (L(), h("a", {
2175
2175
  href: t.href,
2176
- class: b(r.value),
2176
+ class: $(r.value),
2177
2177
  onClick: Ge(s, ["prevent"])
2178
2178
  }, [
2179
2179
  (L(), W(t0(i.value)))
@@ -2182,7 +2182,7 @@ const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2182
2182
  }), wr = /* @__PURE__ */ R(P1, [["__scopeId", "data-v-cc384ddd"]]), z1 = { class: "pagination" }, V1 = ["disabled"], k1 = ["onClick"], E1 = {
2183
2183
  key: 1,
2184
2184
  class: "pagination__ellipsis"
2185
- }, Z1 = ["disabled"], A1 = 2, O1 = /* @__PURE__ */ $({
2185
+ }, Z1 = ["disabled"], A1 = 2, O1 = /* @__PURE__ */ b({
2186
2186
  name: "CmcPagination",
2187
2187
  __name: "CmcPagination",
2188
2188
  props: {
@@ -2220,7 +2220,7 @@ const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2220
2220
  };
2221
2221
  return (d, c) => (L(), h("nav", z1, [
2222
2222
  I("button", {
2223
- class: b(["pagination__page-button", { "is-invisible": !a.value }]),
2223
+ class: $(["pagination__page-button", { "is-invisible": !a.value }]),
2224
2224
  disabled: !a.value,
2225
2225
  "aria-label": "Page précédente",
2226
2226
  onClick: g
@@ -2228,24 +2228,25 @@ const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2228
2228
  (L(!0), h(E, null, H(s.value, (p, m) => (L(), h(E, { key: m }, [
2229
2229
  typeof p == "number" ? (L(), h("button", {
2230
2230
  key: 0,
2231
- class: b(["pagination__page-button", { "is-active": p === l() }]),
2231
+ class: $(["pagination__page-button", { "is-active": p === l() }]),
2232
2232
  onClick: () => o("update:currentPage", p)
2233
2233
  }, z(p), 11, k1)) : (L(), h("span", E1, "…"))
2234
2234
  ], 64))), 128)),
2235
2235
  I("button", {
2236
- class: b(["pagination__page-button", { "is-invisible": !u.value }]),
2236
+ class: $(["pagination__page-button", { "is-invisible": !u.value }]),
2237
2237
  disabled: !u.value,
2238
2238
  "aria-label": "Page suivante",
2239
2239
  onClick: f
2240
2240
  }, " › ", 10, Z1)
2241
2241
  ]));
2242
2242
  }
2243
- }), D1 = /* @__PURE__ */ R(O1, [["__scopeId", "data-v-8be37a19"]]), T1 = /* @__PURE__ */ $({
2243
+ }), D1 = /* @__PURE__ */ R(O1, [["__scopeId", "data-v-8be37a19"]]), T1 = /* @__PURE__ */ b({
2244
2244
  name: "CmcSearch",
2245
2245
  __name: "CmcSearch",
2246
2246
  props: /* @__PURE__ */ K({
2247
2247
  size: { default: Ot.medium },
2248
- variant: {},
2248
+ variant: { default: re.underline },
2249
+ label: {},
2249
2250
  placeholder: { default: "Rechercher..." }
2250
2251
  }, {
2251
2252
  modelValue: { default: "" },
@@ -2253,42 +2254,39 @@ const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2253
2254
  }),
2254
2255
  emits: ["update:modelValue"],
2255
2256
  setup(e) {
2256
- const n = e, t = le(e, "modelValue"), o = x(() => [
2257
+ const n = e, t = ie(e, "modelValue"), o = x(() => [
2257
2258
  "search-bar",
2258
2259
  `search-bar--${n.size}`,
2259
2260
  n.variant ? `search-bar--${n.variant}` : null
2260
2261
  ]), r = Me(), l = x(() => `cmc-search-${r}`);
2261
2262
  return (i, s) => (L(), h("div", {
2262
- class: b(o.value),
2263
+ class: $(o.value),
2263
2264
  role: "search"
2264
2265
  }, [
2265
2266
  A(Dt, {
2266
- id: l.value,
2267
+ class: "search-bar__input",
2268
+ type: "search",
2267
2269
  modelValue: t.value,
2268
2270
  "onUpdate:modelValue": s[0] || (s[0] = (a) => t.value = a),
2269
- placeholder: n.placeholder,
2270
- size: n.size,
2271
- variant: n.variant,
2272
- class: "search-bar__input",
2273
- type: "search"
2271
+ id: l.value,
2272
+ label: e.label,
2273
+ placeholder: e.placeholder,
2274
+ size: e.size,
2275
+ variant: e.variant
2274
2276
  }, {
2275
2277
  left: xe(() => [
2276
2278
  A(X, {
2277
- color: "light",
2278
2279
  "aria-hidden": "true",
2279
2280
  class: "search-bar__icon",
2281
+ color: "light",
2280
2282
  name: "search"
2281
2283
  })
2282
2284
  ]),
2283
2285
  _: 1
2284
- }, 8, ["id", "modelValue", "placeholder", "size", "variant"])
2286
+ }, 8, ["modelValue", "id", "label", "placeholder", "size", "variant"])
2285
2287
  ], 2));
2286
2288
  }
2287
- }), xr = /* @__PURE__ */ R(T1, [["__scopeId", "data-v-e1ba89eb"]]), pe = {
2288
- outlined: "outlined",
2289
- filled: "filled",
2290
- underline: "underline"
2291
- }, G1 = ["for"], H1 = {
2289
+ }), xr = /* @__PURE__ */ R(T1, [["__scopeId", "data-v-4db57e98"]]), pe = re, G1 = ["for"], H1 = {
2292
2290
  key: 1,
2293
2291
  class: "select__description"
2294
2292
  }, B1 = { class: "select__wrapper" }, N1 = ["id", "required", "disabled", "aria-invalid"], U1 = {
@@ -2298,7 +2296,7 @@ const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2298
2296
  }, q1 = ["value", "disabled"], j1 = {
2299
2297
  key: 2,
2300
2298
  class: "select__error-wrapper"
2301
- }, K1 = /* @__PURE__ */ $({
2299
+ }, K1 = /* @__PURE__ */ b({
2302
2300
  name: "CmcSelect",
2303
2301
  __name: "CmcSelect",
2304
2302
  props: /* @__PURE__ */ K({
@@ -2318,7 +2316,7 @@ const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2318
2316
  }),
2319
2317
  emits: ["update:modelValue"],
2320
2318
  setup(e) {
2321
- const n = e, t = le(e, "modelValue"), o = x(() => !!n.errorMessage), r = x(() => ({
2319
+ const n = e, t = ie(e, "modelValue"), o = x(() => !!n.errorMessage), r = x(() => ({
2322
2320
  select: !0,
2323
2321
  "select--disabled": n.disabled,
2324
2322
  "select--error": o.value,
@@ -2329,7 +2327,7 @@ const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2329
2327
  width: n.width ? `${n.width}px` : "100%"
2330
2328
  }));
2331
2329
  return (i, s) => (L(), h("div", {
2332
- class: b(r.value),
2330
+ class: $(r.value),
2333
2331
  style: oe(l.value)
2334
2332
  }, [
2335
2333
  e.label ? (L(), h("label", {
@@ -2369,7 +2367,7 @@ const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2369
2367
  success: "success",
2370
2368
  danger: "danger",
2371
2369
  warning: "warning"
2372
- }, Q1 = { class: "status__label" }, W1 = /* @__PURE__ */ $({
2370
+ }, Q1 = { class: "status__label" }, W1 = /* @__PURE__ */ b({
2373
2371
  name: "CmcStatus",
2374
2372
  __name: "CmcStatus",
2375
2373
  props: {
@@ -2382,7 +2380,7 @@ const M1 = /* @__PURE__ */ R(w1, [["render", S1]]), R1 = {
2382
2380
  [`status--${n.status}`]: !0
2383
2381
  }));
2384
2382
  return (o, r) => (L(), h("div", {
2385
- class: b(t.value)
2383
+ class: $(t.value)
2386
2384
  }, [
2387
2385
  r[0] || (r[0] = I("span", { class: "status__dot" }, null, -1)),
2388
2386
  I("span", Q1, z(n.text), 1)
@@ -2962,12 +2960,12 @@ const ho = {
2962
2960
  onColumnOrderChange: O("columnOrder", e)
2963
2961
  }),
2964
2962
  createColumn: (e, n) => {
2965
- e.getIndex = v((t) => [ce(n, t)], (t) => t.findIndex((o) => o.id === e.id), _(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
2963
+ e.getIndex = v((t) => [ge(n, t)], (t) => t.findIndex((o) => o.id === e.id), _(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
2966
2964
  var o;
2967
- return ((o = ce(n, t)[0]) == null ? void 0 : o.id) === e.id;
2965
+ return ((o = ge(n, t)[0]) == null ? void 0 : o.id) === e.id;
2968
2966
  }, e.getIsLastColumn = (t) => {
2969
2967
  var o;
2970
- const r = ce(n, t);
2968
+ const r = ge(n, t);
2971
2969
  return ((o = r[r.length - 1]) == null ? void 0 : o.id) === e.id;
2972
2970
  };
2973
2971
  },
@@ -3102,7 +3100,7 @@ const Ce = {
3102
3100
  var t, o, r;
3103
3101
  const l = n.getState().columnSizing[e.id];
3104
3102
  return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Ce.minSize, (o = l ?? e.columnDef.size) != null ? o : Ce.size), (r = e.columnDef.maxSize) != null ? r : Ce.maxSize);
3105
- }, e.getStart = v((t) => [t, ce(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, l) => r + l.getSize(), 0), _(n.options, "debugColumns", "getStart")), e.getAfter = v((t) => [t, ce(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((r, l) => r + l.getSize(), 0), _(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
3103
+ }, e.getStart = v((t) => [t, ge(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, l) => r + l.getSize(), 0), _(n.options, "debugColumns", "getStart")), e.getAfter = v((t) => [t, ge(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((r, l) => r + l.getSize(), 0), _(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
3106
3104
  n.setColumnSizing((t) => {
3107
3105
  let {
3108
3106
  [e.id]: o,
@@ -3277,7 +3275,7 @@ const xo = {
3277
3275
  };
3278
3276
  }
3279
3277
  };
3280
- function ce(e, n) {
3278
+ function ge(e, n) {
3281
3279
  return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
3282
3280
  }
3283
3281
  const So = {
@@ -3410,7 +3408,7 @@ const So = {
3410
3408
  }, qe = 0, je = 10, Ae = () => ({
3411
3409
  pageIndex: qe,
3412
3410
  pageSize: je
3413
- }), $o = {
3411
+ }), bo = {
3414
3412
  getInitialState: (e) => ({
3415
3413
  ...e,
3416
3414
  pagination: {
@@ -3493,7 +3491,7 @@ const So = {
3493
3491
  }, Oe = () => ({
3494
3492
  top: [],
3495
3493
  bottom: []
3496
- }), bo = {
3494
+ }), $o = {
3497
3495
  getInitialState: (e) => ({
3498
3496
  rowPinning: Oe(),
3499
3497
  ...e
@@ -3780,7 +3778,7 @@ function Xt(e, n) {
3780
3778
  }
3781
3779
  return t.length - o.length;
3782
3780
  }
3783
- const ae = {
3781
+ const ue = {
3784
3782
  alphanumeric: Fo,
3785
3783
  alphanumericCaseSensitive: Po,
3786
3784
  text: zo,
@@ -3807,11 +3805,11 @@ const ae = {
3807
3805
  for (const r of t) {
3808
3806
  const l = r?.getValue(e.id);
3809
3807
  if (Object.prototype.toString.call(l) === "[object Date]")
3810
- return ae.datetime;
3808
+ return ue.datetime;
3811
3809
  if (typeof l == "string" && (o = !0, l.split(Qe).length > 1))
3812
- return ae.alphanumeric;
3810
+ return ue.alphanumeric;
3813
3811
  }
3814
- return o ? ae.text : ae.basic;
3812
+ return o ? ue.text : ue.basic;
3815
3813
  }, e.getAutoSortDir = () => {
3816
3814
  const t = n.getFilteredRowModel().flatRows[0];
3817
3815
  return typeof t?.getValue(e.id) == "string" ? "asc" : "desc";
@@ -3819,7 +3817,7 @@ const ae = {
3819
3817
  var t, o;
3820
3818
  if (!e)
3821
3819
  throw new Error();
3822
- return Ie(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? t : ae[e.columnDef.sortingFn];
3820
+ return Ie(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? t : ue[e.columnDef.sortingFn];
3823
3821
  }, e.toggleSorting = (t, o) => {
3824
3822
  const r = e.getNextSortingOrder(), l = typeof t < "u" && t !== null;
3825
3823
  n.setSorting((i) => {
@@ -3891,8 +3889,8 @@ const ae = {
3891
3889
  Co,
3892
3890
  //depends on RowSorting
3893
3891
  Ro,
3894
- $o,
3895
3892
  bo,
3893
+ $o,
3896
3894
  Io,
3897
3895
  _o
3898
3896
  ];
@@ -4113,7 +4111,7 @@ const Go = Symbol("merge-proxy"), Ho = {
4113
4111
  function Te(e) {
4114
4112
  return "value" in e ? e.value : e;
4115
4113
  }
4116
- function ue() {
4114
+ function ce() {
4117
4115
  for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
4118
4116
  n[t] = arguments[t];
4119
4117
  return new Proxy({
@@ -4135,17 +4133,17 @@ function ue() {
4135
4133
  }
4136
4134
  }, Ho);
4137
4135
  }
4138
- const Qt = $({
4136
+ const Qt = b({
4139
4137
  props: ["render", "props"],
4140
4138
  setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? J(e.render, e.props) : e.render
4141
4139
  });
4142
4140
  function yt(e) {
4143
- return ue(e, {
4141
+ return ce(e, {
4144
4142
  data: D(e.data)
4145
4143
  });
4146
4144
  }
4147
4145
  function Bo(e) {
4148
- const n = o0(e.data), t = ue({
4146
+ const n = o0(e.data), t = ce({
4149
4147
  state: {},
4150
4148
  // Dummy state
4151
4149
  onStateChange: () => {
@@ -4156,7 +4154,7 @@ function Bo(e) {
4156
4154
  return n ? {
4157
4155
  ...l,
4158
4156
  ...i
4159
- } : ue(l, i);
4157
+ } : ce(l, i);
4160
4158
  }
4161
4159
  }, n ? yt(e) : e), o = Oo(t);
4162
4160
  if (n) {
@@ -4177,11 +4175,11 @@ function Bo(e) {
4177
4175
  const s = new Proxy({}, {
4178
4176
  get: (a, u) => r.value[u]
4179
4177
  });
4180
- return ue(l, n ? yt(e) : e, {
4178
+ return ce(l, n ? yt(e) : e, {
4181
4179
  // merge the initialState and `options.state`
4182
4180
  // create a new proxy on each `setOptions` call
4183
4181
  // and get the value from state on each property access
4184
- state: ue(s, (i = e.state) != null ? i : {}),
4182
+ state: ce(s, (i = e.state) != null ? i : {}),
4185
4183
  // Similarly, we'll maintain both our internal state and any user-provided
4186
4184
  // state.
4187
4185
  onStateChange: (a) => {
@@ -4191,7 +4189,7 @@ function Bo(e) {
4191
4189
  });
4192
4190
  }), o;
4193
4191
  }
4194
- const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4192
+ const No = ["aria-sort"], Uo = /* @__PURE__ */ b({
4195
4193
  __name: "CmcTableHeader",
4196
4194
  props: {
4197
4195
  headerGroups: {}
@@ -4219,7 +4217,7 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4219
4217
  ]))), 128))
4220
4218
  ]));
4221
4219
  }
4222
- }), qo = /* @__PURE__ */ R(Uo, [["__scopeId", "data-v-9eba66c8"]]), jo = { key: 0 }, Ko = { key: 1 }, Xo = ["colspan"], Qo = /* @__PURE__ */ $({
4220
+ }), qo = /* @__PURE__ */ R(Uo, [["__scopeId", "data-v-9eba66c8"]]), jo = { key: 0 }, Ko = { key: 1 }, Xo = ["colspan"], Qo = /* @__PURE__ */ b({
4223
4221
  __name: "CmcTableBody",
4224
4222
  props: {
4225
4223
  rows: {},
@@ -4253,7 +4251,7 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4253
4251
  ])
4254
4252
  ]));
4255
4253
  }
4256
- }), Wo = /* @__PURE__ */ R(Qo, [["__scopeId", "data-v-f962b8ac"]]), Yo = /* @__PURE__ */ $({
4254
+ }), Wo = /* @__PURE__ */ R(Qo, [["__scopeId", "data-v-f962b8ac"]]), Yo = /* @__PURE__ */ b({
4257
4255
  __name: "CmcTable",
4258
4256
  props: {
4259
4257
  rows: { default: () => [] },
@@ -4307,7 +4305,7 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4307
4305
  }, null, 8, ["rows", "emptyText", "leafColCount"])
4308
4306
  ]));
4309
4307
  }
4310
- }), Jo = /* @__PURE__ */ R(Yo, [["__scopeId", "data-v-0de0582e"]]), er = { class: "table__pagination" }, tr = 10, nr = /* @__PURE__ */ $({
4308
+ }), Jo = /* @__PURE__ */ R(Yo, [["__scopeId", "data-v-0de0582e"]]), er = { class: "table__pagination" }, tr = 10, nr = /* @__PURE__ */ b({
4311
4309
  __name: "CmcTablePagination",
4312
4310
  props: {
4313
4311
  itemsPerPage: { default: tr },
@@ -4340,7 +4338,7 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4340
4338
  }, null, 8, ["currentPage", "itemsPerPage", "totalItems"])
4341
4339
  ]));
4342
4340
  }
4343
- }), Rr = /* @__PURE__ */ R(nr, [["__scopeId", "data-v-a2a0b05e"]]), $r = /* @__PURE__ */ $({
4341
+ }), Rr = /* @__PURE__ */ R(nr, [["__scopeId", "data-v-a2a0b05e"]]), br = /* @__PURE__ */ b({
4344
4342
  name: "CmcTitle",
4345
4343
  __name: "CmcTitle",
4346
4344
  setup(e) {
@@ -4358,7 +4356,7 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4358
4356
  }
4359
4357
  }), or = {
4360
4358
  medium: "medium"
4361
- }, rr = ["id", "disabled", "required"], lr = ["for"], ir = /* @__PURE__ */ $({
4359
+ }, rr = ["id", "disabled", "required"], lr = ["for"], ir = /* @__PURE__ */ b({
4362
4360
  name: "CmcToggle",
4363
4361
  __name: "CmcToggle",
4364
4362
  props: /* @__PURE__ */ K({
@@ -4372,7 +4370,7 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4372
4370
  }),
4373
4371
  emits: ["update:modelValue"],
4374
4372
  setup(e) {
4375
- const n = e, t = le(e, "modelValue"), o = x(() => n.id || `cmc-toggle-${Me()}`), r = x(() => ({
4373
+ const n = e, t = ie(e, "modelValue"), o = x(() => n.id || `cmc-toggle-${Me()}`), r = x(() => ({
4376
4374
  toggle: !0,
4377
4375
  [`toggle--${n.size}`]: !0,
4378
4376
  "toggle--disabled": n.disabled,
@@ -4380,7 +4378,7 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4380
4378
  "toggle--checked": t.value
4381
4379
  }));
4382
4380
  return (l, i) => (L(), h("div", {
4383
- class: b(r.value)
4381
+ class: $(r.value)
4384
4382
  }, [
4385
4383
  Se(I("input", {
4386
4384
  id: o.value,
@@ -4400,13 +4398,13 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4400
4398
  ])], 8, lr)
4401
4399
  ], 2));
4402
4400
  }
4403
- }), br = /* @__PURE__ */ R(ir, [["__scopeId", "data-v-37a7880f"]]), sr = ["aria-current", "aria-label", "onClick", "onKeydown"], ar = {
4401
+ }), $r = /* @__PURE__ */ R(ir, [["__scopeId", "data-v-37a7880f"]]), sr = ["aria-current", "aria-label", "onClick", "onKeydown"], ar = {
4404
4402
  key: 1,
4405
4403
  class: "wizard__number"
4406
4404
  }, ur = { class: "wizard__label" }, cr = ["tabindex", "onClick", "onKeydown"], gr = {
4407
4405
  key: 0,
4408
4406
  class: "wizard__separator"
4409
- }, dr = /* @__PURE__ */ $({
4407
+ }, dr = /* @__PURE__ */ b({
4410
4408
  name: "CmcWizard",
4411
4409
  __name: "CmcWizard",
4412
4410
  props: {
@@ -4430,18 +4428,18 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4430
4428
  "wizard__label-text--upcoming": g(f)
4431
4429
  }), a = (f) => f < t.current, u = (f) => f === t.current, g = (f) => !a(f) && !u(f);
4432
4430
  return (f, d) => (L(), h("div", {
4433
- class: b(["wizard", { "wizard--clickable": e.clickable }]),
4431
+ class: $(["wizard", { "wizard--clickable": e.clickable }]),
4434
4432
  role: "list"
4435
4433
  }, [
4436
4434
  (L(!0), h(E, null, H(e.steps, (c, p) => (L(), h(E, { key: p }, [
4437
4435
  I("div", {
4438
- class: b(["wizard__step", i(p)]),
4436
+ class: $(["wizard__step", i(p)]),
4439
4437
  "aria-current": u(p) ? "step" : void 0,
4440
4438
  "aria-label": `step-${p + 1} : ${c.label}`,
4441
4439
  onClick: (m) => l(p),
4442
4440
  onKeydown: [
4443
- de((m) => l(p), ["enter"]),
4444
- de(Ge((m) => l(p), ["prevent"]), ["space"])
4441
+ fe((m) => l(p), ["enter"]),
4442
+ fe(Ge((m) => l(p), ["prevent"]), ["space"])
4445
4443
  ]
4446
4444
  }, [
4447
4445
  a(p) ? (L(), W(X, {
@@ -4452,12 +4450,12 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ $({
4452
4450
  ], 42, sr),
4453
4451
  I("div", ur, [
4454
4452
  I("span", {
4455
- class: b(["wizard__label-text", s(p)]),
4453
+ class: $(["wizard__label-text", s(p)]),
4456
4454
  tabindex: e.clickable ? 0 : -1,
4457
4455
  onClick: (m) => l(p),
4458
4456
  onKeydown: [
4459
- de((m) => l(p), ["enter"]),
4460
- de(Ge((m) => l(p), ["prevent"]), ["space"])
4457
+ fe((m) => l(p), ["enter"]),
4458
+ fe(Ge((m) => l(p), ["prevent"]), ["space"])
4461
4459
  ]
4462
4460
  }, z(c.label), 43, cr)
4463
4461
  ]),
@@ -4486,8 +4484,8 @@ export {
4486
4484
  Mr as CmcStatus,
4487
4485
  Jo as CmcTable,
4488
4486
  Rr as CmcTablePagination,
4489
- $r as CmcTitle,
4490
- br as CmcToggle,
4487
+ br as CmcTitle,
4488
+ $r as CmcToggle,
4491
4489
  Ir as CmcWizard,
4492
4490
  l0 as buttonKindOptions,
4493
4491
  s0 as buttonSizeOptions,
@@ -4497,7 +4495,7 @@ export {
4497
4495
  rt as iconNameOptions,
4498
4496
  Ot as inputSizeOptions,
4499
4497
  ze as inputTypeOptions,
4500
- fe as inputVariantOptions,
4498
+ re as inputVariantOptions,
4501
4499
  N as primaryTypeOptions,
4502
4500
  ne as rankOptions,
4503
4501
  pe as selectVariantOptions,